[hibernate-commits] Hibernate SVN: r18776 - in core/trunk/documentation/manual: src/main/docbook/en-US and 15 other directories.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Thu Feb 11 02:04:15 EST 2010
Author: rwilding
Date: 2010-02-11 02:04:06 -0500 (Thu, 11 Feb 2010)
New Revision: 18776
Modified:
core/trunk/documentation/manual/pom.xml
core/trunk/documentation/manual/src/main/docbook/en-US/author_group.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/association_mapping.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/batch.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/best_practices.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/bibliography.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/collection_mapping.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/component_mapping.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/configuration.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/events.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/example_mappings.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/example_parentchild.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/example_weblog.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/filters.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/inheritance_mapping.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/performance.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/persistent_classes.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/preface.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/query_criteria.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/query_hql.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/query_sql.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/toolset_guide.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/transactions.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/tutorial.xml
core/trunk/documentation/manual/src/main/docbook/en-US/content/xml.xml
core/trunk/documentation/manual/src/main/docbook/en-US/legal_notice.xml
core/trunk/documentation/manual/src/main/docbook/es-ES/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/es-ES/author_group.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/batch.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/events.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/filters.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/performance.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/portability.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/preface.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/es-ES/content/xml.po
core/trunk/documentation/manual/src/main/docbook/es-ES/legal_notice.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/author_group.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/batch.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/events.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/filters.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/performance.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/portability.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/preface.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/content/xml.po
core/trunk/documentation/manual/src/main/docbook/fr-FR/legal_notice.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/author_group.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/batch.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/events.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/filters.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/performance.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/portability.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/preface.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/content/xml.po
core/trunk/documentation/manual/src/main/docbook/ja-JP/legal_notice.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/author_group.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/batch.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/events.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/filters.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/performance.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/portability.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/preface.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/content/xml.po
core/trunk/documentation/manual/src/main/docbook/ko-KR/legal_notice.po
core/trunk/documentation/manual/src/main/docbook/pot/Hibernate_Reference.pot
core/trunk/documentation/manual/src/main/docbook/pot/author_group.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/association_mapping.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/basic_mapping.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/batch.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/best_practices.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/bibliography.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/collection_mapping.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/component_mapping.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/configuration.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/events.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/example_mappings.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/example_parentchild.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/example_weblog.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/filters.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/inheritance_mapping.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/performance.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/persistent_classes.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/portability.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/preface.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/query_criteria.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/query_hql.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/query_sql.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/toolset_guide.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/transactions.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/tutorial.pot
core/trunk/documentation/manual/src/main/docbook/pot/content/xml.pot
core/trunk/documentation/manual/src/main/docbook/pot/legal_notice.pot
core/trunk/documentation/manual/src/main/docbook/pt-BR/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/author_group.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/batch.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/events.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/filters.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/performance.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/portability.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/preface.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/content/xml.po
core/trunk/documentation/manual/src/main/docbook/pt-BR/legal_notice.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/Hibernate_Reference.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/author_group.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/association_mapping.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/basic_mapping.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/batch.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/best_practices.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/bibliography.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/collection_mapping.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/component_mapping.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/configuration.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/events.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_mappings.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_parentchild.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_weblog.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/filters.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/inheritance_mapping.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/performance.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/persistent_classes.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/portability.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/preface.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_criteria.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_hql.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_sql.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/toolset_guide.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/transactions.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/tutorial.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/content/xml.po
core/trunk/documentation/manual/src/main/docbook/zh-CN/legal_notice.po
Log:
'converted docs for publican compatibility and added translations from Core 3.3.2.GA branch'
Modified: core/trunk/documentation/manual/pom.xml
===================================================================
--- core/trunk/documentation/manual/pom.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/pom.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -38,13 +38,13 @@
</executions>
<configuration>
- <sourceDocumentName>Hibernate_Reference.xml</sourceDocumentName>
+ <sourceDocumentName>HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml</sourceDocumentName>
<masterTranslation>en-US</masterTranslation>
<translations>
<translation>es-ES</translation>
<translation>fr-FR</translation>
<translation>ja-JP</translation>
- <translation>ko-KR</translation>
+ <!-- <translation>ko-KR</translation> -->
<translation>pt-BR</translation>
<translation>zh-CN</translation>
</translations>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/author_group.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/author_group.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/author_group.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,3 +1,4 @@
+<?xml version='1.0' encoding='UTF-8' ?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
@@ -21,8 +22,8 @@
~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-
+<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
<authorgroup>
<author>
<firstname>Gavin</firstname>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/architecture.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,13 +23,17 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="architecture">
<title>Architecture</title>
- <sect1 id="architecture-overview" revision="1">
+ <section id="architecture-overview" revision="1">
<title>Overview</title>
<para>
@@ -38,10 +42,10 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="../images/overview.svg" format="SVG" align="center"/>
+ <imagedata fileref="images/overview.svg" format="SVG" align="center"/>
</imageobject>
<imageobject role="html">
- <imagedata fileref="../images/overview.png" format="PNG" align="center"/>
+ <imagedata fileref="images/overview.png" format="PNG" align="center"/>
</imageobject>
</mediaobject>
@@ -64,10 +68,10 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="../images/lite.svg" format="SVG" align="center"/>
+ <imagedata fileref="images/lite.svg" format="SVG" align="center"/>
</imageobject>
<imageobject role="html">
- <imagedata fileref="../images/lite.png" format="PNG" align="center"/>
+ <imagedata fileref="images/lite.png" format="PNG" align="center"/>
</imageobject>
</mediaobject>
@@ -78,10 +82,10 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="../images/full_cream.svg" format="SVG" align="center"/>
+ <imagedata fileref="images/full_cream.svg" format="SVG" align="center"/>
</imageobject>
<imageobject role="html">
- <imagedata fileref="../images/full_cream.png" format="PNG" align="center"/>
+ <imagedata fileref="images/full_cream.png" format="PNG" align="center"/>
</imageobject>
</mediaobject>
@@ -185,9 +189,9 @@
<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or
<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC directly.
</para>
- </sect1>
+ </section>
- <sect1 id="architecture-states" revision="1">
+ <section id="architecture-states" revision="1">
<title>Instance states</title>
<para>
An instance of a persistent class can be in one of three different states. These states are
@@ -235,9 +239,9 @@
</listitem>
</varlistentry>
</variablelist>
- </sect1>
+ </section>
- <sect1 id="architecture-jmx" revision="1">
+ <section id="architecture-jmx" revision="1">
<title>JMX Integration</title>
<para>
@@ -285,17 +289,17 @@
Another feature available as a JMX service is runtime Hibernate statistics. See
<xref linkend="configuration-optional-statistics"/> for more information.
</para>
- </sect1>
+ </section>
- <sect1 id="architecture-jca" revision="1">
+ <section id="architecture-jca" revision="1">
<title>JCA Support</title>
<para>
Hibernate can also be configured as a JCA connector. Please see the website for more
information. Please note, however, that at this stage Hibernate JCA support is under development.
</para>
- </sect1>
+ </section>
- <sect1 id="architecture-current-session" revision="2">
+ <section id="architecture-current-session" revision="2">
<title>Contextual sessions</title>
<para>
Most applications using Hibernate need some form of "contextual" session, where a given
@@ -379,7 +383,7 @@
short names: "jta", "thread", and "managed".
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/association_mapping.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/association_mapping.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/association_mapping.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,13 +23,17 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="associations">
<title>Association Mappings</title>
- <sect1 id="assoc-intro" revision="1">
+ <section id="assoc-intro" revision="1">
<title>Introduction</title>
<para>
@@ -52,12 +56,12 @@
nullability constraints.
</para>
- </sect1>
+ </section>
- <sect1 id="assoc-unidirectional" revision="1">
+ <section id="assoc-unidirectional" revision="1">
<title>Unidirectional associations</title>
- <sect2 id="assoc-unidirectional-m21">
+ <section id="assoc-unidirectional-m21">
<title>Many-to-one</title>
<para>
@@ -84,9 +88,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-unidirectional-121">
+ <section id="assoc-unidirectional-121">
<title>One-to-one</title>
<para>
@@ -139,9 +143,9 @@
create table Address ( personId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-unidirectional-12m">
+ <section id="assoc-unidirectional-12m">
<title>One-to-many</title>
<para>
@@ -174,14 +178,14 @@
You should instead use a join table for this kind of association.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="assoc-unidirectional-join" revision="1">
+ <section id="assoc-unidirectional-join" revision="1">
<title>Unidirectional associations with join tables</title>
- <sect2 id="assoc-unidirectional-join-12m">
+ <section id="assoc-unidirectional-join-12m">
<title>One-to-many</title>
<para>
@@ -213,9 +217,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-unidirectional-join-m21">
+ <section id="assoc-unidirectional-join-m21">
<title>Many-to-one</title>
<para>
@@ -247,9 +251,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-unidirectional-join-121">
+ <section id="assoc-unidirectional-join-121">
<title>One-to-one</title>
<para>
@@ -283,9 +287,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-unidirectional-join-m2m">
+ <section id="assoc-unidirectional-join-m2m">
<title>Many-to-many</title>
<para>
@@ -314,14 +318,14 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="assoc-bidirectional" revision="1">
+ <section id="assoc-bidirectional" revision="1">
<title>Bidirectional associations</title>
- <sect2 id="assoc-bidirectional-m21" revision="2">
+ <section id="assoc-bidirectional-m21" revision="2">
<title>one-to-many / many-to-one</title>
<para>
@@ -392,9 +396,9 @@
element.
</para>
- </sect2>
+ </section>
- <sect2 id="assoc-bidirectional-121">
+ <section id="assoc-bidirectional-121">
<title>One-to-one</title>
<para>
@@ -450,14 +454,14 @@
create table Address ( personId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="assoc-bidirectional-join" revision="1">
+ <section id="assoc-bidirectional-join" revision="1">
<title>Bidirectional associations with join tables</title>
- <sect2 id="assoc-bidirectional-join-12m">
+ <section id="assoc-bidirectional-join-12m">
<title>one-to-many / many-to-one</title>
<para>
@@ -498,9 +502,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-bidirectional-join-121">
+ <section id="assoc-bidirectional-join-121">
<title>one to one</title>
<para>
@@ -544,9 +548,9 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="assoc-bidirectional-join-m2m" revision="1">
+ <section id="assoc-bidirectional-join-m2m" revision="1">
<title>Many-to-many</title>
<para>
@@ -581,11 +585,11 @@
create table Address ( addressId bigint not null primary key )
]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="assoc-complex">
+ <section id="assoc-complex">
<title>More complex association mappings</title>
<para>
@@ -644,7 +648,7 @@
to handle these kinds of cases using HQL or a criteria query.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,12 +23,16 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="mapping">
<title>Basic O/R Mapping</title>
- <sect1 id="mapping-declaration" revision="2">
+ <section id="mapping-declaration" revision="2">
<title>Mapping declaration</title>
<para>
@@ -48,7 +52,8 @@
Here is an example mapping:
</para>
- <programlisting id="mapping-declaration-ex1" role="XML"><![CDATA[<?xml version="1.0"?>
+
+ <programlisting role="XML"><![CDATA[<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
@@ -123,7 +128,7 @@
- <sect2 id="mapping-declaration-doctype" revision="3">
+ <section id="mapping-declaration-doctype" revision="3">
<title>Doctype</title>
<para>
@@ -135,7 +140,7 @@
classpath.
</para>
- <sect3 id="mapping-declaration-entity-resolution">
+ <section id="mapping-declaration-entity-resolution">
<title>EntityResolver</title>
<para>
Hibernate will first attempt to resolve DTDs in its classpath.
@@ -166,29 +171,17 @@
<para>
The following is an example of utilizing user namespacing:
</para>
- <programlisting role="XML"><![CDATA[<?xml version="1.0"?>
-<!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" [
- <!ENTITY types SYSTEM "classpath://your/domain/types.xml">
-]>
-
-<hibernate-mapping package="your.domain">
- <class name="MyEntity">
- <id name="id" type="my-custom-id-type">
- ...
- </id>
- <class>
- &types;
-</hibernate-mapping>]]></programlisting>
+ <programlisting language="XML" role="XML">
+<xi:include parse="text" href="../extras/namespacing.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" />
+</programlisting>
<para>
Where <literal>types.xml</literal> is a resource in the <literal>your.domain</literal>
package and contains a custom <link linkend="mapping-types-custom">typedef</link>.
</para>
- </sect3>
- </sect2>
+ </section>
+ </section>
- <sect2 id="mapping-declaration-mapping" revision="3">
+ <section id="mapping-declaration-mapping" revision="3">
<title>Hibernate-mapping</title>
<para>
@@ -284,9 +277,9 @@
<literal>Animal.hbm.xml</literal>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-class" revision="3">
+ <section id="mapping-declaration-class" revision="3">
<title>Class</title>
<para>
@@ -601,9 +594,9 @@
a nested mapping element.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-id" revision="4">
+ <section id="mapping-declaration-id" revision="4">
<title>id</title>
<para>
@@ -679,7 +672,7 @@
legacy data with composite keys. Its use is strongly discouraged for anything else.
</para>
- <sect3 id="mapping-declaration-id-generator" revision="2">
+ <section id="mapping-declaration-id-generator" revision="2">
<title>Generator</title>
<para>
@@ -829,9 +822,9 @@
</variablelist>
</para>
- </sect3>
+ </section>
- <sect3 id="mapping-declaration-id-hilo" revision="1">
+ <section id="mapping-declaration-id-hilo" revision="1">
<title>Hi/lo algorithm</title>
<para>
The <literal>hilo</literal> and <literal>seqhilo</literal> generators provide two alternate
@@ -861,9 +854,9 @@
server datasource to obtain connections enlisted with JTA, you must configure
the <literal>hibernate.transaction.manager_lookup_class</literal>.
</para>
- </sect3>
+ </section>
- <sect3 id="mapping-declaration-id-uuid">
+ <section id="mapping-declaration-id-uuid">
<title>UUID algorithm</title>
<para>
The UUID contains: IP address, startup time of the JVM that is accurate to a quarter
@@ -871,9 +864,9 @@
possible to obtain a MAC address or memory address from Java code, so this is
the best option without using JNI.
</para>
- </sect3>
+ </section>
- <sect3 id="mapping-declaration-id-sequences">
+ <section id="mapping-declaration-id-sequences">
<title>Identity columns and sequences</title>
<para>
For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), you
@@ -898,9 +891,9 @@
choose from the <literal>identity</literal>, <literal>sequence</literal> and
<literal>hilo</literal> strategies.
</para>
- </sect3>
+ </section>
- <sect3 id="mapping-declaration-id-assigned">
+ <section id="mapping-declaration-id-assigned">
<title>Assigned identifiers</title>
<para>
If you want the application to assign identifiers, as opposed to having
@@ -918,9 +911,9 @@
there is a version or timestamp property, or you define
<literal>Interceptor.isUnsaved()</literal>.
</para>
- </sect3>
+ </section>
- <sect3 id="mapping-declaration-id-select">
+ <section id="mapping-declaration-id-select">
<title>Primary keys assigned by triggers</title>
<para>
Hibernate does not generate DDL with triggers. It is for legacy schemas only.
@@ -939,11 +932,11 @@
whose value is generated by a trigger.
</para>
- </sect3>
+ </section>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-id-enhanced">
+ <section id="mapping-declaration-id-enhanced">
<title>Enhanced identifier generators</title>
<para>
@@ -1070,9 +1063,9 @@
</listitem>
</itemizedlist>
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-id-enhanced-optimizers">
+ <section id="mapping-declaration-id-enhanced-optimizers">
<title>Identifier generator optimization</title>
<para>
For identifier generators that store values in the database, it is inefficient for them to hit the
@@ -1107,9 +1100,9 @@
</listitem>
</itemizedlist>
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-compositeid" revision="3">
+ <section id="mapping-declaration-compositeid" revision="3">
<title>composite-id</title>
<programlisting role="XML"><![CDATA[<composite-id
@@ -1224,9 +1217,9 @@
for almost all applications.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-discriminator" revision="3">
+ <section id="mapping-declaration-discriminator" revision="3">
<title>Discriminator</title>
<para>
@@ -1312,9 +1305,9 @@
formula="case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end"
type="integer"/>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-version" revision="4">
+ <section id="mapping-declaration-version" revision="4">
<title>Version (optional)</title>
<para>
@@ -1407,9 +1400,9 @@
problems with transitive reattachment in Hibernate. It is especially useful for people
using assigned identifiers or composite keys</emphasis>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-timestamp" revision="4" >
+ <section id="mapping-declaration-timestamp" revision="4" >
<title>Timestamp (optional)</title>
<para>
@@ -1499,10 +1492,10 @@
</para>
</note>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-property" revision="4">
+ <section id="mapping-declaration-property" revision="4">
<title>Property</title>
<para>
@@ -1695,9 +1688,9 @@
if you do not want to use the attribute.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-manytoone" revision="5">
+ <section id="mapping-declaration-manytoone" revision="5">
<title>Many-to-one</title>
<para>
@@ -1908,9 +1901,9 @@
<programlisting role="XML"><![CDATA[<many-to-one name="owner" property-ref="identity.ssn" column="OWNER_SSN"/>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-onetoone" revision="3">
+ <section id="mapping-declaration-onetoone" revision="3">
<title>One-to-one</title>
<para>
@@ -2084,9 +2077,9 @@
<programlisting role="XML"><![CDATA[<one-to-one name="employee" class="Employee" property-ref="person"/>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-naturalid">
+ <section id="mapping-declaration-naturalid">
<title>Natural-id</title>
<programlisting role="XML"><![CDATA[<natural-id mutable="true|false"/>
@@ -2122,9 +2115,9 @@
</listitem>
</itemizedlist>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-component" revision="2">
+ <section id="mapping-declaration-component" revision="2">
<title>Component and dynamic-component</title>
<para>
@@ -2233,9 +2226,9 @@
<xref linkend="components-dynamic"/> for more information.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-properties" revision="2">
+ <section id="mapping-declaration-properties" revision="2">
<title>Properties</title>
<para>
@@ -2336,9 +2329,9 @@
legacy data is not recommended.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-subclass" revision="4">
+ <section id="mapping-declaration-subclass" revision="4">
<title>Subclass</title>
<para>
@@ -2407,9 +2400,9 @@
For information about inheritance mappings see <xref linkend="inheritance"/>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-joinedsubclass" revision="3">
+ <section id="mapping-declaration-joinedsubclass" revision="3">
<title>Joined-subclass</title>
<para>
@@ -2514,9 +2507,9 @@
For information about inheritance mappings see <xref linkend="inheritance"/>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-unionsubclass" revision="2">
+ <section id="mapping-declaration-unionsubclass" revision="2">
<title>Union-subclass</title>
<para>
@@ -2590,9 +2583,9 @@
For information about inheritance mappings see <xref linkend="inheritance"/>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-join" revision="3">
+ <section id="mapping-declaration-join" revision="3">
<title>Join</title>
<para>
@@ -2696,9 +2689,9 @@
explained later.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-key">
+ <section id="mapping-declaration-key">
<title>Key</title>
<para>
@@ -2786,9 +2779,9 @@
<literal><key not-null="true"></literal>.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-column" revision="5">
+ <section id="mapping-column" revision="5">
<title>Column and formula elements</title>
<para>
Mapping elements which accept a <literal>column</literal> attribute will alternatively
@@ -2833,9 +2826,9 @@
<formula>'MAILING'</formula>
</many-to-one>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="mapping-declaration-import">
+ <section id="mapping-declaration-import">
<title>Import</title>
<para>
@@ -2871,9 +2864,9 @@
</calloutlist>
</programlistingco>
- </sect2>
+ </section>
- <sect2 id="mapping-types-anymapping" revision="2">
+ <section id="mapping-types-anymapping" revision="2">
<title>Any</title>
<para>
@@ -2965,14 +2958,14 @@
</calloutlist>
</programlistingco>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="mapping-types">
+ <section id="mapping-types">
<title>Hibernate types</title>
- <sect2 id="mapping-types-entitiesvalues" revision="1">
+ <section id="mapping-types-entitiesvalues" revision="1">
<title>Entities and values</title>
<para>
@@ -3037,9 +3030,9 @@
With the exception of collections, all built-in Hibernate types support null semantics.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-types-basictypes" revision="3">
+ <section id="mapping-types-basictypes" revision="3">
<title>Basic value types</title>
<para>
@@ -3193,9 +3186,9 @@
represents the <literal>string</literal> type.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-types-custom" revision="2">
+ <section id="mapping-types-custom" revision="2">
<title>Custom value types</title>
<para>
@@ -3281,11 +3274,11 @@
monetary values are represented.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="mapping-entityname">
+ <section id="mapping-entityname">
<title>Mapping a class more than once</title>
<para>
It is possible to provide more than one mapping for a particular persistent class. In this
@@ -3318,9 +3311,9 @@
<literal>class</literal>.
</para>
- </sect1>
+ </section>
- <sect1 id="mapping-quotedidentifiers">
+ <section id="mapping-quotedidentifiers">
<title>SQL quoted identifiers</title>
<para>
You can force Hibernate to quote an identifier in the generated SQL by enclosing the table or
@@ -3335,17 +3328,17 @@
...
</class>]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="mapping-alternatives">
+ <section id="mapping-alternatives">
<title>Metadata alternatives</title>
<para>
XML does not suit all users so there are some alternative ways to define O/R mapping metadata in Hibernate.
</para>
- <sect2 id="mapping-xdoclet">
+ <section id="mapping-xdoclet">
<title>Using XDoclet markup</title>
<para>
@@ -3464,9 +3457,9 @@
See the Hibernate website for more examples of XDoclet and Hibernate.
</para>
- </sect2>
+ </section>
- <sect2 id="mapping-annotations" revision="2">
+ <section id="mapping-annotations" revision="2">
<title>Using JDK 5.0 Annotations</title>
<para>
@@ -3515,10 +3508,10 @@
</para>
</note>
- </sect2>
- </sect1>
+ </section>
+ </section>
- <sect1 id="mapping-generated" revision="1">
+ <section id="mapping-generated" revision="1">
<title>Generated properties</title>
<para>
Generated properties are properties that have their values generated by the
@@ -3552,9 +3545,9 @@
<literal>always</literal>: the property value is generated both
on insert and on update.
</para>
- </sect1>
+ </section>
- <sect1 id="mapping-column-read-and-write" revision="1">
+ <section id="mapping-column-read-and-write" revision="1">
<title>Column read and write expressions</title>
<para>
Hibernate allows you to customize the SQL it uses to read and write the values
@@ -3590,9 +3583,9 @@
The <literal>write</literal> expression, if specified, must contain exactly one '?' placeholder
for the value.
</para>
- </sect1>
+ </section>
- <sect1 id="mapping-database-object">
+ <section id="mapping-database-object">
<title>Auxiliary database objects</title>
<para>
Auxiliary database objects allow for the CREATE and DROP of arbitrary database objects. In conjunction with
@@ -3637,6 +3630,6 @@
<dialect-scope name="org.hibernate.dialect.Oracle10gDialect"/>
</database-object>
</hibernate-mapping>]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/batch.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/batch.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/batch.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="batch">
<title>Batch processing</title>
@@ -75,7 +79,7 @@
<literal>CacheMode</literal> to disable interaction with the second-level cache.
</para>
- <sect1 id="batch-inserts">
+ <section id="batch-inserts">
<title>Batch inserts</title>
<para>
@@ -100,9 +104,9 @@
tx.commit();
session.close();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="batch-update" >
+ <section id="batch-update" >
<title>Batch updates</title>
<para>
@@ -131,9 +135,9 @@
tx.commit();
session.close();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="batch-statelesssession">
+ <section id="batch-statelesssession">
<title>The StatelessSession interface</title>
<para>
Alternatively, Hibernate provides a command-oriented API that can be used for
@@ -180,9 +184,9 @@
interface.
</para>
- </sect1>
+ </section>
- <sect1 id="batch-direct" revision="3">
+ <section id="batch-direct" revision="3">
<title>DML-style operations</title>
<para>
@@ -372,6 +376,6 @@
tx.commit();
session.close();]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/best_practices.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/best_practices.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/best_practices.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="best-practices" revision="3">
<title>Best Practices</title>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/bibliography.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/bibliography.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/bibliography.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,3 +1,4 @@
+<?xml version='1.0' encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
@@ -21,8 +22,12 @@
~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<bibliography>
<title>References</title>
@@ -72,4 +77,4 @@
</publisher>
</biblioentry>
-</bibliography>
\ No newline at end of file
+</bibliography>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/collection_mapping.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/collection_mapping.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/collection_mapping.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,12 +23,16 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="collections">
<title>Collection mapping</title>
- <sect1 id="collections-persistent" revision="3">
+ <section id="collections-persistent" revision="3">
<title>Persistent collections</title>
<para>
@@ -99,9 +103,9 @@
the semantics of bidirectional associations (these are discussed later).
</para>
- </sect1>
+ </section>
- <sect1 id="collections-mapping" revision="4">
+ <section id="collections-mapping" revision="4">
<title>Collection mappings</title>
<tip>
@@ -270,7 +274,7 @@
</calloutlist>
</programlistingco>
- <sect2 id="collections-foreignkeys" >
+ <section id="collections-foreignkeys" >
<title>Collection foreign keys</title>
<para>
@@ -301,9 +305,9 @@
element.
</para>
- </sect2>
+ </section>
- <sect2 id="collections-elements" >
+ <section id="collections-elements" >
<title>Collection elements</title>
<para>
@@ -324,9 +328,9 @@
associations.
</para>
- </sect2>
+ </section>
- <sect2 id="collections-indexed">
+ <section id="collections-indexed">
<title>Indexed collections</title>
<para>
@@ -439,9 +443,9 @@
optionally sorted or ordered.
</para>
- </sect2>
+ </section>
- <sect2 id="collections-ofvalues" revision="2">
+ <section id="collections-ofvalues" revision="2">
<title>Collections of values and many-to-many associations</title>
<para>
@@ -643,9 +647,9 @@
</composite-element>
</list>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="collections-onetomany">
+ <section id="collections-onetomany">
<title>One-to-many associations</title>
<para>
@@ -740,14 +744,14 @@
<map-key formula="partName"/>
<one-to-many class="Part"/>
</map>]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="collections-advancedmappings">
+ <section id="collections-advancedmappings">
<title>Advanced collection mappings</title>
- <sect2 id="collections-sorted" revision="2">
+ <section id="collections-sorted" revision="2">
<title>Sorted collections</title>
<para>
@@ -814,9 +818,9 @@
<programlisting role="JAVA"><![CDATA[sortedUsers = s.createFilter( group.getUsers(), "order by this.name" ).list();]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="collections-bidirectional" revision="1">
+ <section id="collections-bidirectional" revision="1">
<title>Bidirectional associations</title>
<para>
@@ -925,9 +929,9 @@
affect the operation of cascades as these are orthogonal concepts.
</para>
- </sect2>
+ </section>
- <sect2 id="collections-indexedbidirectional">
+ <section id="collections-indexedbidirectional">
<title>Bidirectional associations with indexed collections</title>
<para>
A bidirectional association where one end is represented as a <literal><list></literal>
@@ -993,9 +997,9 @@
updates to the foreign key. <!--TODO: Does this really result in some unnecessary update statements?-->
</para>
- </sect2>
+ </section>
- <sect2 id="collections-ternary">
+ <section id="collections-ternary">
<title>Ternary associations</title>
<para>
@@ -1024,9 +1028,9 @@
A final alternative is to use composite elements, which will be discussed later.
</para>
- </sect2>
+ </section>
- <sect2 id="collections-idbag" revision="1">
+ <section id="collections-idbag" revision="1">
<title><literal>Using an <idbag></literal></title>
<para>
@@ -1070,13 +1074,13 @@
strategy is not supported for <literal><idbag></literal> collection identifiers.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
<!--undocumenting this stuff -->
- <!--sect1 id="collections-heterogeneous">
+ <!--section id="collections-heterogeneous">
<title>Heterogeneous Associations</title>
<para>
@@ -1086,9 +1090,9 @@
rarely, if ever.
</para>
- </sect1-->
+ </section-->
- <sect1 id="collections-example" revision="1">
+ <section id="collections-example" revision="1">
<title>Collection examples</title>
<para>
@@ -1264,6 +1268,6 @@
in the next chapter.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/component_mapping.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/component_mapping.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/component_mapping.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="components">
<title>Component Mapping</title>
@@ -33,7 +37,7 @@
throughout Hibernate.
</para>
- <sect1 id="components-dependentobjects" revision="2" >
+ <section id="components-dependentobjects" revision="2" >
<title>Dependent objects</title>
<para>
@@ -157,9 +161,9 @@
</component>
</class>]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="components-incollections" revision="1">
+ <section id="components-incollections" revision="1">
<title>Collections of dependent objects</title>
<para>
@@ -258,9 +262,9 @@
associations to other entities.
</para>
- </sect1>
+ </section>
- <sect1 id="components-asmapindex">
+ <section id="components-asmapindex">
<title>Components as Map indices</title>
<para>
@@ -269,9 +273,9 @@
<literal>hashCode()</literal> and <literal>equals()</literal> correctly on
the component class.
</para>
- </sect1>
+ </section>
- <sect1 id="components-compositeid" revision="1">
+ <section id="components-compositeid" revision="1">
<title>Components as composite identifiers</title>
<para>
@@ -409,9 +413,9 @@
</set>
</class>]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="components-dynamic" revision="1">
+ <section id="components-dynamic" revision="1">
<title>Dynamic components</title>
<para>
@@ -433,6 +437,6 @@
configuration-time metamodel via the <literal>Configuration</literal> object.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/configuration.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/configuration.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/configuration.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="session-configuration" revision="1">
<title>Configuration</title>
@@ -36,7 +40,7 @@
the various options. Simply put the example file in your classpath and customize it to suit your needs.
</para>
- <sect1 id="configuration-programmatic" revision="1">
+ <section id="configuration-programmatic" revision="1">
<title>Programmatic configuration</title>
<para>
@@ -122,9 +126,9 @@
be discarded once a <literal>SessionFactory</literal> is created.
</para>
- </sect1>
+ </section>
- <sect1 id="configuration-sessionfactory">
+ <section id="configuration-sessionfactory">
<title>Obtaining a SessionFactory</title>
<para>
@@ -141,9 +145,9 @@
one database.
</para>
- </sect1>
+ </section>
- <sect1 id="configuration-hibernatejdbc" revision="1">
+ <section id="configuration-hibernatejdbc" revision="1">
<title>JDBC connections</title>
<para>
@@ -248,7 +252,8 @@
The following is an example <filename>hibernate.properties</filename> file for c3p0:
</para>
- <programlisting id="c3p0-configuration" revision="1"><![CDATA[hibernate.connection.driver_class = org.postgresql.Driver
+
+ <programlisting><![CDATA[hibernate.connection.driver_class = org.postgresql.Driver
hibernate.connection.url = jdbc:postgresql://localhost/mydatabase
hibernate.connection.username = myuser
hibernate.connection.password = secret
@@ -349,9 +354,9 @@
custom implementation via the <property>hibernate.connection.provider_class</property> property.
</para>
- </sect1>
+ </section>
- <sect1 id="configuration-optional" revision="1">
+ <section id="configuration-optional" revision="1">
<title>Optional configuration properties</title>
<para>
@@ -360,9 +365,9 @@
</para>
<para>
- <warning><emphasis>Some of these properties are "system-level" only.</emphasis> System-level properties can
+ <warning><para><emphasis>Some of these properties are "system-level" only.</emphasis> System-level properties can
be set only via <literal>java -Dproperty=value</literal> or <filename>hibernate.properties</filename>. They
- <emphasis>cannot</emphasis> be set by the other techniques described above.</warning>
+ <emphasis>cannot</emphasis> be set by the other techniques described above.</para></warning>
</para>
<table frame="topbot" id="configuration-optional-properties" revision="8">
@@ -1040,7 +1045,7 @@
</tgroup>
</table>
- <sect2 id="configuration-optional-dialects" revision="1">
+ <section id="configuration-optional-dialects" revision="1">
<title>SQL Dialects</title>
<para>
@@ -1137,9 +1142,9 @@
</tgroup>
</table>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-outerjoin" revision="4">
+ <section id="configuration-optional-outerjoin" revision="4">
<title>Outer Join Fetching</title>
<para>
@@ -1163,9 +1168,9 @@
See <xref linkend="performance-fetching"/> for more information.
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-binarystreams" revision="1">
+ <section id="configuration-optional-binarystreams" revision="1">
<title>Binary Streams</title>
<para>
@@ -1176,9 +1181,9 @@
<emphasis>This is a system-level setting only.</emphasis>
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-cacheprovider" revision="2">
+ <section id="configuration-optional-cacheprovider" revision="2">
<title>Second-level and query cache</title>
<para>
@@ -1188,9 +1193,9 @@
more information.
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-querysubstitution">
+ <section id="configuration-optional-querysubstitution">
<title>Query Language Substitution</title>
<para>
@@ -1211,9 +1216,9 @@
This would allow you to rename the SQL <literal>LOWER</literal> function.
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-statistics" revision="2">
+ <section id="configuration-optional-statistics" revision="2">
<title>Hibernate statistics</title>
<para>
@@ -1224,10 +1229,10 @@
<literal>org.hibernate.stats</literal> for more information.
</para>
- </sect2>
- </sect1>
+ </section>
+ </section>
- <sect1 id="configuration-logging">
+ <section id="configuration-logging">
<title>Logging</title>
<para>
@@ -1320,9 +1325,9 @@
</para>
- </sect1>
+ </section>
- <sect1 id="configuration-namingstrategy">
+ <section id="configuration-namingstrategy">
<title>Implementing a <literal>NamingStrategy</literal></title>
<para>
@@ -1355,9 +1360,9 @@
strategy that might be a useful starting point for some applications.
</para>
- </sect1>
+ </section>
- <sect1 id="configuration-xmlconfig" revision="2">
+ <section id="configuration-xmlconfig" revision="2">
<title>XML configuration file</title>
<para>
@@ -1428,9 +1433,9 @@
.configure("catdb.cfg.xml")
.buildSessionFactory();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="configuration-j2ee" revision="1">
+ <section id="configuration-j2ee" revision="1">
<title>J2EE Application Server integration</title>
<para>
@@ -1493,7 +1498,7 @@
application server shows "connection containment" exceptions.
</para>
- <sect2 id="configuration-optional-transactionstrategy" revision="3">
+ <section id="configuration-optional-transactionstrategy" revision="3">
<title>Transaction strategy configuration</title>
<para>
@@ -1608,9 +1613,9 @@
</tgroup>
</table>
- </sect2>
+ </section>
- <sect2 id="configuration-optional-jndi" revision="3">
+ <section id="configuration-optional-jndi" revision="3">
<title>JNDI-bound <literal>SessionFactory</literal></title>
<para>
@@ -1656,15 +1661,15 @@
class is also a convenient way to startup Hibernate—see chapter 1.
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-j2ee-currentsession" revision="4">
+ <section id="configuration-j2ee-currentsession" revision="4">
<title>Current Session context management with JTA</title>
<para>
The easiest way to handle <literal>Sessions</literal> and transactions is
Hibernate's automatic "current" <literal>Session</literal> management.
- For a discussion of contextual sessions see <link linkend="architecture-current-session"></link>.
+ For a discussion of contextual sessions see <xref linkend="architecture-current-session"/>.
Using the <literal>"jta"</literal> session context, if there is no Hibernate
<literal>Session</literal> associated with the current JTA transaction, one will
be started and associated with that JTA transaction the first time you call
@@ -1681,9 +1686,9 @@
demarcation with CMT is preferred.
</para>
- </sect2>
+ </section>
- <sect2 id="configuration-j2ee-jmx" revision="1">
+ <section id="configuration-j2ee-jmx" revision="1">
<title>JMX deployment</title>
<para>
@@ -1754,9 +1759,9 @@
documentation for more information about JMX service and EJB deployment.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/events.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/events.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/events.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="events">
<title>Interceptors and events</title>
@@ -34,7 +38,7 @@
functionality and the extension of Hibernate functionality.
</para>
- <sect1 id="objectstate-interceptors" revision="3">
+ <section id="objectstate-interceptors" revision="3">
<title>Interceptors</title>
<para>
@@ -160,9 +164,9 @@
<programlisting role="JAVA"><![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="objectstate-events" revision="4">
+ <section id="objectstate-events" revision="4">
<title>Event system</title>
<para>
@@ -249,9 +253,9 @@
or off during configuration.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-decl-security" revision="2">
+ <section id="objectstate-decl-security" revision="2">
<title>Hibernate declarative security</title>
<para>
Usually, declarative security in Hibernate applications is managed in a session facade
@@ -286,7 +290,7 @@
The role names are the roles understood by your JACC provider.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/example_mappings.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/example_mappings.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/example_mappings.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="example-mappings">
<title>Example: Various Mappings</title>
@@ -33,7 +37,7 @@
This chapters explores some more complex association mappings.
</para>
- <sect1 id="example-mappings-emp">
+ <section id="example-mappings-emp">
<title>Employer/Employee</title>
<para>
@@ -46,10 +50,10 @@
<mediaobject>
<imageobject role="html">
- <imagedata fileref="../images/EmployerEmployee.png" format="PNG" align="center" />
+ <imagedata fileref="images/EmployerEmployee.png" format="PNG" align="center" />
</imageobject>
<imageobject role="fo">
- <imagedata fileref="../images/EmployerEmployee.png" format="PNG" align="center" width="17cm" />
+ <imagedata fileref="images/EmployerEmployee.png" format="PNG" align="center" width="17cm" />
</imageobject>
</mediaobject>
@@ -144,9 +148,9 @@
create sequence employment_id_seq
create sequence employer_id_seq]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="example-mappings-authorwork">
+ <section id="example-mappings-authorwork">
<title>Author/Work</title>
<para>
@@ -160,10 +164,10 @@
<mediaobject>
<imageobject role="html">
- <imagedata fileref="../images/AuthorWork.png" format="PNG" align="center" />
+ <imagedata fileref="images/AuthorWork.png" format="PNG" align="center" />
</imageobject>
<imageobject role="fo">
- <imagedata fileref="../images/AuthorWork.png" format="PNG" align="center" width="17cm" />
+ <imagedata fileref="images/AuthorWork.png" format="PNG" align="center" width="17cm" />
</imageobject>
</mediaobject>
@@ -266,9 +270,9 @@
alter table author_work
add constraint author_workFK1 foreign key (work_id) references works]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="example-mappings-customerorderproduct">
+ <section id="example-mappings-customerorderproduct">
<title>Customer/Order/Product</title>
<para>
@@ -284,10 +288,10 @@
<mediaobject>
<imageobject role="html">
- <imagedata fileref="../images/CustomerOrderProduct.png" format="PNG" align="center" />
+ <imagedata fileref="images/CustomerOrderProduct.png" format="PNG" align="center" />
</imageobject>
<imageobject role="fo">
- <imagedata fileref="../images/CustomerOrderProduct.png" format="PNG" align="center" width="17cm" />
+ <imagedata fileref="images/CustomerOrderProduct.png" format="PNG" align="center" width="17cm" />
</imageobject>
</mediaobject>
@@ -374,9 +378,9 @@
alter table line_items
add constraint line_itemsFK1 foreign key (order_id) references orders]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="misc">
+ <section id="misc">
<title>Miscellaneous example mappings</title>
<para>
@@ -387,7 +391,7 @@
<!-- <<para>TODO: put words around this stuff</para>-->
- <sect2 id="example-mappings-typed-onetone">
+ <section id="example-mappings-typed-onetone">
<title>"Typed" one-to-one association</title>
<programlisting role="XML"><![CDATA[<class name="Person">
<id name="name"/>
@@ -415,9 +419,9 @@
<property name="state"/>
<property name="zip"/>
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="example-mappings-composite-key">
+ <section id="example-mappings-composite-key">
<title>Composite key example</title>
<programlisting role="XML"><![CDATA[<class name="Customer">
@@ -532,9 +536,9 @@
</property>
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="example-mappings-composite-key-manytomany">
+ <section id="example-mappings-composite-key-manytomany">
<title>Many-to-many with shared composite key attribute</title>
<programlisting role="XML"><![CDATA[<class name="User" table="`User`">
<composite-id>
@@ -571,9 +575,9 @@
</set>
</class>
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="example-mappings-content-discrimination">
+ <section id="example-mappings-content-discrimination">
<title>Content based discrimination</title>
<programlisting role="XML"><![CDATA[<class name="Person"
discriminator-value="P">
@@ -625,9 +629,9 @@
</subclass>
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="example-mappings-association-alternatekeys" revision="2">
+ <section id="example-mappings-association-alternatekeys" revision="2">
<title>Associations on alternate keys</title>
<programlisting role="XML"><![CDATA[<class name="Person">
@@ -678,9 +682,9 @@
<property name="type" not-null="true"/>
</class>]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/example_parentchild.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/example_parentchild.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/example_parentchild.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="example-parentchild">
<title>Example: Parent/Child</title>
@@ -41,7 +45,7 @@
</para>
- <sect1 id="example-parentchild-collections">
+ <section id="example-parentchild-collections">
<title>A note about collections</title>
<para>
@@ -82,9 +86,9 @@
child is bound to the life cycle of the parent.
</para>
- </sect1>
+ </section>
- <sect1 id="example-parentchild-bidir">
+ <section id="example-parentchild-bidir">
<title>Bidirectional one-to-many</title>
<para>
@@ -195,9 +199,9 @@
session.save(c);
session.flush();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="example-parentchild-cascades">
+ <section id="example-parentchild-cascades">
<title>Cascading life cycle</title>
<para>
@@ -268,9 +272,9 @@
<literal>setParent()</literal>.
</para>
- </sect1>
+ </section>
- <sect1 id="example-parentchild-update">
+ <section id="example-parentchild-update">
<title>Cascades and <literal>unsaved-value</literal></title>
<para>
@@ -306,9 +310,9 @@
row exists.
</para>
- </sect1>
+ </section>
- <sect1 id="example-parentchild-conclusion">
+ <section id="example-parentchild-conclusion">
<title>Conclusion</title>
<para>
@@ -323,6 +327,6 @@
cannot own collections and they should not be the child of any entity other than the unique parent.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/example_weblog.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/example_weblog.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/example_weblog.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,12 +23,16 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="example-weblog">
<title>Example: Weblog Application</title>
- <sect1 id="example-weblog-classes">
+ <section id="example-weblog-classes">
<title>Persistent Classes</title>
<para>
@@ -110,9 +114,9 @@
}
}]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="example-weblog-mappings">
+ <section id="example-weblog-mappings">
<title>Hibernate Mappings</title>
<para>
@@ -203,9 +207,9 @@
</hibernate-mapping>]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="example-weblog-code">
+ <section id="example-weblog-code">
<title>Hibernate Code</title>
<para>
@@ -451,7 +455,7 @@
}
}]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/filters.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/filters.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/filters.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="filters">
<title>Filtering data</title>
@@ -34,7 +38,7 @@
enabled or disabled for a particular Hibernate session.
</para>
- <sect1 id="objectstate-filters" revision="1">
+ <section id="objectstate-filters" revision="1">
<title>Hibernate filters</title>
<para>
@@ -167,7 +171,7 @@
particular case.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/inheritance_mapping.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/inheritance_mapping.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/inheritance_mapping.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,12 +23,16 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="inheritance">
<title>Inheritance mapping</title>
- <sect1 id="inheritance-strategies" revision="3">
+ <section id="inheritance-strategies" revision="3">
<title>The three strategies</title>
<para>
@@ -99,7 +103,7 @@
</hibernate-mapping>]]></programlisting>
- <sect2 id="inheritance-tableperclass" >
+ <section id="inheritance-tableperclass" >
<title>Table per class hierarchy</title>
<para>
@@ -134,9 +138,9 @@
cannot have <literal>NOT NULL</literal> constraints.
</para>
- </sect2>
+ </section>
- <sect2 id="inheritance-tablepersubclass">
+ <section id="inheritance-tablepersubclass">
<title>Table per subclass</title>
<para>
@@ -170,9 +174,9 @@
is actually a one-to-one association.
</para>
- </sect2>
+ </section>
- <sect2 id="inheritance-tablepersubclass-discriminator" revision="2">
+ <section id="inheritance-tablepersubclass-discriminator" revision="2">
<title>Table per subclass: using a discriminator</title>
<para>
@@ -221,9 +225,9 @@
outer join when querying the superclass.
</para>
- </sect2>
+ </section>
- <sect2 id="inheritance-mixing-tableperclass-tablepersubclass">
+ <section id="inheritance-mixing-tableperclass-tablepersubclass">
<title>Mixing table per class hierarchy with table per subclass</title>
<para>
@@ -260,9 +264,9 @@
<programlisting role="XML"><![CDATA[<many-to-one name="payment" column="PAYMENT_ID" class="Payment"/>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="inheritance-tableperconcrete" revision="2">
+ <section id="inheritance-tableperconcrete" revision="2">
<title>Table per concrete class</title>
<para>
@@ -309,9 +313,9 @@
of the superclass.
</para>
- </sect2>
+ </section>
- <sect2 id="inheritance-tableperconcreate-polymorphism">
+ <section id="inheritance-tableperconcreate-polymorphism">
<title>Table per concrete class using implicit polymorphism</title>
<para>
@@ -349,7 +353,7 @@
using XML entities
(for example, <literal>[ <!ENTITY allproperties SYSTEM "allproperties.xml"> ]</literal>
in the <literal>DOCTYPE</literal> declaration and
- <literal>&allproperties;</literal> in the mapping).
+ <literal>&allproperties;</literal> in the mapping).
</para>
<para>
@@ -370,9 +374,9 @@
<column name="PAYMENT_ID"/>
</any>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="inheritance-mixingpolymorphism">
+ <section id="inheritance-mixingpolymorphism">
<title>Mixing implicit polymorphism with other inheritance mappings</title>
<para>
@@ -421,11 +425,11 @@
not instances of <literal>NonelectronicTransaction</literal>.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="inheritance-limitations">
+ <section id="inheritance-limitations">
<title>Limitations</title>
<para>
@@ -514,6 +518,6 @@
</tgroup>
</table>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/performance.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/performance.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/performance.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,12 +23,16 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="performance">
<title>Improving performance</title>
- <sect1 id="performance-fetching" revision="2">
+ <section id="performance-fetching" revision="2">
<title>Fetching strategies</title>
<para>
@@ -139,7 +143,7 @@
in any detached instance of a particular class.
</para>
- <sect2 id="performance-fetching-lazy">
+ <section id="performance-fetching-lazy">
<title>Working with lazy associations</title>
<para>
@@ -198,9 +202,9 @@
collections.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-custom" revision="4">
+ <section id="performance-fetching-custom" revision="4">
<title>Tuning fetch strategies</title>
<para>
@@ -278,9 +282,9 @@
second-level cache.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-proxies" revision="2">
+ <section id="performance-fetching-proxies" revision="2">
<title>Single-ended association proxies</title>
<para>
@@ -427,9 +431,9 @@
will result in immediate proxy initialization.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-initialization" revision="1">
+ <section id="performance-fetching-initialization" revision="1">
<title>Initializing collections and proxies</title>
<para>
@@ -521,9 +525,9 @@
<programlisting role="JAVA"><![CDATA[s.createFilter( lazyCollection, "").setFirstResult(0).setMaxResults(10).list();]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-batch">
+ <section id="performance-fetching-batch">
<title>Using batch fetching</title>
<para>
@@ -575,9 +579,9 @@
<emphasis>materialized path</emphasis> might be a better option for read-mostly trees.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-subselect">
+ <section id="performance-fetching-subselect">
<title>Using subselect fetching</title>
<para>
@@ -588,9 +592,9 @@
<!-- TODO: Write more about this -->
- </sect2>
+ </section>
- <sect2 id="performance-fetching-profiles">
+ <section id="performance-fetching-profiles">
<title>Fetch profiles</title>
<para>
@@ -657,9 +661,9 @@
styles. See <ulink url="http://opensource.atlassian.com/projects/hibernate/browse/HHH-3414">HHH-3414</ulink>
for details.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-fetching-lazyproperties">
+ <section id="performance-fetching-lazyproperties">
<title>Using lazy property fetching</title>
<para>
@@ -721,10 +725,10 @@
properties</literal> in HQL.
</para>
- </sect2>
- </sect1>
+ </section>
+ </section>
- <sect1 id="performance-cache" revision="1">
+ <section id="performance-cache" revision="1">
<title>The Second Level Cache</title>
<para>
@@ -809,7 +813,7 @@
</tgroup>
</table>
- <sect2 id="performance-cache-mapping" revision="2">
+ <section id="performance-cache-mapping" revision="2">
<title>Cache mappings</title>
<para>
@@ -865,9 +869,9 @@
The <literal>usage</literal> attribute specifies a <emphasis>cache concurrency strategy</emphasis>.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-cache-readonly">
+ <section id="performance-cache-readonly">
<title>Strategy: read only</title>
<para>
@@ -881,10 +885,10 @@
....
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="performance-cache-readwrite">
+ <section id="performance-cache-readwrite">
<title>Strategy: read/write</title>
<para>
@@ -907,9 +911,9 @@
</set>
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="performance-cache-nonstrict">
+ <section id="performance-cache-nonstrict">
<title>Strategy: nonstrict read/write</title>
<para>
@@ -921,9 +925,9 @@
<literal>Session.close()</literal> or <literal>Session.disconnect()</literal> is called.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-cache-transactional">
+ <section id="performance-cache-transactional">
<title>Strategy: transactional</title>
<para>
@@ -932,9 +936,9 @@
specify <literal>hibernate.transaction.manager_lookup_class</literal>.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-cache-compat-matrix">
+ <section id="performance-cache-compat-matrix">
<title>Cache-provider/concurrency-strategy compatibility</title>
<important>
@@ -1011,11 +1015,11 @@
</tgroup>
</table>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="performance-sessioncache" revision="2">
+ <section id="performance-sessioncache" revision="2">
<title>Managing the caches</title>
<para>
@@ -1109,9 +1113,9 @@
<programlisting><![CDATA[hibernate.generate_statistics true
hibernate.cache.use_structured_entries true]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="performance-querycache" revision="1">
+ <section id="performance-querycache" revision="1">
<title>The Query Cache</title>
<para>
@@ -1119,7 +1123,7 @@
frequently with the same parameters.
</para>
- <sect2 id="performance-querycache-enable">
+ <section id="performance-querycache-enable">
<title>Enabling query caching</title>
<para>
Caching of query results introduces some overhead in terms of your applications normal
@@ -1175,9 +1179,9 @@
collection caching).
</para>
</note>
- </sect2>
+ </section>
- <sect2 id="performance-querycache-regions">
+ <section id="performance-querycache-regions">
<title>Query cache regions</title>
<para>
If you require fine-grained control over query cache expiration policies, you can
@@ -1201,10 +1205,10 @@
efficient alternative to bulk eviction of the region via
<literal>org.hibernate.SessionFactory.evictQueries()</literal>.
</para>
- </sect2>
- </sect1>
+ </section>
+ </section>
- <sect1 id="performance-collections">
+ <section id="performance-collections">
<title>Understanding Collection performance</title>
<para>
@@ -1213,7 +1217,7 @@
collections at runtime.
</para>
- <sect2 id="performance-collections-taxonomy">
+ <section id="performance-collections-taxonomy">
<title>Taxonomy</title>
<para>Hibernate defines three basic kinds of collections:</para>
@@ -1290,9 +1294,9 @@
collection.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-collections-mostefficientupdate">
+ <section id="performance-collections-mostefficientupdate">
<title>Lists, maps, idbags and sets are the most efficient collections to update</title>
<para>
@@ -1325,9 +1329,9 @@
considerations of collection update performance simply do not apply.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-collections-mostefficentinverse">
+ <section id="performance-collections-mostefficentinverse">
<title>Bags and lists are the most efficient inverse collections</title>
<para>
@@ -1346,9 +1350,9 @@
p.getChildren().add(c); //no need to fetch the collection!
sess.flush();]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="performance-collections-oneshotdelete">
+ <section id="performance-collections-oneshotdelete">
<title>One shot delete</title>
<para>
@@ -1395,11 +1399,11 @@
One-shot-delete does not apply to collections mapped <literal>inverse="true"</literal>.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="performance-monitoring" revision="1">
+ <section id="performance-monitoring" revision="1">
<title>Monitoring performance</title>
<para>
@@ -1408,7 +1412,7 @@
Statistics in Hibernate are available per <literal>SessionFactory</literal>.
</para>
- <sect2 id="performance-monitoring-sf" revision="2">
+ <section id="performance-monitoring-sf" revision="2">
<title>Monitoring a SessionFactory</title>
<para>
@@ -1469,9 +1473,9 @@
method.
</para>
- </sect2>
+ </section>
- <sect2 id="performance-monitoring-metrics" revision="1">
+ <section id="performance-monitoring-metrics" revision="1">
<title>Metrics</title>
<para>
@@ -1542,8 +1546,8 @@
<literal>getSecondLevelCacheRegionNames()</literal>.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/persistent_classes.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/persistent_classes.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/persistent_classes.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="persistent-classes" revision="2">
<title>Persistent Classes</title>
@@ -43,7 +47,7 @@
ways (using trees of <literal>Map</literal> instances, for example).
</para>
- <sect1 id="persistent-classes-pojo">
+ <section id="persistent-classes-pojo">
<title>A simple POJO example</title>
<para>
@@ -134,7 +138,7 @@
</para>
- <sect2 id="persistent-classes-pojo-constructor" revision="1">
+ <section id="persistent-classes-pojo-constructor" revision="1">
<title>Implement a no-argument constructor</title>
<para>
@@ -144,9 +148,9 @@
default constructor with at least <emphasis>package</emphasis> visibility for runtime proxy
generation in Hibernate.
</para>
- </sect2>
+ </section>
- <sect2 id="persistent-classes-pojo-identifier" revision="2">
+ <section id="persistent-classes-pojo-identifier" revision="2">
<title>Provide an identifier property (optional)</title>
<para>
@@ -191,9 +195,9 @@
We recommend that you declare consistently-named identifier properties on persistent
classes and that you use a nullable (i.e., non-primitive) type.
</para>
- </sect2>
+ </section>
- <sect2 id="persistent-classes-pojo-final">
+ <section id="persistent-classes-pojo-final">
<title>Prefer non-final classes (optional)</title>
<para>
A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon the
@@ -210,9 +214,9 @@
non-final classes. If you want to use a class with a <literal>public final</literal>
method, you must explicitly disable proxying by setting <literal>lazy="false"</literal>.
</para>
- </sect2>
+ </section>
- <sect2 id="persistent-classes-pojo-accessors" revision="2">
+ <section id="persistent-classes-pojo-accessors" revision="2">
<title>Declare accessors and mutators for persistent fields (optional)</title>
<para>
@@ -231,11 +235,11 @@
<literal>private</literal> get / set pair.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="persistent-classes-inheritance">
+ <section id="persistent-classes-inheritance">
<title>Implementing inheritance</title>
<para>
@@ -255,9 +259,9 @@
this.name=name;
}
}]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="persistent-classes-equalshashcode" revision="1">
+ <section id="persistent-classes-equalshashcode" revision="1">
<title>Implementing <literal>equals()</literal> and <literal>hashCode()</literal></title>
<para>
@@ -340,9 +344,9 @@
candidates for a business key.
</para>
- </sect1>
+ </section>
- <sect1 id="persistent-classes-dynamicmodels">
+ <section id="persistent-classes-dynamicmodels">
<title>Dynamic models</title>
@@ -485,9 +489,9 @@
in <xref linkend="xml"/>.
</para>
- </sect1>
+ </section>
- <sect1 id="persistent-classes-tuplizers" revision="1">
+ <section id="persistent-classes-tuplizers" revision="1">
<title>Tuplizers</title>
<para>
@@ -554,10 +558,10 @@
}]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="persistent-classes-entity-name-resolver" revision="0">
+ <section id="persistent-classes-entity-name-resolver" revision="0">
<title>EntityNameResolvers</title>
<para>
@@ -701,7 +705,7 @@
</listitem>
</orderedlist>
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/portability.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -20,12 +20,17 @@
~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+
+]>
+
<chapter id="portability">
<title>Database Portability Considerations</title>
- <sect1 id="portability-basics">
+ <section id="portability-basics">
<title>Portability Basics</title>
<para>
@@ -36,9 +41,9 @@
the exact scenario, the basic idea is that you want Hibernate to help you run against any number
of databases without changes to your code, and ideally without any changes to the mapping metadata.
</para>
- </sect1>
+ </section>
- <sect1 id="portability-dialect">
+ <section id="portability-dialect">
<title>Dialect</title>
<para>
@@ -49,9 +54,9 @@
of dialects for many of the most popular databases. If you find that your particular database is
not among them, it is not terribly difficult to write your own.
</para>
- </sect1>
+ </section>
- <sect1 id="portability-dialectresolver">
+ <section id="portability-dialectresolver">
<title>Dialect resolution</title>
<para>
@@ -92,9 +97,9 @@
<constant>DIALECT_RESOLVERS</constant> constant on
<classname>org.hibernate.cfg.Environment</classname>).
</para>
- </sect1>
+ </section>
- <sect1 id="portability-idgen">
+ <section id="portability-idgen">
<title>Identifier generation</title>
<para>
@@ -148,9 +153,9 @@
<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> mimics the behavior of
a sequence on databases which do not support sequences by using a table.
</para>
- </sect1>
+ </section>
- <sect1 id="portability-functions">
+ <section id="portability-functions">
<title>Database functions</title>
<warning>
@@ -181,9 +186,9 @@
</para>
</important>
</para>
- </sect1>
+ </section>
- <sect1 id="portability-types">
+ <section id="portability-types">
<title>Type mappings</title>
<para>
@@ -192,13 +197,13 @@
<!--
todo :
- <sect2 id="portability-types-lobs">
+ <section id="portability-types-lobs">
<title>BLOB/CLOB mappings</title>
- </sect2>
+ </section>
- <sect2 id="portability-types-bool">
+ <section id="portability-types-bool">
<title>Boolean mappings</title>
- </sect2>
+ </section>
-->
- </sect1>
-</chapter>
\ No newline at end of file
+ </section>
+</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/preface.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/preface.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/preface.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<preface id="preface">
<title>Preface</title>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/query_criteria.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/query_criteria.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/query_criteria.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="querycriteria">
<title>Criteria Queries</title>
@@ -32,7 +36,7 @@
Hibernate features an intuitive, extensible criteria query API.
</para>
- <sect1 id="querycriteria-creating">
+ <section id="querycriteria-creating">
<title>Creating a <literal>Criteria</literal> instance</title>
<para>
@@ -45,9 +49,9 @@
crit.setMaxResults(50);
List cats = crit.list();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querycriteria-narrowing">
+ <section id="querycriteria-narrowing">
<title>Narrowing the result set</title>
<para>
@@ -117,9 +121,9 @@
.add( Property.forName("name").in( new String[] { "Fritz", "Izi", "Pk" } ) )
.list();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querycriteria-ordering">
+ <section id="querycriteria-ordering">
<title>Ordering the results</title>
<para>
@@ -140,9 +144,9 @@
.setMaxResults(50)
.list();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querycriteria-associations" revision="2">
+ <section id="querycriteria-associations" revision="2">
<title>Associations</title>
<para>
@@ -224,9 +228,9 @@
<para>
Thirdly, in memory; the lists would need to be joined manually.
</para>
- </sect1>
+ </section>
- <sect1 id="querycriteria-dynamicfetching" revision="1">
+ <section id="querycriteria-dynamicfetching" revision="1">
<title>Dynamic association fetching</title>
<para>
@@ -245,9 +249,9 @@
by outer join. See <xref linkend="performance-fetching"/> for more information.
</para>
- </sect1>
+ </section>
- <sect1 id="querycriteria-examples">
+ <section id="querycriteria-examples">
<title>Example queries</title>
<para>
@@ -290,9 +294,9 @@
.add( Example.create( cat.getMate() ) )
.list();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querycriteria-projection">
+ <section id="querycriteria-projection">
<title>Projections, aggregation and grouping</title>
<para>
The class <literal>org.hibernate.criterion.Projections</literal> is a
@@ -384,9 +388,9 @@
.addOrder( Order.desc("avgWeight") )
.list();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querycriteria-detachedqueries">
+ <section id="querycriteria-detachedqueries">
<title>Detached queries and subqueries</title>
<para>
The <literal>DetachedCriteria</literal> class allows you to create a query outside the scope
@@ -431,13 +435,13 @@
.add( Property.forName("weight").gt(avgWeightForSex) )
.list();]]></programlisting>
- </sect1>
+ </section>
<!--TODO: ResultSetTransformer + aliasing. AliasToBeanTransformer allow returning arbitrary
user objects - similar to setResultClass in JDO2. General use of ResultTransformer
could also be explained. -->
- <sect1 id="query-criteria-naturalid">
+ <section id="query-criteria-naturalid">
<title>Queries by natural identifier</title>
<para>
@@ -483,6 +487,6 @@
).setCacheable(true)
.uniqueResult();]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/query_hql.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/query_hql.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="queryhql" revision="1">
<title>HQL: The Hibernate Query Language</title>
@@ -34,7 +38,7 @@
and understands notions like inheritance, polymorphism and association.
</para>
- <sect1 id="queryhql-casesensitivity">
+ <section id="queryhql-casesensitivity">
<title>Case Sensitivity</title>
<para>
@@ -53,9 +57,9 @@
more readable, but this convention is unsuitable for queries embedded in Java code.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-from">
+ <section id="queryhql-from">
<title>The from clause</title>
<para>
@@ -101,9 +105,9 @@
(e.g. <literal>domesticCat</literal>).
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-joins" revision="2">
+ <section id="queryhql-joins" revision="2">
<title>Associations and joins</title>
<para>
@@ -213,9 +217,9 @@
<programlisting><![CDATA[from Document fetch all properties order by name]]></programlisting>
<programlisting><![CDATA[from Document doc fetch all properties where lower(doc.name) like '%cats%']]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-joins-forms">
+ <section id="queryhql-joins-forms">
<title>Forms of join syntax</title>
<para>
@@ -235,9 +239,9 @@
</para>
<programlisting><![CDATA[from Cat as cat where cat.mate.name like '%s%']]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-identifier-property">
+ <section id="queryhql-identifier-property">
<title>Referring to identifier property</title>
<para>
@@ -274,9 +278,9 @@
</para>
</important>
- </sect1>
+ </section>
- <sect1 id="queryhql-select">
+ <section id="queryhql-select">
<title>The select clause</title>
<para>
@@ -351,9 +355,9 @@
This query returns a <literal>Map</literal> from aliases to selected values.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-aggregation">
+ <section id="queryhql-aggregation">
<title>Aggregate functions</title>
<para>
@@ -416,9 +420,9 @@
select count(distinct cat.name), count(cat) from Cat cat]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-polymorphism">
+ <section id="queryhql-polymorphism">
<title>Polymorphic queries</title>
<para>
@@ -450,9 +454,9 @@
It also means you cannot call these queries using <literal>Query.scroll()</literal>.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-where" revision="1">
+ <section id="queryhql-where" revision="1">
<title>The where clause</title>
<para>
@@ -577,9 +581,9 @@
would refer to the values of completely different database columns in the above query.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-expressions">
+ <section id="queryhql-expressions">
<title>Expressions</title>
<para>
@@ -870,9 +874,9 @@
AND cust.current_order = o.id
)]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-ordering">
+ <section id="queryhql-ordering">
<title>The order by clause</title>
<para>
@@ -886,9 +890,9 @@
The optional <literal>asc</literal> or <literal>desc</literal> indicate ascending or descending order
respectively.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-grouping" revision="1">
+ <section id="queryhql-grouping" revision="1">
<title>The group by clause</title>
<para>
@@ -934,9 +938,9 @@
non-aggregated properties explicitly.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-subqueries" revision="3">
+ <section id="queryhql-subqueries" revision="3">
<title>Subqueries</title>
<para>
@@ -977,9 +981,9 @@
<xref linkend="queryhql-tuple"/> for more information.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-examples">
+ <section id="queryhql-examples">
<title>HQL examples</title>
<para>
@@ -1100,9 +1104,9 @@
and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, PaymentStatus.UNPAID)
order by account.type.sortOrder, account.accountNumber, payment.dueDate]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-bulk" revision="2">
+ <section id="queryhql-bulk" revision="2">
<title>Bulk update and delete</title>
<para>
@@ -1110,9 +1114,9 @@
<literal>insert ... select ...</literal> statements.
See <xref linkend="batch-direct"/> for more information.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-tipstricks">
+ <section id="queryhql-tipstricks">
<title>Tips & Tricks</title>
<para>
@@ -1190,9 +1194,9 @@
<programlisting role="JAVA"><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="queryhql-components">
+ <section id="queryhql-components">
<title>Components</title>
<para>
@@ -1221,9 +1225,9 @@
<para>
Another common use of components is in <link linkend="queryhql-tuple">row value constructors</link>.
</para>
- </sect1>
+ </section>
- <sect1 id="queryhql-tuple">
+ <section id="queryhql-tuple">
<title>Row value constructor syntax</title>
<para>
@@ -1263,7 +1267,7 @@
be dependent upon the ordering of the component sub-properties in the metadata.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/query_sql.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/query_sql.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/query_sql.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="querysql" revision="2">
<title>Native SQL</title>
@@ -37,7 +41,7 @@
<para>Hibernate3 allows you to specify handwritten SQL, including stored
procedures, for all create, update, delete, and load operations.</para>
- <sect1 id="querysql-creating" revision="4">
+ <section id="querysql-creating" revision="4">
<title>Using a <literal>SQLQuery</literal></title>
<para>Execution of native SQL queries is controlled via the
@@ -45,7 +49,7 @@
<literal>Session.createSQLQuery()</literal>. The following sections describe how
to use this API for querying.</para>
- <sect2>
+ <section>
<title>Scalar queries</title>
<para>The most basic SQL query is to get a list of scalars
@@ -108,9 +112,9 @@
not mapped, or does not result in the expected type, it is possible to
customize it via calls to <literal>registerHibernateType</literal> in
the Dialect.</para>
- </sect2>
+ </section>
- <sect2>
+ <section>
<title>Entity queries</title>
<para>The above queries were all about returning scalar values,
@@ -150,9 +154,9 @@
]]></programlisting>
<para>This will allow cat.getDog() to function properly.</para>
- </sect2>
+ </section>
- <sect2>
+ <section>
<title>Handling associations and collections</title>
<para>It is possible to eagerly join in the <literal>Dog</literal> to
@@ -183,9 +187,9 @@
enhance the sql queries to make them usable in Hibernate. Problems can arise when returning
multiple entities of the same type or when the default alias/column names are not enough.
</para>
- </sect2>
+ </section>
- <sect2>
+ <section>
<title>Returning multiple entities</title>
<para>Until now, the result set column names are assumed to be the same
@@ -251,7 +255,7 @@
.addEntity("mother", Cat.class).list()
]]></programlisting>
- <sect3 id="querysql-aliasreferences" revision="2">
+ <section id="querysql-aliasreferences" revision="2">
<title>Alias and property references</title>
<para>In most cases the above alias injection is needed. For
@@ -368,10 +372,10 @@
</tbody>
</tgroup>
</table>
- </sect3>
- </sect2>
+ </section>
+ </section>
- <sect2>
+ <section>
<title>Returning non-managed entities</title>
<para>It is possible to apply a ResultTransformer to native SQL queries, allowing it to return non-managed entities.</para>
@@ -395,17 +399,17 @@
The above query will return a list of <literal>CatDTO</literal> which has been instantiated and injected the values of NAME and BIRTHNAME into its corresponding
properties or fields.
</para>
- </sect2>
+ </section>
- <sect2>
+ <section>
<title>Handling inheritance</title>
<para>Native SQL queries which query for entities that are mapped as part
of an inheritance must include all properties for the baseclass and all
its subclasses.</para>
- </sect2>
+ </section>
- <sect2>
+ <section>
<title>Parameters</title>
<para>Native SQL queries support positional as well as named
@@ -416,13 +420,13 @@
query = sess.createSQLQuery("SELECT * FROM CATS WHERE NAME like :name").addEntity(Cat.class);
List pusList = query.setString("name", "Pus%").list(); ]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="querysql-namedqueries" revision="3">
+ <section id="querysql-namedqueries" revision="3">
<title>Named SQL queries</title>
<para>Named SQL queries can be defined in the mapping document and called
@@ -509,7 +513,7 @@
.setResultSetMapping("catAndKitten")
.list();]]></programlisting>
- <sect2 id="propertyresults">
+ <section id="propertyresults">
<title>Using return-property to explicitly specify column/alias
names</title>
@@ -560,9 +564,9 @@
<para>If your mapping has a discriminator you must use
<literal><return-discriminator></literal> to specify the
discriminator column.</para>
- </sect2>
+ </section>
- <sect2 id="sp_query" revision="1">
+ <section id="sp_query" revision="1">
<title>Using stored procedures for querying</title>
<para>Hibernate3 provides support for queries via stored procedures
@@ -607,7 +611,7 @@
entities. <literal><return-join></literal> and
<literal><load-collection></literal> are not supported.</para>
- <sect3 id="querysql-limits-storedprocedures" revision="1">
+ <section id="querysql-limits-storedprocedures" revision="1">
<title>Rules/limitations for using stored procedures</title>
<para>You cannot use stored procedures with Hibernate unless you follow some procedure/function
@@ -655,11 +659,11 @@
requirement.</para>
</listitem>
</itemizedlist>
- </sect3>
- </sect2>
- </sect1>
+ </section>
+ </section>
+ </section>
- <sect1 id="querysql-cud">
+ <section id="querysql-cud">
<title>Custom SQL for create, update and delete</title>
<para>Hibernate3 can use custom SQL for create, update, and delete operations.
@@ -731,9 +735,9 @@
return SQL%ROWCOUNT;
END updatePerson;]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="querysql-load">
+ <section id="querysql-load">
<title>Custom SQL for loading</title>
<para>You can also declare your own SQL (or HQL) queries for entity
@@ -792,5 +796,5 @@
ON pers.ID = emp.PERSON_ID
WHERE ID=?
</sql-query>]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/session_api.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="objectstate">
<title>Working with objects</title>
@@ -44,7 +48,7 @@
relevant for the application developer when tuning the performance of the system.
</para>
- <sect1 id="objectstate-overview">
+ <section id="objectstate-overview">
<title>Hibernate object states</title>
<para>
@@ -95,9 +99,9 @@
trigger a transition) in more detail.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-makingpersistent" revision="1">
+ <section id="objectstate-makingpersistent" revision="1">
<title>Making objects persistent</title>
<para>
@@ -177,9 +181,9 @@
Transitive persistence is discussed later in this chapter.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-loading">
+ <section id="objectstate-loading">
<title>Loading an object</title>
<para>
@@ -259,9 +263,9 @@
<xref linkend="performance-fetching"/>.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-querying" revision="1">
+ <section id="objectstate-querying" revision="1">
<title>Querying</title>
<para>
@@ -273,7 +277,7 @@
optional support from Hibernate for result set conversion into objects.
</para>
- <sect2 id="objectstate-querying-executing" revision="1">
+ <section id="objectstate-querying-executing" revision="1">
<title>Executing queries</title>
<para>
@@ -318,7 +322,7 @@
these duplicates through a <literal>Set</literal>.
</para>
- <sect3 id="objectstate-querying-executing-iterate">
+ <section id="objectstate-querying-executing-iterate">
<title>Iterating results</title>
<para>
@@ -345,9 +349,9 @@
break;
}
}]]></programlisting>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-tuples">
+ <section id="objectstate-querying-executing-tuples">
<title>Queries that return tuples</title>
<para>
@@ -367,9 +371,9 @@
....
}]]></programlisting>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-scalar" revision="1">
+ <section id="objectstate-querying-executing-scalar" revision="1">
<title>Scalar results</title>
<para>
@@ -392,9 +396,9 @@
.....
}]]></programlisting>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-parameters">
+ <section id="objectstate-querying-executing-parameters">
<title>Bind parameters</title>
<para>
@@ -442,9 +446,9 @@
q.setParameterList("namesList", names);
List cats = q.list();]]></programlisting>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-pagination">
+ <section id="objectstate-querying-executing-pagination">
<title>Pagination</title>
<para>
@@ -463,9 +467,9 @@
SQL of your DBMS.
</para>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-scrolling">
+ <section id="objectstate-querying-executing-scrolling">
<title>Scrollable iteration</title>
<para>
@@ -503,9 +507,9 @@
if you need offline pagination functionality.
</para>
- </sect3>
+ </section>
- <sect3 id="objectstate-querying-executing-named" revision="1">
+ <section id="objectstate-querying-executing-named" revision="1">
<title>Externalizing named queries</title>
<para>
@@ -543,11 +547,11 @@
<literal>eg.Cat.ByNameAndMaximumWeight</literal>.
</para>
- </sect3>
+ </section>
- </sect2>
+ </section>
- <sect2 id="objectstate-filtering" revision="1">
+ <section id="objectstate-filtering" revision="1">
<title>Filtering collections</title>
<para>
A collection <emphasis>filter</emphasis> is a special type of query that can be applied to
@@ -588,9 +592,9 @@
.setFirstResult(0).setMaxResults(10)
.list();]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="objecstate-querying-criteria" revision="1">
+ <section id="objecstate-querying-criteria" revision="1">
<title>Criteria queries</title>
<para>
@@ -609,9 +613,9 @@
API are discussed in more detail in <xref linkend="querycriteria"/>.
</para>
- </sect2>
+ </section>
- <sect2 id="objectstate-querying-nativesql" revision="2">
+ <section id="objectstate-querying-nativesql" revision="2">
<title>Queries in native SQL</title>
<para>
@@ -639,11 +643,11 @@
<xref linkend="querysql"/>.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="objectstate-modifying" revision="1">
+ <section id="objectstate-modifying" revision="1">
<title>Modifying persistent objects</title>
<para>
@@ -682,9 +686,9 @@
</para>
</important>
- </sect1>
+ </section>
- <sect1 id="objectstate-detached" revision="2">
+ <section id="objectstate-detached" revision="2">
<title>Modifying detached objects</title>
<para>
@@ -757,9 +761,9 @@
Other models for long units of work are discussed in <xref linkend="transactions-optimistic"/>.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-saveorupdate">
+ <section id="objectstate-saveorupdate">
<title>Automatic state detection</title>
<para>
@@ -895,9 +899,9 @@
</listitem>
</itemizedlist>
- </sect1>
+ </section>
- <sect1 id="objectstate-deleting" revision="1">
+ <section id="objectstate-deleting" revision="1">
<title>Deleting persistent objects</title>
<para>
@@ -917,9 +921,9 @@
children.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-replicating" revision="1">
+ <section id="objectstate-replicating" revision="1">
<title>Replicating object between two different datastores</title>
<para>
@@ -981,9 +985,9 @@
rolling back changes made during non-ACID transactions and more.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-flushing">
+ <section id="objectstate-flushing">
<title>Flushing the Session</title>
<para>
@@ -1094,9 +1098,9 @@
behavior, we discuss it in <xref linkend="transactions"/>.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-transitive" revision="1">
+ <section id="objectstate-transitive" revision="1">
<title>Transitive persistence</title>
<para>
@@ -1248,9 +1252,9 @@
<literal>Session</literal>.
</para>
- </sect1>
+ </section>
- <sect1 id="objectstate-metadata">
+ <section id="objectstate-metadata">
<title>Using metadata</title>
<para>
@@ -1282,7 +1286,7 @@
}
}]]></programlisting>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/toolset_guide.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/toolset_guide.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/toolset_guide.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="toolsetguide" revision="2">
<title>Toolset Guide</title>
@@ -75,7 +79,7 @@
be used from "inside" Hibernate.
</para>
- <sect1 id="toolsetguide-s1" revision="2">
+ <section id="toolsetguide-s1" revision="2">
<title>Automatic schema generation</title>
<para>
@@ -95,7 +99,7 @@
First, you must customize your mapping files to improve the generated schema. The next section covers schema customization.
</para>
- <sect2 id="toolsetguide-s1-2" revision="3">
+ <section id="toolsetguide-s1-2" revision="3">
<title>Customizing the schema</title>
<para>
@@ -304,9 +308,9 @@
DDL where supported.
</para>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-3" revision="2">
+ <section id="toolsetguide-s1-3" revision="2">
<title>Running the tool</title>
<para>
@@ -384,9 +388,9 @@
<programlisting role="JAVA"><![CDATA[Configuration cfg = ....;
new SchemaExport(cfg).create(false, true);]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-4">
+ <section id="toolsetguide-s1-4">
<title>Properties</title>
<para>
@@ -445,9 +449,9 @@
</tgroup>
</table>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-5">
+ <section id="toolsetguide-s1-5">
<title>Using Ant</title>
<para>
@@ -472,9 +476,9 @@
</schemaexport>
</target>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-6" revision="2">
+ <section id="toolsetguide-s1-6" revision="2">
<title>Incremental schema updates</title>
<para>
@@ -531,9 +535,9 @@
<programlisting role="JAVA"><![CDATA[Configuration cfg = ....;
new SchemaUpdate(cfg).execute(false);]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-7">
+ <section id="toolsetguide-s1-7">
<title>Using Ant for incremental schema updates</title>
<para>
@@ -554,9 +558,9 @@
</schemaupdate>
</target>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-8" revision="1">
+ <section id="toolsetguide-s1-8" revision="1">
<title>Schema validation</title>
<para>
@@ -606,9 +610,9 @@
<programlisting role="JAVA"><![CDATA[Configuration cfg = ....;
new SchemaValidator(cfg).validate();]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="toolsetguide-s1-9">
+ <section id="toolsetguide-s1-9">
<title>Using Ant for schema validation</title>
<para>
@@ -628,9 +632,9 @@
</schemavalidator>
</target>]]></programlisting>
- </sect2>
+ </section>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/transactions.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/transactions.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/transactions.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="transactions" revision="2">
<title>Transactions and Concurrency</title>
@@ -56,7 +60,7 @@
<literal>Session</literal>, as well as database transactions and long conversations.
</para>
- <sect1 id="transactions-basics" revision="1">
+ <section id="transactions-basics" revision="1">
<title>Session and transaction scopes</title>
<para>
@@ -88,7 +92,7 @@
database transaction boundaries? These questions are addressed in the following sections.
</para>
- <sect2 id="transactions-basics-uow" revision="1">
+ <section id="transactions-basics-uow" revision="1">
<title>Unit of work</title>
<para>
@@ -167,9 +171,9 @@
this <emphasis>Open Session in View</emphasis> pattern.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-basics-apptx" revision="1">
+ <section id="transactions-basics-apptx" revision="1">
<title>Long conversations</title>
<para>
@@ -261,9 +265,9 @@
These disadvantages are discussed later in this chapter in the context of optimistic concurrency control.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-basics-identity">
+ <section id="transactions-basics-identity">
<title>Considering object identity</title>
<para>
@@ -328,9 +332,9 @@
a Hibernate issue, but simply how Java object identity and equality has to be implemented.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-basics-issues">
+ <section id="transactions-basics-issues">
<title>Common issues</title>
<para>
@@ -378,11 +382,11 @@
</listitem>
</itemizedlist>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="transactions-demarcation">
+ <section id="transactions-demarcation">
<title>Database transaction demarcation</title>
<para>
@@ -447,7 +451,7 @@
</para>
- <sect2 id="transactions-demarcation-nonmanaged" revision="2">
+ <section id="transactions-demarcation-nonmanaged" revision="2">
<title>Non-managed environment</title>
<para>
@@ -520,9 +524,9 @@
<literal>hibernate.current_session_context_class</literal>.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-demarcation-jta" revision="3">
+ <section id="transactions-demarcation-jta" revision="3">
<title>Using JTA</title>
<para>
@@ -623,9 +627,9 @@
<literal>iterate()</literal> from the JTA or CMT code.)
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-demarcation-exceptions">
+ <section id="transactions-demarcation-exceptions">
<title>Exception handling</title>
<para>
@@ -698,9 +702,9 @@
</listitem>
</itemizedlist>
- </sect2>
+ </section>
- <sect2 id="transactions-demarcation-timeout">
+ <section id="transactions-demarcation-timeout">
<title>Transaction timeout</title>
<para>
@@ -741,11 +745,11 @@
where transaction timeouts must be defined declaratively.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="transactions-optimistic">
+ <section id="transactions-optimistic">
<title>Optimistic concurrency control</title>
<para>
@@ -758,7 +762,7 @@
also has the benefit of preventing lost updates in single database transactions.
</para>
- <sect2 id="transactions-optimistic-manual">
+ <section id="transactions-optimistic-manual">
<title>Application version checking</title>
<para>
@@ -805,9 +809,9 @@
as the design paradigm.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-optimistic-longsession">
+ <section id="transactions-optimistic-longsession">
<title>Extended session and automatic versioning</title>
<para>
@@ -883,9 +887,9 @@
for this. See the Hibernate Wiki for examples.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-optimistic-detached">
+ <section id="transactions-optimistic-detached">
<title>Detached objects and automatic versioning</title>
<para>
@@ -915,9 +919,9 @@
caches) if you are sure that the object has not been modified.
</para>
- </sect2>
+ </section>
- <sect2 id="transactions-optimistic-customizing">
+ <section id="transactions-optimistic-customizing">
<title>Customizing automatic versioning</title>
<para>
@@ -958,11 +962,11 @@
the instance to ensure that changes did occur before updating the row.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="transactions-locking">
+ <section id="transactions-locking">
<title>Pessimistic locking</title>
<para>
@@ -1062,9 +1066,9 @@
portable.
</para>
- </sect1>
+ </section>
- <sect1 id="transactions-connection-release">
+ <section id="transactions-connection-release">
<title>Connection release modes</title>
<para>
@@ -1147,7 +1151,7 @@
</listitem>
</itemizedlist>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/tutorial.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/tutorial.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/tutorial.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -24,8 +24,11 @@
-->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY mdash "-">
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+<!ENTITY mdash "-">
]>
+
<chapter id="tutorial">
<title>Tutorial</title>
@@ -55,7 +58,7 @@
</para>
</note>
- <sect1 id="tutorial-firstapp">
+ <section id="tutorial-firstapp">
<title>Part 1 - The first Hibernate Application</title>
<para>
@@ -72,7 +75,7 @@
</para>
</note>
- <sect2 id="tutorial-firstapp-setup">
+ <section id="tutorial-firstapp-setup">
<title>Setup</title>
<para>
@@ -155,10 +158,10 @@
<para>
Save this file as <filename>pom.xml</filename> in the project root directory.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-firstclass">
+ <section id="tutorial-firstapp-firstclass">
<title>The first class</title>
<para>
@@ -238,9 +241,9 @@
Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</filename>
directory.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-mapping">
+ <section id="tutorial-firstapp-mapping">
<title>The mapping file</title>
<para>
@@ -414,9 +417,9 @@
<filename>src/main/resources/org/hibernate/tutorial/domain/Event.hbm.xml</filename>.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-configuration" revision="2">
+ <section id="tutorial-firstapp-configuration" revision="2">
<title>Hibernate configuration</title>
<para>
@@ -542,9 +545,9 @@
<filename>src/main/resources</filename> directory.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-mvn" revision="1">
+ <section id="tutorial-firstapp-mvn" revision="1">
<title>Building with Maven</title>
<para>
@@ -575,9 +578,9 @@
[INFO] Final Memory: 5M/547M
[INFO] ------------------------------------------------------------------------]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-helpers" revision="3">
+ <section id="tutorial-firstapp-helpers" revision="3">
<title>Startup and helpers</title>
<para>
@@ -665,9 +668,9 @@
Hibernate.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-firstapp-workingpersistence" revision="5">
+ <section id="tutorial-firstapp-workingpersistence" revision="5">
<title>Loading and storing objects</title>
<para>
@@ -855,11 +858,11 @@
<command>mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.EventManager" -Dexec.args="list"</command>
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="tutorial-associations">
+ <section id="tutorial-associations">
<title>Part 2 - Mapping associations</title>
<para>
@@ -869,7 +872,7 @@
which they participate.
</para>
- <sect2 id="tutorial-associations-mappinguser" revision="1">
+ <section id="tutorial-associations-mappinguser" revision="1">
<title>Mapping the Person class</title>
<para>
@@ -928,9 +931,9 @@
behavior.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-associations-unidirset" revision="3">
+ <section id="tutorial-associations-unidirset" revision="3">
<title>A unidirectional Set-based association</title>
<para>
@@ -1019,9 +1022,9 @@
|_____________|
]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="tutorial-associations-working" revision="2">
+ <section id="tutorial-associations-working" revision="2">
<title>Working the association</title>
<para>
@@ -1140,9 +1143,9 @@
entities, but looks almost the same in Java.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-associations-valuecollections">
+ <section id="tutorial-associations-valuecollections">
<title>Collection of values</title>
<para>
@@ -1232,9 +1235,9 @@
optimize this with an eager fetch.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-associations-bidirectional" revision="1">
+ <section id="tutorial-associations-bidirectional" revision="1">
<title>Bi-directional associations</title>
<para>
@@ -1291,9 +1294,9 @@
understand once you see how the bi-directional link between our two entities is created.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-associations-usingbidir">
+ <section id="tutorial-associations-usingbidir">
<title>Working bi-directional links</title>
<para>
@@ -1347,11 +1350,11 @@
and in many-to-many association you can select either side.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="tutorial-webapp">
+ <section id="tutorial-webapp">
<title>Part 3 - The EventManager web application</title>
<para>
@@ -1361,7 +1364,7 @@
database, and it provides an HTML form to enter new events.
</para>
- <sect2 id="tutorial-webapp-servlet" revision="2">
+ <section id="tutorial-webapp-servlet" revision="2">
<title>Writing the basic servlet</title>
<para>
@@ -1441,9 +1444,9 @@
as you consider rendering your view in JSP, not in a servlet.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-webapp-processing" revision="1">
+ <section id="tutorial-webapp-processing" revision="1">
<title>Processing and rendering</title>
<para>
@@ -1551,9 +1554,9 @@
examples.
</para>
- </sect2>
+ </section>
- <sect2 id="tutorial-webapp-deploy">
+ <section id="tutorial-webapp-deploy">
<title>Deploying and testing</title>
<para>
@@ -1602,11 +1605,11 @@
is called) and to get the detailed output if any exceptions occurs.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="tutorial-summary" revision="1">
+ <section id="tutorial-summary" revision="1">
<title>Summary</title>
<para>
@@ -1615,6 +1618,6 @@
<ulink url="http://hibernate.org">website</ulink>.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/content/xml.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/content/xml.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/content/xml.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -23,8 +23,12 @@
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "../HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.ent">
+%BOOK_ENTITIES;
+]>
+
<chapter id="xml">
<title>XML Mapping</title>
@@ -33,7 +37,7 @@
active development.
</emphasis></para>
- <sect1 id="xml-intro" revision="1">
+ <section id="xml-intro" revision="1">
<title>Working with XML data</title>
<para>
@@ -64,7 +68,7 @@
it can be used to map just the XML.
</para>
- <sect2 id="xml-intro-mapping">
+ <section id="xml-intro-mapping">
<title>Specifying XML and class mapping together</title>
<para>
@@ -91,9 +95,9 @@
...
</class>]]></programlisting>
- </sect2>
+ </section>
- <sect2 id="xml-onlyxml">
+ <section id="xml-onlyxml">
<title>Specifying only an XML mapping</title>
<para>
@@ -130,11 +134,11 @@
are purely logical constructs that can be referred to in HQL queries.
</para>
- </sect2>
+ </section>
- </sect1>
+ </section>
- <sect1 id="xml-mapping" revision="1">
+ <section id="xml-mapping" revision="1">
<title>XML mapping metadata</title>
<para>
@@ -256,10 +260,10 @@
...
</customer>]]></programlisting>
- </sect1>
+ </section>
- <sect1 id="xml-manipulation" revision="1">
+ <section id="xml-manipulation" revision="1">
<title>Manipulating XML data</title>
<para>
@@ -307,7 +311,7 @@
operation.
</para>
- </sect1>
+ </section>
</chapter>
Modified: core/trunk/documentation/manual/src/main/docbook/en-US/legal_notice.xml
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/en-US/legal_notice.xml 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/en-US/legal_notice.xml 2010-02-11 07:04:06 UTC (rev 18776)
@@ -22,8 +22,9 @@
~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA
-->
-<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
<legalnotice id="Legal_Notice">
<title>Legal Notice</title>
<para>
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-23 18:41+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - Persistencia Relacional para Java Idiomático"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "Documentación de Referencia de Hibernate"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Branch 3_3\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-16 18:47+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-06-16 18:47+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,99 +1,102 @@
-#, fuzzy
+# translation of architecture.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-04 10:30+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr "Arquitectura"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
-msgstr "Visión General"
+msgstr "Sinopsis"
#. Tag: para
-#: architecture.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
-msgstr "Una visión a (muy) alto nivel de la arquitectura de Hibernate:"
+msgstr ""
+"El diagrama a continuación brinda una perspectiva a alto nivel de la "
+"arquitectura de Hibernate:"
#. Tag: para
-#: architecture.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We do not have the scope in this document to provide a more detailed view of "
"all the runtime architectures available; Hibernate is flexible and supports "
"several different approaches. We will, however, show the two extremes: "
"\"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
-"Nos gustaría mostrar una vista más detallada de la "
-"arquitectura de tiempo de ejecución. Desafortunadamente, Hibernate es "
-"flexible y soporta diferentes enfoques. Mostraremos los dos extremos. En la "
-"arquitectura \"sencilla\", es la aplicación la que provee su propias "
-"conexiones JDBC y gestiona sus propias transacciones. Este enfoque usa un "
-"mínimo subconjunto de la API de Hibernate:"
+"Este documento no incluye una sinopsis detallada de la arquitecturas en "
+"tiempo de ejecución disponibles; Hibernate es flexible y soporta diferentes "
+"enfoques. Sin embargo, mostraremos los dos extremos: la arquitectura \"mÃnima"
+"\" y la arquitectura \"completa\"."
#. Tag: para
-#: architecture.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This next diagram illustrates how Hibernate utilizes database and "
"configuration data to provide persistence services, and persistent objects, "
"to the application."
msgstr ""
-"Este diagrama muestra a Hibernate usando la base de datos y los datos de "
-"configuración para proveer servicios de persistencia (y objetos "
-"persistentes) a la aplicación."
+"Este diagrama ilustra la manera en que Hibernate utiliza la base de datos y "
+"los datos de configuración para proporcionar servicios de persistencia y "
+"objetos persistentes a la aplicación."
#. Tag: para
-#: architecture.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"minimal\" architecture has the application provide its own JDBC "
"connections and manage its own transactions. This approach uses a minimal "
"subset of Hibernate's APIs:"
msgstr ""
-"Nos gustaría mostrar una vista más detallada de la "
-"arquitectura de tiempo de ejecución. Desafortunadamente, Hibernate es "
-"flexible y soporta diferentes enfoques. Mostraremos los dos extremos. En la "
-"arquitectura \"sencilla\", es la aplicación la que provee su propias "
-"conexiones JDBC y gestiona sus propias transacciones. Este enfoque usa un "
-"mínimo subconjunto de la API de Hibernate:"
+"La arquitectura \"mÃnima\" hace que la aplicación proporcione sus propias "
+"conexiones JDBC y que administre sus propias transacciones. Este enfoque "
+"utiliza un subgrupo mÃnimo de las APIs de Hibernate:"
#. Tag: para
-#: architecture.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
-"La arquitectura \"full cream\" abstrae a la aplicación de las APIs de "
-"JDBC/JTA y deja que Hibernate se encargue de los detalles."
+"La arquitectura \"completa\" abstrae la aplicación de las APIs de JDBC/JTA y "
+"permite que Hibernate se encargue de los detalles."
#. Tag: para
-#: architecture.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
-msgstr "He aquí algunas definiciones de los objetos en los diagramas:"
+msgstr "He aquà algunas definiciones de los objetos en los diagramas: "
#. Tag: term
-#: architecture.xml:97
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A threadsafe, immutable cache of compiled mappings for a single database. A "
"factory for <literal>Session</literal> and a client of "
@@ -101,21 +104,19 @@
"hold an optional (second-level) cache of data that is reusable between "
"transactions at a process, or cluster, level."
msgstr ""
-"Caché threadsafe (inmutable) de mapeos compilados para una sola base "
-"de datos. Es una fábrica de <literal>Session</literal> y un cliente "
-"de <literal>ConnectionProvider</literal>. Opcionalmente, puede mantener una "
-"caché (de segundo nivel) de datos reusables entre transacciones, a un "
-"nivel de proceso o de cluster."
+"Un caché threadsafe (inmutable) de mapeos compilados para una sola base de "
+"datos. Una fábrica de <literal>Session</literal> y un cliente de "
+"<literal>ConnectionProvider</literal>, <literal>SessionFactory</literal> "
+"puede mantener un caché opcional (de segundo nivel) de datos reusables entre "
+"transacciones a nivel de proceso o de clúster."
#. Tag: term
-#: architecture.xml:109
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
"the application and the persistent store. It wraps a JDBC connection and is "
@@ -123,22 +124,20 @@
"holds a mandatory first-level cache of persistent objects that are used when "
"navigating the object graph or looking up objects by identifier."
msgstr ""
-"Objeto mono-hebra, de corta vida que representa una conversación "
-"entre la aplicación y el almacenamiento persistente. Envuelve una "
-"conexión JDBC. Es una fábrica de <literal>Transaction</"
-"literal>. Mantiene una caché requerida (de primer nivel) de objetos "
-"persistentes, usada mientras se navega el grafo de objetos o se recuperen "
-"objetos por identificador."
+"Un objeto mono-hebra, de corta vida que representa una conversación entre la "
+"aplicación y el almacenamiento persistente. Envuelve una conexión JDBC y es "
+"una fábrica de <literal>Transaction</literal>. <literal>Session</literal> "
+"mantiene un caché requerido de primer nivel de objetos persistentes, que se "
+"utiliza cuando se navega el gráfico de objetos o mientras se buscan objetos "
+"por identificador."
#. Tag: term
-#: architecture.xml:121
#, no-c-format
msgid "Persistent objects and collections"
msgstr "Objetos y colecciones persistentes"
#. Tag: para
-#: architecture.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
@@ -147,45 +146,39 @@
"in any application layer (for example, directly as data transfer objects to "
"and from presentation)."
msgstr ""
-"Objetos de corta vida, mono-hebra conteniendo estado persistente y "
-"funciónalidad de negocio. Estos pueden ser JavaBeans/POJOs (Plain Old "
-"Java Objects, o sea, cualquier objeto Java), la única cosa especial "
-"en ellos es que estan asociados actualmente con una (y sólo una) "
-"<literal>Session</literal>. Tan pronto como la <literal>Session</literal> "
-"sea cerrada, serán separados y estarán libres para ser usados "
-"en cualquier capa de aplicación. (por ejemplo, directamente como "
-"objetos de transferencia de datos hacia y desde la capa de presentació"
-"n)."
+"Objetos de corta vida, mono-hebra contienen un estado persistente asà como "
+"una funcionalidad empresarial. Estos pueden ser JavaBeans/POJOs normales. "
+"Estos se encuentran asociados con exactamente una <literal>Session</"
+"literal>. Tan pronto como la <literal>Session</literal> se cierre, serán "
+"separados y estarán libres para utilizarlos en cualquier capa de aplicación, "
+"(por ejemplo, directamente como objetos de transferencia de datos hacia y "
+"desde la presentación)."
#. Tag: term
-#: architecture.xml:133
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Objetos y colecciones transitorios y separados"
#. Tag: para
-#: architecture.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<literal>Session</literal>. They may have been instantiated by the "
"application and not yet persisted, or they may have been instantiated by a "
"closed <literal>Session</literal>."
msgstr ""
-"Instancias de clases persistentes que no estan acutualmente asociadas con "
-"una <literal>Session</literal>. Pueden haber sido instanciadas por la "
-"aplicación y (aún) no haber sido hechas persistentes, o pueden "
-"haber sido instanciadas por una <literal>Session</literal> cerrada."
+"Instancias de clases persistentes que no se encuentran actualmente asociadas "
+"con una <literal>Session</literal>. Pueden haber sido instanciadas por la "
+"aplicación y aún no haber sido persistidas, o pueden haber sido instanciadas "
+"por una <literal>Session</literal> cerrada."
#. Tag: term
-#: architecture.xml:144
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
@@ -194,16 +187,15 @@
"transaction demarcation, either using the underlying API or "
"<literal>Transaction</literal>, is never optional."
msgstr ""
-"(Opcional) Un objeto de corta vida, mono-hebra, usado por la aplicació"
-"n para especificar unidades atómicas de trabajo. Abstrae a la "
-"aplicación de las subyacentes transacciones JDBC, JTA o CORBA. En "
-"algunos casos, una <literal>Session</literal> puede extenderse sobre varias "
-"<literal>Transaction</literal>s. Sin embargo, la demarcación de la "
-"transacción, ya sea usando la API subyacente o <literal>Transaction</"
-"literal>, nunca es opcional!"
+"(Opcional) Un objeto de corta vida, mono-hebra que la aplicación utiliza "
+"para especificar unidades atómicas de trabajo. Abstrae la aplicación de las "
+"transacciones subyacentes JDBC, JTA o CORBA. En algunos casos, una "
+"<literal>Session</literal> puede extenderse sobre varias "
+"<literal>Transaction</literal>es. Sin embargo, la demarcación de la "
+"transacción, ya sea utilizando la API subyacente o <literal>Transaction</"
+"literal>, nunca es opcional."
#. Tag: term
-#: architecture.xml:157
#, no-c-format
msgid ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
@@ -213,22 +205,19 @@
"literal>)"
#. Tag: para
-#: architecture.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
"application from underlying <literal>Datasource</literal> or "
"<literal>DriverManager</literal>. It is not exposed to application, but it "
"can be extended and/or implemented by the developer."
msgstr ""
-"(Opcional) Una fábrica (y pool) de conexiones JDBC. Abstrae a la "
-"aplicación del <literal>Datasource</literal> o "
-"<literal>DriverManager</literal> subyacente. No se expone a la "
-"aplicación, pero puede ser extendido/implementado por el "
-"desarrollador."
+"(Opcional) Una fábrica y pool de conexiones JDBC. Abstrae a la aplicación "
+"del <literal>Datasource</literal> o <literal>DriverManager</literal> "
+"subyacente. No se expone a la aplicación, pero puede ser extendido/"
+"implementado por el desarrollador."
#. Tag: term
-#: architecture.xml:167
#, no-c-format
msgid ""
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
@@ -236,59 +225,52 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:169
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
"exposed to the application, but it can be extended and/or implemented by the "
"developer."
msgstr ""
-"(Opcional) Una fábrica de instancias de <literal>Transaction</"
-"literal>. No se expone a la aplicación, pero puede ser extendido/"
-"implementado por el desarrollador."
+"(Opcional) Una fábrica de instancias de <literal>Transaction</literal>. No "
+"se expone a la aplicación pero puede ser extendido/implementado por el "
+"desarrollador. "
-#. Tag: emphasis
-#: architecture.xml:176
-#, no-c-format
-msgid "Extension Interfaces"
-msgstr "Interfaces de Extensión"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
+msgstr "<emphasis>Interfaces de extensión</emphasis>"
#. Tag: para
-#: architecture.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
"documentation for details."
msgstr ""
-"Hibernate ofrece muchas interfaces de extensión opcional que puedes "
-"implementar para modificar a medida el comportamiento de tu capa de "
-"persistencia. Para más detalles, mira la documentación de la "
-"API."
+"Hibernate ofrece un rango de interfaces de extensión opcionales que puede "
+"implementar para personalizar el comportamiento de su capa de persistencia. "
+"Para obtener más detalles, vea la documentación de la API."
#. Tag: para
-#: architecture.xml:187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Given a \"minimal\" architecture, the application bypasses the "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
"directly."
msgstr ""
-"Dada una arquitectura \"sencilla\", la aplicación pasa por alto las "
-"APIs de <literal>Transaction</literal>/<literal>TransactionFactory</literal> "
-"y/o <literal>ConnectionProvider</literal>, para hablar directamente a JTA o "
-"JDBC."
+"Dada una arquitectura \"sencilla\", la aplicación evita las APIs de "
+"<literal>Transaction</literal>/<literal>TransactionFactory</literal> y/o "
+"<literal>ConnectionProvider</literal>, para comunicarse directamente con JTA "
+"o JDBC."
#. Tag: title
-#: architecture.xml:195
#, no-c-format
msgid "Instance states"
msgstr "Estados de instancia"
#. Tag: para
-#: architecture.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of a persistent class can be in one of three different states. "
"These states are defined in relation to a <emphasis>persistence context</"
@@ -296,35 +278,32 @@
"persistence context. The three different states are as follows:"
msgstr ""
"Una instancia de una clase persistente puede estar en uno de tres estados "
-"diferentes, definidos respecto de su <emphasis>contexto de persistencia</"
-"emphasis>. El objeto <literal>Session</literal> de Hibernate es el contexto "
-"de persistencia:"
+"diferentes. Estos estados se definen con respecto a su <emphasis>contexto de "
+"persistencia</emphasis>. El objeto <literal>Session</literal> de Hibernate "
+"es el contexto de persistencia. Los tres estados diferentes son los "
+"siguientes:"
#. Tag: term
-#: architecture.xml:204
#, no-c-format
msgid "transient"
msgstr "transitorio"
#. Tag: para
-#: architecture.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is not associated with any persistence context. It has no "
"persistent identity or primary key value."
msgstr ""
-"La instancia no está y nunca estuvo asociada con un contexto de "
-"persistencia. No tiene identidad persistente (valor de clave primaria)."
+"La instancia no está asociada con un contexto de persistencia. No tiene "
+"identidad persistente o valor de clave principal."
#. Tag: term
-#: architecture.xml:214
#, no-c-format
msgid "persistent"
msgstr "persistente"
#. Tag: para
-#: architecture.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is currently associated with a persistence context. It has a "
"persistent identity (primary key value) and can have a corresponding row in "
@@ -332,22 +311,20 @@
"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
"Java identity in relation to the in-memory location of the object."
msgstr ""
-"La instancia está actualmente asociada con un contexto de "
-"persistencia. Tiene una identidad persistente (valor de clave primaria) y, "
-"quizás, una fila correspondiente en la base de datos. Para un "
-"contexto de persistencia en particular, Hibernate <emphasis>garantiza</"
-"emphasis> que la identidad persistente es equivalente a la identidad Java "
-"(localización en memoria del objeto)."
+"La instancia se encuentra actualmente asociada con un contexto de "
+"persistencia. Tiene una identidad persistente (valor de clave principal) y "
+"puede tener una fila correspondiente en la base de datos. Para un contexto "
+"de persistencia en particular, Hibernate <emphasis>garantiza</emphasis> que "
+"la identidad persistente es equivalente a la identidad Java en relación con "
+"la ubicación del objeto."
#. Tag: term
-#: architecture.xml:228
#, no-c-format
msgid "detached"
msgstr "separado"
#. Tag: para
-#: architecture.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance was once associated with a persistence context, but that "
"context was closed, or the instance was serialized to another process. It "
@@ -355,49 +332,44 @@
"For detached instances, Hibernate does not guarantee the relationship "
"between persistent identity and Java identity."
msgstr ""
-"La instancia estuvo una vez asociada con un contexto de persistencia, pero "
-"ese contexto fue cerrado, o la instancia fue serializada a otro proceso. "
-"Tiene una identidad persistente y, quizás, una fila correspondiente "
-"en la base de datos. Para las instancias separadas, Hibernate no establece "
-"ninguna garantía sobre la relación entre identidad persistente "
-"e identidad Java."
+"La instancia estuvo alguna vez asociada con un contexto de persistencia, "
+"pero ese contexto se cerró, o la instancia fue serializada a otro proceso. "
+"Tiene una identidad persistente y puede tener una fila correspondiente en la "
+"base de datos. Para las instancias separadas, Hibernate no establece ninguna "
+"garantÃa sobre la relación entre identidad persistente e identidad Java."
#. Tag: title
-#: architecture.xml:245
#, no-c-format
msgid "JMX Integration"
-msgstr "Integración JMX"
+msgstr "Integración JMX"
#. Tag: para
-#: architecture.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
"provided in the distribution: <literal>org.hibernate.jmx.HibernateService</"
"literal>."
msgstr ""
-"JMX es el estándar J2EE para la gestión de componentes Java. "
-"Hibernate puede ser gestionado por medio de un servicio estándar JMX. "
-"Proveemos una implementación de MBean en la distribución, "
-"<literal>org.hibernate.jmx.HibernateService</literal>."
+"JMX es el estándar J2EE para la gestión de componentes Java. Hibernate se "
+"puede administrar por medio de un servicio estándar JMX. Brindamos una "
+"implementación de MBean en la distribución: <literal>org.hibernate.jmx."
+"HibernateService</literal>."
#. Tag: para
-#: architecture.xml:253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For an example of how to deploy Hibernate as a JMX service on the JBoss "
"Application Server, please see the JBoss User Guide. JBoss AS also provides "
"these benefits if you deploy using JMX:"
msgstr ""
-"Para ejemplo de cómo desplegar Hibernate como un servicio JMX en un "
-"Servidor de Aplicaciones JBoss, por favor, mira la Guía del Usuario "
-"de JBoss. En JBoss AS, tienes además estos beneficios si despliegas "
-"usando JMX:"
+"Para ver un ejemplo de cómo desplegar Hibernate como un servicio JMX en un "
+"servidor de aplicaciones JBoss, por favor, refiérase al manual del usuario "
+"de JBoss. JBoss AS también proporciona estos beneficios si despliega "
+"utilizando JMX:"
#. Tag: para
-#: architecture.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
"literal>'s life cycle can be automatically bound to the scope of a JTA "
@@ -409,20 +381,18 @@
"the <literal>HibernateContext</literal> to access a <literal>Session</"
"literal>."
msgstr ""
-"<emphasis>Gestión de Sesión:</emphasis> El ciclo de vida de la "
-"<literal>Session</literal> de Hibernate puede estar automáticamente "
-"ligado al ámbito de una transacción JTA. Esto significa que ya "
-"no tienes que abrir ni cerrar la <literal>Session</literal> manualmente, "
-"esto pasa a ser trabajo de un interceptor EJB de JBoss. Además "
-"tampoco tienes que preocuparte más de la demarcación de la "
-"transacción (a menos que que quieras escribir una capa de persitencia "
-"portable, por supuesto, usa la API de <literal>Transaction</literal> de "
-"Hibernate para esto). Para acceder a una <literal>Session</literal> llama al "
-"<literal>HibernateContext</literal>."
+"<emphasis>Administración de Sesión:</emphasis> El ciclo de vida de la "
+"<literal>Session</literal> de Hibernate puede estar ligado automáticamente "
+"al ámbito de una transacción JTA. Esto significa que ya no tiene que abrir "
+"ni cerrar la <literal>Session</literal> manualmente, esto pasa a ser el "
+"trabajo de un interceptor EJB de JBoss. Además tampoco tiene que preocuparse "
+"más de la demarcación de la transacción en su código (a menos de que quiera "
+"escribir una capa de persitencia portátil, utilice la API de "
+"<literal>Transaction</literal> de Hibernate para hacer esto). Para acceder a "
+"una <literal>Session</literal> llame al <literal>HibernateContext</literal>."
#. Tag: para
-#: architecture.xml:273
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
@@ -432,63 +402,56 @@
"deployment, JBoss will automatically detect all mapping files in your HAR "
"file."
msgstr ""
-"<emphasis>Despliegue de HAR:</emphasis> Usualmente despliegas el servicio "
-"JMX de Hibernate usando un descriptor de despliegue de servicio de JBoss (en "
-"un fichero EAR y/o SAR), que soporta todas las opciones de "
-"configuración usuales de una <literal>SessionFactory</literal> de "
-"Hibernate. Sin embargo, todavía tienes que nombrar todos tus ficheros "
-"de mapeo en el descriptor de despliegue. Si decides usar el depliegue de HAR "
-"opcional, JBoss detectará automáticamente todos los ficheros "
-"de mapeo en tu fichero HAR."
+"<emphasis>Despliegue HAR:</emphasis>: el servicio JMX de Hibernate se "
+"implementa usando un descriptor de despliegue de servicio de JBoss en un "
+"archivo EAR y/o SAR, que soporta todas las opciones de configuración usuales "
+"de una <literal>SessionFactory</literal> de Hibernate. Sin embargo, todavÃa "
+"tiene que nombrar todos sus archivos de mapeo en el descriptor de "
+"despliegue. Si utiliza el depliegue HAR opcional, JBoss detectará "
+"automáticamente todos los archivos de mapeo en su archivo HAR."
#. Tag: para
-#: architecture.xml:284
#, no-c-format
msgid ""
"Consult the JBoss AS user guide for more information about these options."
msgstr ""
-"Para más información sobre estas opciones, consulta la "
-"Guía de Usuario del JBoss AS."
+"Para más información sobre estas opciones, consulte el Manual de Usuario de "
+"JBoss AS."
#. Tag: para
-#: architecture.xml:288
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/> for more "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
"information."
msgstr ""
-"Otra funcionalidad disponible como un servicio JMX son las estadí"
-"sticas en tiempo de ejecución de Hibernate. Mira <xref linkend="
-"\"configuration-optional-statistics\"/>."
+"Otra funcionalidad disponible como un servicio de JMX son las estadÃsticas "
+"en tiempo de ejecución de Hibernate. Consulte <xref linkend=\"configuration-"
+"optional-statistics\" /> para obtener mayor información."
#. Tag: title
-#: architecture.xml:295
#, no-c-format
msgid "JCA Support"
-msgstr "Soporte JCA:"
+msgstr "Soporte JCA"
#. Tag: para
-#: architecture.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also be configured as a JCA connector. Please see the website "
"for more information. Please note, however, that at this stage Hibernate JCA "
"support is under development."
msgstr ""
-"Hiberate puede además ser configurado como un conector JCA. Por favor "
-"mira el sitio web para más detalles. Por favor ten en cuenta que el "
-"soporte de JCA de Hibernate está aún considerado experimental."
+"Hibernate también puede ser configurado como un conector JCA. Por favor "
+"refiérase al sitio web para encontrar más detalles. Sin embargo, tenga en "
+"cuenta que el soporte de JCA de Hibernate aún está bajo desarrollo."
#. Tag: title
-#: architecture.xml:303
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Contextual sessions"
-msgstr "UNTRANSLATED! Contextual Sessions"
+msgstr "Sesiones contextuales"
#. Tag: para
-#: architecture.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
"where a given session is in effect throughout the scope of a given context. "
@@ -500,19 +463,20 @@
"utilized third-party frameworks, such as Spring or Pico, which provided "
"proxy/interception-based contextual sessions."
msgstr ""
-"Most applications using Hibernate need some form of \"contextual\" sessions, "
-"where a given session is in effect throughout the scope of a given context. "
-"However, across applications the definition of what constitutes a context is "
-"typically different; and different contexts define different scopes to the "
-"notion of current. Applications using Hibernate prior to version 3.0 tended "
-"to utilize either home-grown <literal>ThreadLocal</literal>-based contextual "
-"sessions, helper classes such as <literal>HibernateUtil</literal>, or "
-"utilized third-party frameworks (such as Spring or Pico) which provided "
-"proxy/interception-based contextual sessions."
+"La mayorÃa de las aplicaciones que utilizan Hibernate necesitan alguna forma "
+"de sesiones \"contextuales\", en donde una sesión dada se encuentra en "
+"efecto en todo el campo de acción de un contexto dado. Sin embargo, a través "
+"de las aplicaciones la definición de lo que constituye un contexto es "
+"usualmente diferente y diferentes contextos definen diferentes campos de "
+"acción para la noción de actual. Las aplicaciones que utiliza Hibernate "
+"antes de la version 3.0 tienden a utilizar ya sea sesiones contextuales con "
+"base <literal>ThreadLocal</literal> desarrollados en casa, las clases "
+"ayudantes tales como <literal>HibernateUtil</literal>, o enfoques de "
+"terceros utilizados, como Spring o Pico, los cuales brindaban sesiones "
+"contextuales con base proxy/intercepción."
#. Tag: para
-#: architecture.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
"getCurrentSession()</literal> method. Initially, this assumed usage of "
@@ -524,20 +488,20 @@
"deployed into a <literal>J2EE</literal> container. Based on that, the "
"<literal>JTA</literal>-based contextual sessions are all you need to use."
msgstr ""
-"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
-"getCurrentSession()</literal> method. Initially, this assumed usage of "
-"<literal>JTA</literal> transactions, where the <literal>JTA</literal> "
-"transaction defined both the scope and context of a current session. The "
-"Hibernate team maintains that, given the maturity of the numerous stand-"
-"alone <literal>JTA TransactionManager</literal> implementations out there, "
-"most (if not all) applications should be using <literal>JTA</literal> "
-"transaction management whether or not they are deployed into a "
-"<literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-"
-"based contextual sessions is all you should ever need to use."
+"Comenzando con la version 3.0.1, Hibernate agregó el método "
+"<literal>SessionFactory.getCurrentSession()</literal>. Inicialmente, este "
+"asumió la utilización de las transacciones <literal>JTA</literal>, en donde "
+"la transacción <literal>JTA</literal> definia tanto el contexto como el "
+"campo de acción de una sesión actual. Dada la madurez de númerosas "
+"implementaciones <literal>JTA TransactionManager</literal> autónomas "
+"existentes, la mayorÃa, si no es que todas, las aplicaciones deberÃan "
+"utilizar la administración de transacciones <literal>JTA</literal> en el "
+"caso de que se deplieguen o no en un contenedor <literal>J2EE</literal>. Con "
+"base en esto, las sesiones contextuales basadas en <literal>JTA</literal> es "
+"todo lo que usted necesita utilizar."
#. Tag: para
-#: architecture.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
@@ -546,16 +510,16 @@
"current_session_context_class</literal>, have been added to allow "
"pluggability of the scope and context of defining current sessions."
msgstr ""
-"However, as of version 3.1, the processing behind <literal>SessionFactory."
-"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
-"interface (<literal>org.hibernate.context.CurrentSessionContext</literal>) "
-"and a new configuration parameter (<literal>hibernate."
-"current_session_context_class</literal>) have been added to allow "
-"pluggability of the scope and context of defining current sessions."
+"Sin embargo, desde la versión 3.1, el procesamiento detrás de "
+"<literal>SessionFactory.getCurrentSession()</literal> ahora es conectable. "
+"Para ese fin, se ha añadido una nueva interfaz de extensión, <literal>org."
+"hibernate.context.CurrentSessionContext</literal>, y un nuevo parámetro de "
+"configuración, <literal>hibernate.current_session_context_class</literal> "
+"para permitir la conexión del campo de acción y el contexto de definición de "
+"las sesiones actuales."
#. Tag: para
-#: architecture.xml:330
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
"CurrentSessionContext</literal> interface for a detailed discussion of its "
@@ -564,54 +528,51 @@
"contextual session. Out-of-the-box, Hibernate comes with three "
"implementations of this interface:"
msgstr ""
-"See the Javadocs for the <literal>org.hibernate.context."
-"CurrentSessionContext</literal> interface for a detailed discussion of its "
-"contract. It defines a single method, <literal>currentSession()</literal>, "
-"by which the implementation is responsible for tracking the current "
-"contextual session. Out-of-the-box, Hibernate comes with three "
-"implementations of this interface."
+"Refiérase a los Javadocs para la interfaz <literal>org.hibernate.context."
+"CurrentSessionContext</literal> para poder ver una discusión detallada de su "
+"contrato. Define un método único, <literal>currentSession()</literal>, por "
+"medio del cual la implementación es responsable de rastrear la sesión "
+"contextual actual. Tal como viene empacada, Hibernate incluye tres "
+"implementaciones de esta interfaz:"
#. Tag: para
-#: architecture.xml:340
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
"are tracked and scoped by a <literal>JTA</literal> transaction. The "
"processing here is exactly the same as in the older JTA-only approach. See "
"the Javadocs for details."
msgstr ""
-"<literal>org.hibernate.context.JTASessionContext</literal> - current "
-"sessions are tracked and scoped by a <literal>JTA</literal> transaction. The "
-"processing here is exactly the same as in the older JTA-only approach. See "
-"the Javadocs for details."
+"<literal>org.hibernate.context.JTASessionContext</literal>: una transacción "
+"<literal>JTA</literal> rastrea y asume las sesiones actuales. Aquà el "
+"procesamiento es exactamente el mismo que en el enfoque más antiguo de JTA-"
+"sólamente. Refiérase a los Javadocs para obtener más información."
#. Tag: para
-#: architecture.xml:348
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
-"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - current "
-"sessions are tracked by thread of execution. Again, see the Javadocs for "
-"details."
+"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>: las "
+"sesiones actuales son rastreadas por un hilo de ejecución. Consulte los "
+"Javadocs para obtener más detalles."
#. Tag: para
-#: architecture.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
"sessions are tracked by thread of execution. However, you are responsible to "
"bind and unbind a <literal>Session</literal> instance with static methods on "
"this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
-"<literal>org.hibernate.context.ManagedSessionContext</literal> - current "
-"sessions are tracked by thread of execution. However, you are responsible to "
-"bind and unbind a <literal>Session</literal> instance with static methods on "
-"this class, it does never open, flush, or close a <literal>Session</literal>."
+"<literal>org.hibernate.context.ManagedSessionContext</literal>: las sesiones "
+"actuales son rastreadas por un hilo de ejecución. Sin embargo, usted es "
+"responsable de vincular y desvincular una instancia <literal>Session</"
+"literal> con métodos estáticos en esta clase: no abre, vacia o cierra una "
+"<literal>Session</literal>."
#. Tag: para
-#: architecture.xml:363
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -624,24 +585,26 @@
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not need any transaction or session demarcation "
-"operations in your code. Refer to <xref linkend=\"transactions\"/> for more "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
"information and code examples."
msgstr ""
-"The first two implementations provide a \"one session - one database "
-"transaction\" programming model, also known and used as <emphasis>session-"
-"per-request</emphasis>. The beginning and end of a Hibernate session is "
-"defined by the duration of a database transaction. If you use programatic "
-"transaction demarcation in plain JSE without JTA, you are adviced to use the "
-"Hibernate <literal>Transaction</literal> API to hide the underlying "
-"transaction system from your code. If you use JTA, use the JTA interfaces to "
-"demarcate transactions. If you execute in an EJB container that supports "
-"CMT, transaction boundaries are defined declaratively and you don't need any "
-"transaction or session demarcation operations in your code. Refer to <xref "
-"linkend=\"transactions\"/> for more information and code examples."
+"Las primeras dos implementaciones brindan un modelo de programación \"una "
+"sesión - una transacción de la base de datos\". También conocido y utilizado "
+"como una <emphasis>sesión-por-petición</emphasis>. El inicio y el final de "
+"una sesión Hibernate se define por la duración de una transacción de una "
+"base de datos. Si utiliza la demarcación de transacción programática en JSE "
+"sencillo sin JTA, se le aconseja que utilice el API <literal>Transaction</"
+"literal> de Hibernate para esconder el sistema de transacción subyacente de "
+"su código. Si utiliza JTA, utilice las interfaces JTA para demarcar "
+"transacciones. Si utiliza JTA, puede utilizar las interfaces JTA para "
+"demarcar transacciones. Si ejecuta en un contenedor EJB que soporta CMT, los "
+"lÃmites de la transacción están definidos declarativamente y no necesita "
+"ninguna operación de demarcación de sesión o transacción en su código. "
+"Consulte <xref linkend=\"transactions\" /> para obtener más información y "
+"ejemplos de código."
#. Tag: para
-#: architecture.xml:375
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
"parameter defines which <literal>org.hibernate.context."
@@ -654,19 +617,13 @@
"however, there are three corresponding short names: \"jta\", \"thread\", and "
"\"managed\"."
msgstr ""
-"The <literal>hibernate.current_session_context_class</literal> configuration "
-"parameter defines which <literal>org.hibernate.context."
-"CurrentSessionContext</literal> implementation should be used. Note that for "
-"backwards compatibility, if this config param is not set but a <literal>org."
-"hibernate.transaction.TransactionManagerLookup</literal> is configured, "
-"Hibernate will use the <literal>org.hibernate.context.JTASessionContext</"
-"literal>. Typically, the value of this parameter would just name the "
-"implementation class to use; for the three out-of-the-box implementations, "
-"however, there are three corresponding short names, \"jta\", \"thread\", and "
-"\"managed\"."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"El parámetro de configuración <literal>hibernate."
+"current_session_context_class</literal> define cuales implementaciones "
+"<literal>org.hibernate.context.CurrentSessionContext</literal> deben "
+"utilizarse. Para compatibilidad con versiones anteriores, si este parámetro "
+"de configuración no está establecido pero si tiene configurado un "
+"<literal>org.hibernate.transaction.TransactionManagerLookup</literal>, "
+"Hibernate utilizará el <literal>org.hibernate.context.JTASessionContext</"
+"literal>. Usualmente el valor de este parámetro sólamente nombrarÃa la clase "
+"de implementación a utilizar. Sin embargo, para las tres implementaciones "
+"incluÃdas existen tress nombres cortos: \"jta\", \"thread\" y \"managed\"."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,27 +1,40 @@
-#, fuzzy
+# translation of association_mapping.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: association_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-09 12:44+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
-msgstr "Mapeos de Asociación"
+msgstr "Mapeos de asociación"
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
-msgstr "Introducción"
+msgstr "Introducción"
#. Tag: para
-#: association_mapping.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
@@ -29,684 +42,173 @@
"use <literal>Person</literal> and <literal>Address</literal> in all the "
"examples."
msgstr ""
-"Los mapeos de asociación son frecuentemente las cosas mas difí"
-"ciles de hacer correctamente. En esta sección iremos a través "
-"de los casos canónicos uno a uno, comenzando con los mapeos "
-"unidireccionales, y considerando luego los casos bidireccionales. Usaremos "
-"<literal>Person</literal> y <literal>Address</literal> en todos los ejemplos."
+"Los mapeos de asociación son frecuentemente lo más difÃcil de implementar "
+"correctamente. En esta sección revisaremos algunos casos canónicos uno por "
+"uno, comenzando con los mapeos unidireccionales y luego considerando los "
+"casos bidireccionales. Vamos a utilizar <literal>Person</literal> y "
+"<literal>Address</literal> en todos los ejemplos."
#. Tag: para
-#: association_mapping.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
msgstr ""
-"Clasificaremos las asociaciones por cuanto mapeen o no a una tabla de "
-"unión interviniente, y por su multiplicidad."
+"Vamos a clasificar las asociaciones en cuanto su multiplicidad y a si mapean "
+"o no a una tabla de unión interviniente."
#. Tag: para
-#: association_mapping.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
"not a requirement of Hibernate, and the mappings will work if you drop the "
"nullability constraints."
msgstr ""
-"Las claves foráneas que aceptan valores nulos (en adelante, "
-"nullables) no son consideradas una buena práctica en el modelado "
-"tradicional de datos, así que todos nuestros ejemplos usan claves "
-"foráneas no nullables. Esto no es un requerimiento de Hibernate, y "
-"todos los mapeos funcionarán si quitas las restricciones de "
+"Las claves foráneas que aceptan valores nulos no se consideran como una "
+"buena práctica en el modelado tradicional de datos, asà que todos nuestros "
+"ejemplos utilizan claves foráneas no nulas. Esto no es un requisito de "
+"Hibernate y todos los mapeos funcionarán si quita las restricciones de "
"nulabilidad."
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr "Asociaciones Unidireccionales"
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "muchos a uno"
+msgstr "Many-to-one"
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
"common kind of unidirectional association."
msgstr ""
-"Una <emphasis>asociación unidireccional muchos-a-uno</emphasis> es el "
-"tipo más común de asociaciones unidireccionales."
+"Una <emphasis>asociación unidireccional muchos-a-uno</emphasis> es el tipo "
+"de asociación unidireccional más común."
-#. Tag: programlisting
-#: association_mapping.xml:68
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145
-#: association_mapping.xml:210
-#, fuzzy, no-c-format
+#, no-c-format
msgid "One-to-one"
-msgstr "uno a uno"
+msgstr "Uno-a-uno"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key</"
"emphasis> is almost identical. The only difference is the column unique "
"constraint."
msgstr ""
-"Una <emphasis>asociación unidireccional uno-a-uno en una clave "
-"primaria</emphasis> es casi idéntica. La única diferencia es "
-"la restricción de unicidad de la columna."
+"Una <emphasis>asociación unidireccional uno-a-uno en una clave foránea</"
+"emphasis> es casi idéntica. La única diferencia es la restricción de "
+"unicidad de la columna."
-#. Tag: programlisting
-#: association_mapping.xml:81
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
-#. Tag: para
-#: association_mapping.xml:84
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key</"
"emphasis> usually uses a special id generator In this example, however, we "
"have reversed the direction of the association:"
msgstr ""
-"Usualmente, una <emphasis>asociación unidireccional uno-a-uno en una "
-"clave primaria</emphasis> usa un generador de id especial. (Observa que "
-"hemos invertido el sentido de la asociación en este ejemplo)."
+"Usualmente, una <emphasis>asociación unidireccional uno-a-uno en una clave "
+"principal</emphasis> utiliza un generador de id especial. Sin embargo, hemos "
+"invertido la dirección de la asociación:"
-#. Tag: programlisting
-#: association_mapping.xml:90
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
-#, fuzzy, no-c-format
+#, no-c-format
msgid "One-to-many"
-msgstr "uno a muchos"
+msgstr "Uno-a-muchos"
#. Tag: para
-#: association_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key</"
"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"Una <emphasis>asociación unidireccional uno-a-muchos en una clave "
-"foránea</emphasis> es un caso muy inusual, y realmente no está "
-"recomendada."
+"Una <emphasis>asociación unidireccional uno-a-muchos en una clave foránea</"
+"emphasis> es un caso muy inusual y no se recomienda."
-#. Tag: programlisting
-#: association_mapping.xml:103
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-
#. Tag: para
-#: association_mapping.xml:106
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr ""
-"Creemos que es mejor usar una tabla de unión para este tipo de "
-"asociación."
+"En lugar debe utilizar una tabla de unión para esta clase de asociación."
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
-msgstr "Asociaciones unidireccionales con tablas de unión"
+msgstr "Asociaciones unidireccionales con tablas de unión"
#. Tag: para
-#: association_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join table</"
"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
"literal>, changes the multiplicity from many-to-many to one-to-many."
msgstr ""
-"Una <emphasis>asociación unidireccional uno-a-muchos en una tabla de "
-"unión</emphasis> es más preferible. Observa que especificando "
-"<literal>unique=\"true\"</literal>, hemos cambiado la multiplicidad de "
-"muchos-a-muchos a uno-a-muchos."
+"Se prefiere una <emphasis>asociación unidireccional uno-a-muchos en una "
+"tabla de unión</emphasis> . El especificar <literal>unique=\"true\"</"
+"literal>, cambia la multiplicidad de muchos-a-muchos a uno-a-muchos."
-#. Tag: programlisting
-#: association_mapping.xml:126
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
-#. Tag: para
-#: association_mapping.xml:134
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional many-to-one association on a join table</"
"emphasis> is common when the association is optional. For example:"
msgstr ""
-"Una <emphasis>asociación unidireccional muchos-a-uno en una tabla de "
-"unión</emphasis> es bastante común cuando la asociación "
-"es opcional."
+"Una <emphasis>asociación unidireccional muchos-a-uno en una tabla de unión</"
+"emphasis> es común cuando la asociación es opcional. Por ejemplo:"
-#. Tag: programlisting
-#: association_mapping.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
-#. Tag: para
-#: association_mapping.xml:147
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"Una <emphasis>asociación unidireccional uno-a-uno en una tabla de "
-"unión</emphasis> es inusual en extremo, pero posible."
+"Una <emphasis>asociación unidireccional uno-a-uno en una tabla de unión</"
+"emphasis> es extremadamente inusual, pero es posible. "
-#. Tag: programlisting
-#: association_mapping.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-many"
-msgstr "muchos a muchos"
+msgstr "Muchos-a-muchos"
#. Tag: para
-#: association_mapping.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
msgstr ""
-"Finalmente, tenemos una <emphasis>asociación unidireccional muchos-a-"
-"muchos</emphasis>"
+"Finalmente, este es un ejemplo de una <emphasis>asociación unidireccional "
+"muchos-a-muchos</emphasis>."
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
-msgstr "Asociaciones Bidireccionales"
+msgstr "Asociaciones bidireccionales"
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many / many-to-one"
-msgstr "uno a muchos / muchos a uno"
+msgstr "uno-a-muchos / muchos-a-uno"
#. Tag: para
-#: association_mapping.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
"common kind of association. The following example illustrates the standard "
"parent/child relationship."
msgstr ""
-"Una <emphasis>asociación bidireccional muchos-a-uno</emphasis> es el "
-"tipo más común de asociación. (Esta es la relació"
-"n estándar padre/hijo.)"
+"Una <emphasis>asociación bidireccional muchos-a-uno</emphasis> es el tipo de "
+"asociación más común. El siguiente ejemplo ilustra la relación estándar "
+"padre/hijo."
-#. Tag: programlisting
-#: association_mapping.xml:183
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-
-#. Tag: para
-#: association_mapping.xml:187
-#, fuzzy, no-c-format
-msgid ""
"If you use a <literal>List</literal>, or other indexed collection, set the "
"<literal>key</literal> column of the foreign key to <literal>not null</"
"literal>. Hibernate will manage the association from the collections side to "
@@ -714,62 +216,16 @@
"by setting <literal>update=\"false\"</literal> and <literal>insert=\"false"
"\"</literal>:"
msgstr ""
-"UNTRANSLATED! If you use a <literal>List</literal> (or other indexed "
-"collection) you need to set the <literal>key</literal> column of the foreign "
-"key to <literal>not null</literal>, and let Hibernate manage the association "
-"from the collections side to maintain the index of each element (making the "
-"other side virtually inverse by setting <literal>update=\"false\"</literal> "
-"and <literal>insert=\"false\"</literal>):"
+"Si utiliza un <literal>List</literal>, u otra colección con Ãndice, "
+"configure la columna <literal>key</literal> de la clave foránea como "
+"<literal>not null</literal>. Hibernate administrará la asociación del lado "
+"de las colecciones para mantener el Ãndice de cada elemento, haciendo del "
+"otro lado virtualmente inverso al establecer <literal>update=\"false\"</"
+"literal> y <literal>insert=\"false\"</literal>:"
-#. Tag: programlisting
-#: association_mapping.xml:195
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-" </class>\n"
-" \n"
-" <class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/"
-">\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-" </class>]]>"
-
-#. Tag: para
-#: association_mapping.xml:197
-#, fuzzy, no-c-format
-msgid ""
"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
"important that you define <literal>not-null=\"true\"</literal> on the "
"<literal><key></literal> element of the collection mapping. Do not "
@@ -777,356 +233,79 @@
"<literal><column></literal> element, but on the <literal><key></"
"literal> element."
msgstr ""
-"UNTRANSLATED! It is important that you define <literal>not-null=\"true\"</"
-"literal> on the <literal><key></literal> element of the collection "
-"mapping if the underlying foreign key column is <literal>NOT NULL</literal>. "
-"Don't only declare <literal>not-null=\"true\"</literal> on a possible nested "
-"<literal><column></literal> element, but on the <literal><key></"
-"literal> element."
+"Es importante que defina <literal>not-null=\"true\"</literal> en el elemento "
+"<literal><key></literal> del mapeo de la colección si la columna de la "
+"clave foránea es <literal>NOT NULL</literal>. No declare sólamente "
+"<literal>not-null=\"true\"</literal> en un elemento <literal><column></"
+"literal> posiblemente anidado sino en el elemento <literal><key></"
+"literal>. "
#. Tag: para
-#: association_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
"is common:"
msgstr ""
-"Una <emphasis>asociación bidireccional uno-a-uno en una clave "
-"foránea</emphasis> es bastante común."
+"Una <emphasis>asociación bidireccional uno-a-uno en una clave foránea</"
+"emphasis> es común:"
-#. Tag: programlisting
-#: association_mapping.xml:217
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: association_mapping.xml:220
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
"uses the special id generator:"
msgstr ""
-"Una <emphasis>asociación bidireccional uno-a-uno en una clave "
-"primaria</emphasis> usa el generador de id especial."
+"Una <emphasis>asociación bidireccional uno-a-uno en una clave primaria</"
+"emphasis> utiliza el generador de id especial:"
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
-msgstr "Asociaciones bidireccionales con tablas de unión"
+msgstr "Asociaciones bidireccionales con tablas de unión"
#. Tag: para
-#: association_mapping.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
"literal> can go on either end of the association, on the collection, or on "
"the join."
msgstr ""
-"Una <emphasis>asociación bidireccional uno-a-muchos en una tabla de "
-"unión</emphasis>. Observa que el <literal>inverse=\"true\"</literal> "
-"puede ir a cualquier lado de la asociación, en la colección, o "
-"en la unión."
+"El siguiente es un ejemplo de una <emphasis>asociación bidireccional uno-a-"
+"muchos en una tabla de unión</emphasis>. El <literal>inverse=\"true\"</"
+"literal> puede ir en cualquier lado de la asociación, en la colección, o en "
+"la unión."
-#. Tag: programlisting
-#: association_mapping.xml:244
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:250
#, no-c-format
msgid "one to one"
msgstr "uno a uno"
#. Tag: para
-#: association_mapping.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"Una <emphasis>asociación bidireccional uno-a-uno en una tabla de "
-"unión</emphasis> es inusual en extremo, pero posible."
+"Una <emphasis>asociación bidireccional uno-a-uno en una tabla de unión</"
+"emphasis> es extremadamente inusual, pero es posible. "
-#. Tag: programlisting
-#: association_mapping.xml:257
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-
-#. Tag: para
-#: association_mapping.xml:265
-#, fuzzy, no-c-format
-msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association</"
"emphasis>."
msgstr ""
-"Finalmente, tenemos una <emphasis>asociación bidireccional muchos-a-"
+"Este es un ejemplo de una <emphasis>asociación bidireccional muchos-a-"
"muchos</emphasis>."
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
-msgstr "UNTRANSLATED! More complex association mappings"
+msgstr "Mapeos de asociación más complejos"
#. Tag: para
-#: association_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely</emphasis> rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
@@ -1135,73 +314,25 @@
"<literal>effectiveEndDate</literal> and <literal>effectiveStartDate</"
"literal>columns, it would be mapped as follows:"
msgstr ""
-"More complex association joins are <emphasis>extremely</emphasis> rare. "
-"Hibernate makes it possible to handle more complex situations using SQL "
-"fragments embedded in the mapping document. For example, if a table with "
-"historical account information data defines <literal>accountNumber</"
-"literal>, <literal>effectiveEndDate</literal> and "
-"<literal>effectiveStartDate</literal>columns, mapped as follows:"
+"Uniones de asociación más complejas son <emphasis>extremadamente</emphasis> "
+"raras. Hibernate maneja situaciones más complejas utilizando fragmentos SQL "
+"incluidos en el documento de mapeo. Por ejemplo, si una tabla con datos "
+"históricos de información de cuenta define las columnas "
+"<literal>accountNumber</literal>, <literal>effectiveEndDate</literal> y "
+"<literal>effectiveStartDate</literal>, se mapearÃan asÃ:"
-#. Tag: programlisting
-#: association_mapping.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</"
-"formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" "
-"not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean"
-"\">\n"
-" <formula>case when effectiveEndDate is "
-"null then 1 else 0 end</formula>\n"
-" </property>\n"
-" </properties>\n"
-" <property name=\"effectiveEndDate\" type=\"date\"/>\n"
-" <property name=\"effectiveStateDate\" type=\"date\" not-"
-"null=\"true\"/>]]>"
-
-#. Tag: para
-#: association_mapping.xml:291
-#, fuzzy, no-c-format
-msgid ""
"You can then map an association to the <emphasis>current</emphasis> "
"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-"Then we can map an association to the <emphasis>current</emphasis> instance "
-"(the one with null <literal>effectiveEndDate</literal>) using:"
+"Entonces puede mapear una asociación a la instancia <emphasis>actual</"
+"emphasis>, la que tiene <literal>effectiveEndDate</literal> nulo, utilizando:"
-#. Tag: programlisting
-#: association_mapping.xml:296
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref="
-"\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-" </many-to-one>]]>"
-
-#. Tag: para
-#: association_mapping.xml:298
-#, fuzzy, no-c-format
-msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee</literal> and <literal>Organization</literal> is "
"maintained in an <literal>Employment</literal> table full of historical "
@@ -1209,55 +340,806 @@
"emphasis> employer, the one with the most recent <literal>startDate</"
"literal>, could be mapped in the following way:"
msgstr ""
-"In a more complex example, imagine that the association between "
-"<literal>Employee</literal> and <literal>Organization</literal> is "
-"maintained in an <literal>Employment</literal> table full of historical "
-"employment data. Then an association to the employee's <emphasis>most "
-"recent</emphasis> employer (the one with the most recent <literal>startDate</"
-"literal>) might be mapped this way:"
+"En un ejemplo más complejo, imagÃnese que la asociación entre "
+"<literal>Employee</literal> y <literal>Organization</literal> se mantienen "
+"en una tabla <literal>Employment</literal> llena de datos históricos de "
+"empleo. Entonces se puede mapear una asociación al empleador <emphasis>más "
+"reciente</emphasis> del empleado, el que tiene la <literal>startDate</"
+"literal> más reciente, de esta manera:"
-#. Tag: programlisting
-#: association_mapping.xml:306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
-msgstr ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-" </join>]]>"
-
-#. Tag: para
-#: association_mapping.xml:308
-#, fuzzy, no-c-format
-msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
-"You can get quite creative with this functionality, but it is usually more "
-"practical to handle these kinds of cases using HQL or a criteria query."
+"Esta funcionalidad le permite cierto grado de creatividad y flexibilidad, "
+"pero usualmente es más práctico manejar esta clase de casos utilizando HQL o "
+"una petición de criterio."
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,217 +1,91 @@
-#, fuzzy
+# translation of basic_mapping.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: basic_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 17:34+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
-msgstr "Mapeo O/R Básico"
+msgstr "Mapeo O/R Básico"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
-msgstr "Declaración de mapeo"
+msgstr "Declaración de mapeo"
#. Tag: para
-#: basic_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
"mapping document is designed to be readable and hand-editable. The mapping "
"language is Java-centric, meaning that mappings are constructed around "
"persistent class declarations and not table declarations."
msgstr ""
-"Los mapeos objeto/relacional se definen usualmente en un documento XML. El "
-"documento de mapeo está diseñado para ser leíble y "
-"editable a mano. El lenguaje de mapeo es Java-céntrico, o sea que los "
-"mapeos se construyen alrededor de declaraciones de clases persistentes, no "
-"declaraciones de tablas."
+"Los mapeos objeto/relacional usualmente se definen en un documento XML. El "
+"documento de mapeo está diseñado para que se pueda leer y editar a mano. El "
+"lenguaje de mapeo está centrado en Java, lo que significa que los mapeos se "
+"construyen alrededor de declaraciones de clases persistentes y no alrededor "
+"de declaraciones de tablas."
#. Tag: para
-#: basic_mapping.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
"hand, a number of tools exist to generate the mapping document. These "
"include XDoclet, Middlegen and AndroMDA."
msgstr ""
-"Observa que, incluso aunque muchos usuarios de Hibernate eligen escribir el "
-"XML a mano, existe una cantidad de herramientas para generar el documento de "
-"mapeo, incluyendo XDoclet, Middlegen y AndroMDA."
+"Observe que, incluso aunque muchos de los usuarios de Hibernate eligen "
+"escribir el XML a mano, existe un número de herramientas para generar el "
+"documento de mapeo, incluyendo XDoclet, Middlegen y AndroMDA. "
#. Tag: para
-#: basic_mapping.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is an example mapping:"
-msgstr "Comencemos por un mapeo de ejemplo:"
+msgstr "Este es un ejemplo de mapeo:"
-#. Tag: programlisting
-#: basic_mapping.xml:51
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" \n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\" \n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\" \n"
-" not-null=\"true\" \n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\" \n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\" \n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:53
-#, fuzzy, no-c-format
-msgid ""
"We will now discuss the content of the mapping document. We will only "
"describe, however, the document elements and attributes that are used by "
"Hibernate at runtime. The mapping document also contains some extra optional "
"attributes and elements that affect the database schemas exported by the "
"schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
-"Discutiremos ahora el contenido del documento de mapeo. Describiremos "
-"sólo los elementos y atributos que son usados por Hibernate en tiempo "
-"de ejecución. El documento de mapeo contiene además algunos "
-"atributos y elementos extra opcionales que afectan los esquemas de base de "
-"datos exportados por la herramienta de exportación de esquemas. (Por "
-"ejemplo, el atributo <literal>not-null</literal>.)"
+"Ahora vamos a discutir el contenido del documento de mapeo. Sólamente "
+"describiremos los elementos y atributos del documento que Hibernate utiliza "
+"en tiempo de ejecución. El documento de mapeo también comprende algunos "
+"atributos y elementos extra opcionales que afectan los esquemas de la base "
+"de datos exportados por la herramienta de exportación de esquemas (por "
+"ejemplo, el atributo <literal>not-null</literal>)."
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
"found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/"
@@ -220,23 +94,21 @@
"lookups of the DTD using an Internet connection, check the DTD declaration "
"against the contents of your classpath."
msgstr ""
-"Todos los mapeos XML deben declarar el doctype mostrado. El DTD actual puede "
-"ser encontrado en el URL mencionado arriba, en el directorio "
-"<literal>hibernate-x.x.x/src/org/hibernate</literal>, o en "
-"<literal>hibernate3.jar</literal>. Hibernate siempre buscará el DTD "
-"primero en el classpath. Si experimentas búsquedas del DTD usando una "
-"conexión de Internet, chequea tu declaración de DTD contra la "
-"contenida en el classpath."
+"Todos los mapeos XML deben declarar el tipo de documento que se muestra. El "
+"DTD en sà se puede encontrar en la URL mencionada anteriormente, en el "
+"directorio <literal>hibernate-x.x.x/src/org/hibernate </literal>, o en "
+"<literal>hibernate3.jar</literal>. Hibernate siempre buscará el DTD primero "
+"en la ruta de clase. Si el DTD realiza búsquedas utilizando una conexión de "
+"Internet, verifique que su declaración DTD frente al contenido de su ruta de "
+"clase."
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
-msgstr "UNTRANSLATED! EntityResolver"
+msgstr "EntityResolver"
#. Tag: para
-#: basic_mapping.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
"is by registering a custom <literal>org.xml.sax.EntityResolver</literal> "
@@ -244,30 +116,28 @@
"custom <literal>EntityResolver</literal> recognizes two different systemId "
"namespaces:"
msgstr ""
-"As mentioned previously, Hibernate will first attempt to resolve DTDs in its "
-"classpath. The manner in which it does this is by registering a custom "
-"<literal>org.xml.sax.EntityResolver</literal> implementation with the "
-"SAXReader it uses to read in the xml files. This custom "
-"<literal>EntityResolver</literal> recognizes two different systemId "
-"namespaces."
+"Hibernate tratará primero de resolver los DTDs en su ruta de clase. La "
+"manera en que lo hace es registrando una implementación <literal>org.xml.sax."
+"EntityResolver</literal> personalizada con el SAXReader que utiliza para "
+"leer los archivos xml. Este <literal>EntityResolver</literal> personalizado "
+"reconoce dos diferentes espacios de nombre del identificador del sistema."
#. Tag: para
-#: basic_mapping.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://hibernate.sourceforge."
"net/</literal>. The resolver attempts to resolve these entities via the "
"classloader which loaded the Hibernate classes."
msgstr ""
-"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId starting with <literal>http://hibernate.sourceforge."
-"net/</literal>; the resolver attempts to resolve these entities via the "
-"classlaoder which loaded the Hibernate classes."
+"un <literal>hibernate namespace</literal> se reconoce cuando el resolvedor "
+"se encuentra con un identificador de sistema que inicia por <literal>http://"
+"hibernate.sourceforge.net/</literal>. El resolvedor intenta resolver estas "
+"entidades por medio del cargador de clases, el cual cargó las clases de "
+"Hibernate."
#. Tag: para
-#: basic_mapping.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath://</literal> URL protocol. "
@@ -275,80 +145,36 @@
"thread context classloader and (2) the classloader which loaded the "
"Hibernate classes."
msgstr ""
-"a <literal>user namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId using a <literal>classpath://</literal> URL protocol; "
-"the resolver will attempt to resolve these entities via (1) the current "
-"thread context classloader and (2) the classloader which loaded the "
-"Hibernate classes."
+"un <literal>user namespace</literal> se reconoce cuando el resolvedor se "
+"encuentra con un identificador del sistema utilizando un protocolo URL "
+"<literal>classpath://</literal>. El resolvedor intentará resolver estas "
+"entidades por medio de (1) el cargador de clase del contexto del hilo actual "
+"y (2) el cargador de clase, el cual cargó las clases de Hibernate."
#. Tag: para
-#: basic_mapping.xml:103
-#, fuzzy, no-c-format
-msgid "The following is an example of utilizing user namespacing:"
-msgstr "An example of utilizing user namespacing:"
-
-#. Tag: programlisting
-#: basic_mapping.xml:106
#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
+msgid "The following is an example of utilizing user namespacing:"
msgstr ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://"
-"your/domain/types.xml\">\n"
-" ]>\n"
-" \n"
-" <hibernate-mapping package=\"your."
-"domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type="
-"\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-" </hibernate-mapping>]]>"
+"Este es un ejemplo de la utilización de los espacios de nombre del usuario: "
#. Tag: para
-#: basic_mapping.xml:107
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
"custom\">typedef</link>."
msgstr ""
-"Where <literal>types.xml</literal> is a resource in the <literal>your."
-"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
-"custom\">typedef</link>."
+"En donde <literal>types.xml</literal> es un recurso en el paquete "
+"<literal>your.domain</literal> y comprende un <xref linkend=\"mapping-types-"
+"custom\" /> personalizado."
#. Tag: title
-#: basic_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate-mapping"
-msgstr "hibernate-mapping"
+msgstr "Mapeo de Hibernate "
#. Tag: para
-#: basic_mapping.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
"and <literal>catalog</literal> attributes specify that tables referred to in "
@@ -361,131 +187,97 @@
"literal> attribute allows you to use unqualified class names in the query "
"language."
msgstr ""
-"Este elemento tiene muchos atributos opcionales. Los atributos "
+"Este elemento tiene varios atributos opcionales. Los atributos "
"<literal>schema</literal> y <literal>catalog</literal> especifican que las "
-"tablas a las que se refiere en el mapeo pertenecen al esquema y/o catá"
-"logo mencionado(s). De especificarse, los nombres de tablas serán "
-"cualificados por el nombre de esquema y catálogo dados. De omitirse, "
-"los nombres de tablas no serán cualificados. El atributo "
-"<literal>default-cascade</literal> especifica qué estilo de cascada "
-"debe asumirse para las propiedades y colecciones que no especifican un "
-"atributo <literal>cascade</literal>. El atributo <literal>auto-import</"
-"literal> nos permite usar nombres de clase sin cualificar en el lenguaje de "
-"consulta, por defecto."
+"tablas a las que se refiere en este mapeo pertenecen al esquema y/o catálogo "
+"mencionado(s). De especificarse, los nombres de tablas serán calificados por "
+"el nombre del esquema y del catálogo dados. De omitirse, los nombres de las "
+"tablas no serán calificados. El atributo <literal>default-cascade</literal> "
+"especifica qué estilo de cascada se debe asumir para las propiedades y "
+"colecciones que no especifican un atributo <literal>cascade</literal>. Por "
+"defecto, el atributo <literal>auto-import</literal> nos permite utilizar "
+"nombres de clase sin calificar en el lenguaje de consulta."
-#. Tag: programlisting
-#: basic_mapping.xml:138
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-
#. Tag: para
-#: basic_mapping.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr ""
"<literal>schema</literal> (opcional): El nombre de un esquema de la base de "
-"datos."
+"datos. "
#. Tag: para
-#: basic_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr ""
-"<literal>catalog</literal> (opcional): El nombre de un catálogo de la "
-"base de datos."
+"<literal>catalog</literal> (opcional): El nombre de un catálogo de la base "
+"de datos. "
#. Tag: para
-#: basic_mapping.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
"literal>): a default cascade style."
msgstr ""
-"<literal>default-cascade</literal> (opcional - por defecto a <literal>none</"
-"literal>): Un estilo de cascada por defecto."
+"<literal>default-cascade</literal> (opcional - por defecto es <literal>none</"
+"literal>): Un estilo de cascada por defecto. "
#. Tag: para
-#: basic_mapping.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing all properties. "
"It can be a custom implementation of <literal>PropertyAccessor</literal>."
msgstr ""
-"<literal>default-access</literal> (opcional - por defecto a "
-"<literal>property</literal>): La estrategia que Hibernate debe usar para "
-"acceder a todas las propiedades. Puede ser una implementación "
-"personalizada de <literal>PropertyAccessor</literal>."
+"<literal>default-access</literal> (opcional - por defecto es "
+"<literal>property</literal>): La estrategia que Hibernate debe utilizar para "
+"acceder a todas las propiedades. Puede ser una implementación personalizada "
+"de <literal>PropertyAccessor</literal>."
#. Tag: para
-#: basic_mapping.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
"literal>): the default value for unspecified <literal>lazy</literal> "
"attributes of class and collection mappings."
msgstr ""
-"<literal>default-lazy</literal> (opcional - por defecto a <literal>true</"
+"<literal>default-lazy</literal> (opcional - por defecto es <literal>true</"
"literal>): El valor por defecto para los atributos <literal>lazy</literal> "
-"de mapeos de clase y colleción no especificados."
+"no especificados de mapeos de clase y de colección."
#. Tag: para
-#: basic_mapping.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
"literal>): specifies whether we can use unqualified class names of classes "
"in this mapping in the query language."
msgstr ""
-"<literal>auto-import</literal> (opcional - por defecto a <literal>true</"
-"literal>): Especifica si podemos usar nombres de clases no cualificados (de "
-"clases en este mapeo) en el lenguaje de consulta."
+"<literal>auto-import</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica si podemos utilizar nombres de clases no calificados "
+"de clases en este mapeo en el lenguaje de consulta."
#. Tag: para
-#: basic_mapping.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
-"<literal>package</literal> (opcional): Especifica un prefijo de paquete a "
-"asumir para los nombres no cualificados de clase en el documento de mapeo."
+"<literal>package</literal> (opcional): Especifica un prefijo de paquete que "
+"se debe utilizar para los nombres de clase no calificados en el documento de "
+"mapeo."
#. Tag: para
-#: basic_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\"</literal>. An exception will "
"result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
-"Si tienes dos clases persistentes con el mismo nombre (sin cualificar), "
-"debes establecer <literal>auto-import=\"false\"</literal>. Hibernate "
-"lanzará una excepción si intentas asignar dos clases al mismo "
-"nombre \"importado\"."
+"Si tiene dos clases persistentes con el mismo nombre (sin calificar), debe "
+"establecer <literal>auto-import=\"false\"</literal>. Se presentará una "
+"excepción si usted intenta asignar dos clases al mismo nombre \"importado\"."
#. Tag: para
-#: basic_mapping.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
"persistent <literal><class></literal> mappings, as shown above. It is, "
@@ -495,193 +287,126 @@
"literal>, <literal>Dog.hbm.xml</literal>, or if using inheritance, "
"<literal>Animal.hbm.xml</literal>."
msgstr ""
-"Observa que el elemento <literal>hibernate-mapping</literal> te permite "
-"anidar muchos mapeos <literal><class></literal> persistentes, como se "
-"muestra arriba. Sin embargo, es una buena práctica (y se espera de "
-"algunas herramientas) mapear sólo a una sola clase persistente (o a "
-"una sola jerarquía de clases) en un fichero de mapeo y nombrarlo "
-"después de la superclase persistente; por ejemplo, <literal>Cat.hbm."
-"xml</literal>, <literal>Dog.hbm.xml</literal>, o, si se usa herencia, "
-"<literal>Animal.hbm.xml</literal>."
+"El elemento <literal>hibernate-mapping</literal> le permite anidar varios "
+"mapeos <literal><class></literal> persistentes, como se mostró "
+"anteriormente. Sin embargo, es una buena práctica (y algunas herramientas "
+"esperan) que mapee sólamente una clase persistente, o a una sóla jerarquÃa "
+"de clases, en un archivo de mapeo y nombrarlo como la superclase "
+"persistente. Por ejemplo, <literal>Cat.hbm.xml</literal>, <literal>Dog.hbm."
+"xml</literal>, o si utiliza herencia, <literal>Animal.hbm.xml</literal>."
#. Tag: title
-#: basic_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Class"
-msgstr "subclass"
+msgstr "Clase"
#. Tag: para
-#: basic_mapping.xml:207
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
"element. For example:"
msgstr ""
-"Puedes declarar una clase persistente usando el elemento <literal>class</"
-"literal>:"
+"Puede declarar una clase persistente utilizando el elemento <literal>class</"
+"literal>. Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:235
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:238
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
"the persistent class or interface. If this attribute is missing, it is "
"assumed that the mapping is for a non-POJO entity."
msgstr ""
-"<literal>name</literal> (opcional): El nombre completamente cualificado de "
-"la clase Java persistente (o interface). Si este atributo es omitido, se "
-"asume que el mapeo es para una entidad non-POJO."
+"<literal>name</literal> (opcional): El nombre completamente calificado de la "
+"clase Java persistente (o interfaz). Si se omite este atributo, se asume que "
+"el mapeo es para una entidad que no es POJO."
#. Tag: para
-#: basic_mapping.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
-"<literal>table</literal> (opcional - por defecto al nombre no cualificado de "
-"la clase): El nombre de su tabla en base de datos."
+"<literal>table</literal> (opcional - por defecto es el nombre de la clase no "
+"calificado): El nombre de su tabla en la base de datos."
#. Tag: para
-#: basic_mapping.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
"polymorphic behavior. Acceptable values include <literal>null</literal> and "
"<literal>not null</literal>."
msgstr ""
-"<literal>discriminator-value</literal> (opcional - por defecto al nombre de "
-"la clase): Un valor que distingue subclases individuales, usado para el "
-"comportamiento polimórfico. Los valores aceptables incluyen "
-"<literal>null</literal> y <literal>not null</literal>."
+"<literal>discriminator-value</literal> (opcional - predeterminado al nombre "
+"de la clase): Un valor que distingue subclases individuales, usado para el "
+"comportamiento polimórfico. Los valores aceptables incluyen <literal>null</"
+"literal> y <literal>not null</literal>. "
#. Tag: para
-#: basic_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"specifies that instances of the class are (not) mutable."
msgstr ""
-"<literal>mutable</literal> (opcional, por defecto a <literal>true</"
-"literal>): Especifica que las instancias de la clase (no) son mutables."
+"<literal>mutable</literal> (opcional, por defecto es <literal>true</"
+"literal>): Especifica que las instancias de la clase (no) son mutables. "
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"<literal>schema</literal> (opcional): Sobreescribe el nombre de esquema "
-"especificado por el elemento raíz <literal><hibernate-mapping></"
-"literal>."
+"<literal>schema</literal> (opcional): Sobrescribe el nombre del esquema "
+"especificado por el elemento raÃz <literal><hibernate-mapping></"
+"literal>. "
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"<literal>catalog</literal> (opcional): Sobreescribe el nombre de catá"
-"logo especificado por el elemento raíz <literal><hibernate-"
-"mapping></literal>."
+"<literal>catalog</literal> (opcional): Sobrescribe el nombre del catálogo "
+"especificado por el elemento raÃz <literal><hibernate-mapping></"
+"literal>. "
#. Tag: para
-#: basic_mapping.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
-"<literal>proxy</literal> (opcional): Especifica una interface a usar para "
-"proxies de inicialización perezosa. Puedes especificar el nombre "
-"mismo de la clase."
+"<literal>proxy</literal> (opcional): Especifica una interfaz a utilizar para "
+"los proxies de inicialización perezosa. Puede especificar el nombre mismo de "
+"la clase. "
#. Tag: para
-#: basic_mapping.xml:282
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>UPDATE</literal> SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
-"<literal>dynamic-update</literal> (opcional, por defecto a <literal>false</"
+"<literal>dynamic-update</literal> (opcional, por defecto es <literal>false</"
"literal>): Especifica que el SQL <literal>UPDATE</literal> debe ser generado "
-"en tiempo de ejecución y contener solamente aquellas columnas cuyo "
-"valor haya cambiado."
+"en tiempo de ejecución y puede contener sólamente aquellas columnas cuyos "
+"valores hayan cambiado. "
#. Tag: para
-#: basic_mapping.xml:289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>INSERT</literal> SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
-"<literal>dynamic-insert</literal> (opcional, por defecto a <literal>false</"
+"<literal>dynamic-insert</literal> (opcional, por defecto es <literal>false</"
"literal>): Especifica que el SQL <literal>INSERT</literal> debe ser generado "
-"en tiempo de ejecución y contener solamente aquellas columnas cuyo "
-"valores no son nulos."
+"en tiempo de ejecución y debe contener sólamente aquellas columnas cuyos "
+"valores no son nulos. "
#. Tag: para
-#: basic_mapping.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
"<literal>false</literal>): specifies that Hibernate should <emphasis>never</"
@@ -691,115 +416,106 @@
"Hibernate perform an extra SQL <literal>SELECT</literal> to determine if an "
"<literal>UPDATE</literal> is actually required."
msgstr ""
-"<literal>select-before-update</literal> (opcional, por defecto a "
+"<literal>select-before-update</literal> (opcional, por defecto es "
"<literal>false</literal>): Especifica que Hibernate <emphasis>nunca</"
-"emphasis> debe realizar un SQL <literal>UPDATE</literal> a menos que se "
-"tenga certeza que un objeto haya sido modificado realmente. En ciertos "
-"casos, (realmente, sólo cuando un objeto transitorio ha sido asociado "
-"con una sesión nueva usando <literal>update()</literal>), esto "
-"significa que Hibernate realizará una SQL <literal>SELECT</literal> "
-"extra para determinar si un <literal>UPDATE</literal> es realmente requerido."
+"emphasis> debe realizar un <literal>UPDATE</literal> SQL a menos de que se "
+"tenga certeza de que realmente se haya modificado un objeto. Sólo cuando un "
+"objeto transitorio ha sido asociado con una sesión nueva utilizando "
+"<literal>update()</literal>), Hibernate realizará una SQL <literal>SELECT</"
+"literal> extra para determinar si realmente se necesita un <literal>UPDATE</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
"literal>): determines whether implicit or explicit query polymorphism is "
"used."
msgstr ""
-"<literal>polymorphism</literal> (opcional, por defecto a <literal>implicit</"
-"literal>): Determina si se usa polimorfismo de consulta implícito o "
-"explícito."
+"<literal>polymorphism</literal> (opcional, por defecto es <literal>implicit</"
+"literal>): Determina si se utiliza polimorfismo de consulta implÃcito o "
+"explÃcito. "
#. Tag: para
-#: basic_mapping.xml:312
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition to be used when retrieving objects of "
"this class."
msgstr ""
-"<literal>where</literal> (opcional) especifica una condición SQL "
-"<literal>WHERE</literal> arbitraria paraa ser usada al recuperar objetos de "
-"esta clase."
+"<literal>where</literal> (opcional) especifica una condición SQL "
+"<literal>WHERE</literal> arbitraria para utilizarla en la recuperación de "
+"objetos de esta clase. "
#. Tag: para
-#: basic_mapping.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
"<literal>ClassPersister</literal>."
msgstr ""
"<literal>persister</literal> (opcional): Especifica un "
-"<literal>ClassPersister</literal> personalizado."
+"<literal>ClassPersister</literal> personalizado. "
#. Tag: para
-#: basic_mapping.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
-"<literal>batch-size</literal> (opcional, por defecto a <literal>1</literal>) "
-"especifica un \"tamaño de lote\" para traer instancias de esta clase "
-"por identificador."
+"<literal>batch-size</literal> (opcional, por defecto es <literal>1</"
+"literal>) especifica un \"tamaño de lote\" para buscar instancias de esta "
+"clase por identificador."
#. Tag: para
-#: basic_mapping.xml:329
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
"literal>): determines the optimistic locking strategy."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional, por defecto a "
-"<literal>version</literal>): Determina la estrategia optimista de bloqueo."
+"<literal>optimistic-lock</literal> (opcional, por defecto es "
+"<literal>version</literal>): Determina la estrategia optimista de bloqueo. "
#. Tag: para
-#: basic_mapping.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"<literal>lazy</literal> (opcional): La recuperación perezosa puede "
-"ser deshabilitada por completo estableciendo <literal>lazy=\"false\"</"
-"literal>."
+"<literal>lazy</literal> (opcional): La recuperación perezosa se puede "
+"deshabilitar por completo al establecer <literal>lazy=\"false\"</literal>."
#. Tag: para
-#: basic_mapping.xml:341
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
"Hibernate3 allows a class to be mapped multiple times, potentially to "
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
-"<literal>entity-name</literal> (opcional): Hibernate3 permite que una clase "
-"sea mapeada varias veces (potencialmente a tablas diferentes), y permite que "
-"los mapeos de entidad sean representados por Maps o XML al nivel de Java. En "
-"estos casos, debes proveer un nombre explícito arbitrario para la "
-"entidad. Para más información, mira <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> y <xref linkend=\"xml\"/>."
+"<literal>entity-name</literal> (opcional - por defecto es el nombre de la "
+"clase): Hibernate3 permite mapear una clase varias veces, potencialmente a "
+"tablas diferentes. También permite que los mapeos de entidad sean "
+"representados por Maps o XML al nivel de Java. En estos casos, debe "
+"proporcionar un nombre explÃcito arbitrario para la entidad. Para obtener "
+"más información consulte <xref linkend=\"persistent-classes-dynamicmodels\" /"
+"> y <xref linkend=\"xml\" />."
#. Tag: para
-#: basic_mapping.xml:351
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
"multi-row <emphasis>check</emphasis> constraint for automatic schema "
"generation."
msgstr ""
-"<literal>check</literal> (opcional): Una expresión SQL usada para "
-"generar una restricción <emphasis>check</emphasis> multi-fila para la "
-"generación automática de esquema."
+"<literal>check</literal> (opcional): Una expresión SQL utilizada para "
+"generar una restricción <emphasis>check</emphasis> multi-filas para la "
+"generación automática de esquemas."
#. Tag: para
-#: basic_mapping.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra "
@@ -807,39 +523,36 @@
"literal>. A ROWID is an implementation detail and represents the physical "
"location of a stored tuple."
msgstr ""
-"<literal>rowid</literal> (opcional): Hibernate puede usar los llamados "
-"ROWIDs en las bases de datos que los soporten. Por ejemplo, en Oracle, "
-"Hibernate puede usar la columna extra <literal>rowid</literal> para "
-"actualizaciones rápidas si estableces esta opción a "
-"<literal>rowid</literal>. Un ROWID es un detalle de implementación y "
-"representa la posición física de la tupla almacenada."
+"<literal>rowid</literal> (opcional): Hibernate puede utilizar los llamados "
+"ROWIDs en las bases de datos. Por ejemplo, en Oracle, Hibernate puede "
+"utilizar la columna extra <literal>rowid</literal> para actualizaciones "
+"rápidas si usted establece esta opción como <literal>rowid</literal>. Un "
+"ROWID es un detalle de implementación y representa la posición fÃsica de la "
+"tupla almacenada."
#. Tag: para
-#: basic_mapping.xml:364
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
"entity to a database subselect. This is useful if you want to have a view "
"instead of a base table. See below for more information."
msgstr ""
"<literal>subselect</literal> (opcional): Mapea una entidad inmutable y de "
-"sólo lectura a una subselect de base de datos. Es útil si "
-"quieres tener una vista en vez de una tabla base, pero no tienes vistas. "
-"Mira debajo para más información."
+"sólo lectura a una subselección de base de datos. Es útil si quiere tener "
+"una vista en vez de una tabla base. Vea a continuación para obtener más "
+"información."
#. Tag: para
-#: basic_mapping.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
"superclasses in <literal><union-subclass></literal> hierarchies."
msgstr ""
-"<literal>abstract</literal> (opcional): Usado para marcar superclases "
-"abstractas en jerarquías <literal><union-subclass></literal>."
+"<literal>abstract</literal> (opcional): Utilizado para marcar superclases "
+"abstractas en las jerarquÃas <literal><union-subclass></literal>."
#. Tag: para
-#: basic_mapping.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
"declare implementing classes of that interface using the <literal><"
@@ -848,27 +561,25 @@
"<literal>e.g.Foo$Bar</literal>."
msgstr ""
"Es perfectamente aceptable que la clase persistente mencionada sea una "
-"interface. Entonces declararías clases que implementan esa interface "
-"usando el elemento <literal><subclass></literal>. Puedes persistir "
-"cualquier clase interna <emphasis>estática</emphasis>. Debes "
-"especificar el nombre de la clase usando la forma estándar. Por "
-"ejemplo, <literal>eg.Foo$Bar</literal>."
+"interfaz. Puede declarar clases que implementan esa interfaz utilizando el "
+"elemento <literal><subclass></literal>. Puede persistir cualquier "
+"clase interna <emphasis>estática</emphasis>. Debe especificar el nombre de "
+"la clase utilizando la forma estándar, por ejemplo, <literal>e.g.Foo$Bar</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
"or deleted by the application. This allows Hibernate to make some minor "
"performance optimizations."
msgstr ""
"Las clases inmutables, <literal>mutable=\"false\"</literal>, no pueden ser "
-"actualizadas o borradas por la aplicación. Esto permite a Hibernate "
-"hacer ciertas optimizaciones menores de rendimiento."
+"actualizadas o borradas por la aplicación. Esto le permite a Hibernate "
+"realizar ciertas optimizaciones menores de rendimiento. "
#. Tag: para
-#: basic_mapping.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
"of persistent instances of the class. Hibernate will initially return CGLIB "
@@ -876,16 +587,14 @@
"when a method of the proxy is invoked. See \"Initializing collections and "
"proxies\" below."
msgstr ""
-"El atributo opcional <literal>proxy</literal> habilita la "
-"inicialización postergada de instancias persistentes de la clase. "
-"Hibernate inicialmente retornará proxies CGLIB que implementan la "
-"interface mencionada. El objeto persistente real será cargado cuando "
-"se invoque un método del proxy. Mira \"Proxies para "
-"Inicialización Postergada\" debajo."
+"El atributo opcional <literal>proxy</literal> activa la inicialización "
+"perezosa de instancias persistentes de la clase. Hibernate inicialmente "
+"retornará proxies CGLIB que implementan la interfaz mencionada. El objeto "
+"persistente real será cargado cuando se invoque un método del proxy. Vea "
+"\"Inicialización de colecciones y proxies\" a continuación."
#. Tag: para
-#: basic_mapping.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
"will be returned by a query that names any superclass or implemented "
@@ -901,26 +610,24 @@
"table This allows a \"lightweight\" class that contains a subset of the "
"table columns."
msgstr ""
-"Por polimorfismo <emphasis>implícito</emphasis> se entiende que las "
-"instancias de la clase serán devueltas por una consulta que mencione "
-"cualquier superclase, o interface implementada, o la clase misma; y que las "
-"instancias de cualquier subclase de la clase serán devueltas por una "
-"clase que mencione a la clase en sí. Por polimorfismo "
-"<emphasis>explícito</emphasis> se entiende que instancias de la clase "
-"serán devueltas sólo por consultas que mencionen explí"
-"citamente la clase; y que las consultas que mencionen la clase "
-"devolverán sólo instancias de subclases mapeadas dentro de "
-"esta declaración <literal><class></literal> como una "
-"<literal><subclass></literal> o <literal><joined-subclass></"
-"literal>. Para la mayoría de los propósitos el defecto, "
-"<literal>polymorphism=\"implicit\"</literal>, resulta apropiado. El "
-"polimorfismo explícito es útil cuando dos clases diferentes "
-"están mapeadas a la misma tabla (esto permite tener una clase "
-"\"liviana\" que contenga un subconjunto de columnas de la tabla)."
+"Por polimorfismo <emphasis>implÃcito</emphasis> se entiende que las "
+"instancias de la clase serán devueltas por una consulta que mencione "
+"cualquier superclase, o interfaz implementada, o la clase misma; y que las "
+"instancias de cualquier subclase de la clase serán retornadas por una "
+"petición que nombra a la clase misma. Por polimorfismo <emphasis>explÃcito</"
+"emphasis> se entiende que las instancias de la clase serán devueltas sólo "
+"por consultas que mencionen explÃcitamente la clase. Las consultas que "
+"mencionen la clase retornarán sólo instancias de subclases mapeadas dentro "
+"de esta declaración <literal><class></literal> como una <literal><"
+"subclass></literal> o <literal><joined-subclass></literal>. Para la "
+"mayorÃa de los propósitos el valor por defecto, <literal>polymorphism="
+"\"implicit\"</literal>, resulta apropiado. El polimorfismo explÃcito es útil "
+"cuando dos clases diferentes se encuentran mapeadas a la misma tabla. Esto "
+"permite tener una clase \"liviana\" que contenga un subconjunto de columnas "
+"de la tabla."
#. Tag: para
-#: basic_mapping.xml:410
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
"persistence strategy used for the class. You can, for example, specify your "
@@ -931,19 +638,18 @@
"files or LDAP. See <literal>org.hibernate.test.CustomPersister</literal> for "
"a simple example of \"persistence\" to a <literal>Hashtable</literal>."
msgstr ""
-"El atributo <literal>persister</literal> te permite personalizar la "
-"estrategia de persistencia para la clase. Puedes, por ejemplo, especificar "
-"tu propia subclase de <literal>org.hibernate.persister.EntityPersister</"
-"literal> o incluso puedes proveer una implementación completamente "
-"nueva de la interface <literal>org.hibernate.persister.ClassPersister</"
-"literal> que implemente la persistencia por medio, por ejemplo, de llamadas "
-"a procedimientos almacenados, serialización a ficheros planos o LDAP. "
-"Para un ejemplo simple (de persistencia a una <literal>Hashtable</literal>) "
-"mira <literal>org.hibernate.test.CustomPersister</literal>."
+"El atributo <literal>persister</literal> le permite personalizar la "
+"estrategia de persistencia para la clase. Por ejemplo, puede especificar su "
+"propia subclase de <literal>org.hibernate.persister.EntityPersister</"
+"literal>, o incluso puede proporcionar una implementación completamente "
+"nueva de la interfaz <literal>org.hibernate.persister.ClassPersister</"
+"literal> que implemente, por ejemplo, la persistencia por medio de llamadas "
+"a procedimientos almacenados, serialización a archivos planos o LDAP. Para "
+"ver un ejemplo simple (de \"persistencia\" a una <literal>Hashtable</"
+"literal>) consulte <literal>org.hibernate.test.CustomPersister</literal>. "
#. Tag: para
-#: basic_mapping.xml:421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
"settings are not inherited by subclasses, so they can also be specified on "
@@ -951,86 +657,76 @@
"literal> elements. Although these settings can increase performance in some "
"cases, they can actually decrease performance in others."
msgstr ""
-"Observa que los valores de <literal>dynamic-update</literal> y "
-"<literal>dynamic-insert</literal> no son heredados por las subclases y por "
-"lo tanto deben especificarse en los elementos <literal><subclass></"
-"literal> o <literal><joined-subclass></literal>. Estos ajustes pueden "
-"incrementar el rendimiento en algunos casos, pero podrían mermarlo en "
-"otros. Ten juicio en su uso."
+"Los valores de <literal>dynamic-update</literal> y <literal>dynamic-insert</"
+"literal> no son heredados por las subclases y por lo tanto deben "
+"especificarse en los elementos <literal><subclass></literal> o "
+"<literal><joined-subclass></literal>. Aunque en algunos casos, estos "
+"ajustes pueden incrementar el rendimiento, de hecho en otros casos, podrÃan "
+"disminuirlo."
#. Tag: para
-#: basic_mapping.xml:429
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
"performance. It is useful to prevent a database update trigger being called "
"unnecessarily if you reattach a graph of detached instances to a "
"<literal>Session</literal>."
msgstr ""
-"Generalmente el uso de <literal>select-before-update</literal> "
-"disminuirá el rendimiento. Es muy útil prevenir que se llame "
-"innecesariamente a un disparador de actualización de base de datos al "
-"volver a unir un grafo de instancias separadas a una <literal>Session</"
-"literal>."
+"El uso de <literal>select-before-update</literal> disminuirá el rendimiento. "
+"Es muy útil prevenir que se llame innecesariamente a un disparador de "
+"actualización de la base de datos al volver a unir un gráfico de instancias "
+"separadas a una <literal>Session</literal>."
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
"optimistic locking strategies:"
msgstr ""
-"Si habilitas <literal>dynamic-update</literal>, tendrás opción "
-"de estrategias de bloqueo optimistas:"
+"Si activa <literal>dynamic-update</literal>, usted tendrá la opción de "
+"estrategias de bloqueo optimistas:"
#. Tag: para
-#: basic_mapping.xml:441
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
msgstr ""
-"<literal>version</literal> chequea las columnas de versión/timestamp"
+"<literal>version</literal>: chequea las columnas de versión/sello de fecha"
#. Tag: para
-#: basic_mapping.xml:446
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>all</literal>: check all columns"
-msgstr "<literal>all</literal> chequea todas las columnas"
+msgstr "<literal>all</literal>: chequea todas las columnas"
#. Tag: para
-#: basic_mapping.xml:451
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
"concurrent updates"
msgstr ""
-"<literal>dirty</literal> chequea las columnas modificadas, permitiendo "
+"<literal>dirty</literal>: chequea las columnas modificadas permitiendo "
"algunas actualizaciones concurrentes"
#. Tag: para
-#: basic_mapping.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
-msgstr "<literal>none</literal> no usa bloqueo optimista"
+msgstr "<literal>none</literal>: no utilice bloqueo optimista"
#. Tag: para
-#: basic_mapping.xml:461
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
"timestamp columns for optimistic locking with Hibernate. This strategy "
"optimizes performance and correctly handles modifications made to detached "
"instances (i.e. when <literal>Session.merge()</literal> is used)."
msgstr ""
-"Recomendamos <emphasis>muy</emphasis> fuertemente que uses columnas de "
-"versión/timestamp para bloqueo optimista con Hibernate. Esta es la "
-"estrategia óptima con respecto al rendimiento y es la única "
-"estrategia que maneja correctamente las modificaciones hechas a las "
-"instancias separadas. (por ejemplo, cuando se usa <literal>Session.merge()</"
-"literal>)."
+"Le recomendamos <emphasis>mucho</emphasis> que utilice columnas de versión/"
+"sello de fecha para el bloqueo optimista con Hibernate. Esta estrategia "
+"optimiza el rendimiento y maneja correctamente las modificaciones realizadas "
+"a las instancias separadas, (por ejemplo, cuando se utiliza <literal>Session."
+"merge()</literal>)."
#. Tag: para
-#: basic_mapping.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
"mapping. This is transparent at the database level, although some DBMS do "
@@ -1040,66 +736,33 @@
"given SQL subselect expression:"
msgstr ""
"Para un mapeo de Hibernate, no hay diferencia entre una vista y una tabla "
-"base. Como se supone esto es transparente a nivel de base de datos (observa "
-"que algunos DBMS no soportan correctamente las vistas, especialmente con las "
-"actualizaciones). A veces quieres usar una vista, pero no puedes crear una "
-"en la base de datos (por ejemplo, con un esquema heredado). En este caso, "
-"puedes mapear una entidad inmutable de sólo lectura a una "
-"expresión de subconsulta SQL dada."
+"base. Esto es transparente a nivel de base de datos, aunque algunos DBMS no "
+"soportan correctamente las vistas, especialmente con las actualizaciones. A "
+"veces usted quiere utilizar una vista, pero no puede crear una en la base de "
+"datos (por ejemplo, con un esquema heredado). En este caso, usted puede "
+"mapear una entidad inmutable de sólo lectura a una expresión de subconsulta "
+"SQL dada."
-#. Tag: programlisting
-#: basic_mapping.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:478
-#, fuzzy, no-c-format
-msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
"happens correctly and that queries against the derived entity do not return "
"stale data. The <literal><subselect></literal> is available both as an "
"attribute and a nested mapping element."
msgstr ""
-"Declara las tablas con las que sincronizar esta entidad, asegurando que el "
-"auto-flush ocurre correctamente, y que las consultas contra la entidad "
-"derivada no devuelven datos desactualizados. El <literal><subselect></"
-"literal> está disponible tanto como un atributo o como un elemento "
-"anidado de mapeo."
+"Declara las tablas con las cuales se debe sincronizar esta entidad, "
+"asegurándose de que el auto-vaciado ocurra correctamente y que las consultas "
+"frente a la entidad derivada no devuelvan datos desactualizados. El "
+"<literal><subselect></literal> se encuentra disponible tanto como un "
+"atributo y como un elemento anidado de mapeo."
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
-msgstr "<title>id</title>"
+msgid "id"
+msgstr "id"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -1108,94 +771,62 @@
"literal> element defines the mapping from that property to the primary key "
"column."
msgstr ""
-"Las clases mapeadas <emphasis>deben</emphasis> declarar la columna de clave "
-"primaria de la tabla de la base de datos. En la mayoría de los casos "
-"tendrá también una propiedad estilo Javabeans que tenga el "
-"identificador único de una instancia. El elemento <literal><id>"
-"</literal> define el mapeo de esa propiedad a la columna de clave primaria."
+"Las clases mapeadas <emphasis>tienen</emphasis> que declarar la columna de "
+"clave primaria de la tabla de la base de datos. La mayorÃa de las clases "
+"también tendrán una propiedad de estilo Javabeans que tenga el identificador "
+"único de una instancia. El elemento <literal><id></literal> define el "
+"mapeo de esa propiedad a la columna de clave primaria."
-#. Tag: programlisting
-#: basic_mapping.xml:505
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\">\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:508
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the name of the identifier property."
msgstr ""
"<literal>name</literal> (opcional): El nombre de la propiedad del "
-"indentificador."
+"identificador. s"
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
msgstr ""
-"<literal>type</literal> (opcional): un nombre que indica el nobre Hibernate."
+"<literal>type</literal> (opcional): un nombre que indica el tipo de "
+"Hibernate."
#. Tag: para
-#: basic_mapping.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the primary key column."
msgstr ""
-"<literal>column</literal> (opcional - por defecto al nombre de la "
-"propiedad): El nombre de la columna de clave primaria."
+"<literal>column</literal> (opcional - por defecto es el nombre de la "
+"propiedad): El nombre de la columna de la clave principal."
#. Tag: para
-#: basic_mapping.xml:524
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
"value): an identifier property value that indicates an instance is newly "
"instantiated (unsaved), distinguishing it from detached instances that were "
"saved or loaded in a previous session."
msgstr ""
-"<literal>unsaved-value</literal> (opcional - por defecto al valor \"sensible"
-"\"): Una valor de la propiedad identificadora que indica que una instancia "
-"está recién instanciada (sin salvar), distinguiéndola "
-"de instancias separadas que fueran salvadas o cargadas en una sesión "
-"previa."
+"<literal>unsaved-value</literal> (opcional - por defecto es un valor "
+"\"sensible\"): Un valor de la propiedad identificadora que indica que una "
+"instancia está recién instanciada (sin guardar), distinguiéndola de las "
+"instancias separadas que fueron guardadas o cargadas en una sesión previa."
#. Tag: para
-#: basic_mapping.xml:532
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing the property "
"value."
msgstr ""
-"<literal>access</literal> (opcional - por defecto a <literal>property</"
-"literal>): La estrategia que Hibernate debe usar para acceder al valor de la "
-"propiedad."
+"<literal>access</literal> (opcional - por defecto es <literal>property</"
+"literal>): La estrategia que Hibernate debe utilizar para acceder al valor "
+"de la propiedad. "
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
@@ -1205,36 +836,31 @@
"tiene propiedad identificadora."
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
"Hibernate3."
msgstr ""
-"El atributo <literal>unsaved-value</literal> es importante! Si la propiedad "
-"identificadora de tu clase no tiene por defecto el valor por defecto normal "
-"de Java (null o cero), entonces debes especificar el valor por defecto real."
+"El atributo <literal>unsaved-value</literal> casi nunca se necesita en "
+"Hibernate3."
#. Tag: para
-#: basic_mapping.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
"that allows access to legacy data with composite keys. Its use is strongly "
"discouraged for anything else."
msgstr ""
-"Hay una declaración <literal><composite-id></literal> "
-"alternativa para permitir acceso a datos heredados con claves compuestas. "
-"Desalentamos fuertemente su uso para cualquier otra cosa."
+"Hay una declaración <literal><composite-id></literal> opcional para "
+"permitir acceso a los datos heredados con claves compuestas. Le disuadimos "
+"seriamente de su utilización para cualquier otra cosa."
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
-msgstr "Generator"
+msgstr "Generador"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1244,53 +870,33 @@
"literal> element."
msgstr ""
"El elemento hijo opcional <literal><generator></literal> nombra una "
-"clase Java usada en generar identificadores únicos para instancias de "
-"la clase persistente. De requerirse algún parámetro para "
-"configurar o inicializar la instancia del generador, se pasa usando el "
-"elemento <literal><param></literal>."
+"clase Java utilizada para generar identificadores únicos para instancias de "
+"la clase persistente. De requerirse algún parámetro para configurar o "
+"inicializar la instancia del generador, se pasa utilizando el elemento "
+"<literal><param></literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:564
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:566
-#, fuzzy, no-c-format
-msgid ""
"All generators implement the interface <literal>org.hibernate.id."
"IdentifierGenerator</literal>. This is a very simple interface. Some "
"applications can choose to provide their own specialized implementations, "
"however, Hibernate provides a range of built-in implementations. The "
"shortcut names for the built-in generators are as follows:"
msgstr ""
-"Todos los generadores implementan la interface <literal>org.hibernate.id."
-"IdentifierGenerator</literal>. Esta es una interface muy simple; algunas "
-"aplicaciones pueden escoger proveer sus propias implementaciones "
+"Todos los generadores implementan la interfaz <literal>org.hibernate.id."
+"IdentifierGenerator</literal>. Esta es una interfaz muy simple. Algunas "
+"aplicaciones pueden decidir brindar sus propias implementaciones "
"especializadas. Sin embargo, Hibernate provee un rango de implementaciones "
-"prefabricadas. Hay nombres alias de atajo para los generadores prefabricados:"
+"ya incorporadas. Los nombres de atajo para los generadores incorporados son "
+"los siguientes:"
-#. Tag: literal
-#: basic_mapping.xml:574
+#. Tag: term
#, no-c-format
-msgid "increment"
-msgstr "increment"
+msgid "<literal>increment</literal>"
+msgstr "<literal>increment</literal>"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1299,18 +905,16 @@
"cluster.</emphasis>"
msgstr ""
"genera indentificadores de tipo <literal>long</literal>, <literal>short</"
-"literal> o <literal>int</literal> que sólo son únicos cuando "
-"ningún otro proceso está insertando datos en la misma tabla. "
-"<emphasis>No usar en un cluster.</emphasis>"
+"literal> o <literal>int</literal> que sólamente son únicos cuando ningún "
+"otro proceso está insertando datos en la misma tabla. <emphasis>No lo "
+"utilice en un clúster.</emphasis>"
-#. Tag: literal
-#: basic_mapping.xml:585
+#. Tag: term
#, no-c-format
-msgid "identity"
-msgstr "identity"
+msgid "<literal>identity</literal>"
+msgstr "<literal>identity</literal>"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
@@ -1321,14 +925,12 @@
"HypersonicSQL. El identificador devuelto es de tipo <literal>long</literal>, "
"<literal>short</literal> o <literal>int</literal>."
-#. Tag: literal
-#: basic_mapping.xml:595
+#. Tag: term
#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+msgid "<literal>sequence</literal>"
+msgstr "<literal>sequence</literal>"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
@@ -1339,14 +941,12 @@
"en Interbase. El identificador devuelto es de tipo <literal>long</literal>, "
"<literal>short</literal> o <literal>int</literal>."
-#. Tag: literal
-#: basic_mapping.xml:605
+#. Tag: term
#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+msgid "<literal>hilo</literal>"
+msgstr "<literal>hilo</literal>"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1356,71 +956,63 @@
"hi/lo algorithm generates identifiers that are unique only for a particular "
"database."
msgstr ""
-"usa un algoritmo alto/bajo para generar eficientemente identificadores de "
-"tipo <literal>long</literal>, <literal>short</literal> o <literal>int</"
+"utiliza un algoritmo alto/bajo para generar eficientemente identificadores "
+"de tipo <literal>long</literal>, <literal>short</literal> o <literal>int</"
"literal>, dada una tabla y columna como fuente de valores altos (por defecto "
"<literal>hibernate_unique_key</literal> y <literal>next_hi</literal> "
"respectivamente). El algoritmo alto/bajo genera identificadores que son "
-"únicos sólo para una base de datos particular."
+"únicos sólamente para una base de datos particular."
-#. Tag: literal
-#: basic_mapping.xml:617
+#. Tag: term
#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>seqhilo</literal>"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long</literal>, <literal>short</literal> or <literal>int</literal>, "
"given a named database sequence."
msgstr ""
-"usa un algoritmo alto/bajo para generar eficientemente identificadores de "
-"tipo <literal>long</literal>, <literal>short</literal> o <literal>int</"
+"utiliza un algoritmo alto/bajo para generar eficientemente identificadores "
+"de tipo <literal>long</literal>, <literal>short</literal> o <literal>int</"
"literal>, dada una secuencia de base de datos."
-#. Tag: literal
-#: basic_mapping.xml:627
+#. Tag: term
#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+msgid "<literal>uuid</literal>"
+msgstr "<literal>uuid</literal>"
#. Tag: para
-#: basic_mapping.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
"are unique within a network (the IP address is used). The UUID is encoded as "
"a string of 32 hexadecimal digits in length."
msgstr ""
-"usa un algoritmo UUID de 128 bits para generar identificadore de tipo "
-"cadena, únicos en una ref (se usa la direccón IP). El UUID se "
-"codifica como una cadena hexadecimal de 32 dígitos de largo."
+"utiliza un algoritmo UUID de 128 bits para generar identificadores de tipo "
+"cadena, únicos dentro de una red (se utiliza la direccón IP). El UUID se "
+"codifica como una cadena hexadecimal de 32 dÃgitos de largo."
-#. Tag: literal
-#: basic_mapping.xml:637
+#. Tag: term
#, no-c-format
-msgid "guid"
-msgstr "guid"
+msgid "<literal>guid</literal>"
+msgstr "<literal>guid</literal>"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
msgstr ""
-"usa una cadena GUID generada por base de datos en MS SQL Server y MySQL."
+"utiliza una cadena GUID generada por base de datos en MS SQL Server y MySQL."
-#. Tag: literal
-#: basic_mapping.xml:645
+#. Tag: term
#, no-c-format
-msgid "native"
-msgstr "native"
+msgid "<literal>native</literal>"
+msgstr "<literal>native</literal>"
#. Tag: para
-#: basic_mapping.xml:647
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
"<literal>hilo</literal> depending upon the capabilities of the underlying "
@@ -1428,70 +1020,62 @@
msgstr ""
"selecciona <literal>identity</literal>, <literal>sequence</literal> o "
"<literal>hilo</literal> dependiendo de las capacidades de la base de datos "
-"subyacente."
+"subyacente. "
-#. Tag: literal
-#: basic_mapping.xml:655
+#. Tag: term
#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+msgid "<literal>assigned</literal>"
+msgstr "<literal>assigned</literal>"
#. Tag: para
-#: basic_mapping.xml:657
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
"()</literal> is called. This is the default strategy if no <literal><"
"generator></literal> element is specified."
msgstr ""
-"deja a la aplicación asignar un identificador al objeto antes de que "
-"se llame a <literal>save()</literal>. Esta es la estrategia por defecto si "
-"no se especifica un elemento <literal><generator></literal>."
+"deja a la aplicación asignar un identificador al objeto antes de que se "
+"llame a <literal>save()</literal>. Esta es la estrategia por defecto si no "
+"se especifica un elemento <literal><generator></literal>. "
-#. Tag: literal
-#: basic_mapping.xml:665
+#. Tag: term
#, no-c-format
-msgid "select"
-msgstr "select"
+msgid "<literal>select</literal>"
+msgstr "<literal>select</literal>"
#. Tag: para
-#: basic_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
"row by some unique key and retrieving the primary key value."
msgstr ""
-"recupera una clave primaria asignada por un disparador de base de datos "
-"seleccionando la fila por alguna clave única y recuperando el valor "
-"de la clave primaria."
+"recupera una clave principal asignada por un disparador de base de datos "
+"seleccionando la fila por alguna clave única y recuperando el valor de la "
+"clave principal."
-#. Tag: literal
-#: basic_mapping.xml:674
+#. Tag: term
#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+msgid "<literal>foreign</literal>"
+msgstr "<literal>foreign</literal>"
#. Tag: para
-#: basic_mapping.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one></literal> primary key "
"association."
msgstr ""
-"usa el identificador de otro objeto asociado. Generalmente usado en "
-"conjuncón a una asociacón de clave primaria <literal><uno-a-"
-"uno></literal>"
+"utiliza el identificador de otro objeto asociado. Generalmente se usa en "
+"conjunto cón a una asociación de clave principal <literal><one-to-one>"
+"</literal>."
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
-msgstr "UNTRANSLATED! sequence-identity"
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
"for the actual value generation, but combines this with JDBC3 "
@@ -1500,22 +1084,22 @@
"drivers targeted for JDK 1.4. Comments on these insert statements are "
"disabled due to a bug in the Oracle drivers."
msgstr ""
-"a specialized sequence generation strategy which utilizes a database "
-"sequence for the actual value generation, but combines this with JDBC3 "
-"getGeneratedKeys to actually return the generated identifier value as part "
-"of the insert statement execution. This strategy is only known to be "
-"supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on "
-"these insert statements are disabled due to a bug in the Oracle drivers."
+"una estrategia de generación de secuencias especilizadas que utiliza una "
+"secuencia de base de datos para el valor real de la generación, pero combina "
+"esto junto con JDBC3 getGeneratedKeys para devolver el valor del "
+"identificador generado como parte de la ejecución de la declaración de "
+"inserción. Esta estrategia está soportada sólamente en los controladores 10g "
+"de Oracle destinados para JDK1.4. Los comentarios en estas declaraciones de "
+"inserción están desactivados debido a un error en los controladores de "
+"Oracle."
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "Algoritmo alto/bajo"
#. Tag: para
-#: basic_mapping.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
"provide two alternate implementations of the hi/lo algorithm. The first "
@@ -1523,97 +1107,53 @@
"available \"hi\" value. Where supported, the second uses an Oracle-style "
"sequence."
msgstr ""
-"Los generadores <literal>hilo</literal> y <literal>seqhilo</literal> proveen "
-"dos implementaciones alternativas del algoritmo alto/bajo, un enfoque "
-"favorito en generación de identificadores. La primera "
-"implementación requiere de una tabla \"especial\" de base de datos "
-"para tener el siguiente valor \"alto\" disponible. La segunda usa una "
-"secuencia del estilo de Oracle (donde se soporte)."
+"Los generadores <literal>hilo</literal> y <literal>seqhilo</literal> brindan "
+"dos implementaciones opcionales del algoritmo alto/bajo. La primera "
+"implementación necesita de una tabla \"especial\" de base de datos para "
+"tener el siguiente valor \"alto\" disponible. La segunda utiliza una "
+"secuencia del estilo de Oracle, donde se encuentre soportada."
-#. Tag: programlisting
-#: basic_mapping.xml:710
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:714
-#, fuzzy, no-c-format
-msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
"own <literal>Connection</literal> to Hibernate. When Hibernate uses an "
"application server datasource to obtain connections enlisted with JTA, you "
"must configure the <literal>hibernate.transaction.manager_lookup_class</"
"literal>."
msgstr ""
-"Desafortunadamente, no puedes usar <literal>hilo</literal> cuando le proveas "
-"tu propia <literal>Connection</literal> a Hibernate. Cuando Hibernate "
-"está usando un datasource del servidor de aplicaciones para obtener "
-"conexiones alistadas con JTA, debes configurar correctamente el "
+"Desafortunadamente, no puede utilizar <literal>hilo</literal> cuando le "
+"provea su propia <literal>Connection</literal> a Hibernate. Cuando Hibernate "
+"está utilizando una fuente de datos del servidor de aplicaciones para "
+"obtener conexiones alistadas con JTA, usted tiene que configurar el "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
msgstr "Algoritmo UUID"
#. Tag: para
-#: basic_mapping.xml:724
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
"quarter second, system time and a counter value that is unique within the "
"JVM. It is not possible to obtain a MAC address or memory address from Java "
"code, so this is the best option without using JNI."
msgstr ""
-"El UUID contiene: la dirección IP, el instante de arranque de la JVM "
-"(con una precisión de un cuarto de segundo), el tiempo de sistema y "
-"un valor de contador (único en la JVM). No es posible obtener una "
-"dirección MAC o una dirección de memoria desde código "
-"Java, así que esto es lo mejor que podemos hacer sin usar JNI."
+"El UUID contiene: la dirección IP, el tiempo de iniciación de la MVJ, con "
+"una precisión de un cuarto de segundo, el tiempo de sistema y un valor de "
+"contador (único en la MVJ). No es posible obtener una dirección MAC o una "
+"dirección de memoria desde el código Java, asà que esto es la mejor opción "
+"sin tener que utilizar JNI."
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr "Columnas de identidad y secuencias"
#. Tag: para
-#: basic_mapping.xml:734
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity</literal> key generation. For databases that "
@@ -1622,65 +1162,32 @@
"strategies require two SQL queries to insert a new object. For example:"
msgstr ""
"Para las bases de datos que soportan columnas de identidad (DB2, MySQL, "
-"Sybase, MS SQL), puedes usar generación de claves <literal>identity</"
-"literal>. Para las bases de datos que soportan secuencias (DB2, Oracle, "
-"PostgreSQL, Interbase, McKoi, SAP DB) puedes usar la generación de "
-"claves del estilo <literal>sequence</literal>. Ambas estrategias requieren "
-"dos consultas SQL para insertar un nuevo objeto."
+"Sybase, MS SQL), puede utilizar generación de claves <literal>identity</"
+"literal>. Para las bases de datos que soportan las secuencias (DB2, Oracle, "
+"PostgreSQL, Interbase, McKoi, SAP DB) puede utilizar la generación de claves "
+"del estilo <literal>sequence</literal>. Ambas estrategias requieren dos "
+"consultas SQL para insertar un nuevo objeto. Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:742
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:746
-#, fuzzy, no-c-format
-msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</"
"literal> strategies."
msgstr ""
-"Para desarrollos multiplataforma, la estrategia <literal>native</literal> "
-"eiligirá de entre las estrategias <literal>identity</literal>, "
-"<literal>sequence</literal> y <literal>hilo</literal>, dependiendo de las "
-"capacidades de la base de datos subyacentes."
+"Para desarrollos a través de plataformas, la estrategia <literal>native</"
+"literal> eligirá entre las estrategias <literal>identity</literal>, "
+"<literal>sequence</literal> e <literal>hilo</literal>, dependiendo de las "
+"capacidades de la base de datos subyacente."
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr "Identificadores asignados"
#. Tag: para
-#: basic_mapping.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
"Hibernate generate them, you can use the <literal>assigned</literal> "
@@ -1690,17 +1197,16 @@
"behavior if you do not specify a <literal><generator></literal> "
"element."
msgstr ""
-"Si quieres que la aplicación asigne los identificadores (en "
-"contraposición a que los genere Hibernate), puedes usar el generador "
-"<literal>assigned</literal>. Este generador especial usará el valor "
-"identificador ya asignado a la propiedad identificadora del objeto. Este "
-"generador se usa cuandola clave primaria es una clave natural en vez de una "
-"clave sustituta. Este es el comportamiento por defecto si no especificas un "
+"Si quiere que la aplicación asigne los identificadores, en contraposición a "
+"que los genere Hibernate, puede utilizar el generador <literal>assigned</"
+"literal>. Este generador especial utilizará el valor identificador ya "
+"asignado a la propiedad identificadora del objeto. Este generador se utiliza "
+"cuando la clave principal es una clave natural en vez de una clave "
+"sustituta. Este es el comportamiento por defecto si no especifica un "
"elemento <literal><generator></literal>."
#. Tag: para
-#: basic_mapping.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go "
@@ -1708,65 +1214,45 @@
"there is a version or timestamp property, or you define <literal>Interceptor."
"isUnsaved()</literal>."
msgstr ""
-"Elegir el generador <literal>assigned</literal> hace que Hibernate use "
-"<literal>unsaved-value=\"undefined\"</literal>, forzando a Hibernate a ir a "
-"la base de datos para determinar si una instancia es transitoria o separada, "
-"a menos que haya una propiedad de versión o timestamp, o que tu "
-"definas <literal>Interceptor.isUnsaved()</literal>."
+"El generador <literal>assigned</literal> hace que Hibernate utilice "
+"<literal>unsaved-value=\"undefined\"</literal>. Esto fuerza a Hibernate a ir "
+"a la base de datos para determinar si una instancia es transitoria o "
+"separada, a menos de que haya una propiedad de versión o sello de fecha, o "
+"que usted defina <literal>Interceptor.isUnsaved()</literal>."
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr "Claves primarias asignadas por disparadores"
#. Tag: para
-#: basic_mapping.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
msgstr ""
-"Para esquemas heredados solamente (Hibernate no genera DDL con disparadores)."
+"Hibernate no genera DDL con disparadores. Es para los esquemas heredados "
+"sólamente."
-#. Tag: programlisting
-#: basic_mapping.xml:779
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:781
-#, fuzzy, no-c-format
-msgid ""
"In the above example, there is a unique valued property named "
"<literal>socialSecurityNumber</literal>. It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id</literal>, whose "
"value is generated by a trigger."
msgstr ""
-"En el ejemplo de arriba, hay una propiedad ánica llamada "
-"<literal>socialSecurityNumber</literal> definida por la clase, como una "
-"clave natural, y una clave sustituta llamada <literal>person_id</literal> "
-"cuyo valor es generado por un disparador."
+"En el ejemplo anterior, hay una propiedad única llamada "
+"<literal>socialSecurityNumber</literal>, Esta está definida por la clase, "
+"como una clave natural y una clave sustituta llamada <literal>person_id</"
+"literal>, cuyo valor es generado por un disparador."
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
-msgstr "Enhanced identifier generators"
+msgstr "Generadores mejorados del identificador"
#. Tag: para
-#: basic_mapping.xml:795
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
"thinking of 2 different aspects of identifier generation. The first aspect "
@@ -1776,17 +1262,18 @@
"the named generators described above, starting in 3.3.x. However, they are "
"included in the current releases and can be referenced by FQN."
msgstr ""
-"Starting with release 3.2.3, there are 2 new generators which represent a re-"
-"thinking of 2 different aspects of identifier generation. The first aspect "
-"is database portability; the second is optimization (not having to query the "
-"database for every request for a new identifier value). These two new "
-"generators are intended to take the place of some of the named generators "
-"described above (starting in 3.3.x); however, they are included in the "
-"current releases and can be referenced by FQN."
+"Desde el lanzamiento 3.2.3, hay 2 nuevos generadores, los cuales representan "
+"una nueva reflexión sobre dos aspectos diferentes de la generación del "
+"identificador. El primer aspecto es qúe tan portátil es la base de datos; el "
+"segudno es la optimización. La optimización significa que no tiene que "
+"preguntarle a la base de datos por toda petición de un nuevo valor "
+"identificador. Estos dos nuevos generadores tienen el propósito de tomar el "
+"lugar de algunos de los generadores nombrados que describimos anteriormente, "
+"empezando por 3.3.x. Sin embargo, están incluÃdos en los lanzamientos "
+"actuales y puede ser referenciados por FQN."
#. Tag: para
-#: basic_mapping.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
"SequenceStyleGenerator</literal> which is intended, firstly, as a "
@@ -1805,99 +1292,96 @@
"with its table-based generators. This generator has a number of "
"configuration parameters:"
msgstr ""
-"The first of these new generators is <literal>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</literal> which is intended firstly as a replacement "
-"for the <literal>sequence</literal> generator and secondly as a better "
-"portability generator than <literal>native</literal> (because "
-"<literal>native</literal> (generally) chooses between <literal>identity</"
-"literal> and <literal>sequence</literal> which have largely different "
-"semantics which can cause subtle isssues in applications eyeing "
-"portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
-"literal> however achieves portability in a different manner. It chooses "
-"between using a table or a sequence in the database to store its "
-"incrementing values depending on the capabilities of the dialect being used. "
-"The difference between this and <literal>native</literal> is that table-"
-"based and sequence-based storage have the same exact semantic (in fact "
-"sequences are exactly what Hibernate tries to emmulate with its table-based "
-"generators). This generator has a number of configuration parameters:"
+"El primero de estos nuevos generadores es <literal>org.hibernate.id.enhanced."
+"SequenceStyleGenerator</literal>, el cual tiene el propósito, primero, de "
+"ser el reemplazo para el generador <literal>sequence</literal> y segundo, de "
+"ser un generador de portabilidad mejor que <literal>native</literal>. Esto "
+"se debe a que <literal>native</literal> generalmente escoge entre "
+"<literal>identity</literal> y <literal>sequence</literal>, los cuales tienen "
+"una gran diferencia semántica que puede crear problemas sutiles en las "
+"aplicaciones mirando la portabilidad. Sin embargo, <literal>org.hibernate.id."
+"enhanced.SequenceStyleGenerator</literal>, logra la portabilidad de una "
+"manera diferente. Escoge entre una tabla o una secuencia en la base de datos "
+"para almacenar sus valores en subida, dependiendo de las capacidades del "
+"dialecto que se está utilizando. La diferencia enter esto y <literal>native</"
+"literal> es que el almacenamiento basado en tablas y secuencias tienen la "
+"misma semántica. De hecho, las secuencias son exactamente lo que Hibernate "
+"trata de emular con sus generadores basados en tablas. Este generador tiene "
+"un número de parámetros de configuración:"
#. Tag: para
-#: basic_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
"<literal>hibernate_sequence</literal>): the name of the sequence or table to "
"be used."
msgstr ""
-"<literal>sequence_name</literal> (optional, defaults to "
-"<literal>hibernate_sequence</literal>): The name of the sequence (or table) "
-"to be used."
+"<literal>sequence_name</literal> (opcional, por defecto es "
+"<literal>hibernate_sequence</literal>): el nombre de la secuencia o la tabla "
+"a utilizar."
#. Tag: para
-#: basic_mapping.xml:823
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
"literal>): the initial value to be retrieved from the sequence/table. In "
"sequence creation terms, this is analogous to the clause typically named "
"\"STARTS WITH\"."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the sequence/table. In "
-"sequence creation terms, this is analogous to the clause typical named "
-"\"STARTS WITH\"."
+"<literal>initial_value</literal> (opcional, por defecto es <literal>1</"
+"literal>): el valor inicial a recuperarse de la secuencia/tabla. En términos "
+"de creación de secuencias, esto es análogo a la cláusula que usualmente se "
+"llama \"STARTS WITH\"."
#. Tag: para
-#: basic_mapping.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): the value by which subsequent calls to the sequence/table should "
"differ. In sequence creation terms, this is analogous to the clause "
"typically named \"INCREMENT BY\"."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the sequence/table should "
-"differ. In sequence creation terms, this is analogous to the clause typical "
-"named \"INCREMENT BY\"."
+"<literal>increment_size</literal> (opcional - por defecto es <literal>1</"
+"literal>): el valor por el cual las llamadas subsecuentes a la secuencia/"
+"tabla deben diferir. En términos de creación de secuencias, esto es análogo "
+"a la cláusula que usualmente se llama \"INCREMENT BY\"."
#. Tag: para
-#: basic_mapping.xml:837
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
"literal>): should we force the use of a table as the backing structure even "
"though the dialect might support sequence?"
msgstr ""
-"<literal>force_table_use</literal> (optional, defaults to <literal>false</"
-"literal>): Should we force the use of a table as the backing structure even "
-"though the dialect might support sequence?"
+"<literal>force_table_use</literal> (opcional - por defecto es "
+"<literal>false</literal>): ¿debemos forzar el uso de una tabla como la "
+"estructura de respaldo aunque puede que el dialecto soporte la secuencia?"
#. Tag: para
-#: basic_mapping.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
"literal>): only relevant for table structures, it is the name of the column "
"on the table which is used to hold the value."
msgstr ""
-"<literal>value_column</literal> (optional, defaults to <literal>next_val</"
-"literal>): Only relevant for table structures! The name of the column on the "
-"table which is used to hold the value."
+"<literal>value_column</literal> (opcional - por defecto es "
+"<literal>next_val</literal>): solo es relevante para estructuras de tablas, "
+"es el nombre de la columna en la tabla, la cual se usa para mantener el "
+"valor."
#. Tag: para
-#: basic_mapping.xml:851
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>optimizer</literal> (optional, defaults to <literal>none</"
-"literal>): See"
+"<literal>optimizer</literal> (opcional - por defecto es <literal>none</"
+"literal>): Consulte <xref linkend=\"mapping-declaration-id-enhanced-"
+"optimizers\" />"
#. Tag: para
-#: basic_mapping.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
"TableGenerator</literal>, which is intended, firstly, as a replacement for "
@@ -1910,147 +1394,138 @@
"multiple distinctly keyed rows. This generator has a number of configuration "
"parameters:"
msgstr ""
-"The second of these new generators is <literal>org.hibernate.id.enhanced."
-"TableGenerator</literal> which is intended firstly as a replacement for the "
-"<literal>table</literal> generator (although it actually functions much more "
-"like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>) and "
-"secondly as a re-implementation of <literal>org.hibernate.id."
-"MultipleHiLoPerTableGenerator</literal> utilizing the notion of pluggable "
-"optimiziers. Essentially this generator defines a table capable of holding a "
-"number of different increment values simultaneously by using multiple "
-"distinctly keyed rows. This generator has a number of configuration "
-"parameters:"
+"El segundo de estos nuevos generadores es <literal>org.hibernate.id.enhanced."
+"TableGenerator</literal>, el cual tiene el propósito, primero, de reemplazar "
+"el generador <literal>table</literal>, auqnue de hecho funciona como "
+"<literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>, y "
+"segundo, como una re-implementación de <literal>org.hibernate.id."
+"MultipleHiLoPerTableGenerator</literal> que utiliza la noción de los "
+"optimizadores enchufables. Esencialmente, este generador define una tabla "
+"capaz de mantener un número de valores de incremento diferentes de manera "
+"simultánea usando múltiples filas tecleadas claramente. Este generador tiene "
+"un número de parámetros de configuración:"
#. Tag: para
-#: basic_mapping.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
"<literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
-"<literal>table_name</literal> (optional, defaults to "
-"<literal>hibernate_sequences</literal>): The name of the table to be used."
+"<literal>table_name</literal> (opcional - por defecto es "
+"<literal>hibernate_sequences</literal>): el nombre de la tabla a utilizar."
#. Tag: para
-#: basic_mapping.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
"<literal>next_val</literal>): the name of the column on the table that is "
"used to hold the value."
msgstr ""
-"<literal>value_column_name</literal> (optional, defaults to "
-"<literal>next_val</literal>): The name of the column on the table which is "
-"used to hold the value."
+"<literal>value_column_name</literal> (opcional - por defecto es "
+"<literal>next_val</literal>): el nombre de la columna en la tabla que se "
+"utiliza para mantener el valor."
#. Tag: para
-#: basic_mapping.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
"<literal>sequence_name</literal>): the name of the column on the table that "
"is used to hold the \"segment key\". This is the value which identifies "
"which increment value to use."
msgstr ""
-"<literal>segment_column_name</literal> (optional, defaults to "
-"<literal>sequence_name</literal>): The name of the column on the table which "
-"is used to hold the \"segement key\". This is the value which distinctly "
-"identifies which increment value to use."
+"<literal>segment_column_name</literal> (opcional - por defecto es "
+"<literal>sequence_name</literal>): el nombre de la columna en la tabla que "
+"se utiliza para mantener la \"llave segmento\". Este es el valor que "
+"identifica que valor de incremento utilizar."
#. Tag: para
-#: basic_mapping.xml:887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
"literal>): The \"segment key\" value for the segment from which we want to "
"pull increment values for this generator."
msgstr ""
-"<literal>segment_value</literal> (optional, defaults to <literal>default</"
-"literal>): The \"segment key\" value for the segment from which we want to "
-"pull increment values for this generator."
+"<literal>segment_value</literal> (opcional - por defecto es "
+"<literal>default</literal>): El valor \"llave segmento\" para el segmento "
+"desde el cual queremos sacar los valores de incremento para este generador."
#. Tag: para
-#: basic_mapping.xml:894
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
"<literal>255</literal>): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
-"<literal>segment_value_length</literal> (optional, defaults to <literal>255</"
-"literal>): Used for schema generation; the column size to create this "
-"segment key column."
+"<literal>segment_value_length</literal> (opcional - por defecto es "
+"<literal>255</literal>): Se utiliza para la generación de esquemas; el "
+"tamaño de la columna a crear esta columna de llave de segmento."
#. Tag: para
-#: basic_mapping.xml:900
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
"literal>): The initial value to be retrieved from the table."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the table."
+"<literal>initial_value</literal> (opcional - por defecto es <literal>1</"
+"literal>): El valor inicial a recuperar de la tabla."
#. Tag: para
-#: basic_mapping.xml:906
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): The value by which subsequent calls to the table should differ."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the table should differ."
+"<literal>increment_size</literal> (opcional - por defecto es <literal>1</"
+"literal>): El valor por el cual deben diferir las llamadas subsecuentes a la "
+"tabla."
#. Tag: para
-#: basic_mapping.xml:912
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>optimizer</literal> (optional, defaults to <literal></literal>): See"
+"<literal>optimizer</literal> (opcional - por defecto es <literal></"
+"literal>): Consulte <xref linkend=\"mapping-declaration-id-enhanced-"
+"optimizers\" />"
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
-msgstr "Identifier generator optimization"
+msgstr "Optimización del generador del identificador"
#. Tag: para
-#: basic_mapping.xml:923
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
"inefficient for them to hit the database on each and every call to generate "
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
-"For identifier generators which store values in the database, it is "
-"inefficient for them to hit the database on each and every call to generate "
-"a new identifier value. Instead, you'd ideally want to group a bunch of them "
-"in memory and only hit the database when you have exhausted your in-memory "
-"value group. This is the role of the pluggable optimizers. Currently only "
-"the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced"
-"\"/> support this notion."
+"Para los generadores del identificador que almacenan valores en la base de "
+"datos, es ineficiente el acceder a la base de datos en toda llamada para "
+"generar un nuevo valor identificador. En lugar, puede agrupar una serie de "
+"ellos en la memoria y solo acceder a la base de datos cuando haya acabado su "
+"grupo de valores en memoria. Este es el papel de los optimizadores "
+"enchufables. Actualmente solo los dos generadores mejorados (<xref linkend="
+"\"mapping-declaration-id-enhanced\" />) soportan esta operación."
#. Tag: para
-#: basic_mapping.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
"specified): this will not perform any optimizations and hit the database for "
"each and every request."
msgstr ""
-"<literal>none</literal> (generally this is the default if no optimizer was "
-"specified): This says to not perform any optimizations, and hit the database "
-"each and every request."
+"<literal>none</literal> (generalmente este el es valor predeterminado si no "
+"se especifica un optimizador): esto no realizará ninguna optimización y "
+"accederá a la base de datos para toda petición."
#. Tag: para
-#: basic_mapping.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
"retrieved values. The values from the database for this optimizer are "
@@ -2059,16 +1534,15 @@
"<literal>increment_size</literal> is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
-"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
-"retrieved values. The values from the database for this optimizer are "
-"expected to be sequential. The values retrieved from the database structure "
-"for this optimizer indicates the \"group number\"; the "
-"<literal>increment_size</literal> is multiplied by that value in memory to "
-"define a group \"hi value\"."
+"<literal>hilo</literal>: aplica un algoritmo hi/lo a los valores recuperados "
+"de la base de datos. Se espera que los valores de la base de datos para este "
+"optimizador sean secuenciales. Los valores recuperados de la estructura de "
+"la base de datos para este optimizador indican el \"número del grupo\". El "
+"<literal>increment_size</literal> se multiplica por ese valor en la memoria "
+"para definir un grupo \"hi value\"."
#. Tag: para
-#: basic_mapping.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
"optimizer attempts to minimize the number of hits to the database. Here, "
@@ -2077,96 +1551,47 @@
"memory grouping algorithm. Here, <literal>increment_size</literal> refers to "
"the values coming from the database."
msgstr ""
-"<literal>pooled</literal>: like was discussed for <literal>hilo</literal>, "
-"this optimizers attempts to minimize the number of hits to the database. "
-"Here, however, we simply store the starting value for the \"next group\" "
-"into the database structure rather than a sequential value in combination "
-"with an in-memory grouping algorithm. <literal>increment_size</literal> here "
-"refers to the values coming from the database."
+"<literal>pooled</literal>: como en el caso de <literal>hilo</literal>, este "
+"optimizador trata de minimizar el número de hits a la base de datos. Sin "
+"embargo, aquà simplemente almacenamos el valor inicial para el \"siguiente "
+"grupo\" en la estructura de la base de datos en lugar de un valor secuencial "
+"en combinación con un algoritmo de agrupamiento en-memoria. AquÃ, "
+"<literal>increment_size</literal> ser refiere a los valores que provienen de "
+"la base de datos."
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr "composite-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" unsaved-value=\"undefined|any|none\"\n"
-" access=\"field|property|ClassName\"\n"
-" node=\"element-name|.\">\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:963
-#, fuzzy, no-c-format
-msgid ""
"A table with a composite key can be mapped with multiple properties of the "
"class as identifier properties. The <literal><composite-id></literal> "
"element accepts <literal><key-property></literal> property mappings "
"and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-"Para una tabla con clave compuesta, puedes mapear múltiples "
-"propiedades de la clase como propiedades identificadoras. El elemento "
-"<literal><composite-id></literal> acepta los mapeos de propiedad "
-"<literal><key-property></literal> y los mapeos <literal><key-many-"
-"to-one></literal> como elementos hijo."
+"Una tabla con clave compuesta se puede mapear con múltiples propiedades de "
+"la clase como propiedades identificadoras. El elemento <literal><"
+"composite-id></literal> acepta los mapeos de propiedad <literal><key-"
+"property></literal> y los mapeos <literal><key-many-to-one></"
+"literal> como elementos hijos."
-#. Tag: programlisting
-#: basic_mapping.xml:970
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:972
-#, fuzzy, no-c-format
-msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
"literal> and <literal>hashCode()</literal> to implement composite identifier "
"equality. It must also implement <literal>Serializable</literal>."
msgstr ""
-"Tu clase persistente <emphasis>debe</emphasis> sobreescribir <literal>equals"
-"()</literal> y <literal>hashCode()</literal> para implementar igualdad de "
-"identificador compuesto. Debe también implementar "
+"La clase persistente <emphasis>tiene</emphasis> que sobrescribir "
+"<literal>equals()</literal> y <literal>hashCode()</literal> para implementar "
+"la igualdad del identificador compuesto. También tiene que implementar "
"<literal>Serializable</literal>."
#. Tag: para
-#: basic_mapping.xml:978
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
"identifier. There is no convenient \"handle\" other than the object itself. "
@@ -2176,18 +1601,15 @@
"<emphasis>embedded</emphasis> composite identifier, and discourage it for "
"serious applications."
msgstr ""
-"Desafortunadamente, este enfoque de identificadores compuestos significa que "
-"un objeto persistente es su propio identificador. No existe otra \"asa\" "
-"conveniente más que el objeto mismo. Debes instanciar una instancia "
-"de la clase misma y poblar sus propiedades identificadoras antes que puedas "
-"<literal>load()</literal> el estado persistente asociado a una clave "
-"compuesta. Describiremos un enfoque mucho más conveniente donde el "
-"identificador compuesto está implementado como una clase separada en "
-"<xref linkend=\"components-compositeid\"/>. Los atributos descriptos debajo "
-"solamente se aplican a este enfoque alternativo:"
+"Desafortunadamente, este enfoque significa que un objeto persistente es su "
+"propio identificador. No existe otra \"asa\" conveniente más que el objeto "
+"mismo. Debe instanciar una instancia de la clase persistente y poblar sus "
+"propiedades identificadoras antes de que pueda <literal>load()</literal> el "
+"estado persistente asociado a una clave compuesta. Este enfoque lo "
+"denominamos un identificador compuesto <emphasis>incluÃdo</emphasis> y no lo "
+"recomendamos para aplicaciones serias."
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -2195,29 +1617,15 @@
"composite-id></literal> element are duplicated on both the persistent "
"class and a separate identifier class."
msgstr ""
-"A second approach is what we call a <emphasis>mapped</emphasis> composite "
-"identifier, where the identifier properties named inside the <literal><"
-"composite-id></literal> element are duplicated on both the persistent "
-"class and a separate identifier class."
+"Un segundo enfoque es lo que denominamos un identificador compuesto "
+"<emphasis>mapeado</emphasis>, en donde las propiedades del identificador "
+"nombradas dentro del elemento <literal><composite-id></literal> son "
+"duplicadas tanto en la clase persistente como en la clase identificadora "
+"separada."
-#. Tag: programlisting
-#: basic_mapping.xml:993
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-" </composite-id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:995
-#, fuzzy, no-c-format
-msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
"literal>, and the entity class itself have properties named "
"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
@@ -2225,115 +1633,106 @@
"<literal>hashCode()</literal> and implement <literal>Serializable</literal>. "
"The main disadvantage of this approach is code duplication."
msgstr ""
-"In this example, both the composite identifier class, <literal>MedicareId</"
-"literal>, and the entity class itself have properties named "
-"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
-"identifier class must override <literal>equals()</literal> and "
-"<literal>hashCode()</literal> and implement. <literal>Serializable</"
-"literal>. The disadvantage of this approach is quite obvious—code "
-"duplication."
+"En este ejemplo, tanto la clase identificadora compuesta "
+"<literal>MedicareId</literal> como la clase de entidad misma tienen "
+"propiedades denominadas <literal>medicareNumber</literal> y "
+"<literal>dependent</literal>. La clase identificadora tiene que sobrescribir "
+"<literal>equals()</literal> y <literal>hashCode()</literal> e implementar "
+"<literal>Serializable</literal>. La desventaja principal de este enfoque es "
+"la duplicación de código."
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
msgstr ""
-"The following attributes are used to specify a mapped composite identifier:"
+"Los siguientes atributos se utilizan para especificar un identificador "
+"compuesto mapeado:"
#. Tag: para
-#: basic_mapping.xml:1010
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
"indicates that a mapped composite identifier is used, and that the contained "
"property mappings refer to both the entity class and the composite "
"identifier class."
msgstr ""
-"<literal>mapped</literal> (optional, defaults to <literal>false</literal>): "
-"indicates that a mapped composite identifier is used, and that the contained "
-"property mappings refer to both the entity class and the composite "
-"identifier class."
+"<literal>mapped</literal> (opcional, por defecto es <literal>false</"
+"literal>): indica que se utiliza un identificador compuesto mapeado y que "
+"los mapeos de propiedad contenidos se refieren tanto a la clase de entidad "
+"como a la clase identificadora compuesta. "
#. Tag: para
-#: basic_mapping.xml:1018
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
"identifier): the class used as a composite identifier."
msgstr ""
-"<literal>class</literal> (optional, but required for a mapped composite "
-"identifier): The class used as a composite identifier."
+"<literal>class</literal> (opcional, pero requerida por un identificador "
+"compuesto mapeado): La clase se utiliza como un identificador compuesto. "
#. Tag: para
-#: basic_mapping.xml:1025
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
-"We will describe a third, even more convenient approach where the composite "
-"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
-"alternative approach:"
+"Vamos a decribir un tercer enfoque, aún más práctico, en donde se implementa "
+"el identificador compuesto como una clase componente en <xref linkend="
+"\"components-compositeid\"/>. Los atributos descritos a continuación "
+"sólamente aplican a este enfoque alternativo:"
#. Tag: para
-#: basic_mapping.xml:1033
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
"of component type that holds the composite identifier. Please see chapter 9 "
"for more information."
msgstr ""
-"<literal>name</literal> (opcional): Una propiedad de tipo componente que "
-"tiene el identificador compuesto (ver siguiente sección)."
+"<literal>name</literal> (opcional, se necesita para este enfoque): Una "
+"propiedad de tipo componente que tiene el identificador compuesto. Consulte "
+"el capÃtulo 9 para obtener mayor información. "
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
-"<literal>access</literal> (opcional - por defecto a <literal>property</"
-"literal>): La estrategia que Hibernate debe usar para acceder al valor de la "
+"<literal>access</literal> (opcional - por defecto es <literal>property</"
+"literal>): La estrategia que Hibernate utiliza para acceder al valor de la "
"propiedad."
#. Tag: para
-#: basic_mapping.xml:1045
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the component class used as a composite "
"identifier. Please see the next section for more information."
msgstr ""
-"<literal>class</literal> (opcional - por defecto al tipo de la propiedad "
-"determinado por reflección): La clase del componente usado como "
-"identificador compuesto (ver siguiente sección)."
+"<literal>class</literal> (opcional - por defecto es el tipo de propiedad "
+"determinado por la reflección): la clase componente utilizada como un "
+"identificador compuesto. Vea la siguiente sección para obtener mayor "
+"información."
#. Tag: para
-#: basic_mapping.xml:1052
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
"recommended for almost all applications."
msgstr ""
-"This third approach, an <emphasis>identifier component</emphasis> is the one "
-"we recommend for almost all applications."
+"Este tercer enfoque, un <emphasis>componente identificador</emphasis> es el "
+"que recomendamos para casi todas las aplicaciones. "
#. Tag: title
-#: basic_mapping.xml:1060
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Discriminator"
-msgstr "discriminator"
+msgstr "Discriminador"
#. Tag: para
-#: basic_mapping.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
"polymorphic persistence using the table-per-class-hierarchy mapping "
@@ -2345,150 +1744,109 @@
"<literal>boolean</literal>, <literal>yes_no</literal>, <literal>true_false</"
"literal>."
msgstr ""
-"El elemento <literal><discriminator></literal> es requerido para la "
-"persistencia polimórfica usando la estrategia de mapeo de tabla-por-"
-"jerarquía-de-clases y declara una columna discriminadora de la tabla. "
-"La columna discriminidora contiene valores de marca que le dicen a la capa "
-"de persistencia qué subclase instanciar para una fila en particular. "
-"Un conjunto restringido de tipos puede ser usado: <literal>string</literal>, "
+"Se necesita el elemento <literal><discriminator></literal> para la "
+"persistencia polimórfica utilizando la estrategia de mapeo de tabla-por-"
+"jerarquÃa-de-clases. Declara una columna discriminadora de la tabla. La "
+"columna discriminidora contiene valores de marca que le dicen a la capa de "
+"persistencia qué subclase instanciar para una fila en particular. Se puede "
+"utilizar un conjunto restringido de tipos: <literal>string</literal>, "
"<literal>character</literal>, <literal>integer</literal>, <literal>byte</"
"literal>, <literal>short</literal>, <literal>boolean</literal>, "
"<literal>yes_no</literal>, <literal>true_false</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1080
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1083
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
"the name of the discriminator column."
msgstr ""
-"<literal>column</literal> (opcional - por defecto a <literal>class</"
-"literal>) el nombre de la columna discriminadora."
+"<literal>column</literal> (opcional - por defecto es <literal>class</"
+"literal>) el nombre de la columna discriminadora. "
#. Tag: para
-#: basic_mapping.xml:1089
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
"a name that indicates the Hibernate type"
msgstr ""
-"<literal>type</literal> (opcional - por defecto a <literal>string</literal>) "
-"un nombre que indique el tipo Hibernate"
+"<literal>type</literal> (opcional - por defecto es <literal>string</"
+"literal>) un nombre que indica el tipo Hibernate. "
#. Tag: para
-#: basic_mapping.xml:1095
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
"retrieving all instances of the root class."
msgstr ""
-"<literal>force</literal> (optconal - por defecto a <literal>false</literal>) "
-"\"fuerza\" a Hibernate a especificar valores discriminadores permitidos "
-"incluso cuando se recuperan todas las instancias de la clase raíz."
+"<literal>force</literal> (opcional - por defecto es <literal>false</"
+"literal>) \"fuerza\" a Hibernate para especificar los valores "
+"discriminadores permitidos incluso cuando se recuperan todas las instancias "
+"de la clase raÃz. "
#. Tag: para
-#: basic_mapping.xml:1102
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"set this to <literal>false</literal> if your discriminator column is also "
"part of a mapped composite identifier. It tells Hibernate not to include the "
"column in SQL <literal>INSERTs</literal>."
msgstr ""
-"<literal>insert</literal> (opcional - por defecto a <literal>true</literal>) "
-"establezca este a <literal>false</literal> si tu columna discriminadora es "
-"también parte de un identificador mapeado compuesto. (Le dice a "
-"Hibernate que no incluya la columna en los SQL <literal>INSERT</literal>s.)"
+"<literal>insert</literal> (opcional - por defecto es <literal>true</"
+"literal>): establecido como <literal>false</literal> si su columna "
+"discriminadora también es parte de un identificador mapeado compuesto. Lle "
+"dice a Hibernate que no incluya la columna en los SQLs <literal>INSERT</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:1110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
"discrimination."
msgstr ""
-"<literal>formula</literal> (opcional) una expresión SQL arbitraria "
-"que es ejecutada cuando un tipo tenga que ser evaluado. Permite "
-"dicriminación basada en el contenido."
+"<literal>formula</literal> (opcional): una expresión SQL arbitraria que se "
+"ejecuta cuando se tenga que evaluar un tipo. Permite la discriminación con "
+"base en el contenido."
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
"<literal>discriminator-value</literal> attribute of the <literal><"
"class></literal> and <literal><subclass></literal> elements."
msgstr ""
-"Los valores reales de la columna discriminadora están especificados "
-"por el atributo <literal>discriminator-value</literal> de los elementos "
+"Los valores reales de la columna discriminadora están especificados por el "
+"atributo <literal>discriminator-value</literal> de los elementos "
"<literal><class></literal> y <literal><subclass></literal>."
#. Tag: para
-#: basic_mapping.xml:1124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
"rows with \"extra\" discriminator values that are not mapped to a persistent "
"class. This will not usually be the case."
msgstr ""
-"El atributo <literal>force</literal> es (sólo) útil si la "
-"tabla contiene filas con valores discriminadores \"extra\" que no está"
-"n mapeados a la clase persistente. Generalmente este no es el caso."
+"El atributo <literal>force</literal> es sólamente útil si la tabla contiene "
+"filas con valores discriminadores \"extra\" que no estén mapeados a una "
+"clase persistente. Generalmente este no es el caso."
#. Tag: para
-#: basic_mapping.xml:1130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
"SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
-"Usando el atributo <literal>formula</literal> puedes declarar una "
-"expresión SQL arbitraria que será usada para evaluar el tipo "
-"de una fila:"
+"El atributo <literal>formula</literal> le permite declarar una expresión SQL "
+"arbitraria que será utilizada para evaluar el tipo de una fila. Por ejemplo: "
-#. Tag: programlisting
-#: basic_mapping.xml:1135
-#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-
#. Tag: title
-#: basic_mapping.xml:1140
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Version (optional)"
-msgstr "version (opcional)"
+msgstr "Versión (opcional)"
#. Tag: para
-#: basic_mapping.xml:1142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
"that the table contains versioned data. This is particularly useful if you "
@@ -2496,76 +1854,47 @@
"information:"
msgstr ""
"El elemento <literal><version></literal> es opcional e indica que la "
-"tabla contiene datos versionados. Esto es particularmente útil si "
-"planeas usar <emphasis>transacciones largas</emphasis> (ver debajo)."
+"tabla contiene datos versionados. Esto es particularmente útil si planea "
+"utilizar <emphasis>transacciones largas</emphasis>. Vea a continuación para "
+"obtener mayor información:"
-#. Tag: programlisting
-#: basic_mapping.xml:1158
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1161
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
-"<literal>column</literal> (opcional - por defecto al nombre de la "
-"propiedad): El nombre de la columna que tiene el número de "
-"versión."
+"<literal>column</literal> (opcional - por defecto es el nombre de la "
+"propiedad): El nombre de la columna que tiene el número de la versión."
#. Tag: para
-#: basic_mapping.xml:1167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
msgstr ""
-"<literal>name</literal>: El nombre de una propiedad de la clase persistente."
+"<literal>name</literal>: El nombre de una propiedad de la clase persistente. "
#. Tag: para
-#: basic_mapping.xml:1172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
"the type of the version number."
msgstr ""
-"<literal>type</literal> (opcional - por defecto a <literal>integer</"
-"literal>): El tipo del nú.mero de vesión."
+"<literal>type</literal> (opcional - por defecto es <literal>integer</"
+"literal>): El tipo del número de la versión. "
#. Tag: para
-#: basic_mapping.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses to access the property value."
msgstr ""
-"<literal>access</literal> (opcional - por defecto a <literal>property</"
-"literal>): La estrategia que Hibernate debe usar para acceder al valor de la "
-"propiedad."
+"<literal>access</literal> (opcional - por defecto es <literal>property</"
+"literal>): La estrategia que Hibernate utiliza para acceder al valor de la "
+"propiedad. "
#. Tag: para
-#: basic_mapping.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2573,15 +1902,14 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (opcional - por defecto a "
-"<literal>undefined</literal>): Un valor de la propiedad de versión "
-"que indica que una instancia está recién instanciada (sin "
-"guardar), distinguiéndola de instancias separadas que fueran "
-"guardadas o cargadas en una sesión previa. (<literal>undefined</"
-"literal> especifica que debe usarse el valor de la propiedad identificadora.)"
+"<literal>unsaved-value</literal> (opcional - por defecto es "
+"<literal>undefined</literal>): Un valor de la propiedad de versión que "
+"indica que una instancia se encuentra recién instanciada (sin guardar), "
+"distinguiéndola de las instancias separadas que se guardaron o se cargaron "
+"en una sesión previa. <literal>undefined</literal> especifica que se debe "
+"utilizar el valor de la propiedad identificadora."
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2589,41 +1917,38 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"UNTRANSLATED! <literal>generated</literal> (optional - defaults to "
-"<literal>never</literal>): Specifies that this version property value is "
-"actually generated by the database. See the discussion of <link linkend="
-"\"mapping-generated\">generated properties</link>."
+"<literal>generated</literal> (opcional - por defecto es <literal>never</"
+"literal>): Especifica que este valor de la propiedad de la versión es "
+"generado por la base de datos. Vea la discusión de <xref linkend=\"mapping-"
+"generated\" /> para obtener mayor información."
#. Tag: para
-#: basic_mapping.xml:1200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"specifies whether the version column should be included in SQL insert "
"statements. It can be set to <literal>false</literal> if the database column "
"is defined with a default value of <literal>0</literal>."
msgstr ""
-"UNTRANSLATED! <literal>insert</literal> (optional - defaults to "
-"<literal>true</literal>): Specifies whether the version column should be "
-"included in SQL insert statements. May be set to <literal>false</literal> if "
-"and only if the database column is defined with a default value of "
-"<literal>0</literal>."
+"<literal>insert</literal> (opcional - por defectos es <literal>true</"
+"literal>): Especifica si la columna de la versión debe incluirse en las "
+"declaraciones de inserción SQL. Se puede configurar como <literal>false</"
+"literal> si la columna de la base de datos se define con un valor "
+"predeterminado de <literal>0</literal>."
#. Tag: para
-#: basic_mapping.xml:1210
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
"literal> or <literal>calendar</literal>."
msgstr ""
-"Los números de versión deben ser de tipo <literal>long</"
-"literal>, <literal>integer</literal>, <literal>short</literal>, "
-"<literal>timestamp</literal> o <literal>calendar</literal> de Hibernate."
+"Los números de versión pueden ser de tipo Hibernate <literal>long</literal>, "
+"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
+"literal> o <literal>calendar</literal>."
#. Tag: para
-#: basic_mapping.xml:1215
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
"instance. Hibernate will detect any instance with a null version or "
@@ -2633,24 +1958,22 @@
"reattachment in Hibernate. It is especially useful for people using assigned "
"identifiers or composite keys</emphasis>."
msgstr ""
-"Una propiedad de versión o timestamp nunca debe ser nula para una "
-"instancia separada, de modo que Hibernate detectará cualquier "
-"instancia con una versión o timestamp nulo como transitoria, sin "
-"importar qué otras estrategias <literal>unsaved-value</literal> se "
-"hayan especificado. <emphasis>Declarar una propiedad de versón o "
-"timestamp nulable es una forma fácil de evitar cualquier problema con "
-"la re-unión transitiva en Hibernate, especialmente útil para "
-"que usa identificadores asignados o claves compuestas!</emphasis>"
+"Una propiedad de versión o de sello de fecha nunca debe ser nula para una "
+"instancia separada. Hibernate detectará cualquier instancia con una versión "
+"o sello de fecha nulo como transitoria, sin importar qué otras estrategias "
+"<literal>unsaved-value</literal> se hayan especificado. <emphasis>El "
+"declarar una propiedad de versión o sello de fecha nulable es una forma "
+"fácil de evitar cualquier problema con la re-unión transitiva en Hibernate. "
+"Es especialmente útil para la gente que utiliza identificadores asignados o "
+"claves compuestas</emphasis>."
#. Tag: title
-#: basic_mapping.xml:1226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Timestamp (optional)"
-msgstr "timestamp (opcional)"
+msgstr "Timestamp (opcional)"
#. Tag: para
-#: basic_mapping.xml:1228
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
"table contains timestamped data. This provides an alternative to versioning. "
@@ -2658,47 +1981,22 @@
"sometimes the application might use the timestamps in other ways."
msgstr ""
"El elemento opcional <literal><timestamp></literal> indica que la "
-"tabla contiene datos con sellos de tiempo. Esto esta concebido como una "
-"alternativa al versionado. Los timestamps (sellos de tiempo) son por su "
-"naturaleza una implementación menos segura de bloqueo optimista. Sin "
-"embrago, a veces la aplicación puede usar los timestamps en otras "
-"formas."
+"tabla contiene datos con sellos de fecha. Esto brinda una alternativa al "
+"versionado. Los sellos de tiempo (timestamps) son por naturaleza una "
+"implementación menos segura del bloqueo optimista. Sin embargo, a veces la "
+"aplicación puede usar los sellos de fecha de otras maneras."
-#. Tag: programlisting
-#: basic_mapping.xml:1244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1247
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of a column holding the timestamp."
msgstr ""
-"<literal>column</literal> (opcional - por defecto al nombre de la "
-"propiedad): El nombre de una columna que tiene el timestamp."
+"<literal>column</literal> (opcional - por defecto es el nombre de la "
+"propiedad): El nombre de una columna que tiene el sello de fecha. "
#. Tag: para
-#: basic_mapping.xml:1253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
"<literal>Date</literal> or <literal>Timestamp</literal> of the persistent "
@@ -2706,11 +2004,10 @@
msgstr ""
"<literal>name</literal>: El nombre de una propiedad del estilo JavaBeans de "
"tipo Java <literal>Date</literal> o <literal>Timestamp</literal> de la clase "
-"persistente."
+"persistente. "
#. Tag: para
-#: basic_mapping.xml:1266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2718,16 +2015,15 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (opcional - por defecto a <literal>null</"
-"literal>): Un valor de propiedad de versión que indica que una "
-"instancia está recién instanciada (sin guardar), "
-"distinguiéndola de instancias separadas que hayan sido guardadas o "
-"cargadas en una sesión previa. (<literal>undefined</literal> "
-"especifica que debe usarse el valor de la propiedad identificadora.)"
+"<literal>unsaved-value</literal> (opcional - por defecto es <literal>null</"
+"literal>): Un valor de propiedad de versión que indica que una instancia "
+"está recién instanciada (sin guardar), distinguiéndola de instancias "
+"separadas que hayan sido guardadas o cargadas en una sesión previa. "
+"<literal>Undefined</literal> especifica que debe utilizarse el valor de la "
+"propiedad identificadora."
#. Tag: para
-#: basic_mapping.xml:1275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
"Where should Hibernate retrieve the timestamp value from? From the database, "
@@ -2738,17 +2034,17 @@
"timestamp. Others may also be unsafe for usage in locking due to lack of "
"precision (Oracle 8, for example)."
msgstr ""
-"UNTRANSLATED! <literal>source</literal> (optional - defaults to <literal>vm</"
-"literal>): From where should Hibernate retrieve the timestamp value? From "
-"the database, or from the current JVM? Database-based timestamps incur an "
-"overhead because Hibernate must hit the database in order to determine the "
-"\"next value\", but will be safer for use in clustered environments. Note "
-"also, that not all <literal>Dialect</literal>s are known to support "
-"retrieving of the database's current timestamp, while others might be unsafe "
-"for usage in locking due to lack of precision (Oracle 8 for example)."
+"<literal>source</literal> (opcional - por defecto es <literal>vm</literal>): "
+"¿Desde dónde debe recuperar Hibernate el valor del sello de fecha? ¿Desde la "
+"base de datos o desde la MVJ actual? Los sellos de fecha con base en la base "
+"de datos provocan un gasto general debido a que Hibernate tiene que llegar "
+"hasta la base de datos para poder determinar el \"siguiente valor\". Es más "
+"seguro utilizarlo en entornos con clústers. No todos los <literal>Dialects</"
+"literal> soportan la recuperación del sello de fecha actual de la base de "
+"datos. Los otros pueden ser poco seguros para utilizarlos como bloqueo "
+"debido a la falta de precisión (por ejemplo, Oracle 8)."
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2756,116 +2052,66 @@
"generated by the database. See the discussion of <link linkend=\"mapping-"
"generated\">generated properties</link> for more information."
msgstr ""
-"UNTRANSLATED! <literal>generated</literal> (optional - defaults to "
-"<literal>never</literal>): Specifies that this timestamp property value is "
-"actually generated by the database. See the discussion of <link linkend="
-"\"mapping-generated\">generated properties</link>."
+"<literal>generated</literal> (opcional - por defecto es <literal>never</"
+"literal>): Especifica que este valor de la propiedad del sello de fecha en "
+"realidad es generado por la base de datos. Vea la discusión de <xref linkend="
+"\"mapping-generated\" /> para obtener mayor información."
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: basic_mapping.xml:1299
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
"type=\"timestamp\"></literal>. And <literal><timestamp source=\"db"
"\"></literal> is equivalent to <literal><version type=\"dbtimestamp"
"\"></literal>"
msgstr ""
-"Note that <literal><timestamp></literal> is equivalent to <literal><"
-"version type=\"timestamp\"></literal>."
+"<literal><Timestamp></literal> es equivalente a <literal><version "
+"type=\"timestamp\"></literal>. Y <literal><timestamp source=\"db\">"
+"</literal> es equivalente a <literal><version type=\"dbtimestamp\"></"
+"literal>."
#. Tag: title
-#: basic_mapping.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property"
-msgstr "property"
+msgstr "Propiedad"
#. Tag: para
-#: basic_mapping.xml:1313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
"JavaBean style property of the class."
msgstr ""
"El elemento <literal><property></literal> declara una propiedad "
-"persistente estilo JavaBean de la clase."
+"persistente estilo JavaBean de la clase. "
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
"letter."
msgstr ""
"<literal>name</literal>: el nombre de la propiedad, con la letra inicial en "
-"minúsculas."
+"minúscula."
#. Tag: para
-#: basic_mapping.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
"nested <literal><column></literal> element(s)."
msgstr ""
-"<literal>column</literal> (opcional - por defecto al nombre de la "
-"propiedad): el nombre de la columna de tabla de base de datos mapeada. Esto "
-"puede también ser especificado con elemento(s) <literal><column>"
-"</literal> anidado(s)."
+"<literal>column</literal> (opcional - por defecto es el nombre de la "
+"propiedad): El nombre de la columna de la tabla de base de datos mapeada. "
+"Esto se puede especificar también con los elemento(s) anidado(s) "
+"<literal><column></literal>."
#. Tag: para
-#: basic_mapping.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2874,79 +2120,71 @@
"whose value is initialized from some other property that maps to the same "
"column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (opcional - por defecto a <literal>true</"
-"literal>) : especifica que las columnas mapeadas deben ser incluídas "
-"en las sentencias SQL <literal>UPDATE</literal> y/o <literal>INSERT</"
-"literal> . Especificando ambas a <literal>false</literal> permite una "
-"propiedad \"derivada\" cuyo valor es inicializado desde alguna otra "
-"propiedad que mapee a la misma columna (o columnas) o por un disparador u "
-"otra aplicación."
+"<literal>update, insert</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica que las columnas mapeadas deben ser incluÃdas en las "
+"declaraciones SQL <literal>UPDATE</literal> y/o <literal>INSERT</literal> . "
+"Especificando ambas como <literal>false</literal> permite una propiedad "
+"\"derivada\", cuyo valor se inicia desde alguna otra propiedad que mapee a "
+"la misma columna (o columnas) o por un disparador u otra aplicación."
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> property. Computed properties do "
"not have a column mapping of their own."
msgstr ""
-"<literal>formula</literal> (opcional): una expresión SQL que define "
-"el valor para una propiedad <emphasis>computada</emphasis>. Las propiedades "
+"<literal>formula</literal> (opcional): una expresión SQL que define el valor "
+"para una propiedad <emphasis>computada</emphasis>. Las propiedades "
"computadas no tienen una columna mapeada propia."
#. Tag: para
-#: basic_mapping.xml:1378
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (opcional - por defecto a <literal>false</literal>): "
-"Especifica que esta propiedad debe ser traída perezosamente cuando la "
-"variable de instancia sea accedida por primera vez (requiere "
-"instrumentación en tiempo de compilación)."
+"<literal>lazy</literal> (opcional - por defecto es <literal>false</"
+"literal>): Especifica que se debe recuperar perezosamente esta propiedad "
+"cuando se acceda por primera vez la variable de instancia. Requiere "
+"instrumentación de código byte en tiempo de compilación."
#. Tag: para
-#: basic_mapping.xml:1385
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref</literal>."
msgstr ""
-"<literal>unique</literal> (opcional): Habilita la generació DDL de "
-"una restricción de unicidad para las columnas. Además, permite "
-"que ésta sea un blanco objetivo de una <literal>property-ref</"
-"literal>."
+"<literal>unique</literal> (opcional): Activa la generación DDL de una "
+"restricción de unicidad para las columnas. Además, permite que ésta sea el "
+"objetivo de una <literal>property-ref</literal>. "
#. Tag: para
-#: basic_mapping.xml:1392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
-"<literal>not-null</literal> (opcional): Habilita la generació DDL de "
-"una restricción de nulabilidad para las columnas."
+"<literal>not-null</literal> (opcional): Activa la generación DDL de una "
+"restricción de nulabilidad para las columnas. "
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property do or do not require "
"acquisition of the optimistic lock. In other words, it determines if a "
"version increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</"
-"literal>): Especifica que las actualizaciones a esta propiedad requieran o "
-"no de la obtención de un bloqueo optimista. En otras palabras, "
-"determina si debe ocurrir un incremento de versión cuando la "
-"propiedad este sucia (desactualizada)."
+"<literal>optimistic-lock</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica que las actualizaciones a esta propiedad requieren o "
+"no de la obtención de un bloqueo optimista. En otras palabras, determina si "
+"debe ocurrir un incremento de versión cuando la propiedad se encuentre "
+"desactualizada."
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2954,59 +2192,53 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"UNTRANSLATED! <literal>generated</literal> (optional - defaults to "
-"<literal>never</literal>): Specifies that this property value is actually "
-"generated by the database. See the discussion of <link linkend=\"mapping-"
-"generated\">generated properties</link>."
+"<literal>generated</literal> (opcional - por defecto es <literal>never</"
+"literal>): Especifica que este valor de la propiedad es de hecho generado "
+"por la base de datos. Vea la discusión de <xref linkend=\"mapping-generated"
+"\" /> para obtener mayor información. "
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
-msgstr "<emphasis>typename</emphasis> puede ser:"
+msgstr "<emphasis>escribanombre</emphasis> puede ser:"
#. Tag: para
-#: basic_mapping.xml:1421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
"date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
-"El nombre de un tipo básico Hibernate (por ejemplo, <literal>integer, "
-"string, character, date, timestamp, float, binary, serializable, object, "
-"blob</literal>)."
+"El nombre de un tipo básico de Hibernate: <literal>integer, string, "
+"character, date, timestamp, float, binary, serializable, object, blob</"
+"literal>, etc."
#. Tag: para
-#: basic_mapping.xml:1427
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
"literal> etc."
msgstr ""
-"El nombre de una clase Java de tipo básico (por ejemplo, "
-"<literal>int, float, char, java.lang.String, java.util.Date, java.lang."
-"Integer, java.sql.Clob</literal>)."
+"El nombre de una clase Java con un tipo básico predeterminado: <literal>int, "
+"float, char, java.lang.String, java.util.Date, java.lang.Integer, java.sql."
+"Clob</literal>, etc."
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
msgstr "El nombre de una clase Java serializable."
#. Tag: para
-#: basic_mapping.xml:1438
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
"literal> etc."
msgstr ""
-"El nombre de un tipo personalizado (por ejemplo, <literal>com.illflow.type."
-"MyCustomType</literal>)."
+"El nombre declase de un tipo personalizado: <literal>com.illflow.type."
+"MyCustomType</literal> etc."
#. Tag: para
-#: basic_mapping.xml:1444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
"property and guess the correct Hibernate type. Hibernate will attempt to "
@@ -3016,18 +2248,16 @@
"DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a "
"custom type."
msgstr ""
-"Si no especificas un tipo, Hibernate usará reflección sobre la "
-"propiedad mencionada para deducir el tipo Hibernate correcto. Hibernate "
-"intentará interpretar el nombre de la clase de retorno del getter de "
-"la propiedad usando las reglas 2, 3 y 4 en ese orden. Sin embargo, esto no "
-"siempre suficiente. En ciertos casos, necesitarás aún el "
-"atributo <literal>type</literal>. (Por ejemplo, para distinguir entre "
-"<literal>Hibernate.DATE</literal> y <literal>Hibernate.TIMESTAMP</literal>, "
-"o especificar un tipo personalizado.)"
+"Si no especifica un tipo, Hibernate utilizará reflección sobre la propiedad "
+"mencionada para deducir el tipo Hibernate correcto. Hibernate intentará "
+"interpretar el nombre de la clase de retorno del getter de la propiedad "
+"utilizando las reglas 2, 3 y 4 en ese mismo orden. En algunos casos "
+"necesitará el atributo <literal>type</literal>. Por ejemplo, para distinguir "
+"entre <literal>Hibernate.DATE</literal> y <literal>Hibernate.TIMESTAMP</"
+"literal>, o especificar un tipo personalizado."
#. Tag: para
-#: basic_mapping.xml:1454
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
"accesses the property at runtime. By default, Hibernate will call the "
@@ -3037,190 +2267,106 @@
"a class that implements the interface <literal>org.hibernate.property."
"PropertyAccessor</literal>."
msgstr ""
-"El atributo <literal>access</literal> te deja controlar cómo "
-"Hibernate accederá a la propiedad en tiempo de ejecución. Por "
-"defecto, Hibernate llamará al par de getter/setter de la propiedad. "
-"Si especificas <literal>access=\"field\"</literal>, Hibernate se "
-"saltará el par get/set y accederá al campo directamente usando "
-"reflección. Puedes especificar tu propia estrategia de acceso a la "
-"propiedad mencionando una clase que implemente la interface <literal>org."
-"hibernate.property.PropertyAccessor</literal>."
+"El atributo <literal>access</literal> le permite controlar el cómo Hibernate "
+"accederá a la propiedad en tiempo de ejecución. Por defecto, Hibernate "
+"llamará al par de getter/setter de la propiedad. Si usted especifica "
+"<literal>access=\"field\"</literal>, Hibernate se saltará el par get/set y "
+"accederá al campo directamente utilizando reflección. Puede especificar su "
+"propia estrategia de acceso a la propiedad mencionando una clase que "
+"implemente la interfaz <literal>org.hibernate.property.PropertyAccessor</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:1463
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
"read-only. The property value is computed at load time. You declare the "
"computation as an SQL expression. This then translates to a <literal>SELECT</"
"literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
-"Una aspecto especialmente poderoso son las propiedades derivadas. Estas "
-"propiedades son por definición de sólo lectura, el valor de la "
-"propiedad es computado en tiempo de carga. Tu declaras la computación "
-"como una expresión SQL, y ésta se traduce a cláusula de "
-"subconsulta <literal>SELECT</literal> en la consulta SQL que cargue una "
-"instancia:"
+"Una funcionalidad especialmente poderosa son las propiedades derivadas. "
+"Estas propiedades son, por definición, de sólo lectura. El valor de la "
+"propiedad se computa en tiempo de carga. Usted declara la computación como "
+"una expresión SQL y ésta se traduce como una cláusula de subconsulta "
+"<literal>SELECT</literal> en la consulta SQL que carga una instancia:"
-#. Tag: programlisting
-#: basic_mapping.xml:1470
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1472
-#, fuzzy, no-c-format
-msgid ""
"You can reference the entity table by not declaring an alias on a particular "
"column. This would be <literal>customerId</literal> in the given example. "
"You can also use the nested <literal><formula></literal> mapping "
"element if you do not want to use the attribute."
msgstr ""
-"Observa que puedes referenciar la propia tabla de las entidades sin declarar "
-"un alias o una columna particular (<literal>customerId</literal> en el "
-"ejemplo dado). Observa además que puedes usar el elemento anidado de "
-"mapeo <literal><formula></literal> si no te gusta usar el atributo."
+"Puede referenciar la tabla de las entidades sin declarar un alias o una "
+"columna particular. En el ejemplo dado serÃa <literal>customerId</literal>. "
+"También puede utilizar el elemento anidado de mapeo <literal><formula>"
+"</literal> si no quiere utilizar el atributo."
#. Tag: title
-#: basic_mapping.xml:1482
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "many-to-one"
+msgstr "Many-to-one"
#. Tag: para
-#: basic_mapping.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
"<literal>many-to-one</literal> element. The relational model is a many-to-"
"one association; a foreign key in one table is referencing the primary key "
"column(s) of the target table."
msgstr ""
-"Una asociación ordinaria a otra clase persistente se declara usando "
-"el elemento <literal>many-to-one</literal>. El modelo relacional es una "
-"asociación muchos-a-uno: una clave foránea en una tabla "
-"está referenciando la columna (o columnas) de la clave primaria de la "
-"tabla objetivo."
+"Una asociación ordinaria a otra clase persistente se declara utilizando el "
+"elemento <literal>many-to-one</literal>. El modelo relacional es una "
+"asociación muchos-a-uno; una clave foránea en una tabla referencia la "
+"columna (o columnas) de la clave principal de la tabla destino."
-#. Tag: programlisting
-#: basic_mapping.xml:1512
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"true|proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"cualquier expresión SQL\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-
#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the name of the property."
-msgstr "<literal>name</literal>: El nombre de la propiedad."
+msgstr "<literal>name</literal>: El nombre de la propiedad. "
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column></literal> "
"element(s)."
msgstr ""
-"<literal>column</literal> (opcional): El nombre de la columna clave "
-"foránea. También puede ser especificado por uno o varios "
-"elementos anidados <literal><column></literal>."
+"<literal>column</literal> (opcional): El nombre de la columna de la clave "
+"foránea. Esto también se puede especificar por medio de uno o varios "
+"elementos anidados <literal><column></literal>. "
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
-"<literal>class</literal> (opcional - por defecto al tipo de la propiedad "
-"determinado por reflección): El nombre de la clase asociada."
+"<literal>class</literal> (opcional - por defecto es el tipo de la propiedad "
+"determinado por reflección): El nombre de la clase asociada. "
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
msgstr ""
-"<literal>cascade</literal> (opcional) especifica qué operaciones "
-"deben ir en cascada desde el objeto padre al objeto asociado."
+"<literal>cascade</literal> (opcional) especifica qué operaciones deben ir en "
+"cascada desde el objeto padre hasta el objeto asociado. "
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
-"<literal>fetch</literal> (opcional - por defecto a 1<literal>select</"
-"literal>): Escoge entre recuperación outer-join o por selecció"
-"n secuencial."
+"<literal>fetch</literal> (opcional - por defecto es <literal>select</"
+"literal>): Escoge entre la recuperación de unión exterior (outer-join) o la "
+"recuperación por selección secuencial."
#. Tag: para
-#: basic_mapping.xml:1545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -3229,55 +2375,49 @@
"association whose value is initialized from another property that maps to "
"the same column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (opcional - por defecto a <literal>true</"
-"literal>) especifica que las columnas mapeadas deben ser incluídas en "
-"las sentencias SQL <literal>UPDATE</literal> y/o <literal>INSERT</literal>. "
-"Establecer ambas a <literal>false</literal> permite una asociación "
+"<literal>update, insert</literal> (opcional - por defecto es <literal>true</"
+"literal>) especifica que las columnas mapeadas deben ser incluÃdas en las "
+"declaraciones SQL <literal>UPDATE</literal> y/o <literal>INSERT</literal>. "
+"El establecer ambas como <literal>false</literal> permite una asociación "
"puramente \"derivada\" cuyo valor es inicializado desde alguna otra "
-"propiedad que mapea a las misma columna (o columnas), o por un disparador, o "
-"por otra aplicación."
+"propiedad que mapea a la misma columna (o columnas), por un disparador o por "
+"otra aplicación."
#. Tag: para
-#: basic_mapping.xml:1554
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>: (opcional) El nombre de la propiedad de la "
-"clase asociada que está unida a la clave foránea. Si no se "
-"especifica, se usa la clave primaria de la clase asociada."
+"<literal>property-ref</literal>: (opcional): El nombre de una propiedad de "
+"la clase asociada que se encuentra unida a su llave foránea. Si no se "
+"especifica, se utiliza la llave principal de la clase asociada."
#. Tag: para
-#: basic_mapping.xml:1567
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. By allowing this to be the target of "
"a <literal>property-ref</literal>, you can make the association multiplicity "
"one-to-one."
msgstr ""
-"<literal>unique</literal> (opcional): Habilita la generación DDL de "
-"una restricción de unicidad para la columna de clave foránea. "
-"Además, permite que ésta sea el objetivo de una "
-"<literal>property-ref</literal>. Esto hace efectivamente la multiplicidad de "
-"la asociación uno a uno."
+"<literal>unique</literal> (opcional): Activa la generación DDL de una "
+"restricción de unicidad para la columna de clave foránea. Además, permite "
+"que éste sea el objetivo de una <literal>property-ref</literal>. puede hacer "
+"que la asociación sea de multiplicidad uno-a-uno."
#. Tag: para
-#: basic_mapping.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
-"<literal>not-null</literal> (opcional): Habilita la generación DDL de "
-"una restricción de nulabilidad para las columnas de clave forá"
-"nea."
+"<literal>not-null</literal> (opcional): Activa la generación DDL de una "
+"restricción de nulabilidad para las columnas de clave foránea. "
#. Tag: para
-#: basic_mapping.xml:1589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3286,51 +2426,47 @@
"instrumentation. <literal>lazy=\"false\"</literal> specifies that the "
"association will always be eagerly fetched."
msgstr ""
-"<literal>lazy</literal> (opcional - por defecto a <literal>proxy</literal>): "
-"Por defecto, las asociaciones de punto único van con proxies. "
-"<literal>lazy=\"true\"</literal> especifica que esta propiedad debe ser "
-"traída perezosamente cuando la variable de instancia sea accedida por "
-"primera vez (requiere instrumentación del bytecode en tiempo de "
-"compilación). <literal>lazy=\"false\"</literal> especifica que la "
-"asociación siempre será recuperada tempranamente."
+"<literal>lazy</literal> (opcional - por defecto es <literal>proxy</"
+"literal>): Por defecto, las asociaciones de punto único van con proxies. "
+"<literal>lazy=\"no-proxy\"</literal> especifica que esta propiedad debe ser "
+"recuperada perezosamente cuando se acceda por primera vez a la variable de "
+"instancia. Requiere instrumentación del código byte en tiempo de "
+"compilación. <literal>lazy=\"false\"</literal> especifica que la asociación "
+"siempre será recuperada tempranamente."
#. Tag: para
-#: basic_mapping.xml:1599
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how foreign keys that reference missing rows will be "
"handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (opcional - por defecto a <literal>exception</"
-"literal>): Especifica cómo deben manejarse las claves foráneas "
-"que referencien filas inexistentes: <literal>ignore</literal> tratará "
-"una fila perdida como una asociación nula."
+"<literal>not-found</literal> (opcional - por defecto es <literal>exception</"
+"literal>): Especifica cómo se manejarán las claves foráneas que referencian "
+"las filas que hacen falta. <literal>ignore</literal> tratará una fila "
+"perdida como una asociación nula."
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
"class."
msgstr ""
"<literal>entity-name</literal> (opcional): El nombre de entidad de la clase "
-"asociada."
+"asociada. "
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
-"<literal>formula</literal> (opcional): una expresión SQL que define "
-"el valor para una clave foránea <emphasis>computada</emphasis>."
+"<literal>formula</literal> (opcional): una expresión SQL que define el valor "
+"para una clave foránea <emphasis>computada</emphasis>."
#. Tag: para
-#: basic_mapping.xml:1619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
"meaningful value other than <literal>none</literal> will propagate certain "
@@ -3340,44 +2476,33 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
-"Establecer el valor del atributo <literal>cascade</literal> a cualquier "
-"valor significativo distinto de <literal>none</literal> propagará "
-"ciertas operaciones al objeto asociado. Los valores significativos son los "
-"nombres de las operaciones básicas de Hibernate, <literal>persist, "
-"merge, delete, save-update, evict, replicate, lock, refresh</literal>, "
-"así como los valores especiales <literal>delete-orphan</literal> y "
-"<literal>all</literal> y combinaciones de operaciones separadas por coma, "
-"por ejemplo, <literal>cascade=\"persist,merge,evict\"</literal> o "
-"<literal>cascade=\"all,delete-orphan\"</literal>. Para una explicació"
-"n completa, ver <xref linkend=\"objectstate-transitive\"/>."
+"Establecer el valor del atributo <literal>cascade</literal> con cualquier "
+"valor significativo diferente de <literal>none</literal> propagará ciertas "
+"operaciones al objeto asociado. Los valores significativos están divididos "
+"en tres categorÃas. Primero, las operaciones básicas, las cuales incluyen: "
+"<literal>persist, merge, delete, save-update, evict, replicate, lock y "
+"refresh</literal>; segundo, los valores especiales <literal>delete-orphan</"
+"literal> y tercero, <literal>all</literal> y las combinaciones de "
+"operaciones separadas por comas: <literal>cascade=\"persist,merge,evict\"</"
+"literal> o <literal>cascade=\"all,delete-orphan\"</literal>. Consulte <xref "
+"linkend=\"objectstate-transitive\" /> y allà encontrará una explicación "
+"completa. Observe que las asociaciones con valores únicos, asociaciones "
+"muchos-a-uno y uno-a-uno no soportan el borrado de huérfanos."
#. Tag: para
-#: basic_mapping.xml:1632
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
-"Una declaración típica <literal>muchos-a-uno</literal> se "
-"parece a esto:"
+"Este es un ejemplo de una declaración tÃpica <literal>muchos-a-uno</literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1636
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1638
-#, fuzzy, no-c-format
-msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
"mapping legacy data where a foreign key refers to a unique key of the "
"associated table other than the primary key. This is a complicated and "
@@ -3386,133 +2511,61 @@
"<literal>unique</literal> attribute controls Hibernate's DDL generation with "
"the SchemaExport tool."
msgstr ""
-"El atributo <literal>property-ref</literal> debe ser usado solamente para el "
-"mapeo de datos heredados donde una clave foránea referencia una clave "
-"única de la tabla asociada, distinta de la clave primaria. Este es un "
-"modelo relacional feo. Por ejemplo, supón que la clase "
-"<literal>Product</literal> tuviera un número único serial que "
-"no es la clave primaria. (El atributo <literal>unique</literal> controla la "
-"generación de DDL con la herramienta SchemaExport.)"
+"El atributo <literal>property-ref</literal> se debe utilizar sólamente para "
+"el mapeo de datos heredados donde una clave foránea referencia una clave "
+"única de la tabla asociada, distinta de la clave principal. Este es un "
+"modelo relacional complicado y confuso. Por ejemplo, si la clase "
+"<literal>Product</literal> tuviera un número único serial que no es la clave "
+"principal, el atributo <literal>unique</literal> controla la generación de "
+"DDL de Hibernate con la herramienta SchemaExport."
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
-msgstr ""
-"Entonces el mapeo para <literal>OrderItem</literal> debería usar:"
+msgstr "Entonces el mapeo para <literal>OrderItem</literal> puede utilizar:"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-
#. Tag: para
-#: basic_mapping.xml:1655
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This is not encouraged, however."
-msgstr "Sin embargo, esto no esta ciertamente alentado."
+msgstr "Sin embargo, esto ciertamente no se aconseja. "
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
"entity, you should map the referenced properties inside a named <literal><"
"properties></literal> element."
msgstr ""
-"Si la clave única referenciada abarca múltiples propiedades de "
-"la entidad asociada, debes mapear las propiedades dentro de un elemento "
+"Si la clave única referenciada abarca múltiples propiedades de la entidad "
+"asociada, debe mapear las propiedades dentro de un elemento nombrado "
"<literal><properties></literal>."
#. Tag: para
-#: basic_mapping.xml:1664
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
"a property path:"
-msgstr "UNTRANSLATED!"
-
-#. Tag: programlisting
-#: basic_mapping.xml:1668
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
msgstr ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
+"Si la clave única referenciada es propiedad de un componente, usted puede "
+"especificar una ruta de propiedad: "
#. Tag: title
-#: basic_mapping.xml:1673
-#, fuzzy, no-c-format
+#, no-c-format
msgid "One-to-one"
-msgstr "one-to-one"
+msgstr "One-to-one"
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
"<literal>one-to-one</literal> element."
msgstr ""
-"Una asociación uno-a-uno a otra clase persistente se declara usando "
-"un elemento <literal>one-to-one</literal>."
+"Una asociación uno-a-uno (one-to-one) a otra clase persistente se declara "
+"utilizando un elemento <literal>one-to-one</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1693
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"cualquier expresión SQL\"\n"
-" lazy=\"true|proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1713
-#, fuzzy, no-c-format
-msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
"constraint on the primary key of the mapped table and references the table "
"of the associated class. This option affects the order in which <literal>save"
@@ -3520,29 +2573,26 @@
"whether the association can be proxied. It is also used by the schema export "
"tool."
msgstr ""
-"<literal>constrained</literal> (opcional) especifica que una "
-"restricción de clave foránea de la tabla mapeada referencia a "
-"la tabla de la clase asociada. Esta opción afecta el orden en que van "
-"en cascada <literal>save()</literal> y <literal>delete()</literal>, y "
-"determina cuándo la asociación pueden ser virtualizados por "
-"proxies (es también usado por la herramienta de exportación de "
-"esquemas)."
+"<literal>constrained</literal> (opcional): especifica que una restricción de "
+"clave foránea en la clave principal de la tabla mapeada referencia la tabla "
+"de la clase asociada. Esta opción afecta el orden en que van en la cascada "
+"<literal>save()</literal> y <literal>delete()</literal> y determina si la "
+"asociación puede ser virtualizada por proxies. La herramienta de exportación "
+"de esquemas también lo utiliza."
#. Tag: para
-#: basic_mapping.xml:1728
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to the primary key of this class. If not "
"specified, the primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>: (opcional) El nombre de una propiedad de la "
-"clase asociada que esté unida a la clave primaria de esta clase. Si "
-"no se especifica, se usa la clave primaria de la clase asociada."
+"<literal>property-ref</literal> (opcional): El nombre de una propiedad de la "
+"clase asociada que esté unida a la clave principal de esta clase. Si no se "
+"especifica, se utiliza la clave principal de la clase asociada."
#. Tag: para
-#: basic_mapping.xml:1741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
"map to the primary key of the owning entity. If this is not the case, you "
@@ -3551,14 +2601,13 @@
"example."
msgstr ""
"<literal>formula</literal> (opcional): Casi todas las asociaciones uno-a-uno "
-"mapean a la clave primaria de la entidad propietaria. En el raro caso en que "
-"este no sea el caso, puedes especificar alguna otra columna, o columnas, o "
-"expresión para unir usando una fórmula SQL. (Para un ejemplo "
-"ver <literal>org.hibernate.test.onetooneformula</literal>)."
+"mapean a la clave principal de la entidad propietaria. Si este no es el "
+"caso, puede especificar otra columna, o columnas, o una expresión para unir "
+"utilizando una fórmula SQL. Para un obtener un ejemplo consulte <literal>org."
+"hibernate.test.onetooneformula</literal>."
#. Tag: para
-#: basic_mapping.xml:1749
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3569,200 +2618,106 @@
"<literal>constrained=\"false\"</literal>, proxying is impossible and "
"Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
-"<literal>lazy</literal> (opcional - por defecto a <literal>proxy</literal>): "
-"Por defecto, las asociaciones de punto único van con proxies. "
-"<literal>lazy=\"true\"</literal> especifica que esta propiedad debe ser "
-"traída perezosamente cuando la variable de instancia sea accedida por "
-"primera vez (requiere instrumentación del bytecode en tiempo de "
-"compilación). <literal>lazy=\"false\"</literal> especifica que la "
-"asociación siempre será recuperada tempranamente. "
-"<emphasis>Observa que si <literal>constrained=\"false\"</literal>, la "
-"aplicación de proxies es imposible e Hibernate traerá temprano "
-"la asociación!</emphasis>"
+"<literal>lazy</literal> (opcional - por defecto es <literal>proxy</"
+"literal>): Por defecto, las asociaciones de punto único van con proxies. "
+"<literal>lazy=\"no-proxy\"</literal> especifica que esta propiedad debe ser "
+"traÃda perezosamente cuando se acceda por primera vez la variable de "
+"instancia. Requiere instrumentación del código byte en tiempo de "
+"compilación. <literal>lazy=\"false\"</literal> especifica que la asociación "
+"siempre será recuperada tempranamente. <emphasis>Observe que si "
+"<literal>constrained=\"false\"</literal>, la aplicación de proxies es "
+"imposible e Hibernate recuperará tempranamente la asociación</emphasis>."
#. Tag: para
-#: basic_mapping.xml:1767
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are two varieties of one-to-one associations:"
-msgstr "Hay dos variedades de asociaciones uno-a-uno:"
+msgstr "Existen dos variedades de asociaciones uno-a-uno: "
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
msgstr "asociaciones de clave primaria"
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
-msgstr "asociaciones de clave foráneas única"
+msgstr "asociaciones de clave foránea única"
#. Tag: para
-#: basic_mapping.xml:1779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
"related by the association, then the two table rows share the same primary "
"key value. To relate two objects by a primary key association, ensure that "
"they are assigned the same identifier value."
msgstr ""
-"Las asociaciones de clave primaria no necesitan una columna de tabla extra; "
-"si dos filas están relacionadas por la asociación entonces las "
-"dos filas de tablas comparten el mismo valor de clave primaria. Por lo "
-"tanto, si quieres que dos objetos estén relacionados por una "
-"asociación de clave primaria, debes asegurarte que se les asigne el "
-"mismo valor de identificador!"
+"Las asociaciones de claves principales no necesitan una columna extra de la "
+"tabla. Si dos filas están relacionadas por la asociación entonces las dos "
+"filas de tablas comparten el mismo valor de clave principal. Para que dos "
+"objetos estén relacionados por una asociación de clave principal, asegúrese "
+"de que se les asigne el mismo valor de identificador."
#. Tag: para
-#: basic_mapping.xml:1786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
"<literal>Employee</literal> and <literal>Person</literal> respectively:"
msgstr ""
-"Para una asociación de clave primaria, añade los siguientes "
-"mapeos a <literal>Employee</literal> y <literal>Person</literal>, "
-"respectivamente."
+"Para una asociación de clave principal, agregue los siguientes mapeos a "
+"<literal>Employee</literal> y <literal>Person</literal> respectivamente:"
-#. Tag: programlisting
-#: basic_mapping.xml:1791
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1794
-#, fuzzy, no-c-format
-msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
"tables are equal. You use a special Hibernate identifier generation strategy "
"called <literal>foreign</literal>:"
msgstr ""
-"Ahora debemos asegurarnos que las claves primarias de las filas relacionadas "
-"en las tablas PERSON y EMPLOYEE sean iguales. Usamos una estrategia especial "
-"de generación de identificador de Hibernate llamada <literal>foreign</"
+"Asegúrese de que las claves principales de las filas relacionadas en las "
+"tablas PERSON y EMPLOYEE sean iguales. Utilizamos una estrategia especial de "
+"generación de identificador de Hibernate denominada <literal>foreign</"
"literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1800
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1802
-#, fuzzy, no-c-format
-msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
"primary key value as the <literal>Employee</literal> instance referred with "
"the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
-"A una instancia recién salvada de <literal>Person</literal> se le "
-"asigna entonces el mismo valor de clave primaria con que la instancia "
+"A una instancia recién guardada de <literal>Person</literal> se le asigna el "
+"mismo valor de clave principal que se le asignó a la instancia "
"<literal>Employee</literal> referida por la propiedad <literal>employee</"
-"literal> de esta <literal>Person</literal>."
+"literal> de esa <literal>Person</literal>."
#. Tag: para
-#: basic_mapping.xml:1808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
"<literal>Employee</literal> to <literal>Person</literal>, can be expressed "
"as:"
msgstr ""
-"Alternativamente, una clave foránea con una restricción de "
-"unicidad, desde <literal>Employee</literal> a <literal>Person</literal>, "
-"puede ser expresada como:"
+"Opcionalmente, una clave foránea con una restricción de unicidad, desde "
+"<literal>Employee</literal> a <literal>Person</literal>, se puede expresar "
+"como:"
-#. Tag: programlisting
-#: basic_mapping.xml:1813
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1815
-#, fuzzy, no-c-format
-msgid ""
"This association can be made bidirectional by adding the following to the "
"<literal>Person</literal> mapping:"
msgstr ""
-"Y esta asociación puede hacerse bidireccional agregando lo siguiente "
-"al mapeo de <literal>Person</literal> :"
+"Esta asociación puede hacerse bidireccional agregando lo siguiente al mapeo "
+"de <literal>Person</literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1820
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-msgstr ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-
#. Tag: title
-#: basic_mapping.xml:1825
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Natural-id"
-msgstr "natural-id"
+msgstr "Natural-id"
-#. Tag: programlisting
-#: basic_mapping.xml:1827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1829
-#, fuzzy, no-c-format
-msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
"try to identify natural keys for all entities. A natural key is a property "
"or combination of properties that is unique and non-null. It is also "
@@ -3771,58 +2726,52 @@
"unique key and nullability constraints and, as a result, your mapping will "
"be more self-documenting."
msgstr ""
-"Aunque recomendamos el uso de claves delegadas como claves primarias, "
-"todavía debes intentar identificar claves naturales para todas las "
-"entidades. Una clave natural es una propiedad o combinación de "
-"propiedades que es única y no nula. Si además es inmutable, "
-"mejor aún. Mapea las propiedades de la clave natural dentro del "
-"elemento <literal><natural-id></literal>. Hibernate generará "
-"las restricciones de clave única y nulabilidad necesarias, y tu mapeo "
-"será más auto-documentado."
+"Aunque recomendamos el uso de claves delegadas como claves principales, debe "
+"tratar de identificar claves naturales para todas las entidades. Una clave "
+"natural es una propiedad o combinación de propiedades que es única y no "
+"nula. También es inmutable. Mapea las propiedades de la clave natural dentro "
+"del elemento <literal><natural-id></literal>. Hibernate generará las "
+"restricciones de nulabilidad y de clave única necesarias y su mapeo será más "
+"auto-documentado."
#. Tag: para
-#: basic_mapping.xml:1838
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> to compare the natural key properties of the "
"entity."
msgstr ""
-"Recomendamos fuertemente que implementes <literal>equals()</literal> y "
+"Le recomendamos bastante que implemente <literal>equals()</literal> y "
"<literal>hashCode()</literal> para comparar las propiedades de clave natural "
-"de la entidad."
+"de la entidad. "
#. Tag: para
-#: basic_mapping.xml:1843
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
msgstr ""
-"Este mapeo no está concebido para usar con entidades con claves "
-"primarias naturales."
+"Este mapeo no está concebido para la utilización con entidades que tienen "
+"claves principales naturales."
#. Tag: para
-#: basic_mapping.xml:1849
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
"literal>): by default, natural identifier properties are assumed to be "
"immutable (constant)."
msgstr ""
-"<literal>mutable</literal> (opcional, por defecto a <literal>false</"
+"<literal>mutable</literal> (opcional - por defecto es <literal>false</"
"literal>): Por defecto, se asume que las propiedades de identificadores "
"naturales son inmutables (constantes)."
#. Tag: title
-#: basic_mapping.xml:1859
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Component and dynamic-component"
-msgstr "component, dynamic-component"
+msgstr "Componente y componente dinámico"
#. Tag: para
-#: basic_mapping.xml:1861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
"object to columns of the table of a parent class. Components can, in turn, "
@@ -3830,131 +2779,83 @@
"\" examples below:"
msgstr ""
"El elemento <literal><component></literal> mapea propiedades de un "
-"objeto hijo a columnas de la tabla de la clase padre. Los componentes pueden "
-"a su vez declarar sus propias propiedades, componentes o colecciones. Ver "
-"debajo \"Componentes\"."
+"objeto hijo a columnas de la tabla de la clase padre. Los componentes "
+"pueden, a su vez, declarar sus propias propiedades, componentes o "
+"colecciones. Vea a continuación los \"componentes\":"
-#. Tag: programlisting
-#: basic_mapping.xml:1879
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-msgstr ""
-"<![CDATA[<component \n"
-" name=\"propertyName\" \n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-" \n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1887
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
-"<literal>class</literal> (opcional - por defecto al tipo de la propiedad "
-"determinado por reflección): El nombre de la clase del componente "
-"(hijo)."
+"<literal>class</literal> (opcional - por defecto es el tipo de la propiedad "
+"determinado por reflección): El nombre de la clase del componente (hijo). "
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
"<literal>INSERTs</literal>?"
msgstr ""
-"<literal>insert</literal>: Aparecen las columnas mapeadas en "
-"<literal>INSERT</literal>s SQL?"
+"<literal>insert</literal>: ¿Las columnas mapeadas aparacen en "
+"<literal>INSERTs</literal> SQL? "
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
"<literal>UPDATEs</literal>?"
msgstr ""
-"<literal>update</literal>: Aparecen las columnas mapeadas en "
-"<literal>UPDATE</literal>s SQL?"
+"<literal>update</literal>: ¿Las columnas mapeadas aparacen en "
+"<literal>UPDATEs</literal> SQL?"
#. Tag: para
-#: basic_mapping.xml:1911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (opcional - por defecto a <literal>false</literal>): "
-"Especifica que este componente debe ser recuperado perezosamente cuando la "
-"variable de instancia sea accedida por primera vez (requiere "
-"instrumentación de bytecode en tiempo de compilación)."
+"<literal>lazy</literal> (opcional - por defecto es <literal>false</"
+"literal>): Especifica que este componente debe ser recuperado perezosamente "
+"cuando se acceda a la variable de instancia por primera vez. Requiere "
+"instrumentación de código byte en tiempo de compilación."
#. Tag: para
-#: basic_mapping.xml:1918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this component either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</"
-"literal>): Especifica si las actualizaciones de este componente requieren o "
-"no la adquisición de un bloqueo optimista. En otras palabras, "
-"determina si debe ocurrir un incremento de versión cuando esta "
-"propiedad está desactualizada."
+"<literal>optimistic-lock</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica que las actualizaciones de este componente requieren o "
+"no la adquisición de un bloqueo optimista. Determina si debe ocurrir un "
+"incremento de versión cuando esta propiedad se encuentra desactualizada."
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
"specifies that a unique constraint exists upon all mapped columns of the "
"component."
msgstr ""
-"<literal>unique</literal> (opcional - por defecto a <literal>false</"
-"literal>): Especifica que existe una restricción de unicidad sobre "
-"todas las columnas mapeadas del componente."
+"<literal>unique</literal> (opcional - por defecto es <literal>false</"
+"literal>): Especifica que existe una restricción de unicidad sobre todas las "
+"columnas mapeadas del componente."
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
"child class to table columns."
msgstr ""
"Las etiquetas hijas <literal><property></literal> mapean propiedades "
-"de la clase hija columnas de la tabla."
+"de la clase hija a las columnas de la tabla."
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
@@ -3963,31 +2864,28 @@
msgstr ""
"El elemento <literal><component></literal> permite un subelemento "
"<literal><parent></literal> que mapea una propiedad de la clase del "
-"componente como una referencia de regreso a la entidad contenedora."
+"componente como una referencia a la entidad contenedora."
#. Tag: para
-#: basic_mapping.xml:1946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
msgstr ""
"El elemento <literal><dynamic-component></literal> permite que un "
-"<literal>Map</literal> sea mapeado como un componente, donde los nombres de "
-"las propiedades se corresponden a las claves del mapa, ver <xref linkend="
-"\"components-dynamic\"/>."
+"<literal>Map</literal> sea mapeado como un componente, en donde los nombres "
+"de las propiedades se refieran a las claves del mapeo. Consulte <xref "
+"linkend=\"components-dynamic\" /> para obtener mayor información. "
#. Tag: title
-#: basic_mapping.xml:1955
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Properties"
-msgstr "properties"
+msgstr "Propiedades"
#. Tag: para
-#: basic_mapping.xml:1957
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
"named, logical grouping of the properties of a class. The most important use "
@@ -3995,70 +2893,36 @@
"target of a <literal>property-ref</literal>. It is also a convenient way to "
"define a multi-column unique constraint. For example:"
msgstr ""
-"El elemento <literal><properties></literal> permite la definició"
-"n de un grupo de propiedades lógico con nombre de una clase. El uso "
-"más importante de la contrucción es que permite que una "
-"combinación de propiedades sea objetivo de una <literal>property-ref</"
-"literal>. Es también una forma conveniente de definir una "
-"restricción de unicidad multicolumna."
+"El elemento <literal><properties></literal> permite la definición de "
+"un grupo de propiedades lógico con nombre de una clase. El uso más "
+"importante de la contrucción es que permite que una combinación de "
+"propiedades sea el objetivo de una <literal>property-ref</literal>. También "
+"es una forma práctica de definir una restricción de unicidad multicolumna. "
+"Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:1973
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-"<![CDATA[<properties \n"
-" name=\"logicalName\" \n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-" \n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:1976
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
"<emphasis>not</emphasis> an actual property name."
msgstr ""
-"<literal>name</literal>: El nombre lógico del agrupamiento - "
-"<emphasis>no</emphasis> un nombre de propiedad real."
+"<literal>name</literal>: El nombre lógico del agrupamiento. <emphasis>No</"
+"emphasis> es un nombre de propiedad."
#. Tag: para
-#: basic_mapping.xml:1994
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to these properties either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when these properties are dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</"
-"literal>): Especifica si las actualizaciones de estas propiedades requieren "
-"o no de la adquisición de un bloqueo optimista. En otras palabras, "
-"determina si debe ocurrir un incremento de versión cuando estas "
-"propiedades están desactualizadas."
+"<literal>optimistic-lock</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica que las actualizaciones de estas propiedades requieren "
+"o no de la adquisición de un bloqueo optimista. Determina si debe ocurrir un "
+"incremento de versión cuando estas propiedades están desactualizadas."
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
@@ -4067,167 +2931,80 @@
"Por ejemplo, si tenemos el siguiente mapeo de <literal><properties></"
"literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:2015
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-" ...\n"
-" <properties name=\"name\" \n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2017
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
-"Entonces puede que tengamos alguna asociación de datos heredados que "
-"se refiera a esta clave única de la tabla de <literal>Person</"
-"literal>, en vez de la clave primaria:"
+"Puede que tenga alguna asociación de datos heredados que se refiera a esta "
+"clave única de la tabla de <literal>Person</literal>, en lugar de la clave "
+"principal:"
-#. Tag: programlisting
-#: basic_mapping.xml:2022
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"person\" \n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2024
-#, fuzzy, no-c-format
-msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
msgstr ""
"No recomendamos el uso de este tipo de cosas fuera del contexto del mapeo de "
-"datos heredados."
+"datos heredados. "
#. Tag: title
-#: basic_mapping.xml:2032
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Subclass"
-msgstr "subclass"
+msgstr "Subclase"
#. Tag: para
-#: basic_mapping.xml:2034
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
"root persistent class. For the table-per-class-hierarchy mapping strategy, "
"the <literal><subclass></literal> declaration is used. For example:"
msgstr ""
-"Finalmente, la persistencia polimórfica requiere la declaració"
-"n de la clase persistente raíz. Para la estrategia de mapeo tabla-por-"
-"jerarquía-de-clases, se usa la declaración de <literal><"
-"subclass></literal>."
+"La persistencia polimórfica requiere la declaración de cada subclase de la "
+"clase persistente raÃz. Para la estrategia de mapeo tabla-por-jerarquÃa-de-"
+"clases, se utiliza la declaración <literal><subclass></literal>. Por "
+"ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2047
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-msgstr ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
msgstr ""
-"<literal>name</literal>: El nombre de clase cualificado completamente de la "
-"subclase."
+"<literal>name</literal>: El nombre de clase completamente calificado de la "
+"subclase. "
#. Tag: para
-#: basic_mapping.xml:2055
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
msgstr ""
-"<literal>discriminator-value</literal> (opcional - por defecto al nombre de "
-"la clase): Un valor que distingue a subclases individuales."
+"<literal>discriminator-value</literal> (opcional - por defecto es el nombre "
+"de la clase): Un valor que distingue subclases individuales. "
#. Tag: para
-#: basic_mapping.xml:2061
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
-"<literal>proxy</literal> (opcional): Especifica una clase o interface a usar "
-"para proxies de inicialización perezosa."
+"<literal>proxy</literal> (opcional): Especifica una clase o interfaz que se "
+"utiliza para proxies de inicialización perezosa."
#. Tag: para
-#: basic_mapping.xml:2067
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"<literal>lazy</literal> (opcional, por defecto a <literal>true</literal>): "
-"Establecer <literal>lazy=\"false\"</literal> deshabilita el uso de "
-"recuperación perezosa."
+"<literal>lazy</literal> (opcional, por defecto es <literal>true</literal>): "
+"El establecer <literal>lazy=\"false\"</literal> desactiva el uso de la "
+"recuperación perezosa. "
#. Tag: para
-#: basic_mapping.xml:2075
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
"<literal><version></literal> and <literal><id></literal> "
@@ -4235,208 +3012,84 @@
"a hierarchy must define a unique <literal>discriminator-value</literal>. If "
"this is not specified, the fully qualified Java class name is used."
msgstr ""
-"UNTRANSLATED! Each subclass should declare its own persistent properties and "
-"subclasses. <literal><version></literal> and <literal><id></"
-"literal> properties are assumed to be inherited from the root class. Each "
-"subclass in a heirarchy must define a unique <literal>discriminator-value</"
-"literal>. If none is specified, the fully qualified Java class name is used."
+"Cada subclase debe declarar sus propias propiedades persistentes y "
+"subclases. Se asume que las propiedades <literal><version></literal> y "
+"<literal><id></literal> son heredadas de la clase raÃz. Cada subclase "
+"en una jerarquÃa tiene que definir un <literal>discriminator-value</literal> "
+"único. Si no se especifica ninguno entonces se utiliza el nombre "
+"completamente calificado de clase Java."
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
msgstr ""
-"Para información acerca de mapeos de herencia, ver <xref linkend="
-"\"inheritance\"/>."
+"Para obtener información acerca de los mapeos de herencias consulte <xref "
+"linkend=\"inheritance\" />."
#. Tag: title
-#: basic_mapping.xml:2090
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Joined-subclass"
-msgstr "joined-subclass"
+msgstr "joined-subclass "
#. Tag: para
-#: basic_mapping.xml:2092
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
"per-subclass mapping strategy. An inherited state is retrieved by joining "
"with the table of the superclass. To do this you use the <literal><joined-"
"subclass></literal> element. For example:"
msgstr ""
-"Alternativamente, cada subclase puede ser mapeada a su propia tabla "
-"(estrategia de mapeo tabla-por-subclase). El estado heredado se recupera "
-"uniendo con la tabla de la superclase. Usamos el elemento <literal><"
-"joined-subclass></literal>."
+"Se puede mapear cada subclase a su propia tabla. Esto se llama una "
+"estrategia de mapeo tabla-por-subclase. El estado heredado se recupera "
+"uniendo con la tabla de la superclase. Para hacer esto utilice elemento "
+"<literal><joined-subclass></literal>. Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2105
-#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
-msgstr "<literal>table</literal>: El nombre de tabla de la subclase."
+msgstr "<literal>table</literal>: El nombre de tabla de la subclase. "
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
-"<literal>proxy</literal> (opcional): Especifica una clase o interface a usar "
-"para proxies de inicialización perezosa."
+"<literal>proxy</literal> (opcional): Especifica una clase o interfaz que se "
+"debe utilizar para proxies de inicialización perezosa. "
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"<literal>lazy</literal> (opcional, por defecto a <literal>true</literal>): "
-"Establecer <literal>lazy=\"false\"</literal> deshabilita el uso de "
-"recuperación perezosa."
+"<literal>lazy</literal> (opcional, por defecto es <literal>true</literal>): "
+"El establecer <literal>lazy=\"false\"</literal> desactiva el uso de la "
+"recuperación perezosa. "
#. Tag: para
-#: basic_mapping.xml:2132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
"subclass must, however, declare a table column holding the object identifier "
"using the <literal><key></literal> element. The mapping at the start "
"of the chapter would then be re-written as:"
msgstr ""
-"No se requiere de una columna discriminadora para esta estrategia de mapeo. "
-"Cada subclase debe, sin embargo, declarar una columna de tabla que tenga el "
-"identificador del objeto usando el elemento <literal><key></literal>. "
-"El mapeo del comienzo del capítulo debería ser reescrito como:"
+"No se necesita una columna discriminadora para esta estrategia de mapeo. Sin "
+"embargo, cada subclase debe declarar una columna de tabla que tenga el "
+"identificador del objeto utilizando el elemento <literal><key></"
+"literal>. El mapeo mencionado al comienzo del capÃtulo se reescribirÃa asÃ:"
-#. Tag: programlisting
-#: basic_mapping.xml:2139
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: title
-#: basic_mapping.xml:2148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Union-subclass"
-msgstr "union-subclass"
+msgstr "Union-subclass"
#. Tag: para
-#: basic_mapping.xml:2150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
"hierarchy to tables. This is called the table-per-concrete-class strategy. "
@@ -4448,127 +3101,47 @@
"need to use the <literal><union-subclass></literal> mapping. For "
"example:"
msgstr ""
-"Una tercera opción es mapear sólo las clases concretas de una "
-"jerarquía de clases a tablas, (la estrategia tabla-por-clase-"
-"concreta) donde cada tabla define todo el estado persistente de la clase, "
-"incluyendo el estado heredado. En Hibernate, no es absolutamente necesario "
-"mapear dichas jerarquías de herencia. Puedes simplemente mapear cada "
-"clase con una declaración <literal><class></literal> separada. "
-"Sin embargo, si deseas usar asociaciones polimórficas (por ejemplo, "
-"una asociación a la superclase de tu jerarquía), debes usar el "
-"mapeo <literal><union-subclass></literal>."
+"Una tercera opción es mapear sólo las clases concretas de una jerarquÃa de "
+"herencia a tablas. Esta se llama la estrategia clase concreta por tabla). "
+"Cada tabla define todos los estados persistentes de la clase, incluyendo el "
+"estado heredado. En Hibernate, no es necesario mapear dichas jerarquÃas de "
+"herencia. Puede mapear cada clase con una declaración <literal><class>"
+"</literal> separada. Sin embargo, si desea utilizar asociaciones "
+"polimórficas (por ejemplo, una asociación a la superclase de su jerarquÃa), "
+"necesita utilizar el mapeo <literal><union-subclass></literal>. Por "
+"ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
msgstr ""
-"No se requiere columna o columna clave discriminadora para esta estrategia "
-"de mapeo."
+"No se necesita una columna o una columna clave discriminadora para esta "
+"estrategia de mapeo."
#. Tag: title
-#: basic_mapping.xml:2206
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Join"
-msgstr "join"
+msgstr "Join"
#. Tag: para
-#: basic_mapping.xml:2208
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
"properties of one class to several tables that have a one-to-one "
"relationship. For example:"
msgstr ""
-"Usando el elemento <literal><join></literal>, es posible mapear "
-"propiedades de una clase a varias tablas."
+"Al utilizar el elemento <literal><join></literal>, es posible mapear "
+"las propiedades de una clase a varias tablas que tengan una relación uno-a-"
+"uno. Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2222
-#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-" \n"
-" <key ... />\n"
-" \n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
-msgstr "<literal>table</literal>: El nombre de la clase unida."
+msgstr "<literal>table</literal>: El nombre de la tabla unida. "
#. Tag: para
-#: basic_mapping.xml:2243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"if set to <literal>join</literal>, the default, Hibernate will use an inner "
@@ -4580,206 +3153,140 @@
"instance of the subclass. Inner joins will still be used to retrieve a "
"<literal><join></literal> defined by the class and its superclasses."
msgstr ""
-"<literal>fetch</literal> (opcional - por defecto a <literal>join</literal>): "
-"Si se establece a <literal>join</literal>, por defecto, Hibernate "
-"usará una unión interior (inner join) para recuperar un "
-"<literal><join></literal> definido por una clase o sus superclases y "
-"una unión externa (outer join) para un <literal><join></"
-"literal> definido por una subclase. Si se establece a <literal>select</"
-"literal>, entonces Hibernate usará una select secuencial para un "
-"<literal><join></literal> definido en una subclase, que será "
-"publicada sólo si una fila resulta representar una instancia de la "
-"subclase. Las uniones interiores todavía serán usados para "
-"recuperar un <literal><join></literal> definido por la clase y sus "
-"superclases."
+"<literal>fetch</literal> (opcional - por defecto es <literal>join</"
+"literal>): Si se establece como <literal>join</literal>, por defecto, "
+"Hibernate utilizará una unión interior (inner join) para recuperar un "
+"<literal><join></literal> definido por una clase o sus superclases. "
+"Utilizará una unión externa (outer join) para un <literal><join></"
+"literal> definido por una subclase. Si se establece como <literal>select</"
+"literal>, entonces Hibernate utilizará una selección secuencial para un "
+"<literal><join></literal> definido en una subclase. Esto se publicará "
+"sólamente si una fila representa una instancia de la subclase. Las uniones "
+"interiores todavÃa serán utilizadas para recuperar un <literal><join></"
+"literal> definido por la clase y sus superclases."
#. Tag: para
-#: basic_mapping.xml:2256
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will not insert or update the properties "
"defined by this join."
msgstr ""
-"<literal>inverse</literal> (opcional - por defecto a <literal>false</"
-"literal>): De habilitarse, Hibernate no intentará insertar o "
-"actualizar las propiedades definidas por esta unión."
+"<literal>inverse</literal> (opcional - por defecto es <literal>false</"
+"literal>): De activarse, Hibernate no tratará de insertar o actualizar las "
+"propiedades definidas por esta unión. "
#. Tag: para
-#: basic_mapping.xml:2263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will insert a row only if the properties "
"defined by this join are non-null. It will always use an outer join to "
"retrieve the properties."
msgstr ""
-"<literal>optional</literal> (opcional - por defecto a <literal>false</"
-"literal>): De habilitarse, Hibernate insertará una fila sólo "
-"si las propiedades definidas por esta unión son no nulas y siempre "
-"usará una unión externa para recuperar las propiedades."
+"<literal>optional</literal> (opcional - por defecto es <literal>false</"
+"literal>): De activarse, Hibernate insertará una fila sólo si las "
+"propiedades definidas por esta unión son no-nulas. Siempre utilizará una "
+"unión externa para recuperar las propiedades."
#. Tag: para
-#: basic_mapping.xml:2272
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
"table while preserving value type semantics for all properties:"
msgstr ""
-"Por ejemplo, la información domiciliaria de una persona puede ser "
-"mapeada a una tabla separada (preservando a la vez la semántica de "
-"tipo de valor para todas las propiedades):"
+"Por ejemplo, la información domiciliaria de una persona se puede mapear a "
+"una tabla separada, preservando a la vez la semántica de tipo de valor para "
+"todas las propiedades:"
-#. Tag: programlisting
-#: basic_mapping.xml:2277
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2279
-#, fuzzy, no-c-format
-msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
"tables than classes and a fine-grained domain model. However, it is useful "
"for switching between inheritance mapping strategies in a single hierarchy, "
"as explained later."
msgstr ""
-"Esta funcionalidad es a menudo solamente útil para modelos de datos "
-"heredados; recomendamos menos tablas que clases un modelo de dominio "
-"más granularizado. Sin embargo, es útil para cambiar entre "
-"estrategias de mapeo de herencias en una misma jerarquía, como se "
-"explica luego."
+"Con frecuencia, esta funcionalidad sólamente es útil para los modelos de "
+"datos heredados. Recomendamos menos tablas que clases y un modelo de dominio "
+"más detallado. Sin embargo, es útil para cambiar entre estrategias de mapeo "
+"de herencias en una misma jerarquÃa, como se explica más adelante."
#. Tag: title
-#: basic_mapping.xml:2289
-#, fuzzy, no-c-format
-msgid "<title>Key</title>"
-msgstr "<title>key</title>"
+#, no-c-format
+msgid "Key"
+msgstr "Key"
#. Tag: para
-#: basic_mapping.xml:2291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
"this guide. It appears anywhere the parent mapping element defines a join to "
"a new table that references the primary key of the original table. It also "
"defines the foreign key in the joined table:"
msgstr ""
-"Hasta ahora hemos visto el elemento <literal><key></literal> pocas "
-"veces. Aparece en cualquier sitio en que el elemento padre de mapeo defina "
-"una unión a una nueva tabla, y define la clave foránea en la "
-"tabla unida, que referencia la clave primaria de la tabla original."
+"Hasta ahora hemos visto el elemento <literal><key></literal> unas "
+"cuantas veces. Aparece en cualquier sitio en que el elemento padre de mapeo "
+"defina una unión a una nueva tabla que referencie la clave principal de la "
+"tabla original. También define la clave foránea en la tabla unida:"
-#. Tag: programlisting
-#: basic_mapping.xml:2307
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2318
-#, fuzzy, no-c-format
-msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
"literal>): specifies whether the foreign key constraint has database-level "
"cascade delete enabled."
msgstr ""
-"<literal>on-delete</literal> (opcional, por defecto a <literal>noaction</"
-"literal>): Especifica si la restricción de clave foránea tiene "
-"el borrado en cascada habilitado a nivel de base de datos."
+"<literal>on-delete</literal> (opcional - por defecto es <literal>noaction</"
+"literal>): Especifica si la restricción de clave foránea tiene el borrado en "
+"cascada activado a nivel de base de datos."
#. Tag: para
-#: basic_mapping.xml:2325
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
"refers to columns that are not the primary key of the original table. It is "
"provided for legacy data."
msgstr ""
-"<literal>property-ref</literal> (opcional): Especifica que la clave "
-"foránea referencia columnas que no son del la clave primaria de la "
-"tabla original. (Provisto para datos heredados.)"
+"<literal>property-ref</literal> (opcional): Especifica que la clave foránea "
+"referencia columnas que no son la clave principal de la tabla original. Se "
+"proporciona para los datos heredados."
#. Tag: para
-#: basic_mapping.xml:2332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
"columns are not nullable. This is implied whenever the foreign key is also "
"part of the primary key."
msgstr ""
"<literal>not-null</literal> (opcional): Especifica que las columnas de la "
-"clave foránea son no nulables (esto está implicado si la clave "
-"foránea es también parte de la clave primaria)."
+"clave foránea son no nulables. Esto se implica cuando la clave foránea "
+"también es parte de la clave principal."
#. Tag: para
-#: basic_mapping.xml:2339
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
"never be updated. This is implied whenever the foreign key is also part of "
"the primary key."
msgstr ""
-"<literal>update</literal> (opcional): Especifica que la clave foránea "
-"nunca debe ser actualizada (esto está implicado si la clave "
-"foránea es también parte de la clave primaria)."
+"<literal>update</literal> (opcional): Especifica que la clave foránea nunca "
+"se debe actualizar. Esto se implica cuando la clave foránea también es parte "
+"de la clave principal."
#. Tag: para
-#: basic_mapping.xml:2346
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
"have a unique constraint. This is implied whenever the foreign key is also "
"the primary key."
msgstr ""
-"<literal>unique</literal> (opcional): Especifica que la clave foránea "
-"debe tener una restricción de unicidad (esto está implicado si "
-"la clave foránea es también la clave primaria)."
+"<literal>unique</literal> (opcional): Especifica que la clave foránea debe "
+"tener una restricción de . Esto se implica cuando la clave foránea también "
+"es la clave principal."
#. Tag: para
-#: basic_mapping.xml:2354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate "
@@ -4788,17 +3295,15 @@
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
-"Recomendamos que, para los sistemas en donde el rendimiento sea importante, "
-"todas las claves deben ser definidas <literal>on-delete=\"cascade\"</"
-"literal>, e Hibernate usará una restricción <literal>ON "
-"CASCADE DELETE</literal> a nivel de base de datos, en vez de muchas "
-"sentencias <literal>DELETE</literal> individuales. Ten en cuenta que esta "
-"funcionalidad se salta la habitual estrategia de bloqueo optimista de "
-"Hibernate para datos versionados."
+"Para los sistemas en donde el rendimiento es importante, todas las claves "
+"deben ser definidas <literal>on-delete=\"cascade\"</literal>. Hibernate "
+"utiliza una restricción <literal>ON CASCADE DELETE</literal> a nivel de base "
+"de datos, en vez de muchas declaraciones <literal>DELETE</literal> "
+"individuales. Tenga en cuenta que esta funcionalidad evita la estrategia de "
+"bloqueo optimista normal de Hibernate para datos versionados."
#. Tag: para
-#: basic_mapping.xml:2362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
"useful when mapping a unidirectional one-to-many association. If you map a "
@@ -4807,103 +3312,58 @@
"null=\"true\"></literal>."
msgstr ""
"Los atributos <literal>not-null</literal> y <literal>update</literal> son "
-"útiles al mapear una asociación uno a muchos unidireccional. "
-"Si mapeas una uno a muchos unidireccional a una clave foránea no "
-"nulable, <emphasis>debes</emphasis> declarar la columna clave usando "
-"<literal><key not-null=\"true\"></literal>."
+"útiles al mapear una asociación uno a muchos unidireccional. Si mapea una "
+"unidireccional uno a muchos a una clave foránea no nulable, <emphasis>tiene</"
+"emphasis> que declarar la columna clave utilizando <literal><key not-null="
+"\"true\"></literal>. "
#. Tag: title
-#: basic_mapping.xml:2372
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Column and formula elements"
-msgstr "los elementos column y formula"
+msgstr "Los elementos columna y fórmula"
#. Tag: para
-#: basic_mapping.xml:2373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
"alternatively accept a <literal><column></literal> subelement. "
"Likewise, <literal><formula></literal> is an alternative to the "
"<literal>formula</literal> attribute. For example:"
msgstr ""
-"Cualquier elemento de mapeo que acepte un atributo <literal>column</literal> "
-"aceptará alternativamente un subelemento <literal><column></"
-"literal>. De forma similar, <literal><formula></literal> es una "
-"alternativa al atributo <literal>formula</literal>."
+"Los elementos de mapeo que acepten un atributo <literal>column</literal> "
+"aceptarán opcionalmente un subelemento <literal><column></literal>. De "
+"manera similar, <literal><formula></literal> es una alternativa al "
+"atributo <literal>formula</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"/>]]>"
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr "<![CDATA[<formula>expresión SQL</formula>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
-"Los atributos <literal>column</literal> y <literal>formula</literal> pueden "
-"incluso ser combinados dentro del mismo mapeo de propiedad o asociació"
-"n para expresar, por ejemplo, condiciones de unión exóticas."
+"Los atributos <literal>column</literal> y <literal>formula</literal> incluso "
+"se pueden combinar dentro del mismo mapeo de propiedad o asociación para "
+"expresar, por ejemplo, condiciones de unión exóticas."
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-
#. Tag: title
-#: basic_mapping.xml:2394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Import"
-msgstr "import"
+msgstr "Import"
#. Tag: para
-#: basic_mapping.xml:2396
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
"do not want to specify the fully qualified package name in Hibernate "
@@ -4911,61 +3371,36 @@
"<literal>auto-import=\"true\"</literal>. You can also import classes and "
"interfaces that are not explicitly mapped:"
msgstr ""
-"Supón que tu aplicación tiene dos clases persistentes con el "
-"mismo nombre, y no quieres especificar el nombre completamenta cualificado "
-"(paquete) en las consultas Hibernate. Las clases pueden ser \"importadas\" "
-"explícitamente, en vez de confiar en <literal>auto-import=\"true\"</"
-"literal>. Puedes incluso importar clases e interfaces que no estén "
-"mapeadas explícitamente."
+"Si su aplicación tiene dos clases persistentes con el mismo nombre y no "
+"quiere especificar el nombre del paquete completamenta calificado en las "
+"consultas Hibernate, las clases pueden ser \"importadas\" explÃcitamente, en "
+"lugar de depender de <literal>auto-import=\"true\"</literal>. Incluso puede "
+"importar clases e interfaces que no estén mapeadas explÃcitamente:"
-#. Tag: programlisting
-#: basic_mapping.xml:2403
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2413
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
msgstr ""
-"<literal>class</literal>: El nombre de clase completamente cualificado de "
-"cualquier clase Java."
+"<literal>class</literal>: El nombre de clase completamente calificado de "
+"cualquier clase Java. "
#. Tag: para
-#: basic_mapping.xml:2418
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
-"<literal>rename</literal> (opcional - por defecto al nombre de clase sin "
-"cualificar): Un nombre que será usado en el leguaje de consulta."
+"<literal>rename</literal> (opcional - por defecto es el nombre de clase sin "
+"calificar): Un nombre que se puede utilizar en el lenguaje de consulta."
#. Tag: title
-#: basic_mapping.xml:2429
-#, fuzzy, no-c-format
-msgid "<title>Any</title>"
-msgstr "<title>any</title>"
+#, no-c-format
+msgid "Any"
+msgstr "Any"
#. Tag: para
-#: basic_mapping.xml:2431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
"literal> mapping element defines a polymorphic association to classes from "
@@ -4976,20 +3411,17 @@
"mapping polymorphic associations and you should use this only in special "
"cases. For example, for audit logs, user session data, etc."
msgstr ""
-"Hay un tipo más de mapeo de propiedad. El elemento de mapeo "
-"<literal><any></literal> define una asociacián polimó"
-"rfica a clases desde múltiples tablas. Este tipo de mapeo siempre "
-"requiere más de una columna. La primera columna contiene el tipo de "
-"la entidad asociada. Las columnas restantes contienen el identificador. Es "
-"imposible especificar una restricción de clave foránea para "
-"este tipo de asociación, por lo que esto ciertamente no está "
-"concebido como la forma habitual de mapear asociaciones (polimó"
-"rficas). Sólo debes usar esto en casos muy especiales (por ejemplo, "
-"trazas de auditoréa, datos de sesión de usuario, etc)."
+"Hay un tipo más de mapeo de propiedad. El elemento de mapeo <literal><"
+"any></literal> define una asociación polimórfica a clases desde múltiples "
+"tablas. Este tipo de mapeo necesita más de una columna. La primera columna "
+"contiene el tipo de la entidad asociada. Las columnas restantes contienen el "
+"identificador. Es imposible especificar una restricción de clave foránea "
+"para este tipo de asociación. Esta no es la manera usual de mapear "
+"asociaciones polimórficas y sólamente debe usar esto en casos especiales. "
+"Por ejemplo, para registros de auditorÃa, datos de sesión de usuario, etc."
#. Tag: para
-#: basic_mapping.xml:2441
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
"a custom type that maps database column values to persistent classes that "
@@ -4997,138 +3429,74 @@
"literal>. You must specify the mapping from values of the meta-type to class "
"names."
msgstr ""
-"El atributo <literal>meta-type</literal> permite a la aplicación "
-"especificar un tipo personalizado que mapee columnas de base de datos a "
-"clases persistentes que tengan propiedades identificadoras del tipo "
-"especificado por <literal>id-type</literal>. Debes especificar el mapeo de "
-"valores del meta-type a nombres de clase."
+"El atributo <literal>meta-type</literal> le permite especificar a la "
+"aplicación un tipo personalizado que mapea los valores de columnas de la "
+"base de datos a clases persistentes que tengan propiedades identificadoras "
+"del tipo especificado por <literal>id-type</literal>. Tiene que especificar "
+"el mapeo de valores del meta-tipo a nombres de clase."
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
msgstr "<literal>name</literal>: el nombre de la propiedad."
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
msgstr "<literal>id-type</literal>: el tipo del identificador."
#. Tag: para
-#: basic_mapping.xml:2472
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
"literal>): any type that is allowed for a discriminator mapping."
msgstr ""
-"<literal>meta-type</literal> (opcional - por defecto a <literal>string</"
-"literal>): Cualquier tipo que sea permitido para un mapeo de discriminador."
+"<literal>meta-type</literal> (opcional - por defecto es <literal>string</"
+"literal>): Cualquier tipo que se permita para un mapeo discriminador."
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
"the cascade style."
msgstr ""
-"<literal>cascade</literal> (opcional- por defecto a <literal>none</"
+"<literal>cascade</literal> (opcional- por defecto es <literal>none</"
"literal>): el estilo de cascada."
#. Tag: para
-#: basic_mapping.xml:2490
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property either do or do not "
"require acquisition of the optimistic lock. It defines whether a version "
"increment should occur if this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</"
+"<literal>optimistic-lock</literal> (opcional - por defecto es <literal>true</"
"literal>): Especifica si las actualizaciones de esta propiedad requieren o "
-"no de la adquisición del bloqueo optimista. En otras palabras, "
-"determina si debe ocurrir un incremento de versión cuando esta "
-"propiedad está desactualizada."
+"no de la adquisición del bloqueo optimista. Define si debe ocurrir un "
+"incremento de versión cuando esta propiedad está desactualizada."
#. Tag: title
-#: basic_mapping.xml:2505
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate types"
-msgstr "Tipos de Hibernate"
+msgstr "Tipos de Hibernate "
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr "Entidades y Valores"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
"classified into two groups:"
msgstr ""
+"En relación con el servicio de persistencia, los objetos a nivel de lenguaje "
+"Java se clasifican en dos grupos:"
#. Tag: para
-#: basic_mapping.xml:2515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
"holding references to the entity. Contrast this with the usual Java model, "
@@ -5140,20 +3508,19 @@
"large systems. Entities support circular and shared references. They can "
"also be versioned."
msgstr ""
-"Una <emphasis>entidad</emphasis> existe independientemente de cualquier "
-"otros objetos que referencien a la entidad. Contrasta esto con el model "
-"habitual de Java donde un objeto desreferenciado es recolectado como basura. "
-"Las entidades deben ser salvadas y borradas explícitamente (excepto "
-"que las grabaciones y borrados puedan ser <emphasis>tratados en cascada</"
-"emphasis> desde una entidad padre a sus hijos). Esto es diferente al modelo "
-"de persistencia de objetos por alcance - y se corresponde más de "
-"cerca a cómo los objetos de aplicación son usados "
-"habitualmente en grandes sistemas. Las entidades soportan referencias "
-"circulares y compartidas, que tambié pueden ser versionadas."
+"Una <emphasis>entidad</emphasis> existe independientemente de cualquier otro "
+"objeto que referencie a la entidad. Compare esto con el modelo habitual de "
+"Java en donde un objeto no referenciado es recolectado como basura. Las "
+"entidades deben ser guardadas y borradas explÃcitamente. Sin embargo, los "
+"grabados y borrados se pueden <emphasis>tratar en cascada</emphasis> desde "
+"una entidad padre a sus hijos. Esto es diferente al modelo de persistencia "
+"de objetos por alcance (ODMG) y corresponde más a cómo se utilizan "
+"habitualmente los objetos de aplicación en sistemas grandes. Las entidades "
+"soportan referencias circulares y compartidas, que también pueden ser "
+"versionadas."
#. Tag: para
-#: basic_mapping.xml:2526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value</emphasis> types. Values are primitives: "
@@ -5165,20 +3532,18 @@
"no independent identity, so they cannot be shared by two entities or "
"collections."
msgstr ""
-"El estado persistente de una entidad consiste en referencias a otras "
+"El estado persistente de una entidad consta de las referencias a otras "
"entidades e instancias de tipo <emphasis>valor</emphasis>. Los valores son "
-"primitivos, colecciones (no lo que está dentro de la colecció"
-"n), componentes y ciertos objetos inmutables. A diferencia de las entidades, "
-"los valores (en particular las colecciones y los componentes) <emphasis>son</"
-"emphasis> hechos persitentes y borrados por alcance. Como los objetos valor "
-"(y primitivos) son persistidos y borrados junto a sus entidades "
-"contenedoras, no pueden ser versionados independientemente. Los valores no "
-"tienen identidad independiente, por los que no pueden ser compartidos por "
-"dos entidades o colleciones."
+"primitivos: colecciones (no lo que está dentro de la colección), componentes "
+"y ciertos objetos inmutables. A diferencia de las entidades, los valores en "
+"particular las colecciones y los componentes, <emphasis>son</emphasis> "
+"persistidos y borrados por alcance. Como los objetos valor y primitivos son "
+"persistidos y borrados junto con sus entidades contenedoras, no se pueden "
+"versionar independientemente. Los valores no tienen identidad independiente, "
+"por lo que dos entidades o colleciones no los pueden compartir."
#. Tag: para
-#: basic_mapping.xml:2537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
"entities. We will continue to do that. Not all user-defined classes with a "
@@ -5192,32 +3557,28 @@
"single instance of that class, while composition or aggregation usually "
"translates to a value type."
msgstr ""
-"Hasta ahora, hemos estado usando el término \"clase persistente\" "
-"para referirnos a entidades. Continuaremos haciéndolo. Hablando "
-"estrictamente, sin embargo, no todas la clases con estado persistente "
-"definidas por el usuario son entidades. Un <emphasis>componente</emphasis> "
-"es una clase definida por el usuario con semántica de valor. Una "
-"propiedad Java de tipo <literal>java.lang.String</literal> también "
-"tiene semántica de valor. Dada esta definición, podemos decir "
-"que todos los tipo (clases) provistos por el JDK tienen una semántica "
-"de tipo valor en Java, mientras que los tipos definidos por el usuario "
-"pueden ser mapeados con semántica de tipo valor o de entidad. La "
-"desición corre por cuenta del desarrollador de la aplicación. "
-"Un buen consejo para una clase entidad en un modelo de dominio son las "
-"referencias compartidas a una sola instancia de esa clase, mientras que la "
-"composición o agregación usualmente se traducen a un tipo de "
-"valor."
+"Hasta ahora, hemos estado utilizando el término \"clase persistente\" para "
+"referirnos a entidades. Continuaremos haciéndolo asÃ. Sin embargo, no todas "
+"la clases con estado persistente definidas por el usuario son entidades. Un "
+"<emphasis>componente</emphasis> es una clase definida por el usuario con "
+"semántica de valor. Una propiedad Java de tipo <literal>java.lang.String</"
+"literal> también tiene semántica de valor. Dada esta definición, podemos "
+"decir que todos los tipo (clases) provistos por el JDK tienen una semántica "
+"de tipo valor en Java, mientras que los tipos definidos por el usuario se "
+"pueden mapear con semántica de tipo valor o de entidad. La desición corre "
+"por cuenta del desarrollador de la aplicación. Una clase entidad en un "
+"modelo de dominio son las referencias compartidas a una sola instancia de "
+"esa clase, mientras que la composición o agregación usualmente se traducen a "
+"un tipo de valor."
#. Tag: para
-#: basic_mapping.xml:2551
-#, fuzzy, no-c-format
+#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr ""
-"Volveremos a visitar ambos conceptos a lo largo de la documentación."
+"Volveremos a revisar ambos conceptos a lo largo de este manual de referencia."
#. Tag: para
-#: basic_mapping.xml:2555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
"of entities and value types, to the SQL/database type system. The bridge "
@@ -5230,57 +3591,51 @@
"for standard JDK value types out of the box. You can write your own mapping "
"types and implement your own custom conversion strategies."
msgstr ""
-"EL desafío es mapear el sistema de tipos de Java (y la "
-"definición de entidades y tipos de valor de los desarrolladores) al "
-"sistema de tipos de SQL/base de datos. EL puente entre ambos sistemas es "
-"provisto por Hibernate: para las entidades usamos <literal><class></"
-"literal>, <literal><subclass></literal>, etc. Para los tipos de valor "
-"usamos <literal><property></literal>, <literal><component></"
-"literal>, etc, usualmente con un atributo <literal>type</literal>. El valor "
-"de este atributo es el nombre de un <emphasis>tipo de mapeo</emphasis> de "
-"Hibernate. Hibernate provee de fábrica muchos mapeos (para tipos de "
-"valores del JDK estándar). Puedes escribir tus propios mapeos de "
-"tipo, así como implementar tus estrategias de conversión "
-"personalizadas, como veremos luego."
+"EL desafÃo es mapear el sistema de tipos de Java ( la definición de "
+"entidades y tipos de valor de los desarrolladores al sistema de tipos de SQL/"
+"la base de datos. El puente entre ambos sistemas lo brinda Hibernate. Para "
+"las entidades utilizamos <literal><class></literal>, <literal><"
+"subclass></literal>, etc. Para los tipos de valor utilizamos <literal><"
+"property></literal>, <literal><component></literal>, etc, "
+"usualmente con un atributo <literal>type</literal>. El valor de este "
+"atributo es el nombre de un <emphasis>tipo de mapeo</emphasis> de Hibernate. "
+"Hibernate proporciona un rango de mapeos para tipos de valores del JDK "
+"estándar. Puede escribir sus propios mapeos de tipo e implementar sus "
+"estrategias de conversión personalizadas."
#. Tag: para
-#: basic_mapping.xml:2568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
msgstr ""
-"Todos los tipos prefabricados de Hibernate soportan semántica de "
-"nulos excepto las colecciones."
+"Todos los tipos incorporados de Hibernate soportan la semántica de nulos, a "
+"excepción de las colecciones."
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
-msgstr "Tipos de valores básicos"
+msgstr "Tipos de valores básicos"
#. Tag: para
-#: basic_mapping.xml:2577
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
"categorized into the following:"
msgstr ""
-"Los <emphasis>tipos de mapeo básicos</emphasis> prefabricados pueden "
-"ser categorizado a grandes rasgos en:"
+"Los <emphasis>tipos de mapeo básicos</emphasis> incorporados se pueden "
+"categorizar asÃ:"
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -5288,19 +3643,17 @@
"<literal>true_false</literal> are all alternative encodings for a Java "
"<literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-"Mapeos de tipos primitivos de Java o clases de envoltura a la tipos de "
-"columna SQL (especícifica del vendedor). <literal>boolean, yes_no</"
-"literal> y <literal>true_false</literal> son codificaciones alternativas a "
+"Mapeos de tipos de primitivos de Java o de clases de envoltura a los tipos "
+"de columna SQL (especÃfica del vendedor). <literal>boolean, yes_no</literal> "
+"y <literal>true_false</literal> son codificaciones alternativas a "
"<literal>boolean</literal> de Java o <literal>java.lang.Boolean</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2594
+#. Tag: term
#, no-c-format
-msgid "string"
-msgstr "string"
+msgid "<literal>string</literal>"
+msgstr "<literal>string</literal>"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
@@ -5309,14 +3662,12 @@
"Un mapeo del tipo <literal>java.lang.String</literal> a <literal>VARCHAR</"
"literal> (u Oracle <literal>VAARCHAR2</literal>)."
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
-msgstr "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
+msgstr "<literal>date, time, timestamp</literal>"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
@@ -5327,31 +3678,26 @@
"tipos SQL <literal>DATE</literal>, <literal>TIME</literal> y "
"<literal>TIMESTAMP</literal> (o equivalente)."
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
-msgstr "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
"<literal>TIMESTAMP</literal> and <literal>DATE</literal> (or equivalent)."
msgstr ""
-"Mapeos de tipo desde <literal>java.util.Date</literal> y sus subclases a "
-"tipos SQL <literal>TIMESTAMP</literal> y <literal>DATE</literal> (o "
-"equivalente)."
+"Mapeos de tipo desde <literal>java.util.Date</literal> y tipos SQL "
+"<literal>TIMESTAMP</literal> y <literal>DATE</literal> (o equivalente)."
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
-msgstr "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
+msgstr "<literal>big_decimal, big_integer</literal>"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
@@ -5362,14 +3708,12 @@
"math.BigInteger</literal> a <literal>NUMERIC</literal> (o <literal>NUMBER</"
"literal> de Oracle)."
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
-msgstr "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
+msgstr "<literal>locale, timezone, currency</literal>"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -5383,17 +3727,15 @@
"TimeZone</literal> y <literal>java.util.Currency</literal> a "
"<literal>VARCHAR</literal> (o <literal>VARCHAR2</literal> de Oracle). Las "
"instancias de <literal>Locale</literal> y <literal>Currency</literal> son "
-"mapeadas a sus códigos ISO. Las instancias de <literal>TimeZone</"
-"literal> son mapeadas a sus <literal>ID</literal>."
+"mapeadas a sus códigos ISO. Las instancias de <literal>TimeZone</literal> "
+"son mapeadas a sus <literal>ID</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2647
-#, fuzzy, no-c-format
-msgid "class"
-msgstr "subclass"
+#. Tag: term
+#, no-c-format
+msgid "<literal>class</literal>"
+msgstr "<literal>class</literal>"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
@@ -5402,64 +3744,56 @@
msgstr ""
"Un mapeo de tipo <literal>java.lang.Class</literal> a <literal>VARCHAR</"
"literal> (o <literal>VARCHAR2</literal> de Oracle). Una <literal>Class</"
-"literal> es mapeara a su nombre completamente cualificado."
+"literal> es mapeada a su nombre completamente calificado."
-#. Tag: literal
-#: basic_mapping.xml:2657
+#. Tag: term
#, no-c-format
-msgid "binary"
-msgstr "binary"
+msgid "<literal>binary</literal>"
+msgstr "<literal>binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
msgstr "Mapea arreglos de bytes a un tipo binario SQL apropiado."
-#. Tag: literal
-#: basic_mapping.xml:2665
+#. Tag: term
#, no-c-format
-msgid "text"
-msgstr "text"
+msgid "<literal>text</literal>"
+msgstr "<literal>text</literal>"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
"literal> type."
msgstr ""
-"Mapea cadenas largas Java al tipo SQL <literal>CLOB</literal> o "
+"Mapea cadenas largas de Java al tipo SQL <literal>CLOB</literal> o "
"<literal>TEXT</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2674
+#. Tag: term
#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+msgid "<literal>serializable</literal>"
+msgstr "<literal>serializable</literal>"
#. Tag: para
-#: basic_mapping.xml:2676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
"indicate the Hibernate type <literal>serializable</literal> with the name of "
"a serializable Java class or interface that does not default to a basic type."
msgstr ""
-"Mapea tipos serializables Java a un tipo binario SQL apropiado. Puedes "
-"además indicar el tipo <literal>serializable</literal> de Hibernate "
-"con el nombre de una clase o interface serializable Java que no sea por "
-"defecto un tipo básico."
+"Mapea tipos serializables Java a un tipo binario SQL apropiado. También "
+"puede indicar el tipo <literal>serializable</literal> de Hibernate con el "
+"nombre de una clase o interfaz serializable Java que no sea por defecto un "
+"tipo básico. "
-#. Tag: literal
-#: basic_mapping.xml:2685
+#. Tag: term
#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>clob, blob</literal>"
#. Tag: para
-#: basic_mapping.xml:2687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
"<literal>java.sql.Blob</literal>. These types can be inconvenient for some "
@@ -5468,23 +3802,21 @@
msgstr ""
"Mapeos de tipo para las clases JDBC <literal>java.sql.Clob</literal> y "
"<literal>java.sql.Blob</literal>. Estos tipos pueden ser inconvenientes para "
-"algunas aplicaciones, pues el objeto blob o clob no puede ser reusado fuera "
-"de una transacción (Además, el soporte del driver suele ser "
-"malo e inconsistente)."
+"algunas aplicaciones, pues el objeto blob o clob no pueden ser reusados "
+"fuera de una transacción. Además, el soporte del controlador suele ser malo "
+"e inconsistente."
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
-"UNTRANSLATED! imm_date, imm_time, imm_timestamp, imm_calendar, "
-"imm_calendar_date, imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
"Hibernate makes certain optimizations appropriate only for immutable Java "
@@ -5494,30 +3826,28 @@
"have that change made persistent, the application must assign a new, "
"nonidentical, object to the property."
msgstr ""
-"Type mappings for what are usually considered mutable Java types, where "
-"Hibernate makes certain optimizations appropriate only for immutable Java "
-"types, and the application treats the object as immutable. For example, you "
-"should not call <literal>Date.setTime()</literal> for an instance mapped as "
-"<literal>imm_timestamp</literal>. To change the value of the property, and "
-"have that change made persistent, the application must assign a new "
-"(nonidentical) object to the property."
+"Los mapeos de tipo para lo que usualmente se considera tipos Java mutables. "
+"Aquà es donde Hibernate realiza ciertas optimizaciones apropiadas sólamente "
+"para tipos Java inmutables y la aplicación trata el objeto como inmutable. "
+"Por ejemplo, no debe llamar <literal>Date.setTime()</literal> para una "
+"instancia mapeada como <literal>imm_timestamp</literal>. Para cambiar el "
+"valor de la propiedad y hacer que ese cambio sea persistente, la aplicación "
+"tiene que asignar un objeto nuevo, no idéntico, a la propiedad."
#. Tag: para
-#: basic_mapping.xml:2716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</"
"literal>. Composite identifiers are also allowed. See below for more "
"information."
msgstr ""
-"Los identificadores únicos de entidades y collecciones pueden ser de "
-"cualquier tipo básico excepto <literal>binary</literal>, "
-"<literal>blob</literal> y <literal>clob</literal>. (Los identificadores "
-"compuestos están también permitidos, ver debajo.)"
+"Los identificadores únicos de entidades y colecciones pueden ser de "
+"cualquier tipo básico excepto <literal>binary</literal>, <literal>blob</"
+"literal> y <literal>clob</literal>. Los identificadores compuestos también "
+"están permitidos, a continuación encontrará mayor información."
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -5525,20 +3855,18 @@
"<literal>Hibernate.STRING</literal> represents the <literal>string</literal> "
"type."
msgstr ""
-"Los tipos de valor básicos tienen sus constantes <literal>Type</"
-"literal> correspondientes definidas en <literal>org.hibernate.Hibernate</"
-"literal>. Por ejemplo, <literal>Hibernate.STRING</literal> representa el "
-"tipo <literal>string</literal>."
+"Los tipos de valor básicos tienen sus constantes <literal>Type</literal> "
+"correspondientes definidas en <literal>org.hibernate.Hibernate</literal>. "
+"Por ejemplo, <literal>Hibernate.STRING</literal> representa el tipo "
+"<literal>string</literal>."
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr "Tipos de valor personalizados"
#. Tag: para
-#: basic_mapping.xml:2733
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
"example, you might want to persist properties of type <literal>java.lang."
@@ -5550,20 +3878,19 @@
"that is persisted to the columns <literal>FIRST_NAME</literal>, "
"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
-"Es relativamente fácil para los desarrolladores crear sus propios "
-"tipos de valor. Por ejemplo, podrías querer persistir propiedades del "
-"tipo <literal>java.lang.BigInteger</literal> a columnas <literal>VARCHAR</"
-"literal>. Hibernate no provee un tipo de fábrica para esto. Pero los "
-"tipos personalizados no están limitados a mapear una propiedad (o "
-"elemento de colección) a una sola columna de tabla. Así, por "
-"ejemplo, podrías tener una propiedad Java <literal>getName()</"
-"literal>/<literal>setName()</literal> de tipo <literal>java.lang.String</"
-"literal> que fuera persistida a las columnas <literal>FIRST_NAME</literal>, "
-"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
+"Es relativamente fácil para los desarrolladores crear sus propios tipos de "
+"valor. Por ejemplo, puede que quiera persistir propiedades del tipo "
+"<literal>java.lang.BigInteger</literal> a columnas <literal>VARCHAR</"
+"literal>. Hibernate no provee un tipo incorporado para esto. Los tipos "
+"personalizados no están limitados a mapear una propiedad o elemento de "
+"colección a una sola columna de tabla. AsÃ, por ejemplo, podrÃa tener una "
+"propiedad Java <literal>getName()</literal>/<literal>setName()</literal> de "
+"tipo <literal>java.lang.String</literal> que es persistida a las columnas "
+"<literal>FIRST_NAME</literal>, <literal>INITIAL</literal>, <literal>SURNAME</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:2744
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and "
@@ -5571,40 +3898,22 @@
"<literal>org.hibernate.test.DoubleStringType</literal> to see the kind of "
"things that are possible."
msgstr ""
-"Para implementar un tipo personalizado, implementa bien <literal>org."
-"hibernate.UserType</literal> o <literal>org.hibernate.CompositeUserType</"
-"literal> y declara las propiedades usando el nombre de clase completamente "
-"cualificado del tipo. Revisa <literal>org.hibernate.test.DoubleStringType</"
-"literal> para ver qué tipo de cosas son posibles."
+"Para implementar un tipo personalizado, implemente <literal>org.hibernate."
+"UserType</literal> o <literal>org.hibernate.CompositeUserType</literal> y "
+"declare las propiedades utilizando el nombre de clase completamente "
+"calificado del tipo. Revise <literal>org.hibernate.test.DoubleStringType</"
+"literal> para ver qué clases de cosas son posibles. "
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
"to multiple columns."
msgstr ""
-"Observa el uso de etiquetas <literal><column></literal> para mapear "
-"una propiedad a múltiples columnas."
+"Observe el uso de etiquetas <literal><column></literal> para mapear "
+"una propiedad a múltiples columnas."
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -5614,12 +3923,11 @@
msgstr ""
"Las interfaces <literal>CompositeUserType</literal>, "
"<literal>EnhancedUserType</literal>, <literal>UserCollectionType</literal>, "
-"y <literal>UserVersionType</literal> proveen soporte a usos más "
+"y <literal>UserVersionType</literal> brindan soporte para usos más "
"especializados."
#. Tag: para
-#: basic_mapping.xml:2765
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
"mapping file. To do this, your <literal>UserType</literal> must implement "
@@ -5627,43 +3935,26 @@
"To supply parameters to your custom type, you can use the <literal><"
"type></literal> element in your mapping files."
msgstr ""
-"Puedes incluso proveer de parámetros a un <literal>UserType</literal> "
-"en el fichero de mapeo. Para hacer esto, tu <literal>UserType</literal> debe "
-"implementar la interface <literal>org.hibernate.usertype.ParameterizedType</"
-"literal>. Para proveer de parámetros a tu tipo personalizado, puedes "
-"usar el elemento <literal><type></literal> en tus ficheros de mapeo."
+"Incluso usted puede proporcionar parámetros a un <literal>UserType</literal> "
+"en el archivo de mapeo. Para hacer esto, su <literal>UserType</literal> "
+"tiene que implementar la interfaz <literal>org.hibernate.usertype."
+"ParameterizedType</literal>. Para brindar parámetros a su tipo "
+"personalizado, puede utilizar el elemento <literal><type></literal> en "
+"sus archivos de mapeo. "
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
"named <literal>default</literal> from the <literal>Properties</literal> "
"object passed to it."
msgstr ""
-"Ahora el <literal>UserType</literal> puede recuperar el valor del pará"
-"metro llamado <literal>default</literal> del objeto <literal>Properties</"
+"Ahora el <literal>UserType</literal> puede recuperar el valor del parámetro "
+"denominado <literal>default</literal> del objeto <literal>Properties</"
"literal> que se le pasa."
#. Tag: para
-#: basic_mapping.xml:2780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
"define a shorter name for it. You can do this using the <literal><"
@@ -5671,46 +3962,24 @@
"can also contain a list of default parameter values if the type is "
"parameterized."
msgstr ""
-"Si usas cierto <literal>UserType</literal> muy frecuentemente, puede ser "
-"útil definir un nombre corto para é. Puedes hacer esto usando "
+"Si utiliza cierto <literal>UserType</literal> muy frecuentemente, puede ser "
+"útil el definir un nombre más corto para este. Puede hacer esto utilizando "
"el elemento <literal><typedef></literal>. Los typedefs asignan un "
-"nombre a un tipo personalizado, y pueden también contener una lista "
-"de valores por defecto de parámetros si el tipo fuese parametrizado."
+"nombre a un tipo personalizado y también pueden contener una lista de "
+"valores predeterminados de parámetros si el tipo se encuentra parametrizado."
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
"case-by-case basis by using type parameters on the property mapping."
msgstr ""
-"también es posible sobrescribir los parámetros provistos en un "
-"typedef sobre una base caso por caso usando parámetros de tipo en el "
-"mapeo de la propiedad."
+"También es posible sobrescribir los parámetros provistos en un typedef sobre "
+"una base de caso por caso utilizando parámetros de tipo en el mapeo de la "
+"propiedad."
#. Tag: para
-#: basic_mapping.xml:2796
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
"components means you will rarely need to use a custom type, it is considered "
@@ -5721,26 +3990,24 @@
"is abstraction. With a custom type, your mapping documents would be "
"protected against changes to the way monetary values are represented."
msgstr ""
-"Aunque el rico espectro de tipos prefabricados y soporte de componentes de "
-"Hibernate significa que raramente <emphasis>necesites</emphasis> usar un "
-"tipo personalizado; sin embargo se considera una buena forma usar tipos "
-"personalizados para clases (no-entidades) que aparezcan frecuentemente en tu "
-"aplicación. Por ejemplo, una clase <literal>MonetaryAmount</literal> "
-"es una buena candidata para un <literal>CompositeUserType</literal>, incluso "
-"cuando puede ser facilmente mapeada como un componente. Un motivo para esto "
-"es la abstracción. Con un tipo personalizado, tus documentos de mapeo "
-"estará impermeabilizados contra posibles cambios futuros en la forma "
-"de representar valores monetarios."
+"Aunque el amplio espectro de tipos incorporados y de soporte para los "
+"componentes de Hibernate significa que necesitará usar un tipo personalizado "
+"muy raramente, se considera como una buena práctica el utilizar tipos "
+"personalizados para clases no-entidades que aparezcan frecuentemente en su "
+"aplicación. Por ejemplo, una clase <literal>MonetaryAmount</literal> es una "
+"buena candidata para un <literal>CompositeUserType</literal>, incluso cuando "
+"puede ser fácilmente mapeada como un componente. Un razón para esto es la "
+"abstracción. Con un tipo personalizado, sus documentos de mapeo estarán "
+"protegidos contra posibles cambios futuros en la forma de representar "
+"valores monetarios."
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
-msgstr "Mapeando una clase más de una vez"
+msgstr "Mapeo de una clase más de una vez"
#. Tag: para
-#: basic_mapping.xml:2813
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
"class. In this case, you must specify an <emphasis>entity name</emphasis> to "
@@ -5749,73 +4016,30 @@
"entity name when working with persistent objects, when writing queries, or "
"when mapping associations to the named entity."
msgstr ""
-"Es posible proveer más de un mapeo para una clase persistente en "
-"particular. En este caso debes especificar un <emphasis>nombre de entidad</"
-"emphasis> para desambiguar entr las instancias de las dos entidades "
-"mapeadas. (Por defectom, el nombre de la entidad es el mismo que el nombre "
-"de la clase.) Hibernate te deja especificar el nombre de entidad al trabajar "
-"con objetos persistentes, al escribir consultas, o al mapear asociaciones a "
-"la entidad mencionada."
+"Es posible proporcionar más de un mapeo para una clase persistente en "
+"particular. En este caso usted debe especificar un <emphasis>nombre de "
+"entidad</emphasis> para aclarar entre las instancias de las dos entidades "
+"mapeadas. Por defecto, el nombre de la entidad es el mismo que el nombre de "
+"la clase. Hibernate le deja especificar el nombre de entidad al trabajar con "
+"objetos persistentes, al escribir consultas, o al mapear asociaciones a la "
+"entidad mencionada."
-#. Tag: programlisting
-#: basic_mapping.xml:2821
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\" \n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\" \n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\" \n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\" \n"
-" column=\"currentContractId\" \n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2823
-#, fuzzy, no-c-format
-msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
"of <literal>class</literal>."
msgstr ""
-"Observa cómo las asociaciones ahora se especifican usando "
-"<literal>entity-name</literal> en vez de <literal>class</literal>."
+"Las asociaciones ahora se especifican utilizando <literal>entity-name</"
+"literal> en lugar de <literal>class</literal>."
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
-msgstr "identificadores SQL encomillados"
+msgstr "Identificadores SQL en comillas"
#. Tag: para
-#: basic_mapping.xml:2832
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
"enclosing the table or column name in backticks in the mapping document. "
@@ -5823,55 +4047,33 @@
"literal>. This is usually double quotes, but the SQL Server uses brackets "
"and MySQL uses backticks."
msgstr ""
-"Puedes forzar a Hibernate a encomillar un identificador en el SQL generado "
-"encerrando el nombre de tabla o columna entre backticks en el documento de "
-"mapeo. Hibernate usará el estilo de encomillado para el "
-"<literal>Dialect</literal> SQL (usualmente comillas dobles, excepto "
-"corchetes para SQL Server y backsticks para MySQL)."
+"Puede forzar a Hibernate a que utilice comillas con un identificador en el "
+"SQL generado encerrando el nombre de tabla o de columna entre comillas "
+"sencillas en el documento de mapeo. Hibernate utilizará el estilo de "
+"comillas para el <literal>Dialect</literal> SQL. Usualmente comillas dobles, "
+"a excepción de corchetes para SQL Server y comillas sencillas para MySQL."
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
msgstr "Alternativas de metadatos"
#. Tag: para
-#: basic_mapping.xml:2847
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
"mapping metadata in Hibernate."
msgstr ""
-"XML no es para todos, asá que hay algunas formas alternativas de "
+"XML no es para todo el mundo, asà que hay algunas formas opcionales de "
"definir metadatos de mapeo O/R en Hibernate."
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
-msgstr "Usando marcado de XDoclet"
+msgstr "Utilización de marcado de XDoclet"
#. Tag: para
-#: basic_mapping.xml:2854
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover "
@@ -5879,244 +4081,26 @@
"XDoclet. However, we include the following example of the <literal>Cat</"
"literal> class with XDoclet mappings:"
msgstr ""
-"Muchos usuarios de Hibernate prefieren embeber la información de "
-"mapeo directamente en el código fuente usando las <literal>@hibernate."
-"etiquetas</literal> XDoclet. No cubriremos este enfoque en este documento, "
-"pues estrictamente es considerado parte de XDoclet. Sin embargo, "
-"incluímos el siguiente ejemplo de la clase <literal>Cat</literal> con "
-"mapeos XDoclet."
+"Muchos usuarios de Hibernate prefieren incluir la información de mapeo "
+"directamente en el código fuente usando las <literal>@hibernate.tags</"
+"literal> XDoclet. No abordaremos este enfoque en este manual de referencia "
+"ya que se considera como parte de XDoclet. Sin embargo, incluÃmos el "
+"siguiente ejemplo de la clase <literal>Cat</literal> con los mapeos XDoclet:"
-#. Tag: programlisting
-#: basic_mapping.xml:2861
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-
#. Tag: para
-#: basic_mapping.xml:2863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr ""
-"Para más ejemplos de XDoclet e Hibernate ver en el sitio web de "
-"Hibernate."
+"Para obtener más ejemplos de XDoclet e Hibernate consulte el sitio web de "
+"Hibernate. "
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
-msgstr "Usando anotaciones JDK 5.0"
+msgstr "Utlización de Anotaciones JDK 5.0"
#. Tag: para
-#: basic_mapping.xml:2872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
"type-safe and checked at compile time. This mechanism is more powerful than "
@@ -6129,98 +4113,43 @@
"<emphasis>Hibernate Annotations</emphasis> package as a separate download. "
"Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
msgstr ""
-"El JDK 5.0 introdujo anotaciones del estilo XDoclet a nivel del lenguaje, "
-"con chequeo seguro de tipos en tiempo de compilación. Este mecanismo "
-"es más potente y que las anotaciones XDoclet, y mejor soportado por "
-"herramientas e IDEs. IntelliJ IDEA, por ejemplo, soporta auto-"
-"compleción y resaltado de sintaxis de anotaciones JDK 5.0. La nueva "
-"revisión de la especificación de EJB (JSR-220) usa anotaciones "
-"JDK 5.0 como el mecanismo primario de metadatos para beans de entidad. "
-"Hibernate3 implementa el <literal>EntityManager</literal> del JSR-220 (la "
-"API de persistencia), y el soporte para metadatos de mapeo está "
-"disponible vía el paquete <emphasis>Hibernate Annotations</emphasis>, "
-"como una descarga por separado. Tanto metadatos de EJB3 (JSR-220) como de "
-"Hibernate3 están soportados."
+"JDK 5.0 introdujo anotaciones del estilo XDoclet a nivel del lenguaje con "
+"chequeo seguro de tipos en tiempo de compilación. Este mecanismo es más "
+"potente que las anotaciones XDoclet y es mejor soportado por herramientas e "
+"IDEs. IntelliJ IDEA, por ejemplo, soporta auto-completación además de "
+"resalte de sintaxis de las anotaciones JDK 5.0. La nueva revisión de la "
+"especificación de EJB (JSR-220) utiliza anotaciones JDK 5.0 como el "
+"mecanismo principal de metadatos para beans de entidad. Hibernate3 "
+"implementa el <literal>EntityManager</literal> del JSR-220 (la API de "
+"persistencia). El soporte para metadatos de mapeo está disponible por medio "
+"del paquete <emphasis>Anotaciones de Hibernate</emphasis>, como una descarga "
+"separada. Tanto los metadatos de EJB3 (JSR-220) como de Hibernate3 se "
+"encuentran soportados."
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
msgstr ""
"Este es un ejemplo de una clase POJO anotada como un bean de entidad EJB:"
-#. Tag: programlisting
-#: basic_mapping.xml:2887
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-msgstr ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-"\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2891
-#, fuzzy, no-c-format
-msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
"development. Please refer to the Hibernate Annotations module for more "
"details."
msgstr ""
-"Ten en cuenta que el soporte a anotaciones JDK 5.0 (y JSR-220) es "
-"todavía un trabajo en progreso y no completado. Por favor, para "
-"más detalles refiérete al modulo de Anotaciones de Hibernate."
+"El soporte para las anotaciones JDK 5.0 (y JSR-220) todavÃa se encuentra en "
+"progreso. Para obtener más información consulte al módulo de anotaciones de "
+"Hibernate."
#. Tag: title
-#: basic_mapping.xml:2901
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Generated properties"
-msgstr "UNTRANSLATED! Generated Properties"
+msgstr "Propiedades generadas"
#. Tag: para
-#: basic_mapping.xml:2902
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh</"
@@ -6230,17 +4159,16 @@
"an SQL INSERT or UPDATE for an entity that has defined generated properties, "
"it immediately issues a select afterwards to retrieve the generated values."
msgstr ""
-"Generated properties are properties which have their values generated by the "
-"database. Typically, Hibernate applications needed to <literal>refresh</"
-"literal> objects which contain any properties for which the database was "
-"generating values. Marking properties as generated, however, lets the "
-"application delegate this responsibility to Hibernate. Essentially, whenever "
-"Hibernate issues an SQL INSERT or UPDATE for an entity which has defined "
-"generated properties, it immediately issues a select afterwards to retrieve "
-"the generated values."
+"Las propiedades generadas son propiedades cuyos valores son generados por la "
+"base de datos. Usualmente, las aplicaciones de Hibernate necesitaban "
+"<literal>refrescar</literal> los objetos que contenian cualquier propiedad "
+"para la cual la base de datos generará valores. Sin embargo, el marcar "
+"propiedades como generadas deja que la aplicación delegue esta "
+"responsabilidad a Hibernate. Cuando Hibernate emite un INSERT or UPDATE SQL "
+"para una entidad la cual ha definido propiedades generadas, inmediatamente "
+"emite un select para recuperar los valores generados."
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -6249,24 +4177,21 @@
"and <link linkend=\"mapping-declaration-property\">simple properties</link>, "
"can be marked as generated."
msgstr ""
-"Properties marked as generated must additionally be non-insertable and non-"
-"updateable. Only <link linkend=\"mapping-declaration-version\">versions</"
-"link>, <link linkend=\"mapping-declaration-timestamp\">timestamps</link>, "
-"and <link linkend=\"mapping-declaration-property\">simple properties</link> "
-"can be marked as generated."
+"Las propiedades marcadas como generadas tienen que ser además no insertables "
+"y no actualizables. Sólamente las <xref linkend=\"mapping-declaration-version"
+"\" />, <xref linkend=\"mapping-declaration-timestamp\" /> y <xref linkend="
+"\"mapping-declaration-property\" /> se pueden marcar como generadas."
#. Tag: para
-#: basic_mapping.xml:2918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
"generated within the database."
msgstr ""
-"<literal>never</literal> (the default) - means that the given property value "
-"is not generated within the database."
+"<literal>never</literal> (por defecto): el valor dado de la propiedad no es "
+"generado dentro de la base de datos."
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -6276,32 +4201,73 @@
"\">timestamp</link> properties can be marked as generated, this option is "
"not available."
msgstr ""
-"<literal>insert</literal> - states that the given property value is "
-"generated on insert, but is not regenerated on subsequent updates. Things "
-"like created-date would fall into this category. Note that even thought "
-"<link linkend=\"mapping-declaration-version\">version</link> and <link "
-"linkend=\"mapping-declaration-timestamp\">timestamp</link> properties can be "
-"marked as generated, this option is not available there..."
+"<literal>insert</literal>: el valor dado de la propiedad es generado en "
+"insert, pero no es regenerado en actualizaciones posteriores. Las "
+"propiedades como fecha-creada (created-date) se encuentran dentro de esta "
+"categorÃa. Aunque las propiedades <xref linkend=\"mapping-declaration-version"
+"\" /> y <xref linkend=\"mapping-declaration-timestamp\" /> se pueden marcar "
+"como generadas, esta opción no se encuentra disponible."
#. Tag: para
-#: basic_mapping.xml:2930
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
"and on update."
msgstr ""
-"<literal>always</literal> - states that the property value is generated both "
-"on insert and on update."
+"<literal>always</literal>: el valor de la propiedad es generado tanto en "
+"insert como en update."
#. Tag: title
-#: basic_mapping.xml:2937
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Auxiliary database objects"
-msgstr "UNTRANSLATED! Auxiliary Database Objects"
+msgstr "Objetos de bases de datos auxiliares"
#. Tag: para
-#: basic_mapping.xml:2938
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
"database objects. In conjunction with Hibernate's schema evolution tools, "
@@ -6312,154 +4278,43 @@
"example, ALTERs, INSERTS, etc.). There are essentially two modes for "
"defining auxiliary database objects:"
msgstr ""
-"Allows CREATE and DROP of arbitrary database objects, in conjunction with "
-"Hibernate's schema evolution tools, to provide the ability to fully define a "
-"user schema within the Hibernate mapping files. Although designed "
-"specifically for creating and dropping things like triggers or stored "
-"procedures, really any SQL command that can be run via a <literal>java.sql."
-"Statement.execute()</literal> method is valid here (ALTERs, INSERTS, etc). "
-"There are essentially two modes for defining auxiliary database objects..."
+"Los objetos de bases de datos auxiliares permiten la creación - CREATE - y "
+"eliminación - DROP - de objetos de bases de datos arbitrarios. Junto con las "
+"herramientas de evolución del esquema de Hibernate, tienen la habilidad de "
+"definir de manera completa el esquema de un usuario dentro de los archivos "
+"de mapeo de Hibernate. Aunque están diseñados especÃficamente para crear y "
+"eliminar cosas como disparadores - triggers- o procedimientos almacenados, "
+"realmente cualquier comando SQL se puede ejecutar por medio de un método "
+"<literal>java.sql.Statement.execute()</literal> aquà es válido (por ejemplo, "
+"ALTERs, INSERTS, etc). Básicamente, hay dos modos para definir objetos de "
+"bases de datos auxiliares:"
#. Tag: para
-#: basic_mapping.xml:2947
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
msgstr ""
-"The first mode is to explicitly list the CREATE and DROP commands out in the "
-"mapping file:"
+"El primer modo es para numerar explÃcitamente los comandos CREATE y DROP en "
+"el archivo de mapeo: "
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</"
-"create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-" </hibernate-mapping>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2952
-#, fuzzy, no-c-format
-msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
"DROP commands. This custom class must implement the <literal>org.hibernate."
"mapping.AuxiliaryDatabaseObject</literal> interface."
msgstr ""
-"The second mode is to supply a custom class which knows how to construct the "
-"CREATE and DROP commands. This custom class must implement the <literal>org."
-"hibernate.mapping.AuxiliaryDatabaseObject</literal> interface."
+"El segundo modo es para proporcionar una clase personalizada que construye "
+"los comandos CREATE y DROP. Esta clase personalizada tiene que implementar "
+"la interfaz <literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition"
-"\"/>\n"
-" </database-object>\n"
-" </hibernate-mapping>]]>"
-
-#. Tag: para
-#: basic_mapping.xml:2958
-#, fuzzy, no-c-format
-msgid ""
"Additionally, these database objects can be optionally scoped so that they "
"only apply when certain dialects are used."
msgstr ""
-"Additionally, these database objects can be optionally scoped such that they "
-"only apply when certain dialects are used."
-
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition"
-"\"/>\n"
-" <dialect-scope name=\"org.hibernate."
-"dialect.Oracle9Dialect\"/>\n"
-" <dialect-scope name=\"org.hibernate."
-"dialect.OracleDialect\"/>\n"
-" </database-object>\n"
-" </hibernate-mapping>]]>"
-
-#~ msgid "<title>class</title>"
-#~ msgstr "<title>class</title>"
-
-#~ msgid ""
-#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
-#~ "type."
-#~ msgstr ""
-#~ "<literal>type</literal> (opcional): Un nombre que indica el tipo "
-#~ "Hibernate."
-
-#~ msgid ""
-#~ "<literal>cascade</literal> (optional): Specifies which operations should "
-#~ "be cascaded from the parent object to the associated object."
-#~ msgstr ""
-#~ "<literal>cascade</literal> (opcional): Especifica qué operaciones "
-#~ "deben ir en cascada desde el objeto padre al objeto asociado"
-
-#~ msgid ""
-#~ "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-#~ "literal>): Specifies that updates to this property do or do not require "
-#~ "acquisition of the optimistic lock. In other words, dertermines if a "
-#~ "version increment should occur when this property is dirty."
-#~ msgstr ""
-#~ "<literal>optimistic-lock</literal> (opcional - por defecto a "
-#~ "<literal>true</literal>): Especifica que las actualizaciones a esta "
-#~ "propiedad requieran o no la obtención del bloqueo optimista. En "
-#~ "otras palabras, determina si debe darse un incremento de versión "
-#~ "cuando esta propiedad esté desactualizada."
-
-#~ msgid ""
-#~ "To understand the behaviour of various Java language-level objects with "
-#~ "respect to the persistence service, we need to classify them into two "
-#~ "groups:"
-#~ msgstr ""
-#~ "Para entender el comportamiento de varios objetos a nivel de lenguaje "
-#~ "Java con respecto al servicio de persistencia, necesitamos clasificarlos "
-#~ "en dos grupos:"
-
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>class</literal>"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Adicionalmente, estos objetos de la base de datos se pueden incluir de "
+"manera opcional de forma que aplique sólamente cuando se utilicen ciertos "
+"dialectos. "
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,249 +1,140 @@
-#, fuzzy
+# translation of batch.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: batch\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 10:48+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
msgstr "Procesamiento por lotes"
#. Tag: para
-#: batch.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A naive approach to inserting 100,000 rows in the database using Hibernate "
"might look like this:"
msgstr ""
-"Un enfoque ingenuo para insertar 100.000 filas en la base de datos usando "
-"Hibernate podrÃa verse asÃ:"
+"Un enfoque ingenuo para insertar 100.000 filas en la base de datos "
+"utilizando Hibernate puede verse asÃ: "
-#. Tag: programlisting
-#: batch.xml:36
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-
-#. Tag: para
-#: batch.xml:38
-#, fuzzy, no-c-format
-msgid ""
"This would fall over with an <literal>OutOfMemoryException</literal> "
"somewhere around the 50,000th row. That is because Hibernate caches all the "
"newly inserted <literal>Customer</literal> instances in the session-level "
"cache. In this chapter we will show you how to avoid this problem."
msgstr ""
-"Esto podrÃa caer sobre una <literal>OutOfMemoryException</literal> en algún "
-"sitio cerca de la fila 50.000. Esto es porque Hibernate tiene en caché todas "
-"las instancias de <literal>Customer</literal> recién instanciadas en el "
-"caché de nivel de sesión."
+"Esto podrÃa caer dentro de una <literal>OutOfMemoryException</literal> en "
+"algún sitio cerca de la fila 50.000. Esto se debe a que Hibernate tiene en "
+"caché todas las instancias de <literal>Customer</literal> recién insertadas "
+"en el caché de nivel de sesión. En este capÃtulo le vamos a mostrar cómo "
+"evitar este problema."
#. Tag: para
-#: batch.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are undertaking batch processing you will need to enable the use of "
"JDBC batching. This is absolutely essential if you want to achieve optimal "
"performance. Set the JDBC batch size to a reasonable number (10-50, for "
"example):"
msgstr ""
-"En este capÃtulo te mostraremos cómo evitar este problema. Primero, sin "
-"embargo, si estás haciendo procesamiento por lotes (batch processing), es "
-"absolutamente crÃtico que habilites el uso de loteo JDBC, si pretendes "
-"lograr un rendimiento razonable. Establece el tamaño de lote JDBC a un "
-"número razonable (digamos 10-50):"
+"Si está realizando un procesamiento por lotes (batch processing), es "
+"necesario que habilite el uso del lote JDBC. Esto es esencial si quiere "
+"lograr un rendimiento óptimo. Establezca el tamaño de lote JDBC con un "
+"número razonable (por ejemplo, 10-50):"
-#. Tag: programlisting
-#: batch.xml:52
-#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-
#. Tag: para
-#: batch.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate disables insert batching at the JDBC level transparently if you "
"use an <literal>identity</literal> identifier generator."
msgstr ""
-"UNTRANSLATED! Note that Hibernate disables insert batching at the JDBC level "
-"transparently if you use an <literal>identiy</literal> identifier generator."
+"Hibernate desactiva el lote de inserción a nivel de JDBC de forma "
+"transparente si usted utiliza un generador de identificador "
+"<literal>identiy</literal>."
#. Tag: para
-#: batch.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also do this kind of work in a process where interaction with the "
"second-level cache is completely disabled:"
msgstr ""
-"PodrÃas además querer hacer este tipo de trabajo en un proceso donde la "
-"interacción con el caché de segundo nivel esté completamente deshabilitado:"
+"También puede realizar este tipo de trabajo en un proceso en donde la "
+"interacción con el caché de segundo nivel se encuentre completamente "
+"desactivado:"
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid ""
"However, this is not absolutely necessary, since we can explicitly set the "
"<literal>CacheMode</literal> to disable interaction with the second-level "
"cache."
msgstr ""
-"UNTRANSLATED! However, this is not absolutely necessary, since we can "
-"explicitly set the <literal>CacheMode</literal> to disable interaction with "
-"the second-level cache."
+"Sin embargo, esto no es absolutamente necesario ya que podemos establecer "
+"explÃcitamente el <literal>CacheMode</literal> para descativar la "
+"interacción con el caché de segundo nivel."
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
-msgstr "Inserciones en lote"
+msgstr "Inserciones de lotes"
#. Tag: para
-#: batch.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When making new objects persistent <literal>flush()</literal> and then "
"<literal>clear()</literal> the session regularly in order to control the "
"size of the first-level cache."
msgstr ""
-"Al hacer persistentes objetos nuevos, debes limpiar con <literal>flush()</"
-"literal> y llamar a <literal>clear()</literal> en la sesión regularmente, "
-"para controlar el tamaño del caché de primer nivel."
+"Al hacer persistentes los objetos nuevos es necesario que realice "
+"<literal>flush()</literal> y luego <literal>clear()</literal> en la sesión "
+"regularmente para controlar el tamaño del caché de primer nivel."
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
-msgstr "Actualizaciones en lote"
+msgstr "Actualizaciones de lotes update/delete en masa"
#. Tag: para
-#: batch.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For retrieving and updating data, the same ideas apply. In addition, you "
"need to use <literal>scroll()</literal> to take advantage of server-side "
"cursors for queries that return many rows of data."
msgstr ""
-"Para recuperar y actualizar datos se aplican las mismas ideas. "
-"Adicionalmente, necesitas usar <literal>scroll()</literal> para sacar "
-"ventaja de los cursores del lado del servidor en consultas que devuelvan "
-"muchas filas de datos."
+"Para recuperar y actualizar datos se aplican las mismas ideas. Además, "
+"necesita utilizar <literal>scroll()</literal> para sacar ventaja de los "
+"cursores del lado del servidor en consultas que retornen muchas filas de "
+"datos."
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
-msgstr "UNTRANSLATED! The StatelessSession interface"
+msgstr "La interfaz de Sesión sin Estado"
#. Tag: para
-#: batch.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, Hibernate provides a command-oriented API that can be used "
"for streaming data to and from the database in the form of detached objects. "
@@ -259,74 +150,35 @@
"effects. A stateless session is a lower-level abstraction that is much "
"closer to the underlying JDBC."
msgstr ""
-"Alternatively, Hibernate provides a command-oriented API that may be used "
-"for streaming data to and from the database in the form of detached objects. "
-"A <literal>StatelessSession</literal> has no persistence context associated "
-"with it and does not provide many of the higher-level life cycle semantics. "
-"In particular, a stateless session does not implement a first-level cache "
-"nor interact with any second-level or query cache. It does not implement "
-"transactional write-behind or automatic dirty checking. Operations performed "
-"using a stateless session do not ever cascade to associated instances. "
-"Collections are ignored by a stateless session. Operations performed via a "
-"stateless session bypass Hibernate's event model and interceptors. Stateless "
-"sessions are vulnerable to data aliasing effects, due to the lack of a first-"
-"level cache. A stateless session is a lower-level abstraction, much closer "
-"to the underlying JDBC."
+"Opcionalmente, Hibernate proporciona una API orientada a comandos que se "
+"puede utilizar para datos que concurren desde y hacia la base de datos en "
+"forma de objetos separados. Un <literal>StatelessSession</literal> no tiene "
+"un contexto de persistencia asociado con él y no proporciona mucha de la "
+"semántica a un alto nivel de ciclo de vida. En particular, una sesión sin "
+"estado no implementa un caché en primer nivel y tampoco interactúa con "
+"cachés de segundo nivel o de peticiones. No implementa escritura-retrasada "
+"transaccional o chequeo de desactualizaciones automático. Las operaciones "
+"realizadas con la utilización de una sesión sin estado nunca usan cascadas "
+"para las instancias asociadas. La sesión sin estado ignora las colecciones. "
+"Las operaciones llevadas a cabo por una sesión sin estado ignoran el modelo "
+"de evento y los interceptores de Hibernte. Las sesiones sin estado son "
+"vulnerables a efectos de sobrenombamiento de datos debido a la falta de un "
+"caché de primer nivel. Una sesión sin estado es una abstracción en un nivel "
+"más bajo, mucho más cerca del JDBC subyacente."
-#. Tag: programlisting
-#: batch.xml:114
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-" Transaction tx = "
-"session.beginTransaction();\n"
-" \n"
-" ScrollableResults "
-"customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode."
-"FORWARD_ONLY);\n"
-" while ( customers.next"
-"() ) {\n"
-" Customer customer = "
-"(Customer) customers.get(0);\n"
-" customer.updateStuff"
-"(...);\n"
-" session.update"
-"(customer);\n"
-" }\n"
-" \n"
-" tx.commit();\n"
-" session.close();]]>"
-
-#. Tag: para
-#: batch.xml:116
-#, fuzzy, no-c-format
-msgid ""
"In this code example, the <literal>Customer</literal> instances returned by "
"the query are immediately detached. They are never associated with any "
"persistence context."
msgstr ""
-"Note that in this code example, the <literal>Customer</literal> instances "
-"returned by the query are immediately detached. They are never associated "
-"with any persistence context."
+"En este código de ejemplo, las instancias <literal>Customer</literal> "
+"retornadas por la petición se separan inmediatamente. Nunca se asocian con "
+"ningún contexto de persistencia."
#. Tag: para
-#: batch.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>StatelessSession</literal> interface are "
@@ -336,23 +188,21 @@
"<literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>Session</literal> interface."
msgstr ""
-"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
-"operations defined by the <literal>StatelessSession</literal> interface are "
-"considered to be direct database row-level operations, which result in "
-"immediate execution of a SQL <literal>INSERT, UPDATE</literal> or "
-"<literal>DELETE</literal> respectively. Thus, they have very different "
-"semantics to the <literal>save(), saveOrUpdate()</literal> and "
-"<literal>delete()</literal> operations defined by the <literal>Session</"
-"literal> interface."
+"Las operaciones <literal>insert(), update()</literal> y <literal>delete()</"
+"literal> definidas por la interfaz <literal>StatelessSession</literal> son "
+"consideradas como operaciones directas a nivel de filas de la base de datos. "
+"Esto resulta en una ejecución inmediata de un <literal>INSERT, UPDATE</"
+"literal> SQL o <literal>DELETE</literal> respectivamente. Tienen una "
+"semántica diferente a la de las operaciones <literal>save(), saveOrUpdate()</"
+"literal> y <literal>delete()</literal> definidas por la interfaz "
+"<literal>Session</literal>. "
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
-msgstr "update/delete en masa"
+msgstr "Operaciones de estilo DML"
#. Tag: para
-#: batch.xml:137
#, fuzzy, no-c-format
msgid ""
"As already discussed, automatic and transparent object/relational mapping is "
@@ -365,122 +215,82 @@
"is performed through the Hibernate Query Language (<link linkend=\"queryhql"
"\">HQL</link>)."
msgstr ""
-"Como ya se ha discutido, el mapeo objeto/relacional automático y "
-"transparente se refiere al manejo de estado de objetos. Esto implica que el "
-"estado del objeto está disponible en memoria, por lo tanto actualizar o "
-"borrar (usando <literal>UPDATE</literal> y <literal>DELETE</literal> de SQL) "
-"datos directamente en la base de datos no afectará el estado en memoria. Sin "
-"embargo, Hibernate provee métodos para la ejecución de sentencias del estilo "
-"de <literal>UPDATE</literal> y <literal>DELETE</literal> de SQL que se "
-"realizan a través del Lenguaje de Consulta de Hibernate (Hibernate Query "
-"Language o <xref linkend=\"queryhql\"/>HQL)."
+"Como se discutió anteriormente, el mapeo objeto/relacional transparente se "
+"refiere a la administración del estado de objetos. El estado del objeto está "
+"disponible en la memoria. Por lo tanto al manipular datos directamente en la "
+"base de datos (utilizando <literal>Data Manipulation Language</literal> "
+"(DML) las declaraciones: <literal>INSERT</literal>, <literal>UPDATE</"
+"literal>, <literal>DELETE</literal>) no afectará el estado en la memoria. "
+"Sin embargo, Hibernate brinda métodos para la ejecución de declaraciones en "
+"masa DML del estilo de SQL, las cuales se realizan por medio del Lenguaje de "
+"Consulta de Hibernate (<xref linkend=\"queryhql\" />)."
#. Tag: para
-#: batch.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
"where_conditions)?</literal>."
msgstr ""
-"La pseudo-sintáxis para sentencias <literal>UPDATE</literal> y "
-"<literal>DELETE</literal> es: <literal>( UPDATE | DELETE ) FROM? ClassName "
-"(WHERE WHERE_CONDITIONS)?</literal>. Algunos puntos a tener en cuenta:"
+"La pseudo-sintáxis para las declaraciones <literal>UPDATE</literal> y "
+"<literal>DELETE</literal> es: <literal>( UPDATE | DELETE ) FROM? EntityName "
+"(WHERE where_conditions)?</literal>."
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
-msgstr ""
+msgstr "Algunos puntos a observar:"
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
msgstr "En la cláusula-from, la palabra clave FROM es opcional"
#. Tag: para
-#: batch.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can only be a single entity named in the from-clause. It can, however, "
"be aliased. If the entity name is aliased, then any property references must "
"be qualified using that alias. If the entity name is not aliased, then it is "
"illegal for any property references to be qualified."
msgstr ""
-"There can only be a single entity named in the from-clause; it can "
-"optionally be aliased. If the entity name is aliased, then any property "
-"references must be qualified using that alias; if the entity name is not "
-"aliased, then it is illegal for any property references to be qualified."
+"Sólamente puede haber una entidad mencionada en la cláusula-from y puede "
+"tener un alias. Si el nombre de la entidad tiene un alias entonces cualquier "
+"referencia a la propiedad tiene que ser calificada utilizando ese alias. Si "
+"el nombre de la entidad no tiene un alias entonces es ilegal calificar "
+"cualquier referencia de la propiedad."
#. Tag: para
-#: batch.xml:170
#, fuzzy, no-c-format
msgid ""
"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
"the where-clause, where the subqueries themselves may contain joins."
msgstr ""
-"No <link linkend=\"queryhql-joins-forms\">joins</link> (either implicit or "
-"explicit) can be specified in a bulk HQL query. Sub-queries may be used in "
-"the where-clause; the subqueries, themselves, may contain joins."
+"No se puede especificar ningún <xref linkend=\"queryhql-joins-forms\" />, ya "
+"sea implÃcito o explÃcito, en una consulta masiva de HQL. Se pueden utilizar "
+"subconsultas en la cláusula-where y en donde las subconsultas pueden "
+"contener joins en sà mismas. "
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
-msgstr "La cláusula-where es también opcional."
+msgstr "La cláusula-where también es opcional."
#. Tag: para
-#: batch.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
"<literal>Query.executeUpdate()</literal> method. The method is named for "
"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
"literal>:"
msgstr ""
-"Como un ejemplo, para ejecutar un <literal>UPDATE</literal> HQL, usa el "
-"método <literal>Query.executeUpdate()</literal>(the method is named for "
-"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
-"literal>):"
+"Como ejemplo, para ejecutar un <literal>UPDATE</literal> de HQL, utilice el "
+"método <literal>Query.executeUpdate()</literal>. El método es nombrado para "
+"aquellos familiarizados con el <literal>PreparedStatement.executeUpdate()</"
+"literal> de JDBC:"
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :"
-"oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :"
-"oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-" Transaction tx = session."
-"beginTransaction();\n"
-" \n"
-" String hqlUpdate = \"update "
-"Customer c set c.name = :newName where c.name = :oldName\";\n"
-" // or String hqlUpdate = \"update "
-"Customer set name = :newName where name = :oldName\";\n"
-" int updatedEntities = s.createQuery"
-"( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-" tx.commit();\n"
-" session.close();]]>"
-
#. Tag: para
-#: batch.xml:191
#, fuzzy, no-c-format
msgid ""
"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
@@ -493,95 +303,39 @@
"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
"keyword."
msgstr ""
-"HQL <literal>UPDATE</literal> statements, by default do not effect the <link "
-"linkend=\"mapping-declaration-version\">version</link> or the <link linkend="
-"\"mapping-declaration-timestamp\">timestamp</link> property values for the "
-"affected entities; this is in keeping with the EJB3 specification. However, "
-"you can force Hibernate to properly reset the <literal>version</literal> or "
-"<literal>timestamp</literal> property values through the use of a "
-"<literal>versioned update</literal>. This is achieved by adding the "
-"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
-"keyword."
+"Para mantenerse de acuerdo con la especificación de EJB3, las declaraciones "
+"<literal>UPDATE</literal> de HQL, por defecto no afectan la <xref linkend="
+"\"mapping-declaration-version\" /> o los valores de propiedad <xref linkend="
+"\"mapping-declaration-timestamp\" /> para las entidades afectadas. Sin "
+"embargo, puede obligar a Hibernate a poner en cero apropiadamente los "
+"valores de propiedad <literal>version</literal> o <literal>timestamp</"
+"literal> por medio de la utilización de un <literal>versioned update</"
+"literal>. Esto se logra añadiendo la palabra clave <literal>VERSIONED</"
+"literal> después de la palabra clave <literal>UPDATE</literal>."
-#. Tag: programlisting
-#: batch.xml:201
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName "
-"where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-" Transaction tx = session."
-"beginTransaction();\n"
-" String hqlVersionedUpdate = "
-"\"update versioned Customer set name = :newName where name = :oldName\";\n"
-" int updatedEntities = s.createQuery"
-"( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-" tx.commit();\n"
-" session.close();]]>"
-
-#. Tag: para
-#: batch.xml:203
-#, fuzzy, no-c-format
-msgid ""
"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
"literal>, are not allowed in conjunction with a <literal>update versioned</"
"literal> statement."
msgstr ""
-"Note that custom version types (<literal>org.hibernate.usertype."
-"UserVersionType</literal>) are not allowed in conjunction with a "
-"<literal>update versioned</literal> statement."
+"Observe que los tipos de versiones personalizados (<literal>org.hibernate."
+"usertype.UserVersionType</literal>) no están permitidos en conjunto con una "
+"declaración <literal>update versioned</literal>."
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid ""
"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
"executeUpdate()</literal> method:"
msgstr ""
-"Para ejecutar un <literal>DELETE</literal> HQL, usa el mismo método "
+"Para ejecutar un <literal>DELETE</literal> HQL, utilice el mismo método "
"<literal>Query.executeUpdate()</literal>:"
-#. Tag: programlisting
-#: batch.xml:213
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-" Transaction tx = session.beginTransaction();\n"
-"\n"
-" String hqlDelete = \"delete Customer where name = :oldName\";\n"
-" int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-" tx.commit();\n"
-" session.close();]]>"
-
-#. Tag: para
-#: batch.xml:215
-#, fuzzy, no-c-format
-msgid ""
"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
"()</literal> method indicates the number of entities effected by the "
"operation. This may or may not correlate to the number of rows effected in "
@@ -593,40 +347,39 @@
"which that subclass is mapped, but also the \"root\" table and potentially "
"joined-subclass tables further down the inheritance hierarchy."
msgstr ""
-"El valor <literal>int</literal> devuelto por el método <literal>Query."
+"El valor <literal>int</literal> retornado por el método <literal>Query."
"executeUpdate()</literal> indica el número de entidades afectadas por la "
-"operación. Considera que esto puede o no correlacionarse al número de filas "
-"afectadas en la base de datos. Una operación masiva HQL podrÃa resultar en "
-"que se ejecuten múltiples sentencias de SQL reales, para joined-subclass, "
-"por ejemplo. El número devuelto indica el número de entidades reales "
-"afectadas por la sentencia. Volviendo al ejemplo de joined-subclass, un "
-"borrado contra una de las subclases puede resultar realmente en borrados "
-"contra no sólo la tabla a la que está mapeada esa subclase, sino también la "
-"tabla \"raÃz\" y potencialmente tablas de joined-subclass más debajo en la "
-"jerarquÃa de herencia."
+"operación. Considere que esto puede estar correlacionado o no con el número "
+"de filas afectadas en la base de datos. Una operación masiva de HQL puede "
+"llegar a causar que se ejecuten múltiples declaraciones SQL reales, por "
+"ejemplo, para una subclase-joined. El número retornado indica el número de "
+"entidades realmente afectadas por la declaración. De vuelta al ejemplo de la "
+"subclase joined, un borrado contra una de las subclases puede resultar, de "
+"hecho, en borrados de no sólamente la tabla a la cual esa subclase esta "
+"mapeada, sino también la tabla \"raÃz\" y potencialmente las tablas de "
+"subclases joined hasta la jerarquÃa de herencia."
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid ""
"The pseudo-syntax for <literal>INSERT</literal> statements is: "
"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
"Some points to note:"
msgstr ""
-"Ten en cuenta que existen actualmente unas pocas limitaciones con las "
-"operaciones HQL masivas, que serán atendidas en lanzamientos futuros; "
-"consulta la hoja de ruta de JIRA para más detalles."
+"La pseudo-sintáxis para las declaraciones <literal>INSERT</literal> es: "
+"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
+"Algunos puntos que se deben observar son:"
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid ""
"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
"INTO ... VALUES ... form."
msgstr ""
+"Sólamente se soporta la forma INSERT INTO ... SELECT ..., no la forma INSERT "
+"INTO ... VALUES ..."
#. Tag: para
-#: batch.xml:237
#, no-c-format
msgid ""
"The properties_list is analogous to the <literal>column specification</"
@@ -636,9 +389,16 @@
"are not allowed and subclass properties do not make sense. In other words, "
"<literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
+"La lista de propiedades (properties_list) es análoga a la <literal>column "
+"speficiation</literal> en la declaración <literal>INSERT</literal> de SQL. "
+"Para las entidades involucradas en la herencia mapeada, sólamente las "
+"propiedades definidas directamente en ese nivel de clase dado se pueden "
+"utlizar en la lista de propiedades. Las propiedades de la superclase no "
+"están permitidas, y las propiedaeds de la subclase no tienen sentido. Es "
+"decir, las declaraciones <literal>INSERT</literal> son inherentemente no-"
+"polimórficas."
#. Tag: para
-#: batch.xml:247
#, no-c-format
msgid ""
"select_statement can be any valid HQL select query, with the caveat that the "
@@ -652,9 +412,19 @@
"TimestampType</literal>, even though the database might not make a "
"distinction or might be able to handle the conversion."
msgstr ""
+"select_statement puede ser cualquier consulta select de HQL válida con la "
+"advertencia de que los tipos de retorno coincidan con los tipos esperados "
+"por el insert. Actualmente, esto se verifica durante la compilación de la "
+"consulta en vez de permitir que se relegue la verificación a la base de "
+"datos. Sin embargo, esto puede crear problemas entre los <literal>Type</"
+"literal>s de Hibernate, los cuales son <emphasis>equivalentes</emphasis> y "
+"no <emphasis>iguales</emphasis>. Esto puede crear problemas con las uniones "
+"mal hechas entre una propiedad definida como un <literal>org.hibernate.type."
+"DateType</literal> y una propiedad definida como una <literal>org.hibernate."
+"type.TimestampType</literal>, aunque puede que la base de datos no distinga "
+"o no pueda manejar la conversión."
#. Tag: para
-#: batch.xml:259
#, no-c-format
msgid ""
"For the id property, the insert statement gives you two options. You can "
@@ -671,9 +441,22 @@
"TableHiLoGenerator</literal>, which cannot be used because it does not "
"expose a selectable way to get its values."
msgstr ""
+"Para la propiedad id, la declaración insert le da dos opciones. Puede "
+"especificar explÃcitamente la propiedad id en la lista de propiedades "
+"(properties_list ) (en tal caso su valor se toma de la expresión de "
+"selección correspondiente) o se omite de la lista de propiedades (en tal "
+"caso se utiliza un valor generado). Esta última opción sólamente está "
+"disponible cuando se utilizan generadores de id que operan en la base de "
+"datos, intentando utilizar esta opción con cualquier generador de tipo \"en "
+"memoria\" provocará una excepción durante el análisis sintáctico. Note que "
+"para los propósitos de esta discusión, los generadores en la base de datos "
+"son considerados <literal>org.hibernate.id.SequenceGenerator</literal> (y "
+"sus subclases) y cualquier implementador de <literal>org.hibernate.id."
+"PostInsertIdentifierGenerator</literal>. La excepción más importante aquà es "
+"<literal>org.hibernate.id.TableHiLoGenerator</literal>, la cual no se puede "
+"utilizar ya que no expone una manera selectiva de obtener sus valores."
#. Tag: para
-#: batch.xml:274
#, no-c-format
msgid ""
"For properties mapped as either <literal>version</literal> or "
@@ -683,32 +466,18 @@
"from the properties_list, in which case the <literal>seed value</literal> "
"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
+"Para las propiedades mapeadas como <literal>version</literal> o "
+"<literal>timestamp</literal>, la declaración insert le da dos opciones. "
+"Puede especificar la propiedad en la lista de propiedades (en tal caso su "
+"valor se toma de las expresiones de selección correspondientes) o se omite "
+"de la lista de propiedades (en tal caso se utiliza el <literal>seed value</"
+"literal> definido por el <literal>org.hibernate.type.VersionType</literal>)."
#. Tag: para
-#: batch.xml:284
#, no-c-format
msgid ""
"The following is an example of an HQL <literal>INSERT</literal> statement "
"execution:"
msgstr ""
-
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c."
-"name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Un ejemplo de la ejecución de la declaración <literal>INSERT</literal> de "
+"HQL:"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,43 @@
-#, fuzzy
+# translation of best_practices.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: best_practices\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-11-09 09:46+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
-msgstr "Mejores Prácticas"
+msgstr "Prácticas recomendadas"
#. Tag: term
-#: best_practices.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
"literal>:"
msgstr ""
-"Escribe clase finamente granularizadas y mapealas usando <literal><"
-"component></literal>."
+"Escriba las clases detalladas y mapéelas utilizando <literal><"
+"component></literal>:"
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -32,38 +45,34 @@
"<literal>postcode</literal>. This encourages code reuse and simplifies "
"refactoring."
msgstr ""
-"Usa una clase <literal>Dirección</literal> para encapsular "
+"Utilice una clase <literal>Dirección</literal> para encapsular "
"<literal>calle</literal>, <literal>distrito</literal>, <literal>estado</"
-"literal>, <literal>código postal</literal>. Esto alienta la "
-"reutilización de código y simplifica el refactoring."
+"literal>, <literal>código postal</literal>. Esto promueve la reutilización "
+"de código y simplifica la refabricación."
#. Tag: term
-#: best_practices.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Declare identifier properties on persistent classes:"
-msgstr "Declara las propiedades identificadoras en clases persistentes."
+msgstr "Declare las propiedades identificadoras en clases persistentes:"
#. Tag: para
-#: best_practices.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
"why you should use them. We recommend that identifiers be 'synthetic', that "
"is, generated with no business meaning."
msgstr ""
-"Hibernate hace opcionales las propiedades identificadoras. Existen todo tipo "
-"de razones por las que debes usarlas. Recomendamos que los identificadores "
-"sean 'sintéticos' (generados, sin ningún significado de "
-"negocio)."
+"Las propiedades identificadoras son opcionales en Hibernate. Existe todo "
+"tipo de razones por las que debe usarlas. Recomendamos que los "
+"identificadores sean 'sintéticos', es decir, generados sin ningún "
+"significado empresarial."
#. Tag: term
-#: best_practices.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Identify natural keys:"
-msgstr "Identifica las claves naturales."
+msgstr "Identifique las llaves naturales:"
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -71,108 +80,95 @@
"<literal>hashCode()</literal> to compare the properties that make up the "
"natural key."
msgstr ""
-"Identifica las claves naturales de todas las entidades, y mapealas usando "
-"<literal><natural-id></literal>. Implementa <literal>equals()</"
+"Identifique las claves naturales de todas las entidades, y mapéelas usando "
+"<literal><natural-id></literal>. Implemente <literal>equals()</"
"literal> y <literal>hashCode()</literal> para comparar las propiedades que "
"componen la clave natural."
#. Tag: term
-#: best_practices.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Place each class mapping in its own file:"
-msgstr "Coloca cada mapeo de clase en su propio fichero."
+msgstr "Coloque cada mapeo de clase en su propio fichero:"
#. Tag: para
-#: best_practices.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
"literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes "
"sense, particularly in a team environment."
msgstr ""
-"No uses un solo documento monolítico de mapeo. Mapea <literal>com.eg."
-"Foo</literal> en el fichero <literal>com/eg/Foo.hbm.xml</literal>. Esto "
-"tiene sentido particularmente en un ambiente de equipo."
+"No use un sólo documento monolÃtico de mapeo. Mapee <literal>com.eg.Foo</"
+"literal> en el archivo <literal>com/eg/Foo.hbm.xml</literal>. Esto tiene "
+"sentido particularmente en un entorno de equipo."
#. Tag: term
-#: best_practices.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Load mappings as resources:"
-msgstr "Carga los mapeos como recursos."
+msgstr "Cargue los mapeos como recursos:"
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
-msgstr "Despliega los mapeos junto a las clases que mapean."
+msgstr "Despliegue los mapeos junto a las clases que mapean."
#. Tag: term
-#: best_practices.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider externalizing query strings:"
-msgstr "Considera externalizar las cadenas de consulta."
+msgstr "Considere el externalizar las cadenas de petición:"
#. Tag: para
-#: best_practices.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
"Externalizing the query strings to mapping files will make the application "
"more portable."
msgstr ""
-"Esta es una buena práctica si tus consultas llaman a funciones SQL "
-"que no son del estándar ANSI. Externalizar las cadenas de consulta a "
-"ficheros de mapeo hará la aplicación más portable."
+"Esta es una buena práctica si sus consultas llaman a funciones SQL que no "
+"son del estándar ANSI. Externalizar las cadenas de consulta a archivos de "
+"mapeo hará la aplicación más portátil. "
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
-msgstr "Usa variables de ligado."
+msgstr "Use variables de vinculación."
#. Tag: para
-#: best_practices.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
"manipulation to bind a non-constant value in a query. You should also "
"consider using named parameters in queries."
msgstr ""
-"Igual que en JDBC, siempre remplaza valores no constantes con \"?\". ¡"
-"Nunca uses manipulación de cadenas para ligar un valor no constante "
-"en una consulta! Incluso mejor, considera usar parámetros con nombre "
-"en las consultas."
+"Al igual que en JDBC, siempre remplace los valores no constantes con \"?\". "
+"No use la manipulación de cadenas para enlazar un valor no constante en una "
+"consulta. También considere utilizar parámetros con nombre en las consultas."
#. Tag: term
-#: best_practices.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not manage your own JDBC connections:"
-msgstr "No manejes tus propias conexiones JDBC."
+msgstr "No administre sus propias conexiones JDBC:"
#. Tag: para
-#: best_practices.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
"approach should be considered a last-resort. If you cannot use the built-in "
"connection providers, consider providing your own implementation of "
"<literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
-"Hibernate deja a la aplicación administre las conexiones JDBC. Este "
-"enfoque debe considerarse como último recurso. Si no puedes usar los "
-"provedores de conexión prefabricados, considera prover tu propia "
-"implementación de <literal>org.hibernate.connection."
-"ConnectionProvider</literal>."
+"Hibernate deja a la aplicación administrar las conexiones JDBC, pero este "
+"enfoque debe considerarse como el último recurso. Si no puede utilizar los "
+"provedores de conexión incorporados, considere proveer su propia "
+"implementación de <literal>org.hibernate.connection.ConnectionProvider</"
+"literal>."
#. Tag: term
-#: best_practices.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider using a custom type:"
-msgstr "Considera usar un tipo personalizado."
+msgstr "Considere utilizar un tipo personalizado:"
#. Tag: para
-#: best_practices.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
"does not provide the accessors needed to map it as a component. You should "
@@ -180,49 +176,45 @@
"approach frees the application code from implementing transformations to/"
"from a Hibernate type."
msgstr ""
-"Supón que tienes un tipo Java, digamos de alguna biblioteca, que "
-"necesita hacerse persistente pero no provee los métodos de acceso "
-"necesarios para mapearlo como un componente. Debes considerar implementar "
-"<literal>org.hibernate.UserType</literal>. Este enfoque libera al có"
-"digo de aplicación de implementar transformaciones a / desde un tipo "
-"Hibernate."
+"Supónga que tiene un tipo Java de una biblioteca, que necesita hacerse "
+"persistente pero que no provee los métodos de acceso necesarios para "
+"mapearlo como un componente. Debe considerar el implementar <literal>org."
+"hibernate.UserType</literal>. Este enfoque libera al código de aplicación de "
+"implementar transformaciones a/desde un tipo Hibernate."
#. Tag: term
-#: best_practices.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
-msgstr "Usa JDBC codificado a mano en cuellos de botella."
+msgstr "Utilice JDBC codificado a mano cuando se encuentre atascado:"
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
-"En áreas del sistema de rendimiento crítico, algunos tipos de "
-"operaciones podrían beneficiarse del JDBC directo. Pero por favor, "
-"espero hasta que <emphasis>sepas</emphasis> que algo es un cuello de "
-"botella. Y no asumas que el JDBC directo es necesariamente más "
-"rápido. Si necesitas usar JDBC directo, podría ser valioso "
-"abrir una <literal>Session</literal> de Hibernate y usar esa conexión "
-"JDBC. De esta forma puedes usar aún la misma estrategia de "
-"transacción y el mismo proveedor de conexiones subyacente."
+"En áreas de rendimiento crÃtico del sistema, algunos tipos de operaciones "
+"podrÃan beneficiarse del JDBC directo. Sin embargo, no asuma que el JDBC "
+"directo es necesariamente más rápido. Por favor, espere hasta que "
+"<emphasis>sepa</emphasis> que se encuentra realmente atascado. Si necesita "
+"utilizar JDBC directo, puede abrir una <literal>Session</literal> de "
+"Hibernate y usar esa conexión JDBC file:///usr/share/doc/HTML/en-US/index."
+"html. De esta manera puede usar aún la misma estrategia de transacción y el "
+"mismo proveedor de conexiones subyacente."
#. Tag: term
-#: best_practices.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
-msgstr "Comprende la limpieza (flushing) de <literal>Session</literal>."
+msgstr "Comprenda el vaciado de <literal>Session</literal>:"
#. Tag: para
-#: best_practices.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
"Performance will be affected if this process occurs too often. You can "
@@ -230,22 +222,20 @@
"even by changing the order of queries and other operations within a "
"particular transaction."
msgstr ""
-"De vez en cuando la sesión sincroniza su estado persistente con la "
-"base de datos. El rendimiento se verá afectado si este proceso ocurre "
-"demasiado frecuentemente. A veces puedes minimizar limpieza innecesaria "
-"deshabilitando la limpieza automática o incluso cambiando el orden de "
-"las consultas u otras operaciones en una transacción en particular."
+"A veces la sesión sincroniza su estado persistente con la base de datos. El "
+"rendimiento se verá afectado si este proceso ocurre con demasiada "
+"frecuencia. A veces puede minimizar el vaciado innecesario deshabilitando el "
+"vaciado automático o incluso cambiando el orden de las consultas u otras "
+"operaciones en una transacción en particular."
#. Tag: term
-#: best_practices.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr ""
-"En una aplicación en tres gradas, considera usar objetos separados."
+"En una arquitectura con tres niveles considere el utilizar objetos separados:"
#. Tag: para
-#: best_practices.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
"objects loaded in the session bean to and from the servlet/JSP layer. Use a "
@@ -253,23 +243,21 @@
"or <literal>Session.saveOrUpdate()</literal> to synchronize objects with the "
"database."
msgstr ""
-"Al usar una arquitectura de servlet / sesión, puedes pasar objetos "
-"persistentes en el bean de sesión hacia y desde la capa de servlet / "
-"JSP. Usa una sesión nueva para atender el servicio de cada "
-"petición. Usa <literal>Session.merge()</literal> o <literal>Session."
-"saveOrUpdate()</literal> para sincronizar los objetos con la base de datos."
+"Al usar una arquitectura de servlet/sesión, puede pasar objetos persistentes "
+"en el bean de sesión hacia y desde la capa del servlet/JSP. Use una sesión "
+"nueva para atender el servicio de cada petición. Use <literal>Session.merge()"
+"</literal> o <literal>Session.saveOrUpdate()</literal> para sincronizar los "
+"objetos con la base de datos."
#. Tag: term
-#: best_practices.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr ""
-"En una arquitectura en dos gradas, considera usar contexto de persistencia "
-"largos."
+"En una arquitectura con dos niveles considere el utilizar contextos largos "
+"de persistencia:"
#. Tag: para
-#: best_practices.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
"However, it is often necessary to implement long running "
@@ -284,31 +272,27 @@
"across more than one application transaction or you will be working with "
"stale data."
msgstr ""
-"Las transacciones de base de datos tienen que ser tan cortas como sea "
-"posible. Sin embargo, frecuentemente es necesario implementar "
-"<emphasis>transacciones de aplicación</emphasis> ejecutándose "
-"en largo, una sola unidad de trabajo desde el punto de vista de un usuario. "
-"Una transacción de aplicación puede abarcar muchos ciclos "
-"petición/respuesta del cliente. Es común usar objetos "
-"separados para implementar transacciones de aplicación. Una "
-"alternativa, extremadamente apropiada en arquitecturas en dos gradas, es "
-"mantener un solo contacto de persistencia abierto (sesión) para todo "
-"el ciclo de vida de la transacción de aplicación y simplemente "
-"desconectar de la conexión JDBC al final de cada petición, y "
-"reconectar al comienzo de la petición subsecuente. Nunca compartas "
-"una única sesión a través de más de una "
-"transacción de aplicación, o estarás trabajando con "
-"datos añejos."
+"Las transacciones de la base de datos tienen que ser tan cortas como sea "
+"posible para obtener una mejor escalabilidad. Sin embargo, con frecuencia es "
+"necesario implementar <emphasis>transacciones de aplicación</emphasis> de "
+"larga ejecución, una sola unidad de trabajo desde el punto de vista de un "
+"usuario. Una transacción de aplicación puede abarcar muchos ciclos de "
+"petición/respuesta del cliente. Es común usar objetos separados para "
+"implementar transacciones de aplicación. Una alternativa apropiada en "
+"arquitecturas de dos niveles, es mantener una sesión de un sólo contacto de "
+"persistencia abierto para todo el ciclo de vida de la transacción de "
+"aplicación. Luego simplemente desconectar de la conexión JDBC al final de "
+"cada petición y reconectar al comienzo de la petición subsecuente. Nunca "
+"comparta una sesión única a través de más de una transacción de aplicación o "
+"estará trabajando con datos desactualizados."
#. Tag: term
-#: best_practices.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not treat exceptions as recoverable:"
-msgstr "No trates la excepciones como recuperables."
+msgstr "No trate las excepciones como recuperables:"
#. Tag: para
-#: best_practices.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
"exception occurs, roll back the <literal>Transaction</literal> and close the "
@@ -318,24 +302,21 @@
"instance with the given identifier exists on the database; use "
"<literal>Session.get()</literal> or a query instead."
msgstr ""
-"Esto es más una práctica necesaria que una \"mejor\" prá"
-"ctica. Cuando ocurra una excepción, deshaz (rollback) la "
-"<literal>Transaction</literal> y cierra la <literal>Session</literal>. Si no "
-"lo haces, Hibernate no puede garantizar que el estado en memoria representa "
-"con exactitud el estado persistente. Como un caso especial de esto, no uses "
-"<literal>Session.load()</literal> para determinar si una instancia con el "
-"identificador dado existe en la base de datos. En cambio, usa "
-"<literal>Session.get()</literal> o una consulta."
+"Esto es más bien una práctica necesaria más que una práctica \"recomendada"
+"\". Cuando ocurra una excepción, deshaga la <literal>Transaction</literal> y "
+"cierre la <literal>Session</literal>. Si no lo hace, Hibernate no puede "
+"garantizar que el estado en memoria representa con exactitud el estado "
+"persistente. Por ejemplo, no utilice <literal>Session.load()</literal> para "
+"determinar si una instancia con el identificador dado existe en la base de "
+"datos; en cambio, use <literal>Session.get()</literal> o una consulta."
#. Tag: term
-#: best_practices.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer lazy fetching for associations:"
-msgstr "Prefiere la recuperación perezosa para las asociaciones."
+msgstr "Prefiera una recuperación perezosa para las asociaciones:"
#. Tag: para
-#: best_practices.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
"associations to classes that are not likely to be completely held in the "
@@ -345,30 +326,27 @@
"to a particular use case, use a query with a <literal>left join fetch</"
"literal>."
msgstr ""
-"Usa escasamente la recuperación temprana. Usa proxies y colecciones "
-"perezosas para la mayoría de asociaciones a clases probablemente no "
-"estén mantenidas en el caché de segundo nivel. Para las "
-"asociaciones a clases en caché, donde hay una probabilidad de acceso "
-"a caché extremadamente alta, deshabilita explícitamente la "
-"recuperación temprana usando <literal>lazy=\"false\"</literal>. "
-"Cuando sea apropiada la recuperación por unión (join fetching) "
-"para un caso de uso en particular, usa una consulta con un <literal>left "
-"join fetch</literal>."
+"No utilice con frecuencia la recuperación temprana. Use proxies y "
+"colecciones perezosas para la mayorÃa de asociaciones a clases que "
+"probablemente no se encuentren en el caché de segundo nivel. Para las "
+"asociaciones a clases en caché, donde hay una probabilidad de acceso a caché "
+"extremadamente alta, deshabilite explÃcitamente la recuperación temprana "
+"usando <literal>lazy=\"false\"</literal>. Cuando la recuperación por unión "
+"sea apropiada para un caso de uso en particular, utilice una consulta con un "
+"<literal>left join fetch</literal>."
#. Tag: term
-#: best_practices.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
-"Usa el patrón <emphasis>sesión abierta en vista</emphasis>, o "
-"una <emphasis>fase de ensamblado</emphasis> disciplinada para evitar "
-"problemas con datos no recuperados."
+"Use el patrón de <emphasis>sesión abierta en vista</emphasis> o una "
+"<emphasis>fase de ensamblado</emphasis> disciplinada para evitar problemas "
+"con datos no recuperados."
#. Tag: para
-#: best_practices.xml:201
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
@@ -383,31 +361,28 @@
"objects. This is not a limitation of Hibernate. It is a fundamental "
"requirement of safe transactional data access."
msgstr ""
-"Hibernate liberal al desarrollador de escribir <emphasis>Objetos de "
-"Transferencia de Datos (Data Transfer Objects)</emphasis> (DTO). En una "
-"arquitectura tradicional de EJB, los DTOs tienen un propósito doble: "
-"primero, atacan el problema que los beans de entidad no son serializables. "
-"Segundo, definen implícitamente una fase de ensamblado cuando se "
-"recuperan y se forman (marshalling) todos los datos a usar por la vista en "
-"los DTOs antes de devolver el control a la grada de presentación. "
-"Hibernate elimina el primer propósito. Sin embargo, aún "
-"necesitas una fase de ensamblado (piensa en tus métodos de negocio "
-"como si tuviesen un contrato estricto con la grada de presentación "
-"sobre qué datos están disponibles en los objetos separados) a "
-"menos que estés preparado para tener el contexto de persistencia (la "
-"sesión) abierto a través del proceso de renderización "
-"de la vista. ¡Esta no es una limitación de Hibernate! Es un "
+"Hibernate libera al desarrollador de escribir tediosos <emphasis>objetos de "
+"transferencia de datos (DTO del inglés Data Transfer Objects)</emphasis>. En "
+"una arquitectura tradicional de EJB, los DTOs tienen un propósito doble: "
+"primero, atacan el problema de que los beans de entidad no son "
+"serializables. Segundo, definen implÃcitamente una fase de ensamblado cuando "
+"se recuperan y se forman (marshalling) todos los datos a usar por la vista "
+"en los DTOs antes de devolver el control al nivel de presentación. Hibernate "
+"elimina el primer propósito. Sin embargo, aún necesita una fase de "
+"ensamblado a menos de que esté preparado para tener el contexto de "
+"persistencia (la sesión) abierto a través del proceso de entrega de la "
+"vista. Piense en sus métodos empresariales como si tuviesen un contrato "
+"estricto con el nivel de presentación sobre qué datos están disponibles en "
+"los objetos separados. Esta no es una limitación de Hibernate. Este es un "
"requerimiento fundamental de acceso seguro a datos transaccionales."
#. Tag: term
-#: best_practices.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
-msgstr "Considera abstraer tu lógica de negocio de Hibernate"
+msgstr "Considere abstraer su lógica empresarial de Hibernate:"
#. Tag: para
-#: best_practices.xml:217
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
@@ -416,23 +391,21 @@
"however, intended for \"sufficiently large\" applications. It is not "
"appropriate for an application with five tables."
msgstr ""
-"Oculta el código de acceso a datos (Hibernate) detrás de una "
-"interface. Combina los patrones <emphasis>DAO</emphasis> y "
-"<emphasis>Sesión de Hebra Local</emphasis>. Incluso puedes tener "
-"algunas clases hechas persistentes por JDBC escrito a mano, asociadas a "
-"Hibernate por medio de un <literal>UserType</literal>. (Este consejo "
-"está pensado para aplicaciones \"suficientemente grandes\"; ¡"
-"no es apropiado para una aplicación con cinco tablas!)"
+"Oculte el código de acceso a datos de Hibernate detrás de una interfaz. "
+"Combine los patrones <emphasis>DAO</emphasis> y <emphasis>sesión local de "
+"hilo</emphasis>. Incluso puede hacer algunas clases persistentes por medio "
+"de JDBC escrito a mano, asociadas a Hibernate por medio de un "
+"<literal>UserType</literal>. Sin embargo, este consejo va para las "
+"aplicaciones \"suficientemente grandes\". No es apropiado para una "
+"aplicación con cinco tablas."
#. Tag: term
-#: best_practices.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not use exotic association mappings:"
-msgstr "No uses mapeos de asociación exóticos."
+msgstr "No utilice mapeos de asociación exóticos:"
#. Tag: para
-#: best_practices.xml:229
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
"the time you need additional information stored in the \"link table\". In "
@@ -442,33 +415,24 @@
"association style."
msgstr ""
"Son raros los casos de uso de asociaciones reales muchos-a-muchos. La mayor "
-"parte del tiempo necesitas información adicional almacenada en una "
-"\"tabla de enlace\". En este caso, es mucho mejor usar dos asociaciones uno-"
-"a-muchos a una clase de enlace intermedia. De hecho, pensamos que la "
-"mayoría de asociaciones son uno-a-muchos y muchos-a-uno, debes ser "
-"cuidadoso al usr cualquier otro estilo de asociación y preguntarte si "
-"es realmente necesario."
+"parte del tiempo necesita información adicional almacenada en una \"tabla de "
+"enlace\". En este caso, es mucho mejor usar dos asociaciones uno-a-muchos a "
+"una clase de enlace intermedio. De hecho, la mayorÃa de las asociaciones son "
+"uno-a-muchos y muchos-a-uno. Por esta razón, debe tener cuidado al utilizar "
+"cualquier otro estilo de asociación."
#. Tag: term
-#: best_practices.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer bidirectional associations:"
-msgstr "Prefiere las asociaciones bidireccionales."
+msgstr "Prefiera las asociaciones bidireccionales:"
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
"application, almost all associations must be navigable in both directions in "
"queries."
msgstr ""
-"Las asociaciones unidireccionales son más difíciles de "
-"consultar. En una aplicación grande, casi todas las asociaciones "
-"deben ser navegables en ambas direcciones en consultas."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Las asociaciones unidireccionales son más difÃciles de consultar. En una "
+"aplicación grande, casi todas las asociaciones deben ser navegables en ambas "
+"direcciones en consultas."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Branch 3_3\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-06-10 21:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,62 +1,50 @@
-#, fuzzy
+# translation of collection_mapping.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: collection_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-07 09:44+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: collection_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection mapping"
-msgstr "Mapeos de colección"
+msgstr "Mapeos de colección "
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
msgstr "Colecciones persistentes"
#. Tag: para
-#: collection_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
-"Hibernate requiere que los campos valuados en colección persistentes "
-"sean declarados como un tipo de interface, por ejemplo:"
+"Hibernate requiere que los campos valuados en colección persistente se "
+"declaren como un tipo de interfaz. Por ejemplo:"
-#. Tag: programlisting
-#: collection_mapping.xml:39
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-
-#. Tag: para
-#: collection_mapping.xml:41
-#, fuzzy, no-c-format
-msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
@@ -64,17 +52,15 @@
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
-"La interface real podría ser <literal>java.util.Set</literal>, "
-"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
-"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
-"<literal>java.util.SortedMap</literal> o ... lo que te guste! (Donde \"lo "
-"que te guste\" significa que tendrás que escribir una "
-"implementación de <literal>org.hibernate.usertype.UserCollectionType</"
-"literal>.)"
+"La interfaz real puede ser <literal>java.util.Set</literal>, <literal>java."
+"util.Collection</literal>, <literal>java.util.List</literal>, <literal>java."
+"util.Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java."
+"util.SortedMap</literal> o lo que usted quiera (donde \"lo que usted quiera"
+"\" significa que tendrá que escribir una implementación de <literal>org."
+"hibernate.usertype.UserCollectionType</literal>)."
#. Tag: para
-#: collection_mapping.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet</literal>. This is the best way to initialize collection "
@@ -84,43 +70,17 @@
"an instance of Hibernate's own implementation of <literal>Set</literal>. Be "
"aware of the following errors:"
msgstr ""
-"Nota cómo hemos inicializado la variable de instancia de "
-"<literal>HashSet</literal>. Esta es la mejor forma de inicializar "
-"propiedades valuadas en colección de instancias recién "
-"instanciadas (no persistentes). Cuando haces persistente la instancia - "
-"llamando a <literal>persist()</literal>, por ejemplo - Hibernate realmente "
-"remplazará el <literal>HashSet</literal> con una instancia de una "
-"implementación de <literal>Set</literal> propia de Hibernate. Observa "
-"errores como este:"
+"Note cómo se inicializó la variable de instancia con una instancia de "
+"<literal>HashSet</literal>. Esta es la mejor forma de inicializar las "
+"propiedades valuadas en colección de instancias recién instanciadas (no "
+"persistentes). Cuando hace persistente la instancia, llamando a "
+"<literal>persist()</literal>, por ejemplo, Hibernate realmente remplazará el "
+"<literal>HashSet</literal> con una instancia de una implementación de "
+"<literal>Set</literal> propia de Hibernate. Observe los siguientes errores:"
-#. Tag: programlisting
-#: collection_mapping.xml:60
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-
-#. Tag: para
-#: collection_mapping.xml:62
-#, fuzzy, no-c-format
-msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
@@ -129,11 +89,10 @@
"Las colecciones persistentes inyectadas por Hibernate se comportan como "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> o <literal>ArrayList</literal>, "
-"dependiendo del tipo de interface."
+"dependiendo del tipo de interfaz. "
#. Tag: para
-#: collection_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
@@ -144,85 +103,57 @@
"properties do not support null value semantics. Hibernate does not "
"distinguish between a null collection reference and an empty collection."
msgstr ""
-"Las instancias de colecciones tienen el comportamiento usual de tipos de "
-"valor. Son automáticamente persistidas al ser referenciadas por un "
-"objeto persistente y automáticamente borradas al desreferenciarse. Si "
-"una colección es pasada de un objeto persistente a otro, sus "
-"elementos serían movidos de una tabla a otra. Dos entidades pueden no "
-"compartir una referencia a la misma instancia de colección. Debido al "
-"modelo relacional subyacente, las propiedades valuadas en colección "
-"no soportan la semántica de valor nulo. Hibernate no distingue entre "
-"una referencia de colección nula y una colección vacía."
+"Las instancias de colecciones tienen el comportamiento usual de los tipos de "
+"valor. Son automáticamente persistidas al ser referenciadas por un objeto "
+"persistente y se borran automáticamente al desreferenciarse. Si una "
+"colección se pasa de un objeto persistente a otro, puede que sus elementos "
+"se muevan de una tabla a otra. Dos entidades no pueden compartir una "
+"referencia a la misma instancia de colección. Debido al modelo relacional "
+"subyacente, las propiedades valuadas en colección no soportan la semántica "
+"de valor nulo. Hibernate no distingue entre una referencia de colección nula "
+"y una colección vacÃa."
#. Tag: para
-#: collection_mapping.xml:80
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
-"No debes tener que preocuparte demasiado por esto. Usa las colecciones "
-"persistentes de la misma forma en que usas colecciones de Java ordinarias. "
-"Sólo asegúrate que entiendes la semántica de las "
-"asociaciones bidireccionales (discutida luego)."
+"Utilice las colecciones persistentes de la misma forma en que utiliza "
+"colecciones de Java ordinarias. Sin embargo, asegúrese de que entiende la "
+"semántica de las asociaciones bidireccionales (se discuten más adelante)."
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
-msgstr "Mapeos de colección"
+msgstr "Mapeos de colección"
#. Tag: para
-#: collection_mapping.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
-"Hay absolutamente un rango de mapeos que pueden ser generados para "
-"colecciones, cubriendo muchos modelos relacionales comunes. Te sugerimos que "
-"experimentes con la herramienta de generación de esquemas para "
-"obtener una idea de cómo varias declaraciones de mapeo se traducen a "
-"tablas de base de datos."
+"Hay bastantes rangos de mapeos que se pueden generar para colecciones que "
+"cubren muchos modelos relacionales comúnes. Le recomendamos que experimente "
+"con la herramienta de generación de esquemas para comprender cómo se "
+"traducen varias declaraciones de mapeo a tablas de bases de datos."
#. Tag: para
-#: collection_mapping.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set></literal> element is "
"used for mapping properties of type <literal>Set</literal>."
msgstr ""
-"El elemento de mapeo de Hibernate usado para mapear una colección "
-"depende del tipo de la interface. Por ejemplom un elemento <literal><"
-"set></literal> se usa para mapear propiedades de tipo <literal>Set</"
-"literal>."
+"El elemento de mapeo de Hibernate usado para mapear una colección depende "
+"del tipo de la interfaz. Por ejemplo, un elemento <literal><set></"
+"literal> se utiliza para mapear propiedades de tipo <literal>Set</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -231,93 +162,38 @@
"array></literal> mapping elements. The <literal><map></literal> "
"element is representative:"
msgstr ""
-"Aparte de <literal><set></literal>, existen además los "
-"elementos de mapeo <literal><list></literal>, <literal><map></"
-"literal>, <literal><bag></literal>, <literal><array></literal> y "
+"Aparte de <literal><set></literal>, existen además los elementos de "
+"mapeo <literal><list></literal>, <literal><map></literal>, "
+"<literal><bag></literal>, <literal><array></literal> y "
"<literal><primitive-array></literal>. El elemento <literal><map>"
"</literal> es representativo:"
-#. Tag: programlisting
-#: collection_mapping.xml:132
-#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-
#. Tag: para
-#: collection_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the collection property name"
-msgstr "<literal>name</literal> el nombre de la propiedad de colección"
+msgstr "<literal>name</literal>: el nombre de la propiedad de colección"
#. Tag: para
-#: collection_mapping.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
-"<literal>table</literal> (opcional - por defecto al nombre de la propiedad) "
-"el nombre de la tabla de coleciión (no usado para asociaciones uno-a-"
-"muchos)"
+"<literal>table</literal> (opcional - por defecto es el nombre de la "
+"propiedad): el nombre de la tabla de colección. No se utiliza para "
+"asociaciones uno-a-muchos."
#. Tag: para
-#: collection_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
-"<literal>schema</literal> (opcional) el nombre de un esquema de tablas para "
-"sobrescribir el esquema declarado en el elemento raíz"
+"<literal>schema</literal> (opcional): el nombre de un esquema de tablas para "
+"sobrescribir el esquema declarado en el elemento raÃz"
#. Tag: para
-#: collection_mapping.xml:152
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"disables lazy fetching and specifies that the association is always eagerly "
@@ -325,144 +201,133 @@
"operations do not initialize the collection. This is suitable for large "
"collections."
msgstr ""
-"<literal>lazy</literal> (opcional - por defecto a <literal>true</literal>) "
-"puede ser usado para deshabilitar la recuperación perezosa y "
-"especificar que la asociación es siempre recuperada tempranamente (no "
-"disponible para arrays)"
+"<literal>lazy</literal> (opcional - por defecto es <literal>true</literal>): "
+"deshabilita la recuperación perezosa y especifica que la asociación siempre "
+"es recuperada tempranamente. También se puede utilizar para activar una "
+"recuperación \"extra-perezoza\", en donde la mayorÃa de las operaciones no "
+"inicializan la colección. Esto es apropiado para colecciones grandes."
#. Tag: para
-#: collection_mapping.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): marks this collection as the \"inverse\" end of a bidirectional "
"association."
msgstr ""
-"<literal>inverse</literal> (opcional - por defecto a <literal>false</"
-"literal>) marca esta colección como el extremo \"inverso\" de una "
-"asociación bidireccional."
+"<literal>inverse</literal> (opcional - por defecto es <literal>false</"
+"literal>): marca esta colección como el extremo \"inverso\" de una "
+"asociación bidireccional."
#. Tag: para
-#: collection_mapping.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
"enables operations to cascade to child entities."
msgstr ""
-"<literal>cascade</literal> (opcional - por defecto a <literal>none</"
-"literal>) habilita operaciones en cascada a entidades hijas"
+"<literal>cascade</literal> (opcional - por defecto es <literal>none</"
+"literal>): habilita operaciones en cascada para entidades hijas."
#. Tag: para
-#: collection_mapping.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
"<literal>natural</literal> sort order or a given comparator class."
msgstr ""
-"<literal>sort</literal> (opcional) especifica una colección con "
-"ordenamiento <literal>natural</literal>, o una clase comparadora dada"
+"<literal>sort</literal> (opcional): especifica una colección con "
+"ordenamiento <literal>natural</literal>, o una clase comparadora dada."
#. Tag: para
-#: collection_mapping.xml:179
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>Map</"
"literal>, <literal>Set</literal> or bag, together with an optional "
"<literal>asc</literal> or <literal>desc</literal>."
msgstr ""
-"<literal>order-by</literal> (opcional, sólo JDK1.4) especifica una "
-"columna de tabla (o columnas) que definen el orden de iteración del "
-"<literal>Map</literal>, <literal>Set</literal> o bag, junto a un "
+"<literal>order-by</literal> (opcional, sólamente en JDK1.4): especifica una "
+"columna de tabla o columnas que definen el orden de iteración del "
+"<literal>Map</literal>, <literal>Set</literal> o bag junto con un "
"<literal>asc</literal> o <literal>desc</literal> opcional."
#. Tag: para
-#: collection_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition that is used when retrieving or removing "
"the collection. This is useful if the collection needs to contain only a "
"subset of the available data."
msgstr ""
-"<literal>where</literal> (opcional) especifica una condición "
-"<literal>WHERE</literal> de SQL arbitrario para ser usada al recuperar o "
-"quitar la colección (útil si la colección debe contener "
-"sólo un subconjunto de los datos disponibles)"
+"<literal>where</literal> (opcional): especifica una condición "
+"<literal>WHERE</literal> de SQL arbitraria que se utiliza al recuperar o "
+"quitar la colección. Esto es útil si la colección debe contener sólamente un "
+"subconjunto de los datos disponibles."
#. Tag: para
-#: collection_mapping.xml:193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
"chooses between outer-join fetching, fetching by sequential select, and "
"fetching by sequential subselect."
msgstr ""
-"<literal>fetch</literal> (opcional, por defecto a <literal>select</literal>) "
-"Elige entre recuperación por unión externa (outer-join), "
-"recuperar por selección secuencial, y recuperación por "
-"subselección secuencial."
+"<literal>fetch</literal> (opcional, por defecto es <literal>select</"
+"literal>): Elige entre la recuperación por unión externa (outer-join), la "
+"recuperación por selección secuencial y la recuperación por subselección "
+"secuencial."
#. Tag: para
-#: collection_mapping.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
-"<literal>batch-size</literal> (opcional, por defecto a <literal>1</literal>) "
-"especifica un \"tamaño de lote\" para la recuperar perezosamente "
-"instancias de esta colección."
+"<literal>batch-size</literal> (opcional, por defecto es <literal>1</"
+"literal>): especifica un \"tamaño de lote\" para recuperar perezosamente "
+"instancias de esta colección."
#. Tag: para
-#: collection_mapping.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the collection property "
"value."
msgstr ""
-"<literal>access</literal> (opcional - por defecto a <literal>property</"
-"literal>): La estrategia que debe usar Hibernate para acceder al valor de la "
-"propiedad."
+"<literal>access</literal> (opcional - por defecto es <literal>property</"
+"literal>): La estrategia que Hibernate utiliza para acceder al valor de la "
+"propiedad de colección."
#. Tag: para
-#: collection_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that changes to the state of the collection results in "
"increments of the owning entity's version. For one-to-many associations you "
"may want to disable this setting."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</"
-"literal>): Especifica que los cambios de estado de la colección "
-"resultan en incrementos de versión de la entidad dueña. (Para "
-"asociaciones uno a muchos, frecuentemente es razonable deshabilitar esta "
-"opción.)"
+"<literal>optimistic-lock</literal> (opcional - por defecto es <literal>true</"
+"literal>): Especifica que los cambios de estado de la colección causan "
+"incrementos de la versión de la entidad dueña. Para asociaciones uno a "
+"muchos, es posible que quiera deshabilitar esta opción."
#. Tag: para
-#: collection_mapping.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"a value of <literal>false</literal> specifies that the elements of the "
"collection never change. This allows for minor performance optimization in "
"some cases."
msgstr ""
-"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
-"A value of <literal>false</literal> specifies that the elements of the "
-"collection never change (a minor performance optimization in some cases)."
+"<literal>mutable</literal> (opcional - por defectos es <literal>true</"
+"literal>): Un valor <literal>false</literal> especifica que los elementos de "
+"la colección nunca cambian. En algunos casos, esto permite una pequeña "
+"optimización de rendimiento."
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
-msgstr "Claves foráneas de collección"
+msgstr "Claves foráneas de colección"
#. Tag: para
-#: collection_mapping.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
"the entity that owns the collection. This foreign key is referred to as the "
@@ -470,69 +335,50 @@
"table. The collection key column is mapped by the <literal><key></"
"literal> element."
msgstr ""
-"Las instancias de colección se distinguen en la base de datos por la "
-"clave foránea de la entidad que posee la colección. Se hace "
-"referencia a esta clave foránea como la <emphasis>columna clave de "
-"colección</emphasis> (o columnas) de la tabla de colección. La "
-"columna clave de la colección es mapeada por el elemento <literal><"
-"key></literal>."
+"Las instancias de colección se distinguen en la base de datos por la clave "
+"foránea de la entidad que posee la colección. Se hace referencia a esta "
+"clave foránea como la <emphasis>columna clave de colección</emphasis> o "
+"columnas de la tabla de colección. El elemento <literal><key></"
+"literal> mapea la columna clave de la colección."
#. Tag: para
-#: collection_mapping.xml:240
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
"collections, this is implied. For unidirectional one-to-many associations, "
"the foreign key column is nullable by default, so you may need to specify "
"<literal>not-null=\"true\"</literal>."
msgstr ""
-"Puede haber una restricción de nulabilidad sobre la columna de clave "
-"foránea. Para la mayoría de colecciones, esto está "
-"implicado. Para asociaciones unidireccionales uno a muchos, la columna de "
-"clave foránea es nulable por defecto, de modo que podrías "
-"necesitar especificar <literal>not-null=\"true\"</literal>."
+"Puede haber una restricción de nulabilidad sobre la columna de clave "
+"foránea. Para la mayorÃa de las colecciones, esto es implÃcito. Para "
+"asociaciones unidireccionales uno-a-muchos, la columna de clave foránea es "
+"nulable por defecto, de modo que puede que necesite especificar <literal>not-"
+"null=\"true\"</literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:247
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-
#. Tag: para
-#: collection_mapping.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
msgstr ""
-"La restricción de clave foránea puede usar <literal>ON DELETE "
-"CASCADE</literal>."
+"La restricción de clave foránea puede utilizar <literal>ON DELETE CASCADE</"
+"literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-"<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
"literal> element."
msgstr ""
-"Mira el capítulo anterior por una definición completa del "
-"elemento <literal><key></literal>."
+"Vea el capÃtulo anterior para obtener una definición completa del elemento "
+"<literal><key></literal>."
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
-msgstr "Elementos de collección"
+msgstr "Elementos de collección"
#. Tag: para
-#: collection_mapping.xml:265
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and references to other entities. This is an "
@@ -542,18 +388,16 @@
"latter case, only the \"link\" between the two objects is considered to be a "
"state held by the collection."
msgstr ""
-"Las colecciones pueden contener casi cualquier tipo de Hibernate, incluyendo "
-"todos los tipos básicos, componentes, y por supuesto, referencias a "
-"otras entidades. Esta es una distinción importante: un objeto en una "
-"colección puede ser manejado con una semántica de \"valor"
-"\" (su ciclo de vida depende completamente del propietario de la "
-"colección) o podría ser una referencia a otra entidad, con su "
-"propio ciclo de vida. En el último caso, sólo el estado del "
-"\"enlace\" entre los dos objetos se considera mantenido por la "
-"colección."
+"Las colecciones pueden contener casi cualquier tipo de Hibernate, "
+"incluyendo: los tipos básicos, personalizados, componentes y referencias a "
+"otras entidades. Esta es una diferencia importante. Un objeto en una "
+"colección puede ser manejado con una semántica de \"valor\" (su ciclo de "
+"vida depende completamente del propietario de la colección) o podrÃa ser una "
+"referencia a otra entidad, con su propio ciclo de vida. En el último caso, "
+"sólamente el \"enlace\" entre los dos objetos se considera como un estado "
+"mantenido por la colección."
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -564,22 +408,20 @@
"value semantics, the next two are used to map entity associations."
msgstr ""
"Se hace referencia al tipo contenido como el <emphasis>tipo de elemento de "
-"la colección</emphasis>. Los elementos de colección son "
-"mapeados por <literal><element></literal> o <literal><composite-"
-"element></literal>, o en el caso de referencias de entidades, con "
-"<literal><one-to-many></literal> o <literal><many-to-many></"
-"literal>. Las dos primeras mapean elementos con semántica de valor, "
-"los dos siguientes son usados para mapear asociaciones de entidades."
+"la colección</emphasis>. Los elementos de colección son mapeados por "
+"<literal><element></literal> o <literal><composite-element></"
+"literal>, o en el caso de referencias de entidades, con <literal><one-to-"
+"many></literal> o <literal><many-to-many></literal>. Las dos "
+"primeras mapean elementos con semántica de valor, los dos siguientes se "
+"utilizan para mapear asociaciones de entidades."
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
msgstr "Colecciones indexadas"
#. Tag: para
-#: collection_mapping.xml:288
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column</emphasis> in the collection table. An index column "
@@ -593,553 +435,357 @@
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
-"Todos los mapeos de colección, excepto aquellos con semántica "
-"de set o bag, necesitan una <emphasis>columna índice</emphasis> en la "
-"tabla de colección, una columna que mapea a un índice de "
-"array, o índice de <literal>List</literal>, o clave de <literal>Map</"
-"literal>. El índice de un <literal>Map</literal> puede ser de "
-"cualquier tipo básico, mapeado con <literal><map-key></"
-"literal>, o puede ser una referencia de entidad, mapeada con <literal><"
-"map-key-many-to-many></literal>, o puede ser un tipo compuesto, mapeado "
-"con <literal><composite-map-key></literal>. El índice de un "
-"array o lista es siempre de tipo <literal>integer</literal> y se mapea "
-"usando el elemento <literal><list-index></literal>. La columna mapeada "
-"contiene enteros secuenciales (numerados desde cero, por defecto)."
+"Todos los mapeos de colección, excepto aquellos con semántica de set o bag, "
+"necesitan una <emphasis>columna Ãndice</emphasis> en la tabla de colección. "
+"Una columna Ãndice es una columna que mapea a un Ãndice de array o Ãndice de "
+"<literal>List</literal> o llave de <literal>Map</literal>. El Ãndice de un "
+"<literal>Map</literal> puede ser de cualquier tipo básico, mapeado con "
+"<literal><map-key></literal>. Puede ser una referencia de entidad "
+"mapeada con <literal><map-key-many-to-many></literal>, o puede ser un "
+"tipo compuesto mapeado con <literal><composite-map-key></literal>. El "
+"Ãndice de un array o lista es siempre de tipo <literal>integer</literal> y "
+"se mapea utilizando el elemento <literal><list-index></literal>. La "
+"columna mapeada contiene enteros secuenciales numerados desde cero, por "
+"defecto."
-#. Tag: sect2
-#: collection_mapping.xml:299
-#, fuzzy, no-c-format
+#. Tag: para
+#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
msgstr ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (requerido): El "
-"nombre de la columna que tiene los valores índice de la "
-"colección. </para> </callout> <callout arearefs=\"index1\"> <para> "
-"<literal>base</literal> (opcional, por defecto a <literal>0</literal>): El "
-"valor de la columna índice que corresponde al primer elemento de la "
-"lista o array. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"mapkey1\" coords=\"2 45\"/> <area "
-"id=\"mapkey2\" coords=\"3 45\"/> <area id=\"mapkey3\" coords=\"4 45\"/> </"
-"areaspec> <programlisting><![CDATA[<map-key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (opcional): El nombre de la "
-"columna que tiene los valores índice de la colección. </para> "
-"</callout> <callout arearefs=\"mapkey2\"> <para> <literal>formula</literal> "
-"(opcional): Una fórmula SQL usada para evaluar la clave del mapa. </"
-"para> </callout> <callout arearefs=\"mapkey3\"> <para> <literal>type</"
-"literal> (requerido): el tipo de las claves del mapa. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"indexmanytomany1\" coords=\"2 45\"/> <area id=\"indexmanytomany2\" coords="
-"\"3 45\"/> <area id=\"indexmanytomany3\" coords=\"3 45\"/> </areaspec> "
-"<programlisting><![CDATA[<map-key-many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (opcional): El nombre de la columna clave "
-"foránea para los valores índice de la colección. </"
-"para> </callout> <callout arearefs=\"indexmanytomany2\"> <para> "
-"<literal>formula</literal> (opcional): Una fórmula SQL usada para "
-"evaluar la clave foránea de la clave del mapa. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(requerido): La clase de entidad usada como clave del mapa. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"<literal>column_name</literal> (requerido): el nombre de la columna que "
+"tiene los valores del Ãndice de la colección."
#. Tag: para
-#: collection_mapping.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
+msgstr ""
+"<literal>base</literal> (opcional - por defecto es <literal>0</literal>): el "
+"valor de la columna Ãndice que corresponde al primer elemento de la lista o "
+"el array."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr ""
+"<literal>column</literal> (opcional): el nombre de la columna que tiene los "
+"valores del Ãndice de colecciones."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
+msgstr ""
+"<literal>formula</literal> (opcional): una fórmula SQL que se usa para "
+"evaluar la clave del mapa."
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>type</literal> (requerido): el tipo de las claves del mapa."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr ""
+"<literal>column</literal> (opcional): el nombre de la columna de la clave "
+"foránea para los valores del Ãndice de la colección."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+"<literal>formula</literal> (opcional): una fórmula SQ utilizada para evaluar "
+"la clave foránea de la clave de mapeos."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr ""
+"<literal>class</literal> (requerido): La clase de entidad que se usa como la "
+"clave mapeada. "
+
+#. Tag: para
+#, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
"when it is retrieved from the database, but it can be optionally sorted or "
"ordered."
msgstr ""
-"Si tu tabla no tiene una columna índice, y deseas aún usar "
-"<literal>List</literal> como tipo de propiedad, debes mapear la propiedad "
+"Si su tabla no tiene una columna Ãndice y todavÃa desea utilizar "
+"<literal>List</literal> como tipo de propiedad, puede mapear la propiedad "
"como un <emphasis><bag></emphasis> de Hibernate. Un bag (bolsa) no "
"retiene su orden al ser recuperado de la base de datos, pero puede ser "
-"ordenado o clasificado opcionalmente."
+"ordenado o clasificado de manera opcional."
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
msgstr "Colecciones de valores y asociaciones muchos-a-muchos"
#. Tag: para
-#: collection_mapping.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table</emphasis> with a foreign key column or columns, "
"<emphasis>collection element column</emphasis> or columns, and possibly an "
"index column or columns."
msgstr ""
-"Cualquier colección de valores o asociación muchos a muchos "
-"requiere una <emphasis>tabla de colección</emphasis> dedicada con una "
-"columna o columnas de clave foránea, <emphasis>columna de elemento de "
-"colección</emphasis> o columnas y posiblemente una columna o columnas "
-"índice."
+"Cualquier colección de valores o asociación muchos-a-muchos requiere una "
+"<emphasis>tabla de colección</emphasis> dedicada con una columna o columnas "
+"de clave foránea, <emphasis>columna de elemento de colección</emphasis> o "
+"columnas y posiblemente una columna o columnas Ãndices."
#. Tag: para
-#: collection_mapping.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
"For example:"
msgstr ""
-"Para una colección de valores, usamos la etiqueta <literal><"
-"element></literal>."
+"Para una colección de valores utilice la etiqueta <literal><element></"
+"literal>. Por ejemplo:"
-#. Tag: sect2
-#: collection_mapping.xml:401
-#, fuzzy, no-c-format
+#. Tag: para
+#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
-"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
-"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
-"enables outer-join or sequential select fetching for this association. This "
-"is a special case; for full eager fetching in a single <literal>SELECT</"
-"literal> of an entity and its many-to-many relationships to other entities, "
-"you would enable <literal>join</literal> fetching,not only of the collection "
-"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"collection element values."
msgstr ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
-"<literal>column</literal> (opcional): El nombre de la columna que tiene los "
-"valores de los elementos de la colección. </para> </callout> <callout "
-"arearefs=\"element2b\"> <para> <literal>formula</literal> (opcional): Una "
-"fórmula SQL usada para evaluar el elemento. </para> </callout> "
-"<callout arearefs=\"element3b\"> <para> <literal>type</literal> (requerido): "
-"El tipo del elemento de colección. </para> </callout> </calloutlist> "
-"</programlistingco> <para> Una <emphasis>asociación muchos-a-muchos</"
-"emphasis> se especifica usando el elemento <literal><many-to-many></"
-"literal>. </para> <programlistingco> <areaspec> <area id=\"manytomany1\" "
-"coords=\"2 60\"/> <area id=\"manytomany2\" coords=\"3 60\"/> <area id="
-"\"manytomany3\" coords=\"4 60\"/> <area id=\"manytomany4\" coords=\"5 60\"/> "
-"<area id=\"manytomany5\" coords=\"6 60\"/> <area id=\"manytomany6\" coords="
-"\"7 60\"/> <area id=\"manytomany7\" coords=\"8 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (opcional): El nombre de la columna de "
-"clave foránea del elemento. </para> </callout> <callout arearefs="
-"\"manytomany2\"> <para> <literal>formula</literal> (opcional): Una fó"
-"rmula SQL opcional usada para evaluar el valor de clave foránea del "
-"elemento. </para> </callout> <callout arearefs=\"manytomany3\"> <para> "
-"<literal>class</literal> (requerido): El nombre de la clase asociada. </"
-"para> </callout> <callout arearefs=\"manytomany4\"> <para> <literal>fetch</"
-"literal> (opcional - por defecto a <literal>join</literal>): habilita la "
-"recuperación por unión externa o selección secuencial "
-"para esta asociación. Este es un caso especial; para una "
-"recuperación completamente temprana (en un solo <literal>SELECT</"
-"literal>) de una entidad y sus relaciones muchos-a-muchos a otras entidades, "
-"deberías habilitar la recuperación <literal>join</literal> no "
-"sólo de la colección misma, sino también con este "
-"atributo en el elemento anidado <literal><many-to-many></literal>. </"
-"para> </callout> <callout arearefs=\"manytomany5\"> <para> <literal>unique</"
-"literal> (opcional): Habilita la generación DDL de una "
-"restricción de unicidad para la columna clave foránea. Esto "
-"hace la multiplicidad de la asociación efectivamente uno a muchos. </"
-"para> </callout> <callout arearefs=\"manytomany6\"> <para> <literal>not-"
-"found</literal> (opcional - por defecto a <literal>exception</literal>): "
-"Especifica cómo serán manejadas las claves foráneas que "
-"referencian filas perdidas: <literal>ignore</literal> tratará una "
-"fila perdida como una asociación nula. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (opcional): "
-"El nombre de entidad de la clase asociada, como una alternativa a "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> UNTRANSLATED! <literal>property-ref</literal>: (optional) The "
-"name of a property of the associated class that is joined to this foreign "
-"key. If not specified, the primary key of the associated class is used. </"
-"para> </callout> </calloutlist> </programlistingco>"
+"<literal>column</literal> (opcional): el nombre de la columna que tiene los "
+"valores de los elementos de la colección."
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element."
msgstr ""
+"<literal>formula</literal> (opcional): una fórmula SQL utilizada para "
+"evaluar el elemento."
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
-msgid "A set of strings:"
+msgid "<literal>type</literal> (required): the type of the collection element."
msgstr ""
+"<literal>type</literal> (requerido): el tipo del elemento de colección."
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
msgstr ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"Una <emphasis>asociación muchos-a-muchos</emphasis> se especifica usando el "
+"elemento <literal><many-to-many></literal>."
#. Tag: para
-#: collection_mapping.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"A bag containing integers with an iteration order determined by the "
-"<literal>order-by</literal> attribute:"
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
msgstr ""
-"Un bag conteniendo enteros (con un orden de iteración determinado por "
-"el atributo <literal>order-by</literal>):"
+"<literal>column</literal> (opcional): el nombre de la columna de clave "
+"foránea elemento."
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
msgstr ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
+"<literal>formula</literal> (opcional): una fórmula SQL utilizada para "
+"evaluar el valor de la clave foránea elemento."
#. Tag: para
-#: collection_mapping.xml:522
-#, fuzzy, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
+#, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal> (requerido): El nombre de la clase asociada. "
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
+"enables outer-join or sequential select fetching for this association. This "
+"is a special case; for full eager fetching in a single <literal>SELECT</"
+"literal> of an entity and its many-to-many relationships to other entities, "
+"you would enable <literal>join</literal> fetching,not only of the collection "
+"itself, but also with this attribute on the <literal><many-to-many></"
+"literal> nested element."
msgstr ""
-"Un array de entidades - en este caso, una asociación muchos a muchos:"
+"<literal>fetch</literal> (opcional - por defecto es <literal>join</"
+"literal>): habilita la búsqueda de selects secuenciales o de unión externa "
+"para esta asociación. Este es un caso especial; para búsqueda temprana "
+"completa en un solo <literal>SELECT</literal> de una entidad y sus "
+"relaciones muchos-a-muchos con otras entidades, habilitarÃa la búsqueda "
+"<literal>join</literal>,no solo de la colección misma, si no también con "
+"este atributo en el elemento anidado <literal><many-to-many></literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
msgstr ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"<literal>unique</literal> (opcional): habilita la generación DDL de una "
+"restricción única para la columna de la clave foránea. Esto hace la "
+"multiplicidad de la asociación efectivamente uno-a-muchos."
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
-msgstr "Un mapa de índices de cadenas a fechas:"
+msgid ""
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
+msgstr ""
+"<literal>not-found</literal> (opcional - por defecto es <literal>exception</"
+"literal>): Especifica cómo serán manejadas las claves foráneas que hacen "
+"referencia a filas que falten: <literal>ignore</literal> tratará una fila "
+"que falte como una asociación nula."
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
msgstr ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
+"<literal>entity-name</literal> (opcional): El nombre de entidad de la clase "
+"asociada como una alternativa para <literal>class</literal>. "
#. Tag: para
-#: collection_mapping.xml:534
-#, fuzzy, no-c-format
-msgid "A list of components (this is discussed in the next chapter):"
+#, no-c-format
+msgid ""
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
msgstr ""
-"Una lista de componentes (discutidos en el próximo capítulo):"
+"<literal>property-ref</literal> (opcional): el nombre de una propiedad de la "
+"clase asociada que está unida a esta clave foránea. Si no se especifica "
+"entonces se utiliza la clave principal de la clase asociada."
-#. Tag: programlisting
-#: collection_mapping.xml:538
+#. Tag: para
#, no-c-format
+msgid "Here are some examples."
+msgstr "Aquà tiene algunos ejemplos:"
+
+#. Tag: para
+#, no-c-format
+msgid "A set of strings:"
+msgstr "Un grupo de cadenas:"
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
+"A bag containing integers with an iteration order determined by the "
+"<literal>order-by</literal> attribute:"
msgstr ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
+"Un bag que contiene enteros con un orden de iteración determinado por el "
+"atributo <literal>order-by</literal>:"
+#. Tag: para
+#, no-c-format
+msgid "An array of entities, in this case, a many-to-many association:"
+msgstr "Una lista de entidades, en este caso, una asociación muchos-a-muchos:"
+
+#. Tag: para
+#, no-c-format
+msgid "A map from string indices to dates:"
+msgstr "Un mapeo de Ãndices de cadenas a fechas:"
+
+#. Tag: para
+#, no-c-format
+msgid "A list of components (this is discussed in the next chapter):"
+msgstr "Una lista de componentes (se discuten en el siguiente capÃtulo):"
+
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
msgstr "Asociaciones uno-a-muchos"
#. Tag: para
-#: collection_mapping.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
msgstr ""
-"Una <emphasis>asociación uno a muchos</emphasis> enlaza las tablas de "
-"dos clases por medio de una clave foránea, sin intervención de "
-"tabla de colección alguna. Este mapeo pierde cierta semántica "
-"de colecciones Java normales:"
+"Una <emphasis>asociación uno-a-muchos</emphasis> enlaza las tablas de dos "
+"clases por medio de una clave foránea, sin intervención de tabla de "
+"colección alguna. Este mapeo pierde cierta semántica de colecciones Java "
+"normales: "
#. Tag: para
-#: collection_mapping.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
msgstr ""
-"Una instancia de la clase entidad contenida no puede pertenecer a más "
-"de una instancia de la colección."
+"Una instancia de la clase entidad contenida no puede pertenecer a más de una "
+"instancia de la colección. "
#. Tag: para
-#: collection_mapping.xml:559
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
msgstr ""
-"Una instancia de la clase entidad contenida no puede aparecer en más "
-"de un valor del índice de colección."
+"Una instancia de la clase entidad contenida no puede aparecer en más de un "
+"valor del Ãndice de colección. "
#. Tag: para
-#: collection_mapping.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
"requires the existence of a foreign key column and possibly an index column "
"to the <literal>Part</literal> table. A <literal><one-to-many></"
"literal> tag indicates that this is a one-to-many association."
msgstr ""
-"Una asociación de <literal>Product</literal> a <literal>Part</"
-"literal> requiere la existencia de una columna clave foránea y "
-"posiblemente una columna índice a la tabla <literal>Part</literal>. "
-"Una etiqueta <literal><one-to-many></literal> indica que ésta "
-"es una asociación uno a muchos."
+"Una asociación de <literal>Product</literal> a <literal>Part</literal> "
+"requiere la existencia de una columna clave foránea y posiblemente una "
+"columna Ãndice a la tabla <literal>Part</literal>. Una etiqueta <literal><"
+"one-to-many></literal> indica que ésta es una asociación uno-a-muchos."
-#. Tag: programlisting
-#: collection_mapping.xml:579
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-msgstr ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-
-#. Tag: para
-#: collection_mapping.xml:582
-#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr "<literal>class</literal> (requerido): El nombre de la clase asociada."
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
-msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
"be handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (opcional - por defecto a <literal>exception</"
-"literal>): Especifica cómo serán manejados los identificadores "
-"en caché que referencien filas perdidas: <literal>ignore</literal> "
-"tratará una fila perdida como una asociación nula."
+"<literal>not-found</literal> (opcional - por defecto es <literal>exception</"
+"literal>): Especifica cómo serán manejados los identificadores en caché que "
+"referencien filas perdidas. <literal>ignore</literal> tratará una fila "
+"perdida como una asociación nula."
#. Tag: para
-#: collection_mapping.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"<literal>entity-name</literal> (opcional): El nombre de entidad de la clase "
-"asociada, como una alternativa a <literal>class</literal>."
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
msgstr ""
-"Observa que el elemento <literal><one-to-many></literal> no necesita "
-"declarar ninguna columna. Ni es necesario especificar el nombre de "
-"<literal>table</literal> en ningún sitio."
+"El elemento <literal><one-to-many></literal> no necesita declarar "
+"ninguna columna. Ni es necesario especificar el nombre de <literal>table</"
+"literal> en ningún sitio."
#. Tag: para
-#: collection_mapping.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
"association is declared <literal>NOT NULL</literal>, you must declare the "
@@ -1148,59 +794,37 @@
"mapping marked <literal>inverse=\"true\"</literal>. See the discussion of "
"bidirectional associations later in this chapter for more information."
msgstr ""
-"<emphasis>Nota muy importante:</emphasis> Si la columna clave foránea "
-"de una asociación <literal><one-to-many></literal> es declarada "
-"<literal>NOT NULL</literal>, debes declarar el mapeo de <literal><key>"
-"</literal> <literal>not-null=\"true\"</literal> o <emphasis>usar una "
-"asociación bidireccional</emphasis> con el mapeo de colección "
-"marcado <literal>inverse=\"true\"</literal>. Ver la discusión sobre "
-"asociaciones bidireccionales más adelante en este capítulo."
+"Si la columna de la clave foránea de una asociación <literal><one-to-"
+"many></literal> se declara <literal>NOT NULL</literal>, debe declarar el "
+"mapeo de <literal><key></literal><literal>not-null=\"true\"</literal> "
+"o <emphasis> utilizar una asociación bidireccional</emphasis> con el mapeo "
+"de colección marcado <literal>inverse=\"true\"</literal>. Vea la discusión "
+"sobre asociaciones bidireccionales más adelante en este capÃtulo para "
+"obtener mayor información."
#. Tag: para
-#: collection_mapping.xml:619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
"name, where <literal>partName</literal> is a persistent property of "
"<literal>Part</literal>. Notice the use of a formula-based index:"
msgstr ""
-"Este ejemplo muestra un mapa de entidades <literal>Part</literal> por nombre "
-"(donde <literal>partName</literal> es una propiedad persistente de "
-"<literal>Part</literal>). Observa el uso de un índice basado en "
-"fórmula."
+"El siguiente ejemplo muestra un mapeo de entidades <literal>Part</literal> "
+"por nombre, en donde <literal>partName</literal> es una propiedad "
+"persistente de <literal>Part</literal>. Observe el uso de un Ãndice basado "
+"en fórmula:"
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
-msgstr "Mapeos de colección avanzados"
+msgstr "Mapeos de colección avanzados"
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr "Colecciones ordenadas"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
@@ -1208,41 +832,10 @@
"comparator in the mapping file:"
msgstr ""
"Hibernate soporta colecciones implementando <literal>java.util.SortedMap</"
-"literal> y <literal>java.util.SortedSet</literal>. Debes especificar un "
-"comparador en el fichero de mapeo:"
+"literal> y <literal>java.util.SortedSet</literal>. Tiene que especificar un "
+"comparador en el archivo de mapeo:"
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
@@ -1254,7 +847,6 @@
"clase que implemente <literal>java.util.Comparator</literal>."
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
@@ -1264,8 +856,7 @@
"TreeSet</literal> o <literal>java.util.TreeMap</literal>."
#. Tag: para
-#: collection_mapping.xml:654
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by</literal> attribute of <literal>set</literal>, "
@@ -1274,315 +865,149 @@
"<literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>. This "
"performs the ordering in the SQL query and not in the memory."
msgstr ""
-"Si quieres que la misma base de datos ordene los elementos de colecció"
-"n usa el atributo <literal>order-by</literal> de los mapeos <literal>set</"
-"literal>, <literal>bag</literal> o <literal>map</literal>. Esta "
-"solución está disponible sólo bajo el JDK 1.4 o "
-"superior (está implementado usando <literal>LinkedHashSet</literal> o "
-"<literal>LinkedHashMap</literal>). Esto realiza la ordenación en la "
-"consulta SQL, no en memoria."
+"Si quiere que la misma base de datos ordene los elementos de la colección, "
+"utilice el atributo <literal>order-by</literal> de los mapeos <literal>set</"
+"literal>, <literal>bag</literal> o <literal>map</literal>. Esta solución "
+"está disponible sólamente bajo el JDK 1.4 o superior y se implementa "
+"utilizando <literal>LinkedHashSet</literal> o <literal>LinkedHashMap</"
+"literal>. Este realiza la ordenación en la consulta SQL y no en memoria."
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: collection_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
-"Observa que el valor del atributo <literal>order-by</literal> es una "
-"ordenación SQL, no una ordenación HQL!"
+"El valor del atributo <literal>order-by</literal> es una ordenación SQL, no "
+"una ordenación HQL."
#. Tag: para
-#: collection_mapping.xml:673
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter()</literal>:"
msgstr ""
-"Las asociaciones pueden incluso ser ordenadas por algún criterio "
-"arbitrario en tiempo de ejecución usando un <literal>filter()</"
-"literal> de colección."
+"Las asociaciones pueden incluso ser ordenadas por algún criterio arbitrario "
+"en tiempo de ejecución utilizando un <literal>filter()</literal> de "
+"colección:"
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr "Asociaciones bidireccionales"
#. Tag: para
-#: collection_mapping.xml:685
#, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
-"Una <emphasis>asociación bidireccional</emphasis> permite la "
-"nevegación desde ambos \"extremos\" de la asociación. Son "
-"soportados dos tipos de asociación bidireccional:"
+"Una <emphasis>asociación bidireccional</emphasis> permite la navegación "
+"desde ambos \"extremos\" de la asociación. Se soportan dos tipos de "
+"asociación bidireccional:"
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
msgstr "uno-a-muchos"
#. Tag: para
-#: collection_mapping.xml:694
-#, fuzzy, no-c-format
+#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
-msgstr "set o bag valorados en un extremo, monovaluados al otro"
+msgstr "conjunto o bag valorados en un lado, monovaluados en el otro"
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
msgstr "muchos-a-muchos"
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
-msgstr "set o bag valorados a ambos extremos"
+msgstr "set o bag valorados en ambos extremos"
#. Tag: para
-#: collection_mapping.xml:711
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
-"Puedes especificar una asociación bidireccional muchos-a-muchos "
-"simplemente mapeando dos asociaciones muchos-a-muchos a la misma tabla de "
-"base de datos y declarando un extremo como <emphasis>inverse</emphasis> "
-"(cuál de ellos es tu elección, pero no puede ser una "
-"colección indexada)."
+"Puede especificar una asociación bidireccional muchos-a-muchos simplemente "
+"mapeando dos asociaciones muchos-a-muchos a la misma tabla de base de datos "
+"y declarando un extremo como <emphasis>inverso</emphasis> (cuál de ellos, "
+"usted escoge, pero no puede ser una colección indexada)."
#. Tag: para
-#: collection_mapping.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
-"He aquí un ejemplo de una asociación bidireccional muchos-a-"
-"muchos; cada categoría puede tener muchos ítems y cada í"
-"tem puede estar en muchas categorías:"
+"He aquà un ejemplo de una asociación bidireccional muchos-a-muchos que "
+"ilustra la manera en que cada categorÃa puede tener muchos Ãtems y cada Ãtem "
+"puede estar en muchas categorÃas:"
-#. Tag: programlisting
-#: collection_mapping.xml:723
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:725
-#, fuzzy, no-c-format
-msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
"emphasis> persisted. This means that Hibernate has two representations in "
"memory for every bidirectional association: one link from A to B and another "
"link from B to A. This is easier to understand if you think about the Java "
"object model and how a many-to-many relationship in Javais created:"
msgstr ""
-"Los cambios hechos sólo al extremo inverso de la asociación "
+"Los cambios realizados sólamente al extremo inverso de la asociación "
"<emphasis>no</emphasis> son persistidos. Esto significa que Hibernate tiene "
-"dos representaciones en memoria para cada asociación bidireccional, "
-"una enlaza de A a B y otra enlaza de B a A. Esto es más fácil "
-"de entender si piensas en el modelo de objetos de Java y cómo creamos "
-"una relación muchos-a-muchos en Java:"
+"dos representaciones en memoria para cada asociación bidireccional: un "
+"enlace de A a B y otro enlace de B a A. Esto es más fácil de entender si "
+"piensa en el modelo de objetos de Java y cómo creamos una relación muchos-a-"
+"muchos en Java:"
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
"database."
msgstr ""
-"El lado no-inverso se usa para salvar la representación en memoria a "
-"la base de datos."
+"El lado no-inverso se utiliza para guardar la representación en memoria a la "
+"base de datos."
#. Tag: para
-#: collection_mapping.xml:739
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
"many association to the same table column(s) as a many-to-one association "
"and declaring the many-valued end <literal>inverse=\"true\"</literal>."
msgstr ""
-"Puedes definir una asociación bidireccional uno-a-muchos mapeando una "
-"asociación uno-a-muchos a la misma columna (o columnas) de tabla como "
-"una asociación muchos-a-uno y declarando el extremo multivaluado "
+"Puede definir una asociación bidireccional uno-a-muchos mapeando una "
+"asociación uno-a-muchos a la misma columna (o columnas) de tabla como una "
+"asociación muchos-a-uno y declarando el extremo multivaluado "
"<literal>inverse=\"true\"</literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:745
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"eg.Child\">\n"
-" <id name=\"id\" column=\"id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:747
-#, fuzzy, no-c-format
-msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
-"Mapear un extremo de una asociación con <literal>inverse=\"true\"</"
-"literal> no afecta la operación de cascadas; éstos son "
-"conceptos ortogonales!"
+"Mapear un extremo de una asociación con <literal>inverse=\"true\"</literal> "
+"no afecta la operación de cascadas ay que éstos son conceptos ortogonales."
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "Asociaciones bidireccionales con colecciones indexadas"
#. Tag: para
-#: collection_mapping.xml:756
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <literal><map></literal>, requires special "
@@ -1590,217 +1015,75 @@
"index column you can use <literal>inverse=\"true\"</literal> on the "
"collection mapping:"
msgstr ""
-"Requiere especial consideración una asociación bidireccional "
-"donde un extremo esté representado como una <literal><list></"
-"literal> o <literal><map></literal>. Si hay una propiedad de la clase "
-"hija que mapee a la columna índice, no hay problema, podemos seguir "
-"usando <literal>inverse=\"true\"</literal> en el mapeo de la colecció"
-"n:"
+"Requiere especial atención una asociación bidireccional en donde un extremo "
+"esté representado como una <literal><list></literal> o <literal><"
+"map></literal>. Si hay una propiedad de la clase hija que mapee a la "
+"columna Ãndice, puede utilizar <literal>inverse=\"true\"</literal> en el "
+"mapeo de la colección:"
-#. Tag: programlisting
-#: collection_mapping.xml:763
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:765
-#, fuzzy, no-c-format
-msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
"case, you cannot map the collection <literal>inverse=\"true\"</literal>. "
"Instead, you could use the following mapping:"
msgstr ""
-"Pero, si no existe tal proiedad en la clase hija, no podemos pensar en la "
-"asociación como verdaderamente bidireccional (hay información "
-"en un extremo de la asociación que no está disponible en el "
-"otro extremo). En este caso, no podemos mapear la colección con "
-"<literal>inverse=\"true\"</literal>. En cambio, podríamos usar el "
-"siguiente mapeo:"
+"Si no existe tal propiedad en la clase hija, no podemos considerar la "
+"asociación como verdaderamente bidireccional. Es decir, hay información en "
+"un extremo de la asociación que no está disponible en el otro extremo. En "
+"este caso, no puede mapear la colección con <literal>inverse=\"true\"</"
+"literal>. En cambio, puede usar el siguiente mapeo:"
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
msgstr ""
-"Nota que, en este mapeo, el extremo de la asociación valuado en "
-"colección es responsable de las actualizaciones a la clave forá"
-"nea."
+"Note que en este mapeo, el extremo de la asociación valuado en colección es "
+"responsable de las actualizaciones de la clave foránea."
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "Asociaciones ternarias"
#. Tag: para
-#: collection_mapping.xml:784
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
-"Hay tres enfoques posibles para mapear una asociación ternaria. Una "
-"es usar un <literal>Map</literal> con una asociación como su í"
-"ndice:"
+"Hay tres enfoques posibles para mapear una asociación ternaria. Una es "
+"utilizar un <literal>Map</literal> con una asociación como su Ãndice: "
-#. Tag: programlisting
-#: collection_mapping.xml:789
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:793
-#, fuzzy, no-c-format
-msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
-"Un segundo enfoque es simplemente remodelar la asociación como una "
-"clase de entidad. Este es el enfoque que usamos más comunmente."
+"Un segundo enfoque es remodelar la asociación como una clase de entidad. "
+"Este es el enfoque más común."
#. Tag: para
-#: collection_mapping.xml:798
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
msgstr ""
-"Una alternativa final es usar elementos compuestos, que discutiremos "
-"más adelante."
+"La última opción es utilizar elementos compuestos que discutiremos más "
+"adelante."
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
-msgstr "Usando un <idbag>"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
+msgstr "<literal>Utilización de un <idbag></literal>"
#. Tag: para
-#: collection_mapping.xml:807
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
"shown previously all map to tables with composite keys, even though it has "
@@ -1811,486 +1094,146 @@
"feature that allows you to map many-to-many associations and collections of "
"values to a table with a surrogate key."
msgstr ""
-"Si has adoptado completamente nuestra visión de que las claves "
-"compuestas son una cosa mala y que las entidades deben tener identificadores "
-"sitéticos (claves delegadas), entonces podrías encontrar un "
-"poco raro que todas las asociaciones muchos a muchos y las colecciones de "
-"valores que hemos mostrado hasta ahora mapeen a tablas con claves "
-"compuestas! Ahora, este punto es discutible; una tabla de pura "
-"asociación no parece beneficiarse demasiado de una clave delegada "
-"(aunque sí <emphasis>podría</emphasis> una colección de "
-"valores compuestos). Sin embargo, Hibernate provee una funcionalidad que te "
-"permite mapear asociaciones muchos a muchos y colecciones de valores a una "
-"tabla con una clave delegada."
+"La mayorÃa de las asociaciones muchos-a-muchos y las colecciones de valores "
+"que hemos mostrado hasta ahora mapean a tablas con claves compuestas, aunque "
+"se ha sugerido que las entidades deben tener identificadores sintéticos "
+"(llaves sustitutas). Una tabla de pura asociación no parece beneficiarse "
+"mucho de una llave sustituta, aunque sà <emphasis>podrÃa</emphasis> "
+"beneficiarse una colección de valores compuestos. Es por esto que Hibernate "
+"brinda una funcionalidad que le permite mapear asociaciones muchos a muchos "
+"y colecciones de valores a una tabla con una llave sustituta."
#. Tag: para
-#: collection_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
"literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
-"El elemento <literal><idbag></literal> te permite mapear una "
-"<literal>List</literal> (o <literal>Collection</literal>) con semá"
-"ntica de bag."
+"El elemento <literal><idbag></literal> le permite mapear una "
+"<literal>List</literal> (o <literal>Collection</literal>) con semántica de "
+"bag. Por ejemplo:"
-#. Tag: programlisting
-#: collection_mapping.xml:822
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:824
-#, fuzzy, no-c-format
-msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
-"Como puedes ver, un <literal><idbag></literal> tiene un generador de "
-"id sintético, igual que una clase de entidad! Una clave delegada "
-"diferente se asigna a cada fila de la colección. Hibernate no provee "
-"ningún mecanismo para descubrir el valor de clave delegada de una "
-"fila en particular, sin embargo."
+"Un <literal><idbag></literal> tiene un generador de id sintético, al "
+"igual que una clase de entidad. Se asigna una clave delegada diferente a "
+"cada fila de la colección. Sin embargo, Hibernate no proporciona ningún "
+"mecanismo para descubrir el valor de la clave delegada de una fila en "
+"particular."
#. Tag: para
-#: collection_mapping.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
"regular <literal><bag></literal>. Hibernate can locate individual rows "
"efficiently and update or delete them individually, similar to a list, map "
"or set."
msgstr ""
-"Observa que el rendimiento de actualización de un <literal><"
-"idbag></literal> es <emphasis>mucho</emphasis> mejor que el de un "
-"<literal><bag></literal> regular! Hibernate puede localizar filas "
-"individuales eficientemente y actualizarlas o borrarlas individualmente, "
-"igual que si fuese una lista, mapa o conjunto."
+"El rendimiento de actualización de un <literal><idbag></literal> es "
+"mucho mejor que el de un <literal><bag></literal> normal. Hibernate "
+"puede localizar filas individuales eficientemente y actualizarlas o "
+"borrarlas individualmente, al igual que si fuese una lista, mapa o conjunto."
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
"generation strategy is not supported for <literal><idbag></literal> "
"collection identifiers."
msgstr ""
-"En la implementación actual, la estrategia de generación de "
-"identificador <literal>native</literal> no está soportada para "
-"identificadores de colecciones <literal><idbag></literal>."
+"En la implementación actual, la estrategia de generación de identificador "
+"<literal>native</literal> no se encuentra soportada para identificadores de "
+"colecciones <literal><idbag></literal>."
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
-msgstr "Ejemplos de colección"
+msgstr "Ejemplos de colección"
#. Tag: para
-#: collection_mapping.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This section covers collection examples."
-msgstr "Ejemplos de colección"
+msgstr "Esta sección cubre los ejemplos de colección. "
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
+"La siguiente clase tiene una colección de instancias <literal>Child</"
+"literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:871
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-
-#. Tag: para
-#: collection_mapping.xml:873
-#, fuzzy, no-c-format
-msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
-"tiene una colección de instancias de <literal>Child</literal>. Si "
-"cada hijo tiene como mucho un padre, el mapeo más natural es una "
-"asociación uno-a-muchos:"
+"Si cada hijo tiene como mucho un padre, el mapeo más natural es una "
+"asociación uno-a-muchos:"
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
-msgstr "Esto mapea a las siguientes definiciones de tablas:"
+msgstr "Esto mapea a las siguientes definiciones de tabla:"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
"many association:"
msgstr ""
-"Si el padre es <emphasis>requerido</emphasis>, usa una asociación "
+"Si el padre es <emphasis>requerido</emphasis>, utilice una asociación "
"bidireccional uno-a-muchos:"
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
-msgstr "Observa la restricción <literal>NOT NULL</literal>:"
+msgstr "Observe la restricción <literal>NOT NULL</literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:898
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-
-#. Tag: para
-#: collection_mapping.xml:900
-#, fuzzy, no-c-format
-msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL</literal> constraint on the <literal><key></"
"literal> mapping:"
msgstr ""
-"Alternativamente, si absolutamente insistes que esta asociación debe "
-"ser unidireccional, puedes declarar la restricción <literal>NOT NULL</"
-"literal> en el mapeo de <literal><key></literal>:"
+"Opcionalmente, si esta asociación debe ser unidireccional, puede declarar la "
+"restricción <literal>NOT NULL</literal> en el mapeo de <literal><key></"
+"literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:906
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
-#. Tag: para
-#: collection_mapping.xml:908
-#, fuzzy, no-c-format
-msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
"association is appropriate:"
msgstr ""
-"En la otra mano, si un hijo pudiera tener múltiples padres, "
-"sería apropiada una asociación muchos-a-muchos:"
+"Por otro lado, si un hijo tiene múltiples padres, una asociación muchos-a-"
+"muchos es apropiada:"
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr "Definiciones de tabla:"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
-"Para más ejemplos y un paseo completo a través del mapeo de "
-"relaciones padre/hijo, ver <xref linkend=\"example-parentchild\"/>."
+"Para ver más ejemplos y encontrar una explicación completa sobre el mapeo de "
+"relaciones padre/hijo, consulte el <xref linkend=\"example-parentchild\" /> "
+"para obtener mayor información."
#. Tag: para
-#: collection_mapping.xml:926
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr ""
-"Son posibles mapeos de asociación aún más complejos. "
-"Catalogaremos todas las posibilidades en el próximo capítulo."
-
-#~ msgid "Collection Mapping"
-#~ msgstr "Mapeo de Colecciones"
-
-#~ msgid "Some examples, first, a set of strings:"
-#~ msgstr "Algunos ejemplos, primero, un conjunto de cadenas:"
-
-#~ msgid ""
-#~ "The previous sections are pretty confusing. So lets look at an example. "
-#~ "This class:"
-#~ msgstr ""
-#~ "Las secciones previas son bastantes confusas. Así que miremos un "
-#~ "ejemplo. Esta clase:"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"En el próximo capÃtulo abordaremos los mapeos de asociaciones más complejas."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,38 +1,49 @@
-#, fuzzy
+# translation of component_mapping.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: component_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-11-06 10:15+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
-msgstr "Mapeo de Componentes"
+msgstr "Mapeo de componentes"
#. Tag: para
-#: component_mapping.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
-"La noción de un <emphasis>componente</emphasis> es reusada en muchos "
-"contextos diferentes, para propósitos diferentes, a través de "
-"Hibernate."
+"La noción de un <emphasis>componente</emphasis> se reutiliza en muchos "
+"contextos diferentes, para propósitos diferentes a través de Hibernate."
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr "Objetos dependientes"
#. Tag: para
-#: component_mapping.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
@@ -40,184 +51,41 @@
"you can model a person like this:"
msgstr ""
"Un componente es un objeto contenido que es persistido como un tipo de "
-"valor, no una referencia de entidad. El término \"componente\" hace "
-"referencia a la noción orientada a objetos de composición (no "
-"a componentes a nivel de arquitectura). Por ejemplo, podrías modelar "
-"una persona como:"
+"valor, no una referencia de entidad. El término \"componente\" hace "
+"referencia a la noción orientada a objetos de composición y no a componentes "
+"a nivel de arquitectura. Por ejemplo, puede modelar una persona asÃ:"
-#. Tag: programlisting
-#: component_mapping.xml:45
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-
-#. Tag: para
-#: component_mapping.xml:49
-#, fuzzy, no-c-format
-msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
"<literal>Person</literal>. <literal>Name</literal> defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
"interfaces or identifier properties."
msgstr ""
"Ahora <literal>Name</literal> puede ser persistido como un componente de "
-"<literal>Person</literal>. Observa que <literal>Name</literal> define "
-"métodos getter y setter para sus propiedades persistentes, pero no "
-"necesita declarar ninguna interface ni propiedades identificadoras."
+"<literal>Person</literal>. <literal>Name</literal> define métodos getter y "
+"setter para sus propiedades persistentes, pero no necesita declarar ninguna "
+"interfaz ni propiedades identificadoras."
#. Tag: para
-#: component_mapping.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Our Hibernate mapping would look like this:"
-msgstr "Nuestro mapeo de Hibernate se vería así:"
+msgstr "Nuestro mapeo de Hibernate se verÃa asÃ: "
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid.hex\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
msgstr ""
-"La tabla person tendría las columnas <literal>pid</literal>, "
+"La tabla person tendrÃa las columnas <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> y <literal>last</literal>."
#. Tag: para
-#: component_mapping.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
@@ -229,30 +97,27 @@
msgstr ""
"Como todos los tipos de valor, los componentes no soportan referencias "
"compartidas. En otras palabras, dos personas pueden tener el mismo nombre, "
-"pero los dos objetos persona contendrían dos objetos nombre "
-"independientes, sólo \"iguales\" en valor. La semántica de "
-"valor nulo de un componente es <emphasis>ad hoc</emphasis>. Cuando se "
-"recargue el objeto contenedor, Hibernate asumirá que si todas las "
-"columnas del componente son nulas, el componente entero es nulo. Esto debe "
-"estar bien para la mayoría de propósitos."
+"pero los dos objetos persona contendrÃan dos objetos nombre independientes, "
+"sólamente \"iguales\" en valor. La semántica de valor nulo de un componente "
+"es <emphasis>ad hoc</emphasis>. Cuando se recargue el objeto contenedor, "
+"Hibernate asumirá que si todas las columnas del componente son nulas, el "
+"componente entero es nulo. Esto es apropiado para la mayorÃa de propósitos."
#. Tag: para
-#: component_mapping.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
"<emphasis>not</emphasis> be considered an exotic usage. Hibernate is "
"intended to support a fine-grained object model."
msgstr ""
-"Las propiedades de un componentes pueden ser de cualquier tipo de Hibernate "
-"(colecciones, muchos-a-uno, asociaciones, otros componentes, etc). Los "
-"componentes anidados <emphasis>no</emphasis> deben ser considerados un uso "
-"exótico. Hibernate está concebido para soportar un modelo de "
-"objetos granularizado en fino."
+"Las propiedades de un componente pueden ser de cualquier tipo de Hibernate "
+"(colecciones, asociaciones muchos-a-uno, otros componentes, etc). Los "
+"componentes anidados <emphasis>no</emphasis> deben ser considerados como un "
+"uso exótico. Hibernate está concebido para soportar un modelo de objetos muy "
+"detallado."
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
@@ -260,98 +125,40 @@
"as a reference back to the containing entity."
msgstr ""
"El elemento <literal><component></literal> permite un subelemento "
-"<literal><parent></literal> que mapee una propiedad de la clase del "
-"componente como una referencia de regreso a la entidad contenedora."
+"<literal><parent></literal> que mapea una propiedad de la clase del "
+"componente como una referencia a la entidad contenedora."
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid.hex\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
msgstr "Colecciones de objetos dependientes"
#. Tag: para
-#: component_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
"<literal>Name</literal>). Declare your component collection by replacing the "
"<literal><element></literal> tag with a <literal><composite-"
"element></literal> tag:"
msgstr ""
-"Las colecciones de componentes están soportadas (por ejemplo, un "
-"array de tipo <literal>Name</literal>). Declara tu colección de "
-"componentes remplazando la etiqueta <literal><element></literal> por "
-"una etiqueta <literal><composite-element></literal>."
+"Las colecciones de componentes se encuentran soportadas (por ejemplo, un "
+"array de tipo <literal>Name</literal>). Declare su colección de componentes "
+"remplazando la etiqueta <literal><element></literal> por una etiqueta "
+"<literal><composite-element></literal>:"
-#. Tag: programlisting
-#: component_mapping.xml:105
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-
-#. Tag: para
-#: component_mapping.xml:108
-#, fuzzy, no-c-format
-msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
"important to implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> correctly."
msgstr ""
-"Nota: si defines un <literal>Set</literal> de elementos compuestos, es muy "
+"Si define un <literal>Set</literal> de elementos compuestos, es muy "
"importante implementar <literal>equals()</literal> y <literal>hashCode()</"
-"literal> correctamente."
+"literal> de manera correcta."
#. Tag: para
-#: component_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
@@ -362,18 +169,16 @@
"model and persistence semantics are still slightly different."
msgstr ""
"Los elementos compuestos pueden contener componentes pero no colecciones. Si "
-"tu elemento compuesto contiene a su vez componentes, usa la etiqueta "
-"<literal><nested-composite-element></literal>. Este es un caso "
-"bastante exótico - una colección de componentes que a su vez "
-"tienen componentes. A esta altura debes estar preguntándote si una "
-"asociación uno-a-muchos es más apropiada. Intenta remodelar el "
-"elemento compuesto como una entidad - pero observa que aunque el modelo Java "
-"es el mismo, el modelo relacional y la semántica de persistencia "
-"siguen siendo ligeramente diferentes."
+"su elemento compuesto contiene a su vez componentes, use la etiqueta "
+"<literal><nested-composite-element></literal>. Este es un caso de una "
+"colección de componentes que a su vez tienen componentes. Se debe estar "
+"preguntando si una asociación uno-a-muchos es más apropiada. Remodele el "
+"elemento compuesto como una entidad - pero observe que aunque el modelo Java "
+"es el mismo, el modelo relacional y la semántica de persistencia siguen "
+"siendo ligeramente diferentes."
#. Tag: para
-#: component_mapping.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set></literal>. There is no separate primary key "
@@ -383,18 +188,17 @@
"element or choose a <literal><list></literal>, <literal><map></"
"literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
-"Por favor observa que un mapeo de elemento compuesto no soporta propiedades "
-"nulables si estás usando un <literal><set></literal>. Hibernate "
-"tiene que usar cada columna para identificar un registro al borrar objetos "
-"(no hay una columna clave primaria separada en la tabla del elemento "
-"compuesto), lo que es imposible con valores nulos. Tienes que, o bien usar "
-"sólo propiedades no nulas en un elemento compuesto o elegir un "
-"<literal><list></literal>, <literal><map></literal>, "
-"<literal><bag></literal> o <literal><idbag></literal>."
+"Un mapeo de elemento compuesto no soporta propiedades nulables si está "
+"utilizando un <literal><set></literal>. No hay una columna clave "
+"principal separada en la tabla del elemento compuesto. Hibernate utiliza el "
+"valor de cada columna para identificar un registro al borrar objetos, lo "
+"cual es imposible con valores nulos. Tiene que usar sólo propiedades no "
+"nulas en un elemento compuesto o elegir un <literal><list></literal>, "
+"<literal><map></literal>, <literal><bag></literal> o "
+"<literal><idbag></literal>."
#. Tag: para
-#: component_mapping.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one></literal> element. This mapping allows you to "
@@ -405,188 +209,115 @@
"<literal>quantity</literal> are properties of the association:"
msgstr ""
"Un caso especial de un elemento compuesto es un elemento compuesto con un "
-"elemento anidado <literal><many-to-one></literal>. Un mapeo como este "
-"te permite mapear columnas extra de una tabla de asociación muchos-a-"
-"muchos a la clase del elemento compuesto. La siguiente es una "
-"asociación muchos-a-muchos de <literal>Order</literal> a "
-"<literal>Item</literal> donde <literal>purchaseDate</literal>, "
-"<literal>price</literal> y <literal>quantity</literal> son propiedades de la "
-"asociación:"
+"elemento anidado <literal><many-to-one></literal>. Este mapeo le "
+"permite mapear columnas extra de una tabla de asociación muchos-a-muchos a "
+"la clase del elemento compuesto. La siguiente es una asociación muchos-a-"
+"muchos de <literal>Order</literal> a <literal>Item</literal>, donde "
+"<literal>purchaseDate</literal>, <literal>price</literal> y "
+"<literal>quantity</literal> son propiedades de la asociación:"
-#. Tag: programlisting
-#: component_mapping.xml:148
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-
-#. Tag: para
-#: component_mapping.xml:150
-#, fuzzy, no-c-format
-msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase</literal> can be in the "
"set of an <literal>Order</literal>, but it cannot be referenced by the "
"<literal>Item</literal> at the same time."
msgstr ""
-"Por supuesto, no puede haber una referencia a la compra del otro lado para "
-"la navegación bidireccional de la asociación. Recuerda que los "
-"componentes son tipos de valor no permiten referencias compartidas. Una sola "
-"<literal>Purchase</literal> puede estar en el conjunto de una "
-"<literal>Order</literal>, pero no puede ser referenciada por el "
-"<literal>Item</literal> al mismo tiempo."
+"No puede haber una referencia a la compra del otro lado para la navegación "
+"bidireccional de la asociación. Los componentes son tipos de valor y no "
+"permiten referencias compartidas. Una sola <literal>Purchase</literal> puede "
+"estar en el conjunto de una <literal>Order</literal>, pero no puede ser "
+"referenciada por el <literal>Item</literal> al mismo tiempo."
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "Incluso son posibles las asociaciones ternarias (o cuaternarias, etc):"
-#. Tag: programlisting
-#: component_mapping.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-
-#. Tag: para
-#: component_mapping.xml:162
-#, fuzzy, no-c-format
-msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
msgstr ""
"Los elementos compuestos pueden aparecer en consultas usando la misma "
-"sintáxis que las asociaciones a otras entidades."
+"sintáxis que las asociaciones a otras entidades. "
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
-msgstr "Componentes como índices de Map"
+msgstr "Componentes como Ãndices de Mapeo"
#. Tag: para
-#: component_mapping.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
"component class as the key of a <literal>Map</literal>. Ensure that you "
"override <literal>hashCode()</literal> and <literal>equals()</literal> "
"correctly on the component class."
msgstr ""
-"El elemento <literal><composite-map-key></literal> te permite mapear "
-"una clase componente como la clave de un <literal>Map</literal>. Asegú"
-"rate que sobrescribes <literal>hashCode()</literal> y <literal>equals()</"
-"literal> correctamente en la clase componente."
+"El elemento <literal><composite-map-key></literal> le permite mapear "
+"una clase componente como la clave de un <literal>Map</literal>. Asegúrese "
+"de sobrescribir <literal>hashCode()</literal> y <literal>equals()</literal> "
+"correctamente en la clase componente. "
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
msgstr "Componentes como identificadores compuestos"
#. Tag: para
-#: component_mapping.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
-"Puedes usar un componente como un identidicador de una clase entidad. Tu "
-"clase componente debe satisfacer ciertos requerimientos:"
+"Puede utilizar un componente como un identidicador de una clase entidad. Su "
+"clase componente tiene que satisfacer ciertos requerimientos: "
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
-msgstr "Debe implementar <literal>java.io.Serializable</literal>."
+msgstr "Tiene que implementar <literal>java.io.Serializable</literal>."
#. Tag: para
-#: component_mapping.xml:195
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> consistently with the database's notion of composite key equality."
msgstr ""
-"Debe re-implementar <literal>equals()</literal> y <literal>hashCode()</"
-"literal>, consistentemente con la noción de base de datos de igualdad "
-"de clave compuesta."
+"Tiene que re-implementar <literal>equals()</literal> y <literal>hashCode()</"
+"literal>, consistentemente con la noción de la base de datos de igualdad de "
+"clave compuesta."
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: component_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
-"Nota: en Hibernat3, el segundo requerimiento no es absolutamente un "
-"requerimiento rígido de Hibernate. Pero de todas formas, házlo."
+"En Hibernate3, aunque el segundo requerimiento no es un requerimiento "
+"absolutamente rÃgido de Hibernate, en todo caso se recomienda."
#. Tag: para
-#: component_mapping.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
-"No puedes usar un <literal>IdentifierGenerator</literal> para generar claves "
-"compuestas. La aplicación debe, en cambio, asignar sus propios "
-"identificadores."
+"No puede utilizar un <literal>IdentifierGenerator</literal> para generar "
+"claves compuestas. En cambio, la aplicación debe asignar sus propios "
+"identificadores. "
#. Tag: para
-#: component_mapping.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
"<literal><key-property></literal> elements, in place of the usual "
@@ -594,244 +325,80 @@
"<literal>OrderLine</literal> class has a primary key that depends upon the "
"(composite) primary key of <literal>Order</literal>."
msgstr ""
-"Usa la etiqueta <literal><composite-id></literal> (con elementos "
-"anidados <literal><key-property></literal>) en lugar de la usual "
-"declaración <literal><id></literal>. Por ejemplo, la clase "
-"<literal>OrderLine</literal> tiene una clave primaria que depende de la "
-"clave primaria (compuesta) de <literal>Order</literal>."
+"Use la etiqueta <literal><composite-id></literal>, con elementos "
+"anidados <literal><key-property></literal>, en lugar de la declaración "
+"usual <literal><id></literal>. Por ejemplo, la clase "
+"<literal>OrderLine</literal> tiene una clave principal que depende de la "
+"clave principal (compuesta) de <literal>Order</literal>."
-#. Tag: programlisting
-#: component_mapping.xml:224
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" \n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-" \n"
-" <property name=\"name\"/>\n"
-" \n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-" \n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" \n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-" \n"
-" <property name=\"name\"/>\n"
-" \n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-" \n"
-"</class>]]>"
-
-#. Tag: para
-#: component_mapping.xml:226
-#, fuzzy, no-c-format
-msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-"Ahora, cualquier clave foránea que referencie la tabla de "
-"<literal>OrderLine</literal> es también compuesta. Debes declarar "
-"esto en tus mapeos de otras clases. Una asociación a "
-"<literal>OrderLine</literal> sería mapeado así:"
+"Cualquier clave foránea que referencie la tabla de <literal>OrderLine</"
+"literal> también es compuesta. Declare esto en sus mapeos de otras clases. "
+"Una asociación a <literal>OrderLine</literal> se mapea asÃ:"
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-
#. Tag: para
-#: component_mapping.xml:235
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
"<literal>column</literal> attribute everywhere. Using the <literal>column</"
"literal> element just gives more declaration options, which are mostly "
"useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
+"La etiqueta <literal><column></literal> es una alternativa al atributo "
+"<literal>column</literal> en cualquier sitio."
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
"literal> also uses the composite foreign key:"
msgstr ""
-"Una asociación <literal>muchos-a-muchos</literal> a "
-"<literal>OrderLine</literal> también usa la clave foránea "
-"compuesta:"
+"Una asociación <literal>muchos-a-muchos</literal> a <literal>OrderLine</"
+"literal> también usa la clave foránea compuesta:"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
"would use:"
msgstr ""
-"La colección de <literal>OrderLine</literal>s en <literal>Order</"
-"literal> usaría:"
+"La colección de <literal>OrderLine</literal>s en <literal>Order</literal> "
+"utilizarÃa: "
-#. Tag: programlisting
-#: component_mapping.xml:256
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-
#. Tag: para
-#: component_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
msgstr ""
-"(El elemento <literal><one-to-many></literal>, como es usual, no "
-"declara columnas.)"
+"El elemento <literal><one-to-many></literal> declara ninguna columna."
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
-"Si <literal>OrderLine</literal> posee una colección por sí "
-"misma, tiene también una clave foránea compuesta."
+"Si <literal>OrderLine</literal> posee una colección por sà misma, tiene "
+"también una clave foránea compuesta."
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
-msgstr "Componentes dinámicos"
+msgstr "Componentes dinámicos"
#. Tag: para
-#: component_mapping.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
-msgstr "Puedes incluso mapear una propiedad de tipo <literal>Map</literal>:"
+msgstr "También puede mapear una propiedad del tipo <literal>Map</literal>:"
-#. Tag: programlisting
-#: component_mapping.xml:278
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-msgstr ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-
-#. Tag: para
-#: component_mapping.xml:280
-#, fuzzy, no-c-format
-msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
"identical to <literal><component></literal>. The advantage of this "
"kind of mapping is the ability to determine the actual properties of the "
@@ -840,25 +407,378 @@
"You can also access, and change, Hibernate's configuration-time metamodel "
"via the <literal>Configuration</literal> object."
msgstr ""
-"La semántica de un mapeo <literal><dynamic-component></literal> "
-"es ídentica a la de <literal><component></literal>. La ventaja "
-"de este tipo de mapeos es la habilidad para determinar las propiedades "
-"reales del bean en tiempo de despliegue, sólo con editar el documento "
-"de mapeo. La manipulación del documento de mapeo en tiempo de "
-"ejecución es también posible, usando un analizador DOM. "
-"Incluso mejor, puedes acceder (y cambiar) el metamodelo de tiempo de "
-"configuración de Hibernate por medio del objeto "
+"La semántica de un mapeo <literal><dynamic-component></literal> es "
+"Ãdentica a la de <literal><component></literal>. La ventaja de este "
+"tipo de mapeos es la habilidad para determinar las propiedades reales del "
+"bean en tiempo de despliegue, sólo con editar el documento de mapeo. La "
+"manipulación del documento de mapeo en tiempo de ejecución también es "
+"posible, usando un analizador DOM. También puede acceder y cambiar el "
+"metamodelo de tiempo de configuración de Hibernate por medio del objeto "
"<literal>Configuration</literal>."
#~ msgid ""
-#~ "(Note that the <literal><column></literal> tag is an alternative to "
-#~ "the <literal>column</literal> attribute everywhere.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "(Nota que la etiqueta <literal><column></literal> es una "
-#~ "alternativa al atributo <literal>column</literal> en cualquier sitio.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,21 +1,35 @@
-#, fuzzy
+# translation of configuration.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: configuration\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-16 18:47+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 09:53+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
-msgstr "Configuración"
+msgstr "Configuración"
#. Tag: para
-#: configuration.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
@@ -24,23 +38,21 @@
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
-"Debido a que Hibernate está diseñado para operar en muchos "
-"entornos diferentes, hay un gran número de parámetros de "
-"configuración. Afortunadamente, la mayoría tiene valores por "
-"defecto sensibles e Hibernate se distribuye con un fichero "
-"<literal>hibernate.properties</literal> de ejemplo en <literal>etc/</"
-"literal> que muestra las diversas opciones. Tan sólo pon el fichero "
-"de ejemplo en tu classpath y personalízalo."
+"Hibernate está diseñado para operar en muchos entornos diferentes y por lo "
+"tanto hay un gran número de parámetros de configuración. Afortunadamente, la "
+"mayorÃa tiene valores predeterminados sensibles y Hibernate se distribuye "
+"con un archivo <literal>hibernate.properties</literal> de ejemplo en "
+"<literal>etc/</literal> que muestra las diversas opciones. Simplemente ponga "
+"el fichero de ejemplo en su ruta de clase y personalÃcelo de acuerdo a sus "
+"necesidades."
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
-msgstr "Configuración programática"
+msgstr "Configuración programática"
#. Tag: para
-#: configuration.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
"represents an entire set of mappings of an application's Java types to an "
@@ -48,256 +60,181 @@
"used to build an immutable <interfacename>org.hibernate.SessionFactory</"
"interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
-"Una instancia de <literal>org.hibernate.cfg.Configuration</literal> "
-"representa un conjunto entero de mapeos de los tipos Java de una "
-"aplicación a una base de datos SQL. La <literal>Configuration</"
-"literal> es usada para construir una <literal>SessionFactory</literal> "
-"(inmutable). Los mapeos se compilan de varios ficheros de mapeo XML."
+"Una instancia de <classname>org.hibernate.cfg.Configuration</classname> "
+"representa un conjunto entero de mapeos de los tipos Java de una aplicación "
+"a una base de datos SQL. La <classname>org.hibernate.cfg.Configuration</"
+"classname> se utiliza para construir una <interfacename>org.hibernate."
+"SessionFactory</interfacename> inmutable. Los mapeos se compilan desde "
+"varios archivos de mapeo XML."
#. Tag: para
-#: configuration.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
"instance by instantiating it directly and specifying XML mapping documents. "
"If the mapping files are in the classpath, use <literal>addResource()</"
"literal>. For example:"
msgstr ""
-"Puedes obtener una instancia de <literal>Configuration</literal> "
-"instanciándola directamente y especificando documentos de mapeo XML. "
-"Si los ficheros de mapeo están en el classpath, usa "
-"<literal>addResource()</literal>:"
+"Puede obtener una instancia de <classname>org.hibernate.cfg.Configuration</"
+"classname> instanciándola directamente y especificando los documentos de "
+"mapeo XML. Si los archivos de mapeo están en la ruta de clase, utilice "
+"<literal>addResource()</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: configuration.xml:55
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-
-#. Tag: para
-#: configuration.xml:57
-#, fuzzy, no-c-format
-msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
-"Una forma alternativa (a veces mejor) es especificar la clase mapeada, y "
-"dejar que Hibernate encuentre el documento de mapeo por ti:"
+"Una manera opcional es especificar la clase mapeada y dejar que Hibernate "
+"encuentre el documento de mapeo por usted:"
-#. Tag: programlisting
-#: configuration.xml:62
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-
-#. Tag: para
-#: configuration.xml:64
-#, fuzzy, no-c-format
-msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
-"Entonces Hibernate buscará ficheros de mapeo llamados <literal>/org/"
-"hibernate/auction/Item.hbm.xml</literal> y <literal>/org/hibernate/auction/"
-"Bid.hbm.xml</literal> en el classpath. Este enfoque elimina cualquier nombre "
-"de fichero en el código."
+"Luego Hibernate buscará los archivos de mapeo llamados <filename>/org/"
+"hibernate/auction/Item.hbm.xml</filename> y <filename>/org/hibernate/auction/"
+"Bid.hbm.xml</filename> en la ruta de clase. Este enfoque elimina cualquier "
+"nombre de archivo establecido manualmente."
#. Tag: para
-#: configuration.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
"specify configuration properties. For example:"
msgstr ""
-"Una <literal>Configuration</literal> también te permite especificar "
-"propiedades de configuración:"
+"Una <classname>org.hibernate.cfg.Configuration</classname> también le "
+"permite especificar las propiedades de configuración. Por ejemplo:"
-#. Tag: programlisting
-#: configuration.xml:75
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-
-#. Tag: para
-#: configuration.xml:77
-#, fuzzy, no-c-format
-msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
msgstr ""
-"Esta no es la única forma de pasar propiedades de configuració"
-"n a Hibernate. La diversas opciones incluyen:"
+"Esta no es la única manera de pasar propiedades de configuración a "
+"Hibernate. Algunas opciones incluyen:"
#. Tag: para
-#: configuration.xml:84
#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
"<literal>Configuration.setProperties()</literal>."
msgstr ""
-"Pasar una instancia de <literal>java.util.Properties</literal> a "
+"Pasar una instancia de <classname>java.util.Properties</classname> a "
"<literal>Configuration.setProperties()</literal>."
#. Tag: para
-#: configuration.xml:90
#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
"directory of the classpath."
msgstr ""
-"Colocar <literal>hibernate.properties</literal> en un directorio raíz "
-"del classpath."
+"Colocar un archivo llamado <literal>hibernate.properties</literal> en un "
+"directorio raÃz de la ruta de clase."
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
"Dproperty=value</literal>."
msgstr ""
-"Establecer propiedades <literal>System</literal> usando <literal>java -"
+"Establecer propiedades <literal>System</literal> utilizando <literal>java -"
"Dproperty=value</literal>."
#. Tag: para
-#: configuration.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
-"Incluir elementos <literal><property></literal> en <literal>hibernate."
-"cfg.xml</literal> (discutido luego)."
+"Incluir los elementos <literal><property></literal> en "
+"<literal>hibernate.cfg.xml</literal> (esto se discute más adelante)."
#. Tag: para
-#: configuration.xml:107
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
"is the easiest approach."
msgstr ""
-"<literal>hibernate.properties</literal> es el enfoque más fá"
-"cil si quieres comenzar rápido."
+"Si quiere empezar rápidamente <filename>hibernate.properties</filename> es "
+"el enfoque más fácil."
#. Tag: para
-#: configuration.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory</"
"literal> is created."
msgstr ""
-"La <literal>Configuration</literal> está concebida como un objeto de "
-"tiempo de arranque, para ser descartado una vez que una "
-"<literal>SessionFactory</literal> es creada."
+"La <classname>org.hibernate.cfg.Configuration</classname> está concebida "
+"como un objeto de tiempo de inicio que se va a descartar una vez se crea una "
+"<literal>SessionFactory</literal>."
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
-msgstr "Obteniendo una SessionFactory"
+msgstr "Obtención de una SessionFactory"
#. Tag: para
-#: configuration.xml:121
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
"Configuration</classname>, the application must obtain a factory for "
"<interfacename>org.hibernate.Session</interfacename> instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
-"Cuando todos los mapeos han sido parseados por la <literal>Configuration</"
-"literal>, la aplicación debe obtener una fábrica de instancias "
-"de <literal>Session</literal>. Esta fábrica está concebida "
-"para ser compartida por todas las hebras de aplicación:"
+"Cuando la <classname>org.hibernate.cfg.Configuration</classname> ha "
+"analizado sintácticamente todos los mapeos, la aplicación tiene que obtener "
+"una fábrica para las instancias <interfacename>org.hibernate.Session</"
+"interfacename>. Esta fábrica está concebida para que todos los hilos de la "
+"aplicación la compartan:"
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-
#. Tag: para
-#: configuration.xml:129
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
"<interfacename>org.hibernate.SessionFactory</interfacename>. This is useful "
"if you are using more than one database."
msgstr ""
-"Hibernate permite que tu aplicación instancie más de una "
-"<literal>SessionFactory</literal>. Esto es útil si estás "
-"usando más de una base de datos."
+"Hibernate permite que su aplicación instancie más de una <interfacename>org."
+"hibernate.SessionFactory</interfacename>. Esto es útil si está utilizando "
+"más de una base de datos."
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
msgstr "Conexiones JDBC"
#. Tag: para
-#: configuration.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
"interfacename> create and pool JDBC connections for you. If you take this "
"approach, opening a <interfacename>org.hibernate.Session</interfacename> is "
"as simple as:"
msgstr ""
-"Usualmente, quieres que la <literal>SessionFactory</literal> cree y almacene "
-"en pool conexiones JDBC para ti. Si adoptas este enfoque, abrir una "
-"<literal>Session</literal> es tan simple como:"
+"Se aconseja que la <interfacename>org.hibernate.SessionFactory</"
+"interfacename> cree y almacene en pool conexiones JDBC por usted Si adopta "
+"este enfoque, el abrir una <interfacename>org.hibernate.Session</"
+"interfacename> es tan simple como:"
-#. Tag: programlisting
-#: configuration.xml:146
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-
-#. Tag: para
-#: configuration.xml:148
-#, fuzzy, no-c-format
-msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
-"En cuanto hagas algo que requiera acceso a la base de datos, se "
-"obtendrá una conexión JDBC del pool."
+"En el momento en que inicie una tarea que requiera acceso a la base de "
+"datos, se obtendrá una conexión JDBC del pool."
#. Tag: para
-#: configuration.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
@@ -305,108 +242,89 @@
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
-"Para que esto funcione, necesitamos pasar algunas propiedades de "
-"conexión JDBC a Hibernate. Todos los nombres de propiedades y su "
-"semántica están definidas en la clase <literal>org.hibernate."
-"cfg.Environment</literal>. Describiremos ahora las configuraciones má"
-"s importantes para la conexión JDBC."
+"Para que esto funcione, primero necesita pasar algunas las propiedades de "
+"conexión JDBC a Hibernate. Todos los nombres de las propiedades de Hibernate "
+"y su semántica están definidas en la clase <classname>org.hibernate.cfg."
+"Environment</classname>. Ahora describiremos las configuraciones más "
+"importantes para la conexión JDBC."
#. Tag: para
-#: configuration.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
"DriverManager</classname> if you set the following properties:"
msgstr ""
-"Hibernate obtendrá (y tendrá en pool) conexiones usando "
-"<literal>java.sql.DriverManager</literal> si configuras las siguientes "
+"Hibernate obtendrá y tendrá en pool las conexiones utilizando "
+"<classname>java.sql.DriverManager</classname> si configura las siguientes "
"propiedades:"
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
msgstr "Propiedades JDBC de Hibernate"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:546 configuration.xml:741 configuration.xml:848
-#: configuration.xml:936
#, no-c-format
msgid "Property name"
-msgstr "Nombre de propiedad"
+msgstr "Nombre de la propiedad"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:547 configuration.xml:742 configuration.xml:849
-#: configuration.xml:937
#, no-c-format
msgid "Purpose"
-msgstr "Propósito"
+msgstr "Propósito"
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
+msgstr "<property>hibernate.connection.driver_class</property>"
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
-msgstr "clase del driver jdbc"
+msgid "<emphasis>JDBC driver class</emphasis>"
+msgstr "<emphasis>clase del controlador JDBC</emphasis>"
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
+msgstr "<property>hibernate.connection.url</property>"
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
-msgstr "URL de jdbc"
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr "<emphasis>URL JDBC</emphasis>"
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
+msgstr "<property>hibernate.connection.username</property>"
-#. Tag: emphasis
-#: configuration.xml:197
+#. Tag: entry
#, no-c-format
-msgid "database user"
-msgstr "usuario de base de datos"
+msgid "<emphasis>database user</emphasis>"
+msgstr "<emphasis>usuario de la base de datos</emphasis>"
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
+msgstr "<property>hibernate.connection.password</property>"
-#. Tag: emphasis
-#: configuration.xml:205
+#. Tag: entry
#, no-c-format
-msgid "database user password"
-msgstr "contraseña del usuario de base de datos"
+msgid "<emphasis>database user password</emphasis>"
+msgstr "<emphasis>contraseña del usuario de la base de datos</emphasis>"
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
-msgstr "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
+msgstr "<property>hibernate.connection.pool_size</property>"
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
-msgstr "número máximo de conexiones manejadas por pooling"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
+msgstr "<emphasis>número máximo de conexiones en pools</emphasis>"
#. Tag: para
-#: configuration.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
@@ -416,19 +334,17 @@
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
-"El algoritmo de pooling de conexiones propio de Hibernate es sin embargo "
-"algo rudimentario. Está concebido para ayudarte a comenzar y "
-"<emphasis>no está concebido para usar en un sistema de "
-"producción</emphasis> ni siquiera para pruebas de rendimiento. Debes "
-"usar un pool de terceros para un mejor rendimiento y estabilidad. Só"
-"lo remplaza la propiedad <literal>hibernate.connection.pool_size</literal> "
-"con configuraciones específicas del pool de conexiones. Esto "
-"desactivará el pool interno de Hibernate. Por ejemplo, podrías "
-"querer usar C3P0."
+"Sin embargo, el algoritmo de pooling de la conexión propia de Hibernate es "
+"algo rudimentario. Está concebido para ayudarle a comenzar y <emphasis>no "
+"para utilizarse en un sistema de producción</emphasis> ni siquiera para "
+"pruebas de rendimiento. Para alcanzar un mejor rendimiento y estabilidad "
+"debe utilizar un pool de terceros. Sólo remplace la propiedad "
+"<property>hibernate.connection.pool_size</property> con configuraciones "
+"especÃficas del pool de conexiones. Esto desactivará el pool interno de "
+"Hibernate. Por ejemplo, es posible utilizar C3P0."
#. Tag: para
-#: configuration.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib</filename> directory. Hibernate will use its "
@@ -438,178 +354,122 @@
"<filename>hibernate.properties</filename> and the Hibernate web site for "
"more information."
msgstr ""
-"C3P0 es un pool de conexiones JDBC de código abierto distribuido "
-"junto a Hibernate en el directorio <literal>lib</literal>. Hibernate "
-"usará su <literal>C3P0ConnectionProvider</literal> para pooling de "
-"conexiones si estableces propiedades <literal>hibernate.c3p0.*</literal>. Si "
-"quieres usar Proxool refiérete al <literal>hibernate.properties</"
-"literal> empaquetado y al sitio web de Hibernate para más "
-"información."
+"C3P0 es un pool de conexiones JDBC de código abierto distribuido junto con "
+"Hibernate en el directorio <literal>lib</literal>. Hibernate utilizará su "
+"<classname>org.hibernate.connection.C3P0ConnectionProvider</classname> para "
+"pooling de conexiones si establece propiedades <literal>hibernate.c3p0.*</"
+"literal>. Si quiere utilizar Proxool refiérase a <literal>hibernate."
+"properties</literal> incluÃdo en el paquete y al sitio web de Hibernate para "
+"obtener más información."
#. Tag: para
-#: configuration.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
"for c3p0:"
msgstr ""
-"Aquí hay un fichero <literal>hibernate.properties</literal> de "
-"ejemplo para C3P0:"
+"Aquà hay un archivo <literal>hibernate.properties</literal> de ejemplo para "
+"c3p0:"
-#. Tag: programlisting
-#: configuration.xml:242
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-
-#. Tag: para
-#: configuration.xml:244
-#, fuzzy, no-c-format
-msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
-"Para su uso en un servidor de aplicaciones, casi siempre debes configurar "
-"Hibernate para que obtenga conexiones de un <literal>Datasource</literal> "
-"del servidor de aplicaciones registrado en JNDI. Necesitarás "
-"establecer al menos una de las siguientes propiedades:"
+"Para su utilización dentro de un servidor de aplicaciones, casi siempre "
+"usted debe configurar Hibernate para obtener conexiones de un "
+"<interfacename>javax.sql.Datasource</interfacename> del servidor de "
+"aplicaciones registrado en JNDI. Necesitará establecer al menos una de las "
+"siguientes propiedades:"
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
-msgstr "Propiedades de Datasource de Hibernate"
+msgstr "Propiedades de la Fuente de Datos de Hibernate"
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
-msgstr "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
+msgstr "<property>hibernate.connection.datasource</property>"
-#. Tag: emphasis
-#: configuration.xml:267
+#. Tag: entry
#, no-c-format
-msgid "datasource JNDI name"
-msgstr "nombre del datasource JNDI"
+msgid "<emphasis>datasource JNDI name</emphasis>"
+msgstr "<emphasis>nombre JNDI de la fuente de datos</emphasis>"
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
-msgstr "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
+msgstr "<property>hibernate.jndi.url</property>"
#. Tag: entry
-#: configuration.xml:274
#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
-msgstr "<emphasis>URL del provedor JNDI</emphasis> (optional)"
+msgstr "<emphasis>URL del proveedor JNDI</emphasis> (opcional)"
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
-msgstr "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
+msgstr "<property>hibernate.jndi.class</property>"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
"emphasis> (optional)"
msgstr ""
-"<emphasis>clase de la <literal>InitialContextFactory</literal> de JNDI</"
-"emphasis> (opcional)"
+"<emphasis>clase del JNDI <literal>InitialContextFactory</literal></emphasis> "
+"(opcional)"
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
-msgstr "<emphasis>usuario de base de datos</emphasis> (opcional)"
+msgstr "<emphasis>usuario de la base de datos</emphasis> (opcional)"
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
msgstr ""
-"<emphasis>contraseña del usuario de base de datos</emphasis> "
-"(opcional)"
+"<emphasis>contraseña del usuario de la base de datos</emphasis> (opcional)"
#. Tag: para
-#: configuration.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
"application server provided JNDI datasource:"
msgstr ""
-"He aquí un fichero <literal>hibernate.properties</literal> de ejemplo "
-"para un un datasource JNDI provisto por un servidor de aplicaciones."
+"He aquà un archivo <literal>hibernate.properties</literal> de ejemplo para "
+"una fuente de datos JNDI provisto por un servidor de aplicaciones:"
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
"participate in the container-managed transactions of the application server."
msgstr ""
-"Las conexiones JDBC obtenidas de un datasource JNDI participarán "
-"automáticamente en las transacciones del servidor de aplicaciones "
-"manejadas por contenedor."
+"Las conexiones JDBC obtenidas de una fuente de datos JNDI participarán "
+"automáticamente en las transacciones del servidor de aplicaciones "
+"administradas por el contenedor."
#. Tag: para
-#: configuration.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection</literal>\" to the connection property name. "
"For example, you can specify a <property>charSet</property> connection "
"property using <property>hibernate.connection.charSet</property>."
msgstr ""
-"Pueden darse propiedades de conexión arbitrarias anteponiendo "
-"\"<literal>hibernate.connnection</literal>\" al nombre de propiedad. Por "
-"ejemplo, puedes especificar un <literal>charSet</literal> usando "
-"<literal>hibernate.connection.charSet</literal>."
+"Pueden darse propiedades de conexión arbitrarias anteponiendo "
+"\"<literal>hibernate.connnection</literal>\" al nombre de propiedad de la "
+"conexión. Por ejemplo, puede especificar una propiedad de conexión "
+"<literal>charSet</literal> usando <property>hibernate.connection.charSet</"
+"property>."
#. Tag: para
-#: configuration.xml:324
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
@@ -617,31 +477,27 @@
"implementation via the <property>hibernate.connection.provider_class</"
"property> property."
msgstr ""
-"Puedes definir tu propia estrategia de plugin para obtener conexiones JDBC "
-"implementando la interface <literal>org.hibernate.connection."
-"ConnectionProvider</literal>. Puedes seleccionar una implementación "
-"personalizada estableciendo <literal>hibernate.connection.provider_class</"
-"literal>."
+"Puede definir su propia estrategia plugin para obtener conexiones JDBC "
+"implementando la interfaz <interfacename>org.hibernate.connection."
+"ConnectionProvider</interfacename> y especificando su propia implementación "
+"personalizada por medio de la propiedad <property>hibernate.connection."
+"provider_class</property>."
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
-msgstr "Parámetros de configuración opcionales"
+msgstr "Parámetros de configuración opcionales"
#. Tag: para
-#: configuration.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
-"Hay un número de otras propiedades que controlan el comportamiento de "
-"Hibernate en tiempo de ejecución. Todas son opcionales y tienen "
-"valores por defecto razonables."
+"Hay otras propiedades que controlan el comportamiento de Hibernate en tiempo "
+"de ejecución. Todas son opcionales y tienen valores razonables por defecto. "
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -649,247 +505,215 @@
"literal> or <filename>hibernate.properties</filename>. They "
"<emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
-"<emphasis>Advertencia: algunas de estas propiedades son de \"nivel-de-sistema"
-"\" solamente.</emphasis>. Las propiedades a nivel de sistema sólo "
-"pueden ser establecidas por medio de <literal>java -Dproperty=value</"
-"literal> o <literal>hibernate.properties</literal>. <emphasis>No</emphasis> "
-"pueden establecerse por medio de las otras técnicas arriba descritas."
+"Algunas de estas propiedades se encuentran a nivel-del-sistema sólamente. "
+"Las propiedades a nivel del sistema sólamente se pueden establecer por medio "
+"de <code>java -Dproperty=value</code> o <filename>hibernate.properties</"
+"filename>. <emphasis>No</emphasis> pueden establecerse por medio de las "
+"técnicas descritas anteriormente."
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
-msgstr "Propiedades de Configuración de Hibernate"
+msgstr "Propiedades de Configuración de Hibernate"
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
+msgstr "<property>hibernate.dialect</property>"
#. Tag: entry
-#: configuration.xml:362
#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
"classname> which allows Hibernate to generate SQL optimized for a particular "
"relational database."
msgstr ""
-"El nombre de clase de un <literal>Dialect</literal> de Hibernate que permite "
-"a Hibernate generar SQL optimizado para una base de datos relacional en "
-"particular."
+"El nombre de clase de un <classname>org.hibernate.dialect.Dialect</"
+"classname> de Hibernate, el cual le permite que genere un SQL optimizado "
+"para una base de datos relacional en particular. "
#. Tag: para
-#: configuration.xml:365
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
"Dialect</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>full.classname.of.Dialect</"
-"literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
+"Dialect</literal>"
#. Tag: para
-#: configuration.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
"<classname>org.hibernate.dialect.Dialect</classname> implementation based on "
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
-"UNTRANSLATED! In most cases Hibernate will actually be able to chose the "
-"correct <classname>org.hibernate.dialect.Dialect</classname> implementation "
-"to use based on the <literal>JDBC metadata</literal> returned by the JDBC "
-"driver."
+"En la mayorÃa de los casos Hibernate podrá de hecho seleccionar la "
+"implementación <classname>org.hibernate.dialect.Dialect</classname> correcta "
+"con base en los <literal>JDBC metadata</literal> que el controlador JDBC "
+"retorna."
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
-msgstr "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
+msgstr "<property>hibernate.show_sql</property>"
#. Tag: entry
-#: configuration.xml:380
#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL</literal> to <literal>debug</"
"literal>."
msgstr ""
-"Escribe todas las sentencias SQL a la consola. This is an alternative to "
-"setting the log category <literal>org.hibernate.SQL</literal> to "
-"<literal>debug</literal>."
+"Escribe todas las declaraciones SQL a la consola. Esta es una alternativa "
+"para establecer la categoria de registro <literal>org.hibernate.SQL</"
+"literal> a <literal>debug</literal>."
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:581 configuration.xml:608 configuration.xml:621
-#: configuration.xml:676 configuration.xml:904 configuration.xml:919
-#: configuration.xml:1009
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis> <literal>true</literal> | "
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
-msgstr "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
+msgstr "<property>hibernate.format_sql</property>"
#. Tag: entry
-#: configuration.xml:394
#, no-c-format
msgid "Pretty print the SQL in the log and console."
-msgstr "Pretty print the SQL in the log and console."
+msgstr "Imprime el SQL en el registro y la consola."
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
-msgstr "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
+msgstr "<property>hibernate.default_schema</property>"
#. Tag: entry
-#: configuration.xml:406
#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
msgstr ""
-"Cualifica, en el SQL generado, los nombres de tabla sin cualificar con el "
-"esquema/tablespace dado."
+"Califica los nombres de tabla sin calificar con el esquema/espacio de tabla "
+"dado en el SQL generado. "
#. Tag: para
-#: configuration.xml:409
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>SCHEMA_NAME</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
-msgstr "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
+msgstr "<property>hibernate.default_catalog</property>"
#. Tag: entry
-#: configuration.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
msgstr ""
-"Cualifica, en el SQL generado, los nombres de tabla sin cualificar con el "
-"catálogo dado."
+"Califica los nombres de tabla sin calificar con el catálogo dado en el SQL "
+"generado."
#. Tag: para
-#: configuration.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>CATALOG_NAME</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
-msgstr "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
+msgstr "<property>hibernate.session_factory_name</property>"
#. Tag: entry
-#: configuration.xml:432
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
-"La <literal>SessionFactory</literal> será ligada a este nombre en "
-"JNDI automáticamente después de ser creada."
+"Automáticamente se vinculará el <interfacename>org.hibernate.SessionFactory</"
+"interfacename> a este nombre en JNDI después de que se ha creado."
#. Tag: para
-#: configuration.xml:435 configuration.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>jndi/composite/name</"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
-msgstr "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
+msgstr "<property>hibernate.max_fetch_depth</property>"
#. Tag: entry
-#: configuration.xml:445
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0</literal> disables "
"default outer join fetching."
msgstr ""
-"Establece una \"profundidad\" máxima del árbol de "
-"recuperación por outer join para asociaciones de un extremo solo (uno-"
-"a-uno, muchos-a-uno). Un <literal>0</literal> deshabilita la "
-"recuperación por outer join por defecto."
+"Establece una \"profundidad\" máxima del árbol de recuperación por unión "
+"externa (outer join) para asociaciones de un sólo extremo (uno-a-uno, muchos-"
+"a-uno). Un <literal>0</literal> deshabilita la recuperación por unión "
+"externa predeterminada."
#. Tag: para
-#: configuration.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>0</literal> and <literal>3</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> valores recomendados entre "
+"<emphasis role=\"strong\">ej.</emphasis> los valores recomendados entre "
"<literal>0</literal> y <literal>3</literal>"
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
-msgstr "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
+msgstr "<property>hibernate.default_batch_fetch_size</property>"
#. Tag: entry
-#: configuration.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr ""
-"Establece un tamaño por defecto para la recuperación en lote "
-"de asociaciones de Hibernate."
+"Establece un tamaño por defecto para la recuperación en lote de asociaciones "
+"de Hibernate."
#. Tag: para
-#: configuration.xml:462
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
msgstr ""
"<emphasis role=\"strong\">ej.</emphasis> valores recomendados <literal>4</"
-"literal>, <literal>8</literal>, <literal>16</literal>"
+"literal>, <literal>8</literal>, <literal>16</literal> "
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
-msgstr "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
+msgstr "<property>hibernate.default_entity_mode</property>"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory</literal>"
msgstr ""
-"Establece un modo por defecto de representación de entidades para "
-"todas las sesiones abiertas por esta <literal>SessionFactory</literal>"
+"Establece un modo predeterminado de representación de entidades para todas "
+"las sesiones abiertas desde esta <literal>SessionFactory</literal>"
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
@@ -898,212 +722,186 @@
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
-msgstr "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
+msgstr "<property>hibernate.order_updates</property>"
#. Tag: entry
-#: configuration.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
-"Fuerza a Hibernate a ordenar las actualizaciones SQL por el valor de la "
-"clave primaria de los items a actualizar. Esto resultará en menos "
-"bloqueos muertos de transacción en sistemas altamente concurrentes."
+"Obliga a Hibernate a ordenar las actualizaciones SQL por el valor de la "
+"clave principal de los items a actualizar. Esto resultará en menos bloqueos "
+"de transacción en sistemas altamente concurrentes."
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
-msgstr "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
+msgstr "<property>hibernate.generate_statistics</property>"
#. Tag: entry
-#: configuration.xml:500
#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr ""
-"De habilitarse, Hibernate colectará estadísticas útiles "
-"para la afinación de rendimiento."
+"De habilitarse, Hibernate colectará estadÃsticas útiles para la afinación de "
+"rendimiento. "
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
-msgstr "hibernate.use_identifer_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
+msgstr "<property>hibernate.use_identifier_rollback</property>"
#. Tag: entry
-#: configuration.xml:513
#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
msgstr ""
-"De habilitarse, las propiedades identificadoras generadas serán "
-"reseteadas a valores por defecto cuando los objetos sean borrados."
+"De habilitarse, cuando se borren los objetos las propiedades identificadoras "
+"generadas se resetearán a losvalores establecidos por defecto."
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
-msgstr "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
+msgstr "<property>hibernate.use_sql_comments</property>"
#. Tag: entry
-#: configuration.xml:526
#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false</literal>."
msgstr ""
-"De activarse, Hibernate generará comentarios dentro del SQL, para una "
-"más fácil depuración, por defecto a <literal>false</"
-"literal>."
+"De activarse, Hibernate generará comentarios dentro del SQL, para una "
+"depuración más fácil, por defecto es <literal>false</literal>."
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "Propiedades de JDBC y Conexiones de Hibernate"
-#. Tag: property
-#: configuration.xml:553
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
-msgstr "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
+msgstr "<property>hibernate.jdbc.fetch_size</property>"
#. Tag: entry
-#: configuration.xml:555
#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
msgstr ""
-"Un valor distinto de cero que determina el tamaño de "
-"recuperación de JDBC (llama a <literal>Statement.setFetchSize()</"
-"literal>)."
+"Un valor distinto de cero que determina el tamaño de recuperación de JDBC "
+"(llama a <literal>Statement.setFetchSize()</literal>)."
-#. Tag: property
-#: configuration.xml:562
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
-msgstr "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
+msgstr "<property>hibernate.jdbc.batch_size</property>"
#. Tag: entry
-#: configuration.xml:564
#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr ""
-"Un valor distinto de cero habilita el uso de actualizaciones en lote de "
-"JDBC2 por Hibernate."
+"Un valor distinto de cero habilita que Hibernate utilice las actualizaciones "
+"en lote de JDBC2. "
#. Tag: para
-#: configuration.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>5</literal> and <literal>30</literal>"
msgstr ""
"<emphasis role=\"strong\">ej.</emphasis> valores recomendados entre "
-"<literal>5</literal> y <literal>30</literal>"
+"<literal>5</literal> y <literal>30</literal> "
-#. Tag: property
-#: configuration.xml:574
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
-msgstr "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
+msgstr "<property>hibernate.jdbc.batch_versioned_data</property>"
#. Tag: entry
-#: configuration.xml:576
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
"correct row counts from <literal>executeBatch()</literal>. Iit is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-"Establece esta propiedad a <literal>true</literal> si tu driver JDBC "
-"devuelve cuentas correctas de filas desde <literal>executeBatch()</literal> "
-"(usualmente es seguro activar esta opción). Hibernate usará "
-"DML en lote para versionar automáticamente los datos. Por defecto a "
-"<literal>false</literal>."
+"Establece esta propiedad como <literal>true</literal> si su controlador JDBC "
+"retorna cuentas correctas de filas desde <literal>executeBatch()</literal>. "
+"Usualmente es seguro activar esta opción. Hibernate utilizará un DML en lote "
+"para versionar automáticamente los datos. Por defecto es <literal>false</"
+"literal>."
-#. Tag: property
-#: configuration.xml:589
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
-msgstr "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
+msgstr "<property>hibernate.jdbc.factory_class</property>"
#. Tag: entry
-#: configuration.xml:591
#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
"Most applications will not need this configuration property."
msgstr ""
-"Selecciona un <literal>Batcher</literal> personalizado. La mayoría de "
-"las aplicaciones no necesitarán esta propiedad de configuració"
-"n."
+"Selecciona un <interfacename>org.hibernate.jdbc.Batcher</interfacename> "
+"personalizado. La mayorÃa de las aplicaciones no necesitarán esta propiedad "
+"de configuración. "
#. Tag: para
-#: configuration.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of."
+"<emphasis role=\"strong\">eg.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
-#. Tag: property
-#: configuration.xml:602
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
-msgstr "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
+msgstr "<property>hibernate.jdbc.use_scrollable_resultset</property>"
#. Tag: entry
-#: configuration.xml:604
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
-"Habilita el uso de resultados scrollables de JDBC2 por Hibernate. Esta "
-"propiedad sólo es necesaria cuando se usan conexiones JDBC provistas "
-"por el usuario, en caso contrario Hibernate usa los metadatos de "
-"conexión."
+"Habilita a Hibernate para utilizar los grupos de resultados deslizables de "
+"JDBC2. Esta propiedad sólamente es necesaria cuando se utilizan conexiones "
+"JDBC provistas por el usuario. En el caso contrario Hibernate utiliza los "
+"metadatos de conexión."
-#. Tag: property
-#: configuration.xml:616
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
-msgstr "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
+msgstr "<property>hibernate.jdbc.use_streams_for_binary</property>"
#. Tag: entry
-#: configuration.xml:618
#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
"<literal>serializable</literal> types to/from JDBC. <emphasis>*system-level "
"property*</emphasis>"
msgstr ""
-"Usa flujos (streams) al escribir/leer tipos <literal>binary</literal> o "
-"<literal>serializable</literal> a/desde JDBC (propiedad a nivel de sistema)."
+"Utiliza flujos (streams) al escribir/leer tipos <literal>binary</literal> o "
+"<literal>serializable</literal> a/desde JDBC. <emphasis>Propiedad a nivel de "
+"sistema</emphasis>"
-#. Tag: property
-#: configuration.xml:629
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
-msgstr "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
+msgstr "<property>hibernate.jdbc.use_get_generated_keys</property>"
#. Tag: entry
-#: configuration.xml:631
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
@@ -1112,95 +910,87 @@
"capabilities using connection metadata."
msgstr ""
"Habilita el uso de <literal>PreparedStatement.getGeneratedKeys()</literal> "
-"de JDBC3 para traer claves generadas nativamente después de insertar. "
-"Requiere un driver JDBC3+ y un JRE1.4+. Establécela a false si tu "
-"driver tiene problemas con los generadores de identificador de Hibernate. "
-"Por defecto, se intenta determinar las capacidades del driver usando los "
-"metadatos de conexión."
+"de JDBC3 para recuperar claves generadas nativamente después de insertar. "
+"Requiere un controlador JDBC3+ y un JRE1.4+. Establézcalo como falso si su "
+"controlador tiene problemas con los generadores del identificador de "
+"Hibernate. Por defecto, se intenta determinar las capacidades del "
+"controlador utilizando los metadatos de conexión."
#. Tag: para
-#: configuration.xml:637 configuration.xml:767 configuration.xml:779
-#: configuration.xml:793 configuration.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
-msgstr "<emphasis role=\"strong\">ej.</emphasis> <literal>true|false</literal>"
+msgstr ""
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
-#. Tag: property
-#: configuration.xml:645
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
-msgstr "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
+msgstr "<property>hibernate.connection.provider_class</property>"
#. Tag: entry
-#: configuration.xml:647
#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
-"EL nombre de clase de un <literal>ConnectionProvider</literal> personalizado "
-"que provea conexiones JDBC a Hibernate."
+"EL nombre de clase de un <interfacename>org.hibernate.connection."
+"ConnectionProvider</interfacename> personalizado que proporcione conexiones "
+"JDBC a Hibernate. "
#. Tag: para
-#: configuration.xml:650
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of."
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
-#. Tag: property
-#: configuration.xml:658
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
-msgstr "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
+msgstr "<property>hibernate.connection.isolation</property>"
#. Tag: entry
-#: configuration.xml:660
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
"databases do not support all isolation levels and some define additional, "
"non-standard isolations."
msgstr ""
-"Establece el nivel de aislamiento de transacción JDBC. Comprueba "
-"<literal>java.sql.Connection</literal> para valores significativos pero "
-"observa que la mayoría de las bases de datos no soportan todos los "
-"niveles de aislamiento."
+"Establece el nivel de aislamiento de la transacción JDBC. Comprueba "
+"<interfacename>java.sql.Connection</interfacename> para valores "
+"significativos pero observe que la mayorÃa de las bases de datos no soportan "
+"todos los niveles de aislamiento y algunos definen nivekes de aislamiento "
+"adicionales y no estándares."
#. Tag: para
-#: configuration.xml:664
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
-msgstr "<emphasis role=\"strong\">eg.</emphasis> <literal>1, 2, 4, 8</literal>"
+msgstr ""
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
-#. Tag: property
-#: configuration.xml:672
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
-msgstr "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
+msgstr "<property>hibernate.connection.autocommit</property>"
#. Tag: entry
-#: configuration.xml:674
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr ""
-"Habilita compromiso automático (autocommit) para las conexiones JDBC "
-"en pool (no recomendado)."
+"Habilita un guardado automático (autocommit) para las conexiones JDBC en "
+"pool (no se recomienda)."
-#. Tag: property
-#: configuration.xml:684
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
-msgstr "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
+msgstr "<property>hibernate.connection.release_mode</property>"
#. Tag: entry
-#: configuration.xml:686
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
@@ -1212,493 +1002,445 @@
"the JTA and CMT transaction strategies and <literal>after_transaction</"
"literal> for the JDBC transaction strategy."
msgstr ""
-"Especifica cuándo Hibernate debe liberar las conexiones JDBC. Por "
-"defecto, una conexión JDBC es retenida hasta que la sesión es "
-"cerrada explícitamente o desconectada. Para un datasource JTA del "
-"servidor de aplicaciones, debes usar <literal>after_statement</literal> para "
-"liberar agresivamente las conexiones después de cada llamada JDBC. "
-"Para una conexión no JTA, frecuentemente tiene sentido liberar la "
-"conexión al final de cada transacción, usando "
-"<literal>after_transaction</literal>. <literal>auto</literal> eligirá "
-"<literal>after_statement</literal> para las estrategias JTA o CMT de "
-"transacción y <literal>after_transaction</literal> para la estrategia "
-"JDBC de transacción."
+"Especifica el momento en que Hibernate debe liberar las conexiones JDBC. Por "
+"defecto, una conexión JDBC es retenida hasta que la sesión se cierra o se "
+"desconecta explÃcitamente. Para una fuente de datos JTA del servidor de "
+"aplicaciones, debe utilizar <literal>after_statement</literal> para liberar "
+"agresivamente las conexiones después de cada llamada JDBC. Para una conexión "
+"no JTA, frecuentemente tiene sentido el liberar la conexión al final de cada "
+"transacción, el utilizar<literal>after_transaction</literal>. <literal>auto</"
+"literal> escogerá <literal>after_statement</literal> para las estrategias de "
+"transacción JTA y CMT y <literal>after_transaction</literal> para la "
+"estrategia JDBC de transacción. "
#. Tag: para
-#: configuration.xml:697
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>on_close</literal> (por "
-"defecto)| <literal>after_transaction</literal> | <literal>after_statement</"
-"literal> | <literal>auto</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
+"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
+"<literal>after_statement</literal>"
#. Tag: para
-#: configuration.xml:702
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
"<literal>SessionFactory.openSession</literal>. For <literal>Session</"
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
+"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
+"\" />"
msgstr ""
-"Note that this setting only affects <literal>Session</literal>s returned "
-"from <literal>SessionFactory.openSession</literal>. For <literal>Session</"
-"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
-"literal>, the <literal>CurrentSessionContext</literal> implementation "
-"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
+"Esta configuración sólamente afecta las <literal>Session</literal>es "
+"retornadas desde <literal>SessionFactory.openSession</literal>. Para las "
+"<literal>Session</literal>es obtenidas por medio de <literal>SessionFactory."
+"getCurrentSession</literal>, la implementación "
+"<literal>CurrentSessionContext</literal> configurada para utilización "
+"controla el modo de liberación de la conexión para esas <literal>Session</"
+"literal>es. Consulte <xref linkend=\"architecture-current-session\" />."
#. Tag: entry
-#: configuration.xml:713
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
"emphasis>"
-msgstr "hibernate.connection.<emphasis><propertyName></emphasis>"
+msgstr ""
+"<property>hibernate.connection.</property><emphasis><propertyName></"
+"emphasis>"
#. Tag: entry
-#: configuration.xml:716
#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
"<literal>DriverManager.getConnection()</literal>."
msgstr ""
-"Pasa la propiedad JDBC <literal>propertyName</literal> a "
+"Pasar la propiedad JDBC <emphasis><propertyName></emphasis> a "
"<literal>DriverManager.getConnection()</literal>."
#. Tag: entry
-#: configuration.xml:722
#, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
-msgstr "hibernate.jndi.<emphasis><propertyName></emphasis>"
+msgstr ""
+"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
#. Tag: entry
-#: configuration.xml:725
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
"<literal>InitialContextFactory</literal>."
msgstr ""
-"Pasa la propiedad <literal>propertyName</literal> a "
-"<literal>InitialContextFactory</literal> de JNDI."
+"Pasar la propiedad <emphasis><propertyName></emphasis> al "
+"<literal>InitialContextFactory</literal> JNDI."
#. Tag: title
-#: configuration.xml:735
#, no-c-format
msgid "Hibernate Cache Properties"
-msgstr "Propiedades de Caché de Hibernate"
+msgstr "Propiedades de Caché de Hibernate"
-#. Tag: literal
-#: configuration.xml:748
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
-msgstr "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
+msgstr "<literal>hibernate.cache.provider_class</literal>"
#. Tag: entry
-#: configuration.xml:750
#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
msgstr ""
"El nombre de clase de un <literal>CacheProvider</literal> personalizado."
#. Tag: para
-#: configuration.xml:752
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of."
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
-#. Tag: literal
-#: configuration.xml:760
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
-msgstr "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
+msgstr "<literal>hibernate.cache.use_minimal_puts</literal>"
#. Tag: entry
-#: configuration.xml:762
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
-"Optimiza la operación del caché de segundo nivel para "
-"minimizar escrituras, al costo de lecturas más frecuentes. Esto es "
-"más útil para cachés en cluster y, en Hibernate3, "
-"está habilitado por defecto para implementaciones de caché en "
-"cluster."
+"Optimiza la operación del caché de segundo nivel para minimizar escrituras, "
+"con el costo de lecturas más frecuentes. Esta configuración es más útil para "
+"cachés en clúster y en Hibernate3, está habilitado por defecto para "
+"implementaciones de caché en clúster. "
-#. Tag: literal
-#: configuration.xml:775
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
-msgstr "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
+msgstr "<literal>hibernate.cache.use_query_cache</literal>"
#. Tag: entry
-#: configuration.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
msgstr ""
-"Habilita el caché de lectura, consultas individuales todavía "
-"tienen que ponerse cachables."
+"Habilita el caché de consultas. Las consultas individuales todavÃa tienen "
+"que establecerse con cachés. "
-#. Tag: literal
-#: configuration.xml:787
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
-msgstr "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
+msgstr "<literal>hibernate.cache.use_second_level_cache</literal>"
#. Tag: entry
-#: configuration.xml:789
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache></literal> "
"mapping."
msgstr ""
-"Puede ser usado para deshabilitar completamente el caché de segundo "
-"nivel, que está habilitado por defecto para clases que especifican un "
-"mapeo <literal><cache></literal>."
+"Se puede utilizar para deshabilitar por completo el caché de segundo nivel, "
+"que está habilitado por defecto para clases que especifican un mapeo "
+"<literal><cache></literal>. "
-#. Tag: literal
-#: configuration.xml:801
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
-msgstr "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
+msgstr "<literal>hibernate.cache.query_cache_factory</literal>"
#. Tag: entry
-#: configuration.xml:803
#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
"to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
-"El nombre de clase de una interface <literal>QueryCache</literal> "
+"El nombre de clase de una interfaz <literal>QueryCache</literal> "
"personalizada, por defecto al <literal>StandardQueryCache</literal> "
-"prefabricado."
+"incorporado."
#. Tag: para
-#: configuration.xml:806
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of.QueryCache</"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
-#. Tag: literal
-#: configuration.xml:814
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
-msgstr "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
+msgstr "<literal>hibernate.cache.region_prefix</literal>"
#. Tag: entry
-#: configuration.xml:816
#, no-c-format
msgid "A prefix to use for second-level cache region names."
msgstr ""
-"Un prefijo a usar para los nombres de región del caché de "
+"Un prefijo que se debe utilizar para los nombres de región del caché de "
"segundo nivel."
#. Tag: para
-#: configuration.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
-msgstr "<emphasis role=\"strong\">ej.</emphasis> <literal>prefix</literal>"
+msgstr "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
-#. Tag: literal
-#: configuration.xml:826
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
-msgstr "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
+msgstr "<literal>hibernate.cache.use_structured_entries</literal>"
#. Tag: entry
-#: configuration.xml:828
#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
msgstr ""
-"Fuerza a Hibernate a almacenar los datos en el caché de segundo nivel "
-"en un formato más amigable al humano."
+"Obliga a Hibernate a almacenar los datos en el caché de segundo nivel en un "
+"formato más amigable para personas."
#. Tag: title
-#: configuration.xml:842
#, no-c-format
msgid "Hibernate Transaction Properties"
-msgstr "Propiedades de Transacción de Hibernate"
+msgstr "Propiedades de Transacción de Hibernate"
-#. Tag: literal
-#: configuration.xml:855
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
-msgstr "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
+msgstr "<literal>hibernate.transaction.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:857
#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
"Hibernate <literal>Transaction</literal> API (defaults to "
"<literal>JDBCTransactionFactory</literal>)."
msgstr ""
-"El nombre de clase de un <literal>TransactionFactory</literal> a usar con la "
-"API de <literal>Transaction</literal> de Hibernate (por defectoa "
+"El nombre de clase de un <literal>TransactionFactory</literal> a utilizar "
+"con la API de <literal>Transaction</literal> de Hibernate (por defecto es "
"<literal>JDBCTransactionFactory</literal>)."
#. Tag: para
-#: configuration.xml:861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of."
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
-#. Tag: literal
-#: configuration.xml:869
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
-msgstr "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
+msgstr "<literal>jta.UserTransaction</literal>"
#. Tag: entry
-#: configuration.xml:871
#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
"JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-"Un nombre JNDI usado por <literal>JTATransactionFactory</literal> para "
-"obtener la <literal>UserTransaction</literal> JTA del servidor de "
-"aplicaciones."
+"Un nombre JNDI utilizado por <literal>JTATransactionFactory</literal> para "
+"obtener la <literal>UserTransaction</literal> de JTA del servidor de "
+"aplicaciones. "
-#. Tag: literal
-#: configuration.xml:883
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
-msgstr "hibernate.transaction.manager_lookup_class"
-
#. Tag: entry
-#: configuration.xml:885
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
+msgstr "<literal>hibernate.transaction. manager_lookup_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
-"El nombre de clase de un <literal>TransactionManagerLookup</literal> "
-"requerido cuando el chaché a nivel de JVM está habilitado o "
-"cuando se usa un generador alto/bajo en un entorno JTA."
+"El nombre de clase de un <literal>TransactionManagerLookup</literal>. Se "
+"requiere cuando el chaché a nivel de MVJ está habilitado o cuando se utiliza "
+"un generador alto/bajo en un entorno JTA."
#. Tag: para
-#: configuration.xml:889
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>classname.of."
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
-#. Tag: literal
-#: configuration.xml:897
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
-msgstr "hibernate.transaction.flush_before_completion"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
+msgstr "<literal>hibernate.transaction. flush_before_completion</literal>"
#. Tag: entry
-#: configuration.xml:899
#, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"De habilitarse, la sesión se limpiará (flushed) automá"
-"ticamente durante la fase previa a la compleción de la "
-"transacción. (Muy útil cuando se usa Hibernate con CMT)."
+"Si está habilitado, la sesión se vaciará automáticamente durante la fase "
+"previa a la finalización de la transacción. Se prefiere la administración "
+"del contexto de sesión automático e incorporado. Consulte <xref linkend="
+"\"architecture-current-session\" />."
-#. Tag: literal
-#: configuration.xml:912
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
-msgstr "hibernate.transaction.auto_close_session"
-
#. Tag: entry
-#: configuration.xml:914
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
+msgstr "<literal>hibernate.transaction. auto_close_session</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"De habilitarse, la sesión será cerrada automáticamente "
-"durante la fase posterior a la compleción de la transacción. "
-"(Muy útil cuando se usa Hibernate con CMT)."
+"Si se habilita, la sesión se cerrará automáticamente durante la fase "
+"posterior a la finalización de la transacción. Se prefiere la administración "
+"del contexto de sesión automático e incorporado. Consulte <xref linkend="
+"\"architecture-current-session\" />."
#. Tag: title
-#: configuration.xml:930
#, no-c-format
msgid "Miscellaneous Properties"
-msgstr "Propiedades Misceláneas"
+msgstr "Propiedades Misceláneas"
-#. Tag: literal
-#: configuration.xml:943
-#, no-c-format
-msgid "hibernate.current_session_context_class"
-msgstr "hibernate.current_session_context_class"
-
#. Tag: entry
-#: configuration.xml:945
#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
+msgstr "<literal>hibernate. current_session_context_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
-"Supply a (custom) strategy for the scoping of the \"current\" "
-"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"Proporciona una estrategia personalizada para el alcance de la "
+"<literal>Session</literal> \"actual\". Consulte <xref linkend=\"architecture-"
+"current-session\" /> para obtener más información sobre las estrategias "
+"incorporadas. "
#. Tag: para
-#: configuration.xml:950
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis> <literal>jta</literal> | "
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
-#. Tag: literal
-#: configuration.xml:959
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
-msgstr "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
+msgstr "<literal>hibernate.query.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:961
#, no-c-format
msgid "Chooses the HQL parser implementation."
-msgstr "Elige la implementación de parser HQL."
+msgstr "Elige la implementación de análisis sintáctico HQL."
#. Tag: para
-#: configuration.xml:963
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
"<emphasis role=\"strong\">ej.</emphasis> <literal>org.hibernate.hql.ast."
-"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
+"ASTQueryTranslatorFactory</literal> o <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
-#. Tag: literal
-#: configuration.xml:972
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
-msgstr "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
+msgstr "<literal>hibernate.query.substitutions</literal>"
#. Tag: entry
-#: configuration.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
-"Mapeos de símbolos en consultas Hibernate a símbolos SQL. (los "
-"símbolos puedem ser nombres de función o literales, por "
-"ejemplo)."
+"Se utiliza para mapear desde tokens en consultas Hibernate a tokens SQL. "
+"(por ejemplo, los tokens pueden ser nombres de función o literales). "
#. Tag: para
-#: configuration.xml:977
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
-#. Tag: literal
-#: configuration.xml:985
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
-msgstr "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
+msgstr "<literal>hibernate.hbm2ddl.auto</literal>"
#. Tag: entry
-#: configuration.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory</literal> is created. With <literal>create-drop</"
"literal>, the database schema will be dropped when the "
"<literal>SessionFactory</literal> is closed explicitly."
msgstr ""
-"Exporta automáticamente DDL de esquema cuando al crear la "
-"<literal>SessionFactory</literal>. Con <literal>create-drop</literal>, el "
-"esquema de base de datos será desechado cuando la "
-"<literal>SessionFactory</literal> se cierre explícitamente."
+"Exporta o valida automáticamente DDL de esquema a la base de datos cuando se "
+"crea la <literal>SessionFactory</literal>. Con <literal>create-drop</"
+"literal> se desechará el esquema de la base de datos cuando la "
+"<literal>SessionFactory</literal> se cierre explÃcitamente."
#. Tag: para
-#: configuration.xml:993
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
msgstr ""
-"<emphasis role=\"strong\">ej.</emphasis> <literal>update</literal> | "
-"<literal>create</literal> | <literal>create-drop</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
+"<literal>update</literal> | <literal>create</literal> | <literal>create-"
+"drop</literal>"
-#. Tag: literal
-#: configuration.xml:1002
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
-msgstr "hibernate.cglib.use_reflection_optimizer"
-
#. Tag: entry
-#: configuration.xml:1004
#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
+msgstr "<literal>hibernate.cglib. use_reflection_optimizer</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
"Hibernate always requires CGLIB even if you turn off the optimizer. You "
"cannot set this property in <literal>hibernate.cfg.xml</literal>."
msgstr ""
-"Habilita el uso de CGLIB en vez de refleccón en tiempo de "
-"ejecución (propiedad a nivel de sistema). La reflección a "
-"veces puede ser útil ante la aparición de problemas. Observa "
-"que Hibernate siempre requiere CGLIB incluso si desactivas el optimizador. "
-"No puedes establecer esta propiedad en <literal>hibernate.cfg.xml</literal>."
+"Habilita el uso de CGLIB en vez de reflección en tiempo de ejecución "
+"(propiedad a nivel del sistema). La reflección a veces puede ser útil ante "
+"ciertos problemas. Hibernate siempre requiere CGLIB incluso si desactiva el "
+"optimizador. No puede establecer esta propiedad en <literal>hibernate.cfg."
+"xml</literal>."
#. Tag: title
-#: configuration.xml:1020
#, no-c-format
msgid "SQL Dialects"
-msgstr "SQL Dialects"
+msgstr "Dialectos de SQL"
#. Tag: para
-#: configuration.xml:1022
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
"<literal>org.hibernate.dialect.Dialect</literal> subclass for your database. "
@@ -1706,315 +1448,265 @@
"the other properties listed above. This means that you will not have to "
"specify them manually."
msgstr ""
-"You should always set the <literal>hibernate.dialect</literal> property to "
-"the correct <literal>org.hibernate.dialect.Dialect</literal> subclass for "
-"your database. If you specify a dialect, Hibernate will use sensible "
-"defaults for some of the other properties listed above, saving you the "
-"effort of specifying them manually."
+"Siempre configure la propiedad <literal>hibernate.dialect</literal> a la "
+"subclase correcta <literal>org.hibernate.dialect.Dialect</literal> para su "
+"base de datos. Si especifica un dialecto, Hibernate utilizará valores "
+"predeterminados de manera sensible para algunas de las otras propiedades "
+"enumeradas anteriormente, ahorrándole el esfuerzo de especificarlas "
+"manualmente."
#. Tag: title
-#: configuration.xml:1030
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
msgstr "Dialectos SQL de Hibernate(<literal>hibernate.dialect</literal>)"
#. Tag: entry
-#: configuration.xml:1036
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1037
#, no-c-format
msgid "Dialect"
msgstr "Dialecto"
#. Tag: entry
-#: configuration.xml:1042
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr "<entry>DB2</entry>"
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1042
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
-msgstr "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1045
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1045
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
-msgstr "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1048
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1048
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
-msgstr "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1051
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1051
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
-msgstr "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1054
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
-#. Tag: literal
-#: configuration.xml:1054
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
-msgstr "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1057
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL con InnoDB"
-#. Tag: literal
-#: configuration.xml:1057
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
-msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1060
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL con MyISAM"
-#. Tag: literal
-#: configuration.xml:1060
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
-msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
#. Tag: entry
-#: configuration.xml:1063
#, no-c-format
msgid "Oracle (any version)"
-msgstr "Oracle (cualquier versión)"
+msgstr "Oracle (cualquier versión)"
-#. Tag: literal
-#: configuration.xml:1063
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.OracleDialect</literal>"
#. Tag: entry
-#: configuration.xml:1066
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 9i"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 9i"
-#. Tag: literal
-#: configuration.xml:1066
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
-msgstr "org.hibernate.dialect.Oracle9Dialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
#. Tag: entry
-#: configuration.xml:1069
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 10g"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 10g"
-#. Tag: literal
-#: configuration.xml:1069
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
#. Tag: entry
-#: configuration.xml:1072
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1072
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
-msgstr "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1075
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
-#. Tag: literal
-#: configuration.xml:1075
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
-msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
#. Tag: entry
-#: configuration.xml:1078
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
-#. Tag: literal
-#: configuration.xml:1078
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
-msgstr "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
#. Tag: entry
-#: configuration.xml:1081
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1081
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
-msgstr "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1084
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1084
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
-msgstr "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InformixDialect</literal>"
#. Tag: entry
-#: configuration.xml:1087
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1087
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
-msgstr "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.HSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1090
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1090
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
-msgstr "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.IngresDialect</literal>"
#. Tag: entry
-#: configuration.xml:1093
#, no-c-format
msgid "Progress"
msgstr "Progress"
-#. Tag: literal
-#: configuration.xml:1093
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
-msgstr "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.ProgressDialect</literal>"
#. Tag: entry
-#: configuration.xml:1096
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1096
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
-msgstr "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MckoiDialect</literal>"
#. Tag: entry
-#: configuration.xml:1099
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1099
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
-msgstr "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1102
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
-#. Tag: literal
-#: configuration.xml:1102
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
-msgstr "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1105
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
-#. Tag: literal
-#: configuration.xml:1105
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
-msgstr "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1108
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1108
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
-msgstr "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
#. Tag: title
-#: configuration.xml:1117
#, no-c-format
msgid "Outer Join Fetching"
-msgstr "Recuperación por Unión Externa (Outer Join Fetching)"
+msgstr "Recuperación por Unión Externa - Outer Join Fetching"
#. Tag: para
-#: configuration.xml:1119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching</emphasis> will often increase performance by "
@@ -2024,18 +1716,15 @@
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT</literal>."
msgstr ""
-"Si tu base de datos soporta uniones externas del estilo ANSI, Oracle o "
-"Sybase, la <emphasis>recuperación por unión externa</emphasis> "
-"aumentará frecuentemente el rendimiento limitando el número de "
-"llamadas a la base de datos (al costo de más trabajo posiblemente "
-"realizado por la base de datos misma). La recuperación por unió"
-"n externa permite que un grafo completo de objetos conectados por "
-"asociaciones muchos-a-uno, uno-a-muchos, muchos-a-muchos y uno-a-uno sea "
-"traído en una sola <literal>SELECT</literal> SQL."
+"Si su base de datos soporta uniones externas del estilo ANSI, Oracle o "
+"Sybase, frecuentemente la <emphasis>recuperación por unión externa</"
+"emphasis> aumentará el rendimiento limitando el número de llamadas a la base "
+"de datos. La recuperación por unión externa permite que un gráfico completo "
+"de objetos conectados por asociaciones muchos-a-uno, uno-a-muchos, muchos-a-"
+"muchos y uno-a-uno sea recuperado en un sólo <literal>SELECT</literal> SQL."
#. Tag: para
-#: configuration.xml:1128
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
"the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</"
@@ -2043,30 +1732,27 @@
"fetching for one-to-one and many-to-one associations that have been mapped "
"with <literal>fetch=\"join\"</literal>."
msgstr ""
-"La recuperación por unión externa puede ser deshabilitada "
+"La recuperación por unión externa puede ser deshabilitada "
"<emphasis>globalmente</emphasis> estableciendo la propiedad "
-"<literal>hibernate.max_fetch_depth</literal> a <literal>0</literal>. Un "
-"valor de <literal>1</literal> o mayor habilita la recuperación por "
-"unión externa para asociaciones uno-a-uno y muchos-a-uno que hayan "
-"sido mapeadas con <literal>fetch=\"join\"</literal>."
+"<literal>hibernate.max_fetch_depth</literal> como <literal>0</literal>. Un "
+"valor de <literal>1</literal> o mayor habilita la recuperación por unión "
+"externa para asociaciones uno-a-uno y muchos-a-uno que hayan sido mapeadas "
+"con <literal>fetch=\"join\"</literal>."
#. Tag: para
-#: configuration.xml:1136
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
msgstr ""
-"Ver <xref linkend=\"performance-fetching\"/> para más "
-"información."
+"Consulte <xref linkend=\"performance-fetching\" /> para obtener más "
+"información."
#. Tag: title
-#: configuration.xml:1143
#, no-c-format
msgid "Binary Streams"
msgstr "Flujos Binarios"
#. Tag: para
-#: configuration.xml:1145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
@@ -2074,88 +1760,66 @@
"should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
"<emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
-"Oracle limita el tamaño de arrays de <literal>byte</literal> que "
-"puedan ser pasados a/desde su driver JDBC. Si deseas usar instancias grandes "
-"de tipo <literal>binary</literal> o <literal>serializable</literal>, debes "
+"Oracle limita el tamaño de arrays de <literal>byte</literal> que se puedan "
+"pasar a/desde su controlador JDBC. Si desea utilizar instancias grandes de "
+"tipo <literal>binary</literal> o <literal>serializable</literal>, usted debe "
"habilitar <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
-"<emphasis>Esta es una propiedad a nivel de sistema solamente.</emphasis>"
+"<emphasis>Esta es una configuración a nivel de sistema sólamente.</emphasis>"
#. Tag: title
-#: configuration.xml:1156
#, no-c-format
msgid "Second-level and query cache"
-msgstr "Caché de segundo nivel y de lectura"
+msgstr "Caché de segundo nivel y de lectura"
#. Tag: para
-#: configuration.xml:1158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
-"Las propiedades prefijadas por <literal>hibernate.cache</literal> te "
-"permiten usar un sistema de caché de segundo nivel en el á"
-"mbito de un proceso o cluster con Hibernate. Ver <xref linkend=\"performance-"
-"cache\"/> para más detalles."
+"Las propiedades prefijadas por <literal>hibernate.cache</literal> le "
+"permiten utilizar un sistema de caché de segundo nivel en el ámbito de un "
+"proceso o clúster con Hibernate. Vea la <xref linkend=\"performance-cache\" /"
+"> para obtener más detalles."
#. Tag: title
-#: configuration.xml:1168
#, no-c-format
msgid "Query Language Substitution"
-msgstr "Sustitución de Lenguaje de Consulta"
+msgstr "Sustitución de Lenguaje de Consulta"
#. Tag: para
-#: configuration.xml:1170
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
-"Puedes definir nuevos símbolos de consulta de Hibernate usando "
+"Puede definir nuevos tokens de consulta de Hibernate utilizando "
"<literal>hibernate.query.substitutions</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: configuration.xml:1175
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions true=1, false=0"
-
#. Tag: para
-#: configuration.xml:1177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
"literal> to be translated to integer literals in the generated SQL."
msgstr ""
-"causaría que los símbolos <literal>true</literal> y "
-"<literal>false</literal> sean traducidos a literales enteros en el SQL "
-"generado."
+"Esto causarÃa que los tokens <literal>true</literal> y <literal>false</"
+"literal> sean traducidos a literales enteros en el SQL generado."
-#. Tag: programlisting
-#: configuration.xml:1182
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
msgstr ""
-"te permitiría renombrar la función <literal>LOWER</literal> de "
-"SQL."
+"Esto le permitirÃa renombrar la función <literal>LOWER</literal> de SQL."
#. Tag: title
-#: configuration.xml:1191
#, no-c-format
msgid "Hibernate statistics"
-msgstr "Hibernate statistics"
+msgstr "EstadÃsticas de Hibernate"
#. Tag: para
-#: configuration.xml:1193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
@@ -2163,22 +1827,19 @@
"configured to expose these statistics via JMX. Read the Javadoc of the "
"interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
-"Si habilitas <literal>hibernate.generate_statistics</literal>, Hibernate "
-"expondrá un número de métricas que son útiles al "
-"afinar un sistema en ejecución vía <literal>SessionFactory."
-"getStatistics()</literal>. Hibernate puede incluso ser configurado para "
-"exponer estas estadísticas vía JMX. Lee el Javadoc de las "
-"interfaces en <literal>org.hibernate.stats</literal> para más "
-"información."
+"Si habilita <literal>hibernate.generate_statistics</literal>, Hibernate "
+"expondrá un número de métricas que son útiles al afinar un sistema en "
+"ejecución por medio de <literal>SessionFactory.getStatistics()</literal>. "
+"Incluso se puede configurar Hibernate para exponer estas estadÃsticas por "
+"medio de JMX. Lea el Javadoc de las interfaces en <literal>org.hibernate."
+"stats</literal> para obtener más información."
#. Tag: title
-#: configuration.xml:1205
#, no-c-format
msgid "Logging"
msgstr "Registros de mensajes (Logging)"
#. Tag: para
-#: configuration.xml:1207
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2194,10 +1855,22 @@
"properties file is distributed with Hibernate in the <literal>src/</literal> "
"directory."
msgstr ""
+"Hibernate utiliza <ulink url=\"http://www.slf4j.org/\">Simple Logging Facade "
+"for Java</ulink> (SLF4J) con el fin de registrar varios eventos del sistema. "
+"SLF4J puede direccionar su salida de registro a varios marcos de trabajo de "
+"registro (NOP, Simple, log4j versión 1.2, JDK 1.4 logging, JCL o logback) "
+"dependiendo de su enlace escogido. Con el fin de configurar el registro "
+"necesitará <filename>slf4j-api.jar</filename> en su ruta de clase junto con "
+"el archivo jar para su enlace preferido - <filename>slf4j-log4j12.jar</"
+"filename> en el caso de Log4J. Consulte la <ulink url=\"http://www.slf4j.org/"
+"manual.html\">documentación</ulink> SLF4J para obtener mayores detalles. "
+"Para usar Log4j también necesitará poner un archivo <filename>log4j."
+"properties</filename> en su ruta de clase. Un archivo de propiedades de "
+"ejemplo se distribuye junto con Hibernate en el directorio <literal>src/</"
+"literal>."
#. Tag: para
-#: configuration.xml:1218
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
@@ -2205,162 +1878,136 @@
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
-"Recomendamos fuertemente que te familiarices con los registros de mensajes "
-"de Hibernate. Se ha puesto un gran trabajo en hacer los registros de "
-"Hibernate tan detallados como se puede, sin hacerlos ilegibles. Es un "
-"dispositivo esencial en la resolución de problemas. Las "
-"categorías de registro más interesantes son las siguientes:"
+"Le recomendamos bastante que se familiarice con los mensajes de registro de "
+"Hibernate. Se ha trabajado bastante para hacer que los registros de "
+"Hibernate sean tan detallados como sea posible, sin hacerlos ilegibles. Es "
+"un dispositivo esencial en la resolución de problemas. Las categorÃas de "
+"registro más interesantes son las siguientes: "
#. Tag: title
-#: configuration.xml:1227
#, no-c-format
msgid "Hibernate Log Categories"
-msgstr "Categorías de Registro de Hibernate"
+msgstr "CategorÃas de Registro de Hibernate"
#. Tag: entry
-#: configuration.xml:1233
#, no-c-format
msgid "Category"
-msgstr "Categoría"
+msgstr "CategorÃa"
#. Tag: entry
-#: configuration.xml:1234
#, no-c-format
msgid "Function"
-msgstr "Función"
+msgstr "Función"
-#. Tag: literal
-#: configuration.xml:1239
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
-msgstr "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
+msgstr "<literal>org.hibernate.SQL</literal>"
#. Tag: entry
-#: configuration.xml:1240
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
-msgstr "Registra todas las sentencias DML de SQL a medida que se ejecutan"
+msgstr "Registra todas las declaraciones DML de SQL a medida que se ejecutan"
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
-msgstr "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
+msgstr "<literal>org.hibernate.type</literal>"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all JDBC parameters"
-msgstr "Registra todos los parámetros JDBC"
+msgstr "Registra todos los parámetros JDBC"
-#. Tag: literal
-#: configuration.xml:1247
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
-msgstr "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
+msgstr "<literal>org.hibernate.tool. hbm2ddl</literal>"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
-msgstr "Registra todas las sentencias DDL de SQL a medida que se ejecutan"
+msgstr "Registra todas las declaraciones DDL de SQL a medida que se ejecutan"
-#. Tag: literal
-#: configuration.xml:1251
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
-msgstr "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
+msgstr "<literal>org.hibernate.pretty</literal>"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
msgstr ""
-"Registra el estado de todas las entidades (máximo de 20 entidades) "
-"asociadas con la sesión en tiempo de limpieza (flush)"
+"Registra el estado de todas las entidades (máximo 20 entidades) asociadas "
+"con la sesión en tiempo de limpieza (flush)"
-#. Tag: literal
-#: configuration.xml:1258
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
-msgstr "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
+msgstr "<literal>org.hibernate.cache</literal>"
#. Tag: entry
-#: configuration.xml:1259
#, no-c-format
msgid "Log all second-level cache activity"
-msgstr "Registra toda la actividad del caché de segundo nivel"
+msgstr "Registra toda la actividad del caché de segundo nivel"
-#. Tag: literal
-#: configuration.xml:1262
-#, no-c-format
-msgid "org.hibernate.transaction"
-msgstr "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
+msgstr "<literal>org.hibernate. transaction</literal>"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log transaction related activity"
-msgstr "Registra la actividad relacionada con la transacción"
+msgstr "Registra la actividad relacionada con la transacción"
-#. Tag: literal
-#: configuration.xml:1266
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
-msgstr "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
+msgstr "<literal>org.hibernate.jdbc</literal>"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log all JDBC resource acquisition"
-msgstr "Registra toda adquisición de recursos JDBC"
+msgstr "Registra toda adquisición de recursos JDBC"
-#. Tag: literal
-#: configuration.xml:1270
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
-msgstr "org.hibernate.hql.ast"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
+msgstr "<literal>org.hibernate.hql. ast.AST</literal>"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
-msgstr ""
-"Regista los ASTs de HQL y SQL, así como otra información sobre "
-"análisis de consultas."
+msgstr "Regista los ASTs de HQL y SQL, durante análisis de consultas."
-#. Tag: literal
-#: configuration.xml:1276
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
-msgstr "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
+msgstr "<literal>org.hibernate.secure</literal>"
#. Tag: entry
-#: configuration.xml:1277
#, no-c-format
msgid "Log all JAAS authorization requests"
-msgstr "Registra todas las peticiones de autorización JAAS"
+msgstr "Registra todas las peticiones de autorización JAAS"
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
+msgid "<literal>org.hibernate</literal>"
+msgstr "<literal>org.hibernate</literal>"
#. Tag: entry
-#: configuration.xml:1281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
msgstr ""
-"Registra todo (mucha información, pero muy útil para la "
-"resolución de problemas)"
+"Registra todo. Hay mucha información, pero es útil para la resolución de "
+"problemas"
#. Tag: para
-#: configuration.xml:1290
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2368,31 +2015,28 @@
"hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate."
"show_sql</literal> enabled."
msgstr ""
-"Al desarrollar aplicacinoes con Hibernate, casi siempre debes trabajar con "
-"<literal>debug</literal> habilitado para la categoría <literal>org."
-"hibernate.SQL</literal> o, alternativamente, la propiedad <literal>hibernate."
-"show_sql</literal> habilitada."
+"Al desarrollar aplicaciones con Hibernate, casi siempre debe trabajar con "
+"<literal>debug</literal> habilitado para la categorÃa <literal>org.hibernate."
+"SQL</literal> o, alternativamente, la propiedad <literal>hibernate.show_sql</"
+"literal> habilitada."
#. Tag: title
-#: configuration.xml:1300
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
-msgstr "Implementando una <literal>NamingStrategy</literal>"
+msgstr "Implementación de una <literal>NamingStrategy</literal>"
#. Tag: para
-#: configuration.xml:1302
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
"to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
-"La interface <literal>org.hibernate.cfg.NamingStrategy</literal> te permite "
-"especificar un \"estándar de nombrado\" para objetos de la base de "
-"datos y elementos de esquema."
+"La interfaz <literal>org.hibernate.cfg.NamingStrategy</literal> le permite "
+"especificar un \"estándar de nombrado\" para objetos de la base de datos y "
+"los elementos del esquema."
#. Tag: para
-#: configuration.xml:1307
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
@@ -2401,60 +2045,39 @@
"noise (<literal>TBL_</literal> prefixes, for example). The default strategy "
"used by Hibernate is quite minimal."
msgstr ""
-"Puedes proveer reglas para generar automáticamente identificadores de "
-"base de datos a partir de identificadores JDBC o para procesar nombres "
-"\"lógicos\" de columnas y tablas dados en el fichero de mapeo en "
-"nombres \"físicos\" de columnas y tablas. Esta funcionalidad ayuda a "
-"reducir la verborragia del documento de mapeo, eliminando ruido repetitivo "
-"(prefijos <literal>TBL_</literal>, por ejemplo). La estrategia por defecto "
-"usada por Hibernate mínima en absoluto."
+"Puede proveer reglas para generar automáticamente identificadores de la base "
+"de datos a partir de identificadores JDBC o para procesar nombres \"lógicos"
+"\" de columnas y tablas dadas en el archivo de mapeo en nombres \"fÃsicos\" "
+"de columnas y tablas. Esta funcionalidad ayuda a reducir la verborragia del "
+"documento de mapeo, eliminando ruidos repetitivos (por ejemplo, prefijos "
+"<literal>TBL_</literal>). Hibernate utiliza una estrategia por defecto "
+"bastante mÃnima."
#. Tag: para
-#: configuration.xml:1316
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
-"Puedes especificar una estrategia diferente llamando a "
-"<literal>Configuration.setNamingStrategy()</literal> antes de agregar los "
-"mapeos:"
+"Puede especificar una estrategia diferente llamando a <literal>Configuration."
+"setNamingStrategy()</literal> antes de agregar los mapeos:"
-#. Tag: programlisting
-#: configuration.xml:1321
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-
#. Tag: para
-#: configuration.xml:1323
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
"strategy that might be a useful starting point for some applications."
msgstr ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> es una "
-"estrategia prefabricada que puede ser un punto de partida útil para "
-"algunas aplicaciones."
+"estrategia incorporada que puede ser un punto de partida útil para algunas "
+"aplicaciones."
#. Tag: title
-#: configuration.xml:1331
#, no-c-format
msgid "XML configuration file"
-msgstr "Fichero de configuración XML"
+msgstr "Archivo de configuración XML"
#. Tag: para
-#: configuration.xml:1333
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -2462,108 +2085,24 @@
"as a replacement for the <literal>hibernate.properties</literal> file or, if "
"both are present, to override properties."
msgstr ""
-"Un enfoque alternativo de configuración es especificar una "
-"configuración completa en un fichero llamado <literal>hibernate.cfg."
-"xml</literal>. Este fichero puede ser usado como un remplazo del fichero "
-"<literal>hibernate.properties</literal> o, si ambos están presentes, "
-"para sobrescribir propiedades."
+"Un enfoque alternativo de configuración es especificar una configuración "
+"completa en un archivo llamado <literal>hibernate.cfg.xml</literal>. Este "
+"archivo se puede utilizar como un remplazo del archivo <literal>hibernate."
+"properties</literal> o en el caso de que ambos se encuentren presentes, para "
+"sobrescribir propiedades."
#. Tag: para
-#: configuration.xml:1340
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
-"El fichero de configuración XML se espera por defecto en la raí"
-"z o tu <literal>CLASSPATH</literal>. He aquí un ejemplo:"
+"El archivo de configuración XML por defecto se espera en la raÃz de su "
+"<literal>CLASSPATH</literal>. Este es un ejemplo:"
-#. Tag: programlisting
-#: configuration.xml:1345
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-
-#. Tag: para
-#: configuration.xml:1347
-#, fuzzy, no-c-format
-msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml</literal> is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
@@ -2571,65 +2110,38 @@
"cfg.xml</literal>. Both are equivalent, except for the above mentioned "
"benefits of using the XML syntax."
msgstr ""
-"Como puedes ver, la ventaja de este enfoque es la externalización de "
-"los nombres de los fichero de mapeo a configuración. El "
-"<literal>hibernate.cfg.xml</literal> es también más "
-"conveniente una vez que hayas afinado el caché de Hibernate. Observa "
-"que elección tuya usar ya sea <literal>hibernate.properties</literal> "
-"o <literal>hibernate.cfg.xml</literal>, ambos son equivalentes, excepto por "
-"los beneficios de usar la sintaxis XML arriba mencionados."
+"La ventaja de este enfoque es la externalización de los nombres de los "
+"archivos de mapeo a la configuración. El <literal>hibernate.cfg.xml</"
+"literal> también es más práctico una vez que haya afinado el caché de "
+"Hibernate. Puede escoger ya sea <literal>hibernate.properties</literal> o "
+"<literal>hibernate.cfg.xml</literal>. Ambos son equivalentes, excepto por "
+"los beneficios de utilizar la sintaxis XML que mencionados anteriormente."
#. Tag: para
-#: configuration.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
-msgstr "Con la configuración XML, arrancar Hibernate es tan simple como"
+msgstr "Con la configuración XML, iniciar Hibernate es tan simple como:"
-#. Tag: programlisting
-#: configuration.xml:1360
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-
#. Tag: para
-#: configuration.xml:1362
-#, fuzzy, no-c-format
-msgid "You can select a different XML configuration file using:"
-msgstr "Puedes tomar un fichero XML diferente usando"
-
-#. Tag: programlisting
-#: configuration.xml:1366
#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
+msgid "You can select a different XML configuration file using:"
msgstr ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
+"Puede seleccionar un fichero de configuración XML diferente utilizando:"
#. Tag: title
-#: configuration.xml:1371
#, no-c-format
msgid "J2EE Application Server integration"
-msgstr "Integració con Servidores de Aplicaciones J2EE"
+msgstr "Integración con Servidores de Aplicaciones J2EE"
#. Tag: para
-#: configuration.xml:1373
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr ""
-"Hibernate tiene los siguientes puntos de integración con la "
-"infraestructura J2EE:"
+"Hibernate tiene los siguientes puntos de integración con la infraestructura "
+"J2EE:"
#. Tag: para
-#: configuration.xml:1379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
@@ -2640,30 +2152,27 @@
"(BMT), or you might want to use the optional Hibernate <literal>Transaction</"
"literal> API for this to keep your code portable."
msgstr ""
-"<emphasis>Datasources manejados por contenedor</emphasis>: Hibernate puede "
-"usar conexiones JDBC manejadas por el contenedor y provistas a través "
-"de JNDI. Usualmente, un <literal>TransactionManager</literal> compatible con "
-"JTA y un <literal>ResourceManager</literal> cuidan del manejo de "
-"transacciones (CMT), esp. manejo de transacciones distribuídas a "
-"través de varios datasources. Puedes también, por supuesto, "
-"demarcar los límites de las transacciones programáticamente "
-"(BMT) o podrías querer usar para esto la API opcional de "
-"<literal>Transaction</literal> de Hibernate para mantener tu código "
-"portable."
+"<emphasis>Fuentes de datos administrados por el contenedor</emphasis>: "
+"Hibernate puede utilizar conexiones JDBC administradas por el contenedor y "
+"provistas a través de JNDI. Usualmente, un <literal>TransactionManager</"
+"literal> compatible con JTA y un <literal>ResourceManager</literal> se "
+"ocupan de la administración de transacciones (CMT), especialmente del manejo "
+"de transacciones distribuÃdas a través de varias fuentes de datos. También "
+"puede demarcar los lÃmites de las transacciones programáticamente (BMT) o "
+"puede que quiera utilizar para esto la API opcional de <literal>Transaction</"
+"literal> de Hibernate para mantener portátil su código."
#. Tag: para
-#: configuration.xml:1394
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
"<literal>SessionFactory</literal> to JNDI after startup."
msgstr ""
-"<emphasis>Ligamento Automático JNDI</emphasis>: Hibernate puede ligar "
-"sus <literal>SessionFactory</literal> a JNDI después del arranque."
+"<emphasis>Vinculación Automática JNDI</emphasis>: Hibernate puede vincular "
+"sus <literal>SessionFactory</literal> a JNDI después del inicio."
#. Tag: para
-#: configuration.xml:1403
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
"literal> can be automatically bound to the scope of JTA transactions. Simply "
@@ -2673,18 +2182,16 @@
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
-"<emphasis>Ligamento de Sesión JTA:</emphasis> La <literal>Session</"
-"literal> de Hibernate puede ser ligada automáticamente al á"
-"mbito de transacciones JTA si usas EJBs. Simplemente busca la "
-"<literal>SessionFactory</literal> de JNDI y obtén la "
-"<literal>Session</literal> actual. Deja que Hibernate cuide de limpiar y "
-"cerrar la <literal>Session</literal> cuando se complete tu transacció"
-"n JTA. La demarcación de transacción es declarativa, en "
-"descriptores de despliegue de EJB."
+"<emphasis>Vinculación de Sesión JTA:</emphasis> La <literal>Session</"
+"literal> de Hibernate se puede vincular automáticamente al ámbito de "
+"transacciones JTA. Simplemente busque la <literal>SessionFactory</literal> "
+"de JNDI y obténga la <literal>Session</literal> actual. Deje que Hibernate "
+"se ocupe de vaciar y cerrar la <literal>Session</literal> cuando se complete "
+"su transacción JTA. La demarcación de transacción puede ser declarativa "
+"(CMT) o programática (BMT/UserTransaction)."
#. Tag: para
-#: configuration.xml:1416
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
@@ -2694,37 +2201,34 @@
"take care of service dependencies (datasource has to be available before "
"Hibernate starts, etc)."
msgstr ""
-"<emphasis>Despliegue JMX:</emphasis> Si tienes un servidor de aplicaciones "
-"capaz de JMX (por ejemplo, JBoss AS), puedes optar por desplegar Hibernate "
-"como un MBean manejado. Esto te ahorra el código de una línea "
-"de arranque para construir tu <literal>SessionFactory</literal> desde una "
-"<literal>Configuration</literal>. El contenedor arrancará tu "
-"<literal>HibernateService</literal>, e idealmente también "
-"cuidará de las dependencias entre servicios (El datasource debe estar "
-"disponible antes que arranque Hibernate, etc)."
+"<emphasis>Despliegue JMX:</emphasis> Si tiene un servidor de aplicaciones "
+"con capacidad para JMX (por ejemplo, JBoss AS), puede escoger el desplegar "
+"Hibernate como un MBean administrado. Esto le ahorra el código de una lÃnea "
+"de inicio para construir su <literal>SessionFactory</literal> desde una "
+"<literal>Configuration</literal>. El contenedor iniciará su "
+"<literal>HibernateService</literal>, e idealmente también cuidará de las "
+"dependencias entre servicios (la fuente de datos debe estar disponible antes "
+"de que Hibernate inicie, etc)."
#. Tag: para
-#: configuration.xml:1427
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release</literal> to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
-"Dependiendo de tu entorno, podrías tener que establecer la "
-"opción de configuración <literal>hibernate.connection."
-"aggressive_release</literal> a true si tu servidor de aplicaciones muestra "
-"excepciones \"connection containment\"."
+"Dependiendo de su entorno, podrÃa tener que establecer la opción de "
+"configuración <literal>hibernate.connection.aggressive_release</literal> "
+"como true si su servidor de aplicaciones muestra excepciones \"contención de "
+"conexión\"."
#. Tag: title
-#: configuration.xml:1434
#, no-c-format
msgid "Transaction strategy configuration"
-msgstr "Configuración de la estrategia de transacción"
+msgstr "Configuración de la estrategia de transacción"
#. Tag: para
-#: configuration.xml:1436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
@@ -2734,15 +2238,14 @@
"and <literal>UserTransaction</literal> when needed."
msgstr ""
"La API de <literal>Session</literal> de Hibernate es independiente de "
-"cualquier demarcación de transacción en tu arquitectura. Si "
-"dejas que Hibernate use JDBC directamente, a través de un pool de "
-"conexiones. puedes comenzar y acabar tus transacciones llamando la API de "
-"JDBC. Si ejecutas en un servidor de aplicaciones J2EE, podréas querer "
-"usar transacciones manejadas por bean y llamar la API de JTA y "
+"cualquier demarcación de transacción en su arquitectura. Si deja que "
+"Hibernate utilice JDBC directamente, a través de un pool de conexiones, "
+"puede comenzar y acabar sus transacciones llamando la API de JDBC. Si "
+"ejecuta en un servidor de aplicaciones J2EE, puede que quiera utilizar "
+"transacciones administradas por bean y llamar la API de JTA y "
"<literal>UserTransaction</literal> cuando sea necesario."
#. Tag: para
-#: configuration.xml:1444
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -2752,75 +2255,66 @@
"configuration property <literal>hibernate.transaction.factory_class</"
"literal>."
msgstr ""
-"Para mantener tu código portable entre estos dos (y otros) entornos "
+"Para mantener su código portable entre estos dos (y otros) entornos le "
"recomendamos la API de <literal>Transaction</literal> de Hibernate, que "
-"envuelve y oculta el sistema subyacente. Tienes que especificar una clase "
-"fábrica para las instancias de <literal>Transaction</literal> "
-"estableciendo la propiedad de configuración <literal>hibernate."
-"transaction.factory_class</literal> de Hibernate."
+"envuelve y oculta el sistema subyacente. Tiene que especificar una clase "
+"fábrica para las instancias de <literal>Transaction</literal> estableciendo "
+"la propiedad de configuración <literal>hibernate.transaction.factory_class</"
+"literal> de Hibernate."
#. Tag: para
-#: configuration.xml:1451
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are three standard, or built-in, choices:"
-msgstr "Hay tres elecciones estándar (prefabricadas):"
+msgstr "Existen tres opciones estándares o incorporadas:"
-#. Tag: literal
-#: configuration.xml:1457
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
-msgstr "org.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1459
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
-msgstr "delega a transacciones de base de datos (JDBC) (por defecto)"
+msgstr "delega a transacciones de bases de datos (JDBC) (por defecto)"
-#. Tag: literal
-#: configuration.xml:1463
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
-msgstr "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1465
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
-"delega a transacciones manejadas por contenedor si una transacción "
-"existente estó por debajo en este contexto (ej. método de un "
-"bean de sesión EJB), en otro caso una nueva transacción es "
-"comenzada y se usan transacciones manejadas por bean."
+"delega a transacciones administradas por el contenedor si una transacción "
+"existente se encuentra en proceso en este contexto (por ejemplo, un método "
+"de bean de sesión EJB). De otra manera, se inicia una nueva transacción y se "
+"utilizan las transacciones administradas por bean."
-#. Tag: literal
-#: configuration.xml:1473
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
-msgstr "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1475
#, no-c-format
msgid "delegates to container-managed JTA transactions"
-msgstr "delega a transacciones JTA manejadas por contenedor"
+msgstr "delega a transacciones JTA administradas por el contenedor"
#. Tag: para
-#: configuration.xml:1480
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
msgstr ""
-"Puedes definir también tus propias estrategias de transacción "
-"(para un servicio de transacción CORBA, por ejemplo)."
+"También puede definir sus propias estrategias de transacción (por ejemplo, "
+"para un servicio de transacción CORBA)."
#. Tag: para
-#: configuration.xml:1485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
@@ -2829,175 +2323,174 @@
"have to specify how Hibernate should obtain a reference to the "
"<literal>TransactionManager</literal>:"
msgstr ""
-"Algunas funcionalidades en Hibernate (ej, el caché de segundo nivel, "
-"ligamento automático de JTA y Session, etc.) requieren acceso al "
-"<literal>TransactionManager</literal> de JTA en un entorno manejado. En un "
-"servidor de aplicaciones tienes que especificar cómo Hibernate debe "
-"obtener una referencia al <literal>TransactionManager</literal>, pues J2EE "
-"no estandariza un solo mecanismo:"
+"Algunas funcionalidades en Hibernate (por ejemplo, el caché de segundo "
+"nivel, las sesiones contextuales, etc.) requieren acceso al "
+"<literal>TransactionManager</literal> de JTA en un entorno administrado. En "
+"un servidor de aplicaciones tiene que especificar cómo Hibernate debe "
+"obtener una referencia al <literal>TransactionManager</literal>, ya que J2EE "
+"no estandariza un sólo mecanismo:"
#. Tag: title
-#: configuration.xml:1493
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "TransactionManagers de JTA"
#. Tag: entry
-#: configuration.xml:1499
#, no-c-format
msgid "Transaction Factory"
msgstr "Transaction Factory"
#. Tag: entry
-#: configuration.xml:1500
#, no-c-format
msgid "Application Server"
msgstr "Servidor de Aplicaciones"
-#. Tag: literal
-#: configuration.xml:1505
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JBossTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1506
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WeblogicTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
-msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereExtendedJTATransactionLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
-msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. OrionTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
-msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. ResinTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOTMTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOnASTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
-msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JRun4TransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
-msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. BESTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1551
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
-msgstr "<literal>SessionFactory</literal> ligada a JNDI"
+msgstr "<literal>SessionFactory</literal> enlazado a JNDI"
#. Tag: para
-#: configuration.xml:1553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
"lookup function of the factory and create new <literal>Session</literal>s. "
"This is not, however, related to a JNDI bound <literal>Datasource</literal>; "
"both simply use the same registry."
msgstr ""
-"Una <literal>SessionFactory</literal> de Hibernate ligada a JNDI puede "
-"simplificar la obtención de la fábrica y la creación de "
-"nuevas <literal>Session</literal>s. Observa que esto no está "
-"relacionado a un <literal>Datasource</literal> ligado a JNDI, simplemente "
-"ambos usan el mismo registro!"
+"Una <literal>SessionFactory</literal> de Hibernate vinculada a JNDI puede "
+"simplificar la búsqueda de la fábrica y la creación de nuevas "
+"<literal>Session</literal>es. Sin embargo, esto no se relaciona con un "
+"<literal>Datasource</literal> vinculado a JNDI; simplemente que ambos "
+"utilizan el mismo registro."
#. Tag: para
-#: configuration.xml:1560
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</"
@@ -3006,16 +2499,15 @@
"will not be bound to JNDI. This is especially useful in environments with a "
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
-"Si deseas tener la <literal>SessionFactory</literal> ligada a un espacio de "
-"nombres de JNDI, especifica un nombre (ej. <literal>java:hibernate/"
-"SessionFactory</literal>) usando la propiedad <literal>hibernate."
-"session_factory_name</literal>. Si esta propiedad es omitida, la "
-"<literal>SessionFactory</literal> no será ligada a JNDI (Esto es "
-"especialmente útil en entornos con una implementació JNDI de "
-"sólo lectura por defecto, ej. Tomcat.)"
+"Si desea tener la <literal>SessionFactory</literal> vinculada a un espacio "
+"de nombres de JNDI, especifique un nombre (por ejemplo, <literal>java:"
+"hibernate/SessionFactory</literal>) utilizando la propiedad "
+"<literal>hibernate.session_factory_name</literal>. Si se omite esta "
+"propiedad, la <literal>SessionFactory</literal> no será vinculada a JNDI. "
+"Esto es particularmente útil en entornos con una implementación JNDI de sólo "
+"lectura por defecto (por ejemplo, en Tomcat)."
#. Tag: para
-#: configuration.xml:1568
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -3023,15 +2515,13 @@
"jndi.class</literal> to instantiate an initial context. If they are not "
"specified, the default <literal>InitialContext</literal> will be used."
msgstr ""
-"Al ligar la <literal>SessionFactory</literal> a JNDI, Hibernate usará "
+"Al vincular la <literal>SessionFactory</literal> a JNDI, Hibernate utilizará "
"los valores de <literal>hibernate.jndi.url</literal>, <literal>hibernate."
-"jndi.class</literal> para instanciar un contexto inicial. Si étos no "
-"se especifican, se usará el <literal>InitialContext</literal> por "
-"defecto."
+"jndi.class</literal> para instanciar un contexto inicial. Si éstos no se "
+"especifican, se utilizará el <literal>InitialContext</literal> por defecto."
#. Tag: para
-#: configuration.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
@@ -3040,28 +2530,26 @@
"<literal>HibernateService</literal> (this is discussed later in greater "
"detail)."
msgstr ""
-"Hibernate colocará automáticamente la <literal>SessionFactory</"
-"literal> en JNDI después que llames a <literal>cfg.buildSessionFactory"
-"()</literal>. Esto significa que tendrás al menos esta llamada en "
-"algún código de arranque (o clase de utilidad) en tu "
-"aplicación, a menos qie uses el despliegue JMX con el "
-"<literal>HibernateService</literal> (discutido luego)."
+"Hibernate colocará automáticamente la <literal>SessionFactory</literal> en "
+"JNDI después de que llame a <literal>cfg.buildSessionFactory()</literal>. "
+"Esto significa que tendrá al menos esta llamada en algún código de inicio o "
+"clase de utilidad en su aplicación, a menos de que utilice el despliegue JMX "
+"con el <literal>HibernateService</literal> (esto se discute más adelante en "
+"mayor detalle)."
#. Tag: para
-#: configuration.xml:1582
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
"class, you can obtain the <literal>SessionFactory</literal> using a JNDI "
"lookup."
msgstr ""
-"UNTRANSLATED! If you use a JNDI <literal>SessionFactory</literal>, an EJB or "
-"any other class may obtain the <literal>SessionFactory</literal> using a "
-"JNDI lookup."
+"Si utiliza una <literal>SessionFactory</literal> JNDI, un EJB or cualquier "
+"otra clase puede llegar a obtener el <literal>SessionFactory</literal> "
+"utilizando una búsqueda JNDI."
#. Tag: para
-#: configuration.xml:1587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
"JNDI in a managed environment and use a <literal>static</literal> singleton "
@@ -3071,28 +2559,26 @@
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
-"Si usas una <literal>SessionFactory</literal> de JNDI, un EJB o cualquier "
-"otra clase puede obtener la <literal>SessionFactory</literal> usando una "
-"búsqueda JNDI. Observa que esta configuración no es necesaria "
-"si usas la clase de ayuda <literal>HibernateUtil</literal> introducida en el "
-"capítulo uno, que actúa como un registro Singleton. Sin "
-"embargo, <literal>HibernateUtil</literal> es más común en un "
-"entorno no manejado."
+"Le recomendamos que vincule el <literal>SessionFactory</literal> a JNDI en "
+"un entorno administrado y que de otra manera, use un singleton "
+"<literal>static</literal>. Para proteger su código de aplicación de estos "
+"detalles, también le recomendamos que esconda el código de búsqueda real "
+"para una <literal>SessionFactory</literal> en una clase de ayuda como "
+"<literal>HibernateUtil.getSessionFactory()</literal>. Note que dicha clase "
+"también es una manera práctica de iniciar Hibernate— vea el capÃtulo 1."
#. Tag: title
-#: configuration.xml:1599
#, no-c-format
msgid "Current Session context management with JTA"
-msgstr "Ligado automático de JTA y Session"
+msgstr "Administración de contexto de Sesión Actual con JTA"
#. Tag: para
-#: configuration.xml:1601
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
-"session\"/>. Using the <literal>\"jta\"</literal> session context, if there "
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
"is no Hibernate <literal>Session</literal> associated with the current JTA "
"transaction, one will be started and associated with that JTA transaction "
"the first time you call <literal>sessionFactory.getCurrentSession()</"
@@ -3109,35 +2595,35 @@
"in an EJB container, declarative transaction demarcation with CMT is "
"preferred."
msgstr ""
-"UNTRANSLATED! The easiest way to handle <literal>Session</literal>s and "
-"transactions is Hibernates automatic \"current\" <literal>Session</literal> "
-"management. See the discussion of <link linkend=\"architecture-current-"
-"session\">current sessions</link>. Using the <literal>\"jta\"</literal> "
-"session context, if there is no Hibernate <literal>Session</literal> "
-"associated with the current JTA transaction, one will be started and "
-"associated with that JTA transaction the first time you call "
-"<literal>sessionFactory.getCurrentSession()</literal>. The <literal>Session</"
-"literal>s retrieved via <literal>getCurrentSession()</literal> in <literal>"
-"\"jta\"</literal> context will be set to automatically flush before the "
-"transaction completes, close after the transaction completes, and "
-"aggressively release JDBC connections after each statement. This allows the "
-"<literal>Session</literal>s to be managed by the life cycle of the JTA "
-"transaction to which it is associated, keeping user code clean of such "
-"management concerns. Your code can either use JTA programmatically through "
-"<literal>UserTransaction</literal>, or (recommended for portable code) use "
-"the Hibernate <literal>Transaction</literal> API to set transaction "
-"boundaries. If you run in an EJB container, declarative transaction "
-"demarcation with CMT is preferred."
+"La manera más fácil de manejar <literal>Session</literal>es y transacciones "
+"es la administración de <literal>Session</literal> \"actual\" automática de "
+"Hibernate. Vea la discusión sobre las sesiones contextuales en <xref linkend="
+"\"architecture-current-session\"/>. Al utilizar el contexto de sesión de "
+"<literal>\"jta\"</literal>, si no hay una <literal>Session</literal> de "
+"Hibernate asociada con la transacción JTA actual, se iniciará y se asociará "
+"una con esa transacción JTA la primera vez que llame a "
+"<literal>sessionFactory.getCurrentSession()</literal>. Las <literal>Session</"
+"literal>es recuperadas por medio de <literal>getCurrentSession()</literal> "
+"en el contexto <literal>\"jta\"</literal> se configurarán con un vaciado "
+"automático antes de que la transacción se complete, se cerrará después de "
+"completar la transacción y liberará conexiones JDBC agresivamente para cada "
+"declaración. Esto permite que las <literal>Session</literal>es sean "
+"administradas por el ciclo de vida de la transacción JTA a la cual se "
+"encuentra asociada, manteniendo el código del usuario limpio de esas "
+"preocupaciones de administración. Su código puede utilizar JTA "
+"programáticamente por medio de <literal>UserTransaction</literal>, o "
+"(recomendable para el código portable) utilizar el API <literal>Transaction</"
+"literal> de Hibernate para establecer lÃmites de transacciones. Si ejecuta "
+"un contenedor EJB, se prefiere una demarcación de transacción declarativa "
+"con CTM."
#. Tag: title
-#: configuration.xml:1624
#, no-c-format
msgid "JMX deployment"
msgstr "Despliegue JMX"
#. Tag: para
-#: configuration.xml:1626
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
@@ -3145,16 +2631,14 @@
"the one in <literal>HibernateUtil</literal>, or you can deploy Hibernate as "
"a <emphasis>managed service</emphasis>."
msgstr ""
-"La línea <literal>cfg.buildSessionFactory()</literal> todavía "
-"tiene que ser ejecutada en algun sitio para obtener una "
-"<literal>SessionFactory</literal> en JNDI. Puedes hacer esto bien en un "
-"bloque inicializador <literal>static</literal> (como aquel en "
-"<literal>HibernateUtil</literal>) o bien despliegas Hibernate como un "
-"<emphasis>servicio manejado</emphasis>."
+"La lÃnea <literal>cfg.buildSessionFactory()</literal> todavÃa se tiene que "
+"ejecutar en algún sitio para obtener una <literal>SessionFactory</literal> "
+"en JNDI. Puede hacer esto ya sea en un bloque inicializador <literal>static</"
+"literal> (como aquel en <literal>HibernateUtil</literal>) o bien puede "
+"desplegar Hibernate como un <emphasis>servicio administrado</emphasis>."
#. Tag: para
-#: configuration.xml:1634
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
"literal> for deployment on an application server with JMX capabilities, such "
@@ -3162,111 +2646,14 @@
"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
"Hibernate se distribuye con <literal>org.hibernate.jmx.HibernateService</"
-"literal> para despliegue en un servidor de aplicaciones con capacidades JMX, "
-"como JBoss AS. El despliegue y la configuracón reales son "
-"específicos del vendedor. He aquí un <literal>jboss-service."
-"xml</literal> de ejemplo para JBoss 4.0.x:"
+"literal> para desplegar en un servidor de aplicaciones con capacidades JMX, "
+"como JBoss AS. El despliegue y la configuracón reales son especÃficos del "
+"vendedor. He aquà un ejemplo de <literal>jboss-service.xml</literal> para "
+"JBoss 4.0.x: "
-#. Tag: programlisting
-#: configuration.xml:1641
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-
-#. Tag: para
-#: configuration.xml:1643
-#, fuzzy, no-c-format
-msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
"packaged in a JAR file with the extension <literal>.sar</literal> (service "
"archive). You also need to package Hibernate, its required third-party "
@@ -3277,39 +2664,13 @@
"JBoss AS documentation for more information about JMX service and EJB "
"deployment."
msgstr ""
-"Este fichero es desplegado en un directorio llamado <literal>META-INF</"
-"literal> y empaquetado en un fichero JAR con la extensión <literal>."
-"sar</literal> (fichero de servicio). También necesitas empaquetar "
-"Hibernate, sus bibliotecas de terceros requeridas, tus clases persistentes "
-"compiladas, así como tus ficheros de mapeo en el mismo fichero. Tus "
-"beans de empresa (usualmente beans de sesión) pueden ser mantenidos "
-"en su propio fichero JAR, pero debes incluir este fichero EJB JAR en el "
-"fichero de servicio principal para obtener una unidad desplegable (en "
-"caliente). Consulta la documentación de JBoss AS para más "
-"información sobre el servicio JMX y despliegue de EJB."
-
-#~ msgid "Hibernate logs various events using Apache commons-logging."
-#~ msgstr "Hibernate registra varios eventos usando commons-logging de Apache."
-
-#~ msgid ""
-#~ "The commons-logging service will direct output to either Apache Log4j (if "
-#~ "you include <literal>log4j.jar</literal> in your classpath) or JDK1.4 "
-#~ "logging (if running under JDK1.4 or above). You may download Log4j from "
-#~ "<literal>http://jakarta.apache.org</literal>. To use Log4j you will need "
-#~ "to place a <literal>log4j.properties</literal> file in your classpath, an "
-#~ "example properties file is distributed with Hibernate in the <literal>src/"
-#~ "</literal> directory."
-#~ msgstr ""
-#~ "El servicio de commons-logging saldrá directamente ya sea a Log4J "
-#~ "(si incluyes <literal>log4j.jar</literal> in your classpath) o JDK1.4 "
-#~ "logging (al ejecutar bajo JDK1.4 o superior). Puedes descargar Log4J "
-#~ "desde <literal>http://logging.apache.org</literal>. Para usar Log4J "
-#~ "necesitarás colocar un fichero <literal>log4j.properties</literal> "
-#~ "en tu classpath. Un fichero de propiedades de ejemplo se distribuye con "
-#~ "Hibernate en el directorio <literal>src/</literal>."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Este archivo se implementa en un directorio llamado <literal>META-INF</"
+"literal> y se encuentra empacado en un archivo JAR con la extensión "
+"<literal>.sar</literal> (archivo de servicio). También necesita empacar "
+"Hibernate, sus bibliotecas de terceros requeridas, sus clases persistentes "
+"compiladas, asà como sus archivos de mapeo en el mismo archivo. Sus beans "
+"empresariales (usualmente beans de sesión) se pueden dejar en su propio "
+"archivo JAR, pero puede incluir este archivo EJB JAR en el archivo de "
+"servicio principal para obtener una unidad desplegable en vivo (sin "
+"apagarlo). Consulte la documentación de JBoss AS para obtener más "
+"información sobre el servicio JMX y la implementación de EJB."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,40 +1,51 @@
-#, fuzzy
+# translation of events.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: events\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-12 09:03+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
msgstr "Interceptores y eventos"
#. Tag: para
-#: events.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
"inside Hibernate. This allows for the implementation of generic "
"functionality and the extension of Hibernate functionality."
msgstr ""
-"Frecuentemente es útil para la aplicación reaccionar a ciertos "
-"eventos que ocurran dentro de Hibernate. Esto permite la implementació"
-"n de ciertos tipos de funcionalidade genérica, y extensión de "
-"la funcionalidad de Hibernate."
+"Es útil para la aplicación reaccionar a ciertos eventos que ocurren dentro "
+"de Hibernate. Esto permite la implementación de funcionalidades genéricas y "
+"la extensión de la funcionalidad de Hibernate."
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr "Interceptores"
#. Tag: para
-#: events.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
"session to the application, allowing the application to inspect and/or "
@@ -46,227 +57,47 @@
"<literal>lastUpdateTimestamp</literal> property when an <literal>Auditable</"
"literal> is updated."
msgstr ""
-"La interface <literal>Interceptor</literal> provee callbacks desde la "
-"sesión a la aplicación permitiendo a ésta última "
-"inspeccionar y/o manipular las propiedades de un objeto persistente antes "
-"que sea salvado, actualizado, borrado o cargado. Un uso posible de esto es "
-"seguir la pista de información de auditoría. Por ejemplo, el "
-"siguiente <literal>Interceptor</literal> establece automáticamente el "
-"<literal>createTimestamp</literal> cuando un <literal>Auditable</literal> es "
-"creado y actualiza la propiedad <literal>lastUpdateTimestamp</literal> "
-"cuando un <literal>Auditable</literal> es acutalizado."
+"La interfaz <literal>Interceptor</literal> brinda callbacks desde la sesión "
+"a la aplicación, permitiendole a ésta última inspeccionar y/o manipular las "
+"propiedades de un objeto persistente antes de que sea guardado, actualizado, "
+"borrado o cargado. Un uso posible de esto es seguir la pista de la "
+"información de auditorÃa. Por ejemplo, el siguiente <literal>Interceptor</"
+"literal> establece automáticamente el <literal>createTimestamp</literal> "
+"cuando se crea un <literal>Auditable</literal> y se actualiza la propiedad "
+"<literal>lastUpdateTimestamp</literal> cuando se actualiza un "
+"<literal>Auditable</literal>."
#. Tag: para
-#: events.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
"<literal>EmptyInterceptor</literal>."
msgstr ""
-"UNTRANSLATED! You may either implement <literal>Interceptor</literal> "
-"directly or (better) extend <literal>EmptyInterceptor</literal>."
+"Puede implementar el <literal>Interceptor</literal> directamente o extender "
+"el <literal>EmptyInterceptor</literal>."
-#. Tag: programlisting
-#: events.xml:56
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.Interceptor;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor implements Interceptor, Serializable {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void postFlush(Iterator entities) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates);\n"
-" }\n"
-"\n"
-" public void preFlush(Iterator entities) {\n"
-" updates=0;\n"
-" creates=0;\n"
-" }\n"
-"\n"
-" ...\n"
-"\n"
-"}]]>"
-
-#. Tag: para
-#: events.xml:58
-#, fuzzy, no-c-format
-msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
"<literal>SessionFactory</literal>-scoped."
msgstr ""
-"UNTRANSLATED! Interceptors come in two flavors: <literal>Session</literal>-"
-"scoped and <literal>SessionFactory</literal>-scoped."
+"Hay dos clases de interceptores: incluÃdo en <literal>Session</literal>- e "
+"incluÃdo en <literal>SessionFactory</literal>."
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
"is opened using one of the overloaded SessionFactory.openSession() methods "
"accepting an <literal>Interceptor</literal>."
msgstr ""
-"UNTRANSLATED! A <literal>Session</literal>-scoped interceptor is specified "
-"when a session is opened using one of the overloaded SessionFactory."
-"openSession() methods accepting an <literal>Interceptor</literal>."
+"Se especifica un interceptor incluÃdo <literal>Session</literal> cuando se "
+"abre una sesión utilizando uno de los métodos SessionFactory.openSession() "
+"sobrecargados aceptando un <literal>Interceptor</literal>."
-#. Tag: programlisting
-#: events.xml:69
-#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-"<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-
#. Tag: para
-#: events.xml:71
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
"the <literal>Configuration</literal> object prior to building the "
@@ -277,46 +108,35 @@
"Ensure that you do not store session-specific states, since multiple "
"sessions will use this interceptor potentially concurrently."
msgstr ""
-"UNTRANSLATED! A <literal>SessionFactory</literal>-scoped interceptor is "
-"registered with the <literal>Configuration</literal> object prior to "
-"building the <literal>SessionFactory</literal>. In this case, the supplied "
-"interceptor will be applied to all sessions opened from that "
-"<literal>SessionFactory</literal>; this is true unless a session is opened "
-"explicitly specifying the interceptor to use. <literal>SessionFactory</"
-"literal>-scoped interceptors must be thread safe, taking care to not store "
-"session-specific state since multiple sessions will use this interceptor "
-"(potentially) concurrently."
+"Un interceptor incluido en <literal>SessionFactory</literal> se encuentra "
+"registrado con el objeto <literal>Configuration</literal> antes de construir "
+"el <literal>SessionFactory</literal>. En este caso, el interceptor proveido "
+"será aplicado a todas las sesiones abiertas desde ese "
+"<literal>SessionFactory</literal>; a menos de que se abra una sesión "
+"especificando explÃcitamente el interceptor a utilizar. Los interceptores "
+"<literal>SessionFactory</literal> incluidos deben ser a prueba de hilos. "
+"Asegúrese de no almacenar un estado especifico a la sesión ya que múltiples "
+"sesiones utilizarán este interceptor potencialmente de manera concurrente."
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr "Sistema de eventos"
#. Tag: para
-#: events.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
"also use the Hibernate3 <emphasis>event</emphasis> architecture. The event "
"system can be used in addition, or as a replacement, for interceptors."
msgstr ""
-"Si tienes que reaccionar a eventos particulares en tu capa de persistencia, "
-"puedes también la arquitectura de <emphasis>eventos</emphasis> de "
-"Hibernate3. El sistema de eventos puede ser usado en adición o como "
-"un remplazo a los interceptores."
+"Si tiene que reaccionar a eventos particulares en su capa de persistencia, "
+"también puede utilizar la arquitectura de <emphasis>eventos</emphasis> de "
+"Hibernate3. El sistema de eventos se puede ser utilizar además de o como un "
+"remplazo para los interceptores."
#. Tag: para
-#: events.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
"event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</"
@@ -333,37 +153,34 @@
"processing any <literal>load()</literal> requests made of the "
"<literal>Session</literal>."
msgstr ""
-"Esencialmente todos los métodos de la interface <literal>Session</"
-"literal> se correlacionan con un evento. Tienes un <literal>LoadEvent</"
-"literal>, un <literal>FlushEvent</literal>, etc (consulta el DTD del fichero "
-"de configuración XML o el paquete <literal>org.hibernate.event</"
-"literal> para la lista completa de tipos de evento definidos). Cuando se "
-"hace una petición de uno de estos métodos, la "
-"<literal>Session</literal> de Hibernate genera un evento apropiado y se lo "
-"pasa al oyente (listener) de eventos configurado para ese tipo. De fá"
-"brica, estos oyentes implementan el mismo procesamiento en los que siempre "
-"resultan aquellos métodos. Sin embargo, eres libre de implementar una "
-"personalización de una de las interfaces oyentes (es decir, el "
-"<literal>LoadEvent</literal> es procesado por la implementación "
-"registrada de la interface <literal>LoadEventListener</literal>), en cuyo "
-"caso su implementación sería responsable de procesar cualquier "
-"petición <literal>load()</literal> hecha a la <literal>Session</"
-"literal>."
+"Todos los métodos de la interfaz <literal>Session</literal> se correlacionan "
+"con un evento. Tiene un <literal>LoadEvent</literal>, un "
+"<literal>FlushEvent</literal>, etc. Consulte el DTD del archivo de "
+"configuración XML o el paquete <literal>org.hibernate.event</literal> para "
+"ver la lista completa de los tipos de eventos definidos. Cuando se realiza "
+"una petición de uno de estos métodos, la <literal>Session</literal> de "
+"Hibernate genera un evento apropiado y se lo pasa al escucha (listener) de "
+"eventos configurado para ese tipo. Tal como vienen, estos escuchas "
+"implementan el mismo procesamiento en aquellos métodos donde siempre "
+"resultan . Sin embargo, usted es libre de implementar una personalización de "
+"una de las interfaces escuchas (por ejemplo, el <literal>LoadEvent</literal> "
+"es procesado por la implementación registrada de la interfaz "
+"<literal>LoadEventListener</literal>), en cuyo caso su implementación serÃa "
+"responsable de procesar cualquier petición <literal>load()</literal> "
+"realizada a la <literal>Session</literal>."
#. Tag: para
-#: events.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
"between requests, and should not save any state as instance variables."
msgstr ""
-"Los oyentes deben ser considerados efectivamente singletons; quiere decir, "
-"que son compartidos entre las peticiones, y por lo tanto no guardan "
-"ningún estado en variables de instancia."
+"Los escuchas se deben considerar como singletons. Esto significa que son "
+"compartidos entre las peticiones y por lo tanto, no deben guardar ningún "
+"estado como variables de instancia."
#. Tag: para
-#: events.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
"wants to process and/or extend one of the convenience base classes (or even "
@@ -374,101 +191,33 @@
"configuration through the properties file is not supported. Here is an "
"example of a custom load event listener:"
msgstr ""
-"Un oyente personalizado debe implementar la interface apropiada para el "
-"evento que quiere procesar y/o extender una de las clases base de "
-"conveniencia (o incluso los oyentes de eventos por defecto usados por "
-"Hibernate de fábrica al ser éstos declarados non-final para "
-"este propósito). Los oyentes personalizados pueden ser registrados "
-"programáticamente a través del objeto <literal>Configuration</"
-"literal>, o especificados en el XML de configuración de Hibernate (la "
-"declaración declarativa a través del fichero de propiedades no "
-"está soportada). He aquí un ejemplo de un oyente personalizado "
-"de eventos load:"
+"Un escucha personalizado implementa la interfaz apropiada para el evento que "
+"quiere procesar y/o extender una de las clases base de conveniencia (o "
+"incluso los escuchas de eventos predeterminados utilizados por Hibernate de "
+"fábrica al declararlos como no-finales para este propósito). Los escuchas "
+"personalizados pueden ser registrados programáticamente a través del objeto "
+"<literal>Configuration</literal>, o especificados en el XML de configuración "
+"de Hibernate. No se soporta la configuración declarativa a través del "
+"archivo de propiedades. Este es un ejemplo de un escucha personalizado de "
+"eventos load:"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[public class MyLoadListener extends DefaultLoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public Object onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" return super.onLoad(event, loadType);\n"
-" }\n"
-"}]]>"
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
"addition to the default listener:"
msgstr ""
-"Necesitas además una entrada de configuración dicié"
-"ndole a Hibernate que use el oyente en vez del oyente por defecto:"
+"También necesita una entrada de configuración diciéndole a Hibernate que "
+"utilice el oyente en vez del oyente por defecto:"
-#. Tag: programlisting
-#: events.xml:130
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <listener type=\"load\" class=\"MyLoadListener\"/>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-
#. Tag: para
-#: events.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Instead, you can register it programmatically:"
-msgstr "En cambio, puedes registrarlo programáticamente:"
+msgstr "En cambio, puede registrarlo programáticamente: "
-#. Tag: programlisting
-#: events.xml:136
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"cfg.getSessionEventListenerConfig().setLoadEventListener( new MyLoadListener"
-"() );]]>"
-
-#. Tag: para
-#: events.xml:138
-#, fuzzy, no-c-format
-msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
"name is used in multiple <literal><listener/></literal> elements, each "
"reference will result in a separate instance of that class. If you need to "
@@ -476,15 +225,13 @@
"programmatic registration approach."
msgstr ""
"Los oyentes registrados declarativamente no pueden compartir instancias. Si "
-"el mismo nombre de clase es usado en múltiples elementos <literal><"
-"listener/></literal>, cada referencia resultará en una instancia "
-"separada de esa clase. Si necesitas la capacidad de compartir instancias de "
-"oyentes entre tipos de oyente debes usar el enfoque de registración "
-"programática."
+"se utiliza el mismo nombre de clase en múltiples elementos <literal><"
+"listener/></literal>, cada referencia resultará en una instancia separada "
+"de esa clase. Si necesita compartir instancias de oyentes entre tipos de "
+"oyentes debe usar el enfoque de registración programática."
#. Tag: para
-#: events.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
"configuration? A listener implementation could implement multiple event "
@@ -492,110 +239,332 @@
"registration makes it easier to turn custom listeners on or off during "
"configuration."
msgstr ""
-"¿Por qué implementar una interface y definir el tipo "
-"espcífico durante la configuración? Bueno, una "
-"implementación de oyente podría implementar múltiples "
-"interfaces de oyente de eventos. Teniendo el tipo definido adicionalmente "
-"durante la registración lo hace más fácil para activar "
-"o desactivar oyentes personalizados durante la configuración."
+"¿Por qué implementar una interfaz y definir el tipo especÃfico durante la "
+"configuración? Una implementación de escucha podrÃa implementar múltiples "
+"interfaces de escucha de eventos. Teniendo el tipo definido adicionalmente "
+"durante la registración hace más fácil activar o desactivar escuchas "
+"personalizados durante la configuración."
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
msgstr "Seguridad declarativa de Hibernate"
#. Tag: para
-#: events.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
"session facade layer. Hibernate3 allows certain actions to be permissioned "
"via JACC, and authorized via JAAS. This is an optional functionality that is "
"built on top of the event architecture."
msgstr ""
-"Usualmente, la seguridad declarativa en aplicaciones Hibernate es manejada "
-"en una capa de fachada de sesión. Ahora, Hibernate3 permite que "
-"ciertas acciones sean permitidas vía JACC, y autorizadas vía "
-"JAAS. Esta en una funcionalidad opcional construída encima de la "
-"arquitectura de eventos."
+"Usualmente, la seguridad declarativa en aplicaciones Hibernate se administra "
+"en una capa de fachada de sesión. Hibernate3 permite que ciertas acciones se "
+"permitan por medio de JACC y las autoriza por medio de JAAS. Esta es una "
+"funcionalidad opcional construÃda encima de la arquitectura de eventos."
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
"of JAAS authorization."
msgstr ""
-"Primero, debes configurar los oyentes de eventos apropiados, para habilitar "
-"el uso de autorización JAAS."
+"Primero, tiene que configurar los oyentes de eventos apropiados, para "
+"habilitar la utilización de autorización JAAS."
-#. Tag: programlisting
-#: events.xml:168
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-
-#. Tag: para
-#: events.xml:170
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
"shorthand for <literal><event type=\"...\"><listener class=\"...\"/"
"></event></literal> when there is exactly one listener for a "
"particular event type."
msgstr ""
-"UNTRANSLATED! Note that <literal><listener type=\"...\" class=\"...\"/>"
-"</literal> is just a shorthand for <literal><event type=\"...\"><"
-"listener class=\"...\"/></event></literal> when there is exactly "
-"one listener for a particular event type."
+"Note que <literal><listener type=\"...\" class=\"...\"/></literal> es "
+"la abreviatura para <literal><event type=\"...\"><listener class="
+"\"...\"/></event></literal> cuando hay exactamente un escucha para "
+"un tipo de evento en particular."
#. Tag: para
-#: events.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
"permissions to roles:"
msgstr ""
-"Seguido, aún en <literal>hibernate.cfg.xml</literal>, liga los "
-"permisos a roles:"
+"A continuación, todavÃa en <literal>hibernate.cfg.xml</literal>, enlace los "
+"permisos a los roles:"
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
-msgstr "Los nombres de role son los roles entendidos por tu proveedor de JACC."
+msgstr "Los nombres de los roles son comprendidos por su proveedor de JACC."
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,34 +1,46 @@
-#, fuzzy
+# translation of example_mappings.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: example_mappings\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-03 12:36+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
-msgstr "Ejemplo: Varios Mapeos"
+msgstr "Ejemplo: mapeos varios"
#. Tag: para
-#: example_mappings.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr ""
-"Este capítulo muestra mapeos de asociaciones más complejos."
+"Este capÃtulo explora algunos de los mapeos de asociaciones más complejos."
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
msgstr "Empleador/Empleado"
#. Tag: para
-#: example_mappings.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
@@ -36,218 +48,31 @@
"more than one period of employment for the same two parties. Components are "
"used to model monetary values and employee names."
msgstr ""
-"El siguiente modelo de la relación entre <literal>Employer</literal> "
-"y <literal>Employee</literal> usa una clase de entidad real "
-"(<literal>Employment</literal>) para representar la asociación. Esto "
-"se ha hecho esto porque podría haber más de un período "
-"de empleo para los mismos dos participantes. Se usan componentes para "
-"modelar valores monetarios y nombres de empleado."
+"El siguiente modelo de la relación entre <literal>Employer</literal> y "
+"<literal>Employee</literal> utiliza una clase de entidad "
+"(<literal>Employment</literal>) para representar la asociación. Puede hacer "
+"esto cuando podrÃa haber más de un perÃodo de empleo para los dos mismos "
+"participantes. Se utilizan componentes para modelar los valores monetarios y "
+"los nombres de los empleados."
#. Tag: para
-#: example_mappings.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is a possible mapping document:"
-msgstr "He aquí un documento de mapeo posible:"
+msgstr "He aquà un posible documento de mapeo: "
-#. Tag: programlisting
-#: example_mappings.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</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 ""
-"Y he aquí el esquema de tablas generado por <literal>SchemaExport</"
-"literal>."
+"Este es el esquema de tablas generado por <literal>SchemaExport</literal>."
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
msgstr "Autor/Obra"
#. Tag: para
-#: example_mappings.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
@@ -257,232 +82,44 @@
"literal> is represented as one-to-one association. Another possibility would "
"be to have <literal>Author</literal> extend <literal>Person</literal>."
msgstr ""
-"Considera el siguiente modelo de las relaciones entre <literal>Work</"
-"literal>, <literal>Author</literal> y <literal>Person</literal>. "
-"Representamos la relación entre <literal>Work</literal> y "
-"<literal>Author</literal> como una asociación muchos-a-muchos. "
-"Elegimos representar la relación entre <literal>Author</literal> y "
-"<literal>Person</literal> como una asociación uno-a-uno. Otra "
-"posibilidad hubiese sido que <literal>Author</literal> extendiera "
-"<literal>Person</literal>."
+"Considere el siguiente modelo de las relaciones entre <literal>Work</"
+"literal>, <literal>Author</literal> y <literal>Person</literal>. En el "
+"ejemplo representamos la relación entre <literal>Work</literal> y "
+"<literal>Author</literal> como una asociación muchos-a-muchos y la relación "
+"entre <literal>Author</literal> y <literal>Person</literal> como una "
+"asociación uno-a-uno. Otra posibilidad serÃa que <literal>Author</literal> "
+"extendiera <literal>Person</literal>."
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
msgstr ""
-"El siguiente documento de mapeo representa estas relaciones correctamente:"
+"El siguiente documento de mapeo representa estas relaciones de manera "
+"correcta:"
-#. Tag: programlisting
-#: example_mappings.xml:95
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</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 ""
-"Hay cuatro tablas en este mapeo. <literal>works</literal>, <literal>authors</"
+"Hay cuatro tablas en este mapeo: <literal>works</literal>, <literal>authors</"
"literal> y <literal>persons</literal> tienen los datos de obra, autor y "
"persona respectivamente. <literal>author_work</literal> es una tabla de "
-"asociación enlazando autores a obras. He aquí el esquema de "
-"tablas, tal como fue generado por <literal>SchemaExport</literal>."
+"asociación enlazando los autores a las obras. Este es el esquema de tablas, "
+"tal como fue generado por <literal>SchemaExport</literal>:"
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
msgstr "Cliente/Orden/Producto"
#. Tag: para
-#: example_mappings.xml:112
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
@@ -494,105 +131,22 @@
"between <literal>Order</literal> and <literal>Product</literal>. In "
"Hibernate this is called a composite element."
msgstr ""
-"Ahora considera un modelo de las relaciones entre <literal>Customer</"
-"literal>, <literal>Order</literal> y <literal>LineItem</literal> y "
-"<literal>Product</literal>. Hay una asociación uno-a-muchos entre "
-"<literal>Customer</literal> y <literal>Order</literal>, pero, ¿"
-"cómo deberíamos representar <literal>Order</literal> / "
-"<literal>LineItem</literal> / <literal>Product</literal>? He elegido mapear "
-"<literal>LineItem</literal> como una clase de asociación "
-"representando la asociación muchos-a-muchos entre <literal>Order</"
-"literal> y <literal>Product</literal>. En Hibernate, esto se llama un "
-"elemento compuesto."
+"En esta sección consideramos un modelo de las relaciones entre "
+"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
+"literal> y <literal>Product</literal>. Hay una asociación uno-a-muchos entre "
+"<literal>Customer</literal> y <literal>Order</literal>, pero, ¿cómo "
+"deberÃamos representar <literal>Order</literal> / <literal>LineItem</"
+"literal> / <literal>Product</literal>? En el ejemplo, <literal>LineItem</"
+"literal> se mapea como una clase de asociación representando la asociación "
+"muchos-a-muchos entre <literal>Order</literal> y <literal>Product</literal>. "
+"En Hibernate, esto se llama un elemento compuesto."
#. Tag: para
-#: example_mappings.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping document will look like this:"
-msgstr "El documento de mapeo:"
+msgstr "El documento de mapeo se verá asÃ:"
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -602,714 +156,1120 @@
msgstr ""
"<literal>customers</literal>, <literal>orders</literal>, "
"<literal>line_items</literal> y <literal>products</literal> tienen los datos "
-"de cliente, orden, ítem de línea de orden y producto "
-"respectivamente. Además <literal>line_items</literal> actúa "
-"como una tabla de asociación enlazando órdenes con productos."
+"de cliente, orden, Ãtem de lÃnea de orden y producto respectivamente. Además "
+"<literal>line_items</literal> también actúa como una tabla de asociación "
+"enlazando órdenes con productos."
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
-msgstr "Mapeos misceláneos de ejemplo"
+msgstr "Mapeos varios de ejemplo"
#. Tag: para
-#: example_mappings.xml:152
-#, fuzzy, no-c-format
+#, 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 ""
-"Todos estos ejemplos están tomados de la batería de pruebas de "
-"Hibernate. Encontrarás muchos otros mapeos de ejemplo útiles "
-"allí. Mira en la carpeta <literal>test</literal> de la "
-"distribución de Hibernate."
+"Estos ejemplos están disponibles en la suite de pruebas de Hibernate. Allà "
+"encontrará muchos otros mapeos de ejemplos útiles en la carpeta "
+"<literal>test</literal> de la distribución de Hibernate."
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
-msgstr "Asociación uno-a-uno \"Tipificada\""
+msgstr "Asociación uno-a-uno \"Tipificada\""
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-"<![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"
-"<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
#, no-c-format
msgid "Composite key example"
msgstr "Ejemplo de clave compuesta"
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
-msgstr "Muchos-a-muchos con atributo de clave compuesta compartido"
+msgstr "Muchos-a-muchos con atributo compartido de clave compuesta"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-"<![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"
-"<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
#, no-c-format
msgid "Content based discrimination"
-msgstr "Discriminación basada en contenido"
+msgstr "Discriminación basada en contenido"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
msgstr "Asociaciones sobre claves alternativas"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid.hex\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
-#~ msgid "TODO: put words around this stuff"
-#~ msgstr "POR HACER: poner palabras alrededor de este material"
+#~ msgid ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+#~ msgstr ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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>]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,21 +1,35 @@
-#, fuzzy
+# translation of example_parentchild.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: example_parentchild\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-05 17:42+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
msgstr "Ejemplo: Padre/Hijo"
#. Tag: para
-#: example_parentchild.xml:31
-#, fuzzy, no-c-format
+#, 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 "
@@ -31,54 +45,47 @@
"cascades</emphasis> to model a parent/child relationship efficiently and "
"elegantly."
msgstr ""
-"Una de las primerísimas cosas que los usuarios nuevos intentan hacer "
-"con Hibernate es modelar una relación de tipo padre / hijo. Para esto "
-"hay dos enfoques diferentes. Por varias razones, el enfoque más "
-"conveniente, especialmente para usuarios nuevos, es modelar tanto "
-"<literal>Parent</literal> como <literal>Child</literal> como clases de "
-"entidad con una asociación <literal><one-to-many></literal> "
-"desde <literal>Parent</literal> a <literal>Child</literal>. (El enfoque "
-"alternativo es declarar el <literal>Child</literal> como un <literal><"
-"composite-element></literal>.) Ahora, resulta que la semántica por "
-"defecto de una asociación uno a muchos (en Hibernate) es mucho menos "
-"cercana a la semántica usual de una relación padre / hijo que "
-"aquellas de un mapeo de elementos compuestos. Explicaremos cómo usar "
-"una <emphasis>asociación uno a muchos bidireccional con tratamiento "
-"en cascada</emphasis> para modelar una relación padre / hijo "
-"eficiente y elegantemente. ¡No es para nada difícil!"
+"Una de las primeras cosas que los usuarios nuevos intentan hacer con "
+"Hibernate es modelar una relación de tipo padre / hijo. Para esto existen "
+"dos enfoques diferentes. El enfoque más conveniente, especialmente para los "
+"usuarios nuevos, es modelar tanto <literal>Parent</literal> como "
+"<literal>Child</literal> como clases de entidad con una asociación "
+"<literal><one-to-many></literal> desde <literal>Parent</literal> a "
+"<literal>Child</literal>. El enfoque opcional es declarar el <literal>Child</"
+"literal> como un <literal><composite-element></literal>. La semántica "
+"prederterminada de una asociación uno-a-muchos en Hibernate es mucho menos "
+"cercana a la semántica usual de una relación padre / hijo que la de un mapeo "
+"de elementos compuestos. Explicaremos cómo utilizar una <emphasis>asociación "
+"uno-a-muchos bidireccional con tratamiento en cascada</emphasis> para "
+"modelar una relación padre / hijo de manera eficiente y elegante."
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
-msgstr "Una nota sobre las colecciones"
+msgstr "Nota sobre las colecciones"
#. Tag: para
-#: example_parentchild.xml:47
-#, fuzzy, no-c-format
+#, 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 ""
-"Se considera que las colecciones de Hibernate son una parte lógica de "
-"la entidad que las posee; nunca de las entidades contenidas. ¡Esta es "
-"una distinción crucial! Esto tiene las siguientes consecuencias:"
+"Se considera que las colecciones de Hibernate son una parte lógica de la "
+"entidad que las posee y no de las entidades contenidas. Note que esta es una "
+"diferencia crucial y que esto tiene las siguientes consecuencias:"
#. Tag: para
-#: example_parentchild.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When you remove/add an object from/to a collection, the version number of "
"the collection owner is incremented."
msgstr ""
-"Cuando se quita / añade un objeto desde / a una colección, se "
-"incrementa el número de versión del dueño de la "
-"colección."
+"Cuando se elimina/agrega un objeto desde/a una colección, se incrementa el "
+"número de la versión del dueño de la colección."
#. Tag: para
-#: example_parentchild.xml:60
-#, fuzzy, no-c-format
+#, 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 "
@@ -86,15 +93,14 @@
"value type instance to the collection will cause its state to be immediately "
"persistent."
msgstr ""
-"Si un objeto que fue quitado de una colección es una instancia de un "
-"tipo de valor (por ejemplo, un elemento compuesto), ese objeta cesará "
-"de ser persistente y su estado será completamente quitado de la base "
-"de datos. Asimismo, añadir una instancia de tipo de valor a la "
-"colección causará que su estado sea inmediatamente persistente."
+"Si un objeto que fue eliminado de una colección es una instancia de un tipo "
+"de valor (por ejemplo, un elemento compuesto), ese objeto cesará de ser "
+"persistente y su estado será completamente eliminado de la base de datos. "
+"Asimismo, añadir una instancia de tipo de valor a la colección causará que "
+"su estado sea persistente inmediatamente."
#. Tag: para
-#: example_parentchild.xml:68
-#, fuzzy, no-c-format
+#, 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 "
@@ -102,16 +108,15 @@
"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 ""
-"Por otro lado, si se quita una entidad de una colección (una "
-"asociación uno-a-muchos o muchos-a-muchos), no será borrado, "
-"por defecto. Este comportamiento es completamente consistente. ¡Un "
-"cambio en el estado interno de otra entidad no hace desaparecer la entidad "
-"asociada! Asimismo, añadir una entidad a una colección no "
-"causa que la entidad se vuelva persistente, por defecto."
+"Por otro lado, si se elimina una entidad de una colección (una asociación "
+"uno-a-muchos o muchos-a-muchos), no se borrará por defecto. Este "
+"comportamiento es completamente consistente; un cambio en el estado interno "
+"de otra entidad no hace desaparecer la entidad asociada. Asimismo, el "
+"agregar una entidad a una colección no causa que la entidad se vuelva "
+"persistente por defecto."
#. Tag: para
-#: example_parentchild.xml:78
-#, fuzzy, no-c-format
+#, 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 "
@@ -119,74 +124,37 @@
"case of a parent/child relationship. In this case, the life of the child is "
"bound to the life cycle of the parent."
msgstr ""
-"En cambio, el comportamiento por defecto es que al añadir una entidad "
-"a una colección se crea meramente un enlace entre las dos entidades, "
-"mientras que al quitarla se quita el enlace. Esto es muy apropiado para "
-"todos los tipos de casos. Donde no es para nada apropiado es en el caso de "
-"una relación padre / hijo. donde la vida del hijo está ligada "
-"al ciclo de vida del padre."
+"El comportamiento por defecto es que al agregar una entidad a una colección "
+"se crea un enlace entre las dos entidades. Al eliminar la entidad se "
+"eliminará el enlace. Esto es muy apropiado para todos los tipos de casos. "
+"Sin embargo, no apropiado en el caso de una relación padre / hijo. En este "
+"caso la vida del hijo se encuentra vinculada al ciclo de vida del padre."
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
-msgstr "Uno-a-muchos bidirectional"
+msgstr "Uno-a-muchos bidireccional"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
"association from <literal>Parent</literal> to <literal>Child</literal>."
msgstr ""
-"Supón que empezamos con una asociación simple <literal><one-"
-"to-many></literal> desde <literal>Parent</literal> a <literal>Child</"
-"literal>."
+"Supónga que empezamos con una asociación simple <literal><one-to-many>"
+"</literal> desde <literal>Parent</literal> a <literal>Child</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![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 "Si ejecutásemos el siguiente código"
+msgstr "Si ejecutásemos el siguiente código:"
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
-msgstr "Hibernate publicaría dos sentencias SQL:"
+msgstr "Hibernate publicarÃa dos declaraciones SQL:"
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid ""
"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
@@ -194,7 +162,6 @@
"un <literal>INSERT</literal> para crear el registro de <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 "
@@ -204,43 +171,25 @@
"a <literal>c</literal>"
#. Tag: para
-#: example_parentchild.xml:119
-#, fuzzy, no-c-format
+#, 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 ""
-"Esto no es sólo ineficiente, sino que además viola cualquier "
-"restricción <literal>NOT NULL</literal> en la columna "
-"<literal>parent_id</literal>. Podemos reparar la violación de "
-"restricción de nulabilidad especificando <literal>not-null=\"true\"</"
-"literal> en el mapeo de la colección:"
+"Esto no es sólo ineficiente, sino que además viola cualquier restricción "
+"<literal>NOT NULL</literal> en la columna <literal>parent_id</literal>. "
+"Puede arreglar la violación de restricción de nulabilidad especificando "
+"<literal>not-null=\"true\"</literal> en el mapeo de la colección:"
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-"<![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
#, no-c-format
msgid "However, this is not the recommended solution."
-msgstr "Sin embargo, esta no es la solución recomendada."
+msgstr "Sin embargo, esta no es la solución recomendada."
#. Tag: para
-#: example_parentchild.xml:130
-#, fuzzy, no-c-format
+#, 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</"
@@ -248,323 +197,141 @@
"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 ""
-"El caso subyacente de este comportamiento es que el enlace (la clave "
-"foránea <literal>parent_id</literal>) de <literal>p</literal> a "
-"<literal>c</literal> no es considerado parte del estado del objeto "
-"<literal>Child</literal> y por lo tanto no es creada en el <literal>INSERT</"
-"literal>. De modo que la solución es hacer el enlace parte del mapeo "
-"del <literal>Child</literal>."
+"El caso subyacente de este comportamiento es que el enlace (la clave foránea "
+"<literal>parent_id</literal>) de <literal>p</literal> a <literal>c</literal> "
+"no se considera parte del estado del objeto <literal>Child</literal> y por "
+"lo tanto no se crea en el <literal>INSERT</literal>. De modo que la solución "
+"es hacer que el enlace sea parte del mapeo del <literal>Child</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-
-#. 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 ""
-"(Necesitamos además añadir la propiedad <literal>parent</"
-"literal> a la clase <literal>Child</literal>.)"
+"También necesita agregar la propiedad <literal>parent</literal> a la clase "
+"<literal>Child</literal>."
#. Tag: para
-#: example_parentchild.xml:143
-#, fuzzy, no-c-format
+#, 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 ""
-"Ahora que la entidad <literal>Child</literal> está gestionando el "
-"estado del enlace, le decimos a la colección que no actualice el "
-"enlace. Usamos el atributo <literal>inverse</literal>."
+"Ahora que la entidad <literal>Child</literal> está administrando el estado "
+"del enlace, le decimos a la colección que no actualice el enlace. Usamos el "
+"atributo <literal>inverse</literal> para hacer esto:"
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![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 ""
-"El siguiente código podría ser usado para añadir un "
-"nuevo <literal>Child</literal>"
+"El siguiente código se podrÃa utilizar para agregar un nuevo <literal>Child</"
+"literal>:"
-#. Tag: programlisting
-#: example_parentchild.xml:154
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-"<![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();]]>"
-
#. 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 ""
-"Y ahora, ¡Sólo se publicaría un <literal>INSERT</"
-"literal> de SQL!"
+msgstr "Sólo se emitirÃa un <literal>INSERT</literal> de SQL."
#. Tag: para
-#: example_parentchild.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
"<literal>Parent</literal>."
msgstr ""
-"Para ajustar un poco más las cosas, podríamos crear un "
-"método <literal>addChild()</literal> en <literal>Parent</literal>."
+"También podrÃa crear un método <literal>addChild()</literal> de "
+"<literal>Parent</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-"<![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 ""
-"Ahora, el código para añadir un <literal>Child</literal> se ve "
-"así"
+msgstr "El código para agregar un <literal>Child</literal> se ve asÃ:"
-#. Tag: programlisting
-#: example_parentchild.xml:171
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-"<![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();]]>"
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
-msgstr "Ciclo de vida en cascada"
+msgstr "Ciclo de vida en cascada "
#. Tag: para
-#: example_parentchild.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
"literal> by using cascades."
msgstr ""
-"La llamada explícita a <literal>save()</literal> es aún "
-"molesta. Apuntaremos a esto usando tratamientos en cascada."
+"Puede abordar las frustraciones de la llamada explÃcita a <literal>save()</"
+"literal> utilizando cascadas."
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-"<![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 "Esto simplifica el código anterior a"
+msgstr "Esto simplifica el código anterior a:"
-#. Tag: programlisting
-#: example_parentchild.xml:189
+#. Tag: para
#, 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 ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = new Child();\n"
-"p.addChild(c);\n"
-"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 ""
-"Similarmente, no necesitamos iterar los hijos al salvar o borrar un "
-"<literal>Parent</literal>. Lo siguiente quita <literal>p</literal> y todos "
+"De manera similar, no necesitamos iterar los hijos al guardar o borrar un "
+"<literal>Parent</literal>. Lo siguiente elimina <literal>p</literal> y todos "
"sus hijos de la base de datos."
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-
#. Tag: para
-#: example_parentchild.xml:198
-#, fuzzy, no-c-format
+#, no-c-format
msgid "However, the following code:"
-msgstr "Sin embargo, este código"
+msgstr "Sin embargo, el siguiente código:"
-#. Tag: programlisting
-#: example_parentchild.xml:202
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-
-#. 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 ""
-"no quitará <literal>c</literal> de la base de datos; sólo "
-"quitará el enlace a <literal>p</literal> (y causará una "
-"violación a una restricción <literal>NOT NULL</literal>). "
-"Necesitas borrar el hijo explícitamente llamando a <literal>delete()</"
+"no eliminará <literal>c</literal> de la base de datos. En este caso, sólo "
+"quitará el enlace a <literal>p</literal> y causará una violación a una "
+"restricción <literal>NOT NULL</literal>. Necesita borrar el hijo "
+"explÃcitamente llamando a <literal>delete()</literal> en <literal>Child</"
"literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-"<![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();]]>"
-
-#. 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 ""
-"Ahora, en nuestro caso, un <literal>Child</literal> no puede existir "
-"realmente sin su padre. De modo que si quitamos un <literal>Child</literal> "
-"de la colección, realmente queremos que sea borrado. Para esto, "
-"debemos usar <literal>cascade=\"all-delete-orphan\"</literal>."
+"En nuestro caso, un <literal>Child</literal> no puede existir realmente sin "
+"su padre. De modo que si eliminamos un <literal>Child</literal> de la "
+"colección, realmente queremos que sea borrado. Para esto, tenemos que "
+"utilizar <literal>cascade=\"all-delete-orphan\"</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:218
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![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 ""
-"Nota: aunque el mapeo de la colección especifique <literal>inverse="
-"\"true\"</literal>, el tratamiento en cascada se procesa aún al "
-"iterar los elementos de colección. De modo que si requieres que un "
-"objeto sea salvado, borrado o actualizado en cascada, debes añadirlo "
-"a la colección. No es suficiente con simplemente llamar a "
-"<literal>setParent()</literal>."
+"Aunque el mapeo de la colección especifique <literal>inverse=\"true\"</"
+"literal>, el tratamiento en cascada se procesa aún al iterar los elementos "
+"de la colección. De modo que si necesita que un objeto se guarde, borre o "
+"actualice en cascada, debe añadirlo a la colección. No es suficiente con "
+"simplemente llamar a <literal>setParent()</literal>."
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr "Tratamiento en cascada y <literal>unsaved-value</literal>"
+msgstr "Cascadas y <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</"
@@ -577,58 +344,37 @@
"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 "
+"\"objectstate-saveorupdate\" />.) <emphasis>In Hibernate3, it is no longer "
"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
"emphasis>"
msgstr ""
-"Supón que hemos cargado un <literal>Parent</literal> en una "
-"<literal>Session</literal>, hemos hecho algunos cambios en una acción "
-"de UI y deseamos hacer persistentes estos cambios en una nueva sesión "
-"llamando a <literal>update()</literal>. El <literal>Parent</literal> "
-"contendrá una colección de hijos y, ya que está "
-"habilitado el tratamiento en cascada, Hibernate necesita saber qué "
-"hijos están recién instanciados y cuáles representan "
-"filas existentes en la base de datos. Asumamos que tanto <literal>Parent</"
-"literal> como <literal>Child</literal> tienen propiedades identificadoras "
-"generadas de tipo <literal>Long</literal>. Hibernate usará el "
-"identificador y el valor de la propiedad de versión/timestamp para "
-"determinar cuáles de los hijos son nuevos. (Ver <xref linkend="
-"\"objectstate-saveorupdate\"/>.) <emphasis>En Hibernate3, no es más "
-"necesario especificar un <literal>unsaved-value</literal> explí"
-"citamente.</emphasis>"
+"Supónga que hemos cargado un <literal>Parent</literal> en una "
+"<literal>Session</literal>, hemos realizado algunos cambios en una acción UI "
+"y deseamos hacer persistentes estos cambios en una nueva sesión llamando a "
+"<literal>update()</literal>. El <literal>Parent</literal> contendrá una "
+"colección de hijos y ya que está habilitado el tratamiento en cascada, "
+"Hibernate necesita saber qué hijos están recién instanciados y cuáles "
+"representan filas existentes en la base de datos. También vamos a asumir que "
+"tanto <literal>Parent</literal> como <literal>Child</literal> tienen "
+"propiedades identificadoras generadas de tipo <literal>Long</literal>. "
+"Hibernate usará el identificador y el valor de la propiedad de versión/sello "
+"de fecha para determinar cuáles de los hijos son nuevos, (consulte la <xref "
+"linkend=\"objectstate-saveorupdate\" />). <emphasis>En Hibernate3, ya no es "
+"necesario especificar un <literal>unsaved-value</literal> explÃcitamente.</"
+"emphasis>"
#. Tag: para
-#: example_parentchild.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following code will update <literal>parent</literal> and <literal>child</"
"literal> and insert <literal>newChild</literal>:"
msgstr ""
-"The following code will update <literal>parent</literal> and <literal>child</"
-"literal> and insert <literal>newChild</literal>."
+"El siguiente código actualizará <literal>parent</literal> y <literal>child</"
+"literal> e insertará <literal>newChild</literal>:"
-#. Tag: programlisting
-#: example_parentchild.xml:249
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-"<![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();]]>"
-
-#. 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 "
@@ -637,38 +383,33 @@
"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 ""
-"Bueno, todo eso está muy bien para el caso de un identificador "
-"generado, pero ¿qué de los identificadores asignados y de los "
-"identificadores compuestos? Esto es más difícil, ya que "
-"Hibernate no puede usar la propiedad identificadora para distinguir entre un "
-"objeto recién instanciado (con un identificador asignado por el "
-"usuario) y un objeto cargado en una sesión previa. En este caso, "
-"Hibernate bien usará la propiedad de versión o timestamp, o "
-"bien consultará realmente el caché de segundo nivel, o bien, "
-"en el peor de los casos, la base de datos, para ver si existe la fila."
+"Todo eso es apropiado para el caso de un identificador generado, pero ¿qué "
+"de los identificadores asignados y de los identificadores compuestos? Esto "
+"es más difÃcil, ya que Hibernate no puede usar la propiedad identificadora "
+"para distinguir entre un objeto recién instanciado, con un identificador "
+"asignado por el usuario y un objeto cargado en una sesión previa. En este "
+"caso, Hibernate utilizará la propiedad de versión o sello de fecha, o bien "
+"consultará realmente el caché de segundo nivel, o bien, en el peor de los "
+"casos, consultará la base de datos, para ver si la fila existe."
#. Tag: title
-#: example_parentchild.xml:284
#, no-c-format
msgid "Conclusion"
-msgstr "Conclusión"
+msgstr "Conclusión"
#. Tag: para
-#: example_parentchild.xml:286
-#, fuzzy, no-c-format
+#, 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 ""
-"Hay que resumir un poco aquí y podría parecer confuso a la "
-"primera vez. Sin embargo, en la práctica, todo funciona muy "
-"agradablemente. La mayoría de las aplicaciones de Hibernate usan el "
-"patrón padre / hijo en muchos sitios."
+"Las secciones que acabamos de cubrir pueden parecer un poco confusas. Sin "
+"embargo, en la práctica, todo funciona muy bien. La mayorÃa de las "
+"aplicaciones de Hibernate utilizan el patrón padre / hijo en muchos sitios."
#. Tag: para
-#: example_parentchild.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
"exist in the case of <literal><composite-element></literal> mappings, "
@@ -677,16 +418,10 @@
"composite elements cannot own collections and they should not be the child "
"of any entity other than the unique parent."
msgstr ""
-"Hemos mencionado una alternativa en el primer párrafo. Ninguno de los "
-"temas anteriores existe en el caso de los mapeos <literal><composite-"
-"element></literal>, que tienen exactamente la semántica de una "
-"relación padre / hijo. Desafortunadamente, hay dos grandes "
-"limitaciones para las clases de elementos compuestos: los elementos "
-"compuestos no pueden poseer sus propias colecciones, y no deben ser el hijo "
-"de cualquier otra entidad que no sea su padre único."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Mencionamos una opción en el primer párrafo. Ninguno de los temas anteriores "
+"existe en el caso de los mapeos <literal><composite-element></"
+"literal>, los cuales tienen exactamente la semántica de una relación padre / "
+"hijo. Desafortunadamente, existen dos grandes limitaciones para las clases "
+"de elementos compuestos: los elementos compuestos no pueden poseer sus "
+"propias colecciones y no deben ser el hijo de cualquier otra entidad que no "
+"sea su padre único."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,878 +1,868 @@
-#, fuzzy
+# translation of example_weblog.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: example_weblog\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-03 12:25+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
-msgstr "Ejemplo: Aplicación de Weblog"
+msgstr "Ejemplo: Aplicación de Weblog"
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
msgstr "Clases Persistentes"
#. Tag: para
-#: example_weblog.xml:34
-#, fuzzy, no-c-format
+#, 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 ""
-"Las clases persistentes representan un weblog, y un ítem enviado a un "
-"weblog. Van a ser modelados como una relación padre/hijo estñ"
-"ndar, pero usaremos un bag ordenado, en vez de un conjunto (set)."
+"Las clases persistentes aquà representan un weblog, y un Ãtem publicado en "
+"un weblog. Van a ser modelados como una relación padre/hijo estándar, pero "
+"usaremos un bag ordenado, en lugar de un conjunto:"
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
msgstr "Mapeos de Hibernate"
#. Tag: para
-#: example_weblog.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The XML mappings are now straightforward. For example:"
-msgstr "Los mapeos XML ahora deben ser absolutamente directos."
+msgstr "Los mapeos XML ahora deben ser bastante sencillos. Por ejemplo:"
-#. Tag: programlisting
-#: example_weblog.xml:53
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
-msgstr "Código Hibernate"
+msgstr "Código Hibernate"
#. Tag: para
-#: example_weblog.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following class demonstrates some of the kinds of things we can do with "
"these classes using Hibernate:"
msgstr ""
-"La siguiente clase demuestra algunos de los tipos de cosas que podemos haces "
-"con estas clases, usando Hibernate."
+"La siguiente clase demuestra algunos de los tipos de cosas que podemos hacer "
+"con estas clases, utilizando Hibernate:"
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,41 +1,53 @@
-#, fuzzy
+# translation of filters.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: filters\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-11 08:28+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
-msgstr "Filtrando datos"
+msgstr "Filtración de datos"
#. Tag: para
-#: filters.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
"named, parameterized filter that can be enabled or disabled for a particular "
"Hibernate session."
msgstr ""
-"Hibernate3 provee un nuevo enfoque innovador para manejar datos con reglas "
-"de \"visibilidad\". Un <emphasis>filtro de Hibernate</emphasis> es un filtro "
-"global, con nombre y parametrizado que puede ser habilitado o deshabilitado "
-"para una sesión de Hibernate en particular."
+"Hibernate3 proporciona un nuevo enfoque innovador para manejar datos con "
+"reglas de \"visibilidad\". Un <emphasis>filtro Hibernate</emphasis> es un "
+"filtro global, con nombre y parametrizado que puede ser habilitado o "
+"deshabilitado para una sesión de Hibernate especifica."
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
msgstr "Filtros de Hibernate"
#. Tag: para
-#: filters.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
@@ -46,18 +58,17 @@
"parameter values should be. Filters can be used like database views, but "
"they are parameterized inside the application."
msgstr ""
-"Hibernate3 añade la habilidad de predefinir criterios de filtros y unir esos "
-"filtros tanto a nivel de una clase como de una colección. Un criterio de "
-"filtro es la habilidad de definir una cláusula de restricción muy similar al "
-"atributo existente \"where\" disponible en el elemento class y varios "
-"elementos de colección. Excepto en que estos filtros pueden ser "
-"parametrizados. La aplicación puede tomar la decisión en tiempo de ejecución "
-"de qué filtros deben estar habilitados y cuáles deben ser sus parámetros. "
-"Los filtros pueden ser usados como vistas de base de datos, pero "
+"Hibernate3 tiene la habilidad de predefinir criterios de filtros y unir esos "
+"filtros tanto a nivel de clase como de colección. Un criterio de filtro le "
+"permite definir una cláusula de restricción muy similar al atributo "
+"existente \"where\" disponible en el elemento class y en varios elementos de "
+"colección. Sin embargo, las condiciones de estos filtros se pueden "
+"parametrizar. La aplicación puede tomar la decisión en tiempo de ejecución "
+"de si los filtros deben estar habilitados y cuáles deben ser sus parámetros. "
+"Los filtros se pueden utilizar como vistas de la base de datos, pero "
"parametrizados dentro de la aplicación."
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -65,74 +76,28 @@
"filter-def/></literal> element within a <literal><hibernate-mapping/"
"></literal> element:"
msgstr ""
-"Para usar los filtros, éstos deben primero ser definidos y luego unidos a "
-"los elementos de mapeo apropiados. Para definir un filtro, usa el elemento "
-"<literal><filter-def/></literal> dentro de un elemento <literal><"
-"hibernate-mapping/></literal>:"
+"Para utilizar los filtros, éstos se deben definir primero y luego se unen a "
+"los elementos de mapeo apropiados. Para definir un filtro, utilice el "
+"elemento <literal><filter-def/></literal> dentro de un elemento "
+"<literal><hibernate-mapping/></literal>:"
-#. Tag: programlisting
-#: filters.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-
#. Tag: para
-#: filters.xml:58
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This filter can then be attached to a class:"
-msgstr "Entonces este filtro puede ser unido a una clase:"
+msgstr "Luego este filtro se puede adjuntar a una clase:"
-#. Tag: programlisting
-#: filters.xml:62
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-
#. Tag: para
-#: filters.xml:64
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or, to a collection:"
-msgstr "o a una colección:"
+msgstr "O a una colección:"
-#. Tag: programlisting
-#: filters.xml:68
-#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-
#. Tag: para
-#: filters.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or, to both or multiples of each at the same time."
-msgstr "o incluso a ambos (o muchos de cada uno) al mismo tiempo."
+msgstr "O incluso a ambos o múltiples de cada uno al mismo tiempo."
#. Tag: para
-#: filters.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
@@ -145,177 +110,69 @@
msgstr ""
"Los métodos en <literal>Session</literal> son: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
-"literal>, y <literal>disableFilter(String filterName)</literal>. Por "
-"defecto, los filtros <emphasis>no</emphasis> están habilitados para una "
-"sesión dada; deben ser habilitados explÃcitamente por medio del uso del "
-"método <literal>Session.enableFilter()</literal>, que devuelve una instancia "
-"de la interface <literal>Filter</literal>. Usando el filtro simple definido "
-"arriba, esto se verÃa asÃ:"
+"literal> y <literal>disableFilter(String filterName)</literal>. Por defecto, "
+"los filtros <emphasis>no</emphasis> están habilitados para una sesión dada. "
+"Los filtros deben ser habilitados explÃcitamente por medio del uso del "
+"método <literal>Session.enableFilter()</literal>, el cual retorna una "
+"instancia de la interfaz <literal>Filter</literal>. Si se utiliza el filtro "
+"simple definido anteriormente, esto se verÃa asÃ:"
-#. Tag: programlisting
-#: filters.xml:83
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-
-#. Tag: para
-#: filters.xml:85
-#, fuzzy, no-c-format
-msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
-"Nota que los métodos en la interface org.hibernate.Filter permiten el "
-"encadenamiento de métodos común en gran parte de Hibernate."
+"Los métodos en la interfaz org.hibernate.Filter permiten el encadenamiento "
+"de métodos, lo cual es bastante común en gran parte de Hibernate."
#. Tag: para
-#: filters.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr ""
-"Un ejemplo completo, usando datos temporales con un patrón efectivo de "
-"fechas de registro:"
+"Este es un ejemplo completo, utilizando datos temporales con un patrón "
+"efectivo de fechas de registro: "
-#. Tag: programlisting
-#: filters.xml:93
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-
-#. Tag: para
-#: filters.xml:95
-#, fuzzy, no-c-format
-msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
-"Entonces, en orden de asegurar que siempre tendrás de vuelta registros "
-"actualmente efectivos, simplemente habilita el filtro en la sesión previo a "
-"recuperar los datos de empleados:"
+"Con el fin de asegurarse de que siempre recibirá los registros efectivos "
+"actualmente, habilite el filtro en la sesión antes de recuperar los datos de "
+"los empleados:"
-#. Tag: programlisting
-#: filters.xml:100
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-
-#. Tag: para
-#: filters.xml:102
-#, fuzzy, no-c-format
-msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
-"En el HQL de arriba, aunque sólo hemos mencionado explÃcitamente una "
-"restricción de salario en los resultados, debido al filtro habilitado la "
-"consulta sólo devolverá empleados actualmente activos que tengan un salario "
-"mayor que un millón de dólares."
+"En el HQL anterior, aunque sólo mencionamos explÃcitamente una restricción "
+"de salario en los resultados, debido al filtro habilitado la consulta sólo "
+"retornará empleados actualmente activos que tengan un salario mayor a un "
+"millón de dólares."
#. Tag: para
-#: filters.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
"safest to set this up for left outer joining. Place the parameter first "
"followed by the column name(s) after the operator."
msgstr ""
-"Nota: si planeas usar filtros con unión externa (outer joining) (bien a "
-"través de HQL, o bien de recuperación de carga) sé cuidadoso en la dirección "
-"de expresión de la condición. Lo más seguro es establecer esto para unión "
-"externa izquierda (left outer joining). En general, coloca el primer "
-"parámetro seguido del nombre(s) de columna(s) después del operador."
+"Si quiere utilizar filtros con unión externa, ya sea a través de HQL, o bien "
+"de recuperación de carga, tenga cuidado en la dirección de expresión de la "
+"condición. Lo más seguro es configurar esto para una unión externa "
+"izquierda. Coloque el parámetro primero seguido del nombre(s) de la(s) "
+"columna(s) después del operador."
#. Tag: para
-#: filters.xml:115
#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
@@ -324,18 +181,13 @@
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
msgstr ""
+"Después de definir un filtro, este se puede unir a múltiples entidades y/o "
+"colecciones cada una con su propia condición. Esto puede llegar a ser "
+"problemático cuando las condiciones son las mismas. Asà que el usar "
+"<literal><filter-def/></literal> le permite definir una condición por "
+"defecto, ya sea como atributo o como CDATA:"
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:124
#, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
@@ -343,9 +195,144 @@
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
+"Esta condición predeterminada se utilizará cuando se una el filtro a algo "
+"sin especificar una condición. Esto significa que usted le puede dar una "
+"condición especifica como parte del anexo del filtro, el cual substituye la "
+"condición por defecto en ese caso en particular."
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+#~ msgstr ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,68 +1,74 @@
-#, fuzzy
+# translation of inheritance_mapping.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: inheritance_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-16 18:47+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-08 11:55+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: inheritance_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Inheritance mapping"
-msgstr "Mapeo de Herencia"
+msgstr "Mapeo de herencia"
#. Tag: title
-#: inheritance_mapping.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The three strategies"
-msgstr "Las Tres Estrategias"
+msgstr "Las tres estrategias"
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
-msgstr ""
-"Hibernate soporta las tres estrategias básicas de mapeo de herencia:"
+msgstr "Hibernate soporta las tres estrategias básicas de mapeo de herencia:"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
-msgstr "<para>tabla por jerarquía de clases</para>"
+msgstr "tabla por jerarquÃa de clases"
#. Tag: para
-#: inheritance_mapping.xml:45
-#, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr "<para>tabla por subclase</para>"
+#, fuzzy, no-c-format
+msgid "table per subclass"
+msgstr "Tabla por subclase"
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
msgstr "tabla por clase concreta"
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
"polymorphism:"
msgstr ""
-"En adición, Hibernate soporta un cuarto, ligeramente diferente tipo "
-"de polimorfismo:"
+"Además, Hibernate soporta un cuarto, un tipo ligeramente diferente de "
+"polimorfismo:"
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
-msgstr "polimorfismo implícito"
+msgstr "polimorfismo implÃcito"
#. Tag: para
-#: inheritance_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
"the same inheritance hierarchy. You can then make use of implicit "
@@ -75,20 +81,20 @@
"literal> element, by combining the <literal><subclass></literal> and "
"<literal><join></literal> elements (see below for an example)."
msgstr ""
-"UNTRANSLATED! It is possible to define <literal>subclass</literal>, "
-"<literal>union-subclass</literal>, and <literal>joined-subclass</literal> "
-"mappings in separate mapping documents, directly beneath <literal>hibernate-"
-"mapping</literal>. This allows you to extend a class hierachy just by adding "
-"a new mapping file. You must specify an <literal>extends</literal> attribute "
-"in the subclass mapping, naming a previously mapped superclass. Note: "
-"Previously this feature made the ordering of the mapping documents "
-"important. Since Hibernate3, the ordering of mapping files does not matter "
-"when using the extends keyword. The ordering inside a single mapping file "
-"still needs to be defined as superclasses before subclasses."
+"Es posible utilizar estrategias de mapeo diferentes para diferentes "
+"ramificaciones de la misma jerarquÃa de herencia. Luego puede usar un "
+"polimorfismo implÃcito para conseguir polimorfismo a través de toda la "
+"jerarquÃa. Sin embargo, Hibernate no soporta la mezcla de mapeos "
+"<literal><subclass></literal>, <literal><joined-subclass></"
+"literal> y <literal><union-subclass></literal> bajo el mismo elemento "
+"<literal><class></literal> raÃz. Es posible mezclar las estrategias de "
+"tabla por jerarquÃa y tabla por subclase bajo el mismo elemento <literal><"
+"class></literal>, combinando los elementos <literal><subclass></"
+"literal> y <literal><join></literal> (a continuación encontrará un "
+"ejemplo)."
#. Tag: para
-#: inheritance_mapping.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
"subclass</literal>, and <literal>joined-subclass</literal> mappings in "
@@ -101,193 +107,75 @@
"extends keyword. The ordering inside a single mapping file still needs to be "
"defined as superclasses before subclasses."
msgstr ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" "
-"extends=\"Cat\" discriminator-value=\"D\">\n"
-" <property name=\"name\" "
-"type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
+"Es posible definir los mapeos <literal>subclass</literal>, <literal>union-"
+"subclass</literal>, y <literal>joined-subclass</literal> en documentos de "
+"mapeo separados, directamente debajo de <literal>hibernate-mapping</"
+"literal>. Esto le permite extender une jerarquÃa de clase sólamente "
+"añadiendo un nuevo archivo de mapeo. Tiene que especificar un atributo "
+"<literal>extends</literal> en la subclase de mapeo, nombrando una superclase "
+"mapeada previamente. Nota: Anteriormente esta caracterÃstica hacia que el "
+"orden de los documentos de mapeo fuera importante. Desde Hibernate3, el "
+"orden de los archivos de mapeo no tiene relevancia cuando se utiliza la "
+"palabra clave extends. El orden dentro de un sólo archivo de mapeo todavÃa "
+"necesita ser definido como superclases antes de subclases."
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-"Es posible usar estrategias de mapeo diferentes para diferentes "
-"ramificaciones de la misma jerarquía de herencia, y entonces usar "
-"polimorfismo implícito para conseguir polimorfismo a través de "
-"toda la jerarquía. Sin embargo, Hibernate no soporta la mezcla de "
-"mapeos <literal><subclass></literal>, y <literal><joined-"
-"subclass></literal> y <literal><union-subclass></literal> bajo el "
-"mismo elemento <literal><class></literal> raíz. Es posible "
-"mezclar juntas las estrategias de tabla por jerarquía y tabla por "
-"subclase, bajo el mismo elemento <literal><class></literal>, "
-"combinando los elementos <literal><subclass></literal> y <literal><"
-"join></literal> (ver debajo)."
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
-msgstr "Tabla por jerarquía de clases"
+msgstr "Tabla por jerarquÃa de clases"
#. Tag: para
-#: inheritance_mapping.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
"implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</"
"literal>, and <literal>ChequePayment</literal>. The table per hierarchy "
"mapping would display in the following way:"
msgstr ""
-"Supón que tenemos una interface <literal>Payment</literal>, con los "
+"Suponga que tenemos una interfaz <literal>Payment</literal>, con los "
"implementadores <literal>CreditCardPayment</literal>, <literal>CashPayment</"
-"literal>, <literal>ChequePayment</literal>. El mapeo de tabla por "
-"jerarquía se vería así:"
+"literal>, <literal>ChequePayment</literal>. El mapeo de tabla por jerarquÃa "
+"se verÃa asÃ: "
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-
-#. Tag: para
-#: inheritance_mapping.xml:109
-#, fuzzy, no-c-format
-msgid ""
"Exactly one table is required. There is a limitation of this mapping "
"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
"literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
-"Se requiere exactamente una tabla. Hay una gran limitación de esta "
-"estrategia de mapeo: las columnas declaradas por las subclases, como "
-"<literal>CCTYPE</literal>, no pueden tener restricciones <literal>NOT NULL</"
-"literal>."
+"Se requiere exactamente una tabla. Hay una limitación de esta estrategia de "
+"mapeo: las columnas declaradas por las subclases tal como <literal>CCTYPE</"
+"literal>, no pueden tener restricciones <literal>NOT NULL</literal>."
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
msgstr "Tabla por subclase"
#. Tag: para
-#: inheritance_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A table per subclass mapping looks like this:"
-msgstr "Un mapeo de tabla por sublclase se vería así:"
+msgstr "Un mapeo de tabla por subclase se verÃa asÃ: "
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-
-#. Tag: para
-#: inheritance_mapping.xml:126
-#, fuzzy, no-c-format
-msgid ""
"Four tables are required. The three subclass tables have primary key "
"associations to the superclass table so the relational model is actually a "
"one-to-one association."
msgstr ""
-"Se requieren cuatro tablas. Las tres tablas de subclase tienen asociaciones "
-"de clave primaria a la tabla de superclase (de modo que en el modelo "
-"relacional es realmente una asociación uno-a-uno)."
+"Se necesitan cuatro tablas. Las tres tablas de subclase tienen asociaciones "
+"de clave principal a la tabla de superclase de modo que en el modelo "
+"relacional es realmente una asociación uno-a-uno."
#. Tag: title
-#: inheritance_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per subclass: using a discriminator"
-msgstr "Tabla por subclase, usando un discriminador"
+msgstr "Tabla por subclase: utilizando un discriminador"
#. Tag: para
-#: inheritance_mapping.xml:137
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
"discriminator column. Other object/relational mappers use a different "
@@ -298,242 +186,77 @@
"strategy, you can combine the use of <literal><subclass></literal> and "
"<literal><join></literal>, as follows:"
msgstr ""
-"Observa que la implementación de Hibernate de tabla por subclase no "
-"requiere ninguna columna discriminadora. Otros mapeadores objeto/relacional "
-"usan una implementación diferente de tabla por subclase que requiere "
-"una columna discriminadora de tipo en la tabla de superclase. Este enfoque "
-"es mucho más difícil de implementar pero discutiblemente "
-"más correcto desde un punto de vista relacional. Si quisieras usar "
-"una columna discriminadora con la estrategia de tabla por subclase, puedes "
-"combinar el uso de <literal><subclass></literal> y <literal><"
-"join></literal>, como sigue:"
+"La implementación de Hibernate de tabla por subclase no requiere ninguna "
+"columna discriminadora. Otros mapeadores objeto/relacional usan una "
+"implementación diferente de tabla por subclase que necesita una columna "
+"discriminadora de tipo en la tabla de superclase. Este enfoque es mucho más "
+"difÃcil de implementar pero discutiblemente más correcto desde un punto de "
+"vista relacional. Si quisiere utilizar una columna discriminadora con la "
+"estrategia de tabla por subclase, puede combinar el uso de <literal><"
+"subclass></literal> y <literal><join></literal>, asÃ:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
"not to fetch the <literal>ChequePayment</literal> subclass data using an "
"outer join when querying the superclass."
msgstr ""
-"la declaración opcional <literal>fetch=\"select\"</literal> dice a "
+"La declaración opcional <literal>fetch=\"select\"</literal> le dice a "
"Hibernate que no recupere los datos de la subclase <literal>ChequePayment</"
-"literal> usando una unión externa (outer join) al consultar la "
+"literal> utilizando una unión externa (outer join) al consultar la "
"superclase."
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
-msgstr "Mezclando tabla por jerarquía de clases con tabla por subclase"
+msgstr "Mezcla de tabla por jerarquÃa de clases con tabla por subclase"
#. Tag: para
-#: inheritance_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
-"Puedes incluso mezclar las estrategias de tabla po jerarquía y tabla "
-"por subclase usando este enfoque:"
+"Incluso puede mezclar las estrategias de tabla por jerarquÃa y tabla por "
+"subclase utilizando este enfoque: "
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
"<literal>Payment</literal> class is mapped using <literal><many-to-one>"
"</literal>."
msgstr ""
-"Para cualquiera de estas estrategias de mapeo, una asociación "
-"polimórfica a la clase raíz <literal>Payment</literal> es "
-"mapeada usando <literal><many-to-one></literal>."
+"Para cualquiera de estas estrategias de mapeo, una asociación polimórfica a "
+"la clase raÃz <literal>Payment</literal> es mapeada usando <literal><many-"
+"to-one></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr "Tabla por clase concreta"
#. Tag: para
-#: inheritance_mapping.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
"you can use <literal><union-subclass></literal>."
msgstr ""
-"Podríamos ir de dos maneras a la estrategia de mapeo de tabla por "
-"clase concreta. La primera es usar <literal><union-subclass></literal>."
+"Hay dos maneras de mapear la tabla por estrategia de clase concreta. La "
+"primera es utilizar <literal><union-subclass></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
"all properties of the class, including inherited properties."
msgstr ""
-"Están implicadas tres tablas. Cada tabla define columnas para todas "
-"las propiedades de la clase, inccluyendo las propiedades heredadas."
+"Hay tres tablas involucradas. Cada tabla define columnas para todas las "
+"propiedades de la clase, incluyendo las propiedades heredadas."
#. Tag: para
-#: inheritance_mapping.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
"superclass, the column name must be the same on all subclass tables. The "
@@ -541,94 +264,36 @@
"The primary key seed has to be shared across all unioned subclasses of a "
"hierarchy."
msgstr ""
-"La limitación de este enfoque es que si una propiedad es mapeada en "
-"la superclase, el nombre de columna debe ser el mismo en todas las tablas de "
-"subclase. (Podríamos relajar esto en un lanzamiento futuro de "
-"Hibernate.) La estrategia de generador de indentidad no está "
-"permitida en la herencia de unión de subclase, de hecho la semilla de "
-"clave primaria tiene que ser compartida a través de todas las "
-"subclases unidas de una jerarquía."
+"La limitación de este enfoque es que si una propiedad se mapea en la "
+"superclase, el nombre de la columna debe ser el mismo en todas las tablas de "
+"subclase. La estrategia del generador de identidad no está permitida en la "
+"herencia de unión de subclase. La semilla de la clave principal tiene que "
+"compartirse a través de todas las subclases unidas de una jerarquÃa."
#. Tag: para
-#: inheritance_mapping.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
"literal>. If it is not abstract, an additional table (it defaults to "
"<literal>PAYMENT</literal> in the example above), is needed to hold "
"instances of the superclass."
msgstr ""
-"UNTRANSLATED! If your superclass is abstract, map it with <literal>abstract="
-"\"true\"</literal>. Of course, if it is not abstract, an additional table "
-"(defaults to <literal>PAYMENT</literal> in the example above) is needed to "
-"hold instances of the superclass."
+"Si su superclase es abstracta, mapeéla con <literal>abstract=\"true\"</"
+"literal>. Si no es abstracta, se necesita una tabla adicional (en el ejemplo "
+"anterior, por defecto es <literal>PAYMENT</literal>) para mantener las "
+"instancias de la superclase."
#. Tag: title
-#: inheritance_mapping.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
-msgstr "Tabla por clase concreta, usando polimorfismo implícito"
+msgstr "Tabla por clase concreta utilizando polimorfismo implÃcito"
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
-msgstr "Un enfoque alternativo es hacer uso de polimorfismo implícito:"
+msgstr "Un enfoque alternativo es para hacer uso del polimorfismo implÃcito:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, fuzzy, no-c-format
msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
@@ -636,66 +301,42 @@
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
-"Nota que en ningún sitio mencionamos la interface <literal>Payment</"
-"literal> explícitamente. Nota además que las propiedades de "
-"<literal>Payment</literal> son mapeadas en cada una de las subclases. Si "
-"quieres evitar duplicación, considera usar entidades XML. (por "
-"ejemplo, <literal>[ <!ENTITY allproperties SYSTEM \"allproperties.xml"
-"\"> ]</literal> en la declaración <literal>DOCTYPE</literal> y "
-"<literal>&allproperties;</literal> en el mapeo)."
+"Observe que la interfaz <literal>Payment</literal> no se menciona "
+"explÃcitamente. También note que las propiedades de <literal>Payment</"
+"literal> se mapean en cada una de las subclases. Si quiere evitar la "
+"duplicación, considere el usar entidades XML (por ejemplo, <literal>[ <!"
+"ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> en la "
+"declaración <literal>DOCTYPE</literal> y <literal>&allproperties;</"
+"literal> en el mapeo). "
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
"<literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
"La desventaja de este enfoque es que Hibernate no genera <literal>UNION</"
-"literal>s de SQL al realizar consultas polimórficas."
+"literal>es de SQL al realizar consultas polimórficas. "
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
"literal> is usually mapped using <literal><any></literal>."
msgstr ""
-"Para esta estrategia de mapeo, una asociación polimórfica a "
-"<literal>Payment</literal> es mapeada generalmente usando <literal><"
+"Para esta estrategia de mapeo, una asociación polimórfica a "
+"<literal>Payment</literal> es mapeada generalmente utilizando <literal><"
"any></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
-msgstr "Mezclando polimorfismo implícito con otros mapeos de herencia"
+msgstr "Mezcla de polimorfismo implÃcito con otros mapeos de herencia"
#. Tag: para
-#: inheritance_mapping.xml:248
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
"literal> element, and since <literal>Payment</literal> is just an "
@@ -703,77 +344,15 @@
"inheritance hierarchy. You can still use polymorphic queries against the "
"<literal>Payment</literal> interface."
msgstr ""
-"Hay una cosa más por notar acerca de este mapeo. Ya que las subclases "
-"se mapean cada una en su propio elemento <literal><class></literal> (y "
-"ya que <literal>Payment</literal> es sólo una interface), cada una de "
-"las subclases podría ser parte de otra jerarquía de herencia! "
-"(Y todavía puedes seguir usando consultas polimórficas contra "
-"la interface <literal>Payment</literal>.)"
+"Ya que las subclases se mapean cada una en su propio elemento <literal><"
+"class></literal> y debido a que <literal>Payment</literal> es sólo una "
+"interfaz, cada una de las subclases podrÃa ser fácilmente parte de otra "
+"jerarquÃa de herencia. TodavÃa puede seguir usando consultas polimórficas "
+"contra la interfaz <literal>Payment</literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-
-#. Tag: para
-#: inheritance_mapping.xml:258
-#, fuzzy, no-c-format
-msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
"execute a query against the <literal>Payment</literal> interface, for "
"example <literal>from Payment</literal>, Hibernate automatically returns "
@@ -782,221 +361,215 @@
"literal> and <literal>ChequePayment</literal>, but not instances of "
"<literal>NonelectronicTransaction</literal>."
msgstr ""
-"Una vez más, no mencionamos a <literal>Payment</literal> explí"
-"citamente. Si ejecutamos una consulta contra la interface <literal>Payment</"
-"literal> - por ejemplo, <literal>from Payment</literal> - Hibernate devuelve "
-"automáticamente instancias de <literal>CreditCardPayment</literal> (y "
-"sus subclases, ya que ellas también implementan <literal>Payment</"
-"literal>), <literal>CashPayment</literal> y <literal>ChequePayment</literal> "
-"pero no instancias de <literal>NonelectronicTransaction</literal>."
+"Una vez más, no mencionamos a <literal>Payment</literal> explÃcitamente. Si "
+"ejecutamos una consulta frente a la interfaz <literal>Payment</literal> - "
+"por ejemplo, <literal>from Payment</literal>, Hibernate retorna "
+"automáticamente instancias de <literal>CreditCardPayment</literal> (y sus "
+"subclases, ya que ellas también implementan <literal>Payment</literal>), "
+"<literal>CashPayment</literal> y <literal>ChequePayment</literal> pero no "
+"las instancias de <literal>NonelectronicTransaction</literal>."
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "Limitaciones"
#. Tag: para
-#: inheritance_mapping.xml:275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
"per concrete-class mapping strategy. There are somewhat less restrictive "
"limitations to <literal><union-subclass></literal> mappings."
msgstr ""
-"Existen ciertas limitaciones al enfoque de \"polimorfismo implícito\" "
-"en la estrategia de mapeo de tabla por clase concreta. Existen limitaciones "
-"algo menos restrictivas a los mapeos <literal><union-subclass></"
-"literal>."
+"Existen ciertas limitaciones al enfoque de \"polimorfismo implÃcito\" en la "
+"estrategia de mapeo de tabla por clase concreta. Existen limitaciones un "
+"poco menos restrictivas a los mapeos <literal><union-subclass></"
+"literal>. "
#. Tag: para
-#: inheritance_mapping.xml:282
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
-"La siguiente tabla muestra las limitaciones de mapeos de tabla por clase "
-"concreta, y de polmorfismo implícito, en Hibernate."
+"La siguiente tabla muestra las limitaciones de los mapeos de tabla por clase "
+"concreta y del polimorfismo implÃcito en Hibernate."
#. Tag: title
-#: inheritance_mapping.xml:288
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Features of inheritance mappings"
-msgstr "Funcionalidades de mapeo de herencia"
+msgstr "Mapeo de herencia"
#. Tag: entry
-#: inheritance_mapping.xml:301
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Inheritance strategy"
-msgstr "Estrategia de herencia"
+msgstr "Mapeo de herencia"
#. Tag: entry
-#: inheritance_mapping.xml:302
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-one"
-msgstr "muchos-a-uno polimórfica"
+msgstr "Polimórfico muchos-a-uno: <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
-msgstr "uno-a-uno polimórfica"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
-msgstr "uno-a-muchos polimórfica"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:305
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-many"
-msgstr "mushos-a-muchos polimórfica"
+msgstr "Polimórfico muchos-a-uno: <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
-msgstr "<literal>load()/get()</literal> polimórficos"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
-msgstr "Consultas polimórficas"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
-msgstr "Uniones polimórficas"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:309
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Outer join fetching"
-msgstr "Recuperación por unión externa (outer join)"
+msgstr "Se soporta la recuperación por unión externa."
#. Tag: entry
-#: inheritance_mapping.xml:314
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per class-hierarchy"
-msgstr "tabla por jerarquía de clases"
+msgstr "tabla por jerarquÃa de clases"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
+#. Tag: entry
#, no-c-format
-msgid "<many-to-one>"
-msgstr "<many-to-one>"
+msgid "<literal><many-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
+#. Tag: entry
#, no-c-format
-msgid "<one-to-one>"
-msgstr "<one-to-one>"
+msgid "<literal><one-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
+#. Tag: entry
#, no-c-format
-msgid "<one-to-many>"
-msgstr "<one-to-many>"
+msgid "<literal><one-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
+#. Tag: entry
#, no-c-format
-msgid "<many-to-many>"
-msgstr "<many-to-many>"
+msgid "<literal><many-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
+#. Tag: entry
#, no-c-format
-msgid "s.get(Payment.class, id)"
-msgstr "s.get(Payment.class, id)"
+msgid "<literal>s.get(Payment.class, id)</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
+#. Tag: entry
#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+msgid "<literal>from Payment p</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
-#, no-c-format
-msgid "from Order o join o.payment p"
-msgstr "from Order o join o.payment p"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>from Order o join o.payment p</literal>"
+msgstr "Uniones polimórficas: <code>from Order o join o.payment p</code>"
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
-#, no-c-format
-msgid "supported"
-msgstr "soportada"
-
#. Tag: entry
-#: inheritance_mapping.xml:325
#, no-c-format
-msgid "<entry>table per subclass</entry>"
-msgstr "<entry>tabla por subclase</entry>"
+msgid "<emphasis>supported</emphasis>"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr "tabla por clase concreta (union-subclass)"
#. Tag: entry
-#: inheritance_mapping.xml:339
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
"literal> only)"
msgstr ""
-"<literal><one-to-many></literal> (para <literal>inverse=\"true\"</"
-"literal> solamente)"
+"Polimórfico uno-a-muchos: <code><one-to-many></code> (solo para "
+"<code>inverse=\"true\"</code>)"
#. Tag: entry
-#: inheritance_mapping.xml:347
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
-msgstr "tabla por clase concreta (polimorfismo implícito)"
+msgstr "tabla por clase concreta (polimorfismo implÃcito) "
-#. Tag: literal
-#: inheritance_mapping.xml:348
+#. Tag: entry
#, no-c-format
-msgid "<any>"
-msgstr "<any>"
+msgid "<literal><any></literal>"
+msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
-msgstr "no soportada"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
+#. Tag: entry
#, no-c-format
-msgid "<many-to-any>"
-msgstr "<many-to-any>"
+msgid "<literal><many-to-any></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:352
-#, no-c-format
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"Polimórfico <literal>load()</literal> o <literal>get()</literal>: <code>s."
+"createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()</"
+"code>"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#~ msgid "table per class-heirarchy"
+#~ msgstr "tabla por jerarquÃa de clases "
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ msgid "Polymorphic many-to-one: <code><many-to-one></code>"
+#~ msgstr "Polimórfico muchos-a-uno: <code><many-to-one></code>"
+
+#~ msgid "Polymorphic one-to-one: <code><one-to-one></code>"
+#~ msgstr "Polimórfico uno-a-uno: <code><one-to-one></code>"
+
+#~ msgid "Polymorphic one-to-many: <code><one-to-many></code>"
+#~ msgstr "Polimórfico uno-a-muchos: <code><one-to-many></code>"
+
+#~ msgid "Polymorphic many-to-many: <code><many-to-many></code>"
+#~ msgstr "Polimórfico muchos-a-muchos: <code><many-to-many></code>"
+
+#~ msgid ""
+#~ "Polymorphic <literal>load()</literal> or <literal>get()</literal>: "
+#~ "<code>s.get(Payment.class, id)</code>"
+#~ msgstr ""
+#~ "Polimórfico <literal>load()</literal> o <literal>get()</literal>: <code>s."
+#~ "get(Payment.class, id)</code>"
+
+#~ msgid "Polymorphic queries: <code>from Payment p</code>"
+#~ msgstr "Consultas polimórficas: <code>from Payment p</code>"
+
+#~ msgid ""
+#~ "Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and "
+#~ "outer join fetching are not supported."
+#~ msgstr ""
+#~ "No se soporta polimórfico uno-a-uno, polimórfico uno-a-muchos, uniones "
+#~ "polimórficas y búsquedas de unión externa."
+
+#, fuzzy
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "tabla por subclase"
+
+#, fuzzy
+#~ msgid "<term>table per subclass</term>"
+#~ msgstr "tabla por subclase"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,77 +1,84 @@
-#, fuzzy
+# translation of performance.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: performance\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-04 15:23+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
-msgstr "Mejorando el rendimiento"
+msgstr "Mejoramiento del rendimiento"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
-msgstr "Estrategias de recuperación"
+msgstr "Estrategias de recuperación"
#. Tag: para
-#: performance.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
"associated objects if the application needs to navigate the association. "
"Fetch strategies can be declared in the O/R mapping metadata, or over-ridden "
"by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
-"Una <emphasis>estrategia de recuperación</emphasis> es la estrategia "
-"que usará Hibernate para recuperar los objetos asociados cuando la "
-"aplicación necesite navegar la asociación. Las estrategias de "
-"recuperación pueden ser declaradas en los metadatos de mapeo O/R, o "
-"sobrescritas por una consulta HQL o <literal>Criteria</literal> en "
-"particular."
+"Hibernate utiliza una <emphasis>estrategia de recuperación</emphasis> para "
+"recuperar los objetos asociados cuando la aplicación necesita navegar la "
+"asociación. Las estrategias de recuperación se pueden declarar en los "
+"metadatos de mapeo O/R, o se pueden sobrescribir por medio de una HQL "
+"particular o una petición <literal>Criteria</literal>."
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
-msgstr "Hibernate3 define las siguientes estrategias de recuperación:"
+msgstr "Hibernate3 define las siguientes estrategias de recuperación:"
#. Tag: para
-#: performance.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
"instance or collection in the same <literal>SELECT</literal>, using an "
"<literal>OUTER JOIN</literal>."
msgstr ""
-"<emphasis>Recuperación por unión (join fetching)</emphasis> - "
-"Hibernate recupera la instancia asociada o colección en la misma "
-"<literal>SELECT</literal>, usando una <literal>OUTER JOIN</literal>."
+"<emphasis>Recuperación por unión (join fetching)</emphasis>: Hibernate "
+"recupera la instancia asociada o la colección en el mismo <literal>SELECT</"
+"literal>, utilizando un <literal>OUTER JOIN</literal>."
#. Tag: para
-#: performance.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
"used to retrieve the associated entity or collection. Unless you explicitly "
"disable lazy fetching by specifying <literal>lazy=\"false\"</literal>, this "
"second select will only be executed when you access the association."
msgstr ""
-"<emphasis>Recuperación por selección (select fetching)</"
-"emphasis> - se usa una segunda <literal>SELECT</literal> para recuperar la "
-"entidad asociada o colección. A menos que deshabilites explí"
-"citamente la recuperación perezosa especificando <literal>lazy=\"false"
-"\"</literal>, la segunda selección sólo será ejecutada "
-"cuando realmente accedas a la asociación."
+"<emphasis>Recuperación por selección (select fetching)</emphasis>: se "
+"utiliza un segundo <literal>SELECT</literal> para recuperar la entidad o "
+"colección asocidas. A menos que deshabilite explÃcitamente la recuperación "
+"perezosa especificando <literal>lazy=\"false\"</literal>, la segunda "
+"selección sólo será ejecutada cuando acceda a la asociación."
#. Tag: para
-#: performance.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
"is used to retrieve the associated collections for all entities retrieved in "
@@ -79,88 +86,78 @@
"specifying <literal>lazy=\"false\"</literal>, this second select will only "
"be executed when you access the association."
msgstr ""
-"<emphasis>Recuperación por subselección (subselect fetching)</"
-"emphasis> - se usa una segunda <literal>SELECT</literal> para recuperar las "
-"colecciones asociadas de todas las entidades recuperadas en una consulta o "
-"recuperación previa. A menos que deshabilites explícitamente "
-"la recuperación perezosa especificando <literal>lazy=\"false\"</"
-"literal>, esta segunda selección sólo será ejecutada "
-"cuando realmente accedas a la asociación."
+"<emphasis>Recuperación por subselección (subselect fetching)</emphasis>: se "
+"utiliza un segundo <literal>SELECT</literal> para recuperar las colecciones "
+"asociadas de todas las entidades recuperadas en una consulta o recuperación "
+"previa. A menos de que deshabilite explÃcitamente la recuperación perezosa "
+"especificando <literal>lazy=\"false\"</literal>, esta segunda selección sólo "
+"se ejecutará cuando acceda a la asociación."
#. Tag: para
-#: performance.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
"fetching. Hibernate retrieves a batch of entity instances or collections in "
"a single <literal>SELECT</literal> by specifying a list of primary or "
"foreign keys."
msgstr ""
-"<emphasis>Recuperación en lote</emphasis> - una estrategia de "
-"optimización para la recuperación por selección - "
-"Hibernate recupera un lote de instancias de entidad o colecciones en una "
-"sola <literal>SELECT</literal>, especificando una lista de claves primarias "
-"o de claves foráneas."
+"<emphasis>Recuperación en lote</emphasis>: una estrategia de optimización "
+"para la recuperación por selección. Hibernate recupera un lote de instancias "
+"de entidad o colecciones en un solo <literal>SELECT</literal>, especificando "
+"una lista de claves principales o de claves foráneas."
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
-msgstr "Hibernate también distingue entre:"
+msgstr "Hibernate también distingue entre:"
#. Tag: para
-#: performance.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
"attribute is fetched immediately when the owner is loaded."
msgstr ""
-"<emphasis>Recuperación inmediata</emphasis> - una asociación, "
-"colección o atributo es recuperado inmediatamente, cuando el "
-"dueño es cargado."
+"<emphasis>Recuperación inmediata</emphasis>: una asociación, colección o "
+"atributo se recupera inmediatamente cuando se carga el dueño."
#. Tag: para
-#: performance.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
"the application invokes an operation upon that collection. This is the "
"default for collections."
msgstr ""
-"<emphasis>Recuperación perezosa de colecciones</emphasis> - se "
-"recupera una colección cuando la aplicación invoca una "
-"operación sobre la colección. (Esto es por defecto para las "
-"colecciones.)"
+"<emphasis>Recuperación perezosa de colecciones</emphasis>: una colección se "
+"recupera cuando la aplicación invoca una operación sobre esa colección. Este "
+"es el valor predeterminado para las colecciones."
#. Tag: para
-#: performance.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
"of the collection are accessed from the database as needed. Hibernate tries "
"not to fetch the whole collection into memory unless absolutely needed. It "
"is suitable for large collections."
msgstr ""
-"<emphasis>\"Extra-lazy\" collection fetching</emphasis> - individual "
-"elements of the collection are accessed from the database as needed. "
-"Hibernate tries not to fetch the whole collection into memory unless "
-"absolutely needed (suitable for very large collections)"
+"<emphasis>Recuperación de colección \"extra-perezoza\" </emphasis>: se "
+"accede a elementos individuales desde la base de datos cuando se necesita. "
+"Hibernate intenta no recuperar toda la colección en la memoria a menos de "
+"que sea absolutamente necesario. Esto es apropiado para colecciones muy "
+"grandes."
#. Tag: para
-#: performance.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
"when a method other than the identifier getter is invoked upon the "
"associated object."
msgstr ""
-"<emphasis>Proxy fetching</emphasis> - a single-valued association is fetched "
-"when a method other than the identifier getter is invoked upon the "
-"associated object."
+"<emphasis>Recuperación por proxy</emphasis>: una asociación monovaluada se "
+"recupera cuando se invoca un método que no sea el getter del identificador "
+"sobre el objeto asociado."
#. Tag: para
-#: performance.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
"fetched when the instance variable is accessed. Compared to proxy fetching, "
@@ -169,26 +166,28 @@
"visible to the application. This approach requires buildtime bytecode "
"instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>Recuperación por proxy</emphasis> - se recupera una "
-"asociación monovaluada cuando se invoca un método que no sea "
-"el getter del identificador sobre el objeto asociado."
+"<emphasis> Recuperación \"no-proxy\" </emphasis>: una asociación monovaluada "
+"se recupera cuando se accede a la variable de la instancia. Comparado con la "
+"recuperación por proxy, este enfoque es menos perezozo; la asociación se "
+"recupera cuando se accede sólamente al identificador. También es más "
+"transparente ya que para la aplicación no hay proxies visibles. Este enfoque "
+"requiere instrumentación del código byte del tiempo estimado de construcción "
+"y se necesita muy raramente."
#. Tag: para
-#: performance.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
"association is fetched when the instance variable is accessed. This approach "
"requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>Recuperación perezosa de atributos</emphasis> - se recupera "
-"un atributo o una asociación monovaluada cuando se accede a la "
-"variable de instancia (requiere instrumentación del bytecode en "
-"tiempo de ejecución). Este enfoque es raramente necesario."
+"<emphasis>Recuperación perezosa de atributos</emphasis>: un atributo o una "
+"asociación monovaluada se recuperan cuando se accede a la variable de la "
+"instancia. Este enfoque requiere instrumentación del código byte en tiempo "
+"estimado de construcción y se necesita muy raramente."
#. Tag: para
-#: performance.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
"association fetched and <emphasis>how</emphasis> is it fetched. It is "
@@ -197,108 +196,68 @@
"for what data is always available in any detached instance of a particular "
"class."
msgstr ""
-"Aquí tenemos dos nociones ortogonales: <emphasis>cuándo</"
-"emphasis> se recupera la aplicación, y <emphasis>cómo</"
-"emphasis> es recuperada (qué SQL es usado). ¡No las confundas! "
-"Usamos <literal>fetch</literal> para afinar el rendimiento. Podemos usar "
-"<literal>lazy</literal> para definir un contrato sobre qué datos "
-"están siempre disponibles en cualquier instancia separada de una "
-"clase en particular."
+"Aquà tenemos dos nociones ortogonales: <emphasis>cuándo</emphasis> se "
+"recupera la aplicación, y <emphasis>cómo</emphasis> se recupera. Es "
+"importante que no las confunda. Utilizamos <literal>fetch</literal> para "
+"afinar el rendimiento. Podemos usar <literal>lazy</literal> para definir un "
+"contrato sobre qué datos están siempre disponibles en cualquier instancia "
+"separada de una clase en particular."
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
-msgstr "Trabajando con asociaciones perezosas"
+msgstr "Trabajo con asociaciones perezosas"
#. Tag: para
-#: performance.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
"proxy fetching for single-valued associations. These defaults make sense for "
"most associations in the majority of applications."
msgstr ""
-"Por defecto, Hibernate3 usa una recuperación perezosa por "
-"selección para colecciones y una recuperación por proxy "
-"perezosa para asociaciones monovaluadas. Estas políticas por defecto "
-"tienen sentido para casi todas las asociaciones en casi todas las "
-"aplicaciones."
+"Por defecto, Hibernate3 usa una recuperación perezosa por selección para "
+"colecciones y una recuperación por proxy perezosa para asociaciones "
+"monovaluadas. Estas polÃticas predeterminadas tienen sentido para casi todas "
+"las asociaciones en la mayorÃa de las aplicaciones."
#. Tag: para
-#: performance.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
"will use the batch fetch optimization for lazy fetching. This optimization "
"can also be enabled at a more granular level."
msgstr ""
-"<emphasis>Nota:</emphasis> si estableces <literal>hibernate."
-"default_batch_fetch_size</literal>, Hibernate usará la "
-"optimización de recuperación en lotes para recuperación "
-"perezosa (esta optimización también puede ser habilitada a un "
-"nivel más granularizado)."
+"Si configura <literal>hibernate.default_batch_fetch_size</literal>, "
+"Hibernate utilizará la optimización de recuperación en lotes para "
+"recuperación perezosa. Esta optimización también se puede habilitar en un "
+"nivel más detallado."
#. Tag: para
-#: performance.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
"an open Hibernate session will result in an exception. For example:"
msgstr ""
-"Sin embargo, la recuperación perezosa plantea un problema del que "
-"tienes que estar al tanto. Acceder a una asociación perezosa fuera "
-"del contexto de una sesión de Hibernate abierta resultará en "
-"una excepción. Por ejemplo:"
+"Note que el acceder a una asociación perezosa fuera del contexto de una "
+"sesión de Hibernate abierta resultará en una excepción. Por ejemplo:"
-#. Tag: programlisting
-#: performance.xml:164
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-
-#. Tag: para
-#: performance.xml:166
-#, fuzzy, no-c-format
-msgid ""
"Since the permissions collection was not initialized when the "
"<literal>Session</literal> was closed, the collection will not be able to "
"load its state. <emphasis>Hibernate does not support lazy initialization for "
"detached objects</emphasis>. This can be fixed by moving the code that reads "
"from the collection to just before the transaction is committed."
msgstr ""
-"Ya que la colección de permisos no fue inicializada cuando se "
-"cerró la <literal>Session</literal>, la colección no "
-"será capaz de cargar su estado. <emphasis>Hibernate no soporta la "
-"inicialización perezosa de objetos separados</emphasis>. La "
-"solución es mover el código que lee de la colección a "
-"justo antes que la transacción sea comprometida."
+"Ya que la colección de permisos no fue inicializada cuando se cerró la "
+"<literal>Session</literal>, la colección no será capaz de cargar su estado. "
+"<emphasis>Hibernate no soporta la inicialización perezosa de objetos "
+"separados</emphasis>. La solución es mover el código que lee de la colección "
+"a justo antes de que se guarde la transacción."
#. Tag: para
-#: performance.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
"specifying <literal>lazy=\"false\"</literal> for the association mapping. "
@@ -307,17 +266,15 @@
"in your object model, Hibernate will fetch the entire database into memory "
"in every transaction."
msgstr ""
-"Alternativamente, podríamos usar una colección no perezosa o "
-"asociación, especificando <literal>lazy=\"false\"</literal> para el "
-"mapeo de asociación. Sin embargo, está pensado que la "
-"inicialización perezosa sea usada para casi todas las colecciones y "
-"asociaciones. ¡Si defines demasiadas asociaciones no perezosas en tu "
-"modelo de objetos, Hibernate terminará necesitando recuperar la base "
-"de datos entera en cada transacción!"
+"Opcionalmente puede utilizar una colección no perezosa o asociación, "
+"especificando <literal>lazy=\"false\"</literal> para el mapeo de asociación. "
+"Sin embargo, el propósito de la inicialización perezosa es que se utilice "
+"para casi todas las colecciones y asociaciones. ¡Si define demasiadas "
+"asociaciones no perezosas en su modelo de objetos, Hibernate recuperará la "
+"base de datos entera en toda transacción."
#. Tag: para
-#: performance.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
"instead of select fetching in a particular transaction. We will now explain "
@@ -325,108 +282,76 @@
"choosing a fetch strategy are identical for single-valued associations and "
"collections."
msgstr ""
-"Por otro lado, frecuentemente necesitamos elegir la recuperación por "
-"unión (que es no perezosa por naturaleza) en vez de la "
-"recuperación por selección en una transacción en "
-"particular. Veremos ahora cómo personalizar la estrategia de "
-"recuperación. En Hibernate3, los mecanismos para elegir una "
-"estrategia de recuperación son idénticas a las de las "
-"asociaciones monovaluadas y colecciones."
+"Por otro lado, puede utilizar la recuperación por unión, la cual no es "
+"perezosa por naturaleza, en lugar de la recuperación por selección en una "
+"transacción en particular. Veremos ahora cómo personalizar la estrategia de "
+"recuperación. En Hibernate3, los mecanismos para elegir una estrategia de "
+"recuperación son idénticas para las de las asociaciones monovaluadas y las "
+"colecciones."
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
-msgstr "Afinando las estrategias de recuperación"
+msgstr "Afinación de las estrategias de recuperación"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
"problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
-"La recuperación por selección (la preestablecida) es "
-"extremadamente vulnerable a problemas de selección N+1, de modo "
-"querríamos habilitar la recuperación por unión (join "
-"fetching) en el documento de mapeo:"
+"La recuperación por selección (la preestablecida) es extremadamente "
+"vulnerable a problemas de selección N+1, de modo que puede que queramos "
+"habilitar la recuperación por unión (join fetching) en el documento de mapeo:"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
"affects:"
msgstr ""
-"La estrategia de recuperación definida en el documento de mapeo "
-"afecta a:"
+"La estrategia de <literal>recuperación</literal> definida en el documento de "
+"mapeo afecta a:"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr ""
-"las recuperaciones vía <literal>get()</literal> o <literal>load()</"
+"las recuperaciones por medio de <literal>get()</literal> o <literal>load()</"
"literal>"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr ""
-"las recuperaciones que ocurren implícitamente cuando se navega una "
-"asociación (recuperación perezosa)"
+"las recuperaciones que ocurren implÃcitamente cuando se navega una "
+"asociación (recuperación perezosa)"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
msgstr "las consultas de <literal>Criteria</literal>"
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
-msgstr "HQL queries if <literal>subselect</literal> fetching is used"
+msgstr ""
+"las consultas HQL si se utiliza la recuperación <literal>subselect</literal>"
#. Tag: para
-#: performance.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
"guaranteed to be loaded into memory. This might, however, result in several "
"immediate selects being used to execute a particular HQL query."
msgstr ""
-"No matter what fetching strategy you use, the defined non-lazy graph is "
-"guaranteed to be loaded into memory. Note that this might result in several "
-"immediate selects being used to execute a particular HQL query."
+"Sin importar que estrategia de recuperación utilice, se garantiza que la "
+"gráfica no-perezoza definida será cargada en la memoria. Sin embargo, esto "
+"puede causar la utilización de varias selecciones inmediatas para ejecutar "
+"una consulta HQL en particular."
#. Tag: para
-#: performance.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
"keep the default behavior, and override it for a particular transaction, "
@@ -435,70 +360,50 @@
"the <literal>Criteria</literal> query API, you would use "
"<literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
-"Usualmente, no usamos el documento de mapeo para personalizar la "
-"recuperación. En cambio, mantenemos el comportamiento por defecto, y "
-"lo sobrescribimos para una transacción en particular, usando "
-"<literal>left join fetch</literal> en HQL. Esto le dice a Hibernate que "
-"recupere la asociación tempranamente en la primera selección, "
-"usando una unión externa. En la API de consulta de <literal>Criteria</"
-"literal>, usarías <literal>setFetchMode(FetchMode.JOIN)</literal>."
+"Usualmente, no utilizamos el documento de mapeo para personalizar la "
+"recuperación. En cambio, mantenemos el comportamiento por defecto y lo "
+"sobrescribimos para una transacción en particular, utilizando <literal>left "
+"join fetch</literal> en HQL. Esto le dice a Hibernate que recupere la "
+"asociación tempranamente en la primera selección, usando una unión externa. "
+"En la API de consulta de <literal>Criteria</literal>, usted utilizarÃa "
+"<literal>setFetchMode(FetchMode.JOIN)</literal>."
#. Tag: para
-#: performance.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
"or <literal>load()</literal>, you can use a <literal>Criteria</literal> "
"query. For example:"
msgstr ""
-"Si acaso lo deseases, podrías cambiar la estrategia de "
-"recuperación usada por <literal>get()</literal> or <literal>load()</"
-"literal>; simplemente usa una consulta <literal>Criteria</literal>, por "
-"ejemplo:"
+"Si quiere cambiar la estrategia de recuperación utilizada por <literal>get()"
+"</literal> o <literal>load()</literal>; utilice una consulta "
+"<literal>Criteria</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: performance.xml:253
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-
-#. Tag: para
-#: performance.xml:255
-#, fuzzy, no-c-format
-msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
"\"."
msgstr ""
-"(Esto es el equivalente de Hibernate de lo que otras soluciones ORM llaman "
-"un \"plan de recuperación\".)"
+"Esto es el equivalente de Hibernate de lo que otras soluciones ORM denominan "
+"un \"plan de recuperación\"."
#. Tag: para
-#: performance.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
"second-level cache."
msgstr ""
-"Una forma completamente diferente de evitar problemas con selecciones N+1 es "
-"usar el caché de segundo nivel."
+"Un enfoque completamente diferente de evitar problemas con selecciones N+1 "
+"es usar el caché de segundo nivel."
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
-msgstr "Proxies de asociaciones de un solo extremo"
+msgstr "Proxies de asociaciones de un sólo extremo"
#. Tag: para
-#: performance.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
"implementation of persistent collections. However, a different mechanism is "
@@ -507,31 +412,27 @@
"proxies for persistent objects using runtime bytecode enhancement which is "
"accessed via the CGLIB library."
msgstr ""
-"La recuperación perezosa de colecciones está implementada "
-"usando la implementación de colecciones persistentes propia de "
-"Hibernate. Sin embargo, se necesita un mecanismo diferente para un "
-"comportamiento perezoso en las asociaciones de un solo extremo. La entidad "
-"objetivo de la asociación debe ser tratada con proxies. Hibernate "
-"implementa proxies de inicialización perezosa para objetos "
-"persistentes usando mejora del bytecode en tiempo de ejecución (por "
-"medio de la excelente biblioteca CGLIB)."
+"La recuperación perezosa de colecciones está implementada utilizando la "
+"implementación de colecciones persistentes propia de Hibernate. Sin embargo, "
+"se necesita un mecanismo diferente para un comportamiento perezoso en las "
+"asociaciones de un sólo extremo. La entidad destino de la asociación se debe "
+"tratar con proxies. Hibernate implementa proxies de inicialización perezosa "
+"para objetos persistentes utilizando la mejora del código byte en tiempo de "
+"ejecución por medio de la biblioteca CGLIB)."
#. Tag: para
-#: performance.xml:277
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
"classes and uses them to enable lazy fetching of <literal>many-to-one</"
"literal> and <literal>one-to-one</literal> associations."
msgstr ""
-"Por defecto, Hibernate3 genera proxies (en el arranque) para todas las "
-"clases persistentes y los usa para habilitar la recuperación perezosa "
-"de asociaciones <literal>muchos-a-uno</literal> y <literal>uno-a-uno</"
-"literal>."
+"En el arranque, Hibernate3 genera proxies por defecto para todas las clases "
+"persistentes y los usa para habilitar la recuperación perezosa de "
+"asociaciones <literal>muchos-a-uno</literal> y <literal>uno-a-uno</literal>."
#. Tag: para
-#: performance.xml:283
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
"that class, with the <literal>proxy</literal> attribute. By default, "
@@ -539,147 +440,73 @@
"implement a default constructor with at least package visibility. This "
"constructor is recommended for all persistent classes</emphasis>."
msgstr ""
-"El fichero de mapeo puede declarar una interface a usar como interface de "
+"El archivo de mapeo puede declarar una interfaz a utilizar como interfaz de "
"proxy para esa clase, con el atributo <literal>proxy</literal>. Por defecto, "
-"Hibernate usa una subclase de la clase. <emphasis>Nota que la clase tratada "
-"con proxies debe implementar un constructor por defecto con al menos "
-"visibilidad de paquete. ¡Recomendamos este constructor para todas las "
-"clases persistentes!</emphasis>"
+"Hibernate usa una subclase de la clase. <emphasis>La clase tratada con "
+"proxies debe implementar un constructor por defecto con al menos visibilidad "
+"de paquete. Recomendamos este constructor para todas las clases "
+"persistentes</emphasis>."
#. Tag: para
-#: performance.xml:290
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
"polymorphic classes.For example:"
msgstr ""
-"Hay algunos puntos a tener en cuenta al extender este enfoque a clases "
-"polimórficas, por ejemplo."
+"Hay problemas potenciales que se deben tener en cuenta al extender este "
+"enfoque a las clases polimórficas. Por ejemplo:"
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
"<literal>DomesticCat</literal>, even if the underlying instance is an "
"instance of <literal>DomesticCat</literal>:"
msgstr ""
-"Primero, las instancias de <literal>Cat</literal> nunca serán objeto "
-"de un cast a <literal>DomesticCat</literal>, incluso aunque la instancia "
-"subyacente sea instancia de <literal>DomesticCat</literal>:"
+"Primero, las instancias de <literal>Cat</literal> nunca serán objeto de un "
+"cast a <literal>DomesticCat</literal>, incluso aunque la instancia "
+"subyacente sea una instancia de <literal>DomesticCat</literal>:"
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-
#. Tag: para
-#: performance.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
-msgstr ""
-"Segundo, es posible romper con el operador <literal>==</literal> de un proxy."
+msgstr "Segundo, es posible romper el proxy <literal>==</literal>:"
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
"have two references to different proxy objects, the underlying instance will "
"still be the same object:"
msgstr ""
-"Sin embargo, la situación no en absoluta tan mala como parece. Aunque "
+"Sin embargo, la situación no es en absoluto tan mala como parece. Aunque "
"tenemos ahora dos referencias a objetos proxy diferentes, la instancia "
-"subyacente será aún el mismo objeto:"
+"subyacente será aún el mismo objeto:"
-#. Tag: programlisting
-#: performance.xml:315
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-
-#. Tag: para
-#: performance.xml:317
-#, fuzzy, no-c-format
-msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
"a class with any <literal>final</literal> methods."
msgstr ""
-"Tercero, no debes usar un proxy CGLIB para una clase <literal>final</"
-"literal> o una clase con algún método <literal>final</literal>."
+"Tercero, no puede usar un proxy CGLIB para una clase <literal>final</"
+"literal> o una clase con algún método <literal>final</literal>."
#. Tag: para
-#: performance.xml:322
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
"(e.g. in initializers or default constructor), then those resources will "
"also be acquired by the proxy. The proxy class is an actual subclass of the "
"persistent class."
msgstr ""
-"Finalmente, si tu objeto persistente adquiere cualquier recurso bajo "
-"instanciación (por ejemplo, en inicializadores o constructores por "
-"defecto), entonces esos recursos serán adquiridos también por "
-"el proxy. La clase del proxy es una subclase real de la clase persistente."
+"Finalmente, si su objeto persistente adquiere cualquier recurso bajo "
+"instanciación (por ejemplo, en inicializadores o constructores por defecto), "
+"entonces esos recursos serán adquiridos también por el proxy. La clase del "
+"proxy es una subclase real de la clase persistente. "
#. Tag: para
-#: performance.xml:328
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
"inheritance model. To avoid these problems your persistent classes must each "
@@ -690,163 +517,119 @@
"<literal>DomesticCat</literal>. For example:"
msgstr ""
"Estos problemas se deben a limitaciones fundamentales en el modelo de "
-"herencia única de Java. Si deseas evitar estos problemas cada una de "
-"tus clases persistentes deben implementar una interface que declare sus "
-"métodos de negocio. Debes especificar estas interfaces en el fichero "
-"de mapeo. Por ejemplo:"
+"herencia única de Java. Si desea evitar estos problemas cada una de sus "
+"clases persistentes deben implementar una interfaz que declare sus métodos "
+"de negocio. Debe especificar estas interfaces en el archivo de mapeo en "
+"donde <literal>CatImpl</literal> implementa la interfaz <literal>Cat</"
+"literal> y <literal>DomesticCatImpl</literal> implementa la interfaz "
+"<literal>DomesticCat</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: performance.xml:336
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-
-#. Tag: para
-#: performance.xml:338
-#, fuzzy, no-c-format
-msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
"<literal>DomesticCat</literal> can be returned by <literal>load()</literal> "
"or <literal>iterate()</literal>."
msgstr ""
-"Primero, las instancias de <literal>Cat</literal> nunca serán objeto "
-"de un cast a <literal>DomesticCat</literal>, incluso aunque la instancia "
-"subyacente sea instancia de <literal>DomesticCat</literal>:"
+"Entonces los proxies para las instancias de <literal>Cat</literal> y "
+"<literal>DomesticCat</literal> pueden ser retornadas por <literal>load()</"
+"literal> o <literal>iterate()</literal>."
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: performance.xml:347
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
-msgstr "las consultas de <literal>Criteria</literal>"
+msgstr "<literal>list()</literal> usualmente no retorna proxies."
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
"properties to be of type <literal>Cat</literal>, not <literal>CatImpl</"
"literal>."
msgstr ""
-"Las relaciones también son inicializadas perezosamente. Esto "
-"significa que debes declarar cualquier propiedad como de tipo <literal>Cat</"
-"literal>, no <literal>CatImpl</literal>."
+"Las relaciones también son inicializadas perezosamente. Esto significa que "
+"debe declarar cualquier propiedad como de tipo <literal>Cat</literal>, no "
+"<literal>CatImpl</literal>."
#. Tag: para
-#: performance.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
msgstr ""
-"Ciertas operaciones <emphasis>no</emphasis> requieren inicialización "
-"de proxies."
+"Ciertas operaciones <emphasis>no</emphasis> requieren inicialización de "
+"proxies:"
#. Tag: para
-#: performance.xml:363
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
"<literal>equals()</literal>"
msgstr ""
"<literal>equals()</literal>, si la clase persistente no sobrescribe "
-"<literal>equals()</literal>"
+"<literal>equals()</literal> "
#. Tag: para
-#: performance.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
"<literal>hashCode()</literal>"
msgstr ""
"<literal>hashCode()</literal>, si la clase persistente no sobrescribe "
-"<literal>hashCode()</literal>"
+"<literal>hashCode()</literal> "
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
-msgstr "El método getter del identificador"
+msgstr "El método getter del identificador"
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
"literal> or <literal>hashCode()</literal>."
msgstr ""
-"Hibernate detectará las clase persistentes que sobrescriban "
-"<literal>equals()</literal> o <literal>hashCode()</literal>."
+"Hibernate detectará las clases persistentes que sobrescriban <literal>equals"
+"()</literal> o <literal>hashCode()</literal>."
#. Tag: para
-#: performance.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
"<literal>lazy=\"proxy\"</literal>, you can avoid problems associated with "
"typecasting. However, buildtime bytecode instrumentation is required, and "
"all operations will result in immediate proxy initialization."
msgstr ""
-"UNTRANSLATED!!! By choosing <literal>lazy=\"no-proxy\"</literal> instead of "
-"the default <literal>lazy=\"proxy\"</literal>, we can avoid the problems "
-"associated with typecasting. However, we will require buildtime bytecode "
-"instrumentation, and all operations will result in immediate proxy "
-"initialization."
+"Al escoger <literal>lazy=\"no-proxy\"</literal> en vez del <literal>lazy="
+"\"proxy\"</literal> predeterminado, podemos evitar los problemas asociados "
+"con conversión de tipos (typecasting). Sin embargo, requiere la "
+"instrumentación de código byte en tiempo estimado de construcción y todas "
+"las operaciones resultarán en una inicialización de proxies inmediata."
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
-msgstr "Inicializando colecciones y proxies"
+msgstr "Inicialización de colecciones y proxies"
#. Tag: para
-#: performance.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
"if an uninitialized collection or proxy is accessed outside of the scope of "
"the <literal>Session</literal>, i.e., when the entity owning the collection "
"or having the reference to the proxy is in the detached state."
msgstr ""
-"Una <literal>LazyInitializationException</literal> será lanzada por "
-"Hibernate si una colección o proxy sin inicializar es accedido fuera "
-"del ámbito de la <literal>Session</literal>, es decir, cuando la "
-"entidad que posee la colección o que tiene la referencia al proxy "
-"esté en el estado separada."
+"Hibernate lanzará una <literal>LazyInitializationException</literal> si se "
+"accede a una colección o proxy sin acceder fuera del ámbito de la "
+"<literal>Session</literal>, por ejemplo, cuando la entidad que posee la "
+"colección o que tiene la referencia al proxy esté en el estado separado."
#. Tag: para
-#: performance.xml:404
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
"<literal>Session</literal>. You can force initialization by calling "
@@ -854,16 +637,14 @@
"literal>, for example. However, this can be confusing to readers of the code "
"and it is not convenient for generic code."
msgstr ""
-"A veces necesitamos asegurarnos que un proxy o colección esté "
-"inicializado antes de cerrar la <literal>Session</literal>. Por supuesto, "
-"siempre podemos forzar la inicialización llamando a <literal>cat."
-"getSex()</literal> o <literal>cat.getKittens().size()</literal>, por "
-"ejemplo. Pero esto es confuso a lectores del código y no es "
-"conveniente para código genérico."
+"A veces es necesario inicializar un proxy o una colección antes de cerrar la "
+"<literal>Session</literal>. Puede forzar la inicialización llamando a "
+"<literal>cat.getSex()</literal> o <literal>cat.getKittens().size()</"
+"literal>, por ejemplo. Sin embargo, esto puede ser confuso para los lectores "
+"del código y no es conveniente para el código genérico."
#. Tag: para
-#: performance.xml:411
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
"<literal>Hibernate.isInitialized()</literal>, provide the application with a "
@@ -873,18 +654,17 @@
"literal> is still open. <literal>Hibernate.initialize( cat.getKittens() )</"
"literal> has a similar effect for the collection of kittens."
msgstr ""
-"Los métodos estáticos <literal>Hibernate.initialize()</"
-"literal> y <literal>Hibernate.isInitialized()</literal> proveen a la "
-"aplicación de una forma conveniente de trabajar con colecciones o "
-"proxies inicializados perezosamente. <literal>Hibernate.initialize(cat)</"
-"literal> forzará la inicialización de un proxy, <literal>cat</"
-"literal>, en tanto su <literal>Session</literal> esté todavía "
-"abierta. <literal>Hibernate.initialize( cat.getKittens() )</literal> tiene "
-"un efecto similar para la colección de gatitos."
+"Los métodos estáticos <literal>Hibernate.initialize()</literal> y "
+"<literal>Hibernate.isInitialized()</literal> proporcionan a la aplicación "
+"una forma conveniente de trabajar con colecciones o proxies inicializados "
+"perezosamente. <literal>Hibernate.initialize(cat)</literal> forzará la "
+"inicialización de un proxy, <literal>cat</literal>, en tanto su "
+"<literal>Session</literal> esté todavÃa abierta. <literal>Hibernate."
+"initialize( cat.getKittens() )</literal> tiene un efecto similar para la "
+"colección de gatitos. "
#. Tag: para
-#: performance.xml:420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
"required collections and proxies have been loaded. In some application "
@@ -894,19 +674,16 @@
"<literal>Session</literal> is open when a collection is initialized. There "
"are two basic ways to deal with this issue:"
msgstr ""
-"Otra opción es mantener la <literal>Session</literal> abierta hasta "
-"que todas las colecciones y proxies necesarios hayan sido cargados. En "
-"algunas arquitecturas de aplicación, particularmente en aquellas "
-"donde el código que accede a los datos usando Hibernate, y el "
-"código que los usa están en capas de aplicación "
-"diferentes o procesos físicos diferentes, puede ser un problema "
-"asegurar que la <literal>Session</literal> esté abierta cuando se "
-"inicializa una colección. Existen dos formas básicas de tratar "
-"este tema:"
+"Otra opción es mantener la <literal>Session</literal> abierta hasta que "
+"todas las colecciones y proxies necesarios hayan sido cargados. En algunas "
+"arquitecturas de aplicación, particularmente en aquellas donde el código que "
+"accede a los datos usando Hibernate, y el código que los utiliza están en "
+"capas de aplicación diferentes o procesos fÃsicos diferentes, puede ser un "
+"problema asegurar que la <literal>Session</literal> esté abierta cuando se "
+"inicializa una colección. Existen dos formas básicas para abordar este tema: "
#. Tag: para
-#: performance.xml:431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
"<literal>Session</literal> only at the end of a user request, once the "
@@ -918,25 +695,19 @@
"rendering of the view. See the Hibernate Wiki for examples of this \"Open "
"Session in View\" pattern."
msgstr ""
-"En una aplicación basada web, puede usarse un filtro de servlets para "
-"cerrar la <literal>Session</literal> sólo bien al final de una "
-"petición de usuario, una vez que el rendering de la vista esté "
-"completa (el patrón <emphasis>Sesión Abierta en Vista (Open "
-"Session in View)</emphasis>). Por supuesto, estos sitios requieren una "
-"fuerte demanda de corrección del manejo de excepciones de tu "
-"infraestructura de aplicación. Es de una importancia vital que la "
-"<literal>Session</literal> esté cerrada y la transacción "
-"terminada antes de volver al usuario, incluso cuando ocurra una "
-"excepción durante el rendering de la página. Para este "
-"enfoque, el filtro de servlet tiene que ser capaz de accceder la "
-"<literal>Session</literal>. Recomendamos que se use una variable "
-"<literal>ThreadLocal</literal> para tener la <literal>Session</literal> "
-"actual (ver el capítulo 1, <xref linkend=\"quickstart-playingwithcats"
-"\"/>, para una implementación de ejemplo)."
+"En una aplicación basada en la web se puede utilizar un filtro de servlets "
+"para cerrar la <literal>Session</literal> sólamente al final de una petición "
+"del usuario, una vez que la entrega de la vista esté completa (el patrón "
+"<emphasis>sesión abierta en vista (open session in view)</emphasis>). Por "
+"supuesto, estos sitios requieren una fuerte demanda de corrección del manejo "
+"de excepciones de la infraestructura de su aplicación. Es de una vital "
+"importancia que la <literal>Session</literal> esté cerrada y la transacción "
+"terminada antes de volver al usuario, incluso cuando ocurra una excepción "
+"durante le entrega de la vista. Refiérase a la Wiki de Hibernate para ver "
+"ejemplos de este patrón \"Open Session in View\" (sesión abierta en vista). "
#. Tag: para
-#: performance.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
"\"prepare\" all collections that the web tier needs before returning. This "
@@ -950,24 +721,22 @@
"literal>. This is usually easier if you adopt the <emphasis>Command</"
"emphasis> pattern instead of a <emphasis>Session Facade</emphasis>."
msgstr ""
-"En una aplciación con una grada de negocios separada, la ló"
-"gica de negocio debe \"preparar\" todas las colecciones que se vayan a "
-"necesitar por la grada web antes de volver. Esto significa que la grada de "
-"negocios debe cargar todos los datos y devolver a la grada de "
-"presentación web todos los datos que se requieran para un caso de uso "
-"en particular ya inicializados. Usualmente, la aplicación llama a "
-"<literal>Hibernate.initialize()</literal> para cada colección que se "
-"necesitará en la grada web (esta llamada debe ocurrir antes que la "
-"sesión sea cerrada) o recupera la colección tempranamente "
-"usando una consulta de Hibernate con una cláusula <literal>FETCH</"
-"literal> o una <literal>FetchMode.JOIN</literal> en <literal>Criteria</"
-"literal>. Esto es usualmente más fácil si adoptas el "
-"patrón <emphasis>Comando</emphasis> en vez de un <emphasis>Fachada de "
-"Sesión</emphasis>."
+"En una aplicación con una capa de negocios separada, la lógica empresarial "
+"tiene que \"preparar\" todas las colecciones que la capa web va a necesitar "
+"antes de retornar. Esto significa que la capa empresarial debe cargar todos "
+"los datos y devolver a la capa web/presentación todos los datos ya "
+"inicializados que se requieran para un caso de uso en particular. "
+"Usualmente, la aplicación llama a <literal>Hibernate.initialize()</literal> "
+"para cada colección que se necesitará en la capa web (esta llamada debe "
+"tener lugar antes de que se cierre la sesión) o recupera la colección "
+"tempranamente utilizando una consulta de Hibernate con una cláusula "
+"<literal>FETCH</literal> o una <literal>FetchMode.JOIN</literal> en "
+"<literal>Criteria</literal>. Usualmente, esto es más fácil si adopta el "
+"patrón <emphasis>Comando</emphasis> en vez de una <emphasis>Fachada de "
+"Sesión</emphasis>."
#. Tag: para
-#: performance.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
"literal> with <literal>merge()</literal> or <literal>lock()</literal> before "
@@ -975,92 +744,64 @@
"and certainly <emphasis>should</emphasis> not, do this automatically since "
"it would introduce impromptu transaction semantics."
msgstr ""
-"Puedes también adjuntar un objeto cargado previamente a una nueva "
+"También puede adjuntar un objeto cargado previamente a una nueva "
"<literal>Session</literal> con <literal>merge()</literal> o <literal>lock()</"
-"literal> antes de acceder a colecciones no inicializadas (u otros proxies). "
-"¡No, Hibernate no, y ciertamente <emphasis>no debe</emphasis> hacer "
-"esto automáticamente, ya que introduciría semánticas de "
-"transacción ad hoc!"
+"literal> antes de acceder a colecciones no inicializadas u otros proxies. "
+"Hibernate no y ciertamente <emphasis>no debe</emphasis> hacer esto "
+"automáticamente ya que introducirÃa semánticas de transacción improvisadas."
#. Tag: para
-#: performance.xml:469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
"some information about it, like its size, for example, or a subset of the "
"data."
msgstr ""
-"A veces no quieres inicializar una colección grande, pero necesitas "
-"aún alguna informacion sobre ella (como su tamaño) o un "
-"subconjunto de los datos."
+"A veces no quiere inicializar una colección grande, pero todavÃa necesita "
+"alguna información sobre ella como por ejemplo, su tamaño o un subconjunto "
+"de los datos."
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
"initializing it:"
msgstr ""
-"Puedes usar un filtro de colecciones para obtener el tamaño de una "
-"colección sin inicializarla:"
+"Puede utilizar un filtro de colecciones para obtener el tamaño de una "
+"colección sin inicializarla:"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
"retrieve subsets of a collection without needing to initialize the whole "
"collection:"
msgstr ""
-"El método <literal>createFilter()</literal> se usa también "
-"para recuperar eficientemente subconjuntos de una colección sin "
-"necesidad de inicializar toda la colección:"
+"El método <literal>createFilter()</literal> también se utiliza para "
+"recuperar eficientemente subconjuntos de una colección sin necesidad de "
+"inicializar toda la colección:"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
-msgstr "Usando recuperación en lotes"
+msgstr "Utilización de recuperación de lotes"
#. Tag: para
-#: performance.xml:492
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
"one proxy is accessed. Batch fetching is an optimization of the lazy select "
"fetching strategy. There are two ways you can configure batch fetching: on "
"the class level and the collection level."
msgstr ""
-"Hibernate puede hacer un uso eficiente de la recuperación en lotes, "
-"esto es, Hibernate puede cargar muchos proxies sin inicializar si se accede "
-"a un proxy (o colecciones). La recuperación en lotes es una "
-"optimización de la estrategia de recuperación por "
-"selección perezosa. Hay dos formas en que puedes afinar la "
-"recuperación en lotes: a nivel de la clase o de la colección."
+"Usando la recuperación por lotes, Hibernate puede cargar varios proxies sin "
+"inicializar si se accede a un proxy. La recuperación en lotes es una "
+"optimización de la estrategia de recuperación por selección perezosa. Hay "
+"dos formas en que puede configurar la recuperación en lotes: a nivel de la "
+"clase y a nivel de colección."
#. Tag: para
-#: performance.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
"following example: at runtime you have 25 <literal>Cat</literal> instances "
@@ -1073,37 +814,27 @@
"can tune this behavior by specifying a <literal>batch-size</literal> in the "
"mapping of <literal>Person</literal>:"
msgstr ""
-"La recuperación en lotes para clases/entidades es más fá"
-"cil de entender. Imagina que tienes la siguiente situación en tiempo "
-"de ejecución: Tienes 25 instancias de <literal>Cat</literal> cargadas "
-"en una <literal>Session</literal>, cada <literal>Cat</literal> tiene una "
-"referencia a su <literal>owner</literal>, una <literal>Person</literal>. La "
-"clase <literal>Person</literal> está mapeada con un proxy, "
-"<literal>lazy=\"true\"</literal>. Si ahora iteras a través de todos "
-"los gatos y llamas a <literal>getOwner()</literal> para cada uno, Hibernate "
-"por defecto ejecutará 25 sentencias <literal>SELECT</literal> para "
-"traer los dueños tratados con proxies. Puedes afinar este "
-"comportamiento especificando un <literal>batch-size</literal> en el mapeo de "
+"La recuperación en lotes para clases/entidades es más fácil de entender. "
+"Considere el siguiente ejemplo: en tiempo de ejecución tiene 25 instancias "
+"de <literal>Cat</literal> cargadas en una <literal>Session</literal> y cada "
+"<literal>Cat</literal> tiene una referencia a su <literal>owner</literal>, "
+"una <literal>Person</literal>. La clase <literal>Person</literal> está "
+"mapeada con un proxy, <literal>lazy=\"true\"</literal>. Si ahora itera a "
+"través de todos los cats y llama a <literal>getOwner()</literal> para cada "
+"uno, Hibernate por defecto, ejecutará 25 declaraciones <literal>SELECT</"
+"literal> para recuperar los dueños proxies. Puede afinar este comportamiento "
+"especificando un <literal>batch-size</literal> en el mapeo de "
"<literal>Person</literal>:"
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-
#. Tag: para
-#: performance.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
msgstr ""
-"Hibernate ahora ejecutará sólo tres consultas, el patró"
-"n es 10, 10, 5."
+"Hibernate ahora ejecutará sólamente tres consultas: el patrón es 10, 10, 5."
#. Tag: para
-#: performance.xml:514
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
"<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, "
@@ -1113,34 +844,16 @@
"fetching for the <literal>cats</literal> collection in the mapping of "
"<literal>Person</literal>, Hibernate can pre-fetch collections:"
msgstr ""
-"También puedes habilitar la recuperación en lotes para "
-"colecciones. Por ejemplo, si cada <literal>Person</literal> tiene una "
-"colección perezosa de <literal>Cat</literal>s, y hay 10 personas "
-"actualmente cargadas en la <literal>Session</literal>, iterar a travé"
-"s de las 10 personas generará 10 <literal>SELECT</literal>s, una para "
-"cada llamada a <literal>getCats()</literal>. Si habilitas la "
-"recuperación en lotes para la colección de <literal>cats</"
-"literal> en el mapeo de <literal>Person</literal>, Hibernate puede recuperar "
-"por adelantado las colecciones:"
+"También puede habilitar la recuperación en lotes para colecciones. Por "
+"ejemplo, si cada <literal>Person</literal> tiene una colección perezosa de "
+"<literal>Cat</literal>s y hay 10 personas actualmente cargadas en la "
+"<literal>Session</literal>, iterar a través de las 10 personas generará 10 "
+"<literal>SELECT</literal>s, uno para cada llamada a <literal>getCats()</"
+"literal>. Si habilita la recuperación en lotes para la colección de "
+"<literal>cats</literal> en el mapeo de <literal>Person</literal>, Hibernate "
+"puede recuperar por adelantado las colecciones: "
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -1148,55 +861,107 @@
"attribute depends on the expected number of uninitialized collections in a "
"particular <literal>Session</literal>."
msgstr ""
-"Con un <literal>batch-size</literal> de 3, Hibernate cargará 3, 3, 3, "
-"1 colecciones en cuatro <literal>SELECT</literal>s. Una vez más, el "
-"valor del atributo depende del número esperado de colecciones sin "
-"inicializar en una <literal>Session</literal> en particular."
+"Con un <literal>batch-size</literal> de 3, Hibernate cargará las colecciones "
+"3, 3, 3, 1 en cuatro <literal>SELECT</literal>s. Una vez más, el valor del "
+"atributo depende del número esperado de colecciones sin inicializar en una "
+"<literal>Session</literal> en particular."
#. Tag: para
-#: performance.xml:531
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
"tree of items, i.e. the typical bill-of-materials pattern. However, a "
"<emphasis>nested set</emphasis> or a <emphasis>materialized path</emphasis> "
"might be a better option for read-mostly trees."
msgstr ""
-"La recuperación de coleccione en lotes es particularmente útil "
-"si tienes un árbol anidado de ítems, es decir, el tí"
-"pico patrón de cuenta de materiales. (Aunque un <emphasis>conjunto "
-"anidado</emphasis> o una <emphasis>ruta materializada</emphasis> podrí"
-"a ser una mejor opción para árboles que sean de lectura en la "
-"mayoría de los casos.)"
+"La recuperación de colecciones en lotes es particularmente útil si tiene un "
+"árbol anidado de Ãtems, por ejemplo, el tÃpico patrón de cuenta de "
+"materiales. Sin embargo, un <emphasis>conjunto anidado</emphasis> o una "
+"<emphasis>ruta materializada</emphasis> podrÃa ser una mejor opción para "
+"árboles que sean de lectura en la mayorÃa de los casos."
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
-msgstr "Usando recuperación por subselección"
+msgstr "Utilización de la recuperación por subselección"
#. Tag: para
-#: performance.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
"will load all of them, re-running the original query in a subselect. This "
"works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
-"Si una colección perezosa o proxy monovaluado tiene que ser "
-"recuperado, Hibernate los carga a todos, volviendo a ejecutar la consulta "
-"original en una subselección. Esto funciona de la misma forma que la "
-"recuperación en lotes, sin carga fragmentaria."
+"Si una colección perezosa o proxy monovaluado tiene que ser recuperado, "
+"Hibernate los carga a todos, volviendo a ejecutar la consulta original en "
+"una subselección. Esto funciona de la misma forma que la recuperación en "
+"lotes, sin carga fragmentaria. "
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "Estrategias de recuperación"
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
-msgstr "Usando recuperación perezosa de propiedades"
+msgstr "Utilización de la recuperación perezosa de propiedades"
#. Tag: para
-#: performance.xml:555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
"optimization technique is also known as <emphasis>fetch groups</emphasis>. "
@@ -1206,141 +971,72 @@
"when legacy tables have hundreds of columns and the data model cannot be "
"improved."
msgstr ""
-"Hibernate3 soporta la recuperación perezosa de propiedades "
-"individuales. Esta técnica de optimización es también "
-"conocida como <emphasis>grupos de recuperación (fetch groups)</"
-"emphasis>. Por favor, nota que éste es mayormente un aspecto de "
-"marketing, ya que en la práctica, optimizar lecturas de filas es "
-"mucho más importante que la optimización de lectura de "
-"columnas. Sin embargo, cargar sólo algunas propiedades de una clase "
-"podría ser útil en casos extremos, cuando tablas heredadas "
-"tienen cientos de columnas y el modelo de datos no puede ser mejorado."
+"Hibernate3 soporta la recuperación perezosa de propiedades individuales. "
+"Esta técnica de optimización también es conocida como <emphasis>grupos de "
+"recuperación (fetch groups)</emphasis>. Por favor, note que éste es "
+"principalmente un aspecto de marketing, ya que en la práctica, optimizar las "
+"lecturas de filas es mucho más importante que la optimización de lectura de "
+"columnas. Sin embargo, cargar sólo algunas propiedades de una clase podrÃa "
+"ser útil en casos extremos. Por ejemplo, cuando las tablas heredadas tienen "
+"cientos de columnas y el modelo de datos no puede ser mejorado."
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
"on your particular property mappings:"
msgstr ""
-"Para habilitar la carga perezosa de propiedades, establece el atributo "
-"<literal>lazy</literal> en tus mapeos de propiedades:"
+"Para habilitar la carga perezosa de propiedades, establezca el atributo "
+"<literal>lazy</literal> en sus mapeos de propiedades:"
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-
-#. Tag: para
-#: performance.xml:571
-#, fuzzy, no-c-format
-msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
"persistent classes are not enhanced, Hibernate will ignore lazy property "
"settings and return to immediate fetching."
msgstr ""
-"¡La carga perezosa de propiedades requiere la instrumentación "
-"del bytecode en tiempo de construcción! Si tus clases persistentes no "
-"son mejoradas, Hibernate ignorará silenciosamente la "
-"configuración perezosa de propiedades y caerá en "
-"recuperación inmediata."
+"La carga perezosa de propiedades requiere la instrumentación del código byte "
+"en tiempo de construcción. Si sus clases persistentes no se mejoran, "
+"Hibernate ignorará la configuración perezosa de propiedades y retornará a la "
+"recuperación inmediata."
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
msgstr ""
-"Para la instrumentación del bytecode, usa la siguiente tarea Ant:"
+"Para la instrumentación del código byte, utilice la siguiente tarea Ant:"
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-
-#. Tag: para
-#: performance.xml:583
-#, fuzzy, no-c-format
-msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
"transactions, is to use the projection features of HQL or Criteria queries. "
"This avoids the need for buildtime bytecode processing and is certainly a "
"preferred solution."
msgstr ""
-"Una forma diferente (¿mejor?) de evitar lecturas innecesarias de "
-"columnas, al menos para transacciones de sólo lectura es usar las "
-"funcionalidades de proyección de consultas HQL o Criteria. Esto evita "
-"la necesidad de procesar el bytecode en tiempo de construcción y "
-"ciertamente es una solución preferida."
+"Una forma diferente de evitar lecturas innecesarias de columnas, al menos "
+"para transacciones de sólo lectura es utilizar las funcionalidades de "
+"proyección de consultas HQL o Criteria. Esto evita la necesidad de procesar "
+"el código byte en tiempo de construcción y ciertamente es la solución "
+"preferida."
#. Tag: para
-#: performance.xml:590
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
"all properties</literal> in HQL."
msgstr ""
-"Puedes forzar la usual recuperación temprana de propiedades usando "
+"Puede forzar la usual recuperación temprana de propiedades utilizando "
"<literal>fetch all properties</literal> en HQL."
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
-msgstr "El Caché de Segundo Nivel"
+msgstr "El Caché de Segundo Nivel"
#. Tag: para
-#: performance.xml:602
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
"persistent data. It is possible to configure a cluster or JVM-level "
@@ -1350,18 +1046,17 @@
"another application. They can, however, be configured to regularly expire "
"cached data."
msgstr ""
-"Una <literal>Session</literal> de Hibernate es una caché de datos "
-"persistentes a nivel de transacción. Es posible configurar un cluster "
-"o caché a nivel de JVM (a nivel de <literal>SessionFactory</literal>) "
-"sobre una base de clase-a-clase o colección-a-colección. "
-"Puedes incluso enchufar una caché en cluster. Sé cuidadoso. "
-"Las cachés nunca están al tanto de los cambios hechos por otra "
-"aplicación al almacén persistente (aunque pueden ser "
-"configurados para expirar regularmente los datos en caché)."
+"Una <literal>Session</literal> de Hibernate es un caché de datos "
+"persistentes a nivel de transacción. Es posible configurar un clúster o "
+"caché a nivel de MVJ (a nivel de <literal>SessionFactory</literal>) sobre "
+"una base de clase-por-clase o colección-por-colección. Incluso puede "
+"enchufar un caché en clúster. Tenga en cuenta de que los cachés nunca están "
+"al tanto de los cambios que otra aplicación haya realizado al almacén "
+"persistente. Sin embargo, se pueden configurar para que los datos en caché "
+"expiren regularmente."
#. Tag: para
-#: performance.xml:610
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
"specifying the name of a class that implements <literal>org.hibernate.cache."
@@ -1371,311 +1066,243 @@
"can also implement your own and plug it in as outlined above. Note that "
"versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
-"Por defecto, Hibernate usa EHCache para caching a nivel de JVM. (El soporte "
-"a JCS ahora está despreciado y será quitado en una futura "
-"versión de Hibernate.) Puedes elegir una implementación "
-"diferente estableciendo el nombre de una clase que implemente <literal>org."
-"hibernate.cache.CacheProvider</literal> usando la propiedad "
-"<literal>hibernate.cache.provider_class</literal>."
+"Tiene la opción de decirle a Hibernate cual implementación de caché utilizar "
+"al especificar el nombre de una clase que implemente <literal>org.hibernate."
+"cache.CacheProvider</literal> utilizando la propiedad <literal>hibernate."
+"cache.provider_class</literal>. Hibernate viene vinculada con un número de "
+"integraciones incorporadas con los proveedores caché de código abierto "
+"enumerados a continuación. Además puede implementar el suyo y enchufarlo "
+"como se explicó anteriormente. Observe que las versiones anteriores a 3.2 "
+"por defecto utilizan EhCache como proveedor de caché."
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
-msgstr "Proveedores de Caché"
+msgstr "Proveedores de Caché"
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
-msgstr "Caché"
+msgstr "Caché"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
-msgstr "clase del Provedor"
+msgstr "Clase del Provedor"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr "Tipo"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
-msgstr "Cluster Seguro"
+msgstr "Clúster Seguro"
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
-msgstr "Caché de Consultas Soportado"
+msgstr "Caché de Consultas Soportado"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, no-c-format
msgid "Hashtable (not intended for production use)"
-msgstr "Hashtable (no pensado para uso en producción)"
+msgstr "Hashtable (no fue pensado para la utilización en producción)"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
-msgstr "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr "memoria"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
-msgstr "<entry>si</entry>"
+msgid "yes"
+msgstr "si"
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
-msgstr "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.EhCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
msgstr "memoria, disco"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
-msgstr "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.OSCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
-msgstr "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
-msgstr "clusterizado (ip multicast)"
+msgstr "en clúster (ip multicast)"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
-msgstr "sí (invalidación en cluster)"
+msgstr "sà (invalidación en clúster)"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 1.x"
-msgstr "TreeCache de JBoss"
+msgstr "JBoss Cache 1.x"
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
-msgstr "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
-msgstr "clusterizado (ip multicast), transaccional"
+msgstr "en clúster (ip multicast), transaccional"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
-msgstr "sí (replicación)"
+msgstr "sà (replicación)"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
-msgstr "sí (requiere sincronización de reloj)"
+msgstr "sà (requiere sincronización de reloj)"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 2"
-msgstr "TreeCache de JBoss"
+msgstr "JBoss Cache 2"
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc2.JBossCacheRegionFactory"
-msgstr "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
+msgstr "<literal>org.hibernate.cache.jbc2.JBossCacheRegionFactory</literal>"
#. Tag: entry
-#: performance.xml:677
-#, fuzzy, no-c-format
+#, no-c-format
msgid "yes (replication or invalidation)"
-msgstr "sí (invalidación en cluster)"
+msgstr "sà (replicación o invalidación)"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
-msgstr "Mapeos de caché"
+msgstr "Mapeos de caché"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
"mapping has the following form:"
msgstr ""
-"El elemento <literal><cache></literal> de una mapeo de clase o "
-"colección tiene la siguiente forma:"
+"El elemento <literal><cache></literal> de un mapeo de clase o "
+"colección tiene la siguiente forma:"
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
-msgstr ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-"/>]]>"
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
"<literal>transactional</literal>, <literal>read-write</literal>, "
"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
msgstr ""
-"<literal>usage</literal> especifica la estrategia de caching: "
+"<literal>usage</literal> especifica la estrategia de caché: "
"<literal>transactional</literal>, <literal>read-write</literal>, "
"<literal>nonstrict-read-write</literal> o <literal>read-only</literal>"
#. Tag: para
-#: performance.xml:710
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
"role name): specifies the name of the second level cache region"
msgstr ""
-"<literal>region</literal> (optional, defaults to the class or collection "
-"role name) specifies the name of the second level cache region"
+"<literal>region</literal> (opcional: por defecto es el nombre del rol de la "
+"clase o colección): especifica el nombre de la región de caché de segundo "
+"nivel."
#. Tag: para
-#: performance.xml:717
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
"<literal>non-lazy</literal>: specifies that properties of the entity mapped "
"with <literal>lazy=\"true\"</literal> cannot be cached when attribute-level "
"lazy fetching is enabled"
msgstr ""
-"<literal>include</literal> (optional, defaults to <literal>all</literal>) "
-"<literal>non-lazy</literal> specifies that properties of the entity mapped "
-"with <literal>lazy=\"true\"</literal> may not be cached when attribute-level "
-"lazy fetching is enabled"
+"<literal>include</literal> (opcional: por defecto es <literal>all</literal>) "
+"<literal>non-lazy</literal>: especifica que las propiedades de la entidad "
+"mapeadas con <literal>lazy=\"true\"</literal> no se pueden poner en caché "
+"cuando se habilita la recuperación perezoza a nivel de atributos."
#. Tag: para
-#: performance.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
"<literal><collection-cache></literal> elements in <literal>hibernate."
"cfg.xml</literal>."
msgstr ""
-"Alternativamente (¿preferiblemente?), puedes especificar los "
-"elementos <literal><class-cache></literal> y <literal><collection-"
-"cache></literal> en <literal>hibernate.cfg.xml</literal>."
+"Opcionalmente, puede especificar los elementos <literal><class-cache></"
+"literal> y <literal><collection-cache></literal> en <literal>hibernate."
+"cfg.xml</literal>."
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
"concurrency strategy</emphasis>."
msgstr ""
"El atributo <literal>usage</literal> especifica una <emphasis>estrategia de "
-"concurrencia al caché</emphasis>."
+"concurrencia al caché</emphasis>."
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
-msgstr "Estrategia: sólo lectura (read only)"
+msgstr "Estrategia: sólo lectura"
#. Tag: para
-#: performance.xml:741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
"class, a <literal>read-only</literal> cache can be used. This is the "
"simplest and optimal performing strategy. It is even safe for use in a "
"cluster."
msgstr ""
-"Si tu aplicación necesita leer pero nunca modificar las instancias de "
-"una clase persistente, puede usarse un caché <literal>read-only</"
-"literal>. Esta es la mejor y más simple estrategia. Es incluso "
-"perfectamente segura de usar en un cluster."
+"Si su aplicación necesita leer pero no modificar las instancias de una clase "
+"persistente, puede utilizar un caché <literal>read-only</literal> (de sólo "
+"lectura). Esta es la mejor estrategia y la más simple. Incluso es totalmente "
+"segura para utilizar en un clúster."
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
msgstr "Estrategia: lectura/escritura (read/write)"
#. Tag: para
-#: performance.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
"cache might be appropriate. This cache strategy should never be used if "
@@ -1689,51 +1316,26 @@
"should ensure that the underlying cache implementation supports locking. The "
"built-in cache providers <emphasis>do not</emphasis> support locking."
msgstr ""
-"Si la aplicación necesita actualizar datos, un caché "
-"<literal>read-write</literal> podría ser apropiado. Esta estrategia "
-"de caché nunca debe ser usada si se requiere nivel de aislamiento "
-"serializable de transacciones. Si el caché es usado en un entorno "
-"JTA, debes especificar la propiedad <literal>hibernate.transaction."
-"manager_lookup_class</literal>, mencionando una estrategia para obtener el "
-"<literal>TransactionManager</literal> de JTA. En otros entornos, debes "
-"asegurarte que la transacción esté completada cuando se llame "
-"a <literal>Session.close()</literal> o <literal>Session.disconnect()</"
-"literal>. Si deseas usar esta estrategia en un cluster, debes asegurarte que "
-"la implementación de caché subyacente soporta bloqueos. Los "
-"provedores de caché internos predeterminados <emphasis>no</emphasis> "
-"no lo soportan."
+"Si la aplicación necesita actualizar datos, un caché <literal>read-write</"
+"literal> puede ser apropiado. Esta estrategia de caché nunca se debe "
+"utilizar si se requiere un nivel de aislamiento serializable de "
+"transacciones. Si el caché se usa en un entorno JTA, tiene que especificar "
+"la propiedad <literal>hibernate.transaction.manager_lookup_class</literal>, "
+"mencionando una estrategia para obtener el <literal>TransactionManager</"
+"literal> de JTA. En otros entornos, debe asegurarse de que la transacción "
+"esté completada cuando se llame a <literal>Session.close()</literal> o "
+"<literal>Session.disconnect()</literal>. Si desea utilizar esta estrategia "
+"en un clúster, debe asegurarse de que la implementación de caché subyacente "
+"soporta bloqueos. Los provedores de caché internos <emphasis>no</emphasis> "
+"soportan bloqueos."
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
-msgstr "Estrategia: lectura/escritura no estricta (nonstrict read/write)"
+msgstr "Estrategia: lectura/escritura no estricta"
#. Tag: para
-#: performance.xml:773
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
"extremely unlikely that two transactions would try to update the same item "
@@ -1744,103 +1346,88 @@
"should ensure that the transaction is completed when <literal>Session.close()"
"</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
-"Si la aplicación necesita sólo ocasionalmente actualizar datos "
-"(es decir, es extremadamente inprobable que dos transacciones intenten "
-"actualizar el mismo ítem simultáneamente) y no se requiere de "
-"un aislamiento de transacciones estricto, un caché <literal>nonstrict-"
-"read-write</literal> podría ser apropiado. Si se usa el caché "
-"en un entorno JTA, debes especificar <literal>hibernate.transaction."
-"manager_lookup_class</literal>. En otros entornos, debes asegurarte que la "
-"transacción se haya completado cuando se llame a <literal>Session."
-"close()</literal> o <literal>Session.disconnect()</literal>."
+"Si la aplicación necesita sólo ocasionalmente actualizar datos (es decir, es "
+"extremadamente improbable que dos transacciones intenten actualizar el mismo "
+"Ãtem simultáneamente) y no se requiere de un aislamiento de transacciones "
+"estricto, un caché <literal>nonstrict-read-write</literal> podrÃa ser "
+"apropiado. Si se utiliza el caché en un entorno JTA, tiene que especificar "
+"<literal>hibernate.transaction.manager_lookup_class</literal>. En otros "
+"entornos, debe asegurarse que se haya completado la transacción cuando se "
+"llame a <literal>Session.close()</literal> o <literal>Session.disconnect()</"
+"literal>."
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
msgstr "Estrategia: transaccional"
#. Tag: para
-#: performance.xml:787
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
"fully transactional cache providers such as JBoss TreeCache. Such a cache "
"can only be used in a JTA environment and you must specify "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
-"La estrategia de caché <literal>transactional</literal> brinda "
-"soporte a provedores de cachés completamente transaccionales como "
-"TreeCache de JBoss. Un caché así, puede sólo ser usado "
-"en un entorno JTA y debes especificar <literal>hibernate.transaction."
-"manager_lookup_class</literal>."
+"La estrategia de caché <literal>transactional</literal> brinda soporte a "
+"provedores de cachés completamente transaccionales como JBoss TreeCache. Un "
+"caché asÃ, sólo se puede utilizar en un entorno JTA y tiene que especificar "
+"<literal>hibernate.transaction.manager_lookup_class</literal>."
#. Tag: title
-#: performance.xml:796
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
-msgstr "Soporte a Estrategia de Concurrencia a Caché"
+msgstr "Compatibilidad de proveedor de caché/estrategia de concurrencia"
#. Tag: para
-#: performance.xml:799
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
msgstr ""
-"Ninguno de los provedores de caché soporta todas las estrategias de "
-"concurrencia al caché. La siguiente tabla muestra qué "
-"provedores son compatibles con qué estrategias de concurrencia."
+"Ninguno de los provedores de caché soporta todas las estrategias de "
+"concurrencia al caché. "
#. Tag: para
-#: performance.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
"concurrency strategies."
msgstr ""
-"Ninguno de los provedores de caché soporta todas las estrategias de "
-"concurrencia al caché. La siguiente tabla muestra qué "
-"provedores son compatibles con qué estrategias de concurrencia."
+"La siguiente tabla muestra qué provedores son compatibles con qué "
+"estrategias de concurrencia."
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
-msgstr "Soporte a Estrategia de Concurrencia a Caché"
+msgstr "Soporte a Estrategia de Concurrencia a Caché"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr "read-only"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
msgstr "nonstrict-read-write"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
msgstr "read-write"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr "transactional"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
-msgstr "Gestionando los cachés"
+msgstr "Gestión de cachés"
#. Tag: para
-#: performance.xml:879
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an "
@@ -1849,16 +1436,15 @@
"</literal>, that object is added to the internal cache of the "
"<literal>Session</literal>."
msgstr ""
-"Siempre que pases un objeto a <literal>save()</literal>, <literal>update()</"
-"literal> o <literal>saveOrUpdate()</literal> y siempre que recuperes un "
-"objeto usando <literal>load()</literal>, <literal>get()</literal>, "
+"Siempre que pase un objeto a <literal>save()</literal>, <literal>update()</"
+"literal> o <literal>saveOrUpdate()</literal> y siempre que recupere un "
+"objeto utilizando <literal>load()</literal>, <literal>get()</literal>, "
"<literal>list()</literal>, <literal>iterate()</literal> o <literal>scroll()</"
-"literal>, ese objeto es agregado al caché interno de la "
-"<literal>Session</literal>."
+"literal>, ese objeto se agrega al caché interno de la <literal>Session</"
+"literal>."
#. Tag: para
-#: performance.xml:886
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
"object will be synchronized with the database. If you do not want this "
@@ -1867,350 +1453,284 @@
"can be used to remove the object and its collections from the first-level "
"cache."
msgstr ""
-"Cuando subsecuentemente se llame a <literal>flush()</literal>, el estado de "
-"ese objeto será sincronizado con la base de datos. Si no quieres que "
-"ocurra esta sincronización o si estás procesando un nú"
-"mero enorme de objetos y necesitas gestionar la memoria eficientemente, "
-"puede usarse el método <literal>evict()</literal> para quitar el "
-"objeto y sus colecciones del caché de primer nivel."
+"Cuando luego se llame a <literal>flush()</literal>, el estado de ese objeto "
+"será sincronizado con la base de datos. Si no quiere que ocurra esta "
+"sincronización o si está procesando un número enorme de objetos y necesita "
+"gestionar la memoria eficientemente, puede utilizar el método <literal>evict"
+"()</literal> para quitar el objeto y sus colecciones del caché de primer "
+"nivel. "
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
"method to determine if an instance belongs to the session cache."
msgstr ""
-"La <literal>Session</literal> también provee un método "
-"<literal>contains()</literal> para determinar si una instancia pertenece al "
-"caché de la sesión."
+"La <literal>Session</literal> también proporciona un método <literal>contains"
+"()</literal> para determinar si una instancia pertenece al caché de la "
+"sesión."
#. Tag: para
-#: performance.xml:901
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
"literal>"
msgstr ""
-"Para desahuciar (evict) todos los objetos del caché de sesión, "
-"llama a <literal>Session.clear()</literal>."
+"Para expulsar todos los objetos del caché de sesión, llame a "
+"<literal>Session.clear()</literal>. "
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
"<literal>SessionFactory</literal> for evicting the cached state of an "
"instance, entire class, collection instance or entire collection role."
msgstr ""
-"Para el caché de segundo nivel, hay métodos definidos en "
-"<literal>SessionFactory</literal> para desahuciar el estado en caché "
-"de una instancia, clase entera, instancia de colección o rol enter de "
-"colección."
+"Para el caché de segundo nivel, hay métodos definidos en "
+"<literal>SessionFactory</literal> para explusar el estado en caché de una "
+"instancia, clase entera, instancia de colección o rol entero de colección."
-#. Tag: programlisting
-#: performance.xml:911
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-
-#. Tag: para
-#: performance.xml:913
-#, fuzzy, no-c-format
-msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
"with the second-level cache:"
msgstr ""
-"El <literal>CacheMode</literal> controla cómo una sesión en "
-"particular interactúa con el caché de segundo nivel."
+"El <literal>CacheMode</literal> controla la manera en que interactúa una "
+"sesión en particular con el caché de segundo nivel:"
#. Tag: para
-#: performance.xml:920
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
"the second-level cache"
msgstr ""
-"<literal>CacheMode.NORMAL</literal> - lee ítems desde y escribe "
-"ítems hacia el caché de segundo nivel"
+"<literal>CacheMode.NORMAL</literal>: lee Ãtems desde y escribe Ãtems hacia "
+"el caché del segundo nivel"
#. Tag: para
-#: performance.xml:925
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
"cache. Do not write to the second-level cache except when updating data"
msgstr ""
-"<literal>CacheMode.GET</literal> - lee ítems del caché de "
-"segundo nivel, pero no escribe al caché de segundo nivel excepto al "
-"actualizar datos"
+"<literal>CacheMode.GET</literal>: lee Ãtems del caché del segundo nivel. No "
+"escribe al caché de segundo nivel excepto cuando actualiza datos"
#. Tag: para
-#: performance.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache"
msgstr ""
-"<literal>CacheMode.PUT</literal> - escribe ítems al caché de "
-"segundo nivel, pero no lee del caché de segundo nivel"
+"<literal>CacheMode.PUT</literal>: escribe Ãtems al caché de segundo nivel. "
+"No lee del caché de segundo nivel"
#. Tag: para
-#: performance.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache. Bypass the effect of "
"<literal>hibernate.cache.use_minimal_puts</literal> forcing a refresh of the "
"second-level cache for all items read from the database"
msgstr ""
-"<literal>CacheMode.REFRESH</literal> - escribe ítems al caché "
-"de segundo nivel, pero no lee del caché de segundo nivel, saltá"
-"ndose el efecto de <literal>hibernate.cache.use_minimal_puts</literal>, "
-"forzando un refresco del caché de segundo nivel para todos los "
-"ítems leídos de la base de datos"
+"<literal>CacheMode.REFRESH</literal>: escribe Ãtems al caché de segundo "
+"nivel. No lee del caché de segundo nivel, saltándose el efecto de "
+"<literal>hibernate.cache.use_minimal_puts</literal>, forzando la "
+"actualización del caché de segundo nivel para todos los Ãtems leÃdos de la "
+"base de datos"
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
"<literal>Statistics</literal> API:"
msgstr ""
-"Para navegar por los contenidos de una región de caché de "
-"segundo nivel o de consultas, usa la API de <literal>Statistics</literal>:"
+"Para navegar por los contenidos de una región de caché de segundo nivel o de "
+"consultas, use la API de <literal>Statistics</literal>:"
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
+"You will need to enable statistics and, optionally, force Hibernate to keep "
+"the cache entries in a more readable format:"
msgstr ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
+"Necesitará habilitar las estadÃsticas y, opcionalmente, forzar a Hibernate "
+"para que guarde las entradas del caché en un formato más fácil de entender "
+"para humanos: "
+#. Tag: title
+#, no-c-format
+msgid "The Query Cache"
+msgstr "El Caché de Consultas"
+
#. Tag: para
-#: performance.xml:952
#, fuzzy, no-c-format
msgid ""
-"You will need to enable statistics and, optionally, force Hibernate to keep "
-"the cache entries in a more readable format:"
+"Query result sets can also be cached. This is only useful for queries that "
+"are run frequently with the same parameters."
msgstr ""
-"Necesitarás habilitar las estadísticas y, opcionalmente, "
-"forzar a Hibernate para que guarde las entradas del caché en un "
-"formato más entendible por humanos:"
+"Los conjuntos de resultados de peticiones también pueden ponerse en caché. "
+"Esto sólamente es útil para consultas que se ejecutan frecuentemente con los "
+"mismos parámetros. Para utilizar el caché de consultas primero tiene que "
+"habilitarlo:"
-#. Tag: programlisting
-#: performance.xml:957
+#. Tag: title
#, no-c-format
+msgid "Enabling query caching"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
-#. Tag: title
-#: performance.xml:962
+#. Tag: para
#, no-c-format
-msgid "The Query Cache"
-msgstr "El Caché de Consultas"
+msgid "This setting creates two new cache regions:"
+msgstr ""
#. Tag: para
-#: performance.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
msgstr ""
-"Los conjuntos resultado de consultas también pueden tratarse en "
-"caché. Esto sólo es útil para consultas que se ejecutan "
-"frecuentemente con los mismos parámetros. Para usar el caché "
-"de consultas primero debes habilitarlo:"
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
-msgstr "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
+msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
msgstr ""
-"Esta configuración causa la creación de dos nuevas regiones de "
-"caché - una teniendo en caché conjuntos resultado de consulta "
-"(<literal>org.hibernate.cache.StandardQueryCache</literal>), el otro "
-"teniendo timestamps de las actualizaciones más recientes a tablas "
-"consultables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
-"Nota que el caché de consultas no pone en caché el estado de "
-"las entidades reales en el conjunto resultado; sólo tiene en "
-"caché valores indentificadores y resultados de tipo de valor. De modo "
-"que el caché de consultas siempre debe ser usado en conjunción "
-"con el caché de segundo nivel."
#. Tag: para
-#: performance.xml:981
#, fuzzy, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
-"La mayoría de consultas no se benefician del tratamiento en "
-"caché, de modo que por defecto las consultas no son tratadas en "
-"caché. Para habilitar el tratamiento en caché, llama a "
-"<literal>Query.setCacheable(true)</literal>. Esta llamada permite a la "
-"consulta buscar resultados existentes en caché o agregar sus "
-"resultados al caché cuando se ejecuta."
+"La mayorÃa de consultas no se benefician del caché, de modo que por defecto "
+"las consultas no se ponen en caché. Para habilitar el caché, llame a "
+"<literal>Query.setCacheable(true)</literal>. Esta llamada permite que la "
+"consulta busque resultados existentes en caché o que agregue sus resultados "
+"al caché cuando se ejecuta."
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "Caché de Consultas Soportado"
+
+#. Tag: para
+#, no-c-format
msgid ""
"If you require fine-grained control over query cache expiration policies, "
"you can specify a named cache region for a particular query by calling "
"<literal>Query.setCacheRegion()</literal>."
msgstr ""
-"Si requieres un control finamente granularizado sobre las políticas "
-"de expiración del caché de consultas, puedes especificar una "
-"región de caché con nombre para una consulta en particular "
-"llamando a <literal>Query.setCacheRegion()</literal>."
+"Si necesita un control muy detallado sobre las polÃticas de expiración del "
+"caché de consultas, puede especificar una región de caché con nombre para "
+"una consulta en particular llamando a <literal>Query.setCacheRegion()</"
+"literal>."
-#. Tag: programlisting
-#: performance.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-
#. Tag: para
-#: performance.xml:996
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
msgstr ""
-"Si la consulta debe forzar un refresco de si región del caché "
-"de consultas, debes llamar a <literal>Query.setCacheMode(CacheMode.REFRESH)</"
-"literal>. Esto es particularmente útil en casos donde los datos "
-"subyacentes pueden haber sido actualizados por medio de un proceso separado "
-"(es decir, no modificados a través de Hibernate) y permite a la "
-"aplicación refrescar selectivamente conjuntos resultado de consultas "
-"en particular. Esto es una alternativa más eficient al "
-"desahuciamiento de una región del caché de consultas ví"
-"a <literal>SessionFactory.evictQueries()</literal>."
+"Si la consulta debe forzar un refresco de su región del caché de consultas, "
+"usteddebe llamar a <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. "
+"Esto es particularmente útil en casos donde los datos subyacentes pueden "
+"haber sido actualizados por medio de un proceso separado (es decir, no "
+"modificados a través de Hibernate) y permite a la aplicación refrescar "
+"selectivamente conjuntos resultado de consultas en particular. Esto es una "
+"alternativa más eficient que que expulsión de una región del caché de "
+"consultas vÃa <literal>SessionFactory.evictQueries()</literal>."
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
-msgstr "Entendiendo el rendimiento de Colecciones"
+msgstr "Comprensión del rendimiento de Colecciones"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
"In this section we explore some more issues in relation to collections at "
"runtime."
msgstr ""
+"En las secciones anteriores hemos abordado las colecciones y sus "
+"aplicaciones. En esta sección exploramos algunos puntos en relación con las "
+"colecciones en tiempo de ejecución. "
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
-msgstr "Taxonomia"
+msgstr "TaxonomÃa"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
-msgstr "Hibernate define tres tipos básicos de colecciones:"
+msgstr "Hibernate define tres tipos básicos de colecciones:"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr "colecciones de valores"
#. Tag: para
-#: performance.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many associations"
-msgstr "asociaciones uno a muchos"
+msgstr "Asociaciones uno-a-muchos "
#. Tag: para
-#: performance.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
msgid "many-to-many associations"
-msgstr "asociaciones muchos a muchos"
+msgstr "Aociaciones muchos-a-muchos"
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -2220,35 +1740,30 @@
"primary key that is used by Hibernate to update or delete collection rows. "
"This suggests the following classification:"
msgstr ""
-"Esta clasificación distingue las varias tablas y relaciones de clave "
-"foránea pero no nos dice absolutamente todo lo que necesitamos saber "
-"sobre el modelo relacional. Para entender completamente la estructura "
-"relacional y las características de rendimiento, debemos considerar "
-"la estructura de la clave primaria que es usada por Hibernate para "
-"actualizar o borrar filas de colección. Esto sugiere la siguiente "
-"clasificación:"
+"Esta clasificación distingue las varias tablas y relaciones de clave foránea "
+"pero no nos dice absolutamente todo lo que necesitamos saber sobre el modelo "
+"relacional. Para entender completamente la estructura relacional y las "
+"caracterÃsticas de rendimiento, debemos considerar la estructura de la clave "
+"primaria que Hibernate utiliza para actualizar o borrar filas de colección. "
+"Esto sugiere la siguiente clasificación:"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr "colecciones indexadas"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
msgstr "conjuntos (sets)"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
msgstr "bolsas (bags)"
#. Tag: para
-#: performance.xml:1054
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
"consisting of the <literal><key></literal> and <literal><index></"
@@ -2256,16 +1771,15 @@
"The primary key can be efficiently indexed and a particular row can be "
"efficiently located when Hibernate tries to update or delete it."
msgstr ""
-"Todas las colecciones indexadas (mapas, listas, arrays) tienen una clave "
-"primaria consistente de las columnas <literal><key></literal> y "
+"Todas las colecciones indexadas (mapas, listas y arrays) tienen una clave "
+"principal que consiste de las columnas <literal><key></literal> e "
"<literal><index></literal>. En este caso las actualizaciones de "
-"colecciones son usualmente extremadamente eficientes. La clave primaria "
-"puede ser indexada fácilmente y una fila en particular puede ser "
-"localizada cuando Hibernate intenta actualizarla o borrarla."
+"colecciones son extremadamente eficientes. La clave principal puede ser "
+"indexada eficientemente y una fila en particular puede ser localizada cuando "
+"Hibernate intenta actualizarla o borrarla."
#. Tag: para
-#: performance.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
"element columns. This can be less efficient for some types of collection "
@@ -2277,21 +1791,19 @@
"<literal><set></literal>, you must declare all columns as <literal>not-"
"null=\"true\"</literal>."
msgstr ""
-"Los conjuntos (sets) tienen una clave primaria consistente en <literal><"
-"key></literal> y columnas de elemento. Esto puede ser menos eficiente "
-"para algunos tipos de elemento de colección, particularmente "
-"elementos compuestos o texto largo, o campos binarios. La base de datos "
-"puede no ser capaz de indexar una clave primaria compleja eficientemente. "
-"Por otra parte, para asociaciones uno a muchos o muchos a muchos, "
-"particularmente en el caso de identificadores sintéticos, es probable "
-"que sólo sea tan eficiente. (Nota al márgen: si quieres que "
-"<literal>SchemaExport</literal> realmente cree la clave primaria de un "
-"<literal><set></literal> por ti, debes declarar todas las columnas "
-"como <literal>not-null=\"true\"</literal>.)"
+"Los conjuntos tienen una clave principal que consiste de <literal><key>"
+"</literal> y columnas de elementos. Esto puede ser menos eficiente para "
+"algunos tipos de elementos de colección, particularmente elementos "
+"compuestos o texto largo o campos binarios ya que la base de datos puede no "
+"ser capaz de indexar una clave principal compleja eficientemente. Sin "
+"embargo, para asociaciones uno a muchos o muchos a muchos, particularmente "
+"en el caso de los identificadores sintéticos, es probable que sólo sea igual "
+"de eficiente. Si quiere que <literal>SchemaExport</literal> realmente cree "
+"la clave principal de un <literal><set></literal>, tiene que declarar "
+"todas las columnas como <literal>not-null=\"true\"</literal>."
#. Tag: para
-#: performance.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
"are efficient to update. In fact, they are the best case."
@@ -2301,8 +1813,7 @@
"mejor caso."
#. Tag: para
-#: performance.xml:1078
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
"they have no index column, no primary key can be defined. Hibernate has no "
@@ -2310,53 +1821,47 @@
"problem by completely removing in a single <literal>DELETE</literal> and "
"recreating the collection whenever it changes. This can be inefficient."
msgstr ""
-"Los bags son el peor caso. Ya que un bag permite valores de elementos "
-"duplicados y no tiene ninguna columna índice, no puede definirse "
-"ninguna clave primaria. Hibernate no tiene forma de distinguir entre filas "
-"duplicadas. Hibernate resuelve este problema quitando completamente (en un "
-"solo <literal>DELETE</literal>) y recreando la colección siempre que "
-"cambia. Esto podría ser muy ineficiente."
+"Los bags son el peor caso ya que un bag permite valores de elementos "
+"duplicados y no tiene ninguna columna Ãndice, no puede definirse ninguna "
+"clave principal. Hibernate no tiene forma de distinguir entre filas "
+"duplicadas. Hibernate resuelve este problema quitando por completo con un "
+"sólo <literal>DELETE</literal> y recreando la colección siempre que cambia. "
+"Esto puede ser muy ineficiente."
#. Tag: para
-#: performance.xml:1086
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
"primary key of the database table. Even in this case, the above "
"classification is still useful. It reflects how Hibernate \"locates\" "
"individual rows of the collection."
msgstr ""
-"Nota que para una asociación uno-a-muchos, la \"clave primaria\" "
-"puede no ser la clave primaria física de la tabla de base de datos; "
-"pero incluso en este caso, la clasificación anterior es útil "
-"todavía. (Aún refleja cómo Hibernate \"localiza\" filas "
-"individuales de la colección.)"
+"Para una asociación uno-a-muchos, la \"clave principal\" puede no ser la "
+"clave principal fÃsica de la tabla de la base de datos. Incluso en este "
+"caso, la clasificación anterior es útil todavÃa. Refleja cómo Hibernate "
+"\"localiza\" filas individuales de la colección."
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
msgstr ""
-"Las listas, mapas, idbags y conjuntos son las colecciones más "
-"eficientes de actualizar"
+"Las listas, mapas, idbags y conjuntos son las colecciones más eficientes de "
+"actualizar"
#. Tag: para
-#: performance.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
"sets allow the most efficient operation in terms of adding, removing and "
"updating elements."
msgstr ""
-"Desde la discusión anterior, debe quedar claro que las colecciones "
-"indexadas y (usualmente) los conjuntos permiten la operación má"
-"s eficiente en términos de añadir, quitar y actualizar "
-"elementos."
+"De la discusión anterior, debe quedar claro que las colecciones indexadas y "
+"los conjuntos permiten una operación más eficiente en términos de agregar, "
+"quitar y actualizar elementos."
#. Tag: para
-#: performance.xml:1104
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
"sets for many-to-many associations or collections of values. Because of the "
@@ -2366,18 +1871,17 @@
"literal> of individual rows. Once again, this consideration does not apply "
"to one-to-many associations."
msgstr ""
-"Hay, discutiblemente, una ventaja más que las colecciones indexadas "
-"tienen sobre otros conjuntos para las asociaciones muchos a muchos o "
-"colecciones de valores. Debido a la estructura de un <literal>Set</literal>, "
-"Hibernate ni siquiera actualiza una fila con <literal>UPDATE</literal> "
-"cuando se \"cambia\" un elemento. Los cambios a un <literal>Set</literal> "
-"siempre funcionan por medio de <literal>INSERT</literal> y <literal>DELETE</"
-"literal> (de filas individuales). Una vez más, esta "
-"consideración no se aplica a las asociaciones uno a muchos."
+"Discutiblemente, hay una ventaja más de las colecciones indexadas sobre "
+"otros conjuntos para las asociaciones muchos a muchos o colecciones de "
+"valores. Debido a la estructura de un <literal>Set</literal>, Hibernate ni "
+"siquiera actualiza una fila con <literal>UPDATE</literal> cuando se \"cambia"
+"\" un elemento. Los cambios a un <literal>Set</literal> siempre funcionan "
+"por medio de <literal>INSERT</literal> y <literal>DELETE</literal> de filas "
+"individuales. Una vez más, esta consideración no se aplica a las "
+"asociaciones uno a muchos."
#. Tag: para
-#: performance.xml:1113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
"maps and idbags are the most performant (non-inverse) collection types, with "
@@ -2385,17 +1889,15 @@
"collection in Hibernate applications. This is because the \"set\" semantics "
"are most natural in the relational model."
msgstr ""
-"Después de observar que los arrays no pueden ser perezosos, "
-"podríamos concluir que las listas, mapas e idbags son los tipos "
-"más eficientes de colecciones (no inversas), con los conjuntos (sets) "
-"no muy por detrás. Se espera que los sets sean el tipo más "
-"común de colección en las aplicaciones de Hibernate. Esto es "
-"debido a que la semántica de los sets es la más natural en el "
-"modelo relacional."
+"Después de observar que los arrays no pueden ser perezosos, podrÃamos "
+"concluir que las listas, mapas e idbags son los tipos más eficientes de "
+"colecciones (no inversas), con los conjuntos (sets) no muy atrás. Se espera "
+"que los sets sean el tipo más común de colección en las aplicaciones de "
+"Hibernate. Esto se debe a que la semántica de los sets es la más natural en "
+"el modelo relacional."
#. Tag: para
-#: performance.xml:1121
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
"fact one-to-many associations with <literal>inverse=\"true\"</literal>. For "
@@ -2403,24 +1905,20 @@
"association, and so considerations of collection update performance simply "
"do not apply."
msgstr ""
-"Sin embargo, en modelos de dominio de Hibernate bien dieñados, "
-"usualmente vemos que la mayoría de las colecciones son de hecho "
-"asociaciones uno-a-muchos con <literal>inverse=\"true\"</literal>. Para "
-"estas asociaciones, la actualización es manejada por el extremo "
-"muchos-a-uno de la asociación, y las consideraciones de este tipo "
-"sobre el rendimiento de actualización de colecciones simplemente no "
-"se aplican."
+"Sin embargo, en modelos de dominio de Hibernate bien dieñados, usualmente "
+"vemos que la mayorÃa de las colecciones son de hecho asociaciones uno-a-"
+"muchos con <literal>inverse=\"true\"</literal>. Para estas asociaciones, la "
+"actualización es manejada por el extremo muchos-a-uno de la asociación, y "
+"las consideraciones de este tipo sobre el rendimiento de la actualización de "
+"las colecciones simplemente no se aplican."
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
-msgstr ""
-"Los Bags y las listas son las colecciones inversas más eficientes"
+msgstr "Los Bags y las listas son las colecciones inversas más eficientes"
#. Tag: para
-#: performance.xml:1133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
"more performant than sets. For a collection with <literal>inverse=\"true\"</"
@@ -2431,143 +1929,109 @@
"literal> must always return true for a bag or <literal>List</literal>. This "
"can make the following common code much faster:"
msgstr ""
-"Justo antes que tires a la zanja los bags para siempre, hay un caso en "
-"particular en el que los bags son muchos más eficientes que los "
-"conjuntos. Para una colección con <literal>inverse=\"true\"</literal> "
-"(el idioma estándar de relaciones uno-a-muchos bidireccionales, por "
-"ejemplo) ¡podemos añadir elementos a un bag o lista sin "
-"necesidad de inicializar (fetch) los elementos del bag! Esto se debe a que "
-"<literal>Collection.add()</literal> o <literal>Collection.addAll()</literal> "
-"siempre deben devolver true para un bag o <literal>List</literal> (no como "
-"un <literal>Set</literal>). Esto puede hacer el siguiente código "
-"común mucho más rápido."
+"Hay un caso en particular en el que los bags y también las listas son mucho "
+"más eficientes que los conjuntos. Para una colección con <literal>inverse="
+"\"true\"</literal>, por ejemplo, el idioma estándar de relaciones uno-a-"
+"muchos bidireccionales, podemos agregar elementos a un bag o lista sin "
+"necesidad de inicializar (recuperar) los elementos del bag. Esto se debe a "
+"que, a manera opuesta de <literal>Collection.add()</literal> o "
+"<literal>Collection.addAll()</literal> siempre deben retornar verdadero para "
+"un bag o <literal>List</literal> (no como un <literal>Set</literal>). Esto "
+"puede hacer el siguiente código común mucho más rápido:"
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-" Child c = new Child();\n"
-" c.setParent(p);\n"
-" p.getChildren().add(c); //no need to fetch the collection!\n"
-" sess.flush();]]>"
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
-msgstr "Borrado de un solo tiro"
+msgstr "Borrado de un sólo tiro"
#. Tag: para
-#: performance.xml:1150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
"inefficient. Hibernate knows not to do that in the case of an newly-empty "
"collection (if you called <literal>list.clear()</literal>, for example). In "
"this case, Hibernate will issue a single <literal>DELETE</literal>."
msgstr ""
-"Ocasionalmente, borrar los elementos de una colección uno a uno puede "
-"ser extremadamente ineficiente. Hibernate no es completamente estú"
-"pido, de modo que sabe no hacer eso, en el caso de una colección "
-"nueva-vacía (si has llamado a <literal>list.clear()</literal>, por "
-"ejemplo). En este caso, Hibernate publicará una sola <literal>DELETE</"
-"literal>, ¡y listo!"
+"Borrar los elementos de una colección uno por uno a veces puede ser "
+"extremadamente ineficiente. Hibernate sabe que no debe hacer eso, en el caso "
+"de una colección nueva-vacÃa (si ha llamado a <literal>list.clear()</"
+"literal>, por ejemplo). En este caso, Hibernate publicará un sólo "
+"<literal>DELETE</literal>."
#. Tag: para
-#: performance.xml:1157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
"statement and two <literal>DELETE</literal> statements, unless the "
"collection is a bag. This is certainly desirable."
msgstr ""
-"Supón que añadimos un solo elemento a una colección de "
-"tamaño veinte y luego quitamos dos elementos. Hibernate "
-"publicará una sentencia <literal>INSERT</literal> y dos sentencias "
-"<literal>DELETE</literal> (a menos que la colección sea un bag). Esto "
-"es ciertamente deseable."
+"Suponga que agrega un solo elemento a una colección de tamaño veinte y luego "
+"quitamos dos elementos. Hibernate publicará una declaración <literal>INSERT</"
+"literal> y dos declaraciones <literal>DELETE</literal> a menos que la "
+"colección sea un bag. Esto ciertamente es deseable."
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
"thee new elements. There are two possible ways to proceed"
msgstr ""
-"Sin embargo, supón que quitamos dieciocho elementos, dejando dos y "
-"luego añadimos tres nuevos elementos. Hay dos formas posibles de "
-"proceder"
+"Sin embargo, supónga que quitamos dieciocho elementos, dejando dos y luego "
+"añadimos tres elementos nuevos. Hay dos formas posibles de proceder"
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
msgstr "borrar dieciocho filas una a una y luego insertar tres filas"
#. Tag: para
-#: performance.xml:1173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
"all five current elements one by one"
msgstr ""
-"quitar toda la colección (en un solo <literal>DELETE</literal> de "
-"SQL) e insertar todos los cinco elementos actuales (uno a uno)"
+"quitar toda la colección en un sólo <literal>DELETE</literal> de SQL e "
+"insertar todos los cinco elementos actuales uno por uno"
#. Tag: para
-#: performance.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
"probably be undesirable for Hibernate to be that intuitive as such behavior "
"might confuse database triggers, etc."
msgstr ""
-"Hibernate no es lo suficientemente inteligente para saber que la segunda "
-"opción es probablemente más rápida en este caso. (Y que "
-"sería probablemente indeseable para Hibernate ser tan inteligente; "
-"este comportamiento podría confundir a disparadores de base de datos, "
-"etc.)"
+"Hibernate no sabe que la segunda opción es probablemente la más rápida. "
+"Probablemente no serÃa deseable que Hibernate fuese tan intuitivo ya que tal "
+"comportamiento podrÃa confundir a disparadores de la base de datos, etc."
#. Tag: para
-#: performance.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
"time by discarding (i.e. dereferencing) the original collection and "
"returning a newly instantiated collection with all the current elements."
msgstr ""
-"Afortunadamente, puedes forzar este comportamiento (es decir, la segunda "
-"estrategia) en cualquier momento descartando (es decir, desreferenciando) la "
-"colección original y devolviendo una colección nuevamente "
-"instanciada con todos los elementos actuales. Esto puede ser muy útil "
-"y potente de vez en cuando."
+"Afortunadamente, puede forzar este comportamiento (por ejemplo, la segunda "
+"estrategia) en cualquier momento descartando (por ejemplo, desreferenciando) "
+"la colección original y retornando una colección nuevamente instanciada con "
+"todos los elementos actuales."
#. Tag: para
-#: performance.xml:1190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
"\"</literal>."
msgstr ""
-"Por supuesto, el borrado-de-un-solo-tiro no se aplica a colecciones mapeadas "
+"El borrado-de-un-sólo-tiro no se aplica a las colecciones mapeadas "
"<literal>inverse=\"true\"</literal>."
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
-msgstr "Monitoreando el rendimiento"
+msgstr "Control del rendimiento"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2575,191 +2039,128 @@
"operations. Statistics in Hibernate are available per "
"<literal>SessionFactory</literal>."
msgstr ""
-"La optimización no es de mucho uso sin el monitoreo y el acceso a "
-"números de rendimiento. Hibernate provee un rango completo de figuras "
-"sobre sus operaciones internas. Las estadísticas en Hibernate "
-"están disponibles por <literal>SessionFactory</literal>."
+"La optimización no es de mucho uso sin el monitoreo y el acceso a números de "
+"rendimiento. Hibernate brinda un rango completo de números sobre sus "
+"operaciones internas. Las estadÃsticas en Hibernate están disponibles por "
+"<literal>SessionFactory</literal>."
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
-msgstr "Monitoreando una SessionFactory"
+msgstr "Control de una SessionFactory"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
"first option is to call <literal>sessionFactory.getStatistics()</literal> "
"and read or display the <literal>Statistics</literal> yourself."
msgstr ""
-"Puedes acceder a las métricas de <literal>SessionFactory</literal> de "
-"dos formas. Tu primera opción es llamar a <literal>sessionFactory."
-"getStatistics()</literal> y leer o mostrar por pantalla la "
-"<literal>Statistics</literal> por ti mismo."
+"Puede acceder a las métricas de <literal>SessionFactory</literal> de dos "
+"formas. Su primera opción es llamar a <literal>sessionFactory.getStatistics()"
+"</literal> y leer o mostrar por pantalla la <literal>Statistics</literal> "
+"por sà mismo."
#. Tag: para
-#: performance.xml:1216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
"<literal>StatisticsService</literal> MBean. You can enable a single MBean "
"for all your <literal>SessionFactory</literal> or one per factory. See the "
"following code for minimalistic configuration examples:"
msgstr ""
-"Hibernate puede también usar JMX para publicar las métricas si "
-"habilitas el MBean <literal>StatisticsService</literal>. Puede habilitar un "
-"solo MBean para todas tus <literal>SessionFactory</literal> o una por "
-"fábrica. Mira el siguiente código para ejemplos de "
-"configuración minimalistas:"
+"Hibernate también puede utilizar JMX para publicar las métricas si habilita "
+"el MBean <literal>StatisticsService</literal>. Puede habilitar un sólo MBean "
+"para todas sus <literal>SessionFactory</literal> o una por fábrica. Véa el "
+"siguiente código para ver ejemplos de configuración minimalistas:"
-#. Tag: programlisting
-#: performance.xml:1223
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-
-#. Tag: para
-#: performance.xml:1233
-#, fuzzy, no-c-format
-msgid ""
"You can activate and deactivate the monitoring for a "
"<literal>SessionFactory</literal>:"
msgstr ""
-"Puedes (des)activar el monitoreo de una <literal>SessionFactory</literal>"
+"Puede activar y desactivar el monitoreo de una <literal>SessionFactory</"
+"literal>"
#. Tag: para
-#: performance.xml:1238
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
"to <literal>false</literal>"
msgstr ""
-"en tiempo de configuración, establece <literal>hibernate."
-"generate_statistics</literal> a <literal>false</literal>"
+"en tiempo de configuración, establezca <literal>hibernate."
+"generate_statistics</literal> como <literal>false</literal>"
#. Tag: para
-#: performance.xml:1245
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
"or <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
msgstr ""
-"en tiempo de ejecución: <literal>sf.getStatistics()."
-"setStatisticsEnabled(true)</literal> o <literal>hibernateStatsBean."
-"setStatisticsEnabled(true)</literal>"
+"en tiempo de ejecución: <literal>sf.getStatistics().setStatisticsEnabled"
+"(true)</literal> o <literal>hibernateStatsBean.setStatisticsEnabled(true)</"
+"literal>"
#. Tag: para
-#: performance.xml:1252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
"literal> method. A summary can be sent to a logger (info level) using the "
"<literal>logSummary()</literal> method."
msgstr ""
-"Las estadísticas pueden ser reajustadas programáticamente "
-"usando el método <literal>clear()</literal>. Puede enviarse un "
-"resumen a un logger (nivel info) usando el método <literal>logSummary"
-"()</literal>."
+"Las estadÃsticas pueden ser reajustadas programáticamente utilizando el "
+"método <literal>clear()</literal>. Puede enviarse un resumen a un registro "
+"(a nivel de información) utilizando el método <literal>logSummary()</"
+"literal>. "
#. Tag: title
-#: performance.xml:1261
#, no-c-format
msgid "Metrics"
-msgstr "Métricas"
+msgstr "Métricas"
#. Tag: para
-#: performance.xml:1263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
"specialized information that is only relevant in certain scenarios. All "
"available counters are described in the <literal>Statistics</literal> "
"interface API, in three categories:"
msgstr ""
-"Hibernate provee un número de métricas, desde informació"
-"n muy básica a la especializada sólo relevante en ciertos "
-"escenarios. Todos los contadores disponibles se describen en la API de la "
-"interface <literal>Statistics</literal>, en tres categorías:"
+"Hibernate proporciona un número de métricas, desde información muy básica "
+"hasta la más especializada sólamente relevante en ciertos escenarios. Todos "
+"los contadores disponibles se describen en la API de la interfaz "
+"<literal>Statistics</literal>, en tres categorÃas:"
#. Tag: para
-#: performance.xml:1270
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
"number of open sessions, retrieved JDBC connections, etc."
msgstr ""
-"Métricas relacionadas al uso general de <literal>Session</literal> "
-"usage, tales como número de sesiones abiertas, conexiones JDBC "
-"recuperadas, etc,"
+"Métricas relacionadas al uso general de <literal>Session</literal> usage, "
+"tales como número de sesiones abiertas, conexiones JDBC recuperadas, etc,"
#. Tag: para
-#: performance.xml:1276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
"(aka global metrics)."
msgstr ""
-"Métricas relacionadas a las entidades, colecciones, consultas, y "
-"cachés como un todo. (también conocidas como métricas "
-"globales)."
+"Métricas relacionadas con las entidades, colecciones, consultas y cachés "
+"como un todo (también conocidas como métricas globales)."
#. Tag: para
-#: performance.xml:1282
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
"region."
msgstr ""
-"Métricas detalladas relacionadas a una entidad, colección, "
-"consulta o región de caché en particular."
+"Métricas detalladas relacionadas con una entidad, colección, consulta o "
+"región de caché en particular."
#. Tag: para
-#: performance.xml:1289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
"collections and queries, and the average time a query needs. Be aware that "
@@ -2767,17 +2168,14 @@
"tied to the JVM precision and on some platforms this might only be accurate "
"to 10 seconds."
msgstr ""
-"Por ejemplo, puedes comprobar el acceso, pérdida, y radio de "
-"colocación de entidades, colecciones y consultas en el caché, "
-"y el tiempo promedio que necesita una consulta. Ten en cuenta que el "
-"número de milisegundos está sujeto a aproximación en "
-"Java. Hibernate está pegado a la precisión de la JVM, en "
-"algunas plataformas esto podría incuso ser tener sólo una "
-"exactitud de 10 segundos."
+"Por ejemplo, puede comprobar el acceso, pérdida y radio de colecciones de "
+"entidades y consultas en el caché, y el tiempo promedio que necesita una "
+"consulta. Tenga en cuenta que el número de milisegundos está sujeto a una "
+"aproximación en Java. Hibernate está vinculado a la precisión de la MVJ, en "
+"algunas plataformas esto podrÃa tener incluso una exactitud de 10 segundos."
#. Tag: para
-#: performance.xml:1296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
"particular entity, collection, cache region, etc.). You can access the "
@@ -2789,60 +2187,20 @@
"literal> API Javadoc for more information. The following code is a simple "
"example:"
msgstr ""
-"Se usan getters simples para acceder a las métricas globales (es "
-"decir, no pegadas a una entidad, colección, región de "
-"caché, etc, en particular). Puedes acceder a las métricas de "
-"una entidad, colección, región de caché en particular a "
-"través de su nombre, y a través de su representación "
-"HQL o SQL para las consultas. Por favor refiérete al Javadoc de la "
-"API de <literal>Statistics</literal>, <literal>EntityStatistics</literal>, "
+"Se usan getters simples para acceder a la métrica global (por ejemplo, no "
+"vinculadas en particular a una entidad, colección, región de caché, etc). "
+"Puede acceder a las métricas de una entidad, colección, región de caché en "
+"particular a través de su nombre y a través de su representación HQL o SQL "
+"para las consultas. Por favor refiérase al Javadoc de la API de "
+"<literal>Statistics</literal>, <literal>EntityStatistics</literal>, "
"<literal>CollectionStatistics</literal>, "
"<literal>SecondLevelCacheStatistics</literal>, y <literal>QueryStatistics</"
-"literal> para más información. El siguiente código "
-"muestra un ejemplo sencillo:"
+"literal> para obtener más información. El siguiente código es un ejemplo "
+"sencillo:"
-#. Tag: programlisting
-#: performance.xml:1306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-
-#. Tag: para
-#: performance.xml:1308
-#, fuzzy, no-c-format
-msgid ""
"You can work on all entities, collections, queries and region caches, by "
"retrieving the list of names of entities, collections, queries and region "
"caches using the following methods: <literal>getQueries()</literal>, "
@@ -2850,51 +2208,28 @@
"literal>, and <literal>getSecondLevelCacheRegionNames()</literal>."
msgstr ""
"Para trabajar sobre todas las entidades, colecciones, consultas y regiones "
-"de cachés, puedes recuperar la lista de nombres de entidades, "
-"colecciones, consultas y regiones de cachés con los siguientes "
-"métodos: <literal>getQueries()</literal>, <literal>getEntityNames()</"
-"literal>, <literal>getCollectionRoleNames()</literal>, y "
+"de cachés, recuperando la lista de nombres de entidades, colecciones, "
+"consultas y regiones de cachés con los siguientes métodos: "
+"<literal>getQueries()</literal>, <literal>getEntityNames()</literal>, "
+"<literal>getCollectionRoleNames()</literal> y "
"<literal>getSecondLevelCacheRegionNames()</literal>."
#~ msgid ""
-#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
-#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
-#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
-#~ "<literal>Cat</literal> and <literal>DomesticCat</literal> may be returned "
-#~ "by <literal>load()</literal> or <literal>iterate()</literal>. (Note that "
-#~ "<literal>list()</literal> does not usually return proxies.)"
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
#~ msgstr ""
-#~ "donde <literal>CatImpl</literal> implementa la interface <literal>Cat</"
-#~ "literal> y <literal>DomesticCatImpl</literal> implementa la interface "
-#~ "<literal>DomesticCat</literal>. Entonces <literal>load()</literal> o "
-#~ "<literal>iterate()</literal> pueden devolver instancias de <literal>Cat</"
-#~ "literal> y <literal>DomesticCat</literal>. (Nota que <literal>list()</"
-#~ "literal> usualmente no devuelve proxies.)"
-
-#~ msgid ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
-#~ msgstr ""
-#~ "Ya hemos llevado un buen tiempo hablando sobre colecciones. En esta "
-#~ "sección resaltaremos un par de temas más sobre cómo "
-#~ "las colecciones se comportan en tiempo de ejecución."
-
-#~ msgid ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
-#~ msgstr ""
-#~ "POR HACER: Esto no tiene sentido: En el primer caso, recuperamos y usamos "
-#~ "el MBean directamente. En el segundo, debemos proporcionar el nombre JNDI "
-#~ "en el que se guarda la fábrica de sesiones antes de usarlo. Usa "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#~ "Esta configuración crea dos nuevas regiones de caché: una que tiene en "
+#~ "caché los conjuntos resultados de consultas (<literal>org.hibernate.cache."
+#~ "StandardQueryCache</literal>), el otro tiene los sellos de fecha de las "
+#~ "actualizaciones más recientes a las tablas consultables (<literal>org."
+#~ "hibernate.cache.UpdateTimestampsCache</literal>). Note que el caché de "
+#~ "consultas no pone en caché el estado de las entidades reales en el "
+#~ "conjunto que resulta; sólo tiene en caché los valores indentificadores y "
+#~ "los resultados de tipo de valor. De modo que el caché de consultas "
+#~ "siempre debe ser utilizado en conjunto con el caché de segundo nivel."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,21 +1,35 @@
-#, fuzzy
+# translation of persistent_classes.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: persistent_classes\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 06:20+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
-msgstr "Clases Persistentes"
+msgstr "Clases persistentes"
#. Tag: para
-#: persistent_classes.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
"of the business problem (e.g. Customer and Order in an E-commerce "
@@ -23,15 +37,14 @@
"in the persistent state. For example, an instance can instead be transient "
"or detached."
msgstr ""
-"Clases presistentes son clases en una aplicación que implementan las "
-"entidades del problema de negocio (por ejemplo, Customer y Order en una "
-"aplicación de comercio electrónico). No todas las instancias "
-"de una clase persistente se considera que estén en el estado "
-"persistente, una instancia puede en cambio ser transitoria o estar separada."
+"Las clases presistentes son clases en una aplicación que implementan las "
+"entidades del problema empresarial (por ejemplo, Customer y Order en una "
+"aplicación de comercio electrónico). No se considera que todas las "
+"instancias de una clase persistente estén en estado persistente. Por "
+"ejemplo, una instancia puede ser transitoria o separada."
#. Tag: para
-#: persistent_classes.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
"as the Plain Old Java Object (POJO) programming model. However, none of "
@@ -39,209 +52,43 @@
"about the nature of your persistent objects. You can express a domain model "
"in other ways (using trees of <literal>Map</literal> instances, for example)."
msgstr ""
-"Hibernate funciona mejor si las clases siguen algunas simples reglas, "
-"también conocidas como el modelo de programación de Viejas "
-"Clases Java Planas (Plain Old Java Object o POJO). Sin embargo, ninguna de "
-"estas reglas son requerimientos rígidos. En cambio, Hibernate3 asume "
-"muy poco acerca de la naturaleza de tus objetos persistentes. Puedes "
-"expresar un modelo de dominio en otras formas: usando árboles de "
-"instancias de <literal>Map</literal>, por ejemplo."
+"Hibernate funciona mejor si estas clases siguen algunas reglas simples, "
+"también conocidas como el modelo de programación POJO (Plain Old Java "
+"Object). Sin embargo, ninguna de estas reglas son requerimientos rÃgidos. De "
+"hecho, Hibernate3 asume muy poco acerca de la naturaleza de sus objetos "
+"persistentes. Puede expresar un modelo de dominio en otras formas (por "
+"ejemplo, utilizando árboles de instancias de <literal>Map</literal>)."
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
-msgstr "Un ejemplo simple de POJO"
+msgstr "Ejemplo simple de POJO"
#. Tag: para
-#: persistent_classes.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
"example:"
msgstr ""
-"La mayoría de aplicaciones Java requieren una clase representando "
-"felinos."
+"La mayorÃa de aplicaciones Java requieren una clase persistente que "
+"represente a los felinos. Por ejemplo:"
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
"following sections."
msgstr ""
+"En las siguientes secciones vamos a explorar en mayor detalle las cuatro "
+"reglas principales de las clases persistentes. "
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
-msgstr "Implementa un constructor sin argumentos"
+msgstr "Implemente un constructor sin argumentos"
#. Tag: para
-#: persistent_classes.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
"must have a default constructor (which can be non-public) so that Hibernate "
@@ -251,22 +98,19 @@
"Hibernate."
msgstr ""
"<literal>Cat</literal> tiene un contructor sin argumentos. Todas las clases "
-"persistentes deben tener un constructor por defecto (que puede no ser "
-"público) de modo que Hibernate pueda instanciarlas usando "
-"<literal>Constructor.newInstance()</literal>. Recomendamos fuertemente tener "
-"un constructor por defecto con al menos visibilidad de <emphasis>package</"
-"emphasis> para la generación de proxies en tiempo de ejecución "
-"en Hibernate."
+"persistentes deben tener un constructor predeterminado (el cual puede ser no-"
+"público) de modo que Hibernate pueda instanciarlas usando "
+"<literal>Constructor.newInstance()</literal>. Le recomendamos contar con un "
+"constructor por defecto con al menos una visibilidad de <emphasis>paquete</"
+"emphasis> para la generación de proxies en tiempo de ejecución en Hibernate."
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
-msgstr "Provee una propiedad identificadora (opcional)"
+msgstr "Proporcione una propiedad identificadora (opcional)"
#. Tag: para
-#: persistent_classes.xml:75
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
"property maps to the primary key column of a database table. The property "
@@ -277,105 +121,94 @@
"types (see the section on composite identifiers later in the chapter.)"
msgstr ""
"<literal>Cat</literal> tiene una propiedad llamada <literal>id</literal>. "
-"Esta propiedad mapea a la columna clave primaria de la tabla de base de "
-"datos. La propiedad podría llamarse cualquierCosa, y su tipo "
-"podría haber sido cualquier tipo primitivo, cualquier tipo de "
-"\"envoltura\" primitivo, <literal>java.lang.String</literal> o <literal>java."
-"util.Date</literal>. (Si tu tabla de base de datos heredada tiene claves "
-"compuestas, puedes incluso usar una clase definida por el usuario con "
-"propiedades de estos tipos, ver la sección sobre identificadores "
-"compuestos luego.)"
+"Esta propiedad mapea a la columna de la llave principal de la tabla de la "
+"base de datos. La propiedad podrÃa llamarse de cualquier manera y su tipo "
+"podrÃa haber sido cualquier tipo primitivo, cualquier tipo de \"wrapper\" "
+"primitivo, <literal>java.lang.String</literal> o <literal>java.util.Date</"
+"literal>. Si su tabla de base de datos heredada tiene claves compuestas, "
+"puede utilizar una clase definida por el usuario con propiedades de estos "
+"tipos (vea la sección sobre identificadores compuestos más adelante en este "
+"capÃtulo)."
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
"Hibernate keep track of object identifiers internally. We do not recommend "
"this, however."
msgstr ""
-"La propiedad identificadora es estrictamente opcional. Puedes olvidarla y "
+"La propiedad identificadora es estrictamente opcional. Puede olvidarla y "
"dejar que Hibernate siga internamente la pista de los identificadores del "
-"objeto. Sin embargo, no recomendamos esto."
+"objeto. Sin embargo, no recomendamos que esto suceda."
#. Tag: para
-#: persistent_classes.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
"identifier property:"
msgstr ""
-"De hecho, alguna funcionalidad está disponible sólo para "
-"clases que declaran una propiedad identificadora:"
+"De hecho, algunas funcionalidades se encuentran disponibles sólamente para "
+"clases que declaran una propiedad identificadora: "
#. Tag: para
-#: persistent_classes.xml:96
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-"Reasociación transitiva de objetos separados (actualizaciones o "
-"fusiones en cascada) - ver"
+"Reasociación transitiva de objetos separados (actualizaciones o fusiones en "
+"cascada) - consulte <xref linkend=\"objectstate-transitive\" />"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
-msgstr "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
+msgstr "<literal>Session.saveOrUpdate()</literal>"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
-msgstr "Session.merge()"
-
#. Tag: para
-#: persistent_classes.xml:113
#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
+msgstr "<literal>Session.merge()</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
"persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
-"Recomendamos que declares propiedades identificadoras nombradas-"
-"consistentemente en clases persistentes. Mas aún, recomendamos que "
-"uses un tipo nulable (es decir, no primitivo)."
+"Le recomendamos que declare propiedades identificadoras nombradas-"
+"consistentemente en clases persistentes. y que utilice un tipo nulable (por "
+"ejemplo, no primitivo)."
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
-msgstr "Prefiere las clases no finales (opcional)"
+msgstr "Prefiera las clases no finales (opcional)"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
"the persistent class being either non-final, or the implementation of an "
"interface that declares all public methods."
msgstr ""
-"Un aspecto central de Hibernate, <emphasis>proxies</emphasis>, depende de "
-"que las clases persistentes sean ya no finales, o sean ya la "
-"implementación de una interface que declare todos los métodos "
-"públicos."
+"Un aspecto central de Hibernate, los <emphasis>proxies</emphasis>, dependen "
+"de que las clases persistentes sean no finales o de la implementación de una "
+"interfaz que declare todos los métodos públicos."
#. Tag: para
-#: persistent_classes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
"interface with Hibernate. You will not, however, be able to use proxies for "
"lazy association fetching which will ultimately limit your options for "
"performance tuning."
msgstr ""
-"Puedes persistir con Hibernate clases <literal>final</literal> que no "
-"implementen una interface, pero no serás capaz de usar proxies para "
-"recuperación perezosa de asociaciones, lo que limitará tus "
-"opciones para afinar el rendimiento."
+"Con Hibernate puede persistir las clases <literal>final</literal>es que no "
+"implementen una interfaz. Sin embargo, no podrá utilizar proxies para "
+"recuperación perezosa de asociaciones, lo cual limitará sus opciones para "
+"afinar el rendimiento."
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -383,22 +216,20 @@
"final</literal> method, you must explicitly disable proxying by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"Debes también evitar declarar métodos <literal>public final</"
-"literal> en clases non-final. Si quieres usar una clase con un método "
-"<literal>public final</literal>, debes deshabilitar explícitamente el "
-"uso de proxies estableciendo <literal>lazy=\"false\"</literal>."
+"También debe evitar el declarar métodos <literal>public final</literal> en "
+"las clases no-finales. Si quiere utilizar una clase con un método "
+"<literal>public final</literal>, debe deshabilitar explÃcitamente el uso de "
+"proxies estableciendo <literal>lazy=\"false\"</literal>."
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
msgstr ""
-"Declara métodos de acceso y modificación para los campos "
-"persistentes (opcional)"
+"Declare métodos de acceso y de modificación para los campos persistentes "
+"(opcional)"
#. Tag: para
-#: persistent_classes.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
"fields. Many other ORM tools directly persist instance variables. It is "
@@ -408,75 +239,42 @@
"literal>, <literal>isFoo</literal> and <literal>setFoo</literal>. If "
"required, you can switch to direct field access for particular properties."
msgstr ""
-"<literal>Cat</literal> declara métodos de acceso para todos sus "
-"campos persistente. Muchas otras herramientas ORM persisten directamente "
-"variables de instancia. Creemos que es mejor proveer una indirección "
-"entre el esquema relacional y las estructuras internas de la clase. Por "
-"defecto, Hibernate persiste propiedades del estilo JavaBeans, y reconoce "
-"nombres de método de la forma <literal>getFoo</literal>, "
-"<literal>isFoo</literal> y <literal>setFoo</literal>. Puedes cambiar a "
-"acceso directo a campos para propiedades en particular, de ser necesario."
+"<literal>Cat</literal> declara métodos de acceso para todos sus campos "
+"persistentes. Muchas otras herramientas ORM persisten directamente variables "
+"de instancia. Es mejor proporcionar una indirección entre el esquema "
+"relacional y las estructuras de datos internos de la clase. Por defecto, "
+"Hibernate persiste las propiedades del estilo JavaBeans, y reconoce los "
+"nombres de método de la forma <literal>getFoo</literal>, <literal>isFoo</"
+"literal> y <literal>setFoo</literal>. De ser necesario, puede cambiarse al "
+"acceso directo a campos para propiedades especÃficas."
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
"persist a property with a default, <literal>protected</literal> or "
"<literal>private</literal> get / set pair."
msgstr ""
-"Las propiedades <emphasis>no</emphasis> necesitan ser declaradas pú"
-"blicas. Hibernate puede persistir una propiedad con un par get / set "
+"<emphasis>No</emphasis> es necesario declarar públicas las propiedades. "
+"Hibernate puede persistir una propiedad con un par get / set "
"<literal>protected</literal> o <literal>private</literal>."
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
-msgstr "Implementando herencia"
+msgstr "Implementación de herencia"
#. Tag: para
-#: persistent_classes.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
"identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
-"Una subclase puede a su vez observar la primera y segunda regla. Hereda su "
-"propiedad identificadora de la superclase, <literal>Cat</literal>."
+"Una subclase también tiene que cumplir con la primera y la segunda regla. "
+"Hereda su propiedad identificadora de la superclase <literal>Cat</literal>. "
+"Por ejemplo:"
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
@@ -484,36 +282,32 @@
"Implementando <literal>equals()</literal> y <literal>hashCode()</literal>"
#. Tag: para
-#: persistent_classes.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
"</literal> methods if you:"
msgstr ""
-"Tienes que sobrescribir los métodos <literal>equals()</literal> y "
-"<literal>hashCode()</literal> si :"
+"Tiene que sobrescribir los métodos <literal>equals()</literal> y "
+"<literal>hashCode()</literal> si:"
#. Tag: para
-#: persistent_classes.xml:181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
"(the recommended way to represent many-valued associations); <emphasis>and</"
"emphasis>"
msgstr ""
-"piensas poner instancias de clases persistentes en un <literal>Set</literal> "
-"(la forma recomendada de representar asociaciones multivaluadas) "
+"piensa poner instancias de clases persistentes en un <literal>Set</literal> "
+"(la forma recomendada de representar asociaciones multivaluadas); "
"<emphasis>y</emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
-msgstr "piensas usar reasociación de instancias separadas."
+msgstr "piensa utilizar reasociación de instancias separadas."
#. Tag: para
-#: persistent_classes.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
"Java identity only inside a particular session scope. When you mix instances "
@@ -522,15 +316,14 @@
"semantics for <literal>Set</literal>s."
msgstr ""
"Hibernate garantiza la equivalencia de identidad persistente (fila de base "
-"de datos) y identidad Java sólo dentro del ámbito de una "
-"sesión en particular. De modo que en el momento que mezclamos "
-"instancias recuperadas en sesiones diferentes, debemos implementar "
-"<literal>equals()</literal> y <literal>hashCode()</literal> si deseamos "
-"tener una semántica significativa de <literal>Set</literal>s."
+"de datos) y de identidad Java sólamente dentro del ámbito de una sesión en "
+"particular. De modo que en el momento en que mezcla instancias recuperadas "
+"en sesiones diferentes, tiene que implementar <literal>equals()</literal> y "
+"<literal>hashCode()</literal> si desea tener una semántica significativa "
+"para <literal>Set</literal>s."
#. Tag: para
-#: persistent_classes.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
"<literal>hashCode()</literal> by comparing the identifier value of both "
@@ -547,27 +340,25 @@
"the Hibernate website for a full discussion of this problem. This is not a "
"Hibernate issue, but normal Java semantics of object identity and equality."
msgstr ""
-"La forma más obvia es implementar <literal>equals()</literal>/"
+"La forma más obvia es implementar <literal>equals()</literal>/"
"<literal>hashCode()</literal> comparando el valor identificador de ambos "
-"objetos. Si el valor es el mismo, ambos deben ser la misma fila de base de "
-"datos, por lo tanto son iguales (si ambos son agregados a un <literal>Set</"
-"literal>, sólo tendremos un elemento en el <literal>Set</literal>). "
-"Desafortunadamente, no podemos usar este enfoque con identificadores "
-"generados! Hibernate sólo asignará valores identificadores a "
-"objetos que son persistentes, una instancia recién creada no "
-"tendrá ningún valor identificador! Además, si una "
-"instancia no está salvada y está actualmente en un "
-"<literal>Set</literal>, salvarla asignará un valor identificador al "
-"objeto. Si <literal>equals()</literal> and <literal>hashCode()</literal> "
-"están basados en el valor identificador, el código hash "
-"podría cambiar, rompiendo el contrato de <literal>Set</literal>. Ver "
-"el sitio web de Hibernate para una discusión completa de este "
-"problema. Observa que esto no es una incidencia de Hibernate, sino la "
-"semántica normal de Java de identidad de objeto e igualdad."
+"objetos. Si el valor es el mismo, ambos deben ser la misma fila de la base "
+"de datos ya que son iguales. Si ambos son agregados a un <literal>Set</"
+"literal>, sólo tendremos un elemento en el <literal>Set</literal>). "
+"Desafortunadamente, no puede utilizar este enfoque con identificadores "
+"generados. Hibernate sólo asignará valores identificadores a objetos que son "
+"persistentes; una instancia recién creada no tendrá ningún valor "
+"identificador. Además, si una instancia no se encuentra guardada y está "
+"actualmente en un <literal>Set</literal>, al guardarla se asignará un valor "
+"identificador al objeto. Si <literal>equals()</literal> y <literal>hashCode()"
+"</literal> están basados en el valor identificador, el código hash podrÃa "
+"cambiar, rompiendo el contrato del <literal>Set</literal>. Consulte el sitio "
+"web de Hibernate y allà encontrará una discusión completa sobre este "
+"problema. Este no es un problema de Hibernate, sino de la semántica normal "
+"de Java de identidad de objeto e igualdad."
#. Tag: para
-#: persistent_classes.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> using <emphasis>Business key equality</"
@@ -576,104 +367,47 @@
"that would identify our instance in the real world (a <emphasis>natural</"
"emphasis> candidate key):"
msgstr ""
-"Recomendamos implementar <literal>equals()</literal> y <literal>hashCode()</"
-"literal> usando <emphasis>igualdad de clave de negocio (Business key "
-"equality)</emphasis>. Igualdad de clave de negocio significa que el mé"
-"todo <literal>equals()</literal> compara sólo las propiedades que "
-"forman la clave de negocio, una clave que podría identificar nuestra "
+"Le recomendamos implementar <literal>equals()</literal> y <literal>hashCode()"
+"</literal> utilizando <emphasis>igualdad de clave empresarial (Business key "
+"equality)</emphasis>. Igualdad de clave empresarial significa que el método "
+"<literal>equals()</literal> sólamente compara las propiedades que forman la "
+"clave empresarial. Esta es una clave que podrÃa identificar nuestra "
"instancia en el mundo real (una clave candidata <emphasis>natural</"
"emphasis>):"
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
-"Nota que una clave de negocio no tiene que ser tan sólida como una "
-"clave primaria candidata de base de datos (ver <xref linkend=\"transactions-"
-"basics-identity\"/>). Las propiedades inmutables o únicas son "
-"usualmente buenas candidatas para una clave de negocio."
+"Una clave empresarial no tiene que ser tan sólida como una clave principal "
+"candidata de la base de datos (consulte la <xref linkend=\"transactions-"
+"basics-identity\" />). Las propiedades inmutables o únicas usualmente son "
+"buenas candidatas para una clave empresarial."
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
-msgstr "Modelos dinámicos"
+msgstr "Modelos dinámicos"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
msgstr ""
-"Ten en cuenta que las siguientes funcionalidades están consideradas "
-"actualmente experimentales y pueden cambiar en el futuro cercano."
+"<emphasis>Las siguientes funcionalidades se consideran actualmente como "
+"experimentales y pueden cambiar pronto.</emphasis>"
#. Tag: para
-#: persistent_classes.xml:246
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
"classes or as JavaBean objects at runtime. Hibernate also supports dynamic "
@@ -682,189 +416,63 @@
"do not write persistent classes, only mapping files."
msgstr ""
"Las entidades persistentes no necesariamente tienen que estar representadas "
-"como clases POJO o como objetos JavaBean en tiempo de ejecución. "
-"Hibernate soporta además modelos dinámicos (usando "
-"<literal>Map</literal>s de <literal>Map</literal>s en tiempo de "
-"ejecución) y la representación de entidades como á"
-"rboles de DOM4J. Con este enfoque no escribes clases persistentes, só"
-"lo ficheros de mapeo."
+"como clases POJO o como objetos JavaBean en tiempo de ejecución. Hibernate "
+"también soporta modelos dinámicos (utilizando <literal>Map</literal>eos de "
+"<literal>Map</literal>eos en tiempo de ejecución) y la representación de "
+"entidades como árboles de DOM4J. No escriba clases persistentes con este "
+"enfoque, sólamente archivos de mapeo. "
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
-"Por defecto, Hibernate funciona en modo POJO normal. Puedes establecer una "
-"representación de entidad por defecto para una "
-"<literal>SessionFactory</literal> en particular usando la opción de "
-"configuración <literal>default_entity_mode</literal> (ver <xref "
-"linkend=\"configuration-optional-properties\"/>)."
+"Por defecto, Hibernate funciona en modo POJO normal. Puede establecer un "
+"modo de representación de entidad predeterminado para una "
+"<literal>SessionFactory</literal> en particular utilizando la opción de "
+"configuración <literal>default_entity_mode</literal> (consulte <xref linkend="
+"\"configuration-optional-properties\" />)."
#. Tag: para
-#: persistent_classes.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
"literal>s. First, in the mapping file an <literal>entity-name</literal> has "
"to be declared instead of, or in addition to, a class name:"
msgstr ""
-"Los siguientes ejemplos demuestran la representación usando "
-"<literal>Map</literal>s. Primero, en el fichero de mapeo, tiene que "
-"declararse un <literal>entity-name</literal> en vez de (o como agregado a) "
-"un nombre de clase:"
+"Los siguientes ejemplos demuestran la representación utilizando "
+"<literal>Map</literal>eos. Primero, en el archivo de mapeo tiene que "
+"declararse un <literal>entity-name</literal> en lugar de, o además de un "
+"nombre de clase:"
-#. Tag: programlisting
-#: persistent_classes.xml:267
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-
-#. Tag: para
-#: persistent_classes.xml:269
-#, fuzzy, no-c-format
-msgid ""
"Even though associations are declared using target class names, the target "
"type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
-"Ten en cuenta que aunque las asociaciones se declaran usando nombres de "
-"clase objetivo, el tipo objetivo de una asociación puede ser "
-"además una entidad dinámica en vez de un POJO."
+"Aunque las asociaciones se declaran utilizando nombres de clase destino, el "
+"tipo destino de una asociación puede ser además una entidad dinámica en "
+"lugar de un POJO."
#. Tag: para
-#: persistent_classes.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
"the <literal>SessionFactory</literal>, you can, at runtime, work with "
"<literal>Map</literal>s of <literal>Map</literal>s:"
msgstr ""
-"Después de establecer el modo de entidad por defecto a "
+"Después de establecer el modo de entidad predeterminado como "
"<literal>dynamic-map</literal> para la <literal>SessionFactory</literal>, "
-"podemos trabajar en tiempo de ejecución con <literal>Map</literal>s "
-"de <literal>Map</literal>s:"
+"puede trabajar en tiempo de ejecución con <literal>Map</literal>eos de "
+"<literal>Map</literal>eos: "
-#. Tag: programlisting
-#: persistent_classes.xml:282
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-
-#. Tag: para
-#: persistent_classes.xml:284
-#, fuzzy, no-c-format
-msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
"prototyping, without the need for entity class implementation. However, you "
"lose compile-time type checking and will likely deal with many exceptions at "
@@ -872,58 +480,26 @@
"easily be normalized and sound, allowing to add a proper domain model "
"implementation on top later on."
msgstr ""
-"Las ventajas de un mapeo dinámico es rápido tiempo de ciclo de "
-"prototipado sin la necesidad de implementación de clases de entidad. "
-"Sin embargo, pierdes chequeo de tipos en tiempo de compilación y muy "
-"probablemente tratarás con muchas excepciones en tiempo de "
-"ejecución. Gracias al mapeo de Hibernate, el esquema de base de datos "
-"puede estar facilmente sano y normalizado, permitiendo agregar una "
-"implementación apropiada del modelo de dominio más tarde."
+"Una de las ventajas principales de un mapeo dinámico es el rápido tiempo de "
+"entrega del prototipado sin la necesidad de implementar clases de entidad. "
+"Sin embargo, pierde el chequeo de tipos en tiempo de compilación y muy "
+"probablemente tendrá que tratar con muchas excepciones en tiempo de "
+"ejecución. Gracias al mapeo de Hibernate, el esquema de base de datos se "
+"puede normalizar y volver sólido, permitiendo añadir una implementación "
+"apropiada del modelo de dominio más adelante."
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
"literal> basis:"
msgstr ""
-"Los modos de representación de entidad pueden ser establecidos por "
+"Los modos de representación de entidad se pueden establecer por "
"<literal>Session</literal>:"
-#. Tag: programlisting
-#: persistent_classes.xml:297
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-
-#. Tag: para
-#: persistent_classes.xml:300
-#, fuzzy, no-c-format
-msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
@@ -933,35 +509,31 @@
"literal>, and also leave the transaction and connection handling to the "
"primary unit of work."
msgstr ""
-"Por favor, ten en cuenta que la llamada a <literal>getSession()</literal> "
-"usando un <literal>EntityMode</literal> está en la API de "
-"<literal>Session</literal>, no en la de <literal>SessionFactory</literal>. "
-"De esta forma, la nueva <literal>Session</literal> comparte la conexió"
-"n JDBC, transacción y otra información de contexto. Esto "
-"significa que no tienes que llamar a <literal>flush()</literal> ni a "
-"<literal>close()</literal> en la <literal>Session</literal> secundaria, y "
-"tembién dejar el manejo de la transacción y de la "
-"conexión a la unidad de trabajo primaria."
+"Tenga en cuenta que la llamada a <literal>getSession()</literal> utilizando "
+"un <literal>EntityMode</literal> está en la API de <literal>Session</"
+"literal>, no en la de <literal>SessionFactory</literal>. De esta forma, la "
+"nueva <literal>Session</literal> comparte la conexión JDBC, la transacción y "
+"otra información de contexto. Esto significa que no tiene que llamar a "
+"<literal>flush()</literal> ni a <literal>close()</literal> en la "
+"<literal>Session</literal> secundaria, y también tiene que dejar el manejo "
+"de la transacción y de la conexión a la unidad de trabajo primaria. "
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"<xref linkend=\"xml\" />."
msgstr ""
-"Puede encontrarse más información sobre las capacidades de "
-"representación XML en <xref linkend=\"xml\"/>."
+"Puede encontrar más información sobre las capacidades de representación de "
+"XML en <xref linkend=\"xml\" />."
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
-msgstr "UNTRANSLATED!!! Tuplizers"
+msgstr "Tuplizers"
#. Tag: para
-#: persistent_classes.xml:320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
"responsible for managing a particular representation of a piece of data "
@@ -973,23 +545,17 @@
"through its constructor. It also knows how to access the POJO properties "
"using the defined property accessors."
msgstr ""
-"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
-"responsible for managing a particular representation of a piece of data, "
-"given that representation's <literal>org.hibernate.EntityMode</literal>. If "
-"a given piece of data is thought of as a data structure, then a tuplizer is "
-"the thing which knows how to create such a data structure and how to extract "
-"values from and inject values into such a data structure. For example, for "
-"the POJO entity mode, the correpsonding tuplizer knows how create the POJO "
-"through its constructor and how to access the POJO properties using the "
-"defined property accessors. There are two high-level types of Tuplizers, "
-"represented by the <literal>org.hibernate.tuple.entity.EntityTuplizer</"
-"literal> and <literal>org.hibernate.tuple.component.ComponentTuplizer</"
-"literal> interfaces. <literal>EntityTuplizer</literal>s are responsible for "
-"managing the above mentioned contracts in regards to entities, while "
-"<literal>ComponentTuplizer</literal>s do the same for components."
+"<literal>org.hibernate.tuple.Tuplizer</literal> y sus subinterfaces son las "
+"responsables de administrar una representación en particular de un dato, "
+"dadas las representaciones de <literal>org.hibernate.EntityMode</literal>. "
+"Si un dato dado se considera como una estructura de datos entonces un "
+"tuplizer es la cosa que sabe como crear tal estructura de datos y sabe como "
+"extraer e insertar valores en dicha estructura de datos. Por ejemplo, para "
+"el modo de entidad POJO, el tuplizer correspondiente sabe como crear el POJO "
+"por medio de su constructor. También sabe como acceder a las propiedades "
+"POJO utilizando los accesores de propiedad definidos. "
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -999,10 +565,16 @@
"mentioned contracts in regards to entities, while "
"<literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
+"Hay dos tipos altos de niveles de Tuplizers, representados por las "
+"interfaces <literal>org.hibernate.tuple.entity.EntityTuplizer</literal> y "
+"<literal>org.hibernate.tuple.component.ComponentTuplizer</literal>. Los "
+"<literal>EntityTuplizer</literal>s son los responsables de administrar los "
+"contratos mencionados anteriormente en relación con las entidades mientras "
+"que los <literal>ComponentTuplizer</literal>s hacen lo mismo para los "
+"componentes."
#. Tag: para
-#: persistent_classes.xml:338
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
"<literal>java.util.Map</literal> implementation other than <literal>java."
@@ -1013,105 +585,22 @@
"mapping they are meant to manage. Going back to the example of our customer "
"entity:"
msgstr ""
-"Users may also plug in their own tuplizers. Perhaps you require that a "
-"<literal>java.util.Map</literal> implementation other than <literal>java."
-"util.HashMap</literal> be used while in the dynamic-map entity-mode; or "
-"perhaps you need to define a different proxy generation strategy than the "
-"one used by default. Both would be achieved by defining a custom tuplizer "
-"implementation. Tuplizers definitions are attached to the entity or "
-"component mapping they are meant to manage. Going back to the example of our "
-"customer entity:"
+"Los usuarios también pueden enchufar sus propios tuplizers. Tal vez necesite "
+"que una implementación <literal>java.util.Map</literal> diferente de "
+"<literal>java.util.HashMap</literal> se utilice en el modo de entidad de "
+"mapeo dinámico. O quizás necesite definir una estrategia de generación proxy "
+"diferente de la que se utiliza por defecto. Se pueden obtener ambas al "
+"definir una implementación tuplizer personalizada. Las definiciones de los "
+"tuplizers se encuentran sujetas a la entidad o componente de mapeo que se "
+"supone que tienen que administrar. Regresando al ejemplo de nuestra entidad "
+"de cliente:"
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-"
-"mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl"
-"\"/>\n"
-" \n"
-" <id name=\"id\" type=\"long\" column=\"ID"
-"\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" \n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-" </hibernate-mapping>\n"
-" \n"
-" \n"
-" public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity."
-"DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in "
-"our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-" \n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our "
-"custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-" }]]>"
-
#. Tag: title
-#: persistent_classes.xml:353
#, no-c-format
msgid "EntityNameResolvers"
-msgstr ""
+msgstr "EntityNameResolvers"
#. Tag: para
-#: persistent_classes.xml:355
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -1128,158 +617,41 @@
"dynamicentity.tuplizer2</package>. Here is some of the code from that "
"package for illustration."
msgstr ""
+"La interfaz <interfacename>org.hibernate.EntityNameResolver</interfacename> "
+"es un contrato para resolver el nombre de la entidad de una instancia de "
+"entidad dada. La interfaz define un solo método "
+"<methodname>resolveEntityName</methodname>, el cual se le pasa la instancia "
+"entidad y se espera que retorne el nombre de entidad apropriado (se permite "
+"nulo e indicarÃa que el resolvedor no sabe cómo resolver el nombre de la "
+"entidad de la instancia de entidad dada). Generalmente hablando, un "
+"<interfacename>org.hibernate.EntityNameResolver</interfacename> será más "
+"útil en el caso de modelos dinámicos. Un ejemplo puede ser el usar "
+"interfaces con proxis como su modelo de dominio. La suite de prueba de "
+"hibernate tiene un ejemplo de este estilo exacto de uso bajo el <package>org."
+"hibernate.test.dynamicentity.tuplizer2</package>. Aquà está algo del código "
+"de ese paquete para su ilustración."
-#. Tag: programlisting
-#: persistent_classes.xml:367
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:369
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
"interfacename> users must either:"
msgstr ""
+"Con el fin de registrar un <interfacename>org.hibernate.EntityNameResolver</"
+"interfacename> los usuarios deben:"
#. Tag: para
-#: persistent_classes.xml:373
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
"link>, implementing the <methodname>getEntityNameResolvers</methodname> "
"method."
msgstr ""
+"Implementar un <xref linkend=\"persistent-classes-tuplizers\" /> "
+"personalizado, implementando el método <methodname>getEntityNameResolvers</"
+"methodname>."
#. Tag: para
-#: persistent_classes.xml:379
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
@@ -1287,18 +659,7 @@
"hibernate.SessionFactory</interfacename>) using the "
"<methodname>registerEntityNameResolver</methodname> method."
msgstr ""
-
-#~ msgid "There are four main rules to follow here:"
-#~ msgstr "Aquí hay cuatro reglas principales a seguir:"
-
-#~ msgid ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
-#~ msgstr ""
-#~ "PORHACER: Documentar el framework de extensiones del usuario en los "
-#~ "paquetes de propiedad y proxies."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Registrarlo con el <classname>org.hibernate.impl.SessionFactoryImpl</"
+"classname> (el cual es la clase de implementación para <interfacename>org."
+"hibernate.SessionFactory</interfacename>) usando el método "
+"<methodname>registerEntityNameResolver</methodname>."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,39 @@
-# Language es-ES translations for Branch package.
-# Automatically generated, 2009.
-#
+# translation of portability.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: Branch 3_3\n"
+"Project-Id-Version: portability\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-23 18:41+0000\n"
-"PO-Revision-Date: 2009-06-16 18:47+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 10:51+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
-msgstr ""
+msgstr "Consideraciones de la portabilidad de la base de datos"
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
-msgstr ""
+msgstr "Aspectos básicos de la portabilidad"
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -38,15 +45,22 @@
"run against any number of databases without changes to your code, and "
"ideally without any changes to the mapping metadata."
msgstr ""
+"Uno de los aspectos que más vende de Hibernate (y realmente del mapeo objeto/"
+"relacional en sÃ) es la noción de portabilidad de la base de datos. PodrÃa "
+"ser el caso de un administrador de sistemas migrando de una base de datos de "
+"un vendedor a otro, o podrÃa ser un marco de trabajo o una aplicación "
+"desplegable consumiendo Hibernate para que apunte simultáneamente a "
+"múltiples productos de bases de datos. Sin importar el escenario exacto, la "
+"idea básica es que quiere que Hibernate le ayude a ejecutar frente a "
+"cualquier número de bases de datos sin cambiar el código e idealmente sin "
+"cambiar los metadatos de mapeo. "
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
-msgstr ""
+msgstr "Dialecto"
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -58,15 +72,22 @@
"your particular database is not among them, it is not terribly difficult to "
"write your own."
msgstr ""
+"La primera lÃnea de portabilidad para Hibernate es el dialecto, el cual es "
+"una especialización del contrato <classname>org.hibernate.dialect.Dialect</"
+"classname>. Un dialecto encapsula todas las diferencias en la manera en que "
+"Hibernate debe comunicarse con una base de datos en particular para lograr "
+"alguna tarea como el obtener un valor de secuencia o el estructurar una "
+"petición SELECT. Hibernate reune un gran rango de dialectos para muchas de "
+"las bases de datos más populares. Si encuentra que su base de datos en "
+"particular no se encuentra entre estos, no es demasiado dificil es escribir "
+"el propio."
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
-msgstr ""
+msgstr "Resolución del dialecto"
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -75,9 +96,14 @@
"their users to configure the Hibernate dialect or defining their own method "
"of setting that value."
msgstr ""
+"Originalmente, Hibernate siempre requerÃa que los usuarios especificaran qué "
+"dialecto utilizar. En el caso de aquellos usuarios que buscaban apuntar a "
+"múltiples bases de datos de manera simultánea con su construcción eso "
+"representaba un problema. Generalmente esto requerÃa que los usuarios "
+"configuraran el dialecto de Hibernate o que definieran su propio método para "
+"establecer ese valor. "
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -87,17 +113,23 @@
"that this resolution was limited to databases Hibernate know about ahead of "
"time and was in no way configurable or overrideable."
msgstr ""
+"Empezando con la versión 3.2, Hibernate introdujo la noción de detectar "
+"automáticamente el dialecto a utilizar con base en los <interfacename>java."
+"sql.DatabaseMetaData</interfacename> que se obtuvieron de una "
+"<interfacename>java.sql.Connection</interfacename> a esa base de datos. Esto "
+"era mucho mejor pero esta resolución estaba limitada a las bases de datos "
+"que Hibernate conoce por adelantado y de ninguna manera era configurable ni "
+"se podÃa sobreescribir."
#. Tag: para
-#: portability.xml:72
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -108,9 +140,24 @@
"All other exceptions result in a warning and continuing on to the next "
"resolver."
msgstr ""
+"Empezando por la versión 3.3, Hibernate cuenta con una manera más poderosa "
+"de determinar automáticamente cuál dialecto se debe utilizar dependiendo de "
+"una serie de delegados, los cuales implementan el <interfacename>org."
+"hibernate.dialect.resolver.DialectResolver</interfacename> el cual define "
+"solo un método único:<programlisting>public Dialect resolveDialect"
+"(DatabaseMetaData metaData) throws JDBCConnectionException</programlisting>. "
+"El contrato básico aquà es que si el resolvedor 'entiende' los metadatos de "
+"la base de datos dada entonces retorna el dialecto correspondiente; si no "
+"entonces retorna nulo y el proceso continua al siguiente resolvedor. La "
+"firma también identifica <exceptionname>org.hibernate.exception."
+"JDBCConnectionException</exceptionname> ya que posiblemente se presenta. Una "
+"JDBCConnectionException aquà se interpreta como un problema de conexión \"no "
+"transitorio\" (también conocido como no-recuperable) y se utiliza para "
+"indicar que se deben detener inmediatamente los intentos de resolución. "
+"Todas las otras excepciones resultan en una advertencia y continua al "
+"siguiente resolvedor. "
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -124,16 +171,25 @@
"<constant>DIALECT_RESOLVERS</constant> constant on <classname>org.hibernate."
"cfg.Environment</classname>)."
msgstr ""
+"La parte divertida de estos resolvedores es que los usuarios también pueden "
+"registrar sus propios resolvedores personalizados, los cuales se procesarán "
+"antes de los incluÃdos en Hibernate. Esto puede llegar a ser útil en un "
+"número de situaciones diferentes: permite una fácil integración para la auto-"
+"detección de dialectos más allá de los que se envÃan junto con Hibernate; le "
+"permite especificar el uso de un dialecto personalizado cuando se reconoce "
+"una base de datos en particular; etc. Para registrar uno o más resolvedores, "
+"simplemente especifiquelos (separados por comas o espacios) usando la "
+"configuración 'hibernate.dialect_resolvers' (consulte la constante "
+"<constant>DIALECT_RESOLVERS</constant> en <classname>org.hibernate.cfg."
+"Environment</classname>)."
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
-msgstr ""
+msgstr "Generación del identificador"
#. Tag: para
-#: portability.xml:100
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"When considering portability between databases, another important decision "
"is selecting the identifier generation stratagy you want to use. Originally "
@@ -151,38 +207,94 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
+"Al considerar la portabilidad entre bases de datos, otra decisión importante "
+"es el seleccionar la estrategia de generación del identificador que quiere "
+"utilizar. Originalmente Hibernate brindaba el generador <emphasis>nativo</"
+"emphasis> para este propósito, el cual tenÃa el objetivo de seleccionar "
+"entre las estrategias <emphasis>sequence</emphasis>, <emphasis>identity</"
+"emphasis> o <emphasis>table</emphasis> dependiendo de la capacidad de la "
+"base de datos subyacente. Sin embargo, una de las implicaciones de este "
+"enfoque se presenta al tener como destino algunas bases de datos que "
+"soportan la generación de <emphasis>identidad</emphasis> y algunas no. La "
+"generación de <emphasis>identidad</emphasis> depende de la definición SQL de "
+"una columna IDENTITY (o auto-incremento) para administrar el valor del "
+"identificador; es lo que se conoce como una estrategia de generación post-"
+"insert ya que el insert de hecho debe tener lugar antes de saber el valor "
+"del identificador. Ya que Hibernate depende de este valor de identificador "
+"para referenciar de maner única a las entidades dentro de un contexto de "
+"persistencia entonces debe emitir el insert inmediatamente cuando los "
+"usuarios solicitan que la entidad se asocie con la sesión (por ejemplo, por "
+"medio de save()) sin importar la semántica transaccional actual. El problema "
+"subyacente es que la semántica de la aplicación misma cambia en estos casos."
#. Tag: para
-#: portability.xml:125
+#, fuzzy, no-c-format
+msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr ""
+"Hibernate se ha mejorado de manera que el insert se retrasa en los casos en "
+"donde es posible. "
+
+#. Tag: note
#, no-c-format
msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+"Desde la versión 3.2.3, Hibernate viene junto con un grupo de generadores "
+"identificadores <ulink url=\"http://in.relation.to/2082.lace\">mejorados</"
+"ulink> apuntando a la portabilidad de una manera muy diferente."
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+"Hay especificamente 2 paquetes de generadores <emphasis>mejorados</emphasis>:"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+"La idea detrás de estos generadores es el llevar la semántica de la "
+"generación del valor identificador a las diferentes bases de datos. Por "
+"ejemplo, el <classname>org.hibernate.id.enhanced.SequenceStyleGenerator</"
+"classname> asemeja el comportamiento de una secuencia en las bases de datos "
+"que no soportan secuencias usando una tabla."
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
-msgstr ""
+msgstr "Funciones de la base de datos"
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +303,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -200,9 +311,14 @@
"knows how to render that particular function, perhaps even using a totally "
"different physical function call."
msgstr ""
+"Los usuarios pueden referenciar las funciones de SQL de muchas maneras. Sin "
+"embargo, no todas las bases de datos soportan el mismo grupo de funciones. "
+"Hibernate, proporciona una manera de mapear un nombre de una función "
+"<emphasis>lógica</emphasis> a un delegado, el cual sabe cómo entregar esa "
+"función en particular, tal vez incluso usando una llamada de función fÃsica "
+"totalmente diferente."
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -211,24 +327,37 @@
"having to provide a custom dialect. This specific behavior is not fully "
"completed as of yet."
msgstr ""
+"Técnicamente este registro de función se maneja por medio de la clase "
+"<classname>org.hibernate.dialect.function.SQLFunctionRegistry</classname>, "
+"la cual tiene el propósito de permitirle a los usuarios el proporcionar "
+"definiciones de funciones personalizadas sin tener que brindar un dialecto "
+"personalizado. Este comportamiento especifico todavÃa no está del todo "
+"completo."
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
"functions with the <classname>org.hibernate.cfg.Configuration</classname> "
"and those functions will be recognized for HQL."
msgstr ""
+"De cierta manera está implementado para que los usuarios puedan registrar "
+"programáticamente las funciones con la <classname>org.hibernate.cfg."
+"Configuration</classname> y aquellas funciones serán reconocidas por HQL."
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
+
+#~ msgid ""
+#~ "This is a new area in Hibernate and as such it is not as mature as the "
+#~ "overall Hibernate experience."
+#~ msgstr ""
+#~ "Esta es una nueva área en Hibernate y como tal no es tan madura como lo "
+#~ "es en general el resto de Hibernate. "
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,20 +1,35 @@
-#, fuzzy
+# translation of Preface.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of preface.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: Preface\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-16 18:47+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 10:45+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "Prefacio"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -24,31 +39,30 @@
"representation from an object model to a relational data model with a SQL-"
"based schema."
msgstr ""
-"Trabajar con software orientado a objetos y una base de datos relacional "
-"puede ser incómodo y consumir tiempo en los entornos de empresa de "
-"hoy. Hibernate es una herramienta de mapeo objeto/relacional para entornos "
-"Java. El término mapeo objeto/relacional (MOR) hace referencia a la "
-"técnica de mapear una representación de datos desde un modelo "
-"de objetos a un modelo de datos relacional con un esquema basado en SQL."
+"El trabajar con software orientado a objetos y con una base de datos "
+"relacional puede llegar a ser engorroso y puede llegar a tomar bastante "
+"tiempo en los entornos empresariales de hoy en dÃa. Hibernate es una "
+"herramienta de mapeo objeto/relacional para entornos Java. El término mapeo "
+"objeto/relacional (ORM) se refiere a la técnica de mapear una representación "
+"de datos desde un modelo de objeto a un modelo de datos relacionales con un "
+"esquema basado en SQL."
#. Tag: para
-#: preface.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
"tables (and from Java data types to SQL data types), but also provides data "
"query and retrieval facilities. It can also significantly reduce development "
"time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
-"Hibernate no sólo se encarga de mapear de clases Java a tablas de "
-"base de datos (y de tipos de datos de Java a tipos de datos SQL), sino que "
-"también provee facilidades de consulta y recuperación de datos "
-"y puede reducir significativamente el tiempo de desarrollo que de otra forma "
-"se gasta en el manejo de los datos en SQL y JDBC."
+"Hibernate no sólamente se ocupa del mapeo desde las clases Java a las tablas "
+"de las bases de datos (y desde los tipos de datos de Java a los tipos de "
+"datos de SQL), sino que también facilita la consulta y recuperación de "
+"datos. Esto puede reducir de manera importante el tiempo de desarrollo que "
+"se tomarÃa con el manejo de datos de forma manual en SQL y JDBC."
#. Tag: para
-#: preface.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
"persistence related programming tasks. Hibernate may not be the best "
@@ -59,51 +73,49 @@
"specific SQL code and will help with the common task of result set "
"translation from a tabular representation to a graph of objects."
msgstr ""
-"La meta de Hibernate es relevar al desarrollador del 95 por ciento de las "
-"tareas comunes relacionadas a la programación de la persistencia de "
-"los datos. Hibernate puede no ser la mejor solución para aplicaciones "
-"que usan solamente procedimientos almacenados para implementar la ló"
-"gica de negocio en la base de datos, es mas útil con modelos de "
-"dominio orientados a objetos y lógica de negocio en middle-tier "
-"basada en Java. Sin embargo, Hibernate ciertamente puede ayudarte a quitar o "
-"encapsular código SQL específico de vendedor y ayudará "
-"con la tarea común de traducción de resultados desde una "
-"representación tabular a un grafo de objetos."
+"La meta de Hibernate es aliviar el trabajo del desarrollador en 95% de la "
+"persistencia de datos comunes relacionados con tareas de programación. Es "
+"posible que Hibernate no sea la mejor solución para aquellas aplicaciones "
+"centralizadas en datos que sólamente utilizan los procedimientos almacenados "
+"para implementar la lógica empresarial en la base de datos, Hibernate es "
+"mucho más útil con modelos de dominio orientados a objetos y con lógica "
+"empresarial middle-tier con base en Java. Sin embargo, Hibernate ciertamente "
+"le puede ayudar a eliminar o a encapsular código SQL especÃfico del vendedor "
+"y le ayudará con la tarea común de traducción del grupo de resultados desde "
+"una representación tabular a un grafo de objetos."
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
"please follow these steps:"
msgstr ""
-"Si eres nuevo en Hibernate y lo del Mapeo Objeto/Relacional o incluso en "
-"Java, sigue por favor estos pasos:"
+"Si usted es nuevo en el tema de Hibernate y del Mapeo Objeto/Relacional o "
+"inclusive en Java por favor siga los siguientes pasos:"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
-"Lee <xref linkend=\"tutorial\"/> para un tutorial de 30 minutos, usando "
-"Tomcat."
+"Consulte el <xref linkend=\"tutorial\"/>, el cual es un tutorial con "
+"instrucciones paso por paso. El código fuente para el tutorial se encuentra "
+"incluido en la distribución en el directorio <literal>doc/reference/tutorial/"
+"</literal>. "
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
msgstr ""
-"Lee <xref linkend=\"architecture\"/> para entender los entornos en los que "
-"puede ser usado Hibernate."
+"Consulte el <xref linkend=\"architecture\" /> para comprender los entornos "
+"en donde se puede utilizar Hibernate."
#. Tag: para
-#: preface.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
"contains a simple standalone application. Copy your JDBC driver to the "
@@ -112,64 +124,59 @@
"command prompt in the distribution directory, type <literal>ant eg</literal> "
"(using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
-"Dale una mirada al directorio <literal>eg/</literal> en la distribució"
-"n de Hibernate, contiene una aplicación independiente simple. Copia "
-"tu driver JDBC al directorio <literal>lib/</literal> y edita <literal>etc/"
-"hibernate.properties</literal>, especificando los valores correctos para tu "
-"base de datos. Desde línea de comandos en el directorio de la "
-"distribución, tipea <literal>ant eg</literal> (usando Ant), o bajo "
-"Windows, tipea <literal>build eg</literal>."
+"Déle un vistazo al directorio <literal>eg/</literal> en la distribución de "
+"Hibernate. Este comprende una aplicación autónoma simple. Copie su "
+"compilador JDBC al directorio <literal>lib/</literal> y edite <literal>etc/"
+"hibernate.properties</literal>, especificando los valores correctos para su "
+"base de datos. Desde un intérprete de comandos en el directorio de la "
+"distribución, escriba <literal>ant eg</literal> (utilizando Ant), o bajo "
+"Windows, escriba <literal>build eg</literal>."
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
-"Usa esta documentación de referencia como tu fuente de "
-"información primaria. Ten en consideración leer <emphasis>Java "
-"Persistence with Hibernate</emphasis> (http://www.manning.com/bauer2) si "
-"necesitas mas ayuda con el diseño de aplicaciones o si prefieres un "
-"tutorial paso a paso. Visita también http://caveatemptor.hibernate."
-"org y descarga la aplicación de ejemplo para Java Persistence with "
-"Hibernate."
+"Utilice esta documentación de referencia como su fuente principal de "
+"información. Considere el leer <emphasis>Java Persistence with Hibernate</"
+"emphasis> (http://www.manning.com/bauer2) si necesita más ayuda con el "
+"diseño de la aplicación o si prefiere un tutorial paso por paso. También "
+"visite http://caveatemptor.hibernate.org y descargue la aplicación "
+"deejemplo para la persistencia de Java con Hibernate."
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
-msgstr "Los FAQs son respondidos en el sitio web de Hibernate."
+msgstr ""
+"En el sitio web de Hibernate encontrará las respuestas a las preguntas más "
+"frecuentes."
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
"Hibernate website."
msgstr ""
-"En el sitio web de Hibernate hay enlaces a demos de terceros, ejemplos y "
-"tutoriales."
+"En el sitio web de Hibernate encontrará un enlace a la demostraciones de "
+"terceros, ejemplos y tutoriales."
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
"patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, "
"etc.)."
msgstr ""
-"El Area de Comunidad en el sitio web de Hibernate es una buena fuente de "
-"patrones de diseño y varias soluciones de integración (Tomcat, "
-"JBoss, Struts, EJB, etc.)."
+"El área de la comunidad en el sitio web de Hibernate es un buen recurso para "
+"encontrar patrones de diseño y varias soluciones de integración (Tomcat, "
+"JBoss AS, Struts, EJB, etc)."
#. Tag: para
-#: preface.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
"We also provide a JIRA issue tracking system for bug reports and feature "
@@ -177,15 +184,14 @@
"developer mailing list. If you are interested in translating this "
"documentation into your language, contact us on the developer mailing list."
msgstr ""
-"Si tienes preguntas, usa el foro de usuarios enlazado en el sitio web de "
-"Hibernate. También proveemos un sistema de seguimiento JIRA para "
-"reportes de defectos y peticiones de nuevas características. Si estas "
-"interesado en el desarrollo de Hibernate, únete a la lista de correo "
-"de desarrolladores. Si estas interesado en traducir esta documentació"
-"n a tu lenguaje, contáctanos en la lista de correo de desarrolladores."
+"Si tiene alguna pregunta, dirÃjase al sitio web de Hibernate en donde "
+"encontrará un enlace al foro de usuarios. También proporcionamos un sistema "
+"de localización para reportes de errores JIRA y solicitud de funciones. Si "
+"está interesado en el desarrollo de Hibernate, únase a la lista de correo de "
+"los desarrolladores. Si le interesa traducir esta documentación a su propio "
+"idioma, contáctenos en la lista de correo de los desarrolladores."
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
@@ -194,29 +200,8 @@
"critical component of the JBoss Enterprise Middleware System (JEMS) suite of "
"products."
msgstr ""
-"A través de JBoss Inc. (see http://www.hibernate.org/"
-"SupportTraining/) hay disponibilidad de soporte comercial de desarrollo, "
-"soporte de producción y entrenamiento en Hibernate. Hibernate es un "
-"proyecto de la suite de productos de código abierto JBoss "
-"Professional."
-
-#. Tag: title
-#: preface.xml:133
-#, no-c-format
-msgid "Feedback"
-msgstr ""
-
-#. Tag: para
-#: preface.xml:134
-#, no-c-format
-msgid ""
-"Use <ulink url=\"http://opensource.atlassian.com/projects/hibernate"
-"\">Hibernate JIRA</ulink> to report errors or request enhacements to this "
-"documentation."
-msgstr ""
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"JBoss Inc. proporciona soporte para desarrollo comercial, soporte para "
+"producción y entrenamiento (vea http://www.hibernate.org/SupportTraining/). "
+"Hibernate es un proyecto de Código Abierto Profesional y es un componente "
+"crÃtico de la suite de productos de JBoss Enterprise Middleware System "
+"(JEMS)."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,64 +1,62 @@
-#, fuzzy
+# translation of query_criteria.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: query_criteria\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 17:44+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
-msgstr "Consultas por Criterios"
+msgstr "Consultas por criterios"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
msgstr ""
-"Acompaña a Hibernate una API de consultas por criterios intuitiva y "
+"Acompaña a Hibernate una API de consultas por criterios intuitiva y "
"extensible."
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
-msgstr "Creando una instancia de <literal>Criteria</literal>"
+msgstr "Creación de una instancia <literal>Criteria</literal>"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
"against a particular persistent class. The <literal>Session</literal> is a "
"factory for <literal>Criteria</literal> instances."
msgstr ""
-"La interface <literal>org.hibernate.Criteria</literal> representa una "
+"La interfaz <literal>org.hibernate.Criteria</literal> representa una "
"consulta contra una clase persistente en particular. La <literal>Session</"
-"literal> es una fábrica de instancias de <literal>Criteria</literal>."
+"literal> es una fábrica de instancias de <literal>Criteria</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
-msgstr "Estrechando el conjunto resultado"
+msgstr "LÃmitando el conjunto de resultados"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -66,275 +64,93 @@
"criterion.Restrictions</literal> defines factory methods for obtaining "
"certain built-in <literal>Criterion</literal> types."
msgstr ""
-"Un criterio individual de consulta es una instancia de la interface "
+"Un criterio individual de consulta es una instancia de la interfaz "
"<literal>org.hibernate.criterion.Criterion</literal>. La clase <literal>org."
-"hibernate.criterion.Restrictions</literal> define métodos de fá"
-"brica para obtener ciertos tipos prefabricados de <literal>Criterion</"
-"literal>."
+"hibernate.criterion.Restrictions</literal> define métodos de fábrica para "
+"obtener ciertos tipos incorporados de <literal>Criterion</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:59
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Restrictions can be grouped logically."
-msgstr "Las restricciones pueden ser agrupadas lógicamente."
+msgstr "Las restricciones se pueden agrupar lógicamente. "
-#. Tag: programlisting
-#: query_criteria.xml:65
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-
-#. Tag: para
-#: query_criteria.xml:69
-#, fuzzy, no-c-format
-msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
"literal> subclasses). One of the most useful allows you to specify SQL "
"directly."
msgstr ""
-"Hay un gran rango de tipos de criterio prefabricados (subclases de "
-"<literal>Restrictions</literal>), pero uno que es especialmente útil te deja "
+"Hay un rango de tipos de criterios incorporados (subclases de "
+"<literal>Restrictions</literal>). Uno de los más útiles le permite "
"especificar SQL directamente."
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sql(\"lower({alias}.name) like lower(?)\", \"Fritz%"
-"\", Hibernate.STRING) )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
"of the queried entity."
msgstr ""
-"El sitio <literal>{alias}</literal> será remplazado por el alias de "
-"fila de la entidad consultada."
+"El sitio <literal>{alias}</literal> será remplazado por el alias de fila de "
+"la entidad consultada."
#. Tag: para
-#: query_criteria.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
"You can create a <literal>Property</literal> by calling <literal>Property."
"forName()</literal>:"
msgstr ""
-"Un enfoque alternativo para obtener un criterio es tomarlo de una instancia "
-"de <literal>Property</literal>. Puedes crear una <literal>Property</literal> "
-"llamando a <literal>Property.forName()</literal>."
+"También puede obtener un criterio de una instancia <literal>Property</"
+"literal>. Puede crear una <literal>Property</literal> llamando a "
+"<literal>Property.forName()</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
-msgstr "Ordenando los resultados"
+msgstr "Orden de los resultados"
#. Tag: para
-#: query_criteria.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
"literal>."
msgstr ""
-"Puedes ordenar los resultados usando <literal>org.hibernate.criterion.Order</"
+"Puede ordenar los resultados usando <literal>org.hibernate.criterion.Order</"
"literal>."
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
msgstr "Asociaciones"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
+"Al navegar asociaciones usando <literal>createCriteria()</literal> puede "
+"especificar restricciones en entidades relacionadas:"
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .list();]]>"
-
-#. Tag: para
-#: query_criteria.xml:114
-#, fuzzy, no-c-format
-msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
"<literal>Criteria</literal> that refers to the elements of the "
"<literal>kittens</literal> collection."
msgstr ""
-"nota que el segundo <literal>createCriteria()</literal> devuelve una nueva "
-"instancia de <literal>Criteria</literal>, que hace referencia a los "
-"elementos de la colección <literal>kittens</literal>."
+"El segundo <literal>createCriteria()</literal> retorna una nueva instancia "
+"de <literal>Criteria</literal>, que se refiere a los elementos de la "
+"colección <literal>kittens</literal>."
#. Tag: para
-#: query_criteria.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
-msgstr "La siguiente forma alternativa es útil en ciertas circunstancias."
+msgstr "Hay una alternativa que es útil en ciertas circunstancias:"
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
@@ -344,303 +160,153 @@
"<literal>Criteria</literal>.)"
#. Tag: para
-#: query_criteria.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
"returned by the previous two queries are <emphasis>not</emphasis> pre-"
"filtered by the criteria. If you want to retrieve just the kittens that "
"match the criteria, you must use a <literal>ResultTransformer</literal>."
msgstr ""
-"¡Observa que las colecciones de gatitos tenidas por las instancias de "
-"<literal>Cat</literal> devueltas por las dos consultas previas <emphasis>no</"
-"emphasis> están prefiltradas por los criterios! Si deseas recuperar "
-"sólo los gatitos que emparejen los criterios, debes usar "
-"<literal>returnMaps()</literal>."
+"Las colecciones de gatitos de las instancias <literal>Cat</literal> "
+"retornadas por las dos consultas previas <emphasis>no</emphasis> están "
+"prefiltradas por los criterios. Si desea recuperar sólo los gatitos que "
+"coincidan con los criterios debe usar un <literal>ResultTransformer</"
+"literal>."
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+msgid "Additionally you may manipulate the result set using a left outer join:"
msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .returnMaps()\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
-#. Tag: title
-#: query_criteria.xml:143
+#. Tag: para
#, no-c-format
-msgid "Dynamic association fetching"
-msgstr "Recuperación dinámica de asociaciones"
+msgid ""
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
+msgstr ""
#. Tag: para
-#: query_criteria.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"You can specify association fetching semantics at runtime using "
-"<literal>setFetchMode()</literal>."
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
msgstr ""
-"Puedes especificar la semántica de recuperación de "
-"asociaciones en tiempo de ejecución usando <literal>setFetchMode()</"
-"literal>."
-#. Tag: programlisting
-#: query_criteria.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
msgstr ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
#. Tag: para
-#: query_criteria.xml:152
#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
+msgid "Dynamic association fetching"
+msgstr "Recuperación dinámica de asociaciones"
+
+#. Tag: para
+#, no-c-format
msgid ""
+"You can specify association fetching semantics at runtime using "
+"<literal>setFetchMode()</literal>."
+msgstr ""
+"Puede especificar la semántica de recuperación de asociaciones en tiempo de "
+"ejecución usando <literal>setFetchMode()</literal>. "
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
msgstr ""
-"Esta consulta recuperará tanto <literal>mate</literal> como "
-"<literal>kittens</literal> por unión exterior (outer join). Ver <xref "
-"linkend=\"performance-fetching\"/> para más información."
+"Esta consulta recuperará tanto <literal>mate</literal> como "
+"<literal>kittens</literal> por unión exterior (outer join). Consulte la "
+"<xref linkend=\"performance-fetching\" /> para obtener más información."
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
-msgstr "Consultas por ejemplos"
+msgstr "Consultas ejemplo"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
"construct a query criterion from a given instance."
msgstr ""
-"La clase <literal>org.hibernate.criterion.Example</literal> te permite "
+"La clase <literal>org.hibernate.criterion.Example</literal> le permite "
"construir un criterio de consulta a partir de una instancia dada."
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
"null valued properties are excluded."
msgstr ""
-"Las propiedades de versión, los identificadores y las asociaciones "
-"son ignorados. Por defecto, las propiedades valuadas a nulo son excluí"
-"das."
+"Las propiedades de versión, los identificadores y las asociaciones se "
+"ignoran. Por defecto, las propiedades valuadas como nulas se excluyen."
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
-msgstr "Puedes ajustar cómo se aplica el <literal>Example</literal>."
+msgstr "Puede modificar la aplicación del <literal>Example</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
msgstr ""
-"Puedes incluso usar ejemplos para colocar criterios sobre objetos asociados."
+"Puede incluso usar ejemplos para colocar criterios sobre objetos asociados."
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
-msgstr "Proyecciones, agregación y agrupamiento"
+msgstr "Proyecciones, agregación y agrupamiento"
#. Tag: para
-#: query_criteria.xml:190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
"factory for <literal>Projection</literal> instances. You can apply a "
"projection to a query by calling <literal>setProjection()</literal>."
msgstr ""
"La clase <literal>org.hibernate.criterion.Projections</literal> es una "
-"fábrica de instancias de <literal>Projection</literal>. Aplicamos una "
-"proyección a una consulta llamando a <literal>setProjection()</"
-"literal>."
+"fábrica de instancias de <literal>Projection</literal>. Puede aplicar una "
+"proyección a una consulta llamando a <literal>setProjection()</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
"projection types are defined to be <emphasis>grouping projections</"
"emphasis>, which also appear in the SQL <literal>group by</literal> clause."
msgstr ""
-"No es necesario ningún \"group by\" explícito en una consulta por "
+"No es necesario ningún \"agrupamiento por\" explÃcito en una consulta por "
"criterios. Ciertos tipos de proyecciones son definidos para ser "
-"<emphasis>proyecciones agrupadas</emphasis>, que además aparecen en "
-"la cláusula SQL <literal>group by</literal>."
+"<emphasis>proyecciones agrupadas</emphasis>, que además aparecen en la "
+"cláusula SQL <literal>group by</literal>."
#. Tag: para
-#: query_criteria.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
"referred to in restrictions or orderings. Here are two different ways to do "
"this:"
msgstr ""
-"Puede opcionalmente asignarse un alias a una proyección, de modo que "
-"el valor proyectado pueda ser referido en restricciones u ordenamientos. "
-"Aquí hay dos formas diferentes de hacer esto:"
+"Puede asignar un alias a una proyección de modo que el valor proyectado "
+"pueda ser referido en restricciones u ordenamientos. Aquà hay dos formas "
+"diferentes de hacer esto:"
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -648,233 +314,60 @@
"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
"you add the projection to a projection list:"
msgstr ""
-"Los métodos <literal>alias()</literal> y <literal>as()</literal> "
-"simplemente envuelven una instancia de proyección en otra instancia "
-"de <literal>Projection</literal> con alias. Como un atajo, puedes asignar un "
-"alias cuando agregas la proyección a una lista de proyecciones:"
+"Los métodos <literal>alias()</literal> y <literal>as()</literal> simplemente "
+"envuelven una instancia de proyección en otra instancia de "
+"<literal>Projection</literal> con alias. Como atajo, puede asignar un alias "
+"cuando agregue la proyección a una lista de proyecciones:"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
"projections:"
msgstr ""
-"Puedes también usar <literal>Property.forName()</literal> para "
-"expresar proyecciones:"
+"También puede usar <literal>Property.forName()</literal> para expresar "
+"proyecciones:"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
msgstr "Consultas y subconsultas separadas"
#. Tag: para
-#: query_criteria.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
"outside the scope of a session and then execute it using an arbitrary "
"<literal>Session</literal>."
msgstr ""
-"La clase <literal>DetachedCriteria</literal> te deja crear una consulta "
-"fuera del ámbito de una sesión, y entonces ejecutarla luego "
-"usando alguna <literal>Session</literal> arbitraria."
+"La clase <literal>DetachedCriteria</literal> le permite crear una consulta "
+"fuera del ámbito de una sesión y luego ejecutarla usando una "
+"<literal>Session</literal> arbitraria."
-#. Tag: programlisting
-#: query_criteria.xml:244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-
-#. Tag: para
-#: query_criteria.xml:246
-#, fuzzy, no-c-format
-msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
"subquery. Criterion instances involving subqueries can be obtained via "
"<literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
-"También una <literal>DetachedCriteria</literal> puede usarse para "
-"expresar una subconsulta. Las instancias de Criterion implicando "
-"subconsultas pueden obtenerse vía <literal>Subqueries</literal> o "
+"También puede utilizar una <literal>DetachedCriteria</literal> para expresar "
+"una subconsulta. Las instancias de Criterion involucrando subconsultas se "
+"pueden obtener por medio de <literal>Subqueries</literal> o "
"<literal>Property</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:252
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-
#. Tag: para
-#: query_criteria.xml:256
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Correlated subqueries are also possible:"
-msgstr "Incluso son posibles las subconsultas correlacionadas:"
+msgstr "Las subconsultas correlacionadas tambieÅ son posibles:"
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
msgstr "Consultas por identificador natural"
#. Tag: para
-#: query_criteria.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
"efficient because query cache invalidation occurs too frequently. However, "
@@ -883,106 +376,39 @@
"applications, this kind of query occurs frequently. The criteria API "
"provides special provision for this use case."
msgstr ""
-"Para la mayoría de consultas, incluyendo las consultas por criterios, "
-"el caché de consulta no es muy eficiente, debido a que la "
-"invalidación del caché de consulta ocurre demasiado "
-"frecuentemente. Sin embargo, hay un tipo especial de consulta donde podemos "
-"optimizar el algoritmo de invalidación de caché: búsquedas por "
-"una clave natural constante. En algunas aplicaciones, este tipo de consulta, "
-"ocurre frecuentemente. La API de criterios brinda especial provisión "
-"para este caso de uso."
+"Para la mayorÃa de las consultas, incluyendo las consultas por criterios, el "
+"caché de consulta no es muy eficiente debido a que la invalidación del caché "
+"de consulta ocurre con demasiada frecuencia. Sin embargo, hay un tipo "
+"especial de consulta donde podemos optimizar el algoritmo de invalidación de "
+"caché: búsquedas de una clave natural constante. En algunas aplicaciones, "
+"este tipo de consulta, ocurre frecuentemente. La API de criterios brinda una "
+"provisión especial para este caso."
#. Tag: para
-#: query_criteria.xml:279
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
"literal> and enable use of the second-level cache."
msgstr ""
-"Primero, debes mapear la clave natural de tu entidad usando <literal><"
-"natural-id></literal>, y habilitar el uso del caché de segundo "
-"nivel."
+"Primero, mapee la clave natural de su entidad utilizando <literal><"
+"natural-id></literal> y habilite el uso del caché de segundo nivel."
-#. Tag: programlisting
-#: query_criteria.xml:284
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-
-#. Tag: para
-#: query_criteria.xml:286
-#, fuzzy, no-c-format
-msgid ""
"This functionality is not intended for use with entities with "
"<emphasis>mutable</emphasis> natural keys."
msgstr ""
-"Nota que esta funcionalidad no está pensada para uso con entidades "
-"con claves naturales <emphasis>mutable</emphasis>."
+"Esta funcionalidad no está pensada para uso con entidades con claves "
+"naturales <emphasis>mutables</emphasis>."
#. Tag: para
-#: query_criteria.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
"naturalId()</literal> allows you to make use of the more efficient cache "
"algorithm."
msgstr ""
-"Ahora, <literal>Restrictions.naturalId()</literal> nos permite hacer uso de "
-"el algoritmo de caché más eficiente."
-
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-
-#~ msgid ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
-#~ msgstr ""
-#~ "Puedes especificar fácilmente restricciones sobre las entidades "
-#~ "relacionadas al navegar asociaciones usando <literal>createCriteria()</"
-#~ "literal>."
-
-#~ msgid "Next, enable the Hibernate query cache."
-#~ msgstr "Seguido, habilita el caché de consulta de Hibernate."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Una vez que haya habilitado el caché de consulta de Hibernate, "
+"<literal>Restrictions.naturalId()</literal> le permite hacer uso del "
+"algoritmo de caché más eficiente."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,41 +1,51 @@
-#, fuzzy
+# translation of query_hql.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: query_hql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 17:47+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
-msgstr "HQL: El Lenguaje de Consulta de Hibernate"
+msgstr "HQL: El lenguaje de consulta de Hibernate"
#. Tag: para
-#: query_hql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
-"Hibernate está equipado con un lenguaje de consulta extremadamente "
-"potente que (intencionalmente en absoluto) se parece muchísimo a SQL. "
-"Pero no te engañes por la sintaxis; HQL es completamente orientado a "
-"objetos, entendiendo nociones como herencia, polimorfismo y asociació"
-"n."
+"Hibernate utiliza un lenguaje de consulta potente (HQL) que se parece a SQL. "
+"Sin embargo, comparado con SQL, HQL es completamente orientado a objetos y "
+"comprende nociones como herencia, polimorfismo y asociación."
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
-msgstr "Sensibilidad a Mayúsculas"
+msgstr "Sensibilidad a mayúsculas"
#. Tag: para
-#: query_hql.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</"
@@ -43,281 +53,165 @@
"hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, "
"and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
-"Las consultas son insensibles a mayúsculas, excepto para nombres de "
-"clases Java y propiedades. De modo que <literal>SeLeCT</literal> es lo mismo "
-"que <literal>sELEct</literal> e igual a <literal>SELECT</literal>, pero "
-"<literal>org.hibernate.eg.FOO</literal> no lo es a <literal>org.hibernate.eg."
-"Foo</literal> y <literal>foo.barSet</literal> no es igual a <literal>foo."
-"BARSET</literal>."
+"Las consultas no son sensibles a mayúsculas, a excepción de los nombres de "
+"las clases y propiedades Java. De modo que <literal>SeLeCT</literal> es lo "
+"mismo que <literal>sELEct</literal> e igual a <literal>SELECT</literal>, "
+"pero <literal>org.hibernate.eg.FOO</literal> no es lo mismo que <literal>org."
+"hibernate.eg.Foo</literal> y <literal>foo.barSet</literal> no es igual a "
+"<literal>foo.BARSET</literal>."
#. Tag: para
-#: query_hql.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
-"Este manual usa palabras clave HQL en minúsculas. Algunos usuarios "
-"encuentran las consultas con palabras clave en mayúsculas más "
-"leíbles, pero encontramos esta convención fea cuando se encaja "
-"en código Java."
+"Este manual utiliza palabras clave HQL en minúsculas. Algunos usuarios "
+"encuentran que las consultas con palabras clave en mayúsculas son más "
+"fáciles de leer, pero esta convención no es apropiada para las peticiones "
+"incluidas en código Java."
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
-msgstr "La cláusula from"
+msgstr "La cláusula from"
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
-msgstr "La consulta más simple posible de Hibernate es de la forma:"
+msgstr "La consulta posible más simple de Hibernate es de esta manera:"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr "<![CDATA[from eg.Cat]]>"
-
#. Tag: para
-#: query_hql.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
"not usually need to qualify the class name, since <literal>auto-import</"
"literal> is the default. For example:"
msgstr ""
-"que simplemente devuelve todas las instancias de la clase <literal>eg.Cat</"
-"literal>. Usualmente no necesitamos cualificar el nombre de la clase, ya que "
-"<literal>auto-import</literal> está por defecto. De modo que casi "
-"siempre escribimos solamente:"
+"Esto retorna todas las instancias de la clase <literal>eg.Cat</literal>. "
+"Usualmente no es necesario calificar el nombre de la clase ya que "
+"<literal>auto-import</literal> es el valor predeterminado. Por ejemplo:"
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr "<![CDATA[from Cat]]>"
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
+"Con el fin de referirse al <literal>Cat</literal> en otras partes de la "
+"petición, necesitará asignar un <emphasis>alias</emphasis>. Por ejemplo:"
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr "<![CDATA[from Cat as cat]]>"
-
#. Tag: para
-#: query_hql.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
"literal> instances, so you can use that alias later in the query. The "
"<literal>as</literal> keyword is optional. You could also write:"
msgstr ""
-"Esta consulta asigna el alias <literal>cat</literal> a las instancias de "
-"<literal>Cat</literal>, de modo que podríamos usar ese alias luego en "
-"la consulta. La palabra clave <literal>as</literal> es opcional; "
-"también podríamos escribir:"
+"Esta consulta asigna el alias <literal>cat</literal> a las instancias "
+"<literal>Cat</literal>, de modo que puede utilizar ese alias luego en la "
+"consulta. La palabra clave <literal>as</literal> es opcional. También podrÃa "
+"escribir:"
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr "<![CDATA[from Cat cat]]>"
-
#. Tag: para
-#: query_hql.xml:91
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
msgstr ""
-"Pueden aparecer múltiples clases, resultando en un producto "
-"cartesiano o unión \"cruzada\" (cross join)."
+"Pueden aparecer múltiples clases, lo que causa un producto cartesiano o una "
+"unión \"cruzada\" (cross join)."
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr "<![CDATA[from Formula, Parameter]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr "<![CDATA[from Formula as form, Parameter as param]]>"
-
#. Tag: para
-#: query_hql.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat</literal>)."
msgstr ""
-"Se considera buena práctica el nombrar los alias de consulta usando "
-"una inicial en minúsculas, consistente con los estándares de "
-"nombrado de Java para variables locales (por ejemplo, <literal>domesticCat</"
-"literal>)."
+"Se considera como una buena práctica el nombrar los alias de consulta "
+"utilizando una inicial en minúsculas, consistente con los estándares de "
+"nombrado de Java para las variables locales (por ejemplo, "
+"<literal>domesticCat</literal>). "
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
msgstr "Asociaciones y uniones (joins)"
#. Tag: para
-#: query_hql.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join</literal>. For example:"
msgstr ""
-"Podemos también asignar aliases a entidades asociadas, e incluso a "
-"elementos de una colección de valores, usando una <literal>join</"
-"literal>."
+"También puede asignar alias a entidades asociadas o a elementos de una "
+"colección de valores utilizando una <literal>join</literal>. Por ejemplo:"
-#. Tag: programlisting
-#: query_hql.xml:114
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
-"<![CDATA[from Cat as cat \n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
+msgid "The supported join types are borrowed from ANSI SQL:"
+msgstr "Los tipos de uniones soportadas se tomaron prestados de ANSI SQL"
-#. Tag: programlisting
-#: query_hql.xml:116
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
+msgid "<literal>inner join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: programlisting
-#: query_hql.xml:118
-#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr "<![CDATA[from Formula form full join form.parameter param]]>"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>inner join</literal>"
#. Tag: para
-#: query_hql.xml:120
#, fuzzy, no-c-format
-msgid "The supported join types are borrowed from ANSI SQL:"
-msgstr "Los tipos de join soportados son prestados de ANSI SQL"
+msgid "<literal>right outer join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: literal
-#: query_hql.xml:127
-#, no-c-format
-msgid "inner join"
-msgstr "inner join"
-
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "left outer join"
-
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
-msgstr "right outer join"
-
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
-msgstr "<literal>full join</literal> (no útil usualmente)"
+msgstr "<literal>full join</literal> (no es útil usualmente)"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
"<literal>right outer join</literal> constructs may be abbreviated."
msgstr ""
"Las construcciones <literal>inner join</literal>, <literal>left outer join</"
-"literal> y <literal>right outer join</literal> pueden ser abreviadas."
+"literal> y <literal>right outer join</literal> se pueden abreviar."
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-"<![CDATA[from Cat as cat \n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
"keyword."
msgstr ""
-"Puedes proveer condiciones de unión extra usando la palabra clave "
+"Puede proveer condiciones extras de unión utilizando la palabra clave "
"<literal>with</literal> de HQL."
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-"<![CDATA[from Cat as cat \n"
-" left join cat.kittens as kitten \n"
-" with kitten.bodyWeight > 10.0]]>"
-
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
-"En adición, un \"fetch\" join permite a las asociaciones o "
-"colecciones de valores ser inicializadas junto a sus objetos padres, usando "
-"una sola selección. Esto es particularmente útil en el case de "
-"una colección. Efectivamente sobrescribe el outer join y las "
-"declaraciones perezosas (lazy) del fichero de mapeo para asociaciones y "
-"colecciones. Ver <xref linkend=\"performance-fetching\"/> para más "
-"información."
+"Una unión de \"recuperación\" le permite a las asociaciones o colecciones de "
+"valores que se inicialicen junto a sus objetos padres, usando un sólo "
+"select. Esto es útil particularmente en el caso de una colección. "
+"Efectivamente sobrescribe la unión externa y las declaraciones perezosas del "
+"archivo de mapeo para asociaciones y colecciones. Consulte <xref linkend="
+"\"performance-fetching\" /> para obtener más información."
-#. Tag: programlisting
-#: query_hql.xml:169
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-"<![CDATA[from Cat as cat \n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-
-#. Tag: para
-#: query_hql.xml:171
-#, fuzzy, no-c-format
-msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where</literal> clause "
"(or any other clause). The associated objects are also not returned directly "
@@ -325,32 +219,17 @@
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
-"Usualmente a un fetch join no se necesita asignársele un alias, "
-"porque los objetos asociados no deben ser usados en la cláusula "
-"<literal>where</literal> (ni en cualquier otra cláusula). Ademá"
-"s, los objetos asociados no son devueltos directamente en los resultados de "
-"consulta. En cambio, pueden ser accedidos vía el objeto padre. La "
-"única razón por la que necesitaríamos un alias es "
-"estamos uniendo recursivamente otra colección:"
+"Usualmente no se necesita asignársele un alias a una unión de recuperación "
+"ya que los objetos asociados no se deben utilizar en la cláusula "
+"<literal>where</literal> (ni en cualquier otra cláusula). Los objetos "
+"asociados no se retornan directamente en los resultados de la consulta. En "
+"cambio, se pueden acceder por medio del objeto padre. La única razón por la "
+"que necesitarÃamos un alias es si estamos uniendo recursivamente otra "
+"colección:"
-#. Tag: programlisting
-#: query_hql.xml:179
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-"<![CDATA[from Cat as cat \n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-
-#. Tag: para
-#: query_hql.xml:181
-#, fuzzy, no-c-format
-msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
"using <literal>iterate()</literal> (though <literal>scroll()</literal> can "
"be used). <literal>Fetch</literal> should be used together with "
@@ -366,79 +245,61 @@
"<literal>full join fetch</literal> and <literal>right join fetch</literal> "
"are not meaningful."
msgstr ""
-"Nota que la construcción <literal>fetch</literal> no puede usarse en "
-"consultas llamadas usando <literal>scroll()</literal> o <literal>iterate()</"
-"literal>. Ni debe usarse <literal>fetch</literal> junto con "
-"<literal>setMaxResults()</literal> o <literal>setFirstResult()</literal>. "
-"Tampoco puede usarse <literal>fetch</literal> junto a una condición "
-"<literal>with</literal> ad hoc. Es posible crear un producto cartesiano "
-"trayendo por join más de una colección en una colecció"
-"n, así que ten cuidado en este caso. Traer por join múltiples "
-"roles de colección también da a veces resultados inesperados "
-"para mapeos de bag, así que sé cuidadoso sobre cómo "
-"formular tus consultas en este caso. Finalmente, nota que <literal>full join "
-"fetch</literal> y <literal>right join fetch</literal> no son significativos."
+"La construcción <literal>fetch</literal> no puede utilizarse en consultas "
+"llamadas que usen <literal>iterate()</literal> (aunque se puede utilizar "
+"<literal>scroll()</literal>). <literal>Fetch</literal> se debe usar junto "
+"con <literal>setMaxResults()</literal> o <literal>setFirstResult()</literal> "
+"ya que estas operaciones se basan en las filas de resultados, las cuales "
+"usualmente contienen duplicados para la recuperación de colección temprana, "
+"por lo tanto, el número de filas no es lo que se esperarÃa. <literal>Fetch</"
+"literal> no se debe usar junto con una condición <literal>with</literal> "
+"improvisadas. Es posible crear un producto cartesiano por medio de una "
+"recuperación por union más de una colección en una consulta, asà que tenga "
+"cuidado en este caso. La recuperación por unión de múltiples roles de "
+"colección también da resultados a veces inesperados para mapeos de bag, asà "
+"que tenga cuidado de cómo formular sus consultas en este caso. Finalmente, "
+"observe que <literal>full join fetch</literal> y <literal>right join fetch</"
+"literal> no son significativos."
#. Tag: para
-#: query_hql.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
"properties in the first query immediately using <literal>fetch all "
"properties</literal>."
msgstr ""
-"Si estás usando recuperación perezosa a nivel de propiedad "
-"(con instrumentación de bytecode), es posible forzar a Hibernate a "
-"traer las propiedades perezosas inmediatamente (en la primera consulta) "
-"usando <literal>fetch all properties</literal>."
+"Si está utilizando una recuperación perezosa a nivel de propiedad (con "
+"instrumentación de código byte), es posible forzar a Hibernate a traer las "
+"propiedades perezosas inmediatamente utilizando <literal>fetch all "
+"properties</literal>."
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr "<![CDATA[from Document fetch all properties order by name]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
-msgstr "UNTRANSLATED!!! Forms of join syntax"
+msgstr "Formas de sintaxis unida"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
"and <literal>explicit</literal>."
msgstr ""
-"HQL supports two forms of association joining: <literal>implicit</literal> "
-"and <literal>explicit</literal>."
+"HQL soporta dos formas de unión de asociación: <literal>implicit</literal> y "
+"<literal>explicit</literal>."
#. Tag: para
-#: query_hql.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
"literal> form, that is, where the join keyword is explicitly used in the "
"from clause. This is the recommended form."
msgstr ""
-"The queries shown in the previous section all use the <literal>explicit</"
-"literal> form where the join keyword is explicitly used in the from clause. "
-"This is the recommended form."
+"Las consultas que se mostraron en la sección anterior todas utilizan la "
+"forma <literal>explicit</literal>, en donde la palabra clave join se utiliza "
+"explÃcitamente en la claúsula from. Esta es la forma recomendada."
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -446,56 +307,46 @@
"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
"literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-"The <literal>implicit</literal> form does not use the join keyword. Instead, "
-"the associations are \"dereferenced\" using dot-notation. <literal>implicit</"
-"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
-"literal> join result in inner joins in the resulting SQL statement."
+"La forma <literal>implicit</literal> no utiliza la palabra clave join. Las "
+"asociaciones se \"desreferencian\" utilizando la notación punto. Uniones "
+"<literal>implicit</literal> pueden aparecer en cualquiera de las cláusulas "
+"HQL. La unión <literal>implicit</literal> causa uniones internas (inner "
+"joins) en la declaración SQL que resulta."
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-
#. Tag: title
-#: query_hql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Referring to identifier property"
-msgstr "Refering to identifier property"
+msgstr "Referencia a la propiedad identificadora "
#. Tag: para
-#: query_hql.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr ""
-"There are, generally speaking, 2 ways to refer to an entity's identifier "
-"property:"
+"Hay dos maneras de referirse a la propiedad identificadora de una entidad:"
#. Tag: para
-#: query_hql.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
-"The special property (lowercase) <literal>id</literal> may be used to "
-"reference the identifier property of an entity <emphasis>provided that "
-"entity does not define a non-identifier property named id</emphasis>."
+"La propiedad especial (en minúsculas) <literal>id</literal> se puede "
+"utilizar para referenciar la propiedad identificadora de una entidad "
+"<emphasis> dado que la entidad no defina un id del nombre de la propiedad no-"
+"identificadora</emphasis>."
#. Tag: para
-#: query_hql.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
msgstr ""
-"If the entity defines a named identifier property, you may use that property "
-"name."
+"Si la entidad define una propiedad identificadora nombrada, puede utilizar "
+"ese nombre de propiedad."
#. Tag: para
-#: query_hql.xml:250
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
@@ -503,15 +354,15 @@
"the special <literal>id</literal> property can be used to reference the "
"identifier property."
msgstr ""
-"References to composite identifier properties follow the same naming rules. "
-"If the entity has a non-identifier property named id, the composite "
-"identifier property can only be referenced by its defined named; otherwise, "
-"the special <literal>id</literal> property can be used to rerference the "
-"identifier property."
+"Las referencias a propiedades identificadoras compuestas siguen las mismas "
+"reglas de nombramiento. Si la entidad no tiene un id del nombre de la "
+"propiedad no-identificadora, la propiedad identificadora compuesta sólamente "
+"puede ser referenciada por su nombre definido. De otra manera se puede "
+"utilizar la propiedad <literal>id</literal> especial para referenciar la "
+"propiedad identificadora."
#. Tag: para
-#: query_hql.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
"In previous versions, <literal>id</literal> <emphasis>always</emphasis> "
@@ -519,323 +370,156 @@
"ramification of that decision was that non-identifier properties named "
"<literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
-"Note: this has changed significantly starting in version 3.2.2. In previous "
-"versions, <literal>id</literal> <emphasis>always</emphasis> referred to the "
-"identifier property no matter what its actual name. A ramification of that "
-"decision was that non-identifier properties named <literal>id</literal> "
-"could never be referenced in Hibernate queries."
+"Observe que esto ha cambiado bastante desde la version 3.2.2. En versiones "
+"previas, <literal>id</literal><emphasis>siempre</emphasis> se referÃa a la "
+"propiedad identificadora sin importar su nombre real. Una ramificación de "
+"esa decisión fue que las propiedades no-identificadoras nombradas "
+"<literal>id</literal> nunca podrÃan ser referenciadas en consultas de "
+"Hibernate. "
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
-msgstr "La cláusula select"
+msgstr "La cláusula select"
#. Tag: para
-#: query_hql.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
-"La cláusula <literal>select</literal> escoge qué objetos y "
-"propiedades devolver in el conjunto resultado de la consulta. Considera:"
+"La cláusula <literal>select</literal> escoge qué objetos y propiedades "
+"devolver en el conjunto de resultados de la consulta. Considere lo siguiente:"
-#. Tag: programlisting
-#: query_hql.xml:276
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-"<![CDATA[select mate \n"
-"from Cat as cat \n"
-" inner join cat.mate as mate]]>"
-
-#. Tag: para
-#: query_hql.xml:278
-#, fuzzy, no-c-format
-msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
"literal>s. You can express this query more compactly as:"
msgstr ""
-"La consulta seleccionará <literal>mate</literal>s de otros "
-"<literal>Cat</literal>s. Realmente, puedes expresar esta consulta en un "
-"forma más compacta como:"
+"La consulta seleccionará <literal>mate</literal>s de otros <literal>Cat</"
+"literal>s. Puede expresar esta consulta de una manera más compacta asÃ:"
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr "<![CDATA[select cat.mate from Cat cat]]>"
-
#. Tag: para
-#: query_hql.xml:285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
-"Las consultas pueden devolver propiedades de cualquier tipo de valor "
-"incluyendo propiedades de tipo componente:"
+"Las consultas pueden retornar propiedades de cualquier tipo de valor "
+"incluyendo propiedades del tipo componente:"
-#. Tag: programlisting
-#: query_hql.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-
-#. Tag: para
-#: query_hql.xml:293
-#, fuzzy, no-c-format
-msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]</literal>:"
msgstr ""
-"Las consultas pueden devolver múltiples objetos y/o propiedades como "
-"un array de tipo <literal>Object[]</literal>,"
+"Las consultas pueden retornar múltiples objetos y/o propiedades como un "
+"array de tipo <literal>Object[]</literal>,"
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-"<![CDATA[select mother, offspr, mate.name \n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-
#. Tag: para
-#: query_hql.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or as a <literal>List</literal>:"
-msgstr "o como una <literal>List</literal>,"
+msgstr "O como una <literal>List</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:304
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-
-#. Tag: para
-#: query_hql.xml:306
-#, fuzzy, no-c-format
-msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr ""
-"asumiendo que la clase <literal>Family</literal> tiene un constructor "
-"apropiado."
+"O asumiendo que la clase <literal>Family</literal> tiene un constructor "
+"apropiado - como un objeto Java de tipo seguro:"
-#. Tag: programlisting
-#: query_hql.xml:310
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-msgstr ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-
-#. Tag: para
-#: query_hql.xml:313
-#, fuzzy, no-c-format
-msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
msgstr ""
-"Puedes asignar aliases para seleccionar expresiones usando <literal>as</"
+"Puede asignar alias para expresiones seleccionadas utilizando <literal>as</"
"literal>:"
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
"literal>:"
msgstr ""
-"Esto es lo más útil cuando se usa junto con <literal>select "
-"new map</literal>:"
+"Esto es lo más útil cuando se usa junto con <literal>select new map</"
+"literal>:"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
msgstr ""
-"Esta consulta devuelve un <literal>Map</literal> de aliases a valores "
+"Esta consulta devuelve un <literal>Map</literal> de alias a valores "
"seleccionados."
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
-msgstr "Funciones de agregación"
+msgstr "Funciones de agregación"
#. Tag: para
-#: query_hql.xml:334
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
msgstr ""
-"Las consultas HQL pueden incluso devolver resultados de funciones de "
-"agregación sobre propiedades:"
+"Las consultas HQL pueden incluso retornar resultados de funciones de "
+"agregación sobre propiedades:"
-#. Tag: programlisting
-#: query_hql.xml:338
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
+msgid "The supported aggregate functions are:"
+msgstr "Las funciones de agregación soportadas son:"
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
-msgid "The supported aggregate functions are:"
-msgstr "Las funciones de agregación soportadas son"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
+msgstr "<literal>avg(...), sum(...), min(...), max(...)</literal>"
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
-msgstr "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>count(*)</literal>"
+msgstr "<literal>count(*)</literal>"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
-
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
-msgstr "count(...), count(distinct ...), count(all...)"
-
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
+msgstr "<literal>count(...), count(distinct ...), count(all...)</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
msgstr ""
-"Puedes usar operadores aritméticos, concatenación, y funciones "
-"SQL reconocidas en la cláusula select:"
+"Puede utilizar operadores aritméticos, concatenación y funciones SQL "
+"reconocidas en la cláusula select:"
-#. Tag: programlisting
-#: query_hql.xml:376
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-"<![CDATA[select cat.weight + sum(kitten.weight) \n"
-"from Cat cat \n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-
-#. Tag: para
-#: query_hql.xml:380
-#, fuzzy, no-c-format
-msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
-"Las palabras clave <literal>distinct</literal> y <literal>all</literal> "
-"pueden ser usadas y tienen las misma semántica que en SQL."
+"Las palabras clave <literal>distinct</literal> y <literal>all</literal> se "
+"pueden utilizar y tienen las misma semántica que en SQL."
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
-msgstr "Consultas polimórficas"
+msgstr "Consultas polimórficas"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
msgstr "Una consulta como:"
#. Tag: para
-#: query_hql.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
"like <literal>DomesticCat</literal>. Hibernate queries can name "
@@ -844,291 +528,173 @@
"that extend that class or implement the interface. The following query would "
"return all persistent objects:"
msgstr ""
-"devuelve instancias no sólo de <literal>Cat</literal>, sino "
-"también de subclases como <literal>DomesticCat</literal>. Las "
-"consultas de Hibernate pueden mencionar <emphasis>cualquier</emphasis> clase "
-"o interface Java en la cláusula <literal>from</literal>. La consulta "
-"devolverá instancias de todas las clases persistentes que extiendan "
-"esa clase o implementen la interface. La siguiente consulta devolverí"
-"a todos los objetos persistentes."
+"devuelve instancias no sólamente de <literal>Cat</literal>, sino también de "
+"subclases como <literal>DomesticCat</literal>. Las consultas de Hibernate "
+"pueden nombrar <emphasis>cualquier</emphasis> clase o interfaz Java en la "
+"cláusula <literal>from</literal>. La consulta retornará instancias de todas "
+"las clases persistentes que extiendan esa clase o implementen la interfaz. "
+"La siguiente consulta retornarÃa todos los objetos persistentes."
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr "<![CDATA[from java.lang.Object o]]>"
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
"persistent classes:"
msgstr ""
-"La interface <literal>Named</literal> podría ser implementada por "
-"varias clases persistentes:"
+"La interfaz <literal>Named</literal> se podrÃa implementar por varias clases "
+"persistentes:"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-
#. Tag: para
-#: query_hql.xml:415
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
"literal>. This means that the <literal>order by</literal> clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()</literal>."
msgstr ""
-"Nota que estas dos últimas consultas requerirán más de "
-"un <literal>SELECT</literal> SQL. Esto significa que la cláusula "
-"<literal>order by</literal> no ordenará correctamente todo el "
-"conjunto resultado. (Significa además que no puedes llamar estas "
-"consulta usando <literal>Query.scroll()</literal>.)"
+"Las dos últimas consultas requerirán más de un <literal>SELECT</literal> "
+"SQL. Esto significa que la cláusula <literal>order by</literal> no ordenará "
+"correctamente todo el conjunto que resulte. También significa que no puede "
+"llamar estas consulta usando <literal>Query.scroll()</literal>."
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
-msgstr "La cláusula where"
+msgstr "La cláusula where"
#. Tag: para
-#: query_hql.xml:426
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
-"La cláusula where te permite estrechar la lista de instancias "
-"devueltas. Si no existe ningún alias. puedes referirte a las "
+"La cláusula <literal>where</literal> le permite refinar la lista de "
+"instancias retornadas. Si no existe ningún alias, puede referirse a las "
"propiedades por nombre:"
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr "<![CDATA[from Cat where name='Fritz']]>"
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
-msgstr "Si existe un alias, usan un nombre cualificado de propiedad:"
+msgstr "Si existe un alias, use un nombre de propiedad calificado:"
-#. Tag: programlisting
-#: query_hql.xml:437
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-msgstr "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-
#. Tag: para
-#: query_hql.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
-msgstr "devuelve las instancias de <literal>Cat</literal> llamadas 'Fritz'."
+msgstr "Esto retorna instancias de <literal>Cat</literal> llamadas 'Fritz'."
#. Tag: para
-#: query_hql.xml:443
-#, fuzzy, no-c-format
-msgid ""
-"The following query: <programlisting><![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]></programlisting> returns all instances of "
-"<literal>Foo</literal> with an instance of <literal>bar</literal> with a "
-"<literal>date</literal> property equal to the <literal>startDate</literal> "
-"property of the <literal>Foo</literal>. Compound path expressions make the "
-"<literal>where</literal> clause extremely powerful. Consider the following:"
-msgstr ""
-"devolverá todas las instancias de <literal>Foo</literal> para las "
-"cuales exista una instancia de <literal>bar</literal> con una propiedad "
-"<literal>date</literal> igual a la propiedad <literal>startDate</literal> "
-"del <literal>Foo</literal>. Las expresiones de ruta compuestas hacen la "
-"cláusula <literal>where</literal> extremadamente potente. Considera:"
-
-#. Tag: programlisting
-#: query_hql.xml:454
#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
+msgid "The following query:"
+msgstr "La siguiente petición:"
#. Tag: para
-#: query_hql.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This query translates to an SQL query with a table (inner) join. For example:"
+"returns all instances of <literal>Foo</literal> with an instance of "
+"<literal>bar</literal> with a <literal>date</literal> property equal to the "
+"<literal>startDate</literal> property of the <literal>Foo</literal>. "
+"Compound path expressions make the <literal>where</literal> clause extremely "
+"powerful. Consider the following:"
msgstr ""
-"Esta consulta se traduce en una consulta SQL con una unión de tabla "
-"(interna). Si fueses a escribir algo como"
+"retornará todas las instancias de <literal>Foo</literal> con una instancia "
+"de <literal>bar</literal> con una propiedad <literal>date</literal> igual a "
+"la propiedad <literal>startDate</literal> del <literal>Foo</literal>. Las "
+"expresiones de ruta compuestas hacen la cláusula <literal>where</literal> "
+"extremadamente potente. Tome en consideración lo siguiente:"
-#. Tag: programlisting
-#: query_hql.xml:461
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
+"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-"<![CDATA[from Foo foo \n"
-"where foo.bar.baz.customer.address.city is not null]]>"
+"Esta consulta se traduce a una consulta SQL con una unión de tabla "
+"(interna). Por ejemplo:"
#. Tag: para
-#: query_hql.xml:463
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
-"terminarías con una consulta que requeriría cuatro uniones de "
-"tablas en SQL."
+"terminarÃa con una consulta que requerirÃa cuatro uniones de tablas en SQL. "
#. Tag: para
-#: query_hql.xml:467
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
"properties, but also instances:"
msgstr ""
-"El operador <literal>=</literal> puede ser usado para comparar no só"
-"lo propiedades, sino también instancias:"
+"El operador <literal>=</literal> se puede utilizar para comparar no "
+"sólamente propiedades sino también instancias:"
-#. Tag: programlisting
-#: query_hql.xml:472
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:474
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-"<![CDATA[select cat, mate \n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-
#. Tag: para
-#: query_hql.xml:476
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
-"La propiedad especial (en minúsculas) <literal>id</literal> puede ser "
-"usada para referenciar el identificador único de un objeto. "
-"(También puedes usar su nombre de propiedad.)"
+"La propiedad especial <literal>id</literal> (en minúsculas) se puede "
+"utilizar para referenciar el identificador único de un objeto. Consulte "
+"<xref linkend=\"queryhql-identifier-property\" /> para obtener más "
+"información."
-#. Tag: programlisting
-#: query_hql.xml:482
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-
#. Tag: para
-#: query_hql.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The second query is efficient and does not require a table join."
-msgstr ""
-"La segunda consulta es eficiente. ¡No se requiere ninguna unió"
-"n de tablas!"
+msgstr "La segunda consulta es eficiente y no se necesita una unión de tablas."
#. Tag: para
-#: query_hql.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person</literal> has composite identifiers consisting "
"of <literal>country</literal> and <literal>medicareNumber</literal>:"
msgstr ""
-"También pueden ser usadas las propiedades de identificadores "
-"compuestos. Supón que <literal>Person</literal> tiene un "
-"identificador compuesto consistente en <literal>country</literal> y "
-"<literal>medicareNumber</literal>."
+"También se pueden utilizar las propiedades de identificadores compuestos. "
+"Considere el siguiente ejemplo en donde <literal>Person</literal> tiene "
+"identificadores compuestos que consisten de <literal>country</literal> y "
+"<literal>medicareNumber</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
-msgstr ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU' \n"
-" and person.id.medicareNumber = 123456]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:496
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU' \n"
-" and account.owner.id.medicareNumber = 123456]]>"
-
#. Tag: para
-#: query_hql.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Once again, the second query does not require a table join."
-msgstr ""
-"Una vez más, la segunda consulta no requiere ninguna unión de "
-"tablas."
+msgstr "Una vez más, la segunda consulta no requiere una unión de tablas."
#. Tag: para
-#: query_hql.xml:502
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
+"Consulte <xref linkend=\"queryhql-identifier-property\" /> para obtener "
+"mayor información con relación a la referencia de propiedades del "
+"identificador)"
#. Tag: para
-#: query_hql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
-"Asimismo, la propiedad especial <literal>class</literal> acccede al valor "
-"discriminador de una instancia en el caso de persistencia polimó"
-"rfica. Un nombre de clase Java embebido en la cláusula where "
-"será traducido a su valor discriminador."
+"La propiedad especial <literal>class</literal> acccede al valor "
+"discriminador de una instancia en el caso de persistencia polimórfica. Un "
+"nombre de clase Java incluÃdo en la cláusula where será traducido a su valor "
+"discriminador."
-#. Tag: programlisting
-#: query_hql.xml:513
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-
#. Tag: para
-#: query_hql.xml:515
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
-"You may also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
-"details."
+"También puede utilizar componentes o tipos de usuario compuesto o "
+"propiedades de dichos tipos de componentes. Consulte <xref linkend="
+"\"queryhql-components\" /> para obtener más detalles."
#. Tag: para
-#: query_hql.xml:520
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
"<literal>class</literal> that allows you to express a join in the following "
@@ -1136,79 +702,60 @@
"<literal><any></literal>):"
msgstr ""
"Un tipo \"any\" tiene las propiedades especiales <literal>id</literal> y "
-"<literal>class</literal>, permiténdonos expresar un join en la "
-"siguiente forma (donde <literal>AuditLog.item</literal> es una propiedad "
-"mapeada con <literal><any></literal>)."
+"<literal>class</literal>, permiténdole expresar una unión de la siguiente "
+"forma (en donde <literal>AuditLog.item</literal> es una propiedad mapeada "
+"con <literal><any></literal>)."
-#. Tag: programlisting
-#: query_hql.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-"<![CDATA[from AuditLog log, Payment payment \n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-
-#. Tag: para
-#: query_hql.xml:528
-#, fuzzy, no-c-format
-msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
"would refer to the values of completely different database columns in the "
"above query."
msgstr ""
-"Nota que <literal>log.item.class</literal> y <literal>payment.class</"
-"literal> harían referencia a los valores de columnas de base de datos "
+"La <literal>log.item.class</literal> y <literal>payment.class</literal> "
+"harÃan referencia a los valores de columnas de la base de datos "
"completamente diferentes en la consulta anterior."
#. Tag: title
-#: query_hql.xml:536
#, no-c-format
msgid "Expressions"
msgstr "Expresiones"
#. Tag: para
-#: query_hql.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
"following:"
msgstr ""
-"Las expresiones permitidas en la cláusula <literal>where</literal> "
-"incluyen la mayoría del tipo de cosas que podrías escribir en "
-"SQL:"
+"Las expresiones utilizadas en la cláusula <literal>where</literal> incluyen "
+"lo siguiente:"
#. Tag: para
-#: query_hql.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
-msgstr "operadores matemáticos <literal>+, -, *, /</literal>"
+msgstr "operadores matemáticos: <literal>+, -, *, /</literal>"
#. Tag: para
-#: query_hql.xml:550
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
"literal>"
msgstr ""
-"operadores de comparación binarios <literal>=, >=, <=, <"
-">, !=, like</literal>"
+"operadores de comparación binarios: <literal>=, >=, <=, <>, !=, "
+"like</literal>"
#. Tag: para
-#: query_hql.xml:555
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
-msgstr "operadores lógicos <literal>and, or, not</literal>"
+msgstr "operadores lógicos <literal>and, or, not</literal>"
#. Tag: para
-#: query_hql.xml:560
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
-msgstr "Paréntesis <literal>( )</literal>, indicando agrupación"
+msgstr "Paréntesis <literal>( )</literal> que indican agrupación"
#. Tag: para
-#: query_hql.xml:565
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1222,7 +769,6 @@
"<literal>member of</literal> y <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:578
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
@@ -1232,28 +778,25 @@
"y caso \"buscado\", <literal>case when ... then ... else ... end</literal>"
#. Tag: para
-#: query_hql.xml:584
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
"</literal>"
msgstr ""
-"concatenación de cadenas <literal>...||...</literal> o <literal>concat"
+"concatenación de cadenas <literal>...||...</literal> o <literal>concat"
"(...,...)</literal>"
#. Tag: para
-#: query_hql.xml:589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
msgstr ""
-"<literal>current_date()</literal>, <literal>current_time()</literal>, "
+"<literal>current_date()</literal>, <literal>current_time()</literal> y "
"<literal>current_timestamp()</literal>"
#. Tag: para
-#: query_hql.xml:595
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
@@ -1261,38 +804,34 @@
msgstr ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
-"<literal>year(...)</literal>,"
+"and <literal>year(...)</literal>"
#. Tag: para
-#: query_hql.xml:602
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
-"Cualquier función u operador definido por EJB-QL 3.0: "
-"<literal>substring(), trim(), lower(), upper(), length(), locate(), abs(), "
-"sqrt(), bit_length(), mod()</literal>"
+"Cualquier función u operador definido por EJB-QL 3.0: <literal>substring(), "
+"trim(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), "
+"mod()</literal>"
#. Tag: para
-#: query_hql.xml:608
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> y <literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:613
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
"readable string"
msgstr ""
-"<literal>str()</literal> para convertir valores numéricos o "
-"temporales a una cadena legible."
+"<literal>str()</literal> para convertir valores numéricos o temporales a una "
+"cadena legible."
#. Tag: para
-#: query_hql.xml:619
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1301,23 +840,21 @@
"the underlying database"
msgstr ""
"<literal>cast(... as ...)</literal>, donde el segundo argumento es el nombre "
-"de un tipo Hibernate , y <literal>extract(... from ...)</literal> si "
-"<literal>cast()</literal> y <literal>extract()</literal> fuesen soportados "
-"por la base de datos subyacente."
+"de un tipo de Hibernate , y <literal>extract(... from ...)</literal> si "
+"<literal>cast()</literal> y <literal>extract()</literal> es soportado por la "
+"base de datos subyacente."
#. Tag: para
-#: query_hql.xml:627
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
"joined indexed collection"
msgstr ""
-"la función <literal>index()</literal> de HQL, que se aplica a alias "
-"de una colección indexada unida."
+"la función <literal>index()</literal> de HQL, que se aplica a alias de una "
+"colección indexada unida."
#. Tag: para
-#: query_hql.xml:633
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
@@ -1325,42 +862,38 @@
"functions that can be quantified using <literal>some, all, exists, any, in</"
"literal>."
msgstr ""
-"funciones de HQL que tomen expresiones de ruta valuadas en colecciones: "
+"Las funciones de HQL que tomen expresiones de ruta valuadas en colecciones: "
"<literal>size(), minelement(), maxelement(), minindex(), maxindex()</"
-"literal>, junto a las funciones especiales <literal>elements()</literal> and "
-"<literal>indices</literal> que pueden ser cuantificadas usando "
+"literal>, junto con las funciones especiales <literal>elements()</literal> e "
+"<literal>indices</literal>, las cuales se pueden cuantificar utilizando "
"<literal>some, all, exists, any, in</literal>."
#. Tag: para
-#: query_hql.xml:641
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
"<literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</"
"literal>"
msgstr ""
-"Cualquier función escalar SQL soportada por la base de datos como "
+"Cualquier función escalar SQL soportada por la base de datos como "
"<literal>sign()</literal>, <literal>trunc()</literal>, <literal>rtrim()</"
-"literal>, <literal>sin()</literal>"
+"literal> y <literal>sin()</literal>"
#. Tag: para
-#: query_hql.xml:647
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
-msgstr "parámetros posicionales JDBC <literal>?</literal>"
+msgstr "parámetros posicionales JDBC <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:652
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
"and <literal>:x1</literal>"
msgstr ""
-"parámetros con nombre <literal>:name</literal>, <literal>:start_date</"
-"literal>, <literal>:x1</literal>"
+"parámetros con nombre <literal>:name</literal>, <literal>:start_date</"
+"literal> y <literal>:x1</literal>"
#. Tag: para
-#: query_hql.xml:657
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
@@ -1370,134 +903,66 @@
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:663
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
"TABBY</literal>"
msgstr ""
-"constantes Java <literal>public static final</literal> <literal>eg.Color."
+"constantes Java <literal>public static final</literal><literal>eg.Color."
"TABBY</literal>"
#. Tag: para
-#: query_hql.xml:669
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
-"<literal>in</literal> y <literal>between</literal> pueden usarse como sigue:"
+"<literal>in</literal> y <literal>between</literal> pueden utilizarse asÃ:"
-#. Tag: programlisting
-#: query_hql.xml:673
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-
-#. Tag: programlisting
-#: query_hql.xml:675
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-
#. Tag: para
-#: query_hql.xml:677
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The negated forms can be written as follows:"
-msgstr "y pueden escribirse las formas negadas"
+msgstr "Las formas negadas se pueden escribir asÃ:"
-#. Tag: programlisting
-#: query_hql.xml:681
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-"<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-
-#. Tag: programlisting
-#: query_hql.xml:683
-#, no-c-format
msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-
-#. Tag: para
-#: query_hql.xml:685
-#, fuzzy, no-c-format
-msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
"be used to test for null values."
msgstr ""
-"Asimismo, <literal>is null</literal> y <literal>is not null</literal> pueden "
-"ser usadas para comprobar valores nulos."
+"De manera similar, <literal>is null</literal> y <literal>is not null</"
+"literal> se pueden utilizar para probar valores nulos."
#. Tag: para
-#: query_hql.xml:690
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
-"Los booleanos pueden ser fácilmente usados en expresiones declarando "
-"substituciones de consulta HQL en la configuración de Hibernate:"
+"Los valores booleanos se pueden utilizar fácilmente en expresiones "
+"declarando substituciones de consulta HQL en la configuración de Hibernate:"
-#. Tag: programlisting
-#: query_hql.xml:695
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-
#. Tag: para
-#: query_hql.xml:697
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
"literal> with the literals <literal>1</literal> and <literal>0</literal> in "
"the translated SQL from this HQL:"
msgstr ""
-"Esto remplazará las palabras clave <literal>true</literal> y "
-"<literal>false</literal> con los literales <literal>1</literal> y "
-"<literal>0</literal> en el SQL traducido de este HQL:"
+"Esto remplazará las palabras clave <literal>true</literal> y <literal>false</"
+"literal> con los literales <literal>1</literal> y <literal>0</literal> en el "
+"SQL traducido de este HQL:"
-#. Tag: programlisting
-#: query_hql.xml:702
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr "<![CDATA[from Cat cat where cat.alive = true]]>"
-
#. Tag: para
-#: query_hql.xml:704
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can test the size of a collection with the special property "
"<literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
-"Puedes comprobar el tamaño de una colección con la propiedad "
-"especial <literal>size</literal>, o la función especial <literal>size"
-"()</literal>."
+"Puede comprobar el tamaño de una colección con la propiedad especial "
+"<literal>size</literal> o la función especial <literal>size()</literal>."
-#. Tag: programlisting
-#: query_hql.xml:709
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:711
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-
#. Tag: para
-#: query_hql.xml:713
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
"using <literal>minindex</literal> and <literal>maxindex</literal> functions. "
@@ -1505,315 +970,103 @@
"of basic type using the <literal>minelement</literal> and "
"<literal>maxelement</literal> functions. For example:"
msgstr ""
-"Para colecciones indexadas, puedes referirte a los índices má"
-"ximo y mínimo usando las funciones <literal>minindex</literal> y "
-"<literal>maxindex</literal>. Similarmente, puedes referirte a los elementos "
-"máximo y mínimo de una colección de tipo básico "
-"usando las funciones <literal>minelement</literal> y <literal>maxelement</"
-"literal>."
+"Para las colecciones indexadas, puede referirse a los Ãndices máximo y "
+"mÃnimo utilizando las funciones <literal>minindex</literal> y "
+"<literal>maxindex</literal>. De manera similar, se puede referir a los "
+"elementos máximo y mÃnimo de una colección de tipo básico utilizando las "
+"funciones <literal>minelement</literal> y <literal>maxelement</literal>. Por "
+"ejemplo: "
-#. Tag: programlisting
-#: query_hql.xml:721
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:723
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:725
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-
-#. Tag: para
-#: query_hql.xml:727
-#, fuzzy, no-c-format
-msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
"supported when passed the element or index set of a collection "
"(<literal>elements</literal> and <literal>indices</literal> functions) or "
"the result of a subquery (see below):"
msgstr ""
-"Las funciones SQL <literal>any, some, all, exists, in</literal> están "
-"soportadas cuando se les pasa el conjunto de elementos o índices de "
-"una colección (funciones <literal>elements</literal> y "
-"<literal>indices</literal>) o el resultado de una subconsulta (ver debajo)."
+"Las funciones SQL <literal>any, some, all, exists, in</literal> están "
+"soportadas cuando se les pasa el conjunto de elementos o Ãndices de una "
+"colección (las funciones <literal>elements</literal> e <literal>indices</"
+"literal>) o el resultado de una subconsulta (vea a continuación):"
-#. Tag: programlisting
-#: query_hql.xml:733
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:735
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:737
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:739
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:741
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-
-#. Tag: para
-#: query_hql.xml:743
-#, fuzzy, no-c-format
-msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
"<literal>maxelement</literal> - can only be used in the where clause in "
"Hibernate3."
msgstr ""
-"Nota que estas construcciones - <literal>size</literal>, <literal>elements</"
+"Note que estas construcciones - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
-"<literal>maxelement</literal> - pueden ser usadas solamente en la clá"
-"usula where en Hibernate3."
+"<literal>maxelement</literal> - solo se pueden utilizar en la cláusula where "
+"en Hibernate3."
#. Tag: para
-#: query_hql.xml:750
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
-"Los elementos de colecciones indexadas (arrays, listas, mapas) pueden ser "
-"referidos por índice (en una cláusula where solamente):"
+"Los elementos de colecciones indexadas (arrays, listas, mapas) se pueden "
+"referir por Ãndice sólamente en una cláusula where:"
-#. Tag: programlisting
-#: query_hql.xml:755
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:757
-#, no-c-format
msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:759
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-
-#. Tag: programlisting
-#: query_hql.xml:761
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-
-#. Tag: para
-#: query_hql.xml:763
-#, fuzzy, no-c-format
-msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
msgstr ""
-"La expresión dentro de <literal>[]</literal> puede incluso ser una "
-"expresión aritmética."
+"La expresión dentro de <literal>[]</literal> puede incluso ser una expresión "
+"aritmética:"
-#. Tag: programlisting
-#: query_hql.xml:767
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-
-#. Tag: para
-#: query_hql.xml:769
-#, fuzzy, no-c-format
-msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
"elements of a one-to-many association or collection of values."
msgstr ""
-"HQL provee además el función prefabricada <literal>index()</"
-"literal>, para elementos de una asociación uno-a-muchos o "
-"colección de valores."
+"HQL también proporciona la función incorporada <literal>index()</literal>, "
+"para los elementos de una asociación uno-a-muchos o una colección de valores."
-#. Tag: programlisting
-#: query_hql.xml:774
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-"<![CDATA[select item, index(item) from Order order \n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-
#. Tag: para
-#: query_hql.xml:776
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
-"Pueden usarse las funciones SQL escalares soportadas por la base de datos "
-"subyacente"
+"Se pueden utilizar las funciones SQL escalares soportadas por la base de "
+"datos subyacente:"
-#. Tag: programlisting
-#: query_hql.xml:780
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-
#. Tag: para
-#: query_hql.xml:782
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
-"Si aún no estás convencido de todo esto, piensa cuánto "
-"más largo y menos leíble sería la siguiente consulta en "
-"SQL:"
+"Considere qué tan larga y menos leÃble serÃa la siguiente consulta en SQL:"
-#. Tag: programlisting
-#: query_hql.xml:787
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-
#. Tag: para
-#: query_hql.xml:789
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
msgstr "<emphasis>Ayuda:</emphasis> algo como"
-#. Tag: programlisting
-#: query_hql.xml:793
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-
#. Tag: title
-#: query_hql.xml:798
#, no-c-format
msgid "The order by clause"
-msgstr "La cláusula order by"
+msgstr "La cláusula order by"
#. Tag: para
-#: query_hql.xml:800
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
-"La lista devuelta por una consulta puede ser ordenada por cualquier "
-"propiedad de una clase devuelta o componentes:"
+"La lista retornada por una consulta se puede ordenar por cualquier propiedad "
+"de una clase retornada o componentes:"
-#. Tag: programlisting
-#: query_hql.xml:804
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-
#. Tag: para
-#: query_hql.xml:806
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
@@ -1823,119 +1076,58 @@
"ordenamiento ascendente o descendente respectivamente."
#. Tag: title
-#: query_hql.xml:813
#, no-c-format
msgid "The group by clause"
-msgstr "La cláusula group by"
+msgstr "La cláusula group by"
#. Tag: para
-#: query_hql.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
-"Una consulta que devuelve valores agregados puede ser agrupada por cualquier "
-"propiedad de una clase devuelta o componentes:"
+"Una consulta que retorna valores agregados se puede agrupar por cualquier "
+"propiedad de una clase retornada o componentes:"
-#. Tag: programlisting
-#: query_hql.xml:819
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat) \n"
-"from Cat cat\n"
-"group by cat.color]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:821
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-"<![CDATA[select foo.id, avg(name), max(name) \n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-
#. Tag: para
-#: query_hql.xml:823
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
-msgstr ""
-"Se permite también una cláusula <literal>having</literal>."
+msgstr "Se permite también una cláusula <literal>having</literal>."
-#. Tag: programlisting
-#: query_hql.xml:827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat) \n"
-"from Cat cat\n"
-"group by cat.color \n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-
-#. Tag: para
-#: query_hql.xml:829
-#, fuzzy, no-c-format
-msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
"literal> and <literal>order by</literal> clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
-"Las funciones y funciones de agregación SQL están permitidas "
-"en las cláusulas <literal>having</literal> y <literal>order by</"
-"literal>, si están soportadas por la base de datos subyacente (por "
-"ejemplo, no en MySQL)."
+"Las funciones SQL y las funciones de agregación SQL están permitidas en las "
+"cláusulas <literal>having</literal> y <literal>order by</literal>, si están "
+"soportadas por la base de datos subyacente (por ejemplo, no lo están en "
+"MySQL). "
-#. Tag: programlisting
-#: query_hql.xml:835
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-
-#. Tag: para
-#: query_hql.xml:837
-#, fuzzy, no-c-format
-msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
"literal> clause can contain arithmetic expressions. Hibernate also does not "
"currently expand a grouped entity, so you cannot write <literal>group by "
"cat</literal> if all properties of <literal>cat</literal> are non-"
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
-"Nota que ni la cláusula <literal>group by</literal> ni la clá"
-"usula <literal>order by</literal> pueden contener expresiones aritmé"
-"ticas."
+"La cláusula <literal>group by</literal> ni la cláusula <literal>order by</"
+"literal> pueden contener expresiones aritméticas. Hibernate tampocoo expande "
+"una entidad agrupada asà que no puede escribir <literal>group by cat</"
+"literal> si todas las propiedades de <literal>cat</literal> son no-"
+"agregadas. Tiene que enumerar todas la propiedades no-agregadas "
+"explÃcitamente."
#. Tag: title
-#: query_hql.xml:849
#, no-c-format
msgid "Subqueries"
msgstr "Subconsultas"
#. Tag: para
-#: query_hql.xml:851
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1944,106 +1136,36 @@
"to an alias in the outer query) are allowed."
msgstr ""
"Para bases de datos que soportan subconsultas, Hibernate soporta "
-"subconsultas dentro de consultas. Una subconsulta debe ser encerrada entre "
-"paréntesis (frecuentemente por una llamada a una función de "
-"agregación SQL). Incluso se permiten subconsultas correlacionadas "
-"(subconsultas que hacen referencia a un alias en la consulta exterior)."
+"subconsultas dentro de consultas. Una subconsulta se debe encerrar entre "
+"paréntesis (frecuentemente por una llamada a una función de agregación SQL). "
+"Incluso se permiten subconsultas correlacionadas (subconsultas que se "
+"refieren a un alias en la consulta exterior)."
-#. Tag: programlisting
-#: query_hql.xml:857
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-"<![CDATA[from Cat as fatcat\n"
-" where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-" )]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:859
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-"<![CDATA[from DomesticCat as cat\n"
-" where cat.name = some (\n"
-" select name.nickName from Name as "
-"name\n"
-" )]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:861
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-"<![CDATA[from Cat as cat\n"
-" where not exists (\n"
-" from Cat as mate where mate.mate = "
-"cat\n"
-" )]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:863
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-"<![CDATA[from DomesticCat as cat\n"
-" where cat.name not in (\n"
-" select name.nickName from Name as "
-"name\n"
-" )]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:865
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-" from Cat as cat]]>"
-
#. Tag: para
-#: query_hql.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
-"Note that HQL subqueries may occur only in the select or where clauses."
+"Note que las subconsultas HQL pueden ocurrir sólamente en las cláusulas "
+"select o where."
#. Tag: para
-#: query_hql.xml:871
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
-"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more details."
+"Note que las subconsultas también pueden utilizar la sintaxis <literal>row "
+"value constructor</literal>. Consulte la <xref linkend=\"queryhql-tuple\" /> "
+"para obtener más información."
#. Tag: title
-#: query_hql.xml:879
#, no-c-format
msgid "HQL examples"
msgstr "Ejemplos de HQL"
#. Tag: para
-#: query_hql.xml:881
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
@@ -2051,16 +1173,14 @@
"projects. Please note that most queries you will write will be much simpler "
"than the following examples."
msgstr ""
-"Las consultas de Hibernate pueden ser abolutamente potentes y complejas, De "
-"hecho, el poder del lenguaje de consulta es uno de los puntos principales de "
-"venta de Hibernate. He aquí algunos consultas de ejemplo muy "
-"similares a consultas que he usado en un proyecto reciente. ¡Nota que "
-"la mayoría de las consultas que escribirás som mucho má"
-"s simples que estas!"
+"Las consultas de Hibernate pueden ser bastante potentes y complejas. De "
+"hecho, el poder del lenguaje de consulta es uno de las fortalezas "
+"principales de Hibernate. He aquà algunos ejemplos de consultas muy "
+"similares a las consultas de proyectos recientes. Note que la mayorÃa de las "
+"consultas que escribirá son mucho más simples que los siguientes ejemplos."
#. Tag: para
-#: query_hql.xml:887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
@@ -2070,102 +1190,25 @@
"<literal>PRODUCT</literal>, <literal>CATALOG</literal> and <literal>PRICE</"
"literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
-"La siguiente consulta devuelve el order id, número de items y valor "
-"total de la orden para todas las ordenes inpagas de un cliente en particular "
-"y valor total mínimo dados, ordenando los resultados por valor total. "
-"Al determinar los precios, usa el catálogo actual. La consulta SQL "
+"La siguiente consulta retorna el order id, número de items y valor total "
+"mÃnimo dado y el valor de la orden para todas las órdenes no pagadas de un "
+"cliente en particular. Los resultados se ordenan de acuerdo al valor total. "
+"Al determinar los precios, usa el catálogo actual. La consulta SQL "
"resultante, contra las tablas <literal>ORDER</literal>, <literal>ORDER_LINE</"
-"literal>, <literal>PRODUCT</literal>, <literal>CATALOG</literal> and "
-"<literal>PRICE</literal> tiene cuatro joins interiores y una subselect (no "
-"correlacionada)."
+"literal>, <literal>PRODUCT</literal>, <literal>CATALOG</literal> y "
+"<literal>PRICE</literal> tiene cuatro uniones interiores y una subselección "
+"(no correlacionada)."
-#. Tag: programlisting
-#: query_hql.xml:896
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate \n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-
#. Tag: para
-#: query_hql.xml:898
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
"my query was really more like this:"
msgstr ""
-"¡Qué monstruo! Realmente, en la vida real, no estoy muy "
-"afilado en subconsultas, de modo que mi consulta fue realmente algo como "
-"esto:"
+"¡Qué monstruo! Realmente, en la vida real, no me gustan mucho las "
+"subconsultas, de modo que mi consulta fue realmente algo como esto:"
-#. Tag: programlisting
-#: query_hql.xml:903
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-
#. Tag: para
-#: query_hql.xml:905
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -2175,84 +1218,23 @@
"<literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal> and "
"<literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
-"La próxima consulta cuenta el número de pagos en cada estado, "
-"excluyendo todos los pagos en el estado <literal>AWAITING_APPROVAL</literal> "
-"donde el estado más reciente fue hecho por el usuario actual. Se "
-"traduce en una consulta SQL con dos joins interiores y una subselect "
-"correlacionada contra las tablas <literal>PAYMENT</literal>, "
-"<literal>PAYMENT_STATUS</literal> y <literal>PAYMENT_STATUS_CHANGE</literal>."
+"La próxima consulta cuenta el número de pagos en cada estado, excluyendo "
+"todos los pagos en el estado <literal>AWAITING_APPROVAL</literal> donde el "
+"cambio más reciente al estado lo hizo el usuario actual. Se traduce en una "
+"consulta SQL con dos uniones interiores y una subselección correlacionada "
+"contra las tablas <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</"
+"literal> y <literal>PAYMENT_STATUS_CHANGE</literal>."
-#. Tag: programlisting
-#: query_hql.xml:913
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-"<![CDATA[select count(payment), status.name \n"
-"from Payment as payment \n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = ( \n"
-" select max(change.timeStamp) \n"
-" from PaymentStatusChange change \n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-
-#. Tag: para
-#: query_hql.xml:915
-#, fuzzy, no-c-format
-msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
-"Si hubiese mapeado la colección <literal>statusChanges</literal> como "
-"una lista, en vez de un conjunto, la consulta habría sido mucho "
-"más simple de escribir."
+"Si la colección <literal>statusChanges</literal> se mapeara como una lista, "
+"en vez de un conjunto, la consulta habrÃa sido mucho más simple de escribir."
-#. Tag: programlisting
-#: query_hql.xml:920
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-"<![CDATA[select count(payment), status.name \n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-
#. Tag: para
-#: query_hql.xml:922
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -2263,372 +1245,156 @@
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and "
"<literal>ORG_USER</literal> tables."
msgstr ""
-"La próxima consulta usa la función <literal>isNull()</literal> "
-"de MS SQL Server para devolver todas las cuentas y pagos inpagos de la "
-"organización a la que pertenece el usuario actual. Se traduce en una "
-"consulta SQL con tres joins interiores, un join exterior y una subconsulta "
-"contra las tablas <literal>ACCOUNT</literal>, <literal>PAYMENT</literal>, "
-"<literal>PAYMENT_STATUS</literal>, <literal>ACCOUNT_TYPE</literal>, "
-"<literal>ORGANIZATION</literal> y <literal>ORG_USER</literal>."
+"La próxima consulta utiliza la función <literal>isNull()</literal> de MS SQL "
+"Server para devolver todas las cuentas y pagos aún no cancelados de la "
+"organización a la que pertenece el usuario actual. Se traduce como una "
+"consulta SQL con tres uniones interiores, una unión exterior y una "
+"subselección contra las tablas <literal>ACCOUNT</literal>, <literal>PAYMENT</"
+"literal>, <literal>PAYMENT_STATUS</literal>, <literal>ACCOUNT_TYPE</"
+"literal>, <literal>ORGANIZATION</literal> y <literal>ORG_USER</literal>."
-#. Tag: programlisting
-#: query_hql.xml:931
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-
#. Tag: para
-#: query_hql.xml:933
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
-"Para algunas bases de datos, necesitaríamos eliminar la subselect "
+"Para algunas bases de datos, necesitarÃamos eliminar la subselección "
"(correlacionada)."
-#. Tag: programlisting
-#: query_hql.xml:937
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-
#. Tag: title
-#: query_hql.xml:942
#, no-c-format
msgid "Bulk update and delete"
-msgstr "Sentencias UPDATE y DELETE masivas"
+msgstr "Declaraciones UPDATE y DELETE masivas"
#. Tag: para
-#: query_hql.xml:944
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
-"HQL soporta ahora sentencias UPDATE y DELETE en HQL. Ver <xref linkend="
-"\"batch-direct\"/> para detalles."
+"HQL ahora soporta declaraciones <literal>update</literal>, <literal>delete</"
+"literal> e <literal>insert ... select ...</literal>. Consulte la <xref "
+"linkend=\"batch-direct\" /> para obtener mayor información. "
#. Tag: title
-#: query_hql.xml:952
#, no-c-format
msgid "Tips & Tricks"
msgstr "Consejos y Trucos"
#. Tag: para
-#: query_hql.xml:954
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can count the number of query results without returning them:"
-msgstr ""
-"Puedes contar el número de resultados de una consulta sin devolverlos "
-"realmente:"
+msgstr "Puede contar el número de resultados de una consulta sin retornarlos:"
-#. Tag: programlisting
-#: query_hql.xml:958
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-
#. Tag: para
-#: query_hql.xml:960
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
-"Para ordenar un resultado por el tamaño de una colección, usa "
-"la siguiente consulta:"
+"Para ordenar un resultado por el tamaño de una colección, utilice la "
+"siguiente consulta:"
-#. Tag: programlisting
-#: query_hql.xml:964
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr \n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-
#. Tag: para
-#: query_hql.xml:966
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
-"Si tu base de datos soporta subselects, puedes colocar una condición "
-"sobre el tamaño de selección en la cláusula where de tu "
-"consulta:"
+"Si su base de datos soporta subselecciones, puede colocar una condición "
+"sobre el tamaño de selección en la cláusula where de su consulta:"
-#. Tag: programlisting
-#: query_hql.xml:971
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-
#. Tag: para
-#: query_hql.xml:973
-#, fuzzy, no-c-format
-msgid "If your database does not support subselects, use the following query:"
-msgstr "Si tu base de datos no soporta subselects, usa la siguiente consulta:"
-
-#. Tag: programlisting
-#: query_hql.xml:977
#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
+msgid "If your database does not support subselects, use the following query:"
msgstr ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
+"Si su base de datos no soporta subselecciones, utilice la siguiente "
+"consulta: "
#. Tag: para
-#: query_hql.xml:980
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
-"Como esta solución no puede devolver un <literal>User</literal> con "
-"cero mensajes debido a la unión interior, la siguiente forma es "
-"también útil:"
+"Como esta solución no puede retornar un <literal>User</literal> con cero "
+"mensajes debido a la unión interior, la siguiente forma también es útil:"
-#. Tag: programlisting
-#: query_hql.xml:985
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-
#. Tag: para
-#: query_hql.xml:987
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
-"Las propiedades de un JavaBean pueden ser ligadas al parámetros de "
+"Las propiedades de un JavaBean pueden ser ligadas a los parámetros de "
"consulta con nombre:"
-#. Tag: programlisting
-#: query_hql.xml:991
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-
#. Tag: para
-#: query_hql.xml:993
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
"with a filter:"
msgstr ""
-"Las colecciones son paginables usando la interface <literal>Query</literal> "
+"Las colecciones son paginables usando la interfaz <literal>Query</literal> "
"con un filtro:"
-#. Tag: programlisting
-#: query_hql.xml:997
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-
#. Tag: para
-#: query_hql.xml:999
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
-"Los elementos de colección pueden ser ordenados o agrupados usando un "
-"filtro de consulta:"
+"Los elementos de colección se pueden ordenar o agrupar usando un filtro de "
+"consulta:"
-#. Tag: programlisting
-#: query_hql.xml:1003
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-
#. Tag: para
-#: query_hql.xml:1005
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
-msgstr ""
-"Puedes hallar el tamaño de una colección sin inicializarla:"
+msgstr "Puede hallar el tamaño de una colección sin inicializarla:"
-#. Tag: programlisting
-#: query_hql.xml:1009
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-
#. Tag: title
-#: query_hql.xml:1014
#, no-c-format
msgid "Components"
-msgstr "UNTRANSLATED! Components"
+msgstr "Componentes"
#. Tag: para
-#: query_hql.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select</literal> clause as "
"follows:"
msgstr ""
-"Components might be used in just about every way that simple value types can "
-"be used in HQL queries. They can appear in the <literal>select</literal> "
-"clause:"
+"Los componentes se pueden utilizar de la misma manera en que se pueden "
+"utilizar los tipos de valores simples en consultas HQL. Pueden aparecer en "
+"la cláusula <literal>select</literal> asÃ:"
-#. Tag: programlisting
-#: query_hql.xml:1021 query_hql.xml:1067
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr "<![CDATA[select p.name from Person p]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:1022
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr "<![CDATA[select p.name.first from Person p]]>"
-
#. Tag: para
-#: query_hql.xml:1024
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where</literal> clause:"
msgstr ""
-"where the Person's name property is a component. Components can also be used "
-"in the <literal>where</literal> clause:"
+"en donde el nombre de la Persona es un componente. Los componentes también "
+"se pueden utilizar en la cláusula <literal>where</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1029
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr "<![CDATA[from Person p where p.name = :name]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:1030
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr "<![CDATA[from Person p where p.name.first = :firstName]]>"
-
#. Tag: para
-#: query_hql.xml:1032
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
-msgstr "Components can also be used in the <literal>order by</literal> clause:"
+msgstr ""
+"Los componentes también se pueden utilizar en la cláusula <literal>where</"
+"literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1036
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr "<![CDATA[from Person p order by p.name]]>"
-
-#. Tag: programlisting
-#: query_hql.xml:1037
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr "<![CDATA[from Person p order by p.name.first]]>"
-
#. Tag: para
-#: query_hql.xml:1039
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
-"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
-"value constructors</link>."
+"Otro uso común de los componentes se encuentra en <xref linkend=\"queryhql-"
+"tuple\" />."
#. Tag: title
-#: query_hql.xml:1045
#, no-c-format
msgid "Row value constructor syntax"
-msgstr "Row value constructor syntax"
+msgstr "Sintaxis del constructor de valores por fila"
#. Tag: para
-#: query_hql.xml:1047
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
"syntax, sometimes referred to AS <literal>tuple</literal> syntax, even "
@@ -2636,111 +1402,56 @@
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
-"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
-"syntax (sometimes called <literal>tuple</literal> syntax), even though the "
-"underlying database may not support that notion. Here we are generally "
-"referring to multi-valued comparisons, typically associated with components. "
-"Consider an entity Person which defines a name component:"
+"HQL soporta la utilización de la sintaxis <literal>row value constructor</"
+"literal> de SQL ANSI que a veces se denomina sintaxis <literal>tuple</"
+"literal>, aunque puede que la base de datos subyacentes no soporte esa "
+"noción. Aquà estamos refiriéndonos generalmente a las comparaciones "
+"multivaluadas que se asocian tÃpicamente con los componentes. Considere una "
+"entidad Persona, la cual define un componente de nombre:"
-#. Tag: programlisting
-#: query_hql.xml:1054
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-
-#. Tag: para
-#: query_hql.xml:1056
-#, fuzzy, no-c-format
-msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
-"That's valid syntax, although a little verbose. It be nice to make this a "
-"bit more concise and use <literal>row value constructor</literal> syntax:"
+"Esa es una sintaxis válida aunque un poco verbosa. Puede hacerlo un poco más "
+"conciso utilizando la sintaxis <literal>row value constructor</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1061
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-"<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-
#. Tag: para
-#: query_hql.xml:1063
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
"clause:"
msgstr ""
-"It can also be useful to specify this in the <literal>select</literal> "
-"clause:"
+"También puede ser útil especificar esto en la cláusula <literal>select</"
+"literal>:"
#. Tag: para
-#: query_hql.xml:1069
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
-"Another time using <literal>row value constructor</literal> syntax can be "
-"beneficial is when using subqueries needing to compare against multiple "
-"values:"
+"También puede ser beneficioso el utilizar la sintaxis <literal>row value "
+"constructor</literal> cuando se utilizan subconsultas que necesitan "
+"compararse con valores múltiples:"
-#. Tag: programlisting
-#: query_hql.xml:1074
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-"<![CDATA[from Cat as cat\n"
-" where not ( cat.name, cat.color ) "
-"in (\n"
-" select cat.name, cat.color from "
-"DomesticCat cat\n"
-" )]]>"
-
-#. Tag: para
-#: query_hql.xml:1076
-#, fuzzy, no-c-format
-msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
-"One thing to consider when deciding if you want to use this syntax is that "
-"the query will be dependent upon the ordering of the component sub-"
-"properties in the metadata."
+"Algo que se debe tomar en consideración al decidir si quiere usar esta "
+"sintaxis es que la consulta dependerá del orden de las sub-propiedades "
+"componentes en los metadatos."
-#~ msgid ""
-#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
-#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
-#~ "of the query."
-#~ msgstr ""
-#~ "La mayoría del tiempo, necesitarás asignar un "
-#~ "<emphasis>alias</emphasis>, ya que querrás referirte al "
-#~ "<literal>Cat</literal> en otras partes de la consulta."
+#, fuzzy
+#~ msgid "left outer join"
+#~ msgstr "<literal>left outer join</literal>"
-#~ msgid "or as an actual typesafe Java object,"
-#~ msgstr "o como un objeto real Java de tipo seguro,"
-
-#~ msgid ""
-#~ "<![CDATA[select foo\n"
-#~ "from Foo foo, Bar bar\n"
-#~ "where foo.startDate = bar.date]]>"
-#~ msgstr ""
-#~ "<![CDATA[select foo \n"
-#~ "from Foo foo, Bar bar\n"
-#~ "where foo.startDate = bar.date]]>"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#, fuzzy
+#~ msgid "right outer join"
+#~ msgstr "<literal>right outer join</literal>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,21 +1,35 @@
-#, fuzzy
+# translation of query_sql.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: query_sql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 07:45+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
msgstr "SQL Nativo"
#. Tag: para
-#: query_sql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
"This is useful if you want to utilize database-specific features such as "
@@ -23,133 +37,92 @@
"provides a clean migration path from a direct SQL/JDBC based application to "
"Hibernate."
msgstr ""
-"Puedes también expresar consultas en el dialecto SQL nativo de tu "
-"base de datos. Esto es útil si quieres utilizar aspectos especí"
-"ficos de base de datos tal como consejos (hints) de consulta o la palabra "
-"clave <literal>CONNECT</literal> en Oracle. Provee además una clara "
-"ruta de migración desde una aplicación basada en SQL/JDBC "
-"directo a Hibernate."
+"También puede expresar sus consultas en el dialecto SQL nativo de su base de "
+"datos. Esto es útil si quiere utilizar las caracterÃsticas especificas de la "
+"base de datos tales como hints de consulta o la palabra clave "
+"<literal>CONNECT</literal> en Oracle. También proporciona una ruta de "
+"migración limpia desde una aplicación basada en SQL/JDBC a Hibernate."
#. Tag: para
-#: query_sql.xml:37
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
"procedures, for all create, update, delete, and load operations."
msgstr ""
-"Hibernate3 te permite especificar SQL escrito a mano (incluyendo "
-"procedimientos almacenados) para todas las operaciones de creación, "
-"actualización, borrado y carga."
+"Hibernate3 le permite especificar SQL escrito a mano, incluyendo "
+"procedimientos almacenados para todas las operaciones create, update, delete "
+"y load."
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
-msgstr "Using a <literal>SQLQuery</literal>"
+msgstr "Uso de una <literal>SQLQuery</literal>"
#. Tag: para
-#: query_sql.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
"literal> interface, which is obtained by calling <literal>Session."
"createSQLQuery()</literal>. The following sections describe how to use this "
"API for querying."
msgstr ""
-"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
-"literal> interface, which is obtained by calling <literal>Session."
-"createSQLQuery()</literal>. The following describes how to use this API for "
-"querying."
+"La ejecución de consultas SQL nativas se controla por medio de la interfaz "
+"<literal>SQLQuery</literal>, la cual se obtiene llamando a <literal>Session."
+"createSQLQuery()</literal>. Las siguientes secciones describen cómo utilizar "
+"esta API para consultas."
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
-msgstr "Scalar queries"
+msgstr "Consultas escalares"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
-msgstr "The most basic SQL query is to get a list of scalars (values)."
-
-#. Tag: programlisting
-#: query_sql.xml:54
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-" sess."
-"createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-" ]]>"
+"La consulta SQL más básica es para obtener a una lista de escalares "
+"(valores)."
#. Tag: para
-#: query_sql.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
"each column in the CATS table. Hibernate will use ResultSetMetadata to "
"deduce the actual order and types of the returned scalar values."
msgstr ""
-"These will both return a List of Object arrays (Object[]) with scalar values "
-"for each column in the CATS table. Hibernate will use ResultSetMetadata to "
-"deduce the actual order and types of the returned scalar values."
+"Estas retornarán una lista de objetos arrays (Object[]) con valores "
+"escalares para cada columna en la tabla CATS. Hibernate utilizará "
+"ResultSetMetadata para deducir el orden real y los tipos de los valores "
+"escalares retornados."
#. Tag: para
-#: query_sql.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
"simply to be more explicit in what is returned, one can use "
"<literal>addScalar()</literal>:"
msgstr ""
-"To avoid the overhead of using <literal>ResultSetMetadata</literal> or "
-"simply to be more explicit in what is returned one can use <literal>addScalar"
-"()</literal>."
+"Para evitar los gastos generales de la utilización de "
+"<literal>ResultSetMetadata</literal> o simplemente para ser más explÃcito en "
+"lo que se devuelve se puede utilizar <literal>addScalar()</literal>:"
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" ."
-"addScalar(\"ID\", Hibernate.LONG)\n"
-" ."
-"addScalar(\"NAME\", Hibernate.STRING)\n"
-" ."
-"addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-" ]]>"
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
-msgstr "This query specified:"
+msgstr "Se especifica esta consulta:"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
-msgstr "the SQL query string"
+msgstr "la cadena de consulta SQL"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
-msgstr "the columns and types to return"
+msgstr "las columnas y tipos que se devuelven"
#. Tag: para
-#: query_sql.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
"<literal>ResultSetMetadata</literal> but will instead explicitly get the ID, "
@@ -158,76 +131,54 @@
"be returned, even though the query is using <literal>*</literal> and could "
"return more than the three listed columns."
msgstr ""
-"This will still return Object arrays, but now it will not use "
-"<literal>ResultSetMetdata</literal> but will instead explicitly get the ID, "
-"NAME and BIRTHDATE column as respectively a Long, String and a Short from "
-"the underlying resultset. This also means that only these three columns will "
-"be returned, even though the query is using <literal>*</literal> and could "
-"return more than the three listed columns."
+"Esto retornará objetos arrays, pero no utilizará <literal>ResultSetMetdata</"
+"literal> sino que obtendrá explÃcitamente las columnas de IDENTIFICACION, "
+"NOMBRE y FECHA DE NACIMIENTO respectivamente como Larga, Cadena y Corta del "
+"grupo de resultados subyacente. Esto también significa que sólamente estas "
+"tres columnas serán retornadass aunque la consulta este utilizando "
+"<literal>*</literal> y pueda devolver más de las tres columnas enumeradas."
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr ""
-"It is possible to leave out the type information for all or some of the "
-"scalars."
+"Es posible dejar afuera la información de tipo para todos o algunos de los "
+"escalares."
-#. Tag: programlisting
-#: query_sql.xml:90
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" ."
-"addScalar(\"ID\", Hibernate.LONG)\n"
-" ."
-"addScalar(\"NAME\")\n"
-" ."
-"addScalar(\"BIRTHDATE\")\n"
-" ]]>"
-
-#. Tag: para
-#: query_sql.xml:92
-#, fuzzy, no-c-format
-msgid ""
"This is essentially the same query as before, but now "
"<literal>ResultSetMetaData</literal> is used to determine the type of NAME "
"and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
-"This is essentially the same query as before, but now "
-"<literal>ResultSetMetaData</literal> is used to decide the type of NAME and "
-"BIRTHDATE where as the type of ID is explicitly specified."
+"Esto es esencialmente la misma consulta que antes, pero ahora se utiliza "
+"<literal>ResultSetMetaData</literal> para determinar el tipo de NOMBRE y "
+"FECHA DE NACIMIENTO, mientras que el tipo de IDENTIFICACION se especifica "
+"explÃcitamente."
#. Tag: para
-#: query_sql.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
"Hibernate types is controlled by the Dialect. If a specific type is not "
"mapped, or does not result in the expected type, it is possible to customize "
"it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
-"How the java.sql.Types returned from ResultSetMetaData is mapped to "
-"Hibernate types is controlled by the Dialect. If a specific type is not "
-"mapped or does not result in the expected type it is possible to customize "
-"it via calls to <literal>registerHibernateType</literal> in the Dialect."
+"El dialecto controla la manera en que los java.sql.Types retornados de "
+"ResultSetMetaData se mapean a los tipos de Hibernate. Si un tipo en especial "
+"no se encuentra mapeado o no resulta en el tipo esperado es posible "
+"personalizarlo por medio de llamadas a <literal>registerHibernateType</"
+"literal> en el dialecto."
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
-msgstr "Entity queries"
+msgstr "Consultas de entidades"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -235,46 +186,28 @@
"get entity objects from a native sql query via <literal>addEntity()</"
"literal>."
msgstr ""
-"The above queries were all about returning scalar values, basically "
-"returning the \"raw\" values from the resultset. The following shows how to "
-"get entity objects from a native sql query via <literal>addEntity()</"
-"literal>."
+"Todas las consultas anteriores eran sobre los valores escalraes devueltos, "
+"basicamente devolviendo los valores \"crudos\" desde el grupo resultado. Lo "
+"siguiente muestra como obtener los objetos entidades desde una consulta sql "
+"nativa por medio de <literal>addEntity()</literal>."
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-" sess."
-"createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-" ]]>"
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
-msgstr "the entity returned by the query"
+msgstr "la entidad devuelta por la consulta"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
"BIRTHDATE the above queries will both return a List where each element is a "
"Cat entity."
msgstr ""
-"Assuming that Cat is mapped as a class with the columns ID, NAME and "
-"BIRTHDATE the above queries will both return a List where each element is a "
-"Cat entity."
+"Asumiendo que Cat es mapeado como una clase con las columnas IDENTIFICACION, "
+"NOMBRE y FECHA DE NACIMIENTO las consultas anteriores devolverán una Lista "
+"en donde cada elemento es una entidad Cat."
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -284,39 +217,25 @@
"but we prefer to be explicit as in the following example for a <literal>many-"
"to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
-"If the entity is mapped with a <literal>many-to-one</literal> to another "
-"entity it is required to also return this when performing the native query, "
-"otherwise a database specific \"column not found\" error will occur. The "
-"additional columns will automatically be returned when using the * notation, "
-"but we prefer to be explicit as in the following example for a <literal>many-"
-"to-one</literal> to a <literal>Dog</literal>:"
+"Si la entidad es mapeada con una <literal>many-to-one</literal> a otra "
+"entidad tambien se necesita que devuelva esto cuando realice una consulta "
+"nativa, de otra manera, aparecerá un error \"no se encontró la columna\" "
+"especÃfico a la base de datos. Se devolverán automáticamente las columnas "
+"adicionales cuando se utiliza la anotación *, pero preferimos ser tan "
+"explÃcitos asà como lo muestra el siguiente ejemplo para una <literal>many-"
+"to-one</literal> a un <literal>Dog</literal>:"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-" ]]>"
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
-msgstr "This will allow cat.getDog() to function properly."
+msgstr "Esto permitirá que cat.getDog() funcione apropiadamente."
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
-msgstr "Handling associations and collections"
+msgstr "Manejo de asociaciones y colecciones"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -324,33 +243,14 @@
"<literal>addJoin()</literal> method, which allows you to join in an "
"association or collection."
msgstr ""
-"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
-"possible extra roundtrip for initializing the proxy. This is done via the "
-"<literal>addJoin()</literal> method, which allows you to join in an "
-"association or collection."
+"Es posible unir de manera temprana en el <literal>Dog</literal> para evitar "
+"el posible viaje de ida y vuelta para iniciar el proxy. Esto se hace por "
+"medio del método <literal>addJoin()</literal>, el cual le permite unirse en "
+"una asociación o colección."
-#. Tag: programlisting
-#: query_sql.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" ."
-"addEntity(\"cat\", Cat.class)\n"
-" ."
-"addJoin(\"cat.dog\");\n"
-" ]]>"
-
-#. Tag: para
-#: query_sql.xml:152
-#, fuzzy, no-c-format
-msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
"<literal>dog</literal> property fully initialized without any extra "
"roundtrip to the database. Notice that you added an alias name (\"cat\") to "
@@ -358,97 +258,59 @@
"do the same eager joining for collections, e.g. if the <literal>Cat</"
"literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-"In this example the returned <literal>Cat</literal>'s will have their "
-"<literal>dog</literal> property fully initialized without any extra "
-"roundtrip to the database. Notice that we added a alias name (\"cat\") to be "
-"able to specify the target property path of the join. It is possible to do "
-"the same eager joining for collections, e.g. if the <literal>Cat</literal> "
-"had a one-to-many to <literal>Dog</literal> instead."
+"En este ejemplo los <literal>Cat</literal>s retornados tendrán su propiedad "
+"<literal>dog</literal> completamente iniciada sin ningún viaje extra de ida "
+"y vuelta a la base de datos. Observe que agregó un nombre alias (\"cat\") "
+"para poder especificar la ruta de la propiedad de destino de la unión. Es "
+"posible hacer la misma unión temprana para colecciones, por ejemplo, si el "
+"<literal>Cat</literal> tuviese en lugar un <literal>Dog</literal> uno-a-"
+"muchos."
-#. Tag: programlisting
-#: query_sql.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" ."
-"addEntity(\"cat\", Cat.class)\n"
-" ."
-"addJoin(\"cat.dogs\");\n"
-" ]]>"
-
-#. Tag: para
-#: query_sql.xml:162
-#, fuzzy, no-c-format
-msgid ""
"At this stage you are reaching the limits of what is possible with native "
"queries, without starting to enhance the sql queries to make them usable in "
"Hibernate. Problems can arise when returning multiple entities of the same "
"type or when the default alias/column names are not enough."
msgstr ""
-"At this stage we are reaching the limits of what is possible with native "
-"queries without starting to enhance the sql queries to make them usable in "
-"Hibernate; the problems starts to arise when returning multiple entities of "
-"the same type or when the default alias/column names are not enough."
+"En este punto estamos alcanzando los lÃmites de lo que es posible con las "
+"consultas nativas sin empezar a mejorar las consultas sql para hacerlas "
+"utilizables en Hibernate. Los problemas empiezan a surgir cuando las "
+"entidades múltiples retornadas son del mismo tipo o cuando no son "
+"suficientes los nombres de las columnas/alias predeterminados."
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
-msgstr "Returning multiple entities"
+msgstr "Devolución de entidades múltiples"
#. Tag: para
-#: query_sql.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
"column names specified in the mapping document. This can be problematic for "
"SQL queries that join multiple tables, since the same column names can "
"appear in more than one table."
msgstr ""
-"Until now the result set column names are assumed to be the same as the "
-"column names specified in the mapping document. This can be problematic for "
-"SQL queries which join multiple tables, since the same column names may "
-"appear in more than one table."
+"Hasta ahora se ha asumido que los nombres de las columnas del grupo de "
+"resultados son las mismas que los nombres de columnas especificados en el "
+"documento de mapeo. Esto puede llegar a ser problemático para las consultas "
+"SQL que unen múltiples tablas ya que los mismos nombres de columnas pueden "
+"aparecer en más de una tabla."
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr ""
-"Column alias injection is needed in the following query (which most likely "
-"will fail):"
+"Se necesita una inyección de alias en las columnas en la siguiente consulta "
+"(que con mucha probabilidad fallará):"
-#. Tag: programlisting
-#: query_sql.xml:180
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" ."
-"addEntity(\"cat\", Cat.class)\n"
-" ."
-"addEntity(\"mother\", Cat.class)\n"
-" ]]>"
-
-#. Tag: para
-#: query_sql.xml:184
-#, fuzzy, no-c-format
-msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
"mother. The query will, however, fail because there is a conflict of names; "
"the instances are mapped to the same column names. Also, on some databases "
@@ -456,56 +318,36 @@
"NAME\", etc. which are not equal to the columns specified in the mappings "
"(\"ID\" and \"NAME\")."
msgstr ""
-"The intention for this query is to return two Cat instances per row, a cat "
-"and its mother. This will fail since there is a conflict of names since they "
-"are mapped to the same column names and on some databases the returned "
-"column aliases will most likely be on the form \"c.ID\", \"c.NAME\", etc. "
-"which are not equal to the columns specificed in the mappings (\"ID\" and "
-"\"NAME\")."
+"La intención de esta consulta es retornar dos instancias Cat por fila: un "
+"gato y su mamá. Sin embargo, esto fallará debido a que hay un conflicto de "
+"nombres;las instancias se encuentran mapeadas a los mismos nombres de "
+"columna. También en algunas bases de datos los alias de las columnas "
+"retornadas serán con mucha probabilidad de la forma \"c.IDENTIFICACION\", "
+"\"c.NOMBRE\", etc, los cuales no son iguales a las columnas especificadas en "
+"los mapeos (\"IDENTIFICACION\" y \"NOMBRE\")."
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
-msgstr "The following form is not vulnerable to column name duplication:"
-
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" ."
-"addEntity(\"cat\", Cat.class)\n"
-" ."
-"addEntity(\"mother\", Cat.class)\n"
-" ]]>"
+"La siguiente forma no es vulnerable a la duplicación de nombres de columnas:"
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
"aliases"
msgstr ""
-"the SQL query string, with placeholders for Hibernate to inject column "
-"aliases"
+"la cadena de consultas SQL, con un espacio reservado para que Hibernate "
+"inserte alias de columnas"
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
-msgstr "the entities returned by the query"
+msgstr "las entidades devueltas por la consulta"
#. Tag: para
-#: query_sql.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
"properties\". Alternatively, you can list the columns explicitly, but even "
@@ -515,723 +357,395 @@
"from a different table (cat_log) to the one declared in the mapping "
"metadata. You can even use the property aliases in the where clause."
msgstr ""
-"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
-"properties\". Alternatively, you may list the columns explicity, but even in "
-"this case we let Hibernate inject the SQL column aliases for each property. "
-"The placeholder for a column alias is just the property name qualified by "
-"the table alias. In the following example, we retrieve Cats and their "
-"mothers from a different table (cat_log) to the one declared in the mapping "
-"metadata. Notice that we may even use the property aliases in the where "
-"clause if we like."
+"La anotación {cat.*} y {mother.*} que se utilizó anteriormente es la "
+"abreviatura para \"todas las propiedades\". Opcionalmente puede enumerar las "
+"columnas explÃcitamente, pero inclusive en este caso Hibernate inyecta los "
+"alias de columnas SQL para cada propiedad. El espacio para un alias de "
+"columna es sólamente el nombre calificado de la propiedad del alias de la "
+"tabla. En el siguiente ejemplo, recuperamos Cats y sus madres desde una "
+"tabla diferente (cat_log) a la declarada en los meta datos de mapeo. "
+"Inclusive puede utilizar los alias de propiedad en la cláusula where."
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c."
-"birthDate}, MOTHER_ID as {c.mother}, {mother.*} \" +\n"
-" \"FROM CAT_LOG c, "
-"CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-" \n"
-" List loggedCats = sess."
-"createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat."
-"class)\n"
-" .addEntity(\"mother\", "
-"Cat.class).list()\n"
-" ]]>"
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
-msgstr "Alias and property references"
+msgstr "Referencias de propiedad y alias"
#. Tag: para
-#: query_sql.xml:225
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
"more complex mappings, like composite properties, inheritance "
"discriminators, collections etc., you can use specific aliases that allow "
"Hibernate to inject the proper aliases."
msgstr ""
-"For most cases the above alias injection is needed, but for queries relating "
-"to more complex mappings like composite properties, inheritance "
-"discriminators, collections etc. there are some specific aliases to use to "
-"allow Hibernate to inject the proper aliases."
+"Para la mayorÃa de los casos, se necesita la inyección del alias anterior. "
+"Para las consultas relacionadas con mapeos más complejos como propiedades "
+"compuestas, discriminadores de herencia, colecciones, etc, existen alias "
+"especificos a utilizar para permitir que Hibernate inyecte los alias "
+"apropiados."
#. Tag: para
-#: query_sql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
"injection. Please note that the alias names in the result are simply "
"examples; each alias will have a unique and probably different name when "
"used."
msgstr ""
-"The following table shows the different possibilities of using the alias "
-"injection. Note: the alias names in the result are examples, each alias will "
-"have a unique and probably different name when used."
+"La siguiente tabla muestra las diferentes maneras de utilizar la inyección "
+"de alias. Note que los nombres alias en el resultado son simplemente "
+"ejemplos; cada alias tendrá un nombre único y probablemente diferente cuando "
+"se utilice."
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
-msgstr "Alias injection names"
+msgstr "Nombres con inyección alias"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
-msgstr "Description"
+msgstr "Descripción"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
-msgstr "Syntax"
+msgstr "Sintaxis"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
-msgstr "Example"
+msgstr "Ejemplo"
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
-msgstr "A simple property"
+msgstr "Una propiedad simple"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
-msgstr "{[aliasname].[propertyname]"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
+msgstr "<literal>{[aliasname].[propertyname]</literal>"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
-msgstr "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
-msgstr "A composite property"
+msgstr "Una propiedad compuesta"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
-msgstr "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
-msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
+msgstr ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
-msgstr "Discriminator of an entity"
+msgstr "Discriminador de una entidad"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
-msgstr "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
-msgstr "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
-msgstr "All properties of an entity"
+msgstr "Todas las propiedades de una entidad"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
-msgstr "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
-msgstr "A collection key"
+msgstr "Una clave de colección"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
-msgstr "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
-msgstr "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
-msgstr "The id of an collection"
+msgstr "La identificación -id- de una colección"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
-msgstr "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
-msgstr "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
-msgstr "The element of an collection"
+msgstr "El elemento de una colección"
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
-msgstr "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
-msgstr "XID as {coll.element}"
-
#. Tag: entry
-#: query_sql.xml:314
#, fuzzy, no-c-format
-msgid "property of the element in the collection"
-msgstr "roperty of the element in the collection"
+msgid "<literal>XID as {coll.element}</literal>"
+msgstr "<literal>{coll.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:316
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
-msgstr "{[aliasname].element.[propertyname]}"
+msgid "property of the element in the collection"
+msgstr "propiedad del elemento en la colección "
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
-msgstr "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].element.[propertyname]}</literal>"
#. Tag: entry
-#: query_sql.xml:322
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
+msgstr "<literal>NAME as {coll.element.name}</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "All properties of the element in the collection"
-msgstr "All properties of the element in the collection"
+msgstr "Todas las propiedades del elemeto en la colección"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
-msgstr "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:326
-#, no-c-format
-msgid "{coll.element.*}"
-msgstr "{coll.element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{coll.element.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
-msgstr "All properties of the the collection"
+msgstr "Todas las propiedades de la colección"
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
-msgstr "Returning non-managed entities"
+msgstr "Devolución de entidades no-administradas"
#. Tag: para
-#: query_sql.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
"it to return non-managed entities."
msgstr ""
-"It is possible to apply a ResultTransformer to native sql queries. Allowing "
-"it to e.g. return non-managed entities."
+"Es posible aplicar un ResultTransformer para consultas SQL nativas, "
+"permitiéndole retornar entidades no-administradas."
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" ."
-"setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
-msgstr "a result transformer"
+msgstr "un transformador de resultado"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
"been instantiated and injected the values of NAME and BIRTHNAME into its "
"corresponding properties or fields."
msgstr ""
-"The above query will return a list of <literal>CatDTO</literal> which has "
-"been instantiated and injected the values of NAME and BIRTHNAME into its "
-"corresponding properties or fields."
+"La consulta anterior devolverá una lista de <literal>CatDTO</literal> a la "
+"cual se ha instanciado e inyectado los valores de NOMBRE y FECHA DE "
+"NACIMIENTO en su propiedades o campos correspondientes."
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
-msgstr "Handling inheritance"
+msgstr "Manejo de herencias"
#. Tag: para
-#: query_sql.xml:370
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
"inheritance must include all properties for the baseclass and all its "
"subclasses."
msgstr ""
-"Native sql queries which query for entities that is mapped as part of an "
-"inheritance must include all properties for the baseclass and all it "
-"subclasses."
+"Las consultas SQL nativas, las cuales consultan por entidades que son "
+"mapeadas como parte de una herencia tienen que incluir todas las propiedades "
+"para la clase base y todas sus subclases."
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
-msgstr "Parameters"
+msgstr "Parámetros"
#. Tag: para
-#: query_sql.xml:378
-#, fuzzy, no-c-format
-msgid "Native SQL queries support positional as well as named parameters:"
-msgstr "Native sql queries support positional as well as named parameters:"
-
-#. Tag: programlisting
-#: query_sql.xml:381
#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
+msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-" List pusList = query."
-"setString(0, \"Pus%\").list();\n"
-" \n"
-" query = sess."
-"createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\").addEntity(Cat."
-"class);\n"
-" List pusList = query."
-"setString(\"name\", \"Pus%\").list(); ]]>"
+"Las consultas SQL nativas soportan parámetros nombrados asà como "
+"posicionales:"
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
-msgstr "Consultas SQL con nombre"
+msgstr "Consultas SQL nombradas"
#. Tag: para
-#: query_sql.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
"exactly the same way as a named HQL query. In this case, you do "
"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
-"Las consultas SQL con nombre pueden definirse en el documento de mapeo y "
-"llamadas exactamente en la misma forma en que a una consulta HQL con nombre. "
-"En este caso, <emphasis>no</emphasis> necesitamos llamar a <literal>addEntity"
-"()</literal>."
+"Las consultas SQL nombradas se pueden definir en el documento de mapeo y se "
+"pueden llamar de la misma manera que una consulta HQL nombrada. En este "
+"caso, <emphasis>no</emphasis> necesitamos llamar a <literal>addEntity()</"
+"literal>."
-#. Tag: programlisting
-#: query_sql.xml:396
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person \n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-
-#. Tag: para
-#: query_sql.xml:400
-#, fuzzy, no-c-format
-msgid ""
"The <literal><return-join></literal> element is use to join "
"associations and the <literal><load-collection></literal> element is "
"used to define queries which initialize collections,"
msgstr ""
-"Los elementos <literal><return-join></literal> y <literal><load-"
-"collection></literal> se usan para unir asociaciones y definir consultas "
-"que inicialicen colecciones, respectivamente."
+"El elemento <literal><return-join></literal> se utiliza para unir "
+"asociaciones y el elemento <literal><load-collection></literal> se usa "
+"para definir consultas, las cuales dan inicio a colecciones."
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person \n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
"alias and Hibernate type using the <literal><return-scalar></literal> "
"element:"
msgstr ""
-"Una consulta SQL con nombre puede devolver un valor escalar. Debes "
-"especificar el alias de columna y tipo Hibernate usando el elementp "
-"<literal><return-scalar></literal>:"
+"Una consulta SQL nombrada puede devolver un valor escalar. Tiene que "
+"declarar el alias de la columna y el tipo de Hibernate utilizando el "
+"elemento <literal><return-scalar></literal>:"
-#. Tag: programlisting
-#: query_sql.xml:410
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-
-#. Tag: para
-#: query_sql.xml:412
-#, fuzzy, no-c-format
-msgid ""
"You can externalize the resultset mapping information in a <literal><"
"resultset></literal> element which will allow you to either reuse them "
"across several named queries or through the <literal>setResultSetMapping()</"
"literal> API."
msgstr ""
-"You can externalize the resultset mapping informations in a <literal><"
-"resultset></literal> element to either reuse them accross several named "
-"queries or through the <literal>setResultSetMapping()</literal> API."
+"Puede externalizar el grupo de resultados mapeando información en un "
+"elemento <literal><resultset></literal>, el cual le permitirá "
+"reutilizarlos a través de consultas nombradas o por medio de la API "
+"<literal>setResultSetMapping()</literal>."
-#. Tag: programlisting
-#: query_sql.xml:417
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person."
-"mailingAddress\"/>\n"
-" </resultset>\n"
-" \n"
-" <sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-" </sql-query>]]>"
-
-#. Tag: para
-#: query_sql.xml:419
-#, fuzzy, no-c-format
-msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
"files directly in java code."
msgstr ""
-"You can alternatively use the resultset mapping information in your hbm "
-"files directly in java code."
+"Opcionalmente, puede utilizar el grupo de resultados mapeando la información "
+"en sus archivos hbm directamente en código java."
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, "
-"cats kitten where kitten.mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
msgstr ""
-"Usando return-property para especificar explícitamente nombres de "
-"columna/alias"
+"Utilización de la propiedad return para especificar explÃcitamente los "
+"nombres de columnas/alias"
#. Tag: para
-#: query_sql.xml:428
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
"<literal><return-property></literal>, instead of using the <literal>{}"
"</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
-"Con <literal><return-property></literal> puedes decirle explí"
-"citamente a Hibernate qué alias de columna usar, en vez de usar la "
-"sintáxis <literal>{}</literal> para dejar que Hibernate inyecte sus "
-"propios alias."
+"Con <literal><return-property></literal> usted puede decirle a "
+"Hibernate explÃcitamente qué alias de columnas se deben utilizar, en vez de "
+"utilizar la sintaxis <literal>{}</literal> para dejar que Hibernate inyecte "
+"sus propios alias. Por ejemplo:"
-#. Tag: programlisting
-#: query_sql.xml:433
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-
-#. Tag: para
-#: query_sql.xml:435
-#, fuzzy, no-c-format
-msgid ""
"<literal><return-property></literal> also works with multiple columns. "
"This solves a limitation with the <literal>{}</literal>-syntax which cannot "
"allow fine grained control of multi-column properties."
msgstr ""
-"<literal><return-property></literal> también trabaja con "
-"múltiples columnas. Esto resuelve una limitación de la "
-"sintáxis <literal>{}</literal>, la cual no puede permitir un control "
-"fino de propiedades multi-columna."
+"<literal><return-property></literal> también funciona con columnas "
+"múltiples. Esto resuelve una limitación con la sintaxis <literal>{}</"
+"literal>, la cual no puede permitir control muy detallado de propiedades "
+"multi-columnas."
-#. Tag: programlisting
-#: query_sql.xml:440
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\"> \n"
-" <return-property name=\"salary\"> \n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/> \n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer}, \n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-
-#. Tag: para
-#: query_sql.xml:442
-#, fuzzy, no-c-format
-msgid ""
"In this example <literal><return-property></literal> was used in "
"combination with the <literal>{}</literal>-syntax for injection. This allows "
"users to choose how they want to refer column and properties."
msgstr ""
-"Nota que en este ejemplo hemos usado <literal><return-property></"
-"literal> en combinación con la sintáxis <literal>{}</literal> "
-"para inyección, permitiendo a los usuarios elejir cómo quieren "
-"referirse a las columnas y propiedades."
+"En este ejemplo utilizamos <literal><return-property></literal> en "
+"combinación junto con la sintaxis <literal>{}</literal> para inyección. Esto "
+"le permite a los usuarios escoger cómo quieren referirse a la columna y a "
+"las propiedades."
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
"discriminator></literal> to specify the discriminator column."
msgstr ""
-"Si tu mapeo tiene un discriminador debes usar <literal><return-"
-"discriminator></literal> para especificar la columna discriminadora."
+"Si su mapeo tiene un discriminador usted tiene que utilizar <literal><"
+"return-discriminator></literal> para especificar la columna "
+"discriminadora."
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
-msgstr "Usando procedimientos almacenados para consultar"
+msgstr "Utilización de procedimientos para consultas"
#. Tag: para
-#: query_sql.xml:455
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
"Most of the following documentation is equivalent for both. The stored "
@@ -1239,110 +753,38 @@
"able to work with Hibernate. An example of such a stored function in Oracle "
"9 and higher is as follows:"
msgstr ""
-"Hibernate3 introduce soporte para consultas vía procedimientos "
-"almacenados. Los procedimientos almacenados deben devolver un conjunto "
-"resultado como el primer parámetro de salida para ser capaces de "
-"funcionar con Hibernate. Un ejemplo de uno procedimiento almacenado en "
-"Oracle 9 o superior es así:"
+"Hibernate 3 brinda soporte para consultas por medio de procedimientos "
+"almacenados y funciones. La mayorÃa de la siguiente documentación es igual "
+"para ambos. La función/procedimiento almacenado tiene que retornar un grupo "
+"de resultados como el primer parámetro de salida para poder trabajar con "
+"Hibernate. A continuación hay un ejemplo de tal función almacenada en Oracle "
+"9 y posteriores:"
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments \n"
-" RETURN SYS_REFCURSOR \n"
-"AS \n"
-" st_cursor SYS_REFCURSOR; \n"
-"BEGIN \n"
-" OPEN st_cursor FOR \n"
-" SELECT EMPLOYEE, EMPLOYER, \n"
-" STARTDATE, ENDDATE, \n"
-" REGIONCODE, EID, VALUE, CURRENCY \n"
-" FROM EMPLOYMENT; \n"
-" RETURN st_cursor; \n"
-" END;]]>"
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
msgstr ""
-"Para usar esta consulta en Hibernate necesitas mapearla por medio de una "
-"consulta con nombre."
+"Para utilizar esta consulta en Hibernate u.d necesita mapearla por medio de "
+"una consulta nombrada."
-#. Tag: programlisting
-#: query_sql.xml:466
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/"
-"> \n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/> \n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/"
-"> \n"
-" <return-property name=\"id\" column=\"EID\"/"
-"> \n"
-" <return-property name=\"salary\"> \n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/> \n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-
-#. Tag: para
-#: query_sql.xml:468
-#, fuzzy, no-c-format
-msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
"return-join></literal> and <literal><load-collection></literal> are "
"not supported."
msgstr ""
-"Nota que los procedimientos almacenados sólo devuelven escalares y "
-"entidades. No están soportados <literal><return-join></literal> "
-"y <literal><load-collection></literal>."
+"Los procedimientos almacenados actualmente sólo retornan escalares y "
+"entidades. No se soporta <literal><return-join></literal> ni "
+"<literal><load-collection></literal> ."
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
-msgstr "Reglas/limitaciones para usar procedimientos almacenados"
+msgstr "Reglas/limitaciones para utilizar procedimientos almacenados"
#. Tag: para
-#: query_sql.xml:475
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
"procedure/function rules. If they do not follow those rules they are not "
@@ -1351,45 +793,42 @@
"different for each database, since database vendors have different stored "
"procedure semantics/syntax."
msgstr ""
-"Para usar procedimientos almacenados con Hibernate los procedimientos tienen "
-"que seguir algunas reglas. Si no siguen esas reglas no son usables por "
-"Hibernate. Si aún quisieras usar estos procedimientos tendrías "
-"que ejecutarlos por medio de <literal>session.connection()</literal>. Las "
-"reglas son diferentes para cada base de datos, ya que los vendedores de base "
-"de datos tienen diferentes semánticas/sintáxis de "
+"Para utilizar procedimientos almacenados con Hibernate, debe seguir ciertas "
+"reglas de funciones/procedimientos. Si no siguen esas reglas entonces no se "
+"pueden utilizar con Hibernate. Si todavÃa quiere utilizar estos "
+"procedimientos tiene que ejecutarlos por medio de <literal>session.connection"
+"()</literal>. Las reglas son diferentes para cada base de datos debido a que "
+"los vendedores de la base de datos tienen diferentes sintaxis/semántica de "
"procedimientos almacenados."
#. Tag: para
-#: query_sql.xml:482
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
"setMaxResults()</literal>."
msgstr ""
-"Las consultas de procedimientos almacenados no pueden ser paginadas con "
+"Las consultas de procedimientos almacenados no se pueden llamar con "
"<literal>setFirstResult()/setMaxResults()</literal>."
#. Tag: para
-#: query_sql.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
"parameters>}</literal>. Native call syntax is not supported."
-msgstr "Para Oracle se aplican las siguientes reglas:"
+msgstr ""
+"La forma de la llamada recomendada es SQL92 estándar: <literal>{ ? = call "
+"functionName(<parameters>) }</literal> o <literal>{ ? = call "
+"procedureName(<parameters>}</literal>. No se soporta la sintaxis de "
+"llamadas nativas."
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
-msgstr ""
-"El procedimiento debe devolver un conjunto resultado. Esto se hace "
-"devolviendo un <literal>SYS_REFCURSOR</literal> en Oracle 9 o 10. En Oracle "
-"necesitas definir un tipo <literal>REF CURSOR</literal>."
+msgstr "Para Oracle aplican las siguientes reglas:"
#. Tag: para
-#: query_sql.xml:494
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
"be an <literal>OUT</literal> that returns a result set. This is done by "
@@ -1397,154 +836,102 @@
"you need to define a <literal>REF CURSOR</literal> type. See Oracle "
"literature for further information."
msgstr ""
-"La forma recomendada es <literal>{ ? = call procName(<parameters>) }</"
-"literal> o <literal>{ ? = call procName }</literal> (esto es más una "
-"regla de Oracle que una regla de Hibernate)."
+"Una función tiene que retornar un grupo de resultados. El primer parámetro "
+"de un procedimiento tiene que ser un <literal>OUT</literal> que retorna un "
+"grupo de resultados. Esto se hace utilizando un tipo <literal>SYS_REFCURSOR</"
+"literal> en Oracle 9 o 10. En Oracle necesita definir un tipo <literal>REF "
+"CURSOR</literal>. Consulte la documentación de Oracle para obtener mayor "
+"información."
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
-msgstr "Para Sybase o MS SQL server se aplican las siguientes reglas:"
+msgstr "Para Sybase o el servidor MS SQL aplican las siguientes reglas:"
#. Tag: para
-#: query_sql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
"return multiple result sets and update counts, Hibernate will iterate the "
"results and take the first result that is a result set as its return value. "
"Everything else will be discarded."
msgstr ""
-"El procedimiento debe devolver un conjunto resultado. Nota que ya que estos "
-"servidores pueden y devolverán múltiples conjuntos resultados "
-"y cuentas de actualización, Hibernate iterará los resultados y "
-"tomará el primer resultado que sea un conjunto resultado como su "
-"valor a devolver. Todo lo demás será descartado."
+"El procedimiento tiene que retornar un grupo de resultados. Observe que "
+"debido a que estos servidores pueden retornar grupos de resultados múltiples "
+"y cuentas actualizadas, Hibernate iterará los resultados y tomará el primer "
+"resultado que sea un grupo resultados como su valor retornado. Todo lo demás "
+"será descartado."
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
"will probably be more efficient, but this is not a requirement."
msgstr ""
-"Si habilitas <literal>SET NOCOUNT ON</literal> en tu procedimiento "
-"será probablemente más eficiente, pero esto no es un "
-"requerimiento."
+"Si puede habilitar <literal>SET NOCOUNT ON</literal> en su procedimiento "
+"probablemente será más eficiente, pero no es un requerimiento."
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
-msgstr "SQL personalizado para crear, actualizar y borrar"
+msgstr "Personalice SQL para crear, actualizar y borrar"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
-"Hibernate3 puede usar sentencias SQL personalizadas para las operaciones de "
-"crear, actualizar y borrar. Los persistidores de clases y colecciones en "
-"Hibernate ya contienen un conjunto de cadenas generadas en tiempo de "
-"configuración (insertsql, deletesql, updatesql, etc.). Las etiquetas "
-"de mapeo <literal><sql-insert></literal>, <literal><sql-delete></"
-"literal>, y <literal><sql-update></literal> sobrescriben estas cadenas:"
-#. Tag: programlisting
-#: query_sql.xml:535
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
+"Hibernate3 puede utilizar declaraciones SQL personalizadas para crear, "
+"actualizar y borrar operaciones. Los persistentes de clase y de colección en "
+"Hibernate ya contienen un grupo de cadenas generadas en tiempo de "
+"configuración (insertsql, deletesql, updatesql etc.). Las etiquetas de mapeo "
+"<literal><sql-insert></literal>, <literal><sql-delete></"
+"literal>, y <literal><sql-update></literal> sobrescriben estas cadenas:"
#. Tag: para
-#: query_sql.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
"you like. This will reduce the portability of your mapping if you use "
"database specific SQL."
msgstr ""
-"El SQL se ejecuta directamente en tu base de datos, de modo que eres libre "
-"de usar cualquier dialecto que quieras. Esto reducirá, por supuesto, "
-"la portabilidad de tu mapeo si usas SQL específico de la base de "
-"datos."
+"El SQL se ejecuta directamente en su base de datos asi que usted es libre de "
+"utilizar cualquier dialecto que desee. Esto reducirá la portabilidad de su "
+"mapeo si utiliza una base de datos especifica de SQL."
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
"is set:"
msgstr ""
-"Los procedimientos almacenados son soportados si está establecido el "
-"atributo <literal>callable</literal>:"
+"Los procedimientos almacenados se encuentran soportados si el atributo "
+"<literal>callable</literal> está configurado:"
-#. Tag: programlisting
-#: query_sql.xml:544
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-
-#. Tag: para
-#: query_sql.xml:546
-#, fuzzy, no-c-format
-msgid ""
"The order of the positional parameters is vital, as they must be in the same "
"sequence as Hibernate expects them."
msgstr ""
-"El orden de los parámetros posicionales son actualmente vitales, ya "
-"que deben estar en la misma secuencia en que las espera Hibernate."
+"El orden de los parámetros posicionales es vital ya que se deben encontrar "
+"en la misma secuencia en que Hibernate los espera."
#. Tag: para
-#: query_sql.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
"<literal>org.hibernate.persister.entity</literal> level. With this level "
@@ -1553,214 +940,120 @@
"your custom SQL in the mapping files, as this will override the Hibernate "
"generated static SQL."
msgstr ""
-"Puedes ver el orden esperado habilitando el registro de depuración "
-"para el nivel <literal>org.hibernate.persister.entity</literal>. Con este "
-"nivel habilitado, Hibernate imprimirá el SQL estático que se "
-"usa para crear, actualizar, borrar, etc. las entidades. (Para ver la "
-"secuencia esperada, recuerda no incluir tu SQL personalizado en los ficheros "
-"de mapeo ya que sobrescribirán el sql estático generado por "
-"Hibernate.)"
+"Puede ver el orden esperado habilitando el registro de depuración para el "
+"nivel <literal>org.hibernate.persister.entity</literal>. Con este nivel "
+"habilitado Hibernate imprimirá el SQL estático que se utiliza para crear, "
+"actualizar, borrar, etc, entidades, ( para ver la secuencia esperada, "
+"recuerde no incluir su SQL personalizado en los archivos de mapeo ya que eso "
+"sobrescribirá el sql estático generado por Hibernate)."
#. Tag: para
-#: query_sql.xml:556
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
"rows inserted, updated and deleted, as Hibernate has some runtime checks for "
"the success of the statement. Hibernate always registers the first statement "
"parameter as a numeric output parameter for the CUD operations:"
msgstr ""
-"Los procedimientos almacenados son, en la mayoría de los casos "
-"(léase, mejor hacerlo que no hacerlo), obligados a devolver el "
-"número de filas insertadas/actualizadas/borradas, ya que Hibernate "
-"tiene algunas comprobaciones en tiempo de ejecución del éxito "
-"de la sentencia. Hibernate siempre registra el primer parámetro de la "
-"sentencia como un parámetro de salida numérico para las "
-"operaciones CUD:"
+"En la mayorÃa de los casos se requiere que los procedimientos almacenados "
+"retornen el número de filas insertadas, actualizadas y borradas ya que "
+"Hibernate tiene algunas verificaciones en tiempo de ejecución para el éxito "
+"de la declaración. Hibernate siempre registra el primer parámetro de la "
+"declaración como un parámetro de la salida numérica para las operaciones CUD:"
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
-msgstr "SQL personalizado para carga"
+msgstr "Personalice SQL para cargar"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr ""
-"Puedes también declarar tu propias consultas SQL (o HQL) para cargar "
-"entidades:"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id} \n"
-" FROM PERSON \n"
-" WHERE ID=? \n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
#. Tag: para
-#: query_sql.xml:573
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
"reference this named query in a class mapping:"
msgstr ""
-"Esto es sólo una declaración de consulta con nombrem como se "
-"ha discutido anteriormente. Puedes hacer referencia a esta consulta con "
-"nombre en un mapeo de clase:"
+"Esta es tan sólo una declaración de consulta nombrada, como se discutió "
+"anteriormente. Puede referenciar esta consulta nombrada en un mapeo de clase:"
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
-msgstr "Esto incluso funciona con procedimientos almacenados."
+msgstr "Esto funciona inclusive con procedimientos almacenados."
#. Tag: para
-#: query_sql.xml:580
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even define a query for collection loading:"
-msgstr "Puedes incluso definit una consulta para la carga de colecciones:"
+msgstr "Puede incluso definir una consulta para la carga de colección:"
-#. Tag: programlisting
-#: query_sql.xml:582
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-
-#. Tag: para
-#: query_sql.xml:586
-#, fuzzy, no-c-format
-msgid ""
"You can also define an entity loader that loads a collection by join "
"fetching:"
msgstr ""
-"Podrías incluso definir un cargador de entidades que cargue una "
-"colección por recuperación por unión (join fetching):"
+"También puede definir un cargador de entidad que cargue una colección con "
+"una unión temprana:"
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/> \n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp \n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr ""
+#~ "También puede declarar sus propias consultas SQL (o HQL) para cargar "
+#~ "entidad:"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#, fuzzy
+#~ msgid "A_NAME as {item.name}"
+#~ msgstr "<literal>A_NAME as {item.name}</literal>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#, fuzzy
+#~ msgid "{[aliasname].class}"
+#~ msgstr "<literal>{[aliasname].class}</literal>"
+
+#, fuzzy
+#~ msgid "DISC as {item.class}"
+#~ msgstr "<literal>DISC as {item.class}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].*}"
+#~ msgstr "<literal>{[aliasname].*}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].key}"
+#~ msgstr "<literal>{[aliasname].key}</literal>"
+
+#, fuzzy
+#~ msgid "ORGID as {coll.key}"
+#~ msgstr "<literal>ORGID as {coll.key}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].id}"
+#~ msgstr "<literal>{[aliasname].id}</literal>"
+
+#, fuzzy
+#~ msgid "EMPID as {coll.id}"
+#~ msgstr "<literal>EMPID as {coll.id}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element}"
+#~ msgstr "<literal>{[aliasname].element}</literal>"
+
+#, fuzzy
+#~ msgid "XID as {coll.element}"
+#~ msgstr "<literal>XID as {coll.element}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element.*}"
+#~ msgstr "<literal>{[aliasname].element.*}</literal>"
+
+#, fuzzy
+#~ msgid "{coll.element.*}"
+#~ msgstr "<literal>{coll.element.*}</literal>"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,21 +1,35 @@
-#, fuzzy
+# translation of session_api.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-07 10:43+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
-msgstr "Trabajando con objetos"
+msgstr "Trabajo con objetos"
#. Tag: para
-#: session_api.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
"the developer from the details of the underlying database management system, "
@@ -24,16 +38,15 @@
"JDBC/SQL persistence layers, a natural object-oriented view of persistence "
"in Java applications."
msgstr ""
-"Hibernate es una solución completa de mapeo objeto/relacional que no "
-"sólo abstrae al desarrollador de los detalles del sistema de manejo "
-"de base datos subyacente, sino que además ofrece <emphasis>manejo de "
-"estado</emphasis> de objetos. Esto es, al contrario del manejo de "
-"<literal>sentencias</literal> SQL en capas comunes de persistencia JDBC/SQL, "
-"una vista de la persistencia en aplicaciones Java muy natural y orientada a "
-"objetos."
+"Hibernate es una solución completa de mapeo objeto/relacional que no sólo "
+"proteje al desarrollador de los detalles del sistema de administración de la "
+"base datos subyacente, sino que además ofrece <emphasis>administración de "
+"estado</emphasis> de objetos. Contrario a la administración de "
+"<literal>declaraciones</literal> SQL en capas comunes de persistencia JDBC/"
+"SQL, esta es una vista natural orientada a objetos de la persistencia en "
+"aplicaciones Java."
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -42,27 +55,24 @@
"is only relevant for the application developer when tuning the performance "
"of the system."
msgstr ""
-"En otras palabras, los desarroladores de aplicaciones Hibernate deben "
-"siempre pensar en el <emphasis>estado</emphasis> de sus objetos, y no "
-"necesariamente en la ejecución de sentencias SQL. Esta parte es "
-"cuidada por Hibernate y es sólo relevante para el desarrollador de la "
-"aplicación al afinar el rendimiento del sistema."
+"En otras palabras, los desarrolladores de aplicaciones de Hibernate siempre "
+"deben pensar en el <emphasis>estado</emphasis> de sus objetos, y no "
+"necesariamente en la ejecución de declaraciones SQL. Hibernate se ocupa de "
+"esto y es sólamente relevante para el desarrollador de la aplicación al "
+"afinar el rendimiento del sistema."
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
msgstr "Estados de objeto de Hibernate"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
msgstr "Hibernate define y soporta los siguientes estados de objeto:"
#. Tag: para
-#: session_api.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
"instantiated using the <literal>new</literal> operator, and it is not "
@@ -75,18 +85,17 @@
"transition)."
msgstr ""
"<emphasis>Transitorio</emphasis> - un objeto es transitorio si ha sido "
-"recién instanciado usando el operador <literal>new</literal>, y no "
-"está asociado a una <literal>Session</literal> de Hibernate. No tiene "
-"una representación persistente en la base de datos y no se le ha "
-"asignado un valor identificador. Las instancias transitorias serán "
-"destruídas por el recolector de basura si la aplicación no "
-"mantiene más una referencia. Usa la <literal>Session</literal> de "
-"Hibernate para hacer un objeto persistente (y deja que Hibernate cuide de "
-"las sentencias SQL que necesitan ejecutarse para esta transición)."
+"recién instanciado utilizando el operador <literal>new</literal>, y no está "
+"asociado a una <literal>Session</literal> de Hibernate. No tiene una "
+"representación persistente en la base de datos y no se le ha asignado un "
+"valor identificador. Las instancias transitorias serán destruÃdas por el "
+"recolector de basura si la aplicación no mantiene más una referencia. "
+"Utiliza la <literal>Session</literal> de Hibernate para hacer un objeto "
+"persistente (y deja que Hibernate se ocupe de las declaraciones SQL que "
+"necesitan ejecutarse para esta transición)."
#. Tag: para
-#: session_api.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
"in the database and an identifier value. It might just have been saved or "
@@ -98,18 +107,17 @@
"made transient."
msgstr ""
"<emphasis>Persistente</emphasis> - una instancia persistente tiene una "
-"representación en la base de datos y un valor identificador. Puede "
-"haber sido salvado o cargado, sin embargo, está por definición "
-"en el ámbito de una <literal>Session</literal>. Hibernate "
-"detectará cualquier cambio hecho a un objeto en estado persistentey "
-"sincronizará el estado con la base de datos cuando se complete la "
-"unidad de trabajo. Los desarrolladores no ejecutan sentencias "
-"<literal>UPDATE</literal> manuales, o sentencias <literal>DELETE</literal> "
-"cuando un objeto debe ser hecho transitorio."
+"representación en la base de datos y un valor identificador. Puede haber "
+"sido guardado o cargado, sin embargo, por definición, se encuentra en el "
+"ámbito de una <literal>Session</literal>. Hibernate detectará cualquier "
+"cambio realizado a un objeto en estado persistente y sincronizará el estado "
+"con la base de datos cuando se complete la unidad de trabajo. Los "
+"desarrolladores no ejecutan declaraciones <literal>UPDATE</literal> "
+"manuales, o declaraciones <literal>DELETE</literal> cuando un objeto se debe "
+"poner como transitorio."
#. Tag: para
-#: session_api.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
"been persistent, but its <literal>Session</literal> has been closed. The "
@@ -121,67 +129,45 @@
"them <emphasis>application transactions</emphasis>, i.e., a unit of work "
"from the point of view of the user."
msgstr ""
-"<emphasis>Separado (detached)</emphasis> - una instancia separada es un "
-"objeto que ha sido hecho persistente, pero su <literal>Session</literal> ha "
-"sido cerrada. La referencia al objeto todavía es válida, por "
-"supuesto, y la instancia separada podría incluso ser modificada en "
-"este estado. Una instancia separada puede ser re-unida a una nueva "
-"<literal>Session</literal> en un punto posterior en el tiempo, hacié"
-"ndola persistente de nuevo (con todas las modificaciones). Este aspecto "
-"habilita un modelo de programación para unidades de trabajo de "
-"ejecución larga que requieren tiempo-para-pensar del usuario. Las "
-"llamamos <emphasis>transaccciones de aplicación</emphasis>, es decir, "
-"una unidad de trabajo desde el punto de vista del usuario."
+"<emphasis>Separado</emphasis> - una instancia separada es un objeto que se "
+"ha hecho persistente, pero su <literal>Session</literal> ha sido cerrada. La "
+"referencia al objeto todavÃa es válida, por supuesto, y la instancia "
+"separada podrÃa incluso ser modificada en este estado. Una instancia "
+"separada puede ser re-unida a una nueva <literal>Session</literal> más "
+"tarde, haciéndola persistente de nuevo (con todas las modificaciones). Este "
+"aspecto habilita un modelo de programación para unidades de trabajo de "
+"ejecución larga que requieren tiempo-para-pensar por parte del usuario. Las "
+"llamamos <emphasis>transaccciones de aplicación</emphasis>, por ejemplo, una "
+"unidad de trabajo desde el punto de vista del usuario."
#. Tag: para
-#: session_api.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
"methods that trigger a transition) in more detail."
msgstr ""
-"Discutiremos ahora los estados y transiciones de estados (y los mé"
-"todos de Hibernate que disparan una transición) en más detalle:"
+"Discutiremos ahora los estados y transiciones de estados (y los métodos de "
+"Hibernate que disparan una transición) en más detalle. "
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "Haciendo los objetos persistentes"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
"<emphasis>transient</emphasis> by Hibernate. We can make a transient "
"instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
-"Las instancias recién instanciadas de una clase persistente son "
-"consideradas <emphasis>transitorias</emphasis> por Hibernate. Podemos hacer "
-"una instancia transitoria <emphasis>persistente</emphasis> asociá"
-"ndola con una sesión:"
+"Las instancias recién instanciadas de una clase persistente son consideradas "
+"<emphasis>transitorias</emphasis> por Hibernate. Podemos hacer una instancia "
+"transitoria <emphasis>persistente</emphasis> asociándola con una sesión:"
-#. Tag: programlisting
-#: session_api.xml:110
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-
-#. Tag: para
-#: session_api.xml:112
-#, fuzzy, no-c-format
-msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
"generated and assigned to the <literal>cat</literal> when <literal>save()</"
"literal> is called. If <literal>Cat</literal> has an <literal>assigned</"
@@ -196,13 +182,12 @@
"<literal>save()</literal>. Si <literal>Cat</literal> tiene un identificador "
"<literal>assigned</literal>, o una clave compuesta, el identificador debe "
"ser asignado a la instancia de <literal>cat</literal> antes de llamar a "
-"<literal>save()</literal>. Puedes también usar <literal>persist()</"
-"literal> en vez de <literal>save()</literal>, con la semántica "
-"definida en el temprano borrador de EJB3."
+"<literal>save()</literal>. También puede utilizar <literal>persist()</"
+"literal> en vez de <literal>save()</literal>, con la semántica definida en "
+"el borrador de EJB3. "
#. Tag: para
-#: session_api.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
"it does not guarantee that the identifier value will be assigned to the "
@@ -212,16 +197,15 @@
"boundaries. This is useful in long-running conversations with an extended "
"Session/persistence context."
msgstr ""
-"UNTRANSLATED!!! <literal>persist()</literal> makes a transient instance "
-"persistent. However, it doesn't guarantee that the identifier value will be "
-"assigned to the persistent instance immediately, the assignment might happen "
-"at flush time. <literal>persist()</literal> also guarantees that it will not "
-"execute an <literal>INSERT</literal> statement if it is called outside of "
-"transaction boundaries. This is useful in long-running conversations with an "
-"extended Session/persistence context."
+"<literal>persist()</literal> hace que una instancia transitoria sea "
+"persistente. Sin embargo, no garantiza que el valor identificador sea "
+"asignado a la instancia persistente inmediatamente, la tarea puede tener "
+"lugar durante el vaciado. <literal>persist()</literal> también garantiza que "
+"no ejecutará una declaración <literal>INSERT</literal> si se llama por fuera "
+"de los lÃmites de una transacción. Esto es útil en conversaciones largas con "
+"un contexto extendido sesión/persistencia."
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -230,46 +214,25 @@
"you are inside or outside of a transaction. This is problematic in a long-"
"running conversation with an extended Session/persistence context."
msgstr ""
-"<literal>save()</literal> does guarantee to return an identifier. If an "
-"INSERT has to be executed to get the identifier ( e.g. \"identity\" "
-"generator, not \"sequence\"), this INSERT happens immediately, no matter if "
-"you are inside or outside of a transaction. This is problematic in a long-"
-"running conversation with an extended Session/persistence context."
+"<literal>save()</literal> sà garantiza el retorno de un identificador. Si se "
+"tiene que ejecutar un INSERT para obtener el identificador ( por ejemplo, "
+"generador \"identidad\", no \"secuencia\"), este INSERT tiene lugar "
+"inmediatamente sin importar si se encuentra dentro o fuera de una "
+"transacción. Esto es problemático en una conversación larga con un contexto "
+"extendido sesión/persistencia."
#. Tag: para
-#: session_api.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
"<literal>save()</literal>."
msgstr ""
-"Alternativamente, puedes asignar el identificador usando una versión "
+"Opcionalmente, puede asignar el identificador utilizando una versión "
"sobrecargada de <literal>save()</literal>."
-#. Tag: programlisting
-#: session_api.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-
-#. Tag: para
-#: session_api.xml:152
-#, fuzzy, no-c-format
-msgid ""
"If the object you make persistent has associated objects (e.g. the "
"<literal>kittens</literal> collection in the previous example), these "
"objects can be made persistent in any order you like unless you have a "
@@ -278,18 +241,17 @@
"violate a <literal>NOT NULL</literal> constraint if you <literal>save()</"
"literal> the objects in the wrong order."
msgstr ""
-"Si el objeto que haces persistente tiene objetos asociados (por ejemplo, la "
-"colección <literal>kittens</literal> en el ejemplo anterior), estos "
-"objetos pueden ser hechos persistentes en cualquier orden que quieras a "
-"menos que tengas una restricción <literal>NOT NULL</literal> sobre "
-"una columna clave foránea. Nunca hay riesgo de violar restricciones "
-"de clave foránea. Sin embargo, podrías violar una "
-"restricción <literal>NOT NULL</literal> si llamas a <literal>save()</"
-"literal> sobre objetos en orden erróneo."
+"Si el objeto que hace persistente tiene objetos asociados (por ejemplo, la "
+"colección <literal>kittens</literal> en el ejemplo anterior), estos objetos "
+"pueden ser hechos persistentes en cualquier orden que quiera a menos de que "
+"tenga una restricción <literal>NOT NULL</literal> sobre una columna clave "
+"foránea. Nunca hay riesgo de violar restricciones de clave foránea. Sin "
+"embargo, puede que usted viole una restricción <literal>NOT NULL</literal> "
+"si llama a <literal>save()</literal> sobre los objetos en el orden "
+"equivocado. "
#. Tag: para
-#: session_api.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
"Hibernate's <emphasis>transitive persistence</emphasis> feature to save the "
@@ -297,79 +259,40 @@
"constraint violations do not occur - Hibernate will take care of everything. "
"Transitive persistence is discussed later in this chapter."
msgstr ""
-"Usualmente no te preocupas con este detalle, pues muy probablemente "
-"usarás la funcionalidad de <emphasis>persistencia transitiva</"
-"emphasis> de Hibernate para salvar los objetos asociados automá"
-"ticamente. Entonces, ni siquiera ocurren violaciones de restricciones "
-"<literal>NOT NULL</literal> - Hibernate cuidará de todo. La "
-"persistencia transitiva se discute más adelante en este capí"
-"tulo."
+"Usualmente no se preocupe de este detalle, pues muy probablemente utilizará "
+"la funcionalidad de <emphasis>persistencia transitiva</emphasis> de "
+"Hibernate para guardar los objetos asociados automáticamente. Entonces, ni "
+"siquiera tienen lugar violaciones de restricciones <literal>NOT NULL</"
+"literal> - Hibernate se ocupará de todo. Más adelante en este capÃtulo se "
+"discute la persistencia transitiva."
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr "Cargando un objeto"
#. Tag: para
-#: session_api.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
"a way of retrieving a persistent instance if you know its identifier. "
"<literal>load()</literal> takes a class object and loads the state into a "
"newly instantiated instance of that class in a persistent state."
msgstr ""
-"Los métodos <literal>load()</literal> de <literal>Session</literal> "
-"te brindan una forma de traer una instancia persistente si ya saves su "
-"identificador. <literal>load()</literal> toma un objeto clase y "
-"cargará el estado dentro de una instancia recién instanciada "
-"de esta clase, en estado persistente."
+"Los métodos <literal>load()</literal> de <literal>Session</literal> le "
+"proporcionan una forma de recuperar una instancia persistente si ya conoce "
+"su identificador. <literal>load()</literal> toma un objeto clase y carga el "
+"estado dentro de una instancia recién instanciada de esa clase, en un estado "
+"persistente."
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
-msgstr "Alternativamente, puedes cargar estado dentro de una instancia dada:"
+msgstr "Alternativamente, puede cargar estado dentro de una instancia dada:"
-#. Tag: programlisting
-#: session_api.xml:190
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-
-#. Tag: para
-#: session_api.xml:192
-#, fuzzy, no-c-format
-msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
"exception if there is no matching database row. If the class is mapped with "
"a proxy, <literal>load()</literal> just returns an uninitialized proxy and "
@@ -379,80 +302,51 @@
"be loaded as a batch if <literal>batch-size</literal> is defined for the "
"class mapping."
msgstr ""
-"Nota que <literal>load()</literal> lanzará una excepción "
-"irrecuperable si no hay una fila correspondiente en base de datos. Si la "
-"clase es mapeada con un proxy, <literal>load()</literal> sólo "
-"devuelve un proxy no inicializado y no llamará realmente a la base de "
-"datos hasta que invoques un método del proxy. Este comportamiento es "
-"muy útil si deseas crear una asociación a un objeto sin "
-"cargarlo realmente de la base de datos. Permite además que mú"
-"ltiples instancias sean cargadas como un lote si se define <literal>batch-"
+"Note que <literal>load()</literal> lanzará una excepción irrecuperable si no "
+"hay una fila correspondiente en la base de datos. Si la clase se mapea con "
+"un proxy, <literal>load()</literal> sólo retorna un proxy no inicializado y "
+"no llamará realmente a la base de datos hasta que invoque un método del "
+"proxy. Este comportamiento es muy útil si desea crear una asociación a un "
+"objeto sin cargarlo realmente de la base de datos. Además permite que "
+"múltiples instancias sean cargadas como un lote si se define <literal>batch-"
"size</literal> para el mapeo de la clase."
#. Tag: para
-#: session_api.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
"<literal>get()</literal> method which hits the database immediately and "
"returns null if there is no matching row."
msgstr ""
-"Si no tienes certeza que exista una fila correspondiente, debes usar el "
-"método <literal>get()</literal>, que llama a la base de datos "
-"inmediatamente y devuelve nulo si no existe una fila correspondiente."
+"Si no tiene la certeza de que existe una fila correspondiente, debe utilizar "
+"el método <literal>get()</literal>, que llama a la base de datos "
+"inmediatamente y devuelve nulo si no existe una fila correspondiente. "
-#. Tag: programlisting
-#: session_api.xml:209
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-
-#. Tag: para
-#: session_api.xml:211
-#, fuzzy, no-c-format
-msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
"literal>, using a <literal>LockMode</literal>. See the API documentation for "
"more information."
msgstr ""
-"Puedes incluso cargar un objeto usando un <literal>SELECT ... FOR UPDATE</"
-"literal> de SQL, usando un <literal>LockMode</literal>. Ver la "
-"documentación de la API para más información."
+"Incluso puede cargar un objeto utilizando un <literal>SELECT ... FOR UPDATE</"
+"literal> de SQL, usando un <literal>LockMode</literal>. Consulte la "
+"documentación de la API para obtener más información."
-#. Tag: programlisting
-#: session_api.xml:216
-#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-
#. Tag: para
-#: session_api.xml:218
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
"emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to "
"specify <literal>lock</literal> or <literal>all</literal> as a cascade style "
"for the association."
msgstr ""
-"Ten en cuenta que <emphasis>ninguna</emphasis> instancia asociada o "
-"colección contenida es selecciona <literal>FOR UPDATE</literal>, a "
-"menos que decidas especificar <literal>lock</literal> o <literal>all</"
-"literal> como un estilo de cascada para la asociación."
+"<emphasis>Ninguna</emphasis> instancia asociada o colección contenida es "
+"seleccionada para actualizacion - <literal>FOR UPDATE</literal>, a menos de "
+"que decida especificar <literal>lock</literal> o <literal>all</literal> como "
+"un estilo de cascada para la asociación."
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
@@ -460,46 +354,30 @@
"triggers are used to initialize some of the properties of the object."
msgstr ""
"Es posible volver a cargar un objeto y todas sus colecciones en cualquier "
-"momento, usando el método <literal>refresh()</literal>. Esto es "
-"útil cuando se usan disparadores de base de datos para inicializar "
-"algunas de las propiedades del objeto."
+"momento, utilizando el método <literal>refresh()</literal>. Esto es útil "
+"cuando se usan disparadores de base de datos para inicializar algunas de las "
+"propiedades del objeto."
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
-"Una cuestión importante aparece usualmente en este punto: ¿Cuá"
-"nto carga Hibernate de la base de datos y cuántos <literal>SELECT</"
-"literal>s de SQL usará? Esto depende de la <emphasis>estrategia de "
-"recuperación</emphasis> y se explica en <xref linkend=\"performance-"
-"fetching\"/>."
+"¿Cuánto carga Hibernate de la base de datos y cuántos <literal>SELECT</"
+"literal>s de SQL utilizará? Esto depende de la <emphasis>estrategia de "
+"recuperación</emphasis>. Esto se explica en la <xref linkend=\"performance-"
+"fetching\" />."
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
-msgstr "Consultando"
+msgstr "Consultas"
#. Tag: para
-#: session_api.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
"need a query. Hibernate supports an easy-to-use but powerful object oriented "
@@ -508,23 +386,20 @@
"express your query in the native SQL of your database, with optional support "
"from Hibernate for result set conversion into objects."
msgstr ""
-"Si no sabes los identificadores de los objetos que estás buscando, "
-"necesitas una consulta. Hibernate soporta un lenguaje de consulta orientado "
-"a objetos (HQL) fácil de usar pero potente. Para la creación "
-"de consultas programáticas, Hibernate soporta una funcionalidad "
-"sofisticada de consulta de Criteria y Example (QBC and QBE). También "
-"puedes expresar tu consulta en el SQL nativo de tu base de datos, con "
-"soporte opcional de Hibernate para la conversión del conjunto "
-"resultado en objetos."
+"Si no conoce los identificadores de los objetos que está buscando, necesita "
+"una consulta. Hibernate soporta un lenguaje de consulta orientado a objetos "
+"(HQL) fácil de usar pero potente a la vez. Para la creación de consultas "
+"programáticas, Hibernate soporta una funcionalidad sofisticada de consulta "
+"de Criteria y Example (QBC y QBE). También puede expresar su consulta en el "
+"SQL nativo de su base de datos, con soporte opcional de Hibernate para la "
+"conversión del conjunto de resultados a objetos."
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
-msgstr "Ejecutando consultas"
+msgstr "Ejecución de consultas"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -534,65 +409,14 @@
"literal>:"
msgstr ""
"Las consultas HQL y SQL nativas son representadas con una instancia de "
-"<literal>org.hibernate.Query</literal>. Esta interface ofrece métodos "
-"para la ligación de parámetros, manejo del conjunto resultado, "
-"y para la ejecución de la consulta real. Siempre obtienes una "
-"<literal>Query</literal> usando la <literal>Session</literal> actual:"
+"<literal>org.hibernate.Query</literal>. Esta interfaz ofrece métodos para "
+"ligar parámetros, manejo del conjunto resultado, y para la ejecución de la "
+"consulta real. Siempre obtiene una <literal>Query</literal> utilizando la "
+"<literal>Session</literal> actual:"
-#. Tag: programlisting
-#: session_api.xml:264
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]>"
-
-#. Tag: para
-#: session_api.xml:266
-#, fuzzy, no-c-format
-msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
"result of the query will be loaded completely into a collection in memory. "
"Entity instances retrieved by a query are in a persistent state. The "
@@ -602,22 +426,23 @@
"with their collections initialized. You can filter these duplicates through "
"a <literal>Set</literal>."
msgstr ""
-"Una consulta se ejecuta usualmente invocando a <literal>list()</literal>, el "
-"resultado de la consulta será cargado completamente dentro de una "
-"colección en memoria. Las instancias de entidad traídas por "
-"una consulta están en estado persistente. El método "
-"<literal>uniqueResult()</literal> ofrece un atajo si sabes que tu consulta "
-"devolverá sólo un objeto."
+"Una consulta se ejecuta usualmente invocando a <literal>list()</literal>. El "
+"resultado de la consulta será cargado completamente dentro de una colección "
+"en memoria. Las instancias de entidad recuperadas por una consulta se "
+"encuentran en estado persistente. El método <literal>uniqueResult()</"
+"literal> ofrece un atajo si sabe que su consulta retornará sólamente un "
+"objeto. Las consultas que hacen uso de una recuperación temprana de "
+"colecciones usualmente retornan duplicados de los objetos raÃz, pero con sus "
+"colecciones inicializadas. Puede filtrar estos duplicados a través de un "
+"<literal>Set</literal>."
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
-msgstr "Iterando los resultados"
+msgstr "Iteración de resultados"
#. Tag: para
-#: session_api.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
"the query using the <literal>iterate()</literal> method. This will usually "
@@ -629,158 +454,54 @@
"returns identifiers, and <emphasis>n</emphasis> additional selects to "
"initialize the actual instances."
msgstr ""
-"Ocasionalmente, podrías ser capaz de lograr mejor rendimiento al "
-"ejecutar la consulta usando el método <literal>iterate()</literal>. "
-"Esto sólo será en el caso que esperes que las instancias "
-"reales de entidad devueltas por la consulta estén ya en la "
-"sesión o caché de segundo nivel. Si todavía no "
-"están en caché, <literal>iterate()</literal> será "
-"más lento que <literal>list()</literal> y podría requerir "
-"muchas llamadas a la base de datos para una consulta simple, usualmente "
-"<emphasis>1</emphasis> para la selección inicial que solamente "
-"devuelve identificadores, y <emphasis>n</emphasis> selecciones adicionales "
-"para inicializar las instancias reales."
+"Ocasionalmente, puede lograr un mejor rendimiento al ejecutar la consulta "
+"utilizando el método <literal>iterate()</literal>. Esto ocurrirá usualmente "
+"si espera que las instancias reales de entidad retornadas por la consulta "
+"estén ya en la sesión o en el caché de segundo nivel. Si todavÃa no están en "
+"caché, <literal>iterate()</literal> será más lento que <literal>list()</"
+"literal> y podrÃa requerir muchas llamadas a la base de datos para una "
+"consulta simple, usualmente <emphasis>1</emphasis> para la selección inicial "
+"que sólamente retorna identificadores y <emphasis>n</emphasis> selecciones "
+"adicionales para inicializar las instancias reales."
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr "Consultas que devuelven tuplas"
#. Tag: para
-#: session_api.xml:298
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
"as an array:"
msgstr ""
-"Las consultas de Hibernate a veces devuelven tuplas de objetos, en cuyo caso "
-"cada tupla se devuelve como un array:"
+"Las consultas de Hibernate a veces retornan tuplas de objetos. Cada tupla se "
+"retorna como un array:"
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr "Resultados escalares"
#. Tag: para
-#: session_api.xml:310
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
"clause. They can even call SQL aggregate functions. Properties or aggregates "
"are considered \"scalar\" results and not entities in persistent state."
msgstr ""
-"Las consultas pueden especificar una propiedad de una clase en la clá"
-"usula <literal>select</literal>. Pueden incluso llamar a funciones de "
-"agregación SQL. Las propiedades o agregaciones son considerados "
-"resultados \"escalares\" (y no entidades en estado persistente)."
+"Las consultas pueden especificar una propiedad de una clase en la cláusula "
+"<literal>select</literal>. Pueden incluso llamar a funciones de agregación "
+"SQL. Las propiedades o agregaciones son considerados resultados \"escalares"
+"\" y no entidades en estado persistente."
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
-msgstr "Ligación de parámetros"
+msgstr "Ligado de parámetros"
#. Tag: para
-#: session_api.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
@@ -788,290 +509,121 @@
"are identifiers of the form <literal>:name</literal> in the query string. "
"The advantages of named parameters are as follows:"
msgstr ""
-"Se proveen métodos en <literal>Query</literal> para ligar valores a "
-"parámetros con nombre o parámetros <literal>?</literal> de "
-"estilo JDBC. <emphasis>Al contrario de JDBC, Hibernate numera los pará"
-"metros desde cero.</emphasis> Los parámetros con nombre son "
-"identificadores de la forma <literal>:name</literal> en la cadena de la "
-"consulta. Las ventajas de los parámetros con nombre son:"
+"Los métodos en <literal>Query</literal> se proporcionan para enlazar valores "
+"a los parámetros con nombre o parámetros <literal>?</literal> de estilo "
+"JDBC. <emphasis>Al contrario de JDBC, Hibernate numera los parámetros desde "
+"cero.</emphasis> Los parámetros con nombre son identificadores de la forma "
+"<literal>:name</literal> en la cadena de la consulta. Las ventajas de los "
+"parámetros con nombre son las siguientes:"
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
msgstr ""
-"los parámetros con nombre son insensibles al orden en que aparecen en "
-"la cadena de consulta"
+"los parámetros con nombre son insensibles al orden en que aparecen en la "
+"cadena de consulta"
#. Tag: para
-#: session_api.xml:339
-#, fuzzy, no-c-format
+#, no-c-format
msgid "they can occur multiple times in the same query"
-msgstr "pueden aparecer múltiples veces en la misma consulta"
+msgstr "pueden aparecer múltiples veces en la misma petición"
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr "son auto-documentados"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
-msgstr "Paginación"
+msgstr "Paginación"
#. Tag: para
-#: session_api.xml:361
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
"number of rows you want to retrieve and/or the first row you want to "
"retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
-"Si necesitas especificar límites sobre tu conjunto resultado (el "
-"número máximo de filas que quieras traer y/o la primera fila "
-"que quieras traer) debes usar los métodos de la interface "
-"<literal>Query</literal>:"
+"Si necesita especificar enlaces sobre su conjunto de resultados, el número "
+"máximo de filas que quiere recuperar y/o la primera fila que quiere "
+"recuperar, puede utilizar los métodos de la interfaz <literal>Query</"
+"literal>:"
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
"your DBMS."
msgstr ""
-"Hibernate sabe cómo traducir este límite de consulta al SQL "
-"nativo de tu DBMS."
+"Hibernate sabe cómo traducir este lÃmite de consulta al SQL nativo de su "
+"DBMS."
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
-msgstr "Iteración scrollable"
+msgstr "Iteración deslizable"
#. Tag: para
-#: session_api.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
"<literal>Query</literal> interface can be used to obtain a "
"<literal>ScrollableResults</literal> object that allows flexible navigation "
"of the query results."
msgstr ""
-"Si tu driver JDBC soporta <literal>ResultSet</literal>s scrollables, la "
-"interface <literal>Query</literal> puede ser usada para obtener un objeto "
-"<literal>ScrollableResults</literal>, que permite una navegación "
-"flexible de los resultados de consulta."
+"Si su controlador JDBC soporta <literal>ResultSet</literal>s deslizables, la "
+"interfaz <literal>Query</literal> se puede utilizar para obtener un objeto "
+"<literal>ScrollableResults</literal> que permite una navegación flexible de "
+"los resultados de consulta. "
-#. Tag: programlisting
-#: session_api.xml:386
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-
-#. Tag: para
-#: session_api.xml:388
-#, fuzzy, no-c-format
-msgid ""
"Note that an open database connection and cursor is required for this "
"functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult"
"()</literal> if you need offline pagination functionality."
msgstr ""
-"Nota que se requiere una conexión de base de datos abierta (y cursor) "
-"para esta funcionalidad, usa <literal>setMaxResult()</literal>/"
-"<literal>setFirstResult()</literal> si necesitas la funcionalidad de "
-"paginación fuera de línea."
+"Note que se requiere una conexión de base de datos abierta y un cursor para "
+"esta funcionalidad. Utilice <literal>setMaxResult()</literal>/"
+"<literal>setFirstResult()</literal> si necesita la funcionalidad de "
+"paginación fuera de lÃnea."
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
-msgstr "Externalizando consultas con nombre"
+msgstr "Externalización de consultas con nombre"
#. Tag: para
-#: session_api.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
"<literal>CDATA</literal> section if your query contains characters that "
"could be interpreted as markup."
msgstr ""
-"Puedes además definir consultas con nombre en el documento de mapeo. "
-"(Recuerda usar una sección <literal>CDATA</literal> si tu consulta "
-"contiene caracteres que puedan ser interpretados como etiquetado.)"
+"También puede definir consultas con nombre en el documento de mapeo. "
+"Recuerde utilizar una sección <literal>CDATA</literal> si su consulta "
+"contiene caracteres que puedan ser interpretados como etiquetado."
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-"<![CDATA[<query name=\"eg.DomesticCat.by.name.and.minimum.weight\"><![CDATA"
-"[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
-msgstr ""
-"La ligación de parámetros y ejecución se hace "
-"programáticamente:"
+msgstr "El ligado de parámetros y de ejecución se realiza programáticamente:"
-#. Tag: programlisting
-#: session_api.xml:411
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-msgstr ""
-"<![CDATA[Query q = sess.getNamedQuery(\"eg.DomesticCat.by.name.and.minimum."
-"weight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-
-#. Tag: para
-#: session_api.xml:413
-#, fuzzy, no-c-format
-msgid ""
"The actual program code is independent of the query language that is used. "
"You can also define native SQL queries in metadata, or migrate existing "
"queries to Hibernate by placing them in mapping files."
msgstr ""
-"Nota que el código real del programa es independiente del lenguaje de "
-"consulta usado; puedes además definir consultas SQL nativas en "
-"metadatos, o migrar consultas existentes a Hibernate colocándolas en "
-"ficheros de mapeo."
+"El código real del programa es independiente del lenguaje de consulta "
+"utilizado. También puede definir consultas SQL nativas en metadatos, o "
+"migrar consultas existentes a Hibernate colocándolas en archivos de mapeo."
#. Tag: para
-#: session_api.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
"mapping></literal> element requires a global unique name for the query, "
@@ -1079,123 +631,69 @@
"is made unique automatically by prepending the fully qualified name of the "
"class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
-"UNTRANSLATED! Also note that a query declaration inside a <literal><"
-"hibernate-mapping></literal> element requires a global unique name for "
-"the query, while a query declaration inside a <literal><class></"
-"literal> element is made unique automatically by prepending the fully "
-"qualified name of the class, for example <literal>eg.Cat."
-"ByNameAndMaximumWeight</literal>."
+"Observe además que una declaración de consulta dentro de un elemento "
+"<literal><hibernate-mapping></literal> necesita de un nombre único "
+"global para la consulta, mientras que una declaración de consulta dentro de "
+"un elemento <literal><class></literal> se hace única automáticamente "
+"al agregar el nombre completamente calificado de la clase. Por ejemplo, "
+"<literal>eg.Cat.ByNameAndMaximumWeight</literal>."
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
-msgstr "Filtrando colecciones"
+msgstr "Filtración de colecciones"
#. Tag: para
-#: session_api.xml:433
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
"be applied to a persistent collection or array. The query string can refer "
"to <literal>this</literal>, meaning the current collection element."
msgstr ""
-"Un <emphasis>filtro</emphasis> de colección es un tipo especial de "
-"consulta que puede ser aplicado a una colección persistente o array. "
-"La cadena de consulta puede referirse a <literal>this</literal>, "
-"significando el elemento de colección actual."
+"Un <emphasis>filtro</emphasis> de colección es un tipo especial de consulta "
+"que puede ser aplicado a una colección persistente o array. La cadena de "
+"consulta puede referirse a <literal>this</literal>, lo que quiere decir el "
+"elemento de la colección actual."
-#. Tag: programlisting
-#: session_api.xml:439
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-
-#. Tag: para
-#: session_api.xml:441
-#, fuzzy, no-c-format
-msgid ""
"The returned collection is considered a bag that is a copy of the given "
"collection. The original collection is not modified. This is contrary to the "
"implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
-"La colección devuelta es considerada un bag, y es una copia de la "
-"colección dada. La colección original no es modificada (esto "
-"es contrario a la implicación del nombre \"filtro\", pero consistente "
-"con el comportamiento esperado)."
+"La colección devuelta es considerada un bag, y es una copia de la colección "
+"dada. La colección original no es modificada. Esto es lo opuesto a lo que "
+"implica el nombre \"filtro\", pero es consistente con el comportamiento "
+"esperado."
#. Tag: para
-#: session_api.xml:447
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
"although they can have one if required. Filters are not limited to returning "
"the collection elements themselves."
msgstr ""
-"Observa que los filtros no requieren una cláusula <literal>from</"
-"literal> (aunque pueden tener uno si se requiere). Los filtros no está"
-"n limitados a devolver los elementos de colección por sí "
-"mismos."
+"Observe que los filtros no requieren una cláusula <literal>from</literal> "
+"aunque pueden tener una si se necesita. Los filtros no están limitados a "
+"devolver los elementos de colección por sà mismos."
-#. Tag: programlisting
-#: session_api.xml:452
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-
-#. Tag: para
-#: session_api.xml:454
-#, fuzzy, no-c-format
-msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
"large collection:"
msgstr ""
-"Incluso una consulta de filtro vacío es útil, por ejemplo, "
-"para cargar un subconjunto de elementos en una colección enorme:"
+"Incluso una consulta de filtro vacÃo es útil, por ejemplo, para cargar un "
+"subconjunto de elementos en una colección enorme: "
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
msgstr "Consultas de criterios"
#. Tag: para
-#: session_api.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
"dynamically using an object-oriented API, rather than building query "
@@ -1203,45 +701,27 @@
"API for these cases:"
msgstr ""
"HQL es extremadamente potente pero algunos desarrolladores prefieren "
-"construir consultas dinámicamente usando una API orientada a objetos, "
-"en vez construir cadenas de consulta. Hibernate provee una API intuitiva de "
-"consulta <literal>Criteria</literal> para estos casos:"
+"construir consultas dinámicamente utilizando una API orientada a objetos, en "
+"vez de construir cadenas de consulta. Hibernate brinda una API intuitiva de "
+"consulta <literal>Criteria</literal> para estos casos: "
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
-"Las APIs de <literal>Criteria</literal> y la asociada <literal>Example</"
-"literal> son discutidas en más detalle en <xref linkend="
-"\"querycriteria\"/>."
+"Las APIs de <literal>Criteria</literal> y el <literal>Example</literal> "
+"asociado se discuten en más detalle en el xref linkend=\"querycriteria\" />."
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
msgstr "Consultas en SQL nativo"
#. Tag: para
-#: session_api.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
"and let Hibernate manage the mapping from result sets to objects. You can at "
@@ -1249,69 +729,31 @@
"<literal>Connection</literal> directly. If you choose to use the Hibernate "
"API, you must enclose SQL aliases in braces:"
msgstr ""
-"Puedes expresar una consulta en SQL, usando <literal>createSQLQuery()</"
-"literal> y dejando que Hibernate cuide del mapeo de los conjuntos resultado "
-"a objetos. Nota que puedes llamar en cualquier momento a <literal>session."
-"connection()</literal> y usar la <literal>Connection</literal> JDBC "
-"directamente. Si eliges usar la API de Hibernate, debes encerrar los alias "
-"de SQL entre llaves:"
+"Puede expresar una consulta en SQL, utilizando <literal>createSQLQuery()</"
+"literal> y dejar que Hibernate administre el mapeo de los conjuntos de "
+"resultados a objetos. Puede llamar en cualquier momento a <literal>session."
+"connection()</literal> y utilizar la <literal>Connection</literal> JDBC "
+"directamente. Si elige usar la API de Hibernate, tiene que encerrar los "
+"alias de SQL entre llaves:"
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
-"Las consultas SQL pueden contener parámetros con nombre y "
-"posicionales, al igual que las consultas de Hibernate. Puede encontrarse "
-"más información sobre consultas en SQL nativo en <xref linkend="
-"\"querysql\"/>."
+"Las consultas SQL pueden contener parámetros con nombre y posicionados, al "
+"igual que las consultas de Hibernate. Puede encontrar más información sobre "
+"las consultas en SQL nativo en Hibernate en el <xref linkend=\"querysql\" />."
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
-msgstr "Modificando objetos persistentes"
+msgstr "Modificación de objetos persistentes"
#. Tag: para
-#: session_api.xml:509
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
"loaded, saved, created or queried by the <literal>Session</literal>) can be "
@@ -1323,49 +765,33 @@
"to update the state of an object is to <literal>load()</literal> it and then "
"manipulate it directly while the <literal>Session</literal> is open:"
msgstr ""
-"Las <emphasis>instancias persistentes transaccionales</emphasis> (es decir, "
-"objetos cargados, creados o consultados por la <literal>Session</literal>) "
-"pueden ser manipulados por la aplicación y cualquier cambio al estado "
-"persistente será persistido cuando la <literal>Session</literal> sea "
-"<emphasis>limpiada (flushed)</emphasis> (discutido más adelante en "
-"este capítulo). No hay necesidad de llamar un método en "
-"particular (como <literal>update()</literal>, que tiene un propósito "
-"diferente) para hacer persistentes tus modificaciones. De modo que la forma "
-"más directa de actualizar el estado de un objeto es cargarlo con "
-"<literal>load()</literal>, y entonces manipularlo directamente, mientras la "
-"<literal>Session</literal> está abierta:"
+"Las <emphasis>instancias persistentes transaccionales</emphasis> (por "
+"ejemplo, los objetos cargados, creados o consultados por la "
+"<literal>Session</literal>) pueden ser manipulados por la aplicación y "
+"cualquier cambio al estado persistente será persistido cuando se "
+"<emphasis>vacie</emphasis> la <literal>Session</literal>. Esto se discute "
+"más adelante en este capÃtulo. No hay necesidad de llamar a un método en "
+"particular (como <literal>update()</literal>, que tiene un propósito "
+"diferente) para hacer persistentes sus modificaciones. De modo que la forma "
+"más directa de actualizar el estado de un objeto es cargarlo con "
+"<literal>load()</literal> y luego manipularlo directamente, mientras la "
+"<literal>Session</literal> está abierta:"
-#. Tag: programlisting
-#: session_api.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-
-#. Tag: para
-#: session_api.xml:522
-#, fuzzy, no-c-format
-msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
"session both an SQL <literal>SELECT</literal> to load an object and an SQL "
"<literal>UPDATE</literal> to persist its updated state. Hibernate offers an "
"alternate approach by using detached instances."
msgstr ""
-"A veces este modelo de programación es ineficiente pues podría "
-"requerir una <literal>SELECT</literal> de SQL (para cargar un objeto) y un "
-"<literal>UPDATE</literal> de SQL (para hacer persistentes sus datos "
-"actualizados) en la misma sesión. Por lo tanto, Hibernate ofrece un "
-"enfoque alternativo, usando instancias separadas (detached)."
+"A veces este modelo de programación es ineficiente pues requiere un "
+"<literal>SELECT</literal> de SQL para cargar un objeto y un <literal>UPDATE</"
+"literal> de SQL para hacer persistente su estado actualizado en la misma "
+"sesión. Por lo tanto, Hibernate ofrece un enfoque opcional, utilizando "
+"instancias separadas."
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1377,29 +803,27 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
-"Nota que Hibernate no ofreve su propia API para ejecución directa de "
-"sentencias <literal>UPDATE</literal> o <literal>DELETE</literal>. Hibernate "
-"es un servicio de <emphasis>gestión de estado</emphasis>, no tienes "
-"que pensar en <literal>sentencias</literal> para usarlo. JDBC es una API "
-"perfecta para ejecutar sentencias SQL; puedes obtener una "
+"Hibernate no ofrece su propia API para ejecución directa de declaraciones "
+"<literal>UPDATE</literal> o <literal>DELETE</literal>. Hibernate es un "
+"servicio de <emphasis>administración de estado</emphasis>, no tiene que "
+"pensar en <emphasis>declaraciones</emphasis> para poder utilizarlo. JDBC es "
+"una API perfecta para ejecutar declaraciones SQL; puede obtener una "
"<literal>Connection</literal> JDBC en cualquier momento llamando a "
-"<literal>session.connection()</literal>. Además, la noción de "
-"operaciones masivas entra en conflicto con el mapeo objeto/relacional en "
-"aplicaciones en línea orientadas al procesamiento de transacciones. "
-"Versiones futuras de Hibernate pueden, sin embargo, proveer funciones de "
-"operación masiva especiales. Ver <xref linkend=\"batch\"/> por "
-"algunos trucos de operación en lote (batch) posibles."
+"<literal>session.connection()</literal>. Además, la noción de operaciones "
+"masivas entra en conflicto con el mapeo objeto/relacional en aplicaciones en "
+"lÃnea orientadas al procesamiento de transacciones. Sin embargo, las "
+"versiones futuras de Hibernate podrán proporcionar funciones de operación "
+"masiva especiales. Consulte <xref linkend=\"batch\"/> para obtener algunos "
+"trucos posibles para la operación en lote."
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
-msgstr "Modificando objetos separados"
+msgstr "Modificación de objetos separados"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1408,54 +832,24 @@
"environment usually use versioned data to ensure isolation for the \"long\" "
"unit of work."
msgstr ""
-"Muchas aplicaciones necesitan recuperar un objeto en una transacción, "
-"enviarla a la capa de UI para su manipulación, y entonces salvar los "
-"cambios en una nueva transacción. Las aplicaciones que usan este tipo "
-"de enfoque en un entorno de alta concurrencia usualmente usan datos "
+"Muchas aplicaciones necesitan recuperar un objeto en una transacción, "
+"enviarla a la capa de UI para su manipulación, y entonces guardar los "
+"cambios en una nueva transacción. Las aplicaciones que usan este tipo de "
+"enfoque en un entorno de alta concurrencia usualmente utilizan datos "
"versionados para asegurar el aislamiento de la unidad de trabajo \"larga\"."
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
"instances using the <literal>Session.update()</literal> or <literal>Session."
"merge()</literal> methods:"
msgstr ""
-"Hibernate soporta este modelo al proveer re-unión de instancias "
-"separadas usando los métodos <literal>Session.update()</literal> o "
+"Hibernate soporta este modelo al proveer re-unión de instancias separadas "
+"utilizando los métodos <literal>Session.update()</literal> o "
"<literal>Session.merge()</literal>:"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1464,12 +858,10 @@
msgstr ""
"Si el <literal>Cat</literal> con identificador <literal>catId</literal> ya "
"hubiera sido cargado por <literal>secondSession</literal> cuando la "
-"aplicación intentó volver a unirlo, se habría lanzado "
-"una excepción."
+"aplicación intentó volver a unirlo, se habrÃa lanzado una excepción."
#. Tag: para
-#: session_api.xml:569
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
"contain an already persistent instance with the same identifier. Use "
@@ -1479,95 +871,69 @@
"fresh session, ensuring that the reattachment of your detached instances is "
"the first operation that is executed."
msgstr ""
-"Usa <literal>update()</literal> si no estás seguro que la sesió"
-"n tenga una instancia ya persistente con el mismo identificador, y "
-"<literal>merge()</literal> si quieres fusionar tus modificaciones en "
-"cualquier momento sin consideración del estado de la sesión. "
-"En otras palabras, <literal>update()</literal> es usualmente el primer "
-"método que llamarías en una sesión fresca, asegurando "
-"que la re-unión de tus instancias separadas es la primera "
-"operación que se ejecuta."
+"Utilice <literal>update()</literal> si está seguro de que la sesión no tiene "
+"una instancia ya persistente con el mismo identificador. Utilice "
+"<literal>merge()</literal> si quiere fusionar sus modificaciones en "
+"cualquier momento sin consideración del estado de la sesión. En otras "
+"palabras, <literal>update()</literal> usualmente es el primer método que "
+"usted llamarÃa en una sesión actualizada, asegurando que la re-unión de sus "
+"instancias separadas es la primera operación que se ejecuta."
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
-"La aplicación debe actualizar individualmente las instancias "
-"separadas alcanzables por la instancia separada dada llamando a "
-"<literal>update()</literal>, si y <emphasis>sólo</emphasis> si quiere "
-"que sus estados sean también actualizados. Esto puede, por supuesto, "
-"ser automatizado usando <emphasis>persistencia transitiva</emphasis>, ver "
-"<xref linkend=\"objectstate-transitive\"/>."
+"La aplicación debe actualizar <literal>update()</literal> individualmente "
+"las instancias separadas alcanzables por la instancia separada dada "
+"<emphasis>sólo</emphasis> si quiere que su estado se actualice. Esto puede "
+"ser automatizado la utilizando la <emphasis>persistencia transitiva</"
+"emphasis>. Consulte la <xref linkend=\"objectstate-transitive\" /> para "
+"obtener mayor información. "
#. Tag: para
-#: session_api.xml:585
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
"reassociate an object with a new session. However, the detached instance has "
"to be unmodified."
msgstr ""
-"El método <literal>lock()</literal> también permite a una "
-"aplicación reasociar un objeto con una sesión nueva. Sin "
-"embargo, la instancia separada no puede haber sido modificada!"
+"El método <literal>lock()</literal> también le permite a una aplicación "
+"reasociar un objeto con una sesión nueva. Sin embargo, la instancia separada "
+"no puede haber sido modificada."
-#. Tag: programlisting
-#: session_api.xml:590
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-
-#. Tag: para
-#: session_api.xml:592
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal>lock()</literal> can be used with various "
"<literal>LockMode</literal>s. See the API documentation and the chapter on "
"transaction handling for more information. Reattachment is not the only "
"usecase for <literal>lock()</literal>."
msgstr ""
-"Nota que <literal>lock()</literal> puede ser usado con varios "
-"<literal>LockMode</literal>s, ver la documentación de la API y el "
-"capítulo sobre manejo de transacciones para más "
-"información. La re-unión no es el único caso de uso "
-"para <literal>lock()</literal>."
+"Note que <literal>lock()</literal> se puede utilizar con varios "
+"<literal>LockMode</literal>s. Consulte la documentación de la API y el "
+"capÃtulo sobre el manejo de transacciones para obtener mayor información. La "
+"re-unión no es el único caso de uso para <literal>lock()</literal>."
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
"Se discuten otros modelos para unidades de trabajo largas en <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
-msgstr "Detección automática de estado"
+msgstr "Detección automática de estado"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1575,44 +941,13 @@
"detached instances associated with its current identifier. The "
"<literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
-"Los usuarios de Hibernate han pedido un método de propósito "
-"general que bien salve una instancia transitoria generando un identificador "
-"nuevo, o bien actualice/reúna las instancias separadas asociadas con "
-"su identificador actual. El método <literal>saveOrUpdate()</literal> "
-"implementa esta funcionalidad."
+"Los usuarios de Hibernate han pedido un método de propósito general que bien "
+"guarde una instancia transitoria generando un identificador nuevo, o bien "
+"actualice/reúna las instancias separadas asociadas con su identificador "
+"actual. El método <literal>saveOrUpdate()</literal> implementa esta "
+"funcionalidad."
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1622,127 +957,111 @@
"<literal>merge()</literal>. Some whole applications will never use either of "
"these methods."
msgstr ""
-"El uso y semántica de <literal>saveOrUpdate()</literal> parece ser "
-"confuso para usuarios nuevos. Primeramente, en tanto no estés "
-"intentando usar instancias de una sesión en otra sesión nueva, "
-"no debes necesitar usar <literal>update()</literal>, <literal>saveOrUpdate()"
-"</literal>, o <literal>merge()</literal>. Algunas aplicaciones enteras nunca "
-"usarán ninguno de estos métodos."
+"La utilización y semántica de <literal>saveOrUpdate()</literal> parece ser "
+"confuso para los usuarios nuevos. Primero, en tanto no esté tratando de "
+"utilizar instancias de una sesión en otra sesión nueva, no debe necesitar "
+"usar <literal>update()</literal>, <literal>saveOrUpdate()</literal>, o "
+"<literal>merge()</literal>. Algunas aplicaciones enteras nunca usarán "
+"ninguno de estos métodos."
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
"used in the following scenario:"
msgstr ""
"Usualmente <literal>update()</literal> o <literal>saveOrUpdate()</literal> "
-"se usan en el siguiente escenario:"
+"se utilizan en el siguiente escenario:"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
-msgstr "la aplicación carga un objeto en la primera sesión"
+msgstr "la aplicación carga un objeto en la primera sesión"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
-msgstr "el objeto es pasado a la capa de UI"
+msgstr "el objeto se pasa a la capa de UI"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
-msgstr "se hacen algunas modificaciones al objeto"
+msgstr "se realizan algunas modificaciones al objeto"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
-msgstr "el objeto se pasa abajo de regreso a la capa de negocio"
+msgstr "el objeto se pasa abajo de regreso a la capa lógica de negocios"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
"literal> in a second session"
msgstr ""
-"la aplicación hace estas modificaciones persistentes llamando a "
-"<literal>update()</literal> en una segunda sesión"
+"la aplicación hace estas modificaciones persistentes llamando a "
+"<literal>update()</literal> en una segunda sesión"
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> hace lo siguiente:"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
-msgstr "si el objeto ya es persistente en esta sesión, no hace nada"
+msgstr "si el objeto ya es persistente en esta sesión, no haga nada"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
"an exception"
msgstr ""
-"si otro objeto asociado con la sesión tiene el mismo identificador, "
-"lanza una excepción"
+"si otro objeto asociado con la sesión tiene el mismo identificador, lance "
+"una excepción"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
-"si el objeto no tiene ninguna propiedad identificadora, lo salva llamando a "
+"si el objeto no tiene ninguna propiedad identificadora, guárdelo llamando a "
"<literal>save()</literal>"
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
"object, <literal>save()</literal> it"
msgstr ""
-"si el identificador del objeto tiene el valor asignado a un objeto "
-"recién instanciado, lo salva llamando a <literal>save()</literal>"
+"si el identificador del objeto tiene el valor asignado a un objeto recién "
+"instanciado, guárdelo llamando a <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
"<literal><timestamp></literal>, and the version property value is the "
"same value assigned to a newly instantiated object, <literal>save()</"
"literal> it"
msgstr ""
-"si el objeto está versionado (por un <literal><version></"
-"literal> o <literal><timestamp></literal>), y el valor de la propiedad "
-"de versión es el mismo valor asignado a una objeto recién "
-"instanciado, lo salva llamando a <literal>save()</literal>"
+"si el objeto está versionado por un <literal><version></literal> o "
+"<literal><timestamp></literal>, y el valor de la propiedad de versión "
+"es el mismo valor asignado a un objeto recién instanciado, guárdelo llamando "
+"a <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
-"en cualquier otro caso se actualiza el objeto llamando a <literal>update()</"
-"literal>"
+"de otra manera actualice el objeto llamando a <literal>update()</literal>"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "y <literal>merge()</literal> es muy diferente:"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1750,182 +1069,127 @@
"persistent instance"
msgstr ""
"si existe una instancia persistente con el mismo identificador asignado "
-"actualmente con la sesión, copia el estado del objeto dado en la "
-"instancia persistente"
+"actualmente con la sesión, copie el estado del objeto dado en la instancia "
+"persistente"
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
"try to load it from the database, or create a new persistent instance"
msgstr ""
-"si no existe ninguna instancia persistente actualmente asociada a la "
-"sesión, intente cargarla de la base de datos, o crear una nueva "
-"instancia persistente"
+"si no existe ninguna instancia persistente asociada a la sesión actualmente, "
+"intente cargarla desde la base de datos, o cree una nueva instancia "
+"persistente"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr "la instancia persistente es devuelta"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
"detached"
-msgstr ""
-"la instancia dada no resulta ser asociada a la sesión, permanece "
-"separada"
+msgstr "la instancia dada no se asocia a la sesión, permanece separada"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
-msgstr "Borrando objetos persistentes"
+msgstr "Borrado de objetos persistentes"
#. Tag: para
-#: session_api.xml:737
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
"database. Your application, however, can still hold a reference to a deleted "
"object. It is best to think of <literal>delete()</literal> as making a "
"persistent instance, transient."
msgstr ""
-"<literal>Session.delete()</literal> quitará el estado de un objeto de "
-"la base de datos. Por supuesto, tu aplicación podría tener "
-"aún una referencia a un objeto borrado. Lo mejor es pensar en "
-"<literal>delete()</literal> como hacer transitoria una instancia persistente."
+"<literal>Session.delete()</literal> borrará el estado de un objeto de la "
+"base de datos. Sin embargo, su aplicación puede tener todavÃa una referencia "
+"a un objeto borrado. Lo mejor es pensar en <literal>delete()</literal> al "
+"hacer transitoria una instancia persistente."
-#. Tag: programlisting
-#: session_api.xml:744
-#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr "<![CDATA[sess.delete(cat);]]>"
-
#. Tag: para
-#: session_api.xml:746
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
"violations. It is still possible to violate a <literal>NOT NULL</literal> "
"constraint on a foreign key column by deleting objects in the wrong order, e."
"g. if you delete the parent, but forget to delete the children."
msgstr ""
-"Puedes borrar los objetos en el orden que gustes, sin riesgo de violaciones "
-"de restricción de clave foránea. Aún es posible violar "
-"una restricción <literal>NOT NULL</literal> sobre una columna clave "
-"foránea borrando objetos en un orden erróneo, por ejemplo, si "
-"borras el padre, pero olvidas borrar los hijos."
+"Puede borrar objetos en el orden que quiera, sin riesgo de violaciones de "
+"restricción de clave foránea. Aún es posible violar una restricción "
+"<literal>NOT NULL</literal> sobre una columna de clave foránea borrando "
+"objetos en un orden erróneo, por ejemplo, si borra el padre, pero olvida "
+"borrar los hijos."
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
-msgstr "Replicando objetos entre dos almacénes de datos diferentes"
+msgstr "Replicación de objetos entre dos almacenamientos de datos diferentes"
#. Tag: para
-#: session_api.xml:759
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
"and make them persistent in a different datastore, without regenerating "
"identifier values."
msgstr ""
-"Es ocasionalmente útil ser capaz de tomar un grafo de instancias "
-"persistentes y hacerlas persistentes en un almacén de datos "
-"diferente, sin regenerar los valores identificadores."
+"A veces es útil poder tomar un grafo de la instancias persistentes y "
+"hacerlas persistentes en un almacenamiento de datos diferente, sin regenerar "
+"los valores identificadores."
-#. Tag: programlisting
-#: session_api.xml:765
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-
-#. Tag: para
-#: session_api.xml:767
-#, fuzzy, no-c-format
-msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
"literal> will deal with conflicts with existing rows in the database:"
msgstr ""
-"El <literal>ReplicationMode</literal> determina cómo "
-"<literal>replicate()</literal> tratará los conflictos con filas "
-"existentes en la base de datos."
+"El <literal>ReplicationMode</literal> determina cómo <literal>replicate()</"
+"literal> tratará los conflictos con filas existentes en la base de datos:"
#. Tag: para
-#: session_api.xml:774
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
"an existing database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.IGNORE</literal> - ignora el objeto cuando existe "
-"una fila de base de datos con el mismo identificador"
+"<literal>ReplicationMode.IGNORE</literal>: ignora el objeto cuando existe "
+"una fila de la base de datos con el mismo identificador"
#. Tag: para
-#: session_api.xml:780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
"database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.OVERWRITE</literal> - sobrescribe cualquier fila de "
-"base de datos existente con el mismo identificador"
+"<literal>ReplicationMode.OVERWRITE</literal>: sobrescribe cualquier fila de "
+"la base de datos existente con el mismo identificador"
#. Tag: para
-#: session_api.xml:786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
"is an existing database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.EXCEPTION</literal> - lanza una excepción si "
-"existe una fila de base de datos con el mismo identificador"
+"<literal>ReplicationMode.EXCEPTION</literal>: lanza una excepción si existe "
+"una fila de la base de datos con el mismo identificador"
#. Tag: para
-#: session_api.xml:792
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
"version number is earlier than the version number of the object, or ignore "
"the object otherwise"
msgstr ""
-"<literal>ReplicationMode.LATEST_VERSION</literal> - sobrescribe la fila si "
-"su número de versión es anterior al número de "
-"versión del objeto, o en caso contrario ignora el objeto"
+"<literal>ReplicationMode.LATEST_VERSION</literal>: sobrescribe la fila si su "
+"número de versión es anterior al número de versión del objeto, o de lo "
+"contrario ignora el objeto"
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1935,114 +1199,98 @@
msgstr ""
"Los casos de uso para esta funcionalidad incluyen reconciliar datos "
"ingresados en instancias diferentes de bases de datos, actualizar "
-"información de configuración de sistema durante "
-"actualizaciones de producto, deshacer cambios producidos durante "
-"transacciones no-ACID y más."
+"información de configuración del sistema durante actualizaciones de "
+"producto, deshacer cambios realizados durante transacciones no-ACID y más."
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
-msgstr "Limpiando (flushing) la sesión"
+msgstr "Limpieza (flushing) de la sesión"
#. Tag: para
-#: session_api.xml:811
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
"needed to synchronize the JDBC connection's state with the state of objects "
"held in memory. This process, called <emphasis>flush</emphasis>, occurs by "
"default at the following points:"
msgstr ""
-"Cada tanto, la <literal>Session</literal> ejecutará las sentencias "
-"SQL necesarias para sincronizar el estado de la conexión JDBC con el "
-"estado de los objetos mantenidos en menoria. Este proceso, "
-"<emphasis>limpieza (flush)</emphasis>, ocurre por defecto en los siguientes "
-"puntos"
+"A veces la <literal>Session</literal> ejecutará las declaraciones SQL "
+"necesarias para sincronizar el estado de la conexión JDBC con el estado de "
+"los objetos en la menoria. Este proceso, denominado <emphasis>vaciado (flush)"
+"</emphasis>, ocurre por defecto en los siguientes puntos:"
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
msgstr "antes de algunas ejecuciones de consulta"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "desde <literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "desde <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:836
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The SQL statements are issued in the following order:"
-msgstr "Las sentencias SQL son liberadas en el siguiente orden"
+msgstr "Las declaraciones SQL se emiten en el siguiente orden:"
#. Tag: para
-#: session_api.xml:842
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
"using <literal>Session.save()</literal>"
msgstr ""
"todas las inserciones de entidades, en el mismo orden que los objetos "
-"correspondientes fueron salvados usando <literal>Session.save()</literal>"
+"correspondientes fueron guardados utilizando <literal>Session.save()</"
+"literal>"
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
msgstr "todas las actualizaciones de entidades"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr "todas los borrados de colecciones"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr ""
-"todos los borrados, actualizaciones e inserciones de elementos de "
-"colección"
+"todos los borrados, actualizaciones e inserciones de elementos de colección"
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr "todas las inserciones de colecciones"
#. Tag: para
-#: session_api.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
"deleted using <literal>Session.delete()</literal>"
msgstr ""
"todos los borrados de entidades, en el mismo orden que los objetos "
-"correspondientes fueron borrados usando <literal>Session.delete()</literal>"
+"correspondientes fueron borrados usando <literal>Session.delete()</literal> "
#. Tag: para
-#: session_api.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
"are inserted when they are saved."
msgstr ""
-"(Una excepción es que los objetos que usan generación de ID "
-"<literal>native</literal> se insertan cuando son salvados.)"
+"Una excepción es que los objetos que utilizan generación de ID "
+"<literal>native</literal> se insertan cuando se guardan."
#. Tag: para
-#: session_api.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
@@ -2050,15 +1298,14 @@
"are executed. However, Hibernate does guarantee that the <literal>Query.list"
"(..)</literal> will never return stale or incorrect data."
msgstr ""
-"Excepto cuando llamas explícitamente a <literal>flush()</literal>, no "
-"hay en absoluto garantías sobre <emphasis>cuándo</emphasis> la "
-"<literal>Session</literal> ejecuta las llamadas JDBC. sólo sobre el "
-"<emphasis>orden</emphasis> en que son ejecutadas. Sin embargo, Hibernate "
-"garantiza que los métodos <literal>Query.list(..)</literal> nunca "
-"devolverán datos añejos o erróneos."
+"Excepto cuando llama explÃcitamente a <literal>flush()</literal>, no hay en "
+"absoluto garantÃas sobre <emphasis>cuándo</emphasis> la <literal>Session</"
+"literal> ejecuta las llamadas JDBC, sólamente sobre el <emphasis>orden</"
+"emphasis> en que se ejecutan. Sin embargo, Hibernate garantiza que los "
+"métodos <literal>Query.list(..)</literal> nunca devolverán datos "
+"desactualizados o incorrectos."
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -2068,88 +1315,49 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
-"Es posible cambiar el comportamiento por defecto de modo que la limpieza "
-"(flush) ocurra menos frecuentemente. La clase <literal>FlushMode</literal> "
-"tres modos diferentes: sólo en tiempo de compromiso (y sólo "
-"cuando se use la API de <literal>Transaction</literal> de Hibernate), "
-"limpieza automática usando la rutina explicada, o nunca limpiar a "
-"menos que se llame a <literal>flush()</literal> explícitamente. El "
-"último modo es útil para unidades de trabajo largas, donde una "
-"<literal>Session</literal> se mantiene abierta y desconectada por largo "
-"tiempo (ver <xref linkend=\"transactions-optimistic-longsession\"/>)."
+"Es posible cambiar el comportamiento predeterminado de modo que el vaciado "
+"ocurra con menos frecuencia. La clase <literal>FlushMode</literal> define "
+"tres modos diferentes: sólo en tiempo de guardar los cambios cuando la API "
+"de <literal>Transaction</literal> de Hibernate se utiliza, vaciado "
+"automático utilizando la rutina explicada, o nunca vaciar a menos de que se "
+"llame a <literal>flush()</literal> explÃcitamente. El último modo es útil "
+"para unidades de trabajo largas, donde se mantiene abierta una "
+"<literal>Session</literal> y es desconectada por largo tiempo (vea la <xref "
+"linkend=\"transactions-optimistic-longsession\"/>)."
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs]]>"
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
-"Durante la limpieza, puede ocurrir una excepción (por ejemplo, si una "
-"operación DML violase una restricción). Ya que el manejo de "
-"excepciones implica alguna comprensión del comportamiento "
-"transaccional de Hibernate, lo discutimos en <xref linkend=\"transactions\"/"
-">."
+"Durante el vaciado se puede presentar una excepción (por ejemplo, si una "
+"operación DML viola una restricción). Ya que el manejo de excepciones "
+"implica algo de comprensión del comportamiento transaccional de Hibernate, "
+"lo discutimos en <xref linkend=\"transactions\" />."
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
msgstr "Persistencia transitiva"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
"especially if you deal with a graph of associated objects. A common case is "
"a parent/child relationship. Consider the following example:"
msgstr ""
-"Es absolutamente incómodo dalvar, borrar, o reunir objetos "
-"individuales, especialmente si tratas con un grafo de objetos asociados. Un "
-"caso común es una relación padre/hijo. Considera el siguiente "
-"ejemplo:"
+"Es absolutamente incómodo guardar, borrar, o reunir objetos individuales, "
+"especialmente si trata con un grafo de objetos asociados. Un caso común es "
+"una relación padre/hijo. Considere el siguiente ejemplo:"
#. Tag: para
-#: session_api.xml:917
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
"collection of addresses or strings), their life cycle would depend on the "
@@ -2160,20 +1368,18 @@
"collection. Since value-typed objects cannot have shared references, "
"Hibernate will detect this and delete the child from the database."
msgstr ""
-"Si los hijos en una relación padre/hijo pudieran ser tipificados en "
-"valor (por ejemplo, una colección de direcciones o cadenas), sus "
-"ciclos de vida dependerían del padre y se requeriría ninguna "
-"otra acción para el tratamiento en \"cascada\" de cambios de estado. "
-"Cuando el padre es salvado, los objetos hijo tipificados en valor son "
-"salvados también, cuando se borra el padre, se borran los hijos, etc. "
-"Esto funciona incluso para operaciones como el retiro de un hijo de la "
-"colección. Hibernate detectará esto y, ya que los objetos "
-"tipificados en valor no pueden tener referencias compartidas, borrará "
-"el hijo de la base de datos."
+"Si los hijos en una relación padre/hijo pudieran ser tipificados en valor "
+"(por ejemplo, una colección de direcciones o cadenas), sus ciclos de vida "
+"dependerÃan del padre y no se requerirÃa ninguna otra acción para el "
+"tratamiento apropiado en \"cascada\" de los cambios de estado. Cuando se "
+"guarda el padre, los objetos hijo tipificados en valor también se guardan, "
+"cuando se borra el padre, se borran los hijos, etc. Esto funciona incluso "
+"para operaciones tales como el retiro de un hijo de la colección. Hibernate "
+"detectará esto y ya que los objetos tipificados en valor no pueden tener "
+"referencias compartidas entonces borrará el hijo de la base de datos."
#. Tag: para
-#: session_api.xml:928
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
"not value-types (e.g. categories and items, or parent and child cats). "
@@ -2183,17 +1389,15 @@
"entities. Hibernate does not implement <emphasis>persistence by "
"reachability</emphasis> by default."
msgstr ""
-"Ahora considera el mismo escenario con los objetos padre e hijos siendo "
-"entidades, no tipos de valor (por ejemplo, categorías e ítems, "
-"o gatos padre e hijos). Las entidades tienen su propio ciclo de vida, "
-"soportan referencias compartidas (de modo que quitar una entidad de una "
-"colección no significa que sea borrada), y no hay por defecto "
-"ningún tratamiento en \"cascada\" de estado de una entidad a otras "
-"entidades asociadas. Hibernate no implementa <emphasis>persistencia por "
-"alcance</emphasis>."
+"Ahora considere el mismo escenario con los objetos padre e hijos siendo "
+"entidades, no tipos de valor (por ejemplo, categorÃas e Ãtems, o gatos "
+"padres e hijos). Las entidades tienen su propio ciclo de vida y soportan "
+"referencias compartidas. El eliminar una entidad de una colección no "
+"significa que se pueda borrar, y no hay por defecto ningún tratamiento en "
+"\"cascada\" del estado de una entidad a otras entidades asociadas. Hibernate "
+"no implementa por defecto la <emphasis>persistencia por alcance</emphasis>."
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -2204,52 +1408,34 @@
"operation to be cascaded along an association, you must indicate that in the "
"mapping document. For example:"
msgstr ""
-"Para cada operación básica de la sesión de Hibernate - "
-"incluyendo <literal>persist(), merge(), saveOrUpdate(), delete(), lock(), "
-"refresh(), evict(), replicate()</literal> - hay un estilo de cascada "
+"Para cada operación básica de la sesión de Hibernate - incluyendo "
+"<literal>persist(), merge(), saveOrUpdate(), delete(), lock(), refresh(), "
+"evict(), replicate()</literal> - existe un estilo de cascada "
"correspondiente. Respectivamente, los estilos de cascada se llaman "
"<literal>create, merge, save-update, delete, lock, refresh, evict, "
-"replicate</literal>. Si quieres que una operación sea tratada en "
-"cascada a lo largo de una asociación, debes indicar eso en el "
-"documento de mapeo. Por ejemplo:"
+"replicate</literal>. Si quiere que una operación sea tratada en cascada a lo "
+"largo de una asociación, debe indicar eso en el documento de mapeo. Por "
+"ejemplo:"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "Los estilos de cascada pueden combinarse:"
-#. Tag: programlisting
-#: session_api.xml:952
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-
-#. Tag: para
-#: session_api.xml:954
-#, fuzzy, no-c-format
-msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
"<emphasis>all</emphasis> operations should be cascaded along the "
"association. The default <literal>cascade=\"none\"</literal> specifies that "
"no operations are to be cascaded."
msgstr ""
-"Puedes incluso usar <literal>cascade=\"all\"</literal> para especificar que "
-"<emphasis>todas</emphasis> las operaciones deben ser tratadas en cascada a "
-"lo largo de la asociación. El por defecto <literal>cascade=\"none\"</"
-"literal> especifica que ninguna operación será tratada en "
-"cascada."
+"Incluso puede utilizar <literal>cascade=\"all\"</literal> para especificar "
+"que <emphasis>todas</emphasis> las operaciones deben ser tratadas en cascada "
+"a lo largo de la asociación. La <literal>cascade=\"none\"</literal> "
+"predeterminada especifica que ninguna operación se tratará en cascada. "
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2258,46 +1444,41 @@
"association."
msgstr ""
"Un estilo de cascada especial, <literal>delete-orphan</literal>, se aplica "
-"sólo a asociaciones uno-a-muchos, e indica que la operación "
-"<literal>delete()</literal> debe aplicarse a cualquier objeto hijo que sea "
-"quitado de la asociación."
+"sólamente a asociaciones uno-a-muchos, e indica que la operación "
+"<literal>delete()</literal> debe aplicarse a cualquier objeto hijo que se "
+"elimine de la asociación."
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
msgstr "Recomendaciones:"
#. Tag: para
-#: session_api.xml:973
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
"one></literal> or <literal><many-to-many></literal> association. "
"Cascade is often useful for <literal><one-to-one></literal> and "
"<literal><one-to-many></literal> associations."
msgstr ""
-"Usualmente no tiene sentido habilitar el tratamiento en cascada a una "
-"asociación <literal><many-to-one></literal> o <literal><many-"
-"to-many></literal>. El tratamiento en cascada es frecuentemente ú"
-"til para las asociaciones <literal><one-to-one></literal> y "
-"<literal><one-to-many></literal>. associations."
+"Usualmente no tiene sentido habilitar el tratamiento en cascada en una "
+"asociación <literal><many-to-one></literal> o <literal><many-to-"
+"many></literal>. El tratamiento en cascada es frecuentemente útil para "
+"las asociaciones <literal><one-to-one></literal> y <literal><one-to-"
+"many></literal>."
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
"object, make it a <emphasis>life cycle object</emphasis> by specifying "
"<literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
-"Si la esperanza de vida de los objetos hijos está ligada a la "
-"eesperanza de vida del objeto padre, házlo un <emphasis>objeto de "
-"ciclo de vida</emphasis> especificando <literal>cascade=\"all,delete-orphan"
-"\"</literal>."
+"Si el periodo de vida de los objetos hijos está ligado al periodo de vida "
+"del objeto padre, hágalo un <emphasis>objeto de ciclo de vida</emphasis> "
+"especificando <literal>cascade=\"all,delete-orphan\"</literal>. "
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2305,14 +1486,13 @@
"transaction, and you want to save yourself some typing, consider using "
"<literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
-"En otro caso, puede que no necesites tratamiento en cascada en absoluto. "
-"Pero si piensas que estarás trabajando frecuentemente con padre e "
-"hijos juntos en la misma transacción, y quieres ahorrarte algo de "
-"tipeo, considera usar <literal>cascade=\"persist,merge,save-update\"</"
-"literal>."
+"En otro caso, puede que usted no necesite tratamiento en cascada en "
+"absoluto. Pero si piensa que va a estar trabajando frecuentemente con padre "
+"e hijos juntos en la misma transacción, y quiere ahorrarse algo de escritura "
+"en computador, considere el utilizar <literal>cascade=\"persist,merge,save-"
+"update\"</literal>."
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2320,15 +1500,14 @@
"<emphasis>parent/child</emphasis> style relationship where save/update/"
"delete of the parent results in save/update/delete of the child or children."
msgstr ""
-"Mapear una asociación (ya sea una asociación monovaluada, o "
-"una colección) con <literal>cascade=\"all\"</literal> marca la "
-"asociación como una relación del estilo <emphasis>padre/hijo</"
-"emphasis> donde save/update/delete en el padre resulta en save/update/delete "
-"del hijo o hijos."
+"Mapear una asociación (ya sea una asociación monovaluada, o una colección) "
+"con <literal>cascade=\"all\"</literal> marca la asociación como una relación "
+"del estilo <emphasis>padre/hijo</emphasis> en donde guardar/actualizar/"
+"borrar (save/update/delete) el padre causa el guardar/actualizar/borrar del "
+"hijo o hijos."
#. Tag: para
-#: session_api.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
"result in save/update of the child. This metaphor is incomplete, however. A "
@@ -2338,49 +1517,44 @@
"literal>. The precise semantics of cascading operations for a parent/child "
"relationship are as follows:"
msgstr ""
-"Además, una mera referencia a un hijo desde un padre persistente "
-"resultará en un save/update del hijo. Esta metáfora "
-"está incompleta, sin embargo. Un hijo que deje de ser referenciado "
-"por su padre <emphasis>no</emphasis> es borrado automáticamente, "
-"excepto en el caso de una asociación <literal><one-to-many></"
-"literal> mapeada con <literal>cascade=\"delete-orphan\"</literal>. La "
-"semántica precisa de las operaciones en cascada para una "
-"relación padre/hijo es:"
+"Además, una mera referencia a un hijo desde un padre persistente hará que se "
+"guarde/actualice el hijo. Sin embargo, esta metáfora se encuentra "
+"incompleta. Un hijo que deje de ser referenciado por su padre <emphasis>no</"
+"emphasis> es borrado automáticamente, excepto en el caso de una asociación "
+"<literal><one-to-many></literal> mapeada con <literal>cascade=\"delete-"
+"orphan\"</literal>. La semántica precisa de las operaciones en cascada para "
+"una relación padre/hijo es la siguiente:"
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
"passed to <literal>persist()</literal>"
msgstr ""
-"Si un padre le es pasado a <literal>persist()</literal>, todos los hijos le "
-"son pasados a <literal>persist()</literal>"
+"Si un padre pasa a <literal>persist()</literal>, se pasan todos los hijos a "
+"<literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
"to <literal>merge()</literal>"
msgstr ""
-"Si un padre le es pasado a <literal>merge()</literal>, todos los hijos le "
-"son pasados a <literal>merge()</literal>"
+"Si un padre pasa a <literal>merge()</literal>, se pasan todos los hijos a "
+"<literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, all children are passed to "
"<literal>saveOrUpdate()</literal>"
msgstr ""
-"Si un padre le es pasado a <literal>save()</literal>, <literal>update()</"
-"literal> o <literal>saveOrUpdate()</literal>, todos los hijos le son pasados "
-"a <literal>saveOrUpdate()</literal>"
+"Si se pasa un padre a <literal>save()</literal>, <literal>update()</literal> "
+"o <literal>saveOrUpdate()</literal>, todos los hijos pasan a "
+"<literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2390,17 +1564,14 @@
"persistente, le es pasado a <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
"literal>"
msgstr ""
-"Si un padre es borrado, todos los hijos le son pasados a <literal>delete()</"
-"literal>"
+"Si se borra un padre, se pasan todos los hijos a <literal>delete()</literal>"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2409,14 +1580,12 @@
"case the \"orphaned\" child is deleted."
msgstr ""
"Si un hijo deja de ser referenciado por un padre persistente, <emphasis>no "
-"ocurre nada especial</emphasis> - la aplicación debe borrar "
-"explícitamente el hijo de ser necesario - a menos que "
-"<literal>cascade=\"delete-orphan\"</literal>, en cuyo caso el hijo "
-"\"huérfano\" es borrado."
+"ocurre nada especial</emphasis> - la aplicación debe borrar explÃcitamente "
+"el hijo de ser necesario - a menos que <literal>cascade=\"delete-orphan\"</"
+"literal>, en cuyo caso se borra el hijo \"huérfano\"."
#. Tag: para
-#: session_api.xml:1051
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
@@ -2425,22 +1594,22 @@
"<literal>delete-orphan</literal> are transitive for all associated entities "
"reachable during flush of the <literal>Session</literal>."
msgstr ""
-"UNTRANSLATED!!! Finally, note that cascading of operations can be applied to "
-"an object graph at <emphasis>call time</emphasis> or at <emphasis>flush "
-"time</emphasis>. All operations, if enabled, are cascaded to associated "
-"entities reachable when the operation is executed. However, <literal>save-"
-"upate</literal> and <literal>delete-orphan</literal> are transitive for all "
-"associated entities reachable during flush of the <literal>Session</literal>."
+"Finalmente, note que las operaciones en cascadas se pueden aplicar a un "
+"grafo de objeto en <emphasis>tiempo de llamada</emphasis> o en "
+"<emphasis>tiempo de vaciado</emphasis>. Todas las operaciones, si se "
+"encuentran activadas se tratan en cascadas en entidades asociadas "
+"alcanzables cuando se ejecuta la operación. Sin embargo, <literal>save-"
+"upate</literal> y <literal>delete-orphan</literal> son transitivos para "
+"todas las entidades asociadas alcanzables durante el vaciado de la "
+"<literal>Session</literal>."
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
-msgstr "Usando metadatos"
+msgstr "Utilización de metadatos"
#. Tag: para
-#: session_api.xml:1065
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
"This model can be useful to the application itself. For example, the "
@@ -2450,67 +1619,22 @@
"and, possibly, associated entities)."
msgstr ""
"Hibernate requiere de un modelo de meta-nivel muy rico de todas las "
-"entidades y tipos de valor. De vez en cuando, este modelo es muy útil "
-"para la aplicación misma. Por ejemplo, la aplicación "
-"podría usar los metadatos de Hibernate para implementar un algoritmo "
-"\"inteligente\" de copia en profundidad que entienda qué objetos "
-"deben ser copiados (por ejemplo, tipo de valor mutables) y cuáles no "
-"(por ejemplo, tipos de valor inmutables y, posiblemente, entidades "
-"asociadas)."
+"entidades y tipos de valor. Este modelo puede ser útil para la aplicación "
+"misma. Por ejemplo, la aplicación podrÃa utilizar los metadatos de Hibernate "
+"para implementar un algoritmo \"inteligente\" de copia en profundidad que "
+"entienda qué objetos deben ser copiados (por ejemplo, tipos de valor "
+"mutables) y cuáles no (por ejemplo, tipos de valor inmutables y posiblemente "
+"las entidades asociadas)."
#. Tag: para
-#: session_api.xml:1072
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
"<literal>CollectionMetadata</literal> interfaces and the <literal>Type</"
"literal> hierarchy. Instances of the metadata interfaces can be obtained "
"from the <literal>SessionFactory</literal>."
msgstr ""
-"Hibernate expone los metadatos vía las interfaces "
+"Hibernate expone los metadatos por medio de las interfaces "
"<literal>ClassMetadata</literal> y <literal>CollectionMetadata</literal> y "
-"la jerarquía <literal>Type</literal>. Las instancias de las "
-"interfaces de metadatos pueden obtenerse de <literal>SessionFactory</"
-"literal>."
-
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"la jerarquÃa <literal>Type</literal>. Las instancias de las interfaces de "
+"metadatos se pueden obtener de la <literal>SessionFactory</literal>."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,59 +1,68 @@
-#, fuzzy
+# translation of toolset_guide.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: toolset_guide\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-05 07:51+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
-msgstr "Guía del Conjunto de Herramientas"
+msgstr "Manual del conjunto de herramientas"
#. Tag: para
-#: toolset_guide.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
"plugins, commandline tools, and Ant tasks."
msgstr ""
-"La ingeniería de ida y vuelta con Hibernate es posible usando un "
-"conjunto de plugins de Eclipse, herramientas de línea de comandos, "
-"así como tareas de Ant."
+"La ingenierÃa compatible con Hibernate es posible utilizando un conjunto de "
+"plugins de Eclipse, herramientas de la lÃnea de comandos asà como tareas Ant."
#. Tag: para
-#: toolset_guide.xml:36
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
"databases:"
msgstr ""
-"Las <emphasis>Herramientas de Hibernate</emphasis> actualmente incluyen "
-"plugins para la IDE de Eclipse así como tareas de Ant para la "
-"ingeniería inversa de bases de datos existentes:"
+"Las <emphasis>herramientas de Hibernate</emphasis> actualmente incluyen "
+"plugins la IDE de Eclipse asà como tareas Ant para la ingenierÃa inversa de "
+"bases de datos existentes:"
#. Tag: para
-#: toolset_guide.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
"files that supports auto-completion and syntax highlighting. It also "
"supports semantic auto-completion for class names and property/field names, "
"making it more versatile than a normal XML editor."
msgstr ""
-"<emphasis>Editor de Mapeo:</emphasis> Un editor de ficheros de mapeo XML, "
-"que soporta autocompleción y resaltado de sintáxis. Soporta "
-"también autocompleción semántica de nombres de clases y "
-"nombres de campos/propiedades, haciéndolo mucho más "
-"versátil que un editor de XML normal."
+"<emphasis>Editor de Mapeo:</emphasis> Un editor de archivos de mapeo XML que "
+"soporta autocompleción y resaltado de sintáxis. También soporta la "
+"autocompleción semántica de nombres de clases y nombres de campos/"
+"propiedades, haciéndolo mucho más versátil que un editor normal de XML."
#. Tag: para
-#: toolset_guide.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
"addition to a tree overview of your console configurations, you are also "
@@ -62,14 +71,13 @@
"database and browse the result directly in Eclipse."
msgstr ""
"<emphasis>Consola:</emphasis> La consola es una nueva vista en Eclipse. "
-"Además de la vista de árbol de tus configuraciones de consola, "
-"tienes también una vista interactiva de tus clases persistentes y sus "
-"relaciones. La console te permite ejecutar consultas HQL contra tu base de "
-"datos y navegar el resultado directamente en Eclipse."
+"Además de la vista de árbol de sus configuraciones de la consola, también "
+"tiene una vista interactiva de sus clases persistentes y sus relaciones. La "
+"consola le permite ejecutar consultas HQL en su base de datos y navegar el "
+"resultado directamente en Eclipse."
#. Tag: para
-#: toolset_guide.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
"the Hibernate Eclipse tools. You can use a wizard to quickly generate "
@@ -77,280 +85,164 @@
"database schema into POJO source files and Hibernate mapping files. The "
"reverse engineering wizard supports customizable templates."
msgstr ""
-"<emphasis>Asistentes de Desarrollo:</emphasis> Se proveen muchos asistentes "
-"con las herramientas de Eclipse. Puedes usar un asistente para generar "
-"rápidamente ficheros de configuración de Hibernate (cfg.xml), "
-"o incluso puedes haceruna ingeniería inversa completa de un esquema "
-"de base de datos existente en ficheros de código de POJO y ficheros "
-"de mapeo de Hibernate. El asistente de ingeniería inversa soporta "
-"plantillas personalizables."
+"<emphasis>Asistentes de desarrollo:</emphasis> Se proporcionan muchos "
+"asistentes junto con las herramientas Eclipse de Hibernate. Puede utilizar "
+"un asistente para generar rápidamente los archivos de configuración de "
+"Hibernate (cfg.xml), o incluso puede realizar una ingenierÃa inversa "
+"completa de un esquema de la base de datos existente en los archivos de "
+"código fuente de POJO y los archivos de mapeo de Hibernate. El asistente de "
+"ingenierÃa inversa soporta plantillas personalizables."
#. Tag: para
-#: toolset_guide.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
"documentation for more information."
msgstr ""
-"Por favor refiérete al paquete <emphasis>Herramientas de Hibernate</"
-"emphasis> y su documentación para más información."
+"Por favor refiérase al paquete de documentación de las "
+"<emphasis>Herramientas de Hibernate</emphasis> para obtener más información."
#. Tag: para
-#: toolset_guide.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even "
"be used from \"inside\" Hibernate."
msgstr ""
-"Sin embargo, el paquete principal de Hibernate viene incluyendo una "
-"herramienta integrada (puede ser usada incluso \"dentro\" de Hibernate on-"
-"the-fly): <emphasis>SchemaExport</emphasis> también conocido como "
-"<literal>hbm2ddl</literal>."
+"Sin embargo, el paquete principal de Hibernate viene con una herramienta "
+"integrada: <emphasis>SchemaExport</emphasis> también conocida como "
+"<literal>hbm2ddl</literal>. Incluso se puede utilizar \"dentro\" de "
+"Hibernate."
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
-msgstr "Generación automática de esquemas"
+msgstr "Generación automática de esquemas"
#. Tag: para
-#: toolset_guide.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
"generated schema includes referential integrity constraints, primary and "
"foreign keys, for entity and collection tables. Tables and sequences are "
"also created for mapped identifier generators."
msgstr ""
-"Una utilidad de Hibernate puede generar DDL desde tus ficheros de mapeo. El "
-"esquema generado incluye restricciones de integridad referencial (claves "
-"primarias y foráneas) para las tablas de entidades y colecciones. Las "
-"tablas y secuencias también son creadas para los generadores de "
-"identificadores mapeados."
+"Una de las funciones de Hibernate puede generar DDL desde sus archivos de "
+"mapeo. El esquema generado incluye restricciones de integridad referencial, "
+"claves principales y foráneas, para las tablas de entidades y colecciones. "
+"También se creen tablas y secuencias para los generadores de identificadores "
+"mapeados."
#. Tag: para
-#: toolset_guide.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
"the <literal>hibernate.dialect</literal> property when using this tool, as "
"DDL is highly vendor-specific."
msgstr ""
-"<emphasis>Debes</emphasis> especificar un <literal>Dialecto</literal> SQL "
-"vía la propiedad <literal>hibernate.dialect</literal> al usar esta "
-"herramienta, ya que el DDL es altamente específico del vendedor."
+"<emphasis>Tiene</emphasis> que especificar un <literal>Dialecto</literal> "
+"SQL por medio de la propiedad <literal>hibernate.dialect</literal> al usar "
+"esta herramienta, ya que el DDL es altamente especÃfico de acuerdo con el "
+"vendedor."
#. Tag: para
-#: toolset_guide.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
"schema. The next section covers schema customization."
-msgstr "First, customize your mapping files to improve the generated schema."
+msgstr ""
+"Primero, debe personazar sus archivos de mapeo para mejorar el esquema "
+"generado. La siguiente sección aborda la personalización del esquema. "
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
-msgstr "Personalizando el esquema"
+msgstr "Personalización del esquema"
#. Tag: para
-#: toolset_guide.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
"literal>. You can set the length, precision and scale of a column with this "
"attribute."
msgstr ""
-"Muchos elementos de mapeo de Hibernate definen un atributo opcional llamado "
-"<literal>length</literal>. Con este atributo puedes establecer el "
-"tamaño de una columna. (O, para tipos de datos numéricos/"
-"decimales, la precisión.)"
+"Muchos elementos de mapeo de Hibernate definen atributos opcionales "
+"denominados <literal>length</literal>, <literal>precision</literal> y "
+"<literal>scale</literal>. Con estos atributos puede establecer el tamaño, la "
+"precisión y la escala de una columna."
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-
#. Tag: para
-#: toolset_guide.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
"a <literal>NOT NULL</literal> constraint on table columns, and a "
"<literal>unique</literal> attribute for generating <literal>UNIQUE</literal> "
"constraint on table columns."
msgstr ""
-"Algunas etiquetas también aceptan un atributo <literal>not-null</"
-"literal> (para generar una restricción <literal>NOT NULL</literal> en "
-"columnas de tablas) y y un atributo <literal>unique</literal> (para generar "
-"restricciones <literal>UNIQUE</literal> en columnas de tablas)."
+"Algunas etiquetas también aceptan un atributo <literal>not-null</literal> "
+"para generar una restricción <literal>NOT NULL</literal> en columnas de "
+"tablas y un atributo <literal>unique</literal> para generar restricciones "
+"<literal>UNIQUE</literal> en columnas de tablas."
-#. Tag: programlisting
-#: toolset_guide.xml:117
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-
-#. Tag: para
-#: toolset_guide.xml:121
-#, fuzzy, no-c-format
-msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
"single, unique key constraint. Currently, the specified value of the "
"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
"name the constraint in the generated DDL. It is only used to group the "
"columns in the mapping file."
msgstr ""
-"A <literal>unique-key</literal> attribute may be used to group columns in a "
-"single unique key constraint. Currently, the specified value of the "
-"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
-"name the constraint in the generated DDL, only to group the columns in the "
-"mapping file."
+"Se puede usar un atributo <literal>unique-key</literal> para agrupar "
+"columnas en una restricción de clave única. Actualmente, el valor "
+"especificado del atributo <literal>unique-key</literal><emphasis>no</"
+"emphasis> se utiliza para nombrar la restricción en el DDL generado. "
+"Sólamente se utiliza para agrupar las columnas en el archivo de mapeo."
-#. Tag: programlisting
-#: toolset_guide.xml:129
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-
-#. Tag: para
-#: toolset_guide.xml:131
-#, fuzzy, no-c-format
-msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
"will be created using the mapped column or columns. Multiple columns can be "
"grouped into the same index by simply specifying the same index name."
msgstr ""
-"An <literal>index</literal> attribute specifies the name of an index that "
-"will be created using the mapped column or columns. Multiple columns may be "
-"grouped into the same index, simply by specifying the same index name."
+"Un atributo <literal>index</literal> especifica el nombre de un Ãndice que "
+"se creará utilizando la columa o las columnas mapeadas. Se pueden ser "
+"agrupar múltiples columnas bajo el mismo Ãndice, simplemente especificando "
+"el mismo nombre de Ãndice. "
-#. Tag: programlisting
-#: toolset_guide.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-" <property name=\"firstName\" index=\"CustName\"/>]]>"
-
-#. Tag: para
-#: toolset_guide.xml:139
-#, fuzzy, no-c-format
-msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
"of any generated foreign key constraint."
msgstr ""
-"A <literal>foreign-key</literal> attribute may be used to override the name "
-"of any generated foreign key constraint."
+"Un atributo <literal>foreign-key</literal> se puede utilizar para "
+"sobreescribir el nombre de cualquier restricción de clave foránea generada."
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
"element. This is particularly useful for mapping multi-column types:"
msgstr ""
-"Many mapping elements also accept a child <literal><column></literal> "
-"element. This is particularly useful for mapping multi-column types:"
+"Muchos elementos de mapeo también aceptan un elemento <literal><column>"
+"</literal> hijo. Esto es particularmente útil para mapear tipos de multi-"
+"columna:"
-#. Tag: programlisting
-#: toolset_guide.xml:151
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30"
-"\"/>\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length="
-"\"20\"/>\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-
-#. Tag: para
-#: toolset_guide.xml:153
-#, fuzzy, no-c-format
-msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
"value for a column.You should assign the same value to the mapped property "
"before saving a new instance of the mapped class."
msgstr ""
-"The <literal>default</literal> attribute lets you specify a default value "
-"for a column (you should assign the same value to the mapped property before "
-"saving a new instance of the mapped class)."
+"El atributo <literal>default</literal> le permite especificar un valor por "
+"defecto para una columna. Usted le debe asignar el mismo valor a la "
+"propiedad mapeada antes de guardar una nueva instancia de la clase mapeada."
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-" </property>]]>"
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-" </property>]]>"
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
@@ -359,209 +251,141 @@
"El atributo <literal>sql-type</literal> permite al usuario sobrescribir el "
"mapeo por defecto de tipo Hibernate a tipo de datos SQL."
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)"
-"\"/>\n"
-"</property>]]>"
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
"constraint."
msgstr ""
-"El atributo <literal>check</literal> te permite especificar una "
-"comprobación de restricción."
+"El atributo <literal>check</literal> le permite especificar una comprobación "
+"de restricción."
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
-msgstr ""
+msgstr "La siguiente tabla resume estos atributos opcionales. "
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
msgstr "Resumen"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
msgstr "Atributo"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
msgstr "Valores"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
-msgstr "Interpretación"
+msgstr "Interpretación"
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
-msgstr "length"
+msgid "<literal>length</literal>"
+msgstr "<literal>length</literal>"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
-msgstr "number"
+msgstr "número"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
-msgstr "largo de columna/precisión decimal"
+msgstr "longitud de columna/precisión decimal"
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
-msgstr "precision"
+msgid "<literal>precision</literal>"
+msgstr "<literal>precision</literal>"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
-msgstr "column decimal precision"
+msgstr "precisión decimal de columna"
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
-msgstr "scale"
+msgid "<literal>scale</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
-msgstr "column decimal scale"
+msgstr "escala decimal de columna"
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+msgid "<literal>not-null</literal>"
+msgstr "<literal>not-null</literal>"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+msgid "<literal>true|false</literal>"
+msgstr "<literal>true|false</literal>"
#. Tag: entry
-#: toolset_guide.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specifies that the column should be non-nullable"
-msgstr "especifica que la columna debe ser no nulable"
+msgstr "especifica que la columna debe ser sin nulos"
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
-msgstr "unique"
+msgid "<literal>unique</literal>"
+msgstr "<literal>unique</literal>"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
-msgstr ""
-"especifica que la columna debe tener una restricción de unicidad"
+msgstr "especifica que la columna debe tener una restricción de unicidad"
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
-msgstr "index"
+msgid "<literal>index</literal>"
+msgstr "<literal>index</literal>"
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
-msgstr "index_name"
+msgid "<literal>index_name</literal>"
+msgstr "<literal>index_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
-msgstr "especifica el nombre de un índice (multicolumna)"
+msgstr "especifica el nombre de un Ãndice (multicolumna)"
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>unique-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:227
-#, no-c-format
-msgid "unique_key_name"
-msgstr "unique_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique_key_name</literal>"
+msgstr "<literal>unique-key</literal>"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
-msgstr ""
-"especifica el nombre de una restricción de unicidad multicolumna"
+msgstr "especifica el nombre de una restricción de unicidad multicolumna"
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>foreign-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:232
-#, no-c-format
-msgid "foreign_key_name"
-msgstr "foreign_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>foreign_key_name</literal>"
+msgstr "<literal>foreign-key</literal>"
#. Tag: entry
-#: toolset_guide.xml:233
#, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
@@ -570,601 +394,403 @@
"to-many></literal> mapping element. Note that <literal>inverse=\"true\"</"
"literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-"especifica el nombre de la restricción de clave foránea "
-"generada por una asociación, úsalo e <literal><one-to-"
-"one></literal>, <literal><many-to-one></literal>, <literal><"
-"key></literal>, or <literal><many-to-many></literal> . Nota que los "
-"lados <literal>inverse=\"true\"</literal> no serán considerados por "
-"<literal>SchemaExport</literal>."
+"especifica el nombre de la restricción de clave foránea generada por una "
+"asociación, para un elemento de mapeo <literal><one-to-one></literal>, "
+"<literal><many-to-one></literal>, <literal><key></literal>, o "
+"<literal><many-to-many></literal>. Observe que <literal>SchemaExport</"
+"literal> no considerará los lados <literal>inverse=\"true\"</literal>."
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>sql-type</literal>"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
-msgstr "column_type"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
+msgstr "<literal>sql-type</literal>"
#. Tag: entry
-#: toolset_guide.xml:245
#, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
"literal> element only)"
msgstr ""
-"sobrescribe el tipo de columna por defecto (sólo atributo del "
+"sobrescribe el tipo de columna por defecto (sólamente el atributo del "
"elemento <literal><column></literal>)"
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
-msgstr "default"
+msgid "<literal>default</literal>"
+msgstr "<literal>default</literal>"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
#, no-c-format
msgid "SQL expression"
-msgstr "SQL expression"
+msgstr "expresión SQL"
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
-msgstr "specify a default value for the column"
+msgstr "especifica un valor predeterminado para la columna"
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
-msgstr "check"
+msgid "<literal>check</literal>"
+msgstr "<literal>check</literal>"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
-msgstr ""
-"crea una restricción de comprobación SQL en columna o tabla"
+msgstr "crea una restricción de comprobación SQL en columna o tabla"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
"comments for the generated schema."
msgstr ""
-"El elemento <literal><comment></literal> te permite especificar un "
+"El elemento <literal><comment></literal> le permite especificar un "
"comentario para el esquema generado."
-#. Tag: programlisting
-#: toolset_guide.xml:273
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-
-#. Tag: para
-#: toolset_guide.xml:277
-#, fuzzy, no-c-format
-msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
"column</literal> statement in the generated DDL where supported."
msgstr ""
-"Esto resulta en una sentencia <literal>comment on table</literal> o "
-"<literal>comment on column</literal> en el DDL generado (donde esté "
-"soportado)."
+"Esto da como resultado una declaración <literal>comment on table</literal> o "
+"<literal>comment on column</literal> en el DDL generado, donde se encuentre "
+"soportado."
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
-msgstr "Ejecutando la herramienta"
+msgstr "Ejecución de la herramienta"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
"and/or executes the DDL statements."
msgstr ""
-"La herramienta <literal>SchemaExport</literal> escribe un guión DDL a "
-"la salida estándar y/o ejecuta las sentencias DDL."
+"La herramienta <literal>SchemaExport</literal> escribe un script DDL a la "
+"salida estándar y/o ejecuta las declaraciones DDL."
#. Tag: para
-#: toolset_guide.xml:293
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
"line options"
msgstr ""
-"Opciones de Línea de Comandos de <literal>SchemaExport</literal>"
+"La siguiente tabla presenta las opciones de la lÃnea de comandos de "
+"<literal>SchemaExport</literal>"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
-"<literal>java -cp </literal><emphasis>classpaths_de_hibernate</emphasis> "
-"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> "
-"<emphasis>opciones ficheros_de_mapeo</emphasis>"
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
-msgstr ""
-"Opciones de Línea de Comandos de <literal>SchemaExport</literal>"
+msgstr "Opciones de LÃnea de Comandos de <literal>SchemaExport</literal>"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:526
#, no-c-format
msgid "Option"
-msgstr "Opción"
+msgstr "Opción"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:527
#, no-c-format
msgid "Description"
-msgstr "Descripción"
+msgstr "Descripción"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>--quiet</literal>"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not output the script to stdout"
-msgstr "no enviar a salida estándar el guión"
+msgstr "no envie el script a la salida estándar"
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+msgid "<literal>--drop</literal>"
+msgstr "<literal>--drop</literal>"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
-msgstr "sólo desechar las tablas"
+msgstr "sólamente desechar las tablas"
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
-msgstr "--create"
+msgid "<literal>--create</literal>"
+msgstr "<literal>--create</literal>"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
-msgstr "only create the tables"
+msgstr "sólamente crear las tablas"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
-msgstr "--text"
+msgid "<literal>--text</literal>"
+msgstr "<literal>--text</literal>"
#. Tag: entry
-#: toolset_guide.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export to the database"
-msgstr "no exportar a la base de datos"
+msgstr "no exportar a la base de datos "
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
-msgstr "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
-msgstr "enviar la salida del guión ddl a un fichero"
+msgstr "enviar la salida del script ddl a un archivo"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:532
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
-msgstr "--naming=eg.MyNamingStrategy"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
+msgstr "<literal>--naming=eg.MyNamingStrategy</literal>"
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:533
#, no-c-format
msgid "select a <literal>NamingStrategy</literal>"
-msgstr "select a <literal>NamingStrategy</literal>"
+msgstr "seleccione un <literal>NamingStrategy</literal>"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:540
-#, no-c-format
-msgid "--config=hibernate.cfg.xml"
-msgstr "--config=hibernate.cfg.xml"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
+msgstr "<literal>--config=hibernate.cfg.xml</literal>"
#. Tag: entry
-#: toolset_guide.xml:338
#, no-c-format
msgid "read Hibernate configuration from an XML file"
-msgstr "lee la configuración de Hibernate de un fichero XML"
+msgstr "lee la configuración de Hibernate de un archivo XML"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:536
-#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "en <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:537
#, no-c-format
msgid "read database properties from a file"
-msgstr "lee las propiedades de base de datos de un fichero"
+msgstr "lee las propiedades de base de datos de un archivo"
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
-msgstr "--format"
+msgid "<literal>--format</literal>"
+msgstr "<literal>--format</literal>"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
-msgstr "formatea agradablemente el SQL generado en el guión"
+msgstr "formatea muy bien el SQL generado en el script"
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=x"
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>--delimiter=;</literal>"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
-msgstr "establece un delimitador de fin de línea para el guión"
+msgstr "establece un delimitador de fin de lÃnea para el script"
#. Tag: para
-#: toolset_guide.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
-"Puedes incluso encajar <literal>SchemaExport</literal> en tu aplicació"
-"n:"
+"Inclusive puede incluir <literal>SchemaExport</literal> en su aplicación: "
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
msgstr "Propiedades"
#. Tag: para
-#: toolset_guide.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Database properties can be specified:"
-msgstr "Las propiedades de base de datos pueden especificarse"
+msgstr "Las propiedades de la base de datos se pueden especificar:"
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
"emphasis>"
msgstr ""
-"como propiedades de sistema con <literal>-D</literal><emphasis><"
+"como propiedades del sistema con <literal>-D</literal><emphasis><"
"property></emphasis>"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
msgstr "en <literal>hibernate.properties</literal>"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr ""
-"en un fichero de propiedades mencionado con <literal>--properties</literal>"
+"en un archivo de propiedades nombrado con <literal>--properties</literal>"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
-msgstr "Las propiedades necesarias son:"
+msgstr "Las propiedades necesarias son las siguientes:"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
-msgstr "Propiedades de Conexión de SchemaExport"
+msgstr "Propiedades de Conexión del SchemaExport"
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
-msgstr "Nombre de Propiedad"
+msgstr "Nombre de la Propiedad"
-#. Tag: literal
-#: toolset_guide.xml:400
-#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.driver_class</literal>"
+msgstr "<literal>hibernate.connection.driver_class</literal>"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
-msgstr "clase del driver jdbc"
+msgstr "clase del controlador jdbc"
-#. Tag: literal
-#: toolset_guide.xml:404
-#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "en <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr "url de jdbc"
-#. Tag: literal
-#: toolset_guide.xml:408
-#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "en <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
-msgstr "usuario de base de datos"
+msgstr "usuario de la base de datos"
-#. Tag: literal
-#: toolset_guide.xml:412
-#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "en <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
-msgstr "contraseña de usuario"
+msgstr "contraseña del usuario"
-#. Tag: literal
-#: toolset_guide.xml:416
-#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "en <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
msgstr "dialecto"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
-msgstr "Usando Ant"
+msgstr "Utilización de Ant"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
msgstr ""
-"Puedes llamar a <literal>SchemaExport</literal> desde tu guión de "
-"construcción de Ant:"
+"Puede llamar a <literal>SchemaExport</literal> desde su script de "
+"construcción de Ant:"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
msgstr "Actualizaciones incrementales de esquema"
#. Tag: para
-#: toolset_guide.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
"\"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon "
"the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
-"La herramienta <literal>SchemaUpdate</literal> actualizará un esquema "
-"existente con cambios \"incrementales\". Nota que <literal>SchemaUpdate</"
-"literal> depende fuertemente de la API de metadatos de JDBC, de modo que no "
-"funcionará con todos los drivers JDBC."
+"La herramienta <literal>SchemaUpdate</literal> actualizará un esquema "
+"existente con cambios \"incrementales\". El <literal>SchemaUpdate</literal> "
+"depende de la API de metadatos de JDBC, de modo que no funcionará con todos "
+"los controladores JDBC."
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
-"<literal>java -cp </literal><emphasis>classpaths_de_hibernate</emphasis> "
-"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> "
-"<emphasis>opciones ficheros_de_mapeo</emphasis>"
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
-msgstr ""
-"Opciones de Línea de Comandos de <literal>SchemaUpdate</literal>"
+msgstr "Opciones de LÃnea de Comandos de <literal>SchemaUpdate</literal>"
#. Tag: entry
-#: toolset_guide.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export the script to the database"
-msgstr "don't export the script to the database"
+msgstr "no exporte el script a la base de datos "
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:541
#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
-msgstr "specify a <literal>.cfg.xml</literal> file"
+msgstr "specifique un archivo <literal>.cfg.xml</literal>"
#. Tag: para
-#: toolset_guide.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
-msgstr ""
-"Puedes encajar <literal>SchemaUpdate</literal> en tu aplicación:"
+msgstr "Puede incluir <literal>SchemaUpdate</literal> en su aplicación: "
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
-msgstr "Usando Ant para actualizaciones incrementales de esquema"
+msgstr "Utilización de Ant para actualizaciones incrementales de esquema"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
-msgstr ""
-"Puedes llamar a <literal>SchemaUpdate</literal> desde el guión de Ant:"
+msgstr "Puede llamar a <literal>SchemaUpdate</literal> desde el script de Ant:"
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-msgstr ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
-msgstr "Schema validation"
+msgstr "Validación de Esquema"
#. Tag: para
-#: toolset_guide.xml:508
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
"database schema \"matches\" your mapping documents. The "
@@ -1172,14 +798,13 @@
"API and, as such, will not work with all JDBC drivers. This tool is "
"extremely useful for testing."
msgstr ""
-"The <literal>SchemaValidator</literal> tool will validate that the existing "
-"database schema \"matches\" your mapping documents. Note that "
-"<literal>SchemaValidator</literal> depends heavily upon the JDBC metadata "
-"API, so it will not work with all JDBC drivers. This tool is extremely "
-"useful for testing."
+"La herramienta <literal>SchemaValidator</literal> validará que el esquema de "
+"la base de datos existente \"coincide\" con sus documentos de mapeo. El "
+"<literal>SchemaValidator</literal> depene bastante de la API de metadatos "
+"JDBC asà que no funcionará con todos los controladores JDBC. Esta "
+"herramienta es extremadamente útil para comprobar."
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
@@ -1190,79 +815,78 @@
"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
"<emphasis>options mapping_files</emphasis>"
+#. Tag: para
+#, no-c-format
+msgid ""
+"The following table displays the <literal>SchemaValidator</literal> command "
+"line options:"
+msgstr ""
+"La siguiente tabla presenta las opciones de la lÃnea de comandos para "
+"<literal>SchemaValidator</literal> "
+
#. Tag: title
-#: toolset_guide.xml:520
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
-msgstr "<literal>SchemaValidator</literal> Command Line Options"
+msgstr "Opciones de la LÃnea de Comandos <literal>SchemaValidator</literal> "
#. Tag: para
-#: toolset_guide.xml:547
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
-msgstr "You may embed <literal>SchemaValidator</literal> in your application:"
+msgstr "Puede incluir <literal>SchemaValidator</literal> en su aplicación:"
-#. Tag: programlisting
-#: toolset_guide.xml:551
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-"<![CDATA[Configuration cfg = ....;\n"
-" new SchemaValidator"
-"(cfg).validate();]]>"
-
#. Tag: title
-#: toolset_guide.xml:556
#, no-c-format
msgid "Using Ant for schema validation"
-msgstr "Using Ant for schema validation"
+msgstr "Utilización de Ant para la validación de esquema"
#. Tag: para
-#: toolset_guide.xml:558
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
-msgstr "You can call <literal>SchemaValidator</literal> from the Ant script:"
+msgstr "Puede llamar <literal>SchemaValidator</literal> desde el scrip de Ant:"
-#. Tag: programlisting
-#: toolset_guide.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
-msgstr ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool."
-"hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate."
-"properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml"
-"\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-" </target>]]>"
+#, fuzzy
+#~ msgid "length"
+#~ msgstr "longitud de columna/precisión decimal"
-#~ msgid "Ant Tasks:"
-#~ msgstr "Tareas de Ant:"
+#, fuzzy
+#~ msgid "precision"
+#~ msgstr "expresión SQL"
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
+#, fuzzy
+#~ msgid "unique_key_name"
+#~ msgstr "<literal>unique_key_name</literal>"
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+#, fuzzy
+#~ msgid "foreign_key_name"
+#~ msgstr "<literal>foreign_key_name</literal>"
+
+#, fuzzy
+#~ msgid "SQL column type"
+#~ msgstr "<literal>SQL column type</literal>"
+
+#, fuzzy
+#~ msgid "--output=my_schema.ddl"
+#~ msgstr "<literal>--output=my_schema.ddl</literal>"
+
+#, fuzzy
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "<literal>--properties=hibernate.properties</literal>"
+
+#, fuzzy
+#~ msgid "hibernate.connection.url"
+#~ msgstr "<literal>hibernate.connection.url</literal>"
+
+#, fuzzy
+#~ msgid "hibernate.connection.username"
+#~ msgstr "<literal>hibernate.connection.username</literal>"
+
+#, fuzzy
+#~ msgid "hibernate.connection.password"
+#~ msgstr "<literal>hibernate.connection.password</literal>"
+
+#, fuzzy
+#~ msgid "hibernate.dialect"
+#~ msgstr "<literal>hibernate.dialect</literal>"
+
+#~ msgid "<!-- <emphasis>Ant Tasks:</emphasis> -->"
+#~ msgstr "<!-- <emphasis>Tareas Ant:</emphasis> -->"
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,35 @@
+# translation of transactions.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: transactions\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-07 10:38+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: transactions.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Transactions and Concurrency"
-msgstr "Transacciones y Concurrencia"
+msgstr "Transacciones y concurrencia"
#. Tag: para
-#: transactions.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
"is easy to understand. Hibernate directly uses JDBC connections and JTA "
@@ -27,18 +38,14 @@
"specification of your database management system."
msgstr ""
"El punto más importante sobre Hibernate y el control de concurrencia es que "
-"muy fácil de comprender. Hibernate usa directamente conexiones JDBC y "
-"recursos JTA sin agregar ningún comportamiento de bloqueo adicional. "
-"Recomendamos altamente que gastes algo de tiempo con la especificación de "
-"JDBC, ANSI, y el aislamiento de transacciones de tu sistema de gestión de "
-"base de datos. Hibernate sólo añade versionado automático pero no bloquea "
-"objetos en memoria ni cambia el nivel de aislamiento de tus transacciones de "
-"base de datos. Básicamente, usa Hibernate como usarÃas JDBC directo (o JTA/"
-"CMT) con tus recursos de base de datos."
+"es fácil de comprender. Hibernate usa directamente conexiones JDBC y "
+"recursos JTA sin agregar ningún comportamiento de bloqueo adicional. Le "
+"recomendamos bastante que tome algo de tiempo con la especificación de JDBC, "
+"ANSI y el aislamiento de transacciones de su sistema de gestión de base de "
+"datos. "
#. Tag: para
-#: transactions.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
"behavior as defined by the isolation level of your database transactions. "
@@ -46,29 +53,28 @@
"cache, Hibernate provides repeatable reads for lookup by identifier and "
"entity queries and not reporting queries that return scalar values."
msgstr ""
-"Hibernate does not lock objects in memory. Your application can expect the "
-"behavior as defined by the isolation level of your database transactions. "
-"Note that thanks to the <literal>Session</literal>, which is also a "
-"transaction-scoped cache, Hibernate provides repeatable reads for lookup by "
-"identifier and entity queries (not reporting queries that return scalar "
-"values)."
+"Hibernate no bloquea objetos en la memoria. Su aplicación puede esperar el "
+"comportamiento definido por el nivel de aislamiento de sus transacciones de "
+"las bases de datos. Gracias a la <literal>Session</literal>, la cual también "
+"es un caché con alcance de transacción, Hibernate proporciona lecturas "
+"repetidas para búsquedas del identificador y consultas de entidad y no "
+"consultas de reporte que retornan valores escalares."
#. Tag: para
-#: transactions.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
"Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> "
"syntax, a (minor) API for pessimistic locking of rows. Optimistic "
"concurrency control and this API are discussed later in this chapter."
msgstr ""
-"Sin embargo, además del versionado automático, Hibernate ofrece una API "
-"(menor) para bloqueo pesimista de filas, usando la sintáxis <literal>SELECT "
-"FOR UPDATE</literal>. Esta API se discute más adelante en este capÃtulo:"
+"Además del versionado del control de concurrencia optimista automático, "
+"Hibernate también ofrece una API (menor) para bloqueo pesimista de filas, "
+"usando la sintáxis <literal>SELECT FOR UPDATE</literal>. Esta API y el "
+"control de concurrencia optimista se discuten más adelante en este capÃtulo."
#. Tag: para
-#: transactions.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
"granularity of <literal>Configuration</literal>, <literal>SessionFactory</"
@@ -77,32 +83,29 @@
msgstr ""
"Comenzamos la discusión del control de concurrencia en Hibernate con la "
"granularidad de <literal>Configuration</literal>, <literal>SessionFactory</"
-"literal>, y <literal>Session</literal>, asà como la base de datos y las "
-"transacciones de aplicación largas."
+"literal> y <literal>Session</literal>, asà como las transacciones de la base "
+"de datos y las conversaciones largas."
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
msgstr "Ãmbitos de sesión y de transacción"
#. Tag: para
-#: transactions.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
"object, intended to be shared by all application threads. It is created "
"once, usually on application startup, from a <literal>Configuration</"
"literal> instance."
msgstr ""
-"Una <literal>SessionFactory</literal> es un objeto seguro entre hebras caro-"
-"de-crear pensado para ser compartido por todas las hebras de la aplicación. "
-"Es creado una sola vez, usualmente en el arranque de la aplicación, a partir "
-"de una instancia de <literal>Configuration</literal>."
+"Una <literal>SessionFactory</literal> es un objeto seguro entre hilos y "
+"costoso de crear pensado para que todas las hebras de la aplicación lo "
+"compartan. Se crea una sola vez, usualmente en el inicio de la aplicación, a "
+"partir de una instancia <literal>Configuration</literal>."
#. Tag: para
-#: transactions.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
"should be used once and then discarded for: a single request, a conversation "
@@ -110,19 +113,15 @@
"JDBC <literal>Connection</literal>, or a <literal>Datasource</literal>, "
"unless it is needed. It will not consume any resources until used."
msgstr ""
-"Una <literal>Session</literal> es un objeto barato, inseguro entre hebras "
-"que debe ser usado una sola vez, para un solo proceso de negocio, una sola "
-"unidad de trabajo, y luego descartado. Una <literal>Session</literal> no "
-"obtendrá una <literal>Connection</literal> JDBC (o un <literal>Datasource</"
-"literal>) a menos que sea necesario, de modo que puedas abrir y cerrar "
-"seguramente una <literal>Session</literal> incluso si no estás seguro que se "
-"necesitará acceso a los datos para servir una petición en particular. (Esto "
-"se vuelve importante en cuanto estés implementando alguno de los siguientes "
-"patrones usando intercepción de peticiones)."
+"Una <literal>Session</literal> es un objeto de bajo costo, inseguro entre "
+"hilos que se debe utilizar una sola vez y luego se debe descartar: para un "
+"sólo pedido, una sola conversación o una sóla unidad de trabajo. Una "
+"<literal>Session</literal> no obtendrá una <literal>Connection</literal> "
+"JDBC o un <literal>Datasource</literal> a menos de que sea necesario. No "
+"consumirá recursos hasta que se utilice."
#. Tag: para
-#: transactions.xml:76
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
"has to be as short as possible. Long database transactions will prevent your "
@@ -130,15 +129,16 @@
"that you hold a database transaction open during user think time until the "
"unit of work is complete."
msgstr ""
-"Para completar este cuadro tienes que pensar también en las transacciones de "
-"base de datos. Una transacción de base de datos tiene que ser tan corta como "
-"sea posible, para reducir la contención de bloqueos en la base de datos. Las "
-"transacciones largas de base de datos prevendrán a tu aplicación de escalar "
-"a una carga altamente concurrente."
+"Una transacción de la base de datos tiene que ser tan corta como sea posible "
+"para reducir la contención de bloqueos en la base de datos. Las "
+"transacciones largas de la base de datos prevendrán a su aplicación de "
+"escalar a una carga altamente concurrente. Por lo tanto, no se recomienda "
+"que mantenga una transacción de la base de datos abierta durante el tiempo "
+"para pensar del usuario, hasta que la unidad de trabajo se encuentre "
+"completa."
#. Tag: para
-#: transactions.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
"<literal>Session</literal> span several database transactions, or is this a "
@@ -146,21 +146,20 @@
"<literal>Session</literal> and how do you demarcate the database transaction "
"boundaries? These questions are addressed in the following sections."
msgstr ""
-"¿Qué es el ámbito de una unidad de trabajo? ¿Puede una sola "
+"¿Cuál es el ámbito de una unidad de trabajo? ¿Puede una sola "
"<literal>Session</literal> de Hibernate extenderse a través de varias "
-"transacciones de base de datos o es ésta una relación uno-a-uno de ámbitos? "
-"¿Cuándo debes abrir y cerrar una <literal>Session</literal> y cómo demarcas "
-"los lÃmites de la transacción de base de datos?"
+"transacciones de la base de datos o ésta es una relación uno-a-uno de "
+"ámbitos? ¿Cuándo debe abrir y cerrar una <literal>Session</literal>? y ¿cómo "
+"demarca los lÃmites de la transacción de la base de datos? En las siguientes "
+"secciones abordaremos estas preguntas. "
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr "Unidad de trabajo"
#. Tag: para
-#: transactions.xml:94
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
"described by Martin Fowler as <quote> [maintaining] a list of objects "
@@ -169,14 +168,25 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
+"Primero, vamos a definir una unidad de trabajo. Una unidad de trabajo es un "
+"patrón de diseño que Martin Fowler describe como <quote> [mantener] una "
+"lista de objetos afectados por una transacción empresarial y coordina la "
+"escritura de los cambios y la resolución de problemas de concurrencia. </"
+"quote><citation>PoEAA</citation> En otras palabras, es una serie de "
+"operaciones que deseamos llevar a cabo frente a la base de datos. "
+"Básicamente es una transacción, aunque el llevar a cabo una unidad de "
+"trabajo con frecuencia abarca múltiples transacciones de la base de datos "
+"fÃsica (consulte <xref linkend=\"transactions-basics-apptx\"/>). Asà que "
+"realmente estamos hablando sobre una noción más abstracta de una "
+"transacción. El término \"transacción empresarial\" también se utiliza a "
+"veces en lugar de unidad de trabajo."
#. Tag: para
-#: transactions.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
"not open and close a <literal>Session</literal> for every simple database "
@@ -192,20 +202,24 @@
"clearly defined unit of work. The latter is also more maintainable and "
"extensible."
msgstr ""
-"Primero, no uses el antipatrón <emphasis>sesión-por-operación</emphasis>, "
-"esto es, ¡no abras y cierres una <literal>Session</literal> para cada simple "
-"llamada a la base de datos en una sola hebra! Por supuesto, lo mismo es "
-"verdad para transacciones de base de datos. Las llamadas a base de datos en "
-"una aplicación se hacen usando una secuencia prevista, que están agrupadas "
-"dentro de unidades de trabajo atómicas. (Nota que esto también significa que "
-"el auto-commit después de cada una de las sentencias SQL es inútil en una "
-"aplicación, este modo está pensado para trabajo ad-hoc de consola SQL. "
-"Hibernate deshabilita, o espera que el servidor de aplicaciones lo haga, el "
-"modo auto-commit inmediatamente.)"
+"Primero, no use el antipatrón <emphasis>sesión-por-operación</emphasis>: no "
+"abra y cierre una <literal>Session</literal> para cada llamada simple a la "
+"base de datos en un solo hilo. Lo mismo aplica para las transacciones de "
+"base de datos. Las llamadas a la base de datos en una aplicación se hacen "
+"usando una secuencia planeada; estas se agrupan dentro de unidades de "
+"trabajo atómicas. Esto también significa que el auto-commit después de cada "
+"una de las declaraciones SQL es inútil en una aplicación ya que este modo "
+"está pensado para trabajo ad-hoc de consola SQL. Hibernate deshabilita, o "
+"espera que el servidor de aplicaciones lo haga, el modo auto-commit "
+"inmediatamente. Las transacciones de las bases de datos nunca son "
+"opcionales. Toda comunicación con una base de datos tiene que ocurrir dentro "
+"de una transacción. El comportamiento auto-commit para leer datos se debe "
+"evitar, ya que hay muy poca probabilidad de que las transacciones pequeñas "
+"funcionen mejor que una unidad de trabajo definida claramente. La última es "
+"mucho más sostenible y extensible."
#. Tag: para
-#: transactions.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
"<emphasis>session-per-request</emphasis>. In this model, a request from the "
@@ -218,21 +232,20 @@
"literal>. The relationship between the two is one-to-one and this model is a "
"perfect fit for many applications."
msgstr ""
-"El patrón más común en una aplicación mutiusuario cliente/servidor es "
+"El patrón más común en una aplicación multiusuario cliente/servidor es "
"<emphasis>sesión-por-petición</emphasis>. En este modelo, una petición del "
-"cliente es enviada al servidor (en donde se ejecuta la capa de persistencia "
-"de Hibernate), se abre una nueva <literal>Session</literal> de Hibernate, y "
-"todas las operaciones de base de datos se ejecutan en esta unidad de "
-"trabajo. Una vez completado el trabajo (y se ha preparado la respuesta para "
-"el cliente) la sesión es limpiada y cerrada. PodrÃas usar una sola "
-"transacción de base de datos para servir a petición del cliente, "
-"comenzándola y comprometiéndola cuando abres y cierras la <literal>Session</"
-"literal>. La relación entre las dos es uno-a-uno y este modelo es a la "
-"medida perfecta de muchas aplicaciones."
+"cliente se envia al servidor, en donde se ejecuta la capa de persistencia de "
+"Hibernate. Se abre una nueva <literal>Session</literal> de Hibernate y todas "
+"las operaciones de la base de datos se ejecutan en esta unidad de trabajo. "
+"Una vez completado el trabajo, y una vez se ha preparado la respuesta para "
+"el cliente, se limpia la sesión y se cierra. Use una sóla transacción de la "
+"base de datos para servir la petición del cliente, dándole inicio y "
+"guardándola cuando abre y cierra la <literal>Session</literal>. La relación "
+"entre las dos es uno-a-uno y este modelo es a la medida perfecta de muchas "
+"aplicaciones."
#. Tag: para
-#: transactions.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
"management of the \"current session\" to simplify this pattern. Start a "
@@ -246,38 +259,36 @@
"use the Hibernate <literal>Transaction</literal> API shown later in this "
"chapter."
msgstr ""
-"The challenge lies in the implementation. Hibernate provides built-in "
-"management of the \"current session\" to simplify this pattern. All you have "
-"to do is start a transaction when a server request has to be processed, and "
-"end the transaction before the response is send to the client. You can do "
-"this in any way you like, common solutions are <literal>ServletFilter</"
-"literal>, AOP interceptor with a pointcut on the service methods, or a proxy/"
-"interception container. An EJB container is a standardized way to implement "
-"cross-cutting aspects such as transaction demarcation on EJB session beans, "
-"declaratively with CMT. If you decide to use programmatic transaction "
-"demarcation, prefer the Hibernate <literal>Transaction</literal> API shown "
-"later in this chapter, for ease of use and code portability."
+"El reto se encuentra en la implementación. Hibernate brinda administración "
+"incorporada de la \"sesión actual\" para simplificar este patrón. Inicie una "
+"transacción cuando se tiene que procesar un pedido del servidor y termine la "
+"transacción antes de que se envie la respuesta al cliente. Las soluciones "
+"más comunes son <literal>ServletFilter</literal>, un interceptor AOP con un "
+"punto de corte en los métodos del servicio o un contenedor proxy/"
+"intercepción. Un contenedor EJB es una manera estandarizada de implementar "
+"aspectos de doble filo como demarcación de transacción en beans de sesión "
+"EJB, declarativamente con CMT. Si decide utilizar la demarcación de "
+"transacción programática, use el API <literal>Transaction</literal> de "
+"Hibernate de fácil uso y portable que se muestra más adelante en este "
+"capÃtulo."
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
-"Your application code can access a \"current session\" to process the "
-"request by simply calling <literal>sessionFactory.getCurrentSession()</"
-"literal> anywhere and as often as needed. You will always get a "
-"<literal>Session</literal> scoped to the current database transaction. This "
-"has to be configured for either resource-local or JTA environments, see "
-"<xref linkend=\"architecture-current-session\"/>."
+"Su código de aplicación puede acceder a una \"sesión actual\" para procesar "
+"el pedido llamando a <literal>sessionFactory.getCurrentSession()</literal>. "
+"Siempre obtendrá una <literal>Session</literal> con ámbito a la transacción "
+"de la base de datos actual. Esto tiene que ser configurado para entornos JTA "
+"o recurso-local, consulte <xref linkend=\"architecture-current-session\" />."
#. Tag: para
-#: transactions.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
"transaction until the \"view has been rendered\". This is especially useful "
@@ -289,26 +300,25 @@
"of any view can start. See the Hibernate website and forum for tips and "
"examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
-"Sometimes it is convenient to extend the scope of a <literal>Session</"
-"literal> and database transaction until the \"view has been rendered\". This "
-"is especially useful in servlet applications that utilize a separate "
-"rendering phase after the request has been processed. Extending the database "
-"transaction until view rendering is complete is easy to do if you implement "
-"your own interceptor. However, it is not easily doable if you rely on EJBs "
-"with container-managed transactions, as a transaction will be completed when "
-"an EJB method returns, before rendering of any view can start. See the "
-"Hibernate website and forum for tips and examples around this <emphasis>Open "
-"Session in View</emphasis> pattern."
+"Puede extender el ámbito de una <literal>Session</literal> y transacción de "
+"la base de datos hasta que \"se ha presentado la vista\". Esto es bastante "
+"útil en aplicaciones de servlet que utilizan una fase de entrega separada "
+"después de que se ha procesado el pedido. El extender la transacción de la "
+"base de datos hasta que la entrega de la vista se encuentre completa es "
+"fácil de lograr si implementa su propio interceptor. Sin embargo, no se "
+"logra fácilmente si depende de EJBs con transacciones administradas por el "
+"contenedor. Una transacción se completará cuando un método EJB retorna, "
+"antes de que pueda empezar la entrega de cualquier vista. Vea el sitio web "
+"de Hibernate y el foro para encontrar consejos y ejemplos sobre este patrón "
+"de <emphasis>sesión abierta en vista</emphasis>."
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
-msgstr "Transacciones de aplicación"
+msgstr "Conversaciones largas"
#. Tag: para
-#: transactions.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
"work. Many business processes require a whole series of interactions with "
@@ -316,53 +326,51 @@
"applications, it is not acceptable for a database transaction to span a user "
"interaction. Consider the following example:"
msgstr ""
-"El patrón sesión-por-petición no es el único concepto útil que puedes usar "
-"para diseñar unidades de trabajo. Muchos procesos de negocio requiere una "
-"serie completa de interacciones con el usuario intercaladas con accesos a "
-"base de datos. En aplicaciones web y de empresa no es aceptable que una "
-"transacción de base de datos se extienda a través de la interacción de un "
-"usuario. Considera el siguiente ejemplo:"
+"El patrón sesión-por-petición no es la única forma de diseñar unidades de "
+"trabajo. Muchos procesos empresariales requieren una serie completa de "
+"interacciones con el usuario intercaladas con accesos a la base de datos. En "
+"aplicaciones empresariales y web no es aceptable que una transacción de la "
+"base de datos abarque la interacción de un usuario. Considere el siguiente "
+"ejemplo:"
#. Tag: para
-#: transactions.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
"loaded in a particular <literal>Session</literal> and database transaction. "
"The user is free to modify the objects."
msgstr ""
-"Se abre la primera pantalla de un diálogo, los datos vistos por el usuario "
-"han sido cargados en una <literal>Session</literal> y transacción de base de "
-"datos particular. El usuario es libre de modificar los objetos."
+"Se abre la primera pantalla de un diálogo. Los datos que ve el usuario han "
+"sido cargados en una <literal>Session</literal> en particular y en una "
+"transacción de la base de datos. El usuario es libre de modificar los "
+"objetos."
#. Tag: para
-#: transactions.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
"be made persistent. The user also expects that they were the only person "
"editing this information and that no conflicting modification has occurred."
msgstr ""
-"El usuario hace click en \"Salvar\" después de 5 minutos y espera que sus "
-"modificaciones sean hechas persistentes. También espera que él sea la única "
-"persona editando esta información y que no puede ocurrir ninguna "
-"modificación en conflicto."
+"El usuario hace click en \"Guardar\" después de 5 minutos y espera que sus "
+"modificaciones se hagan persistentes. También espera que él sea la única "
+"persona editando esta información y que no ocurra ningún conflicto en la "
+"modificación."
#. Tag: para
-#: transactions.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
"<emphasis>conversation</emphasis> or <emphasis>application transaction</"
"emphasis>. There are many ways to implement this in your application."
msgstr ""
-"Llamamos a esto unidad de trabajo, desde el punto de vista del usuario, una "
-"larga <emphasis>transacción de aplicación</emphasis> ejecutándose. Hay "
-"muchas formas en que puedes implementar esto en tu aplicación."
+"Desde el punto de vista del usuario, llamamos a esta unidad de trabajo, una "
+"larga <emphasis>conversación</emphasis> o <emphasis>transacción de "
+"aplicación</emphasis>. Hay muchas formas de implementar esto en su "
+"aplicación."
#. Tag: para
-#: transactions.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
"database transaction open during user think time, with locks held in the "
@@ -371,16 +379,14 @@
"the application to scale with the number of concurrent users."
msgstr ""
"Una primera implementación ingenua podrÃa mantener abierta la "
-"<literal>Session</literal> y la transacción de base de datos durante el "
-"tiempo de pensar del usuario, con bloqueos tomados en la base de datos para "
-"prevenir la modificación concurrente, y para garantizar aislamiento y "
-"atomicidad. Esto es, por supuesto, un antipatrón, ya que la contención de "
-"bloqueo no permitirÃa a la aplicación escalar con el número de usuarios "
-"concurrentes."
+"<literal>Session</literal> y la transacción de la base de datos durante el "
+"tiempo para pensar del usuario, con bloqueos en la base de datos para "
+"prevenir la modificación simultánea y para garantizar el aislamiento y la "
+"atomicidad. Esto es un antipatrón, ya que la contención de bloqueo no "
+"permitirÃa a la aplicación escalar con el número de usuarios simultáneos."
#. Tag: para
-#: transactions.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
"In this case, maintaining isolation of business processes becomes the "
@@ -391,34 +397,32 @@
"several request/response cycles). This is easier to implement than it might "
"sound, especially if you utilize some of Hibernate's features:"
msgstr ""
-"Claramente, tenemos que usar muchas transacciones de base de datos para "
-"implementar la transacción de aplicación. En este caso, mantener el "
-"aislamiento de los procesos de negocio se vuelve una responsabilidad parcial "
-"de la capa de aplicación. Una sola transacción de aplicación usualmente "
-"abarca varias transacciones de base de datos. Será atómica si sólo una de "
-"estas transacciones de base de datos (la última) almacena los datos "
-"actualizados, todas las otras simplemente leen datos (por ejemplo, en un "
-"diálogo estilo-asistente abarcando muchos ciclos petición/respuesta). Esto "
-"es más fácil de implementar de lo que suena, especialmente si usas las "
-"funcionalidades de Hibernate:"
+"Tiene que usar varias transacciones de la base de datos para implementar la "
+"conversación. En este caso, mantener el aislamiento de los procesos "
+"empresariales se vuelve una responsabilidad parcial de la capa de la "
+"aplicación. Una sóla conversación usualmente abarca varias transacciones de "
+"la base de datos. Será atómica si sólo una de estas transacciones de la base "
+"de datos (la última) almacena los datos actualizados. Todas las otras "
+"simplemente leen datos (por ejemplo, en un diálogo de estilo-asistente "
+"abarcando muchos ciclos petición/respuesta). Esto es más fácil de "
+"implementar de lo que suena, especialmente si usa las funcionalidades de "
+"Hibernate:"
#. Tag: para
-#: transactions.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
"optimistic concurrency control for you. It can automatically detect if a "
"concurrent modification occurred during user think time. Check for this at "
"the end of the conversation."
msgstr ""
-"<emphasis>Versionado Automático</emphasis> - Hibernate puede llevar un "
-"control automático de concurrencia optimista por ti, puede detectar "
-"automáticamente si una modificación concurrente ha ocurrido durante el "
-"tiempo de pensar del usuario."
+"<emphasis>Versionado automático</emphasis> - Hibernate puede realizar un "
+"control automático de concurrencia optimista por usted .Puede detectar "
+"automáticamente si ha ocurrido una modificación simultánea durante el tiempo "
+"para pensar del usuario. Chequee esto al final de la conversación. "
#. Tag: para
-#: transactions.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
"<emphasis>session-per-request</emphasis> pattern, all loaded instances will "
@@ -427,17 +431,16 @@
"<emphasis>session-per-request-with-detached-objects</emphasis>. Automatic "
"versioning is used to isolate concurrent modifications."
msgstr ""
-"<emphasis>Objetos Separados</emphasis> - Si decides usar el ya discutido "
-"patrón de <emphasis>sesión-por-petición</emphasis>, todas las instancias "
-"cargadas estarán en estado separado durante el tiempo de pensar del usuario. "
-"Hibernate te permite volver a unir los objetos y hacer persistentes las "
+"<emphasis>Objetos separados</emphasis>: Si decide usar el patrón "
+"<emphasis>sesión-por-petición</emphasis>, todas las instancias cargadas "
+"estarán en estado separado durante el tiempo para pensar del usuario. "
+"Hibernate le permite volver a unir los objetos y hacer persistentes las "
"modificaciones. El patrón se llama <emphasis>sesión-por-petición-con-objetos-"
-"separados</emphasis>. Se usa versionado automático para aislar las "
-"modificaciones concurrentes."
+"separados</emphasis>. Se usa el versionado automático para aislar las "
+"modificaciones simultáneas."
#. Tag: para
-#: transactions.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
"<literal>Session</literal> can be disconnected from the underlying JDBC "
@@ -448,76 +451,69 @@
"<literal>Session</literal> will not be allowed to be flushed automatically, "
"but explicitly."
msgstr ""
-"<emphasis>Sesión Larga</emphasis> - La <literal>Session</literal> de "
-"Hibernate puede ser desconectada de la conexión JDBC subyacente después que "
-"se haya sido comprometida la transacción de base de datos, y reconectada "
-"cuando ocurra una nueva petición del cliente. Este patrón es conocido como "
-"<emphasis>sesión-por-transacción-de-aplicación</emphasis> y hace la re-unión "
-"innecesaria. Para aislar las modificaciones concurrentes se usa el "
-"versionado automático."
+"<emphasis>Sesión extendida (o larga) </emphasis> - La <literal>Session</"
+"literal> de Hibernate puede ser desconectada de la conexión JDBC subyacente "
+"después de que haya guardado la transacción de la base de datos y haya "
+"reconectado cuando ocurra una nueva petición del cliente. Este patrón se "
+"conoce como <emphasis>sesión-por-conversación</emphasis> y hace la re-unión "
+"innecesaria. Para aislar las modificaciones simultáneas se usa el versionado "
+"automático y usualmente no se permite que se limpie la <literal>Session</"
+"literal> automáticamente sino explÃcitamente."
#. Tag: para
-#: transactions.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
"<emphasis>session-per-conversation</emphasis> have advantages and "
"disadvantages. These disadvantages are discussed later in this chapter in "
"the context of optimistic concurrency control."
msgstr ""
-"Tanto <emphasis>sesión-por-petición-con-objetos-separados</emphasis> como "
-"<emphasis>sesión-por-transacción-de-aplicación</emphasis>, ambas tienen "
-"ventajas y desventajas, las discutimos más adelante en este capÃtulo en el "
-"contexto del control optimista de concurrencia."
+"Tanto la <emphasis>sesión-por-petición-con-objetos-separados</emphasis> como "
+"la <emphasis>sesión-por-conversación</emphasis> tienen ventajas y "
+"desventajas. Estas desventajas las discutimos más adelante en este capÃtulo "
+"en el contexto del control optimista de concurrencia."
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
-msgstr "Considerando la identidad del objeto"
+msgstr "Consideración de la identidad del objeto"
#. Tag: para
-#: transactions.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
"different <literal>Session</literal>s. However, an instance of a persistent "
"class is never shared between two <literal>Session</literal> instances. It "
"is for this reason that there are two different notions of identity:"
msgstr ""
-"Una aplicación puede acceder concurrentemente a el mismo estado persistente "
-"en dos <literal>Session</literal>s diferentes. Sin embargo, una instancia de "
+"Una aplicación puede acceder simultáneamente al mismo estado persistente en "
+"dos <literal>Session</literal>es diferentes. Sin embargo, una instancia de "
"una clase persistente nunca se comparte entre dos instancias de "
-"<literal>Session</literal>. Por lo tanto existen dos nociones diferentes de "
-"identidad:"
+"<literal>Session</literal>. Por lo tanto, existen dos nociones diferentes de "
+"identidad: "
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr "Identidad de Base de Datos"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
-msgstr "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
+msgstr "<literal>foo.getId().equals( bar.getId() )</literal>"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr "Identidad JVM"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr "<literal>foo==bar</literal>"
#. Tag: para
-#: transactions.xml:295
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
"literal> (i.e., in the scope of a <literal>Session</literal>), the two "
@@ -528,19 +524,18 @@
"resolved using an optimistic approach and automatic versioning at flush/"
"commit time."
msgstr ""
-"Entonces para objetos unidos a una <literal>Session</literal><emphasis>en "
-"particular</emphasis> (es decir en el ámbito de una <literal>Session</"
-"literal>) las dos nociones son equivalentes, y la identidad JVM para la "
-"identidad de base de datos está garantizada por Hibernate. Sin embargo, "
-"mientras la aplicación acceda concurrentemente al \"mismo\" (identidad "
-"persistente) objeto de negocio en dos sesiones diferentes, las dos "
-"instancias serán realmente \"diferentes\" (identidad JVM). Los conflictos se "
-"resuelven (con versionado automático) en tiempo de limpieza (flush) usando "
-"un enfoque optimista."
+"Para los bjetos unidos a una <literal>Session</literal><emphasis> en "
+"particular</emphasis> (por ejemplo, en el ámbito de una <literal>Session</"
+"literal>) las dos nociones son equivalentes y la identidad de la MVJ para la "
+"identidad de la base de datos se encuentra garantizada por Hibernate. "
+"Mientras la aplicación acceda simultáneamente al \"mismo\" objeto "
+"empresarial (identidad persistente) en dos sesiones diferentes, las dos "
+"instancias serán realmente \"diferentes\" (identidad MVJ). Los conflictos se "
+"resuelven usando un enfoque optimista y el versionado automático en tiempo "
+"de vaciado/ al guardar."
#. Tag: para
-#: transactions.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
"It also provides the best scalability, since guaranteeing identity in single-"
@@ -550,18 +545,17 @@
"<literal>Session</literal>. Within a <literal>Session</literal> the "
"application can safely use <literal>==</literal> to compare objects."
msgstr ""
-"Este enfoque deja que Hibernate y la base de datos se preocupen sobre la "
+"Este enfoque deja que Hibernate y la base de datos se preocupen de la "
"concurrencia. Además provee la mejor escalabilidad, ya que garantizando la "
-"identidad un unidades de trabajo monohebra no se necesitan bloqueos caros u "
-"otros medios de sincronización. La aplicación nunca necesita sincronizar "
-"sobre ningún objeto de negocio, siempre que se apegue a una sola hebra por "
+"identidad en unidades de trabajo monohilo no se necesitan bloqueos caros u "
+"otros medios de sincronización. La aplicación no necesita sincronizar sobre "
+"ningún objeto empresarial, siempre que se mantenga un solo hilo por "
"<literal>Session</literal>. Dentro de una <literal>Session</literal> la "
"aplicación puede usar con seguridad <literal>==</literal> para comparar "
"objetos."
#. Tag: para
-#: transactions.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
"<literal>Session</literal> might produce unexpected results. This might "
@@ -586,36 +580,34 @@
msgstr ""
"Sin embargo, una aplicación que usa <literal>==</literal> fuera de una "
"<literal>Session</literal>, podrÃa ver resultados inesperados. Esto podrÃa "
-"ocurrir incluso en sitios algo inesperados, por ejemplo, si pones dos "
-"instancias separadas dentro del mismo <literal>Set</literal>. Ambas podrÃan "
-"tener la misma identidad de base de datos (es decir, representar la misma "
-"fila), pero la identidad JVM, por definición, no está garantizada para las "
-"instancias en estado separado. El desarrollador tiene que sobrescribir los "
-"métodos <literal>equals()</literal> y <literal>hashCode()</literal> en las "
-"clases persistentes e implementar su propia noción de igualdad de objetos. "
-"Hay una advertencia: Nunca uses el identificador de base de datos para "
-"implementar la igualdad, usa una clave de negocio, una combinación de "
-"atributos únicos, usualmente inmutables. El identificador de base de datos "
-"cambiará si un objeto transitorio es hecho persistente. Si la instancia "
-"transitoria (usualmente junta a instancias separadas) es mantenida en un "
-"<literal>Set</literal>, cambiar el código hash rompe el contrato del "
-"<literal>Set</literal>. Los atributos para las claves de negocio no tienen "
-"que ser tan estables como las claves primarias de base de datos, sólo tienes "
-"que garantizar estabilidad en tanto los objetos estén en el mismo "
-"<literal>Set</literal>. Mira el sitio web de Hibernate para una discusión "
-"más cuidadosa de este tema. Nota también que éste no es un tema de "
-"Hibernate, sino simplemente cómo la identidad y la igualdad de los objetos "
-"Java tiene que ser implementada."
+"ocurrir incluso en sitios algo inesperados. Por ejemplo, si pone dos "
+"instancias separadas dentro del mismo <literal>Set</literal> ambas podrÃan "
+"tener la misma identidad de la base de datos (por ejemplo, representar la "
+"misma fila). Sin embargo, la identidad MVJ, por definición, no está "
+"garantizada para las instancias en estado separado. El desarrollador tiene "
+"que sobrescribir los métodos <literal>equals()</literal> y <literal>hashCode"
+"()</literal> en las clases persistentes e implementar su propia noción de "
+"igualdad de objetos. Hay una advertencia: nunca use el identificador de la "
+"base de datos para implementar la igualdad. Use una clave de negocio, una "
+"combinación de atributos únicos, usualmente inmutables. El identificador de "
+"la base de datos cambiará si un objeto transitorio es hecho persistente. Si "
+"la instancia transitoria (usualmente junto a las instancias separadas) es "
+"mantenida en un <literal>Set</literal>, cambiar el código hash rompe el "
+"contrato del <literal>Set</literal>. Los atributos para las claves "
+"empresariales no tienen que ser tan estables como las claves principales de "
+"la base de datos, sólo tiene que garantizar estabilidad en tanto los objetos "
+"estén en el mismo <literal>Set</literal>. Mire el sitio web de Hibernate "
+"para obetener una discusión más profunda de este tema. Note también que éste "
+"no es problema de Hibernate, sino que simplemente se tiene que implementar "
+"la identidad y la igualdad de los objetos Java."
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
-msgstr "Temas comunes"
+msgstr "Temas comúnes"
#. Tag: para
-#: transactions.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
"or <emphasis>session-per-application</emphasis> (there are, however, rare "
@@ -623,15 +615,14 @@
"within the recommended patterns, so ensure that you understand the "
"implications before making a design decision:"
msgstr ""
-"Nunca uses los antipatrones <emphasis>sesión-por-sesión-de-usuario</"
-"emphasis> o <emphasis>sesión-por-aplicación</emphasis> (por supuesto, hay "
-"raras excepciones a esta regla). Nota que algunis de los siguientes temas "
-"podrÃan también aparecer con los patrones recomendados. Asegúrate que "
-"entiendes las implicaciones antes de tomar una decisión de diseño:"
+"No use los antipatrones <emphasis>sesión-por-sesión-de-usuario</emphasis> o "
+"<emphasis>sesión-por-aplicación</emphasis> (hay excepciones raras a esta "
+"regla). Algunos de los siguientes temas también podrÃan aparecer con los "
+"patrones recomendados asà que asegúrese de que entiende las implicaciones "
+"antes de tomar una decisión de diseño:"
#. Tag: para
-#: transactions.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
"concurrently, like HTTP requests, session beans, or Swing workers, will "
@@ -642,19 +633,18 @@
"that clicks reload fast enough can use the same <literal>Session</literal> "
"in two concurrently running threads."
msgstr ""
-"Una <literal>Session</literal> no es segura entre hebras. Las cosas que se "
-"suponen que funcionan concurrentemente, como peticiones HTTP, beans de "
-"sesión, o workers de Swing, provocarán condiciones de competencia si una "
-"instancia de <literal>Session</literal> fuese compartida. Si guardas tu "
-"<literal>Session</literal> de Hibernate en tu <literal>HttpSession</literal> "
-"(discutido más adelante), debes considerar sincronizar el acceso a tu sesión "
-"HTTP. De otro modo, un usuario que hace click lo suficientemente rápido "
-"puede llegar a usar la misma <literal>Session</literal> en dos hebras "
-"ejecutándose concurrentemente."
+"Una <literal>Session</literal> no es segura entre hilos. Las cosas que "
+"funcionan de manera simultánea, como las peticiones HTTP, beans de sesión, o "
+"workers de Swing, provocarán condiciones de competencia si una instancia de "
+"<literal>Session</literal> se comparte. Si guarda su <literal>Session</"
+"literal> de Hibernate en su <literal>HttpSession</literal> (se discute más "
+"adelante), debe considerar el sincronizar el acceso a su sesión HTTP. De "
+"otro modo, un usuario que hace click lo suficientemente rápido puede llegar "
+"a usar la misma <literal>Session</literal> en dos hilos ejecutándose "
+"simultáneamente."
#. Tag: para
-#: transactions.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
"transaction and close the <literal>Session</literal> immediately (this is "
@@ -666,19 +656,18 @@
"Usually this is not a problem, because exceptions are not recoverable and "
"you will have to start over after rollback anyway."
msgstr ""
-"Una excepción lanzada por Hibernate significa que tienes que deshacer "
-"(rollback) tu transacción de base de datos y cerrar la <literal>Session</"
-"literal> inmediatamente (discutido en más detalle luego). Si tu "
-"<literal>Session</literal> está ligada a la aplicación, tienes que parar la "
-"aplicación. Deshacer (rollback) la transacción de base de datos no pone a "
-"tus objetos de vuelta al estado en que estaban al comienzo de la "
+"Una excepción lanzada por Hibernate significa que tiene que deshacer su "
+"transacción de la base de datos y cerrar la <literal>Session</literal> "
+"inmediatamente (se discute en más detalle más adelante en este capÃtulo). Si "
+"su <literal>Session</literal> está vinculada a la aplicación, tiene que "
+"parar la aplicación. Deshacer la transacción de la base de datos no pone a "
+"sus objetos de vuelta al estado en que estaban al comienzo de la "
"transacción. Esto significa que el estado de la base de datos y los objetos "
-"de negocio quedan fuera de sincronÃa. Usualmente esto no es un problema, "
-"pues las excepciones no son recuperables y tienes que volver a comenzar "
-"después del rollback de todos modos."
+"empreariales quedan fuera de sincronÃa. Usualmente esto no es un problema, "
+"pues las excepciones no son recuperables y tendrá que volver a comenzar "
+"después de deshacer de todos modos."
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -687,31 +676,29 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
"La <literal>Session</literal> pone en caché todo objeto que esté en estado "
-"persistente (vigilado y chequeado por estado sucio por Hibernate). Esto "
-"significa que crece sin fin hasta que obtienes una OutOfMemoryException, si "
-"la mantienes abierta por un largo tiempo o simplemente cargas demasiados "
-"datos. Una solución para esto es llamar a <literal>clear()</literal> y "
-"<literal>evict()</literal> para gestionar el caché de la <literal>Session</"
-"literal>, pero probalemente debas considerar un procedimiento almacenado si "
-"necesitas operaciones de datos masivas. Se muestran algunas soluciones en "
-"<xref linkend=\"batch\"/>. Mantener una <literal>Session</literal> abierta "
-"por la duración de una sesión de usuario significa también una alta "
-"probabilidad de datos añejos."
+"persistente (Hibernate vigila y chequea para identificar estados "
+"desactualizados). Si la mantiene abierta por un largo tiempo o simplemente "
+"carga demasiados datos crece sin fin hasta que obtiene una "
+"OutOfMemoryException. Una solución para esto es llamar a <literal>clear()</"
+"literal> y <literal>evict()</literal> para gestionar el caché de la "
+"<literal>Session</literal>, pero probalemente deba considerar un "
+"procedimiento almacenado si necesita operaciones de datos masivas. Se pueden "
+"ver algunas soluciones en <xref linkend=\"batch\"/>. Mantener una "
+"<literal>Session</literal> abierta durante una sesión de usuario también "
+"significa una alta probabilidad de datos desactualizados."
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
-msgstr "Demarcación de la transacción de base de datos"
+msgstr "Demarcación de la transacción de la base de datos"
#. Tag: para
-#: transactions.xml:388
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
"communication with the database can occur outside of a database transaction "
@@ -722,18 +709,19 @@
"transactions explicitly. Certainly, a single database transaction is going "
"to perform better than many small transactions, even for reading data."
msgstr ""
-"Los lÃmites de las transacciones de base de datos (o sistema) son siempre "
-"necesarios. Ninguna comunicación con la base de datos puede darse fuera de "
-"una transacción de base de datos (esto parece confundir muchos "
-"desarrolladores acostumbrados al modo auto-commit). Siempre usa lÃmites de "
+"Los lÃmites de las transacciones de la base de datos o el sistema son "
+"siempre necesarios. Ninguna comunicación con la base de datos puede darse "
+"fuera de una transacción de la base de datos (esto parece confundir a muchos "
+"desarrolladores acostumbrados al modo auto-commit). Siempre use lÃmites de "
"transacción claros, incluso para las operaciones de sólo lectura. "
-"Dependiendo del nivel de aislamiento y las capacidades de base de datos, "
-"esto podrÃa o no ser requerido, pero no hay un merma si siempre demarcas "
-"explÃcitamente las transacciones."
+"Dependiendo del nivel de aislamiento y las capacidades de la base de datos, "
+"esto podrÃa requerirse o no, pero no hay inconvenientes si siempre demarca "
+"explÃcitamente las transacciones. Con seguridad, una transacción única de "
+"base de datos va a funcionar mejor que muchas transacciones pequeñas, "
+"inclusive para leer datos."
#. Tag: para
-#: transactions.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
"Web- or Swing applications) and managed J2EE environments. In a non-managed "
@@ -745,22 +733,20 @@
"descriptors of EJB session beans, for example). Programmatic transaction "
"demarcation is then no longer necessary."
msgstr ""
-"Una aplicación Hibernate puede ejecutarse en entornos no manejados (es "
-"decir, como independiente, Web simple, o aplicaciones Swing) y entornos "
-"manejados J2EE. En un entorno no manejado, Hibernate es usualmente "
-"responsable de su propio pool de conexiones de base de datos. El "
-"desarrollador de aplicaciones tiene que establecer manualmente los lÃmites "
-"de transacción, en otras palabras, hacer begin, commit, o rollback las "
-"transacciones de base de datos por sà mismo. Un entorno manejado usualmente "
-"provee transacciones gestionadas por contenedor, con el ensamble de "
-"transacción definido declarativamente en descriptores de despliegue de beans "
-"de sesión EJB, por ejemplo. La demarcación programática de transacciones no "
-"es más necesario, incluso limpiar (flush) la <literal>Session</literal> es "
-"hecho automáticamente."
+"Una aplicación Hibernate puede ejecutarse en entornos no administrados (por "
+"ejemplo, aplicaciones simples Web o Swing autónomas) y entornos "
+"administrados por J2EE. En un entorno no administrado, Hibernate es "
+"usualmente responsable de su propio pool de conexiones de la base de datos. "
+"El desarrollador de aplicaciones tiene que establecer manualmente los "
+"lÃmites de transacción (inicar, guardar o deshacer las transacciones de la "
+"base de datos) por sà mismo. Un entorno administrado usualmente proporciona "
+"transacciones gestionadas por contenedor, con el ensamble de transacción "
+"definido declarativamente (por ejemplo, en descriptores de despliegue de "
+"beans de sesión EJB). La demarcación programática de transacciones ya no es "
+"necesaria."
#. Tag: para
-#: transactions.xml:408
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
"between non-managed resource-local environments, and systems that can rely "
@@ -770,102 +756,74 @@
"system of your deployment environment. This API is actually optional, but we "
"strongly encourage its use unless you are in a CMT session bean."
msgstr ""
-"Sin embargo, frecuentemente es deseable mantener portable tu capa de "
-"persistencia. Hibernate ofrece una API de envoltura llamada "
-"<literal>Transaction</literal> que se traduce al sistema de transacciones "
-"nativo de tu entorno de despliegue. Esta API es realmente opcional, pero "
-"recomendamos fuertemente su uso salvo que estés en un bean de sesión CMT."
+"Sin embargo, comúnmente se quiere mantener su capa de persistencia portátil "
+"entre entornos locales- de recursos no-administrados y sistemas que pueden "
+"confiar en JTA, pero utilizar BMT en vez de CMT. En ambos casos utilizarÃa "
+"la demarcación de transacción programática. Hibernate ofrece una API de "
+"envoltura llamada <literal>Transaction</literal> que se traduce al sistema "
+"de transacciones nativo de su entorno de despliegue. Esta API es de hecho "
+"opcional, pero le recomendamos bastante su uso salvo que esté en un bean de "
+"sesión CMT. "
#. Tag: para
-#: transactions.xml:417
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
msgstr ""
-"Usualmente, finalizar una <literal>Session</literal> implica cuatro fases "
+"Usualmente, el finalizar una <literal>Session</literal> implica cuatro fases "
"distintas:"
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
-msgstr "limpiar (flush) la sesión"
+msgstr "limpiar la sesión"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
-msgstr "comprometer la transacción"
+msgstr "someter la transacción"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
msgstr "cerrar la sesión"
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr "manejar excepciones"
#. Tag: para
-#: transactions.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
"at transaction demarcation and exception handling in both managed and non-"
"managed environments."
msgstr ""
-"Limpiar la sesión ha sido discutido anteriormente, tendremos ahora una "
-"mirada más de cerca a la demarcación de transacciones y manejo de "
-"excepciones en sendos entornos manejado y no manejados."
+"Anteriormente se discutió el vacido de la sesión asà que ahora vamos a mirar "
+"más de cerca la demarcación de transacciones y el manejo de excepciones en "
+"los dos entornos administrado y no administrado."
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
-msgstr "Entorno no manejado"
+msgstr "Entorno no administrado"
#. Tag: para
-#: transactions.xml:453
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
"connections are usually handled by simple (i.e., non-DataSource) connection "
"pools from which Hibernate obtains connections as needed. The session/"
"transaction handling idiom looks like this:"
msgstr ""
-"Si una capa de persistencia Hibernate se ejecuta en un entorno no manejado, "
-"las conexiones de base de datos son manejadas usualmente por el mecanismo de "
-"pooling de Hibernate. El idioma manejo de sesión/transacción se ve asÃ:"
+"Si una capa de persistencia Hibernate se ejecuta en un entorno no "
+"administrado, las conexiones de la base de datos se manejan usualmente por "
+"simples pools de conexión (por ejemplo, no-DataSource) del cual Hibernate "
+"obtiene conexiones al ser necesario. El idioma de manejo de sesión/"
+"transacción se ve asÃ:"
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -876,46 +834,27 @@
"literal> is that the JDBC connection will be relinquished by the session. "
"This Java code is portable and runs in both non-managed and JTA environments."
msgstr ""
-"No tienes que limpiar con <literal>flush()</literal> la <literal>Session</"
-"literal> explÃcitamente - la llamada a <literal>commit()</literal> "
-"automáticamente dispara la sincronización. Una llamada a <literal>close()</"
-"literal> marca el fin de una sesión. La principal implicación de "
+"No tiene que vaciar con <literal>flush()</literal> la <literal>Session</"
+"literal> explÃcitamente: la llamada a <literal>commit()</literal> "
+"automáticamente dispara la sincronización dependiendo del <xref linkend="
+"\"objectstate-flushing\"/> para la sesión. Una llamada a <literal>close()</"
+"literal> marca el final de una sesión. La implicación principal de "
"<literal>close()</literal> es que la conexión JDBC será abandonada por la "
-"sesión."
+"sesión. Este código Java es portátil y ejecuta en entornos tanto no-"
+"administrados como JTA."
#. Tag: para
-#: transactions.xml:471
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
"\"current session\" context management:"
msgstr ""
-"Este código Java es portable y se ejecuta tanto en entornos no manejados "
-"como en entornos JTA."
+"Como se mencionó anteriormente, una solución mucho más flexible es la "
+"administración de contexto \"sesión actual\" incorporada en Hibernate:"
-#. Tag: programlisting
-#: transactions.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:478
-#, fuzzy, no-c-format
-msgid ""
"You will not see these code snippets in a regular application; fatal "
"(system) exceptions should always be caught at the \"top\". In other words, "
"the code that executes Hibernate calls in the persistence layer, and the "
@@ -925,37 +864,36 @@
"<literal>SessionFactory</literal>. Exception handling is discussed later in "
"this chapter."
msgstr ""
-"Muy probablemente nunca veas este idioma en código de negocio en una "
-"aplicación normal; las excepciones fatales (sistema) deben siempre ser "
-"capturadas en la \"cima\". En otras palabras, el código que ejecuta las "
-"llamadas de Hibernate (en la capa de persistencia) y el código que maneja "
-"<literal>RuntimeException</literal> (y usualmente sólo puede limpiar y "
-"salir) están en capas diferentes. Esto puede ser un desafÃo de diseñarlo tú "
-"mismo y debes usar los servicios de contenedor J2EE/EJB en cuanto estuviesen "
-"disponibles. El manejo de excepciones se dicute más adelante en este "
-"capÃtulo."
+"No verá estos pedazos de código en una aplicación normal; las excepciones "
+"fatales (del sistema) siempre deben ser capturadas en la \"cima\". En otras "
+"palabras, el código que ejecuta las llamadas de Hibernate en la capa de "
+"persistencia y el código que maneja <literal>RuntimeException</literal> (y "
+"usualmente sólo puede limpiar y salir) se encuentran en capas diferentes. La "
+"administración de contexto actual de Hibernate puede simplificar de manera "
+"importante este diseño, ya que todo lo que necesita hacer es acceder a "
+"<literal>SessionFactory</literal>. El manejo de excepciones se discute más "
+"adelante en este capÃtulo."
#. Tag: para
-#: transactions.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
"literal>, which is the default, and for the second example select <literal>"
"\"thread\"</literal> as your <literal>hibernate."
"current_session_context_class</literal>."
msgstr ""
-"Nota que debes seleccionar <literal>org.hibernate.transaction."
-"JDBCTransactionFactory</literal> (que es el por defecto)."
+"Debe seleccionar <literal>org.hibernate.transaction.JDBCTransactionFactory</"
+"literal>, el cual es el predeterminado, y para el segundo ejemplo "
+"seleccionar <literal>\"thread\"</literal> como su <literal>hibernate."
+"current_session_context_class</literal>."
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
-msgstr "Usando JTA"
+msgstr "Utilización de JTA"
#. Tag: para
-#: transactions.xml:499
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
"EJB session beans), every datasource connection obtained by Hibernate will "
@@ -963,126 +901,51 @@
"standalone JTA implementation and use it without EJB. Hibernate offers two "
"strategies for JTA integration."
msgstr ""
-"Si tu capa de persistencia se ejecuta en un servidor de aplicaciones (por "
-"ejemplo, detrás de beans de sesión EJB), cada conexión de datasource "
-"obtenida por Hibernate será parte automáticamente de la transacción JTA "
-"global. Hibernate ofrece dos estrategias para esta integración."
+"Si su capa de persistencia se ejecuta en un servidor de aplicaciones (por "
+"ejemplo, detrás de los beans de sesión EJB), cada conexión de fuente de "
+"datos obtenida por Hibernate será parte de la transacción JTA global de "
+"manera automática. También puede instalar una implementación JTA autónoma y "
+"utilizarla sin EJB. Hibernate ofrece dos estrategias para esta integración "
+"JTA."
#. Tag: para
-#: transactions.xml:506
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
"application server to start and end a BMT transaction if you use the "
"<literal>Transaction</literal> API. The transaction management code is "
"identical to the non-managed environment."
msgstr ""
-"Si usas transacciones gestionadas-por-bean (BMT) Hibernate le dirá al "
-"servidor de aplicaciones que comience y finalice una transacción BMT si usas "
+"Si usa transacciones gestionadas-por-bean (BMT) Hibernate le dirá al "
+"servidor de aplicaciones que comience y finalice una transacción BMT si usa "
"la API de <literal>Transaction</literal>. De modo que, el código de gestión "
-"de la transacción es idéntico al de un entorno no manejado."
+"de la transacción es idéntico al de un entorno no administrado. "
-#. Tag: programlisting
-#: transactions.xml:512
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:514
-#, fuzzy, no-c-format
-msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
"the <literal>getCurrentSession()</literal> functionality for easy context "
"propagation, use the JTA <literal>UserTransaction</literal> API directly:"
msgstr ""
-"Con CMT, la demarcación de la transacción se hace en descriptores de "
-"despliegue de beans de sesión, no programáticamente. Si no quieres limpiar "
-"(flush) y cerrar manualmente la <literal>Session</literal> por ti mismo, "
-"solamente establece <literal>hibernate.transaction.flush_before_completion</"
-"literal> a <literal>true</literal>, <literal>hibernate.connection."
-"release_mode</literal> a <literal>after_statement</literal> o <literal>auto</"
-"literal> y <literal>hibernate.transaction.auto_close_session</literal> a "
-"<literal>true</literal>. Hibernate limpiará y cerrará entonces "
-"automáticamente la <literal>Session</literal> para ti. Lo único que resta es "
-"deshacer (rollback) la transacción cuando ocurra una excepción. "
-"Afortunadamente, en un bean CMT, incluso esto ocurre automáticamente, ya que "
-"una <literal>RuntimeException</literal> no manejada disparada por un método "
-"de un bean de sesión le dice al contenedor que ponga a deshacer la "
-"transacción global. <emphasis>Esto significa que, en CMT, no necesitas usar "
-"en absoluto la API de <literal>Transaction</literal> de Hibernate.</emphasis>"
+"Si quiere utilizar un vÃnculo de transacción <literal>Session</literal>, es "
+"decir, la funcionalidad <literal>getCurrentSession()</literal> para "
+"propagación de contexto de manera fácil, tendrá que utilizar el API "
+"<literal>UserTransaction</literal> del JTA directamente: "
-#. Tag: programlisting
-#: transactions.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:522
-#, fuzzy, no-c-format
-msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
"descriptors, not programmatically. The code is reduced to:"
msgstr ""
-"Nota que debes elegir <literal>org.hibernate.transaction."
-"JTATransactionFactory</literal> en un bean de sesión BMT, y <literal>org."
-"hibernate.transaction.CMTTransactionFactory</literal> en un bean de sesión "
-"CMT, cuando configures la fábrica de transacciones de Hibernate. Recuerda "
-"además establecer <literal>org.hibernate.transaction.manager_lookup_class</"
-"literal>."
+"Con CMT, la demarcación de transacción se realiza en los descriptores de "
+"implementacion bean de sesión, no programáticamente. Por lo tanto el código "
+"se reduce a:"
-#. Tag: programlisting
-#: transactions.xml:527
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:529
-#, fuzzy, no-c-format
-msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
"<literal>RuntimeException</literal> thrown by a session bean method tells "
"the container to set the global transaction to rollback. <emphasis>You do "
@@ -1090,24 +953,15 @@
"BMT or CMT, and you get automatic propagation of the \"current\" Session "
"bound to the transaction.</emphasis>"
msgstr ""
-"Si trabajas en un entorno CMT, y usas limpieza (flushing) y cierre "
-"automáticos de la sesión, podrÃas querer también usar la misma sesión en "
-"diferentes partes de tu código. TÃpicamente, en un entorno no manejado, "
-"usarÃas una variable <literal>ThreadLocal</literal> para tener la sesión, "
-"pero una sola petición de EJB puede ejecutarse en diferentes hebras (por "
-"ejemplo, un bean de sesión llamando a otro bean de sesión). Si no quieres "
-"molestarte en pasar tu <literal>Session</literal> por alrededor, la "
-"<literal>SessionFactory</literal> provee el método <literal>getCurrentSession"
-"()</literal>, que devuelve una sesión que está pegada al contexto de "
-"transacción JTA. ¡Esta es la forma más fácil de integrar Hibernate en una "
-"aplicación! La sesión \"actual\" siempre tiene habilitados limpieza, cierre "
-"y liberación de conexión automáticos (sin importar la configuración de las "
-"propiedades anteriores). Nuestra idioma de gestión de sesión/transacción se "
-"reduce a:"
+"En un CMT/EJB incluso el deshacer sucede de forma automática. Un "
+"<literal>RuntimeException</literal> lanzado por un método bean de sesión le "
+"dice al contenedor que establezca una transacción global para deshacer. "
+"<emphasis>No necesita utilizar el API <literal>Transaction</literal> de "
+"Hibernate con BMT o CMT y obtiene la propagación automática de sesión\"actual"
+"\" vinculada a la transacción.</emphasis>"
#. Tag: para
-#: transactions.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
"hibernate.transaction.JTATransactionFactory</literal> if you use JTA "
@@ -1117,16 +971,17 @@
"your <literal>hibernate.current_session_context_class</literal> is either "
"unset (backwards compatibility), or is set to <literal>\"jta\"</literal>."
msgstr ""
-"En otras palabras, todo lo que tienes que hacer en un entorno manejado, es "
-"llamar a <literal>SessionFactory.getCurrentSession()</literal>, hacer tu "
-"trabajo de acceso a datos, y dejar el resto al contenedor. Los lÃmites de "
-"transacción se establecen declarativamente en los descriptores de despliegue "
-"de tu bean de sesión. El ciclo de vida de la sesión es manejado "
-"completamente por Hibernate."
+"Al configurar la fábrica de transacciones de Hibernate, escoja <literal>org."
+"hibernate.transaction.JTATransactionFactory</literal> si utiliza JTA "
+"directamente (BMT) y <literal>org.hibernate.transaction."
+"CMTTransactionFactory</literal> en una bean de sesión CMT. Recuerde "
+"establecer también <literal>hibernate.transaction.manager_lookup_class</"
+"literal>. Asegúrese de que su <literal>hibernate."
+"current_session_context_class</literal> no se encuentra configurado "
+"(compatibilidad retrasada) o configurada como <literal>\"jta\"</literal>."
#. Tag: para
-#: transactions.xml:546
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
"JTA environment. There is one caveat to the use of <literal>after_statement</"
@@ -1141,28 +996,27 @@
"using <literal>scroll()</literal> or <literal>iterate()</literal> from the "
"JTA or CMT code.)"
msgstr ""
-"Existe una advertencia al uso del modo de liberación de conexión "
-"<literal>after_statement</literal>. Debido a una limitación tonta de la "
-"especificación de JTA, no es posible para Hibernate limpiar automáticamente "
-"ningún <literal>ScrollableResults</literal> no cerrado ni instancias de "
-"<literal>Iterator</literal> devueltas por <literal>scroll()</literal> o "
-"<literal>iterate()</literal>. <emphasis>Debes</emphasis> liberar el cursor "
-"de base de datos subyacente llamando a <literal>ScrollableResults.close()</"
-"literal> o <literal>Hibernate.close(Iterator)</literal> explÃcitamente desde "
-"un bloque <literal>finally</literal>. (Por supuesto, la mayorÃa de las "
-"aplicaciones pueden evitarlo fácilmente no usando en absoluto ningún "
-"<literal>scroll()</literal> o <literal>iterate()</literal> desde el código "
-"CMT.)"
+"La operación <literal>getCurrentSession()</literal> tiene un inconveniente "
+"en un entorno JTA. Hay una desventaja en el uso del modo de liberación de la "
+"conección <literal>after_statement</literal>, la cual luego se utiliza por "
+"defecto. Debido a una limitación de la especificación JTA, no le es posible "
+"a Hibernate limpiar automáticamente cualquier instancia "
+"<literal>ScrollableResults</literal> o <literal>Iterator</literal> no "
+"cerradas y retornadas por <literal>scroll()</literal> o <literal>iterate()</"
+"literal>. <emphasis>Tiene</emphasis> que liberar el cursor de la base de "
+"datos subyacente llamando a <literal>ScrollableResults.close()</literal> o "
+"<literal>Hibernate.close(Iterator)</literal> explÃcitamente desde un bloque "
+"<literal>finally</literal>. La mayorÃa de las aplicaciones pueden evitar "
+"fácilmente el utilizar <literal>scroll()</literal> o <literal>iterate()</"
+"literal> del código JTA o CMT."
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "Manejo de excepciones"
#. Tag: para
-#: transactions.xml:564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
"<literal>SQLException</literal>, immediately rollback the database "
@@ -1173,19 +1027,18 @@
"Ensure that the <literal>Session</literal> will be closed by calling "
"<literal>close()</literal> in a <literal>finally</literal> block."
msgstr ""
-"Si la <literal>Session</literal> lanza una excepción (incluyendo cualquier "
-"<literal>SQLException</literal>), debes inmediatamente deshacer (rollback) "
-"la transacción de base de datos, llamar a <literal>Session.close()</literal> "
-"y descartar la instancia de <literal>Session</literal>. Ciertos métodos de "
-"<literal>Session</literal><emphasis>no</emphasis> dejarán la sesión en un "
+"Si la <literal>Session</literal> lanza una excepción, incluyendo cualquier "
+"<literal>SQLException</literal>, debe deshacer inmediatamente la transacción "
+"de la base de datos, llamar a <literal>Session.close()</literal> y descartar "
+"la instancia de <literal>Session</literal>. Ciertos métodos de "
+"<literal>Session</literal> <emphasis>no</emphasis> dejarán la sesión en un "
"estado consistente. Ninguna excepción lanzada por Hibernate puede ser "
-"tratada como recuperable. Asegúrate que la <literal>Session</literal> sea "
-"cerrada llamando a <literal>close()</literal> en un bloque <literal>finally</"
+"tratada como recuperable. Asegúrese de que la <literal>Session</literal> se "
+"cierre llamando a <literal>close()</literal> en un bloque <literal>finally</"
"literal>."
#. Tag: para
-#: transactions.xml:575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
"that can occur in a Hibernate persistence layer, is an unchecked exception. "
@@ -1198,22 +1051,21 @@
"unchecked exceptions that are not a <literal>HibernateException</literal>. "
"These are not recoverable and appropriate action should be taken."
msgstr ""
-"La <literal>HibernateException</literal>, que envuelve la mayorÃa de los "
-"errores que pueden ocurrir en la capa de persistencia de Hibernate, en una "
-"excepción no chequeada (no lo era en versiones anteriores de Hibernate). En "
+"La <literal>HibernateException</literal>, que envuelve a la mayorÃa de los "
+"errores que pueden ocurrir en la capa de persistencia de Hibernate, es una "
+"excepción no chequeada. No lo era en versiones anteriores de Hibernate. En "
"nuestra opinión, no debemos forzar al desarrollador de aplicaciones a "
"capturar una excepción irrecuperable en una capa baja. En la mayorÃa de los "
"sistemas, las excepciones no chequeadas y fatales son manejadas en uno de "
-"los primeros cuadros de la pila de llamadas a métodos (es decir, en las "
-"capas más altas) y se presenta un mensaje de error al usuario de la "
-"aplicación (o se toma alguna otra acción apropiada). Nota que Hibernate "
-"podrÃa también lanzar otras excepciones no chequeadas que no sean una "
-"<literal>HibernateException</literal>. Una vez más, no son recuperables y "
-"debe tomarse una acción apropiada."
+"los primeros cuadros de la pila de llamadas a métodos (por ejemplo, en las "
+"capas más altas) y presenta un mensaje de error al usuario de la aplicación "
+"o se toma alguna otra acción apropiada. Note que Hibernate podrÃa también "
+"lanzar otras excepciones no chequeadas que no sean una "
+"<literal>HibernateException</literal>. Estas no son recuperables y debe "
+"tomarse una acción apropiada."
#. Tag: para
-#: transactions.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
"with the database in a <literal>JDBCException</literal>. In fact, Hibernate "
@@ -1234,76 +1086,69 @@
"interactúa con la base de datos en una <literal>JDBCException</literal>. De "
"hecho, Hibernate intentará convertir la excepción en una subclase de "
"<literal>JDBCException</literal> más significativa. La "
-"<literal>SQLException</literal> está siempre disponible vÃa "
-"<literal>JDBCException.getCause()</literal>. Hibernate convierte la "
+"<literal>SQLException</literal> subyacente siempre está disponible por medio "
+"de <literal>JDBCException.getCause()</literal>. Hibernate convierte la "
"<literal>SQLException</literal> en una subclase de <literal>JDBCException</"
"literal> apropiada usando el <literal>SQLExceptionConverter</literal> "
"adjunto a la <literal>SessionFactory</literal>. Por defecto, el "
-"<literal>SQLExceptionConverter</literal> está definido para el dialecto "
-"configurado; sin embargo, es también posible enchufar una implementación "
-"personalizada (ver los javadocs de la clase "
-"<literal>SQLExceptionConverterFactory</literal> para los detalles). Los "
-"subtipos estándar de <literal>JDBCException</literal> son:"
+"<literal>SQLExceptionConverter</literal> está definido por el dialecto "
+"configurado. Sin embargo, también es posible enchufar una implementación "
+"personalizada . Consulte los javadocs de la clase "
+"<literal>SQLExceptionConverterFactory</literal> para obtener más detalles. "
+"Los subtipos estándar de <literal>JDBCException</literal> son: "
#. Tag: para
-#: transactions.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
"underlying JDBC communication."
msgstr ""
-"<literal>JDBCConnectionException</literal> - indica un error con la "
+"<literal>JDBCConnectionException</literal>: indica un error con la "
"comunicación JDBC subyacente."
#. Tag: para
-#: transactions.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
"problem with the issued SQL."
msgstr ""
-"<literal>SQLGrammarException</literal> - indica un problema de gramática o "
+"<literal>SQLGrammarException</literal>: indica un problema de gramática o "
"sintáxis con el SQL publicado."
#. Tag: para
-#: transactions.xml:615
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
"integrity constraint violation."
msgstr ""
-"<literal>ConstraintViolationException</literal> - indica alguna forma de "
+"<literal>ConstraintViolationException</literal>: indica alguna forma de "
"violación de restricción de integridad."
#. Tag: para
-#: transactions.xml:621
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
"lock level necessary to perform the requested operation."
msgstr ""
-"<literal>LockAcquisitionException</literal> - indica un error adquiriendo un "
+"<literal>LockAcquisitionException</literal>: indica un error adquiriendo un "
"nivel de bloqueo necesario para realizar una operación solicitada."
#. Tag: para
-#: transactions.xml:627
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
"fall into any of the other categories."
msgstr ""
-"<literal>GenericJDBCException</literal> - una excepción genérica que no cayó "
-"en ninguna de las otras categorÃas."
+"<literal>GenericJDBCException</literal>: una excepción genérica que no "
+"encajó en ninguna de las otras categorÃas."
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
-msgstr "Transaction timeout"
+msgstr "Tiempo de espera de la transacción"
#. Tag: para
-#: transactions.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
"never provided for non-managed code, is transaction timeout. Transaction "
@@ -1316,61 +1161,36 @@
"transaction timeout to JTA. This functionality is abstracted by the "
"Hibernate <literal>Transaction</literal> object."
msgstr ""
-"One extremely important feature provided by a managed environment like EJB "
-"that is never provided for non-managed code is transaction timeout. "
-"Transaction timeouts ensure that no misbehaving transaction can indefinitely "
-"tie up resources while returning no response to the user. Outside a managed "
-"(JTA) environment, Hibernate cannot fully provide this functionality. "
-"However, Hibernate can at least control data access operations, ensuring "
-"that database level deadlocks and queries with huge result sets are limited "
-"by a defined timeout. In a managed environment, Hibernate can delegate "
-"transaction timeout to JTA. This functioanlity is abstracted by the "
-"Hibernate <literal>Transaction</literal> object."
+"Una caracterÃstica importante proporcionada por un entorno administrado como "
+"EJB que nunca es proporcionado para un código no-administrado, es el tiempo "
+"de espera de la transacción. Estos tiempos de espera se aseguran de que "
+"ninguna transacción que se comporte inapropiadamente pueda vincular recursos "
+"mientras no devuelva una respuesta al usuario. Fuera de un entorno "
+"administrado (JTA), Hibernate no puede proporcionar completamente esta "
+"funcionalidad. Sin embargo, Hibernate puede por lo menos controlar las "
+"operaciones de acceso de datos, asegurándose de que los bloqueos a nivel de "
+"base de datos y las consultas con grandes grupos de resultados se encuentran "
+"limitados por un tiempo de espera definido. En un entorno administrado, "
+"Hibernate puede delegar el tiempo de espera de la transacción a JTA. Esta "
+"funcionalidad es abstraÃda por el objeto <literal>Transaction</literal> de "
+"Hibernate."
-#. Tag: programlisting
-#: transactions.xml:652
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:654
-#, fuzzy, no-c-format
-msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
"transaction timeouts must be defined declaratively."
msgstr ""
-"Note that <literal>setTimeout()</literal> may not be called in a CMT bean, "
-"where transaction timeouts must be defined declaratively."
+"<literal>setTimeout()</literal> no se puede llamar en un bean CMT, en donde "
+"se deben definir declarativamente los tiempos de espera de las transacciones."
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
-msgstr "Control optimista de concurrencia"
+msgstr "Control de concurrencia optimista"
#. Tag: para
-#: transactions.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
"scalability, is optimistic concurrency control with versioning. Version "
@@ -1380,25 +1200,23 @@
"discuss are in the context of long conversations, but version checking also "
"has the benefit of preventing lost updates in single database transactions."
msgstr ""
-"El único enfoque que es consistente con alta concurrencia y alta "
-"escalabilidad es el control optimista de concurrencia con versionamiento. El "
-"chuequeo de versión usa números de versión, o timestamps, para detectar "
-"actualizaciones en conflicto (y para prevenir actualizaciones perdidas). "
-"Hibernate provee para tres enfoques posibles de escribir código de "
-"aplicación que use concurrencia optimista. Los casos de uso que hemos "
-"mostrado están en el contexto de transacciones de aplicación largas pero el "
-"chequeo de versiones tiene además el beneficio de prevenir actualizaciones "
-"perdidas en transacciones de base de datos solas."
+"El único enfoque consistente con una alta concurrencia y una alta "
+"escalabilidad es el control de concurrencia optimista con versionamiento. El "
+"chequeo de versión utiliza números de versión, o sellos de fecha "
+"(timestamps), para detectar actualizaciones en conflicto y para prevenir la "
+"pérdida de actualizaciones. Hibernate proporciona tres enfoques posibles de "
+"escribir código de aplicación que utilice concurrencia optimista. Los casos "
+"de uso que mostramos se encuentran en el contexto de conversaciones largas, "
+"pero el chequeo de versiones tiene además el beneficio de prevenir la "
+"pérdida de actualizaciones en transacciones individuales de la base de datos."
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
-msgstr "Chequeo de versiones de aplicación"
+msgstr "Chequeo de versiones de la aplicación"
#. Tag: para
-#: transactions.xml:679
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
"the database occurs in a new <literal>Session</literal> and the developer is "
@@ -1408,47 +1226,28 @@
"least efficient in terms of database access. It is the approach most similar "
"to entity EJBs."
msgstr ""
-"En una implementación sin mucha ayuda de Hibernate, cada interacción con la "
-"base de datos ocurre en una nueva <literal>Session</literal> y el "
-"desarrollador es responsable de recargar todas las intancias persistentes "
-"desde la base de datos antes de manipularlas. Este enfoque fuerza a la "
-"aplicación a realizar su propio chequeo de versiones para asegurar el "
-"aislamiento de transacciones de base de datos. Es el enfoque más similar a "
-"los EJBs de entidad."
+"En una implementación que no tiene mucha ayuda de Hibernate, cada "
+"interacción con la base de datos ocurre en una nueva <literal>Session</"
+"literal> y el desarrollador es el responsable de recargar todas las "
+"intancias persistentes desde la base de datos antes de manipularlas. Este "
+"enfoque fuerza a la aplicación a realizar su propio chequeo de versiones "
+"para asegurar el aislamiento de transacciones de conversaciones. Este "
+"enfoque es el menos eficiente en términos de acceso a la base de datos. Es "
+"el enfoque más similar a los EJBs de entidad."
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
"version></literal>, and Hibernate will automatically increment it during "
"flush if the entity is dirty."
msgstr ""
-"La propiedad <literal>version</literal> se mapea usando <literal><"
+"La propiedad <literal>version</literal> se mapea utilizando <literal><"
"version></literal>, e Hibernate la incrementará automáticamente durante "
-"la limpieza si la entidad está sucia."
+"la limpieza si la entidad está desactualizada."
#. Tag: para
-#: transactions.xml:696
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
"require version checking, you can use this approach and skip the version "
@@ -1457,18 +1256,16 @@
"of the application, as they might experience lost updates without error "
"messages or a chance to merge conflicting changes."
msgstr ""
-"Por supuesto, si estás operando un entorno de baja-concurrencia-de-datos y "
-"no requieres chequeo de versiones, puedes usar este enfoque y simplemente "
-"saltar el chequeo de versiones. En ese caso, <emphasis>el último compromiso "
-"(commit) gana</emphasis> será la estrategia por defecto para tus "
-"transacciones de aplicación largas. Ten en mente que esto podrÃa confundir a "
-"los usuarios de la aplicación, pues podrÃan experimentar actualizaciones "
-"perdidas sin mensajes de error ni chance de fusionar los cambios "
-"conflictivos."
+"Si está operando un entorno de baja-concurrencia-de-datos y no requiere "
+"chequeo de versiones, puede usar este enfoque y simplemente saltarse el "
+"chequeo de versiones. En ese caso, <emphasis>el último que guarda gana</"
+"emphasis> y será la estrategia por defecto para conversaciones largas. Tenga "
+"en mente que esto podrÃa confundir a los usuarios de la aplicación, pues "
+"podrÃan experimentar pérdidas de actualizaciones sin mensajes de error ni "
+"oportunidad de fusionar los cambios conflictivos."
#. Tag: para
-#: transactions.xml:705
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
"practical for most applications. Often not only single instances, but "
@@ -1476,22 +1273,20 @@
"automatic version checking with either an extended <literal>Session</"
"literal> or detached instances as the design paradigm."
msgstr ""
-"Claramente, el chequeo manual de versiones es factible solamente en "
-"circunstancias muy triviales, y no es práctico para la mayorÃa de "
-"aplicaciones. Frecuentemente, no sólo intancias solas, sino grafos completos "
-"de objetos modificados tienen que ser chequeados. Hibernate ofrece chequeo "
+"El chequeo manual de versiones es factible sólamente en circunstancias muy "
+"triviales y no es práctico para la mayorÃa de las aplicaciones. Con "
+"frecuencia se tienen que chequear no sólamente las intancias sólas, sino "
+"también grafos completos de objetos modificados. Hibernate ofrece el chequeo "
"de versiones automático con el paradigma de diseño de <literal>Session</"
"literal> larga o de instancias separadas."
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
-msgstr "Sesión larga y versionado automático"
+msgstr "Sesión extendida y versionado automático"
#. Tag: para
-#: transactions.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
"that are used for the whole conversation are known as <emphasis>session-per-"
@@ -1501,17 +1296,17 @@
"opportunity for the user to merge changes or to restart the business "
"conversation with non-stale data."
msgstr ""
-"Una sola instancia de <literal>Session</literal> y sus instancias "
-"persistentes son usadas para toda la transacción de aplicación. Hibernate "
-"chequea las versiones de instancia en el momento de limpieza (flush), "
-"lanzando una excepción si se detecta una modificación concurrente. Concierne "
-"al desarrollador capturar y manejar esta excepción (las opciones comunes son "
-"la oportunidad del usuario de fusionar los cambios, o recomenzar el proceso "
-"de negocio sin datos añejos)."
+"Una sóla instancia de <literal>Session</literal> y sus instancias "
+"persistentes se utilizan para toda la convervsación conocida como "
+"<emphasis>sesión-por-conversación</emphasis>. Hibernate chequea las "
+"versiones de instancia en el momento de vaciado, lanzando una excepción si "
+"se detecta una modificación concurrente. Le concierne al desarrollador "
+"capturar y manejar esta excepción. Las opciones comunes son la oportunidad "
+"del usuario de fusionar los cambios, o de recomenzar el proceso empresarial "
+"sin datos desactualizados."
#. Tag: para
-#: transactions.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
"connection when waiting for user interaction. This approach is the most "
@@ -1520,31 +1315,15 @@
"in every database transaction."
msgstr ""
"La <literal>Session</literal> se desconecta de cualquier conexión JDBC "
-"subyacente al esperar por una interacción del usuario. Este enfoque es el "
-"más eficiente en términos de acceso a base de datos. La aplicación no "
-"necesita tratar por sà misma con el chequeo de versiones, ni re-uniendo "
-"instancias separadas, ni tiene que recargar instancias en cadatransactions-"
-"demarcation-timeout transacción de base de datos."
+"subyacente a la espera de una interacción del usuario. Este enfoque es el "
+"más eficiente en términos de acceso a la base de datos. La aplicación no "
+"necesita por sà misma tratar con el chequeo de versiones, ni re-unir "
+"instancias separadas, ni tiene que recargar instancias en cada transacción "
+"de la base de datos."
-#. Tag: programlisting
-#: transactions.xml:735
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:736
-#, fuzzy, no-c-format
-msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
"was loaded in. Beginning a new database transaction on an old session "
"obtains a new connection and resumes the session. Committing a database "
@@ -1560,20 +1339,25 @@
"will include the <literal>flush()</literal> operation, and then "
"<literal>close()</literal> the session to end the conversation."
msgstr ""
-"El objeto <literal>foo</literal> todavÃa conoce en qué <literal>Session</"
-"literal> fue cargado. <literal>Session.reconnect()</literal> obtiene una "
-"nueva conexión (o puedes proveer una) y reasume la sesión. El método "
-"<literal>Session.disconnect()</literal> desconectará la sesión de la "
-"conexión JDBC y la devolverá la conexión al pool (a menos que hayas provisto "
-"la conexión). Después de la reconexión, para forzar un chequeo de versión en "
-"datos que no estés actualizando, puedes llamar a <literal>Session.lock()</"
-"literal> con <literal>LockMode.READ</literal> sobre cualquier objeto que "
-"pudiese haber sido actualizado por otra transacción. No necesitas bloquear "
-"ningún dato que <emphasis>sà estés</emphasis> actualizando."
+"El objeto <literal>foo</literal> sabe en qué <literal>Session</literal> fue "
+"cargado. El dar inicio a una nueva base de datos en una sesión vieja obtiene "
+"una nueva conexión y reanuda la sesión. El guardar una transacción de la "
+"base de datos desconecta una sesión de la conexion JDBC y devuelve la "
+"conexión al pool. Después de la reconexión, para poder forzar una "
+"verificación de versión sobre datos que usted no está actalizando, puede "
+"llamar a <literal>Session.lock()</literal> con <literal>LockMode.READ</"
+"literal> en cualquier objeto que pueda haber sido actualizado por otra "
+"transacción. No necesita bloquear ningún dato que <emphasis>sà esté</"
+"emphasis> actualizando. Usualmente configurarÃa <literal>FlushMode.MANUAL</"
+"literal> en una <literal>Session</literal> extendida, de manera que de hecho "
+"sólamente se permite persistir el último ciclo de transacción de la base de "
+"datos de todas las modificaciones realizadas en esta conversación. Sólamente "
+"esta última transacción de la base de datos incluirÃa la operación "
+"<literal>flush()</literal> y luego cierra -<literal>close()</literal>- la "
+"sesión para dar fin a la conversación."
#. Tag: para
-#: transactions.xml:751
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
"be stored during user think time (for example, an <literal>HttpSession</"
@@ -1583,36 +1367,35 @@
"<literal>Session</literal> only for a single conversation as it will soon "
"have stale data."
msgstr ""
-"Si las llamadas explÃcitas a <literal>disconnect()</literal> y "
-"<literal>reconnect()</literal> son muy onerosas, puedes usar en cambio "
-"<literal>hibernate.connection.release_mode</literal>."
+"Este patrón es problemático si la <literal>Session</literal> es demasiado "
+"grande para almacenarla durante el tiempo para pensar del usuario, por "
+"ejemplo, una <literal>HttpSession</literal> se debe mantener tan pequeña "
+"como sea posible. Como la <literal>Session</literal> también lo es el caché "
+"de primer nivel (obligatorio) y comprende todos los objetos cargados, "
+"probablemente podemos utilizar esta estrategia sólamente para unos pocos "
+"ciclos de pedido/respuesta. Debe utilizar una <literal>Session</literal> "
+"sólamente para una conversación única ya que pronto también tendrá datos "
+"añejos."
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: transactions.xml:763
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
"reconnection of a <literal>Session</literal>. These methods are deprecated, "
"as beginning and ending a transaction has the same effect."
msgstr ""
-"Este patrón es problemático si la <literal>Session</literal> es demasiado "
-"grande para ser almacenada durante el tiempo de pensar del usuario, por "
-"ejemplo, una <literal>HttpSession</literal> debe mantenerse tan pequeña como "
-"sea posible. Ya que la <literal>Session</literal> es también el caché "
-"(obligatorio) de primer nivel y contiene todos los objetos cargados, podemos "
-"probablemente cargar esta estrategia sólo para unos pocos ciclos petición/"
-"respuesta. Esto está de hecho recomendado, ya que la <literal>Session</"
-"literal> tendrá pronto también datos añejos."
+"Las versiones anteriores de Hibernate necesitaban desconexión explÃcita y "
+"reconexión de una <literal>Session</literal>. Estos métodos ya no se "
+"aprueban ya que tienen el mismo efecto que dar inicio o finalizar a una "
+"transacción."
#. Tag: para
-#: transactions.xml:769
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
"layer. Use an EJB stateful session bean to hold the <literal>Session</"
@@ -1620,15 +1403,14 @@
"or even serialize it to a separate tier, to store it in the "
"<literal>HttpSession</literal>."
msgstr ""
-"Nota también que debes mantener la <literal>Session</literal> desconectada "
-"próxima a la capa de persistencia. En otras palabras, usa una sesión de EJB "
-"con estado para tener la <literal>Session</literal> y no transferirla a la "
-"capa web para almacenarla en la <literal>HttpSession</literal> (ni incluso "
-"serializarla a una capa separada)."
+"Mantenga la <literal>Session</literal> desconectada cerca a la capa de "
+"persistencia. Use un bean de sesión EJB con estado para mantener la "
+"<literal>Session</literal> en un entorno de tres capas . No la transfiera a "
+"la capa web ni la serialice en una capa separada para almacenarla en la "
+"<literal>HttpSession</literal>."
#. Tag: para
-#: transactions.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
"emphasis>, is more difficult to implement with automatic current session "
@@ -1636,20 +1418,18 @@
"<literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki "
"for examples."
msgstr ""
-"UNTRANSLATED!!! The extended session pattern, or <emphasis>session-per-"
-"conversation</emphasis>, is more difficult to implement with automatic "
-"current session context management. You need to supply your own "
-"implementation of the <literal>CurrentSessionContext</literal> for this, see "
-"the Hibernate Wiki for examples."
+"El patrón de sesión extendido, o <emphasis>sesión-por-conversación</"
+"emphasis>, es más dificil de implementar con la administración de contexto "
+"de sesión actual. Necesita proporcionar su propia implementación de la "
+"<literal>CurrentSessionContext</literal> para esto, vea el Wiki de Hibernate "
+"para obtener más ejemplos."
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr "Objetos separados y versionado automático"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1660,75 +1440,58 @@
"<literal>Session.saveOrUpdate()</literal>, or <literal>Session.merge()</"
"literal>."
msgstr ""
-"Cada interacción con el almacén persistente ocurre en una nueva "
+"Cada interacción con el almacenamiento persistente ocurre en una nueva "
"<literal>Session</literal>. Sin embargo, las mismas instancias persistentes "
-"son reusadas para cada interacción con la base de datos. La aplicación "
-"manipula el estado de las instancias separadas originalmente cargadas en "
+"son reutilizadas para cada interacción con la base de datos. La aplicación "
+"manipula el estado de las instancias separadas cargadas originalmente en "
"otra <literal>Session</literal> y luego las readjunta usando "
"<literal>Session.update()</literal>, <literal>Session.saveOrUpdate()</"
"literal>, o <literal>Session.merge()</literal>."
-#. Tag: programlisting
-#: transactions.xml:797
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:799
-#, fuzzy, no-c-format
-msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
"exception if conflicting updates occurred."
msgstr ""
-"De nuevo, Hibernate chequeará las versiones de instancia durante la limpieza "
-"(flush), lanzando una excepción si ocurrieron actualizaciones en conflicto."
+"De nuevo, Hibernate chequeará las versiones de la instancia durante el "
+"vaciado, lanzando una excepción si tuvieron lugar conflictos en las "
+"actualizaciones."
#. Tag: para
-#: transactions.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
"literal>, and use <literal>LockMode.READ</literal> (performing a version "
"check and bypassing all caches) if you are sure that the object has not been "
"modified."
msgstr ""
-"Puedes también llamar a <literal>lock()</literal> en vez de <literal>update()"
-"</literal> y usar <literal>LockMode.READ</literal> (realizando un chequeo de "
-"versión, puenteando todos los cachés) si estás seguro que el objeto no ha "
-"sido modificado."
+"También puede llamar a <literal>lock()</literal> en lugar de <literal>update"
+"()</literal> y utilizar <literal>LockMode.READ</literal> (realizando un "
+"chequeo de versión, evitando todos los cachés) si está seguro de que el "
+"objeto no ha sido modificado."
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
-msgstr "Personalizando el versionado automático"
+msgstr "Personalización del versionado automático"
#. Tag: para
-#: transactions.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
"properties and collections by setting the <literal>optimistic-lock</literal> "
"mapping attribute to <literal>false</literal>. Hibernate will then no longer "
"increment versions if the property is dirty."
msgstr ""
-"Puedes deshabilitar el incremento de versión automático de Hibernate para "
-"propiedades en particular y colecciones estableciendo el atributo de mapeo "
-"<literal>optimistic-lock</literal> a <literal>false</literal>. Hibernate "
-"entonces no incrementará ya más las versiones si la propiedad está sucia."
+"Puede deshabilitar el incremento de la versión automática de Hibernate para "
+"ciertas propiedades y colecciones en particular estableciendo el atributo de "
+"mapeo <literal>optimistic-lock</literal> como <literal>false</literal>. "
+"Hibernate entonces ya no incrementará más las versiones si la propiedad se "
+"encuentra desactualizada."
#. Tag: para
-#: transactions.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
"applications might access the same database and will not know how to handle "
@@ -1741,36 +1504,34 @@
"long <literal>Session</literal> and not session-per-request-with-detached-"
"objects)."
msgstr ""
-"Los esquemas de base de datos heredados son frecuentemente estáticos y no "
-"pueden ser modificados. U otras aplicaciones podrÃan también acceder la "
-"misma base de datos y no saber cómo manejar los números de versión ni "
-"incluso timestamps. En ambos casos, el versionado no puede confiarse a una "
+"Los esquemas heredados de la base de datos con frecuencia son estáticos y no "
+"pueden ser modificados. Inclusive otras aplicaciones podrÃan también acceder "
+"la misma base de datos y no saber cómo manejar los números de versión ni los "
+"sellos de fecha. En ambos casos, el versionado no puede confiarse a una "
"columna en particular en una tabla. Para forzar un chequeo de versiones sin "
-"un mapeo de propiedad de versión o timestamp, con una comparación del estado "
-"de todos los campos en una fila, activa <literal>optimistic-lock=\"all\"</"
-"literal> en el mapeo de <literal><class></literal>. Nota que esto "
-"conceptualmente funciona solamente si Hibernate puede comparar el estado "
-"viejo y nuevo, es decir, si usas una sola <literal>Session</literal> larga y "
-"no sesión-por-petición-con-instancias-separadas."
+"un mapeo de propiedad de versión o sello de fecha, con una comparación del "
+"estado de todos los campos en una fila, active <literal>optimistic-lock=\"all"
+"\"</literal> en el mapeo de <literal><class></literal>. Esto funciona "
+"conceptualmente sólamente si Hibernate puede comparar el estado viejo y el "
+"nuevo, es decir, si usa una sóla <literal>Session</literal> larga y no "
+"sesión-por-petición-con-instancias-separadas."
#. Tag: para
-#: transactions.xml:834
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
"have been made do not overlap. If you set <literal>optimistic-lock=\"dirty"
"\"</literal> when mapping the <literal><class></literal>, Hibernate "
"will only compare dirty fields during flush."
msgstr ""
-"A veces las modificaciones concurrentes pueden permitirse, en cuanto los "
-"cambios que hayan sido hechos no se traslapen. Si estableces "
+"Las modificaciones simultáneas pueden permitirse en instancias en tanto los "
+"cambios que se hayan realizado no se superpongan. Si establece "
"<literal>optimistic-lock=\"dirty\"</literal> al mapear la <literal><"
-"class></literal>, Hibernate sólo comparará los campos sucios durante la "
-"limpieza."
+"class></literal>, Hibernate sólo comparará los campos desactualizados "
+"durante el vaciado."
#. Tag: para
-#: transactions.xml:840
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
"field comparison, Hibernate uses a single <literal>UPDATE</literal> "
@@ -1785,29 +1546,28 @@
"to <literal>SELECT</literal> the instance to ensure that changes did occur "
"before updating the row."
msgstr ""
-"En ambos casos, con columnas de versión/timestamp dedicadas o con "
-"comparación de campos completa/sucios, Hibernate usa una sola sentencia "
-"<literal>UPDATE</literal> (con una cláusula <literal>WHERE</literal> "
-"apropiada) por entidad para ejecutar el chequeo de versiones y actualizar la "
-"información. Si usas persistencia transitiva para la re-unión en cascada de "
-"entidades asociadas, Hibernate podrÃa ejecutar actualizaciones innecesarias. "
-"Esto usualmente no es un problema, pero podrÃan ejecutarse disparadores "
-"(triggers) <emphasis>on update</emphasis> en la base de datos incluso cuando "
-"no se haya hecho ningún cambio a las instancias separadas. Puedes "
-"personalizar este comportamiento estableciendo <literal>select-before-update="
-"\"true\"</literal> en el mapeo de <literal><class></literal>, forzando "
-"a Hibernate a <literal>SELECT</literal> la instancia para asegurar que las "
-"actualizaciones realmente ocurran, antes de actualizar la fila."
+"En ambos casos, con columnas de versión/sello de fecha dedicadas o con "
+"comparación de campos completos/desactualizados, Hibernate utiliza una sóla "
+"declaración <literal>UPDATE</literal> (con una cláusula <literal>WHERE</"
+"literal> apropiada) por entidad para ejecutar el chequeo de versiones y "
+"actualizar la información. Si utiliza una persistencia transitiva para la re-"
+"unión en cascada de entidades asociadas, Hibernate podrÃa ejecutar "
+"actualizaciones innecesarias. Esto usualmente no es problema, pero podrÃan "
+"ejecutarse disparadores (triggers) <emphasis>enactualizazción</emphasis> en "
+"la base de datos incluso cuando no se haya hecho ningún cambio a las "
+"instancias separadas. Puede personalizar este comportamiento estableciendo "
+"<literal>select-before-update=\"true\"</literal> en el mapeo de <literal><"
+"class></literal>, forzando a Hibernate a <literal>SELECT</literal> la "
+"instancia para asegurar que las actualizaciones realmente ocurran, antes de "
+"actualizar la fila."
#. Tag: title
-#: transactions.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pessimistic locking"
-msgstr "Bloqueo pesimista"
+msgstr "Bloqueo pesimista "
#. Tag: para
-#: transactions.xml:860
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
"strategies. It is usually enough to specify an isolation level for the JDBC "
@@ -1815,36 +1575,33 @@
"advanced users may wish to obtain exclusive pessimistic locks or re-obtain "
"locks at the start of a new transaction."
msgstr ""
-"No se pretende que los usuarios gasten mucho tiempo preocupándose de las "
+"No se pretende que los usuarios tomen mucho tiempo preocupándose de las "
"estrategias de bloqueo. Usualmente es suficiente con especificar un nivel de "
"aislamiento para las conexiones JDBC y entonces simplemente dejar que la "
-"base de datos haga todo el trabajo. Sin embargo, los usuarios avanzados "
-"pueden a veces obtener bloqueos exclusivos pesimistas, o reobtener bloqueos "
-"al comienzo de una nueva transacción."
+"base de datos haga todo el trabajo. Sin embargo, los usuarios avanzados a "
+"veces pueden obtener bloqueos exclusivos pesimistas, o reobtener bloqueos al "
+"comienzo de una nueva transacción."
#. Tag: para
-#: transactions.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
"lock objects in memory."
msgstr ""
-"¡Hibernate siempre usará el mecanismo de bloqueo de la base de datos, nunca "
-"bloqueo de objetos en memoria!"
+"Hibernate siempre usará el mecanismo de bloqueo de la base de datos, nunca "
+"el bloqueo de objetos en memoria."
#. Tag: para
-#: transactions.xml:872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
"can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
"La clase <literal>LockMode</literal> define los diferentes niveles de "
-"bloqueo que pueden ser adquiridos por Hibernate. Un bloqueo se obtiene por "
-"los siguientes mecanismos:"
+"bloqueo que Hibernate puede adquirir. Un bloqueo se obtiene por medio de los "
+"siguientes mecanismos: "
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
@@ -1854,43 +1611,39 @@
"Hibernate actualiza o inserta una fila."
#. Tag: para
-#: transactions.xml:885
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
"request using <literal>SELECT ... FOR UPDATE</literal> on databases which "
"support that syntax."
msgstr ""
-"<literal>LockMode.UPGRADE</literal> puede ser adquirido bajo petición "
+"<literal>LockMode.UPGRADE</literal> se puede ser adquirir bajo petición "
"explÃcita del usuario usando <literal>SELECT ... FOR UPDATE</literal> en "
-"base de datos que soporten esa sintáxis."
+"bases de datos que soporten esa sintáxis."
#. Tag: para
-#: transactions.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
"user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under "
"Oracle."
msgstr ""
-"<literal>LockMode.UPGRADE_NOWAIT</literal> puede ser adquirido bajo petición "
+"<literal>LockMode.UPGRADE_NOWAIT</literal> se puede adquirir bajo petición "
"explÃcita del usuario usando un <literal>SELECT ... FOR UPDATE NOWAIT</"
"literal> bajo Oracle."
#. Tag: para
-#: transactions.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
"reads data under Repeatable Read or Serializable isolation level. It can be "
"re-acquired by explicit user request."
msgstr ""
-"<literal>LockMode.READ</literal> es adquirido automáticamente cuando "
-"Hibernate lee datos bajo los niveles de aislamiento Repeatable Read o "
-"Serializable. Puede ser readquirido por pedido explÃcito del usuario."
+"<literal>LockMode.READ</literal> se adquiere automáticamente cuando "
+"Hibernate lee los datos bajo los niveles de aislamiento de lectura repetible "
+"o serializable. Se puede readquirir por pedido explÃcito del usuario."
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1901,12 +1654,11 @@
msgstr ""
"<literal>LockMode.NONE</literal> representa la ausencia de un bloqueo. Todos "
"los objetos se pasan a este modo de bloqueo al final de una "
-"<literal>Transaction</literal>. Los objetos asociados con una sesión vÃa una "
-"llamada a <literal>update()</literal> o <literal>saveOrUpdate()</literal> "
-"también comienzan en este modo de bloqueo."
+"<literal>Transaction</literal>. Los objetos asociados con una sesión por "
+"medio de una llamada a <literal>update()</literal> o <literal>saveOrUpdate()"
+"</literal> también comienzan en este modo de bloqueo."
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
@@ -1915,7 +1667,6 @@
"formas:"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
@@ -1925,19 +1676,16 @@
"<literal>LockMode</literal>."
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
msgstr "Una llamada a <literal>Session.lock()</literal>."
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
msgstr "Una llamada a <literal>Query.setLockMode()</literal>."
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1950,14 +1698,13 @@
msgstr ""
"Si se llama a <literal>Session.load()</literal> con <literal>UPGRADE</"
"literal> o <literal>UPGRADE_NOWAIT</literal>, y el objeto pedido no ha sido "
-"aún cargado por la sesión, el objeto es cargado usando <literal>SELECT ... "
-"FOR UPDATE</literal>. Si se llama a <literal>load()</literal> para un objeto "
-"que ya esté cargado con un bloqueo menos restrictivo que el pedido, "
-"Hibernate llama a <literal>lock()</literal> para ese objeto."
+"cargado todavÃa por la sesión, el objeto es cargado usando "
+"<literal>SELECT ... FOR UPDATE</literal>. Si se llama a <literal>load()</"
+"literal> para un objeto que ya esté cargado con un bloqueo menos restrictivo "
+"que el pedido, Hibernate llama a <literal>lock()</literal> para ese objeto."
#. Tag: para
-#: transactions.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
"specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> "
@@ -1967,30 +1714,27 @@
msgstr ""
"<literal>Session.lock()</literal> realiza un chequeo de número de versión si "
"el modo de bloqueo especificado es <literal>READ</literal>, "
-"<literal>UPGRADE</literal> o <literal>UPGRADE_NOWAIT</literal>. (En el caso "
+"<literal>UPGRADE</literal> o <literal>UPGRADE_NOWAIT</literal>. En el caso "
"de <literal>UPGRADE</literal> o <literal>UPGRADE_NOWAIT</literal>, se usa "
-"<literal>SELECT ... FOR UPDATE</literal>.)"
+"<literal>SELECT ... FOR UPDATE</literal>."
#. Tag: para
-#: transactions.xml:951
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
"an appropriate alternate mode instead of throwing an exception. This ensures "
"that applications are portable."
msgstr ""
-"Si la base de datos no soporta el modo de bloqueo solicitado, Hibernate "
-"usará un modo alternativo apropiado (en vez de lanzar una excepción). Esto "
-"asegura que las aplicaciones serán portables."
+"Si la base de datos no soporta el modo de bloqueo solicitado, Hibernate usa "
+"un modo opcional apropiado en lugar de lanzar una excepción. Esto asegura "
+"que las aplicaciones serán portátiles."
#. Tag: title
-#: transactions.xml:960
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Connection release modes"
-msgstr "translator-credits"
+msgstr "Modos de liberación de la conexión"
#. Tag: para
-#: transactions.xml:962
#, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
@@ -2004,26 +1748,39 @@
"by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</"
"literal>:"
msgstr ""
+"La herencia (2x) de Hibernate en relación con la administración de la "
+"conexion JDBC fue que una <literal>Session</literal> obtendrÃa una conexión "
+"cuando se necesitara por primera vez y luego la mantendrÃa hasta que se "
+"cerrara la sesión. Hibernate 3.x introdujo la noción de modos de liberación "
+"de conexión para decirle a la sesión como manejar sus conexiones JDBC. La "
+"siguiente discusión sólamente es pertinente para las conexiones provistas "
+"por medio de un <literal>ConnectionProvider</literal> configurado. Las "
+"conexiones provistas por el usuario no se discuten aquÃ. Los diferentes "
+"modos de liberación se identifican por los valores numerados de <literal>org."
+"hibernate.ConnectionReleaseMode</literal>:"
#. Tag: para
-#: transactions.xml:976
#, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
"Hibernate session obtains a connection when it first needs to perform some "
"JDBC access and maintains that connection until the session is closed."
msgstr ""
+"<literal>ON_CLOSE</literal>: es el comportamiento heredado descrito "
+"anteriormente. La sesión de Hibernate obtiene una conexión cuando necesita "
+"acceder a JDBC la primera vez y mantiene esa conexión hasta que se cierra la "
+"sesión."
#. Tag: para
-#: transactions.xml:983
#, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
"<literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
+"<literal>AFTER_TRANSACTION</literal>: libera las conecciones después de que "
+"se ha completado una <literal>org.hibernate.Transaction</literal>."
#. Tag: para
-#: transactions.xml:989
#, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
@@ -2032,18 +1789,25 @@
"the given session. Currently the only situation where this occurs is through "
"the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
+"<literal>AFTER_STATEMENT</literal> (también se conoce como una liberación "
+"agresiva): libera conexiones después de cada ejecución de una declaración. "
+"Se salta esta liberación agresiva si la declaración deja abiertos recursos "
+"asociados con la sesión dada. Actualmente la única situación donde ocurre "
+"esto es por medio del uso de <literal>org.hibernate.ScrollableResults</"
+"literal>."
#. Tag: para
-#: transactions.xml:999
#, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
"literal> is used to specify which release mode to use. The possible values "
"are as follows:"
msgstr ""
+"El parámetro de configuración <literal>hibernate.connection.release_mode</"
+"literal> se utiliza para especificar el modo de liberación a utilizar. Los "
+"valores posibles son los siguientes:"
#. Tag: para
-#: transactions.xml:1006
#, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
@@ -2054,17 +1818,26 @@
"default behavior as failures due to the value of this setting tend to "
"indicate bugs and/or invalid assumptions in user code."
msgstr ""
+"<literal>auto</literal> (predeterminado): esta opción delega al modo de "
+"liberación devuelto por el método <literal>org.hibernate.transaction."
+"TransactionFactory.getDefaultReleaseMode()</literal>. Para "
+"JTATransactionFactory, esto devuelve ConnectionReleaseMode.AFTER_STATEMENT; "
+"para JDBCTransactionFactory, esto devuelve ConnectionReleaseMode."
+"AFTER_TRANSACTION. No cambie este comportamiento predeterminado ya que las "
+"fallas debido a este valor de esta configuración tienden a indicar errores y/"
+"o suposiciones en el código del usuario."
#. Tag: para
-#: transactions.xml:1016
#, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
"setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
+"<literal>on_close</literal>: usa ConnectionReleaseMode.ON_CLOSE. Esta "
+"configuración se deja para la compatibilidad con versiones anteriores, pero "
+"no se recomienda para nada su utilización."
#. Tag: para
-#: transactions.xml:1022
#, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
@@ -2073,9 +1846,13 @@
"considered to be in auto-commit mode, connections will be released as if the "
"release mode were AFTER_STATEMENT."
msgstr ""
+"<literal>after_transaction</literal>: utiliza ConnectionReleaseMode."
+"AFTER_TRANSACTION. Esta configuración no se debe utilizar en entornos JTA. "
+"También note que con ConnectionReleaseMode.AFTER_TRANSACTION, si se "
+"considera que una sesión se encuentra en modo auto-commit, las conexiones "
+"serán liberada como si el modo de liberación fuese AFTER_STATEMENT."
#. Tag: para
-#: transactions.xml:1030
#, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
@@ -2088,3 +1865,12 @@
"getConnection()</literal> or in auto-commit environments where it does not "
"matter if we re-establish the same connection."
msgstr ""
+"<literal>after_statement</literal>: usa ConnectionReleaseMode."
+"AFTER_STATEMENT. Además se consulta la <literal>ConnectionProvider</literal> "
+"configurada para ver si soporta esta caracterÃstica "
+"<literal>supportsAggressiveRelease()</literal>. Si no, el modo de liberación "
+"se vuelve a establecer como ConnectionReleaseMode.AFTER_TRANSACTION. Esta "
+"configuración sólamente es segura en entornos en donde podemos re-adquirir "
+"la misma conexión JDBC subyacente cada vez que llamamos a "
+"<literal>ConnectionProvider.getConnection()</literal> o en entornos auto-"
+"commit, en donde no importa si recibimos la misma conexión."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,20 +1,34 @@
-#, fuzzy
+# translation of tutorial.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: tutorial\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-23 18:41+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-07 10:05+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
-msgstr ""
+msgstr "Tutorial"
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -23,43 +37,49 @@
"Gloegl. All code is contained in the <filename>tutorials/web</filename> "
"directory of the project source."
msgstr ""
+"Dirigido a los nuevos usuarios, este capÃtulo brinda una introducción a "
+"Hibernate paso por paso, empezando con una aplicación simple usando una base "
+"de datos en memoria. Este tutorial se basa en un tutorial anterior que "
+"Michael Gloegl desarrolló. Todo el código se encuentra en el directorio "
+"<filename>tutorials/web</filename> de la fuente del proyecto. "
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
"have a limited knowledge of JAVA or SQL, it is advised that you start with a "
"good introduction to that technology prior to attempting to learn Hibernate."
msgstr ""
+"Este tutorial se basa en que el usuario tenga conocimiento de Java y SQL. Si "
+"tiene un conocimiento muy limitado de JAVA o SQL, le aconsejamos que empiece "
+"con una buena introducción a esta tecnologÃa antes de tratar de aprender "
+"sobre Hibernate."
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
"<filename>tutorial/eg</filename> project source directory."
msgstr ""
+"La distribución contiene otra aplicación de ejemplo bajo el directorio "
+"fuente del proyecto <filename>tutorial/eg</filename>."
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
-msgstr "Parte 1 - La primera Aplicación Hibernate"
+msgstr "Parte 1 - La primera aplicación Hibernate"
#. Tag: para
-#: tutorial.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
"events we want to attend and information about the host(s) of these events."
msgstr ""
-"Asumamos que necesitamos una aplicación pequeña de base de "
-"datos que pueda almacenar eventos que queremos atender, e información "
-"acerca de los hostales de estos eventos."
+"Para este ejemplo, vamos a configurar una aplicación base de datos pequeña "
+"que pueda almacenar eventos a los que queremos asistir e información sobre "
+"los anfitriones de estos eventos."
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -67,15 +87,17 @@
"database) to avoid describing installation/setup of any particular database "
"servers."
msgstr ""
+"Aunque puede utilizar cualquier base de datos con la que se sienta bien, "
+"vamos a usar <ulink url=\"http://hsqldb.org/\">HSQLDB</ulink> (una base de "
+"datos Java en-memoria) para evitar describir la instalación/configuración de "
+"cualquier servidor de base de datos en particular."
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
-msgstr ""
+msgstr "Configuración"
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -87,72 +109,30 @@
"making use of <filename>src/main/java</filename>, <filename>src/main/"
"resources</filename> and <filename>src/main/webapp</filename> directories."
msgstr ""
+"Lo primero que tenemos que hacer es configurar el entorno de desarrollo. "
+"Vamos a utilizar el \"diseño estándar\" apoyado por muchas herramientas de "
+"construcción tal como <ulink url=\"http://maven.org\">Maven</ulink>. Maven, "
+"en particular, tiene un buen recurso que describe este <ulink url=\"http://"
+"maven.apache.org/guides/introduction/introduction-to-the-standard-directory-"
+"layout.html\">diseño</ulink>. Como este tutorial va a ser una aplicación "
+"web, vamos a crear y a utilizar los directorios <filename>src/main/java</"
+"filename>, <filename>src/main/resources</filename> y <filename>src/main/"
+"webapp</filename>."
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
"dependency management capabilities as well as the ability of many IDEs to "
"automatically set up a project for us based on the maven descriptor."
msgstr ""
+"Vamos a usar Maven en este tutorial, sacando ventaja de sus funcionalidades "
+"de administración de dependencias transitivas asà como la habilidad de "
+"muchos IDEs para configurar automáticamente un proyecto para nosotros con "
+"base en el descriptor maven."
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
"build this tutoial (such as Ant), the layout will remain the same. The only "
@@ -168,109 +148,45 @@
"javassist</filename> directory; additionally you will need both the servlet-"
"api jar and one of the slf4j logging backends."
msgstr ""
+"El usar Maven no es un requerimiento. Si desea utilizar otra tecnologia para "
+"construir este tutorial (tal como Ant), el diseño sigue siendo el mismo. El "
+"único cambio es que necesitará dar cuenta manualmente por todas las "
+"dependencias que se necesitan. Si usa <ulink url=\"http://ant.apache.org/ivy/"
+"\">Ivy</ulink> para brindar administración de dependencias transitivas "
+"todavÃa utilizarÃa las dependencias que mencionamos anteriormente. De otra "
+"manera, necesitará encontrar todas las dependencias, explÃcitas y "
+"transitivas y agregarlas a la ruta de clase del proyecto. Si trabaja desde "
+"el paquete de distribución Hibernate, esto significarÃa que "
+"<filename>hibernate3.jar</filename>, todos los artefactos en el directorio "
+"<filename>lib/required</filename> y todos los archivos del directorio "
+"<filename>lib/bytecode/cglib</filename> o <filename>lib/bytecode/javassist</"
+"filename>; además necesitará el servlet-api jar y uno de los backends de "
+"registro slf4j."
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
+"Guarde este archivo como <filename>pom.xml</filename> en el directorio raÃz "
+"del proyecto."
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr "La primera clase"
#. Tag: para
-#: tutorial.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
"database; it is a simple JavaBean class with some properties:"
msgstr ""
-"Por siguiente, creamos una clase que represente el evento que queremos "
-"almacenar en base de datos."
+"Luego creamos una clase que representa el evento que queremos almacenar en "
+"la base de datos, es una clase JavaBean simple con algunas propiedades:"
-#. Tag: programlisting
-#: tutorial.xml:128
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-msgstr ""
-"<![CDATA[import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-
#. Tag: para
-#: tutorial.xml:130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
"setter methods, as well as private visibility for the fields. Although this "
@@ -278,16 +194,14 @@
"fields directly, the benefit of accessor methods is robustness for "
"refactoring."
msgstr ""
-"Puedes ver que esta clase usa las convenciones de nombrado estándar "
-"de JavaBean para métodos getter y setter de propiedad, así "
-"como visibilidad privada para los campos. Esto es un diseño "
-"recomendado, aunque no requerido. Hibernate también puede acceder a "
-"los campos directamente; el beneficio de los métodos de acceso es la "
-"robustez para la refactorización."
+"Esta clase utiliza convenciones de nombrado estándares de JavaBean para los "
+"métodos de propiedades getter y setter asà como también visibilidad privada "
+"para los campos. Se recomienda este diseño, pero no se exige. Hibernate "
+"también puede acceder a los campos directamente, los métodos de acceso "
+"benefician la robustez de la refactorización. "
#. Tag: para
-#: tutorial.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
"particular event. All persistent entity classes (there are less important "
@@ -301,25 +215,22 @@
"as well as public, private and protected fields directly. The choice is up "
"to you and you can match it to fit your application design."
msgstr ""
-"La propiedad <literal>id</literal> tiene un valor único de "
-"identificador para un evento en particular. Todas las clase de entidad "
-"persistentes ( también hay clases dependientes menos importantes) "
-"necesitarán una propiedad identificadora similar si queremos usar el "
-"conjunto completo de funcionalidades de Hibernate. De hecho, la mayorí"
-"a de las aplicaciones (esp. aplicaciones web) necesitan distinguir objetos "
-"por identificador, de modo que debes considerar esto como un aspecto en vez "
-"de una limitación. Sin embargo, usualmente no manipulamos la "
-"identidad de un objeto, por lo tanto el método setter debe ser "
-"privado. Sólo Hibernate asignará identificadores cuando un "
-"objeto sea salvado. Puedes ver que Hibernate puede acceder a métodos "
-"de acceso públicos, privados y protegidos, tanto como directamente a "
-"campos (públicos, privados y protegidos). La elección "
-"está en ti, y puedes ajustarla a tu diseño de aplicació"
-"n."
+"La propiedad <literal>id</literal> tiene un valor identificador único para "
+"un evento en particular. Todas las clases de entidad persistentes "
+"necesitarán tal propiedad identificadora si queremos utilizar el grupo "
+"completo de funcionalidades de Hibernate (también algunas clases "
+"dependientes menos importantes). De hecho, la mayorÃa de las aplicaciones "
+"(en especial las aplicaciones web) necesitan distinguir los objetos por "
+"identificador, asà que usted debe tomar esto como una funcionalidad más que "
+"una limitación. Sin embargo, usualmente no manipulamos la identidad de un "
+"objeto, por lo tanto, el método setter debe ser privado. Sólamente Hibernate "
+"asignará identificadores cuando se guarde un objeto. Como se puede ver, "
+"Hibernate puede acceder a métodos de acceso públicos, privados y protegidos, "
+"asà como también a campos directamente públicos, privados y protegidos. "
+"Puede escoger y hacer que se ajuste a su diseño de su aplicación."
#. Tag: para
-#: tutorial.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
"Hibernate has to create objects for you, using Java Reflection. The "
@@ -328,28 +239,27 @@
"instrumentation."
msgstr ""
"El constructor sin argumentos es un requerimiento para todas las clases "
-"persistentes. Hibernate tiene que crear objetos para ti, usando "
-"reflección Java. El constructor puede ser privado, sin embargo, la "
-"visibilidad de paquete es requerida para la generación de proxies en "
-"tiempo de ejecución y la recuperación de datos sin "
-"instrumentación del bytecode."
+"persistentes, Hibernate tiene que crear objetos por usted utilizando Java "
+"Reflection. El constructor puede ser privado; sin embargo, se necesita la "
+"visibilidad del paquete para generar proxies en tiempo de ejecución y para "
+"la recuperación de datos de manera efectiva sin la instrumentación del "
+"código byte."
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
"filename> directory."
msgstr ""
+"Duarde este archivo en el directorio <filename>src/main/java/org/hibernate/"
+"tutorial/domain</filename>."
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
-msgstr "El fichero de mapeo"
+msgstr "El archivo de mapeo"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -357,42 +267,18 @@
"file tells Hibernate what table in the database it has to access, and what "
"columns in that table it should use."
msgstr ""
-"Hibernate necesita saber cómo cargar y almacenar objetos de la clase "
-"persistente. Aquí es donde el fichero de mapeo de Hibernate entra en "
-"juego. El fichero de mapeo le dice a Hibernate a qué tabla en la base "
-"de datos tiene que acceder, y qué columnas en esta tabla debe usar."
+"Hibernate necesita saber cómo cargar y almacenar objetos de la clase "
+"persistente. En este punto es donde entra en juego el archivo de mapeo de "
+"Hibernate. Este archivo le dice a Hibernate a que tabla tiene que acceder en "
+"la base de datos, y que columnas debe utilizar en esta tabla."
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
-msgstr "La estructura básica de un fichero de mapeo se parece a esto:"
+msgstr "La estructura básica de un archivo de mapeo se ve asÃ:"
-#. Tag: programlisting
-#: tutorial.xml:182
-#, fuzzy, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping>\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: tutorial.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
"mapping elements and attributes in your editor or IDE. Opening up the DTD "
@@ -403,65 +289,41 @@
"<filename>hibernate-core.jar</filename> (it is also included in the "
"<filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
-"Observa que el DTD de Hibernate es muy sofisticado. Puedes usarlo para "
-"autocompleción de los elementos y atributos XML de mapeo en tu editor "
-"o IDE. Debes también abrir el fichero DTD en tu editor de texto. Es "
-"la forma más fácil para tener un panorama de todos los "
-"elementos y atributos y ver los valores por defectos, así como "
-"algunos comentarios. Nota que Hibernate no cargará el fichero DTD de "
-"la web, sino que primero buscará en el classpath de la "
-"aplicación. El fichero DTD está incluído en "
-"<literal>hibernate3.jar</literal> así como también en el "
-"directorio <literal>src/</literal> de la distribución de Hibernate."
+"El DTD de Hibernate es sofisticado. Puede utilizarlo para autocompletar los "
+"elementos y atributos XML de mapeo en su editor o IDE. Abrir el archivo DTD "
+"en su editor de texto es la manera más fácil para obtener una sinopsis de "
+"todos los elementos y atributos y para ver los valores por defecto, asà como "
+"algunos de los comentarios. Note que Hibernate no cargará el fichero DTD de "
+"la web, sino que primero lo buscará en la ruta de clase de la aplicación. El "
+"archivo DTD se encuentra incluido en <filename>hibernate-core.jar</filename> "
+"(también en <filename>hibernate3.jar</filename> si está usando el paquete de "
+"la distribución)."
#. Tag: para
-#: tutorial.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
"is, of course, not optional."
msgstr ""
-"Omitiremos la declaración de DTD en futuros ejemplos para acortar el "
-"código. Por supuesto, no es opcional."
+"Omitiremos la declaración de DTD en los ejemplos posteriores para hacer más "
+"corto el código. Esto no es opcional."
#. Tag: para
-#: tutorial.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
"<literal>class</literal> element. All persistent entity classes (again, "
"there might be dependent classes later on, which are not first-class "
"entities) need a mapping to a table in the SQL database:"
msgstr ""
-"Entre las dos etiquetas <literal>hibernate-mapping</literal>, incluye un "
+"Entre las dos etiquetas <literal>hibernate-mapping</literal>, incluya un "
"elemento <literal>class</literal>. Todas las clases de entidad persistentes "
-"(de nuevo, podría haber más adelante clases dependientes, que "
-"no sean entidades de-primera-clase) necesitan dicho mapeo a una tabla en la "
-"base de datos SQL:"
+"(de nuevo, podrÃan haber clases dependientes más adelante, las cuales no son "
+"entidades de primera clase) necesitan de dicho mapeo en una tabla en la base "
+"de datos SQL:"
-#. Tag: programlisting
-#: tutorial.xml:210
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: tutorial.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have told Hibernate how to persist and load object of class "
"<literal>Event</literal> to the table <literal>EVENTS</literal>. Each "
@@ -470,40 +332,15 @@
"not want to care about handling this identifier, we configure Hibernate's "
"identifier generation strategy for a surrogate primary key column:"
msgstr ""
-"Hasta ahora dijimos a Hibernate cómo persistir y cargar el objeto de "
-"clase <literal>Event</literal> a la tabla <literal>EVENTS</literal>, cada "
-"instancia representada por una fila en esta tabla. Ahora continuamos con un "
-"mapeo de la propiedad de identificado único a la clave primaria de la "
-"tabla. Además, como no queremos cuidar del manejo de este "
-"identificador, configuramos la estrategia de generación de "
-"identificadores para una columna clave primaria delegada:"
+"Hasta ahora le hemos dicho a Hibernate cómo persistir y cargar el objeto de "
+"clase <literal>Event</literal> a la tabla <literal>EVENTS</literal>. Cada "
+"instancia se encuentra representada por una fila en esa tabla. Ahora podemos "
+"continuar mapeando la propiedad identificadora única a la clave primaria de "
+"la tabla. Ya que no queremos preocuparnos por el manejo de este "
+"identificador, configuramos la estrategia de generación del identificador de "
+"Hibernate para una columna clave primaria sustituta:"
-#. Tag: programlisting
-#: tutorial.xml:222
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -513,9 +350,14 @@
"The column attribute tells Hibernate which column of the <literal>EVENTS</"
"literal> table holds the primary key value."
msgstr ""
+"El elemento <literal>id</literal> es la declaración de la propiedad "
+"identificadora. El atributo de mapeo <literal>name=\"id\"</literal> declara "
+"el nombre de la propiedad JavaBean y le dice a Hibernate que utilice los "
+"métodos <literal>getId()</literal> y <literal>setId()</literal> para acceder "
+"a la propiedad. El atributo columna le dice a Hibernate qué columna de la "
+"tabla <literal>EVENTS</literal> tiene el valor de la llave principal."
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -526,59 +368,39 @@
"Identifier value generation is also one of Hibernate's many extension points "
"and you can plugin in your own strategy."
msgstr ""
+"El elemento anidado <literal>generator</literal> especifica la estrategia de "
+"generación del identificador (también conocidos como ¿cómo se generan los "
+"valores del identificador?). En este caso escogimos <literal>native</"
+"literal>, el cual ofrece un nivel de qué tan portátil es dependiendo del "
+"dialecto configurado de la base de datos. Hibernate soporta identificadores "
+"generados por la base de datos, globalmente únicos asà como asignados por la "
+"aplicación. La generación del valor del identificador también es uno de los "
+"muchos puntos de extensión de Hibernate y puede conectar su propia "
+"estrategia."
#. Tag: para
-#: tutorial.xml:246
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
+"<literal>native</literal> ya no se considera como la mejor estrategia en "
+"términos de portabilidad. Para obtener mayor información consulte <xref "
+"linkend=\"portability-idgen\" />"
#. Tag: para
-#: tutorial.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
"properties. By default, no properties of the class are considered persistent:"
msgstr ""
-"Finalmente incluímos declaraciones para las propiedades persistentes "
-"de la clases en el fichero de mapeo. Por defecto, ninguna propiedad de la "
-"clase se considera persistente:"
+"Por último es necesario decirle a Hibernate sobre las porpiedades de clase "
+"de entidad que quedan. Por defecto, ninguna propiedad de la clase se "
+"considera persistente:"
-#. Tag: programlisting
-#: tutorial.xml:258
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-"<![CDATA[\n"
-"<hibernate-mapping>\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-
#. Tag: para
-#: tutorial.xml:260
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
"attribute of the <literal>property</literal> element tells Hibernate which "
@@ -587,12 +409,13 @@
"()</literal> and <literal>setTitle()</literal> methods."
msgstr ""
"Al igual que con el elemento <literal>id</literal>, el atributo "
-"<literal>name</literal> del elemento <literal>property</literal> dice a "
-"Hibernate cáles métodos getter y setter usar."
+"<literal>name</literal> del elemento <literal>property</literal> le dice a "
+"Hibernate que métodos getter y setter utilizar. Asà que en este caso, "
+"Hibernate buscará los métodos <literal>getDate()</literal>, <literal>setDate"
+"()</literal>, <literal>getTitle()</literal> y <literal>setTitle()</literal>."
#. Tag: para
-#: tutorial.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
"<literal>column</literal> attribute, but the <literal>title</literal> does "
@@ -601,17 +424,16 @@
"literal>, however, <literal>date</literal> is a reserved keyword in most "
"databases so you will need to map it to a different name."
msgstr ""
-"¿Por qué el mapeo de la propiedad <literal>date</literal> incluye el "
-"atributo <literal>column</literal>, pero el de la de <literal>title</"
-"literal> no? Sin el atributo <literal>column</literal> Hibernate usa por "
-"defecto el nombre de propiedad como nombre de columna. Esto funciona bien "
-"para <literal>title</literal>. Sin embargo, However, <literal>date</literal> "
-"es una palabra reservada en la mayoría de las bases de datos, "
-"así que mejor la mapeamos a un nombre diferente."
+"¿Por qué el mapeo de la propiedad <literal>date</literal> incluye el "
+"atributo <literal>column</literal>, pero el de <literal>title</literal> no? "
+"Sin el atributo <literal>column</literal> Hibernate utiliza, por defecto, el "
+"nombre de propiedad como nombre de la columna. Esto funciona bien para "
+"<literal>title</literal>. Sin embargo, <literal>date</literal> es una "
+"palabra clave reservada en la mayorÃa de las bases de datos, asà que es "
+"mejor que la mapeamos a un nombre diferente."
#. Tag: para
-#: tutorial.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
"attribute. The types declared and used in the mapping files are not Java "
@@ -628,25 +450,23 @@
"literal> column. Full date and time information is preserved by mapping the "
"property with a <literal>timestamp</literal> converter."
msgstr ""
-"La próxima cosa interesante es que el mapeo de <literal>title</"
-"literal> carece de un atributo <literal>type</literal>. Los tipos que "
-"declaramos y usamos en el fichero de mapeo no son, como podrías "
-"esperar, tipos de datos Java. Tampoco son tipos de base de datos SQL. Estos "
-"tipos son los llamados así <emphasis>Tipos de mapeo de Hibernate</"
-"emphasis>, convertidores que pueden traducir de tipos Java a SQL y vice "
-"versa. De nuevo, Hibernate intentará determinar la conversión "
-"y el mapeo mismo de tipo correctos si el atributo <literal>type</literal> no "
-"estuviese presente en el mapeo. En algunos casos esta detección "
-"automática (usando reflección en la clase Java) puede no tener "
-"lo que esperas o necesitas. Este es el caso de la propiedad <literal>date</"
-"literal>. Hibernate no puede saber is la propiedad mapeará a una "
-"columna <literal>date</literal>, <literal>timestamp</literal> o "
-"<literal>time</literal>. Declaramos que queremos preservar la "
-"información completa de fecha y hora mapeando la propiedad con un "
-"<literal>timestamp</literal>."
+"El mapeo de <literal>title</literal> carece de un atributo <literal>type</"
+"literal>. Los tipos que declaramos y utilizamos en los archivos de mapeo no "
+"son tipos de datos Java. Tampoco son tipos de base de datos SQL. Estos tipos "
+"se llaman <emphasis>tipos de mapeo Hibernate </emphasis>, convertidores que "
+"pueden traducir de tipos de datos de Java a SQL y viceversa. De nuevo, "
+"Hibernate tratará de determinar el tipo correcto de conversión y de mapeo "
+"por sà mismo si el atributo <literal>type</literal> no se encuentra presente "
+"en el mapeo. En algunos casos esta detección automática (utilizando "
+"Reflection en la clase Java) puede que no tenga lo que usted espera o "
+"necesita. Este es el caso de la propiedad <literal>date</literal>. Hibernate "
+"no puede saber is la propiedad, la cual es de <literal>java.util.Date</"
+"literal>, debe mapear a una columna <literal>date</literal>, "
+"<literal>timestamp</literal> o <literal>time</literal> de SQL. Por medio de "
+"un convertidor <literal>timestamp</literal>, mapeamos la propiedad y "
+"mantenemos la información completa sobre la hora y fecha."
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -654,39 +474,43 @@
"performance is important you should consider explicitly defining the type to "
"use."
msgstr ""
+"Hibernate realiza esta determinación de tipo de mapeo usando reflection "
+"cuando se procesan los archivos de mapeo. Esto puede tomar tiempo y recursos "
+"asà que el rendimiento al arrancar es importante entonces debe considerar el "
+"definir explÃcitamente el tipo a usar."
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
"tutorial/domain/Event.hbm.xml</filename>."
msgstr ""
+"Guarde este archivo de mapeo como <filename>src/main/resources/org/hibernate/"
+"tutorial/domain/Event.hbm.xml</filename>."
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
-msgstr "Configuración de Hibernate"
+msgstr "Configuración de Hibernate"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
"place. It is now time to configure Hibernate. First let's set up HSQLDB to "
"run in \"server mode\""
msgstr ""
+"En este momento debe tener la clase persistente y su archivo de mapeo. Ahora "
+"debe configurar Hibernate. Primero vamos a configurar HSQLDB para que "
+"ejecute en \"modo de servidor\""
#. Tag: para
-#: tutorial.xml:321
-#, no-c-format
+#, fuzzy, no-c-format
msgid "We do this do that the data remains between runs."
-msgstr ""
+msgstr "Hacemos esto o lo otro y los datos permanecen entre ejecuciones. "
#. Tag: para
-#: tutorial.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
"running: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
@@ -696,12 +520,15 @@
"tutorial, shutdown HSQLDB, delete all files in the <filename>target/data</"
"filename> directory, and start HSQLDB again."
msgstr ""
-"Crea un directorio llamado <literal>data</literal> en la raíz del "
-"directorio de desarrollo. Allí es donde HSQL DB almacenará sus "
-"ficheros de datos."
+"Vamos a utilizar el plugin de ejecución Maven para lanzar el servidor HSQLDB "
+"ejecutando: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
+"Dexec.args=\"-database.0 file:target/data/tutorial\"</command>.Lo verá "
+"iniciando y vinculandose a un enchufe TCP/IP, allà es donde nuestra "
+"aplicación se conectará más adelante. Si quiere dar inicio con una base de "
+"datos fresca durante este tutorial, apague HSQLDB, borre todos los archivos "
+"en el directorio <filename>target/data</filename> e inicie HSQLDB de nuevo."
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -713,158 +540,81 @@
"net/\">proxool</ulink>. However, we will be using the Hibernate built-in "
"connection pool for this tutorial."
msgstr ""
+"Hibernate se conectará a la base de datos de parte de su aplicación asà que "
+"necesita saber cómo obtener conexiones. Para este tutorial vamos a utilizar "
+"un pool de conexiones autónomo (opuesto a <interfacename>javax.sql."
+"DataSource</interfacename>). Hibernate viene con soporte para dos pools de "
+"conexiones JDBC de código abierto de terceros: <ulink url=\"https://"
+"sourceforge.net/projects/c3p0\">c3p0</ulink> y <ulink url=\"http://proxool."
+"sourceforge.net/\">proxool</ulink>. Sin embargo, vamos a utilizar el pool de "
+"conexiones incluido de Hibernate para este tutorial."
#. Tag: para
-#: tutorial.xml:348
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
"use. It lacks several features found on any decent connection pool."
msgstr ""
+"El pool de conexiones de Hibernate no está diseñado para utilizarse en "
+"producción. "
#. Tag: para
-#: tutorial.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
"properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</"
"literal> file, or even complete programmatic setup. Most users prefer the "
"XML configuration file:"
msgstr ""
-"Para la configuración de Hibernate, podemos usar un fichero "
-"<literal>hibernate.properties</literal> simple, un fichero "
-"<literal>hibernate.cfg.xml</literal> ligeramente más sofisticado, o "
-"incluso una configuración completamente programática. La "
-"mayoría de los usuarios prefieren el fichero de configuración "
-"XML:"
+"Para la configuración de Hibernate, podemos utilizar un archivo "
+"<literal>hibernate.properties</literal> simple, un archivo "
+"<literal>hibernate.cfg.xml</literal> un poco más sofisticado, o incluso una "
+"configuración completamente programática. La mayorÃa de los usuarios "
+"prefieren el archivo de configuración XML:"
-#. Tag: programlisting
-#: tutorial.xml:360
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:data/tutorial</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">create</property>\n"
-"\n"
-" <mapping resource=\"Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
-msgstr ""
+msgstr "Observe que este archivo de configuración especifica un DTD diferente"
#. Tag: para
-#: tutorial.xml:366
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
"is a global factory responsible for a particular database. If you have "
"several databases, for easier startup you should use several <literal><"
"session-factory></literal> configurations in several configuration files."
msgstr ""
-"Observa que esta configuración XML usa un DTD diferente. Configuramos "
-"la <literal>SessionFactory</literal> de Hibernate, una fábrica global "
-"responsable de una base de datos en particular. Si tienes varias bases de "
-"datos, usa varias configuraciones <literal><session-factory></"
-"literal> , usualmente en varios ficheros de configuración (para un "
-"arranque más fácil)."
+"Configure la <literal>SessionFactory</literal> de Hibernate. SessionFactory "
+"es una fábrica global responsable de una base de datos en particular. Si "
+"usted tiene varias bases de datos, para un inicio más fácil utilice varias "
+"configuraciones <literal><session-factory></literal> en varios "
+"archivos de configuración."
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
"configuration for the JDBC connection. The dialect <literal>property</"
"literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
+"Los primeros cuatro elementos <literal>property</literal> contienen la "
+"configuración necesaria para la conexión JDBC. El elemento "
+"<literal>property</literal> dialecto especifica la variante SQL en "
+"particular que Hibernate genera."
#. Tag: para
-#: tutorial.xml:380
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
+"Hibernate tiene la habilidad de determinar correctamente qué dialecto "
+"utilizar en la mayorÃa de los casos. Consulte <xref linkend=\"portability-"
+"dialectresolver\" /> para obtener mayor información."
#. Tag: para
-#: tutorial.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
"particularly useful in this context. The <literal>hbm2ddl.auto</literal> "
@@ -874,32 +624,30 @@
"Ant task. Finally, add the mapping file(s) for persistent classes to the "
"configuration."
msgstr ""
-"Los primeros cuatro elementos <literal>property</literal> contienen la "
-"configuración necesaria para la conexión JDBC. El elemento de "
-"dialecto <literal>property</literal> especifica la variante de SQL en "
-"particular que genera Hibernate. La opción <literal>hbm2ddl.auto</"
-"literal> activa la generación automática de esquemas de base "
-"de datos, directamente en la base de datos. Esto, por supuesto, puede "
-"desactivarse (quitando la opción config) o redirigido a un fichero "
-"con la ayuda de la tarea de Ant <literal>SchemaExport</literal>. Finalmente, "
-"agregamos el(los) fichero(s) de mapeo para clases persistentes."
+"La administración de la sesión automática de Hibernate para contextos de "
+"persistencia es particularmente útil en este contexto. La opción "
+"<literal>hbm2ddl.auto</literal> activa la generación automática de los "
+"esquemas de la base de datos directamente en la base de datos. Esto se puede "
+"desactivar, eliminando la opción de configuración o redirigiéndolo a un "
+"archivo con la ayuda de la tarea de Ant <literal>SchemaExport</literal>. "
+"Finalmente, agregue a la configuración el/los fichero(s) de mapeo para "
+"clases persistentes."
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
"<filename>src/main/resources</filename> directory."
msgstr ""
+"Guarde este archivo como <filename>hibernate.cfg.xml</filename> en el "
+"directorio <filename>src/main/resources</filename>."
#. Tag: title
-#: tutorial.xml:403
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Building with Maven"
-msgstr "Construyendo con Ant"
+msgstr "Construcción con Maven"
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -909,51 +657,21 @@
"basic project tasks. First, lets run the <literal>compile</literal> goal to "
"make sure we can compile everything so far:"
msgstr ""
+"Ahora vamos a construir el tutorial con Maven. Es necesario que tenga "
+"instalado Maven; se encuentra disponible en la <ulink url=\"http://maven."
+"apache.org/download.html\">página de descargas Maven</ulink>. Maven leerá el "
+"archivo <filename>/pom.xml</filename> que creamos anteriormente y sabrá cómo "
+"realizar algunas tareas de proyectos básicos. Primero, vamos a ejecutar la "
+"meta <literal>compile</literal> para asegurarnos de que podemos compilar "
+"todo hasta el momento:"
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
-msgstr ""
-"Esto dirá a Ant que agregue todos los ficheros en el directorio lib "
-"que terminen con <literal>.jar</literal> al classpath usado para la "
-"compilación. También copiará todos los ficheros que no "
-"sean código Java al directorio objetivo, por ejemplo, ficheros de "
-"configuración y mapeos de Hibernate. Si ahora corres Ant, debes "
-"obtener esta salida:"
+msgstr "Inicio y ayudantes"
#. Tag: para
-#: tutorial.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
"first you have to complete the setup with some infrastructure code. You have "
@@ -966,82 +684,40 @@
"<interfacename>org.hibernate.SessionFactory</interfacename> is a thread-safe "
"global object that is instantiated once."
msgstr ""
-"<![CDATA[C:\\hibernateTutorial\\>ant\n"
-"Buildfile: build.xml\n"
-"\n"
-"copy-resources:\n"
-" [copy] Copying 2 files to C:\\hibernateTutorial\\bin\n"
-"\n"
-"compile:\n"
-" [javac] Compiling 1 source file to C:\\hibernateTutorial\\bin\n"
-"\n"
-"BUILD SUCCESSFUL\n"
-"Total time: 1 second ]]>"
+"Es el momento de cargar y almacenar algunos objetos <literal>Event</"
+"literal>, pero primero tiene que completar la configuración con algo de "
+"código de infraestructura. Tiene que iniciar Hibernate construyendo un "
+"objeto <interfacename>org.hibernate.SessionFactory</interfacename> global y "
+"almacenarlo en algún lugar de fácil acceso en el código de la aplicación. "
+"Una <interfacename>org.hibernate.SessionFactory</interfacename> se utiliza "
+"para obtener instancias <interfacename>org.hibernate.Session</"
+"interfacename>. Una <interfacename>org.hibernate.Session</interfacename> "
+"representa una unidad de trabajo mono-hilo. La <interfacename>org.hibernate."
+"SessionFactory</interfacename> es un objeto global seguro entre hilos que se "
+"instancia una sóla vez."
#. Tag: para
-#: tutorial.xml:436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
"care of startup and makes accessing the <interfacename>org.hibernate."
"SessionFactory</interfacename> more convenient."
-msgstr "Arranque y ayudantes"
-
-#. Tag: programlisting
-#: tutorial.xml:442
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
msgstr ""
-"Es momento de cargar y almacenar algunos objetos <literal>Event</literal>, "
-"pero primero tenemos que completar la configuración de algún "
-"código de infraestructura. Tenemos que arrancar Hibernate. Este "
-"arranque incluye construir un objeto <literal>SessionFactory</literal> "
-"global y almacenarlo en algún sitio de fácil acceso en el "
-"código de aplicación. Una <literal>SessionFactory</literal> "
-"puede abrir nuevas <literal>Session</literal>'s. Una <literal>Session</"
-"literal> representa un unidad de trabajo mono-hebra. La "
-"<literal>SessionFactory</literal> es un objeto global seguro entre hebras, "
-"instanciado una sola vez."
+"Vamos a crear una clase de ayuda <literal>HibernateUtil</literal> que se "
+"encargue del inicio y haga más práctico el acceso a <interfacename>org."
+"hibernate.SessionFactory</interfacename>. "
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
"HibernateUtil.java</filename>"
msgstr ""
+"Guarde este código como <filename>src/main/java/org/hibernate/tutorial/util/"
+"HibernateUtil.java</filename>"
#. Tag: para
-#: tutorial.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
"SessionFactory</interfacename> reference in its static initializer; it also "
@@ -1050,16 +726,15 @@
"reference from JNDI in an application server or any other location for that "
"matter."
msgstr ""
-"Crearemos una clase de ayuda <literal>HibernateUtil</literal> que cuide del "
-"arranque y haga conveniente el manejo de <literal>Session</literal>. El "
-"así llamado patrón <emphasis>Sesión de Hebra Local "
-"(ThreadLocal Session)</emphasis> es útil aquí; mantenemos la "
-"unidad de trabajo actual asociada a la hebra actual. Echemos una mirada a la "
-"implementación:"
+"Esta clase no sólamente produce la referencia <interfacename>org.hibernate."
+"SessionFactory</interfacename> global en su inicializador estático, sino que "
+"también esconde el hecho de que utiliza un singleton estático. También puede "
+"que busque la referencia <interfacename>org.hibernate.SessionFactory</"
+"interfacename> desde JNDI en un servidor de aplicaciones en cualquier otro "
+"lugar."
#. Tag: para
-#: tutorial.xml:458
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
"a name in your configuration, Hibernate will try to bind it to JNDI under "
@@ -1068,50 +743,15 @@
"<literal>HibernateService</literal> to JNDI. Such advanced options are "
"discussed later."
msgstr ""
-"<![CDATA[import org.hibernate.*;\n"
-"import org.hibernate.cfg.*;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" public static final SessionFactory sessionFactory;\n"
-"\n"
-" static {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" sessionFactory = new Configuration().configure()."
-"buildSessionFactory();\n"
-" } catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static final ThreadLocal session = new ThreadLocal();\n"
-"\n"
-" public static Session currentSession() throws HibernateException {\n"
-" Session s = (Session) session.get();\n"
-" // Open a new Session, if this thread has none yet\n"
-" if (s == null) {\n"
-" s = sessionFactory.openSession();\n"
-" // Store it in the ThreadLocal variable\n"
-" session.set(s);\n"
-" }\n"
-" return s;\n"
-" }\n"
-"\n"
-" public static void closeSession() throws HibernateException {\n"
-" Session s = (Session) session.get();\n"
-" if (s != null)\n"
-" s.close();\n"
-" session.set(null);\n"
-" }\n"
-"}]]>"
+"Si usted le da un nombre a <interfacename>org.hibernate.SessionFactory</"
+"interfacename> en su archivo de configuración, de hecho, Hibernate tratará "
+"de vincularlo a JNDI bajo ese nombre después de que ha sido construido. Otra "
+"mejor opción es utilizar el despliegue JMX y dejar que el contenedor con "
+"capacidad JMX instancie y vincule un <literal>HibernateService</literal> a "
+"JNDI. Más adelante discutiremos estas opciones avanzadas."
#. Tag: para
-#: tutorial.xml:467
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
"and provides two choices: Log4j and JDK 1.4 logging. Most developers prefer "
@@ -1122,111 +762,56 @@
"configuration, you can change the settings. By default, only the Hibernate "
"startup message is shown on stdout."
msgstr ""
-"Coloca <literal>HibernateUtil.java</literal> en el directorio de fuentes de "
-"desarrollo, junto a <literal>Event.java</literal>:"
+"Ahora necesita configurar un sistema de registro. Hibernate utiliza "
+"registros comunes le da dos opciones: Log4J y registros de JDK 1.4. La "
+"mayorÃa de los desarrolladores prefieren Log4J: copie <literal>log4j."
+"properties</literal> de la distribución de Hibernate, se encuentra en el "
+"directorio <literal>etc/</literal>) a su directorio <literal>src</literal>, "
+"junto a <literal>hibernate.cfg.xml</literal>. Si desea tener una salida más "
+"verbosa que la que se proporcionó en la configuración del ejemplo entonces "
+"puede cambiar su configuración. Por defecto, sólo se muestra el mensaje de "
+"inicio de Hibernate en la salida estándar."
#. Tag: para
-#: tutorial.xml:477
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
"real work with Hibernate."
msgstr ""
-"<![CDATA[.\n"
-"+lib\n"
-" <Hibernate and third-party libraries>\n"
-"+src\n"
-" Event.java\n"
-" Event.hbm.xml\n"
-" HibernateUtil.java\n"
-" hibernate.cfg.xml\n"
-"+data\n"
-"build.xml]]>"
+"La infraestructura del tutorial está completa y estamos listos para hacer un "
+"poco de trabajo real con Hibernate."
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
-msgstr ""
-"Esto también debe compilar sin problemas. Finalmente necesitamos "
-"configurar un sistema de logging (registro). Hibernate usa commons logging y "
-"te deja la elección entre Log4J y logging de JDK 1.4. La mayorí"
-"a de los desarrolladores prefieren Log4J: copia <literal>log4j.properties</"
-"literal> de la distribución de Hibernate (está en el "
-"directorio <literal>etc/</literal>) a tu directorio <literal>src</literal>, "
-"junto a <literal>hibernate.cfg.xml</literal>. Echa una mirada a la "
-"configuración de ejemplo y cambia los ajustes si te gusta tener una "
-"salida más verborrágica. Por defecto, sólo se muestra "
-"el mensaje de arranque de Hibernate en la salida."
+msgstr "Carga y almacenamiento de objetos"
#. Tag: para
-#: tutorial.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
"by writing an <literal>EventManager</literal> class with a <literal>main()</"
"literal> method:"
msgstr ""
-"La infraestructura del tutorial está completa, y estamos listos para "
-"hacer algún trabajo real con Hibernate."
+"Ahora estamos listos para hacer un poco de trabajo real con Hibernate. "
+"Empecemos por escribir una clase <literal>EventManager</literal> con un "
+"método <literal>main()</literal>:"
-#. Tag: programlisting
-#: tutorial.xml:493
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr "Cargando y almacenando objetos"
-
#. Tag: para
-#: tutorial.xml:495
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
"literal> object and handed it over to Hibernate. At that point, Hibernate "
"takes care of the SQL and executes an <literal>INSERT</literal> on the "
"database."
msgstr ""
-"Finalmente, podemos usar Hibernate para cargar y almacenar objetos. "
-"Escribimos una clase <literal>EventManager</literal> con un método "
-"<literal>main()</literal>:"
+"En <literal>createAndStoreEvent()</literal> creamos un nuevo objeto "
+"<literal>Event</literal> y se lo entregamos a Hibernate. En ese momento, "
+"Hibernate se encarga de SQL y ejecuta un <literal>INSERT</literal> en la "
+"base de datos."
#. Tag: para
-#: tutorial.xml:502
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
"single unit of work (a single atmoic piece of work to be performed). For now "
@@ -1237,28 +822,18 @@
"interfacename> API. In this particular case we are using JDBC-based "
"transactional semantics, but it could also run with JTA."
msgstr ""
-"<![CDATA[import org.hibernate.Transaction;\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.sessionFactory.close();\n"
-" }\n"
-"\n"
-"}]]>"
+"Una <interface>org.hibernate.Session</interface> está diseñada para "
+"representar una sóla unidad de trabajo (una sola parte atómica de trabajo "
+"que se va a realizar). Por ahora vamos a mantener las cosas sencillas y "
+"vamos a asumir una granularidad de uno a uno entre la <interface>org."
+"hibernate.Session</interface> de Hibernate y una transacción de la base "
+"datos. Para proteger nuestro código del sistema de transacciones subyacentes "
+"utilizamos el API <interfacename>org.hibernate.Transaction</interfacename> "
+"de Hibernate. En este caso en particular estamos utilizado una semántica "
+"transaccional basada en JDBC pero también puede ejecutarse con JTA. "
#. Tag: para
-#: tutorial.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
"you can call it as many times and anywhere you like once you get hold of "
@@ -1269,11 +844,16 @@
"xml</filename>? Due to that setting, the context of a current unit of work "
"is bound to the current Java thread that executes the application."
msgstr ""
-"Leemos algunos argumentos de la línea de comandos, y si el primer "
-"argumento es \"store\", creamos y almacenamos un nuevo Event:"
+"¿Qué hace <literal>sessionFactory.getCurrentSession()</literal>? Primero, la "
+"puede llamar tantas veces como desee y en donde quiera, una vez consiga su "
+"<interfacename>org.hibernate.SessionFactory</interfacename>. El método "
+"<literal>getCurrentSession()</literal> siempre retorna la unidad de trabajo "
+"\"actual\". ¿Recuerda que cambiamos la opción de la configuración de este "
+"mecanismo a \"thread\" en <filename>src/main/resources/hibernate.cfg.xml</"
+"filename>? Por lo tanto, el contexto de una unidad de trabajo actual se "
+"encuentra vinculada al hilo de Java actual que ejecuta nuestra aplicación."
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1281,10 +861,13 @@
"prototyping and tutorials such as this one. Current session tracking is "
"discussed in more detail later on."
msgstr ""
+"Hibernate ofrece tres métodos de rastreo de sesión actual. El método basado "
+"en \"hilos\" no está dirigido al uso de producción; sólo es útil para "
+"prototipos y para tutoriales como este. Más adelante discutiremos con más "
+"detalles el rastreo de sesión actual."
#. Tag: para
-#: tutorial.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
"<literal>getCurrentSession()</literal> is made for the current thread. It is "
@@ -1295,23 +878,18 @@
"new <interface>org.hibernate.Session</interface> and can start a new unit of "
"work."
msgstr ""
-"<![CDATA[private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.currentSession();\n"
-" Transaction tx = session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" session.save(theEvent);\n"
-"\n"
-" tx.commit();\n"
-" HibernateUtil.closeSession();\n"
-"}]]>"
+"Una <interface>org.hibernate.Session</interface> se inicia cuando se realiza "
+"la primera llamada a <literal>getCurrentSession()</literal> para el hilo "
+"actual. Luego Hibernate la vincula al hilo actual. Cuando termina la "
+"transacción, ya sea por medio de guardar o deshacer los cambios, Hibernate "
+"desvincula automáticamente la <interface>org.hibernate.Session</interface> "
+"del hilo y la cierra por usted. Si llama a <literal>getCurrentSession()</"
+"literal> de nuevo, obtiene una <interface>org.hibernate.Session</interface> "
+"nueva y obtiene una nueva <interface>org.hibernate.Session</interface> "
+"unidad de trabajo. "
#. Tag: para
-#: tutorial.xml:551
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
"hibernate.Session</interface> be used to execute one or several database "
@@ -1325,314 +903,171 @@
"<emphasis>session-per-operation</emphasis> an anti-pattern. A real web "
"application is shown later in the tutorial which will help illustrate this."
msgstr ""
-"Creamos un nuevo objeto <literal>Event</literal>, y se lo damos a Hibernate. "
-"Hibernate cuida ahora del SQL y ejecuta <literal>INSERT</literal>s en la "
-"base de datos. Echemos una mirada al código de manejo de "
-"<literal>Session</literal> y <literal>Transaction</literal> antes de "
-"ejecutar esto."
+"En relación con la unidad del campo de trabajo, ¿Se deberÃa utilizar "
+"<interface>org.hibernate.Session</interface> de Hibernate para ejecutar una "
+"o varias operaciones de la base de datos? El ejemplo anterior utiliza una "
+"<interface>org.hibernate.Session</interface> para una operación. Sin "
+"embargo, esto es pura coincidencia; el ejemplo simplemente no es lo "
+"suficientemente complicado para mostrar cualquier otro enfoque. El ámbito de "
+"una <interface>org.hibernate.Session</interface> de Hibernate es flexible "
+"pero nunca debe diseñar su aplicación para que utilice una nueva "
+"<interface>org.hibernate.Session</interface> de Hibernate para "
+"<emphasis>cada</emphasis> operación de la base de datos. Aunque lo "
+"utilizamos en los siguientes ejemplos, considere la <emphasis>sesión-por-"
+"operación</emphasis> como un anti-patrón. Más adelante en este tutorial, se "
+"muestra una aplicación web real, lo cual le ayudará a ilustrar esto."
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
-"Una <literal>Session</literal> es una sola unidad de trabajo. Podría "
-"sorprenderte que tengamos una API adicional, <literal>Transaction</literal>. "
-"Esto implica que una unidad de trabajo puede ser \"más larga\" que "
-"una sola transacción de base de datos; imagina una unidad de trabajo "
-"que se abarca varios ciclos petición/respuesta HTTP (por ejemplo, un "
-"diálogo asistente) en una aplicación web. Separar las "
-"transacciones de base de datos de \"las unidades de trabajo de la "
-"aplicación desde el punto de vista del usuario\" es uno de los "
-"conceptos básicos de diseño de Hibernate. Llamamos una unidad "
-"de trabajo larga <emphasis>Transacción de Aplicación</"
-"emphasis>, usualmente encapsulando varias transacciones de base de datos "
-"más cortas. Por ahora mantendremos las cosas simples y asumiremos una "
-"granularidad uno-a-uno entre una <literal>Session</literal> y una "
-"<literal>Transaction</literal>."
+"Consulte <xref linkend=\"transactions\" /> para obtener mayor información "
+"sobre el manejo de transacciones y la demarcación. En el ejemplo anterior "
+"también nos saltamos el manejo de errores y cómo deshacerlos."
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
"with the necessary classpath setup: <command>mvn exec:java -Dexec.mainClass="
"\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store\"</command>"
msgstr ""
+"Para ejecutar esto, utilizaremos el plugin de ejecución Maven para llamar "
+"nuestra clase con la configuración de ruta de clase necesaria: <command>mvn "
+"exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager\" -Dexec."
+"args=\"store\"</command>"
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
msgstr ""
+"Es posible que primero necesite realizar <command>mvn compile</command>."
#. Tag: para
-#: tutorial.xml:586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
"lots of log output. Towards the end, the following line will be displayed:"
-msgstr "<![CDATA[C:\\hibernateTutorial\\>ant run -Daction=store]]>"
-
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
msgstr ""
-"Debes ver, después de la compilación, a Hibernate arrancando "
-"y, dependiendo de tu configuración mucha salida de registro (log). Al "
-"final encontrarás la siguiente línea:"
+"Debe ver que Hibernate inicia y dependiendo de su configuración, también "
+"verá bastantes salidas de registro. Al final, verá la siguiente lÃnea:"
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
-msgstr ""
+msgstr "Este es el <literal>INSERT</literal> que Hibernate ejecuta."
#. Tag: para
-#: tutorial.xml:597
-#, fuzzy, no-c-format
+#, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
-"Esta es la <literal>INSERT</literal> ejecutada por Hibernate, los signos de "
-"preguntas representan parámetros de ligado JDBC. Para ver los valores "
-"ligados como argumentos, o para reducir la verborragia del registro, chequea "
-"tu <literal>log4j.properties</literal>."
+"Para listar los eventos almacenados se agrega una opción al método principal:"
-#. Tag: programlisting
-#: tutorial.xml:601
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-"Ahora quisiéramos listar acontecimientos almacenados también, "
-"así que agregamos una opción al método principal:"
-
#. Tag: para
-#: tutorial.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
-msgstr ""
-"<![CDATA[if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-"}\n"
-"else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\"Event: \" + theEvent.getTitle() +\n"
-" \" Time: \" + theEvent.getDate());\n"
-" }\n"
-"}]]>"
+msgstr "También agregamos un método <literal>listEvents()</literal>:"
-#. Tag: programlisting
-#: tutorial.xml:607
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
-msgstr ""
-"Agregamos también un nuevo método <literal>listEvents()</"
-"literal>:"
-
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
-"<![CDATA[private List listEvents() {\n"
-" Session session = HibernateUtil.currentSession();\n"
-" Transaction tx = session.beginTransaction();\n"
-"\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-"\n"
-" tx.commit();\n"
-" session.close();\n"
-"\n"
-" return result;\n"
-"}]]>"
+"Aquà utilizamos una consulta HQL (Hibernate Query Language) para cargar "
+"todos los objetos <literal>Event</literal> desde la base de datos. Hibernate "
+"generará el SQL apropiado, lo enviará a la base de datos y poblará los "
+"objetos <literal>Event</literal> con los datos. Puede crear peticiones más "
+"complejas con HQL. Consulte <xref linkend=\"queryhql\"/> para obtener mayor "
+"información. "
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
"\" -Dexec.args=\"list\"</command>"
msgstr ""
+"Ahora podemos llamar nuestra nueva funcionalidad, de nuevo usando el plugin "
+"de ejecución Maven: <command>mvn exec:java -Dexec.mainClass=\"org.hibernate."
+"tutorial.EventManager\" -Dexec.args=\"list\"</command>"
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
-msgstr ""
-"Note: Most new Hibernate users fail at this point and we see questions about "
-"<emphasis>Table not found</emphasis> error messages regularly. However, if "
-"you follow the steps outlined above you will not have this problem, as "
-"hbm2ddl creates the database schema on the first run, and subsequent "
-"application restarts will use this schema. If you change the mapping and/or "
-"database schema, you have to re-enable hbm2ddl once again."
+msgstr "Part 2 - Mapeo de asociaciones"
#. Tag: para
-#: tutorial.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
"isolation. Let's expand on that a bit and add some class associations. We "
"will add people to the application and store a list of events in which they "
"participate."
-msgstr "Part 2 - Mapeando asociaciones"
+msgstr ""
+"Hasta ahora hemos mapeado una clase de entidad persistente a una tabla "
+"aislada. Vamos a construir sobre esto y agregaremos algunas asociaciones de "
+"clase. Vamos a agregar personas a la aplicación y vamos a almacenar una "
+"lista de eventos en las que participan."
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
-msgstr ""
-"Hemos mapeado un clase de entidad persistente a una tabla. Construyamos "
-"sobre esto y agreguemos algunas asociaciones de clase. Primero agregaremos "
-"personas a nuestra aplicación, y almacenaremos una lista de eventos "
-"en las que participan."
+msgstr "Mapeo de la clase Person"
#. Tag: para
-#: tutorial.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
-msgstr "Mapeando la clase Person"
+msgstr "El primer corte de la clase <literal>Person</literal> se ve asÃ:"
-#. Tag: programlisting
-#: tutorial.xml:643
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
-msgstr "El primer corte de la clase <literal>Person</literal> es simple:"
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
"domain/Person.java</filename>"
msgstr ""
+"Guarde esto en un archivo llamado <filename>src/main/java/org/hibernate/"
+"tutorial/domain/Person.java</filename>"
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
+"Luego, cree el nuevo archivo de mapeo como <filename>src/main/resources/org/"
+"hibernate/tutorial/domain/Person.hbm.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:655
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr "Crea un fichero de mapeo llamado <literal>Person.hbm.xml</literal>:"
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
-msgstr ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
+msgstr "Finalmente, añada el nuevo mapeo a la configuración de Hibernate:"
-#. Tag: programlisting
-#: tutorial.xml:661
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-"Finalmente, agrega el nuevo mapeo a la configuración de Hibernate:"
-
-#. Tag: para
-#: tutorial.xml:663
-#, fuzzy, no-c-format
-msgid ""
"Create an association between these two entities. Persons can participate in "
"events, and events have participants. The design questions you have to deal "
"with are: directionality, multiplicity, and collection behavior."
msgstr ""
-"<![CDATA[ <mapping resource=\"Event.hbm.xml\"/>\n"
-" <mapping resource=\"Person.hbm.xml\"/>\n"
-"]]>"
+"Vamos a crear una asociación entre estas dos entidades. Las personas pueden "
+"participar en los eventos y los eventos cuentan con participantes. Las "
+"cuestiones de diseño con las que tenemos que tratar son: direccionalidad, "
+"multiplicidad y comportamiento de la colección."
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
-msgstr ""
-"Crearemos ahora una asociación entre estas dos entidades. Obviamente, "
-"las personas pueden participar en eventos, y los eventos tienen "
-"participantes. Las cuestiones de diseño con que tenemos que tratar "
-"son: direccionalidad, multiplicidad y comportamiento de colección."
+msgstr "Una asociación unidireccional basada en Set"
#. Tag: para
-#: tutorial.xml:675
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
"can easily navigate to the events for a particular person, without executing "
@@ -1641,32 +1076,18 @@
"Collection Framework contracts; here we choose a <interfacename>java.util."
"Set</interfacename> because the collection will not contain duplicate "
"elements and the ordering is not relevant to our examples:"
-msgstr "Una asociación unidireccional basada en Set"
-
-#. Tag: programlisting
-#: tutorial.xml:686
-#, no-c-format
-msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
msgstr ""
-"Hasta ahora hemos diseñado asociaciones unidireccionales "
-"multivaluadas, implementadas con un <literal>Set</literal>. Escribamos el "
-"código para esto en las clases Java y luego lo mapeemos:"
+"Al agregar una colección de eventos a la clase <literal>Person</literal>, "
+"puede navegar fácilmente a los eventos de una persona en particular, sin "
+"ejecutar una petición explÃcita - llamando a <literal>Person#getEvents</"
+"literal>. En Hibernate, las asociaciones multi-valores se representan por "
+"medio de uno de los contratos del marco de colecciones Java; aquà escogimos "
+"un <interfacename>java.util.Set</interfacename> ya que la colección no "
+"contendrá elementos duplicados y el orden no es relevante para nuestros "
+"ejemplos."
#. Tag: para
-#: tutorial.xml:688
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before mapping this association, let's consider the other side. We could "
"just keep this unidirectional or create another collection on the "
@@ -1678,51 +1099,19 @@
"on both sides is called a <emphasis>many-to-many</emphasis> association. "
"Hence, we use Hibernate's many-to-many mapping:"
msgstr ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
+"Antes de mapear esta asociación, considere el otro lado. Podriamos mantener "
+"esto unidireccional o podrÃamos crear otra colección en el <literal>Event</"
+"literal>, si queremos tener la habilidad de navegarlo desde ambas "
+"direcciones. Esto no es necesario desde un punto de vista funcional. Siempre "
+"puede ejeutar un pedido explÃcito para recuperar los participantes de un "
+"evento en particular. Esta es una elección de diseño que depende de usted, "
+"pero lo que queda claro de esta discusión es la multiplicidad de la "
+"asociación: \"muchos\" valuada en ambos lados, denominamos esto como una "
+"asociación <emphasis>muchos-a-muchos</emphasis>. Por lo tanto, utilizamos un "
+"mapeo muchos-a-muchos de Hibernate:"
-#. Tag: programlisting
-#: tutorial.xml:701
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-"Antes que mapeemos esta asociación, piensa sobre el otro lado. "
-"Claramente, podemos mantener esto solamente unidireccional. O podemos crear "
-"otra colección en el <literal>Event</literal>, si queremos ser "
-"capaces de navegarlos bidireccionalmente; por ejemplo, <literal>anEvent."
-"getParticipants()</literal>. Esta es una elección de diseño "
-"que recae en ti, pero lo que está claro de esta discusión es "
-"la multiplicidad de la asociación: \"multi\" valuada a ambos lados, "
-"llamamos a esto una asociación <emphasis>muchos-a-muchos</emphasis>. "
-"Por lo tanto, usamos un mapeo many-to-many de Hibernate:"
-
#. Tag: para
-#: tutorial.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
"literal> being most common. For a many-to-many association, or <emphasis>n:"
@@ -1736,108 +1125,39 @@
"tell Hibernate the class of the objects in your collection (the class on the "
"other side of the collection of references)."
msgstr ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
+"Hibernate soporta un amplio rango de mapeos de colección, el más común "
+"<literal>set</literal>. Para una asociación muchos-a-muchos o la relación de "
+"entidad <emphasis>n:m</emphasis>, se necesita una tabla de asociación. Cada "
+"fila en esta tabla representa un enlace entre una persona y un evento. El "
+"nombre de esta tabla se declara con el atributo <literal>table</literal> del "
+"elemento <literal>set</literal>. El nombre de la columna identificadora en "
+"la asociación, del lado de la persona, se define con el elemento "
+"<literal>key</literal>, el nombre de columna para el lado del evento se "
+"define con el atributo <literal>column</literal> del <literal>many-to-many</"
+"literal>. También tiene que informarle a Hibernate la clase de los objetos "
+"en su colección (la clase del otro lado de la colección de referencias)."
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
-msgstr ""
-"Hibernate soporta todo tipo de mapeos de colección, siendo el "
-"más común un <literal><set></literal>. Para una "
-"asociación muchos-a-muchos (o relación de entidad <emphasis>n:"
-"m</emphasis>), se necesita una tabla de asociación. Cada fila en esta "
-"tabla representa un enlace entre una persona y un evento. Esta tabla se "
-"configura con el atributo <literal>table</literal> del elemento "
-"<literal>set</literal>. El nombre de la columna identificadora en la "
-"asociación, para el lado de la persona, se define con el elemento "
-"<literal><key></literal>. El nombre de columna para el lado del evento "
-"se define con el atributo <literal>column</literal> del <literal><many-to-"
-"many></literal>. También tienes que decirle a Hibernate la clase "
-"de los objetos en tu colección (correcto: la clase del otro lado de "
-"la colección de referencias)."
+msgstr "Por consiguiente, el esquema de base de datos para este mapeo es:"
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr "El esquema de base de datos para este mapeo es, por lo tanto:"
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
-msgstr ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
+msgstr "Trabajo de la asociación"
#. Tag: para
-#: tutorial.xml:730
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
"<literal>EventManager</literal>:"
-msgstr "Trabajando la asociación"
-
-#. Tag: programlisting
-#: tutorial.xml:734
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
msgstr ""
-"Traigamos alguna gente y eventos juntos en un nuevo método en "
+"Vamos a reunir a algunas personas y eventos en un nuevo método en "
"<literal>EventManager</literal>:"
#. Tag: para
-#: tutorial.xml:736
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
"simply modify the collection using the normal collection methods. There is "
@@ -1853,22 +1173,24 @@
"of a unit of work, is called <emphasis>flushing</emphasis>. In our code, the "
"unit of work ends with a commit, or rollback, of the database transaction."
msgstr ""
-"<![CDATA[private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.currentSession();\n"
-" Transaction tx = session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" tx.commit();\n"
-" HibernateUtil.closeSession();\n"
-"}]]>"
+"Después de cargar una <literal>Person</literal> y un <literal>Event</"
+"literal>, simplemente modifique la colección utilizando los métodos normales "
+"de colección. No hay una llamada explÃcita a <literal>update()</literal> o "
+"<literal>save()</literal>; Hibernate detecta automáticamente que se ha "
+"modificado la colección y que se necesita actualizarla. Esto se denomina "
+"<emphasis>chequeo automático de desactualizaciones</emphasis> y también "
+"puede probarlo modificando el nombre o la propiedad de fecha de cualquiera "
+"de sus objetos. Mientras se encuentran en estado <emphasis>persistente</"
+"emphasis>, es decir, enlazado a una <interfacename>org.hibernate.Session</"
+"interfacename> de Hibernate en particular, Hibernate monitorea cualquier "
+"cambio y ejecuta SQL de un modo escribe-detrás. El proceso de sincronización "
+"del estado de la memoria con la base de datos, usualmente sólo al final de "
+"una unidad de trabajo, se denomina <emphasis>vaciado</emphasis>. En nuestro "
+"código la unidad de trabajo termina con guardar o deshacer los cambios de la "
+"transacción de la base de datos."
#. Tag: para
-#: tutorial.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
"an object outside of a <interfacename>org.hibernate.Session</interfacename>, "
@@ -1876,65 +1198,15 @@
"is called <emphasis>detached</emphasis>). You can even modify a collection "
"when it is detached:"
msgstr ""
-"Después de cargar una <literal>Person</literal> y un <literal>Event</"
-"literal>, simplemente modifica la colección usando sus métodos "
-"normales. Como puedes ver, no hay una llamada explícita a "
-"<literal>update()</literal> o <literal>save()</literal>. Hibernate detecta "
-"automáticamente que la colección ha sido modificada y necesita "
-"ser salvada. Esto es llamado <emphasis>chequeo sucio automótico "
-"(automatic dirty checking)</emphasis>, y también puedes intentarlo "
-"modificando el nombre de la propiedad de fecha de cualquiera de tus objetos. "
-"Mientras estén en estado <emphasis>persistente</emphasis>, esto es, "
-"ligados a una <literal>Session</literal> de Hibernate particular (es decir, "
-"justo han sido cargados o almacenados en una unidad de trabajo), Hibernate "
-"monitoriza cualquier cambio y ejecuta SQL en estilo escribe-por-detrá"
-"s. El proceso de sincronización del estado de memoria con la base de "
-"datos, usualmente sólo al final de una unidad de trabajo, es llamado "
-"<emphasis>limpieza (flushing)</emphasis>."
+"Puede cargar una persona y un evento en diferentes unidades de trabajo. "
+"También puede modificar un objeto fuera de una <interfacename>org.hibernate."
+"Session</interfacename>, cuando no se encuentra en estado persistente (si "
+"antes era persistente denominamos a este estado <emphasis>separado</"
+"emphasis> ). Inclusive, puede modificar una colección cuando se encuentre "
+"separada:"
-#. Tag: programlisting
-#: tutorial.xml:764
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-"Podrías, por supuesto, cargar persona y evento en unidades de trabajo "
-"diferentes. O modificas un objeto fuera de una <literal>Session</literal>, "
-"cuando no está en estado persistente (si antes era persistente "
-"llamamos a este estado <emphasis>separado (detached) </emphasis>). En "
-"código (no muy realista), esto se vería como sigue:"
-
#. Tag: para
-#: tutorial.xml:766
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
"again by binding it to a new unit of work, so any modifications you made to "
@@ -1942,32 +1214,14 @@
"modifications (additions/deletions) you made to a collection of that entity "
"object."
msgstr ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-"\n"
-" Session session = HibernateUtil.currentSession();\n"
-" Transaction tx = session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" tx.commit();\n"
-" HibernateUtil.closeSession();\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson is detached\n"
-"\n"
-" Session session2 = HibernateUtil.currentSession();\n"
-" Transaction tx2 = session.beginTransaction();\n"
-"\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" tx2.commit();\n"
-" HibernateUtil.closeSession();\n"
-" }\n"
-"]]>"
+"La llamada a <literal>update</literal> hace que un objeto separado sea "
+"persistente de nuevo enlazándolo a una nueva unidad de trabajo, asà que "
+"cualquier modificación que le realizó mientras estaba separado se puede "
+"guardar en la base de datos. Esto incluye cualquier modificación (adiciones "
+"o eliminaciones) que le hizo a una colección de ese objeto entidad."
#. Tag: para
-#: tutorial.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
"incorporate into your own application. Complete this exercise by adding a "
@@ -1976,34 +1230,16 @@
"an event - the <literal>save()</literal> method returns it (you might have "
"to modify some of the previous methods to return that identifier):"
msgstr ""
-"La llamada a <literal>update</literal> hace a un objeto persistente de "
-"nuevo, podrías decir que la liga a una nueva unidad de trabajo, de "
-"modo que cualquier modificación que le hagas mientras esté "
-"separado puede ser salvada a base de datos."
+"Esto no se utiliza mucho en nuestro ejemplo, pero es un concepto importante "
+"que puede incorporar en su propia aplicación. Complete este ejercicio "
+"agregando una nueva acción al método main de <literal>EventManager</literal> "
+"y llámela desde la lÃnea de comandos. Si necesita los identificadores de una "
+"persona y de un evento - el método <literal>save()</literal> los retorna "
+"(pueda que necesite modificar algunos de los métodos anteriores para "
+"retornar ese identificador):"
-#. Tag: programlisting
-#: tutorial.xml:783
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-"Bueno, esto no es muy usado en nuestra situación actual, pero es un "
-"concepto importante que puedes diseñar en tu propia aplicació"
-"n. Por ahora, completa este ejercicio agregando una nueva acción al "
-"método main de <literal>EventManager</literal> y llámala desde "
-"la línea de comandos. Si necesitas los identificadores de una persona "
-"o evento, el método <literal>save()</literal> los devuelve."
-
#. Tag: para
-#: tutorial.xml:785
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is an example of an association between two equally important classes : "
"two entities. As mentioned earlier, there are other classes and types in a "
@@ -2018,95 +1254,56 @@
"<literal>Address</literal> or <literal>MonetaryAmount</literal> class. In "
"fact, in a Hibernate application all JDK classes are considered value types."
msgstr ""
-"Esto fue un ejemplo de una asociación entre dos clases igualmente "
-"importantes, dos entidades. Como se ha mencionado anteriormente, hay otras "
-"clases y tipos en un modelo típico, usualmente \"menos importantes\". "
-"Algunos ya los habrás visto, como un <literal>int</literal> o un "
-"<literal>String</literal>. Llamamos a estas clases <emphasis>tipos de valor "
-"(value types)</emphasis>, y sus instancias <emphasis>dependen</emphasis> de "
-"una entidad en particular. Las instancias de estos tipos no tienen su propia "
-"identidad, ni son compartidas entre entidades (dos personas no referencian "
-"el mismo objeto <literal>firstname</literal>, incluso si tuvieran el mismo "
-"primer nombre). Por supuesto, los tipos de valor no sólo pueden "
-"encontrarse en el JDK (de hecho, en una aplicación Hibernate todas "
-"las clases del JDK son consideradas tipos de valor), sino que además "
-"puedes escribir por ti mismo clases dependientes, por ejemplo, "
-"<literal>Address</literal> o <literal>MonetaryAmount</literal>."
+"Esto fue un ejemplo de una asociación entre dos clases igualmente "
+"importantes: dos entidades. Como se mencionó anteriormente, hay otras clases "
+"y tipos en un modelo tÃpico, usualmente \"menos importantes\". Algunos de "
+"ustedes las habrán visto, como un <literal>int</literal> o un "
+"<classname>java.lang.String</classname>. Denominamos a estas clases "
+"<emphasis>tipos de valor</emphasis> y sus instancias <emphasis>dependen</"
+"emphasis> de una entidad en particular. Las instancias de estos tipos no "
+"tienen su propia identidad, ni son compartidas entre entidades. Dos personas "
+"no referencian el mismo objeto <literal>firstname</literal>, incluso si "
+"tienen el mismo nombre. Los tipos de valor no sólo pueden encontrarse en el "
+"JDK, sino que también puede escribir por sà mismo clases dependientes como "
+"por ejemplo, <literal>Address</literal> o <literal>MonetaryAmount</literal>. "
+"De hecho, en una aplicación Hibernate todas las clases JDK se consideran "
+"como tipos de valor. "
#. Tag: para
-#: tutorial.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
"different from a collection of references to other entities, but looks "
"almost the same in Java."
msgstr ""
-"También puedes diseñar una colección de tipos de valor. "
-"Esto es conceptualmente muy diferente de una colección de referencias "
-"a otras entidades, pero se ve casi lo mismo en Java."
+"También puede diseñar una colección de tipos de valor. Esto es "
+"conceptualmente diferente de una colección de referencias a otras entidades, "
+"pero se ve casi igual en Java."
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
-msgstr "Colección de valores"
+msgstr "Colección de valores"
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
"entity. This will be represented as a <interfacename>java.util.Set</"
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
+"Vamos a agregar una colección de direcciones de correo electrónico a la "
+"entidad <literal>Person</literal>. Esto se representará como un "
+"<interfacename>java.util.Set</interfacename> de las instnaicas "
+"<classname>java.lang.String</classname>:"
-#. Tag: programlisting
-#: tutorial.xml:820
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
-"<![CDATA[private Set emailAddresses = new HashSet();\n"
-"\n"
-"public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-"}\n"
-"\n"
-"public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-"}]]>"
-
#. Tag: para
-#: tutorial.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
-msgstr "El mapeo de este <literal>Set</literal>:"
+msgstr "El mapeo de este <literal>Set</literal> es asÃ:"
-#. Tag: programlisting
-#: tutorial.xml:826
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-"</set>]]>"
-
#. Tag: para
-#: tutorial.xml:828
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The difference compared with the earlier mapping is the use of the "
"<literal>element</literal> part which tells Hibernate that the collection "
@@ -2120,240 +1317,103 @@
"<literal>element</literal> element defines the column name where the email "
"address values will actually be stored."
msgstr ""
-"La diferencia comparada con el mapeo anterior es la parte <literal>element</"
-"literal>, que le dice a Hibernate que la colección no contiene "
-"referencias a otra entidad, sino una colección de elementos de tipo "
-"<literal>String</literal> (el nombre en minúsculas te dice que es un "
-"tipo/conversor de mapeo de Hibernate). Una vez más, el atributo "
-"<literal>table</literal> del elemento <literal>set</literal> determina el "
-"nombre de la tabla para la colección. El elemento <literal>key</"
-"literal> define el nombre de la columna clave foránea en la tabla de "
-"colección. El atributo <literal>column</literal> en el elemento "
-"<literal>element</literal> define el nombre de columna donde realmente "
-"serán almacenados los valores <literal>String</literal>."
+"La diferencia comparado con el mapeo anterior es el uso de la parte "
+"<literal>element</literal>, que le dice a Hibernate que la colección no "
+"contiene referencias a otra entidad, sino que es una colección de elementos "
+"que son tipos de valores, aquà especificamente de tipo <literal>String</"
+"literal>. El nombre en minúsculas le dice que es un tipo/conversor de mapeo "
+"de Hibernate. Una vez más, el atributo <literal>table</literal> del elemento "
+"<literal>set</literal> determina el nombre de la tabla para la colección. El "
+"elemento <literal>key</literal> define el nombre de la columna clave foránea "
+"en la tabla de colección. El atributo <literal>column</literal> en el "
+"elemento <literal>element</literal> define el nombre de la columna donde "
+"realmente se almacenarán los valores de la dirección de correo electrónico."
#. Tag: para
-#: tutorial.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is the updated schema:"
-msgstr "Echa una mirada al esquema actualizado:"
+msgstr "Este es el esquema actualizado:"
-#. Tag: programlisting
-#: tutorial.xml:848
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-
-#. Tag: para
-#: tutorial.xml:850
-#, fuzzy, no-c-format
-msgid ""
"You can see that the primary key of the collection table is in fact a "
"composite key that uses both columns. This also implies that there cannot be "
"duplicate email addresses per person, which is exactly the semantics we need "
"for a set in Java."
msgstr ""
-"Puedes ver que la clave primaria de la tabla de colección es de hecho "
-"una clave compuesta, usando ambas columnas. Esto implica también que "
-"no pueden haber direcciones de email duplicadas por persona, que es "
-"exactamente la semántica que necesitamos para un conjunto en Java."
+"Puede ver que la clave principal de la tabla de colección es, de hecho, una "
+"clave compuesta que utiliza ambas columnas. Esto también implica que no "
+"pueden haber direcciones de correo electrónico duplicadas por persona, la "
+"cual es exactamente la semántica que necesitamos para un conjunto en Java."
#. Tag: para
-#: tutorial.xml:856
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
"by linking persons and events. It is the same code in Java:"
msgstr ""
-"<![CDATA[private void addEmailToPerson(Long personId, String emailAddress) "
-"{\n"
-" \n"
-" Session session = HibernateUtil."
-"getSessionFactory().getCurrentSession();\n"
-" session.beginTransaction();\n"
-" \n"
-" Person aPerson = (Person) "
-"session.load(Person.class, personId);\n"
-" \n"
-" // The getEmailAddresses() "
-"might trigger a lazy load of the collection\n"
-" aPerson.getEmailAddresses().add"
-"(emailAddress);\n"
-" \n"
-" session.getTransaction().commit"
-"();\n"
-"}]]>"
+"Ahora, puede tratar de agregar elementos a esta colección, al igual que lo "
+"hicimos antes vinculando personas y eventos. Es el mismo código en Java."
-#. Tag: programlisting
-#: tutorial.xml:861
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-"Puedes ahora intentar y agregar elementos a esta colección, al igual "
-"que hicimos antes enlazando personas y eventos. Es el mismo código en "
-"Java."
-
#. Tag: para
-#: tutorial.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
"the collection. Monitor the SQL log and try to optimize this with an eager "
"fetch."
msgstr ""
-"This time we didnt' use a <emphasis>fetch</emphasis> query to initialize the "
-"collection. Hence, the call to its getter method will trigger an additional "
-"select to initialize it, so we can add an element to it. Monitor the SQL log "
-"and try to optimize this with an eager fetch."
+"Esta vez no utilizamos una petición de <emphasis>búqueda - fetch -</"
+"emphasis> para dar inicio a la colección. Monitoree su registro SQL e "
+"intente de optimizar esto con una recuperación temprana."
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr "Asociaciones bidireccionales"
#. Tag: para
-#: tutorial.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
"association between person and event work from both sides in Java. The "
"database schema does not change, so you will still have many-to-many "
"multiplicity."
msgstr ""
-"A continuacion vamos a mapear una asociación bidireccional, haciendo "
-"que la asociación entre persona y evento funcione desde ambos lados "
-"en Java. Por supuesto, el esquema de base de datos no cambia; todavía "
-"necesitamos multiplicidad muchos-a-muchos. Una base de datos relacional es "
-"más flexible que un lenguaje de programación de red, "
-"así que no necesita nada parecido a una dirección de "
-"navegación; los datos pueden ser vistos y recuperados en cualquier "
-"forma posible."
+"A continuacion vamos a mapear una asociación bidireccional. Vamos a hacer "
+"que la asociación entre persona y evento funcione desde ambos lados en Java. "
+"El esquema de la base de datos no cambia asà que todavÃa tendremos una "
+"multiplicidad muchos-a-muchos."
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
"in that it does not need a navigation direction; data can be viewed and "
"retrieved in any possible way."
msgstr ""
+"Una base de datos relacional es más flexible que un lenguaje de programación "
+"de red ya que no necesita una dirección de navegación; los datos se pueden "
+"ver y recuperar de cualquier forma posible."
#. Tag: para
-#: tutorial.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
"class:"
msgstr ""
-"Primero agrega una colección de participantes a la clase de eventos "
-"<literal>Event</literal>:"
+"Primero, agregue una colección de participantes a la clase <literal>Event</"
+"literal>:"
-#. Tag: programlisting
-#: tutorial.xml:895
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
-msgstr ""
-"<![CDATA[private Set participants = new HashSet();\n"
-"\n"
-"public Set getParticipants() {\n"
-" return participants;\n"
-"}\n"
-"\n"
-"public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-"}]]>"
-
#. Tag: para
-#: tutorial.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr ""
-"Ahora mapea este lado de la asociación también, en "
-"<literal>Event.hbm.xml</literal>."
+"Ahora mapee este lado de la asociación en <literal>Event.hbm.xml</literal>."
-#. Tag: programlisting
-#: tutorial.xml:901
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-"<![CDATA[<set name=\"participants\" table=\"PERSON_EVENT\" inverse=\"true"
-"\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"Person\"/>\n"
-"</set>]]>"
-
#. Tag: para
-#: tutorial.xml:903
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
"Notice that the column names in <literal>key</literal> and <literal>many-to-"
@@ -2362,37 +1422,33 @@
"<literal>set</literal> element of the <literal>Event</literal>'s collection "
"mapping."
msgstr ""
-"Como ves, estos son mapeos normales de <literal>set</literal> en ambos "
-"documentos de mapeo. Nota que los nombres de columnas en <literal>key</"
-"literal> y <literal>many-to-many</literal> fueron permutados en ambos "
-"documentos de mapeo. Aquí la adición más importante es "
-"el atributo <literal>inverse=\"true\"</literal> en el elemento <literal>set</"
-"literal> del mapeo de colección de <literal>Event</literal>."
+"Estos son mapeos normales de <literal>set</literal> en ambos documentos de "
+"mapeo. Note que los nombres de las columnas en <literal>key</literal> y "
+"<literal>many-to-many</literal> se intercambiaron en ambos documentos de "
+"mapeo. La adición más importante aquà es el atributo <literal>inverse=\"true"
+"\"</literal> en el elemento <literal>set</literal> del mapeo de colección de "
+"<literal>Event</literal>."
#. Tag: para
-#: tutorial.xml:911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
"<literal>Person</literal> class, when it needs to find out information about "
"the link between the two. This will be a lot easier to understand once you "
"see how the bi-directional link between our two entities is created."
msgstr ""
-"Lo que esto significa es que Hibernate debe tomar el otro lado - la clase "
-"<literal>Person</literal> - cuando necesite descubrir información "
-"sobre el enlace entre las dos. Esto será mucho más fá"
-"cil de entender una vez que veas cómo se crea el enlace bidireccional "
-"entre nuestras dos entidades."
+"Esto significa que Hibernate debe tomar el otro lado, la clase "
+"<literal>Person</literal>, cuando necesite encontrar información sobre el "
+"enlace entre las dos. Esto será mucho más fácil de entender una vez que vea "
+"como se crea el enlace bidireccional entre nuestras dos entidades."
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
-msgstr "Trabajando enlaces bidireccionales"
+msgstr "Trabajo con enlaces bidireccionales"
#. Tag: para
-#: tutorial.xml:922
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
"How did we create a link between a <literal>Person</literal> and an "
@@ -2404,86 +1460,41 @@
"literal>. This process of \"setting the link on both sides\" is absolutely "
"necessary with bi-directional links."
msgstr ""
-"Primero, ten en mente que Hhibernate no afecta la semántica normal de "
-"Java. ¿Cómo hemos creado un enlace entre una <literal>Person</"
-"literal> y un <literal>Event</literal> en el ejemplo unidireccional? Hemos "
-"agregado una instancia de <literal>Event</literal> a la colección de "
-"referencias de eventos de una instancia de <literal>Person</literal>. De "
-"modo que, obviamente, si queremos que este enlace funcione "
-"bidireccionalmente, tenemos que hacer lo mismo del otro lado, agregando una "
-"referencia a <literal>Person</literal> a la colección en un "
-"<literal>Event</literal>. Este \"establecer el enlace a ambos lados\" es "
-"absolutamente necesario y nunca debes olvidar hacerlo."
+"Primero, recuerde que Hibernate no afecta la semántica normal de Java. ¿Cómo "
+"creamos un enlace entre <literal>Person</literal> y un <literal>Event</"
+"literal> en el ejemplo unidireccional? Agregue una instancia de "
+"<literal>Event</literal> a la colección de referencias de eventos de una "
+"instancia de <literal>Person</literal>. Si quiere que este enlace funcione "
+"bidireccionalmente, tiene que hacer lo mismo del otro lado, añadiendo una "
+"referencia <literal>Person</literal> a la colección en un <literal>Event</"
+"literal>. Este proceso de \"establecer el enlace en ambos lados\" es "
+"absolutamente necesario con enlaces bidireccionales."
#. Tag: para
-#: tutorial.xml:932
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
"correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
-"Muchos desarrolladores programan a la defensiva y crean métodos de "
-"manejo de un enlace para establecer correctamente ambos lados, por ejemplo "
-"en <literal>Person</literal>:"
+"Muchos desarrolladores programan a la defensiva y crean métodos de "
+"administración de enlaces para establecer correctamente ambos lados, (por "
+"ejemplo, en <literal>Person</literal>):"
-#. Tag: programlisting
-#: tutorial.xml:937
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-"<![CDATA[protected Set getEvents() {\n"
-" return events;\n"
-"}\n"
-"\n"
-"protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-"}\n"
-"\n"
-"public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-"}\n"
-"\n"
-"public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-"}]]>"
-
#. Tag: para
-#: tutorial.xml:939
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The get and set methods for the collection are now protected. This allows "
"classes in the same package and subclasses to still access the methods, but "
"prevents everybody else from altering the collections directly. Repeat the "
"steps for the collection on the other side."
msgstr ""
-"Nota que los métodos get y set para esta colección son ahora "
-"protegidos. Esto le permite a clases en el mismo paquete y a subclases "
-"acceder aún a los métodos, pero previene a cualquier otro de "
-"ensuciarse con la colección directamente (bueno, casi). Probablemente "
-"debas hacer lo mismo con la colección al otro lado."
+"Los métodos get y set para la colección ahora se encuentran protegidos. Esto "
+"le permite a las clases en el mismo paquete y a las subclases acceder aún a "
+"los métodos, pero impide a cualquier otro que desordene las colecciones "
+"directamente. Repita los pasos para la colección del otro lado."
#. Tag: para
-#: tutorial.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
"for Java, a bi-directional link is simply a matter of setting the references "
@@ -2498,32 +1509,27 @@
"as <literal>inverse</literal>. In a one-to-many association it has to be the "
"many-side, and in many-to-many association you can select either side."
msgstr ""
-"Y ¿qué del atributo de mapeo <literal>inverse</literal>? Para ti, y "
-"para Java, un enlace bidireccional es simplemente cuestión de "
-"establecer correctamente las referencias a ambos lados. Hibernate, sin "
-"embargo, no tiene suficiente información para arreglar correctamente "
-"sentencias <literal>INSERT</literal> y <literal>UPDATE</literal> de SQL "
-"(para evitar violación de restricciones), y necesita alguna ayuda "
-"para manejar asociaciones bidireccionales apropiadamente. El hacer un lado "
-"de la asociación <literal>inverse</literal> le dice a Hibernate que "
-"basicamente lo ignore, que lo considere un <emphasis>espejo</emphasis> del "
-"otro lado. Esto es todo lo necesario para que Hibernate resuelva todas las "
-"incidencias al transformar un modelo de navegación direccional a un "
-"esquema SQL de base de datos. Las reglas que tienes que recordar son "
-"directas: Todas las asociaciones bidireccionales necesitan uno de los lados "
-"como <literal>inverse</literal>. En una asociación uno-a-muchos debe "
-"ser el lado-de-muchos. En una asociación muchos-a-muchos, puedes "
-"tomar cualquier lado, no hay diferencia."
+"¿Y el atributo de mapeo <literal>inverse</literal>? Para usted y para Java, "
+"un enlace bidireccional es simplemente cuestión de establecer correctamente "
+"las referencias en ambos lados. Sin embargo, Hibernate no tiene suficiente "
+"información para organizar correctamente declaraciones <literal>INSERT</"
+"literal> y <literal>UPDATE</literal> de SQL (para evitar violaciones de "
+"restricciones). El hacer un lado de la asociación <literal>inverse</literal> "
+"le dice a Hibernate que lo considere un <emphasis>espejo</emphasis> del otro "
+"lado. Eso es todo lo necesario para que Hibernate resuelva todos los asuntos "
+"que surgen al transformar un modelo de navegación direccional a un esquema "
+"de base de datos SQL. Las reglas son muy simples: todas las asociaciones "
+"bidireccionales necesitan que uno de los lados sea <literal>inverse</"
+"literal>. En una asociación uno-a-muchos debe ser el lado-de-muchos; y en "
+"una asociación muchos-a-muchos, puede escoger cualquier lado."
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
-msgstr "Part 3 - The EventManager web application"
+msgstr "Part 3 - La aplicación web EventManager"
#. Tag: para
-#: tutorial.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
"<literal>Transaction</literal> almost like a standalone application. "
@@ -2531,119 +1537,40 @@
"<literal>EventManagerServlet</literal>. This servlet can list all events "
"stored in the database, and it provides an HTML form to enter new events."
msgstr ""
-"A Hibernate web application uses <literal>Session</literal> and "
-"<literal>Transaction</literal> almost like a standalone application. "
-"However, some common patterns are useful. We now write an "
-"<literal>EventManagerServlet</literal>. This servlet can list all events "
-"stored in the database, and it provides an HTML form to enter new events."
+"Una aplicación web de Hibernate utiliza <literal>Session</literal> y "
+"<literal>Transaction</literal> casi como una aplicación autónoma. Sin "
+"embargo, algunos patrones comunes son útiles. Ahora puede escribir un "
+"<literal>EventManagerServlet</literal>. Este servlet puede enumerar todos "
+"los eventos almacenados en la base de datos y proporciona una forma HTML "
+"para ingresar eventos nuevos."
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
-msgstr "Writing the basic servlet"
+msgstr "Escritura de un servlet básico"
#. Tag: para
-#: tutorial.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
"handles HTTP <literal>GET</literal> requests, we will only implement the "
"<literal>doGet()</literal> method:"
msgstr ""
-"The servlet handles HTTP <literal>GET</literal> requests only, hence, the "
-"method we implement is <literal>doGet()</literal>:"
+"Primero necesitamos crear nuestro servlet de procesamiento básico. Ya que "
+"nuestro servlet solo maneja pedidos <literal>GET</literal> HTTP sólamente, "
+"solo implementaremos el método <literal>doGet()</literal>:"
-#. Tag: programlisting
-#: tutorial.xml:980
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-"<![CDATA[protected void doGet(HttpServletRequest request,\n"
-" HttpServletResponse "
-"response)\n"
-" throws ServletException, "
-"IOException {\n"
-" \n"
-" SimpleDateFormat "
-"dateFormatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n"
-" \n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil."
-"getSessionFactory()\n"
-" .getCurrentSession()."
-"beginTransaction();\n"
-" \n"
-" // Process request and "
-"render page...\n"
-" \n"
-" // End unit of work\n"
-" HibernateUtil."
-"getSessionFactory()\n"
-" .getCurrentSession()."
-"getTransaction().commit();\n"
-" \n"
-" } catch (Exception ex) {\n"
-" HibernateUtil."
-"getSessionFactory()\n"
-" .getCurrentSession()."
-"getTransaction().rollback();\n"
-" throw new ServletException"
-"(ex);\n"
-" }\n"
-" \n"
-" }]]>"
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
"EventManagerServlet.java</filename>"
msgstr ""
+"Guarde este servlet como <filename>src/main/java/org/hibernate/tutorial/web/"
+"EventManagerServlet.java</filename>"
#. Tag: para
-#: tutorial.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
"When a request hits the servlet, a new Hibernate <literal>Session</literal> "
@@ -2652,16 +1579,16 @@
"started. All data access occurs inside a transaction irrespective of whether "
"the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
-"The pattern we are applying here is called <emphasis>session-per-request</"
-"emphasis>. When a request hits the servlet, a new Hibernate "
-"<literal>Session</literal> is opened through the first call to "
-"<literal>getCurrentSession()</literal> on the <literal>SessionFactory</"
-"literal>. Then a database transaction is started—all data access as to "
-"occur inside a transaction, no matter if data is read or written (we don't "
-"use the auto-commit mode in applications)."
+"El patrón aplicado aquà se llama <emphasis>sesión-por-petición</emphasis>. "
+"Cuando una petición llega al servlet, se abre una nueva <literal>Session</"
+"literal> de Hibernate por medio de la primera llamada a "
+"<literal>getCurrentSession()</literal> en el <literal>SessionFactory</"
+"literal>. Entonces se inicia una transacción de la base de datos. Todo "
+"acceso a los datos tiene que suceder dentro de una transacción, sin importar "
+"que los datos sean leÃdos o escritos . No utilice el modo auto-commit en las "
+"aplicaciones."
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2669,24 +1596,23 @@
"that is scoped to the whole request. Use <literal>getCurrentSession()</"
"literal>, so that it is automatically bound to the current Java thread."
msgstr ""
-"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
-"for every database operation. Use one Hibernate <literal>Session</literal> "
-"that is scoped to the whole request. Use <literal>getCurrentSession()</"
-"literal>, so that it is automatically bound to the current Java thread."
+"<emphasis>No</emphasis> utilice una nueva <literal>Session</literal> de "
+"Hibernate para cada operación de base de datos. Utilice una "
+"<literal>Session</literal> Hibernate que cubra el campo de todo el pedido. "
+"Utilice <literal>getCurrentSession()</literal> para vincularlo "
+"automáticamente al hilo de Java actual."
#. Tag: para
-#: tutorial.xml:1003
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
"HTML is rendered. We will get to that part soon."
msgstr ""
-"Next, the possible actions of the request are processed and the response "
-"HTML is rendered. We'll get to that part soon."
+"Después, se procesan las acciones posibles del pedido y se entrega la "
+"respuesta HTML. Llegaremos a esa parte muy pronto. "
#. Tag: para
-#: tutorial.xml:1008
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
"If any problems occurred during processing or rendering, an exception will "
@@ -2697,109 +1623,32 @@
"called <emphasis>Open Session in View</emphasis>. You will need it as soon "
"as you consider rendering your view in JSP, not in a servlet."
msgstr ""
-"Finally, the unit of work ends when processing and rendering is complete. If "
-"any problem occured during processing or rendering, an exception will be "
-"thrown and the database transaction rolled back. This completes the "
-"<literal>session-per-request</literal> pattern. Instead of the transaction "
-"demarcation code in every servlet you could also write a servlet filter. See "
-"the Hibernate website and Wiki for more information about this pattern, "
-"called <emphasis>Open Session in View</emphasis>—you'll need it as "
-"soon as you consider rendering your view in JSP, not in a servlet."
+"Finalmente, la unidad de trabajo termina cuando se completa el procesamiento "
+"y la entrega. Si surgió algún problema durante el procesamiento o la "
+"entrega , se presentará una excepción y la transacción de la base de datos "
+"se deshará. Esto completa el patrón <literal>session-per-request</literal>. "
+"En vez del código de demarcación de la transacción en todo servlet, también "
+"podrÃa escribir un filtro de servlet. Véa el sitio web de Hibernate y el "
+"Wiki para obtener más información sobre este patrón llamado <emphasis>sesión "
+"abierta en vista</emphasis>. Lo necesitará tan pronto como considere "
+"representar su vista en JSP, no en un servlet."
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
-msgstr "Processing and rendering"
+msgstr "Procesamiento y entrega"
#. Tag: para
-#: tutorial.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
msgstr ""
-"Let's implement the processing of the request and rendering of the page."
+"Ahora puede implementar el procesamiento del pedido y la representación de "
+"la página."
-#. Tag: programlisting
-#: tutorial.xml:1028
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-"<![CDATA[// Write HTML header\n"
-" PrintWriter out = response."
-"getWriter();\n"
-" out.println"
-"(\"<html><head><title>Event Manager</title></head><body>\");\n"
-" \n"
-" // Handle "
-"actions\n"
-" if ( \"store\"."
-"equals(request.getParameter(\"action\")) ) {\n"
-" \n"
-" String "
-"eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate "
-"= request.getParameter(\"eventDate\");\n"
-" \n"
-" if ( \"\".equals"
-"(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println"
-"(\"<b><i>Please enter event title and date.</i></b>\");\n"
-" } else {\n"
-" createAndStoreEvent"
-"(eventTitle, dateFormatter.parse(eventDate));\n"
-" out.println"
-"(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-" \n"
-" // Print page\n"
-" printEventForm"
-"(out);\n"
-" listEvents(out, "
-"dateFormatter);\n"
-" \n"
-" // Write HTML "
-"footer\n"
-" out.println(\"</"
-"body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-
#. Tag: para
-#: tutorial.xml:1030
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
"complex application—keep in mind that we are only illustrating basic "
@@ -2808,167 +1657,37 @@
"events in the database are printed. The first method is trivial and only "
"outputs HTML:"
msgstr ""
-"Granted, this coding style with a mix of Java and HTML would not scale in a "
-"more complex application—keep in mind that we are only illustrating "
-"basic Hibernate concepts in this tutorial. The code prints an HTML header "
-"and a footer. Inside this page, an HTML form for event entry and a list of "
-"all events in the database are printed. The first method is trivial and only "
-"outputs HTML:"
+"Dado que este estilo de codificación con una mezcla de Java y HTML no "
+"escalarÃa en una aplicación más compleja - tenga en cuenta que sólo estamos "
+"ilustrando los conceptos básicos de Hibernate en este tutorial. El código "
+"imprime una cabecera y un pie de página HTML. Dentro de esta página se "
+"imprime una forma HTML para entrada de eventos y se imprime una lista de "
+"todos los eventos en la base de datos. El primer método es trivial y su "
+"salida se realiza únicamente en HTML:"
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
-msgstr ""
-"<![CDATA[private void printEventForm(PrintWriter out) {\n"
-" out."
-"println(\"<h2>Add new event:</h2>\");\n"
-" out."
-"println(\"<form>\");\n"
-" out."
-"println(\"Title: <input name='eventTitle' length='50'/><br/>\");\n"
-" out."
-"println(\"Date (e.g. 24.12.2009): <input name='eventDate' length='10'/><br/>"
-"\");\n"
-" out."
-"println(\"<input type='submit' name='action' value='store'/>\");\n"
-" out."
-"println(\"</form>\");\n"
-" }]]>"
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
"<literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
-"The <literal>listEvents()</literal> method uses the Hibernate "
-"<literal>Session</literal> bound to the current thread to execute a query:"
+"El método <literal>listEvents()</literal> utiliza Hibernate "
+"<literal>Session</literal> vinculado al hilo actual para ejecutar una "
+"petición:"
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-"<![CDATA[private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-" \n"
-" List "
-"result = HibernateUtil.getSessionFactory()\n"
-" ."
-"getCurrentSession().createCriteria(Event.class).list();\n"
-" if "
-"(result.size() > 0) {\n"
-" out."
-"println(\"<h2>Events in database:</h2>\");\n"
-" out."
-"println(\"<table border='1'>\");\n"
-" out."
-"println(\"<tr>\");\n"
-" out."
-"println(\"<th>Event title</th>\");\n"
-" out."
-"println(\"<th>Event date</th>\");\n"
-" out."
-"println(\"</tr>\");\n"
-" for "
-"(Iterator it = result.iterator(); it.hasNext();) {\n"
-" Event "
-"event = (Event) it.next();\n"
-" out."
-"println(\"<tr>\");\n"
-" out."
-"println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out."
-"println(\"<td>\" + dateFormatter.format(event.getDate()) + \"</td>\");\n"
-" out."
-"println(\"</tr>\");\n"
-" }\n"
-" out."
-"println(\"</table>\");\n"
-" }\n"
-" }]]>"
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
"<literal>createAndStoreEvent()</literal> method, which also uses the "
"<literal>Session</literal> of the current thread:"
msgstr ""
-"Finally, the <literal>store</literal> action is dispatched to the "
-"<literal>createAndStoreEvent()</literal> method, which also uses the "
-"<literal>Session</literal> of the current thread:"
+"Finalmente, la acción <literal>store</literal> se despacha al método "
+"<literal>createAndStoreEvent()</literal>, el cual también utiliza la "
+"<literal>Session</literal> del hilo actual:"
-#. Tag: programlisting
-#: tutorial.xml:1055
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-"<![CDATA[protected void createAndStoreEvent(String title, Date theDate) {\n"
-" Event "
-"theEvent = new Event();\n"
-" theEvent."
-"setTitle(title);\n"
-" theEvent."
-"setDate(theDate);\n"
-" \n"
-" HibernateUtil."
-"getSessionFactory()\n"
-" ."
-"getCurrentSession().save(theEvent);\n"
-" }]]"
-">"
-
#. Tag: para
-#: tutorial.xml:1057
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
"single <literal>Session</literal> and <literal>Transaction</literal>. As "
@@ -2979,106 +1698,55 @@
"data access code into data access objects (the DAO pattern). See the "
"Hibernate Wiki for more examples."
msgstr ""
-"That's it, the servlet is complete. A request to the servlet will be "
-"processed in a single <literal>Session</literal> and <literal>Transaction</"
-"literal>. As earlier in the standalone application, Hibernate can "
-"automatically bind these ojects to the current thread of execution. This "
-"gives you the freedom to layer your code and access the "
-"<literal>SessionFactory</literal> in any way you like. Usually you'd use a "
-"more sophisticated design and move the data access code into data access "
-"objects (the DAO pattern). See the Hibernate Wiki for more examples."
+"El servlet se encuentra completo. Un pedido al servlet será procesado en una "
+"sola <literal>Session</literal> y <literal>Transaction</literal>. Como lo "
+"vimos antes en la aplicación autónoma, Hibernate puede enlazar "
+"automáticamente estos objetos al hilo actual de ejecución. Esto le da la "
+"libertad de utilizar capas en su código y acceder a la "
+"<literal>SessionFactory</literal> de cualquier manera que lo desee. "
+"Usualmente, usted utilizarÃa un diseño más sofisticado y moverÃa el código "
+"de acceso de datos a los objetos de acceso de datos (el patrón DAO). "
+"Refiérase al Wiki de Hibernate para ver más ejemplos."
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
-msgstr "Deploying and testing"
+msgstr "Despliegue y prueba"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
"First we must define the WAR descriptor as <filename>src/main/webapp/WEB-INF/"
"web.xml</filename>"
msgstr ""
+"Para implementar esta aplicación para prueba debemos crear una Web ARchive "
+"(WAR). Primero debemos definir el descriptor WAR como <filename>src/main/"
+"webapp/WEB-INF/web.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:1079
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-" <web-app version="
-"\"2.4\"\n"
-" xmlns="
-"\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi="
-"\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:"
-"schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/"
-"j2ee/web-app_2_4.xsd\">\n"
-" \n"
-" <servlet>\n"
-" <servlet-"
-"name>Event Manager</servlet-name>\n"
-" <servlet-"
-"class>events.EventManagerServlet</servlet-class>\n"
-" </servlet>\n"
-" \n"
-" <servlet-"
-"mapping>\n"
-" <servlet-"
-"name>Event Manager</servlet-name>\n"
-" <url-"
-"pattern>/eventmanager</url-pattern>\n"
-" </servlet-"
-"mapping>\n"
-" </web-app>]]>"
-
#. Tag: para
-#: tutorial.xml:1081
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
"directory and copy the <filename>hibernate-tutorial.war</filename> file into "
"your Tomcat <filename>webapps</filename> directory."
msgstr ""
-"To build and deploy call <literal>ant war</literal> in your project "
-"directory and copy the <literal>hibernate-tutorial.war</literal> file into "
-"your Tomcat <literal>webapp</literal> directory. If you don't have Tomcat "
-"installed, download it and follow the installation instructions. You don't "
-"have to change any Tomcat configuration to deploy this application though."
+"Para construir y desplegar llame a <literal>mvn package</literal> en su "
+"directorio de proyecto y copie el archivo <literal>hibernate-tutorial.war</"
+"literal> en su directorio <literal>webapp</literal> Tomcat. "
#. Tag: para
-#: tutorial.xml:1088
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
+"Si no tiene Tomcat instalado, descárguelo de <ulink url=\"http://tomcat."
+"apache.org/\" /> y siga las instrucciones de instalación. Nuestra aplicación "
+"no requiere cambios a la configuración estándar de Tomcat."
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -3088,698 +1756,26 @@
"<literal>HibernateUtil</literal> is called) and to get the detailed output "
"if any exceptions occurs."
msgstr ""
-"Once deployed and Tomcat is running, access the application at "
-"<literal>http://localhost:8080/hibernate-tutorial/eventmanager</literal>. "
-"Make sure you watch the Tomcat log to see Hibernate initialize when the "
-"first request hits your servlet (the static initializer in "
-"<literal>HibernateUtil</literal> is called) and to get the detailed output "
-"if any exceptions occurs."
+"Una vez que se encuentre desplegado y que Tomcat esté ejecutando, acceda la "
+"aplicación en <literal>http://localhost:8080/hibernate-tutorial/"
+"eventmanager</literal>. Asegúrese de ver el registro de Tomcat para ver a "
+"Hibernate iniciar cuando llegue el primer pedido a su servlet (se llama al "
+"inicializador estático en <literal>HibernateUtil</literal>) y para obetener "
+"la salida detallada si ocurre alguna excepción."
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
-msgstr "Summary"
+msgstr "Resumen"
#. Tag: para
-#: tutorial.xml:1111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
"application and a small web application. More tutorials are available from "
"the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
-"Este tutorial cubrió los fundamentos de escribir una simple "
-"aplicación independiente de Hibernate."
-
-#~ msgid "Introduction to Hibernate"
-#~ msgstr "Introducción a Hibernate"
-
-#~ msgid "Preface"
-#~ msgstr "Prefacio"
-
-#~ msgid ""
-#~ "This chapter is an introductory tutorial for new users of Hibernate. We "
-#~ "start with a simple command line application using an in-memory database "
-#~ "and develop it in easy to understand steps."
-#~ msgstr ""
-#~ "Este capítulo es un tutorial introductorio de Hibernate. "
-#~ "Comenzamos con una aplicación simple de línea de comandos "
-#~ "usando un base de datos en-memoria y desarrollándola en fá"
-#~ "cil para entender los pasos."
-
-#~ msgid ""
-#~ "This tutorial is intended for new users of Hibernate but requires Java "
-#~ "and SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-"
-#~ "party libraries we name are for JDK 1.4 and 5.0. You might need others "
-#~ "for JDK 1.3."
-#~ msgstr ""
-#~ "Este tutorial está concebido para usuarios nuevos de Hibernate "
-#~ "pero requiere conocimiento en Java y SQL. Está basado en un "
-#~ "tutorial de Michael Gloegl. Las bibliotecas de terceros que mencionamos "
-#~ "son para JDK 1.4 y 5.0. Podrías necesitar otras para JDK 1.3."
-
-#~ msgid ""
-#~ "The source code for the tutorial is included in the distribution in the "
-#~ "<literal>doc/reference/tutorial/</literal> directory."
-#~ msgstr ""
-#~ "UNTRANSLATED!!! The source code for the tutorial is included in the "
-#~ "distribution in the <literal>doc/reference/tutorial/</literal> directory."
-
-#~ msgid ""
-#~ "First, we'll create a simple console-based Hibernate application. We use "
-#~ "an Java database (HSQL DB), so we do not have to install any database "
-#~ "server."
-#~ msgstr ""
-#~ "Primero, crearemos una aplicación simple de Hibenate basada en "
-#~ "consola. Usamos usamos una base de datos en-memoria (HSQL DB), de modo "
-#~ "que no necesitamos instalar ningún servidor de base de datos."
-
-#~ msgid ""
-#~ "The first thing we do, is set up our development directory and put all "
-#~ "the Java libraries we need into it. Download the Hibernate distribution "
-#~ "from the Hibernate website. Extract the package and place all required "
-#~ "libraries found in <literal>/lib</literal> into into the <literal>/lib</"
-#~ "literal> directory of your new development working directory. It should "
-#~ "look like this:"
-#~ msgstr ""
-#~ "La primera cosa que hacemos, es armar nuestro directorio de desarrollo y "
-#~ "poner en él todas las bibliotecas Java que necesitamos. Descarga "
-#~ "la distribución de Hibernate del sitio web de Hibernate. Extrae el "
-#~ "paquete y coloca todas las bibliotecas requeridas encontradas en "
-#~ "<literal>/lib</literal> dentro del directorio <literal>/lib</literal> de "
-#~ "nuestro nuevo directorio de desarrollo de trabajo. Debe asemejarse a esto:"
-
-#~ msgid ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " antlr.jar\n"
-#~ " cglib.jar\n"
-#~ " asm.jar\n"
-#~ " asm-attrs.jars\n"
-#~ " commons-collections.jar\n"
-#~ " commons-logging.jar\n"
-#~ " hibernate3.jar\n"
-#~ " jta.jar\n"
-#~ " dom4j.jar\n"
-#~ " log4j.jar ]]>"
-#~ msgstr ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " antlr.jar\n"
-#~ " cglib-full.jar\n"
-#~ " asm.jar\n"
-#~ " asm-attrs.jars\n"
-#~ " commons-collections.jar\n"
-#~ " commons-logging.jar\n"
-#~ " ehcache.jar\n"
-#~ " hibernate3.jar\n"
-#~ " jta.jar\n"
-#~ " dom4j.jar\n"
-#~ " log4j.jar ]]>"
-
-#~ msgid ""
-#~ "This is the minimum set of required libraries (note that we also copied "
-#~ "hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of "
-#~ "writing</emphasis>. The Hibernate release you are using might require "
-#~ "more or less libraries. See the <literal>README.txt</literal> file in the "
-#~ "<literal>lib/</literal> directory of the Hibernate distribution for more "
-#~ "information about required and optional third-party libraries. (Actually, "
-#~ "Log4j is not required but preferred by many developers.)"
-#~ msgstr ""
-#~ "Este es el conjunto mínimo de bibliotecas requeridas para "
-#~ "Hibernate (observa que también hemos copiado hibernate3.jar, el "
-#~ "fichero principal). Ver el fichero <literal>README.txt</literal> en el "
-#~ "directorio <literal>lib/</literal> de la distribución de Hibernate "
-#~ "para más información sobre bibliotecas de terceros "
-#~ "requeridas y opcionales. (Realmente, Log4J no es requerida aunque "
-#~ "preferida por muchos desarrolladores)."
-
-#~ msgid ""
-#~ "Our first persistent class is a simple JavaBean class with some "
-#~ "properties:"
-#~ msgstr ""
-#~ "Nuestra primera clase persistente es un JavaBean simple con algunas "
-#~ "propiedades:"
-
-#~ msgid ""
-#~ "Place this Java source file in a directory called <literal>src</literal> "
-#~ "in the development folder, and in its correct package. The directory "
-#~ "should now look like this:"
-#~ msgstr ""
-#~ "Coloca este fichero de código Java en un directorio llamado "
-#~ "<literal>src</literal> en la carpeta de desarrollo. El directorio ahora "
-#~ "debe verse como esto:"
-
-#~ msgid ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " <Hibernate and third-party libraries>\n"
-#~ "+src\n"
-#~ " +events\n"
-#~ " Event.java]]>"
-#~ msgstr ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " <Hibernate and third-party libraries>\n"
-#~ "+src\n"
-#~ " Event.java]]>"
-
-#~ msgid "In the next step, we tell Hibernate about this persistent class."
-#~ msgstr ""
-#~ "En el próximo paso, le decimos a Hibernate sobre esta clase "
-#~ "persistente."
-
-#~ msgid ""
-#~ "The <literal>id</literal> element is the declaration of the identifer "
-#~ "property, <literal>name=\"id\"</literal> declares the name of the Java "
-#~ "property - Hibernate will use the getter and setter methods to access the "
-#~ "property. The column attribute tells Hibernate which column of the "
-#~ "<literal>EVENTS</literal> table we use for this primary key. The nested "
-#~ "<literal>generator</literal> element specifies the identifier generation "
-#~ "strategy, in this case we used <literal>native</literal>, which picks the "
-#~ "best strategy depending on the configured database (dialect). Hibernate "
-#~ "supports database generated, globally unique, as well as application "
-#~ "assigned identifiers (or any strategy you have written an extension for)."
-#~ msgstr ""
-#~ "El elemento <literal>id</literal> el la declaración de la "
-#~ "propiedad identificadora, <literal>name=\"id\"</literal> declara el "
-#~ "nombre de la propiedad Java. Hibernate usará los métodos "
-#~ "getter y setter para acceder a la propiedad. El attributo de columna dice "
-#~ "a Hibernate cuál columna de la tabla <literal>EVENTS</literal> "
-#~ "usamos para esta clave primaria. El elemento anidado <literal>generator</"
-#~ "literal> especifica la estrategia de generación de "
-#~ "identificadores, en este caso usamos <literal>increment</literal>, que es "
-#~ "un método muy simple de incremento de número en-memoria "
-#~ "útil mayormente para testeo (y tutoriales). Hibernate tambié"
-#~ "n soporta identificadores generados por base de datos, globalmente "
-#~ "únicos, así como también asignados por "
-#~ "aplicación (o cualquier estrategia para la que hayas escrito una "
-#~ "extensión)."
-
-#~ msgid ""
-#~ "This mapping file should be saved as <literal>Event.hbm.xml</literal>, "
-#~ "right in the directory next to the <literal>Event</literal> Java class "
-#~ "source file. The naming of mapping files can be arbitrary, however the "
-#~ "<literal>hbm.xml</literal> suffix is a convention in the Hibernate "
-#~ "developer community. The directory structure should now look like this:"
-#~ msgstr ""
-#~ "Este fichero de mapeo debe ser salvado como <literal>Event.hbm.xml</"
-#~ "literal>, justo en el directorio próximo al fichero de có"
-#~ "digo fuente de la clase Java <literal>Event</literal>. El nombrado de los "
-#~ "ficheros de mapeo puede ser arbitrario, sin embargo, el sufijo "
-#~ "<literal>hbm.xml</literal> se ha vuelto una convención el la "
-#~ "comunidad de desarrolladores de Hibernate. La estructura de directorio "
-#~ "debe ahora verse como esto:"
-
-#~ msgid ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " <Hibernate and third-party libraries>\n"
-#~ "+src\n"
-#~ " +events\n"
-#~ " Event.java\n"
-#~ " Event.hbm.xml]]>"
-#~ msgstr ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " <Hibernate and third-party libraries>\n"
-#~ "+src\n"
-#~ " Event.java\n"
-#~ " Event.hbm.xml]]>"
-
-#~ msgid "We continue with the main configuration of Hibernate."
-#~ msgstr "Continuamos con la configuración principal de Hibernate."
-
-#~ msgid ""
-#~ "We now have a persistent class and its mapping file in place. It is time "
-#~ "to configure Hibernate. Before we do this, we will need a database. HSQL "
-#~ "DB, a java-based SQL DBMS, can be downloaded from the HSQL DB website"
-#~ "(http://hsqldb.org/). Actually, you only need the <literal>hsqldb.jar</"
-#~ "literal> from this download. Place this file in the <literal>lib/</"
-#~ "literal> directory of the development folder."
-#~ msgstr ""
-#~ "Tenemos ahora una clase persistente y su fichero de mapeo en su sitio. Es "
-#~ "momento de configurar Hibernate. Antes que hagamos esto, necesitaremos "
-#~ "una base de datos. HSQL DB, un DBMS SQL en-memoria basado en Java, puede "
-#~ "ser descargado del sitio web de HSQL DB. Realmente, de esta descarga "
-#~ "sólo necesitas el <literal>hsqldb.jar</literal>. Coloca este "
-#~ "fichero en el directorio <literal>lib/</literal> de la carpeta de "
-#~ "desarrollo."
-
-#~ msgid ""
-#~ "Hibernate is the layer in your application which connects to this "
-#~ "database, so it needs connection information. The connections are made "
-#~ "through a JDBC connection pool, which we also have to configure. The "
-#~ "Hibernate distribution contains several open source JDBC connection "
-#~ "pooling tools, but will use the Hibernate built-in connection pool for "
-#~ "this tutorial. Note that you have to copy the required library into your "
-#~ "classpath and use different connection pooling settings if you want to "
-#~ "use a production-quality third party JDBC pooling software."
-#~ msgstr ""
-#~ "Hibernate es la capa en tu aplicación que se conecta a esta base "
-#~ "de datos, de modo que necesita información de conexión. Las "
-#~ "conexiones se hacen a través de un pool de conexiones JDBC, que "
-#~ "tambén tenemos que configurar. La distribución de Hibernate "
-#~ "contiene muchas herramientas de pooling de conexiones JDBC de có"
-#~ "digo abierto, pero para este tutorial usaremos el pool de conexiones "
-#~ "prefabricado dentro de Hibernate. Observa que tienes que copiar la "
-#~ "biblioteca requerida en tu classpath y usar diferentes configuraciones de "
-#~ "pooling de conexiones si quieres usar un software de pooling JDBC de "
-#~ "terceros de calidad de producción."
-
-#~ msgid ""
-#~ "Copy this file into the source directory, so it will end up in the root "
-#~ "of the classpath. Hibernate automatically looks for a file called "
-#~ "<literal>hibernate.cfg.xml</literal> in the root of the classpath, on "
-#~ "startup."
-#~ msgstr ""
-#~ "Copia este fichero dentro del directorio de código fuente, de modo "
-#~ "que termine ubicado en la raiíz del classpath. Hibernate busca "
-#~ "automáticamente un fichero llamado <literal>hibernate.cfg.xml</"
-#~ "literal> en la raíz del classpath al arrancar."
-
-#~ msgid ""
-#~ "We'll now build the tutorial with Ant. You will need to have Ant "
-#~ "installed - get it from the <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Ant download page</ulink>. How to install Ant will not "
-#~ "be covered here. Please refer to the <ulink url=\"http://ant.apache.org/"
-#~ "manual/index.html\">Ant manual</ulink>. After you have installed Ant, we "
-#~ "can start to create the buildfile. It will be called <literal>build.xml</"
-#~ "literal> and placed directly in the development directory."
-#~ msgstr ""
-#~ "Construiremos ahora el tutorial con Ant. Necesitarás tener Ant "
-#~ "instalado. Obténlo de <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Página de descarga de Ant</ulink>. No se "
-#~ "cubrirá aquí cómo instalar Ant. Por favor "
-#~ "refiérete al <ulink url=\"http://ant.apache.org/manual/index.html"
-#~ "\"> Manual de Ant</ulink>. Después que hayas instalado Ant, "
-#~ "podemos comenzar a crear el buildfile. Será llamado <literal>build."
-#~ "xml</literal> y colocado directamente en el directorio de desarrollo."
-
-#~ msgid "A basic build file looks like this:"
-#~ msgstr "Reparar Ant"
-
-#~ msgid ""
-#~ "<![CDATA[<project name=\"hibernate-tutorial\" default=\"compile\">\n"
-#~ "\n"
-#~ " <property name=\"sourcedir\" value=\"${basedir}/src\"/>\n"
-#~ " <property name=\"targetdir\" value=\"${basedir}/bin\"/>\n"
-#~ " <property name=\"librarydir\" value=\"${basedir}/lib\"/>\n"
-#~ "\n"
-#~ " <path id=\"libraries\">\n"
-#~ " <fileset dir=\"${librarydir}\">\n"
-#~ " <include name=\"*.jar\"/>\n"
-#~ " </fileset>\n"
-#~ " </path>\n"
-#~ "\n"
-#~ " <target name=\"clean\">\n"
-#~ " <delete dir=\"${targetdir}\"/>\n"
-#~ " <mkdir dir=\"${targetdir}\"/>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ " <target name=\"compile\" depends=\"clean, copy-resources\">\n"
-#~ " <javac srcdir=\"${sourcedir}\"\n"
-#~ " destdir=\"${targetdir}\"\n"
-#~ " classpathref=\"libraries\"/>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ " <target name=\"copy-resources\">\n"
-#~ " <copy todir=\"${targetdir}\">\n"
-#~ " <fileset dir=\"${sourcedir}\">\n"
-#~ " <exclude name=\"**/*.java\"/>\n"
-#~ " </fileset>\n"
-#~ " </copy>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ "</project>]]>"
-#~ msgstr ""
-#~ "Observa que la distribución de Ant está por defecto rota "
-#~ "(como se describe en el FAQ de Ant) y tiene que ser reparado por ti, por "
-#~ "ejemplo, si quisieras usar JUnit desde dentro de tu fichero de "
-#~ "construcción. Para hacer que funcione la tarea de JUnit (no lo "
-#~ "necesitaremos en este tutorial), copia junit.jar a <literal>ANT_HOME/lib</"
-#~ "literal> o quita el trozo de plugin <literal>ANT_HOME/lib/ant-junit.jar</"
-#~ "literal>."
-
-#~ msgid ""
-#~ "This will tell Ant to add all files in the lib directory ending with "
-#~ "<literal>.jar</literal> to the classpath used for compilation. It will "
-#~ "also copy all non-Java source files to the target directory, e.g. "
-#~ "configuration and Hibernate mapping files. If you now run Ant, you should "
-#~ "get this output:"
-#~ msgstr "Un fichero de construcción básico se ve como esto:"
-
-#~ msgid ""
-#~ "<![CDATA[C:\\hibernateTutorial\\>ant\n"
-#~ "Buildfile: build.xml\n"
-#~ "\n"
-#~ "copy-resources:\n"
-#~ " [copy] Copying 2 files to C:\\hibernateTutorial\\bin\n"
-#~ "\n"
-#~ "compile:\n"
-#~ " [javac] Compiling 1 source file to C:\\hibernateTutorial\\bin\n"
-#~ "\n"
-#~ "BUILD SUCCESSFUL\n"
-#~ "Total time: 1 second ]]>"
-#~ msgstr ""
-#~ "<![CDATA[<project name=\"hibernate-tutorial\" default=\"compile\">\n"
-#~ "\n"
-#~ " <property name=\"sourcedir\" value=\"${basedir}/src\"/>\n"
-#~ " <property name=\"targetdir\" value=\"${basedir}/bin\"/>\n"
-#~ " <property name=\"librarydir\" value=\"${basedir}/lib\"/>\n"
-#~ "\n"
-#~ " <path id=\"libraries\">\n"
-#~ " <fileset dir=\"${librarydir}\">\n"
-#~ " <include name=\"*.jar\"/>\n"
-#~ " </fileset>\n"
-#~ " </path>\n"
-#~ "\n"
-#~ " <target name=\"clean\">\n"
-#~ " <delete dir=\"${targetdir}\"/>\n"
-#~ " <mkdir dir=\"${targetdir}\"/>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ " <target name=\"compile\" depends=\"clean, copy-resources\">\n"
-#~ " <javac srcdir=\"${sourcedir}\"\n"
-#~ " destdir=\"${targetdir}\"\n"
-#~ " classpathref=\"libraries\"/>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ " <target name=\"copy-resources\">\n"
-#~ " <copy todir=\"${targetdir}\">\n"
-#~ " <fileset dir=\"${sourcedir}\">\n"
-#~ " <exclude name=\"**/*.java\"/>\n"
-#~ " </fileset>\n"
-#~ " </copy>\n"
-#~ " </target>\n"
-#~ "\n"
-#~ "</project>]]>"
-
-#~ msgid ""
-#~ "Place <literal>HibernateUtil.java</literal> in the development source "
-#~ "directory, in a package next to <literal>events</literal>:"
-#~ msgstr ""
-#~ "Esta clase no ólo produce la <literal>SessionFactory</literal> "
-#~ "global en su inicializador static (llamado sólo una vez por la JVM "
-#~ "al cargar la clase), sino que también tiene una variable "
-#~ "<literal>ThreadLocal</literal> para tener la <literal>Session</literal> "
-#~ "para la hebra actual. No importa cuándo llames a "
-#~ "<literal>HibernateUtil.currentSession()</literal>, siempre "
-#~ "devolverá la misma unidad de trabajo de Hibernate en la misma "
-#~ "hebra. Una llamada a <literal>HibernateUtil.closeSession()</literal> "
-#~ "termina la unidad de trabajo actualmente asociada a la hebra."
-
-#~ msgid ""
-#~ "<![CDATA[.\n"
-#~ "+lib\n"
-#~ " <Hibernate and third-party libraries>\n"
-#~ "+src\n"
-#~ " +events\n"
-#~ " Event.java\n"
-#~ " Event.hbm.xml\n"
-#~ " +util\n"
-#~ " HibernateUtil.java\n"
-#~ " hibernate.cfg.xml\n"
-#~ "+data\n"
-#~ "build.xml]]>"
-#~ msgstr ""
-#~ "Asegúrate de entender el concepto Java de una variable local a una "
-#~ "hebra antes de usar esta ayuda. Una clase <literal>HibernateUtil</"
-#~ "literal> más potente puede encontrarse en <literal>CaveatEmptor</"
-#~ "literal>, http://caveatemptor.hibernate.org/, así como en el libro "
-#~ "\"Java Persistence with Hibernate\". Observa que esta clase no es "
-#~ "necesaria si despliegas Hibernate en un servidor de aplicaciones J2EE: "
-#~ "una <literal>Session</literal> será automáticamente ligada "
-#~ "a la transacción JTA actual, y puedes buscar la "
-#~ "<literal>SessionFactory</literal> a través de JNDI. Si usas JBoss "
-#~ "AS, Hibernate puede ser desplegado como un servicio de sistema manejado y "
-#~ "automáticamente ligará la <literal>SessionFactory</literal> "
-#~ "a un nombre JNDI."
-
-#~ msgid ""
-#~ "To run this first routine we have to add a callable target to the Ant "
-#~ "build file:"
-#~ msgstr ""
-#~ "¿Qué es lo que hacen <literal>Transaction.begin()</literal> y "
-#~ "<literal>commit()</literal>? ¿Dónde está el rollback en "
-#~ "caso que algo vaya mal? La API de <literal>Transaction</literal> de "
-#~ "Hibernate es opcional realmente, pero la usamos por conveniencia y "
-#~ "portabilidad. Si manejases la transacción de base de datos por ti "
-#~ "mismo (por ejemplo, llamando a <literal>session.connection.commit()</"
-#~ "literal>), ligarías el código a un entorno de despliegue "
-#~ "particular, en este JDBC directo no manejado. Estableciendo la fá"
-#~ "brica de <literal>Transaction</literal> en tu configuración de "
-#~ "Hibernate puedes desplegar tu capa de persistencia en cualquier sitio. "
-#~ "Echa una mirada al <xref linkend=\"transactions\"/> para más "
-#~ "información sobre manejo y demarcación de transacciones. "
-#~ "Hemos saltado también cualquier manejo de excepciones y rollback "
-#~ "en este ejemplo."
-
-#~ msgid ""
-#~ "<![CDATA[<target name=\"run\" depends=\"compile\">\n"
-#~ " <java fork=\"true\" classname=\"events.EventManager\" classpathref="
-#~ "\"libraries\">\n"
-#~ " <classpath path=\"${targetdir}\"/>\n"
-#~ " <arg value=\"${action}\"/>\n"
-#~ " </java>\n"
-#~ "</target>]]>"
-#~ msgstr ""
-#~ "Para ejecutar la primera rutina tenemos que agregar un objetivo llamable "
-#~ "al fichero de construcción de Ant:"
-
-#~ msgid ""
-#~ "The value of the <literal>action</literal> argument is set on the command "
-#~ "line when calling the target:"
-#~ msgstr ""
-#~ "<![CDATA[<target name=\"run\" depends=\"compile\">\n"
-#~ " <java fork=\"true\" classname=\"EventManager\" classpathref="
-#~ "\"libraries\">\n"
-#~ " <classpath path=\"${targetdir}\"/>\n"
-#~ " <arg value=\"${action}\"/>\n"
-#~ " </java>\n"
-#~ "</target>]]>"
-
-#~ msgid "<![CDATA[C:\\hibernateTutorial\\>ant run -Daction=store]]>"
-#~ msgstr ""
-#~ "El valor del argumento <literal>action</literal> es establecido por "
-#~ "línea de comandos al llamar al objetivo:"
-
-#~ msgid ""
-#~ "This is the <literal>INSERT</literal> executed by Hibernate, the question "
-#~ "marks represent JDBC bind parameters. To see the values bound as "
-#~ "arguments, or to reduce the verbosity of the log, check your "
-#~ "<literal>log4j.properties</literal>."
-#~ msgstr ""
-#~ "<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, "
-#~ "EVENT_ID) values (?, ?, ?)]]>"
-
-#~ msgid "Now, to execute and test all of this, follow these steps:"
-#~ msgstr ""
-#~ "Lo que hacemos aquí es usar una consulta HQL (Lenguaje de Consulta "
-#~ "de Hibernate o Hibernate Query Language) para cargar todos los objetos "
-#~ "<literal>Event</literal> existentes de la base de datos. Hibernate "
-#~ "generará el SQL apropiado, lo enviará a la base de datosy "
-#~ "poblará los objetos <literal>Event</literal> con datos. Puedes, "
-#~ "por supuesto, crear consultas más complejas con HQL."
-
-#~ msgid ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
-#~ msgstr "Now, to execute and test all of this, follow these steps:"
-
-#~ msgid ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
-#~ msgstr ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
-
-#~ msgid ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
-#~ msgstr ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
-
-#~ msgid ""
-#~ "Note: Most new Hibernate users fail at this point and we see questions "
-#~ "about <emphasis>Table not found</emphasis> error messages regularly. "
-#~ "However, if you follow the steps outlined above you will not have this "
-#~ "problem, as hbm2ddl creates the database schema on the first run, and "
-#~ "subsequent application restarts will use this schema. If you change the "
-#~ "mapping and/or database schema, you have to re-enable hbm2ddl once again."
-#~ msgstr ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
-
-#~ msgid ""
-#~ "Create a new mapping file called <literal>Person.hbm.xml</literal> (don't "
-#~ "forget the DTD reference at the top):"
-#~ msgstr ""
-#~ "<![CDATA[public class Person {\n"
-#~ "\n"
-#~ " private Long id;\n"
-#~ " private int age;\n"
-#~ " private String firstname;\n"
-#~ " private String lastname;\n"
-#~ "\n"
-#~ " Person() {}\n"
-#~ "\n"
-#~ " // Accessor methods for all properties, private setter for 'id'\n"
-#~ "\n"
-#~ "}]]>"
-
-#~ msgid ""
-#~ "We need a unidirectional, many-valued associations, implemented with a "
-#~ "<literal>Set</literal>. Let's write the code for this in the Java classes "
-#~ "and then map it:"
-#~ msgstr ""
-#~ "Agregaremos una colección de eventos a la clase <literal>Person</"
-#~ "literal>. De esta forma podemos navegar facilmente a los eventos de una "
-#~ "persona en particular, sin ejecutar una consulta explícita, "
-#~ "llamando a <literal>aPerson.getEvents()</literal>. Usamos una "
-#~ "colección Java, un <literal>Set</literal>, porque la "
-#~ "colección no contendrá elementos duplicados y el "
-#~ "ordenamiento no nos es relevante."
-
-#~ msgid ""
-#~ "We add a collection of value typed objects to the <literal>Person</"
-#~ "literal> entity. We want to store email addresses, so the type we use is "
-#~ "<literal>String</literal>, and the collection is again a <literal>Set</"
-#~ "literal>:"
-#~ msgstr ""
-#~ "Agregamos una colección de objetos tipificados en valor a la "
-#~ "entidad <literal>Person</literal>. Queremos almacenar direcciones de "
-#~ "email, de modo que el tipo que usamos es <literal>String</literal>, y la "
-#~ "colección es nuevamente un <literal>Set</literal>:"
-
-#~ msgid "Let's turn this into a small web application."
-#~ msgstr "Let's turn this into a small web application."
-
-#~ msgid ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
-#~ msgstr ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
-
-#~ msgid ""
-#~ "<![CDATA[package events;\n"
-#~ "\n"
-#~ "// Imports\n"
-#~ "\n"
-#~ "public class EventManagerServlet extends HttpServlet {\n"
-#~ "\n"
-#~ " // Servlet code\n"
-#~ "}]]>"
-#~ msgstr ""
-#~ "<![CDATA[package events;\n"
-#~ " \n"
-#~ " // Imports\n"
-#~ " \n"
-#~ " public class "
-#~ "EventManagerServlet extends HttpServlet {\n"
-#~ " \n"
-#~ " // Servlet code\n"
-#~ " }]]>"
-
-#~ msgid ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
-#~ msgstr ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
-
-#~ msgid ""
-#~ "<![CDATA[<target name=\"war\" depends=\"compile\">\n"
-#~ " <war destfile=\"hibernate-tutorial.war\" webxml=\"web.xml\">\n"
-#~ " <lib dir=\"${librarydir}\">\n"
-#~ " <exclude name=\"jsdk*.jar\"/>\n"
-#~ " </lib>\n"
-#~ "\n"
-#~ " <classes dir=\"${targetdir}\"/>\n"
-#~ " </war>\n"
-#~ "</target>]]>"
-#~ msgstr ""
-#~ "<![CDATA[<target name=\"war\" depends=\"compile\">\n"
-#~ " <war "
-#~ "destfile=\"hibernate-tutorial.war\" webxml=\"web.xml\">\n"
-#~ " <lib "
-#~ "dir=\"${librarydir}\">\n"
-#~ " <exclude "
-#~ "name=\"jsdk*.jar\"/>\n"
-#~ " </"
-#~ "lib>\n"
-#~ " \n"
-#~ " <classes "
-#~ "dir=\"${targetdir}\"/>\n"
-#~ " </war>\n"
-#~ " </target>]]>"
-
-#~ msgid ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
-#~ msgstr ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
-
-#~ msgid ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compliation and excluded from the WAR package."
-#~ msgstr ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compliation and excluded from the WAR package."
-
-#~ msgid ""
-#~ "If you already feel confident with Hibernate, continue browsing through "
-#~ "the reference documentation table of contents for topics you find "
-#~ "interesting - most asked are transactional processing (<xref linkend="
-#~ "\"transactions\"/>), fetch performance (<xref linkend=\"performance\"/>), "
-#~ "or the usage of the API (<xref linkend=\"objectstate\"/>) and the query "
-#~ "features (<xref linkend=\"objectstate-querying\"/>)."
-#~ msgstr ""
-#~ "Si ya te sientes confidente con Hibernate, continúa navegando a "
-#~ "través de la tabla de contenidos de la documentación de "
-#~ "referencia para los temas que encuentres interesantes. Los más "
-#~ "consultados son procesamiento transaccional (<xref linkend=\"transactions"
-#~ "\"/>), rendimiento de recuperación (<xref linkend=\"performance\"/"
-#~ ">), o el uso de la API (<xref linkend=\"objectstate\"/>) y las "
-#~ "funcionalidades de consulta (<xref linkend=\"objectstate-querying\"/>)."
-
-#~ msgid ""
-#~ "Don't forget to check the Hibernate website for more (specialized) "
-#~ "tutorials."
-#~ msgstr ""
-#~ "No olvides chequear el sitio web de Hibernate por más "
-#~ "(especializados) tutoriales."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Este tutorial abordó los puntos básicos de la escritura de una simple "
+"aplicación de Hibernate autónoma y una pequeña aplicación web. Encontrará "
+"más tutoriales en el website de Hibernate <ulink url=\"http://hibernate.org"
+"\"></ulink>."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,50 +1,61 @@
-#, fuzzy
+# translation of xml.po to
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Angela Garcia <agarcia at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
+"Project-Id-Version: xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-10 21:02+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-05 07:52+1000\n"
+"Last-Translator: Angela Garcia <agarcia at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
+"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
msgstr "Mapeo XML"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
msgstr ""
-"Nota que esta es una funcionalidad experimental en Hibernate 3.0 y está bajo "
-"un desarrollo extremadamente activo."
+"<emphasis> El mapeo XML es una funcionalidad experimental en Hibernate 3.0 y "
+"se encuentra bajos desarrollo activo. </emphasis>"
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
-msgstr "Trabajando con datos XML"
+msgstr "Trabajo con datos XML"
#. Tag: para
-#: xml.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
"you work with persistent POJOs. A parsed XML tree can be thought of as "
"another way of representing 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."
+"Hibernate le permite trabajar con datos XML persistentes en casi de la misma "
+"forma que trabaja con POJOs persistentes. Un árbol XML analizado "
+"semáticamente se puede considerar como otra manera de representar los datos "
+"relacionales a nivel de objetos, en lugar de POJOs."
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -55,181 +66,75 @@
"(), 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)."
+"Hibernate soporta dom4j como API para manipular árboles XML. Puede escribir "
+"consultas que recuperen árboles dom4j de la base de datos y puede tener "
+"cualquier modificación que realice al árbol sincronizada automáticamente con "
+"la base de datos. Incluso puede tomar un documento XML, analizarlo "
+"sintácticamente utilizando dom4j, y escribirlo a la base de datos con "
+"cualquiera de las operaciones básicas de Hibernate: <literal>persist(), "
+"saveOrUpdate(), merge(), delete(), replicate()</literal> (merge aún no está "
+"soportado)."
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"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."
+"exportación de datos, externalización de datos de entidad por medio de JMS o "
+"SOAP y reportes basados en XSLT."
#. Tag: para
-#: xml.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single mapping can 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 can 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."
+"Un sólo mapeo se puede utilizar 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, se puede utilizar para mapear sólo el XML."
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
-msgstr "Especificando los mapeos de XML y de clase juntos"
+msgstr "Especificación de los mapeos de XML y de clase en conjunto"
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
-msgstr "He aquà un ejemplo de mapear un POJO y XML simultáneamente:"
+msgstr "Este es un ejemplo del mapeo de un POJO y XML de manera simultánea:"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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>]]>"
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
-msgstr "Especificando sólo un mapeo XML"
+msgstr "Especificación de sólo un mapeo XML"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
-msgstr "He aquà un ejemplo donde no hay ninguna clase POJO:"
+msgstr "Este es un ejemplo donde no hay ninguna clase POJO:"
-#. Tag: programlisting
-#: xml.xml:84
+#. Tag: para
#, no-c-format
msgid ""
-"<![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>]]>"
-
-#. Tag: para
-#: xml.xml:86
-#, fuzzy, no-c-format
-msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
"property name/value pairs or java <literal>Map</literal>s. The property "
"names are purely logical constructs that can 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."
+"Este mapeo le permite acceder a los datos como un árbol dom4j o como un "
+"grafo de parejas nombre/valor de propiedad o<literal>Map</literal>as de "
+"Java. Los nombres de propiedades son construcciones puramente lógicas a las "
+"que se puede hacer referencia en consultas HQL."
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
msgstr "Mapeo de metadatos XML"
#. Tag: para
-#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
"attribute. This lets you specify the name of an XML attribute or element "
@@ -237,42 +142,38 @@
"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:"
+"literal>. Esto le permite especificar el nombre de un atributo o elemento "
+"XML que contenga los datos de la propiedad o entidad. El formato del "
+"atributo <literal>node</literal> tiene que ser uno de los siguientes: "
#. Tag: para
-#: xml.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
-msgstr "<literal>\"element-name\"</literal> - mapea al elemento XML mencionado"
+msgstr ""
+"<literal>\"element-name\"</literal> - mapea al elemento XML mencionado "
#. Tag: para
-#: xml.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
-"<literal>\"@attribute-name\"</literal> - mapea al atributo XML mencionado"
+"<literal>\"@attribute-name\"</literal>: mapea al atributo XML mencionado"
#. Tag: para
-#: xml.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
-msgstr "<literal>\".\"</literal> - mapea al elemento padre"
+msgstr "<literal>\".\"</literal> - mapea al elemento padre "
#. Tag: para
-#: xml.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<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"
+"<literal>\"element-name/@attribute-name\"</literal>: mapea al atributo "
+"mencionado del elemento nombrado"
#. Tag: para
-#: xml.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
@@ -284,306 +185,65 @@
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."
+"literal>, el cual es el valor por defecto, el árbol XML para la entidad "
+"asociada (o colección de tipo de valor) será incluida directamente en el "
+"árbol XML para la entidad que posee la asociación. De otra manera, si "
+"<literal>embed-xml=\"false\"</literal>, entonces sólo el valor identificador "
+"referenciado aparecerá en el XML para asociaciones de punto único y para las "
+"colecciones simplemente no aparecerá."
#. Tag: para
-#: xml.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not 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!"
+"No deje <literal>embed-xml=\"true\"</literal> para demasiadas asociaciones "
+"ya que XML no se ocupa bien de la circularidad."
-#. Tag: programlisting
-#: xml.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-
-#. Tag: para
-#: xml.xml:141
-#, fuzzy, no-c-format
-msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
"account data. The following HQL query:"
msgstr ""
-"en este caso, hemos decidido embeber la colección de ids de cuenta, pero no "
-"los datos reales de cuenta. La siguiente consulta HQL:"
+"En este caso, la colección de ids de cuenta están incluÃdos, pero no los "
+"datos reales de cuenta. La siguiente consulta HQL:"
-#. Tag: programlisting
-#: xml.xml:146
-#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-
#. Tag: para
-#: xml.xml:148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would return datasets such as this:"
-msgstr "devolverÃa conjuntos de datos como estos:"
+msgstr "retornarÃa conjuntos de datos como este:"
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
"many></literal> mapping, the data might look more like this:"
msgstr ""
-"Si estableces <literal>embed-xml=\"true\"</literal> en el mapeo <literal><"
-"one-to-many></literal>, los datos podrÃan verse asÃ:"
+"Si establece <literal>embed-xml=\"true\"</literal> en el mapeo <literal><"
+"one-to-many></literal>, puede que los datos se vean asÃ:"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
-msgstr "Manipulando datos XML"
+msgstr "Manipulación de datos XML"
#. Tag: para
-#: xml.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
"this by obtaining a dom4j session:"
msgstr ""
-"Vamos a releer y actualizar documentos XML en la aplicación. Hacemos esto "
+"Puede releer y actualizar documentos XML en la aplicación. Puede hacer esto "
"obteniendo una sesión dom4j:"
-#. Tag: programlisting
-#: xml.xml:172
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-
-#. Tag: para
-#: xml.xml:176
-#, fuzzy, no-c-format
-msgid ""
"When implementing XML-based data import/export, it is useful to combine this "
"feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
-"Es extremadamente útil combinar esta funcionalidad con la operación "
-"<literal>replicate()</literal> de Hibernate para implementar la importación/"
-"exportación de datos basada en XML."
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+"Es útil combinar esta funcionalidad con la operación <literal>replicate()</"
+"literal> de Hibernate para implementar la importación/exportación de datos "
+"basada en XML."
Modified: core/trunk/documentation/manual/src/main/docbook/es-ES/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/es-ES/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/es-ES/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,35 +2,33 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-16 18:47+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - Persistance relationnelle en Java standard"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "Documentation de référence d'Hibernate"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,101 +1,95 @@
+# translation of architecture.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-04 16:40+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr "Architecture"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
msgstr "Généralités"
#. Tag: para
-#: architecture.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
-msgstr "Voici une vue (très) haut niveau de l'architecture d'Hibernate :"
+msgstr ""
+"Le diagramme ci-dessus procure une vue - (très) haut niveau - de "
+"l'architecture Hibernate :"
#. Tag: para
-#: architecture.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We do not have the scope in this document to provide a more detailed view of "
"all the runtime architectures available; Hibernate is flexible and supports "
"several different approaches. We will, however, show the two extremes: "
"\"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
-"Nous aimerions décrire une vue plus détaillée de l'architecture. "
-"Malheureusement, Hibernate est flexible et supporte différentes approches. "
-"Nous allons en montrer les deux extrêmes. L'architecture légère laisse "
-"l'application fournir ses propres connexions JDBC et gérer ses propres "
-"transactions. Cette approche utilise le minimum des APIs Hibernate :"
+"Nous aimerions décrire une vue plus détaillée de l'architecture. Hibernate "
+"est flexible et prend en charge différentes approches. Nous allons en "
+"montrer les deux extrêmes : l'architecture \"légère\" et l'architecture "
+"\"complète\"."
#. Tag: para
-#: architecture.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This next diagram illustrates how Hibernate utilizes database and "
"configuration data to provide persistence services, and persistent objects, "
"to the application."
msgstr ""
-"Ce diagramme montre Hibernate utilisant une base de données et des données "
-"de configuration pour fournir un service de persistance (et des objets "
-"persistants) Ã l'application."
+"Ce diagramme montre Hibernate utilisant la base de données et des données de "
+"configuration pour fournir un service de persistance, et des objets "
+"persistants, Ã l'application."
#. Tag: para
-#: architecture.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"minimal\" architecture has the application provide its own JDBC "
"connections and manage its own transactions. This approach uses a minimal "
"subset of Hibernate's APIs:"
msgstr ""
-"Nous aimerions décrire une vue plus détaillée de l'architecture. "
-"Malheureusement, Hibernate est flexible et supporte différentes approches. "
-"Nous allons en montrer les deux extrêmes. L'architecture légère laisse "
-"l'application fournir ses propres connexions JDBC et gérer ses propres "
-"transactions. Cette approche utilise le minimum des APIs Hibernate :"
+"L'architecture \"légère\" permet à l'application de fournir ses propres "
+"connexions JDBC et de gérer ses propres transactions. Cette approche utilise "
+"un sous-ensemble minimum des API Hibernate :"
#. Tag: para
-#: architecture.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
-"L'architecture la plus complète abstrait l'application des APIs JDBC/JTA "
-"sous-jacentes et laisse Hibernate s'occuper des détails."
+"L'architecture \"complète\" abstrait l'application des API JDBC/JTA sous-"
+"jacentes et permet à Hibernate de s'occuper des détails."
#. Tag: para
-#: architecture.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
-msgstr ""
-"Voici quelques définitions des objets des diagrammes : <placeholder-1/>"
+msgstr "Voici quelques définitions des objets dans les diagrammes :"
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A threadsafe, immutable cache of compiled mappings for a single database. A "
"factory for <literal>Session</literal> and a client of "
@@ -103,22 +97,20 @@
"hold an optional (second-level) cache of data that is reusable between "
"transactions at a process, or cluster, level."
msgstr ""
-"Un cache threadsafe (immuable) des mappings vers une (et une seule) base de "
-"données. Une factory (fabrique) de <literal>Session</literal> et un client "
-"de <literal>ConnectionProvider</literal>. Peut contenir un cache optionnel "
-"de données (de second niveau) qui est réutilisable entre les différentes "
-"transactions que cela soit au sein du même processus (JVLM) ou par plusieurs "
-"nÅuds d'un cluster."
+"Un cache threadsafe (immuable) de mappages compilés pour une base de "
+"données. En tant que fabrique de <literal>Session</literal> et que client du "
+"<literal>ConnectionProvider</literal>, <literal>SessionFactory</literal>peut "
+"contenir un cache optionnel de données (de second niveau), réutilisable "
+"entre les différentes transactions, que cela soit au sein du même processus "
+"ou au niveau d'un cluster."
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:107
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
"the application and the persistent store. It wraps a JDBC connection and is "
@@ -128,20 +120,18 @@
msgstr ""
"Un objet mono-threadé, à durée de vie courte, qui représente une "
"conversation entre l'application et l'entrepôt de persistance. Encapsule une "
-"connexion JDBC. Factory (fabrique) des objets <literal>Transaction</"
-"literal>. Contient un cache (de premier niveau) des objets persistants, ce "
-"cache est obligatoire. Il est utilisé lors de la navigation dans le graphe "
-"d'objets ou lors de la récupération d'objets par leur identifiant."
+"connexion JDBC. Fabrique des objets <literal>Transaction</literal>. La "
+"<literal>Session</literal> contient un cache (de premier niveau) des objets "
+"persistants, qui sont utilisés lors de la navigation dans le graphe d'objets "
+"ou lors de la récupération d'objets par leur identifiant."
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
-msgstr "Objets et Collections persistants"
+msgstr "Objets et collections persistants"
#. Tag: para
-#: architecture.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
@@ -150,23 +140,20 @@
"in any application layer (for example, directly as data transfer objects to "
"and from presentation)."
msgstr ""
-"Objets mono-threadés à vie courte contenant l'état de persistance et la "
-"fonction métier. Ceux-ci sont en général les objets de type JavaBean (ou "
-"POJOs) ; la seule particularité est qu'ils sont associés avec une (et une "
+"Objets mono-threadés à vie courte, contenant état persistant et fonction "
+"commerciale. Ceux-ci sont en général des objets ordinaires de type JavaBean "
+"(ou POJO); la seule particularité est qu'ils sont associés avec une (et une "
"seule) <literal>Session</literal>. Dès que la <literal>Session</literal> est "
-"fermée, ils seront détachés et libres d'être utilisés par n'importe laquelle "
-"des couches de l'application (ie. de et vers la présentation en tant que "
-"Data Transfer Objects - DTO : objet de transfert de données)."
+"fermée, ils sont détachés et libres d'être utilisés par n'importe quelle "
+"couche de l'application (par ex. de et vers la présentation)."
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
-msgstr "Objets et collections transients"
+msgstr "Objets et collections éphémères (transient) et détachés"
#. Tag: para
-#: architecture.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<literal>Session</literal>. They may have been instantiated by the "
@@ -175,18 +162,16 @@
msgstr ""
"Instances de classes persistantes qui ne sont actuellement pas associées à "
"une <literal>Session</literal>. Elles ont pu être instanciées par "
-"l'application et ne pas avoir (encore) été persistées ou elle ont pu être "
+"l'application et ne pas avoir (encore) été persistées, ou elle ont pu être "
"instanciées par une <literal>Session</literal> fermée."
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
@@ -197,14 +182,13 @@
msgstr ""
"(Optionnel) Un objet mono-threadé à vie courte utilisé par l'application "
"pour définir une unité de travail atomique. Abstrait l'application des "
-"transactions sous-jacentes qu'elles soient JDBC, JTA ou CORBA. Une "
+"transactions sous-jacentes, qu'elles soient JDBC, JTA ou CORBA. Une "
"<literal>Session</literal> peut fournir plusieurs <literal>Transaction</"
"literal>s dans certains cas. Toutefois, la délimitation des transactions, "
"via l'API d'Hibernate ou par la <literal>Transaction</literal> sous-jacente, "
-"n'est jamais optionnelle!"
+"n'est jamais optionnelle. "
#. Tag: term
-#: architecture.xml:153
#, no-c-format
msgid ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
@@ -214,8 +198,7 @@
"literal>)"
#. Tag: para
-#: architecture.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
"application from underlying <literal>Datasource</literal> or "
@@ -225,10 +208,9 @@
"(Optionnel) Une fabrique de (pool de) connexions JDBC. Abstrait "
"l'application de la <literal>Datasource</literal> ou du "
"<literal>DriverManager</literal> sous-jacent. Non exposé à l'application, "
-"mais peut être étendu/implémenté par le développeur."
+"mais peut être étendu/implémenté par le développeur. "
#. Tag: term
-#: architecture.xml:163
#, no-c-format
msgid ""
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
@@ -236,25 +218,23 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
"exposed to the application, but it can be extended and/or implemented by the "
"developer."
msgstr ""
"(Optionnel) Une fabrique d'instances de <literal>Transaction</literal>. Non "
-"exposé à l'application, mais peut être étendu/implémenté par le développeur."
+"exposée à l'application, mais peut être étendue/implémentée par le "
+"développeur. "
-#. Tag: emphasis
-#: architecture.xml:172
-#, no-c-format
-msgid "Extension Interfaces"
-msgstr "Interfaces d'extension"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
+msgstr "<emphasis>Interfaces d'extension</emphasis> "
#. Tag: para
-#: architecture.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
@@ -263,31 +243,28 @@
"Hibernate fournit de nombreuses interfaces d'extensions optionnelles que "
"vous pouvez implémenter pour personnaliser le comportement de votre couche "
"de persistance. Reportez vous à la documentation de l'API pour plus de "
-"détails."
+"détails. "
#. Tag: para
-#: architecture.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Given a \"minimal\" architecture, the application bypasses the "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
"directly."
msgstr ""
-"Dans une architecture légère, l'application n'aura pas à utiliser les APIs "
+"Dans une architecture légère, l'application n'aura pas à utiliser les API "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> et/ou "
-"n'utilisera pas les APIs <literal>ConnectionProvider</literal> pour utiliser "
-"JTA ou JDBC."
+"n'utilisera pas les API <literal>ConnectionProvider</literal> pour utiliser "
+"directement JTA ou JDBC. "
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr "Etats des instances"
#. Tag: para
-#: architecture.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of a persistent class can be in one of three different states. "
"These states are defined in relation to a <emphasis>persistence context</"
@@ -296,35 +273,31 @@
msgstr ""
"Une instance d'une classe persistante peut être dans l'un des trois états "
"suivants, définis par rapport à un <emphasis>contexte de persistance</"
-"emphasis>. L'objet <literal>Session</literal> d'hibernate correspond à ce "
-"concept de contexte de persistance :"
+"emphasis>. L'objet <literal>Session</literal> Hibernate correspond à ce "
+"contexte de persistance. Les trois états distincts sont:"
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
-msgstr "passager (transient)"
+msgstr "éphémère (transient)"
#. Tag: para
-#: architecture.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is not associated with any persistence context. It has no "
"persistent identity or primary key value."
msgstr ""
"L'instance n'est pas et n'a jamais été associée à un contexte de "
"persistance. Elle ne possède pas d'identité persistante (valeur de clé "
-"primaire)"
+"primaire)."
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
msgstr "persistant"
#. Tag: para
-#: architecture.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is currently associated with a persistence context. It has a "
"persistent identity (primary key value) and can have a corresponding row in "
@@ -332,22 +305,20 @@
"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
"Java identity in relation to the in-memory location of the object."
msgstr ""
-"L'instance est associée au contexte de persistance. Elle possède une "
-"identité persistante (valeur de clé primaire) et, peut-être, un "
-"enregistrement correspondant dans la base. Pour un contexte de persistance "
-"particulier, Hibernate <emphasis>garantit</emphasis> que l'identité "
-"persistante est équivalente à l'identité Java (emplacement mémoire de "
-"l'objet)"
+"L'instance est associée à un contexte de persistance. Elle possède une "
+"identité persistante (valeur de clé primaire) et, peut-être un "
+"enregistrement correspondant dans la base de données. Pour un contexte de "
+"persistance particulier, Hibernate <emphasis>garantit</emphasis> que "
+"l'identité persistante soit équivalente à l'identité Java (emplacement "
+"mémoire de l'objet). "
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
msgstr "détaché"
#. Tag: para
-#: architecture.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance was once associated with a persistence context, but that "
"context was closed, or the instance was serialized to another process. It "
@@ -358,18 +329,16 @@
"L'instance a été associée au contexte de persistance mais ce contexte a été "
"fermé, ou l'instance a été sérialisée vers un autre processus. Elle possède "
"une identité persistante et peut-être un enregistrement correspondant dans "
-"la base. Pour des instances détachées, Hibernate ne donne aucune garantie "
-"sur la relation entre l'identité persistante et l'identité Java."
+"la base de données. Pour des instances détachées, Hibernate ne donne aucune "
+"garantie sur la relation entre l'identité persistante et l'identité Java. "
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
msgstr "Intégration JMX"
#. Tag: para
-#: architecture.xml:243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
@@ -379,24 +348,22 @@
"JMX est le standard J2EE de gestion des composants Java. Hibernate peut être "
"géré via un service JMX standard. Nous fournissons une implémentation d'un "
"MBean dans la distribution : <literal>org.hibernate.jmx.HibernateService</"
-"literal>."
+"literal>. "
#. Tag: para
-#: architecture.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For an example of how to deploy Hibernate as a JMX service on the JBoss "
"Application Server, please see the JBoss User Guide. JBoss AS also provides "
"these benefits if you deploy using JMX:"
msgstr ""
-"Pour avoir un exemple sur la manière de déployer Hibernate en tant que "
-"service JMX dans le serveur d'application JBoss Application Server, référez "
-"vous au guide utilisateur JBoss (JBoss User Guide). Si vous déployez "
-"Hibernate via JMX sur JBoss AS, vous aurez également les bénéfices suivants :"
+"Pour un exemple sur la manière de déployer Hibernate en tant que service JMX "
+"dans le serveur d'application JBoss Application Server, référez vous au "
+"guide de l'utilisateur JBoss (JBoss User Guide). Si vous déployez Hibernate "
+"via JMX sur JBoss AS, vous aurez également les avantages suivants : "
#. Tag: para
-#: architecture.xml:257
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
"literal>'s life cycle can be automatically bound to the scope of a JTA "
@@ -408,20 +375,19 @@
"the <literal>HibernateContext</literal> to access a <literal>Session</"
"literal>."
msgstr ""
-"<emphasis>Gestion de la session :</emphasis> Le cycle de vie de la "
-"<literal>Session</literal> Hibernate peut être automatiquement limitée à la "
+"<emphasis>Gestion de la session</emphasis> : le cycle de vie de la "
+"<literal>Session</literal> Hibernate peut être automatiquement liée à la "
"portée d'une transaction JTA. Cela signifie que vous n'avez plus besoin "
"d'ouvrir et de fermer la <literal>Session</literal> manuellement, cela "
"devient le travail de l'intercepteur EJB de JBoss. Vous n'avez pas non plus "
"à vous occuper des démarcations des transactions dans votre code (sauf si "
"vous voulez écrire une couche de persistance qui soit portable, dans ce cas "
-"vous pouvez utiliser l'API optionnelle <literal>Transaction</literal> "
-"d'Hibernate). Vous appelez l'<literal>HibernateContext</literal> pour "
-"accéder à la <literal>Session</literal>."
+"vous pouvez utiliser l'API optionnelle <literal>Transaction</literal> de "
+"Hibernate). Vous appelez le <literal>HibernateContext</literal> pour accéder "
+"Ã la <literal>Session</literal>. "
#. Tag: para
-#: architecture.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
@@ -431,17 +397,16 @@
"deployment, JBoss will automatically detect all mapping files in your HAR "
"file."
msgstr ""
-"<emphasis>Déploiement HAR :</emphasis> Habituellement vous déployez le "
+"<emphasis>Déploiement HAR :</emphasis>: habituellement vous déployez le "
"service JMX Hibernate en utilisant le descripteur de déploiement de JBoss "
-"(dans un fichier EAR et/ou un SAR), il supporte toutes les options de "
+"dans un fichier EAR et/ou un SAR, car il supporte toutes les options de "
"configuration usuelles d'une <literal>SessionFactory</literal> Hibernate. "
-"Cependant, vous devez toujours nommer tous vos fichiers de mapping dans le "
+"Cependant, vous devez toujours nommer tous vos fichiers de mappage dans le "
"descripteur de déploiement. Si vous décidez d'utiliser le déploiement "
"optionnel sous forme de HAR, JBoss détectera automatiquement tous vos "
"fichiers de mapping dans votre fichier HAR."
#. Tag: para
-#: architecture.xml:280
#, no-c-format
msgid ""
"Consult the JBoss AS user guide for more information about these options."
@@ -450,26 +415,23 @@
"ces options."
#. Tag: para
-#: architecture.xml:284
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/> for more "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
"information."
msgstr ""
-"Les statistiques pendant l'exécution d'Hibernate (au runtime) sont une autre "
-"fonctionnalité disponible en tant que service JMX. Voyez pour cela <xref "
-"linkend=\"configuration-optional-statistics\"/>."
+"Les statistiques Hibernate (runtime) représentent une autre fonctionnalité "
+"qui est disponible en tant que service JMX. Voyez pour cela les <xref "
+"linkend=\"configuration-optional-statistics\" />."
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
msgstr "Support JCA"
#. Tag: para
-#: architecture.xml:292
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also be configured as a JCA connector. Please see the website "
"for more information. Please note, however, that at this stage Hibernate JCA "
@@ -477,17 +439,15 @@
msgstr ""
"Hibernate peut aussi être configuré en tant que connecteur JCA. Référez-vous "
"au site web pour de plus amples détails. Il est important de noter que le "
-"support JCA d'Hibernate est encore considéré comme expérimental."
+"support JCA de Hibernate est encore considéré comme expérimental. "
#. Tag: title
-#: architecture.xml:299
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Contextual sessions"
-msgstr "Sessions Contextuelles"
+msgstr "Sessions contextuelles "
#. Tag: para
-#: architecture.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
"where a given session is in effect throughout the scope of a given context. "
@@ -500,20 +460,19 @@
"proxy/interception-based contextual sessions."
msgstr ""
"Certaines applications utilisant Hibernate ont besoin d'une sorte de session "
-"\"contextuelle\", où une session est liée à la portée d'un contexte "
-"particulier. Cependant, les applications ne définissent pas toutes la notion "
-"de contexte de la même manière, et différents contextes définissent "
-"différentes portées à la notion de \"courant\". Les applications à base "
-"d'Hibernate, versions précédentes à la 3.0 utilisaient généralement un "
-"principe maison de sessions contextuelles basées sur le "
+"\"contextuelle\", où une session donnée est en effet liée à la portée d'un "
+"contexte particulier. Cependant, les applications ne définissent pas toutes "
+"la notion de contexte de la même manière, et différents contextes "
+"définissent différentes portées à la notion de \"courant\". Les applications "
+"qui utilisaient Hibernate, versions précédentes à la 3.0, avaient tendance à "
+"employer un principe maison de sessions contextuelles basées sur le "
"<literal>ThreadLocal</literal>, ainsi que sur des classes utilitaires comme "
"<literal>HibernateUtil</literal>, ou utilisaient des framework tiers (comme "
"Spring ou Pico) qui fournissaient des sessions contextuelles basées sur "
-"l'utilisation de proxy/interception."
+"l'utilisation de proxy/interception. "
#. Tag: para
-#: architecture.xml:309
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
"getCurrentSession()</literal> method. Initially, this assumed usage of "
@@ -530,16 +489,15 @@
"demandait l'usage de transactions <literal>JTA</literal>, où la transaction "
"<literal>JTA</literal> définissait la portée et le contexte de la session "
"courante. L'équipe Hibernate pense que, étant donnée la maturité des "
-"implémentations de <literal>JTA TransactionManager</literal> , la plupart "
-"(sinon toutes) des applications devraient utiliser la gestion des "
-"transactions par <literal>JTA</literal> qu'elles soient ou non déployées "
-"dans un conteneur <literal>J2EE</literal>. Par conséquent, vous devriez "
-"toujours contextualiser vos sessions, si vous en avez besoin, via la méthode "
-"basée sur JTA."
+"nombreuses implémentations autonomes du <literal>JTA TransactionManager</"
+"literal>, la plupart (sinon toutes) des applications devraient utiliser la "
+"gestion des transactions par <literal>JTA</literal> qu'elles soient ou non "
+"déployées dans un conteneur <literal>J2EE</literal>. Par conséquent, il vous "
+"suffira de contextualiser vos sessions via la méthode basée sur "
+"<literal>JTA</literal>. "
#. Tag: para
-#: architecture.xml:319
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
@@ -550,15 +508,14 @@
msgstr ""
"Cependant, depuis la version 3.1, la logique derrière "
"<literal>SessionFactory.getCurrentSession()</literal> est désormais "
-"branchable. A cette fin, une nouvelle interface d'extension (<literal>org."
-"hibernate.context.CurrentSessionContext</literal>) et un nouveau paramètre "
-"de configuration (<literal>hibernate.current_session_context_class</"
-"literal>) ont été ajoutés pour permettre de configurer d'autres moyens de "
-"définir la portée et le contexte des sessions courantes."
+"enfichable. A cette fin, une nouvelle interface d'extension(<literal>org."
+"hibernate.context.CurrentSessionContext</literal> et un nouveau paramètre de "
+"configuration <literal>hibernate.current_session_context_class</literal> ont "
+"été ajoutés pour enficher la portée et le contexte de sessions courantes "
+"caractéristiques."
#. Tag: para
-#: architecture.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
"CurrentSessionContext</literal> interface for a detailed discussion of its "
@@ -567,16 +524,14 @@
"contextual session. Out-of-the-box, Hibernate comes with three "
"implementations of this interface:"
msgstr ""
-"Allez voir les Javadocs de l'interface <literal>org.hibernate.context."
-"CurrentSessionContext</literal> pour une description détaillée de son "
-"contrat. Elle définit une seule méthode, <literal>currentSession()</"
-"literal>, depuis laquelle l'implémentation est responsable de traquer la "
-"session courante du contexte. Hibernate fournit deux implémentation de cette "
-"interface."
+"Pour une description détaillée de son contrat, consultez les Javadocs de "
+"l'interface <literal>org.hibernate.context.CurrentSessionContext</literal>. "
+"Elle définit une seule méthode, <literal>currentSession()</literal>, par "
+"laquelle l'implémentation est responsable de traquer la session contextuelle "
+"courante. Hibernate fournit trois implémentations de cette interface :"
#. Tag: para
-#: architecture.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
"are tracked and scoped by a <literal>JTA</literal> transaction. The "
@@ -585,36 +540,34 @@
msgstr ""
"<literal>org.hibernate.context.JTASessionContext</literal> - les sessions "
"courantes sont associées à une transaction <literal>JTA</literal>. La "
-"logique est la même que l'ancienne approche basée sur JTA. Voir les javadocs "
-"pour les détails."
+"logique est la même que l'ancienne approche basée sur JTA. Consultez les "
+"javadocs pour pour plus d'informations. "
#. Tag: para
-#: architecture.xml:344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - les "
-"sessions courantes sont associées au thread d'exécution. Voir les javadocs "
-"pour les détails."
+"sessions courantes sont traquées par l'exécution du thread. Consultez les "
+"javadocs pour plus d'informations. "
#. Tag: para
-#: architecture.xml:350
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
"sessions are tracked by thread of execution. However, you are responsible to "
"bind and unbind a <literal>Session</literal> instance with static methods on "
"this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
-"<literal>org.hibernate.context.ManagedSessionContext</literal> - current "
-"sessions are tracked by thread of execution. However, you are responsible to "
-"bind and unbind a <literal>Session</literal> instance with static methods on "
-"this class, it does never open, flush, or close a <literal>Session</literal>."
+"<literal>org.hibernate.context.ManagedSessionContext</literal> - les "
+"sessions courantes sont traquées par l'exécution du thread. Toutefois, vous "
+"êtes responsable de lier et de délier une instance de <literal>Session</"
+"literal> avec des méthodes statiques de cette classe. Elle n'ouvre jamais, "
+"ni ne nettoie ou ne ferme une <literal>Session</literal>."
#. Tag: para
-#: architecture.xml:359
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -627,25 +580,24 @@
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not need any transaction or session demarcation "
-"operations in your code. Refer to <xref linkend=\"transactions\"/> for more "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
"information and code examples."
msgstr ""
-"Les deux implémentations fournissent un modèle de programmation de type "
-"\"une session - une transaction à la base de données\", aussi connu sous le "
-"nom de <emphasis>session-per-request</emphasis>. Le début et la fin d'une "
+"Les deux premières implémentations fournissent un modèle de programmation de "
+"type \"une session - une transaction de base de données\", aussi connu sous "
+"le nom de <emphasis>session-per-request</emphasis>. Le début et la fin d'une "
"session Hibernate sont définis par la durée d'une transaction de base de "
"données. Si vous utilisez une démarcation programmatique de la transaction "
-"(par exemple sous J2SE ou JTA/UserTransaction/BMT), nous vous conseillons "
-"d'utiliser l'API Hibernate <literal>Transaction</literal> pour masquer le "
-"système de transaction utilisé. Si vous exécutez sous un conteneur EJB qui "
-"supporte CMT, vous n'avez besoin d'aucune opérations de démarcations de "
-"session ou transaction dans votre code puisque tout est géré de manière "
-"déclarative. Référez vous à <xref linkend=\"transactions\"/> pour plus "
-"d'informations et des exemples de code."
+"avec JSE sans JTA, nous vous conseillons d'utiliser l'API Hibernate "
+"<literal>Transaction</literal> pour masquer le système de transaction sous-"
+"jacent à votre code. Si vous exécutez sous un conteneur EJB qui prend en "
+"charge CMT, vous n'avez besoin d'aucune opération de démarcation de session "
+"ou transaction dans votre code puisque tout est géré de manière déclarative. "
+"Référez vous au <xref linkend=\"transactions\" /> pour plus d'informations "
+"et des exemples de code."
#. Tag: para
-#: architecture.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
"parameter defines which <literal>org.hibernate.context."
@@ -666,5 +618,6 @@
"hibernate.transaction.TransactionManagerLookup</literal> est configuré, "
"Hibernate utilisera le <literal>org.hibernate.context.JTASessionContext</"
"literal>. La valeur de ce paramètre devrait juste nommer la classe "
-"d'implémentation à utiliser, pour les deux implémentations fournies, il y a "
-"cependant deux alias correspondant: \"jta\" et \"thread\"."
+"d'implémentation à utiliser. Pour les trois implémentations prêtes à "
+"utiliser, toutefois, il y a trois noms brefs correspondants : \"jta\", "
+"\"thread\" et \"managed\"."
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,33 @@
+# translation of association_mapping.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: association_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-10 14:49+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
msgstr "Mapper les associations"
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr "Introduction"
#. Tag: para
-#: association_mapping.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
@@ -32,28 +35,23 @@
"use <literal>Person</literal> and <literal>Address</literal> in all the "
"examples."
msgstr ""
-"Correctement mapper les associations est souvent la tâche la plus difficile. "
-"Dans cette section nous traiterons les cas classiques les uns après les "
-"autres. Nous commencerons d'abbord par les mappings unidirectionnels, puis "
-"nous aborderons la question des mappings bidirectionnels. Nous illustrerons "
-"tous nos exemples avec les classes <literal>Person</literal> et "
-"<literal>Address</literal>."
+"Mapper les associations correctement, est souvent la tâche la plus "
+"difficile. Dans cette section, nous traiterons les cas classiques, un par "
+"un, en commençant par les mappages unidirectionnels, puis nous aborderons la "
+"question des mappages bidirectionnels. Nous illustrons tous nos exemples "
+"avec les classes <literal>Person</literal> et <literal>Address</literal>."
#. Tag: para
-#: association_mapping.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
msgstr ""
-"Nous utiliserons deux critères pour classer les associations : le premier "
-"sera de savoir si l'association est bâti sur une table supplémentaire "
-"d'association et le deuxieme sera basé sur la multiplicité de cette "
-"association."
+"Nous classifions les associations selon qu'elles sont ou non bâties sur une "
+"table de jointure supplémentaire et sur la multiplicité. "
#. Tag: para
-#: association_mapping.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
@@ -64,476 +62,153 @@
"la construction d'un modèle de données. Nous supposerons donc que dans tous "
"les exemples qui vont suivre on aura interdit la valeur nulle pour les clés "
"étrangères. Attention, ceci ne veut pas dire que Hibernate ne supporte pas "
-"les clés étrangères pouvant prendre des valeurs nulles, les exemples qui "
+"les clés étrangères pouvant prendre des valeurs nulles, et les exemples qui "
"suivent continueront de fonctionner si vous décidiez ne plus imposer la "
"contrainte de non-nullité sur les clés étrangères."
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
-msgstr "Association unidirectionnelle"
+msgstr "Associations unidirectionnelles"
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "plusieurs à un"
+msgstr "plusieurs-Ã -un "
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
"common kind of unidirectional association."
msgstr ""
-"Une <emphasis>association plusieurs-Ã -un (many-to-one) unidirectionnelle </"
-"emphasis> est le type que l'on rencontre le plus souvent dans les "
-"associations unidirectionnelles."
+"Une <emphasis>association plusieurs-Ã -un unidirectionnelle </emphasis> est "
+"le type que l'on rencontre le plus souvent dans les associations "
+"unidirectionnelles."
-#. Tag: programlisting
-#: association_mapping.xml:68
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145
-#: association_mapping.xml:210
-#, fuzzy, no-c-format
msgid "One-to-one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Un à un"
+msgstr "Un-Ã -un"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key</"
"emphasis> is almost identical. The only difference is the column unique "
"constraint."
msgstr ""
-"une <emphasis>association un-à -un (one-to-one) sur une clé étrangère</"
-"emphasis> est presque identique. La seule différence est sur la contrainte "
-"d'unicité que l'on impose à cette colonne."
+"Une <emphasis>association un-à -un sur une clé étrangère</emphasis> est "
+"presque identique. La seule différence est sur la contrainte d'unicité que "
+"l'on impose à cette colonne."
-#. Tag: programlisting
-#: association_mapping.xml:81
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:84
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key</"
"emphasis> usually uses a special id generator In this example, however, we "
"have reversed the direction of the association:"
msgstr ""
-"Une <emphasis>association un-à -un (one-to-one) unidirectionnelle sur une clé "
-"primaire</emphasis> utilise un générateur d'identifiant particulier. "
-"(Remarquez que nous avons inversé le sens de cette association dans cet "
-"exemple.)"
+"Une <emphasis>association un-à -un unidirectionnelle sur une clé primaire</"
+"emphasis> utilise un générateur d'identifiant particulier. Remarquez que "
+"nous avons inversé le sens de cette association dans cet exemple :"
-#. Tag: programlisting
-#: association_mapping.xml:90
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
-#, fuzzy, no-c-format
msgid "One-to-many"
-msgstr "un à plusieurs"
+msgstr "un-Ã -plusieurs"
#. Tag: para
-#: association_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key</"
"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"Une <emphasis>association un-Ã -plusieurs (one-to-many) unidirectionnelle sur "
-"une clé étrangère</emphasis> est vraiment inhabituelle, et n'est pas "
-"vraiment recommandée."
+"Une <emphasis>association un-à -plusieurs unidirectionnelle sur une clé "
+"étrangère</emphasis> est un cas inhabituel, et n'est pas vraiment "
+"recommandée."
-#. Tag: programlisting
-#: association_mapping.xml:103
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:106
-#, fuzzy, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr ""
"Nous pensons qu'il est préférable d'utiliser une table de jointure pour ce "
-"type d'association."
+"type d'association. "
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "Associations unidirectionnelles avec tables de jointure"
#. Tag: para
-#: association_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join table</"
"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
"literal>, changes the multiplicity from many-to-many to one-to-many."
msgstr ""
-"Une <emphasis>association unidirectionnelle un-Ã -plusieurs (one-to-many) "
-"avec une table de jointure</emphasis> est un bien meilleur choix. Remarquez "
-"qu'en spécifiant <literal>unique=\"true\"</literal>, on a changé la "
-"multiplicité plusieurs-à -plusieurs (many-to-many) pour un-à -plusieurs (one-"
-"to-many)."
+"Une <emphasis>association unidirectionnelle un-Ã -plusieurs avec une table de "
+"jointure</emphasis> est un bien meilleur choix. Remarquez qu'en spécifiant "
+"<literal>unique=\"true\"</literal>, on a changé la multiplicité plusieurs-à -"
+"plusieurs pour un-Ã -plusieurs. "
-#. Tag: programlisting
-#: association_mapping.xml:126
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:134
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional many-to-one association on a join table</"
"emphasis> is common when the association is optional. For example:"
msgstr ""
-"Une <emphasis>assiociation plusieurs-Ã -un (many-to-one) unidirectionnelle "
-"sur une table de jointure</emphasis> est très fréquente quand l'association "
-"est optionnelle."
+"Une <emphasis>assiociation plusieurs-Ã -un unidirectionnelle sur une table de "
+"jointure</emphasis> est assez fréquente quand l'association est optionnelle. "
+"Par exemple :"
-#. Tag: programlisting
-#: association_mapping.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:147
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"Une <emphasis>association unidirectionnelle un-Ã -un (one-to-one) sur une "
-"table de jointure</emphasis> est extrèmement rare mais envisageable."
+"Une <emphasis>association unidirectionnelle un-Ã -un sur une table de "
+"jointure</emphasis> est extrêmement rare mais envisageable. "
-#. Tag: programlisting
-#: association_mapping.xml:152
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
-#, fuzzy, no-c-format
msgid "Many-to-many"
-msgstr "plusieurs à plusieurs"
+msgstr "Plusieurs-Ã -plusieurs "
#. Tag: para
-#: association_mapping.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
msgstr ""
-"Finallement, nous avons <emphasis>l'association unidirectionnelle plusieurs-"
-"Ã -plusieurs (many-to-many)</emphasis>."
+"Finalement, nous avons un exemple d' <emphasis>association unidirectionnelle "
+"plusieurs-Ã -plusieurs</emphasis>."
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
-msgstr "Associations bidirectionnelles"
+msgstr "Associations bidirectionnelles "
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many / many-to-one"
-msgstr "un à plusieurs / plusieurs à un"
+msgstr "un-Ã -plusieurs / plusieurs-Ã -un "
#. Tag: para
-#: association_mapping.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
"common kind of association. The following example illustrates the standard "
"parent/child relationship."
msgstr ""
-"Une <emphasis>association bidirectionnelle plusieurs à un (many-to-one)</"
-"emphasis> est le type d'association que l'on rencontre le plus souvent. "
-"(c'est la façon standard de créer des relations parents/enfants.)"
+"Une <emphasis>association bidirectionnelle plusieurs-Ã -un</emphasis> est le "
+"type d'association que l'on rencontre le plus fréquemment. L'exemple suivant "
+"illustre la façon standard de créer des relations parents/enfants."
-#. Tag: programlisting
-#: association_mapping.xml:183
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:187
-#, fuzzy, no-c-format
-msgid ""
"If you use a <literal>List</literal>, or other indexed collection, set the "
"<literal>key</literal> column of the foreign key to <literal>not null</"
"literal>. Hibernate will manage the association from the collections side to "
@@ -541,42 +216,16 @@
"by setting <literal>update=\"false\"</literal> and <literal>insert=\"false"
"\"</literal>:"
msgstr ""
-"Si vous utilisez une <literal>List</literal> (ou toute autre collection "
-"indexée) vous devez paramétrer la colonne <literal>key</literal> de la clé "
+"Si vous utilisez une <literal>List</literal>, ou toute autre collection "
+"indexée, vous devez paramétrer la colonne <literal>key</literal> de la clé "
"étrangère à <literal>not null</literal>, et laisser Hibernate gérer "
"l'association depuis l'extrémité collection pour maintenir l'index de chaque "
"élément (rendant l'autre extrémité virtuellement inverse en paramétrant "
-"<literal>update=\"false\"</literal> et <literal>insert=\"false\"</literal>):"
+"<literal>update=\"false\"</literal> et <literal>insert=\"false\"</literal>) :"
-#. Tag: programlisting
-#: association_mapping.xml:195
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:197
-#, fuzzy, no-c-format
-msgid ""
"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
"important that you define <literal>not-null=\"true\"</literal> on the "
"<literal><key></literal> element of the collection mapping. Do not "
@@ -584,248 +233,79 @@
"<literal><column></literal> element, but on the <literal><key></"
"literal> element."
msgstr ""
-"It is important that you define <literal>not-null=\"true\"</literal> on the "
-"<literal><key></literal> element of the collection mapping if the "
-"underlying foreign key column is <literal>NOT NULL</literal>. Don't only "
-"declare <literal>not-null=\"true\"</literal> on a possible nested "
-"<literal><column></literal> element, but on the <literal><key></"
-"literal> element."
+"Il est important de définir <literal>not-null=\"true</literal> sur l'élément "
+"<literal><key></literal> du mapping de la collection si la colonne de "
+"clé étrangère sous-jacente est <literal>NOT NULL</literal>. Ne déclarez pas "
+"seulement <literal>not-null=\"true\"</literal> sur un élément imbriqué "
+"possible<literal><column></literal>, mais sur l'élément <literal><"
+"key></literal>."
#. Tag: para
-#: association_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
"is common:"
msgstr ""
-"Une <emphasis>association bidirectionnelle un à un (one-to-one) sur une clé "
-"étrangère</emphasis> est aussi très fréquente."
+"Une <emphasis>association bidirectionnelle un-à -un sur une clé étrangère</"
+"emphasis> est assez fréquente :"
-#. Tag: programlisting
-#: association_mapping.xml:217
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:220
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
"uses the special id generator:"
msgstr ""
-"Une <emphasis>association bidirectionnelle un-à -un (one-to-one) sur une clé "
-"primaire</emphasis> utilise un générateur particulier d'id."
+"Une <emphasis>association bidirectionnelle un-à -un sur une clé primaire</"
+"emphasis> utilise un générateur particulier d'id :"
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
-msgstr "Associations bidirectionnelles avec table de jointure"
+msgstr "Associations bidirectionnelles avec tables de jointure"
#. Tag: para
-#: association_mapping.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
"literal> can go on either end of the association, on the collection, or on "
"the join."
msgstr ""
-"Une <emphasis>association bidirectionnelle un-Ã -plusieurs (one-to-many) sur "
-"une table de jointure </emphasis>. Remarquez que <literal>inverse=\"true\"</"
-"literal> peut s'appliquer sur les deux extrémités de l' association, sur la "
-"collection, ou sur la jointure."
+"Une <emphasis>association bidirectionnelle un-Ã -plusieurs sur une table de "
+"jointure</emphasis>. Remarquez que <literal>inverse=\"true\"</literal> peut "
+"s'appliquer sur les deux extrémités de l'association, sur la collection, ou "
+"sur la jointure."
-#. Tag: programlisting
-#: association_mapping.xml:244
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:250
-#, fuzzy, no-c-format
msgid "one to one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Un à un\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Un à un"
+msgstr "un-Ã -un"
#. Tag: para
-#: association_mapping.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"Une <emphasis>association bidirectionnelle un-Ã -un (one-to-one) sur une "
-"table de jointure</emphasis> est extrèmement rare mais envisageable."
+"Une <emphasis>association bidirectionnelle un-Ã -un sur une table de "
+"jointure</emphasis> est extrêmement rare mais envisageable. "
-#. Tag: programlisting
-#: association_mapping.xml:257
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:265
-#, fuzzy, no-c-format
-msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association</"
"emphasis>."
msgstr ""
-"Finallement nous avons <emphasis>l'association bidirectionnelle plusieurs à "
-"plusieurs</emphasis>."
+"Finalement nous avons <emphasis>l'association bidirectionnelle plusieurs-Ã -"
+"plusieurs</emphasis>. "
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
-msgstr "Des mappings plus complexes"
+msgstr "Des mappages d'associations plus complexes"
#. Tag: para
-#: association_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely</emphasis> rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
@@ -836,53 +316,25 @@
msgstr ""
"Des associations encore plus complexes sont <emphasis>extrêmement</emphasis> "
"rares. Hibernate permet de gérer des situations plus complexes en utilisant "
-"des parties SQL dans les fichiers de mapping. Par exemple, si une table avec "
-"l'historiques des informations d'un compte définit les colonnes "
+"des extraits SQL embarqués dans le fichier de mapping. Par exemple, si une "
+"table avec des informations historiques sur un compte définit les colonnes "
"<literal>accountNumber</literal>, <literal>effectiveEndDate</literal> et "
-"<literal>effectiveStartDate</literal>, mappées de telle sorte:"
+"<literal>effectiveStartDate</literal>, elle sera mappée de la façon "
+"suivante : "
-#. Tag: programlisting
-#: association_mapping.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</"
-"formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:291
-#, fuzzy, no-c-format
-msgid ""
"You can then map an association to the <emphasis>current</emphasis> "
"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-"alors nous pouvons mapper une association à l'instance <emphasis>courante</"
-"emphasis> (celle avec une <literal>effectiveEndDate</literal>) nulle en "
-"utilisant:"
+"Nous pouvons mapper une association à l'instance <emphasis>courante</"
+"emphasis>, celle avec une <literal>effectiveEndDate</literal> nulle, en "
+"utilisant :"
-#. Tag: programlisting
-#: association_mapping.xml:296
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:298
-#, fuzzy, no-c-format
-msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee</literal> and <literal>Organization</literal> is "
"maintained in an <literal>Employment</literal> table full of historical "
@@ -891,37 +343,805 @@
"literal>, could be mapped in the following way:"
msgstr ""
"Dans un exemple plus complexe, imaginez qu'une association entre "
-"<literal>Employee</literal> et <literal>Organization</literal> est gérée "
-"dans une table <literal>Employment</literal> pleines de données historiques. "
+"<literal>Employee</literal> et <literal>Organization</literal> soit gérée "
+"dans une table <literal>Employment</literal> pleine de données historiques. "
"Dans ce cas, une association vers l'employeur <emphasis>le plus récent</"
-"emphasis> (celui avec la <literal>startDate</literal> la plus récente) "
-"pourrait être mappée comme cela:"
+"emphasis> (celui avec la <literal>startDate</literal> (date de commencement "
+"de travail la plus récente) pourrait être mappée comme suit :"
-#. Tag: programlisting
-#: association_mapping.xml:306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:308
-#, fuzzy, no-c-format
-msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
-"Vous pouvez être créatif grace à ces possibilités, mais il est généralement "
-"plus pratique d'utiliser des requêtes HQL ou criteria dans ce genre de "
-"situation."
+"Vous pouvez être créatif grâce à ces possibilités, mais il est généralement "
+"plus pratique de gérer ce genre de cas en utilisant des requêtes HQL ou par "
+"critère."
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,155 +1,83 @@
+# translation of basic_mapping.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: basic_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-04 17:01+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
-msgstr "Mapping O/R basique"
+msgstr "Mappage O/R de base"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
-msgstr "Déclaration de Mapping"
+msgstr "Déclaration de mappage"
#. Tag: para
-#: basic_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
"mapping document is designed to be readable and hand-editable. The mapping "
"language is Java-centric, meaning that mappings are constructed around "
"persistent class declarations and not table declarations."
msgstr ""
-"Les mappings Objet/relationnel sont généralement définis dans un document "
-"XML. Le document de mapping est conçu pour être lisible et éditable à la "
-"main. Le langage de mapping est Java-centrique, c'est à dire que les "
-"mappings sont construits à partir des déclarations des classes persistantes "
-"et non des déclarations des tables."
+"Les mappages objet/relationnel sont généralement définis dans un document "
+"XML. Le document de mappage est conçu pour être lisible et éditable à la "
+"main. Le langage de mappage est Java-centrique, c'est-Ã -dire que les "
+"mappages sont construits à partir de déclarations de classes persistantes et "
+"non à partir de déclarations de tables. "
#. Tag: para
-#: basic_mapping.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
"hand, a number of tools exist to generate the mapping document. These "
"include XDoclet, Middlegen and AndroMDA."
msgstr ""
"Remarquez que même si beaucoup d'utilisateurs de Hibernate préfèrent écrire "
-"les fichiers de mappings à la main, plusieurs outils existent pour générer "
-"ce document, notamment XDoclet, Middlegen et AndroMDA."
+"les fichiers de mappages XML Ã la main, plusieurs outils existent pour "
+"générer ce document, notamment XDoclet, Middlegen et AndroMDA. "
#. Tag: para
-#: basic_mapping.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is an example mapping:"
-msgstr "Démarrons avec un exemple de mapping :"
+msgstr "Commençons avec un exemple de mappage : "
-#. Tag: programlisting
-#: basic_mapping.xml:51
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:53
-#, fuzzy, no-c-format
-msgid ""
"We will now discuss the content of the mapping document. We will only "
"describe, however, the document elements and attributes that are used by "
"Hibernate at runtime. The mapping document also contains some extra optional "
"attributes and elements that affect the database schemas exported by the "
"schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
-"Etudions le contenu du document de mapping. Nous décrirons uniquement les "
+"Ãtudions le contenu du document de mappage. Nous ne décrirons que les "
"éléments et attributs du document utilisés par Hibernate à l'exécution. Le "
-"document de mapping contient aussi des attributs et éléments optionnels qui "
+"document de mappage contient aussi des attributs et éléments optionnels qui "
"agissent sur le schéma de base de données exporté par l'outil de génération "
-"de schéma. (Par exemple l'attribut <literal>not-null</literal>.)"
+"de schéma. (Par exemple l'attribut <literal>not-null</literal>)."
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
"found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/"
@@ -158,22 +86,21 @@
"lookups of the DTD using an Internet connection, check the DTD declaration "
"against the contents of your classpath."
msgstr ""
-"Tous les mappings XML devraient utiliser le doctype indiqué. Ce fichier est "
-"présent à l'URL ci-dessus, dans le répertoire <literal>hibernate-x.x.x/src/"
-"org/hibernate</literal> ou dans <literal>hibernate3.jar</literal>. Hibernate "
-"va toujours chercher la DTD dans son classpath en premier lieu. Si vous "
-"constatez des recherches de la DTD sur Internet, vérifiez votre déclaration "
-"de DTD par rapport au contenu de votre classpath."
+"Tous les mappages XML devraient utiliser le doctype indiqué. En effet vous "
+"trouverez le fichier DTD à l'URL ci-dessus, dans le répertoire "
+"<literal>hibernate-x.x.x/src/org/hibernate</literal> ou dans "
+"<literal>hibernate3.jar</literal>. Hibernate va toujours chercher la DTD "
+"dans son classpath en premier lieu. Si vous constatez des recherches de la "
+"DTD sur Internet, vérifiez votre déclaration de DTD par rapport au contenu "
+"de votre classpath. "
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
msgstr "EntityResolver"
#. Tag: para
-#: basic_mapping.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
"is by registering a custom <literal>org.xml.sax.EntityResolver</literal> "
@@ -181,30 +108,28 @@
"custom <literal>EntityResolver</literal> recognizes two different systemId "
"namespaces:"
msgstr ""
-"As mentioned previously, Hibernate will first attempt to resolve DTDs in its "
-"classpath. The manner in which it does this is by registering a custom "
-"<literal>org.xml.sax.EntityResolver</literal> implementation with the "
-"SAXReader it uses to read in the xml files. This custom "
-"<literal>EntityResolver</literal> recognizes two different systemId "
-"namespaces."
+"Comme mentionné précédemment, Hibernate tentera en premier lieu de résoudre "
+"les DTD dans leur classpath. Il réussit à le faire en enregistrant une "
+"implémentation personnalisée de <literal>org.xml.sax.EntityResolver</"
+"literal> avec le SAXReader qu'il utilise pour lire les fichiers xml. Cet "
+"<literal>EntityResolver</literal> personnalisé reconnaît deux espaces de "
+"nommage systemId différents :"
#. Tag: para
-#: basic_mapping.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://hibernate.sourceforge."
"net/</literal>. The resolver attempts to resolve these entities via the "
"classloader which loaded the Hibernate classes."
msgstr ""
-"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId starting with <literal>http://hibernate.sourceforge."
-"net/</literal>; the resolver attempts to resolve these entities via the "
-"classlaoder which loaded the Hibernate classes."
+"un <literal>espace de nommage hibernate</literal> est reconnu dès que le "
+"résolveur rencontre un systemId commençant par <literal>http://hibernate."
+"sourceforge.net/</literal>. Le résolveur tente alors de résoudre ces entités "
+"via le chargeur de classe qui a chargé les classes Hibernate."
#. Tag: para
-#: basic_mapping.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath://</literal> URL protocol. "
@@ -212,60 +137,35 @@
"thread context classloader and (2) the classloader which loaded the "
"Hibernate classes."
msgstr ""
-"a <literal>user namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId using a <literal>classpath://</literal> URL protocol; "
-"the resolver will attempt to resolve these entities via (1) the current "
-"thread context classloader and (2) the classloader which loaded the "
-"Hibernate classes."
+"un <literal>espace de nommage utilisateur</literal> est reconnu dès que le "
+"résolveur rencontre un systemId qui utilise un protocole URL "
+"<literal>classpath://</literal>. Le résolveur tentera alors de résoudre ces "
+"entités via (1) le chargeur de classe du contexte du thread courant et (2) "
+"le chargeur de classe qui a chargé les classes Hibernate."
#. Tag: para
-#: basic_mapping.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
-msgstr "An example of utilizing user namespacing:"
+msgstr "Un exemple d'utilisation de l'espace de nommage utilisateur: "
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
"custom\">typedef</link>."
msgstr ""
-"Where <literal>types.xml</literal> is a resource in the <literal>your."
-"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
-"custom\">typedef</link>."
+"Là où <literal>types.xml</literal> est une ressource dans votre paquetage "
+"<literal>your.domain</literal> et contient un <xref linkend=\"mapping-types-"
+"custom\"/> personnalisé. "
#. Tag: title
-#: basic_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate-mapping"
-msgstr "hibernate-mapping"
+msgstr "Hibernate-mappage"
#. Tag: para
-#: basic_mapping.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
"and <literal>catalog</literal> attributes specify that tables referred to in "
@@ -279,59 +179,40 @@
"language."
msgstr ""
"Cet élément a plusieurs attributs optionnels. Les attributs <literal>schema</"
-"literal> et <literal>catalog</literal> indiquent que les tables référencées "
-"par ce mapping appartiennent au schéma nommé et/ou au catalogue. S'ils sont "
-"spécifiés, les noms de tables seront qualifiés par les noms de schéma et "
+"literal> et <literal>catalog</literal> indiquent que les tables mentionnées "
+"dans ce mappage appartiennent au schéma nommé et/ou au catalogue. S'ils sont "
+"spécifiés, les noms de tables seront qualifiés par les noms de schéma et de "
"catalogue. L'attribut <literal>default-cascade</literal> indique quel type "
-"de cascade sera utlisé par défaut pour les propriétés et collections qui ne "
+"de cascade sera utilisé par défaut pour les propriétés et collections qui ne "
"précisent pas l'attribut <literal>cascade</literal>. L'attribut "
"<literal>auto-import</literal> nous permet d'utiliser par défaut des noms de "
-"classes non qualifiés dans le langage de requête."
+"classes non qualifiés dans le langage de requête, par défaut. "
-#. Tag: programlisting
-#: basic_mapping.xml:138
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr ""
-"<literal>schema</literal> (optionnel) : Le nom d'un schéma de base de "
-"données."
+"<literal>schema</literal> (optionnel) : le nom d'un schéma de base de "
+"données. "
#. Tag: para
-#: basic_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr ""
-"<literal>catalog</literal> (optionnel) : Le nom d'un catalogue de base de "
-"données."
+"<literal>catalog</literal> (optionnel) : le nom d'un catalogue de base de "
+"données. "
#. Tag: para
-#: basic_mapping.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
"literal>): a default cascade style."
msgstr ""
"<literal>default-cascade</literal> (optionnel - par défaut vaut : "
-"<literal>none</literal>) : Un type de cascade par défaut."
+"<literal>none</literal>) : un type de cascade par défaut. "
#. Tag: para
-#: basic_mapping.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing all properties. "
@@ -340,57 +221,54 @@
"<literal>default-access</literal> (optionnel - par défaut vaut : "
"<literal>property</literal>) : Comment hibernate accèdera aux propriétés. On "
"peut aussi redéfinir sa propre implémentation de <literal>PropertyAccessor</"
-"literal>."
+"literal>. "
#. Tag: para
-#: basic_mapping.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
"literal>): the default value for unspecified <literal>lazy</literal> "
"attributes of class and collection mappings."
msgstr ""
"<literal>default-lazy</literal> (optionnel - par défaut vaut : "
-"<literal>true</literal>) : Valeur par défaut pour un attribut <literal>lazy</"
-"literal> non spécifié : celui des mappings de classes et de collection."
+"<literal>true</literal>) : Valeur par défaut pour des attributs "
+"<literal>lazy</literal> non spécifiés des mappages de classe et de "
+"collection. "
#. Tag: para
-#: basic_mapping.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
"literal>): specifies whether we can use unqualified class names of classes "
"in this mapping in the query language."
msgstr ""
"<literal>auto-import</literal> (optionnel - par défaut vaut : <literal>true</"
-"literal>) : Spécifie si l'on peut utiliser des noms de classes non qualifiés "
-"(des classes de ce mapping) dans le langage de requête."
+"literal>) : spécifie si l'on peut utiliser des noms de classes non qualifiés "
+"(de classes de ce mappage) dans le langage de requête. "
#. Tag: para
-#: basic_mapping.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
-"<literal>package</literal> (optionnel) : Préfixe de package par défaut pour "
-"les noms de classe non qualifiés du document de mapping."
+"<literal>package</literal> (optionnel) : préfixe de paquetage par défaut "
+"pour les noms de classe non qualifiés du document de mappage. "
#. Tag: para
-#: basic_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\"</literal>. An exception will "
"result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
-"Si deux classes possèdent le même nom de classe (non qualifié), vous devez "
-"indiquer <literal>auto-import=\"false\"</literal>. Hibernate lancera une "
-"exception si vous essayez d'assigner à deux classes le même nom importé."
+"Si deux classes persistantes possèdent le même nom de classe (non qualifié), "
+"vous devez configurer <literal>auto-import=\"false\"</literal>. Hibernate "
+"lancera une exception si vous essayez d'assigner le même nom \"importé\" à "
+"deux classes."
#. Tag: para
-#: basic_mapping.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
"persistent <literal><class></literal> mappings, as shown above. It is, "
@@ -400,85 +278,51 @@
"literal>, <literal>Dog.hbm.xml</literal>, or if using inheritance, "
"<literal>Animal.hbm.xml</literal>."
msgstr ""
-"Notez que l'élément <literal>hibernate-mapping</literal> vous permet "
-"d'imbriquer plusieurs mappings de <literal><class></literal> "
-"persistantes, comme dans l'exemple ci-dessus. Cependant la bonne pratique "
-"(ce qui est attendu par certains outils) est de mapper une seule classe (ou "
-"une seule hiérarchie de classes) par fichier de mapping et de nommer ce "
-"fichier d'après le nom de la superclasse, par exemple <literal>Cat.hbm.xml</"
-"literal>, <literal>Dog.hbm.xml</literal>, ou en cas d'héritage, "
-"<literal>Animal.hbm.xml</literal>."
+"Notez que l'élément <literal>hibernate-mappage</literal> vous permet "
+"d'imbriquer plusieurs mappages de <literal><class></literal> "
+"persistantes, comme dans l'exemple ci-dessus. Cependant il est recommandé "
+"(et c'est parfois une exigence de certains outils) de mapper une seule "
+"classe persistante (ou une seule hiérarchie de classes) par fichier de "
+"mappage et de nommer ce fichier d'après le nom de la superclasse "
+"persistante, par exemple <literal>Cat.hbm.xml</literal>, <literal>Dog.hbm."
+"xml</literal>, ou en cas d'héritage, <literal>Animal.hbm.xml</literal>. "
#. Tag: title
-#: basic_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Class"
-msgstr "class"
+msgstr "Classe"
#. Tag: para
-#: basic_mapping.xml:207
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
"element. For example:"
msgstr ""
-"Déclarez une classe persistante avec l'élément <literal>class</literal> :"
+"Déclarez une classe persistante avec l'élément <literal>class</literal>. "
+"Part exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:235
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:238
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
"the persistent class or interface. If this attribute is missing, it is "
"assumed that the mapping is for a non-POJO entity."
msgstr ""
-"<literal>name</literal> (optionnel) : Le nom Java complet de la classe (ou "
-"interface) persistante. Si cet attribut est absent, il est supposé que ce "
-"mapping ne se rapporte pas à une entité POJO."
+"<literal>name</literal> (optionnel) : le nom Java complet de la classe (ou "
+"interface) persistante. Si cet attribut est absent, nous supposons que ce "
+"mappage ne se rapporte pas à une entité POJO. "
#. Tag: para
-#: basic_mapping.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
-"<literal>table</literal> (optionnel - par défaut le nom (non-qualifié) de la "
-"classe) : Le nom de sa table en base de données."
+"<literal>table</literal> (optionnel - par défaut le nom non-qualifié de la "
+"classe) : le nom de sa table en base de données."
#. Tag: para
-#: basic_mapping.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
@@ -486,88 +330,73 @@
"<literal>not null</literal>."
msgstr ""
"<literal>discriminator-value</literal> (optionnel - par défaut le nom de la "
-"classe) : Une valeur permettant de distinguer les sous-classes dans le cas "
-"de l'utilisation du polymorphisme. Les valeurs <literal>null</literal> et "
-"<literal>not null</literal> sont autorisées."
+"classe) : une valeur permettant de distinguer les différentes sous-classes "
+"utilisées dans le comportement polymorphique. Les valeurs <literal>null</"
+"literal> et <literal>not null</literal> sont autorisées. "
#. Tag: para
-#: basic_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"specifies that instances of the class are (not) mutable."
msgstr ""
"<literal>mutable</literal> (optionnel, vaut <literal>true</literal> par "
-"défaut) : Spécifie que des instances de la classe sont (ou non) immuables."
+"défaut) : spécifie que des instances de la classe sont (ou non) immuables. "
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> (optionnel) : Surcharge le nom de schéma spécifié "
-"par l'élément racine <literal><hibernate-mapping></literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> (optionnel) : court-circuite le nom de schéma "
-"spécifié par l'élément de base <literal><hibernate-mapping></literal>."
+"<literal>schema</literal> (optionnel) : surcharge le nom de schéma spécifié "
+"par l'élément racine <literal><hibernate-mappage></literal>. "
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> (optionnel) : Surcharge le nom du catalogue "
-"spécifié par l'élément racine <literal><hibernate-mapping></literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> (optionnel) : court-circuite le nom de catalogue "
-"spécifié par l'élément de base <literal><hibernate-mapping></literal>."
+"<literal>catalog</literal> (optionnel) : surcharge le nom du catalogue "
+"spécifié par l'élément racine <literal><hibernate-mappage></literal>. "
#. Tag: para
-#: basic_mapping.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
-"<literal>proxy</literal> (optionnel) : Spécifie une interface à utiliser "
+"<literal>proxy</literal> (optionnel) : spécifie une interface à utiliser "
"pour l'initialisation différée (lazy loading) des proxies. Vous pouvez "
-"indiquer le nom de la classe elle-même."
+"indiquer le nom de la classe elle-même. "
#. Tag: para
-#: basic_mapping.xml:282
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>UPDATE</literal> SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
"<literal>dynamic-update</literal> (optionnel, par défaut à <literal>false</"
-"literal>) : Spécifie que les <literal>UPDATE</literal> SQL doivent être "
+"literal>) : spécifie que les SQL <literal>UPDATE</literal> doivent être "
"générés à l'exécution et contenir uniquement les colonnes dont les valeurs "
-"ont été modifiées."
+"ont été modifiées. "
#. Tag: para
-#: basic_mapping.xml:289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>INSERT</literal> SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
"<literal>dynamic-insert</literal> (optionnel, par défaut à <literal>false</"
-"literal>): Spécifie que les <literal>INSERT</literal> SQL doivent être "
+"literal>) : spécifie que les SQL <literal>INSERT</literal> doivent être "
"générés à l'exécution et ne contenir que les colonnes dont les valeurs sont "
-"non nulles."
+"non nulles. "
#. Tag: para
-#: basic_mapping.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
"<literal>false</literal>): specifies that Hibernate should <emphasis>never</"
@@ -578,113 +407,106 @@
"<literal>UPDATE</literal> is actually required."
msgstr ""
"<literal>select-before-update</literal> (optionnel, par défaut à "
-"<literal>false</literal>): Spécifie que Hibernate ne doit <emphasis>jamais</"
-"emphasis> exécuter un <literal>UPDATE</literal> SQL sans être certain qu'un "
+"<literal>false</literal>): spécifie que Hibernate ne doit <emphasis>jamais</"
+"emphasis> exécuter un SQL <literal>UPDATE</literal> sans être certain qu'un "
"objet a été réellement modifié. Dans certains cas, (en réalité, seulement "
"quand un objet transient a été associé à une nouvelle session par "
-"<literal>update()</literal>), cela signifie que Hibernate exécutera un "
-"<literal>SELECT</literal> SQL pour s'assurer qu'un <literal>UPDATE</literal> "
-"SQL est véritablement nécessaire."
+"<literal>update()</literal>), cela signifie que Hibernate exécutera un SQL "
+"<literal>SELECT</literal> pour déterminer si un SQL <literal>UPDATE</"
+"literal> est véritablement nécessaire. "
#. Tag: para
-#: basic_mapping.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
"literal>): determines whether implicit or explicit query polymorphism is "
"used."
msgstr ""
"<literal>polymorphism</literal> (optionnel, vaut <literal>implicit</literal> "
-"par défaut) : Détermine si, pour cette classe, une requête polymorphique "
-"implicite ou explicite est utilisée."
+"par défaut) : détermine si, pour cette classe, une requête polymorphique "
+"implicite ou explicite est utilisée. "
#. Tag: para
-#: basic_mapping.xml:312
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition to be used when retrieving objects of "
"this class."
msgstr ""
"<literal>where</literal> (optionnel) spécifie une clause SQL <literal>WHERE</"
-"literal> à utiliser lorsque l'on récupère des objets de cette classe."
+"literal> à utiliser lorsque l'on récupère des objets de cette classe. "
#. Tag: para
-#: basic_mapping.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
"<literal>ClassPersister</literal>."
msgstr ""
-"<literal>persister</literal> (optionnel) : Spécifie un "
-"<literal>ClassPersister</literal> particulier."
+"<literal>persister</literal> (optionnel) : spécifie un "
+"<literal>ClassPersister</literal> particulier. "
#. Tag: para
-#: basic_mapping.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
"<literal>batch-size</literal> (optionnel, par défaut = <literal>1</"
-"literal>) : spécifie une taille de batch pour remplir les instances de cette "
-"classe par identifiant en une seule requête."
+"literal>) : spécifie une \"taille de lot\" pour remplir les instances de "
+"cette classe par identifiant en une seule requête."
#. Tag: para
-#: basic_mapping.xml:329
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
"literal>): determines the optimistic locking strategy."
msgstr ""
"<literal>optimistic-lock</literal> (optionnel, par défaut = "
-"<literal>version</literal>) : Détermine la stratégie de verrou optimiste."
+"<literal>version</literal>) : détermine la stratégie de verrouillage "
+"optimiste. "
#. Tag: para
-#: basic_mapping.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"<literal>lazy</literal> (optionnel) : Déclarer <literal>lazy=\"true\"</"
-"literal> est un raccourci pour spécifier le nom de la classe comme étant "
-"l'interface <literal>proxy</literal>."
+"<literal>lazy</literal> (optionnel) : l'extraction différée (lazy fetching) "
+"peut être totalement désactivée en configurant <literal>lazy=\"false\"</"
+"literal>."
#. Tag: para
-#: basic_mapping.xml:341
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
"Hibernate3 allows a class to be mapped multiple times, potentially to "
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
-"<literal>entity-name</literal> (optionnel) : Hibernate3 permet à une classe "
-"d'être mappée plusieurs fois (potentiellement à plusieurs tables), et permet "
-"aux mappings d'entité d'être représentés par des Maps ou du XML au niveau "
-"Java. Dans ces cas, vous devez indiquer un nom explicite arbitraire pour les "
-"entités. Voir <xref linkend=\"persistent-classes-dynamicmodels\"/> et <xref "
-"linkend=\"xml\"/> pour plus d'informations."
+"<literal>entity-name</literal> (optionnel - le nom de classe par défaut) : "
+"Hibernate3 permet à une classe d'être mappée plusieurs fois (potentiellement "
+"à plusieurs tables), et permet aux mappages d'entité d'être représentés par "
+"des Maps ou du XML au niveau Java. Dans ces cas, vous devez indiquer un nom "
+"explicite arbitraire pour les entités. Consultez <xref linkend=\"persistent-"
+"classes-dynamicmodels\"/> et <xref linkend=\"xml\"/> pour plus "
+"d'informations. "
#. Tag: para
-#: basic_mapping.xml:351
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
"multi-row <emphasis>check</emphasis> constraint for automatic schema "
"generation."
msgstr ""
"<literal>check</literal> (optionnel) : expression SQL utilisée pour générer "
-"une contrainte de vérification multi-lignes pour la génération automatique "
-"de schéma."
+"une contrainte de vérification <emphasis>check</emphasis> multi-lignes pour "
+"la génération automatique de schéma. "
#. Tag: para
-#: basic_mapping.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra "
@@ -695,36 +517,34 @@
"<literal>rowid</literal> (optionnel) : Hibernate peut utiliser des ROWID sur "
"les bases de données qui utilisent ce mécanisme. Par exemple avec Oracle, "
"Hibernate peut utiliser la colonne additionnelle <literal>rowid</literal> "
-"pour des mises à jour rapides si cette option vaut <literal>rowid</literal>. "
-"Un ROWID représente la localisation physique d'un tuple enregistré."
+"pour des mise à jour rapides si cette option vaut <literal>rowid</literal>. "
+"Un ROWID est un détail d'implémentation et représente la localisation "
+"physique d'un uplet enregistré. "
#. Tag: para
-#: basic_mapping.xml:364
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
"entity to a database subselect. This is useful if you want to have a view "
"instead of a base table. See below for more information."
msgstr ""
-"<literal>subselect</literal> (optionnel) : Permet de mapper une entité "
+"<literal>subselect</literal> (optionnel) : permet de mapper une entité "
"immuable en lecture-seule sur un sous-select de base de données. Utile pour "
-"avoir une vue au lieu d'une table en base, mais à éviter. Voir plus bas pour "
-"plus d'information."
+"avoir une vue au lieu d'une table de base, mais à éviter. Voir plus bas pour "
+"plus d'informations. "
#. Tag: para
-#: basic_mapping.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
"superclasses in <literal><union-subclass></literal> hierarchies."
msgstr ""
-"<literal>abstract</literal> (optionnel) : Utilisé pour marquer des "
+"<literal>abstract</literal> (optionnel) : utilisé pour marquer des "
"superclasses abstraites dans des hiérarchies de <literal><union-"
-"subclass></literal>."
+"subclass></literal>. "
#. Tag: para
-#: basic_mapping.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
"declare implementing classes of that interface using the <literal><"
@@ -737,11 +557,10 @@
"interface en utilisant l'élément <literal><subclass></literal>. Vous "
"pouvez faire persister toute classe interne <emphasis>static</emphasis>. "
"Vous devez alors spécifier le nom de la classe par la notation habituelle "
-"des classes internes c'est à dire <literal>eg.Foo$Bar</literal>."
+"des classes internes, c'est à dire <literal>eg.Foo$Bar</literal>."
#. Tag: para
-#: basic_mapping.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
"or deleted by the application. This allows Hibernate to make some minor "
@@ -749,11 +568,10 @@
msgstr ""
"Les classes immuables, <literal>mutable=\"false\"</literal>, ne peuvent pas "
"être modifiées ou supprimées par l'application. Cela permet à Hibernate de "
-"faire quelques optimisations mineures sur les performances."
+"faire quelques optimisations mineures sur les performances. "
#. Tag: para
-#: basic_mapping.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
"of persistent instances of the class. Hibernate will initially return CGLIB "
@@ -761,16 +579,15 @@
"when a method of the proxy is invoked. See \"Initializing collections and "
"proxies\" below."
msgstr ""
-"L'attribut optionnnel <literal>proxy</literal> permet les intialisations "
+"L'attribut optionnel <literal>proxy</literal> permet les initialisations "
"différées des instances persistantes de la classe. Hibernate retournera "
"initialement des proxies CGLIB qui implémentent l'interface nommée. Le "
-"véritable objet persistant ne sera chargé que lorsque une méthode du proxy "
-"sera appelée. Voir plus bas le paragraphe abordant les proxies et le "
-"chargement différé (lazy initialization)."
+"véritable objet persistant ne sera chargé que lorsqu'une méthode du proxy "
+"sera appelée. Voir plus bas le paragraphe abordant les Proxies et leur "
+"initialisation différée (lazy initialization). "
#. Tag: para
-#: basic_mapping.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
"will be returned by a query that names any superclass or implemented "
@@ -786,7 +603,7 @@
"table This allows a \"lightweight\" class that contains a subset of the "
"table columns."
msgstr ""
-"Le polymorphisme <emphasis>implicite</emphasis> signifie que les instances "
+"Le polymorphisme <emphasis>implicite</emphasis> signifie que des instances "
"de la classe seront retournées par une requête qui utilise les noms de la "
"classe ou de chacune de ses superclasses ou encore des interfaces "
"implémentées par cette classe ou ses superclasses. Les instances des classes "
@@ -800,11 +617,10 @@
"literal>, est appropriée. Le polymorphisme explicite est utile lorsque deux "
"classes différentes sont mappées à la même table (ceci permet d'écrire une "
"classe \"légère\" qui ne contient qu'une partie des colonnes de la table - "
-"voir la partie design pattern du site communautaire)."
+"voir la partie design pattern du site communautaire). "
#. Tag: para
-#: basic_mapping.xml:410
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
"persistence strategy used for the class. You can, for example, specify your "
@@ -815,19 +631,19 @@
"files or LDAP. See <literal>org.hibernate.test.CustomPersister</literal> for "
"a simple example of \"persistence\" to a <literal>Hashtable</literal>."
msgstr ""
-"L'attribut <literal>persister</literal> vous permet de customiser la "
-"stratégie utilisée pour la classe. Vous pouvez, par exemple, spécifier votre "
-"propre sous-classe de <literal>org.hibernate.persister.EntityPersister</"
-"literal> ou vous pourriez aussi créer une nouvelle implémentation de "
-"l'interface <literal>org.hibernate.persister.ClassPersister</literal> qui "
-"proposerait une persistance via, par exemple, des appels de procédures "
-"stockées, de la sérialisation vers des fichiers plats ou un annuaire LDAP. "
-"Voir <literal>org.hibernate.test.CustomPersister</literal> pour un exemple "
-"simple (d'une \"persistance\" vers une <literal>Hashtable</literal>)."
+"L'attribut <literal>persister</literal> vous permet de personnaliser la "
+"stratégie de persistance utilisée pour la classe. Vous pouvez, par exemple, "
+"spécifier votre propre sous-classe de <literal>org.hibernate.persister."
+"EntityPersister</literal> ou vous pourriez aussi fournir une nouvelle "
+"implémentation de l'interface <literal>org.hibernate.persister."
+"ClassPersister</literal> qui proposerait une persistance via, par exemple, "
+"des appels de procédures stockées, de la sérialisation vers des fichiers "
+"plats ou un annuaire LDAP. Voir <literal>org.hibernate.test.CustomPersister</"
+"literal> pour un exemple simple (d'une \"persistance\" vers une "
+"<literal>Hashtable</literal>). "
#. Tag: para
-#: basic_mapping.xml:421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
"settings are not inherited by subclasses, so they can also be specified on "
@@ -838,13 +654,12 @@
"Notez que les paramètres <literal>dynamic-update</literal> et "
"<literal>dynamic-insert</literal> ne sont pas hérités par les sous-classes "
"et peuvent donc être spécifiés pour les éléments <literal><subclass></"
-"literal> ou <literal><joined-subclass></literal> Ces paramètres "
+"literal> ou <literal><joined-subclass></literal>. Ces paramètres "
"peuvent améliorer les performances dans certains cas, mais peuvent aussi les "
-"amoindrir. A utiliser en connaissance de causes."
+"amoindrir. Ã utiliser en connaissance de causes. "
#. Tag: para
-#: basic_mapping.xml:429
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
"performance. It is useful to prevent a database update trigger being called "
@@ -852,51 +667,45 @@
"<literal>Session</literal>."
msgstr ""
"L'utilisation de <literal>select-before-update</literal> va généralement "
-"faire baisser les performances. Ce paramètre est pratique pour prévenir "
-"l'appel inutile d'un trigger sur modification quand on réattache un graphe "
-"d'instances à une <literal>Session</literal>."
+"faire baisser les performances. Ce paramètre est pratique pour éviter "
+"l'appel inutile par un déclenchement de mise à jour de base de donnée, quand "
+"on ré-attache un graphe d'instances à une <literal>Session</literal>."
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
"optimistic locking strategies:"
msgstr ""
"Si vous utilisez le <literal>dynamic-update</literal>, les différentes "
-"stratégies de verrouillage optimiste (optimistic locking) sont les suivantes:"
+"stratégies de verrouillage optimiste sont les suivantes :"
#. Tag: para
-#: basic_mapping.xml:441
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
-msgstr "<literal>version</literal> vérifie les colonnes version/timestamp"
+msgstr "<literal>version</literal> vérifie les colonnes version/timestamp "
#. Tag: para
-#: basic_mapping.xml:446
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>all</literal>: check all columns"
-msgstr "<literal>all</literal> vérifie toutes les colonnes"
+msgstr "<literal>all</literal> vérifie toutes les colonnes "
#. Tag: para
-#: basic_mapping.xml:451
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
"concurrent updates"
msgstr ""
-"<literal>dirty</literal> vérifie les colonnes modifiées, permettant des "
-"updates concurrents"
+"<literal>dirty</literal> vérifie les colonnes modifiées, permettant quelques "
+"mise à jour concurrentes "
#. Tag: para
-#: basic_mapping.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
-msgstr "<literal>none</literal> pas de verrouillage optimiste"
+msgstr "<literal>none</literal> n'utilisez pas le verrouillage optimiste "
#. Tag: para
-#: basic_mapping.xml:461
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
"timestamp columns for optimistic locking with Hibernate. This strategy "
@@ -905,13 +714,12 @@
msgstr ""
"Nous encourageons <emphasis>très</emphasis> fortement l'utilisation de "
"colonnes de version/timestamp pour le verrouillage optimiste avec Hibernate. "
-"C'est la meilleure stratégie en regard des performances et la seule qui gère "
-"correctement les modifications sur les objets détachés (c'est à dire "
-"lorsqu'on utilise <literal>Session.merge()</literal>)."
+"C'est la meilleure stratégie en ce qui concerne les performances et la seule "
+"qui gère correctement les modifications sur les instances détachées (c'est à "
+"dire lorsqu'on utilise <literal>Session.merge()</literal>). "
#. Tag: para
-#: basic_mapping.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
"mapping. This is transparent at the database level, although some DBMS do "
@@ -920,36 +728,17 @@
"schema). In this case, you can map an immutable and read-only entity to a "
"given SQL subselect expression:"
msgstr ""
-"Il n'y a pas de différence entre table et vue pour le mapping Hibernate, "
-"tant que c'est transparent au niveau base de données (remarquez que "
-"certaines BDD ne supportent pas les vues correctement, notamment pour les "
-"updates). Vous rencontrerez peut-être des cas où vous souhaitez utiliser une "
-"vue mais ne pouvez pas en créer sur votre BDD (par exemple à cause de "
-"schémas anciens et figés). Dans ces cas, vous pouvez mapper une entité "
-"immuable en lecture seule sur un sous-select SQL donné:"
+"Il n'y a pas de différence entre table et vue pour le mappage Hibernate, "
+"comme on peut s'y attendre, cela est transparent au niveau base de données "
+"(remarquez que certaines BDD ne supportent pas les vues correctement, "
+"notamment pour les mise à jour). Il est possible que vous souhaitiez "
+"utiliser une vue mais vous ne puissiez pas en créer une sur votre BDD (c'est-"
+"à -dire avec un schéma ancien). Dans ces cas, vous pouvez mapper une entité "
+"immuable en lecture seule sur une expression sous-select SQL donnée :"
-#. Tag: programlisting
-#: basic_mapping.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:478
-#, fuzzy, no-c-format
-msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
"happens correctly and that queries against the derived entity do not return "
"stale data. The <literal><subselect></literal> is available both as an "
@@ -957,18 +746,16 @@
msgstr ""
"Déclarez les tables à synchroniser avec cette entité pour assurer que le "
"flush automatique se produise correctement, et pour que les requêtes sur "
-"l'entité dérivée ne renvoient pas des données périmées. Le litéral "
-"<literal><subselect></literal> est disponible comme attribut ou comme "
-"élément de mapping."
+"l'entité dérivée ne renvoient pas des données périmées. Le <literal><"
+"subselect></literal> est disponible comme attribut ou comme élément de "
+"mappage imbriqué. "
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
-msgstr ""
+msgid "id"
+msgstr "id"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -977,159 +764,95 @@
"literal> element defines the mapping from that property to the primary key "
"column."
msgstr ""
-"Les classes mappées <emphasis>doivent</emphasis> déclarer la clef primaire "
-"de la table en base de données. La plupart des classes auront aussi une "
-"propriété de type javabean présentant l'identifiant unique d'une instance. "
-"L'élément <literal><id></literal> sert à définir le mapping entre "
-"cette propriété et la clef primaire en base."
+"Les classes mappées <emphasis>doivent</emphasis> déclarer la clé primaire de "
+"la table en base de données. La plupart des classes auront aussi une "
+"propriété de type JavaBeans présentant l'identifiant unique d'une instance. "
+"L'élément <literal><id></literal> sert à définir le mappage entre "
+"cette propriété et la colonne de la clé primaire."
-#. Tag: programlisting
-#: basic_mapping.xml:505
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:508
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the name of the identifier property."
msgstr ""
-"<literal>name</literal> (optionnel) : Nom de la propriété qui sert "
-"d'identifiant."
+"<literal>name</literal> (optionnel) : nom de la propriété de l'identifiant."
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
-msgstr "<literal>type</literal> (optionnel) : nom indiquant le type Hibernate."
+msgstr ""
+"<literal>type</literal> (optionnel) : nom indiquant le type Hibernate. "
#. Tag: para
-#: basic_mapping.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the primary key column."
msgstr ""
"<literal>column</literal> (optionnel - le nom de la propriété est pris par "
-"défaut) : Nom de la clef primaire."
+"défaut) : nom de la colonne de la clé primaire."
#. Tag: para
-#: basic_mapping.xml:524
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
"value): an identifier property value that indicates an instance is newly "
"instantiated (unsaved), distinguishing it from detached instances that were "
"saved or loaded in a previous session."
msgstr ""
-"<literal>unsaved-value</literal> (optionnel - par défaut une valeur \"bien "
-"choisie\") : Une valeur de la propriété d'identifiant qui indique que "
+"<literal>unsaved-value</literal> (optionnel - devient par défaut une valeur "
+"\"sensible\") : une valeur de propriété d'identifiant qui indique que "
"l'instance est nouvellement instanciée (non sauvegardée), et qui la "
-"distingue des instances <literal>transient</literal>s qui ont été "
-"sauvegardées ou chargées dans une session précédente."
+"distingue des instances détachées qui ont été sauvegardées ou chargées dans "
+"une session précédente. "
#. Tag: para
-#: basic_mapping.xml:532
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing the property "
"value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (optionnel - par défaut <literal>property</"
-"literal>) : La stratégie que doit utiliser Hibernate pour accéder aux "
-"valeurs des propriétés.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - défaut à <literal>property</"
-"literal>) : La stratégie qu'Hibernate utilisera pour accéder à la valeur de "
-"la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>): Stratégie que Hibernate doit utiliser pour accéder à cette "
-"valeur.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de cette propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>formula</literal> (optionnel) : Presque toutes les associations one-"
-"to-one pointent sur la clef primaire de l'entité propriétaire. Dans les "
-"rares cas différents, vous devez donner une ou plusieurs autres colonnes ou "
-"expression à joindre par une formule SQL (voir <literal>org.hibernate.test."
-"onetooneformula</literal> pour un exemple).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique que ce composant doit être chargé au premier accès à la "
-"variable d'instance (nécessite une instrumentation du bytecode au moment du "
-"build).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à cette "
-"propriété."
+"literal>) : la stratégie que doit utiliser Hibernate pour accéder aux "
+"valeurs des propriétés. "
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
"class has no identifier property."
msgstr ""
"Si l'attribut <literal>name</literal> est absent, Hibernate considère que la "
-"classe ne possède pas de propriété identifiant."
+"classe ne possède pas de propriété d'identifiant."
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
"Hibernate3."
msgstr ""
-"L'attribut <literal>unsaved-value</literal> est important ! Si l'identifiant "
-"de votre classe n'a pas une valeur par défaut compatible avec le "
-"comportement standard de Java (zéro ou null), vous devez alors préciser la "
-"valeur par défaut."
+"L'attribut <literal>unsaved-value</literal> n'est presque jamais nécessaire "
+"dans Hibernate3."
#. Tag: para
-#: basic_mapping.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
"that allows access to legacy data with composite keys. Its use is strongly "
"discouraged for anything else."
msgstr ""
"La déclaration alternative <literal><composite-id></literal> permet "
-"l'acccès aux données d'anciens systèmes qui utilisent des clefs composées. "
-"Son utilisation est fortement déconseillée pour d'autres cas."
+"l'accès aux données d'anciens systèmes qui utilisent des clés composées. Son "
+"utilisation est fortement déconseillée pour d'autres cas."
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
msgstr "Generator"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1138,49 +861,33 @@
"generator instance, they are passed using the <literal><param></"
"literal> element."
msgstr ""
-"L'élément fils <literal><generator></literal> nomme une classe Java "
+"L'élément enfant <literal><generator></literal> nomme une classe Java "
"utilisée pour générer les identifiants uniques pour les instances des "
"classes persistantes. Si des paramètres sont requis pour configurer ou "
"initialiser l'instance du générateur, ils sont passés en utilisant l'élément "
"<literal><param></literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:564
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:566
-#, fuzzy, no-c-format
-msgid ""
"All generators implement the interface <literal>org.hibernate.id."
"IdentifierGenerator</literal>. This is a very simple interface. Some "
"applications can choose to provide their own specialized implementations, "
"however, Hibernate provides a range of built-in implementations. The "
"shortcut names for the built-in generators are as follows:"
msgstr ""
-"Tous les générateurs doivent implémenter l'interface <literal>org.hibernate."
-"id.IdentifierGenerator</literal>. C'est une interface très simple ; "
-"certaines applications peuvent proposer leur propre implémentations "
-"spécialisées. Cependant, Hibernate propose une série d'implémentations "
-"intégrées. Il existe des noms raccourcis pour les générateurs intégrés : "
-"<placeholder-1/>"
+"Tous les générateurs implémentent l'interface <literal>org.hibernate.id."
+"IdentifierGenerator</literal>. C'est une interface très simple ; certaines "
+"applications peuvent proposer leurs propres implémentations spécialisées. "
+"Cependant, Hibernate propose une série d'implémentations intégrées. Il "
+"existe des noms raccourcis pour les générateurs intégrés :"
-#. Tag: literal
-#: basic_mapping.xml:574
+#. Tag: term
#, no-c-format
-msgid "increment"
-msgstr "increment"
+msgid "<literal>increment</literal>"
+msgstr "<literal>increment</literal>"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1188,55 +895,49 @@
"process is inserting data into the same table. <emphasis>Do not use in a "
"cluster.</emphasis>"
msgstr ""
-"Génère des identifiants de type <literal>long</literal>, <literal>short</"
+"génère des identifiants de type <literal>long</literal>, <literal>short</"
"literal> ou <literal>int</literal> qui ne sont uniques que si aucun autre "
"processus n'insère de données dans la même table. <emphasis>Ne pas utiliser "
"en environnement clusterisé.</emphasis>"
-#. Tag: literal
-#: basic_mapping.xml:585
+#. Tag: term
#, no-c-format
-msgid "identity"
-msgstr "identity"
+msgid "<literal>identity</literal>"
+msgstr "<literal>identity</literal>"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
"HypersonicSQL. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>."
msgstr ""
-"Utilisation de la colonne identity de DB2, MySQL, MS SQL Server, Sybase et "
-"HypersonicSQL. L'identifiant renvoyé est de type <literal>long</literal>, "
-"<literal>short</literal> ou <literal>int</literal>."
+"prend en charge les colonnes d'identité dans DB2, MySQL, MS SQL Server, "
+"Sybase et HypersonicSQL. L'identifiant renvoyé est de type <literal>long</"
+"literal>, <literal>short</literal> ou <literal>int</literal>."
-#. Tag: literal
-#: basic_mapping.xml:595
+#. Tag: term
#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+msgid "<literal>sequence</literal>"
+msgstr "<literal>sequence</literal>"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
"Interbase. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>"
msgstr ""
-"Utilisation des séquences dans DB2, PostgreSQL, Oracle, SAP DB, McKoi ou "
-"d'un générateur dans Interbase. L'identifiant renvoyé est de type "
-"<literal>long</literal>, <literal>short</literal> ou <literal>int</literal>"
+"utilise une séquence dans DB2, PostgreSQL, Oracle, SAP DB, McKoi ou un "
+"générateur dans Interbase. L'identifiant renvoyé est de type <literal>long</"
+"literal>, <literal>short</literal> ou <literal>int</literal>"
-#. Tag: literal
-#: basic_mapping.xml:605
+#. Tag: term
#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+msgid "<literal>hilo</literal>"
+msgstr "<literal>hilo</literal>"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1246,141 +947,126 @@
"hi/lo algorithm generates identifiers that are unique only for a particular "
"database."
msgstr ""
-"Utilise un algorithme hi/lo pour générer de façon efficace des identifiants "
+"utilise un algorithme hi/lo pour générer de façon efficace des identifiants "
"de type <literal>long</literal>, <literal>short</literal> ou <literal>int</"
-"literal>, en prenant comme source de valeur \"hi\" une table et une colonne "
+"literal>, en prenant comme source de valeurs \"hi\" une table et une colonne "
"(par défaut <literal>hibernate_unique_key</literal> et <literal>next_hi</"
"literal> respectivement). L'algorithme hi/lo génère des identifiants uniques "
"pour une base de données particulière seulement."
-#. Tag: literal
-#: basic_mapping.xml:617
+#. Tag: term
#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>seqhilo</literal>"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long</literal>, <literal>short</literal> or <literal>int</literal>, "
"given a named database sequence."
msgstr ""
-"Utilise un algorithme hi/lo pour générer efficacement des identifiants de "
+"utilise un algorithme hi/lo pour générer efficacement des identifiants de "
"type <literal>long</literal>, <literal>short</literal> ou <literal>int</"
-"literal>, étant donné un nom de séquence en base."
+"literal>, en prenant une séquence en base nommée."
-#. Tag: literal
-#: basic_mapping.xml:627
+#. Tag: term
#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+msgid "<literal>uuid</literal>"
+msgstr "<literal>uuid</literal>"
#. Tag: para
-#: basic_mapping.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
"are unique within a network (the IP address is used). The UUID is encoded as "
"a string of 32 hexadecimal digits in length."
msgstr ""
-"Utilise un algorithme de type UUID 128 bits pour générer des identifiants de "
+"utilise un algorithme de type UUID 128 bits pour générer des identifiants de "
"type string, unique au sein d'un réseau (l'adresse IP est utilisée). Le UUID "
-"en codé en une chaîne de nombre héxadécimaux de longueur 32."
+"est encodé en une chaîne de nombre héxadécimaux de longueur 32. "
-#. Tag: literal
-#: basic_mapping.xml:637
+#. Tag: term
#, no-c-format
-msgid "guid"
-msgstr "guid"
+msgid "<literal>guid</literal>"
+msgstr "<literal>guid</literal>"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
msgstr ""
-"Utilise une chaîne GUID générée par la base pour MS SQL Server et MySQL."
+"utilise une chaîne GUID générée par la base pour MS SQL Server et MySQL."
-#. Tag: literal
-#: basic_mapping.xml:645
+#. Tag: term
#, no-c-format
-msgid "native"
-msgstr "native"
+msgid "<literal>native</literal>"
+msgstr "<literal>native</literal>"
#. Tag: para
-#: basic_mapping.xml:647
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
"<literal>hilo</literal> depending upon the capabilities of the underlying "
"database."
msgstr ""
-"Choisit <literal>identity</literal>, <literal>sequence</literal> ou "
+"choisit <literal>identity</literal>, <literal>sequence</literal> ou "
"<literal>hilo</literal> selon les possibilités offertes par la base de "
-"données sous-jacente."
+"données sous-jacente. "
-#. Tag: literal
-#: basic_mapping.xml:655
+#. Tag: term
#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+msgid "<literal>assigned</literal>"
+msgstr "<literal>assigned</literal>"
#. Tag: para
-#: basic_mapping.xml:657
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
"()</literal> is called. This is the default strategy if no <literal><"
"generator></literal> element is specified."
msgstr ""
-"Laisse l'application affecter un identifiant à l'objet avant que la métode "
-"<literal>save()</literal> soit appelée. Il s'agit de la stratégie par défaut "
-"si aucun <literal><generator></literal> n'est spécifié."
+"permet à l'application d'affecter un identifiant à l'objet avant que la "
+"méthode <literal>save()</literal> soit appelée. Il s'agit de la stratégie "
+"par défaut si aucun <literal><generator></literal> n'est spécifié. "
-#. Tag: literal
-#: basic_mapping.xml:665
+#. Tag: term
#, no-c-format
-msgid "select"
-msgstr "select"
+msgid "<literal>select</literal>"
+msgstr "<literal>select</literal>"
#. Tag: para
-#: basic_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
"row by some unique key and retrieving the primary key value."
msgstr ""
-"Récupère une clef primaire assignée par un trigger en sélectionnant la ligne "
-"par une clef unique quelconque."
+"récupère une clé primaire assignée par un déclencheur (trigger) de base de "
+"données en sélectionnant la ligne par une clé unique quelconque et en "
+"extrayant la valeur de la clé primaire."
-#. Tag: literal
-#: basic_mapping.xml:674
+#. Tag: term
#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+msgid "<literal>foreign</literal>"
+msgstr "<literal>foreign</literal>"
#. Tag: para
-#: basic_mapping.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one></literal> primary key "
"association."
msgstr ""
-"Utilise l'identifiant d'un objet associé. Habituellement utilisé en "
+"utilise l'identifiant d'un autre objet associé. Habituellement utilisé en "
"conjonction avec une association <literal><one-to-one></literal> sur "
-"la clef primaire."
+"la clé primaire. "
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
-msgstr "sequence-identity"
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
"for the actual value generation, but combines this with JDBC3 "
@@ -1389,22 +1075,21 @@
"drivers targeted for JDK 1.4. Comments on these insert statements are "
"disabled due to a bug in the Oracle drivers."
msgstr ""
-"a specialized sequence generation strategy which utilizes a database "
-"sequence for the actual value generation, but combines this with JDBC3 "
-"getGeneratedKeys to actually return the generated identifier value as part "
-"of the insert statement execution. This strategy is only known to be "
-"supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on "
-"these insert statements are disabled due to a bug in the Oracle drivers."
+"Une stratégie de génération de séquence spécialisée qui utilise une séquence "
+"de base de données pour la génération réelle de valeurs, tout en utilisant "
+"JDBC3 getGeneratedKeys pour retourner effectivement la valeur d'identifiant "
+"générée, comme faisant partie de l'exécution de la déclaration insert. Cette "
+"stratégie est uniquement prise en charge par les pilotes Oracle 10g pour JDK "
+"1.4. Notez que les commentaires sur ces déclarations insert sont désactivés "
+"Ã cause d'un bogue dans les pilotes d'Oracle. "
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
-msgstr "algorithme Hi/lo"
+msgstr "Algorithme Hi/lo"
#. Tag: para
-#: basic_mapping.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
"provide two alternate implementations of the hi/lo algorithm. The first "
@@ -1413,82 +1098,52 @@
"sequence."
msgstr ""
"Les générateurs <literal>hilo</literal> et <literal>seqhilo</literal> "
-"proposent deux implémentations alternatives de l'algorithme hi/lo, une "
-"approche largement utilisée pour générer des identifiants. La première "
-"implémentation nécessite une table \"spéciale\" en base pour héberger la "
-"prochaine valeur \"hi\" disponible. La seconde utilise une séquence de type "
-"Oracle (quand la base sous-jacente le propose)."
+"proposent deux implémentations alternatives de l'algorithme hi/lo. La "
+"première implémentation nécessite une table \"spéciale\" en base pour "
+"héberger la prochaine valeur \"hi\" disponible. La seconde utilise une "
+"séquence de type Oracle (quand la base sous-jacente le propose). "
-#. Tag: programlisting
-#: basic_mapping.xml:710
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:714
-#, fuzzy, no-c-format
-msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
"own <literal>Connection</literal> to Hibernate. When Hibernate uses an "
"application server datasource to obtain connections enlisted with JTA, you "
"must configure the <literal>hibernate.transaction.manager_lookup_class</"
"literal>."
msgstr ""
-"Malheureusement, vous ne pouvez pas utilisez <literal>hilo</literal> quand "
+"Malheureusement, vous ne pouvez pas utiliser <literal>hilo</literal> quand "
"vous apportez votre propre <literal>Connection</literal> Ã Hibernate. Quand "
"Hibernate utilise une datasource du serveur d'application pour obtenir des "
"connexions inscrites avec JTA, vous devez correctement configurer "
-"<literal>hibernate.transaction.manager_lookup_class</literal>."
+"<literal>hibernate.transaction.manager_lookup_class</literal>. "
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
-msgstr "UUID algorithm"
+msgstr "Algorithme UUID "
#. Tag: para
-#: basic_mapping.xml:724
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
"quarter second, system time and a counter value that is unique within the "
"JVM. It is not possible to obtain a MAC address or memory address from Java "
"code, so this is the best option without using JNI."
msgstr ""
-"Le contenu du UUID est : adresse IP, date de démarrage de la JVM (précis au "
-"quart de seconde), l'heure système et un compteur (unique au sein de la "
-"JVM). Il n'est pas possible d'obtenir l'adresse MAC ou une adresse mémoire à "
-"partir de Java, c'est donc le mieux que l'on puisse faire sans utiliser JNI."
+"Le contenu du UUID est : l'adresse IP, la date de démarrage de la JVM "
+"(précis au quart de seconde), l'heure système et une contre-valeur (unique "
+"au sein de la JVM). Il n'est pas possible d'obtenir une adresse MAC ou une "
+"adresse mémoire à partir de Java, c'est donc le mieux que l'on puisse faire "
+"sans utiliser JNI. "
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr "Colonnes identifiantes et séquences"
#. Tag: para
-#: basic_mapping.xml:734
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity</literal> key generation. For databases that "
@@ -1497,37 +1152,15 @@
"strategies require two SQL queries to insert a new object. For example:"
msgstr ""
"Pour les bases qui implémentent les colonnes \"identité\" (DB2, MySQL, "
-"Sybase, MS SQL), vous pouvez utiliser la génération de clef par "
+"Sybase, MS SQL), vous pouvez utiliser la génération de clé par "
"<literal>identity</literal>. Pour les bases qui implémentent les séquences "
"(DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB) vous pouvez utiliser la "
-"génération de clef par <literal>sequence</literal>. Ces deux méthodes "
-"nécessitent deux requêtes SQL pour insérer un objet."
+"génération de clé par <literal>sequence</literal>. Ces deux méthodes "
+"nécessitent deux requêtes SQL pour insérer un nouvel objet. Par exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:742
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:746
-#, fuzzy, no-c-format
-msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</"
@@ -1536,17 +1169,15 @@
"Pour le développement multi-plateformes, la stratégie <literal>native</"
"literal> choisira entre les méthodes <literal>identity</literal>, "
"<literal>sequence</literal> et <literal>hilo</literal>, selon les "
-"possibilités offertes par la base sous-jacente."
+"possibilités offertes par la base sous-jacente. "
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr "Identifiants assignés"
#. Tag: para
-#: basic_mapping.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
"Hibernate generate them, you can use the <literal>assigned</literal> "
@@ -1559,14 +1190,13 @@
"Si vous souhaitez que l'application assigne des identifiants (par opposition "
"à la génération par Hibernate), vous pouvez utiliser le générateur "
"<literal>assigned</literal>. Ce générateur spécial utilisera une valeur "
-"d'identifiant déjà utilisé par la propriété identifiant l'objet. Ce "
-"générateur est utilisé quand la clef primaire est une clef naturelle plutôt "
-"qu'une clef secondaire. C'est le comportement par défaut si vous ne précisez "
+"d'identifiant déjà utilisée par la propriété identifiant l'objet. Ce "
+"générateur est utilisé quand la clé primaire est une clé naturelle plutôt "
+"qu'une clé secondaire. C'est le comportement par défaut si vous ne précisez "
"pas d'élément <literal><generator></literal>."
#. Tag: para
-#: basic_mapping.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go "
@@ -1574,61 +1204,45 @@
"there is a version or timestamp property, or you define <literal>Interceptor."
"isUnsaved()</literal>."
msgstr ""
-"Choisir le générateur <literal>assigned</literal> fait utiliser "
-"<literal>unsaved-value=\"undefined\"</literal> par Hibernate, le forçant à "
-"interroger la base pour déterminer si l'instance est transiente ou détachée, "
-"à moins d'utiliser une propriété version ou timestamp, ou alors de définir "
-"<literal>Interceptor.isUnsaved()</literal>."
+"Choisir le générateur <literal>assigned</literal> fait que Hibernate "
+"utilise<literal>unsaved-value=\"undefined\"</literal>, le forçant ainsi à "
+"interroger la base de données pour déterminer si une instance est transiente "
+"ou détachée, à moins d'utiliser une propriété version ou timestamp, ou alors "
+"de définir <literal>Interceptor.isUnsaved()</literal>. "
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
-msgstr "Clefs primaires assignées par trigger"
+msgstr "Clés primaires assignées par les triggers"
#. Tag: para
-#: basic_mapping.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
msgstr ""
"Pour les schémas de base hérités d'anciens systèmes uniquement (Hibernate ne "
-"génère pas de DDL avec des triggers)"
+"génère pas de DDL avec des triggers) "
-#. Tag: programlisting
-#: basic_mapping.xml:779
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:781
-#, fuzzy, no-c-format
-msgid ""
"In the above example, there is a unique valued property named "
"<literal>socialSecurityNumber</literal>. It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id</literal>, whose "
"value is generated by a trigger."
msgstr ""
-"Dans l'exemple ci-dessus, <literal>socialSecurityNumber</literal> a une "
-"valeur unique définie par la classe en tant que clef naturelle et "
-"<literal>person_id</literal> est une clef secondaire dont la valeur est "
-"générée par trigger."
+"Dans l'exemple ci-dessus, il y a une valeur de propriété unique appelée "
+"<literal>socialSecurityNumber</literal>. Elle est définie par la classe en "
+"tant que clé naturelle et il y a également une clé secondaire appelée "
+"<literal>person_id</literal> dont la valeur est générée par un trigger."
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
-msgstr "Enhanced identifier generators"
+msgstr "La méthode getter de l'identifiant "
#. Tag: para
-#: basic_mapping.xml:795
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
"thinking of 2 different aspects of identifier generation. The first aspect "
@@ -1638,17 +1252,17 @@
"the named generators described above, starting in 3.3.x. However, they are "
"included in the current releases and can be referenced by FQN."
msgstr ""
-"Starting with release 3.2.3, there are 2 new generators which represent a re-"
-"thinking of 2 different aspects of identifier generation. The first aspect "
-"is database portability; the second is optimization (not having to query the "
-"database for every request for a new identifier value). These two new "
-"generators are intended to take the place of some of the named generators "
-"described above (starting in 3.3.x); however, they are included in the "
-"current releases and can be referenced by FQN."
+"A partir de la version 3.2.3, 2 générateurs représentent une nouvelle "
+"conception de 2 aspects séparés de la génération d'identifiants. Le premier "
+"aspect est la portabilité de la base de données; le second est "
+"l'optimization, c'est à dire que vous n'avez pas à interroger la base de "
+"données pour chaque requête de valeur d'identifiant. Ces deux nouveaux "
+"générateurs sont sensés prendre la place de générateurs décrits ci-dessus, "
+"ayant pour préfixe 3.3.x. Cependant, ils sont inclus dans les versions "
+"actuelles, et peuvent être référencés par FQN."
#. Tag: para
-#: basic_mapping.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
"SequenceStyleGenerator</literal> which is intended, firstly, as a "
@@ -1667,100 +1281,95 @@
"with its table-based generators. This generator has a number of "
"configuration parameters:"
msgstr ""
-"The first of these new generators is <literal>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</literal> which is intended firstly as a replacement "
-"for the <literal>sequence</literal> generator and secondly as a better "
-"portability generator than <literal>native</literal> (because "
-"<literal>native</literal> (generally) chooses between <literal>identity</"
-"literal> and <literal>sequence</literal> which have largely different "
-"semantics which can cause subtle isssues in applications eyeing "
-"portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
-"literal> however achieves portability in a different manner. It chooses "
-"between using a table or a sequence in the database to store its "
-"incrementing values depending on the capabilities of the dialect being used. "
-"The difference between this and <literal>native</literal> is that table-"
-"based and sequence-based storage have the same exact semantic (in fact "
-"sequences are exactly what Hibernate tries to emmulate with its table-based "
-"generators). This generator has a number of configuration parameters: "
-"<placeholder-1/>"
+"Le premier de ces nouveaux générateurs est <literal>org.Hibernate.ID."
+"Enhanced.SequenceStyleGenerator</literal> qui est destiné, tout d'abord, "
+"comme un remplacement pour le générateur <literal>séquence</literal> et, "
+"deuxièmement, comme un générateur de portabilité supérieur à <literal>natif</"
+"literal>. C'est parce que <literal>natif</literal> a généralement le choix "
+"entre <literal>identité</literal> et <literal>séquence</literal> qui ont des "
+"sémantiques largement différentes, ce qui peut entraîner des problèmes "
+"subtils en observant la portabilité des applications. <literal>org.Hibernate."
+"ID.Enhanced SequenceStyleGenerator.</literal>, cependant, réalise la "
+"portabilité d'une manière différente. Il choisit entre une table ou une "
+"séquence dans la base de données pour stocker ses valeurs s'incrémentant, "
+"selon les capacités du dialecte utilisé. La différence avec <literal>natif</"
+"literal> c'est que de stockage basé sur les tables ou basé sur la séquence "
+"ont la même sémantique. En fait, les séquences sont exactement ce "
+"qu'Hibernate essaie d'émuler avec ses générateurs basée sur les tables. Ce "
+"générateur a un certain nombre de paramètres de configuration :"
#. Tag: para
-#: basic_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
"<literal>hibernate_sequence</literal>): the name of the sequence or table to "
"be used."
msgstr ""
-"<literal>sequence_name</literal> (optional, defaults to "
-"<literal>hibernate_sequence</literal>): The name of the sequence (or table) "
-"to be used."
+"<literal>sequence_name</literal> (en option, par défaut = "
+"<literal>hibernate_sequence</literal>): le nom de la séquence ou table à "
+"utiliser."
#. Tag: para
-#: basic_mapping.xml:823
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
"literal>): the initial value to be retrieved from the sequence/table. In "
"sequence creation terms, this is analogous to the clause typically named "
"\"STARTS WITH\"."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the sequence/table. In "
-"sequence creation terms, this is analogous to the clause typical named "
-"\"STARTS WITH\"."
+"<literal>initial_value</literal> (en option - par défaut = <literal>1</"
+"literal>) : la première valeur à extraire de la séquence/table. En termes de "
+"création de séquences, c'est semblable à la clause qui s'appelle \"STARTS "
+"WITH\" normalement."
#. Tag: para
-#: basic_mapping.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): the value by which subsequent calls to the sequence/table should "
"differ. In sequence creation terms, this is analogous to the clause "
"typically named \"INCREMENT BY\"."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the sequence/table should "
-"differ. In sequence creation terms, this is analogous to the clause typical "
-"named \"INCREMENT BY\"."
+"<literal>increment_size</literal> (en option - par défaut = <literal>1</"
+"literal>): la valeur par laquelle les appels suivants à la séquence / table "
+"doivent différer. En termes de création de séquence, c'est analogue à la "
+"clause généralement nommé \"INCREMENT BY\"."
#. Tag: para
-#: basic_mapping.xml:837
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
"literal>): should we force the use of a table as the backing structure even "
"though the dialect might support sequence?"
msgstr ""
-"<literal>force_table_use</literal> (optional, defaults to <literal>false</"
-"literal>): Should we force the use of a table as the backing structure even "
-"though the dialect might support sequence?"
+"<literal>force_table_use</literal> (optionnel - par défaut = <literal>false</"
+"literal>) : doit-on forcer l'utilisation de la table en tant que structure "
+"de soutien même si le dialecte peut supporter la séquence ?"
#. Tag: para
-#: basic_mapping.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
"literal>): only relevant for table structures, it is the name of the column "
"on the table which is used to hold the value."
msgstr ""
-"<literal>value_column</literal> (optional, defaults to <literal>next_val</"
-"literal>): Only relevant for table structures! The name of the column on the "
-"table which is used to hold the value."
+"<literal>value_column</literal> (en option - par défaut = <literal>next_val</"
+"literal>): uniquement utile pour les structures de tables. Correspond au nom "
+"de la colonne de la table qui est utilisée pour contenir la valeur."
#. Tag: para
-#: basic_mapping.xml:851
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>cascade</literal> (optionnel - par défaut à <literal>none</"
-"literal>) : le style de cascade."
+"<literal>optimizer</literal> (en option - valeur par défaut = <literal>none</"
+"literal>): Voir <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
+"\" />"
#. Tag: para
-#: basic_mapping.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
"TableGenerator</literal>, which is intended, firstly, as a replacement for "
@@ -1773,148 +1382,141 @@
"multiple distinctly keyed rows. This generator has a number of configuration "
"parameters:"
msgstr ""
-"The second of these new generators is <literal>org.hibernate.id.enhanced."
-"TableGenerator</literal> which is intended firstly as a replacement for the "
-"<literal>table</literal> generator (although it actually functions much more "
-"like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>) and "
-"secondly as a re-implementation of <literal>org.hibernate.id."
-"MultipleHiLoPerTableGenerator</literal> utilizing the notion of pluggable "
-"optimiziers. Essentially this generator defines a table capable of holding a "
-"number of different increment values simultaneously by using multiple "
-"distinctly keyed rows. This generator has a number of configuration "
-"parameters: <placeholder-1/>"
+"Le deuxième de ces nouveaux générateurs est <literal>org.Hibernate.ID."
+"Enhanced.TableGenerator</literal>, qui est destiné, tout d'abord, comme un "
+"remplacement pour le générateur de la <literal>table</literal>, même si elle "
+"fonctionne effectivement beaucoup plus comme <literal>org.Hibernate.ID."
+"MultipleHiLoPerTableGenerator</literal>et deuxièmement, comme une remise en "
+"Åuvre de <literal>org.Hibernate.ID.MultipleHiLoPerTableGenerator</literal>, "
+"qui utilise la notion d'optimizers enfichables. Essentiellement ce "
+"générateur définit une table susceptible de contenir un certain nombre de "
+"valeurs d'incrément différents simultanément à l'aide de plusieurs lignes "
+"distinctement masquées. Ce générateur a un certain nombre de paramètres de "
+"configuration :"
#. Tag: para
-#: basic_mapping.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
"<literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
-"<literal>table_name</literal> (optional, defaults to "
-"<literal>hibernate_sequences</literal>): The name of the table to be used."
+"<literal>table_name</literal> (en optin - valeur par défaut = "
+"<literal>hibernate_sequences</literal>): le nom de la table à utiliser."
#. Tag: para
-#: basic_mapping.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
"<literal>next_val</literal>): the name of the column on the table that is "
"used to hold the value."
msgstr ""
-"<literal>value_column_name</literal> (optional, defaults to "
-"<literal>next_val</literal>): The name of the column on the table which is "
-"used to hold the value."
+"<literal>value_column_name</literal> (en option - valeur par défaut "
+"=<literal>next_val</literal>): le nom de la colonne contenue dans la table "
+"utilisée pour la valeur."
#. Tag: para
-#: basic_mapping.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
"<literal>sequence_name</literal>): the name of the column on the table that "
"is used to hold the \"segment key\". This is the value which identifies "
"which increment value to use."
msgstr ""
-"<literal>segment_column_name</literal> (optional, defaults to "
-"<literal>sequence_name</literal>): The name of the column on the table which "
-"is used to hold the \"segement key\". This is the value which distinctly "
-"identifies which increment value to use."
+"<literal>segment_column_name</literal> (en option - par défaut = "
+"<literal>sequence_name</literal>): le nom de la colonne de la table qui est "
+"utilisée pour contenir la \"segment key\". Il s'agit de la valeur qui "
+"identifie la valeur d'incrément à utiliser."
#. Tag: para
-#: basic_mapping.xml:887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
"literal>): The \"segment key\" value for the segment from which we want to "
"pull increment values for this generator."
msgstr ""
-"<literal>segment_value</literal> (optional, defaults to <literal>default</"
-"literal>): The \"segment key\" value for the segment from which we want to "
-"pull increment values for this generator."
+"<literal>segment_value</literal> (en option - par défaut = <literal>par "
+"défaut</literal>): La \"segment key\"valeur pour le segment à partir de "
+"laquelle nous voulons extraire des valeurs d'incrémentation pour ce "
+"générateur."
#. Tag: para
-#: basic_mapping.xml:894
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
"<literal>255</literal>): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
-"<literal>segment_value_length</literal> (optional, defaults to <literal>255</"
-"literal>): Used for schema generation; the column size to create this "
-"segment key column."
+"<literal>segment_value_length</literal> (en option - par défaut = "
+"<literal>255</literal>): Utilisée pour la génération de schéma ; la taille "
+"de la colonne pour créer cette colonne de clé de segment."
#. Tag: para
-#: basic_mapping.xml:900
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
"literal>): The initial value to be retrieved from the table."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the table."
+"<literal>initial_value</literal> (en option - par défaut est <literal>1</"
+"literal> : La valeur initiale à récupérer à partir de la table."
#. Tag: para
-#: basic_mapping.xml:906
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): The value by which subsequent calls to the table should differ."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the table should differ."
+"<literal>increment_size</literal> (en option - par défaut = <literal>1</"
+"literal>): La valeur par laquelle les appels à la table, qui suivent, "
+"devront différer."
#. Tag: para
-#: basic_mapping.xml:912
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>cascade</literal> (optionnel - par défaut à <literal>none</"
-"literal>) : le style de cascade."
+"<literal>optimizer</literal> (en option - valeur par défaut = <literal></"
+"literal>): Voir <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
+"\" />"
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
-msgstr "Identifier generator optimization"
+msgstr "Optimisation du générateur d'identifiants"
#. Tag: para
-#: basic_mapping.xml:923
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
"inefficient for them to hit the database on each and every call to generate "
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
-"For identifier generators which store values in the database, it is "
-"inefficient for them to hit the database on each and every call to generate "
-"a new identifier value. Instead, you'd ideally want to group a bunch of them "
-"in memory and only hit the database when you have exhausted your in-memory "
-"value group. This is the role of the pluggable optimizers. Currently only "
-"the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced"
-"\"/> support this notion. <placeholder-1/>"
+"Pour les générateurs d'identifiants qui stockent des valeurs dans la base de "
+"données, il est inefficace d'interroger la base de données sur chaque appel "
+"en vue de générer une nouvelle valeur d'identifiant. Au lieu de cela, vous "
+"pouvez les regrouper dans un ensemble dans la mémoire et interroger la base "
+"de données que lorsque vous aurez épuisé votre groupe de valeur en mémoire. "
+"C'est le rôle des optimizers enfichables. Actuellement seulement les deux "
+"générateurs améliorés (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
+"prennent en charge cette opération."
#. Tag: para
-#: basic_mapping.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
"specified): this will not perform any optimizations and hit the database for "
"each and every request."
msgstr ""
-"<literal>none</literal> (generally this is the default if no optimizer was "
-"specified): This says to not perform any optimizations, and hit the database "
-"each and every request."
+"<literal>aucun</literal> (en général il s'agit de la valeur par défaut si "
+"aucun optimizer n'a été spécifié): n'effectuera pas d'optimisations et "
+"n'interrogera pas la base de données à chaque demande."
#. Tag: para
-#: basic_mapping.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
"retrieved values. The values from the database for this optimizer are "
@@ -1923,16 +1525,15 @@
"<literal>increment_size</literal> is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
-"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
-"retrieved values. The values from the database for this optimizer are "
-"expected to be sequential. The values retrieved from the database structure "
-"for this optimizer indicates the \"group number\"; the "
-"<literal>increment_size</literal> is multiplied by that value in memory to "
-"define a group \"hi value\"."
+"<literal>hilo</literal>: applique un algorithme hi/lo autour des valeurs "
+"extraites des base de données. Les valeurs de la base de données de cet "
+"optimizer sont censées être séquentielles. Les valeurs extraites de la "
+"structure des base de données pour cet optimizer indique le \"numéro de "
+"groupe\". Le <literal>increment_size</literal> est multiplié par cette "
+"valeur en mémoire pour définir un groupe de \"hi value\"."
#. Tag: para
-#: basic_mapping.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
"optimizer attempts to minimize the number of hits to the database. Here, "
@@ -1941,79 +1542,47 @@
"memory grouping algorithm. Here, <literal>increment_size</literal> refers to "
"the values coming from the database."
msgstr ""
-"<literal>pooled</literal>: like was discussed for <literal>hilo</literal>, "
-"this optimizers attempts to minimize the number of hits to the database. "
-"Here, however, we simply store the starting value for the \"next group\" "
-"into the database structure rather than a sequential value in combination "
-"with an in-memory grouping algorithm. <literal>increment_size</literal> here "
-"refers to the values coming from the database."
+"<literal>mise en commun</literal>: tout comme dans le cas de <literal>hilo</"
+"literal>, cet optimizer tente de réduire le nombre d'interrogations vers la "
+"base de données. Ici, cependant, nous avons simplement stocké la valeur de "
+"départ pour le \"prochain groupe\"dans la structure de la base de données "
+"plutôt qu'une valeur séquentielle en combinaison avec un algorithme de "
+"regroupement en mémoire. Ici, <literal>increment_size</literal> fait "
+"référence aux valeurs provenant de la base de données."
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr "composite-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:963
-#, fuzzy, no-c-format
-msgid ""
"A table with a composite key can be mapped with multiple properties of the "
"class as identifier properties. The <literal><composite-id></literal> "
"element accepts <literal><key-property></literal> property mappings "
"and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-"Pour une table avec clef composée, vous pouvez mapper plusieurs attributs de "
-"la classe comme propriétés identifiantes. L'élement <literal><composite-"
-"id></literal> accepte les mappings de propriétés <literal><key-"
-"property></literal> et les mappings <literal><key-many-to-one></"
-"literal> comme fils."
+"Pour une table avec clé composée, vous pouvez mapper plusieurs attributs de "
+"la classe comme propriétés identifiantes. L'élément <literal><composite-"
+"id></literal> accepte les mappages de propriétés <literal><key-"
+"property></literal> et les mappages <literal><key-many-to-one></"
+"literal> comme éléments enfants. "
-#. Tag: programlisting
-#: basic_mapping.xml:970
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:972
-#, fuzzy, no-c-format
-msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
"literal> and <literal>hashCode()</literal> to implement composite identifier "
"equality. It must also implement <literal>Serializable</literal>."
msgstr ""
"Vos classes persistantes <emphasis>doivent</emphasis> surcharger les "
"méthodes <literal>equals()</literal> et <literal>hashCode()</literal> pour "
-"implémenter l'égalité d'identifiant composé. Elles doivent aussi implenter "
-"l'interface <literal>Serializable</literal>."
+"implémenter l'égalité d'identifiant composite. Elles doivent aussi "
+"implémenter l'interface <literal>Serializable</literal>."
#. Tag: para
-#: basic_mapping.xml:978
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
"identifier. There is no convenient \"handle\" other than the object itself. "
@@ -2023,17 +1592,16 @@
"<emphasis>embedded</emphasis> composite identifier, and discourage it for "
"serious applications."
msgstr ""
-"Malheureusement cette approche sur les identifiants composés signifie qu'un "
-"objet persistant est son propre identifiant. Il n'y a pas d'autre moyen "
-"pratique de manipuler l'objet que par l'objet lui-même. Vous devez "
-"instancier une instance de la classe persistante elle-même et peupler ses "
-"attributs identifiants avant de pouvoir appeler la méthode <literal>load()</"
-"literal> pour charger son état persistant associé à une clef composée. Nous "
-"appelons cette approche \"identifiant composé <emphasis>embarqué</emphasis>"
-"\" et ne la recommandons pas pour des applications complexes."
+"Malheureusement, cette approche signifie qu'un objet persistant est son "
+"propre identifiant. Il n'y a pas d'autre moyen pratique de \"manipuler\" "
+"l'objet que par l'objet lui-même. Vous devez instancier une instance de la "
+"classe persistante elle-même et peupler ses attributs identifiants avant de "
+"pouvoir appeler la méthode <literal>load()</literal> pour charger son état "
+"persistant associé à une clé composée. Nous appelons cette approche "
+"\"identifiant composé <emphasis>embarqué</emphasis>\" et ne la recommandons "
+"pas pour des applications complexes."
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -2042,24 +1610,13 @@
"class and a separate identifier class."
msgstr ""
"Une seconde approche, appelée identifiant composé <emphasis>mappé</"
-"emphasis>, consiste à encapsuler les propriétés identifiantes (celles "
-"contenues dans <literal><composite-id></literal>) dans une classe "
-"particulière."
+"emphasis>, consiste à dupliquer les propriétés identifiantes nommées dans "
+"l'élément <literal><composite-id></literal>) à la fois dans la classe "
+"persistante et dans une classe identifiante particulière."
-#. Tag: programlisting
-#: basic_mapping.xml:993
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:995
-#, fuzzy, no-c-format
-msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
"literal>, and the entity class itself have properties named "
"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
@@ -2072,10 +1629,9 @@
"<literal>medicareNumber</literal> et <literal>dependent</literal>. La classe "
"identifiante doit redéfinir <literal>equals()</literal> et <literal>hashCode"
"()</literal> et implémenter <literal>Serializable</literal>. Le désavantage "
-"de cette approche est la duplication du code."
+"de cette approche est la duplication du code. "
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
@@ -2083,8 +1639,7 @@
"Les attributs suivants servent à configurer un identifiant composé mappé :"
#. Tag: para
-#: basic_mapping.xml:1010
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
"indicates that a mapped composite identifier is used, and that the contained "
@@ -2092,37 +1647,34 @@
"identifier class."
msgstr ""
"<literal>mapped</literal> (optionnel, défaut à <literal>false</literal>) : "
-"indique qu'un identifiant composé mappé est utilisé, et que les propriétés "
-"contenues font référence aux deux classes (celle mappée et la classe "
-"identifiante)."
+"indique qu'un identifiant composé mappé est utilisé, et que les mappages de "
+"propriétés contenues font référence aux deux classes, la classe mappée et la "
+"classe identifiante composée. "
#. Tag: para
-#: basic_mapping.xml:1018
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
"identifier): the class used as a composite identifier."
msgstr ""
"<literal>class</literal> (optionnel, mais requis pour un identifiant composé "
-"mappé) : La classe composant utilisée comme identifiant composé."
+"mappé) : la classe utilisée comme identifiant composé. "
#. Tag: para
-#: basic_mapping.xml:1025
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
-"Nous décrirons une troisième approche beaucoup plus efficace ou "
+"Nous décrirons une troisième approche beaucoup plus efficace pour laquelle "
"l'identifiant composé est implémenté comme une classe composant dans <xref "
-"linkend=\"components-compositeid\"/>. Les attributs décrits ci dessous, ne "
+"linkend=\"components-compositeid\" />. Les attributs décrits ci dessous, ne "
"s'appliquent que pour cette dernière approche :"
#. Tag: para
-#: basic_mapping.xml:1033
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
"of component type that holds the composite identifier. Please see chapter 9 "
@@ -2130,88 +1682,45 @@
msgstr ""
"<literal>name</literal> (optionnel, requis pour cette approche) : une "
"propriété de type composant qui contient l'identifiant composé (voir "
-"chapitre 9)."
+"chapitre 9). "
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (optionnel - par défaut <literal>property</"
-"literal>) : La stratégie que doit utiliser Hibernate pour accéder aux "
-"valeurs des propriétés.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - défaut à <literal>property</"
-"literal>) : La stratégie qu'Hibernate utilisera pour accéder à la valeur de "
-"la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>): Stratégie que Hibernate doit utiliser pour accéder à cette "
-"valeur.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de cette propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>formula</literal> (optionnel) : Presque toutes les associations one-"
-"to-one pointent sur la clef primaire de l'entité propriétaire. Dans les "
-"rares cas différents, vous devez donner une ou plusieurs autres colonnes ou "
-"expression à joindre par une formule SQL (voir <literal>org.hibernate.test."
-"onetooneformula</literal> pour un exemple).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique que ce composant doit être chargé au premier accès à la "
-"variable d'instance (nécessite une instrumentation du bytecode au moment du "
-"build).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à cette "
-"propriété."
+"literal>) : la stratégie que doit utiliser Hibernate pour accéder aux "
+"valeurs des propriétés. "
#. Tag: para
-#: basic_mapping.xml:1045
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the component class used as a composite "
"identifier. Please see the next section for more information."
msgstr ""
-"<literal>class</literal> (optionnel - défaut au type de la propriété "
-"déterminé par réflexion) : La classe composant utilisée comme identifiant "
-"(voir prochaine section)."
+"<literal>class</literal> (optionnel - par défaut le type de la propriété "
+"déterminé par réflexion) : la classe composant utilisée comme identifiant "
+"(voir prochaine section). "
#. Tag: para
-#: basic_mapping.xml:1052
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
"recommended for almost all applications."
msgstr ""
-"Cette dernière approche est celle que nous recommandons pour toutes vos "
-"applications."
+"La troisième approche, un <emphasis>composant d'identifiant</emphasis>, est "
+"celle que nous recommandons pour toutes vos applications."
#. Tag: title
-#: basic_mapping.xml:1060
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Discriminator"
-msgstr "discriminator"
+msgstr "Discriminator"
#. Tag: para
-#: basic_mapping.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
"polymorphic persistence using the table-per-class-hierarchy mapping "
@@ -2224,51 +1733,36 @@
"literal>."
msgstr ""
"L'élément <literal><discriminator></literal> est nécessaire pour la "
-"persistance polymorphique qui utilise la stratégie de mapping de table par "
-"hiérarchie de classe. La colonne discriminante contient une valeur marqueur "
-"qui permet à la couche de persistance de savoir quelle sous-classe "
-"instancier pour une ligne particulière de table en base. Un nombre restreint "
-"de types peuvent être utilisés : <literal>string</literal>, "
-"<literal>character</literal>, <literal>integer</literal>, <literal>byte</"
-"literal>, <literal>short</literal>, <literal>boolean</literal>, "
-"<literal>yes_no</literal>, <literal>true_false</literal>."
+"persistance polymorphique qui utilise la stratégie de mappage de table par "
+"hiérarchie de classe et déclare une colonne discriminante de la table. La "
+"colonne discriminante contient des valeurs marqueur qui permettent à la "
+"couche de persistance de savoir quelle sous-classe instancier pour une ligne "
+"particulière de table en base. Un nombre restreint de types peuvent être "
+"utilisés : <literal>string</literal>, <literal>character</literal>, "
+"<literal>integer</literal>, <literal>byte</literal>, <literal>short</"
+"literal>, <literal>boolean</literal>, <literal>yes_no</literal>, "
+"<literal>true_false</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1080
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1083
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
"the name of the discriminator column."
msgstr ""
"<literal>column</literal> (optionnel - par défaut à <literal>class</"
-"literal>) le nom de la colonne discriminante."
+"literal>), le nom de la colonne discriminante. "
#. Tag: para
-#: basic_mapping.xml:1089
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
"a name that indicates the Hibernate type"
msgstr ""
"<literal>type</literal> (optionnel - par défaut à <literal>string</literal>) "
-"un nom indiquant le type Hibernate."
+"un nom indiquant le type Hibernate. "
#. Tag: para
-#: basic_mapping.xml:1095
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
@@ -2276,11 +1770,10 @@
msgstr ""
"<literal>force</literal> (optionnel - par défaut à <literal>false</literal>) "
"\"oblige\" Hibernate à spécifier une valeur discriminante autorisée même "
-"quand on récupère toutes les instances de la classe de base."
+"quand on récupère toutes les instances de la classe de base. "
#. Tag: para
-#: basic_mapping.xml:1102
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"set this to <literal>false</literal> if your discriminator column is also "
@@ -2290,11 +1783,10 @@
"<literal>insert</literal> (optionnel - par défaut à <literal>true</literal>) "
"à passer à <literal>false</literal> si la colonne discriminante fait aussi "
"partie d'un identifiant composé mappé (Indique à Hibernate de ne pas inclure "
-"la colonne dans les <literal>INSERT</literal> SQL)."
+"la colonne dans les SQL <literal>INSERT</literal> s). "
#. Tag: para
-#: basic_mapping.xml:1110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
@@ -2302,10 +1794,9 @@
msgstr ""
"<literal>formula</literal> (optionnel) une expression SQL arbitraire qui est "
"exécutée quand un type doit être évalué. Permet la discrimination basée sur "
-"le contenu."
+"le contenu. "
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
@@ -2314,11 +1805,10 @@
msgstr ""
"Les véritables valeurs de la colonne discriminante sont spécifiées par "
"l'attribut <literal>discriminator-value</literal> des éléments <literal><"
-"class></literal> et <literal><subclass></literal>."
+"class></literal> et <literal><subclass></literal>. "
#. Tag: para
-#: basic_mapping.xml:1124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
"rows with \"extra\" discriminator values that are not mapped to a persistent "
@@ -2326,37 +1816,25 @@
msgstr ""
"L'attribut <literal>force</literal> n'est utile que si la table contient des "
"lignes avec des valeurs \"extra\" discriminantes qui ne sont pas mappées à "
-"une classe persistante. Ce ne sera généralement pas le cas."
+"une classe persistante. Ce ne sera généralement pas le cas. "
#. Tag: para
-#: basic_mapping.xml:1130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
"SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
"En utilisant l'attribut <literal>formula</literal> vous pouvez déclarer une "
"expression SQL arbitraire qui sera utilisée pour évaluer le type d'une "
-"ligne :"
+"ligne : "
-#. Tag: programlisting
-#: basic_mapping.xml:1135
-#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1140
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Version (optional)"
-msgstr "version (optionnel)"
+msgstr "Version (optionnel)"
#. Tag: para
-#: basic_mapping.xml:1142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
"that the table contains versioned data. This is particularly useful if you "
@@ -2368,100 +1846,43 @@
"avez l'intention d'utiliser des <emphasis>transactions longues</emphasis> "
"(voir plus-bas)."
-#. Tag: programlisting
-#: basic_mapping.xml:1158
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1161
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
"<literal>column</literal> (optionnel - par défaut égal au nom de la "
-"propriété) : Le nom de la colonne contenant le numéro de version."
+"propriété) : le nom de la colonne contenant le numéro de version. "
#. Tag: para
-#: basic_mapping.xml:1167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
msgstr ""
-"<literal>name</literal> : Le nom d'un attribut de la classe persistante."
+"<literal>name</literal> : le nom d'un attribut de la classe persistante. "
#. Tag: para
-#: basic_mapping.xml:1172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
"the type of the version number."
msgstr ""
"<literal>type</literal> (optionnel - par défaut à <literal>integer</"
-"literal>) : Le type du numéro de version."
+"literal>) : le type du numéro de version. "
#. Tag: para
-#: basic_mapping.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses to access the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (optionnel - par défaut <literal>property</"
-"literal>) : La stratégie que doit utiliser Hibernate pour accéder aux "
-"valeurs des propriétés.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - défaut à <literal>property</"
-"literal>) : La stratégie qu'Hibernate utilisera pour accéder à la valeur de "
-"la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>): Stratégie que Hibernate doit utiliser pour accéder à cette "
-"valeur.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de cette propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>formula</literal> (optionnel) : Presque toutes les associations one-"
-"to-one pointent sur la clef primaire de l'entité propriétaire. Dans les "
-"rares cas différents, vous devez donner une ou plusieurs autres colonnes ou "
-"expression à joindre par une formule SQL (voir <literal>org.hibernate.test."
-"onetooneformula</literal> pour un exemple).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique que ce composant doit être chargé au premier accès à la "
-"variable d'instance (nécessite une instrumentation du bytecode au moment du "
-"build).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à cette "
-"propriété."
+"literal>) : la stratégie que doit utiliser Hibernate pour accéder aux "
+"valeurs des propriétés. "
#. Tag: para
-#: basic_mapping.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2470,14 +1891,13 @@
"specifies that the identifier property value should be used."
msgstr ""
"<literal>unsaved-value</literal> (optionnel - par défaut à "
-"<literal>undefined</literal>) : Une valeur de la propriété d'identifiant qui "
+"<literal>undefined</literal>) : une valeur de la propriété d'identifiant qui "
"indique que l'instance est nouvellement instanciée (non sauvegardée), et qui "
"la distingue des instances détachées qui ont été sauvegardées ou chargées "
-"dans une session précédente (<literal>undefined</literal> indique que la "
-"valeur de l'atribut identifiant devrait être utilisé)."
+"dans une session précédente. <literal>Undefined</literal> indique que la "
+"valeur de la propritété identifiant devrait être utilisée."
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2485,29 +1905,27 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (optional - défaut à <literal>never</"
-"literal>) : Indique que la valeur de la propriété version est générée par la "
-"base de données cf. <xref linkend=\"mapping-generated\">generated "
-"properties</xref>."
+"<literal>generated</literal> (optionnel - défaut à <literal>never</"
+"literal>) : spécifie que cette valeur de la propriété version est en réalité "
+"générée par la base de données. Consultez la discussion <xref linkend="
+"\"mapping-generated\"/> pour obtenir des informations supplémentaires."
#. Tag: para
-#: basic_mapping.xml:1200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"specifies whether the version column should be included in SQL insert "
"statements. It can be set to <literal>false</literal> if the database column "
"is defined with a default value of <literal>0</literal>."
msgstr ""
-"<literal>insert</literal> (optionnel - défaut à <literal>true</literal>) : "
-"Indique si la colonne de version doit être incluse dans les ordres insert. "
-"Peut être à <literal>false</literal> si et seulement si la colonne de la "
-"base de données est définie avec une valeur par défaut à <literal>0</"
-"literal>."
+"<literal>insert</literal> (optionnel - par défaut à <literal>true</"
+"literal>) : indique si la colonne de version doit être incluse dans les "
+"ordres SQL insert. Peut être configuré à <literal>false</literal> si et "
+"seulement si la colonne de la base de données est définie avec une valeur "
+"par défaut égale à <literal>0</literal>. "
#. Tag: para
-#: basic_mapping.xml:1210
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
@@ -2515,11 +1933,10 @@
msgstr ""
"Les numéros de version doivent avoir les types Hibernate <literal>long</"
"literal>, <literal>integer</literal>, <literal>short</literal>, "
-"<literal>timestamp</literal> ou <literal>calendar</literal>."
+"<literal>timestamp</literal> ou <literal>calendar</literal>. "
#. Tag: para
-#: basic_mapping.xml:1215
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
"instance. Hibernate will detect any instance with a null version or "
@@ -2534,19 +1951,17 @@
"version ou un timestamp null comme transient, quelles que soient les "
"stratégies <literal>unsaved-value</literal> spécifiées. <emphasis>Déclarer "
"un numéro de version ou un timestamp \"nullable\" est un moyen pratique "
-"d'éviter tout problème avec les réattachements transitifs dans Hibernate, "
+"d'éviter tout problème avec les ré-attachements transitifs dans Hibernate, "
"particulièrement utile pour ceux qui utilisent des identifiants assignés ou "
-"des clefs composées !</emphasis>"
+"des clés composées </emphasis>."
#. Tag: title
-#: basic_mapping.xml:1226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Timestamp (optional)"
-msgstr "timestamp (optionnel)"
+msgstr "Timestamp (optionnel) "
#. Tag: para
-#: basic_mapping.xml:1228
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
"table contains timestamped data. This provides an alternative to versioning. "
@@ -2554,51 +1969,33 @@
"sometimes the application might use the timestamps in other ways."
msgstr ""
"L'élément optionnel <literal><timestamp></literal> indique que la "
-"table contient des données horodatées (timestamp). Cela sert d'alternative à "
-"l'utilisation de numéros de version. Les timestamps (ou horodatage) sont par "
-"nature une implémentation moins fiable pour l'optimistic locking. Cependant, "
-"l'application peut parfois utiliser l'horodatage à d'autres fins."
+"table contient des données horodatées (timestamped). Cela sert d'alternative "
+"à l'utilisation de numéros de version. Les timestamps (ou horodatage) sont "
+"par nature une implémentation moins fiable pour le verrouillage optimiste. "
+"Cependant, l'application peut parfois utiliser l'horodatage à d'autres fins. "
-#. Tag: programlisting
-#: basic_mapping.xml:1244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1247
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of a column holding the timestamp."
msgstr ""
-"<literal>column</literal> (optionnel - par défaut à le nom de la "
-"propriété) : Le nom d'une colonne contenant le timestamp."
+"<literal>column</literal> (optionnel - par défaut devient le nom de la "
+"propriété) : le nom d'une colonne contenant le timestamp. "
#. Tag: para
-#: basic_mapping.xml:1253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
"<literal>Date</literal> or <literal>Timestamp</literal> of the persistent "
"class."
msgstr ""
-"<literal>name</literal> : Le nom d'une propriété au sens JavaBean de type "
-"<literal>Date</literal> ou <literal>Timestamp</literal> de la classe "
-"persistante."
+"<literal>name</literal> : le nom d'une propriété au sens JavaBean de type "
+"Java <literal>Date</literal> ou <literal>Timestamp</literal> de la classe "
+"persistante. "
#. Tag: para
-#: basic_mapping.xml:1266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2607,15 +2004,14 @@
"specifies that the identifier property value should be used."
msgstr ""
"<literal>unsaved-value</literal> (optionnel - par défaut à <literal>null</"
-"literal>) : Propriété dont la valeur est un numéro de version qui indique "
+"literal>) : propriété dont la valeur est un numéro de version qui indique "
"que l'instance est nouvellement instanciée (non sauvegardée), et qui la "
"distingue des instances détachées qui ont été sauvegardées ou chargées dans "
-"une session précédente (<literal>undefined</literal> indique que la valeur "
-"de l'attribut identifiant devrait être utilisée)."
+"une session précédente. (<literal>undefined</literal> indique que la valeur "
+"de propriété identifiant devrait être utilisée). "
#. Tag: para
-#: basic_mapping.xml:1275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
"Where should Hibernate retrieve the timestamp value from? From the database, "
@@ -2627,16 +2023,16 @@
"precision (Oracle 8, for example)."
msgstr ""
"<literal>source</literal> (optionnel - par défaut à <literal>vm</literal>) : "
-"D'où Hibernate doit-il récupérer la valeur du timestamp? Depuis la base de "
+"d'où Hibernate doit-il récupérer la valeur du timestamp? Depuis la base de "
"données ou depuis la JVM d'exécution? Les valeurs de timestamp de la base de "
"données provoquent une surcharge puisque Hibernate doit interroger la base "
"pour déterminer la prochaine valeur mais cela est plus sûr lorsque vous "
-"fonctionnez dans un cluster. Remarquez aussi que certains des dialectes ne "
-"supportent pas cette fonction, et que d'autres l'implémentent mal, "
-"provoquant des erreurs de précision (Oracle 8 par exemple)."
+"fonctionnez dans un cluster. Remarquez aussi que certains des "
+"<literal>Dialect</literal> s ne supportent pas cette fonction, et que "
+"d'autres l'implémentent mal, à cause d'un manque de précision (Oracle 8 par "
+"exemple)."
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2644,19 +2040,18 @@
"generated by the database. See the discussion of <link linkend=\"mapping-"
"generated\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (optional - défaut à <literal>never</"
-"literal>) : Indique que la valeur de ce timestamp est générée par la base de "
-"données cf. <xref linkend=\"mapping-generated\">generated properties</xref>."
+"<literal>generated</literal> (optionnel - par défaut à <literal>never</"
+"literal>) : indique que la valeur de ce timestamp est générée par la base de "
+"données des propriétés générées. Voir la discussion sur <xref linkend="
+"\"mapping-generated\"/> pour obtenir des informations supplémentaires. "
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Note"
#. Tag: para
-#: basic_mapping.xml:1299
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
"type=\"timestamp\"></literal>. And <literal><timestamp source=\"db"
@@ -2664,63 +2059,35 @@
"\"></literal>"
msgstr ""
"Notez que <literal><timestamp></literal> est équivalent à <literal><"
-"version type=\"timestamp\"></literal>."
+"version type=\"timestamp\"></literal> et <literal><timestamp source="
+"\"db\"></literal> équivaut à <literal><version type=\"dbtimestamp\">"
+"</literal>"
#. Tag: title
-#: basic_mapping.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property"
-msgstr "property"
+msgstr "Property"
#. Tag: para
-#: basic_mapping.xml:1313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
"JavaBean style property of the class."
msgstr ""
-"L'élément <literal><property></literal> déclare une propriété de la "
-"classe au sens JavaBean."
+"L'élément <literal><property></literal> déclare une propriété "
+"persistante de la classe au sens JavaBean."
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
"letter."
msgstr ""
"<literal>name</literal> : nom de la propriété, avec une lettre initiale en "
-"minuscule."
+"minuscule. "
#. Tag: para
-#: basic_mapping.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
@@ -2728,11 +2095,10 @@
msgstr ""
"<literal>column</literal> (optionnel - par défaut au nom de la propriété) : "
"le nom de la colonne mappée. Cela peut aussi être indiqué dans le(s) sous-"
-"élément(s) <literal><column></literal>."
+"élément(s) <literal><column></literal> imbriqués. "
#. Tag: para
-#: basic_mapping.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2743,12 +2109,13 @@
msgstr ""
"<literal>update, insert</literal> (optionnel - par défaut à <literal>true</"
"literal>) : indique que les colonnes mappées devraient être incluses dans "
-"des <literal>UPDATE</literal> SQL et/ou des <literal>INSERT</literal>. "
-"Mettre les deux à <literal>false</literal> empêche la propagation en base de "
-"données (utile si vous savez qu'un trigger affectera la valeur à la colonne)."
+"des déclarations SQL <literal>UPDATE</literal> et/ou des <literal>INSERT</"
+"literal>. Mettre les deux à <literal>false</literal> autorise une propriété "
+"pure dérivée dont la valeur est initialisée de quelque autre propriété qui "
+"mappe à la même colonne(s) ou par un trigger ou une autre application. "
+"(utile si vous savez qu'un trigger affectera la valeur à la colonne). "
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
@@ -2757,45 +2124,43 @@
msgstr ""
"<literal>formula</literal> (optionnel) : une expression SQL qui définit la "
"valeur pour une propriété <emphasis>calculée</emphasis>. Les propriétés "
-"calculées ne possède pas leur propre mapping."
+"calculées ne possèdent pas leur propre mappage."
#. Tag: para
-#: basic_mapping.xml:1378
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (optionnel - par défaut à <literal>false</literal>): "
-"Indique que cette propriété devrait être chargée en différé (lazy loading) "
-"quand on accède à la variable d'instance pour la première fois."
+"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
+"literal>) : indique que cette propriété devrait être chargée en différé "
+"(lazy loading) quand on accède à la variable d'instance pour la première "
+"fois (nécessite une instrumentation du bytecode lors de la phase de "
+"construction). "
#. Tag: para
-#: basic_mapping.xml:1385
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref</literal>."
msgstr ""
-"<literal>unique</literal> (optionnel): Génère le DDL d'une contrainte "
-"d'unicité pour les colonnes. Permet aussi d'en faire la cible d'un "
+"<literal>unique</literal> (optionnel) : génère le DDL d'une contrainte "
+"d'unicité pour les colonnes. Permet aussi d'en faire la cible d'une "
"<literal>property-ref</literal>."
#. Tag: para
-#: basic_mapping.xml:1392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
-"<literal>not-null</literal> (optionnel): Génère le DDL d'une contrainte de "
-"non nullité pour les colonnes."
+"<literal>not-null</literal> (optionnel) : génère le DDL d'une contrainte de "
+"nullité pour les colonnes."
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property do or do not require "
@@ -2803,13 +2168,12 @@
"version increment should occur when this property is dirty."
msgstr ""
"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
-"literal>): Indique que les mises à jour de cette propriété peuvent ou non "
-"nécessiter l'acquisition d'un verrou optimiste. En d'autres termes, cela "
-"détermine s'il est nécessaire d'incrémenter un numéro de version quand cette "
-"propriété est marquée obsolète (dirty)."
+"literal>) : indique si les mise à jour de cette propriété nécessitent ou non "
+"l'acquisition d'un verrou optimiste. En d'autres termes, cela détermine s'il "
+"est nécessaire d'incrémenter un numéro de version quand cette propriété est "
+"marquée obsolète (dirty)."
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2817,57 +2181,53 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (optional - défaut à <literal>never</literal>): "
-"Indique que la valeur de ce timestamp est générée par la base de données cf. "
-"<xref linkend=\"mapping-generated\">generated properties</xref>."
+"<literal>generated</literal> (optionnel - par défaut à <literal>never</"
+"literal>) : indique que la valeur de ce timestamp est générée par la base de "
+"données des propriétés générées. Voir la discussion sur <xref linkend="
+"\"mapping-generated\"/> pour plus d'informations. "
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
-msgstr "<emphasis>typename</emphasis> peut être:"
+msgstr "<emphasis>typename</emphasis> peut être :"
#. Tag: para
-#: basic_mapping.xml:1421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
"date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
-"Nom d'un type basique Hibernate (ex: <literal>integer, string, character, "
-"date, timestamp, float, binary, serializable, object, blob</literal>)."
+"Le nom d'un type basique Hibernate (par ex : <literal>integer, string, "
+"character, date, timestamp, float, binary, serializable, object, blob</"
+"literal> etc.). "
#. Tag: para
-#: basic_mapping.xml:1427
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
"literal> etc."
msgstr ""
-"Nom d'une classe Java avec un type basique par défaut (ex: <literal>int, "
-"float, char, java.lang.String, java.util.Date, java.lang.Integer, java.sql."
-"Clob</literal>)."
+"le nom d'une classe Java avec un type basique par défaut (par ex : "
+"<literal>int, float, char, java.lang.String, java.util.Date, java.lang."
+"Integer, java.sql.Clob</literal> etc.). "
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
-msgstr "Nom d'une classe Java sérialisable."
+msgstr "Le nom d'une classe Java sérialisable."
#. Tag: para
-#: basic_mapping.xml:1438
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
"literal> etc."
msgstr ""
-"Nom d'une classe ayant un type spécifique (ex: <literal>com.illflow.type."
-"MyCustomType</literal>)."
+"Le nom d'une classe avec un type personnalisé (par ex : <literal>com.illflow."
+"type.MyCustomType</literal>)."
#. Tag: para
-#: basic_mapping.xml:1444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
"property and guess the correct Hibernate type. Hibernate will attempt to "
@@ -2877,18 +2237,17 @@
"DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a "
"custom type."
msgstr ""
-"Si vous n'indiquez pas un type, Hibernate utlisera la réflexion sur le nom "
+"Si vous n'indiquez pas un type, Hibernate utilisera la réflexion sur le nom "
"de la propriété pour tenter de trouver le type Hibernate correct. Hibernate "
"essayera d'interprêter le nom de la classe retournée par le getter de la "
-"propriété en utilisant les régles 2, 3, 4 dans cet ordre. Cependant, ce "
-"n'est pas toujours suffisant. Dans certains cas vous aurez encore besoin de "
-"l'attribut <literal>type</literal> (Par exemple, pour distinguer "
-"<literal>Hibernate.DATE</literal> et <literal>Hibernate.TIMESTAMP</literal>, "
-"ou pour préciser un type spécifique)."
+"propriété en utilisant les règles 2, 3, 4 dans cet ordre. Dans certains cas "
+"vous aurez encore besoin de l'attribut <literal>type</literal>. (Par "
+"exemple, pour distinguer <literal>Hibernate.DATE</literal> et "
+"<literal>Hibernate.TIMESTAMP</literal>, ou pour préciser un type "
+"personnalisé)."
#. Tag: para
-#: basic_mapping.xml:1454
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
"accesses the property at runtime. By default, Hibernate will call the "
@@ -2899,45 +2258,31 @@
"PropertyAccessor</literal>."
msgstr ""
"L'attribut <literal>access</literal> permet de contrôler comment Hibernate "
-"accèdera à la propriété à l'exécution. Par défaut, Hibernate utilisera les "
+"accédera à la propriété à l'exécution. Par défaut, Hibernate utilisera les "
"méthodes set/get. Si vous indiquez <literal>access=\"field\"</literal>, "
-"Hibernate ignorera les getter/setter et accèdera à la propriété directement "
+"Hibernate ignorera les getter/setter et accédera à la propriété directement "
"en utilisant la réflexion. Vous pouvez spécifier votre propre stratégie "
-"d'accès aux propriété en donnant une classe qui implémente l'interface "
-"<literal>org.hibernate.property.PropertyAccessor</literal>."
+"d'accès aux propriétés en nommant une classe qui implémente l'interface "
+"<literal>org.hibernate.propertexige une instrumentation de code d'octets "
+"build-timey.PropertyAccessor</literal>. "
#. Tag: para
-#: basic_mapping.xml:1463
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
"read-only. The property value is computed at load time. You declare the "
"computation as an SQL expression. This then translates to a <literal>SELECT</"
"literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
-"Une fonctionnalité particulièrement intéressante est les propriétés "
-"dérivées. Ces propriétés sont par définition en lecture seule, la valeur de "
-"la propriété est calculée au chargement. Le calcul est déclaré comme une "
+"Les propriétés dérivées représentent une fonctionnalité particulièrement "
+"intéressante. Ces propriétés sont par définition en lecture seule, la valeur "
+"de la propriété est calculée au chargement. Le calcul est déclaré comme une "
"expression SQL, qui se traduit par une sous-requête <literal>SELECT</"
-"literal> dans la requête SQL qui charge une instance :"
+"literal> dans la requête SQL qui charge une instance : "
-#. Tag: programlisting
-#: basic_mapping.xml:1470
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1472
-#, fuzzy, no-c-format
-msgid ""
"You can reference the entity table by not declaring an alias on a particular "
"column. This would be <literal>customerId</literal> in the given example. "
"You can also use the nested <literal><formula></literal> mapping "
@@ -2946,18 +2291,16 @@
"Remarquez que vous pouvez référencer la propre table des entités en ne "
"déclarant pas un alias sur une colonne particulière (<literal>customerId</"
"literal> dans l'exemple donné). Notez aussi que vous pouvez utiliser le sous-"
-"élément de mapping <literal><formula></literal> plutôt que d'utiliser "
-"l'attribut si vous le souhaitez."
+"élément de mappage <literal><formula></literal> plutôt que d'utiliser "
+"l'attribut si vous le souhaitez. "
#. Tag: title
-#: basic_mapping.xml:1482
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "many-to-one"
+msgstr "Plusieurs-Ã -un"
#. Tag: para
-#: basic_mapping.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
"<literal>many-to-one</literal> element. The relational model is a many-to-"
@@ -2966,116 +2309,55 @@
msgstr ""
"Une association ordinaire vers une autre classe persistante est déclarée en "
"utilisant un élément <literal>many-to-one</literal>. Le modèle relationnel "
-"est une association de type many-to-one : une clef étrangère dans une table "
-"référence la ou les clef(s) primaire(s) dans la table cible."
+"est une association de type plusieurs-à -un : une clé étrangère dans une "
+"table référence la ou les clé(s) primaire(s) dans la table cible. "
-#. Tag: programlisting
-#: basic_mapping.xml:1512
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the name of the property."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal> : Nom de la propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (optionnel - par défaut du type de la propriété "
-"déterminé par réflexion) : Le nom de la classe associée.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (optionnel - par défaut au type de la propriété "
-"déterminé par réflexion) : le nom de la classe (fille) du composant."
+msgstr "<literal>name</literal> : le nom de la propriété. "
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column></literal> "
"element(s)."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (optionnel) : Le nom de la clef étrangère. Cela "
-"peut être aussi indiqué avec le sous-élément <literal><column></"
-"literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (optionnel) : Le nom de la colonne de la clef "
-"étrangère Cela peut aussi être spécifié par l'élément(s) intégré(s) "
-"<literal><column></literal>."
+"<literal>column</literal> (optionnel) : le nom de la colonne de la clé "
+"étrangère. Cela peut être aussi spécifié par un ou des sous-élément(s) "
+"<literal><column></literal>. "
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (optionnel - par défaut le type de la propriété "
-"déterminé par réflexion) : Le nom de la classe associée.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>cascade</literal> (optionnel) : Indique quelles opérations doivent "
-"être cascadées de l'objet père vers l'objet associé."
+"<literal>class</literal> (optionnel - par défaut, le type de la propriété "
+"déterminé par réflexion) : le nom de la classe associée. "
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
msgstr ""
-"<literal>constrained</literal> (optionnel) : Indique qu'une contrainte de "
-"clef étrangère sur la clef primaire de la table mappée référence la table de "
-"la classe associée. Cette option affecte l'ordre dans lequel chaque "
-"<literal>save()</literal> et chaque <literal>delete()</literal> sont "
-"cascadés et détermine si l'association peut utiliser un proxy (aussi utilisé "
-"par l'outil d'export de schéma)."
+"<literal>cascade</literal> (optionnel) : indique quelles opérations doivent "
+"être cascadées de l'objet parent vers l'objet associé. "
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>fetch</literal> (optionnel - par défaut à <literal>select</"
-"literal>) : Choisit entre le chargement de type outer-join ou le chargement "
-"par select successifs.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>property-ref</literal> (optionnel) : Le nom de la propriété de la "
-"classe associée qui est jointe à la clef primaire de cette classe. Si ce "
-"n'est pas spécifié, la clef primaire de la classe associée est utilisée."
+"literal>) : choisit entre le chargement de type jointure externe (outer-"
+"join) ou le chargement par select successifs."
#. Tag: para
-#: basic_mapping.xml:1545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -3086,49 +2368,47 @@
msgstr ""
"<literal>update, insert</literal> (optionnel - par défaut à <literal>true</"
"literal>) : indique que les colonnes mappées devraient être incluses dans "
-"des <literal>UPDATE</literal> SQL et/ou des <literal>INSERT</literal>. "
-"Mettre les deux à <literal>false</literal> empêche la propagation en base de "
-"données (utile si vous savez qu'un trigger affectera la valeur à la colonne)."
+"des SQL <literal>UPDATE</literal> et/ou des déclarations <literal>INSERT</"
+"literal>. Mettre les deux à <literal>false</literal>, permet une association "
+"pure dérivée dont la valeur est initialisée à partir d'une autre propriété "
+"qui mappe à une ou plusieurs mêmes colonnes, ou par un trigger ou une autre "
+"application. "
#. Tag: para
-#: basic_mapping.xml:1554
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal> : (optionnel) Le nom d'une propriété de la "
-"classe associée qui est liée à cette clef étrangère. Si ce n'est pas "
-"spécifié, la clef primaire de la classe associée est utilisée."
+"<literal>property-ref</literal> (optionnel) : le nom d'une propriété de la "
+"classe associée qui est jointe à cette clé étrangère. Si non-spécifiée, la "
+"clé primaire de la classe associée est utilisée. "
#. Tag: para
-#: basic_mapping.xml:1567
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. By allowing this to be the target of "
"a <literal>property-ref</literal>, you can make the association multiplicity "
"one-to-one."
msgstr ""
-"<literal>unique</literal> (optionnel) : Génère le DDL d'une contrainte "
-"d'unicité pour la clef étrangère. Permet aussi d'en faire la cible d'un "
+"<literal>unique</literal> (optionnel) : génère le DDL d'une contrainte "
+"unique pour la clé étrangère. Permet aussi d'en faire la cible d'une "
"<literal>property-ref</literal>. Cela permet de créer une véritable "
-"association one-to-one."
+"association un-Ã -un. "
#. Tag: para
-#: basic_mapping.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
-"<literal>not-null</literal> (optionnel) : Génère le DDL pour une contrainte "
-"de non nullité pour la clef étrangère."
+"<literal>not-null</literal> (optionnel) : active le DDL d'une contrainte de "
+"nullité pour les colonnes de clés étrangères."
#. Tag: para
-#: basic_mapping.xml:1589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3137,55 +2417,47 @@
"instrumentation. <literal>lazy=\"false\"</literal> specifies that the "
"association will always be eagerly fetched."
msgstr ""
-"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique que cette propriété doit être chargée en différé (lazy "
-"loading) au premier accès à la variable d'instance (nécessite une "
-"instrumentation du bytecode lors de la phase de construction). Remarquez que "
-"cela n'influence pas le comportement du proxy Hibernate - comme l'attribut "
-"<literal>lazy</literal> sur des classes ou des mappings de collections, mais "
-"utilise l'interception pour le chargement différé. <literal>lazy=\"false\"</"
-"literal> indique que l'association sera toujours chargée."
+"<literal>lazy</literal> (optionnel - par défaut à <literal>proxy</"
+"literal>) : par défaut, les associations de point uniques utilisent des "
+"proxies. <literal>lazy=\"no-proxy\"</literal> indique que cette propriété "
+"doit être chargée en différé au premier accès à la variable d'instance "
+"(nécessite une instrumentation du bytecode lors de la phase de "
+"construction). <literal>lazy=\"false\"</literal> indique que l'association "
+"sera toujours chargée."
#. Tag: para
-#: basic_mapping.xml:1599
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how foreign keys that reference missing rows will be "
"handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (optionnel - par défaut à <literal>exception</"
-"literal>) : Indique comment les clefs étrangères qui référencent des lignes "
-"manquantes doivent être manipulées : <literal>ignore</literal> traitera une "
-"ligne manquante comme une association nulle."
+"<literal>not-found</literal> (optionnel - par défaut = <literal>exception</"
+"literal>) : spécifie comment les clés étrangères qui référencent des lignes "
+"manquantes seront gérées : <literal>ignore</literal> traitera une ligne "
+"manquante comme une association nulle. "
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
"class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (optionnel) : Le nom de l'entité de la classe "
-"associée.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Il existe deux types d'associations one-to-one :"
+"<literal>entity-name</literal> (optionnel) : le nom de l'entité de la classe "
+"associée. "
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
"<literal>formula</literal> (optionnel) : une expression SQL qui définit la "
-"valeur pour une clé étrangère calculée."
+"valeur pour une clé étrangère calculée. "
#. Tag: para
-#: basic_mapping.xml:1619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
"meaningful value other than <literal>none</literal> will propagate certain "
@@ -3195,42 +2467,34 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
"Donner une valeur significative à l'attribut <literal>cascade</literal> "
"autre que <literal>none</literal> propagera certaines opérations à l'objet "
-"associé. Les valeurs significatives sont les noms des opérations Hibernate "
-"basiques, <literal>persist, merge, delete, save-update, evict, replicate, "
-"lock, refresh</literal>, ainsi que les valeurs spéciales <literal>delete-"
-"orphan</literal> et <literal>all</literal> et des combinaisons de noms "
+"associé. Les valeurs significatives sont les noms des opérations et sont "
+"divisées en trois catégories. Tout d'abord, les valeurs Hibernate basiques, "
+"<literal>persist, merge, delete, save-update, evict, replicate, lock, "
+"refresh</literal>, puis les valeurs spéciales <literal>delete-orphan</"
+"literal> et <literal>all</literal> et enfin, des combinaisons de noms "
"d'opérations séparées par des virgules, comme par exemple <literal>cascade="
"\"persist,merge,evict\"</literal> ou <literal>cascade=\"all,delete-orphan\"</"
-"literal>. Voir <xref linkend=\"objectstate-transitive\"/> pour une "
-"explication complète. Notez que les assocations many-to-one et one-to-one ne "
-"supportent pas orphan delete."
+"literal>. Consultez la <xref linkend=\"objectstate-transitive\" /> pour une "
+"explication complète. Notez que des associations valuées uniques "
+"(associations plusieurs-Ã -un et un-Ã -un) ne supportent pas orphan delete. "
#. Tag: para
-#: basic_mapping.xml:1632
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
-"Une déclaration <literal>many-to-one</literal> typique est aussi simple que :"
+"Une déclaration <literal>many-to-one</literal> typique est aussi simple "
+"que : "
-#. Tag: programlisting
-#: basic_mapping.xml:1636
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1638
-#, fuzzy, no-c-format
-msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
"mapping legacy data where a foreign key refers to a unique key of the "
"associated table other than the primary key. This is a complicated and "
@@ -3240,109 +2504,59 @@
"the SchemaExport tool."
msgstr ""
"L'attribut <literal>property-ref</literal> devrait être utilisé pour mapper "
-"seulement des données provenant d'un ancien système où les clefs étrangères "
-"font référence à une clef unique de la table associée et qui n'est pas la "
-"clef primaire. C'est un cas de mauvaise conception relationnelle. Par "
-"exemple, supposez que la classe <literal>Product</literal> a un numéro de "
-"série unique qui n'est pas la clef primaire. (L'attribut <literal>unique</"
-"literal> contrôle la génération DDL par Hibernate avec l'outil SchemaExport.)"
+"seulement des données provenant d'un ancien système où les clés étrangères "
+"font référence à une clé unique de la table associée et qui n'est pas la clé "
+"primaire. C'est un cas de mauvaise conception relationnelle. Par exemple, "
+"supposez que la classe <literal>Product</literal> ait un numéro de série "
+"unique qui n'est pas la clé primaire. L'attribut <literal>unique</literal> "
+"contrôle la génération DDL par Hibernate avec l'outil SchemaExport."
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
-msgstr "Ainsi le mapping pour <literal>OrderItem</literal> peut utiliser :"
+msgstr "Ainsi le mappage pour <literal>OrderItem</literal> peut utiliser :"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1655
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This is not encouraged, however."
-msgstr "bien que ce ne soit certainement pas encouragé."
+msgstr "Bien que ce ne soit certainement pas encouragé."
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
"entity, you should map the referenced properties inside a named <literal><"
"properties></literal> element."
msgstr ""
-"Si la clef unique référencée comprend des propriétés multiples de l'entité "
-"associée, vous devez mapper ces propriétés à l'intérieur d'un élément "
-"<literal><properties></literal>."
+"Si la clé unique référencée comprend des propriétés multiples de l'entité "
+"associée, vous devez mapper ces propriétés à l'intérieur d'un élément nommé "
+"<literal><properties></literal>. "
#. Tag: para
-#: basic_mapping.xml:1664
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
"a property path:"
-msgstr "one-to-one"
-
-#. Tag: programlisting
-#: basic_mapping.xml:1668
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
msgstr ""
+"Si la clé unique référencée est la propriété d'un composant, vous pouvez "
+"spécifier le chemin de propriété :"
#. Tag: title
-#: basic_mapping.xml:1673
-#, fuzzy, no-c-format
+#, no-c-format
msgid "One-to-one"
-msgstr ""
-"Une association one-to-one vers une autre classe persistante est déclarée "
-"avec l'élément <literal>one-to-one</literal>."
+msgstr "Un-Ã -un"
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
"<literal>one-to-one</literal> element."
-msgstr "<literal>name</literal> : Le nom de la propriété."
-
-#. Tag: programlisting
-#: basic_mapping.xml:1693
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
msgstr ""
+"Une association un-à -un vers une autre classe persistante est déclarée avec "
+"l'élément <literal>one-to-one</literal>."
#. Tag: para
-#: basic_mapping.xml:1713
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
"constraint on the primary key of the mapped table and references the table "
@@ -3351,25 +2565,26 @@
"whether the association can be proxied. It is also used by the schema export "
"tool."
msgstr ""
-"<literal>fetch</literal> (optionnel - par défaut à <literal>select</"
-"literal>) : Choisit entre récupération par jointure externe ou select "
-"séquentiel."
+"<literal>constrained</literal> (optionnel) : indique qu'une contrainte de "
+"clé étrangère sur la clé primaire de la table mappée référence la table de "
+"la classe associée. Cette option affecte l'ordre dans lequel chaque "
+"<literal>save()</literal> et chaque <literal>delete()</literal> est cascadé "
+"et détermine si l'association peut utiliser un proxy (aussi utilisé par "
+"l'outil SchemaExport). "
#. Tag: para
-#: basic_mapping.xml:1728
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to the primary key of this class. If not "
"specified, the primary key of the associated class is used."
msgstr ""
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie à utiliser par Hibernate pour accéder à la valeur "
-"de la propriété."
+"<literal>property-ref</literal> (optionnel) : le nom de la propriété de la "
+"classe associée qui est jointe à la clé primaire de cette classe. Si ce "
+"n'est pas spécifié, la clé primaire de la classe associée est utilisée. "
#. Tag: para
-#: basic_mapping.xml:1741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
"map to the primary key of the owning entity. If this is not the case, you "
@@ -3377,18 +2592,14 @@
"formula. See <literal>org.hibernate.test.onetooneformula</literal> for an "
"example."
msgstr ""
-"<literal>lazy</literal> (optionnel - par défaut <literal>proxy</literal>) : "
-"Par défaut, les associations simples sont soumise à proxy. <literal>lazy="
-"\"no-proxy\"</literal> spécifie que la propriété doit être chargée à la "
-"demande au premier accès à l'instance. (nécessite l'intrumentation du "
-"bytecode à la construction). <literal>lazy=\"false\"</literal> indique que "
-"l'association sera toujours chargée agressivement. <emphasis>Notez que si "
-"<literal>constrained=\"false\"</literal>, l'utilisation de proxy est "
-"impossible et Hibernate chargera automatiquement l'association !</emphasis>"
+"<literal>formula</literal> (optionnel) : presque toutes les associations un-"
+"à -un pointent sur la clé primaire de l'entité propriétaire. Dans les rares "
+"cas différents, vous devez donner une ou plusieurs autres colonnes ou "
+"expression à joindre par une formule SQL . Voir <literal>org.hibernate.test."
+"onetooneformula</literal> pour un exemple."
#. Tag: para
-#: basic_mapping.xml:1749
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3399,177 +2610,106 @@
"<literal>constrained=\"false\"</literal>, proxying is impossible and "
"Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
-"<literal>entity-name</literal> (optional) : The entity name of the "
-"associated class."
+"<literal>lazy</literal> (optionnel - par défaut <literal>proxy</literal>) : "
+"par défaut, les associations simples sont soumises à proxy. <literal>lazy="
+"\"no-proxy\"</literal> spécifie que la propriété doit être chargée en "
+"différé au premier accès à l'instance. (nécessite l'instrumentation du "
+"bytecode à la construction). <literal>lazy=\"false\"</literal> indique que "
+"l'association sera toujours chargée agressivement. <emphasis>. Notez que si "
+"<literal>constrained=\"false\"</literal>, l'utilisation de proxy est "
+"impossible et Hibernate chargera automatiquement l'association </emphasis>."
#. Tag: para
-#: basic_mapping.xml:1767
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are two varieties of one-to-one associations:"
-msgstr "associations par clef primaire"
+msgstr "Il existe deux types d'associations un-Ã -un : "
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
-msgstr "association par clef étrangère unique"
+msgstr "association par clé primaire "
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
-msgstr ""
-"Les associations par clef primaire ne nécessitent pas une colonne "
-"supplémentaire en table ; si deux lignes sont liés par l'association alors "
-"les deux lignes de la table partagent la même valeur de clef primaire. Donc "
-"si vous voulez que deux objets soient liés par une association par clef "
-"primaire, vous devez faire en sorte qu'on leur assigne la même valeur "
-"d'identifiant !"
+msgstr "association par clé étrangère unique"
#. Tag: para
-#: basic_mapping.xml:1779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
"related by the association, then the two table rows share the same primary "
"key value. To relate two objects by a primary key association, ensure that "
"they are assigned the same identifier value."
msgstr ""
-"Pour une association par clef primaire, ajoutez les mappings suivants à "
-"<literal>Employee</literal> et <literal>Person</literal>, respectivement."
+"Les associations par clé primaire ne nécessitent pas une colonne "
+"supplémentaire en table ; si deux lignes sont liées par l'association alors "
+"les deux lignes de la table partagent la même valeur de clé primaire. Donc "
+"si vous voulez que deux objets soient liés par une association par clé "
+"primaire, vous devez faire en sorte qu'on leur assigne la même valeur "
+"d'identifiant. "
#. Tag: para
-#: basic_mapping.xml:1786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
"<literal>Employee</literal> and <literal>Person</literal> respectively:"
msgstr ""
-"Maintenant, vous devez faire en sorte que les clefs primaires des lignes "
-"liées dans les tables PERSON et EMPLOYEE sont égales. On utilise une "
-"stratégie Hibernate spéciale de génération d'identifiants appelée "
-"<literal>foreign</literal> :"
+"Pour une association par clé primaire, ajoutez les mappages suivants à "
+"<literal>Employee</literal> et <literal>Person</literal>, respectivement :"
-#. Tag: programlisting
-#: basic_mapping.xml:1791
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1794
-#, fuzzy, no-c-format
-msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
"tables are equal. You use a special Hibernate identifier generation strategy "
"called <literal>foreign</literal>:"
msgstr ""
-"Une instance fraîchement enregistrée de <literal>Person</literal> se voit "
-"alors assignée la même valeur de clef primaire que l'instance de "
-"<literal>Employee</literal> référencée par la propriété <literal>employee</"
-"literal> de cette <literal>Person</literal>."
+"Maintenant, vous devez faire en sorte que les clés primaires des lignes "
+"liées dans les tables PERSON et EMPLOYEE sont égales. On utilise une "
+"stratégie Hibernate spéciale de génération d'identifiants appelée "
+"<literal>foreign</literal> : "
-#. Tag: programlisting
-#: basic_mapping.xml:1800
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1802
-#, fuzzy, no-c-format
-msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
"primary key value as the <literal>Employee</literal> instance referred with "
"the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
-"Alternativement, une clef étrangère avec contrainte d'unicité de "
-"<literal>Employee</literal> vers <literal>Person</literal> peut être "
-"indiquée ainsi :"
+"Une instance fraîchement enregistrée de <literal>Person</literal> se voit "
+"alors assignée la même valeur de clé primaire que l'instance de "
+"<literal>Employee</literal> référencée par la propriété <literal>employee</"
+"literal> de cette <literal>Person</literal>. "
#. Tag: para
-#: basic_mapping.xml:1808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
"<literal>Employee</literal> to <literal>Person</literal>, can be expressed "
"as:"
msgstr ""
-"Et cette association peut être rendue bidirectionnelle en ajoutant ceci au "
-"mapping de <literal>Person</literal> :"
+"Alternativement, une clé étrangère avec contrainte d'unicité de "
+"<literal>Employee</literal> vers <literal>Person</literal> peut être "
+"indiquée ainsi : "
-#. Tag: programlisting
-#: basic_mapping.xml:1813
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1815
-#, fuzzy, no-c-format
-msgid ""
"This association can be made bidirectional by adding the following to the "
"<literal>Person</literal> mapping:"
-msgstr "natural-id"
-
-#. Tag: programlisting
-#: basic_mapping.xml:1820
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
msgstr ""
+"Et cette association peut être rendue bidirectionnelle en ajoutant ceci au "
+"mappage de <literal>Person</literal> : "
#. Tag: title
-#: basic_mapping.xml:1825
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Natural-id"
-msgstr ""
-"Bien que nous recommandions l'utilisation de clé primaire générée, vous "
-"devriez toujours essayer d'identifier des clé métier (naturelles) pour "
-"toutes vos entités. Une clé naturelle est une propriété ou une combinaison "
-"de propriétés uniques et non nulles. Si elle est aussi immuable, c'est "
-"encore mieux. Mappez les propriétés de la clé naturelle dans l'élément "
-"<literal><natural-id></literal>. Hibernate générera la clé unique "
-"nécessaire et les contraintes de non-nullité, et votre mapping s'auto-"
-"documentera."
+msgstr "Natural-id"
-#. Tag: programlisting
-#: basic_mapping.xml:1827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1829
-#, fuzzy, no-c-format
-msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
"try to identify natural keys for all entities. A natural key is a property "
"or combination of properties that is unique and non-null. It is also "
@@ -3578,215 +2718,167 @@
"unique key and nullability constraints and, as a result, your mapping will "
"be more self-documenting."
msgstr ""
-"Nous vous recommandons fortement d'implémenter <literal>equals()</literal> "
-"et <literal>hashCode()</literal> pour comparer les clés naturelles de "
-"l'entité."
+"Bien que nous recommandions l'utilisation de clés primaires générées, vous "
+"devriez toujours essayer d'identifier des clés métier (naturelles) pour "
+"toutes vos entités. Une clé naturelle est une propriété ou une combinaison "
+"de propriétés unique et non nulle. Si elle est aussi immuable, c'est encore "
+"mieux. Mappez les propriétés de la clé naturelle dans l'élément <literal><"
+"natural-id></literal>. Hibernate générera la clé unique nécessaire et les "
+"contraintes de non-nullité, et votre mappage s'auto-documentera. "
#. Tag: para
-#: basic_mapping.xml:1838
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> to compare the natural key properties of the "
"entity."
msgstr ""
-"Ce mapping n'est pas destiné à être utilisé avec des entités qui ont des "
-"clés naturelles."
+"Nous vous recommandons fortement d'implémenter <literal>equals()</literal> "
+"et <literal>hashCode()</literal> pour comparer les propriétés clés "
+"naturelles de l'entité."
#. Tag: para
-#: basic_mapping.xml:1843
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
msgstr ""
-"<literal>mutable</literal> (optionel, par défaut à <literal>false</"
-"literal>) : Par défaut, les identifiants naturels sont supposés être "
-"immuable (constants)."
+"Ce mappage n'est pas destiné à être utilisé avec des entités qui ont des "
+"clés naturelles. "
#. Tag: para
-#: basic_mapping.xml:1849
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
"literal>): by default, natural identifier properties are assumed to be "
"immutable (constant)."
-msgstr "component, dynamic-component"
+msgstr ""
+"<literal>mutable</literal> (optionnel, par défaut à <literal>false</"
+"literal>) : par défaut, les identifiants naturels sont supposés être "
+"immuables (constants). "
#. Tag: title
-#: basic_mapping.xml:1859
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Component and dynamic-component"
-msgstr ""
-"L'élément <literal><component></literal> mappe les propriétés d'un "
-"objet fils aux colonnes d'une classe parente. Les composants peuvent en "
-"retour déclarer leurs propres propriétés, composants ou collections. Voir "
-"\"Components\" plus bas."
+msgstr "Component, dynamic-component"
#. Tag: para
-#: basic_mapping.xml:1861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
"object to columns of the table of a parent class. Components can, in turn, "
"declare their own properties, components or collections. See the \"Component"
"\" examples below:"
-msgstr "<literal>name</literal> : Nom de la propriété"
-
-#. Tag: programlisting
-#: basic_mapping.xml:1879
-#, no-c-format
-msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
msgstr ""
+"L'élément <literal><component></literal> mappe les propriétés d'un "
+"objet enfant aux colonnes d'une classe parente. Les composants peuvent en "
+"retour déclarer leurs propres propriétés, composants ou collections. Voir "
+"\"Components\" plus bas :"
#. Tag: para
-#: basic_mapping.xml:1887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
-"<literal>insert</literal> : Est ce que les colonnes mappées apparaissent "
-"dans les <literal>INSERT</literal>s ?"
+"<literal>class</literal> (optionnel - par défaut au type de la propriété "
+"déterminé par réflexion) : le nom de la classe (enfant) du composant. "
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
"<literal>INSERTs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal>: Est ce que les colonnes mappées apparaissent dans "
-"les <literal>UPDATE</literal>s ?\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal> : Est-ce que les colonnes mappées apparaissent "
-"dans les <literal>UPDATE</literal>s ?"
+"<literal>insert</literal> : les colonnes mappées apparaissent-elles dans les "
+"SQL <literal>INSERT</literal> s ? "
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
"<literal>UPDATEs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (optionnel - par défaut à <literal>property</"
-"literal>) : La stratégie que Hibernate doit utiliser pour accéder à la "
-"valeur de cette propriété.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
-"literal>) : Indique que les mises à jour sur ce composant nécessitent ou non "
-"l'acquisition d'un verrou optimiste. En d'autres termes, cela détermine si "
-"une incrémentation de version doit avoir lieu quand la propriété est marquée "
-"obsolète (dirty)."
+"<literal>update</literal>: les colonnes mappées apparaissent-elles dans les "
+"SQL <literal>UPDATE</literal> s ? "
#. Tag: para
-#: basic_mapping.xml:1911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
-"literal>) : Indique que les mises à jour sur ce composant nécessitent ou non "
-"l'acquisition d'un verrou optimiste. En d'autres termes, cela détermine si "
-"une incrémentation de version doit avoir lieu quand la propriété est marquée "
-"obsolète (dirty)."
+"<literal>lazy</literal> (optionnel - par défaut à <literal>false</"
+"literal>) : indique que ce composant doit être chargé en différé au premier "
+"accès à la variable d'instance (nécessite une instrumentation du bytecode "
+"lors de la phase de construction). "
#. Tag: para
-#: basic_mapping.xml:1918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this component either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when this property is dirty."
msgstr ""
-"<literal>unique</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique qu'une contrainte d'unicité existe sur toutes les "
-"colonnes mappées de ce composant."
+"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
+"literal>) : spécifie si les mise à jour sur ce composant nécessitent ou non "
+"l'acquisition d'un verrou optimiste. En d'autres termes, cela détermine si "
+"une incrémentation de version doit avoir lieu quand la propriété est marquée "
+"obsolète (dirty). "
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
"specifies that a unique constraint exists upon all mapped columns of the "
"component."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Les tags fils <literal><property></literal> mappent les propriétés de "
-"la classe fille sur les colonnes de la table.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Par exemple, si nous avons le mapping de <literal><properties></"
-"literal> suivant :"
+"<literal>unique</literal> (optionnel - par défaut à <literal>false</"
+"literal>) : Indique qu'une contrainte d'unicité existe sur toutes les "
+"colonnes mappées de ce composant. "
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
"child class to table columns."
msgstr ""
-"L'élément <literal><component></literal> permet de déclarer sous-"
-"élément <literal><parent></literal> qui associe une propriété de la "
-"classe composant comme une référence arrière vers l'entité contenante."
+"Les balises enfant <literal><property></literal> mappent les "
+"propriétés de la classe enfant sur les colonnes de la table. "
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"L'élément <literal><dynamic-component></literal> permet à une "
-"<literal>Map</literal> d'être mappée comme un composant, quand les noms de "
-"la propriété font référence aux clefs de cette Map, voir <xref linkend="
-"\"components-dynamic\"/>."
+"L'élément <literal><component></literal> permet de déclarer un sous-"
+"élément <literal><parent></literal> qui associe une propriété de la "
+"classe composant comme une référence arrière vers l'entité contenante. "
#. Tag: para
-#: basic_mapping.xml:1946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
-msgstr "properties"
+msgstr ""
+"L'élément <literal><dynamic-component></literal> permet à une "
+"<literal>Map</literal> d'être mappée en tant que composant, quand les noms "
+"de la propriété font référence aux clés de cette Map. Voir <xref linkend="
+"\"components-dynamic\" />. "
#. Tag: title
-#: basic_mapping.xml:1955
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Properties"
-msgstr ""
-"L'élément <literal><properties></literal> permet la définition d'un "
-"groupement logique nommé des propriétés d'une classe. L'utilisation la plus "
-"importante de cette construction est la possibilité pour une combinaison de "
-"propriétés d'être la cible d'un <literal>property-ref</literal>. C'est aussi "
-"un moyen pratique de définir une contrainte d'unicité multi-colonnes."
+msgstr "Propriétés"
#. Tag: para
-#: basic_mapping.xml:1957
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
"named, logical grouping of the properties of a class. The most important use "
@@ -3794,215 +2886,117 @@
"target of a <literal>property-ref</literal>. It is also a convenient way to "
"define a multi-column unique constraint. For example:"
msgstr ""
-"<literal>name</literal> : Le nom logique d'un regroupement et <emphasis>non</"
-"emphasis> le véritable nom d'une propriété."
+"L'élément <literal><properties></literal> permet la définition d'un "
+"groupement logique nommé des propriétés d'une classe. L'utilisation la plus "
+"importante de cette construction est la possibilité pour une combinaison de "
+"propriétés d'être la cible d'un <literal>property-ref</literal>. C'est aussi "
+"un moyen pratique de définir une contrainte d'unicité multi-colonnes. Par "
+"exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:1973
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1976
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
"<emphasis>not</emphasis> an actual property name."
msgstr ""
-"<literal>insert</literal> : Est-ce que les colonnes mappées apparaissent "
-"dans les <literal>INSERT</literal>s ?"
+"<literal>name</literal> : le nom logique d'un regroupement et <emphasis>non</"
+"emphasis> le véritable nom d'une propriété. "
#. Tag: para
-#: basic_mapping.xml:1994
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to these properties either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when these properties are dirty."
msgstr ""
-"<literal>unique</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Indique qu'une contrainte d'unicité existe sur toutes les "
-"colonnes mappées de ce composant."
+"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
+"literal>) : indique si les mise à jour sur ce composant nécessitent ou non "
+"l'acquisition d'un verrou optimiste. En d'autres termes, cela détermine si "
+"une incrémentation de version doit avoir lieu quand la propriété est marquée "
+"obsolète (dirty). "
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
"mapping:"
msgstr ""
-"Alors nous pourrions avoir une association sur des données d'un ancien "
-"système (legacy) qui font référence à cette clef unique de la table "
-"<literal>Person</literal> au lieu de la clef primaire :"
+"Par exemple, si nous avons le mappage de <literal><properties></"
+"literal> suivant : "
-#. Tag: programlisting
-#: basic_mapping.xml:2015
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2017
-#, fuzzy, no-c-format
-msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
-"Nous ne recommandons pas l'utilisation de ce genre de chose en dehors du "
-"contexte de mapping de données héritées d'anciens systèmes."
+"Alors nous pourrions avoir une association sur des données d'un ancien "
+"système qui font référence à cette clé unique de la table <literal>Person</"
+"literal> au lieu de la clé primaire : "
-#. Tag: programlisting
-#: basic_mapping.xml:2022
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2024
-#, fuzzy, no-c-format
-msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
-msgstr "subclass"
+msgstr ""
+"Nous ne recommandons pas une telle utilisation, en dehors du contexte de "
+"mappage de données héritées d'anciens systèmes. "
#. Tag: title
-#: basic_mapping.xml:2032
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Subclass"
-msgstr ""
-"Pour finir, la persistance polymorphique nécessite la déclaration de chaque "
-"sous-classe de la classe persistante de base. pour la stratégie de mapping "
-"de type table-per-class-hierarchy, on utilise la déclaration <literal><"
-"subclass></literal>."
+msgstr "Subclass"
#. Tag: para
-#: basic_mapping.xml:2034
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
"root persistent class. For the table-per-class-hierarchy mapping strategy, "
"the <literal><subclass></literal> declaration is used. For example:"
-msgstr "<literal>name</literal> : Le nom complet de la sous-classe."
-
-#. Tag: programlisting
-#: basic_mapping.xml:2047
-#, no-c-format
-msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
msgstr ""
+"Pour finir, la persistance polymorphique nécessite la déclaration de chaque "
+"sous-classe de la classe racine persistante. Pour la stratégie de mappage de "
+"type table-per-class-hierarchy, on utilise la déclaration <literal><"
+"subclass></literal>. "
#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>discriminator-value</literal> (optionnel - par défaut le nom de la "
-"classe) : une valeur qui distingue les différentes sous-classes.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal> : Le nom Java complet de la sous-classe.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal> : Le nom Java complet de la sous-classe."
+msgstr "<literal>name</literal> : le nom de classe complet de la sous-classe. "
#. Tag: para
-#: basic_mapping.xml:2055
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
msgstr ""
-"<literal>proxy</literal> (optionnel) : Indique une classe ou interface à "
-"utiliser pour les chargements à la demande des proxies (lazy)."
+"<literal>discriminator-value</literal> (optionnel - par défaut le nom de la "
+"classe) : une valeur qui distingue les différentes sous-classes. "
#. Tag: para
-#: basic_mapping.xml:2061
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Spécifier <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande (lazy).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optionnel) : Indique une classe ou interface pour "
-"le chargement différé des proxies.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optionnel) : Indique une classe ou interface pour "
-"le chargement différé des proxies."
+"<literal>proxy</literal> (optionnel) : indique une classe ou interface à "
+"utiliser pour l'initialisation différée des proxies. "
#. Tag: para
-#: basic_mapping.xml:2067
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Chaque sous-classe devrait déclarer ses propres propriétés persistantes et "
-"sous-classes. Les propriétés <literal><version></literal> et "
-"<literal><id></literal> sont implicitement hérités de la classe de "
-"base. Chaque sous-classe dans une hiérarchie doit définir une unique "
-"<literal>discriminator-value</literal>. Si aucune n'est spécifiée, le nom "
-"complet de la classe Java est utilisé.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Indiquer <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Indiquer <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande."
+"spécifier <literal>lazy=\"false\"</literal> désactive l'utilisation de "
+"l'extraction différée."
#. Tag: para
-#: basic_mapping.xml:2075
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
"<literal><version></literal> and <literal><id></literal> "
@@ -4010,119 +3004,66 @@
"a hierarchy must define a unique <literal>discriminator-value</literal>. If "
"this is not specified, the fully qualified Java class name is used."
msgstr ""
-"Pour plus d'infos sur le mapping d'héritage, voir <xref linkend=\"inheritance"
-"\"/>."
+"Chaque sous-classe devrait déclarer ses propres propriétés persistantes et "
+"sous-classes. Les propriétés <literal><version></literal> et "
+"<literal><id></literal> sont implicitement hérités de la classe "
+"racine. Chaque sous-classe dans une hiérarchie doit définir une unique "
+"<literal>discriminator-value</literal>. Si non spécifiée, le nom complet de "
+"la classe Java est utilisé. "
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
msgstr ""
-"Pour des informations sur les mappings d'héritage, voir <xref linkend="
-"\"inheritance\"/>."
+"Pour plus d'informations sur les mappages d'héritage, consultez le <xref "
+"linkend=\"inheritance\" />. "
#. Tag: title
-#: basic_mapping.xml:2090
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Joined-subclass"
-msgstr "joined-subclass"
+msgstr "Joined-subclass"
#. Tag: para
-#: basic_mapping.xml:2092
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
"per-subclass mapping strategy. An inherited state is retrieved by joining "
"with the table of the superclass. To do this you use the <literal><joined-"
"subclass></literal> element. For example:"
msgstr ""
-"Une autre façon possible de faire est la suivante, chaque sous-classe peut "
-"être mappée vers sa propre table (stratégie de mapping de type table-per-"
-"subclass). L'état hérité est récupéré en joignant la table de la super-"
-"classe. L'élément <literal><joined-subclass></literal> est utilisé."
+"Il est également possible de mapper chaque sous-classe vers sa propre table "
+"(stratégie de mappage de type table-per-subclass). L'état hérité est "
+"récupéré en joignant la table de la super-classe. L'élément <literal><"
+"joined-subclass></literal> est utilisé. Par exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:2105
-#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>table</literal> : Le nom de la table de la sous-classe.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>table</literal> : nom de la table de la sous-classe."
+msgstr "<literal>table</literal>: le nom de la table de la sous-classe. "
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Spécifier <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande (lazy).\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optionnel) : Indique une classe ou interface pour "
-"le chargement différé des proxies.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optionnel) : Indique une classe ou interface pour "
-"le chargement différé des proxies."
+"<literal>proxy</literal> (optionnel) : indique une classe ou interface à "
+"utiliser pour l'initialisation différée des proxies. "
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Chaque sous-classe devrait déclarer ses propres propriétés persistantes et "
-"sous-classes. Les propriétés <literal><version></literal> et "
-"<literal><id></literal> sont implicitement hérités de la classe de "
-"base. Chaque sous-classe dans une hiérarchie doit définir une unique "
-"<literal>discriminator-value</literal>. Si aucune n'est spécifiée, le nom "
-"complet de la classe Java est utilisé.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Indiquer <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optionnel, par défaut à <literal>true</literal>) : "
-"Indiquer <literal>lazy=\"false\"</literal> désactive l'utilisation du "
-"chargement à la demande."
+"spécifier <literal>lazy=\"false\"</literal> désactive l'utilisation de "
+"l'extraction différée. "
#. Tag: para
-#: basic_mapping.xml:2132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
"subclass must, however, declare a table column holding the object identifier "
@@ -4130,57 +3071,17 @@
"of the chapter would then be re-written as:"
msgstr ""
"Aucune colonne discriminante n'est nécessaire pour cette stratégie de "
-"mapping. Cependant, chaque sous-classe doit déclarer une colonne de table "
+"mappage. Cependant, chaque sous-classe doit déclarer une colonne de table "
"contenant l'objet identifiant qui utilise l'élément <literal><key></"
-"literal>. Le mapping au début de ce chapitre serait ré-écrit ainsi :"
+"literal>. Le mappage au début de ce chapitre serait ré-écrit ainsi : "
-#. Tag: programlisting
-#: basic_mapping.xml:2139
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Union-subclass"
-msgstr "union-subclass"
+msgstr "Union-subclass"
#. Tag: para
-#: basic_mapping.xml:2150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
"hierarchy to tables. This is called the table-per-concrete-class strategy. "
@@ -4192,95 +3093,48 @@
"need to use the <literal><union-subclass></literal> mapping. For "
"example:"
msgstr ""
-"Une troisième option est de seulement mapper vers des tables les classes "
-"concrètes d'une hiérarchie d'héritage, (stratégie de type table-per-concrete-"
+"Une troisième option est de mapper uniquement les classes concrètes d'une "
+"hiérarchie d'héritage vers des tables, (stratégie de type table-per-concrete-"
"class) où chaque table définit tous les états persistants de la classe, y "
"compris les états hérités. Dans Hibernate il n'est absolument pas nécessaire "
"de mapper explicitement de telles hiérarchies d'héritage. Vous pouvez "
"simplement mapper chaque classe avec une déclaration <literal><class></"
"literal> différente. Cependant, si vous souhaitez utiliser des associations "
-"polymorphiques (cà d une association vers la superclasse de la hiérarchie), "
-"vous devez utiliser le mapping <literal><union-subclass></literal>."
+"polymorphiques (c'est-Ã -dire une association vers la superclasse de votre "
+"hiérarchie), vous devez utiliser le mappage <literal><union-subclass></"
+"literal>. Par exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
msgstr ""
-"Aucune colonne discriminante ou colonne clef n'est requise pour cette "
-"stratégie de mapping."
+"Aucune colonne discriminante ou colonne clé n'est requise pour cette "
+"stratégie de mappage."
#. Tag: title
-#: basic_mapping.xml:2206
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Join"
-msgstr "join"
+msgstr "Join"
#. Tag: para
-#: basic_mapping.xml:2208
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
"properties of one class to several tables that have a one-to-one "
"relationship. For example:"
msgstr ""
"En utilisant l'élément <literal><join></literal>, il est possible de "
-"mapper des propriétés d'une classe sur plusieurs tables."
+"mapper des propriétés d'une classe sur plusieurs tables quand il existe une "
+"relation un-Ã -un entre les tables. Par exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:2222
-#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
-msgstr "<literal>table</literal> : Le nom de la table jointe."
+msgstr "<literal>table</literal> : le nom de la table jointe. "
#. Tag: para
-#: basic_mapping.xml:2243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"if set to <literal>join</literal>, the default, Hibernate will use an inner "
@@ -4293,32 +3147,30 @@
"<literal><join></literal> defined by the class and its superclasses."
msgstr ""
"<literal>fetch</literal> (optionnel - par défaut à <literal>join</"
-"literal>) : Si positionné à <literal>join</literal>, Hibernate utilisera une "
+"literal>) : si positionné à <literal>join</literal>, Hibernate utilisera une "
"jointure interne pour charger une <literal>jointure</literal> définie par "
"une classe ou ses super-classes et une jointure externe pour une "
"<literal><jointure></literal> définie par une sous-classe. Si "
-"positionné à <literal>select</literal> alors Hibernate utilisera un select "
+"positionné à <literal>select</literal>, Hibernate utilisera un select "
"séquentiel pour une <literal><jointure></literal> définie sur une sous-"
-"classe, qui ne sera délivrée que si une ligne se représente une instance de "
-"la sous-classe. Les jointures internes seront quand même utilisées pour "
-"charger une <literal><jointure></literal> définie par une classe et "
-"ses super-classes."
+"classe, qui ne sera délivrée que si une ligne représente une instance de la "
+"sous-classe. Les jointures internes seront quand même utilisées pour charger "
+"une <literal><jointure></literal> définie par une classe et ses super-"
+"classes. "
#. Tag: para
-#: basic_mapping.xml:2256
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will not insert or update the properties "
"defined by this join."
msgstr ""
"<literal>inverse</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Si positionné à true, Hibernate n'essaiera pas d'insérer ou de "
-"mettre à jour les propriétés définies par cette jointure."
+"literal>) : si positionné à true, Hibernate n'essaiera pas d'insérer ou de "
+"mettre à jour les propriétés définies par cette jointure. "
#. Tag: para
-#: basic_mapping.xml:2263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will insert a row only if the properties "
@@ -4326,63 +3178,41 @@
"retrieve the properties."
msgstr ""
"<literal>optionnel</literal> (optionnel - par défaut à <literal>false</"
-"literal>) : Si positionné à true, Hibernate insèrera une ligne seulement si "
+"literal>) : si positionné à true, Hibernate insèrera une ligne seulement si "
"les propriétés définies par cette jointure sont non-nulles et utilisera "
-"toujours une jointure externe pour charger les propriétés."
+"toujours une jointure externe pour extraire les propriétés. "
#. Tag: para
-#: basic_mapping.xml:2272
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
"table while preserving value type semantics for all properties:"
msgstr ""
"Par exemple, les informations d'adresse pour une personne peuvent être "
"mappées vers une table séparée (tout en préservant des sémantiques de type "
-"valeur pour toutes ses propriétés) :"
+"valeur pour toutes ses propriétés) : "
-#. Tag: programlisting
-#: basic_mapping.xml:2277
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2279
-#, fuzzy, no-c-format
-msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
"tables than classes and a fine-grained domain model. However, it is useful "
"for switching between inheritance mapping strategies in a single hierarchy, "
"as explained later."
msgstr ""
"Cette fonctionnalité est souvent seulement utile pour les modèles de données "
-"hérités d'anciens systèmes (legacy), nous recommandons d'utiliser moins de "
-"tables que de classes et un modèle de domaine à granularité fine. Cependant, "
-"c'est utile pour passer d'une stratégie de mapping d'héritage à une autre "
-"dans une hiérarchie simple ainsi qu'il est expliqué plus tard."
+"hérités d'anciens systèmes, nous recommandons d'utiliser moins de tables que "
+"de classes et un modèle de domaine à granularité fine. Cependant, c'est "
+"utile pour passer d'une stratégie de mappage d'héritage à une autre dans une "
+"hiérarchie simple, comme nous le verrons plus tard. "
#. Tag: title
-#: basic_mapping.xml:2289
#, no-c-format
-msgid "<title>Key</title>"
-msgstr ""
+msgid "Key"
+msgstr "Key"
#. Tag: para
-#: basic_mapping.xml:2291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
"this guide. It appears anywhere the parent mapping element defines a join to "
@@ -4390,88 +3220,67 @@
"defines the foreign key in the joined table:"
msgstr ""
"Nous avons rencontré l'élément <literal><key></literal> à plusieurs "
-"reprises maintenant. Il apparaît partout que l'élément de mapping parent "
-"définit une jointure sur une nouvele table, et définit la clef étrangère "
-"dans la table jointe, ce qui référence la clef primaire de la table "
-"d'origine."
+"reprises maintenant. Il apparaît partout que l'élément de mappage parent "
+"définit une jointure sur une nouvelle table, et définit la clé étrangère "
+"dans la table jointe, qui référence la clé primaire de la table d'origine :"
-#. Tag: programlisting
-#: basic_mapping.xml:2307
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2318
-#, fuzzy, no-c-format
-msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
"literal>): specifies whether the foreign key constraint has database-level "
"cascade delete enabled."
msgstr ""
"<literal>on-delete</literal> (optionnel, par défaut à <literal>noaction</"
-"literal>) : Indique si la contrainte de clef étrangère possède la "
-"possibilité au niveau base de données de suppression en cascade."
+"literal>) : indique si la contrainte de clé étrangère possède la possibilité "
+"au niveau base de données de suppression en cascade. "
#. Tag: para
-#: basic_mapping.xml:2325
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
"refers to columns that are not the primary key of the original table. It is "
"provided for legacy data."
msgstr ""
-"<literal>property-ref</literal> (optionnel) : Indique que la clef étrangère "
-"fait référence à des colonnes qui ne sont pas la clef primaire de la table "
-"d'origine (Pour les données de systèmes legacy)."
+"<literal>property-ref</literal> (optionnel) : indique que la clé étrangère "
+"fait référence à des colonnes qui ne sont pas la clé primaire de la table "
+"d'origine (Pour les données d'anciens systèmes). "
#. Tag: para
-#: basic_mapping.xml:2332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
"columns are not nullable. This is implied whenever the foreign key is also "
"part of the primary key."
msgstr ""
-"<literal>not-null</literal> (optionnel) : Indique que les colonnes des clefs "
-"étrangères ne peuvent pas être nulles (c'est implicite si la clef étrangère "
-"fait partie de la clef primaire)."
+"<literal>not-null</literal> (optionnel) : indique que les colonnes des clés "
+"étrangères ne peuvent pas être nulles (c'est implicite si la clé étrangère "
+"fait partie de la clé primaire). "
#. Tag: para
-#: basic_mapping.xml:2339
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
"never be updated. This is implied whenever the foreign key is also part of "
"the primary key."
msgstr ""
-"<literal>update</literal> (optionnel) : Indique que la clef étrangère ne "
-"devrait jamais être mise à jour (implicite si celle-ci fait partie de la "
-"clef primaire)."
+"<literal>update</literal> (optionnel) : indique que la clé étrangère ne "
+"devrait jamais être mise à jour (implicite si celle-ci fait partie de la clé "
+"primaire). "
#. Tag: para
-#: basic_mapping.xml:2346
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
"have a unique constraint. This is implied whenever the foreign key is also "
"the primary key."
msgstr ""
-"<literal>unique</literal> (optionnel) : Indique que la clef étrangère doit "
-"posséder une contrainte d'unicité (implicite si la clef étrangère est aussi "
-"la clef primaire)."
+"<literal>unique</literal> (optionnel) : indique que la clé étrangère doit "
+"posséder une contrainte d'unicité (implicite si la clé étrangère est aussi "
+"la clé primaire). "
#. Tag: para
-#: basic_mapping.xml:2354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate "
@@ -4480,17 +3289,16 @@
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
-"Nous recommandons pour les systèmes où les suppressions doivent être "
-"performantes de définir toutes les clefs <literal>on-delete=\"cascade\"</"
+"Là où les suppressions doivent être performantes, nous recommandons pour les "
+"systèmes de définir toutes les clés <literal>on-delete=\"cascade\"</"
"literal>, ainsi Hibernate utilisera une contrainte <literal>ON CASCADE "
"DELETE</literal> au niveau base de données, plutôt que de nombreux "
"<literal>DELETE</literal> individuels. Attention, cette fonctionnalité court-"
"circuite la stratégie habituelle de verrou optimiste pour les données "
-"versionnées."
+"versionnées. "
#. Tag: para
-#: basic_mapping.xml:2362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
"useful when mapping a unidirectional one-to-many association. If you map a "
@@ -4499,88 +3307,59 @@
"null=\"true\"></literal>."
msgstr ""
"Les attributs <literal>not-null</literal> et <literal>update</literal> sont "
-"utiles pour mapper une association one-to-many unidirectionnelle. Si vous "
-"mappez un one-to-many unidirectionnel vers une clef étrangère non nulle, "
-"vous <emphasis>devez</emphasis> déclarer la colonne de la clef en utilisant "
-"<literal><key not-null=\"true\"></literal>."
+"utiles pour mapper une association un-Ã -plusieurs unidirectionnelle. Si vous "
+"mappez un un-à -plusieurs unidirectionnel vers une clé étrangère non nulle, "
+"vous <emphasis>devez</emphasis> déclarer la colonne de la clé en utilisant "
+"<literal><key not-null=\"true\"></literal>. "
#. Tag: title
-#: basic_mapping.xml:2372
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Column and formula elements"
-msgstr "éléments column et formula"
+msgstr "Ãléments column et formula "
#. Tag: para
-#: basic_mapping.xml:2373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
"alternatively accept a <literal><column></literal> subelement. "
"Likewise, <literal><formula></literal> is an alternative to the "
"<literal>formula</literal> attribute. For example:"
msgstr ""
-"Tout élément de mapping qui accepte un attribut <literal>column</literal> "
+"Tout élément de mappage qui accepte un attribut <literal>column</literal> "
"acceptera alternativement un sous-élément <literal><column></literal>. "
-"De façon identique, <literal><formula></literal> est une alternative à "
-"l'attribut <literal>formula</literal>."
+"Pareillement <literal><formula></literal> est une alternative à "
+"l'attribut <literal>formula</literal>. Par exemple :"
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
"Les attributs <literal>column</literal> et <literal>formula</literal> "
-"peuvent même être combinés au sein d'une même propriété ou mapping "
+"peuvent même être combinés au sein d'une même propriété ou mappage "
"d'association pour exprimer, par exemple, des conditions de jointure "
-"exotiques."
+"exotiques. "
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Import"
-msgstr "import"
+msgstr "Import"
#. Tag: para
-#: basic_mapping.xml:2396
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
"do not want to specify the fully qualified package name in Hibernate "
@@ -4589,54 +3368,34 @@
"interfaces that are not explicitly mapped:"
msgstr ""
"Supposez que votre application possède deux classes persistantes du même "
-"nom, et vous ne voulez pas préciser le nom Java complet (packages inclus) "
-"dans les queries Hibernate. Les classes peuvent alors être \"importées\" "
+"nom, et vous ne voulez pas préciser le nom Java complet (paquetage) dans les "
+"requêtes Hibernate. Les classes peuvent alors être \"importées\" "
"explicitement plutôt que de compter sur <literal>auto-import=\"true\"</"
"literal>.Vous pouvez même importer des classes et interfaces qui ne sont pas "
-"mappées explicitement."
+"mappées explicitement :"
-#. Tag: programlisting
-#: basic_mapping.xml:2403
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2413
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
-msgstr "<literal>class</literal> : Nom Java complet de la classe."
+msgstr "<literal>class</literal> : nom complet de toute classe Java. "
#. Tag: para
-#: basic_mapping.xml:2418
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
"<literal>rename</literal> (optionnel - par défaut vaut le nom de la classe "
-"Java (sans package)) : Nom pouvant être utilisé dans le langage de requête."
+"non qualifié): nom pouvant être utilisé dans le langage de requête. "
#. Tag: title
-#: basic_mapping.xml:2429
#, no-c-format
-msgid "<title>Any</title>"
-msgstr ""
+msgid "Any"
+msgstr "Any"
#. Tag: para
-#: basic_mapping.xml:2431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
"literal> mapping element defines a polymorphic association to classes from "
@@ -4647,20 +3406,19 @@
"mapping polymorphic associations and you should use this only in special "
"cases. For example, for audit logs, user session data, etc."
msgstr ""
-"Il existe encore un type de mapping de propriété. L'élément de mapping "
+"Il existe encore un type de mappage de propriété. L'élément de mappage "
"<literal><any></literal> définit une association polymorphique vers "
-"des classes de tables multiples. Ce type de mapping requiert toujours plus "
+"des classes de tables multiples. Ce type de mappage requiert toujours plus "
"d'une colonne. La première colonne contient le type de l'entité associée. "
-"Les colonnes restantes contiennent l'identifiant. il est impossible de "
-"spécifier une contrainte de clef étrangère pour ce type d'association, donc "
+"Les colonnes restantes contiennent l'identifiant. Il est impossible de "
+"spécifier une contrainte de clé étrangère pour ce type d'association, donc "
"ce n'est certainement pas considéré comme le moyen habituel de mapper des "
-"associations (polymorphiques). Vous devriez utiliser cela uniquement dans "
-"des cas particuliers (par exemple des logs d'audit, des données de session "
-"utilisateur, etc...)."
+"associations (polymorphiques). Ne doit être utilisé que dans des cas "
+"particuliers (par exemple des logs d'audit, des données de session "
+"utilisateur, etc...). "
#. Tag: para
-#: basic_mapping.xml:2441
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
"a custom type that maps database column values to persistent classes that "
@@ -4669,80 +3427,41 @@
"names."
msgstr ""
"L'attribut <literal>meta-type</literal> permet à l'application de spécifier "
-"un type personnalisé qui mappe des valeurs de colonnes de le base de données "
+"un type personnalisé qui mappe des valeurs de colonnes de base de données "
"sur des classes persistantes qui ont un attribut identifiant du type "
-"spécifié par <literal>id-type</literal>. Vous devez spécifier le mapping à "
-"partir de valeurs du méta-type sur les noms des classes."
+"spécifié par <literal>id-type</literal>. Vous devez spécifier le mappage à "
+"partir de valeurs du méta-type sur les noms des classes. "
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
-msgstr "<literal>name</literal> : le nom de la propriété."
+msgstr "<literal>name</literal> : le nom de la propriété. "
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
msgstr "<literal>id-type</literal> : le type identifiant."
#. Tag: para
-#: basic_mapping.xml:2472
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
"literal>): any type that is allowed for a discriminator mapping."
msgstr ""
"<literal>meta-type</literal> (optionnel - par défaut à <literal>string</"
-"literal>) : Tout type permis pour un mapping par discriminateur."
+"literal>) : tout type permis pour un mappage par discriminateur."
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
"the cascade style."
msgstr ""
"<literal>cascade</literal> (optionnel - par défaut à <literal>none</"
-"literal>) : le style de cascade."
+"literal>) : le style de cascade. "
#. Tag: para
-#: basic_mapping.xml:2490
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property either do or do not "
@@ -4750,33 +3469,32 @@
"increment should occur if this property is dirty."
msgstr ""
"<literal>optimistic-lock</literal> (optionnel - par défaut à <literal>true</"
-"literal>) : Indique que les mises à jour sur cette propriété nécessitent ou "
+"literal>) : indique si les mise à jour sur cette propriété nécessitent ou "
"non l'acquisition d'un verrou optimiste. En d'autres termes, définit si un "
-"incrément de version doit avoir lieu quand cette propriété est marquée dirty."
+"incrément de version doit avoir lieu quand cette propriété est marquée "
+"dirty. "
#. Tag: title
-#: basic_mapping.xml:2505
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate types"
-msgstr "Hibernate Types"
+msgstr "Types Hibernate "
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr "Entités et valeurs"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
"classified into two groups:"
msgstr ""
+"Pour le service de persistance, les objets sont classés en deux groupes au "
+"niveau langage Java :"
#. Tag: para
-#: basic_mapping.xml:2515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
"holding references to the entity. Contrast this with the usual Java model, "
@@ -4789,19 +3507,18 @@
"also be versioned."
msgstr ""
"Une <emphasis>entité</emphasis> existe indépendamment de tout autre objet "
-"possédant une référence vers l'entité. Comparez cela avec le modèle Java "
+"possédant des références vers l'entité. Comparez cela avec le modèle Java "
"habituel où un objet est supprimé par le garbage collector dès qu'il n'est "
"plus référencé. Les entités doivent être explicitement enregistrées et "
"supprimées (sauf dans les cas où sauvegardes et suppressions sont "
-"<emphasis>cascadées</emphasis> d'une entité mère vers ses enfants). C'est "
+"<emphasis>cascadées</emphasis> d'une entité parent vers ses enfants). C'est "
"différent du modèle ODMG de persistance par atteignabilité - et correspond "
"mieux à la façon dont les objets sont habituellement utilisés dans des "
"grands systèmes. Les entités permettent les références circulaires et "
"partagées. Elles peuvent aussi être versionnées."
#. Tag: para
-#: basic_mapping.xml:2526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value</emphasis> types. Values are primitives: "
@@ -4818,15 +3535,14 @@
"des types primitifs, des collections (et non le contenu d'une collection), "
"des composants de certains objets immuables. Contrairement aux entités, les "
"valeurs (et en particulier les collections et composants) <emphasis>sont</"
-"emphasis> persistés par atteignabiliité. Comme les valeurs (et types "
-"primitifs) sont persistés et supprimés avec l'entité qui les contient, ils "
-"ne peuvent pas posséder leurs propres versions. Les valeurs n'ont pas "
-"d'identité indépendantes, ainsi elles ne peuvent pas être partagées par deux "
-"entités ou collections."
+"emphasis> persistées et supprimées par atteignabiliité. Comme les valeurs "
+"(et types primitifs) sont persistées et supprimées avec l'entité qui les "
+"contient, ils ne peuvent pas posséder leurs propres versions. Les valeurs "
+"n'ont pas d'identité indépendantes, ainsi elles ne peuvent pas être "
+"partagées par deux entités ou collections. "
#. Tag: para
-#: basic_mapping.xml:2537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
"entities. We will continue to do that. Not all user-defined classes with a "
@@ -4844,26 +3560,25 @@
"parler d'entités. Nous allons continuer à faire ainsi. Cependant, au sens "
"strict, toutes les classes définies par un utilisateur possédant un état "
"persistant ne sont pas des entités. Un <emphasis>composant</emphasis> est "
-"une classe définie par un utilisateur avec les caractéristiques d'une "
-"valeur. Une propriété Java de type <literal>java.lang.String</literal> a "
-"aussi les caractéristiques d'une valeur. Given this definition, we can say "
-"that all types (classes) provided by the JDK have value type semantics in "
-"Java, while user-defined types may be mapped with entity or value type "
-"semantics. This decision is up to the application developer. A good hint for "
-"an entity class in a domain model are shared references to a single instance "
-"of that class, while composition or aggregation usually translates to a "
-"value type."
+"une classe définie par un utilisateur avec la sémantique d'une valeur. Une "
+"propriété Java de type <literal>java.lang.String</literal> a aussi les "
+"caractéristiques d'une valeur. Selon cette définition, nous sommes en mesure "
+"de déclarer que tous les types (classes) fournis par JDK possèdent la "
+"sémantique d'une valeur dans Java, alors que les types définis par un "
+"utilisateur pourront être mappés avec des sémantiques entités ou valeur "
+"type. Cette décision est prise par le développeur d'application. Un bon "
+"conseil pour une classe entité dans un modèle de domaine sont des références "
+"partagées à une instance unique de cette classe, alors que la composition ou "
+"l'agrégation se traduit en général par une valeur type. "
#. Tag: para
-#: basic_mapping.xml:2551
-#, fuzzy, no-c-format
+#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr ""
-"Nous nous pencherons sur ces deux concepts tout au long de la documentation."
+"Nous nous pencherons sur ces deux concepts tout au long de la documentation. "
#. Tag: para
-#: basic_mapping.xml:2555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
"of entities and value types, to the SQL/database type system. The bridge "
@@ -4876,57 +3591,52 @@
"for standard JDK value types out of the box. You can write your own mapping "
"types and implement your own custom conversion strategies."
msgstr ""
-"Le défi est de mapper les type Javas (et la définition des développeurs des "
+"Le défi est de mapper les types Javas (et la définition des développeurs des "
"entités et valeurs types) sur les types du SQL ou des bases de données. Le "
"pont entre les deux systèmes est proposé par Hibernate : pour les entités "
"nous utilisons <literal><class></literal>, <literal><subclass></"
"literal> et ainsi de suite. Pour les types valeurs nous utilisons "
"<literal><property></literal>, <literal><component></literal>, "
"etc., habituellement avec un attribut <literal>type</literal>. La valeur de "
-"cet attribut est le nom d'un <emphasis>type de mapping</emphasis> Hibernate. "
-"Hibernate propose de base de nombreux mappings (pour les types de valeurs "
-"standards du JDK). Vous pouvez écrire vos propres types de mappings et "
-"implémenter aussi vos propres stratégies de conversion, nous le verrons plus "
-"tard."
+"cet attribut est le nom d'un <emphasis>type de mappage</emphasis> Hibernate. "
+"Hibernate propose de nombreux mappages prêts à l'utilisation (pour les types "
+"de valeurs standards du JDK). Vous pouvez écrire vos propres types de "
+"mappages et implémenter aussi vos propres stratégies de conversion comme "
+"nous le verrons plus tard. "
#. Tag: para
-#: basic_mapping.xml:2568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
msgstr ""
-"Tous les types proposés de base par Hibernate à part les collections "
-"autorisent la valeur null."
+"Tous les types proposés Hibernate à part les collections autorisent les "
+"sémantiques null. "
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
-msgstr "Basic value types"
+msgstr "Types valeurs de base "
#. Tag: para
-#: basic_mapping.xml:2577
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
"categorized into the following:"
msgstr ""
-"Les <emphasis>types basiques de mapping</emphasis> proposés de base peuvent "
-"grossièrement être rangés dans les catégories suivantes : <placeholder-1/>"
+"Les <emphasis>types de mappage de base</emphasis> peuvent être classés de la "
+"façon suivante :"
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -4934,88 +3644,78 @@
"<literal>true_false</literal> are all alternative encodings for a Java "
"<literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-"Les mappings de type des primitives Java ou leurs classes wrappers (ex: "
-"Integer pour int) vers les types SQL (propriétaires) appropriés. "
+"Les mappages de type des primitives Java ou leurs classes wrappers (ex : "
+"Integer pour int) vers les types de colonne SQL (propriétaires) appropriés. "
"<literal>boolean, yes_no</literal>et <literal>true_false</literal> sont tous "
"des alternatives pour les types Java <literal>boolean</literal> ou "
"<literal>java.lang.Boolean</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2594
+#. Tag: term
#, no-c-format
-msgid "string"
-msgstr "string"
+msgid "<literal>string</literal>"
+msgstr "<literal>string</literal>"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>)."
msgstr ""
-"Mapping de type de <literal>java.lang.String</literal> vers "
+"Mappage de type de <literal>java.lang.String</literal> vers "
"<literal>VARCHAR</literal> (ou le <literal>VARCHAR2</literal> Oracle)."
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
-msgstr "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
+msgstr "<literal>date, time, timestamp</literal>"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
"SQL types <literal>DATE</literal>, <literal>TIME</literal> and "
"<literal>TIMESTAMP</literal> (or equivalent)."
msgstr ""
-"Mappings de type pour <literal>java.util.Date</literal> et ses sous-classes "
+"mappages de type pour <literal>java.util.Date</literal> et ses sous-classes "
"vers les types SQL <literal>DATE</literal>, <literal>TIME</literal> et "
"<literal>TIMESTAMP</literal> (ou équivalent)."
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
-msgstr "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
"<literal>TIMESTAMP</literal> and <literal>DATE</literal> (or equivalent)."
msgstr ""
-"Mappings de type pour <literal>java.util.Calendar</literal> vers les types "
+"mappages de type pour <literal>java.util.Calendar</literal> vers les types "
"SQL <literal>TIMESTAMP</literal> et <literal>DATE</literal> (ou équivalent)."
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
-msgstr "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
+msgstr "<literal>big_decimal, big_integer</literal>"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
"math.BigInteger</literal> to <literal>NUMERIC</literal> (or Oracle "
"<literal>NUMBER</literal>)."
msgstr ""
-"Mappings de type pour <literal>java.math.BigDecimal</literal> et "
-"<literal>java.math.BigInteger</literal> vers <literal>NUMERIC</literal> (ou "
-"le <literal>NUMBER</literal> Oracle)."
+"mappages de type de <literal>java.math.BigDecimal</literal> et <literal>java."
+"math.BigInteger</literal> vers <literal>NUMERIC</literal> (ou le "
+"<literal>NUMBER</literal> Oracle)."
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
-msgstr "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
+msgstr "<literal>locale, timezone, currency</literal>"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -5025,51 +3725,45 @@
"mapped to their ISO codes. Instances of <literal>TimeZone</literal> are "
"mapped to their <literal>ID</literal>."
msgstr ""
-"Mappings de type pour <literal>java.util.Locale</literal>, <literal>java."
+"mappages de type pour <literal>java.util.Locale</literal>, <literal>java."
"util.TimeZone</literal> et <literal>java.util.Currency</literal> vers "
"<literal>VARCHAR</literal> (ou le <literal>VARCHAR2</literal> Oracle). Les "
"instances de <literal>Locale</literal> et <literal>Currency</literal> sont "
"mappées sur leurs codes ISO. Les instances de <literal>TimeZone</literal> "
"sont mappées sur leur <literal>ID</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2647
+#. Tag: term
#, no-c-format
-msgid "class"
-msgstr "class"
+msgid "<literal>class</literal>"
+msgstr "<literal>class</literal>"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>). A <literal>Class</literal> "
"is mapped to its fully qualified name."
msgstr ""
-"Un type de mapping pour <literal>java.lang.Class</literal> vers "
+"Un type de mappage de <literal>java.lang.Class</literal> vers "
"<literal>VARCHAR</literal> (ou le <literal>VARCHAR2</literal> Oracle). Un "
"objet <literal>Class</literal> est mappé sur son nom Java complet."
-#. Tag: literal
-#: basic_mapping.xml:2657
+#. Tag: term
#, no-c-format
-msgid "binary"
-msgstr "binary"
+msgid "<literal>binary</literal>"
+msgstr "<literal>binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
msgstr "Mappe les tableaux de bytes vers le type binaire SQL approprié."
-#. Tag: literal
-#: basic_mapping.xml:2665
+#. Tag: term
#, no-c-format
-msgid "text"
-msgstr "text"
+msgid "<literal>text</literal>"
+msgstr "<literal>text</literal>"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
@@ -5078,15 +3772,13 @@
"Mappe les longues chaînes de caractères Java vers les types SQL "
"<literal>CLOB</literal> ou <literal>TEXT</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2674
+#. Tag: term
#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+msgid "<literal>serializable</literal>"
+msgstr "<literal>serializable</literal>"
#. Tag: para
-#: basic_mapping.xml:2676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
"indicate the Hibernate type <literal>serializable</literal> with the name of "
@@ -5095,42 +3787,38 @@
"Mappe les types Java sérialisables vers le type SQL binaire approprié. Vous "
"pouvez aussi indiquer le type Hibernate <literal>serializable</literal> avec "
"le nom d'une classe Java sérialisable ou une interface qui ne soit pas par "
-"défaut un type de base."
+"défaut un type de base. "
-#. Tag: literal
-#: basic_mapping.xml:2685
+#. Tag: term
#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>clob, blob</literal>"
#. Tag: para
-#: basic_mapping.xml:2687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
"<literal>java.sql.Blob</literal>. These types can be inconvenient for some "
"applications, since the blob or clob object cannot be reused outside of a "
"transaction. Driver support is patchy and inconsistent."
msgstr ""
-"Mappings de type pour les classes JDBC <literal>java.sql.Clob</literal> and "
+"Mappages de type pour les classes JDBC <literal>java.sql.Clob</literal> et "
"<literal>java.sql.Blob</literal>. Ces types peuvent ne pas convenir pour "
"certaines applications car un objet blob ou clob peut ne pas être "
"réutilisable en dehors d'une transaction (de plus l'implémentation par les "
-"pilotes est moyennement bonne)."
+"pilotes comporte des lacunes)."
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
"Hibernate makes certain optimizations appropriate only for immutable Java "
@@ -5140,17 +3828,17 @@
"have that change made persistent, the application must assign a new, "
"nonidentical, object to the property."
msgstr ""
-"Mappings de type pour ceux qui sont habituellement modifiable, pour lesquels "
-"Hibernate effectue certains optimisations convenant seulement aux types Java "
-"immuables, et l'application les traite comme immuable. Par exemple, vous ne "
-"devriez pas appeler <literal>Date.setTime()</literal> sur une instance "
-"mappée sur un <literal>imm_timestamp</literal>. Pour changer la valeur de la "
-"propriété, et faire que cette modification soit persistée, l'application "
-"doit assigner un nouvel (non identique) objet à la propriété."
+"Mappages de type pour ceux qui sont habituellement considérés comme des "
+"types Java modifiables, et pour lesquels Hibernate effectue certaines "
+"optimisations convenant seulement aux types Java immuables. L'application "
+"les traite comme immuables. Par exemple, vous ne devriez pas appeler "
+"<literal>Date.setTime()</literal> sur une instance mappée sur un "
+"<literal>imm_timestamp</literal>. Pour changer la valeur de la propriété, et "
+"faire en sorte que cette modification soit persistée, l'application doit "
+"assigner un nouvel (non identique) objet à la propriété. "
#. Tag: para
-#: basic_mapping.xml:2716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</"
@@ -5160,10 +3848,9 @@
"Les identifiants uniques des entités et collections peuvent être de "
"n'importe quel type de base excepté <literal>binary</literal>, "
"<literal>blob</literal> et <literal>clob</literal> (les identifiants "
-"composites sont aussi permis, voir plus bas)."
+"composites sont aussi permis, voir plus bas). "
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -5172,19 +3859,17 @@
"type."
msgstr ""
"Les types de base des valeurs ont des <literal>Type</literal> constants "
-"correspondants définis dans <literal>org.hibernate.Hibernate</literal>. Par "
-"exemple, <literal>Hibernate.STRING</literal> représenté le type "
-"<literal>string</literal>."
+"correspondants et définis dans <literal>org.hibernate.Hibernate</literal>. "
+"Par exemple, <literal>Hibernate.STRING</literal> représente le type "
+"<literal>string</literal>. "
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
-msgstr "Types de valeur définis par l'utilisateur"
+msgstr "Types de valeur personnalisés"
#. Tag: para
-#: basic_mapping.xml:2733
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
"example, you might want to persist properties of type <literal>java.lang."
@@ -5197,19 +3882,18 @@
"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
"Il est assez facile pour les développeurs de créer leurs propres types de "
-"valeurs. Par exemple, vous pourriez vouloir persister des propriétés du type "
-"<literal>java.lang.BigInteger</literal> dans des colonnnes <literal>VARCHAR</"
-"literal>. Hibernate ne procure pas par défaut un type pour cela. Mais les "
-"types que vous pouvez créer ne se limitent pas à mapper des propriétés (ou "
-"élément collection) à une simple colonne d'une table. Donc, par exemple, "
-"vous pourriez avoir une propriété Java <literal>getName()</literal>/"
+"valeurs. Par exemple, vous aimeriez persister des propriétés du type "
+"<literal>java.lang.BigInteger</literal> dans des colonnes <literal>VARCHAR</"
+"literal>. Hibernate ne procure pas de type par défaut à cet effet. "
+"Toutefois, les types personnalisés ne se limitent pas à mapper des "
+"propriétés (ou élément collection) à une simple colonne de table. Donc, par "
+"exemple, vous pourriez avoir une propriété Java <literal>getName()</literal>/"
"<literal>setName()</literal> de type <literal>java.lang.String</literal> "
"persistée dans les colonnes <literal>FIRST_NAME</literal>, <literal>INITIAL</"
-"literal>, <literal>SURNAME</literal>."
+"literal>, <literal>SURNAME</literal>. "
#. Tag: para
-#: basic_mapping.xml:2744
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and "
@@ -5220,32 +3904,19 @@
"Pour implémenter votre propre type, vous pouvez soit implémenter "
"<literal>org.hibernate.UserType</literal> soit <literal>org.hibernate."
"CompositeUserType</literal> et déclarer des propriétés utilisant des noms de "
-"classes complets du type. Regardez <literal>org.hibernate.test."
-"DoubleStringType</literal> pour voir ce qu'il est possible de faire."
+"classes complets du type. Consultez <literal>org.hibernate.test."
+"DoubleStringType</literal> pour étudier les possibilités. "
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
"to multiple columns."
msgstr ""
-"Remarquez l'utilisation des tags <literal><column></literal> pour "
+"Remarquez l'utilisation des balises <literal><column></literal> pour "
"mapper une propriété sur des colonnes multiples."
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -5255,12 +3926,11 @@
msgstr ""
"Les interfaces <literal>CompositeUserType</literal>, "
"<literal>EnhancedUserType</literal>, <literal>UserCollectionType</literal>, "
-"et <literal>UserVersionType</literal> permettent des utilisations plus "
-"spécialisées."
+"et <literal>UserVersionType</literal> prennent en charge des utilisations "
+"plus spécialisées. "
#. Tag: para
-#: basic_mapping.xml:2765
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
"mapping file. To do this, your <literal>UserType</literal> must implement "
@@ -5268,26 +3938,14 @@
"To supply parameters to your custom type, you can use the <literal><"
"type></literal> element in your mapping files."
msgstr ""
-"Vous pouvez même donner des paramètres en indiquant <literal>UserType</"
-"literal> dans le fichier de mapping ; Pour cela, votre <literal>UserType</"
+"Vous pouvez même fournir des paramètres en indiquant <literal>UserType</"
+"literal> dans le fichier de mappage. Ã cet effet, votre <literal>UserType</"
"literal> doit implémenter l'interface <literal>org.hibernate.usertype."
"ParameterizedType</literal>. Pour spécifier des paramètres dans votre type "
"propre, vous pouvez utiliser l'élément <literal><type></literal> dans "
-"vos fichiers de mapping."
+"vos fichiers de mappage. "
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
@@ -5296,11 +3954,10 @@
msgstr ""
"Le <literal>UserType</literal> permet maintenant de récupérer la valeur pour "
"le paramètre nommé <literal>default</literal> à partir de l'objet "
-"<literal>Properties</literal> qui lui est passé."
+"<literal>Properties</literal> qui lui est passé. "
#. Tag: para
-#: basic_mapping.xml:2780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
"define a shorter name for it. You can do this using the <literal><"
@@ -5308,41 +3965,24 @@
"can also contain a list of default parameter values if the type is "
"parameterized."
msgstr ""
-"Si vous utilisez fréquemment un <literal>UserType</literal>, cela peut être "
-"utile de lui définir un nom plus court. Vous pouvez faire cela en utilisant "
+"Si vous utilisez fréquemment un <literal>UserType</literal>, il est utile de "
+"lui définir un nom plus court. Vous pouvez l'effectuer, en utilisant "
"l'élément <literal><typedef></literal>. Les typedefs permettent "
"d'assigner un nom à votre type propre et peuvent aussi contenir une liste de "
-"valeurs de paramètres par défaut si ce type est paramétré."
+"valeurs de paramètres par défaut si ce type est paramétré. "
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
"case-by-case basis by using type parameters on the property mapping."
msgstr ""
-"Il est aussi possible de redéfinir les paramètres par défaut du typedef au "
-"cas par cas en utilisant des paramètres type sur le mapping de la propriété."
+"Il est également possible de redéfinir les paramètres par défaut du typedef "
+"au cas par cas en utilisant des paramètres type sur le mappage de la "
+"propriété. "
#. Tag: para
-#: basic_mapping.xml:2796
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
"components means you will rarely need to use a custom type, it is considered "
@@ -5353,26 +3993,24 @@
"is abstraction. With a custom type, your mapping documents would be "
"protected against changes to the way monetary values are represented."
msgstr ""
-"Bien que le fait que Hibernate propose de base une riche variété de types, "
-"et qu'il supporte les composants signifie que vous aurez très rarement "
-"<emphasis>besoin</emphasis> d'utiliser un nouveau type propre, il est "
-"néanmoins de bonne pratique d'utiliser des types propres pour les classes "
-"(non entités) qui apparaissent fréquemment dans votre application. Par "
-"exemple une classe <literal>MonetaryAmount</literal> est un bon candidat "
-"pour un <literal>CompositeUserType</literal> même s'il pourrait facilement "
-"être mappé comme un composant. Une motivation pour cela est l'abstraction. "
-"Avec un type propre vos documents de mapping sont à l'abri des changements "
-"futurs dans votre façon de représenter des valeurs monétaires."
+"Alors que Hibernate offre une riche variété de types, et la prise en charge "
+"des composants, vous aurez très rarement <emphasis>besoin</emphasis> "
+"d'utiliser un type personnalisé, il est néanmoins recommandé d'utiliser des "
+"types personnalisés pour les classes (non entités) qui apparaissent "
+"fréquemment dans votre application. Par exemple, une classe "
+"<literal>MonetaryAmount</literal> est un bon candidat pour un "
+"<literal>CompositeUserType</literal> même si elle pourrait facilement être "
+"mappée en tant que composant. Une motivation pour cela est l'abstraction. "
+"Avec un type personnalisé, vos documents de mappage sont à l'abri des "
+"changements futurs dans votre façon de représenter des valeurs monétaires. "
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
msgstr "Mapper une classe plus d'une fois"
#. Tag: para
-#: basic_mapping.xml:2813
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
"class. In this case, you must specify an <emphasis>entity name</emphasis> to "
@@ -5381,56 +4019,30 @@
"entity name when working with persistent objects, when writing queries, or "
"when mapping associations to the named entity."
msgstr ""
-"Il est possible de proposer plus d'un mapping par classe persistante. Dans "
-"ce cas, vous devez spécifier un <emphasis>nom d'entité</emphasis> pour lever "
+"Il est possible de fournir plus d'un mappage par classe persistante. Dans ce "
+"cas, vous devez spécifier un <emphasis>nom d'entité</emphasis> pour lever "
"l'ambiguité entre les instances des entités mappées (par défaut, le nom de "
"l'entité est celui de la classe). Hibernate vous permet de spécifier le nom "
"de l'entité lorsque vous utilisez des objets persistants, lorsque vous "
"écrivez des requêtes ou quand vous mappez des associations vers les entités "
-"nommées."
+"nommées. "
-#. Tag: programlisting
-#: basic_mapping.xml:2821
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2823
-#, fuzzy, no-c-format
-msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
"of <literal>class</literal>."
msgstr ""
"Remarquez comment les associations sont désormais spécifiées en utilisant "
-"<literal>entity-name</literal> au lieu de <literal>class</literal>."
+"<literal>entity-name</literal> au lieu de <literal>class</literal>. "
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
msgstr "SQL quoted identifiers"
#. Tag: para
-#: basic_mapping.xml:2832
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
"enclosing the table or column name in backticks in the mapping document. "
@@ -5440,47 +4052,31 @@
msgstr ""
"Vous pouvez forcer Hibernate à mettre un identifiant entre quotes dans le "
"SQL généré en mettant le nom de la table ou de la colonne entre backticks "
-"dans le document de mapping. Hibernate utilisera les bons styles de quotes "
-"pour le <literal>Dialect</literal> SQL (habituellement des doubles quotes, "
-"mais des parenthèses pour SQL server et des backticks pour MySQL)."
+"dans le document de mappage. Hibernate utilisera les bons styles de quotes "
+"pour le SQL <literal>Dialect</literal> (habituellement des doubles quotes, "
+"mais des parenthèses pour SQL Server et des backticks pour MySQL). "
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
-msgstr "alternatives Metadata"
+msgstr "Métadonnées alternatives"
#. Tag: para
-#: basic_mapping.xml:2847
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
"mapping metadata in Hibernate."
msgstr ""
"XML ne convient pas à tout le monde, il y a donc des moyens alternatifs pour "
-"définir des metatda de mappings O/R dans Hibernate."
+"définir des métadonnées de mappage O/R dans Hibernate. "
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
-msgstr "utilisation de XDoclet"
+msgstr "Utilisation de XDoclet "
#. Tag: para
-#: basic_mapping.xml:2854
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover "
@@ -5489,138 +4085,26 @@
"literal> class with XDoclet mappings:"
msgstr ""
"De nombreux utilisateurs de Hibernate préfèrent embarquer les informations "
-"de mappings directement au sein du code source en utilisant les tags XDoclet "
-"<literal>@hibernate.tags</literal>. Nous ne couvrons pas cette approche dans "
-"ce document cependant, puisque c'est considéré comme faisant partie de "
+"de mappages directement au sein du code source en utilisant lesbalises "
+"XDoclet <literal>@hibernate.tags</literal>. Nous ne couvrons pas cette "
+"approche dans ce document puisque cela est considéré comme faisant partie de "
"XDoclet. Cependant, nous présentons l'exemple suivant de la classe "
-"<literal>Cat</literal> avec des mappings XDoclet."
+"<literal>Cat</literal> avec des mappages XDoclet :"
-#. Tag: programlisting
-#: basic_mapping.xml:2861
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr ""
-"Voyez le site web de Hibernate pour plus d'exemples sur XDoclet et Hibernate."
+"Voyez le site web de Hibernate pour plus d'exemples sur XDoclet et "
+"Hibernate. "
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
msgstr "Utilisation des annotations JDK 5.0"
#. Tag: para
-#: basic_mapping.xml:2872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
"type-safe and checked at compile time. This mechanism is more powerful than "
@@ -5635,71 +4119,39 @@
msgstr ""
"Le JDK 5.0 introduit des annotations proches de celles de XDoclet au niveau "
"java, qui sont type-safe et vérifiées à la compilation. Ce mécanisme est "
-"plus puissant que XDoclet et mieux supporté par les outils et IDE. IntelliJ "
-"IDEA, par exemple, supporte l'auto-complétion et le surlignement syntaxique "
-"des annotations JDK 5.0. La nouvelle révision des spécifications des EJB "
-"(JSR-220) utilise les annotations JDK 5.0 comme mécanisme primaire pour les "
-"meta-données des beans entités. Hibernate3 implémente "
+"plus puissant que XDoclet et mieux supporté par les outils et les IDE. "
+"IntelliJ IDEA, par exemple, supporte l'auto-complétion et le surlignement "
+"syntaxique des annotations JDK 5.0. La nouvelle révision des spécifications "
+"des EJB (JSR-220) utilise les annotations JDK 5.0 comme mécanisme primaire "
+"pour les metadonnées des beans entités. Hibernate3 implémente "
"l'<literal>EntityManager</literal> de la JSR-220 (API de persistance), le "
-"support du mapping de meta-données est disponible via le package "
+"support du mappage de métadonnées est disponible via le paquetage "
"<emphasis>Hibernate Annotations</emphasis>, en tant que module séparé à "
-"télécharger. EJB3 (JSR-220) et les métadata Hibernate3 sont supportés."
+"télécharger. EJB3 (JSR-220) et les métadonnées Hibernate3 sont supportés. "
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
msgstr "Ceci est un exemple d'une classe POJO annotée comme un EJB entité :"
-#. Tag: programlisting
-#: basic_mapping.xml:2887
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2891
-#, fuzzy, no-c-format
-msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
"development. Please refer to the Hibernate Annotations module for more "
"details."
msgstr ""
"Notez que le support des annotations JDK 5.0 (et de la JSR-220) est encore "
"en cours et n'est pas terminé. Référez vous au module Hibernate Annotation "
-"pour plus de détails."
+"pour plus d'informations. "
#. Tag: title
-#: basic_mapping.xml:2901
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Generated properties"
-msgstr "Propriétés générées"
+msgstr "Propriétés générées "
#. Tag: para
-#: basic_mapping.xml:2902
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh</"
@@ -5713,14 +4165,13 @@
"par la base de données. Typiquement, les applications Hibernate avaient "
"besoin d'invoquer <literal>refresh</literal> sur les instances qui "
"contenaient des propriétés pour lesquelles la base de données générait des "
-"valeurs. Marquer les propriétés comme générées permet à l'application de "
-"déléguer cette responsabilité à Hibernate. Principalement, à chaque fois "
-"qu'Hibernate réalise une insertion ou une mise à jour en base de données "
-"pour une entité marquée comme telle, cela provoque immédiatement un select "
-"pour récupérer les valeurs générées."
+"valeurs. Marquer les propriétés comme générées, permet à l'application de "
+"déléguer cette responsabilité à Hibernate. Principalement, à chaque fois que "
+"Hibernate réalise un SQL INSERT ou UPDATE en base de données pour une entité "
+"marquée comme telle, cela provoque immédiatement un select pour récupérer "
+"les valeurs générées. "
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -5730,23 +4181,21 @@
"can be marked as generated."
msgstr ""
"Les propriétés marquées comme générées doivent de plus ne pas être "
-"insérables et modifiables Seuls <xref linkend=\"mapping-declaration-version"
-"\">versions</xref>, <xref linkend=\"mapping-declaration-timestamp"
-"\">timestamps</xref>, et <xref linkend=\"mapping-declaration-property"
-"\">simple properties</xref> peuvent être marqués comme générées."
+"insérables et modifiables. Seules les versions <xref linkend=\"mapping-"
+"declaration-version\"/>, les timestamps <xref linkend=\"mapping-declaration-"
+"timestamp\"/>, et les propriétés simples <xref linkend=\"mapping-declaration-"
+"property\" /> peuvent être marqués comme générés. "
#. Tag: para
-#: basic_mapping.xml:2918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
"generated within the database."
msgstr ""
-"<literal>never</literal> (par défaut) - indique la valeur de la propriété "
-"n'est pas générée dans la base de données."
+"<literal>never</literal> (par défaut) - indique que la valeur donnée de la "
+"propriété n'est pas générée dans la base de données. "
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -5757,32 +4206,73 @@
"not available."
msgstr ""
"<literal>insert</literal> - indique que la valeur de la propriété donnée est "
-"générée à l'insertion mais pas lors des futures mises à jour de "
+"générée à l'insertion mais pas lors des futures mise à jour de "
"l'enregistrement. Les colonnes de type \"date de création\" sont le cas "
-"d'utilisation typique de cette option. Notez que même les propriétés <xref "
-"linkend=\"mapping-declaration-version\">version</xref> et <xref linkend="
-"\"mapping-declaration-timestamp\">timestamp</xref> peuvent être déclarées "
-"comme générées, cette option n'est pas disponible à cet endroit..."
+"d'utilisation typique de cette option. Notez que bien que la version <xref "
+"linkend=\"mapping-declaration-version\"/> et les propriétés timestamp <xref "
+"linkend=\"mapping-declaration-timestamp\" /> puissent être déclarées comme "
+"générées, cette option n'est pas disponible."
#. Tag: para
-#: basic_mapping.xml:2930
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
"and on update."
msgstr ""
"<literal>always</literal> - indique que la valeur de la propriété est "
-"générée à l'insert comme aux updates."
+"générée à l'insertion comme aux mise à jour. "
#. Tag: title
-#: basic_mapping.xml:2937
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Auxiliary database objects"
-msgstr "Objets auxiliaires de la base de données"
+msgstr "Objets auxiliaires de la base de données "
#. Tag: para
-#: basic_mapping.xml:2938
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
"database objects. In conjunction with Hibernate's schema evolution tools, "
@@ -5794,144 +4284,41 @@
"defining auxiliary database objects:"
msgstr ""
"Permettent les ordres CREATE et DROP d'objets arbitraire de la base de "
-"donnéées, en conjonction avec les outils Hibernate d'évolutions de schéma, "
+"données, en conjonction avec les outils Hibernate d'évolutions de schéma, "
"pour permettre de définir complètement un schéma utilisateur au sein des "
-"fichiers de mapping Hibernate. Bien que conçu spécifiquement pour créer et "
-"supprimer des objets tels que des triggers et des procédures stockées, ou "
-"toute commande pouvant être exécutée via une méthode de <literal>java.sql."
-"Statement.execute()</literal> (ALTERs, INSERTS, etc). Il y a principalement "
-"deux modes pour définir les objets auxiliaires de base de données..."
+"fichiers de mappage Hibernate. Bien que conçu spécifiquement pour créer et "
+"supprimer des objets tels que les triggers et les procédures stockées, en "
+"réalité toute commande pouvant être exécutée via une méthode de "
+"<literal>java.sql.Statement.execute()</literal> (ALTERs, INSERTS, etc) est "
+"valable à cet endroit. Il y a principalement deux modes pour définir les "
+"objets auxiliaires de base de données :"
#. Tag: para
-#: basic_mapping.xml:2947
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
msgstr ""
"Le premier mode est de lister explicitement les commandes CREATE et DROP "
-"dans le fichier de mapping:"
+"dans le fichier de mappage : "
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2952
-#, fuzzy, no-c-format
-msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
"DROP commands. This custom class must implement the <literal>org.hibernate."
"mapping.AuxiliaryDatabaseObject</literal> interface."
msgstr ""
-"Le second mode est de fournir une classe particulière qui connait comment "
-"construire les commandes CREATE et DROP. Cette classe particulière doit "
-"implémenter l'interface <literal>org.hibernate.mapping."
-"AuxiliaryDatabaseObject</literal>."
+"Le second mode est de fournir une classe personnalisée qui sait comment "
+"construire les commandes CREATE et DROP. Cette classe personnalisée doit "
+"implémenter l'interface <literal>org.hibernate.mappage."
+"AuxiliaryDatabaseObject</literal>. "
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2958
-#, fuzzy, no-c-format
-msgid ""
"Additionally, these database objects can be optionally scoped so that they "
"only apply when certain dialects are used."
msgstr ""
-"Additionnellement, ces objets de base de données peuvent être "
-"optionnellement traités selon l'utilisation de dialectes particuliers.."
-
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#~ msgid ""
-#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
-#~ "type."
-#~ msgstr ""
-#~ "<literal>type</literal> (optionnel) : Nom indiquant le type Hibernate."
-
-#~ msgid ""
-#~ "<literal>cascade</literal> (optional): Specifies which operations should "
-#~ "be cascaded from the parent object to the associated object."
-#~ msgstr ""
-#~ "<literal>cascade</literal> (optionnel) : Indique quelles opérations "
-#~ "doivent être propagées de l'objet père vers les objets associés."
-
-#~ msgid ""
-#~ "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-#~ "literal>): Specifies that updates to this property do or do not require "
-#~ "acquisition of the optimistic lock. In other words, dertermines if a "
-#~ "version increment should occur when this property is dirty."
-#~ msgstr ""
-#~ "<literal>optimistic-lock</literal> (optionnel - par défaut à "
-#~ "<literal>true</literal>) : Indique que les mises à jour de cette "
-#~ "propriété requièrent ou non l'acquisition d'un verrou optimiste. En "
-#~ "d'autres termes, détermine si un incrément de version doit avoir lieu "
-#~ "quand la propriété est marquée obsolète (dirty)."
-
-#~ msgid ""
-#~ "To understand the behaviour of various Java language-level objects with "
-#~ "respect to the persistence service, we need to classify them into two "
-#~ "groups:"
-#~ msgstr ""
-#~ "Pour comprendre le comportement des différents objets Java par rapport au "
-#~ "service de persistance, nous avons besoin de les classer en deux groupes :"
-
-#, fuzzy
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>all</literal> vérifie toutes les colonnes"
-
-#~ msgid "id"
-#~ msgstr "id"
-
-#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-
-#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
-#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
-
-#~ msgid "key"
-#~ msgstr "key"
-
-#~ msgid "any"
-#~ msgstr "any"
+"De plus, ces objets de base de données peuvent être optionnellement traités "
+"selon l'utilisation de dialectes particuliers. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,225 +1,134 @@
+# translation of batch.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: batch\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-04 17:03+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
-msgstr "Traitement par paquet"
+msgstr "Traitement par lot"
#. Tag: para
-#: batch.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A naive approach to inserting 100,000 rows in the database using Hibernate "
"might look like this:"
msgstr ""
"Une approche naïve pour insérer 100 000 lignes dans la base de données en "
-"utilisant Hibernate pourrait ressembler à ça :"
+"utilisant Hibernate ressemblerait à : "
-#. Tag: programlisting
-#: batch.xml:36
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:38
-#, fuzzy, no-c-format
-msgid ""
"This would fall over with an <literal>OutOfMemoryException</literal> "
"somewhere around the 50,000th row. That is because Hibernate caches all the "
"newly inserted <literal>Customer</literal> instances in the session-level "
"cache. In this chapter we will show you how to avoid this problem."
msgstr ""
"Ceci devrait s'écrouler avec une <literal>OutOfMemoryException</literal> "
-"quelque part aux alentours de la 50 000ème ligne. C'est parce qu'Hibernate "
+"quelque part aux alentours de la 50 000ème ligne. C'est parce que Hibernate "
"cache toutes les instances de <literal>Customer</literal> nouvellement "
-"insérées dans le cache de second niveau."
+"insérées dans le cache de second niveau. Dans ce chapitre, nous allons vous "
+"montrer comment éviter ce problème."
#. Tag: para
-#: batch.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are undertaking batch processing you will need to enable the use of "
"JDBC batching. This is absolutely essential if you want to achieve optimal "
"performance. Set the JDBC batch size to a reasonable number (10-50, for "
"example):"
msgstr ""
-"Dans ce chapitre nous montrerons comment éviter ce problème. D'abord, "
-"cependant, si vous faites des traitements par batch, il est absolument "
-"critique que vous activiez l'utilisation ds paquet JDBC (NdT : JDBC "
-"batching), si vous avez l'intention d'obtenir des performances raisonnables. "
-"Configurez la taille du paquet JDBC avec un nombre raisonnable (disons, 10-"
-"50) :"
+"Dans ce chapitre nous montrerons comment éviter ce problème. Mais tout "
+"d'abord, si vous faites des traitements par lot, il est absolument "
+"indispensable d'activer l'utilisation des lots JDBC, pour obtenir des "
+"performances raisonnables. Configurez la taille du lot JDBC Ã un nombre "
+"raisonnable (disons, 10-50) : "
-#. Tag: programlisting
-#: batch.xml:52
-#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate disables insert batching at the JDBC level transparently if you "
"use an <literal>identity</literal> identifier generator."
msgstr ""
-"Vous pourriez aussi vouloir faire cette sorte de travail dans un traitement "
-"où l'interaction avec le cache de second niveau est complètement désactivé :"
+"Notez que Hibernate désactive, de manière transparente, l'insertion par lot "
+"au niveau JDBC si vous utilisez un générateur d'identifiant de type "
+"<literal>identity</literal>. "
#. Tag: para
-#: batch.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also do this kind of work in a process where interaction with the "
"second-level cache is completely disabled:"
-msgstr "Insertions en paquet"
-
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
msgstr ""
+"Vous désirez peut-être effectuer ce genre de tâche dans un traitement où "
+"l'interaction avec le cache de second niveau est complètement désactivée :"
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid ""
"However, this is not absolutely necessary, since we can explicitly set the "
"<literal>CacheMode</literal> to disable interaction with the second-level "
"cache."
msgstr ""
-"Lorsque vous rendez des nouveaux objets persistants, vous devez "
-"régulièrement appeler <literal>flush()</literal> et puis <literal>clear()</"
-"literal> sur la session, pour contrôler la taille du cache de premier niveau."
+"Toutefois ce n'est pas absolument nécessaire puisque nous pouvons configurer "
+"le <literal>CacheMode</literal> de façon à désactiver l'interaction avec le "
+"cache de second niveau."
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
-msgstr "Paquet de mises à jour"
+msgstr "Insertions en lot"
#. Tag: para
-#: batch.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When making new objects persistent <literal>flush()</literal> and then "
"<literal>clear()</literal> the session regularly in order to control the "
"size of the first-level cache."
msgstr ""
-"Pour récupérer et mettre à jour des données les mêmes idées s'appliquent. En "
-"plus, vous avez besoin d'utiliser <literal>scroll()</literal> pour tirer "
-"partie des curseurs côté serveur pour les requêtes qui retournent beaucoup "
-"de lignes de données."
+"Lorsque vous rendez des nouveaux objets persistants, vous devez "
+"régulièrement appeler <literal>flush()</literal> et puis <literal>clear()</"
+"literal> sur la session, pour contrôler la taille du cache de premier "
+"niveau. "
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
-msgstr "L'interface StatelessSession"
+msgstr "Mise à jour des lots"
#. Tag: para
-#: batch.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For retrieving and updating data, the same ideas apply. In addition, you "
"need to use <literal>scroll()</literal> to take advantage of server-side "
"cursors for queries that return many rows of data."
msgstr ""
-"Alternativement, Hibernate fournit une API orientée commande qui peut être "
-"utilisée avec des flux de données pour et en provenance de la base de "
-"données sous la forme d'objets détachés. Une <literal>StatelessSession</"
-"literal> n'a pas de contexte de persistance associé et ne fournit pas "
-"beaucoup de sémantique de durée de vie de haut niveau. En particulier, une "
-"session sans état n'implémente pas de cache de premier niveau et n'interagit "
-"pas non plus avec un cache de seconde niveau ou un cache de requêtes. Elle "
-"n'implémente pas les transactions ou la vérification sale automatique (NdT : "
-"automatic dirty checking). Les opérations réalisées avec une session sans "
-"état ne sont jamais répercutées en cascade sur les instances associées. Les "
-"collections sont ignorées par une session sans état. Les opérations "
-"exécutées via une session sans état outrepasse le modèle d'événements "
-"d'Hibernate et les intercepteurs. Les sessions sans état sont vulnérables "
-"aux effets de modification des données, ceci est dû au manque de cache de "
-"premier niveau. Une session sans état est une abstraction bas niveau, plus "
-"proche de la couche JDBC sous-jacente."
+"Pour récupérer et mettre à jour des données les mêmes idées s'appliquent. De "
+"plus, vous devez utiliser <literal>scroll()</literal> pour tirer partie des "
+"curseurs côté serveur pour les requêtes qui retournent beaucoup de lignes de "
+"données. "
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
-msgstr ""
-"Notez que dans le code de l'exemple, les intances de <literal>Customer</"
-"literal> retournées par la requête sont immédiatement détachées. Elles ne "
-"sont jamais associées à un contexte de persistance."
+msgstr "L'interface StatelessSession"
#. Tag: para
-#: batch.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, Hibernate provides a command-oriented API that can be used "
"for streaming data to and from the database in the form of detached objects. "
@@ -235,47 +144,36 @@
"effects. A stateless session is a lower-level abstraction that is much "
"closer to the underlying JDBC."
msgstr ""
-"Les opérations <literal>insert()</literal>, <literal>update()</literal> et "
-"<literal>delete()</literal> définies par l'interface "
-"<literal>StatelessSession</literal> sont considérées comme des opérations "
-"d'accès direct aux lignes de la base de données, ce qui résulte en une "
-"exécution immédiate du SQL <literal>INSERT</literal>, <literal>UPDATE</"
-"literal> ou <literal>DELETE</literal> respectif. De là , elles ont des "
-"sémantiques tres différentes des opérations <literal>save()</literal>, "
-"<literal>saveOrUpdate()</literal> et <literal>delete()</literal> définies "
-"par l'interface <literal>Session</literal>."
+"Alternativement, Hibernate fournit une API orientée commande qui peut être "
+"utilisée avec des flux de données vers et en provenance de la base de "
+"données sous la forme d'objets détachés. Une <literal>StatelessSession</"
+"literal> n'a pas de contexte de persistance associé et ne fournit pas "
+"beaucoup de sémantique de cycle de vie de haut niveau. En particulier, une "
+"session sans état n'implémente pas de cache de premier niveau et n'interagit "
+"pas non plus avec un cache de seconde niveau ou un cache de requêtes. Elle "
+"n'implémente pas les transactions ou la vérification sale automatique "
+"(automatic dirty checking). Les opérations réalisées avec une session sans "
+"état ne sont jamais répercutées en cascade sur les instances associées. Les "
+"collections sont ignorées par une session sans état. Les opérations "
+"exécutées via une session sans état outrepassent le modèle d'événements de "
+"Hibernate et les intercepteurs. Les sessions sans état sont vulnérables aux "
+"effets de réplication des données, ceci est dû au manque de cache de premier "
+"niveau. Une session sans état est une abstraction bas niveau, plus proche de "
+"la couche JDBC sous-jacente. "
-#. Tag: programlisting
-#: batch.xml:114
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:116
-#, fuzzy, no-c-format
-msgid ""
"In this code example, the <literal>Customer</literal> instances returned by "
"the query are immediately detached. They are never associated with any "
"persistence context."
-msgstr "Opérations de style DML"
+msgstr ""
+"Notez que dans le code de l'exemple, les instances de <literal>Customer</"
+"literal> retournées par la requête sont immédiatement détachées. Elles ne "
+"sont jamais associées à un contexte de persistance. "
#. Tag: para
-#: batch.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>StatelessSession</literal> interface are "
@@ -285,28 +183,22 @@
"<literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>Session</literal> interface."
msgstr ""
-"Comme déjà discuté avant, le mapping objet/relationnel automatique et "
-"transparent est intéressé par la gestion de l'état de l'objet. Ceci implique "
-"que l'état de l'objet est disponible en mémoire, d'où manipuler (en "
-"utilisant des expressions du langage de manipulation de données - "
-"<literal>Data Manipulation Language</literal> (DML) - SQL) les données "
-"directement dans la base n'affectera pas l'état en mémoire. Pourtant, "
-"Hibernate fournit des méthodes pour l'exécution d'expression DML de style "
-"SQL lesquelles sont réalisées à travers le langage de requête d'Hibernate "
-"(<xref linkend=\"queryhql\">HQL</xref>)."
+"Les opérations <literal>insert()</literal>, <literal>update()</literal> et "
+"<literal>delete()</literal> définies par l'interface "
+"<literal>StatelessSession</literal> sont considérées comme des opérations "
+"d'accès direct aux lignes de la base de données, ce qui résulte en une "
+"exécution immédiate du SQL <literal>INSERT</literal>, <literal>UPDATE</"
+"literal> ou <literal>DELETE</literal> respectivement. Ainsi, elles ont des "
+"sémantiques très différentes des opérations <literal>save()</literal>, "
+"<literal>saveOrUpdate()</literal> et <literal>delete()</literal> définies "
+"par l'interface <literal>Session</literal>."
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
-msgstr ""
-"La pseudo-syntaxe pour les expressions <literal>UPDATE</literal> et "
-"<literal>DELETE</literal> est : <literal>( UPDATE | DELETE ) FROM? "
-"EntityName (WHERE where_conditions)?</literal>. Certains points sont à "
-"noter :"
+msgstr "Opérations de style DML"
#. Tag: para
-#: batch.xml:137
#, fuzzy, no-c-format
msgid ""
"As already discussed, automatic and transparent object/relational mapping is "
@@ -318,111 +210,84 @@
"Hibernate provides methods for bulk SQL-style DML statement execution that "
"is performed through the Hibernate Query Language (<link linkend=\"queryhql"
"\">HQL</link>)."
-msgstr "Dans la clause from, le mot-clef FROM est optionnel"
+msgstr ""
+"Comme mentionné auparavant, le mapping objet/relationnel automatique et "
+"transparent s'intéresse à la gestion de l'état de l'objet. Ceci implique que "
+"l'état de l'objet soit disponible en mémoire, c'est pourquoi manipuler (en "
+"utilisant des expressions SQL du langage de manipulation de données - "
+"<literal>Data Manipulation Language</literal> (DML) : les données "
+"<literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</"
+"literal>) directement dans la base n'affecteront pas l'état en mémoire. "
+"Cependant, Hibernate fournit des méthodes pour l'exécution d'expression DML "
+"de style SQL en gros, qui sont réalisées à travers le langage de requête de "
+"Hibernate, Hibernate Query Language (<xref linkend=\"queryhql\"/> HQL)."
#. Tag: para
-#: batch.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
"where_conditions)?</literal>."
msgstr ""
-"Il ne peut y avoir qu'une seule entité nommée dans la clause from ; elle "
-"peut optionnellement avoir un alias. Si le nom de l'entité a un alias, alors "
-"n'importe quelle référence de propriété doit être qualifiée en ayant un "
-"alias ; si le nom de l'entité n'a pas d'alias, alors il est illégal pour "
-"n'importe quelle référence de propriété d'être qualifiée."
+"La pseudo-syntaxe pour les expressions <literal>UPDATE</literal> et "
+"<literal>DELETE</literal> est : <literal>( UPDATE | DELETE ) FROM? "
+"EntityName (WHERE where_conditions)?</literal>. "
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
-msgstr ""
+msgstr "Certains points à noter :"
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
-msgstr ""
-"Aucune jointure (implicite ou explicite) ne peut être spécifiée dans une "
-"requête HQL. Les sous-requêtes peuvent être utilisées dans la clause where ; "
-"les sous-requêtes, elles-mêmes, peuvent contenir des jointures."
+msgstr "Dans la clause from, le mot-clef FROM est optionnel"
#. Tag: para
-#: batch.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can only be a single entity named in the from-clause. It can, however, "
"be aliased. If the entity name is aliased, then any property references must "
"be qualified using that alias. If the entity name is not aliased, then it is "
"illegal for any property references to be qualified."
-msgstr "La clause where est aussi optionnelle."
+msgstr ""
+"Il ne peut y avoir qu'une seule entité nommée dans la clause from ; elle "
+"peut optionnellement avoir un alias. Si le nom de l'entité a un alias, alors "
+"n'importe quelle référence de propriété doit être qualifiée en utilisant un "
+"alias ; si le nom de l'entité n'a pas d'alias, il sera illégal pour "
+"n'importe quelle référence de propriété d'être qualifiée."
#. Tag: para
-#: batch.xml:170
#, fuzzy, no-c-format
msgid ""
"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
"the where-clause, where the subqueries themselves may contain joins."
msgstr ""
-"Par exemple, pour exécuter un <literal>UPDATE</literal> HQL, utilisez la "
-"méthode <literal>Query.executeUpdate()</literal> (la méthode est données "
-"pour ceux qui sont familiers avec <literal>PreparedStatement.executeUpdate()"
-"</literal> de JDBC) :"
+"Aucune jointure <xref linkend=\"queryhql-joins-forms\" /> (implicite ou "
+"explicite) ne peut être spécifiée dans une requête HQL en gros. Les sous-"
+"requêtes peuvent être utilisées dans la clause where- ; les sous-requêtes, "
+"elles-mêmes, peuvent contenir des jointures."
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
-msgstr ""
-"Pour exécuter un <literal>DELETE</literal> HQL, utilisez la même méthode "
-"<literal>Query.executeUpdate()</literal> :"
+msgstr "La clause where- est aussi optionnelle."
#. Tag: para
-#: batch.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
"<literal>Query.executeUpdate()</literal> method. The method is named for "
"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
"literal>:"
msgstr ""
-"La valeur du <literal>int</literal> retourné par la méthode <literal>Query."
-"executeUpdate()</literal> indique le nombre d'entités affectées par "
-"l'opération. Considérez que cela peut ou pas corréler le nombre de lignes "
-"affectés dans la base de données. Une opération HQL pourrait entraîner "
-"l'exécution de multiples expressions SQL réelles, pour des classes filles "
-"mappées par jointure (NdT: join-subclass), par exemple. Le nombre retourné "
-"indique le nombre d'entités réelles affectées par l'expression. Retour à "
-"l'exemple de la classe fille mappée par jointure, un effacement d'une des "
-"classes filles peut réellement entraîner des suppressions pas seulement dans "
-"la table qui mappe la classe fille, mais aussi dans la table \"racine\" et "
-"potentillement dans les tables des classes filles plus bas dans la "
-"hiérarchie d'héritage."
+"Par exemple, pour exécuter un HQL <literal>UPDATE</literal>, utilisez la "
+"méthode <literal>Query.executeUpdate()</literal> (la méthode est données "
+"pour ceux qui connaissent <literal>PreparedStatement.executeUpdate()</"
+"literal> de JDBC) : "
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :"
-"oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :"
-"oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:191
#, fuzzy, no-c-format
msgid ""
"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
@@ -435,73 +300,39 @@
"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
"keyword."
msgstr ""
-"La pseudo-syntaxe pour l'expression <literal>INSERT</literal> est : "
-"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
-"Quelques points sont à noter :"
+"Par défaut, les déclarations HQL <literal>UPDATE</literal>, n'affectent pas "
+"la version <xref linkend=\"mapping-declaration-version\"/> ou les valeurs "
+"<xref linkend=\"mapping-declaration-timestamp\" /> de propriétés timestamp "
+"pour les entités concernées; ceci est compatible avec la spécification EJB3. "
+"Toutefois, vous pouvez forcer Hibernate à mettre à jour les valeurs des "
+"propriétés <literal>version</literal> ou <literal>timestamp</literal> en "
+"utilisant le <literal>versioned update</literal>. Pour ce faire, ajoutez le "
+"mot clé <literal>VERSIONED</literal> après le mot clé <literal>UPDATE</"
+"literal>. "
-#. Tag: programlisting
-#: batch.xml:201
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName "
-"where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:203
-#, fuzzy, no-c-format
-msgid ""
"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
"literal>, are not allowed in conjunction with a <literal>update versioned</"
"literal> statement."
msgstr ""
-"Seule la forme INSERT INTO ... SELECT ... est supportée ; pas la forme "
-"INSERT INTO ... VALUES ... ."
+"Notez que les types personnalisés (<literal>org.hibernate.usertype."
+"UserVersionType</literal>) ne sont pas permis en conjonction avec la "
+"déclaration <literal>update versioned</literal>. "
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid ""
"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
"executeUpdate()</literal> method:"
msgstr ""
-"La properties_list est analogue à la <literal>spécification de la colonne</"
-"literal> The properties_list is analogous to the <literal>column "
-"speficiation</literal> dans l'expression SQL <literal>INSERT</literal>. Pour "
-"les entités impliquées dans un héritage mappé, seules les propriétés "
-"directement définies à ce niveau de classe donné peuvent être utilisées dans "
-"properties_list. Les propriétés de la classe mère ne sont pas permises ; et "
-"les propriétés des classes filles n'ont pas de sens. En d'autres mots, les "
-"expressions <literal>INSERT</literal> par nature non polymorphiques."
+"Pour exécuter un HQL <literal>DELETE</literal>, utilisez la même méthode "
+"<literal>Query.executeUpdate()</literal> :"
-#. Tag: programlisting
-#: batch.xml:213
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:215
-#, fuzzy, no-c-format
-msgid ""
"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
"()</literal> method indicates the number of entities effected by the "
"operation. This may or may not correlate to the number of rows effected in "
@@ -513,61 +344,41 @@
"which that subclass is mapped, but also the \"root\" table and potentially "
"joined-subclass tables further down the inheritance hierarchy."
msgstr ""
-"select_statement peut être n'importe quelle requête de sélection HQl valide, "
-"avec l'avertissement que les types de retour doivent correspondre aux types "
-"attendus par l'insertion. Actuellement, c'est vérifié durant la compilation "
-"de la requête plutôt que la vérification soit reléguée à la base de données. "
-"Notez cependant que cela pourrait poser des problèmes entre les "
-"<literal>Type</literal>s d'Hibernate qui sont <emphasis>équivalents</"
-"emphasis> opposé à <emphasis>égaux</emphasis>. Cela pourrait poser des "
-"problèmes avec des disparités entre une propriété définie comme un "
-"<literal>org.hibernate.type.DateType</literal> et une propriété définie "
-"comme un <literal>org.hibernate.type.TimestampType</literal>, même si la "
-"base de données ne ferait pas de distinction ou ne serait pas capable de "
-"gérer la conversion."
+"La valeur du <literal>int</literal> retourné par la méthode <literal>Query."
+"executeUpdate()</literal> indique le nombre d'entités affectées par "
+"l'opération. Considérez que cela peut ou non, corréler le nombre de lignes "
+"affectées dans la base de données. Une opération HQL pourrait entraîner "
+"l'exécution de multiples expressions SQL réelles, pour des classes filles "
+"mappées par jointure (join-subclass), par exemple. Le nombre retourné "
+"indique le nombre d'entités réelles affectées par l'expression. Si on "
+"revient à l'exemple de la classe fille mappée par jointure, un effacement "
+"d'une des classes filles peut réellement entraîner des suppressions pas "
+"seulement dans la table à laquelle la classe fille est mappée, mais "
+"également dans la table \"racine\" et potentillement dans les tables des "
+"classes filles plus bas dans la hiérarchie d'héritage. "
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid ""
"The pseudo-syntax for <literal>INSERT</literal> statements is: "
"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
"Some points to note:"
msgstr ""
-"Pour la propriéte id, l'expression d'insertion vous donne deux options. Vous "
-"pouvez soit spécifier explicitement la propriété id dans properties_list "
-"(auquel cas sa valeur est extraite de l'expression de sélection "
-"correspondante), soit l'omettre de properties_list (auquel cas une valeur "
-"générée est utilisée). Cette dernière option est seulement disponible en "
-"utilisant le générateur d'identifiant qui opère dans la base de données ; "
-"tenter d'utiliser cette option avec n'importe quel type de générateur \"en "
-"mémoire\" causera une exception durant l'analyse. Notez que pour les buts de "
-"cette discussion, les générateurs \"en base\" sont considérés être "
-"<literal>org.hibernate.id.SequenceGenerator</literal> (et ses classes "
-"filles) et n'importe quelles implémentations de <literal>org.hibernate.id."
-"PostInsertIdentifierGenerator</literal>. L'exception la plus notable ici est "
-"<literal>org.hibernate.id.TableHiLoGenerator</literal>, qu ne peut pas être "
-"utilisée parce qu'il ne propose pas un moyen de d'exposer ses valeurs par un "
-"select."
+"La pseudo-syntaxe pour l'expression <literal>INSERT</literal> est : "
+"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
+"Quelques points sont à noter :"
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid ""
"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
"INTO ... VALUES ... form."
msgstr ""
-"Pour des propriétés mappées comme <literal>version</literal> ou "
-"<literal>timestamp</literal>, l'expression d'insertion vous donne deux "
-"options. Vous pouvez soit spécifier la propriété dans properties_list "
-"(auquel cas sa valeur est extraite des expressions select correspondantes), "
-"soit l'omettre de properties_list (auquel cas la <literal>valeur de graine</"
-"literal> (NdT : seed value) définie par le <literal>org.hibernate.type."
-"VersionType</literal> est utilisée)."
+"Seule la forme INSERT INTO ... SELECT ... est supportée ; pas la forme "
+"INSERT INTO ... VALUES ... ."
#. Tag: para
-#: batch.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties_list is analogous to the <literal>column specification</"
"literal> in the SQL <literal>INSERT</literal> statement. For entities "
@@ -576,11 +387,16 @@
"are not allowed and subclass properties do not make sense. In other words, "
"<literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
-"Un exemple d'exécution d'une expression <literal>INSERT</literal> HQL :"
+"La properties_list est analogue à la <literal>column speficiation</literal> "
+"dans la déclaration SQL <literal>INSERT</literal>. Pour les entités "
+"impliquées dans un héritage mappé, seules les propriétés directement "
+"définies à ce niveau de classe donné peuvent être utilisées dans "
+"properties_list. Les propriétés de la classe mère ne sont pas permises ; et "
+"les propriétés des classes filles n'ont pas de sens. En d'autres termes, les "
+"expressions <literal>INSERT</literal> sont par nature non polymorphiques. "
#. Tag: para
-#: batch.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"select_statement can be any valid HQL select query, with the caveat that the "
"return types must match the types expected by the insert. Currently, this is "
@@ -592,10 +408,21 @@
"DateType</literal> and a property defined as a <literal>org.hibernate.type."
"TimestampType</literal>, even though the database might not make a "
"distinction or might be able to handle the conversion."
-msgstr "translator-credits"
+msgstr ""
+"select_statement peut être n'importe quelle requête de sélection HQL valide, "
+"avec l'avertissement que les types de retour doivent correspondre aux types "
+"attendus par l'insertion. Actuellement, cela est vérifié durant la "
+"compilation de la requête plutôt que de reléguer la vérification à la base "
+"de données. Notez cependant que cela pourrait poser des problèmes entre les "
+"<literal>Type</literal>s de Hibernate qui sont <emphasis>équivalents</"
+"emphasis> contrairement à <emphasis>égaux</emphasis>. Cela pourrait poser "
+"des problèmes avec des disparités entre une propriété définie comme un "
+"<literal>org.hibernate.type.DateType</literal> et une propriété définie "
+"comme un <literal>org.hibernate.type.TimestampType</literal>, bien que la "
+"base de données ne fasse pas de distinction ou ne soit pas capable de gérer "
+"la conversion."
#. Tag: para
-#: batch.xml:259
#, no-c-format
msgid ""
"For the id property, the insert statement gives you two options. You can "
@@ -612,9 +439,23 @@
"TableHiLoGenerator</literal>, which cannot be used because it does not "
"expose a selectable way to get its values."
msgstr ""
+"Pour la propriété id, l'expression d'insertion vous donne deux options. Vous "
+"pouvez soit spécifier explicitement la propriété id dans properties_list "
+"(auquel cas sa valeur est extraite de l'expression de sélection "
+"correspondante), soit l'omettre de properties_list (auquel cas une valeur "
+"générée est utilisée). Cette dernière option est seulement disponible si "
+"vous utilisez le générateur d'identifiant qui opère dans la base de "
+"données ; tenter d'utiliser cette option avec n'importe quel type de "
+"générateur \"en mémoire\" causera une exception durant l'analyse. Notez que "
+"pour les buts de cette discussion, les générateurs \"en base\" sont "
+"considérés comme <literal>org.hibernate.id.SequenceGenerator</literal> (et "
+"ses classes filles) et n'importe quelles implémentations de <literal>org."
+"hibernate.id.PostInsertIdentifierGenerator</literal>. L'exception la plus "
+"notable ici est <literal>org.hibernate.id.TableHiLoGenerator</literal>, qui "
+"ne peut pas être utilisée parce qu'elle ne propose pas de moyen d'obtenir "
+"ses valeurs par un select. "
#. Tag: para
-#: batch.xml:274
#, no-c-format
msgid ""
"For properties mapped as either <literal>version</literal> or "
@@ -624,26 +465,18 @@
"from the properties_list, in which case the <literal>seed value</literal> "
"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
+"Pour des propriétés mappées comme <literal>version</literal> ou "
+"<literal>timestamp</literal>, l'expression d'insertion vous donne deux "
+"options. Vous pouvez soit spécifier la propriété dans properties_list "
+"(auquel cas sa valeur est extraite des expressions select correspondantes), "
+"soit l'omettre de properties_list (auquel cas la <literal>seed value</"
+"literal> définie par le <literal>org.hibernate.type.VersionType</literal> "
+"est utilisée). "
#. Tag: para
-#: batch.xml:284
#, no-c-format
msgid ""
"The following is an example of an HQL <literal>INSERT</literal> statement "
"execution:"
msgstr ""
-
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c."
-"name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
+"Un exemple d'exécution d'une expression HQL <literal>INSERT</literal> : "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,33 +1,36 @@
+# translation of best_practices.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: best_practices\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-11-10 16:06+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
msgstr "Meilleures pratiques"
#. Tag: term
-#: best_practices.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
"literal>:"
msgstr ""
-"Découpez finement vos classes et mappez les en utilisant <literal><"
-"component></literal>."
+"Découpez finement vos classes et mappez-les en utilisant <literal><"
+"component></literal> :"
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -35,37 +38,33 @@
"<literal>postcode</literal>. This encourages code reuse and simplifies "
"refactoring."
msgstr ""
-"Utilisez une classe <literal>Adresse</literal> pour encapsuler <literal>Rue</"
-"literal>, <literal>Region</literal>, <literal>CodePostal</literal>. Ceci "
-"permet la réutilisation du code et simplifie la maintenance."
+"Utilisez une classe <literal>Address</literal> pour résumer <literal>street</"
+"literal>, <literal>suburb</literal>, <literal>state</literal>, "
+"<literal>postcode</literal>. Ceci permet la réutilisation du code et "
+"simplifie la maintenance. "
#. Tag: term
-#: best_practices.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Declare identifier properties on persistent classes:"
-msgstr "Déclarez des propriétés d'identifiants dans les classes persistantes."
+msgstr "Déclarez des propriétés d'identifiants dans les classes persistantes :"
#. Tag: para
-#: best_practices.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
"why you should use them. We recommend that identifiers be 'synthetic', that "
"is, generated with no business meaning."
msgstr ""
-"Hibernate rend les propriétés d'identifiants optionnelles. Il existe "
-"beaucoup de raisons pour lesquelles vous devriez les utiliser. Nous "
-"recommandons que vous utilisiez des identifiants techniques (générés, et "
-"sans connotation métier)."
+"Hibernate rend les propriétés d'identifiants optionnelles. Il est recommandé "
+"de les utiliser pour de nombreuses raisons. Utilisez les identifiants comme "
+"'synthetic' (générés, et sans connotation métier)."
#. Tag: term
-#: best_practices.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Identify natural keys:"
-msgstr "Identifiez les clefs naturelles."
+msgstr "Identifiez les clefs naturelles :"
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -73,20 +72,18 @@
"<literal>hashCode()</literal> to compare the properties that make up the "
"natural key."
msgstr ""
-"Identifiez les clefs naturelles pour toutes les entités, et mappez les avec "
+"Identifiez les clefs naturelles pour toutes les entités, et mappez-les avec "
"<literal><natural-id></literal>. Implémentez <literal>equals()</"
"literal> et <literal>hashCode()</literal> pour comparer les propriétés qui "
-"composent la clef naturelle."
+"composent la clef naturelle. "
#. Tag: term
-#: best_practices.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Place each class mapping in its own file:"
-msgstr "Placez chaque mapping de classe dans son propre fichier."
+msgstr "Placez chaque mapping de classe dans son propre fichier :"
#. Tag: para
-#: best_practices.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
"literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes "
@@ -94,87 +91,77 @@
msgstr ""
"N'utilisez pas un unique document de mapping. Mappez <literal>com.eg.Foo</"
"literal> dans le fichier <literal>com/eg/Foo.hbm.xml</literal>. Cela prend "
-"tout son sens lors d'un travail en équipe."
+"tout son sens lors d'un travail en équipe. "
#. Tag: term
-#: best_practices.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Load mappings as resources:"
-msgstr "Chargez les mappings comme des ressources."
+msgstr "Chargez les mappings comme des ressources :"
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
msgstr "Déployez les mappings en même temps que les classes qu'ils mappent."
#. Tag: term
-#: best_practices.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider externalizing query strings:"
-msgstr "Pensez à externaliser les chaînes de caractères."
+msgstr "Pensez à externaliser les chaînes de requêtes :"
#. Tag: para
-#: best_practices.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
"Externalizing the query strings to mapping files will make the application "
"more portable."
msgstr ""
"Ceci est une bonne habitude si vos requêtes appellent des fonctions SQL qui "
-"ne sont pas au standard ANSI. Cette externalisation dans les fichiers de "
-"mapping rendra votre application plus portable."
+"ne sont pas au standard ANSI. Cette externalisation des chaînes de requête "
+"dans les fichiers de mapping rendra votre application plus portable. "
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
-msgstr "Utilisez les variables \"bindées\"."
+msgstr "Utilisez les variables bindées."
#. Tag: para
-#: best_practices.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
"manipulation to bind a non-constant value in a query. You should also "
"consider using named parameters in queries."
msgstr ""
-"Comme en JDBC, remplacez toujours les valeurs non constantes par \"?\". "
-"N'utilisez jamais la manipulation des chaînes de caractères pour remplacer "
-"des valeurs non constantes dans une requête ! Encore mieux, utilisez les "
+"Comme dans JDBC, remplacez toujours les valeurs non constantes par \"?\". "
+"N'utilisez jamais la manipulation des chaînes de caractères pour lier des "
+"valeurs non constantes dans une requête ! Encore mieux, utilisez les "
"paramètres nommés dans les requêtes."
#. Tag: term
-#: best_practices.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not manage your own JDBC connections:"
-msgstr "Ne gérez pas vous même les connexions JDBC."
+msgstr "Ne gérez pas vous-même les connexions JDBC :"
#. Tag: para
-#: best_practices.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
"approach should be considered a last-resort. If you cannot use the built-in "
"connection providers, consider providing your own implementation of "
"<literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
-"Hibernate laisse l'application gérer les connexions JDBC. Vous ne devriez "
-"gérer vos connexions qu'en dernier recours. Si vous ne pouvez pas utiliser "
-"les systèmes de connexions livrés, réfléchissez à l'idée de fournir votre "
-"propre implémentation de <literal>org.hibernate.connection."
-"ConnectionProvider</literal>."
+"Hibernate permet à l'application de gérer les connexions JDBC. Vous ne "
+"devriez gérer vos connexions qu'en dernier recours. Si vous ne pouvez pas "
+"utiliser les systèmes de connexions livrés, considérez la fourniture de "
+"votre propre implémentation de <literal>org.hibernate.connection."
+"ConnectionProvider</literal>. "
#. Tag: term
-#: best_practices.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider using a custom type:"
-msgstr "Pensez à utiliser les types utilisateurs."
+msgstr "Considérez l'utilisation de types personnalisés :"
#. Tag: para
-#: best_practices.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
"does not provide the accessors needed to map it as a component. You should "
@@ -182,48 +169,45 @@
"approach frees the application code from implementing transformations to/"
"from a Hibernate type."
msgstr ""
-"Supposez que vous ayez une type Java, de telle bibliothèque, qui a besoin "
+"Supposez que vous ayez un type Java, de telle bibliothèque, qui a besoin "
"d'être persisté mais qui ne fournit pas les accesseurs nécessaires pour le "
"mapper comme composant. Vous devriez implémenter <literal>org.hibernate."
-"UserType</literal>.Cette approche libère le code de l'application de "
-"l'implémentation des transformations vers / depuis les types Hibernate."
+"UserType</literal>. Cette approche évite au code de l'application, "
+"l'implémentation de transformations vers / depuis les types Hibernate. "
#. Tag: term
-#: best_practices.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
-msgstr "Utilisez du JDBC pur dans les goulets d'étranglement."
+msgstr "Utilisez du JDBC pur dans les goulots d'étranglement :"
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
-"Dans certaines parties critiques de votre système d'un point de vue "
-"performance, quelques opérations peuvent tirer partie d'un appel JDBC natif. "
-"Mais attendez de <emphasis>savoir</emphasis> que c'est un goulet "
+"En ce qui concerne les performances dans certaines parties critiques de "
+"votre système, quelques opérations peuvent tirer partie d'un appel JDBC "
+"natif. Mais attendez de <emphasis>savoir</emphasis> que c'est un goulet "
"d'étranglement. Ne supposez jamais qu'un appel JDBC sera forcément plus "
-"rapide. Si vous avez besoin d'utiliser JDBC directement, ouvrez une "
+"rapide. Si vous devez utiliser JDBC directement, ouvrez une "
"<literal>Session</literal> Hibernate et utilisez la connexion SQL sous-"
"jacente. Ainsi vous pourrez utiliser la même stratégie de transation et la "
-"même gestion des connexions."
+"même gestion des connexions. "
#. Tag: term
-#: best_practices.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
-msgstr "Comprendre le flush de <literal>Session</literal>."
+msgstr "Comprenez le flush de <literal>Session</literal> :"
#. Tag: para
-#: best_practices.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
"Performance will be affected if this process occurs too often. You can "
@@ -234,20 +218,18 @@
"De temps en temps la Session synchronise ses états persistants avec la base "
"de données. Les performances seront affectées si ce processus arrive trop "
"souvent. Vous pouvez parfois minimiser les flush non nécessaires en "
-"désactivant le flush automatique ou même en changeant l'ordre des opérations "
-"menées dans une transaction particulière."
+"désactivant le flush automatique ou même en changeant l'ordre des requêtes "
+"et autres opérations effectuées dans une transaction particulière. "
#. Tag: term
-#: best_practices.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr ""
-"Dans une architecture à trois couches, pensez à utiliser "
-"<literal>saveOrUpdate()</literal>."
+"Dans une architecture à trois couches, vous pouvez utilisez des objets "
+"détachés :"
#. Tag: para
-#: best_practices.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
"objects loaded in the session bean to and from the servlet/JSP layer. Use a "
@@ -256,23 +238,21 @@
"database."
msgstr ""
"Quand vous utilisez une architecture à base de servlet / session bean, vous "
-"pourriez passer des objets chargés dans le bean session vers et depuis la "
+"pouvez passer des objets chargés dans le bean session vers et depuis la "
"couche servlet / JSP. Utilisez une nouvelle session pour traiter chaque "
"requête. Utilisez <literal>Session.merge()</literal> ou <literal>Session."
"saveOrUpdate()</literal> pour synchroniser les objets avec la base de "
-"données."
+"données. "
#. Tag: term
-#: best_practices.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr ""
-"Dans une architecture à deux couches, pensez à utiliser la déconnexion de "
-"session."
+"Dans une architecture à deux couches, pensez à utiliser les contextes de "
+"persistance longue :"
#. Tag: para
-#: best_practices.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
"However, it is often necessary to implement long running "
@@ -288,28 +268,26 @@
"stale data."
msgstr ""
"Les transactions de bases de données doivent être aussi courtes que possible "
-"pour une meilleure montée en charge.Cependant, il est souvent nécessaire "
+"pour une meilleure extensibilité. Cependant, il est souvent nécessaire "
"d'implémenter de longues <emphasis>transactions applicatives</emphasis>, une "
"simple unité de travail du point de vue de l'utilisateur. Une transaction "
"applicative peut s'étaler sur plusieurs cycles de requêtes/réponses du "
"client. Il est commun d'utiliser des objets détachés pour implémenter des "
"transactions applicatives. Une alternative, extrêmement appropriée dans une "
-"architecture à 2 couches, est de maintenir un seul contact de persistance "
+"architecture à deux couches, est de maintenir un seul contact de persistance "
"ouvert (session) pour toute la durée de vie de la transaction applicative et "
"simplement se déconnecter de la connexion JDBC à la fin de chaque requête, "
"et se reconnecter au début de la requête suivante. Ne partagez jamais une "
-"seule session avec plus d'une transaction applicative, ou vous travaillerez "
-"avec des données périmées."
+"seule session avec plus d'une transaction applicative, ou bien vous "
+"travaillerez avec des données périmées. "
#. Tag: term
-#: best_practices.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not treat exceptions as recoverable:"
-msgstr "Considérez que les exceptions ne sont pas rattrapables."
+msgstr "Considérez que les exceptions ne sont pas rattrapables :"
#. Tag: para
-#: best_practices.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
"exception occurs, roll back the <literal>Transaction</literal> and close the "
@@ -324,18 +302,17 @@
"<literal>Transaction</literal> et fermer la <literal>Session</literal>. "
"Sinon, Hibernate ne peut garantir l'intégrité des états persistants en "
"mémoire. En particulier, n'utilisez pas <literal>Session.load()</literal> "
-"pour déterminer si une instance avec un identifiant donné existe en base de "
-"données, utilisez <literal>Session.get()</literal> ou un requête."
+"pour déterminer si une instance avec l'identifiant donné existe en base de "
+"données, à la place utilisez <literal>Session.get()</literal> ou une "
+"requête. "
#. Tag: term
-#: best_practices.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer lazy fetching for associations:"
-msgstr "Préférez le chargement tardif des associations."
+msgstr "Préférez le chargement différé des associations :"
#. Tag: para
-#: best_practices.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
"associations to classes that are not likely to be completely held in the "
@@ -348,27 +325,25 @@
"Utilisez le chargement complet avec modération. Utilisez les proxies et les "
"collections chargées tardivement pour la plupart des associations vers des "
"classes qui ne sont pas susceptibles d'être complètement retenues dans le "
-"cache de second niveau. Pour les assocations de classes en cache, où il y a "
-"une extrêmement forte probabilité que l'élément soit en cache, désactivez "
-"explicitement le chargement par jointures ouvertes en utilisant "
-"<literal>outer-join=\"false\"</literal>. Lorsqu'un chargement par jointure "
-"ouverte est approprié pour un cas d'utilisation particulier, utilisez une "
-"requête avec un <literal>left join fetch</literal>."
+"cache de second niveau. Pour les associations de classes en cache, où il y a "
+"une forte probabilité que l'élément soit en cache, désactivez explicitement "
+"le chargement par jointures ouvertes en utilisant <literal>outer-join=\"false"
+"\"</literal>. Lorsqu'un chargement par jointure ouverte est approprié pour "
+"un cas d'utilisation particulier, utilisez une requête avec un <literal>left "
+"join fetch</literal>. "
#. Tag: term
-#: best_practices.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
"Utilisez le pattern <emphasis>d'une ouverture de session dans une vue</"
"emphasis>, ou une <emphasis>phase d'assemblage</emphasis> disciplinée pour "
-"éviter des problèmes avec des données non rapatriées."
+"éviter des problèmes avec des données non rapatriées :"
#. Tag: para
-#: best_practices.xml:201
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
@@ -384,28 +359,28 @@
"requirement of safe transactional data access."
msgstr ""
"Hibernate libère les développeurs de l'écriture fastidieuse des "
-"<emphasis>objets de transfert de données (NdT : Data Transfer Objects)</"
-"emphasis> (DTO). Dans une architecture EJB traditionnelle, les DTOs ont deux "
-"buts : premièrement, ils contournent le problème des \"entity bean\" qui ne "
-"sont pas sérialisables ; deuxièmement, ils définissent implicitement une "
-"phase d'assemblage où toutes les données utilisées par la vue sont "
-"rapatriées et organisées dans les DTOs avant de retourner sous le contrôle "
-"de la couche de présentation. Hibernate élimine le premier but. Pourtant, "
-"vous aurez encore besoin d'une phase d'assemblage (pensez vos méthodes "
-"métier comme ayant un contrat strict avec la couche de présentation à propos "
-"de quelles données sont disponibles dans les objets détachés) à moins que "
-"vous soyez préparés à garder le contexte de persistance (la session) ouvert "
-"Ã travers tout le processus de rendu de la vue."
+"<emphasis>objets de transfert de données </emphasis> (DTO). Dans une "
+"architecture EJB traditionnelle, les DTO ont deux buts : premièrement, ils "
+"contournent le problème des beans entités qui ne sont pas sérialisables ; "
+"deuxièmement, ils définissent implicitement une phase d'assemblage où toutes "
+"les données utilisées par la vue sont rapatriées et organisées dans les DTO "
+"avant de retourner sous le contrôle de la couche de présentation. Hibernate "
+"élimine le premier but. Cependant, vous aurez encore besoin d'une phase "
+"d'assemblage (pensez à vos méthodes métier comme ayant un contrat strict "
+"avec la couche de présentation, en ce qui concerne les données disponibles "
+"dans les objets détachés) à moins que vous soyez préparés à garder le "
+"contexte de persistance (la session) ouvert à travers tout le processus de "
+"rendu de la vue. Ceci ne représente pas une limitation de Hibernate! Au "
+"contraire c'est une exigence fondamentale d'un accès sécurisé aux données "
+"transactionnelles. "
#. Tag: term
-#: best_practices.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
-msgstr "Pensez à abstraite votre logique métier d'Hibernate."
+msgstr "Pensez à abstraire votre logique métier d'Hibernate :"
#. Tag: para
-#: best_practices.xml:217
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
@@ -415,21 +390,19 @@
"appropriate for an application with five tables."
msgstr ""
"Cachez le mécanisme d'accès aux données (Hibernate) derrière une interface. "
-"Combinez les patterns <emphasis>DAO</emphasis> et <emphasis>Thread Local "
+"Combinez les modèles <emphasis>DAO</emphasis> et <emphasis>Thread Local "
"Session</emphasis>. Vous pouvez même avoir quelques classes persistées par "
"du JDBC pur, associées à Hibernate via un <literal>UserType</literal> (ce "
"conseil est valable pour des applications de taille respectables ; il n'est "
-"pas valable pour une application avec cinq tables)."
+"pas valable pour une application avec cinq tables). "
#. Tag: term
-#: best_practices.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not use exotic association mappings:"
-msgstr "N'utilisez pas d'associations de mapping exotiques."
+msgstr "N'utilisez pas d'associations de mapping exotiques :"
#. Tag: para
-#: best_practices.xml:229
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
"the time you need additional information stored in the \"link table\". In "
@@ -438,23 +411,21 @@
"to-one. For this reason, you should proceed cautiously when using any other "
"association style."
msgstr ""
-"De bons cas d'utilisation pour de vraies associations plusieurs-vers-"
-"plusieurs sont rares. La plupart du temps vous avez besoin d'informations "
+"Les utilisations appropriées de vraies associations plusieurs-à -plusieurs "
+"sont rares. La plupart du temps vous avez besoin d'informations "
"additionnelles stockées dans la table d'association. Dans ce cas, il est "
-"préférable d'utiliser deux associations un-vers-plusieurs vers une classe de "
+"préférable d'utiliser deux associations un-à -plusieurs vers une classe de "
"liaisons intermédiaire. En fait, nous pensons que la plupart des "
-"associations sont de type un-vers-plusieurs ou plusieurs-vers-un, vous devez "
-"être très attentifs lorsque vous utilisez autre chose et vous demander si "
-"c'est vraiment nécessaire."
+"associations sont de type un-à -plusieurs ou plusieurs-à -un, vous devez être "
+"très prudent lorsque vous utilisez toute autre association et vous demander "
+"si c'est vraiment nécessaire. "
#. Tag: term
-#: best_practices.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer bidirectional associations:"
-msgstr "Préférez les associations bidirectionnelles."
+msgstr "Préférez les associations bidirectionnelles :"
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
@@ -463,4 +434,4 @@
msgstr ""
"Les associations unidirectionnelles sont plus difficiles à questionner. Dans "
"une grande application, la plupart des associations devraient être "
-"navigables dans les deux directions dans les requêtes."
+"navigables dans les deux directions dans les requêtes. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,56 +1,43 @@
+# translation of collection_mapping.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: collection_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-05 08:54+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: collection_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection mapping"
-msgstr "Mapper une collection"
+msgstr "Mapper une collection "
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
msgstr "Collections persistantes"
#. Tag: para
-#: collection_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
"Hibernate requiert que les champs contenant des collections persistantes "
-"soient déclarés comme des types d'interface, par exemple :"
+"soient déclarés comme des types d'interface, par exemple : "
-#. Tag: programlisting
-#: collection_mapping.xml:39
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:41
-#, fuzzy, no-c-format
-msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
@@ -58,17 +45,15 @@
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
-"L'interface réelle devrait être <literal>java.util.Set</literal>, "
-"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
-"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
-"<literal>java.util.SortedMap</literal> ou ... n'importe quoi d'autre ! (Où "
-"\"n'importe quoi d'autre\" signifie que vous devrez écrire une "
-"implémentation de <literal>org.hibernate.usertype.UserCollectionType</"
-"literal>.)"
+"L'interface réelle peut être <literal>java.util.Set</literal>, <literal>java."
+"util.Collection</literal>, <literal>java.util.List</literal>, <literal>java."
+"util.Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java."
+"util.SortedMap</literal> ou n'importe quoi d'autre ! (Où \"n'importe quoi "
+"d'autre\" signifie que vous devrez écrire une implémentation de <literal>org."
+"hibernate.usertype.UserCollectionType</literal>.)"
#. Tag: para
-#: collection_mapping.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet</literal>. This is the best way to initialize collection "
@@ -78,33 +63,17 @@
"an instance of Hibernate's own implementation of <literal>Set</literal>. Be "
"aware of the following errors:"
msgstr ""
-"Notez comment nous avons initialisé les variables d'instance avec une "
-"instance de <literal>HashSet</literal>. C'est le meilleur moyen pour "
-"initialiser les collections d'instances nouvellement créées (non "
-"persistantes). Quand nous fabriquons l'instance persistante - en appelant "
-"<literal>persist()</literal>, par exemple - Hibernate remplacera réellement "
-"le <literal>HashSet</literal> avec une instance d'une implémentation propre "
-"Ã Hibernate de <literal>Set</literal>. Prenez garde aux erreurs :"
+"Notez comment nous avons initialisé la variable d'instance avec une instance "
+"de <literal>HashSet</literal>. C'est le meilleur moyen pour initialiser les "
+"collections d'instances nouvellement créées (non persistantes). Quand nous "
+"fabriquons l'instance persistante - en appelant <literal>persist()</"
+"literal>, par exemple - Hibernate remplacera réellement le <literal>HashSet</"
+"literal> par une instance d'une implémentation propre à Hibernate de "
+"<literal>Set</literal>. Prenez garde aux erreurs suivantes : "
-#. Tag: programlisting
-#: collection_mapping.xml:60
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:62
-#, fuzzy, no-c-format
-msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
@@ -113,11 +82,10 @@
"Les collections persistantes injectées par Hibernate se comportent de la "
"même manière que <literal>HashMap</literal>, <literal>HashSet</literal>, "
"<literal>TreeMap</literal>, <literal>TreeSet</literal> ou "
-"<literal>ArrayList</literal>, selon le type de l'interface."
+"<literal>ArrayList</literal>, selon le type de l'interface. "
#. Tag: para
-#: collection_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
@@ -128,79 +96,61 @@
"properties do not support null value semantics. Hibernate does not "
"distinguish between a null collection reference and an empty collection."
msgstr ""
-"Les instances des collections ont le comportement habituel des types des "
+"Les instances des collections ont le comportement habituel des types de "
"valeurs. Elles sont automatiquement persistées quand elles sont référencées "
"par un objet persistant et automatiquement effacées quand elles sont "
"déréférencées. Si une collection est passée d'un objet persistant à un "
-"autre, ses éléments pourraient être déplacés d'une table à une autre. Deux "
-"entités ne peuvent pas partager une référence vers une même instance d'une "
+"autre, ses éléments peuvent être déplacés d'une table à une autre. Deux "
+"entités ne peuvent pas partager une référence vers une même instance de "
"collection. Dû au modèle relationnel sous-jacent, les propriétés contenant "
"des collections ne supportent pas la sémantique de la valeur null ; "
-"Hibernate ne distingue pas une référence vers une collection nulle d'une "
-"collection vide."
+"Hibernate ne fait pas de distinction entre une référence de collection nulle "
+"et une collection vide. "
#. Tag: para
-#: collection_mapping.xml:80
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
-"Vous ne devriez pas vous préoccuper trop de ça. Utilisez les collections "
-"persistantes de la même manière que vous utilisez des collections Java "
-"ordinaires. Assurez-vous de comprendre la sémantique des associations "
-"bidirectionnelles (traitée plus loin)."
+"Ne vous en souciez pas trop. Utilisez les collections persistantes de la "
+"même manière que vous utilisez des collections Java ordinaires. Assurez-vous "
+"de comprendre la sémantique des associations bidirectionnelles (traitée plus "
+"loin). "
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
msgstr "Mapper une collection"
#. Tag: para
-#: collection_mapping.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
-"Il y a pas mal de variétés de mappings qui peuvent être générés pour les "
-"collections, couvrant beaucoup des modèles relationnels communs. Nous vous "
-"suggérons d'expérimenter avec l'outil de génération de schéma pour avoir une "
-"idée de comment traduire les différentes déclarations de mapping vers des "
-"table de la base de données."
+"Il y a une grande variété de mappages qui peuvent être générés pour les "
+"collections, couvrant beaucoup de nombreux modèles relationnels communs. "
+"Nous vous suggérons d'expérimenter avec l'outil de génération de schéma pour "
+"cerner comment les différentes déclarations de mappage se traduisent vers "
+"des tables de bases de données. "
#. Tag: para
-#: collection_mapping.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set></literal> element is "
"used for mapping properties of type <literal>Set</literal>."
msgstr ""
-"L'élément de mapping d'Hibernate utilisé pour mapper une collection dépend "
+"L'élément de mappage d'Hibernate utilisé pour mapper une collection dépend "
"du type de l'interface. Par exemple, un élément <literal><set></"
"literal> est utilisé pour mapper des propriétés de type <literal>Set</"
-"literal>."
+"literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -209,72 +159,39 @@
"array></literal> mapping elements. The <literal><map></literal> "
"element is representative:"
msgstr ""
-"à part <literal><set></literal>, il y aussi les éléments de mapping "
+"à part <literal><set></literal>, il y aussi les éléments de mappage "
"<literal><list></literal>, <literal><map></literal>, "
"<literal><bag></literal>, <literal><array></literal> et "
"<literal><primitive-array></literal>. L'élément <literal><map></"
-"literal> est représentatif :"
+"literal> est représentatif : "
-#. Tag: programlisting
-#: collection_mapping.xml:132
-#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the collection property name"
msgstr ""
-"<literal>name</literal> : le nom de la propriété contenant la collection"
+"<literal>name</literal> : le nom de la propriété contenant la collection "
#. Tag: para
-#: collection_mapping.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
"<literal>table</literal> (optionnel - par défaut = nom de la propriété) : le "
-"nom de la table de la collection (non utilisé pour les associations one-to-"
-"many)"
+"nom de la table de la collection (non utilisé pour les associations un-à -"
+"plusieurs) "
#. Tag: para
-#: collection_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
"<literal>schema</literal> (optionnel) : le nom du schéma pour surcharger le "
-"schéma déclaré dans l'élément racine"
+"schéma déclaré dans l'élément racine "
#. Tag: para
-#: collection_mapping.xml:152
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"disables lazy fetching and specifies that the association is always eagerly "
@@ -285,45 +202,41 @@
"<literal>lazy</literal> (optionnel - par défaut = <literal>true</literal>) : "
"peut être utilisé pour désactiver l'initialisation tardive et spécifier que "
"l'association est toujours rapportée, ou pour activer la récupération extra-"
-"paresseuse (NdT : extra-lazy) où la plupart des opérations n'initialisent "
-"pas la collection (approprié pour de très grosses collections)"
+"paresseuse (extra-lazy) où la plupart des opérations n'initialisent pas la "
+"collection (approprié pour de très grosses collections)."
#. Tag: para
-#: collection_mapping.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): marks this collection as the \"inverse\" end of a bidirectional "
"association."
msgstr ""
"<literal>inverse</literal> (optionnel - par défaut = <literal>false</"
-"literal>) : définit cette collection comme l'extrêmité \"inverse\" de "
-"l'association bidirectionnelle"
+"literal>) : définit cette collection comme l'extrémité \"inverse\" de "
+"l'association bidirectionnelle."
#. Tag: para
-#: collection_mapping.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
"enables operations to cascade to child entities."
msgstr ""
"<literal>cascade</literal> (optionnel - par défaut = <literal>none</"
-"literal>) : active les opérations de cascade vers les entités filles"
+"literal>) : active les opérations de cascade vers les entités filles."
#. Tag: para
-#: collection_mapping.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
"<literal>natural</literal> sort order or a given comparator class."
msgstr ""
"<literal>sort</literal> (optionnel) : spécifie une collection triée via un "
"ordre de tri <literal>naturel</literal>, ou via une classe comparateur "
-"donnée (implémentant Comparator)"
+"donnée."
#. Tag: para
-#: collection_mapping.xml:179
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>Map</"
@@ -333,11 +246,10 @@
"<literal>order-by</literal> (optionnel, seulement à partir du JDK1.4) : "
"spécifie une colonne de table (ou des colonnes) qui définit l'ordre "
"d'itération de <literal>Map</literal>, <literal>Set</literal> ou Bag, avec "
-"en option <literal>asc</literal> ou <literal>desc</literal>"
+"en option <literal>asc</literal> ou <literal>desc</literal>."
#. Tag: para
-#: collection_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition that is used when retrieving or removing "
@@ -347,11 +259,10 @@
"<literal>where</literal> (optionnel) : spécifie une condition SQL arbitraire "
"<literal>WHERE</literal> à utiliser au chargement ou à la suppression d'une "
"collection (utile si la collection ne doit contenir qu'un sous ensemble des "
-"données disponibles)"
+"données disponibles)."
#. Tag: para
-#: collection_mapping.xml:193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
"chooses between outer-join fetching, fetching by sequential select, and "
@@ -360,34 +271,31 @@
"<literal>fetch</literal> (optionnel, par défaut = <literal>select</"
"literal>) : à choisir entre récupération par jointures externes, "
"récupération par selects séquentiels, et récupération par sous-selects "
-"séquentiels"
+"séquentiels."
#. Tag: para
-#: collection_mapping.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
"<literal>batch-size</literal> (optionnel, par défaut = <literal>1</"
-"literal>) : une taille de batch (batch size) utilisée pour charger plusieurs "
-"instances de cette collection en initialisation tardive"
+"literal>) : une \"taille de batch\" utilisée pour charger plusieurs "
+"instances de cette collection."
#. Tag: para
-#: collection_mapping.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the collection property "
"value."
msgstr ""
"<literal>access</literal> (optionnel - par défaut = <literal>property</"
-"literal>) : La stratégie qu'Hibernate doit utiliser pour accéder à la valeur "
-"de la propriété"
+"literal>) : la stratégie que Hibernate doit utiliser pour accéder à la "
+"valeur de la propriété."
#. Tag: para
-#: collection_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that changes to the state of the collection results in "
@@ -395,13 +303,13 @@
"may want to disable this setting."
msgstr ""
"<literal>optimistic-lock</literal> (optionnel - par défaut = <literal>true</"
-"literal>) : spécifie que changer l'état de la collection entraîne "
-"l'incrémentation de la version appartenant à l'entité (Pour une association "
-"un vers plusieurs, il est souvent raisonnable de désactiver ce paramètre)"
+"literal>) : spécifie que changer l'état des résultats de la collection "
+"entraîne l'incrémentation de la version appartenant à l'entité (Pour une "
+"association un-à -plusieurs, il est souvent raisonnable de désactiver ce "
+"paramètre)."
#. Tag: para
-#: collection_mapping.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"a value of <literal>false</literal> specifies that the elements of the "
@@ -411,17 +319,15 @@
"<literal>mutable</literal> (optionnel - par défaut = <literal>true</"
"literal>) : une valeur à <literal>false</literal> spécifie que les éléments "
"de la collection ne changent jamais (une optimisation mineure dans certains "
-"cas)"
+"cas)."
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
-msgstr "Les clefs étrangères d'une collection"
+msgstr "Les clés étrangères d'une collection"
#. Tag: para
-#: collection_mapping.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
"the entity that owns the collection. This foreign key is referred to as the "
@@ -429,49 +335,34 @@
"table. The collection key column is mapped by the <literal><key></"
"literal> element."
msgstr ""
-"Les instances d'une collection sont distinguées dans la base par la clef "
-"étrangère de l'entité qui possède la collection. Cette clef étrangère est "
-"référencée comme la(es) <emphasis>colonne(s) de la clef de la collection</"
-"emphasis> de la table de la collection. La colonne de la clef de la "
+"Les instances d'une collection sont distinguées dans la base de données par "
+"la clé étrangère de l'entité qui possède la collection. Cette clé étrangère "
+"est référencée comme la(es) <emphasis>colonne(s) de la clé de la collection</"
+"emphasis> de la table de la collection. La colonne de la clé de la "
"collection est mappée par l'élément <literal><key></literal>."
#. Tag: para
-#: collection_mapping.xml:240
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
"collections, this is implied. For unidirectional one-to-many associations, "
"the foreign key column is nullable by default, so you may need to specify "
"<literal>not-null=\"true\"</literal>."
msgstr ""
-"Il peut y avoir une contrainte de nullité sur la colonne de la clef "
-"étrangère. Pour les associations unidirectionnelles un vers plusieurs, la "
-"colonne de la clef étrangère peut être nulle par défaut, donc vous pourriez "
-"avoir besoin de spécifier <literal>not-null=\"true\"</literal>."
+"Il peut y avoir une contrainte de nullité sur la colonne de la clé "
+"étrangère. Pour les associations unidirectionnelles un-à -plusieurs, la "
+"colonne de la clé étrangère peut être nulle par défaut, donc vous pourriez "
+"avoir besoin de spécifier <literal>not-null=\"true\"</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:247
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
msgstr ""
-"La contraite de la clef étrangère peut utiliser <literal>ON DELETE CASCADE</"
-"literal>."
+"La contraite de la clé étrangère peut utiliser <literal>ON DELETE CASCADE</"
+"literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
@@ -481,14 +372,12 @@
"<literal><key></literal>."
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
msgstr "Les éléments d'une collection"
#. Tag: para
-#: collection_mapping.xml:265
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and references to other entities. This is an "
@@ -498,17 +387,17 @@
"latter case, only the \"link\" between the two objects is considered to be a "
"state held by the collection."
msgstr ""
-"Les collections peuvent contenir la plupart des autres types Hibernate, dont "
-"tous les types basiques, les types utilisateur, les composants, et bien sûr, "
-"les références vers d'autres entités. C'est une distinction importante : un "
-"objet dans une collection pourrait être géré avec une sémantique de \"valeur"
-"\" (sa durée de vie dépend complètement du propriétaire de la collection) ou "
-"il pourrait avoir une référence vers une autre entité, avec sa propre durée "
-"de vie. Dans le dernier cas, seul le \"lien\" entre les 2 objets est "
-"considéré être l'état retenu par la collection."
+"Les collections peuvent contenir la plupart des autres types Hibernate, y "
+"compris tous les types basiques, les types utilisateur, les composants, et "
+"bien sûr, les références vers d'autres entités. C'est une distinction "
+"importante. Un objet dans une collection pourrait être géré avec une "
+"sémantique de \"valeur\" (sa durée de vie dépend complètement du "
+"propriétaire de la collection) ou il pourrait avoir une référence vers une "
+"autre entité, avec sa propre durée de vie. Dans le dernier cas, seul le "
+"\"lien\" entre les deux objets est considéré être l'état retenu par la "
+"collection. "
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -523,18 +412,16 @@
"<literal><element></literal> ou <literal><composite-element></"
"literal>, ou dans le cas des références d'entité, avec <literal><one-to-"
"many></literal> ou <literal><many-to-many></literal>. Les deux "
-"premiers mappent des éléments avec un sémantique de valeur, les deux "
+"premiers mappent des éléments avec une sémantique de valeur, les deux "
"suivants sont utilisés pour mapper des associations d'entité."
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
msgstr "Collections indexées"
#. Tag: para
-#: collection_mapping.xml:288
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column</emphasis> in the collection table. An index column "
@@ -548,70 +435,91 @@
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
-"Tous les mappings de collection, exceptés ceux avec les sémantiques "
-"d'ensemble (NdT : set) et de sac (NdT : bag), ont besoin d'une "
-"<emphasis>colonne d'index</emphasis> dans la table de la collection - une "
-"colonne qui mappe un index de tableau, ou un index de <literal>List</"
-"literal>, ou une clef de <literal>Map</literal>. L'index d'une <literal>Map</"
-"literal> peut être n'importe quel type basique, mappé avec <literal><map-"
-"key></literal>, ça peut être une référence d'entité mappée avec "
-"<literal><map-key-many-to-many></literal>, ou ça peut être un type "
-"composé, mappé avec <literal><composite-map-key></literal>. L'index "
-"d'un tableau ou d'une liste est toujours de type <literal>integer</literal> "
-"et est mappé en utilisant l'élément <literal><list-index></literal>. "
-"Les colonnes mappées contiennent des entiers séquentiels (numérotés à partir "
-"de zéro par défaut)."
+"Tous les mappages de collection, exceptés ceux avec les sémantiques "
+"d'ensemble (set) et de sac (bag), ont besoin d'une <emphasis>colonne "
+"d'index</emphasis> dans la table de la collection - une colonne qui mappe un "
+"index de tableau, ou un index de <literal>List</literal>, ou une clé de "
+"<literal>Map</literal>. L'index d'une <literal>Map</literal> peut être "
+"n'importe quel type basique, mappé avec <literal><map-key></literal>, "
+"ou peut être une référence d'entité mappée avec <literal><map-key-many-to-"
+"many></literal>, ou peut être un type composé, mappé avec <literal><"
+"composite-map-key></literal>. L'index d'un tableau ou d'une liste est "
+"toujours de type <literal>integer</literal> et est mappé en utilisant "
+"l'élément <literal><list-index></literal>. Les colonnes mappées "
+"contiennent des entiers séquentiels (numérotés à partir de zéro par défaut). "
-#. Tag: sect2
-#: collection_mapping.xml:299
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
msgstr ""
+"<literal>column_name</literal> (champ requis): lenom de la lolonne qui "
+"contient les valeurs 'index' de la collection."
#. Tag: para
-#: collection_mapping.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
+msgstr ""
+"<literal>base</literal> (optionnel - par défaut = <literal>0</literal>) : la "
+"valeur de la colonne 'index' qui correspond au premier élément de la liste "
+"ou de la table."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr ""
+"<literal>colonne</literal> (optionnel) : le nom de la colonne qui contient "
+"les valeurs 'index' de la collection."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
+msgstr ""
+"<literal>formula</literal> (optionnel): formule SQL utilisée pour évaluer la "
+"clé de la mappe."
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>type</literal> (requis) : le type de clés de mappe."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr ""
+"<literal>colonne</literal> (optionnel) : le nom de la colonne de clés "
+"étrangères pour la collection de valeurs 'index'."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+"<literal>formula</literal> (optionnel): formule SQ utilisée pour évaluer la "
+"clé étrangère d'une clé de mappe."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr ""
+"<literal>class</literal> (requis) : le nom de la classe utilisée en tant que "
+"clé de mappe."
+
+#. Tag: para
+#, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
@@ -621,260 +529,227 @@
"Si votre table n'a pas de colonne d'index, et que vous souhaitez tout de "
"même utiliser <literal>List</literal> comme type de propriété, vous devriez "
"mapper la propriété comme un <emphasis><bag></emphasis> Hibernate. Un "
-"sac (NdT : bag) ne garde pas son ordre quand il est récupéré de la base de "
-"données, mais il peut être optionnellement trié ou ordonné."
+"sac (bag) ne garde pas son ordre quand il est récupéré de la base de "
+"données, mais il peut être optionnellement trié ou ordonné. "
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
-msgstr "Collections de valeurs et associations plusieurs-vers-plusieurs"
+msgstr "Collections de valeurs et associations plusieurs-Ã -plusieurs"
#. Tag: para
-#: collection_mapping.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table</emphasis> with a foreign key column or columns, "
"<emphasis>collection element column</emphasis> or columns, and possibly an "
"index column or columns."
msgstr ""
-"N'importe quelle collection de valeurs ou association plusieurs-vers-"
-"plusieurs requiert une <emphasis>table de collection</emphasis> avec une"
-"(des) colonne(s) de clef étrangère, une(des) <emphasis>colonne(s) d'élément "
-"de la collection</emphasis> ou des colonnes et possiblement une(des) colonne"
-"(s) d'index."
+"Toute collection de valeurs ou association plusieurs-Ã -plusieurs requiert "
+"une <emphasis>table de collection</emphasis> avec une(des) colonne(s) de clé "
+"étrangère, une(des) <emphasis>colonne(s) d'élément de la collection</"
+"emphasis> ou des colonnes et éventuellement une(des) colonne(s) d'index. "
#. Tag: para
-#: collection_mapping.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
"For example:"
msgstr ""
"Pour une collection de valeurs, nous utilisons la balise <literal><"
-"element></literal>."
+"element></literal>. Par exemple :"
-#. Tag: sect2
-#: collection_mapping.xml:401
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
-"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
-"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
-"enables outer-join or sequential select fetching for this association. This "
-"is a special case; for full eager fetching in a single <literal>SELECT</"
-"literal> of an entity and its many-to-many relationships to other entities, "
-"you would enable <literal>join</literal> fetching,not only of the collection "
-"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"collection element values."
msgstr ""
+"<literal>colonne</literal> (optionnel) : le nom de la colonne qui contient "
+"les valeurs des éléments de collection."
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element."
msgstr ""
+"<literal>formula</literal> (optionnel) : formule SQL utilisée pour évaluer "
+"l'élément."
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
-msgid "A set of strings:"
+msgid "<literal>type</literal> (required): the type of the collection element."
+msgstr "<literal>type</literal> (requis) : le type d'élément de collection."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
msgstr ""
+"Une association <emphasis>many-to-many</emphasis> est spécifiée en utilisant "
+"l'élément <literal><many-to-many></literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
msgstr ""
+"<literal>colonne</literal> (optionnel) : le nom de la colonne de clés "
+"étrangères des éléments."
#. Tag: para
-#: collection_mapping.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"A bag containing integers with an iteration order determined by the "
-"<literal>order-by</literal> attribute:"
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
msgstr ""
-"Un bag contenant des entiers (avec un ordre d'itération déterminé par "
-"l'attribut <literal>order-by</literal>) :"
+"<literal>formula</literal> (optionnel): formule SQL utilisée pour évaluer la "
+"valeur des clés étrangères des éléments."
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal> (requis) : le nom de la classe associée."
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
+"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
+"enables outer-join or sequential select fetching for this association. This "
+"is a special case; for full eager fetching in a single <literal>SELECT</"
+"literal> of an entity and its many-to-many relationships to other entities, "
+"you would enable <literal>join</literal> fetching,not only of the collection "
+"itself, but also with this attribute on the <literal><many-to-many></"
+"literal> nested element."
msgstr ""
+"<literal>fetch</literal> (optionnel - par défaut <literal>join</literal>): "
+"permet la récupération par jointures externes ou bien par selects "
+"séquentiels pour cette association. Il s'agit d'un cas particulier de "
+"récupération. Pour que la récupération soit toujours rapportée en un seul "
+"<literal>SELECT</literal> d'entité ou à partir de ses relations many-to-many "
+"à d'autres entités, vous devrez activer la récupération <literal>join</"
+"literal>, non seulement pour la collection elle-même, mais aussi avec cet "
+"attribut qui se trouve sur l'élément <literal><many-to-many></literal>."
#. Tag: para
-#: collection_mapping.xml:522
-#, fuzzy, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
+#, no-c-format
+msgid ""
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
msgstr ""
-"Un tableau d'entités - dans ce cas, une association plusieurs-vers-"
-"plusieurs :"
+"<literal>unique</literal> (optionnel): permet la génération DDL d'une seule "
+"contrainte pour la colonne de la clé étrangère. Cela transforme la "
+"muticiplicité de l'association en one-to-many."
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
msgstr ""
+"<literal>not-found</literal> (optionnel - par défaut <literal>exception</"
+"literal>) : spécifie comment les clés étrangères cachées qui référencent des "
+"lignes manquantes seront gérées : <literal>ignore</literal> traitera une "
+"ligne manquante comme une association nulle."
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
-msgstr "Une map de chaînes de caractères vers des dates :"
+msgid ""
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
+msgstr ""
+"<literal>entity-name</literal> (optionnel) : le nom de l'entité de la classe "
+"associée, comme une alternative à <literal>class</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
msgstr ""
+"<literal>property-ref</literal> (optionnel): nom d'une propriété de la "
+"classe associée associée à une clé étrangère. Si elle n'est pas précisée, la "
+"clé primaire de la classe associée sera alors utilisée."
#. Tag: para
-#: collection_mapping.xml:534
-#, fuzzy, no-c-format
-msgid "A list of components (this is discussed in the next chapter):"
-msgstr "Une liste de composants (discute dans le prochain chapitre) :"
+#, no-c-format
+msgid "Here are some examples."
+msgstr "Voici quelques exemples :"
-#. Tag: programlisting
-#: collection_mapping.xml:538
+#. Tag: para
#, no-c-format
+msgid "A set of strings:"
+msgstr "Un ensemble de chaînes de caractères :"
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
+"A bag containing integers with an iteration order determined by the "
+"<literal>order-by</literal> attribute:"
msgstr ""
+"Un sac contenant des entiers (avec un ordre d'itération déterminé par "
+"l'attribut <literal>order-by</literal>) : "
+#. Tag: para
+#, no-c-format
+msgid "An array of entities, in this case, a many-to-many association:"
+msgstr ""
+"Un tableau d'entités - dans ce cas, une association plusieurs-à -plusieurs : "
+
+#. Tag: para
+#, no-c-format
+msgid "A map from string indices to dates:"
+msgstr "Une map de chaînes de caractères vers des dates :"
+
+#. Tag: para
+#, no-c-format
+msgid "A list of components (this is discussed in the next chapter):"
+msgstr "Une liste de composants (traité dans le prochain chapitre) : "
+
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
-msgstr "Association un-vers-plusieurs"
+msgstr "Associations un-Ã -plusieurs"
#. Tag: para
-#: collection_mapping.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
msgstr ""
-"Une <emphasis>association un vers plusieurs</emphasis> lie les tables de "
-"deux classes par une clef étrangère, sans l'intervention d'une table de "
-"collection. Ce mapping perd certaines sémantiques des collections Java "
-"normales :"
+"Une <emphasis>association un-Ã -plusieurs</emphasis> lie les tables de deux "
+"classes par une clé étrangère, sans l'intervention d'une table de "
+"collection. Ce mappage perd certaines sémantiques des collections Java "
+"normales : "
#. Tag: para
-#: collection_mapping.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
msgstr ""
"Une instance de la classe de l'entité contenue ne peut pas appartenir à plus "
-"d'une instance de la collection"
+"d'une instance de la collection."
#. Tag: para
-#: collection_mapping.xml:559
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
msgstr ""
-"Une instance de la classe de l'entité contenue ne peut pas apparaître plus "
-"plus d'une valeur d'index de la collection"
+"Une instance de la classe de l'entité contenue peut ne pas apparaître à plus "
+"plus d'une valeur d'index de la collection."
#. Tag: para
-#: collection_mapping.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
"requires the existence of a foreign key column and possibly an index column "
@@ -882,33 +757,13 @@
"literal> tag indicates that this is a one-to-many association."
msgstr ""
"Une association de <literal>Product</literal> vers <literal>Part</literal> "
-"requiert l'existence d'une clef étrangère et possiblement une colonne "
+"requiert l'existence d'une clé étrangère et éventuellement une colonne "
"d'index pour la table <literal>Part</literal>. Une balise <literal><one-"
-"to-many></literal> indique que c'est une association un vers plusieurs."
+"to-many></literal> indique que c'est une association un-Ã -plusieurs. "
-#. Tag: programlisting
-#: collection_mapping.xml:579
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:582
-#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr "<literal>class</literal> (requis) : le nom de la classe associée"
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
-msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
"be handled. <literal>ignore</literal> will treat a missing row as a null "
@@ -917,37 +772,21 @@
"<literal>not-found</literal> (optionnel - par défaut <literal>exception</"
"literal>) : spécifie comment les identifiants cachés qui référencent des "
"lignes manquantes seront gérés : <literal>ignore</literal> traitera une "
-"ligne manquante comme une association nulle"
+"ligne manquante comme une association nulle."
#. Tag: para
-#: collection_mapping.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (optionnel) : le nom de l'entité de la classe "
-"associée, comme une alternative à <literal>class</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (optionnel) : le nom de l'entité de la classe "
-"associée, comme une alternative à <literal>class</literal>."
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
msgstr ""
"Notez que l'élément <literal><one-to-many></literal> n'a pas besoin de "
"déclarer de colonnes. Il n'est pas non plus nécessaire de spécifier le nom "
-"de la table nulle part."
+"de la <literal>table</literal> Ã aucun endroit."
#. Tag: para
-#: collection_mapping.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
"association is declared <literal>NOT NULL</literal>, you must declare the "
@@ -956,17 +795,16 @@
"mapping marked <literal>inverse=\"true\"</literal>. See the discussion of "
"bidirectional associations later in this chapter for more information."
msgstr ""
-"<emphasis>Note très importante :</emphasis> si la colonne de la clef d'une "
+"<emphasis>Note très importante :</emphasis> si la colonne de la clé d'une "
"association <literal><one-to-many></literal> est déclarée <literal>NOT "
-"NULL</literal>, vous devez déclarer le mapping de <literal><key></"
-"literal> avec <literal>not-null=\"true\"</literal> ou <emphasis>utiliser une "
-"association bidirectionnelle</emphasis> avec le mapping de la collection "
-"marqué <literal>inverse=\"true\"</literal>. Voir la discussion sur les "
-"associations bidirectionnelles plus tard dans ce chapitre."
+"NULL</literal>, vous devez déclarer le mappage de <literal><key></"
+"literal> avec <literal>not-null=\"true\"</literal> ou <emphasis> utiliser "
+"une association bidirectionnelle </emphasis> avec le mappage de la "
+"collection marqué <literal>inverse=\"true\"</literal>. Voir la discussion "
+"sur les associations bidirectionnelles plus tard dans ce chapitre. "
#. Tag: para
-#: collection_mapping.xml:619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
"name, where <literal>partName</literal> is a persistent property of "
@@ -974,34 +812,19 @@
msgstr ""
"Cet exemple montre une map d'entités <literal>Part</literal> par nom (où "
"<literal>partName</literal> est une propriété persistante de <literal>Part</"
-"literal>). Notez l'utilisation d'un index basé sur une formule."
+"literal>). Notez l'utilisation d'un index basé sur une formule :"
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
-msgstr "Mappings de collection avancés"
+msgstr "Mappages de collection avancés"
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr "Collections triées"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
@@ -1010,28 +833,9 @@
msgstr ""
"Hibernate supporte des collections implémentant <literal>java.util."
"SortedMap</literal> et <literal>java.util.SortedSet</literal>. Vous devez "
-"spécifier un comparateur dans le fichier de mapping :"
+"spécifier un comparateur dans le fichier de mappage :"
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
@@ -1043,7 +847,6 @@
"classe implémentant <literal>java.util.Comparator</literal>."
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
@@ -1053,8 +856,7 @@
"TreeSet</literal> ou <literal>java.util.TreeMap</literal>."
#. Tag: para
-#: collection_mapping.xml:654
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by</literal> attribute of <literal>set</literal>, "
@@ -1064,191 +866,113 @@
"performs the ordering in the SQL query and not in the memory."
msgstr ""
"Si vous voulez que la base de données elle-même ordonne les éléments de la "
-"collection, utilisez l'attribut <literal>order-by</literal> des mappings "
+"collection, utilisez l'attribut <literal>order-by</literal> des mappages "
"<literal>set</literal>, <literal>bag</literal> ou <literal>map</literal>. "
"Cette solution est seulement disponible à partir du JDK 1.4 (c'est "
"implémenté en utilisant <literal>LinkedHashSet</literal> ou "
"<literal>LinkedHashMap</literal>). Ceci exécute le tri dans la requête SQL, "
-"pas en mémoire."
+"pas en mémoire. "
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Note"
#. Tag: para
-#: collection_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
"Notez que la valeur de l'attribut <literal>order-by</literal> est un ordre "
-"SQL, pas un ordre HQL !"
+"SQL, et non pas un ordre HQL."
#. Tag: para
-#: collection_mapping.xml:673
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter()</literal>:"
msgstr ""
"Les associations peuvent même être triées sur des critères arbitraires à "
-"l'exécution en utilisant un <literal>filter()</literal> de collection."
+"l'exécution en utilisant un <literal>filter()</literal> de collection :"
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr "Associations bidirectionnelles"
#. Tag: para
-#: collection_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
-"Une <emphasis>association bidirectionnelle</emphasis> permet une navigation "
-"Ã partir de la \"fin\" de l'association. Deux sortes d'associations "
-"bidirectionnelles sont supportées : <placeholder-1/>"
+"Une <emphasis>association bidirectionnelle</emphasis> permet la navigation à "
+"partir des deux extrémités de l'association. Deux types d'associations "
+"bidirectionnelles sont supportées : "
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
-msgstr "un-vers-plusieurs (NdT : one-to-many)"
+msgstr "un-Ã -plusieurs (one-to-many)"
#. Tag: para
-#: collection_mapping.xml:694
-#, fuzzy, no-c-format
+#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
-msgstr "ensemble ou sac à une extrémité, une seule valeur à l'autre"
+msgstr "ensemble ou sac à une extrémité, une seule valeur à l'autre "
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
-msgstr "plusieurs-vers-plusieurs (NdT : many-to-many)"
+msgstr "plusieurs-Ã -plusieurs "
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
msgstr "ensemble ou sac aux deux extrémités"
#. Tag: para
-#: collection_mapping.xml:711
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
-"Vous pouvez spécifier une association plusieurs-vers-plusieurs "
-"bidirectionnelle simplement en mappant deux associations plusieurs-vers-"
-"plusieurs vers la même table de base de données et en déclarant une "
-"extrémité comme <emphasis>inverse</emphasis> (celle de votre choix, mais ça "
-"ne peut pas être une collection indexée)."
+"Vous pouvez spécifier une association bidirectionnelle plusieurs-à -plusieurs "
+"simplement en mappant deux associations plusieurs-à -plusieurs vers la même "
+"table de base de données et en déclarant une extrémité comme "
+"<emphasis>inverse</emphasis> (celle de votre choix, mais pas une collection "
+"indexée). "
#. Tag: para
-#: collection_mapping.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
-"Voici un exemple d'association bidirectionnelle plusieurs-vers-plusieurs ; "
+"Voici un exemple d'association bidirectionnelle plusieurs-Ã -plusieurs ; "
"chaque catégorie peut avoir plusieurs objets et chaque objet peut être dans "
-"plusieurs catégories :"
+"plusieurs catégories : "
-#. Tag: programlisting
-#: collection_mapping.xml:723
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:725
-#, fuzzy, no-c-format
-msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
"emphasis> persisted. This means that Hibernate has two representations in "
"memory for every bidirectional association: one link from A to B and another "
"link from B to A. This is easier to understand if you think about the Java "
"object model and how a many-to-many relationship in Javais created:"
msgstr ""
-"Les changements faits uniquement sur l'extréminté inverse de l'association "
+"Les changements faits uniquement sur l'extrémité inverse de l'association "
"<emphasis>ne sont pas</emphasis> persistés. Ceci signifie qu'Hibernate a "
-"deux représentations en mémoire pour chaque association bidirectionnelles, "
-"un lien de A vers B et un autre de B vers A. C'est plus facile à comprendre "
-"si vous pensez au modèle objet de Java et comment nous créons une relation "
-"plusieurs-vers-plusieurs en Java :"
+"deux représentations en mémoire pour chaque association bidirectionnelle, un "
+"lien de A vers B et un autre de B vers A. Ceci est plus facile à comprendre "
+"si vous pensez au modèle objet de Java et à la façon dont nous créons une "
+"relation plusieurs-Ã -plusieurs dans Java : "
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
@@ -1258,61 +982,34 @@
"mémoire dans la base de données."
#. Tag: para
-#: collection_mapping.xml:739
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
"many association to the same table column(s) as a many-to-one association "
"and declaring the many-valued end <literal>inverse=\"true\"</literal>."
msgstr ""
-"Vous pouvez définir une association un-vers-plusieurs bidirectionnelle en "
-"mappant une association un-vers-plusieurs vers la(es) même(s) colonne(s) de "
-"table qu'une association plusieurs-vers-un et en déclarant l'extrémité pluri-"
-"valuée <literal>inverse=\"true\"</literal>."
+"Vous pouvez définir une association bidirectionnelle un-à -plusieurs en "
+"mappant une association un-à -plusieurs vers la(es) même(s) colonne(s) de "
+"table qu'une association plusieurs-à -un et en déclarant l'extrémité pluri-"
+"valuée <literal>inverse=\"true\"</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:745
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:747
-#, fuzzy, no-c-format
-msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
"Mapper une extrémité d'une association avec <literal>inverse=\"true\"</"
"literal> n'affecte pas l'opération de cascades, ce sont des concepts "
-"orthogonaux !"
+"orthogonaux."
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "Associations bidirectionnelles avec des collections indexées"
#. Tag: para
-#: collection_mapping.xml:756
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <literal><map></literal>, requires special "
@@ -1322,162 +1019,77 @@
msgstr ""
"Une association bidirectionnelle où une extrémité est représentée comme une "
"<literal><list></literal> ou une <literal><map></literal> "
-"requiert une considération spéciale. Si il y a une propriété de la classe "
+"requiert une considération spéciale. S'il y a une propriété de la classe "
"enfant qui mappe la colonne de l'index, pas de problème, nous pouvons "
-"continuer à utiliser <literal>inverse=\"true\"</literal> sur le mapping de "
-"la collection :"
+"continuer à utiliser <literal>inverse=\"true\"</literal> sur le mappage de "
+"la collection : "
-#. Tag: programlisting
-#: collection_mapping.xml:763
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:765
-#, fuzzy, no-c-format
-msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
"case, you cannot map the collection <literal>inverse=\"true\"</literal>. "
"Instead, you could use the following mapping:"
msgstr ""
-"Mais, si il n'y a pas de telle prorpriété sur la classe enfant, nous ne "
-"pouvons pas penser à l'association comme vraiment bidirectionnelle (il y a "
+"Mais, si il n'y a pas de telle propriété sur la classe enfant, nous ne "
+"pouvons pas considérer l'association comme vraiment bidirectionnelle (il y a "
"des informations disponibles à une extrémité de l'association qui ne sont "
"pas disponibles à l'autre extrémité). Dans ce cas, nous ne pouvons pas "
-"mapper la collection <literal>inverse=\"true\"</literal>. Ã la place, nous "
-"pourrions utiliser le mapping suivant :"
+"mapper la collection <literal>inverse=\"true\"</literal>. Par contre, nous "
+"utiliserons le mappage suivant : "
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
msgstr ""
-"Notez que dans ce mapping, l'extrémité de l'association contenant la "
-"collection est responsable des mises à jour de la clef étrangère. à faire : "
-"cela entraîne-t-il réellement des expressions updates inutiles ?"
+"Notez que dans ce mappage, l'extrémité de l'association contenant la "
+"collection est responsable des mise à jour de la clé étrangère. <!-- TODO: "
+"Does this really result in some unnecessary update statements? -->"
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "Associations ternaires"
#. Tag: para
-#: collection_mapping.xml:784
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
"Il y a trois approches possibles pour mapper une association ternaire. L'une "
-"est d'utiliser une <literal>Map</literal> avec une association en tant "
-"qu'index :"
+"est d'utiliser une <literal>Map</literal> avec une association comme son "
+"index : "
-#. Tag: programlisting
-#: collection_mapping.xml:789
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:793
-#, fuzzy, no-c-format
-msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
"Une seconde approche est simplement de remodeler l'association comme une "
-"classe d'entité. C'est l'approche la plus commune."
+"classe d'entité. C'est l'approche la plus commune. "
#. Tag: para
-#: collection_mapping.xml:798
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
msgstr ""
"Une alternative finale est d'utiliser des éléments composites, dont nous "
-"discuterons plus tard."
+"discuterons plus tard. "
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
-msgstr "Utiliser un <literal><idbag></literal>"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
+msgstr "<literal>Using an <idbag></literal>"
#. Tag: para
-#: collection_mapping.xml:807
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
"shown previously all map to tables with composite keys, even though it has "
@@ -1488,60 +1100,44 @@
"feature that allows you to map many-to-many associations and collections of "
"values to a table with a surrogate key."
msgstr ""
-"Si vous embrassez pleinement notre vue que les clefs composées sont une "
-"mauvaise chose et que des entités devraient avoir des identifiants "
-"artificiels (des clefs subrogées), alors vous pourriez trouver un peu "
-"curieux que les associations plusieurs-vers-plusieurs et les collections de "
-"valeurs que nous avons montré jusqu'ici mappent toutes des tables avec des "
-"clefs composées ! Maintenant, ce point est assez discutable ; une table "
-"d'association pure ne semble pas beaucoup bénéficier d'une clef subrogée "
-"(bien qu'une collection de valeur composées le <emphasis>pourrait</"
-"emphasis>). Néanmoins, Hibernate fournit une foncionnalité qui vous permet "
-"de mapper des associations plusieurs-vers-plusieurs et des collections de "
-"valeurs vers une table avec une clef subrogée."
+"Si vous êtes bien d'accord avec nous sur le fait que les clés composées sont "
+"une mauvaise chose et que les entités devraient avoir des identifiants "
+"artificiels (des clés subrogées), vous pourrez trouver un peu curieux que "
+"les associations plusieurs-Ã -plusieurs et les collections de valeurs que "
+"nous avons montrées jusqu'ici, mappent toutes des tables avec des clés "
+"composées ! Il est vrai que ce point est ambigu ; une table d'association "
+"pure ne semble pas tirer avantage d'une clé subrogée (bien qu'une collection "
+"de valeur composées le <emphasis>pourrait</emphasis>). Néanmoins, Hibernate "
+"fournit une fonctionnalité qui vous permet de mapper des associations "
+"plusieurs-Ã -plusieurs et des collections de valeurs vers une table avec une "
+"clé subrogée. "
#. Tag: para
-#: collection_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
"literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
"L'élément <literal><idbag></literal> vous laisse mapper une "
"<literal>List</literal> (ou une <literal>Collection</literal>) avec une "
-"sémantique de sac."
+"sémantique de sac. Par exemple :"
-#. Tag: programlisting
-#: collection_mapping.xml:822
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:824
-#, fuzzy, no-c-format
-msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
-"Comme vous pouvez voir, un <literal><idbag></literal> a un généréteur "
-"d'id artificiel, comme une classe d'entité ! Une clef subrogée différente "
-"est assignée à chaque ligne de la collection. Cependant, Hibernate ne "
-"fournit pas de mécanisme pour découvrir la valeur d'une clef subrogée d'une "
-"ligne particulière."
+"Comme vous pouvez le constater, un <literal><idbag></literal> a un "
+"générateur d'id artificiel, exactement comme une classe d'entité ! Une clé "
+"subrogée différente est assignée à chaque ligne de la collection. Cependant, "
+"Hibernate ne fournit pas de mécanisme pour découvrir la valeur d'une clé "
+"subrogée d'une ligne particulière. "
#. Tag: para
-#: collection_mapping.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
"regular <literal><bag></literal>. Hibernate can locate individual rows "
@@ -1552,10 +1148,9 @@
"literal> sont <emphasis>bien</emphasis> meilleures qu'un <literal><bag>"
"</literal> ordinaire ! Hibernate peut localiser des lignes individuelles "
"efficacement et les mettre à jour ou les effacer individuellement, comme une "
-"liste, une map ou un ensemble."
+"liste, une map ou un ensemble. "
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
@@ -1564,420 +1159,91 @@
msgstr ""
"Dans l'implémentation actuelle, la stratégie de la génération de "
"l'identifiant <literal>native</literal> n'est pas supportée pour les "
-"identifiants de collection <literal><idbag></literal>."
+"identifiants de collection <literal><idbag></literal>. "
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr "Exemples de collections"
#. Tag: para
-#: collection_mapping.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This section covers collection examples."
-msgstr "Exemples de collections"
+msgstr "Exemples de collections "
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
+"La classe suivante possède une collection d'instances <literal>Child</"
+"literal>(filles) :"
-#. Tag: programlisting
-#: collection_mapping.xml:871
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:873
-#, fuzzy, no-c-format
-msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
-"a une collection d'instances de <literal>Child</literal>. Si chaque enfant a "
-"au plus un parent, le mapping le plus naturel est une association un-vers-"
-"plusieurs :"
+"Si chaque instance fille a au plus un parent, le mappage le plus naturel est "
+"une association un-Ã -plusieurs :"
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "Ceci mappe les définitions de tables suivantes :"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
"many association:"
msgstr ""
-"Si le parent est <emphasis>requis</emphasis>, utilisez une association un-"
-"vers-plusieurs unidirectionnelle :"
+"Si le parent est <emphasis>requis</emphasis>, utilisez une association "
+"bidirectionnelle un-Ã -plusieurs : "
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
-msgstr "Notez la contrainte <literal>NOT NULL</literal> :"
+msgstr "Notez la contrainte <literal>NOT NULL</literal> : "
-#. Tag: programlisting
-#: collection_mapping.xml:898
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:900
-#, fuzzy, no-c-format
-msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL</literal> constraint on the <literal><key></"
"literal> mapping:"
msgstr ""
"Alternativement, si vous insistez absolument pour que cette association soit "
"unidirectionnelle, vous pouvez déclarer la contrainte <literal>NOT NULL</"
-"literal> sur le mapping <literal><key></literal> :"
+"literal> sur le mappage <literal><key></literal> : "
-#. Tag: programlisting
-#: collection_mapping.xml:906
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:908
-#, fuzzy, no-c-format
-msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
"association is appropriate:"
msgstr ""
-"D'un autre côté, si un enfant pouvait avoir plusieurs parent, une "
-"association plusieurs-vers-plusieurs est plus appropriée :"
+"D'autre part, si un enfant peut avoir plusieurs parents, une association "
+"plusieurs-à -plusieurs est plus appropriée : "
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr "Définitions des tables :"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
-"Pour plus d'exemples et une revue complète du mapping de la relation parent/"
-"enfant, voir see <xref linkend=\"example-parentchild\"/>."
+"Pour plus d'exemples et une revue complète du mappage de la relation parent/"
+"enfant, consultez le <xref linkend=\"example-parentchild\" />. "
#. Tag: para
-#: collection_mapping.xml:926
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr ""
-"Des mappings d'association plus exotiques sont possibles, nous cataloguerons "
-"toutes les possibilités dans le prochain chapitre."
-
-#~ msgid "Collection Mapping"
-#~ msgstr "Mapping des collections"
-
-#~ msgid "Some examples, first, a set of strings:"
-#~ msgstr "Quelques exemples, d'abord, un ensemble de chaînes de caractères :"
-
-#~ msgid ""
-#~ "The previous sections are pretty confusing. So lets look at an example. "
-#~ "This class:"
-#~ msgstr ""
-#~ "Les sections précédentes sont assez confuses. Donc prenons un exemple. "
-#~ "Cette classe :"
-
-#~ msgid ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
-#~ msgstr ""
-#~ "<literal>nom_de_colonne</literal> (requis) : le nom de la colonne "
-#~ "contenant les valeurs de l'index de la collection"
-
-#~ msgid ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
-#~ msgstr ""
-#~ "<literal>base</literal> (optionnel, par défaut = <literal>0</literal>) : "
-#~ "la valeur de la colonne de l'index qui correspond au premier élément de "
-#~ "la liste ou du tableau"
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optionnel) : le nom de la colonne contenant "
-#~ "les valeurs de l'index de la collection"
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optionnel) : une formule SQL utilisée pour "
-#~ "évaluer la clef de la map"
-
-#~ msgid "<literal>type</literal> (reguired): The type of the map keys."
-#~ msgstr "<literal>type</literal> (reguis): le type des clefs de la map"
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optionnel) : le nom de la colonne de la clef "
-#~ "étrangère pour les valeurs de l'index de la collection"
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optionnel) : une formulre SQL utilisée pour "
-#~ "évaluer la clef étrangère de la clef de la map"
-
-#~ msgid ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
-#~ msgstr ""
-#~ "<literal>class</literal> (requis): la classe de l'entité utilisée comme "
-#~ "clef de la map"
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optionnel) : le nom de la colonne contenant "
-#~ "les valeurs de l'élément de la collection"
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optionnel) : une formule SQL utilisée pour "
-#~ "évaluer l'élément"
-
-#~ msgid ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-#~ msgstr ""
-#~ "<literal>type</literal> (requis) : le type de l'élément de la collection"
-
-#~ msgid ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
-#~ msgstr ""
-#~ "Une <emphasis>association plusieurs-vers-plusieurs</emphasis> est "
-#~ "spécifiée en utilisant l'élément <literal><many-to-many></literal>."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
-#~ msgstr ""
-#~ "<literal>column</literal> (optionnel) : le nom de la colonne de la clef "
-#~ "étrangère de l'élément"
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optionnel) : une formule SQL utilisée pour "
-#~ "évaluer la valeur de la clef étrangère de l'élément"
-
-#~ msgid ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
-#~ msgstr ""
-#~ "<literal>fetch</literal> (optionnel - par défaut <literal>join</"
-#~ "literal>) : active les récupérations par jointures externes ou par "
-#~ "selects séquentiels pour cette association. C'est un cas spécial ; pour "
-#~ "une récupération complète sans attente (dans un seul <literal>SELECT</"
-#~ "literal>) d'une entité et de ses relations plusieurs-vers-plusieurs vers "
-#~ "d'autres entités, vous devriez activer la récupération <literal>join</"
-#~ "literal> non seulement sur la collection elle-même, mais aussi avec cet "
-#~ "attribut sur l'élément imbriqué <literal><many-to-many></literal>."
-
-#~ msgid ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
-#~ msgstr ""
-#~ "<literal>unique</literal> (optionnel) : activer la génération DDL d'une "
-#~ "contrainte d'unicité pour la colonne de la clef étrangère. Ãa rend la "
-#~ "pluralité de l'association effectivement un-vers-plusieurs."
-
-#~ msgid ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
-#~ msgstr ""
-#~ "<literal>not-found</literal> (optionnel - par défaut <literal>exception</"
-#~ "literal>) : spécifie comment les clefs étrangères qui référencent la "
-#~ "lignes manquantes seront gérées : <literal>ignore</literal> traitera une "
-#~ "ligne manquante comme une association nulle."
-
-#~ msgid ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
-#~ msgstr ""
-#~ "<literal>property-ref</literal> (optionnel) : le nom d'une propriété de "
-#~ "la classe associée qui est jointe à cette clef étrangère. Si non "
-#~ "spécifiée, la clef primaire de la classe associée est utilisée."
+"Des mappages d'association plus exotiques sont possibles, nous cataloguerons "
+"toutes les possibilités dans le prochain chapitre. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,166 +1,86 @@
+# translation of component_mapping.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: component_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-11-11 08:51+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
-msgstr "Mapping de composants"
+msgstr "Mappage de composants"
#. Tag: para
-#: component_mapping.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
-"La notion de <emphasis>composants</emphasis> est réutilisé dans différents "
-"contextes, avec différents objectifs, à travers Hibernate."
+"La notion de <emphasis>composants</emphasis> est réutilisée dans différents "
+"contextes, avec différents objectifs, à travers Hibernate. "
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
-msgstr "Objects dépendants"
+msgstr "Objets dépendants"
#. Tag: para
-#: component_mapping.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
"notion of composition and not to architecture-level components. For example, "
"you can model a person like this:"
msgstr ""
-"Le composant est un objet inclu dans un autre qui est sauvegardé comme une "
-"valeur, et non pas comme une entité. Le composant fait référence à la notion "
-"(au sens objet) de composition (et non pas de composant au sens "
-"d'architecture de composants). Par exemple on pourrait modélisé l'objet "
-"personne de cette façon:"
+"Le composant est un objet inclus dans un autre objet, sauvegardé en tant que "
+"type valeur, et non en tant que référence entité. Le terme \"composant\" "
+"fait référence à la notion (au sens objet) de composition et non pas de "
+"composant au sens d'architecture de composants. Par exemple, on pourrait "
+"modéliser l'objet personne de la façon suivante :"
-#. Tag: programlisting
-#: component_mapping.xml:45
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:49
-#, fuzzy, no-c-format
-msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
"<literal>Person</literal>. <literal>Name</literal> defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
"interfaces or identifier properties."
msgstr ""
-"Maintenant <literal>Name</literal> peut-être sauvegardé comme un composant "
-"de <literal>Person</literal>. Remarquer que <literal>Name</literal> définit "
-"des methodes d'accès et de modification pour ses propriétés persistantes, "
-"mais il n'a pas besoin des interfaces ou des propriétés d'identification "
-"( par exemple getId() ) qui sont propres aux entités."
+"Maintenant <literal>Name</literal> pourra être sauvegardé en tant que "
+"composant de <literal>Person</literal>. Remarquez que <literal>Name</"
+"literal> définit des méthodes getter et setter pour ses propriétés "
+"persistantes, mais ne doit déclarer aucune interface ou propriété "
+"d'identification."
#. Tag: para
-#: component_mapping.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Our Hibernate mapping would look like this:"
-msgstr "Nous serions alors amené à mapper ce composant de cette façon:"
+msgstr "Dans Hibernate le mappage du composant serait :"
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
msgstr ""
-"La table person aurai les colonnes <literal>pid</literal>, "
+"La table \"person\" aurait les colonnes <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
-"literal> and <literal>last</literal>."
+"literal> et <literal>last</literal>."
#. Tag: para
-#: component_mapping.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
@@ -171,109 +91,71 @@
"is suitable for most purposes."
msgstr ""
"Comme tous les types valeurs, les composants ne supportent pas les "
-"références partagés. En d'autres mots, deux instances de person peuvent "
+"références partagées. En d'autres termes, deux instances de person peuvent "
"avoir un même nom, mais ces noms sont indépendants, ils peuvent être "
"identiques si on les compare par valeur mais ils représentent deux objets "
-"distincts en mémoire. La notion de nullité pour un composant est "
+"distincts en mémoire. La sémantique de la valeur null d'un composant est "
"<emphasis>ad hoc</emphasis>. Quand il recharge l'objet qui contient le "
-"composant, Hibernate supposera que si tous les champs du composants sont "
-"nuls alors le composant sera positionné à la valeur null. Ce choix "
-"programmatif devrait être satisfaisant dans la plupart des cas."
+"composant, Hibernate suppose que si toutes les colonnes de composants sont "
+"nulles, le composant est positionné à la valeur null. Ce choix programmatif "
+"devrait être satisfaisant dans la plupart des cas. "
#. Tag: para
-#: component_mapping.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
"<emphasis>not</emphasis> be considered an exotic usage. Hibernate is "
"intended to support a fine-grained object model."
msgstr ""
-"Les propriétés d'un composant peuvent être de tous les types qu'Hibernate "
-"supporte habituellement (collections, many-to-one associations, autres "
-"composants, etc). Les composants inclus ne doivent <emphasis>pas</emphasis> "
-"être vus comme quelque chose d'exotique. Hibernate a été conçu pour "
-"supporter un modèle objet très granulaire."
+"Les propriétés d'un composant peuvent être de tous les types habituellement "
+"supportés par Hibernate (collections, associations plusieurs-à -un, autres "
+"composants, etc). Les composants imbriqués ne doivent <emphasis>pas</"
+"emphasis> être vus comme quelque chose d'exotique. Hibernate a été conçu "
+"pour supporter un modèle d'objet finement granulé. "
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"Le <literal><component></literal> peut inclure dans la liste de ses "
-"propriétés une référence au <literal><parent></literal> conteneur."
+"L'élément <literal><component></literal> permet de déclarer un sous-"
+"élément <literal><parent></literal> qui associe une propriété de la "
+"classe composant comme une référence arrière vers l'entité contenante."
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
msgstr "Collection d'objets dépendants"
#. Tag: para
-#: component_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
"<literal>Name</literal>). Declare your component collection by replacing the "
"<literal><element></literal> tag with a <literal><composite-"
"element></literal> tag:"
msgstr ""
-"Les collections d'objets dépendants sont supportés (exemple: un tableau de "
-"type <literal>Name</literal>). Déclarer la collection de composants en "
-"remplaçant le tag <literal><element></literal> par le tag <literal><"
-"composite-element></literal>."
+"Les collections d'objets dépendants sont supportées (exemple: un tableau de "
+"type <literal>Name</literal>). Déclarez votre collection de composants en "
+"remplaçant la balise <literal><element></literal> par la balise "
+"<literal><composite-element></literal> :"
-#. Tag: programlisting
-#: component_mapping.xml:105
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:108
-#, fuzzy, no-c-format
-msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
"important to implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> correctly."
msgstr ""
-"Remarque: Si vous définissez un <literal>Set</literal> d'élément composite, "
-"il est très important d'implémenter la méthode <literal>equals()</literal> "
-"et <literal>hashCode()</literal> correctement."
+"Remarque : si vous définissez un <literal>Set</literal> d'éléments "
+"composites, il est très important d'implémenter les méthodes <literal>equals"
+"()</literal> et <literal>hashCode()</literal> correctement. "
#. Tag: para
-#: component_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
@@ -283,19 +165,17 @@
"but be aware that even though the Java model is the same, the relational "
"model and persistence semantics are still slightly different."
msgstr ""
-"Les élements composite peuvent aussi contenir des composants mais pas des "
+"Les éléments composites peuvent aussi contenir des composants mais pas des "
"collections. Si votre élément composite contient aussi des composants, "
-"utilisez l'élément <literal><nested-composite-element></literal> . Une "
-"collections de composants qui ccontiennent eux-mêmes des composants est un "
-"cas très exotique. A ce stade demandez-vous si une association un-à -"
-"plusieurs ne serait pas plus approprié. Essayez de re remodeler votre "
-"élément composite comme une entité ( Dans ce cas même si le modèle Java est "
-"le même la logique de persitence et de relation sont tout de même "
-"différentes)"
+"utilisez la balise <literal><nested-composite-element></literal>. Une "
+"collection de composants qui contiennent eux-mêmes des composants est un cas "
+"très exotique. A ce stade, demandez-vous si une association un-à -plusieurs "
+"ne serait pas plus appropriée. Essayez de remodeler votre élément composite "
+"comme une entité - remarquez que si le modèle Java est le même, toutefois le "
+"modèle relationnel et la sémantique de persistance diffèrent quelque peu. "
#. Tag: para
-#: component_mapping.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set></literal>. There is no separate primary key "
@@ -305,19 +185,18 @@
"element or choose a <literal><list></literal>, <literal><map></"
"literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
-"Remarque, le mapping d'éléments composites ne supporte pas la nullité des "
-"propriétés lorsqu'on utilise un <literal><set></literal>. Hibernate "
-"lorsqu'il supprime un objet utilise chaque colonne pour identifier un objet "
-"(on ne peut pas utiliser des clés primaires distinctes dans une table "
-"d'éléments composites), ce qui n'est pas possible avec des valeurs nulles. "
-"Vous devez donc choisir d'interdire la nullité des propriétés d'un élément "
-"composite ou choisir un autre type de collection comme : <literal><"
-"list></literal>, <literal><map></literal>, <literal><bag></"
-"literal> ou <literal><idbag></literal>."
+"Remarquez que le mappage d'éléments composites ne supporte pas la nullité "
+"des propriétés lorsqu'on utilise un <literal><set></literal>. "
+"Hibernate lorsqu'il supprime un objet, utilise chaque colonne pour "
+"identifier un objet (il n'y a pas de colonne distincte de clés primaires "
+"dans la table d'éléments composites), ce qui n'est pas possible avec des "
+"valeurs nulles. Vous devez donc choisir d'interdire la nullité des "
+"propriétés d'un élément composite ou choisir un autre type de collection "
+"comme : <literal><list></literal>, <literal><map></literal>, "
+"<literal><bag></literal> ou <literal><idbag></literal>. "
#. Tag: para
-#: component_mapping.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one></literal> element. This mapping allows you to "
@@ -328,163 +207,118 @@
"<literal>quantity</literal> are properties of the association:"
msgstr ""
"Un cas particulier d'élément composite est un élément composite qui inclut "
-"un élément <literal><many-to-one></literal>. Un mapping comme celui-ci "
-"vous permet d'associer les colonnes d'une table d'association plusieurs à "
-"plusieurs (many-to-many) à la classse de l'élément composite. L'exemple "
-"suivant est une association plusieurs à plusieurs de <literal>Order</"
-"literal> Ã <literal>Item</literal> Ã <literal>purchaseDate</literal>, "
-"<literal>price</literal> et <literal>quantity</literal> sont des propriétés "
-"de l'association."
+"un élément imbriqué <literal><many-to-one></literal>. Un mappage comme "
+"celui-ci vous permet d'associer des colonnes supplémentaires d'une table "
+"d'association plusieurs à plusieurs à la classe de l'élément composite. "
+"L'exemple suivant est une association plusieurs à plusieurs de "
+"<literal>Order</literal> à <literal>Item</literal> où <literal>purchaseDate</"
+"literal>, <literal>price</literal> et <literal>quantity</literal> sont des "
+"propriétés de l'association :"
-#. Tag: programlisting
-#: component_mapping.xml:148
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:150
-#, fuzzy, no-c-format
-msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase</literal> can be in the "
"set of an <literal>Order</literal>, but it cannot be referenced by the "
"<literal>Item</literal> at the same time."
msgstr ""
-"Bien sûr, il ne peut pas y avoir de référence à l'achat (purchase) depuis "
-"l'article (item), pour pouvoir naviguer de façon bidirectionnelle dans "
+"Par ailleurs, on ne peut évidemment pas faire référence à l'achat "
+"(purchase), pour pouvoir naviguer de façon bidirectionnelle dans "
"l'association. N'oubliez pas que les composants sont de type valeurs et "
-"n'autorise pas les références partagées."
+"n'autorisent pas les références partagées. Un <literal>Purchase</literal> "
+"unique peut être dans le set d'un <literal>Order</literal>, mais ne peut pas "
+"être référencé par <literal>Item</literal> simultanément."
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
-msgstr "Même les associations ternaires ou quaternaires sont possibles:"
-
-#. Tag: programlisting
-#: component_mapping.xml:160
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
msgstr ""
+"Même les associations ternaires, quaternaires ou autres sont possibles :"
#. Tag: para
-#: component_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
msgstr ""
-"Les éléments composites peuvent apparaître dans les requêtes en utilisant la "
-"même syntaxe que associations"
+"Des éléments composites peuvent apparaître dans les requêtes en utilisant la "
+"même syntaxe que les associations vers d'autres entités. "
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
-msgstr "Utiliser les composants comme index de map"
+msgstr "Les composants en tant qu'indices de Map"
#. Tag: para
-#: component_mapping.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
"component class as the key of a <literal>Map</literal>. Ensure that you "
"override <literal>hashCode()</literal> and <literal>equals()</literal> "
"correctly on the component class."
msgstr ""
-"l'élément <literal><composite-map-key></literal> vous permet "
-"d'utiliser une classe de composant comme indice de <literal>Map</literal>. "
-"Assurez-vous d'avoir surdéfini <literal>hashCode()</literal> et "
-"<literal>equals()</literal> dans la classe du composant."
+"L'élément <literal><composite-map-key></literal> vous permet de mapper "
+"une classe de composant comme indice d'une <literal>Map</literal>. Assurez-"
+"vous de surcharger correctement <literal>hashCode()</literal> et "
+"<literal>equals()</literal> dans la classe du composant. "
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
-msgstr "Utiliser un composant comme identifiant"
+msgstr "Les composants en tant qu'identifiants composites"
#. Tag: para
-#: component_mapping.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
-"Vous pouvez utiliser un composant comme identifiant d'une entité. Mais pour "
-"cela la classe du composant doit respecter certaines règles."
+"Vous pouvez utiliser un composant comme identifiant d'une classe entité. à "
+"cet effet, votre classe de composant doit respecter certaines exigences : "
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
msgstr "Elle doit implémenter <literal>java.io.Serializable</literal>."
#. Tag: para
-#: component_mapping.xml:195
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> consistently with the database's notion of composite key equality."
msgstr ""
"Elle doit redéfinir <literal>equals()</literal> et <literal>hashCode()</"
-"literal>, de façon cohérente avec le fait qu'elle définit une clé composite "
-"dans la base de données."
+"literal>, de façon cohérente avec la notion d'égalité de clé composite de la "
+"base de données. "
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Remarque"
#. Tag: para
-#: component_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
-"Remarque: avec hibernate3, la seconde règle n'est plus absolument necessaire "
-"mais faîtes le quand même."
+"Avec Hibernate3, la seconde exigence n'est plus absolument nécessaire, "
+"néanmoins continuez de l'effectuer."
#. Tag: para
-#: component_mapping.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
"Vous ne pouvez pas utiliser de <literal>IdentifierGenerator</literal> pour "
-"générer une clé composite, l'application devra définir elle même ses propres "
-"identifiants."
+"générer des clés composites, par contre l'application doit assigner ses "
+"propres identifiants. "
#. Tag: para
-#: component_mapping.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
"<literal><key-property></literal> elements, in place of the usual "
@@ -492,183 +326,82 @@
"<literal>OrderLine</literal> class has a primary key that depends upon the "
"(composite) primary key of <literal>Order</literal>."
msgstr ""
-"Utiliser l'élément <literal><composite-id></literal> (en incluant "
-"l'élément <literal><key-property></literal>) à la place de l'habituel "
-"déclaration <literal><id></literal>. Par exemple la classe "
-"<literal>OrderLine</literal> qui dépend de la clé primaire (composite) de "
-"<literal>Order</literal>."
+"Utiliser la balise <literal><composite-id></literal> (avec les "
+"éléments imbriqués <literal><key-property></literal>) à la place de "
+"l'habituel déclaration <literal><id></literal>. Par exemple, la classe "
+"<literal>OrderLine</literal> possède une clé primaire qui dépend de la clé "
+"primaire (composite) de <literal>Order</literal>. "
-#. Tag: programlisting
-#: component_mapping.xml:224
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-"\n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-"\n"
-" <property name=\"name\"/>\n"
-"\n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:226
-#, fuzzy, no-c-format
-msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-"Maintenant toutes clés étrangères référençant la table <literal>OrderLine</"
-"literal> devra aussi être composite. Vous devez en tenir compte lorsque vous "
-"écrivez vos mapping d'association pour les autres classes. Une association à "
-"<literal>OrderLine</literal> devrait être mappé de la façon suivante :"
+"Toutes les clés étrangères référençant la table <literal>OrderLine</literal> "
+"sont également composites. Vous devez en tenir compte lorsque vous écrivez "
+"vos mappage d'association pour les autres classes. Une association à "
+"<literal>OrderLine</literal> sera mappée de la façon suivante : "
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
"<literal>column</literal> attribute everywhere. Using the <literal>column</"
"literal> element just gives more declaration options, which are mostly "
"useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
+"Remarquez que la balise <literal><column></literal> est une "
+"alternative à l'attribut <literal>column</literal> que l'on utilise partout."
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
"literal> also uses the composite foreign key:"
msgstr ""
-"Une association <literal>plusieurs-Ã -plusieurs</literal> (many-to-many) Ã "
-"<literal>OrderLine</literal> utilisera aussi une clé étrangère composite:"
+"Une association <literal>plusieurs-Ã -plusieurs</literal> Ã "
+"<literal>OrderLine</literal> utilisera aussi une clé étrangère composite :"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
"would use:"
msgstr ""
-"La collection des <literal>OrderLine</literal>s dans <literal>Order</"
-"literal> utilisera:"
+"La collection des <literal>OrderLine</literal> s dans <literal>Order</"
+"literal> utilisera : "
-#. Tag: programlisting
-#: component_mapping.xml:256
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:258
-#, fuzzy, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
msgstr ""
-"(L'élément <literal><one-to-many></literal>, comme d'habitude, ne "
-"déclare pas de colonne.)"
+"Comme d'habitude, l'élément <literal><one-to-many></literal> ne "
+"déclare pas de colonne."
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
-"Si <literal>OrderLine</literal> lui-même possède une collection, celle-ci "
-"aura aussi une clé composite étrangère."
+"Si <literal>OrderLine</literal> lui-même possède une collection, il "
+"possédera de même une clé composite étrangère."
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
-msgstr "Composant Dynamique"
+msgstr "Les composants dynamiques"
#. Tag: para
-#: component_mapping.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
-msgstr "Vous pouvez même mapper une propriété de type <literal>Map</literal>:"
-
-#. Tag: programlisting
-#: component_mapping.xml:278
-#, no-c-format
-msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
msgstr ""
+"Vous pouvez également mapper une propriété de type <literal>Map</literal> :"
#. Tag: para
-#: component_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
"identical to <literal><component></literal>. The advantage of this "
@@ -679,19 +412,378 @@
"via the <literal>Configuration</literal> object."
msgstr ""
"La sémantique de l'association à un <literal><dynamic-component></"
-"literal> est identique à celle que l'on utilise pour les composants. "
-"L'avantage de ce type de mapping est qu'il pemet de déterminer les "
-"véritables propriétés du bean au moment su déploiement en éditant simplement "
-"le document de mapping. La manipulation du document de mapping pendant "
-"l'execution de l'application est aussi possible en utilisant un parser DOM. "
-"Il ya même mieux, vous pouvez accéder (et changer) le metamodel de "
-"configuration d'hibernate en utilisant l'objet <literal>Configuration</"
-"literal>"
+"literal> est identique à celle que l'on utilise pour le <literal><"
+"component></literal>. L'avantage de ce type de mappage est qu'il permet "
+"de déterminer les véritables propriétés du bean au moment du déploiement, en "
+"éditant simplement le document de mappage. La manipulation du document de "
+"mappage pendant l'exécution de l'application est aussi possible en utilisant "
+"un parser DOM. Il y a même mieux, vous pouvez accéder (et changer) le "
+"métamodèle de configuration-temps de Hibernate en utilisant l'objet "
+"<literal>Configuration</literal>."
#~ msgid ""
-#~ "(Note that the <literal><column></literal> tag is an alternative to "
-#~ "the <literal>column</literal> attribute everywhere.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "(Remarque: l'élément <literal><column></literal> est une "
-#~ "alternative à l'attribut <literal>column</literal> que l'on utilise "
-#~ "partout.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of configuration.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: configuration\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:05+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
msgstr "Configuration"
#. Tag: para
-#: configuration.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
@@ -27,23 +31,21 @@
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
-"Parce qu'Hibernate est conçu pour fonctionner dans différents "
-"environnements, il existe beaucoup de paramètres de configuration. "
-"Heureusement, la plupart ont des valeurs par défaut appropriées et la "
-"distribution d'Hibernate contient un exemple de fichier <literal>hibernate."
-"properties</literal> dans le répertoire <literal>etc/</literal> qui montre "
-"les différentes options. Vous n'avez qu'à placer ce fichier dans votre "
-"classpath et à l'adapter."
+"Hibernate est conçu pour fonctionner dans de nombreux environnements , c'est "
+"pourquoi il existe beaucoup de paramètres de configuration. Heureusement, la "
+"plupart ont des valeurs par défaut appropriées et la Hibernate inclut un "
+"fichier d'exemples <literal>hibernate.properties</literal> dans le "
+"répertoire <literal>etc/</literal> qui fournit les différentes options. "
+"Vous n'avez qu'à placer ce fichier dans votre classpath et à l'adapter à vos "
+"besoins."
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
msgstr "Configuration par programmation"
#. Tag: para
-#: configuration.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
"represents an entire set of mappings of an application's Java types to an "
@@ -52,14 +54,13 @@
"interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
"Une instance de <literal>org.hibernate.cfg.Configuration</literal> "
-"représente un ensemble de mappings des classes Java d'une application vers "
+"représente un ensemble de mappages des classes Java d'une application vers "
"la base de données SQL. La <literal>Configuration</literal> est utilisée "
"pour construire un objet (immuable) <literal>SessionFactory</literal>. Les "
-"mappings sont constitués d'un ensemble de fichiers de mapping XML."
+"mappages sont constitués d'un ensemble de fichiers de mappage XML. "
#. Tag: para
-#: configuration.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
"instance by instantiating it directly and specifying XML mapping documents. "
@@ -68,107 +69,68 @@
msgstr ""
"Vous pouvez obtenir une instance de <literal>Configuration</literal> en "
"l'instanciant directement et en spécifiant la liste des documents XML de "
-"mapping. Si les fichiers de mapping sont dans le classpath, vous pouvez le "
-"faire à l'aide de la méthode <literal>addResource()</literal> :"
+"mappage. Si les fichiers de mappage sont dans le classpath, vous pouvez "
+"utiliser la méthode <literal>addResource()</literal> : "
-#. Tag: programlisting
-#: configuration.xml:55
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:57
-#, fuzzy, no-c-format
-msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
-"Une alternative (parfois meilleure) est de spécifier les classes mappées et "
-"de laisser Hibernate trouver les documents de mapping pour vous :"
+"Une solution alternative consiste à spécifier la classe mappée et à donner à "
+"Hibernate la possibilité de trouver les documents de mappage pour vous :"
-#. Tag: programlisting
-#: configuration.xml:62
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:64
-#, fuzzy, no-c-format
-msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
-"Hibernate va rechercher les fichiers de mappings <literal>/org/hibernate/"
+"Hibernate va rechercher les fichiers de mappages <literal>/org/hibernate/"
"auction/Item.hbm.xml</literal> et <literal>/org/hibernate/auction/Bid.hbm."
"xml</literal> dans le classpath. Cette approche élimine les noms de fichiers "
-"en dur."
+"en dur. "
#. Tag: para
-#: configuration.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
"specify configuration properties. For example:"
msgstr ""
"Une <literal>Configuration</literal> vous permet également de préciser des "
-"propriétés de configuration :"
+"propriétés de configuration. Par exemple :"
-#. Tag: programlisting
-#: configuration.xml:75
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:77
-#, fuzzy, no-c-format
-msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
msgstr ""
"Ce n'est pas le seul moyen de passer des propriétés de configuration à "
-"Hibernate. Les différentes options sont :"
+"Hibernate. Les différentes options sont : "
#. Tag: para
-#: configuration.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
"<literal>Configuration.setProperties()</literal>."
msgstr ""
"Passer une instance de <literal>java.util.Properties</literal> Ã "
-"<literal>Configuration.setProperties()</literal>."
+"<literal>Configuration.setProperties()</literal>. "
#. Tag: para
-#: configuration.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
"directory of the classpath."
msgstr ""
"Placer <literal>hibernate.properties</literal> dans un répertoire racine du "
-"classpath"
+"chemin de classe."
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
@@ -178,44 +140,40 @@
"<literal>java -Dproperty=value</literal>."
#. Tag: para
-#: configuration.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
"Inclure des éléments <literal><property></literal> dans le fichier "
-"<literal>hibernate.cfg.xml</literal> (voir plus loin)."
+"<literal>hibernate.cfg.xml</literal> (voir plus loin). "
#. Tag: para
-#: configuration.xml:107
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
"is the easiest approach."
msgstr ""
-"L'utilisation d'<literal>hibernate.properties</literal> est l'approche la "
-"plus simple si vous voulez démarrer rapidement"
+"Si vous souhaitez démarrer rapidement, <filename>hibernate.properties</"
+"filename> est l'approche la plus facile."
#. Tag: para
-#: configuration.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory</"
"literal> is created."
msgstr ""
-"La <literal>Configuration</literal> est un objet de démarrage qui sera "
-"supprimé une fois qu'une <literal>SessionFactory</literal> aura été créée."
+"<classname>org.hibernate.cfg.Configuration</classname> est un objet de "
+"démarrage qui sera supprimé une fois qu'une <literal>SessionFactory</"
+"literal> aura été créée."
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
msgstr "Obtenir une SessionFactory"
#. Tag: para
-#: configuration.xml:121
#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
@@ -223,19 +181,12 @@
"<interfacename>org.hibernate.Session</interfacename> instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
-"Une fois que tous les mappings ont été parsés par la <literal>Configuration</"
+"Une fois que tous les mappages ont été parsés par la <literal>Configuration</"
"literal>, l'application doit obtenir une fabrique d'instances de "
"<literal>Session</literal>. Cette fabrique sera partagée entre tous les "
-"threads de l'application :"
+"threads de l'application : "
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
@@ -244,47 +195,37 @@
msgstr ""
"Hibernate permet à votre application d'instancier plus d'une "
"<literal>SessionFactory</literal>. Cela est pratique lorsque vous utilisez "
-"plus d'une base de données."
+"plus d'une base de données. "
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
-msgstr "Connexions JDBC"
+msgstr "Connexions JDBC "
#. Tag: para
-#: configuration.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
"interfacename> create and pool JDBC connections for you. If you take this "
"approach, opening a <interfacename>org.hibernate.Session</interfacename> is "
"as simple as:"
msgstr ""
-"Habituellement, vous voulez que la <literal>SessionFactory</literal> crée "
-"les connexions JDBC et les mette dans un pool pour vous. Si vous suivez "
-"cette approche, ouvrir une <literal>Session</literal> est aussi simple que :"
+"Il est conseillé que <interfacename>org.hibernate.SessionFactory</"
+"interfacename> crée les connexions JDBC et les mette dans un pool pour vous. "
+"Si vous suivez cette approche, ouvrir une <interfacename>org.hibernate."
+"Session</interfacename> est aussi simple que :"
-#. Tag: programlisting
-#: configuration.xml:146
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:148
-#, fuzzy, no-c-format
-msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
-"Dès que vous ferez quelquechose qui requiert un accès à la base de données, "
-"une connexion JDBC sera récupérée dans le pool."
+"Dès que vous initierez une action qui requiert un accès à la base de "
+"données, une connexion JDBC sera récupérée dans le pool."
#. Tag: para
-#: configuration.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
@@ -292,136 +233,89 @@
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
-"Pour faire cela, il faut passer les propriétés de la connexion JDBC à "
-"Hibernate. Tous les noms des propriétés Hibernate et leur signification sont "
-"définies dans la classe <literal>org.hibernate.cfg.Environment</literal>. "
-"Nous allons maintenant décrire les paramètres de configuration des "
-"connexions JDBC les plus importants."
+"à cet effet, il faut passer les propriétés de la connexion JDBC à Hibernate. "
+"Tous les noms des propriétés Hibernate et leur signification sont définies "
+"dans la classe <literal>org.hibernate.cfg.Environment</literal>. Nous allons "
+"maintenant décrire les paramètres de configuration des connexions JDBC les "
+"plus importants. "
#. Tag: para
-#: configuration.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
"DriverManager</classname> if you set the following properties:"
msgstr ""
"Hibernate obtiendra des connexions (et les mettra dans un pool) en utilisant "
"<literal>java.sql.DriverManager</literal> si vous positionnez les paramètres "
-"de la manière suivante :"
+"de la manière suivante : "
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
-msgstr "Propriétés JDBC d'Hibernate"
+msgstr "Propriétés JDBC de Hibernate"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:548 configuration.xml:743 configuration.xml:850
-#: configuration.xml:938
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property name"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom d'une propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Nom de la propriété"
+msgstr "Nom de la propriété"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:549 configuration.xml:744 configuration.xml:851
-#: configuration.xml:939
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Purpose"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Fonction"
+msgstr "Fonction"
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
+msgstr "<property>hibernate.connection.driver_class</property>"
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
-msgstr "Classe du driver jdbc"
+msgid "<emphasis>JDBC driver class</emphasis>"
+msgstr "<emphasis>Classe de pilote JDBC</emphasis>"
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
+msgstr "<property>hibernate.connection.url</property>"
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
-msgstr "URL jdbc"
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr "<emphasis>JDBC URL</emphasis>"
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
+msgstr "<property>hibernate.connection.username</property>"
-#. Tag: emphasis
-#: configuration.xml:197
+#. Tag: entry
#, no-c-format
-msgid "database user"
-msgstr "utilisateur de la base de données"
+msgid "<emphasis>database user</emphasis>"
+msgstr "<emphasis>utilisateur de la base de données</emphasis>"
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
+msgstr "<property>hibernate.connection.password</property>"
-#. Tag: emphasis
-#: configuration.xml:205
+#. Tag: entry
#, no-c-format
-msgid "database user password"
-msgstr "mot de passe de la base de données"
+msgid "<emphasis>database user password</emphasis>"
+msgstr "<emphasis>mot de passe de l'utilisateur de base de données</emphasis>"
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
-msgstr "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
+msgstr "<property>hibernate.connection.pool_size</property>"
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
-msgstr "nombre maximum de connexions dans le pool"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
+msgstr "<emphasis>nombre maximum de connexions dans le pool</emphasis>"
#. Tag: para
-#: configuration.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
@@ -431,19 +325,18 @@
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
-"L'algorithme natif de pool de connexions d'Hibernate est plutôt "
-"rudimentaire. Il a été fait dans le but de vous aider à démarrer et "
+"L'algorithme natif de pool de connexions de Hibernate est plutôt "
+"rudimentaire. Il a été conçu dans le but de vous aider à démarrer et "
"<emphasis>n'est pas prévu pour un système en production</emphasis> ou même "
-"pour un test de peformance. Utilisez plutôt un pool tiers pour de meilleures "
-"performances et une meilleure stabilité : pour cela, remplacez la propriété "
+"pour un test de performance. Utilisez plutôt un pool tiers pour de "
+"meilleures performances et une meilleure stabilité : remplacez la propriété "
"<literal>hibernate.connection.pool_size</literal> avec les propriétés "
-"spécifique au pool de connexions que vous avez choisi. Cela désactivera le "
-"pool de connexions interne d'Hibernate. Vous pouvez par exemple utiliser "
-"C3P0."
+"spécifiques au pool de connexions que vous avez choisi. Cela désactivera le "
+"pool de connexions interne de Hibernate. Vous pouvez par exemple utiliser "
+"C3P0. "
#. Tag: para
-#: configuration.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib</filename> directory. Hibernate will use its "
@@ -456,131 +349,95 @@
"C3P0 est un pool de connexions JDBC open source distribué avec Hibernate "
"dans le répertoire <literal>lib</literal>. Hibernate utilisera son provider "
"<literal>C3P0ConnectionProvider</literal> pour le pool de connexions si vous "
-"positionnez les propriétés <literal>hibernate.c3p0.*</literal>. Si vous "
+"configurez les propriétés <literal>hibernate.c3p0.*</literal>. Si vous "
"voulez utiliser Proxool, référez vous au groupe de propriétés "
-"d'<literal>hibernate.properties</literal> correspondant et regardez sur le "
-"site web d'Hibernate pour plus d'informations."
+"<literal>hibernate.properties</literal> correspondant et consultez le site "
+"web Hibernate pour plus d'informations. "
#. Tag: para
-#: configuration.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
"for c3p0:"
msgstr ""
"Voici un exemple de fichier <literal>hibernate.properties</literal> pour "
-"C3P0:"
+"C3P0: "
-#. Tag: programlisting
-#: configuration.xml:242
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:244
-#, fuzzy, no-c-format
-msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
-"Dans le cadre de l'utilisation au sein d'un serveur d'applications, vous "
-"devriez quasiment toujours configurer Hibernate pour qu'il obtienne ses "
-"connexions de la <literal>DataSource</literal> du serveur d'application "
-"enregistrée dans le JNDI. Pour cela vous devrez définir au moins une des "
-"propriétés suivantes :"
+"Pour l'utilisation de Hibernate au sein d'un serveur d'applications, il est "
+"recommandé de configurer Hibernate presque toujours de façon à ce qu'il "
+"obtienne ses connexions de la <literal>DataSource</literal> enregistrée du "
+"serveur d'applications dans le JNDI. à cet effet, vous devrez définir au "
+"moins une des propriétés suivantes : "
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
-msgstr "Propriété d'une Datasource Hibernate"
+msgstr "Propriétés d'une Datasource Hibernate"
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
-msgstr "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
+msgstr "<property>hibernate.connection.datasource</property>"
-#. Tag: emphasis
-#: configuration.xml:267
+#. Tag: entry
#, no-c-format
-msgid "datasource JNDI name"
-msgstr "Nom JNDI de la datasource"
+msgid "<emphasis>datasource JNDI name</emphasis>"
+msgstr "<emphasis>nom JNDI de la source de données</emphasis>"
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
-msgstr "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
+msgstr "<property>hibernate.jndi.url</property>"
#. Tag: entry
-#: configuration.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
-msgstr "URL du fournisseur JNDI"
+msgstr "<emphasis>URL du fournisseur JNDI</emphasis> (optionnel)"
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
-msgstr "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
+msgstr "<property>hibernate.jndi.class</property>"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
"emphasis> (optional)"
msgstr ""
+"<emphasis>classe de JNDI <literal>InitialContextFactory</literal></emphasis> "
+"(optionnel)"
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>utilisateur de base de données</emphasis> (optionnel)"
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
msgstr ""
+"<emphasis>mot de passe de l'utilisateur de base de données</emphasis> "
+"(optionnel)"
#. Tag: para
-#: configuration.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
"application server provided JNDI datasource:"
msgstr ""
"Voici un exemple de fichier <literal>hibernate.properties</literal> pour "
-"l'utilisation d'une datasource JNDI fournie par un serveur d'applications :"
+"l'utilisation d'une datasource JNDI fournie par un serveur d'applications : "
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
@@ -591,22 +448,20 @@
"d'applications."
#. Tag: para
-#: configuration.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection</literal>\" to the connection property name. "
"For example, you can specify a <property>charSet</property> connection "
"property using <property>hibernate.connection.charSet</property>."
msgstr ""
-"Des propriétés supplémentaires de connexion peuvent être passées en "
-"préfixant le nom de la propriété par \"<literal>hibernate.connnection</"
-"literal>\". Par exemple, vous pouvez spécifier un jeu de caractères en "
-"utilisant <literal>hibernate.connection.charSet</literal>."
+"Des propriétés arbitraires de connexion peuvent être passées en préfixant le "
+"nom de la propriété par \"<literal>hibernate.connnection</literal>\". Par "
+"exemple, vous pouvez spécifier un <literal>charSet</literal> en utilisant "
+"<literal>hibernate.connection.charSet</literal>. "
#. Tag: para
-#: configuration.xml:324
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
@@ -617,29 +472,25 @@
"Vous pouvez fournir votre propre stratégie d'obtention des connexions JDBC "
"en implémentant l'interface <literal>org.hibernate.connection."
"ConnectionProvider</literal>. Vous pouvez sélectionner une implémentation "
-"spécifique en positionnant <literal>hibernate.connection.provider_class</"
+"spécifique par la propriété <literal>hibernate.connection.provider_class</"
"literal>."
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr "Propriétés de configuration optionnelles"
#. Tag: para
-#: configuration.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
"Il y a un certain nombre d'autres propriétés qui contrôlent le "
"fonctionnement d'Hibernate à l'exécution. Toutes sont optionnelles et ont "
-"comme valeurs par défaut des valeurs \"raisonnables\" pour un fonctionnement "
-"nominal."
+"comme valeurs par défaut des valeurs raisonnables."
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -647,432 +498,216 @@
"literal> or <filename>hibernate.properties</filename>. They "
"<emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
-"<emphasis>Attention : Certaines de ces propriétés sont uniquement de niveau "
-"System.</emphasis> Les propriétés de niveau System ne peuvent être "
-"positionnées que via la ligne de commande (<literal>java -Dproperty=value</"
-"literal>) ou être définies dans <literal>hibernate.properties</literal>. "
-"Elle <emphasis>ne peuvent pas</emphasis> l'être via une des autres "
-"techniques décrites ci-dessus."
+"Attention : certaines de ces propriétés sont uniquement de niveau System. "
+"Les propriétés de niveau System ne peuvent être positionnées que via la "
+"ligne de commande <literal>java -Dproperty=value</literal> ou être définies "
+"dans <literal>hibernate.properties</literal>. Elles peuvent <emphasis>ne "
+"pas</emphasis> être configurées par les autres techniques décrites ci-"
+"dessus. "
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
-msgstr "Propriétés de configuration d'Hibernate"
+msgstr "Propriétés de configuration Hibernate"
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
+msgstr "<property>hibernate.dialect</property>"
#. Tag: entry
-#: configuration.xml:362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
"classname> which allows Hibernate to generate SQL optimized for a particular "
"relational database."
msgstr ""
-"Le nom de la classe du <placeholder-1/> Hibernate. qui permet à Hibernate de "
-"générer du SQL optimisé pour une base de données relationnelle particulière. "
-"<placeholder-2/>"
+"Le nom de la classe d'un <classname>org.hibernate.dialect.Dialect</"
+"classname> Hibernate qui permet à Hibernate de générer du SQL optimisé pour "
+"une base de données relationnelle particulière. "
#. Tag: para
-#: configuration.xml:365
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
"Dialect</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+" <emphasis role=\"strong\">par ex.</emphasis><literal>full.classname.of."
+"Dialect</literal> "
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
"<classname>org.hibernate.dialect.Dialect</classname> implementation based on "
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
+"Dans la plupart des cas, Hibernate sera en mesure de choisir "
+"l'implémentation <classname>org.hibernate.dialect.Dialect</classname> qui "
+"convient sur la base des <literal>métadonnées JDBC</literal> retournées par "
+"le driver JDBC."
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
-msgstr "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
+msgstr "<property>hibernate.show_sql</property>"
#. Tag: entry
-#: configuration.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL</literal> to <literal>debug</"
"literal>."
msgstr ""
-"Ecrit toutes les requêtes SQL sur la console. Il s'agit d'une alternative au "
-"positionnement de la catégorie de log <placeholder-1/> au niveau "
-"<placeholder-2/>. <placeholder-3/>"
+"Ãcrit toutes les requêtes SQL sur la console. Il s'agit d'une alternative au "
+"paramétrage de la catégorie de log <literal>org.hibernate.SQL</literal> à "
+"<literal>debug</literal>. "
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:583 configuration.xml:610 configuration.xml:623
-#: configuration.xml:678 configuration.xml:906 configuration.xml:921
-#: configuration.xml:1011
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+" <emphasis role=\"strong\">par ex.</emphasis><literal>true</literal> | "
+"<literal>false</literal> "
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
-msgstr "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
+msgstr "<property>hibernate.format_sql</property>"
#. Tag: entry
-#: configuration.xml:394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pretty print the SQL in the log and console."
-msgstr ""
-"Formate et indente le sql dans la console et dans le log <placeholder-1/>"
+msgstr "Effectue un pretty print du SQL dans la console et dans le log. "
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
-msgstr "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
+msgstr "<property>hibernate.default_schema</property>"
#. Tag: entry
-#: configuration.xml:406
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
msgstr ""
-"Positionne dans le SQL généré un schéma/tablespace par défaut pour les noms "
-"de table ne l'ayant pas surchargé. <placeholder-1/>"
+"Qualifie des noms de table non qualifiés avec le schéma/tablespace dans le "
+"SQL généré."
#. Tag: para
-#: configuration.xml:409
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
-msgstr "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
+msgstr "<property>hibernate.default_catalog</property>"
#. Tag: entry
-#: configuration.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
msgstr ""
"Qualifie les noms de tables non qualifiées avec ce catalogue dans le SQL "
-"généré. <placeholder-1/>"
+"généré. "
#. Tag: para
-#: configuration.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
-msgstr "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
+msgstr "<property>hibernate.session_factory_name</property>"
#. Tag: entry
-#: configuration.xml:432
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
-"La <placeholder-1/> sera automatiquement liée à ce nom dans le JNDI après sa "
-"création. <placeholder-2/>"
+"<interfacename>org.hibernate.SessionFactory</interfacename> sera "
+"automatiquement liée à ce nom dans JNDI après sa création. "
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+" <emphasis role=\"strong\">par ex.</emphasis><literal>jndi/composite/name</"
+"literal>"
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
-msgstr "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
+msgstr "<property>hibernate.max_fetch_depth</property>"
#. Tag: entry
-#: configuration.xml:445
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0</literal> disables "
"default outer join fetching."
msgstr ""
-"Définit la profondeur maximale d'un arbre de chargement par jointures "
-"ouvertes pour les associations à cardinalité unitaire (un-à -un, plusieurs-à -"
-"un). Un <placeholder-1/> désactive le chargement par jointure ouverte. "
-"<placeholder-2/>"
+"Configure la profondeur maximale d'un arbre de chargement par jointures "
+"externes pour les associations à cardinalité unitaire (un-à -un, plusieurs-à -"
+"un). Un <literal>0</literal> désactive le chargement par défaut par jointure "
+"externe."
#. Tag: para
-#: configuration.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>0</literal> and <literal>3</literal>"
msgstr ""
-"<emphasis role=\"strong\">ex.</emphasis> valeurs recommandées entre "
-"<literal>0</literal> et <literal>3</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis> valeurs recommandées entre "
+"<literal>0</literal> et <literal>3</literal> "
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
-msgstr "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
+msgstr "<property>hibernate.default_batch_fetch_size</property>"
#. Tag: entry
-#: configuration.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr ""
-"Définit une taille par défaut pour le chargement par lot des associations "
-"<placeholder-1/>"
+"Configure une taille par défaut pour le chargement par lot des associations "
+"Hibernate "
#. Tag: para
-#: configuration.xml:462
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
msgstr ""
-"<emphasis role=\"strong\">ex.</emphasis> Valeurs recommandées : <literal>4</"
-"literal>, <literal>8</literal>, <literal>16</literal>"
+"<emphasis role=\"strong\">ex.</emphasis> valeurs recommandées : <literal>4</"
+"literal>, <literal>8</literal>, <literal>16</literal> "
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
-msgstr "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
+msgstr "<property>hibernate.default_entity_mode</property>"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory</literal>"
msgstr ""
-"Définit un mode de représentation par défaut des entités pour toutes les "
-"sessions ouvertes depuis cette <placeholder-1/><placeholder-2/>"
+"Configure un mode de représentation par défaut des entités pour toutes les "
+"sessions ouvertes depuis cette <literal>SessionFactory</literal> "
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
@@ -1081,112 +716,96 @@
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
-msgstr "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
+msgstr "<property>hibernate.order_updates</property>"
#. Tag: entry
-#: configuration.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
-"Force Hibernate à trier les updates SQL par la valeur de la clé primaire des "
-"éléments qui sont mis à jour. Cela permet de limiter les deadlocks de "
-"transaction dans les systèmes hautement concurents. <placeholder-1/>"
+"Force Hibernate à trier les mises à jour SQL par la valeur de la clé "
+"primaire des éléments mis à jour. Cela permet de limiter les deadlocks de "
+"transaction dans les systèmes hautement concurrents."
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
-msgstr "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
+msgstr "<property>hibernate.generate_statistics</property>"
#. Tag: entry
-#: configuration.xml:500
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr ""
"Si activé, Hibernate va collecter des statistiques utiles pour le réglage "
-"des performances. <placeholder-1/>"
+"des performances. "
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
-msgstr "hibernate.use_identifer_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
+msgstr "<property>hibernate.use_identifer_rollback</property>"
#. Tag: entry
-#: configuration.xml:513
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
msgstr ""
-"Si activé, les propriétés correspondant à l'identifiant des objets vont être "
-"remises aux valeurs par défaut lorsque les objets seront supprimés. "
-"<placeholder-1/>"
+"Si activé, les propriétés correspondant à l'identifiant des objets sont "
+"remises aux valeurs par défaut lorsque les objets sont supprimés. "
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
-msgstr "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
+msgstr "<property>hibernate.use_sql_comments</property>"
#. Tag: entry
-#: configuration.xml:526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false</literal>."
msgstr ""
-"Si activé, Hibernate va générer des commentaires à l'intérieur des requêtes "
-"SQL pour faciliter le debogage., par défaut à <placeholder-1/>. <placeholder-"
-"2/>"
+"Si activé, Hibernate génère des commentaires à l'intérieur des requêtes SQL "
+"pour faciliter le débogage, par défaut à <literal>false</literal>."
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "Propriétés Hibernate liées à JDBC et aux connexions"
-#. Tag: property
-#: configuration.xml:555
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
-msgstr "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
+msgstr "<property>hibernate.jdbc.fetch_size</property>"
#. Tag: entry
-#: configuration.xml:557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
msgstr ""
-"Une valeur non nulle détermine la taille de chargement des statements JDBC "
-"(appelle <placeholder-1/>)."
+"Une valeur non nulle détermine la taille des chargements JDBC (appelle "
+"<literal>Statement.setFetchSize()</literal>)."
-#. Tag: property
-#: configuration.xml:564
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
-msgstr "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
+msgstr "<property>hibernate.jdbc.batch_size</property>"
#. Tag: entry
-#: configuration.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr ""
-"Une valeur non nulle active l'utilisation par Hibernate des mises à jour par "
-"batch de JDBC2. <placeholder-1/>"
+"Une valeur non nulle active l'utilisation par Hibernate des mise à jour par "
+"lot de JDBC2. "
#. Tag: para
-#: configuration.xml:568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>5</literal> and <literal>30</literal>"
@@ -1194,136 +813,89 @@
"<emphasis role=\"strong\">ex.</emphasis> les valeurs recommandées entre "
"<literal>5</literal> et <literal>30</literal>"
-#. Tag: property
-#: configuration.xml:576
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
-msgstr "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
+msgstr "<property>hibernate.jdbc.batch_versioned_data</property>"
#. Tag: entry
-#: configuration.xml:578
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
"correct row counts from <literal>executeBatch()</literal>. Iit is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-"Paramétrez cette propriété à <placeholder-1/> si votre pilote JDBC retourne "
-"des row counts corrects depuis <placeholder-2/> (il est souvent approprié "
-"d'activer cette option). Hibernate utilisera alors le \"batched DML\" pour "
-"versionner automatiquement les données. Par défaut = <placeholder-3/>. "
-"<placeholder-4/>"
+"Paramétrez cette propriété à <literal>true</literal> si votre pilote JDBC "
+"retourne des comptes de lignes corrects depuis <literal>executeBatch()</"
+"literal> (il est souvent approprié d'activer cette option). Hibernate "
+"utilisera alors le \"batched DML\" pour les données automatiquement "
+"versionnées. Par défaut à <literal>false</literal>. "
-#. Tag: property
-#: configuration.xml:591
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
-msgstr "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
+msgstr "<property>hibernate.jdbc.factory_class</property>"
#. Tag: entry
-#: configuration.xml:593
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
"Most applications will not need this configuration property."
msgstr ""
-"Sélectionne un <placeholder-1/> personnalisé. La plupart des applications "
-"n'auront pas besoin de cette propriété de configuration <placeholder-2/>"
+"Sélectionne un <interfacename>org.hibernate.jdbc.Batcher</interfacename> "
+"personnalisé. La plupart des applications n'auront pas besoin de cette "
+"propriété de configuration."
#. Tag: para
-#: configuration.xml:596
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par.ex.</emphasis> <literal>classname.of."
+"BatcherFactory</literal>"
-#. Tag: property
-#: configuration.xml:604
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
-msgstr "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
+msgstr "<property>hibernate.jdbc.use_scrollable_resultset</property>"
#. Tag: entry
-#: configuration.xml:606
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
-"Active l'utilisation par Hibernate des resultsets scrollables de JDBC2. "
-"Cette propriété est seulement nécessaire lorsque l'on utilise une connexion "
-"JDBC fournie par l'utilisateur. Autrement, Hibernate utilise les métadonnées "
-"de la connexion. <placeholder-1/>"
+"Active l'utilisation par Hibernate des ensembles de résultats déroulants de "
+"JDBC2. Cette propriété est seulement nécessaire lorsque l'on utilise des "
+"connexions JDBC fournies par l'utilisateur. Autrement, Hibernate utilise les "
+"métadonnées de la connexion."
-#. Tag: property
-#: configuration.xml:618
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
-msgstr "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
+msgstr "<property>hibernate.jdbc.use_streams_for_binary</property>"
#. Tag: entry
-#: configuration.xml:620
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
"<literal>serializable</literal> types to/from JDBC. <emphasis>*system-level "
"property*</emphasis>"
msgstr ""
-"Utilise des flux lorsque l'on écrit/lit des types <placeholder-1/> ou "
-"<placeholder-2/> vers et à partir de JDBC (propriété de niveau système). "
-"<placeholder-3/>"
+"Utilise des flux lorsque l'on écrit/lit des types <literal>binary</literal> "
+"ou des types <literal>serializable</literal>vers/Ã partir de JDBC. "
+"<emphasis>*system-level property*</emphasis>"
-#. Tag: property
-#: configuration.xml:631
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
-msgstr "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
+msgstr "<property>hibernate.jdbc.use_get_generated_keys</property>"
#. Tag: entry
-#: configuration.xml:633
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
@@ -1331,210 +903,88 @@
"identifier generators. By default, it tries to determine the driver "
"capabilities using connection metadata."
msgstr ""
-"Active l'utilisation de <placeholder-1/> de JDBC3 pour récupérer nativement "
-"les clés générées après insertion. Nécessite un pilote JDBC3+, le mettre à "
-"false si votre pilote a des problèmes avec les générateurs d'identifiant "
-"Hibernate. Par défaut, essaie de déterminer les possibilités du pilote en "
-"utilisant les meta données de connexion. <placeholder-2/>"
+"Active l'utilisation de <literal>PreparedStatement.getGeneratedKeys()</"
+"literal> de JDBC3 pour récupérer nativement les clés générées après "
+"insertion. Nécessite un pilote JDBC3+ et JRE1.4+, configurés à false si "
+"votre pilote a des problèmes avec les générateurs d'identifiant Hibernate. "
+"Par défaut, essaie de déterminer les possibilités du pilote en utilisant les "
+"metadonnées de connexion."
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781
-#: configuration.xml:795 configuration.xml:833
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis> <literal>true|false</literal>"
-#. Tag: property
-#: configuration.xml:647
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
-msgstr "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
+msgstr "<property>hibernate.connection.provider_class</property>"
#. Tag: entry
-#: configuration.xml:649
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
-"Le nom de la classe d'un <placeholder-1/> personnalisé qui fournit des "
-"connexions JDBC Ã Hibernate <placeholder-2/>"
+"Le nom de la classe d'un <interfacename>org.hibernate.connection."
+"ConnectionProvider</interfacename> personnalisé qui fournit des connexions "
+"JDBC Ã Hibernate."
#. Tag: para
-#: configuration.xml:652
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>classname.of."
+"ConnectionProvider</literal> "
-#. Tag: property
-#: configuration.xml:660
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
-msgstr "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
+msgstr "<property>hibernate.connection.isolation</property>"
#. Tag: entry
-#: configuration.xml:662
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
"databases do not support all isolation levels and some define additional, "
"non-standard isolations."
msgstr ""
-"Définit le niveau d'isolation des transactions JDBC. Regardez <placeholder-1/"
-"> pour connaître le sens des différentes valeurs mais notez également que la "
-"plupart des bases de données ne supportent pas tous les niveaux d'isolation. "
-"<placeholder-2/>"
+"Définit le niveau d'isolation des transactions JDBC. Regardez <literal>java."
+"sql.Connection</literal> pour des valeurs significatives mais notez "
+"également que la plupart des bases de données ne supportent pas tous les "
+"niveaux d'isolation et que certaines définissent des isolations non standard "
+"supplémentaires."
#. Tag: para
-#: configuration.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>1, 2, 4, 8</literal> "
-#. Tag: property
-#: configuration.xml:674
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
-msgstr "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
+msgstr " hibernate.connection.autocommit"
#. Tag: entry
-#: configuration.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr ""
"Active le mode de commit automatique (autocommit) pour les connexions JDBC "
-"du pool (non recommandé). <placeholder-1/>"
+"du pool (non recommandé). "
-#. Tag: property
-#: configuration.xml:686
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
-msgstr "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
+msgstr "<property>hibernate.connection.release_mode</property>"
#. Tag: entry
-#: configuration.xml:688
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
@@ -1546,186 +996,143 @@
"the JTA and CMT transaction strategies and <literal>after_transaction</"
"literal> for the JDBC transaction strategy."
msgstr ""
-"Spécifie à quel moment Hibernate doit relacher les connexion JDBC. Par "
-"défaut une connexion JDBC est conservée jusqu'à ce que la session soit "
+"Spécifie à quel moment Hibernate doit relâcher les connexions JDBC. Par "
+"défaut, une connexion JDBC est conservée jusqu'à ce que la session soit "
"explicitement fermée ou déconnectée. Pour une source de données JTA d'un "
-"serveur d'application, vous devriez utiliser <placeholder-1/> pour libérer "
-"les connexions de manière plus agressive après chaque appel JDBC. Pour une "
-"connexion non JTA, il est souvent préférable de libérer la connexion à la "
-"fin de chaque transaction en utilisant <placeholder-2/>. <placeholder-3/> "
-"choisira <placeholder-4/> pour des transactions JTA et CMT et <placeholder-5/"
-"> pour des transactions JDBC. <placeholder-6/><placeholder-7/>"
+"serveur d'applications, vous devriez utiliser <literal>after_statement</"
+"literal> pour libérer les connexions de manière plus agressive après chaque "
+"appel JDBC. Pour une connexion non JTA, il est souvent préférable de libérer "
+"la connexion à la fin de chaque transaction en utilisant "
+"<literal>after_transaction</literal>. <literal>auto</literal> choisira "
+"<literal>after_statement</literal> pour les stratégies de transactions JTA "
+"et CMT et <literal>after_transaction</literal> pour des stratégies de "
+"transactions JDBC. "
#. Tag: para
-#: configuration.xml:699
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
msgstr ""
-"<emphasis role=\"strong\">ex.</emphasis><literal>on_close</literal> "
-"(default) | <literal>after_transaction</literal> | <literal>after_statement</"
-"literal> | <literal>auto</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
+"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
+"<literal>after_statement</literal>"
#. Tag: para
-#: configuration.xml:704
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
"<literal>SessionFactory.openSession</literal>. For <literal>Session</"
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
-msgstr ""
-"Note that this setting only affects <literal>Session</literal>s returned "
-"from <literal>SessionFactory.openSession</literal>. For <literal>Session</"
-"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
-"literal>, the <literal>CurrentSessionContext</literal> implementation "
-"configured for use controls the connection release mode for those "
"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
-"\"/>"
+"\" />"
+msgstr ""
+"Remarquez que ce paramètre influence uniquement les <literal>Session</"
+"literal> s retournées depuis <literal>SessionFactory.openSession</literal>. "
+"Pour les <literal>Session</literal> s obtenues depuis "
+"<literal>SessionFactory.getCurrentSession</literal>, l'implémentation "
+"<literal>CurrentSessionContext</literal> configurée pour l'utilisation, "
+"contrôle le mode de libération des connexions pour ces <literal>Session</"
+"literal> s. Consultez <xref linkend=\"architecture-current-session\" />"
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
"emphasis>"
msgstr ""
+"<property>hibernate.connection.</property><emphasis><propertyName></"
+"emphasis>"
#. Tag: entry
-#: configuration.xml:718
#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
"<literal>DriverManager.getConnection()</literal>."
msgstr ""
+"Passez une propriété JDBC <literal>propertyName</literal> à "
+"<literal>DriverManager.getConnection()</literal>. "
#. Tag: entry
-#: configuration.xml:724
#, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
+"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
#. Tag: entry
-#: configuration.xml:727
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
"<literal>InitialContextFactory</literal>."
msgstr ""
+"Passez la propriété <emphasis><propertyName></emphasis> au JNDI "
+"<literal>InitialContextFactory</literal>."
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
-msgstr "Propriétés du Cache d'Hibernate"
+msgstr "Propriétés du Cache Hibernate"
-#. Tag: literal
-#: configuration.xml:750
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
-msgstr "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
+msgstr "<literal>hibernate.cache.provider_class</literal>"
#. Tag: entry
-#: configuration.xml:752
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
-msgstr "Le nom de classe d'un <placeholder-1/> spécifique. <placeholder-2/>"
+msgstr "Le nom de classe d'un <literal>CacheProvider</literal> personnalisé."
#. Tag: para
-#: configuration.xml:754
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>classname.of."
+"CacheProvider</literal> "
-#. Tag: literal
-#: configuration.xml:762
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
-msgstr "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
+msgstr "<literal>hibernate.cache.use_minimal_puts</literal>"
#. Tag: entry
-#: configuration.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
"Optimise le cache de second niveau en minimisant les écritures, au prix de "
-"plus de lectures. Ce paramètre est surtout utile pour les caches en cluster "
+"plus de lectures. Ce paramètre est surtout utile pour les caches en cluster,"
"et est activé par défaut dans hibernate3 pour les implémentations de cache "
-"en cluster. <placeholder-1/>"
+"en cluster. "
-#. Tag: literal
-#: configuration.xml:777
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
-msgstr "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
+msgstr "<literal>hibernate.cache.use_query_cache</literal>"
#. Tag: entry
-#: configuration.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
msgstr ""
"Activer le cache de requête, les requêtes individuelles doivent tout de même "
-"être déclarées comme pouvant être mise en cache. <placeholder-1/>"
+"être déclarées comme pouvant être mises en cache."
-#. Tag: literal
-#: configuration.xml:789
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
-msgstr "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
+msgstr "<literal>hibernate.cache.use_second_level_cache</literal>"
#. Tag: entry
-#: configuration.xml:791
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache></literal> "
@@ -1733,469 +1140,250 @@
msgstr ""
"Peut être utilisé pour désactiver complètement le cache de second niveau qui "
"est activé par défaut pour les classes qui spécifient un élément "
-"<placeholder-1/> dans leur mapping. <placeholder-2/>"
+"<literal><cache></literal> dans leur mappage. "
-#. Tag: literal
-#: configuration.xml:803
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
-msgstr "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
+msgstr "<literal>hibernate.cache.query_cache_factory</literal>"
#. Tag: entry
-#: configuration.xml:805
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
"to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
-"Le nom de classe d'une interface <placeholder-1/> , par défaut = built-in "
-"<placeholder-2/>. <placeholder-3/>"
+"Le nom de classe d'une interface <literal>QueryCache</literal> "
+"personnalisée, par défaut prend la valeur du <literal>StandardQueryCache</"
+"literal> imbriqué."
#. Tag: para
-#: configuration.xml:808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>classname.of."
+"QueryCache</literal> "
-#. Tag: literal
-#: configuration.xml:816
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
-msgstr "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
+msgstr "<literal>hibernate.cache.region_prefix</literal>"
#. Tag: entry
-#: configuration.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A prefix to use for second-level cache region names."
msgstr ""
-"Un préfixe à utiliser pour le nom des régions du cache de second niveau. "
-"<placeholder-1/>"
+"Un préfixe à utiliser pour les noms de régions du cache de second niveau. "
#. Tag: para
-#: configuration.xml:820
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">par ex.</emphasis> <literal>prefix</literal>"
-#. Tag: literal
-#: configuration.xml:828
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
-msgstr "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
+msgstr "<literal>hibernate.cache.use_structured_entries</literal>"
#. Tag: entry
-#: configuration.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
msgstr ""
-"Force Hibernate à stocker les données dans le cache de second niveau dans un "
-"format plus adapté à la visualisation par un humain. <placeholder-1/>"
+"Force Hibernate à stocker les données dans le cache de second niveau en un "
+"format plus adapté à la visualisation. "
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr "Propriétés des transactions Hibernate"
-#. Tag: literal
-#: configuration.xml:857
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
-msgstr "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
+msgstr "<literal>hibernate.transaction.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:859
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
"Hibernate <literal>Transaction</literal> API (defaults to "
"<literal>JDBCTransactionFactory</literal>)."
msgstr ""
-"Le nom de classe d'une <placeholder-1/> qui sera utilisée par l'API "
-"<placeholder-2/> d'Hibernate (la valeur par défaut est <placeholder-3/>). "
-"<placeholder-4/>"
+"Le nom de classe d'une <literal>TransactionFactory</literal> qui sera "
+"utilisée par l'API <literal>Transaction</literal> de Hibernate (la valeur "
+"par défaut est <literal>JDBCTransactionFactory</literal>). "
#. Tag: para
-#: configuration.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>classname.of."
+"TransactionFactory</literal> "
-#. Tag: literal
-#: configuration.xml:871
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
-msgstr "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
+msgstr "<literal>jta.UserTransaction</literal>"
#. Tag: entry
-#: configuration.xml:873
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
"JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-"Le nom JNDI utilisé par la <placeholder-1/> pour obtenir la <placeholder-2/> "
-"JTA du serveur d'applications. <placeholder-3/>"
+"Le nom JNDI utilisé par la <literal>JTATransactionFactory</literal> pour "
+"obtenir la <literal>UserTransaction</literal> JTA du serveur d'applications."
-#. Tag: literal
-#: configuration.xml:885
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
-msgstr "hibernate.transaction.manager_lookup_class"
-
#. Tag: entry
-#: configuration.xml:887
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
+msgstr "<literal>hibernate.transaction. manager_lookup_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
-"Le nom de la classe du <placeholder-1/> - requis lorsque le cache de niveau "
-"JVM est activé ou lorsque l'on utilise un générateur hilo dans un "
-"environnement JTA. <placeholder-2/>"
+"Le nom de la classe d'une <literal>TransactionManagerLookup</literal> - "
+"requise lorsque le cache de niveau JVM est activé ou lorsque l'on utilise un "
+"générateur hilo dans un environnement JTA."
#. Tag: para
-#: configuration.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>classname.of."
+"TransactionManagerLookup</literal> "
-#. Tag: literal
-#: configuration.xml:899
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
-msgstr "hibernate.transaction.flush_before_completion"
-
#. Tag: entry
-#: configuration.xml:901
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
+msgstr "<literal>hibernate.transaction. flush_before_completion</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
"Si activé, la session sera automatiquement vidée durant la phase qui précède "
-"la fin de la transaction (before completion). La gestion automatique de "
-"contexte fourni par Hibernate est recommandée, voir <xref linkend="
-"\"architecture-current-session\"/>. <placeholder-1/>"
+"la fin de la transaction. La gestion automatique et imbriquée du contexte de "
+"session fourni par Hibernate est préférable, consultez <xref linkend="
+"\"architecture-current-session\" />."
-#. Tag: literal
-#: configuration.xml:914
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
-msgstr "hibernate.transaction.auto_close_session"
-
#. Tag: entry
-#: configuration.xml:916
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
+msgstr "<literal>hibernate.transaction. auto_close_session</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"Si activé, la session sera automatiquement fermé pendant la phase qui suit "
-"la fin de la transaction (after completion). La gestion automatique de "
-"contexte fourni par Hibernate est recommandée, voir <placeholder-1/>"
+"Si activé, la session sera automatiquement fermée pendant la phase qui suit "
+"la fin de la transaction. La gestion automatique et imbriquée du contexte de "
+"session fourni par Hibernate est préférable, consultez <xref linkend="
+"\"architecture-current-session\" />."
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "Propriétés diverses"
-#. Tag: literal
-#: configuration.xml:945
-#, no-c-format
-msgid "hibernate.current_session_context_class"
-msgstr "hibernate.current_session_context_class"
-
#. Tag: entry
-#: configuration.xml:947
#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
+msgstr "<literal>hibernate. current_session_context_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
-"Fournit une stratégie particulière pour contextualiser la <placeholder-1/> "
-"courante. Voir <xref linkend=\"architecture-current-session\"/> pour plus "
-"d'informations sur les stratégies fournies. <placeholder-2/>"
+"Fournit une stratégie particulière pour la portée de la <literal>Session</"
+"literal> courante. Consultez <xref linkend=\"architecture-current-session\" /"
+"> pour plus d'informations sur les stratégies incorporées. "
#. Tag: para
-#: configuration.xml:952
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis><literal>jta</literal> | "
-"<literal>thread</literal> | <literal>custom.Class</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
+"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
+"Class</literal>"
-#. Tag: literal
-#: configuration.xml:961
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
-msgstr "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
+msgstr "<literal>hibernate.query.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:963
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Chooses the HQL parser implementation."
-msgstr "Choisi l'implémentation du parseur de requête <placeholder-1/>"
+msgstr "Choisit l'implémentation du parseur de requête HQL. "
#. Tag: para
-#: configuration.xml:965
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ex.</emphasis><literal>org.hibernate.hql.ast."
+"<emphasis role=\"strong\">par ex.</emphasis><literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> ou <literal>org.hibernate.hql.classic."
-"ClassicQueryTranslatorFactory</literal>"
+"ClassicQueryTranslatorFactory</literal> "
-#. Tag: literal
-#: configuration.xml:974
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
-msgstr "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
+msgstr "<literal>hibernate.query.substitutions</literal>"
#. Tag: entry
-#: configuration.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
-"Lien entre les tokens de requêtes Hibernate et les tokens SQL (les tokens "
-"peuvent être des fonctions ou des noms littéraux par exemple). <placeholder-"
-"1/>"
+"Lien entre les jetons de requêtes Hibernate et les jetons SQL (les jetons "
+"peuvent être des fonctions ou des noms textuels par exemple)."
#. Tag: para
-#: configuration.xml:979
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">par ex.</emphasis><literal>hqlLiteral=SQL_LITERAL, "
+"hqlFunction=SQLFUNC</literal> "
-#. Tag: literal
-#: configuration.xml:987
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
-msgstr "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
+msgstr "<literal>hibernate.hbm2ddl.auto</literal>"
#. Tag: entry
-#: configuration.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory</literal> is created. With <literal>create-drop</"
@@ -2203,31 +1391,29 @@
"<literal>SessionFactory</literal> is closed explicitly."
msgstr ""
"Valide ou exporte automatiquement le schéma DDL vers la base de données "
-"lorsque la <placeholder-1/> est créée. La valeur <placeholder-2/> permet de "
-"supprimer le schéma de base de données lorsque la <placeholder-3/> est "
-"fermée explicitement. <placeholder-4/>"
+"lorsque la <literal>SessionFactory</literal> est créée. La valeur "
+"<literal>create-drop</literal> permet de supprimer le schéma de base de "
+"données lorsque la <literal>SessionFactory</literal> est fermée "
+"explicitement."
#. Tag: para
-#: configuration.xml:995
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
msgstr ""
-"<emphasis role=\"strong\">ex.</emphasis><literal>validate</literal> | "
+"<emphasis role=\"strong\">par ex.</emphasis><literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
-"drop</literal>"
+"drop</literal> "
-#. Tag: literal
-#: configuration.xml:1004
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
-msgstr "hibernate.cglib.use_reflection_optimizer"
-
#. Tag: entry
-#: configuration.xml:1006
#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
+msgstr "<literal>hibernate.cglib. use_reflection_optimizer</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
@@ -2236,19 +1422,17 @@
msgstr ""
"Active l'utilisation de CGLIB à la place de la réflexion à l'exécution "
"(Propriété de niveau système). La réflexion peut parfois être utile pour "
-"résoudre des problèmes. Notez qu'Hibernate a tout de même toujours besoin de "
-"CGLIB même si l'optimiseur est désactivé. Cette optimisation ne peut être "
-"définie que dans le fichier <placeholder-1/>. <placeholder-2/>"
+"résoudre des problèmes. Notez que Hibernate a encore besoin et toujours de "
+"CGLIB, même si l'optimiseur est désactivé. Vous ne pouvez pas configurer "
+"cette propriété dans la <literal>hibernate.cfg.xml</literal>. "
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
msgstr "Dialectes SQL"
#. Tag: para
-#: configuration.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
"<literal>org.hibernate.dialect.Dialect</literal> subclass for your database. "
@@ -2256,319 +1440,264 @@
"the other properties listed above. This means that you will not have to "
"specify them manually."
msgstr ""
-"Vous devriez toujours positionner la propriété <literal>hibernate.dialect</"
-"literal> Ã la sous-classe de <literal>org.hibernate.dialect.Dialect</"
-"literal> appropriée à votre base de données. Si vous spécifiez un dialecte, "
-"Hibernate utilisera des valeurs adaptées pour certaines autres propriétés "
-"listées ci-dessus, vous évitant l'effort de le faire à la main."
+"Il est recommandé de toujours positionner la propriété <literal>hibernate."
+"dialect</literal> Ã la sous-classe de <literal>org.hibernate.dialect."
+"Dialect</literal> appropriée à votre base de données. Si vous spécifiez un "
+"dialecte, Hibernate utilisera des valeurs adaptées pour certaines autres "
+"propriétés listées ci-dessus, vous évitant ainsi de l'effectuer à la main. "
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
-msgstr "Dialectes SQL d'Hibernate (<literal>hibernate.dialect</literal>)"
+msgstr "Dialectes SQL de Hibernate (<literal>hibernate.dialect</literal>)"
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
-msgstr "SGBD"
+msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1041
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Dialect"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Dialect\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Dialecte"
+msgstr "Dialecte"
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr ""
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1046
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
-msgstr "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1049
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
-msgstr "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1052
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
-msgstr "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1055
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
-msgstr "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
-#. Tag: literal
-#: configuration.xml:1058
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
-msgstr "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL with InnoDB"
-#. Tag: literal
-#: configuration.xml:1061
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
-msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL with MyISAM"
-#. Tag: literal
-#: configuration.xml:1064
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
-msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
-msgstr "Oracle (any version)"
+msgstr "Oracle (toutes versions)"
-#. Tag: literal
-#: configuration.xml:1067
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.OracleDialect</literal>"
#. Tag: entry
-#: configuration.xml:1070
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 9i"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 9i"
-#. Tag: literal
-#: configuration.xml:1070
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
-msgstr "org.hibernate.dialect.Oracle9Dialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
#. Tag: entry
-#: configuration.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 10g"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 10g"
-#. Tag: literal
-#: configuration.xml:1073
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1076
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
-msgstr "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
-#. Tag: literal
-#: configuration.xml:1079
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
-msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
-#. Tag: literal
-#: configuration.xml:1082
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
-msgstr "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1085
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
-msgstr "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1088
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
-msgstr "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InformixDialect</literal>"
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1091
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
-msgstr "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.HSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1094
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
-msgstr "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.IngresDialect</literal>"
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
msgstr "Progress"
-#. Tag: literal
-#: configuration.xml:1097
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
-msgstr "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.ProgressDialect</literal>"
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1100
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
-msgstr "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MckoiDialect</literal>"
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1103
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
-msgstr "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
-#. Tag: literal
-#: configuration.xml:1106
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
-msgstr "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
-#. Tag: literal
-#: configuration.xml:1109
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
-msgstr "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1112
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
-msgstr "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
-msgstr "Chargement par Jointure Ouverte"
+msgstr "Chargement par jointure externe"
#. Tag: para
-#: configuration.xml:1123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching</emphasis> will often increase performance by "
@@ -2578,17 +1707,16 @@
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT</literal>."
msgstr ""
-"Si votre base de données supporte les outer joins de type ANSI, Oracle ou "
-"Sybase, <emphasis>le chargement par jointure ouverte</emphasis> devrait "
-"améliorer les performances en limitant le nombre d'aller-retour avec la base "
-"de données (la base de données effectuant donc potentiellement plus de "
-"travail). Le chargement par jointure ouverte permet à un graphe entier "
+"Si votre base de données supporte les jointures externes de type ANSI, "
+"Oracle ou Sybase, <emphasis>le chargement par jointure externe</emphasis> "
+"devrait améliorer les performances en limitant le nombre d'aller-retour avec "
+"la base de données (la base de données effectuant donc potentiellement plus "
+"de travail). Le chargement par jointure ouverte permet à un graphe entier "
"d'objets connectés par une relation plusieurs-à -un, un-à -plusieurs ou un-à -"
-"un d'être chargé en un seul <literal>SELECT</literal> SQL."
+"un d'être chargé en un seul SQL<literal>SELECT</literal>."
#. Tag: para
-#: configuration.xml:1132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
"the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</"
@@ -2596,30 +1724,27 @@
"fetching for one-to-one and many-to-one associations that have been mapped "
"with <literal>fetch=\"join\"</literal>."
msgstr ""
-"Le chargement par jointure ouverte peut être désactiver "
+"Le chargement par jointure ouverte peut être désactivé "
"<emphasis>globalement</emphasis> en mettant la propriété <literal>hibernate."
"max_fetch_depth</literal> Ã <literal>0</literal>. Une valeur de <literal>1</"
-"literal> ou plus active le chargement par jointure ouverte pour les "
-"associatiosn un-à -un et plusieurs-à -un qui ont été mappée avec "
-"<literal>fetch=\"join\"</literal>."
+"literal> ou plus active le chargement par jointure externe pour les "
+"associations un-à -un et plusieurs-à -un qui ont été mappées avec "
+"<literal>fetch=\"join\"</literal>. "
#. Tag: para
-#: configuration.xml:1140
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
msgstr ""
-"Reportez vous à <xref linkend=\"performance-fetching\"/> pour plus "
-"d'information."
+"Reportez vous à <xref linkend=\"performance-fetching\" /> pour plus "
+"d'informations."
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
msgstr "Flux binaires"
#. Tag: para
-#: configuration.xml:1149
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
@@ -2627,90 +1752,65 @@
"should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
"<emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
-"Oracle limite la taille d'un tableau de <literal>byte</literal> qui peuvent "
-"être passées à et vers son pilote JDBC. Si vous souhaitez utiliser des "
-"instances larges de type <literal>binary</literal> ou <literal>serializable</"
-"literal>, vous devez activer la propriété <literal>hibernate.jdbc."
-"use_streams_for_binary</literal>. <emphasis>C'est une fonctionalité de "
-"niveau système uniquement.</emphasis>"
+"Oracle limite la taille d'un tableau d'<literal>octets</literal> qui peuvent "
+"être passés vers et à partir de son pilote JDBC. Si vous souhaitez utiliser "
+"des instances larges de type <literal>binary</literal> ou "
+"<literal>serializable</literal>, vous devez activer la propriété "
+"<literal>hibernate.jdbc.use_streams_for_binary</literal>. <emphasis>C'est "
+"une fonctionalité de niveau système uniquement.</emphasis>"
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
msgstr "Cache de second niveau et cache de requêtes"
#. Tag: para
-#: configuration.xml:1162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
"Les propriétés préfixées par <literal>hibernate.cache</literal> vous "
-"permettent d'utiliser un système de cache de second niveau. Ce cache peut "
-"avoir une portée dans le processus ou même être utilisable dans un système "
-"distribué. Référez vous au chapitre <xref linkend=\"performance-cache\"/> "
-"pour plus de détails."
+"permettent d'utiliser un système de cache de second niveau avec Hibernate. "
+"Référez vous à <xref linkend=\"performance-cache\" /> pour plus de détails."
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
-msgstr "Substitution dans le langage de requêtage"
+msgstr "Substitution dans le langage de requêtes"
#. Tag: para
-#: configuration.xml:1174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
-"Vous pouvez définir de nouveaux tokens dans les requêtes Hibernate en "
-"utilisant la propriété <literal>hibernate.query.substitutions</literal>. Par "
-"exemple :"
+"Vous pouvez définir de nouveaux jetons dans les requêtes Hibernate en "
+"utilisant <literal>hibernate.query.substitutions</literal>. Par exemple :"
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions vrai=1, faux=0"
-
#. Tag: para
-#: configuration.xml:1181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
"literal> to be translated to integer literals in the generated SQL."
msgstr ""
-"remplacerait les tokens <literal>vrai</literal> et <literal>faux</literal> "
-"par des entiers dans le SQL généré."
+"Cela signifierait que les jetons <literal>true</literal> et <literal>false</"
+"literal> seraient transformés par des entiers dans le SQL généré."
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1188
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
-msgstr ""
-"permettrait de renommer la fonction SQL <literal>LOWER</literal> en "
-"<literal>toLowercase</literal>"
+msgstr "Cela permettrait de renommer la fonction SQL <literal>LOWER</literal>."
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
msgstr "Statistiques Hibernate"
#. Tag: para
-#: configuration.xml:1197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
@@ -2719,20 +1819,18 @@
"interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
"Si vous activez <literal>hibernate.generate_statistics</literal>, Hibernate "
-"va fournir un certains nombre de métriques utiles pour régler les "
-"performances d'une application qui tourne via <literal>SessionFactory."
-"getStatistics()</literal>. Hibernate peut aussi être configuré pour exposer "
-"ces statistiques via JMX. Lisez les Javadoc des interfaces dans le package "
-"<literal>org.hibernate.stats</literal> pour plus d'informations."
+"fournira un certain nombre de métriques utiles pour régler les performances "
+"d'une application qui tourne via <literal>SessionFactory.getStatistics()</"
+"literal>. Hibernate peut aussi être configuré pour exposer ces statistiques "
+"via JMX. Lisez les Javadoc des interfaces dans le paquetage <literal>org."
+"hibernate.stats</literal> pour plus d'informations. "
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
-msgstr "Tracer"
+msgstr "Journalisation"
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2748,10 +1846,22 @@
"properties file is distributed with Hibernate in the <literal>src/</literal> "
"directory."
msgstr ""
+"Hibernate utilise <ulink url=\"http://www.slf4j.org/\">Simple Logging Facade "
+"for Java</ulink> (SLF4J) pour enregistrer divers événements du système. "
+"SLF4J peut diriger votre sortie de logging vers plusieurs structures de "
+"loggings (NOP, Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) "
+"suivant la liaison que vous choisirez. Pour pouvoir configurer votre "
+"logging, vous aurez besoin de <filename>slf4j-api.jar</filename> dans votre "
+"chemin de classe, ainsi que du fichier jar pour votre liaison préférée - "
+"<filename>slf4j-log4j12.jar</filename> pour Log4J. Voir la documentation "
+"SLF4J <ulink url=\"http://www.slf4j.org/manual.html\">documentation</ulink> "
+"pour davantage d'informations. Pour utiliser Log4j, vous aurez aussi besoin "
+"de mettre un fichier <filename>log4j.properties</filename> dans votre chemin "
+"de classe. Un exemple de fichier de propriétés est distribué avec Hibernate "
+"dans le répertoire <literal>src/</literal>."
#. Tag: para
-#: configuration.xml:1222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
@@ -2759,166 +1869,142 @@
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
-"Nous vous recommandons fortement de vous familiariser avec les messages des "
-"traces d'Hibernate. Beaucoup de soins a été apporté pour donner le plus de "
-"détails possible sans les rendre illisibles. C'est un outil essentiel en cas "
-"de soucis. Les catégories de trace les plus intéressantes sont les "
-"suivantes :"
+"Il est vivement recommandé de vous familiariser avec les messages des logs "
+"de Hibernate. Beaucoup de soin a été apporté pour donner le plus de détails "
+"possible sans les rendre illisibles. C'est un outil essentiel en cas de "
+"problèmes. Les catégories de logs les plus intéressantes sont les "
+"suivantes : "
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
-msgstr "Catégories de trace d'Hibernate"
+msgstr "Catégories de logs de Hibernate"
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr "Catégorie"
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr "Fonction"
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
-msgstr "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
+msgstr "<literal>org.hibernate.SQL</literal>"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
msgstr ""
-"Trace toutes les requêts SQL de type DML (gestion des données) qui sont "
-"exécutées"
+"Journalise toutes les requêtes SQL de type DML (gestion des données) qui "
+"sont exécutées"
-#. Tag: literal
-#: configuration.xml:1247
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
-msgstr "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
+msgstr "<literal>org.hibernate.type</literal>"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
-msgstr "Trace tous les paramètres JDBC"
+msgstr "Journalise tous les paramètres JDBC"
-#. Tag: literal
-#: configuration.xml:1251
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
-msgstr "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
+msgstr "<literal>org.hibernate.tool. hbm2ddl</literal>"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
msgstr ""
-"Trace toutes les requêts SQL de type DDL (gestion de la structure de la "
-"base) qui sont exécutées"
+"Journalise toutes les requêtes SQL de type DDL (gestion de la structure de "
+"la base) qui sont exécutées"
-#. Tag: literal
-#: configuration.xml:1255
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
-msgstr "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
+msgstr "<literal>org.hibernate.pretty</literal>"
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
msgstr ""
-"Trace l'état de toutes les entités (20 entités maximum) qui sont associées "
-"avec la session hibernate au moment du flush"
+"Journalise l'état de toutes les entités (20 entités maximum) associées avec "
+"la session Hibernate au moment du flush"
-#. Tag: literal
-#: configuration.xml:1262
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
-msgstr "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
+msgstr "<literal>org.hibernate.cache</literal>"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
-msgstr "Trace toute l'activité du cache de second niveau"
+msgstr "Journalise toute activité du cache de second niveau"
-#. Tag: literal
-#: configuration.xml:1266
-#, no-c-format
-msgid "org.hibernate.transaction"
-msgstr "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
+msgstr "<literal>org.hibernate. transaction</literal>"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
-msgstr "Trace toute l'activité relative aux transactions"
+msgstr "Journalise toute activité relative aux transactions"
-#. Tag: literal
-#: configuration.xml:1270
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
-msgstr "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
+msgstr "<literal>org.hibernate.jdbc</literal>"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
-msgstr "Trace toute acquisition de ressource JDBC"
+msgstr "Journalise toute acquisition de ressource JDBC "
-#. Tag: literal
-#: configuration.xml:1274
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
-msgstr "org.hibernate.hql.ast.AST"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
+msgstr "<literal>org.hibernate.hql. ast.AST</literal>"
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
msgstr ""
-"Trace l'arbre syntaxique des requêtes HQL et SQL durant l'analyse syntaxique "
-"des requêtes"
+"Journalise l'arbre syntaxique des requêtes HQL et SQL durant l'analyse "
+"syntaxique des requêtes"
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
-msgstr "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
+msgstr "<literal>org.hibernate.secure</literal>"
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
-msgstr "Trace toutes les demandes d'autorisation JAAS"
+msgstr "Journalise toutes les demandes d'autorisation JAAS"
-#. Tag: literal
-#: configuration.xml:1284
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
+msgid "<literal>org.hibernate</literal>"
+msgstr "<literal>org.hibernate</literal>"
#. Tag: entry
-#: configuration.xml:1285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
msgstr ""
-"Trace tout (beaucoupe d'informations, mais très utile pour résoudre les "
+"Journalise tout (beaucoup d'informations, mais très utile pour résoudre les "
"problèmes)."
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2932,13 +2018,12 @@
"propriété <literal>hibernate.show_sql</literal> activée."
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
-msgstr "Implémenter une <literal>NamingStrategy</literal>"
+msgstr ""
+"Sélectionne une <literal>NamingStrategy</literal> (stratégie de nommage)"
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
@@ -2949,8 +2034,7 @@
"de données."
#. Tag: para
-#: configuration.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
@@ -2961,36 +2045,23 @@
msgstr ""
"Vous pouvez fournir des règles pour automatiquement générer les identifiants "
"de base de données à partir des identifiants Java, ou transformer une "
-"colonne ou table \"logique\" donnée dans le fichier de mapping en une "
+"colonne ou table \"logique\" donnée dans le fichier de mappage en une "
"colonne ou table \"physique\". Cette fonctionnalité aide à réduire la "
-"verbosité de documents de mapping, en éliminant le bruit répétitif (les "
+"verbosité de documents de mappage, en éliminant le bruit répétitif (les "
"préfixes <literal>TBL_</literal> par exemple). La stratégie par défaut "
-"utilisée par Hibernate est minimale."
+"utilisée par Hibernate est assez minimale."
#. Tag: para
-#: configuration.xml:1320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
"Vous pouvez définir une stratégie différente en appelant "
"<literal>Configuration.setNamingStrategy()</literal> avant d'ajouter des "
-"mappings :"
+"mappages : "
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
@@ -3001,13 +2072,11 @@
"applications."
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
msgstr "Fichier de configuration XML"
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -3022,63 +2091,17 @@
"présents."
#. Tag: para
-#: configuration.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
"Le fichier de configuration XML doit par défaut se placer à la racine du "
-"<literal>CLASSPATH</literal>. En voici un exemple :"
+"<literal>CLASSPATH</literal>. En voici un exemple : "
-#. Tag: programlisting
-#: configuration.xml:1349
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1351
-#, fuzzy, no-c-format
-msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml</literal> is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
@@ -3086,62 +2109,42 @@
"cfg.xml</literal>. Both are equivalent, except for the above mentioned "
"benefits of using the XML syntax."
msgstr ""
-"Commme vous pouvez le voir, l'avantage de cette approche est "
-"l'externalisation des noms des fichiers de mapping de la configuration. Le "
+"Comme vous pouvez le constater, l'avantage de cette approche est "
+"l'externalisation des noms des fichiers de mappage de la configuration. Le "
"fichier <literal>hibernate.cfg.xml</literal> est également plus pratique "
"quand on commence à régler le cache d'Hibernate. Notez que vous pouvez "
"choisir entre utiliser <literal>hibernate.properties</literal> ou "
"<literal>hibernate.cfg.xml</literal>, les deux sont équivalents, sauf en ce "
"qui concerne les bénéfices de l'utilisation de la syntaxe XML mentionnés ci-"
-"dessus."
+"dessus. "
#. Tag: para
-#: configuration.xml:1360
-#, fuzzy, no-c-format
+#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
msgstr ""
"Avec la configuration XML, démarrer Hibernate devient donc aussi simple que "
-"ceci :"
+"ceci : "
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
-#, fuzzy, no-c-format
-msgid "You can select a different XML configuration file using:"
-msgstr "You can pick a different XML configuration file using"
-
-#. Tag: programlisting
-#: configuration.xml:1370
#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
+msgid "You can select a different XML configuration file using:"
msgstr ""
+"Vous pouvez choisir un fichier de configuration XML différent en utilisant : "
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
-msgstr "Intégration à un serveur d'application J2EE"
+msgstr "Intégration à un serveur d'applications J2EE"
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr ""
-"Hibernate possède les points suivants d'intégration à l'infrastructure J2EE :"
+"Hibernate possède les points d'intégration suivants pour l'infrastructure "
+"J2EE :"
#. Tag: para
-#: configuration.xml:1383
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
@@ -3153,18 +2156,17 @@
"literal> API for this to keep your code portable."
msgstr ""
"<emphasis>Source de données gérée par le conteneur</emphasis> : Hibernate "
-"peut utiliser des connexions JDBC gérées par le conteneur et fournie par "
+"peut utiliser des connexions JDBC gérées par le conteneur et fournies par "
"l'intermédiaire de JNDI. Souvent, un <literal>TransactionManager</literal> "
"compatible JTA et un <literal>ResourceManager</literal> s'occupent de la "
-"gestion des transactions (CMT). Ils sont particulièrement prévus pour "
-"pouvoir gérer des transactions distribuées sur plusieurs sources de données. "
-"Vous pouvez bien sûr également définir vos limites de transaction dans votre "
-"programme (BMT) ou vous pouvez sinon aussi utiliser l'API optionnelle "
-"<literal>Transaction</literal> d'Hibernate qui vous garantira la portabilité "
-"de votre code entre plusieurs serveurs d'application."
+"gestion des transactions (CMT). Ils sont conçus en particulier pour gérer "
+"des transactions distribuées sur plusieurs sources de données. Vous pouvez "
+"biensûr également définir les limites des transactions dans votre programme "
+"(BMT) ou vous pouvez par ailleurs utiliser l'API optionnelle "
+"<literal>Transaction</literal> de Hibernate qui vous garantira la "
+"portabilité de votre code entre plusieurs serveurs d'application. "
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
@@ -3174,8 +2176,7 @@
"sa <literal>SessionFactory</literal> à JNDI après le démarrage."
#. Tag: para
-#: configuration.xml:1407
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
"literal> can be automatically bound to the scope of JTA transactions. Simply "
@@ -3185,18 +2186,17 @@
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
-"<emphasis>Association de la Session à JTA:</emphasis> La <literal>Session</"
-"literal> Hibernate peut être associée automatiquement à une transaction JTA "
-"si vous utilisez les EJBs. Vous avez juste à récupérer la "
+"<emphasis>Association de la Session à JTA:</emphasis> la <literal>Session</"
+"literal> Hibernate peut être automatiquement associée à la portée des "
+"transactions JTA si vous utilisez les EJB. Vous avez juste à récupérer la "
"<literal>SessionFactory</literal> depuis JNDI et à récupérer la "
"<literal>Session</literal> courante. Hibernate s'occupe de vider et fermer "
-"la <literal>Session</literal> lorsque le transaction JTA se termine. La "
-"démarcation des transactions se fait de manière déclarative dans les "
-"descripteurs de déploiement."
+"la <literal>Session</literal> lorsque votre transaction JTA se termine. La "
+"démarcation des transactions se fait de manière déclarative (CMT) ou de "
+"façon programmatique (BMT/UserTransaction)."
#. Tag: para
-#: configuration.xml:1420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
@@ -3206,37 +2206,34 @@
"take care of service dependencies (datasource has to be available before "
"Hibernate starts, etc)."
msgstr ""
-"<emphasis>Déploiement JMX :</emphasis>Si vous avez un serveur d'application "
+"<emphasis>Déploiement JMX :</emphasis>Si vous avez un serveur d'applications "
"compatible JMX (JBoss AS par exemple), vous pouvez choisir de déployer "
-"Hibernate en temps que MBean géré par le serveur. Cela vous évite de coder "
-"la ligne de démarrage qui permet de construire la <literal>SessionFactory</"
+"Hibernate en tant que MBean géré par le serveur. Cela vous évite de coder la "
+"ligne de démarrage qui permet de construire la <literal>SessionFactory</"
"literal> depuis la <literal>Configuration</literal>. Le conteneur va "
"démarrer votre <literal>HibernateService</literal>, et va idéalement "
"s'occuper des dépendances entre les services (la source de données doit être "
-"disponible avant qu'Hibernate ne démarre, etc)."
+"disponible avant le démarrage de Hibernate, etc). "
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release</literal> to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
-"En fonction de votre environnement, vous devrez peut être mettre l'option de "
-"configuration <literal>hibernate.connection.aggressive_release</literal> Ã "
-"vrai si le serveur d'application affiche des exceptions de type \"connection "
+"En fonction de votre environnement, vous mettrez l'option de configuration "
+"<literal>hibernate.connection.aggressive_release</literal> Ã true si le "
+"serveur d'applications affiche des exceptions de type \"connection "
"containment\"."
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "Configuration de la stratégie transactionnelle"
#. Tag: para
-#: configuration.xml:1440
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
@@ -3246,16 +2243,15 @@
"and <literal>UserTransaction</literal> when needed."
msgstr ""
"L'API de la <literal>Session</literal> Hibernate est indépendante de tout "
-"système de démarcation des transactions qui peut être présent dans votre "
-"architecture. Si vous laissez Hibernate utiliser l'API JDBC directement via "
-"un pool de connexion, vous devrez commencer et terminer vos transactions en "
-"utilisant l'API JDBC. Si votre application tourne à l'intérieur d'un serveur "
-"d'application J2EE, vous voudrez peut être utiliser les transactions gérées "
-"par les beans (BMT) et appeller l'API JTA et <literal>UserTransaction</"
-"literal> lorsque cela est nécessaire."
+"système de démarcation des transactions, présent dans votre architecture. Si "
+"vous laissez Hibernate utiliser l'API JDBC directement via un pool de "
+"connexion, vous commencerez et terminerez vos transactions en appelant l'API "
+"JDBC. Si votre application tourne à l'intérieur d'un serveur d'applications "
+"J2EE, vous utiliserez peut être les transactions gérées par les beans (BMT) "
+"et vous appellerez l'API JTA et <literal>UserTransaction</literal> lorsque "
+"cela est nécessaire. "
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -3266,75 +2262,66 @@
"literal>."
msgstr ""
"Pour conserver votre code portable entre ces deux environnements (et "
-"d'autres éventuels) nous vous recommandons d'utiliser l'API optionnelle "
-"<literal>Transaction</literal> d'Hibernate, qui va encapsuler et masquer le "
+"d'autres), nous vous recommandons d'utiliser l'API optionnelle "
+"<literal>Transaction</literal> d'Hibernate, qui encapsule et masque le "
"système de transaction sous-jacent. Pour cela, vous devez préciser une "
"classe de fabrique d'instances de <literal>Transaction</literal> en "
-"positionnant la propriété <literal>hibernate.transaction.factory_class</"
-"literal>."
+"positionnant la propriété de configuration <literal>hibernate.transaction."
+"factory_class</literal>."
#. Tag: para
-#: configuration.xml:1455
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are three standard, or built-in, choices:"
-msgstr "Il existe trois choix standards (fournis) :"
+msgstr "Il existe trois choix standards (intégrés) : "
-#. Tag: literal
-#: configuration.xml:1461
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
-msgstr "net.sf.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
msgstr ""
-"délègue aux transactions de la base de données (JDBC). Valeur par défaut."
+"délègue aux transactions de la base de données (JDBC) (valeur par défaut)."
-#. Tag: literal
-#: configuration.xml:1467
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
-msgstr "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
-"délègue à CMT si une transaction existante est sous ce contexte (ex: méthode "
-"d'un EJB session), sinon une nouvelle transaction est entamée et une "
-"transaction gérée par le bean est utilisée."
+"délègue à CMT si une transaction existante est sous ce contexte (par ex : "
+"méthode d'un EJB session), sinon une nouvelle transaction est entamée et une "
+"transaction gérée par le bean est utilisée. "
-#. Tag: literal
-#: configuration.xml:1477
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
-msgstr "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
-msgstr "délègue à aux transactions JTA gérées par le conteneur"
+msgstr "délègue aux transactions JTA gérées par le conteneur"
#. Tag: para
-#: configuration.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
msgstr ""
-"Vous pouvez également définir votre propre stratégie transactionnelle (pour "
-"un service de transaction CORBA par exemple)."
+"Vous pouvez également définir vos propres stratégies transactionnelles (pour "
+"un service de transaction CORBA par exemple). "
#. Tag: para
-#: configuration.xml:1489
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
@@ -3343,160 +2330,160 @@
"have to specify how Hibernate should obtain a reference to the "
"<literal>TransactionManager</literal>:"
msgstr ""
-"Certaines fonctionnalités d'Hibernate (i.e. le cache de second niveau, "
-"l'association automatique des Session à JTA, etc.) nécessitent l'accès au "
-"<literal>TransactionManager</literal> JTA dans un environnement \"managé\". "
-"Dans un serveur d'application, vous devez indiquer comment Hibernate peut "
-"obtenir une référence vers le <literal>TransactionManager</literal>, car "
-"J2EE ne fournit pas un seul mécanisme standard."
+"Certaines fonctionnalités de Hibernate (c'est-à -dire le cache de second "
+"niveau, l'association automatique des Sessions à JTA, etc.) nécessitent "
+"l'accès au <literal>TransactionManager</literal> JTA dans un environnement "
+"géré. Dans un serveur d'applications, vous devez indiquer comment Hibernate "
+"peut obtenir une référence vers le <literal>TransactionManager</literal>, "
+"car J2EE ne fournit pas un seul mécanisme standard. "
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "TransactionManagers JTA"
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
-msgstr "Fabrique de Transaction"
+msgstr "Fabrique de transaction"
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
-msgstr "Serveur d'application"
+msgstr "Serveur d'applications"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JBossTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WeblogicTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
-msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereExtendedJTATransactionLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
-msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. OrionTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
-msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. ResinTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOTMTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOnASTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
-msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JRun4TransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1545
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
-msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. BESTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
msgstr "<literal>SessionFactory</literal> associée au JNDI"
#. Tag: para
-#: configuration.xml:1557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
"lookup function of the factory and create new <literal>Session</literal>s. "
@@ -3505,13 +2492,12 @@
msgstr ""
"Une <literal>SessionFactory</literal> Hibernate associée au JNDI peut "
"simplifier l'accès à la fabrique et donc la création de nouvelles "
-"<literal>Session</literal>s. Notez que cela n'est pas lié avec les "
+"<literal>Session</literal> s. Notez que cela n'est pas lié avec les "
"<literal>Datasource</literal> associées au JNDI, elles utilisent juste le "
-"même registre."
+"même registre ! "
#. Tag: para
-#: configuration.xml:1564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</"
@@ -3521,15 +2507,14 @@
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
"Si vous désirez associer la <literal>SessionFactory</literal> à un nom JNDI, "
-"spécifiez un nom (ex. <literal>java:hibernate/SessionFactory</literal>) en "
-"utilisant la propriété <literal>hibernate.session_factory_name</literal>. Si "
-"cette propriété est omise, la <literal>SessionFactory</literal> ne sera pas "
-"associée au JNDI (c'est particulièrement pratique dans les environnements "
-"ayant une implémentation de JNDI en lecture seule, comme c'est le cas pour "
-"Tomcat)."
+"spécifiez un nom (par ex. <literal>java:hibernate/SessionFactory</literal>) "
+"en utilisant la propriété <literal>hibernate.session_factory_name</literal>. "
+"Si cette propriété est omise, la <literal>SessionFactory</literal> ne sera "
+"pas associée au JNDI (c'est particulièrement pratique dans les "
+"environnements ayant une implémentation JNDI par défaut en lecture seule, "
+"comme c'est le cas pour Tomcat). "
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -3541,11 +2526,10 @@
"utilisera les valeurs de <literal>hibernate.jndi.url</literal>, "
"<literal>hibernate.jndi.class</literal> pour instancier un contexte "
"d'initialisation. S'ils ne sont pas spécifiés, l'<literal>InitialContext</"
-"literal> par défaut sera utilisé."
+"literal> par défaut sera utilisé. "
#. Tag: para
-#: configuration.xml:1579
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
@@ -3559,11 +2543,10 @@
"Cela signifie que vous devez avoir cet appel dans un code de démarrage (ou "
"dans une classe utilitaire) dans votre application sauf si vous utilisez le "
"déploiement JMX avec le service <literal>HibernateService</literal> présenté "
-"plus tard dans ce document."
+"plus tard dans ce document. "
#. Tag: para
-#: configuration.xml:1586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
"class, you can obtain the <literal>SessionFactory</literal> using a JNDI "
@@ -3571,11 +2554,10 @@
msgstr ""
"Si vous utilisez <literal>SessionFactory</literal> JNDI, un EJB ou n'importe "
"quelle autre classe peut obtenir la <literal>SessionFactory</literal> en "
-"utilisant un lookup JNDI."
+"utilisant une recherche JNDI. "
#. Tag: para
-#: configuration.xml:1591
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
"JNDI in a managed environment and use a <literal>static</literal> singleton "
@@ -3585,33 +2567,30 @@
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
-"Nous recommandons que vous liiez la <literal>SessionFactory</literal> Ã JNDI "
-"dans les environnements managés et que vous utilisiez un singleton "
-"<literal>static</literal> si ce n'est pas le cas. Pour isoler votre "
-"application de ces détails, nous vous recommandons aussi de masquer le code "
-"de lookup actuel pour une <literal>SessionFactory</literal> dans une classe "
-"helper, comme <literal>HibernateUtil.getSessionFactory()</literal>. Notez "
-"qu'une telle classe est aussi un moyen efficace de démarrer Hibernate—"
-"voir chapitre 1."
+"Nous recommandons de lier la <literal>SessionFactory</literal> Ã JNDI dans "
+"les environnements gérés et d'utilisier un singleton <literal>static</"
+"literal> si ce n'est pas le cas. Pour isoler votre application de ces "
+"détails, nous vous recommandons aussi de masquer le code de recherche actuel "
+"pour une <literal>SessionFactory</literal> dans une classe helper, comme "
+"<literal>HibernateUtil.getSessionFactory()</literal>. Notez qu'une telle "
+"classe est aussi un moyen efficace de démarrer Hibernate - voir chapitre 1. "
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
-msgstr "Association automatique de la Session à JTA"
+msgstr "Gestion du contexte de la session courante à JTA"
#. Tag: para
-#: configuration.xml:1605
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
-"a discussion of contextual sessions see <link linkend=\"architecture-current-"
-"session\"></link>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
+"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
+"is no Hibernate <literal>Session</literal> associated with the current JTA "
+"transaction, one will be started and associated with that JTA transaction "
+"the first time you call <literal>sessionFactory.getCurrentSession()</"
+"literal>. The <literal>Session</literal>s retrieved via "
"<literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
@@ -3626,34 +2605,32 @@
msgstr ""
"Le moyen le plus simple de gérer les <literal>Session</literal>s et "
"transactions est la gestion automatique de session \"courante\" offerte par "
-"Hibernate. Voir détail à <xref linkend=\"architecture-current-session"
-"\">current sessions</xref>. En utilisant le contexte de session <literal>"
-"\"jta\"</literal> session context, s'il n'y a pas de <literal>Session</"
-"literal> associée à la transaction JTA courante, une session sera démarrée "
-"et associée à la transaction JTA courante la première fois que vous appelez "
-"<literal>sessionFactory.getCurrentSession()</literal>. Les <literal>Session</"
-"literal>s obtenue via <literal>getCurrentSession()</literal> dans une "
-"contexte <literal>\"jta\"</literal> seront automatiquement flushées avant la "
-"validation de la transaction, fermées une fois la transaction complétée, et "
-"libéreront les connexions JDBC de manière aggressive après chaque statement. "
-"Ceci permet aux <literal>Session</literal>s d'être gérées par le cycle de "
-"vie de la transaction JTA à la quelle est sont associées, laissant le code "
-"de l'utilisateur propre de ce type de gestion. Votre code peut soit utiliser "
-"JTA de manière programmatique via <literal>UserTransaction</literal>, ou (ce "
-"qui est recommandé pour la portabilité du code) utiliser l'API "
-"<literal>Transaction</literal> API pour marquer les limites. Si vous "
-"exécutez sous un conteneur EJB, la démarcation déclarative des transactions "
-"avec CMT est recommandée."
+"Hibernate. Pour plus d'informations, consultez les sessions courantes <xref "
+"linkend=\"architecture-current-session\" />. En utilisant le contexte de "
+"session <literal>\"jta\"</literal> session context, s'il n'y a pas de "
+"<literal>Session</literal> associée à la transaction JTA courante, une "
+"session sera démarrée et associée à la transaction JTA courante la première "
+"fois que vous appelez <literal>sessionFactory.getCurrentSession()</literal>. "
+"Les <literal>Session</literal> s obtenues via <literal>getCurrentSession()</"
+"literal> dans un contexte <literal>\"jta\"</literal> seront automatiquement "
+"flushées avant la validation de la transaction, fermées une fois la "
+"transaction complétée, et libèreront les connexions JDBC de manière "
+"agressive après chaque statement. Ceci permet aux <literal>Session</literal> "
+"s d'être gérées par le cycle de vie de la transaction JTA à laquelle il est "
+"associé, ainsi le code de l'utilisateur n'a pas à se préoccupper de ce type "
+"de gestion. Votre code peut soit utiliser JTA de manière programmatique via "
+"<literal>UserTransaction</literal>, ou (ce qui est recommandé pour la "
+"portabilité du code) utiliser l'API <literal>Transaction</literal> pour "
+"marquer les limites. Si vous exécutez sous un conteneur EJB, la démarcation "
+"déclarative des transactions avec CMT est recommandée. "
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
msgstr "Déploiement JMX"
#. Tag: para
-#: configuration.xml:1630
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
@@ -3662,15 +2639,14 @@
"a <emphasis>managed service</emphasis>."
msgstr ""
"La ligne <literal>cfg.buildSessionFactory()</literal> doit toujours être "
-"exécutée quelque part pour avoir une <literal>SessionFactory</literal> dans "
-"JNDI. Vous pouvez faire cela dans un bloc d'initialisation <literal>static</"
-"literal> (comme celui qui se trouve dans la classe <literal>HibernateUtil</"
-"literal>) ou vous pouvez déployer Hibernate en temps que <emphasis>service "
-"managé</emphasis>."
+"exécutée quelque part pour obtenir une <literal>SessionFactory</literal> "
+"dans JNDI. Vous pouvez faire cela dans un bloc d'initialisation "
+"<literal>static</literal> (comme celui qui se trouve dans la classe "
+"<literal>HibernateUtil</literal>) ou vous pouvez déployer Hibernate en temps "
+"que <emphasis>service géré</emphasis>. "
#. Tag: para
-#: configuration.xml:1638
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
"literal> for deployment on an application server with JMX capabilities, such "
@@ -3678,66 +2654,14 @@
"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
"Hibernate est distribué avec <literal>org.hibernate.jmx.HibernateService</"
-"literal> pour le déploiement sur un serveur d'application avec le support de "
-"JMX comme JBoss AS. Le déploiement et la configuration sont spécifiques à "
+"literal> pour le déploiement sur un serveur d'applications avec le support "
+"de JMX comme JBoss AS. Le déploiement et la configuration sont spécifiques à "
"chaque vendeur. Voici un fichier <literal>jboss-service.xml</literal> "
-"d'exemple pour JBoss 4.0.x:"
+"d'exemple pour JBoss 4.0.x :"
-#. Tag: programlisting
-#: configuration.xml:1645
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1647
-#, fuzzy, no-c-format
-msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
"packaged in a JAR file with the extension <literal>.sar</literal> (service "
"archive). You also need to package Hibernate, its required third-party "
@@ -3749,247 +2673,11 @@
"deployment."
msgstr ""
"Ce fichier est déployé dans un répertoire <literal>META-INF</literal> et est "
-"packagé dans un fichier JAR avec l'extension <literal>.sar</literal> "
-"(service archive). Vous devez également packager Hibernate, les librairies "
+"empaqueté dans un fichier JAR avec l'extension <literal>.sar</literal> "
+"(service archive). Vous devez également empaqueter Hibernate, les librairies "
"tierces requises, vos classes persistantes compilées et vos fichiers de "
-"mapping dans la même archive. Vos beans entreprise (souvent des EJBs "
-"session) peuvent rester dans leur propre fichier JAR mais vous pouvez "
-"inclure ce fichier JAR dans le jar principal du service pour avoir une seule "
-"unité déployable à chaud. Vous pouvez consulter la documentation de JBoss AS "
-"pour plus d'information sur les services JMX et le déploiement des EJBs."
-
-#~ msgid "Hibernate logs various events using Apache commons-logging."
-#~ msgstr ""
-#~ "Hibernate trace divers évènements en utilisant Apache commons-logging."
-
-#~ msgid ""
-#~ "The commons-logging service will direct output to either Apache Log4j (if "
-#~ "you include <literal>log4j.jar</literal> in your classpath) or JDK1.4 "
-#~ "logging (if running under JDK1.4 or above). You may download Log4j from "
-#~ "<literal>http://jakarta.apache.org</literal>. To use Log4j you will need "
-#~ "to place a <literal>log4j.properties</literal> file in your classpath, an "
-#~ "example properties file is distributed with Hibernate in the <literal>src/"
-#~ "</literal> directory."
-#~ msgstr ""
-#~ "Le service commons-logging délèguera directement à Apache Log4j (si vous "
-#~ "incluez <literal>log4j.jar</literal> dans votre classpath) ou le système "
-#~ "de trace du JDK 1.4 (si vous tournez sous le JDK 1.4 et supérieur). Vous "
-#~ "pouvez télécharger Log4j à partir de <literal>http://jakarta.apache.org</"
-#~ "literal>. Pour utiliser Log4j, vous devrez placer dans votre classpath un "
-#~ "fichier <literal>log4j.properties</literal>. Un exemple de fichier est "
-#~ "distribué avec Hibernate dans le répertoire <literal>src/</literal>."
-
-#~ msgid "<placeholder-1/> (optional)"
-#~ msgstr "<placeholder-1/> (optionnelle)"
-
-#~ msgid "InitialContextFactory"
-#~ msgstr "InitialContextFactory"
-
-#~ msgid "class of the JNDI <placeholder-1/>"
-#~ msgstr "Classe de l'<placeholder-1/> du JNDI"
-
-#, fuzzy
-#~ msgid "eg."
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "eg.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "eg.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ex."
-
-#~ msgid "full.classname.of.Dialect"
-#~ msgstr "nom.complet.de.ma.classe.de.Dialect"
-
-#~ msgid "debug"
-#~ msgstr "debug"
-
-#~ msgid "SCHEMA_NAME"
-#~ msgstr "MON_SCHEMA"
-
-#~ msgid "CATALOG_NAME"
-#~ msgstr "CATALOG_NAME"
-
-#~ msgid "SessionFactory"
-#~ msgstr "SessionFactory"
-
-#, fuzzy
-#~ msgid "jndi/composite/name"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "jndi/nom/hierarchique\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "jndi/nom/compose"
-
-#~ msgid "0"
-#~ msgstr "0"
-
-#~ msgid "false"
-#~ msgstr "false"
-
-#~ msgid "Statement.setFetchSize()"
-#~ msgstr "Statement.setFetchSize()"
-
-#~ msgid "true"
-#~ msgstr "true"
-
-#~ msgid "executeBatch()"
-#~ msgstr "executeBatch()"
-
-#~ msgid "Batcher"
-#~ msgstr "Batcher"
-
-#~ msgid "classname.of.BatcherFactory"
-#~ msgstr "classname.of.BatcherFactory"
-
-#~ msgid "binary"
-#~ msgstr "binary"
-
-#~ msgid "serializable"
-#~ msgstr "serializable"
-
-#~ msgid "PreparedStatement.getGeneratedKeys()"
-#~ msgstr "PreparedStatement.getGeneratedKeys()"
-
-#~ msgid "true|false"
-#~ msgstr "true|false"
-
-#~ msgid "ConnectionProvider"
-#~ msgstr "ConnectionProvider"
-
-#~ msgid "classname.of.ConnectionProvider"
-#~ msgstr "classname.of.ConnectionProvider"
-
-#~ msgid "java.sql.Connection"
-#~ msgstr "java.sql.Connection"
-
-#~ msgid "1, 2, 4, 8"
-#~ msgstr "1, 2, 4, 8"
-
-#~ msgid "after_statement"
-#~ msgstr "after_statement"
-
-#~ msgid "after_transaction"
-#~ msgstr "after_transaction"
-
-#~ msgid "auto"
-#~ msgstr "auto"
-
-#~ msgid "hibernate.connection."
-#~ msgstr "hibernate.connection."
-
-#, fuzzy
-#~ msgid "<propertyName>"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<propertyName>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<propertyName>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<propertyName>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "propertyName"
-
-#~ msgid "DriverManager.getConnection()"
-#~ msgstr "DriverManager.getConnection()"
-
-#~ msgid "Pass the JDBC property <placeholder-1/> to <placeholder-2/>."
-#~ msgstr "Passe la propriété JDBC <placeholder-1/> à <placeholder-2/>."
-
-#~ msgid "hibernate.jndi."
-#~ msgstr "hibernate.jndi."
-
-#~ msgid "Pass the property <placeholder-1/> to the JNDI <placeholder-2/>."
-#~ msgstr "Passe la propriété <placeholder-1/> à l'<placeholder-2/> de JNDI."
-
-#~ msgid "CacheProvider"
-#~ msgstr "CacheProvider"
-
-#~ msgid "classname.of.CacheProvider"
-#~ msgstr "nom.de.classe.du.CacheProvider"
-
-#~ msgid "<cache>"
-#~ msgstr "<cache>"
-
-#~ msgid "QueryCache"
-#~ msgstr "QueryCacheFactory"
-
-#~ msgid "StandardQueryCache"
-#~ msgstr "StandardQueryCacheFactory"
-
-#~ msgid "classname.of.QueryCache"
-#~ msgstr "nom.de.la.classe.de.QueryCacheFactory"
-
-#~ msgid "prefix"
-#~ msgstr "prefix"
-
-#~ msgid "TransactionFactory"
-#~ msgstr "TransactionFactory"
-
-#~ msgid "Transaction"
-#~ msgstr "Transaction"
-
-#~ msgid "JDBCTransactionFactory"
-#~ msgstr "JDBCTransactionFactory"
-
-#~ msgid "classname.of.TransactionFactory"
-#~ msgstr "nom.de.classe.d.une.TransactionFactory"
-
-#~ msgid "JTATransactionFactory"
-#~ msgstr "JTATransactionFactory"
-
-#~ msgid "UserTransaction"
-#~ msgstr "UserTransaction"
-
-#~ msgid "TransactionManagerLookup"
-#~ msgstr "TransactionManagerLookup"
-
-#~ msgid "classname.of.TransactionManagerLookup"
-#~ msgstr "nom.de.classe.du.TransactionManagerLookup"
-
-#~ msgid "Session"
-#~ msgstr "Session"
-
-#~ msgid "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-#~ msgstr "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-
-#~ msgid "create-drop"
-#~ msgstr "create-drop"
-
-#~ msgid "hibernate.cfg.xml"
-#~ msgstr "hibernate.cfg.xml"
-
-#~ msgid "DB2"
-#~ msgstr "DB2"
+"mappage dans la même archive. Vos beans entreprise (souvent des EJB session) "
+"peuvent rester dans leur propre fichier JAR mais vous pouvez inclure ce "
+"fichier JAR dans le jar principal du service pour avoir une seule unité "
+"déployable à chaud. Vous pouvez consulter la documentation de JBoss AS pour "
+"plus d'informations sur les services JMX et le déploiement des EJB. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of events.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: events\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-11 09:16+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
-msgstr "Les intercepteurs et les événements"
+msgstr "Intercepteurs et événements"
#. Tag: para
-#: events.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
"inside Hibernate. This allows for the implementation of generic "
@@ -26,18 +30,15 @@
msgstr ""
"Il est souvent utile pour l'application de réagir à certains événements qui "
"surviennent dans Hibernate. Cela autorise l'implémentation de certaines "
-"sortes de fonctionnalités génériques, et d'extensions de fonctionnalités "
-"d'Hibernate."
+"fonctionnalités génériques, et l'extension de fonctionnalités d'Hibernate."
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr "Intercepteurs"
#. Tag: para
-#: events.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
"session to the application, allowing the application to inspect and/or "
@@ -50,145 +51,46 @@
"literal> is updated."
msgstr ""
"L'interface <literal>Interceptor</literal> fournit des \"callbacks\" de la "
-"session vers l'application et permettent à l'application de consulter et/ou "
-"de manipuler des propriétés d'un objet persistant avant qu'il soit "
-"sauvegardé, mis à jour, supprimé ou chargé. Une utilisation possible de "
-"cette fonctionnalité est de tracer l'accès à l'information. Par exemple, "
+"session vers l'application permettant à l'application de consulter et/ou de "
+"manipuler des propriétés d'un objet persistant avant qu'il soit sauvegardé, "
+"mis à jour, supprimé ou chargé. Une utilisation possible de cette "
+"fonctionnalité est de tracer l'accès à l'information. Par exemple, "
"l'<literal>Interceptor</literal> suivant positionne "
"<literal>createTimestamp</literal> quand un <literal>Auditable</literal> est "
"créé et met à jour la propriété <literal>lastUpdateTimestamp</literal> quand "
-"un <literal>Auditable</literal> est mis à jour."
+"un <literal>Auditable</literal> est mis à jour. "
#. Tag: para
-#: events.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
"<literal>EmptyInterceptor</literal>."
msgstr ""
"Vous pouvez soit implémenter <literal>Interceptor</literal> directement ou "
-"(mieux) étendre <literal>EmptyInterceptor</literal>."
+"(mieux) étendre <literal>EmptyInterceptor</literal>. "
-#. Tag: programlisting
-#: events.xml:56
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:58
-#, fuzzy, no-c-format
-msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
"<literal>SessionFactory</literal>-scoped."
msgstr ""
-"Interceptors come in two flavors: <literal>Session</literal>-scoped and "
-"<literal>SessionFactory</literal>-scoped."
+"Il y a deux types d'intercepteurs : lié à la <literal>Session</literal> et "
+"lié à la <literal>SessionFactory</literal>. "
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
"is opened using one of the overloaded SessionFactory.openSession() methods "
"accepting an <literal>Interceptor</literal>."
msgstr ""
-"A <literal>Session</literal>-scoped interceptor is specified when a session "
-"is opened using one of the overloaded SessionFactory.openSession() methods "
-"accepting an <literal>Interceptor</literal>."
+"Un intercepteur lié à la <literal>Session</literal> est défini lorsqu'une "
+"session est ouverte via l'invocation des méthodes surchargées SessionFactory."
+"openSession() acceptant un <literal>Interceptor</literal> (comme argument)."
-#. Tag: programlisting
-#: events.xml:69
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:71
-#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
"the <literal>Configuration</literal> object prior to building the "
@@ -199,31 +101,24 @@
"Ensure that you do not store session-specific states, since multiple "
"sessions will use this interceptor potentially concurrently."
msgstr ""
-"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
-"the <literal>Configuration</literal> object prior to building the "
-"<literal>SessionFactory</literal>. In this case, the supplied interceptor "
-"will be applied to all sessions opened from that <literal>SessionFactory</"
-"literal>; this is true unless a session is opened explicitly specifying the "
-"interceptor to use. <literal>SessionFactory</literal>-scoped interceptors "
-"must be thread safe, taking care to not store session-specific state since "
-"multiple sessions will use this interceptor (potentially) concurrently."
+"Un intercepteur lié à <literal>SessionFactory</literal> est enregistré avec "
+"l'objet <literal>Configuration</literal> avant la construction de la "
+"<literal>SessionFactory</literal>. Dans ce cas, les intercepteurs fournis "
+"seront appliqués à toutes les sessions ouvertes pour cette "
+"<literal>SessionFactory</literal>; ceci est vrai à moins que la session ne "
+"soit ouverte en spécifiant l'intercepteur à utiliser. Les intercepteurs liés "
+"à la <literal>SessionFactory</literal> doivent être thread safe, en faisant "
+"attention à ne pas stocker des états spécifiques de la session puisque "
+"plusieurs sessions peuvent utiliser cet intercepteur (potentiellement) de "
+"manière concurrente. "
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr "Système d'événements"
#. Tag: para
-#: events.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
"also use the Hibernate3 <emphasis>event</emphasis> architecture. The event "
@@ -231,12 +126,11 @@
msgstr ""
"Si vous devez réagir à des événements particuliers dans votre couche de "
"persistance, vous pouvez aussi utiliser l'architecture "
-"d'<emphasis>événements</emphasis> d'Hibernate3. Le système d'événements peut "
-"être utilisé en supplément ou en remplacement des interceptors."
+"d'<emphasis>événements</emphasis> de Hibernate3. Le système d'événements "
+"peut être utilisé en supplément ou en remplacement des interceptors. "
#. Tag: para
-#: events.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
"event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</"
@@ -256,7 +150,7 @@
"Essentiellement toutes les méthodes de l'interface <literal>Session</"
"literal> sont corrélées à un événement. Vous avez un <literal>LoadEvent</"
"literal>, un <literal>FlushEvent</literal>, etc (consultez la DTD du fichier "
-"de configuration XML ou le paquet <literal>org.hibernate.event</literal> "
+"de configuration XML ou le paquetage <literal>org.hibernate.event</literal> "
"pour avoir la liste complète des types d'événement définis). Quand une "
"requête est faite à partir d'une de ces méthodes, la <literal>Session</"
"literal> Hibernate génère un événement approprié et le passe au listener "
@@ -267,22 +161,20 @@
"l'implémentation de l'interface <literal>LoadEventListener</literal> "
"déclarée), dans quel cas leur implémentation devrait être responsable du "
"traitement des requêtes <literal>load()</literal> faites par la "
-"<literal>Session</literal>."
+"<literal>Session</literal>. "
#. Tag: para
-#: events.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
"between requests, and should not save any state as instance variables."
msgstr ""
"Les listeners devraient effectivement être considérés comme des singletons ; "
"dans le sens où ils sont partagés entre des requêtes, et donc ne devraient "
-"pas sauvegarder des états de variables d'instance."
+"pas sauvegarder des états en tant que variables d'instance. "
#. Tag: para
-#: events.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
"wants to process and/or extend one of the convenience base classes (or even "
@@ -298,73 +190,28 @@
"même l'événement prêt à l'emploi utilisé par Hibernate comme ceux déclarés "
"non-finaux à cette intention). Les listeners personnalisés peuvent être soit "
"inscrits par programmation à travers l'objet <literal>Configuration</"
-"literal>, ou spécifiés la configuration XML d'Hibernate (la configuration "
-"déclarative à travers le fichier de propriétés n'est pas supportée). Voici "
-"un exemple de listener personnalisé pour l'événement de chargement :"
+"literal>, ou spécifiés dans la configuration XML de Hibernate (la "
+"configuration déclarative à travers le fichier de propriétés n'est pas "
+"supportée). Voici un exemple de listener personnalisé pour l'événement de "
+"chargement :"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
"addition to the default listener:"
msgstr ""
-"Vous avez aussi besoin d'une entrée de configuration disant à Hibernate "
+"Vous avez aussi besoin d'une entrée de configuration indiquant à Hibernate "
"d'utiliser ce listener en plus du listener par défaut :"
-#. Tag: programlisting
-#: events.xml:130
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-msgstr ""
+msgid "Instead, you can register it programmatically:"
+msgstr "Vous pouvez aussi l'inscrire par programmation : "
#. Tag: para
-#: events.xml:132
-#, fuzzy, no-c-format
-msgid "Instead, you can register it programmatically:"
-msgstr "Vous pouvez aussi l'inscrire par programmation :"
-
-#. Tag: programlisting
-#: events.xml:136
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:138
-#, fuzzy, no-c-format
-msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
"name is used in multiple <literal><listener/></literal> elements, each "
"reference will result in a separate instance of that class. If you need to "
@@ -373,14 +220,13 @@
msgstr ""
"Les listeners inscrits déclarativement ne peuvent pas partager d'instances. "
"Si le même nom de classe est utilisée dans plusieurs éléments <literal><"
-"listener/></literal>, chaque référence sera une instance distincte de "
-"cette classe. Si vous avez besoin de la faculté de partager des instances de "
-"listener entre plusieurs types de listener, vous devez utiliser l'approche "
-"d'inscription par programmation."
+"listener/></literal>, chaque référence résultera en une instance "
+"distincte de cette classe. Si vous avez besoin de la faculté de partager des "
+"instances de listener entre plusieurs types de listener, vous devez utiliser "
+"l'approche d'inscription par programmation. "
#. Tag: para
-#: events.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
"configuration? A listener implementation could implement multiple event "
@@ -390,19 +236,17 @@
msgstr ""
"Pourquoi implémenter une interface et définir le type spécifique durant la "
"configuration ? Une implémentation de listener pourrait implémenter "
-"plusieurs interfaces de listener d'événements. Avoir en plus le type défini "
-"durant l'inscription rend plus facile l'activation ou la désactivation "
-"pendant la configuration."
+"plusieurs interfaces de listener d'événements. Par ailleurs, le fait de "
+"définir le type durant l'inscription, rend l'activation ou la désactivation "
+"plus facile au moment de la configuration. "
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
-msgstr "Sécurité déclarative d'Hibernate"
+msgstr "Sécurité déclarative de Hibernate "
#. Tag: para
-#: events.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
"session facade layer. Hibernate3 allows certain actions to be permissioned "
@@ -413,36 +257,20 @@
"gérée dans la couche de session. Maintenant, Hibernate3 permet à certaines "
"actions d'être approuvées via JACC, et autorisées via JAAS. Cette "
"fonctionnalité optionnelle est construite au dessus de l'architecture "
-"d'événements."
+"d'événements. "
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
"of JAAS authorization."
msgstr ""
"D'abord, vous devez configurer les listeners d'événements appropriés pour "
-"permettre l'utilisation d'autorisations JAAS."
+"permettre l'utilisation d'autorisations JAAS. "
-#. Tag: programlisting
-#: events.xml:168
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:170
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
"shorthand for <literal><event type=\"...\"><listener class=\"...\"/"
"></event></literal> when there is exactly one listener for a "
@@ -451,29 +279,288 @@
"Notez que <literal><listener type=\"...\" class=\"...\"/></literal> "
"est juste un raccourci pour <literal><event type=\"...\"><listener "
"class=\"...\"/></event></literal> quand il y a exactement un "
-"listener pour un type d'événement particulier."
+"listener pour un type d'événement particulier. "
#. Tag: para
-#: events.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
"permissions to roles:"
msgstr ""
-"Ensuite, toujours dans <literal>hibernate.cfg.xml</literal>, lier les "
-"permissions aux rôles :"
+"Ensuite, toujours dans <literal>hibernate.cfg.xml</literal>, liez les "
+"permissions aux rôles : "
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
msgstr "Les noms de rôle sont les rôles compris par votre fournisseur JAAC."
+
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,38 @@
+# translation of example_mappings.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_mappings\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-11 09:19+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
-msgstr "Exemple : quelques mappings"
+msgstr "Exemple : quelques mappages"
#. Tag: para
-#: example_mappings.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This chapters explores some more complex association mappings."
-msgstr "Ce chapitre montre quelques mappings plus complexes."
+msgstr "Ce chapitre montre quelques mappages plus complexes. "
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
msgstr "Employeur/Employé (Employer/Employee)"
#. Tag: para
-#: example_mappings.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
@@ -40,130 +42,29 @@
msgstr ""
"Le modèle suivant de relation entre <literal>Employer</literal> et "
"<literal>Employee</literal> utilise une vraie classe entité "
-"(<literal>Employment</literal>) pour représenter l'association. On a fait "
-"cela parce qu'il peut y avoir plus d'une période d'emploi pour les deux "
-"mêmes parties. Des composants sont utilisés pour modéliser les valeurs "
-"monétaires et les noms des employés."
+"(<literal>Employment</literal>) pour représenter l'association. La raison "
+"étant qu'il peut y avoir plus d'une période d'emploi pour les deux mêmes "
+"parties. Des composants sont utilisés pour modéliser les valeurs monétaires "
+"et les noms des employés. "
#. Tag: para
-#: example_mappings.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is a possible mapping document:"
-msgstr "Voici un document de mapping possible :"
+msgstr "Voici un document de mappage possible : "
-#. Tag: programlisting
-#: example_mappings.xml:60
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_mappings.xml:62
-#, fuzzy, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr ""
-"Et voici le schéma des tables générées par <literal>SchemaExport</literal>."
+"Et voici le schéma des tables générées par <literal>SchemaExport</literal>. "
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
-msgstr "Auteur/Travail (Author/Work)"
+msgstr "Auteur/Travail "
#. Tag: para
-#: example_mappings.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
@@ -173,144 +74,42 @@
"literal> is represented as one-to-one association. Another possibility would "
"be to have <literal>Author</literal> extend <literal>Person</literal>."
msgstr ""
-"Soit le modèle de la relation entre <literal>Work</literal>, "
+"Examinons le modèle suivant de la relation entre <literal>Work</literal>, "
"<literal>Author</literal> et <literal>Person</literal>. Nous représentons la "
"relation entre <literal>Work</literal> et <literal>Author</literal> comme "
-"une association plusieurs-vers-plusieurs. Nous avons choisi de représenter "
-"la relation entre <literal>Author</literal> et <literal>Person</literal> "
-"comme une association un-vers-un. Une autre possibilité aurait été que "
-"<literal>Author</literal> hérite de <literal>Person</literal>."
+"une association plusieurs-à -plusieurs. Nous avons choisi de représenter la "
+"relation entre <literal>Author</literal> et <literal>Person</literal> comme "
+"une association un-à -un. Une autre possibilité aurait été que "
+"<literal>Author</literal> étende <literal>Person</literal>. "
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
-msgstr "Le mapping suivant représente exactement ces relations :"
+msgstr "Le mappage suivant représente exactement ces relations :"
-#. Tag: programlisting
-#: example_mappings.xml:95
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. 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 ""
-"Il y a quatre tables dans ce mapping. <literal>works</literal>, "
+"Il y a quatre tables dans ce mappage. <literal>works</literal>, "
"<literal>authors</literal> et <literal>persons</literal> qui contiennent "
"respectivement les données de work, author et person. <literal>author_work</"
"literal> est une table d'association qui lie authors à works. Voici le "
-"schéma de tables, généré par <literal>SchemaExport</literal>."
+"schéma de tables, généré par <literal>SchemaExport</literal> :"
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
-msgstr "Client/Commande/Produit (Customer/Order/Product)"
+msgstr "Client/Commande/Produit "
#. Tag: para
-#: example_mappings.xml:112
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
@@ -322,68 +121,22 @@
"between <literal>Order</literal> and <literal>Product</literal>. In "
"Hibernate this is called a composite element."
msgstr ""
-"Imaginons maintenant le modèle de relation entre <literal>Customer</"
+"Imaginons maintenant le modèle de relations entre <literal>Customer</"
"literal>, <literal>Order</literal>, <literal>LineItem</literal> et "
-"<literal>Product</literal>. Il y a une association un-vers-plusieurs entre "
-"<literal>Customer</literal> et <literal>Order</literal>, mais comment "
-"devrions nous représenter <literal>Order</literal> / <literal>LineItem</"
-"literal> / <literal>Product</literal>? J'ai choisi de mapper "
-"<literal>LineItem</literal> comme une classe d'association représentant "
-"l'association plusieurs-vers-plusieurs entre <literal>Order</literal> et "
-"<literal>Product</literal>. Dans Hibernate, on appelle cela un élément "
-"composite."
+"<literal>Product</literal>. Il y a une association un-Ã -plusieurs entre "
+"<literal>Customer</literal> et <literal>Order</literal>, mais comment devons "
+"nous représenter <literal>Order</literal> / <literal>LineItem</literal> / "
+"<literal>Product</literal> ? J'ai choisi de mapper <literal>LineItem</"
+"literal> comme une classe d'association représentant l'association plusieurs-"
+"Ã -plusieurs entre <literal>Order</literal> et <literal>Product</literal>. "
+"Dans Hibernate, on appelle cela un élément composite. "
#. Tag: para
-#: example_mappings.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping document will look like this:"
-msgstr "Le document de mapping :"
+msgstr "Le document de mappage : "
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -394,398 +147,1118 @@
"<literal>customers</literal>, <literal>orders</literal>, "
"<literal>line_items</literal> et <literal>products</literal> contiennent les "
"données de customer, order, order line item et product. <literal>line_items</"
-"literal> est aussi la table d'association liant orders à products."
+"literal> est aussi la table d'association liant orders à products. "
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
-msgstr "Divers mappings d'exemple"
+msgstr "Divers exemples de mappages"
#. Tag: para
-#: example_mappings.xml:152
-#, fuzzy, no-c-format
+#, 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 ""
-"Ces exemples sont tous pris de la suite de tests d'Hibernate. Vous en "
+"Ces exemples sont tous pris de la suite de tests de Hibernate. Vous en "
"trouverez beaucoup d'autres. Regardez dans le dossier <literal>test</"
-"literal> de la distribution d'Hibernate."
+"literal> de la distribution Hibernate. "
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
-msgstr "\"Typed\" one-to-one association"
+msgstr "\"Typed\" association un-Ã -un"
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
msgstr "Exemple de clef composée"
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
-msgstr "Many-to-many avec une clef composée partagée"
+msgstr "Plusieurs-à -plusieurs avec un attribut de clef composée partagée"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
msgstr "Contenu basé sur une discrimination"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
-msgstr "Associations sur des clefs alternées"
+msgstr "Associations sur des clés alternées"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
-#~ msgid "TODO: put words around this stuff"
-#~ msgstr "TODO: put words around this stuff"
+#~ msgid ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+#~ msgstr ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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>]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of example_parentchild.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_parentchild\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-05 09:05+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
-msgstr "Exemple : Père/Fils"
+msgstr "Exemple : père/fils"
#. Tag: para
-#: example_parentchild.xml:31
-#, fuzzy, no-c-format
+#, 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 "
@@ -42,46 +46,41 @@
"literal> comme des classes entités liées par une association <literal><"
"one-to-many></literal> du <literal>Père</literal> vers le <literal>Fils</"
"literal> (l'autre approche est de déclarer le <literal>Fils</literal> comme "
-"un <literal><composite-element></literal>). Il est évident que le sens "
-"de l'association un vers plusieurs (dans Hibernate) est bien moins proche du "
-"sens habituel d'une relation père/fils que ne l'est celui d'un élément "
-"cmposite. Nous allons vous expliquer comment utiliser une association "
-"<emphasis>un vers plusieurs bidirectionnelle avec cascade</emphasis> afin de "
-"modéliser efficacement et élégamment une relation père/fils, ce n'est "
-"vraiment pas difficile !"
+"un <literal><composite-element></literal>). On constate que la "
+"sémantique par défaut de l'association un-à -plusieurs (dans Hibernate) est "
+"bien moins proche du sens habituel d'une relation père/fils que celle d'un "
+"mappage d'élément composite. Nous allons vous expliquer comment utiliser une "
+"association <emphasis>un-Ã -plusieurs bidirectionnelle avec cascade</"
+"emphasis> afin de modéliser efficacement et élégamment une relation père/"
+"fils."
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
msgstr "Une note à propos des collections"
#. Tag: para
-#: example_parentchild.xml:47
-#, fuzzy, no-c-format
+#, 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 ""
"Les collections Hibernate sont considérées comme étant une partie logique de "
-"l'entité dans laquelle elles sont contenues ; jamais des entités qu'elle "
-"contient. C'est une distinction crutiale ! Les conséquences sont les "
-"suivantes :"
+"leur entité propriétaire, jamais des entités qu'elle contient. C'est une "
+"distinction cruciale ! Les conséquences sont les suivantes : "
#. Tag: para
-#: example_parentchild.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When you remove/add an object from/to a collection, the version number of "
"the collection owner is incremented."
msgstr ""
"Quand nous ajoutons / retirons un objet d'une collection, le numéro de "
-"version du propriétaire de la collection est incrémenté."
+"version du propriétaire de la collection est incrémenté. "
#. Tag: para
-#: example_parentchild.xml:60
-#, fuzzy, no-c-format
+#, 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 "
@@ -90,14 +89,13 @@
"persistent."
msgstr ""
"Si un objet qui a été enlevé d'une collection est une instance de type "
-"valeur (ex : élément composite), cet objet cessera d'être persistant et son "
-"état sera complètement effacé de la base de données. Par ailleurs, ajouter "
-"une instance de type valeur dans une collection aura pour conséquence que "
-"son état sera immédiatement persistant."
+"valeur (par ex : élément composite), cet objet cessera d'être persistant et "
+"son état sera complètement effacé de la base de données. Par ailleurs, "
+"ajouter une instance de type valeur dans une collection entraînera que son "
+"état sera immédiatement persistant. "
#. Tag: para
-#: example_parentchild.xml:68
-#, fuzzy, no-c-format
+#, 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 "
@@ -105,16 +103,15 @@
"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 ""
-"Si une entité est enlevée d'une collection (association un-vers-plusieurs ou "
-"plusieurs-vers-plusieurs), par défaut, elle ne sera pas effacée. Ce "
-"comportement est complètement logique - une modification de l'un des états "
-"internes d'une entité ne doit pas causer la disparition de l'entité "
-"associée ! De même, l'ajout d'une entité dans une collection n'engendre pas, "
-"par défaut, la persistance de cette entité."
+"Si une entité est enlevée d'une collection (association un-à -plusieurs ou "
+"plusieurs-à -plusieurs), elle ne sera pas effacée par défaut. Ce comportement "
+"est complètement logique - une modification de l'un des états internes d'une "
+"autre entité ne doit pas causer la disparition de l'entité associée. De "
+"même, l'ajout d'une entité dans une collection n'engendre pas, par défaut, "
+"la persistance de cette entité."
#. Tag: para
-#: example_parentchild.xml:78
-#, fuzzy, no-c-format
+#, 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 "
@@ -123,62 +120,36 @@
"bound to the life cycle of the parent."
msgstr ""
"Le comportement par défaut est donc que l'ajout d'une entité dans une "
-"collection créé simplement le lien entre les deux entités, et qu'effacer une "
-"entité supprime ce lien. C'est le comportement le plus approprié dans la "
+"collection crée simplement le lien entre les deux entités, alors qu'effacer "
+"une entité supprime ce lien. C'est le comportement le plus approprié dans la "
"plupart des cas. Ce comportement n'est cependant pas approprié lorsque la "
-"vie du fils est liée au cycle de vie du père."
+"vie du fils est liée au cycle de vie du père. "
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
-msgstr "un-vers-plusieurs bidirectionnel"
+msgstr "Un-Ã -plusieurs bidirectionnel"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
"association from <literal>Parent</literal> to <literal>Child</literal>."
msgstr ""
"Supposons que nous ayons une simple association <literal><one-to-many>"
-"</literal> de <literal>Parent</literal> vers <literal>Child</literal>."
+"</literal> de <literal>Parent</literal> Ã <literal>Child</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:97
-#, fuzzy, no-c-format
+#, no-c-format
msgid "If we were to execute the following code:"
-msgstr "Si nous executions le code suivant"
+msgstr "Si nous exécutions le code suivant :"
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
-msgstr "Hibernate exécuterait deux ordres SQL:"
+msgstr "Hibernate exécuterait deux ordres SQL :"
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid ""
"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
@@ -187,7 +158,6 @@
"literal>"
#. Tag: para
-#: example_parentchild.xml:112
#, no-c-format
msgid ""
"an <literal>UPDATE</literal> to create the link from <literal>p</literal> to "
@@ -197,38 +167,25 @@
"<literal>c</literal>"
#. Tag: para
-#: example_parentchild.xml:119
-#, fuzzy, no-c-format
+#, 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 ""
-"Ceci est non seuleument inefficace, mais viole aussi toute contrainte "
+"Ceci est non seulement inefficace, mais viole aussi toute contrainte "
"<literal>NOT NULL</literal> sur la colonne <literal>parent_id</literal>. "
"Nous pouvons réparer la contrainte de nullité en spécifiant <literal>not-"
-"null=\"true\"</literal> dans le mapping de la collection :"
+"null=\"true\"</literal> dans le mappage de la collection : "
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
msgstr "Cependant ce n'est pas la solution recommandée."
#. Tag: para
-#: example_parentchild.xml:130
-#, fuzzy, no-c-format
+#, 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</"
@@ -240,30 +197,20 @@
"<literal>parent_id</literal>) de <literal>p</literal> vers <literal>c</"
"literal> n'est pas considérée comme faisant partie de l'état de l'objet "
"<literal>Child</literal> et n'est donc pas créé par l'<literal>INSERT</"
-"literal>. La solution est donc que ce lien fasse partie du mapping de "
-"<literal>Child</literal>."
+"literal>. La solution est donc que ce lien fasse partie du mappage de "
+"<literal>Child</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-
-#. 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 ""
-"(Nous avons aussi besoin d'ajouter la propriété <literal>parent</literal> "
-"dans la classe <literal>Child</literal>)."
+"Nous avons aussi besoin d'ajouter la propriété <literal>parent</literal> "
+"dans la classe <literal>Child</literal>."
#. Tag: para
-#: example_parentchild.xml:143
-#, fuzzy, no-c-format
+#, 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 "
@@ -271,165 +218,72 @@
msgstr ""
"Maintenant que l'état du lien est géré par l'entité <literal>Child</"
"literal>, nous spécifions à la collection de ne pas mettre à jour le lien. "
-"Nous utilisons l'attribut <literal>inverse</literal>."
+"Nous utilisons l'attribut <literal>inverse</literal> pour faire cela :"
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. 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 ""
"Le code suivant serait utilisé pour ajouter un nouveau <literal>Child</"
-"literal>"
+"literal> :"
-#. Tag: programlisting
-#: example_parentchild.xml:154
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. 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 "Maintenant, seul un <literal>INSERT</literal> SQL est nécessaire !"
+msgstr "Maintenant, seul un SQL <literal>INSERT</literal> est nécessaire."
#. Tag: para
-#: example_parentchild.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
"<literal>Parent</literal>."
msgstr ""
-"Pour alléger encore un peu les choses, nous devrions créer une méthode "
-"<literal>addChild()</literal> dans <literal>Parent</literal>."
+"Pour alléger encore un peu les choses, nous créerons une méthode "
+"<literal>addChild()</literal> de <literal>Parent</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-
#. 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 "Le code d'ajout d'un <literal>Child</literal> serait alors"
+msgstr "Le code d'ajout d'un <literal>Child</literal> serait alors :"
-#. Tag: programlisting
-#: example_parentchild.xml:171
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
-msgstr "Cycle de vie en cascade"
+msgstr "Cycle de vie en cascade "
#. Tag: para
-#: example_parentchild.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
"literal> by using cascades."
msgstr ""
"L'appel explicite de <literal>save()</literal> est un peu fastidieux. Nous "
-"pouvons simplifier cela en utilisant les cascades."
+"pouvons simplifier cela en utilisant les cascades. "
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This simplifies the code above to:"
-msgstr "Simplifie le code précédent en"
+msgstr "Cela simplifie le code précédent en :"
-#. Tag: programlisting
-#: example_parentchild.xml:189
+#. Tag: para
#, 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 ""
-
-#. 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 ""
"De la même manière, nous n'avons pas à itérer sur les fils lorsque nous "
-"sauvons ou effacons un <literal>Parent</literal>. Le code suivant efface "
-"<literal>p</literal> et tous ses fils de la base de données."
+"sauvons ou effaçons un <literal>Parent</literal>. Le code suivant efface "
+"<literal>p</literal> et tous ses fils de la base de données. "
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:198
-#, fuzzy, no-c-format
+#, no-c-format
msgid "However, the following code:"
-msgstr "Par contre, ce code"
+msgstr "Par contre, ce code :"
-#. Tag: programlisting
-#: example_parentchild.xml:202
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-
-#. 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()"
@@ -439,69 +293,44 @@
"seulement le lien vers <literal>p</literal> (et causera une violation de "
"contrainte <literal>NOT NULL</literal>, dans ce cas). Vous devez "
"explicitement utiliser <literal>delete()</literal> sur <literal>Child</"
-"literal>."
+"literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 ""
"Dans notre cas, un <literal>Child</literal> ne peut pas vraiment exister "
-"sans son père. Si nous effacons un <literal>Child</literal> de la "
+"sans son père. Si nous effaçons un <literal>Child</literal> de la "
"collection, nous voulons vraiment qu'il soit effacé. Pour cela, nous devons "
-"utiliser <literal>cascade=\"all-delete-orphan\"</literal>."
+"utiliser <literal>cascade=\"all-delete-orphan\"</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:218
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. 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 ""
-"A noter : même si le mapping de la collection spécifie <literal>inverse="
+"à noter : même si le mappage de la collection spécifie <literal>inverse="
"\"true\"</literal>, les cascades sont toujours assurées par l'itération sur "
"les éléments de la collection. Donc, si vous avez besoin qu'un objet soit "
"enregistré, effacé ou mis à jour par cascade, vous devez l'ajouter dans la "
-"colleciton. Il ne suffit pas d'appeler explicitement <literal>setParent()</"
+"collection. Il ne suffit pas d'appeler explicitement <literal>setParent()</"
"literal>."
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr "Cascades et <literal>unsaved-value</literal>"
+msgstr ""
+"Cascades et <literal>unsaved-value</literal> (valeurs non sauvegardées)"
#. Tag: para
-#: example_parentchild.xml:232
#, fuzzy, no-c-format
msgid ""
"Suppose we loaded up a <literal>Parent</literal> in one <literal>Session</"
@@ -514,51 +343,37 @@
"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 "
+"\"objectstate-saveorupdate\" />.) <emphasis>In Hibernate3, it is no longer "
"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
"emphasis>"
msgstr ""
"Supposons que nous ayons chargé un <literal>Parent</literal> dans une "
"<literal>Session</literal>, que nous l'ayons ensuite modifié et que voulions "
-"persiter ces modifications dans une nouvelle session en appelant "
+"persister ces modifications dans une nouvelle session en appelant "
"<literal>update()</literal>. Le <literal>Parent</literal> contiendra une "
"collection de fils et, puisque la cascade est activée, Hibernate a besoin de "
-"savoir quels fils viennent d'être instanciés et quels fils proviennent de la "
-"base de données. Supposons aussi que <literal>Parent</literal> et "
-"<literal>Child</literal> ont tous deux des identifiants du type "
-"<literal>Long</literal>. Hibernate utilisera la propriété de l'identifiant "
-"et la propriété de la version/horodatage pour déterminer quels fils sont "
-"nouveaux (vous pouvez aussi utiliser la propriété version ou timestamp, voir "
-"<xref linkend=\"manipulatingdata-updating-detached\"/>). <emphasis>Dans "
-"Hibernate3, il n'est plus nécessaire de spécifier une <literal>unsaved-"
-"value</literal> explicitement.</emphasis>"
+"savoir quels fils viennent d'être instanciés et quels fils représentent des "
+"lignes existantes dans la base de données. Supposons aussi que "
+"<literal>Parent</literal> et <literal>Child</literal> ont tous deux des "
+"identifiants du type <literal>Long</literal>. Hibernate utilisera la "
+"propriété de l'identifiant et la propriété de la version/horodatage pour "
+"déterminer quels fils sont nouveaux (vous pouvez aussi utiliser la propriété "
+"version ou timestamp, consultez <xref linkend=\"objectstate-saveorupdate\" /"
+">.) <emphasis>Dans Hibernate3, il n'est plus nécessaire de spécifier une "
+"<literal>unsaved-value</literal> explicitement.</emphasis> "
#. Tag: para
-#: example_parentchild.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following code will update <literal>parent</literal> and <literal>child</"
"literal> and insert <literal>newChild</literal>:"
msgstr ""
"Le code suivant mettra à jour <literal>parent</literal> et <literal>child</"
-"literal> et insérera <literal>newChild</literal>."
+"literal> et insérera <literal>newChild</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:249
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 "
@@ -569,22 +384,21 @@
msgstr ""
"Ceci est très bien pour des identifiants générés, mais qu'en est-il des "
"identifiants assignés et des identifiants composés ? C'est plus difficile, "
-"puisqu'Hibernate ne peut pas utiliser la propriété de l'identifiant pour "
-"distinguer un objet nouvellement instancié (avec un identifiant assigné par "
-"l'utilisateur) d'un objet chargé dans une session précédente. Dans ce cas, "
-"Hibernate utilisera soit la propriété de version ou d'horodatage, soit "
-"effectuera vraiment une requête au cache de second niveau, soit, dans le "
-"pire des cas, à la base de données, pour voir si la ligne existe."
+"puisque Hibernate ne peut pas utiliser la propriété de l'identifiant pour "
+"distinguer entre un objet nouvellement instancié (avec un identifiant "
+"assigné par l'utilisateur) et un objet chargé dans une session précédente. "
+"Dans ce cas, Hibernate utilisera soit la propriété de version ou "
+"d'horodatage, soit effectuera vraiment une requête au cache de second "
+"niveau, soit, dans le pire des cas, à la base de données, pour voir si la "
+"ligne existe. "
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
msgstr "Conclusion"
#. Tag: para
-#: example_parentchild.xml:265
-#, fuzzy, no-c-format
+#, 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 "
@@ -593,11 +407,10 @@
"Il y a quelques principes à maîtriser dans ce chapitre et tout cela peut "
"paraître déroutant la première fois. Cependant, dans la pratique, tout "
"fonctionne parfaitement. La plupart des applications Hibernate utilisent le "
-"pattern père / fils."
+"modèle père / fils. "
#. Tag: para
-#: example_parentchild.xml:270
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
"exist in the case of <literal><composite-element></literal> mappings, "
@@ -607,9 +420,9 @@
"of any entity other than the unique parent."
msgstr ""
"Nous avons évoqué une alternative dans le premier paragraphe. Aucun des "
-"points traités précédemment n'existe dans le cas d'un mapping <literal><"
+"points traités précédemment n'existe dans le cas de mappings <literal><"
"composite-element></literal> qui possède exactement la sémantique d'une "
"relation père / fils. Malheureusement, il y a deux grandes limitations pour "
-"les classes éléments composites : les éléments composites ne peuvent "
+"les classes d'éléments composites : les éléments composites ne peuvent "
"contenir de collections, et ils ne peuvent être les fils d'entités autres "
-"que l'unique parent."
+"que l'unique parent. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,484 +1,863 @@
+# translation of example_weblog.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_weblog\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-10-30 13:49+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
msgstr "Exemple : application Weblog"
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
msgstr "Classes persistantes"
#. Tag: para
-#: example_weblog.xml:34
-#, fuzzy, no-c-format
+#, 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 ""
-"Les classes persistantes representent un weblog, et un article posté dans un "
+"Les classes persistantes représentent un weblog, et un article posté dans un "
"weblog. Il seront modélisés comme une relation père/fils standard, mais nous "
-"allons utiliser un \"bag\" trié au lieu d'un set."
+"allons utiliser un sac trié au lieu d'un set :"
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
-msgstr "Mappings Hibernate"
+msgstr "Mappages Hibernate"
#. Tag: para
-#: example_weblog.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The XML mappings are now straightforward. For example:"
-msgstr "Le mapping XML doit maintenant être relativement simple à vos yeux."
-
-#. Tag: programlisting
-#: example_weblog.xml:53
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
msgstr ""
+"Le mappage XML doit maintenant être relativement simple à vos yeux. Par "
+"exemple :"
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
msgstr "Code Hibernate"
#. Tag: para
-#: example_weblog.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following class demonstrates some of the kinds of things we can do with "
"these classes using Hibernate:"
msgstr ""
-"La classe suivante montre quelques utilisations que nous pouvons faire de "
-"ces classes."
+"La classe suivante montre quelques utilisations de ces classes avec "
+"Hibernate :"
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,44 +1,46 @@
+# translation of filters.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: filters\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-11 09:26+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr "Filtrer les données"
#. Tag: para
-#: filters.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
"named, parameterized filter that can be enabled or disabled for a particular "
"Hibernate session."
msgstr ""
-"Hibernate3 fournit une nouvelle approche innovatrice pour gérer des données "
-"avec des règles de \"visibilité\". Un <emphasis>filtre Hibernate</emphasis> "
-"est un filtre global, nommé, paramétré qui peut être activé ou désactivé "
-"pour une session Hibernate particulière."
+"Hibernate3 fournit une nouvelle approche innovatrice pour manipuler des "
+"données avec des règles de \"visibilité\". Un <emphasis>filtre Hibernate</"
+"emphasis> est un filtre global, nommé, paramétré qui peut être activé ou "
+"désactivé pour une session Hibernate particulière. "
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
msgstr "Filtres Hibernate"
#. Tag: para
-#: filters.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
@@ -53,14 +55,13 @@
"d'attacher ces filtres à une classe ou à une collection. Un critère de "
"filtre est la faculté de définir une clause de restriction très similaire à "
"l'attribut \"where\" existant disponible sur une classe et divers éléments "
-"d'une collection. Mis à part que ces conditions de filtre peuvent être "
+"d'une collection. Par ailleurs ces conditions de filtre peuvent être "
"paramétrées. L'application peut alors prendre la décision à l'exécution si "
-"des filtres donnés devraient être activés et quels devraient être leurs "
+"des filtres donnés doivent être activés et quels doivent être leurs "
"paramètres. Des filtres peuvent être utilisés comme des vues de base de "
-"données, mais paramétrées dans l'application."
+"données, mais paramétrées dans l'application. "
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -73,57 +74,23 @@
"l'élément <literal><filter-def/></literal> dans un élément "
"<literal><hibernate-mapping/></literal> :"
-#. Tag: programlisting
-#: filters.xml:56
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
+msgid "This filter can then be attached to a class:"
+msgstr "Puis, ce filtre peut être attaché à une classe : "
#. Tag: para
-#: filters.xml:58
-#, fuzzy, no-c-format
-msgid "This filter can then be attached to a class:"
-msgstr "Puis, ce filtre peut être attaché à une classe :"
-
-#. Tag: programlisting
-#: filters.xml:62
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
+msgid "Or, to a collection:"
+msgstr "Ou bien, Ã une collection :"
#. Tag: para
-#: filters.xml:64
-#, fuzzy, no-c-format
-msgid "Or, to a collection:"
-msgstr "ou à une collection :"
-
-#. Tag: programlisting
-#: filters.xml:68
#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:70
-#, fuzzy, no-c-format
msgid "Or, to both or multiples of each at the same time."
-msgstr "ou même aux deux (ou à plusieurs de chaque) en même temps."
+msgstr "Ou même encore, aux deux (ou à plusieurs de chaque) en même temps."
#. Tag: para
-#: filters.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
@@ -139,118 +106,53 @@
"literal>, et <literal>disableFilter(String filterName)</literal>. Par "
"défaut, les filtres <emphasis>ne sont pas</emphasis> activés pour une "
"session donnée ; ils doivent être explicitement activés en appelant la "
-"méthode <literal>Session.enableFilter()</literal>, laquelle retourne une "
+"méthode <literal>Session.enabledFilter()</literal>, laquelle retourne une "
"instance de l'interface <literal>Filter</literal>. Utiliser le simple filtre "
-"défini au-dessus ressemblerait à :"
+"défini ci-dessus ressemblerait à : "
-#. Tag: programlisting
-#: filters.xml:83
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:85
-#, fuzzy, no-c-format
-msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
"Notez que des méthodes sur l'interface org.hibernate.Filter autorisent le "
-"chaînage de beaucoup de méthodes communes d'Hibernate."
+"chaînage de beaucoup de méthodes communes à Hibernate. "
#. Tag: para
-#: filters.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr ""
"Un exemple complet, utilisant des données temporelles avec une structure de "
-"date d'enregistrement effectif :"
+"date d'enregistrement effectif : "
-#. Tag: programlisting
-#: filters.xml:93
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:95
-#, fuzzy, no-c-format
-msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
"Puis, afin de s'assurer que vous pouvez toujours récupérer les "
"enregistrements actuellement effectifs, activez simplement le filtre sur la "
-"session avant de récupérer des données des employés :"
+"session avant de récupérer des données des employés : "
-#. Tag: programlisting
-#: filters.xml:100
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:102
-#, fuzzy, no-c-format
-msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
"Dans le HQL ci-dessus, bien que nous ayons seulement mentionné une "
-"contrainte de salaire sur les resultats, à cause du filtre activé, la "
+"contrainte de salaire sur les résultats, à cause du filtre activé, la "
"requête retournera seulement les employés actuellement actifs qui ont un "
-"salaire supérieur à un million de dollars."
+"salaire supérieur à un million de dollars. "
#. Tag: para
-#: filters.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
@@ -258,33 +160,27 @@
"followed by the column name(s) after the operator."
msgstr ""
"A noter : si vous prévoyez d'utiliser des filtres avec des jointures "
-"externes (soit à travers HQL, soit par le chargement) faites attention à la "
+"externes (soit à travers HQL, soit par le chargement), faites attention à la "
"direction de l'expression de condition. Il est plus sûr de la positionner "
"pour les jointures externes à gauche ; en général, placez le paramètre "
-"d'abord, suivi du(des) nom(s) de colonne après l'opérateur."
+"d'abord, suivi du(des) nom(s) de colonne après l'opérateur. "
#. Tag: para
-#: filters.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
"collections each with its own condition. This can be problematic when the "
"conditions are the same each time. Using <literal><filter-def/></"
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
-msgstr "translator-credits"
-
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
msgstr ""
+"Après avoir été défini, un filtre peut être attaché à de nombreuses entités "
+"et/ou des collections, chacune avec sa propre condition. Cela peut être "
+"fastidieux quand les conditions sont les mêmes à chaque fois. Ainsi "
+"<literal><filter-def/></literal> permet de définir une condition par "
+"défaut, soit en tant qu'attribut, soit comme CDATA. "
#. Tag: para
-#: filters.xml:124
#, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
@@ -292,3 +188,145 @@
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
+"Cette condition par défaut sera alors utilisée à chaque fois que le filtre "
+"est attaché à quelque chose sans spécifier la condition. Notez que cela "
+"signifie que vous pouvez fournir une condition spécifique en tant que "
+"faisant partie de la pièce attachée du filtre qui surcharge la condition par "
+"défaut dans ce cas particulier. "
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+#~ msgstr ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,74 +1,67 @@
+# translation of inheritance_mapping.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: inheritance_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:37+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: inheritance_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Inheritance mapping"
-msgstr "Mapping d'héritage de classe"
+msgstr "Mapping d'héritage de classe "
#. Tag: title
-#: inheritance_mapping.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The three strategies"
-msgstr "Les trois stratégies"
+msgstr "Les trois stratégies "
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr "Hibernate supporte les trois stratégies d'héritage de base :"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
-msgstr "une table par hiérarchie de classe (table per class hierarchy)"
+msgstr "une table par hiérarchie de classe"
#. Tag: para
-#: inheritance_mapping.xml:45
#, fuzzy, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"une table par classe fille (table per subclass)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"une table par classe fille"
+msgid "table per subclass"
+msgstr "Une table par classe fille"
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
-msgstr "une table par classe concrète (table per concrete class)"
+msgstr "une table par classe concrète "
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
"polymorphism:"
msgstr ""
-"Hibernate supporte en plus une quatrièmestratégie, légèrement différente, "
-"qui supporte le polymorphisme :"
+"Par ailleurs, Hibernate supporte une quatrième stratégie, avec un "
+"polymorphisme légèrement différent : "
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
msgstr "le polymorphisme implicite"
#. Tag: para
-#: inheritance_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
"the same inheritance hierarchy. You can then make use of implicit "
@@ -82,20 +75,19 @@
"<literal><join></literal> elements (see below for an example)."
msgstr ""
"Il est possible d'utiliser différentes stratégies de mapping pour "
-"différentes branches d'une même hiérarchie d'héritage, et alors d'employer "
+"différentes branches d'une même hiérarchie d'héritage, et ensuite d'employer "
"le polymorphisme implicite pour réaliser le polymorphisme à travers toute la "
-"hiérarchie. Pourtant, Hibernate ne supporte pas de mélanger des mappings "
-"<literal><subclass></literal> et <literal><joined-subclass></"
+"hiérarchie. Toutefois, Hibernate ne supporte pas les mélanges de mappages "
+"<literal><subclass></literal>, <literal><joined-subclass></"
"literal> et <literal><union-subclass></literal> pour le même élément "
-"<literal><class></literal> racine. Il est possible de mélanger "
-"ensemble les stratégies d'une table par hiérarchie et d'une table par sous-"
-"classe, pour le même élément <literal><class></literal>, en combinant "
-"les éléments <literal><subclass></literal> et <literal><join></"
-"literal> (voir dessous)."
+"<literal><class></literal> racine. Il est possible de mélanger les "
+"stratégies d'une table par hiérarchie et d'une table par sous-classe, pour "
+"le même élément <literal><class></literal>, en combinant les éléments "
+"<literal><subclass></literal> et <literal><join></literal> (voir "
+"ci-dessous). "
#. Tag: para
-#: inheritance_mapping.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
"subclass</literal>, and <literal>joined-subclass</literal> mappings in "
@@ -108,40 +100,25 @@
"extends keyword. The ordering inside a single mapping file still needs to be "
"defined as superclasses before subclasses."
msgstr ""
-"Il est possible de définir des mappings de <literal>subclass</literal>, "
+"Il est possible de définir des mappages de <literal>subclass</literal>, "
"<literal>union-subclass</literal>, et <literal>joined-subclass</literal> "
-"dans des documents de mapping séparés, directement sous <literal>hibernate-"
-"mapping</literal>. Ceci vous permet d'étendre une hiérarchie de classe juste "
-"en ajoutant un nouveau fichier de mapping. Vous devez spécifier un attribut "
-"<literal>extends</literal> dans le mapping de la sous-classe, en nommant une "
-"super-classe précédemment mappée. Note : précédemment cette foncionnalité "
-"rendait l'ordre des documents de mapping important. Depuis Hibernate3, "
-"l'ordre des fichier de mapping n'importe plus lors de l'utilisation du mot-"
-"clef \"extends\". L'ordre à l'intérieur d'un simple fichier de mapping "
-"impose encore de définir les classes mères avant les classes filles."
+"dans des documents de mappage séparés, directement sous <literal>hibernate-"
+"mappage</literal>. Ceci vous permet d'étendre une hiérarchie de classe juste "
+"en ajoutant un nouveau fichier de mappage. Vous devez spécifier un attribut "
+"<literal>extends</literal> dans le mappage de la sous-classe, en nommant une "
+"super-classe précédemment mappée. Note : précédemment cette fonctionnalité "
+"rendait important l'ordre des documents de mappage. Depuis Hibernate3, "
+"l'ordre des fichier de mappage n'importe plus lors de l'utilisation du mot-"
+"clef \"extends\". L'ordre à l'intérieur d'un simple fichier de mappage "
+"impose encore de définir les classes mères avant les classes filles. "
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
msgstr "Une table par hiérarchie de classe"
#. Tag: para
-#: inheritance_mapping.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
"implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</"
@@ -151,104 +128,48 @@
"Supposons que nous ayons une interface <literal>Payment</literal>, "
"implémentée par <literal>CreditCardPayment</literal>, <literal>CashPayment</"
"literal>, <literal>ChequePayment</literal>. La stratégie une table par "
-"hiérarchie serait :"
+"hiérarchie serait : "
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:109
-#, fuzzy, no-c-format
-msgid ""
"Exactly one table is required. There is a limitation of this mapping "
"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
"literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
"Une seule table est requise. Une grande limitation de cette stratégie est "
"que les colonnes déclarées par les classes filles, telles que "
-"<literal>CCTYPE</literal>, ne peuvent avoir de contrainte <literal>NOT NULL</"
-"literal>."
+"<literal>CCTYPE</literal>, peuvent ne pas avoir de contrainte <literal>NOT "
+"NULL</literal>. "
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
msgstr "Une table par classe fille"
#. Tag: para
-#: inheritance_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A table per subclass mapping looks like this:"
-msgstr "La stratégie une table par classe fille serait :"
+msgstr "Une table par classe-fille de mappage serait : "
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:126
-#, fuzzy, no-c-format
-msgid ""
"Four tables are required. The three subclass tables have primary key "
"associations to the superclass table so the relational model is actually a "
"one-to-one association."
msgstr ""
"Quatre tables sont requises. Les trois tables des classes filles ont une clé "
"primaire associée à la table classe mère (le modèle relationnel est une "
-"association un-vers-un)."
+"association un-Ã -un)."
#. Tag: title
-#: inheritance_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per subclass: using a discriminator"
-msgstr "Une table par classe fille, en utilisant un discriminant"
+msgstr "Une table par classe fille, en utilisant un discriminant "
#. Tag: para
-#: inheritance_mapping.xml:137
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
"discriminator column. Other object/relational mappers use a different "
@@ -259,52 +180,18 @@
"strategy, you can combine the use of <literal><subclass></literal> and "
"<literal><join></literal>, as follows:"
msgstr ""
-"Notez que l'implémentation Hibernate de la stratégie un table par classe "
-"fille ne nécessite pas de colonne discriminante dans la table classe mère. "
+"Notez que l'implémentation Hibernate de la stratégie une table par classe "
+"fille, ne nécessite pas de colonne discriminante dans la table classe mère. "
"D'autres implémentations de mappers Objet/Relationnel utilisent une autre "
"implémentation de la stratégie une table par classe fille qui nécessite une "
"colonne de type discriminant dans la table de la classe mère. L'approche "
"prise par Hibernate est plus difficile à implémenter mais plus correcte "
"d'une point de vue relationnel. Si vous aimeriez utiliser une colonne "
-"discriminante avec la stratégie d'une table par classe fille, vous pourriez "
+"discriminante avec la stratégie d'une table par classe fille, vous pouvez "
"combiner l'utilisation de <literal><subclass></literal> et "
-"<literal><join></literal>, comme suit :"
+"<literal><join></literal>, comme suit : "
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
@@ -314,53 +201,24 @@
"La déclaration optionnelle <literal>fetch=\"select\"</literal> indique à "
"Hibernate de ne pas récupérer les données de la classe fille "
"<literal>ChequePayment</literal> par une jointure externe lors des requêtes "
-"sur la classe mère."
+"sur la classe mère. "
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr ""
"Mélange d'une table par hiérarchie de classe avec une table par classe fille"
#. Tag: para
-#: inheritance_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
"Vous pouvez même mélanger les stratégies d'une table par hiérarchie de "
-"classe et d'une table par classe fille en utilisant cette approche :"
+"classe et d'une table par classe fille en utilisant cette approche : "
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
@@ -371,68 +229,33 @@
"la classe racine <literal>Payment</literal> est mappée en utilisant "
"<literal><many-to-one></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr "Une table par classe concrète"
#. Tag: para
-#: inheritance_mapping.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
"you can use <literal><union-subclass></literal>."
msgstr ""
"Il y a deux manières d'utiliser la stratégie d'une table par classe "
"concrète. La première est d'employer <literal><union-subclass></"
-"literal>."
+"literal>. "
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
"all properties of the class, including inherited properties."
msgstr ""
"Trois tables sont nécessaires pour les classes filles. Chaque table définit "
-"des colonnes pour toutes les propriétés de la classe, incluant les "
-"propriétés héritéés."
+"des colonnes pour toutes les propriétés de la classe, y compris les "
+"propriétés héritées. "
#. Tag: para
-#: inheritance_mapping.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
"superclass, the column name must be the same on all subclass tables. The "
@@ -442,15 +265,14 @@
msgstr ""
"La limitation de cette approche est que si une propriété est mappée sur la "
"classe mère, le nom de la colonne doit être le même pour toutes les classes "
-"filles. (Nous pourrions être plus souple dans une future version "
-"d'Hibernate). La stratégie du générateur d'identifiant n'est pas permise "
-"dans l'héritage de classes filles par union, en effet la valeur (NdT : seed) "
-"de la clef primaire doit être partagée par toutes les classes filles \"union"
-"\" d'une hiérarchie."
+"filles (Une future version de Hibernate pourra assouplir ce comportement). "
+"La stratégie du générateur d'identifiant n'est pas permise dans l'héritage "
+"de classes filles par union, en effet la valeur de graine de la clef "
+"primaire doit être partagée par toutes les classes filles fusionnées d'une "
+"hiérarchie. "
#. Tag: para
-#: inheritance_mapping.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
"literal>. If it is not abstract, an additional table (it defaults to "
@@ -460,51 +282,20 @@
"Si votre classe mère est abstraite, mappez la avec <literal>abstract=\"true"
"\"</literal>. Bien sûr, si elle n'est pas abstraite, une table "
"supplémentaire (par défaut, <literal>PAYMENT</literal> dans l'exemple ci-"
-"dessus) est requise pour contenir des instances de la classe mère."
+"dessus) est requise pour contenir des instances de la classe mère. "
#. Tag: title
-#: inheritance_mapping.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
-msgstr "Une table par classe concrète, en utilisant le polymorphisme implicite"
+msgstr ""
+"Une table par classe concrète, en utilisant le polymorphisme implicite "
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr "Une approche alternative est l'emploi du polymorphisme implicite :"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, fuzzy, no-c-format
msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
@@ -512,60 +303,42 @@
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
"Notez que nulle part nous ne mentionnons l'interface <literal>Payment</"
"literal> explicitement. Notez aussi que des propriétés de <literal>Payment</"
"literal> sont mappées dans chaque classe fille. Si vous voulez éviter des "
-"duplications, considérez l'utilisation des entités XML (cf. <literal>[ <!"
-"ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> dans la "
-"déclaration du <literal>DOCTYPE</literal> et <literal>&allproperties;</"
-"literal> dans le mapping)."
+"duplications, considérez l'utilisation des entités XML (par ex. <literal>"
+"[ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> "
+"dans la déclaration <literal>DOCTYPE</literal> et dans le mappage "
+"<literal>&allproperties;</literal>). "
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
"<literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
-"L'inconvénient de cette approche est qu'Hibernate ne génère pas "
-"d'<literal>UNION</literal>s SQL lors de l'exécution des requêtes "
-"polymorphiques."
+"L'inconvénient de cette approche est que Hibernate ne génère pas de SQL "
+"<literal>UNION</literal> s lors de l'exécution des requêtes polymorphiques. "
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
"literal> is usually mapped using <literal><any></literal>."
msgstr ""
-"Pour cette stratégie de mapping, une association polymorphique pour "
+"Pour cette stratégie de mappage, une association polymorphique pour "
"<literal>Payment</literal> est habituellement mappée en utilisant "
-"<literal><any></literal>."
+"<literal><any></literal>. "
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
-msgstr "Mélange du polymorphisme implicite avec d'autres mappings d'héritage"
+msgstr "Mélange du polymorphisme implicite avec d'autres mappages d'héritage "
#. Tag: para
-#: inheritance_mapping.xml:248
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
"literal> element, and since <literal>Payment</literal> is just an "
@@ -573,50 +346,16 @@
"inheritance hierarchy. You can still use polymorphic queries against the "
"<literal>Payment</literal> interface."
msgstr ""
-"Il y a une chose supplémentaire à noter à propos de ce mapping. Puisque les "
+"Il y a une chose supplémentaire à noter à propos de ce mappage. Puisque les "
"classes filles sont chacune mappées avec leur propre élément <literal><"
"class></literal> (et puisque <literal>Payment</literal> est juste une "
"interface), chaque classe fille pourrait facilement faire partie d'une autre "
"hiérarchie d'héritage ! (Et vous pouvez encore faire des requêtes "
-"polymorphiques pour l'interface <literal>Payment</literal>)."
+"polymorphiques pour l'interface <literal>Payment</literal>). "
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:258
-#, fuzzy, no-c-format
-msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
"execute a query against the <literal>Payment</literal> interface, for "
"example <literal>from Payment</literal>, Hibernate automatically returns "
@@ -632,231 +371,210 @@
"literal> (et ses classes filles puisqu'elles implémentent aussi "
"<literal>Payment</literal>), <literal>CashPayment</literal> et "
"<literal>ChequePayment</literal> mais pas les instances de "
-"<literal>NonelectronicTransaction</literal>."
+"<literal>NonelectronicTransaction</literal>. "
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "Limitations"
#. Tag: para
-#: inheritance_mapping.xml:275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
"per concrete-class mapping strategy. There are somewhat less restrictive "
"limitations to <literal><union-subclass></literal> mappings."
msgstr ""
"Il y a certaines limitations à l'approche du \"polymorphisme implicite\" "
-"pour la stratégie de mapping d'une table par classe concrète. Il y a plutôt "
-"moins de limitations restrictives aux mappings <literal><union-"
-"subclass></literal>."
+"pour la stratégie de mappage d'une table par classe concrète. Il y a plutôt "
+"moins de limitations restrictives aux mappages <literal><union-"
+"subclass></literal>. "
#. Tag: para
-#: inheritance_mapping.xml:282
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
-"La table suivante montre les limitations des mappings d'une table par classe "
-"concrète, et du polymorphisme implicite, dans Hibernate."
+"La table suivante montre les limitations des mappages d'une table par classe "
+"concrète, et du polymorphisme implicite, dans Hibernate. "
#. Tag: title
-#: inheritance_mapping.xml:288
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Features of inheritance mappings"
-msgstr "Caractéristiques du mapping d'héritage"
+msgstr "Mapping d'héritage de classe "
#. Tag: entry
-#: inheritance_mapping.xml:301
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Inheritance strategy"
-msgstr "Stratégie d'héritage"
+msgstr "Mapping d'héritage de classe "
#. Tag: entry
-#: inheritance_mapping.xml:302
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-one"
-msgstr "many-to-one polymorphique"
+msgstr "Polymorphisme many-to-one : <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
-msgstr "one-to-one polymorphique"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
-msgstr "one-to-many polymorphique"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:305
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-many"
-msgstr "many-to-many polymorphique"
+msgstr "Polymorphisme many-to-one : <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
-msgstr "Requêtes polymorphiques"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
-msgstr "Jointures polymorphiques"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:309
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Outer join fetching"
-msgstr "Récupération par jointure externe"
+msgstr "Récupération par jointure externe supportée."
#. Tag: entry
-#: inheritance_mapping.xml:314
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per class-hierarchy"
msgstr "une table par hiérarchie de classe"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
+#. Tag: entry
#, no-c-format
-msgid "<many-to-one>"
-msgstr "<many-to-one>"
+msgid "<literal><many-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
+#. Tag: entry
#, no-c-format
-msgid "<one-to-one>"
-msgstr "<one-to-one>"
+msgid "<literal><one-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
+#. Tag: entry
#, no-c-format
-msgid "<one-to-many>"
-msgstr "<one-to-many>"
+msgid "<literal><one-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
+#. Tag: entry
#, no-c-format
-msgid "<many-to-many>"
-msgstr "<many-to-many>"
+msgid "<literal><many-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
+#. Tag: entry
#, no-c-format
-msgid "s.get(Payment.class, id)"
-msgstr "s.get(Payment.class, id)"
+msgid "<literal>s.get(Payment.class, id)</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
+#. Tag: entry
#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+msgid "<literal>from Payment p</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
-#, no-c-format
-msgid "from Order o join o.payment p"
-msgstr "from Order o join o.payment p"
-
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
-#, no-c-format
-msgid "supported"
-msgstr "supportée"
-
#. Tag: entry
-#: inheritance_mapping.xml:325
#, fuzzy, no-c-format
-msgid "<entry>table per subclass</entry>"
+msgid "<literal>from Order o join o.payment p</literal>"
+msgstr "Jointures polymorphiques <code>from o join o.payment p</code>"
+
+#. Tag: entry
+#, no-c-format
+msgid "<emphasis>supported</emphasis>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"une table par classe fille (table per subclass)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"une table par classe fille"
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
-msgstr "une table par classe concrète (union-subclass)"
+msgstr "une table par classe concrète (union-classe fille)"
#. Tag: entry
-#: inheritance_mapping.xml:339
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
"literal> only)"
msgstr ""
+"Polymorphisme one-to-many : <literal><one-to-many></literal> "
+"(uniquement pour <literal>inverse=\"true\"</literal>)"
#. Tag: entry
-#: inheritance_mapping.xml:347
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
-msgstr "une table par classe concrète (polymorphisme implicite)"
+msgstr "une table par classe concrète (polymorphisme implicite) "
-#. Tag: literal
-#: inheritance_mapping.xml:348
+#. Tag: entry
#, no-c-format
-msgid "<any>"
-msgstr "<any>"
-
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
-#, fuzzy, no-c-format
-msgid "not supported"
+msgid "<literal><any></literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"non supporté\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"non supporté\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"non supportées\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"non supportée"
-#. Tag: literal
-#: inheritance_mapping.xml:351
+#. Tag: entry
#, no-c-format
-msgid "<many-to-any>"
-msgstr "<many-to-any>"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:352
+#. Tag: entry
#, no-c-format
+msgid "<literal><many-to-any></literal>"
+msgstr ""
+
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"Polymorphisme <literal>load()</literal> ou <literal>get()</literal>: <code>s."
+"createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()</"
+"code>"
-#~ msgid "load()/get()"
-#~ msgstr "load()/get()"
+#~ msgid "table per class-heirarchy"
+#~ msgstr "une table par hiérarchie de classe "
-#~ msgid "Polymorphic <placeholder-1/>"
-#~ msgstr "<placeholder-1/> polymorphique"
+#~ msgid "Polymorphic many-to-one: <code><many-to-one></code>"
+#~ msgstr "Polymorphisme many-to-one : <code><many-to-one></code>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#~ msgid "Polymorphic one-to-one: <code><one-to-one></code>"
+#~ msgstr "Polymorphisme one-to-one : <code><one-to-one></code>"
-#~ msgid "<placeholder-1/> (for <placeholder-2/> only)"
-#~ msgstr "<placeholder-1/> (pour <placeholder-2/> seulement)"
+#~ msgid "Polymorphic one-to-many: <code><one-to-many></code>"
+#~ msgstr "Polymorphisme one-to-many : <code><one-to-many></code>"
+
+#~ msgid "Polymorphic many-to-many: <code><many-to-many></code>"
+#~ msgstr "Polymorphisme many-to-many : <code><many-to-many></code>"
+
+#~ msgid ""
+#~ "Polymorphic <literal>load()</literal> or <literal>get()</literal>: "
+#~ "<code>s.get(Payment.class, id)</code>"
+#~ msgstr ""
+#~ "Polymorphisme <literal>load()</literal> ou <literal>get()</literal>: "
+#~ "<code>s.get(Payment.class, id)</code>"
+
+#~ msgid "Polymorphic queries: <code>from Payment p</code>"
+#~ msgstr "Requêtes polymorphiques : <code>from Payment p</code>"
+
+#~ msgid ""
+#~ "Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and "
+#~ "outer join fetching are not supported."
+#~ msgstr ""
+#~ "Polymorphisme one-to-one, polymorphisme one-to-many, les jointures "
+#~ "polymorphiques, et les récupération de jointures externes ne sont pas "
+#~ "supportées."
+
+#, fuzzy
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "Une table par classe fille "
+
+#, fuzzy
+#~ msgid "<term>table per subclass</term>"
+#~ msgstr "Une table par classe fille "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,52 +1,53 @@
+# translation of performance.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: performance\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:38+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
msgstr "Améliorer les performances"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
msgstr "Stratégies de chargement"
#. Tag: para
-#: performance.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
"associated objects if the application needs to navigate the association. "
"Fetch strategies can be declared in the O/R mapping metadata, or over-ridden "
"by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
-"Une <emphasis>stratégie de chargement</emphasis> est une stratégie "
-"qu'Hibernate va utiliser pour récupérer des objets associés si l'application "
-"à besoin de naviguer à travers une association. Les stratégies de chargement "
-"peuvent être déclarées dans les méta-données de l'outil de mapping objet "
-"relationnel ou surchargées par une requête de type HQL ou <literal>Criteria</"
-"literal> particulière."
+"Une <emphasis>stratégie de chargement</emphasis> est une stratégie que "
+"Hibernate va utiliser pour récupérer des objets associés si l'application a "
+"besoin de naviguer à travers une association. Les stratégies de chargement "
+"peuvent être déclarées dans les méta-données de l'outil de mappage objet "
+"relationnel, ou surchargées par une requête de type HQL ou "
+"<literal>Criteria</literal> particulière."
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
msgstr "Hibernate3 définit les stratégies de chargement suivantes :"
#. Tag: para
-#: performance.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
"instance or collection in the same <literal>SELECT</literal>, using an "
@@ -54,11 +55,10 @@
msgstr ""
"<emphasis>Chargement par jointure</emphasis> - Hibernate récupère l'instance "
"associée ou la collection dans un même <literal>SELECT</literal>, en "
-"utilisant un <literal>OUTER JOIN</literal>."
+"utilisant un <literal>OUTER JOIN</literal>. "
#. Tag: para
-#: performance.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
"used to retrieve the associated entity or collection. Unless you explicitly "
@@ -66,14 +66,13 @@
"second select will only be executed when you access the association."
msgstr ""
"<emphasis>Chargement par select</emphasis> - Un second <literal>SELECT</"
-"literal> est utilisé pour récupérer l'instance associée ou la collection. A "
-"moins que vous ne désactiviez explicitement le chargement tardif en "
-"spécifiant <literal>lazy=\"false\"</literal>, ce second select ne sera "
-"exécuté que lorsque vous accéderez réellement à l'association."
+"literal> est utilisé pour récupérer l'instance associée à l'entité ou à la "
+"collection. à moins que vous ne désactiviez explicitement le chargement "
+"différé en spécifiant <literal>lazy=\"false\"</literal>, ce second select ne "
+"sera exécuté que lorsque vous accéderez réellement à l'association."
#. Tag: para
-#: performance.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
"is used to retrieve the associated collections for all entities retrieved in "
@@ -84,13 +83,12 @@
"<emphasis>Chargement par sous-select</emphasis> - Un second <literal>SELECT</"
"literal> est utilisé pour récupérer les associations pour toutes les entités "
"récupérées dans une requête ou un chargement préalable. A moins que vous ne "
-"désactiviez explicitement le chargement tardif en spécifiant <literal>lazy="
+"désactiviez explicitement le chargement différé en spécifiant <literal>lazy="
"\"false\"</literal>, ce second select ne sera exécuté que lorsque vous "
-"accéderez réellement à l'association."
+"accéderez réellement à l'association. "
#. Tag: para
-#: performance.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
"fetching. Hibernate retrieves a batch of entity instances or collections in "
@@ -100,67 +98,61 @@
"<emphasis>Chargement par lot</emphasis> - Il s'agit d'une stratégie "
"d'optimisation pour le chargement par select - Hibernate récupère un lot "
"d'instances ou de collections en un seul <literal>SELECT</literal> en "
-"spécifiant une liste de clé primaire ou de clé étrangère."
+"spécifiant une liste de clés primaires ou de clés étrangères. "
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
msgstr "Hibernate fait également la distinction entre :"
#. Tag: para
-#: performance.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
"attribute is fetched immediately when the owner is loaded."
msgstr ""
"<emphasis>Chargement immédiat</emphasis> - Une association, une collection "
"ou un attribut est chargé immédiatement lorsque l'objet auquel appartient "
-"cet élément est chargé."
+"cet élément est chargé. "
#. Tag: para
-#: performance.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
"the application invokes an operation upon that collection. This is the "
"default for collections."
msgstr ""
-"<emphasis>Chargement tardif d'une collection</emphasis> - Une collection est "
-"chargée lorque l'application invoque une méthode sur cette collection (il "
-"s'agit du mode de chargement par défaut pour les collections)."
+"<emphasis>Chargement différé d'une collection</emphasis> - Une collection "
+"est chargée lorsque l'application invoque une méthode sur cette collection "
+"(il s'agit du mode de chargement par défaut pour les collections). "
#. Tag: para
-#: performance.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
"of the collection are accessed from the database as needed. Hibernate tries "
"not to fetch the whole collection into memory unless absolutely needed. It "
"is suitable for large collections."
msgstr ""
-"<emphasis>Chargement \"super tardif\" d'une collection</emphasis> - les "
-"éléments de la collection sont récupérés individuellement depuis la base de "
-"données lorsque nécessaire. Hibernate essaie de ne pas charger toute la "
-"collection en mémoire sauf si cela est absolument nécessaire (bien adapté "
-"aux très grandes collections)."
+"<emphasis>Chargement \"super différé\" d'une collection</emphasis> - On "
+"accède aux éléments de la collection depuis la base de données lorsque c'est "
+"nécessaire. Hibernate essaie de ne pas charger toute la collection en "
+"mémoire sauf si cela est absolument nécessaire (bien adapté aux très grandes "
+"collections). "
#. Tag: para
-#: performance.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
"when a method other than the identifier getter is invoked upon the "
"associated object."
msgstr ""
-"<emphasis>Chargement par proxy</emphasis> - une association vers un seul "
+"<emphasis>Chargement par proxy</emphasis> - Une association vers un seul "
"objet est chargée lorsqu'une méthode autre que le getter sur l'identifiant "
"est appelée sur l'objet associé."
#. Tag: para
-#: performance.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
"fetched when the instance variable is accessed. Compared to proxy fetching, "
@@ -170,28 +162,27 @@
"instrumentation and is rarely necessary."
msgstr ""
"<emphasis>Chargement \"sans proxy\"</emphasis> - une association vers un "
-"seul objet est chargée lorsque l'on accède à cet objet. Par rapport au "
-"chargement par proxy, cette approche est moins tardif (l'association est "
-"quand même chargée même si on n'accède qu'à l'identifiant) mais plus "
-"transparente car il n'y a pas de proxy visible dans l'application. Cette "
-"approche requiert une instrumentation du bytecode à la compilation et est "
-"rarement nécessaire."
+"seul objet est chargée lorsque l'on accède à la variable d'instance. Par "
+"rapport au chargement par proxy, cette approche est moins différée "
+"(l'association est quand même chargée même si on n'accède qu'à "
+"l'identifiant) mais plus transparente car il n'y a pas de proxy visible dans "
+"l'application. Cette approche requiert une instrumentation du bytecode à la "
+"compilation et est rarement nécessaire. "
#. Tag: para
-#: performance.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
"association is fetched when the instance variable is accessed. This approach "
"requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>Chargement tardif des attributs</emphasis> - Un attribut ou un "
-"objet associé seul est chargé lorsque l'on y accède. Cette approche requiert "
-"une instrumentation du bytecode à la compilation et est rarement nécessaire."
+"<emphasis>Chargement différé des attributs</emphasis> - Un attribut ou un "
+"objet associé seul est chargé lorsque l'on accède à la variable d'instance. "
+"Cette approche requiert une instrumentation du bytecode à la compilation et "
+"est rarement nécessaire. "
#. Tag: para
-#: performance.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
"association fetched and <emphasis>how</emphasis> is it fetched. It is "
@@ -202,90 +193,68 @@
msgstr ""
"Nous avons ici deux notions orthogonales : <emphasis>quand</emphasis> "
"l'association est chargée et <emphasis>comment</emphasis> (quelle requête "
-"SQL est utilisée). Il ne faut pas confondre les deux. Le mode de chargement "
-"est utilisé pour améliorer les performances. On peut utiliser le mode tardif "
-"pour définir un contrat sur quelles données sont toujours accessibles sur "
-"une instance détachée d'une classe particulière."
+"SQL est utilisée). Il ne faut pas les confondre. Le mode de chargement "
+"<literal>fetch</literal> est utilisé pour améliorer les performances. On "
+"peut utiliser le mode <literal>lazy</literal> pour définir un contrat sur "
+"quelles données sont toujours accessibles sur toute instance détachée d'une "
+"classe particulière. "
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
-msgstr "Travailler avec des associations chargées tardivement"
+msgstr "Travailler avec des associations chargées en différé"
#. Tag: para
-#: performance.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
"proxy fetching for single-valued associations. These defaults make sense for "
"most associations in the majority of applications."
msgstr ""
-"Par défaut, Hibernate3 utilise le chargement tardif par select pour les "
-"collections et le chargement tardif par proxy pour les associations vers un "
+"Par défaut, Hibernate3 utilise le chargement différé par select pour les "
+"collections et le chargement différé par proxy pour les associations vers un "
"seul objet. Ces valeurs par défaut sont valables pour la plupart des "
-"associations dans la plupart des applications."
+"associations dans la plupart des applications. "
#. Tag: para
-#: performance.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
"will use the batch fetch optimization for lazy fetching. This optimization "
"can also be enabled at a more granular level."
msgstr ""
-"<emphasis>Note :</emphasis> si vous définissez <literal>hibernate."
-"default_batch_fetch_size</literal>, Hibernate va utiliser l'optimisation du "
-"chargement par lot pour le chargement tardif (cette optimisation peut aussi "
-"être activée à un niveau de granularité plus fin)."
+"Si vous définissez <literal>hibernate.default_batch_fetch_size</literal>, "
+"Hibernate va utiliser l'optimisation du chargement par lot pour le "
+"chargement différé (cette optimisation peut aussi être activée à un niveau "
+"de granularité plus fin). "
#. Tag: para
-#: performance.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
"an open Hibernate session will result in an exception. For example:"
msgstr ""
-"Cependant, le chargement tardif pose un problème qu'il faut connaitre. "
-"L'accès à une association définie comme \"tardive\", hors du contexte d'une "
-"session hibernate ouverte, va conduire à une exception. Par exemple :"
+"L'accès à une association définie comme \"différé\", hors du contexte d'une "
+"session Hibernate ouverte, entraîne une exception. Par exemple : "
-#. Tag: programlisting
-#: performance.xml:164
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:166
-#, fuzzy, no-c-format
-msgid ""
"Since the permissions collection was not initialized when the "
"<literal>Session</literal> was closed, the collection will not be able to "
"load its state. <emphasis>Hibernate does not support lazy initialization for "
"detached objects</emphasis>. This can be fixed by moving the code that reads "
"from the collection to just before the transaction is committed."
msgstr ""
-"Etant donné que la collection des permissions n'a pas été initialisée avant "
-"que la <literal>Session</literal> soit fermée, la collection n'est pas "
-"capable de se charger. <emphasis>Hibernate ne supporte pas le chargement "
-"tardif pour des objets détachés</emphasis>. La solution à ce problème est de "
-"déplacer le code qui lit la collection avant le \"commit\" de la transaction."
+"Ãtant donné que la collection des permissions n'a pas été initialisée avant "
+"de fermer la <literal>Session</literal>, la collection n'est pas capable de "
+"charger son état. <emphasis>Hibernate ne supporte pas le chargement différé "
+"pour des objets détachés</emphasis>. La solution à ce problème est de "
+"déplacer le code qui lit à partir de la collection avant le \"commit\" de la "
+"transaction. "
#. Tag: para
-#: performance.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
"specifying <literal>lazy=\"false\"</literal> for the association mapping. "
@@ -295,16 +264,15 @@
"in every transaction."
msgstr ""
"Une autre alternative est d'utiliser une collection ou une association non "
-"\"tardive\" en spécifiant <literal>lazy=\"false\"</literal> dans le mapping "
-"de l'association. Cependant il est prévu que le chargement tardif soit "
+"\"différée\" en spécifiant <literal>lazy=\"false\"</literal> dans le mappage "
+"de l'association. Cependant il est prévu que le chargement différé soit "
"utilisé pour quasiment toutes les collections ou associations. Si vous "
-"définissez trop d'associtions non \"tardives\" dans votre modèle objet, "
+"définissez trop d'associations non \"différées\" dans votre modèle objet, "
"Hibernate va finir par devoir charger toute la base de données en mémoire à "
-"chaque transaction !"
+"chaque transaction."
#. Tag: para
-#: performance.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
"instead of select fetching in a particular transaction. We will now explain "
@@ -312,79 +280,55 @@
"choosing a fetch strategy are identical for single-valued associations and "
"collections."
msgstr ""
-"D'un autre côté, on veut souvent choisir un chargement par jointure (qui est "
-"par défaut non tardif) à la place du chargement par select dans une "
+"Par ailleurs, on veut souvent choisir un chargement par jointure (qui est "
+"par défaut non différé) à la place du chargement par select dans une "
"transaction particulière. Nous allons maintenant voir comment adapter les "
"stratégies de chargement. Dans Hibernate3 les mécanismes pour choisir une "
"stratégie de chargement sont identiques que l'on ait une association vers un "
-"objet simple ou vers une collection."
+"objet simple ou vers une collection. "
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr "Personnalisation des stratégies de chargement"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
"problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
"Le chargement par select (mode par défaut) est très vulnérable au problème "
-"du N+1 selects, du coup vous pouvez avoir envie d'activer le chargement par "
-"jointure dans les fichiers de mapping :"
+"du N+1 selects, ainsi vous souhaiterez peut-être activer le chargement par "
+"jointure dans les fichiers de mappage :"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
"affects:"
msgstr ""
"La stratégie de chargement définie à l'aide du mot <literal>fetch</literal> "
-"dans les fichiers de mapping affecte :"
+"dans les fichiers de mappage affecte :"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr ""
"La récupération via <literal>get()</literal> ou <literal>load()</literal>"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr ""
"La récupération implicite lorsque l'on navigue à travers une association"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
-msgstr "Les requêtes de type <literal>Criteria</literal>"
+msgstr "Les requêtes par <literal>Criteria</literal>"
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
msgstr ""
@@ -392,21 +336,18 @@
"literal>"
#. Tag: para
-#: performance.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
"guaranteed to be loaded into memory. This might, however, result in several "
"immediate selects being used to execute a particular HQL query."
msgstr ""
"Quelle que soit la stratégie de chargement que vous utilisez, la partie du "
-"graphe d'objets qui est définie comme non \"tardive\" sera chargée en "
-"mémoire. Cela peut mener à l'exécution de plusieurs selects successifs pour "
-"une seule requête HQL."
+"graphe d'objets, non-différée, sera chargée en mémoire. Cela peut mener à "
+"l'exécution de plusieurs selects successifs pour une seule requête HQL. "
#. Tag: para
-#: performance.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
"keep the default behavior, and override it for a particular transaction, "
@@ -415,66 +356,51 @@
"the <literal>Criteria</literal> query API, you would use "
"<literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
-"On n'utilise pas souvent les documents de mapping pour adapter le "
-"chargement. Au lieu de cela, on conserve le comportement par défaut et on le "
+"On n'utilise pas souvent les documents de mappage pour adapter le "
+"chargement. En revanche, on conserve le comportement par défaut et on le "
"surcharge pour une transaction particulière en utilisant <literal>left join "
-"fetch</literal> dans les requêtes HQL. Cela indique à hibernate à Hibernate "
-"de charger l'association de manière agressive lors du premier select en "
-"utilisant une jointure externe. Dans l'API Criteria vous pouvez utiliser la "
-"méthode <literal>setFetchMode(FetchMode.JOIN)</literal>"
+"fetch</literal> dans les requêtes HQL. Cela indique à Hibernate de charger "
+"l'association de manière agressive lors du premier select en utilisant une "
+"jointure externe. Dans la requête API <literal>Criteria</literal> vous "
+"utiliserez la méthode <literal>setFetchMode(FetchMode.JOIN)</literal>."
#. Tag: para
-#: performance.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
"or <literal>load()</literal>, you can use a <literal>Criteria</literal> "
"query. For example:"
msgstr ""
-"Si vous ne vous sentez pas prêt à modifier la stratégie de chargement "
-"utilisé par <literal>get()</literal> ou <literal>load()</literal>, vous "
+"S'il vous arrive de vouloir changer la stratégie de chargement utilisée par "
+"utilisée par <literal>get()</literal> ou <literal>load()</literal>, vous "
"pouvez juste utiliser une requête de type <literal>Criteria</literal> comme "
-"par exemple :"
+"par exemple : "
-#. Tag: programlisting
-#: performance.xml:253
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:255
-#, fuzzy, no-c-format
-msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
"\"."
msgstr ""
-"(Il s'agit de l'équivalent pour Hibernate de ce que d'autres outils de "
-"mapping appellent un \"fetch plan\" ou \"plan de chargement\")"
+"Il s'agit de l'équivalent pour Hibernate de ce que d'autres outils de "
+"mappage appellent un \"fetch plan\" ou \"plan de chargement\"."
#. Tag: para
-#: performance.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
"second-level cache."
msgstr ""
"Une autre manière complètement différente d'éviter le problème des N+1 "
-"selects est d'utiliser le cache de second niveau."
+"selects est d'utiliser le cache de second niveau. "
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
-msgstr "Proxys pour des associations vers un seul objet"
+msgstr "Proxies pour des associations vers un seul objet "
#. Tag: para
-#: performance.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
"implementation of persistent collections. However, a different mechanism is "
@@ -483,29 +409,27 @@
"proxies for persistent objects using runtime bytecode enhancement which is "
"accessed via the CGLIB library."
msgstr ""
-"Le chargement tardif des collections est implémenté par Hibernate en "
-"utilisant ses propres implémentations pour des collections persistantes. Si "
-"l'on veut un chargement tardif pour des associations vers un seul objet "
-"métier il faut utiliser un autre mécanisme. L'entité qui est pointée par "
-"l'association doit être masquée derrière un proxy. Hibernate implémente "
-"l'initialisation tardive des proxys sur des objets persistents via une mise "
-"à jour à chaud du bytecode (à l'aide de l'excellente librairie CGLIB)."
+"Le chargement différé des collections est implémenté par Hibernate qui "
+"utilise ses propres implémentations pour des collections persistantes. Si "
+"l'on veut un chargement différé pour des associations vers un seul objet, il "
+"faut utiliser un autre mécanisme. L'entité qui est pointée par l'association "
+"doit être masquée derrière un proxy. Hibernate implémente l'initialisation "
+"différée des proxies sur des objets persistants via une mise à jour à chaud "
+"du bytecode (Ã l'aide de l'excellente librairie CGLIB)."
#. Tag: para
-#: performance.xml:277
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
"classes and uses them to enable lazy fetching of <literal>many-to-one</"
"literal> and <literal>one-to-one</literal> associations."
msgstr ""
-"Par défaut, Hibernate génère des proxys (au démarrage) pour toutes les "
-"classes persistantes et les utilise pour activer le chargement tardif des "
+"Par défaut, Hibernate génère des proxies (au démarrage) pour toutes les "
+"classes persistantes et les utilise pour activer le chargement différé des "
"associations <literal>many-to-one</literal> et <literal>one-to-one</literal>."
#. Tag: para
-#: performance.xml:283
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
"that class, with the <literal>proxy</literal> attribute. By default, "
@@ -513,38 +437,24 @@
"implement a default constructor with at least package visibility. This "
"constructor is recommended for all persistent classes</emphasis>."
msgstr ""
-"Le fichier de mapping peut déclarer une interface qui sera utilisée par le "
-"proxy d'interfaçage pour cette classe à l'aide de l'attribut <literal>proxy</"
-"literal>. Par défaut Hibernate utilises une sous classe de la classe "
-"persistante. <emphasis>Il faut que les classes pour lesquelles on ajoute un "
-"proxy implémentent un constructeur par défaut de visibilité au moins "
-"package. Ce constructeur est recommandé pour toutes les classes "
-"persistantes !</emphasis>"
+"Le fichier de mappage peut déclarer une interface à utiliser comme interface "
+"de proxy pour cette classe à l'aide de l'attribut <literal>proxy</literal>. "
+"Par défaut Hibernate utilise une sous-classe de la classe persistante. "
+"<emphasis>Il faut que les classes pour lesquelles on ajoute un proxy "
+"implémentent un constructeur par défaut avec au minimum une visibilité de "
+"paquetage. Ce constructeur est recommandé pour toutes les classes "
+"persistantes !</emphasis>."
#. Tag: para
-#: performance.xml:290
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
"polymorphic classes.For example:"
msgstr ""
"Il y a quelques précautions à prendre lorsque l'on étend cette approche à "
-"des classes polymorphiques, exemple :"
+"des classes polymorphiques, par exemple : "
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
@@ -552,44 +462,17 @@
"instance of <literal>DomesticCat</literal>:"
msgstr ""
"Tout d'abord, les instances de <literal>Cat</literal> ne pourront jamais "
-"être \"castées\" en <literal>DomesticCat</literal>, même si l'instance sous "
+"être \"castées\" en <literal>DomesticCat</literal>, même si l'instance sous-"
"jacente est une instance de <literal>DomesticCat</literal> :"
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
msgstr ""
-"Deuxièmement, il est possible de casser la notion d'<literal>==</literal> "
-"des proxy."
+"Deuxièmement, il est possible de casser la notion de <literal>==</literal> "
+"des proxies. "
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
@@ -597,45 +480,34 @@
"still be the same object:"
msgstr ""
"Cette situation n'est pas si mauvaise qu'il n'y parait. Même si nous avons "
-"deux références à deux objets proxys différents, l'instance de base sera "
-"quand même le même objet :"
+"deux références à deux objets proxies différents, l'instance sous-jacente "
+"sera quand même le même objet :"
-#. Tag: programlisting
-#: performance.xml:315
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:317
-#, fuzzy, no-c-format
-msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
"a class with any <literal>final</literal> methods."
msgstr ""
"Troisièmement, vous ne pourrez pas utiliser un proxy CGLIB pour une classe "
"<literal>final</literal> ou pour une classe contenant la moindre méthode "
-"<literal>final</literal>."
+"<literal>final</literal>. "
#. Tag: para
-#: performance.xml:322
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
"(e.g. in initializers or default constructor), then those resources will "
"also be acquired by the proxy. The proxy class is an actual subclass of the "
"persistent class."
msgstr ""
-"Enfin, si votre objet persistant obtient une ressource à l'instanciation "
-"(par example dans les initialiseurs ou dans le contructeur par défaut), "
-"alors ces ressources seront aussi obtenues par le proxy. La classe proxy est "
-"vraiment une sous classe de la classe persistante."
+"Enfin, si votre objet persistant obtient une quelconque ressource à "
+"l'instanciation (par exemple dans les initialiseurs ou dans le constructeur "
+"par défaut), alors ces ressources seront aussi obtenues par le proxy. La "
+"classe proxy est en réalité une sous-classe de la classe persistante. "
#. Tag: para
-#: performance.xml:328
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
"inheritance model. To avoid these problems your persistent classes must each "
@@ -649,101 +521,74 @@
"d'héritage unique de Java. Si vous souhaitez éviter ces problèmes, vos "
"classes persistantes doivent chacune implémenter une interface qui déclare "
"ses méthodes métier. Vous devriez alors spécifier ces interfaces dans le "
-"fichier de mapping :"
+"fichier de mappage : <literal>CatImpl</literal> implémente l'interface "
+"<literal>Cat</literal> et <literal>DomesticCatImpl</literal> implémente "
+"l'interface <literal>DomesticCat</literal>. Par exemple :"
-#. Tag: programlisting
-#: performance.xml:336
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:338
-#, fuzzy, no-c-format
-msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
"<literal>DomesticCat</literal> can be returned by <literal>load()</literal> "
"or <literal>iterate()</literal>."
msgstr ""
-"Tout d'abord, les instances de <literal>Cat</literal> ne pourront jamais "
-"être \"castées\" en <literal>DomesticCat</literal>, même si l'instance sous "
-"jacente est une instance de <literal>DomesticCat</literal> :"
+"Tout d'abord, les instances de <literal>Cat</literal> et de "
+"<literal>DomesticCat</literal> peuvent être retournées par <literal>load()</"
+"literal> ou par <literal>iterate()</literal>."
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Remarque"
#. Tag: para
-#: performance.xml:347
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
-msgstr "Les requêtes de type <literal>Criteria</literal>"
+msgstr "<literal>list()</literal> ne retourne pas les proxies normalement."
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
"properties to be of type <literal>Cat</literal>, not <literal>CatImpl</"
"literal>."
msgstr ""
-"Les relations sont aussi initialisées tardivement. Ceci signifie que vous "
+"Les relations sont aussi initialisées en différé. Ceci signifie que vous "
"devez déclarer chaque propriété comme étant de type <literal>Cat</literal>, "
"et non <literal>CatImpl</literal>."
#. Tag: para
-#: performance.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
-msgstr "Certaines opérations ne nécessitent pas l'initialisation du proxy"
+msgstr ""
+"Certaines opérations ne nécessitent <emphasis>pas</emphasis> "
+"l'initialisation du proxy :"
#. Tag: para
-#: performance.xml:363
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
"<literal>equals()</literal>"
msgstr ""
"<literal>equals()</literal>, si la classe persistante ne surcharge pas "
-"<literal>equals()</literal>"
+"<literal>equals()</literal> "
#. Tag: para
-#: performance.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
"<literal>hashCode()</literal>"
msgstr ""
"<literal>hashCode()</literal>, si la classe persistante ne surcharge pas "
-"<literal>hashCode()</literal>"
+"<literal>hashCode()</literal> "
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
-msgstr "Le getter de l'identifiant"
+msgstr "La méthode getter de l'identifiant "
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
@@ -753,8 +598,7 @@
"ou <literal>hashCode()</literal>."
#. Tag: para
-#: performance.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
"<literal>lazy=\"proxy\"</literal>, you can avoid problems associated with "
@@ -764,18 +608,16 @@
"Eh choisissant <literal>lazy=\"no-proxy\"</literal> au lieu de <literal>lazy="
"\"proxy\"</literal> qui est la valeur par défaut, il est possible d'éviter "
"les problèmes liés au transtypage. Il faudra alors une instrumentation du "
-"bytecode à la compilation et toutes les opérations résulterons immédiatement "
-"en une initialisation du proxy."
+"bytecode à la compilation et toutes les opérations résulteront immédiatement "
+"en une initialisation du proxy. "
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
-msgstr "Initialisation des collections et des proxys"
+msgstr "Initialisation des collections et des proxies"
#. Tag: para
-#: performance.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
"if an uninitialized collection or proxy is accessed outside of the scope of "
@@ -783,14 +625,13 @@
"or having the reference to the proxy is in the detached state."
msgstr ""
"Une exception de type <literal>LazyInitializationException</literal> sera "
-"renvoyée par hibernate si une collection ou un proxy non initialisé est "
-"accédé en dehors de la portée de la <literal>Session</literal>, e.g. lorsque "
-"l'entité à laquelle appartient la collection ou qui a une référence vers le "
-"proxy est dans l'état \"détachée\"."
+"renvoyée par Hibernate si une collection ou un proxy non initialisé est "
+"accédé en dehors de la portée de la <literal>Session</literal>, par ex. "
+"lorsque l'entité à laquelle appartient la collection ou qui a une référence "
+"vers le proxy, est dans l'état \"détaché\". "
#. Tag: para
-#: performance.xml:404
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
"<literal>Session</literal>. You can force initialization by calling "
@@ -799,15 +640,14 @@
"and it is not convenient for generic code."
msgstr ""
"Parfois, nous devons nous assurer qu'un proxy ou une collection est "
-"initialisée avant de fermer la <literal>Session</literal>. Bien sûr, nous "
+"initialisé avant de fermer la <literal>Session</literal>. Bien sûr, nous "
"pouvons toujours forcer l'initialisation en appelant par exemple "
"<literal>cat.getSex()</literal> ou <literal>cat.getKittens().size()</"
"literal>. Mais ceci n'est pas très lisible pour les personnes parcourant le "
-"code et n'est pas très générique."
+"code et n'est pas approprié pour le code générique. "
#. Tag: para
-#: performance.xml:411
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
"<literal>Hibernate.isInitialized()</literal>, provide the application with a "
@@ -819,15 +659,14 @@
msgstr ""
"Les méthodes statiques <literal>Hibernate.initialize()</literal> et "
"<literal>Hibernate.isInitialized()</literal> fournissent à l'application un "
-"moyen de travailler avec des proxys ou des collections initialisés. "
+"moyen de travailler avec des proxies ou des collections initialisés. "
"<literal>Hibernate.initialize(cat)</literal> forcera l'initialisation d'un "
"proxy de <literal>cat</literal>, si tant est que sa <literal>Session</"
"literal> est ouverte. <literal>Hibernate.initialize( cat.getKittens() )</"
-"literal> a le même effet sur la collection kittens."
+"literal> a le même effet sur la collection kittens. "
#. Tag: para
-#: performance.xml:420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
"required collections and proxies have been loaded. In some application "
@@ -838,17 +677,16 @@
"are two basic ways to deal with this issue:"
msgstr ""
"Une autre option est de conserver la <literal>Session</literal> ouverte "
-"jusqu'à ce que toutes les collections et tous les proxys aient été chargés. "
-"Dans certaines architectures applicatives, particulièrement celles ou le "
-"code d'accès aux données via hiberante et le code qui utilise ces données "
-"sont dans des couches applicatives différentes ou des processus physiques "
-"différents, il peut devenir problématique de garantir que la "
+"jusqu'à ce que toutes les collections et tous les proxies nécessaires aient "
+"été chargés. Dans certaines architectures applicatives, particulièrement "
+"celles ou le code d'accès aux données via Hiberante et le code qui utilise "
+"ces données sont dans des couches applicatives différentes ou des processus "
+"physiques différents, il sera alors difficile de garantir que la "
"<literal>Session</literal> est ouverte lorsqu'une collection est "
-"initialisée. Il y a deux moyens de traiter ce problème :"
+"initialisée. Il y a deux moyens de maîtriser ce problème : "
#. Tag: para
-#: performance.xml:431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
"<literal>Session</literal> only at the end of a user request, once the "
@@ -863,16 +701,15 @@
"Dans une application web, un filtre de servlet peut être utilisé pour fermer "
"la <literal>Session</literal> uniquement lorsque la requête a été "
"entièrement traitée, lorsque le rendu de la vue est fini (il s'agit du "
-"pattern <emphasis>Open Session in View</emphasis>). Bien sûr, cela demande "
-"plus d'attention à la bonne gestion des exceptions de l'application. Il est "
-"d'une importance vitale que la <literal>Session</literal> soit fermée et la "
-"transaction terminée avant que l'on rende la main à l'utilisateur même si "
-"une exception survient durant le traitement de la vue. Voir le wiki "
-"Hibernate pour des exemples sur le pattern \"Open Session in View\"."
+"modèle <emphasis>Vue de la session ouverte</emphasis>). Bien sûr, cela "
+"demande plus d'attention à la bonne gestion des exceptions de l'application. "
+"Il est d'une importance vitale que la <literal>Session</literal> soit fermée "
+"et la transaction terminée avant que l'on rende la main à l'utilisateur même "
+"si une exception survient durant le traitement de la vue. Voir le wiki "
+"Hibernate pour des exemples sur le modèle \"Open Session in View\". "
#. Tag: para
-#: performance.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
"\"prepare\" all collections that the web tier needs before returning. This "
@@ -886,24 +723,23 @@
"literal>. This is usually easier if you adopt the <emphasis>Command</"
"emphasis> pattern instead of a <emphasis>Session Facade</emphasis>."
msgstr ""
-"Dans une application avec une couche métier séparée, la couche contenant la "
-"logique métier doit \"préparer\" toutes les collections qui seront "
-"nécessaires à la couche web avant de retourner les données. Cela signifie "
-"que la couche métier doit charger toutes les données et retourner toutes les "
-"données déjà initialisées à la couche de présentation/web pour un cas "
-"d'utilisation donné. En général l'application appelle la méthode "
-"<literal>Hibernate.initialize()</literal> pour chaque collection nécessaire "
-"dans la couche web (cet appel doit être fait avant la fermeture de la "
-"session) ou bien récupère les collections de manière agressive à l'aide "
-"d'une requête HQL avec une clause <literal>FETCH</literal> ou à l'aide du "
-"mode <literal>FetchMode.JOIN</literal> pour une requête de type "
-"<literal>Criteria</literal>. Cela est en général plus facile si vous "
-"utilisez le pattern <emphasis>Command</emphasis> plutôt que "
-"<emphasis>Session Facade</emphasis>."
+"Dans une application avec une couche métier multiniveaux séparée, la couche "
+"contenant la logique métier doit \"préparer\" toutes les collections qui "
+"seront nécessaires à la couche web multiniveaux avant de retourner les "
+"données. Cela signifie que la couche métier doit charger toutes les données "
+"et retourner toutes les données déjà initialisées à la couche de "
+"présentation/web pour un cas d'utilisation donné. En général l'application "
+"appelle la méthode <literal>Hibernate.initialize()</literal> pour chaque "
+"collection nécessaire dans la couche web (cet appel doit être fait avant la "
+"fermeture de la session) ou bien récupère les collections de manière "
+"agressive à l'aide d'une requête HQL avec une clause <literal>FETCH</"
+"literal> ou à l'aide du mode <literal>FetchMode.JOIN</literal> pour une "
+"requête de type <literal>Criteria</literal>. Cela est en général plus facile "
+"si vous utilisez le modèle <emphasis>Command</emphasis> plutôt que "
+"<emphasis>Session Facade</emphasis>. "
#. Tag: para
-#: performance.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
"literal> with <literal>merge()</literal> or <literal>lock()</literal> before "
@@ -913,25 +749,23 @@
msgstr ""
"Vous pouvez également attacher à une <literal>Session</literal> un objet "
"chargé au préalable à l'aide des méthodes <literal>merge()</literal> ou "
-"<literal>lock()</literal> avant d'accéder aux collections (ou aux proxys) "
-"non initialisés. Non, Hibernate ne fait pas, et ne doit pas faire, cela "
+"<literal>lock()</literal> avant d'accéder aux collections (ou aux proxies) "
+"non initialisés. Non, Hibernate ne fait pas, et ne doit pas faire cela "
"automatiquement car cela pourrait introduire une sémantique transactionnelle "
-"ad hoc."
+"ad hoc. "
#. Tag: para
-#: performance.xml:469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
"some information about it, like its size, for example, or a subset of the "
"data."
msgstr ""
"Parfois, vous ne voulez pas initialiser une grande collection mais vous avez "
-"quand même besoin d'informations sur elle (comme sa taille) ou un sous "
-"ensemble de ses données"
+"quand même besoin d'informations sur elle (comme sa taille) ou un sous-"
+"ensemble de ses données."
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
@@ -940,16 +774,7 @@
"Vous pouvez utiliser un filtre de collection pour récupérer sa taille sans "
"l'initialiser :"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
@@ -957,26 +782,16 @@
"collection:"
msgstr ""
"La méthode <literal>createFilter()</literal> est également utilisée pour "
-"récupérer de manière efficace des sous ensembles d'une collection sans avoir "
-"besoin de l'initialiser dans son ensemble."
+"récupérer efficacement des sous-ensembles d'une collection sans avoir besoin "
+"de l'initialiser dans son ensemble :"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr "Utiliser le chargement par lot"
#. Tag: para
-#: performance.xml:492
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
"one proxy is accessed. Batch fetching is an optimization of the lazy select "
@@ -984,15 +799,15 @@
"the class level and the collection level."
msgstr ""
"Pour améliorer les performances, Hibernate peut utiliser le chargement par "
-"lot ce qui veut dire qu'Hibernate peut charger plusieurs proxys (ou "
+"lot ce qui veut dire que Hibernate peut charger plusieurs proxies (ou "
"collections) non initialisés en une seule requête lorsque l'on accède à l'un "
-"de ces proxys. Le chargement par lot est une optimisation intimement liée à "
-"la stratégie de chargement tardif par select. Il y a deux moyens d'activer "
-"le chargement par lot : au niveau de la classe et au niveau de la collection."
+"de ces proxies. Le chargement par lot est une optimisation intimement liée à "
+"la stratégie de chargement en différé par select. Il y a deux moyens "
+"d'activer le chargement par lot : au niveau de la classe et au niveau de la "
+"collection."
#. Tag: para
-#: performance.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
"following example: at runtime you have 25 <literal>Cat</literal> instances "
@@ -1015,26 +830,19 @@
"literal> sur chacun d'eux, Hibernate exécutera par défaut 25 "
"<literal>SELECT</literal>, pour charger les owners (initialiser le proxy). "
"Vous pouvez paramétrer ce comportement en spécifiant une <literal>batch-"
-"size</literal> (taille du lot) dans le mapping de <literal>Person</literal> :"
+"size</literal> (taille du lot) dans le mappage de <literal>Person</"
+"literal> : "
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
msgstr ""
"Hibernate exécutera désormais trois requêtes, en chargeant respectivement "
-"10, 10, et 5 entités."
+"10, 10, et 5 entités. "
#. Tag: para
-#: performance.xml:514
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
"<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, "
@@ -1045,27 +853,15 @@
"<literal>Person</literal>, Hibernate can pre-fetch collections:"
msgstr ""
"Vous pouvez aussi activer le chargement par lot pour les collections. Par "
-"exemple, si chaque <literal>Person</literal> a une collection chargée "
-"tardivement de <literal>Cat</literal>s, et que 10 personnes sont "
-"actuellement chargées dans la <literal>Session</literal>, itérer sur toutes "
-"les persons générera 10 <literal>SELECT</literal>s, un pour chaque appel de "
+"exemple, si chaque <literal>Person</literal> a une collection chargée en "
+"différé des <literal>Cat</literal>s, et que 10 personnes sont actuellement "
+"chargées dans la <literal>Session</literal>, itérer sur toutes les persons "
+"générera 10 <literal>SELECT</literal> s, un pour chaque appel de "
"<literal>getCats()</literal>. Si vous activez le chargement par lot pour la "
-"collection <literal>cats</literal> dans le mapping de <literal>Person</"
+"collection <literal>cats</literal> dans le mappage de <literal>Person</"
"literal>, Hibernate pourra précharger les collections :"
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -1073,15 +869,14 @@
"attribute depends on the expected number of uninitialized collections in a "
"particular <literal>Session</literal>."
msgstr ""
-"Avec une taille de lot (<literal>batch-size</literal>) de 3, Hibernate "
-"chargera respectivement 3, 3, 3, et 1 collections en quatre <literal>SELECT</"
-"literal>s. Encore une fois, la valeur de l'attribut dépend du nombre de "
-"collections non initialisées dans une <literal>Session</literal> "
-"particulière."
+"Avec une taille de lot <literal>batch-size</literal> de 8, Hibernate "
+"chargera respectivement des collections 3, 3, 3, et 1 en quatre "
+"<literal>SELECT</literal> s. Encore une fois, la valeur de l'attribut dépend "
+"du nombre de collections non initialisées dans une <literal>Session</"
+"literal> particulière. "
#. Tag: para
-#: performance.xml:531
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
"tree of items, i.e. the typical bill-of-materials pattern. However, a "
@@ -1089,39 +884,93 @@
"might be a better option for read-mostly trees."
msgstr ""
"Le chargement par lot de collections est particulièrement utile si vous avez "
-"des arborescenses récursives d'éléments (typiquement, le schéma facture de "
-"matériels). (Bien qu'un <emphasis>sous ensemble</emphasis> ou un "
-"<emphasis>chemin matérialisé</emphasis> est sans doute une meilleure option "
-"pour des arbres principalement en lecture.)"
+"une arborescence imbriquée d'éléments, c'est-à -dire le le schéma facture de "
+"matériels typique. (Bien qu'un <emphasis>sous ensemble</emphasis> ou un "
+"<emphasis>chemin matérialisé</emphasis> soit probablement une meilleure "
+"option pour des arbres principalement en lecture.) "
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
msgstr "Utilisation du chargement par sous select"
#. Tag: para
-#: performance.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
"will load all of them, re-running the original query in a subselect. This "
"works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
-"Si une collection ou un proxy vers un objet doit être chargé, Hibernate va "
-"tous les charger en ré-exécutant la requête orignial dans un sous select. "
-"Cela fonctionne de la même manière que le chargement par lot sans la "
-"possibilité de fragmenter le chargement."
+"Si une collection en différé ou un proxy vers un objet doit être chargée, "
+"Hibernate va tous les charger en ré-exécutant la requête originale dans un "
+"sous select. Cela fonctionne de la même manière que le chargement par lot "
+"sans la possibilité de fragmenter le chargement."
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "Stratégies de chargement"
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
-msgstr "Utiliser le chargement tardif des propriétés"
+msgstr "Utiliser le chargement en différé des propriétés"
#. Tag: para
-#: performance.xml:555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
"optimization technique is also known as <emphasis>fetch groups</emphasis>. "
@@ -1131,87 +980,48 @@
"when legacy tables have hundreds of columns and the data model cannot be "
"improved."
msgstr ""
-"Hibernate3 supporte le chargement tardif de propriétés individuelles. La "
+"Hibernate3 supporte le chargement en différé de propriétés individuelles. La "
"technique d'optimisation est également connue sous le nom de <emphasis>fetch "
"groups</emphasis> (groupes de chargement). Il faut noter qu'il s'agit "
"principalement d'une fonctionnalité marketing car en pratique l'optimisation "
"de la lecture d'un enregistrement est beaucoup plus importante que "
"l'optimisation de la lecture d'une colonne. Cependant, la restriction du "
-"chargement à certaines colonnes peut être pratique dans des cas extrèmes, "
+"chargement à certaines colonnes peut être pratique dans des cas extrêmes, "
"lorsque des tables \"legacy\" possèdent des centaines de colonnes et que le "
"modèle de données ne peut pas être amélioré."
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
"on your particular property mappings:"
msgstr ""
-"Pour activer le chargement tardif d'une propriété, il faut mettre l'attribut "
-"<literal>lazy</literal> sur une propriété particulière du mapping :"
+"Pour activer le chargement en différé d'une propriété, il faut mettre "
+"l'attribut <literal>lazy</literal> sur une propriété particulière du "
+"mappage :"
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:571
-#, fuzzy, no-c-format
-msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
"persistent classes are not enhanced, Hibernate will ignore lazy property "
"settings and return to immediate fetching."
msgstr ""
-"Le chargement tardif des propriétés requiert une instrumentation du bytecode "
-"lors de la compilation ! Si les classes persistantes ne sont pas "
-"instrumentées, Hibernate ignorera de manière silencieuse le mode tardif et "
-"retombera dans le mode de chargement immédiat."
+"Le chargement en différé des propriétés requiert une instrumentation du "
+"bytecode lors de la compilation ! Si les classes persistantes ne sont pas "
+"instrumentées, Hibernate ignorera de manière silencieuse le mode en différé "
+"et retombera dans le mode de chargement immédiat. "
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
msgstr ""
"Pour l'instrumentation du bytecode vous pouvez utiliser la tâche Ant "
"suivante :"
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:583
-#, fuzzy, no-c-format
-msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
"transactions, is to use the projection features of HQL or Criteria queries. "
"This avoids the need for buildtime bytecode processing and is certainly a "
@@ -1221,27 +1031,24 @@
"nécessaire au moins pour des transactions en lecture seule est d'utiliser "
"les fonctionnalités de projection des requêtes HQL ou Criteria. Cela évite "
"de devoir instrumenter le bytecode à la compilation et est certainement une "
-"solution préférable."
+"solution préférable. "
#. Tag: para
-#: performance.xml:590
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
"all properties</literal> in HQL."
msgstr ""
"Vous pouvez forcer le mode de chargement agressif des propriétés en "
-"utilisant <literal>fetch all properties</literal> dans les requêts HQL."
+"utilisant <literal>fetch all properties</literal> dans les requêtes HQL. "
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
msgstr "Le cache de second niveau"
#. Tag: para
-#: performance.xml:602
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
"persistent data. It is possible to configure a cluster or JVM-level "
@@ -1252,18 +1059,16 @@
"cached data."
msgstr ""
"Une <literal>Session</literal> Hibernate est un cache de niveau "
-"transactionnel des données persistantes. Il est possible de configurer un "
-"cache de cluster ou de JVM (de niveau <literal>SessionFactory</literal> pour "
-"être exact) défini classe par classe et collection par collection. Vous "
-"pouvez même utiliser votr choix de cache en implémentant le pourvoyeur "
-"(provider) associé. Faites attention, les caches ne sont jamais avertis des "
-"modifications faites dans la base de données par d'autres applications (ils "
-"peuvent cependant être configurés pour régulièrement expirer les données en "
-"cache)."
+"transactionnel de données persistantes. Il est possible de configurer un "
+"cache de cluster ou de JVM (de niveau <literal>SessionFactory</literal>) "
+"défini classe par classe et collection par collection. Vous pouvez même "
+"utiliser votre choix de cache en implémentant le fournisseur associé. Faites "
+"attention, les caches ne sont jamais avertis des modifications faites dans "
+"la base de données par d'autres applications (ils peuvent cependant être "
+"configurés pour régulièrement expirer les données en cache). "
#. Tag: para
-#: performance.xml:610
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
"specifying the name of a class that implements <literal>org.hibernate.cache."
@@ -1273,213 +1078,165 @@
"can also implement your own and plug it in as outlined above. Note that "
"versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
-"Par défaut, Hibernate utilise EHCache comme cache de niveau JVM (le support "
-"de JCS est désormais déprécié et sera enlevé des futures versions "
-"d'Hibernate). Vous pouvez choisir une autre implémentation en spécifiant le "
-"nom de la classe qui implémente <literal>org.hibernate.cache.CacheProvider</"
-"literal> en utilisant la propriété <literal>hibernate.cache.provider_class</"
-"literal>."
+"Vous pouvez choisir une autre implémentation en spécifiant le nom de la "
+"classe qui implémente <literal>org.hibernate.cache.CacheProvider</literal> "
+"en utilisant la propriété <literal>hibernate.cache.provider_class</literal>. "
+"Hibernate est accompagné de plusieurs intégrations imbriquées avec des "
+"fournisseurs de cache open-source (listés ci-dessous) ; par ailleurs vous "
+"pouvez implémenter votre propre fournisseur et le brancher comme indiqué ci-"
+"dessus. Notez que les versions antérieures à 3.2, utilisaient par défaut le "
+"EhCache comme le fournisseur de cache par défaut, ce qui n'est plus le cas. "
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
-msgstr "Fournisseur de cache"
+msgstr "Fournisseurs de cache"
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr "Cache"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
msgstr "Classe pourvoyeuse"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr "Type"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
-msgstr "Support en Cluster"
+msgstr "Cluster sécurisé"
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
msgstr "Cache de requêtes supporté"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hashtable (not intended for production use)"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Hashtable (ne pas utiliser en production)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Hashtable (ne pas utilser en production)"
+msgstr "Table de hachage (ne pas utiliser en production)"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
-msgstr "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr "mémoire"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
-msgstr ""
+msgid "yes"
+msgstr "oui"
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
-msgstr "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.EhCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
msgstr "mémoire, disque"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
-msgstr "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.OSCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
-msgstr "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
msgstr "en cluster (multicast ip)"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
msgstr "oui (invalidation de cluster)"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 1.x"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 1.x"
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
-msgstr "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
+msgstr " org.hibernate.cache.TreeCacheProvider"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
msgstr "en cluster (multicast ip), transactionnel"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
-msgstr "oui (replication)"
+msgstr "oui (réplication)"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
msgstr "oui (horloge sync. nécessaire)"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 2"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 2"
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
-msgstr "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
+msgstr "<literal>org.hibernate.cache.jbc2.JBossCacheRegionFactory</literal>"
#. Tag: entry
-#: performance.xml:677
-#, fuzzy, no-c-format
+#, no-c-format
msgid "yes (replication or invalidation)"
-msgstr "oui (invalidation de cluster)"
+msgstr "oui (replication ou invalidation)"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
-msgstr "Mapping de Cache"
+msgstr "Mappages de Cache"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
"mapping has the following form:"
msgstr ""
"L'élément <literal><cache></literal> d'une classe ou d'une collection "
-"Ã la forme suivante :"
+"a la forme suivante :"
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
@@ -1492,19 +1249,17 @@
"literal>"
#. Tag: para
-#: performance.xml:710
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
"role name): specifies the name of the second level cache region"
msgstr ""
"<literal>region</literal> (optionnel, par défaut il s'agit du nom de la "
-"classe ou du nom de role de la collection) spécifie le nom de la région du "
+"classe ou du nom de rôle de la collection) : spécifie le nom de la région du "
"cache de second niveau"
#. Tag: para
-#: performance.xml:717
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
"<literal>non-lazy</literal>: specifies that properties of the entity mapped "
@@ -1512,13 +1267,12 @@
"lazy fetching is enabled"
msgstr ""
"<literal>include</literal> (optionnel, par défaut <literal>all</literal>) "
-"<literal>non-lazy</literal> spécifie que les propriétés des entités mappées "
-"avec <literal>lazy=\"true\"</literal> ne doivent pas être mises en cache "
-"lorsque le chargement tardif des attributs est activé."
+"<literal>non-lazy</literal> : spécifie que les propriétés des entités "
+"mappées avec <literal>lazy=\"true\"</literal> ne doivent pas être mises en "
+"cache lorsque le chargement en différé des attributs est activé."
#. Tag: para
-#: performance.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
"<literal><collection-cache></literal> elements in <literal>hibernate."
@@ -1526,10 +1280,9 @@
msgstr ""
"Alternativement (voir préférentiellement), vous pouvez spécifier les "
"éléments <literal><class-cache></literal> et <literal><collection-"
-"cache></literal> dans <literal>hibernate.cfg.xml</literal>."
+"cache></literal> dans <literal>hibernate.cfg.xml</literal>. "
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
@@ -1539,14 +1292,12 @@
"concurrence d'accès au cache</emphasis>."
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
-msgstr "Strategie : lecture seule"
+msgstr "Stratégie : lecture seule"
#. Tag: para
-#: performance.xml:741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
"class, a <literal>read-only</literal> cache can be used. This is the "
@@ -1556,27 +1307,15 @@
"Si votre application a besoin de lire mais ne modifie jamais les instances "
"d'une classe, un cache <literal>read-only</literal> peut être utilisé. C'est "
"la stratégie la plus simple et la plus performante. Elle est même "
-"parfaitement sûre dans un cluster."
+"parfaitement sûre dans un cluster. "
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
msgstr "Stratégie : lecture/écriture"
#. Tag: para
-#: performance.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
"cache might be appropriate. This cache strategy should never be used if "
@@ -1594,39 +1333,23 @@
"<literal>read-write</literal> peut être approprié. Cette stratégie ne "
"devrait jamais être utilisée si votre application nécessite un niveau "
"d'isolation transactionnelle sérialisable. Si le cache est utilisé dans un "
-"environnement JTA, vous devez spécifier <literal>hibernate.transaction."
-"manager_lookup_class</literal>, fournissant une stratégie pour obtenir le "
-"<literal>TransactionManager</literal> JTA. Dans d'autres environnements, "
-"vous devriez vous assurer que la transation est terminée à l'appel de "
-"<literal>Session.close()</literal> ou <literal>Session.disconnect()</"
-"literal>. Si vous souhaitez utiliser cette stratégie dans un cluster, vous "
-"devriez vous assurer que l'implémentation de cache utilisée supporte le "
-"vérrouillage. Ce que ne font <emphasis>pas</emphasis> les pourvoyeurs caches "
-"fournis."
+"environnement JTA, vous devez spécifier la propriété <literal>hibernate."
+"transaction.manager_lookup_class</literal>, fournissant une stratégie pour "
+"obtenir le JTA <literal>TransactionManager</literal>. Dans d'autres "
+"environnements, vous devriez vous assurer que la transation est terminée à "
+"l'appel de <literal>Session.close()</literal> ou <literal>Session.disconnect"
+"()</literal>. Si vous souhaitez utiliser cette stratégie dans un cluster, "
+"vous devriez vous assurer que l'implémentation de cache utilisée supporte le "
+"verrouillage, ce que ne font <emphasis>pas</emphasis> les pourvoyeurs caches "
+"fournis. "
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
msgstr "Stratégie : lecture/écriture non stricte"
#. Tag: para
-#: performance.xml:773
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
"extremely unlikely that two transactions would try to update the same item "
@@ -1637,25 +1360,23 @@
"should ensure that the transaction is completed when <literal>Session.close()"
"</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
-"Si l'application besoin de mettre à jour les données de manière "
-"occasionnelle (qu'il est très peu probable que deux transactions essaient de "
-"mettre à jour le même élément simultanément) et qu'une isolation "
+"Si l'application a besoin de mettre à jour les données de manière "
+"occasionnelle (il est très peu probable que deux transactions essaient de "
+"mettre à jour le même élément simultanément) et si une isolation "
"transactionnelle stricte n'est pas nécessaire, un cache <literal>nonstrict-"
"read-write</literal> peut être approprié. Si le cache est utilisé dans un "
"environnement JTA, vous devez spécifier <literal>hibernate.transaction."
"manager_lookup_class</literal>. Dans d'autres environnements, vous devriez "
"vous assurer que la transation est terminée à l'appel de <literal>Session."
-"close()</literal> ou <literal>Session.disconnect()</literal>"
+"close()</literal> ou <literal>Session.disconnect()</literal>."
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
msgstr "Stratégie : transactionelle"
#. Tag: para
-#: performance.xml:787
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
"fully transactional cache providers such as JBoss TreeCache. Such a cache "
@@ -1665,74 +1386,64 @@
"La stratégie de cache <literal>transactional</literal> supporte un cache "
"complètement transactionnel comme, par exemple, JBoss TreeCache. Un tel "
"cache ne peut être utilisé que dans un environnement JTA et vous devez "
-"spécifier <literal>hibernate.transaction.manager_lookup_class</literal>."
+"spécifier <literal>hibernate.transaction.manager_lookup_class</literal>. "
#. Tag: title
-#: performance.xml:796
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
-msgstr "Stratégie de concurrence du cache"
+msgstr "Support de stratégie de concurrence du fournisseur-cache"
#. Tag: para
-#: performance.xml:799
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
msgstr ""
"Aucun des caches livrés ne supporte toutes les stratégies de concurrence. Le "
"tableau suivant montre quels caches sont compatibles avec quelles stratégies "
-"de concurrence."
+"de concurrence. "
#. Tag: para
-#: performance.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
"concurrency strategies."
msgstr ""
"Aucun des caches livrés ne supporte toutes les stratégies de concurrence. Le "
"tableau suivant montre quels caches sont compatibles avec quelles stratégies "
-"de concurrence."
+"de concurrence. "
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
-msgstr "Stratégie de concurrence du cache"
+msgstr "Support de stratégie de concurrence du cache"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr "read-only (lecture seule)"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
msgstr "nonstrict-read-write (lecture-écriture non stricte)"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
-msgstr "read-write (lecture-ériture)"
+msgstr "read-write (lecture-écriture)"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr "transactional (transactionnel)"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
msgstr "Gérer les caches"
#. Tag: para
-#: performance.xml:879
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an "
@@ -1745,12 +1456,11 @@
"literal>, <literal>update()</literal> ou <literal>saveOrUpdate()</literal> "
"et à chaque fois que vous récupérez un objet avec <literal>load()</literal>, "
"<literal>get()</literal>, <literal>list()</literal>, <literal>iterate()</"
-"literal> or <literal>scroll()</literal>, cet objet est ajouté au cache "
-"interne de la <literal>Session</literal>."
+"literal> ou <literal>scroll()</literal>, cet objet est ajouté au cache "
+"interne de la <literal>Session</literal>. "
#. Tag: para
-#: performance.xml:886
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
"object will be synchronized with the database. If you do not want this "
@@ -1764,43 +1474,29 @@
"que cette synchronisation ait lieu ou si vous traitez un grand nombre "
"d'objets et que vous avez besoin de gérer la mémoire de manière efficace, "
"vous pouvez utiliser la méthode <literal>evict()</literal> pour supprimer "
-"l'objet et ses collections dépendantes du cache de la session"
+"l'objet et ses collections dépendantes du cache de premier niveau de la "
+"session. "
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
"method to determine if an instance belongs to the session cache."
msgstr ""
-"La <literal>Session</literal> dispose aussi de la méthode <literal>contains()"
-"</literal> pour déterminer si une instance appartient au cache de la session."
+"La <literal>Session</literal> fournit également une méthode <literal>contains"
+"()</literal> pour déterminer si une instance appartient au cache de la "
+"session. "
#. Tag: para
-#: performance.xml:901
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
"literal>"
msgstr ""
"Pour retirer tous les objets du cache session, appelez <literal>Session.clear"
-"()</literal>"
+"()</literal> "
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
@@ -1808,180 +1504,177 @@
"instance, entire class, collection instance or entire collection role."
msgstr ""
"Pour le cache de second niveau, il existe des méthodes définies dans "
-"<literal>SessionFactory</literal> pour retirer des instances du cache, la "
-"classe entière, une instance de collection ou le rôle entier d'une "
+"<literal>SessionFactory</literal> pour retirer du cache d'une instance, de "
+"la classe entière, d'une instance de collection ou du rôle entier d'une "
"collection."
-#. Tag: programlisting
-#: performance.xml:911
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:913
-#, fuzzy, no-c-format
-msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
"with the second-level cache:"
msgstr ""
-"Le <literal>CacheMode</literal> contrôle comme une session particulière "
-"interragit avec le cache de second niveau"
+"Le <literal>CacheMode</literal> contrôle la manière dont une session "
+"particulière interagit avec le cache de second niveau :"
#. Tag: para
-#: performance.xml:920
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
"the second-level cache"
msgstr ""
-"<literal>CacheMode.NORMAL</literal> - lit et écrit les items dans le cache "
-"de second niveau"
+"<literal>CacheMode.NORMAL</literal> - lit et écrit les articles dans le "
+"cache de second niveau "
#. Tag: para
-#: performance.xml:925
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
"cache. Do not write to the second-level cache except when updating data"
msgstr ""
-"<literal>CacheMode.GET</literal> - lit les items dans le cache de second "
-"niveau mais ne les écrit pas sauf dans le cache d'une mise à jour d'une "
-"donnée"
+"<literal>CacheMode.GET</literal> - lit les articles du cache de second "
+"niveau mais ne les écrit pas sauf dans le cas d'une mise à jour des données "
#. Tag: para
-#: performance.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache"
msgstr ""
-"<literal>CacheMode.PUT</literal> - écrit les items dans le cache de second "
-"niveau mais ne les lit pas dans le cache de second niveau"
+"<literal>CacheMode.PUT</literal> - écrit les articles dans le cache de "
+"second niveau mais ne les lit pas dans le cache de second niveau "
#. Tag: para
-#: performance.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache. Bypass the effect of "
"<literal>hibernate.cache.use_minimal_puts</literal> forcing a refresh of the "
"second-level cache for all items read from the database"
msgstr ""
-"<literal>CacheMode.REFRESH</literal> - écrit les items dans le cache de "
+"<literal>CacheMode.REFRESH</literal> - écrit les articles dans le cache de "
"second niveau mais ne les lit pas dans le cache de second niveau, outrepasse "
-"l'effet de<literal>hibernate.cache.use_minimal_puts</literal>, en forçant un "
-"rafraîchissement du cache de second niveau pour chaque item lu dans la base"
+"l'effet de <literal>hibernate.cache.use_minimal_puts</literal>, en forçant "
+"un rafraîchissement du cache de second niveau pour chaque article lu dans la "
+"base de données. "
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
"<literal>Statistics</literal> API:"
msgstr ""
"Pour parcourir le contenu du cache de second niveau ou la région du cache "
-"dédiée au requêtes, vous pouvez utiliser l'API <literal>Statistics</literal> "
-"API:"
+"dédiée aux requêtes, vous pouvez utiliser l'API <literal>Statistics</"
+"literal> :"
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:952
-#, fuzzy, no-c-format
-msgid ""
"You will need to enable statistics and, optionally, force Hibernate to keep "
"the cache entries in a more readable format:"
msgstr ""
"Vous devez pour cela activer les statistiques et optionnellement forcer "
"Hibernate à conserver les entrées dans le cache sous un format plus "
-"compréhensible pour l'utilisateur :"
+"compréhensible pour l'utilisateur : "
-#. Tag: programlisting
-#: performance.xml:957
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:962
#, no-c-format
msgid "The Query Cache"
msgstr "Le cache de requêtes"
#. Tag: para
-#: performance.xml:964
#, fuzzy, no-c-format
msgid ""
"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"are run frequently with the same parameters."
msgstr ""
"Les résultats d'une requête peuvent aussi être placés en cache. Ceci n'est "
"utile que pour les requêtes qui sont exécutées avec les mêmes paramètres. "
-"Pour utiliser le cache de requêtes, vous devez d'abord l'activer :"
+"Pour utiliser le cache de requêtes, vous devez d'abord l'activer : "
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: title
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid "Enabling query caching"
msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-"Ce paramètre amène la création de deux nouvelles régions dans le cache, une "
-"qui va conserver le résultat des requêtes mises en cache (<literal>org."
-"hibernate.cache.StandardQueryCache</literal>) et l'autre qui va conserver "
-"l'horodatage des mises à jour les plus récentes effectuées sur les tables "
-"requêtables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
-"Il faut noter que le cache de requête ne conserve pas l'état des entités, il "
-"met en cache uniquement les valeurs de l'identifiant et les valeurs de types "
-"de base (?). Le cache de requête doit toujours être utilisé avec le cache de "
-"second niveau pour être efficace."
#. Tag: para
-#: performance.xml:981
+#, no-c-format
+msgid "This setting creates two new cache regions:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
+msgstr ""
+
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
-"La plupart des requêtes ne retirent pas de bénéfice pas du cache, donc par "
-"défaut les requêtes ne sont pas mises en cache. Pour activer le cache, "
-"appelez <literal>Query.setCacheable(true)</literal>. Cet appel permet de "
-"vérifier si les résultats sont en cache ou non, voire d'ajouter ces "
-"résultats si la requête est exécutée."
+"La plupart des requêtes ne tirent pas avantage du cache, donc par défaut les "
+"requêtes ne sont pas mises en cache. Pour activer le cache, appelez "
+"<literal>Query.setCacheable(true)</literal>. Cet appel permet de vérifier si "
+"les résultats sont en cache ou non, voire d'ajouter ces résultats quand la "
+"requête est exécutée. "
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "Cache de requêtes supporté"
+
+#. Tag: para
+#, no-c-format
msgid ""
"If you require fine-grained control over query cache expiration policies, "
"you can specify a named cache region for a particular query by calling "
@@ -1989,89 +1682,72 @@
msgstr ""
"Si vous avez besoin de contrôler finement les délais d'expiration du cache, "
"vous pouvez spécifier une région de cache nommée pour une requête "
-"particulière en appelant <literal>Query.setCacheRegion()</literal>."
+"particulière en appelant <literal>Query.setCacheRegion()</literal>. "
-#. Tag: programlisting
-#: performance.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:996
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
msgstr ""
"Si une requête doit forcer le rafraîchissement de sa région de cache, vous "
"devez appeler <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. "
"C'est particulièrement utile lorsque les données peuvent avoir été mises à "
-"jour par un processus séparé (e.g. elles n'ont pas été modifiées par "
-"Hibernate). Cela permet à l'application de rafraîchir de manière sélective "
-"les résultats d'une requête particulière. Il s'agit d'une alternative plus "
-"efficace à l'éviction d'une région du cache à l'aide de la méthode "
-"<literal>SessionFactory.evictQueries()</literal>."
+"jour par un processus séparé (c'est-à -dire qu'elles n'ont pas été modifiées "
+"par Hibernate). Cela permet à l'application de rafraîchir de manière "
+"sélective les résultats d'une requête particulière. Il s'agit d'une "
+"alternative plus efficace à l'éviction d'une région du cache à l'aide de la "
+"méthode <literal>SessionFactory.evictQueries()</literal>."
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
-msgstr "Comprendre les performances des Collections"
+msgstr "Comprendre les performances des collections"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
"In this section we explore some more issues in relation to collections at "
"runtime."
msgstr ""
+"Dans les sections précédentes, nous avons couvert les collections et leurs "
+"applications. Dans cette section, nous allons explorer de nouveaux problèmes "
+"en rapport aux collections en cours d'exécution."
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
-msgstr "Classification"
+msgstr "Taxinomie"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
-msgstr "Hibernate définit trois types de collections :"
+msgstr "Hibernate définit trois types de collections de base :"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr "les collections de valeurs"
#. Tag: para
-#: performance.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many associations"
-msgstr "les associations un-vers-plusieurs"
+msgstr "Association un-Ã -plusieurs "
#. Tag: para
-#: performance.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
msgid "many-to-many associations"
-msgstr "les associations plusieurs-vers-plusieurs"
+msgstr "les associations plusieurs-Ã -plusieurs "
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -2082,34 +1758,29 @@
"This suggests the following classification:"
msgstr ""
"Cette classification distingue les différentes relations entre les tables et "
-"les clés étrangères mais ne nous apprend rien de ce que nous devons savoir "
-"sur le modèle relationnel. Pour comprendre parfaitement la structure "
-"relationnelle et les caractéristiques des performances, nous devons "
-"considérer la structure de la clé primaire qui est utilisée par Hibernate "
-"pour mettre à jour ou supprimer les éléments des collections. Celà nous "
-"amène aux classifications suivantes :"
+"les clés étrangères mais ne n'en dit pas suffisamment sur le modèle "
+"relationnel. Pour comprendre parfaitement la structure relationnelle et les "
+"caractéristiques des performances, nous devons considérer la structure de la "
+"clé primaire qui est utilisée par Hibernate pour mettre à jour ou supprimer "
+"les lignes des collections. Cela nous amène aux classifications suivantes :"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr "collections indexées"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
-msgstr "sets"
+msgstr "ensembles (sets)"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
-msgstr "bags"
+msgstr "sacs (bags)"
#. Tag: para
-#: performance.xml:1054
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
"consisting of the <literal><key></literal> and <literal><index></"
@@ -2118,15 +1789,15 @@
"efficiently located when Hibernate tries to update or delete it."
msgstr ""
"Toutes les collections indexées (maps, lists, arrays) ont une clé primaire "
-"constituée des colonnes clé (<literal><key></literal>) et <literal><"
-"index></literal>. Avec ce type de clé primaire, la mise à jour de "
-"collection est en général très performante - la clé primaire peut être "
-"indexées efficacement et un élément particulier peut être localisé "
-"efficacement lorsqu'Hibernate essaie de le mettre à jour ou de le supprimer."
+"constituée des colonnes clés (<literal><key></literal>) et "
+"<literal><index></literal>. Avec ce type de clé primaire, la mise à "
+"jour de collection est en général très performante - la clé primaire peut "
+"être indexées efficacement et une ligne particulière peut être localisée "
+"efficacement lorsque Hibernate essaie de la mettre à jour ou de la "
+"supprimer. "
#. Tag: para
-#: performance.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
"element columns. This can be less efficient for some types of collection "
@@ -2138,33 +1809,31 @@
"<literal><set></literal>, you must declare all columns as <literal>not-"
"null=\"true\"</literal>."
msgstr ""
-"Les Sets ont une clé primaire composée de <literal><key></literal> et "
-"des colonnes représentant l'élément. Elle est donc moins efficace pour "
-"certains types de collections d'éléments, en particulier les éléments "
-"composites, les textes volumineux ou les champs binaires ; la base de "
-"données peut ne pas être capable d'indexer aussi efficacement une clé "
-"primaire aussi complexe. Cependant, pour les associations un-vers-plusieurs "
-"ou plusieurs-vers-plusieurs, spécialement lorsque l'on utilise des entités "
-"ayant des identifiants techniques, il est probable que cela soit aussi "
-"efficace (note : si vous voulez que <literal>SchemaExport</literal> créé "
+"Les ensembles ont une clé primaire composée de <literal><key></"
+"literal> et des colonnes représentant l'élément. Elle est donc moins "
+"efficace pour certains types d'éléments de collection, en particulier les "
+"éléments composites, les textes volumineux ou les champs binaires ; la base "
+"de données peut ne pas être capable d'indexer aussi efficacement une clé "
+"primaire aussi complexe. Cependant, pour les associations un-Ã -plusieurs ou "
+"plusieurs-à -plusieurs, en particulier lorsqu'on utilise des entités ayant "
+"des identifiants techniques, il est probable que cela soit aussi efficace "
+"(note : si vous voulez que <literal>SchemaExport</literal> crée "
"effectivement la clé primaire d'un <literal><set></literal> pour vous, "
"vous devez déclarer toutes les colonnes avec <literal>not-null=\"true\"</"
-"literal>)."
+"literal>). "
#. Tag: para
-#: performance.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
"are efficient to update. In fact, they are the best case."
msgstr ""
-"Le mapping à l'aide d'<literal><idbag></literal> définit une clé de "
+"Le mappage à l'aide de <literal><idbag></literal> définit une clé de "
"substitution ce qui leur permet d'être très efficaces lors de la mise à "
-"jour. En fait il s'agit du meilleur cas de mise à jour d'une collection"
+"jour. En fait il s'agit du meilleur cas de mise à jour d'une collection."
#. Tag: para
-#: performance.xml:1078
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
"they have no index column, no primary key can be defined. Hibernate has no "
@@ -2172,52 +1841,48 @@
"problem by completely removing in a single <literal>DELETE</literal> and "
"recreating the collection whenever it changes. This can be inefficient."
msgstr ""
-"Le pire cas intervient pour les Bags. Dans la mesure où un bag permet la "
-"duplications des éléments et n'a pas de colonne d'index, aucune clé primaire "
-"ne peut être définie. Hibernate n'a aucun moyen de distinguer des "
-"enregistrements dupliqués. Hibernate résout ce problème en supprimant "
-"complètement les enregistrements (via un simple <literal>DELETE</literal>), "
-"puis en recréant la collection chaque fois qu'elle change. Ce qui peut être "
-"très inefficace."
+"Le pire cas intervient pour les sacs. Dans la mesure où un sac permet la "
+"duplication des valeurs d'éléments et n'a pas de colonne d'index, aucune clé "
+"primaire ne peut être définie. Hibernate n'a aucun moyen de distinguer entre "
+"les lignes dupliquées. Hibernate résout ce problème en supprimant "
+"complètement (via un simple <literal>DELETE</literal>), puis en recréant la "
+"collection chaque fois qu'elle change. Ce qui peut être très inefficace. "
#. Tag: para
-#: performance.xml:1086
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
"primary key of the database table. Even in this case, the above "
"classification is still useful. It reflects how Hibernate \"locates\" "
"individual rows of the collection."
msgstr ""
-"Notez que pour une relation un-vers-plusieurs, la \"clé primaire\" peut ne "
-"pas être la clé primaire de la table en base de données - mais même dans ce "
-"cas, la classification ci-dessus reste utile (Elle explique comment "
-"Hibernate \"localise\" chaque enregistrement de la collection)."
+"Notez que pour une relation un-à -plusieurs, la \"clé primaire\" peut ne pas "
+"être la clé primaire de la table en base de données - mais même dans ce cas, "
+"la classification ci-dessus reste utile (Elle explique comment Hibernate "
+"localise les lignes individuelles de la collection). "
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
msgstr ""
-"Les lists, les maps, les idbags et les sets sont les collections les plus "
-"efficaces pour la mise à jour"
+"Les lists, les maps, les idbags et les ensembles sont les collections les "
+"plus efficaces pour la mise à jour "
#. Tag: para
-#: performance.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
"sets allow the most efficient operation in terms of adding, removing and "
"updating elements."
msgstr ""
"La discussion précédente montre clairement que les collections indexées et "
-"(la plupart du temps) les sets, permettent de réaliser le plus efficacement "
-"les opérations d'ajout, de suppression ou de modification d'éléments."
+"(la plupart du temps) les ensembles, permettent de réaliser le plus "
+"efficacement les opérations d'ajout, de suppression ou mise à jour "
+"d'éléments. "
#. Tag: para
-#: performance.xml:1104
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
"sets for many-to-many associations or collections of values. Because of the "
@@ -2227,18 +1892,16 @@
"literal> of individual rows. Once again, this consideration does not apply "
"to one-to-many associations."
msgstr ""
-"Il existe un autre avantage qu'ont les collections indexées sur les Sets "
-"dans le cadre d'une association plusieurs vers plusieurs ou d'une collection "
-"de valeurs. A cause de la structure inhérente d'un <literal>Set</literal>, "
-"Hibernate n'effectue jamais d'<literal>UPDATE</literal> quand un "
-"enregistrement est modifié. Les modifications apportées à un <literal>Set</"
-"literal> se font via un <literal>INSERT</literal> et <literal>DELETE</"
-"literal> (de chaque enregistrement). Une fois de plus, ce cas ne s'applique "
-"pas aux associations un vers plusieurs."
+"Les collections indexées ont un avantage sur les ensembles, dans le cadre "
+"des associations plusieurs-Ã -plusieurs ou de collections de valeurs. Ã cause "
+"de la structure inhérente d'un <literal>Set</literal>, Hibernate n'effectue "
+"jamais de ligne <literal>UPDATE</literal> quand un élément est modifié. Les "
+"modifications apportées à un <literal>Set</literal> se font via un "
+"<literal>INSERT</literal> et <literal>DELETE</literal> (de chaque ligne). "
+"Une fois de plus, ce cas ne s'applique pas aux associations un-Ã -plusieurs. "
#. Tag: para
-#: performance.xml:1113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
"maps and idbags are the most performant (non-inverse) collection types, with "
@@ -2246,16 +1909,15 @@
"collection in Hibernate applications. This is because the \"set\" semantics "
"are most natural in the relational model."
msgstr ""
-"Après s'être rappelé que les tableaux ne peuvent pas être chargés "
-"tardivement, nous pouvons conclure que les lists, les maps et les idbags "
-"sont les types de collections (non inversées) les plus performants, avec les "
-"sets pas loin derrières. Les sets son le type de collection le plus courant "
-"dans les applications Hibernate. Cela est du au fait que la sémantique des "
-"\"set\" est la plus naturelle dans le modèle relationnel."
+"Après s'être rappelé que les tableaux ne peuvent pas être chargés en "
+"différé, nous pouvons conclure que les lists, les maps et les idbags sont "
+"les types de collections (non inversées) les plus performants, avec les "
+"ensembles pas loin derrière. Les ensembles sont le type de collection le "
+"plus courant dans les applications Hibernate. Cela vient du fait que la "
+"sémantique des ensembles est la plus naturelle dans le modèle relationnel. "
#. Tag: para
-#: performance.xml:1121
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
"fact one-to-many associations with <literal>inverse=\"true\"</literal>. For "
@@ -2263,23 +1925,21 @@
"association, and so considerations of collection update performance simply "
"do not apply."
msgstr ""
-"Cependant, dans des modèles objet bien conçus avec Hibernate, on voit "
-"souvent que la plupart des collections sont en fait des associations \"un-"
-"vers-plusieurs\" avec <literal>inverse=\"true\"</literal>. Pour ces "
-"associations, les mises à jour sont gérées au niveau de l'association "
-"\"plusieurs-vers-un\" et les considérations de performance de mise à jour "
-"des collections ne s'appliquent tout simplement pas dans ces cas là ."
+"Cependant, dans des modèles objet bien conçus avec Hibernate, on constate "
+"que la plupart des collections sont en fait des associations un-Ã -plusieurs "
+"avec <literal>inverse=\"true\"</literal>. Pour ces associations, les mises à "
+"jour sont gérées au niveau de l'association \"plusieurs-à -un\" et les "
+"considérations de performance de mise à jour des collections ne s'appliquent "
+"tout simplement pas dans ces cas-là . "
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
msgstr ""
-"Les Bags et les lists sont les plus efficaces pour les collections inverse"
+"Les sacs et les listes sont les plus efficaces pour les collections inverses"
#. Tag: para
-#: performance.xml:1133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
"more performant than sets. For a collection with <literal>inverse=\"true\"</"
@@ -2290,37 +1950,24 @@
"literal> must always return true for a bag or <literal>List</literal>. This "
"can make the following common code much faster:"
msgstr ""
-"Avant que vous n'oubliez les bags pour toujours, il y a un cas précis où les "
-"bags (et les lists) sont bien plus performants que les sets. Pour une "
+"Avant que vous n'oubliez les sacs pour toujours, il y a un cas précis où les "
+"sacs (et les listes) sont bien plus performants que les ensembles. Pour une "
"collection marquée comme <literal>inverse=\"true\"</literal> (le choix le "
-"plus courant pour un relation un vers plusieurs bidirectionnelle), nous "
-"pouvons ajouter des éléments à un bag ou une list sans avoir besoin de "
-"l'initialiser (fetch) les éléments du sac! Ceci parce que "
+"plus courant pour un relation un-Ã -plusieurs bidirectionnelle), nous pouvons "
+"ajouter des éléments à un sac ou une liste sans avoir besoin de "
+"l'initialiser (charger) les éléments du sac! Ceci parce que "
"<literal>Collection.add()</literal> ou <literal>Collection.addAll()</"
-"literal> doit toujours retourner vrai pour un bag ou une <literal>List</"
+"literal> doit toujours retourner vrai pour un sac ou une <literal>List</"
"literal> (contrairement au <literal>Set</literal>). Cela peut rendre le code "
-"suivant beaucoup plus rapide."
+"suivant beaucoup plus rapide :"
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
msgstr "Suppression en un coup"
#. Tag: para
-#: performance.xml:1150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
"inefficient. Hibernate knows not to do that in the case of an newly-empty "
@@ -2330,95 +1977,86 @@
"Parfois, effacer les éléments d'une collection un par un peut être "
"extrêmement inefficace. Hibernate n'est pas totalement stupide, il sait "
"qu'il ne faut pas le faire dans le cas d'une collection complètement vidée "
-"(lorsque vous appellez <literal>list.clear()</literal>, par exemple). Dans "
-"ce cas, Hibernate fera un simple <literal>DELETE</literal> et le travail est "
-"fait !"
+"(lorsque vous appelez <literal>list.clear()</literal>, par exemple). Dans ce "
+"cas, Hibernate fera un simple <literal>DELETE</literal> et le travail est "
+"fait ! "
#. Tag: para
-#: performance.xml:1157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
"statement and two <literal>DELETE</literal> statements, unless the "
"collection is a bag. This is certainly desirable."
msgstr ""
-"Supposons que nous ajoutions un élément dans une collection de taille vingt "
-"et que nous enlevions ensuite deux éléments. Hibernate effectuera un "
+"Supposons que nous ajoutions un élément unique dans une collection de taille "
+"vingt et que nous enlevions ensuite deux éléments. Hibernate effectuera un "
"<literal>INSERT</literal> puis deux <literal>DELETE</literal> (Ã moins que "
-"la collection ne soit un bag). Ce qui est souhaitable."
+"la collection ne soit un sac). Cela est préférable. "
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
"thee new elements. There are two possible ways to proceed"
msgstr ""
-"Cependant, supposons que nous enlevions dix huit éléments, laissant ainsi "
+"Cependant, supposons que nous enlevions dix-huit éléments, laissant ainsi "
"deux éléments, puis que nous ajoutions trois nouveaux éléments. Il y a deux "
"moyens de procéder."
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
-msgstr "effacer dix huit enregistrements un à un puis en insérer trois"
+msgstr "effacer dix-huit lignes une à une puis en insérer trois"
#. Tag: para
-#: performance.xml:1173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
"all five current elements one by one"
msgstr ""
-"effacer la totalité de la collection (en un <literal>DELETE</literal> SQL) "
-"puis insérer les cinq éléments restant un à un"
+"effacer la totalité de la collection (en un SQL <literal>DELETE</literal>) "
+"puis insérer les cinq éléments restant (un à un) "
#. Tag: para
-#: performance.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
"probably be undesirable for Hibernate to be that intuitive as such behavior "
"might confuse database triggers, etc."
msgstr ""
"Hibernate n'est pas assez intelligent pour savoir que, dans ce cas, la "
-"seconde méthode est plus rapide (Il plutôt heureux qu'Hibernate ne soit pas "
-"trop intelligent ; un tel comportement pourrait rendre l'utilisation de "
-"triggers de bases de données plutôt aléatoire, etc...)."
+"seconde option est plus rapide (Il vaut mieux que Hibernate ne soit pas trop "
+"intelligent ; un tel comportement pourrait rendre l'utilisation de triggers "
+"de bases de données plutôt aléatoire, etc...). "
#. Tag: para
-#: performance.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
"time by discarding (i.e. dereferencing) the original collection and "
"returning a newly instantiated collection with all the current elements."
msgstr ""
-"Heureusement, vous pouvez forcer ce comportement lorsque vous le souhaitez, "
-"en liberant (c'est-à -dire en déréférençant) la collection initiale et en "
-"retournant une collection nouvellement instanciée avec les éléments "
-"restants. Ceci peut être très pratique et très puissant de temps en temps."
+"Heureusement, vous pouvez forcer ce comportement (c'est-à -dire la deuxième "
+"stratégie) à tout moment en libérant (c'est-à -dire en déréférençant) la "
+"collection initiale et en retournant une collection nouvellement instanciée "
+"avec tous les éléments restants. "
#. Tag: para
-#: performance.xml:1190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
"\"</literal>."
msgstr ""
"Bien sûr, la suppression en un coup ne s'applique pas pour les collections "
-"qui sont mappées avec <literal>inverse=\"true\"</literal>."
+"qui sont mappées avec <literal>inverse=\"true\"</literal>. "
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
msgstr "Moniteur de performance"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2432,27 +2070,24 @@
"<literal>SessionFactory</literal>."
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
msgstr "Suivi d'une SessionFactory"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
"first option is to call <literal>sessionFactory.getStatistics()</literal> "
"and read or display the <literal>Statistics</literal> yourself."
msgstr ""
-"Vous pouvez accéder au métriques d'une <literal>SessionFactory</literal> de "
+"Vous pouvez accéder aux métriques d'une <literal>SessionFactory</literal> de "
"deux manières. La première option est d'appeler <literal>sessionFactory."
"getStatistics()</literal> et de lire ou d'afficher les <literal>Statistics</"
-"literal> vous même."
+"literal> vous-même."
#. Tag: para
-#: performance.xml:1216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
"<literal>StatisticsService</literal> MBean. You can enable a single MBean "
@@ -2462,49 +2097,18 @@
"Hibernate peut également utiliser JMX pour publier les métriques si vous "
"activez le MBean <literal>StatisticsService</literal>. Vous pouvez activer "
"un seul MBean pour toutes vos <literal>SessionFactory</literal> ou un par "
-"factory. Voici un code qui montre un exemple de configuration minimaliste :"
+"fabrique. Voici un code qui montre un exemple de configuration minimaliste : "
-#. Tag: programlisting
-#: performance.xml:1223
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1228
-#, fuzzy, no-c-format
-msgid ""
"You can activate and deactivate the monitoring for a "
"<literal>SessionFactory</literal>:"
msgstr ""
-"Vous pouvez (dés)activer le suivi pour une <literal>SessionFactory</literal>"
+"Vous pouvez (dés)activer le suivi pour une <literal>SessionFactory</"
+"literal> :"
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
@@ -2514,7 +2118,6 @@
"generate_statistics</literal> Ã <literal>false</literal>"
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
@@ -2524,8 +2127,7 @@
"literal> ou <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
#. Tag: para
-#: performance.xml:1247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
"literal> method. A summary can be sent to a logger (info level) using the "
@@ -2534,30 +2136,27 @@
"Les statistiques peuvent être remises à zéro de manière programmatique à "
"l'aide de la méthode <literal>clear()</literal> Un résumé peut être envoyé à "
"un logger (niveau info) à l'aide de la méthode <literal>logSummary()</"
-"literal>"
+"literal>."
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
msgstr "Métriques"
#. Tag: para
-#: performance.xml:1258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
"specialized information that is only relevant in certain scenarios. All "
"available counters are described in the <literal>Statistics</literal> "
"interface API, in three categories:"
msgstr ""
-"Hibernate fournit un certain nombre de métriques, qui vont des informations "
-"très basiques aux informations très spécialisées qui ne sont appropriées que "
-"dans certains scenarii. Tous les compteurs accessibles sont décrits dans "
-"l'API de l'interface <literal>Statistics</literal> dans trois catégories :"
+"Hibernate fournit plusieurs métriques, qui vont des informations très "
+"basiques aux informations très spécialisées qui ne sont appropriées que dans "
+"certains scénarios. Tous les compteurs accessibles sont décrits dans l'API "
+"de l'interface <literal>Statistics</literal> dans trois catégories : "
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
@@ -2568,17 +2167,15 @@
"récupérées, etc..."
#. Tag: para
-#: performance.xml:1271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
"(aka global metrics)."
msgstr ""
"Les métriques relatives aux entités, collections, requêtes et caches dans "
-"leur ensemble (métriques globales),"
+"leur ensemble (métriques globales aka)."
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
@@ -2588,8 +2185,7 @@
"ou une région de cache particulière."
#. Tag: para
-#: performance.xml:1284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
"collections and queries, and the average time a query needs. Be aware that "
@@ -2597,16 +2193,15 @@
"tied to the JVM precision and on some platforms this might only be accurate "
"to 10 seconds."
msgstr ""
-"Par exemple, vous pouvez vérifier l'accès au cache ainsi que le taux "
+"Par exemple, vous pouvez vérifier les hit, miss du cache ainsi que le taux "
"d'éléments manquants et de mise à jour des entités, collections et requêtes "
"et le temps moyen que met une requête. Il faut faire attention au fait que "
"le nombre de millisecondes est sujet à approximation en Java. Hibernate est "
"lié à la précision de la machine virtuelle, sur certaines plateformes, cela "
-"n'offre qu'une précision de l'ordre de 10 secondes."
+"n'offre qu'une précision de l'ordre de 10 secondes. "
#. Tag: para
-#: performance.xml:1291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
"particular entity, collection, cache region, etc.). You can access the "
@@ -2618,43 +2213,20 @@
"literal> API Javadoc for more information. The following code is a simple "
"example:"
msgstr ""
-"Des accesseurs simples sont utilisés pour accéder aux métriques globales (e."
-"g. celles qui ne sont pas liées à une entité, collection ou région de cache "
-"particulière). Vous pouvez accéder aux métriques d'une entité, collection, "
-"région de cache particulière à l'aide de son nom et à l'aide de sa "
-"représentation HQL ou SQL pour une requête. Référez vous à la javadoc des "
-"APIS <literal>Statistics</literal>, <literal>EntityStatistics</literal>, "
-"<literal>CollectionStatistics</literal>, "
-"<literal>SecondLevelCacheStatistics</literal>, and <literal>QueryStatistics</"
+"Des accesseurs simples sont utilisés pour accéder aux métriques globales "
+"(c'est-à -dire, celles qui ne sont pas liées à une entité, collection ou "
+"région de cache particulière). Vous pouvez accéder aux métriques d'une "
+"entité, collection, région de cache particulière à l'aide de son nom et à "
+"l'aide de sa représentation HQL ou SQL pour une requête. Référez vous à la "
+"javadoc des APIS <literal>Statistics</literal>, <literal>EntityStatistics</"
+"literal>, <literal>CollectionStatistics</literal>, "
+"<literal>SecondLevelCacheStatistics</literal>, et <literal>QueryStatistics</"
"literal> pour plus d'informations. Le code ci-dessous montre un exemple "
-"simple :"
+"simple : "
-#. Tag: programlisting
-#: performance.xml:1301
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1303
-#, fuzzy, no-c-format
-msgid ""
"You can work on all entities, collections, queries and region caches, by "
"retrieving the list of names of entities, collections, queries and region "
"caches using the following methods: <literal>getQueries()</literal>, "
@@ -2663,48 +2235,28 @@
msgstr ""
"Pour travailler sur toutes les entités, collections, requêtes et régions de "
"cache, vous pouvez récupérer la liste des noms des entités, collections, "
-"requêtes et régions de cache avec les méthodes : <literal>getQueries()</"
-"literal>, <literal>getEntityNames()</literal>, "
+"requêtes et régions de cache avec les méthodes suivantes : "
+"<literal>getQueries()</literal>, <literal>getEntityNames()</literal>, "
"<literal>getCollectionRoleNames()</literal>, et "
-"<literal>getSecondLevelCacheRegionNames()</literal>."
+"<literal>getSecondLevelCacheRegionNames()</literal>. "
#~ msgid ""
-#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
-#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
-#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
-#~ "<literal>Cat</literal> and <literal>DomesticCat</literal> may be returned "
-#~ "by <literal>load()</literal> or <literal>iterate()</literal>. (Note that "
-#~ "<literal>list()</literal> does not usually return proxies.)"
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
#~ msgstr ""
-#~ "où <literal>CatImpl</literal> implémente l'interface <literal>Cat</"
-#~ "literal> et <literal>DomesticCatImpl</literal> implémente l'interface "
-#~ "<literal>DomesticCat</literal>. Ainsi, des proxys pour les instances de "
-#~ "<literal>Cat</literal> et <literal>DomesticCat</literal> pourraient être "
-#~ "retournées par <literal>load()</literal> ou <literal>iterate()</literal> "
-#~ "(Notez que <literal>list()</literal> ne retourne généralement pas de "
-#~ "proxy)."
-
-#~ msgid ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
-#~ msgstr ""
-#~ "Nous avons déjà passé du temps à discuter des collections. Dans cette "
-#~ "section, nous allons traiter du comportement des collections à "
-#~ "l'exécution."
-
-#~ msgid ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
-#~ msgstr ""
-#~ "TODO: Cela n'a pas de sens : dans le premier cs on récupère et on utilise "
-#~ "le MBean directement. Dans le second, on doit fournir le nom JNDI sous "
-#~ "lequel est retenu la fabrique de session avant de l'utiliser. Pour cela "
-#~ "il faut utiliser <literal>hibernateStatsBean.setSessionFactoryJNDIName"
-#~ "(\"my/JNDI/Name\")</literal>"
-
-#~ msgid "yes"
-#~ msgstr "oui"
+#~ "Ce paramètre amène la création de deux nouvelles régions dans le cache, "
+#~ "une qui va conserver le résultat des requêtes mises en cache "
+#~ "(<literal>org.hibernate.cache.StandardQueryCache</literal>) et l'autre "
+#~ "qui va conserver l'horodatage des mises à jour les plus récentes "
+#~ "effectuées sur les tables requêtables (<literal>org.hibernate.cache."
+#~ "UpdateTimestampsCache</literal>). Il faut noter que le cache de requête "
+#~ "ne conserve pas l'état des entités dans les résultats, il met en cache "
+#~ "uniquement les valeurs de l'identifiant et les résultats de types de "
+#~ "valeurs. Par conséquent, le cache de requête doit toujours être utilisé "
+#~ "avec le cache de second niveau. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of persistent_classes.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: persistent_classes\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:39+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
msgstr "Classes persistantes"
#. Tag: para
-#: persistent_classes.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
"of the business problem (e.g. Customer and Order in an E-commerce "
@@ -27,14 +31,13 @@
"or detached."
msgstr ""
"Les classes persistantes sont les classes d'une application qui implémentent "
-"les entités d'un problème métier (ex. Client et Commande dans une "
+"les entités d'un problème métier (par ex. Client et Commande dans une "
"application de commerce électronique). Toutes les instances d'une classe "
-"persistante ne sont pas forcément dans l'état persistant - au lieu de cela, "
-"une instance peut être éphémère (NdT : transient) ou détachée."
+"persistante ne sont pas forcément dans l'état persistant - en revanche, une "
+"instance peut être éphémère (transient) ou détachée."
#. Tag: para
-#: persistent_classes.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
"as the Plain Old Java Object (POJO) programming model. However, none of "
@@ -45,128 +48,41 @@
"Hibernate fonctionne de manière optimale lorsque ces classes suivent "
"quelques règles simples, aussi connues comme le modèle de programmation "
"Plain Old Java Object (POJO). Cependant, aucune de ces règles ne sont des "
-"besoins absolus. En effet, Hibernate3 suppose très peu de choses à propos de "
-"la nature de vos objets persistants. Vous pouvez exprimer un modèle de "
+"besoins absolus. En effet, Hibernate3 présuppose très peu de choses à propos "
+"de la nature de vos objets persistants. Vous pouvez exprimer un modèle de "
"domaine par d'autres moyens : utiliser des arbres d'instances de "
"<literal>Map</literal>, par exemple."
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
msgstr "Un exemple simple de POJO"
#. Tag: para
-#: persistent_classes.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
"example:"
msgstr ""
"Toute bonne application Java nécessite une classe persistante représentant "
-"les félins."
+"les félins. Par exemple :"
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
"following sections."
msgstr ""
+"On explore quatre règles principales de classes persistantes en détail dans "
+"les sections qui suivent :"
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
msgstr "Implémenter un constructeur sans argument"
#. Tag: para
-#: persistent_classes.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
"must have a default constructor (which can be non-public) so that Hibernate "
@@ -177,21 +93,19 @@
msgstr ""
"<literal>Cat</literal> a un constructeur sans argument. Toutes les classes "
"persistantes doivent avoir un constructeur par défaut (lequel peut ne pas "
-"être public) pour qu'Hibernate puissent les instancier en utilisant "
+"être public) pour que Hibernate puisse les instancier en utilisant "
"<literal>Constructor.newInstance()</literal>. Nous recommandons fortement "
"d'avoir un constructeur par défaut avec au moins une visibilité "
-"<emphasis>paquet</emphasis> pour la génération du proxy à l'exécution dans "
-"Hibernate."
+"<emphasis>paquetage</emphasis> pour la génération du proxy à l'exécution "
+"dans Hibernate. "
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
-msgstr "Fournir une propriété d'indentifiant (optionnel)"
+msgstr "Fournir une propriété d'identifiant (optionnel)"
#. Tag: para
-#: persistent_classes.xml:75
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
"property maps to the primary key column of a database table. The property "
@@ -203,92 +117,83 @@
msgstr ""
"<literal>Cat</literal> possède une propriété appelée <literal>id</literal>. "
"Cette propriété mappe la valeur de la colonne de clé primaire de la table "
-"d'une base de données.La propriété aurait pu s'appeler complètement "
-"autrement, et son type aurait pu être n'importe quel type primitif, "
-"n'importe quel \"encapsuleur\" de type primitif, <literal>java.lang.String</"
-"literal> ou <literal>java.util.Date</literal>. (Si votre base de données "
-"héritée possède des clés composites, elles peuvent être mappées en utilisant "
-"une classe définie par l'utilisateur et possédant les propriétés associées "
-"aux types de la clé composite - voir la section concernant les identifiants "
-"composites plus tard)."
+"d'une base de données. La propriété aurait pu s'appeler autrement, et son "
+"type aurait pu être n'importe quel type primitif, n'importe quel "
+"\"encapsuleur\" de type primitif, <literal>java.lang.String</literal> ou "
+"<literal>java.util.Date</literal>. (Si votre base de données héritée possède "
+"des clés composites, elles peuvent être mappées en utilisant une classe "
+"définie par l'utilisateur et possédant les propriétés associées aux types de "
+"la clé composite - voir la section concernant les identifiants composites "
+"ultérieurement). "
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
"Hibernate keep track of object identifiers internally. We do not recommend "
"this, however."
msgstr ""
-"La propriété d'identifiant est strictement optionnelle. Vous pouver "
+"La propriété d'identifiant est strictement optionnelle. Vous pouvez "
"l'oublier et laisser Hibernate s'occuper des identifiants de l'objet en "
-"interne. Toutefois, nous ne le recommandons pas."
+"interne. Toutefois, ce n'est pas recommandé. "
#. Tag: para
-#: persistent_classes.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
"identifier property:"
msgstr ""
"En fait, quelques fonctionnalités ne sont disponibles que pour les classes "
-"déclarant un identifiant de propriété :"
+"déclarant un identifiant de propriété : "
#. Tag: para
-#: persistent_classes.xml:96
#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-"Les réattachements transitifs pour les objets détachés (mise à jour en "
-"cascade ou fusion en cascade) - voir <xref linkend=\"objectstate-transitive"
-"\"/>"
+"Pour les rattachements transitifs pour les objets détachés (mise à jour en "
+"cascade ou fusion en cascade) - consultez <xref linkend=\"objectstate-"
+"transitive\" />"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
-msgstr "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
+msgstr "<literal>Session.saveOrUpdate()</literal>"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
-msgstr "Session.merge()"
-
#. Tag: para
-#: persistent_classes.xml:113
#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
+msgstr "<literal>Session.merge()</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
"persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
"Nous recommandons que vous déclariez les propriétés d'identifiant de manière "
"uniforme. Nous recommandons également que vous utilisiez un type nullable "
-"(ie. non primitif)."
+"(c'est-Ã -dire non primitif). "
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
msgstr "Favoriser les classes non finales (optionnel)"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
"the persistent class being either non-final, or the implementation of an "
"interface that declares all public methods."
msgstr ""
-"Une fonctionnalité clef d'Hibernate, les <emphasis>proxies</emphasis>, "
-"nécessitent que la classe persistente soit non finale ou qu'elle soit "
+"Une fonctionnalité clé de Hibernate, les <emphasis>proxies</emphasis>, "
+"nécessitent que la classe persistante soit non finale ou qu'elle soit "
"l'implémentation d'une interface qui déclare toutes les méthodes publiques."
#. Tag: para
-#: persistent_classes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
"interface with Hibernate. You will not, however, be able to use proxies for "
@@ -297,11 +202,10 @@
msgstr ""
"Vous pouvez persister, grâce à Hibernate, les classes <literal>final</"
"literal> qui n'implémentent pas d'interface, mais vous ne pourrez pas "
-"utiliser les proxies pour les chargements d'associations paresseuses - ce "
-"qui limitera vos possibilités d'ajustement des performances."
+"utiliser les proxies pour les chargements d'associations paresseux - ce qui "
+"limitera vos possibilités d'ajustement des performances. "
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -312,18 +216,16 @@
"Vous devriez aussi éviter de déclarer des méthodes <literal>public final</"
"literal> sur des classes non-finales. Si vous voulez utiliser une classe "
"avec une méthode <literal>public final</literal>, vous devez explicitement "
-"désactiver les proxies en paramétrant <literal>lazy=\"false\"</literal>."
+"désactiver les proxies en paramétrant <literal>lazy=\"false\"</literal>. "
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
msgstr ""
"Déclarer les accesseurs et mutateurs des attributs persistants (optionnel)"
#. Tag: para
-#: persistent_classes.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
"fields. Many other ORM tools directly persist instance variables. It is "
@@ -333,18 +235,17 @@
"literal>, <literal>isFoo</literal> and <literal>setFoo</literal>. If "
"required, you can switch to direct field access for particular properties."
msgstr ""
-"<literal>Cat</literal> déclare des mutateurs pour toutes ses champs "
-"persistants. Beaucoup d'autres solutions de mapping Objet/relationnel "
-"persistent directement les variables d'instance. Nous pensons qu'il est bien "
-"mieux de fournir une indirection entre le schéma relationnel et les "
+"<literal>Cat</literal> déclare des mutateurs pour tous ses champs "
+"persistants. Beaucoup d'autres solutions de mappage Objet/relationnel "
+"persistent directement les variables d'instance. Nous pensons qu'il est "
+"préférable de fournir une indirection entre le schéma relationnel et les "
"structures de données internes de la classe. Par défaut, Hibernate persiste "
"les propriétés suivant le style JavaBean, et reconnaît les noms de méthodes "
"de la forme <literal> getFoo</literal>, <literal>isFoo</literal> et "
-"<literal>setFoo</literal>. Nous pouvons changer pour un accès direct aux "
-"champs pour des propriétés particulières, si besoin est."
+"<literal>setFoo</literal>. Vous pouvez changer pour un accès direct aux "
+"champs pour des propriétés particulières, si besoin est. "
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
@@ -352,65 +253,42 @@
"<literal>private</literal> get / set pair."
msgstr ""
"Les propriétés <emphasis>n'ont pas</emphasis> à être déclarées publiques - "
-"Hibernate peut persister une propriété avec un paire de getter/setter de "
-"visibilité par défault, <literal>protected</literal> ou <literal> private</"
-"literal>."
+"Hibernate peut persister une propriété avec une paire de getter/setter par "
+"défault, <literal>protected</literal> ou <literal> private</literal>. "
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
msgstr "Implémenter l'héritage"
#. Tag: para
-#: persistent_classes.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
"identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
"Une sous-classe doit également suivre la première et la seconde règle. Elle "
-"hérite sa propriété d'identifiant de <literal>Cat</literal>."
+"hérite sa propriété d'identifiant de la classe mère <literal>Cat</literal>. "
+"Par exemple :"
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
msgstr ""
-"Implémenter <literal>equals()</literal> et <literal>hashCode()</literal>"
+"Implémenter <literal>equals()</literal> et <literal>hashCode()</literal> "
#. Tag: para
-#: persistent_classes.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
"</literal> methods if you:"
msgstr ""
"Vous devez surcharger les méthodes <literal>equals()</literal> et "
-"<literal>hashCode()</literal> si vous"
+"<literal>hashCode()</literal> si vous :"
#. Tag: para
-#: persistent_classes.xml:181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
"(the recommended way to represent many-valued associations); <emphasis>and</"
@@ -418,17 +296,15 @@
msgstr ""
"avez l'intention de mettre des instances de classes persistantes dans un "
"<literal>Set</literal> (la manière recommandée pour représenter des "
-"associations pluri-valuées) <emphasis>et</emphasis>"
+"associations pluri-valuées); <emphasis>et</emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
-msgstr "avez l'intention d'utiliser le réattachement d'instances détachées"
+msgstr "avez l'intention d'utiliser le rattachement d'instances détachées"
#. Tag: para
-#: persistent_classes.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
"Java identity only inside a particular session scope. When you mix instances "
@@ -441,11 +317,10 @@
"session particulière. Donc dès que nous mélangeons des instances venant de "
"différentes sessions, nous devons implémenter <literal>equals()</literal> et "
"<literal>hashCode()</literal> si nous souhaitons avoir une sémantique "
-"correcte pour les <literal>Set</literal>s."
+"correcte pour les <literal>Set</literal> s. "
#. Tag: para
-#: persistent_classes.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
"<literal>hashCode()</literal> by comparing the identifier value of both "
@@ -475,14 +350,13 @@
"sauvegarder assignera une valeur d'identifiant à l'objet. Si <literal>equals"
"()</literal> et <literal>hashCode()</literal> sont basées sur la valeur de "
"l'identifiant, le code de hachage devrait changer, rompant le contrat du "
-"<literal>Set</literal>. Regardez sur le site web d'Hibernate pour une "
-"discussion complète de ce problème. Notez que ceci n'est pas un problème "
-"d'Hibernate, mais la sémantique normale de Java pour l'identité d'un objet "
-"et l'égalité."
+"<literal>Set</literal>. Consultez le site web de Hibernate pour des "
+"informations plus approfondies. Notez que ceci n'est pas un problème "
+"Hibernate, mais concerne la sémantique normale de Java pour l'identité et "
+"l'égalité d'un objet. "
#. Tag: para
-#: persistent_classes.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> using <emphasis>Business key equality</"
@@ -493,78 +367,45 @@
msgstr ""
"Nous recommandons donc d'implémenter <literal>equals()</literal> et "
"<literal>hashCode()</literal> en utilisant <emphasis> l'égalité par clé "
-"métier</emphasis>.L'égalité par clé métier signifie que la méthode "
+"métier</emphasis>. L'égalité par clé métier signifie que la méthode "
"<literal>equals()</literal> compare uniquement les propriétés qui forment "
"une clé métier, une clé qui identifierait notre instance dans le monde réel "
-"(une clé candidate <emphasis>naturelle</emphasis>) :"
+"(une clé candidate <emphasis>naturelle</emphasis>) : "
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
-"Notez qu'une clef métier ne doit pas être solide comme une clef primaire de "
-"base de données (voir <xref linkend=\"transactions-basics-identity\"/>). Les "
-"propriétés immuables ou uniques sont généralement de bonnes candidates pour "
-"une clef métier."
+"Notez qu'une clé métier ne doit pas être solide comme une clé primaire de "
+"base de données (voir <xref linkend=\"transactions-basics-identity\" />). "
+"Les propriétés immuables ou uniques sont généralement de bonnes candidates "
+"pour une clé métier. "
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
msgstr "Modèles dynamiques"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Remarque"
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
msgstr ""
-"Notez que la fonctionnalités suivantes sont actuellement considérées comme "
-"expérimentales et peuvent changer dans un futur proche."
+"<emphasis>Notez que les fonctionnalités suivantes sont actuellement "
+"considérées comme expérimentales et pourront changer dans un futur proche.</"
+"emphasis>"
#. Tag: para
-#: persistent_classes.xml:246
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
"classes or as JavaBean objects at runtime. Hibernate also supports dynamic "
@@ -575,91 +416,48 @@
"Les entités persistantes ne doivent pas nécessairement être représentées "
"comme des classes POJO ou des objets JavaBean à l'exécution. Hibernate "
"supporte aussi les modèles dynamiques (en utilisant des <literal>Map</"
-"literal>s de <literal>Map</literal>s à l'exécution) et la représentation des "
-"entités comme des arbres DOM4J. Avec cette approche, vous n'écrivez pas de "
-"classes persistantes, seulement des fichiers de mapping."
+"literal> s de <literal>Map</literal> s à l'exécution) et la représentation "
+"des entités comme des arbres DOM4J. Avec cette approche, vous n'écrivez pas "
+"de classes persistantes, seulement des fichiers de mappage. "
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
"Par défaut, Hibernate fonctionne en mode POJO normal. Vous pouvez paramétrer "
"un mode de représentation d'entité par défaut pour une "
"<literal>SessionFactory</literal> particulière en utilisant l'option de "
"configuration <literal>default_entity_mode</literal> (voir <xref linkend="
-"\"configuration-optional-properties\"/>)."
+"\"configuration-optional-properties\" />)."
#. Tag: para
-#: persistent_classes.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
"literal>s. First, in the mapping file an <literal>entity-name</literal> has "
"to be declared instead of, or in addition to, a class name:"
msgstr ""
"Les exemples suivants démontrent la représentation utilisant des "
-"<literal>Map</literal>s. D'abord, dans le fichier de mapping, un "
+"<literal>Map</literal> s. D'abord, dans le fichier de mappage, un "
"<literal>entity-name</literal> doit être déclaré au lieu (ou en plus) d'un "
"nom de classe :"
-#. Tag: programlisting
-#: persistent_classes.xml:267
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:269
-#, fuzzy, no-c-format
-msgid ""
"Even though associations are declared using target class names, the target "
"type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
"Notez que même si des associations sont déclarées en utilisant des noms de "
"classe cible, le type de cible d'une association peut aussi être une entité "
-"dynamique au lieu d'un POJO."
+"dynamique au lieu d'un POJO. "
#. Tag: para
-#: persistent_classes.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
"the <literal>SessionFactory</literal>, you can, at runtime, work with "
@@ -667,40 +465,12 @@
msgstr ""
"Après avoir configuré le mode d'entité par défaut à <literal>dynamic-map</"
"literal> pour la <literal>SessionFactory</literal>, nous pouvons lors de "
-"l'exécution fonctionner avec des <literal>Map</literal>s de <literal>Map</"
-"literal>s :"
+"l'exécution fonctionner avec des <literal>Map</literal> s de <literal>Map</"
+"literal> s : "
-#. Tag: programlisting
-#: persistent_classes.xml:282
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:284
-#, fuzzy, no-c-format
-msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
"prototyping, without the need for entity class implementation. However, you "
"lose compile-time type checking and will likely deal with many exceptions at "
@@ -708,46 +478,26 @@
"easily be normalized and sound, allowing to add a proper domain model "
"implementation on top later on."
msgstr ""
-"Les avantages d'un mapping dynamique sont un gain de temps pour le "
+"Les avantages d'un mappage dynamique sont un gain de temps pour le "
"prototypage sans la nécessité d'implémenter les classes d'entité. Pourtant, "
"vous perdez la vérification du typage au moment de la compilation et aurez "
-"plus d'exceptions à gérer lors de l'exécution. Grâce au mapping d'Hibernate, "
-"le schéma de la base de données peut facilement être normalisé et solidifié, "
-"permettant de rajouter une implémentation propre du modèle de domaine plus "
-"tard."
+"plus d'exceptions à gérer lors de l'exécution. Grâce au mappage de "
+"Hibernate, le schéma de la base de données peut facilement être normalisé et "
+"solidifié, permettant de rajouter une implémentation propre du modèle de "
+"domaine plus tard. "
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
"literal> basis:"
msgstr ""
-"Les modes de représentation d'une entité peut aussi être configuré par "
-"<literal>Session</literal> :"
+"Les modes de représentation d'une entité peuvent aussi être configurés en se "
+"basant sur <literal>Session</literal> :"
-#. Tag: programlisting
-#: persistent_classes.xml:297
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:300
-#, fuzzy, no-c-format
-msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
@@ -759,32 +509,29 @@
msgstr ""
"Veuillez noter que l'appel à <literal>getSession()</literal> en utilisant un "
"<literal>EntityMode</literal> se fait sur l'API <literal>Session</literal>, "
-"pas <literal>SessionFactory</literal>. De cette manière, la nouvelle "
+"et non sur <literal>SessionFactory</literal>. De cette manière, la nouvelle "
"<literal>Session</literal> partage les connexions JDBC, transactions et "
"autres informations de contexte sous-jacentes. Cela signifie que vous n'avez "
"pas à appeler <literal>flush()</literal> et <literal>close()</literal> sur "
"la <literal>Session</literal> secondaire, et laissez aussi la gestion de la "
-"transaction et de la connexion à l'unité de travail primaire."
+"transaction et de la connexion à l'unité de travail primaire. "
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"<xref linkend=\"xml\" />."
msgstr ""
-"Plus d'informations à propos de la représentation XML peuvent être trouvées "
-"dans <xref linkend=\"xml\"/>."
+"Pour plus d'informations à propos de la représentation XML, veuillez "
+"consulter <xref linkend=\"xml\" />."
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
msgstr "Tuplizers"
#. Tag: para
-#: persistent_classes.xml:320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
"responsible for managing a particular representation of a piece of data "
@@ -798,23 +545,16 @@
msgstr ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, et ses sous-interfaces, "
"sont responsables de la gestion d'une représentation particulière d'un "
-"morceau de données, en fonction du <literal>org.hibernate.EntityMode</"
-"literal> de réprésentation. Si un morceau donné de données est pensé comme "
-"une structure de données, alors un tuplizer est la chose qui sait comment "
-"créer une telle structure de données, comment extraire des valeurs et "
-"injecter des valeurs dans une telle structure de données. Par exemple, pour "
-"le mode d'entité POJO, le tuplizer correspondant sait comment créer le POJO "
-"à travers son constructeur et comment accéder aux propriétés du POJO "
-"utilisant les accesseurs de la propriété définie. Il y a deux types de "
-"Tuplizers haut niveau, représenté par les interfaces <literal>org.hibernate."
-"tuple.EntityTuplizer</literal> et <literal>org.hibernate.tuple."
-"ComponentTuplizer</literal>. Les <literal>EntityTuplizer</literal>s sont "
-"responsables de la gestion des contrats mentionnés ci-dessus pour les "
-"entités, alors que les <literal>ComponentTuplizer</literal>s s'occupent des "
-"composants."
+"fragment de données, en fonction du <literal>org.hibernate.EntityMode</"
+"literal> de représentation. Si un fragment donné de données est considéré "
+"comme une structure de données, alors un tuplizer sait comment créer une "
+"telle structure de données, comment extraire des valeurs et injecter des "
+"valeurs dans une telle structure de données. Par exemple, pour le mode "
+"d'entité POJO, le tuplizer correspondant sait comment créer le POJO à "
+"travers son constructeur et comment accéder aux propriétés du POJO utilisant "
+"les accesseurs de la propriété définie. "
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -824,10 +564,15 @@
"mentioned contracts in regards to entities, while "
"<literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
+"Il y a deux types de Tuplizers de haut niveau, représentés par les "
+"interfaces <literal>org.hibernate.tuple.EntityTuplizer</literal> et "
+"<literal>org.hibernate.tuple.ComponentTuplizer</literal>. Les "
+"<literal>EntityTuplizer</literal> s sont responsables de la gestion des "
+"contrats mentionnés ci-dessus pour les entités, alors que les "
+"<literal>ComponentTuplizer</literal> s s'occupent des composants."
#. Tag: para
-#: persistent_classes.xml:338
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
"<literal>java.util.Map</literal> implementation other than <literal>java."
@@ -838,65 +583,22 @@
"mapping they are meant to manage. Going back to the example of our customer "
"entity:"
msgstr ""
-"Les utilisateurs peuvent aussi brancher leurs propres tuplizers. Peut-être "
-"vous est-il nécessaire qu'une implémentation de <literal>java.util.Map</"
-"literal> autre que <literal>java.util.HashMap</literal> soit utilisée dans "
-"le mode d'entité dynamic-map ; ou peut-être avez-vous besoin de définir une "
-"statégie de génération de proxy différente de celle utilisée par défaut. Les "
-"deux devraient être effectuées en définissant une implémentation de tuplizer "
-"utilisateur. Les définitions de tuplizers sont attachées au mapping de "
-"l'entité ou du composant qu'ils sont censés gérer. Retour à l'exemple de "
-"notre entité utilisateur :"
+"Les utilisateurs peuvent aussi brancher leurs propres tuplizers. Il vous "
+"faudra peut-être utiliser une implémentation de <literal>java.util.Map</"
+"literal> autre que <literal>java.util.HashMap</literal> dans le mode "
+"d'entité dynamic-map ; ou peut-être aurez vous besoin de définir une "
+"stratégie de génération de proxy différente de celle utilisée par défaut. "
+"Les deux devraient être effectuées en définissant une implémentation de "
+"tuplizer utilisateur. Les définitions de tuplizers sont attachées au mappage "
+"de l'entité ou du composant qu'ils devraient gérer. Revenons à l'exemple de "
+"notre entité utilisateur : "
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
#, no-c-format
msgid "EntityNameResolvers"
-msgstr ""
+msgstr "EntityNameResolvers"
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -913,158 +615,41 @@
"dynamicentity.tuplizer2</package>. Here is some of the code from that "
"package for illustration."
msgstr ""
+"L'interface <interfacename>org.hibernate.EntityNameResolver</interfacename> "
+"représente un contrat pour résoudre le nom de l'entité d'une instance "
+"d'entité donnée. L'interface définit une méthode simple "
+"<methodname>resolveEntityName</methodname>, Ã qui l'on passe l'instance "
+"d'entité et qui doit retourner le nom d'entité qui convient (null est "
+"accepté et indiquerait que le resolver ne sait pas comment résoudre le nom "
+"de l'entité de l'instance d'entité donnée). Normalement, un "
+"<interfacename>org.hibernate.EntityNameResolver</interfacename> est surtout "
+"utile pour les modèles dynamiques. Vous pourriez, par exemple, utiliser des "
+"interfaces proxy comme modèle de domaine. La suite de test Hibernate "
+"comprend un exemple de ce style précis d'utilisation dans <package>org."
+"hibernate.test.dynamicentity.tuplizer2</package>. Vous trouverez ci dessous "
+"une illustration du code de ce package."
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
"interfacename> users must either:"
msgstr ""
+"Pour enregistrer un <interfacename>org.hibernate.EntityNameResolver</"
+"interfacename>, les utilisateurs doivent soit :"
#. Tag: para
-#: persistent_classes.xml:374
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
"link>, implementing the <methodname>getEntityNameResolvers</methodname> "
"method."
msgstr ""
+"Implémenter un <xref linkend=\"persistent-classes-tuplizers\" /> "
+"personnalisé, en implémentant la méthode <methodname>getEntityNameResolvers</"
+"methodname>."
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
@@ -1072,11 +657,7 @@
"hibernate.SessionFactory</interfacename>) using the "
"<methodname>registerEntityNameResolver</methodname> method."
msgstr ""
-
-#~ msgid "There are four main rules to follow here:"
-#~ msgstr "Il y a quatre règles à suivre ici :"
-
-#~ msgid ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
-#~ msgstr ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
+"L'enregistrer dans <classname>org.hibernate.impl.SessionFactoryImpl</"
+"classname> (qui est la classe d'implémentation de <interfacename>org."
+"hibernate.SessionFactory</interfacename>) à l'aide de la méthode "
+"<methodname>registerEntityNameResolver</methodname>."
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,32 @@
-# Language fr-FR translations for PACKAGE package.
-# Automatically generated, 2009.
-#
+# translation of portability.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: portability\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: 2009-07-14 19:56+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:42+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
-msgstr ""
+msgstr "Considérations de portabilité des bases de données"
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
-msgstr ""
+msgstr "Aspects fondamentaux de la portabilité"
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -38,15 +38,23 @@
"run against any number of databases without changes to your code, and "
"ideally without any changes to the mapping metadata."
msgstr ""
+"La portabilité des bases de données est un des atouts qui sont mis en avant "
+"pour vendre Hibernate (et plus largement le mappage objet/relationnel dans "
+"son ensemble). Il pourrait s'agir d'un utilisateur IT interne qui migre "
+"d'une base de données de fournisseur vers une autre, ou il pourrait s'agir "
+"d'un framework ou d'une application déployable consommant Hibernate pour "
+"cibler simultanément plusieurs produits de base de données par leurs "
+"utilisateurs. Quel que soit le scénario exact, l'idée de base est que vous "
+"souhaitez que HIBERNATE vous permettre d'exécuter avec un certain nombre de "
+"bases de données sans modifications à votre code et idéalement sans "
+"modifications des métadonnées de mappage."
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
-msgstr ""
+msgstr "Dialecte"
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -58,15 +66,22 @@
"your particular database is not among them, it is not terribly difficult to "
"write your own."
msgstr ""
+"La première ligne de la portabilité d'Hibernate est le dialecte, qui est une "
+"spécialisation du contrat <classname>org.Hibernate.dialect.dialect</"
+"classname>. Un dialecte encapsule toutes les différences selon lesquelles "
+"Hibernate doit communiquer avec une base de données particulière pour "
+"accomplir certaines tâches comme l'obtention d'une valeur de la séquence ou "
+"de structuration d'une requête SELECT. Hibernate regroupe un large éventail "
+"de dialectes pour la plupart des bases de données les plus communes. Si vous "
+"trouvez que votre base de données particulière n'en fait pas partie, il "
+"n'est pas difficile d'écrire votre propre dialecte."
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
-msgstr ""
+msgstr "Résolution de dialecte"
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -75,9 +90,14 @@
"their users to configure the Hibernate dialect or defining their own method "
"of setting that value."
msgstr ""
+"à l'origine, Hibernate exigeait toujours que les utilisateurs spécifient "
+"quel dialecte utiliser. Dans le cas des utilisateurs qui cherchent à cibler "
+"simultanément plusieurs bases de données avec leur version, c'était "
+"problématique. Généralement cela amenait leurs utilisateurs à configurer le "
+"dialecte Hibernate ou à définir leur propre méthode de définition de cette "
+"valeur."
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -87,17 +107,22 @@
"that this resolution was limited to databases Hibernate know about ahead of "
"time and was in no way configurable or overrideable."
msgstr ""
+"A partir de la version 3.2, Hibernate a introduit la détection "
+"automatiquement du dialecte à utiliser basé sur les <interfacename>Java.SQL."
+"DatabaseMetaData</interfacename> obtenues à partir d'un <interfacename>Java."
+"SQL.Connexion</interfacename> vers cette base de données. C'était beaucoup "
+"mieux, sauf que cette résolution a été limitée aux bases de données déjà "
+"connues d'Hibernate et elle n'était ni configurable, ni remplaçable."
#. Tag: para
-#: portability.xml:72
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -108,9 +133,23 @@
"All other exceptions result in a warning and continuing on to the next "
"resolver."
msgstr ""
+"A partir de la version 3.3, Hibernate a un moyen bien plus puissant de "
+"déterminer automatiquement quel dialecte devrait être utilisé en s'appuyant "
+"sur une série de délégués qui implémentent le <interfacename>org.hibernate."
+"dialect.resolver.DialectResolver</interfacename>. Le résolveur ne définit "
+"qu'une seule méthode :<programlisting>public Dialect resolveDialect"
+"(DatabaseMetaData metaData) throws JDBCConnectionException</programlisting>. "
+"Le contrat de base ici est que si le résolveur 'comprend' les métadonnées de "
+"base de données, alors il renvoie le dialecte correspondant ; si non, il "
+"renvoie la valeur null et le processus se poursuit avec le prochain "
+"résolveur. La signature identifie également l'envoi éventuel de l'exception "
+"<exceptionname>org.hibernate.exception.JDBCConnectionException</"
+"exceptionname>. Une JDBCConnectionException ici implique un problème de "
+"connexion \"non transient\" (aka non récupérable) et est utilisé pour "
+"indiquer un arrêt immédiat à des tentatives de résolution. Toutes les autres "
+"exceptions entraînent un avertissement et de passer à la résolution suivante."
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -124,16 +163,26 @@
"<constant>DIALECT_RESOLVERS</constant> constant on <classname>org.hibernate."
"cfg.Environment</classname>)."
msgstr ""
+"Le bon côté de ces outils de résolution, c'est que les utilisateurs peuvent "
+"également enregistrer leurs propres outils de résolution personnalisés, qui "
+"seront traités avant les résolveurs Hibernate intégrés. Cette option peut "
+"être utile dans un certain nombre de situations différentes : elle permet "
+"une intégration aisée pour la détection automatique des dialectes au-delà de "
+"ceux qui sont livrés avec Hibernate lui-même ; elle vous permet de spécifier "
+"d'utiliser un dialecte personnalisé lorsqu'une base de données particulière "
+"est reconnue ; etc.. Pour enregistrer un ou plusieurs outils de résolution, "
+"il vous suffit de les spécifier (séparés par des virgules, des onglets ou "
+"des espaces) à l'aide du paramètre de configuration 'hibernate."
+"dialect_resolvers' (voir la constante <constant>DIALECT_RESOLVERS</constant> "
+"sur <classname>cfg.Environment org.Hibernate.</classname>)."
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
-msgstr ""
+msgstr "Générer les identifiants"
#. Tag: para
-#: portability.xml:100
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"When considering portability between databases, another important decision "
"is selecting the identifier generation stratagy you want to use. Originally "
@@ -151,38 +200,96 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
+"Quand on considère la portabilité entre les bases de données, la sélection "
+"de stratégie de génération d'identifiant à utiliser est une autre décision "
+"importante. Initialement, Hibernate fournissait le générateur "
+"<emphasis>natif</emphasis> Ã cette fin, dans le but de choisir entre une "
+"stratégie <emphasis>séquence</emphasis>, <emphasis>identité</emphasis>, ou "
+"<emphasis>table</emphasis> suivant la capacité de la base de données sous-"
+"jacente. Toutefois, une implication insidieuse de cette approche surgit au "
+"moment de cibler certaines bases de données entre celles qui prennent en "
+"charge la génération d' <emphasis>identité</emphasis> et celles qui ne la "
+"prenne pas. La génération d'<emphasis>identité</emphasis> s'appuie sur la "
+"définition SQL d'une colonne IDENTITY (ou auto-incrémentation) pour gérer la "
+"valeur d'identificateur ; c'est ce qui est connu sous le nom de stratégie de "
+"génération car l'insersion doit effectivement avoir lieu avant que nous "
+"puissions connaître la valeur de l'identifiant. Ãtant donné qu'Hibernate "
+"repose sur la valeur de cet identifiant pour indentifier les entités de "
+"façon unique dans un contexte de persistance, il doit alors émettre "
+"l'insertion immédiatement, quand les utilisateurs demandent que l'entité "
+"soit associée à la session (comme par exemple, via save()) indépendamment de "
+"la sémantique transactionnelle actuelle. La question sous-jacente est que la "
+"sémantique de l'application elle-même change dans ces cas."
#. Tag: para
-#: portability.xml:125
+#, fuzzy, no-c-format
+msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr ""
+"Hibernate a été amélioré de façon à ce que l'insertion puisse être retardée "
+"quand c'est possible."
+
+#. Tag: note
#, no-c-format
msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+"A partir de la version 3.2.3, Hibernate est fourni avec un ensemble de "
+"générateurs d'identifiants <ulink url=\"http://in.relation.to/2082.lace"
+"\">améliorés</ulink>qui ciblent la portabilité d'une façon très différente."
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+"Il existe 2 générateurs <emphasis>améliorés</emphasis> spécifiques qui sont "
+"livrés."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+"L'idée qui se cache là derrière, c'est de porter la sémantique de la "
+"génération de la valeur d'identifiant vers les bases de données diverses. "
+"Ainsi, <classname>org.hibernate.id.enhanced.SequenceStyleGenerator</"
+"classname> imite le comportement d'une séquence de databases, ne supportant "
+"pas les séquences par une table."
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
-msgstr ""
+msgstr "Fonctions de base de données"
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +298,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -200,9 +306,14 @@
"knows how to render that particular function, perhaps even using a totally "
"different physical function call."
msgstr ""
+"Les fonctions SQL peuvent être référencées de bien des façons par les "
+"utilisateurs. Cependant, toutes les bases de données ne supportent pas le "
+"même groupe de fonctions. Hibernate procure une façon de faire correspondre "
+"un nom de fonction <emphasis>logique</emphasis> à un délégué qui sait "
+"comment traduire cette fonction particulière, peut-être en utilisant un "
+"appel de fonction physique totalement différente."
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -211,24 +322,37 @@
"having to provide a custom dialect. This specific behavior is not fully "
"completed as of yet."
msgstr ""
+"Techniquement, cet enregistrement de la fonction est géré par le biais de la "
+"classe <classname>hibernate.dialect.function.SQLFunctionRegistry org.</"
+"classname> qui est destinée à permettre aux utilisateurs de fournir des "
+"définitions de fonction personnalisée sans avoir à fournir un dialecte "
+"personnalisé. Ce comportement spécifique n'est pas encore entièrement "
+"terminé."
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
"functions with the <classname>org.hibernate.cfg.Configuration</classname> "
"and those functions will be recognized for HQL."
msgstr ""
+"Il est mis en oeuvre de telle sorte que les utilisateurs peuvent enregistrer "
+"des fonctions par programmation avec <classname>org.Hibernate.cfg."
+"Configuration</classname> et ces fonctions seront reconnues pour HQL."
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
+
+#~ msgid ""
+#~ "This is a new area in Hibernate and as such it is not as mature as the "
+#~ "overall Hibernate experience."
+#~ msgstr ""
+#~ "Il s'agit d'une nouveau domaine pour Hibernate, et de ce fait, n'a pas "
+#~ "encore atteint une maturité."
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,27 @@
+# translation of Preface.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Preface\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:43+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "Préface"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -27,32 +31,30 @@
"representation from an object model to a relational data model with a SQL-"
"based schema."
msgstr ""
-"Travailler dans les deux univers que sont l'orienté objet et la base de "
-"données relationnelle peut être lourd et consommateur en temps dans le monde "
-"de l'entreprise d'aujourd'hui. Hibernate est un outil de mapping objet/"
-"relationnel pour le monde Java. Le terme mapping objet/relationnel (ORM) "
-"décrit la technique consistant à faire le lien entre la représentation objet "
-"des données et sa représentation relationnelle basée sur un schéma SQL."
+"Travailler avec des logiciels orientés-objet et une base de données "
+"relationnelle peut sembler parfois lourd et coûteux en temps dans les "
+"environnements entreprise de nos jours. Hibernate est un outil de mappage "
+"objet/relationnel pour les environnements Java. Le terme de mappage objet/"
+"relationnel (ORM de l'anglais Objet Relational Mapping) fait référence à la "
+"technique de mappage d'une représentation de données à partir d'un modèle "
+"d'objet vers un modèle de données relationnelles dans un schéma basé-SQL."
#. Tag: para
-#: preface.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
"tables (and from Java data types to SQL data types), but also provides data "
"query and retrieval facilities. It can also significantly reduce development "
"time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
-"Non seulement, Hibernate s'occupe du transfert des classes Java dans les "
-"tables de la base de données (et des types de données Java dans les types de "
-"données SQL), mais il permet de requêter les données et propose des moyens "
-"de les récupérer. Il peut donc réduire de manière significative le temps de "
-"développement qui aurait été autrement perdu dans une manipulation manuelle "
-"des données via SQL et JDBC."
+"Hibernate s'occupe du mappage des classes Java vers les tables de bases de "
+"données (et des types de données Java vers les types de données SQL), mais "
+"fournit également des facilités de recherche et de retrait de données. "
+"Hibernate peut réduire énormément le temps de développement, normalement "
+"passé à traiter des données manuellement dans SQL ou JDBC."
#. Tag: para
-#: preface.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
"persistence related programming tasks. Hibernate may not be the best "
@@ -63,51 +65,48 @@
"specific SQL code and will help with the common task of result set "
"translation from a tabular representation to a graph of objects."
msgstr ""
-"Le but d'Hibernate est de libérer le développeur de 95 pourcent des tâches "
-"de programmation liées à la persistance des données communes. Hibernate "
-"n'est probablement pas la meilleure solution pour les applications centrées "
-"sur les données qui n'utilisent que les procédures stockées pour implémenter "
-"la logique métier dans la base de données, il est le plus utile dans les "
-"modèles métier orientés objets dont la logique métier est implémentée dans "
-"la couche Java dite intermédiaire. Cependant, Hibernate vous aidera à "
-"supprimer ou à encapsuler le code SQL spécifique à votre base de données et "
-"vous aidera sur la tâche commune qu'est la transformation des données d'une "
-"représentation tabulaire à une représentation sous forme de graphe d'objets."
+"Le but d'Hibernate est de libérer le développeur de 95 pour cent des tâches "
+"de programmation liées à la persistance de données communes. Hibernate n'est "
+"peut-être pas la meilleure solution pour les applications centrées-données "
+"qui utilisent uniquement les procédures-stored pour implémenter la logique "
+"métier dans la base de données. Cela est surtout utile avec les modèles de "
+"domaines orientés-objet et la logique métier dans l'étape intermédiaire "
+"basée Java. Malgré tout, Hibernate peut vous aider à supprimer ou à "
+"encapsuler le code SQL propre à un distributeur et vous aidera à régler la "
+"tâche commune qui consiste à transposer un ensemble de résultats à partir "
+"d'un tableau de représentation vers un graphe d'objets. "
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
"please follow these steps:"
msgstr ""
-"Si vous êtes nouveau dans Hibernate et le mapping Objet/Relationnel voire "
-"même en Java, suivez ces quelques étapes :"
+"Si vous n'êtes pas familiarisé avec Hibernate et le mappage Objet/"
+"Relationnel ou même Java, veuillez suivre les étapes suivantes :"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
-"Lisez <xref linkend=\"tutorial\"/> pour un didacticiel plus long avec plus "
-"d'instructions étape par étape."
+"Lisez <xref linkend=\"tutorial\" /> pour bénéficier d'un tutoriel avec des "
+"instructions étape par étape. Le code source du tutoriel est inclus dans la "
+"distribution du répertoire <literal>doc/reference/tutorial/</literal>. "
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
msgstr ""
-"Lisez <xref linkend=\"architecture\"/> pour comprendre les environnements "
-"dans lesquels Hibernate peut être utilisé."
+"Veuillez lire <xref linkend=\"architecture\" /> pour comprendre dans quels "
+"environnements Hibernate peuvent-être utilisés."
#. Tag: para
-#: preface.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
"contains a simple standalone application. Copy your JDBC driver to the "
@@ -116,66 +115,57 @@
"command prompt in the distribution directory, type <literal>ant eg</literal> "
"(using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
-"Regardez le répertoire <literal>eg</literal> de la distribution Hibernate, "
-"il contient une application simple et autonome. Copiez votre pilote JDBC "
-"dans le répertoire <literal>lib/</literal> et éditez <literal>src/hibernate."
-"properties</literal>, en positionnant correctement les valeurs pour votre "
-"base de données. A partir d'une invite de commande dans le répertoire de la "
-"distribution, tapez <literal>ant eg</literal> (cela utilise Ant), ou sous "
-"Windows tapez <literal>build eg</literal>."
+"Veuillez consulter le répertoire <literal>eg/</literal> dans la distribution "
+"Hibernate, qui contient une application autonome simple. Copier votre pilote "
+"JDBC dans le répertoire <literal>lib/</literal> et éditez <literal>etc/"
+"hibernate.properties</literal>, en spécifiant les valeurs qu'il faut dans "
+"votre base de données. A partir d'une invite de commande du répertoire de "
+"distribution, veuillez saisir <literal>ant eg</literal> (en utilisant Ant), "
+"et sous Windows, tapez <literal>build eg</literal>."
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
-"Faîtes de cette documentation de référence votre principale source "
-"d'information. Pensez à lire <emphasis>Java Persistence with Hibernate</"
-"emphasis> (http://www.manning.com/bauer2) si vous avez besoin de plus d'aide "
-"avec le design d'applications ou si vous préférez un tutoriel pas à pas. "
-"Visitez aussi http://caveatemptor.hibernate.org et téléchargez l'application "
-"exemple pour Java Persistence with Hibernate."
+"Utiliser cette documentation de référence en tant que source primaire "
+"d'information. Vous pourrez lire <emphasis>Hibernate in Action</emphasis> "
+"(http://www.manning.com/bauer) si vous avez besoin d'aide supplémentaire au "
+"niveau de la conception des applications ou si vous préférez un tutoriel "
+"étape par étape. Aussi, veuillez consulter http://caveatemptor.hibernate.org "
+"et décharger l'exemple d'application pour Hibernate en action."
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
-msgstr ""
-"Les questions les plus fréquemment posées (FAQs) trouvent leur réponse sur "
-"le site web Hibernate."
+msgstr "Les questions FAQ sont traitées sur le site Hibernate."
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
"Hibernate website."
msgstr ""
-"Des démos, exemples et tutoriaux de tierces personnes sont référencés sur le "
-"site web Hibernate."
+"Des démos de tierces parties, des exemples et des tutoriels sont accessibles "
+"Ã partir du site Hibernate."
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
"patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, "
"etc.)."
msgstr ""
-"La zone communautaire (Community Area) du site web Hibernate est une bonne "
-"source d'information sur les design patterns et sur différentes solutions "
-"d'intégration d'Hibernate (Tomcat, JBoss, Spring Framework, Struts, EJB, "
-"etc)."
+"La section Community Area (Zône communautaire) du site Hibernate constitue "
+"une ressource intéressante pour les modèles conceptuels et autres solutions "
+"diverses d'intégration (Tomcat, JBoss AS, Struts, EJB, etc.)."
#. Tag: para
-#: preface.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
"We also provide a JIRA issue tracking system for bug reports and feature "
@@ -183,14 +173,13 @@
"developer mailing list. If you are interested in translating this "
"documentation into your language, contact us on the developer mailing list."
msgstr ""
-"Si vous avez des questions, utilisez le forum utilisateurs du site web "
-"Hibernate. Nous utilisons également l'outil de gestion des incidents JIRA "
-"pour tout ce qui est rapports de bogue et demandes d'évolution. Si vous êtes "
-"intéressé par le développement d'Hibernate, joignez-vous à la liste de "
-"diffusion de développement."
+"Si vous avez des questions, participez au forum utilisateur sur le site "
+"Hibernate. Nous proposons également des systèmes de traçage JIRA pour les "
+"rapports de bogues et les demandes sur les fonctionalités. Si vous êtes "
+"intéressé à participer au développement d'Hibernate, veuillez rejoindre la "
+"liste de distribution électronique des développeurs. "
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
@@ -199,8 +188,8 @@
"critical component of the JBoss Enterprise Middleware System (JEMS) suite of "
"products."
msgstr ""
-"Le développement commercial, le support de production et les formations à "
-"Hibernate sont proposés par JBoss Inc (voir http://www.hibernate.org/"
-"SupportTraining/). Hibernate est un projet Open Source professionnel et un "
-"composant critique de la suite de produits JBoss Enterprise Middleware "
-"System (JEMS)."
+"Le support pour le développement commercial, le support production, et la "
+"formation Hibernate sont disponibles à travers JBoss Inc. (voir http://www."
+"hibernate.org/SupportTraining/). Hibernate est un projet professionnel en "
+"source ouverte et un composant critique de la suite de produits JBoss "
+"Enterprise Middleware System (JEMS). "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,38 @@
+# translation of query_criteria.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_criteria\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:43+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
msgstr "Requêtes par critères"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
msgstr ""
"Hibernate offre une API d'interrogation par critères intuitive et extensible."
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
msgstr "Créer une instance de <literal>Criteria</literal>"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
@@ -38,26 +40,15 @@
"factory for <literal>Criteria</literal> instances."
msgstr ""
"L'interface <literal>net.sf.hibernate.Criteria</literal> représente une "
-"requête sur une classe persistente donnée. La <literal>Session</literal> "
+"requête sur une classe persistante donnée. La <literal>Session</literal> "
"fournit les instances de <literal>Criteria</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
msgstr "Restriction du résultat"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -65,216 +56,94 @@
"criterion.Restrictions</literal> defines factory methods for obtaining "
"certain built-in <literal>Criterion</literal> types."
msgstr ""
-"Un criterion (critère de recherche) est une instance de l'interface "
-"<literal>org.hibernate.criterion.Criterion</literal>. La classe <literal>org."
-"hibernate.criterion.Restrictions</literal> définit des méthodes pour obtenir "
-"des types de <literal>Criterion</literal> pré-définis."
+"Un critère de recherche (criterion) individuel est une instance de "
+"l'interface <literal>org.hibernate.criterion.Criterion</literal>. La classe "
+"<literal>org.hibernate.criterion.Restrictions</literal> définit des méthodes "
+"de fabrique pour obtenir des types de <literal>Criterion</literal> intégrés."
-#. Tag: programlisting
-#: query_criteria.xml:59
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Restrictions can be grouped logically."
-msgstr "Les restrictions peuvent être goupées de manière logique."
+msgstr "Les restrictions peuvent être groupées de manière logique. "
-#. Tag: programlisting
-#: query_criteria.xml:65
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:69
-#, fuzzy, no-c-format
-msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
"literal> subclasses). One of the most useful allows you to specify SQL "
"directly."
msgstr ""
-"Il y a plusieurs types de criterion pré-définis (sous classes de "
-"<literal>Restriction</literal>), mais l'une d'entre elle particulièrement "
-"utile vous permet de spécifier directement du SQL."
+"Il y a un grand choix de types de critères intégrés (sous classes de "
+"<literal>Restriction</literal>), dont un est particulièrement utile "
+"puisqu'il vous permet de spécifier directement SQL."
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
"of the queried entity."
msgstr ""
"La zone <literal>{alias}</literal> sera remplacée par l'alias de colonne de "
-"l'entité que l'on souhaite intérroger."
+"l'entité que l'on souhaite interroger."
#. Tag: para
-#: query_criteria.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
"You can create a <literal>Property</literal> by calling <literal>Property."
"forName()</literal>:"
msgstr ""
-"Une autre approche pour obtenir un criterion est de le récupérer d'une "
+"Une autre approche pour obtenir un critère est de le récupérer d'une "
"instance de <literal>Property</literal>. Vous pouvez créer une "
"<literal>Property</literal> en appelant <literal>Property.forName()</"
-"literal>."
+"literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
msgstr "Trier les résultats"
#. Tag: para
-#: query_criteria.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
"literal>."
msgstr ""
"Vous pouvez trier les résultats en utilisant <literal>org.hibernate."
-"criterion.Order</literal>."
+"criterion.Order</literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
msgstr "Associations"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
+"En naviguant les associations qui utilisent <literal>createCriteria()</"
+"literal>, vous pouvez spécifier des contraintes associées à des entités :"
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:114
-#, fuzzy, no-c-format
-msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
"<literal>Criteria</literal> that refers to the elements of the "
"<literal>kittens</literal> collection."
msgstr ""
"Notez que la seconde <literal>createCriteria()</literal> retourne une "
"nouvelle instance de <literal>Criteria</literal>, qui se rapporte aux "
-"éléments de la collection <literal>kittens</literal>."
+"éléments de la collection <literal>kittens</literal>. "
#. Tag: para
-#: query_criteria.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
-msgstr "La forme alternative suivante est utile dans certains cas."
+msgstr "La forme alternative suivante est utile dans certains cas :"
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
@@ -284,8 +153,7 @@
"<literal>Criteria</literal>.)"
#. Tag: para
-#: query_criteria.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
"returned by the previous two queries are <emphasis>not</emphasis> pre-"
@@ -295,97 +163,84 @@
"Notez que les collections kittens contenues dans les instances de "
"<literal>Cat</literal> retournées par les deux précédentes requêtes ne sont "
"<emphasis>pas</emphasis> pré-filtrées par les critères ! Si vous souhaitez "
-"récupérer uniquement les kittens qui correspondent à la criteria, vous devez "
-"utiliser <literal>ResultTransformer</literal>."
+"récupérer uniquement les kittens correspondant aux critères, vous devez "
+"utiliser <literal>ResultTransformer</literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
+msgid "Additionally you may manipulate the result set using a left outer join:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
#. Tag: title
-#: query_criteria.xml:143
#, no-c-format
msgid "Dynamic association fetching"
msgstr "Peuplement d'associations de manière dynamique"
#. Tag: para
-#: query_criteria.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify association fetching semantics at runtime using "
"<literal>setFetchMode()</literal>."
msgstr ""
-"Vous pouvez spéficier au moment de l'exécution le peuplement d'une "
-"association en utilisant <literal>setFetchMode()</literal> (c'est-Ã -dire le "
-"chargement de celle-ci). Cela permet de surcharger les valeurs \"lazy\" et "
-"\"outer-join\" du mapping."
+"Vous pouvez spécifier, au moment de l'exécution, le peuplement d'une "
+"association en utilisant <literal>setFetchMode()</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:152
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
msgstr ""
"Cette requête recherchera <literal>mate</literal> et <literal>kittens</"
-"literal> via les jointures externes. Voir <xref linkend=\"performance-"
-"fetching\"/> pour plus d'informations."
+"literal> via les jointures externes. Consultez <xref linkend=\"performance-"
+"fetching\" /> pour plus d'informations."
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
msgstr "Requêtes par l'exemple"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
"construct a query criterion from a given instance."
msgstr ""
"La classe <literal>org.hibernate.criterion.Example</literal> vous permet de "
-"construire un critère suivant une instance d'objet donnée."
+"construire un critère de requête à partir d'une instance d'objet donnée."
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
@@ -395,56 +250,26 @@
"Par défaut, les valeurs null sont exclues."
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
msgstr ""
"Vous pouvez ajuster la stratégie d'utilisation de valeurs de "
"l'<literal>Exemple</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
msgstr ""
-"Vous pouvez utiliser les \"exemples\" pour des critères sur les objets "
+"Vous pouvez utiliser les \"exemples\" pour des critères sur des objets "
"associés."
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
msgstr "Projections, agrégation et regroupement"
#. Tag: para
-#: query_criteria.xml:190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
"factory for <literal>Projection</literal> instances. You can apply a "
@@ -452,34 +277,9 @@
msgstr ""
"La classe <literal>org.hibernate.criterion.Projections</literal> est une "
"fabrique d'instances de <literal>Projection</literal>. Nous appliquons une "
-"projection sur une requête en appelant <literal>setProjection()</literal>."
+"projection sur une requête en appelant <literal>setProjection()</literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
@@ -488,44 +288,21 @@
msgstr ""
"Il n'y a pas besoin de \"group by\" explicite dans une requête par critère. "
"Certains types de projection sont définis pour être des "
-"<emphasis>projections de regroupement</emphasis>, lesquels apparaissent "
-"aussi dans la clause <literal>group by</literal> SQL."
+"<emphasis>projections de regroupement</emphasis>, qui apparaissent aussi "
+"dans la clause SQL <literal>group by</literal>."
#. Tag: para
-#: query_criteria.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
"referred to in restrictions or orderings. Here are two different ways to do "
"this:"
msgstr ""
"Un alias peut optionnellement être assigné à une projection, ainsi la valeur "
-"projetée peut être référencée dans des restrictions ou des tris. Voici deux "
-"façons différentes de faire ça :"
+"projetée peut être référencée dans des restrictions ou des tris. à cet "
+"effet, voici deux procédés différents : "
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -533,44 +310,13 @@
"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
"you add the projection to a projection list:"
msgstr ""
-"Les méthodes <literal>alias()</literal> et <literal>as()</literal> enveloppe "
-"simplement une instance de projection dans une autre instance (aliasée) de "
-"<literal>Projection</literal>. Comme un raccourci, vous pouvez assignez un "
-"alias lorsque vous ajoutez la projection à la liste de projections :"
+"Les méthodes <literal>alias()</literal> et <literal>as()</literal> "
+"enveloppent simplement une instance de projection dans une autre instance "
+"(aliasée) de <literal>Projection</literal>. Pour un raccourci, vous pouvez "
+"assigner un alias lorsque vous ajoutez la projection à une liste de "
+"projections :"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
@@ -579,41 +325,13 @@
"Vous pouvez aussi utiliser <literal>Property.forName()</literal> pour "
"formuler des projections :"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
msgstr "Requêtes et sous-requêtes détachées"
#. Tag: para
-#: query_criteria.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
"outside the scope of a session and then execute it using an arbitrary "
@@ -621,86 +339,32 @@
msgstr ""
"La classe <literal>DetachedCriteria</literal> vous laisse créer une requête "
"en dehors de la portée de la session, et puis l'exécuter plus tard en "
-"utilisant n'importe quelle <literal>Session</literal> arbitraire."
+"utilisant une <literal>Session</literal> arbitraire. "
-#. Tag: programlisting
-#: query_criteria.xml:244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:246
-#, fuzzy, no-c-format
-msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
"subquery. Criterion instances involving subqueries can be obtained via "
"<literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
-"Une <literal>DetachedCriteria</literal> peut aussi être utilisée pour "
-"exprimer une sous-requête. Des instances de criterion impliquant des sous-"
+"Les <literal>DetachedCriteria</literal> peuvent aussi être utilisés pour "
+"exprimer une sous-requête. Des instances de critère impliquant des sous-"
"requêtes peuvent être obtenues via <literal>Subqueries</literal> ou "
-"<literal>Property</literal>."
+"<literal>Property</literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:252
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:256
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Correlated subqueries are also possible:"
-msgstr "Même des requêtes corrélées sont possibles :"
+msgstr "Des sous-requêtes corrélées sont également possibles :"
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
msgstr "Requêtes par identifiant naturel"
#. Tag: para
-#: query_criteria.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
"efficient because query cache invalidation occurs too frequently. However, "
@@ -711,79 +375,38 @@
msgstr ""
"Pour la plupart des requêtes, incluant les requêtes par critère, le cache de "
"requêtes n'est pas très efficace, parce que l'invalidation du cache de "
-"requêtes arrive trop souvent. Cependant, il y a une sorte spéciale de "
-"requête où nous pouvons optimiser l'algorithme d'invalidation du cache : les "
-"recherches sur une clef naturelle constante. Dans certaines applications, "
-"cette sorte de requête se produit fréquemment. L'API de critère fournit une "
-"provision spéciale pour ce cas d'utilisation."
+"requêtes arrive trop souvent. Cependant, il y existe une requête spéciale où "
+"l'on peut optimiser l'algorithme d'invalidation du cache : les recherches "
+"par une clef naturelle constante. Dans certaines applications, ce genre de "
+"requête se produit fréquemment. L'API des critères fournit une disposition "
+"spéciale pour ce cas d'utilisation. "
#. Tag: para
-#: query_criteria.xml:279
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
"literal> and enable use of the second-level cache."
msgstr ""
-"D'abord vous devriez mapper la clef naturelle de votre entité en utilisant "
+"D'abord, vous devrez mapper la clé naturelle de votre entité en utilisant "
"<literal><natural-id></literal>, et activer l'utilisation du cache de "
"second niveau."
-#. Tag: programlisting
-#: query_criteria.xml:284
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:286
-#, fuzzy, no-c-format
-msgid ""
"This functionality is not intended for use with entities with "
"<emphasis>mutable</emphasis> natural keys."
msgstr ""
-"Notez que cette fonctionnalité n'est pas prévue pour l'utilisation avec des "
-"entités avec des clefs naturelles <emphasis>mutables</emphasis>."
+"Cette fonctionnalité n'est pas prévue pour l'utilisation avec des entités "
+"avec des clés naturelles <emphasis>mutables</emphasis>."
#. Tag: para
-#: query_criteria.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
"naturalId()</literal> allows you to make use of the more efficient cache "
"algorithm."
msgstr ""
-"Maintenant <literal>Restrictions.naturalId()</literal> nous permet de rendre "
+"Une fois que vous aurez activé le cache de requête d'Hibernate, "
+"<literal>Restrictions.naturalId()</literal> vous permettra de rendre "
"l'utilisation de l'algorithme de cache plus efficace."
-
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#~ msgid ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
-#~ msgstr ""
-#~ "Vous pouvez facilement spécifier des contraintes sur des entités liées, "
-#~ "par des associations en utilisant <literal>createCriteria()</literal>."
-
-#~ msgid "Next, enable the Hibernate query cache."
-#~ msgstr "Ensuite, activez le cache de requête d'Hibernate."
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,43 +1,45 @@
+# translation of query_hql.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_hql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:46+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
-msgstr "HQL: Langage de requêtage d'Hibernate"
+msgstr "HQL : langage d'interrogation d'Hibernate"
#. Tag: para
-#: query_hql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
-"Hibernate fourni un langage d'interrogation extrêmement puissant qui "
-"ressemble (et c'est voulu) au SQL. Mais ne soyez pas distraits par la "
-"syntaxe ; HQL est totalement orienté objet, comprenant des notions "
-"d'héritage, de polymorphisme et d'association."
+"Hibernate fournit un langage d'interrogation extrêmement puissant qui "
+"ressemble (et c'est voulu) au SQL. Mais ne soyez pas dupe de la syntaxe ; "
+"HQL est totalement orienté objet, cernant des notions comme l'héritage, le "
+"polymorphisme et les associations. "
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
msgstr "Sensibilité à la casse"
#. Tag: para
-#: query_hql.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</"
@@ -45,80 +47,59 @@
"hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, "
"and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
-"Les requêtes sont insensibles à la casse, à l'exception des noms des classes "
+"Les requêtes sont insensibles à la casse, à l'exception des noms de classes "
"Java et des propriétés. Ainsi, <literal>SeLeCT</literal> est identique à "
"<literal>sELEct</literal> et à <literal>SELECT</literal> mais <literal>net."
"sf.hibernate.eg.FOO</literal> n'est pas identique <literal>net.sf.hibernate."
"eg.Foo</literal> et <literal>foo.barSet</literal> n'est pas identique à "
-"<literal>foo.BARSET</literal>."
+"<literal>foo.BARSET</literal>. "
#. Tag: para
-#: query_hql.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
-"Ce guide utilise les mots clés HQL en minuscule. Certains utilisateurs "
-"trouvent les requêtes écrites avec les mots clés en majuscule plus lisibles, "
-"mais nous trouvons cette convention pénible lorsqu'elle est lue dans du code "
-"Java."
+"Ce guide utilise les mots clés HQL en minuscules. Certains utilisateurs "
+"trouvent les requêtes écrites avec les mots clés en majuscules plus "
+"lisibles, mais nous trouvons cette convention pénible lorsqu'elle est lue "
+"dans du code Java. "
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
msgstr "La clause from"
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
msgstr "La requête Hibernate la plus simple est de la forme :"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
"not usually need to qualify the class name, since <literal>auto-import</"
"literal> is the default. For example:"
msgstr ""
-"qui retourne simplement toutes les instances de la classe <literal>eg.Cat</"
-"literal>. Nous n'avons pas besoin d'habitude de qualifier le nom de la "
-"classe, puisque <literal>auto-import</literal> est la valeur par défaut. "
-"Donc nous écrivons presque toujours :"
+"Retourne toutes les instances de la classe <literal>eg.Cat</literal>. Nous "
+"n'avons pas besoin de qualifier le nom de la classe, puisque <literal>auto-"
+"import</literal> est la valeur par défaut. Donc nous écrivons presque "
+"toujours :"
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
+"Pour pouvoir nous référer à <literal>Cat</literal> dans des autres parties "
+"de la requête, vous aurez besoin d'y assigner un <emphasis>alias</emphasis>. "
+"Ainsi :"
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
"literal> instances, so you can use that alias later in the query. The "
@@ -126,114 +107,66 @@
msgstr ""
"Cette requête assigne l'alias <literal>cat</literal> à l'instance "
"<literal>Cat</literal>, nous pouvons donc utiliser cet alias ailleurs dans "
-"la requête. Le mot clé <literal>as</literal> est optionnel ; nous aurions pu "
+"la requête. Le mot clé <literal>as</literal> est optionnel. Nous aurions pu "
"écrire :"
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
msgstr ""
"Plusieurs classes peuvent apparaître, ce qui conduira à un produit cartésien "
-"(encore appelé jointures croisées)."
+"(encore appelé jointures croisées). "
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat</literal>)."
msgstr ""
"C'est une bonne pratique que de nommer les alias dans les requêtes en "
-"utilisant l'initiale en miniscule, ce qui a le mérite d'être en phase avec "
-"les standards de nommage Java pour les variables locales "
-"(<literal>domesticCat</literal>)."
+"utilisant l'initiale en miniscule, ce qui correspond aux standards de "
+"nommage Java pour les variables locales (par ex. <literal>domesticCat</"
+"literal>)."
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
msgstr "Associations et jointures"
#. Tag: para
-#: query_hql.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join</literal>. For example:"
msgstr ""
"On peut aussi assigner des alias à des entités associées, ou même aux "
"éléments d'une collection de valeurs, en utilisant un <literal>join</"
-"literal> (jointure)."
+"literal> (jointure). Par exemple :"
-#. Tag: programlisting
-#: query_hql.xml:114
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
+msgid "The supported join types are borrowed from ANSI SQL:"
+msgstr "Les types de jointures supportées sont empruntées de ANSI SQL :"
-#. Tag: programlisting
-#: query_hql.xml:116
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
+msgid "<literal>inner join</literal>"
+msgstr "<literal>inner join</literal> (jointure interne)"
-#. Tag: programlisting
-#: query_hql.xml:118
-#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>inner join</literal> (jointure interne)"
#. Tag: para
-#: query_hql.xml:120
#, fuzzy, no-c-format
-msgid "The supported join types are borrowed from ANSI SQL:"
-msgstr "Les types de jointures supportées sont celles de ANSI SQL"
+msgid "<literal>right outer join</literal>"
+msgstr "<literal>inner join</literal> (jointure interne)"
-#. Tag: literal
-#: query_hql.xml:127
-#, no-c-format
-msgid "inner join"
-msgstr "<literal>inner join</literal> (jointure fermée)"
-
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "<literal>left outer join</literal> (jointure ouverte par la gauche)"
-
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
-msgstr "<literal>right outer join</literal> (jointure ouverte par la droite)"
-
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
msgstr ""
@@ -241,7 +174,6 @@
"inutile)"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
@@ -249,19 +181,9 @@
msgstr ""
"Les constructions des jointures <literal>inner join</literal>, <literal>left "
"outer join</literal> et <literal>right outer join</literal> peuvent être "
-"abbrégées."
+"abrégées."
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
@@ -270,47 +192,27 @@
"Nous pouvons soumettre des conditions de jointure supplémentaires en "
"utilisant le mot-clef HQL <literal>with</literal>."
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
-"Par ailleurs, une jointure \"fetchée\" (rapportée) permet d'initialiser les "
-"associations ou collections de valeurs en même temps que leur objet parent, "
-"le tout n'utilisant qu'un seul Select. Ceci est particulièrement utile dans "
-"le cas des collections. Ce système permet de surcharger les déclarations "
-"\"lazy\" et \"outer-join\" des fichiers de mapping pour les associations et "
-"collections. Voir <xref linkend=\"performance-fetching\"/> pour plus "
-"d'informations."
+"Par ailleurs, une jointure \"fetch\" (rapportée) permet d'initialiser les "
+"associations ou collections de valeurs en même temps que leurs objets "
+"parents, en utilisant qu'un seul Select. Ceci est particulièrement utile "
+"dans le cas des collections. Ce système permet de surcharger les "
+"déclarations \"lazy\" et \"outer-join\" des fichiers de mapping pour les "
+"associations et collections. Consultez <xref linkend=\"performance-fetching"
+"\" /> pour plus d'informations."
-#. Tag: programlisting
-#: query_hql.xml:169
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:171
-#, fuzzy, no-c-format
-msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where</literal> clause "
"(or any other clause). The associated objects are also not returned directly "
@@ -318,28 +220,17 @@
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
-"Une jointure \"fetchée\" (rapportée) n'a généralement pas besoin de se voir "
-"assigner un alias puisque les objets associés n'ont pas à être utilisés dans "
-"les autres clauses. Notez aussi que les objets associés ne sont pas "
-"retournés directement dans le résultat de la requête mais l'on peut y "
-"accéder via l'objet parent. La seule raison pour laquelle nous pourrions "
-"avoir besoin d'un alias est si nous récupérions récursivement une collection "
-"supplémentaire :"
+"Une jointure \"fetch\" (rapportée) n'a généralement pas besoin de se voir "
+"assigner un alias puisque les objets associés ne doivent pas être utilisés "
+"dans la clause <literal>where</literal> ou toute autre clause. Notez aussi "
+"que les objets associés ne sont pas retournés directement dans le résultat "
+"de la requête mais l'on peut y accéder via l'objet parent. La seule raison "
+"pour laquelle nous pourrions avoir besoin d'un alias est si nous récupérons "
+"récursivement une collection supplémentaire :"
-#. Tag: programlisting
-#: query_hql.xml:179
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:181
-#, fuzzy, no-c-format
-msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
"using <literal>iterate()</literal> (though <literal>scroll()</literal> can "
"be used). <literal>Fetch</literal> should be used together with "
@@ -357,21 +248,22 @@
msgstr ""
"Notez que la construction de <literal>fetch</literal> ne peut pas être "
"utilisée dans les requêtes appelées par <literal>scroll()</literal> ou "
-"<literal>iterate()</literal>. <literal>fetch</literal> ne devrait pas non "
-"plus être utilisé avec <literal>setMaxResults()</literal> ou "
-"<literal>setFirstResult()</literal>. <literal>fetch</literal> ne peut pas "
-"non plus être utilisé avec une condition <literal>with</literal> ad hoc. Il "
-"est possible de créer un produit cartésien par jointure en récupérant plus "
-"d'une collection dans une requête, donc faites attention dans ce cas. "
-"Récupérer par jointure de multiples collections donne aussi parfois des "
-"résultats inattendus pour des mappings de bag, donc soyez prudent lorsque "
-"vous formulez vos requêtes dans de tels cas. Finalement, notez que "
-"<literal>full join fetch</literal> et <literal>right join fetch</literal> ne "
-"sont pas utiles en général."
+"<literal>iterate()</literal>. De même <literal>Fetch</literal> ne devrait "
+"pas être utilisé avec <literal>setMaxResults()</literal> ou "
+"<literal>setFirstResult()</literal>, ces opérations étant basées sur le "
+"nombre de résultats contenant généralement des doublons dès que des "
+"collections sont chargées agressivement, par conséquent le nombre de lignes "
+"est imprévisible. <literal>Fetch</literal> ne peut pas non plus être utilisé "
+"avec une condition <literal>with</literal> ad hoc. Il est possible de créer "
+"un produit cartésien par jointure en récupérant plus d'une collection dans "
+"une requête, donc faites attention dans ce cas. Récupérer par jointure de "
+"multiples collections donne aussi parfois des résultats inattendus pour des "
+"mappages de sac, donc soyez prudent lorsque vous formulez vos requêtes dans "
+"de tels cas. Finalement, notez que <literal>full join fetch</literal> et "
+"<literal>right join fetch</literal> ne sont pas utiles en général."
#. Tag: para
-#: query_hql.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
@@ -381,52 +273,34 @@
"Si vous utilisez un chargement retardé pour les propriétés (avec une "
"instrumentation par bytecode), il est possible de forcer Hibernate à "
"récupérer les propriétés non encore chargées immédiatement (dans la première "
-"requête) en utilisant <literal>fetch all properties</literal>."
+"requête) en utilisant <literal>fetch all properties</literal>. "
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
msgstr "Formes de syntaxes pour les jointures"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
"and <literal>explicit</literal>."
msgstr ""
-"HQL supporte deux formes pour joindre les associations: <literal>implicite</"
-"literal> et <literal>explicite</literal>."
+"HQL supporte deux formes pour joindre les associations : <literal>implicit</"
+"literal> et <literal>explicit</literal>."
#. Tag: para
-#: query_hql.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
"literal> form, that is, where the join keyword is explicitly used in the "
"from clause. This is the recommended form."
msgstr ""
"Les requêtes présentes dans la section précédente utilisent la forme "
-"<literal>explicite</literal> où le mode clé join est explicitement utilisé "
-"dans la clause from. C'est la forme recommandée."
+"<literal>explicit</literal> où le mot clé join est explicitement utilisé "
+"dans la clause from. C'est la forme recommandée. "
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -434,56 +308,47 @@
"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
"literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-"La forme <literal>implicite</literal> n'utilise pas le mot clé join. A la "
-"place, les associations sont \"déréférencées\" en utilisant le notation '.'. "
-"Ces jointures peuvent apparaitre dans toutes les clauses. Les jointures "
-"<literal>implicites</literal> résultent en des inner join dans le SQL généré."
+"La forme <literal>implicit</literal> n'utilise pas le mot clé join. En "
+"revanche, les associations sont \"déréférencées\" en utilisant la notation. "
+"Ces jointures <literal>implicit</literal> peuvent apparaître dans toutes les "
+"clauses HQL. Les jointures <literal>implicit</literal> résultent en des "
+"jointures internes dans le SQL généré."
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Referring to identifier property"
-msgstr "Refering to identifier property"
+msgstr "Faire référence à la propriété identifiant "
#. Tag: para
-#: query_hql.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr ""
-"There are, generally speaking, 2 ways to refer to an entity's identifier "
-"property:"
+"Il y a en général deux façons de faire référence à une propriété "
+"d'identifiant d'une entité :"
#. Tag: para
-#: query_hql.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
-"The special property (lowercase) <literal>id</literal> may be used to "
-"reference the identifier property of an entity <emphasis>provided that "
-"entity does not define a non-identifier property named id</emphasis>."
+"La propriété particulière (minuscule) <literal>id</literal> peut être "
+"utilisée pour référencer la propriété d'identifiant d'une entité "
+"<emphasis>du moment que l'entité ne définisse pas une propriété de non-"
+"identifiant appelée id</emphasis>."
#. Tag: para
-#: query_hql.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
msgstr ""
-"If the entity defines a named identifier property, you may use that property "
-"name."
+"Si l'identité définit une propriété d'identifiant nommée, vous pouvez "
+"utiliser ce nom de propriété."
#. Tag: para
-#: query_hql.xml:250
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
@@ -491,15 +356,14 @@
"the special <literal>id</literal> property can be used to reference the "
"identifier property."
msgstr ""
-"References to composite identifier properties follow the same naming rules. "
-"If the entity has a non-identifier property named id, the composite "
-"identifier property can only be referenced by its defined named; otherwise, "
-"the special <literal>id</literal> property can be used to rerference the "
-"identifier property."
+"Les références aux propriétés d'identifiant composites suivent les mêmes "
+"règles de nommage. Si l'entité a une propriété de non-identifiant appelée "
+"id, la propriété d'identifiant composite ne peut être référencée que par son "
+"nom défini ; sinon la propriété spéciale <literal>id</literal> peut être "
+"utilisée pour référencer la propriété d'identifiant. "
#. Tag: para
-#: query_hql.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
"In previous versions, <literal>id</literal> <emphasis>always</emphasis> "
@@ -507,153 +371,77 @@
"ramification of that decision was that non-identifier properties named "
"<literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
-"Note: this has changed significantly starting in version 3.2.2. In previous "
-"versions, <literal>id</literal><emphasis>always</emphasis> referred to the "
-"identifier property no matter what its actual name. A ramification of that "
-"decision was that non-identifier properties named <literal>id</literal> "
-"could never be referenced in Hibernate queries."
+"Note : cela a changé de façon significative depuis la version 3.2.2. Dans "
+"les versions précédentes, <literal>id</literal> référait <emphasis>toujours</"
+"emphasis> à la propriété identifiant quel que soit son nom réel. Une des "
+"conséquences de cette décision fut que les propriétés de non-identifiant "
+"appelées <literal>id</literal> ne pouvaient jamais être référencées dans les "
+"requêtes Hibernate."
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
msgstr "La clause select"
#. Tag: para
-#: query_hql.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
"La clause <literal>select</literal> sélectionne les objets et propriétés qui "
-"doivent être retournés dans le résultat de la requête. Soit :"
+"doivent être retournés dans le résultat de la requête. Soit : "
-#. Tag: programlisting
-#: query_hql.xml:276
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:278
-#, fuzzy, no-c-format
-msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
"literal>s. You can express this query more compactly as:"
msgstr ""
-"La requête recherchera les <literal>mate</literal>s liés aux <literal>Cat</"
-"literal>s. Vous pouvez explimer la requête d'une manière plus compacte :"
+"La requête recherchera les <literal>mate</literal> s liés aux <literal>Cat</"
+"literal> s. Vous pouvez exprimer cette requête de manière plus compacte : "
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
-"Les requêtes peuvent retourner des propriétés de n'importe quel type, même "
-"celles de type composant (component) :"
+"Les requêtes peuvent retourner des propriétés de n'importe quel type de "
+"valeur, même celles de type composant : "
-#. Tag: programlisting
-#: query_hql.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:293
-#, fuzzy, no-c-format
-msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]</literal>:"
msgstr ""
-"Les requêtes peuvent retourner plusieurs objets et/ou propriétés sous la "
-"forme d'un tableau du type <literal>Object[]</literal>,"
+"Les requêtes peuvent retourner de multiples objets et/ou propriétés sous la "
+"forme d'un tableau du type <literal>Object[]</literal> :"
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or as a <literal>List</literal>:"
-msgstr "ou sous la forme d'une <literal>List</literal>,"
+msgstr "Ou sous la forme d'une <literal>List</literal> :"
-#. Tag: programlisting
-#: query_hql.xml:304
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:306
-#, fuzzy, no-c-format
-msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr ""
-"à condition que la classe <literal>Family</literal> possède le constructeur "
-"approprié."
+"Ou bien - à condition que la classe <literal>Family</literal> possède le "
+"constructeur approprié - en tant qu'objet typesafe Java :"
-#. Tag: programlisting
-#: query_hql.xml:310
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:313
-#, fuzzy, no-c-format
-msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
msgstr ""
"Vous pouvez assigner des alias aux expressions sélectionnées en utilisant "
-"<literal>as</literal> :"
+"<literal>as</literal> : "
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
@@ -662,17 +450,7 @@
"C'est surtout utile lorsque c'est utilisé avec <literal>select new map</"
"literal> :"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
@@ -681,114 +459,68 @@
"les valeurs sélectionnées."
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
-msgstr "Fonctions d'aggrégation"
+msgstr "Fonctions d'agrégation"
#. Tag: para
-#: query_hql.xml:334
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
msgstr ""
-"Les requêtes HQL peuvent aussi retourner le résultat de fonctions "
-"d'aggrégation sur les propriétés :"
+"Les requêtes HQL peuvent aussi retourner les résultats de fonctions "
+"d'agrégation sur les propriétés : "
-#. Tag: programlisting
-#: query_hql.xml:338
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
+msgid "The supported aggregate functions are:"
+msgstr "Les fonctions d'agrégation supportées sont :"
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
-msgid "The supported aggregate functions are:"
-msgstr "Les fonctions supportées sont"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
+msgstr "<literal>avg(...), sum(...), min(...), max(...)</literal>"
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
-msgstr "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>count(*)</literal>"
+msgstr "<literal>count(*)</literal>"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
-
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
-msgstr "count(...), count(distinct ...), count(all...)"
-
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
+msgstr "<literal>count(...), count(distinct ...), count(all...)</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
msgstr ""
"Vous pouvez utiliser des opérateurs arithmétiques, la concaténation, et des "
-"fonctions SQL reconnues dans la clause select :"
+"fonctions SQL reconnues dans la clause select : "
-#. Tag: programlisting
-#: query_hql.xml:376
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:380
-#, fuzzy, no-c-format
-msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
"Les mots clé <literal>distinct</literal> et <literal>all</literal> peuvent "
-"être utilisés et ont la même signification qu'en SQL."
+"être utilisés et ont la même sémantique qu'en SQL. "
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
msgstr "Requêtes polymorphiques"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
-msgstr "Une requête comme:"
+msgstr "Une requête comme :"
#. Tag: para
-#: query_hql.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
"like <literal>DomesticCat</literal>. Hibernate queries can name "
@@ -797,21 +529,15 @@
"that extend that class or implement the interface. The following query would "
"return all persistent objects:"
msgstr ""
-"retourne non seuleument les instances de <literal>Cat</literal>, mais aussi "
+"retourne non seulement les instances de <literal>Cat</literal>, mais aussi "
"celles des sous classes comme <literal>DomesticCat</literal>. Les requêtes "
"Hibernate peuvent nommer n'importe quelle classe ou interface Java dans la "
"clause <literal>from</literal>. La requête retournera les instances de "
"toutes les classes persistantes qui étendent cette classe ou implémente "
-"cette interface. La requête suivante retournera tous les objets persistants :"
+"cette interface. La requête suivante retournera tous les objets "
+"persistants : "
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
@@ -820,89 +546,53 @@
"L'interface <literal>Named</literal> peut être implémentée par plusieurs "
"classes persistantes :"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
"literal>. This means that the <literal>order by</literal> clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()</literal>."
msgstr ""
-"Notez que ces deux dernières requêtes nécessitent plus d'un <literal>SELECT</"
-"literal> SQL. Ce qui signifie que la clause <literal>order by</literal> ne "
-"trie pas correctement la totalité des résultats (cela signifie aussi que "
-"vous ne pouvez exécuter ces requêtes en appelant <literal>Query.scroll()</"
-"literal>)."
+"Notez que ces deux dernières requêtes nécessitent plus d'un SQL "
+"<literal>SELECT</literal>. Ce qui signifie que la clause <literal>order by</"
+"literal> ne trie pas correctement la totalité des résultats (cela signifie "
+"aussi que vous ne pouvez exécuter ces requêtes en appelant <literal>Query."
+"scroll()</literal>). "
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
msgstr "La clause where"
#. Tag: para
-#: query_hql.xml:426
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
"La clause <literal>where</literal> vous permet de réduire la liste des "
"instances retournées. Si aucun alias n'existe, vous pouvez vous référer aux "
-"propriétés par leur nom :"
+"propriétés par leur nom : "
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
msgstr "S'il y a un alias, utilisez un nom de propriété qualifié :"
-#. Tag: programlisting
-#: query_hql.xml:437
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
-msgstr ""
-"retourne les instances de <literal>Cat</literal> dont name est égale à "
-"'Fritz'."
+msgstr "Retourne les instances de <literal>Cat</literal> appelé 'Fritz'."
#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
-msgstr ""
+msgstr "La requête suivante :"
-#. Tag: programlisting
-#: query_hql.xml:446
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:448
-#, fuzzy, no-c-format
-msgid ""
"returns all instances of <literal>Foo</literal> with an instance of "
"<literal>bar</literal> with a <literal>date</literal> property equal to the "
"<literal>startDate</literal> property of the <literal>Foo</literal>. "
@@ -911,253 +601,165 @@
msgstr ""
"retournera les instances de <literal>Foo</literal> pour lesquelles il existe "
"une instance de <literal>bar</literal> avec la propriété <literal>date</"
-"literal> est égale à la propriété <literal>startDate</literal> de "
-"<literal>Foo</literal>. Les expressions utilisant la navigation rendent la "
-"clause <literal>where</literal> extrêmement puissante. Soit :"
+"literal> égale à la propriété <literal>startDate</literal> de <literal>Foo</"
+"literal>. Les expressions de chemin composées rendent la clause "
+"<literal>where</literal> extrêmement puissante. Soit : "
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-"Cette requête se traduit en SQL par une jointure interne à une table. Si "
-"vous souhaitez écrire quelque chose comme :"
+"Cette requête se traduit en une requête SQL par une jointure interne de "
+"table. Si vous souhaitez écrire quelque chose comme :"
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
-"vous finiriez avec une requête qui nécessiterait quatre jointures en SQL."
+"vous finiriez avec une requête qui nécessiterait quatre jointures de table "
+"en SQL. "
#. Tag: para
-#: query_hql.xml:470
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
"properties, but also instances:"
msgstr ""
"L'opérateur <literal>=</literal> peut être utilisé pour comparer aussi bien "
-"des propriétés que des instances :"
+"des propriétés que des instances : "
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
"La propriété spéciale (en minuscule) <literal>id</literal> peut être "
-"utilisée pour faire référence à l'identifiant d'un objet (vous pouvez aussi "
-"utiliser le nom de cette propriété)."
+"utilisée pour référencer l'identifiant unique d'un objet. Pour plus "
+"d'informations, consultez <xref linkend=\"queryhql-identifier-property\" />."
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The second query is efficient and does not require a table join."
msgstr ""
"La seconde requête est particulièrement efficace. Aucune jointure n'est "
-"nécessaire !"
+"nécessaire ! "
#. Tag: para
-#: query_hql.xml:491
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person</literal> has composite identifiers consisting "
"of <literal>country</literal> and <literal>medicareNumber</literal>:"
msgstr ""
-"Les propriétés d'un identifiant composé peuvent aussi être utilisées. "
-"Supposez que <literal>Person</literal> ait un identifiant composé de "
-"<literal>country</literal> et <literal>medicareNumber</literal>."
+"Les propriétés d'identifiants composites peuvent aussi être utilisées. "
+"Supposez que <literal>Person</literal> ait un identifiant composite composé "
+"de <literal>country</literal> et <literal>medicareNumber</literal>. "
-#. Tag: programlisting
-#: query_hql.xml:497
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
+msgid "Once again, the second query does not require a table join."
msgstr ""
+"Une fois de plus, la seconde requête ne nécessite pas de jointure de table. "
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
#, fuzzy, no-c-format
-msgid "Once again, the second query does not require a table join."
-msgstr "Une fois de plus, la seconde requête ne nécessite pas de jointure."
-
-#. Tag: para
-#: query_hql.xml:505
-#, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
+"Voir <xref linkend=\"queryhql-identifier-property\" /> pour obtenir des "
+"informations supplémentaires sur le référencement de propriétés "
+"d'identifiant."
#. Tag: para
-#: query_hql.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
-"De même, la propriété spéciale <literal>class</literal> interroge la valeur "
+"De même, la propriété spéciale <literal>class</literal> accède à la valeur "
"discriminante d'une instance dans le cas d'une persistance polymorphique. Le "
"nom d'une classe Java incorporée dans la clause where sera traduite par sa "
-"valeur discriminante."
+"valeur discriminante. "
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
-"Vous pouvez aussi spécifier les propriétés des composants ou types "
-"utilisateurs composés (components, composite user types etc). N'essayez "
-"jamais d'utiliser un expression de navigation qui se terminerait par une "
-"propriété de type composant (qui est différent d'une propriété d'un "
-"composant). Par exemple, si <literal>store.owner</literal> est une entité "
-"avec un composant <literal>address</literal>"
+"Vous pouvez également utiliser des composants ou des types d'utilisateur "
+"composites, ou des propriétés de types composant. Consultez <xref linkend="
+"\"queryhql-components\" /> pour plus d'informations. "
#. Tag: para
-#: query_hql.xml:523
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
"<literal>class</literal> that allows you to express a join in the following "
"way (where <literal>AuditLog.item</literal> is a property mapped with "
"<literal><any></literal>):"
msgstr ""
-"Un type \"any\" possède les propriétés spéciales <literal>id</literal> et "
-"<literal>class</literal>, qui nous permettent d'exprimer une jointure de la "
-"manière suivante (où <literal>AuditLog.item</literal> est une propriété "
-"mappée avec <literal><any></literal>)."
+"Un type \"any\" possède les propriétés particulières <literal>id</literal> "
+"et <literal>class</literal>, qui nous permettent d'exprimer une jointure de "
+"la manière suivante (là où <literal>AuditLog.item</literal> est une "
+"propriété mappée avec <literal><any></literal>) :"
-#. Tag: programlisting
-#: query_hql.xml:529
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:531
-#, fuzzy, no-c-format
-msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
"would refer to the values of completely different database columns in the "
"above query."
msgstr ""
"Dans la requête précédente, notez que <literal>log.item.class</literal> et "
"<literal>payment.class</literal> feraient référence à des valeurs de "
-"colonnes de la base de données complètement différentes."
+"colonnes de la base de données complètement différentes. "
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr "Expressions"
#. Tag: para
-#: query_hql.xml:541
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
"following:"
msgstr ""
-"Les expressions permises dans la clause <literal>where</literal> incluent la "
-"plupart des choses que vous pouvez utiliser en SQL :"
+"Les expressions permises dans la clause <literal>where</literal> incluent :"
#. Tag: para
-#: query_hql.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
-msgstr "opérateurs mathématiques <literal>+, -, *, /</literal>"
+msgstr "opérateurs mathématiques : <literal>+, -, *, /</literal> "
#. Tag: para
-#: query_hql.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
"literal>"
msgstr ""
-"opérateur de comparaison binaire <literal>=, >=, <=, <>, !=, "
+"opérateurs de comparaison binaire : <literal>=, >=, <=, <>, !=, "
"like</literal>"
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
-msgstr "opérateurs logiques <literal>and, or, not</literal>"
+msgstr "opérations logiques : <literal>and, or, not</literal>"
#. Tag: para
-#: query_hql.xml:563
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
-msgstr "Parenthèses <literal>( )</literal>, indiquant un regroupement"
+msgstr "Parenthèses <literal>( )</literal>, indiquant un regroupement "
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1168,41 +770,37 @@
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
"literal>, <literal>is null</literal>, <literal>is not null</literal>, "
"<literal>is empty</literal>, <literal>is not empty</literal>, "
-"<literal>member of</literal> and <literal>not member of</literal>"
+"<literal>member of</literal> et <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
"and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
msgstr ""
-"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
-"and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
+"Cas simple <literal>case ... when ... then ... else ... end</literal>, et "
+"cas \"searched\", <literal>case when ... then ... else ... end</literal>"
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
"</literal>"
msgstr ""
-"concatenation de chaîne de caractères <literal>...||...</literal> ou "
+"concaténation de chaîne de caractères <literal>...||...</literal> ou "
"<literal>concat(...,...)</literal>"
#. Tag: para
-#: query_hql.xml:592
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
msgstr ""
-"<literal>current_date()</literal>, <literal>current_time()</literal>, "
+"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
#. Tag: para
-#: query_hql.xml:598
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
@@ -1213,25 +811,22 @@
"<literal>year(...)</literal>,"
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
-"N'importe quel fonction ou opérateur défini par EJB-QL 3.0 : "
+"N'importe quelle fonction ou opérateur défini par EJB-QL 3.0 : "
"<literal>substring(), trim(), lower(), upper(), length(), locate(), abs(), "
"sqrt(), bit_length(), mod()</literal>"
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> et <literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
@@ -1241,7 +836,6 @@
"temporelles vers une chaîne de caractères lisible"
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1255,7 +849,6 @@
"supportés par la base de données sous-jacente"
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
@@ -1265,8 +858,7 @@
"collection indexée jointe"
#. Tag: para
-#: query_hql.xml:636
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
@@ -1274,52 +866,47 @@
"functions that can be quantified using <literal>some, all, exists, any, in</"
"literal>."
msgstr ""
-"Les fonctions HQL qui s'appliquent expressions représentant des "
+"Les fonctions HQL qui prennent des expressions de chemin représentant des "
"collections : <literal>size(), minelement(), maxelement(), minindex(), "
-"maxindex()</literal>, ainsi que les fonctions spéciales <literal>elements()</"
-"literal> et <literal>indices</literal> qui peuvent être quantifiées en "
-"utilisant <literal>some, all, exists, any, in</literal>."
+"maxindex()</literal>, ainsi que les fonctions particulières <literal>elements"
+"()</literal> et <literal>indices</literal> qui peuvent être quantifiées en "
+"utilisant <literal>some, all, exists, any, in</literal>. "
#. Tag: para
-#: query_hql.xml:644
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
"<literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</"
"literal>"
msgstr ""
-"N'importe quelle fonction scalaire supportée par la base de données comme "
-"<literal>sign()</literal>, <literal>trunc()</literal>, <literal>rtrim()</"
-"literal>, <literal>sin()</literal>"
+"N'importe quelle fonction scalaire SQL supportée par la base de données "
+"comme <literal>sign()</literal>, <literal>trunc()</literal>, <literal>rtrim()"
+"</literal>, et <literal>sin()</literal>"
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
-msgstr "Les paramètres positionnels de JDBC <literal>?</literal>"
+msgstr "Les paramètres de position de JDBC <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:655
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
"and <literal>:x1</literal>"
msgstr ""
"paramètres nommés <literal>:name</literal>, <literal>:start_date</literal>, "
-"<literal>:x1</literal>"
+"et <literal>:x1</literal>"
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
msgstr ""
-"littéral SQL <literal>'foo'</literal>, <literal>69</literal>, <literal>'1970-"
-"01-01 10:00:01.0'</literal>"
+"SQL textuel <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
+"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
@@ -1329,77 +916,37 @@
"TABBY</literal>"
#. Tag: para
-#: query_hql.xml:672
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
"<literal>in</literal> et <literal>between</literal> peuvent être utilisés "
-"comme suit :"
+"comme suit : "
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The negated forms can be written as follows:"
-msgstr "et la forme négative peut être écrite"
+msgstr "Les formes négatives peuvent être écrites ainsi :"
-#. Tag: programlisting
-#: query_hql.xml:684
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
"be used to test for null values."
msgstr ""
"De même, <literal>is null</literal> et <literal>is not null</literal> "
-"peuvent être utilisés pour tester les valeurs nulle."
+"peuvent être utilisés pour tester les valeurs nulles."
#. Tag: para
-#: query_hql.xml:693
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
"Les booléens peuvent être facilement utilisés en déclarant les substitutions "
-"de requêtes dans la configuration Hibernate :"
+"de requêtes HQL dans la configuration Hibernate : "
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
@@ -1410,37 +957,17 @@
"literal> par <literal>1</literal> et <literal>0</literal> dans la traduction "
"SQL du HQL suivant :"
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can test the size of a collection with the special property "
"<literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
-"Vous pouvez tester la taille d'une collection par la propriété spéciale "
-"<literal>size</literal>, ou la fonction spéciale <literal>size()</literal>."
+"Vous pouvez tester la taille d'une collection par la propriété particulière "
+"<literal>size</literal>, ou la fonction spéciale <literal>size()</literal>. "
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
"using <literal>minindex</literal> and <literal>maxindex</literal> functions. "
@@ -1449,83 +976,28 @@
"<literal>maxelement</literal> functions. For example:"
msgstr ""
"Pour les collections indexées, vous pouvez faire référence aux indices "
-"minimum et maximum en utilisant les fonctions <literal>minindex</literal> "
-"and <literal>maxindex</literal>. De manière similaire, vous pouvez faire "
-"référence aux éléments minimum et maximum d'une collection de type basiques "
+"minimum et maximum en utilisant les fonctions <literal>minindex</literal> et "
+"<literal>maxindex</literal>. De manière similaire, vous pouvez faire "
+"référence aux éléments minimum et maximum d'une collection de type basique "
"en utilisant les fonctions <literal>minelement</literal> et "
-"<literal>maxelement</literal>."
+"<literal>maxelement</literal>. Par exemple : "
-#. Tag: programlisting
-#: query_hql.xml:724
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:730
-#, fuzzy, no-c-format
-msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
"supported when passed the element or index set of a collection "
"(<literal>elements</literal> and <literal>indices</literal> functions) or "
"the result of a subquery (see below):"
msgstr ""
-"Les fonctions SQL <literal>any, some, all, exists, in</literal> supportent "
-"que leur soient passées l'élément, l'index d'une collection (fonctions "
-"<literal>elements</literal> et <literal>indices</literal>) ou le résultat "
-"d'une sous requête (voir ci dessous)."
+"Les fonctions SQL <literal>any, some, all, exists, in</literal> sont "
+"supportées quand l'élément ou l'ensemble des indexes d'une collection (les "
+"fonctions <literal>elements</literal> et <literal>indices</literal>) ou le "
+"résultat d'une sous requête sont passés (voir ci dessous) :"
-#. Tag: programlisting
-#: query_hql.xml:736
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:746
-#, fuzzy, no-c-format
-msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
@@ -1535,182 +1007,72 @@
"Notez que l'écriture de - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
-"<literal>maxelement</literal> - peuvent seulement être utilisée dans la "
-"clause where dans Hibernate3."
+"<literal>maxelement</literal> - peut seulement être utilisée dans la clause "
+"where dans Hibernate3. "
#. Tag: para
-#: query_hql.xml:753
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
"Les éléments de collections indexées (arrays, lists, maps) peuvent être "
-"référencés via index (dans une clause where seulement) :"
+"référencés via index dans une clause where seulement :"
-#. Tag: programlisting
-#: query_hql.xml:758
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
msgstr ""
"L'expression entre <literal>[]</literal> peut même être une expression "
-"arithmétique."
+"arithmétique :"
-#. Tag: programlisting
-#: query_hql.xml:770
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:772
-#, fuzzy, no-c-format
-msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
"elements of a one-to-many association or collection of values."
msgstr ""
"HQL propose aussi une fonction <literal>index()</literal> interne, pour les "
-"éléments d'une association one-to-many ou d'une collections de valeurs."
+"éléments d'une association un-à -plusieurs ou d'une collection de valeurs."
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
"Les fonctions SQL scalaires supportées par la base de données utilisée "
-"peuvent être utilisées"
+"peuvent être utilisées :"
-#. Tag: programlisting
-#: query_hql.xml:783
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:785
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
"Si vous n'êtes pas encore convaincu par tout cela, imaginez la taille et "
-"l'illisibilité qui caractériseraient la transformation SQL de la requête HQL "
-"suivante :"
+"l'illisibilité qui caractériseraient la requête suivante en SQL :"
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
-msgstr "<emphasis>Un indice :</emphasis> cela donnerait quelque chose comme"
+msgstr "<emphasis>Un indice :</emphasis> cela donne quelque chose comme"
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
msgstr "La clause order by"
#. Tag: para
-#: query_hql.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
-"La liste retounée par la requête peut être triée par n'importe quelle "
-"propriété de la classe ou du composant retourné :"
+"La liste retournée par la requête peut être triée par n'importe quelle "
+"propriété de la classe ou des composants retournés : "
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
@@ -1720,84 +1082,39 @@
"respectivement si le tri doit être croissant ou décroissant."
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
msgstr "La clause group by"
#. Tag: para
-#: query_hql.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
-"Si la requête retourne des valeurs aggrégées, celles ci peuvent être "
-"groupées par propriété ou composant :"
+"Si la requête retourne des valeurs agrégées, celles-ci peuvent être groupées "
+"par propriété d'une classe retournée ou par des composants : "
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
msgstr "Une clause <literal>having</literal> est aussi permise."
-#. Tag: programlisting
-#: query_hql.xml:830
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:832
-#, fuzzy, no-c-format
-msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
"literal> and <literal>order by</literal> clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
-"Les fonctions SQL et les fonctions d'aggrégations sont permises dans les "
-"clauses <literal>having</literal> et <literal>order by</literal>, si elles "
-"sont supportées par la base de données (ce que ne fait pas MySQL par "
-"exemple)."
+"Les fonctions SQL et les fonctions d'agrégat sont permises dans les clauses "
+"<literal>having</literal> et <literal>order by</literal>, si elles sont "
+"prises en charge par la base de données sous-jacente (ce que ne fait pas "
+"MySQL par exemple). "
-#. Tag: programlisting
-#: query_hql.xml:838
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:840
-#, fuzzy, no-c-format
-msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
"literal> clause can contain arithmetic expressions. Hibernate also does not "
"currently expand a grouped entity, so you cannot write <literal>group by "
@@ -1805,16 +1122,18 @@
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
"Notez que ni la clause <literal>group by</literal> ni la clause "
-"<literal>order by</literal> ne peuvent contenir d'expressions arithmétiques."
+"<literal>order by</literal> ne peuvent contenir d'expressions arithmétiques. "
+"Notez aussi qu'Hibernate ne développe pas actuellement une entité faisant "
+"partie du regroupement, donc vous ne pouvez pas écrire <literal>group by "
+"cat</literal> si toutes les propriétés de <literal>cat</literal> sont non-"
+"agrégées. Vous devez lister toutes les propriétés non-agrégées explicitement."
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
msgstr "Sous-requêtes"
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1822,87 +1141,37 @@
"aggregate function call). Even correlated subqueries (subqueries that refer "
"to an alias in the outer query) are allowed."
msgstr ""
-"Pour les bases de données le supportant, Hibernate supporte les sous "
-"requêtes dans les requêtes. Une sous requête doit être entre parenthèses "
-"(souvent pour un appel à une fonction d'agrégation SQL) Même les sous "
-"requêtes corrélées (celles qui font référence à un alias de la requête "
-"principale) sont supportées."
+"Pour les bases de données supportant les sous-selects, Hibernate supporte "
+"les sous requêtes dans les requêtes. Une sous-requête doit être entre "
+"parenthèses (souvent pour un appel à une fonction d'agrégation SQL). Même "
+"les sous-requêtes corrélées (celles qui font référence à un alias de la "
+"requête principale) sont supportées."
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
-"Notez que les sous-requêtes HQL peuvent arriver seulememnt dans les clauses "
-"select ou where."
+"Notez que les sous-requêtes HQL peuvent survenir uniquement dans les clauses "
+"select ou where. "
#. Tag: para
-#: query_hql.xml:874
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
-"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more details."
+"Notez que les sous-requêtes peuvent également utiliser la syntaxe "
+"<literal>row value constructor</literal>. Pour plus d'informations, "
+"consultez <xref linkend=\"queryhql-tuple\" />."
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
msgstr "Exemples HQL"
#. Tag: para
-#: query_hql.xml:884
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
@@ -1911,14 +1180,14 @@
"than the following examples."
msgstr ""
"Les requêtes Hibernate peuvent être relativement puissantes et complexes. En "
-"fait, la puissance du langage de requêtage est l'un des avantages principaux "
-"d'Hibernate. Voici quelques exemples très similaires aux requêtes que nous "
-"avons utilisées lors d'un récent projet. Notez que la plupart des requêtes "
-"que vous écrirez seront plus simples que les exemples suivantes !"
+"fait, la puissance du langage d'interrogation est l'un des arguments "
+"principaux de vente de Hibernate. Voici quelques exemples très similaires "
+"aux requêtes que nous avons utilisées lors d'un récent projet. Notez que la "
+"plupart des requêtes que vous écrirez seront plus simples que les exemples "
+"qui suivent."
#. Tag: para
-#: query_hql.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
@@ -1928,70 +1197,25 @@
"<literal>PRODUCT</literal>, <literal>CATALOG</literal> and <literal>PRICE</"
"literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
-"La requête suivante retourne l'id de commande (order), le nombre d'articles "
-"(items) et la valeur totale de la commande (order) pour toutes les commandes "
-"non payées d'un client (customer) particulier pour un total minimum donné, "
-"le tout trié par la valeur totale. La requête SQL générée sur les tables "
+"La requête suivante retourne l'id de commande, le nombre d'articles et la "
+"valeur totale de la commande pour toutes les commandes non payées d'un "
+"client particulier pour une valeur totale minimum donnée, ces résultats "
+"étant triés par la valeur totale. La requête SQL générée sur les tables "
"<literal>ORDER</literal>, <literal>ORDER_LINE</literal>, <literal>PRODUCT</"
"literal>, <literal>CATALOG</literal> et <literal>PRICE</literal> est "
-"composée de quatre jointures interne ainsi que d'une sous-requête (non "
-"corrélée)."
+"composée de quatre jointures internes ainsi que d'un sous-select (non "
+"corrélé)."
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
"my query was really more like this:"
msgstr ""
-"Quel monstre ! En principe, nous ne sommes pas très fan des sous-requêtes, "
-"la requête ressemblait donc plutôt à cela :"
+"Quel monstre ! En principe, dans des situations réelles, nous n'approuvons "
+"pas les sous-requêtes, notre requête ressemblait donc plutôt à ce qui suit :"
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -2001,61 +1225,25 @@
"<literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal> and "
"<literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
-"La requête suivante compte le nombre de paiements (payments) pour chaque "
-"status, en excluant les paiements dans le status <literal>AWAITING_APPROVAL</"
-"literal> où le changement de status le plus récent à été fait par "
-"l'utilisateur courant. En SQL, cette requête effectue deux jointures "
-"internes et des sous requêtes corrélées sur les tables <literal>PAYMENT</"
-"literal>, <literal>PAYMENT_STATUS</literal> et "
-"<literal>PAYMENT_STATUS_CHANGE</literal>."
+"La requête suivante compte le nombre de paiements pour chaque statut, en "
+"excluant tout paiement dans le statut <literal>AWAITING_APPROVAL</literal> "
+"où le changement de statut le plus récent à été fait par l'utilisateur "
+"courant. En SQL, cette requête effectue deux jointures internes et un sous-"
+"select corrélé sur les tables <literal>PAYMENT</literal>, "
+"<literal>PAYMENT_STATUS</literal> et <literal>PAYMENT_STATUS_CHANGE</"
+"literal>."
-#. Tag: programlisting
-#: query_hql.xml:916
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:918
-#, fuzzy, no-c-format
-msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
"Si nous avions mappé la collection <literal>statusChanges</literal> comme "
-"une liste, au lieu d'un ensemble, la requête aurait été plus facile à écrire."
+"une liste, au lieu d'un ensemble, la requête aurait été plus facile à "
+"écrire. "
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -2066,187 +1254,93 @@
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and "
"<literal>ORG_USER</literal> tables."
msgstr ""
-"La requête qui suit utilise la fonction de MS SQL <literal>isNull()</"
-"literal> pour retourner tous les comptes (accounts) et paiements (payments) "
-"impayés pour l'organisation à laquelle l'uilisateur (user) courant "
-"appartient. Elle est traduite en SQL par trois jointures internes, une "
-"jointure externe ainsi qu'une sous requête sur les tables <literal>ACCOUNT</"
-"literal>, <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal>, "
+"La prochaine requête utilise la fonction de serveur MS SQL <literal>isNull()"
+"</literal> pour retourner tous les comptes et paiements impayés pour "
+"l'organisation à laquelle l'utilisateur courant appartient. Elle est "
+"traduite en SQL par trois jointures internes, une jointure externe ainsi "
+"qu'un sous-select sur les tables <literal>ACCOUNT</literal>, "
+"<literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal>, "
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> et "
"<literal>ORG_USER</literal>."
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
-"Pour d'autres base de données, nous aurions dû faire sans la sous-requête "
-"(corrélée)."
+"Pour certaines bases de données, nous devons éliminer le sous-select "
+"(corrélé)."
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
-msgstr "Mise à jour et suppression"
+msgstr "Nombreuses mises à jour et suppressions "
#. Tag: para
-#: query_hql.xml:947
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
"HQL supporte maintenant les expressions <literal>update</literal>, "
"<literal>delete</literal> et <literal>insert ... select ...</literal>. Voir "
-"<xref linkend=\"batch-direct\"/> pour les détails."
+"<xref linkend=\"batch-direct\" /> pour des informations plus détaillées."
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr "Trucs & Astuces"
#. Tag: para
-#: query_hql.xml:957
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can count the number of query results without returning them:"
msgstr ""
-"Vous pouvez compter le nombre de résultats d'une requête sans les retourner :"
+"Vous pouvez compter le nombre de résultats d'une requête sans les "
+"retourner : "
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
"Pour trier les résultats par la taille d'une collection, utilisez la requête "
"suivante :"
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
-"Si votre base de données supporte les sous-requêtes, vous pouvez placer des "
+"Si votre base de données supporte les sous-selects, vous pouvez placer des "
"conditions sur la taille de la sélection dans la clause where de votre "
-"requête:"
+"requête :"
-#. Tag: programlisting
-#: query_hql.xml:974
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid "If your database does not support subselects, use the following query:"
msgstr ""
-"Si votre base de données ne supporte pas les sous-requêtes, utilisez la "
-"requête suivante :"
+"Si votre base de données ne supporte pas les sous-selects, utilisez la "
+"requête suivante : "
-#. Tag: programlisting
-#: query_hql.xml:980
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:983
-#, fuzzy, no-c-format
-msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
"Cette solution ne peut pas retourner un <literal>User</literal> avec zéro "
"message à cause de la jointure interne, la forme suivante peut donc être "
-"utile :"
+"utile : "
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
"Les propriétés d'un JavaBean peuvent être injectées dans les paramètres "
-"nommés d'un requête :"
+"nommés d'une requête :"
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
@@ -2255,130 +1349,65 @@
"Les collections sont paginables via l'utilisation de l'interface "
"<literal>Query</literal> avec un filtre :"
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
"Les éléments d'une collection peuvent être triés ou groupés en utilisant un "
-"filtre de requête :"
+"filtre de requête : "
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
msgstr "Vous pouvez récupérer la taille d'une collection sans l'initialiser :"
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
-msgstr "translator-credits"
+msgstr "Composants"
#. Tag: para
-#: query_hql.xml:1019
#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select</literal> clause as "
"follows:"
msgstr ""
+"Les composants peuvent être utilisés dans presque tous les cas comme les "
+"types de valeur dans les requêtes HQL. Ils peuvent apparaître dans la clause "
+"<literal>select</literal> comme ce qui suit :"
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where</literal> clause:"
msgstr ""
+"où la propriété de nom de Person est un composant. Des composants peuvent "
+"aussi être utilisés dans la clause <literal>where</literal> :"
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
msgstr ""
+"Des composants peuvent être utilisés dans la clause <literal>order by</"
+"literal> :"
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
+"Voici encore un usage commun des composants <xref linkend=\"queryhql-tuple"
+"\" />."
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
-msgstr ""
+msgstr "Syntaxe des constructeurs de valeur de ligne"
#. Tag: para
-#: query_hql.xml:1050
#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
@@ -2387,72 +1416,56 @@
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
+"HQL supporte l'utilisation de la syntaxe <literal>row value constructor</"
+"literal> SQL ANSI (aussi appelée syntaxe <literal>tuple</literal>), bien que "
+"la base de données sous-jacente ne supporte pas nécessairement cette notion. "
+"Là , nous faisons généralement référence à des comparaisons multi-valuées, "
+"typiquement associées à des composants. Considérez une entité Person qui "
+"définit un composant de nom :"
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
+"Voici une syntaxe valide, bien que quelque peu fastidieuse. Pour la rendre "
+"plus concise, utilisez la syntaxe <literal>row value constructor</literal> :"
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
"clause:"
msgstr ""
+"Il est utile de spécifier cela dans la clause <literal>select</literal> :"
#. Tag: para
-#: query_hql.xml:1072
#, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
+"Alternativement, utiliser la syntaxe <literal>row value constructor</"
+"literal> peut être avantageux quand vous utilisez des sous-requêtes "
+"nécessitant une comparaison avec des valeurs multiples : "
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
+"Si vous décidez d'utiliser cette syntaxe, il vous faudra prendre en "
+"considération le fait que la requête sera dépendante de la commande des sous-"
+"propriétés du composant dans les métadonnées. "
-#~ msgid ""
-#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
-#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
-#~ "of the query."
-#~ msgstr ""
-#~ "La plupart du temps, vous devrez assigner un <emphasis>alias</emphasis> "
-#~ "puisque vous voudrez faire référence à <literal>Cat</literal> dans "
-#~ "d'autres parties de la requête."
+#, fuzzy
+#~ msgid "left outer join"
+#~ msgstr "<literal>left outer join</literal> (jointure ouverte par la gauche)"
-#~ msgid "or as an actual typesafe Java object,"
-#~ msgstr "ou sous la forme d'un objet Java typé,"
+#, fuzzy
+#~ msgid "right outer join"
+#~ msgstr ""
+#~ "<literal>right outer join</literal> (jointure ouverte par la droite)"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of query_sql.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_sql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-05 09:47+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
msgstr "SQL natif"
#. Tag: para
-#: query_sql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
"This is useful if you want to utilize database-specific features such as "
@@ -30,29 +34,26 @@
"base de données. Ceci est utile si vous souhaitez utiliser les "
"fonctionnalités spécifiques de votre base de données comme le mot clé "
"<literal>CONNECT</literal> d'Oracle. Cette fonctionnalité offre par ailleurs "
-"un moyen de migration plus propre et doux d'une application basée sur SQL/"
-"JDBC vers une application Hibernate."
+"un moyen de migration plus propre et doux d'une application basée "
+"directement sur SQL/JDBC vers Hibernate. "
#. Tag: para
-#: query_sql.xml:37
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
"procedures, for all create, update, delete, and load operations."
msgstr ""
-"Hibernate3 vous permet de spécifier du SQL écrit à la main (incluant les "
+"Hibernate3 vous permet de spécifier du SQL écrit à la main (y compris les "
"procédures stockées) pour toutes les opérations de création, mise à jour, "
-"suppression et chargement."
+"suppression et chargement. "
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
-msgstr "Utiliser une <literal>SQLQuery</literal>"
+msgstr "Utiliser une requête <literal>SQLQuery</literal>"
#. Tag: para
-#: query_sql.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
"literal> interface, which is obtained by calling <literal>Session."
@@ -60,87 +61,62 @@
"API for querying."
msgstr ""
"L'exécution des requêtes en SQL natif est contrôlée par l'interface "
-"<literal>SQLQuery</literal>, laquelle est obtenue en appelant "
-"<literal>Session.createSQLQuery()</literal>. Dans des cas extrêmement "
-"simples, nous pouvons utiliser la forme suivante :"
+"<literal>SQLQuery</literal>, qui est obtenue en appelant <literal>Session."
+"createSQLQuery()</literal>. Ce qui suit décrit comment utiliser cette API "
+"pour les requêtes."
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
-msgstr "Scalar queries"
+msgstr "Requêtes scalaires"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
-msgstr "The most basic SQL query is to get a list of scalars (values)."
-
-#. Tag: programlisting
-#: query_sql.xml:54
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
msgstr ""
+"La requête SQL la plus basique permet de récupérer une liste de (valeurs) "
+"scalaires."
#. Tag: para
-#: query_sql.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
"each column in the CATS table. Hibernate will use ResultSetMetadata to "
"deduce the actual order and types of the returned scalar values."
msgstr ""
-"These will both return a List of Object arrays (Object[]) with scalar values "
-"for each column in the CATS table. Hibernate will use ResultSetMetadata to "
-"deduce the actual order and types of the returned scalar values."
+"Ces deux requêtes retourneront un tableau d'objets (Object[]) avec les "
+"valeurs scalaires de chacune des colonnes de la table CATS. Hibernate "
+"utilisera le ResultSetMetadata pour déduire l'ordre final et le type des "
+"valeurs scalaires retournées. "
#. Tag: para
-#: query_sql.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
"simply to be more explicit in what is returned, one can use "
"<literal>addScalar()</literal>:"
msgstr ""
-"To avoid the overhead of using <literal>ResultSetMetadata</literal> or "
-"simply to be more explicit in what is returned one can use <literal>addScalar"
-"()</literal>."
+"Pour éviter l'overhead lié à <literal>ResultSetMetadata</literal> ou "
+"simplement pour être plus explicite dans ce qui est retourné, vous pouvez "
+"utiliser <literal>addScalar()</literal>. "
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
-msgstr "This query specified:"
+msgstr "Cette requête spécifie :"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
-msgstr "the SQL query string"
+msgstr "la chaîne de requêtes SQL"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
-msgstr "the columns and types to return"
+msgstr "les colonnes et les types retournés"
#. Tag: para
-#: query_sql.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
"<literal>ResultSetMetadata</literal> but will instead explicitly get the ID, "
@@ -149,68 +125,53 @@
"be returned, even though the query is using <literal>*</literal> and could "
"return more than the three listed columns."
msgstr ""
-"This will still return Object arrays, but now it will not use "
-"<literal>ResultSetMetdata</literal> but will instead explicitly get the ID, "
-"NAME and BIRTHDATE column as respectively a Long, String and a Short from "
-"the underlying resultset. This also means that only these three columns will "
-"be returned, even though the query is using <literal>*</literal> and could "
-"return more than the three listed columns."
+"Cela retournera toujours un tableau d'objets, mais sans utiliser le "
+"<literal>ResultSetMetdata</literal>. Il récupérera à la place explicitement "
+"les colonnes ID, NAME et BIRTHDATE comme étant respectivement de type Long, "
+"String et Short, depuis l'ensemble de résultats sous-jacent. Cela signifie "
+"aussi que seules ces trois colonnes seront retournées même si la requête "
+"utilise <literal>*</literal> et pourait retourner plus que les trois "
+"colonnes listées."
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr ""
-"It is possible to leave out the type information for all or some of the "
-"scalars."
+"Il est possible de ne pas définir l'information sur le type pour toutes ou "
+"une partie des scalaires."
-#. Tag: programlisting
-#: query_sql.xml:90
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:92
-#, fuzzy, no-c-format
-msgid ""
"This is essentially the same query as before, but now "
"<literal>ResultSetMetaData</literal> is used to determine the type of NAME "
"and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
-"This is essentially the same query as before, but now "
-"<literal>ResultSetMetaData</literal> is used to decide the type of NAME and "
-"BIRTHDATE where as the type of ID is explicitly specified."
+"Il s'agit essentiellement de la même requête que précédemment, mais le "
+"<literal>ResultSetMetaData</literal> est utilisé pour décider des types de "
+"NAME et BIRTHDATE alors que le type de ID est explicitement spécifié. "
#. Tag: para
-#: query_sql.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
"Hibernate types is controlled by the Dialect. If a specific type is not "
"mapped, or does not result in the expected type, it is possible to customize "
"it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
-"How the java.sql.Types returned from ResultSetMetaData is mapped to "
-"Hibernate types is controlled by the Dialect. If a specific type is not "
-"mapped or does not result in the expected type it is possible to customize "
-"it via calls to <literal>registerHibernateType</literal> in the Dialect."
+"Les java.sql.Types retournés par le ResultSetMetaData sont mappés aux types "
+"Hibernate via le Dialect. Si un type spécifique n'est pas mappé ou est mappé "
+"à un type non souhaité, il est possible de le personnaliser en invoquant "
+"<literal>registerHibernateType</literal> dans le Dialect. "
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
-msgstr "Entity queries"
+msgstr "Requêtes d'entités"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -218,41 +179,28 @@
"get entity objects from a native sql query via <literal>addEntity()</"
"literal>."
msgstr ""
-"The above queries were all about returning scalar values, basically "
-"returning the \"raw\" values from the resultset. The following shows how to "
-"get entity objects from a native sql query via <literal>addEntity()</"
-"literal>."
+"Les requêtes précédentes ne retournaient que des valeurs scalaires, en ne "
+"retournant que les valeurs brutes de l'ensemble de résultats. Ce qui suit "
+"montre comment récupérer des entités depuis une requête native SQL, grâce à "
+"<literal>addEntity()</literal>."
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
-msgstr "the entity returned by the query"
+msgstr "L'entité retournée par la requête"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
"BIRTHDATE the above queries will both return a List where each element is a "
"Cat entity."
msgstr ""
-"Assuming that Cat is mapped as a class with the columns ID, NAME and "
-"BIRTHDATE the above queries will both return a List where each element is a "
-"Cat entity."
+"Avec Cat mappé comme classe avec les colonnes ID, NAME et BIRTHDATE, les "
+"requêtes précédentes retournent toutes deux, une liste où chaque élément est "
+"une entité Cat."
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -262,36 +210,25 @@
"but we prefer to be explicit as in the following example for a <literal>many-"
"to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
-"If the entity is mapped with a <literal>many-to-one</literal> to another "
-"entity it is required to also return this when performing the native query, "
-"otherwise a database specific \"column not found\" error will occur. The "
-"additional columns will automatically be returned when using the * notation, "
-"but we prefer to be explicit as in the following example for a <literal>many-"
-"to-one</literal> to a <literal>Dog</literal>:"
+"Si l'entité est mappée avec un <literal>many-to-one</literal> vers une autre "
+"entité, il est requis de retourner aussi cette entité en exécutant la "
+"requête native, sinon une erreur \"column not found\" spécifique à la base "
+"de données sera soulevée. Les colonnes additionnelles seront automatiquement "
+"retournées en utilisant la notation *, mais nous préférons être explicites "
+"comme dans l'exemple suivant avec le <literal>many-to-one</literal> vers "
+"<literal>Dog</literal>:"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
-msgstr "This will allow cat.getDog() to function properly."
+msgstr "Ceci permet à cat.getDog() de fonctionner normalement."
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
-msgstr "Handling associations and collections"
+msgstr "Gérer les associations et collections"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -299,26 +236,14 @@
"<literal>addJoin()</literal> method, which allows you to join in an "
"association or collection."
msgstr ""
-"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
-"possible extra roundtrip for initializing the proxy. This is done via the "
-"<literal>addJoin()</literal> method, which allows you to join in an "
-"association or collection."
+"Il est possible de charger agressivement <literal>Dog</literal> pour éviter "
+"le chargement de proxies c'est-à -dire un aller-retour supplémentaire vers la "
+"base de données. Ceci est effectué via la méthode <literal>addJoin()</"
+"literal>, qui vous permet de joindre une association ou collection."
-#. Tag: programlisting
-#: query_sql.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:152
-#, fuzzy, no-c-format
-msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
"<literal>dog</literal> property fully initialized without any extra "
"roundtrip to the database. Notice that you added an alias name (\"cat\") to "
@@ -326,83 +251,59 @@
"do the same eager joining for collections, e.g. if the <literal>Cat</"
"literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-"In this example the returned <literal>Cat</literal>'s will have their "
-"<literal>dog</literal> property fully initialized without any extra "
-"roundtrip to the database. Notice that we added a alias name (\"cat\") to be "
-"able to specify the target property path of the join. It is possible to do "
-"the same eager joining for collections, e.g. if the <literal>Cat</literal> "
-"had a one-to-many to <literal>Dog</literal> instead."
+"Dans cet exemple, les <literal>Cat</literal> retournés auront leur propriété "
+"<literal>dog</literal> entièrement initialisée sans aucun aller-retour "
+"supplémentaire vers la base de données. Notez que nous avons ajouté un alias "
+"(\"cat\") pour être capable de spécifier le chemin de la propriété cible de "
+"la jointure. Il est possible de faire la même jointure agressive pour les "
+"collections, par ex. si le <literal>Cat</literal> a un un-Ã -plusieurs vers "
+"<literal>Dog</literal>. "
-#. Tag: programlisting
-#: query_sql.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:162
-#, fuzzy, no-c-format
-msgid ""
"At this stage you are reaching the limits of what is possible with native "
"queries, without starting to enhance the sql queries to make them usable in "
"Hibernate. Problems can arise when returning multiple entities of the same "
"type or when the default alias/column names are not enough."
msgstr ""
-"At this stage we are reaching the limits of what is possible with native "
-"queries without starting to enhance the sql queries to make them usable in "
-"Hibernate; the problems starts to arise when returning multiple entities of "
-"the same type or when the default alias/column names are not enough."
+"Ã ce stade, nous arrivons aux limites de ce qui est possible avec les "
+"requêtes natives sans modifier les requêtes SQL pour les rendre utilisables "
+"par Hibernate; les problèmes surviennent lorsque nous essayons de retourner "
+"des entités du même type ou lorsque les alias/colonnes par défaut ne sont "
+"plus suffisants."
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
-msgstr "Returning multiple entities"
+msgstr "Retour d'entités multiples"
#. Tag: para
-#: query_sql.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
"column names specified in the mapping document. This can be problematic for "
"SQL queries that join multiple tables, since the same column names can "
"appear in more than one table."
msgstr ""
-"Until now the result set column names are assumed to be the same as the "
-"column names specified in the mapping document. This can be problematic for "
-"SQL queries which join multiple tables, since the same column names may "
-"appear in more than one table."
+"Jusqu'à présent, les colonnes de l'ensemble de résultats sont supposées être "
+"les mêmes que les noms de colonnes spécifiés dans les documents de mapping. "
+"Ceci peut être problématique pour les requêtes SQL qui effectuent de "
+"multiples jointures vers différentes tables, puisque les mêmes colonnes "
+"peuvent apparaître dans plus d'une table. "
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr ""
-"Column alias injection is needed in the following query (which most likely "
-"will fail):"
+"L'injection d'alias de colonne est requise pour la requête suivante (qui "
+"risque de ne pas fonctionner) :"
-#. Tag: programlisting
-#: query_sql.xml:180
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:184
-#, fuzzy, no-c-format
-msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
"mother. The query will, however, fail because there is a conflict of names; "
"the instances are mapped to the same column names. Also, on some databases "
@@ -410,49 +311,36 @@
"NAME\", etc. which are not equal to the columns specified in the mappings "
"(\"ID\" and \"NAME\")."
msgstr ""
-"The intention for this query is to return two Cat instances per row, a cat "
-"and its mother. This will fail since there is a conflict of names since they "
-"are mapped to the same column names and on some databases the returned "
-"column aliases will most likely be on the form \"c.ID\", \"c.NAME\", etc. "
-"which are not equal to the columns specificed in the mappings (\"ID\" and "
-"\"NAME\")."
+"Le but de cette requête est de retourner deux instances de Cat par ligne, un "
+"chat et sa mère. Cela échouera puisqu'il y a conflit de noms puisqu'ils sont "
+"mappés au même nom de colonne et que sur certaines base de données, les "
+"alias de colonnes retournés seront plutôt de la forme \"c.ID\", \"c.NAME\", "
+"etc. qui ne sont pas égaux aux colonnes spécifiées dans les mappings (\"ID\" "
+"et \"NAME\"). "
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
-msgstr "The following form is not vulnerable to column name duplication:"
-
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
msgstr ""
+"La forme suivante n'est pas vulnérable à la duplication des noms de "
+"colonnes :"
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
"aliases"
msgstr ""
-"the SQL query string, with placeholders for Hibernate to inject column "
-"aliases"
+"la requête SQL, avec des réceptacles pour que Hibernate injecte les alias de "
+"colonnes"
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
-msgstr "the entities returned by the query"
+msgstr "les entités retournées par la requête"
#. Tag: para
-#: query_sql.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
"properties\". Alternatively, you can list the columns explicitly, but even "
@@ -462,424 +350,304 @@
"from a different table (cat_log) to the one declared in the mapping "
"metadata. You can even use the property aliases in the where clause."
msgstr ""
-"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
-"properties\". Alternatively, you may list the columns explicity, but even in "
-"this case we let Hibernate inject the SQL column aliases for each property. "
-"The placeholder for a column alias is just the property name qualified by "
-"the table alias. In the following example, we retrieve Cats and their "
-"mothers from a different table (cat_log) to the one declared in the mapping "
-"metadata. Notice that we may even use the property aliases in the where "
-"clause if we like."
+"Les notations {cat.*} et {mother.*} utilisées ci-dessus sont un équivalent à "
+"'toutes les propriétés'. Alternativement, vous pouvez lister les colonnes "
+"explicitement, mais même dans ce cas, nous laissons Hibernate injecter les "
+"alias de colonne pour chaque propriété. Le paramètre fictif pour un alias de "
+"colonne est simplement le nom de la propriété qualifié par l'alias de la "
+"table. Dans l'exemple suivant, nous récupérons les Cats et leur mère depuis "
+"une table différente (cat_log) de celle déclarée dans les mappages. Notez "
+"que nous pouvons aussi utiliser les alias de propriété dans la clause where "
+"si désiré. "
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
-msgstr "Alias and property references"
+msgstr "Références d'alias et de propriété"
#. Tag: para
-#: query_sql.xml:225
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
"more complex mappings, like composite properties, inheritance "
"discriminators, collections etc., you can use specific aliases that allow "
"Hibernate to inject the proper aliases."
msgstr ""
-"For most cases the above alias injection is needed, but for queries relating "
-"to more complex mappings like composite properties, inheritance "
-"discriminators, collections etc. there are some specific aliases to use to "
-"allow Hibernate to inject the proper aliases."
+"Pour la plupart des cas précédents, l'injection d'alias est requise, mais "
+"pour les requêtes relatives à des mappings plus complexes, comme les "
+"propriétés composites, les discriminants d'héritage, les collections etc., "
+"il y a des alias spécifiques à utiliser pour permettre à Hibernate "
+"l'injection des alias appropriés. "
#. Tag: para
-#: query_sql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
"injection. Please note that the alias names in the result are simply "
"examples; each alias will have a unique and probably different name when "
"used."
msgstr ""
-"The following table shows the different possibilities of using the alias "
-"injection. Note: the alias names in the result are examples, each alias will "
-"have a unique and probably different name when used."
+"Le tableau suivant montre les diverses possibilités d'utilisation "
+"d'injection d'alias. Note : les noms d'alias dans le résultat sont des "
+"exemples, chaque alias aura un nom unique et probablement différent "
+"lorsqu'ils seront utilisés. "
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
-msgstr "Alias injection names"
+msgstr "Nom d'injection d'alias"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
msgstr "Description"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
-msgstr "Syntax"
+msgstr "Syntaxe"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
-msgstr "Example"
+msgstr "Exemple"
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
-msgstr "A simple property"
+msgstr "Une propriété simple"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
-msgstr "{[aliasname].[propertyname]"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
+msgstr "<literal>{[aliasname].[propertyname]</literal>"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
-msgstr "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
-msgstr "A composite property"
+msgstr "Une propriété composite"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
-msgstr "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
-msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
+msgstr ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
-msgstr "Discriminator of an entity"
+msgstr "Discriminateur d'une entité"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
-msgstr "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
-msgstr "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
-msgstr "All properties of an entity"
+msgstr "Toutes les propriétés d'une entité"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
-msgstr "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
-msgstr "A collection key"
+msgstr "La clé d'une collection"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
-msgstr "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
-msgstr "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
-msgstr "The id of an collection"
+msgstr "L'id d'une collection"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
-msgstr "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
-msgstr "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
-msgstr "The element of an collection"
+msgstr "L'élément d'une collection"
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
-msgstr "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
-msgstr "XID as {coll.element}"
-
#. Tag: entry
-#: query_sql.xml:314
#, fuzzy, no-c-format
-msgid "property of the element in the collection"
-msgstr "roperty of the element in the collection"
+msgid "<literal>XID as {coll.element}</literal>"
+msgstr "<literal>{coll.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:316
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
-msgstr "{[aliasname].element.[propertyname]}"
+msgid "property of the element in the collection"
+msgstr "Propriété de l'élément dans une collection "
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
-msgstr "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].element.[propertyname]}</literal>"
#. Tag: entry
-#: query_sql.xml:322
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
+msgstr "<literal>NAME as {coll.element.name}</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "All properties of the element in the collection"
-msgstr "All properties of the element in the collection"
+msgstr "Toutes les propriétés d'un élément dans la collection"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
-msgstr "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:326
-#, no-c-format
-msgid "{coll.element.*}"
-msgstr "{coll.element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{coll.element.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
-msgstr "All properties of the the collection"
+msgstr "Toutes les propriétés d'une collection"
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
-msgstr "Returning non-managed entities"
+msgstr "Retour d'entités non gérées"
#. Tag: para
-#: query_sql.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
"it to return non-managed entities."
msgstr ""
-"It is possible to apply a ResultTransformer to native sql queries. Allowing "
-"it to e.g. return non-managed entities."
+"Il est possible d'appliquer un ResultTransformer à une requête native SQL. "
+"Ce qui permet, par exemple, de retourner des entités non gérées. "
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
-msgstr "a result transformer"
+msgstr "un transformateur de résultat"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
"been instantiated and injected the values of NAME and BIRTHNAME into its "
"corresponding properties or fields."
msgstr ""
-"The above query will return a list of <literal>CatDTO</literal> which has "
-"been instantiated and injected the values of NAME and BIRTHNAME into its "
-"corresponding properties or fields."
+"La requête précédente retournera la liste de <literal>CatDTO</literal> qui "
+"ont été instanciés et dans lesquels les valeurs de NAME et BIRTHNAME auront "
+"été injectées dans leurs propriétés ou champs correspondants."
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
-msgstr "Handling inheritance"
+msgstr "Gérer l'héritage"
#. Tag: para
-#: query_sql.xml:370
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
"inheritance must include all properties for the baseclass and all its "
"subclasses."
msgstr ""
-"Native sql queries which query for entities that is mapped as part of an "
-"inheritance must include all properties for the baseclass and all it "
-"subclasses."
+"Les requêtes natives SQL qui interrogent des entités mappées en tant que "
+"part d'un héritage doivent inclure toutes les propriétés de la classe de "
+"base et de toutes ses sous classes. "
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
-msgstr "Parameters"
+msgstr "Paramètres"
#. Tag: para
-#: query_sql.xml:378
-#, fuzzy, no-c-format
-msgid "Native SQL queries support positional as well as named parameters:"
-msgstr "Native sql queries support positional as well as named parameters:"
-
-#. Tag: programlisting
-#: query_sql.xml:381
#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
+msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
+"Les requêtes natives SQL supportent aussi bien les paramètres de position "
+"que les paramètres nommés : "
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
msgstr "Requêtes SQL nommées"
#. Tag: para
-#: query_sql.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
"exactly the same way as a named HQL query. In this case, you do "
"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
"Les requêtes SQL nommées peuvent être définies dans le document de mapping "
-"et appelées exactement de la même manière qu'un requête HQL nommée. Dans ce "
+"et appelées exactement de la même manière qu'une requête HQL nommée. Dans ce "
"cas, nous <emphasis>n'avons pas besoin</emphasis> d'appeler "
-"<literal>addEntity()</literal>."
+"<literal>addEntity()</literal>. "
-#. Tag: programlisting
-#: query_sql.xml:396
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:400
-#, fuzzy, no-c-format
-msgid ""
"The <literal><return-join></literal> element is use to join "
"associations and the <literal><load-collection></literal> element is "
"used to define queries which initialize collections,"
msgstr ""
"Les éléments <literal><return-join></literal> et <literal><load-"
"collection></literal> sont respectivement utilisés pour lier des "
-"associations et définir des requêtes qui initialisent des collections."
+"associations et définir des requêtes qui initialisent des collections,"
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
@@ -890,23 +658,9 @@
"spécifier l'alias de colonne et le type Hibernate utilisant l'élément "
"<literal><return-scalar></literal> :"
-#. Tag: programlisting
-#: query_sql.xml:410
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:412
-#, fuzzy, no-c-format
-msgid ""
"You can externalize the resultset mapping information in a <literal><"
"resultset></literal> element which will allow you to either reuse them "
"across several named queries or through the <literal>setResultSetMapping()</"
@@ -915,56 +669,18 @@
"Vous pouvez externaliser les informations de mapping des résultats dans un "
"élément <literal><resultset></literal> pour soit les réutiliser dans "
"différentes requêtes nommées, soit à travers l'API "
-"<literal>setResultSetMapping()</literal>."
+"<literal>setResultSetMapping()</literal>. "
-#. Tag: programlisting
-#: query_sql.xml:417
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:419
-#, fuzzy, no-c-format
-msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
"files directly in java code."
msgstr ""
-"You can alternatively use the resultset mapping information in your hbm "
-"files directly in java code."
+"Vous pouvez également utiliser les informations de mapping de l'ensemble de "
+"résultats dans vos fichiers hbm directement dans le code java. "
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
msgstr ""
@@ -972,73 +688,32 @@
"colonnes/alias"
#. Tag: para
-#: query_sql.xml:428
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
"<literal><return-property></literal>, instead of using the <literal>{}"
"</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
"Avec <literal><return-property></literal> vous pouvez explicitement "
-"dire à Hibernate quels alias de colonne utiliser, plutot que d'employer la "
+"dire à Hibernate quels alias de colonne utiliser, plutôt que d'employer la "
"syntaxe <literal>{}</literal> pour laisser Hibernate injecter ses propres "
-"alias."
+"alias. Par exemple :"
-#. Tag: programlisting
-#: query_sql.xml:433
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:435
-#, fuzzy, no-c-format
-msgid ""
"<literal><return-property></literal> also works with multiple columns. "
"This solves a limitation with the <literal>{}</literal>-syntax which cannot "
"allow fine grained control of multi-column properties."
msgstr ""
-"<literal><return-property></literal> fonctionne aussi avec de multiple "
-"colonnes. Cela résout une limitation de la syntaxe <literal>{}</literal> qui "
-"ne peut pas permettre une bonne granularité des propriétés multi-colonnes."
+"<literal><return-property></literal> fonctionne aussi avec de "
+"multiples colonnes. Cela résout une limitation de la syntaxe <literal>{}</"
+"literal> qui ne permet pas une fine granularité des propriétés multi-"
+"colonnes. "
-#. Tag: programlisting
-#: query_sql.xml:440
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:442
-#, fuzzy, no-c-format
-msgid ""
"In this example <literal><return-property></literal> was used in "
"combination with the <literal>{}</literal>-syntax for injection. This allows "
"users to choose how they want to refer column and properties."
@@ -1046,10 +721,9 @@
"Notez que dans cet exemple nous avons utilisé <literal><return-"
"property></literal> en combinaison avec la syntaxe <literal>{}</literal> "
"pour l'injection. Cela autorise les utilisateurs à choisir comment ils "
-"veulent référencer les colonnes et les propriétés."
+"veulent référencer les colonnes et les propriétés. "
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
@@ -1059,14 +733,12 @@
"discriminator></literal> pour spécifier la colonne discriminante."
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
msgstr "Utilisation de procédures stockées pour les requêtes"
#. Tag: para
-#: query_sql.xml:455
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
"Most of the following documentation is equivalent for both. The stored "
@@ -1074,81 +746,38 @@
"able to work with Hibernate. An example of such a stored function in Oracle "
"9 and higher is as follows:"
msgstr ""
-"Hibernate 3 introduit le support des requêtes via procédures stockées et les "
-"fonctions. La documentation suivante est valable pour les deux. Les "
-"procédures stockées/fonctions doivent retourner l'ensemble de résultats en "
-"tant que premier paramètre sortant (NdT: \"out-parameter\") pour être "
-"capable de fonctionner avec Hibernate. Un exemple d'une telle procédure "
-"stockée en Oracle 9 et version supérieure :"
+"Hibernate 3 introduit le support des requêtes via les procédures stockées et "
+"les fonctions. La documentation suivante est valable pour les deux. Les "
+"procédures stockées/fonctions doivent retourner un ensemble de résultats en "
+"tant que premier paramètre sortant (out-parameter\") pour être capable de "
+"fonctionner avec Hibernate. Voici un exemple d'une telle procédure stockée "
+"en Oracle 9 et version supérieure : "
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
msgstr ""
"Pour utiliser cette requête dans Hibernate vous avez besoin de la mapper via "
"une requête nommée."
-#. Tag: programlisting
-#: query_sql.xml:466
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:468
-#, fuzzy, no-c-format
-msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
"return-join></literal> and <literal><load-collection></literal> are "
"not supported."
msgstr ""
-"Notez que les procédures stockées retournent, pour le moment, seulement des "
+"Notez que les procédures stockées ne retournent, pour le moment, que des "
"scalaires et des entités. <literal><return-join></literal> et "
-"<literal><load-collection></literal> ne sont pas supportés."
+"<literal><load-collection></literal> ne sont pas supportés. "
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
msgstr "Règles/limitations lors de l'utilisation des procédures stockées"
#. Tag: para
-#: query_sql.xml:475
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
"procedure/function rules. If they do not follow those rules they are not "
@@ -1157,45 +786,42 @@
"different for each database, since database vendors have different stored "
"procedure semantics/syntax."
msgstr ""
-"Pur utiliser des procédures stockées avec Hibernate, les procédures doivent "
+"Pour utiliser des procédures stockées avec Hibernate, les procédures doivent "
"suivre certaines règles. Si elles ne suivent pas ces règles, elles ne sont "
-"pas utilisables avec Hibernate. Si vous voulez encore utiliser ces "
+"pas utilisables avec Hibernate. Si néanmoins, vous désirez utiliser ces "
"procédures vous devez les exécuter via <literal>session.connection()</"
"literal>. Les règles sont différentes pour chaque base de données, puisque "
"les vendeurs de base de données ont des sémantiques/syntaxes différentes "
-"pour les procédures stockées."
+"pour les procédures stockées. "
#. Tag: para
-#: query_sql.xml:482
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
"setMaxResults()</literal>."
msgstr ""
"Les requêtes de procédures stockées ne peuvent pas être paginées avec "
-"<literal>setFirstResult()/setMaxResults()</literal>."
+"<literal>setFirstResult()/setMaxResults()</literal>. "
#. Tag: para
-#: query_sql.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
"parameters>}</literal>. Native call syntax is not supported."
msgstr ""
-"Recommended call form is standard SQL92: <literal>{ ? = call functionName"
-"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
-"parameters>}</literal>. Native call syntax is not supported."
+"La forme d'appel recommandée est le SQL92 standard : <literal>{ ? = call "
+"functionName(<parameters>) }</literal> or <literal>{ ? = call "
+"procedureName(<parameters>}</literal>. La syntaxe d'appel native n'est "
+"pas supportée."
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
-msgstr "Pour Oracle les règles suivantes s'appliquent :"
+msgstr "Pour Oracle les règles suivantes sont applicables :"
#. Tag: para
-#: query_sql.xml:494
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
"be an <literal>OUT</literal> that returns a result set. This is done by "
@@ -1203,21 +829,19 @@
"you need to define a <literal>REF CURSOR</literal> type. See Oracle "
"literature for further information."
msgstr ""
-"La procédure doit retourner un ensemble de résultats. Le prmeier paramètre "
+"La procédure doit retourner un ensemble de résultats. Le premier paramètre "
"d'une procédure doit être un <literal>OUT</literal> qui retourne un ensemble "
-"de résultats. Ceci est fait en retournant un <literal>SYS_REFCURSOR</"
+"de résultats. Ceci est effectué en retournant un <literal>SYS_REFCURSOR</"
"literal> dans Oracle 9 ou 10. Dans Oracle vous avez besoin de définir un "
-"type <literal>REF CURSOR</literal>."
+"type <literal>REF CURSOR</literal>, consultez la documentation Oracle. "
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
-msgstr "Pour Sybase ou MS SQL server les règles suivantes s'appliquent :"
+msgstr "Pour Sybase ou MS SQL server les règles suivantes sont applicables :"
#. Tag: para
-#: query_sql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
"return multiple result sets and update counts, Hibernate will iterate the "
@@ -1226,12 +850,11 @@
msgstr ""
"La procédure doit retourner un ensemble de résultats. Notez que comme ces "
"serveurs peuvent retourner de multiples ensembles de résultats et mettre à "
-"jour des compteurs, Hibernate itérera les résultats et prendra le premier "
-"résultat qui est un ensemble de résultat comme valeur de retour. Tout le "
-"reste sera ignoré."
+"jour des compteurs, Hibernate itèrera les résultats et prendra le premier "
+"résultat qui est un ensemble de résultats comme valeur de retour. Tout le "
+"reste sera ignoré. "
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
@@ -1242,61 +865,49 @@
"obligation."
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
msgstr "SQL personnalisé pour créer, mettre à jour et effacer"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
-"Hibernate3 peut utiliser des expression SQL personnalisées pour des "
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
+msgstr ""
+"Hibernate3 peut utiliser des expressions SQL personnalisées pour des "
"opérations de création, de mise à jour, et de suppression. Les objets "
"persistants les classes et les collections dans Hibernate contiennent déjà "
"un ensemble de chaînes de caractères générées lors de la configuration "
-"(insertsql, deletesql, updatesql, etc). Les tages de mapping <literal><"
+"(insertsql, deletesql, updatesql, etc). Les balises de mappage <literal><"
"sql-insert></literal>, <literal><sql-delete></literal>, et "
"<literal><sql-update></literal> surchargent ces chaînes de caractères :"
-#. Tag: programlisting
-#: query_sql.xml:535
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:537
-#, fuzzy, no-c-format
-msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
"you like. This will reduce the portability of your mapping if you use "
"database specific SQL."
msgstr ""
"Le SQL est directement exécuté dans votre base de données, donc vous êtes "
"libre d'utiliser le dialecte que vous souhaitez. Cela réduira bien sûr la "
-"portabilité de votre mapping si vous utilisez du SQL spécifique à votre base "
-"de données."
+"portabilité de votre mappage si vous utilisez du SQL spécifique à votre base "
+"de données. "
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
@@ -1305,35 +916,17 @@
"Les procédures stockées sont supportées si l'attribut <literal>callable</"
"literal> est paramétré :"
-#. Tag: programlisting
-#: query_sql.xml:544
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:546
-#, fuzzy, no-c-format
-msgid ""
"The order of the positional parameters is vital, as they must be in the same "
"sequence as Hibernate expects them."
msgstr ""
-"L'ordre des paramètres positionnels est actuellement vital, car ils doivent "
-"être dans la même séquence qu'Hibernate les attend."
+"L'ordre des paramètres de position est essentiel, car ils doivent être dans "
+"la séquence attendue par Hibernate. "
#. Tag: para
-#: query_sql.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
"<literal>org.hibernate.persister.entity</literal> level. With this level "
@@ -1342,17 +935,16 @@
"your custom SQL in the mapping files, as this will override the Hibernate "
"generated static SQL."
msgstr ""
-"Vous pouvez voir l'ordre attendu en activant les journaux de debug pour le "
-"niveau <literal>org.hibernate.persister.entity</literal> level. Avec ce "
+"Vous pouvez voir l'ordre attendu en activant la journalisation de débogage "
+"pour le niveau <literal>org.hibernate.persister.entity</literal>. Avec ce "
"niveau activé, Hibernate imprimera le SQL statique qui est utilisé pour "
-"créer, mettre à jour, supprimer, etc. des entités. (Pour voir la séquence "
+"créer, mettre à jour, supprimer, etc. des entités. Pour voir la séquence "
"attendue, rappelez-vous de ne pas inclure votre SQL personnalisé dans les "
-"fichiers de mapping de manière à surcharger le SQL statique généré par "
-"Hibernate.)"
+"fichiers de mappage car cela surchargera le SQL statique généré par "
+"Hibernate."
#. Tag: para
-#: query_sql.xml:556
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
"rows inserted, updated and deleted, as Hibernate has some runtime checks for "
@@ -1361,138 +953,105 @@
msgstr ""
"Les procédures stockées sont dans la plupart des cas (lire : il vaut mieux "
"le faire) requises pour retourner le nombre de lignes insérées/mises à jour/"
-"supprimées, puisque Hibernate fait quelques vérifications de succès lors de "
-"l'exécution de l'expression. Hibernate inscrit toujours la première "
-"expression comme un paramètre de sortie numérique pour les opérations CUD :"
+"supprimées, puisque Hibernate vérifie plusieurs fois le succès de "
+"l'expression. Hibernate inscrit toujours le premier paramètre de "
+"l'expression comme un paramètre de sortie numérique pour les opérations "
+"CUD : "
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
msgstr "SQL personnalisé pour le chargement"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr ""
-"Vous pouvez aussi déclarer vos propres requêtes SQL (ou HQL) pour le "
-"chargement d'entité :"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
#. Tag: para
-#: query_sql.xml:573
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
"reference this named query in a class mapping:"
msgstr ""
-"Ceci est juste une déclaration de requête nommée, comme vu plus tôt. Vous "
-"pouvez référencer cette requête nommée dans un mapping de classe :"
+"Ceci est juste une déclaration de requête nommée, comme vu précédemment. "
+"Vous pouvez référencer cette requête nommée dans un mappage de classe : "
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
msgstr "Ceci fonctionne même avec des procédures stockées."
#. Tag: para
-#: query_sql.xml:580
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even define a query for collection loading:"
msgstr ""
-"Vous pouvez même définir une requête pour le chargement d'une collection :"
+"Vous pouvez même définir une requête pour le chargement d'une collection : "
-#. Tag: programlisting
-#: query_sql.xml:582
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:586
-#, fuzzy, no-c-format
-msgid ""
"You can also define an entity loader that loads a collection by join "
"fetching:"
msgstr ""
"Vous pourriez même définir un chargeur d'entité qui charge une collection "
-"par jointure :"
+"par jointure : "
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr ""
+#~ "Vous pouvez aussi déclarer vos propres requêtes SQL (ou HQL) pour le "
+#~ "chargement d'entité : "
+
+#, fuzzy
+#~ msgid "A_NAME as {item.name}"
+#~ msgstr "<literal>A_NAME as {item.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].class}"
+#~ msgstr "<literal>{[aliasname].class}</literal>"
+
+#, fuzzy
+#~ msgid "DISC as {item.class}"
+#~ msgstr "<literal>DISC as {item.class}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].*}"
+#~ msgstr "<literal>{[aliasname].*}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].key}"
+#~ msgstr "<literal>{[aliasname].key}</literal>"
+
+#, fuzzy
+#~ msgid "ORGID as {coll.key}"
+#~ msgstr "<literal>ORGID as {coll.key}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].id}"
+#~ msgstr "<literal>{[aliasname].id}</literal>"
+
+#, fuzzy
+#~ msgid "EMPID as {coll.id}"
+#~ msgstr "<literal>EMPID as {coll.id}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element}"
+#~ msgstr "<literal>{[aliasname].element}</literal>"
+
+#, fuzzy
+#~ msgid "XID as {coll.element}"
+#~ msgstr "<literal>XID as {coll.element}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element.*}"
+#~ msgstr "<literal>{[aliasname].element.*}</literal>"
+
+#, fuzzy
+#~ msgid "{coll.element.*}"
+#~ msgstr "<literal>{coll.element.*}</literal>"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of session_api.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-05 09:57+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr "Travailler avec des objets"
#. Tag: para
-#: session_api.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
"the developer from the details of the underlying database management system, "
@@ -27,8 +31,8 @@
"JDBC/SQL persistence layers, a natural object-oriented view of persistence "
"in Java applications."
msgstr ""
-"Hibernate est une solution de mapping objet/relationnel complète qui ne "
-"masque pas seulement au développpeur les détails du système de gestion de "
+"Hibernate est une solution de mappage objet/relationnel complète qui ne "
+"masque pas seulement au développeur les détails du système de gestion de "
"base de données sous-jacent, mais offre aussi <emphasis>la gestion d'état</"
"emphasis> des objets. C'est, contrairement à la gestion de "
"<literal>statements</literal> SQL dans les couches de persistance "
@@ -36,7 +40,6 @@
"persistance dans les applications Java."
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -45,27 +48,24 @@
"is only relevant for the application developer when tuning the performance "
"of the system."
msgstr ""
-"En d'autres mots, les développeurs d'applications Hibernate devrait toujours "
-"réfléchir à <emphasis>l'état</emphasis> de leurs objets, et pas "
+"En d'autres termes, les développeurs d'applications Hibernate devraient "
+"toujours réfléchir à <emphasis>l'état</emphasis> de leurs objets, et pas "
"nécessairement à l'exécution des expressions SQL. Cette part est prise en "
-"charge pas Hibernate et seulement importante pour les développeurs "
-"d'applications lors du réglage de la performance de leur système."
+"charge par Hibernate et importante seulement aux développeurs d'applications "
+"lors du réglage de la performance de leur système."
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
msgstr "Ãtats des objets Hibernate"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
-msgstr "Hibernate définit et comprend les états suivants :"
+msgstr "Hibernate définit et prend en charge les états d'objets suivants :"
#. Tag: para
-#: session_api.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
"instantiated using the <literal>new</literal> operator, and it is not "
@@ -77,18 +77,17 @@
"take care of the SQL statements that need to be executed for this "
"transition)."
msgstr ""
-"<emphasis>Ãphémère</emphasis> (NdT : transient) - un objet est éphémère s'il "
-"a juste été instancié en utilisant l'opérateur <literal>new</literal>. Il "
-"n'a aucune représentation persistante dans la base de données et aucune "
-"valeur d'identifiant n'a été assignée. Les instances éphémères seront "
-"détruites par le ramasse-miettes si l'application n'en conserve aucune "
-"référence. Utilisez la <literal>Session</literal> d'Hibernate pour rendre un "
-"objet persistant (et laisser Hibernate s'occuper des expressions SQL qui ont "
-"besoin d'être exécutées pour cette transistion)."
+"<emphasis>Ãphémère</emphasis> (transient) - un objet est éphémère s'il a "
+"juste été instancié en utilisant l'opérateur <literal>new</literal>. Il n'a "
+"aucune représentation persistante dans la base de données et aucune valeur "
+"d'identifiant n'a été assignée. Les instances éphémères seront détruites par "
+"le ramasse-miettes si l'application n'en conserve aucune référence. Utilisez "
+"la <literal>Session</literal> d'Hibernate pour rendre un objet persistant "
+"(et laisser Hibernate s'occuper des expressions SQL qui ont besoin d'être "
+"exécutées pour cette transistion)."
#. Tag: para
-#: session_api.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
"in the database and an identifier value. It might just have been saved or "
@@ -103,15 +102,14 @@
"représentation dans la base de données et une valeur d'identifiant. Elle "
"pourrait avoir juste été sauvegardée ou chargée, pourtant, elle est par "
"définition dans la portée d'une <literal>Session</literal>. Hibernate "
-"détectera n'importe quels changements effectués sur un objet dans l'état "
-"persistant et synchronisera l'état avec la base de données lors de la fin "
-"l'unité de travail. Les développeurs n'exécutent pas d'expressions "
-"<literal>UPDATE</literal> ou <literal>DELETE</literal> manuelles lorsqu'un "
-"objet devrait être rendu éphémère."
+"détectera tout changement effectué sur un objet dans l'état persistant et "
+"synchronisera l'état avec la base de données lors de la fin de l'unité de "
+"travail. Les développeurs n'exécutent pas d'expressions <literal>UPDATE</"
+"literal> ou <literal>DELETE</literal> manuelles lorsqu'un objet devrait être "
+"rendu éphémère. "
#. Tag: para
-#: session_api.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
"been persistent, but its <literal>Session</literal> has been closed. The "
@@ -124,34 +122,31 @@
"from the point of view of the user."
msgstr ""
"<emphasis>Détaché</emphasis> - une instance détachée est un objet qui a été "
-"persistant, mais dont sa <literal>Session</literal> a été fermée. La "
+"persistant, mais dont la <literal>Session</literal> a été fermée. La "
"référence à l'objet est encore valide, bien sûr, et l'instance détachée "
"pourrait même être modifiée dans cet état. Une instance détachée peut être "
-"réattachée à une nouvelle <literal>Session</literal> plus tard dans le "
-"temps, la rendant (et toutes les modifications avec) de nouveau persistante. "
-"Cette fonctionnalité rend possible un modèle de programmation pour de "
-"longues unités de travail qui requièrent un temps de réflexion de "
-"l'utilisateur. Nous les appelons des <emphasis>conversations</emphasis>, "
-"c'est-à -dire une unité de travail du point de vue de l'utilisateur."
+"rattachée à une nouvelle <literal>Session</literal> ultérieurement, la "
+"rendant (et toutes les modifications avec) de nouveau persistante. Cette "
+"fonctionnalité rend possible un modèle de programmation pour de longues "
+"unités de travail qui requièrent un temps de réflexion de l'utilisateur. "
+"Nous les appelons des <emphasis>conversations</emphasis>, c'est-Ã -dire une "
+"unité de travail du point de vue de l'utilisateur. "
#. Tag: para
-#: session_api.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
"methods that trigger a transition) in more detail."
msgstr ""
-"Nous alons maintenant dicuster des états et des transitions d'état (et des "
-"méthodes d'Hibernate qui déclenchent une transition) plus en détails."
+"Nous allons maintenant approfondir le sujet des états et des transitions "
+"d'état (et des méthodes Hibernate qui déclenchent une transition)."
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "Rendre des objets persistants"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
@@ -159,25 +154,13 @@
"instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
"Les instances nouvellement instanciées d'une classe persistante sont "
-"considérées <emphasis>éphémères</emphasis> par Hibernate. Nous pouvons "
+"considérées comme <emphasis>éphémères</emphasis> par Hibernate. Nous pouvons "
"rendre une instance éphémère <emphasis>persistante</emphasis> en l'associant "
-"avec une session :"
+"Ã une session :"
-#. Tag: programlisting
-#: session_api.xml:110
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:112
-#, fuzzy, no-c-format
-msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
"generated and assigned to the <literal>cat</literal> when <literal>save()</"
"literal> is called. If <literal>Cat</literal> has an <literal>assigned</"
@@ -189,16 +172,15 @@
msgstr ""
"Si <literal>Cat</literal> a un identifiant généré, l'identifiant est généré "
"et assigné au <literal>cat</literal> lorsque <literal>save()</literal> est "
-"appelée. Si <literal>Cat</literal> a un identifiant <literal>assigned</"
+"appelé. Si <literal>Cat</literal> a un identifiant <literal>assigned</"
"literal>, ou une clef composée, l'identifiant devrait être assigné à "
"l'instance de <literal>cat</literal> avant d'appeler <literal>save()</"
"literal>. Vous pouvez aussi utiliser <literal>persist()</literal> Ã la place "
-"de<literal>save()</literal>, avec la sémantique définie plus tôt dans le "
-"brouillon d'EJB3."
+"de <literal>save()</literal>, avec la sémantique définie plus tôt dans la "
+"première ébauche d'EJB3. "
#. Tag: para
-#: session_api.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
"it does not guarantee that the identifier value will be assigned to the "
@@ -208,16 +190,15 @@
"boundaries. This is useful in long-running conversations with an extended "
"Session/persistence context."
msgstr ""
-"<literal>persist()</literal> makes a transient instance persistent. However, "
-"it doesn't guarantee that the identifier value will be assigned to the "
-"persistent instance immediately, the assignment might happen at flush time. "
-"<literal>persist()</literal> also guarantees that it will not execute an "
-"<literal>INSERT</literal> statement if it is called outside of transaction "
-"boundaries. This is useful in long-running conversations with an extended "
-"Session/persistence context."
+"<literal>persist()</literal> rend une instance éphémère persistante. "
+"Toutefois, il ne garantit pas que la valeur d'identificateur soit affectée à "
+"l'instance permanente immédiatement, l'affectation peut se produire au "
+"moment de flush. <literal>Persist()</literal> garantit également qu'il ne "
+"s'exécutera pas un énoncé <literal>INSERT</literal> s'il est appelée en "
+"dehors des limites de transaction. C'est utile pour les longues "
+"conversations dans un contexte de session/persistance étendu."
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -226,39 +207,25 @@
"you are inside or outside of a transaction. This is problematic in a long-"
"running conversation with an extended Session/persistence context."
msgstr ""
-"<literal>save()</literal> does guarantee to return an identifier. If an "
-"INSERT has to be executed to get the identifier ( e.g. \"identity\" "
-"generator, not \"sequence\"), this INSERT happens immediately, no matter if "
-"you are inside or outside of a transaction. This is problematic in a long-"
-"running conversation with an extended Session/persistence context."
+"<literal>save()</literal> garantit le retour d'un identifiant. Si une "
+"instruction INSERT doit être exécutée pour obtenir l'identifiant (par "
+"exemple, le générateur \"identity\", et non pas \"sequence\"), cet INSERT "
+"se produit immédiatement, que vous soyez à l'intérieur ou à l'extérieur "
+"d'une transaction. C'est problématique dans une conversation longue dans un "
+"contexte de session/persistance étendu."
#. Tag: para
-#: session_api.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
"<literal>save()</literal>."
msgstr ""
"Alternativement, vous pouvez assigner l'identifiant en utilisant une version "
-"surchargée de <literal>save()</literal>."
+"surchargée de <literal>save()</literal>. "
-#. Tag: programlisting
-#: session_api.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:152
-#, fuzzy, no-c-format
-msgid ""
"If the object you make persistent has associated objects (e.g. the "
"<literal>kittens</literal> collection in the previous example), these "
"objects can be made persistent in any order you like unless you have a "
@@ -269,16 +236,15 @@
msgstr ""
"Si l'objet que vous rendez persistant a des objets associés (par exemple, la "
"collection <literal>kittens</literal> dans l'exemple précédent), ces objets "
-"peuvent être rendus persistants dans n'importe quel ordre que vous souhaitez "
-"Ã moins que vous ayez une contrainte <literal>NOT NULL</literal> sur la "
-"colonne de la clef étrangère. Il n'y a jamais de risque de violer une "
-"contrainte de clef étrangère. Cependant, vous pourriez violer une contrainte "
-"<literal>NOT NULL</literal> si vous appeliez <literal>save()</literal> sur "
-"les objets dans le mauvais ordre."
+"peuvent être rendus persistants dans n'importe quel ordre désiré, à moins "
+"que vous ayez une contrainte <literal>NOT NULL</literal> sur la colonne de "
+"la clé étrangère. Il n'y a jamais de risque de violer une contrainte de cl. "
+"étrangère. Cependant, vous pourriez violer une contrainte <literal>NOT NULL</"
+"literal> si vous appeliez <literal>save()</literal> sur les objets dans le "
+"mauvais ordre. "
#. Tag: para
-#: session_api.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
"Hibernate's <emphasis>transitive persistence</emphasis> feature to save the "
@@ -288,20 +254,18 @@
msgstr ""
"Habituellement, vous ne vous préoccupez pas de ce détail, puisque vous "
"utiliserez très probablement la fonctionnalité de <emphasis>persistance "
-"transitive</emphasis> d'Hibernate pour sauvegarder les objets associés "
+"transitive</emphasis> de Hibernate pour sauvegarder les objets associés "
"automatiquement. Alors, même les violations de contrainte <literal>NOT NULL</"
"literal> n'ont plus lieu - Hibernate prendra soin de tout. La persistance "
-"transitive est traitée plus loin dans ce chapitre."
+"transitive est traitée plus loin dans ce chapitre. "
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr "Chargement d'un objet"
#. Tag: para
-#: session_api.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
"a way of retrieving a persistent instance if you know its identifier. "
@@ -312,45 +276,17 @@
"donnent un moyen de récupérer une instance persistante si vous connaissez "
"déjà son identifiant. <literal>load()</literal> prend un objet de classe et "
"chargera l'état dans une instance nouvellement instanciée de cette classe, "
-"dans un état persistant."
+"dans un état persistant. "
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
msgstr ""
"Alternativement, vous pouvez charger un état dans une instance donnée :"
-#. Tag: programlisting
-#: session_api.xml:190
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:192
-#, fuzzy, no-c-format
-msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
"exception if there is no matching database row. If the class is mapped with "
"a proxy, <literal>load()</literal> just returns an uninitialized proxy and "
@@ -368,111 +304,76 @@
"souhaitez créer une association vers un objet sans réellement le charger à "
"partir de la base de données. Cela permet aussi à de multiples instances "
"d'être chargées comme un lot si <literal>batch-size</literal> est défini "
-"pour le mapping de la classe."
+"pour le mapping de la classe. "
#. Tag: para
-#: session_api.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
"<literal>get()</literal> method which hits the database immediately and "
"returns null if there is no matching row."
msgstr ""
-"Si vous n'êtes pas certain qu'une ligne correspondante existe, vous devriez "
-"utiliser la méthode <literal>get()</literal>, laquelle accède à la base de "
+"Si vous n'êtes pas certain qu'une ligne correspondante existe, vous "
+"utiliserez la méthode <literal>get()</literal>, laquelle accède à la base de "
"données immédiatement et retourne null s'il n'y a pas de ligne "
-"correspondante."
+"correspondante. "
-#. Tag: programlisting
-#: session_api.xml:209
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:211
-#, fuzzy, no-c-format
-msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
"literal>, using a <literal>LockMode</literal>. See the API documentation for "
"more information."
msgstr ""
-"Vous pouvez même charger un objet en employant un <literal>SELECT ... FOR "
-"UPDATE</literal> SQL, en utilisant un <literal>LockMode</literal>. Voir la "
-"documentation de l'API pour plus d'informations."
+"Vous pouvez même charger un objet en employant un SQL <literal>SELECT ... "
+"FOR UPDATE</literal>, en utilisant un <literal>LockMode</literal>. Voir la "
+"documentation de l'API pour plus d'informations. "
-#. Tag: programlisting
-#: session_api.xml:216
-#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:218
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
"emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to "
"specify <literal>lock</literal> or <literal>all</literal> as a cascade style "
"for the association."
msgstr ""
-"Notez que n'importe quelles instances associées ou collections contenues "
+"Notez que n'importe quelle instance associée ou collection contenue "
"<emphasis>ne sont pas</emphasis> sélectionnées par <literal>FOR UPDATE</"
"literal>, à moins que vous ne décidiez de spécifier <literal>lock</literal> "
"ou <literal>all</literal> en tant que style de cascade pour l'association."
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
"using the <literal>refresh()</literal> method. This is useful when database "
"triggers are used to initialize some of the properties of the object."
msgstr ""
-"Il est possible de re-charger un objet et toutes ses collections à n'importe "
-"quel moment, en utilisant la méthode <literal>refresh()</literal>. C'est "
-"utile lorsque des \"triggers\" de base de données sont utilisés pour "
-"initiliser certains propriétés de l'objet."
+"Il est possible de re-charger un objet et toutes ses collections à tout "
+"moment, en utilisant la méthode <literal>refresh()</literal>. C'est utile "
+"lorsque des \"triggers\" de base de données sont utilisés pour initialiser "
+"certaines propriétés de l'objet."
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
-"Une question importante apparaît généralement à ce point : combien (NdT : de "
-"données) Hibernate charge-t-il de la base de données et combient de "
-"<literal>SELECT</literal>s utilisera-t-il ? Cela dépent de la "
+"Combien de données Hibernate charge-t-il de la base de données et combien de "
+"<literal>SELECT</literal>s utilisera-t-il ? Cela dépend de la "
"<emphasis>stratégie de récupération</emphasis> et cela est expliqué dans "
-"<xref linkend=\"performance-fetching\"/>."
+"<xref linkend=\"performance-fetching\" />."
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr "Requêtage"
#. Tag: para
-#: session_api.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
"need a query. Hibernate supports an easy-to-use but powerful object oriented "
@@ -483,21 +384,19 @@
msgstr ""
"Si vous ne connaissez par les identifiants des objets que vous recherchez, "
"vous avez besoin d'une requête. Hibernate supporte un langage de requêtes "
-"orientées objet facile à utiliser mais puissant. Pour la création de "
+"orientées objet, facile à utiliser mais puissant. Pour la création de "
"requêtes par programmation, Hibernate supporte une fonction de requêtage "
-"sophistiqué Criteria et Example (QBC et QBE). Vous pouvez aussi exprimez "
+"sophistiquée Criteria et Example (QBC et QBE). Vous pouvez aussi exprimer "
"votre requête dans le SQL natif de votre base de données, avec un support "
-"optionnel d'Hibernate pour la conversion des ensembles de résultats en "
-"objets."
+"optionnel de Hibernate pour la conversion des ensembles de résultats en "
+"objets. "
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr "Exécution de requêtes"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -508,44 +407,13 @@
msgstr ""
"Les requêtes HQL et SQL natives sont représentées avec une instance de "
"<literal>org.hibernate.Query</literal>. L'interface offre des méthodes pour "
-"la liaison des paramètres, la gestion des ensembles de resultats, et pour "
+"la liaison des paramètres, la gestion des ensembles de résultats, et pour "
"l'exécution de la requête réelle. Vous obtenez toujours une <literal>Query</"
-"literal> en utilisant la <literal>Session</literal> courante :"
+"literal> en utilisant la <literal>Session</literal> courante : "
-#. Tag: programlisting
-#: session_api.xml:264
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:266
-#, fuzzy, no-c-format
-msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
"result of the query will be loaded completely into a collection in memory. "
"Entity instances retrieved by a query are in a persistent state. The "
@@ -557,20 +425,21 @@
msgstr ""
"Une requête est généralement exécutée en invoquant <literal>list()</"
"literal>, le résultat de la requête sera chargée complètement dans une "
-"collection en mémoire. Les intances d'entités recupérées par une requête "
+"collection en mémoire. Les instances d'entités récupérées par une requête "
"sont dans un état persistant. La méthode <literal>uniqueResult()</literal> "
-"offre un raccourci si vous savez que votre requête retournera seulement un "
-"seul objet."
+"offre un raccourci si vous savez que votre requête retournera un seul objet. "
+"Notez que les requêtes qui utilisent le chargement agressif de collections "
+"retournent habituellement des copies des objets racine (mais avec leurs "
+"collections initialisées). Vous pouvez simplement filtrer ces copies via un "
+"<literal>Set</literal>. "
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
msgstr "Itération de résultats"
#. Tag: para
-#: session_api.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
"the query using the <literal>iterate()</literal> method. This will usually "
@@ -582,118 +451,55 @@
"returns identifiers, and <emphasis>n</emphasis> additional selects to "
"initialize the actual instances."
msgstr ""
-"Occasionnellement, vous pourriez être capable d'obtenir de meilleures "
-"performances en exécutant la requête avec la méthode <literal>iterate()</"
-"literal>. Ce sera généralement seulement le cas si vous espérez que les "
-"intances réelles d'entité retournées par la requête soient déjà chargées "
-"dans la session ou le cache de second niveau. Si elles ne sont pas cachées, "
+"Parfois, vous serez en mesure d'obtenir de meilleures performances en "
+"exécutant la requête avec la méthode <literal>iterate()</literal>. En "
+"général, ce sera uniquement le cas si vous attendez que les instances "
+"réelles d'entité retournées par la requête, soient déjà chargées dans la "
+"session ou le cache de second niveau. Si elles ne sont pas déjà cachées, "
"<literal>iterate()</literal> sera plus lent que <literal>list()</literal> et "
"pourrait nécessiter plusieurs accès à la base de données pour une simple "
"requête, généralement <emphasis>1</emphasis> pour le select initial qui "
"retourne seulement les identifiants, et <emphasis>n</emphasis> selects "
-"supplémentaires pour initialiser les instances réelles."
+"supplémentaires pour initialiser les instances réelles. "
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr "Requêtes qui retournent des tuples"
#. Tag: para
-#: session_api.xml:298
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
"as an array:"
msgstr ""
"Les requêtes d'Hibernate retournent parfois des tuples d'objets, auquel cas "
-"chaque tuple est retourné comme un tableau :"
+"chaque tuple est retourné comme un tableau : "
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr "Résultats scalaires"
#. Tag: para
-#: session_api.xml:310
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
"clause. They can even call SQL aggregate functions. Properties or aggregates "
"are considered \"scalar\" results and not entities in persistent state."
msgstr ""
-"Des requêtes peuvent spécifier une propriété d'une classe dans la clause "
+"Certaines requêtes peuvent spécifier une propriété de classe dans la clause "
"<literal>select</literal>. Elles peuvent même appeler des fonctions "
"d'aggrégat SQL. Les propriétés ou les aggrégats sont considérés comme des "
-"résultats \"scalaires\" (et pas des entités dans un état persistant)."
+"résultats \"scalaires\" (et non des entités dans un état persistant). "
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
msgstr "Lier des paramètres"
#. Tag: para
-#: session_api.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
@@ -703,160 +509,76 @@
msgstr ""
"Des méthodes de <literal>Query</literal> sont fournies pour lier des valeurs "
"à des paramètres nommés ou à des paramètres de style JDBC <literal>?</"
-"literal>. <emphasis>Contrairement à JDBC, les numéros des paramètres "
-"d'Hibernate commencent à zéro.</emphasis> Les paramètres nommés sont des "
+"literal>. <emphasis>Contrairement à JDBC, les numéros des paramètres de "
+"Hibernate commencent à zéro.</emphasis> Les paramètres nommés sont des "
"identifiants de la forme <literal>:nom</literal> dans la chaîne de "
-"caractères de la requête. Les avantages des paramètres nommés sont :"
+"caractères de la requête. Les avantages des paramètres nommés sont : "
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
msgstr ""
-"les paramètres nommés sont insensibles à l'ordre de leur place dans la "
-"chaîne de la requête"
+"les paramètres nommés sont insensibles à l'ordre dans lequel ils "
+"apparaissent dans la chaîne de la requête"
#. Tag: para
-#: session_api.xml:339
-#, fuzzy, no-c-format
+#, no-c-format
msgid "they can occur multiple times in the same query"
-msgstr "ils peuvent apparaître plusieurs fois dans la même requête"
+msgstr "ils peuvent apparaître plusieurs fois dans la même requête "
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr "ils sont auto-documentés"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
msgstr "Pagination"
#. Tag: para
-#: session_api.xml:361
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
"number of rows you want to retrieve and/or the first row you want to "
"retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
"Si vous avez besoin de spécifier des liens sur votre ensemble de résultats "
-"(le nombre maximum de lignes que vous voulez récupérez et/ou la première "
-"ligne que vous voulez récupérer) vous devriez utiliser des méthodes de "
-"l'interface <literal>Query</literal> :"
+"(le nombre maximum de lignes et/ou la première ligne que vous voulez "
+"récupérer) vous utiliserez des méthodes de l'interface <literal>Query</"
+"literal> : "
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
"your DBMS."
msgstr ""
-"Hibernate sait comment traduite cette requête de limite en SQL natif pour "
+"Hibernate sait comment traduire cette requête de limite en SQL natif pour "
"votre SGBD."
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
msgstr "Itération \"scrollable\""
#. Tag: para
-#: session_api.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
"<literal>Query</literal> interface can be used to obtain a "
"<literal>ScrollableResults</literal> object that allows flexible navigation "
"of the query results."
msgstr ""
-"Si votre connecteur JDBC supporte les <literal>ResultSet</literal>s "
+"Si votre connecteur JDBC supporte les <literal>ResultSet</literal> s "
"\"scrollables\", l'interface <literal>Query</literal> peut être utilisée "
-"pour obtenir un objet <literal>ScrollableResults</literal>, lequel permet "
-"une navigation flexible dans les résultats de la requête."
+"pour obtenir un objet <literal>ScrollableResults</literal>, qui permettra "
+"une navigation flexible dans les résultats de la requête. "
-#. Tag: programlisting
-#: session_api.xml:386
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:388
-#, fuzzy, no-c-format
-msgid ""
"Note that an open database connection and cursor is required for this "
"functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult"
"()</literal> if you need offline pagination functionality."
@@ -864,70 +586,45 @@
"Notez qu'une connexion ouverte (et un curseur) est requise pour cette "
"fonctionnalité, utilisez <literal>setMaxResult()</literal>/"
"<literal>setFirstResult()</literal> si vous avez besoin d'une fonctionnalité "
-"de pagination hors ligne."
+"de pagination hors ligne. "
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
msgstr "Externaliser des requêtes nommées"
#. Tag: para
-#: session_api.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
"<literal>CDATA</literal> section if your query contains characters that "
"could be interpreted as markup."
msgstr ""
"Vous pouvez aussi définir des requêtes nommées dans le document de mapping. "
-"(Souvenez-vous d'utiliser une section <literal>CDATA</literal> si votre "
+"Souvenez-vous d'utiliser une section <literal>CDATA</literal> si votre "
"requête contient des caractères qui pourraient être interprétés comme des "
-"éléments XML.)"
+"éléments XML."
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
-msgstr "La liaison de paramètres et l'exécution sont fait par programmation :"
-
-#. Tag: programlisting
-#: session_api.xml:411
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
msgstr ""
+"La liaison de paramètres et l'exécution sont effectués par programmation :"
#. Tag: para
-#: session_api.xml:413
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The actual program code is independent of the query language that is used. "
"You can also define native SQL queries in metadata, or migrate existing "
"queries to Hibernate by placing them in mapping files."
msgstr ""
"Notez que le code réel du programme est indépendant du langage de requête "
-"qui est utilisé, vous pouvez aussi définir des requêtes SQL nativez dans les "
-"méta-données, ou migrer des requêtes existantes vers Hibernate en les "
-"plaçant dans les fichiers de mapping."
+"utilisé, vous pouvez aussi définir des requêtes SQL natives dans les méta-"
+"données, ou migrer des requêtes existantes vers Hibernate en les plaçant "
+"dans les fichiers de mapping. "
#. Tag: para
-#: session_api.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
"mapping></literal> element requires a global unique name for the query, "
@@ -935,22 +632,20 @@
"is made unique automatically by prepending the fully qualified name of the "
"class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
-"UNTRANSLATED! Also note that a query declaration inside a <literal><"
-"hibernate-mapping></literal> element requires a global unique name for "
-"the query, while a query declaration inside a <literal><class></"
-"literal> element is made unique automatically by prepending the fully "
-"qualified name of the class, for example <literal>eg.Cat."
-"ByNameAndMaximumWeight</literal>."
+"Notez aussi que la déclaration d'une requête dans un élément <literal><"
+"hibernate-mapping></literal> nécessite un nom globalement unique pour la "
+"requête, alors que la déclaration d'une requête dans un élément <literal><"
+"class></literal> est rendue unique de manière automatique par la mise en "
+"préfixe du nom entièrement qualifié de la classe, par exemple <literal>eg."
+"Cat.ByNameAndMaximumWeight</literal>. "
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
msgstr "Filtrer des collections"
#. Tag: para
-#: session_api.xml:433
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
"be applied to a persistent collection or array. The query string can refer "
@@ -958,37 +653,23 @@
msgstr ""
"Un <emphasis>filtre</emphasis> de collection est un type spécial de requête "
"qui peut être appliqué à une collection persistante ou à un tableau. La "
-"chaîne de requête peut se référer à <literal>this</literal>, correspondant à "
-"l'élément de la collection courant."
+"chaîne de requêtes peut se référer à <literal>this</literal>, correspondant "
+"à l'élément de la collection courant. "
-#. Tag: programlisting
-#: session_api.xml:439
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:441
-#, fuzzy, no-c-format
-msgid ""
"The returned collection is considered a bag that is a copy of the given "
"collection. The original collection is not modified. This is contrary to the "
"implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
"La collection retournée est considérée comme un bag, et c'est une copie de "
-"la collection donnée. La collection originale n'est pas modifiée (c'est "
+"la collection donnée. La collection originale n'est pas modifiée. C'est "
"contraire à l'implication du nom \"filtre\"; mais cohérent avec le "
-"comportement attendu)."
+"comportement attendu."
#. Tag: para
-#: session_api.xml:447
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
"although they can have one if required. Filters are not limited to returning "
@@ -996,88 +677,52 @@
msgstr ""
"Observez que les filtres ne nécessitent pas une clause <literal>from</"
"literal> (bien qu'ils puissent en avoir une si besoin est). Les filtres ne "
-"sont pas limités à retourner des éléments de la collection eux-mêmes."
+"sont pas limités à retourner des éléments de la collection eux-mêmes. "
-#. Tag: programlisting
-#: session_api.xml:452
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:454
-#, fuzzy, no-c-format
-msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
"large collection:"
msgstr ""
"Même une requête de filtre vide est utile, par exemple pour charger un sous-"
-"ensemble d'éléments dans une énorme collection :"
+"ensemble d'éléments dans une énorme collection : "
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
-msgstr "Requêtes Criteria"
+msgstr "Requêtes par critères"
#. Tag: para
-#: session_api.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
"dynamically using an object-oriented API, rather than building query "
"strings. Hibernate provides an intuitive <literal>Criteria</literal> query "
"API for these cases:"
msgstr ""
-"HQL est extrêmement puissant mais certains développeurs préfèrent construire "
-"des requêtes dynamiquement, en utilisant l'API orientée objet, plutôt que "
-"construire des chaînes de requêtes. Hibernate fournit une API intuitive de "
-"requête <literal>Criteria</literal> pour ces cas :"
+"HQL est extrêmement puissant, mais certains développeurs préfèrent "
+"construire des requêtes dynamiquement, en utilisant l'API orientée objet, "
+"plutôt que de construire des chaînes de requêtes. Hibernate fournit une API "
+"intuitive de requête <literal>Criteria</literal> pour ces cas :"
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
-"Les APIs <literal>Criteria</literal> et <literal>Example</literal> associé "
-"sont traitées plus en détail dans <xref linkend=\"querycriteria\"/>."
+"L'API <literal>Criteria</literal> et l'API<literal>Example</literal> associé "
+"sont traités plus en détail dans <xref linkend=\"querycriteria\" />."
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
msgstr "Requêtes en SQL natif"
#. Tag: para
-#: session_api.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
"and let Hibernate manage the mapping from result sets to objects. You can at "
@@ -1086,57 +731,30 @@
"API, you must enclose SQL aliases in braces:"
msgstr ""
"Vous pouvez exprimer une requête en SQL, en utilisant <literal>createSQLQuery"
-"()</literal> et laisser Hibernate s'occuper du mapping des résultats vers "
-"des objets. Notez que vous pouvez n'importe quand appeler <literal>session."
+"()</literal> et laisser Hibernate s'occuper du mappage des résultats vers "
+"des objets. Notez que vous pouvez à tout moment, appeler <literal>session."
"connection()</literal> et utiliser directement la <literal>Connection</"
"literal> JDBC. Si vous choisissez d'utiliser l'API Hibernate, vous devez "
-"mettre les alias SQL entre accolades :"
+"mettre les alias SQL entre accolades : "
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
"Les requêtes SQL peuvent contenir des paramètres nommés et positionnels, "
-"comme des requêtes Hibernate. Plus d'informations à propos des requêtes SQL "
-"natives dans Hibernate peuvent être trouvées dans <xref linkend=\"querysql\"/"
-">."
+"comme les requêtes Hibernate. Vous trouverez plus d'informations à propos "
+"des requêtes SQL natives dans Hibernate dans <xref linkend=\"querysql\" />."
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
msgstr "Modifier des objets persistants"
#. Tag: para
-#: session_api.xml:509
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
"loaded, saved, created or queried by the <literal>Session</literal>) can be "
@@ -1150,43 +768,31 @@
msgstr ""
"Les <emphasis>instances persistantes transactionnelles</emphasis> (c'est-Ã -"
"dire des objets chargés, sauvegardés, créés ou requêtés par la "
-"<literal>Session</literal>) peuvent être manipulées par l'application et "
-"n'importe quel changement vers l'état persistant sera persisté lorsque la "
-"<literal>Session</literal> est <emphasis>\"flushée\"</emphasis> (traité plus "
-"tard dans ce chapitre). Il n'y a pas besoin d'appeler une méthode "
-"particulière (comme <literal>update()</literal>, qui a un but différent) "
-"pour rendre vos modifications persistantes. Donc la manière la plus directe "
-"de mettre à jour l'état d'un objet est de le charger avec <literal>load()</"
-"literal>, et puis le manipuler directement, tant que la <literal>Session</"
-"literal> est ouverte :"
+"<literal>Session</literal>) peuvent être manipulés par l'application et tout "
+"changement vers l'état persistant sera persisté lorsque la <literal>Session</"
+"literal> est <emphasis>\"flushée\"</emphasis> (traité plus tard dans ce "
+"chapitre). Il n'est pas nécessaire d'appeler une méthode particulière (comme "
+"<literal>update()</literal>, qui a un but différent) pour rendre vos "
+"modifications persistantes. Donc la manière la plus directe de mettre à jour "
+"l'état d'un objet est de le charger avec <literal>load()</literal>, et puis "
+"de le manipuler directement, tant que la <literal>Session</literal> est "
+"ouverte : "
-#. Tag: programlisting
-#: session_api.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:522
-#, fuzzy, no-c-format
-msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
"session both an SQL <literal>SELECT</literal> to load an object and an SQL "
"<literal>UPDATE</literal> to persist its updated state. Hibernate offers an "
"alternate approach by using detached instances."
msgstr ""
"Parfois ce modèle de programmation est inefficace puisqu'il nécessiterait un "
-"<literal>SELECT</literal> SQL (pour charger l'objet) et un <literal>UPDATE</"
-"literal> SQL (pour persister son état mis à jour) dans la même session. "
-"Aussi Hibernate offre une autre approche, en utilisant des instances "
-"détachées."
+"SQL <literal>SELECT</literal> (pour charger l'objet) et un SQL "
+"<literal>UPDATE</literal> (pour persister son état mis à jour) dans la même "
+"session. Ainsi Hibernate offre une autre approche, en utilisant des "
+"instances détachées. "
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1198,27 +804,27 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
"Notez que Hibernate n'offre par sa propre API pour l'exécution directe "
-"d'expressions <placeholder-1/> ou <placeholder-2/>. Hibernate est un service "
-"de <placeholder-3/>, vous n'avez pas à penser aux <placeholder-4/> pour "
-"l'utiliser. JDBC est une API parfaite pour exécuter des expressions SQL, "
-"vous pouvez obtenir une <placeholder-5/> JDBC n'importe quand en appelant "
-"<placeholder-6/>. En outre, la notion d'opérations de masse entre en conflit "
-"avec le mapping objet/relationnel pour les applications orientées processus "
-"de transactions en ligne. Les futures versions d'Hibernate peuvent cependant "
-"fournir des fonctions d'opération de masse. Voir <xref linkend=\"batch\"/> "
-"pour les astuces possibles d'opérations groupées."
+"d'expressions <literal>UPDATE</literal> ou <literal>DELETE</literal>. "
+"Hibernate est un service de <emphasis>gestion d'état</emphasis>, vous n'avez "
+"pas à penser aux <emphasis>expressions</emphasis> pour l'utiliser. JDBC est "
+"une API parfaite pour exécuter des expressions SQL, vous pouvez obtenir une "
+"<literal>Connection</literal> JDBC Ã tout moment en appelant "
+"<literal>session.connection()</literal>. En outre, la notion d'opérations de "
+"masse entre en conflit avec le mapping objet/relationnel pour les "
+"applications orientées processus de transactions en ligne. Les futures "
+"versions de Hibernate pourront cependant fournir des fonctions particulières "
+"d'opération de masse. Voir <xref linkend=\"batch\" /> pour des astuces "
+"possibles d'opérations groupées. "
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
msgstr "Modifier des objets détachés"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1228,43 +834,24 @@
"unit of work."
msgstr ""
"Beaucoup d'applications ont besoin de récupérer un objet dans une "
-"transaction, l'envoyer à la couche interfacée avec l'utilisateur pour les "
-"manipulations, puis sauvegarder les changements dans une nouvelle "
+"transaction, de l'envoyer à la couche interfacée avec l'utilisateur pour les "
+"manipulations, et de sauvegarder les changements dans une nouvelle "
"transaction. Les applications qui utilisent cette approche dans un "
"environnement à haute concurrence utilisent généralement des données "
-"versionnées pour assurer l'isolation pour les \"longues\" unités de travail."
+"versionnées pour assurer l'isolation des \"longues\" unités de travail."
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
"instances using the <literal>Session.update()</literal> or <literal>Session."
"merge()</literal> methods:"
msgstr ""
-"Hibernate supporte ce modèle en permettant pour le réattachement d'instances "
-"détachées l'utilisation des méthodes <literal>Session.update()</literal> ou "
+"Hibernate supporte ce modèle en permettant pour le rattachement d'instances "
+"détachées en utilisant des méthodes <literal>Session.update()</literal> ou "
"<literal>Session.merge()</literal> :"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1273,11 +860,10 @@
msgstr ""
"Si le <literal>Cat</literal> avec l'identifiant <literal>catId</literal> "
"avait déjà été chargé par <literal>secondSession</literal> lorsque "
-"l'application a essayé de le réattacher, une exception aurait été levée."
+"l'application a essayé de le rattacher, une exception aurait été levée."
#. Tag: para
-#: session_api.xml:569
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
"contain an already persistent instance with the same identifier. Use "
@@ -1287,89 +873,70 @@
"fresh session, ensuring that the reattachment of your detached instances is "
"the first operation that is executed."
msgstr ""
-"Utilisez <literal>update()</literal> si vous êtes sure que la session ne "
+"Utilisez <literal>update()</literal> si vous êtes sûr que la session ne "
"contient pas déjà une instance persistante avec le même identifiant, et "
"<literal>merge()</literal> si vous voulez fusionner vos modifications "
-"n'importe quand sans considérer l'état de la session. En d'autres mots, "
+"n'importe quand sans considérer l'état de la session. En d'autres termes, "
"<literal>update()</literal> est généralement la première méthode que vous "
-"devriez appeler dans une session fraîche, pour s'assurer que le "
-"réattachement de vos instances détachées est la première opération qui est "
-"exécutée."
+"devez appeler dans une session fraîche, pour vous assurer que le "
+"rattachement de vos instances détachées est la première opération qui est "
+"exécutée. "
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
"L'application devrait individuellement <literal>update()</literal> (NdT : "
"mettre à jour) les instances détachées accessibles depuis l'instance "
"détachée donnée si et <emphasis>seulement</emphasis> si elle veut que leur "
"état soit aussi mis à jour. Ceci peut être automatisé bien sûr, en utilisant "
-"la <emphasis>persistance transitive</emphasis>, voir <xref linkend="
-"\"objectstate-transitive\"/>."
+"la <emphasis>persistance transitive</emphasis>. Voir <xref linkend="
+"\"objectstate-transitive\" /> pour plus d'informations."
#. Tag: para
-#: session_api.xml:585
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
"reassociate an object with a new session. However, the detached instance has "
"to be unmodified."
msgstr ""
-"La méthode <literal>lock()</literal> permet aussi à une application de "
-"réassocier un objet avec une nouvelle session. Pourtant, l'instance détachée "
-"doit être non modifiée !"
+"La méthode <literal>lock()</literal> permet aussi à une application de ré-"
+"associer un objet avec une nouvelle session. Cependant, l'instance détachée "
+"doit être non modifiée."
-#. Tag: programlisting
-#: session_api.xml:590
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:592
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal>lock()</literal> can be used with various "
"<literal>LockMode</literal>s. See the API documentation and the chapter on "
"transaction handling for more information. Reattachment is not the only "
"usecase for <literal>lock()</literal>."
msgstr ""
"Notez que <literal>lock()</literal> peut être utilisé avec différents "
-"<literal>LockMode</literal>s, voir la documentation de l'API documentation "
-"et le chapitre sur la gestion des transactions pour plus d'informations. Le "
-"réattachement n'est pas le seul cas d'utilisation pour <literal>lock()</"
-"literal>."
+"<literal>LockMode</literal> s, voir la documentation de l'API et le chapitre "
+"sur la gestion des transactions pour plus d'informations. Le rattachement "
+"n'est pas le seul cas d'utilisation pour <literal>lock()</literal>. "
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
"D'autres modèles pour de longues unités de travail sont traités dans <xref "
-"linkend=\"transactions-optimistic\"/>."
+"linkend=\"transactions-optimistic\" />."
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
msgstr "Détection automatique d'un état"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1379,30 +946,11 @@
msgstr ""
"Les utilisateurs d'Hibernate ont demandé une méthode dont l'intention "
"générale serait soit de sauvegarder une instance éphémère en générant un "
-"nouvel identifiant, soit mettre à jour/réattacher les instances détachées "
+"nouvel identifiant, soit mettre à jour/rattacher les instances détachées "
"associées à l'identifiant courant. La méthode <literal>saveOrUpdate()</"
"literal> implémente cette fonctionnalité."
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1420,7 +968,6 @@
"applications n'utiliseront jamais ces méthodes."
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1430,53 +977,45 @@
"literal> sont utilisées dans le scénario suivant :"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "l'application charge un objet dans la première session"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "l'objet est passé à la couche utilisateur"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
msgstr "certaines modifications sont effectuées sur l'objet"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "l'objet est retourné à la couche logique métier"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
"literal> in a second session"
msgstr ""
"l'application persiste ces modifications en appelant <literal>update()</"
-"literal> dans une seconde sessin"
+"literal> dans une seconde session"
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal> s'utilise dans le cas suivant :"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr "si l'objet est déjà persistant dans cette session, ne rien faire"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1486,7 +1025,6 @@
"exception"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -1494,7 +1032,6 @@
"literal>"
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1504,8 +1041,7 @@
"instancié, appeler <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
"<literal><timestamp></literal>, and the version property value is the "
@@ -1515,22 +1051,19 @@
"si l'objet est versionné (par <literal><version></literal> ou "
"<literal><timestamp></literal>), et la valeur de la propriété de "
"version est la même valeur que celle assignée à un objet nouvellement "
-"instancié, appeler <literal>save()</literal>"
+"instancié, appeler <literal>save()</literal> "
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr "sinon mettre à jour l'objet avec <literal>update()</literal>"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "et <literal>merge()</literal> est très différent :"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1538,11 +1071,10 @@
"persistent instance"
msgstr ""
"s'il y a une instance persistante avec le même identifiant couramment "
-"associée à la session, copier l'état de l'objet donné dans l'instance "
+"associé à la session, copier l'état de l'objet donné dans l'instance "
"persistante"
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1553,13 +1085,11 @@
"persistante"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr "l'instance persistante est retournée"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1568,14 +1098,12 @@
"l'instance donnée ne devient pas associée à la session, elle reste détachée"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
msgstr "Suppression d'objets persistants"
#. Tag: para
-#: session_api.xml:737
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
"database. Your application, however, can still hold a reference to a deleted "
@@ -1584,18 +1112,11 @@
msgstr ""
"<literal>Session.delete()</literal> supprimera l'état d'un objet de la base "
"de données. Bien sûr, votre application pourrait encore conserver une "
-"référence vers un objet effacé. Il est mieux de penser à <literal>delete()</"
-"literal> comme rendant une instance persistante éphémère."
+"référence vers un objet effacé. Il est préférable de penser à <literal>delete"
+"()</literal> comme rendant une instance persistante éphémère. "
-#. Tag: programlisting
-#: session_api.xml:744
-#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:746
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
"violations. It is still possible to violate a <literal>NOT NULL</literal> "
@@ -1605,18 +1126,16 @@
"Vous pouvez effacer des objets dans l'ordre que vous voulez, sans risque de "
"violations de contrainte de clef étrangère. Il est encore possible de violer "
"une contrainte <literal>NOT NULL</literal> sur une colonne de clef étrangère "
-"en effaçant des objets dans le mauvais ordre, par exemple si vous effacer le "
-"parent, mais oubliez d'effacer les enfants."
+"en effaçant des objets dans le mauvais ordre, par exemple si vous effacez le "
+"parent, mais oubliez d'effacer les enfants. "
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "Réplication d'objets entre deux entrepôts de données"
#. Tag: para
-#: session_api.xml:759
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
"and make them persistent in a different datastore, without regenerating "
@@ -1624,82 +1143,57 @@
msgstr ""
"Il est occasionnellement utile de pouvoir prendre un graphe d'instances "
"persistantes et de les rendre persistantes dans un entrepôt différent, sans "
-"regénérer les valeurs des identifiants."
+"regénérer les valeurs des identifiants. "
-#. Tag: programlisting
-#: session_api.xml:765
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:767
-#, fuzzy, no-c-format
-msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
"literal> will deal with conflicts with existing rows in the database:"
msgstr ""
"Le <literal>ReplicationMode</literal> détermine comment <literal>replicate()"
-"</literal> traitera les conflits avec les lignes existantes dans la base de "
-"données."
+"</literal> traitera les conflits avec des lignes existantes dans la base de "
+"données. "
#. Tag: para
-#: session_api.xml:774
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
"an existing database row with the same identifier"
msgstr ""
"<literal>ReplicationMode.IGNORE</literal> - ignore l'objet s'il y a une "
-"ligne existante dans la base de données avec le même identifiant"
+"ligne existante dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
"database row with the same identifier"
msgstr ""
"<literal>ReplicationMode.OVERWRITE</literal> - écrase n'importe quelle ligne "
-"existante dans la base de données avec le même identifiant"
+"existante dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
"is an existing database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.EXCEPTION</literal> - lève une exception s'il y une "
-"ligne dans la base de données avec le même identifiant"
+"<literal>ReplicationMode.EXCEPTION</literal> - lève une exception s'il y a "
+"une ligne dans la base de données avec le même identifiant "
#. Tag: para
-#: session_api.xml:792
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
"version number is earlier than the version number of the object, or ignore "
"the object otherwise"
msgstr ""
"<literal>ReplicationMode.LATEST_VERSION</literal> - écrase la ligne si son "
-"numéro de version est plus petit que le numéro de version de l'objet, ou "
-"ignore l'objet sinon"
+"numéro de version est plus petit que le numéro de version de l'objet, sinon "
+"ignore l'objet "
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1714,14 +1208,12 @@
"ACID, et plus."
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
msgstr "Flush de la session"
#. Tag: para
-#: session_api.xml:811
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
"needed to synchronize the JDBC connection's state with the state of objects "
@@ -1729,93 +1221,81 @@
"default at the following points:"
msgstr ""
"De temps en temps la <literal>Session</literal> exécutera les expressions "
-"SQL requises pour syncrhoniser l'état de la connexion JDBC avec l'état des "
-"objets retenus en mémoire. Ce processus, <emphasis>flush</emphasis>, arrive "
-"par défaut aux points suivants :"
+"SQL requises pour synchroniser l'état de la connexion JDBC avec l'état des "
+"objets retenus en mémoire. Ce processus, <emphasis>flush</emphasis>, "
+"survient par défaut aux points suivants : "
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
-msgstr "lors de certaines exécutions de requête"
+msgstr "avant certaines exécutions de requête"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr ""
"lors d'un appel à <literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "lors d'un appel à <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:836
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The SQL statements are issued in the following order:"
-msgstr "Les expressions SQL sont effectuées dans l'ordre suivant :"
+msgstr "Les expressions SQL sont effectuées dans l'ordre suivant : "
#. Tag: para
-#: session_api.xml:842
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
"using <literal>Session.save()</literal>"
msgstr ""
"insertion des entités, dans le même ordre que celui des objets "
-"correspondants sauvegardés par l'appel à <literal>Session.save()</literal>"
+"correspondants sauvegardés par l'appel à <literal>Session.save()</literal> "
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
-msgstr "mise à jours des entités"
+msgstr "mise à jour des entités"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr "suppression des collections"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "suppression, mise à jour et insertion des éléments des collections"
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr "insertion des collections"
#. Tag: para
-#: session_api.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
"deleted using <literal>Session.delete()</literal>"
msgstr ""
"suppression des entités, dans le même ordre que celui des objets "
-"correspondants qui ont été supprimés par l'appel à <literal>Session.delete()"
-"</literal>"
+"correspondants qui ont été supprimés par l'appel de <literal>Session.delete()"
+"</literal> "
#. Tag: para
-#: session_api.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
"are inserted when they are saved."
msgstr ""
-"(Une exception est que des objets utilisant la génération <literal>native</"
-"literal> d'identifiants sont insérés lorsqu'ils sont sauvegardés.)"
+"Une exception est que des objets utilisant la génération <literal>native</"
+"literal> d'identifiants sont insérés lorsqu'ils sont sauvegardés."
#. Tag: para
-#: session_api.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
@@ -1824,14 +1304,13 @@
"(..)</literal> will never return stale or incorrect data."
msgstr ""
"Excepté lorsque vous appelez <literal>flush()</literal> explicitement, il "
-"n'y absolument aucune garantie à propos de <emphasis>quand</emphasis> la "
+"n'y a absolument aucune garantie à propos de <emphasis>quand</emphasis> la "
"<literal>Session</literal> exécute les appels JDBC, seulement sur "
"l'<emphasis>ordre</emphasis> dans lequel ils sont exécutés. Cependant, "
"Hibernate garantit que <literal>Query.list(..)</literal> ne retournera "
-"jamais de données périmées, ni des données fausses."
+"jamais de données périmées, ni des données fausses. "
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1841,73 +1320,49 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
"Il est possible de changer le comportement par défaut, donc que le flush se "
"produise moins fréquemment. La classe <literal>FlushMode</literal> définit "
"trois modes différents : flush seulement lors du commit (et seulement quand "
-"l'API <literal>Transaction</literal> d'Hibernate est utilisée), flush "
-"automatiquement en utilisant la procédure expliquée, ou jamais de flush à "
-"moins que <literal>flush()</literal> soit appelée explicitement. Le dernier "
-"mode est utile pour l'exécution de longues unités de travail, où une "
+"l'API <literal>Transaction</literal> de Hibernate est utilisé), flush "
+"automatiquement en utilisant la procédure courante expliquée, ou jamais de "
+"flush à moins que <literal>flush()</literal> soit appelé explicitement. Le "
+"dernier mode est utile pour l'exécution de longues unités de travail, où une "
"<literal>Session</literal> est gardée ouverte et déconnectée pour un long "
-"moment (voir <xref linkend=\"transactions-optimistic-longsession\"/>)."
+"moment (voir <xref linkend=\"transactions-optimistic-longsession\" />)."
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
"Durant le flush, une exception peut se produire (par exemple, si une "
-"opération de la DML viole une contrainte). Puisque les exceptions de gestion "
-"impliquent une certaine compréhension du comportement transactionnel "
-"d'Hibernate, nous le traitons dans <xref linkend=\"transactions\"/>."
+"opération de la DML viole une contrainte). Les exceptions de gestion "
+"impliquent une certaine compréhension du comportement transactionnel de "
+"Hibernate, le sujet sera donc abordé dans <xref linkend=\"transactions\" />."
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
msgstr "Persistance transitive"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
"especially if you deal with a graph of associated objects. A common case is "
"a parent/child relationship. Consider the following example:"
msgstr ""
-"Il est assez pénible de sauvegarder, supprimer, ou réattacher des objets un "
-"par un, surtout si vous traitez un graphe d'objets associés. Un cas habituel "
+"Il est assez pénible de sauvegarder, supprimer, ou rattacher des objets un "
+"par un, surtout si vous traitez un graphe d'objets associés. Un cas courant "
"est une relation parent/enfant. Considérez l'exemple suivant :"
#. Tag: para
-#: session_api.xml:917
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
"collection of addresses or strings), their life cycle would depend on the "
@@ -1920,18 +1375,17 @@
msgstr ""
"Si les enfants de la relation parent/enfant étaient des types de valeur (par "
"exemple, une collection d'adresses ou de chaînes de caractères), leur cycle "
-"de vie dépendraient du parent et aucune action ne serait requise pour "
+"de vie dépendrait du parent et aucune action ne serait requise pour "
"\"cascader\" facilement les changements d'état. Si le parent est sauvegardé, "
"les objets enfants de type de valeur sont sauvegardés également, si le "
"parent est supprimé, les enfants sont supprimés, etc. Ceci fonctionne même "
"pour des opérations telles que la suppression d'un enfant de la collection ; "
-"Hibernate détectera cela et, puisque les objets de type de valeur ne peuvent "
-"pas avoir des références partagées, supprimera l'enfant de la base de "
-"données."
+"Hibernate le détectera et étant donné que les objets de type de valeur ne "
+"peuvent pas avoir de références partagées, il supprimera l'enfant de la base "
+"de données. "
#. Tag: para
-#: session_api.xml:928
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
"not value-types (e.g. categories and items, or parent and child cats). "
@@ -1941,17 +1395,16 @@
"entities. Hibernate does not implement <emphasis>persistence by "
"reachability</emphasis> by default."
msgstr ""
-"Maintenant considérez le même scénario avec un parent et dont les objets "
+"Maintenant considérez le même scénario avec un parent dont les objets "
"enfants sont des entités, et non des types de valeur (par exemple, des "
"catégories et des objets, ou un parent et des chatons). Les entités ont leur "
"propre cycle de vie, supportent les références partagées (donc supprimer une "
"entité de la collection ne signifie pas qu'elle peut être supprimée), et il "
"n'y a par défaut pas de cascade d'état d'une entité vers n'importe quelle "
"entité associée. Hibernate n'implémente pas la <emphasis>persistance par "
-"accessibilité</emphasis> par défaut."
+"accessibilité</emphasis> par défaut. "
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -1962,37 +1415,22 @@
"operation to be cascaded along an association, you must indicate that in the "
"mapping document. For example:"
msgstr ""
-"Pour chaque opération basique de la session d'Hibernate - incluant "
+"Pour chaque opération basique de la session Hibernate - incluant "
"<literal>persist(), merge(), saveOrUpdate(), delete(), lock(), refresh(), "
"evict(), replicate()</literal> - il y a un style de cascade correspondant. "
"Respectivement, les styles de cascade s'appellent <literal>persist, merge, "
"save-update, delete, lock, refresh, evict, replicate</literal>. Si vous "
"voulez qu'une opération soit cascadée le long d'une association, vous devez "
-"l'indiquer dans le document de mapping. Par exemple :"
+"l'indiquer dans le document de mappage. Par exemple :"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "Les styles de cascade peuvent être combinés :"
-#. Tag: programlisting
-#: session_api.xml:952
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:954
-#, fuzzy, no-c-format
-msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
"<emphasis>all</emphasis> operations should be cascaded along the "
"association. The default <literal>cascade=\"none\"</literal> specifies that "
@@ -2001,10 +1439,9 @@
"Vous pouvez même utiliser <literal>cascade=\"all\"</literal> pour spécifier "
"que <emphasis>toutes</emphasis> les opérations devraient être cascadées le "
"long de l'association. La valeur par défaut <literal>cascade=\"none\"</"
-"literal> spécifie qu'aucune opération ne sera cascadée."
+"literal> spécifie qu'aucune opération ne sera cascadée. "
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -2012,20 +1449,18 @@
"operation should be applied to any child object that is removed from the "
"association."
msgstr ""
-"Une style de cascade spécial, <literal>delete-orphan</literal>, s'applique "
-"seulement aux associations un-vers-plusieurs, et indique que l'opération "
-"<literal>delete()</literal> devrait être appliquée à n'importe quel enfant "
-"qui est supprimé de l'association."
+"Un style de cascade spécial, <literal>delete-orphan</literal>, s'applique "
+"seulement aux associations un-à -plusieurs, et indique que l'opération "
+"<literal>delete()</literal> devrait être appliquée à tout enfant supprimé de "
+"l'association."
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
msgstr "Recommandations :"
#. Tag: para
-#: session_api.xml:973
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
"one></literal> or <literal><many-to-many></literal> association. "
@@ -2036,10 +1471,9 @@
"<literal><many-to-one></literal> ou <literal><many-to-many></"
"literal>. Les cascades sont souvent utiles pour des associations "
"<literal><one-to-one></literal> et <literal><one-to-many></"
-"literal>."
+"literal>. "
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2047,11 +1481,10 @@
"<literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
"Si la durée de vie de l'objet enfant est liée à la durée de vie de l'objet "
-"parent, faites en un <emphasis>objet du cycle de vie</emphasis> en "
-"spécifiant <literal>cascade=\"all,delete-orphan\"</literal>."
+"parent, faites-en un <emphasis>objet du cycle de vie</emphasis> en "
+"spécifiant <literal>cascade=\"all,delete-orphan\"</literal>. "
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2063,10 +1496,9 @@
"pensez que vous travaillerez souvent avec le parent et les enfants ensemble "
"dans la même transaction, et que vous voulez vous éviter quelques frappes, "
"considérez l'utilisation de <literal>cascade=\"persist,merge,save-update\"</"
-"literal>."
+"literal>. "
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2081,8 +1513,7 @@
"jour/suppression de l'enfant ou des enfants."
#. Tag: para
-#: session_api.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
"result in save/update of the child. This metaphor is incomplete, however. A "
@@ -2092,16 +1523,15 @@
"literal>. The precise semantics of cascading operations for a parent/child "
"relationship are as follows:"
msgstr ""
-"En outre, une simple référence à un enfant d'un parent persistant aura pour "
-"conséquence la sauvegarde/mise à jour de l'enfant. Cette métaphore est "
+"Par ailleurs, une simple référence à un enfant d'un parent persistant aura "
+"pour conséquence la sauvegarde/mise à jour de l'enfant. Cette métaphore est "
"cependant incomplète. Un enfant qui devient non référencé par son parent "
-"<emphasis>n'est pas</emphasis> automatiquement supprimée, excepté dans le "
-"cas d'une association <literal><one-to-many></literal> mappée avec "
+"<emphasis>n'est pas</emphasis> automatiquement supprimé, sauf dans le cas "
+"d'une association <literal><one-to-many></literal> mappée avec "
"<literal>cascade=\"delete-orphan\"</literal>. La sémantique précise des "
-"opérations de cascade pour une relation parent/enfant est la suivante :"
+"opérations de cascade pour une relation parent/enfant est la suivante : "
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2111,7 +1541,6 @@
"passés à <literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2121,7 +1550,6 @@
"passés à <literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2133,7 +1561,6 @@
"Ã <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2143,7 +1570,6 @@
"il est passé à <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2153,7 +1579,6 @@
"literal>"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2164,11 +1589,10 @@
"Si un enfant est déréférencé par un parent persistant, <emphasis>rien de "
"spécial n'arrive</emphasis> - l'application devrait explicitement supprimer "
"l'enfant si nécessaire - à moins que <literal>cascade=\"delete-orphan\"</"
-"literal> soit paramétré, au quel cas l'enfant \"orphelin\" est supprimé."
+"literal> soit paramétré, auquel cas l'enfant \"orphelin\" est supprimé."
#. Tag: para
-#: session_api.xml:1051
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
@@ -2179,21 +1603,19 @@
msgstr ""
"Enfin, la cascade des opérations peut être effectuée sur un graphe donné "
"lors de l'<emphasis>appel de l'opération</emphasis> or lors du "
-"<emphasis>flush</emphasis> suivant. Toutes les opérations, lorsque "
-"cascadées, le sont sur toutes les entités associées atteignables lorsque "
-"l'opétation est exécutée. Cependant <literal>save-upate</literal> et "
-"<literal>delete-orphan</literal> sont cascadées à toutes les entités "
-"associées atteignables lors du flush de la <literal>Session</literal>."
+"<emphasis>flush</emphasis> suivant. Toutes les opérations, lorsqu'elles sont "
+"cascadées, le sont sur toutes les entités associées accessibles lorsque "
+"l'opération est exécutée. Cependant <literal>save-upate</literal> et "
+"<literal>delete-orphan</literal> sont cascadés à toutes les entités "
+"associées accessibles lors du flush de la <literal>Session</literal>. "
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr "Utilisation des méta-données"
#. Tag: para
-#: session_api.xml:1065
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
"This model can be useful to the application itself. For example, the "
@@ -2204,16 +1626,14 @@
msgstr ""
"Hibernate requiert un modèle de méta-niveau très riche de toutes les entités "
"et types valués. De temps en temps, ce modèle est très utile à l'application "
-"elle même. Par exemple, l'application pourrait utiliser les méta-données "
-"d'Hibernate pour implémenter un algorithme de copie en profondeur "
-"\"intelligent\" qui comprendrait quels objets devraient copiés (par exemple "
-"les types de valeur mutables) et lesquels ne devraient pas l'être (par "
-"exemple les types de valeurs immutables et, possiblement, les entités "
-"associées)."
+"elle même. Par exemple, l'application pourrait utiliser les méta-données de "
+"Hibernate pour implémenter un algorithme de copie en profondeur \"intelligent"
+"\" qui comprendrait quels objets devraient être copiés (par exemple les "
+"types de valeur mutables) et lesquels ne devraient pas l'être (par exemple "
+"les types de valeurs immutables et, éventuellement, les entités associées). "
#. Tag: para
-#: session_api.xml:1072
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
"<literal>CollectionMetadata</literal> interfaces and the <literal>Type</"
@@ -2223,43 +1643,4 @@
"Hibernate expose les méta-données via les interfaces <literal>ClassMetadata</"
"literal> et <literal>CollectionMetadata</literal> et la hiérarchie "
"<literal>Type</literal>. Les instances des interfaces de méta-données "
-"peuvent être obtenues à partir de la <literal>SessionFactory</literal>."
-
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#~ msgid "UPDATE"
-#~ msgstr "UPDATE"
-
-#~ msgid "DELETE"
-#~ msgstr "DELETE"
-
-#~ msgid "state management"
-#~ msgstr "gestion d'état"
-
-#~ msgid "statements"
-#~ msgstr "expressions"
-
-#~ msgid "Connection"
-#~ msgstr "Connection"
-
-#~ msgid "session.connection()"
-#~ msgstr "session.connection()"
+"peuvent être obtenues à partir de la <literal>SessionFactory</literal>. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,35 +1,38 @@
+# translation of toolset_guide.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: toolset_guide\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-05 10:05+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
-msgstr "Guide des outils"
+msgstr "Guide de la boîte à outils"
#. Tag: para
-#: toolset_guide.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
"plugins, commandline tools, and Ant tasks."
msgstr ""
-"Des outils en ligne de commande, des plugins Eclipse ainsu que des tâches "
-"Ant permettent de gérer de cycles de développement complet de projets "
-"utilisant Hibernate."
+"Des outils en ligne de commande, des plugins Eclipse ainsi que des tâches "
+"Ant permettent de gérer le développement complet de projets à travers "
+"Hibernate. "
#. Tag: para
-#: toolset_guide.xml:36
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
@@ -37,11 +40,10 @@
msgstr ""
"Les <emphasis>outils Hibernate</emphasis> actuels incluent des plugins pour "
"l'IDE Eclipse ainsi que des tâches Ant pour l'ingénierie inverse de bases de "
-"données existantes :"
+"données existantes : "
#. Tag: para
-#: toolset_guide.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
"files that supports auto-completion and syntax highlighting. It also "
@@ -49,14 +51,13 @@
"making it more versatile than a normal XML editor."
msgstr ""
"<emphasis>Mapping Editor :</emphasis> un éditeur pour les fichiers de "
-"mapping XML Hibernate, supportant l'auto-complétion et la mise en valeur de "
-"la syntaxe. Il supporte aussi l'auto-complétion automatique pour les noms de "
-"classes et les noms de propriété/champ, le rendant beaucoup plus polyvalent "
-"qu'un éditeurXML normal."
+"mappage XML Hibernate, supportant l'auto-finalisation et la mise en valeur "
+"de la syntaxe. Il supporte aussi la sémantique d'auto-finalisation pour les "
+"noms de classes et les noms de propriété/champs, le rendant beaucoup plus "
+"polyvalent qu'un éditeur XML ordinaire."
#. Tag: para
-#: toolset_guide.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
"addition to a tree overview of your console configurations, you are also "
@@ -71,8 +72,7 @@
"votre base de données et de parcourir les résultats directement dans Eclipse."
#. Tag: para
-#: toolset_guide.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
"the Hibernate Eclipse tools. You can use a wizard to quickly generate "
@@ -81,59 +81,54 @@
"reverse engineering wizard supports customizable templates."
msgstr ""
"<emphasis>Development Wizards :</emphasis> plusieurs assistants sont fournis "
-"avec les outils d'Hibernate pour Eclipse ; vous pouvez utiliser un assistant "
-"pour générer rapidement les fichiers de configuration d'Hibernate (cfg.xml), "
-"ou vous pouvez même complètement générer les fichiers de mapping Hibernate "
-"et les sources des POJOs à partir d'un schéma de base de données existant. "
-"L'assistant d'ingénierie inverse supporte les modèles utilisateur."
+"avec les outils de Hibernate pour Eclipse ; vous pouvez utiliser un "
+"assistant pour générer rapidement les fichiers de configuration Hibernate "
+"(cfg.xml), ou vous pouvez même complètement générer les fichiers de mappage "
+"Hibernate et les sources des POJOs à partir d'un schéma de base de données "
+"existant. L'assistant d'ingénierie inverse supporte les modèles utilisateur. "
#. Tag: para
-#: toolset_guide.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
"documentation for more information."
msgstr ""
-"Veuillez-vous référer au paquet <emphasis>outils Hibernate</emphasis> et sa "
-"documentation pour plus d'informations."
+"Veuillez-vous référer au paquetage <emphasis>Outils Hibernate</emphasis> et "
+"Ã sa documentation pour plus d'informations. "
#. Tag: para
-#: toolset_guide.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even "
"be used from \"inside\" Hibernate."
msgstr ""
-"Pourtant, le paquet principal d'Hibernate arrive avec un lot d'outils "
-"intégrés (il peut même être utilisé de \"l'intérieur\" d'Hibernate à la "
-"volée) : <emphasis>SchemaExport</emphasis> aussi connu comme "
-"<literal>hbm2ddl</literal>."
+"Cependant, le paquetage principal de Hibernate arrive avec un ensemble "
+"d'outils intégrés (il peut même être utilisé de \"l'intérieur\" de Hibernate "
+"à la volée) : <emphasis>SchemaExport</emphasis> aussi connu comme "
+"<literal>hbm2ddl</literal>. "
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
msgstr "Génération automatique du schéma"
#. Tag: para
-#: toolset_guide.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
"generated schema includes referential integrity constraints, primary and "
"foreign keys, for entity and collection tables. Tables and sequences are "
"also created for mapped identifier generators."
msgstr ""
-"La DDL peut être générée à partir de vos fichiers de mapping par un "
-"utilitaire d'Hibernate. Le schéma généré inclut les contraintes d'intégrité "
+"La DDL peut être générée à partir de vos fichiers de mappage par un "
+"utilitaire Hibernate. Le schéma généré inclut les contraintes d'intégrité "
"référentielle (clefs primaires et étrangères) pour les tables d'entités et "
"de collections. Les tables et les séquences sont aussi créées pour les "
-"générateurs d'identifiant mappés."
+"générateurs d'identifiants mappés. "
#. Tag: para
-#: toolset_guide.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
"the <literal>hibernate.dialect</literal> property when using this tool, as "
@@ -141,83 +136,51 @@
msgstr ""
"Vous <emphasis>devez</emphasis> spécifier un <literal>Dialect</literal> SQL "
"via la propriété <literal>hibernate.dialect</literal> lors de l'utilisation "
-"de cet outils, puisque la DDL est fortement dépendante de la base de données."
+"de cet outil, puisque la DDL est fortement dépendante du vendeur spécifique. "
#. Tag: para
-#: toolset_guide.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
"schema. The next section covers schema customization."
msgstr ""
-"D'abord, personnalisez vos fichiers de mapping pour améliorer le schéma "
-"généré."
+"D'abord, personnalisez vos fichiers de mappage pour améliorer le schéma "
+"généré. "
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
msgstr "Personnaliser le schéma"
#. Tag: para
-#: toolset_guide.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
"literal>. You can set the length, precision and scale of a column with this "
"attribute."
msgstr ""
-"Plusieurs éléments du mapping hibernate définissent des attributs optionnels "
+"Plusieurs éléments du mappage Hibernate définissent des attributs optionnels "
"nommés <literal>length</literal>, <literal>precision</literal> et "
-"<literal>scale</literal>. Vous pouvez paramétrer la longueur, la "
-"précision,... d'une colonne avec ces attributs."
+"<literal>scale</literal>. Vous pouvez paramétrer la taille, la précision, et "
+"l'échelle d'une colonne avec cet attribut. "
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
"a <literal>NOT NULL</literal> constraint on table columns, and a "
"<literal>unique</literal> attribute for generating <literal>UNIQUE</literal> "
"constraint on table columns."
msgstr ""
-"Certains éléments acceptent aussi un attribut <literal>not-null</literal> "
-"(utilisé pour générer les contraintes de colonnes <literal>NOT NULL</"
-"literal>) et un attribut <literal>unique</literal> (pour générer une "
-"contrainte de colonne <literal>UNIQUE</literal>)."
+"Certaines balises acceptent aussi un attribut <literal>not-null</literal> "
+"utilisé pour générer les contraintes de colonnes <literal>NOT NULL</literal> "
+"et un attribut <literal>unique</literal> pour générer une contrainte "
+"<literal>UNIQUE</literal> de colonnes de table."
-#. Tag: programlisting
-#: toolset_guide.xml:117
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:121
-#, fuzzy, no-c-format
-msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
"single, unique key constraint. Currently, the specified value of the "
"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
@@ -227,131 +190,60 @@
"Un attribut <literal>unique-key</literal> peut être utilisé pour grouper les "
"colonnes en une seule contrainte d'unicité. Actuellement, la valeur "
"spécifiée par l'attribut <literal>unique-key</literal> n'est <emphasis>pas</"
-"emphasis> utilisée pour nommer la contrainte dans le DDL généré, elle sert "
-"juste à grouper les colonnes dans le fichier de mapping."
+"emphasis> utilisée pour nommer la contrainte dans la DDL générée, elle sert "
+"juste à grouper les colonnes dans le fichier de mappage. "
-#. Tag: programlisting
-#: toolset_guide.xml:129
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:131
-#, fuzzy, no-c-format
-msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
"will be created using the mapped column or columns. Multiple columns can be "
"grouped into the same index by simply specifying the same index name."
msgstr ""
"Un attribut <literal>index</literal> indique le nom d'un index qui sera créé "
"en utilisant la ou les colonnes mappées. Plusieurs colonnes peuvent être "
-"groupées dans un même index, en spécifiant le même nom d'index."
+"groupées dans un même index, en spécifiant le même nom d'index. "
-#. Tag: programlisting
-#: toolset_guide.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:139
-#, fuzzy, no-c-format
-msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
"of any generated foreign key constraint."
msgstr ""
"Un attribut <literal>foreign-key</literal> peut être utilisé pour surcharger "
-"le nom des clés étrangères générées."
+"le nom des clés étrangères générées. "
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
"element. This is particularly useful for mapping multi-column types:"
msgstr ""
-"Plusieurs éléments de mapping acceptent aussi un élément fils <literal><"
-"column></literal>. Ceci est utile pour les type multi-colonnes:"
+"Plusieurs éléments de mappage acceptent aussi un élément fils <literal><"
+"column></literal>. Ceci est particulièrement utile pour les type multi-"
+"colonnes :"
-#. Tag: programlisting
-#: toolset_guide.xml:151
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:153
-#, fuzzy, no-c-format
-msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
"value for a column.You should assign the same value to the mapped property "
"before saving a new instance of the mapped class."
msgstr ""
"L'attribut <literal>default</literal> vous laisse spécifier une valeur par "
-"défaut pour une colonnes (vous devriez assigner la même valeur à la "
-"propriété mappée avant de sauvegarder une nouvelle instance de la classe "
-"mappée)."
+"défaut pour une colonne. Vous devez assigner la même valeur à la propriété "
+"mappée avant de sauvegarder une nouvelle instance de la classe mappée."
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
"default mapping of a Hibernate type to SQL datatype."
msgstr ""
-"L'attribut <literal>sql-type</literal> laisse l'utilisateur surcharger le "
-"mapping par défaut du type Hibernate vers un type SQL."
+"L'attribut <literal>sql-type</literal> permet à l'utilisateur de surcharger "
+"le mappage par défaut d'un type Hibernate vers un type de données SQL. "
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
@@ -360,178 +252,133 @@
"L'attribut <literal>check</literal> permet de spécifier une contrainte de "
"vérification."
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
-msgstr ""
+msgstr "Le tableau suivant dresse la liste des attributs en option."
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
-msgstr "Summary"
+msgstr "Résumé"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
msgstr "Attribut"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
-msgstr "Valeur"
+msgstr "Valeurs"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
msgstr "Interprétation"
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
-msgstr "length"
+msgid "<literal>length</literal>"
+msgstr "<literal>length</literal> (longueur)"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
msgstr "numérique"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
msgstr "taille d'une colonne"
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
-msgstr "precision"
+msgid "<literal>precision</literal>"
+msgstr "<literal>precision</literal>(précision)"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
msgstr "précision décimale de la colonne"
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
-msgstr "scale"
+msgid "<literal>scale</literal>"
+msgstr "<literal>scale</literal> (échelle)"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
-msgstr "scale décimale de la colonne"
+msgstr "échelle décimale de la colonne"
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+msgid "<literal>not-null</literal>"
+msgstr "<literal>not-null</literal> (non-nulle)"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+msgid "<literal>true|false</literal>"
+msgstr "<literal>true|false</literal> (vrai|faux)"
#. Tag: entry
-#: toolset_guide.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specifies that the column should be non-nullable"
-msgstr "spécifie que la colonne doit être non-nulle"
+msgstr "spécifie que la colonne doit être non-nulle "
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
-msgstr "unique"
+msgid "<literal>unique</literal>"
+msgstr "<literal>unique</literal>"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr "spécifie que la colonne doit avoir une contrainte d'unicité"
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
-msgstr "index"
+msgid "<literal>index</literal>"
+msgstr "<literal>index</literal>"
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
-msgstr "index_name"
+msgid "<literal>index_name</literal>"
+msgstr "<literal>index_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr "spécifie le nom d'un index (multi-colonnes)"
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>unique-key</literal> (clé-unique)"
-#. Tag: literal
-#: toolset_guide.xml:227
-#, no-c-format
-msgid "unique_key_name"
-msgstr "unique_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique_key_name</literal>"
+msgstr "<literal>unique-key</literal> (clé-unique)"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr "spécifie le nom d'une contrainte d'unicité multi-colonnes"
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>foreign-key</literal> (clé étrangère)"
-#. Tag: literal
-#: toolset_guide.xml:232
-#, no-c-format
-msgid "foreign_key_name"
-msgstr "foreign_key_name"
-
#. Tag: entry
-#: toolset_guide.xml:233
#, fuzzy, no-c-format
+msgid "<literal>foreign_key_name</literal>"
+msgstr "<literal>foreign-key</literal> (clé étrangère)"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
"association, for a <literal><one-to-one></literal>, <literal><many-"
@@ -539,117 +386,82 @@
"to-many></literal> mapping element. Note that <literal>inverse=\"true\"</"
"literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-"spécifie le nom d'une contrainte de clé étrangère générée pour une "
-"association, utilisez-la avec les éléments de mapping <placeholder-1/>, "
-"<placeholder-2/>, <placeholder-3/>, or <placeholder-4/> Notez que les "
-"extrêmités <placeholder-5/> se seront pas prises en compte par <placeholder-"
-"6/>."
+"spécifie le nom de la contrainte de clé étrangère générée par une "
+"association, pour un élément de mappage <literal><one-to-one></"
+"literal>, <literal><many-to-one></literal>, <literal><key></"
+"literal>, ou <literal><many-to-many></literal>. Notez que les côtés "
+"<literal>inverse=\"true\"</literal> ne seront pas pris en considération par "
+"le <literal>SchemaExport</literal>."
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>sql-type</literal>"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
-msgstr "SQL column_type"
-
#. Tag: entry
-#: toolset_guide.xml:245
#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
+msgstr "<literal>sql-type</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
"literal> element only)"
msgstr ""
-"surcharge le type par défaut (attribut de l'élément <placeholder-1/> "
-"uniquement)"
+"surcharge le type par défaut (attribut de l'élément <literal><column></"
+"literal> uniquement)"
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
-msgstr "default"
+msgid "<literal>default</literal>"
+msgstr "<literal>défaut</literal>"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid "SQL expression"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"expression SQL\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"SQL expression"
+msgstr "Expression SQL"
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
msgstr "spécifie une valeur par défaut pour la colonne"
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
-msgstr "check"
+msgid "<literal>check</literal>"
+msgstr "<literal>vérification</literal>"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
msgstr "crée une contrainte de vérification sur la table ou la colonne"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
"comments for the generated schema."
msgstr ""
-"L'élément <literal><comment></literal> vous permet de spécifier un "
-"commentaire pour le schéma généré."
+"L'élément <literal><comment></literal> vous permet de spécifier des "
+"commentaires pour le schéma généré."
-#. Tag: programlisting
-#: toolset_guide.xml:273
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:277
-#, fuzzy, no-c-format
-msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
"column</literal> statement in the generated DDL where supported."
msgstr ""
"Ceci a pour résultat une expression <literal>comment on table</literal> ou "
-"<literal>comment on column</literal> dans la DDL générée (où supportée)."
+"<literal>comment on column</literal> dans la DDL générée (là où elle est "
+"supportée). "
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
msgstr "Exécuter l'outil"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
@@ -659,201 +471,158 @@
"standard et/ou exécute les ordres DDL."
#. Tag: para
-#: toolset_guide.xml:293
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
"line options"
-msgstr "<literal>SchemaExport</literal> Options de la ligne de commande"
+msgstr ""
+"Le tableau suivant affiche les options de ligne de commande du "
+"<literal>SchemaExport</literal>"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</"
+"emphasis><literal>org.hibernate.tool.hbm2ddl.SchemaExport</"
+"literal><emphasis>options mapping_files</emphasis> "
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
msgstr "<literal>SchemaExport</literal> Options de la ligne de commande"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
msgstr "Option"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:528
#, no-c-format
msgid "Description"
msgstr "Description"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>--quiet</literal>"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not output the script to stdout"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ne pas écrire le script vers la sortie standard\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ne pas écrire vers la sortie standard"
+msgstr "ne pas écrire le script vers la sortie standard stdout"
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+msgid "<literal>--drop</literal>"
+msgstr "<literal>--drop</literal>"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
-msgstr "supprime seuleument les tables"
+msgstr "supprime uniquement les tables"
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
-msgstr "--create"
+msgid "<literal>--create</literal>"
+msgstr "<literal>--create</literal>"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
-msgstr "ne créé que les tables"
+msgstr "ne crée que les tables"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
-msgstr "--text"
+msgid "<literal>--text</literal>"
+msgstr "<literal>--text</literal>"
#. Tag: entry
-#: toolset_guide.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export to the database"
-msgstr "ne pas exécuter sur la base de données"
+msgstr "n'exporte pas vers la base de données "
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
-msgstr "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
+msgstr "<literal>scale</literal> (échelle)"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
msgstr "écrit le script ddl vers un fichier"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
-msgstr "--naming=eg.MyNamingStrategy"
-
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, fuzzy, no-c-format
-msgid "select a <literal>NamingStrategy</literal>"
-msgstr "dans <literal>hibernate.properties</literal>"
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
+msgstr "<literal>--naming=eg.MyNamingStrategy</literal>"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
+#. Tag: entry
#, no-c-format
-msgid "--config=hibernate.cfg.xml"
-msgstr "--config=hibernate.cfg.xml"
+msgid "select a <literal>NamingStrategy</literal>"
+msgstr "sélectionne une <literal>NamingStrategy</literal>"
#. Tag: entry
-#: toolset_guide.xml:338
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
+msgstr "<literal>--config=hibernate.cfg.xml</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
msgstr "lit la configuration Hibernate à partir d'un fichier XML"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
-#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
-
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
#, fuzzy, no-c-format
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "dans <literal>hibernate.properties</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid "read database properties from a file"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"lit les propriétés de la base de données à partir d'un fichier\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"lire les propriétés de la base de données à partir d'un fichier\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"lit les propriétés dela base de données depuis un fichier de propriétés"
+msgstr "lit les propriétés de la base de données à partir d'un fichier"
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
-msgstr "--format"
+msgid "<literal>--format</literal>"
+msgstr "<literal>--format</literal>"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
msgstr "formatte proprement le SQL généré dans le script"
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=x"
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>--delimiter=;</literal>"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr "paramètre un délimiteur de fin de ligne pour le script"
#. Tag: para
-#: toolset_guide.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
"Vous pouvez même intégrer <literal>SchemaExport</literal> dans votre "
-"application :"
+"application : "
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
msgstr "Propriétés"
#. Tag: para
-#: toolset_guide.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Database properties can be specified:"
-msgstr "Les propriétés de la base de données peuvent être spécifiées"
+msgstr "Les propriétés de la base de données peuvent être spécifiées :"
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
@@ -863,104 +632,87 @@
"</emphasis>"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
msgstr "dans <literal>hibernate.properties</literal>"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr ""
"dans un fichier de propriétés déclaré avec <literal>--properties</literal>"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
msgstr "Les propriétés nécessaires sont :"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
-msgstr "SchemaExport Connection Properties"
+msgstr "Les propriétés de connexion SchemaExport "
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
msgstr "Nom de la propriété"
-#. Tag: literal
-#: toolset_guide.xml:400
-#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.driver_class</literal>"
+msgstr "<literal>hibernate.connection.driver_class</literal>"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
msgstr "classe du driver JDBC"
-#. Tag: literal
-#: toolset_guide.xml:404
-#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "dans <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr "URL JDBC"
-#. Tag: literal
-#: toolset_guide.xml:408
-#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "dans <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
msgstr "utilisateur de la base de données"
-#. Tag: literal
-#: toolset_guide.xml:412
-#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "dans <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
msgstr "mot de passe de l'utilisateur"
-#. Tag: literal
-#: toolset_guide.xml:416
-#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "dans <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
msgstr "dialecte"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
msgstr "Utiliser Ant"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
@@ -968,135 +720,74 @@
"Vous pouvez appeler <literal>SchemaExport</literal> depuis votre script de "
"construction Ant :"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
msgstr "Mises à jour incrémentales du schéma"
#. Tag: para
-#: toolset_guide.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
"\"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon "
"the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
"L'outil <literal>SchemaUpdate</literal> mettra à jour un schéma existant en "
-"effectuant les changement par \"incrément\". Notez que "
-"<literal>SchemaUpdate</literal> dépends beaucoup de l'API JDBC metadata, il "
-"ne fonctionnera donc pas avec tous les drivers JDBC."
+"effectuant les changements par \"incrément\". Notez que "
+"<literal>SchemaUpdate</literal> dépend fortement de l'API des métadonnées "
+"JDBC, par conséquent il ne fonctionne pas avec tous les drivers JDBC. "
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
msgstr "<literal>SchemaUpdate</literal> Options de ligne de commande"
#. Tag: entry
-#: toolset_guide.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export the script to the database"
-msgstr "ne pas exporter vers la base de données"
+msgstr "ne pas exporter vers la base de données "
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"specify a <placeholder-1/> file\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"indique un fichier <placeholder-1/>"
+msgstr "spécifier un fichier <literal>.cfg.xml</literal>"
#. Tag: para
-#: toolset_guide.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
msgstr ""
-"Vous pouvez intégrer <literal>SchemaUpdate</literal> dans votre application :"
+"Vous pouvez intégrer <literal>SchemaUpdate</literal> dans votre "
+"application : "
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
msgstr "Utiliser Ant pour des mises à jour de schéma par incrément"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
msgstr ""
"Vous pouvez appeler <literal>SchemaUpdate</literal> depuis le script Ant :"
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
msgstr "Validation du schéma"
#. Tag: para
-#: toolset_guide.xml:508
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
"database schema \"matches\" your mapping documents. The "
@@ -1104,150 +795,98 @@
"API and, as such, will not work with all JDBC drivers. This tool is "
"extremely useful for testing."
msgstr ""
-"L'outil <literal>SchemaValidator</literal> validera que le schéma existant "
-"correspond à vos documents de mapping. Notez que le "
-"<literal>SchemaValidator</literal> dépends de l'API metadata de JDBC, il ne "
-"fonctionnera donc pas avec tous les drivers JDBC. Cet outil est extrêmement "
-"utile pour tester."
+"L'outil <literal>SchemaValidator</literal> confirmera que le schéma existant "
+"correspond à vos documents de mappage. Notez que le "
+"<literal>SchemaValidator</literal> dépend de l'API des métadonnées de JDBC, "
+"il ne fonctionne donc pas avec tous les drivers JDBC. Cet outil est "
+"extrêmement utile pour les tests. "
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
"<emphasis>options mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
+"<emphasis>options mapping_files</emphasis>"
#. Tag: para
-#: toolset_guide.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaValidator</literal> command "
"line options:"
-msgstr "<literal>SchemaValidator</literal> Options de ligne de commande"
+msgstr ""
+"Le tableau suivant affiche les options de ligne de commande du "
+"<literal>SchemaValidator</literal>"
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
msgstr "<literal>SchemaValidator</literal> Options de ligne de commande"
#. Tag: para
-#: toolset_guide.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
msgstr ""
"Vous pouvez inclure <literal>SchemaValidator</literal> dans votre "
-"application:"
+"application : "
-#. Tag: programlisting
-#: toolset_guide.xml:552
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
msgstr "Utiliser Ant pour la validation du Schéma"
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
msgstr ""
"Vous pouvez appeler <literal>SchemaValidator</literal> depuis le script Ant:"
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
-msgstr ""
+#, fuzzy
+#~ msgid "length"
+#~ msgstr "taille d'une colonne"
-#~ msgid "Ant Tasks:"
-#~ msgstr "Tâches Ant :"
+#, fuzzy
+#~ msgid "precision"
+#~ msgstr "Expression SQL"
-#~ msgid "<one-to-one>"
-#~ msgstr "<one-to-one>"
+#, fuzzy
+#~ msgid "unique_key_name"
+#~ msgstr "<literal>unique_key_name</literal>"
-#~ msgid "<many-to-one>"
-#~ msgstr "<many-to-one>"
+#, fuzzy
+#~ msgid "foreign_key_name"
+#~ msgstr "<literal>foreign_key_name</literal>"
-#~ msgid "<key>"
-#~ msgstr "<key>"
+#, fuzzy
+#~ msgid "SQL column type"
+#~ msgstr "<literal>SQL column type</literal> (type de colonne SQL)"
-#~ msgid "<many-to-many>"
-#~ msgstr "<many-to-many>"
+#, fuzzy
+#~ msgid "--output=my_schema.ddl"
+#~ msgstr "<literal>--output=my_schema.ddl</literal>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#, fuzzy
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "<literal>--properties=hibernate.properties</literal>"
-#~ msgid "SchemaExport"
-#~ msgstr "SchemaExport"
+#, fuzzy
+#~ msgid "hibernate.connection.url"
+#~ msgstr "<literal>hibernate.connection.url</literal>"
-#~ msgid "<column>"
-#~ msgstr "<column>"
-
-#~ msgid "java -cp"
-#~ msgstr "java -cp"
-
#, fuzzy
-#~ msgid "hibernate_classpaths"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "classpath_hibernate\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate_classpaths\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate_classpaths"
+#~ msgid "hibernate.connection.username"
+#~ msgstr "<literal>hibernate.connection.username</literal>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaExport"
-#~ msgstr "net.sf.hibernate.tool.hbm2ddl.SchemaExport"
-
#, fuzzy
-#~ msgid "options mapping_files"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "options fichiers_de_mapping\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "options mapping_files\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "options mapping_files"
+#~ msgid "hibernate.connection.password"
+#~ msgstr "<literal>hibernate.connection.password</literal>"
-#~ msgid "NamingStrategy"
-#~ msgstr "NamingStrategy"
-
#, fuzzy
-#~ msgid "select a <placeholder-1/>"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "sélectionne une <placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "choisit une <placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Indique une <placeholder-1/>"
+#~ msgid "hibernate.dialect"
+#~ msgstr "<literal>hibernate.dialect</literal>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-
-#~ msgid ".cfg.xml"
-#~ msgstr ".cfg.xml"
-
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaValidator"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaValidator"
+#~ msgid "<!-- <emphasis>Ant Tasks:</emphasis> -->"
+#~ msgstr "<!-- <emphasis>Ant Tasks:</emphasis> -->"
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,28 @@
+# translation of transactions.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: transactions\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-05 10:06+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: transactions.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Transactions and Concurrency"
-msgstr "Transactions et accès concurrents"
+msgstr "Transactions et Accès concurrents"
#. Tag: para
-#: transactions.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
"is easy to understand. Hibernate directly uses JDBC connections and JTA "
@@ -27,15 +31,14 @@
"specification of your database management system."
msgstr ""
"L'un des principaux avantages du mécanisme de contrôle des accès concurrents "
-"d'Hibernate est qu'il est très facile à comprendre. Hibernate utilise "
+"de Hibernate est qu'il est très facile à comprendre. Hibernate utilise "
"directement les connexions JDBC ainsi que les ressources JTA sans y ajouter "
"davantage de mécanisme de blocage. Nous vous recommandons de vous "
"familiariser avec les spécifications JDBC, ANSI et d'isolement de "
-"transaction de la base de données que vous utilisez."
+"transaction du système de gestion de la base de données que vous utilisez. "
#. Tag: para
-#: transactions.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
"behavior as defined by the isolation level of your database transactions. "
@@ -43,52 +46,48 @@
"cache, Hibernate provides repeatable reads for lookup by identifier and "
"entity queries and not reporting queries that return scalar values."
msgstr ""
-"Hibernate ne vérouille pas vos objets en mémoire. Votre application peut "
+"Hibernate ne verrouille pas vos objets en mémoire. Votre application peut "
"suivre le comportement défini par le niveau d'isolation de vos transactions "
"de base de données. Notez que grâce à la <literal>Session</literal>, qui est "
-"aussi un cache de scope transaction, Hibernate fournit des lectures répétées "
-"pour les récupération par identifiants et les requêtes d'entités (pas celle "
-"de valeurs scalaires)."
+"aussi un cache de portée de transaction, Hibernate fournit des lectures "
+"répétées pour les recherches par identifiants et les requêtes d'entités (ne "
+"rapporte pas les requêtes qui retournent des valeurs scalaires). "
#. Tag: para
-#: transactions.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
"Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> "
"syntax, a (minor) API for pessimistic locking of rows. Optimistic "
"concurrency control and this API are discussed later in this chapter."
msgstr ""
-"En addition au versionning pour le controle automatique de concurrence, "
-"Hibernate fournit une API (mineure) pour le verrouillage perssimiste des "
-"enregistrements, en générant une syntaxe <literal>SELECT FOR UPDATE</"
-"literal>. Le controle de concurrence optimiste et cette API seront détaillés "
-"plus tard dans ce chapitre."
+"En plus du versioning, pour le contrôle automatique optimiste de "
+"concurrence, Hibernate fournit également une API (mineure) pour le "
+"verrouillage pessimiste des lignes, en générant une syntaxe <literal>SELECT "
+"FOR UPDATE</literal>. Le contrôle de concurrence optimiste et cette API "
+"seront approfondis ultérieurement dans ce chapitre. "
#. Tag: para
-#: transactions.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
"granularity of <literal>Configuration</literal>, <literal>SessionFactory</"
"literal>, and <literal>Session</literal>, as well as database transactions "
"and long conversations."
msgstr ""
-"Nous aborderons la gestion des accès concurrents en discutant de la "
+"Nous abordons la gestion des accès concurrents en discutant de la "
"granularité des objets <literal>Configuration</literal>, "
"<literal>SessionFactory</literal>, et <literal>Session</literal>, ainsi que "
-"de certains concepts relatifs à la base de données et aux longues "
-"transactions applicatives."
+"des transactions de la base de données et des longues transactions "
+"applicatives. "
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
-msgstr "Gestion de session et délimitation de transactions"
+msgstr "Portées des sessions et des transactions"
#. Tag: para
-#: transactions.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
"object, intended to be shared by all application threads. It is created "
@@ -97,13 +96,12 @@
msgstr ""
"Il est important de savoir qu'un objet <literal>SessionFactory</literal> est "
"un objet complexe et optimisé pour fonctionner avec les threads(thread- "
-"safe). Il est coûteux à créer et est ainsi prévu pour n'être instancié qu?"
-"une seule fois via un objet <literal>Configuration</literal> au démarrage de "
-"l'application, et être partagé par tous les threads d'une application."
+"safe). Il est coûteux à créer et est ainsi prévu pour n'être instancié "
+"qu'une seule fois via une instance <literal>Configuration</literal> en "
+"général au démarrage de l'application. "
#. Tag: para
-#: transactions.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
"should be used once and then discarded for: a single request, a conversation "
@@ -111,17 +109,16 @@
"JDBC <literal>Connection</literal>, or a <literal>Datasource</literal>, "
"unless it is needed. It will not consume any resources until used."
msgstr ""
-"Un objet <literal>Session</literal> est relativement simple et n'est "
-"threadsafe. Il est également peu coûteux à créer. Il devrait n'être utilisé "
-"qu'une seule fois, pour un processus d'affaire ou une unité de travail ou "
-"une conversation et ensuite être relâché. Un objet <literal>Session</"
-"literal> ne tentera pas d'obtenir de connexion ( <literal>Connection</"
-"literal> ) JDBC (ou de <literal>Datasource</literal> ) si ce n'est pas "
-"nécessaire."
+"Une <literal>Session</literal> n'est pas coûteuse, et c'est un objet non-"
+"threadsafe qui ne devrait être utilisé qu'une seule fois pour une requête "
+"unique, une conversation, une unité de travail unique et devrait être "
+"relâché ensuite. Un objet <literal>Session</literal> ne tentera pas "
+"d'obtenir une <literal>Connection</literal>JBDC (ou une <literal>Datasource</"
+"literal>) si ce n'est pas nécessaire, par conséquent il ne consommera pas de "
+"ressource jusqu'Ã son utilisation."
#. Tag: para
-#: transactions.xml:76
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
"has to be as short as possible. Long database transactions will prevent your "
@@ -130,17 +127,16 @@
"unit of work is complete."
msgstr ""
"Afin de compléter ce tableau, vous devez également penser aux transactions "
-"de base de données. Une transaction de base de données se doit d'être la "
-"plus courte possible afin de réduire les risques de collision sur des "
-"enregistrements verrouillés. De longues transactions à la base de données "
-"nuiront à l'extensibilité de vos applications lorsque confrontées à de hauts "
-"niveaux de charge. Par conséquent, il n'est jamais bon de maintenir une "
-"transaction ouverte pendant la durée de reflexion de l'utilisateur, jusqu'a "
-"ce que l'unité de travail soit achevée."
+"de base de données. Une transaction de base de données doit être aussi "
+"courte que possible afin de réduire les risques de contention de verrou dans "
+"la base de données. De longues transactions à la base de données nuiront à "
+"l'extensibilité de vos applications lorsque confrontées à de hauts niveaux "
+"de charge. Par conséquent, ce n'est un bon design que de maintenir une "
+"transaction ouverte pendant la durée de reflexion de l'utilisateur, jusqu'à "
+"ce que l'unité de travail soit achevée. "
#. Tag: para
-#: transactions.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
"<literal>Session</literal> span several database transactions, or is this a "
@@ -148,22 +144,19 @@
"<literal>Session</literal> and how do you demarcate the database transaction "
"boundaries? These questions are addressed in the following sections."
msgstr ""
-"Maintenant, comment délimiter une unité de travail? Est-ce qu'une instance "
-"de <literal>Session</literal> peut avoir une durée de vie dépassant "
-"plusieurs transactions à la base de données, ou bien est-ce que celles-ci "
-"doivent être liées une à une? Quand faut-il ouvrir et fermer une "
-"<literal>Session</literal> ? Comment définir la démarcation de vos "
-"transactions à la base de données?"
+"Quelle est la portée d'une unité de travail? Est-ce qu'une <literal>Session</"
+"literal> unique de Hibernate peut avoir une durée de vie dépassant plusieurs "
+"transactions à la base de données, ou bien est-ce une relation un-à -un des "
+"portées? Quand faut-il ouvrir et fermer une <literal>Session</literal> et "
+"comment définir les démarcations de vos transactions à la base de données ? "
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr "Unité de travail"
#. Tag: para
-#: transactions.xml:94
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
"described by Martin Fowler as <quote> [maintaining] a list of objects "
@@ -172,14 +165,25 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
+"Tout d'abord, nous allons définir une unité de travail. Une unité de travail "
+"est un modèle de conception décrit par Martin Fowler qui <quote> [gère] une "
+"liste d'objets concernés par une transaction d'entreprise et coordonne la "
+"rédaction de modifications et la résolution des problèmes d'accès "
+"concurrentiel. </quote><citation>PoEAA</citation>. En d'autres termes, il "
+"s'agit d'une série d'opérations que nous voulons réaliser ensemble sur la "
+"base de données. Il s'agit essentiellement d'une transaction, bien qu'en "
+"remplissant une unité de travail, on couvrira souvent plusieurs transactions "
+"physiques de base de données (voir <xref linkend=\"transactions-basics-apptx"
+"\" />). Nous parlons donc vraiment une notion plus abstraite de transaction. "
+"Le terme \"business transaction\"est aussi parfois utilisé à la place "
+"d'unité de travail."
#. Tag: para
-#: transactions.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
"not open and close a <literal>Session</literal> for every simple database "
@@ -195,29 +199,28 @@
"clearly defined unit of work. The latter is also more maintainable and "
"extensible."
msgstr ""
-"Il est important de mentionner que d'utiliser un paradigme <emphasis>session-"
-"par-operation</emphasis> est un anti-pattern. Autrement dit: n'ouvrez et ne "
-"fermez pas la <literal>Session</literal> à chacun de vos accès simples à la "
-"base de données dans un même thread! Bien sûr, le même raisonnement "
-"s'applique sur la gestion des transactions à la base de données. Les appels "
-"à la base de données devraient être faits en ordre et selon une séquence "
-"définie. Ils devraient également être regroupés en des unités de travail "
-"atomiques. (Notez que l?utilisation d?une connexion auto-commit constitue le "
-"même anti-pattern. Ce mode de fonctionnement existe pour les applications "
-"émettant des commandes SQL à partir d?une console. Hibernate désengage le "
-"mode auto-commit et s'attend à ce qu'un serveur d'applications le fasse "
+"Tout d'abord n'utilisez pas l'anti-pattern <emphasis>session-par-operation</"
+"emphasis> et n'ouvrez et ne fermez pas la <literal>Session</literal> Ã "
+"chacun de vos accès simples à la base de données dans un même thread ! Par "
+"conséquent, le même raisonnement est applicable à la gestion des "
+"transactions dans la base de données. Dans une application, les appels à la "
+"base de données doivent être effectués selon une séquence ordonnée et sont "
+"regroupés en unités de travail atomiques. (Notez que l'utilisation d'une "
+"connexion auto-commit après chaque déclaration SQL est inutile dans une "
+"application. Ce mode de fonctionnement existe pour les applications émettant "
+"des commandes SQL ad-hoc à partir d'une console. Hibernate désengage le mode "
+"auto-commit et s'attend à ce qu'un serveur d'applications le fasse "
"également.) Les transactions avec la base de données ne sont jamais "
-"optionnelles, toute communication avec une base de données doit se dérouler "
+"optionnelles. Toute communication avec une base de données doit se dérouler "
"dans une transaction, peu importe si vous lisez ou écrivez des données. "
-"Comme évoqué, le comportement auto-commit pour lire les données devrait être "
-"évité, puisque plusieurs petites transactions ne seront jamais aussi "
-"efficaces qu'une seule plus grosse clairement définie comme unité de "
-"travail. Ce dernier choix et en plus beaucoup plus facile a maintenir et à "
-"faire évoluer."
+"Comme déjà mentionné, le comportement auto-commit pour lire les données "
+"devrait être évité, puisque plusieurs petites transactions ne seront jamais "
+"aussi efficaces qu'une seule plus grosse clairement définie comme unité de "
+"travail. Ce dernier choix est de plus beaucoup plus facile à maintenir et "
+"plus extensible."
#. Tag: para
-#: transactions.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
"<emphasis>session-per-request</emphasis>. In this model, a request from the "
@@ -230,24 +233,23 @@
"literal>. The relationship between the two is one-to-one and this model is a "
"perfect fit for many applications."
msgstr ""
-"Le pattern d'utilisation le plus fréquemment rencontré dans des applications "
-"clients serveur multi-usagers est le <emphasis>session-per-request</"
-"emphasis> (littéralement : Session par requête). Dans ce modèle, la requête "
-"d'un client est envoyée à un serveur (Où la couche de persistance est "
-"implémentée via Hibernate), une nouvelle <literal>Session</literal> est "
-"ouverte et toutes les opérations d'accès à la base de données sont exécutées "
-"à l'intérieur de celle-ci. Lorsque le travail est terminé (et que les "
-"réponses à envoyer au client ont été préparées), la session est flushée et "
-"fermée. Une seule transaction à la base de données peut être utilisée pour "
-"répondre à la requête du client. La transaction est démarrée et validée au "
-"même moment où la Session est ouverte et fermée. La relation entre la "
-"<literal>Session</literal> et la <literal>Transaction</literal> est donc one-"
-"to-one. Ce modèle permet de répondre parfaitement aux attentes de la grande "
-"majorité des applications."
+"Le modèle d'utilisation le plus fréquemment rencontré dans des applications "
+"clients serveur multi-usagers est la <emphasis>session-par-requête</"
+"emphasis>. Dans ce modèle, la requête d'un client est envoyée au serveur (où "
+"la couche de persistance est implémentée via Hibernate), une nouvelle "
+"<literal>Session</literal> Hibernate est ouverte et toutes les opérations "
+"d'accès à la base de données sont exécutées à l'intérieur de celle-ci. "
+"Lorsque le travail est terminé (et que les réponses à envoyer au client ont "
+"été préparées), la session est flushée et fermée. Une seule transaction à la "
+"base de données peut être utilisée pour répondre à la requête du client. La "
+"transaction est démarrée et validée au même moment où la Session est ouverte "
+"et fermée. La relation entre la <literal>Session</literal> et la "
+"<literal>Transaction</literal> est donc un-Ã -un. Cette relation entre les "
+"deux est un-à -un et ce modèle permet de répondre parfaitement aux attentes "
+"de la grande majorité des applications. "
#. Tag: para
-#: transactions.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
"management of the \"current session\" to simplify this pattern. Start a "
@@ -262,40 +264,38 @@
"chapter."
msgstr ""
"Le défi réside dans l'implémentation. Hibernate fournit une fonction de "
-"gestion de la \"session courante\" pour simplifier ce pattern. Tout ce que "
-"vous devez faire est démarrer une transaction lorsqu'une requête est traitée "
-"par le serveur, et la terminer avant que la réponse ne soit envoyée au "
-"client. Vous pouvez le faire de la manière que vous voulez, les solutions "
-"communes sont un <literal>ServletFilter</literal>, l'interception via AOP "
-"avec une pointcut sur les méthodes de type \"service\", ou un conteneur avec "
-"interception/proxy. Un conteneur EJB est un moyen standard d'implémenter ce "
-"genre d'acpect tranverse comme la démarcation des transactions sur les EJBs "
-"session, de manière déclarative avec CMT. Si vous décidez d'utiliser la "
-"démarcation programmatique des transactions, préferrez l'API Hibernate "
-"<literal>Transaction</literal> détaillée plus tard dans ce chapitre, afin de "
-"facilité l'utilisation et la portabilité du code."
+"gestion intégrée de la \"session courante\" pour simplifier ce pattern. Il "
+"vous suffit de démarrer une transaction lorsqu'une requête est traitée par "
+"le serveur, et la terminer avant que la réponse ne soit envoyée au client. "
+"Vous pouvez choisir la manière de l'effectuer, les solutions communes sont "
+"un <literal>ServletFilter</literal>, l'interception via AOP avec une coupe "
+"transverse (pointcut) sur les méthodes de type \"service\", ou un conteneur "
+"avec interception/proxy. Un conteneur EJB est un moyen standard "
+"d'implémenter ce genre d'acpect transverse comme la démarcation des "
+"transactions sur les EJB session, de manière déclarative avec CMT. Si vous "
+"décidez d'utiliser la démarcation programmatique des transactions, préferrez "
+"l'API Hibernate <literal>Transaction</literal> traitée plus tard dans ce "
+"chapitre, afin de faciliter l'utilisation et la portabilité du code. "
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
-"Votre application peut accéder la \"session courante\" pour exécuter une "
+"Votre application peut accéder à une \"session courante\" pour traiter une "
"requête en invoquant simplement <literal>sessionFactory.getCurrentSession()</"
-"literal> n'importe où et autant de fois que souhaité. Vous obtiendrez "
-"toujours une <literal>Session</literal> dont le scope est la transaction "
+"literal> n'importe où et autant de fois que nécessaire. Vous obtiendrez "
+"toujours une <literal>Session</literal> dont la portée est la transaction "
"courante avec la base de données. Ceci doit être configuré soit dans les "
-"ressources local ou dans l'environnement JTA, voir <xref linkend="
-"\"architecture-current-session\"/>."
+"ressources locales ou dans l'environnement JTA, voir <xref linkend="
+"\"architecture-current-session\" />."
#. Tag: para
-#: transactions.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
"transaction until the \"view has been rendered\". This is especially useful "
@@ -307,27 +307,25 @@
"of any view can start. See the Hibernate website and forum for tips and "
"examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
-"Il est parfois utile d'étendre le scope d'une <literal>Session</literal> et "
+"Il est parfois utile d'étendre la portée d'une <literal>Session</literal> et "
"d'une transaction à la base de données jusqu'à ce que \"la vue soit rendue"
"\". Ceci est particulièrement utile dans des applications à base de servlet "
"qui utilisent une phase de rendue séparée une fois que la réponse a été "
-"préparée. Etendre la transaction avec la base de données jusqu'à la fin du "
+"préparée. Ãtendre la transaction avec la base de données jusqu'à la fin du "
"rendering de la vue est aisé si vous implémentez votre propre intercepteur. "
-"Cependant, ce n'est pas facile si vous vous appuyez sur les EJBs avec CMT, "
+"Cependant, ce n'est pas facile si vous vous appuyez sur les EJB avec CMT, "
"puisqu'une transaction sera achevée au retour de la méthode EJB, avant le "
"rendu de la vue. Rendez vous sur le site Hibernate et sur le forum pour des "
"astuces et des exemples sur le pattern <emphasis>Open Session in View</"
-"emphasis> pattern.."
+"emphasis> . "
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr "Longue conversation"
#. Tag: para
-#: transactions.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
"work. Many business processes require a whole series of interactions with "
@@ -335,17 +333,16 @@
"applications, it is not acceptable for a database transaction to span a user "
"interaction. Consider the following example:"
msgstr ""
-"Le paradigme <emphasis>session-per-request</emphasis> n'est pas le seul "
-"élément à utiliser dans le design de vos unités de travail. Plusieurs "
-"processus d'affaire requièrent toute une série d'interactions avec "
-"l'utilisateur, entrelacées d'accès à la base de donnée. Dans une application "
-"Web ou une application d'entreprise, il serait inacceptable que la durée de "
-"vie d'une transaction s'étale sur plusieurs interactions avec l'usager. "
-"Considérez l'exemple suivant:"
+"Le paradigme \"session-per-request\" n'est pas le seul élément à utiliser "
+"dans le design de vos unités de travail. Plusieurs processus d'affaire "
+"requièrent toute une série d'interactions avec l'utilisateur, entrelacées "
+"d'accès à la base de donnée. Dans une application Web ou une application "
+"d'entreprise, il serait inacceptable que la durée de vie d'une transaction "
+"s'étale sur plusieurs interactions avec l'usager. Considérez l'exemple "
+"suivant :"
#. Tag: para
-#: transactions.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
"loaded in a particular <literal>Session</literal> and database transaction. "
@@ -353,11 +350,10 @@
msgstr ""
"Un écran s'affiche. Les données vues par l'usager ont été chargées dans "
"l'instance d'un objet <literal>Session</literal> , dans le cadre d'une "
-"transaction de base de données. L'usager est libre de modifier ces objets."
+"transaction de base de données. L'usager est libre de modifier ces objets. "
#. Tag: para
-#: transactions.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
"be made persistent. The user also expects that they were the only person "
@@ -366,11 +362,10 @@
"L'usager clique \"Sauvegarder\" après 5 minutes et souhaite persister les "
"modifications qu'il a apportées. Il s'attend à être la seule personne a "
"avoir modifié ces données et qu'aucune modification conflictuelle ne se soit "
-"produite durant ce laps de temps."
+"produite durant ce laps de temps. "
#. Tag: para
-#: transactions.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
"<emphasis>conversation</emphasis> or <emphasis>application transaction</"
@@ -379,11 +374,10 @@
"Ceci s'appelle une unité de travail. Du point de vue de l'utilisateur: une "
"<emphasis>conversation</emphasis> (ou <emphasis>transaction d'application</"
"emphasis>). Il y a plusieurs façon de mettre ceci en place dans votre "
-"application."
+"application. "
#. Tag: para
-#: transactions.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
"database transaction open during user think time, with locks held in the "
@@ -398,11 +392,10 @@
"concurrentes et de maintenir l'isolation et l'atomicité de la transaction de "
"l'usager. Ceci est un anti-pattern à éviter, puisque le verrouillage des "
"enregistrements dans la base de données ne permettrait pas à l'application "
-"de gérer un grand nombre d'usagers concurrents."
+"de gérer un grand nombre d'usagers concurrents. "
#. Tag: para
-#: transactions.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
"In this case, maintaining isolation of business processes becomes the "
@@ -422,11 +415,10 @@
"exclusivement par la dernière transaction BDD la composant. Toutes les "
"autres sous transactions BD ne doivent faire que la lecture de données. Ceci "
"est relativement facile à mettre en place, surtout avec l'utilisation de "
-"certaines fonctionnalités d'Hibernate:"
+"certaines fonctionnalités d'Hibernate :"
#. Tag: para
-#: transactions.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
"optimistic concurrency control for you. It can automatically detect if a "
@@ -436,11 +428,10 @@
"<emphasis>Versionnage Automatique</emphasis> - Hibernate peut gérer "
"automatiquement les accès concurrents de manière optimiste et détecter si "
"une modification concurrente s'est produite durant le temps de réflexion "
-"d'un usager."
+"d'un usager. A vérifier en fin de conversation."
#. Tag: para
-#: transactions.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
"<emphasis>session-per-request</emphasis> pattern, all loaded instances will "
@@ -456,11 +447,10 @@
"objets et de persister les modifications y ayant été apportées. Ce pattern "
"est appelé: <emphasis>session-per- request-with-detached-objects</emphasis> "
"(littéralement: session- par-requête-avec-objets-détachés). Le versionnage "
-"automatique est utilisé afin d'isoler les modifications concurrentes."
+"automatique est utilisé afin d'isoler les modifications concurrentes. "
#. Tag: para
-#: transactions.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
"<literal>Session</literal> can be disconnected from the underlying JDBC "
@@ -477,11 +467,10 @@
"et reconnectée lors d'une nouvelle requête-client. Ce pattern s'appelle: "
"<emphasis>session-per-conversation</emphasis> (Littéralement: session-par- "
"conversation) et rend superflu le rattachement des objets. Le versionnage "
-"automatique est utilisé afin d'isoler les modifications concurrentes."
+"automatique est utilisé afin d'isoler les modifications concurrentes. "
#. Tag: para
-#: transactions.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
"<emphasis>session-per-conversation</emphasis> have advantages and "
@@ -492,17 +481,15 @@
"emphasis> (session-par-requête-avec-objets- détachés) et <emphasis>session-"
"per-conversation</emphasis> (session-par-conversation) ont chacun leurs "
"avantages et désavantages qui seront exposés dans ce même chapitre, dans la "
-"section au sujet du contrôle optimiste de concurrence."
+"section au sujet du contrôle optimiste de concurrence. "
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
msgstr "L'identité des objets"
#. Tag: para
-#: transactions.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
"different <literal>Session</literal>s. However, an instance of a persistent "
@@ -512,36 +499,31 @@
"Une application peut accéder à la même entité persistante de manière "
"concurrente dans deux <literal>Session</literal> s différentes. Toutefois, "
"une instance d'une classe persistante n'est jamais partagée par deux "
-"instances distinctes de la classe <literal>Session</literal> . Il existe "
-"donc deux notions de l'identité d'un objet:"
+"instances distinctes de la classe <literal>Session</literal>. Il existe donc "
+"deux notions de l'identité d'un objet :"
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
-msgstr "Identité BD"
+msgstr "Identité de database"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
-msgstr "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
+msgstr "<literal>foo.getId().equals( bar.getId() )</literal>"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr "Identité JVM"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr "<literal>foo==bar</literal>"
#. Tag: para
-#: transactions.xml:295
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
"literal> (i.e., in the scope of a <literal>Session</literal>), the two "
@@ -553,19 +535,18 @@
"commit time."
msgstr ""
"Ainsi, pour des objets attachés à une <literal>Session</"
-"literal><emphasis>précise</emphasis> (dans la cadre d'exécution (scope) "
-"d'une instance de <literal>Session</literal> ), ces deux notions d'identité "
-"sont équivalentes et garanties par Hibernate. Par contre, si une application "
-"peut accéder de manière concurrente à la même entité persistante dans deux "
-"sessions différentes, les deux instances seront en fait différentes (en ce "
-"qui a trait à l'identité JVM). Les conflits sont résolus automatiquement par "
-"approche optimiste grâce au système de versionnage automatique lorsque "
-"<literal>Session.flush()</literal> ou <literal>Transaction.commit()</"
-"literal> est appelé."
+"literal><emphasis>particulière</emphasis> (c'est-à -dire dans la portée d'une "
+"instance de <literal>Session</literal>), ces deux notions d'identité sont "
+"équivalentes et l'identité JVM pour l'identité de la base de données sont "
+"garanties par Hibernate. Cependant, alors qu'une application peut accéder de "
+"manière concurrente au \"même\" objet métier (identité persistante) dans "
+"deux sessions différentes, les deux instances seront en fait \"différentes"
+"\" (en ce qui a trait à l'identité JVM). Les conflits sont résolus "
+"automatiquement par approche optimiste grâce au système de versionnage "
+"automatique au moment du flush/sauvegarde. "
#. Tag: para
-#: transactions.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
"It also provides the best scalability, since guaranteeing identity in single-"
@@ -580,15 +561,14 @@
"faire assure également une meilleure extensibilité de l'application puisque "
"assurer l'identité JVM dans un thread ne nécessite pas de mécanismes de "
"verrouillage coûteux ou d'autres dispositifs de synchronisation. Une "
-"application n'aura jamais le besoin de synchroniser des objets d'affaire "
-"tant qu'elle peut garantir qu'un seul thread aura accès à une instance de "
+"application n'aura jamais besoin de synchroniser des objets d'affaire tant "
+"qu'elle peut garantir qu'un seul thread aura accès à une instance de "
"<literal>Session</literal> . Dans le cadre d'exécution d'un objet "
-"<literal>Session</literal> , l'application peut utiliser en toute sécurité "
-"<literal>== </literal> pour comparer des objets."
+"<literal>Session</literal>, l'application peut utiliser en toute sécurité "
+"<literal>== </literal> pour comparer des objets. "
#. Tag: para
-#: transactions.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
"<literal>Session</literal> might produce unexpected results. This might "
@@ -613,37 +593,36 @@
msgstr ""
"Une application qui utiliserait <literal>==</literal> à l'extérieur du cadre "
"d'exécution d'une <literal>Session</literal> pourrait obtenir des résultats "
-"inattendus et causer certains effets de bords. Par exemple, si vous mettez 2 "
-"objets dans le même <literal>Set</literal> , ceux-ci pourraient avoir la "
-"même identité BD (i.e. ils représentent le même enregistrement), mais leur "
+"inattendus. Par exemple, si vous mettez deux objets dans le même "
+"<literal>Set</literal> , ceux-ci pourraient avoir la même identité de base "
+"de données (c'est-à -dire ils représentent le même enregistrement), mais leur "
"identité JVM pourrait être différente (elle ne peut, par définition, pas "
"être garantie sur deux objets détachés). Le développeur doit donc redéfinir "
"l'implémentation des méthodes <literal>equals()</literal> et "
"<literal>hashcode()</literal> dans les classes persistantes et y adjoindre "
-"sa propre notion d'identité. Il existe toutefois une restriction: Il ne faut "
-"jamais utiliser uniquement l'identifiant de la base de données dans "
-"l'implémentation de l'égalité; Il faut utiliser une clé d'affaire, "
+"sa propre notion d'identité. Il existe toutefois une restriction : il ne "
+"faut jamais utiliser uniquement l'identifiant de la base de données dans "
+"l'implémentation de l'égalité; il faut utiliser une clé d'affaire, "
"généralement une combinaison de plusieurs attributs uniques, si possible "
"immuables. Les identifiants de base de données vont changer si un objet "
-"transitoire (transient) devient persistant. Si une instance transitoire est "
-"contenue dans un <literal>Set</literal> , changer le hashcode brisera le "
-"contrat du <literal>Set</literal> . Les attributs pour les clés d'affaire "
-"n'ont pas à être aussi stables que des clés primaires de bases de données. "
-"Il suffit simplement qu'elles soient stables tant et aussi longtemps que les "
-"objets sont dans le même <literal>Set</literal> . Veuillez consulter le site "
-"web Hibernate pour des discussions plus pointues à ce sujet. Notez que ce "
-"concept n'est pas propre à Hibernate mais bien général à l'implémentation de "
-"l'identité et de l'égalité en Java."
+"transitoire (transient) devient persistant. Si une instance transitoire (en "
+"général avec des instances dégachées) est contenue dans un <literal>Set</"
+"literal>, changer le hashcode brisera le contrat du <literal>Set</literal> . "
+"Les attributs pour les clés d'affaire n'ont pas à être aussi stables que des "
+"clés primaires de bases de données. Il suffit simplement qu'elles soient "
+"stables tant et aussi longtemps que les objets sont dans le même "
+"<literal>Set</literal> . Veuillez consulter le site web Hibernate pour des "
+"discussions plus pointues à ce sujet. Notez que ce concept n'est pas propre "
+"à Hibernate mais bien général à l'implémentation de l'identité et de "
+"l'égalité en Java. "
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr "Problèmes communs"
#. Tag: para
-#: transactions.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
"or <emphasis>session-per-application</emphasis> (there are, however, rare "
@@ -652,16 +631,15 @@
"implications before making a design decision:"
msgstr ""
"Bien qu'il puisse y avoir quelques rares exceptions à cette règle, il est "
-"recommandé de ne jamais utiliser les anti-patterns <emphasis>session-per- "
-"user-session</emphasis> et <emphasis>session-per-application</emphasis> . "
-"Vous trouverez ici- bas quelques problèmes que vous risquez de rencontrer si "
-"vous en faite l?utilisation. (Ces problèmes pourraient quand même survenir "
-"avec des patterns recommandés) Assurez-vous de bien comprendre les "
-"implications de chacun des patterns avant de prendre votre décision."
+"recommandé de ne jamais utiliser les anti-modèles <emphasis>session-par- "
+"utilisateur-session</emphasis> ou <emphasis>session-par-application</"
+"emphasis> . Notez que certains des problèmes suivants pourraient néanmoins "
+"survenir avec des modèles recommandés, assurez-vous de bien comprendre les "
+"implications de chacun des modèles avant de prendre une décision concernant "
+"votre design :"
#. Tag: para
-#: transactions.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
"concurrently, like HTTP requests, session beans, or Swing workers, will "
@@ -672,19 +650,19 @@
"that clicks reload fast enough can use the same <literal>Session</literal> "
"in two concurrently running threads."
msgstr ""
-"L'objet <literal>Session</literal> n?est pas conçu pour être utilisé par de "
+"L'objet <literal>Session</literal> n'est pas conçu pour être utilisé par de "
"multiples threads. En conséquence, les objets potentiellement multi-thread "
"comme les requêtes HTTP, les EJB Session et Swing Worker, risquent de "
"provoquer des conditions de course dans la <literal>Session</literal> si "
-"celle-ci est partagée. Dans un environnement web classique, il serait "
-"préférable de synchroniser les accès à la session http afin d?éviter qu?un "
-"usager ne recharge une page assez rapidement pour que deux requêtes s?"
-"exécutant dans des threads concurrents n?utilisent la même <literal>Session</"
-"literal> ."
+"celle-ci est partagée. Si vous gardez votre <literal>Session</literal> "
+"Hibernate dans la <literal>HttpSession</literal> (le sujet sera traité "
+"ultérieurement), il serait préférable de synchroniser les accès à la session "
+"Http afin d'éviter qu'un usager ne recharge une page assez rapidement pour "
+"que deux requêtes exécutant dans des threads concurrents n'utilisent la même "
+"<literal>Session</literal>."
#. Tag: para
-#: transactions.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
"transaction and close the <literal>Session</literal> immediately (this is "
@@ -696,18 +674,19 @@
"Usually this is not a problem, because exceptions are not recoverable and "
"you will have to start over after rollback anyway."
msgstr ""
-"Lorsque Hibernate lance une exception, le roll back de la transaction en "
-"cours doit être effectué et la <literal>Session</literal> doit être "
-"immédiatement fermée. (Ceci sera exploré plus tard dans le chapitre.) Si la "
-"<literal>Session</literal> est directement associée à une application, il "
-"faut arrêter l?application. Le roll back de la transaction ne remettra pas "
-"les objets dans leur état du début de la transaction. Ainsi, ceux-ci "
-"pourraient être désynchronisés d?avec les enregistrements. (Généralement, "
-"cela ne cause pas de réels problèmes puisque la plupart des exceptions sont "
-"non traitables et requièrent la reprise du processus d?affaire ayant échoué.)"
+"Lorsque Hibernate lance une exception, le rollback de la transaction en "
+"cours dans la base de données, doit être effectué et la <literal>Session</"
+"literal> immédiatement fermée. (Nous approfondirons le sujet plus loin) Si "
+"votre <literal>Session</literal> est liée à l'application, il faut arrêter "
+"l'application. Le rollback de la transaction de base de données ne remettra "
+"pas les objets dans leur état du début de la transaction. Ainsi, cela "
+"signifie que l'état de la base de données et les objets d'affaires "
+"pourraient être désynchronisés d'avec les enregistrements. Généralement, "
+"cela ne cause pas de réel problème puisque la plupart des exceptions sont "
+"non traitables et de toutes façons, vous devez recommencer le processus "
+"après le rollback). "
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -716,34 +695,32 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
"La <literal>Session</literal> met en mémoire cache tous les objets "
-"persistants (les objets surveillés et dont l'état est géré par Hibernate.) "
-"Si la <literal>Session</literal> est ouverte indéfiniment ou si une trop "
-"grande quantité d'objets y est chargée, l?utilisation de la mémoire peut "
-"potentiellement croître jusqu?à atteindre le maximum allouable à l?"
-"application (java.lang.OutOfMemoryError.) Une solution à ce problème est d?"
-"appeler les méthodes <literal>Session.clear()</literal> et <literal>Session."
-"evict()</literal> pour gérer la mémoire cache de la <literal>Session</"
-"literal> . Vous pouvez également utiliser des stored procedures si vous "
-"devez lancer des traitements sur de grandes quantités d?informations. "
-"Certaines solutions sont décrites ici : <xref linkend=\"batch\"/> . Garder "
-"une <literal>Session</literal> ouverte pour toute la durée d?une session "
-"usager augmente également considérablement le risque de travailler avec de l?"
-"information périmée."
+"persistants (les objets surveillés et dont l'état (dirty) est vérifié par "
+"Hibernate.) Si la <literal>Session</literal> est ouverte indéfiniment ou si "
+"une trop grande quantité d'objets y est chargée, l'utilisation de la mémoire "
+"peut potentiellement croître jusqu'à atteindre java.lang.OutOfMemoryError, "
+"le maximum alouable à l'application. Une solution à ce problème est "
+"d'appeler les méthodes <literal>Session.clear()</literal> et "
+"<literal>Session.evict()</literal> pour gérer la mémoire cache de la "
+"<literal>Session</literal>. Vous pouvez également utiliser des procédures "
+"stockées si vous devez lancer des traitements sur de grandes quantités "
+"d'informations. Certaines solutions sont décrites ici : <xref linkend=\"batch"
+"\" />. Garder une <literal>Session</literal> ouverte pour toute la durée "
+"d'une session usager, augmente également considérablement le risque de "
+"travailler avec des informations périmées. "
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
-msgstr "Démarcation des transactions"
+msgstr "Démarcation des transactions de base de données"
#. Tag: para
-#: transactions.xml:388
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
"communication with the database can occur outside of a database transaction "
@@ -754,19 +731,20 @@
"transactions explicitly. Certainly, a single database transaction is going "
"to perform better than many small transactions, even for reading data."
msgstr ""
-"La démarcation des transactions est importante dans le design d?une "
-"application. Aucune communication avec la base de données ne peut être "
-"effectuée à l?extérieur du cadre d?une transaction. (Il semble que ce "
+"La démarcation des transactions de base de données (ou système) est toujours "
+"nécessaire. Aucune communication avec la base de données ne peut être "
+"effectuée à l'extérieur du cadre d'une transaction. (Il semble que ce "
"concept soit mal compris par plusieurs développeurs trop habitués à utiliser "
-"le mode auto-commit.) Même si certains niveaux d'isolation et certaines "
-"possibilités offertes par les bases de données permettent de l?éviter, il "
-"n'est jamais désavantageux de toujours explicitement indiquer les bornes de "
-"transaction pour les opérations complexes comme pour les opérations simples "
-"de lecture."
+"le mode auto-commit.) Utilisez toujours la démarcation des des transactions, "
+"même pour des opérations en lecture seule. Certains niveaux d'isolation et "
+"certaines possibilités offertes par les bases de données permettent de "
+"l'éviter, il n'est jamais désavantageux de toujours explicitement indiquer "
+"les bornes de transaction. Il est certain qu'une transaction unique de base "
+"de données sera plus performante que de nombreuses petites transactions, "
+"même pour les opérations simples de lecture. "
#. Tag: para
-#: transactions.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
"Web- or Swing applications) and managed J2EE environments. In a non-managed "
@@ -779,25 +757,23 @@
"demarcation is then no longer necessary."
msgstr ""
"Une application utilisant Hibernate peut s'exécuter dans un environnement "
-"léger n?offrant pas la gestion automatique des transactions (application "
+"léger n'offrant pas la gestion automatique des transactions (application "
"autonome, application web simple ou applications Swing) ou dans un "
-"environnement J2EE offrant des services de gestion automatique des "
+"environnement J2EE offrant des services de gestion automatiques des "
"transactions JTA. Dans un environnement simple, Hibernate a généralement la "
"responsabilité de la gestion de son propre pool de connexions à la base de "
"données. Le développeur de l'application doit manuellement délimiter les "
"transactions. En d'autres mots, il appartient au développeur de gérer les "
"appels à <literal>Transaction.begin()</literal> , <literal>Transaction.commit"
-"()</literal> et <literal>Transaction.rollback()</literal> . Un environnement "
+"()</literal> et <literal>Transaction.rollback()</literal>. Un environnement "
"transactionnel J2EE (serveur d'application J2EE) doit offrir la gestion des "
-"transactions au niveau du container J2EE. Les bornes de transaction peuvent "
+"transactions au niveau du conteneur J2EE. Les bornes de transaction peuvent "
"normalement être définies de manière déclarative dans les descripteurs de "
"déploiement d'EJB Session, par exemple. La gestion programmatique des "
-"transactions n'y est donc pas nécessaire. Même les appels à <literal>Session."
-"flush()</literal> sont faits automatiquement."
+"transactions n'y est donc plus nécessaire."
#. Tag: para
-#: transactions.xml:408
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
"between non-managed resource-local environments, and systems that can rely "
@@ -807,68 +783,62 @@
"system of your deployment environment. This API is actually optional, but we "
"strongly encourage its use unless you are in a CMT session bean."
msgstr ""
-"Il peut être requis d'avoir une couche de persistance portable. Hibernate "
-"offre donc une API appelée <literal>Transaction</literal> qui sert "
+"Cependant, il est souvent préférable d'avoir une couche de persistance "
+"portable entre les environnements non gérés de ressources locales et les "
+"systèmes qui s'appuient sur JTA mais utilisent BMT à la place de CMT. Dans "
+"les deux cas, vous utiliserez la démarcation de transaction programmatique. "
+"Hibernate offre donc une API appelée <literal>Transaction</literal> qui sert "
"d'enveloppe pour le système de transaction natif de l'environnement de "
-"déploiement. Il n'est pas obligatoire d'utiliser cette API mais il est "
+"déploiement. Il n'est pas obligatoire d'utiliser cette API, mais il est "
"fortement conseillé de le faire, sauf lors de l'utilisation de CMT Session "
-"Bean (EJB avec transactions gérées automatiquement par le container EJB)."
+"Bean."
#. Tag: para
-#: transactions.xml:417
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
msgstr ""
-"Il existe quatre étapes disctinctes lors de la fermeture d'une "
-"<literal>Session</literal>"
+"Il existe quatre étapes distinctes lors de la fermeture d'une "
+"<literal>Session</literal> :"
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
msgstr "flush de la session"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
msgstr "commit de la transaction"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
-msgstr "Fermeture de la session (Close)"
+msgstr "fermeture de la session "
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
-msgstr "Gestion des exceptions"
+msgstr "gestion des exceptions"
#. Tag: para
-#: transactions.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
"at transaction demarcation and exception handling in both managed and non-"
"managed environments."
msgstr ""
-"La synchronisation de bdd depuis la session (flush) a déjà été expliqué, "
-"nous nous attarderons maintenant à la démarcation des transactions et à la "
-"gestion des exceptions dans les environnements légers et les environnements "
-"J2EE."
+"La notion de \"Flushing\" a déjà été expliquée, nous abordons maintenant la "
+"démarcation des transactions et la gestion des exceptions dans les "
+"environnements gérés et non-gérés."
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
-msgstr "Environnement non managé"
+msgstr "Environnement non gérés"
#. Tag: para
-#: transactions.xml:453
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
"connections are usually handled by simple (i.e., non-DataSource) connection "
@@ -876,36 +846,12 @@
"transaction handling idiom looks like this:"
msgstr ""
"Si la couche de persistance Hibernate s'exécute dans un environnement non "
-"managé, les connexions à la base de données seront généralement prises en "
-"charge par le mécanisme de pool d'Hibernate. La gestion de la session et de "
-"la transaction se fera donc de la manière suivante:"
+"géré, les connexions à la base de données seront généralement prises en "
+"charge par le mécanisme de pool d'Hibernate qui obtient les connexions. La "
+"gestion de la session et de la transaction se fera donc de la manière "
+"suivante : "
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -918,46 +864,25 @@
msgstr ""
"Vous n'avez pas à invoquer <literal>flush()</literal> explicitement sur la "
"<literal>Session</literal> - l'appel de <literal>commit()</literal> "
-"déclenchera automatiquement la synchronisation (selon le <xref linkend="
-"\"objectstate-flushing\">FlushMode</xref> de la session. Un appel à "
-"<literal>close()</literal> marque la fin de la session. La conséquence "
-"directe est que la connexion à la base de données sera relachée par la "
-"session. Ce code est portable est fonctionne dans les environnements non "
-"managé ET les environnements JTA."
+"déclenchera automatiquement la synchronisation (selon le FlushMode <xref "
+"linkend=\"objectstate-flushing\" /> de la session. Un appel à <literal>close"
+"()</literal> marque la fin de la session. La conséquence directe de "
+"<literal>close()</literal> est que la connexion à la base de données sera "
+"relâchée par la session. Ce code est portable et fonctionne dans les "
+"environnements non gérés et les environnements JTA. "
#. Tag: para
-#: transactions.xml:471
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
"\"current session\" context management:"
msgstr ""
-"Une solution plus flexible est la gestion par contexte fourni par Hibernate "
-"que nous avons déjà rencontré:"
+"Une solution plus flexible est la gestion par contexte de la session "
+"courante intégrée, fournie par Hibernate que nous avons déjà rencontrée :"
-#. Tag: programlisting
-#: transactions.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:478
-#, fuzzy, no-c-format
-msgid ""
"You will not see these code snippets in a regular application; fatal "
"(system) exceptions should always be caught at the \"top\". In other words, "
"the code that executes Hibernate calls in the persistence layer, and the "
@@ -968,19 +893,18 @@
"this chapter."
msgstr ""
"Vous ne verrez probablement jamais ces exemples de code dans les "
-"applications; les exceptions fatales (exceptions du système) ne devraient "
+"applications ; les exceptions fatales (exceptions du système) ne devraient "
"être traitées que dans la couche la plus \"haute\". En d'autres termes, le "
"code qui exécute les appels à Hibernate (à la couche de persistance) et le "
"code qui gère les <literal>RuntimeException</literal> (qui ne peut "
"généralement effectuer qu'un nettoyage et une sortie) sont dans des couches "
"différentes. La gestion du contexte courant par Hibernate peut simplifier "
-"notablement ce design, puisque vous devez accéder à la gestion des "
-"exceptions de la <literal>SessionFactory</literal>, ce qui est décrit plus "
-"tard dans ce chapitre."
+"notablement ce design, puisqu'il vous suffit d'accéder à la "
+"<literal>SessionFactory</literal>. La gestion des exceptions est traitée "
+"plus loin dans ce chapitre. "
#. Tag: para
-#: transactions.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
"literal>, which is the default, and for the second example select <literal>"
@@ -989,18 +913,16 @@
msgstr ""
"Notez que vous devriez sélectionner <literal>org.hibernate.transaction."
"JDBCTransactionFactory</literal> (le défaut), pour le second exemple "
-"<literal>\"thread\"</literal> comme <literal>hibernate."
-"current_session_context_class</literal>."
+"<literal>\"thread\"</literal> comme votre <literal>hibernate."
+"current_session_context_class</literal>. "
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
msgstr "Utilisation de JTA"
#. Tag: para
-#: transactions.xml:499
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
"EJB session beans), every datasource connection obtained by Hibernate will "
@@ -1008,14 +930,14 @@
"standalone JTA implementation and use it without EJB. Hibernate offers two "
"strategies for JTA integration."
msgstr ""
-"Si votre couche de persistance s'exécute dans un serveur d'application (par "
-"exemple, derrière un EJB Session Bean), toutes les datasource utilisées par "
-"Hibernate feront automatiquement partie de transactions JTA globales. "
-"Hibernate propose deux stratégies pour réussir cette intégration."
+"Si votre couche de persistance s'exécute dans un serveur d'applications (par "
+"exemple, derrière un EJB Session Bean), toutes les datasources utilisées par "
+"Hibernate feront automatiquement partie de transactions JTA globales. Vous "
+"pouvez également installer une implémentation autonome JTA et l'utiliser "
+"sans l'EJB.Hibernate propose deux stratégies pour réussir l'intégration JTA. "
#. Tag: para
-#: transactions.xml:506
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
"application server to start and end a BMT transaction if you use the "
@@ -1023,94 +945,37 @@
"identical to the non-managed environment."
msgstr ""
"Si vous utilisez des transactions gérées par un EJB (bean managed "
-"transactions - BMT), Hibernate informera le serveur d'application du début "
+"transactions - BMT), Hibernate informera le serveur d'applications du début "
"et de la fin des transactions si vous utilisez l'API <literal>Transaction</"
-"literal> . Ainsi, le code de gestion des transactions sera identique dans "
-"les deux types d'environnements."
+"literal>. Ainsi, le code de gestion des transactions sera identique dans les "
+"environnements non gérés. "
-#. Tag: programlisting
-#: transactions.xml:512
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:514
-#, fuzzy, no-c-format
-msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
"the <literal>getCurrentSession()</literal> functionality for easy context "
"propagation, use the JTA <literal>UserTransaction</literal> API directly:"
-msgstr "Ou encore, avec la gestion automatique de contexte:"
-
-#. Tag: programlisting
-#: transactions.xml:520
-#, no-c-format
-msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
msgstr ""
+"Si vous souhaitez utiliser une <literal>Session</literal> couplée à la "
+"transaction, c'est à dire, utiliser la fonctionnalité "
+"<literal>getCurrentSession()</literal> pour la propagation facile du "
+"contexte, vous devez utiliser l'API JTA <literal>UserTransaction</literal> "
+"directement :"
#. Tag: para
-#: transactions.xml:522
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
"descriptors, not programmatically. The code is reduced to:"
msgstr ""
"Avec CMT, la démarcation des transactions est faite dans les descripteurs de "
-"déploiement des Beans Sessions et non de manière programmmatique, ceci "
-"réduit le code:"
+"déploiement des Beans Sessions et non de manière programmatique, par "
+"conséquent le code est réduit à : "
-#. Tag: programlisting
-#: transactions.xml:527
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:529
-#, fuzzy, no-c-format
-msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
"<literal>RuntimeException</literal> thrown by a session bean method tells "
"the container to set the global transaction to rollback. <emphasis>You do "
@@ -1118,15 +983,16 @@
"BMT or CMT, and you get automatic propagation of the \"current\" Session "
"bound to the transaction.</emphasis>"
msgstr ""
-"Dans un EJB CMT même le rollback intervient automatiquement, puisqu'une "
+"Dans un EJB CMT, le rollback aussi intervient automatiquement, puisqu'une "
"<literal>RuntimeException</literal> non traitée et soulevée par une méthode "
"d'un bean session indique au conteneur d'annuler la transaction globale. "
"<emphasis>Ceci veut donc dire que vous n'avez pas à utiliser l'API "
-"<literal>Transaction</literal> d'Hibernate dans CMT.</emphasis>"
+"<literal>Transaction</literal> de Hibernate dans CMT ou BMT et vous obtenez "
+"la propagation automatique de la session courante liée à la transaction.</"
+"emphasis>"
#. Tag: para
-#: transactions.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
"hibernate.transaction.JTATransactionFactory</literal> if you use JTA "
@@ -1140,16 +1006,15 @@
"<literal>org.hibernate.transaction.JTATransactionFactory</literal> dans un "
"environnement BMT ou <literal>org.hibernate.transaction."
"CMTTransactionFactory</literal> dans un environnement CMT là où vous "
-"configurez votre transaction factory Hibernate. N'oubliez pas non plus de "
-"spécifier le paramètre <literal>org.hibernate.transaction."
-"manager_lookup_class</literal> . De plus, assurez vous de fixez votre "
+"configurez votre fabrique de transaction Hibernate. N'oubliez pas non plus "
+"de spécifier le paramètre <literal>org.hibernate.transaction."
+"manager_lookup_class</literal> . De plus, assurez vous de fixer votre "
"<literal>hibernate.current_session_context_class</literal> soit à <literal>"
"\"jta\"</literal> ou de ne pas le configurer (compatibilité avec les "
-"versions précédentes)."
+"versions précédentes). "
#. Tag: para
-#: transactions.xml:546
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
"JTA environment. There is one caveat to the use of <literal>after_statement</"
@@ -1165,28 +1030,26 @@
"JTA or CMT code.)"
msgstr ""
"La méthode <literal>getCurrentSession()</literal> a un inconvénient dans les "
-"environnement JTA. Il y a une astuce qui est d'utiliser un mode de "
+"environnements JTA. Il y a une astuce qui est d'utiliser un mode de "
"libération de connexion <literal>after_statement</literal> , qui est alors "
"utilisé par défaut. Du à une étrange limitation de la spec JTA, il n'est pas "
-"possible pour Hibernate de nettoyer et ferme automatiquement un "
+"possible à Hibernate de nettoyer automatiquement un "
"<literal>ScrollableResults</literal> ouvert ou une instance "
"d'<literal>Iterator</literal> retournés <literal>scroll()</literal> ou "
"<literal>iterate()</literal>. Vous <emphasis>devez</emphasis> libérer le "
"curseur base de données sous jacent ou invoquer <literal>Hibernate.close"
"(Iterator)</literal> explicitement depuis un bloc <literal>finally</"
-"literal>. (Bien sur, la plupart des applications peuvent éviter d'uiliser "
-"<literal>scroll()</literal> ou <literal>iterate()</literal> dans un code "
-"CMT.)"
+"literal>. (Bien sur, la plupart des applications peuvent éviter d'utiliser "
+"<literal>scroll()</literal> ou <literal>iterate()</literal> dans un code JTA "
+"ou CMT.) "
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "Gestion des exceptions"
#. Tag: para
-#: transactions.xml:564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
"<literal>SQLException</literal>, immediately rollback the database "
@@ -1199,17 +1062,16 @@
msgstr ""
"Si une <literal>Session</literal> lance une exception (incluant les "
"exceptions du type <literal>SQLException</literal> ou d'un sous-type), vous "
-"devez immédiatement faire le rollback de la transaction, appeler "
+"devez immédiatement effectuer le rollback de la transaction, appeler "
"<literal>Session.close()</literal> et relâcher les références sur l'objet "
"<literal>Session</literal> . La <literal>Session</literal> contient des "
"méthodes pouvant la mettre dans un état inutilisable. Vous devez considérer "
"qu'<emphasis>aucune</emphasis> exception lancée par Hibernate n'est "
-"traitable. Assurez-vous de fermer la session en faisant l'appel à "
-"<literal>close()</literal> dans un bloc <literal>finally</literal> ."
+"traitable comme recouvrable. Assurez-vous de fermer la session en appelant "
+"<literal>close()</literal> dans un bloc <literal>finally</literal> . "
#. Tag: para
-#: transactions.xml:575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
"that can occur in a Hibernate persistence layer, is an unchecked exception. "
@@ -1222,22 +1084,21 @@
"unchecked exceptions that are not a <literal>HibernateException</literal>. "
"These are not recoverable and appropriate action should be taken."
msgstr ""
-"L'exception <literal>HibernateException</literal> , qui englobe la plupart "
+"L'exception <literal>HibernateException</literal>, qui englobe la plupart "
"des exceptions pouvant survenir dans la couche de persistance Hibernate, est "
-"une exception non vérifiée (Ceci n'était pas le cas dans certaines versions "
-"antérieures de Hibernate.) Il est de notre avis que nous ne devrions pas "
-"forcer un développeur à gérer une exception qu'il ne peut de toute façon pas "
-"traiter dans une couche technique. Dans la plupart des applications, les "
-"exceptions non vérifiées et les exceptions fatales sont gérées en amont du "
-"processus (dans les couches hautes) et un message d'erreur est alors affiché "
-"à l'usager (ou un traitement alternatif est invoqué.) Veuillez noter "
-"qu'Hibernate peut également lancer des exceptions non vérifiées d'un autre "
-"type que <literal>HibernateException</literal> . Celles-ci sont également "
-"non traitables et vous devez les traiter comme telles."
+"une exception non vérifiée (Ceci n'était pas le cas dans des versions "
+"antérieures de Hibernate.) Nous pensons que nous ne devrions pas forcer un "
+"développeur à gérer une exception qu'il ne peut de toute façon pas traiter "
+"dans une couche technique. Dans la plupart des systèmes, les exceptions non "
+"vérifiées et les exceptions fatales sont gérées en amont du processus (dans "
+"les couches hautes) et un message d'erreur est alors affiché à l'usager (ou "
+"un traitement alternatif est invoqué.) Veuillez noter que Hibernate peut "
+"également lancer des exceptions non vérifiées d'un autre type que "
+"<literal>HibernateException</literal>. Celles-ci sont également non "
+"traitables et vous devez les traiter comme telles. "
#. Tag: para
-#: transactions.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
"with the database in a <literal>JDBCException</literal>. In fact, Hibernate "
@@ -1256,78 +1117,72 @@
msgstr ""
"Hibernate englobe les <literal>SQLException</literal> s lancées lors des "
"interactions directes avec la base de données dans des exceptions de type: "
-"<literal>JDBCException</literal> . En fait, Hibernate essaiera de convertir "
+"<literal>JDBCException</literal>. En fait, Hibernate essaiera de convertir "
"l'exception dans un sous-type plus significatif de <literal>JDBCException</"
-"literal> . L'exception <literal>SQLException</literal> sous-jacente est "
+"literal>. L'exception <literal>SQLException</literal> sous-jacente est "
"toujours disponible via la méthode <literal>JDBCException.getCause()</"
-"literal> . Cette conversion est faite par un objet de type "
-"<literal>SQLExceptionConverter</literal> , qui est rattaché à l'objet "
-"<literal>SessionFactory</literal> . Par défaut, le "
-"<literal>SQLExceptionConverter</literal> est associé au dialecte de BD "
+"literal>. Hibernate convertit le <literal>SQLExceptionConverter</literal> en "
+"une sous-classe <literal>JDBCException</literal>, en utilisant le "
+"<literal>SQLExceptionConverter</literal> qui est rattaché à l'objet "
+"<literal>SessionFactory</literal>. Par défaut, le "
+"<literal>SQLExceptionConverter</literal> est défini par le dialecte "
"configuré dans Hibernate. Toutefois, il est possible de fournir sa propre "
"implémentation de l'interface. (Veuillez vous référer à la javadoc sur la "
"classe <literal>SQLExceptionConverterFactory</literal> pour plus de détails. "
-"Les sous-types standard de <literal>JDBCException</literal> sont:"
+"Les sous-types standard de <literal>JDBCException</literal> sont :"
#. Tag: para
-#: transactions.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
"underlying JDBC communication."
msgstr ""
-"<literal>JDBCConnectionException</literal> - Indique une erreur de "
-"communication avec la couche JDBC sous-jacente."
+"<literal>JDBCConnectionException</literal> - indique une erreur de "
+"communication avec la couche JDBC sous-jacente. "
#. Tag: para
-#: transactions.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
"problem with the issued SQL."
msgstr ""
-"<literal>SQLGrammarException</literal> - Indique un problème de grammaire ou "
-"de syntaxe avec la requête SQL envoyée."
+"<literal>SQLGrammarException</literal> - indique un problème de grammaire ou "
+"de syntaxe avec la requête SQL envoyée. "
#. Tag: para
-#: transactions.xml:615
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
"integrity constraint violation."
msgstr ""
-"<literal>ConstraintViolationException</literal> - Indique une violation de "
-"contrainte d'intégrité."
+"<literal>ConstraintViolationException</literal> - indique une violation de "
+"contrainte d'intégrité. "
#. Tag: para
-#: transactions.xml:621
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
"lock level necessary to perform the requested operation."
msgstr ""
-"<literal>LockAcquisitionException</literal> - Indique une erreur de "
-"verrouillage lors de l'éxécution de la requête."
+"<literal>LockAcquisitionException</literal> - indique une erreur de "
+"verrouillage lors de l'exécution de la requête. "
#. Tag: para
-#: transactions.xml:627
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
"fall into any of the other categories."
msgstr ""
-"<literal>GenericJDBCException</literal> - Indique une erreur générique JDBC "
-"d'une autre catégorie."
+"<literal>GenericJDBCException</literal> - indique une erreur générique ne "
+"correspondant à aucune autre catégorie. "
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
msgstr "Timeout de transaction"
#. Tag: para
-#: transactions.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
"never provided for non-managed code, is transaction timeout. Transaction "
@@ -1340,64 +1195,38 @@
"transaction timeout to JTA. This functionality is abstracted by the "
"Hibernate <literal>Transaction</literal> object."
msgstr ""
-"L'un des avantages fournis par les environnements transactionnels JTA (tels "
-"les containers EJB) est la gestion du timeout de transaction. La gestion des "
-"dépassements de temps de transaction vise à s'assurer qu'une transaction "
-"agissant incorrectement ne viendra pas bloquer indéfiniment les ressources "
-"de l'application. Hibernate ne peut fournir cette fonctionnalité dans un "
-"environnement transactionnel non-JTA. Par contre, Hibernate gère les "
-"opérations d'accès aux données en allouant un temps maximal aux requêtes "
-"pour s'exécuter. Ainsi, une requête créant de l'inter blocage ou retournant "
-"de très grandes quantités d'information pourrait être interrompue. Dans un "
-"environnement transactionnel JTA, Hibernate peut déléguer au gestionnaire de "
-"transaction le soin de gérer les dépassements de temps. Cette fonctionnalité "
-"est abstraite par l'objet <literal>Transaction</literal> ."
+"Une des caractéristiques extrêmement importante fournie dans les "
+"environnements gérés tels les EJB, est la gestion du timeout de transaction "
+"qui n'est jamais fournie pour le code non géré. La gestion des dépassements "
+"de temps de transaction vise à s'assurer qu'une transaction agissant "
+"incorrectement ne viendra pas bloquer indéfiniment les ressources de "
+"l'application et ne retourner aucune réponse à l'utilisateur. Hibernate ne "
+"peut fournir cette fonctionnalité dans un environnement transactionnel non-"
+"JTA. Par contre, Hibernate gère les opérations d'accès aux données en "
+"allouant un temps maximal aux requêtes pour s'exécuter. Ainsi, une requête "
+"créant de l'inter blocage ou retournant de très grandes quantités "
+"d'informations pourrait être interrompue. Dans un environnement géré, "
+"Hibernate peut déléguer au gestionnaire de transaction JTA, le soin de gérer "
+"les dépassements de temps. Cette fonctionnalité est abstraite par l'objet "
+"<literal>Transaction</literal>."
-#. Tag: programlisting
-#: transactions.xml:652
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:654
-#, fuzzy, no-c-format
-msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
"transaction timeouts must be defined declaratively."
msgstr ""
"Notez que <literal>setTimeout()</literal> ne peut pas être appelé d'un EJB "
"CMT, puisque le timeout des transaction doit être spécifié de manière "
-"déclarative."
+"déclarative. "
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
-msgstr "Contrôle de consurrence optimiste"
+msgstr "Contrôle de concurrence optimiste"
#. Tag: para
-#: transactions.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
"scalability, is optimistic concurrency control with versioning. Version "
@@ -1410,22 +1239,22 @@
"La gestion optimiste des accès concurrents avec versionnage est la seule "
"approche pouvant garantir l'extensibilité des applications à haut niveau de "
"charge. Le système de versionnage utilise des numéros de version ou "
-"l'horodatage pour détecter les mises à jour causant des conflits avec "
-"d'autres actualisations antérieures. Hibernate propose trois approches pour "
-"l'écriture de code applicatif utilisant la gestion optimiste d'accès "
-"concurrents. Le cas d'utilisation décrit plus bas fait mention de "
-"conversation, mais le versionnage peut également améliorer la qualité d'une "
-"application en prévenant la perte de mises à jour."
+"l'horodatage pour détecter les mise à jour causant des conflits avec "
+"d'autres actualisations antérieures (et pour éviter la perte de mise à "
+"jour). Hibernate propose trois approches possibles pour l'écriture de code "
+"applicatif utilisant la gestion optimiste d'accès concurrents. Le cas "
+"d'utilisation décrit plus bas fait mention de longues conversations, mais le "
+"versionnage peut également améliorer la qualité d'une application en "
+"prévenant la perte de mise à jour dans les transactions uniques de base de "
+"données. "
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
-msgstr "Gestion du versionnage au niveau applicatif"
+msgstr "Vérification du versionnage au niveau applicatif"
#. Tag: para
-#: transactions.xml:679
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
"the database occurs in a new <literal>Session</literal> and the developer is "
@@ -1435,48 +1264,28 @@
"least efficient in terms of database access. It is the approach most similar "
"to entity EJBs."
msgstr ""
-"Dans cet exemple d'implémentation utilisant peu les fonctionnalités "
-"d'Hibernate, chaque interaction avec la base de données se fait en utilisant "
+"Dans cet exemple d'implémentation utilisant peu les fonctionnalités de "
+"Hibernate, chaque interaction avec la base de données se fait en utilisant "
"une nouvelle <literal>Session</literal> et le développeur doit recharger les "
-"données persistantes à partir de la BD avant de les manipuler. Cette "
-"implémentation force l'application à vérifier la version des objets afin de "
-"maintenir l'isolation transactionnelle. Cette approche, semblable à celle "
-"retrouvée pour les EJB, est la moins efficace de celles présentées dans ce "
-"chapitre."
+"données persistantes à partir de la base de données avant de les manipuler. "
+"Cette implémentation force l'application à vérifier la version des objets "
+"afin de maintenir l'isolation transactionnelle. Cette approche, semblable à "
+"celle retrouvée pour les EJB, est la moins efficace parmi celles qui sont "
+"présentées dans ce chapitre. "
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
"version></literal>, and Hibernate will automatically increment it during "
"flush if the entity is dirty."
msgstr ""
-"Le mapping de la propriété <literal>version</literal> est fait via "
+"Le mappage de la propriété <literal>version</literal> est fait via "
"<literal><version></literal> et Hibernate l'incrémentera "
"automatiquement à chaque flush() si l'entité doit être mise à jour."
#. Tag: para
-#: transactions.xml:696
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
"require version checking, you can use this approach and skip the version "
@@ -1494,11 +1303,10 @@
"cette approche pourrait rendre perplexe les utilisateurs de l'application "
"car ils pourraient perdre des données mises à jour sans qu'aucun message "
"d'erreur ne leur soit présenté et sans avoir la possibilité de fusionner les "
-"données."
+"données. "
#. Tag: para
-#: transactions.xml:705
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
"practical for most applications. Often not only single instances, but "
@@ -1511,19 +1319,17 @@
"approche n'est pas valable pour la plupart des applications. De manière "
"générale, les applications ne cherchent pas à actualiser de simples objets "
"sans relations, elles le font généralement pour de larges graphes d'objets. "
-"Pour toute application utilisant le paradigme des conversations ou des "
-"objets détachés, Hibernate peut gérer automatiquement la vérification des "
-"versions d'objets."
+"Hibernate peut gérer automatiquement la vérification des versions d'objets "
+"en utilisant soit une <literal>Session</literal> longue, soit des instances "
+"détachées comme paradigme des conversations. "
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
msgstr "Les sessions longues et le versionnage automatique."
#. Tag: para
-#: transactions.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
"that are used for the whole conversation are known as <emphasis>session-per-"
@@ -1534,17 +1340,17 @@
"conversation with non-stale data."
msgstr ""
"Dans ce scénario, une seule instance de <literal>Session</literal> et des "
-"objets persistants est utilisée pour toute l'application. Hibernate vérifie "
-"la version des objets persistants avant d'effectuer le flush() et lance une "
-"exception si une modification concurrente est détectée. Il appartient alors "
-"au développeur de gérer l'exception. Les traitements alternatifs "
-"généralement proposés sont alors de permettre à l'usager de faire la fusion "
-"des données ou de lui offrir de recommencer son travail à partie des données "
-"les plus récentes dans la BD."
+"objets persistants est utilisée pour toute la conversation, connue sous "
+"<emphasis>session-par-conversation</emphasis>. Hibernate vérifie la version "
+"des objets persistants avant d'effectuer le flush() et lance une exception "
+"si une modification concurrente est détectée. Il appartient alors au "
+"développeur de gérer l'exception. Les traitements alternatifs généralement "
+"proposés sont alors de permettre à l'usager de faire la fusion des données "
+"ou de lui offrir de recommencer son travail à partie des données les plus "
+"récentes dans la base de données. "
#. Tag: para
-#: transactions.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
"connection when waiting for user interaction. This approach is the most "
@@ -1552,32 +1358,16 @@
"check or reattach detached instances, nor does it have to reload instances "
"in every database transaction."
msgstr ""
-"Il est à noter que lorsqu'une application est en attente d'une action de la "
-"part de l?usager, La <literal>Session</literal> n'est pas connectée à la "
-"couche JDBC sous-jacente. C'est la manière la plus efficace de gérer les "
-"accès à la base de données. L'application ne devrait pas se préoccuper du "
-"versionnage des objets, de la réassociation des objets détachés, ni du "
-"rechargement de tous les objets à chaque transaction."
+"Notez que lorsqu'une application est en attente d'une action de la part de "
+"l'usager, la <literal>Session</literal> n'est pas connectée à la couche JDBC "
+"sous-jacente. C'est la manière la plus efficace de gérer les accès à la base "
+"de données. L'application ne devrait pas se préoccuper du versionnage des "
+"objets, ou du rattachement des objets détachés, ni du rechargement de tous "
+"les objets à chaque transaction. "
-#. Tag: programlisting
-#: transactions.xml:735
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:736
-#, fuzzy, no-c-format
-msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
"was loaded in. Beginning a new database transaction on an old session "
"obtains a new connection and resumes the session. Committing a database "
@@ -1604,11 +1394,15 @@
"un appel à <literal>Session.lock()</literal> en mode <literal>LockMode.READ</"
"literal> pour tout objet ayant pu être modifié par une autre transaction. Il "
"n'est pas nécessaire de verrouiller les données que vous désirez mettre à "
-"jour."
+"jour. En général, vous configurerez<literal>FlushMode.NEVER</literal> sur "
+"une <literal>Session</literal> étendue, de façon que seul le dernier cycle "
+"de transaction de la base de données puissent persister toutes les "
+"modifications effectuées dans cette conversation. Par conséquent, cette "
+"dernière transaction inclura l'opération <literal>flush()</literal>, de même "
+"que <literal>close()</literal> la session pour finir la conversation."
#. Tag: para
-#: transactions.xml:751
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
"be stored during user think time (for example, an <literal>HttpSession</"
@@ -1618,36 +1412,33 @@
"<literal>Session</literal> only for a single conversation as it will soon "
"have stale data."
msgstr ""
-"Si des appels implicites aux méthodes <literal>disconnect()</literal> et "
-"<literal>reconnect()</literal> sont trop coûteux, vous pouvez les éviter en "
-"utilisant <literal>hibernate.connection.release_mode</literal> ."
+"Ce modèle peut présenter des problèmes si la <literal>Session</literal> est "
+"trop volumineuse pour être stockée entre les actions de l'usager. Plus "
+"spécifiquement, une session <literal>HttpSession</literal> se doit d'être la "
+"plus petite possible. Puisque la <literal>Session</literal> joue "
+"obligatoirement le rôle de mémoire cache de premier niveau et contient à ce "
+"titre tous les objets chargés, il est préférable de n'utiliser une "
+"<literal>Session</literal> que pour une seule conversation, car les objets "
+"risquent d'y être rapidement périmés."
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Remarque"
#. Tag: para
-#: transactions.xml:763
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
"reconnection of a <literal>Session</literal>. These methods are deprecated, "
"as beginning and ending a transaction has the same effect."
msgstr ""
-"Ce pattern peut présenter des problèmes si la <literal>Session</literal> est "
-"trop volumineuse pour être stockée entre les actions de l'usager. Plus "
-"spécifiquement, une session <literal>HttpSession</literal> se doit d'être la "
-"plus petite possible. Puisque la <literal>Session</literal> joue "
-"obligatoirement le rôle de mémoire cache de premier niveau et contient à ce "
-"titre tous les objets chargés, il est préférable de n'utiliser cette "
-"stratégie que pour quelques cycles de requêtes car les objets risquent d'y "
-"être rapidement périmés."
+"Notez que des versions précédentes de Hibernate exigeaient une déconnexion "
+"explicite et une reconnexion d'une <literal>Session</literal>. Ces méthodes "
+"sont périmées, puisque commencer et terminer une transaction a le même effet."
#. Tag: para
-#: transactions.xml:769
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
"layer. Use an EJB stateful session bean to hold the <literal>Session</"
@@ -1657,13 +1448,13 @@
msgstr ""
"Notez que la <literal>Session</literal> déconnectée devrait être conservée "
"près de la couche de persistance. Autrement dit, utilisez un EJB stateful "
-"pour conserver la <literal>Session</literal> et évitez de la sérialiser et "
-"de la transférer à la couche de présentation (i.e. Il est préférable de ne "
-"pas la conserver dans la session <literal>HttpSession</literal> .)"
+"pour conserver la <literal>Session</literal> dans un environnement 3 niveaux "
+"et évitez de la sérialiser et de la transférer à la couche de présentation "
+"(c'est-à -dire qu'il est préférable de ne pas la conserver dans la session "
+"<literal>HttpSession</literal> .) "
#. Tag: para
-#: transactions.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
"emphasis>, is more difficult to implement with automatic current session "
@@ -1671,20 +1462,18 @@
"<literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki "
"for examples."
msgstr ""
-"The extended session pattern, or <emphasis>session-per-conversation</"
-"emphasis>, is more difficult to implement with automatic current session "
-"context management. You need to supply your own implementation of the "
-"<literal>CurrentSessionContext</literal> for this, see the Hibernate Wiki "
-"for examples."
+"Le modèle de session étendue, ou <emphasis>session-par-conversation</"
+"emphasis>, est plus difficile à implémenter avec la gestion automatique de "
+"contexte de session courante. Ã cet effet, vous devez fournir votre propre "
+"implémentation de<literal>CurrentSessionContext</literal>, pour des exemples "
+"consultez Hibernate Wiki. "
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr "Les objets détachés et le versionnage automatique"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1701,37 +1490,21 @@
"doit pouvoir manipuler l'état des instances détachées ayant été chargées "
"antérieurement via une autre session. Pour ce faire, ces objets persistants "
"doivent être rattachés à la <literal>Session</literal> courante en utilisant "
-"<literal>Session.update()</literal> , <literal>Session.saveOrUpdate()</"
-"literal> , ou <literal>Session.merge()</literal> ."
+"<literal>Session.update()</literal>, <literal>Session.saveOrUpdate()</"
+"literal>, ou <literal>Session.merge()</literal> ."
-#. Tag: programlisting
-#: transactions.xml:797
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:799
-#, fuzzy, no-c-format
-msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
"exception if conflicting updates occurred."
msgstr ""
"Encore une fois, Hibernate vérifiera la version des instances devant être "
"actualisées durant le flush(). Une exception sera lancée si des conflits "
-"sont détectés."
+"sont détectés. "
#. Tag: para
-#: transactions.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
"literal>, and use <literal>LockMode.READ</literal> (performing a version "
@@ -1742,17 +1515,15 @@
"<literal>update()</literal> et utiliser le mode <literal>LockMode.READ</"
"literal> (qui lancera une vérification de version, en ignorant tous les "
"niveaux de mémoire cache) si vous êtes certain que l'objet n'a pas été "
-"modifié."
+"modifié. "
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr "Personnaliser le versionnage automatique"
#. Tag: para
-#: transactions.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
"properties and collections by setting the <literal>optimistic-lock</literal> "
@@ -1761,12 +1532,12 @@
msgstr ""
"Vous pouvez désactiver l'incrémentation automatique du numéro de version de "
"certains attributs et collections en mettant la valeur du paramètre de "
-"mapping <literal>optimistic-lock</literal> Ã false. Hibernate cessera ainsi "
-"d'incrémenter leur numéro de version s'ils sont mis à jour."
+"mapping <literal>optimistic-lock</literal> Ã <literal>false</literal>. "
+"Hibernate cessera ainsi d'incrémenter leur numéro de version si la propriété "
+"est dirty. "
#. Tag: para
-#: transactions.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
"applications might access the same database and will not know how to handle "
@@ -1783,35 +1554,33 @@
"de données sont statiques et ne peuvent être modifiés. Il existe aussi des "
"cas où plusieurs applications doivent accéder à la même base de données, "
"mais certaines d'entre elles ne peuvent gérer les numéros de version ou les "
-"champs horodatés. Dans les deux cas, le versionnage ne peut être implanté "
-"par le rajout d'une colonne dans la base de données. Afin de forcer la "
-"vérification de version dans un système sans en faire le mapping, mais en "
-"forçant une comparaison des états de tous les attributs d'une entité, vous "
-"pouvez utiliser l'attribut <literal>optimistic- lock=\"all\"</literal> sous "
-"l'élément <literal><class></literal> . Veuillez noter que cette "
-"manière de gérer le versionnage ne peut être utilisée que si l'application "
-"utilises de longues sessions, lui permettant de comparer l'ancien état et le "
-"nouvel état d'une entité. L'utilisation d'un pattern <literal>session-per-"
-"request-with-detached- objects</literal> devient alors impossible."
+"champs horodatés. Dans les deux cas, le versionnage ne peut se fier à une "
+"colonne particulière dans une table. Afin de forcer la vérification de "
+"version dans un système sans en faire le mappage, mais en forçant une "
+"comparaison des états de tous les attributs d'une entité, vous pouvez "
+"utiliser l'attribut <literal>optimistic- lock=\"all\"</literal> dans le "
+"mappage <literal><class></literal>. Veuillez noter que cette manière "
+"de gérer le versionnage ne peut être utilisée que si l'application utilise "
+"de longues sessions, lui permettant de comparer l'ancien état et le nouvel "
+"état d'une entité. L'utilisation d'un modèle <literal>session-per-request-"
+"with-detached- objects</literal> devient alors impossible. "
#. Tag: para
-#: transactions.xml:834
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
"have been made do not overlap. If you set <literal>optimistic-lock=\"dirty"
"\"</literal> when mapping the <literal><class></literal>, Hibernate "
"will only compare dirty fields during flush."
msgstr ""
-"Il peut être souhaitable de permettre les modifications concurrentes lorsque "
-"des champs distincts sont modifiés. En mettant la propriété "
-"<literal>optimistic-lock=\"dirty\"</literal> dans l'élément <literal><"
-"class></literal> , Hibernate ne fera la comparaison que des champs devant "
-"être actualisés lors du flush()."
+"Il peut être souhaitable de permettre les modifications concurrentes du "
+"moment que les modifications ne se chevauchent pas. En configurant la "
+"propriété à <literal>optimistic-lock=\"dirty\"</literal> quand vous mappez "
+"le <literal><class></literal>, Hibernate ne fera la comparaison que "
+"des champs devant être actualisés lors du flush."
#. Tag: para
-#: transactions.xml:840
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
"field comparison, Hibernate uses a single <literal>UPDATE</literal> "
@@ -1828,29 +1597,28 @@
msgstr ""
"Dans les deux cas: en utilisant une colonne de version/horodatée ou via la "
"comparaison de l'état complet de l'objet ou de ses champs modifiés, "
-"Hibernate ne créera qu'une seule commande d'UPDATE par entité avec la clause "
-"WHERE appropriée pour mettre à jour l'entité <emphasis>ET</emphasis> en "
-"vérifier la version. Si vous utilisez la persistance transitive pour "
-"propager l'évènement de rattachement à des entités associées, il est "
-"possible qu'Hibernate génère des commandes d'UPDATE inutiles. Ceci n'est "
-"généralement pas un problème, mais certains déclencheurs <emphasis>on "
-"update</emphasis> dans la base de données pourraient être activés même si "
-"aucun changement n'était réellement persisté sur des objets associés. Vous "
-"pouvez personnaliser ce comportement en indiquant <literal>select-before- "
-"update=\"true\"</literal> dans l'élément de mapping <literal><class></"
-"literal> . Ceci forcera Hibernate à faire le SELECT de l'instance afin de "
-"s'assurer que l'entité doit réellement être actualisée avant de lancer la "
-"commande d'UPDATE."
+"Hibernate ne créera qu'une seule commande <literal>UPDATE</literal> par "
+"entité avec la clause <literal>WHERE</literal> appropriée pour vérifier la "
+"version et mettre à jour les informations. Si vous utilisez la persistance "
+"transitive pour propager l'évènement de rattachement à des entités "
+"associées, il est possible que Hibernate génère des commandes de mise à jour "
+"inutiles. Ceci n'est généralement pas un problème, mais certains "
+"déclencheurs <emphasis>on update</emphasis> dans la base de données "
+"pourraient être activés même si aucun changement n'était réellement persisté "
+"sur des objets détachés. Vous pouvez personnaliser ce comportement en "
+"indiquant <literal>select-before- update=\"true\"</literal> dans l'élément "
+"de mappage <literal><class></literal>. Ceci forcera Hibernate à faire "
+"le <literal>SELECT</literal> de l'instance afin de s'assurer que l'entité "
+"doit réellement être actualisée avant de lancer la commande de mise à jour "
+"de l'enregistrement. "
#. Tag: title
-#: transactions.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pessimistic locking"
-msgstr "Verouillage pessimiste"
+msgstr "Verrouillage pessimiste "
#. Tag: para
-#: transactions.xml:860
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
"strategies. It is usually enough to specify an isolation level for the JDBC "
@@ -1863,42 +1631,38 @@
"définir le niveau d'isolation pour les connexions JDBC et de laisser ensuite "
"la base de donnée effectuer son travail. Toutefois, certains utilisateurs "
"avancés peuvent vouloir obtenir un verrouillage pessimiste exclusif sur un "
-"enregistrement et le réobtenir au lancement d'une nouvelle transaction."
+"enregistrement, ou le ré-obtenir au lancement d'une nouvelle transaction. "
#. Tag: para
-#: transactions.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
"lock objects in memory."
msgstr ""
"Hibernate utilisera toujours le mécanisme de verrouillage de la base de "
-"données et ne verrouillera jamais les objets en mémoire!"
+"données et ne verrouillera jamais les objets en mémoire."
#. Tag: para
-#: transactions.xml:872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
"can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
"La classe <literal>LockMode</literal> définit les différents niveaux de "
"verrouillage pouvant être obtenus par Hibernate. Le verrouillage est obtenu "
-"par les mécanismes suivants:"
+"par les mécanismes suivants : "
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
"updates or inserts a row."
msgstr ""
"<literal>LockMode.WRITE</literal> est obtenu automatiquement quand Hibernate "
-"actualise ou insert un enregistrement."
+"actualise ou insère un enregistrement."
#. Tag: para
-#: transactions.xml:885
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
"request using <literal>SELECT ... FOR UPDATE</literal> on databases which "
@@ -1906,11 +1670,10 @@
msgstr ""
"<literal>LockMode.UPGRADE</literal> peut être obtenu de manière explicite "
"via la requête en utilisant <literal>SELECT ... FOR UPDATE</literal> sur une "
-"base de données supportant cette syntaxe."
+"base de données supportant cette syntaxe. "
#. Tag: para
-#: transactions.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
"user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under "
@@ -1918,11 +1681,10 @@
msgstr ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> peut être obtenu de manière "
"explicite en utilisant <literal>SELECT ... FOR UPDATE NOWAIT</literal> sur "
-"Oracle."
+"Oracle. "
#. Tag: para
-#: transactions.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
"reads data under Repeatable Read or Serializable isolation level. It can be "
@@ -1930,11 +1692,10 @@
msgstr ""
"<literal>LockMode.READ</literal> est obtenu automatiquement quand Hibernate "
"lit des données dans un contexte d'isolation <literal>Repeatable Read</"
-"literal> ou <literal>Serializable</literal> . Peut être réobtenu "
-"explicitement via une requête."
+"literal> ou <literal>Serializable</literal>. Peut être ré-obtenu "
+"explicitement via une requête d'utilisateur. "
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1943,45 +1704,40 @@
"</literal> or <literal>saveOrUpdate()</literal> also start out in this lock "
"mode."
msgstr ""
-"<literal>LockMode.NONE</literal> représente l'absence de verouillage. Tous "
-"les objets migrent vers ce mode a la fin d'une <literal>Transaction</"
+"<literal>LockMode.NONE</literal> représente l'absence de verrouillage. Tous "
+"les objets migrent vers ce mode à la fin d'une <literal>Transaction</"
"literal> . Les objets associés à une session via un appel à "
"<literal>saveOrUpdate()</literal> commencent également leur cycle de vie "
-"dans cet état."
+"dans ce mode verrouillé. "
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
msgstr ""
-"Les niveaux de verrouillage peuvent être explicitement obtenus de l'une des "
-"manières suivantes:"
+"Les requêtes explicites d'utilisateur sont exprimées d'une des manières "
+"suivantes :"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
"literal>."
msgstr ""
-"Un appel à <literal>Session.load()</literal> , en spécifiant un niveau "
+"Un appel à <literal>Session.load()</literal>, en spécifiant un niveau "
"verrouillage <literal>LockMode</literal> ."
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
-msgstr "Un appel à <literal>Session.lock()</literal> ."
+msgstr "Un appel à <literal>Session.lock()</literal>."
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
-msgstr "Une appel à <literal>Query.setLockMode()</literal> ."
+msgstr "Une appel à <literal>Query.setLockMode()</literal>."
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1993,7 +1749,7 @@
"object."
msgstr ""
"Si <literal>Session.load()</literal> est appelé avec le paramètre de niveau "
-"de verouillage <literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</"
+"de verrouillage <literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</"
"literal> et que l'objet demandé n'est pas présent dans la session, celui-ci "
"sera chargé à l'aide d'une requête <literal>SELECT ... FOR UPDATE</"
"literal> . Si la méthode <literal>load()</literal> est appelée pour un objet "
@@ -2001,8 +1757,7 @@
"appellera la méthode <literal>lock()</literal> pour cet objet."
#. Tag: para
-#: transactions.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
"specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> "
@@ -2012,31 +1767,28 @@
msgstr ""
"<literal>Session.lock()</literal> effectue une vérification de version si le "
"niveau de verrouillage est <literal>READ</literal> , <literal>UPGRADE</"
-"literal> ou <literal>UPGRADE_NOWAIT</literal> . (Dans le cas des niveaux "
+"literal> ou <literal>UPGRADE_NOWAIT</literal> . Dans le cas des niveaux "
"<literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</literal> , une "
-"requête <literal>SELECT ... FOR UPDATE</literal> sera utilisée.)"
+"requête <literal>SELECT ... FOR UPDATE</literal> sera utilisée."
#. Tag: para
-#: transactions.xml:951
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
"an appropriate alternate mode instead of throwing an exception. This ensures "
"that applications are portable."
msgstr ""
"Si une base de données ne supporte pas le niveau de verrouillage demandé, "
-"Hibernate utilisera un niveau alternatif convenable au lieux de lancer une "
-"exception. Ceci assurera la portabilité de votre application."
+"Hibernate utilisera un niveau alternatif convenable au lieu de lancer une "
+"exception. Ceci assurera la portabilité de vos applications."
#. Tag: title
-#: transactions.xml:960
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Connection release modes"
-msgstr "Mode de libération de Connection"
+msgstr "Modes de libération de connexion"
#. Tag: para
-#: transactions.xml:962
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
"<literal>Session</literal> would obtain a connection when it was first "
@@ -2049,41 +1801,39 @@
"by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</"
"literal>:"
msgstr ""
-"Le comportement original (2.x) d'Hibernate pour la gestion des connexions "
+"Le comportement original (2.x) de Hibernate pour la gestion des connexions "
"JDBC était que la <literal>Session</literal> obtenait une connexion dès "
"qu'elle en avait besoin et la libérait une fois la session fermée. Hibernate "
-"3 a introduit les modes de libération de connexion pour indiquer à la "
+"3.x a introduit les modes de libération de connexion pour indiquer à la "
"session comment gérer les transactions JDBC. Notez que la discussion "
"suivante n'est pertinente que pour des connexions fournies par un "
-"<literal>ConnectionProvider</literal>, celles gérées par l'utilisateur sont "
-"en dehors du scope de cette discussion. Les différents modes sont définies "
-"par <literal>org.hibernate.ConnectionReleaseMode</literal>:"
+"<literal>ConnectionProvider</literal>, celles gérées par l'utilisateur "
+"dépassent l'objectif de cette discussion. Les différents modes de libération "
+"sont identifiés par les valeurs énumérées de <literal>org.hibernate."
+"ConnectionReleaseMode</literal> :"
#. Tag: para
-#: transactions.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
"Hibernate session obtains a connection when it first needs to perform some "
"JDBC access and maintains that connection until the session is closed."
msgstr ""
-"<literal>ON_CLOSE</literal> - est essentiellement le comportement passé. La "
-"session Hibernate obtient une connexion lorsqu'elle en a besoin et la garde "
-"jusqu'Ã ce que la session se ferme."
+"<literal>ON_CLOSE</literal> - est essentiellement le comportement passé "
+"décrit ci-dessus. La session Hibernate obtient une connexion lorsqu'elle en "
+"a besoin et la garde jusqu'Ã ce que la session se ferme. "
#. Tag: para
-#: transactions.xml:983
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
"<literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
-"<literal>AFTER_TRANSACTION</literal> - indique de relacher la connexion "
-"après qu'une <literal>org.hibernate.Transaction</literal> se soit achevée."
+"<literal>AFTER_TRANSACTION</literal> - indique de relâcher la connexion "
+"après qu'une <literal>org.hibernate.Transaction</literal> soit achevée. "
#. Tag: para
-#: transactions.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
"releases connections after every statement execution. This aggressive "
@@ -2092,14 +1842,13 @@
"the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
"<literal>AFTER_STATEMENT</literal> (aussi appelé libération brutale) - "
-"indique de relacher les connexions après chaque exécution d'un statement. Ce "
-"relachement aggressif est annulé si ce statement laisse des ressources "
+"indique de relâcher les connexions après chaque exécution d'un statement. Ce "
+"relâchement agressif est annulé si ce statement laisse des ressources "
"associées à une session donnée ouvertes, actuellement ceci n'arrive que lors "
-"de l'utilisation de <literal>org.hibernate.ScrollableResults</literal>."
+"de l'utilisation de <literal>org.hibernate.ScrollableResults</literal>. "
#. Tag: para
-#: transactions.xml:999
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
"literal> is used to specify which release mode to use. The possible values "
@@ -2107,11 +1856,10 @@
msgstr ""
"Le paramètre de configuration <literal>hibernate.connection.release_mode</"
"literal> est utilisé pour spécifier quel mode de libération doit être "
-"utiliser. Les valeurs possibles sont:"
+"utilisé. Les valeurs possibles sont : "
#. Tag: para
-#: transactions.xml:1006
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
"mode returned by the <literal>org.hibernate.transaction.TransactionFactory."
@@ -2127,23 +1875,21 @@
"JTATransactionFactory, elle retourne ConnectionReleaseMode.AFTER_STATEMENT; "
"pour JDBCTransactionFactory, elle retourne ConnectionReleaseMode."
"AFTER_TRANSACTION. C'est rarement une bonne idée de changer ce comportement "
-"par défaut puisque les erreurs soulevées par ce paramétrage tend à prouver "
-"une erreur dans le code de l'utilisateur."
+"par défaut puisque les erreurs soulevées par ce paramétrage tend à indiquer "
+"la présence de bogues et/ou d'erreurs dans le code de l'utilisateur. "
#. Tag: para
-#: transactions.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
"setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
"<literal>on_close</literal> - indique d'utiliser ConnectionReleaseMode."
"ON_CLOSE. Ce paramétrage existe pour garantir la compatibilité avec les "
-"versions précédentes, mais ne devrait plus être utilisé."
+"versions précédentes, mais ne devrait plus être utilisé. "
#. Tag: para
-#: transactions.xml:1022
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
"AFTER_TRANSACTION. This setting should not be used in JTA environments. Also "
@@ -2155,12 +1901,11 @@
"ConnectionReleaseMode.AFTER_TRANSACTION. Ne devrait pas être utilisé dans "
"les environnements JTA. Notez aussi qu'avec ConnectionReleaseMode."
"AFTER_TRANSACTION, si une session est considérée comme étant en mode auto-"
-"commit les connexions seront relachées comme si le mode était "
-"AFTER_STATEMENT."
+"commit les connexions seront relâchées comme si le mode était "
+"AFTER_STATEMENT. "
#. Tag: para
-#: transactions.xml:1030
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
"AFTER_STATEMENT. Additionally, the configured <literal>ConnectionProvider</"
@@ -2173,12 +1918,12 @@
"matter if we re-establish the same connection."
msgstr ""
"<literal>after_statement</literal> - indique d'utiliser "
-"ConnectionReleaseMode.AFTER_STATEMENT. Additonnellement, le "
+"ConnectionReleaseMode.AFTER_STATEMENT. De plus, le "
"<literal>ConnectionProvider</literal> utilisé est consulté pour savoir s'il "
"supporte ce paramétrage (<literal>supportsAggressiveRelease()</literal>). Si "
-"ce n'est pas le cas, le mode de libération est ré initialisé à "
+"ce n'est pas le cas, le mode de libération est ré-initialisé à "
"ConnectionReleaseMode.AFTER_TRANSACTION. Ce paramétrage n'est sûr que dans "
"les environnements où il est possible d'obtenir à nouveau la même connexion "
"JDBC Ã chaque fois que l'on fait un appel de <literal>ConnectionProvider."
-"getConnection()</literal> ou dans les envrionnements auto-commit où il n'est "
-"pas important d'obtenir plusieurs fois la même connexion."
+"getConnection()</literal> ou dans les environnements auto-commit où il n'est "
+"pas important d'obtenir plusieurs fois la même connexion. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,27 @@
+# translation of tutorial.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: tutorial\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-05 10:08+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
-msgstr ""
+msgstr "Tutoriel"
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -26,33 +30,41 @@
"Gloegl. All code is contained in the <filename>tutorials/web</filename> "
"directory of the project source."
msgstr ""
+"A l'intention des nouveaux utilisateurs, ce chapitre fournit une "
+"introduction étape par étape à Hibernate, en commençant par une application "
+"simple, avec une base de données en-mémoire. Le tutoriel est basé sur une "
+"tutoriel antérieur qui avait été développé par Michael Gloegl. Tout le code "
+"est contenu dans <filename>tutorials/web</filename> qui se trouve dans le "
+"répertoire source du projet. "
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
"have a limited knowledge of JAVA or SQL, it is advised that you start with a "
"good introduction to that technology prior to attempting to learn Hibernate."
msgstr ""
+"Ce tutoriel assume que l'utilisateur est déjà familier avec Java et SQL à la "
+"fois. Si vous ne possédez qu'une connaissance de Java et d'SQL limitée, il "
+"est conseillé de commencer par vous familiariser avec ces technologies avant "
+"d'aborder Hibernate."
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
"<filename>tutorial/eg</filename> project source directory."
msgstr ""
+"La distribution contient un autre exemple d'application qui se trouve dans "
+"le répertoire source du projet <filename>tutorial/eg</filename>."
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
-msgstr "Partie 1 - Première application Hibernate"
+msgstr "Section 1 - Première application Hibernate"
#. Tag: para
-#: tutorial.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
"events we want to attend and information about the host(s) of these events."
@@ -62,7 +74,6 @@
"informations à propos des hôtes de ces événements."
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -70,15 +81,17 @@
"database) to avoid describing installation/setup of any particular database "
"servers."
msgstr ""
+"Malgré que vous puissiez utiliser tout base de données qui vous convienne, "
+"on choisira <ulink url=\"http://hsqldb.org/\">HSQLDB</ulink> (une base de "
+"données Java, en-mémoire) pour éviter de décrire l'installation et la "
+"configuration de n'importe quel serveur de base de données particulière."
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
-msgstr ""
+msgstr "Configuration"
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -90,72 +103,29 @@
"making use of <filename>src/main/java</filename>, <filename>src/main/"
"resources</filename> and <filename>src/main/webapp</filename> directories."
msgstr ""
+"La première chose que nous devons faire est de configurer l'environnement de "
+"développement. Nous utiliserons la \"standard layout\" préconisée par de "
+"nombreux outils de génération tels que <ulink url=\"http://maven.org"
+"\">Maven</ulink>. Maven, en particulier, a une bonne ressource décrivant "
+"cette <ulink url=\"http://maven.apache.org/guides/introduction/introduction-"
+"to-the-standard-directory-layout.html\">layout</ulink>. Comme ce tutoriel va "
+"devenir une application web, nous allons créer et utiliser les répertoires "
+"<filename>src/main/java.</filename>, <filename>src/main/ressources</"
+"filename> et <filename>src/main/webapp</filename>."
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
"dependency management capabilities as well as the ability of many IDEs to "
"automatically set up a project for us based on the maven descriptor."
msgstr ""
+"Nous utiliserons Maven dans ce tutoriel. Nous profiterons de ses capacités "
+"de gestion de dépendances transitives, ainsi que de la capacité des nombreux "
+"IDE Ã installer automatiquement un projet sur la base du descripteur Maven."
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
"build this tutoial (such as Ant), the layout will remain the same. The only "
@@ -171,93 +141,62 @@
"javassist</filename> directory; additionally you will need both the servlet-"
"api jar and one of the slf4j logging backends."
msgstr ""
+"Vous n'êtes pas obligés d'utiliser Maven. Si vous souhaitez utiliser une "
+"autre technologie pour créer ce tutoriel (comme Ant), la mise en page "
+"restera le même. Le seul changement est que vous devrez manuellement tenir "
+"compte de toutes les dépendances nécessaires. Si vous utilisez <ulink url="
+"\"http://ant.apache.org/ivy/\">Ivy</ulink> pour assurer la gestion des "
+"dépendances transitives, vous utiliserez toujours les dépendances "
+"mentionnées ci-dessous. Dans le cas contraire, vous devrez trouver toutes "
+"les dépendances, explicites et transitives, et les ajouter au chemin de "
+"classe des projets. Si vous travaillez à partir de l'offre de distribution "
+"Hibernate, il s'agit de <filename>hibernate3.jar</filename>, de tous les "
+"artefacts du répertoire <filename>lib / requis</filename> et de tous les "
+"fichiers des répertoires <filename>lib / pseudo-code binaire/cglib</"
+"filename> ou <filename>lib/pseudo-code binaire/javassist</filename>; en "
+"outre, vous aurez besoin à la fois du bocal servlet-api et de l'un des "
+"gestionnaires de journalisation slf4j."
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
+"Sauvegardez ce fichier sous la forme <filename>pom.xml</filename> dans le "
+"répertoire root du projet."
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr "La première classe"
#. Tag: para
-#: tutorial.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
"database; it is a simple JavaBean class with some properties:"
msgstr ""
-"Ensuite, nous créons une classe qui réprésente l'événement que nous voulons "
-"stocker dans notre base de données."
+"Ensuite, nous créons une classe qui représente l'évènement que nous voulons "
+"stocker dans notre base de données. Il s'agit d'une simple classe JavaBean "
+"avec quelques propriétés :"
-#. Tag: programlisting
-#: tutorial.xml:128
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:130
-#, fuzzy, no-c-format
-msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
"setter methods, as well as private visibility for the fields. Although this "
"is the recommended design, it is not required. Hibernate can also access "
"fields directly, the benefit of accessor methods is robustness for "
"refactoring."
msgstr ""
-"Vous pouvez voir que cette classe utilise les conventions de nommage "
+"Vous constaterez que cette classe utilise les conventions de nommage "
"standard JavaBean pour les méthodes getter/setter des propriétés, ainsi "
"qu'une visibilité privée pour les champs. Ceci est la conception recommandée "
"- mais pas obligatoire. Hibernate peut aussi accéder aux champs directement, "
"le bénéfice des méthodes d'accès est la robustesse pour la refonte de code. "
-"Le constructeur sans argument est requis pour instancier un objet de cette "
-"classe via reflexion."
#. Tag: para
-#: tutorial.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
"particular event. All persistent entity classes (there are less important "
@@ -273,22 +212,21 @@
msgstr ""
"La propriété <literal>id</literal> contient la valeur d'un identifiant "
"unique pour un événement particulier. Toutes les classes d'entités "
-"persistantes (ainsi que les classes dépendantes de moindre importance) "
-"auront besoin d'une telle propriété identifiante si nous voulons utiliser "
-"l'ensemble complet des fonctionnalités d'Hibernate. En fait, la plupart des "
-"applications (surtout les applications web) ont besoin de distinguer des "
-"objets par des identifiants, donc vous devriez considérer ça comme une "
-"fonctionnalité plutôt que comme une limitation. Cependant, nous ne "
+"persistantes (il y a également des classes dépendantes de moindre "
+"importance) auront besoin d'une telle propriété identifiante si nous voulons "
+"utiliser l'ensemble complet des fonctionnalités de Hibernate. En fait, la "
+"plupart des applications (surtout les applications web) ont besoin de "
+"distinguer des objets par des identifiants, par conséquent considérez cela "
+"comme une fonctionnalité et non comme une limitation. Cependant, nous ne "
"manipulons généralement pas l'identité d'un objet, dorénavant la méthode "
"setter devrait être privée. Seul Hibernate assignera les identifiants "
-"lorsqu'un objet est sauvegardé. Vous pouvez voir qu'Hibernate peut accéder "
-"aux méthodes publiques, privées et protégées, ainsi qu'aux champs (publics, "
-"privés, protégés) directement. Le choix vous est laissé, et vous pouvez "
-"l'ajuster à la conception de votre application."
+"lorsqu'un objet est sauvegardé. Remarquez que Hibernate peut accéder aux "
+"méthodes publiques, privées et protégées, ainsi qu'aux champs (publics, "
+"privés, protégés) directement. à vous de choisir, et vous pouvez également "
+"l'ajuster à la conception de votre application. "
#. Tag: para
-#: tutorial.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
"Hibernate has to create objects for you, using Java Reflection. The "
@@ -297,27 +235,26 @@
"instrumentation."
msgstr ""
"Le constructeur sans argument est requis pour toutes les classes "
-"persistantes ; Hibernate doit créer des objets pour vous en utilisant la "
+"persistantes; Hibernate doit créer des objets pour vous en utilisant la "
"réflexion Java. Le constructeur peut être privé, cependant, la visibilité du "
-"paquet est requise pour la génération de proxy à l'exécution et une "
-"récupération des données efficaces sans instrumentation du bytecode."
+"paquet est requise pour la génération de proxies à l'exécution et une "
+"récupération efficace des données sans instrumentation du bytecode. "
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
"filename> directory."
msgstr ""
+"Sauvegardez ce fichier dans le répertoire <filename>src/main/java/org/"
+"hibernate/tutorial/domain</filename>."
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
-msgstr "Le fichier de mapping"
+msgstr "Le fichier de mappage"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -326,34 +263,18 @@
"columns in that table it should use."
msgstr ""
"Hibernate a besoin de savoir comment charger et stocker des objets d'une "
-"classe persistante. C'est là qu'intervient le fichier de mapping Hibernate. "
-"Le fichier de mapping indique à Hibernate à quelle table dans la base de "
-"données il doit accéder, et quelles colonnes de cette table il devra "
-"utiliser."
+"classe persistante. C'est là qu'intervient le fichier de mappage Hibernate. "
+"Le fichier de mappage indique à Hibernate à quelle table accéder dans la "
+"base de données, et les colonnes de cette table à utiliser."
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
-msgstr "La structure basique de ce fichier de mapping ressemble à ça :"
-
-#. Tag: programlisting
-#: tutorial.xml:182
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
msgstr ""
+"La structure basique de ce fichier de mappage ressemble à ce qui suit :"
#. Tag: para
-#: tutorial.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
"mapping elements and attributes in your editor or IDE. Opening up the DTD "
@@ -365,29 +286,27 @@
"<filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
"Notez que la DTD Hibernate est très sophistiquée. Vous pouvez l'utiliser "
-"pour l'auto-complétement des éléments et des attributs de mapping XML dans "
-"votre éditeur ou votre IDE. Vous devriez aussi ouvrir le fichier DTD dans "
-"votre éditeur de texte - c'est le moyen le plus facile d'obtenir une vue "
+"pour l'auto-finalisation des éléments et des attributs de mappage XML dans "
+"votre éditeur ou votre IDE. Ouvrez également le fichier DTD dans votre "
+"éditeur de texte - c'est le moyen le plus facile d'obtenir une vue "
"d'ensemble de tous les éléments et attributs, et de voir les valeurs par "
"défaut, ainsi que quelques commentaires. Notez qu'Hibernate ne chargera pas "
-"le fichier DTD Ã partir du web, mais regardera d'abord dans le classpath de "
-"l'application. Le fichier DTD est inclus dans <literal>hibernate3.jar</"
-"literal> ainsi que dans le répertoire <literal>src</literal> de la "
-"distribution Hibernate."
+"le fichier DTD Ã partir du web, mais regardera d'abord dans le chemin de "
+"classe de l'application. Le fichier DTD est inclus dans <filename>hibernate-"
+"core.jar ainsi que </filename>dans le répertoire <filename>src</filename> de "
+"la distribution Hibernate)."
#. Tag: para
-#: tutorial.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
"is, of course, not optional."
msgstr ""
"Nous omettrons la déclaration de la DTD dans les exemples futurs pour "
-"raccourcir le code. Bien sûr il n'est pas optionnel."
+"raccourcir le code. Ãvidemment il n'est pas optionnel. "
#. Tag: para
-#: tutorial.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
"<literal>class</literal> element. All persistent entity classes (again, "
@@ -397,26 +316,12 @@
"Entre les deux balises <literal>hibernate-mapping</literal>, incluez un "
"élément <literal>class</literal>. Toutes les classes d'entités persistantes "
"(encore une fois, il pourrait y avoir des classes dépendantes plus tard, qui "
-"ne sont pas des entités mère) ont besoin d'un mapping vers une table de la "
+"ne sont pas des entités mère) ont besoin d'un mappage vers une table de la "
"base de données SQL :"
-#. Tag: programlisting
-#: tutorial.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:212
-#, fuzzy, no-c-format
-msgid ""
"So far we have told Hibernate how to persist and load object of class "
"<literal>Event</literal> to the table <literal>EVENTS</literal>. Each "
"instance is now represented by a row in that table. Now we can continue by "
@@ -424,32 +329,16 @@
"not want to care about handling this identifier, we configure Hibernate's "
"identifier generation strategy for a surrogate primary key column:"
msgstr ""
-"Plus loin, nous disons à Hibernate comment persister et charger un objet de "
-"la classe <literal>Event</literal> dans la table <literal>EVENTS</literal>, "
-"chaque instance est représentée par une ligne dans cette table. Maintenant "
-"nous continuons avec le mapping de la propriété de l'identifiant unique vers "
-"la clef primaire de la table. De plus, comme nous ne voulons pas nous "
-"occuper de la gestion de cet identifiant, nous utilisons une stratégie de "
-"génération d'identifiant d'Hibernate pour la colonne de la clef primaire "
-"subrogée :"
+"Plus loin, nous indiquons à Hibernate comment persister et charger un objet "
+"de la classe <literal>Event</literal> dans la table <literal>EVENTS</"
+"literal>, chaque instance étant représentée par une ligne dans cette table. "
+"Maintenant nous continuons avec le mappage de la propriété de l'identifiant "
+"unique vers la clef primaire des tables. De plus, comme nous ne voulons pas "
+"nous occuper de la gestion de cet identifiant, nous utilisons une stratégie "
+"de génération d'identifiant Hibernate pour la colonne de la clé primaire "
+"subrogée : "
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -459,9 +348,14 @@
"The column attribute tells Hibernate which column of the <literal>EVENTS</"
"literal> table holds the primary key value."
msgstr ""
+"L'élément <literal>ID</literal> est la déclaration de l'identifiant de "
+"propriété. L'attribut de mappage <literal>name=\"id\"</literal> déclare le "
+"nom de la propriété JavaBean et indique à Hibernate d'utiliser les méthodes "
+"<literal>getId()</literal> et <literal>setId()</literal> pour accéder à la "
+"propriété. L'attribut de colonne indique à Hibernate quelle colonne de la "
+"table <literal>EVENTS</literal> contient la valeur de clé primaire."
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -472,48 +366,39 @@
"Identifier value generation is also one of Hibernate's many extension points "
"and you can plugin in your own strategy."
msgstr ""
+"L'élément imbriqué <literal>Générateur</literal> spécifie la stratégie de "
+"génération d'identifiant (c'est à dire comment les valeurs d'identifiant "
+"sont-elles générées?). Dans ce cas nous avons choisi <literal>native</"
+"literal>, qui offre un niveau de la portabilité selon le dialecte de base de "
+"données configurée. Mise en veille prolongée prend en charge la base de "
+"données générée, unique au monde, ainsi que l'application affectée, les "
+"identifiants. Génération de valeur d'identifiant est aussi l'un des nombreux "
+"points d'extension d'Hibernate et vous pouvez plug-in votre propre stratégie."
#. Tag: para
-#: tutorial.xml:246
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
+"<literal>native</literal> n'est plus considéré comme la meilleure stratégie "
+"en terme de portabilité. Pour obtenir davantage d'explications, voir <xref "
+"linkend=\"portability-idgen\" />"
#. Tag: para
-#: tutorial.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
"properties. By default, no properties of the class are considered persistent:"
msgstr ""
-"Finalement nous incluons des déclarations pour les propriétés persistantes "
-"de la classe dans le fichier de mapping. Par défaut, aucune propriété de la "
-"classe n'est considérée comme persistante :"
+"Enfin, nous incluons des déclarations pour les propriétés persistantes de la "
+"classe dans le fichier de mappage. Par défaut, aucune propriété de la classe "
+"n'est considérée comme persistante : "
-#. Tag: programlisting
-#: tutorial.xml:258
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:260
-#, fuzzy, no-c-format
-msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
"attribute of the <literal>property</literal> element tells Hibernate which "
"getter and setter methods to use. In this case, Hibernate will search for "
@@ -521,12 +406,13 @@
"()</literal> and <literal>setTitle()</literal> methods."
msgstr ""
"Comme avec l'élément <literal>id</literal>, l'attribut <literal>name</"
-"literal> de l'élément <literal>property</literal> indique à Hibernate quels "
-"getters/setters utiliser."
+"literal> de l'élément <literal>property</literal> indique à Hibernate "
+"quelles méthodes getters/setters utiliser. Par conséquent dans ce cas, "
+"Hibernate cherchera <literal>getDate()/setDate()</literal>, de même que "
+"<literal>getTitle()/setTitle()</literal>. "
#. Tag: para
-#: tutorial.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
"<literal>column</literal> attribute, but the <literal>title</literal> does "
@@ -535,17 +421,16 @@
"literal>, however, <literal>date</literal> is a reserved keyword in most "
"databases so you will need to map it to a different name."
msgstr ""
-"Pourquoi le mapping de la propriété <literal>date</literal> inclut "
-"l'attribut <literal>column</literal>, mais pas <literal>title</literal> ? "
-"Sans l'attribut <literal>column</literal> Hibernate utilise par défaut le "
-"nom de la propriété comme nom de colonne. Ca fonctionne bien pour "
-"<literal>title</literal>. Cependant, <literal>date</literal> est un mot clef "
+"Pourquoi le mappage de la propriété <literal>date</literal> inclut-il "
+"l'attribut <literal>column</literal>, mais non le <literal>title</literal> ? "
+"Sans l'attribut <literal>column</literal>, Hibernate utilise par défaut le "
+"nom de la propriété comme nom de colonne. Cela fonctionne bien pour "
+"<literal>title</literal>. Cependant, <literal>date</literal> est un mot clé "
"réservé dans la plupart des bases de données, donc nous utilisons un nom "
-"différent pour le mapping."
+"différent pour le mappage. "
#. Tag: para
-#: tutorial.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
"attribute. The types declared and used in the mapping files are not Java "
@@ -562,26 +447,25 @@
"literal> column. Full date and time information is preserved by mapping the "
"property with a <literal>timestamp</literal> converter."
msgstr ""
-"La prochaine chose intéressante est que le mapping de <literal>title</"
-"literal> manque aussi d'un attribut <literal>type</literal>. Les types que "
-"nous déclarons et utilisons dans les fichiers de mapping ne sont pas, comme "
-"vous pourriez vous y attendre, des types de données Java. Ce ne sont pas, "
-"non plus, des types de base de données SQL. Ces types sont donc appelés des "
-"<emphasis>types de mapping Hibernate</emphasis>, des convertisseurs qui "
+"Il est intéressant de noter que le mappage de <literal>title</literal> "
+"manque également d'un attribut <literal>type</literal>. Les types que nous "
+"déclarons et utilisons dans les fichiers de mappage ne sont pas, comme vous "
+"pourriez vous y attendre, des types de données Java. Ce ne sont pas, non "
+"plus, des types de base de données SQL. Ces types sont donc appelés "
+"<emphasis>types de mappage Hibernate</emphasis>, des convertisseurs qui "
"peuvent traduire des types Java en types SQL et vice versa. De plus, "
-"Hibernate tentera de déterminer la bonne conversion et le type de mapping "
+"Hibernate tentera de déterminer la bonne conversion et le type de mappage "
"lui-même si l'attribut <literal>type</literal> n'est pas présent dans le "
-"mapping. Dans certains cas, cette détection automatique (utilisant la "
+"mappage. Dans certains cas, cette détection automatique (utilisant la "
"réflexion sur la classe Java) pourrait ne pas donner la valeur attendue ou "
"dont vous avez besoin. C'est le cas avec la propriété <literal>date</"
"literal>. Hibernate ne peut pas savoir si la propriété \"mappera\" une "
"colonne SQL de type <literal>date</literal>, <literal>timestamp</literal> ou "
"<literal>time</literal>. Nous déclarons que nous voulons conserver des "
"informations avec une date complète et l'heure en mappant la propriété avec "
-"un <literal>timestamp</literal>."
+"un convertisseur <literal>timestamp</literal>. "
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -589,39 +473,44 @@
"performance is important you should consider explicitly defining the type to "
"use."
msgstr ""
+"Hibernate rend cette détermination de type de mappage en utilisant la "
+"réflection au moment du traitement des fichiers de mappage. Cela prend du "
+"temps et consomme des ressources, donc, si la performance de démarrage est "
+"importante, vous devriez considérer définir explicitement quel type utiliser."
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
"tutorial/domain/Event.hbm.xml</filename>."
msgstr ""
+"Sauvegardez ce fichier de mappage ainsi <filename>src/main/resources/org/"
+"hibernate/tutorial/domain/Event.hbm.xml</filename>."
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
msgstr "Configuration d'Hibernate"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
"place. It is now time to configure Hibernate. First let's set up HSQLDB to "
"run in \"server mode\""
msgstr ""
+"A ce niveau là , vous devriez avoir la classe persistante et son fichier de "
+"mappage en place. Il est temps maintenant de configurer Hibernate. Tout "
+"d'abord, il nous faut configurer HSQLDB pour qu'il puisse exécuter en "
+"\"server mode\""
#. Tag: para
-#: tutorial.xml:321
-#, no-c-format
+#, fuzzy, no-c-format
msgid "We do this do that the data remains between runs."
-msgstr ""
+msgstr "xxx"
#. Tag: para
-#: tutorial.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
"running: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
@@ -631,18 +520,16 @@
"tutorial, shutdown HSQLDB, delete all files in the <filename>target/data</"
"filename> directory, and start HSQLDB again."
msgstr ""
-"Créez un répertoire appelé <literal>data</literal> à la racine du répertoire "
-"de développement - c'est là que HSQL DB stockera ses fichiers de données. "
-"Démarrez maintenant votre base de données en exécutant <literal>java -"
-"classpath lib/hsqldb.jar org.hsqldb.Server</literal> dans votre répertoire "
-"de travail. Vous observez qu'elle démarre et ouvre une socket TCP/IP, c'est "
-"là que notre application se connectera plus tard. Si vous souhaitez démarrez "
-"à partir d'une nouvelle base de données pour ce tutoriel (faites "
-"<literal>CTRL + C</literal> dans la fenêtre the window), effacez le "
-"répertoire <literal>data/</literal> et redémarrez HSQL DB à nouveau."
+"Vous utiliserez le lugin exec Maven pour lancer le serveur HSQLDB en "
+"exécutant : <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
+"Dexec.args=\"-database.0 file:target/data/tutorial\"</command>. Vous "
+"observez qu'elle démarre et ouvre un socket TCP/IP, c'est là que notre "
+"application se connectera plus tard. Si vous souhaitez démarrez à partir "
+"d'une nouvelle base de données pour ce tutoriel (choisissez <literal>CTRL + "
+"C</literal> dans la fenêtre), effacez tous les fichiers dans le répertoire "
+"<filename>target/data</filename> et redémarrez HSQL DB."
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -654,121 +541,83 @@
"net/\">proxool</ulink>. However, we will be using the Hibernate built-in "
"connection pool for this tutorial."
msgstr ""
+"Hibernate se connectera à la base de données pour le compte de votre "
+"application, donc il devra savoir comment obtenir des connexions. Pour ce "
+"tutoriel, nous devrons utliser un pool de connexions autonomes (et non pas "
+"<interfacename>javax.sql.DataSource</interfacename>). Hibernate bénéficie du "
+"support de deux pools de connexions JDBC open source de tierce partie : "
+"<ulink url=\"https://sourceforge.net/projects/c3p0\">c3p0</ulink> and <ulink "
+"url=\"http://proxool.sourceforge.net/\">proxool</ulink>. Cependant, nous "
+"utiliserons le pool de connexions intégré Hibernate pour ce tutoriel."
#. Tag: para
-#: tutorial.xml:348
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
"use. It lacks several features found on any decent connection pool."
msgstr ""
+"Le pool de connexions intégré Hibernate n'est pas conçu pour les "
+"environnements de production."
#. Tag: para
-#: tutorial.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
"properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</"
"literal> file, or even complete programmatic setup. Most users prefer the "
"XML configuration file:"
msgstr ""
-"Pour la configuration d'Hibernate, nous pouvons utiliser un simple fichier "
+"Pour la configuration de Hibernate, nous pouvons utiliser un simple fichier "
"<literal>hibernate.properties</literal>, un fichier <literal>hibernate.cfg."
"xml</literal> légèrement plus sophistiqué, ou même une configuration "
"complète par programmation. La plupart des utilisateurs préfèrent le fichier "
-"de configuration XML :"
+"de configuration XML : "
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
msgstr ""
+"Vous pourrez remarquer que cette configuration XML utilise une DTD "
+"différente."
#. Tag: para
-#: tutorial.xml:366
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
"is a global factory responsible for a particular database. If you have "
"several databases, for easier startup you should use several <literal><"
"session-factory></literal> configurations in several configuration files."
msgstr ""
-"Notez que cette configuration XML utilise une DTD différente. Nous "
-"configurons une <literal>SessionFactory</literal> d'Hibernate - une fabrique "
-"globale responsable d'une base de données particulière. Si vous avez "
-"plusieurs base de données, utilisez plusieurs configurations <literal><"
-"session-factory></literal>, généralement dans des fichiers de "
-"configuration différents (pour un démarrage plus facile)."
+"Nous configurons une <literal>SessionFactory</literal> de Hibernate - une "
+"fabrique globale responsable d'une base de données particulière. Si vous "
+"avez plusieurs base de données, utilisez plusieurs configurations "
+"<literal><session-factory></literal>, généralement dans des fichiers "
+"de configuration différents (pour un démarrage plus facile)."
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
"configuration for the JDBC connection. The dialect <literal>property</"
"literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
+"Les quatre premiers éléments <literal>property</literal> contiennent la "
+"configuration nécessaire pour la connexion JDBC. L'élément "
+"<literal>property</literal> du dialecte spécifie quelle variante du SQL "
+"Hibernate va générer. "
#. Tag: para
-#: tutorial.xml:380
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
+"Hibernate est capable de déterminer correctement quel dialecte utiliser dans "
+"la plupart des cas. Voir <xref linkend=\"portability-dialectresolver\" /> "
+"pour obtenir davantage d'informations. "
#. Tag: para
-#: tutorial.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
"particularly useful in this context. The <literal>hbm2ddl.auto</literal> "
@@ -778,34 +627,30 @@
"Ant task. Finally, add the mapping file(s) for persistent classes to the "
"configuration."
msgstr ""
-"Les quatre premiers éléments <literal>property</literal> contiennent la "
-"configuration nécessaire pour la connexion JDBC. L'élément "
-"<literal>property</literal> du dialecte spécifie quelle variante du SQL "
-"Hibernate va générer. La gestion automatique des sessions d'Hibernate pour "
-"les contextes de persistance sera détaillée très vite. L'option "
+"La gestion automatique des sessions d'Hibernate pour les contextes de "
+"persistance est bien pratique, comme vous pourrez le constater. L'option "
"<literal>hbm2ddl.auto</literal> active la génération automatique des schémas "
-"de base de données - directement dans la base de données. Cela peut bien sûr "
-"aussi être désactivé (en supprimant l'option de configuration) ou redirigé "
-"vers un fichier avec l'aide de la tâche Ant <literal>SchemaExport</literal>. "
-"Finalement, nous ajoutons le(s) fichier(s) de mapping pour les classes "
-"persistantes."
+"de base de données - directement dans la base de données. Cela peut "
+"également être désactivé (en supprimant l'option de configuration) ou "
+"redirigé vers un fichier avec l'aide de la tâche Ant <literal>SchemaExport</"
+"literal>. Finalement, nous ajoutons le(s) fichier(s) de mappage pour les "
+"classes persistantes."
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
"<filename>src/main/resources</filename> directory."
msgstr ""
+"Sauvegarder ce fichier en tant que <filename>hibernate.cfg.xml</filename> "
+"dans le répertoire <filename>src/main/resources</filename>."
#. Tag: title
-#: tutorial.xml:403
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Building with Maven"
-msgstr "Construction avec Ant"
+msgstr "Construction avec Maven"
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -815,45 +660,21 @@
"basic project tasks. First, lets run the <literal>compile</literal> goal to "
"make sure we can compile everything so far:"
msgstr ""
+"Nous allons maintenant construire le tutoriel avec Maven. Vous aurez besoin "
+"d'installer Maven pour cela. Il est disponible dans la page <ulink url="
+"\"http://maven.apache.org/download.html\">Maven download page</ulink>. Maven "
+"pourra lire le fichier <filename>/pom.xml</filename> que nous avons créé "
+"plus tôt et saura comment effectuer quelques tâches du projet de base. Tout "
+"d'abord, exécutons <literal>compile</literal> pour s'assurer que nous "
+"pouvons tout compiler jusqu'Ã maintenant :"
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
msgstr "Démarrage et aides"
#. Tag: para
-#: tutorial.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
"first you have to complete the setup with some infrastructure code. You have "
@@ -870,69 +691,34 @@
"literal>, mais d'abord nous devons compléter la configuration avec du code "
"d'infrastructure. Nous devons démarrer Hibernate. Ce démarrage inclut la "
"construction d'un objet <literal>SessionFactory</literal> global et le "
-"stocker quelque part facile d'accès dans le code de l'application. Une "
-"<literal>SessionFactory</literal> peut ouvrir des nouvelles "
-"<literal>Session</literal>s. Une <literal>Session</literal> représente une "
-"unité de travail simplement \"threadée\", la <literal>SessionFactory</"
-"literal> est un objet global \"thread-safe\", instancié une seule fois."
+"stocker dans un lieu facile d'accès dans le code de l'application. Une "
+"<literal>SessionFactory</literal> peut ouvrir de nouvelles <literal>Session</"
+"literal>s. Une <literal>Session</literal> représente une unité de travail "
+"simplement \"threadée\". La <interfacename>org.hibernate.SessionFactory</"
+"interfacename> est un objet global \"thread-safe\", instancié une seule fois."
#. Tag: para
-#: tutorial.xml:436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
"care of startup and makes accessing the <interfacename>org.hibernate."
"SessionFactory</interfacename> more convenient."
msgstr ""
"Nous créerons une classe d'aide <literal>HibernateUtil</literal> qui "
-"s'occupe du démarrage et rend la gestion des <literal>Session</literal>s "
-"plus facile. Regardons l'implémentation :"
+"s'occupe du démarrage et rend la gestion des <interfacename>org.hibernate."
+"SessionFactory</interfacename> plus facile. "
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
"HibernateUtil.java</filename>"
msgstr ""
+"Sauvegardez ce code en tant que <filename>src/main/java/org/hibernate/"
+"tutorial/util/HibernateUtil.java</filename>"
#. Tag: para
-#: tutorial.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
"SessionFactory</interfacename> reference in its static initializer; it also "
@@ -941,15 +727,16 @@
"reference from JNDI in an application server or any other location for that "
"matter."
msgstr ""
-"Cette classe ne produit pas seulement la <literal>SessionFactory</literal> "
-"globale dans un initialiseur statique (appelé une seule fois par la JVM "
-"lorsque la classe est chargée), elle masque le fait qu'elle exploite un "
-"singleton. Elle pourrait aussi obtenir la <literal>SessionFactory</literal> "
-"depuis JNDI dans un serveur d'applications."
+"Cette classe ne produit pas seulement la <interfacename>org.hibernate."
+"SessionFactory</interfacename> globale dans un initialiseur statique. Elle "
+"masque le fait qu'elle exploite un singleton statique. Nous aurions pu aussi "
+"bien vérouiller la référence <interfacename>org.hibernate.SessionFactory</"
+"interfacename> Ã partir de JNDI dans un serveur d'application ou dans "
+"n'importe quelle location en fait. Elle pourrait aussi obtenir la "
+"<literal>SessionFactory</literal> depuis JNDI dans un serveur d'applications."
#. Tag: para
-#: tutorial.xml:458
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
"a name in your configuration, Hibernate will try to bind it to JNDI under "
@@ -958,16 +745,15 @@
"<literal>HibernateService</literal> to JNDI. Such advanced options are "
"discussed later."
msgstr ""
-"Si vous nommez la <literal>SessionFactory</literal> dans votre fichier de "
-"configuration, Hibernate tentera la récupération depuis JNDI. Pour éviter ce "
-"code, vous pouvez aussi utiliser un déploiement JMX et laisser le conteneur "
-"(compatible JMX) instancier et lier un <literal>HibernateService</literal> Ã "
-"JNDI. Ces options avancées sont détaillées dans la documentation de "
-"référence Hibernate."
+"Si vous nommez <interfacename>org.hibernate.SessionFactory</interfacename> "
+"dans votre fichier de configuration, Hibernate tentera la récupération "
+"depuis JNDI. Pour éviter ce code, vous pouvez aussi utiliser un déploiement "
+"JMX et laisser le conteneur (compatible JMX) instancier et lier un "
+"<literal>HibernateService</literal> à JNDI. Ces options avancées sont "
+"expliquées plus loin."
#. Tag: para
-#: tutorial.xml:467
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
"and provides two choices: Log4j and JDK 1.4 logging. Most developers prefer "
@@ -978,104 +764,56 @@
"configuration, you can change the settings. By default, only the Hibernate "
"startup message is shown on stdout."
msgstr ""
-"Cela devrait encore compiler sans problème. Nous avons finalement besoin de "
-"configurer le système de \"logs\" - Hibernate utilise commons-logging et "
-"vous laisse le choix entre log4j et le système de logs du JDK 1.4. La "
-"plupart des développeurs préfèrent log4j : copiez <literal>log4j.properties</"
-"literal> de la distribution d'Hibernate (il est dans le répertoire "
-"<literal>etc/</literal>) dans votre répertoire <literal>src</literal>, puis "
-"faites de même avec <literal>hibernate.cfg.xml</literal>. Regardez la "
-"configuration d'exemple et changez les paramètres si vous voulez une sortie "
-"plus verbeuse. Par défaut, seul le message de démarrage d'Hibernate est "
-"affiché sur la sortie standard."
+"Nous avons finalement besoin de configurer le système de journalisation - "
+"Hibernate utilise commons-logging et vous laisse le choix entre log4j et le "
+"système de logs du JDK 1.4. La plupart des développeurs préfèrent log4j : "
+"copiez <literal>log4j.properties</literal> de la distribution de Hibernate "
+"(il est dans le répertoire <literal>etc/</literal>) dans votre répertoire "
+"<literal>src</literal>, puis faîtes de même avec <literal>hibernate.cfg.xml</"
+"literal>. Regardez la configuration d'exemple et changez les paramètres si "
+"vous voulez une sortie plus verbeuse. Par défaut, seul le message de "
+"démarrage de Hibernate est affiché sur la sortie standard."
#. Tag: para
-#: tutorial.xml:477
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
"real work with Hibernate."
msgstr ""
-"L'infrastructure de ce didacticiel est complète - et nous sommes prêts à "
-"effectuer un travail réel avec Hibernate."
+"L'infrastructure de ce toturiel est complète - et nous sommes prêts à "
+"effectuer un travail réel avec Hibernate. "
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr "Charger et stocker des objets"
#. Tag: para
-#: tutorial.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
"by writing an <literal>EventManager</literal> class with a <literal>main()</"
"literal> method:"
msgstr ""
-"Finalement nous pouvons utiliser Hibernate pour charger et stocker des "
-"objets. Nous écrivons une classe <literal>EventManager</literal> avec une "
-"méthode <literal>main()</literal> :"
+"Enfin nous pouvons utiliser Hibernate pour charger et stocker des objets. "
+"Nous écrivons une classe <literal>EventManager</literal> avec une méthode "
+"<literal>main()</literal> : "
-#. Tag: programlisting
-#: tutorial.xml:493
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:495
-#, fuzzy, no-c-format
-msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
"literal> object and handed it over to Hibernate. At that point, Hibernate "
"takes care of the SQL and executes an <literal>INSERT</literal> on the "
"database."
msgstr ""
-"Nous créons un nouvel objet <literal>Event</literal>, et le remettons à "
-"Hibernate. Hibernate s'occupe maintenant du SQL et exécute les "
-"<literal>INSERT</literal>s dans la base de données. Regardons le code de "
-"gestion de la <literal>Session</literal> et de la <literal>Transaction</"
-"literal> avant de lancer ça."
+"Nous créons un nouvel objet <literal>Event</literal> dans "
+"<literal>createAndStoreEvent()</literal>, et nous le remettons à Hibernate, "
+"qui s'occupe maintenant du SQL et exécute les <literal>INSERT</literal> s "
+"dans la base de données."
#. Tag: para
-#: tutorial.xml:502
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
"single unit of work (a single atmoic piece of work to be performed). For now "
@@ -1086,17 +824,17 @@
"interfacename> API. In this particular case we are using JDBC-based "
"transactional semantics, but it could also run with JTA."
msgstr ""
-"Une <literal>Session</literal> est une unité de travail. Pour le moment, "
-"nous allons faire les choses simplement et assumer une granularité un-un "
-"entre une <literal>Session</literal> hibernate et une transaction à la base "
-"de données. Pour isoler notre code du système de transaction sous-jacent "
-"(dans notre cas, du pure JDBC, mais cela pourrait être JTA), nous utilisons "
-"l'API <literal>Transaction</literal> qui est disponible depuis la "
-"<literal>Session</literal> Hibernate."
+"Une <interface>org.hibernate.Session</interface> est une unité de travail "
+"unique (une unité atmoic simple). Pour le moment, nous allons faire les "
+"choses simplement et présumer une granularité un-à -un entre une "
+"<literal>Session</literal> Hibernate et une transaction de la base de "
+"données. Pour isoler notre code du système de transaction sous-jacent, nous "
+"utilisons l'API <interfacename>org.hibernate.Transaction</interfacename> "
+"Hibernate. Dans notre cas, nous utilisons du pur JDBC, mais on aurait pu "
+"utiliser JTA."
#. Tag: para
-#: tutorial.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
"you can call it as many times and anywhere you like once you get hold of "
@@ -1107,18 +845,17 @@
"xml</filename>? Due to that setting, the context of a current unit of work "
"is bound to the current Java thread that executes the application."
msgstr ""
-"Que fait <literal>sessionFactory.getCurrentSession()</literal> ? "
-"Premièrement, vous pouvez l'invoquer autant de fois que vous le voulez et "
-"n'importe où du moment que vous avez votre <literal>SessionFactory</literal> "
-"(facile grâce à <literal>HibernateUtil</literal>). La méthode "
-"<literal>getCurrentSession()</literal> renvoie toujours l'unité de travail "
-"courante. Souvenez vous que nous avons basculé notre option de configuration "
-"au mécanisme basé sur le \"thread\" dans <literal>hibernate.cfg.xml</"
-"literal>. Par conséquent, le scope de l'unité de travail courante est le "
-"thread java courant d'exécution. Ceci n'est pas totalement vrai."
+"Quelle est la fonction de <literal>sessionFactory.getCurrentSession()</"
+"literal> ? Premièrement, vous pouvez l'invoquer autant de fois que vous le "
+"voulez et n'importe où, du moment que vous avez votre "
+"<literal>SessionFactory</literal> (facile grâce à <literal>HibernateUtil</"
+"literal>). La méthode <literal>getCurrentSession()</literal> renvoie "
+"toujours l'unité de travail courante. Souvenez vous que nous avons basculé "
+"notre option de configuration au mécanisme basé sur le \"thread\" dans "
+"<literal>hibernate.cfg.xml</literal>. Par conséquent, l'unité de travail "
+"courante est liée au thread Java courant qui exécute notre application."
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1126,10 +863,13 @@
"prototyping and tutorials such as this one. Current session tracking is "
"discussed in more detail later on."
msgstr ""
+"Hibernate offre trois méthodes le suivi de session courant. La méthode basée "
+"\"thread\" qui n'est pas conçue pour une utilisation de la production ; "
+"seulement utile pour les prototypes et des tutoriels comme celui-ci. Le "
+"suivi de session courant est abordé plus en détail par la suite."
#. Tag: para
-#: tutorial.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
"<literal>getCurrentSession()</literal> is made for the current thread. It is "
@@ -1140,20 +880,17 @@
"new <interface>org.hibernate.Session</interface> and can start a new unit of "
"work."
msgstr ""
-"Une <literal>Session</literal> commence lorsqu'elle est vraiment utilisée la "
-"première fois, Lorsque nous appelons pour la première fois "
-"<literal>getCurrentSession()</literal>. Ensuite, elle est liée, par "
-"Hibernate, au thread courant. Lorsque la transaction s'achève (commit ou "
-"rollback), Hibernate délie la <literal>Session</literal> du thread et la "
-"ferme pour vous. Si vous invoquez <literal>getCurrentSession()</literal> une "
-"autre fois, vous obtenez une nouvelle <literal>Session</literal> et pouvez "
-"entamer une nouvelle unité de travail. Ce modèle de programmation "
-"\"<emphasis>thread-bound</emphasis>\" est le moyen le plus populaire "
-"d'utiliser Hibernate."
+"Une <interface>org.hibernate.Session</interface> commence lorsque le thread "
+"courant commence à appeler <literal>getCurrentSession()</literal>. Ensuite, "
+"elle est attachée par Hibernate au thread courant. Lorsque la transaction "
+"s'achève, par commit ou par rollback, Hibernate détache automatiquement la "
+"<literal>Session</literal> du thread et la ferme pour vous. Si vous invoquez "
+"<literal>getCurrentSession()</literal> une nouvelle fois, vous obtenez une "
+"nouvelle <literal>Session</literal> et pouvez entamer une nouvelle unité de "
+"travail. "
#. Tag: para
-#: tutorial.xml:551
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
"hibernate.Session</interface> be used to execute one or several database "
@@ -1167,248 +904,160 @@
"<emphasis>session-per-operation</emphasis> an anti-pattern. A real web "
"application is shown later in the tutorial which will help illustrate this."
msgstr ""
-"UNTRANSLATED ! Related to the unit of work scope, should the Hibernate "
-"<literal>Session</literal> be used to execute one or several database "
-"operations? The above example uses one <literal>Session</literal> for one "
-"operation. This is pure coincidence, the example is just not complex enough "
-"to show any other approach. The scope of a Hibernate <literal>Session</"
-"literal> is flexible but you should never design your application to use a "
-"new Hibernate <literal>Session</literal> for <emphasis>every</emphasis> "
-"database operation. So even if you see it a few more times in the following "
-"(very trivial) examples, consider <emphasis>session-per-operation</emphasis> "
-"an anti-pattern. A real (web) application is shown later in this tutorial."
+"A propos de la portée de l'unité de travail, la session <interface>org."
+"hibernate.Session</interface> Hibernate devrait-elle être utilisée pour "
+"exécuter une ou plusieurs opérations en base de données ? L'exemple ci-"
+"dessus utilise une <literal>Session</literal> pour une opération. C'est une "
+"pure coïncidence, l'exemple n'est pas assez complexe pour montrer d'autres "
+"approches. La portée d'une <literal>Session</literal> Hibernate est flexible "
+"mais vous ne devriez jamais concevoir votre application de manière à "
+"utiliser une nouvelle <literal>Session</literal> Hibernate pour "
+"<emphasis>chaque</emphasis> opération en base de données. Donc même si vous "
+"le voyez quelquefois dans les exemples suivants, considérez <emphasis>une "
+"session par opération</emphasis> comme un anti-modèle. Une véritable "
+"application (web) est affichée plus loin dans ce tutoriel. "
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
-"Lisez <xref linkend=\"transactions\"/> pour plus d'informations sur la "
-"gestion des transactions et leur démarcations. Nous n'avons pas géré les "
-"erreurs et rollback sur l'exemple précédent."
+"Consultez <xref linkend=\"transactions\" /> pour plus d'informations sur la "
+"gestion des transactions et leur démarcation. Nous n'avons pas géré les "
+"erreurs et rollback dans l'exemple précédent."
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
"with the necessary classpath setup: <command>mvn exec:java -Dexec.mainClass="
"\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store\"</command>"
msgstr ""
+"Pour pouvoir exécuter ceci, nous utiliserons le plugin exec Maven pour "
+"appeler notre classe avec la configuration de classpath qui convient : "
+"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
+"\" -Dexec.args=\"store\"</command>"
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
msgstr ""
+"Vous aurez sans doute besoin d'effectuer <command>mvn compile</command> pour "
+"commencer."
#. Tag: para
-#: tutorial.xml:586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
"lots of log output. Towards the end, the following line will be displayed:"
msgstr ""
-"Vous devriez voir, après la compilation, Hibernate démarrer et, en fonction "
-"de votre configuration, beaucoup de traces sur la sortie. Ã la fin vous "
-"trouverez la ligne suivante :"
+"Vous devriez constater qu'Hibernate démarre et selon votre configuration, "
+"beaucoup de traces sur la sortie. Ã la fin, vous trouverez la ligne "
+"suivante :"
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
-msgstr ""
+msgstr "C'est l' <literal>INSERT</literal> exécutée par Hibernate."
#. Tag: para
-#: tutorial.xml:597
-#, fuzzy, no-c-format
+#, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
"Maintenant nous aimerions aussi lister les événements stockés, donc nous "
-"ajoutons une option à la méthode principale :"
+"ajoutons une option à la méthode principale : "
-#. Tag: programlisting
-#: tutorial.xml:601
-#, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
msgstr ""
-"Nous ajoutons aussi une nouvelle méthode <literal>listEvents()</literal> :"
+"Nous ajoutons aussi une nouvelle méthode <literal>listEvents()</literal> : "
-#. Tag: programlisting
-#: tutorial.xml:607
-#, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
-"Ce que nous faisons ici c'est utiliser une requête HQL (Hibernate Query "
-"Language) pour charger tous les objets <literal>Event</literal> existants de "
-"la base de données. Hibernate générera le SQL approprié, l'enverra à la base "
-"de données et peuplera des objets <literal>Event</literal> avec les données. "
-"Vous pouvez créer des requêtes plus complexes avec HQL, bien sûr."
+"Ici nous utilisons une requête HQL (Hibernate Query Language) pour charger "
+"tous les objets <literal>Event</literal> existants de la base de données. "
+"Hibernate générera le SQL approprié, l'enverra à la base de données et "
+"peuplera des objets <literal>Event</literal> avec les données. Vous pouvez "
+"évidemment créer des requêtes plus complexes avec HQL. Voir <xref linkend="
+"\"queryhql\" /> pour obtenir davantage d'informations."
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
"\" -Dexec.args=\"list\"</command>"
msgstr ""
+"Nous pouvons maintenant appeler notre nouvelle fonctionnalité, en utilisant "
+"Ã nouveau le plugin exec Maven : <command>mvn exec:java -Dexec.mainClass="
+"\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"list\"</command>"
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
-msgstr "Partie 2 - Mapper des associations"
+msgstr "Section 2 - Mapper des associations"
#. Tag: para
-#: tutorial.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
"isolation. Let's expand on that a bit and add some class associations. We "
"will add people to the application and store a list of events in which they "
"participate."
msgstr ""
-"Nous avons mappé une classe d'une entité persistante vers une table. Partons "
-"de là et ajoutons quelques associations de classe. D'abord nous ajouterons "
-"des gens à notre application, et stockerons une liste d'événements auxquels "
-"ils participent."
+"Pour l'instant, nous nous sommes contentés de mapper une classe d'une entité "
+"persistante vers une table. Profitons-en pour ajouter quelques associations "
+"de classe. D'abord nous ajouterons des gens à notre application, et "
+"stockerons une liste d'événements auxquels ils participent."
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
msgstr "Mapper la classe Person"
#. Tag: para
-#: tutorial.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
msgstr ""
-"La première version de la classe <literal>Person</literal> est simple :"
+"La première version de la classe <literal>Person</literal> est simple : "
-#. Tag: programlisting
-#: tutorial.xml:643
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
"domain/Person.java</filename>"
msgstr ""
+"A sauvegarder dans le fichier nommé <filename>src/main/java/org/hibernate/"
+"tutorial/domain/Person.java</filename>"
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
+"Puis, créez le nouveau fichier de mappage <filename>src/main/resources/org/"
+"hibernate/tutorial/domain/Person.hbm.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
msgstr ""
-"Finalement, ajoutez la nouveau mapping à la configuration d'Hibernate :"
+"Finalement, ajoutez le nouveau mappage à la configuration d'Hibernate :"
-#. Tag: programlisting
-#: tutorial.xml:661
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:663
-#, fuzzy, no-c-format
-msgid ""
"Create an association between these two entities. Persons can participate in "
"events, and events have participants. The design questions you have to deal "
"with are: directionality, multiplicity, and collection behavior."
@@ -1416,17 +1065,15 @@
"Nous allons maintenant créer une association entre ces deux entités. "
"Ãvidemment, des personnes peuvent participer aux événements, et des "
"événements ont des participants. Les questions de conception que nous devons "
-"traiter sont : direction, cardinalité et comportement de la collection."
+"traiter sont : direction, cardinalité et comportement de la collection. "
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
msgstr "Une association unidirectionnelle basée sur Set"
#. Tag: para
-#: tutorial.xml:675
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
"can easily navigate to the events for a particular person, without executing "
@@ -1441,30 +1088,12 @@
"événements d'une personne particulière, sans exécuter une requête explicite "
"- en appelant <literal>aPerson.getEvents()</literal>. Nous utilisons une "
"collection Java, un <literal>Set</literal>, parce que la collection ne "
-"contiendra pas d'éléments dupliqués et l'ordre ne nous importe pas."
+"contiendra pas d'éléments dupliqués et l'ordre ne nous importe pas pour ces "
+"exemples :"
-#. Tag: programlisting
-#: tutorial.xml:686
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Before mapping this association, let's consider the other side. We could "
"just keep this unidirectional or create another collection on the "
"<literal>Event</literal>, if we wanted to be able to navigate it from both "
@@ -1476,41 +1105,19 @@
"Hence, we use Hibernate's many-to-many mapping:"
msgstr ""
"D'abord nous mappons cette association, mais pensez à l'autre côté. "
-"Clairement, nous pouvons la laisser unidirectionnelle. Ou alors, nous "
+"Clairement, nous pouvons la laisser unidirectionnelle. Ou bien, nous "
"pourrions créer une autre collection sur <literal>Event</literal>, si nous "
-"voulons être capable de la parcourir de manière bidirectionnelle, c'est-à -"
-"dire avoir <literal>anEvent.getParticipants()</literal>. Ce n'est pas "
-"nécessaire d'un point de vue fonctionnel. Vous pourrez toujours exécuter une "
-"requête explicite pour récupérer les participants d'un \"event\" "
-"particulier. Ce choix de conception vous est laissé, mais ce qui reste "
-"certains est la cardinalité de l'association: \"plusieurs\" des deux côtés, "
-"nous appelons cela une association <emphasis>many-to-many</emphasis>. Par "
-"conséquent nous utilisons un mapping Hibernate many-to-many:"
+"voulons être capable de la parcourir de manière bidirectionnelle. Ce n'est "
+"pas nécessaire d'un point de vue fonctionnel. Vous pourrez toujours exécuter "
+"une requête explicite pour récupérer les participants d'un évènement "
+"particulier. Vous êtes libre de choisir la conception, ce qui est certain, "
+"c'est que la cardinalité de l'association : \"plusieurs\" valués des deux "
+"côtés, est appelée <emphasis>plusieurs-à -plusieurs</emphasis>. Par "
+"conséquent nous utilisons un mappage Hibernate plusieurs-à -plusieurs :"
-#. Tag: programlisting
-#: tutorial.xml:701
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:703
-#, fuzzy, no-c-format
-msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
"literal> being most common. For a many-to-many association, or <emphasis>n:"
"m</emphasis> entity relationship, an association table is required. Each row "
@@ -1523,81 +1130,40 @@
"tell Hibernate the class of the objects in your collection (the class on the "
"other side of the collection of references)."
msgstr ""
-"Hibernate supporte toutes sortes de mapping de collection, un <literal><"
-"set></literal> étant le plus commun. Pour une association many-to-many "
+"Hibernate supporte toutes sortes de mappage de collection, un <literal>set</"
+"literal> étant le plus commun. Pour une association plusieurs-à -plusieurs "
"(ou une relation d'entité <emphasis>n:m</emphasis>), une table d'association "
"est requise. Chaque ligne dans cette table représente un lien entre une "
"personne et un événement. Le nom de la table est configuré avec l'attribut "
"<literal>table</literal> de l'élément <literal>set</literal>. Le nom de la "
"colonne identifiant dans l'association, du côté de la personne, est défini "
-"avec l'élément <literal><key></literal>, et le nom de la colonne pour "
-"l'événement dans l'attribut <literal>column</literal> de <literal><many-"
-"to-many></literal>. Vous devez aussi donner à Hibernate la classe des "
-"objets de votre collection (c'est-à -dire : la classe de l'autre côté de la "
-"collection)."
+"avec l'élément <literal>key</literal>, et le nom de la colonne pour "
+"l'événement avec l'attribut <literal>column</literal> de <literal>many-to-"
+"many</literal>. Vous devez aussi donner à Hibernate la classe des objets de "
+"votre collection (c'est-à -dire : la classe de l'autre côté de la collection)."
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
-msgstr "Le schéma de base de données pour ce mapping est donc :"
+msgstr "Le schéma de base de données pour ce mappage est donc :"
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
msgstr "Travailler avec l'association"
#. Tag: para
-#: tutorial.xml:730
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
"<literal>EventManager</literal>:"
msgstr ""
"Réunissons quelques personnes et quelques événements dans une nouvelle "
-"méthode dans <literal>EventManager</literal> :"
+"méthode dans <literal>EventManager</literal> : "
-#. Tag: programlisting
-#: tutorial.xml:734
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:736
-#, fuzzy, no-c-format
-msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
"simply modify the collection using the normal collection methods. There is "
"no explicit call to <literal>update()</literal> or <literal>save()</"
@@ -1614,26 +1180,24 @@
msgstr ""
"Après le chargement d'une <literal>Person</literal> et d'un <literal>Event</"
"literal>, modifiez simplement la collection en utilisant les méthodes "
-"normales de la collection. Comme vous pouvez le voir, il n'y a pas d'appel "
-"explicite à <literal>update()</literal> ou <literal>save()</literal>, "
-"Hibernate détecte automatiquement que la collection a été modifiée et a "
-"besoin d'être mise à jour. Ceci est appelé <emphasis>la vérification sale "
-"automatique</emphasis> (NdT : \"automatic dirty checking\"), et vous pouvez "
-"aussi l'essayer en modifiant le nom ou la propriété date de n'importe lequel "
-"de vos objets. Tant qu'ils sont dans un état <emphasis>persistant</"
-"emphasis>, c'est-à -dire, liés à une <literal>Session</literal> Hibernate "
-"particulière (c-à -d qu'ils ont juste été chargés ou sauvegardés dans une "
-"unité de travail), Hibernate surveille les changements et exécute le SQL "
-"correspondant. Le processus de synchronisation de l'état de la mémoire avec "
+"normales de la collection. Comme vous pouvez le constater, il n'y a pas "
+"d'appel explicite à <literal>update()</literal> ou <literal>save()</"
+"literal>, Hibernate détecte automatiquement que la collection a été modifiée "
+"et a besoin d'être mise à jour. Ceci est appelé <emphasis>la vérification "
+"sale automatique</emphasis> (automatic dirty checking), et vous pouvez aussi "
+"l'essayer en modifiant le nom ou la propriété date de n'importe lequel de "
+"vos objets. Tant qu'ils sont dans un état <emphasis>persistant</emphasis>, "
+"c'est-à -dire, liés à une <literal>Session</literal> Hibernate particulière "
+"(c-à -d qu'ils ont juste été chargés ou sauvegardés dans une unité de "
+"travail), Hibernate surveille les changements et exécute le SQL "
+"correspondants. Le processus de synchronisation de l'état de la mémoire avec "
"la base de données, généralement seulement à la fin d'une unité de travail, "
"est appelé <emphasis>flushing</emphasis>. Dans notre code, l'unité de "
"travail s'achève par un commit (ou rollback) de la transaction avec la base "
-"de données - comme défini par notre option <literal>thread</literal> de "
-"configuration pour la classe <literal>CurrentSessionContext</literal>."
+"de données."
#. Tag: para
-#: tutorial.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
"an object outside of a <interfacename>org.hibernate.Session</interfacename>, "
@@ -1646,47 +1210,11 @@
"<literal>Session</literal>, s'il n'est pas dans un état persistant (s'il "
"était persistant avant, nous appelons cet état <emphasis>détaché</"
"emphasis>). Vous pouvez même modifier une collection lorsqu'elle est "
-"détachée:"
+"détachée :"
-#. Tag: programlisting
-#: tutorial.xml:764
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
"again by binding it to a new unit of work, so any modifications you made to "
"it while detached can be saved to the database. This includes any "
@@ -1694,15 +1222,13 @@
"object."
msgstr ""
"L'appel à <literal>update</literal> rend un objet détaché à nouveau "
-"persistant, vous pourriez dire qu'il le lie à une unité de travail, ainsi "
-"toutes les modifications (ajout, suppression) que vous avez faites pendant "
-"qu'il était détaché peuvent être sauvegardées dans la base de données (il se "
-"peut que vous ayez besoin de modifier quelques unes des méthodes précédentes "
-"pour retourner cet identifiant)."
+"persistant, vous pourriez dire qu'il le lie à une nouvelle unité de travail, "
+"ainsi toutes les modifications que vous avez faites pendant qu'il était "
+"détaché peuvent être sauvegardées dans la base de données, cela inclut toute "
+"modification effectuées sur une collection de cet objet entité."
#. Tag: para
-#: tutorial.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
"incorporate into your own application. Complete this exercise by adding a "
@@ -1711,31 +1237,18 @@
"an event - the <literal>save()</literal> method returns it (you might have "
"to modify some of the previous methods to return that identifier):"
msgstr ""
-"Ce n'est pas très utile dans notre situation actuelle, mais c'est un concept "
-"important que vous pouvez mettre dans votre propre application. Pour le "
-"moment, complétez cet exercice en ajoutant une nouvelle action à la méthode "
-"principale des <literal>EventManager</literal>s et appelez la à partir de la "
-"ligne de commande. Si vous avez besoin des identifiants d'une personne et "
-"d'un événement - la méthode <literal>save()</literal> les retourne."
+"Cela n'a pas grand intérêt dans notre situation, mais c'est un concept "
+"important qu'il vous faut concevoir dans votre application. Pour le moment, "
+"complétez cet exercice en ajoutant une nouvelle action à la méthode "
+"principale de l'<literal>EventManager</literal> et invoquez-la depuis la "
+"ligne de commande. Si vous avez besoin des identifiants d'un client et d'un "
+"évènement - la méthode <literal>save()</literal> vous les retourne (vous "
+"devrez peut-être modifier certaines méthodes précédentes pour retourner ces "
+"identifiants) :"
-#. Tag: programlisting
-#: tutorial.xml:783
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:785
-#, fuzzy, no-c-format
-msgid ""
"This is an example of an association between two equally important classes : "
"two entities. As mentioned earlier, there are other classes and types in a "
"typical model, usually \"less important\". Some you have already seen, like "
@@ -1758,15 +1271,14 @@
"entité particulière. Des instances de ces types n'ont pas leur propre "
"identité, elles ne sont pas non plus partagées entre des entités (deux "
"personnes ne référencent pas le même objet <literal>firstname</literal>, "
-"même si elles ont le même prénom). Bien sûr, des types de valeur ne peuvent "
-"pas seulement être trouvés dans le JDK (en fait, dans une application "
-"Hibernate toutes les classes du JDK sont considérées comme des types de "
-"valeur), vous pouvez aussi écrire vous-même des classes dépendantes, "
-"<literal>Address</literal> ou <literal>MonetaryAmount</literal>, par exemple."
+"même si elles ont le même prénom). Bien sûr, des types de valeur n'existent "
+"pas seulement dans le JDK (en fait, dans une application Hibernate toutes "
+"les classes du JDK sont considérées comme des types de valeur), vous pouvez "
+"aussi écrire vous-même des classes dépendantes, <literal>Address</literal> "
+"ou <literal>MonetaryAmount</literal>, par exemple. "
#. Tag: para
-#: tutorial.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
"different from a collection of references to other entities, but looks "
@@ -1774,58 +1286,32 @@
msgstr ""
"Vous pouvez aussi concevoir une collection de types de valeur. C'est "
"conceptuellement très différent d'une collection de références vers d'autres "
-"entités, mais très ressemblant en Java."
+"entités, mais très ressemblant dans Java. "
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
msgstr "Collection de valeurs"
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
"entity. This will be represented as a <interfacename>java.util.Set</"
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
+"Ajoutons un ensemble d'adresses email à l'entité <literal>Person</literal> "
+"qui sera représenté en tant que <interfacename>java.util.Set</interfacename> "
+"d'instance <classname>java.lang.String</classname> :"
-#. Tag: programlisting
-#: tutorial.xml:820
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
-msgstr "Le mapping de ce <literal>Set</literal> :"
+msgstr "Le mappage de ce <literal>Set</literal> : "
-#. Tag: programlisting
-#: tutorial.xml:826
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:828
-#, fuzzy, no-c-format
-msgid ""
"The difference compared with the earlier mapping is the use of the "
"<literal>element</literal> part which tells Hibernate that the collection "
"does not contain references to another entity, but is rather a collection "
@@ -1838,117 +1324,65 @@
"<literal>element</literal> element defines the column name where the email "
"address values will actually be stored."
msgstr ""
-"La différence comparée au mapping vu plus tôt est la partie "
-"<literal>element</literal>, laquelle dit à Hibernate que la collection ne "
-"contient pas de références vers une autre entité, mais une collection "
+"La différence comparée au mappage vu plus tôt est la partie "
+"<literal>element</literal>, qui indique à Hibernate que la collection ne "
+"contient pas de référence vers une autre entité, mais une collection "
"d'éléments de type <literal>String</literal> (le nom en minuscule vous "
-"indique que c'est un type/convertisseur du mapping Hibernate). Une fois "
+"indique que c'est un type/convertisseur du mappage Hibernate). Une fois "
"encore, l'attribut <literal>table</literal> de l'élément <literal>set</"
"literal> détermine le nom de la table pour la collection. L'élément "
-"<literal>key</literal> définit le nom de la colonne de la clef étrangère "
-"dans la table de la collection. L'attribut <literal>column</literal> dans "
+"<literal>key</literal> définit le nom de la colonne de la clé étrangère dans "
+"la table de la collection. L'attribut <literal>column</literal> dans "
"l'élément <literal>element</literal> définit le nom de la colonne où les "
-"valeurs de <literal>String</literal> seront réellement stockées."
+"valeurs de <literal>String</literal> seront réellement stockées. "
#. Tag: para
-#: tutorial.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is the updated schema:"
-msgstr "Regardons le schéma mis à jour :"
+msgstr "Considérons le schéma mis à jour : "
-#. Tag: programlisting
-#: tutorial.xml:848
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:850
-#, fuzzy, no-c-format
-msgid ""
"You can see that the primary key of the collection table is in fact a "
"composite key that uses both columns. This also implies that there cannot be "
"duplicate email addresses per person, which is exactly the semantics we need "
"for a set in Java."
msgstr ""
-"Vous pouvez voir que la clef primaire de la table de la collection est en "
-"fait une clef composée, utilisant deux colonnes. Ceci implique aussi qu'il "
-"ne peut pas y avoir d'adresses email dupliquées par personne, ce qui est "
-"exactement la sémantique dont nous avons besoin pour un ensemble en Java."
+"Vous pouvez voir que la clé primaire de la table de la collection est en "
+"fait une clé composée, utilisant les deux colonnes. Ceci implique aussi "
+"qu'il ne peut pas y avoir d'adresses email dupliquées par personne, ce qui "
+"est exactement la sémantique dont nous avons besoin pour un ensemble dans "
+"Java. "
#. Tag: para
-#: tutorial.xml:856
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
"by linking persons and events. It is the same code in Java:"
msgstr ""
"Vous pouvez maintenant tester et ajouter des éléments à cette collection, "
-"juste comme nous l'avons fait avant en liant des personnes et des "
-"événements. C'est le même code en Java."
+"juste comme nous l'avons fait auparavant en liant des personnes et des "
+"événements. C'est le même code dans Java. "
-#. Tag: programlisting
-#: tutorial.xml:861
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:863
-#, fuzzy, no-c-format
-msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
"the collection. Monitor the SQL log and try to optimize this with an eager "
"fetch."
msgstr ""
-"Cette fois ci, nous n'avons pas utilisé une requête de chargement agressif "
-"(<emphasis>fetch</emphasis>) pour initialiser la collection. Par conséquent, "
-"l'invocation du getter déclenchera un select supplémentaire pour "
-"l'initialiser. Traquez les logs SQL et tentez d'optimiser ce cas avec un "
-"chargement aggressif."
+"Cette fois-ci, nous n'avons pas utilisé de requête de chargement "
+"<emphasis>fetch</emphasis> pour initialiser la collection. Traquez les logs "
+"SQL et tentez d'optimiser ce cas avec un chargement agressif."
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr "Associations bidirectionnelles"
#. Tag: para
-#: tutorial.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
"association between person and event work from both sides in Java. The "
@@ -1957,70 +1391,40 @@
msgstr ""
"Ensuite nous allons mapper une association bidirectionnelle - faire "
"fonctionner l'association entre une personne et un événement à partir des "
-"deux côtés en Java. Bien sûr, le schéma de la base de données ne change pas, "
-"nous avons toujours une pluralité many-to-many. Une base de données "
-"relationnelle est plus flexible qu'un langage de programmation réseau, donc "
-"elle n'a pas besoin de direction de navigation - les données peuvent être "
-"vues et récupérées de toutes les manières possibles."
+"deux côtés dans Java. Bien sûr, le schéma de la base de données ne change "
+"pas, nous avons toujours une pluralité plusieurs-à -plusieurs. "
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
"in that it does not need a navigation direction; data can be viewed and "
"retrieved in any possible way."
msgstr ""
+"Une base de données relationnelle est plus flexible qu'un langage de "
+"programmation réseau, donc elle n'a pas besoin de direction de navigation - "
+"les données peuvent être vues et récupérées de toutes les manières possibles."
#. Tag: para
-#: tutorial.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
"class:"
msgstr ""
-"D'abord, ajouter une collection de participants à la classe <literal>Event</"
-"literal> :"
+"D'abord, ajoutez une collection de participants à la classe <literal>Event</"
+"literal> : "
-#. Tag: programlisting
-#: tutorial.xml:895
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:897
-#, fuzzy, no-c-format
-msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr ""
-"Maintenant mapper ce côté de l'association aussi, dans <literal>Event.hbm."
-"xml</literal>."
+"Maintenant mappez ce côté de l'association aussi, dans <literal>Event.hbm."
+"xml</literal>. "
-#. Tag: programlisting
-#: tutorial.xml:901
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:903
-#, fuzzy, no-c-format
-msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
"Notice that the column names in <literal>key</literal> and <literal>many-to-"
"many</literal> swap in both mapping documents. The most important addition "
@@ -2028,37 +1432,34 @@
"<literal>set</literal> element of the <literal>Event</literal>'s collection "
"mapping."
msgstr ""
-"Comme vous le voyez, ce sont des mappings de <literal>set</literal>s normaux "
-"dans les deux documents de mapping. Notez que les noms de colonne dans "
+"Comme vous le voyez, ce sont des mappages de <literal>set</literal>s normaux "
+"dans les deux documents de mappage. Notez que les noms de colonne dans "
"<literal>key</literal> et <literal>many-to-many</literal> sont inversés dans "
-"les 2 documents de mapping. L'ajout le plus important ici est l'attribut "
+"les 2 documents de mappage. L'ajout le plus important ici est l'attribut "
"<literal>inverse=\"true\"</literal> dans l'élément <literal>set</literal> du "
-"mapping de la collection des <literal>Event</literal>s."
+"mappage de la collection des <literal>Event</literal>s. "
#. Tag: para
-#: tutorial.xml:911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
"<literal>Person</literal> class, when it needs to find out information about "
"the link between the two. This will be a lot easier to understand once you "
"see how the bi-directional link between our two entities is created."
msgstr ""
-"Ce que signifie qu'Hibernate devrait prendre l'autre côté - la classe "
-"<literal>Person</literal> - s'il a besoin de renseigner des informations à "
+"Cela signifie que Hibernate devrait prendre l'autre côté - la classe "
+"<literal>Person</literal> - quand il a besoin de trouver des informations à "
"propos du lien entre les deux. Ce sera beaucoup plus facile à comprendre une "
"fois que vous verrez comment le lien bidirectionnel entre les deux entités "
-"est créé."
+"est créé. "
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
msgstr "Travailler avec des liens bidirectionnels"
#. Tag: para
-#: tutorial.xml:922
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
"How did we create a link between a <literal>Person</literal> and an "
@@ -2072,67 +1473,41 @@
msgstr ""
"Premièrement, gardez à l'esprit qu'Hibernate n'affecte pas la sémantique "
"normale de Java. Comment avons-nous créé un lien entre une <literal>Person</"
-"literal> et un <literal>Event</literal> dans l'exemple unidirectionnel ? "
-"Nous avons ajouté une instance de <literal>Event</literal> à la collection "
-"des références d'événement d'une instance de <literal>Person</literal>. "
-"Donc, évidemment, si vous voulons rendre ce lien bidirectionnel, nous devons "
-"faire la même chose de l'autre côté - ajouter une référence de "
-"<literal>Person</literal> Ã la collection d'un <literal>Event</literal>. "
-"Cette \"configuration du lien des deux côtés\" est absolument nécessaire et "
-"vous ne devriez jamais oublier de le faire."
+"literal> et un <literal>Event</literal> dans l'exemple unidirectionnel? Nous "
+"avons ajouté une instance de <literal>Event</literal> à la collection des "
+"références d'événement d'une instance de <literal>Person</literal>. Donc, "
+"évidemment, si vous voulons rendre ce lien bidirectionnel, nous devons faire "
+"la même chose de l'autre côté, en ajoutant une référence de <literal>Person</"
+"literal> Ã la collection dans un <literal>Event</literal>. Cette "
+"\"configuration du lien des deux côtés\" est absolument nécessaire et vous "
+"ne devriez jamais oublier de le faire. "
#. Tag: para
-#: tutorial.xml:932
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
"correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
"Beaucoup de développeurs programment de manière défensive et créent des "
"méthodes de gestion de lien pour affecter correctement les deux côtés, par "
-"exemple dans <literal>Person</literal> :"
+"exemple dans <literal>Person</literal> :"
-#. Tag: programlisting
-#: tutorial.xml:937
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:939
-#, fuzzy, no-c-format
-msgid ""
"The get and set methods for the collection are now protected. This allows "
"classes in the same package and subclasses to still access the methods, but "
"prevents everybody else from altering the collections directly. Repeat the "
"steps for the collection on the other side."
msgstr ""
"Notez que les méthodes get et set pour la collection sont maintenant "
-"protégées - ceci permet à des classes du même paquet et aux sous-classes "
-"d'accéder encore aux méthodes, mais empêche n'importe qui d'autre de mettre "
-"le désordre directement dans les collections (enfin, presque). Vous devriez "
-"probablement faire de même avec la collection de l'autre côté."
+"protégées - ceci permet aux classes et aux sous-classes du même paquetage "
+"d'accéder aux méthodes, mais empêche quiconque de mettre le désordre "
+"directement dans les collections (enfin, presque). Vous devriez probablement "
+"faire de même avec la collection de l'autre côté. "
#. Tag: para
-#: tutorial.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
"for Java, a bi-directional link is simply a matter of setting the references "
@@ -2147,32 +1522,29 @@
"as <literal>inverse</literal>. In a one-to-many association it has to be the "
"many-side, and in many-to-many association you can select either side."
msgstr ""
-"Et à propos de l'attribut de mapping <literal>inverse</literal> ? Pour vous, "
-"et pour Java, un lien bidirectionnel est simplement une manière de "
-"configurer correctement les références des deux côtés. Hibernate n'a "
-"cependant pas assez d'informations pour ordonner correctement les "
-"expressions SQL <literal>INSERT</literal> et <literal>UPDATE</literal> (pour "
-"éviter les violations de contrainte), et a besoin d'aide pour gérer "
-"proprement les associations bidirectionnelles. Rendre <literal>inverse</"
-"literal> un côté d'une assocation dit à Hibernate de l'ignorer "
-"essentiellement, pour le considérer comme un <emphasis>miroir</emphasis> de "
-"l'autre côté. C'est tout ce qui est nécessaire à Hibernate pour découvrir "
-"tout des problèmes de transformation d'un modèle de navigation "
+"Et à propos de l'attribut de mappage <literal>inverse</literal> ? Pour vous, "
+"et pour Java, un lien bidirectionnel consiste simplement à configurer "
+"correctement les références des deux côtés. Hibernate n'a cependant pas "
+"assez d'informations pour ordonner correctement les expressions SQL "
+"<literal>INSERT</literal> et <literal>UPDATE</literal> (pour éviter les "
+"violations de contrainte), et a besoin d'aide pour gérer proprement les "
+"associations bidirectionnelles. Rendre <literal>inverse</literal> un côté de "
+"l'association, indique à Hibernate de l'ignorer, pour le considérer comme un "
+"<emphasis>miroir</emphasis> de l'autre côté. Cela suffit à Hibernate pour "
+"gérer tous les problèmes de transformation d'un modèle de navigation "
"directionnelle vers un schéma SQL de base de données. Les règles dont vous "
"devez vous souvenir sont : toutes les associations bidirectionnelles ont "
"besoin d'un côté marqué <literal>inverse</literal>. Dans une association un-"
-"vers-plusieurs vous pouvez choisir n'importe quel côté, il n'y a pas de "
-"différence."
+"à -plusieurs ce doit être le côté plusieurs, dans une association plusieurs-à -"
+"plusieurs, vous pouvez choisir n'importe quel côté, il n'y pas de différence."
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
-msgstr "Part 3 - L'application web EventManager"
+msgstr "Section 3 - L'application web EventManager"
#. Tag: para
-#: tutorial.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
"<literal>Transaction</literal> almost like a standalone application. "
@@ -2181,84 +1553,39 @@
"stored in the database, and it provides an HTML form to enter new events."
msgstr ""
"Une application web Hibernate utilise la <literal>Session</literal> et "
-"<literal>Transaction</literal> comme une application standalone. Cependant, "
-"quelques patterns sont utiles. Nous allons coder une "
-"<literal>EventManagerServlet</literal>. Cette servlet peut lister tous les "
+"<literal>Transaction</literal> comme une application autonome. Cependant, "
+"quelques modèles communs sont utiles. Nous allons coder une "
+"<literal>EventManagerServlet</literal>. Ce servlet peut lister tous les "
"évènements stockés dans la base de données, et fournir une formulaire HTML "
-"pour saisir d'autres évènements."
+"pour saisir de nouveaux évènements. "
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
-msgstr "Ecrire la servlet de base"
+msgstr "Ãcrire la servlet de base"
#. Tag: para
-#: tutorial.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
"handles HTTP <literal>GET</literal> requests, we will only implement the "
"<literal>doGet()</literal> method:"
msgstr ""
-"The servlet handles HTTP <literal>GET</literal> requests only, hence, the "
-"method we implement is <literal>doGet()</literal>:"
+"Tout d'abord, nous devons créer notre servlet de base. La servlet n'accepte "
+"que les requêtes HTTP <literal>GET</literal>, la méthode à implémenter est "
+"donc <literal>doGet()</literal> :"
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
"EventManagerServlet.java</filename>"
msgstr ""
+"Servir la servlet en tant que <filename>src/main/java/org/hibernate/tutorial/"
+"web/EventManagerServlet.java</filename>"
#. Tag: para
-#: tutorial.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
"When a request hits the servlet, a new Hibernate <literal>Session</literal> "
@@ -2267,17 +1594,16 @@
"started. All data access occurs inside a transaction irrespective of whether "
"the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
-"La pattern que nous utilisons ici est appelé <emphasis>session-per-request</"
-"emphasis>. Lorsqu'une requête touche la servlet, une nouvelle "
-"<literal>Session</literal> hibernate est ouverte à l'invocationde "
+"Le modèle appliqué ici est appelé <emphasis>session-per-request</emphasis>. "
+"Lorsqu'une requête appelle la servlet, une nouvelle <literal>Session</"
+"literal> Hibernate est ouverte à la première invocation de "
"<literal>getCurrentSession()</literal> sur la <literal>SessionFactory</"
-"literal>. Ensuite, une transaction avec la base de données est "
-"démarrée— tous les accès à la base de données interviennent au sein de "
-"la transactiton, peu importe que les données soient lues ou écrites (nous "
-"n'utilisons pas le mode auto-commit dans les applications)."
+"literal>. Ensuite, une transaction avec la base de données est démarrée - "
+"tous les accès à la base de données interviennent au sein de la transaction, "
+"peu importe que les données soient lues ou écrites (nous n'utilisons pas le "
+"mode auto-commit dans les applications). "
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2285,25 +1611,23 @@
"that is scoped to the whole request. Use <literal>getCurrentSession()</"
"literal>, so that it is automatically bound to the current Java thread."
msgstr ""
-"UNTRANSLATED Do <emphasis>not</emphasis> use a new Hibernate "
-"<literal>Session</literal> for every database operation. Use one Hibernate "
-"<literal>Session</literal> that is scoped to the whole request. Use "
-"<literal>getCurrentSession()</literal>, so that it is automatically bound to "
-"the current Java thread."
+"<emphasis>N'utilisez pas</emphasis> une nouvelle <literal>Session</literal> "
+"Hibernate pour chaque opération en base de données. Utilisez une "
+"<literal>Session</literal> Hibernate qui porte sur l'ensemble de la requête. "
+"Utlisez <literal>getCurrentSession()</literal>, ainsi elle est "
+"automatiquement attachée au thread Java courant."
#. Tag: para
-#: tutorial.xml:1003
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
"HTML is rendered. We will get to that part soon."
msgstr ""
"Ensuite, les actions possibles de la requêtes sont exécutées et la réponse "
-"HTML est rendue. Nous en parlerons plus tard."
+"HTML est rendue. Nous y reviendrons ultérieurement. "
#. Tag: para
-#: tutorial.xml:1008
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
"If any problems occurred during processing or rendering, an exception will "
@@ -2316,68 +1640,29 @@
msgstr ""
"Enfin, l'unité de travail s'achève lorsque l'exécution et le rendu sont "
"achevés. Si un problème survient lors de ces deux phases, une exception est "
-"soulevée et la transaction avec la base de données subit un rollback. Voila "
-"pour le pattern <literal>session-per-request</literal>. Au lieu d'un code de "
-"démarcation de transaction au sein de chaque servlet, vous pouvez écrire un "
-"filtre de servlet. Voir le site Hibernate et le Wiki pour plus d'information "
-"sur ce pattern, appelé <emphasis>Open Session in View</emphasis>— vous "
-"en aurez besoin dès que vous utiliserez des JSPs et non plus des servlets "
-"pour le rendu de vos vues."
+"lancée et la transaction avec la base de données subit un rollback. Cela "
+"complète le modèle <literal>session-per-request</literal>. Au lieu d'avoir "
+"un code de délimitant les transactions au sein de chaque servlet, vous "
+"pouvez écrire un filtre de servlet. Voir le site Hibernate et le Wiki pour "
+"plus d'informations sur ce modèle, appelé <emphasis>Open Session in View</"
+"emphasis> - vous en aurez besoin dès que vous utiliserez des JSP et non des "
+"servlets pour le rendu de vos vues. "
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
-msgstr "Procéder et rendre"
+msgstr "Traiter et interpréter"
#. Tag: para
-#: tutorial.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
-msgstr "Implémentons l'exécution de la requête et le rendu de la page."
+msgstr "Implémentons l'exécution de la requête et le rendu de la page. "
-#. Tag: programlisting
-#: tutorial.xml:1028
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1030
-#, fuzzy, no-c-format
-msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
"complex application—keep in mind that we are only illustrating basic "
"Hibernate concepts in this tutorial. The code prints an HTML header and a "
@@ -2385,102 +1670,37 @@
"events in the database are printed. The first method is trivial and only "
"outputs HTML:"
msgstr ""
-"Ce style de code avec un mix de Java et d'HTML ne serait pas scalable dans "
-"une application plus complexe—gardez à l'esprit que nous ne faisons "
-"qu'illustrer les concepts basiques d'Hibernate dans ce tutoriel. Ce code "
-"affiche une en tête et un pied de page HTML. Dans cette page, sont affichés "
+"Ce style de code avec une mixture de Java et d'HTML ne serait pas extensible "
+"dans une application plus complexe - gardez à l'esprit que nous ne faisons "
+"qu'illustrer les concepts basiques de Hibernate dans ce didacticiel. Ce code "
+"affiche une entête et un pied de page HTML. Dans cette page, sont affichés "
"un formulaire pour la saisie d'évènements ainsi qu'une liste de tous les "
-"évènements de la base de données. La première méthode est triviale est ne "
-"fait que sortir de l'HTML:"
+"évènements de la base de données. La première méthode est triviale et ne "
+"fait que sortir de l'HTML :"
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
"<literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
"La méthode <literal>listEvents()</literal> utilise la <literal>Session</"
-"literal> Hibernate liée au thread courant pour exécuter la requête:"
+"literal> Hibernate liée au thread courant pour exécuter la requête :"
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
"<literal>createAndStoreEvent()</literal> method, which also uses the "
"<literal>Session</literal> of the current thread:"
msgstr ""
-"FEnfin, l'action <literal>store</literal> renvoie à la méthode "
+"Enfin, l'action <literal>store</literal> renvoie à la méthode "
"<literal>createAndStoreEvent()</literal>, qui utilise aussi la "
"<literal>Session</literal> du thread courant:"
-#. Tag: programlisting
-#: tutorial.xml:1055
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1057
-#, fuzzy, no-c-format
-msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
"single <literal>Session</literal> and <literal>Transaction</literal>. As "
"earlier in the standalone application, Hibernate can automatically bind "
@@ -2490,80 +1710,54 @@
"data access code into data access objects (the DAO pattern). See the "
"Hibernate Wiki for more examples."
msgstr ""
-"La servlet est faite. Une requête à la servlet sera exécutée par une seule "
-"<literal>Session</literal> et <literal>Transaction</literal>. Comme pour une "
-"application standalone, Hibernate peut automatiquement lier ces objets au "
-"thread courant d'exécution. Cela vous laisse la liberté de séparer votre "
-"code en couches et d'accéder à la <literal>SessionFactory</literal> par le "
-"moyen que vous voulez. Généralement, vous utiliserez des conceptions plus "
-"sophistiquées et déplacerez le code d'accès aux données dans une couche DAO. "
-"Voir le wiki Hibernate pour plus d'exemples."
+"La servlet est complétée. Une requête à la servlet sera exécutée par une "
+"seule <literal>Session</literal> et <literal>Transaction</literal>. Comme "
+"dans l'application autonome vue auparavant, Hibernate peut automatiquement "
+"lier ces objets au thread courant d'exécution. Cela vous laisse la liberté "
+"de séparer votre code en couches et d'accéder à la <literal>SessionFactory</"
+"literal> selon le moyen que vous aurez choisi. Généralement, vous utiliserez "
+"des conceptions plus sophistiquées et déplacerez le code d'accès aux données "
+"dans une couche DAO. Consultez le wiki Hibernate pour plus d'exemples. "
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
msgstr "Déployer et tester"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
"First we must define the WAR descriptor as <filename>src/main/webapp/WEB-INF/"
"web.xml</filename>"
msgstr ""
+"Pour déployer cette application en vue de procéder à des tests, nous devons "
+"créer un WAR (Web ARchive). Tout d'abord, nous devons définir le descripteur "
+"WAR en tant que <filename>src/main/webapp/WEB-INF/web.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:1079
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1081
-#, fuzzy, no-c-format
-msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
"directory and copy the <filename>hibernate-tutorial.war</filename> file into "
"your Tomcat <filename>webapps</filename> directory."
msgstr ""
"Pour construire et déployer, appelez <literal>ant war</literal> dans votre "
-"projet et copier le fichier <literal>hibernate-tutorial.war</literal> dans "
-"le répertoire <literal>webapp</literal> de tomcat Si vous n'avez pas "
-"installé Tomcat, téléchargez le et suivez la notice d'installation. Vous "
-"n'avez pas à modifier la configuration Tomcat pour déployer cette "
-"application."
+"projet et copiez le fichier <literal>hibernate-tutorial.war</literal> dans "
+"le répertoire <literal>webapp</literal> de Tomcat. "
#. Tag: para
-#: tutorial.xml:1088
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
+"Si vous n'avez pas installé Tomcat, téléchargez-le de <ulink url=\"http://"
+"tomcat.apache.org/\" /> et suivez la notice d'installation. Vous n'avez pas "
+"à modifier la configuration Tomcat pour déployer cette application."
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -2575,433 +1769,24 @@
msgstr ""
"Une fois l'application déployée et Tomcat lancé, accédez à l'application via "
"<literal>http://localhost:8080/hibernate-tutorial/eventmanager</literal>. "
-"Assurez vous de consulter les traces tomcat pour observer l'initialisation "
+"Assurez vous de consulter les traces Tomcat pour observer l'initialisation "
"d'Hibernate à la première requête touchant votre servlet (l'initialisation "
"statique dans <literal>HibernateUtil</literal> est invoquée) et pour "
"vérifier qu'aucune exception ne survienne."
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr "Résumé"
#. Tag: para
-#: tutorial.xml:1111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
"application and a small web application. More tutorials are available from "
"the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
"Ce didacticiel a couvert les bases de l'écriture d'une simple application "
-"Hibernate ainsi qu'une petite application web."
-
-#~ msgid "Introduction to Hibernate"
-#~ msgstr "Introduction à Hibernate"
-
-#~ msgid "Preface"
-#~ msgstr "Préface"
-
-#~ msgid ""
-#~ "Our first persistent class is a simple JavaBean class with some "
-#~ "properties:"
-#~ msgstr ""
-#~ "Notre première classe persistante est une simple classe JavaBean avec "
-#~ "quelques propriétés :"
-
-#~ msgid ""
-#~ "Place this Java source file in a directory called <literal>src</literal> "
-#~ "in the development folder, and in its correct package. The directory "
-#~ "should now look like this:"
-#~ msgstr ""
-#~ "Placez ce fichier source Java dans un répertoire appelé <literal>src</"
-#~ "literal> dans le dossier de développement. Ce répertoire devrait "
-#~ "maintenant ressembler à ça :"
-
-#~ msgid "In the next step, we tell Hibernate about this persistent class."
-#~ msgstr ""
-#~ "Dans la prochaine étape, nous informons Hibernate de cette classe "
-#~ "persistante."
-
-#, fuzzy
-#~ msgid ""
-#~ "The <literal>id</literal> element is the declaration of the identifier "
-#~ "property, <literal>name=\"id\"</literal> declares the name of the Java "
-#~ "property - Hibernate will use the getter and setter methods to access the "
-#~ "property. The column attribute tells Hibernate which column of the "
-#~ "<literal>EVENTS</literal> table we use for this primary key. The nested "
-#~ "<literal>generator</literal> element specifies the identifier generation "
-#~ "strategy, in this case we used <literal>native</literal>, which picks the "
-#~ "best strategy depending on the configured database (dialect). Hibernate "
-#~ "supports database generated, globally unique, as well as application "
-#~ "assigned identifiers (or any strategy you have written an extension for)."
-#~ msgstr ""
-#~ "L'élément <literal>id</literal> est la déclaration de la propriété de "
-#~ "l'identifiant, <literal>name=\"id\"</literal> déclare le nom de la "
-#~ "propriété Java - Hibernate utilisera les méthodes getter et setter pour "
-#~ "accéder à la propriété. L'attribut <literal>column</literal> indique à "
-#~ "Hibernate quelle colonne de la table <literal>EVENTS</literal> nous "
-#~ "utilisons pour cette clef primaire. L'élément <literal>generator</"
-#~ "literal> imbriqué spécifie la stratégie de génération de l'identifiant, "
-#~ "dans ce cas nous avons utilisé <literal>increment</literal>, laquelle est "
-#~ "une méthode très simple utile surtout pour les tests (et didacticiels). "
-#~ "Hibernate supporte aussi les identifiants générés par les bases de "
-#~ "données, globalement uniques, ainsi que les identifiants assignés par "
-#~ "l'application (ou n'importe quelle stratégie que vous avez écrit en "
-#~ "extension)."
-
-#~ msgid ""
-#~ "This mapping file should be saved as <literal>Event.hbm.xml</literal>, "
-#~ "right in the directory next to the <literal>Event</literal> Java class "
-#~ "source file. The naming of mapping files can be arbitrary, however the "
-#~ "<literal>hbm.xml</literal> suffix is a convention in the Hibernate "
-#~ "developer community. The directory structure should now look like this:"
-#~ msgstr ""
-#~ "Ce fichier de mapping devrait être sauvegardé en tant que <literal>Event."
-#~ "hbm.xml</literal>, juste dans le répertoire à côté du fichier source de "
-#~ "la classe Java <literal>Event</literal>. Le nommage des fichiers de "
-#~ "mapping peut être arbitraire, cependant le suffixe <literal>hbm.xml</"
-#~ "literal> est devenu une convention dans la communauté des développeurs "
-#~ "Hibernate. La structure du répertoire devrait ressembler à ça :"
-
-#~ msgid "We continue with the main configuration of Hibernate."
-#~ msgstr "Nous poursuivons avec la configuration principale d'Hibernate."
-
-#~ msgid ""
-#~ "We now have a persistent class and its mapping file in place. It is time "
-#~ "to configure Hibernate. Before we do this, we will need a database. HSQL "
-#~ "DB, a java-based SQL DBMS, can be downloaded from the HSQL DB website"
-#~ "(http://hsqldb.org/). Actually, you only need the <literal>hsqldb.jar</"
-#~ "literal> from this download. Place this file in the <literal>lib/</"
-#~ "literal> directory of the development folder."
-#~ msgstr ""
-#~ "Nous avons maintenant une classe persistante et son fichier de mapping. "
-#~ "Il est temps de configurer Hibernate. Avant ça, nous avons besoin d'une "
-#~ "base de données. HSQL DB, un SGBD SQL basé sur Java et travaillant en "
-#~ "mémoire, peut être téléchargé à partir du site web de HSQL. En fait, vous "
-#~ "avez seulement besoin de <literal>hsqldb.jar</literal>. Placez ce fichier "
-#~ "dans le répertoire <literal>lib/</literal> du dossier de développement."
-
-#~ msgid ""
-#~ "Hibernate is the layer in your application which connects to this "
-#~ "database, so it needs connection information. The connections are made "
-#~ "through a JDBC connection pool, which we also have to configure. The "
-#~ "Hibernate distribution contains several open source JDBC connection "
-#~ "pooling tools, but will use the Hibernate built-in connection pool for "
-#~ "this tutorial. Note that you have to copy the required library into your "
-#~ "classpath and use different connection pooling settings if you want to "
-#~ "use a production-quality third party JDBC pooling software."
-#~ msgstr ""
-#~ "Hibernate est la couche de votre application qui se connecte à cette base "
-#~ "de données, donc il a besoin des informations de connexion. Les "
-#~ "connexions sont établies à travers un pool de connexions JDBC, que nous "
-#~ "devons aussi configurer. La distribution Hibernate contient différents "
-#~ "outils de gestion de pools de connexions JDBC open source, mais pour ce "
-#~ "didacticiel nous utiliserons le pool de connexions intégré à Hibernate. "
-#~ "Notez que vous devez copier les bibliothèques requises dans votre "
-#~ "classpath et utiliser une configuration de pool de connexions différente "
-#~ "si vous voulez utiliser un logiciel de gestion de pools JDBC tiers avec "
-#~ "une qualité de production."
-
-#~ msgid ""
-#~ "Copy this file into the source directory, so it will end up in the root "
-#~ "of the classpath. Hibernate automatically looks for a file called "
-#~ "<literal>hibernate.cfg.xml</literal> in the root of the classpath, on "
-#~ "startup."
-#~ msgstr ""
-#~ "Copiez ce fichier dans le répertoire source, il terminera dans la racine "
-#~ "du classpath. Hibernate cherchera automatiquement, au démarrage, un "
-#~ "fichier appelé <literal>hibernate.cfg.xml</literal> dans la racine du "
-#~ "classpath."
-
-#~ msgid ""
-#~ "We'll now build the tutorial with Ant. You will need to have Ant "
-#~ "installed - get it from the <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Ant download page</ulink>. How to install Ant will not "
-#~ "be covered here. Please refer to the <ulink url=\"http://ant.apache.org/"
-#~ "manual/index.html\">Ant manual</ulink>. After you have installed Ant, we "
-#~ "can start to create the buildfile. It will be called <literal>build.xml</"
-#~ "literal> and placed directly in the development directory."
-#~ msgstr ""
-#~ "Nous allons maintenant construire le didacticiel avec Ant. Vous aurez "
-#~ "besoin d'avoir Ant d'installé - récupérez-le à partir de <ulink url="
-#~ "\"http://ant.apache.org/bindownload.cgi\"> la page de téléchargement de "
-#~ "Ant</ulink>. Comment installer Ant ne sera pas couvert ici. Référez-vous "
-#~ "au <ulink url=\"http://ant.apache.org/manual/index.html\">manuel d'Ant</"
-#~ "ulink>. Après que vous aurez installé Ant, nous pourrons commencer à "
-#~ "créer le fichier de construction. Il s'appellera <literal>build.xml</"
-#~ "literal> et sera placé directement dans le répertoire de développement."
-
-#~ msgid "A basic build file looks like this:"
-#~ msgstr "Un fichier de construction basique ressemble à ça :"
-
-#~ msgid ""
-#~ "This will tell Ant to add all files in the lib directory ending with "
-#~ "<literal>.jar</literal> to the classpath used for compilation. It will "
-#~ "also copy all non-Java source files to the target directory, e.g. "
-#~ "configuration and Hibernate mapping files. If you now run Ant, you should "
-#~ "get this output:"
-#~ msgstr ""
-#~ "Cela dira à Ant d'ajouter tous les fichiers du répertoire lib finissant "
-#~ "par <literal>.jar</literal> dans le classpath utilisé pour la "
-#~ "compilation. Cela copiera aussi tous les fichiers source non Java dans le "
-#~ "répertoire cible, par exemple les fichiers de configuration et de mapping "
-#~ "d'Hibernate. Si vous lancez Ant maintenant, vous devriez obtenir cette "
-#~ "sortie :"
-
-#~ msgid ""
-#~ "Place <literal>HibernateUtil.java</literal> in the development source "
-#~ "directory, in a package next to <literal>events</literal>:"
-#~ msgstr ""
-#~ "Placez <literal>HibernateUtil.java</literal> dans le répertoire source de "
-#~ "développement, et ensuite <literal>Event.java</literal> :"
-
-#~ msgid ""
-#~ "To run this first routine we have to add a callable target to the Ant "
-#~ "build file:"
-#~ msgstr ""
-#~ "Pour lancer cette première routine, nous devons ajouter une cible "
-#~ "appelable dans le fichier de construction de Ant :"
-
-#~ msgid ""
-#~ "The value of the <literal>action</literal> argument is set on the command "
-#~ "line when calling the target:"
-#~ msgstr ""
-#~ "La valeur de l'argument <literal>action</literal> correspond à la ligne "
-#~ "de commande qui appelle la cible :"
-
-#~ msgid ""
-#~ "This is the <literal>INSERT</literal> executed by Hibernate, the question "
-#~ "marks represent JDBC bind parameters. To see the values bound as "
-#~ "arguments, or to reduce the verbosity of the log, check your "
-#~ "<literal>log4j.properties</literal>."
-#~ msgstr ""
-#~ "C'est l'<literal>INSERT</literal> exécuté par Hibernate, les points "
-#~ "d'interrogation représentent les paramètres JDBC liés. Pour voir les "
-#~ "valeurs liées aux arguments, ou pour réduire la verbosité des traces, "
-#~ "vérifier votre <literal>log4j.properties</literal>."
-
-#~ msgid "Now, to execute and test all of this, follow these steps:"
-#~ msgstr "Maintenant, pour exécuter et tester tout ça, suivez ces étapes :"
-
-#~ msgid ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
-#~ msgstr ""
-#~ "Exécutez <literal>ant run -Daction=store</literal> pour stocker quelque "
-#~ "chose dans la base de données et, bien sûr, pour générer, avant, le "
-#~ "schéma de la base de données grâce à hbm2ddl."
-
-#, fuzzy
-#~ msgid ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continuous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
-#~ msgstr ""
-#~ "Maintenant désactivez hbm2ddl en commentant la propriété dans votre "
-#~ "fichier <literal>hibernate.cfg.xml</literal>. Généralement vous la "
-#~ "laissez seulement activée dans des tests unitaires en continu, mais une "
-#~ "autre exécution de hbm2ddl <emphasis>effacerait</emphasis> tout ce que "
-#~ "vous avez stocké - le paramètre de configuration <literal>create</"
-#~ "literal> se traduit en fait par \"supprimer toutes les tables du schéma, "
-#~ "puis re-créer toutes les tables, lorsque la SessionFactory est construite"
-#~ "\"."
-
-#~ msgid ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
-#~ msgstr ""
-#~ "Si maintenant vous appelez Ant avec <literal>-Daction=list</literal>, "
-#~ "vous devriez voir les événements que vous avez stockés jusque là . Vous "
-#~ "pouvez bien sûr aussi appeler l'action <literal>store</literal> plusieurs "
-#~ "fois."
-
-#~ msgid ""
-#~ "Note: Most new Hibernate users fail at this point and we see questions "
-#~ "about <emphasis>Table not found</emphasis> error messages regularly. "
-#~ "However, if you follow the steps outlined above you will not have this "
-#~ "problem, as hbm2ddl creates the database schema on the first run, and "
-#~ "subsequent application restarts will use this schema. If you change the "
-#~ "mapping and/or database schema, you have to re-enable hbm2ddl once again."
-#~ msgstr ""
-#~ "UNTRANSLATED! Note: Most new Hibernate users fail at this point and we "
-#~ "see questions about <emphasis>Table not found</emphasis> error messages "
-#~ "regularly. However, if you follow the steps outlined above you will not "
-#~ "have this problem, as hbm2ddl creates the database schema on the first "
-#~ "run, and subsequent application restarts will use this schema. If you "
-#~ "change the mapping and/or database schema, you have to re-enable hbm2ddl "
-#~ "once again."
-
-#~ msgid ""
-#~ "Create a new mapping file called <literal>Person.hbm.xml</literal> (don't "
-#~ "forget the DTD reference at the top):"
-#~ msgstr ""
-#~ "Créez un nouveau fichier de mapping appelé <literal>Person.hbm.xml</"
-#~ "literal> (n'oubliez pas la référence à la DTD)"
-
-#~ msgid ""
-#~ "We need a unidirectional, many-valued associations, implemented with a "
-#~ "<literal>Set</literal>. Let's write the code for this in the Java classes "
-#~ "and then map it:"
-#~ msgstr ""
-#~ "Nous avons besoin d'une association unidirectionnelle, pluri-valuée, "
-#~ "implémentée avec un <literal>Set</literal>. Ãcrivons le code pour ça dans "
-#~ "les classes Java et mappons les :"
-
-#~ msgid ""
-#~ "We add a collection of value typed objects to the <literal>Person</"
-#~ "literal> entity. We want to store email addresses, so the type we use is "
-#~ "<literal>String</literal>, and the collection is again a <literal>Set</"
-#~ "literal>:"
-#~ msgstr ""
-#~ "Nous ajoutons une collection d'objets de type de valeur à l'entité "
-#~ "<literal>Person</literal>. Nous voulons stocker des adresses email, donc "
-#~ "le type que nous utilisons est <literal>String</literal>, et la "
-#~ "collection est encore un <literal>Set</literal> :"
-
-#, fuzzy
-#~ msgid "Let's turn the following discussion into a small web application..."
-#~ msgstr "Let's turn this into a small web application."
-
-#~ msgid ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
-#~ msgstr ""
-#~ "Créons une nouvelle classe dans notre répertoire source, dans le package "
-#~ "<literal>events</literal>:"
-
-#~ msgid ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
-#~ msgstr ""
-#~ "Pour déployer cette application, vous devez créer une archive Web, un "
-#~ "War. Ajoutez la cible Ant suivante dans votre <literal>build.xml</"
-#~ "literal>:"
-
-#~ msgid ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
-#~ msgstr ""
-#~ "Cette cible créé un fichier nommé <literal>hibernate-tutorial.war</"
-#~ "literal> dans le répertoire de votre projet. Elle package les "
-#~ "bibliothèques et le descripteur <literal>web.xml</literal> qui est "
-#~ "attendu dans le répertoire racine de votre projet:"
-
-#, fuzzy
-#~ msgid ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compilation and excluded from the WAR package."
-#~ msgstr ""
-#~ "Avant de compiler et déployer l'application web, notez qu'une "
-#~ "bibliothèque supplémentaire est requise: <literal>servlet.jar</literal>. "
-#~ "C'est le kit de développement de Servlet Java, si vous ne disposez pas de "
-#~ "cette bibliothèque, prenez la sur le <ulink url=\"http://java.sun.com/"
-#~ "products/servlet/archive.html\">site de Sun</ulink> et copiez la dans "
-#~ "votre répertoire des bibliothèques. Cependant, elle ne sera utilisée "
-#~ "uniquement pour la compilation et sera exclue du paackage WAR."
-
-#~ msgid ""
-#~ "If you already feel confident with Hibernate, continue browsing through "
-#~ "the reference documentation table of contents for topics you find "
-#~ "interesting - most asked are transactional processing (<xref linkend="
-#~ "\"transactions\"/>), fetch performance (<xref linkend=\"performance\"/>), "
-#~ "or the usage of the API (<xref linkend=\"objectstate\"/>) and the query "
-#~ "features (<xref linkend=\"objectstate-querying\"/>)."
-#~ msgstr ""
-#~ "Si vous êtes déjà confiants avec Hibernate, continuez à parcourir les "
-#~ "sujets que vous trouvez intéressants à travers la table des matières de "
-#~ "la documentation de référence - les plus demandés sont le traitement "
-#~ "transactionnel (<xref linkend=\"transactions\"/>), la performance des "
-#~ "récupérations d'information (<xref linkend=\"performance\"/>), ou "
-#~ "l'utilisation de l'API (<xref linkend=\"objectstate\"/>) et les "
-#~ "fonctionnalités des requêtes (<xref linkend=\"objectstate-querying\"/>)."
-
-#~ msgid ""
-#~ "Don't forget to check the Hibernate website for more (specialized) "
-#~ "tutorials."
-#~ msgstr ""
-#~ "N'oubliez pas de vérifier le site web d'Hibernate pour d'autres "
-#~ "didacticiels (plus spécialisés)."
-
-#~ msgid ""
-#~ "This chapter is an introductory tutorial for new users of Hibernate. We "
-#~ "start with a simple command line application using an in-memory database "
-#~ "and develop it in easy to understand steps."
-#~ msgstr ""
-#~ "Ce chapitre est un didacticiel introductif destiné aux nouveaux "
-#~ "utilisateurs d'Hibernate. Nous commençons avec une simple application en "
-#~ "ligne de commande utilisant une base de données en mémoire, et la "
-#~ "développons en étapes faciles à comprendre."
-
-#~ msgid ""
-#~ "This tutorial is intended for new users of Hibernate but requires Java "
-#~ "and SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-"
-#~ "party libraries we name are for JDK 1.4 and 5.0. You might need others "
-#~ "for JDK 1.3."
-#~ msgstr ""
-#~ "Ce didacticiel est destiné aux nouveaux utilisateurs d'Hibernate mais "
-#~ "requiert des connaissances Java et SQL. Il est basé sur un didacticiel de "
-#~ "Michael Gloegl, les bibliothèques tierces que nous nommons sont pour les "
-#~ "JDK 1.4 et 5.0. Vous pourriez avoir besoin d'autres bibliothèques pour le "
-#~ "JDK 1.3."
-
-#~ msgid ""
-#~ "The source code for the tutorial is included in the distribution in the "
-#~ "<literal>doc/reference/tutorial/</literal> directory."
-#~ msgstr ""
-#~ "Le code source de ce tutoriel est inclus dans la distribution dans le "
-#~ "répertoire <literal>doc/reference/tutorial/</literal>."
-
-#~ msgid ""
-#~ "First, we'll create a simple console-based Hibernate application. We use "
-#~ "an Java database (HSQL DB), so we do not have to install any database "
-#~ "server."
-#~ msgstr ""
-#~ "D'abord, nous créerons une simple application Hibernate en console. Nous "
-#~ "utilisons une base de données en mémoire (HSQL DB), donc nous n'avons pas "
-#~ "à installer de serveur de base de données."
-
-#~ msgid ""
-#~ "The first thing we do, is set up our development directory and put all "
-#~ "the Java libraries we need into it. Download the Hibernate distribution "
-#~ "from the Hibernate website. Extract the package and place all required "
-#~ "libraries found in <literal>/lib</literal> into into the <literal>/lib</"
-#~ "literal> directory of your new development working directory. It should "
-#~ "look like this:"
-#~ msgstr ""
-#~ "La première chose que nous faisons est de configurer notre répertoire de "
-#~ "développement et de mettre toutes les bibliothèques dont nous avons "
-#~ "besoin dedans. Téléchargez la distribution Hibernate à partir du site web "
-#~ "d'Hibernate. Extrayez le paquet et placez toutes les bibliothèques "
-#~ "requises trouvées dans <literal>/lib</literal> dans le répertoire "
-#~ "<literal>/lib</literal> de votre nouveau répertoire de travail. Il "
-#~ "devrait ressembler à ça :"
-
-#~ msgid ""
-#~ "This is the minimum set of required libraries (note that we also copied "
-#~ "hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of "
-#~ "writing</emphasis>. The Hibernate release you are using might require "
-#~ "more or less libraries. See the <literal>README.txt</literal> file in the "
-#~ "<literal>lib/</literal> directory of the Hibernate distribution for more "
-#~ "information about required and optional third-party libraries. (Actually, "
-#~ "Log4j is not required but preferred by many developers.)"
-#~ msgstr ""
-#~ "Ceci est l'ensemble minimum de bibliothèques requises (notez que nous "
-#~ "avons aussi copié hibernate3.jar, l'archive principale) pour Hibernate. "
-#~ "Lisez le fichier <literal>README.txt</literal> dans le répertoire "
-#~ "<literal>lib/</literal> de la distribution Hibernate pour plus "
-#~ "d'informations à propos des biliothèques tierces requises et "
-#~ "optionnelles. (En fait, log4j n'est pas requis mais préféré par beaucoup "
-#~ "de développeurs.)"
+"Hibernate ainsi qu'une petite application web. Vous trouverez des tutoriels "
+"supplémentaires dans le site Hibernate <ulink url=\"http://hibernate.org"
+"\">website</ulink>."
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,40 +1,42 @@
+# translation of xml.po to French
+# Myriam Malga <mmalga at redhat.com>, 2007.
+# Xi HUANG <xhuang at redhat.com>, 2007.
+# Corina Roe <croe at redhat.com>, 2009, 2010.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-05 10:08+1000\n"
+"Last-Translator: Corina Roe <croe at redhat.com>\n"
+"Language-Team: French <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
-msgstr "Mapping XML"
+msgstr "Mappage XML"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
msgstr ""
-"Notez que cette fonctionnalité est expérimentale dans Hibernate 3.0 et est "
-"en développement extrêmement actif."
+"<emphasis>Notez que cette fonctionnalité est expérimentale dans Hibernate "
+"3.0 et est en développement extrêmement actif. </emphasis>"
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
msgstr "Travailler avec des données XML"
#. Tag: para
-#: xml.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
"you work with persistent POJOs. A parsed XML tree can be thought of as "
@@ -42,12 +44,11 @@
"of POJOs."
msgstr ""
"Hibernate vous laisse travailler avec des données XML persistantes de la "
-"même manière que vous travaillez avec des POJOs persistants. Un arbre XML "
+"même manière que vous travaillez avec des POJO persistants. Un arbre XML "
"peut être vu comme une autre manière de représenter les données "
-"relationnelles au niveau objet, Ã la place des POJOs."
+"relationnelles au niveau objet, Ã la place des POJO. "
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -59,181 +60,113 @@
"yet supported)."
msgstr ""
"Hibernate supporte dom4j en tant qu'API pour la manipulation des arbres XML. "
-"Vous pouvez écrire des requêtes qui récupèrent des arbres dom4j à partie de "
+"Vous pouvez écrire des requêtes qui récupèrent des arbres dom4j à partir de "
"la base de données, et avoir toutes les modifications que vous faites sur "
"l'arbre automatiquement synchronisées dans la base de données. Vous pouvez "
"même prendre un document XML, l'analyser en utilisant dom4j, et l'écrire "
-"dans la base de données via les opérations basiques d'Hibernate : "
+"dans la base de données via les opérations basiques de Hibernate : "
"<literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> "
-"(merge() n'est pas encore supporté)."
+"(merge n'est pas encore supporté)."
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"This feature has many applications including data import/export, "
"externalization of entity data via JMS or SOAP and XSLT-based reporting."
msgstr ""
"Cette fonctionnalité a plusieurs applications dont l'import/export de "
-"données, l'externalisation d'entités via JMS ou SOAP et les rapports XSLT."
+"données, l'externalisation de données d'entités via JMS ou SOAP et les "
+"rapports XSLT."
#. Tag: para
-#: xml.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single mapping can 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 can be used to map just the XML."
msgstr ""
-"Un simple mapping peut être utilisé pour simultanément mapper les propriétés "
-"d'une classe et les noeuds d'un document XML vers la base de données, ou, si "
-"il n'y a pas de classe à mapper, il peut être utilisé juste pour mapper le "
-"XML."
+"Un simple mappage peut être utilisé pour simultanément mapper les propriétés "
+"d'une classe et les noeuds d'un document XML vers la base de données, ou, "
+"s'il n'y a pas de classe à mapper, il peut être utilisé juste pour mapper le "
+"XML. "
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
-msgstr "Spécifier le mapping XML et le mapping d'une classe ensemble"
+msgstr "Spécifier le mappage XML et le mappage d'une classe ensemble"
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
-msgstr "Voici un exemple de mapping d'un POJO et du XML simultanément :"
+msgstr "Voici un exemple de mappage d'un POJO et du XML simultanément :"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
-msgstr "Spécifier seulement un mapping XML"
+msgstr "Spécifier seulement un mappage XML"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
-msgstr "Voici un exemple dans lequel il n'y a pas de class POJO :"
+msgstr "Voici un exemple dans lequel il n'y a pas de classe POJO :"
-#. Tag: programlisting
-#: xml.xml:84
+#. Tag: para
#, no-c-format
msgid ""
-"<![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 ""
-
-#. Tag: para
-#: xml.xml:86
-#, fuzzy, no-c-format
-msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
"property name/value pairs or java <literal>Map</literal>s. The property "
"names are purely logical constructs that can be referred to in HQL queries."
msgstr ""
-"Ce mapping vous permet d'accéder aux données comme un arbre dom4j, ou comme "
-"un graphe de paire nom de propriété/valeur (<literal>Map</literal>s java). "
+"Ce mappage vous permet d'accéder aux données comme un arbre dom4j, ou comme "
+"un graphe de paire nom/valeur de propriété (<literal>Map</literal> s java). "
"Les noms des propriétés sont des constructions purement logiques qui peuvent "
-"être référées des dans requêtes HQL."
+"être référées dans des requêtes HQL. "
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
-msgstr "Métadonnées du mapping XML"
+msgstr "Métadonnées du mappage XML"
#. Tag: para
-#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
"attribute. This lets 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 ""
-"Plusieurs éléments du mapping Hibernate acceptent l'attribut <literal>node</"
+"Plusieurs éléments du mappage Hibernate acceptent l'attribut <literal>node</"
"literal>. Ceci vous permet de spécifier le nom d'un attribut XML ou d'un "
"élément qui contient la propriété ou les données de l'entité. Le format de "
-"l'attribut <literal>node</literal> doit être un des suivants :"
+"l'attribut <literal>node</literal> doit être un des suivants : "
#. Tag: para
-#: xml.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
-msgstr "<literal>\"element-name\"</literal> - mappe vers l'élément XML nommé"
+msgstr "<literal>\"element-name\"</literal> - mappe vers l'élément XML nommé "
#. Tag: para
-#: xml.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
-"<literal>\"@attribute-name\"</literal> - mappe vers l'attribut XML nommé"
+"<literal>\"@attribute-name\"</literal> - mappe vers l'attribut XML nommé "
#. Tag: para
-#: xml.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
-msgstr "<literal>\".\"</literal> - mappe vers le parent de l'élément"
+msgstr "<literal>\".\"</literal> - mappe vers le parent de l'élément "
#. Tag: para
-#: xml.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
"attribute of the named element"
msgstr ""
"<literal>\"element-name/@attribute-name\"</literal> - mappe vers l'élément "
-"nommé de l'attribut nommé"
+"nommé de l'attribut nommé "
#. Tag: para
-#: xml.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
@@ -250,201 +183,61 @@
"l'arbre XML pour l'entité qui possède l'association. Sinon, si "
"<literal>embed-xml=\"false\"</literal>, alors seule la valeur de "
"l'identifiant référencé apparaîtra dans le XML pour de simples associations "
-"de points, et les collections n'appraîtront simplement pas."
+"de points, et les collections n'apparaîtront pas. "
#. Tag: para
-#: xml.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
"associations, since XML does not deal well with circularity."
msgstr ""
-"Vous devriez faire attention à ne pas laisser <literal>embed-xml=\"true\"</"
-"literal> pour trop d'associations, puisque XML ne traite pas bien les liens "
-"circurlaires."
+"Faire attention à ne pas laisser <literal>embed-xml=\"true\"</literal> pour "
+"trop d'associations, puisque XML ne traite pas bien les liens circulaires. "
-#. Tag: programlisting
-#: xml.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:141
-#, fuzzy, no-c-format
-msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
"account data. The following HQL query:"
msgstr ""
-"dans ce cas, nous avons décidé d'embarquer la collection d'identifiants de "
+"Dans ce cas, nous avons décidé d'embarquer la collection d'identifiants de "
"compte, mais pas les données actuelles du compte. La requête HQL suivante :"
-#. Tag: programlisting
-#: xml.xml:146
-#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would return datasets such as this:"
-msgstr "devrait retourner l'ensemble de données suivant :"
+msgstr "devrait retourner l'ensemble de données suivant : "
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
"many></literal> mapping, the data might look more like this:"
msgstr ""
-"Si vous positionnez <literal>embed-xml=\"true\"</literal> sur le mapping "
-"<literal><one-to-many></literal>, les données pourraient ressembler "
-"plus à ça :"
+"Si vous positionnez <literal>embed-xml=\"true\"</literal> sur le mappage "
+"<literal><one-to-many></literal>, les données ressembleraient à ce qui "
+"suit :"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
msgstr "Manipuler des données XML"
#. Tag: para
-#: xml.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
"this by obtaining a dom4j session:"
msgstr ""
"Relisons et mettons à jour des documents XML dans l'application. Nous "
-"faisons ça en obtenant une session dom4j :"
+"effectuons cela en obtenant une session dom4j : "
-#. Tag: programlisting
-#: xml.xml:172
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:176
-#, fuzzy, no-c-format
-msgid ""
"When implementing XML-based data import/export, it is useful to combine this "
"feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
"Il est extrêmement utile de combiner cette fonctionnalité avec l'opération "
-"<literal>replicate()</literal> d'Hibernate pour implémenter des imports/"
-"exports de données XML."
+"<literal>replicate()</literal> de Hibernate pour implémenter des imports/"
+"exports de données XML. "
Modified: core/trunk/documentation/manual/src/main/docbook/fr-FR/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/fr-FR/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/fr-FR/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,35 +2,33 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - Relational Persistence for Idiomatic Java"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "Hibernate Reference Documentation"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,35 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-13 10:25+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr "ã¢ã¼ããã¯ãã£"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
msgstr "æ¦è¦³"
#. Tag: para
-#: architecture.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
-msgstr "Hibernateã¢ã¼ããã¯ãã£ã®ï¼é常ã«ï¼é«ãã¬ãã«ããã®ãã¥ã¼ï¼"
+msgstr "Hibernate ã¢ã¼ããã¯ãã£ã®ï¼é常ã«ï¼é«ãã¬ãã«ããã®ãã¥ã¼ï¼"
#. Tag: para
-#: architecture.xml:48
#, fuzzy, no-c-format
msgid ""
"We do not have the scope in this document to provide a more detailed view of "
@@ -38,61 +37,56 @@
"several different approaches. We will, however, show the two extremes: "
"\"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
-"ããã§å®è¡æã¢ã¼ããã¯ãã£ã®ãã詳細ãªãã¥ã¼ããè¦ããã¾ãããã ããã«ãã"
-"Hibernateã¯æè»ã§ããããããããªã¢ããã¼ãããµãã¼ããã¦ãã¾ãã ããã§ã¯ã2"
-"ã¤ã®æ¥µç«¯ãªä¾ããè¦ããã¾ãã ã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ãèª"
-"åã®JDBCã³ãã¯ã·ã§ã³ãç¨æãã ã¢ããªã±ã¼ã·ã§ã³èªèº«ããã©ã³ã¶ã¯ã·ã§ã³ã管çã"
-"ã¾ãã ãã®æ¹æ³ã¯ãHibernate APIã®æå°éã®ãµãã»ããã使ãã¾ãï¼"
+"ããã§å®è¡æã¢ã¼ããã¯ãã£ã®ãã詳細ãªãã¥ã¼ããè¦ããã¾ããããããã«ãã "
+"Hibernate ã¯æè»ã§ããããããããªã¢ããã¼ãããµãã¼ããã¦ãã¾ããããã§ã¯ã2"
+"ã¤ã®æ¥µç«¯ãªä¾ããè¦ããã¾ããã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ãèª"
+"åã® JDBC ã³ãã¯ã·ã§ã³ãç¨æããã¢ããªã±ã¼ã·ã§ã³èªèº«ããã©ã³ã¶ã¯ã·ã§ã³ã管ç"
+"ãã¾ãããã®æ¹æ³ã¯ã Hibernate API ã®æå°éã®ãµãã»ããã使ãã¾ãï¼"
#. Tag: para
-#: architecture.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This next diagram illustrates how Hibernate utilizes database and "
"configuration data to provide persistence services, and persistent objects, "
"to the application."
msgstr ""
-"ãã®å³ã¯Hibernateããã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦æ°¸ç¶åãµã¼ãã¹ ï¼ã¨æ°¸ç¶ãªãã¸ã§"
-"ã¯ãï¼ãæä¾ããããã«ããã¼ã¿ãã¼ã¹ã¨è¨å®ãã¼ã¿ã使ããã¨ã 示ãã¦ãã¾ãã"
+"ãã®å³ã¯ Hibernate ããã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦æ°¸ç¶åãµã¼ãã¹ ï¼ã¨æ°¸ç¶ãªã"
+"ã¸ã§ã¯ãï¼ãæä¾ããããã«ããã¼ã¿ãã¼ã¹ã¨è¨å®ãã¼ã¿ã使ããã¨ã示ãã¦ãã¾"
+"ãã"
#. Tag: para
-#: architecture.xml:59
#, fuzzy, no-c-format
msgid ""
"The \"minimal\" architecture has the application provide its own JDBC "
"connections and manage its own transactions. This approach uses a minimal "
"subset of Hibernate's APIs:"
msgstr ""
-"ããã§å®è¡æã¢ã¼ããã¯ãã£ã®ãã詳細ãªãã¥ã¼ããè¦ããã¾ãããã ããã«ãã"
-"Hibernateã¯æè»ã§ããããããããªã¢ããã¼ãããµãã¼ããã¦ãã¾ãã ããã§ã¯ã2"
-"ã¤ã®æ¥µç«¯ãªä¾ããè¦ããã¾ãã ã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ãèª"
-"åã®JDBCã³ãã¯ã·ã§ã³ãç¨æãã ã¢ããªã±ã¼ã·ã§ã³èªèº«ããã©ã³ã¶ã¯ã·ã§ã³ã管çã"
-"ã¾ãã ãã®æ¹æ³ã¯ãHibernate APIã®æå°éã®ãµãã»ããã使ãã¾ãï¼"
+"ããã§å®è¡æã¢ã¼ããã¯ãã£ã®ãã詳細ãªãã¥ã¼ããè¦ããã¾ããããããã«ãã "
+"Hibernate ã¯æè»ã§ããããããããªã¢ããã¼ãããµãã¼ããã¦ãã¾ããããã§ã¯ã2"
+"ã¤ã®æ¥µç«¯ãªä¾ããè¦ããã¾ããã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ãèª"
+"åã® JDBC ã³ãã¯ã·ã§ã³ãç¨æããã¢ããªã±ã¼ã·ã§ã³èªèº«ããã©ã³ã¶ã¯ã·ã§ã³ã管ç"
+"ãã¾ãããã®æ¹æ³ã¯ã Hibernate API ã®æå°éã®ãµãã»ããã使ãã¾ãï¼"
#. Tag: para
-#: architecture.xml:74
#, fuzzy, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
-"ãéããã¢ã¼ããã¯ãã£ã¯ãã¢ããªã±ã¼ã·ã§ã³ããããã®ä¸ã«ä½ç½®ããJDBCãJTAã®"
-"APIã åãæã£ã¦æ½è±¡åãããã®è©³ç´°ã®é¢åãHibernateã«è¦ããã¾ãã"
+"ã軽ããã¢ã¼ããã¯ãã£ã¯ãã¢ããªã±ã¼ã·ã§ã³ããããã®ä¸ã«ä½ç½®ãã JDBC ã JTA "
+"ã® API ãåãæã£ã¦æ½è±¡åãããã®è©³ç´°ã®é¢åã Hibernate ã«è¦ããã¾ãã"
#. Tag: para
-#: architecture.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
-msgstr "以ä¸ã¯ãä¸ã®å³ã«å«ã¾ãããªãã¸ã§ã¯ãã®å®ç¾©ã§ãï¼ <placeholder-1/>"
+msgstr "以ä¸ã¯ãå³ã«å«ã¾ãããªãã¸ã§ã¯ãã®å®ç¾©ã§ãï¼"
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:95
#, fuzzy, no-c-format
msgid ""
"A threadsafe, immutable cache of compiled mappings for a single database. A "
@@ -101,20 +95,18 @@
"hold an optional (second-level) cache of data that is reusable between "
"transactions at a process, or cluster, level."
msgstr ""
-"1ã¤ã®ãã¼ã¿ãã¼ã¹ã«å¯¾ããã³ã³ãã¤ã«ããããããã³ã°ã® ã¹ã¬ããã»ã¼ããªï¼æ´æ°"
-"ä¸è½ã®ï¼ãã£ãã·ã¥ã <literal>Session</literal> ã®ãã¡ã¯ããªã§ããã "
-"<literal>ConnectionProvider</literal> ã®ã¯ã©ã¤ã¢ã³ãã ãªãã·ã§ã³ã¨ãã¦ããã"
-"ã»ã¹ã¾ãã¯ã¯ã©ã¹ã¿ã¬ãã«ã«ããã¦ã ãã©ã³ã¶ã¯ã·ã§ã³éã§åå©ç¨å¯è½ãªãã¼ã¿ã®"
+"1ã¤ã®ãã¼ã¿ãã¼ã¹ã«å¯¾ããã³ã³ãã¤ã«ããããããã³ã°ã®ã¹ã¬ããã»ã¼ããªï¼æ´æ°ä¸"
+"è½ã®ï¼ãã£ãã·ã¥ã <literal>Session</literal> ã®ãã¡ã¯ããªã§ããã "
+"<literal>ConnectionProvider</literal> ã®ã¯ã©ã¤ã¢ã³ãããªãã·ã§ã³ã¨ãã¦ããã"
+"ã»ã¹ã¾ãã¯ã¯ã©ã¹ã¿ã¬ãã«ã«ããã¦ããã©ã³ã¶ã¯ã·ã§ã³éã§åå©ç¨å¯è½ãªãã¼ã¿ã®"
"ï¼äºæ¬¡ï¼ãã£ãã·ã¥ãæã¡ã¾ãã"
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:107
#, fuzzy, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
@@ -123,21 +115,19 @@
"holds a mandatory first-level cache of persistent objects that are used when "
"navigating the object graph or looking up objects by identifier."
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã¨æ°¸ç¶ã¹ãã¢ã¨ã®å¯¾è©±ã表ãã ã·ã³ã°ã«ã¹ã¬ããã§çå½ã®ãªãã¸ã§"
-"ã¯ãã JDBCã³ãã¯ã·ã§ã³ãã©ãããã¾ãã <literal>Transaction</literal> ã®ãã¡"
-"ã¯ããªã§ãã æ°¸ç¶ãªãã¸ã§ã¯ãã®å¿
é ã®ï¼ä¸æ¬¡ï¼ãã£ãã·ã¥ãä¿æãã¾ãã ãã®"
-"ãã£ãã·ã¥ã¯ãªãã¸ã§ã¯ãã°ã©ããããã²ã¼ã·ã§ã³ããæãã èå¥åã§ãªãã¸ã§ã¯ã"
+"ã¢ããªã±ã¼ã·ã§ã³ã¨æ°¸ç¶ã¹ãã¢ã¨ã®å¯¾è©±ã表ããã·ã³ã°ã«ã¹ã¬ããã§çå½ã®ãªãã¸ã§"
+"ã¯ãã JDBC ã³ãã¯ã·ã§ã³ãã©ãããã¾ãã <literal>Transaction</literal> ã®"
+"ãã¡ã¯ããªã§ããæ°¸ç¶ãªãã¸ã§ã¯ãã®å¿
é ã®ï¼ä¸æ¬¡ï¼ãã£ãã·ã¥ãä¿æãã¾ãããã®"
+"ãã£ãã·ã¥ã¯ãªãã¸ã§ã¯ãã°ã©ããããã²ã¼ã·ã§ã³ããæããèå¥åã§ãªãã¸ã§ã¯ã"
"ãæ¤ç´¢ããæã«ä½¿ããã¾ãã"
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
msgstr "Persistent objects 㨠Collections"
#. Tag: para
-#: architecture.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
@@ -146,43 +136,38 @@
"in any application layer (for example, directly as data transfer objects to "
"and from presentation)."
msgstr ""
-"æ°¸ç¶åç¶æ
ã¨ãã¸ãã¹ã¡ã½ãããæã¤ãçå½ã§ã·ã³ã°ã«ã¹ã¬ããã®ãªãã¸ã§ã¯ãã ã"
-"ãã¯é常ã®JavaBeans/POJOã®ãã¨ãããã¾ãããç¹å¾´çãªãã¨ã¯ã ãã®æç¹ã§ã®ï¼ã"
-"ã 1ã¤ã®ï¼ <literal>Session</literal> ã¨é¢é£ãã¦ãããã¨ã§ãã "
-"<literal>Session</literal> ãã¯ãã¼ãºãããã¨ããã«ã ãããã¯åãé¢ããã¦ä»"
-"ã®ã¢ããªã±ã¼ã·ã§ã³å±¤ããèªç±ã«ä½¿ããã¨ãã§ãã¾ãã ï¼ä¾ãã°ãã¼ã¿ã»ãã©ã³ã¹"
-"ãã¡ã»ãªãã¸ã§ã¯ãã¨ãã¦ã ãã¬ã¼ã³ãã¼ã·ã§ã³å±¤ãããã¾ãã¯ãã¬ã¼ã³ãã¼ã·ã§ã³"
-"層ã¸ç´æ¥ä½¿ç¨ã§ãã¾ããï¼"
+"æ°¸ç¶åç¶æ
ã¨ãã¸ãã¹æ©è½ãæã¤ãçå½ã§ã·ã³ã°ã«ã¹ã¬ããã®ãªãã¸ã§ã¯ããããã¯"
+"é常㮠JavaBeans/POJO ã®ãã¨ãããã¾ãããç¹å¾´çãªãã¨ã¯ããã®æç¹ã§ã®ï¼ãã 1"
+"ã¤ã®ï¼ <literal>Session</literal> ã¨é¢é£ãã¦ãããã¨ã§ãã <literal>Session</"
+"literal> ãã¯ãã¼ãºãããã¨ããã«ããããã¯åãé¢ããã¦ä»ã®ã¢ããªã±ã¼ã·ã§ã³å±¤"
+"ããèªç±ã«ä½¿ããã¨ãã§ãã¾ãï¼ä¾ãã°ãã¼ã¿ãã©ã³ã¹ãã¡ãªãã¸ã§ã¯ãã¨ãã¦ãã"
+"ã¬ã¼ã³ãã¼ã·ã§ã³å±¤ãããã¾ãã¯ãã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã¸ç´æ¥ä½¿ç¨ã§ãã¾ãï¼ã"
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "Transient 㨠detached 㪠objects 㨠Collections"
#. Tag: para
-#: architecture.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<literal>Session</literal>. They may have been instantiated by the "
"application and not yet persisted, or they may have been instantiated by a "
"closed <literal>Session</literal>."
msgstr ""
-"ç¾æç¹ã§ã¯ <literal>Session</literal> ã¨é¢é£ãã¦ããªãã æ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿"
-"ã³ã¹ã ãã§ã«ã¢ããªã±ã¼ã·ã§ã³å´ã§ã¤ã³ã¹ã¿ã³ã¹åããã¦ãã¦ãã¾ã æ°¸ç¶åããã¦ã"
-"ãªããã ã¯ãã¼ãºããã <literal>Session</literal> ã§ã¤ã³ã¹ã¿ã³ã¹åããããã®"
+"ç¾æç¹ã§ã¯ <literal>Session</literal> ã¨é¢é£ãã¦ããªããæ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿"
+"ã³ã¹ããã§ã«ã¢ããªã±ã¼ã·ã§ã³å´ã§ã¤ã³ã¹ã¿ã³ã¹åããã¦ãã¦ãã¾ã æ°¸ç¶åããã¦ã"
+"ãªãããã¯ãã¼ãºããã <literal>Session</literal> ã§ã¤ã³ã¹ã¿ã³ã¹åããããã®"
"ã©ã¡ããã§ãã"
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
@@ -191,16 +176,15 @@
"transaction demarcation, either using the underlying API or "
"<literal>Transaction</literal>, is never optional."
msgstr ""
-"(ãªãã·ã§ã³)ååæ§ãæã¤ä½æ¥åä½(Unit of Work)ãæå®ããããã«ãã¢ããªã±ã¼"
-"ã·ã§ã³ã使ç¨ããã ã·ã³ã°ã«ã¹ã¬ããã§çå½ãªãªãã¸ã§ã¯ãã ä¸ã«ä½ç½®ããJDBCã"
-"JTAãCORBAãã©ã³ã¶ã¯ã·ã§ã³ããã¢ããªã±ã¼ã·ã§ã³ãæ½è±¡åãã¾ãã "
-"<literal>Session</literal> ã¯ãæã«ã¯ ããã¤ãã® <literal>Transaction</"
-"literal> ãã¾ãããããããã¾ããã ããããä¸ã®å±¤ã®APIã使ãã«ããã "
-"<literal>Transaction</literal> ã使ãã«ããã ãã©ã³ã¶ã¯ã·ã§ã³å¢çãè¨å®ãã"
-"ãã¨ã¯ã決ãã¦ãªãã·ã§ã³ã§ã¯ããã¾ããï¼ã"
+"(ãªãã·ã§ã³) ååæ§ãæã¤ä½æ¥åä½ (Unit of Work) ãæå®ããããã«ãã¢ããªã±ã¼"
+"ã·ã§ã³ã使ç¨ãããã·ã³ã°ã«ã¹ã¬ããã§çå½ãªãªãã¸ã§ã¯ããä¸ã«ä½ç½®ãã JDBC ã "
+"JTA ã CORBA ãã©ã³ã¶ã¯ã·ã§ã³ããã¢ããªã±ã¼ã·ã§ã³ãæ½è±¡åãã¾ãã "
+"<literal>Session</literal> ã¯ãæã«ã¯ããã¤ãã® <literal>Transaction</"
+"literal> ãã¾ãããããããã¾ãããããããä¸ã®å±¤ã® API ã使ãã«ããã "
+"<literal>Transaction</literal> ã使ãã«ããããã©ã³ã¶ã¯ã·ã§ã³å¢çãè¨å®ããã"
+"ã¨ã¯ã決ãã¦ãªãã·ã§ã³ã§ã¯ããã¾ããã"
#. Tag: term
-#: architecture.xml:153
#, no-c-format
msgid ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
@@ -210,21 +194,19 @@
"literal>)"
#. Tag: para
-#: architecture.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
"application from underlying <literal>Datasource</literal> or "
"<literal>DriverManager</literal>. It is not exposed to application, but it "
"can be extended and/or implemented by the developer."
msgstr ""
-"(ãªãã·ã§ã³)JDBCã³ãã¯ã·ã§ã³ï¼ã¨ãã®ãã¼ã«ï¼ã®ãã¡ã¯ããªã ä¸ã®å±¤ã«ä½ç½®ãã "
+"(ãªãã·ã§ã³) JDBC ã³ãã¯ã·ã§ã³ï¼ã¨ãã®ãã¼ã«ï¼ã®ãã¡ã¯ããªãä¸ã®å±¤ã«ä½ç½®ãã "
"<literal>Datasource</literal> ã <literal>DriverManager</literal> ããã¢ããª"
-"ã±ã¼ã·ã§ã³ãæ½è±¡åãã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã«ã¯å
¬éããã¾ããããéçºè
ãç¶æ¿"
+"ã±ã¼ã·ã§ã³ãæ½è±¡åãã¾ããã¢ããªã±ã¼ã·ã§ã³ã«ã¯å
¬éããã¾ããããéçºè
ãç¶æ¿"
"ã¾ãã¯å®è£
ãããã¨ã¯å¯è½ã§ãã"
#. Tag: term
-#: architecture.xml:163
#, no-c-format
msgid ""
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
@@ -232,90 +214,80 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
"exposed to the application, but it can be extended and/or implemented by the "
"developer."
msgstr ""
-"(ãªãã·ã§ã³) <literal>Transaction</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ãã¡ã¯ããªã ã¢ããª"
+"(ãªãã·ã§ã³) <literal>Transaction</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ãã¡ã¯ããªãã¢ããª"
"ã±ã¼ã·ã§ã³ã«ã¯å
¬éããã¾ããããéçºè
ãç¶æ¿ã¾ãã¯å®è£
ãããã¨ã¯å¯è½ã§ãã"
-#. Tag: emphasis
-#: architecture.xml:172
-#, no-c-format
-msgid "Extension Interfaces"
-msgstr "Extension Interfaces"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
+msgstr "<emphasis>Extension Interfaces</emphasis>"
#. Tag: para
-#: architecture.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
"documentation for details."
msgstr ""
-"Hibernateã¯ãæ°¸ç¶å±¤ã®æ¯ãèããã«ã¹ã¿ãã¤ãºããããã«ã å¤ãã®ãªãã·ã§ã³æ¡å¼µ"
-"ã¤ã³ã¿ãã§ã¼ã¹ãç¨æãã¦ãã¾ãã 詳細ã¯APIããã¥ã¡ã³ããåç
§ãã¦ãã ããã"
+"Hibernate ã¯ãæ°¸ç¶å±¤ã®æ¯ãèããã«ã¹ã¿ãã¤ãºããããã«ãå¤ãã®ãªãã·ã§ã³æ¡å¼µ"
+"ã¤ã³ã¿ãã§ã¼ã¹ãç¨æãã¦ãã¾ãã詳細㯠API ããã¥ã¡ã³ããåç
§ãã¦ãã ããã"
#. Tag: para
-#: architecture.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Given a \"minimal\" architecture, the application bypasses the "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
"directly."
msgstr ""
-"ã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯ç´æ¥JTAãJDBCã¨å¯¾è©±ãããã"
+"ã軽ããã¢ã¼ããã¯ãã£ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯ç´æ¥ JTA ã JDBC ã¨å¯¾è©±ãããã"
"ã«ã <literal>Transaction</literal> ã <literal>TransactionFactory</literal> "
-"ã <literal>ConnectionProvider</literal> ããã¤ãã¹ãã¾ãã"
+"ã <literal>ConnectionProvider</literal> ã® API ããã¤ãã¹ãã¾ãã"
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr "ã¤ã³ã¹ã¿ã³ã¹ã®ç¶æ
"
#. Tag: para
-#: architecture.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of a persistent class can be in one of three different states. "
"These states are defined in relation to a <emphasis>persistence context</"
"emphasis>. The Hibernate <literal>Session</literal> object is the "
"persistence context. The three different states are as follows:"
msgstr ""
-"æ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã次ã®ï¼ã¤ã®ç°ãªãç¶æ
ã®ã©ããã«ãªãã¾ãã ãã"
-"ã¯ã <emphasis>æ°¸ç¶ã³ã³ããã¹ã</emphasis> ã«ãã£ã¦æ±ºã¾ãã¾ãã Hibernateã® "
-"<literal>Session</literal> ãªãã¸ã§ã¯ãããæ°¸ç¶ã³ã³ããã¹ãã«ãªãã¾ãã"
+"æ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã次ã®ï¼ã¤ã®ç°ãªãç¶æ
ã®ã©ããã«ãªãã¾ããããã¯ã "
+"<emphasis>æ°¸ç¶ã³ã³ããã¹ã</emphasis> ã«ãã£ã¦æ±ºã¾ãã¾ãã Hibernate ã® "
+"<literal>Session</literal> ãªãã¸ã§ã¯ãããæ°¸ç¶ã³ã³ããã¹ãã«ãªãã¾ã:"
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
msgstr "transient"
#. Tag: para
-#: architecture.xml:202
#, fuzzy, no-c-format
msgid ""
"The instance is not associated with any persistence context. It has no "
"persistent identity or primary key value."
msgstr ""
-"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãç¾å¨ãããã¦éå»ã«ããã¦ãã æ°¸ç¶ã³ã³ããã¹ãã«é¢é£"
-"ã¥ãã¦ãã¾ãããã¾ããæ°¸ç¶IDï¼ä¸»ãã¼ã®å¤ï¼ã æã£ã¦ãã¾ããã"
+"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãç¾å¨ãããã¦éå»ã«ããã¦ããæ°¸ç¶ã³ã³ããã¹ãã«é¢é£"
+"ã¥ãã¦ãã¾ãããã¾ããæ°¸ç¶ ID ï¼ä¸»ãã¼ã®å¤ï¼ã æã£ã¦ãã¾ããã"
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
msgstr "persistent"
#. Tag: para
-#: architecture.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is currently associated with a persistence context. It has a "
"persistent identity (primary key value) and can have a corresponding row in "
@@ -323,21 +295,19 @@
"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
"Java identity in relation to the in-memory location of the object."
msgstr ""
-"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã®æç¹ã§æ°¸ç¶ã³ã³ããã¹ãã«é¢é£ã¥ãã¦ãã¾ãã ã¾"
-"ããæ°¸ç¶IDï¼ä¸»ãã¼ã®å¤ï¼ãæã¡ã ããã¦ãã¯ãã¼ã¿ãã¼ã¹ã«å¯¾å¿ããè¡ãæã£ã¦ã"
-"ãã§ãããã åã
ã®æ°¸ç¶ã³ã³ããã¹ãã®ãªãã§ã¯ãæ°¸ç¶IDã Javaã®IDï¼ãªãã¸ã§ã¯"
-"ãã®ã¡ã¢ãªä¸ã®ä½ç½®ï¼ã¨åãã§ãããã¨ã Hibernateã <emphasis>ä¿è¨¼</emphasis> "
-"ãã¾ãã"
+"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã®æç¹ã§æ°¸ç¶ã³ã³ããã¹ãã«é¢é£ã¥ãã¦ãã¾ããã¾"
+"ããæ°¸ç¶ ID ï¼ä¸»ãã¼ã®å¤ï¼ãæã¡ãããã¦ãã¯ãã¼ã¿ãã¼ã¹ã«å¯¾å¿ããè¡ãæã£ã¦"
+"ããã§ããããç¹å®ã®æ°¸ç¶ã³ã³ããã¹ãã®ãªãã§ã¯ãæ°¸ç¶ ID ã Java ã® ID ï¼ãªã"
+"ã¸ã§ã¯ãã®ã¡ã¢ãªä¸ã®ä½ç½®ï¼ã¨åãã§ãããã¨ã Hibernate ã <emphasis>ä¿è¨¼</"
+"emphasis> ãã¾ãã"
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
msgstr "detached"
#. Tag: para
-#: architecture.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance was once associated with a persistence context, but that "
"context was closed, or the instance was serialized to another process. It "
@@ -345,46 +315,43 @@
"For detached instances, Hibernate does not guarantee the relationship "
"between persistent identity and Java identity."
msgstr ""
-"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã¤ã¦æ°¸ç¶ã³ã³ããã¹ãã«é¢é£ã¥ãããããã ãã®ã³ã³"
-"ããã¹ããã¯ãã¼ãºããããããããã¯ã ä»ã®ããã»ã¹ã«ãã®ã¤ã³ã¹ã¿ã³ã¹ãã·ãªã¢"
-"ã©ã¤ãºããããã§ãã ãã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãæ°¸ç¶IDãæã¡ãããã¦ãã¯ãã¼ã¿ãã¼ã¹"
-"㫠対å¿ããè¡ãæã£ã¦ããã§ããããåé¢ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦ã¯ã æ°¸ç¶IDã¨Java"
-"ã®IDã¨ã®é¢é£ã¯ãHibernateãä¿è¨¼ãã¾ããã"
+"ãã®ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã¤ã¦æ°¸ç¶ã³ã³ããã¹ãã«é¢é£ã¥ãããããããã®ã³ã³"
+"ããã¹ããã¯ãã¼ãºããããããããã¯ãä»ã®ããã»ã¹ã«ãã®ã¤ã³ã¹ã¿ã³ã¹ãã·ãªã¢"
+"ã©ã¤ãºããããã§ãããã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãæ°¸ç¶ ID ãæã¡ãããã¦ãã¯ãã¼ã¿ãã¼"
+"ã¹ã«å¯¾å¿ããè¡ãæã£ã¦ããã§ããããåé¢ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦ã¯ãæ°¸ç¶ ID 㨠"
+"Java ã® ID ã¨ã®é¢é£ã¯ã Hibernate ãä¿è¨¼ãã¾ããã"
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
-msgstr "JMXã¨ã®çµ±å"
+msgstr "JMX ã¨ã®çµ±å"
#. Tag: para
-#: architecture.xml:243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
"provided in the distribution: <literal>org.hibernate.jmx.HibernateService</"
"literal>."
msgstr ""
-"JMXã¯Javaã³ã³ãã¼ãã³ã管çã®J2EEæ¨æºã§ãã JMXæ¨æºãµã¼ãã¹ãéãã¦ã"
-"Hibernateã¯ç®¡çããã¾ãã ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ä¸ã« <literal>org."
-"hibernate.jmx.HibernateService</literal> ã¨ãã MBeanå®è£
ãç¨æãã¦ãã¾ãã"
+"JMX 㯠Java ã³ã³ãã¼ãã³ã管çã® J2EE æ¨æºã§ãã JMX æ¨æºãµã¼ãã¹ãéãã¦ã "
+"Hibernate ã¯ç®¡çããã¾ãããã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ä¸ã« <literal>org."
+"hibernate.jmx.HibernateService</literal> ã¨ãã MBean å®è£
ãç¨æãã¦ãã¾ãã"
#. Tag: para
-#: architecture.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For an example of how to deploy Hibernate as a JMX service on the JBoss "
"Application Server, please see the JBoss User Guide. JBoss AS also provides "
"these benefits if you deploy using JMX:"
msgstr ""
-"JBoss ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ä¸ã«HibernateãJMXãµã¼ãã¹ã¨ãã¦ãããã¤ããæ¹"
-"æ³ã®ä¾ã¨ãã¦ã¯ã JBoss ã¦ã¼ã¶ã¬ã¤ããåç
§ãã¦ãã ããã JBoss ã¢ããªã±ã¼ã·ã§"
-"ã³ãµã¼ãã¼ã«ããã¦ã JMXã使ã£ã¦ãããã¤ããã¨ã次ã®ã¡ãªãããå¾ããã¾ãã"
+"JBoss ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ä¸ã« Hibernate ã JMX ãµã¼ãã¹ã¨ãã¦ãããã¤ã"
+"ãæ¹æ³ã®ä¾ã¨ãã¦ã¯ã JBoss ã¦ã¼ã¶ã¼ã¬ã¤ããåç
§ãã¦ãã ããã JBoss ã¢ããª"
+"ã±ã¼ã·ã§ã³ãµã¼ãã¼ã«ããã¦ã JMX ã使ã£ã¦ãããã¤ããã¨ã次ã®ã¡ãªãããå¾ãã"
+"ã¾ã:"
#. Tag: para
-#: architecture.xml:257
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
"literal>'s life cycle can be automatically bound to the scope of a JTA "
@@ -396,19 +363,18 @@
"the <literal>HibernateContext</literal> to access a <literal>Session</"
"literal>."
msgstr ""
-"<emphasis>ã»ãã·ã§ã³ç®¡ç:</emphasis> Hibernateã® <literal>Session</literal> "
-"ã®ã©ã¤ããµã¤ã¯ã«ã¯ã èªåçã«JTAãã©ã³ã¶ã¯ã·ã§ã³ã®ã¹ã³ã¼ãã«çµã³ã¤ãããã¾"
+"<emphasis>ã»ãã·ã§ã³ç®¡ç:</emphasis> Hibernate ã® <literal>Session</literal> "
+"ã®ã©ã¤ããµã¤ã¯ã«ã¯ãèªåçã« JTA ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¹ã³ã¼ãã«çµã³ã¤ãããã¾"
"ããããã¯ããã¯ãæåã§ <literal>Session</literal> ããªã¼ãã³ããããã¯ãã¼"
-"ãºãããããå¿
è¦ããªããã¨ãæå³ãã¾ãã ããã¯ãJBoss EJB ã¤ã³ã¿ã¼ã»ãã¿ã®ä»"
-"äºã«ãªãã¾ãã ã¾ããã³ã¼ãã®ã©ãã§ãã©ã³ã¶ã¯ã·ã§ã³å¢çãè¨å®ãããã«ã¤ã"
-"ã¦ã ãã¯ãæ©ãå¿
è¦ãããã¾ããï¼ãã¡ããç§»æ¤å¯è½ãªæ°¸ç¶å±¤ãæ¸ãããªãã¦ããã®"
-"ãªãã°ã ãªãã·ã§ã³ã®Hibernateã® <literal>Transaction</literal> ã使ç¨ãã¦ã"
-"ã ãããï¼ <literal>Session</literal> ã«ã¢ã¯ã»ã¹ããããã«ã¯ã "
-"<literal>HibernateContext</literal> ã ã³ã¼ã«ãã¦ãã ããã"
+"ãºãããããå¿
è¦ããªããã¨ãæå³ãã¾ããããã¯ã JBoss EJB ã¤ã³ã¿ã¼ã»ãã¿ã®ä»"
+"äºã«ãªãã¾ããã¾ããã³ã¼ãã®ã©ãã§ãã©ã³ã¶ã¯ã·ã§ã³å¢çãè¨å®ãããã«ã¤ãã¦ã"
+"ãã¯ãæ©ãå¿
è¦ãããã¾ããï¼ãã¡ããç§»æ¤å¯è½ãªæ°¸ç¶å±¤ãæ¸ãããªãã¦ããã®ãªã"
+"ã°ããªãã·ã§ã³ã® Hibernate ã® <literal>Transaction</literal> ã使ç¨ãã¦ãã ã"
+"ããï¼ <literal>Session</literal> ã«ã¢ã¯ã»ã¹ããããã«ã¯ã "
+"<literal>HibernateContext</literal> ãã³ã¼ã«ãã¦ãã ããã"
#. Tag: para
-#: architecture.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
@@ -418,61 +384,55 @@
"deployment, JBoss will automatically detect all mapping files in your HAR "
"file."
msgstr ""
-"<emphasis>HAR ãããã¤:</emphasis> é常ã(EAR ã¾ã㯠SAR ãã¡ã¤ã«ã«ããï¼"
-"JBoss ãµã¼ãã¹ ãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã使ã£ã¦ãHibernate JMX ãµã¼ãã¹ã"
-"ãããã¤ãã¾ãã ããã¯ãHibernateã® <literal>SessionFactory</literal> ã®å
¨ã¦"
-"ã®ä¸è¬çãªè¨å®ãªãã·ã§ã³ã ãµãã¼ããã¾ãããããä¾ç¶ã¨ãã¦ãããã¤ã¡ã³ããã£"
-"ã¹ã¯ãªãã¿ã®ãªãã«ãã¹ã¦ã®ãããã³ã°ãã¡ã¤ã«ã® ååãæããå¿
è¦ãããã¾ãã "
-"ããããªãã·ã§ã³ã®HARãããã¤ã¡ã³ãã使ããã¨ã決ãããªãã JBossã¯èªåçã«"
-"HARãã¡ã¤ã«ã®ãªãã®å
¨ã¦ã®ãããã³ã°ãã¡ã¤ã«ãæ¤åºãã¾ãã"
+"<emphasis>HAR ãããã¤:</emphasis> é常ã( EAR ã¾ã㯠SAR ãã¡ã¤ã«ã«ããï¼ "
+"JBoss ãµã¼ãã¹ãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã使ã£ã¦ã Hibernate JMX ãµã¼ãã¹ã"
+"ãããã¤ãã¾ããããã¯ã Hibernate ã® <literal>SessionFactory</literal> ã®å
¨"
+"ã¦ã®ä¸è¬çãªè¨å®ãªãã·ã§ã³ããµãã¼ããã¾ãããããä¾ç¶ã¨ãã¦ãããã¤ã¡ã³ã"
+"ãã£ã¹ã¯ãªãã¿ã®ãªãã«ãã¹ã¦ã®ãããã³ã°ãã¡ã¤ã«ã®ååãæããå¿
è¦ãããã¾"
+"ããããããªãã·ã§ã³ã® HAR ãããã¤ã¡ã³ãã使ããã¨ã決ãããªãã JBoss ã¯èª"
+"åçã« HAR ãã¡ã¤ã«ã®ãªãã®å
¨ã¦ã®ãããã³ã°ãã¡ã¤ã«ãæ¤åºãã¾ãã"
#. Tag: para
-#: architecture.xml:280
#, no-c-format
msgid ""
"Consult the JBoss AS user guide for more information about these options."
msgstr ""
-"ãããã®ãªãã·ã§ã³ã«ã¤ãã¦ã®è©³ç´°ãªæ
å ±ã¯ãJBossã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¦ã¼ã¶ã¬"
-"ã¤ãã åèã«ãã¦ãã ããã"
+"ãããã®ãªãã·ã§ã³ã«ã¤ãã¦ã®è©³ç´°ãªæ
å ±ã¯ã JBoss ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã¦ã¼"
+"ã¶ã¼ã¬ã¤ããåèã«ãã¦ãã ããã"
#. Tag: para
-#: architecture.xml:284
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/> for more "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
"information."
msgstr ""
-"JMXãµã¼ãã¹ã¨ãã¦å©ç¨å¯è½ãªä»ã®æ©è½ã«ãHibernateå®è¡æçµ±è¨æ
å ±ãããã¾ãã "
+"JMX ãµã¼ãã¹ã¨ãã¦å©ç¨å¯è½ãªä»ã®æ©è½ã«ã Hibernate å®è¡æçµ±è¨æ
å ±ãããã¾ãã"
"<xref linkend=\"configuration-optional-statistics\"/> ãè¦ã¦ãã ããã"
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
msgstr "JCA ãµãã¼ã"
#. Tag: para
-#: architecture.xml:292
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also be configured as a JCA connector. Please see the website "
"for more information. Please note, however, that at this stage Hibernate JCA "
"support is under development."
msgstr ""
-"Hibernate 㯠JCA ã³ãã¯ã¿ã¨ãã¦ãè¨å®ã§ãã¾ãã詳細ã«ã¤ãã¦ã¯ãWebãµã¤ããè¦"
-"ã¦ãã ããã Hibernate JCA ãµãã¼ãã¯ãä»ã®ã¨ããå®é¨æ®µéã¨ãã¦èãããã¦ãã"
-"ãã¨ã«æ³¨æãã¦ãã ããã"
+"Hibernate 㯠JCA ã³ãã¯ã¿ã¨ãã¦ãè¨å®ã§ãã¾ãã詳細ã«ã¤ãã¦ã¯ã Web ãµã¤ãã"
+"è¦ã¦ãã ããã Hibernate JCA ãµãã¼ãã¯ãä»ã®ã¨ããå®é¨æ®µéã¨ãã¦èãããã¦ã"
+"ããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: title
-#: architecture.xml:299
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Contextual sessions"
msgstr "ã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³"
#. Tag: para
-#: architecture.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
"where a given session is in effect throughout the scope of a given context. "
@@ -484,19 +444,18 @@
"utilized third-party frameworks, such as Spring or Pico, which provided "
"proxy/interception-based contextual sessions."
msgstr ""
-"Hibernate ã使ã£ãã¢ããªã±ã¼ã·ã§ã³ã¯ãã»ã¨ãã©ããªãããã®å½¢ã§\"ã³ã³ããã¹ã"
-"ä¸ã®\"ã»ãã·ã§ã³ãå¿
è¦ã«ãªãã¾ãã ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã¯ãç¹å®ã®ã³"
-"ã³ããã¹ãã®ã¹ã³ã¼ãã®ãªãã§æå¹ãªã»ãã·ã§ã³ã®ãã¨ã§ãã ããããé常ã¢ããª"
-"ã±ã¼ã·ã§ã³ãã¨ã«ã³ã³ããã¹ããæ§æãããã®ã®å®ç¾©ã¯ç°ãªãã¾ãã ããããç°ãªã"
-"è¤æ°ã®ã³ã³ããã¹ãã¯ãç¾æç¹ã«å¯¾ãã¦ç°ãªãã¹ã³ã¼ããå®ç¾©ãã¾ãã ãã¼ã¸ã§ã³"
-"3.0ããåã® Hibernate ã§ã¯ãèªä½ã® <literal>ThreadLocal</literal> ãã¼ã¹ã®"
-"ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã å©ç¨ãããã <literal>HibernateUtil</"
-"literal> ã®ãããªãã«ãã¼ã¯ã©ã¹ãå©ç¨ãããã proxy/interception ãã¼ã¹ã®ãã³"
-"ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ããæä¾ãã ï¼Spring ã Pico ã®ãããªï¼ãµã¼ããã¼"
-"ãã£ã®ãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ãããã®ããããã§ããã"
+"Hibernate ã使ã£ãã¢ããªã±ã¼ã·ã§ã³ã¯ãã»ã¨ãã©ããªãããã®å½¢ã§ãã³ã³ããã¹ã"
+"ä¸ã®ãã»ãã·ã§ã³ãå¿
è¦ã«ãªãã¾ãããã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã¯ãç¹å®ã®ã³"
+"ã³ããã¹ãã®ã¹ã³ã¼ãã®ãªãã§æå¹ãªã»ãã·ã§ã³ã®ãã¨ã§ããããããé常ã¢ããª"
+"ã±ã¼ã·ã§ã³ãã¨ã«ã³ã³ããã¹ããæ§æãããã®ã®å®ç¾©ã¯ç°ãªãã¾ããããããç°ãªã"
+"è¤æ°ã®ã³ã³ããã¹ãã¯ãç¾æç¹ã«å¯¾ãã¦ç°ãªãã¹ã³ã¼ããå®ç¾©ãã¾ãããã¼ã¸ã§ã³3.0"
+"ããåã® Hibernate ã§ã¯ãèªä½ã® <literal>ThreadLocal</literal> ãã¼ã¹ã®ãã³ã³"
+"ããã¹ãä¸ã®ã»ãã·ã§ã³ããå©ç¨ãããã <literal>HibernateUtil</literal> ã®ã"
+"ããªãã«ãã¼ã¯ã©ã¹ãå©ç¨ãããã proxy/interception ãã¼ã¹ã®ãã³ã³ããã¹ãä¸"
+"ã®ã»ãã·ã§ã³ããæä¾ãã ï¼Spring ã Pico ã®ãããªï¼ãµã¼ããã¼ãã£ã®ãã¬ã¼ã "
+"ã¯ã¼ã¯ãå©ç¨ãããã®ããããã§ããã"
#. Tag: para
-#: architecture.xml:309
#, fuzzy, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
@@ -509,20 +468,19 @@
"deployed into a <literal>J2EE</literal> container. Based on that, the "
"<literal>JTA</literal>-based contextual sessions are all you need to use."
msgstr ""
-"ãã¼ã¸ã§ã³ 3.0.1 ãããHibernate ã«ã¯ <literal>SessionFactory."
-"getCurrentSession()</literal> ã å ããã¾ããã ããã¯ã <literal>JTA</"
+"ãã¼ã¸ã§ã³ 3.0.1 ããã Hibernate ã«ã¯ <literal>SessionFactory."
+"getCurrentSession()</literal> ã¡ã½ãããå ããã¾ãããããã¯ã <literal>JTA</"
"literal> ãã©ã³ã¶ã¯ã·ã§ã³ã®ä½¿ç¨ãåæã«ãã¦ãã¾ãã <literal>JTA</literal> ã"
"ã©ã³ã¶ã¯ã·ã§ã³ã¯ãç¾å¨ã®ã»ãã·ã§ã³ã®ã¹ã³ã¼ãã¨ã³ã³ããã¹ãã®ä¸¡æ¹ãå®ç¾©ãã¾"
-"ãã Hibernate ãã¼ã ã¯ã次ã®ãã¨ã主張ãã¾ãã 巨大ãªã¹ã¿ã³ãã¢ãã³ã® "
+"ãã Hibernate ãã¼ã ã¯ã次ã®ãã¨ã主張ãã¾ãã巨大ãªã¹ã¿ã³ãã¢ãã³ã® "
"<literal>JTA TransactionManager</literal> å®è£
ãæçãããã <literal>J2EE</"
-"literal> ã³ã³ããä¸ã«ãããã¤ããããã©ããã«ãããããã ã»ã¨ãã©ã®ï¼ãã¹ã¦"
-"ã¨ã¯è¨ããªããï¼ã¢ããªã±ã¼ã·ã§ã³ãã <literal>JTA</literal> ãã©ã³ã¶ã¯ã·ã§ã³"
-"管çã使ç¨ãã¹ãã§ããã¨ã ãã®èãã«åºã¥ãã¨ã <literal>JTA</literal> ãã¼ã¹"
-"ã®ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã 使ããããªãã§ãããã"
+"literal> ã³ã³ããä¸ã«ãããã¤ããããã©ããã«ããããããã»ã¨ãã©ã®ï¼ãã¹ã¦ã¨"
+"ã¯è¨ããªããï¼ã¢ããªã±ã¼ã·ã§ã³ãã <literal>JTA</literal> ãã©ã³ã¶ã¯ã·ã§ã³ç®¡"
+"çã使ç¨ãã¹ãã§ããã¨ããã®èãã«åºã¥ãã¨ã <literal>JTA</literal> ãã¼ã¹ã®"
+"ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã使ããããªãã§ãããã"
#. Tag: para
-#: architecture.xml:319
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
@@ -532,14 +490,13 @@
"pluggability of the scope and context of defining current sessions."
msgstr ""
"ãããããã¼ã¸ã§ã³ 3.1 ããã¯ã <literal>SessionFactory.getCurrentSession()</"
-"literal> ã®å¾ã®å¦çãã ãã©ã¬ãã«ã«ãªãã¾ããã ãããåãã¦ãç¾å¨ã®ã»ãã·ã§"
-"ã³ãå®ç¾©ããã¹ã³ã¼ãã¨ã³ã³ããã¹ãã®ãã©ã¬ããªãã£ãå¯è½ã«ããããã«ã æ°ãã"
-"æ¡å¼µã¤ã³ã¿ãã§ã¼ã¹ ( <literal>org.hibernate.context.CurrentSessionContext</"
-"literal> ) 㨠æ°ããæ§æãã©ã¡ã¼ã¿ ( <literal>hibernate."
+"literal> ã®å¾ã®å¦çãããã©ã¬ãã«ã«ãªãã¾ããããããåãã¦ãç¾å¨ã®ã»ãã·ã§ã³"
+"ãå®ç¾©ããã¹ã³ã¼ãã¨ã³ã³ããã¹ãã®ãã©ã¬ããªãã£ãå¯è½ã«ããããã«ãæ°ããæ¡"
+"å¼µã¤ã³ã¿ãã§ã¼ã¹ ( <literal>org.hibernate.context.CurrentSessionContext</"
+"literal> ) ã¨æ°ããæ§æãã©ã¡ã¼ã¿ ( <literal>hibernate."
"current_session_context_class</literal> ) ã追å ããã¾ããã"
#. Tag: para
-#: architecture.xml:326
#, fuzzy, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
@@ -550,15 +507,14 @@
"implementations of this interface:"
msgstr ""
"<literal>org.hibernate.context.CurrentSessionContext</literal> ã¤ã³ã¿ãã§ã¼ã¹"
-"ã®è¦ç´ã«ã¤ãã¦ã® 詳細ãªå
容㯠Javadoc ãåç
§ãã¦ãã ããã ããã«ã¯ã "
-"<literal>currentSession()</literal> ã¨ãã1ã¤ã®ã¡ã½ãããå®ç¾©ããã¦ããã ã"
-"ã®å®è£
ã¯ãç¾å¨ã®ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã追跡ãããã¨ã«è²¬ä»»ãæã¡ã¾"
-"ãã ãã®ã¾ã¾ä½¿ããããã«ãHibernateã¯ãã®ã¤ã³ã¿ãã§ã¼ã¹ã®å®è£
ã2ã¤æä¾ãã¦ã"
-"ã¾ãã"
+"ã®è¦ç´ã«ã¤ãã¦ã®è©³ç´°ãªå
容㯠Javadoc ãåç
§ãã¦ãã ãããããã«ã¯ã "
+"<literal>currentSession()</literal> ã¨ãã1ã¤ã®ã¡ã½ãããå®ç¾©ããã¦ããããã®"
+"å®è£
ã¯ãç¾å¨ã®ãã³ã³ããã¹ãä¸ã®ã»ãã·ã§ã³ãã追跡ãããã¨ã«è²¬ä»»ãæã¡ã¾ãã"
+"ãã®ã¾ã¾ä½¿ããããã«ã Hibernate ã¯ãã®ã¤ã³ã¿ãã§ã¼ã¹ã®å®è£
ã2ã¤æä¾ãã¦ãã¾"
+"ãã"
#. Tag: para
-#: architecture.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
"are tracked and scoped by a <literal>JTA</literal> transaction. The "
@@ -566,24 +522,22 @@
"the Javadocs for details."
msgstr ""
"<literal>org.hibernate.context.JTASessionContext</literal> - <literal>JTA</"
-"literal> ãã©ã³ã¶ã¯ã·ã§ã³ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ããã ã¹ã³ã¼ããæ±º"
-"ãããã¾ãããã®å¦çã¯ãå¤ãJTAã ãã®ã¢ããã¼ãã¨ã¾ã£ããåãã§ãã 詳細ã¯"
-"Javadocãåç
§ãã¦ãã ããã"
+"literal> ãã©ã³ã¶ã¯ã·ã§ã³ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ãããã¹ã³ã¼ããæ±ºã"
+"ããã¾ãããã®å¦çã¯ãå¤ã JTA ã ãã®ã¢ããã¼ãã¨ã¾ã£ããåãã§ãã詳細㯠"
+"Javadoc ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: architecture.xml:344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - ã¹ã¬ãã"
-"ã®å®è¡ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ããã¾ãã 詳細ã¯Javadocãåç
§ãã¦ãã "
+"ã®å®è¡ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ããã¾ãã詳細㯠Javadoc ãåç
§ãã¦ãã "
"ããã"
#. Tag: para
-#: architecture.xml:350
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
"sessions are tracked by thread of execution. However, you are responsible to "
@@ -591,13 +545,12 @@
"this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
"<literal>org.hibernate.context.ManagedSessionContext</literal> - ã¹ã¬ããã®å®"
-"è¡ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ããã¾ãã ãããããã®ã¯ã©ã¹ã®staticã¡ã½ã"
-"ãã§ <literal>Session</literal> ã¤ã³ã¹ã¿ã³ã¹ã ãã¤ã³ã/ã¢ã³ãã¤ã³ããã責任"
-"ã¯ããªãã«ããã¾ãã ããã¯æ±ºã㦠<literal>Session</literal> ããªã¼ãã³ãã"
+"è¡ã«ãã£ã¦ãç¾å¨ã®ã»ãã·ã§ã³ã追跡ããã¾ãããããããã®ã¯ã©ã¹ã® static ã¡"
+"ã½ããã§ <literal>Session</literal> ã¤ã³ã¹ã¿ã³ã¹ããã¤ã³ã/ã¢ã³ãã¤ã³ããã責"
+"ä»»ã¯ããªãã«ããã¾ããããã¯æ±ºã㦠<literal>Session</literal> ããªã¼ãã³ãã"
"ã©ãã·ã¥ãã¯ãã¼ãºãã¾ããã"
#. Tag: para
-#: architecture.xml:359
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -610,25 +563,24 @@
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not need any transaction or session demarcation "
-"operations in your code. Refer to <xref linkend=\"transactions\"/> for more "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
"information and code examples."
msgstr ""
-"å§ãã®2ã¤ã®å®è£
ã¯ã\"1ã»ãã·ã§ã³ - 1ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³\" ããã°ã©ã"
-"ã³ã°ã¢ãã«ãæä¾ãã¾ãã ãã㯠<emphasis>ãªã¯ã¨ã¹ããã¨ã®ã»ãã·ã§ã³"
+"ã¯ããã®2ã¤ã®å®è£
ã¯ãã1ã»ãã·ã§ã³ - 1ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãããã°ã©"
+"ãã³ã°ã¢ãã«ãæä¾ãã¾ãããã㯠<emphasis>ãªã¯ã¨ã¹ããã¨ã®ã»ãã·ã§ã³"
"ï¼session-per-requestï¼</emphasis> ã¨ãã¦ãç¥ããã¦ããã使ããã¦ãã¾ãã "
"Hibernate ã»ãã·ã§ã³ã®éå§ã¨çµäºã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®æéã§æ±ºã¾"
-"ãã¾ãã JTAã使ããªãæ®éã®JSEã§ãããã°ã©ã ä¸ã®ãã©ã³ã¶ã¯ã·ã§ã³å¢çè¨å®ãè¡"
-"ããªãã ã³ã¼ãããåºç¤ã®ãã©ã³ã¶ã¯ã·ã§ã³ã·ã¹ãã ãé è½ããããã«ã "
-"Hibernate <literal>Transaction</literal> APIã使ãã¨ããã§ãããã JTAã使ã"
-"ãªãããã©ã³ã¶ã¯ã·ã§ã³ã®å¢çè¨å®ã«ã¯ãJTAã¤ã³ã¿ã¼ãã§ã¤ã¹ã使ã£ã¦ãã ããã "
-"CMTããµãã¼ãããEJBã³ã³ããã§å®è¡ããã¤ãããªãããã©ã³ã¶ã¯ã·ã§ã³å¢çã¯å®£è¨"
-"çã«å®ç¾©ã§ããããã ã³ã¼ãä¸ã§ãã©ã³ã¶ã¯ã·ã§ã³ãã»ãã·ã§ã³ã®å¢çãè¨å®ããå¿
"
-"è¦ã¯ããã¾ããã ããã«è©³ç´°ãªæ
å ±ãã³ã¼ãã®ä¾ã¯ã <xref linkend="
+"ãã¾ãã JTA ã使ããªãæ®éã® JSE ã§ãããã°ã©ã ä¸ã®ãã©ã³ã¶ã¯ã·ã§ã³å¢çè¨å®"
+"ãè¡ããªããã³ã¼ãããåºç¤ã®ãã©ã³ã¶ã¯ã·ã§ã³ã·ã¹ãã ãé è½ããããã«ã "
+"Hibernate <literal>Transaction</literal> API ã使ãã¨ããã§ãããã JTA ã使"
+"ããªãããã©ã³ã¶ã¯ã·ã§ã³ã®å¢çè¨å®ã«ã¯ã JTA ã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ã£ã¦ãã ã"
+"ãã CMT ããµãã¼ããã EJB ã³ã³ããã§å®è¡ããã¤ãããªãããã©ã³ã¶ã¯ã·ã§ã³å¢"
+"çã¯å®£è¨çã«å®ç¾©ã§ãããããã³ã¼ãä¸ã§ãã©ã³ã¶ã¯ã·ã§ã³ãã»ãã·ã§ã³ã®å¢çãè¨"
+"å®ããå¿
è¦ã¯ããã¾ãããããã«è©³ç´°ãªæ
å ±ãã³ã¼ãã®ä¾ã¯ã <xref linkend="
"\"transactions\"/> ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: architecture.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
"parameter defines which <literal>org.hibernate.context."
@@ -643,10 +595,9 @@
msgstr ""
"<literal>hibernate.current_session_context_class</literal> è¨å®ãã©ã¡ã¼ã¿"
"ã¯ã <literal>org.hibernate.context.CurrentSessionContext</literal> ã®ã©ã®å®"
-"è£
ã使ãããæå®ãã¾ãã ä¸ä½äºææ§ã®ããããã®ãã©ã¡ã¼ã¿ãè¨å®ããã "
+"è£
ã使ãããæå®ãã¾ããä¸ä½äºææ§ã®ããããã®ãã©ã¡ã¼ã¿ãè¨å®ããã "
"<literal>org.hibernate.transaction.TransactionManagerLookup</literal> ãè¨å®"
-"ããã¦ããå ´åã Hibernate㯠<literal>org.hibernate.context."
-"JTASessionContext</literal> ã使ããã¨ã«æ³¨æãã¦ãã ããã é常ãã®ãã©ã¡ã¼ã¿"
-"ã®å¤ã«ã¯ã3ã¤ã®å®è£
ã®ä¸ãã使ç¨ããå®è£
ã¯ã©ã¹ã®ååãç´æ¥æå®ãã¾ãã ãã"
-"ãã\"jta\", \"thread\", \"managed\"ã¨ããããããã®çç¥åãç¨æããã¦ãã¾"
-"ãã"
+"ããã¦ããå ´åã Hibernate 㯠<literal>org.hibernate.context."
+"JTASessionContext</literal> ã使ããã¨ã«æ³¨æãã¦ãã ãããé常ãã®ãã©ã¡ã¼ã¿"
+"ã®å¤ã«ã¯ã3ã¤ã®å®è£
ã®ä¸ãã使ç¨ããå®è£
ã¯ã©ã¹ã®ååãç´æ¥æå®ãã¾ãããããã"
+"\"jta\"ã \"thread\"ã \"managed\"ã¨ããããããã®çç¥åãç¨æããã¦ãã¾ãã"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,30 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-06 17:26+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
msgstr "é¢é£ãããã³ã°"
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr "ã¤ã³ãããã¯ã·ã§ã³"
#. Tag: para
-#: association_mapping.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
@@ -32,47 +32,44 @@
"use <literal>Person</literal> and <literal>Address</literal> in all the "
"examples."
msgstr ""
-"é¢é£ãããã³ã°ã¯ãã°ãã°çè§£ãæãé£ãããã®ã«ãªãã¾ãã ãã®ç« ã§ã¯ãåºæ¬çãª"
-"ä¸ã¤ä¸ã¤ã®ã±ã¼ã¹ã«ã¤ãã¦è¿°ã¹ã¾ãã åæ¹åã®ãããã³ã°ããå§ããããããåæ¹å"
-"ã®ã±ã¼ã¹ã«ã¤ãã¦èãã¦ããã¾ãã ä¾ã¨ãã¦ã<literal>Person</literal> 㨠"
+"é¢é£ãããã³ã°ã¯ãã°ãã°çè§£ãæãé£ãããã®ã«ãªãã¾ãããã®ç« ã§ã¯ãåºæ¬çãª"
+"ä¸ã¤ä¸ã¤ã®ã±ã¼ã¹ã«ã¤ãã¦è¿°ã¹ã¾ããåæ¹åã®ãããã³ã°ããå§ããããããåæ¹å"
+"ã®ã±ã¼ã¹ã«ã¤ãã¦èãã¦ããã¾ããä¾ã¨ãã¦ã <literal>Person</literal> 㨠"
"<literal>Address</literal> ãç¨ãã¾ãã"
#. Tag: para
-#: association_mapping.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
msgstr ""
-"é¢é£ã¯ãçµåãã¼ãã«ãå
¥ããããã©ããã¨ã å¤é度ã«ãã£ã¦åé¡ãããã¨ã«ãã¾"
+"é¢é£ã¯ãçµåãã¼ãã«ãå
¥ããããã©ããã¨ãå¤é度ã«ãã£ã¦åé¡ãããã¨ã«ãã¾"
"ãã"
#. Tag: para
-#: association_mapping.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
"not a requirement of Hibernate, and the mappings will work if you drop the "
"nullability constraints."
msgstr ""
-"ãã¹ã¦ã®ä¾ã§not nullã®å¤é¨ãã¼ã使ç¨ãã¾ãã ããã¯Hibernateã®è¦ä»¶ã§ã¯ããã¾"
-"ããã not nullå¶ç´ãå¤ããã¨ãã¦ãããããã³ã°ã¯åé¡ãªãåä½ãã¾ãã"
+"null å¯è½ãªå¤é¨ãã¼ã¯å¾æ¥åãã¼ã¿ã¢ããªã³ã°ã®ä¸ã§ã¯è¯ãç¿æ
£ã¨è¦ãªããã¦ããªã"
+"ããããã¹ã¦ã®ä¾ã§ not null ã®å¤é¨ãã¼ã使ç¨ãã¾ãããã㯠Hibernate ã®è¦ä»¶ã§"
+"ã¯ããã¾ããã not null å¶ç´ãå¤ããã¨ãã¦ãããããã³ã°ã¯åé¡ãªãåä½ãã¾"
+"ãã"
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr "åæ¹åé¢é£"
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
#, fuzzy, no-c-format
msgid "Many-to-one"
-msgstr "å¤å¯¾ä¸"
+msgstr "many-to-one"
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
@@ -81,192 +78,57 @@
"<emphasis>åæ¹åå¤å¯¾ä¸é¢é£</emphasis> ã¯åæ¹åé¢é£ã®ä¸ã§æãä¸è¬çãªãã®ã§"
"ãã"
-#. Tag: programlisting
-#: association_mapping.xml:68
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145
-#: association_mapping.xml:210
#, fuzzy, no-c-format
msgid "One-to-one"
-msgstr "ä¸å¯¾ä¸"
+msgstr "one-to-one"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key</"
"emphasis> is almost identical. The only difference is the column unique "
"constraint."
msgstr ""
-"<emphasis>å¤é¨ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ã»ã¨ãã©åããã®ã§ãã å¯ä¸"
+"<emphasis>å¤é¨ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ã»ã¨ãã©åããã®ã§ããå¯ä¸"
"éãã®ã¯ãã«ã©ã ã®ã¦ãã¼ã¯ãªå¶ç´ã§ãã"
-#. Tag: programlisting
-#: association_mapping.xml:81
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:84
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key</"
"emphasis> usually uses a special id generator In this example, however, we "
"have reversed the direction of the association:"
msgstr ""
-"<emphasis>主ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯é常ãç¹å¥ãªIDã¸ã§ãã¬ã¼ã¿ã"
-"使ãã¾ãã ï¼ãã®ä¾ã§ã¯é¢é£ã®æ¹åãéã«ãªã£ã¦ãããã¨ã«æ³¨æãã¦ãã ããï¼"
+"<emphasis>主ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯é常ãç¹å¥ãª ID ã¸ã§ãã¬ã¼ã¿"
+"ã使ãã¾ãã ï¼ãã®ä¾ã§ã¯é¢é£ã®æ¹åãéã«ãªã£ã¦ãããã¨ã«æ³¨æãã¦ãã ããï¼"
-#. Tag: programlisting
-#: association_mapping.xml:90
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
#, fuzzy, no-c-format
msgid "One-to-many"
-msgstr "ä¸å¯¾å¤"
+msgstr "one-to-many"
#. Tag: para
-#: association_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key</"
"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"<emphasis>å¤é¨ãã¼ã®åæ¹åä¸å¯¾å¤é¢é£</emphasis> ã¯ã¨ã¦ãç¹æ®ãªã±ã¼ã¹ã§ã ãã¾"
+"<emphasis>å¤é¨ãã¼ã®åæ¹åä¸å¯¾å¤é¢é£</emphasis> ã¯ã¨ã¦ãç¹æ®ãªã±ã¼ã¹ã§ããã¾"
"ãæ¨å¥¨ããã¦ãã¾ããã"
-#. Tag: programlisting
-#: association_mapping.xml:103
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:106
-#, fuzzy, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr "ãã®ãããªé¢é£ã®ããã«çµåãã¼ãã«ã使ããã¨ããè¦ããã¾ãã"
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "çµåãã¼ãã«ã使ã£ãåæ¹åé¢é£"
#. Tag: para
-#: association_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join table</"
"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
@@ -274,200 +136,50 @@
msgstr ""
"<emphasis>çµåãã¼ãã«ã使ã£ãåæ¹åä¸å¯¾å¤é¢é£</emphasis> ã¯ãã好ã¾ããã§"
"ãã <literal>unique=\"true\"</literal> ã®æå®ã«ãããå¤é度ãå¤å¯¾å¤ããä¸å¯¾"
-"å¤ ã«å¤ãã£ããã¨ã«æ³¨æãã¦ä¸ããã"
+"å¤ã«å¤ãã£ããã¨ã«æ³¨æãã¦ä¸ããã"
-#. Tag: programlisting
-#: association_mapping.xml:126
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:134
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional many-to-one association on a join table</"
"emphasis> is common when the association is optional. For example:"
msgstr ""
-"<emphasis>çµåãã¼ãã«ã®åæ¹åå¤å¯¾ä¸é¢é£</emphasis> 㯠é¢é£ãä»»æã§ããã¨ãã«"
+"<emphasis>çµåãã¼ãã«ã®åæ¹åå¤å¯¾ä¸é¢é£</emphasis> ã¯é¢é£ãä»»æã§ããã¨ãã«"
"é常ã«ä¸è¬çãªãã®ã§ãã"
-#. Tag: programlisting
-#: association_mapping.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:147
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"<emphasis>çµåãã¼ãã«ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ãæ¬å½ã«ç¹æ®ã§ãã ä¸å¯"
+"<emphasis>çµåãã¼ãã«ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ãé常ã«ç¹æ®ã§ããä¸å¯"
"è½ã§ã¯ããã¾ããã"
-#. Tag: programlisting
-#: association_mapping.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
#, fuzzy, no-c-format
msgid "Many-to-many"
-msgstr "å¤å¯¾å¤"
+msgstr "many-to-many"
#. Tag: para
-#: association_mapping.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
-msgstr "æå¾ã«ã<emphasis>åæ¹åå¤å¯¾å¤é¢é£</emphasis> ã示ãã¾ãã"
+msgstr "æå¾ã«ã <emphasis>åæ¹åå¤å¯¾å¤é¢é£</emphasis> ã示ãã¾ãã"
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
msgstr "åæ¹åé¢é£"
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many / many-to-one"
msgstr "ä¸å¯¾å¤/å¤å¯¾ä¸"
#. Tag: para
-#: association_mapping.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
"common kind of association. The following example illustrates the standard "
@@ -476,34 +188,9 @@
"<emphasis>åæ¹åå¤å¯¾ä¸é¢é£</emphasis> ã¯æãä¸è¬çãªé¢é£ã§ãã ï¼æ¨æºçãªè¦ªå"
"é¢ä¿ã§ãï¼"
-#. Tag: programlisting
-#: association_mapping.xml:183
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:187
-#, fuzzy, no-c-format
-msgid ""
"If you use a <literal>List</literal>, or other indexed collection, set the "
"<literal>key</literal> column of the foreign key to <literal>not null</"
"literal>. Hibernate will manage the association from the collections side to "
@@ -512,39 +199,13 @@
"\"</literal>:"
msgstr ""
"<literal>List</literal> ï¼ã¾ãã¯ä»ã®ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ï¼ã使ããª"
-"ãã å¤é¨ãã¼ã® <literal>key</literal> ã«ã©ã ã <literal>not null</literal> "
-"ã«è¨å®ãã ã³ã¬ã¯ã·ã§ã³å´ãåè¦ç´ ã®ã¤ã³ããã¯ã¹ãã¡ã³ããã³ã¹ããããã«ã é¢"
-"é£ãæ±ãå¿
è¦ãããã¾ã ï¼<literal>update=\"false\"</literal> ã㤠"
-"<literal>insert=\"false\"</literal> ã¨è¨å®ãã¦ãå対å´ãä»®æ³çã«inverseã«ãã¾"
-"ãï¼ï¼"
+"ããå¤é¨ãã¼ã® <literal>key</literal> ã«ã©ã ã <literal>not null</literal> ã«"
+"è¨å®ããã³ã¬ã¯ã·ã§ã³å´ãåè¦ç´ ã®ã¤ã³ããã¯ã¹ãã¡ã³ããã³ã¹ããããã«ãé¢é£ã"
+"æ±ãå¿
è¦ãããã¾ã ï¼<literal>update=\"false\"</literal> ã㤠"
+"<literal>insert=\"false\"</literal> ã¨è¨å®ãã¦ãå対å´ãä»®æ³çã« inverse ã«ã"
+"ã¾ãï¼ï¼"
-#. Tag: programlisting
-#: association_mapping.xml:195
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:197
#, fuzzy, no-c-format
msgid ""
"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
@@ -554,84 +215,35 @@
"<literal><column></literal> element, but on the <literal><key></"
"literal> element."
msgstr ""
-"ããå¤é¨ãã¼ã«ã©ã ã <literal>NOT NULL</literal> ã§ãããªãã°ã ã³ã¬ã¯ã·ã§ã³"
+"ããå¤é¨ãã¼ã«ã©ã ã <literal>NOT NULL</literal> ã§ãããªãã°ãã³ã¬ã¯ã·ã§ã³"
"ãããã³ã°ã® <literal><key></literal> è¦ç´ ã <literal>not-null=\"true"
-"\"</literal> ã«ãããã¨ã¯éè¦ã§ãã å
¥ãåã«ãªã£ã <literal><column></"
+"\"</literal> ã«ãããã¨ã¯éè¦ã§ããå
¥ãåã«ãªã£ã <literal><column></"
"literal> è¦ç´ ã ãã§ã¯ãªãã <literal><key></literal> è¦ç´ ã "
"<literal>not-null=\"true\"</literal> ã¨å®ç¾©ããªãããã«ãã¦ãã ããã"
#. Tag: para
-#: association_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
"is common:"
msgstr "<emphasis>å¤é¨ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯é常ã«ä¸è¬çã§ãã"
-#. Tag: programlisting
-#: association_mapping.xml:217
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:220
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
"uses the special id generator:"
msgstr ""
-"<emphasis>主ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ç¹æ®ãªIDã¸ã§ãã¬ã¼ã¿ã使ãã¾"
-"ãã"
+"<emphasis>主ãã¼ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯ç¹æ®ãª ID ã¸ã§ãã¬ã¼ã¿ã使ã"
+"ã¾ãã"
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr "çµåãã¼ãã«ã使ã£ãåæ¹åé¢é£"
#. Tag: para
-#: association_mapping.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
@@ -639,62 +251,16 @@
"the join."
msgstr ""
"<emphasis>çµåãã¼ãã«ã®åæ¹åä¸å¯¾å¤é¢é£</emphasis> ã§ãã <literal>inverse="
-"\"true\"</literal> ãé¢é£ç«¯ãã³ã¬ã¯ã·ã§ã³ãçµåã®ããããã« è¨å®ã§ãããã¨ã«"
-"注æãã¦ãã ããã"
+"\"true\"</literal> ãé¢é£ç«¯ãã³ã¬ã¯ã·ã§ã³ãçµåã®ããããã«è¨å®ã§ãããã¨ã«æ³¨"
+"æãã¦ãã ããã"
-#. Tag: programlisting
-#: association_mapping.xml:244
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:250
#, no-c-format
msgid "one to one"
msgstr "ä¸å¯¾ä¸"
#. Tag: para
-#: association_mapping.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
@@ -702,86 +268,20 @@
"<emphasis>çµåãã¼ãã«ã®åæ¹åä¸å¯¾ä¸é¢é£</emphasis> ã¯é常ã«ç¹æ®ã§ãããå¯è½"
"ã§ãã"
-#. Tag: programlisting
-#: association_mapping.xml:257
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:265
-#, fuzzy, no-c-format
-msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association</"
"emphasis>."
-msgstr "æå¾ã«ã<emphasis>åæ¹åå¤å¯¾å¤é¢é£</emphasis> ã示ãã¾ãã"
+msgstr "æå¾ã«ã <emphasis>åæ¹åå¤å¯¾å¤é¢é£</emphasis> ã示ãã¾ãã"
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
msgstr "ããè¤éãªé¢é£ãããã³ã°"
#. Tag: para
-#: association_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely</emphasis> rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
@@ -790,54 +290,25 @@
"<literal>effectiveEndDate</literal> and <literal>effectiveStartDate</"
"literal>columns, it would be mapped as follows:"
msgstr ""
-"ããè¤éãªé¢é£çµå㯠<emphasis>極ãã¦</emphasis> ç¨ã§ãã ãããã³ã°ããã¥ã¡"
-"ã³ãã«SQLæãåãè¾¼ããã¨ã§ã ããã«è¤éãªç¶æ³ãæ±ããã¨ãã§ãã¾ãã ä¾ãã°ã"
-"<literal>accountNumber</literal>, <literal>effectiveEndDate</literal>, "
-"<literal>effectiveStartDate</literal> ã«ã©ã ãæã¤accountï¼å£åº§ï¼æ
å ±ã®å±¥æ´ã"
-"æ±ããã¼ãã«ã¯ã 以ä¸ã®ããã«ãããã³ã°ãã¾ãã"
+"ããè¤éãªé¢é£çµå㯠<emphasis>極ãã¦</emphasis> ç¨ã§ãããããã³ã°ããã¥ã¡ã³"
+"ãã« SQL æãåãè¾¼ããã¨ã§ãããã«è¤éãªç¶æ³ãæ±ããã¨ãã§ãã¾ããä¾ãã°ã "
+"<literal>accountNumber</literal> ã <literal>effectiveEndDate</literal> ã "
+"<literal>effectiveStartDate</literal> ã«ã©ã ãæã¤ account ï¼å£åº§ï¼æ
å ±ã®å±¥æ´"
+"ãæ±ããã¼ãã«ã¯ã以ä¸ã®ããã«ãããã³ã°ãã¾ãã"
-#. Tag: programlisting
-#: association_mapping.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</"
-"formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:291
-#, fuzzy, no-c-format
-msgid ""
"You can then map an association to the <emphasis>current</emphasis> "
"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
"ããã¦ãé¢é£ã <emphasis>ç¾æç¹ã®</emphasis> ã¤ã³ã¹ã¿ã³ã¹ "
-"ï¼<literal>effectiveEndDate</literal> ãnullã§ãããã®ï¼ã«ãããã³ã°ãã¾ãã "
-"以ä¸ã®ããã«ãªãã¾ãï¼"
+"ï¼<literal>effectiveEndDate</literal> ã null ã§ãããã®ï¼ã«ãããã³ã°ãã¾"
+"ãã以ä¸ã®ããã«ãªãã¾ãï¼"
-#. Tag: programlisting
-#: association_mapping.xml:296
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:298
-#, fuzzy, no-c-format
-msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee</literal> and <literal>Organization</literal> is "
"maintained in an <literal>Employment</literal> table full of historical "
@@ -845,37 +316,818 @@
"emphasis> employer, the one with the most recent <literal>startDate</"
"literal>, could be mapped in the following way:"
msgstr ""
-"ããã«è¤éãªä¾ã§ã¯ã<literal>Employeeï¼å¾æ¥å¡ï¼</literal> 㨠"
+"ããã«è¤éãªä¾ã§ã¯ã <literal>Employeeï¼å¾æ¥å¡ï¼</literal> 㨠"
"<literal>Organizationï¼çµç¹ï¼</literal> éã®é¢é£ã <literal>Employmentï¼é"
-"ç¨ï¼</literal> ãã¼ãã«ã§ä¿æãããå ´åãæ³åãã¦ãã ããã ãã®ãã¼ãã«ã«ã¯"
-"éç¨ãã¼ã¿ã®å±¥æ´ããã¹ã¦å«ã¾ãã¾ãã ããã¨å¾æ¥å¡ã® <emphasis>æãæè¿ã®</"
+"ç¨ï¼</literal> ãã¼ãã«ã§ä¿æãããå ´åãæ³åãã¦ãã ããããã®ãã¼ãã«ã«ã¯é"
+"ç¨ãã¼ã¿ã®å±¥æ´ããã¹ã¦å«ã¾ãã¾ããããã¨å¾æ¥å¡ã® <emphasis>æãæè¿ã®</"
"emphasis> éç¨è
ã表ãé¢é£ ï¼æãæè¿ã® <literal>startDate</literal> ãæã¤ã"
"ã®ï¼ã¯ããã®ããã«ãããã³ã°ã§ãã¾ãï¼"
-#. Tag: programlisting
-#: association_mapping.xml:306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:308
-#, fuzzy, no-c-format
-msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
-"ãã®æ©è½ã¯é常ã«å¼·åã§ãã ããããã®ãããªå ´åãæ®éã¯HQLãcriteriaã¯ã¨ãªã"
-"ä½¿ãæ¹ãããå®è·µçã§ãã"
+"ãã®æ©è½ã¯é常ã«å¼·åã§ããããããã®ãããªå ´åãæ®é㯠HQL ã criteria ã¯ã¨ãª"
+"ãä½¿ãæ¹ãããå®è·µçã§ãã"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint \n"
+#~ " not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint\n"
+#~ " not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, \n"
+#~ " primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/"
+#~ ">\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 "
+#~ "end</formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,154 +1,79 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-06 10:49+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
-msgstr "åºæ¬çãªO/Rãããã³ã°"
+msgstr "åºæ¬ç㪠O/R ãããã³ã°"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
msgstr "ãããã³ã°å®ç¾©"
#. Tag: para
-#: basic_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
"mapping document is designed to be readable and hand-editable. The mapping "
"language is Java-centric, meaning that mappings are constructed around "
"persistent class declarations and not table declarations."
msgstr ""
-"ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã¯é常XMLããã¥ã¡ã³ãã§å®ç¾©ãã¾ãã ãã"
-"ãã³ã°ããã¥ã¡ã³ãã¯ãèªã¿ãããæä½æ¥ã§ç·¨éããããããã«ãã¶ã¤ã³ããã¦ãã¾"
-"ãã ãããã³ã°è¨èªã¯Javaä¸å¿ãã¤ã¾ããã¼ãã«å®ç¾©ã§ã¯ãªãæ°¸ç¶ã¯ã©ã¹ã®å®ç¾©ã«åº"
-"ã¥ãã¦æ§ç¯ããã¦ãã¾ãã"
+"ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã¯é常 XML ããã¥ã¡ã³ãã§å®ç¾©ãã¾ãã"
+"ãããã³ã°ããã¥ã¡ã³ãã¯ãèªã¿ãããæä½æ¥ã§ç·¨éããããããã«ãã¶ã¤ã³ããã¦"
+"ãã¾ãããããã³ã°è¨èªã¯ Java ä¸å¿ãã¤ã¾ããã¼ãã«å®ç¾©ã§ã¯ãªãæ°¸ç¶ã¯ã©ã¹ã®å®"
+"義ã«åºã¥ãã¦æ§ç¯ããã¦ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
"hand, a number of tools exist to generate the mapping document. These "
"include XDoclet, Middlegen and AndroMDA."
msgstr ""
-"å¤ãã®Hibernateã¦ã¼ã¶ã¯XMLãããã³ã°ã®è¨è¿°ãæä½æ¥ã§è¡ãã¾ããã XDoclet, "
-"Middlegen, AndroMDAã¨ãããããªãããã³ã°ããã¥ã¡ã³ããçæãããã¼ã«ã ãã"
-"ã¤ãåå¨ãã¾ãã"
+"å¤ãã® Hibernate ã¦ã¼ã¶ã¼ã¯ XML ãããã³ã°ã®è¨è¿°ãæä½æ¥ã§è¡ãã¾ããã "
+"XDoclet, Middlegen, AndroMDA ã¨ãããããªãããã³ã°ããã¥ã¡ã³ããçæãããã¼"
+"ã«ãããã¤ãåå¨ãããã¨ãè¦ãã¦ããã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is an example mapping:"
msgstr "ãµã³ãã«ã®ãããã³ã°ããå§ãã¾ãããï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:51
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:53
-#, fuzzy, no-c-format
-msgid ""
"We will now discuss the content of the mapping document. We will only "
"describe, however, the document elements and attributes that are used by "
"Hibernate at runtime. The mapping document also contains some extra optional "
"attributes and elements that affect the database schemas exported by the "
"schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
-"ãããã³ã°ããã¥ã¡ã³ãã®å
容ã説æãã¾ããã ãã ããããã§ã¯Hibernateãå®è¡"
-"æã«ä½¿ãããã¥ã¡ã³ãè¦ç´ ã¨å±æ§ã«ã¤ãã¦ã®ã¿èª¬æãã¾ãã ãããã³ã°ããã¥ã¡ã³ã"
+"ãããã³ã°ããã¥ã¡ã³ãã®å
容ã説æãã¾ãããã ããããã§ã¯ Hibernate ãå®è¡æ"
+"ã«ä½¿ãããã¥ã¡ã³ãè¦ç´ ã¨å±æ§ã«ã¤ãã¦ã®ã¿èª¬æãã¾ãããããã³ã°ããã¥ã¡ã³ã"
"ã¯ãããã¤ãã®ãªãã·ã§ã³å±æ§ã¨è¦ç´ ãå«ãã§ãã¾ãï¼ä¾ãã° <literal>not-null</"
-"literal> 屿§ï¼ã ãããã¯ã¹ãã¼ãã¨ã¯ã¹ãã¼ããã¼ã«ãåºåãããã¼ã¿ãã¼ã¹ã¹"
+"literal> 屿§ï¼ããããã¯ã¹ãã¼ãã¨ã¯ã¹ãã¼ããã¼ã«ãåºåãããã¼ã¿ãã¼ã¹ã¹"
"ãã¼ãã«å½±é¿ãä¸ãããã®ã§ãã"
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
"found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/"
@@ -157,22 +82,20 @@
"lookups of the DTD using an Internet connection, check the DTD declaration "
"against the contents of your classpath."
msgstr ""
-"XMLãããã³ã°ã§ã¯ããè¦ããããããªããã¥ã¡ã³ãåãå¿
ãå®ç¾©ãã¹ãã§ãã å®é"
-"ã®DTDã¯ãä¸è¨ã®URLã® <literal>hibernate-x.x.x/src/org/hibernate</literal> "
-"ãã£ã¬ã¯ããªã ã¾ã㯠<literal>hibernate.jar</literal> å
ã«ããã¾ãã "
-"Hibernateã¯å¸¸ã«ããã®ã¯ã©ã¹ãã¹å
ã§DTDãæ¢ãå§ãã¾ãã ã¤ã³ã¿ã¼ãããã«ãã"
-"DTDãã¡ã¤ã«ãæ¢ããã¨ãããªãã ã¯ã©ã¹ãã¹ã®å
容ãè¦ã¦ãDTD宣è¨ã確èªãã¦ãã "
-"ããã"
+"XML ãããã³ã°ã§ã¯ããè¦ããããããªããã¥ã¡ã³ãåãå¿
ãå®ç¾©ãã¹ãã§ããå®é"
+"ã® DTD ã¯ãä¸è¨ã® URL ã® <literal>hibernate-x.x.x/src/org/hibernate</"
+"literal> ãã£ã¬ã¯ããªãã¾ã㯠<literal>hibernate.jar</literal> å
ã«ããã¾"
+"ãã Hibernate ã¯å¸¸ã«ããã®ã¯ã©ã¹ãã¹å
ã§ DTD ãæ¢ãå§ãã¾ããã¤ã³ã¿ã¼ããã"
+"ã«ãã DTD ãã¡ã¤ã«ãæ¢ããã¨ãããªããã¯ã©ã¹ãã¹ã®å
容ãè¦ã¦ã DTD 宣è¨ã確"
+"èªãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
-msgstr "ã¨ã³ãã£ãã£ã»ãªã¾ã«ã"
+msgstr "ã¨ã³ãã£ãã£ãªã¾ã«ã"
#. Tag: para
-#: basic_mapping.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
"is by registering a custom <literal>org.xml.sax.EntityResolver</literal> "
@@ -180,29 +103,27 @@
"custom <literal>EntityResolver</literal> recognizes two different systemId "
"namespaces:"
msgstr ""
-"åè¿°ããããã«ãHibernateã¯ã¾ãã¯ã©ã¹ãã¹å
ã§DTDã解決ãããã¨ãã¾ãã "
-"<literal>org.xml.sax.EntityResolver</literal> ã®ã«ã¹ã¿ã å®è£
ã XMLãã¡ã¤ã«ã"
-"èªã¿è¾¼ãããã®SAXReaderã«ç»é²ãããã¨ã«ãã£ã¦ãDTDã解決ãã¾ãã ãã®ã«ã¹ã¿ã "
-"ã® <literal>EntityResolver</literal> ã¯2ã¤ã®ç°ãªãã·ã¹ãã IDåå空éãèªèã"
-"ã¾ãã"
+"åè¿°ããããã«ã Hibernate ã¯ã¾ãã¯ã©ã¹ãã¹å
ã§ DTD ã解決ãããã¨ãã¾ãã "
+"<literal>org.xml.sax.EntityResolver</literal> ã®ã«ã¹ã¿ã å®è£
ã XML ãã¡ã¤ã«ã"
+"èªã¿è¾¼ãããã® SAXReader ã«ç»é²ãããã¨ã«ãã£ã¦ã DTD ã解決ãã¾ãããã®ã«ã¹"
+"ã¿ã ã® <literal>EntityResolver</literal> ã¯2ã¤ã®ç°ãªãã·ã¹ãã ID åå空éã"
+"èªèãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://hibernate.sourceforge."
"net/</literal>. The resolver attempts to resolve these entities via the "
"classloader which loaded the Hibernate classes."
msgstr ""
-"<literal>Hibernateåå空é</literal> ã¯ããªã¾ã«ãã <literal>http://"
-"hibernate.sourceforge.net/</literal> ã§å§ã¾ãã·ã¹ãã IDã«å°éããã¨ãã«ã èª"
-"èããã¾ãã ããã¦ãªã¾ã«ãã¯ãHibernateã®ã¯ã©ã¹ããã¼ãããã¯ã©ã¹ãã¼ããç¨"
-"ãã¦ã ãããã®ã¨ã³ãã£ãã£ã解決ãããã¨ãã¾ãã"
+"<literal>hibernate namespace</literal> ã¯ããªã¾ã«ãã <literal>http://"
+"hibernate.sourceforge.net/</literal> ã§å§ã¾ãã·ã¹ãã ID ã«å°éããã¨ãã«èªè"
+"ããã¾ããããã¦ãªã¾ã«ãã¯ã Hibernate ã®ã¯ã©ã¹ããã¼ãããã¯ã©ã¹ãã¼ããç¨ã"
+"ã¦ããããã®ã¨ã³ãã£ãã£ã解決ãããã¨ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath://</literal> URL protocol. "
@@ -210,60 +131,35 @@
"thread context classloader and (2) the classloader which loaded the "
"Hibernate classes."
msgstr ""
-"<literal>ã¦ã¼ã¶åå空é</literal> ã¯ããªã¾ã«ãã URLãããã³ã«ã® "
-"<literal>classpath://</literal> ã使ã£ãã·ã¹ãã IDã«å°éããã¨ãã«ã èªèãã"
-"ã¾ããããã¦ãªã¾ã«ãã¯ã(1)ã«ã¬ã³ãã¹ã¬ããã®ã³ã³ããã¹ãã¯ã©ã¹ãã¼ãã¼ã ã¾"
-"ãã¯(2)Hibernateã®ã¯ã©ã¹ããã¼ãããã¯ã©ã¹ãã¼ãã使ã£ã¦ã ãããã®ã¨ã³ãã£"
-"ãã£ã解決ãããã¨ãã¾ãã"
+"<literal>user namespace</literal> ã¯ããªã¾ã«ãã URL ãããã³ã«ã® "
+"<literal>classpath://</literal> ã使ã£ãã·ã¹ãã ID ã«å°éããã¨ãã«ãèªèã"
+"ãã¾ããããã¦ãªã¾ã«ãã¯ã (1) ã«ã¬ã³ãã¹ã¬ããã®ã³ã³ããã¹ãã¯ã©ã¹ãã¼ãã¼ã"
+"ã¾ã㯠(2) Hibernate ã®ã¯ã©ã¹ããã¼ãããã¯ã©ã¹ãã¼ãã使ã£ã¦ããããã®ã¨ã³"
+"ãã£ãã£ã解決ãããã¨ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
-msgstr "ä¸è¨ã¯ãã¦ã¼ã¶åå空éã使ã£ãä¾ã§ãï¼"
+msgstr "ä¸è¨ã¯ãã¦ã¼ã¶ã¼åå空éã使ã£ãä¾ã§ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
"custom\">typedef</link>."
msgstr ""
"ããã§ <literal>types.xml</literal> 㯠<literal>your.domain</literal> ãã"
-"ã±ã¼ã¸å
ã®ãªã½ã¼ã¹ã§ããã ã«ã¹ã¿ã <xref linkend=\"mapping-types-custom"
-"\">typedef</xref> ãå«ãã¾ãã"
+"ã±ã¼ã¸å
ã®ãªã½ã¼ã¹ã§ãããã«ã¹ã¿ã åå®ç¾© <xref linkend=\"mapping-types-custom"
+"\"/> ãå«ã¿ã¾ãã"
#. Tag: title
-#: basic_mapping.xml:115
#, fuzzy, no-c-format
msgid "Hibernate-mapping"
msgstr "hibernate-mapping"
#. Tag: para
-#: basic_mapping.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
"and <literal>catalog</literal> attributes specify that tables referred to in "
@@ -276,47 +172,29 @@
"literal> attribute allows you to use unqualified class names in the query "
"language."
msgstr ""
-"ãã®è¦ç´ ã«ã¯ããã¤ããªãã·ã§ã³å±æ§ãããã¾ãã<literal>schema</literal> 屿§"
-"㨠<literal>catalog</literal> 屿§ã¯ã ãã®ãããã³ã°ãåç
§ãããã¼ãã«ããã"
-"ã®å±æ§ã«ãã£ã¦æå®ãããã¹ãã¼ãã¨(ã¾ãã¯)ã«ã¿ãã°ã«å±ãããã¨ãæå®ãã¾ãã "
+"ãã®è¦ç´ ã«ã¯ããã¤ããªãã·ã§ã³å±æ§ãããã¾ãã <literal>schema</literal> 屿§"
+"㨠<literal>catalog</literal> 屿§ã¯ããã®ãããã³ã°ãåç
§ãããã¼ãã«ããã"
+"ã®å±æ§ã«ãã£ã¦æå®ãããã¹ãã¼ãã¨(ã¾ãã¯)ã«ã¿ãã°ã«å±ãããã¨ãæå®ãã¾ãã"
"ãã®å±æ§ãæå®ãããã¨ããã¼ãã«åã¯ä¸ããããã¹ãã¼ãåã¨ã«ã¿ãã°åã§ä¿®é£¾ã"
-"ãã¾ãããããã®å±æ§ãæå®ããã¦ããªããã°ã ãã¼ãã«åã¯ä¿®é£¾ããã¾ããã"
+"ãã¾ãããããã®å±æ§ãæå®ããã¦ããªããã°ããã¼ãã«åã¯ä¿®é£¾ããã¾ããã "
"<literal>default-cascade</literal> 屿§ã¯ã <literal>cascade</literal> 屿§ã"
-"æå®ãã¦ããªãããããã£ãã³ã¬ã¯ã·ã§ã³ã«ã ã©ã®ã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ãå²ãå½ã¦ã"
-"ããæå®ãã¾ãã <literal>auto-import</literal> 屿§ã¯ã ã¯ã¨ãªè¨èªå
ã§ä¿®é£¾ã"
+"æå®ãã¦ããªãããããã£ãã³ã¬ã¯ã·ã§ã³ã«ãã©ã®ã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ãå²ãå½ã¦ã"
+"ããæå®ãã¾ãã <literal>auto-import</literal> 屿§ã¯ãã¯ã¨ãªè¨èªå
ã§ä¿®é£¾ã"
"ãã¦ããªãã¯ã©ã¹åããããã©ã«ãã§ä½¿ããããã«ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:138
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:141
-#, fuzzy, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr "<literal>schema</literal>ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®ååã"
#. Tag: para
-#: basic_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr ""
"<literal>catalog</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ã¿ãã¼ã¹ã«ã¿ãã°ã®ååã"
#. Tag: para
-#: basic_mapping.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
"literal>): a default cascade style."
@@ -325,21 +203,19 @@
"<literal>none</literal>ï¼ï¼ ããã©ã«ãã®ã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ã"
#. Tag: para
-#: basic_mapping.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing all properties. "
"It can be a custom implementation of <literal>PropertyAccessor</literal>."
msgstr ""
"<literal>default-access</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠"
-"<literal>property</literal> ï¼ï¼ Hibernateãããããã£ã«ã¢ã¯ã»ã¹ããéã«æ¡ã"
+"<literal>property</literal> ï¼ï¼ Hibernate ãããããã£ã«ã¢ã¯ã»ã¹ããéã«åã"
"ã¹ãæ¦ç¥ã <literal>PropertyAccessor</literal> ãå®è£
ãããã¨ã§ã«ã¹ã¿ãã¤ãºå¯"
"è½ã"
#. Tag: para
-#: basic_mapping.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
"literal>): the default value for unspecified <literal>lazy</literal> "
@@ -350,42 +226,38 @@
"ã³ãããã³ã°ã«å¯¾ããããã©ã«ãå¤ã"
#. Tag: para
-#: basic_mapping.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
"literal>): specifies whether we can use unqualified class names of classes "
"in this mapping in the query language."
msgstr ""
"<literal>auto-import</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal>ï¼ï¼ ã¯ã¨ãªè¨èªå
ã§ãï¼ãã®ãããã³ã°å
ã®ã¯ã©ã¹ã®ï¼ä¿®é£¾ããã¦ããªãã¯"
+"literal>ï¼ï¼ã¯ã¨ãªè¨èªå
ã§ãï¼ãã®ãããã³ã°å
ã®ã¯ã©ã¹ã®ï¼ä¿®é£¾ããã¦ããªãã¯"
"ã©ã¹åã使ãããã©ãããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
"<literal>package</literal> (ãªãã·ã§ã³): ãããã³ã°ããã¥ã¡ã³ãå
ã§ä¿®é£¾ããã¦"
-"ããªãã¯ã©ã¹åã«å¯¾ãã¦å²ãå½ã¦ãã ããã±ã¼ã¸ã®æ¥é è¾(prefix)ãæå®ãã¾ãã"
+"ããªãã¯ã©ã¹åã«å¯¾ãã¦å²ãå½ã¦ããããã±ã¼ã¸ã®æ¥é è¾ (prefix) ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\"</literal>. An exception will "
"result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
"ï¼ä¿®é£¾ããã¦ããªãï¼åãååã®æ°¸ç¶ã¯ã©ã¹ã2ã¤ãããªãã <literal>auto-import="
-"\"false\"</literal> ãè¨å®ãã¹ãã§ãã 2ã¤ã®ã¯ã©ã¹ã«âã¤ã³ãã¼ããããâåãå"
-"åãå²ãå½ã¦ããã¨ããã¨ãHibernateã¯ä¾å¤ãæãã¾ãã"
+"\"false\"</literal> ãè¨å®ãã¹ãã§ãã2ã¤ã®ã¯ã©ã¹ã«\"ã¤ã³ãã¼ãããã\"åãå"
+"åãå²ãå½ã¦ããã¨ããã¨ã Hibernate ã¯ä¾å¤ãéåºãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
"persistent <literal><class></literal> mappings, as shown above. It is, "
@@ -396,82 +268,47 @@
"<literal>Animal.hbm.xml</literal>."
msgstr ""
"<literal>hibernate-mapping</literal> è¦ç´ ã¯ãæåã®ä¾ã§ç¤ºããããã«ããã¤ãã®"
-"æ°¸ç¶ <literal><class></literal> ãããã³ã°ããã¹ãã§ãã¾ãã ããããï¼"
+"æ°¸ç¶ <literal><class></literal> ãããã³ã°ããã¹ãã§ãã¾ããããããï¼"
"ã¤ã®ãããã³ã°ãã¡ã¤ã«ã§ã¯ãã ã²ã¨ã¤ã®æ°¸ç¶ã¯ã©ã¹(ã¾ãã¯ã²ã¨ã¤ã®ã¯ã©ã¹é層)ã«"
-"ãããã³ã°ããããã«ãã ããã«æ°¸ç¶ã¹ã¼ãã¼ã¯ã©ã¹ã®å¾ã§æå®ããã¹ãã§ããã"
-"(ããã¤ãã®ãã¼ã«ã¯ãã®ãããªãããã³ã°ãã¡ã¤ã«ãæ³å®ãã¦ãã¾ã)ã ä¾ãã°æ¬¡ã®"
-"ããã«ãªãã¾ããï¼ <literal>Cat.hbm.xml</literal> , <literal>Dog.hbm.xml</"
+"ãããã³ã°ããããã«ããããã«æ°¸ç¶ã¹ã¼ãã¼ã¯ã©ã¹ã®å¾ã§æå®ããã¹ãã§ããã(ã"
+"ãã¤ãã®ãã¼ã«ã¯ãã®ãããªãããã³ã°ãã¡ã¤ã«ãæ³å®ãã¦ãã¾ã)ãä¾ãã°æ¬¡ã®ãã"
+"ã«ãªãã¾ããï¼ <literal>Cat.hbm.xml</literal> , <literal>Dog.hbm.xml</"
"literal> , ã¾ãã¯ç¶æ¿ã使ããªã <literal>Animal.hbm.xml</literal> ã"
#. Tag: title
-#: basic_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Class"
-msgstr "class"
+msgstr "Class"
#. Tag: para
-#: basic_mapping.xml:207
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
"element. For example:"
-msgstr "<literal>class</literal> è¦ç´ ã使ã£ã¦ãæ°¸ç¶ã¯ã©ã¹ã宣è¨ã§ãã¾ãã"
+msgstr "<literal>class</literal> è¦ç´ ã使ã£ã¦ãæ°¸ç¶ã¯ã©ã¹ã宣è¨ã§ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:235
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:238
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
"the persistent class or interface. If this attribute is missing, it is "
"assumed that the mapping is for a non-POJO entity."
msgstr ""
-"<literal>name</literal> (ãªãã·ã§ã³)ï¼æ°¸ç¶ã¯ã©ã¹ï¼ã¾ãã¯ã¤ã³ã¿ã¼ãã§ã¤ã¹ï¼ã®"
-"å®å
¨ä¿®é£¾Javaã¯ã©ã¹åã ãããã®å±æ§ãæå®ããªããã°ãPOJOã§ã¯ãªãã¨ã³ãã£ãã£"
-"ã«å¯¾ãããããã³ã°ã¨ãã¦æ±ããã¾ãã"
+"<literal>name</literal> (ãªãã·ã§ã³)ï¼æ°¸ç¶ã¯ã©ã¹ï¼ã¾ãã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ï¼ã®"
+"å®å
¨ä¿®é£¾ Java ã¯ã©ã¹åããããã®å±æ§ãæ¬ è½ãã¦ããå ´åã POJO ã§ã¯ãªãã¨ã³"
+"ãã£ãã£ã«å¯¾ãããããã³ã°ã¨ãã¦æ±ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
"<literal>table</literal> (ãªãã·ã§ã³ - ããã©ã«ãã¯ä¿®é£¾ããã¦ããªãã¯ã©ã¹"
-"å)ï¼ãã¼ã¿ãã¼ã¹ãã¼ãã«ã®åå"
+"å)ï¼ãã¼ã¿ãã¼ã¹ãã¼ãã«ã®ååã"
#. Tag: para
-#: basic_mapping.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
@@ -479,86 +316,70 @@
"<literal>not null</literal>."
msgstr ""
"<literal>discriminator-value</literal> (ãªãã·ã§ã³ - ããã©ã«ãã¯ã¯ã©ã¹å)ï¼ "
-"ããªã¢ã¼ãã£ãã¯ãªæ¯ãèãã«ä½¿ãããåã
ã®ãµãã¯ã©ã¹ãèå¥ããããã®å¤ã å¤"
-"㯠<literal>null</literal> ã <literal>not null</literal> ã®ãããããåãã¾"
-"ãã"
+"ããªã¢ã¼ãã£ãã¯ãªæ¯ãèãã«ä½¿ãããåã
ã®ãµãã¯ã©ã¹ãèå¥ããããã®å¤ãå¤ã¯ "
+"<literal>null</literal> ã <literal>not null</literal> ã®ãããããåãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"specifies that instances of the class are (not) mutable."
msgstr ""
-"<literal>mutable</literal> (ãªãã·ã§ã³ã ããã©ã«ã㯠<literal>true</"
+"<literal>mutable</literal> (ãªãã·ã§ã³ãããã©ã«ã㯠<literal>true</"
"literal> )ï¼ ãã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãæ´æ°å¯è½ï¼ã¾ãã¯ä¸å¯è½ï¼ã§ãããã¨ãæ"
"å®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ ã«ã¼ãã® <literal><hibernate-"
-"mapping></literal> è¦ç´ ã§æå®ãããã¹ãã¼ãåããªã¼ãã¼ã©ã¤ããã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>schema</literal> (ãªãã·ã§ã³): ã«ã¼ãã® <literal><hibernate-"
-"mapping></literal> è¦ç´ ã§æå®ããã¹ãã¼ãåã ãªã¼ãã¼ã©ã¤ããã¾ãã"
+"mapping></literal> è¦ç´ ã§æå®ããã¹ãã¼ãåããªã¼ãã¼ã©ã¤ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> ï¼ãªãã·ã§ã³ï¼ï¼ã«ã¼ãã® <literal><hibernate-"
-"mapping></literal> è¦ç´ ã§æå®ãããã«ã¿ãã°åããªã¼ãã¼ã©ã¤ããã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>catalog</literal> (ãªãã·ã§ã³): ã«ã¼ãã® <literal><hibernate-"
-"mapping></literal> è¦ç´ ã§æå®ããã«ã¿ãã°åã ãªã¼ãã¼ã©ã¤ããã¾ãã"
+"mapping></literal> è¦ç´ ã§æå®ããã«ã¿ãã°åããªã¼ãã¼ã©ã¤ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
-"<literal>proxy</literal> ï¼ãªãã·ã§ã³ï¼ï¼é
å»¶åæåãããã·ã«ä½¿ãã¤ã³ã¿ã¼ãã§"
-"ã¤ã¹ãæå®ãã¾ãã æ°¸ç¶åããã¯ã©ã¹åãã®ãã®ãæå®ãããã¨ãå¯è½ã§ãã"
+"<literal>proxy</literal> ï¼ãªãã·ã§ã³ï¼ï¼é
å»¶åæåãããã·ã«ä½¿ãã¤ã³ã¿ã¼"
+"ãã§ã¼ã¹ãæå®ãã¾ããæ°¸ç¶åããã¯ã©ã¹åãã®ãã®ãæå®ãããã¨ãå¯è½ã§ãã"
#. Tag: para
-#: basic_mapping.xml:282
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>UPDATE</literal> SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
"<literal>dynamic-update</literal> ï¼ãªãã·ã§ã³ã ããã©ã«ã㯠"
-"<literal>false</literal> ï¼ï¼ å¤ã夿´ãããã«ã©ã ã ããå«ãSQLã® "
+"<literal>false</literal> ï¼ï¼å¤ã夿´ãããã«ã©ã ã ããå«ã SQL ã® "
"<literal>UPDATE</literal> æããå®è¡æã«çæãããã¨ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>INSERT</literal> SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
"<literal>dynamic-insert</literal> ï¼ãªãã·ã§ã³, ããã©ã«ã㯠<literal>false</"
-"literal> ï¼ï¼ å¤ãnullã§ã¯ãªãã«ã©ã ã ããå«ãSQLã® <literal>INSERT</"
+"literal> ï¼ï¼å¤ã null ã§ã¯ãªãã«ã©ã ã ããå«ã SQL ã® <literal>INSERT</"
"literal> æããå®è¡æã«çæãããã¨ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
"<literal>false</literal>): specifies that Hibernate should <emphasis>never</"
@@ -568,40 +389,38 @@
"Hibernate perform an extra SQL <literal>SELECT</literal> to determine if an "
"<literal>UPDATE</literal> is actually required."
msgstr ""
-"<literal>select-before-update</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠"
-"<literal>false</literal>): ãªãã¸ã§ã¯ãã夿´ãããã®ã確å®ã§ãªããªãã°ã"
-"HibernateãSQLã® <literal>UPDATE</literal> ã <emphasis>決ãã¦å®è¡ããªã</"
-"emphasis> ãã¨ãæå®ãã¾ãã ããç¹å®ã®å ´å(å®éçã«ã¯ã䏿ãªãã¸ã§ã¯ãã "
-"<literal>update()</literal> ã使ãã æ°ããã»ãã·ã§ã³ã¨é¢é£ä»ããããæã "
-"ã)ã<literal>UPDATE</literal> ãå®éã«å¿
è¦ãã©ãããæ±ºå®ããããã«ã "
-"Hibernateãä½åãªSQLã® <literal>SELECT</literal> æãå®è¡ãããã¨ãæå³ãã¾"
-"ãã"
+"<literal>select-before-update</literal> (ãªãã·ã§ã³ãããã©ã«ã㯠"
+"<literal>false</literal>): ãªãã¸ã§ã¯ãã夿´ãããã®ã確å®ã§ãªããªãã°ã "
+"Hibernate ã SQL ã® <literal>UPDATE</literal> ã <emphasis>決ãã¦å®è¡ããªã</"
+"emphasis> ãã¨ãæå®ãã¾ããããç¹å®ã®å ´å(å®éçã«ã¯ã䏿ãªãã¸ã§ã¯ãã "
+"<literal>update()</literal> ã使ããæ°ããã»ãã·ã§ã³ã¨é¢é£ä»ããããæã "
+"ã)ã <literal>UPDATE</literal> ãå®éã«å¿
è¦ãã©ãããæ±ºå®ããããã«ã "
+"Hibernate ãä½å㪠SQL ã® <literal>SELECT</literal> æãå®è¡ãããã¨ãæå³ã"
+"ã¾ãã"
#. Tag: para
-#: basic_mapping.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
"literal>): determines whether implicit or explicit query polymorphism is "
"used."
msgstr ""
-"(optional, ããã©ã«ãã§ã¯ <literal>implicit</literal> ): implicitï¼æé»ï¼ã"
-"explicitï¼æç¤ºï¼ã®ã ã©ã¡ãã®ã¯ã¨ãªããªã¢ã¼ãã£ãºã ã使ããæ±ºå®ãã¾ãã"
+"<literal>polymorphism</literal> (ãªãã·ã§ã³ãããã©ã«ãã§ã¯ "
+"<literal>implicit</literal> ): implicitï¼æé»ï¼ãexplicitï¼æç¤ºï¼ã®ãã©ã¡ãã®"
+"ã¯ã¨ãªããªã¢ã¼ãã£ãºã ã使ããæ±ºå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:312
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition to be used when retrieving objects of "
"this class."
msgstr ""
"<literal>where</literal> ï¼ãªãã·ã§ã³ï¼ï¼ ãã®ã¯ã©ã¹ã®ãªãã¸ã§ã¯ããæ¤ç´¢ãã"
-"ã¨ãã«ä½¿ç¨ãããä»»æã®SQLã® <literal>WHERE</literal> æ¡ä»¶ãæå®ãã¾ãã"
+"ã¨ãã«ä½¿ç¨ãããä»»æã® SQL ã® <literal>WHERE</literal> æ¡ä»¶ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
"<literal>ClassPersister</literal>."
@@ -610,69 +429,63 @@
"<literal>ClassPersister</literal> ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
-"<literal>batch-size</literal> ï¼ãªãã·ã§ã³, ããã©ã«ã㯠<literal>1</"
+"<literal>batch-size</literal> ï¼ãªãã·ã§ã³ãããã©ã«ã㯠<literal>1</"
"literal> ï¼ï¼ èå¥åã§ãã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã復å
ããã¨ãã®ãããããµã¤"
"ãºããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:329
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
"literal>): determines the optimistic locking strategy."
msgstr ""
-"<literal>optimistic-lock</literal> ï¼ãªãã·ã§ã³,ããã©ã«ã㯠"
+"<literal>optimistic-lock</literal> ï¼ãªãã·ã§ã³ãããã©ã«ã㯠"
"<literal>version</literal> ï¼ï¼ 楽観ããã¯æ¦ç¥ã決å®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
"<literal>lazy</literal> ï¼ãªãã·ã§ã³ï¼ï¼ <literal>lazy=\"false\"</literal> ã¨"
-"è¨å®ãããã¨ã§ã é
å»¶ãã§ãããã§ããªããªãã¾ãã"
+"è¨å®ãããã¨ã§ãé
å»¶ãã§ãããã§ããªããªãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:341
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
"Hibernate3 allows a class to be mapped multiple times, potentially to "
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
"<literal>entity-name</literal> ï¼ãªãã·ã§ã³ãããã©ã«ãã¯ã¯ã©ã¹åï¼ï¼ "
-"Hibernate3ã§ã¯ã¯ã©ã¹ãè¤æ°åãããã³ã°ã§ãï¼å ´åã«ãã£ã¦ã¯éããã¼ãã«ã«å¯¾ã"
-"ã¦ãï¼ã Javaã¬ãã«ã§MapãXMLã§è¡¨ç¾ãããã¨ã³ãã£ãã£ãããã³ã°ãå¯è½ã§ãã "
-"ãããã®å ´åãã¨ã³ãã£ãã£ã«å¯¾ãã¦ä»»æã®ååããæç¤ºçã«ä»ããªãã¦ã¯ãªãã¾ã"
-"ãã 詳ãã㯠<xref linkend=\"persistent-classes-dynamicmodels\"/> 㨠<xref "
-"linkend=\"xml\"/> ãåç
§ãã¦ãã ããã"
+"Hibernate3 ã§ã¯ã¯ã©ã¹ãè¤æ°åãããã³ã°ã§ãï¼å ´åã«ãã£ã¦ã¯éããã¼ãã«ã«å¯¾ã"
+"ã¦ãï¼ã Java ã¬ãã«ã§ Map ã XML ã§è¡¨ç¾ãããã¨ã³ãã£ãã£ãããã³ã°ãå¯è½ã§"
+"ãããããã®å ´åãã¨ã³ãã£ãã£ã«å¯¾ãã¦ä»»æã®ååããæç¤ºçã«ä»ããªãã¦ã¯ãªã"
+"ã¾ããã 詳ãã㯠<xref linkend=\"persistent-classes-dynamicmodels\"/> 㨠"
+"<xref linkend=\"xml\"/> ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:351
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
"multi-row <emphasis>check</emphasis> constraint for automatic schema "
"generation."
msgstr ""
-"<literal>check</literal> ï¼ãªãã·ã§ã³ï¼ï¼èªåçã«ã¹ãã¼ããçæããããã«ã "
-"è¤æ°è¡ã® <emphasis>check</emphasis> å¶ç´ãçæããSQLå¼ã"
+"<literal>check</literal> ï¼ãªãã·ã§ã³ï¼ï¼èªåçã«ã¹ãã¼ããçæããããã«ãè¤"
+"æ°è¡ã® <emphasis>check</emphasis> å¶ç´ãçæãã SQL å¼ã"
#. Tag: para
-#: basic_mapping.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra "
@@ -680,15 +493,14 @@
"literal>. A ROWID is an implementation detail and represents the physical "
"location of a stored tuple."
msgstr ""
-"<literal>rowid</literal> ï¼ãªãã·ã§ã³ï¼ï¼Hibernateã¯ãããããµãã¼ããã¦ãã"
-"ãã¼ã¿ãã¼ã¹ã§ROWID㨠å¼ã°ãããã®ã使ããã¨ãã§ãã¾ãã ä¾ãã°Oracleã使ã£ã¦"
-"ããã¨ãããã®ãªãã·ã§ã³ã« <literal>rowid</literal> ãè¨å®ããã°ã Hiberante"
-"ã¯updateãé«éåããããã« <literal>rowid</literal> ã¨ããç¹å¥ãªã«ã©ã ã使ã"
-"ãã¨ãã§ãã¾ãã ROWIDã¯è©³ç´°ãªå®è£
ã§ãããä¿åãããã¿ãã«ã®ç©ççãªä½ç½®ã表"
-"ãã¦ãã¾ãã"
+"<literal>rowid</literal> ï¼ãªãã·ã§ã³ï¼ï¼ Hibernate ã¯ãããããµãã¼ããã¦ã"
+"ããã¼ã¿ãã¼ã¹ã§ ROWID 㨠å¼ã°ãããã®ã使ããã¨ãã§ãã¾ããä¾ãã° Oracle ã"
+"使ã£ã¦ããã¨ãããã®ãªãã·ã§ã³ã« <literal>rowid</literal> ãè¨å®ããã°ã "
+"Hiberante 㯠update ãé«éåããããã« <literal>rowid</literal> ã¨ããç¹å¥ãª"
+"ã«ã©ã ã使ããã¨ãã§ãã¾ãã ROWID ã¯è©³ç´°ãªå®è£
ã§ãããä¿åãããã¿ãã«ã®ç©ç"
+"çãªä½ç½®ã表ãã¦ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:364
#, fuzzy, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
@@ -696,13 +508,12 @@
"instead of a base table. See below for more information."
msgstr ""
"<literal>subselect</literal> ï¼ãªãã·ã§ã³ï¼ï¼ä¸å¤ãã¤èªã¿åãå°ç¨ã§ããã¨ã³"
-"ãã£ãã£ã ãã¼ã¿ãã¼ã¹ã®å¯ååãï¼subselectï¼ã«ãããã³ã°ãã¾ãã ããå
ã®"
-"ãã¼ãã«ã®ä»£ããã«ãã¥ã¼ãæã¡ãããã°æç¨ã§ããã ããã§ãªãã®ãªãæç¨ã§ã¯ã"
-"ãã¾ããããã詳ããæ
å ±ã¯ä¸è¨ãåç
§ãã¦ãã ããã"
+"ãã£ãã£ããã¼ã¿ãã¼ã¹ã®å¯ååãï¼subselectï¼ã«ãããã³ã°ãã¾ããããå
ã®ãã¼"
+"ãã«ã®ä»£ããã«ãã¥ã¼ãæã¡ãããã°æç¨ã§ãããããã§ãªãã®ãªãæç¨ã§ã¯ããã¾"
+"ããããã詳ããæ
å ±ã¯ä¸è¨ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
"superclasses in <literal><union-subclass></literal> hierarchies."
@@ -711,8 +522,7 @@
"</literal> é層å
ã®æ½è±¡ã¹ã¼ãã¼ã¯ã©ã¹ã«ãã¼ã¯ããããã«ä½¿ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
"declare implementing classes of that interface using the <literal><"
@@ -720,27 +530,25 @@
"emphasis> inner class. Specify the class name using the standard form i.e. "
"<literal>e.g.Foo$Bar</literal>."
msgstr ""
-"æ°¸ç¶ã¯ã©ã¹ã®ååã«ã¤ã³ã¿ã¼ãã§ã¤ã¹ãæå®ãã¦ãã¾ã£ããåé¡ããã¾ããã ãã®ã¨"
-"ã㯠<literal><subclass></literal> è¦ç´ ã使ã£ã¦ã ãã®ã¤ã³ã¿ã¼ãã§ã¤ã¹"
-"ãå®è£
ããã¯ã©ã¹ãå®ç¾©ãã¦ãã ããã <emphasis>static</emphasis> ãªå
é¨ã¯ã©ã¹"
-"ã§ãæ°¸ç¶åã§ãã¾ãã ãã®ã¨ãã¯æ¨æºå½¢å¼ãä¾ãã° <literal>eg.Foo$Bar</"
+"æ°¸ç¶ã¯ã©ã¹ã®ååã«ã¤ã³ã¿ã¼ãã§ã¼ã¹ãæå®ãã¦ãã¾ã£ããåé¡ããã¾ããããã®ã¨"
+"ã㯠<literal><subclass></literal> è¦ç´ ã使ã£ã¦ããã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã"
+"å®è£
ããã¯ã©ã¹ãå®ç¾©ãã¦ãã ããã <emphasis>static</emphasis> ãªå
é¨ã¯ã©ã¹ã§"
+"ãæ°¸ç¶åã§ãã¾ãããã®ã¨ãã¯æ¨æºå½¢å¼ãä¾ãã° <literal>eg.Foo$Bar</"
"literal> ã使ã£ã¦ã¯ã©ã¹åãæå®ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
"or deleted by the application. This allows Hibernate to make some minor "
"performance optimizations."
msgstr ""
-"<literal>mutable=\"false\"</literal> æå®ãããä¸å¤ã¯ã©ã¹ã¯ã ã¢ããªã±ã¼ã·ã§"
-"ã³ã«ããæ´æ°ãåé¤ãåºæ¥ãªããã¨ãããã¾ãã ããã«ãããHibernateãããã©ã¼"
-"ãã³ã¹ãå°ãæ¹åãã¾ãã"
+"<literal>mutable=\"false\"</literal> æå®ãããä¸å¤ã¯ã©ã¹ã¯ãã¢ããªã±ã¼ã·ã§ã³"
+"ã«ããæ´æ°ãåé¤ãåºæ¥ãªããã¨ãããã¾ããããã«ããã Hibernate ãããã©ã¼ã"
+"ã³ã¹ãå°ãæ¹åãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
"of persistent instances of the class. Hibernate will initially return CGLIB "
@@ -749,14 +557,13 @@
"proxies\" below."
msgstr ""
"ãªãã·ã§ã³ã® <literal>proxy</literal> 屿§ã«ãããã¯ã©ã¹ã®æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ã®"
-"é
å»¶åæåãå¯è½ã«ãªãã¾ãã Hibernateã¯æåã«ãæå®ããã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®"
-"è£
ããCGLIBãããã·ãè¿ãã¾ãã å®éã®æ°¸ç¶ãªãã¸ã§ã¯ãã¯ãããã·ã®ã¡ã½ããã"
-"å¼ã³åºãã¨ãã«ãã¼ããã¾ãã 以ä¸ã®ãé
å»¶åæåã®ããã®ãããã·ããåç
§ãã¦ã"
+"é
å»¶åæåãå¯è½ã«ãªãã¾ãã Hibernate ã¯æåã«ãæå®ããã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®"
+"è£
ãã CGLIB ãããã·ãè¿ãã¾ããå®éã®æ°¸ç¶ãªãã¸ã§ã¯ãã¯ãããã·ã®ã¡ã½ããã"
+"å¼ã³åºãã¨ãã«ãã¼ããã¾ãã以ä¸ã®ãé
å»¶åæåã®ããã®ãããã·ããåç
§ãã¦ã"
"ã ããã"
#. Tag: para
-#: basic_mapping.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
"will be returned by a query that names any superclass or implemented "
@@ -772,24 +579,23 @@
"table This allows a \"lightweight\" class that contains a subset of the "
"table columns."
msgstr ""
-"<emphasis>æé»ç</emphasis> ããªã¢ã¼ãã£ãºã ã¨ã¯ã次ã®äºã¤ãæå³ãã¦ãã¾ãã "
-"ä¸ã¤ã¯ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããã¹ã¼ãã¼ã¯ã©ã¹ãå®è£
ããã¤ã³ã¿ã¼ãã§ã¤ã¹ãã¾ã"
-"ãã®ã¯ã©ã¹ãæå®ããã¯ã¨ãªã«ãã£ã¦è¿ããããã¨ã§ã ããä¸ã¤ã¯ãã®ã¯ã©ã¹ã®ãµã"
+" <emphasis>æé»ç</emphasis> ããªã¢ã¼ãã£ãºã ã¨ã¯ã次ã®äºã¤ãæå³ãã¦ãã¾ãã"
+"ä¸ã¤ã¯ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããã¹ã¼ãã¼ã¯ã©ã¹ãå®è£
ããã¤ã³ã¿ã¼ãã§ã¼ã¹ãã¾ã"
+"ãã®ã¯ã©ã¹ãæå®ããã¯ã¨ãªã«ãã£ã¦è¿ããããã¨ã§ãããä¸ã¤ã¯ãã®ã¯ã©ã¹ã®ãµã"
"ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãããã®ã¯ã©ã¹èªèº«ãæå®ããã¯ã¨ãªã«ãã£ã¦è¿ããããã¨ã§"
-"ãã ã¾ãã<emphasis>æç¤ºç</emphasis> ããªã¢ã¼ãã£ãºã ã¨ã¯ã次ã®äºã¤ãæå³ã"
-"ã¦ãã¾ãã ä¸ã¤ã¯ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãããã®ã¯ã©ã¹ãæç¤ºçã«æå®ããã¯ã¨ãªã«"
-"ãã£ã¦ã®ã¿è¿ããããã¨ã§ã ããä¸ã¤ã¯ã¯ã©ã¹ãæå®ããã¯ã¨ãªãã<literal><"
+"ããã¾ãã <emphasis>æç¤ºç</emphasis> ããªã¢ã¼ãã£ãºã ã¨ã¯ã次ã®äºã¤ãæå³ã"
+"ã¦ãã¾ããä¸ã¤ã¯ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãããã®ã¯ã©ã¹ãæç¤ºçã«æå®ããã¯ã¨ãªã«"
+"ãã£ã¦ã®ã¿è¿ããããã¨ã§ãããä¸ã¤ã¯ã¯ã©ã¹ãæå®ããã¯ã¨ãªãã <literal><"
"class></literal> è¦ç´ ã®ä¸ã§ <literal><subclass></literal> ã "
"<literal><joined-subclass></literal> ã¨ãããã³ã°ããã¦ãããµãã¯ã©ã¹ã®"
-"ã¤ã³ã¹ã¿ã³ã¹ã ããè¿ããã¨ã§ãã ã»ã¨ãã©ã®ç¨éã§ã¯ããã©ã«ãã® "
-"<literal>polymorphism=\"implicit\"</literal> ãé©åã§ãã æç¤ºçãªããªã¢ã¼"
-"ãã£ãºã ã¯ã2ã¤ã®éã£ãã¯ã©ã¹ãåããã¼ãã«ã«ãããã³ã°ããã¦ããã¨ãã«æç¨ã§"
-"ã ï¼ããã«ãã£ã¦ãã¼ãã«ã«ã©ã ã®ãµãã»ãããå«ããã軽éãªãã¯ã©ã¹ãå¯è½ã«ãª"
-"ãã¾ãï¼ã"
+"ã¤ã³ã¹ã¿ã³ã¹ã ããè¿ããã¨ã§ããã»ã¨ãã©ã®ç¨éã§ã¯ããã©ã«ãã® "
+"<literal>polymorphism=\"implicit\"</literal> ãé©åã§ããæç¤ºçãªããªã¢ã¼ãã£"
+"ãºã ã¯ã2ã¤ã®éã£ãã¯ã©ã¹ãåããã¼ãã«ã«ãããã³ã°ããã¦ããã¨ãã«æç¨ã§ã "
+"ï¼ããã«ãã£ã¦ãã¼ãã«ã«ã©ã ã®ãµãã»ãããå«ããã軽éãªãã¯ã©ã¹ãå¯è½ã«ãªã"
+"ã¾ãï¼ã"
#. Tag: para
-#: basic_mapping.xml:410
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
"persistence strategy used for the class. You can, for example, specify your "
@@ -801,17 +607,16 @@
"a simple example of \"persistence\" to a <literal>Hashtable</literal>."
msgstr ""
"<literal>persister</literal> 屿§ãæå®ãããã¨ã§ãã¯ã©ã¹ã®æ°¸ç¶åæ¦ç¥ãã«ã¹ã¿"
-"ãã¤ãºã§ãã¾ãã ä¾ãã° <literal>org.hibernate.persister.EntityPersister</"
-"literal> èªèº«ã®ãµãã¯ã©ã¹ãæå®ãããã ã¾ãä¾ãã°ã¹ãã¢ãããã·ã¼ã¸ã£ã³ã¼"
-"ã«ããã©ãããã¡ã¤ã«ã¸ã·ãªã¢ã©ã¤ãºã LDAPãªã©ãéããæ°¸ç¶æ§ãå®è£
ãã "
-"<literal>org.hibernate.persister.ClassPersister</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®"
+"ãã¤ãºã§ãã¾ããä¾ãã° <literal>org.hibernate.persister.EntityPersister</"
+"literal> èªèº«ã®ãµãã¯ã©ã¹ãæå®ããããã¾ãä¾ãã°ã¹ãã¢ãããã·ã¼ã¸ã£ã³ã¼ã«ã"
+"ãã©ãããã¡ã¤ã«ã¸ã·ãªã¢ã©ã¤ãºã LDAP ãªã©ãéããæ°¸ç¶æ§ãå®è£
ãã "
+"<literal>org.hibernate.persister.ClassPersister</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®"
"å®å
¨ã«æ°ããå®è£
ãæä¾ã§ãã¾ããç°¡åãªä¾ã¨ã㦠<literal>org.hibernate.test."
-"CustomPersister</literal> ãè¦ã¦ãã ããï¼ãã㯠<literal>Hashtable</"
+"CustomPersister</literal> ãåç
§ãã¦ãã ããï¼ãã㯠<literal>Hashtable</"
"literal> ã®ãæ°¸ç¶åãã§ãï¼ã"
#. Tag: para
-#: basic_mapping.xml:421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
"settings are not inherited by subclasses, so they can also be specified on "
@@ -820,14 +625,13 @@
"cases, they can actually decrease performance in others."
msgstr ""
"<literal>dynamic-update</literal> 㨠<literal>dynamic-insert</literal> ã®è¨å®"
-"ã¯ãµãã¯ã©ã¹ã«ç¶æ¿ããã¾ããã ãã®ãã <literal><subclass></literal> "
-"ã <literal><joined-subclass></literal> è¦ç´ ãæå®ãããã¨ãåºæ¥ã¾ãã "
+"ã¯ãµãã¯ã©ã¹ã«ç¶æ¿ããã¾ããããã®ãã <literal><subclass></literal> "
+"ã <literal><joined-subclass></literal> è¦ç´ ãæå®ãããã¨ãåºæ¥ã¾ãã"
"ãããã®è¨å®ã¯ããã©ã¼ãã³ã¹ãåä¸ãããäºãããã¾ãããè½ã¨ããã¨ãããã¾ã"
"ã®ã§ãæ
éã«ä½¿ç¨ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:429
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
"performance. It is useful to prevent a database update trigger being called "
@@ -835,36 +639,32 @@
"<literal>Session</literal>."
msgstr ""
"<literal>select-before-update</literal> ã®ä½¿ç¨ã¯é常ããã©ã¼ãã³ã¹ãè½ã¨ãã¾"
-"ãã ãã <literal>Session</literal> ã¸åé¢ã¤ã³ã¹ã¿ã³ã¹ã®ã°ã©ããå追å ãããª"
-"ãã ãã¼ã¿ãã¼ã¹æ´æ°ã®ããªã¬ãä¸å¿
è¦ã«å¼ã³åºãã®ãé¿ããã¨ããç¹ã§ãéå¸¸ã«æ"
+"ãããã <literal>Session</literal> ã¸åé¢ã¤ã³ã¹ã¿ã³ã¹ã®ã°ã©ããå追å ãããª"
+"ãããã¼ã¿ãã¼ã¹æ´æ°ã®ããªã¬ãä¸å¿
è¦ã«å¼ã³åºãã®ãé¿ããã¨ããç¹ã§ãéå¸¸ã«æ"
"ç¨ã§ãã"
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
"optimistic locking strategies:"
msgstr ""
"<literal>dynamic-update</literal> ãæå¹ã«ããã°ã楽観ããã¯æ¦ç¥ãé¸ã¶ãã¨ã«"
-"ãªãã¾ãã"
+"ãªãã¾ãï¼"
#. Tag: para
-#: basic_mapping.xml:441
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
msgstr ""
-"<literal>version</literal> ãã¼ã¸ã§ã³/ã¿ã¤ã ã¹ã¿ã³ãã«ã©ã ããã§ãã¯ãã¾ã"
+"<literal>version</literal> ãã¼ã¸ã§ã³/ã¿ã¤ã ã¹ã¿ã³ãã«ã©ã ããã§ãã¯ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:446
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>all</literal>: check all columns"
msgstr "<literal>all</literal> ãã¹ã¦ã®ã«ã©ã ããã§ãã¯ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:451
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
"concurrent updates"
@@ -873,29 +673,26 @@
"ãã"
#. Tag: para
-#: basic_mapping.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
-msgstr "<literal>none</literal> 楽観ããã¯ã使ç¨ãã¾ãã"
+msgstr "<literal>none</literal> 楽観ããã¯ã使ç¨ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:461
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
"timestamp columns for optimistic locking with Hibernate. This strategy "
"optimizes performance and correctly handles modifications made to detached "
"instances (i.e. when <literal>Session.merge()</literal> is used)."
msgstr ""
-"Hibernateã§æ¥½è¦³çããã¯æ¦ç¥ã使ããªãããã¼ã¸ã§ã³/ã¿ã¤ã ã¹ã¿ã³ãã«ã©ã ã使ã"
-"ãã¨ã <emphasis> é常ã«</emphasis> å¼·ããå§ããã¾ãã æ¥½è¦³çããã¯ã¯ããã©ã¼"
-"ãã³ã¹ã®è¦³ç¹ãããæé©ã§ãããããã«åé¢ã¤ã³ã¹ã¿ã³ã¹ã¸ã®ä¿®æ£ ï¼ã¤ã¾ã "
+"Hibernate ã§æ¥½è¦³çããã¯æ¦ç¥ã使ããªãããã¼ã¸ã§ã³/ã¿ã¤ã ã¹ã¿ã³ãã«ã©ã ã使ã"
+"ãã¨ã <emphasis>é常ã«</emphasis> å¼·ããå§ããã¾ããæ¥½è¦³çããã¯ã¯ããã©ã¼ã"
+"ã³ã¹ã®è¦³ç¹ãããæé©ã§ãããããã«åé¢ã¤ã³ã¹ã¿ã³ã¹ã¸ã®ä¿®æ£ ï¼ã¤ã¾ã "
"<literal>Session.marge()</literal> ã使ãããã¨ãï¼ ãæ£ç¢ºã«æ±ããã¨ã®ã§ãã"
"å¯ä¸ã®æ¦ç¥ã§ãããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
"mapping. This is transparent at the database level, although some DBMS do "
@@ -904,53 +701,32 @@
"schema). In this case, you can map an immutable and read-only entity to a "
"given SQL subselect expression:"
msgstr ""
-"Hibernateã®ãããã³ã°ã«ã¨ã£ã¦ãã¥ã¼ã¨æ®éã®ãã¼ãã«ã®éã«éãã¯ãªãã ãã¼ã¿"
-"ãã¼ã¹ã¬ãã«ã§ã¯ééçã§ã ï¼ãã ããã¥ã¼ãå®å
¨ã«ã¯ãµãã¼ããã¦ããªãDBMSãã"
-"ãã¾ãã ç¹ã«ãæ´æ°ã®ãããã¥ã¼ã«å¯¾ãã¦ã¯ããã§ãï¼ã ãã¥ã¼ã使ãããã¦ãã"
-"ãã¼ã¿ãã¼ã¹ã§ä½æã§ããªããã¨ãããã¾ã ï¼ä¾ãã°ãã¬ã¬ã·ã¼ã¹ãã¼ãã®å ´"
-"åï¼ã ãã®å ´åã«ã¯ãä¸å¤ãã¤èªã¿åãå°ç¨ã®ã¨ã³ãã£ãã£ã«ä¸ããããSQLã®å¯å"
-"åãæããããã§ãã¾ãã"
+"Hibernate ã®ãããã³ã°ã«ã¨ã£ã¦ãã¥ã¼ã¨æ®éã®ãã¼ãã«ã®éã«éãã¯ãªãããã¼ã¿"
+"ãã¼ã¹ã¬ãã«ã§ã¯ééçã§ãï¼ãã ããã¥ã¼ãå®å
¨ã«ã¯ãµãã¼ããã¦ããªã DBMS ã"
+"ããã¾ããç¹ã«ãæ´æ°ã®ãããã¥ã¼ã«å¯¾ãã¦ã¯ããã§ãï¼ããã¥ã¼ã使ãããã¦ãã"
+"ãã¼ã¿ãã¼ã¹ã§ä½æã§ããªããã¨ãããã¾ãï¼ä¾ãã°ãã¬ã¬ã·ã¼ã¹ãã¼ãã®å ´åï¼ã"
+"ãã®å ´åã«ã¯ãä¸å¤ãã¤èªã¿åãå°ç¨ã®ã¨ã³ãã£ãã£ã«ä¸ãããã SQL ã®å¯ååãæ"
+"ããããã§ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:478
-#, fuzzy, no-c-format
-msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
"happens correctly and that queries against the derived entity do not return "
"stale data. The <literal><subselect></literal> is available both as an "
"attribute and a nested mapping element."
msgstr ""
-"ãã¼ãã«ããã®ã¨ã³ãã£ãã£ã¨åæããããã«å®ç¾©ãã¦ãã ããã ãªã¼ããã©ãã·ã¥"
-"ã確å®ã«èµ·ããããã«ãã¾ãå°åºã¨ã³ãã£ãã£ã«å¯¾ããã¯ã¨ãªãå¤ããã¼ã¿ã è¿ããª"
+"ãã¼ãã«ããã®ã¨ã³ãã£ãã£ã¨åæããããã«å®ç¾©ãã¦ãã ããããªã¼ããã©ãã·ã¥"
+"ã確å®ã«èµ·ããããã«ãã¾ãå°åºã¨ã³ãã£ãã£ã«å¯¾ããã¯ã¨ãªãå¤ããã¼ã¿ãè¿ããª"
"ãããã«ããããã§ãã <literal><subselect></literal> ã¯å±æ§ã¨ãã¹ãã"
"ããããã³ã°å±æ§ã®ã©ã¡ãã§ãå©ç¨ã§ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:488
-#, no-c-format
-msgid "<title>id</title>"
-msgstr ""
+#, fuzzy, no-c-format
+msgid "id"
+msgstr "uuid"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -960,43 +736,25 @@
"column."
msgstr ""
"ããããããã¯ã©ã¹ã¯ãã¼ã¿ãã¼ã¹ãã¼ãã«ã®ä¸»ãã¼ã«ã©ã ãå®ç¾© <emphasis>ããªã"
-"ãã°ãªãã¾ãã</emphasis> ã ã»ã¨ãã©ã®ã¯ã©ã¹ã«ã¯ã¤ã³ã¹ã¿ã³ã¹ã®ã¦ãã¼ã¯ãªèå¥"
-"åãä¿æããJavaBeansã¹ã¿ã¤ã«ã®ããããã£ãããã¾ãã <literal><id></"
-"literal> è¦ç´ ã¯ããã®ããããã£ãã主ãã¼ã«ã©ã ã¸ã®ãããã³ã°ãå®ç¾©ãã¾ãã"
+"ãã°ãªãã¾ãã</emphasis> ãã»ã¨ãã©ã®ã¯ã©ã¹ã«ã¯ã¤ã³ã¹ã¿ã³ã¹ã®ã¦ãã¼ã¯ãªèå¥"
+"åãä¿æãã JavaBeans ã¹ã¿ã¤ã«ã®ããããã£ãæã£ã¦ãã¾ãã <literal><"
+"id></literal> è¦ç´ ã¯ããã®ããããã£ãã主ãã¼ã«ã©ã ã¸ã®ãããã³ã°ãå®ç¾©ã"
+"ã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:505
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:508
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the name of the identifier property."
msgstr "<literal>name</literal>ï¼ãªãã·ã§ã³ï¼ï¼èå¥åããããã£ã®ååã"
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
-msgstr "<literal>type</literal>ï¼ãªãã·ã§ã³ï¼ï¼Hibernateã®åã示ãååã"
+msgstr "<literal>type</literal>ï¼ãªãã·ã§ã³ï¼ï¼ Hibernate ã®åã示ãååã"
#. Tag: para
-#: basic_mapping.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the primary key column."
@@ -1005,57 +763,29 @@
"ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:524
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
"value): an identifier property value that indicates an instance is newly "
"instantiated (unsaved), distinguishing it from detached instances that were "
"saved or loaded in a previous session."
msgstr ""
-"<literal>unsaved-value</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã®å¤ã¯sensibleï¼ï¼ "
-"ã¤ã³ã¹ã¿ã³ã¹ãæ°ããã¤ã³ã¹ã¿ã³ã¹åããã ï¼ã»ã¼ãããã¦ããªãï¼ãã¨ã示ããè"
-"å¥åããããã£ã®å¤ã 以åã®Sessionã§ã»ã¼ãã¾ãã¯ãã¼ãããã䏿çã¤ã³ã¹ã¿ã³"
-"ã¹ã¨åºå¥ãããã㫠使ãã¾ãã"
+"<literal>unsaved-value</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã®å¤ã¯ "
+"sensible ï¼ï¼ ã¤ã³ã¹ã¿ã³ã¹ãæ°ããã¤ã³ã¹ã¿ã³ã¹åããã ï¼ã»ã¼ãããã¦ããªãï¼"
+"ãã¨ã示ããèå¥åããããã£ã®å¤ã以åã® Session ã§ã»ã¼ãã¾ãã¯ãã¼ããããå"
+"é¢ã¤ã³ã¹ã¿ã³ã¹ã¨åºå¥ããããã«ä½¿ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:532
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing the property "
"value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã¢ã¯ã»ã¹ããããã«Hibernateãä½¿ãæ¦ç¥ã§ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ): Hibernateãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã"
+"literal> ): Hibernate ãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã"
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
@@ -1065,35 +795,31 @@
"ã¨ã¿ãªããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
"Hibernate3."
msgstr ""
-"<literal>unsaved-value</literal> 屿§ã¯Hibernate3ã§ã¯ã»ã¨ãã©ã®å ´åãå¿
è¦ã§ã¯"
-"ããã¾ããã"
+"<literal>unsaved-value</literal> 屿§ã¯ Hibernate3 ã§ã¯ã»ã¨ãã©ã®å ´åãå¿
è¦ã§"
+"ã¯ããã¾ããã"
#. Tag: para
-#: basic_mapping.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
"that allows access to legacy data with composite keys. Its use is strongly "
"discouraged for anything else."
msgstr ""
"è¤åãã¼ãæã¤ã¬ã¬ã·ã¼ãã¼ã¿ã«ã¢ã¯ã»ã¹ã§ããããã«ã <literal><composite-"
-"id></literal> ã¨ãã代æ¿ã®ãããã³ã°å®ç¾©ãããã¾ãã ãããä»ã®ç¨éã¸ã®ä½¿"
-"ç¨ã¯å
¨ãããããã§ãã¾ããã"
+"id></literal> ã¨ãã代æ¿ã®ãããã³ã°å®ç¾©ãããã¾ãããããä»ã®ç¨éã¸ã®ä½¿ç¨"
+"ã¯å
¨ãããããã§ãã¾ããã"
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
msgstr "ã¸ã§ãã¬ã¼ã¿"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1102,47 +828,32 @@
"generator instance, they are passed using the <literal><param></"
"literal> element."
msgstr ""
-"ãªãã·ã§ã³ã® <literal><generator></literal> åè¦ç´ ã¯ã æ°¸ç¶ã¯ã©ã¹ã®ã¤ã³"
-"ã¹ã¿ã³ã¹ã®ã¦ãã¼ã¯ãªèå¥åãçæããããã«ä½¿ããJavaã¯ã©ã¹ãæå®ãã¾ãã ã¸ã§"
-"ãã¬ã¼ã¿ã¤ã³ã¹ã¿ã³ã¹ã®è¨å®ããããã¯åæåã«ãã©ã¡ã¼ã¿ãå¿
è¦ã§ããã°ã"
+"ãªãã·ã§ã³ã® <literal><generator></literal> åè¦ç´ ã¯ãæ°¸ç¶ã¯ã©ã¹ã®ã¤ã³"
+"ã¹ã¿ã³ã¹ã®ã¦ãã¼ã¯ãªèå¥åãçæããããã«ä½¿ãã Java ã¯ã©ã¹ãæå®ãã¾ãã"
+"ã¸ã§ãã¬ã¼ã¿ã¤ã³ã¹ã¿ã³ã¹ã®è¨å®ããããã¯åæåã«ãã©ã¡ã¼ã¿ãå¿
è¦ã§ããã°ã "
"<literal><param></literal> è¦ç´ ã使ã£ã¦æ¸¡ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:564
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:566
-#, fuzzy, no-c-format
-msgid ""
"All generators implement the interface <literal>org.hibernate.id."
"IdentifierGenerator</literal>. This is a very simple interface. Some "
"applications can choose to provide their own specialized implementations, "
"however, Hibernate provides a range of built-in implementations. The "
"shortcut names for the built-in generators are as follows:"
msgstr ""
-"ãã¹ã¦ã®ã¸ã§ãã¬ã¼ã¿ã¯ãã¤ã³ã¿ã¼ãã§ã¤ã¹ <literal>org.hibernate.id."
-"IdentifierGenerator</literal> ãå®è£
ãã¾ãã ããã¯ã¨ã¦ãåç´ãªã¤ã³ã¿ã¼ãã§ã¤"
-"ã¹ãªã®ã§ãç¹å¥ãªå®è£
ãç¬èªã«ç¨æããã¢ããªã±ã¼ã·ã§ã³ãããããããã¾ããã ã"
-"ããHibernateã¯çµã¿è¾¼ã¿ã®å®è£
ãããã¤ãç¨æãã¦ãã¾ãã çµã¿è¾¼ã¿ã®ã¸ã§ãã¬ã¼"
-"ã¿ã«ã¯ä»¥ä¸ã®ã·ã§ã¼ãã«ããåãããã¾ãï¼ <placeholder-1/>"
+"ãã¹ã¦ã®ã¸ã§ãã¬ã¼ã¿ã¯ã <literal>org.hibernate.id.IdentifierGenerator</"
+"literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ãã¾ããããã¯ã¨ã¦ãåç´ãªã¤ã³ã¿ã¼ãã§ã¼ã¹ãªã®"
+"ã§ãç¹å¥ãªå®è£
ãç¬èªã«ç¨æããã¢ããªã±ã¼ã·ã§ã³ãããããããã¾ãããããã "
+"Hibernate ã¯çµã¿è¾¼ã¿ã®å®è£
ãããã¤ãç¨æãã¦ãã¾ããçµã¿è¾¼ã¿ã®ã¸ã§ãã¬ã¼ã¿ã«"
+"ã¯ä»¥ä¸ã®ã·ã§ã¼ãã«ããåãããã¾ãï¼"
-#. Tag: literal
-#: basic_mapping.xml:574
-#, no-c-format
-msgid "increment"
-msgstr "increment"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>increment</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1151,54 +862,48 @@
"cluster.</emphasis>"
msgstr ""
"<literal>long</literal> , <literal>short</literal> , <literal>int</literal> "
-"åã®èå¥åãçæãã¾ãã ãããã¯ä»ã®ããã»ã¹ãåããã¼ãã«ã«ãã¼ã¿ãæ¿å
¥ããª"
+"åã®èå¥åãçæãã¾ãããããã¯ä»ã®ããã»ã¹ãåããã¼ãã«ã«ãã¼ã¿ãæ¿å
¥ããª"
"ãã¨ãã ãã¦ãã¼ã¯ã§ãã <emphasis>ã¯ã©ã¹ã¿å
ã§ã¯ä½¿ããªãã§ãã ãã</"
"emphasis> ã"
-#. Tag: literal
-#: basic_mapping.xml:585
-#, no-c-format
-msgid "identity"
-msgstr "identity"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
"HypersonicSQL. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>."
msgstr ""
-"DB2, MySQL, MS SQL Server, Sybase, HypersonicSQLã®èå¥åã«ã©ã ã ãµãã¼ããã¾"
-"ãã è¿ãããèå¥åã®å㯠<literal>long</literal> , <literal>short</"
+"DB2, MySQL, MS SQL Server, Sybase, HypersonicSQL ã®èå¥åã«ã©ã ããµãã¼ããã¾"
+"ããè¿ãããèå¥åã®å㯠<literal>long</literal> , <literal>short</"
"literal> , <literal>int</literal> ã®ããããã§ãã"
-#. Tag: literal
-#: basic_mapping.xml:595
-#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>sequence</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
"Interbase. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>"
msgstr ""
-"DB2, PostgreSQL, Oracle, SAP DB, McKoiã®ã·ã¼ã±ã³ã¹ããInterbaseã®ã¸ã§ãã¬ã¼ã¿"
-"ã使ç¨ãã¾ãã è¿ãããèå¥åã®å㯠<literal>long</literal> , "
+"DB2, PostgreSQL, Oracle, SAP DB, McKoi ã®ã·ã¼ã±ã³ã¹ãã Interbase ã®ã¸ã§ã"
+"ã¬ã¼ã¿ã使ç¨ãã¾ããè¿ãããèå¥åã®å㯠<literal>long</literal> , "
"<literal>short</literal> , <literal>int</literal> ã®ããããã§ãã"
-#. Tag: literal
-#: basic_mapping.xml:605
-#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>hilo</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1209,19 +914,17 @@
"database."
msgstr ""
"<literal>long</literal> , <literal>short</literal> , <literal>int</literal> "
-"åã®èå¥åãå¹ççã«çæããhi/loã¢ã«ã´ãªãºã ã使ãã¾ãã hiå¤ã®ã½ã¼ã¹ã¨ã"
+"åã®èå¥åãå¹ççã«çæãã hi/lo ã¢ã«ã´ãªãºã ã使ãã¾ãã hi å¤ã®ã½ã¼ã¹ã¨ã"
"ã¦ããã¼ãã«ã¨ã«ã©ã ãä¸ãã¾ã(ããã©ã«ãã§ã¯ãããã "
"<literal>hibernate_unique_key</literal> 㨠<literal>next_hi</literal> )ã hi/"
-"loã¢ã«ã´ãªãºã ã¯ç¹å®ã®ãã¼ã¿ãã¼ã¹ã«å¯¾ãã¦ã®ã¿ã¦ãã¼ã¯ãªèå¥åãçæãã¾ãã"
+"lo ã¢ã«ã´ãªãºã ã¯ç¹å®ã®ãã¼ã¿ãã¼ã¹ã«å¯¾ãã¦ã®ã¿ã¦ãã¼ã¯ãªèå¥åãçæãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:617
-#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1229,117 +932,104 @@
"given a named database sequence."
msgstr ""
"<literal>long</literal> , <literal>short</literal> , <literal>int</literal> "
-"åã®èå¥åãå¹ççã«çæããhi/loã¢ã«ã´ãªãºã ã使ãã¾ãã æå®ããããã¼ã¿"
+"åã®èå¥åãå¹ççã«çæãã hi/lo ã¢ã«ã´ãªãºã ã使ãã¾ããæå®ããããã¼ã¿"
"ãã¼ã¹ã·ã¼ã±ã³ã¹ãä¸ãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:627
-#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>uuid</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
"are unique within a network (the IP address is used). The UUID is encoded as "
"a string of 32 hexadecimal digits in length."
msgstr ""
-"(IPã¢ãã¬ã¹ã使ç¨ããã)ãããã¯ã¼ã¯å
ã§ã¦ãã¼ã¯ãªæåååã®èå¥åãçæãã"
-"ããã«ã 128ãããã®UUIDã¢ã«ã´ãªãºã ã使ç¨ãã¾ããUUIDã¯é·ã32ã®16鲿°åã®æ"
-"ååã¨ãã¦ã¨ã³ã³ã¼ãããã¾ãã"
+"( IP ã¢ãã¬ã¹ã使ç¨ããã)ãããã¯ã¼ã¯å
ã§ã¦ãã¼ã¯ãªæåååã®èå¥åãçæã"
+"ãããã«ã 128 ãããã® UUID ã¢ã«ã´ãªãºã ã使ç¨ãã¾ãã UUID ã¯é·ã 32 ã® 16 "
+"鲿°åã®æååã¨ãã¦ã¨ã³ã³ã¼ãããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:637
-#, no-c-format
-msgid "guid"
-msgstr "guid"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>guid</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
-msgstr "MS SQLãµã¼ãã¨MySQLã§ãã¼ã¿ãã¼ã¹ãçæããGUIDæååã使ç¨ãã¾ãã"
+msgstr ""
+"MS SQL ãµã¼ãã¼ã¨ MySQL ã§ãã¼ã¿ãã¼ã¹ãçæãã GUID æååã使ç¨ãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:645
-#, no-c-format
-msgid "native"
-msgstr "native"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>native</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:647
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
"<literal>hilo</literal> depending upon the capabilities of the underlying "
"database."
msgstr ""
-"使ç¨ãããã¼ã¿ãã¼ã¹ã®æ§è½ã«ãã <literal>identity</literal> , "
-"<literal>sequence</literal> , <literal>hilo</literal> ã®ãããããé¸ã°ãã¾"
+"使ç¨ãããã¼ã¿ãã¼ã¹ã®æ§è½ã«ãã <literal>identity</literal> ã "
+"<literal>sequence</literal> ã <literal>hilo</literal> ã®ãããããé¸ã°ãã¾"
"ãã"
-#. Tag: literal
-#: basic_mapping.xml:655
-#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>assigned</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:657
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
"()</literal> is called. This is the default strategy if no <literal><"
"generator></literal> element is specified."
msgstr ""
-"<literal>save()</literal> ãå¼ã°ããåã«ã ã¢ããªã±ã¼ã·ã§ã³ããªãã¸ã§ã¯ãã«è"
-"å¥åã代å
¥ã§ããããã«ãã¾ãã <literal><generator></literal> ãæå®ã"
-"ãã¦ããªããã°ããããããã©ã«ãã®æ¦ç¥ã«ãªãã¾ãã"
+"<literal>save()</literal> ãå¼ã°ããåã«ãã¢ããªã±ã¼ã·ã§ã³ããªãã¸ã§ã¯ãã«è"
+"å¥åã代å
¥ã§ããããã«ãã¾ãã <literal><generator></literal> è¦ç´ ãæ"
+"å®ããã¦ããªããã°ããããããã©ã«ãã®æ¦ç¥ã«ãªãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:665
-#, no-c-format
-msgid "select"
-msgstr "select"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>select</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
"row by some unique key and retrieving the primary key value."
msgstr ""
-"ããã¦ãã¼ã¯ãã¼ã«ããè¡ã®é¸æã¨ä¸»ãã¼ã®å¤ã®å¾©å
ã«ããã ãã¼ã¿ãã¼ã¹ããªã¬ã"
+"ããã¦ãã¼ã¯ãã¼ã«ããè¡ã®é¸æã¨ä¸»ãã¼ã®å¤ã®å¾©å
ã«ããããã¼ã¿ãã¼ã¹ããªã¬ã"
"å²ãå½ã¦ã主ãã¼ãåå¾ãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:674
-#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>foreign</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one></literal> primary key "
"association."
msgstr ""
-"ä»ã®é¢é£ãªãã¸ã§ã¯ãã®èå¥åã使ãã¾ãã æ®éã¯ã<literal><one-to-one>"
+"ä»ã®é¢é£ãªãã¸ã§ã¯ãã®èå¥åã使ãã¾ããæ®éã¯ã <literal><one-to-one>"
"</literal> 主ãã¼é¢é£ã¨çµã¿åããã¦ä½¿ãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
-msgstr "sequence-identity"
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
"for the actual value generation, but combines this with JDBC3 "
@@ -1348,22 +1038,20 @@
"drivers targeted for JDK 1.4. Comments on these insert statements are "
"disabled due to a bug in the Oracle drivers."
msgstr ""
-"a specialized sequence generation strategy which utilizes a database "
-"sequence for the actual value generation, but combines this with JDBC3 "
-"getGeneratedKeys to actually return the generated identifier value as part "
-"of the insert statement execution. This strategy is only known to be "
-"supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on "
-"these insert statements are disabled due to a bug in the Oracle drivers."
+"å®éã®å¤ã®çæã®ããã«ãã¼ã¿ãã¼ã¹ã·ã¼ã±ã³ã¹ã使ç¨ããç¹å¥ãªã·ã¼ã±ã³ã¹çææ¦"
+"ç¥ã§ããã JDBC3 getGeneratedKeys ã¨çµã³ã¤ãã¦ã INSERT æã®å®è¡ã®ä¸é¨ã¨ãã¦"
+"çæãããèå¥åã®å¤ãå®éã«è¿ãã¾ãããã®æ¦ç¥ã¯ JDK 1.4 ã対象ã¨ãã Oracle "
+"10g ã®ãã©ã¤ãã§ãµãã¼ãããã¦ãããã¨ãç¥ããã¦ãã¾ãããããã® INSERT æã§"
+"ã®ã³ã¡ã³ã㯠Oracle ã®ãã©ã¤ãã®ãã°ã«ããç¡å¹ã«ããã¦ãããã¨ã«æ³¨æãã¦ãã "
+"ããã"
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "Hi/lo ã¢ã«ã´ãªãºã "
#. Tag: para
-#: basic_mapping.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
"provide two alternate implementations of the hi/lo algorithm. The first "
@@ -1371,82 +1059,52 @@
"available \"hi\" value. Where supported, the second uses an Oracle-style "
"sequence."
msgstr ""
-"<literal>hilo</literal> 㨠<literal>seqhilo</literal> ã¸ã§ãã¬ã¼ã¿ã¯ã èå¥å"
-"çæã®ä»£è¡¨çãªã¢ããã¼ãã§ããhi/loã¢ã«ã´ãªãºã ã®2ã¤ã®ä»£æ¿å®è£
ãæä¾ãã¾ãã "
-"1çªç®ã®å®è£
ã¯ã次åã«å©ç¨ããã\"hi\"å¤ãä¿æãããç¹å¥ãªããã¼ã¿ãã¼ã¹ãã¼ã"
-"ã«ã å¿
è¦ã¨ãã¾ãã 2çªç®ã®å®è£
ã¯ãOracleã¹ã¿ã¤ã«ã®ã·ã¼ã±ã³ã¹ã使ãã¾ãï¼ãµ"
-"ãã¼ãããã¦ããå ´åï¼ã"
+"<literal>hilo</literal> 㨠<literal>seqhilo</literal> ã¸ã§ãã¬ã¼ã¿ã¯ãèå¥å"
+"çæã®ä»£è¡¨çãªã¢ããã¼ãã§ãã hi/lo ã¢ã«ã´ãªãºã ã®2ã¤ã®ä»£æ¿å®è£
ãæä¾ãã¾"
+"ãã1çªç®ã®å®è£
ã¯ã次åã«å©ç¨ããã \"hi\" å¤ãä¿æãããç¹å¥ãªããã¼ã¿ãã¼ã¹"
+"ãã¼ãã«ãå¿
è¦ã¨ãã¾ãã2çªç®ã®å®è£
ã¯ã Oracle ã¹ã¿ã¤ã«ã®ã·ã¼ã±ã³ã¹ã使ãã¾ã"
+"ï¼ãµãã¼ãããã¦ããå ´åï¼ã"
-#. Tag: programlisting
-#: basic_mapping.xml:710
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:714
-#, fuzzy, no-c-format
-msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
"own <literal>Connection</literal> to Hibernate. When Hibernate uses an "
"application server datasource to obtain connections enlisted with JTA, you "
"must configure the <literal>hibernate.transaction.manager_lookup_class</"
"literal>."
msgstr ""
-"æ®å¿µãªããHibernateã¸ã®ç¬èªã® <literal>Connection</literal> ãæä¾ããã¨ãã«"
-"ã¯ã<literal>hilo</literal> ã使ãã¾ããã HibernateãJTAã§ãªã¹ãããã¦ããæ¥"
-"ç¶ãåå¾ããããã«ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®ãã¼ã¿ã½ã¼ã¹ã使ç¨ãã¦ããã¨ãã«"
-"ã¯ã <literal>hibernate.transaction.manager_lookup_class</literal> ãé©åã«è¨"
-"å®ããªããã°ãªãã¾ããã"
+"æ®å¿µãªãã Hibernate ã¸ã®ç¬èªã® <literal>Connection</literal> ãæä¾ããã¨ã"
+"ã«ã¯ã <literal>hilo</literal> ã使ãã¾ããã Hibernate ã JTA ã§ãªã¹ãããã¦"
+"ããæ¥ç¶ãåå¾ããããã«ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®ãã¼ã¿ã½ã¼ã¹ã使ç¨ãã¦ãã"
+"ã¨ãã«ã¯ã <literal>hibernate.transaction.manager_lookup_class</literal> ãé©"
+"åã«è¨å®ããªããã°ãªãã¾ããã"
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
msgstr "UUID ã¢ã«ã´ãªãºã "
#. Tag: para
-#: basic_mapping.xml:724
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
"quarter second, system time and a counter value that is unique within the "
"JVM. It is not possible to obtain a MAC address or memory address from Java "
"code, so this is the best option without using JNI."
msgstr ""
-"UUIDã«ã¯ä»¥ä¸ã®ãã®ãå«ã¾ãã¾ãï¼ IPã¢ãã¬ã¹ãJVMã®ã¹ã¿ã¼ãã¢ããã¿ã¤ã ï¼4åã®"
-"1ç§ã®æ£ç¢ºãï¼ã ã·ã¹ãã æéãï¼JVMã«å¯¾ãã¦ã¦ãã¼ã¯ãªï¼ã«ã¦ã³ã¿å¤ã Javaã³ã¼"
-"ãããMACã¢ãã¬ã¹ãã¡ã¢ãªã¢ãã¬ã¹ãåå¾ãããã¨ã¯ã§ããªãã®ã§ã JNIã使ããªã"
-"ã¨ãã®æè¯ã®æ¹æ³ã§ãã"
+"UUID ã«ã¯ä»¥ä¸ã®ãã®ãå«ã¾ãã¾ãï¼ IP ã¢ãã¬ã¹ã JVM ã®ã¹ã¿ã¼ãã¢ããã¿ã¤ã ï¼4"
+"åã®1ç§ã®æ£ç¢ºãï¼ãã·ã¹ãã æéãï¼ JVM ã«å¯¾ãã¦ã¦ãã¼ã¯ãªï¼ã«ã¦ã³ã¿å¤ã "
+"Java ã³ã¼ããã MAC ã¢ãã¬ã¹ãã¡ã¢ãªã¢ãã¬ã¹ãåå¾ãããã¨ã¯ã§ããªãã®ã§ã "
+"JNI ã使ããªãã¨ãã®æè¯ã®æ¹æ³ã§ãã"
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr "èå¥åã«ã©ã ã¨ã·ã¼ã±ã³ã¹"
#. Tag: para
-#: basic_mapping.xml:734
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity</literal> key generation. For databases that "
@@ -1455,55 +1113,31 @@
"strategies require two SQL queries to insert a new object. For example:"
msgstr ""
"èå¥åã«ã©ã ããµãã¼ããã¦ãããã¼ã¿ãã¼ã¹ï¼DB2, MySQL, Sybase, MS SQLï¼ã§"
-"ã¯ã <literal>identity</literal> ãã¼çæã使ãã¾ãã ã·ã¼ã±ã³ã¹ããµãã¼ãã"
-"ããã¼ã¿ãã¼ã¹ï¼DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DBï¼ã§ã¯ã "
-"<literal>sequence</literal> ã¹ã¿ã¤ã«ã®ãã¼çæã使ãã¾ãã ã©ã¡ãã®æ¦ç¥ããæ°"
-"ãããªãã¸ã§ã¯ããæ¿å
¥ããããã«ãSQLã¯ã¨ãªã2ã¤å¿
è¦ã¨ãã¾ãã"
+"ã¯ã <literal>identity</literal> ãã¼çæã使ãã¾ããã·ã¼ã±ã³ã¹ããµãã¼ããã"
+"ãã¼ã¿ãã¼ã¹ï¼DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DBï¼ã§ã¯ã "
+"<literal>sequence</literal> ã¹ã¿ã¤ã«ã®ãã¼çæã使ãã¾ããã©ã¡ãã®æ¦ç¥ããæ°"
+"ãããªãã¸ã§ã¯ããæ¿å
¥ããããã«ã SQL ã¯ã¨ãªã2ã¤å¿
è¦ã¨ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:742
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:746
-#, fuzzy, no-c-format
-msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</"
"literal> strategies."
msgstr ""
"ã¯ãã¹ãã©ãããã©ã¼ã ã®éçºã§ã¯ã<literal>native</literal> æ¦ç¥ã¯ "
-"<literal>identity</literal> , <literal>sequence</literal> , <literal>hilo</"
-"literal> æ¦ç¥ã®ä¸ãã1ã¤ã鏿ãã¾ããã ããã¯ä½¿ç¨ãã¦ãããã¼ã¿ãã¼ã¹ã®è½å"
+"<literal>identity</literal> ã <literal>sequence</literal> ã <literal>hilo</"
+"literal> æ¦ç¥ã®ä¸ãã1ã¤ã鏿ãã¾ãããããã¯ä½¿ç¨ãã¦ãããã¼ã¿ãã¼ã¹ã®è½å"
"ã«ä¾åãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr "èå¥åã®å²ãå½ã¦"
#. Tag: para
-#: basic_mapping.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
"Hibernate generate them, you can use the <literal>assigned</literal> "
@@ -1513,16 +1147,15 @@
"behavior if you do not specify a <literal><generator></literal> "
"element."
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã«èå¥åãå²ãå½ã¦ããããã®ã§ããã°(Hibernateãçæãããã®"
-"ã§ã¯ãªãï¼ã <literal>assigned</literal> ã¸ã§ãã¬ã¼ã¿ã使ããã¨ãã§ãã¾ãã "
+"ã¢ããªã±ã¼ã·ã§ã³ã«èå¥åãå²ãå½ã¦ããããã®ã§ããã°( Hibernate ãçæããã"
+"ã®ã§ã¯ãªãï¼ã <literal>assigned</literal> ã¸ã§ãã¬ã¼ã¿ã使ããã¨ãã§ãã¾ãã"
"ãã®ç¹å¥ãªã¸ã§ãã¬ã¼ã¿ã¯ããã§ã«ãªãã¸ã§ã¯ãã®èå¥åããããã£ã«ä»£å
¥ãããå¤"
-"ã èå¥åã«ä½¿ãã¾ãããã®ã¸ã§ãã¬ã¼ã¿ã¯ä¸»ãã¼ã代çãã¼ã®ä»£ããã«èªç¶ãã¼ã§ã"
+"ãèå¥åã«ä½¿ãã¾ãããã®ã¸ã§ãã¬ã¼ã¿ã¯ä¸»ãã¼ã代çãã¼ã®ä»£ããã«èªç¶ãã¼ã§ã"
"ãå ´åã«ä½¿ç¨ãã¾ãã <literal><generator></literal> è¦ç´ ãæå®ããªãå ´"
"åã®ããã©ã«ãã®åä½ã«ãªãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go "
@@ -1530,62 +1163,46 @@
"there is a version or timestamp property, or you define <literal>Interceptor."
"isUnsaved()</literal>."
msgstr ""
-"<literal>assigned</literal> ã¸ã§ãã¬ã¼ã¿ã鏿ããã¨ã Hibernate㯠"
-"<literal>unsaved-value=\"undefined\"</literal> ã使ç¨ãã¾ãã ããã¦ããã¼"
-"ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ããªãå ´åã <literal>Interceptor.isUnsaved"
-"()</literal> ãå®ç¾©ããªãã£ãå ´åã«ã¯ãã¤ã³ã¹ã¿ã³ã¹ã䏿ç(transient)ãªãã®"
-"ã§ããã®ãã ã¾ãã¯ã»ãã·ã§ã³ããåé¢(detached)ãããã®ãã©ãããæ±ºãããã"
-"ã«ããã¼ã¿ãã¼ã¹ã調ã¹ã¾ãã"
+"<literal>assigned</literal> ã¸ã§ãã¬ã¼ã¿ã鏿ããã¨ã Hibernate 㯠"
+"<literal>unsaved-value=\"undefined\"</literal> ã使ãã¾ããããã¦ããã¼ã¸ã§ã³"
+"ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ããªãå ´åã <literal>Interceptor.isUnsaved()</"
+"literal> ãå®ç¾©ããªãã£ãå ´åã«ã¯ãã¤ã³ã¹ã¿ã³ã¹ã䏿ç(transient)ãªãã®ã§ã"
+"ãã®ããã¾ãã¯ã»ãã·ã§ã³ããåé¢(detached)ãããã®ãã©ãããæ±ºããããã«ã"
+"ãã¼ã¿ãã¼ã¹ã調ã¹ã¾ãã"
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr "ããªã¬ã«ããå²ãå½ã¦ããã主ãã¼"
#. Tag: para
-#: basic_mapping.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
msgstr ""
-"ã¬ã¬ã·ã¼ã¹ãã¼ãã®ããã«ã®ã¿æå®ãã¾ã(Hibernateã¯ããªã¬ã使ã£ã¦DDLãçæãã¾"
-"ãã)ã"
+"ã¬ã¬ã·ã¼ã¹ãã¼ãã®ããã«ã®ã¿æå®ãã¾ã( Hibernate ã¯ããªã¬ã使ã£ã¦ DDL ãçæ"
+"ãã¾ãã)ã"
-#. Tag: programlisting
-#: basic_mapping.xml:779
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:781
-#, fuzzy, no-c-format
-msgid ""
"In the above example, there is a unique valued property named "
"<literal>socialSecurityNumber</literal>. It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id</literal>, whose "
"value is generated by a trigger."
msgstr ""
-"ä¸ã®ä¾ã®ä¸ã§ãã¯ã©ã¹ã§èªç¶ãã¼ã¨ãã¦å®ç¾©ããã "
+"ä¸è¨ã®ä¾ã®ä¸ã§ãã¯ã©ã¹ã§èªç¶ãã¼ã¨ãã¦å®ç¾©ããã "
"<literal>socialSecurityNumber</literal> ã¨ããååã®ã¦ãã¼ã¯ãªå¤ã®ããããã£"
-"ã¨ã å¤ãããªã¬ã«ããçæããã <literal>person_id</literal> ã¨ããååã®ä»£ç"
+"ã¨ãå¤ãããªã¬ã«ããçæããã <literal>person_id</literal> ã¨ããååã®ä»£ç"
"ãã¼ãããã¾ãã"
#. Tag: title
-#: basic_mapping.xml:793
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Enhanced identifier generators"
-msgstr "Enhanced identifier generators"
+msgstr "èå¥åã® getter ã¡ã½ãã"
#. Tag: para
-#: basic_mapping.xml:795
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
"thinking of 2 different aspects of identifier generation. The first aspect "
@@ -1595,17 +1212,9 @@
"the named generators described above, starting in 3.3.x. However, they are "
"included in the current releases and can be referenced by FQN."
msgstr ""
-"Starting with release 3.2.3, there are 2 new generators which represent a re-"
-"thinking of 2 different aspects of identifier generation. The first aspect "
-"is database portability; the second is optimization (not having to query the "
-"database for every request for a new identifier value). These two new "
-"generators are intended to take the place of some of the named generators "
-"described above (starting in 3.3.x); however, they are included in the "
-"current releases and can be referenced by FQN."
#. Tag: para
-#: basic_mapping.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
"SequenceStyleGenerator</literal> which is intended, firstly, as a "
@@ -1624,100 +1233,68 @@
"with its table-based generators. This generator has a number of "
"configuration parameters:"
msgstr ""
-"The first of these new generators is <literal>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</literal> which is intended firstly as a replacement "
-"for the <literal>sequence</literal> generator and secondly as a better "
-"portability generator than <literal>native</literal> (because "
-"<literal>native</literal> (generally) chooses between <literal>identity</"
-"literal> and <literal>sequence</literal> which have largely different "
-"semantics which can cause subtle isssues in applications eyeing "
-"portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
-"literal> however achieves portability in a different manner. It chooses "
-"between using a table or a sequence in the database to store its "
-"incrementing values depending on the capabilities of the dialect being used. "
-"The difference between this and <literal>native</literal> is that table-"
-"based and sequence-based storage have the same exact semantic (in fact "
-"sequences are exactly what Hibernate tries to emmulate with its table-based "
-"generators). This generator has a number of configuration parameters: "
-"<placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:817
#, fuzzy, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
"<literal>hibernate_sequence</literal>): the name of the sequence or table to "
"be used."
msgstr ""
-"<literal>sequence_name</literal> (optional, defaults to "
-"<literal>hibernate_sequence</literal>): The name of the sequence (or table) "
-"to be used."
+"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>class</"
+"literal> ï¼ï¼ èå¥ã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:823
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
"literal>): the initial value to be retrieved from the sequence/table. In "
"sequence creation terms, this is analogous to the clause typically named "
"\"STARTS WITH\"."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the sequence/table. In "
-"sequence creation terms, this is analogous to the clause typical named "
-"\"STARTS WITH\"."
#. Tag: para
-#: basic_mapping.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): the value by which subsequent calls to the sequence/table should "
"differ. In sequence creation terms, this is analogous to the clause "
"typically named \"INCREMENT BY\"."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the sequence/table should "
-"differ. In sequence creation terms, this is analogous to the clause typical "
-"named \"INCREMENT BY\"."
#. Tag: para
-#: basic_mapping.xml:837
#, fuzzy, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
"literal>): should we force the use of a table as the backing structure even "
"though the dialect might support sequence?"
msgstr ""
-"<literal>force_table_use</literal> (optional, defaults to <literal>false</"
-"literal>): Should we force the use of a table as the backing structure even "
-"though the dialect might support sequence?"
+"<literal>force</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
+"literal> ï¼ï¼ ã«ã¼ãã¯ã©ã¹ã®ãã¹ã¦ã®ã¤ã³ã¹ã¿ã³ã¹ãæ¤ç´¢ããå ´åã§ãã£ã¦ãã "
+"Hibernate ã使ç¨ã§ããèå¥ã«ã©ã ã®æå®ããå¼·å¶ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:844
#, fuzzy, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
"literal>): only relevant for table structures, it is the name of the column "
"on the table which is used to hold the value."
msgstr ""
-"<literal>value_column</literal> (optional, defaults to <literal>next_val</"
-"literal>): Only relevant for table structures! The name of the column on the "
-"table which is used to hold the value."
+"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>class</"
+"literal> ï¼ï¼ èå¥ã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:851
#, fuzzy, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>cascade</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>none</"
-"literal> ï¼ï¼ ã«ã¹ã±ã¼ãã®ã¹ã¿ã¤ã«ã"
+"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>integer</"
+"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: para
-#: basic_mapping.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
"TableGenerator</literal>, which is intended, firstly, as a replacement for "
@@ -1730,148 +1307,109 @@
"multiple distinctly keyed rows. This generator has a number of configuration "
"parameters:"
msgstr ""
-"The second of these new generators is <literal>org.hibernate.id.enhanced."
-"TableGenerator</literal> which is intended firstly as a replacement for the "
-"<literal>table</literal> generator (although it actually functions much more "
-"like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>) and "
-"secondly as a re-implementation of <literal>org.hibernate.id."
-"MultipleHiLoPerTableGenerator</literal> utilizing the notion of pluggable "
-"optimiziers. Essentially this generator defines a table capable of holding a "
-"number of different increment values simultaneously by using multiple "
-"distinctly keyed rows. This generator has a number of configuration "
-"parameters: <placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:868
#, fuzzy, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
"<literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
-"<literal>table_name</literal> (optional, defaults to "
-"<literal>hibernate_sequences</literal>): The name of the table to be used."
+"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>integer</"
+"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: para
-#: basic_mapping.xml:874
#, fuzzy, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
"<literal>next_val</literal>): the name of the column on the table that is "
"used to hold the value."
msgstr ""
-"<literal>value_column_name</literal> (optional, defaults to "
-"<literal>next_val</literal>): The name of the column on the table which is "
-"used to hold the value."
+"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>class</"
+"literal> ï¼ï¼ èå¥ã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
"<literal>sequence_name</literal>): the name of the column on the table that "
"is used to hold the \"segment key\". This is the value which identifies "
"which increment value to use."
msgstr ""
-"<literal>segment_column_name</literal> (optional, defaults to "
-"<literal>sequence_name</literal>): The name of the column on the table which "
-"is used to hold the \"segement key\". This is the value which distinctly "
-"identifies which increment value to use."
#. Tag: para
-#: basic_mapping.xml:887
#, fuzzy, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
"literal>): The \"segment key\" value for the segment from which we want to "
"pull increment values for this generator."
msgstr ""
-"<literal>segment_value</literal> (optional, defaults to <literal>default</"
-"literal>): The \"segment key\" value for the segment from which we want to "
-"pull increment values for this generator."
+"<literal>access</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
+"literal> ): Hibernate ãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã"
#. Tag: para
-#: basic_mapping.xml:894
#, fuzzy, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
"<literal>255</literal>): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
-"<literal>segment_value_length</literal> (optional, defaults to <literal>255</"
-"literal>): Used for schema generation; the column size to create this "
-"segment key column."
+"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>class</"
+"literal> ï¼ï¼ èå¥ã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:900
#, fuzzy, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
"literal>): The initial value to be retrieved from the table."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the table."
+"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>integer</"
+"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: para
-#: basic_mapping.xml:906
#, fuzzy, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): The value by which subsequent calls to the table should differ."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the table should differ."
+"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>integer</"
+"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: para
-#: basic_mapping.xml:912
#, fuzzy, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>cascade</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>none</"
-"literal> ï¼ï¼ ã«ã¹ã±ã¼ãã®ã¹ã¿ã¤ã«ã"
+"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>integer</"
+"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: title
-#: basic_mapping.xml:922
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Identifier generator optimization"
-msgstr "Identifier generator optimization"
+msgstr "èå¥åã® getter ã¡ã½ãã"
#. Tag: para
-#: basic_mapping.xml:923
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
"inefficient for them to hit the database on each and every call to generate "
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
-"For identifier generators which store values in the database, it is "
-"inefficient for them to hit the database on each and every call to generate "
-"a new identifier value. Instead, you'd ideally want to group a bunch of them "
-"in memory and only hit the database when you have exhausted your in-memory "
-"value group. This is the role of the pluggable optimizers. Currently only "
-"the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced"
-"\"/> support this notion. <placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
"specified): this will not perform any optimizations and hit the database for "
"each and every request."
msgstr ""
-"<literal>none</literal> (generally this is the default if no optimizer was "
-"specified): This says to not perform any optimizations, and hit the database "
-"each and every request."
#. Tag: para
-#: basic_mapping.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
"retrieved values. The values from the database for this optimizer are "
@@ -1880,16 +1418,9 @@
"<literal>increment_size</literal> is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
-"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
-"retrieved values. The values from the database for this optimizer are "
-"expected to be sequential. The values retrieved from the database structure "
-"for this optimizer indicates the \"group number\"; the "
-"<literal>increment_size</literal> is multiplied by that value in memory to "
-"define a group \"hi value\"."
#. Tag: para
-#: basic_mapping.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
"optimizer attempts to minimize the number of hits to the database. Here, "
@@ -1898,66 +1429,28 @@
"memory grouping algorithm. Here, <literal>increment_size</literal> refers to "
"the values coming from the database."
msgstr ""
-"<literal>pooled</literal>: like was discussed for <literal>hilo</literal>, "
-"this optimizers attempts to minimize the number of hits to the database. "
-"Here, however, we simply store the starting value for the \"next group\" "
-"into the database structure rather than a sequential value in combination "
-"with an in-memory grouping algorithm. <literal>increment_size</literal> here "
-"refers to the values coming from the database."
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr "composite-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:963
-#, fuzzy, no-c-format
-msgid ""
"A table with a composite key can be mapped with multiple properties of the "
"class as identifier properties. The <literal><composite-id></literal> "
"element accepts <literal><key-property></literal> property mappings "
"and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-"è¤åãã¼ã®ãããã¼ãã«ã«å¯¾ãã èå¥åããããã£ã¨ãã¦ã¯ã©ã¹ã®è¤æ°ã®ããããã£"
+"è¤åãã¼ã®ãããã¼ãã«ã«å¯¾ããèå¥åããããã£ã¨ãã¦ã¯ã©ã¹ã®è¤æ°ã®ããããã£"
"ããããã³ã°ãããã¨ãã§ãã¾ãã <literal><composite-id></literal> è¦ç´ "
"ã¯ãåè¦ç´ ã¨ã㦠<literal><key-property></literal> ããããã£ãããã³ã°"
"㨠<literal><key-many-to-one></literal> ãããã³ã°ãåãå
¥ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:970
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:972
-#, fuzzy, no-c-format
-msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
"literal> and <literal>hashCode()</literal> to implement composite identifier "
"equality. It must also implement <literal>Serializable</literal>."
@@ -1968,8 +1461,7 @@
"ãã°ããã¾ããã"
#. Tag: para
-#: basic_mapping.xml:978
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
"identifier. There is no convenient \"handle\" other than the object itself. "
@@ -1979,15 +1471,14 @@
"<emphasis>embedded</emphasis> composite identifier, and discourage it for "
"serious applications."
msgstr ""
-"æ®å¿µãªããè¤åèå¥åã®ããã®ãã®æ¹æ³ã¯ã æ°¸ç¶ãªãã¸ã§ã¯ããèªèº«ã®èå¥åã§ãã"
-"ãã¨ãæå³ãã¦ãã¾ãã ãªãã¸ã§ã¯ãèªèº«ãèå¥åã¨ãã以ä¸ã®ä¾¿å©ãªãæ±ãæ¹ãã¯"
-"ããã¾ããã è¤åãã¼ã«é¢é£ããæ°¸ç¶ç¶æ
ã <literal>load()</literal> åºæ¥ãã"
-"ãã«ãªãåã«ã æ°¸ç¶ã¯ã©ã¹èªèº«ãã¤ã³ã¹ã¿ã³ã¹åããèå¥åããããã£ãè¨å®ããªã"
-"ãã°ãªãã¾ããã <emphasis> çµã¿è¾¼ã¿ã®</emphasis> è¤åèå¥åã¨å¼ã°ãããã®ã¢"
-"ããã¼ãã¯ã æ¬æ ¼çãªã¢ããªã±ã¼ã·ã§ã³ã«ã¯åãã¦ãã¾ããã"
+"æ®å¿µãªããè¤åèå¥åã®ããã®ãã®æ¹æ³ã¯ãæ°¸ç¶ãªãã¸ã§ã¯ããèªèº«ã®èå¥åã§ãã"
+"ãã¨ãæå³ãã¦ãã¾ãããªãã¸ã§ã¯ãèªèº«ãèå¥åã¨ãã以å¤ã«ä¾¿å©ãªãæ±ãæ¹ãã¯"
+"ããã¾ãããè¤åãã¼ã«é¢é£ããæ°¸ç¶ç¶æ
ã <literal>load()</literal> åºæ¥ããã"
+"ã«ãªãåã«ãæ°¸ç¶ã¯ã©ã¹èªèº«ãã¤ã³ã¹ã¿ã³ã¹åããèå¥åããããã£ãè¨å®ããªãã"
+"ã°ãªãã¾ããã <emphasis> çµã¿è¾¼ã¿ã®</emphasis> è¤åèå¥åã¨å¼ã°ãããã®ã¢ã"
+"ãã¼ãã¯ãæ¬æ ¼çãªã¢ããªã±ã¼ã·ã§ã³ã«ã¯åãã¦ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -1995,24 +1486,13 @@
"composite-id></literal> element are duplicated on both the persistent "
"class and a separate identifier class."
msgstr ""
-"2ã¤ç®ã®æ¹æ³ã¯ <emphasis> ãããããã</emphasis> è¤åèå¥åã¨å¼ã°ãããã®"
-"ã§ã <literal><composite-id></literal>ã¨ã¬ã¡ã³ãå
ã§æå®ããèå¥ããã"
-"ãã£ã æ°¸ç¶ã¯ã©ã¹ã¨åé¢ããèå¥åã¯ã©ã¹ã®ä¸¡æ¹ã«éè¤ãã¦åå¨ãã¾ãã"
+"2ã¤ç®ã®æ¹æ³ã¯ <emphasis>ãããããã</emphasis> è¤åèå¥åã¨å¼ã°ãããã®ã§ã "
+"<literal><composite-id></literal>ã¨ã¬ã¡ã³ãå
ã§æå®ããèå¥ããããã£ã"
+"æ°¸ç¶ã¯ã©ã¹ã¨åé¢ããèå¥åã¯ã©ã¹ã®ä¸¡æ¹ã«éè¤ãã¦åå¨ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:993
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:995
-#, fuzzy, no-c-format
-msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
"literal>, and the entity class itself have properties named "
"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
@@ -2022,21 +1502,19 @@
msgstr ""
"ãã®ä¾ã§ã¯ãè¤åèå¥åã¯ã©ã¹ï¼ <literal>MedicareId</literal> ï¼ã¨ã¨ã³ãã£ãã£"
"ã¯ã©ã¹èªèº«ã®ä¸¡æ¹ãã <literal>medicareNumber</literal> 㨠"
-"<literal>dependent</literal> ã¨ããååã®ããããã£ãæã¡ã¾ãã èå¥åã¯ã©ã¹"
-"ã¯ã<literal>equals()</literal> 㨠<literal>hashCode()</literal> ããªã¼ãã©ã¤"
-"ããã <literal>Serializable</literal> ãå®è£
ããªãã¦ã¯ãªãã¾ããã ãã®æ¹æ³"
+"<literal>dependent</literal> ã¨ããååã®ããããã£ãæã¡ã¾ããèå¥åã¯ã©ã¹"
+"ã¯ã <literal>equals()</literal> 㨠<literal>hashCode()</literal> ããªã¼ãã©"
+"ã¤ããã <literal>Serializable</literal> ãå®è£
ããªãã¦ã¯ãªãã¾ããããã®æ¹æ³"
"ã«ã¯ãæããã«ã³ã¼ããéè¤ããã¨ããä¸é½åãããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
-msgstr "次ã®å±æ§ã¯ãããã³ã°ããè¤åèå¥åãæå®ããããã«ä½¿ç¨ãã¾ãã"
+msgstr "次ã®å±æ§ã¯ãããã³ã°ããè¤åèå¥åãæå®ããããã«ä½¿ç¨ãã¾ãï¼"
#. Tag: para
-#: basic_mapping.xml:1010
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
"indicates that a mapped composite identifier is used, and that the contained "
@@ -2045,83 +1523,51 @@
msgstr ""
"<literal>mapped</literal> (ãªãã·ã§ã³ãããã©ã«ã㯠<literal>false</"
"literal> ): ãããã³ã°ããè¤åèå¥åã使ç¨ããããã¨ã¨ãå
å«ãããããããã£"
-"ã®ãããã³ã°ãã ã¨ã³ãã£ãã£ã¯ã©ã¹ã¨è¤åèå¥åã¯ã©ã¹ã®ä¸¡æ¹ãåç
§ãããã¨ã示"
+"ã®ãããã³ã°ããã¨ã³ãã£ãã£ã¯ã©ã¹ã¨è¤åèå¥åã¯ã©ã¹ã®ä¸¡æ¹ãåç
§ãããã¨ã示"
"ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1018
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
"identifier): the class used as a composite identifier."
msgstr ""
-"<literal>class</literal> (ãªãã·ã§ã³,ãã ããããã³ã°ããè¤åèå¥åã«ã¯å¿
"
+"<literal>class</literal> (ãªãã·ã§ã³ããã ããããã³ã°ããè¤åèå¥åã«ã¯å¿
"
"é ): è¤åèå¥åã¨ãã¦ä½¿ç¨ããã¯ã©ã¹ã"
#. Tag: para
-#: basic_mapping.xml:1025
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
-"3ã¤ç®ã®ããã«ä¾¿å©ãªæ¹æ³ã¯ãè¤åèå¥åã<xref linkend=\"components-compositeid"
-"\"/>å
ã® ã³ã³ãã¼ãã³ãã¯ã©ã¹ã¨ãã¦å®è£
ãããã¨ã§ãã ä¸ã§è¨è¿°ãã¦ãã屿§"
-"ã¯ããã®ä»£æ¿æ¹æ³ã«ã®ã¿é©ç¨ããã¾ãã"
+"3ã¤ç®ã®ããã«ä¾¿å©ãªæ¹æ³ã¯ãè¤åèå¥åã <xref linkend=\"components-"
+"compositeid\"/> ã®ã³ã³ãã¼ãã³ãã¯ã©ã¹ã¨ãã¦å®è£
ãããã¨ã§ããä¸ã§è¨è¿°ãã¦ã"
+"ã屿§ã¯ããã®ä»£æ¿æ¹æ³ã«ã®ã¿é©ç¨ããã¾ã:"
#. Tag: para
-#: basic_mapping.xml:1033
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
"of component type that holds the composite identifier. Please see chapter 9 "
"for more information."
msgstr ""
-"<literal>name</literal> (ãªãã·ã§ã³, ãã®ã¢ããã¼ãã§ã¯å¿
é ): è¤åèå¥åãä¿"
-"æããã³ã³ãã¼ãã³ãã¿ã¤ãã®ããããã£(9ç« ãåç
§ãã¦ãã ãã)."
+"<literal>name</literal> (ãªãã·ã§ã³ããã®ã¢ããã¼ãã§ã¯å¿
é ): è¤åèå¥åãä¿"
+"æããã³ã³ãã¼ãã³ãã¿ã¤ãã®ããããã£(9ç« ãåç
§ãã¦ãã ãã)ã"
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã¢ã¯ã»ã¹ããããã«Hibernateãä½¿ãæ¦ç¥ã§ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ): Hibernateãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã"
+"literal> ): Hibernate ãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã"
#. Tag: para
-#: basic_mapping.xml:1045
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the component class used as a composite "
@@ -2132,24 +1578,21 @@
"ç¯ãè¦ã¦ãã ããï¼ã"
#. Tag: para
-#: basic_mapping.xml:1052
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
"recommended for almost all applications."
msgstr ""
-"ãã®3ã¤ç®ã®æ¹æ³ã¯ <emphasis> èå¥åã³ã³ãã¼ãã³ã</emphasis> ã¨å¼ã³ã ã»ã¨ã"
-"ã©ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦æ¨å¥¨ããæ¹æ³ã§ãã"
+"ãã®3ã¤ç®ã®æ¹æ³ã¯ <emphasis> èå¥åã³ã³ãã¼ãã³ã</emphasis> ã¨å¼ã³ãã»ã¨ãã©"
+"ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦æ¨å¥¨ããæ¹æ³ã§ãã"
#. Tag: title
-#: basic_mapping.xml:1060
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Discriminator"
msgstr "discriminator"
#. Tag: para
-#: basic_mapping.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
"polymorphic persistence using the table-per-class-hierarchy mapping "
@@ -2161,32 +1604,18 @@
"<literal>boolean</literal>, <literal>yes_no</literal>, <literal>true_false</"
"literal>."
msgstr ""
-"<literal><discriminator></literal> è¦ç´ ã¯ã table-per-class-hierarchy"
-"ãããã³ã°æ¦ç¥ã使ãããªã¢ã¼ãã£ãã¯ãªæ°¸ç¶åã«å¿
è¦ã§ããã ãã¼ãã«ã®èå¥ã«ã©"
-"ã ãå®ç¾©ãã¾ãã èå¥ã«ã©ã ã¯ãããè¡ã«å¯¾ãã¦æ°¸ç¶å±¤ãã©ã®ãµãã¯ã©ã¹ãã¤ã³ã¹ã¿"
-"ã³ã¹åãããã ä¼ãããã¼ã«ã¼å¤ãå«ãã§ãã¾ãã 以ä¸ã®ãããªåã«å¶éããã¾"
-"ãï¼ <literal>string</literal> , <literal>character</literal> , "
-"<literal>integer</literal>, <literal>byte</literal> , <literal>short</"
-"literal> , <literal>boolean</literal> , <literal>yes_no</literal> , "
+"<literal><discriminator></literal> è¦ç´ ã¯ã table-per-class-hierarchy "
+"ãããã³ã°æ¦ç¥ã使ãããªã¢ã¼ãã£ãã¯ãªæ°¸ç¶åã«å¿
è¦ã§ããããã¼ãã«ã®èå¥ã«ã©"
+"ã ãå®ç¾©ãã¾ããèå¥ã«ã©ã ã¯ãããè¡ã«å¯¾ãã¦æ°¸ç¶å±¤ãã©ã®ãµãã¯ã©ã¹ãã¤ã³ã¹ã¿"
+"ã³ã¹åããããä¼ãããã¼ã«ã¼å¤ãå«ãã§ãã¾ãã以ä¸ã®ãããªåã«å¶éããã¾ãï¼ "
+"<literal>string</literal> , <literal>character</literal> , <literal>integer</"
+"literal>, <literal>byte</literal> , <literal>short</literal> , "
+"<literal>boolean</literal> , <literal>yes_no</literal> , "
"<literal>true_false</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1080
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1083
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
"the name of the discriminator column."
msgstr ""
@@ -2194,18 +1623,16 @@
"literal> ï¼ï¼ èå¥ã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1089
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
"a name that indicates the Hibernate type"
msgstr ""
"<literal>type</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>string</"
-"literal> ï¼ï¼Hibernateã®åã示ãååã"
+"literal> ï¼ï¼ Hibernate ã®åã示ãååã"
#. Tag: para
-#: basic_mapping.xml:1095
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
@@ -2213,11 +1640,10 @@
msgstr ""
"<literal>force</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
"literal> ï¼ï¼ ã«ã¼ãã¯ã©ã¹ã®ãã¹ã¦ã®ã¤ã³ã¹ã¿ã³ã¹ãæ¤ç´¢ããå ´åã§ãã£ã¦ãã "
-"Hibernateã使ç¨ã§ããèå¥ã«ã©ã ã®æå®ããå¼·å¶ããã¾ãã"
+"Hibernate ã使ç¨ã§ããèå¥ã«ã©ã ã®æå®ããå¼·å¶ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1102
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"set this to <literal>false</literal> if your discriminator column is also "
@@ -2225,23 +1651,21 @@
"column in SQL <literal>INSERTs</literal>."
msgstr ""
"<literal>insert</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal> ï¼ï¼ ããèå¥ã«ã©ã ããããã³ã°ããè¤åèå¥åã®ä¸é¨ãªãã°ã"
-"<literal>false</literal> ã¨è¨å®ãã¦ãã ããã (Hibernateã«SQLã® "
-"<literal>INSERT</literal> ã«ã¯å«ã¾ããªããã¨ãç¥ããã)"
+"literal> ï¼ï¼ ããèå¥ã«ã©ã ããããã³ã°ããè¤åèå¥åã®ä¸é¨ãªãã°ã "
+"<literal>false</literal> ã¨è¨å®ãã¦ãã ããã (Hibernate ã« SQL ã® "
+"<literal>INSERT</literal> å
ã®ã«ã©ã ãå«ã¾ããªãããä¼ãã¾ãã)"
#. Tag: para
-#: basic_mapping.xml:1110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
"discrimination."
msgstr ""
-"<literal>formula</literal> (ãªãã·ã§ã³)åãè©ä¾¡ãããã¨ãã«å®è¡ãããä»»æã®"
-"SQLå¼ã ã³ã³ãã³ããã¼ã¹ã®èå¥ãå¯è½ã«ãã¾ãã"
+"<literal>formula</literal> (ãªãã·ã§ã³) åãè©ä¾¡ãããã¨ãã«å®è¡ãããä»»æã® "
+"SQL å¼ãã³ã³ãã³ããã¼ã¹ã®èå¥ãå¯è½ã«ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
@@ -2253,91 +1677,59 @@
"å®ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
"rows with \"extra\" discriminator values that are not mapped to a persistent "
"class. This will not usually be the case."
msgstr ""
-"æ°¸ç¶ã¯ã©ã¹ã¸ãããã³ã°ãããªãï½¢ä½åãªãèå¥å¤ãæã¤è¡ã ãã¼ãã«ã«ããã°ã"
-"ï¼ãã®ã¨ãã«éãï¼<literal>force</literal> 屿§ã¯æå¹ã§ãã ãã ããæ®éã¯ã"
-"ããããã¨ã¯ããã¾ããã"
+"æ°¸ç¶ã¯ã©ã¹ã¸ãããã³ã°ãããªãï½¢ä½åãªãèå¥å¤ãæã¤è¡ããã¼ãã«ã«ããã°ãï¼ã"
+"ã®ã¨ãã«éãï¼ <literal>force</literal> 屿§ã¯æå¹ã§ãããã ããæ®éã¯ããã"
+"ããã¨ã¯ããã¾ããã"
#. Tag: para
-#: basic_mapping.xml:1130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
"SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
-"<literal>formula</literal> 屿§ã使ãã¨ãè¡ã®åãè©ä¾¡ããããã«ä»»æã®SQLå¼ã"
-"宣è¨ã§ãã¾ãã"
+"<literal>formula</literal> 屿§ã使ãã¨ãè¡ã®åãè©ä¾¡ããããã«ä»»æã® SQL å¼"
+"ã宣è¨ã§ãã¾ã:"
-#. Tag: programlisting
-#: basic_mapping.xml:1135
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1140
-#, fuzzy, no-c-format
msgid "Version (optional)"
msgstr "versionï¼ãªãã·ã§ã³ï¼"
#. Tag: para
-#: basic_mapping.xml:1142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
"that the table contains versioned data. This is particularly useful if you "
"plan to use <emphasis>long transactions</emphasis>. See below for more "
"information:"
msgstr ""
-"<literal><version></literal> è¦ç´ ã¯ãªãã·ã§ã³ã§ããã ãã¼ãã«ããã¼"
-"ã¸ã§ã³ãã¼ã¿ãå«ããã¨ã示ãã¾ãã ãã㯠<emphasis>ãã³ã°ãã©ã³ã¶ã¯ã·ã§ã³</"
-"emphasis> ã使ãã¤ãããªããç¹ã«å½¹ç«ã¡ã¾ãï¼ä»¥ä¸ãè¦ã¦ãã ããï¼ã"
+"<literal><version></literal> è¦ç´ ã¯ãªãã·ã§ã³ã§ããããã¼ãã«ããã¼ã¸ã§"
+"ã³ãã¼ã¿ãå«ããã¨ã示ãã¾ãããã㯠<emphasis>ãã³ã°ãã©ã³ã¶ã¯ã·ã§ã³</"
+"emphasis> ã使ãã¤ãããªããç¹ã«å½¹ç«ã¡ã¾ãï¼ä»¥ä¸ãåç
§ãã¦ãã ããï¼ã"
-#. Tag: programlisting
-#: basic_mapping.xml:1158
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1161
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
-"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ããããã£åï¼: ãã¼ã¸ã§"
+"<literal>column</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ããããã£åï¼: ãã¼ã¸ã§"
"ã³çªå·ãä¿æããã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
msgstr "<literal>name</literal> ï¼æ°¸ç¶ã¯ã©ã¹ã®ããããã£ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
"the type of the version number."
@@ -2346,42 +1738,15 @@
"literal> ï¼ï¼ãã¼ã¸ã§ã³çªå·ã®åã"
#. Tag: para
-#: basic_mapping.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses to access the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã¢ã¯ã»ã¹ããããã«Hibernateãä½¿ãæ¦ç¥ã§ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>access</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ): Hibernateãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal> ï¼ï¼ ããããã£ã®å¤ã¸ã®ã¢ã¯ã»ã¹ã«Hibernateãä½¿ãæ¦ç¥ã"
+"literal> ): Hibernate ãããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ãã¹ãæ¦ç¥ã"
#. Tag: para
-#: basic_mapping.xml:1184
#, fuzzy, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
@@ -2392,13 +1757,12 @@
msgstr ""
"<literal>unsaved-value</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠"
"<literal>undefined</literal> ï¼ï¼ ã¤ã³ã¹ã¿ã³ã¹ãæ°ããã¤ã³ã¹ã¿ã³ã¹åãããã"
-"ã¨ã示ã ï¼ã»ã¼ãããã¦ããªããã¨ã示ãï¼ãã¼ã¸ã§ã³ããããã£ã®å¤ã 以åã®"
-"Sessionã§ã»ã¼ãã¾ãã¯ãã¼ãããã䏿çãªã¤ã³ã¹ã¿ã³ã¹ã¨åºå¥ãããã㫠使ãã¾"
-"ãã ï¼ <literal>undefined</literal> ã¯èå¥åããããã£ã®å¤ã使ããããã¨ãæ"
-"å®ãã¾ããï¼"
+"ã¨ã示ã ï¼ã»ã¼ãããã¦ããªããã¨ã示ãï¼ ãã¼ã¸ã§ã³ããããã£ã®å¤ã以åã® "
+"Session ã§ã»ã¼ãã¾ãã¯ãã¼ããããåé¢ã¤ã³ã¹ã¿ã³ã¹ã¨åºå¥ããããã«ä½¿ãã¾ãã "
+"ï¼ <literal>undefined</literal> ã¯èå¥åããããã£ã®å¤ã使ããããã¨ãæå®ã"
+"ã¾ããï¼"
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2408,12 +1772,11 @@
msgstr ""
"<literal>generated</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>never</"
"literal> ): ãã®ãã¼ã¸ã§ã³ã®ããããã£ã®å¤ãããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæããã"
-"ãã¨ãæå®ãã¾ãã <xref linkend=\"mapping-generated\">çæããããã£</xref> "
-"ã®è°è«ãè¦ã¦ãã ããã"
+"ãã¨ãæå®ãã¾ãã<xref linkend=\"mapping-generated\"/> çæããããã£ã®è°è«"
+"ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:1200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"specifies whether the version column should be included in SQL insert "
@@ -2421,24 +1784,22 @@
"is defined with a default value of <literal>0</literal>."
msgstr ""
"<literal>insert</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal> ): SQLã®insertæã«ãã¼ã¸ã§ã³ã»ã«ã©ã ãå«ããã¹ããã©ãããæå®ãã¾"
-"ãã ãããã¼ã¿ãã¼ã¹ã»ã«ã©ã ã®ããã©ã«ãå¤ã <literal>0</literal> ã¨å®ç¾©ãã"
-"ãã¨ãã«ã¯ã <literal>false</literal> ã«è¨å®ããã¨è¯ãã§ãããã"
+"literal> ): SQLã® insert æã«ãã¼ã¸ã§ã³ã«ã©ã ãå«ããã¹ããã©ãããæå®ãã¾"
+"ãããããã¼ã¿ãã¼ã¹ã«ã©ã ã®ããã©ã«ãå¤ã <literal>0</literal> ã¨å®ç¾©ããã"
+"ã¨ãã«ã¯ã <literal>false</literal> ã«è¨å®ããã¨è¯ãã§ãããã"
#. Tag: para
-#: basic_mapping.xml:1210
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
"literal> or <literal>calendar</literal>."
msgstr ""
-"ãã¼ã¸ã§ã³çªå·ã¯ Hibernateã® <literal>long</literal> , <literal>integer</"
-"literal> , <literal>short</literal> , <literal>timestamp</literal> , "
+"ãã¼ã¸ã§ã³çªå·ã¯ Hibernate ã® <literal>long</literal> ã <literal>integer</"
+"literal> ã <literal>short</literal> ã <literal>timestamp</literal> ã "
"<literal>calendar</literal> åã®ããããã§ãã"
#. Tag: para
-#: basic_mapping.xml:1215
#, fuzzy, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
@@ -2449,53 +1810,36 @@
"reattachment in Hibernate. It is especially useful for people using assigned "
"identifiers or composite keys</emphasis>."
msgstr ""
-"ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ã¯ãåé¢ãããã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦null"
-"ã§ãã£ã¦ã¯ãªãã¾ããã ãã®ããã©ã®ãã㪠<literal>unsaved-value</literal> æ¦"
-"ç¥ãæå®ããã¦ãã Hibernateã¯nullã®ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ããæã£ããã¹ã¦"
-"ã®ã¤ã³ã¹ã¿ã³ã¹ãã 䏿çãªãã®ã§ããã¨å¤æãã¾ãã <emphasis> nullã許容ãã"
-"ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ãå®ç¾©ãããã¨ã¯ã 鿏¡çã«ä¸æãªãã¸ã§"
-"ã¯ãã¨ãããã¨ãé²ãç°¡åãªæ¹æ³ã§ãã ç¹ã«èå¥åã®å²ãå½ã¦ãè¤åãã¼ã使ç¨ãã¦"
-"ããã¨ãã«ã¯ç¹ã«æç¨ã§ãã</emphasis>"
+"ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ã¯ãåé¢ãããã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ã㦠"
+"null ã§ãã£ã¦ã¯ãªãã¾ããããã®ããã©ã®ãã㪠<literal>unsaved-value</"
+"literal> æ¦ç¥ãæå®ããã¦ãã Hibernate 㯠null ã®ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ã"
+"ãæã£ããã¹ã¦ã®ã¤ã³ã¹ã¿ã³ã¹ãã䏿çãªãã®ã§ããã¨å¤æãã¾ãã <emphasis> "
+"null ã許容ãããã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ãå®ç¾©ãããã¨ã¯ã "
+"Hibernate ã«ããã¦é渡çã«ä¸æãªãã¸ã§ã¯ãã¨ãããã¨ãé²ãç°¡åãªæ¹æ³ã§ããç¹"
+"ã«èå¥åã®å²ãå½ã¦ãè¤åãã¼ã使ç¨ãã¦ããã¨ãã«ã¯ç¹ã«æç¨ã§ãã</emphasis>"
#. Tag: title
-#: basic_mapping.xml:1226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Timestamp (optional)"
msgstr "timestampï¼ãªãã·ã§ã³ï¼"
#. Tag: para
-#: basic_mapping.xml:1228
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
"table contains timestamped data. This provides an alternative to versioning. "
"Timestamps are a less safe implementation of optimistic locking. However, "
"sometimes the application might use the timestamps in other ways."
msgstr ""
-"ãªãã·ã§ã³ã® <literal><timestamp></literal> è¦ç´ ã¯ã ãã¼ãã«ãã¿ã¤ã ã¹"
-"ã¿ã³ããã¼ã¿ãå«ããã¨ã示ãã¾ãã ããã¯ãã¼ã¸ã§ã³ä»ãã®ä»£ããã®æ¹æ³ã¨ãã¦ç¨"
-"æããã¦ãã¾ãã ã¿ã¤ã ã¹ã¿ã³ãã¯ãã¨ãã¨æ¥½è¦³çããã¯ã«ãããå®å
¨æ§ã®ä½ãå®è£
"
-"ã§ãã ãããã¢ããªã±ã¼ã·ã§ã³ã¯ç°ãªãç¨éã§ä½¿ããã¨ãããããããã¾ããã"
+"ãªãã·ã§ã³ã® <literal><timestamp></literal> è¦ç´ ã¯ããã¼ãã«ãã¿ã¤ã ã¹"
+"ã¿ã³ããã¼ã¿ãå«ããã¨ã示ãã¾ããããã¯ãã¼ã¸ã§ã³ä»ãã®ä»£ããã®æ¹æ³ã¨ãã¦ç¨"
+"æããã¦ãã¾ããã¿ã¤ã ã¹ã¿ã³ãã¯ãã¨ãã¨æ¥½è¦³çããã¯ã«ãããå®å
¨æ§ã®ä½ãå®è£
"
+"ã§ãããããã¢ããªã±ã¼ã·ã§ã³ã¯ã¿ã¤ã ã¹ã¿ã³ããç°ãªãç¨éã§ä½¿ããã¨ããããã"
+"ããã¾ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:1244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1247
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of a column holding the timestamp."
msgstr ""
@@ -2503,20 +1847,18 @@
"ã¿ã³ããä¿æããã«ã©ã ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
"<literal>Date</literal> or <literal>Timestamp</literal> of the persistent "
"class."
msgstr ""
-"<literal>name</literal> ï¼ æ°¸ç¶ã¯ã©ã¹ã§ããJava ã® <literal>Date</literal>å "
-"ã¾ã㯠<literal>Timestamp</literal> å ã®ãJavaBeansã¹ã¿ã¤ã«ããããã£ã®å"
+"<literal>name</literal> ï¼ æ°¸ç¶ã¯ã©ã¹ã§ãã Java ã® <literal>Date</literal>å"
+"ã¾ã㯠<literal>Timestamp</literal> å ã®ã JavaBeans ã¹ã¿ã¤ã«ããããã£ã®å"
"åã"
#. Tag: para
-#: basic_mapping.xml:1266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2526,13 +1868,12 @@
msgstr ""
"<literal>unsaved-value</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>null</"
"literal> ï¼ï¼ ã¤ã³ã¹ã¿ã³ã¹ãæ°ããã¤ã³ã¹ã¿ã³ã¹åããã ï¼ã»ã¼ãããã¦ããªãï¼"
-"ãã¨ã示ããã¼ã¸ã§ã³ããããã£ã®å¤ã 以åã®Sessionã§ã»ã¼ãã¾ãã¯ãã¼ãããã"
-"䏿çãªã¤ã³ã¹ã¿ã³ã¹ã¨ åºå¥ããããã«ä½¿ããã¾ãã ï¼ <literal>undefined</"
-"literal> ã¨æå®ããã¨ã èå¥åããããã£ã®å¤ã使ããã¾ããï¼"
+"ãã¨ã示ããã¼ã¸ã§ã³ããããã£ã®å¤ã以åã® Session ã§ã»ã¼ãã¾ãã¯ãã¼ãããã"
+"åé¢ãããã¤ã³ã¹ã¿ã³ã¹ã¨åºå¥ããããã«ä½¿ããã¾ãã ï¼ <literal>undefined</"
+"literal> ã¨æå®ããã¨ãèå¥åããããã£ã®å¤ã使ããã¾ããï¼"
#. Tag: para
-#: basic_mapping.xml:1275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
"Where should Hibernate retrieve the timestamp value from? From the database, "
@@ -2544,17 +1885,16 @@
"precision (Oracle 8, for example)."
msgstr ""
"<literal>source</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>vm</"
-"literal> ): Hibernateã¯ã©ãããã¿ã¤ã ã¹ã¿ã³ãã®å¤ãåå¾ããã¹ãã§ããããï¼ "
-"ãã¼ã¿ãã¼ã¹ããã§ãããããç¾å¨ã®JVMããã§ããããï¼ ãã¼ã¿ãã¼ã¹ã«ããã¿ã¤"
-"ã ã¹ã¿ã³ãã¯ãHibernateã\"次ã®å¤\"ãæ±ºå®ããããã« ãã¼ã¿ãã¼ã¹ããããããª"
-"ããã°ãªããªãããããªã¼ãããããæãã¾ãã ãããã¯ã©ã¹ã¿ç°å¢ã§ã¯JVMããå"
-"å¾ããããå®å
¨ã§ãã ãã¼ã¿ãã¼ã¹ã®ç¾å¨ã®ã¿ã¤ã ã¹ã¿ã³ãã®åå¾ããµãã¼ããã "
-"ãã¹ã¦ã® <literal>ãã¼ã¿ãã¼ã¹æ¹è¨</literal> ãç¥ããã¦ããããã§ã¯ãªããã¨"
-"㫠注æãã¦ãã ãããã¾ã䏿¹ã§ãç²¾å¯ããæ¬ ãããã«ã ããã¯ã§ä½¿ç¨ããã«ã¯å®"
-"å
¨ã§ãªããã®ãããã¾ã(ä¾ãã°Oracle 8)ã"
+"literal> ): Hibernate ã¯ã©ãããã¿ã¤ã ã¹ã¿ã³ãã®å¤ãåå¾ããã¹ãã§ããããï¼"
+"ãã¼ã¿ãã¼ã¹ããã§ãããããç¾å¨ã® JVM ããã§ããããï¼ãã¼ã¿ãã¼ã¹ã«ããã¿ã¤"
+"ã ã¹ã¿ã³ãã¯ã Hibernate ã \"次ã®å¤\" ãæ±ºå®ããããã«ãã¼ã¿ãã¼ã¹ããããã"
+"ãªããã°ãªããªãããããªã¼ãããããæãã¾ãããããã¯ã©ã¹ã¿ç°å¢ã§ã¯ JVM ãã"
+"åå¾ããããå®å
¨ã§ãããã¼ã¿ãã¼ã¹ã®ç¾å¨ã®ã¿ã¤ã ã¹ã¿ã³ãã®åå¾ããµãã¼ããã"
+"ãã¹ã¦ã® <literal>Dialect</literal> ãç¥ããã¦ããããã§ã¯ãªããã¨ã«æ³¨æãã¦"
+"ãã ãããã¾ã䏿¹ã§ãç²¾å¯ããæ¬ ãããã«ãããã¯ã§ä½¿ç¨ããã«ã¯å®å
¨ã§ãªããã®"
+"ãããã¾ã (ä¾ãã° Oracle 8 )ã"
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2563,19 +1903,17 @@
"generated\">generated properties</link> for more information."
msgstr ""
"<literal>generated</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>never</"
-"literal> ): ãã®ã¿ã¤ã ã¹ã¿ã³ãã»ããããã£ã®å¤ãããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæã"
-"ãããã¨ãæå®ãã¾ãã <xref linkend=\"mapping-generated\">çæããããã£</"
-"xref> ãåç
§ãã¦ãã ããã"
+"literal> ): ãã®ã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ã®å¤ãããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæã"
+"ãããã¨ãæå®ãã¾ãã <xref linkend=\"mapping-generated\"/> çæããããã£ã"
+"åç
§ãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注è¨"
#. Tag: para
-#: basic_mapping.xml:1299
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
"type=\"timestamp\"></literal>. And <literal><timestamp source=\"db"
@@ -2588,70 +1926,39 @@
"</literal> ã¨ç価ã§ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property"
msgstr "property"
#. Tag: para
-#: basic_mapping.xml:1313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
"JavaBean style property of the class."
msgstr ""
-"<literal><property></literal> è¦ç´ ã¯ãã¯ã©ã¹ã®æ°¸ç¶çãªJavaBeanã¹ã¿ã¤ã«"
-"ã®ããããã£ãå®ç¾©ãã¾ãã"
+"<literal><property></literal> è¦ç´ ã¯ãã¯ã©ã¹ã®æ°¸ç¶ç㪠JavaBean ã¹ã¿ã¤"
+"ã«ã®ããããã£ãå®ç¾©ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
"letter."
-msgstr "<literal>name</literal>ï¼å°æåã§å§ã¾ãããããã£åã"
+msgstr "<literal>name</literal>ï¼ å°æåã§å§ã¾ãããããã£åã"
#. Tag: para
-#: basic_mapping.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
"nested <literal><column></literal> element(s)."
msgstr ""
"<literal>column</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ããããã£åï¼ï¼ ãããã³"
-"ã°ããããã¼ã¿ãã¼ã¹ãã¼ãã«ã®ã«ã©ã ã®ååã ãã¹ããã <literal><"
+"ã°ããããã¼ã¿ãã¼ã¹ãã¼ãã«ã®ã«ã©ã ã®ååããã¹ããã <literal><"
"column></literal> è¦ç´ ã§ãæå®ã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2661,14 +1968,13 @@
"column(s), or by a trigger or other application."
msgstr ""
"<literal>update, insert</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal> ï¼ï¼ ãããã³ã°ãããã«ã©ã ãSQLã® <literal>UPDATE</literal> ã "
-"<literal>INSERT</literal> ã«å«ã¾ãããã¨ãæå®ãã¾ãã 両æ¹ã¨ã "
-"<literal>false</literal> ã«è¨å®ããã¨ã åãã«ã©ã ã«ãããã³ã°ãããä»ã®ãã"
-"ããã£ãããªã¬ã ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦åæåãããç´ç²ãªãå°åºãããã"
+"literal> ï¼ï¼ ãããã³ã°ãããã«ã©ã ã SQL ã® <literal>UPDATE</literal> ã "
+"<literal>INSERT</literal> ã«å«ã¾ãããã¨ãæå®ãã¾ãã両æ¹ã¨ã "
+"<literal>false</literal> ã«è¨å®ããã¨ãåãã«ã©ã ã«ãããã³ã°ãããä»ã®ããã"
+"ãã£ãããªã¬ãä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦åæåãããç´ç²ãªãå°åºãããã"
"ãã£ãå¯è½ã«ãªãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
@@ -2676,46 +1982,42 @@
"not have a column mapping of their own."
msgstr ""
"<literal>formula</literal>ï¼ãªãã·ã§ã³ï¼ï¼ <emphasis>è¨ç®</emphasis> ããã"
-"ãã£ã®ããã®å¤ãå®ç¾©ããSQLå¼ã è¨ç®ãããããããã£ã¯èªèº«ã®ã«ã©ã ã¸ã®ããã"
+"ãã£ã®ããã®å¤ãå®ç¾©ãã SQL å¼ãè¨ç®ãããããããã£ã¯èªèº«ã®ã«ã©ã ã¸ã®ããã"
"ã³ã°ãããã¾ããã"
#. Tag: para
-#: basic_mapping.xml:1378
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (optional - ããã©ã«ã㯠<literal>false</literal> ): "
-"ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ããã¨ãã«ãããããã£ãé
å»¶ãã¦åå¾ãããã"
-"æå®ãã¾ãã (ãã¤ãã³ã¼ãå®è£
ã使ããæéãå¿
è¦ã«ãªãã¾ã)ã"
+"<literal>lazy</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
+"literal> ): ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ããã¨ãã«ãããããã£ãé
å»¶ãã¦"
+"åå¾ããããæå®ãã¾ãã (ãã¤ãã³ã¼ãå®è£
ã使ããæéãå¿
è¦ã«ãªãã¾ã)ã"
#. Tag: para
-#: basic_mapping.xml:1385
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref</literal>."
msgstr ""
-"<literal>unique</literal> (ãªãã·ã§ã³):ã«ã©ã ã«ã¦ãã¼ã¯å¶ç´ãã¤ããDDLã®çæ"
-"ãå¯è½ã«ãã¾ãã ã¾ãã<literal>property-ref</literal> ã®ã¿ã¼ã²ããã¨ãããã¨"
-"ãã§ãã¾ãã"
+"<literal>unique</literal> (ãªãã·ã§ã³):ã«ã©ã ã«ã¦ãã¼ã¯å¶ç´ãã¤ãã DDL ã®ç"
+"æãå¯è½ã«ãã¾ããã¾ãã <literal>property-ref</literal> ã®ã¿ã¼ã²ããã¨ããã"
+"ã¨ãã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1392
#, fuzzy, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
-"<literal>not-null</literal> (ãªãã·ã§ã³):ã«ã©ã ã«nullå¤ã許å¯ããDDLã®çæã"
-"å¯è½ã«ãã¾ãã"
+"<literal>not-null</literal> (ãªãã·ã§ã³):ã«ã©ã ã« null å¤ã許å¯ãã DDL ã®ç"
+"æãå¯è½ã«ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property do or do not require "
@@ -2724,11 +2026,10 @@
msgstr ""
"<literal>optimistic-lock</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
"literal> ): ãã®ããããã£ã®æ´æ°ã«æ¥½è¦³ããã¯ã®åå¾ãè¦æ±ãããã©ãããæå®ã"
-"ã¾ãã è¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ããã¹"
+"ã¾ããè¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ããã¹"
"ãããæ±ºå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2738,45 +2039,39 @@
msgstr ""
"<literal>generated</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>never</"
"literal> ): ããããã£ã®å¤ãããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæããããã¨ãæå®ãã¾"
-"ãã <xref linkend=\"mapping-generated\">çæããããã£</xref> ãåç
§ãã¦ãã "
-"ããã"
+"ãã <xref linkend=\"mapping-generated\"/> çæããããã£ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
msgstr "<emphasis>typename</emphasis> ã«ã¯ä»¥ä¸ã®å¤ãå¯è½ã§ãï¼"
#. Tag: para
-#: basic_mapping.xml:1421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
"date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
-"Hibernateã®åºæ¬åã®ååï¼ä¾ <literal>integer, string, character, date, "
+"Hibernate ã®åºæ¬åã®ååï¼ä¾ <literal>integer, string, character, date, "
"timestamp, float, binary, serializable, object, blob</literal> ï¼ã"
#. Tag: para
-#: basic_mapping.xml:1427
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
"literal> etc."
msgstr ""
-"ããã©ã«ãã®åºæ¬åã®Javaã¯ã©ã¹å ï¼ä¾ <literal>int, float, char, java.lang."
+"ããã©ã«ãã®åºæ¬åã® Java ã¯ã©ã¹å ï¼ä¾ <literal>int, float, char, java.lang."
"String, java.util.Date, java.lang.Integer, java.sql.Clob</literal> ï¼ã"
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
-msgstr "ã·ãªã¢ã©ã¤ãºå¯è½ãªJavaã¯ã©ã¹ã®ååã"
+msgstr "ã·ãªã¢ã©ã¤ãºå¯è½ãª Java ã¯ã©ã¹ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1438
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
"literal> etc."
@@ -2785,8 +2080,7 @@
"literal> ï¼ã"
#. Tag: para
-#: basic_mapping.xml:1444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
"property and guess the correct Hibernate type. Hibernate will attempt to "
@@ -2796,17 +2090,16 @@
"DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a "
"custom type."
msgstr ""
-"åãæå®ããªããã°ãHibernateã¯æ£ããHibernateã®åãæ¨æ¸¬ããããã«ã æå®ãã"
-"ãããããã£ã«å¯¾ãã¦ãªãã¬ã¯ã·ã§ã³ã使ãã¾ãã Hibernateã¯ã«ã¼ã«2, 3, 4ããã®"
-"é åºã«ä½¿ãã getterããããã£ã®è¿ãå¤ã®ã¯ã©ã¹ã®ååãè§£éãããã¨ãã¾ãã ã"
-"ããããã§å¸¸ã«ååã§ããã¨ã¯éãã¾ããã å ´åã«ãã£ã¦ã¯ã<literal>type</"
-"literal> 屿§ãå¿
è¦ãªå ´åãããã¾ãã ï¼ä¾ãã° <literal>Hibernate.DATE</"
-"literal> 㨠<literal>Hibernate.TIMESTAMP</literal> ãåºå¥ããããã ã¾ãã¯ã«"
-"ã¹ã¿ã åãæå®ãããããªã©ã§ããï¼"
+"åãæå®ããªããã°ã Hibernate ã¯æ£ãã Hibernate ã®åãæ¨æ¸¬ããããã«ãæå®"
+"ãããããããã£ã«å¯¾ãã¦ãªãã¬ã¯ã·ã§ã³ã使ãã¾ãã Hibernate ã¯ã«ã¼ã«2, 3, 4"
+"ããã®é åºã«ä½¿ãã getter ããããã£ã®è¿ãå¤ã®ã¯ã©ã¹ã®ååãè§£éãããã¨ãã¾"
+"ãããããããã§å¸¸ã«ååã§ããã¨ã¯éãã¾ãããå ´åã«ãã£ã¦ã¯ã "
+"<literal>type</literal> 屿§ãå¿
è¦ãªå ´åãããã¾ãã ï¼ä¾ãã° "
+"<literal>Hibernate.DATE</literal> 㨠<literal>Hibernate.TIMESTAMP</literal> "
+"ãåºå¥ãããããã¾ãã¯ã«ã¹ã¿ã åãæå®ãããããªã©ã§ããï¼"
#. Tag: para
-#: basic_mapping.xml:1454
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
"accesses the property at runtime. By default, Hibernate will call the "
@@ -2816,64 +2109,47 @@
"a class that implements the interface <literal>org.hibernate.property."
"PropertyAccessor</literal>."
msgstr ""
-"<literal>access</literal> 屿§ã§ã å®è¡æã«Hibernateãã©ã®ããã«ããããã£ã«"
-"ã¢ã¯ã»ã¹ããããå¶å¾¡ã§ãã¾ãã ããã©ã«ãã§ã¯Hibernateã¯ããããã£ã®get/setã®"
-"ãã¢ãã³ã¼ã«ãã¾ãã <literal>access=\"field\"</literal> ã¨æå®ããã°ã "
-"Hibernateã¯ãªãã¬ã¯ã·ã§ã³ã使ãget/setã®ãã¢ãä»ããã«ãç´æ¥ãã£ã¼ã«ãã«ã¢ã¯"
-"ã»ã¹ãã¾ãã ã¤ã³ã¿ã¼ãã§ã¤ã¹ <literal>org.hibernate.property."
-"PropertyAccessor</literal> ã å®è£
ããã¯ã©ã¹ãæå®ãããã¨ã§ãããããã£ã¸ã®"
-"ã¢ã¯ã»ã¹ã«ç¬èªã®æ¦ç¥ãæå®ãããã¨ãã§ãã¾ãã"
+"<literal>access</literal> 屿§ã§ãå®è¡æã« Hibernate ãã©ã®ããã«ããããã£ã«"
+"ã¢ã¯ã»ã¹ããããå¶å¾¡ã§ãã¾ããããã©ã«ãã§ã¯ Hibernate ã¯ããããã£ã® get/"
+"set ã®ãã¢ãã³ã¼ã«ãã¾ãã <literal>access=\"field\"</literal> ã¨æå®ãã"
+"ã°ã Hibernate ã¯ãªãã¬ã¯ã·ã§ã³ã使ã get/set ã®ãã¢ãä»ããã«ãç´æ¥ãã£ã¼ã«"
+"ãã«ã¢ã¯ã»ã¹ãã¾ããã¤ã³ã¿ã¼ãã§ã¼ã¹ <literal>org.hibernate.property."
+"PropertyAccessor</literal> ãå®è£
ããã¯ã©ã¹ãæå®ãããã¨ã§ãããããã£ã¸ã®ã¢"
+"ã¯ã»ã¹ã«ç¬èªã®æ¦ç¥ãæå®ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1463
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
"read-only. The property value is computed at load time. You declare the "
"computation as an SQL expression. This then translates to a <literal>SELECT</"
"literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
-"ç¹ã«å¼·åãªç¹å¾´ã¯çæããããã£ã§ãã ãããã®ããããã£ã¯å½ç¶èªã¿åãå°ç¨ã§ã"
-"ããããããã£ã®å¤ã¯ãã¼ãæã«è¨ç®ããã¾ãã è¨ç®ãSQLå¼ã¨ãã¦å®£è¨ããã¨ãã"
-"ã®ããããã£ã¯ ã¤ã³ã¹ã¿ã³ã¹ããã¼ãããSQLã¯ã¨ãªã® <literal>SELECT</literal> "
-"å¥ã®ãµãã¯ã¨ãªã«å¤æããã¾ãã"
+"ç¹ã«å¼·åãªç¹å¾´ã¯çæããããã£ã§ãããããã®ããããã£ã¯å½ç¶èªã¿åãå°ç¨ã§ã"
+"ããããããã£ã®å¤ã¯ãã¼ãæã«è¨ç®ããã¾ããè¨ç®ã SQL å¼ã¨ãã¦å®£è¨ããã¨ãã"
+"ã®ããããã£ã¯ã¤ã³ã¹ã¿ã³ã¹ããã¼ããã SQL ã¯ã¨ãªã® <literal>SELECT</"
+"literal> å¥ã®ãµãã¯ã¨ãªã«å¤æããã¾ã:"
-#. Tag: programlisting
-#: basic_mapping.xml:1470
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1472
-#, fuzzy, no-c-format
-msgid ""
"You can reference the entity table by not declaring an alias on a particular "
"column. This would be <literal>customerId</literal> in the given example. "
"You can also use the nested <literal><formula></literal> mapping "
"element if you do not want to use the attribute."
msgstr ""
"ç¹å®ã®ã«ã©ã (ä¾ã§ã¯ <literal>customerId</literal> ãããã«ãããã¾ã)ã®ã¨ã¤ãª"
-"ã¢ã¹ã宣è¨ãããã¨ãªãã ã¨ã³ãã£ãã£èªèº«ã®ãã¼ãã«ãåç
§ã§ãããã¨ã«æ³¨æãã¦"
-"ãã ããã ãã屿§ã使ç¨ããããªããã°ã ãã¹ããã <literal><formula>"
-"</literal> ãããã³ã°è¦ç´ ã使ãããã¨ã«ã注æãã¦ãã ããã"
+"ã¢ã¹ã宣è¨ãããã¨ãªããã¨ã³ãã£ãã£èªèº«ã®ãã¼ãã«ãåç
§ã§ãããã¨ã«æ³¨æãã¦"
+"ãã ããããã屿§ã使ç¨ããããªããã°ããã¹ããã <literal><formula></"
+"literal> ãããã³ã°è¦ç´ ã使ãããã¨ã«ã注æãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:1482
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
msgstr "many-to-one"
#. Tag: para
-#: basic_mapping.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
"<literal>many-to-one</literal> element. The relational model is a many-to-"
@@ -2881,76 +2157,35 @@
"column(s) of the target table."
msgstr ""
"ä»ã®æ°¸ç¶ã¯ã©ã¹ã¸ã®é常ã®é¢é£ã¯ <literal>many-to-one</literal> è¦ç´ ã使ã£ã¦å®"
-"義ãã¾ãã ãªã¬ã¼ã·ã§ãã«ã¢ãã«ã¯å¤å¯¾ä¸é¢é£ã§ãã ã¤ã¾ããããã¼ãã«ã®å¤é¨"
-"ãã¼ã¯ãã¿ã¼ã²ããã¨ãªããã¼ãã«ã®ä¸»ãã¼ã«ã©ã ãåç
§ãã¦ãã¾ãã"
+"義ãã¾ãããªã¬ã¼ã·ã§ãã«ã¢ãã«ã¯å¤å¯¾ä¸é¢é£ã§ããã¤ã¾ããããã¼ãã«ã®å¤é¨ãã¼"
+"ã¯ãã¿ã¼ã²ããã¨ãªããã¼ãã«ã®ä¸»ãã¼ã«ã©ã ãåç
§ãã¦ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:1512
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
-#, fuzzy, no-c-format
msgid "<literal>name</literal>: the name of the property."
msgstr "<literal>name</literal>ï¼ããããã£åã"
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column></literal> "
"element(s)."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (ãªãã·ã§ã³):å¤é¨ãã¼ã«ã©ã ã®ååã ãã¹ããã "
-"<literal><column></literal> è¦ç´ ã§ãæå®ã§ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (ãªãã·ã§ã³):å¤é¨ãã¼ã«ã©ã ã®ååã ãã¹ããã "
+"<literal>column</literal> (ãªãã·ã§ã³):å¤é¨ãã¼ã«ã©ã ã®ååããã¹ããã "
"<literal><column></literal> ã«ã©ã ã«ãã£ã¦ãæå®ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ã ãªãã¬ã¯ã·ã§ã³ã«ããæ±º"
-"å®ãããããããã£ã®åï¼ï¼é¢é£ã¯ã©ã¹ã®ååã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>class</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ãªãã¬ã¯ã·ã§ã³ã«ããæ±ºå®ã"
"ããããããã£ã®åï¼ï¼ é¢é£ã¯ã©ã¹ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
@@ -2959,24 +2194,17 @@
"ã¸ãã©ã®æä½ãã«ã¹ã±ã¼ãããããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>fetch</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>select</"
-"literal> ): å¤é¨çµåãã§ãããé æ¬¡é¸æãã§ããï¼sequential select fetchï¼ãé¸"
-"æãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>fetch</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>select</"
"literal> ï¼ï¼ å¤é¨çµåãã§ããã¨é æ¬¡é¸æãã§ããï¼sequential select fetchï¼ã®"
"ã©ã¡ããã鏿ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2986,26 +2214,25 @@
"the same column(s), or by a trigger or other application."
msgstr ""
"<literal>update, insert</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal> ï¼ï¼ ãããã³ã°ãããã«ã©ã ãSQLã® <literal>UPDATE</literal> ã¾ã㯠"
-"<literal>INSERT</literal> æã«å«ã¾ãããã¨ãæå®ãã¾ãã 両æ¹ã¨ã "
-"<literal>false</literal> ã«è¨å®ããã¨ã ãã®å¤ãåãã«ã©ã ã«ãããã³ã°ããã"
-"ä»ã®ããããã£ãããªã¬ã ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦åæåãããç´ç²ãªãå°"
-"åºãããããã£ãå¯è½ã«ãªãã¾ãã"
+"literal> ï¼ï¼ ãããã³ã°ãããã«ã©ã ã SQL ã® <literal>UPDATE</literal> ã¾ã"
+"㯠<literal>INSERT</literal> æã«å«ã¾ãããã¨ãæå®ãã¾ãã両æ¹ã¨ã "
+"<literal>false</literal> ã«è¨å®ããã¨ããã®å¤ãåãã«ã©ã ã«ãããã³ã°ãããä»"
+"ã®ããããã£ãããªã¬ãä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦åæåãããç´ç²ãªãå°åºã"
+"ããããã£ãå¯è½ã«ãªãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1554
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>ï¼ãªãã·ã§ã³ï¼ï¼ ãã®å¤é¨ãã¼ã«çµåãããé¢é£"
-"ã¯ã©ã¹ã®ããããã£åã ä½ãæå®ããªããã°ãé¢é£ã¯ã©ã¹ã®ä¸»ãã¼ã使ããã¾ãã"
+"<literal>property-ref</literal>: (ãªãã·ã§ã³) ãã®å¤é¨ãã¼ã«å ãããé¢é£ã¯ã©"
+"ã¹ã®ããããã£ã®ååãæå®ããã¦ããªãå ´åã¯ãé¢é£ã¯ã©ã¹ã®ä¸»ãã¼ã使ç¨ããã¾"
+"ãã"
#. Tag: para
-#: basic_mapping.xml:1567
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. By allowing this to be the target of "
@@ -3013,23 +2240,21 @@
"one-to-one."
msgstr ""
"<literal>unique</literal>ï¼ãªãã·ã§ã³ï¼ï¼ å¤é¨ãã¼ã«ã©ã ã«å¯¾ãã¦ã¦ãã¼ã¯å¶ç´"
-"ãã¤ããDDLã®çæãå¯è½ã«ãã¾ãã ã¾ãã<literal>property-ref</literal> ã®"
-"ã¿ã¼ã²ããã«ãããã¨ãã§ãã¾ãã ããã«ããé¢é£ã®å¤é度ã广çã«ä¸å¯¾ä¸ã«ãã¾"
+"ãã¤ãã DDL ã®çæãå¯è½ã«ãã¾ããã¾ãã <literal>property-ref</literal> ã®"
+"ã¿ã¼ã²ããã«ãããã¨ãã§ãã¾ããããã«ããé¢é£ã®å¤é度ã广çã«ä¸å¯¾ä¸ã«ãã¾"
"ãã"
#. Tag: para
-#: basic_mapping.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
-"<literal>not-null</literal> (ãªãã·ã§ã³):å¤é¨ãã¼ã«ã©ã ã«å¯¾ãã¦ã nullå¤ã許"
-"å¯ããDDLã®çæãå¯è½ã«ãã¾ã"
+"<literal>not-null</literal> (ãªãã·ã§ã³): å¤é¨ãã¼ã«ã©ã ã«å¯¾ãã¦ã null å¤ã"
+"許å¯ãã DDL ã®çæãå¯è½ã«ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3041,49 +2266,42 @@
"<literal>lazy</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>proxy</"
"literal> ): ããã©ã«ãã§ã¯ãå¤é度ï¼ã®é¢é£ããããã·ã¨ãªãã¾ãã "
"<literal>lazy=\"no-proxy\"</literal> ã¯ãã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ãã"
-"ã¨ãã«ã ããããã£ãé
å»¶ãã§ããããããæå®ãã¾ã (ãã«ãæã«ãã¤ãã³ã¼ãå®"
+"ã¨ãã«ãããããã£ãé
å»¶ãã§ããããããæå®ãã¾ã (ãã«ãæã«ãã¤ãã³ã¼ãå®"
"è£
ãå¿
è¦ã«ãªãã¾ã)ã <literal>lazy=\"false\"</literal> ã¯é¢é£ã常ã«å³æã«"
"ãã§ããããããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1599
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how foreign keys that reference missing rows will be "
"handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>exception</"
-"literal> ): æ¬ è½ããè¡ãåç
§ããå¤é¨ãã¼ãã©ã®ããã«æ±ãããæå®ãã¾ãã "
-"<literal>ignore</literal> ã¯æ¬ è½ããè¡ãnullé¢é£ã¨ãã¦æ±ãã¾ãã"
+"<literal>not-found</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>exception</"
+"literal>ï¼: åç
§å
ã®è¡ããªãå¤é¨ãã¼ãã©ã®ããã«æ±ãããæå®ãã¾ã: "
+"<literal>ignore</literal> ãæå®ããã¨ãè¡ããªããã¨ãé¢é£ããªããã®ã¨ãã¦æ±"
+"ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
"class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (ãªãã·ã§ã³):é¢é£ããã¯ã©ã¹ã®ã¨ã³ãã£ãã£"
-"åã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (ãªãã·ã§ã³):é¢é£ã¯ã©ã¹ã®ã¨ã³ãã£ãã£å"
+"<literal>entity-name</literal> (ãªãã·ã§ã³):é¢é£ããã¯ã©ã¹ã®ã¨ã³ãã£ãã£åã"
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
"<literal>formula</literal> (ãªãã·ã§ã³): <emphasis> è¨ç®ããã</emphasis> å¤"
-"é¨ãã¼ã«å¯¾ãã¦å¤ãå®ç¾©ããSQLå¼"
+"é¨ãã¼ã«å¯¾ãã¦å¤ãå®ç¾©ãã SQL å¼"
#. Tag: para
-#: basic_mapping.xml:1619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
"meaningful value other than <literal>none</literal> will propagate certain "
@@ -3093,41 +2311,31 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
"<literal>cascade</literal> 屿§ã« <literal>none</literal> 以å¤ã®æå³ã®ããå¤"
-"ããè¨å®ããã¨ã é¢é£ãªãã¸ã§ã¯ãã¸ããæä½ã伿ãããã¨ã«ãªãã¾ãã æå³ã®"
-"ããå¤ã¨ã¯Hibernateã®åºæ¬æä½ã®ååã®ãã¨ã§ã <literal>delete-orphan</"
-"literal> 㨠<literal>all</literal> ãæä½åãã«ã³ãã§åºåã£ãçµã¿åãã ï¼ä¾"
-"ãã° <literal>cascade=\"persist,merge,evict\"</literal> ã <literal>cascade="
-"\"all,delete-orphan\"</literal>ï¼ã ã¾ãããã ãã§ãªã <literal>persist, "
-"merge, delete, save-update, evict, replicate, lock, refresh</literal> ã®ãã¨"
-"ãæãã¾ãã 詳ãã説æã¯ <xref linkend=\"objectstate-transitive\"/> ãè¦ã¦ã"
-"ã ããã å¤ãä¸ã¤ã®é¢é£(many-to-oneã¨one-to-oneé¢é£)ã¯ã åç¬ã§ã®åé¤"
-"ï¼orphan delete)ããµãã¼ããã¦ããªããã¨ã«æ³¨æãã¦ãã ããã"
+"ãè¨å®ããã¨ãé¢é£ãªãã¸ã§ã¯ãã¸ããæä½ã伿ãããã¨ã«ãªãã¾ããæå³ã®ãã"
+"å¤ã¨ã¯ Hibernate ã®åºæ¬æä½ã®ååã®ãã¨ã§ã <literal>delete-orphan</literal> "
+"㨠<literal>all</literal> ãæä½åãã«ã³ãã§åºåã£ãçµã¿åãã ï¼ä¾ãã° "
+"<literal>cascade=\"persist,merge,evict\"</literal> ã <literal>cascade=\"all,"
+"delete-orphan\"</literal>ï¼ãã¾ãããã ãã§ãªã <literal>persist, merge, "
+"delete, save-update, evict, replicate, lock, refresh</literal> ã®ãã¨ãæãã¾"
+"ãã詳ãã説æã¯ <xref linkend=\"objectstate-transitive\"/> ãåç
§ãã¦ãã ã"
+"ããå¤ãä¸ã¤ã®é¢é£ (many-to-one 㨠one-to-oneé¢é£) ã¯ãåç¬ã§ã®åé¤ ï¼orphan "
+"delete) ããµãã¼ããã¦ããªããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:1632
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
"å
¸åç㪠<literal>many-to-one</literal> 宣è¨ã¯æ¬¡ã®ããã«ã·ã³ãã«ã§ããï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1636
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1638
-#, fuzzy, no-c-format
-msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
"mapping legacy data where a foreign key refers to a unique key of the "
"associated table other than the primary key. This is a complicated and "
@@ -3137,43 +2345,24 @@
"the SchemaExport tool."
msgstr ""
"<literal>property-ref</literal> 屿§ã¯ãå¤é¨ãã¼ãé¢é£ä»ãããããã¼ãã«ã®ã"
-"主ãã¼ã§ãªã ã¦ãã¼ã¯ãã¼ãåç
§ãã¦ããã¬ã¬ã·ã¼ãã¼ã¿ããããããããã«ã ã使"
-"ãã¹ãã§ãã ããã¯éããªã¬ã¼ã·ã§ãã«ã¢ãã«ã§ãã ä¾ãã° <literal>Product</"
-"literal> ã¯ã©ã¹ãã 主ãã¼ã§ãªãã¦ãã¼ã¯ãªã·ãªã¢ã«ãã³ãã¼ãæã£ã¦ããã¨ä»®å®"
-"ãã¦ã¿ã¦ãã ããã ï¼ <literal>unique</literal> 屿§ã¯SchemaExportãã¼ã«ã"
-"使ã£ãHibernateã®DDLçæãå¶å¾¡ãã¾ããï¼"
+"主ãã¼ã§ãªãã¦ãã¼ã¯ãã¼ãåç
§ãã¦ããã¬ã¬ã·ã¼ãã¼ã¿ããããããããã«ã ã使"
+"ãã¹ãã§ããããã¯éããªã¬ã¼ã·ã§ãã«ã¢ãã«ã§ããä¾ãã° <literal>Product</"
+"literal> ã¯ã©ã¹ãã主ãã¼ã§ãªãã¦ãã¼ã¯ãªã·ãªã¢ã«ãã³ãã¼ãæã£ã¦ããã¨ä»®å®ã"
+"ã¦ã¿ã¦ãã ãããï¼ <literal>unique</literal> 屿§ã¯ SchemaExport ãã¼ã«ã使ã£"
+"ã Hibernate ã® DDL çæãå¶å¾¡ãã¾ããï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
msgstr ""
"以ä¸ã®ããã« <literal>OrderItem</literal> ã«å¯¾ãã¦ãããã³ã°ã使ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1655
-#, fuzzy, no-c-format
msgid "This is not encouraged, however."
msgstr "ããããããã¯æ±ºãã¦æ¨å¥¨ã§ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
@@ -3181,35 +2370,24 @@
"properties></literal> element."
msgstr ""
"åç
§ããã¦ãã¼ã¯ãã¼ããé¢é£ããã¨ã³ãã£ãã£ã®å¤æ°ã®ããããã£ããæ§æããã"
-"å ´åã æå®ãã <literal><properties></literal> è¦ç´ å
ã§ãåç
§ãããã"
-"ããã£ããããã³ã°ããã¹ãã§ãã"
+"å ´åãæå®ãã <literal><properties></literal> è¦ç´ å
ã§ãåç
§ããããã"
+"ãã£ããããã³ã°ããã¹ãã§ãã"
#. Tag: para
-#: basic_mapping.xml:1664
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
"a property path:"
msgstr ""
"ããåç
§ããã¦ãã¼ã¯ãã¼ãã³ã³ãã¼ãã³ãã®ããããã£ã§ããå ´åã¯ãããããã£"
-"ã®ãã¹ãæå®ã§ãã¾ãã"
+"ã®ãã¹ãæå®ã§ãã¾ã:"
-#. Tag: programlisting
-#: basic_mapping.xml:1668
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1673
-#, fuzzy, no-c-format
msgid "One-to-one"
msgstr "one-to-one"
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
@@ -3218,31 +2396,9 @@
"ä»ã®æ°¸ç¶ã¯ã©ã¹ã¸ã®ä¸å¯¾ä¸é¢é£ã¯ã<literal>one-to-one</literal> è¦ç´ ã§å®ç¾©ãã¾"
"ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:1693
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1713
-#, fuzzy, no-c-format
-msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
"constraint on the primary key of the mapped table and references the table "
"of the associated class. This option affects the order in which <literal>save"
@@ -3251,26 +2407,24 @@
"tool."
msgstr ""
"<literal>constrained</literal>ï¼ãªãã·ã§ã³ï¼ï¼ ãããã³ã°ããããã¼ãã«ã®ä¸»"
-"ãã¼ã«å¯¾ããå¤é¨ãã¼å¶ç´ãã é¢é£ã¯ã©ã¹ã®ãã¼ãã«ãåç
§ãããã¨ãæå®ãã¾"
-"ãã ãã®ãªãã·ã§ã³ã¯ <literal>save()</literal> 㨠<literal>delete()</"
-"literal> ãã«ã¹ã±ã¼ããããé åºã«å½±é¿ãã ããã¦é¢é£ããããã·ããããã©ãã"
-"ã«ãå½±é¿ãã¾ã ï¼ããã¦ã¹ãã¼ãã¨ã¯ã¹ãã¼ããã¼ã«ã«ã使ããã¾ãï¼ã"
+"ãã¼ã«å¯¾ããå¤é¨ãã¼å¶ç´ããé¢é£ã¯ã©ã¹ã®ãã¼ãã«ãåç
§ãããã¨ãæå®ãã¾ãã"
+"ãã®ãªãã·ã§ã³ã¯ <literal>save()</literal> 㨠<literal>delete()</literal> ã"
+"ã«ã¹ã±ã¼ããããé åºã«å½±é¿ããããã¦é¢é£ããããã·ããããã©ããã«ãå½±é¿ãã¾"
+"ã ï¼ããã¦ã¹ãã¼ãã¨ã¯ã¹ãã¼ããã¼ã«ã«ã使ããã¾ãï¼ã"
#. Tag: para
-#: basic_mapping.xml:1728
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to the primary key of this class. If not "
"specified, the primary key of the associated class is used."
msgstr ""
"<literal>property-ref</literal>ï¼ãªãã·ã§ã³ï¼ï¼ ãã®ã¯ã©ã¹ã®ä¸»ãã¼ã«çµåãã"
-"ãé¢é£ã¯ã©ã¹ã®ããããã£åã æå®ãããªããã°ãé¢é£ã¯ã©ã¹ã®ä¸»ãã¼ã使ããã¾"
+"ãé¢é£ã¯ã©ã¹ã®ããããã£åãæå®ãããªããã°ãé¢é£ã¯ã©ã¹ã®ä¸»ãã¼ã使ããã¾"
"ãã"
#. Tag: para
-#: basic_mapping.xml:1741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
"map to the primary key of the owning entity. If this is not the case, you "
@@ -3279,13 +2433,12 @@
"example."
msgstr ""
"<literal>formula</literal> (ãªãã·ã§ã³): ã»ã¨ãã©ãã¹ã¦ã®ä¸å¯¾ä¸é¢é£ã¯ãªã¼ãã¼"
-"ã®ã¨ã³ãã£ãã£ã®ä¸»ãã¼ã¸ã¨ãããã³ã°ããã¾ãã ãã以å¤ã®ç¨ãªå ´åã¯ã ä»ã®ã«"
-"ã©ã ããè¤æ°ã®ã«ã©ã ãSQLæ§æã使ã£ãçµåããããã®å¼ãæå®ã§ãã¾ãã ï¼ä¾ã¯ "
+"ã®ã¨ã³ãã£ãã£ã®ä¸»ãã¼ã¸ã¨ãããã³ã°ããã¾ãããã以å¤ã®ç¨ãªå ´åã¯ãä»ã®ã«ã©"
+"ã ããè¤æ°ã®ã«ã©ã ã SQL æ§æã使ã£ãçµåããããã®å¼ãæå®ã§ãã¾ããï¼ä¾ã¯ "
"<literal>org.hibernate.test.onetooneformula</literal> ãåç
§ãã¦ãã ãããï¼"
#. Tag: para
-#: basic_mapping.xml:1749
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3299,47 +2452,42 @@
"<literal>lazy</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>proxy</"
"literal> ): ããã©ã«ãã§ã¯ãå¤é度ï¼ã®é¢é£ããããã·ã¨ãªãã¾ãã "
"<literal>lazy=\"no-proxy\"</literal> ã¯ãã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ãã"
-"ã¨ãã«ã ããããã£ãé
å»¶ãã§ããããããæå®ãã¾ã (ãã«ãæã«ãã¤ãã³ã¼ãå®"
+"ã¨ãã«ãããããã£ãé
å»¶ãã§ããããããæå®ãã¾ã (ãã«ãæã«ãã¤ãã³ã¼ãå®"
"è£
ãå¿
è¦ã«ãªãã¾ã)ã <literal>lazy=\"false\"</literal> ã¯é¢é£ã常ã«å³æã«"
"ãã§ããããããæå®ãã¾ãã <emphasis>ãã <literal>constrained=\"false\"</"
-"literal> ãªãã°ã ãããã·ã¯ä½¿ç¨ä¸å¯è½ã¨ãªããé¢é£ã峿ã«ãã§ãããããã¨ã«"
-"注æãã¦ãã ããï¼</emphasis>"
+"literal> ãªãã°ããããã·ã¯ä½¿ç¨ä¸å¯è½ã¨ãªããé¢é£ã峿ã«ãã§ãããããã¨ã«æ³¨"
+"æãã¦ãã ããã</emphasis>"
#. Tag: para
-#: basic_mapping.xml:1767
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are two varieties of one-to-one associations:"
msgstr "ä¸å¯¾ä¸é¢é£ã«ã¯2種é¡ããã¾ãï¼"
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
msgstr "主ãã¼é¢é£"
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
msgstr "ã¦ãã¼ã¯å¤é¨ãã¼é¢é£"
#. Tag: para
-#: basic_mapping.xml:1779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
"related by the association, then the two table rows share the same primary "
"key value. To relate two objects by a primary key association, ensure that "
"they are assigned the same identifier value."
msgstr ""
-"主ãã¼é¢é£ã«ã¯ãç¹å¥ãªãã¼ãã«ã«ã©ã ã¯å¿
è¦ããã¾ããã ãã2ã¤ã®è¡ãé¢é£ã«ã"
-"ãé¢ä¿ãã¦ããã°ã2ã¤ã®ãã¼ãã«ã¯åã主ãã¼ã®å¤ãå
±æãã¾ãã ãã®ãã2ã¤ã®ãª"
-"ãã¸ã§ã¯ãã主ãã¼é¢é£ã«ãã£ã¦é¢é£ä»ãããã®ã§ããã°ã 確å®ã«åãèå¥åã®å¤ã"
-"代å
¥ããªããã°ãªãã¾ããã"
+"主ãã¼é¢é£ã«ã¯ãç¹å¥ãªãã¼ãã«ã«ã©ã ã¯å¿
è¦ããã¾ããããã2ã¤ã®è¡ãé¢é£ã«ãã"
+"é¢ä¿ãã¦ããã°ã2ã¤ã®ãã¼ãã«ã¯åã主ãã¼ã®å¤ãå
±æãã¾ãããã®ãã2ã¤ã®ãªã"
+"ã¸ã§ã¯ãã主ãã¼é¢é£ã«ãã£ã¦é¢é£ä»ãããã®ã§ããã°ã確å®ã«åãèå¥åã®å¤ã代"
+"å
¥ããªããã°ãªãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:1786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
"<literal>Employee</literal> and <literal>Person</literal> respectively:"
@@ -3347,123 +2495,59 @@
"主ãã¼é¢é£ãè¡ãããã«ã¯ã以ä¸ã®ãããã³ã°ã <literal>Employee</literal> 㨠"
"<literal>Person</literal> ã®ããããã«è¿½å ãã¦ãã ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:1791
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1794
-#, fuzzy, no-c-format
-msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
"tables are equal. You use a special Hibernate identifier generation strategy "
"called <literal>foreign</literal>:"
msgstr ""
-"ããã§ãPERSONã¨EMPLOYEEãã¼ãã«ã®é¢ä¿ããè¡ã®ä¸»ãã¼ãåãã§ãããã¨ã確å®ã«"
-"ããªããã°ããã¾ããã ããã§ã¯ã<literal>foreign</literal> ã¨ããç¹æ®ãª"
-"Hibernateèå¥åçææ¦ç¥ã使ãã¾ãï¼"
+"ããã§ã PERSON 㨠EMPLOYEE ãã¼ãã«ã®é¢ä¿ããè¡ã®ä¸»ãã¼ãåãã§ãããã¨ã確"
+"å®ã«ããªããã°ããã¾ãããããã§ã¯ã <literal>foreign</literal> ã¨ããç¹æ®ãª "
+"Hibernate èå¥åçææ¦ç¥ã使ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1800
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1802
-#, fuzzy, no-c-format
-msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
"primary key value as the <literal>Employee</literal> instance referred with "
"the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
-"<literal>Employee</literal> ã¤ã³ã¹ã¿ã³ã¹ãã<literal>Person</literal> ã® "
-"<literal>employee</literal> ããããã£ã§åç
§ãããããã«ã æ°ããã»ã¼ããã"
-"ã <literal>Person</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¯åã主ãã¼ã®å¤ã代å
¥ããã¾"
-"ãã æ°ããã»ã¼ããã <literal>Person</literal> ã¤ã³ã¹ã¿ã³ã¹ã¯ã ãã® "
+"<literal>Employee</literal> ã¤ã³ã¹ã¿ã³ã¹ãã <literal>Person</literal> ã® "
+"<literal>employee</literal> ããããã£ã§åç
§ãããããã«ãæ°ããã»ã¼ãããã "
+"<literal>Person</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¯åã主ãã¼ã®å¤ã代å
¥ããã¾ããæ°"
+"ããã»ã¼ããã <literal>Person</literal> ã¤ã³ã¹ã¿ã³ã¹ã¯ããã® "
"<literal>Person</literal> ã® <literal>employee</literal> ããããã£ãåç
§ã"
"ã <literal>Employee</literal> ã¤ã³ã¹ã¿ã³ã¹ã¨ãã¦åã主ãã¼ãå²ãå½ã¦ããã¾"
"ãã"
#. Tag: para
-#: basic_mapping.xml:1808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
"<literal>Employee</literal> to <literal>Person</literal>, can be expressed "
"as:"
msgstr ""
-"ãã1ã¤ã®æ¹æ³ã¨ãã¦ã<literal>Employee</literal> ãã <literal>Person</"
-"literal> ã¸ã® ã¦ãã¼ã¯å¶ç´ã使ã£ãå¤é¨ãã¼é¢é£ã¯ä»¥ä¸ã®ããã«è¡¨ç¾ããã¾ãï¼"
+"ãã1ã¤ã®æ¹æ³ã¨ãã¦ã <literal>Employee</literal> ãã <literal>Person</"
+"literal> ã¸ã®ã¦ãã¼ã¯å¶ç´ã使ã£ãå¤é¨ãã¼é¢é£ã¯ä»¥ä¸ã®ããã«è¡¨ç¾ããã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1813
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1815
-#, fuzzy, no-c-format
-msgid ""
"This association can be made bidirectional by adding the following to the "
"<literal>Person</literal> mapping:"
msgstr ""
-"ããã¦ãã®é¢é£ã¯ã 以ä¸ã®è¨è¿°ã <literal>Person</literal> ã®ãããã³ã°ã«è¿½å "
-"ãããã¨ã§åæ¹åã«ãããã¨ãã§ãã¾ãï¼"
+"ããã¦ãã®é¢é£ã¯ã以ä¸ã®è¨è¿°ã <literal>Person</literal> ã®ãããã³ã°ã«è¿½å ã"
+"ããã¨ã§åæ¹åã«ãããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1820
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1825
-#, fuzzy, no-c-format
msgid "Natural-id"
msgstr "natural-id"
-#. Tag: programlisting
-#: basic_mapping.xml:1827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1829
-#, fuzzy, no-c-format
-msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
"try to identify natural keys for all entities. A natural key is a property "
"or combination of properties that is unique and non-null. It is also "
@@ -3472,16 +2556,15 @@
"unique key and nullability constraints and, as a result, your mapping will "
"be more self-documenting."
msgstr ""
-"主ãã¼ã¨ãã¦ä»£çãã¼ã®ä½¿ç¨ãæ¨å¥¨ãã¾ããã ãã¹ã¦ã®ã¨ã³ãã£ãã£ã«å¯¾ãã¦èªç¶"
-"ãã¼ãèå¥ããããã«ãã¹ãã§ãã èªç¶ãã¼ã¯ã¦ãã¼ã¯ãã¤énullãªä¸ã¤ã®ããã"
-"ãã£ãã¾ãã¯ããããã£ã®é£çµã§ãã ä¸å¤ã§ããã°ããã«è¯ãã§ãã <literal><"
+"主ãã¼ã¨ãã¦ä»£çãã¼ã®ä½¿ç¨ãæ¨å¥¨ãã¾ããããã¹ã¦ã®ã¨ã³ãã£ãã£ã«å¯¾ãã¦èªç¶"
+"ãã¼ãèå¥ããããã«ãã¹ãã§ããèªç¶ãã¼ã¯ã¦ãã¼ã¯ãã¤é null ãªä¸ã¤ã®ããã"
+"ãã£ãã¾ãã¯ããããã£ã®é£çµã§ããä¸å¤ã§ããã°ããã«è¯ãã§ãã <literal><"
"natural-id></literal> è¦ç´ å
ã§èªç¶ãã¼ã®ããããã£ããããã³ã°ãã¾ãã "
-"Hibernateã¯å¿
ç¶çã«ã¦ãã¼ã¯ãã¤nullå¤ã許å¯ããå¶ç´ãçæãã ãããã¦ããã"
-"ã³ã°ã¯ããèªå·±è¨è¿°çã«ãªãã¾ãã"
+"Hibernate ã¯å¿
ç¶çã«ã¦ãã¼ã¯ã㤠null å¤ã許å¯ããå¶ç´ãçæãããããã¦ãã"
+"ãã³ã°ã¯ããèªå·±è¨è¿°çã«ãªãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1838
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> to compare the natural key properties of the "
@@ -3491,8 +2574,7 @@
"<literal>hashCode()</literal> ã®å®è£
ãå¼·ããå§ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1843
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
@@ -3500,63 +2582,37 @@
"ãã®ãããã³ã°ã¯èªç¶ä¸»ãã¼ã使ã£ãã¨ã³ãã£ãã£ã§ã®ä½¿ç¨ãæå³ãã¦ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:1849
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
"literal>): by default, natural identifier properties are assumed to be "
"immutable (constant)."
msgstr ""
-"<literal>mutable</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠<literal>false</"
+"<literal>mutable</literal> (ãªãã·ã§ã³ã ããã©ã«ã㯠<literal>false</"
"literal> ): ããã©ã«ãã§ã¯ãèªç¶èå¥åããããã£ã¯ä¸å¤(宿°)ã¨æ³å®ããã¦ãã¾"
"ãã"
#. Tag: title
-#: basic_mapping.xml:1859
#, fuzzy, no-c-format
msgid "Component and dynamic-component"
msgstr "component, dynamic-component"
#. Tag: para
-#: basic_mapping.xml:1861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
"object to columns of the table of a parent class. Components can, in turn, "
"declare their own properties, components or collections. See the \"Component"
"\" examples below:"
msgstr ""
-"<literal><component></literal> è¦ç´ ã¯ã åãªãã¸ã§ã¯ãã®ããããã£ã親"
-"ã¯ã©ã¹ã®ãã¼ãã«ã®ã«ã©ã ã¸ãããã³ã°ãã¾ãã ã³ã³ãã¼ãã³ãã¯èªåã®ããã"
-"ãã£ãã³ã³ãã¼ãã³ããã³ã¬ã¯ã·ã§ã³ã®é ã«å®ç¾©ã§ãã¾ãã 以ä¸ã®ãã³ã³ãã¼ãã³"
-"ãããè¦ã¦ãã ããã"
+"<literal><component></literal> è¦ç´ ã¯ãåãªãã¸ã§ã¯ãã®ããããã£ã親ã¯"
+"ã©ã¹ã®ãã¼ãã«ã®ã«ã©ã ã¸ãããã³ã°ãã¾ããã³ã³ãã¼ãã³ãã¯èªåã®ããããã£ã"
+"ã³ã³ãã¼ãã³ããã³ã¬ã¯ã·ã§ã³ã®é ã«å®ç¾©ã§ãã¾ãã以ä¸ã®ãã³ã³ãã¼ãã³ãããè¦"
+"ã¦ãã ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:1879
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1887
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
@@ -3564,48 +2620,37 @@
"ãããããããã£ã®åï¼ï¼ ã³ã³ãã¼ãã³ãï¼åï¼ã¯ã©ã¹ã®ååã"
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
"<literal>INSERTs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>insert</literal> ï¼ãããã³ã°ãããã«ã©ã ãSQLã® <literal>INSERT</"
-"literal> ã«ç¾ããããã«ããã©ãããæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>insert</literal>ï¼ãããã³ã°ãããã«ã©ã ãSQLã® <literal>INSERT</"
+"<literal>insert</literal>ï¼ãããã³ã°ãããã«ã©ã ã SQL ã® <literal>INSERT</"
"literal> ã«ç¾ããããã«ãããã©ãããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
"<literal>UPDATEs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal> : ãããã³ã°ãããã«ã©ã ãSQL ã® <literal>UPDATE</"
-"literal> ã«ç¾ããããã«ãããã©ãããæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal>ï¼ãããã³ã°ãããã«ã©ã ãSQLã® <literal>UPDATE</"
+"<literal>update</literal>ï¼ãããã³ã°ãããã«ã©ã ã SQL ã® <literal>UPDATE</"
"literal> ã«ç¾ããããã«ãããã©ãããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (optional - ããã©ã«ã㯠<literal>false</literal> ): "
-"ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ããã¨ãã«ã ã³ã³ãã¼ãã³ããé
å»¶ãã¦ãã§ãã"
-"ããããæå®ãã¾ãã (ãã¤ãã³ã¼ãå®è£
ã使ããæéãå¿
è¦ã«ãªãã¾ã)"
+"<literal>lazy</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
+"literal> ): ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«æåã«ã¢ã¯ã»ã¹ããã¨ãã«ãã³ã³ãã¼ãã³ããé
å»¶"
+"ãã¦ãã§ããããããæå®ãã¾ãã (ãã¤ãã³ã¼ãå®è£
ã使ããæéãå¿
è¦ã«ãªã"
+"ã¾ã)"
#. Tag: para
-#: basic_mapping.xml:1918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this component either do or do not "
@@ -3614,12 +2659,11 @@
msgstr ""
"<literal>optimistic-lock</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
"literal> ): ãã®ããããã£ã®æ´æ°ã«ã楽観ããã¯ã®åå¾ãè¦æ±ãããã©ãããæå®"
-"ãã¾ãã è¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ãã"
+"ãã¾ããè¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ãã"
"ã¹ãããæ±ºå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
"specifies that a unique constraint exists upon all mapped columns of the "
@@ -3630,50 +2674,45 @@
"å¨ããããæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
"child class to table columns."
msgstr ""
-"åã® <literal><property></literal> ã¿ã°ã§ã åã®ã¯ã©ã¹ã®ããããã£ã"
-"ãã¼ãã«ã«ã©ã ã«ãããã³ã°ãã¾ãã"
+"åã® <literal><property></literal> ã¿ã°ã§ãåã®ã¯ã©ã¹ã®ããããã£ããã¼"
+"ãã«ã«ã©ã ã«ãããã³ã°ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"<literal><component></literal> è¦ç´ ã¯ã親ã¨ã³ãã£ãã£ã¸æ»ãåç
§ã¨ã"
-"ã¦ã ã³ã³ãã¼ãã³ãã®ã¯ã©ã¹ã®ããããã£ããããã³ã°ãã <literal><"
-"parent></literal> ãµãè¦ç´ ã許å¯ãã¾ãã"
+"<literal><component></literal> è¦ç´ ã¯ã親ã¨ã³ãã£ãã£ã¸æ»ãåç
§ã¨ãã¦ã"
+"ã³ã³ãã¼ãã³ãã®ã¯ã©ã¹ã®ããããã£ããããã³ã°ãã <literal><parent></"
+"literal> ãµãè¦ç´ ã許å¯ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:1946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
msgstr ""
"<literal><dynamic-component></literal> è¦ç´ ã¯ã <literal>Map</literal> "
-"ãã³ã³ãã¼ãã³ãã¨ãã¦ãããã³ã°ããããã¨ãå¯è½ã«ãã¾ãã ããããã£åã¯map"
+"ãã³ã³ãã¼ãã³ãã¨ãã¦ãããã³ã°ããããã¨ãå¯è½ã«ãã¾ããããããã£å㯠map "
"ã®ãã¼ãåç
§ãã¾ãã<xref linkend=\"components-dynamic\"/> ãåç
§ãã¦ãã ã"
"ãã"
#. Tag: title
-#: basic_mapping.xml:1955
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Properties"
-msgstr "properties"
+msgstr "ããããã£"
#. Tag: para
-#: basic_mapping.xml:1957
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
"named, logical grouping of the properties of a class. The most important use "
@@ -3681,43 +2720,23 @@
"target of a <literal>property-ref</literal>. It is also a convenient way to "
"define a multi-column unique constraint. For example:"
msgstr ""
-"<literal><properties></literal> è¦ç´ ã¯ã¯ã©ã¹ã®ããããã£ã®æå®ãããã "
-"è«ççãªã°ã«ã¼ãã³ã°ãå¯è½ã«ãã¾ãã ãã®æ§é ã®æãéè¦ãªä½¿ç¨æ¹æ³ã¯ã "
+"<literal><properties></literal> è¦ç´ ã¯ã¯ã©ã¹ã®ããããã£ã®æå®ãããã"
+"è«ççãªã°ã«ã¼ãã³ã°ãå¯è½ã«ãã¾ãããã®æ§é ã®æãéè¦ãªä½¿ç¨æ¹æ³ã¯ã "
"<literal>property-ref</literal> ã®ã¿ã¼ã²ããã«ãªãããããã£ã®çµåã許å¯ãã"
-"ãã¨ã§ãã ããã¯ã¾ããè¤æ°ã«ã©ã ã®ã¦ãã¼ã¯å¶ç´ãå®ç¾©ããç°¡åãªæ¹æ³ã§ãããã¾"
+"ãã¨ã§ããããã¯ã¾ããè¤æ°ã«ã©ã ã®ã¦ãã¼ã¯å¶ç´ãå®ç¾©ããç°¡åãªæ¹æ³ã§ãããã¾"
"ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:1973
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1976
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
"<emphasis>not</emphasis> an actual property name."
msgstr ""
-"<literal>name</literal> : ã°ã«ã¼ãã³ã°ã®è«çåã å®éã®ããããã£åã§ã¯ "
+"<literal>name</literal> : ã°ã«ã¼ãã³ã°ã®è«çåãå®éã®ããããã£åã§ã¯ "
"<emphasis>ããã¾ãã</emphasis> ã"
#. Tag: para
-#: basic_mapping.xml:1994
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to these properties either do or do not "
@@ -3726,11 +2745,10 @@
msgstr ""
"<literal>optimistic-lock</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
"literal> ): ãããã®ããããã£ã®æ´æ°ã«æ¥½è¦³çããã¯ã®åå¾ãè¦æ±ãããã©ããã"
-"æå®ãã¾ãã è¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢"
+"æå®ãã¾ããè¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢"
"ããã¹ãããæ±ºå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
@@ -3739,49 +2757,18 @@
"ä¾ãã°ããã以ä¸ã®ãã㪠<literal><properties></literal> ãããã³ã°ã"
"ãã£ãå ´åï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:2015
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2017
-#, fuzzy, no-c-format
-msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
"主ãã¼ã®ä»£ããã« <literal>Person</literal> ãã¼ãã«ã®ã¦ãã¼ã¯ãã¼ã¸ã®åç
§ãæ"
-"ã¤ã ã¬ã¬ã·ã¼ãã¼ã¿ã®é¢é£ãæã¤ããããã¾ãããï¼"
+"ã¤ãã¬ã¬ã·ã¼ãã¼ã¿ã®é¢é£ãæã¤ããããã¾ãããï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:2022
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2024
-#, fuzzy, no-c-format
-msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
msgstr ""
@@ -3789,53 +2776,29 @@
"ããã"
#. Tag: title
-#: basic_mapping.xml:2032
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Subclass"
msgstr "subclass"
#. Tag: para
-#: basic_mapping.xml:2034
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
"root persistent class. For the table-per-class-hierarchy mapping strategy, "
"the <literal><subclass></literal> declaration is used. For example:"
msgstr ""
"æå¾ã«ããªã¢ã¼ãã£ãã¯ãªæ°¸ç¶åã«ã¯ãã«ã¼ãã®æ°¸ç¶ã¯ã©ã¹ã®åãµãã¯ã©ã¹ã®å®ç¾©ã"
-"å¿
è¦ã§ãã table-per-class-hierarchyãããã³ã°æ¦ç¥ã§ã¯ã <literal><"
+"å¿
è¦ã§ãã table-per-class-hierarchy ãããã³ã°æ¦ç¥ã§ã¯ã <literal><"
"subclass></literal> å®ç¾©ã使ããã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2047
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
msgstr "<literal>name</literal>ï¼ãµãã¯ã©ã¹ã®å®å
¨ä¿®é£¾ãããã¯ã©ã¹åã"
#. Tag: para
-#: basic_mapping.xml:2055
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
@@ -3844,43 +2807,25 @@
"åï¼ï¼ åã
ã®ãµãã¯ã©ã¹ãåºå¥ããããã®å¤ã"
#. Tag: para
-#: basic_mapping.xml:2061
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal>ï¼ãªãã·ã§ã³ï¼ï¼ é
å»¶åæåãããã·ã«ä½¿ãã¯ã©ã¹ãã¤ã³"
-"ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>proxy</literal> (ãªãã·ã§ã³): é
å»¶åæåãããã·ã«ä½¿ç¨ããã¯ã©ã¹ãã¤"
-"ã³ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (ãªãã·ã§ã³): é
å»¶åæåãããã·ã«ä½¿ç¨ããã¯ã©ã¹ãã¤"
-"ã³ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã"
+"ã³ã¿ã¼ãã§ã¼ã¹ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2067
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal>ï¼ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</"
-"literal> ï¼ï¼ <literal>lazy=\"false\"</literal> ã¨è¨å®ããã¨ãé
å»¶ãã§ããã"
-"使ç¨ã§ãã¾ããã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</literal> ): "
-"<literal>lazy=\"false\"</literal> ã¨ããã¨ãé
å»¶ãã§ããã使ç¨ã§ãã¾ããã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</literal> ): "
+"<literal>lazy</literal> (ãªãã·ã§ã³ãããã©ã«ã㯠<literal>true</literal> ): "
"<literal>lazy=\"false\"</literal> ã¨ããã¨ãé
å»¶ãã§ããã使ç¨ã§ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:2075
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
"<literal><version></literal> and <literal><id></literal> "
@@ -3889,30 +2834,27 @@
"this is not specified, the fully qualified Java class name is used."
msgstr ""
"åãµãã¯ã©ã¹ã§ã¯ãæ°¸ç¶ããããã£ã¨ãµãã¯ã©ã¹ãå®ç¾©ãã¾ãã <literal><"
-"version></literal> 㨠<literal><id></literal> ããããã£ã¯ã ã«ã¼ã"
-"ã¯ã©ã¹ããç¶æ¿ãããã¨ä»®å®ããã¾ãã é層æ§é ã«ããããµãã¯ã©ã¹ã¯ã ã¦ãã¼ã¯"
-"㪠<literal>discriminator-value</literal> ãå®ç¾©ããªããã°ãªãã¾ããã noneã"
-"æå®ãããã¨ãå®å
¨ä¿®é£¾ãããJavaã¯ã©ã¹åã使ããã¾ãã"
+"version></literal> 㨠<literal><id></literal> ããããã£ã¯ãã«ã¼ãã¯"
+"ã©ã¹ããç¶æ¿ãããã¨ä»®å®ããã¾ããé層æ§é ã«ããããµãã¯ã©ã¹ã¯ãã¦ãã¼ã¯ãª "
+"<literal>discriminator-value</literal> ãå®ç¾©ããªããã°ãªãã¾ããã none ãæ"
+"å®ãããã¨ãå®å
¨ä¿®é£¾ããã Java ã¯ã©ã¹åã使ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
msgstr ""
-"ç¶æ¿ã®ãããã³ã°ã«é¢ããæ
å ±ã¯ <xref linkend=\"inheritance\"/> ãè¦ã¦ãã ã"
-"ãã"
+"ç¶æ¿ã®ãããã³ã°ã«é¢ããæ
å ±ã¯ <xref linkend=\"inheritance\"/> ãåç
§ãã¦ãã "
+"ããã"
#. Tag: title
-#: basic_mapping.xml:2090
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Joined-subclass"
msgstr "joined-subclass"
#. Tag: para
-#: basic_mapping.xml:2092
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
"per-subclass mapping strategy. An inherited state is retrieved by joining "
@@ -3920,138 +2862,53 @@
"subclass></literal> element. For example:"
msgstr ""
"ãã1ã¤ã®æ¹æ³ã¨ãã¦ãåãµãã¯ã©ã¹ãèªèº«ã®ãã¼ãã«ã¸ãããã³ã°ãããã¨ãã§ãã¾"
-"ã (table-per-subclass mapping strategy)ã ç¶æ¿ããç¶æ
ã¯ã¹ã¼ãã¼ã¯ã©ã¹ã®ãã¼"
+"ã (table-per-subclass mapping strategy)ãç¶æ¿ããç¶æ
ã¯ã¹ã¼ãã¼ã¯ã©ã¹ã®ãã¼"
"ãã«ã使ã£ãçµåã§æ¤ç´¢ãã¾ãã <literal><joined-subclass></literal> è¦"
"ç´ ã使ç¨ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2105
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
-#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
msgstr "<literal>table</literal> :ãµãã¯ã©ã¹ãã¼ãã«ã®ååã"
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal>ï¼ãªãã·ã§ã³ï¼ï¼ é
å»¶åæåãããã·ã«ä½¿ãã¯ã©ã¹ãã¤ã³"
-"ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>proxy</literal> (ãªãã·ã§ã³): é
å»¶åæåãããã·ã«ä½¿ç¨ããã¯ã©ã¹ãã¤"
-"ã³ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (ãªãã·ã§ã³): é
å»¶åæåãããã·ã«ä½¿ç¨ããã¯ã©ã¹ãã¤"
-"ã³ã¿ã¼ãã§ã¤ã¹ãæå®ãã¾ãã"
+"ã³ã¿ã¼ãã§ã¼ã¹ãæå®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal>ï¼ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</"
-"literal> ï¼ï¼ <literal>lazy=\"false\"</literal> ã¨è¨å®ããã¨ãé
å»¶ãã§ããã"
-"使ç¨ã§ãã¾ããã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</literal> ): "
-"<literal>lazy=\"false\"</literal> ã¨ããã¨ãé
å»¶ãã§ããã使ç¨ã§ãã¾ããã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (ãªãã·ã§ã³, ããã©ã«ã㯠<literal>true</literal> ): "
+"<literal>lazy</literal> (ãªãã·ã§ã³ãããã©ã«ã㯠<literal>true</literal> ): "
"<literal>lazy=\"false\"</literal> ã¨ããã¨ãé
å»¶ãã§ããã使ç¨ã§ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:2132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
"subclass must, however, declare a table column holding the object identifier "
"using the <literal><key></literal> element. The mapping at the start "
"of the chapter would then be re-written as:"
msgstr ""
-"ãã®ãããã³ã°æ¦ç¥ã«ã¯ãèå¥ã«ã©ã ã¯å¿
è¦ããã¾ããã ãããåãµãã¯ã©ã¹ã¯ "
-"<literal><key></literal> è¦ç´ ã使ãã ãªãã¸ã§ã¯ãèå¥åãä¿æãããã¼"
-"ãã«ã«ã©ã ãå®ç¾©ããªããã°ãªãã¾ããã ãã®ç« ã®åãã®ãããã³ã°ã¯ä»¥ä¸ã®ããã«"
-"æ¸ãç´ãã¾ãï¼"
+"ãã®ãããã³ã°æ¦ç¥ã«ã¯ãèå¥ã«ã©ã ã¯å¿
è¦ããã¾ããããããåãµãã¯ã©ã¹ã¯ "
+"<literal><key></literal> è¦ç´ ã使ãããªãã¸ã§ã¯ãèå¥åãä¿æãããã¼ã"
+"ã«ã«ã©ã ãå®ç¾©ããªããã°ãªãã¾ããããã®ç« ã®åãã®ãããã³ã°ã¯ä»¥ä¸ã®ããã«æ¸"
+"ãç´ãã¾ãï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:2139
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:2148
-#, fuzzy, no-c-format
msgid "Union-subclass"
msgstr "union-subclass"
#. Tag: para
-#: basic_mapping.xml:2150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
"hierarchy to tables. This is called the table-per-concrete-class strategy. "
@@ -4064,90 +2921,42 @@
"example:"
msgstr ""
"3ã¤ç®ã®é¸æè¢ã¯ãç¶æ¿é層ã®å
·è±¡ã¯ã©ã¹ã®ã¿ããã¼ãã«ã«ãããã³ã°ãããã¨ã§ã "
-"(the table-per-concrete-classæ¦ç¥)ã ããããã®ãã¼ãã«ã¯ç¶æ¿ã®ç¶æ
ãå«ããã¹"
-"ã¦ã®ã¯ã©ã¹ã®æ°¸ç¶ç¶æ
ãå®ç¾©ãã¾ãã Hibernateã§ã¯ãã®æ§ãªç¶æ¿é層ãå¿
ãããå¿
"
-"è¦ã§ã¯ããã¾ããã åç´ã«ããããã®ã¯ã©ã¹ãã å¥ã
ã® <literal><class></"
-"literal> 宣è¨ã使ã£ã¦ãããã³ã°ãããã¨ãã§ãã¾ãã ãããããªã¢ã¼ãã£ãã¯ãª"
-"é¢é£(ä¾ãã° é層ã®ã¹ã¼ãã¼ã¯ã©ã¹ã¸ã®é¢é£)ã使ããããªãã <literal><union-"
+"(the table-per-concrete-class æ¦ç¥)ãããããã®ãã¼ãã«ã¯ç¶æ¿ã®ç¶æ
ãå«ããã¹"
+"ã¦ã®ã¯ã©ã¹ã®æ°¸ç¶ç¶æ
ãå®ç¾©ãã¾ãã Hibernate ã§ã¯ãã®æ§ãªç¶æ¿é層ãå¿
ãããå¿
"
+"è¦ã§ã¯ããã¾ãããåç´ã«ããããã®ã¯ã©ã¹ããå¥ã
ã® <literal><class></"
+"literal> 宣è¨ã使ã£ã¦ãããã³ã°ãããã¨ãã§ãã¾ãããããããªã¢ã¼ãã£ãã¯ãªé¢"
+"é£ (ä¾ãã°é層ã®ã¹ã¼ãã¼ã¯ã©ã¹ã¸ã®é¢é£) ã使ããããªãã <literal><union-"
"subclass></literal> ãããã³ã°ã使ãå¿
è¦ãããã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
msgstr "ãã®ãããã³ã°æ¦ç¥ã§ã¯èå¥ã«ã©ã ããã¼ã«ã©ã ã¯å¿
è¦ããã¾ããã"
#. Tag: title
-#: basic_mapping.xml:2206
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Join"
msgstr "join"
#. Tag: para
-#: basic_mapping.xml:2208
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
"properties of one class to several tables that have a one-to-one "
"relationship. For example:"
msgstr ""
-"<literal><join></literal> è¦ç´ ã使ããã¨ã§ã ï¼ã¤ã®ã¯ã©ã¹ã®ããããã£ã"
-"ããã¤ãã®ãã¼ãã«ã«ãããã³ã°ãããã¨ãã§ãã¾ãã"
+"ãã¼ãã«éã«ä¸å¯¾ä¸ã®é¢ä¿ãããã¨ãã <literal><join></literal> è¦ç´ ã使"
+"ããã¨ã§ãï¼ã¤ã®ã¯ã©ã¹ã®ããããã£ãããã¤ãã®ãã¼ãã«ã«ãããã³ã°ãããã¨ã"
+"ã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2222
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2226
-#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
msgstr "<literal>table</literal> :çµåãããã¼ãã«ã®åå"
#. Tag: para
-#: basic_mapping.xml:2243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"if set to <literal>join</literal>, the default, Hibernate will use an inner "
@@ -4160,31 +2969,29 @@
"<literal><join></literal> defined by the class and its superclasses."
msgstr ""
"<literal>fetch</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>join</"
-"literal> ): <literal>join</literal> ãè¨å®ããå ´åã Hibernateã¯ããã©ã«ã"
+"literal> ): <literal>join</literal> ãè¨å®ããå ´åã Hibernate ã¯ããã©ã«ã"
"ã§ãã¯ã©ã¹ãã¹ã¼ãã¼ã¯ã©ã¹ã§å®ç¾©ããã <literal><join></literal> ãæ¤ç´¢"
"ããã®ã«å
é¨çµåã使ãããµãã¯ã©ã¹ã§å®ç¾©ããã <literal><join></"
"literal> ãæ¤ç´¢ããã®ã«å¤é¨çµåã使ãã¾ãã <literal>select</literal> ãè¨å®"
-"ããå ´åã«ã¯ã Hibernateã¯ãµãã¯ã©ã¹ã§å®ç¾©ããã <literal><join></"
-"literal> ã®é¸æã«é æ¬¡é¸æã使ãã¾ãããã®å ´åã è¡ããµãã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹"
-"ã代表ãããã¨ãããã£ãå ´åã«ã®ã¿çºè¡ããã¾ãã å
é¨çµåã¯ã¯ã©ã¹ããã®ã¹ã¼"
-"ãã¼ã¯ã©ã¹ã§å®ç¾©ããã <literal><join></literal> ãæ¤ç´¢ ããããã«ä½¿ç¨"
-"ãã¾ãã"
+"ããå ´åã«ã¯ã Hibernate ã¯ãµãã¯ã©ã¹ã§å®ç¾©ããã <literal><join></"
+"literal> ã®é¸æã«é æ¬¡é¸æã使ãã¾ãããã®å ´åãè¡ããµãã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã"
+"代表ãããã¨ãããã£ãå ´åã«ã®ã¿çºè¡ããã¾ããå
é¨çµåã¯ã¯ã©ã¹ããã®ã¹ã¼ãã¼"
+"ã¯ã©ã¹ã§å®ç¾©ããã <literal><join></literal> ãæ¤ç´¢ããããã«ä½¿ç¨ãã¾"
+"ãã"
#. Tag: para
-#: basic_mapping.xml:2256
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will not insert or update the properties "
"defined by this join."
msgstr ""
"<literal>inverse</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
-"literal> ): ããå¯è½ã§ããã°ãHibernateã¯ãã®çµåã§å®ç¾©ããã¦ããããããã£ã«"
-"å¯¾ã æ¿å
¥ãæ´æ°ãè¡ãã¾ããã"
+"literal> ): ããå¯è½ã§ããã°ã Hibernate ã¯ãã®çµåã§å®ç¾©ããã¦ããããããã£"
+"ã«å¯¾ãæ¿å
¥ãæ´æ°ãè¡ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:2263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will insert a row only if the properties "
@@ -4192,88 +2999,51 @@
"retrieve the properties."
msgstr ""
"<literal>optional</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
-"literal> ): ããå¯è½ã§ããã°ãHibernateã¯ãã®çµåã§å®ç¾©ãããããããã£ãnull"
-"ã§ãªãå ´åã«ã®ã¿ è¡ãæ¿å
¥ãããã®ããããã£ã®æ¤ç´¢ã«ã¯å¸¸ã«å¤é¨çµåã使ç¨ãã¾"
-"ãã"
+"literal> ): ããå¯è½ã§ããã°ã Hibernate ã¯ãã®çµåã§å®ç¾©ãããããããã£ã "
+"null ã§ãªãå ´åã«ã®ã¿è¡ãæ¿å
¥ãããã®ããããã£ã®æ¤ç´¢ã«ã¯å¸¸ã«å¤é¨çµåã使ç¨ã"
+"ã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2272
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
"table while preserving value type semantics for all properties:"
msgstr ""
"ä¾ãã°äººã®ã¢ãã¬ã¹ã®æ
å ±ãåé¢ãããã¼ãã«ã«ãããã³ã°ãããã¨ãå¯è½ã§ã (ã"
-"ã¹ã¦ã®ããããã£ã«å¯¾ãã¦å¤åã®ã»ãã³ãã£ã¯ã¹ãä¿æãã¾ã)ã"
+"ã¹ã¦ã®ããããã£ã«å¯¾ãã¦å¤åã®ã»ãã³ãã£ã¯ã¹ãä¿æãã¾ã):"
-#. Tag: programlisting
-#: basic_mapping.xml:2277
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2279
-#, fuzzy, no-c-format
-msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
"tables than classes and a fine-grained domain model. However, it is useful "
"for switching between inheritance mapping strategies in a single hierarchy, "
"as explained later."
msgstr ""
-"ãã®ç¹å¾´ã¯ãã°ãã°ã¬ã¬ã·ã¼ãã¼ã¿ã¢ãã«ã«å¯¾ãã¦ã®ã¿æç¨ã§ããã ã¯ã©ã¹ãããå°"
-"ãªããã¼ãã«ã¨ãããã®ç´°ãããã¡ã¤ã³ã¢ãã«ãæ¨å¥¨ãã¾ãã ãããå¾ã§èª¬æããã"
+"ãã®ç¹å¾´ã¯ãã°ãã°ã¬ã¬ã·ã¼ãã¼ã¿ã¢ãã«ã«å¯¾ãã¦ã®ã¿æç¨ã§ãããã¯ã©ã¹ãããå°"
+"ãªããã¼ãã«ã¨ãããã®ç´°ãããã¡ã¤ã³ã¢ãã«ãæ¨å¥¨ãã¾ãããããå¾ã§èª¬æããã"
"ãã«ãï¼ã¤ã®ã¯ã©ã¹é層ã§ç¶æ¿ã®ãããã³ã°æ¦ç¥ãåãæ¿ããæã«ã¯æç¨ã§ãã"
#. Tag: title
-#: basic_mapping.xml:2289
#, no-c-format
-msgid "<title>Key</title>"
+msgid "Key"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
"this guide. It appears anywhere the parent mapping element defines a join to "
"a new table that references the primary key of the original table. It also "
"defines the foreign key in the joined table:"
msgstr ""
-"ä»ã¾ã§ä½åº¦ã <literal><key></literal> è¦ç´ ãåºã¦ãã¾ããã ãã®è¦ç´ ã¯æ°"
-"ãããã¼ãã«ã¸ã®çµåãå®ç¾©ãããã çµåãã¼ãã«ã§å¤é¨ãã¼ãå®ç¾©ããããã親è¦"
-"ç´ ã®ã©ãã«ã§ãç¾ãã ãªãªã¸ãã«ãã¼ãã«ã®ä¸»ãã¼ãåç
§ãã¾ãã"
+"ä»ã¾ã§ä½åº¦ã <literal><key></literal> è¦ç´ ãåºã¦ãã¾ããããã®è¦ç´ ã¯æ°"
+"ãããã¼ãã«ã¸ã®çµåãå®ç¾©ããããçµåãã¼ãã«ã§å¤é¨ãã¼ãå®ç¾©ããããã親è¦"
+"ç´ ã®ã©ãã«ã§ãç¾ãããªãªã¸ãã«ãã¼ãã«ã®ä¸»ãã¼ãåç
§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2307
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2318
-#, fuzzy, no-c-format
-msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
"literal>): specifies whether the foreign key constraint has database-level "
"cascade delete enabled."
@@ -4283,8 +3053,7 @@
"å®ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2325
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
"refers to columns that are not the primary key of the original table. It is "
@@ -4295,20 +3064,18 @@
"ã)ã"
#. Tag: para
-#: basic_mapping.xml:2332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
"columns are not nullable. This is implied whenever the foreign key is also "
"part of the primary key."
msgstr ""
-"<literal>not-null</literal> (ãªãã·ã§ã³): å¤é¨ãã¼ã«ã©ã ãnullå¤ã許容ããªã"
-"ãã¨ãæå®ãã¾ã (ãã®ãã¨ã¯å¤é¨ãã¼ã主ãã¼ã®ä¸é¨ã§ãããã¨ãæé»çã«ç¤ºãã¾"
-"ã)ã"
+"<literal>not-null</literal> (ãªãã·ã§ã³): å¤é¨ãã¼ã«ã©ã ã null å¤ã許容ããª"
+"ããã¨ãæå®ãã¾ã (ãã®ãã¨ã¯å¤é¨ãã¼ã主ãã¼ã®ä¸é¨ã§ãããã¨ãæé»çã«ç¤ºã"
+"ã¾ã)ã"
#. Tag: para
-#: basic_mapping.xml:2339
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
"never be updated. This is implied whenever the foreign key is also part of "
@@ -4319,8 +3086,7 @@
"ã)ã"
#. Tag: para
-#: basic_mapping.xml:2346
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
"have a unique constraint. This is implied whenever the foreign key is also "
@@ -4331,8 +3097,7 @@
"ã¾ã)ã"
#. Tag: para
-#: basic_mapping.xml:2354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate "
@@ -4341,16 +3106,15 @@
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
-"åé¤ã®ããã©ã¼ãã³ã¹ãéè¦ã§ããã·ã¹ãã ã«ã¯ã ãã¹ã¦ã®ãã¼ã <literal>on-"
-"delete=\"cascade\"</literal> ã¨å®ç¾©ãããã¨ãæ¨å¥¨ãã¾ãã ãããããã¨ã§"
-"Hibernateã¯ã<literal>DELETE</literal> æãæ¯åçºè¡ãã代ããã«ã ãã¼ã¿ãã¼"
-"ã¹ã¬ãã«ã® <literal>ON CASCADE DELETE</literal> å¶ç´ã使ç¨ãã¾ãã ãã®ç¹å¾´ã¯"
-"ãã¼ã¸ã§ã³ä»ãããããã¼ã¿ã«å¯¾ããHibernateã®éå¸¸ã®æ¥½è¦³çããã¯æ¦ç¥ã ç¡è¦ã"
+"åé¤ã®ããã©ã¼ãã³ã¹ãéè¦ã§ããã·ã¹ãã ã«ã¯ããã¹ã¦ã®ãã¼ã <literal>on-"
+"delete=\"cascade\"</literal> ã¨å®ç¾©ãããã¨ãæ¨å¥¨ãã¾ãããããããã¨ã§ "
+"Hibernate ã¯ã <literal>DELETE</literal> æãæ¯åçºè¡ãã代ããã«ããã¼ã¿ãã¼"
+"ã¹ã¬ãã«ã® <literal>ON CASCADE DELETE</literal> å¶ç´ã使ç¨ãã¾ãããã®ç¹å¾´ã¯"
+"ãã¼ã¸ã§ã³ä»ãããããã¼ã¿ã«å¯¾ãã Hibernate ã®éå¸¸ã®æ¥½è¦³çããã¯æ¦ç¥ãç¡è¦ã"
"ãã¨ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:2362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
"useful when mapping a unidirectional one-to-many association. If you map a "
@@ -4359,19 +3123,17 @@
"null=\"true\"></literal>."
msgstr ""
"<literal>not-null</literal> 㨠<literal>update</literal> 屿§ã¯ãåæ¹åä¸å¯¾å¤"
-"é¢é£ã®æã«ã¯æç¨ã§ãã åæ¹åä¸å¯¾å¤é¢é£ãnullã許容ããªãå¤é¨ãã¼ã«ãããã³ã°"
-"ããã¨ãã¯ã <literal><key not-null=\"true\"></literal> ã使ã£ã¦ãã¼ã«"
-"ã©ã ãå®£è¨ <emphasis> ããªãã¦ã¯ãªãã¾ãã</emphasis> ã"
+"é¢é£ã®æã«ã¯æç¨ã§ããåæ¹åä¸å¯¾å¤é¢é£ã null ã許容ããªãå¤é¨ãã¼ã«ãããã³"
+"ã°ããã¨ãã¯ã <literal><key not-null=\"true\"></literal> ã使ã£ã¦ãã¼"
+"ã«ã©ã ãå®£è¨ <emphasis> ããªãã¦ã¯ãªãã¾ãã</emphasis> ã"
#. Tag: title
-#: basic_mapping.xml:2372
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Column and formula elements"
msgstr "column 㨠formula è¦ç´ "
#. Tag: para
-#: basic_mapping.xml:2373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
"alternatively accept a <literal><column></literal> subelement. "
@@ -4379,66 +3141,39 @@
"<literal>formula</literal> attribute. For example:"
msgstr ""
"<literal>column</literal> 屿§ãè¨è¿°ã§ããä»»æã®ãããã³ã°è¦ç´ ã¯ã¾ãã "
-"<literal><column></literal> ãµãè¦ç´ ãè¨è¿°ã§ãã¾ãã åæ§ã« "
+"<literal><column></literal> ãµãè¦ç´ ãè¨è¿°ã§ãã¾ããåæ§ã« "
"<literal><formula></literal> ã <literal>formula</literal> 屿§ã®ä»£æ¿æ"
"段ã§ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
"åãããããã£ãé¢é£ã®ãããã³ã°ã®ä¸ã§ã <literal>column</literal> 㨠"
-"<literal>formula</literal> 屿§ãçµã¿åããããã¨ãã§ãã¾ãã ä¾ãã°ãç¹æ®ãª"
-"çµåæ¡ä»¶ãªã©ã§ãã"
+"<literal>formula</literal> 屿§ãçµã¿åããããã¨ãã§ãã¾ããä¾ãã°ãç¹æ®ãªçµ"
+"忡件ãªã©ã§ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2394
#, fuzzy, no-c-format
msgid "Import"
msgstr "import"
#. Tag: para
-#: basic_mapping.xml:2396
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
"do not want to specify the fully qualified package name in Hibernate "
@@ -4446,54 +3181,34 @@
"<literal>auto-import=\"true\"</literal>. You can also import classes and "
"interfaces that are not explicitly mapped:"
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã«åãååã®2ã¤ã®æ°¸ç¶ã¯ã©ã¹ãããã Hibernateã¯ã¨ãªã§å®å
¨ä¿®é£¾"
-"ãããï¼ããã±ã¼ã¸ã®ï¼ååãæå®ããããªãã¨ä»®å®ãã¾ãã ãã®ãããªå ´å㯠"
-"<literal>auto-import=\"true\"</literal> ã«é ¼ããã ã¯ã©ã¹ããã¤ã³ãã¼ãããã"
-"ããã®ã§ããã¨æç¤ºã§ãã¾ãã æç¤ºçã«ãããã³ã°ããã¦ããªãã¯ã©ã¹ãã¤ã³ã¿ã¼"
-"ãã§ã¤ã¹ã§ãããã¤ã³ãã¼ãã§ãã¾ãã"
+"ã¢ããªã±ã¼ã·ã§ã³ã«åãååã®2ã¤ã®æ°¸ç¶ã¯ã©ã¹ãããã Hibernate ã¯ã¨ãªã§å®å
¨ä¿®"
+"飾ãããï¼ããã±ã¼ã¸ã®ï¼ååãæå®ããããªãã¨ä»®å®ãã¾ãããã®ãããªå ´å㯠"
+"<literal>auto-import=\"true\"</literal> ã«é ¼ãããã¯ã©ã¹ããã¤ã³ãã¼ãããã"
+"ããã®ã§ããã¨æç¤ºã§ãã¾ããæç¤ºçã«ãããã³ã°ããã¦ããªãã¯ã©ã¹ãã¤ã³ã¿ã¼"
+"ãã§ã¼ã¹ã§ãããã¤ã³ãã¼ãã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2403
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2413
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
-msgstr "<literal>class</literal>ï¼Javaã¯ã©ã¹ã®å®å
¨ä¿®é£¾ãããã¯ã©ã¹åã"
+msgstr "<literal>class</literal>ï¼ Java ã¯ã©ã¹ã®å®å
¨ä¿®é£¾ãããã¯ã©ã¹åã"
#. Tag: para
-#: basic_mapping.xml:2418
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
-"<literal>rename</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ä¿®é£¾ããã¦ããªãã¯ã©ã¹"
+"<literal>rename</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ä¿®é£¾ããã¦ããªãã¯ã©ã¹"
"åï¼ï¼ ã¯ã¨ãªè¨èªã§ä½¿ãããååã"
#. Tag: title
-#: basic_mapping.xml:2429
#, no-c-format
-msgid "<title>Any</title>"
+msgid "Any"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
"literal> mapping element defines a polymorphic association to classes from "
@@ -4505,17 +3220,16 @@
"cases. For example, for audit logs, user session data, etc."
msgstr ""
"ããããã£ãããã³ã°ã«ã¯ããã«ãã1ã¤ã®åãããã¾ãã <literal><any></"
-"literal> ãããã³ã°è¦ç´ ã¯ã è¤æ°ã®ãã¼ãã«ããã¯ã©ã¹ã¸ã®ããªã¢ã¼ãã£ãã¯ãªé¢"
-"é£ãå®ç¾©ãã¾ãã ãã®åã®ãããã³ã°ã«ã¯å¿
ãè¤æ°ã®ã«ã©ã ãå¿
è¦ã§ãã1çªç®ã®ã«"
-"ã©ã ã¯é¢é£ã¨ã³ãã£ãã£ã®åãä¿æãã¾ãã æ®ãã®ã«ã©ã ã¯èå¥åãä¿æãã¾ããã"
-"ã®ç¨®é¡ã®é¢é£ã«ã¯å¤é¨ãã¼å¶ç´ãæå®ãããã¨ã¯ã§ãã¾ããã ãã®ããããã¯æã使"
-"ããããã¨ã®ãªãï¼ããªã¢ã¼ãã£ãã¯ãªï¼é¢é£ã®ãããã³ã°æ¹æ³ã§ãã é常ã«ç¹å¥ãª"
-"å ´åï¼ä¾ãã°ãæ¤æ»ãã°ãã¦ã¼ã¶ã»ãã·ã§ã³ãã¼ã¿ãªã©)ã«éã£ã¦ãããã使ãã¹ãã§"
+"literal> ãããã³ã°è¦ç´ ã¯ãè¤æ°ã®ãã¼ãã«ããã¯ã©ã¹ã¸ã®ããªã¢ã¼ãã£ãã¯ãªé¢é£"
+"ãå®ç¾©ãã¾ãããã®åã®ãããã³ã°ã«ã¯å¿
ãè¤æ°ã®ã«ã©ã ãå¿
è¦ã§ãã1çªç®ã®ã«ã©ã "
+"ã¯é¢é£ã¨ã³ãã£ãã£ã®åãä¿æãã¾ããæ®ãã®ã«ã©ã ã¯èå¥åãä¿æãã¾ãããã®ç¨®"
+"é¡ã®é¢é£ã«ã¯å¤é¨ãã¼å¶ç´ãæå®ãããã¨ã¯ã§ãã¾ããããã®ããããã¯æã使ãã"
+"ããã¨ã®ãªãï¼ããªã¢ã¼ãã£ãã¯ãªï¼é¢é£ã®ãããã³ã°æ¹æ³ã§ããé常ã«ç¹å¥ãªå ´å"
+"ï¼ä¾ãã°ãæ¤æ»ãã°ãã¦ã¼ã¶ã¼ã»ãã·ã§ã³ãã¼ã¿ãªã©)ã«éã£ã¦ãããã使ãã¹ãã§"
"ãã"
#. Tag: para
-#: basic_mapping.xml:2441
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
"a custom type that maps database column values to persistent classes that "
@@ -4523,69 +3237,31 @@
"literal>. You must specify the mapping from values of the meta-type to class "
"names."
msgstr ""
-"<literal>meta-type</literal> ã«ããã ã¢ããªã±ã¼ã·ã§ã³ã¯ã«ã¹ã¿ã åãæå®ã§ã"
-"ã¾ãããã®ã«ã¹ã¿ã å㯠ãã¼ã¿ãã¼ã¹ã«ã©ã ã®å¤ãã<literal>id-type</literal> "
-"ã§æå®ããåã® èå¥åããããã£ãæã£ãæ°¸ç¶ã¯ã©ã¹ã¸ãããã³ã°ãã¾ãã meta-"
-"typeã®å¤ããã¯ã©ã¹åã¸ã®ãããã³ã°ãæå®ããªããã°ãªãã¾ããã"
+"<literal>meta-type</literal> ã«ãããã¢ããªã±ã¼ã·ã§ã³ã¯ã«ã¹ã¿ã åãæå®ã§ãã¾"
+"ãããã®ã«ã¹ã¿ã åã¯ãã¼ã¿ãã¼ã¹ã«ã©ã ã®å¤ãã <literal>id-type</literal> ã§"
+"æå®ããåã®èå¥åããããã£ãæã£ãæ°¸ç¶ã¯ã©ã¹ã¸ãããã³ã°ãã¾ãã meta-type "
+"ã®å¤ããã¯ã©ã¹åã¸ã®ãããã³ã°ãæå®ããªããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
-msgstr "<literal>name</literal>ï¼ããããã£åã"
+msgstr "<literal>name</literal>ï¼ ããããã£åã"
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
-msgstr "<literal>id-type</literal>ï¼èå¥åã®åã"
+msgstr "<literal>id-type</literal>ï¼ èå¥åã®åã"
#. Tag: para
-#: basic_mapping.xml:2472
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
"literal>): any type that is allowed for a discriminator mapping."
msgstr ""
"<literal>meta-type</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>string</"
-"literal> ï¼ï¼ ãã£ã¹ã¯ãªããã¼ã¿ãããã³ã°ã§è¨±ãããå"
+"literal> ï¼ï¼ ãã£ã¹ã¯ãªããã¼ã¿ãããã³ã°ã§è¨±ãããåã"
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
@@ -4595,8 +3271,7 @@
"literal> ï¼ï¼ ã«ã¹ã±ã¼ãã®ã¹ã¿ã¤ã«ã"
#. Tag: para
-#: basic_mapping.xml:2490
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property either do or do not "
@@ -4605,23 +3280,20 @@
msgstr ""
"<literal>optimistic-lock</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
"literal> ): ãã®ããããã£ã®æ´æ°ã«æ¥½è¦³ããã¯ã®åå¾ãè¦æ±ãããã©ãããæå®ã"
-"ã¾ãã è¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ããã¹"
+"ã¾ããè¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨ãã«ãã¼ã¸ã§ã³ãå¢ããã¹"
"ãããå®ç¾©ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2505
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate types"
-msgstr "Hibernateã®å"
+msgstr "Hibernate ã®å"
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr "ã¨ã³ãã£ãã£ã¨å¤"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
@@ -4629,8 +3301,7 @@
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
"holding references to the entity. Contrast this with the usual Java model, "
@@ -4642,19 +3313,18 @@
"large systems. Entities support circular and shared references. They can "
"also be versioned."
msgstr ""
-"<emphasis> ã¨ã³ãã£ãã£</emphasis> ã¯ã¨ã³ãã£ãã£ã¸ã®åç
§ãä¿æããã ä»ã®ã"
-"ã¹ã¦ã®ãªãã¸ã§ã¯ãããç¬ç«ãã¦åå¨ãã¾ãã åç
§ãããªããªãã¸ã§ã¯ããã¬ãã¼ã¸"
-"ã³ã¬ã¯ãããã¦ãã¾ãæ§è³ªãæã¤é常ã®Javaã¢ãã«ã¨ã ãããæ¯ã¹ã¦ã¿ã¦ãã ã"
-"ãã ï¼è¦ªã¨ã³ãã£ãã£ããåã¸ãã»ã¼ãã¨åé¤ã <emphasis>ã«ã¹ã±ã¼ã</"
-"emphasis> ãããããã¨ãé¤ãã¦ï¼ ã¨ã³ãã£ãã£ã¯æç¤ºçã«ã»ã¼ãã¾ãã¯åé¤ãããª"
-"ããã°ãªãã¾ããã ããã¯å°éå¯è½æ§ã«ãããªãã¸ã§ã¯ãæ°¸ç¶åã®ODMGã¢ãã«ã¨ã¯ç°"
-"ãªã£ã¦ãã¾ãã å¤§è¦æ¨¡ãªã·ã¹ãã ã§ã¢ããªã±ã¼ã·ã§ã³ãªãã¸ã§ã¯ããæ®éã©ã®ããã«"
-"使ããããã«ãã坿¥ã«å¯¾å¿ãã¾ãã ã¨ã³ãã£ãã£ã¯å¾ªç°ã¨åç
§ã®å
±æããµãã¼ãã"
-"ã¾ãã ã¾ããããã¯ãã¼ã¸ã§ã³ä»ããããã¨ãã§ãã¾ãã"
+"<emphasis>ã¨ã³ãã£ãã£</emphasis> ã¯ã¨ã³ãã£ãã£ã¸ã®åç
§ãä¿æãããä»ã®ãã¹"
+"ã¦ã®ãªãã¸ã§ã¯ãããç¬ç«ãã¦åå¨ãã¾ããåç
§ãããªããªãã¸ã§ã¯ããã¬ãã¼ã¸ã³"
+"ã¬ã¯ãããã¦ãã¾ãæ§è³ªãæã¤é常㮠Java ã¢ãã«ã¨ããããæ¯ã¹ã¦ã¿ã¦ãã ããã"
+"ï¼è¦ªã¨ã³ãã£ãã£ããåã¸ãã»ã¼ãã¨åé¤ã <emphasis>ã«ã¹ã±ã¼ã</emphasis> ãã"
+"ãããã¨ãé¤ãã¦ï¼ã¨ã³ãã£ãã£ã¯æç¤ºçã«ã»ã¼ãã¾ãã¯åé¤ãããªããã°ãªãã¾ã"
+"ããããã¯å°éå¯è½æ§ã«ãããªãã¸ã§ã¯ãæ°¸ç¶åã® ODMG ã¢ãã«ã¨ã¯ç°ãªã£ã¦ãã¾"
+"ããå¤§è¦æ¨¡ãªã·ã¹ãã ã§ã¢ããªã±ã¼ã·ã§ã³ãªãã¸ã§ã¯ããæ®éã©ã®ããã«ä½¿ãããã"
+"ã«ãã坿¥ã«å¯¾å¿ãã¾ããã¨ã³ãã£ãã£ã¯å¾ªç°ã¨åç
§ã®å
±æããµãã¼ããã¾ããã¾ã"
+"ãããã¯ãã¼ã¸ã§ã³ä»ããããã¨ãã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value</emphasis> types. Values are primitives: "
@@ -4666,18 +3336,17 @@
"no independent identity, so they cannot be shared by two entities or "
"collections."
msgstr ""
-"ã¨ã³ãã£ãã£ã®æ°¸ç¶ç¶æ
ã¯ä»ã®ã¨ã³ãã£ãã£ã <emphasis>å¤</emphasis> åã® ã¤ã³"
-"ã¹ã¿ã³ã¹ã¸ã®åç
§ããæ§æããã¾ãã å¤ã¯ããªããã£ããã³ã¬ã¯ã·ã§ã³(ã³ã¬ã¯ã·ã§"
-"ã³ã®å
é¨ã§ã¯ãªã)ã ã³ã³ãã¼ãã³ããä¸å¤ãªãã¸ã§ã¯ãã§ãã ã¨ã³ãã£ãã£ã¨ã¯é"
-"ããå¤ã¯ï¼ç¹ã«ã³ã¬ã¯ã·ã§ã³ã¨ã³ã³ãã¼ãã³ãã«ããã¦ï¼ã å°éå¯è½æ§ã«ããæ°¸ç¶å"
-"ãåé¤ã <emphasis>è¡ããã¾ã</emphasis> ã å¤ãªãã¸ã§ã¯ãï¼ã¨ããªããã£ãï¼"
-"ã¯ãå
å«ããã¨ã³ãã£ãã£ã¨ä¸ç·ã«æ°¸ç¶åãåé¤ãè¡ãããã®ã§ã ããããç¬ç«ã«"
-"ãã¼ã¸ã§ã³ä»ããããã¨ã¯ã§ãã¾ããã å¤ã«ã¯ç¬ç«ããã¢ã¤ãã³ãã£ãã£ããªãã®"
-"ã§ã è¤æ°ã®ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ããããå
±æãããã¨ã¯ã§ãã¾ããã"
+"ã¨ã³ãã£ãã£ã®æ°¸ç¶ç¶æ
ã¯ä»ã®ã¨ã³ãã£ãã£ã <emphasis>å¤</emphasis> åã®ã¤ã³ã¹"
+"ã¿ã³ã¹ã¸ã®åç
§ããæ§æããã¾ããå¤ã¯ããªããã£ããã³ã¬ã¯ã·ã§ã³ (ã³ã¬ã¯ã·ã§ã³"
+"ã®å
é¨ã§ã¯ãªã)ãã³ã³ãã¼ãã³ããä¸å¤ãªãã¸ã§ã¯ãã§ããã¨ã³ãã£ãã£ã¨ã¯éãã"
+"å¤ã¯ï¼ç¹ã«ã³ã¬ã¯ã·ã§ã³ã¨ã³ã³ãã¼ãã³ãã«ããã¦ï¼ãå°éå¯è½æ§ã«ããæ°¸ç¶åãå"
+"é¤ã <emphasis>è¡ããã¾ã</emphasis> ãå¤ãªãã¸ã§ã¯ãï¼ã¨ããªããã£ãï¼ã¯ãå
"
+"å«ããã¨ã³ãã£ãã£ã¨ä¸ç·ã«æ°¸ç¶åãåé¤ãè¡ãããã®ã§ãããããç¬ç«ã«ãã¼ã¸ã§"
+"ã³ä»ããããã¨ã¯ã§ãã¾ãããå¤ã«ã¯ç¬ç«ããã¢ã¤ãã³ãã£ãã£ããªãã®ã§ãè¤æ°ã®"
+"ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ããããå
±æãããã¨ã¯ã§ãã¾ããã"
#. Tag: para
-#: basic_mapping.xml:2537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
"entities. We will continue to do that. Not all user-defined classes with a "
@@ -4691,26 +3360,24 @@
"single instance of that class, while composition or aggregation usually "
"translates to a value type."
msgstr ""
-"ããã¾ã§ãæ°¸ç¶ã¯ã©ã¹ãã¨ããè¨èãã¨ã³ãã£ãã£ã®æå³ã§ä½¿ã£ã¦ãã¾ããã ããã"
-"ãããããã¦ããã¾ãã å³å¯ã«è¨ãã¨ãæ°¸ç¶ç¶æ
ãæã¤ã¦ã¼ã¶å®ç¾©ã®ã¯ã©ã¹ã®ãã¹ã¦"
-"ã ã¨ã³ãã£ãã£ã¨ããããã§ã¯ããã¾ããã <emphasis>ã³ã³ãã¼ãã³ã</"
-"emphasis> ã¯å¤ã®ã»ãã³ãã£ã¯ã¹ãæã¤ã¦ã¼ã¶å®ç¾©ã¯ã©ã¹ã§ãã <literal>java."
-"lang.String</literal> åã®ããããã£ãã¾ãå¤ã®ã»ãã³ãã£ã¯ã¹ãæã¡ã¾ãã å®ç¾©"
-"ãããªããJDKã§æä¾ããã¦ãããã¹ã¦ã®Javaã®å(ã¯ã©ã¹)ãå¤ã®ã»ãã³ãã£ã¯ã¹ãæ"
-"ã¤ã¨ããã¾ãã 䏿¹ã¦ã¼ã¶å®ç¾©åã¯ãã¨ã³ãã£ãã£ãå¤åã®ã»ãã³ãã£ã¯ã¹ã¨ã¨ãã«"
-"ãããã³ã°ã§ãã¾ãã ãã®æ±ºå®ã¯ã¢ããªã±ã¼ã·ã§ã³éçºè
次第ã§ãã ãã®ã¯ã©ã¹ã®"
-"ï¼ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ã¸ã®å
񑆇
§ã¯ã ãã¡ã¤ã³ã¢ãã«å
ã®ã¨ã³ãã£ãã£ã¯ã©ã¹ã«å¯¾ã"
-"ãè¯ããã³ãã«ãªãã¾ãã 䏿¹åæéç´ãéç´ã¯ãé常å¤åã¸å¤æããã¾ãã"
+"ããã¾ã§ãæ°¸ç¶ã¯ã©ã¹ãã¨ããè¨èãã¨ã³ãã£ãã£ã®æå³ã§ä½¿ã£ã¦ãã¾ãããããã"
+"ãããããã¦ããã¾ããå³å¯ã«è¨ãã¨ãæ°¸ç¶ç¶æ
ãæã¤ã¦ã¼ã¶ã¼å®ç¾©ã®ã¯ã©ã¹ã®ãã¹"
+"ã¦ãã¨ã³ãã£ãã£ã¨ããããã§ã¯ããã¾ããã <emphasis>ã³ã³ãã¼ãã³ã</"
+"emphasis> ã¯å¤ã®ã»ãã³ãã£ã¯ã¹ãæã¤ã¦ã¼ã¶ã¼å®ç¾©ã¯ã©ã¹ã§ãã <literal>java."
+"lang.String</literal> åã®ããããã£ãã¾ãå¤ã®ã»ãã³ãã£ã¯ã¹ãæã¡ã¾ããå®ç¾©"
+"ãããªãã JDK ã§æä¾ããã¦ãããã¹ã¦ã® Java ã®å (ã¯ã©ã¹) ãå¤ã®ã»ãã³ãã£ã¯"
+"ã¹ãæã¤ã¨ããã¾ãã䏿¹ã¦ã¼ã¶ã¼å®ç¾©åã¯ãã¨ã³ãã£ãã£ãå¤åã®ã»ãã³ãã£ã¯ã¹"
+"ã¨ã¨ãã«ãããã³ã°ã§ãã¾ãããã®æ±ºå®ã¯ã¢ããªã±ã¼ã·ã§ã³éçºè
次第ã§ãããã®ã¯"
+"ã©ã¹ã®ï¼ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ã¸ã®å
񑆇
§ã¯ããã¡ã¤ã³ã¢ãã«å
ã®ã¨ã³ãã£ãã£ã¯ã©ã¹"
+"ã«å¯¾ããè¯ããã³ãã«ãªãã¾ãã䏿¹åæéç´ãéç´ã¯ãé常å¤åã¸å¤æããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2551
-#, fuzzy, no-c-format
+#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr "æ¬ããã¥ã¡ã³ããéãã¦ãä½åº¦ããã®æ¦å¿µãåãä¸ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
"of entities and value types, to the SQL/database type system. The bridge "
@@ -4723,54 +3390,49 @@
"for standard JDK value types out of the box. You can write your own mapping "
"types and implement your own custom conversion strategies."
msgstr ""
-"Javaåã®ã·ã¹ãã (ãããã¯éçºè
ãå®ç¾©ããã¨ã³ãã£ãã£ã¨å¤å)ã SQL/ãã¼ã¿ãã¼"
-"ã¹åã®ã·ã¹ãã ã«ãããã³ã°ãããã¨ã¯é£ããã§ãã Hibernateã¯ï¼ã¤ã®ã·ã¹ãã ã®"
-"æ¶ãæ©ãæä¾ãã¾ãã ã¨ã³ãã£ãã£ã«å¯¾ãã¦ã¯ <literal><class></literal> "
-"ã <literal><subclass></literal> ãªã©ã使ç¨ãã¾ãã å¤åã«å¯¾ãã¦ã¯ "
-"<literal><property></literal> ã <literal><component></literal> "
-"ãªã©ããé常 <literal>type</literal> ã¨ã¨ãã«ä½¿ãã¾ãã ãã®å±æ§ã®å¤ã¯"
-"Hibernateã® <emphasis>ãããã³ã°å</emphasis> ã®ååã§ãã Hibernateã¯(æ¨æº"
-"JDKã®å¤åã«å¯¾ãã¦)å¤ãã®èªç±ãªãããã³ã°ãæä¾ãã¾ãã å¾ã§è¦ãããã«ãèªèº«ã®"
-"ãããã³ã°åãè¨è¿°ããåæ§ã«ã«ã¹ã¿ã ã®å¤ææ¦ç¥ãå®è£
ãããã¨ãã§ãã¾ãã"
+"Java åã®ã·ã¹ãã (ãããã¯éçºè
ãå®ç¾©ããã¨ã³ãã£ãã£ã¨å¤å) ã SQL /ãã¼ã¿"
+"ãã¼ã¹åã®ã·ã¹ãã ã«ãããã³ã°ãããã¨ã¯é£ããã§ãã Hibernate ã¯ï¼ã¤ã®ã·ã¹ã"
+"ã ã®æ¶ãæ©ãæä¾ãã¾ããã¨ã³ãã£ãã£ã«å¯¾ãã¦ã¯ <literal><class></"
+"literal> ã <literal><subclass></literal> ãªã©ã使ç¨ãã¾ããå¤åã«å¯¾ã"
+"ã¦ã¯ <literal><property></literal> ã <literal><component></"
+"literal> ãªã©ããé常 <literal>type</literal> ã¨å
±ã«ä½¿ãã¾ãããã®å±æ§ã®å¤ã¯ "
+"Hibernate ã® <emphasis>ãããã³ã°å</emphasis> ã®ååã§ãã Hibernate 㯠(æ¨"
+"æº JDK ã®å¤åã«å¯¾ãã¦) å¤ãã®èªç±ãªãããã³ã°ãæä¾ãã¾ããå¾ã§è¦ãããã«ãèª"
+"身ã®ãããã³ã°åãè¨è¿°ããåæ§ã«ã«ã¹ã¿ã ã®å¤ææ¦ç¥ãå®è£
ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ãé¤ãçµã¿è¾¼ã¿ã®Hibernateã®åã¯ãã¹ã¦ãnullã»ãã³ãã£ã¯ã¹ããµãã¼"
-"ããã¾ãã"
+"ã³ã¬ã¯ã·ã§ã³ãé¤ãçµã¿è¾¼ã¿ã® Hibernate ã®åã¯ãã¹ã¦ã null ã»ãã³ãã£ã¯ã¹ããµ"
+"ãã¼ããã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
msgstr "åºæ¬çãªå"
#. Tag: para
-#: basic_mapping.xml:2577
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
"categorized into the following:"
msgstr ""
"çµã¿è¾¼ã¿ã® <emphasis>åºæ¬çãªãããã³ã°å</emphasis> ã¯å¤§ã¾ãã«ä»¥ä¸ã®ããã«å"
-"ãããã¾ãã <placeholder-1/>"
+"ãããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -4778,70 +3440,62 @@
"<literal>true_false</literal> are all alternative encodings for a Java "
"<literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-"Javaã®ããªããã£ããã©ããã¼ã¯ã©ã¹ããé©åãªï¼ãã³ãã¼åºæã®ï¼ SQLã«ã©ã åã¸"
-"ã®åãããã³ã°ã <literal>boolean, yes_no</literal> 㨠<literal>true_false</"
-"literal> ã¯ã ãã¹ã¦Javaã® <literal>boolean</literal> ã¾ã㯠<literal>java."
-"lang.Boolean</literal> ã®ä»£æ¿ã¨ã³ã³ã¼ãã§ãã"
+"Java ã®ããªããã£ããã©ããã¼ã¯ã©ã¹ããé©åãªï¼ãã³ãã¼åºæã®ï¼ SQL ã«ã©ã å"
+"ã¸ã®åãããã³ã°ã <literal>boolean, yes_no</literal> 㨠"
+"<literal>true_false</literal> ã¯ããã¹ã¦ Java ã® <literal>boolean</literal> "
+"ã¾ã㯠<literal>java.lang.Boolean</literal> ã®ä»£æ¿ã¨ã³ã³ã¼ãã§ãã"
-#. Tag: literal
-#: basic_mapping.xml:2594
-#, no-c-format
-msgid "string"
-msgstr "string"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>string</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>)."
msgstr ""
-"<literal>java.lang.String</literal> ãã <literal>VARCHAR</literal> ï¼ã¾ãã¯"
-"Oracleã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã"
+"<literal>java.lang.String</literal> ãã <literal>VARCHAR</literal> ï¼ã¾ã㯠"
+"Oracle ã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã"
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
-msgstr "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
+msgstr "<literal>date, time, timestamp</literal>"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
"SQL types <literal>DATE</literal>, <literal>TIME</literal> and "
"<literal>TIMESTAMP</literal> (or equivalent)."
msgstr ""
-"<literal>java.util.Date</literal> ã¨ãã®ãµãã¯ã©ã¹ããSQLåã® <literal>DATE</"
-"literal>, <literal>TIME</literal> , <literal>TIMESTAMP</literal> ï¼ã¾ãã¯ãã"
-"ãã¨ç価ãªãã®ï¼ ã¸ã®åãããã³ã°ã"
+"<literal>java.util.Date</literal> ã¨ãã®ãµãã¯ã©ã¹ãã SQL åã® "
+"<literal>DATE</literal> ã <literal>TIME</literal> ã <literal>TIMESTAMP</"
+"literal> ï¼ã¾ãã¯ãããã¨ç価ãªãã®ï¼ ã¸ã®åãããã³ã°ã"
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
-msgstr "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
"<literal>TIMESTAMP</literal> and <literal>DATE</literal> (or equivalent)."
msgstr ""
-"<literal>java.util.Calendar</literal> ããSQLå ã®ã <literal>TIMESTAMP</"
-"literal> , <literal>DATE</literal> (ã¾ãã¯ãããã¨ç価ãªãã®ï¼ã¸ã®åãããã³"
+"<literal>java.util.Calendar</literal> ãã SQL å ã®ã <literal>TIMESTAMP</"
+"literal> ã <literal>DATE</literal> (ã¾ãã¯ãããã¨ç価ãªãã®ï¼ã¸ã®åãããã³"
"ã°ã"
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
-msgstr "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
+msgstr "<literal>big_decimal, big_integer</literal>"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
@@ -4849,17 +3503,15 @@
"<literal>NUMBER</literal>)."
msgstr ""
"<literal>java.math.BigDecimal</literal> 㨠<literal>java.math.BigInteger</"
-"literal> ãã <literal>NUMERIC</literal>ï¼ã¾ãã¯Oracleã® <literal>NUMBER</"
+"literal> ãã <literal>NUMERIC</literal>ï¼ã¾ã㯠Oracle ã® <literal>NUMBER</"
"literal> ï¼ã¸ã®åãããã³ã°ã"
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
-msgstr "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
+msgstr "<literal>locale, timezone, currency</literal>"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -4869,111 +3521,99 @@
"mapped to their ISO codes. Instances of <literal>TimeZone</literal> are "
"mapped to their <literal>ID</literal>."
msgstr ""
-"<literal>java.util.Locale</literal> , <literal>java.util.TimeZone</"
-"literal> , <literal>java.util.Currency</literal> ãã <literal>VARCHAR</"
-"literal> ï¼ã¾ãã¯Oracleã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã "
-"<literal>Locale</literal> 㨠<literal>Currency</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã "
-"ãããã®ISOã³ã¼ãã«ãããã³ã°ããã¾ãã <literal>TimeZone</literal> ã®ã¤ã³ã¹"
-"ã¿ã³ã¹ã¯ã ãããã® <literal>ID</literal> ã«ãããã³ã°ããã¾ãã"
+"<literal>java.util.Locale</literal> ã <literal>java.util.TimeZone</"
+"literal> ã <literal>java.util.Currency</literal> ãã <literal>VARCHAR</"
+"literal> ï¼ã¾ã㯠Oracle ã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã "
+"<literal>Locale</literal> 㨠<literal>Currency</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã"
+"ããã® ISO ã³ã¼ãã«ãããã³ã°ããã¾ãã <literal>TimeZone</literal> ã®ã¤ã³ã¹"
+"ã¿ã³ã¹ã¯ããããã® <literal>ID</literal> ã«ãããã³ã°ããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2647
-#, no-c-format
-msgid "class"
-msgstr "class"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>class</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>). A <literal>Class</literal> "
"is mapped to its fully qualified name."
msgstr ""
-"<literal>java.lang.Class</literal> ãã <literal>VARCHAR</literal> ï¼ã¾ãã¯"
-"Oracleã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã <literal>Class</"
+"<literal>java.lang.Class</literal> ãã <literal>VARCHAR</literal> ï¼ã¾ã㯠"
+"Oracle ã® <literal>VARCHAR2</literal> ï¼ã¸ã®åãããã³ã°ã <literal>Class</"
"literal> ã¯ãã®å®å
¨ä¿®é£¾ãããååã«ãããã³ã°ããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2657
-#, no-c-format
-msgid "binary"
-msgstr "binary"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>binary</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
-msgstr "ãã¤ãé
åã¯ãé©åãªSQLã®ãã¤ããªåã«ãããã³ã°ããã¾ãã"
+msgstr "ãã¤ãé
åã¯ãé©å㪠SQL ã®ãã¤ããªåã«ãããã³ã°ããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2665
-#, no-c-format
-msgid "text"
-msgstr "text"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>text</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
"literal> type."
msgstr ""
-"é·ãJavaæååã¯ãSQLã® <literal>CLOB</literal> ã¾ã㯠<literal>TEXT</"
+"é·ã Java æååã¯ã SQL ã® <literal>CLOB</literal> ã¾ã㯠<literal>TEXT</"
"literal> åã«ãããã³ã°ããã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2674
-#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>serializable</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:2676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
"indicate the Hibernate type <literal>serializable</literal> with the name of "
"a serializable Java class or interface that does not default to a basic type."
msgstr ""
-"ã·ãªã¢ã©ã¤ãºå¯è½ãªJavaåã¯ãé©åãªSQLã®ãã¤ããªåã«ãããã³ã°ããã¾ãã ã"
-"ãã©ã«ãã§åºæ¬åã§ã¯ãªãã·ãªã¢ã©ã¤ãºå¯è½ãªJavaã¯ã©ã¹ã ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®åå"
-"ãæå®ãããã¨ã§ã Hibernateã®åã <literal>serializable</literal> ã¨ãããã¨"
-"ãã§ãã¾ãã"
+"ã·ãªã¢ã©ã¤ãºå¯è½ãª Java åã¯ãé©å㪠SQL ã®ãã¤ããªåã«ãããã³ã°ããã¾ããã"
+"ãã©ã«ãã§åºæ¬åã§ã¯ãªãã·ãªã¢ã©ã¤ãºå¯è½ãª Java ã¯ã©ã¹ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®å"
+"åãæå®ãããã¨ã§ã Hibernate ã®åã <literal>serializable</literal> ã¨ãã"
+"ãã¨ãã§ãã¾ãã"
-#. Tag: literal
-#: basic_mapping.xml:2685
-#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
"<literal>java.sql.Blob</literal>. These types can be inconvenient for some "
"applications, since the blob or clob object cannot be reused outside of a "
"transaction. Driver support is patchy and inconsistent."
msgstr ""
-"JDBCã¯ã©ã¹ <literal>java.sql.Clob</literal> 㨠<literal>java.sql.Blob</"
-"literal> ã«å¯¾ããåãããã³ã°ã blobãclobãªãã¸ã§ã¯ãã¯ãã©ã³ã¶ã¯ã·ã§ã³ã®å¤"
-"ã§ã¯åå©ç¨ã§ããªãããã ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦ã¯ä¸ä¾¿ããããã¾ããã ï¼ã"
+"JDBC ã¯ã©ã¹ <literal>java.sql.Clob</literal> 㨠<literal>java.sql.Blob</"
+"literal> ã«å¯¾ããåãããã³ã°ã blob ã clob ãªãã¸ã§ã¯ãã¯ãã©ã³ã¶ã¯ã·ã§ã³ã®"
+"å¤ã§ã¯åå©ç¨ã§ããªããããã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦ã¯ä¸ä¾¿ããããã¾ãããï¼ã"
"ãã«ã¯ãã©ã¤ããµãã¼ããä¸è²«ãã¦ãã¾ãããï¼"
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
"Hibernate makes certain optimizations appropriate only for immutable Java "
@@ -4983,28 +3623,27 @@
"have that change made persistent, the application must assign a new, "
"nonidentical, object to the property."
msgstr ""
-"ã»ã¨ãã©ã®å ´åã«å¯å¤ã§ããJavaã®åã«å¯¾ããåãããã³ã°ã Hibernateã¯ä¸å¤ãª"
-"Javaã®åã«å¯¾ãã¦ã¯æé©åãè¡ãã ã¢ããªã±ã¼ã·ã§ã³ã¯ãããä¸å¤ãªãã¸ã§ã¯ãã¨ã"
-"ã¦æ±ãã¾ãã ä¾ãã° <literal>imm_timestamp</literal> ã¨ãã¦ãããããã¤ã³ã¹ã¿"
-"ã³ã¹ã«å¯¾ãã¦ã <literal>Date.setTime()</literal> ãå¼ã³åºãã¦ã¯ãªãã¾ããã "
-"ããããã£ã®å¤ã夿´ããã®å¤æ´ãæ°¸ç¶åããããã«ã¯ã ã¢ããªã±ã¼ã·ã§ã³ã¯ããã"
-"ãã£ã«å¯¾ãã¦æ°ãã(åä¸ã§ãªã)ãªãã¸ã§ã¯ããå²ãå½ã¦ãªããã°ãªãã¾ããã"
+"ã»ã¨ãã©ã®å ´åã«å¯å¤ã§ãã Java ã®åã«å¯¾ããåãããã³ã°ã Hibernate ã¯ä¸å¤"
+"㪠Java ã®åã«å¯¾ãã¦ã¯æé©åãè¡ããã¢ããªã±ã¼ã·ã§ã³ã¯ãããä¸å¤ãªãã¸ã§ã¯ã"
+"ã¨ãã¦æ±ãã¾ããä¾ãã° <literal>imm_timestamp</literal> ã¨ãã¦ãããããã¤ã³"
+"ã¹ã¿ã³ã¹ã«å¯¾ãã¦ã <literal>Date.setTime()</literal> ãå¼ã³åºãã¦ã¯ãªãã¾ã"
+"ããããããã£ã®å¤ã夿´ããã®å¤æ´ãæ°¸ç¶åããããã«ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯ã"
+"ãããã£ã«å¯¾ãã¦æ°ãã (åä¸ã§ãªã) ãªãã¸ã§ã¯ããå²ãå½ã¦ãªããã°ãªãã¾ã"
+"ãã"
#. Tag: para
-#: basic_mapping.xml:2716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</"
"literal>. Composite identifiers are also allowed. See below for more "
"information."
msgstr ""
-"ã¨ã³ãã£ãã£ã¨ã³ã¬ã¯ã·ã§ã³ã®ã¦ãã¼ã¯ãªèå¥åã¯ã<literal>binary</literal> , "
-"<literal>blob</literal> , <literal>clob</literal> ãé¤ããã©ããªåºæ¬åã§ãæ§"
-"ãã¾ããã ï¼è¤åèå¥åã§ãæ§ãã¾ããã以ä¸ãè¦ã¦ãã ãããï¼"
+"ã¨ã³ãã£ãã£ã¨ã³ã¬ã¯ã·ã§ã³ã®ã¦ãã¼ã¯ãªèå¥åã¯ã <literal>binary</"
+"literal> ã <literal>blob</literal> ã <literal>clob</literal> ãé¤ããã©ããª"
+"åºæ¬åã§ãæ§ãã¾ãããï¼è¤åèå¥åã§ãæ§ãã¾ããã以ä¸ãè¦ã¦ãã ãããï¼"
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -5012,19 +3651,17 @@
"<literal>Hibernate.STRING</literal> represents the <literal>string</literal> "
"type."
msgstr ""
-"åºæ¬çãªå¤åã«ã¯ã<literal>org.hibernate.Hibernate</literal> ã§å®ç¾©ããã "
-"<literal>Type</literal> 宿°ãããããããã¾ãã ä¾ãã°ã<literal>Hibernate."
+"åºæ¬çãªå¤åã«ã¯ã <literal>org.hibernate.Hibernate</literal> ã§å®ç¾©ããã "
+"<literal>Type</literal> 宿°ãããããããã¾ããä¾ãã°ã <literal>Hibernate."
"STRING</literal> 㯠<literal>string</literal> åã表ç¾ãã¦ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr "ã«ã¹ã¿ã å"
#. Tag: para
-#: basic_mapping.xml:2733
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
"example, you might want to persist properties of type <literal>java.lang."
@@ -5036,19 +3673,18 @@
"that is persisted to the columns <literal>FIRST_NAME</literal>, "
"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
-"éçºè
ãç¬èªã®å¤åã使ãããã¨ã¯ãæ¯è¼çç°¡åã§ãã ä¾ãã°ã<literal>java."
+"éçºè
ãç¬èªã®å¤åã使ãããã¨ã¯ãæ¯è¼çç°¡åã§ããä¾ãã°ã <literal>java."
"lang.BigInteger</literal> åã®ããããã£ã <literal>VARCHAR</literal> ã«ã©ã "
-"ã«æ°¸ç¶åãããããããã¾ããã Hibernateã¯ãã®ããã®çµã¿è¾¼ã¿åãç¨æãã¦ãã¾"
-"ããã ãããã«ã¹ã¿ã åã¯ãããããã£ï¼ã¾ãã¯ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ï¼ã1ã¤ã®ãã¼"
-"ãã«ã«ã©ã ã« ãããã³ã°ããã®ã«å¶éã¯ããã¾ããã ãã®ããä¾ãã°ã"
-"<literal>java.lang.String</literal> åã® <literal>getName()</literal> / "
-"<literal>setName()</literal> Javaããããã£ã <literal>FIRST_NAME</"
-"literal> , <literal>INITIAL</literal>, <literal>SURNAME</literal> ã«ã©ã ã«æ°¸"
-"ç¶åã§ãã¾ãã"
+"ã«æ°¸ç¶åãããããããã¾ããã Hibernate ã¯ãã®ããã®çµã¿è¾¼ã¿åãç¨æãã¦ãã¾"
+"ããããããã«ã¹ã¿ã åã¯ãããããã£ï¼ã¾ãã¯ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ï¼ã1ã¤ã®ãã¼ã"
+"ã«ã«ã©ã ã«ãããã³ã°ããã®ã«å¶éã¯ããã¾ããããã®ããä¾ãã°ã <literal>java."
+"lang.String</literal> åã® <literal>getName()</literal> / <literal>setName()"
+"</literal> Java ããããã£ã <literal>FIRST_NAME</literal> ã "
+"<literal>INITIAL</literal> ã <literal>SURNAME</literal> ã«ã©ã ã«æ°¸ç¶åã§ãã¾"
+"ãã"
#. Tag: para
-#: basic_mapping.xml:2744
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and "
@@ -5056,35 +3692,22 @@
"<literal>org.hibernate.test.DoubleStringType</literal> to see the kind of "
"things that are possible."
msgstr ""
-"ã«ã¹ã¿ã åãå®è£
ããã«ã¯ã<literal>org.hibernate.UserType</literal> ã¾ã㯠"
-"<literal>org.hibernate.CompositeUserType</literal> ãå®è£
ãã åã®å®å
¨ä¿®é£¾ã"
-"ããååã使ã£ã¦ããããã£ãå®ç¾©ãã¾ãã ã©ã®ãããªç¨®é¡ã®ãã®ãå¯è½ãã調ã¹ã"
-"ã«ã¯ã <literal>org.hibernate.test.DoubleStringType</literal> ã確èªãã¦ãã "
-"ããã"
+"ã«ã¹ã¿ã åãå®è£
ããã«ã¯ã <literal>org.hibernate.UserType</literal> ã¾ã㯠"
+"<literal>org.hibernate.CompositeUserType</literal> ãå®è£
ããåã®å®å
¨ä¿®é£¾ãã"
+"ãååã使ã£ã¦ããããã£ãå®ç¾©ãã¾ããã©ã®ãããªç¨®é¡ã®ãã®ãå¯è½ãã調ã¹ãã«"
+"ã¯ã <literal>org.hibernate.test.DoubleStringType</literal> ã確èªãã¦ãã ã"
+"ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
"to multiple columns."
msgstr ""
-"<literal><column></literal> ã¿ã°ã§ã ããããã£ãè¤æ°ã®ã«ã©ã ã¸ãããã³"
+"<literal><column></literal> ã¿ã°ã§ãããããã£ãè¤æ°ã®ã«ã©ã ã¸ãããã³"
"ã°ã§ãããã¨ã«æ³¨ç®ãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -5092,13 +3715,13 @@
"<literal>UserVersionType</literal> interfaces provide support for more "
"specialized uses."
msgstr ""
-"<literal>CompositeUserType</literal> , <literal>EnhancedUserType</literal> , "
-"<literal>UserCollectionType</literal> , <literal>UserVersionType</literal> ã¤"
-"ã³ã¿ã¼ãã§ã¤ã¹ã¯ãããç¹æ®ãªä½¿ç¨æ³ã«å¯¾ãã¦ã®ãµãã¼ããæä¾ãã¾ãã"
+"<literal>CompositeUserType</literal> ã <literal>EnhancedUserType</"
+"literal> ã <literal>UserCollectionType</literal> ã "
+"<literal>UserVersionType</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ãããç¹æ®ãªä½¿ç¨æ³ã«å¯¾ã"
+"ã¦ã®ãµãã¼ããæä¾ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2765
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
"mapping file. To do this, your <literal>UserType</literal> must implement "
@@ -5107,37 +3730,24 @@
"type></literal> element in your mapping files."
msgstr ""
"ãããã³ã°ãã¡ã¤ã«å
ã§ <literal>UserType</literal> ã¸ãã©ã¡ã¼ã¿ãæä¾ã§ãã¾"
-"ãã ãã®ããã«ã¯ã<literal>UserType</literal> 㯠<literal>org.hibernate."
-"usertype.ParameterizedType</literal> ãå®è£
ããªãã¦ã¯ãªãã¾ããã ã«ã¹ã¿ã å"
-"ãã©ã¡ã¼ã¿ãæä¾ããããã«ã ãããã³ã°ãã¡ã¤ã«å
ã§ <literal><type></"
+"ãããã®ããã«ã¯ã <literal>UserType</literal> 㯠<literal>org.hibernate."
+"usertype.ParameterizedType</literal> ãå®è£
ããªãã¦ã¯ãªãã¾ãããã«ã¹ã¿ã åã"
+"ã©ã¡ã¼ã¿ãæä¾ããããã«ããããã³ã°ãã¡ã¤ã«å
ã§ <literal><type></"
"literal> è¦ç´ ã使ç¨ã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
"named <literal>default</literal> from the <literal>Properties</literal> "
"object passed to it."
msgstr ""
-"<literal>UserType</literal> ã¯ã 弿°ã¨ãã¦æ¸¡ããã <literal>Properties</"
+"<literal>UserType</literal> ã¯ã弿°ã¨ãã¦æ¸¡ããã <literal>Properties</"
"literal> ãªãã¸ã§ã¯ãããã <literal>default</literal> ã§æå®ãããã©ã¡ã¼ã¿ã«"
"対ããå¤ãæ¤ç´¢ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
"define a shorter name for it. You can do this using the <literal><"
@@ -5147,37 +3757,19 @@
msgstr ""
"ç¹å®ã® <literal>UserType</literal> ãé »ç¹ã«ä½¿ç¨ãããªãã°ãçãååãå®ç¾©ãã"
"ã¨ä¾¿å©ã«ãªãã§ãããã <literal><typedef></literal> è¦ç´ ã使ã£ã¦ãã®ã"
-"ããªãã¨ãè¡ãã¾ãã Typedefsã¯ã«ã¹ã¿ã åã«ååãå²ãå½ã¦ã¾ãã ãã®åããã©"
-"ã¡ã¼ã¿ãæã¤ãªãã°ã ãã©ã¡ã¼ã¿ã®ããã©ã«ãå¤ã®ãªã¹ããå«ããã¨ãã§ãã¾ãã"
+"ããªãã¨ãè¡ãã¾ãã Typedefs ã¯ã«ã¹ã¿ã åã«ååãå²ãå½ã¦ã¾ãããã®åããã©"
+"ã¡ã¼ã¿ãæã¤ãªãã°ããã©ã¡ã¼ã¿ã®ããã©ã«ãå¤ã®ãªã¹ããå«ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
"case-by-case basis by using type parameters on the property mapping."
msgstr ""
-"ããããã£ã®ãããã³ã°ã§åãã©ã¡ã¼ã¿ã使ããã¨ã§ã typedefã§æä¾ããããã©"
+"ããããã£ã®ãããã³ã°ã§åãã©ã¡ã¼ã¿ã使ããã¨ã§ã typedef ã§æä¾ããããã©"
"ã¡ã¼ã¿ããã®é½åº¦ãªã¼ãã¼ã©ã¤ããããã¨ãå¯è½ã§ãã"
#. Tag: para
-#: basic_mapping.xml:2796
#, fuzzy, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
@@ -5189,24 +3781,22 @@
"is abstraction. With a custom type, your mapping documents would be "
"protected against changes to the way monetary values are represented."
msgstr ""
-"Hibernateã®å¹
åºãçµã¿è¾¼ã¿åã¨ã³ã³ãã¼ãã³ãã«å¯¾ãããµãã¼ãã¯ã ã«ã¹ã¿ã åã"
-"ãã£ãã« <emphasis>使ããªã</emphasis> ã¨ãããã¨ãæå³ãã¾ãã ããã§ããª"
-"ããã¢ããªã±ã¼ã·ã§ã³ã§é »åºãã(ã¨ã³ãã£ãã£ã§ã¯ãªã)ã¯ã©ã¹ã«å¯¾ããã«ã¹ã¿ã å"
-"ã®ä½¿ç¨ã¯ã ããããæ¹ã§ããã¨ã¿ãªããã¾ãã ä¾ãã° <literal>MonetaryAmount</"
+"Hibernate ã®å¹
åºãçµã¿è¾¼ã¿åã¨ã³ã³ãã¼ãã³ãã«å¯¾ãããµãã¼ãã¯ãã«ã¹ã¿ã åã"
+"ãã£ãã« <emphasis>使ããªã</emphasis> ã¨ãããã¨ãæå³ãã¾ããããã§ããªãã"
+"ã¢ããªã±ã¼ã·ã§ã³ã§é »åºãã (ã¨ã³ãã£ãã£ã§ã¯ãªã) ã¯ã©ã¹ã«å¯¾ããã«ã¹ã¿ã åã®"
+"使ç¨ã¯ãããããæ¹ã§ããã¨ã¿ãªããã¾ããä¾ãã° <literal>MonetaryAmount</"
"literal> ã¯ã©ã¹ã¯ã³ã³ãã¼ãã³ãã¨ãã¦ç°¡åã«ãããã³ã°ã§ãã¾ããã "
-"<literal>CompositeUserType</literal> ã®è¯ãåè£ã§ãã ã«ã¹ã¿ã åã使ç¨ããå"
-"æ©ã®1ã¤ã¯æ½è±¡åã§ãã ã«ã¹ã¿ã åã使ããã¨ã§ãé貨ãã©ã®ããã«è¡¨ç¾ãããã¨ã "
-"ãããã³ã°ããã¥ã¡ã³ãã¯èµ·ããããå¤åã«å¯¾å¿ã§ãã¾ãã"
+"<literal>CompositeUserType</literal> ã®è¯ãåè£ã§ããã«ã¹ã¿ã åã使ç¨ããåæ©"
+"ã®1ã¤ã¯æ½è±¡åã§ããã«ã¹ã¿ã åã使ããã¨ã§ãé貨ãã©ã®ããã«è¡¨ç¾ãããã¨ããã"
+"ãã³ã°ããã¥ã¡ã³ãã¯èµ·ããããå¤åã«å¯¾å¿ã§ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
msgstr "ï¼ã¤ã®ã¯ã©ã¹ã«ï¼ã¤ä»¥ä¸ã®ãããã³ã°"
#. Tag: para
-#: basic_mapping.xml:2813
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
"class. In this case, you must specify an <emphasis>entity name</emphasis> to "
@@ -5215,55 +3805,29 @@
"entity name when working with persistent objects, when writing queries, or "
"when mapping associations to the named entity."
msgstr ""
-"ããæ°¸ç¶ã¯ã©ã¹ã«ãä¸ã¤ä»¥ä¸ã®ãããã³ã°ãæä¾ãããã¨ãåºæ¥ã¾ãã ãã®å ´åã"
+"ããæ°¸ç¶ã¯ã©ã¹ã«ãä¸ã¤ä»¥ä¸ã®ãããã³ã°ãæä¾ãããã¨ãåºæ¥ã¾ãããã®å ´åã"
"ãããã³ã°ããï¼ã¤ã®ã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ãæç¢ºã«ããããã«ã <emphasis>"
"ã¨ã³ãã£ãã£å</emphasis> ãæå®ããªããã°ãªãã¾ãã (ããã©ã«ãã§ã¯ã¨ã³ãã£"
-"ãã£åã¯ã¯ã©ã¹åã¨åãã§ãã)ã æ°¸ç¶ãªãã¸ã§ã¯ããæ±ãã¨ããã¯ã¨ãªãæ¸ãè¾¼ã"
-"ã¨ãã æå®ãããã¨ã³ãã£ãã£ã¸ã®é¢é£ããããã³ã°ããã¨ãã«ã¯ã Hibernateã§ã¯"
+"ãã£åã¯ã¯ã©ã¹åã¨åãã§ãã)ã Hibernate ã§ã¯ãæ°¸ç¶ãªãã¸ã§ã¯ããæ±ãã¨ãã"
+"ã¯ã¨ãªãæ¸ãè¾¼ãã¨ããæå®ãããã¨ã³ãã£ãã£ã¸ã®é¢é£ããããã³ã°ããã¨ãã«ã"
"ã¨ã³ãã£ãã£åãæå®ããªããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:2821
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2823
-#, fuzzy, no-c-format
-msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
"of <literal>class</literal>."
msgstr ""
-"é¢é£ã<literal>class</literal> ã®ä»£ããã« <literal>entity-name</literal> ã"
-"使ã£ã¦ã ã©ã®ããã«æå®ãããã®ãã«æ³¨ç®ãã¦ãã ããã"
+"é¢é£ã <literal>class</literal> ã®ä»£ããã« <literal>entity-name</literal> ã"
+"使ã£ã¦ãã©ã®ããã«æå®ãããã®ãã«æ³¨ç®ãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
msgstr "ããã¯ã¯ã©ã¼ãã§å²ãã SQL èå¥å"
#. Tag: para
-#: basic_mapping.xml:2832
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
"enclosing the table or column name in backticks in the mapping document. "
@@ -5272,48 +3836,32 @@
"and MySQL uses backticks."
msgstr ""
"ãããã³ã°ããã¥ã¡ã³ãã§ãã¼ãã«ãã«ã©ã ã®ååãããã¯ã¯ã©ã¼ãã§å²ããã¨ã§ã "
-"Hibernateã§çæãããSQLä¸ã®èå¥åãå¼ç¨ããããã¨ãã§ãã¾ãã Hibernateã¯SQL"
-"ã® <literal>Dialect</literal> ã«å¯¾å¿ãããæ£ããå¼ç¨ã¹ã¿ã¤ã«ã使ãã¾ã ï¼æ®é"
-"ã¯ããã«ã¯ã©ã¼ãã§ãããSQL Serverã§ã¯ããæ¬å¼§ãMySQLã§ã¯ããã¯ã¯ã©ã¼ãã§"
-"ãï¼ã"
+"Hibernate ã§çæããã SQL ä¸ã®èå¥åãå¼ç¨ããããã¨ãã§ãã¾ãã Hibernate "
+"㯠SQL ã® <literal>Dialect</literal> ã«å¯¾å¿ãããæ£ããå¼ç¨ã¹ã¿ã¤ã«ã使ãã¾ã"
+"ï¼æ®éã¯ããã«ã¯ã©ã¼ãã§ããã SQL Server ã§ã¯ããæ¬å¼§ã MySQL ã§ã¯ããã¯"
+"ã¯ã©ã¼ãã§ãï¼ã"
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
msgstr "ã¡ã¿ãã¼ã¿ã®ä»£æ¿ææ®µ"
#. Tag: para
-#: basic_mapping.xml:2847
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
"mapping metadata in Hibernate."
msgstr ""
-"XMLã®è¨è¿°ä»¥å¤ã«ã Hibernateã§ã¯O/Rãããã³ã°ã®ã¡ã¿ãã¼ã¿ãå®ç¾©ããä»£æ¿æ¹æ³ã"
-"ããã¾ãã"
+"XML ã®è¨è¿°ä»¥å¤ã«ã Hibernate ã§ã¯ O/R ãããã³ã°ã®ã¡ã¿ãã¼ã¿ãå®ç¾©ããä»£æ¿æ¹"
+"æ³ãããã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
msgstr "XDoclet ãã¼ã¯ã¢ããã®ä½¿ç¨"
#. Tag: para
-#: basic_mapping.xml:2854
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover "
@@ -5321,138 +3869,26 @@
"XDoclet. However, we include the following example of the <literal>Cat</"
"literal> class with XDoclet mappings:"
msgstr ""
-"å¤ãã®Hibernateã¦ã¼ã¶ã¯XDocletã® <literal>@hibernate.tags</literal> ã使ã£"
-"ã¦ã ã½ã¼ã¹ã³ã¼ãå
ã«ç´æ¥ãããã³ã°æ
å ±ãåãè¾¼ããã¨ã好ã¿ã¾ãã ããã¯å³å¯"
-"ã«è¨ãã°XDocletã®åéãªã®ã§ãæ¬ããã¥ã¡ã³ãã§ã¯ãã®æ¹æ³ã対象ã¨ã¯ãã¾ããã "
-"ãããXDocletã使ã£ã以ä¸ã® <literal>Cat</literal> ãããã³ã°ã®ä¾ã示ãã¾ãã"
+"å¤ãã® Hibernate ã¦ã¼ã¶ã¼ã¯ XDoclet ã® <literal>@hibernate.tags</literal> ã"
+"使ã£ã¦ãã½ã¼ã¹ã³ã¼ãå
ã«ç´æ¥ãããã³ã°æ
å ±ãåãè¾¼ããã¨ã好ã¿ã¾ããããã¯å³"
+"å¯ã«è¨ãã° XDoclet ã®åéãªã®ã§ãæ¬ããã¥ã¡ã³ãã§ã¯ãã®æ¹æ³ã対象ã¨ã¯ãã¾ã"
+"ããããã XDoclet ã使ã£ã以ä¸ã® <literal>Cat</literal> ãããã³ã°ã®ä¾ã示ã"
+"ã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2861
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2863
-#, fuzzy, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr ""
-"Hibernateã®ã¦ã§ããµã¤ãã«ã¯ãXDocletã¨Hibernateã«é¢ãããµã³ãã«ã夿°ããã¾"
-"ãã"
+"Hibernate ã®ã¦ã§ããµã¤ãã«ã¯ã XDoclet 㨠Hibernate ã«é¢ãããµã³ãã«ã夿°ã"
+"ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
msgstr "JDK 5.0 ã¢ããã¼ã·ã§ã³ã®ä½¿ç¨"
#. Tag: para
-#: basic_mapping.xml:2872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
"type-safe and checked at compile time. This mechanism is more powerful than "
@@ -5465,72 +3901,40 @@
"<emphasis>Hibernate Annotations</emphasis> package as a separate download. "
"Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
msgstr ""
-"JDK5.0ã§ã¯ã¿ã¤ãã»ã¼ããã¤ã³ã³ãã¤ã«æã«ãã§ãã¯ã§ããã è¨èªã¬ãã«ã®XDoclet"
-"ã¹ã¿ã¤ã«ã®ã¢ããã¼ã·ã§ã³ãå°å
¥ãã¾ããã ãã®ã¡ã«ããºã ã¯XDocletã®ã¢ããã¼"
-"ã·ã§ã³ãããå¼·åã§ããã¼ã«ãIDEãå¤ãããµãã¼ããã¦ãã¾ãã ä¾ãã°IntelliJ "
-"IDEAã¯ãJDK5.0ã«ã¢ããã¼ã·ã§ã³ã®èªåè£å®ã¨æ§æã®å¼·èª¿è¡¨ç¤ºããµãã¼ããã¦ãã¾"
-"ãã EJB仿§ (JSR-220)ã®æ°ãããã¼ã¸ã§ã³ã§ã¯ãã¨ã³ãã£ãã£ãã¼ã³ã«å¯¾ãã主è¦"
-"ãªã¡ã¿ãã¼ã¿ã¡ã«ããºã ã¨ã㦠JDK5.0ã®ã¢ããã¼ã·ã§ã³ã使ç¨ãã¦ãã¾ãã "
-"Hibernate3ã§ã¯JSR-220 (æ°¸ç¶åAPI)ã® <literal>EntityManager</literal> ãå®è£
"
-"ãã ã¡ã¿ãã¼ã¿ãããã³ã°ã«å¯¾ãããµãã¼ãã¯ã å¥ãã¦ã³ãã¼ãã® "
-"<emphasis>Hibernate Annotations</emphasis> ããã±ã¼ã¸ã«ããå©ç¨å¯è½ã§ãã ã"
-"ãã¯EJB3(JSR-220)ã¨Hibernate3ã®ã¡ã¿ãã¼ã¿ãã©ã¡ãããµãã¼ããã¦ãã¾ãã"
+"JDK5.0 ã§ã¯ã¿ã¤ãã»ã¼ããã¤ã³ã³ãã¤ã«æã«ãã§ãã¯ã§ãããè¨èªã¬ãã«ã® "
+"XDoclet ã¹ã¿ã¤ã«ã®ã¢ããã¼ã·ã§ã³ãå°å
¥ãã¾ããããã®ã¡ã«ããºã 㯠XDoclet ã®ã¢"
+"ããã¼ã·ã§ã³ãããå¼·åã§ããã¼ã«ã IDE ãå¤ãããµãã¼ããã¦ãã¾ããä¾ãã° "
+"IntelliJ IDEA ã¯ã JDK5.0 ã«ã¢ããã¼ã·ã§ã³ã®èªåè£å®ã¨æ§æã®å¼·èª¿è¡¨ç¤ºããµãã¼"
+"ããã¦ãã¾ãã EJB 仿§ (JSR-220) ã®æ°ãããã¼ã¸ã§ã³ã§ã¯ãã¨ã³ãã£ã㣠Bean "
+"ã«å¯¾ãã主è¦ãªã¡ã¿ãã¼ã¿ã¡ã«ããºã ã¨ã㦠JDK5.0 ã®ã¢ããã¼ã·ã§ã³ã使ç¨ãã¦ã"
+"ã¾ãã Hibernate3 ã§ã¯ JSR-220 (æ°¸ç¶å API) ã® <literal>EntityManager</"
+"literal> ãå®è£
ããã¡ã¿ãã¼ã¿ãããã³ã°ã«å¯¾ãããµãã¼ãã¯ãå¥ãã¦ã³ãã¼ãã® "
+"<emphasis>Hibernate Annotations</emphasis> ããã±ã¼ã¸ã«ããå©ç¨å¯è½ã§ãããã"
+"㯠EJB3 (JSR-220) 㨠Hibernate3 ã®ã¡ã¿ãã¼ã¿ãã©ã¡ãããµãã¼ããã¦ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
-msgstr "以ä¸ã¯EJBã®ã¨ã³ãã£ãã£ãã¼ã³ã¨ãã¦æ³¨éãããPOJOã¯ã©ã¹ã®ä¾ã§ãã"
+msgstr "以ä¸ã¯ EJB ã®ã¨ã³ãã£ã㣠Bean ã¨ãã¦æ³¨éããã POJO ã¯ã©ã¹ã®ä¾ã§ã:"
-#. Tag: programlisting
-#: basic_mapping.xml:2887
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2891
-#, fuzzy, no-c-format
-msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
"development. Please refer to the Hibernate Annotations module for more "
"details."
msgstr ""
-"JDK5.0ã®ã¢ããã¼ã·ã§ã³(ã¨JSR-220)ã®ãµãã¼ãã¯é²è¡ä¸ã®ä½æ¥ã§ãããå®å
¨ã§ã¯ãªã"
-"ãã¨ã«æ³¨æãã¦ãã ããã ããã«è©³ããæ
å ±ã¯Hibernateã®ã¢ããã¼ã·ã§ã³ã»ã¢"
+"JDK5.0 ã®ã¢ããã¼ã·ã§ã³ (㨠JSR-220) ã®ãµãã¼ãã¯é²è¡ä¸ã®ä½æ¥ã§ãããå®å
¨ã§ã¯"
+"ãªããã¨ã«æ³¨æãã¦ãã ãããããã«è©³ããæ
å ±ã¯ Hibernate ã®ã¢ããã¼ã·ã§ã³ã¢"
"ã¸ã¥ã¼ã«ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: basic_mapping.xml:2901
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Generated properties"
msgstr "çæããããã£"
#. Tag: para
-#: basic_mapping.xml:2902
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh</"
@@ -5540,16 +3944,15 @@
"an SQL INSERT or UPDATE for an entity that has defined generated properties, "
"it immediately issues a select afterwards to retrieve the generated values."
msgstr ""
-"çæããããã£ã¨ã¯ããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæãããå¤ãæã¤ããããã£ã§ãã é"
-"常ãHibernateã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼ã¿ãã¼ã¹ãå¤ãçæããããããã£ãå«ããª"
-"ãã¸ã§ã¯ãã <literal>ãªãã¬ãã·ã¥</literal> ããå¿
è¦ãããã¾ããã ãããã"
-"ããããã£ãçæãããã¨ãããã¨ããã¼ã¯ãããã¨ã§ã ã¢ããªã±ã¼ã·ã§ã³ã¯ãªã"
-"ã¬ãã·ã¥ã®è²¬ä»»ãHibernateã«å§è²ãã¾ãã åºæ¬çã«ãçæããããã£ãæã¤ã¨å®ç¾©"
-"ããã¨ã³ãã£ãã£ã«å¯¾ã㦠HibernateãINSERTãUPDATEã®SQLãçºè¡ããå¾ããã«ã "
-"çæãããå¤ãèªã¿è¾¼ãããã® SELECT SQL ãçºè¡ããã¾ãã"
+"çæããããã£ã¨ã¯ããã¼ã¿ãã¼ã¹ã«ãã£ã¦çæãããå¤ãæã¤ããããã£ã§ããé"
+"常ã Hibernate ã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼ã¿ãã¼ã¹ãå¤ãçæããããããã£ãå«ã"
+"ãªãã¸ã§ã¯ãã <literal>ãªãã¬ãã·ã¥</literal> ããå¿
è¦ãããã¾ããããããã"
+"ããããã£ãçæãããã¨ãããã¨ããã¼ã¯ãããã¨ã§ãã¢ããªã±ã¼ã·ã§ã³ã¯ãªã"
+"ã¬ãã·ã¥ã®è²¬ä»»ã Hibernate ã«å§è²ãã¾ããåºæ¬çã«ãçæããããã£ãæã¤ã¨å®ç¾©"
+"ããã¨ã³ãã£ãã£ã«å¯¾ã㦠Hibernate ã INSERT ã UPDATE ã® SQL ãçºè¡ããå¾ã"
+"ãã«ãçæãããå¤ãèªã¿è¾¼ãããã® SELECT SQL ãçºè¡ããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -5559,23 +3962,20 @@
"can be marked as generated."
msgstr ""
"çæããããã£ã¯ãæ¿å
¥ä¸å¯è½ãã¤æ´æ°ä¸å¯è½ã§ãªããã°ãªãã¾ããã <xref "
-"linkend=\"mapping-declaration-version\">versions</xref> ã <xref linkend="
-"\"mapping-declaration-timestamp\">timestamps</xref> ã <xref linkend="
-"\"mapping-declaration-property\">simple properties</xref> ã ããçæãããã¨"
-"ãã¼ã¯ã§ãã¾ãã"
+"linkend=\"mapping-declaration-version\"/> ãã¼ã¸ã§ã³ã <xref linkend="
+"\"mapping-declaration-timestamp\"/> ã¿ã¤ã ã¹ã¿ã³ãã <xref linkend=\"mapping-"
+"declaration-property\"/> ç°¡åãªããããã£ã ããçæãããã¨ãã¼ã¯ã§ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
"generated within the database."
msgstr ""
-"<literal>never</literal> (ããã©ã«ã) - ä¸ããããããããã£ã®å¤ã¯ã ãã¼ã¿"
+"<literal>never</literal> (ããã©ã«ã) - ä¸ããããããããã£ã®å¤ã¯ããã¼ã¿"
"ãã¼ã¹ããçæãããªããã¨ãæå³ãã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -5585,16 +3985,15 @@
"\">timestamp</link> properties can be marked as generated, this option is "
"not available."
msgstr ""
-"<literal>insert</literal> - ä¸ããããããããã£ã®å¤ã¯æ¿å
¥æã«çæããããã "
-"ç¶ãã¦èµ·ããæ´æ°æã«ã¯çæãããªããã¨ç¤ºãã¾ãã 使ãããæ¥ä»ãªã©ã¯ããã®ã«"
-"ãã´ãªã«åé¡ããã¾ãã <xref linkend=\"mapping-declaration-version"
-"\">version</xref> ã <xref linkend=\"mapping-declaration-timestamp"
-"\">timestamp</xref> ã® ããããã£ã¯çæãããã¨ãã¼ã¯ã§ãã¾ããããã®ãªãã·ã§"
-"ã³ã¯å©ç¨ã§ããªããã¨ã«æ³¨æãã¦ãã ããã"
+"<literal>insert</literal> - ä¸ããããããããã£ã®å¤ã¯æ¿å
¥æã«çæããããã"
+"ç¶ãã¦èµ·ããæ´æ°æã«ã¯çæãããªããã¨ç¤ºãã¾ãã使ãããæ¥ä»ãªã©ã¯ããã®ã«"
+"ãã´ãªã«åé¡ããã¾ãã <xref linkend=\"mapping-declaration-version\"/> ãã¼"
+"ã¸ã§ã³ã <xref linkend=\"mapping-declaration-timestamp\"/> ã¿ã¤ã ã¹ã¿ã³ãã®ã"
+"ãããã£ã¯çæãããã¨ãã¼ã¯ã§ãã¾ããããã®ãªãã·ã§ã³ã¯å©ç¨ã§ããªããã¨ã«æ³¨"
+"æãã¦ãã ããã"
#. Tag: para
-#: basic_mapping.xml:2930
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
"and on update."
@@ -5603,14 +4002,56 @@
"示ãã¾ãã"
#. Tag: title
-#: basic_mapping.xml:2937
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Auxiliary database objects"
-msgstr "è£å©çãªãã¼ã¿ãã¼ã¹ã»ãªãã¸ã§ã¯ã"
+msgstr "è£å©çãªãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ã"
#. Tag: para
-#: basic_mapping.xml:2938
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
"database objects. In conjunction with Hibernate's schema evolution tools, "
@@ -5621,142 +4062,1758 @@
"example, ALTERs, INSERTS, etc.). There are essentially two modes for "
"defining auxiliary database objects:"
msgstr ""
-"Hibernateã®ã¹ãã¼ãã»ã¨ããªã¥ã¼ã·ã§ã³ãã¼ã«ã¨é£åãããã¨ã§ã ä»»æã®ãã¼ã¿"
-"ãã¼ã¹ã»ãªãã¸ã§ã¯ãï¼ããªã¬ã¼ãã¹ãã¢ãããã·ã¼ã¸ã£ãªã©ï¼ã®CREATEã¨DROPã«ã"
-"ãã Hibernateã®ãããã³ã°ãã¡ã¤ã«å
ã®ã¦ã¼ã¶ã»ã¹ãã¼ãããã¹ã¦å®ç¾©ãããã¨ã"
-"åºæ¥ã¾ãã 主ã«ããªã¬ãã¹ãã¢ãããã·ã¼ã¸ã£ã®ãããªãã¼ã¿ãã¼ã¹ã»ãªãã¸ã§ã¯ã"
-"ãçæãåé¤ãããã¨ãæå³ãã¦ãã¾ããã å®éã«ã¯ <literal>java.sql."
-"Statement.execute()</literal> ã¡ã½ããã«ãã£ã¦å®è¡ã§ãã ä»»æã®SQLã³ãã³ã"
-"ï¼ALTERãINSERTãªã©ï¼ãå®è¡ã§ãã¾ãã è£å©çãªãã¼ã¿ãã¼ã¹ã»ãªãã¸ã§ã¯ããå®"
-"義ããããã®ã2ã¤ã®åºæ¬çãªæ¹æ³ãããã¾ãã"
+"Hibernate ã®ã¹ãã¼ãã¨ããªã¥ã¼ã·ã§ã³ãã¼ã«ã¨é£åãããã¨ã§ãä»»æã®ãã¼ã¿ãã¼"
+"ã¹ãªãã¸ã§ã¯ãï¼ããªã¬ã¼ãã¹ãã¢ãããã·ã¼ã¸ã£ãªã©ï¼ã® CREATE 㨠DROP ã«ã"
+"ãã Hibernate ã®ãããã³ã°ãã¡ã¤ã«å
ã®ã¦ã¼ã¶ã¼ã¹ãã¼ãããã¹ã¦å®ç¾©ãããã¨ã"
+"åºæ¥ã¾ãã主ã«ããªã¬ãã¹ãã¢ãããã·ã¼ã¸ã£ã®ãããªãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ãã"
+"çæãåé¤ãããã¨ãæå³ãã¦ãã¾ãããå®éã«ã¯ <literal>java.sql.Statement."
+"execute()</literal> ã¡ã½ããã«ãã£ã¦å®è¡ã§ããä»»æã® SQL ã³ãã³ãï¼ALTERã"
+"INSERTãªã©ï¼ãå®è¡ã§ãã¾ããè£å©çãªãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ããå®ç¾©ãããã"
+"ã®ã2ã¤ã®åºæ¬çãªæ¹æ³ãããã¾ãã"
#. Tag: para
-#: basic_mapping.xml:2947
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
msgstr ""
-"1ã¤ç®ã®æ¹æ³ã¯ãCREATEã¨DROPã³ãã³ãããããã³ã°ãã¡ã¤ã«ã®å¤ã«ãæç¤ºçã«è¨è¼ã"
-"ããã¨ã§ãã"
+"1ã¤ç®ã®æ¹æ³ã¯ã CREATE 㨠DROP ã³ãã³ãããããã³ã°ãã¡ã¤ã«ã®å¤ã«ãæç¤ºçã«è¨"
+"è¼ãããã¨ã§ã:"
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2952
-#, fuzzy, no-c-format
-msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
"DROP commands. This custom class must implement the <literal>org.hibernate."
"mapping.AuxiliaryDatabaseObject</literal> interface."
msgstr ""
-"2ã¤ç®ã®æ¹æ³ã¯ãCREATEã¨DROPã³ãã³ãã®çµã¿ç«ã¦æ¹ãç¥ã£ã¦ããã«ã¹ã¿ã ã¯ã©ã¹ãæ"
-"ä¾ãããã¨ã§ãã ãã®ã«ã¹ã¿ã ã¯ã©ã¹ã¯ <literal>org.hibernate.mapping."
-"AuxiliaryDatabaseObject</literal> ã¤ã³ã¿ãã§ã¼ã¹ã å®è£
ããªããã°ãªãã¾ããã"
+"2ã¤ç®ã®æ¹æ³ã¯ã CREATE 㨠DROP ã³ãã³ãã®çµã¿ç«ã¦æ¹ãç¥ã£ã¦ããã«ã¹ã¿ã ã¯ã©ã¹"
+"ãæä¾ãããã¨ã§ãããã®ã«ã¹ã¿ã ã¯ã©ã¹ã¯ <literal>org.hibernate.mapping."
+"AuxiliaryDatabaseObject</literal> ã¤ã³ã¿ãã§ã¼ã¹ãå®è£
ããªããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2958
-#, fuzzy, no-c-format
-msgid ""
"Additionally, these database objects can be optionally scoped so that they "
"only apply when certain dialects are used."
msgstr ""
-"ããã«ããããã¼ã¿ãã¼ã¹æ¹è¨ã使ç¨ãããæã«ã ãé©ç¨ããã¨ãã£ãããã«ã ãã¼"
-"ã¿ãã¼ã¹ã»ãªãã¸ã§ã¯ãã使ãããã±ã¼ã¹ãéå®ã§ãã¾ãã"
+"ããã«ããããã¼ã¿ãã¼ã¹æ¹è¨ã使ç¨ãããæã«ã ãé©ç¨ããã¨ãã£ãããã«ããã¼"
+"ã¿ãã¼ã¹ãªãã¸ã§ã¯ãã使ãããã±ã¼ã¹ãéå®ã§ãã¾ãã"
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![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"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\"\n"
+#~ " table=\"cats\"\n"
+#~ " discriminator-value=\"C\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <discriminator column=\"subclass\"\n"
+#~ " type=\"character\"/>\n"
+#~ "\n"
+#~ " <property name=\"weight\"/>\n"
+#~ "\n"
+#~ " <property name=\"birthdate\"\n"
+#~ " type=\"date\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"color\"\n"
+#~ " type=\"eg.types.ColorUserType\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"sex\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"litterId\"\n"
+#~ " column=\"litterId\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"mother\"\n"
+#~ " column=\"mother_id\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <set name=\"kittens\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"litter_id\">\n"
+#~ " <key column=\"mother_id\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ " <subclass name=\"DomesticCat\"\n"
+#~ " discriminator-value=\"D\">\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?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"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\" \n"
+#~ " table=\"cats\"\n"
+#~ " discriminator-value=\"C\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <discriminator column=\"subclass\" \n"
+#~ " type=\"character\"/>\n"
+#~ "\n"
+#~ " <property name=\"weight\"/>\n"
+#~ "\n"
+#~ " <property name=\"birthdate\"\n"
+#~ " type=\"date\" \n"
+#~ " not-null=\"true\" \n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"color\"\n"
+#~ " type=\"eg.types.ColorUserType\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"sex\"\n"
+#~ " not-null=\"true\" \n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"litterId\"\n"
+#~ " column=\"litterId\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"mother\"\n"
+#~ " column=\"mother_id\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <set name=\"kittens\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"litter_id\">\n"
+#~ " <key column=\"mother_id\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ " <subclass name=\"DomesticCat\"\n"
+#~ " discriminator-value=\"D\">\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
-#~ "type."
-#~ msgstr "<literal>type</literal>ï¼ãªãã·ã§ã³ï¼ï¼Hibernateã®åã示ãååã"
+#~ "<![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\" [\n"
+#~ " <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
+#~ "]>\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"your.domain\">\n"
+#~ " <class name=\"MyEntity\">\n"
+#~ " <id name=\"id\" type=\"my-custom-id-type\">\n"
+#~ " ...\n"
+#~ " </id>\n"
+#~ " <class>\n"
+#~ " &types;\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?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\" [\n"
+#~ " <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
+#~ "]>\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"your.domain\">\n"
+#~ " <class name=\"MyEntity\">\n"
+#~ " <id name=\"id\" type=\"my-custom-id-type\">\n"
+#~ " ...\n"
+#~ " </id>\n"
+#~ " </class>\n"
+#~ " & types;\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>cascade</literal> (optional): Specifies which operations should "
-#~ "be cascaded from the parent object to the associated object."
+#~ "<![CDATA[<hibernate-mapping\n"
+#~ " schema=\"schemaName\"\n"
+#~ " catalog=\"catalogName\"\n"
+#~ " default-cascade=\"cascade_style\"\n"
+#~ " default-access=\"field|property|ClassName\"\n"
+#~ " default-lazy=\"true|false\"\n"
+#~ " auto-import=\"true|false\"\n"
+#~ " package=\"package.name\"\n"
+#~ " />]]>"
#~ msgstr ""
-#~ "<literal>cascade</literal>ï¼ãªãã·ã§ã³ï¼ï¼ ã©ã®æä½ãã親ãªãã¸ã§ã¯ããã"
-#~ "é¢é£ãªãã¸ã§ã¯ãã¸ã¨ã«ã¹ã±ã¼ããããããæå®ãã¾ãã"
+#~ "<hibernate-mapping\n"
+#~ " schema=\"schemaName\"\n"
+#~ " catalog=\"catalogName\"\n"
+#~ " default-cascade=\"cascade_style\"\n"
+#~ " default-access=\"field|property|ClassName\"\n"
+#~ " default-lazy=\"true|false\"\n"
+#~ " auto-import=\"true|false\"\n"
+#~ " package=\"package.name\"\n"
+#~ " />"
+#, fuzzy
#~ msgid ""
-#~ "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-#~ "literal>): Specifies that updates to this property do or do not require "
-#~ "acquisition of the optimistic lock. In other words, dertermines if a "
-#~ "version increment should occur when this property is dirty."
+#~ "<![CDATA[<class\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tableName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " select-before-update=\"true|false\"\n"
+#~ " polymorphism=\"implicit|explicit\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " persister=\"PersisterClass\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " optimistic-lock=\"none|version|dirty|all\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " check=\"arbitrary sql check condition\"\n"
+#~ " rowid=\"rowid\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>]]>"
#~ msgstr ""
-#~ "<literal>optimistic-lock</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠"
-#~ "<literal>true</literal> ): ãã®ããããã£ã®æ´æ°ã«æ¥½è¦³çããã¯ã®åå¾ãè¦æ±"
-#~ "ãããã©ãããæå®ãã¾ãã è¨ãæããã°ããã®ããããã£ããã¼ãã£ã§ããã¨"
-#~ "ãã«ãã¼ã¸ã§ã³ãå¢ããã¹ãããæ±ºå®ãã¾ãã"
+#~ "<class\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tableName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " select-before-update=\"true|false\"\n"
+#~ " polymorphism=\"implicit|explicit\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " persister=\"PersisterClass\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " optimistic-lock=\"none|version|dirty|all\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " check=\"arbitrary sql check condition\"\n"
+#~ " rowid=\"rowid\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>"
+#, fuzzy
#~ msgid ""
-#~ "To understand the behaviour of various Java language-level objects with "
-#~ "respect to the persistence service, we need to classify them into two "
-#~ "groups:"
+#~ "<![CDATA[<class name=\"Summary\">\n"
+#~ " <subselect>\n"
+#~ " select item.name, max(bid.amount), count(*)\n"
+#~ " from item\n"
+#~ " join bid on bid.item_id = item.id\n"
+#~ " group by item.name\n"
+#~ " </subselect>\n"
+#~ " <synchronize table=\"item\"/>\n"
+#~ " <synchronize table=\"bid\"/>\n"
+#~ " <id name=\"name\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "æ°¸ç¶ãµã¼ãã¹ã«é¢ããæ§ã
ãªJavaè¨èªã¬ãã«ã®ãªãã¸ã§ã¯ãã®æ¯ãèããçè§£ãã"
-#~ "ããã«ã¯ã ãªãã¸ã§ã¯ãã2ã¤ã®ã°ã«ã¼ãã«åããå¿
è¦ãããã¾ãï¼"
+#~ "<class name=\"Summary\">\n"
+#~ " <subselect>\n"
+#~ " select item.name, max(bid.amount), count(*)\n"
+#~ " from item\n"
+#~ " join bid on bid.item_id = item.id\n"
+#~ " group by item.name\n"
+#~ " </subselect>\n"
+#~ " <synchronize table=\"item\"/>\n"
+#~ " <synchronize table=\"bid\"/>\n"
+#~ " <id name=\"name\"/>\n"
+#~ " ...\n"
+#~ "</class>"
#, fuzzy
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>all</literal> ãã¹ã¦ã®ã«ã©ã ããã§ãã¯ãã¾ãã"
+#~ msgid ""
+#~ "<![CDATA[<id\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " column=\"column_name\"\n"
+#~ " unsaved-value=\"null|any|none|undefined|id_value\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "\n"
+#~ " <generator class=\"generatorClass\"/>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<id\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " column=\"column_name\"\n"
+#~ " unsaved-value=\"null|any|none|undefined|id_value\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "\n"
+#~ " <generator class=\"generatorClass\"/>\n"
+#~ "</id>"
-#~ msgid "id"
-#~ msgstr "id"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
+#~ " <param name=\"table\">uid_table</param>\n"
+#~ " <param name=\"column\">next_hi_value_column</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
+#~ " <param name=\"table\">uid_table</param>\n"
+#~ " <param name=\"column\">next_hi_value_column</"
+#~ "param>\n"
+#~ " </generator>\n"
+#~ "</id>"
+#~ msgid "increment"
+#~ msgstr "increment"
+
+#~ msgid "identity"
+#~ msgstr "identity"
+
+#~ msgid "sequence"
+#~ msgstr "sequence"
+
+#~ msgid "hilo"
+#~ msgstr "hilo"
+
+#~ msgid "seqhilo"
+#~ msgstr "seqhilo"
+
+#~ msgid "guid"
+#~ msgstr "guid"
+
+#~ msgid "native"
+#~ msgstr "native"
+
+#~ msgid "assigned"
+#~ msgstr "assigned"
+
+#~ msgid "select"
+#~ msgstr "select"
+
+#~ msgid "foreign"
+#~ msgstr "foreign"
+
+#, fuzzy
#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"hilo\">\n"
+#~ " <param name=\"table\">hi_value</param>\n"
+#~ " <param name=\"column\">next_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
+#~ "<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"hilo\">\n"
+#~ " <param name=\"table\">hi_value</param>\n"
+#~ " <param name=\"column\">next_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"seqhilo\">\n"
+#~ " <param name=\"sequence\">hi_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
+#~ "<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"seqhilo\">\n"
+#~ " <param name=\"sequence\">hi_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>"
-#~ msgid "key"
-#~ msgstr "key"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"sequence\">\n"
+#~ " <param name=\"sequence\">person_id_sequence</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"sequence\">\n"
+#~ " <param name=\"sequence\">person_id_sequence</"
+#~ "param>\n"
+#~ " </generator>\n"
+#~ "</id>"
-#~ msgid "any"
-#~ msgstr "any"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value="
+#~ "\"0\">\n"
+#~ " <generator class=\"identity\"/>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
+#~ "\">\n"
+#~ " <generator class=\"identity\"/>\n"
+#~ "</id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"select\">\n"
+#~ " <param name=\"key\">socialSecurityNumber</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"select\">\n"
+#~ " <param name=\"key\">socialSecurityNumber</"
+#~ "param>\n"
+#~ " </generator>\n"
+#~ "</id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<composite-id\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " mapped=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|.\"\n"
+#~ "\n"
+#~ " <key-property name=\"propertyName\" type=\"typename\" column="
+#~ "\"column_name\"/>\n"
+#~ " <key-many-to-one name=\"propertyName class=\"ClassName\" column="
+#~ "\"column_name\"/>\n"
+#~ " ......\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<composite-id\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " mapped=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|.\"\n"
+#~ "\n"
+#~ " <key-property name=\"propertyName\" type=\"typename\" column="
+#~ "\"column_name\"/>\n"
+#~ " <key-many-to-one name=\"propertyName class=\"ClassName\" "
+#~ "column=\"column_name\"/>\n"
+#~ " ......\n"
+#~ "</composite-id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<composite-id>\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<composite-id>\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<composite-id class=\"MedicareId\" mapped=\"true\">\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<discriminator\n"
+#~ " column=\"discriminator_column\"\n"
+#~ " type=\"discriminator_type\"\n"
+#~ " force=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary sql expression\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<discriminator\n"
+#~ " column=\"discriminator_column\"\n"
+#~ " type=\"discriminator_type\"\n"
+#~ " force=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary sql expression\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<discriminator\n"
+#~ " formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end"
+#~ "\"\n"
+#~ " type=\"integer\"/>]]>"
+#~ msgstr ""
+#~ "<discriminator\n"
+#~ " formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end"
+#~ "\"\n"
+#~ " type=\"integer\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<version\n"
+#~ " column=\"version_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|negative|undefined\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<version\n"
+#~ " column=\"version_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|negative|undefined\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<timestamp\n"
+#~ " column=\"timestamp_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|undefined\"\n"
+#~ " source=\"vm|db\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<timestamp\n"
+#~ " column=\"timestamp_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|undefined\"\n"
+#~ " source=\"vm|db\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " type=\"typename\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " generated=\"never|insert|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<property\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " type=\"typename\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " generated=\"never|insert|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "<property name=\"totalPrice\"\n"
+#~ " formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, "
+#~ "Product p\n"
+#~ " WHERE li.productId = p.productId\n"
+#~ " AND li.customerId = customerId\n"
+#~ " AND li.orderNumber = orderNumber )\"/>]]>"
+#~ msgstr ""
+#~ "<property name=\"totalPrice\"\n"
+#~ " formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, "
+#~ "Product p\n"
+#~ " WHERE li.productId = p.productId\n"
+#~ " AND li.customerId = customerId\n"
+#~ " AND li.orderNumber = orderNumber )\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<many-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"product\" class=\"Product\" column="
+#~ "\"PRODUCT_ID\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
+#~ "column=\"SERIAL_NUMBER\"/>]]>"
+#~ msgstr ""
+#~ "<property name=\"serialNumber\" unique=\"true\" type=\"string\" column="
+#~ "\"SERIAL_NUMBER\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" "
+#~ "column=\"PRODUCT_SERIAL_NUMBER\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
+#~ "\"PRODUCT_SERIAL_NUMBER\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
+#~ "\"OWNER_SSN\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
+#~ "\"OWNER_SSN\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " constrained=\"true|false\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<one-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " constrained=\"true|false\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
+#~ msgstr "<one-to-one name=\"person\" class=\"Person\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained="
+#~ "\"true\"/>]]>"
+#~ msgstr ""
+#~ "<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">employee</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <one-to-one name=\"employee\"\n"
+#~ " class=\"Employee\"\n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">employee</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <one-to-one name=\"employee\"\n"
+#~ " class=\"Employee\"\n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID"
+#~ "\" unique=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
+#~ "unique=\"true\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
+#~ "\"person\"/>]]>"
+#~ msgstr ""
+#~ "<one-to-one name\"employee\" class=\"Employee\" property-ref=\"person"
+#~ "\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<natural-id mutable=\"true|false\"/>\n"
+#~ " <property ... />\n"
+#~ " <many-to-one ... />\n"
+#~ " ......\n"
+#~ "</natural-id>]]>"
+#~ msgstr ""
+#~ "<natural-id mutable=\"true|false\"/>\n"
+#~ " <property ... />\n"
+#~ " <many-to-one ... />\n"
+#~ " ......\n"
+#~ "</natural-id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<component\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"className\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</component>]]>"
+#~ msgstr ""
+#~ "<component \n"
+#~ " name=\"propertyName\" \n"
+#~ " class=\"className\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ ">\n"
+#~ " \n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</component>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<properties\n"
+#~ " name=\"logicalName\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</properties>]]>"
+#~ msgstr ""
+#~ "<properties \n"
+#~ " name=\"logicalName\" \n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ ">\n"
+#~ " \n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</properties>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"personNumber\"/>\n"
+#~ "\n"
+#~ " ...\n"
+#~ " <properties name=\"name\"\n"
+#~ " unique=\"true\" update=\"false\">\n"
+#~ " <property name=\"firstName\"/>\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"lastName\"/>\n"
+#~ " </properties>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"personNumber\"/>\n"
+#~ " ...\n"
+#~ " <properties name=\"name\" \n"
+#~ " unique=\"true\" update=\"false\">\n"
+#~ " <property name=\"firstName\"/>\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"lastName\"/>\n"
+#~ " </properties>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"person\"\n"
+#~ " class=\"Person\" property-ref=\"name\">\n"
+#~ " <column name=\"firstName\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ " <column name=\"lastName\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"person\" \n"
+#~ " class=\"Person\" property-ref=\"name\">\n"
+#~ " <column name=\"firstName\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ " <column name=\"lastName\"/>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " extends=\"SuperclassName\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</subclass>]]>"
+#~ msgstr ""
+#~ "<subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " extends=\"SuperclassName\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<joined-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <key .... >\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</joined-subclass>]]>"
+#~ msgstr ""
+#~ "<joined-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <key .... >\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</joined-subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\"?>\n"
+#~ "<!DOCTYPE hibernate-mapping PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\" table=\"CATS\">\n"
+#~ " <id name=\"id\" column=\"uid\" type=\"long\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthdate\" type=\"date\"/>\n"
+#~ " <property name=\"color\" not-null=\"true\"/>\n"
+#~ " <property name=\"sex\" not-null=\"true\"/>\n"
+#~ " <property name=\"weight\"/>\n"
+#~ " <many-to-one name=\"mate\"/>\n"
+#~ " <set name=\"kittens\">\n"
+#~ " <key column=\"MOTHER\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ " <joined-subclass name=\"DomesticCat\" table="
+#~ "\"DOMESTIC_CATS\">\n"
+#~ " <key column=\"CAT\"/>\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </joined-subclass>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"eg.Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?xml version=\"1.0\"?>\n"
+#~ "<!DOCTYPE hibernate-mapping PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\" table=\"CATS\">\n"
+#~ " <id name=\"id\" column=\"uid\" type=\"long\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthdate\" type=\"date\"/>\n"
+#~ " <property name=\"color\" not-null=\"true\"/>\n"
+#~ " <property name=\"sex\" not-null=\"true\"/>\n"
+#~ " <property name=\"weight\"/>\n"
+#~ " <many-to-one name=\"mate\"/>\n"
+#~ " <set name=\"kittens\">\n"
+#~ " <key column=\"MOTHER\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ " <joined-subclass name=\"DomesticCat\" table="
+#~ "\"DOMESTIC_CATS\">\n"
+#~ " <key column=\"CAT\"/>\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </joined-subclass>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"eg.Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<union-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</union-subclass>]]>"
+#~ msgstr ""
+#~ "<union-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</union-subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<join\n"
+#~ " table=\"tablename\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " optional=\"true|false\">\n"
+#~ "\n"
+#~ " <key ... />\n"
+#~ "\n"
+#~ " <property ... />\n"
+#~ " ...\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<join\n"
+#~ " table=\"tablename\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " optional=\"true|false\">\n"
+#~ " \n"
+#~ " <key ... />\n"
+#~ " \n"
+#~ " <property ... />\n"
+#~ " ...\n"
+#~ "</join>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " table=\"PERSON\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
+#~ "\n"
+#~ " <join table=\"ADDRESS\">\n"
+#~ " <key column=\"ADDRESS_ID\"/>\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </join>\n"
+#~ " ...]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\"\n"
+#~ " table=\"PERSON\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
+#~ "\n"
+#~ " <join table=\"ADDRESS\">\n"
+#~ " <key column=\"ADDRESS_ID\"/>\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </join>\n"
+#~ " ..."
+
+#, fuzzy
+#~ msgid "<title>Key</title>"
+#~ msgstr "<title>key</title>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<key\n"
+#~ " column=\"columnname\"\n"
+#~ " on-delete=\"noaction|cascade\"\n"
+#~ " property-ref=\"propertyName\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<key\n"
+#~ " column=\"columnname\"\n"
+#~ " on-delete=\"noaction|cascade\"\n"
+#~ " property-ref=\"propertyName\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<column\n"
+#~ " name=\"column_name\"\n"
+#~ " length=\"N\"\n"
+#~ " precision=\"N\"\n"
+#~ " scale=\"N\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " unique-key=\"multicolumn_unique_key_name\"\n"
+#~ " index=\"index_name\"\n"
+#~ " sql-type=\"sql_type_name\"\n"
+#~ " check=\"SQL expression\"\n"
+#~ " default=\"SQL expression\"/>]]>"
+#~ msgstr ""
+#~ "<column\n"
+#~ " name=\"column_name\"\n"
+#~ " length=\"N\"\n"
+#~ " precision=\"N\"\n"
+#~ " scale=\"N\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " unique-key=\"multicolumn_unique_key_name\"\n"
+#~ " index=\"index_name\"\n"
+#~ " sql-type=\"sql_type_name\"\n"
+#~ " check=\"SQL expression\"\n"
+#~ " default=\"SQL expression\"/>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<formula>SQL expression</formula>]]>"
+#~ msgstr "<formula>SQL expression</formula>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
+#~ " <formula>'MAILING'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"homeAddress\" class=\"Address\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
+#~ " <formula>'MAILING'</formula>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
+#~ msgstr "<import class=\"java.lang.Object\" rename=\"Universe\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<import\n"
+#~ " class=\"ClassName\"\n"
+#~ " rename=\"ShortName\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<import\n"
+#~ " class=\"ClassName\"\n"
+#~ " rename=\"ShortName\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid "<title>Any</title>"
+#~ msgstr "<title>any</title>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
+#~ " <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
+#~ " <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
+#~ " <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
+#~ " <column name=\"table_name\"/>\n"
+#~ " <column name=\"id\"/>\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
+#~ " <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
+#~ " <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
+#~ " <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
+#~ " <column name=\"table_name\"/>\n"
+#~ " <column name=\"id\"/>\n"
+#~ "</any>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any\n"
+#~ " name=\"propertyName\"\n"
+#~ " id-type=\"idtypename\"\n"
+#~ " meta-type=\"metatypename\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ ">\n"
+#~ " <meta-value ... />\n"
+#~ " <meta-value ... />\n"
+#~ " .....\n"
+#~ " <column .... />\n"
+#~ " <column .... />\n"
+#~ " .....\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any\n"
+#~ " name=\"propertyName\"\n"
+#~ " id-type=\"idtypename\"\n"
+#~ " meta-type=\"metatypename\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ ">\n"
+#~ " <meta-value ... />\n"
+#~ " <meta-value ... />\n"
+#~ " .....\n"
+#~ " <column .... />\n"
+#~ " <column .... />\n"
+#~ " .....\n"
+#~ "</any>"
+
+#~ msgid "string"
+#~ msgstr "string"
+
+#, fuzzy
+#~ msgid "class"
+#~ msgstr "subclass"
+
+#~ msgid "binary"
+#~ msgstr "binary"
+
+#~ msgid "text"
+#~ msgstr "text"
+
+#~ msgid "serializable"
+#~ msgstr "serializable"
+
+#~ msgid "clob, blob"
+#~ msgstr "clob, blob"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
+#~ "DoubleStringType\">\n"
+#~ " <column name=\"first_string\"/>\n"
+#~ " <column name=\"second_string\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"twoStrings\" type=\"org.hibernate.test."
+#~ "DoubleStringType\">\n"
+#~ " <column name=\"first_string\"/>\n"
+#~ " <column name=\"second_string\"/>\n"
+#~ "</property>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"priority\">\n"
+#~ " <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ " </type>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"priority\">\n"
+#~ " <type name=\"com.mycompany.usertypes.DefaultValueIntegerType"
+#~ "\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ " </type>\n"
+#~ "</property>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType"
+#~ "\" name=\"default_zero\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ "</typedef>]]>"
+#~ msgstr ""
+#~ "<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
+#~ "name=\"default_zero\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ "</typedef>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
+#~ msgstr "<property name=\"priority\" type=\"default_zero\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
+#~ " entity-name=\"CurrentContract\">\n"
+#~ " ...\n"
+#~ " <set name=\"history\" inverse=\"true\"\n"
+#~ " order-by=\"effectiveEndDate desc\">\n"
+#~ " <key column=\"currentContractId\"/>\n"
+#~ " <one-to-many entity-name=\"HistoricalContract\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Contract\" table=\"ContractHistory\"\n"
+#~ " entity-name=\"HistoricalContract\">\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"currentContract\"\n"
+#~ " column=\"currentContractId\"\n"
+#~ " entity-name=\"CurrentContract\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Contract\" table=\"Contracts\" \n"
+#~ " entity-name=\"CurrentContract\">\n"
+#~ " ...\n"
+#~ " <set name=\"history\" inverse=\"true\" \n"
+#~ " order-by=\"effectiveEndDate desc\">\n"
+#~ " <key column=\"currentContractId\"/>\n"
+#~ " <one-to-many entity-name=\"HistoricalContract\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Contract\" table=\"ContractHistory\" \n"
+#~ " entity-name=\"HistoricalContract\">\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"currentContract\" \n"
+#~ " column=\"currentContractId\" \n"
+#~ " entity-name=\"CurrentContract\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
+#~ " <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/"
+#~ "></id>\n"
+#~ " <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"LineItem\" table=\"`Line Item`\">\n"
+#~ " <id name=\"id\" column=\"`Item Id`\"/><generator class="
+#~ "\"assigned\"/></id>\n"
+#~ " <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
+#~ " ...\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * @hibernate.class\n"
+#~ " * table=\"CATS\"\n"
+#~ " */\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ " private Date birthdate;\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ "\n"
+#~ " /*\n"
+#~ " * @hibernate.id\n"
+#~ " * generator-class=\"native\"\n"
+#~ " * column=\"CAT_ID\"\n"
+#~ " */\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.many-to-one\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " */\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"BIRTH_DATE\"\n"
+#~ " */\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"WEIGHT\"\n"
+#~ " */\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"COLOR\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " */\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.set\n"
+#~ " * inverse=\"true\"\n"
+#~ " * order-by=\"BIRTH_DATE\"\n"
+#~ " * @hibernate.collection-key\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " * @hibernate.collection-one-to-many\n"
+#~ " */\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"SEX\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " * update=\"false\"\n"
+#~ " */\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * @hibernate.class\n"
+#~ " * table=\"CATS\"\n"
+#~ " */\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ " private Date birthdate;\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ "\n"
+#~ " /*\n"
+#~ " * @hibernate.id\n"
+#~ " * generator-class=\"native\"\n"
+#~ " * column=\"CAT_ID\"\n"
+#~ " */\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.many-to-one\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " */\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"BIRTH_DATE\"\n"
+#~ " */\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"WEIGHT\"\n"
+#~ " */\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"COLOR\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " */\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.set\n"
+#~ " * inverse=\"true\"\n"
+#~ " * order-by=\"BIRTH_DATE\"\n"
+#~ " * @hibernate.collection-key\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " * @hibernate.collection-one-to-many\n"
+#~ " */\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"SEX\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " * update=\"false\"\n"
+#~ " */\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[@Entity(access = AccessType.FIELD)\n"
+#~ "public class Customer implements Serializable {\n"
+#~ "\n"
+#~ " @Id;\n"
+#~ " Long id;\n"
+#~ "\n"
+#~ " String firstName;\n"
+#~ " String lastName;\n"
+#~ " Date birthday;\n"
+#~ "\n"
+#~ " @Transient\n"
+#~ " Integer age;\n"
+#~ "\n"
+#~ " @Embedded\n"
+#~ " private Address homeAddress;\n"
+#~ "\n"
+#~ " @OneToMany(cascade=CascadeType.ALL)\n"
+#~ " @JoinColumn(name=\"CUSTOMER_ID\")\n"
+#~ " Set<Order> orders;\n"
+#~ "\n"
+#~ " // Getter/setter and business methods\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "@Entity(access = AccessType.FIELD)\n"
+#~ "public class Customer implements Serializable {\n"
+#~ "\n"
+#~ " @Id;\n"
+#~ " Long id;\n"
+#~ "\n"
+#~ " String firstName;\n"
+#~ " String lastName;\n"
+#~ " Date birthday;\n"
+#~ "\n"
+#~ " @Transient\n"
+#~ " Integer age;\n"
+#~ "\n"
+#~ " @Embedded\n"
+#~ " private Address homeAddress;\n"
+#~ "\n"
+#~ " @OneToMany(cascade=CascadeType.ALL)\n"
+#~ " @JoinColumn(name=\"CUSTOMER_ID\")\n"
+#~ " Set<Order> orders;\n"
+#~ "\n"
+#~ " // Getter/setter and business methods\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <create>CREATE TRIGGER my_trigger ...</create>\n"
+#~ " <drop>DROP TRIGGER my_trigger</drop>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <create>CREATE TRIGGER my_trigger ...</create>\n"
+#~ " <drop>DROP TRIGGER my_trigger</drop>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle9Dialect\"/"
+#~ ">\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.OracleDialect\"/"
+#~ ">\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,207 +1,125 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-13 15:16+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
msgstr "ãããå¦ç"
#. Tag: para
-#: batch.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A naive approach to inserting 100,000 rows in the database using Hibernate "
"might look like this:"
msgstr ""
-"Hibernateã使ã£ã¦ãã¼ã¿ãã¼ã¹ã«100,000è¡ãæ¿å
¥ããæç´ãªæ¹æ³ã¯ããã®ãããªã"
+"Hibernate ã使ã£ã¦ãã¼ã¿ãã¼ã¹ã«100,000è¡ãæ¿å
¥ããæç´ãªæ¹æ³ã¯ããã®ãããªã"
"ã®ã§ãï¼"
-#. Tag: programlisting
-#: batch.xml:36
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:38
-#, fuzzy, no-c-format
-msgid ""
"This would fall over with an <literal>OutOfMemoryException</literal> "
"somewhere around the 50,000th row. That is because Hibernate caches all the "
"newly inserted <literal>Customer</literal> instances in the session-level "
"cache. In this chapter we will show you how to avoid this problem."
msgstr ""
"ããã¯50,000çªç®ã®è¡ã®ãããã§ <literal>OutOfMemoryException</literal> ã§å¤±æ"
-"ããã§ãããã Hibernateãã»ãã·ã§ã³ã¬ãã«ãã£ãã·ã¥ã§ã æ°ããæ¿å
¥ããããã¹"
+"ããã§ãããã Hibernate ãã»ãã·ã§ã³ã¬ãã«ãã£ãã·ã¥ã§ãæ°ããæ¿å
¥ããããã¹"
"ã¦ã® <literal>Customer</literal> ã¤ã³ã¹ã¿ã³ã¹ããã£ãã·ã¥ããããã§ãã"
#. Tag: para
-#: batch.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are undertaking batch processing you will need to enable the use of "
"JDBC batching. This is absolutely essential if you want to achieve optimal "
"performance. Set the JDBC batch size to a reasonable number (10-50, for "
"example):"
msgstr ""
-"ãã®ç« ã§ã¯ããã®åé¡ãåé¿ããæ¹æ³ãç´¹ä»ãã¾ãã ããããããå¦çããããªãã"
-"JDBCãããã使ç¨å¯è½ã§ãããã¨ãé常ã«éè¦ã§ãã ããã§ãªããã°æé ãªããã©ã¼"
-"ãã³ã¹ãå¾ããã¾ããã JDBCããããµã¤ãºãæé ãªæ°å¤ï¼ä¾ãã°ã10ãã50ï¼ã«è¨å®"
-"ãã¦ãã ããï¼"
+"ãã®ç« ã§ã¯ããã®åé¡ãåé¿ããæ¹æ³ãç´¹ä»ãã¾ããããããããå¦çããããªãã "
+"JDBC ãããã使ç¨å¯è½ã§ãããã¨ãé常ã«éè¦ã§ããããã§ãªããã°æé ãªããã©ã¼"
+"ãã³ã¹ãå¾ããã¾ããã JDBC ããããµã¤ãºãæé ãªæ°å¤ï¼ä¾ãã°ã10ãã50ï¼ã«è¨"
+"å®ãã¦ãã ããï¼"
-#. Tag: programlisting
-#: batch.xml:52
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:54
-#, fuzzy, no-c-format
msgid ""
"Hibernate disables insert batching at the JDBC level transparently if you "
"use an <literal>identity</literal> identifier generator."
msgstr ""
-"Note that Hibernate disables insert batching at the JDBC level transparently "
-"if you use an <literal>identiy</literal> identifier generator."
+"<literal>identiy</literal> èå¥åçæã使ãå ´åã¯ãHibernate 㯠JDBC ã¬ãã«ã§"
+"ã¤ã³ãµã¼ããããã³ã°ãç¡å¹ã«ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: batch.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also do this kind of work in a process where interaction with the "
"second-level cache is completely disabled:"
msgstr ""
-"ã¾ãäºæ¬¡ãã£ãã·ã¥ãå
¨ãå¹ããªãããã»ã¹ã§ã ãã®ãããªä½æ¥ããããã¨æããã"
+"ã¾ãäºæ¬¡ãã£ãã·ã¥ãå
¨ãå¹ããªãããã»ã¹ã§ããã®ãããªä½æ¥ããããã¨æããã"
"ããã¾ããï¼"
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid ""
"However, this is not absolutely necessary, since we can explicitly set the "
"<literal>CacheMode</literal> to disable interaction with the second-level "
"cache."
msgstr ""
-"ããããããã¯çµ¶å¯¾ã«å¿
è¦ã¨ããããã§ã¯ããã¾ããã ãªããªãæç¤ºçã« "
-"<literal>CacheMode</literal> ãè¨å®ãã¦ã äºæ¬¡ãã£ãã·ã¥ã¨ã®ç¸äºä½ç¨ãç¡å¹ã«"
-"ãããã¨ãã§ããããã§ãã"
+"ããããããã¯çµ¶å¯¾ã«å¿
è¦ã¨ããããã§ã¯ããã¾ããããªããªãæç¤ºçã« "
+"<literal>CacheMode</literal> ãè¨å®ãã¦ãäºæ¬¡ãã£ãã·ã¥ã¨ã®ç¸äºä½ç¨ãç¡å¹ã«ã"
+"ããã¨ãã§ããããã§ãã"
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
msgstr "ãããæ¿å
¥"
#. Tag: para
-#: batch.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When making new objects persistent <literal>flush()</literal> and then "
"<literal>clear()</literal> the session regularly in order to control the "
"size of the first-level cache."
msgstr ""
-"æ°ãããªãã¸ã§ã¯ããæ°¸ç¶åããã¨ãã䏿¬¡ãã£ãã·ã¥ã®ãµã¤ãºãå¶éããããã "
+"æ°ãããªãã¸ã§ã¯ããæ°¸ç¶åããã¨ãã䏿¬¡ãã£ãã·ã¥ã®ãµã¤ãºãå¶éããããã"
"ã»ãã·ã§ã³ã <literal>flush()</literal> ã㦠<literal>clear()</literal> ããª"
"ããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
msgstr "ãããæ´æ°"
#. Tag: para
-#: batch.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For retrieving and updating data, the same ideas apply. In addition, you "
"need to use <literal>scroll()</literal> to take advantage of server-side "
"cursors for queries that return many rows of data."
msgstr ""
-"ãã¼ã¿ã復å
ãããæ´æ°ãããããã«ã¯åãã¢ã¤ãã£ã¢ãé©ç¨ãã¾ãã ããã«å ã"
-"ã¦ããã¼ã¿ã®è¡ãå¤ãè¿ãã¯ã¨ãªã«å¯¾ãã¦æå¹ãª ãµã¼ãã¼ãµã¤ãã®ã«ã¼ã½ã«ã®å©ç¹ã"
+"ãã¼ã¿ã復å
ãããæ´æ°ãããããã«ã¯åãã¢ã¤ãã£ã¢ãé©ç¨ãã¾ããããã«å ã"
+"ã¦ããã¼ã¿ã®è¡ãå¤ãè¿ãã¯ã¨ãªã«å¯¾ãã¦æå¹ãªãµã¼ãã¼ãµã¤ãã®ã«ã¼ã½ã«ã®å©ç¹ã"
"çãããããã° <literal>scroll()</literal> ã使ãå¿
è¦ãããã¾ãã"
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
-msgstr "StatelessSessionã¤ã³ã¿ã¼ãã§ã¤ã¹"
+msgstr "StatelessSession ã¤ã³ã¿ã¼ãã§ã¼ã¹"
#. Tag: para
-#: batch.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, Hibernate provides a command-oriented API that can be used "
"for streaming data to and from the database in the form of detached objects. "
@@ -217,54 +135,33 @@
"effects. A stateless session is a lower-level abstraction that is much "
"closer to the underlying JDBC."
msgstr ""
-"ã¾ãå¥ã®æ¹æ³ã¨ãã¦ãHibernateã¯ã³ãã³ãæåã®APIãç¨æãã¦ãã¾ãã ããã¯åé¢"
-"ãªãã¸ã§ã¯ãã®å½¢ã§ã ãã¼ã¿ãã¼ã¹ã¨ã®ãã¼ã¿ã¹ããªã¼ã ã®ããåãã«ä½¿ããã¨ãã§"
-"ãã¾ãã <literal>StatelessSession</literal> ã¯é¢é£ããæ°¸ç¶ã³ã³ããã¹ããæã"
-"ãã é«ã¬ãã«ã®ã©ã¤ããµã¤ã¯ã«ã»ãã³ãã£ã¯ã¹ã®å¤ããæä¾ãã¾ããã ç¹ã«ã¹ãã¼"
-"ãã¬ã¹ã»ãã·ã§ã³ã¯ã䏿ãã£ãã·ã¥ãå®è£
ããã ã¾ãã©ã®ãããªäºæ¬¡ãã£ãã·ã¥ã"
-"ã¯ã¨ãªãã£ãã·ã¥ã¨ãç¸äºä½ç¨ãã¾ããã ãã©ã³ã¶ã¯ã·ã§ãã«ãªwrite-behindãèªå"
-"ãã¼ãã£ãã§ãã¯ãå®è£
ãã¾ããã ã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã使ã£ã¦è¡ãããæä½"
-"ãã é¢é£ããã¤ã³ã¹ã¿ã³ã¹ã¸ã«ã¹ã±ã¼ãããããã¨ã¯æ±ºãã¦ããã¾ããã ã³ã¬ã¯"
-"ã·ã§ã³ã¯ãã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ããã¯ç¡è¦ããã¾ãã ã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã"
-"éãã¦è¡ãããæä½ã¯ã Hibernateã®ã¤ãã³ãã¢ãã«ãã¤ã³ã¿ã¼ã»ãã¿ã®å½±é¿ãåã"
-"ã¾ããã 䏿ãã£ãã·ã¥ãæããªãããã ã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã¯å¥åãæã¤"
-"ãã¼ã¿ã«ä¸æã対å¦ã§ãã¾ããã ã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã¯ä½ã¬ãã«ã®æ½è±¡åã§ã"
-"ããJDBCã«é常ã«ããä¼¼ã¦ãã¾ãã"
+"ã¾ãå¥ã®æ¹æ³ã¨ãã¦ã Hibernate ã¯ã³ãã³ãæåã® API ãç¨æãã¦ãã¾ããããã¯"
+"åé¢ãªãã¸ã§ã¯ãã®å½¢ã§ããã¼ã¿ãã¼ã¹ã¨ã®ãã¼ã¿ã¹ããªã¼ã ã®ããåãã«ä½¿ããã¨"
+"ãã§ãã¾ãã <literal>StatelessSession</literal> ã¯é¢é£ããæ°¸ç¶ã³ã³ããã¹ãã"
+"æãããé«ã¬ãã«ã®ã©ã¤ããµã¤ã¯ã«ã»ãã³ãã£ã¯ã¹ã®å¤ããæä¾ãã¾ãããç¹ã«ã¹"
+"ãã¼ãã¬ã¹ã»ãã·ã§ã³ã¯ã䏿¬¡ãã£ãã·ã¥ãå®è£
ãããã¾ãã©ã®ãããªäºæ¬¡ãã£ã"
+"ã·ã¥ãã¯ã¨ãªãã£ãã·ã¥ã¨ãç¸äºä½ç¨ãã¾ããããã©ã³ã¶ã¯ã·ã§ãã«ãª write-"
+"behind ãèªåãã¼ãã£ãã§ãã¯ãå®è£
ãã¾ãããã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã使ã£ã¦è¡"
+"ãããæä½ããé¢é£ããã¤ã³ã¹ã¿ã³ã¹ã¸ã«ã¹ã±ã¼ãããããã¨ã¯æ±ºãã¦ããã¾ããã"
+"ã³ã¬ã¯ã·ã§ã³ã¯ãã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ããã¯ç¡è¦ããã¾ããã¹ãã¼ãã¬ã¹ã»ã"
+"ã·ã§ã³ãéãã¦è¡ãããæä½ã¯ã Hibernate ã®ã¤ãã³ãã¢ãã«ãã¤ã³ã¿ã¼ã»ãã¿ã®å½±"
+"é¿ãåãã¾ããã䏿¬¡ãã£ãã·ã¥ãæããªããããã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã¯å¥åã"
+"æã¤ãã¼ã¿ã«ä¸æã対å¦ã§ãã¾ãããã¹ãã¼ãã¬ã¹ã»ãã·ã§ã³ã¯ä½ã¬ãã«ã®æ½è±¡åã§"
+"ããã JDBC ã«é常ã«ããä¼¼ã¦ãã¾ãã"
-#. Tag: programlisting
-#: batch.xml:114
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:116
-#, fuzzy, no-c-format
-msgid ""
"In this code example, the <literal>Customer</literal> instances returned by "
"the query are immediately detached. They are never associated with any "
"persistence context."
msgstr ""
"ãã®ã³ã¼ãä¾ã§ã¯ãã¯ã¨ãªãè¿ã <literal>Customer</literal> ã¤ã³ã¹ã¿ã³ã¹ã¯å³åº§"
-"ã«ï¼ã»ãã·ã§ã³ããï¼åé¢ããããã¨ã«æ³¨æãã¦ãã ããã ããã¯ãã©ã®ãããªæ°¸ç¶"
-"ã³ã³ããã¹ãã¨ã決ãã¦é¢é£ãã¾ããã"
+"ã« ï¼ã»ãã·ã§ã³ããï¼ åé¢ããããã¨ã«æ³¨æãã¦ãã ãããããã¯ãã©ã®ãããªæ°¸"
+"ç¶ã³ã³ããã¹ãã¨ã決ãã¦é¢é£ãã¾ããã"
#. Tag: para
-#: batch.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>StatelessSession</literal> interface are "
@@ -274,21 +171,20 @@
"<literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>Session</literal> interface."
msgstr ""
-"<literal>StatelessSession</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§å®ç¾©ããã¦ãã "
-"<literal>insert(), update(), delete()</literal> ã¯ã ä½ã¬ãã«ã®ç´æ¥çãªãã¼ã¿"
-"ãã¼ã¹æä½ã¨èãããã¾ãã çµæã¨ãã¦ãSQLã® <literal>INSERT, UPDATE, "
-"DELETE</literal> ãããããå³åº§ã«å®è¡ããã¾ãã ãã®ããã«ãããã㯠"
-"<literal>Session</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§å®ç¾©ããã¦ãã <literal>save(), "
-"saveOrUpdate(), delete()</literal> ã¨ã¯é常ã«ç°ãªãæå³ãæã¡ã¾ãã"
+"<literal>StatelessSession</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§å®ç¾©ããã¦ãã "
+"<literal>insert(), update()</literal> 㨠<literal>delete()</literal> ã®æä½"
+"ã¯ãä½ã¬ãã«ã®ç´æ¥çãªãã¼ã¿ãã¼ã¹æä½ã¨èãããã¾ããçµæã¨ãã¦ã SQL ã® "
+"<literal>INSERT, UPDATE</literal> ã¾ã㯠<literal>DELETE</literal> ããããã"
+"å³åº§ã«å®è¡ããã¾ãããã®ããã«ãããã㯠<literal>Session</literal> ã¤ã³ã¿ã¼"
+"ãã§ã¼ã¹ã§å®ç¾©ããã¦ãã <literal>save(), saveOrUpdate()</literal> 㨠"
+"<literal>delete()</literal> ã¨ã¯é常ã«ç°ãªãæå³ãæã¡ã¾ãã"
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
-msgstr "DMLã¹ã¿ã¤ã«ã®æä½"
+msgstr "DML ã¹ã¿ã¤ã«ã®æä½"
#. Tag: para
-#: batch.xml:137
#, fuzzy, no-c-format
msgid ""
"As already discussed, automatic and transparent object/relational mapping is "
@@ -302,17 +198,17 @@
"\">HQL</link>)."
msgstr ""
"ãã§ã«è°è«ããããã«ãèªåçãã¤ééçãªãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°"
-"ã¯ã ãªãã¸ã§ã¯ãã®ç¶æ
ã®ç®¡çã§ããã¨èãããã¾ãã ããã¯ã¡ã¢ãªå
ã®ãªãã¸ã§"
-"ã¯ãã®ç¶æ
ãå©ç¨ã§ããã¨ãããã¨ã§ãã ãã®ããï¼SQLã® <literal>ãã¼ã¿æä½è¨"
-"èª</literal> (DML) æï¼ <literal>INSERT</literal>, <literal>UPDATE</"
-"literal>, <literal>DELETE</literal> ã使ã£ã¦ï¼ãã¼ã¿ãã¼ã¹å
ã®ãã¼ã¿ãç´æ¥æ"
-"ä½ãã¦ãã ã¡ã¢ãªå
ã®ç¶æ
ã«ã¯å½±é¿ãä¸ãã¾ããã ãããHibernateã¯ããã«ã¯SQL"
-"ã¹ã¿ã¤ã«ã®DMLæå®è¡ã«å¯¾å¿ããã¡ã½ãããç¨æãã¦ãã¾ãã ããã¯Hibernateã¯ã¨ãª"
-"è¨èªï¼<xref linkend=\"queryhql\">HQL</xref>ï¼ ãéãã¦å®è¡ããã¾ãã"
+"ã¯ããªãã¸ã§ã¯ãã®ç¶æ
ã®ç®¡çã§ããã¨èãããã¾ããããã¯ã¡ã¢ãªå
ã®ãªãã¸ã§ã¯"
+"ãã®ç¶æ
ãå©ç¨ã§ããã¨ãããã¨ã§ãããã®ãã ï¼SQLã® <literal>ãã¼ã¿æä½è¨èª"
+"</literal> (DML) æï¼ <literal>INSERT</literal>ã <literal>UPDATE</"
+"literal>ã <literal>DELETE</literal> ã使ã£ã¦ï¼ãã¼ã¿ãã¼ã¹å
ã®ãã¼ã¿ãç´æ¥æ"
+"ä½ãã¦ããã¡ã¢ãªå
ã®ç¶æ
ã«ã¯å½±é¿ãä¸ãã¾ãããããã Hibernate ã¯ããã«ã¯ "
+"SQL ã¹ã¿ã¤ã«ã® DML æå®è¡ã«å¯¾å¿ããã¡ã½ãããç¨æãã¦ãã¾ãããã㯠"
+"Hibernate ã¯ã¨ãªè¨èª (<xref linkend=\"queryhql\"/> HQL) ãéãã¦å®è¡ããã¾"
+"ãã"
#. Tag: para
-#: batch.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
@@ -320,87 +216,61 @@
msgstr ""
"<literal>UPDATE</literal> 㨠<literal>DELETE</literal> æã®çä¼¼æ§æã¯ï¼ "
"<literal>( UPDATE | DELETE ) FROM? ã¨ã³ãã£ãã£å (WHERE æ¡ä»¶ç¯)?</literal> "
-"ã§ãã æ³¨æãã¹ãç¹ãããã¤ãããã¾ãï¼"
+"ã§ããæ³¨æãã¹ãç¹ãããã¤ãããã¾ãï¼"
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
msgstr ""
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
-msgstr "fromç¯ã«ããã¦ãFROMãã¼ã¯ã¼ãã¯ãªãã·ã§ã³ã§ãã"
+msgstr "from ç¯ã«ããã¦ã FROM ãã¼ã¯ã¼ãã¯ãªãã·ã§ã³ã§ãã"
#. Tag: para
-#: batch.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can only be a single entity named in the from-clause. It can, however, "
"be aliased. If the entity name is aliased, then any property references must "
"be qualified using that alias. If the entity name is not aliased, then it is "
"illegal for any property references to be qualified."
msgstr ""
-"fromç¯ã§ã¯åä¸ã®ã¨ã³ãã£ãã£åã ããå¯è½ã§ã ä»»æã§å¥åãä»ãããã¨ãã§ãã¾"
-"ãã ã¨ã³ãã£ãã£åã«å¥åãä¸ããããã¨ãã©ã®ãããªããããã£åç
§ãã ãã®å¥"
-"åã使ã£ã¦ä¿®é£¾ããªããã°ãªãã¾ããã ããã¨ã³ãã£ãã£åã«å¥åãä¸ããããªãã"
-"ã°ã ã©ã®ãããªããããã£åç
§ã修飾ãã¦ã¯ãªãã¾ããã"
+"from ç¯ã§ã¯åä¸ã®ã¨ã³ãã£ãã£åã ããå¯è½ã§ãä»»æã§å¥åãä»ãããã¨ãã§ãã¾"
+"ããã¨ã³ãã£ãã£åã«å¥åãä¸ããããã¨ãã©ã®ãããªããããã£åç
§ãããã®å¥å"
+"ã使ã£ã¦ä¿®é£¾ããªããã°ãªãã¾ãããããã¨ã³ãã£ãã£åã«å¥åãä¸ããããªãã"
+"ã°ãã©ã®ãããªããããã£åç
§ã修飾ãã¦ã¯ãªãã¾ããã"
#. Tag: para
-#: batch.xml:170
#, fuzzy, no-c-format
msgid ""
"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
"the where-clause, where the subqueries themselves may contain joins."
msgstr ""
-"ï¼æé»çã§ããæç¤ºçã§ããï¼<xref linkend=\"queryhql-joins-forms\">çµå</"
-"xref> ããã«ã¯HQLã¯ã¨ãªå
ã§æå®ãããã¨ã¯ã§ãã¾ããã ãµãã¯ã¨ãªã¯whereç¯ã§ä½¿"
-"ããã¨ãã§ãã¾ã ãµãã¯ã¨ãªãã®ãã®ã¯ãçµåãå«ãããã¾ãã"
+"ï¼æé»çã§ããæç¤ºçã§ããï¼ <xref linkend=\"queryhql-joins-forms\"/> çµåã"
+"ãã«ã¯ HQL ã¯ã¨ãªå
ã§æå®ãããã¨ã¯ã§ãã¾ããããµãã¯ã¨ãªã¯ where ç¯ã§ä½¿ãã"
+"ã¨ãã§ãã¾ãããµãã¯ã¨ãªãã®ãã®ã¯ãçµåãå«ãããã¾ãã"
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
-msgstr "whereç¯ã¯ãªãã·ã§ã³ã§ãã"
+msgstr "where ç¯ã¯ãªãã·ã§ã³ã§ãã"
#. Tag: para
-#: batch.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
"<literal>Query.executeUpdate()</literal> method. The method is named for "
"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
"literal>:"
msgstr ""
-"ä¾ã¨ãã¦ãHQLã® <literal>UPDATE</literal> ãå®è¡ããã«ã¯ã <literal>Query."
-"executeUpdate()</literal> ã¡ã½ããã使ã£ã¦ãã ããã ï¼ãã®ã¡ã½ããã¯ããªãã¿"
-"ã®JDBC <literal>PreparedStatement.executeUpdate()</literal> ããåä»ãããã¾"
-"ããï¼ï¼ d"
+"ä¾ã¨ãã¦ã HQL ã® <literal>UPDATE</literal> ãå®è¡ããã«ã¯ã <literal>Query."
+"executeUpdate()</literal> ã¡ã½ããã使ã£ã¦ãã ãããï¼ãã®ã¡ã½ããã¯ããªãã¿"
+"ã® JDBC <literal>PreparedStatement.executeUpdate()</literal> ããåä»ãããã¾"
+"ããï¼ï¼"
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :"
-"oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :"
-"oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:191
#, fuzzy, no-c-format
msgid ""
"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
@@ -413,73 +283,38 @@
"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
"keyword."
msgstr ""
-"HQLã® <literal>UPDATE</literal> æã¯ãããã©ã«ãã§ã¯ãä½ç¨ããã¨ã³ãã£ãã£ã® "
-"<xref linkend=\"mapping-declaration-version\">version</xref> ã <xref "
-"linkend=\"mapping-declaration-timestamp\">timestamp</xref> ããããã£ã®å¤ã«ã¯"
-"å½±é¿ãã¾ããã ããã¯EJB3ã®ä»æ§ã«ãåãç¶ããã¦ãã¾ãã ããã "
+"HQL ã® <literal>UPDATE</literal> æã¯ãããã©ã«ãã§ã¯ãä½ç¨ããã¨ã³ãã£ãã£"
+"ã® <xref linkend=\"mapping-declaration-version\"/> ãã¼ã¸ã§ã³ã <xref "
+"linkend=\"mapping-declaration-timestamp\"/> ã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ã®å¤ã«"
+"ã¯å½±é¿ãã¾ããããã㯠EJB3 ã®ä»æ§ã«ãåãç¶ããã¦ãã¾ããããã "
"<literal>versioned update</literal> ã使ã£ã¦ã <literal>version</literal> ã "
"<literal>timestamp</literal> ããããã£ã®å¤ãå¼·å¶çã«ãªã»ããããããã¨ãã§ã"
-"ã¾ãã ãã㯠<literal>UPDATE</literal> ãã¼ã¯ã¼ãã®å¾ã« <literal>VERSIONED</"
+"ã¾ãããã㯠<literal>UPDATE</literal> ãã¼ã¯ã¼ãã®å¾ã« <literal>VERSIONED</"
"literal> ãã¼ã¯ã¼ãã追å ãããã¨ã§è¡ãã¾ãã"
-#. Tag: programlisting
-#: batch.xml:201
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName "
-"where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:203
-#, fuzzy, no-c-format
-msgid ""
"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
"literal>, are not allowed in conjunction with a <literal>update versioned</"
"literal> statement."
msgstr ""
"ã«ã¹ã¿ã ãã¼ã¸ã§ã³åï¼<literal>org.hibernate.usertype.UserVersionType</"
-"literal>ï¼ ã¯ <literal>update versioned</literal> æã¨ä¸ç·ã«ä½¿ããªããã¨ã«æ³¨"
-"æãã¦ãã ããã"
+"literal>ï¼ã¯ <literal>update versioned</literal> æã¨ä¸ç·ã«ä½¿ããªããã¨ã«æ³¨æ"
+"ãã¦ãã ããã"
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid ""
"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
"executeUpdate()</literal> method:"
msgstr ""
-"HQLã® <literal>DELETE</literal> ãå®è¡ããã«ã¯ã åã <literal>Query."
+"HQL ã® <literal>DELETE</literal> ãå®è¡ããã«ã¯ãåã <literal>Query."
"executeUpdate()</literal> ã¡ã½ããã使ã£ã¦ãã ããï¼"
-#. Tag: programlisting
-#: batch.xml:213
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:215
-#, fuzzy, no-c-format
-msgid ""
"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
"()</literal> method indicates the number of entities effected by the "
"operation. This may or may not correlate to the number of rows effected in "
@@ -492,16 +327,15 @@
"joined-subclass tables further down the inheritance hierarchy."
msgstr ""
"<literal>Query.executeUpdate()</literal> ã¡ã½ãããè¿ã <literal>int</"
-"literal> ã®å¤ã¯ããã®æä½ãå½±é¿ãåã¼ããã¨ã³ãã£ãã£ã®æ°ã§ãã ãããå½±é¿ã"
-"ããã¼ã¿ãã¼ã¹å
ã®è¡æ°ã¨ãç¸äºã«é¢ä¿ãããã©ãããèãã¦ã¿ã¦ãã ããã HQLã"
-"ã«ã¯æä½ã¯ãçµæã¨ãã¦ãå®éã®SQLæãè¤æ°å®è¡ããããã¨ã«ãªãã¾ãã ä¾ãã°"
-"joined-subclassã§ãã è¿ãããæ°ã¯ããã®æã«ãã£ã¦å½±é¿ãããå®éã®ã¨ã³ãã£"
-"ãã£ã®æ°ã示ãã¾ãã joined-subclassã®ä¾ã«æ»ãã¨ããµãã¯ã©ã¹ã®ä¸ã¤ã«å¯¾ããå"
-"é¤ã¯ã ãã®ãµãã¯ã©ã¹ããããã³ã°ããããã¼ãã«ã ãã§ã¯ãªãã ãã«ã¼ãããã¼"
-"ãã«ã¨ç¶æ¿é層ãããã«ä¸ã£ãjoined-subclassã®ãã¼ãã«ã®åé¤ã«ãªãã¾ãã"
+"literal> ã®å¤ã¯ããã®æä½ãå½±é¿ãåã¼ããã¨ã³ãã£ãã£ã®æ°ã§ãããããå½±é¿ãã"
+"ãã¼ã¿ãã¼ã¹å
ã®è¡æ°ã¨ãç¸äºã«é¢ä¿ãããã©ãããèãã¦ã¿ã¦ãã ããã HQL ãã«"
+"ã¯æä½ã¯ãçµæã¨ãã¦ãå®éã® SQL æãè¤æ°å®è¡ããããã¨ã«ãªãã¾ããä¾ãã° "
+"joined-subclass ã§ããè¿ãããæ°ã¯ããã®æã«ãã£ã¦å½±é¿ãããå®éã®ã¨ã³ãã£"
+"ãã£ã®æ°ã示ãã¾ãã joined-subclass ã®ä¾ã«æ»ãã¨ããµãã¯ã©ã¹ã®ä¸ã¤ã«å¯¾ããå"
+"é¤ã¯ããã®ãµãã¯ã©ã¹ããããã³ã°ããããã¼ãã«ã ãã§ã¯ãªãããã«ã¼ãããã¼ã"
+"ã«ã¨ç¶æ¿é層ãããã«ä¸ã£ã joined-subclass ã®ãã¼ãã«ã®åé¤ã«ãªãã¾ãã"
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid ""
"The pseudo-syntax for <literal>INSERT</literal> statements is: "
@@ -509,11 +343,9 @@
"Some points to note:"
msgstr ""
"<literal>INSERT</literal> æã®çä¼¼æ§æã¯ï¼ <literal>INSERT INTO ã¨ã³ãã£ãã£"
-"å ããããã£ãªã¹ã selectæ</literal> ã§ãã æ³¨æãã¹ãç¹ãããã¤ãããã¾"
-"ãï¼"
+"åããããã£ãªã¹ã select æ</literal> ã§ããæ³¨æãã¹ãç¹ãããã¤ãããã¾ãï¼"
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid ""
"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
@@ -523,8 +355,7 @@
"INTO ... VALUES ... ã®å½¢å¼ã¯ãµãã¼ãããã¦ãã¾ããã"
#. Tag: para
-#: batch.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties_list is analogous to the <literal>column specification</"
"literal> in the SQL <literal>INSERT</literal> statement. For entities "
@@ -533,16 +364,15 @@
"are not allowed and subclass properties do not make sense. In other words, "
"<literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
-"ããããã£ãªã¹ãã¯ãSQLã® <literal>INSERT</literal> æã«ããã <literal>ã«ã©"
-"ã ã®ä»æ§</literal> ã«é¡ä¼¼ãã¦ãã¾ãã ç¶æ¿ã®ãããã³ã°ã«å«ã¾ããã¨ã³ãã£ãã£"
-"ã«å¯¾ãã¦ã ã¯ã©ã¹ã¬ãã«ã§ç´æ¥å®ç¾©ãããããããã£ã ãããããããã£ãªã¹ãã«ä½¿"
-"ãã¾ãã ã¹ã¼ãã¼ã¯ã©ã¹ã®ããããã£ã¯èªããããããµãã¯ã©ã¹ã®ããããã£ã¯å¹æ"
-"ãããã¾ããã è¨ãæãã㨠<literal>INSERT</literal> æã¯ãæ¬è³ªçã«ããªã¢ã¼"
+"ããããã£ãªã¹ãã¯ã SQL ã® <literal>INSERT</literal> æã«ããã <literal>ã«"
+"ã©ã ã®ä»æ§</literal> ã«é¡ä¼¼ãã¦ãã¾ããç¶æ¿ã®ãããã³ã°ã«å«ã¾ããã¨ã³ãã£ãã£"
+"ã«å¯¾ãã¦ãã¯ã©ã¹ã¬ãã«ã§ç´æ¥å®ç¾©ãããããããã£ã ãããããããã£ãªã¹ãã«ä½¿"
+"ãã¾ããã¹ã¼ãã¼ã¯ã©ã¹ã®ããããã£ã¯èªããããããµãã¯ã©ã¹ã®ããããã£ã¯å¹æ"
+"ãããã¾ãããè¨ãæãã㨠<literal>INSERT</literal> æã¯ãæ¬è³ªçã«ããªã¢ã¼"
"ãã£ãã¯ã§ã¯ããã¾ããã"
#. Tag: para
-#: batch.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"select_statement can be any valid HQL select query, with the caveat that the "
"return types must match the types expected by the insert. Currently, this is "
@@ -555,19 +385,18 @@
"TimestampType</literal>, even though the database might not make a "
"distinction or might be able to handle the conversion."
msgstr ""
-"selectæã®è¿ãå¤ã®åãinsertæãæå¾
ããåã¨ããããã¦ããã°ã ãã®selectæã¯"
-"妥å½ãªHQL selectã¯ã¨ãªã¨ãªããã¾ãã ç¾å¨ãã®ãã§ãã¯ããã¼ã¿ãã¼ã¹ã¸ä»»ããã®"
-"ã§ã¯ãªããã¯ã¨ãªã®ã³ã³ãã¤ã«æã«ãã§ãã¯ãã¾ãã ãã®ãã¨ã¯ã"
-"<emphasis>equal</emphasis>ã¨ã¯éãã Hibernateã® <literal>Type</literal> é"
-"ã® <emphasis>equivalent</emphasis> ã«é¢ãã åé¡ãå¼ãèµ·ãããã¨ã«æ³¨æãã¦ã"
-"ã ããã ãã㯠<literal>org.hibernate.type.DataType</literal> ã¨ãã¦å®ç¾©ãã"
-"ãããããã£ã¨ã <literal>org.hibernate.type.TimestampType</literal> ã¨ãã¦å®"
-"義ãããããããã£ã®éã®ãã¹ãããã®åé¡ãå¼ãèµ·ããã¾ãã ãã¼ã¿ãã¼ã¹ããã"
-"ããåºå¥ã§ããªãã¦ãã夿ãããã¨ãã§ãã¦ãããã®åé¡ã¯çºçãã¾ãã"
+"select æã®è¿ãå¤ã®åã insert æãæå¾
ããåã¨ããããã¦ããã°ããã® select "
+"æã¯å¦¥å½ãª HQL select ã¯ã¨ãªã¨ãªããã¾ããç¾å¨ãã®ãã§ãã¯ããã¼ã¿ãã¼ã¹ã¸ä»»"
+"ããã®ã§ã¯ãªããã¯ã¨ãªã®ã³ã³ãã¤ã«æã«ãã§ãã¯ãã¾ãããã®ãã¨ã¯ã "
+"<emphasis>equal</emphasis> ã¨ã¯éãã Hibernate ã® <literal>Type</literal> é"
+"ã® <emphasis>equivalent</emphasis> ã«é¢ããåé¡ãå¼ãèµ·ãããã¨ã«æ³¨æãã¦ãã "
+"ããããã㯠<literal>org.hibernate.type.DateType</literal> ã¨ãã¦å®ç¾©ããã"
+"ããããã£ã¨ã <literal>org.hibernate.type.TimestampType</literal> ã¨ãã¦å®ç¾©"
+"ãããããããã£ã®éã®ãã¹ãããã®åé¡ãå¼ãèµ·ããã¾ãããã¼ã¿ãã¼ã¹ãããã"
+"ãåºå¥ã§ããªãã¦ãã夿ãããã¨ãã§ãã¦ãããã®åé¡ã¯çºçãã¾ãã"
#. Tag: para
-#: batch.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For the id property, the insert statement gives you two options. You can "
"either explicitly specify the id property in the properties_list, in which "
@@ -583,21 +412,21 @@
"TableHiLoGenerator</literal>, which cannot be used because it does not "
"expose a selectable way to get its values."
msgstr ""
-"idããããã£ã«å¯¾ãã¦ãinsertæã«ã¯äºã¤ã®é¸æè¢ãããã¾ãã ããããã£ãªã¹ãã§"
-"æç¤ºçã«idããããã£ãæå®ããã ï¼ãã®å ´åã対å¿ããselectå¼ããå¤ãåããã¾"
-"ãï¼ã ããããã£ãªã¹ãããé¤å¤ããã ï¼ãã®å ´åãçæãããå¤ã使ããã¾ãï¼"
-"ã®ããããã§ãã å¾è
ã®é¸æè¢ã¯ããã¼ã¿ãã¼ã¹å
ãæä½ããidã¸ã§ãã¬ã¼ã¿ã使ã"
-"ã¨ãã®ã¿ãå©ç¨å¯è½ã§ãã ãã®é¸æè¢ãæ¡ãå ´åããã¤ã³ã¡ã¢ãªãåã®ã¸ã§ãã¬ã¼ã¿"
-"ã使ãã¨ãæ§æè§£ææã«ä¾å¤ãçºçãã¾ãã ãã®è°è«ã§ã¯ãã¤ã³ãã¼ã¿ãã¼ã¹åã¸ã§"
-"ãã¬ã¼ã¿ã¯ <literal>org.hibernate.id.SequenceGenerator</literal> ï¼ã¨ãã®ãµã"
-"ã¯ã©ã¹ï¼ã¨ã<literal>org.hibernate.id.PostInsertIdentifierGenerator</"
-"literal> ã®å®è£
ã§ããã¨èãã¦ãã¾ãã ããã§æãæ³¨æãã¹ãä¾å¤ã¯ã"
-"<literal>org.hibernate.id.TableHiLoGenerator</literal> ã§ãã å¤ãåå¾ããé¸"
-"æå¯è½ãªæ¹æ³ããªãããããã®ã¸ã§ãã¬ã¼ã¿ã使ããã¨ã¯ã§ãã¾ããã"
+"id ããããã£ã«å¯¾ãã¦ã insert æã«ã¯äºã¤ã®é¸æè¢ãããã¾ããããããã£ãªã¹ã"
+"ã§æç¤ºçã« id ããããã£ãæå®ããã ï¼ãã®å ´åã対å¿ãã select å¼ããå¤ãå"
+"ããã¾ãï¼ãããããã£ãªã¹ããããããé¤å¤ãããã®ããããã§ã (ãã®å ´åãç"
+"æãããå¤ã使ããã¾ã)ã å¾è
ã®é¸æè¢ã¯ããã¼ã¿ãã¼ã¹å
ãæä½ãã id ã¸ã§ã"
+"ã¬ã¼ã¿ã使ãã¨ãã®ã¿ãå©ç¨å¯è½ã§ãããã®é¸æè¢ãæ¡ãå ´åããã¤ã³ã¡ã¢ãªãåã®"
+"ã¸ã§ãã¬ã¼ã¿ã使ãã¨ãæ§æè§£ææã«ä¾å¤ãçºçãã¾ãããã®è°è«ã§ã¯ãã¤ã³ãã¼ã¿"
+"ãã¼ã¹åã¸ã§ãã¬ã¼ã¿ã¯ <literal>org.hibernate.id.SequenceGenerator</literal> "
+"ï¼ã¨ãã®ãµãã¯ã©ã¹ï¼ ã¨ã <literal>org.hibernate.id."
+"PostInsertIdentifierGenerator</literal> ã®å®è£
ã§ããã¨èãã¦ãã¾ããããã§æ"
+"ãæ³¨æãã¹ãä¾å¤ã¯ã <literal>org.hibernate.id.TableHiLoGenerator</literal> "
+"ã§ããå¤ãåå¾ãã鏿å¯è½ãªæ¹æ³ããªãããããã®ã¸ã§ãã¬ã¼ã¿ã使ããã¨ã¯ã§ã"
+"ã¾ããã"
#. Tag: para
-#: batch.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For properties mapped as either <literal>version</literal> or "
"<literal>timestamp</literal>, the insert statement gives you two options. "
@@ -607,31 +436,251 @@
"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
"<literal>version</literal> ã <literal>timestamp</literal> ã¨ãã¦ãããã³ã°ã"
-"ããããããã£ã«å¯¾ãã¦ã insertæã«ã¯äºã¤ã®é¸æè¢ãããã¾ãã ããããã£ãªã¹"
-"ãã§æç¤ºçã«ããããã£ãæå®ããã ï¼ãã®å ´åã対å¿ããselectå¼ããå¤ãåãã"
-"ã¾ãï¼ã ããããã£ãªã¹ãããé¤å¤ããã ï¼ãã®å ´åã<literal>org.hibernate."
+"ããããããã£ã«å¯¾ãã¦ã insert æã«ã¯äºã¤ã®é¸æè¢ãããã¾ããããããã£ãªã¹"
+"ãã§æç¤ºçã«ããããã£ãæå®ãããï¼ãã®å ´åã対å¿ãã select å¼ããå¤ãåã"
+"ãã¾ãï¼ãããããã£ãªã¹ãããé¤å¤ãããï¼ãã®å ´åã <literal>org.hibernate."
"type.VersionType</literal> ã§å®ç¾©ããã <literal>ã·ã¼ãå¤</literal> ã使ãã"
"ã¾ãï¼ã®ããããã§ãã"
#. Tag: para
-#: batch.xml:284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of an HQL <literal>INSERT</literal> statement "
"execution:"
-msgstr "HQLã® <literal>INSERT</literal> æã®å®è¡ä¾ã§ãï¼"
+msgstr "HQL ã® <literal>INSERT</literal> æã®å®è¡ä¾ã§ãï¼"
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c."
-"name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
+#~ msgstr "hibernate.jdbc.batch_size 20"
+
+#, fuzzy
+#~ msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
+#~ msgstr "hibernate.cache.use_second_level_cache false"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession"
+#~ "();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "StatelessSession session = sessionFactory.openStatelessSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer \n"
+#~ " c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-20 16:59+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
msgstr "ãã¹ããã©ã¯ãã£ã¹"
#. Tag: term
-#: best_practices.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
"literal>:"
@@ -27,7 +28,6 @@
"ã¾ãããã"
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -35,37 +35,33 @@
"<literal>postcode</literal>. This encourages code reuse and simplifies "
"refactoring."
msgstr ""
-"<literal>street</literal>ï¼éãï¼, <literal>suburb</literal> ï¼é½å¸ï¼, "
-"<literal>state</literal>ï¼å·ï¼, <literal>postcode</literal> ï¼éµä¾¿çªå·ï¼ãã«"
-"ãã»ã«åãã <literal>Address</literal>ï¼ä½æï¼ã¯ã©ã¹ã使ãã¾ãããã ããã"
-"ãã°ã³ã¼ããåå©ç¨ãããããªãããªãã¡ã¯ã¿ãªã³ã°ãç°¡åã«ãªãã¾ãã"
+"<literal>street</literal> ï¼éãï¼ã <literal>suburb</literal> ï¼é½å¸ï¼ã "
+"<literal>state</literal> ï¼å·ï¼ã <literal>postcode</literal> ï¼éµä¾¿çªå·ï¼ã"
+"ã«ãã»ã«åãã <literal>Address</literal> ï¼ä½æï¼ã¯ã©ã¹ã使ãã¾ãããããã"
+"ããã°ã³ã¼ããåå©ç¨ãããããªãããªãã¡ã¯ã¿ãªã³ã°ãç°¡åã«ãªãã¾ãã"
#. Tag: term
-#: best_practices.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Declare identifier properties on persistent classes:"
msgstr "æ°¸ç¶ã¯ã©ã¹ã«ã¯èå¥åããããã£ãå®ç¾©ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
"why you should use them. We recommend that identifiers be 'synthetic', that "
"is, generated with no business meaning."
msgstr ""
-"Hibernateã§ã¯èå¥åããããã£ã¯ãªãã·ã§ã³ã§ããã 使ç¨ãã¹ãçç±ãããããã"
-"ãã¾ãã èå¥åã¯ã人工çãï¼çæããããæ¥åçãªæå³ãæããªãï¼ ãªãã®ã«ã"
-"ããã¨ããããããã¾ãã"
+"Hibernate ã§ã¯èå¥åããããã£ã¯ãªãã·ã§ã³ã§ããã使ç¨ãã¹ãçç±ãããããã"
+"ãã¾ããèå¥åã¯ã人工çãï¼çæããããæ¥åçãªæå³ãæããªãï¼ãªãã®ã«ãã"
+"ãã¨ããããããã¾ãã"
#. Tag: term
-#: best_practices.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Identify natural keys:"
msgstr "èªç¶ãã¼ãè¦ã¤ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -74,19 +70,17 @@
"natural key."
msgstr ""
"ãã¹ã¦ã®ã¨ã³ãã£ãã£ã«å¯¾ãã¦èªç¶ãã¼ãè¦ã¤ãã¦ã <literal><natural-id>"
-"</literal> ã§ãããã³ã°ãã¾ãããã èªç¶ãã¼ãæ§æããããããã£ãæ¯è¼ããã"
-"ãã«ã <literal>equals()</literal> 㨠<literal>hashCode()</literal> ãå®è£
ã"
-"ã¾ãããã"
+"</literal> ã§ãããã³ã°ãã¾ããããèªç¶ãã¼ãæ§æããããããã£ãæ¯è¼ãããã"
+"ã«ã <literal>equals()</literal> 㨠<literal>hashCode()</literal> ãå®è£
ãã¾"
+"ãããã"
#. Tag: term
-#: best_practices.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Place each class mapping in its own file:"
msgstr "ã¯ã©ã¹ã®ãããã³ã°ã¯ããããã®ã¯ã©ã¹å°ç¨ã®ãã¡ã¤ã«ã«æ¸ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
"literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes "
@@ -94,85 +88,75 @@
msgstr ""
"åä¸ã®å·¨å¤§ãªãããã³ã°ããã¥ã¡ã³ãã使ç¨ããªãã§ãã ããã <literal>com.eg."
"Foo</literal> ã¯ã©ã¹ãªã <literal>com/eg/Foo.hbm.xml</literal> ãã¡ã¤ã«ã«ãã"
-"ãã³ã°ãã¾ãããã ãã®ãã¨ã¯ãç¹ã«ãã¼ã ã§ã®éçºã«æå³ãããã¾ãã"
+"ãã³ã°ãã¾ãããããã®ãã¨ã¯ãç¹ã«ãã¼ã ã§ã®éçºã«æå³ãããã¾ãã"
#. Tag: term
-#: best_practices.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Load mappings as resources:"
msgstr "ãªã½ã¼ã¹ã¨ãã¦ãããã³ã°ããã¼ããã¾ãããã"
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
-msgstr "ãããã³ã°ãããããããããã³ã°ããããã¯ã©ã¹ã¨ä¸ç·ã«é
ç½®ãã¾ãããã"
+msgstr "ãããã³ã°ãããããããããã³ã°ããã¯ã©ã¹ã¨ä¸ç·ã«é
ç½®ãã¾ãããã"
#. Tag: term
-#: best_practices.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider externalizing query strings:"
msgstr "ã¯ã¨ãªæååãå¤é¨ã«ç½®ããã¨ãèãã¾ããã"
#. Tag: para
-#: best_practices.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
"Externalizing the query strings to mapping files will make the application "
"more portable."
msgstr ""
-"ã¯ã¨ãªãANSIæ¨æºã§ãªãSQL颿°ãå¼ãã§ãããªããããã¯ãããã©ã¯ãã£ã¹ã§ãã "
-"ã¯ã¨ãªæååããããã³ã°ãã¡ã¤ã«ã¸å¤åºãããã°ã¢ããªã±ã¼ã·ã§ã³ããã¼ã¿ãã«ã«"
-"ãªãã¾ãã"
+"ã¯ã¨ãªã ANSI æ¨æºã§ãªã SQL 颿°ãå¼ãã§ãããªããããã¯ãããã©ã¯ãã£ã¹ã§"
+"ããã¯ã¨ãªæååããããã³ã°ãã¡ã¤ã«ã¸å¤åºãããã°ã¢ããªã±ã¼ã·ã§ã³ããã¼ã¿ã"
+"ã«ã«ãªãã¾ãã"
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
msgstr "ãã¤ã³ã夿°ã使ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
"manipulation to bind a non-constant value in a query. You should also "
"consider using named parameters in queries."
msgstr ""
-"JDBCã®å ´åã¨åãããã«ã宿°ã§ãªãå¤ã¯å¿
ã\"?\"ã§ç½®ãæãã¾ãããã 宿°ã§ãª"
-"ãå¤ããã¤ã³ãããããã«ãã¯ã¨ãªã§æååæä½ã使ã£ã¦ã¯ããã¾ããã ååä»ãã®"
-"ãã©ã¡ã¼ã¿ã使ãããã«ããã¨ããã«è¯ãã§ãã"
+"JDBC ã®å ´åã¨åãããã«ã宿°ã§ãªãå¤ã¯å¿
ã \"?\" ã§ç½®ãæãã¾ãããã宿°ã§"
+"ãªãå¤ããã¤ã³ãããããã«ãã¯ã¨ãªã§æååæä½ã使ã£ã¦ã¯ããã¾ãããååä»ã"
+"ã®ãã©ã¡ã¼ã¿ã使ãããã«ããã¨ããã«è¯ãã§ãã"
#. Tag: term
-#: best_practices.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not manage your own JDBC connections:"
-msgstr "JDBCã³ãã¯ã·ã§ã³ã管çãã¦ã¯ããã¾ããã"
+msgstr "JDBC ã³ãã¯ã·ã§ã³ã管çãã¦ã¯ããã¾ããã"
#. Tag: para
-#: best_practices.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
"approach should be considered a last-resort. If you cannot use the built-in "
"connection providers, consider providing your own implementation of "
"<literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
-"Hibernateã§ã¯ã¢ããªã±ã¼ã·ã§ã³ãJDBCã³ãã¯ã·ã§ã³ã管çãããã¨ã許ããã¦ãã¾"
-"ãã ãããããã¯æçµææ®µã ã¨æã£ã¦ãã ããã çµã¿è¾¼ã¿ã®ã³ãã¯ã·ã§ã³ãããã¤"
+"Hibernate ã§ã¯ã¢ããªã±ã¼ã·ã§ã³ã JDBC ã³ãã¯ã·ã§ã³ã管çãããã¨ã許ããã¦ã"
+"ã¾ãããããããã¯æçµææ®µã ã¨æã£ã¦ãã ãããçµã¿è¾¼ã¿ã®ã³ãã¯ã·ã§ã³ãããã¤"
"ãã使ããã¨ãã§ããªããã°ã <literal>org.hibernate.connection."
"ConnectionProvider</literal> ãå®è£
ãããã¨ãèãã¦ãã ããã"
#. Tag: term
-#: best_practices.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider using a custom type:"
msgstr "ã«ã¹ã¿ã åã®ä½¿ç¨ãèãã¾ãããã"
#. Tag: para
-#: best_practices.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
"does not provide the accessors needed to map it as a component. You should "
@@ -180,47 +164,44 @@
"approach frees the application code from implementing transformations to/"
"from a Hibernate type."
msgstr ""
-"ããã©ã¤ãã©ãªããæã£ã¦ããJavaåãæ°¸ç¶åããå¿
è¦ãããã¨ãã¾ãããã ããã"
-"ãã®åã«ã¯ãã³ã³ãã¼ãã³ãã¨ãã¦ãããã³ã°ããããã«å¿
è¦ãªã¢ã¯ã»ãµããªãã¨ã"
-"ã¾ãã ãã®ãããªå ´å㯠<literal>org.hibernate.UserType</literal> ã®å®è£
ãè"
-"ããã¹ãã§ãã ããããã°Hibernateåã¨ã®å®è£
夿ãå¿é
ããã«ã¢ããªã±ã¼ã·ã§ã³"
+"ããã©ã¤ãã©ãªããæã£ã¦ãã Java åãæ°¸ç¶åããå¿
è¦ãããã¨ãã¾ãããããã"
+"ããã®åã«ã¯ãã³ã³ãã¼ãã³ãã¨ãã¦ãããã³ã°ããããã«å¿
è¦ãªã¢ã¯ã»ãµããªãã¨"
+"ãã¾ãããã®ãããªå ´å㯠<literal>org.hibernate.UserType</literal> ã®å®è£
ãè"
+"ããã¹ãã§ããããããã° Hibernate åã¨ã®å®è£
夿ãå¿é
ããã«ã¢ããªã±ã¼ã·ã§ã³"
"ã®ã³ã¼ããæ±ãã¾ãã"
#. Tag: term
-#: best_practices.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
-msgstr "ããã«ããã¯ãè§£æ¶ããã«ã¯JDBCããã³ãã³ã¼ããã¾ãããã"
+msgstr "ããã«ããã¯ãè§£æ¶ããã«ã¯ JDBC ããã³ãã³ã¼ããã¾ãããã"
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
-"ã·ã¹ãã ã®ããã©ã¼ãã³ã¹ã¯ãªãã£ã«ã«ãªé åã§ã¯ã ããç¨®ã®æä½ã«JDBCãç´æ¥ä½¿ã"
-"ã¨è¯ãããããã¾ããã ãããä½ãããã«ããã¯ã«ãªã£ã¦ããã <emphasis>ã¯ã£ã"
-"ããã</emphasis> ã¾ã§ã¯å¾
ã£ã¦ãã ããã ã¾ãJDBCãç´æ¥ä½¿ãããã¨ãã£ã¦ãå¿
ã"
-"ããéããªãã¨ã¯éããªããã¨ãçè§£ãã¦ãã ããã JDBCãç´æ¥ä½¿ãå¿
è¦ãããã°ã"
-"Hibernateã® <literal>Session</literal> ããªã¼ãã³ãã¦ã JDBCã³ãã¯ã·ã§ã³ã使"
-"ãã¨è¯ãããããã¾ããã ä¾ç¶ã¨ãã¦åããã©ã³ã¶ã¯ã·ã§ã³æ¦ç¥ã¨ã³ãã¯ã·ã§ã³ãã"
-"ãã¤ãã使ããããã§ãã"
+"ã·ã¹ãã ã®ããã©ã¼ãã³ã¹ã¯ãªãã£ã«ã«ãªé åã§ã¯ãããç¨®ã®æä½ã« JDBC ãç´æ¥ä½¿"
+"ãã¨è¯ãããããã¾ããããããä½ãããã«ããã¯ã«ãªã£ã¦ããã <emphasis>ã¯ã£ã"
+"ããã</emphasis> ã¾ã§ã¯å¾
ã£ã¦ãã ãããã¾ã JDBC ãç´æ¥ä½¿ãããã¨ãã£ã¦ãå¿
"
+"ãããéããªãã¨ã¯éããªããã¨ãçè§£ãã¦ãã ããã JDBC ãç´æ¥ä½¿ãå¿
è¦ããã"
+"ã°ã Hibernate ã® <literal>Session</literal> ããªã¼ãã³ãã¦ã JDBC ã³ãã¯"
+"ã·ã§ã³ã使ãã¨è¯ãããããã¾ãããä¾ç¶ã¨ãã¦åããã©ã³ã¶ã¯ã·ã§ã³æ¦ç¥ã¨ã³ãã¯"
+"ã·ã§ã³ãããã¤ãã使ããããã§ãã"
#. Tag: term
-#: best_practices.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
msgstr "<literal>Session</literal> ã®ãã©ãã·ã¥ãçè§£ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
"Performance will be affected if this process occurs too often. You can "
@@ -228,20 +209,18 @@
"even by changing the order of queries and other operations within a "
"particular transaction."
msgstr ""
-"Sessionãæ°¸ç¶ç¶æ
ããã¼ã¿ãã¼ã¹ã¨åæããããã¨ãã¨ãã©ãããã¾ãã ãããã"
-"ãããã¾ãã«é »ç¹ã«èµ·ããããã ã¨ãããã©ã¼ãã³ã¹ã«å½±é¿ãåºã¦ãã¾ãã èªåã"
+"Session ãæ°¸ç¶ç¶æ
ããã¼ã¿ãã¼ã¹ã¨åæããããã¨ãã¨ãã©ãããã¾ãããããã"
+"ãããã¾ãã«é »ç¹ã«èµ·ããããã ã¨ãããã©ã¼ãã³ã¹ã«å½±é¿ãåºã¦ãã¾ããèªåã"
"ã©ãã·ã¥ãç¡å¹ã«ããããç¹å®ã®ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¯ã¨ãªãæä½ã®é çªã夿´ãã"
-"ãã¨ã§ã ä¸å¿
è¦ãªãã©ãã·ã¥ãæå°éã«ã§ãã¾ãã"
+"ãã¨ã§ãä¸å¿
è¦ãªãã©ãã·ã¥ãæå°éã«ã§ãã¾ãã"
#. Tag: term
-#: best_practices.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr "3層ã¢ã¼ããã¯ãã£ã§ã¯åé¢ãªãã¸ã§ã¯ãã®ä½¿ç¨ãèãã¾ãããã"
#. Tag: para
-#: best_practices.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
"objects loaded in the session bean to and from the servlet/JSP layer. Use a "
@@ -249,21 +228,19 @@
"or <literal>Session.saveOrUpdate()</literal> to synchronize objects with the "
"database."
msgstr ""
-"ãµã¼ãã¬ãã / ã»ãã·ã§ã³ãã¼ã³ã¢ã¼ããã¯ãã£ã使ãã¨ãã ãµã¼ãã¬ãã層 / "
-"JSP層éã§ã»ãã·ã§ã³ãã¼ã³ã§ãã¼ãããæ°¸ç¶ãªãã¸ã§ã¯ããããåãã§ãã¾ãã ã"
-"ã®éãªã¯ã¨ã¹ããã¨ã«æ°ããSessionã使ã£ã¦ãã ããã ã¾ã <literal>Session."
+"ãµã¼ãã¬ãã / ã»ãã·ã§ã³ Bean ã¢ã¼ããã¯ãã£ã使ãã¨ãããµã¼ãã¬ãã層 / "
+"JSP 層éã§ã»ãã·ã§ã³ Bean ã§ãã¼ãããæ°¸ç¶ãªãã¸ã§ã¯ããããåãã§ãã¾ããã"
+"ã®éãªã¯ã¨ã¹ããã¨ã«æ°ãã Session ã使ã£ã¦ãã ãããã¾ã <literal>Session."
"merge()</literal> ã <literal>Session.saveOrUpdate()</literal> ã使ã£ã¦ããªã"
"ã¸ã§ã¯ãã¨ãã¼ã¿ãã¼ã¹ãåæããã¦ãã ããã"
#. Tag: term
-#: best_practices.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr "2層ã¢ã¼ããã¯ãã£ã§ã¯é·ãæ°¸ç¶ã³ã³ããã¹ãã®ä½¿ç¨ãèãã¾ãããã"
#. Tag: para
-#: best_practices.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
"However, it is often necessary to implement long running "
@@ -278,28 +255,26 @@
"across more than one application transaction or you will be working with "
"stale data."
msgstr ""
-"æé«ã®ã¹ã±ã¼ã©ããªãã£ãå¾ãã«ã¯ã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã§ããã ãç"
-"ãããªããã°ãªãã¾ããã ãããé·ãéå®è¡ãã <emphasis>ã¢ããªã±ã¼ã·ã§ã³ãã©"
-"ã³ã¶ã¯ã·ã§ã³</emphasis> ã®å®è£
ãå¿
è¦ãªãã¨ã¯ãã°ãã°ã§ãã ããã¯ã¦ã¼ã¶ã®è¦ç¹"
-"ããã¯1åã®ä½æ¥åä½ï¼unit of workï¼ã«ãªãã¾ãã ã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯"
-"ã·ã§ã³ã¯ããã¤ãã®ã¯ã©ã¤ã¢ã³ãã®ãªã¯ã¨ã¹ã/ã¬ã¹ãã³ã¹ãµã¤ã¯ã«ã«ã¾ãããã¾"
-"ãã ã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³ã®å®è£
ã«åé¢ãªãã¸ã§ã¯ãã使ãã®ã¯ä¸è¬ç"
-"ã§ãã ããã§ãªããã°ã2層ã¢ã¼ããã¯ãã£ã®å ´åã¯ç¹ã«é©åãªãã¨ã§ããã ã¢ããª"
-"ã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³ã®ã©ã¤ããµã¤ã¯ã«å
¨ä½ã«å¯¾ã㦠åä¸ã®ãªã¼ãã³ãªæ°¸ç¶å"
-"ã³ã³ããã¹ãï¼ã»ãã·ã§ã³ï¼ãç¶æãã¦ãã ããã ããã¦åç´ã«ãªã¯ã¨ã¹ãã®æå¾ã«"
-"JDBCã³ãã¯ã·ã§ã³ããåæãã æ¬¡ã®ãªã¯ã¨ã¹ãã®æåã«åæ¥ç¶ãã¾ãã æ±ºãã¦è¤æ°"
-"ã®ã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³ã¦ã¼ã¹ã±ã¼ã¹ã«æ¸¡ã£ã¦ 1åã®Sessionã使ãåã"
-"ãªãã§ãã ããã ããã§ãªããã°ãå¤ããã¼ã¿ã§ä½æ¥ãããã¨ã«ãªãã¾ãã"
+"æé«ã®ã¹ã±ã¼ã©ããªãã£ãå¾ãã«ã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã§ããã ãç"
+"ãããªããã°ãªãã¾ããããããé·ãéå®è¡ãã <emphasis>ã¢ããªã±ã¼ã·ã§ã³ãã©ã³"
+"ã¶ã¯ã·ã§ã³</emphasis> ã®å®è£
ãå¿
è¦ãªãã¨ã¯ãã°ãã°ã§ããããã¯ã¦ã¼ã¶ã¼ã®è¦ç¹"
+"ããã¯1åã®ä½æ¥åä½ï¼unit of workï¼ã«ãªãã¾ããã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§"
+"ã³ã¯ããã¤ãã®ã¯ã©ã¤ã¢ã³ãã®ãªã¯ã¨ã¹ã/ã¬ã¹ãã³ã¹ãµã¤ã¯ã«ã«ã¾ãããã¾ããã¢ã"
+"ãªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³ã®å®è£
ã«åé¢ãªãã¸ã§ã¯ãã使ãã®ã¯ä¸è¬çã§ããã"
+"ãã§ãªããã°ã2層ã¢ã¼ããã¯ãã£ã®å ´åã¯ç¹ã«é©åãªãã¨ã§ãããã¢ããªã±ã¼ã·ã§ã³"
+"ãã©ã³ã¶ã¯ã·ã§ã³ã®ã©ã¤ããµã¤ã¯ã«å
¨ä½ã«å¯¾ãã¦åä¸ã®ãªã¼ãã³ãªæ°¸ç¶åã³ã³ããã¹"
+"ãï¼ã»ãã·ã§ã³ï¼ãç¶æãã¦ãã ãããããã¦åç´ã«ãªã¯ã¨ã¹ãã®æå¾ã« JDBC ã³ã"
+"ã¯ã·ã§ã³ããåæããæ¬¡ã®ãªã¯ã¨ã¹ãã®æåã«åæ¥ç¶ãã¾ããæ±ºãã¦è¤æ°ã®ã¢ããª"
+"ã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³ã¦ã¼ã¹ã±ã¼ã¹ã«æ¸¡ã£ã¦1åã® Session ã使ãåããªãã§"
+"ãã ãããããã§ãªããã°ãå¤ããã¼ã¿ã§ä½æ¥ãããã¨ã«ãªãã¾ãã"
#. Tag: term
-#: best_practices.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not treat exceptions as recoverable:"
msgstr "ä¾å¤ã復帰å¯è½ãªãã®ã¨ãã¦æ±ã£ã¦ã¯ããã¾ããã"
#. Tag: para
-#: best_practices.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
"exception occurs, roll back the <literal>Transaction</literal> and close the "
@@ -309,23 +284,21 @@
"instance with the given identifier exists on the database; use "
"<literal>Session.get()</literal> or a query instead."
msgstr ""
-"ããã¯ããã¹ãããã©ã¯ãã£ã¹ä»¥ä¸ã®ãå¿
é ã®ãã©ã¯ãã£ã¹ã§ãã ä¾å¤ãçºçããã¨"
+"ããã¯ããã¹ãããã©ã¯ãã£ã¹ä»¥ä¸ã®ãå¿
é ã®ãã©ã¯ãã£ã¹ã§ããä¾å¤ãçºçããã¨"
"ã㯠<literal>Transaction</literal> ããã¼ã«ããã¯ãã¦ã <literal>Session</"
-"literal> ãã¯ãã¼ãºãã¦ãã ããã ããããªãã¨Hibernateã¯ã¡ã¢ãªã®ç¶æ
ãæ°¸ç¶ç¶"
-"æ
ãæ£ç¢ºã«è¡¨ç¾ãã¦ãããã¨ãä¿è¨¼ã§ãã¾ããã ãã®ç¹å¥ãªå ´åã¨ãã¦ãä¸ãããã"
-"èå¥åãæã¤ã¤ã³ã¹ã¿ã³ã¹ããã¼ã¿ãã¼ã¹ã«åå¨ãããã©ãããå¤å®ããããã«ã "
-"<literal>Session.load()</literal> ã使ããã¨ã¯ããã¦ãã ããã ãã®ä»£ããã« "
+"literal> ãã¯ãã¼ãºãã¦ãã ãããããããªã㨠Hibernate ã¯ã¡ã¢ãªã®ç¶æ
ãæ°¸ç¶"
+"ç¶æ
ãæ£ç¢ºã«è¡¨ç¾ãã¦ãããã¨ãä¿è¨¼ã§ãã¾ããããã®ç¹å¥ãªå ´åã¨ãã¦ãä¸ããã"
+"ãèå¥åãæã¤ã¤ã³ã¹ã¿ã³ã¹ããã¼ã¿ãã¼ã¹ã«åå¨ãããã©ãããå¤å®ããããã«ã "
+"<literal>Session.load()</literal> ã使ããã¨ã¯ããã¦ãã ããããã®ä»£ããã« "
"<literal>Session.get()</literal> ãã¯ã¨ãªã使ã£ã¦ãã ããã"
#. Tag: term
-#: best_practices.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer lazy fetching for associations:"
msgstr "é¢é£ã«ã¯ãªãã¹ãé
å»¶ãã§ããã使ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
"associations to classes that are not likely to be completely held in the "
@@ -335,27 +308,26 @@
"to a particular use case, use a query with a <literal>left join fetch</"
"literal>."
msgstr ""
-"峿ãã§ããã¯æ§ããã«ãã¾ãããã äºæ¬¡ãã£ãã·ã¥ã«ã¯å®å
¨ã«ä¿æãããªããããª"
-"ã¯ã©ã¹ã®é¢é£ã«ã¯ã ãããã·ã¨é
å»¶ã³ã¬ã¯ã·ã§ã³ã使ã£ã¦ãã ããã ãã£ãã·ã¥ã"
-"ããã¯ã©ã¹ã®é¢é£ãã¤ã¾ããã£ãã·ã¥ããããããå¯è½æ§ãé常ã«é«ãé¢é£ã¯ã "
+"峿ãã§ããã¯æ§ããã«ãã¾ããããäºæ¬¡ãã£ãã·ã¥ã«ã¯å®å
¨ã«ä¿æãããªããããª"
+"ã¯ã©ã¹ã®é¢é£ã«ã¯ããããã·ã¨é
å»¶ã³ã¬ã¯ã·ã§ã³ã使ã£ã¦ãã ããããã£ãã·ã¥ãã"
+"ãã¯ã©ã¹ã®é¢é£ãã¤ã¾ããã£ãã·ã¥ããããããå¯è½æ§ãé常ã«é«ãé¢é£ã¯ã "
"<literal>lazy=\"false\"</literal> ã§ç©æ¥µçãªãã§ãããæç¤ºçã«ç¡å¹ã«ãã¦ãã "
-"ããã çµåãã§ãããé©åãªç¹å®ã®ã¦ã¼ã¹ã±ã¼ã¹ã«ã¯ã ã¯ã¨ãªã§ <literal>left "
+"ãããçµåãã§ãããé©åãªç¹å®ã®ã¦ã¼ã¹ã±ã¼ã¹ã«ã¯ãã¯ã¨ãªã§ <literal>left "
"join fetch</literal> ã使ã£ã¦ãã ããã"
#. Tag: term
-#: best_practices.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
"ãã§ããããã¦ããªããã¼ã¿ã«é¢ããåé¡ãé¿ããããã«ã <emphasis>ãã¥ã¼ã®ä¸ã§"
-"ãªã¼ãã³ã»ãã·ã§ã³ã使ã(open session in view)</emphasis> ãã¿ã¼ã³ããçµ±å¶ã"
-"ãã <emphasis>çµã¿ç«ã¦ãã§ã¼ãº(assembly phase)</emphasis> ã使ãã¾ãããã"
+"ãªã¼ãã³ã»ãã·ã§ã³ã使ã (open session in view) </emphasis> ãã¿ã¼ã³ããçµ±å¶"
+"ããã <emphasis>çµã¿ç«ã¦ãã§ã¼ãº (assembly phase) </emphasis> ã使ãã¾ãã"
+"ãã"
#. Tag: para
-#: best_practices.xml:201
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
@@ -370,27 +342,25 @@
"objects. This is not a limitation of Hibernate. It is a fundamental "
"requirement of safe transactional data access."
msgstr ""
-"Hibernate㯠<emphasis>Data Transfer Objects</emphasis> (DTO)ãæ¸ãéå±ãªä½æ¥"
-"ããéçºè
ãè§£æ¾ãã¾ãã ä¼çµ±çãªEJBã¢ã¼ããã¯ãã£ã§ã¯DTOã¯äºã¤ç®çãããã¾"
-"ãï¼ 1ã¤ç®ã¯ãã¨ã³ãã£ãã£ãã¼ã³ãã·ãªã¢ã©ã¤ãºãããªãåé¡ã¸ã®å¯¾çã§ãã 2ã¤"
-"ç®ã¯ããã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã«å¶å¾¡ãæ»ãåã«ã ãã¥ã¼ã«ä½¿ããããã¹ã¦ã®ãã¼ã¿ã"
-"ãã§ããããã¦ãDTOã«å¾©å
ããããããªçµã¿ç«ã¦ãã§ã¼ãºãæé»çã«å®ç¾©ãã¾ãã "
-"Hibernateã§ã¯1ã¤ç®ã®ç®çãä¸è¦ã«ãªãã¾ãã ããããã¥ã¼ã®ã¬ã³ããªã³ã°å¦çã®"
-"éãæ°¸ç¶ã³ã³ããã¹ãï¼ã»ãã·ã§ã³ï¼ããªã¼ãã³ã«ããã¾ã¾ã«ããªããã°ã çµã¿ç«ã¦"
-"ãã§ã¼ãºã¯ã¾ã å¿
è¦ã§ãï¼åé¢ãªãã¸ã§ã¯ãã®ä¸ã®ã©ã®ãã¼ã¿ãå©ç¨å¯è½ãã«ã¤ã"
-"ã¦ã ãã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã¨å³å¯ãªåãæ±ºãããã¦ãããã¸ãã¹ã¡ã½ãããèãã¦ã¿"
-"ã¦ãã ããï¼ã ããã¯Hibernateå´ã®åé¡ã§ã¯ããã¾ããã ãã©ã³ã¶ã¯ã·ã§ã³å
ã§å®"
-"å
¨ã«ãã¼ã¿ã¢ã¯ã»ã¹ããããã®åºæ¬çãªè¦ä»¶ã§ãã"
+"Hibernate 㯠<emphasis>Data Transfer Objects</emphasis> (DTO) ãæ¸ãéå±ãªä½"
+"æ¥ããéçºè
ãè§£æ¾ãã¾ããä¼çµ±ç㪠EJB ã¢ã¼ããã¯ãã£ã§ã¯ DTO ã¯2ã¤ç®çããã"
+"ã¾ãï¼ 1ã¤ç®ã¯ãã¨ã³ãã£ã㣠Bean ãã·ãªã¢ã©ã¤ãºãããªãåé¡ã¸ã®å¯¾çã§ãã2ã¤"
+"ç®ã¯ããã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã«å¶å¾¡ãæ»ãåã«ããã¥ã¼ã«ä½¿ããããã¹ã¦ã®ãã¼ã¿ã"
+"ãã§ããããã¦ã DTO ã«å¾©å
ããããããªçµã¿ç«ã¦ãã§ã¼ãºãæé»çã«å®ç¾©ãã¾"
+"ãã Hibernate ã§ã¯1ã¤ç®ã®ç®çãä¸è¦ã«ãªãã¾ããããããã¥ã¼ã®ã¬ã³ããªã³ã°å¦"
+"çã®éãæ°¸ç¶ã³ã³ããã¹ãï¼ã»ãã·ã§ã³ï¼ããªã¼ãã³ã«ããã¾ã¾ã«ããªããã°ãçµã¿"
+"ç«ã¦ãã§ã¼ãºã¯ã¾ã å¿
è¦ã§ãï¼åé¢ãªãã¸ã§ã¯ãã®ä¸ã®ã©ã®ãã¼ã¿ãå©ç¨å¯è½ãã«ã¤"
+"ãã¦ããã¬ã¼ã³ãã¼ã·ã§ã³å±¤ã¨å³å¯ãªåãæ±ºãããã¦ãããã¸ãã¹ã¡ã½ãããèãã¦"
+"ã¿ã¦ãã ããï¼ããã㯠Hibernate å´ã®åé¡ã§ã¯ããã¾ããããã©ã³ã¶ã¯ã·ã§ã³å
ã§"
+"å®å
¨ã«ãã¼ã¿ã¢ã¯ã»ã¹ããããã®åºæ¬çãªè¦ä»¶ã§ãã"
#. Tag: term
-#: best_practices.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
-msgstr "Hibernateãããã¸ãã¹ãã¸ãã¯ãæ½è±¡åãããã¨ãèãã¾ãããã"
+msgstr "Hibernate ãããã¸ãã¹ãã¸ãã¯ãæ½è±¡åãããã¨ãèãã¾ãããã"
#. Tag: para
-#: best_practices.xml:217
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
@@ -399,22 +369,20 @@
"however, intended for \"sufficiently large\" applications. It is not "
"appropriate for an application with five tables."
msgstr ""
-"ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ï¼Hibernateã®ï¼ãã¼ã¿ã¢ã¯ã»ã¹ã³ã¼ããé è½ãã¾ãããã "
+"ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ï¼Hibernate ã®ï¼ãã¼ã¿ã¢ã¯ã»ã¹ã³ã¼ããé è½ãã¾ãããã "
"<emphasis>DAO</emphasis> 㨠<emphasis>Thread Local Session</emphasis> ãã¿ã¼"
-"ã³ãçµã¿åããã¾ãããã <literal>UserType</literal> ã§Hibernateã«é¢é£ä»ãã"
-"ã¨ã ãã³ãã³ã¼ãããJDBCã§æ°¸ç¶åããã¯ã©ã¹ãæã¤ãã¨ãã§ãã¾ãã ï¼ãã®ã¢ã"
-"ãã¤ã¹ã¯ãåå大ããªãã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ã®ãã®ã§ãã ãã¼ãã«ã5åãã"
+"ã³ãçµã¿åããã¾ãããã <literal>UserType</literal> ã§ Hibernate ã«é¢é£ä»ã"
+"ãã¨ããã³ãã³ã¼ããã JDBC ã§æ°¸ç¶åããã¯ã©ã¹ãæã¤ãã¨ãã§ãã¾ããï¼ãã®ã¢"
+"ããã¤ã¹ã¯ãåå大ããªãã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ã®ãã®ã§ãããã¼ãã«ã5åãã"
"ãªããããªã¢ããªã±ã¼ã·ã§ã³ã«ã¯å½ã¦ã¯ã¾ãã¾ãããï¼"
#. Tag: term
-#: best_practices.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not use exotic association mappings:"
msgstr "çããé¢é£ãããã³ã°ã¯ä½¿ããªãããã«ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:229
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
"the time you need additional information stored in the \"link table\". In "
@@ -423,25 +391,22 @@
"to-one. For this reason, you should proceed cautiously when using any other "
"association style."
msgstr ""
-"ããã¦ã¼ã¹ã±ã¼ã¹ã«æ¬å½ã®å¤å¯¾å¤é¢é£ããããã¨ã¯ç¨ï¼ã¾ãï¼ã§ãã ã»ã¨ãã©ã®å ´å"
-"ããªã³ã¯ãã¼ãã«ãã®ä»å çãªæ
å ±ãå¿
è¦ã«ãªãã¾ãã ãã®å ´åããªã³ã¯ã¯ã©ã¹ã«2"
-"ã¤ã®1対å¤é¢é£ãä½¿ãæ¹ããã£ã¨è¯ãã§ãã å®éã»ã¨ãã©ã®å ´åé¢é£ã¯1対å¤ã¨å¤å¯¾1"
-"ãªã®ã§ã ä»ã®ã¹ã¿ã¤ã«ã®é¢é£ã使ãã¨ãã¯æ¬å½ã«å¿
è¦ãã©ãããèãã¦ã¿ã¦ãã ã"
-"ãã"
+"ããã¦ã¼ã¹ã±ã¼ã¹ã«æ¬å½ã®å¤å¯¾å¤é¢é£ããããã¨ã¯ç¨ã§ããã»ã¨ãã©ã®å ´åããªã³ã¯"
+"ãã¼ãã«ãã®ä»å çãªæ
å ±ãå¿
è¦ã«ãªãã¾ãããã®å ´åããªã³ã¯ã¯ã©ã¹ã«2ã¤ã®ä¸å¯¾å¤"
+"é¢é£ãä½¿ãæ¹ããã£ã¨ããã§ããå®éã»ã¨ãã©ã®å ´åãé¢é£ã¯ä¸å¯¾å¤ã¨å¤å¯¾ä¸ãªã®"
+"ã§ãä»ã®ã¹ã¿ã¤ã«ã®é¢é£ã使ãã¨ãã¯æ¬å½ã«å¿
è¦ãã©ãããèãã¦ã¿ã¦ãã ããã"
#. Tag: term
-#: best_practices.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer bidirectional associations:"
msgstr "ãªãã¹ãåæ¹åé¢é£ã«ãã¾ãããã"
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
"application, almost all associations must be navigable in both directions in "
"queries."
msgstr ""
-"åæ¹åé¢é£ã¯åæ¹åã«æ¯ã¹ã¦æ¤ç´¢ãé£ãããªãã¾ãã 大ããªã¢ããªã±ã¼ã·ã§ã³ã§"
-"ã¯ã ã»ã¨ãã©ãã¹ã¦ã®é¢é£ãåæ¹åã«ããã²ã¼ã·ã§ã³ã§ããªããã°ãªãã¾ããã"
+"åæ¹åé¢é£ã¯åæ¹åã«æ¯ã¹ã¦æ¤ç´¢ãé£ãããªãã¾ãã大ããªã¢ããªã±ã¼ã·ã§ã³ã§ã¯ã"
+"ã»ã¨ãã©ãã¹ã¦ã®é¢é£ãåæ¹åã«ããã²ã¼ã·ã§ã³ã§ããªããã°ãªãã¾ããã"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,56 +1,40 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-06 16:08+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: collection_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection mapping"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°"
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®æ°¸ç¶å"
#. Tag: para
-#: collection_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³åã®ãã£ã¼ã«ããæ°¸ç¶åããã«ã¯ã ãã®ã³ã¬ã¯ã·ã§ã³åãã¤ã³ã¿ã¼ãã§"
-"ã¤ã¹åã§ããå¿
è¦ãããã¾ãã ä¾ãã°ã"
+"ã³ã¬ã¯ã·ã§ã³åã®ãã£ã¼ã«ããæ°¸ç¶åããã«ã¯ããã®ã³ã¬ã¯ã·ã§ã³åãã¤ã³ã¿ã¼"
+"ãã§ã¼ã¹åã§ããå¿
è¦ãããã¾ããä¾ãã°ã"
-#. Tag: programlisting
-#: collection_mapping.xml:39
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:41
-#, fuzzy, no-c-format
-msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
@@ -58,17 +42,16 @@
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
-"å®å¨ããã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ã¯ <literal>java.util.Set</literal>ã "
-"<literal>java.util.Collection</literal>ã<literal>java.util.List</literal>ã "
-"<literal>java.util.Map</literal>ã<literal>java.util.SortedSet</literal>ã "
-"<literal>java.util.SortedMap</literal> ãªã©ãããã¾ãã ã¾ãã¯ãä»»æã®ã¤ã³"
-"ã¿ã¼ãã§ã¤ã¹ã使ãã¾ãï¼ ï¼ãã ããä»»æã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã使ç¨ããå ´åã¯ã "
-"<literal>org.hibernate.usertype.UserCollectionType</literal> ã®å®è£
ã¯ã©ã¹ãä½"
-"æããå¿
è¦ãããã¾ããï¼"
+"å®å¨ããã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¯ <literal>java.util.Set</literal>ã "
+"<literal>java.util.Collection</literal>ã <literal>java.util.List</"
+"literal>ã <literal>java.util.Map</literal>ã <literal>java.util.SortedSet</"
+"literal>ã <literal>java.util.SortedMap</literal> ãªã©ãããã¾ããã¾ãã¯ãä»»"
+"æã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ãã¾ãã ï¼ãã ãããä»»æã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãã使ç¨ã"
+"ãå ´åã¯ã <literal>org.hibernate.usertype.UserCollectionType</literal> ã®å®"
+"è£
ã¯ã©ã¹ã使ããå¿
è¦ãããã¾ããï¼"
#. Tag: para
-#: collection_mapping.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet</literal>. This is the best way to initialize collection "
@@ -78,46 +61,29 @@
"an instance of Hibernate's own implementation of <literal>Set</literal>. Be "
"aware of the following errors:"
msgstr ""
-"<literal>HashSet</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ãæã¤ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã ã©ã®ããã«"
-"åæåããããã«æ³¨ç®ãã¦ã¿ã¾ãããã ããã¯æ°ãã«çæãããï¼æ°¸ç¶åããã¦ããª"
-"ãï¼ã³ã¬ã¯ã·ã§ã³åã®ããããã£ã åæåããæé©ãªæ¹æ³ã§ãã ï¼ä¾ãã° "
+"<literal>HashSet</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ãæã¤ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãã©ã®ããã«å"
+"æåããããã«æ³¨ç®ãã¦ã¿ã¾ããããããã¯æ°ãã«çæãããï¼æ°¸ç¶åããã¦ããª"
+"ãï¼ã³ã¬ã¯ã·ã§ã³åã®ããããã£ãåæåããæé©ãªæ¹æ³ã§ãã ï¼ä¾ãã° "
"<literal>persist()</literal> ã«ããï¼ã¤ã³ã¹ã¿ã³ã¹ãæ°¸ç¶åãããã¨ããã¨ãã "
-"Hibernate㯠<literal>HashSet</literal> ãHibernateç¬èªã® <literal>Set</"
-"literal> ã®å®è£
ã¯ã©ã¹ã«ç½®ãæãã¾ãã ãã®ãããæ¬¡ã®ãããªã¨ã©ã¼ã«ã¯æ³¨æãå¿
"
-"è¦ã§ãã"
+"Hibernate 㯠<literal>HashSet</literal> ã Hibernate ç¬èªã® <literal>Set</"
+"literal> ã®å®è£
ã¯ã©ã¹ã«ç½®ãæãã¾ãããã®ãããæ¬¡ã®ãããªã¨ã©ã¼ã«ã¯æ³¨æãå¿
è¦"
+"ã§ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:60
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:62
-#, fuzzy, no-c-format
-msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
"depending on the interface type."
msgstr ""
-"Hibernateã«ããæ³¨å
¥ãããæ°¸ç¶æ§ã³ã¬ã¯ã·ã§ã³ã¯ãã¤ã³ã¿ã¼ãã§ã¤ã¹åã«å¿ãã¦ã "
+"Hibernate ã«ããæ³¨å
¥ãããæ°¸ç¶æ§ã³ã¬ã¯ã·ã§ã³ã¯ãã¤ã³ã¿ã¼ãã§ã¼ã¹åã«å¿ãã¦ã "
"<literal>HashMap</literal> ã <literal>HashSet</literal>ã <literal>TreeMap</"
"literal>ã <literal>TreeSet</literal>ã <literal>ArrayList</literal> ã®ããã«"
"æ¯èãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
@@ -128,74 +94,56 @@
"properties do not support null value semantics. Hibernate does not "
"distinguish between a null collection reference and an empty collection."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã¤ã³ã¹ã¿ã³ã¹ã¯ãå¤åã¨ãã¦æ®éã«æ¯èãã¾ãã æ°¸ç¶åãªãã¸ã§ã¯ãã«"
-"åç
§ãããã¨ãã«èªåçã«æ°¸ç¶åããã åç
§ããªããªã£ãã¨ãã«èªåçã«åé¤ããã¾"
-"ãã ããããæ°¸ç¶åãªãã¸ã§ã¯ãããå¥ã®æ°¸ç¶åãªãã¸ã§ã¯ãã«æ¸¡ããããã ãã®"
-"è¦ç´ ã¯ç¾å¨ã®ãã¼ãã«ããå¥ã®ãã¼ãã«ã«ç§»åããããããã¾ããã ï¼ã¤ã®ã¨ã³ãã£"
-"ãã£ãåãã³ã¬ã¯ã·ã§ã³ã¤ã³ã¹ã¿ã³ã¹ãå
±æãã¦ã¯ããã¾ããã ãªã¬ã¼ã·ã§ãã«ã¢ã"
-"ã«ããã¼ã¹ã«ãã¦ãããããã³ã¬ã¯ã·ã§ã³åã®ããããã£ã« nullå¤ã代å
¥ãã¦ãæå³"
-"ãããã¾ããã ã¤ã¾ãHibernateã¯åç
§å
ã®ãªãã³ã¬ã¯ã·ã§ã³ã¨ç©ºã®ã³ã¬ã¯ã·ã§ã³ã"
-"åºå¥ãã¾ããã"
+"ã³ã¬ã¯ã·ã§ã³ã¤ã³ã¹ã¿ã³ã¹ã¯ãå¤åã¨ãã¦æ®éã«æ¯èãã¾ããæ°¸ç¶åãªãã¸ã§ã¯ãã«"
+"åç
§ãããã¨ãã«èªåçã«æ°¸ç¶åãããåç
§ããªããªã£ãã¨ãã«èªåçã«åé¤ããã¾"
+"ããããããæ°¸ç¶åãªãã¸ã§ã¯ãããå¥ã®æ°¸ç¶åãªãã¸ã§ã¯ãã«æ¸¡ããããããã®è¦"
+"ç´ ã¯ç¾å¨ã®ãã¼ãã«ããå¥ã®ãã¼ãã«ã«ç§»åããããããã¾ãããï¼ã¤ã®ã¨ã³ãã£"
+"ãã£ãåãã³ã¬ã¯ã·ã§ã³ã¤ã³ã¹ã¿ã³ã¹ãå
±æãã¦ã¯ããã¾ããããªã¬ã¼ã·ã§ãã«ã¢ã"
+"ã«ããã¼ã¹ã«ãã¦ãããããã³ã¬ã¯ã·ã§ã³åã®ããããã£ã« null å¤ã代å
¥ãã¦ãæ"
+"å³ãããã¾ãããã¤ã¾ã Hibernate ã¯åç
§å
ã®ãªãã³ã¬ã¯ã·ã§ã³ã¨ç©ºã®ã³ã¬ã¯ã·ã§ã³"
+"ãåºå¥ãã¾ããã"
#. Tag: para
-#: collection_mapping.xml:80
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
-"ãããããã»ã©å¿é
ããªãã¦ãæ§ãã¾ããã æ®æ®µä½¿ã£ã¦ããJavaã®ã³ã¬ã¯ã·ã§ã³ã¨å"
-"ãããã«ãæ°¸ç¶åã³ã¬ã¯ã·ã§ã³ã使ã£ã¦ãã ããã åæ¹åé¢é£ã®æå³ãçè§£ããã°ã"
-"ãã®ã§ãï¼ããã¯å¾ã»ã©èª¬æãã¾ãï¼ã"
+"ãããããã»ã©å¿é
ããªãã¦ãæ§ãã¾ãããæ®æ®µä½¿ã£ã¦ãã Java ã®ã³ã¬ã¯ã·ã§ã³ã¨"
+"åãããã«ãæ°¸ç¶åã³ã¬ã¯ã·ã§ã³ã使ã£ã¦ãã ãããåæ¹åé¢é£ã®æå³ãçè§£ããã°"
+"ããã®ã§ãï¼ããã¯å¾ã»ã©èª¬æãã¾ãï¼ã"
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°"
#. Tag: para
-#: collection_mapping.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
-"å¤ãã®ä¸è¬çãªãªã¬ã¼ã·ã§ãã«ã¢ãã«ãã«ãã¼ããããã«ã ã³ã¬ã¯ã·ã§ã³ã®ããã«å©"
-"ç¨ã§ãããããã³ã°ã«ã¯ããªãã®å¹
ãããã¾ãã æ§ã
ãªãããã³ã°å®£è¨ãã©ã®ããã«"
-"ãã¼ã¿ãã¼ã¹ãã¼ãã«ã«å¤æãããããç¥ãããã«ã ã¹ãã¼ãçæãã¼ã«ã使ã£ã¦ã¿"
+"å¤ãã®ä¸è¬çãªãªã¬ã¼ã·ã§ãã«ã¢ãã«ãã«ãã¼ããããã«ãã³ã¬ã¯ã·ã§ã³ã®ããã«å©"
+"ç¨ã§ãããããã³ã°ã«ã¯ããªãã®å¹
ãããã¾ããæ§ã
ãªãããã³ã°å®£è¨ãã©ã®ããã«"
+"ãã¼ã¿ãã¼ã¹ãã¼ãã«ã«å¤æãããããç¥ãããã«ãã¹ãã¼ãçæãã¼ã«ã使ã£ã¦ã¿"
"ãã¨è¯ãã§ãããã"
#. Tag: para
-#: collection_mapping.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set></literal> element is "
"used for mapping properties of type <literal>Set</literal>."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ããããã³ã°ããããã®ãããã³ã°è¦ç´ ã¯ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã®åã«ä¾"
-"åãã¾ãã ä¾ãã°ã<literal><set></literal> è¦ç´ 㯠<literal>Set</"
-"literal> åã ãããã³ã°ããããã«ä½¿ãã¾ãã"
+"ã³ã¬ã¯ã·ã§ã³ããããã³ã°ããããã®ãããã³ã°è¦ç´ ã¯ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®åã«ä¾"
+"åãã¾ããä¾ãã°ã <literal><set></literal> è¦ç´ 㯠<literal>Set</"
+"literal> åã®ããããã£ããããã³ã°ããããã«ä½¿ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -205,69 +153,36 @@
"element is representative:"
msgstr ""
"ãããã³ã°è¦ç´ ã«ã¯ <literal><set></literal> ã®ä»ã« <literal><"
-"list></literal>ã <literal><map></literal>ã<literal><bag></"
-"literal>ã <literal><array></literal>ã<literal><primitive-array>"
-"</literal> ãããã¾ãã 代表ã¨ãã¦ã<literal><map></literal> è¦ç´ ãä¸è¨"
-"ã«ç¤ºãã¾ãã"
+"list></literal>ã <literal><map></literal>ã <literal><bag></"
+"literal>ã <literal><array></literal>ã <literal><primitive-"
+"array></literal> ãããã¾ãã代表ã¨ãã¦ã <literal><map></literal> "
+"è¦ç´ ãä¸è¨ã«ç¤ºãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:132
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:135
-#, fuzzy, no-c-format
msgid "<literal>name</literal>: the collection property name"
-msgstr "<literal>name</literal> ã³ã¬ã¯ã·ã§ã³åã§ããããããã£ã®åå"
+msgstr "<literal>name</literal> ï¼ã³ã¬ã¯ã·ã§ã³åã§ããããããã£ã®åå"
#. Tag: para
-#: collection_mapping.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
-"<literal>table</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ããããã£åï¼ã³ã¬ã¯ã·ã§"
-"ã³ãã¼ãã«ã®åå ï¼ä¸å¯¾å¤é¢é£ã§ã¯ä½¿ç¨ãã¾ããï¼ã"
+"<literal>table</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ãã¯ããããã£åï¼ï¼ã³ã¬ã¯"
+"ã·ã§ã³ãã¼ãã«ã®ååï¼ä¸å¯¾å¤é¢é£ã§ã¯ä½¿ç¨ãã¾ããï¼ã"
#. Tag: para
-#: collection_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
-"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ãã¼ãã«ã¹ãã¼ãã®ååã ã«ã¼ãè¦ç´ ã§"
-"宣è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
+"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ãã«ã¹ãã¼ãã®ååãã«ã¼ãè¦ç´ "
+"ã§å®£è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
#. Tag: para
-#: collection_mapping.xml:152
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"disables lazy fetching and specifies that the association is always eagerly "
@@ -276,122 +191,113 @@
"collections."
msgstr ""
"<literal>lazy</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal>ï¼ é
å»¶ãã§ãããç¡å¹ã«ããé¢é£ã常ã«å³æã«ãã§ããã«ããããã«ä½¿ç¨ã"
-"ã¾ãã ã¾ãã¯ããextra-lazyããã§ãããæå¹ã«ããããã«ä½¿ç¨ãã¾ãã ãextra-"
+"literal>ï¼ï¼ é
å»¶ãã§ãããç¡å¹ã«ããé¢é£ã常ã«å³æã«ãã§ããã«ããããã«ä½¿ç¨"
+"ãã¾ããã¾ãã¯ããextra-lazyããã§ãããæå¹ã«ããããã«ä½¿ç¨ãã¾ãããextra-"
"lazyããã§ããã¯ãã»ã¨ãã©ã®æä½ã§ã¯ã³ã¬ã¯ã·ã§ã³ãåæåãã¾ãã ï¼é常ã«å¤§ã"
"ãªã³ã¬ã¯ã·ã§ã³ã«é©ãã¦ãã¾ãï¼ã"
#. Tag: para
-#: collection_mapping.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): marks this collection as the \"inverse\" end of a bidirectional "
"association."
msgstr ""
"<literal>inverse</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>false</"
-"literal>ï¼ ãã®ã³ã¬ã¯ã·ã§ã³ãåæ¹åé¢é£ã®ãéãå´ã§ããã¨ãã¼ã¯ãã¾ãã"
+"literal>ï¼ï¼ãã®ã³ã¬ã¯ã·ã§ã³ãåæ¹åé¢é£ã®ãéãå´ã§ããã¨ãã¼ã¯ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
"enables operations to cascade to child entities."
msgstr ""
"<literal>cascade</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>none</"
-"literal>ï¼ åã¨ã³ãã£ãã£ã¸ã®ã«ã¹ã±ã¼ãæä½ãæå¹ã«ãã¾ãã"
+"literal>ï¼ï¼åã¨ã³ãã£ãã£ã¸ã®ã«ã¹ã±ã¼ãæä½ãæå¹ã«ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
"<literal>natural</literal> sort order or a given comparator class."
msgstr ""
-"<literal>sort</literal> ï¼ãªãã·ã§ã³ï¼ã³ã¬ã¯ã·ã§ã³ãèªç¶ãªé åºã§ã½ã¼ãããå ´"
-"å㯠<literal>natural</literal> ãæå®ãã¾ãã ãããã¯Comparatorã¯ã©ã¹ãæå®"
-"ãã¾ãã"
+"<literal>sort</literal> ï¼ãªãã·ã§ã³ï¼ï¼ã³ã¬ã¯ã·ã§ã³ãèªç¶ãªé åºã§ã½ã¼ããã"
+"å ´å㯠<literal>natural</literal> ãæå®ãã¾ããããã㯠Comparator ã¯ã©ã¹ã"
+"æå®ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:179
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>Map</"
"literal>, <literal>Set</literal> or bag, together with an optional "
"<literal>asc</literal> or <literal>desc</literal>."
msgstr ""
-"<literal>order-by</literal> ï¼ãªãã·ã§ã³ãJDK1.4ã®ã¿ï¼ <literal>Map</"
-"literal>ã<literal>Set</literal>ãbagã®ã¤ãã¬ã¼ã·ã§ã³é åºãå®ç¾©ãã ãã¼ãã«"
-"ã«ã©ã ãæå®ããã¨å
±ã«ã ãªãã·ã§ã³ã¨ã㦠<literal>asc</literal>ã"
+"<literal>order-by</literal> ï¼ãªãã·ã§ã³ã JDK1.4 ã®ã¿ï¼ <literal>Map</"
+"literal>ã <literal>Set</literal>ã bag ã®ã¤ãã¬ã¼ã·ã§ã³é åºãå®ç¾©ãããã¼ã"
+"ã«ã«ã©ã ãæå®ããã¨å
±ã«ããªãã·ã§ã³ã¨ã㦠<literal>asc</literal>ã "
"<literal>desc</literal> ãæå®ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition that is used when retrieving or removing "
"the collection. This is useful if the collection needs to contain only a "
"subset of the available data."
msgstr ""
-"<literal>where</literal> ï¼ãªãã·ã§ã³ï¼ã³ã¬ã¯ã·ã§ã³ã®æ¤ç´¢ãåé¤ã®éã«ä½¿ã ä»»"
-"æã®SQLã®<literal>WHERE</literal> æ¡ä»¶ãæå®ãã¾ã ï¼å©ç¨å¯è½ãªãã¼ã¿ã®ä¸é¨å"
-"ã ããã³ã¬ã¯ã·ã§ã³ãå«ãã¹ãã¨ãã«ãããã¯æç¨ã§ãï¼ã"
+"<literal>where</literal> ï¼ãªãã·ã§ã³ï¼ï¼ã³ã¬ã¯ã·ã§ã³ã®æ¤ç´¢ãåé¤ã®éã«ä½¿ãä»»"
+"æã® SQL ã®<literal>WHERE</literal> æ¡ä»¶ãæå®ãã¾ã ï¼å©ç¨å¯è½ãªãã¼ã¿ã®ä¸é¨"
+"åã ããã³ã¬ã¯ã·ã§ã³ãå«ãã¹ãã¨ãã«ãããã¯æç¨ã§ãï¼ã"
#. Tag: para
-#: collection_mapping.xml:193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
"chooses between outer-join fetching, fetching by sequential select, and "
"fetching by sequential subselect."
msgstr ""
-"<literal>fetch</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>select</"
-"literal>ï¼ å¤é¨çµåã«ãããã§ãããé æ¬¡é¸æãã§ããï¼sequential select "
-"fetchï¼ã é æ¬¡ãµãã»ã¬ã¯ããã§ããï¼sequential subselect fetchï¼ã®ã©ãããé¸"
-"æãã¦ãã ããã"
+"<literal>fetch</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>select</"
+"literal>ï¼ï¼å¤é¨çµåã«ãããã§ãããé æ¬¡é¸æãã§ãã ï¼sequential select "
+"fetchï¼ ãé æ¬¡ãµãã»ã¬ã¯ããã§ãã ï¼sequential subselect fetchï¼ ã®ã©ããã"
+"鏿ãã¦ãã ããã"
#. Tag: para
-#: collection_mapping.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
"<literal>batch-size</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>1</"
-"literal>ï¼ ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã®é
å»¶ãã§ããã®ããã®ãããããµã¤ãºãã"
-"æå®ãã¾ãã"
+"literal>ï¼ï¼ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã®é
å»¶ãã§ããã®ããã®ãããããµã¤ãºã"
+"ãæå®ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the collection property "
"value."
msgstr ""
"<literal>access</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>property</"
-"literal>ï¼ ã³ã¬ã¯ã·ã§ã³åããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ããæ¦ç¥ã§ãã"
+"literal>ï¼ï¼ã³ã¬ã¯ã·ã§ã³åããããã£ã®å¤ã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ããæ¦ç¥ã§"
+"ãã"
#. Tag: para
-#: collection_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that changes to the state of the collection results in "
"increments of the owning entity's version. For one-to-many associations you "
"may want to disable this setting."
msgstr ""
-"<literal>optimistic-lock</literal>ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>true</"
-"literal>ï¼ ã³ã¬ã¯ã·ã§ã³ã®ç¶æ
ãå¤ãããã¨ã«ãã£ã¦ã ãã®ãªã¼ãã¼ã§ããã¨ã³"
-"ãã£ãã£ã®ãã¼ã¸ã§ã³ãã¤ã³ã¯ãªã¡ã³ããããããæå®ãã¾ãã ï¼ä¸å¯¾å¤é¢é£ã§ã¯ã"
-"ã»ã¨ãã©ã®å ´åã«ããã¦ç¡å¹ã«è¨å®ããã®ã妥å½ã§ããï¼"
+"<literal>optimistic-lock</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠"
+"<literal>true</literal>ï¼ ã³ã¬ã¯ã·ã§ã³ã®ç¶æ
ãå¤ãããã¨ã«ãã£ã¦ããã®ãªã¼"
+"ãã¼ã§ããã¨ã³ãã£ãã£ã®ãã¼ã¸ã§ã³ãã¤ã³ã¯ãªã¡ã³ããããããæå®ãã¾ãã ï¼ä¸"
+"対å¤é¢é£ã§ã¯ãã»ã¨ãã©ã®å ´åã«ããã¦ç¡å¹ã«è¨å®ããã®ã妥å½ã§ããï¼"
#. Tag: para
-#: collection_mapping.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"a value of <literal>false</literal> specifies that the elements of the "
@@ -403,14 +309,12 @@
"ã¨ã表ãã¾ã ï¼ããå ´åã«ã¯ãå°ãããã©ã¼ãã³ã¹ãé«ãã¾ãï¼ã"
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®å¤é¨ãã¼"
#. Tag: para
-#: collection_mapping.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
"the entity that owns the collection. This foreign key is referred to as the "
@@ -418,47 +322,33 @@
"table. The collection key column is mapped by the <literal><key></"
"literal> element."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã¼ã¿ãã¼ã¹å
ã§ã¯ã ãã®ã³ã¬ã¯ã·ã§ã³ãææãã"
-"ã¨ã³ãã£ãã£ã®å¤é¨ãã¼ã«ãã£ã¦èå¥ããã¾ãã ãã®å¤é¨ãã¼ã¯ã³ã¬ã¯ã·ã§ã³ãã¼ã"
-"ã«ã® <emphasis>ã³ã¬ã¯ã·ã§ã³ãã¼ã«ã©ã </emphasis> ã¨å¼ã°ãã¾ãã ã³ã¬ã¯ã·ã§ã³"
-"ãã¼ã«ã©ã 㯠<literal><key></literal> è¦ç´ ã«ãããããã³ã°ãã¾ãã"
+"ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ããã¼ã¿ãã¼ã¹å
ã§ã¯ããã®ã³ã¬ã¯ã·ã§ã³ãææãã"
+"ã¨ã³ãã£ãã£ã®å¤é¨ãã¼ã«ãã£ã¦èå¥ããã¾ãããã®å¤é¨ãã¼ã¯ã³ã¬ã¯ã·ã§ã³ãã¼ã"
+"ã«ã® <emphasis>ã³ã¬ã¯ã·ã§ã³ãã¼ã«ã©ã </emphasis> (ã¾ãã¯ã«ã©ã ) ã¨å¼ã°ãã¾"
+"ããã³ã¬ã¯ã·ã§ã³ãã¼ã«ã©ã 㯠<literal><key></literal> è¦ç´ ã«ããããã"
+"ã³ã°ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:240
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
"collections, this is implied. For unidirectional one-to-many associations, "
"the foreign key column is nullable by default, so you may need to specify "
"<literal>not-null=\"true\"</literal>."
msgstr ""
-"å¤é¨ãã¼ã«ã©ã ã«ã¯nullè¨å®å¶ç´ãããããããã¾ããã ã»ã¨ãã©ã®ã³ã¬ã¯ã·ã§ã³ã«"
-"å½ã¦ã¯ã¾ãã§ãããã åæ¹åã®ä¸å¯¾å¤é¢é£ã«ããã¦ãå¤é¨ãã¼ã«ã©ã ã¯ããã©ã«ãã§"
-"nullã許ãè¨å®ã«ãªã£ã¦ãã¾ãã ãã£ã¦ã<literal>not-null=\"true\"</literal> "
-"ãæå®ããå¿
è¦ãããããããã¾ããã"
+"å¤é¨ãã¼ã«ã©ã ã«ã¯ null è¨å®å¶ç´ãããããããã¾ãããã»ã¨ãã©ã®ã³ã¬ã¯ã·ã§ã³"
+"ã«å½ã¦ã¯ã¾ãã§ããããåæ¹åã®ä¸å¯¾å¤é¢é£ã«ããã¦ãå¤é¨ãã¼ã«ã©ã ã¯ããã©ã«ã"
+"ã§ null ã許ãè¨å®ã«ãªã£ã¦ãã¾ãããã£ã¦ã <literal>not-null=\"true\"</"
+"literal> ãæå®ããå¿
è¦ãããããããã¾ããã"
-#. Tag: programlisting
-#: collection_mapping.xml:247
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:249
-#, fuzzy, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
msgstr ""
"å¤é¨ãã¼ã®å¶ç´ã <literal>ON DELETE CASCADE</literal> ã使ãããããã¾ããã"
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
@@ -468,14 +358,12 @@
"ã ããã"
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ "
#. Tag: para
-#: collection_mapping.xml:265
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and references to other entities. This is an "
@@ -485,16 +373,15 @@
"latter case, only the \"link\" between the two objects is considered to be a "
"state held by the collection."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã¯ä»ã®Hibernateã®åã®ã»ã¨ãã©ï¼ãã¹ã¦ã®åºæ¬åãã«ã¹ã¿ã åãã³ã³"
-"ãã¼ãã³ãã ä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ï¼ãæ ¼ç´ãããã¨ãã§ãã¾ãã æ¬¡ã®ç¹ã¯é"
-"è¦ãªéãã«ãªãã¾ãã ã³ã¬ã¯ã·ã§ã³ã«æ ¼ç´ããããªãã¸ã§ã¯ãããå¤ãã»ãã³ãã£ã¯"
-"ã¹ã¨ãã¦æ±ãããã®ã ï¼ã©ã¤ããµã¤ã¯ã«ã¯ã³ã¬ã¯ã·ã§ã³ã®ãªã¼ãã¼ã«å®å
¨ã«ä¾åãã¾"
-"ãï¼ã ãããã¯ããèªèº«ã®ã©ã¤ããµã¤ã¯ã«ãæã£ãå¥ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ã§ãã"
-"ãã®ãã¨ããéãã§ãã å¾è
ã¯ã2ã¤ã®ãªãã¸ã§ã¯ãéã®ããªã³ã¯ããã³ã¬ã¯ã·ã§ã³"
-"ã«ä¿æãã¦ããã¨è¦ãªãã¦ããã ãã§ãã"
+"ã³ã¬ã¯ã·ã§ã³ã¯ä»ã® Hibernate ã®åã®ã»ã¨ãã©ï¼ãã¹ã¦ã®åºæ¬åãã«ã¹ã¿ã åãã³ã³"
+"ãã¼ãã³ããä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ï¼ãæ ¼ç´ãããã¨ãã§ãã¾ããæ¬¡ã®ç¹ã¯éè¦"
+"ãªéãã«ãªãã¾ããã³ã¬ã¯ã·ã§ã³ã«æ ¼ç´ããããªãã¸ã§ã¯ãããå¤ãã»ãã³ãã£ã¯ã¹"
+"ã¨ãã¦æ±ãããã®ã ï¼ã©ã¤ããµã¤ã¯ã«ã¯ã³ã¬ã¯ã·ã§ã³ã®ãªã¼ãã¼ã«å®å
¨ã«ä¾åãã¾"
+"ãï¼ããããã¯ããèªèº«ã®ã©ã¤ããµã¤ã¯ã«ãæã£ãå¥ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ã§ãã"
+"ãã®ãã¨ããéãã§ããå¾è
ã¯ã2ã¤ã®ãªãã¸ã§ã¯ãéã®ããªã³ã¯ããã³ã¬ã¯ã·ã§ã³ã«"
+"ä¿æãã¦ããã¨è¦ãªãã¦ããã ãã§ãã"
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -504,22 +391,20 @@
"<literal><many-to-many></literal>. The first two map elements with "
"value semantics, the next two are used to map entity associations."
msgstr ""
-"æ ¼ç´ãããå㯠<emphasis>ã³ã¬ã¯ã·ã§ã³è¦ç´ å</emphasis> ã¨å¼ã°ãã¾ãã ã³ã¬ã¯"
-"ã·ã§ã³è¦ç´ ã¯ã<literal><element></literal> ã¾ã㯠<literal><"
+"æ ¼ç´ãããå㯠<emphasis>ã³ã¬ã¯ã·ã§ã³è¦ç´ å</emphasis> ã¨å¼ã°ãã¾ããã³ã¬ã¯"
+"ã·ã§ã³è¦ç´ ã¯ã <literal><element></literal> ã¾ã㯠<literal><"
"composite-element></literal> ã«ãããããã³ã°ãããã¨ã³ãã£ãã£ã¸ã®åç
§ã®"
"å ´åã«ã¯ <literal><one-to-many></literal> ã¾ã㯠<literal><many-to-"
-"many></literal> ã«ãããããã³ã°ããã¾ãã æåã®äºã¤ã¯å¤ã¨ãã¦è¦ç´ ããã"
-"ãã³ã°ããæ¬¡ã®äºã¤ã¯ã¨ã³ãã£ãã£ã®é¢é£ããããã³ã°ããã®ã«ä½¿ããã¾ãã"
+"many></literal> ã«ãããããã³ã°ããã¾ããæåã®äºã¤ã¯å¤ã¨ãã¦è¦ç´ ãããã"
+"ã³ã°ããæ¬¡ã®äºã¤ã¯ã¨ã³ãã£ãã£ã®é¢é£ããããã³ã°ããã®ã«ä½¿ããã¾ãã"
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
msgstr "ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: collection_mapping.xml:288
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column</emphasis> in the collection table. An index column "
@@ -533,68 +418,81 @@
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
-"setã¨bagãé¤ãå
¨ã¦ã®ã³ã¬ã¯ã·ã§ã³ãããã³ã°ã«ã¯ã ã³ã¬ã¯ã·ã§ã³ãã¼ãã«ã®ä¸ã« "
-"<emphasis>ã¤ã³ããã¯ã¹ç¨ã®ã«ã©ã </emphasis> ãå¿
è¦ã§ãã ãã®ã«ã©ã ã«ãé
å"
-"ã <literal>List</literal> ã®ã¤ã³ããã¯ã¹ã ããã㯠<literal>Map</literal> "
-"ã®ãã¼ããããã³ã°ãã¾ãã <literal>Map</literal> ã®ã¤ã³ããã¯ã¹ã¯ã "
+"set 㨠bag ãé¤ãå
¨ã¦ã®ã³ã¬ã¯ã·ã§ã³ãããã³ã°ã«ã¯ãã³ã¬ã¯ã·ã§ã³ãã¼ãã«ã®ä¸"
+"ã« <emphasis>ã¤ã³ããã¯ã¹ç¨ã®ã«ã©ã </emphasis> ãå¿
è¦ã§ãããã®ã«ã©ã ã«ãé
å"
+"ã <literal>List</literal> ã®ã¤ã³ããã¯ã¹ãããã㯠<literal>Map</literal> ã®"
+"ãã¼ããããã³ã°ãã¾ãã <literal>Map</literal> ã®ã¤ã³ããã¯ã¹ã¯ã "
"<literal><map-key></literal> ã«ãããããã³ã°ãããåºæ¬åãã "
"<literal><map-key-many-to-many></literal> ã«ãããããã³ã°ãããã¨ã³"
-"ãã£ãã£ã®é¢é£ãã ããã㯠<literal><composite-map-key></literal> ã«ã"
-"ããããã³ã°ãããã³ã³ãã¸ããåã«ãªãã¾ãã é
åããªã¹ãã®ã¤ã³ããã¯ã¹ã¯ã常"
+"ãã£ãã£ã®é¢é£ããããã㯠<literal><composite-map-key></literal> ã«ã"
+"ããããã³ã°ãããã³ã³ãã¸ããåã«ãªãã¾ããé
åããªã¹ãã®ã¤ã³ããã¯ã¹ã¯ã常"
"ã« <literal>integer</literal> åã§ã <literal><list-index></literal> è¦"
-"ç´ ã«ãããããã³ã°ãã¾ãã ãããã³ã°ãããã«ã©ã ã«ã¯ã·ã¼ã±ã³ã·ã£ã«ãªæ´æ°ãæ ¼"
-"ç´ãã¾ãï¼ããã©ã«ãã§ã¯0ããçªå·ãä»ãããã¾ãï¼ã"
+"ç´ ã«ãããããã³ã°ãã¾ãããããã³ã°ãããã«ã©ã ã«ã¯ã·ã¼ã±ã³ã·ã£ã«ãªæ´æ°ãæ ¼"
+"ç´ãã¾ã ï¼ããã©ã«ãã§ã¯0ããçªå·ãä»ãããã¾ãï¼ã"
-#. Tag: sect2
-#: collection_mapping.xml:299
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
+msgstr ""
+"<literal>cascade</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>none</"
+"literal>ï¼ï¼åã¨ã³ãã£ãã£ã¸ã®ã«ã¹ã±ã¼ãæä½ãæå¹ã«ãã¾ãã"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr ""
+"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ãã«ã¹ãã¼ãã®ååãã«ã¼ãè¦ç´ "
+"ã§å®£è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
+
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:380
#, fuzzy, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr ""
+"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ãã«ã¹ãã¼ãã®ååãã«ã¼ãè¦ç´ "
+"ã§å®£è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
@@ -602,20 +500,18 @@
"ordered."
msgstr ""
"ãããã¼ãã«ã«ã¤ã³ããã¯ã¹ã«ã©ã ããªãã¦ããããããã£åã¨ã㦠"
-"<literal>List</literal> ã使ããããã°ã Hibernateã® <emphasis><bag></"
-"emphasis> ã¨ãã¦ããããã£ããããã³ã°ãã¾ãã bagã¯ãã¼ã¿ãã¼ã¹ãã復å
ãã"
-"ãæãé åºãä¿æãã¾ããã ããããï¼ã¡ã¢ãªä¸ã§ï¼ã½ã¼ãããããï¼SQLã§ï¼é åº"
-"ä»ããããï¼order byï¼ãããã¨ãã§ãã¾ãã"
+"<literal>List</literal> ã使ããããã°ã Hibernate ã® <emphasis><bag></"
+"emphasis> ã¨ãã¦ããããã£ããããã³ã°ãã¾ãã bag ã¯ãã¼ã¿ãã¼ã¹ãã復å
ãã"
+"ãæãé åºãä¿æãã¾ãããããããï¼ã¡ã¢ãªä¸ã§ï¼ã½ã¼ãããããï¼SQLã§ï¼é åºä»"
+"ããããï¼order byï¼ãããã¨ãã§ãã¾ãã"
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
msgstr "å¤ã®ã³ã¬ã¯ã·ã§ã³ã¨å¤å¯¾å¤é¢é£"
#. Tag: para
-#: collection_mapping.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table</emphasis> with a foreign key column or columns, "
@@ -623,237 +519,188 @@
"index column or columns."
msgstr ""
"å¤ã®ã³ã¬ã¯ã·ã§ã³ãå¤å¯¾å¤é¢é£ã¯ãå°ç¨ã® <emphasis>ã³ã¬ã¯ã·ã§ã³ãã¼ãã«</"
-"emphasis> ãå¿
è¦ã§ãã ãã®ãã¼ãã«ã¯ãå¤é¨ãã¼ã«ã©ã ã¨ã <emphasis>ã³ã¬ã¯"
-"ã·ã§ã³è¦ç´ ã®ã«ã©ã </emphasis> ã¨ã å ´åã«ãã£ã¦ã¯ã¤ã³ããã¯ã¹ã«ã©ã ãæã¡ã¾"
-"ãã"
+"emphasis> ãå¿
è¦ã§ãããã®ãã¼ãã«ã¯ãå¤é¨ãã¼ã«ã©ã ã¨ã <emphasis>ã³ã¬ã¯ã·ã§"
+"ã³è¦ç´ ã®ã«ã©ã </emphasis> ã¨ãå ´åã«ãã£ã¦ã¯ã¤ã³ããã¯ã¹ã«ã©ã ãæã¡ã¾ãã"
#. Tag: para
-#: collection_mapping.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
"For example:"
msgstr ""
-"å¤ã®ã³ã¬ã¯ã·ã§ã³ã®ããã«ã<literal><element></literal>ã¿ã°ã使ç¨ãã¾"
+"å¤ã®ã³ã¬ã¯ã·ã§ã³ã®ããã«ã <literal><element></literal> ã¿ã°ã使ç¨ãã¾"
"ãã"
-#. Tag: sect2
-#: collection_mapping.xml:401
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
+"collection element values."
+msgstr ""
+"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ãã«ã¹ãã¼ãã®ååãã«ã¼ãè¦ç´ "
+"ã§å®£è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
+"element."
+msgstr ""
+"<literal>schema</literal> ï¼ãªãã·ã§ã³ï¼ï¼ãã¼ãã«ã¹ãã¼ãã®ååãã«ã¼ãè¦ç´ "
+"ã§å®£è¨ããã¦ããã¹ãã¼ãããåªå
ããã¾ãã"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>type</literal> (required): the type of the collection element."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
+msgstr ""
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"enables outer-join or sequential select fetching for this association. This "
"is a special case; for full eager fetching in a single <literal>SELECT</"
"literal> of an entity and its many-to-many relationships to other entities, "
"you would enable <literal>join</literal> fetching,not only of the collection "
"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"literal> nested element."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid ""
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:509
-#, no-c-format
-msgid "A set of strings:"
+#, fuzzy, no-c-format
+msgid ""
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
msgstr ""
+"<literal>not-found</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>exception</"
+"literal>ï¼: åç
§å
ã®è¡ããªããã£ãã·ã¥ãããèå¥åãã©ã®ããã«æ±ãããæå®ã"
+"ã¾ã: <literal>ignore</literal> ãæå®ããã¨ãè¡ããªããã¨ãé¢é£ããªããã®ã¨"
+"ãã¦æ±ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
msgstr ""
+"<literal>entity-name</literal> ï¼ãªãã·ã§ã³ï¼: <literal>class</literal> ã®ä»£"
+"æ¿ã§ããé¢é£ã¯ã©ã¹ã®ã¨ã³ãã£ãã£åã <literal>class</literal> ã®ä»£ããã«æå®"
+"ãããé¢é£ã¯ã©ã¹ã®ã¨ã³ãã£ãã£åã"
#. Tag: para
-#: collection_mapping.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"A bag containing integers with an iteration order determined by the "
-"<literal>order-by</literal> attribute:"
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
msgstr ""
-"æ´æ°å¤ãå«ãbagï¼bag㯠<literal>order-by</literal> 屿§ã«ãã£ã¦å復é åºãå®ç¾©"
-"ããã¦ãã¾ãï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
+msgid "Here are some examples."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:522
-#, fuzzy, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
-msgstr "ã¨ã³ãã£ãã£ã®é
å - ãã®å ´åãå¤å¯¾å¤ã®é¢é£ã§ãã"
+#, no-c-format
+msgid "A set of strings:"
+msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"A bag containing integers with an iteration order determined by the "
+"<literal>order-by</literal> attribute:"
msgstr ""
+"æ´æ°å¤ãå«ã bag ï¼bag㯠<literal>order-by</literal> 屿§ã«ãã£ã¦å復é åºãå®"
+"義ããã¦ãã¾ãï¼:"
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
-msgstr "æååã¨æ¥ä»ã®map"
+msgid "An array of entities, in this case, a many-to-many association:"
+msgstr "ã¨ã³ãã£ãã£ã®é
å - ãã®å ´åãå¤å¯¾å¤ã®é¢é£ã§ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
+msgid "A map from string indices to dates:"
+msgstr "æååã¨æ¥ä»ã® map"
#. Tag: para
-#: collection_mapping.xml:534
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A list of components (this is discussed in the next chapter):"
-msgstr "ã³ã³ãã¼ãã³ãã®listï¼æ¬¡ã®ç« ã§è©³ãã説æãã¾ãï¼"
+msgstr "ã³ã³ãã¼ãã³ãã® list ï¼æ¬¡ã®ç« ã§è©³ãã説æãã¾ãï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:538
-#, no-c-format
-msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
msgstr "ä¸å¯¾å¤é¢é£"
#. Tag: para
-#: collection_mapping.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
msgstr ""
-"<emphasis>ä¸å¯¾å¤é¢é£</emphasis> ã¯ãã³ã¬ã¯ã·ã§ã³ï½¥ãã¼ãã«ãä»ããã å¤é¨ãã¼"
-"ã«ãã2ã¤ã®ã¯ã©ã¹ã®ãã¼ãã«ãé¢é£ä»ãã¾ãã ãã®ãããã³ã°ã¯æ¨æºçãªJavaã®ã³"
-"ã¬ã¯ã·ã§ã³ã®ã»ãã³ãã£ã¯ã¹ãããã¤ã失ãã¾ãã"
+"<emphasis>ä¸å¯¾å¤é¢é£</emphasis> ã¯ãã³ã¬ã¯ã·ã§ã³ãã¼ãã«ãä»ãããå¤é¨ãã¼ã«"
+"ãã2ã¤ã®ã¯ã©ã¹ã®ãã¼ãã«ãé¢é£ä»ãã¾ãããã®ãããã³ã°ã¯æ¨æºç㪠Java ã®ã³ã¬"
+"ã¯ã·ã§ã³ã®ã»ãã³ãã£ã¯ã¹ãããã¤ã失ãã¾ã:"
#. Tag: para
-#: collection_mapping.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
msgstr ""
-"ã¨ã³ãã£ãã£ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã 2ã¤ä»¥ä¸ã®ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã«å±"
-"ãã¦ã¯ããã¾ããã"
+"ã¨ã³ãã£ãã£ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã2ã¤ä»¥ä¸ã®ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã«å±ã"
+"ã¦ã¯ããã¾ããã"
#. Tag: para
-#: collection_mapping.xml:559
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã«å«ã¾ããã¨ã³ãã£ãã£ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã ã³ã¬ã¯ã·ã§ã³ã¤ã³"
+"ã³ã¬ã¯ã·ã§ã³ã«å«ã¾ããã¨ã³ãã£ãã£ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã³ã¬ã¯ã·ã§ã³ã¤ã³"
"ããã¯ã¹ã®å¤ã¨ãã¦2度以ä¸ç¾ãã¦ã¯ããã¾ããã"
#. Tag: para
-#: collection_mapping.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
"requires the existence of a foreign key column and possibly an index column "
@@ -865,29 +712,9 @@
"ã¯ã¹ã«ã©ã ãå¿
è¦ã§ãã <literal><one-to-many></literal> ã¿ã°ã¯ãããã"
"ä¸å¯¾å¤é¢é£ã§ãããã¨ã表ãã¦ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:579
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:582
-#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr "<literal>class</literal> ï¼å¿
é ï¼: é¢é£ã¯ã©ã¹ã®ååã"
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
-msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
"be handled. <literal>ignore</literal> will treat a missing row as a null "
@@ -895,34 +722,21 @@
msgstr ""
"<literal>not-found</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>exception</"
"literal>ï¼: åç
§å
ã®è¡ããªããã£ãã·ã¥ãããèå¥åãã©ã®ããã«æ±ãããæå®ã"
-"ã¾ãã <literal>ignore</literal> ãæå®ããã¨ãè¡ããªããã¨ãé¢é£ããªããã®ã¨"
+"ã¾ã: <literal>ignore</literal> ãæå®ããã¨ãè¡ããªããã¨ãé¢é£ããªããã®ã¨"
"ãã¦æ±ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"<literal>entity-name</literal> ï¼ãªãã·ã§ã³ï¼: <literal>class</literal> ã®ä»£"
-"æ¿ã§ããé¢é£ã¯ã©ã¹ã®ã¨ã³ãã£ãã£åã <literal>class</literal> ã®ä»£ããã«æå®"
-"ãããé¢é£ã¯ã©ã¹ã®ã¨ã³ãã£ãã£åã"
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
msgstr ""
"<literal><one-to-many></literal> è¦ç´ ã¯ã«ã©ã ã宣è¨ããå¿
è¦ããªããã¨ã«"
-"注æãã¦ãã ããã åæ§ã« <literal>ãã¼ãã«</literal> åãæå®ããå¿
è¦ããã"
-"ã¾ããã"
+"注æãã¦ãã ãããåæ§ã« <literal>ãã¼ãã«</literal> åãæå®ããå¿
è¦ãããã¾"
+"ããã"
#. Tag: para
-#: collection_mapping.xml:609
#, fuzzy, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
@@ -935,79 +749,44 @@
"<emphasis>ã¨ã¦ãéè¦ãªæ³¨æ:</emphasis> ãã <literal><one-to-many></"
"literal> é¢é£ã®å¤é¨ãã¼ã«ã©ã ã <literal>NOT NULL</literal>ã¨å®£è¨ãããå ´"
"åã <literal><key></literal> ãããã³ã°ã« <literal>not-null=\"true\"</"
-"literal> ã宣è¨ãããã ã³ã¬ã¯ã·ã§ã³ãããã³ã°ã« <literal>inverse=\"true\"</"
+"literal> ã宣è¨ããããã³ã¬ã¯ã·ã§ã³ãããã³ã°ã« <literal>inverse=\"true\"</"
"literal> ãä»ããä¸ã§ã <emphasis>åæ¹åé¢é£ã使ã</emphasis> å¿
è¦ãããã¾"
-"ãã åæ¹åé¢é£ã«ã¤ãã¦ã¯ãã®ç« ã®å¾ã®ã»ãã§èª¬æãã¾ãã"
+"ããåæ¹åé¢é£ã«ã¤ãã¦ã¯ãã®ç« ã®å¾ã®ã»ãã§èª¬æãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
"name, where <literal>partName</literal> is a persistent property of "
"<literal>Part</literal>. Notice the use of a formula-based index:"
msgstr ""
"次ã®ä¾ã¯ãåç§°ï¼<literal>Part</literal> ã®æ°¸ç¶çãªããããã£ã§ãã "
-"<literal>partName</literal>ï¼ ã«ãã <literal>Part</literal> ã¨ã³ãã£ãã£ã®"
-"mapã表ãã¦ãã¾ãã formulaã«ããã¤ã³ããã¯ã¹ã使ã£ã¦ãããã¨ã«æ³¨æãã¦ãã ã"
-"ãã"
+"<literal>partName</literal>ï¼ ã«ãã <literal>Part</literal> ã¨ã³ãã£ãã£ã® "
+"map ã表ãã¦ãã¾ãã formula ã«ããã¤ã³ããã¯ã¹ã使ã£ã¦ãããã¨ã«æ³¨æãã¦ãã "
+"ããã"
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
-msgstr "é«åº¦ãªã³ã¬ã¯ã·ã§ã³ï½¥ãããã³ã°"
+msgstr "é«åº¦ãªã³ã¬ã¯ã·ã§ã³ãããã³ã°"
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr "ã½ã¼ããããã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
"literal> and <literal>java.util.SortedSet</literal>. You must specify a "
"comparator in the mapping file:"
msgstr ""
-"Hibernate㯠<literal>java.util.SortedMap</literal> 㨠<literal>java.util."
-"SortedSet</literal> ãå®è£
ããã³ã¬ã¯ã·ã§ã³ããµãã¼ããã¦ãã¾ãã éçºè
ã¯ãã"
-"ãã³ã°å®ç¾©ãã¡ã¤ã«ã«ã³ã³ãã¬ã¼ã¿ãæå®ããªããã°ãªãã¾ããã"
+"Hibernate 㯠<literal>java.util.SortedMap</literal> 㨠<literal>java.util."
+"SortedSet</literal> ãå®è£
ããã³ã¬ã¯ã·ã§ã³ããµãã¼ããã¦ãã¾ããéçºè
ã¯ãã"
+"ãã³ã°å®ç¾©ãã¡ã¤ã«ã«ã³ã³ãã¬ã¼ã¿ãæå®ããªããã°ãªãã¾ãã: "
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
@@ -1015,11 +794,10 @@
"class implementing <literal>java.util.Comparator</literal>."
msgstr ""
"<literal>sort</literal> 屿§ã«è¨å®ã§ããå¤ã¯ <literal>unsorted</literal> 㨠"
-"<literal>natural</literal> ããã³ã<literal>java.util.Comparator</literal> ã"
-"å®è£
ããã¯ã©ã¹ã®ååã§ãã"
+"<literal>natural</literal> ããã³ã <literal>java.util.Comparator</literal> "
+"ãå®è£
ããã¯ã©ã¹ã®ååã§ãã"
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
@@ -1029,8 +807,7 @@
"<literal>java.util.TreeMap</literal> ã®ããã«æ¯èãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:654
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by</literal> attribute of <literal>set</literal>, "
@@ -1041,247 +818,142 @@
msgstr ""
"ãããã¼ã¿ãã¼ã¹èªèº«ã«ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã並ã¹ãããããªãã <literal>set</"
"literal> ã <literal>bag</literal>ã<literal>map</literal> ã® <literal>order-"
-"by</literal> 屿§ã使ãã¾ãã ãã®è§£æ±ºæ³ã¯JDK1.4ããããã¯ãã以ä¸ã®ãã¼ã¸ã§"
+"by</literal> 屿§ã使ãã¾ãããã®è§£æ±ºæ³ã¯ JDK1.4 ããããã¯ãã以ä¸ã®ãã¼ã¸ã§"
"ã³ã§å©ç¨å¯è½ã§ã ï¼<literal>LinkedHashSet</literal> ã¾ã㯠"
-"<literal>LinkedHashMap</literal>ã使ã£ã¦å®è£
ããã¦ãã¾ãï¼ã æ´åã¯ã¡ã¢ãªä¸ã§"
-"ã¯ãªããSQLã¯ã¨ãªå
ã§å®è¡ããã¾ãã"
+"<literal>LinkedHashMap</literal>ã使ã£ã¦å®è£
ããã¦ãã¾ãï¼ãæ´åã¯ã¡ã¢ãªä¸ã§"
+"ã¯ãªãã SQL ã¯ã¨ãªå
ã§å®è¡ããã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注è¨"
#. Tag: para
-#: collection_mapping.xml:667
#, fuzzy, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
-"<literal>order-by</literal> 屿§ã®å¤ãSQLå½ä»¤ã§ãã£ã¦ãHQLå½ä»¤ã§ã¯ãªããã¨ã«"
-"注æãã¦ãã ããï¼"
+"<literal>order-by</literal> 屿§ã®å¤ã SQL å½ä»¤ã§ãã£ã¦ã HQL å½ä»¤ã§ã¯ãªãã"
+"ã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: collection_mapping.xml:673
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter()</literal>:"
msgstr ""
-"é¢é£ã¯ãã³ã¬ã¯ã·ã§ã³ã® <literal>filter()</literal> ã使ããã¨ã§ã å®è¡æã«ä»»"
-"æã®criteriaã«ãã£ã¦ã½ã¼ããããã¨ãå¯è½ã§ãã"
+"é¢é£ã¯ãã³ã¬ã¯ã·ã§ã³ã® <literal>filter()</literal> ã使ããã¨ã§ãå®è¡æã«ä»»æ"
+"ã® criteria ã«ãã£ã¦ã½ã¼ããããã¨ãå¯è½ã§ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr "åæ¹åé¢é£"
#. Tag: para
-#: collection_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
"<emphasis>åæ¹åé¢é£</emphasis> ã¯é¢é£ã®ã©ã¡ããå´ãããã§ãããã²ã¼ã·ã§ã³ã§"
-"ãã¾ãã 2種é¡ã®åæ¹åé¢é£ããµãã¼ãããã¦ãã¾ãã <placeholder-1/>"
+"ãã¾ãã2種é¡ã®åæ¹åé¢é£ããµãã¼ãããã¦ãã¾ãï¼"
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
msgstr "one-to-many"
#. Tag: para
-#: collection_mapping.xml:694
-#, fuzzy, no-c-format
+#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
-msgstr "çå´ãsetãbagãããçæ¹ãåä¸å¤ã§ãã"
+msgstr "çå´ã set ã bag ãããçæ¹ãåä¸å¤ã§ãã"
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
msgstr "many-to-many"
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
-msgstr "両å´ãsetãbagã§ãã"
+msgstr "両å´ã set ã bag ã§ãã"
#. Tag: para
-#: collection_mapping.xml:711
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
-"2ã¤ã®å¤å¯¾å¤é¢é£ã§åããã¼ã¿ãã¼ã¹ãã¼ãã«ããããã³ã°ãã çæ¹ã "
-"<emphasis>inverse</emphasis> ã¨ãã¦å®£è¨ãããã¨ã§ã åæ¹åã®å¤å¯¾å¤é¢é£ãæå®"
-"ãããã¨ãåºæ¥ã¾ã ï¼ã©ã¡ããinverseã«é¸ãã ã¨ãã¦ãããã¡ãå´ã«ã¯ã¤ã³ããã¯"
+"2ã¤ã®å¤å¯¾å¤é¢é£ã§åããã¼ã¿ãã¼ã¹ãã¼ãã«ããããã³ã°ããçæ¹ã "
+"<emphasis>inverse</emphasis> ã¨ãã¦å®£è¨ãããã¨ã§ãåæ¹åã®å¤å¯¾å¤é¢é£ãæå®ã"
+"ããã¨ãåºæ¥ã¾ã ï¼ã©ã¡ãã inverse ã«é¸ãã ã¨ãã¦ãããã¡ãå´ã«ã¯ã¤ã³ããã¯"
"ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ã¯ä½¿ãã¾ããï¼ã"
#. Tag: para
-#: collection_mapping.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
-"次ã«åæ¹åã®å¤å¯¾å¤é¢é£ã®ä¾ã示ãã¾ãã åã«ãã´ãªã¯å¤æ°ã®ã¢ã¤ãã ãæã¤ãã¨ã"
+"次ã«åæ¹åã®å¤å¯¾å¤é¢é£ã®ä¾ã示ãã¾ããåã«ãã´ãªã¯å¤æ°ã®ã¢ã¤ãã ãæã¤ãã¨ã"
"ã§ããåã¢ã¤ãã ã¯å¤ãã®ã«ãã´ãªã«å±ãããã¨ãåºæ¥ã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:723
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:725
-#, fuzzy, no-c-format
-msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
"emphasis> persisted. This means that Hibernate has two representations in "
"memory for every bidirectional association: one link from A to B and another "
"link from B to A. This is easier to understand if you think about the Java "
"object model and how a many-to-many relationship in Javais created:"
msgstr ""
-"é¢é£ã®inverseå´ã«ã®ã¿è¡ããã夿´ã¯æ°¸ç¶å <emphasis>ããã¾ãã</emphasis>ã "
-"ããã¯ãHibernateã¯å
¨ã¦ã®åæ¹åé¢é£ã«ã¤ãã¦ãã¡ã¢ãªä¸ã«ï¼ã¤ã®è¡¨ç¾ãæã£ã¦ãã"
-"ã¨ããæå³ã§ãã ã¤ã¾ãä¸ã¤ã¯AããBã¸ã®ãªã³ã¯ã§ãããä¸ã¤ã¯BããAã¸ã®ãªã³ã¯ã¨"
-"ãããã¨ã§ãã Javaã®ãªãã¸ã§ã¯ãã¢ãã«ã«ã¤ãã¦èããJavaã§åæ¹åé¢ä¿ãã©ã"
-"ãã£ã¦ä½ãããèããã°ã ããã¯çè§£ããããã§ããä¸è¨ã«ãJavaã§ã®åæ¹åé¢é£ã"
-"示ãã¾ãã"
+"é¢é£ã® inverse å´ã«ã®ã¿è¡ããã夿´ã¯æ°¸ç¶å <emphasis>ããã¾ãã</emphasis>ã"
+"ããã¯ã Hibernate ã¯å
¨ã¦ã®åæ¹åé¢é£ã«ã¤ãã¦ãã¡ã¢ãªä¸ã«ï¼ã¤ã®è¡¨ç¾ãæã£ã¦ã"
+"ãã¨ããæå³ã§ããã¤ã¾ãä¸ã¤ã¯ A ãã B ã¸ã®ãªã³ã¯ã§ãããä¸ã¤ã¯ B ãã A ã¸"
+"ã®ãªã³ã¯ã¨ãããã¨ã§ãã Java ã®ãªãã¸ã§ã¯ãã¢ãã«ã«ã¤ãã¦èãã Java ã§åæ¹"
+"åé¢ä¿ãã©ããã£ã¦ä½ãããèããã°ãããã¯çè§£ããããã§ããä¸è¨ã«ã Java ã§"
+"ã®åæ¹åé¢é£ã示ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
"database."
msgstr ""
-"é¢é£ã®inverseã§ã¯ãªãå´ã¯ãã¡ã¢ãªä¸ã®è¡¨ç¾ããã¼ã¿ãã¼ã¹ã«ä¿åããã®ã«ä½¿ããã¾"
-"ãã"
+"é¢é£ã® inverse ã§ã¯ãªãå´ã¯ãã¡ã¢ãªä¸ã®è¡¨ç¾ããã¼ã¿ãã¼ã¹ã«ä¿åããã®ã«ä½¿ãã"
+"ã¾ãã"
#. Tag: para
-#: collection_mapping.xml:739
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
"many association to the same table column(s) as a many-to-one association "
"and declaring the many-valued end <literal>inverse=\"true\"</literal>."
msgstr ""
-"åæ¹åã®ä¸å¯¾å¤é¢é£ãå®ç¾©ããã«ã¯ã ä¸å¯¾å¤é¢é£ãå¤å¯¾ä¸é¢é£ã¨åããã¼ãã«ã®ã«ã©"
-"ã ã«ãããã³ã°ãã å¤å´ã« <literal>inverse=\"true\"</literal> ã¨å®£è¨ãã¾ãã"
+"åæ¹åã®ä¸å¯¾å¤é¢é£ãå®ç¾©ããã«ã¯ãä¸å¯¾å¤é¢é£ãå¤å¯¾ä¸é¢é£ã¨åããã¼ãã«ã®ã«ã©"
+"ã ã«ãããã³ã°ããå¤å´ã« <literal>inverse=\"true\"</literal> ã¨å®£è¨ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:745
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:747
-#, fuzzy, no-c-format
-msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
-"é¢é£ã®çå´ã« <literal>inverse=\"true\"</literal> ãè¨å®ãã¦ãã ã«ã¹ã±ã¼ãæ"
-"ä½ã«å½±é¿ãä¸ãã¾ããããããã¯ç´äº¤ããæ¦å¿µã§ãï¼"
+"é¢é£ã®çå´ã« <literal>inverse=\"true\"</literal> ãè¨å®ãã¦ããã«ã¹ã±ã¼ãæä½"
+"ã«å½±é¿ãä¸ãã¾ããããããã¯ç´äº¤ããæ¦å¿µã§ãã"
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "ã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³ã¨åæ¹åé¢é£"
#. Tag: para
-#: collection_mapping.xml:756
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <literal><map></literal>, requires special "
@@ -1290,155 +962,71 @@
"collection mapping:"
msgstr ""
"çå´ã <literal><list></literal> ã <literal><map></literal> ã§ã"
-"ã åæ¹åé¢é£ã¯ãç¹ã«ããèããå¿
è¦ãããã¾ãã ã¤ã³ããã¯ã¹ã«ã©ã ã«ãããã"
-"ããåã¯ã©ã¹ã®ããããã£ãããå ´åã¯ãåé¡ãªãã§ãã ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°"
-"ã§ <literal>inverse=\"true\"</literal> ã使ãç¶ãããã¾ãã"
+"ãåæ¹åé¢é£ã¯ãç¹ã«ããèããå¿
è¦ãããã¾ããã¤ã³ããã¯ã¹ã«ã©ã ã«ããããã"
+"ãåã¯ã©ã¹ã®ããããã£ãããå ´åã¯ãåé¡ãªãã§ããã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã§ "
+"<literal>inverse=\"true\"</literal> ã使ãç¶ãããã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:763
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:765
-#, fuzzy, no-c-format
-msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
"case, you cannot map the collection <literal>inverse=\"true\"</literal>. "
"Instead, you could use the following mapping:"
msgstr ""
-"ããããåã¯ã©ã¹ã«ãã®ãããªããããã£ããªãå ´åã¯ã é¢é£ãçã«åæ¹åã§ããã¨"
+"ããããåã¯ã©ã¹ã«ãã®ãããªããããã£ããªãå ´åã¯ãé¢é£ãçã«åæ¹åã§ããã¨"
"èãããã¨ãã§ãã¾ãã ï¼é¢é£ã®çå´ã«å©ç¨ã§ããæ
å ±ãããã¾ããããã䏿¹ã«ã¯"
-"ããã¾ããï¼ã ãã®å ´åã¯ãã³ã¬ã¯ã·ã§ã³ã« <literal>inverse=\"true\"</"
-"literal> ããããã³ã°ã§ãã¾ããã 代ããã«ã次ã®ãããªãããã³ã°ã使ãã¾ãã"
+"ããã¾ããï¼ããã®å ´åã¯ãã³ã¬ã¯ã·ã§ã³ã« <literal>inverse=\"true\"</literal> "
+"ããããã³ã°ã§ãã¾ããã代ããã«ã次ã®ãããªãããã³ã°ã使ãã¾ãï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
msgstr ""
-"注æï¼ ãã®ãããã³ã°ã§ã¯ãé¢é£ã®ã³ã¬ã¯ã·ã§ã³å¤ã®å´ã¯ã å¤é¨ãã¼ãã¢ãããã¼"
-"ããã責任ãããã¾ãã"
+"注æï¼ ãã®ãããã³ã°ã§ã¯ãé¢é£ã®ã³ã¬ã¯ã·ã§ã³å¤ã®å´ã¯ãå¤é¨ãã¼ãã¢ãããã¼ã"
+"ãã責任ãããã¾ãã <!-- TODO: ããã¯æ¬å½ã«ããã¤ãã®ä¸å¿
è¦ãªã¢ãããã¼ãã¹"
+"ãã¼ãã¡ã³ããããããã®ã§ãããã? -->"
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "3é
é¢é£"
#. Tag: para
-#: collection_mapping.xml:784
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
-"3é
é¢é£ã®ãããã³ã°ã«ã¯3ã¤ã®ã¢ããã¼ããããã¾ãã 1ã¤ç®ã¯é¢é£ãã¤ã³ããã¯ã¹"
-"ã¨ã㦠<literal>Map</literal> ã使ç¨ããã¢ããã¼ãã§ãã"
+"3é
é¢é£ã®ãããã³ã°ã«ã¯3ã¤ã®ã¢ããã¼ããããã¾ãã1ã¤ç®ã¯é¢é£ãã¤ã³ããã¯ã¹ã¨"
+"ã㦠<literal>Map</literal> ã使ç¨ããã¢ããã¼ãã§ãï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:789
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:793
-#, fuzzy, no-c-format
-msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
-"2ã¤ç®ã¯åç´ã«é¢é£ãã¨ã³ãã£ãã£ï½¥ã¯ã©ã¹ã¨ãã¦ã¢ãã«ãä½ãç´ãã¢ããã¼ãã§ã é »"
-"ç¹ã«ä½¿ããã¾ãã"
+"2ã¤ç®ã¯åç´ã«é¢é£ãã¨ã³ãã£ãã£ã¯ã©ã¹ã¨ãã¦ã¢ãã«ãä½ãç´ãã¢ããã¼ãã§ãé »ç¹"
+"ã«ä½¿ããã¾ãã"
#. Tag: para
-#: collection_mapping.xml:798
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
msgstr ""
-"æå¾ã¯compositeè¦ç´ ã使ãã¢ããã¼ãã§ããããã«é¢ããè°è«ã¯å¾ã»ã©è¡ãã¾ãã"
+"æå¾ã¯ composite è¦ç´ ã使ãã¢ããã¼ãã§ããããã«é¢ããè°è«ã¯å¾ã»ã©è¡ãã¾ãã"
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
-msgstr "<literal><idbag></literal>ã®ä½¿ç¨"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
+msgstr "<idbag>ã®ä½¿ç¨"
#. Tag: para
-#: collection_mapping.xml:807
#, fuzzy, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
@@ -1451,476 +1039,961 @@
"values to a table with a surrogate key."
msgstr ""
"è¤åãã¼ã¯æªããã®ã§ãã¨ã³ãã£ãã£ã¯äººå·¥ã®èå¥å(代çãã¼)ãæã¤ã¹ãã§ããã¨"
-"ããèãæ¹ããã¯ã å¤å¯¾å¤é¢é£ã¨å¤ã®ã³ã¬ã¯ã·ã§ã³ãè¤åãã¼ãç¨ãããã¼ãã«ã¸"
-"ãããã³ã°ããã®ã¯å°ãå¥å¦ã«æããããããã¾ããï¼ ç¢ºãã«ãã®èãæ¹ã«ã¯è°è«ã®"
-"ä½å°ãããã¾ãã ç´ç²ãªé¢é£ãã¼ãã«ã¯ä»£çãã¼ã使ã£ã¦ãå©çãå¾ãããªãããã«"
+"ããèãæ¹ããã¯ãå¤å¯¾å¤é¢é£ã¨å¤ã®ã³ã¬ã¯ã·ã§ã³ãè¤åãã¼ãç¨ãããã¼ãã«ã¸"
+"ãããã³ã°ããã®ã¯å°ãå¥å¦ã«æããããããã¾ããã確ãã«ãã®èãæ¹ã«ã¯è°è«ã®"
+"ä½å°ãããã¾ããç´ç²ãªé¢é£ãã¼ãã«ã¯ä»£çãã¼ã使ã£ã¦ãå©çãå¾ãããªãããã«"
"æããããã§ã ï¼åæå¤ã®ã³ã¬ã¯ã·ã§ã³ã¯å©çããã <emphasis>ãã</emphasis> "
-"ããã¾ãããï¼ã ã¨ã¯ãããHibernateã¯ä»£çãã¼ãæã¤ãã¼ãã«ã¸å¤å¯¾å¤é¢é£ã¨å¤"
-"ã®ã³ã¬ã¯ã·ã§ã³ã ãããã³ã°ããæ©è½ãåãã¦ãã¾ãã"
+"ããã¾ãããï¼ãã¨ã¯ããã Hibernate ã¯ä»£çãã¼ãæã¤ãã¼ãã«ã¸å¤å¯¾å¤é¢é£ã¨å¤"
+"ã®ã³ã¬ã¯ã·ã§ã³ããããã³ã°ããæ©è½ãåãã¦ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
"literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
-"bagã®ã»ãã³ãã£ãã¯ã¹ãæã£ã <literal>List</literal>ï¼ã¾ã㯠"
+"bag ã®ã»ãã³ãã£ãã¯ã¹ãæã£ã <literal>List</literal>ï¼ã¾ã㯠"
"<literal>Collection</literal>ï¼ã <literal><idbag></literal> è¦ç´ ã«ãã"
"ãã³ã°ã§ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:822
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:824
-#, fuzzy, no-c-format
-msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
-"ãåç¥ã®ããã« <literal><idbag></literal> ã¯ã¨ã³ãã£ãã£ï½¥ã¯ã©ã¹ã®ãã"
-"㫠人工çãªidã¸ã§ãã¬ã¼ã¿ãæã£ã¦ãã¾ãï¼ ç°ãªã代çãã¼ãããããã®ã³ã¬ã¯"
-"ã·ã§ã³ã®åã«å²ãå½ã¦ã¾ãã ããããªãããHibernateã¯ããè¡ã®ä»£çãã¼ã®å¤ãè¦"
-"ã¤ãåºãæ©æ§ãæã£ã¦ãã¾ããã"
+"ãåç¥ã®ããã« <literal><idbag></literal> ã¯ã¨ã³ãã£ãã£ã¯ã©ã¹ã®ããã«"
+"人工ç㪠id ã¸ã§ãã¬ã¼ã¿ãæã£ã¦ãã¾ããç°ãªã代çãã¼ãããããã®ã³ã¬ã¯ã·ã§"
+"ã³ã®åã«å²ãå½ã¦ã¾ãããããã Hibernate ã¯ããè¡ã®ä»£çãã¼ã®å¤ãè¦ã¤ãåºãæ©"
+"æ§ãæã£ã¦ãã¾ããã"
#. Tag: para
-#: collection_mapping.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
"regular <literal><bag></literal>. Hibernate can locate individual rows "
"efficiently and update or delete them individually, similar to a list, map "
"or set."
msgstr ""
-"<literal><idbag></literal> ãæ´æ°ããããã©ã¼ãã³ã¹ã¯ é常㮠"
-"<literal><bag></literal> ãããè¯ããã¨ã«æ³¨ç®ãã¦ãã ããï¼ Hibernateã¯"
-"åã
ã®è¡ã广çã«è¦ã¤ãããã¨ãã§ãã listãmapãsetã®ããã«åå¥ã«ãã®è¡ãæ´"
-"æ°ãåé¤ã§ãã¾ãã"
+"<literal><idbag></literal> ãæ´æ°ããããã©ã¼ãã³ã¹ã¯é常㮠"
+"<literal><bag></literal> ãããè¯ããã¨ã«æ³¨ç®ãã¦ãã ããã Hibernate "
+"ã¯åã
ã®è¡ã广çã«è¦ã¤ãããã¨ãã§ãã list ã map ã set ã®ããã«åå¥ã«ã"
+"ã®è¡ãæ´æ°ãåé¤ã§ãã¾ãã"
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
"generation strategy is not supported for <literal><idbag></literal> "
"collection identifiers."
msgstr ""
-"ç¾å¨ã®å®è£
ã§ã¯ã<literal>native</literal> ã¨ããidçææ¦ç¥ã <literal><"
+"ç¾å¨ã®å®è£
ã§ã¯ã <literal>native</literal> ã¨ãã id çææ¦ç¥ã <literal><"
"idbag></literal> ã³ã¬ã¯ã·ã§ã³ã®èå¥åã«å¯¾ãã¦ä½¿ãã¾ããã"
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ä¾"
#. Tag: para
-#: collection_mapping.xml:863
#, fuzzy, no-c-format
msgid "This section covers collection examples."
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ä¾"
#. Tag: para
-#: collection_mapping.xml:867
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
+"以ä¸ã®ã³ã¼ãã使ãã°ãæ°ãã <literal>Child</literal> ã追å ãããã¨ãã§ãã¾"
+"ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:871
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:873
#, fuzzy, no-c-format
msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
"ãã®ã¯ã©ã¹ã¯ <literal>Child</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ã³ã¬ã¯ã·ã§ã³ãæã£ã¦ãã¾"
-"ãã ããåã
ã®childãæå¤§ã§ãä¸ã¤ã®parentãæã£ã¦ãããªãã°ãæãèªç¶ãªãã"
-"ãã³ã°ã¯ä¸å¯¾å¤é¢é£ã§ãã"
+"ããããåã
ã® child ãæå¤§ã§ãä¸ã¤ã® parent ãæã£ã¦ãããªãã°ãæãèªç¶ãª"
+"ãããã³ã°ã¯ä¸å¯¾å¤é¢é£ã§ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "ããã¯ä»¥ä¸ã®ãã¼ãã«å®ç¾©ã«ãããã³ã°ãã¾ãã"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
"many association:"
msgstr ""
-"ããparentã <emphasis>è¦æ±</emphasis> ããããªããåæ¹åã®ä¸å¯¾å¤é¢é£ã使ç¨ã"
-"ã¦ãã ããã"
+"ãã parent ã <emphasis>è¦æ±</emphasis> ããããªããåæ¹åã®ä¸å¯¾å¤é¢é£ã使ç¨"
+"ãã¦ãã ããï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
msgstr "<literal>NOT NULL</literal> å¶ç´ã«æ³¨æãã¦ãã ããã"
-#. Tag: programlisting
-#: collection_mapping.xml:898
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:900
-#, fuzzy, no-c-format
-msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL</literal> constraint on the <literal><key></"
"literal> mapping:"
msgstr ""
"ãããã¯ããããã®é¢é£ã¯åæ¹åã§ããã¹ãã¨å¼·ã主張ããã®ã§ããã°ã "
-"<literal><key></literal> ã« <literal>NOT NULL</literal> å¶ç´ã宣è¨ã§ã"
-"ã¾ãã"
+"<literal><key></literal> ãããã³ã°ã« <literal>NOT NULL</literal> å¶ç´"
+"ã宣è¨ã§ãã¾ãï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:906
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:908
-#, fuzzy, no-c-format
-msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
"association is appropriate:"
-msgstr "䏿¹ã§ãããchildãè¤æ°ã®parentãæã¦ããªãã°ãå¤å¯¾å¤é¢é£ã妥å½ã§ãã"
-
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
msgstr ""
+"䏿¹ã§ããã child ãè¤æ°ã® parent ãæã¦ããªãã°ãå¤å¯¾å¤é¢é£ã妥å½ã§ã:"
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
-msgstr "ãã¼ãã«å®ç¾©ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã"
+msgstr "ãã¼ãã«å®ç¾©ã¯ä»¥ä¸ã®ããã«ãªãã¾ã:"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
-"parent/childé¢ä¿ã®ãããã³ã°ã«ã¤ãã¦ã®ããå¤ãã®ä¾ãå®å
¨ãªæé ãå¿
è¦ã§ãã"
+"parent/child é¢ä¿ã®ãããã³ã°ã«ã¤ãã¦ã®ããå¤ãã®ä¾ãå®å
¨ãªæé ãå¿
è¦ã§ãã"
"ã°ã <xref linkend=\"example-parentchild\"/> ãã覧ãã ããã"
#. Tag: para
-#: collection_mapping.xml:926
#, fuzzy, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr "ã¾ããããã«ç¹æ®ãªé¢é£ãããã³ã°ãå¯è½ã§ããæ¬¡ã®ç« ã§è©³ããè¿°ã¹ã¾ãã"
-#~ msgid "Collection Mapping"
-#~ msgstr "ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[public class Product {\n"
+#~ " private String serialNumber;\n"
+#~ " private Set parts = new HashSet();\n"
+#~ " \n"
+#~ " public Set getParts() { return parts; }\n"
+#~ " void setParts(Set parts) { this.parts = parts; }\n"
+#~ " public String getSerialNumber() { return serialNumber; }\n"
+#~ " void setSerialNumber(String sn) { serialNumber = sn; }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "public class Product {\n"
+#~ " private String serialNumber;\n"
+#~ " private Set parts = new HashSet();\n"
+#~ " \n"
+#~ " public Set getParts() { return parts; }\n"
+#~ " void setParts(Set parts) { this.parts = parts; }\n"
+#~ " public String getSerialNumber() { return serialNumber; }\n"
+#~ " void setSerialNumber(String sn) { serialNumber = sn; }\n"
+#~ "}"
-#~ msgid "Some examples, first, a set of strings:"
-#~ msgstr "以ä¸ã«ããã¤ãä¾ã示ãã¾ãã ã¾ãã¯Stringã®setã«é¢ãã¦ã®ä¾ã§ãã"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "Cat kitten = new DomesticCat();\n"
+#~ "....\n"
+#~ "Set kittens = new HashSet();\n"
+#~ "kittens.add(kitten);\n"
+#~ "cat.setKittens(kittens);\n"
+#~ "session.persist(cat);\n"
+#~ "kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
+#~ "(HashSet) cat.getKittens(); // Error!]]>"
+#~ msgstr ""
+#~ "Cat cat = new DomesticCat();\n"
+#~ "Cat kitten = new DomesticCat();\n"
+#~ "....\n"
+#~ "Set kittens = new HashSet();\n"
+#~ "kittens.add(kitten);\n"
+#~ "cat.setKittens(kittens);\n"
+#~ "session.persist(cat);\n"
+#~ "kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
+#~ "(HashSet) cat.getKittens(); // Error!"
+#, fuzzy
#~ msgid ""
-#~ "The previous sections are pretty confusing. So lets look at an example. "
-#~ "This class:"
-#~ msgstr "ããã¾ã§ã®ç¯ã®èª¬æã§ã¯çè§£ãã«ããã®ã§ã以ä¸ã®ä¾ãè¦ã¦ãã ããã"
+#~ "<![CDATA[<class name=\"Product\">\n"
+#~ " <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
+#~ " <set name=\"parts\">\n"
+#~ " <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Product\">\n"
+#~ " <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
+#~ " <set name=\"parts\">\n"
+#~ " <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ " </set>\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
+#~ "<![CDATA[<map\n"
+#~ " name=\"propertyName\"\n"
+#~ " table=\"table_name\"\n"
+#~ " schema=\"schema_name\"\n"
+#~ " lazy=\"true|extra|false\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan"
+#~ "\"\n"
+#~ " sort=\"unsorted|natural|comparatorClass\"\n"
+#~ " order-by=\"column_name asc|desc\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " fetch=\"join|select|subselect\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <key .... />\n"
+#~ " <map-key .... />\n"
+#~ " <element .... />\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>column_name</literal>ï¼å¿
é ï¼:ã³ã¬ã¯ã·ã§ã³ã¤ã³ããã¯ã¹ã®å¤ãä¿æ"
-#~ "ããã«ã©ã ã®ååã"
+#~ "<map\n"
+#~ " name=\"propertyName\"\n"
+#~ " table=\"table_name\"\n"
+#~ " schema=\"schema_name\"\n"
+#~ " lazy=\"true|extra|false\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan"
+#~ "\"\n"
+#~ " sort=\"unsorted|natural|comparatorClass\"\n"
+#~ " order-by=\"column_name asc|desc\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " fetch=\"join|select|subselect\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <key .... />\n"
+#~ " <map-key .... />\n"
+#~ " <element .... />\n"
+#~ "</map>"
+#, fuzzy
+#~ msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
+#~ msgstr "<key column=\"productSerialNumber\" not-null=\"true\"/>"
+
+#, fuzzy
#~ msgid ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
+#~ "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
+#~ msgstr "<key column=\"productSerialNumber\" on-delete=\"cascade\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"names\" table=\"person_names\">\n"
+#~ " <key column=\"person_id\"/>\n"
+#~ " <element column=\"person_name\" type=\"string\"/>\n"
+#~ "</set>]]>"
#~ msgstr ""
-#~ "<literal>base</literal>ï¼ãªãã·ã§ã³ãããã©ã«ã㯠<literal>0</literal>ï¼: "
-#~ "ãªã¹ããããã¯é
åã®æåã®è¦ç´ ã«è©²å½ããã¤ã³ããã¯ã¹ã«ã©ã ã®å¤ã"
+#~ "<set name=\"names\" table=\"person_names\">\n"
+#~ " <key column=\"person_id\"/>\n"
+#~ " <element column=\"person_name\" type=\"string\"/>\n"
+#~ "</set>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
+#~ "<![CDATA[<bag name=\"sizes\" \n"
+#~ " table=\"item_sizes\" \n"
+#~ " order-by=\"size asc\">\n"
+#~ " <key column=\"item_id\"/>\n"
+#~ " <element column=\"size\" type=\"integer\"/>\n"
+#~ "</bag>]]>"
#~ msgstr ""
-#~ "<literal>column</literal>ï¼ãªãã·ã§ã³ï¼: ã³ã¬ã¯ã·ã§ã³ã¤ã³ããã¯ã¹ã®å¤ãä¿"
-#~ "æããã«ã©ã ã®ååã"
+#~ "<bag name=\"sizes\" \n"
+#~ " table=\"item_sizes\" \n"
+#~ " order-by=\"size asc\">\n"
+#~ " <key column=\"item_id\"/>\n"
+#~ " <element column=\"size\" type=\"integer\"/>\n"
+#~ "</bag>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
+#~ "<![CDATA[<array name=\"addresses\" \n"
+#~ " table=\"PersonAddress\" \n"
+#~ " cascade=\"persist\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <many-to-many column=\"addressId\" class=\"Address\"/>\n"
+#~ "</array>]]>"
#~ msgstr ""
-#~ "<literal>formula</literal>ï¼ãªãã·ã§ã³ï¼: Mapã®ãã¼ãè©ä¾¡ããã®ã«ä½¿ããã"
-#~ "SQLå¼ã"
+#~ "<array name=\"addresses\" \n"
+#~ " table=\"PersonAddress\" \n"
+#~ " cascade=\"persist\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <many-to-many column=\"addressId\" class=\"Address\"/>\n"
+#~ "</array>"
-#~ msgid "<literal>type</literal> (reguired): The type of the map keys."
-#~ msgstr "<literal>type</literal>ï¼å¿
é ï¼: Mapã®ãã¼ã®åã"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<map name=\"holidays\" \n"
+#~ " table=\"holidays\" \n"
+#~ " schema=\"dbo\" \n"
+#~ " order-by=\"hol_name asc\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<map name=\"holidays\" \n"
+#~ " table=\"holidays\" \n"
+#~ " schema=\"dbo\" \n"
+#~ " order-by=\"hol_name asc\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
+#~ "<![CDATA[<list name=\"carComponents\" \n"
+#~ " table=\"CarComponents\">\n"
+#~ " <key column=\"carId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <composite-element class=\"CarComponent\">\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"type\"/>\n"
+#~ " <property name=\"serialNumber\" column=\"serialNum\"/>\n"
+#~ " </composite-element>\n"
+#~ "</list>]]>"
#~ msgstr ""
-#~ "<literal>column</literal> ï¼ãªãã·ã§ã³ï¼: ã³ã¬ã¯ã·ã§ã³ã¤ã³ããã¯ã¹ã®å¤ã®ã"
-#~ "ãã®å¤é¨ãã¼ã«ã©ã ã®ååã"
+#~ "<list name=\"carComponents\" \n"
+#~ " table=\"CarComponents\">\n"
+#~ " <key column=\"carId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <composite-element class=\"CarComponent\">\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"type\"/>\n"
+#~ " <property name=\"serialNumber\" column=\"serialNum\"/>\n"
+#~ " </composite-element>\n"
+#~ "</list>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
+#~ "<![CDATA[<one-to-many \n"
+#~ " class=\"ClassName\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />]]>"
#~ msgstr ""
-#~ "<literal>formula</literal> ï¼ãªãã·ã§ã³ï¼: Mapã®ãã¼ã®ããã®å¤é¨ãã¼ãè©ä¾¡"
-#~ "ããããã«ä½¿ãSQLå¼ã"
+#~ "<one-to-many \n"
+#~ " class=\"ClassName\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />"
+#, fuzzy
#~ msgid ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
+#~ "<![CDATA[<map name=\"parts\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"productId\" not-null=\"true\"/>\n"
+#~ " <map-key formula=\"partName\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>class</literal> ï¼å¿
é ï¼: Mapã®ãã¼ã¨ãã¦ä½¿ãããã¨ã³ãã£ãã£ã¯ã©"
-#~ "ã¹ã"
+#~ "<map name=\"parts\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"productId\" not-null=\"true\"/>\n"
+#~ " <map-key formula=\"partName\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ "</map>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
+#~ "<![CDATA[<set name=\"aliases\" \n"
+#~ " table=\"person_aliases\" \n"
+#~ " sort=\"natural\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>column</literal> ï¼ãªãã·ã§ã³ï¼: ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®å¤ãä¿æãã"
-#~ "ã«ã©ã ã®ååã"
+#~ "<set name=\"aliases\" \n"
+#~ " table=\"person_aliases\" \n"
+#~ " sort=\"natural\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
+#~ "<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
+#~ "(name) asc\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>formula</literal> ï¼ãªãã·ã§ã³ï¼: è¦ç´ ãè©ä¾¡ããããã«ä½¿ãSQLå¼ã"
+#~ "<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower(name) "
+#~ "asc\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date type=\"date\"/>\n"
+#~ "</map>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-#~ msgstr "<literal>type</literal> ï¼å¿
é ï¼ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®åã"
+#~ "<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this."
+#~ "name\" ).list();]]>"
+#~ msgstr ""
+#~ "sortedUsers = s.createFilter( group.getUsers(), \"order by this.name\" )."
+#~ "list();"
+#, fuzzy
#~ msgid ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
+#~ "<![CDATA[<class name=\"Category\">\n"
+#~ " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
+#~ " ...\n"
+#~ " <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
+#~ " <key column=\"CATEGORY_ID\"/>\n"
+#~ " <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Item\">\n"
+#~ " <id name=\"id\" column=\"ITEM_ID\"/>\n"
+#~ " ...\n"
+#~ "\n"
+#~ " <!-- inverse end -->\n"
+#~ " <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
+#~ " <key column=\"ITEM_ID\"/>\n"
+#~ " <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "<emphasis>å¤å¯¾å¤é¢é£</emphasis> 㯠<literal><many-to-many></"
-#~ "literal> è¦ç´ ã§æå®ãã¾ãã"
+#~ "<class name=\"Category\">\n"
+#~ " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
+#~ " ...\n"
+#~ " <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
+#~ " <key column=\"CATEGORY_ID\"/>\n"
+#~ " <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Item\">\n"
+#~ " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
+#~ " ...\n"
+#~ "\n"
+#~ " <!-- inverse end -->\n"
+#~ " <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true"
+#~ "\">\n"
+#~ " <key column=\"ITEM_ID\"/>\n"
+#~ " <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
+#~ "<![CDATA[\n"
+#~ "category.getItems().add(item); // The category now \"knows\" "
+#~ "about the relationship\n"
+#~ "item.getCategories().add(category); // The item now \"knows\" about "
+#~ "the relationship\n"
+#~ "\n"
+#~ "session.persist(item); // The relationship won't be "
+#~ "saved!\n"
+#~ "session.persist(category); // The relationship will be "
+#~ "saved]]>"
#~ msgstr ""
-#~ "<literal>column</literal> ï¼ãªãã·ã§ã³ï¼: å¤é¨ãã¼ã«ã©ã ã®è¦ç´ ã®ååã"
+#~ "category.getItems().add(item); // The category now \"knows\" "
+#~ "about the relationship\n"
+#~ "item.getCategories().add(category); // The item now \"knows\" about "
+#~ "the relationship\n"
+#~ "\n"
+#~ "session.persist(item); // The relationship won't be "
+#~ "saved!\n"
+#~ "session.persist(category); // The relationship will be saved"
+#, fuzzy
#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "<literal>formula</literal> ï¼ãªãã·ã§ã³ï¼: å¤é¨ãã¼å¤ã®è¦ç´ ãè©ä¾¡ãããã"
-#~ "ã«ä½¿ãSQLå¼ã"
+#~ "<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "<literal>fetch</literal> (ãªãã·ã§ã³ - ããã©ã«ã㯠<literal>join</"
-#~ "literal>): é¢é£ã®ããã«ãå¤é¨çµåãé æ¬¡é¸æãã§ãããæå¹ã«ãã¾ãã ããã¯"
-#~ "ç¹æ®ãªã±ã¼ã¹ã§ãããã¨ã³ãã£ãã£ã¨ä»ã®ã¨ã³ãã£ãã£ã¨ã®å¤å¯¾å¤é¢ä¿ã ï¼ï¼ã¤"
-#~ "ã® <literal>SELECT</literal> ã«ããï¼å®å
¨ã«å³æã«ãã§ããããããã«ã¯ã ã"
-#~ "ã®ã³ã¬ã¯ã·ã§ã³èªä½ã ãã§ãªãã ãã¹ãããè¦ç´ ã§ãã <literal><many-to-"
-#~ "many></literal> ã®ãã®å±æ§ã«ã¤ãã¦ã <literal>join</literal> ãã§ããã"
-#~ "æå¹ããå¿
è¦ãããã¾ãã"
+#~ "<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\">\n"
+#~ " <key column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "<literal>unique</literal> ï¼ãªãã·ã§ã³ï¼: å¤é¨ãã¼ã«ã©ã ã®ã¦ãã¼ã¯å¶ç´ã®"
-#~ "DDLçæãæå¹ã«ãã¾ãã ããã¯ãé¢é£ã®å¤é度ãäºå®ä¸ä¸å¯¾å¤ã«ãã¾ãã"
+#~ "<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\">\n"
+#~ " <key column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
+#~ "<![CDATA[<map name=\"contracts\">\n"
+#~ " <key column=\"employer_id\" not-null=\"true\"/>\n"
+#~ " <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
+#~ " <one-to-many class=\"Contract\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>not-found</literal> ï¼ãªãã·ã§ã³ - ããã©ã«ã㯠"
-#~ "<literal>exception</literal>ï¼ åç
§å
ã®è¡ããªãå¤é¨ãã¼ãã©ã®ããã«æ±ãã"
-#~ "ãæå®ãã¾ãã <literal>ignore</literal> ã«ããã¨ãè¡ããªããã¨ãé¢é£ãç¡"
-#~ "ããã®ã¨ãã¦æ±ãã¾ãã"
+#~ "<map name=\"contracts\">\n"
+#~ " <key column=\"employer_id\" not-null=\"true\"/>\n"
+#~ " <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/"
+#~ ">\n"
+#~ " <one-to-many class=\"Contract\"/>\n"
+#~ "</map>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
+#~ "<![CDATA[<map name=\"connections\">\n"
+#~ " <key column=\"incoming_node_id\"/>\n"
+#~ " <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
+#~ " <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "<literal>property-ref</literal>: ï¼ãªãã·ã§ã³ï¼ ãã®å¤é¨ãã¼ã«çµåããé¢é£"
-#~ "ã¯ã©ã¹ã®ããããã£åã æå®ããªãã£ãå ´åã¯ãé¢é£ã¯ã©ã¹ã®ä¸»ãã¼ã使ãã¾"
-#~ "ãã"
+#~ "<map name=\"connections\">\n"
+#~ " <key column=\"incoming_node_id\"/>\n"
+#~ " <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/"
+#~ ">\n"
+#~ " <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
+#~ "</map>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
+#~ " <collection-id column=\"ID\" type=\"long\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </collection-id>\n"
+#~ " <key column=\"PERSON1\"/>\n"
+#~ " <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
+#~ "</idbag>]]>"
+#~ msgstr ""
+#~ "<idbag name=\"lovers\" table=\"LOVERS\">\n"
+#~ " <collection-id column=\"ID\" type=\"long\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </collection-id>\n"
+#~ " <key column=\"PERSON1\"/>\n"
+#~ " <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/"
+#~ ">\n"
+#~ "</idbag>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "\n"
+#~ "public class Parent {\n"
+#~ " private long id;\n"
+#~ " private Set children;\n"
+#~ "\n"
+#~ " public long getId() { return id; }\n"
+#~ " private void setId(long id) { this.id=id; }\n"
+#~ "\n"
+#~ " private Set getChildren() { return children; }\n"
+#~ " private void setChildren(Set children) { this.children=children; }\n"
+#~ "\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "\n"
+#~ "public class Parent {\n"
+#~ " private long id;\n"
+#~ " private Set children;\n"
+#~ "\n"
+#~ " public long getId() { return id; }\n"
+#~ " private void setId(long id) { this.id=id; }\n"
+#~ "\n"
+#~ " private Set getChildren() { return children; }\n"
+#~ " private void setChildren(Set children) { this.children=children; }\n"
+#~ "\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255), "
+#~ "parent_id bigint )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+#~ msgstr ""
+#~ "create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255), "
+#~ "parent_id bigint )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id"
+#~ "\" not-null=\"true\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <many-to-one name=\"parent\" class=\"Parent\" column="
+#~ "\"parent_id\" not-null=\"true\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null\n"
+#~ " primary key,\n"
+#~ " name varchar(255),\n"
+#~ " parent_id bigint not null )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+#~ msgstr ""
+#~ "create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null\n"
+#~ " primary key,\n"
+#~ " name varchar(255),\n"
+#~ " parent_id bigint not null )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" table=\"childset\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <many-to-many class=\"Child\" column=\"child_id\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" table=\"childset\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <many-to-many class=\"Child\" column=\"child_id\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255) )\n"
+#~ "create table childset ( parent_id bigint not null,\n"
+#~ " child_id bigint not null,\n"
+#~ " primary key ( parent_id, child_id ) )\n"
+#~ "alter table childset add constraint childsetfk0 (parent_id) references "
+#~ "parent\n"
+#~ "alter table childset add constraint childsetfk1 (child_id) references "
+#~ "child]]>"
+#~ msgstr ""
+#~ "create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255) )\n"
+#~ "create table childset ( parent_id bigint not null,\n"
+#~ " child_id bigint not null,\n"
+#~ " primary key ( parent_id, child_id ) )\n"
+#~ "alter table childset add constraint childsetfk0 (parent_id) references "
+#~ "parent\n"
+#~ "alter table childset add constraint childsetfk1 (child_id) references "
+#~ "child"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,164 +1,81 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 09:28+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
msgstr "ã³ã³ãã¼ãã³ãã®ãããã³ã°"
#. Tag: para
-#: component_mapping.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
-"<emphasis>ã³ã³ãã¼ãã³ã</emphasis> ã®æ¦å¿µã¯ãHibernateãéãã¦æ§ã
ãªç¶æ³ã®ä¸"
-"ã§ ç°ãªãç®çã®ããã«åå©ç¨ããã¾ãã"
+"<emphasis>ã³ã³ãã¼ãã³ã</emphasis> ã®æ¦å¿µã¯ã Hibernate ãéãã¦æ§ã
ãªç¶æ³ã®"
+"ä¸ã§ç°ãªãç®çã®ããã«åå©ç¨ããã¾ãã"
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr "ä¾åãªãã¸ã§ã¯ã"
#. Tag: para
-#: component_mapping.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
"notion of composition and not to architecture-level components. For example, "
"you can model a person like this:"
msgstr ""
-"ã³ã³ãã¼ãã³ãã¯ãã¨ã³ãã£ãã£ã®åç
§ã§ã¯ãªãå¤åã¨ãã¦æ°¸ç¶åãããã å
å«ãã"
-"ããªãã¸ã§ã¯ãã§ããã³ã³ãã¼ãã³ãã¨ããè¨èã«ã¤ãã¦ã¯ãã³ã³ãã¸ã·ã§ã³ã¨ãã "
-"ãªãã¸ã§ã¯ãæåã®æ¦å¿µãåç
§ãã¦ãã ããï¼ã¢ã¼ããã¯ãã£ã¬ãã«ã®ã³ã³ãã¼ãã³"
-"ãã§ã¯ããã¾ããï¼ã ä¾ãã°ã以ä¸ã®Personã¢ãã«ã®ãããªãã®ã§ãã"
+"ã³ã³ãã¼ãã³ãã¯ãã¨ã³ãã£ãã£ã®åç
§ã§ã¯ãªãå¤åã¨ãã¦æ°¸ç¶åããããå
å«ãã"
+"ããªãã¸ã§ã¯ãã§ãããã³ã³ãã¼ãã³ããã¨ããè¨èã«ã¤ãã¦ã¯ãã³ã³ãã¸ã·ã§ã³ã¨"
+"ãããªãã¸ã§ã¯ãæåã®æ¦å¿µãåç
§ãã¦ãã ããï¼ã¢ã¼ããã¯ãã£ã¬ãã«ã®ã³ã³ãã¼"
+"ãã³ãã§ã¯ããã¾ããï¼ãä¾ãã°ã以ä¸ã® Person ã¢ãã«ã®ãããªãã®ã§ãã"
-#. Tag: programlisting
-#: component_mapping.xml:45
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:49
-#, fuzzy, no-c-format
-msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
"<literal>Person</literal>. <literal>Name</literal> defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
"interfaces or identifier properties."
msgstr ""
-"ãã¾ã<literal>Name</literal> 㯠<literal>Person</literal> ã®ã³ã³ãã¼ãã³ãã¨"
-"ã㦠永ç¶åãããã¨ãåºæ¥ã¾ããããã§ <literal>Name</literal> ã¯æ°¸ç¶å屿§ã«"
-"対ãã¦getterã setterã¡ã½ãããå®ç¾©ãã¾ãããã¤ã³ã¿ã¼ãã§ã¤ã¹ãèå¥åããã"
-"ãã£ãå®ç¾©ããå¿
è¦ã ãªããã¨ã«æ³¨æãã¦ä¸ããã"
+"ãã¾ã <literal>Name</literal> 㯠<literal>Person</literal> ã®ã³ã³ãã¼ãã³ã"
+"ã¨ãã¦æ°¸ç¶åãããã¨ãåºæ¥ã¾ããããã§ <literal>Name</literal> ã¯æ°¸ç¶å屿§ã«"
+"対ã㦠getter ã setter ã¡ã½ãããå®ç¾©ãã¾ãããã¤ã³ã¿ã¼ãã§ã¼ã¹ãèå¥åãã"
+"ããã£ãå®ç¾©ããå¿
è¦ããªããã¨ã«æ³¨æãã¦ä¸ããã"
#. Tag: para
-#: component_mapping.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr "ãããã³ã°å®ç¾©ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
msgstr ""
-"Personãã¼ãã«ã¯ <literal>pid</literal>ã <literal>birthday</literal>ã "
+"Person ãã¼ãã«ã¯ <literal>pid</literal>ã <literal>birthday</literal>ã "
"<literal>initial</literal>ã <literal>first</literal>ã <literal>last</"
"literal> ã«ã©ã ãæã¡ã¾ãã"
#. Tag: para
-#: component_mapping.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
@@ -168,108 +85,69 @@
"if all component columns are null, then the entire component is null. This "
"is suitable for most purposes."
msgstr ""
-"å
¨ã¦ã®å¤åã®ããã«ãã³ã³ãã¼ãã³ãã¯åç
§ã®å
±æããããã¨ãã§ãã¾ããã è¨ãæ"
-"ããã¨ãäºäººã®Personã¯åãååãæã¤ãã¨ãã§ãã¾ãããäºã¤ã®Personãªãã¸ã§ã¯"
-"ã㯠\"å¤ãåãã ã\"ã®å¥ã
ã®nameãªãã¸ã§ã¯ããå«ãã§ããã¨ãããã¨ã§ãã ã³"
-"ã³ãã¼ãã³ãã®nullå¤ã®ã»ãã³ãã£ã¯ã¹ã¯ <emphasis>ã¢ãããã¯</emphasis> ã§"
-"ãã ã³ã³ãã¼ãã³ãã®ãªãã¸ã§ã¯ããåèªã¿è¾¼ã¿ããéãHibernateã¯ã³ã³ãã¼ãã³"
-"ãã®ãã¹ã¦ã®ã«ã©ã ã nullã§ãããªãã³ã³ãã¼ãã³ãèªä½ãnullã§ããã¨èãã¾"
-"ãã ããã¯å¤§æµã®å ´ååé¡ããã¾ããã"
+"å
¨ã¦ã®å¤åã®ããã«ãã³ã³ãã¼ãã³ãã¯åç
§ã®å
±æããããã¨ãã§ãã¾ãããè¨ãæ"
+"ããã¨ãäºäººã® Person ã¯åãååãæã¤ãã¨ãã§ãã¾ãããäºã¤ã® Person ãªã"
+"ã¸ã§ã¯ãã¯ãå¤ãåãã ããã®å¥ã
ã® name ãªãã¸ã§ã¯ããå«ãã§ããã¨ãããã¨ã§"
+"ããã³ã³ãã¼ãã³ãã® null å¤ã®ã»ãã³ãã£ã¯ã¹ã¯ <emphasis>ã¢ãããã¯</"
+"emphasis> ã§ããã³ã³ãã¼ãã³ãã®ãªãã¸ã§ã¯ããåèªã¿è¾¼ã¿ããéã Hibernate ã¯"
+"ã³ã³ãã¼ãã³ãã®ãã¹ã¦ã®ã«ã©ã ã null ã§ãããªãã³ã³ãã¼ãã³ãèªä½ã null ã§"
+"ããã¨èãã¾ããããã¯å¤§æµã®å ´ååé¡ããã¾ããã"
#. Tag: para
-#: component_mapping.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
"<emphasis>not</emphasis> be considered an exotic usage. Hibernate is "
"intended to support a fine-grained object model."
msgstr ""
-"ã³ã³ãã¼ãã³ãã®å±æ§ã¯ã©ããªHibernateã®åã§ãæ§ãã¾ããï¼ã³ã¬ã¯ã·ã§ã³ãmany-"
-"to-oneé¢é£ã ä»ã®ã³ã³ãã¼ãã³ããªã©ï¼ããã¹ããããã³ã³ãã¼ãã³ãã¯æ»
å¤ã«ä½¿ã"
-"ãªãã¨èããã¹ãã§ã¯ <emphasis>ããã¾ãã</emphasis> ãHibernateã¯é常ã«ãã"
-"ã®ç´°ãããªãã¸ã§ã¯ãã¢ãã«ããµãã¼ãããããã«æå³ããã¦ãã¾ãã"
+"ã³ã³ãã¼ãã³ãã®å±æ§ã¯ã©ã㪠Hibernate ã®åã§ãæ§ãã¾ããï¼ã³ã¬ã¯ã·ã§ã³ã "
+"many-to-one é¢é£ãä»ã®ã³ã³ãã¼ãã³ããªã©ï¼ããã¹ããããã³ã³ãã¼ãã³ãã¯æ»
å¤"
+"ã«ä½¿ããªãã¨èããã¹ãã§ã¯ <emphasis>ããã¾ãã</emphasis> ã Hibernate ã¯é"
+"常ã«ããã®ç´°ãããªãã¸ã§ã¯ãã¢ãã«ããµãã¼ãããããã«æå³ããã¦ãã¾ãã"
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"<literal><component></literal> è¦ç´ ã¯è¦ªã¨ã³ãã£ãã£ã¸ã®éåç
§ã¨ãã¦ãã³"
-"ã³ãã¼ãã³ãã¯ã©ã¹ã® 屿§ããããã³ã°ãã <literal><parent></literal> "
-"ãµãè¦ç´ ã使ç¨ã§ãã¾ãã"
+"<literal><component></literal> è¦ç´ ã¯ã親ã¨ã³ãã£ãã£ã¸æ»ãåç
§ã¨ãã¦ã"
+"ã³ã³ãã¼ãã³ãã®ã¯ã©ã¹ã®ããããã£ããããã³ã°ãã <literal><parent></"
+"literal> ãµãè¦ç´ ã許å¯ãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
msgstr "å¾å±ãããªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: component_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
"<literal>Name</literal>). Declare your component collection by replacing the "
"<literal><element></literal> tag with a <literal><composite-"
"element></literal> tag:"
msgstr ""
-"Hibernateã¯ã³ã³ãã¼ãã³ãã®ã³ã¬ã¯ã·ã§ã³ããµãã¼ããã¦ãã¾ãï¼ä¾ãã° "
+"Hibernate ã¯ã³ã³ãã¼ãã³ãã®ã³ã¬ã¯ã·ã§ã³ããµãã¼ããã¦ãã¾ãï¼ä¾ãã° "
"<literal>Name</literal> åã®é
åï¼ã <literal><element></literal> ã¿ã°"
-"ã <literal><composite-element></literal> ã¿ã°ã«åãæ¿ãããã¨ã«ãã ã³"
+"ã <literal><composite-element></literal> ã¿ã°ã«åãæ¿ãããã¨ã«ããã³"
"ã³ãã¼ãã³ãã³ã¬ã¯ã·ã§ã³ã宣è¨ãã¦ãã ããã"
-#. Tag: programlisting
-#: component_mapping.xml:105
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:108
-#, fuzzy, no-c-format
-msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
"important to implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> correctly."
msgstr ""
-"注æ: ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã® <literal>Set</literal> ãå®ç¾©ãããªãã "
+"注è¨: ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã® <literal>Set</literal> ãå®ç¾©ãããªãã "
"<literal>equals()</literal> 㨠<literal>hashCode()</literal> ãæ£ããå®è£
ãã"
"ãã¨ãéè¦ã§ãã"
#. Tag: para
-#: component_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
@@ -280,17 +158,16 @@
"model and persistence semantics are still slightly different."
msgstr ""
"ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã¯ã³ã¬ã¯ã·ã§ã³ãå«ã¾ããã³ã³ãã¼ãã³ããå«ããã¨ããã"
-"ã¾ãã ã³ã³ãã¸ããã¨ã¬ã¡ã³ãèªèº«ãã³ã³ãã¼ãã³ããå«ãã§ããå ´å㯠"
-"<literal><nested-composite-element></literal> ã 使ç¨ãã¦ãã ãããã³ã³"
+"ã¾ããã³ã³ãã¸ããã¨ã¬ã¡ã³ãèªèº«ãã³ã³ãã¼ãã³ããå«ãã§ããå ´å㯠"
+"<literal><nested-composite-element></literal> ã使ç¨ãã¦ãã ãããã³ã³"
"ãã¼ãã³ãã®ã³ã¬ã¯ã·ã§ã³èªèº«ãã³ã³ãã¼ãã³ããæã¤ã¨ããã±ã¼ã¹ã¯ãã£ãã«ãã"
-"ã¾ããã ãã®æ®µéã¾ã§ã«ãone-to-manyé¢é£ã®æ¹ãããé©åã§ãªããã¨çèãã¦ãã "
-"ããã ã³ã³ãã¸ããã¨ã¬ã¡ã³ããã¨ã³ãã£ãã£ã¨ãã¦å度ã¢ããªã³ã°ãã¦ã¿ã¦ãã ã"
-"ãã ãããããã¯Javaã®ã¢ãã«ã¨ãã¦ã¯åãã§ããããªã¬ã¼ã·ã§ãã«ã¢ãã«ã¨æ°¸ç¶å"
-"ä½ã¯ã¾ã è¥å¹²ç°ãªããã¨ã«æ³¨æãã¦ãã ããã"
+"ã¾ããããã®æ®µéã¾ã§ã«ã one-to-many é¢é£ã®æ¹ãããé©åã§ãªããã¨çèãã¦ãã "
+"ãããã³ã³ãã¸ããã¨ã¬ã¡ã³ããã¨ã³ãã£ãã£ã¨ãã¦å度ã¢ããªã³ã°ãã¦ã¿ã¦ãã ã"
+"ããããããã㯠Java ã®ã¢ãã«ã¨ãã¦ã¯åãã§ããããªã¬ã¼ã·ã§ãã«ã¢ãã«ã¨æ°¸ç¶"
+"åä½ã¯ã¾ã è¥å¹²ç°ãªããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: component_mapping.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set></literal>. There is no separate primary key "
@@ -301,17 +178,16 @@
"literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
"ãã <literal><set></literal> ã使ç¨ããã®ã§ããã°ãã³ã³ãã¸ããã¨ã¬ã¡"
-"ã³ãã®ãããã³ã°ãnullå¤ãå¯è½ãª 屿§ããµãã¼ããã¦ããªããã¨ã«æ³¨æãã¦ãã ã"
-"ããHibernateã¯ãªãã¸ã§ã¯ããåé¤ããã¨ãã ã¬ã³ã¼ããèå¥ããããã«ãããã"
-"ã®ã«ã©ã ã®å¤ã使ç¨ããå¿
è¦ããããããnullå¤ãæã¤ãã¨ãåºæ¥ã¾ãã ï¼ã³ã³ã"
-"ã¸ããã¨ã¬ã¡ã³ããã¼ãã«ã«ã¯å¥ã®ä¸»ãã¼ã«ã©ã ã¯ããã¾ããï¼ã ã³ã³ãã¸ããã¨ã¬"
-"ã¡ã³ãã«not-nullã®å±æ§ã®ã¿ã使ç¨ããããã¾ã㯠<literal><list></"
+"ã³ãã®ãããã³ã°ã null å¤ãå¯è½ãªå±æ§ããµãã¼ããã¦ããªããã¨ã«æ³¨æãã¦ãã "
+"ããã Hibernate ã¯ãªãã¸ã§ã¯ããåé¤ããã¨ããã¬ã³ã¼ããèå¥ããããã«ããã"
+"ãã®ã«ã©ã ã®å¤ã使ç¨ããå¿
è¦ãããããã null å¤ãæã¤ãã¨ãåºæ¥ã¾ãã ï¼ã³ã³"
+"ãã¸ããã¨ã¬ã¡ã³ããã¼ãã«ã«ã¯å¥ã®ä¸»ãã¼ã«ã©ã ã¯ããã¾ããï¼ã ã³ã³ãã¸ããã¨"
+"ã¬ã¡ã³ãã« not-null ã®å±æ§ã®ã¿ã使ç¨ããããã¾ã㯠<literal><list></"
"literal>ã<literal><map></literal>ã <literal><bag></literal>ã"
"<literal><idbag></literal> ã鏿ããå¿
è¦ãããã¾ãã"
#. Tag: para
-#: component_mapping.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one></literal> element. This mapping allows you to "
@@ -322,89 +198,48 @@
"<literal>quantity</literal> are properties of the association:"
msgstr ""
"ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã®ç¹å¥ãªã±ã¼ã¹ã¨ãã¦ããã¹ãããã <literal><many-"
-"to-one></literal> 屿§ãæã¤ ã³ã³ãã¸ããã¨ã¬ã¡ã³ããããã¾ãã ãã®ããã"
-"ã³ã°ã¯ãã³ã³ãã¸ããã¨ã¬ã¡ã³ãã¯ã©ã¹ãå¤å¯¾å¤é¢é£ãã¼ãã«ã® ä½åãªã«ã©ã ã¸ãã"
-"ãã³ã°ãã¾ãã æ¬¡ã®ä¾ã¯ <literal>Order</literal> ããã<literal>Item</"
-"literal> ã¸ã®å¤å¯¾å¤é¢é£ã§ãã <literal>purchaseDate</literal>ã"
-"<literal>price</literal>ã<literal>quantity</literal> ã¯é¢é£ã®å±æ§ã¨ãªãã¾"
-"ãã"
+"to-one></literal> 屿§ãæã¤ã³ã³ãã¸ããã¨ã¬ã¡ã³ããããã¾ãããã®ãããã³"
+"ã°ã¯ãã³ã³ãã¸ããã¨ã¬ã¡ã³ãã¯ã©ã¹ãå¤å¯¾å¤é¢é£ãã¼ãã«ã®ä½åãªã«ã©ã ã¸ããã"
+"ã³ã°ãã¾ããæ¬¡ã®ä¾ã¯ <literal>Order</literal> ããã<literal>Item</literal> "
+"ã¸ã®å¤å¯¾å¤é¢é£ã§ãã <literal>purchaseDate</literal>ã <literal>price</"
+"literal>ã <literal>quantity</literal> ã¯é¢é£ã®å±æ§ã¨ãªãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:148
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:150
-#, fuzzy, no-c-format
-msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase</literal> can be in the "
"set of an <literal>Order</literal>, but it cannot be referenced by the "
"<literal>Item</literal> at the same time."
msgstr ""
-"ãã¡ãããåæ¹åé¢é£ã®ããã²ã¼ã·ã§ã³ã®ããã«å対å´ããpurchaseã¸ã®åç
§ãä½ã"
-"ãã¨ã¯åºæ¥ã¾ããã ã³ã³ãã¼ãã³ãã¯å¤åã§ãããåç
§ãå
±æã§ããªããã¨ãè¦ãã¦"
-"ããã¦ãã ããã ä¸ã¤ã® <literal>Purchase</literal> ã¯ä¸ã¤ã® <literal>Order</"
-"literal> ã®setã«åå¨ã§ãã¾ããã åæã« <literal>Item</literal> ããåç
§ãã"
-"ãã¨ã¯åºæ¥ã¾ããã"
+"ãã¡ãããåæ¹åé¢é£ã®ããã²ã¼ã·ã§ã³ã®ããã«å対å´ãã purchase ã¸ã®åç
§ãä½"
+"ããã¨ã¯åºæ¥ã¾ãããã³ã³ãã¼ãã³ãã¯å¤åã§ãããåç
§ãå
±æã§ããªããã¨ãè¦ã"
+"ã¦ããã¦ãã ãããä¸ã¤ã® <literal>Purchase</literal> ã¯ä¸ã¤ã® "
+"<literal>Order</literal> ã® set ã«åå¨ã§ãã¾ãããåæã« <literal>Item</"
+"literal> ããåç
§ãããã¨ã¯åºæ¥ã¾ããã"
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "3é
é¢é£ï¼ãããã¯4é
ãªã©ï¼ãå¯è½ã§ãã"
-#. Tag: programlisting
-#: component_mapping.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:162
-#, fuzzy, no-c-format
-msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
msgstr ""
-"ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã¯ä»ã®ã¨ã³ãã£ãã£ã¸ã®é¢é£ã¨ãã¦ã åãã·ã³ã¿ãã¯ã¹ã"
+"ã³ã³ãã¸ããã¨ã¬ã¡ã³ãã¯ä»ã®ã¨ã³ãã£ãã£ã¸ã®é¢é£ã¨ãã¦ãåãã·ã³ã¿ãã¯ã¹ã"
"使ã£ã¦ããã¯ã¨ãªå
ã§ä½¿ç¨ã§ãã¾ãã"
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
-msgstr "Mapã®ã¤ã³ããã¯ã¹ã¨ãã¦ã®ã³ã³ãã¼ãã³ã"
+msgstr "Map ã®ã¤ã³ããã¯ã¹ã¨ãã¦ã®ã³ã³ãã¼ãã³ã"
#. Tag: para
-#: component_mapping.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
"component class as the key of a <literal>Map</literal>. Ensure that you "
@@ -412,72 +247,64 @@
"correctly on the component class."
msgstr ""
"<literal><composite-map-key></literal> è¦ç´ 㯠<literal>Map</literal> ã®"
-"ãã¼ã¨ãã¦ã³ã³ãã¼ãã³ãã¯ã©ã¹ã ãããã³ã°ãã¾ããã³ã³ãã¼ãã³ãã¯ã©ã¹ä¸ã§ "
+"ãã¼ã¨ãã¦ã³ã³ãã¼ãã³ãã¯ã©ã¹ããããã³ã°ãã¾ããã³ã³ãã¼ãã³ãã¯ã©ã¹ä¸ã§ "
"<literal>hashCode()</literal> 㨠<literal>equals()</literal> ãæ£ç¢ºã«ãªã¼ãã¼"
"ã©ã¤ããã¦ãã ããã"
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
msgstr "è¤åèå¥åã¨ãã¦ã®ã³ã³ãã¼ãã³ã"
#. Tag: para
-#: component_mapping.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
-"ã³ã³ãã¼ãã³ããã¨ã³ãã£ãã£ã¯ã©ã¹ã®èå¥åã¨ãã¦ä½¿ããã¨ãã§ãã¾ãã ã³ã³ãã¼"
+"ã³ã³ãã¼ãã³ããã¨ã³ãã£ãã£ã¯ã©ã¹ã®èå¥åã¨ãã¦ä½¿ããã¨ãã§ãã¾ããã³ã³ãã¼"
"ãã³ãã¯ã©ã¹ã¯ä»¥ä¸ã®æ¡ä»¶ãæºããå¿
è¦ãããã¾ãã"
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
msgstr "<literal>java.io.Serializable</literal> ãå®è£
ããªããã°ãªãã¾ããã"
#. Tag: para
-#: component_mapping.xml:195
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> consistently with the database's notion of composite key equality."
msgstr ""
-"ãã¼ã¿ãã¼ã¹ä¸ã®è¤åãã¼ã®ç価æ§ã¨çç¾ã®ãªãããã«ã<literal>equals()</"
+"ãã¼ã¿ãã¼ã¹ä¸ã®è¤åãã¼ã®ç価æ§ã¨çç¾ã®ãªãããã«ã <literal>equals()</"
"literal> 㨠<literal>hashCode()</literal> ãåå®è£
ããªããã°ãªãã¾ããã"
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注è¨"
#. Tag: para
-#: component_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
-"注æ: Hibernate3ã«ããã¦ã2çªç®ã®æ¡ä»¶ã¯çµ¶å¯¾çãªæ¡ä»¶ã§ã¯ããã¾ããã ãããã¨"
-"ã«ããæ¡ä»¶ãæºããã¦ãã ããã"
+"Hibernate3 ã«ããã¦ã2çªç®ã®æ¡ä»¶ã¯çµ¶å¯¾çãªæ¡ä»¶ã§ã¯ããã¾ãããããã§ããã¯ã"
+"æ¡ä»¶ãæºããã¦ãã ããã"
#. Tag: para
-#: component_mapping.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
"è¤åãã¼ãçæããããã« <literal>IdentifierGenerator</literal> ã使ç¨ããã"
-"ã¨ã¯ã§ãã¾ããã 代ããã«ã¢ããªã±ã¼ã·ã§ã³ãèå¥åãå²ãå½ã¦ãªãã¦ã¯ãªãã¾ã"
+"ã¨ã¯ã§ãã¾ããã代ããã«ã¢ããªã±ã¼ã·ã§ã³ãèå¥åãå²ãå½ã¦ãªãã¦ã¯ãªãã¾ã"
"ãã"
#. Tag: para
-#: component_mapping.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
"<literal><key-property></literal> elements, in place of the usual "
@@ -487,181 +314,79 @@
msgstr ""
"é常㮠<literal><id></literal> 宣è¨ã®ä»£ããã« <literal><composite-"
"id></literal> ã¿ã°ã ï¼ãã¹ãããã <literal><key-property></"
-"literal> 屿§ã¨å
±ã«ï¼ä½¿ãã¾ãã 以ä¸ã®ä¾ã§ã¯ã<literal>OrderLine</literal> ã¯"
-"ã©ã¹ã¯ <literal>Order</literal> ã®ï¼è¤åï¼ä¸»ãã¼ã« ä¾åãã主ãã¼ãæã£ã¦ãã¾"
-"ãã"
+"literal> 屿§ã¨å
±ã«ï¼ 使ãã¾ãã以ä¸ã®ä¾ã§ã¯ã <literal>OrderLine</literal> "
+"ã¯ã©ã¹ã¯ <literal>Order</literal> ã®ï¼è¤åï¼ä¸»ãã¼ã«ä¾åãã主ãã¼ãæã£ã¦ã"
+"ã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:224
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-"\n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-"\n"
-" <property name=\"name\"/>\n"
-"\n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:226
-#, fuzzy, no-c-format
-msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-"ãã®ã¨ãã<literal>OrderLine</literal> ãã¼ãã«ã¸é¢é£ããå¤é¨ãã¼ãã¾ãè¤åã§"
-"ãã ä»ã®ã¯ã©ã¹ã®ãããã³ã°ã§ããã宣è¨ããªããã°ãªãã¾ããã "
+"ãã®ã¨ãã <literal>OrderLine</literal> ãã¼ãã«ã¸é¢é£ããå¤é¨ãã¼ãã¾ãè¤å"
+"ã§ããä»ã®ã¯ã©ã¹ã®ãããã³ã°ã§ããã宣è¨ããªããã°ãªãã¾ããã "
"<literal>OrderLine</literal> ã¸ã®é¢é£ã¯æ¬¡ã®ããã«ãããã³ã°ããã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
"<literal>column</literal> attribute everywhere. Using the <literal>column</"
"literal> element just gives more declaration options, which are mostly "
"useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
+"ï¼<literal><column></literal> ã¿ã°ã¯ã©ãã§ãã£ã¦ã <literal>column</"
+"literal> 屿§ã®ä»£ããã«ãªãã¾ããï¼"
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
"literal> also uses the composite foreign key:"
msgstr ""
-"<literal>OrderLine</literal> ã¸ã® <literal>many-to-many</literal> é¢é£ã è¤å"
+"<literal>OrderLine</literal> ã¸ã® <literal>many-to-many</literal> é¢é£ãè¤å"
"å¤é¨ãã¼ã使ãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
"would use:"
msgstr ""
-"<literal>Order</literal> ã«ãã <literal>OrderLine</literal> ã®ã³ã¬ã¯ã·ã§ã³"
-"㯠次ã®ãã®ã使ç¨ãã¾ãã"
+"<literal>Order</literal> ã«ãã <literal>OrderLine</literal> ã®ã³ã¬ã¯ã·ã§ã³ã¯"
+"次ã®ãã®ã使ç¨ãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:256
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:258
-#, fuzzy, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
msgstr ""
"ï¼<literal><one-to-many></literal> 屿§ã¯ãä¾ã«ãã£ã¦ã«ã©ã ã宣è¨ãã¾ã"
"ãï¼"
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
-"<literal>OrderLine</literal> èªèº«ãã³ã¬ã¯ã·ã§ã³ãæã£ã¦ããå ´åã åæã«è¤å"
-"å¤é¨ãã¼ãæã£ã¦ãã¾ãã"
+"<literal>OrderLine</literal> èªèº«ãã³ã¬ã¯ã·ã§ã³ãæã£ã¦ããå ´åãåæã«è¤åå¤"
+"é¨ãã¼ãæã£ã¦ãã¾ãã"
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
msgstr "åçã³ã³ãã¼ãã³ã"
#. Tag: para
-#: component_mapping.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
msgstr "<literal>Map</literal> åã®ããããã£ã®ãããã³ã°ãå¯è½ã§ãã"
-#. Tag: programlisting
-#: component_mapping.xml:278
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:280
-#, fuzzy, no-c-format
-msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
"identical to <literal><component></literal>. The advantage of this "
"kind of mapping is the ability to determine the actual properties of the "
@@ -672,14 +397,392 @@
msgstr ""
"<literal><dynamic-component></literal> ãããã³ã°ã®ã»ãã³ãã£ã¯ã¹ã¯ "
"<literal><component></literal> ã¨åä¸ã®ãã®ã§ãããã®ç¨®ã®ãããã³ã°ã®å©"
-"ç¹ã¯ããããã³ã°ããã¥ã¡ã³ãã®ç·¨éã«ãããé
ç½®æã«beanã®å±æ§ã 決å®ã§ããç¹ã§"
-"ããã¾ããDOMãã¼ãµãå©ç¨ãã¦ããããã³ã°ããã¥ã¡ã³ãã®ã©ã³ã¿ã¤ã æä½ãå¯è½ã§"
-"ãã ããã«ã<literal>Configuration</literal> ãªãã¸ã§ã¯ãçµç±ã§Hibernateã®ã³"
-"ã³ãã£ã°ã¬ã¼ã·ã§ã³æã®ã¡ã¿ã¢ãã«ã« ã¢ã¯ã»ã¹ï¼ã¾ãã¯å¤æ´ï¼ãå¯è½ã§ãã"
+"ç¹ã¯ããããã³ã°ããã¥ã¡ã³ãã®ç·¨éã«ãããé
ç½®æã« Bean ã®å±æ§ã決å®ã§ããç¹"
+"ã§ããã¾ãã DOM ãã¼ãµãå©ç¨ãã¦ããããã³ã°ããã¥ã¡ã³ãã®ã©ã³ã¿ã¤ã æä½ãå¯"
+"è½ã§ããããã«ã <literal>Configuration</literal> ãªãã¸ã§ã¯ãçµç±ã§ "
+"Hibernate ã®ã³ã³ãã£ã°ã¬ã¼ã·ã§ã³æã®ã¡ã¿ã¢ãã«ã«ã¢ã¯ã»ã¹ï¼ã¾ãã¯å¤æ´ï¼ãå¯è½"
+"ã§ãã"
+#, fuzzy
#~ msgid ""
-#~ "(Note that the <literal><column></literal> tag is an alternative to "
-#~ "the <literal>column</literal> attribute everywhere.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ï¼<literal><column></literal> ã¿ã°ã¯ã©ãã§ãã£ã¦ã <literal>column</"
-#~ "literal> 屿§ã® 代ããã«ãªãã¾ããï¼"
+#~ "public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class "
+#~ "attribute optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to "
+#~ "the Person -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute "
+#~ "required -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
+#~ "\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- "
+#~ "class attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
+#~ "\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/"
+#~ ">\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key "
+#~ "type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
+#~ msgstr ""
+#~ "<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-21 17:12+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
msgstr "è¨å®"
#. Tag: para
-#: configuration.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
@@ -27,22 +28,20 @@
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
-"Hibernateã¯ãã¾ãã¾ãªç°å¢ã§åä½ããããã«ãã¶ã¤ã³ããã¦ãããããé常ã«å¤ãã®"
-"è¨å®è¦ç´ ãããã¾ãã 幸ããªãã¨ã«ãHibernateã¯ãå
¬éããã¦ããããã±ã¼ã¸ã® "
+"Hibernate ã¯æ§ã
ãªç°å¢ã§åä½ããããã«ãã¶ã¤ã³ããã¦ãããããé常ã«å¤ãã®è¨"
+"å®è¦ç´ ãããã¾ãã幸ããªãã¨ã«ã Hibernate ã¯ãå
¬éããã¦ããããã±ã¼ã¸ã® "
"<literal>etc/</literal> ãã©ã«ãã® <literal>hibernate.properties</literal> "
-"ã«ãã»ã¨ãã©ã®è¨å®è¦ç´ ã®é©åãªããã©ã«ãå¤ãè¨è¿°ããã¦ãã¾ãã ãã® "
+"ã«ãã»ã¨ãã©ã®è¨å®è¦ç´ ã®é©åãªããã©ã«ãå¤ãè¨è¿°ããã¦ãã¾ãããã® "
"<literal>hibernate.properties</literal> ãã¯ã©ã¹ãã¹ã«è¨å®ããè¨å®è¦ç´ ãã«ã¹"
"ã¿ãã¤ãºããã ãã§ãã"
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
msgstr "ããã°ã©ã ä¸ã®è¨å®"
#. Tag: para
-#: configuration.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
"represents an entire set of mappings of an application's Java types to an "
@@ -50,104 +49,67 @@
"used to build an immutable <interfacename>org.hibernate.SessionFactory</"
"interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
-"<literal>org.hibernate.cfg.Configuration</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã Javaã®"
-"åã¨SQLãã¼ã¿ãã¼ã¹ã®ãããã³ã°æ
å ±ããã¹ã¦æã£ã¦ãã¾ãã The "
-"<literal>Configuration</literal> ã¯ãï¼ä¸å¤ã®ï¼ <literal>SessionFactory</"
-"literal> ãçæããã¨ãã«ä½¿ç¨ãã¾ãã è¤æ°ã®XMLãããã³ã°ãã¡ã¤ã«ã夿ãã"
-"ãããã³ã°æ
å ±ã«ãã¾ãã"
+"<classname>org.hibernate.cfg.Configuration</classname> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã "
+"Java ã®å㨠SQL ãã¼ã¿ãã¼ã¹ã®ãããã³ã°æ
å ±ããã¹ã¦æã£ã¦ãã¾ãã "
+"<literal>Configuration</literal> ã¯ãï¼ä¸å¤ã®ï¼ "
+"<interfacename>SessionFactory</interfacename> ãçæããã¨ãã«ä½¿ç¨ãã¾ããè¤"
+"æ°ã® XML ãããã³ã°ãã¡ã¤ã«ã夿ãããããã³ã°æ
å ±ã«ãã¾ãã"
#. Tag: para
-#: configuration.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
"instance by instantiating it directly and specifying XML mapping documents. "
"If the mapping files are in the classpath, use <literal>addResource()</"
"literal>. For example:"
msgstr ""
-"é常ã<literal>Configuration</literal> ã¤ã³ã¹ã¿ã³ã¹ã¯ãç¹å®ã®XMLãããã³ã°"
-"ãã¡ã¤ã« ã«ãã£ã¦ç´æ¥åæåããã¾ããããããããã³ã°ãã¡ã¤ã«ãã¯ã©ã¹ãã¹ã«è¨"
-"å®ããã¦ããå ´åã æ¬¡ã®ã¡ã½ããã使ã£ã¦ãã ããã <literal>addResource()</"
-"literal> :"
+"é常ã <classname>org.hibernate.cfg.Configuration</classname> ã¤ã³ã¹ã¿ã³ã¹"
+"ã¯ãç¹å®ã® XML ãããã³ã°ãã¡ã¤ã«ã«ãã£ã¦ç´æ¥åæåããã¾ããããããããã³ã°"
+"ãã¡ã¤ã«ãã¯ã©ã¹ãã¹ã«è¨å®ããã¦ããå ´åãæ¬¡ã®ã¡ã½ããã使ã£ã¦ãã ããã "
+"<literal>addResource()</literal> :"
-#. Tag: programlisting
-#: configuration.xml:55
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:57
-#, fuzzy, no-c-format
-msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
-"ä»£æ¿æ¡(ãã¡ãã®ã»ããè¯ãã¨ããããã¾ã)ã¨ãã¦ãããã³ã°ã¯ã©ã¹ãæå®ããæ¹æ³"
-"ãããã¾ããHibernateã«ããããã³ã°ãã¡ã¤ã«ã è¦ã¤ãããã¦ãã ããï¼"
+"ä»£æ¿æ¡ (ãã¡ãã®ã»ããè¯ãã¨ããããã¾ã) ã¨ãã¦ãããã³ã°ã¯ã©ã¹ãæå®ããæ¹"
+"æ³ãããã¾ãã Hibernate ã«ããããã³ã°ãã¡ã¤ã«ã è¦ã¤ãããã¦ãã ããï¼"
-#. Tag: programlisting
-#: configuration.xml:62
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:64
-#, fuzzy, no-c-format
-msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
-"Hibernateã¯ãã¯ã©ã¹ãã¹ã«ãã以ä¸ã®ãããªååã®ãããã³ã°ãã¡ã¤ã«ãè¦ã¤ãã¾"
-"ãã <literal>/org/hibernate/auction/Item.hbm.xml</literal> ã <literal>/org/"
-"hibernate/auction/Bid.hbm.xml</literal> ã ãã®æ¹æ³ã ã¨ããã¼ãã³ã¼ãã£ã³ã°ã"
-"ãããã¡ã¤ã«åãæé¤ã§ãã¾ãã"
+"Hibernate ã¯ãã¯ã©ã¹ãã¹ã«ãã以ä¸ã®ãããªååã®ãããã³ã°ãã¡ã¤ã«ãè¦ã¤ãã¾"
+"ãã <filename>/org/hibernate/auction/Item.hbm.xml</filename> ã <filename>/"
+"org/hibernate/auction/Bid.hbm.xml</filename> ããã®æ¹æ³ã ã¨ããã¼ãã³ã¼ãã£ã³"
+"ã°ããããã¡ã¤ã«åãæé¤ã§ãã¾ãã"
#. Tag: para
-#: configuration.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
"specify configuration properties. For example:"
msgstr ""
-"<literal>Configuration</literal> ã¯ãè¨å®ããããã£ãæå®ãããã¨ãã§ãã¾ãï¼"
+"<classname>org.hibernate.cfg.Configuration</classname> ã¯ãè¨å®ããããã£ãæ"
+"å®ãããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: configuration.xml:75
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:77
-#, fuzzy, no-c-format
-msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
msgstr ""
-"Hibernateã«è¨å®ããããã£ãéãæ¹æ³ã¯1ã¤ã§ã¯ããã¾ããã ãã¾ãã¾ãªãªãã·ã§ã³"
+"Hibernate ã«è¨å®ããããã£ãæ¸¡ãæ¹æ³ã¯1ã¤ã§ã¯ããã¾ããããã¾ãã¾ãªãªãã·ã§ã³"
"ãç¨æãã¦ãã¾ãï¼"
#. Tag: para
-#: configuration.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
"<literal>Configuration.setProperties()</literal>."
@@ -156,17 +118,15 @@
"<literal>Configuration.setProperties()</literal> ã«æ¸¡ãã¾ãã"
#. Tag: para
-#: configuration.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
"directory of the classpath."
msgstr ""
-"<literal>hibernate.properties</literal> ã ã¯ã©ã¹ãã¹ã®ã«ã¼ããã£ã¬ã¯ããªã«ç½®"
+"<literal>hibernate.properties</literal> ãã¯ã©ã¹ãã¹ã®ã«ã¼ããã£ã¬ã¯ããªã«ç½®"
"ãã¾ãã"
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
@@ -176,43 +136,40 @@
"literal> ã使ãããã«è¨å®ãã¾ãã"
#. Tag: para
-#: configuration.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
-"<literal><property></literal> è¦ç´ ã <literal>hibernate.cfg.xml</"
-"literal> ï¼å¾è¿°ï¼ã«è¨å®ãã¾ãã"
+"<literal><property></literal> è¦ç´ ã <filename>hibernate.cfg.xml</"
+"filename> ï¼å¾è¿°ï¼ã«è¨å®ãã¾ãã"
#. Tag: para
-#: configuration.xml:107
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
"is the easiest approach."
msgstr ""
+"<literal>hibernate.properties</literal> ãã¯ã©ã¹ãã¹ã®ã«ã¼ããã£ã¬ã¯ããªã«ç½®"
+"ãã¾ãã"
#. Tag: para
-#: configuration.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory</"
"literal> is created."
msgstr ""
-"<literal>Configuration</literal> ã¯ãèµ·åæã«ã ããããªãã¸ã§ã¯ãã§ããã ä¸"
-"度 <literal>SessionFactory</literal> ãçæããå¾ã¯ãç ´æ£ããããã¨ãæå³ãã¦"
-"ãã¾ãã"
+"<classname>org.hibernate.cfg.Configuration</classname> ã¯ãèµ·åæã«ã ããããª"
+"ãã¸ã§ã¯ãã§ãããä¸åº¦ <literal>SessionFactory</literal> ãçæããå¾ã¯ãç ´æ£"
+"ããããã¨ãæå³ãã¦ãã¾ãã"
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
-msgstr "SessionFactoryãåå¾ãã"
+msgstr "SessionFactory ãåå¾ãã"
#. Tag: para
-#: configuration.xml:121
#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
@@ -220,67 +177,51 @@
"<interfacename>org.hibernate.Session</interfacename> instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
-"<literal>Configuration</literal> ããã¹ã¦ã®ãããã³ã°æ
å ±ãè§£æãããã ã¢ã"
-"ãªã±ã¼ã·ã§ã³ã¯ã <literal>Session</literal> ãã¡ã¯ããªã¤ã³ã¹ã¿ã³ã¹ãåå¾ãã¾"
-"ãã ãã®SessionFactoryã¯ãHibernateã使ç¨ãããã¹ã¦ã®ã¹ã¬ããã§å
±æãããã¹"
-"ãã§ãã"
+"<classname>org.hibernate.cfg.Configuration</classname> ããã¹ã¦ã®ãããã³ã°æ
"
+"å ±ãè§£æããããã¢ããªã±ã¼ã·ã§ã³ã¯ã <classname>org.hibernate.Session</"
+"classname> ã¤ã³ã¹ã¿ã³ã¹ã®ããã«ãã¡ã¯ããªãåå¾ããªããã°ãªãã¾ããããã® "
+"SessionFactory ã¯ã Hibernate ã使ç¨ãããã¹ã¦ã®ã¹ã¬ããã§å
±æãããã¹ãã§ã:"
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
"<interfacename>org.hibernate.SessionFactory</interfacename>. This is useful "
"if you are using more than one database."
msgstr ""
-"Hibernateã¯ã <literal>SessionFactory</literal> ãè¤æ°çæãããã¨ãã§ãã¾"
-"ãã ããã¯ãè¤æ°ã®ãã¼ã¿ãã¼ã¹ã使ç¨ããå ´åã«ä¾¿å©ã§ãã"
+"Hibernate ã¯ãã¢ããªã±ã¼ã·ã§ã³ã <classname>org.hibernate.SessionFactory</"
+"classname> ãè¤æ°çæãããã¨ãå¯è½ã«ãã¾ããããã¯ãè¤æ°ã®ãã¼ã¿ãã¼ã¹ã使ç¨"
+"ããå ´åã«ä¾¿å©ã§ãã"
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
-msgstr "JDBCã³ãã¯ã·ã§ã³"
+msgstr "JDBC ã³ãã¯ã·ã§ã³"
#. Tag: para
-#: configuration.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
"interfacename> create and pool JDBC connections for you. If you take this "
"approach, opening a <interfacename>org.hibernate.Session</interfacename> is "
"as simple as:"
msgstr ""
-"é常ãéçºè
㯠<literal>SessionFactory</literal> ãçæããSessionFactoryã§"
-"JDBCã³ãã¯ã·ã§ã³ããã¼ãªã³ã°ãããã¨èãã¾ãã ãã®ã¢ããã¼ããæ¡ç¨ããå ´åã"
-"åç´ã« <literal>Session</literal> ããªã¼ãã³ãã¦ãã ããï¼"
+"é常ãéçºè
㯠<interfacename>org.hibernate.SessionFactory</interfacename> ã"
+"çæãã SessionFactory ã§ JDBC ã³ãã¯ã·ã§ã³ããã¼ãªã³ã°ãããã¨èãã¾ããã"
+"ã®ã¢ããã¼ããæ¡ç¨ããå ´åãåç´ã« <interfacename>org.hibernate.Session</"
+"interfacename> ããªã¼ãã³ãã¦ãã ããï¼"
-#. Tag: programlisting
-#: configuration.xml:146
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:148
-#, fuzzy, no-c-format
-msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
-"ããã ãã§ããã¼ãªã³ã°ããJDBCã³ãã¯ã·ã§ã³ã使ã£ã¦ç®çã®ãã¼ã¿ãã¼ã¹ ã«ã¢ã¯ã»"
-"ã¹ãããã¨ãã§ãã¾ãã"
+"ããã ãã§ããã¼ãªã³ã°ãã JDBC ã³ãã¯ã·ã§ã³ã使ã£ã¦ç®çã®ãã¼ã¿ãã¼ã¹ã«ã¢ã¯"
+"ã»ã¹ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: configuration.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
@@ -288,106 +229,87 @@
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
-"ãã®ããã«ã¯ãJDBCã³ãã¯ã·ã§ã³ã®ããããã£ãHibernateã«è¨å®ããå¿
è¦ãããã¾"
-"ãã ãã¹ã¦ã®Hibernateããããã£åã¨ã»ãã³ãã£ã¯ã¹ã¯ <literal>org.hibernate."
-"cfg.Environment</literal> ã¯ã©ã¹ã«å®ç¾©ããã¦ãã¾ãã ãã®è¨å®ã¯JDBCã³ãã¯ã·ã§"
-"ã³è¨å®ã®ä¸ã§ä¸çªéè¦ãªãã®ã§ãã"
+"ãã®ããã«ã¯ã JDBC ã³ãã¯ã·ã§ã³ã®ããããã£ã Hibernate ã«è¨å®ããå¿
è¦ããã"
+"ã¾ãããã¹ã¦ã® Hibernate ããããã£åã¨ã»ãã³ãã£ã¯ã¹ã¯ <classname>org."
+"hibernate.cfg.Environment</classname> ã¯ã©ã¹ã«å®ç¾©ããã¦ãã¾ãããã®è¨å®ã¯ "
+"JDBC ã³ãã¯ã·ã§ã³è¨å®ã®ä¸ã§ä¸çªéè¦ãªãã®ã§ãã"
#. Tag: para
-#: configuration.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
"DriverManager</classname> if you set the following properties:"
msgstr ""
-"ããã以ä¸ã®ããããã£ãè¨å®ããã¨ãHibernateã¯ã³ãã¯ã·ã§ã³ãåå¾ããï¼ãã¼ã«"
-"ãï¼ããã« <literal>java.sql.DriverManager</literal> ã使ãã¾ãã"
+"ããã以ä¸ã®ããããã£ãè¨å®ããã¨ã Hibernate ã¯ã³ãã¯ã·ã§ã³ãåå¾ããããã«"
+"ï¼ãã¼ã«ãï¼ <classname>java.sql.DriverManager</classname> ã使ãã¾ã:"
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
-msgstr "Hibernate JDBCããããã£"
+msgstr "Hibernate JDBC ããããã£"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:548 configuration.xml:743 configuration.xml:850
-#: configuration.xml:938
#, no-c-format
msgid "Property name"
msgstr "ããããã£å"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:549 configuration.xml:744 configuration.xml:851
-#: configuration.xml:939
#, no-c-format
msgid "Purpose"
msgstr "æå³"
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
+msgstr "<property>hibernate.connection.driver_class</property>"
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
-msgstr "JDBCãã©ã¤ãã¯ã©ã¹"
+msgid "<emphasis>JDBC driver class</emphasis>"
+msgstr "JDBC ã®ãã©ã¤ãã¼ã¯ã©ã¹"
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
+msgstr "<property>hibernate.connection.url</property>"
-#. Tag: emphasis
-#: configuration.xml:189
-#, no-c-format
-msgid "JDBC URL"
-msgstr "jdbc URL"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr "JDBC ã®ãã©ã¤ãã¼ã¯ã©ã¹"
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
+msgstr "<property>hibernate.connection.username</property>"
-#. Tag: emphasis
-#: configuration.xml:197
-#, no-c-format
-msgid "database user"
-msgstr "database user"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>database user</emphasis>"
+msgstr "<emphasis>ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶</emphasis> (ãªãã·ã§ã³)"
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
+msgstr "<property>hibernate.connection.password</property>"
-#. Tag: emphasis
-#: configuration.xml:205
-#, no-c-format
-msgid "database user password"
-msgstr "database user password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>database user password</emphasis>"
+msgstr "<emphasis>ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶ã®ãã¹ã¯ã¼ã</emphasis> (ãªãã·ã§ã³)"
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
-msgstr "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
+msgstr "<property>hibernate.connection.pool_size</property>"
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
-msgstr "ãã¼ã«ããã³ãã¯ã·ã§ã³ã®æå¤§æ°"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
+msgstr "<emphasis>ãã¼ã«ããã³ãã¯ã·ã§ã³ã®æå¤§æ°</emphasis>"
#. Tag: para
-#: configuration.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
@@ -397,18 +319,17 @@
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
-"Hibernateã®ã³ãã¯ã·ã§ã³ãã¼ã«ã¢ã«ã´ãªãºã ã¯é常ã«åæ©çãªãã®ã§ãã ããã¯ã"
-"ãã«å§ããããããã«ã¨ç¨æããããã®ã§ã<emphasis>製åã¨ãã¦ä½¿ç¨ãããã¨ãæ"
-"å³ãã¦ãã¾ãã</emphasis> ã ã¾ããããã©ã¼ãã³ã¹ã®ãã¹ãã®ããã®ãã®ã§ããã"
-"ã¾ããã æé«ã®ããã©ã¼ãã³ã¹ã¨å®å®æ§ãæã£ããã¼ã«ãå®ç¾ããããã°ããµã¼ã"
+"Hibernate ã®ã³ãã¯ã·ã§ã³ãã¼ã«ã¢ã«ã´ãªãºã ã¯é常ã«åæ©çãªãã®ã§ããããã¯ã"
+"ãã«å§ããããããã«ã¨ç¨æããããã®ã§ã <emphasis>製åã¨ãã¦ä½¿ç¨ãããã¨ãæ"
+"å³ãã¦ãã¾ãã</emphasis> ãã¾ããããã©ã¼ãã³ã¹ã®ãã¹ãã®ããã®ãã®ã§ããã"
+"ã¾ãããæé«ã®ããã©ã¼ãã³ã¹ã¨å®å®æ§ãæã£ããã¼ã«ãå®ç¾ããããã°ããµã¼ã"
"ãã¼ãã£ã®ãã¼ã«ããå§ããã¾ãã <literal>hibernate.connection.pool_size</"
-"literal> ããããã£ã« é©åãªã³ãã¯ã·ã§ã³ãã¼ã«ãµã¤ãºãè¨è¿°ãã¦ãã ããã ãã®"
-"ã¾ã¾ã ã¨Hibernateã®ã³ãã¯ã·ã§ã³ãã¼ã«ã使ãã¾ãã ä¾ãã°æ¬¡ã®ããã«C3P0ã使ã"
-"ã¾ãã"
+"literal> ããããã£ã¨é©åãªã³ãã¯ã·ã§ã³ãã¼ã«ã®è¨å®ãç½®ãæãã¦ãã ããããã"
+"ã«ãã Hibernate ã®ã¤ã³ã¿ã¼ãã«ãã¼ã«ãç¡å¹ã«ãã¾ããä¾ãã°æ¬¡ã®ããã« C3P0 ã"
+"使ãã¾ãã"
#. Tag: para
-#: configuration.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib</filename> directory. Hibernate will use its "
@@ -418,156 +339,117 @@
"<filename>hibernate.properties</filename> and the Hibernate web site for "
"more information."
msgstr ""
-"C3P0ã¯ãªã¼ãã³ã½ã¼ã¹JDBCã³ãã¯ã·ã§ã³ãã¼ã«ã§ãHibernateã® <literal>lib</"
-"literal> ãã£ã¬ã¯ããªã«ããã¾ããããã<literal>hibernate.c3p0.*</literal> ã"
-"ãããã£ã ã»ããããã°ãHibernateã¯ã <literal>C3P0ConnectionProvider</"
-"literal> ã使ãã¾ãã ããProxoolã使ãããå ´åã¯ã <literal>hibernate."
-"properties</literal> ããã±ã¼ã¸ã åç
§ããããHibernateã®Webãµã¤ãã§ããå¤ã"
-"ã®æ
å ±ãåå¾ãã¦ãã ããã"
+"C3P0 ã¯ãªã¼ãã³ã½ã¼ã¹ JDBC ã³ãã¯ã·ã§ã³ãã¼ã«ã§ã Hibernate ã® <literal>lib</"
+"literal> ãã£ã¬ã¯ããªã«ããã¾ããããã <literal>hibernate.c3p0.*</literal> "
+"ããããã£ãã»ããããã°ã Hibernate ã¯ã <literal>C3P0ConnectionProvider</"
+"literal> ã使ãã¾ãããã Proxool ã使ãããå ´åã¯ã <literal>hibernate."
+"properties</literal> ããã±ã¼ã¸ãåç
§ãããã Hibernate ã® Web ãµã¤ãã§ããå¤"
+"ãã®æ
å ±ãåå¾ãã¦ãã ããã"
#. Tag: para
-#: configuration.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
"for c3p0:"
msgstr ""
-"C3P0ç¨ã® <literal>hibernate.properties</literal> ãã¡ã¤ã«ãä¾ã¨ãã¦ç¤ºãã¾ãï¼"
+"C3P0 ç¨ã® <literal>hibernate.properties</literal> ãã¡ã¤ã«ãä¾ã¨ãã¦ç¤ºãã¾"
+"ãï¼"
-#. Tag: programlisting
-#: configuration.xml:242
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:244
-#, fuzzy, no-c-format
-msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãä¸ã§ä½¿ãå ´åã¯ãHibernateãè¨å®ãã ã¢ããªã±ã¼ã·ã§ã³"
-"ãµã¼ãããã³ãã¯ã·ã§ã³ãåå¾ããããã«ãã¦ãã ããã <literal>Datasource</"
-"literal> ãJNDIã«ç»é²ãã¾ãããã㦠ããããã£ã以ä¸ã®ããã«è¨å®ãã¦ãã ã"
-"ãã"
+"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ä¸ã§ä½¿ãå ´åã¯ã Hibernate ãè¨å®ããã¢ããªã±ã¼ã·ã§ã³"
+"ãµã¼ãã¼ããã³ãã¯ã·ã§ã³ãåå¾ããããã«ãã¦ãã ããã <interfacename>javax."
+"sql.Datasource</interfacename> ã JNDI ã«ç»é²ãã¾ããããã¦ããããã£ã以ä¸ã®"
+"ããã«è¨å®ãã¦ãã ãã:"
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
msgstr "Hibernate ãã¼ã¿ã½ã¼ã¹ããããã£"
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
-msgstr "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
+msgstr "<property>hibernate.connection.datasource</property>"
-#. Tag: emphasis
-#: configuration.xml:267
-#, no-c-format
-msgid "datasource JNDI name"
-msgstr "ãã¼ã¿ã½ã¼ã¹ã®JNDIå"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>datasource JNDI name</emphasis>"
+msgstr "<emphasis>ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶</emphasis> (ãªãã·ã§ã³)"
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
-msgstr "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
+msgstr "<property>hibernate.jndi.url</property>"
#. Tag: entry
-#: configuration.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
-msgstr "JNDIãããã¤ãã®URL"
+msgstr "<emphasis>JNDI ãããã¤ãã® URL</emphasis> (ãªãã·ã§ã³)"
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
-msgstr "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
+msgstr "<property>hibernate.jndi.class</property>"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
"emphasis> (optional)"
msgstr ""
+"<emphasis>JNDI ã®ã¯ã©ã¹ <literal>InitialContextFactory</literal></emphasis> "
+"(ãªãã·ã§ã³)"
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶</emphasis> (ãªãã·ã§ã³)"
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶ã®ãã¹ã¯ã¼ã</emphasis> (ãªãã·ã§ã³)"
#. Tag: para
-#: configuration.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
"application server provided JNDI datasource:"
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãããæä¾ãããJNDIãã¼ã¿ã½ã¼ã¹ã使ã "
-"<literal>hibernate.properties</literal> ãã¡ã¤ã«ã®ä¾ã示ãã¾ãï¼"
+"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ããæä¾ããã JNDI ãã¼ã¿ã½ã¼ã¹ã使ã "
+"<filename>hibernate.properties</filename> ãã¡ã¤ã«ã®ä¾ã示ãã¾ãï¼"
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
"participate in the container-managed transactions of the application server."
msgstr ""
-"JNDIãã¼ã¿ã½ã¼ã¹ããåå¾ããJDBCã³ãã¯ã·ã§ã³ã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã® ã³ã³"
-"ãã管çãã©ã³ã¶ã¯ã·ã§ã³ã«èªåçã«åå ãã¾ãã"
+"JNDI ãã¼ã¿ã½ã¼ã¹ããåå¾ãã JDBC ã³ãã¯ã·ã§ã³ã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®"
+"ã³ã³ãã管çãã©ã³ã¶ã¯ã·ã§ã³ã«èªåçã«åå ãã¾ãã"
#. Tag: para
-#: configuration.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection</literal>\" to the connection property name. "
"For example, you can specify a <property>charSet</property> connection "
"property using <property>hibernate.connection.charSet</property>."
msgstr ""
-"ä»»æã®ã³ãã¯ã·ã§ã³ããããã£ã¯ãä¸ããããâ <literal>hibernate.connnection</"
-"literal> â ããããã£åã«ãã£ã¦ä¸ãããã¾ããä¾ãã°ã <literal>charSet</"
-"literal> ãè¨å®ãããå ´åã¯ã <literal>hibernate.connection.charSet</"
-"literal> ã使ãã¾ãã"
+"ä»»æã®ã³ãã¯ã·ã§ã³ããããã£ã¯ã追å ããã \"<literal>hibernate.connnection</"
+"literal>\" ããããã£åã«ãã£ã¦ä¸ãããã¾ããä¾ãã°ã <property>charSet</"
+"property> ãè¨å®ãããå ´åã¯ã <property>hibernate.connection.charSet</"
+"property> ã使ãã¾ãã"
#. Tag: para
-#: configuration.xml:324
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
@@ -575,29 +457,26 @@
"implementation via the <property>hibernate.connection.provider_class</"
"property> property."
msgstr ""
-"JDBCã³ãã¯ã·ã§ã³ãåå¾ããæ¦ç¥ãæã¤ç¬èªã®ãã©ã°ã¤ã³ãå®ç¾©ããå ´åã¯ã "
-"<literal>org.hibernate.connection.ConnectionProvider</literal> ã¤ã³ã¿ã¼ãã§ã¤"
-"ã¹ã å®è£
ãã¦ãã ãããããã¦ãå®è£
ã¯ã©ã¹ã <literal>hibernate.connection."
-"provider_class</literal> ã«è¨å®ãã¦ãã ããã"
+"JDBC ã³ãã¯ã·ã§ã³ãåå¾ããæ¦ç¥ãæã¤ç¬èªã®ãã©ã°ã¤ã³ãå®ç¾©ããå ´åã¯ã "
+"<interfacename>org.hibernate.connection.ConnectionProvider</interfacename> ã¤"
+"ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ãã¦ãã ãããããã¦ãå®è£
ã¯ã©ã¹ã <property>hibernate."
+"connection.provider_class</property> ã«è¨å®ãã¦ãã ããã"
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr "ãªãã·ã§ã³è¨å®ããããã£"
#. Tag: para
-#: configuration.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
-"ãããã®ããããã£ã¯Hibernateã®æåãå¶å¾¡ãããã®ã§ãã ãããã®ããããã£ã¯"
-"ãã¹ã¦å¦¥å½ãªããã©ã«ãå¤ããããä»»æã§è¨å®ãã¾ãã"
+"ãããã®ããããã£ã¯ã©ã³ã¿ã¤ã ã« Hibernate ã®æåãå¶å¾¡ãããã®ã§ãããããã®"
+"ããããã£ã¯ãã¹ã¦å¦¥å½ãªããã©ã«ãå¤ããããä»»æã§è¨å®ãã¾ãã"
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -605,46 +484,42 @@
"literal> or <filename>hibernate.properties</filename>. They "
"<emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
-"<emphasis>注æï¼ãããã®ããããã£ã¯\"ã·ã¹ãã ã¬ãã«\"ã®ã¿ã§ãã</emphasis> "
+"<emphasis>注æï¼ãããã®ããããã£ã¯ãã·ã¹ãã ã¬ãã«ãã®ã¿ã§ãã</emphasis> "
"ã·ã¹ãã ã¬ãã«ããããã£ã¯ <literal>java -Dproperty=value</literal> ãããã"
-"㯠<literal>hibernate.properties</literal> ã§ã®ã¿è¨å®å¯è½ã§ãã ãã以å¤ã®è¨"
-"宿¹æ³ã¯ <emphasis>ããã¾ãã</emphasis> ã"
+"㯠<literal>hibernate.properties</literal> ã§ã®ã¿è¨å®å¯è½ã§ãããã以å¤ã®è¨å®"
+"æ¹æ³ã¯ <emphasis>ããã¾ãã</emphasis> ã"
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
-msgstr "Hibernateè¨å®ããããã£"
+msgstr "Hibernate è¨å®ããããã£"
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
+msgstr "<property>hibernate.dialect</property>"
#. Tag: entry
-#: configuration.xml:362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
"classname> which allows Hibernate to generate SQL optimized for a particular "
"relational database."
msgstr ""
-"Hibernate <placeholder-1/> ã¯ã©ã¹åãå
¥ãã¾ãã ããã¯ãªã¬ã¼ã·ã§ãã«ãã¼ã¿"
-"ãã¼ã¹ãã¨ã«æé©åãããSQLãçæãã¾ãã <placeholder-2/>"
+"Hibernate ã®ã¯ã©ã¹å <classname>org.hibernate.dialect.Dialect</classname> ã"
+"å
¥ãã¾ããããã¯ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ãã¨ã«æé©åããã SQL ãçæãã¾"
+"ãã"
#. Tag: para
-#: configuration.xml:365
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
"Dialect</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>full.classname.of.Dialect</"
+"literal>"
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
@@ -652,165 +527,135 @@
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
-msgstr "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
+msgstr "<property>hibernate.show_sql</property>"
#. Tag: entry
-#: configuration.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL</literal> to <literal>debug</"
"literal>."
msgstr ""
-"çºè¡ããããã¹ã¦ã®SQLãã³ã³ã½ã¼ã«ã«åºåãã¾ãã ããã¯ãã°ã«ãã´ãªã® "
-"<placeholder-1/> ã« <placeholder-2/> ãè¨å®ããæ¹æ³ã®ä»£æ¿ææ®µã§ãã "
-"<placeholder-3/>"
+"çºè¡ããããã¹ã¦ã® SQL ãã³ã³ã½ã¼ã«ã«åºåãã¾ããããã¯ãã°ã«ãã´ãªã® "
+"<literal>org.hibernate.SQL</literal> ã« <literal>debug</literal> ãè¨å®ããæ¹"
+"æ³ã®ä»£æ¿ææ®µã§ãã"
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:583 configuration.xml:610 configuration.xml:623
-#: configuration.xml:678 configuration.xml:906 configuration.xml:921
-#: configuration.xml:1011
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
+"<emphasis role=\"strong\">ä¾</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
-msgstr "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
+msgstr "<property>hibernate.format_sql</property>"
#. Tag: entry
-#: configuration.xml:394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pretty print the SQL in the log and console."
-msgstr "ãã°ã¨ã³ã³ã½ã¼ã«ã®SQLãç¾ãã表示ãã¾ãã <placeholder-1/>"
+msgstr "ãã°ã¨ã³ã³ã½ã¼ã«ã® SQL ãæ´å½¢ãã¦è¡¨ç¤ºãã¾ãã"
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
-msgstr "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
+msgstr "<property>hibernate.default_schema</property>"
#. Tag: entry
-#: configuration.xml:406
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
-msgstr ""
-"çæãããSQLæã®ãã¼ãã«ã«è¨å®ããã¹ãã¼ã/ãã¼ãã«ã¹ãã¼ã¹ã§ãã "
-"<placeholder-1/>"
+msgstr "çæããã SQL æã®ãã¼ãã«ã«è¨å®ããã¹ãã¼ã/ãã¼ãã«ã¹ãã¼ã¹ã§ãã"
#. Tag: para
-#: configuration.xml:409
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
-msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾.</emphasis><literal>SCHEMA_NAME</literal>"
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
-msgstr "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
+msgstr "<property>hibernate.default_catalog</property>"
#. Tag: entry
-#: configuration.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
-msgstr "çæãããSQLæã®ãã¼ãã«ã«è¨å®ããã«ã¿ãã°ã§ãã <placeholder-1/>"
+msgstr "çæããã SQL æã®ãã¼ãã«ã«è¨å®ããã«ã¿ãã°ã§ãã"
#. Tag: para
-#: configuration.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
-msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾</emphasis><literal>CATALOG_NAME</literal>"
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
-msgstr "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
+msgstr "<property>hibernate.session_factory_name</property>"
#. Tag: entry
-#: configuration.xml:432
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
-"<placeholder-1/> ã¯çæå¾ããã®ååã§JNDIã«ç»é²ããã¾ãã <placeholder-2/>"
+"<interfacename>org.hibernate.SessionFactory</interfacename> ã¯çæå¾ããã®å"
+"åã§ JNDI ã«èªåçã«ç»é²ããã¾ãã"
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>jndi/composite/name</literal>"
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
-msgstr "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
+msgstr "<property>hibernate.max_fetch_depth</property>"
#. Tag: entry
-#: configuration.xml:445
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0</literal> disables "
"default outer join fetching."
msgstr ""
-"å¤é¨çµåãã§ããã®æå¤§æ·±åº¦ãè¨å®ãã¾ããçµåããé¢é£ã¯ 対ä¸é¢é£ã®ã¿ï¼ä¸å¯¾ä¸ã"
-"å¤å¯¾ä¸ï¼ã§ãã <placeholder-1/> ãæå®ããã¨å¤é¨çµåãã§ããã¯ç¡å¹ã«ãªãã¾"
-"ãã <placeholder-2/>"
+"å¤é¨çµåãã§ããã®æå¤§æ·±åº¦ãè¨å®ãã¾ããçµåããé¢é£ã¯å¯¾ä¸é¢é£ã®ã¿ï¼ä¸å¯¾ä¸ã"
+"å¤å¯¾ä¸ï¼ã§ãã <literal>0</literal> ãæå®ããã¨å¤é¨çµåãã§ããã¯ç¡å¹ã«ãªã"
+"ã¾ãã"
#. Tag: para
-#: configuration.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>0</literal> and <literal>3</literal>"
msgstr ""
"<emphasis role=\"strong\">ä¾ï¼</emphasis> æ¨å¥¨ããå¤ã¯ <literal>0</literal> "
-"ãã <literal>3</literal> ã§ãã"
+"ãã <literal>3</literal> ã®éã§ãã"
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
-msgstr "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
+msgstr "<property>hibernate.default_batch_fetch_size</property>"
#. Tag: entry
-#: configuration.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
-msgstr "é¢é£ãã§ããã®ããã©ã«ãããããµã¤ãºãæå®ãã¾ãã <placeholder-1/>"
+msgstr "é¢é£ãã§ããã®ããã©ã«ã Hibernate ããããµã¤ãºãæå®ãã¾ãã"
#. Tag: para
-#: configuration.xml:462
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
@@ -818,24 +663,21 @@
"<emphasis role=\"strong\">ä¾ï¼</emphasis> æ¨å¥¨ããå¤ã¯ <literal>4</"
"literal> , <literal>8</literal> , <literal>16</literal> ã§ãã"
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
-msgstr "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
+msgstr "<property>hibernate.default_entity_mode</property>"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory</literal>"
msgstr ""
-"<placeholder-1/> ããã»ãã·ã§ã³ããªã¼ãã³ããã¨ã㫠使ç¨ããã¨ã³ãã£ãã£ã®ã"
-"ãã©ã«ãã¢ã¼ããè¨å®ãã¾ãã <placeholder-2/>"
+"<literal>SessionFactory</literal> ããã»ãã·ã§ã³ããªã¼ãã³ããã¨ãã«ä½¿ç¨ãã"
+"ã¨ã³ãã£ãã£ã®ããã©ã«ãã¢ã¼ããè¨å®ãã¾ãã"
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
@@ -844,206 +686,181 @@
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
-msgstr "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
+msgstr "<property>hibernate.order_updates</property>"
#. Tag: entry
-#: configuration.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
-"é
ç®ãæ´æ°ãããã¨ãã«ãå¥ã®SQLã§ä¸»ãã¼ãæ´æ°ãããã¨ãå¼·å¶ãã¾ãã ãã®å ´"
+"é
ç®ãæ´æ°ãããã¨ãã«ãå¥ã® SQL ã§ä¸»ãã¼ãæ´æ°ãããã¨ãå¼·å¶ãã¾ãããã®å ´"
"åãåæå®è¡å¯è½ãªã·ã¹ãã ã§ã¯ãã¾ãã«ãããããã¯ãçºçããå¯è½æ§ãããã¾"
-"ãã <placeholder-1/>"
+"ãã"
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
-msgstr "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
+msgstr "<property>hibernate.generate_statistics</property>"
#. Tag: entry
-#: configuration.xml:500
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr ""
-"æå¹ã®å ´åãHibernateã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã« æå¹ãªçµ±è¨æ
å ±ãåéãã¾"
-"ãã <placeholder-1/>"
+"æå¹ã®å ´åã Hibernate ã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã«æå¹ãªçµ±è¨æ
å ±ãåéãã¾"
+"ãã"
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
-msgstr "hibernate.use_identifer_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
+msgstr "<property>hibernate.use_identifier_rollback</property>"
#. Tag: entry
-#: configuration.xml:513
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
msgstr ""
-"æå¹ã®å ´åããªãã¸ã§ã¯ããåé¤ãããã¨ãã« èå¥åããããã£ããªã»ããããã"
-"ãã©ã«ãå¤ã«ãããã®ãçæãã¾ãã <placeholder-1/>"
+"æå¹ã®å ´åããªãã¸ã§ã¯ããåé¤ãããã¨ãã«èå¥åããããã£ããªã»ããããã"
+"ãã©ã«ãå¤ã«ãããã®ãçæãã¾ãã"
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
-msgstr "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
+msgstr "<property>hibernate.use_sql_comments</property>"
#. Tag: entry
-#: configuration.xml:526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false</literal>."
msgstr ""
-"æå¹ã®å ´åãSQLå
ã«ã³ã¡ã³ããçæãã¾ããããã¯ãããã¯ã容æã«ãã¾ãã ã"
-"ãã©ã«ãã®å¤ã¯ <placeholder-1/> ã§ãã <placeholder-2/>"
+"æå¹ã®å ´åã SQL å
ã«ã³ã¡ã³ããçæãã¾ããããã¯ãããã¯ã容æã«ãã¾ããã"
+"ãã©ã«ãã®å¤ã¯ <literal>false</literal> ã§ãã"
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "Hibernate JDBC ã¨ã³ãã¯ã·ã§ã³ããããã£"
-#. Tag: property
-#: configuration.xml:555
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
-msgstr "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
+msgstr "<property>hibernate.jdbc.fetch_size</property>"
#. Tag: entry
-#: configuration.xml:557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
msgstr ""
-"å¤ã0ã§ãªãå ´åãJDBCãã§ãããµã¤ãºã決å®ãã¾ã ( <placeholder-1/> ãå¼ã³ã¾"
-"ã)ã"
+"å¤ã0ã§ãªãå ´åã JDBC ãã§ãããµã¤ãºã決å®ãã¾ã ( <literal>Statement."
+"setFetchSize()</literal> ãå¼ã³ã¾ã)ã"
-#. Tag: property
-#: configuration.xml:564
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
-msgstr "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
+msgstr "<property>hibernate.jdbc.batch_size</property>"
#. Tag: entry
-#: configuration.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
-msgstr ""
-"å¤ã0ã§ãªãå ´åãHibernateãJDBC2ãããæ´æ°ã使ç¨ãã¾ãã <placeholder-1/>"
+msgstr "å¤ã0ã§ãªãå ´åã Hibernate ã JDBC2 ãããæ´æ°ã使ç¨ãã¾ãã"
#. Tag: para
-#: configuration.xml:568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>5</literal> and <literal>30</literal>"
msgstr ""
"<emphasis role=\"strong\">ä¾ï¼</emphasis> æ¨å¥¨ããå¤ã¯ <literal>5</literal> "
-"ãã <literal>30</literal> ã§ãã"
+"ãã <literal>30</literal> ã®éã§ãã"
-#. Tag: property
-#: configuration.xml:576
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
-msgstr "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
+msgstr "<property>hibernate.jdbc.batch_versioned_data</property>"
#. Tag: entry
-#: configuration.xml:578
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
"correct row counts from <literal>executeBatch()</literal>. Iit is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-"ããJDBCãã©ã¤ãã <placeholder-1/> ã«ãã£ã¦æ£ç¢ºãªè¡æ°ã è¿ãå ´åããã®ããã"
-"ãã£ã <placeholder-2/> ã«ãã¦ãã ãã ï¼é常ã¯ãã®ãªãã·ã§ã³ãONã«ãã¾"
-"ãï¼ã Hibernateã¯ãèªåãã¼ã¸ã§ã³ãã¼ã¿ã®ãããããDMLã使ãã¾ãã ããã©ã«"
-"ãã®å¤ã¯ <placeholder-3/> ã§ãã <placeholder-4/>"
+"ãã JDBC ãã©ã¤ãã <literal>executeBatch()</literal> ã«ãã£ã¦æ£ç¢ºãªè¡æ°ãè¿"
+"ãå ´åããã®ããããã£ã <literal>true</literal> ã«ãã¦ãã ãã ï¼é常ã¯ãã®"
+"ãªãã·ã§ã³ã ON ããã®ãå®å
¨ã§ãï¼ã Hibernate ã¯ãèªåãã¼ã¸ã§ã³ãã¼ã¿ã®ãã"
+"ããã DML ã使ãã¾ããããã©ã«ãã®å¤ã¯ <literal>false</literal> ã§ãã"
-#. Tag: property
-#: configuration.xml:591
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
-msgstr "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
+msgstr "<property>hibernate.jdbc.factory_class</property>"
#. Tag: entry
-#: configuration.xml:593
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
"Most applications will not need this configuration property."
msgstr ""
-"ã«ã¹ã¿ã <placeholder-1/> ãé¸ã³ã¾ãã ã»ã¨ãã©ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããã®è¨å®"
-"ã¯å¿
è¦ããã¾ããã <placeholder-2/>"
+"ã«ã¹ã¿ã <interfacename>org.hibernate.jdbc.Batcher</interfacename> ãé¸ã³ã¾"
+"ããã»ã¨ãã©ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããã®è¨å®ããããã£ã¯å¿
è¦ããã¾ããã"
#. Tag: para
-#: configuration.xml:596
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>classname.of.BatcherFactory</"
+"literal>"
-#. Tag: property
-#: configuration.xml:604
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
-msgstr "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
+msgstr "<property>hibernate.jdbc.use_scrollable_resultset</property>"
#. Tag: entry
-#: configuration.xml:606
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
-"ã¹ã¯ãã¼ã«å¯è½ãªãªã¶ã«ãã»ããããHibernateã使ç¨ãã¾ãã ãã®ããããã£ã¯ã"
-"JDBCã³ãã¯ã·ã§ã³ãã³ãã¯ã·ã§ã³ã¡ã¿ãã¼ã¿ã ãµãã¼ããã¦ãããã¨ãå¿
é æ¡ä»¶ã«ãª"
-"ãã¾ãã <placeholder-1/>"
+"Hibernate ã«ãã JDBC2 ã®ã¹ã¯ãã¼ã«å¯è½ãªãªã¶ã«ãã»ããã®ä½¿ç¨ãæå¹ã«ãã¾ãã"
+"ãã®ããããã£ã¯ãã¦ã¼ã¶ã¼ã«ãã£ã¦æä¾ããã JDBC ã³ãã¯ã·ã§ã³ã使ç¨ãã¦ãã"
+"å ´åã®ã¿å¿
è¦ã§ãããã§ãªããã° Hibernate ã¯ã³ãã¯ã·ã§ã³ã¡ã¿ãã¼ã¿ã使ç¨ãã¾"
+"ãã"
-#. Tag: property
-#: configuration.xml:618
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
-msgstr "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
+msgstr "<property>hibernate.jdbc.use_streams_for_binary</property>"
#. Tag: entry
-#: configuration.xml:620
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
"<literal>serializable</literal> types to/from JDBC. <emphasis>*system-level "
"property*</emphasis>"
msgstr ""
-"JDBCã¸/ãã <placeholder-1/> ã <placeholder-2/> ã®æ¸ãè¾¼ã¿/èªã¿è¾¼ã¿ã¹ããªã¼"
-"ã ã使ãã¾ã(ã·ã¹ãã ã¬ãã«ã®ããããã£)ã <placeholder-3/>"
+"JDBC ã¸/ãã <literal>binary</literal> ã <literal>serializable</literal> ã®"
+"æ¸ãè¾¼ã¿/èªã¿è¾¼ã¿ã¹ããªã¼ã ã使ãã¾ã (ã·ã¹ãã ã¬ãã«ã®ããããã£)ã"
-#. Tag: property
-#: configuration.xml:631
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
-msgstr "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
+msgstr "<property>hibernate.jdbc.use_get_generated_keys</property>"
#. Tag: entry
-#: configuration.xml:633
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
@@ -1051,97 +868,82 @@
"identifier generators. By default, it tries to determine the driver "
"capabilities using connection metadata."
msgstr ""
-"æ¿å
¥ã®å¾ã«èªåçæããã主ãã¼ãåå¾ããããã® JDBC3 <placeholder-1/> ã®ä½¿ç¨"
-"ãæå¹ã«ãã¾ãã ããã¯JDBC3+ãã©ã¤ãã¨JRE1.4+ãå¿
è¦ã¨ãã ããHibernateã®è"
-"å¥åã¸ã§ãã¬ã¼ã¿ã«åé¡ãçºçãããããªãfalseã«è¨å®ãã¦ãã ããã ããã©ã«ã"
-"ã§ã¯ã³ãã¯ã·ã§ã³ã¡ã¿ãã¼ã¿ã使ããã©ã¤ãã®è½åãæ±ºå®ãã¾ãã <placeholder-2/>"
+"æ¿å
¥ã®å¾ã«èªåçæããã主ãã¼ãåå¾ããããã® JDBC3 "
+"<literal>PreparedStatement.getGeneratedKeys()</literal> ã®ä½¿ç¨ãæå¹ã«ãã¾"
+"ãããã㯠JDBC3+ ãã©ã¤ã㨠JRE1.4+ ãå¿
è¦ã¨ãããã Hibernate ã®èå¥åã¸ã§"
+"ãã¬ã¼ã¿ã«åé¡ãçºçãããããªã false ã«è¨å®ãã¦ãã ãããããã©ã«ãã§ã¯ã³ã"
+"ã¯ã·ã§ã³ã¡ã¿ãã¼ã¿ã使ããã©ã¤ãã®è½åãæ±ºå®ãã¾ãã"
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781
-#: configuration.xml:795 configuration.xml:833
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
-msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾</emphasis><literal>true|false</literal>"
-#. Tag: property
-#: configuration.xml:647
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
-msgstr "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
+msgstr "<property>hibernate.connection.provider_class</property>"
#. Tag: entry
-#: configuration.xml:649
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
-"JDBCã³ãã¯ã·ã§ã³ãHibernateã«æä¾ããç¬èªã® <placeholder-1/> ã® ååãæå®ã"
-"ã¾ãã <placeholder-2/>"
+"JDBC ã³ãã¯ã·ã§ã³ã Hibernate ã«æä¾ããç¬èªã® <literal>ConnectionProvider</"
+"literal> ã®ã¯ã©ã¹åã"
#. Tag: para
-#: configuration.xml:652
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>classname.of."
+"ConnectionProvider</literal>"
-#. Tag: property
-#: configuration.xml:660
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
-msgstr "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
+msgstr "<property>hibernate.connection.isolation</property>"
#. Tag: entry
-#: configuration.xml:662
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
"databases do not support all isolation levels and some define additional, "
"non-standard isolations."
msgstr ""
-"JDBCãã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã«ãè¨å®ãã¾ãã 妥å½ãªå¤ã調ã¹ãããã«ã¯ "
-"<placeholder-1/> ããã§ãã¯ãã¦ãã ããã ããã使ç¨ãããã¼ã¿ãã¼ã¹ãããã¹"
-"ã¦ã®åé¢ã¬ãã«ããµãã¼ããã¦ããã¨ã¯éãã¾ããã <placeholder-2/>"
+"JDBC ãã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã«ãè¨å®ãã¾ãã妥å½ãªå¤ã調ã¹ãããã«ã¯ "
+"<interfacename>java.sql.Connection</interfacename> ããã§ãã¯ãã¦ãã ãããã"
+"ãã使ç¨ãããã¼ã¿ãã¼ã¹ãããã¹ã¦ã®åé¢ã¬ãã«ããµãã¼ããã¦ããã¨ã¯éãã¾ã"
+"ãã"
#. Tag: para
-#: configuration.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
-msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾</emphasis><literal>1, 2, 4, 8</literal>"
-#. Tag: property
-#: configuration.xml:674
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
-msgstr "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
+msgstr "<property>hibernate.connection.autocommit</property>"
#. Tag: entry
-#: configuration.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr ""
-"ãã¼ã«ããã¦ããJDBCã³ãã¯ã·ã§ã³ã®èªåã³ããããæå¹ã«ããï¼éæ¨å¥¨ï¼ã "
-"<placeholder-1/>"
+"ãã¼ã«ããã¦ãã JDBC ã³ãã¯ã·ã§ã³ã®èªåã³ããããæå¹ã«ããï¼éæ¨å¥¨ï¼ã"
-#. Tag: property
-#: configuration.xml:686
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
-msgstr "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
+msgstr "<property>hibernate.connection.release_mode</property>"
#. Tag: entry
-#: configuration.xml:688
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
@@ -1153,480 +955,433 @@
"the JTA and CMT transaction strategies and <literal>after_transaction</"
"literal> for the JDBC transaction strategy."
msgstr ""
-"HibernateãJDBCã³ãã¯ã·ã§ã³ããªãªã¼ã¹ããããæå®ãã¾ããããã©ã«ãã§ã¯ ã»ã"
-"ã·ã§ã³ãæç¤ºçã«ã¯ãã¼ãºã¾ãã¯åæããã¦ãã³ãã¯ã·ã§ã³ã¯ä¿æãã¾ãã ã¢ããª"
-"ã±ã¼ã·ã§ã³ãµã¼ãã®JTAãã¼ã¿ã½ã¼ã¹ã®å ´åã ãã¹ã¦ã®JDBCã³ã¼ã«ã®å¾ãå¼·å¶çã«ã³"
-"ãã¯ã·ã§ã³ããªãªã¼ã¹ããããã« <placeholder-1/> ã 使ã£ã¦ãã ããã éJTAã³ã"
-"ã¯ã·ã§ã³ã®å ´åãåãã©ã³ã¶ã¯ã·ã§ã³ãçµäºããã¨ãã« <placeholder-2/> ã使ãã"
-"ã³ãã¯ã·ã§ã³ããªãªã¼ã¹ãã¦ãã ããã <placeholder-3/> ã«ããã¨ã JTAãCMTãã©"
-"ã³ã¶ã¯ã·ã§ã³ã®å ´åã <placeholder-4/> ã§ã¯ãã¼ãºãã JDBCãã©ã³ã¶ã¯ã·ã§ã³ã®å ´"
-"åã <placeholder-5/> ã§ã¯ãã¼ãºãã¾ãã <placeholder-6/><placeholder-7/>"
+"Hibernate ãã㤠JDBC ã³ãã¯ã·ã§ã³ããªãªã¼ã¹ããããæå®ãã¾ããããã©ã«ãã§"
+"ã¯ã»ãã·ã§ã³ãæç¤ºçã«ã¯ãã¼ãºã¾ãã¯åæããã¦ãã³ãã¯ã·ã§ã³ã¯ä¿æãã¾ããã¢"
+"ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã® JTA ãã¼ã¿ã½ã¼ã¹ã®å ´åããã¹ã¦ã® JDBC ã³ã¼ã«ã®å¾ãå¼·"
+"å¶çã«ã³ãã¯ã·ã§ã³ããªãªã¼ã¹ããããã« <literal>after_statement</literal> ã"
+"使ã£ã¦ãã ãããé JTA ã³ãã¯ã·ã§ã³ã®å ´åãåãã©ã³ã¶ã¯ã·ã§ã³ãçµäºããã¨ã"
+"ã« <literal>after_transaction</literal> ã使ããã³ãã¯ã·ã§ã³ããªãªã¼ã¹ãã¦ã"
+"ã ããã <literal>auto</literal> ã«ããã¨ã JTA ã CMT ãã©ã³ã¶ã¯ã·ã§ã³ã®å ´"
+"åã <literal>after_statement</literal> ã§ã¯ãã¼ãºãã JDBC ãã©ã³ã¶ã¯ã·ã§ã³"
+"ã®å ´åã <literal>after_transaction</literal> ã§ã¯ãã¼ãºãã¾ãã"
#. Tag: para
-#: configuration.xml:699
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>auto</literal> (default) | "
-"<literal>on_close</literal> | <literal>after_transaction</literal> | "
+"<emphasis role=\"strong\">ä¾</emphasis><literal>auto</literal> (ããã©ã«ã) "
+"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
#. Tag: para
-#: configuration.xml:704
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
"<literal>SessionFactory.openSession</literal>. For <literal>Session</"
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
+"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
+"\" />"
msgstr ""
-"注æãã¦ãã ããããã®è¨å®ã¯ <literal>SessionFactory.openSession</literal> ã"
-"ã åå¾ãã <literal>Session</literal> ã ãã«å¹æãããã¾ãã "
-"<literal>SessionFactory.getCurrentSession</literal> ãéãã¦åå¾ãã "
-"<literal>Session</literal> ã§ã¯ã<literal>CurrentSessionContext</literal> ã®"
-"å®è£
ã«ãã£ã¦ãã³ãã¯ã·ã§ã³ã®ãªãªã¼ã¹ã¢ã¼ããè¨å®ãã¾ãã <xref linkend="
-"\"architecture-current-session\"/> ãåç
§ãã¦ãã ããã"
+"ãã®è¨å®ã¯ <literal>SessionFactory.openSession</literal> ããåå¾ãã "
+"<literal>Session</literal> ã ãã«å¹æãããã¾ãã <literal>SessionFactory."
+"getCurrentSession</literal> ãéãã¦åå¾ãã <literal>Session</literal> ã§"
+"ã¯ã <literal>CurrentSessionContext</literal> ã®å®è£
ã«ãã£ã¦ãã³ãã¯ã·ã§ã³ã®"
+"ãªãªã¼ã¹ã¢ã¼ããè¨å®ãã¾ãã <xref linkend=\"architecture-current-session\"/"
+"> ãåç
§ãã¦ãã ããã"
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
"emphasis>"
msgstr ""
+"<property>hibernate.connection.</property><emphasis><propertyName></"
+"emphasis>"
#. Tag: entry
-#: configuration.xml:718
#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
"<literal>DriverManager.getConnection()</literal>."
msgstr ""
+"JDBC ãããã㣠<emphasis><propertyName></emphasis> ã "
+"<literal>DriverManager.getConnection()</literal> ã«æ¸¡ãã¾ãã"
#. Tag: entry
-#: configuration.xml:724
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
+"<literal>hibernate.jndi.</literal><emphasis><property></emphasis> ã"
+"使ã£ã¦ãã·ã¹ãã ããããã£ã¨ãã¦"
#. Tag: entry
-#: configuration.xml:727
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
"<literal>InitialContextFactory</literal>."
msgstr ""
+"ãããã㣠<emphasis><propertyName></emphasis> ã JNDI "
+"<literal>InitialContextFactory</literal> ã«æ¸¡ãã¾ãã"
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
msgstr "Hibernate ãã£ãã·ã¥ããããã£"
-#. Tag: literal
-#: configuration.xml:750
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
-msgstr "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
+msgstr "<literal>hibernate.cache.provider_class</literal>"
#. Tag: entry
-#: configuration.xml:752
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
-msgstr "ã«ã¹ã¿ã <placeholder-1/> ã®ã¯ã©ã¹åã§ãã <placeholder-2/>"
+msgstr "ã«ã¹ã¿ã <literal>CacheProvider</literal> ã®ã¯ã©ã¹åã§ãã"
#. Tag: para
-#: configuration.xml:754
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>classname.of.CacheProvider</"
+"literal>"
-#. Tag: literal
-#: configuration.xml:762
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
-msgstr "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
+msgstr "<literal>hibernate.cache.use_minimal_puts</literal>"
#. Tag: entry
-#: configuration.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
-"æ¸ãè¾¼ã¿ãæå°éã«ããããã«ãäºæ¬¡ãã£ãã·ã¥ã®æä½ãæé©åãã¾ãã ãã®ä»£ãã"
-"ã«ãèªã¿è¾¼ã¿ãããé »ç¹ã«çºçããããã«ãªãã¾ãã ãã®ã»ããã£ã³ã°ã¯ã¯ã©ã¹ã¿"
-"ãã£ãã·ã¥ã§å½¹ã«ç«ã¡ã¾ãã Hibernate3ã§ã¯ã¯ã©ã¹ã¿ãã£ãã·ã¥å®è£
ç¨ã«ããã©ã«ã"
-"ã§ã¯æå¹ã«ãªã£ã¦ãã¾ãã <placeholder-1/>"
+"æ¸ãè¾¼ã¿ãæå°éã«ããããã«ãäºæ¬¡ãã£ãã·ã¥ã®æä½ãæé©åãã¾ãããã®ä»£ãã"
+"ã«ãèªã¿è¾¼ã¿ãããé »ç¹ã«çºçããããã«ãªãã¾ãããã®ã»ããã£ã³ã°ã¯ã¯ã©ã¹ã¿"
+"ãã£ãã·ã¥ã§å½¹ã«ç«ã¡ã¾ãã Hibernate3 ã§ã¯ã¯ã©ã¹ã¿ãã£ãã·ã¥å®è£
ç¨ã«ããã©ã«"
+"ãã§ã¯æå¹ã«ãªã£ã¦ãã¾ãã "
-#. Tag: literal
-#: configuration.xml:777
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
-msgstr "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
+msgstr "<literal>hibernate.cache.use_query_cache</literal>"
#. Tag: entry
-#: configuration.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
msgstr ""
"ç¹å®ã®ã¯ã¨ãªããã£ãã·ã¥å¯è½ãªå ´åã«ãã¯ã¨ãªãã£ãã·ã¥ãæå¹ã«ãã¾ãã "
-"<placeholder-1/>"
-#. Tag: literal
-#: configuration.xml:789
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
-msgstr "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
+msgstr "<literal>hibernate.cache.use_second_level_cache</literal>"
#. Tag: entry
-#: configuration.xml:791
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache></literal> "
"mapping."
msgstr ""
-"äºæ¬¡ãã£ãã·ã¥ãå®å
¨ã«ç¡å¹ã«ããå ´åã«ä½¿ãã¾ãã ããã©ã«ãã§ã¯æå¹ã§ãã¯ã©ã¹"
-"ã® <placeholder-1/> ãããã³ã° ã§å¶å¾¡ãã¾ãã <placeholder-2/>"
+"äºæ¬¡ãã£ãã·ã¥ãå®å
¨ã«ç¡å¹ã«ããå ´åã«ä½¿ãã¾ããããã©ã«ãã§ã¯æå¹ã§ãã¯ã©ã¹"
+"ã® <literal><cache></literal> ãããã³ã°ã§å¶å¾¡ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:803
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
-msgstr "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
+msgstr "<literal>hibernate.cache.query_cache_factory</literal>"
#. Tag: entry
-#: configuration.xml:805
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
"to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
-"ã«ã¹ã¿ã <placeholder-1/> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¯ã©ã¹åã æå®ãã¾ããããã©ã«ã"
-"ã§ã¯ <placeholder-2/> ã«ãªãã¾ãã <placeholder-3/>"
+"ã«ã¹ã¿ã <literal>QueryCache</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ã¯ã©ã¹åãæå®ãã¾"
+"ããããã©ã«ãã§ã¯ <literal>StandardQueryCache</literal> ã«ãªãã¾ãã"
#. Tag: para
-#: configuration.xml:808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
+"literal>"
-#. Tag: literal
-#: configuration.xml:816
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
-msgstr "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
+msgstr "<literal>hibernate.cache.region_prefix</literal>"
#. Tag: entry
-#: configuration.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A prefix to use for second-level cache region names."
-msgstr "äºæ¬¡ãã£ãã·ã¥ã®é ååã®æ¥é è¾ã§ãã <placeholder-1/>"
+msgstr "äºæ¬¡ãã£ãã·ã¥ã®é ååã®æ¥é è¾ã§ãã"
#. Tag: para
-#: configuration.xml:820
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
-msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾</emphasis><literal>prefix</literal>"
-#. Tag: literal
-#: configuration.xml:828
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
-msgstr "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
+msgstr "<literal>hibernate.cache.use_structured_entries</literal>"
#. Tag: entry
-#: configuration.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
msgstr ""
"äºæ¬¡ãã£ãã·ã¥ã«æ ¼ç´ãããã¼ã¿ãã人ãçè§£ãããããã©ã¼ãããã«ãã¾ãã "
-"<placeholder-1/>"
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr "Hibernate ãã©ã³ã¶ã¯ã·ã§ã³ããããã£"
-#. Tag: literal
-#: configuration.xml:857
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
-msgstr "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
+msgstr "<literal>hibernate.transaction.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:859
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
"Hibernate <literal>Transaction</literal> API (defaults to "
"<literal>JDBCTransactionFactory</literal>)."
msgstr ""
-"Hibernate <placeholder-1/> APIã¨ä¸ç·ã«ä½¿ããã <placeholder-2/> ã®ã¯ã©ã¹åã§"
-"ãã ï¼ããã©ã«ãã§ã¯ <placeholder-3/> ã§ãï¼ã <placeholder-4/>"
+"Hibernate <literal>Transaction</literal> API ã¨ä¸ç·ã«ä½¿ããã "
+"<literal>TransactionFactory</literal> ã®ã¯ã©ã¹åã§ãã ï¼ããã©ã«ãã§ã¯ "
+"<literal>JDBCTransactionFactory</literal> ã§ãï¼ã"
#. Tag: para
-#: configuration.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>classname.of."
+"TransactionFactory</literal>>"
-#. Tag: literal
-#: configuration.xml:871
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
-msgstr "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
+msgstr "<literal>jta.UserTransaction</literal>"
#. Tag: entry
-#: configuration.xml:873
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
"JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãããJTA <placeholder-1/> ãåå¾ããããã« <placeholder-"
-"2/> ã«ä½¿ãããJNDIåã§ãã <placeholder-3/>"
+"ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãã JTA <literal>UserTransaction</literal> ãåå¾ã"
+"ãããã« <literal>JTATransactionFactory</literal> ã«ä½¿ããã JNDI åã§ãã"
-#. Tag: literal
-#: configuration.xml:885
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
-msgstr "hibernate.transaction.manager_lookup_class"
-
#. Tag: entry
-#: configuration.xml:887
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
+msgstr "<literal>hibernate.transaction. manager_lookup_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
-"<placeholder-1/> ã®ã¯ã©ã¹åã§ãã JTAç°å¢ã«ããã¦ãJVMã¬ãã«ã®ãã£ãã·ã¥ãæ"
-"å¹ã«ããããã«å¿
è¦ã§ãã <placeholder-2/>"
+"<literal>TransactionManagerLookup</literal> ã®ã¯ã©ã¹åã§ãã JTA ç°å¢ã«ãã"
+"ã¦ã JVM ã¬ãã«ã®ãã£ãã·ã¥ãæå¹ã«ããã¨ããã hilo ã¸ã§ãã¬ã¼ã¿ã使ç¨ããã"
+"ã¨ãã«å¿
è¦ã§ãã"
#. Tag: para
-#: configuration.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>classname.of."
+"TransactionManagerLookup</literal>"
-#. Tag: literal
-#: configuration.xml:899
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
-msgstr "hibernate.transaction.flush_before_completion"
-
#. Tag: entry
-#: configuration.xml:901
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
+msgstr "<literal>hibernate.transaction. flush_before_completion</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"æå¹ã®å ´åããã©ã³ã¶ã¯ã·ã§ã³ã®completionãã§ã¼ãºã®åã«èªåçã« ã»ãã·ã§ã³ãã"
-"ã©ãã·ã¥ãã¾ããå
èã®èªåã»ãã·ã§ã³ã³ã³ããã¹ã管çã«é©ãã¦ãã¾ãã <xref "
-"linkend=\"architecture-current-session\"/>ãåç
§ãã¦ãã ããã <placeholder-"
-"1/>"
+"æå¹ã®å ´åããã©ã³ã¶ã¯ã·ã§ã³ã® completion ãã§ã¼ãºã®åã«èªåçã«ã»ãã·ã§ã³ã"
+"ãã©ãã·ã¥ãã¾ããå
èµã®èªåã»ãã·ã§ã³ã³ã³ããã¹ã管çã«é©ãã¦ãã¾ãã <xref "
+"linkend=\"architecture-current-session\"/> ãåç
§ãã¦ãã ããã"
-#. Tag: literal
-#: configuration.xml:914
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
-msgstr "hibernate.transaction.auto_close_session"
-
#. Tag: entry
-#: configuration.xml:916
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
+msgstr "<literal>hibernate.transaction. auto_close_session</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"æå¹ã®å ´åããã©ã³ã¶ã¯ã·ã§ã³ã®completionãã§ã¼ãºã®å¾ã« ã»ãã·ã§ã³ãèªåçã«ã¯"
-"ãã¼ãºãã¾ããå
èã®èªåã»ãã·ã§ã³ã³ã³ããã¹ã管çã«é©ãã¦ãã¾ãã <xref "
-"linkend=\"architecture-current-session\"/>ãåç
§ãã¦ãã ããã <placeholder-"
-"1/>"
+"æå¹ã®å ´åããã©ã³ã¶ã¯ã·ã§ã³ã® completion ãã§ã¼ãºã®å¾ã«ã»ãã·ã§ã³ãèªåçã«"
+"ã¯ãã¼ãºãã¾ããå
èµã®èªåã»ãã·ã§ã³ã³ã³ããã¹ã管çã«é©ãã¦ãã¾ãã <xref "
+"linkend=\"architecture-current-session\"/> ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "ãã®ä»ã®ããããã£"
-#. Tag: literal
-#: configuration.xml:945
-#, no-c-format
-msgid "hibernate.current_session_context_class"
-msgstr "hibernate.current_session_context_class"
-
#. Tag: entry
-#: configuration.xml:947
#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
+msgstr "<literal>hibernate. current_session_context_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
-"ãç¾å¨ã®ã<placeholder-1/> ã®ããã®ï¼ã«ã¹ã¿ã ï¼æ¦ç¥ãæä¾ãã¾ãã ãã«ãã¤ã³"
-"ã¹ãã©ãã¸ã¼ã«é¢ãããã®ä»ã®æ
å ±ã«ã¤ãã¦ã¯ <xref linkend=\"architecture-"
-"current-session\"/>ãåç
§ãã¦ãã ããã <placeholder-2/>"
+"ãç¾å¨ã®ã <literal>Session</literal> ã®ããã®ï¼ã«ã¹ã¿ã ï¼æ¦ç¥ãæä¾ãã¾ãã"
+"ãã«ãã¤ã³ã¹ãã©ãã¸ã¼ã«é¢ãããã®ä»ã®æ
å ±ã«ã¤ãã¦ã¯ <xref linkend="
+"\"architecture-current-session\"/> ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: configuration.xml:952
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>jta</literal> | "
+"<emphasis role=\"strong\">ä¾</emphasis><literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
-#. Tag: literal
-#: configuration.xml:961
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
-msgstr "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
+msgstr "<literal>hibernate.query.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:963
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Chooses the HQL parser implementation."
-msgstr "HQLãã¼ãµã¼ã®å®è£
ã鏿ãã¾ãã <placeholder-1/>"
+msgstr "HQL ãã¼ãµã¼ã®å®è£
ã鏿ãã¾ãã"
#. Tag: para
-#: configuration.xml:965
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>org.hibernate.hql.ast."
+"<emphasis role=\"strong\">ä¾</emphasis><literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
-#. Tag: literal
-#: configuration.xml:974
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
-msgstr "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
+msgstr "<literal>hibernate.query.substitutions</literal>"
#. Tag: entry
-#: configuration.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
-"HQLã¨SQLã®ãã¼ã¯ã³ããããã³ã°ãã¾ãã ï¼ä¾ãã°ããã¼ã¯ã³ã¯é¢æ°ããªãã©ã«åã§"
-"ãï¼ã <placeholder-1/>"
+"HQL 㨠SQL ã®ãã¼ã¯ã³ããããã³ã°ãã¾ãã ï¼ä¾ãã°ããã¼ã¯ã³ã¯é¢æ°ããªãã©ã«"
+"åã§ãï¼ã"
#. Tag: para
-#: configuration.xml:979
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾</emphasis><literal>hqlLiteral=SQL_LITERAL, "
+"hqlFunction=SQLFUNC</literal>"
-#. Tag: literal
-#: configuration.xml:987
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
-msgstr "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
+msgstr "<literal>hibernate.hbm2ddl.auto</literal>"
#. Tag: entry
-#: configuration.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory</literal> is created. With <literal>create-drop</"
"literal>, the database schema will be dropped when the "
"<literal>SessionFactory</literal> is closed explicitly."
msgstr ""
-"<placeholder-1/> ãçæããã¨ãã«ã èªåçã«ã¹ãã¼ãDDLãDBã«åºåãã¾ãã "
-"<placeholder-2/> ã®å ´åã <placeholder-3/> ã ã¯ãã¼ãºããã¨ãã«ããã¼ã¿ãã¼"
-"ã¹ã¹ãã¼ãããããããã¾ãã <placeholder-4/>"
+"<literal>SessionFactory</literal> ãçæããã¨ãã«ãèªåçã«ã¹ãã¼ã DDL ãæ"
+"å¹ã«ããã¼ã¿ãã¼ã¹ã«åºåãã¾ãã <literal>create-drop</literal> ã®å ´åã "
+"<literal>SessionFactory</literal> ãã¯ãã¼ãºããã¨ãã«ããã¼ã¿ãã¼ã¹ã¹ãã¼ã"
+"ããããããã¾ãã"
#. Tag: para
-#: configuration.xml:995
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
msgstr ""
-"<emphasis role=\"strong\">ä¾ï¼</emphasis><literal>validate</literal> | "
+"<emphasis role=\"strong\">ä¾</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
-#. Tag: literal
-#: configuration.xml:1004
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
-msgstr "hibernate.cglib.use_reflection_optimizer"
-
#. Tag: entry
-#: configuration.xml:1006
#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
+msgstr "<literal>hibernate.cglib. use_reflection_optimizer</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
"Hibernate always requires CGLIB even if you turn off the optimizer. You "
"cannot set this property in <literal>hibernate.cfg.xml</literal>."
msgstr ""
-"å®è¡æãªãã¬ã¯ã·ã§ã³ã®ä»£ããã®CGLIBã®ä½¿ç¨ãæå¹ã«ãã¾ã ï¼ã·ã¹ãã ã¬ãã«ã®ã"
-"ãããã£ï¼ ãªãã¬ã¯ã·ã§ã³ã¯ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ã®ã¨ãã«å½¹ç«ã¤ãã¨ãããã¾"
-"ãã ãªããã£ãã¤ã¶ããªãã«ãã¦ããã¨ãã§ããã Hibernateã«ã¯å¿
ãCGLIBãå¿
è¦"
-"ãªãã¨ã«æ³¨æãã¦ãã ããã ãã®ããããã£ã¯ <placeholder-1/> ã§è¨å®ã§ãã¾ã"
-"ãã <placeholder-2/>"
+"å®è¡æãªãã¬ã¯ã·ã§ã³ã®ä»£ããã® CGLIB ã®ä½¿ç¨ãæå¹ã«ãã¾ã ï¼ã·ã¹ãã ã¬ãã«ã®"
+"ããããã£ï¼ ããªãã¬ã¯ã·ã§ã³ã¯ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ã®ã¨ãã«å½¹ç«ã¤ãã¨ããã"
+"ã¾ãããªããã£ãã¤ã¶ããªãã«ãã¦ããã¨ãã§ããã Hibernate ã«ã¯å¿
ã CGLIB ã"
+"å¿
è¦ãªãã¨ã«æ³¨æãã¦ãã ããããã®ããããã£ã¯ <literal>hibernate.cfg.xml</"
+"literal> ã§è¨å®ã§ãã¾ããã"
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
msgstr "SQL æ¹è¨ï¼Dialectï¼"
#. Tag: para
-#: configuration.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
"<literal>org.hibernate.dialect.Dialect</literal> subclass for your database. "
@@ -1634,315 +1389,264 @@
"the other properties listed above. This means that you will not have to "
"specify them manually."
msgstr ""
-"<literal>hibernate.dialect</literal> ããããã£ã«ã¯ã 使ç¨ãããã¼ã¿ãã¼ã¹ã®"
-"æ£ãã <literal>org.hibernate.dialect.Dialect</literal> ã®ãµãã¯ã©ã¹ãã å¿
ã"
-"æå®ãã¹ãã§ãã ãããæ¹è¨ãæå®ããã°ãHibernateã¯ä¸è¿°ããããããã£ã®ãã"
-"ã¤ãã«ã¤ãã¦ã ããé©åãªããã©ã«ãå¤ã使ãã¾ãã ããããã°ãããããæä½æ¥"
-"ã§è¨å®ããæéãçãã¾ãã"
+"<literal>hibernate.dialect</literal> ããããã£ã«ã¯ã使ç¨ãããã¼ã¿ãã¼ã¹ã®æ£"
+"ãã <literal>org.hibernate.dialect.Dialect</literal> ã®ãµãã¯ã©ã¹ããå¿
ãæ"
+"å®ãã¹ãã§ãããããæ¹è¨ãæå®ããã°ã Hibernate ã¯ä¸è¿°ããããããã£ã®ããã¤"
+"ãã«ã¤ãã¦ãããé©åãªããã©ã«ãå¤ã使ãã¾ããããããã°ãããããæä½æ¥ã§è¨"
+"å®ããæéãçãã¾ãã"
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
msgstr "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1041
#, no-c-format
msgid "Dialect"
msgstr "Dialect"
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr ""
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1046
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
-msgstr "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1049
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
-msgstr "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1052
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
-msgstr "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1055
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
-msgstr "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
-#. Tag: literal
-#: configuration.xml:1058
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
-msgstr "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL with InnoDB"
-#. Tag: literal
-#: configuration.xml:1061
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
-msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL with MyISAM"
-#. Tag: literal
-#: configuration.xml:1064
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
-msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
-msgstr "Oracle (any version)"
+msgstr "Oracle ï¼ãããã®ãã¼ã¸ã§ã³ã§ãï¼"
-#. Tag: literal
-#: configuration.xml:1067
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.OracleDialect</literal>"
#. Tag: entry
-#: configuration.xml:1070
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 9i"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 9i"
-#. Tag: literal
-#: configuration.xml:1070
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
-msgstr "org.hibernate.dialect.Oracle9Dialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
#. Tag: entry
-#: configuration.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 10g"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 10g"
-#. Tag: literal
-#: configuration.xml:1073
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1076
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
-msgstr "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
-#. Tag: literal
-#: configuration.xml:1079
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
-msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
-#. Tag: literal
-#: configuration.xml:1082
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
-msgstr "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1085
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
-msgstr "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1088
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
-msgstr "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InformixDialect</literal>"
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1091
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
-msgstr "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.HSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1094
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
-msgstr "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.IngresDialect</literal>"
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
msgstr "Progress"
-#. Tag: literal
-#: configuration.xml:1097
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
-msgstr "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.ProgressDialect</literal>"
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1100
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
-msgstr "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MckoiDialect</literal>"
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1103
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
-msgstr "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
-#. Tag: literal
-#: configuration.xml:1106
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
-msgstr "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
-#. Tag: literal
-#: configuration.xml:1109
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
-msgstr "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1112
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
-msgstr "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
msgstr "å¤é¨çµåãã§ãã"
#. Tag: para
-#: configuration.xml:1123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching</emphasis> will often increase performance by "
@@ -1952,15 +1656,15 @@
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT</literal>."
msgstr ""
-"ããDBãANSIããOracleãSybaseã¹ã¿ã¤ã«ã®å¤é¨çµåããµãã¼ããã¦ããå ´åã "
-"<emphasis>outer join fetching</emphasis> ã¯ãDBã®SQLçºè¡åæ°ãç¯ç´ã ããã©ã¼"
-"ãã³ã¹ãè¯ããã¾ããï¼DBå
ã§ããå¤ãã®å¦çã³ã¹ããçºçãã¾ãï¼ å¤é¨çµåãã§ã"
-"ãã¯ãå¤å¯¾ä¸ãä¸å¯¾å¤ãå¤å¯¾å¤ãä¸å¯¾ä¸ã®ãªãã¸ã§ã¯ãé¢é£ã§ ã°ã«ã¼ããªãã¸ã§ã¯ã"
-"ã1ã¤ã®SQLã§ <literal>SELECT</literal> ãã¾ãã"
+"ãããã¼ã¿ãã¼ã¹ã ANSI ãã Oracle ã Sybase ã¹ã¿ã¤ã«ã®å¤é¨çµåããµãã¼ãã"
+"ã¦ããå ´åã <emphasis>outer join fetching</emphasis> ã¯ããã¼ã¿ãã¼ã¹ã® SQL "
+"çºè¡åæ°ãç¯ç´ãããã©ã¼ãã³ã¹ãè¯ããã¾ãï¼ãã¼ã¿ãã¼ã¹å
ã§ããå¤ãã®å¦çã³"
+"ã¹ããçºçãã¾ãï¼ãå¤é¨çµåãã§ããã¯ãå¤å¯¾ä¸ãä¸å¯¾å¤ãå¤å¯¾å¤ãä¸å¯¾ä¸ã®ãªã"
+"ã¸ã§ã¯ãé¢é£ã§ã°ã«ã¼ããªãã¸ã§ã¯ãã1ã¤ã® SQL ã§ <literal>SELECT</literal> ã"
+"ã¾ãã"
#. Tag: para
-#: configuration.xml:1132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
"the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</"
@@ -1969,26 +1673,25 @@
"with <literal>fetch=\"join\"</literal>."
msgstr ""
"<literal>hibernate.max_fetch_depth</literal> ããããã£ã®å¤ã <literal>0</"
-"literal> ã«ãã㨠Outer join fetchingã <emphasis>ãã¹ã¦</emphasis> ç¡å¹ã«ã"
-"ããã¨ã«ãªãã¾ãã <literal>1</literal> ããã以ä¸ã®å¤ãè¨å®ããã¨ãå¤é¨çµå"
-"ãã§ãããæå¹ã«ãªãã ä¸å¯¾ä¸ã¨å¤å¯¾ä¸é¢é£ã <literal>fetch=\"join\"</"
-"literal> ã¨ãã¦ãããã³ã°ããã¾ãã"
+"literal> ã«ããã¨å¤é¨çµåãã§ããã <emphasis>ãã¹ã¦</emphasis> ç¡å¹ã«ããã"
+"ã¨ã«ãªãã¾ãã <literal>1</literal> ããã以ä¸ã®å¤ãè¨å®ããã¨ãå¤é¨çµå"
+"ãã§ãããæå¹ã«ãªããä¸å¯¾ä¸ã¨å¤å¯¾ä¸é¢é£ã <literal>fetch=\"join\"</literal> "
+"ã¨ãã¦ãããã³ã°ããã¾ãã"
#. Tag: para
-#: configuration.xml:1140
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
-msgstr "See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
+msgstr ""
+"ããã«æ
å ±ãè¦ãããã° <xref linkend=\"performance-fetching\"/> ãåç
§ãã¦ã"
+"ã ããã"
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
msgstr "ãã¤ããªã¹ããªã¼ã "
#. Tag: para
-#: configuration.xml:1149
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
@@ -1996,85 +1699,65 @@
"should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
"<emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
-"Oracleã¯JDBCãã©ã¤ãã¨ã®éã§ããã¨ãããã <literal>byte</literal> é
åã®ãµã¤"
-"ãºãå¶éãã¾ãã <literal>binary</literal> ã <literal>serializable</"
+"Oracle 㯠JDBC ãã©ã¤ãã¨ã®éã§ããã¨ãããã <literal>byte</literal> é
åã®"
+"ãµã¤ãºãå¶éãã¾ãã <literal>binary</literal> ã <literal>serializable</"
"literal> åã®å¤§ããªã¤ã³ã¹ã¿ã³ã¹ã使ããããã°ã <literal>hibernate.jdbc."
"use_streams_for_binary</literal> ãæå¹ã«ãã¦ãã ããã ãã ã <emphasis>ãã"
"ã¯ã·ã¹ãã ã¬ãã«ã®è¨å®ã ãã§ã</emphasis> ã"
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
-msgstr "2次ãã£ãã·ã¥ã¨ã¯ã¨ãªã¼ãã£ãã·ã¥"
+msgstr "ãæ¬¡ãã£ãã·ã¥ã¨ã¯ã¨ãªãã£ãã·ã¥"
#. Tag: para
-#: configuration.xml:1162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
-"<literal>hibernate.cache</literal> ããããã£æ¥é è¾ã¯ Hibernateã§ããã»ã¹ãã¯"
-"ã©ã¹ã¿äºæ¬¡ãã£ãã·ã¥ã使ãã¨ãã¨ã許å¯ãã¾ãã <xref linkend=\"performance-"
-"cache\"/>ã«ããå¤ãã®è©³ç´°ãããã¾ãã"
+"<literal>hibernate.cache</literal> ããããã£æ¥é è¾ã¯ Hibernate ã§ããã»ã¹ã"
+"ã¯ã©ã¹ã¿äºæ¬¡ãã£ãã·ã¥ã使ãã¨ãã¨ã許å¯ãã¾ãã<xref linkend=\"performance-"
+"cache\"/> ã«ããå¤ãã®è©³ç´°ãããã¾ãã"
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
-msgstr "ã¯ã¨ãªã¼è¨èªã®ç½®ãæã"
+msgstr "ã¯ã¨ãªè¨èªã®ç½®ãæã"
#. Tag: para
-#: configuration.xml:1174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
-"<literal>hibernate.query.substitutions</literal> ã使ããã¨ã§ã æ°ãã"
-"Hibernateã¯ã¨ãªãã¼ã¯ã³ãå®ç¾©ã§ãã¾ãã ä¾ï¼"
+"<literal>hibernate.query.substitutions</literal> ã使ããã¨ã§ãæ°ãã "
+"Hibernate ã¯ã¨ãªãã¼ã¯ã³ãå®ç¾©ã§ãã¾ããä¾ï¼"
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions true=1, false=0"
-
#. Tag: para
-#: configuration.xml:1181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
"literal> to be translated to integer literals in the generated SQL."
msgstr ""
-"ããã¯ãã¼ã¯ã³ <literal>true</literal> 㨠<literal>false</literal> ãã çæ"
-"ãããSQLã«ããã¦æ´æ°ãªãã©ã«ã«ç¿»è¨³ãã¾ãã"
+"ããã¯ãã¼ã¯ã³ <literal>true</literal> 㨠<literal>false</literal> ããçæã"
+"ãã SQL ã«ããã¦æ´æ°ãªãã©ã«ã«ç¿»è¨³ãã¾ãã"
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1188
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
msgstr ""
-"ããã¯SQLã® <literal>LOWER</literal> 颿°ã®ååã®ä»ãæ¿ããå¯è½ã«ãã¾ãã"
+"ãã㯠SQL ã® <literal>LOWER</literal> 颿°ã®ååã®ä»ãæ¿ããå¯è½ã«ãã¾ãã"
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
msgstr "Hibernate çµ±è¨"
#. Tag: para
-#: configuration.xml:1197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
@@ -2082,20 +1765,18 @@
"configured to expose these statistics via JMX. Read the Javadoc of the "
"interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
-"<literal>hibernate.generate_statistics</literal> ãæå¹ã«ããå ´åã åä½ãã¦"
-"ããã·ã¹ãã ããã¥ã¼ãã³ã°ããã¨ãã«ã<literal>SessionFactory.getStatistics()"
-"</literal> ãçµç±ãã¦ãHibernateã¯ä¾¿å©ãªçµ±è¨æ
å ±ãåºåãã¾ãã JMXãçµç±ãã¦"
-"çµ±è¨æ
å ±ãåºåãããã¨ãå¯è½ã§ãã Javadocã® <literal>org.hibernate.stats</"
-"literal> ããã±ã¼ã¸å
ã® ã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ã¯ããå¤ãã®æ
å ±ãããã¾ãã"
+"<literal>hibernate.generate_statistics</literal> ãæå¹ã«ããå ´åãåä½ãã¦ã"
+"ãã·ã¹ãã ããã¥ã¼ãã³ã°ããã¨ãã«ã <literal>SessionFactory.getStatistics()"
+"</literal> ãçµç±ãã¦ã Hibernate ã¯ä¾¿å©ãªçµ±è¨æ
å ±ãåºåãã¾ãã JMX ãçµç±ã"
+"ã¦çµ±è¨æ
å ±ãåºåãããã¨ãå¯è½ã§ãã Javadoc ã® <literal>org.hibernate."
+"stats</literal> ããã±ã¼ã¸å
ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¯ããå¤ãã®æ
å ±ãããã¾ãã"
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
msgstr "ãã®ã³ã°"
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2113,8 +1794,7 @@
msgstr ""
#. Tag: para
-#: configuration.xml:1222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
@@ -2122,149 +1802,126 @@
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
-"Hibernateã®ãã°ã¡ãã»ã¼ã¸ã«æ
£ãããã¨ãå¼·ããããããã¾ãã Hibernateã®ãã°ã¯"
-"èªã¿ããããã§ããéã詳細ã«ãªãããã«åªåããã¦ãã¾ãã ããã¯å¿
é ã®ãã©ãã«"
-"ã·ã¥ã¼ãã£ã³ã°ããã¤ã¹ã§ãã 以ä¸ã«éè¦ãªãã°ã®ã«ãã´ãªã示ãã¾ãã"
+"Hibernate ã®ãã°ã¡ãã»ã¼ã¸ã«æ
£ãããã¨ãå¼·ããããããã¾ãã Hibernate ã®ãã°"
+"ã¯èªã¿ããããã§ããéã詳細ã«ãªãããã«åªåããã¦ãã¾ããããã¯å¿
é ã®ãã©ã"
+"ã«ã·ã¥ã¼ãã£ã³ã°ããã¤ã¹ã§ãã以ä¸ã«éè¦ãªãã°ã®ã«ãã´ãªã示ãã¾ã:"
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
msgstr "Hibernate ãã°ã«ãã´ãª"
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr "ã«ãã´ãª"
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr "æ©è½"
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
-msgstr "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
+msgstr "<literal>org.hibernate.SQL</literal>"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
-msgstr "å®è¡ãããã¹ã¦ã®SQLï¼DDLï¼ã¹ãã¼ãã¡ã³ãããã®ã³ã°ãã¾ãã"
+msgstr "å®è¡ãããã¹ã¦ã® SQLï¼DDLï¼ã¹ãã¼ãã¡ã³ãããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1247
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
-msgstr "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
+msgstr "<literal>org.hibernate.type</literal>"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
-msgstr "ãã¹ã¦ã®JDBCãã©ã¡ã¼ã¿ããã®ã³ã°ãã¾ãã"
+msgstr "ãã¹ã¦ã® JDBC ãã©ã¡ã¼ã¿ããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1251
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
-msgstr "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
+msgstr "<literal>org.hibernate.tool. hbm2ddl</literal>"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
-msgstr "å®è¡ãããã¹ã¦ã®SQLï¼DDLï¼ã¹ãã¼ãã¡ã³ãããã®ã³ã°ãã¾ãã"
+msgstr "å®è¡ãããã¹ã¦ã® SQLï¼DDLï¼ã¹ãã¼ãã¡ã³ãããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1255
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
-msgstr "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
+msgstr "<literal>org.hibernate.pretty</literal>"
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
msgstr ""
-"sessionã«é¢é£ãããã¹ã¦ã®ã¨ã³ãã£ãã£ï¼æå¤§ï¼ï¼ï¼ã®ãã©ãã·ã¥æéããã®ã³ã°ã"
-"ã¾ãã"
+"session ã«é¢é£ãããã¹ã¦ã®ã¨ã³ãã£ãã£ï¼æå¤§ï¼ï¼ï¼ã®ãã©ãã·ã¥æéããã®ã³ã°"
+"ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1262
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
-msgstr "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
+msgstr "<literal>org.hibernate.cache</literal>"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
-msgstr "ãã¹ã¦ã®ï¼æ¬¡ãã£ãã·ã¥ã®åä½ããã®ã³ã°ãã¾ãã"
+msgstr "ãã¹ã¦ã®ã次ãã£ãã·ã¥ã®åä½ããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1266
-#, no-c-format
-msgid "org.hibernate.transaction"
-msgstr "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
+msgstr "<literal>org.hibernate. transaction</literal>"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
msgstr "ãã©ã³ã¶ã¯ã·ã§ã³ã«é¢é£ããåä½ããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1270
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
-msgstr "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
+msgstr "<literal>org.hibernate.jdbc</literal>"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
-msgstr "JDBCãªã½ã¼ã¹åå¾ããã®ã³ã°ãã¾ãã"
+msgstr "JDBC ãªã½ã¼ã¹åå¾ããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1274
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
-msgstr "org.hibernate.hql.ast.AST"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
+msgstr "<literal>org.hibernate.hql. ast.AST</literal>"
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
-msgstr "HQLã¨SQLã®ASTã®ã¯ã¨ãªã¼ãã¼ã¹ããã®ã³ã°ãã¾ãã"
+msgstr "HQL 㨠SQL ã® AST ã®ã¯ã¨ãªãã¼ã¹ããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
-msgstr "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
+msgstr "<literal>org.hibernate.secure</literal>"
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
-msgstr "ãã¹ã¦ã®JAASåæããã®ã³ã°ãã¾ãã"
+msgstr "ãã¹ã¦ã® JAAS åæããã®ã³ã°ãã¾ãã"
-#. Tag: literal
-#: configuration.xml:1284
-#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
-
#. Tag: entry
-#: configuration.xml:1285
#, fuzzy, no-c-format
+msgid "<literal>org.hibernate</literal>"
+msgstr "SessionFactory ã® JNDI ã¸ã®ç»é²"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
@@ -2273,7 +1930,6 @@
"便å©ã§ãï¼"
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2281,31 +1937,28 @@
"hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate."
"show_sql</literal> enabled."
msgstr ""
-"Hibernateã§ã¢ããªã±ã¼ã·ã§ã³ã使ããã¨ãã¯ã<literal>org.hibernate.SQL</"
+"Hibernate ã§ã¢ããªã±ã¼ã·ã§ã³ã使ããã¨ãã¯ã <literal>org.hibernate.SQL</"
"literal> ã«ãã´ãªã® <literal>debug</literal> ãå¸¸ã«æå¹ã«ãã¦ãããã»ããè¯ã"
-"ã§ãããã ä»£æ¿æ¹æ³ã¨ãã¦ã<literal>hibernate.show_sql</literal> ãæå¹ã«ãã"
-"æ¹æ³ãããã¾ãã"
+"ã§ããããä»£æ¿æ¹æ³ã¨ãã¦ã <literal>hibernate.show_sql</literal> ããããã£ã"
+"æå¹ã«ããæ¹æ³ãããã¾ãã"
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
-msgstr "<literal>NamingStrategy</literal> ã®å®è£
"
+msgstr "<literal>NamingStrategy</literal> ã鏿"
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
"to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
-"ã¤ã³ã¿ã¼ãã§ã¤ã¹ <literal>net.sf.hibernate.cfg.NamingStrategy</literal> ã使"
-"ã㨠ãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ãã¨ã¹ãã¼ãè¦ç´ ã®ããã®ãå½åæ¨æºããæå®ã§ãã¾"
+"ã¤ã³ã¿ã¼ãã§ã¼ã¹ <literal>net.sf.hibernate.cfg.NamingStrategy</literal> ã使"
+"ãã¨ãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ãã¨ã¹ãã¼ãè¦ç´ ã®ããã®ãå½åæ¨æºããæå®ã§ãã¾"
"ãã"
#. Tag: para
-#: configuration.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
@@ -2314,53 +1967,38 @@
"noise (<literal>TBL_</literal> prefixes, for example). The default strategy "
"used by Hibernate is quite minimal."
msgstr ""
-"Javaã®èå¥åãããã¼ã¿ãã¼ã¹ã®èå¥åãèªåçæããããã®ã«ã¼ã«ãã ãããã³ã°"
-"ãã¡ã¤ã«ã§ä¸ãããè«ççãªãã«ã©ã ã¨ãã¼ãã«åãã ãç©ççãªããã¼ãã«ã¨ã«ã©"
-"ã åãçæããããã®ã«ã¼ã«ãç¨æãããã¨ãã§ãã¾ãã ãã®æ©è½ã¯ç¹°ãè¿ãã®éé³"
-"ï¼ä¾ãã° <literal>TBL_</literal> ããªãã£ãã¯ã¹ï¼ãåãé¤ãã ãããã³ã°ã"
-"ãã¥ã¡ã³ãã®åé·ããæ¸ãããã¨ã«å½¹ç«ã¡ã¾ãã Hibernateã使ãããã©ã«ãã®æ¦ç¥"
-"ã¯ããªãæå°éã«è¿ããã®ã§ãã"
+"Java ã®èå¥åãããã¼ã¿ãã¼ã¹ã®èå¥åãèªåçæããããã®ã«ã¼ã«ãããããã³ã°"
+"ãã¡ã¤ã«ã§ä¸ãããè«ççãªãã«ã©ã ã¨ãã¼ãã«åãããç©ççãªããã¼ãã«ã¨ã«ã©"
+"ã åãçæããããã®ã«ã¼ã«ãç¨æãããã¨ãã§ãã¾ãããã®æ©è½ã¯ç¹°ãè¿ãã®éé³"
+"ï¼ä¾ãã° <literal>TBL_</literal> ããªãã£ãã¯ã¹ï¼ãåãé¤ãããããã³ã°ããã¥"
+"ã¡ã³ãã®åé·ããæ¸ãããã¨ã«å½¹ç«ã¡ã¾ãã Hibernate ã使ãããã©ã«ãã®æ¦ç¥ã¯ã"
+"ãªãæå°éã«è¿ããã®ã§ãã"
#. Tag: para
-#: configuration.xml:1320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
"ãããã³ã°ã追å ããåã« <literal>Configuration.setNamingStrategy()</"
-"literal> ãå¼ã¶ãã¨ã§ 以ä¸ã®ããã«ç°ãªãæ¦ç¥ãæå®ãããã¨ãã§ãã¾ãï¼"
+"literal> ãå¼ã¶ãã¨ã§ä»¥ä¸ã®ããã«ç°ãªãæ¦ç¥ãæå®ãããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
"strategy that might be a useful starting point for some applications."
msgstr ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> ã¯çµã¿è¾¼ã¿ã®æ¦ç¥"
-"ã§ãã ããã¯ããã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦æç¨ãªéå§ç¹ã¨ãªãããããã¾ã"
+"ã§ããããã¯ããã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦æç¨ãªéå§ç¹ã¨ãªãããããã¾ã"
"ãã"
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
-msgstr "XMLè¨å®ãã¡ã¤ã«"
+msgstr "XML è¨å®ãã¡ã¤ã«"
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -2368,69 +2006,23 @@
"as a replacement for the <literal>hibernate.properties</literal> file or, if "
"both are present, to override properties."
msgstr ""
-"ãã1ã¤ã®æ¹æ³ã¯ <literal>hibernate.cfg.xml</literal> ã¨ããååã®ãã¡ã¤ã«ã§ "
-"ååãªè¨å®ãæå®ããæ¹æ³ã§ãã ãã®ãã¡ã¤ã«ã¯ <literal>hibernate.properties</"
-"literal> ãã¡ã¤ã«ã®ä»£ããã¨ãªãã¾ãã ãã両æ¹ã®ãã¡ã¤ã«ãããã°ãããããã£"
-"ãç½®ãæãããã¾ãã"
+"ãã1ã¤ã®æ¹æ³ã¯ <literal>hibernate.cfg.xml</literal> ã¨ããååã®ãã¡ã¤ã«ã§å"
+"åãªè¨å®ãæå®ããæ¹æ³ã§ãããã®ãã¡ã¤ã«ã¯ <literal>hibernate.properties</"
+"literal> ãã¡ã¤ã«ã®ä»£ããã¨ãªãã¾ãããã両æ¹ã®ãã¡ã¤ã«ãããã°ãããããã£ã"
+"ç½®ãæãããã¾ãã"
#. Tag: para
-#: configuration.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
-"XMLè¨å®ãã¡ã¤ã«ã¯åæè¨å®ã§ <literal>CLASSPATH</literal> ã«é
ç½®ãã¦ãã ã"
-"ãã ãããä¾ã§ãï¼"
+"XML è¨å®ãã¡ã¤ã«ã¯åæè¨å®ã§ <literal>CLASSPATH</literal> ã® root ã«é
ç½®ãã¦"
+"ãã ããããããä¾ã§ãï¼"
-#. Tag: programlisting
-#: configuration.xml:1349
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1351
-#, fuzzy, no-c-format
-msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml</literal> is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
@@ -2439,56 +2031,34 @@
"benefits of using the XML syntax."
msgstr ""
"è¦ã¦ã®ã¨ããããã®æ¹æ³ã®åªä½æ§ã¯è¨å®ã®ããã®ãããã³ã°ãã¡ã¤ã«åãå¤åºãã«ã§"
-"ãããã¨ã§ãã Hibernateãã£ãã·ã¥ããã¥ã¼ãã³ã°ããªããã°ãªããªãã®ã§ãã"
+"ãããã¨ã§ãã Hibernate ãã£ãã·ã¥ããã¥ã¼ãã³ã°ããªããã°ãªããªãã®ã§ãã"
"ã°ã <literal>hibernate.cfg.xml</literal> ã¯ãã便å©ã§ãã "
"<literal>hibernate.properties</literal> 㨠<literal>hibernate.cfg.xml</"
-"literal> ã® ã©ã¡ããã使ãããã¨ãè¦ãã¦ããã¦ãã ããã äºã¤ã¯åããã®ã§ãé"
-"ãã¨ããã¨ããã°XMLæ§æã使ããã¨ã®å©ç¹ã ãã§ãã"
+"literal> ã® ã©ã¡ããã使ãããã¨ãè¦ãã¦ããã¦ãã ããã2ã¤ã¯åããã®ã§ãéã"
+"ã¨ããã¨ããã° XML æ§æã使ããã¨ã®å©ç¹ã ãã§ãã"
#. Tag: para
-#: configuration.xml:1360
-#, fuzzy, no-c-format
+#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
-msgstr "XMLè¨å®ã使ããã¨ã§ãHibernateã¯ä»¥ä¸ã®ããã«ã·ã³ãã«ã«ãªãã¾ãã"
+msgstr "XML è¨å®ã使ããã¨ã§ã Hibernate ã¯ä»¥ä¸ã®ããã«ã·ã³ãã«ã«ãªãã¾ãã"
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can select a different XML configuration file using:"
-msgstr "éãXMLè¨å®ãã¡ã¤ã«ã使ããã¨ãã§ãã¾ãã"
+msgstr "éã XML è¨å®ãã¡ã¤ã«ã使ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: configuration.xml:1370
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
-msgstr "J2EEã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¨ã®çµ±å"
+msgstr "J2EE ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã¨ã®çµ±å"
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
-msgstr "Hibernateã¯J2EEæ§é ã¨çµ±åãããã¤ã³ãããµãã¼ããã¦ãã¾ãã"
+msgstr "Hibernate 㯠J2EE æ§é ã¨çµ±åãããã¤ã³ãããµãã¼ããã¦ãã¾ã:"
#. Tag: para
-#: configuration.xml:1383
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
@@ -2499,27 +2069,25 @@
"(BMT), or you might want to use the optional Hibernate <literal>Transaction</"
"literal> API for this to keep your code portable."
msgstr ""
-"<emphasis>ã³ã³ãã管çãã¼ã¿ã½ã¼ã¹</emphasis>ï¼Hibernate㯠JNDIãæä¾ããã³ã³"
-"ããã管çããJDBCã³ãã¯ã·ã§ã³ã使ç¨ã§ãã¾ãã é常ãJTAæºæ ã® "
+"<emphasis>ã³ã³ãã管çãã¼ã¿ã½ã¼ã¹</emphasis>ï¼ Hibernate 㯠JNDI ãæä¾ãã"
+"ã³ã³ããã管çãã JDBC ã³ãã¯ã·ã§ã³ã使ç¨ã§ãã¾ããé常ã JTA æºæ ã® "
"<literal>TransactionManager</literal> 㨠<literal>ResourceManager</literal> "
-"ããã©ã³ã¶ã¯ã·ã§ã³ç®¡ç(CMT)ã ç¹ã«æ§ã
ãªãã¼ã¿ã½ã¼ã¹ã«ã¾ããã忣ãã©ã³ã¶ã¯"
-"ã·ã§ã³ãæ±ãã¾ãã å½ç¶ããã°ã©ã ã§ãã©ã³ã¶ã¯ã·ã§ã³å¢çãæå®ã§ãã¾ã(BMT)ã "
-"ãããã¯ãè¨è¿°ããã³ã¼ãã®ãã¼ã¿ããªãã£ãä¿ã¤ããã«ã ãªãã·ã§ã³ã®Hibernate"
-"ã® <literal>Transaction</literal> APIã使ããããªãããããã¾ããã"
+"ããã©ã³ã¶ã¯ã·ã§ã³ç®¡ç (CMT)ãç¹ã«æ§ã
ãªãã¼ã¿ã½ã¼ã¹ã«ã¾ããã忣ãã©ã³ã¶ã¯"
+"ã·ã§ã³ãæ±ãã¾ããå½ç¶ããã°ã©ã ã§ãã©ã³ã¶ã¯ã·ã§ã³å¢çãæå®ã§ãã¾ã (BMT)ã"
+"ãããã¯ãè¨è¿°ããã³ã¼ãã®ãã¼ã¿ããªãã£ãä¿ã¤ããã«ããªãã·ã§ã³ã® Hibernate "
+"ã® <literal>Transaction</literal> API ã使ããããªãããããã¾ããã"
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
"<literal>SessionFactory</literal> to JNDI after startup."
msgstr ""
-"<emphasis>èªåJNDIãã¤ã³ãã£ã³ã°</emphasis>ï¼Hibernateã¯JNDIãç«ã¡ä¸ãã£ãå¾"
-"ã« <literal>SessionFactory</literal> ãçæãã¾ãã"
+"<emphasis>èªå JNDI ãã¤ã³ãã£ã³ã°</emphasis>ï¼ Hibernate 㯠JNDI ãç«ã¡ä¸"
+"ãã£ãå¾ã« <literal>SessionFactory</literal> ãçæãã¾ãã"
#. Tag: para
-#: configuration.xml:1407
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
"literal> can be automatically bound to the scope of JTA transactions. Simply "
@@ -2529,17 +2097,16 @@
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
-"<emphasis>JTAã»ãã·ã§ã³ãã¤ã³ãã£ã³ã°</emphasis> ï¼ Hibernate "
-"<literal>Session</literal> ã®ãã©ã³ã¶ã¯ã·ã§ã³å¢çã¯JTAãã©ã³ã¶ã¯ã·ã§ã³ã¨åã"
-"ã«ãªãã¾ãã åç´ã« <literal>SessionFactory</literal> ãJNDIããlookupãã¦ã "
-"ç¾å¨ã® <literal>Session</literal> ãåå¾ãã¾ãã JTAãã©ã³ã¶ã¯ã·ã§ã³ãå®äºã"
-"ãã¨ãã«ãHibernateã <literal>Session</literal> ããã©ãã·ã¥ããã¯ãã¼ãºãã¾"
-"ãã EJBãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã®ä¸ã«ããã©ã³ã¶ã¯ã·ã§ã³å¢çã宣è¨ãã¾"
-"ãã"
+"<emphasis> JTA ã»ãã·ã§ã³ãã¤ã³ãã£ã³ã°</emphasis>ï¼ Hibernate "
+"<literal>Session</literal> ã¯èªåçã« JTA ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¹ã³ã¼ãã«ãã¤ã³"
+"ãããã¾ããåç´ã« <literal>SessionFactory</literal> ã JNDI ãã lookup ã"
+"ã¦ãç¾å¨ã® <literal>Session</literal> ãåå¾ãã¾ãã JTA ãã©ã³ã¶ã¯ã·ã§ã³ãå®"
+"äºããã¨ãã«ã Hibernateã <literal>Session</literal> ããã©ãã·ã¥ããã¯ãã¼"
+"ãºãã¾ãããã©ã³ã¶ã¯ã·ã§ã³å¢çã¯ãå®£è¨ (CMT) ãããã¨ããããã°ã©ã (BMT/"
+"UserTransaction) ãããã¨ãå¯è½ã§ãã"
#. Tag: para
-#: configuration.xml:1420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
@@ -2549,35 +2116,32 @@
"take care of service dependencies (datasource has to be available before "
"Hibernate starts, etc)."
msgstr ""
-"<emphasis>JMXãããã¤:</emphasis> ããJMXã使ç¨å¯è½ãªã¢ããªã±ã¼ã·ã§ã³ãµã¼ã"
-"ï¼ä¾ãã°JBOSSï¼ ãããå ´åãHibernateãMBeanã¨ãã¦ãããã¤ãããã¨ãé¸ã¹ã¾"
-"ãã ãã㯠<literal>Configuration</literal> ãã <literal>SessionFactory</"
-"literal> ã çæããã³ã¼ããç¡ãããã¨ãã§ãã¾ãã ã³ã³ãã㯠"
-"<literal>HibernateService</literal> ãèµ·åãã ãµã¼ãã¹ã®ä¾åãçæ³çã«ç®¡çã"
-"ã¾ãï¼ãã¼ã¿ã½ã¼ã¹ã¯Hibernateããã®ä»ãèµ·åããå㫠使ç¨ã§ããããã«ããªãã"
-"ã°ãªãã¾ããï¼ã"
+"<emphasis> JMX ãããã¤ã¡ã³ã:</emphasis> ãã JMX ã使ç¨å¯è½ãªã¢ããªã±ã¼ã·ã§"
+"ã³ãµã¼ãã¼ï¼ä¾ãã° JBoss ASï¼ ãããå ´åã Hibernate ã MBean ã¨ãã¦ãããã¤"
+"ãããã¨ãé¸ã¹ã¾ãããã㯠<literal>Configuration</literal> ãã "
+"<literal>SessionFactory</literal> ãçæããã³ã¼ããç¡ãããã¨ãã§ãã¾ããã³"
+"ã³ãã㯠<literal>HibernateService</literal> ãèµ·åãããµã¼ãã¹ã®ä¾åãçæ³ç"
+"ã«ç®¡çãã¾ãï¼ãã¼ã¿ã½ã¼ã¹ã¯ Hibernate ããã®ä»ãèµ·åããåã«ä½¿ç¨ã§ããããã«"
+"ããªããã°ãªãã¾ããï¼ã"
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release</literal> to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
-"ç°å¢ã«ä¾åãã¾ããããããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã\"connection containment"
-"\"ã®ä¾å¤ãã¹ãã¼ãããªã è¨å®ã®ãªãã·ã§ã³ <literal>hibernate.connection."
-"aggressive_release</literal> ãtrueã«ãã¦ãã ããã"
+"ç°å¢ã«ä¾åãã¾ãããããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã \"connection containment"
+"\" ã®ä¾å¤ãåºãå ´åãè¨å®ã®ãªãã·ã§ã³ <literal>hibernate.connection."
+"aggressive_release</literal> ã true ã«ãã¦ãã ããã"
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "ãã©ã³ã¶ã¯ã·ã§ã³æ¦ç¥è¨å®"
#. Tag: para
-#: configuration.xml:1440
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
@@ -2586,15 +2150,14 @@
"server, you might want to use bean-managed transactions and call the JTA API "
"and <literal>UserTransaction</literal> when needed."
msgstr ""
-"Hibernate <literal>Session</literal> APIã¯ãã¢ã¼ããã¯ãã£å
ã®ã·ã¹ãã ã®ç®¡è½"
-"ã§ãã ãããããã©ã³ã¶ã¯ã·ã§ã³ã«ä¾åãã¾ããã ããã³ãã¯ã·ã§ã³ãã¼ã«ã®JDBC"
-"ãç´æ¥ä½¿ãããå ´åãJDBC APIãã ãã©ã³ã¶ã¯ã·ã§ã³ãå¼ã¶ãã¨ãã§ãã¾ãã ã"
-"ããJ2EEã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§åä½ããããªããBean管çãã©ã³ã¶ã¯ã·ã§ã³ã使"
-"ãã å¿
è¦ã«å¿ã㦠<literal>UserTransaction</literal> ãJTA APIããå¼ã¶ãã¨ã«"
-"ãªãã§ãããã"
+"Hibernate <literal>Session</literal> API ã¯ãã¢ã¼ããã¯ãã£å
ã®ã·ã¹ãã ã®ç®¡è½"
+"ã§ãããããããã©ã³ã¶ã¯ã·ã§ã³ã«ä¾åãã¾ãããããã³ãã¯ã·ã§ã³ãã¼ã«ã® JDBC "
+"ãç´æ¥ä½¿ãããå ´åã JDBC API ãã ãã©ã³ã¶ã¯ã·ã§ã³ãå¼ã¶ãã¨ãã§ãã¾ããã"
+"ãã J2EE ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã§åä½ããããªãã Bean 管çãã©ã³ã¶ã¯ã·ã§"
+"ã³ã使ããå¿
è¦ã«å¿ã㦠<literal>UserTransaction</literal> ã JTA API ããå¼ã¶"
+"ãã¨ã«ãªãã§ãããã"
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -2605,73 +2168,64 @@
"literal>."
msgstr ""
"2ã¤ï¼ãã以ä¸ï¼ã®ç°å¢ã§äºææ§ã®ããã³ã¼ããç¶æããããã«ããªãã·ã§ã³ã¨ãã¦æ ¹"
-"æ¬çãªã·ã¹ãã ã ã©ããã³ã°ããHibernate <literal>Transaction</literal> APIã"
-"æ¨å¥¨ãã¾ãã Hibernateè¨å®ããããã£ã® <literal>hibernate.transaction."
-"factory_class</literal> ãè¨å®ãããã¨ã§ ããç¹å®ã® <literal>Transaction</"
+"æ¬çãªã·ã¹ãã ãã©ããã³ã°ãã Hibernate <literal>Transaction</literal> API "
+"ãæ¨å¥¨ãã¾ãã Hibernate è¨å®ããããã£ã® <literal>hibernate.transaction."
+"factory_class</literal> ãè¨å®ãããã¨ã§ãããç¹å®ã® <literal>Transaction</"
"literal> ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãæã¤ãã¨ãã§ãã¾ãã"
#. Tag: para
-#: configuration.xml:1455
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are three standard, or built-in, choices:"
msgstr "3ã¤ã®åºæ¬çãªï¼æ¢ã«ããï¼é¸æãæãã¾ãï¼"
-#. Tag: literal
-#: configuration.xml:1461
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
-msgstr "org.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
-msgstr "ãã¼ã¿ãã¼ã¹(JDBC)ãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾ãï¼ããã©ã«ãï¼"
+msgstr "ãã¼ã¿ãã¼ã¹ (JDBC) ãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾ãï¼ããã©ã«ãï¼"
-#. Tag: literal
-#: configuration.xml:1467
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
-msgstr "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
-"ããããã®ã³ã³ããã¹ãï¼ä¾ãã°ãEJBã»ãã·ã§ã³Beanã¡ã½ããï¼ã§é²è¡ä¸ã®ãã©ã³ã¶"
-"ã¯ã·ã§ã³ãåå¨ãããããã㯠æ°ãããã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã¦ãããBean管ç"
-"ãã©ã³ã¶ã¯ã·ã§ã³ã使ããã¦ããå ´åã ã³ã³ãã管çãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾"
-"ãã"
+"ããããã®ã³ã³ããã¹ãï¼ä¾ãã°ã EJB ã»ãã·ã§ã³ Bean ã¡ã½ããï¼ã§é²è¡ä¸ã®ãã©"
+"ã³ã¶ã¯ã·ã§ã³ãåå¨ããå ´åãã³ã³ãã管çãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾ããããã§"
+"ãªãå ´åã¯ãæ°ãããã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã¦ããã Bean 管çãã©ã³ã¶ã¯ã·ã§"
+"ã³ã使ããã¾ãã"
-#. Tag: literal
-#: configuration.xml:1477
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
-msgstr "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
-msgstr "ã³ã³ãã管çJTAãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾ã"
+msgstr "ã³ã³ãã管ç JTA ãã©ã³ã¶ã¯ã·ã§ã³ã«å§è²ãã¾ã"
#. Tag: para
-#: configuration.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
msgstr ""
-"èªåèªèº«ã®ãã©ã³ã¶ã¯ã·ã§ã³æ¦ç¥ï¼ä¾ãã°ãCORBAãã©ã³ã¶ã¯ã·ã§ã³ãµã¼ãã¹ï¼ãå®ç¾©"
-"ãããã¨ãã§ãã¾ãã"
+"èªåèªèº«ã®ãã©ã³ã¶ã¯ã·ã§ã³æ¦ç¥ï¼ä¾ãã°ã CORBA ãã©ã³ã¶ã¯ã·ã§ã³ãµã¼ãã¹ï¼ãå®"
+"義ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: configuration.xml:1489
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
@@ -2680,174 +2234,173 @@
"have to specify how Hibernate should obtain a reference to the "
"<literal>TransactionManager</literal>:"
msgstr ""
-"Hibernateã®ããã¤ãã®æ©è½ï¼ä¾ãã°ãäºæ¬¡ãã£ãã·ã¥ãJTAã«ããã³ã³ããã¹ãã»ã"
-"ã·ã§ã³ çï¼ã¯ 管çãããç°å¢ã®ä¸ã®JTA <literal>TransactionManager</literal> "
-"ã¸ã®ã¢ã¯ã»ã¹ãè¦æ±ãã¾ãã J2EEãã²ã¨ã¤ã®ã¡ã«ããºã ã«è¦æ ¼åããã¦ããªãã®"
-"ã§ã ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«ããã¦ãHibernateã "
-"<literal>TransactionManager</literal> ã®ãªãã¡ã¬ã³ã¹ ãåå¾ããæ¹æ³ãæç¢ºã«ã"
+"Hibernate ã®ããã¤ãã®æ©è½ï¼ä¾ãã°ãäºæ¬¡ãã£ãã·ã¥ã JTA ã«ããã³ã³ããã¹ã"
+"ã»ãã·ã§ã³çï¼ã¯ç®¡çãããç°å¢ã®ä¸ã® JTA <literal>TransactionManager</"
+"literal> ã¸ã®ã¢ã¯ã»ã¹ãè¦æ±ãã¾ãã J2EE ãã²ã¨ã¤ã®ã¡ã«ããºã ã«è¦æ ¼åããã¦ã"
+"ãªãã®ã§ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã«ããã¦ã Hibernateã "
+"<literal>TransactionManager</literal> ã®ãªãã¡ã¬ã³ã¹ãåå¾ããæ¹æ³ãæç¢ºã«ã"
"ãå¿
è¦ãããã¾ãã"
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "JTA ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã¸ã£"
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
msgstr "Transaction Factory"
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
msgstr "Application Server"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JBossTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WeblogicTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
-msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereExtendedJTATransactionLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
-msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. OrionTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
-msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. ResinTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOTMTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOnASTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
-msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JRun4TransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1545
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
-msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. BESTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
-msgstr "<literal>SessionFactory</literal> ã®JNDIã¸ã®ç»é²"
+msgstr "<literal>SessionFactory</literal> ã® JNDI ã¸ã®ç»é²"
#. Tag: para
-#: configuration.xml:1557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
"lookup function of the factory and create new <literal>Session</literal>s. "
"This is not, however, related to a JNDI bound <literal>Datasource</literal>; "
"both simply use the same registry."
msgstr ""
-"JNDIã«ç»é²ããHibernate <literal>SessionFactory</literal> ã¯åç´ã« ãã¡ã¯ããª"
-"ãã«ãã¯ã¢ããããæ°ãã <literal>Session</literal> ãä½ãã¾ãã ããã¯JNDIã«"
-"ç»é²ããã <literal>Datasource</literal> ã«ã¯é¢é£ããã ãäºãã«ã·ã³ãã«ã«ã"
-"ããã®ç»é²ã使ããã¨ã«æ³¨æãã¦ãã ããã"
+"JNDI ã«ç»é²ãã Hibernate <literal>SessionFactory</literal> ã¯ãã¡ã¯ããªã®"
+"ã«ãã¯ã¢ããã¨æ°ãã <literal>Session</literal> ã®ä½æãç°¡æåãã¾ãããã㯠"
+"JNDI ã«ç»é²ããã <literal>Datasource</literal> ã«ã¯é¢é£ããã両æ¹ã¨ãåã«å"
+"ãç»é²ã使ããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: configuration.xml:1564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</"
@@ -2856,15 +2409,14 @@
"will not be bound to JNDI. This is especially useful in environments with a "
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
-"ãã <literal>SessionFactory</literal> ãJNDIãã¼ã ã¹ãã¼ã¹ã«ç»é²ãããå ´"
-"åã ç¹å¥ãªååï¼ä¾ãã°ã <literal>java:hibernate/SessionFactory</literal> ï¼"
+"ãã <literal>SessionFactory</literal> ã JNDI ãã¼ã ã¹ãã¼ã¹ã«ç»é²ãããå ´"
+"åãç¹å¥ãªååï¼ä¾ãã°ã <literal>java:hibernate/SessionFactory</literal> ï¼"
"ã <literal>hibernate.session_factory_name</literal> ããããã£ã«ä½¿ã£ã¦ãã ã"
-"ã ãããã®ããããã£ãçç¥ããå ´åã <literal>SessionFactory</literal> 㯠"
-"JNDIã«ç»é²ããã¾ãããï¼ããã¯Tomcatã®ãããªããã©ã«ãå®è£
ã§JNDIãèªã¿ããå°"
-"ç¨ã®ç°å¢ã®å ´åç¹ã«ä¾¿å©ã§ããï¼"
+"ãããããã®ããããã£ãçç¥ããå ´åã <literal>SessionFactory</literal> 㯠"
+"JNDI ã«ç»é²ããã¾ãããï¼ãã㯠Tomcat ã®ãããªããã©ã«ãå®è£
ã§ JNDI ãèªã¿å"
+"ãå°ç¨ã®ç°å¢ã®å ´åã¯ç¹ã«ä¾¿å©ã§ããï¼"
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -2872,14 +2424,13 @@
"jndi.class</literal> to instantiate an initial context. If they are not "
"specified, the default <literal>InitialContext</literal> will be used."
msgstr ""
-"<literal>SessionFactory</literal> ãJNDIã«ç»é²ããã¨ããHibernate㯠"
+"<literal>SessionFactory</literal> ã JNDI ã«ç»é²ããã¨ãã Hibernate 㯠"
"<literal>hibernate.jndi.url</literal> ã®å¤ã使ç¨ãã<literal>hibernate.jndi."
-"class</literal> ãã¤ãã·ã£ã«ã³ã³ããã¹ãã¨ãã¦å
·ä½åãã¾ãã ããä½ãè¨å®ããª"
+"class</literal> ãã¤ãã·ã£ã«ã³ã³ããã¹ãã¨ãã¦å
·ä½åãã¾ããããä½ãè¨å®ããª"
"ãå ´åã¯ãããã©ã«ãã® <literal>InitialContext</literal> ã使ç¨ãã¾ãã"
#. Tag: para
-#: configuration.xml:1579
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
@@ -2888,27 +2439,25 @@
"<literal>HibernateService</literal> (this is discussed later in greater "
"detail)."
msgstr ""
-"<literal>cfg.buildSessionFactory()</literal> ãã³ã¼ã«å¾ Hibernateã¯èªåçã« "
-"<literal>SessionFactory</literal> ãJNDIã«é
ç½®ãã¾ãã "
-"<literal>HibernateService</literal> ã¨ä¸ç·ã«JMXãããã¤ã¡ã³ãã使ããªãé"
-"ãã ããã¯ãã®å¼ã³åºããã¢ããªã±ã¼ã·ã§ã³å
ã®ä½ããã®ã¹ã¿ã¼ãã¢ããã³ã¼ãï¼ã"
-"ããã¯ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ï¼ ã«é
ç½®ããªããã°ãªããªããã¨ãæå³ãã¾ããï¼å¾ã§"
-"è°è«ãã¾ãï¼"
+"<literal>cfg.buildSessionFactory()</literal> ãã³ã¼ã«å¾ Hibernate ã¯èªåçã« "
+"<literal>SessionFactory</literal> ã JNDI ã«é
ç½®ãã¾ãã "
+"<literal>HibernateService</literal> ã¨ä¸ç·ã« JMX ãããã¤ã¡ã³ãã使ããªãé"
+"ããããã¯ãã®å¼ã³åºããã¢ããªã±ã¼ã·ã§ã³å
ã®ä½ããã®ã¹ã¿ã¼ãã¢ããã³ã¼ãï¼ã"
+"ããã¯ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ï¼ ã«é
ç½®ããªããã°ãªããªããã¨ãæå³ãã¾ãï¼å¾ã§è°"
+"è«ãã¾ãï¼ã"
#. Tag: para
-#: configuration.xml:1586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
"class, you can obtain the <literal>SessionFactory</literal> using a JNDI "
"lookup."
msgstr ""
-"ããJNDI <literal>SessionFactory</literal> ã使ãå ´åãEJBãä»ã®ã¯ã©ã¹ã¯ JNDI"
-"ã«ãã¯ã¢ããã使ã£ã¦ <literal>SessionFactory</literal> ãåå¾ãã¾ãã"
+"ãã JNDI <literal>SessionFactory</literal> ã使ãå ´åã EJB ãä»ã®ã¯ã©ã¹ã¯ "
+"JNDI ã«ãã¯ã¢ããã使ã£ã¦ <literal>SessionFactory</literal> ãåå¾ãã¾ãã"
#. Tag: para
-#: configuration.xml:1591
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
"JNDI in a managed environment and use a <literal>static</literal> singleton "
@@ -2918,32 +2467,30 @@
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
-"管çãããç°å¢ã§ã¯ <literal>SessionFactory</literal> ãJNDIã«ãã¤ã³ããã ã"
-"ãã§ãªããã° <literal>static</literal> ã·ã³ã°ã«ãã³ã使ããã¨ãæ¨å¥¨ãã¾ãã "
-"ãããã£ã詳細ããã¢ããªã±ã¼ã·ã§ã³ã³ã¼ããä¿è·ããããã«ã "
+"管çãããç°å¢ã§ã¯ <literal>SessionFactory</literal> ã JNDI ã«ãã¤ã³ãããã"
+"ãã§ãªããã° <literal>static</literal> ã·ã³ã°ã«ãã³ã使ããã¨ãæ¨å¥¨ãã¾ããã"
+"ããã£ã詳細ããã¢ããªã±ã¼ã·ã§ã³ã³ã¼ããä¿è·ããããã«ã "
"<literal>HibernateUtil.getSessionFactory()</literal> ã®ãããªãã«ãã¼ã¯ã©ã¹ã®"
"ä¸ã«ã <literal>SessionFactory</literal> ãã«ãã¯ã¢ããããã³ã¼ããé ããã¨ã"
-"æ¨å¥¨ãã¾ãã ãã®ãããªãã«ãã¼ã¯ã©ã¹ã¯Hibernateãéå§ãã便å©ãªææ®µã§ããã"
-"ã¾ãã —ï¼ç« ãåç
§ãã¦ãã ããã"
+"æ¨å¥¨ãã¾ãããã®ãããªãã«ãã¼ã¯ã©ã¹ã¯ Hibernate ãéå§ãã便å©ãªææ®µã§ããã"
+"ã¾ãã - ï¼ç« ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
-msgstr "JTAã«ããç¾å¨ã®ã»ãã·ã§ã³ã³ã³ããã¹ãããã¼ã¸ã¡ã³ã"
+msgstr "JTA ã«ããç¾å¨ã®ã»ãã·ã§ã³ã³ã³ããã¹ãããã¼ã¸ã¡ã³ã"
#. Tag: para
-#: configuration.xml:1605
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
-"a discussion of contextual sessions see <link linkend=\"architecture-current-"
-"session\"></link>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
+"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
+"is no Hibernate <literal>Session</literal> associated with the current JTA "
+"transaction, one will be started and associated with that JTA transaction "
+"the first time you call <literal>sessionFactory.getCurrentSession()</"
+"literal>. The <literal>Session</literal>s retrieved via "
"<literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
@@ -2957,33 +2504,31 @@
"preferred."
msgstr ""
"ãã£ã¨ãç°¡åã« <literal>Session</literal> ã¨ãã©ã³ã¶ã¯ã·ã§ã³ãæ±ãæ¹æ³ã¯ã "
-"Hibernateãèªåçã«ãç¾å¨ã®ã <literal>Session</literal> ã管çãããã¨ã§"
-"ãã <xref linkend=\"architecture-current-session\">ã«ã¬ã³ãã»ãã·ã§ã³</"
-"xref> ã®èª¬æãåç
§ãã¦ãã ããã ãã <literal>ãJTAã</literal> ã»ãã·ã§ã³ã³"
-"ã³ããã¹ãã使ã£ãä¸ã§ã ç¾å¨ã®JTAãã©ã³ã¶ã¯ã·ã§ã³ã¨Hibernate "
-"<literal>Session</literal> ãé¢é£ãã¦ããªãå ´åã¯ã æåã« "
-"<literal>sessionFactory.getCurrentSession()</literal> ãã³ã¼ã«ãã JTAãã©ã³"
-"ã¶ã¯ã·ã§ã³ã¨ã®é¢é£ä»ããè¡ã£ã¦ãã ããã <literal>ãJTAã</literal> ã³ã³ãã"
-"ã¹ãã® <literal>getCurrentSession()</literal> ã éãã¦åå¾ãã "
-"<literal>Session</literal> ã¯ããã©ã³ã¶ã¯ã·ã§ã³ãå®äºããåã« èªåçã«ãã©ã"
-"ã·ã¥ããå®äºããå¾ã«ã¯èªåçã«ã¯ãã¼ãºãã¾ãã ã¾ããåã¹ãã¼ãã¡ã³ãå¾ã«JDBC"
-"ã³ãã¯ã·ã§ã³ãç©æ¥µçã«ãªãªã¼ã¹ãã¾ãã ããã«ããJTAãã©ã³ã¶ã¯ã·ã§ã³ã®ã©ã¤ã"
-"ãµã¤ã¯ã«ã§ <literal>Session</literal> ã管çãããã¨ãã§ãã ã¦ã¼ã¶ã¼ã®ã³ã¼ã"
-"ãããã®ãããªç®¡çãããã³ã¼ããæé¤ã§ãã¾ãã <literal>UserTransaction</"
-"literal> ãéãã¦JTAãããã°ã©ã ã§ç®¡çãããã¨ãã§ãã¾ãã ã¾ãã¯ãï¼ãã¼ã¿ã"
-"ã«ãªã³ã¼ãã§ããã°ï¼Hibernate <literal>Transaction</literal> APIã ãã©ã³ã¶ã¯"
-"ã·ã§ã³å¢çã¨ãã¦ä½¿ããã¨ãã§ãã¾ãã EJBã³ã³ããã使ãã¨ãã¯ãCMTã«ãã宣è¨ç"
-"ãã©ã³ã¶ã¯ã·ã§ã³å¢çã好ã¾ããã§ãã"
+"Hibernate ãèªåçã«ãç¾å¨ã®ã <literal>Session</literal> ã管çãããã¨ã§"
+"ãã <xref linkend=\"architecture-current-session\"/> ã«ã¬ã³ãã»ãã·ã§ã³ã®èª¬"
+"æãåç
§ãã¦ãã ããããã <literal>\"jta\"</literal> ã»ãã·ã§ã³ã³ã³ããã¹ã"
+"ã使ã£ãä¸ã§ãç¾å¨ã® JTA ãã©ã³ã¶ã¯ã·ã§ã³ã¨ Hibernate <literal>Session</"
+"literal> ãé¢é£ãã¦ããªãå ´åã¯ãæåã« <literal>sessionFactory."
+"getCurrentSession()</literal> ãã³ã¼ã«ãã JTA ãã©ã³ã¶ã¯ã·ã§ã³ã¨ã®é¢é£ä»ãã"
+"è¡ã£ã¦ãã ããã <literal>\"jta\"</literal> ã³ã³ããã¹ãã® "
+"<literal>getCurrentSession()</literal> ãéãã¦åå¾ãã <literal>Session</"
+"literal> ã¯ããã©ã³ã¶ã¯ã·ã§ã³ãå®äºããåã«èªåçã«ãã©ãã·ã¥ããå®äºããå¾ã«"
+"ã¯èªåçã«ã¯ãã¼ãºãã¾ããã¾ããåã¹ãã¼ãã¡ã³ãå¾ã« JDBC ã³ãã¯ã·ã§ã³ãç©æ¥µ"
+"çã«ãªãªã¼ã¹ãã¾ããããã«ãã JTA ãã©ã³ã¶ã¯ã·ã§ã³ã®ã©ã¤ããµã¤ã¯ã«ã§ "
+"<literal>Session</literal> ã管çãããã¨ãã§ããã¦ã¼ã¶ã¼ã®ã³ã¼ããããã®ãã"
+"ãªç®¡çãããã³ã¼ããæé¤ã§ãã¾ãã <literal>UserTransaction</literal> ãéã"
+"㦠JTA ãããã°ã©ã ã§ç®¡çãããã¨ãã§ãã¾ããã¾ãã¯ãï¼ãã¼ã¿ãã«ãªã³ã¼ãã§ã"
+"ãã°ï¼ Hibernate <literal>Transaction</literal> API ããã©ã³ã¶ã¯ã·ã§ã³å¢çã¨"
+"ãã¦ä½¿ããã¨ãã§ãã¾ãã EJB ã³ã³ããã使ãã¨ãã¯ã CMT ã«ãã宣è¨çãã©ã³ã¶"
+"ã¯ã·ã§ã³å¢çã好ã¾ããã§ãã"
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
-msgstr "JMXãããã¤ã¡ã³ã"
+msgstr "JMX ãããã¤ã¡ã³ã"
#. Tag: para
-#: configuration.xml:1630
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
@@ -2991,81 +2536,28 @@
"the one in <literal>HibernateUtil</literal>, or you can deploy Hibernate as "
"a <emphasis>managed service</emphasis>."
msgstr ""
-"<literal>SessionFactory</literal> ãJNDIããåå¾ããããã«ã¯ <literal>cfg."
-"buildSessionFactory()</literal> è¡ãã©ããã§å®è¡ãã¦ããªããã°ãªãã¾ããã ã"
-"ãªãã¯ãããã<literal>static</literal> åæåãããã¯å
"
+"<literal>SessionFactory</literal> ã JNDI ããåå¾ããããã«ã¯ <literal>cfg."
+"buildSessionFactory()</literal> è¡ãã©ããã§å®è¡ãã¦ããªããã°ãªãã¾ãããã"
+"ãªãã¯ãããã <literal>static</literal> åæåãããã¯å
"
"ï¼ <literal>HibernateUtil</literal> ã®ãããªï¼ã <emphasis>managed service</"
-"emphasis> ã¨ãã¦Hibernateããããã¤ããããã©ã¡ããã§å®è¡ã§ãã¾ãã"
+"emphasis> ã¨ã㦠Hibernate ããããã¤ããããã©ã¡ããã§å®è¡ã§ãã¾ãã"
#. Tag: para
-#: configuration.xml:1638
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
"literal> for deployment on an application server with JMX capabilities, such "
"as JBoss AS. The actual deployment and configuration is vendor-specific. "
"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
-"JBOSSã®ãããªJMXã®æ©è½ã§ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«ãããã¤ããããã« "
-"<literal>org.hibernate.jmx.HibernateService</literal> ã使ã£ã¦ãé
ç½®ãã¾ãã "
-"å®éã®ãããã¤ã¡ã³ãã¨è¨å®ã¯ãã³ãã¼ç¹æã§ãã ããã§ä¾ã¨ãã¦JBOSS 4.0.xç¨ã® "
-"<literal>jboss-service.xml</literal> ã示ãã¾ãã"
+"JBoss AS ã®ãã㪠JMX ã®æ©è½ã§ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã«ãããã¤ããããã« "
+"<literal>org.hibernate.jmx.HibernateService</literal> ã使ã£ã¦ãé
ç½®ãã¾ãã"
+"å®éã®ãããã¤ã¡ã³ãã¨è¨å®ã¯ãã³ãã¼ç¹æã§ããããã§ä¾ã¨ã㦠JBoss 4.0.x ç¨"
+"ã® <literal>jboss-service.xml</literal> ã示ãã¾ãã"
-#. Tag: programlisting
-#: configuration.xml:1645
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1647
-#, fuzzy, no-c-format
-msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
"packaged in a JAR file with the extension <literal>.sar</literal> (service "
"archive). You also need to package Hibernate, its required third-party "
@@ -3076,213 +2568,338 @@
"JBoss AS documentation for more information about JMX service and EJB "
"deployment."
msgstr ""
-"ãã®ãã¡ã¤ã«ã¯ <literal>META-INF</literal> ãã£ã¬ã¯ããªã«é
ç½®ããã JARãã¡ã¤"
-"ã«ãæ¡å¼µãã <literal>.sar</literal> (service archive)ã§ããã±ã¼ã¸åããã¾"
-"ãã åæ§ã«Hibernateããã±ã¼ã¸ãå¿
è¦ã§ããã¾ããHibernateã¯ãµã¼ããã¼ãã£ã®ã©"
-"ã¤ãã©ãªãè¦æ±ãã¾ãã ã³ã³ãã¤ã«ããæ°¸ç¶åã¯ã©ã¹ã¨ãã®ãããã³ã°ãã¡ã¤ã«ãå"
-"æ§ã«ã¢ã¼ã«ã¤ãï¼.sarãã¡ã¤ã«ï¼ã«å
¥ãã¾ãã ã¨ã³ã¿ã¼ãã©ã¤ãºbeanï¼é常ã¯ã»ã"
-"ã·ã§ã³beanï¼ã¯èªèº«ã®JARãã¡ã¤ã«ãä¿æãã¾ããã 1åã§ï¼ãããï¼ãããã¤å¯è½ãª"
-"ã¦ãããã®ããã«ã¡ã¤ã³ãµã¼ãã¹ã¢ã¼ã«ã¤ãã¨ãã¦ãã®EJB JARãã¡ã¤ã«ãã¤ã³ã¯ã«ã¼"
-"ããã ãã¨ãã§ãã¾ããJBossã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®ããã¥ã¡ã³ãã«JXMãµã¼ãã¹"
-"㨠EJBãããã¤ã¡ã³ãã®ããå¤ãã®æ
å ±ãããã¾ãã"
+"ãã®ãã¡ã¤ã«ã¯ <literal>META-INF</literal> ãã£ã¬ã¯ããªã«é
ç½®ããã JAR ãã¡"
+"ã¤ã«ãæ¡å¼µãã <literal>.sar</literal> (service archive) ã§ããã±ã¼ã¸åããã¾"
+"ããåæ§ã« Hibernate ããã±ã¼ã¸ãå¿
è¦ã§ããã¾ãã Hibernate ã¯ãµã¼ããã¼ãã£"
+"ã®ã©ã¤ãã©ãªãè¦æ±ãã¾ããã³ã³ãã¤ã«ããæ°¸ç¶åã¯ã©ã¹ã¨ãã®ãããã³ã°ãã¡ã¤ã«"
+"ãåæ§ã«ã¢ã¼ã«ã¤ãï¼.sarãã¡ã¤ã«ï¼ã«å
¥ãã¾ããã¨ã³ã¿ã¼ãã©ã¤ãº Bean ï¼é常ã¯"
+"ã»ãã·ã§ã³ Bean ï¼ã¯èªèº«ã® JAR ãã¡ã¤ã«ãä¿æãã¾ããã1åã§ï¼ãããï¼ããã"
+"ã¤å¯è½ãªã¦ãããã®ããã«ã¡ã¤ã³ãµã¼ãã¹ã¢ã¼ã«ã¤ãã¨ãã¦ãã® EJB JAR ãã¡ã¤ã«ã"
+"å«ãããã¨ãã§ãã¾ãã JBoss AS ã®ããã¥ã¡ã³ãã« JXM ãµã¼ãã¹ã¨ EJB ãããã¤"
+"ã¡ã³ãã®ããå¤ãã®æ
å ±ãããã¾ãã"
+#, fuzzy
#~ msgid ""
-#~ "<literal>hibernate.properties</literal> is the easiest approach if you "
-#~ "want to get started quickly."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addResource(\"Item.hbm.xml\")\n"
+#~ " .addResource(\"Bid.hbm.xml\");]]>"
#~ msgstr ""
-#~ "ä»ããå§ãããã®ãªãã<literal>hibernate.properties</literal> ã使ãã®ãä¸"
-#~ "çªã®è¿éã§ãã"
+#~ "Configuration cfg = new Configuration()\n"
+#~ " .addResource(\"Item.hbm.xml\")\n"
+#~ " .addResource(\"Bid.hbm.xml\");"
-#~ msgid "Hibernate logs various events using Apache commons-logging."
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class);]]>"
#~ msgstr ""
-#~ "Hibernateã¯Apache commons-logginã使ã£ã¦ããã¾ãã¾ãªã¤ãã³ãããã°ã¨ã㦠"
-#~ "åºåãã¾ãã"
+#~ "Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class);"
+#, fuzzy
#~ msgid ""
-#~ "The commons-logging service will direct output to either Apache Log4j (if "
-#~ "you include <literal>log4j.jar</literal> in your classpath) or JDK1.4 "
-#~ "logging (if running under JDK1.4 or above). You may download Log4j from "
-#~ "<literal>http://jakarta.apache.org</literal>. To use Log4j you will need "
-#~ "to place a <literal>log4j.properties</literal> file in your classpath, an "
-#~ "example properties file is distributed with Hibernate in the <literal>src/"
-#~ "</literal> directory."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class)\n"
+#~ " .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
+#~ "MySQLInnoDBDialect\")\n"
+#~ " .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/"
+#~ "jdbc/test\")\n"
+#~ " .setProperty(\"hibernate.order_updates\", \"true\");]]>"
#~ msgstr ""
-#~ "commons-loggingãµã¼ãã¹ã¯ï¼ã¯ã©ã¹ãã¹ã« <literal>log4j.jar</literal> ãå«"
-#~ "ããã°ï¼Apache Log4jã«ã ã¾ãï¼JDK1.4ããã以ä¸ã§å®è¡ãããã°ï¼JDK1.4 "
-#~ "loggingã«ç´æ¥åºåãã¾ãã Log4j㯠<literal>http://jakarta.apache.org</"
-#~ "literal> ãããã¦ã³ãã¼ãã§ãã¾ãã Log4jã使ãããã«ã¯ãã¯ã©ã¹ãã¹ã« "
-#~ "<literal>log4j.properties</literal> ãã¡ã¤ã«ãé
ç½®ããå¿
è¦ãããã¾ãã ä¾"
-#~ "ã®ããããã£ãã¡ã¤ã«ã¯Hibernateã¨ä¸ç·ã«é
å¸ããããã㯠<literal>src/</"
-#~ "literal> ãã£ã¬ã¯ããªã«ããã¾ãã"
+#~ "Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class)\n"
+#~ " .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
+#~ "MySQLInnoDBDialect\")\n"
+#~ " .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/"
+#~ "jdbc/test\")\n"
+#~ " .setProperty(\"hibernate.order_updates\", \"true\");"
-#~ msgid "<placeholder-1/> (optional)"
-#~ msgstr "<placeholder-1/> (ãªãã·ã§ã³)"
+#, fuzzy
+#~ msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
+#~ msgstr "SessionFactory sessions = cfg.buildSessionFactory();"
-#~ msgid "InitialContextFactory"
-#~ msgstr "InitialContextFactory"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sessions.openSession(); // open a new Session]]"
+#~ ">"
+#~ msgstr "Session session = sessions.openSession(); // open a new Session"
-#~ msgid "class of the JNDI <placeholder-1/>"
-#~ msgstr "JNDIã¯ã©ã¹ <placeholder-1/>"
+#~ msgid "database user"
+#~ msgstr "ãã¼ã¿ãã¼ã¹ã®ã¦ã¼ã¶ã¼"
-#~ msgid "eg."
-#~ msgstr "ä¾ï¼"
+#~ msgid "database user password"
+#~ msgstr "ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶ã¼ãã¹ã¯ã¼ã"
-#~ msgid "full.classname.of.Dialect"
-#~ msgstr "full.classname.of.Dialect"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
+#~ "hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
+#~ "hibernate.connection.username = myuser\n"
+#~ "hibernate.connection.password = secret\n"
+#~ "hibernate.c3p0.min_size=5\n"
+#~ "hibernate.c3p0.max_size=20\n"
+#~ "hibernate.c3p0.timeout=1800\n"
+#~ "hibernate.c3p0.max_statements=50\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
+#~ msgstr ""
+#~ "hibernate.connection.driver_class = org.postgresql.Driver\n"
+#~ "hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
+#~ "hibernate.connection.username = myuser\n"
+#~ "hibernate.connection.password = secret\n"
+#~ "hibernate.c3p0.min_size=5\n"
+#~ "hibernate.c3p0.max_size=20\n"
+#~ "hibernate.c3p0.timeout=1800\n"
+#~ "hibernate.c3p0.max_statements=50\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect"
-#~ msgid "debug"
-#~ msgstr "debug"
+#~ msgid "datasource JNDI name"
+#~ msgstr "ãã¼ã¿ã½ã¼ã¹ã® JNDI å"
-#~ msgid "SCHEMA_NAME"
-#~ msgstr "SCHEMA_NAME"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
+#~ "hibernate.transaction.factory_class = \\\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ "hibernate.transaction.manager_lookup_class = \\\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
+#~ msgstr ""
+#~ "hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
+#~ "hibernate.transaction.factory_class = \\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ "hibernate.transaction.manager_lookup_class = \\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect"
-#~ msgid "CATALOG_NAME"
-#~ msgstr "CATALOG_NAME"
+#~ msgid "<entry>DB2</entry>"
+#~ msgstr "<entry>DB2</entry>"
-#~ msgid "SessionFactory"
-#~ msgstr "SessionFactory"
+#~ msgid "hibernate.query.substitutions true=1, false=0"
+#~ msgstr "hibernate.query.substitutions true=1, false=0"
-#~ msgid "jndi/composite/name"
-#~ msgstr "jndi/composite/name"
+#~ msgid "hibernate.query.substitutions toLowercase=LOWER"
+#~ msgstr "hibernate.query.substitutions toLowercase=LOWER"
-#~ msgid "0"
-#~ msgstr "0"
+#~ msgid "org.hibernate"
+#~ msgstr "org.hibernate"
-#~ msgid "false"
-#~ msgstr "false"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
+#~ " .addFile(\"Item.hbm.xml\")\n"
+#~ " .addFile(\"Bid.hbm.xml\")\n"
+#~ " .buildSessionFactory();]]>"
+#~ msgstr ""
+#~ "SessionFactory sf = new Configuration()\n"
+#~ " .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
+#~ " .addFile(\"Item.hbm.xml\")\n"
+#~ " .addFile(\"Bid.hbm.xml\")\n"
+#~ " .buildSessionFactory();"
-#~ msgid "Statement.setFetchSize()"
-#~ msgstr "Statement.setFetchSize()"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <!-- a SessionFactory instance listed as /jndi/name -->\n"
+#~ " <session-factory\n"
+#~ " name=\"java:hibernate/SessionFactory\">\n"
+#~ "\n"
+#~ " <!-- properties -->\n"
+#~ " <property name=\"connection.datasource\">java:/comp/env/jdbc/"
+#~ "MyDB</property>\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
+#~ "property>\n"
+#~ " <property name=\"show_sql\">false</property>\n"
+#~ " <property name=\"transaction.factory_class\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ " </property>\n"
+#~ " <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- mapping files -->\n"
+#~ " <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
+#~ " <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
+#~ "\n"
+#~ " <!-- cache settings -->\n"
+#~ " <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-"
+#~ "write\"/>\n"
+#~ " <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only"
+#~ "\"/>\n"
+#~ " <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
+#~ "usage=\"read-write\"/>\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <!-- a SessionFactory instance listed as /jndi/name -->\n"
+#~ " <session-factory\n"
+#~ " name=\"java:hibernate/SessionFactory\">\n"
+#~ "\n"
+#~ " <!-- properties -->\n"
+#~ " <property name=\"connection.datasource\">java:/comp/env/"
+#~ "jdbc/MyDB</property>\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect."
+#~ "MySQLDialect</property>\n"
+#~ " <property name=\"show_sql\">false</property>\n"
+#~ " <property name=\"transaction.factory_class\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ " </property>\n"
+#~ " <property name=\"jta.UserTransaction\">java:comp/"
+#~ "UserTransaction</property>\n"
+#~ "\n"
+#~ " <!-- mapping files -->\n"
+#~ " <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
+#~ " <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
+#~ "\n"
+#~ " <!-- cache settings -->\n"
+#~ " <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-"
+#~ "write\"/>\n"
+#~ " <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-"
+#~ "only\"/>\n"
+#~ " <collection-cache collection=\"org.hibernate.auction.Item.bids"
+#~ "\" usage=\"read-write\"/>\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>"
-#~ msgid "true"
-#~ msgstr "executeBatch()"
-
-#~ msgid "executeBatch()"
-#~ msgstr "true"
-
-#~ msgid "Batcher"
-#~ msgstr "Batcher"
-
-#~ msgid "classname.of.BatcherFactory"
-#~ msgstr "classname.of.BatcherFactory"
-
-#~ msgid "binary"
-#~ msgstr "binary"
-
-#~ msgid "serializable"
-#~ msgstr "serializable"
-
-#~ msgid "PreparedStatement.getGeneratedKeys()"
-#~ msgstr "PreparedStatement.getGeneratedKeys()"
-
-#~ msgid "true|false"
-#~ msgstr "true|false"
-
-#~ msgid "ConnectionProvider"
-#~ msgstr "ConnectionProvider"
-
-#~ msgid "classname.of.ConnectionProvider"
-#~ msgstr "classname.of.ConnectionProvider"
-
-#~ msgid "java.sql.Connection"
-#~ msgstr "java.sql.Connection"
-
-#~ msgid "1, 2, 4, 8"
-#~ msgstr "1, 2, 4, 8"
-
-#~ msgid "after_statement"
-#~ msgstr "after_statement"
-
-#~ msgid "after_transaction"
-#~ msgstr "after_transaction"
-
-#~ msgid "auto"
-#~ msgstr "auto"
-
-#~ msgid "hibernate.connection."
-#~ msgstr "<propertyName>"
-
#, fuzzy
-#~ msgid "<propertyName>"
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration().configure()."
+#~ "buildSessionFactory();]]>"
#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate.connection.<placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "propertyName\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate.jndi.<placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "propertyName"
+#~ "SessionFactory sf = new Configuration().configure().buildSessionFactory();"
-#~ msgid "DriverManager.getConnection()"
-#~ msgstr "DriverManager.getConnection()"
-
-#~ msgid "Pass the JDBC property <placeholder-1/> to <placeholder-2/>."
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .configure(\"catdb.cfg.xml\")\n"
+#~ " .buildSessionFactory();]]>"
#~ msgstr ""
-#~ "JDBCã® <placeholder-1/> ããããã£ãã <placeholder-2/> ã«æ¸¡ãã¾ãã"
+#~ "SessionFactory sf = new Configuration()\n"
+#~ " .configure(\"catdb.cfg.xml\")\n"
+#~ " .buildSessionFactory();"
-#~ msgid "hibernate.jndi."
-#~ msgstr "<propertyName>"
-
-#~ msgid "Pass the property <placeholder-1/> to the JNDI <placeholder-2/>."
-#~ msgstr "<placeholder-1/> ããããã£ãã JNDI <placeholder-2/> ã«æ¸¡ãã¾ãã"
-
-#~ msgid "CacheProvider"
-#~ msgstr "CacheProvider"
-
-#~ msgid "classname.of.CacheProvider"
-#~ msgstr "classname.of.CacheProvider"
-
-#~ msgid "<cache>"
-#~ msgstr "<cache>"
-
-#~ msgid "QueryCache"
-#~ msgstr "QueryCache"
-
-#~ msgid "StandardQueryCache"
-#~ msgstr "StandardQueryCache"
-
-#~ msgid "classname.of.QueryCache"
-#~ msgstr "classname.of.QueryCache"
-
-#~ msgid "prefix"
-#~ msgstr "prefix"
-
-#~ msgid "TransactionFactory"
-#~ msgstr "Transaction"
-
-#~ msgid "Transaction"
-#~ msgstr "TransactionFactory"
-
-#~ msgid "JDBCTransactionFactory"
-#~ msgstr "JDBCTransactionFactory"
-
-#~ msgid "classname.of.TransactionFactory"
-#~ msgstr "classname.of.TransactionFactory"
-
-#~ msgid "JTATransactionFactory"
-#~ msgstr "UserTransaction"
-
-#~ msgid "UserTransaction"
-#~ msgstr "JTATransactionFactory"
-
-#~ msgid "TransactionManagerLookup"
-#~ msgstr "TransactionManagerLookup"
-
-#~ msgid "classname.of.TransactionManagerLookup"
-#~ msgstr "classname.of.TransactionManagerLookup"
-
-#~ msgid "Session"
-#~ msgstr "Session"
-
-#~ msgid "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-#~ msgstr "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-
-#~ msgid "create-drop"
-#~ msgstr "create-drop"
-
-#~ msgid "hibernate.cfg.xml"
-#~ msgstr "hibernate.cfg.xml"
-
-#~ msgid "DB2"
-#~ msgstr "DB2"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\"?>\n"
+#~ "<server>\n"
+#~ "\n"
+#~ "<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
+#~ " name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
+#~ "\n"
+#~ " <!-- Required services -->\n"
+#~ " <depends>jboss.jca:service=RARDeployer</depends>\n"
+#~ " <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
+#~ "\n"
+#~ " <!-- Bind the Hibernate service to JNDI -->\n"
+#~ " <attribute name=\"JndiName\">java:/hibernate/SessionFactory</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Datasource settings -->\n"
+#~ " <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
+#~ " <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Transaction integration -->\n"
+#~ " <attribute name=\"TransactionStrategy\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory</attribute>\n"
+#~ " <attribute name=\"TransactionManagerLookupStrategy\">\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup</"
+#~ "attribute>\n"
+#~ " <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
+#~ " <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Fetching options -->\n"
+#~ " <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
+#~ "\n"
+#~ " <!-- Second-level caching -->\n"
+#~ " <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
+#~ " <attribute name=\"CacheProviderClass\">org.hibernate.cache."
+#~ "EhCacheProvider</attribute>\n"
+#~ " <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Logging -->\n"
+#~ " <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Mapping files -->\n"
+#~ " <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/"
+#~ "Category.hbm.xml</attribute>\n"
+#~ "\n"
+#~ "</mbean>\n"
+#~ "\n"
+#~ "</server>]]>"
+#~ msgstr ""
+#~ "<?xml version=\"1.0\"?>\n"
+#~ "<server>\n"
+#~ "\n"
+#~ "<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
+#~ " name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory"
+#~ "\">\n"
+#~ "\n"
+#~ " <!-- Required services -->\n"
+#~ " <depends>jboss.jca:service=RARDeployer</depends>\n"
+#~ " <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</"
+#~ "depends>\n"
+#~ "\n"
+#~ " <!-- Bind the Hibernate service to JNDI -->\n"
+#~ " <attribute name=\"JndiName\">java:/hibernate/SessionFactory</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Datasource settings -->\n"
+#~ " <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
+#~ " <attribute name=\"Dialect\">org.hibernate.dialect."
+#~ "HSQLDialect</attribute>\n"
+#~ "\n"
+#~ " <!-- Transaction integration -->\n"
+#~ " <attribute name=\"TransactionStrategy\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory</"
+#~ "attribute>\n"
+#~ " <attribute name=\"TransactionManagerLookupStrategy\">\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup</"
+#~ "attribute>\n"
+#~ " <attribute name=\"FlushBeforeCompletionEnabled\">true</"
+#~ "attribute>\n"
+#~ " <attribute name=\"AutoCloseSessionEnabled\">true</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Fetching options -->\n"
+#~ " <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
+#~ "\n"
+#~ " <!-- Second-level caching -->\n"
+#~ " <attribute name=\"SecondLevelCacheEnabled\">true</"
+#~ "attribute>\n"
+#~ " <attribute name=\"CacheProviderClass\">org.hibernate.cache."
+#~ "EhCacheProvider</attribute>\n"
+#~ " <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Logging -->\n"
+#~ " <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Mapping files -->\n"
+#~ " <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/"
+#~ "Category.hbm.xml</attribute>\n"
+#~ "\n"
+#~ "</mbean>\n"
+#~ "\n"
+#~ "</server>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,42 +1,41 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-13 11:47+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
msgstr "ã¤ã³ã¿ã¼ã»ãã¿ã¨ã¤ãã³ã"
#. Tag: para
-#: events.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
"inside Hibernate. This allows for the implementation of generic "
"functionality and the extension of Hibernate functionality."
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ãHibernateã®å
é¨ã§çºçããã¤ãã³ãã«å¯¾å¿ã§ããã¨å½¹ã«ç«ã¤ãã¨"
-"ãããã¾ãã ãã種ã®ä¸è¬çãªæ©è½ãå®è£
ã§ããããã«ãªãã ã¾ãHibernateã®æ©è½"
-"ãæ¡å¼µãããã¨ãã§ããããã«ãªãã¾ãã"
+"ã¢ããªã±ã¼ã·ã§ã³ã Hibernate ã®å
é¨ã§çºçããã¤ãã³ãã«å¯¾å¿ã§ããã¨å½¹ã«ç«ã¤ã"
+"ã¨ãããã¾ãããã種ã®ä¸è¬çãªæ©è½ãå®è£
ã§ããããã«ãªããã¾ã Hibernate ã®æ©"
+"è½ãæ¡å¼µãããã¨ãã§ããããã«ãªãã¾ãã"
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr "ã¤ã³ã¿ã¼ã»ãã¿"
#. Tag: para
-#: events.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
"session to the application, allowing the application to inspect and/or "
@@ -48,118 +47,27 @@
"<literal>lastUpdateTimestamp</literal> property when an <literal>Auditable</"
"literal> is updated."
msgstr ""
-"<literal>Interceptor</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã使ã£ã¦ã ã»ãã·ã§ã³ããã¢ã"
-"ãªã±ã¼ã·ã§ã³ã¸ã³ã¼ã«ããã¯ããããã¨ãã§ãã¾ãã ããã«ããæ°¸ç¶ãªãã¸ã§ã¯ãã®"
-"ä¿åãæ´æ°ãåé¤ãèªã¿è¾¼ã¿ã®åã«ã ã¢ããªã±ã¼ã·ã§ã³ãããããã£ãæ¤æ»ãããæ"
-"ä½ãããã§ããããã«ãªãã¾ãã ããã¯ç£æ»æ
å ±ã®è¿½è·¡ã«å©ç¨ã§ãã¾ãã ä¸ã®ä¾ã§ "
+"<literal>Interceptor</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ã£ã¦ãã»ãã·ã§ã³ããã¢ããª"
+"ã±ã¼ã·ã§ã³ã¸ã³ã¼ã«ããã¯ããããã¨ãã§ãã¾ããããã«ããæ°¸ç¶ãªãã¸ã§ã¯ãã®ä¿"
+"åãæ´æ°ãåé¤ãèªã¿è¾¼ã¿ã®åã«ãã¢ããªã±ã¼ã·ã§ã³ãããããã£ãæ¤æ»ãããæä½"
+"ãããã§ããããã«ãªãã¾ããããã¯ç£æ»æ
å ±ã®è¿½è·¡ã«å©ç¨ã§ãã¾ããä¸ã®ä¾ã§ "
"<literal>Interceptor</literal> 㯠<literal>Auditable</literal> ã使ãããã¨"
"èªåçã« <literal>createTimestamp</literal> ãè¨å®ãã <literal>Auditable</"
"literal> ãæ´æ°ãããã¨èªåçã« <literal>lastUpdateTimestamp</literal> ããã"
"ãã£ãæ´æ°ãã¾ãã"
#. Tag: para
-#: events.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
"<literal>EmptyInterceptor</literal>."
msgstr ""
-"<literal>Interceptor</literal> ãç´æ¥å®è£
ãããã ï¼ããã«ããã®ã¯ï¼"
+"<literal>Interceptor</literal> ãç´æ¥å®è£
ãããã ï¼ããã«ããã®ã¯ï¼ "
"<literal>EmptyInterceptor</literal> ãæ¡å¼µãããã§ãã¾ãã"
-#. Tag: programlisting
-#: events.xml:56
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:58
-#, fuzzy, no-c-format
-msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
"<literal>SessionFactory</literal>-scoped."
msgstr ""
@@ -167,26 +75,18 @@
"㨠<literal>SessionFactory</literal> ã¹ã³ã¼ãã®ãã®ã§ãã"
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
"is opened using one of the overloaded SessionFactory.openSession() methods "
"accepting an <literal>Interceptor</literal>."
msgstr ""
-"<literal>Session</literal> ã¹ã³ã¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ã¯ã ã»ãã·ã§ã³ããªã¼ãã³"
-"ããã¨ãã«æå®ãã¾ãã <literal>Interceptor</literal> ã弿°ã«åã"
+"<literal>Session</literal> ã¹ã³ã¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ã¯ãã»ãã·ã§ã³ããªã¼ãã³ã"
+"ãã¨ãã«æå®ãã¾ãã <literal>Interceptor</literal> ã弿°ã«åã "
"SessionFactory.openSession() ã®ãªã¼ãã¼ãã¼ãã¡ã½ããã®ä¸ã¤ã使ãã¾ãã"
-#. Tag: programlisting
-#: events.xml:69
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:71
-#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
"the <literal>Configuration</literal> object prior to building the "
@@ -198,44 +98,34 @@
"sessions will use this interceptor potentially concurrently."
msgstr ""
"<literal>SessionFactory</literal> ã¹ã³ã¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ã¯ "
-"<literal>Configuration</literal> ãªãã¸ã§ã¯ãã使ã£ã¦ç»é²ãã¾ãã ãã㯠"
-"<literal>SessionFactory</literal> ã®æ§ç¯ãããåªå
ããã¾ãã ãã®å ´åãæä¾ã"
+"<literal>Configuration</literal> ãªãã¸ã§ã¯ãã使ã£ã¦ç»é²ãã¾ãããã㯠"
+"<literal>SessionFactory</literal> ã®æ§ç¯ãããåªå
ããã¾ãããã®å ´åãæä¾ã"
"ããã¤ã³ã¿ã¼ã»ãã¿ã¯ <literal>SessionFactory</literal> ãããªã¼ãã³ããããã¹"
-"ã¦ã®ã»ãã·ã§ã³ã«é©ç¨ããã¾ãã ããã¯ä½¿ç¨ããã¤ã³ã¿ã¼ã»ãã¿ãæç¤ºçã«æå®ãã¦"
+"ã¦ã®ã»ãã·ã§ã³ã«é©ç¨ããã¾ããããã¯ä½¿ç¨ããã¤ã³ã¿ã¼ã»ãã¿ãæç¤ºçã«æå®ãã¦"
"ã»ãã·ã§ã³ããªã¼ãã³ããªãéãããããªãã¾ãã <literal>SessionFactory</"
-"literal> ã¹ã³ã¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ã¯ã¹ã¬ããã»ã¼ãã§ãªããã°ãªãã¾ããã è¤æ°"
-"ã®ã»ãã·ã§ã³ãï¼æ½å¨çã«ï¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ãåæä¸¦è¡ã§ä½¿ç¨ãããã¨ã«ãªãã"
-"ãã ã»ãã·ã§ã³åºæã®ç¶æ
ãæ ¼ç´ããªãããã«æ°ãã¤ãã¦ãã ããã"
+"literal> ã¹ã³ã¼ãã®ã¤ã³ã¿ã¼ã»ãã¿ã¯ã¹ã¬ããã»ã¼ãã§ãªããã°ãªãã¾ãããè¤æ°ã®"
+"ã»ãã·ã§ã³ã ï¼æ½å¨çã«ï¼ ãã®ã¤ã³ã¿ã¼ã»ãã¿ãåæä¸¦è¡ã§ä½¿ç¨ãããã¨ã«ãªãã"
+"ããã»ãã·ã§ã³åºæã®ç¶æ
ãæ ¼ç´ããªãããã«æ°ãã¤ãã¦ãã ããã"
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr "ã¤ãã³ãã·ã¹ãã "
#. Tag: para
-#: events.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
"also use the Hibernate3 <emphasis>event</emphasis> architecture. The event "
"system can be used in addition, or as a replacement, for interceptors."
msgstr ""
-"æ°¸ç¶å層ã§ç¹å®ã®ã¤ãã³ãã«å¯¾å¿ããªããã°ãªããªãå ´åã Hibernate3ã® "
-"<emphasis>ã¤ãã³ã</emphasis> ã¢ã¼ããã¯ãã£ã使ããã¨ãã§ãã¾ãã ã¤ãã³ãã·"
+"æ°¸ç¶å層ã§ç¹å®ã®ã¤ãã³ãã«å¯¾å¿ããªããã°ãªããªãå ´åã Hibernate3 ã® "
+"<emphasis>ã¤ãã³ã</emphasis> ã¢ã¼ããã¯ãã£ã使ããã¨ãã§ãã¾ããã¤ãã³ãã·"
"ã¹ãã ã¯ã¤ã³ã¿ã¼ã»ãã¿ã¨ä¸ç·ã«ä½¿ãããã¾ãã¯ã¤ã³ã¿ã¼ã»ãã¿ã®ä»£ããã¨ãã¦ä½¿ã"
"ãã¨ãã§ãã¾ãã"
#. Tag: para
-#: events.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
"event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</"
@@ -252,33 +142,31 @@
"processing any <literal>load()</literal> requests made of the "
"<literal>Session</literal>."
msgstr ""
-"æ¬è³ªçã« <literal>Session</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ãã¹ã¦ã®ã¡ã½ããã¯ã 1"
-"åã®ã¤ãã³ãã¨ç¸äºã«é¢é£ãã¾ãã ä¾ãã° <literal>LoadEvent</literal>ã"
+"æ¬è³ªçã« <literal>Session</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ãã¹ã¦ã®ã¡ã½ããã¯ã1å"
+"ã®ã¤ãã³ãã¨ç¸äºã«é¢é£ãã¾ããä¾ãã° <literal>LoadEvent</literal> ã "
"<literal>FlushEvent</literal> ãªã©ãããã¾ã ï¼å®ç¾©æ¸ã¿ã®ã¤ãã³ãåã®ä¸è¦§ã«ã¤"
-"ãã¦ã¯ãXMLè¨å®ãã¡ã¤ã«ã®DTDã <literal>org.hibernate.event</literal> ãã"
-"ã±ã¼ã¸ã調ã¹ã¦ãã ããï¼ã ãªã¯ã¨ã¹ãããããã®ã¡ã½ããã®1ã¤ããä½ãããã¨"
-"ãã Hibernateã® <literal>Session</literal> ã¯é©åãªã¤ãã³ããçæãã ãã®ã¤"
-"ãã³ãåã«è¨å®ãããã¤ãã³ããªã¹ãã«æ¸¡ãã¾ãã ãã°ããããã¨ã«ããããã®ãªã¹"
-"ãã¯ãã®ã¡ã½ããã¨åãå¦çãå®è£
ãã¾ãã ã¨ã¯ããããªã¹ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ä¸"
-"ã¤ãèªç±ã«ã«ã¹ã¿ã å®è£
ã§ãã¾ã ï¼ã¤ã¾ãã<literal>LoadEvent</literal> ã¯ç»é²"
-"ããã <literal>LoadEventListener</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®å®è£
ã«ããå¦ç"
-"ããã¾ãï¼ã ãã®å ´åããã®å®è£
ã«ã¯ <literal>Session</literal> ããä½ãããã©"
-"ã®ãã㪠<literal>load()</literal> ãªã¯ã¨ã¹ãããå¦çãã責任ãããã¾ãã"
+"ãã¦ã¯ã XML è¨å®ãã¡ã¤ã«ã® DTD ã <literal>org.hibernate.event</literal> "
+"ããã±ã¼ã¸ã調ã¹ã¦ãã ããï¼ ããªã¯ã¨ã¹ãããããã®ã¡ã½ããã®1ã¤ããä½ããã"
+"ã¨ãã Hibernate ã® <literal>Session</literal> ã¯é©åãªã¤ãã³ããçæãããã®"
+"ã¤ãã³ãåã«è¨å®ãããã¤ãã³ããªã¹ãã«æ¸¡ãã¾ãããã°ããããã¨ã«ããããã®ãª"
+"ã¹ãã¯ãã®ã¡ã½ããã¨åãå¦çãå®è£
ãã¾ããã¨ã¯ããããªã¹ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®"
+"ä¸ã¤ãèªç±ã«ã«ã¹ã¿ã å®è£
ã§ãã¾ã ï¼ã¤ã¾ãã <literal>LoadEvent</literal> ã¯ç»"
+"é²ããã <literal>LoadEventListener</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®å®è£
ã«ããå¦"
+"çããã¾ãï¼ããã®å ´åããã®å®è£
ã«ã¯ <literal>Session</literal> ããä½ããã"
+"ã©ã®ãã㪠<literal>load()</literal> ãªã¯ã¨ã¹ãããå¦çãã責任ãããã¾ãã"
#. Tag: para
-#: events.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
"between requests, and should not save any state as instance variables."
msgstr ""
-"ãªã¹ãã¯äºå®ä¸ã·ã³ã°ã«ãã³ã§ããã¨è¦ãªãã¾ãã ã¤ã¾ããªã¹ãã¯ãªã¯ã¨ã¹ãéã§å
±"
-"æãããããã ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã¨ãã¦ç¶æ
ãä¿æããã¹ãã§ã¯ãªãã¨ãããã¨ã§"
+"ãªã¹ãã¯äºå®ä¸ã·ã³ã°ã«ãã³ã§ããã¨è¦ãªãã¾ããã¤ã¾ããªã¹ãã¯ãªã¯ã¨ã¹ãéã§å
±"
+"æããããããã¤ã³ã¹ã¿ã³ã¹å¤æ°ã¨ãã¦ç¶æ
ãä¿æããã¹ãã§ã¯ãªãã¨ãããã¨ã§"
"ãã"
#. Tag: para
-#: events.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
"wants to process and/or extend one of the convenience base classes (or even "
@@ -289,91 +177,45 @@
"configuration through the properties file is not supported. Here is an "
"example of a custom load event listener:"
msgstr ""
-"ã«ã¹ã¿ã ãªã¹ãã¯å¦çãããã¤ãã³ãã«ã¤ãã¦é©åãªã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ããã¹"
-"ãã§ãã 便å©ãªåºåºã¯ã©ã¹ã®ãã¡ã®ä¸ã¤ãç¶æ¿ãã¦ãããã§ã ï¼ã¾ãã¯Hibernateã"
-"ããã©ã«ãã§ä½¿ç¨ããã¤ãã³ããªã¹ããç¶æ¿ãã¦ãããã§ãã ãã°ããããã¨ã«ãã"
-"ã®ç®çã®ããã«éfinalã¨ãã¦å®£è¨ããã¦ãã¾ãï¼ã ã«ã¹ã¿ã ãªã¹ã㯠"
+"ã«ã¹ã¿ã ãªã¹ãã¯å¦çãããã¤ãã³ãã«ã¤ãã¦é©åãªã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ããã¹"
+"ãã§ãã便å©ãªåºåºã¯ã©ã¹ã®ãã¡ã®ä¸ã¤ãç¶æ¿ãã¦ãããã§ã ï¼ã¾ã㯠Hibernate "
+"ãããã©ã«ãã§ä½¿ç¨ããã¤ãã³ããªã¹ããç¶æ¿ãã¦ãããã§ãããã°ããããã¨ã«ã"
+"ãã®ç®çã®ããã«é final ã¨ãã¦å®£è¨ããã¦ãã¾ãï¼ ãã«ã¹ã¿ã ãªã¹ã㯠"
"<literal>Configuration</literal> ãªãã¸ã§ã¯ãã使ã£ã¦ããã°ã©ã ããç»é²ãã"
-"ãã Hibernateã®XMLè¨å®ãã¡ã¤ã«ã§æå®ã§ãã¾ã ï¼ããããã£ãã¡ã¤ã«ã§å®£è¨çã«"
-"è¨å®ããæ¹æ³ã¯ãµãã¼ãããã¦ãã¾ããï¼ã ã«ã¹ã¿ã ãã¼ãã¤ãã³ããªã¹ãã®ä¾ã示"
-"ãã¾ãã"
+"ãã Hibernate ã® XML è¨å®ãã¡ã¤ã«ã§æå®ã§ãã¾ã ï¼ããããã£ãã¡ã¤ã«ã§å®£è¨ç"
+"ã«è¨å®ããæ¹æ³ã¯ãµãã¼ãããã¦ãã¾ããï¼ ãã«ã¹ã¿ã ãã¼ãã¤ãã³ããªã¹ãã®ä¾ã"
+"示ãã¾ã:"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
"addition to the default listener:"
-msgstr "ããã©ã«ããªã¹ã以å¤ã®ãªã¹ãã使ãã«ã¯ãHibernateã¸ã®è¨å®ãå¿
è¦ã§ãï¼"
-
-#. Tag: programlisting
-#: events.xml:130
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
msgstr ""
+"ããã©ã«ããªã¹ã以å¤ã®ãªã¹ãã使ãã«ã¯ã Hibernate ã¸ã®è¨å®ãå¿
è¦ã§ãï¼"
#. Tag: para
-#: events.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Instead, you can register it programmatically:"
msgstr "ã¾ããã®ä»ã«ãããã°ã©ã ã§ç»é²ããæ¹æ³ãããã¾ãï¼"
-#. Tag: programlisting
-#: events.xml:136
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:138
-#, fuzzy, no-c-format
-msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
"name is used in multiple <literal><listener/></literal> elements, each "
"reference will result in a separate instance of that class. If you need to "
"share listener instances between listener types you must use the "
"programmatic registration approach."
msgstr ""
-"ãªã¹ãã宣è¨çã«ç»é²ããã¨ããã®ãªã¹ãã®ã¤ã³ã¹ã¿ã³ã¹ãå
±æã§ãã¾ããã è¤æ°"
-"ã® <literal><listener/></literal> è¦ç´ ã§åãã¯ã©ã¹åã使ãããã¨ã ãã"
-"ããã®åç
§ã¯ãã®ã¯ã©ã¹ã®å¥ã
ã®ã¤ã³ã¹ã¿ã³ã¹ãæããã¨ã«ãªãã¾ãã ãªã¹ãåã®é"
-"ã§ãªã¹ãã¤ã³ã¹ã¿ã³ã¹ãå
±æããå¿
è¦ãããã°ã ããã°ã©ã ã§ç»é²ããæ¹æ³ãæ¡ããª"
-"ããã°ãªãã¾ããã"
+"ãªã¹ãã宣è¨çã«ç»é²ããã¨ããã®ãªã¹ãã®ã¤ã³ã¹ã¿ã³ã¹ãå
±æã§ãã¾ãããè¤æ°ã® "
+"<literal><listener/></literal> è¦ç´ ã§åãã¯ã©ã¹åã使ãããã¨ããããã"
+"ã®åç
§ã¯ãã®ã¯ã©ã¹ã®å¥ã
ã®ã¤ã³ã¹ã¿ã³ã¹ãæããã¨ã«ãªãã¾ãããªã¹ãåã®éã§ãª"
+"ã¹ãã¤ã³ã¹ã¿ã³ã¹ãå
±æããå¿
è¦ãããã°ãããã°ã©ã ã§ç»é²ããæ¹æ³ãæ¡ããªãã"
+"ã°ãªãã¾ããã"
#. Tag: para
-#: events.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
"configuration? A listener implementation could implement multiple event "
@@ -381,59 +223,41 @@
"registration makes it easier to turn custom listeners on or off during "
"configuration."
msgstr ""
-"ãªãã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ãã¦ãç¹åããåãè¨å®æã«æå®ããã®ã§ããããï¼ ãª"
-"ã¹ãã®å®è£
ã¯ã©ã¹ã«ãè¤æ°ã®ã¤ãã³ããªã¹ãã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ã§ããããã§"
-"ãã ç»é²æã«è¿½å ã§åãæå®ãããã¨ã§ãã«ã¹ã¿ã ãªã¹ãã®on/offãè¨å®æã«ç°¡åã«"
-"åãæ¿ãããã¾ãã"
+"ãªãã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ãã¦ãç¹åããåãè¨å®æã«æå®ããã®ã§ããããï¼ãª"
+"ã¹ãã®å®è£
ã¯ã©ã¹ã«ãè¤æ°ã®ã¤ãã³ããªã¹ãã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ã§ããããã§"
+"ããç»é²æã«è¿½å ã§åãæå®ãããã¨ã§ãã«ã¹ã¿ã ãªã¹ãã® on/off ãè¨å®æã«ç°¡å"
+"ã«åãæ¿ãããã¾ãã"
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
-msgstr "Hibernateã®å®£è¨çãªã»ãã¥ãªãã£"
+msgstr "Hibernate ã®å®£è¨çãªã»ãã¥ãªãã£"
#. Tag: para
-#: events.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
"session facade layer. Hibernate3 allows certain actions to be permissioned "
"via JACC, and authorized via JAAS. This is an optional functionality that is "
"built on top of the event architecture."
msgstr ""
-"ä¸è¬çã«Hibernateã¢ããªã±ã¼ã·ã§ã³ã®å®£è¨çãªã»ãã¥ãªãã£ã¯ãã»ãã·ã§ã³ãã¡ãµã¼"
-"ã層ã§ç®¡çãã¾ãã ç¾å¨ãHiberenate3ã¯JACCã§è¨±å¯ããã¤ãJAASã§èªè¨¼ããã¢ã¯"
-"ã·ã§ã³ã許ãã¦ãã¾ãã ããã¯ã¤ãã³ãã¢ã¼ããã¯ãã£ã®æä¸ä½ã«çµã¿è¾¼ã¾ãã¦ãã"
-"ãªãã·ã§ã³ã®æ©è½ã§ãã"
+"ä¸è¬çã« Hibernate ã¢ããªã±ã¼ã·ã§ã³ã®å®£è¨çãªã»ãã¥ãªãã£ã¯ãã»ãã·ã§ã³ãã¡"
+"ãµã¼ã層ã§ç®¡çãã¾ããç¾å¨ã Hiberenate3 㯠JACC ã§è¨±å¯ããããã« JAAS ã§èªè¨¼"
+"ããã¢ã¯ã·ã§ã³ã許ãã¦ãã¾ããããã¯ã¤ãã³ãã¢ã¼ããã¯ãã£ã®æä¸ä½ã«çµã¿è¾¼ã¾"
+"ãã¦ãããªãã·ã§ã³ã®æ©è½ã§ãã"
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
"of JAAS authorization."
msgstr ""
-"ã¾ãæåã«ãé©åãªã¤ãã³ããªã¹ããè¨å®ãã¦JAASèªè¨¼ã使ããããã«ããªããã°ãª"
-"ãã¾ããã"
+"ã¾ãæåã«ãé©åãªã¤ãã³ããªã¹ããè¨å®ã㦠JAAS èªè¨¼ã使ããããã«ããªããã°"
+"ãªãã¾ããã"
-#. Tag: programlisting
-#: events.xml:168
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:170
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
"shorthand for <literal><event type=\"...\"><listener class=\"...\"/"
"></event></literal> when there is exactly one listener for a "
@@ -445,8 +269,7 @@
"ç¥å½¢ã«éããªããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: events.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
"permissions to roles:"
@@ -454,17 +277,284 @@
"次ã«ãåãã <literal>hibernate.cfg.xml</literal> ã§ãã¼ã«ã«ãã¼ããã·ã§ã³ã"
"ä¸ãã¦ãã ããï¼"
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
-msgstr "ãã®ãã¼ã«åã¯ä½¿ç¨ããJACCãããã¤ãã«çè§£ããããã¼ã«ã§ãã"
+msgstr "ãã®ãã¼ã«åã¯ä½¿ç¨ãã JACC ãããã¤ãã«çè§£ããããã¼ã«ã§ãã"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates,\n"
+#~ " \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+#~ msgstr "Session session = sf.openSession( new AuditInterceptor() );"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+#~ msgstr "new Configuration().setInterceptor( new AuditInterceptor() );"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+#~ msgstr ""
+#~ "Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+#~ msgstr ""
+#~ "<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
+#~ msgstr ""
+#~ "<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,read"
+#~ "\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,35 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-20 15:40+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
-msgstr "ä¾ï¼ãããããªãããã³ã°"
+msgstr "ä¾ï¼ ãããããªãããã³ã°"
#. Tag: para
-#: example_mappings.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr "ãã®ç« ã§ã¯ãããè¤éãªé¢é£ã®ãããã³ã°ãããã¤ãç´¹ä»ãã¾ãã"
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
msgstr "éç¨è
/徿¥å¡"
#. Tag: para
-#: example_mappings.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
@@ -39,129 +38,28 @@
"used to model monetary values and employee names."
msgstr ""
"<literal>Employer</literal> 㨠<literal>Employee</literal> ã®é¢ä¿ã表ã以ä¸ã®"
-"ã¢ãã«ã¯ã é¢é£ã®è¡¨ç¾ã«å®éã®ã¨ã³ãã£ãã£ã¯ã©ã¹ï¼ <literal>Employment</"
-"literal> ï¼ ã使ãã¾ãã ãªããªããåã2ã¤ã®ãã¼ãã£ã«è¤æ°ã®æééç¨ãããã¨"
-"ãããã¨ãããããããã§ãã ãéã®å¤ã¨å¾æ¥å¡ã®ååãã¢ãã«åããããã«ã³ã³"
-"ãã¼ãã³ãã使ã£ã¦ãã¾ãã"
+"ã¢ãã«ã¯ãé¢é£ã®è¡¨ç¾ã«å®éã®ã¨ã³ãã£ãã£ã¯ã©ã¹ ï¼ <literal>Employment</"
+"literal> ï¼ ã使ãã¾ãããªããªããåã2ã¤ã®ãã¼ãã£ã«è¤æ°ã®æééç¨ãããã¨ã"
+"ããã¨ãããããããã§ãããéã®å¤ã¨å¾æ¥å¡ã®ååãã¢ãã«åããããã«ã³ã³ãã¼"
+"ãã³ãã使ã£ã¦ãã¾ãã"
#. Tag: para
-#: example_mappings.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is a possible mapping document:"
msgstr "ãããã³ã°ããã¥ã¡ã³ãã®ä¸ä¾ã§ãï¼"
-#. Tag: programlisting
-#: example_mappings.xml:60
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_mappings.xml:62
-#, fuzzy, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr "<literal>SchemaExport</literal> ã§çæãããã¼ãã«ã¹ãã¼ãã§ãã"
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
msgstr "ä½è
/ä½å"
#. Tag: para
-#: example_mappings.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
@@ -171,143 +69,41 @@
"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>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>Author</literal> ã <literal>Person</"
"literal> ãæ¡å¼µããã¨ããæ¹æ³ãããã¾ãã"
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
-msgstr "以ä¸ã®ãããã³ã°ããã¥ã¡ã³ãã¯ãã®ãããªé¢ä¿ãæ£ç¢ºã«è¡¨ç¾ãã¦ãã¾ãã"
+msgstr "以ä¸ã®ãããã³ã°ããã¥ã¡ã³ãã¯ãã®ãããªé¢ä¿ãæ£ç¢ºã«è¡¨ç¾ãã¦ãã¾ã:"
-#. Tag: programlisting
-#: example_mappings.xml:95
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. 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> , "
+"ãã®ãããã³ã°ã«ã¯4ã¤ã®ãã¼ãã«ãããã¾ãã <literal>works</literal> ã "
"<literal>authors</literal> , <literal>persons</literal> ã¯ãããããä»äºãä½"
"è
ã人ã®ãã¼ã¿ãä¿æãã¾ãã <literal>author_work</literal> ã¯ä½è
ã¨ä½åããª"
-"ã³ã¯ããé¢é£ãã¼ãã«ã§ãã 以ä¸ã¯ <literal>SchemaExport</literal> ã§çæãã"
+"ã³ã¯ããé¢é£ãã¼ãã«ã§ãã以ä¸ã¯ <literal>SchemaExport</literal> ã§çæãã"
"ãã¼ãã«ã¹ãã¼ãã§ãã"
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
msgstr "顧客/注æ/製å"
#. Tag: para
-#: example_mappings.xml:112
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
@@ -319,66 +115,21 @@
"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>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ã§ã¯ãããã³ã³ãã¸ããè¦ç´ ã¨å¼ã³ã¾ãã"
+"ã¾ããã Hibernate ã§ã¯ãããã³ã³ãã¸ããè¦ç´ ã¨å¼ã³ã¾ãã"
#. Tag: para
-#: example_mappings.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping document will look like this:"
msgstr "ãããã³ã°ããã¥ã¡ã³ãï¼"
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -386,401 +137,1137 @@
"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> ã¯ãããããé¡§"
+"<literal>customers</literal> ã <literal>orders</literal> ã "
+"<literal>line_items</literal> ã <literal>products</literal> ã¯ãããããé¡§"
"å®¢ãæ³¨æã注ææç´°ã製åã®ãã¼ã¿ãä¿æãã¾ãã <literal>line_items</literal> "
"ã¯æ³¨æã¨è£½åããªã³ã¯ããé¢é£ãã¼ãã«ã¨ãã¦ãåãã¾ãã"
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr "種ã
éå¤ãªãããã³ã°ä¾"
#. Tag: para
-#: example_mappings.xml:152
-#, fuzzy, no-c-format
+#, 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ã®ãã¹ãã¹ã¤ã¼ãããåãã¾ããã ããã«ã¯ãä»ã«"
-"ãããããã®ãããã³ã°ã®ä¾ãããã¾ãã Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® "
+"ããã«ããä¾ã¯ãã¹ã¦ Hibernate ã®ãã¹ãã¹ã¤ã¼ãããåãã¾ãããããã«ã¯ãä»ã«"
+"ãããããã®ãããã³ã°ã®ä¾ãããã¾ãã Hibernate ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® "
"<literal>test</literal> ãã©ã«ããè¦ã¦ãã ããã"
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
msgstr "ãåä»ãããããä¸å¯¾ä¸é¢é£"
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
msgstr "è¤åãã¼ã®ä¾"
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
msgstr "è¤åãã¼å±æ§ãå
±æããå¤å¯¾å¤"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
-msgstr "discriminationã«åºã¥ãå
容"
+msgstr "discrimination ã«åºã¥ãå
容"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
msgstr "代æ¿ãã¼ã®é¢é£"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>"
-#~ msgid "TODO: put words around this stuff"
-#~ msgstr "TODO: ããã«æç« ãåãã"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+#~ msgstr ""
+#~ "create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W"
+#~ "\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+#~ msgstr ""
+#~ "create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+#~ msgstr ""
+#~ "create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references orders"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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"
+#~ "<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>]]>"
+#~ msgstr ""
+#~ "<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"
+#~ "<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>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+#~ msgstr ""
+#~ "<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"
+#~ "<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>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-20 15:29+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
-msgstr "ä¾ï¼è¦ª/åä¾"
+msgstr "ä¾ï¼ 親/åä¾"
#. Tag: para
-#: example_parentchild.xml:31
-#, fuzzy, no-c-format
+#, 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 "
@@ -34,50 +35,46 @@
"cascades</emphasis> to model a parent/child relationship efficiently and "
"elegantly."
msgstr ""
-"æ°è¦ã¦ã¼ã¶ãHibernateã使ã£ã¦ã¾ãæåã«æ±ãã¢ãã«ã®ä¸ã¤ã«ã親ååã®ã¢ãã«åã"
-"ããã¾ãã ãã®ã¢ãã«åã«ã¯äºã¤ã®ã¢ããã¼ããåå¨ãã¾ããã¨ãããæ°è¦ã¦ã¼ã¶ã«"
-"ã¨ã£ã¦ã ãã¾ãã¾ãªçç±ããæã便å©ã ã¨æãããã¢ããã¼ãã¯ã<literal>親</"
-"literal> ãã <literal>åä¾</literal> ã¸ã® <literal><one-to-many></"
+"æ°è¦ã¦ã¼ã¶ã¼ã Hibernate ã使ã£ã¦ã¾ãæåã«æ±ãã¢ãã«ã®ä¸ã¤ã«ã親ååã®ã¢ãã«"
+"åãããã¾ãããã®ã¢ãã«åã«ã¯äºã¤ã®ã¢ããã¼ããåå¨ãã¾ããã¨ãããæ°è¦ã¦ã¼"
+"ã¶ã¼ã«ã¨ã£ã¦ããã¾ãã¾ãªçç±ããæã便å©ã ã¨æãããã¢ããã¼ãã¯ã <literal>"
+"親</literal> ãã <literal>åä¾</literal> ã¸ã® <literal><one-to-many></"
"literal> é¢é£ã«ãã <literal>親</literal> 㨠<literal>åä¾</literal> ã®ä¸¡æ¹ã"
-"ã¨ã³ãã£ãã£ã¯ã©ã¹ã¨ãã¦ã¢ããªã³ã°ããæ¹æ³ã§ã ï¼ããä¸ã¤ã®æ¹æ³ã¯ã<literal>"
+"ã¨ã³ãã£ãã£ã¯ã©ã¹ã¨ãã¦ã¢ããªã³ã°ããæ¹æ³ã§ãï¼ããä¸ã¤ã®æ¹æ³ã¯ã <literal>"
"åä¾</literal> ã <literal><composite-element></literal> ã¨ãã¦å®ç¾©ãã"
-"ãã®ã§ãï¼ã ããã§ï¼Hibernateã«ãããï¼ä¸å¯¾å¤é¢é£ã®ããã©ã«ãã®ã»ãã³ãã£ã¯"
-"ã¹ããé常ã®è¤åè¦ç´ ã®ãããã³ã°ãããã 親åé¢ä¿ã®ã»ãã³ãã£ã¯ã¹ããé ããã¨"
-"ããããã¾ãã ããã§ã¯è¦ªåé¢ä¿ãå¹ççãã¤ã¨ã¬ã¬ã³ãã«ã¢ããªã³ã°ãããã"
-"ã«ã <emphasis>ã«ã¹ã±ã¼ãæä½ã使ã£ãåæ¹åä¸å¯¾å¤é¢é£</emphasis> ã®æ±ãæ¹ã説"
-"æãã¾ããããã¯ã¾ã£ããé£ãããã®ã§ã¯ããã¾ããã"
+"ãã®ã§ãï¼ãããã§ï¼ Hibernate ã«ãããï¼ä¸å¯¾å¤é¢é£ã®ããã©ã«ãã®ã»ãã³ãã£ã¯"
+"ã¹ããé常ã®è¤åè¦ç´ ã®ãããã³ã°ãããã親åé¢ä¿ã®ã»ãã³ãã£ã¯ã¹ããé ããã¨"
+"ããããã¾ããããã§ã¯è¦ªåé¢ä¿ãå¹ççãã¤ã¨ã¬ã¬ã³ãã«ã¢ããªã³ã°ããããã«ã "
+"<emphasis>ã«ã¹ã±ã¼ãæä½ã使ã£ãåæ¹åä¸å¯¾å¤é¢é£</emphasis> ã®æ±ãæ¹ã説æã"
+"ã¾ããããã¯ã¾ã£ããé£ãããã®ã§ã¯ããã¾ããã"
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
msgstr "ã³ã¬ã¯ã·ã§ã³ã«é¢ããæ³¨æ"
#. Tag: para
-#: example_parentchild.xml:47
-#, fuzzy, no-c-format
+#, 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ã®ã³ã¬ã¯ã·ã§ã³ã¯èªèº«ã®ã¨ã³ãã£ãã£ã®è«ççãªé¨åã¨èãããã æ±ºãã¦"
-"å
å«ããã¨ã³ãã£ãã£ã®ãã®ã§ã¯ããã¾ãããããã¯è´å½çãªéãã§ãï¼ ããã¯ä»¥ä¸"
+"Hibernate ã®ã³ã¬ã¯ã·ã§ã³ã¯èªèº«ã®ã¨ã³ãã£ãã£ã®è«ççãªé¨åã¨èããããæ±ºãã¦"
+"å
å«ããã¨ã³ãã£ãã£ã®ãã®ã§ã¯ããã¾ãããããã¯è´å½çãªéãã§ããããã¯ä»¥ä¸"
"ã®ãããªçµæã«ãªãã¾ãï¼"
#. Tag: para
-#: example_parentchild.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When you remove/add an object from/to a collection, the version number of "
"the collection owner is incremented."
msgstr ""
-"ãªãã¸ã§ã¯ããã³ã¬ã¯ã·ã§ã³ããåé¤ãã¾ãã¯ã³ã¬ã¯ã·ã§ã³ã«è¿½å ããã¨ãã ã³ã¬ã¯"
+"ãªãã¸ã§ã¯ããã³ã¬ã¯ã·ã§ã³ããåé¤ãã¾ãã¯ã³ã¬ã¯ã·ã§ã³ã«è¿½å ããã¨ããã³ã¬ã¯"
"ã·ã§ã³ã®ãªã¼ãã¼ã®ãã¼ã¸ã§ã³çªå·ã¯ã¤ã³ã¯ãªã¡ã³ãããã¾ãã"
#. Tag: para
-#: example_parentchild.xml:60
-#, fuzzy, no-c-format
+#, 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 "
@@ -85,14 +82,13 @@
"value type instance to the collection will cause its state to be immediately "
"persistent."
msgstr ""
-"ããã³ã¬ã¯ã·ã§ã³ããåé¤ããããªãã¸ã§ã¯ããå¤åã®ã¤ã³ã¹ã¿ã³ã¹ ï¼ä¾ãã°ã³ã³ã"
-"ã¸ããã¨ã¬ã¡ã³ã)ã ã£ããªãã°ããã®ãªãã¸ã§ã¯ãã¯æ°¸ç¶çã§ã¯ãªããªãã ãã®ç¶"
-"æ
ã¯ãã¼ã¿ãã¼ã¹ããå®å
¨ã«åé¤ããã¾ãã åãããã«ãå¤åã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬"
+"ããã³ã¬ã¯ã·ã§ã³ããåé¤ããããªãã¸ã§ã¯ããå¤åã®ã¤ã³ã¹ã¿ã³ã¹ï¼ä¾ãã°ã³ã³ã"
+"ã¸ããã¨ã¬ã¡ã³ã) ã ã£ããªãã°ããã®ãªãã¸ã§ã¯ãã¯æ°¸ç¶çã§ã¯ãªããªãããã®ç¶"
+"æ
ã¯ãã¼ã¿ãã¼ã¹ããå®å
¨ã«åé¤ããã¾ããåãããã«ãå¤åã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬"
"ã¯ã·ã§ã³ã«è¿½å ããã¨ããã®ç¶æ
ã¯ããã«æ°¸ç¶çã«ãªãã¾ãã"
#. Tag: para
-#: example_parentchild.xml:68
-#, fuzzy, no-c-format
+#, 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 "
@@ -100,15 +96,14 @@
"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 ""
-"䏿¹ãããã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ï¼ä¸å¯¾å¤ã¾ãã¯å¤å¯¾å¤é¢é£)ããåé¤ããã¦"
-"ãã ããã©ã«ãã§ã¯ããã¯åé¤ããã¾ããããã®åä½ã¯å®å
¨ã«ä¸è²«ãã¦ãã¾ãã ã"
-"ãªãã¡ãä»ã®ã¨ã³ãã£ãã£ã®å
é¨ç¶æ
ã夿´ãã¦ããé¢é£ããã¨ã³ãã£ãã£ãæ¶æ»
ã"
-"ã¹ãã§ã¯ãªãã¨ãããã¨ã§ãã åæ§ã«ãã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã«è¿½å ããã¦"
-"ããããã©ã«ãã§ã¯ãã®ã¨ã³ãã£ãã£ã¯æ°¸ç¶çã«ã¯ãªãã¾ããã"
+"䏿¹ãããã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ï¼ä¸å¯¾å¤ã¾ãã¯å¤å¯¾å¤é¢é£) ããåé¤ããã¦"
+"ããããã©ã«ãã§ã¯ããã¯åé¤ããã¾ããããã®åä½ã¯å®å
¨ã«ä¸è²«ãã¦ãã¾ããããª"
+"ãã¡ãä»ã®ã¨ã³ãã£ãã£ã®å
é¨ç¶æ
ã夿´ãã¦ããé¢é£ããã¨ã³ãã£ãã£ãæ¶æ»
ãã¹"
+"ãã§ã¯ãªãã¨ãããã¨ã§ããåæ§ã«ãã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã«è¿½å ããã¦ãã"
+"ããã©ã«ãã§ã¯ãã®ã¨ã³ãã£ãã£ã¯æ°¸ç¶çã«ã¯ãªãã¾ããã"
#. Tag: para
-#: example_parentchild.xml:78
-#, fuzzy, no-c-format
+#, 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 "
@@ -117,19 +112,17 @@
"bound to the life cycle of the parent."
msgstr ""
"ãã®ä»£ããã«ãããã©ã«ãã®åä½ã§ã¯ãã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã«è¿½å ããã¨å"
-"ã«äºã¤ã®ã¨ã³ãã£ãã£éã®ãªã³ã¯ã使ãã 䏿¹ã¨ã³ãã£ãã£ãåé¤ããã¨ãªã³ã¯ã"
-"åé¤ãã¾ããããã¯ãã¹ã¦ã®ã±ã¼ã¹ã«ããã¦é常ã«é©åã§ãã ãããé©åã§ãªãã®ã¯"
+"ã«äºã¤ã®ã¨ã³ãã£ãã£éã®ãªã³ã¯ã使ãã䏿¹ã¨ã³ãã£ãã£ãåé¤ããã¨ãªã³ã¯ã"
+"åé¤ãã¾ããããã¯ãã¹ã¦ã®ã±ã¼ã¹ã«ããã¦é常ã«é©åã§ãããããé©åã§ãªãã®ã¯"
"親/åé¢ä¿ã®å ´åã§ãããã®å ´ååä¾ã®çåã¯è¦ªã®ã©ã¤ããµã¤ã¯ã«ã«å¶éãããããã§"
"ãã"
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
msgstr "åæ¹åä¸å¯¾å¤"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
@@ -138,90 +131,52 @@
"<literal>Parent</literal> ãã <literal>Child</literal> ã¸ã®åç´ãª "
"<literal><one-to-many></literal> é¢é£ããå§ããã¨ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:95
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_parentchild.xml:97
-#, fuzzy, no-c-format
msgid "If we were to execute the following code:"
msgstr "以ä¸ã®ã³ã¼ããå®è¡ããã¨ã"
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
-msgstr "Hibernateã¯äºã¤ã®SQLæãçºè¡ãã¾ã:"
+msgstr "Hibernate ã¯äºã¤ã® SQL æãçºè¡ãã¾ã:"
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid ""
"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
msgstr ""
-"<literal>c</literal>ã«å¯¾ããã¬ã³ã¼ããçæãã<literal>INSERT</literal>"
+"<literal>c</literal> ã«å¯¾ããã¬ã³ã¼ããçæãã <literal>INSERT</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>p</literal>ãã<literal>c</literal>ã¸ã®ãªã³ã¯ã使ãã"
+"<literal>p</literal> ãã <literal>c</literal> ã¸ã®ãªã³ã¯ã使ãã "
"<literal>UPDATE</literal>"
#. Tag: para
-#: example_parentchild.xml:119
-#, fuzzy, no-c-format
+#, 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</literal> å¶ç´ã«éåãã¾ãã ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã§ "
-"<literal>not-null=\"true\"</literal> ã¨æå®ãããã¨ã§ãnullå¶ç´éåã解決ãã"
-"ãã¨ãã§ãã¾ã:"
+"ããã¯éå¹ççãªã ãã§ã¯ãªãã <literal>parent_id</literal> ã«ã©ã ã«ãã㦠"
+"<literal>NOT NULL</literal> å¶ç´ã«éåãã¾ããã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã§ "
+"<literal>not-null=\"true\"</literal> ã¨æå®ãããã¨ã§ã null å¶ç´éåã解決ã"
+"ããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
msgstr "ããããã®è§£æ±ºçã¯æ¨å¥¨ã§ãã¾ããã"
#. Tag: para
-#: example_parentchild.xml:130
-#, fuzzy, no-c-format
+#, 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</"
@@ -229,24 +184,15 @@
"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> ã¸ã®"
-"ãªã³ã¯ ï¼å¤é¨ãã¼ <literal>parent_id</literal>)㯠<literal>Child</literal> ãª"
-"ãã¸ã§ã¯ãã®ç¶æ
ã®ä¸é¨ã¨ã¯èããããã ãã®ãã <literal>INSERT</literal> ã«"
-"ãã£ã¦ãªã³ã¯ãçæãããªããã¨ã§ãã ã§ãããã解決çã¯ãªã³ã¯ãChildãããã³"
+"ãã®åä½ã®æ ¹æ¬çãªåå ã¯ã <literal>p</literal> ãã <literal>c</literal> ã¸"
+"ã®ãªã³ã¯ï¼å¤é¨ãã¼ <literal>parent_id</literal>) 㯠<literal>Child</literal> "
+"ãªãã¸ã§ã¯ãã®ç¶æ
ã®ä¸é¨ã¨ã¯èããããããã®ãã <literal>INSERT</literal> ã«"
+"ãã£ã¦ãªã³ã¯ãçæãããªããã¨ã§ããã§ãããã解決çã¯ãªã³ã¯ã Child ãããã³"
"ã°ã®ä¸é¨ã«ãããã¨ã§ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-
-#. 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 ""
@@ -254,101 +200,51 @@
"ã追å ããå¿
è¦ãããã¾ãã)"
#. Tag: para
-#: example_parentchild.xml:143
-#, fuzzy, no-c-format
+#, 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> ã¨ã³ãã£ãã£ããªã³ã¯ã®ç¶æ
ãå¶å¾¡ããããã«"
-"ãªã£ãã®ã§ã ã³ã¬ã¯ã·ã§ã³ããªã³ã¯ãæ´æ°ããªãããã«ãã¾ããããããã«ã¯ "
+"ãªã£ãã®ã§ãã³ã¬ã¯ã·ã§ã³ããªã³ã¯ãæ´æ°ããªãããã«ãã¾ããããããã«ã¯ "
"<literal>inverse</literal> 屿§ã使ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:148
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_parentchild.xml:150
-#, fuzzy, no-c-format
msgid "The following code would be used to add a new <literal>Child</literal>:"
msgstr ""
"以ä¸ã®ã³ã¼ãã使ãã°ãæ°ãã <literal>Child</literal> ã追å ãããã¨ãã§ãã¾"
"ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:154
+#. Tag: para
#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. Tag: para
-#: example_parentchild.xml:156
-#, fuzzy, no-c-format
msgid "Only one SQL <literal>INSERT</literal> would now be issued."
msgstr ""
-"ããã«ãããSQLã® <literal>INSERT</literal> æãä¸ã¤ã ããçºè¡ãããããã«ãª"
-"ãã¾ããï¼"
+"ããã«ããã SQL ã® <literal>INSERT</literal> æãä¸ã¤ã ããçºè¡ãããããã«"
+"ãªãã¾ããã"
#. Tag: para
-#: example_parentchild.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
"<literal>Parent</literal>."
msgstr ""
-"ããå°ãå¼·åããã«ã¯ã<literal>Parent</literal> ã® <literal>addChild()</"
+"ããå°ãå¼·åããã«ã¯ã <literal>Parent</literal> ã® <literal>addChild()</"
"literal> ã¡ã½ããã使ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:165
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: example_parentchild.xml:167
-#, fuzzy, no-c-format
msgid "The code to add a <literal>Child</literal> looks like this:"
msgstr "<literal>Child</literal> ã追å ããã³ã¼ãã¯ãã®ããã«ãªãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:171
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
msgstr "ã©ã¤ããµã¤ã¯ã«ã®ã«ã¹ã±ã¼ã"
#. Tag: para
-#: example_parentchild.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
"literal> by using cascades."
@@ -356,144 +252,74 @@
"æç¤ºçã« <literal>save()</literal> ãã³ã¼ã«ããã®ã¯ã¾ã ç
©ããããã®ã§ãããã"
"ãã«ã¹ã±ã¼ãã使ã£ã¦å¯¾å¦ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:183
+#. Tag: para
#, 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 ""
-
-#. Tag: para
-#: example_parentchild.xml:185
-#, fuzzy, no-c-format
msgid "This simplifies the code above to:"
msgstr "ããã«ããå
ã»ã©ã®ã³ã¼ãããã®ããã«åç´åãã¾ã"
-#. Tag: programlisting
-#: example_parentchild.xml:189
+#. Tag: para
#, 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 ""
-
-#. 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> ãåé¤ãã"
+"ãåºãã¦æ±ãå¿
è¦ã¯ããã¾ããã以ä¸ã®ã³ã¼ã㯠<literal>p</literal> ãåé¤ãã"
"ããã¦ãã¼ã¿ãã¼ã¹ãããã®åä¾ããã¹ã¦åé¤ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:196
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-
-#. Tag: para
-#: example_parentchild.xml:198
-#, fuzzy, no-c-format
msgid "However, the following code:"
msgstr "ããããã®ã³ã¼ãã¯"
-#. Tag: programlisting
-#: example_parentchild.xml:202
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-
-#. 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>c</literal> ãåé¤ãã¾ããã <literal>p</literal> "
+"ã¸ã®ãªã³ã¯ãåé¤ããï¼ããã¦ãã®ã±ã¼ã¹ã§ã¯ <literal>NOT NULL</literal> å¶ç´é"
"åãå¼ãèµ·ããï¼ã ãã§ãã <literal>Child</literal> ã® <literal>delete()</"
"literal> ãæç¤ºããå¿
è¦ãããã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 ""
"ä»ãã®ã±ã¼ã¹ã§ã¯å®éã« <literal>Child</literal> ã親ãªãã§ã¯åå¨ã§ããªããã"
-"ã«ãªãã¾ããã ãã®ãããããã³ã¬ã¯ã·ã§ã³ãã <literal>Child</literal> ãåã"
-"é¤ãå ´åããããåé¤ãããã§ãã ãã®ããã«ã¯ <literal>cascade=\"all-delete-"
-"orphan\"</literal> ã使ããªããã°ãªãã¾ããã"
+"ã«ãªãã¾ããããã®ãããããã³ã¬ã¯ã·ã§ã³ãã <literal>Child</literal> ãåã"
+"é¤ãå ´åããããåé¤ãã¾ãããã®ããã«ã¯ <literal>cascade=\"all-delete-orphan"
+"\"</literal> ã使ããªããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: example_parentchild.xml:218
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. 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 ""
-"注æï¼ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã§ <literal>inverse=\"true\"</literal> ã¨æå®ã"
-"ã¦ãã ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®ã¤ãã¬ã¼ã·ã§ã³ã«ãã£ã¦ãä¾ç¶ã«ã¹ã±ã¼ããå®è¡ããã¾"
-"ãã ãã®ããããã«ã¹ã±ã¼ãã§ãªãã¸ã§ã¯ããã»ã¼ããåé¤ãæ´æ°ããå¿
è¦ããããª"
-"ãã ãããã³ã¬ã¯ã·ã§ã³ã«è¿½å ããªããã°ãªãã¾ãããåã« <literal>setParent()"
+"注è¨ï¼ã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã§ <literal>inverse=\"true\"</literal> ã¨æå®ã"
+"ã¦ããã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®ã¤ãã¬ã¼ã·ã§ã³ã«ãã£ã¦ãä¾ç¶ã«ã¹ã±ã¼ããå®è¡ããã¾"
+"ãããã®ãããããã«ã¹ã±ã¼ãã§ãªãã¸ã§ã¯ããã»ã¼ããåé¤ãæ´æ°ããå¿
è¦ããã"
+"ãªãããããã³ã¬ã¯ã·ã§ã³ã«è¿½å ããªããã°ãªãã¾ãããåã« <literal>setParent()"
"</literal> ãå¼ã¶ã ãã§ã¯ä¸ååã§ãã"
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr "ã«ã¹ã±ã¼ã㨠<literal>unsaved-value</literal>"
+msgstr "ã«ã¹ã±ã¼ã㨠unsaved-value"
#. Tag: para
-#: example_parentchild.xml:232
#, fuzzy, no-c-format
msgid ""
"Suppose we loaded up a <literal>Parent</literal> in one <literal>Session</"
@@ -506,48 +332,34 @@
"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 "
+"\"objectstate-saveorupdate\" />.) <emphasis>In Hibernate3, it is no longer "
"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
"emphasis>"
msgstr ""
-"<literal>Parent</literal> ãããã <literal>Session</literal> ã§ãã¼ãããã"
-"UIã®ã¢ã¯ã·ã§ã³ã§å¤æ´ãå ãããã <literal>update()</literal> ãå¼ãã§ãã®å¤æ´"
-"ãæ°ããã»ãã·ã§ã³ã§æ°¸ç¶åãããã¨ãã¾ãã <literal>Parent</literal> ãåä¾ã®"
-"ã³ã¬ã¯ã·ã§ã³ãæã¡ãã«ã¹ã±ã¼ãæ´æ°ãæå¹ã«ãªã£ã¦ããããã Hibernateã¯ã©ã®å"
-"ä¾ãæ°ããã¤ã³ã¹ã¿ã³ã¹åãããããã©ãããã¼ã¿ãã¼ã¹ã®æ¢åã®è¡ã«ç¸å½ããã®ã"
-"ãç¥ãå¿
è¦ãããã¾ãã <literal>Parent</literal> 㨠<literal>Child</literal> "
-"ã®ä¸¡æ¹ã <literal>java.lang.Long</literal> åã®èå¥ããããã£ãçæããã¨ãã¾"
-"ãããã Hibernateã¯ã©ã®åä¾ãæ°ãããã®ããæ±ºå®ããããã«èå¥ããããã£ã®å¤"
-"ã使ãã¾ã(versionãtimestampããããã£ã使ãã¾ãã <xref linkend="
-"\"manipulatingdata-updating-detached\"/> åç
§)ãHibernate3ã«ãªã£ã¦ã æç¤ºç"
-"ã« <literal>unsaved-value</literal> ãæå®ããå¿
è¦ã¯ãªããªãã¾ããã"
+"<literal>Parent</literal> ãããã <literal>Session</literal> ã§ãã¼ãããã "
+"UI ã®ã¢ã¯ã·ã§ã³ã§å¤æ´ãå ãããã <literal>update()</literal> ãå¼ãã§ãã®å¤"
+"æ´ãæ°ããã»ãã·ã§ã³ã§æ°¸ç¶åãããã¨ãã¾ãã <literal>Parent</literal> ãåä¾"
+"ã®ã³ã¬ã¯ã·ã§ã³ãæã¡ãã«ã¹ã±ã¼ãæ´æ°ãæå¹ã«ãªã£ã¦ããããã Hibernate ã¯ã©ã®"
+"åä¾ãæ°ããã¤ã³ã¹ã¿ã³ã¹åãããããã©ãããã¼ã¿ãã¼ã¹ã®æ¢åã®è¡ã«ç¸å½ããã®"
+"ããç¥ãå¿
è¦ãããã¾ãã <literal>Parent</literal> 㨠<literal>Child</"
+"literal> ã®ä¸¡æ¹ã <literal>Long</literal> åã®èå¥ããããã£ãçæããã¨ãã¾"
+"ãããã Hibernate ã¯ã©ã®åä¾ãæ°ãããã®ããæ±ºå®ããããã«èå¥ããããã£ã®å¤"
+"ã使ãã¾ã (<xref linkend=\"objectstate-saveorupdate\"/> åç
§)ã "
+"<emphasis>Hibernate3 ã«ãªã£ã¦ãæç¤ºçã« <literal>unsaved-value</literal> ãæ"
+"å®ããå¿
è¦ã¯ãªããªãã¾ããã</emphasis>"
#. Tag: para
-#: example_parentchild.xml:244
-#, fuzzy, no-c-format
+#, 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> ãæ¿å
¥ãã¾ãã"
+"ãã <literal>newChild</literal> ãæ¿å
¥ãã¾ãã"
-#. Tag: programlisting
-#: example_parentchild.xml:249
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 "
@@ -557,34 +369,31 @@
"cache or, worst case, the database, to see if the row exists."
msgstr ""
"ãããã¯çæãããèå¥åã®å ´åã«ã¯é常ã«è¯ãã®ã§ãããå²ãå½ã¦ãããèå¥åã¨"
-"è¤åèå¥åã®å ´åã¯ã©ãã§ããããï¼ ããã¯Hibernateããï¼ã¦ã¼ã¶ã«ããå²ãå½ã¦"
-"ãããèå¥åãæã¤ï¼æ°ããã¤ã³ã¹ã¿ã³ã¹åããããªãã¸ã§ã¯ãã¨ã 以åã®Session"
-"ã§ãã¼ãããããªãã¸ã§ã¯ããåºå¥ã§ããªããããããé£ããã§ãã ãã®å ´åã"
-"Hibernateã¯ã¿ã¤ã ã¹ã¿ã³ãããã¼ã¸ã§ã³ã®ããããã£ã®ã©ã¡ããã使ãããäºæ¬¡"
-"ãã£ãã·ã¥ã«åãåããã¾ãã ææªã®å ´åãè¡ãåå¨ãããã©ãããã¼ã¿ãã¼ã¹ãè¦"
-"ã¾ãã"
+"è¤åèå¥åã®å ´åã¯ã©ãã§ããããï¼ãã㯠Hibernate ããï¼ã¦ã¼ã¶ã¼ã«ããå²ãå½"
+"ã¦ãããèå¥åãæã¤ï¼æ°ããã¤ã³ã¹ã¿ã³ã¹åããããªãã¸ã§ã¯ãã¨ã以åã® "
+"Session ã§ãã¼ãããããªãã¸ã§ã¯ããåºå¥ã§ããªããããããé£ããã§ãããã®å ´"
+"åã Hibernate ã¯ã¿ã¤ã ã¹ã¿ã³ãããã¼ã¸ã§ã³ã®ããããã£ã®ã©ã¡ããã使ãããäº"
+"次ãã£ãã·ã¥ã«åãåããã¾ããææªã®å ´åãè¡ãåå¨ãããã©ãããã¼ã¿ãã¼ã¹ã"
+"è¦ã¾ãã"
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
msgstr "çµè«"
#. Tag: para
-#: example_parentchild.xml:265
-#, fuzzy, no-c-format
+#, 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ã¢ã"
+"ãã¾ããããããå®éã¯ããã¹ã¦é常ã«è¯ãåä½ãã¾ããã»ã¨ãã©ã® Hibernate ã¢ã"
"ãªã±ã¼ã·ã§ã³ã§ã¯ãå¤ãã®å ´é¢ã§è¦ªåãã¿ã¼ã³ã使ç¨ãã¾ãã"
#. Tag: para
-#: example_parentchild.xml:270
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
"exist in the case of <literal><composite-element></literal> mappings, "
@@ -594,8 +403,200 @@
"of any entity other than the unique parent."
msgstr ""
"æåã®æ®µè½ã§ä»£æ¿æ¹æ³ã«ã¤ãã¦è§¦ãã¾ãããä¸è¨ã®ãããªåé¡ã¯ <literal><"
-"composite-element></literal> ãããã³ã°ã®å ´åã¯åå¨ããã ã«ããããããã"
-"ãã¯ç¢ºãã«è¦ªåé¢ä¿ã®ã»ãã³ãã£ã¯ã¹ãæã¡ã¾ãã ãããæ®å¿µãªãããè¤åè¦ç´ ã¯ã©"
-"ã¹ã«ã¯äºã¤ã®å¤§ããªå¶éãããã¾ãï¼ 1ã¤ã¯è¤åè¦ç´ ã¯ã³ã¬ã¯ã·ã§ã³ãæã¤ãã¨ãã§"
-"ããªããã¨ã§ããããã²ã¨ã¤ã¯ã ã¦ãã¼ã¯ãªè¦ªã§ã¯ãªãã¨ã³ãã£ãã£ã®åä¾ã¨ãªãã¹"
+"composite-element></literal> ãããã³ã°ã®å ´åã¯åå¨ãããã«ããããããã"
+"ãã¯ç¢ºãã«è¦ªåé¢ä¿ã®ã»ãã³ãã£ã¯ã¹ãæã¡ã¾ãããããæ®å¿µãªãããè¤åè¦ç´ ã¯ã©"
+"ã¹ã«ã¯ï¼ã¤ã®å¤§ããªå¶éãããã¾ãï¼ 1ã¤ã¯è¤åè¦ç´ ã¯ã³ã¬ã¯ã·ã§ã³ãæã¤ãã¨ãã§"
+"ããªããã¨ã§ããããã²ã¨ã¤ã¯ãã¦ãã¼ã¯ãªè¦ªã§ã¯ãªãã¨ã³ãã£ãã£ã®åä¾ã¨ãªãã¹"
"ãã§ã¯ãªãã¨ãããã¨ã§ã"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Parent p = .....;\n"
+#~ "Child c = new Child();\n"
+#~ "p.getChildren().add(c);\n"
+#~ "session.save(c);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "Parent p = .....;\n"
+#~ "Child c = new Child();\n"
+#~ "p.getChildren().add(c);\n"
+#~ "session.save(c);\n"
+#~ "session.flush();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true"
+#~ "\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "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();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[public void addChild(Child c) {\n"
+#~ " c.setParent(this);\n"
+#~ " children.add(c);\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "public void addChild(Child c) {\n"
+#~ " c.setParent(this);\n"
+#~ " children.add(c);\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = new Child();\n"
+#~ "p.addChild(c);\n"
+#~ "session.save(c);\n"
+#~ "session.flush();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ 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"
+#~ "Child c = new Child();\n"
+#~ "p.addChild(c);\n"
+#~ "session.flush();"
+
+#, fuzzy
+#~ 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"
+#~ "session.delete(p);\n"
+#~ "session.flush();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = (Child) p.getChildren().iterator().next();\n"
+#~ "p.getChildren().remove(c);\n"
+#~ "c.setParent(null);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = (Child) p.getChildren().iterator().next();\n"
+#~ "p.getChildren().remove(c);\n"
+#~ "c.setParent(null);\n"
+#~ "session.flush();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "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();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-"
+#~ "orphan\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
+#~ "\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "//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();"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,484 +1,863 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-20 15:34+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
-msgstr "ä¾: Weblogã¢ããªã±ã¼ã·ã§ã³"
+msgstr "ä¾: Weblog ã¢ããªã±ã¼ã·ã§ã³"
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
msgstr "æ°¸ç¶ã¯ã©ã¹"
#. Tag: para
-#: example_weblog.xml:34
-#, fuzzy, no-c-format
+#, 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 ""
-"æ°¸ç¶ã¯ã©ã¹ãã¦ã§ããã°ã¨ãã¦ã§ããã°ã«æ²ç¤ºãããé
ç®ã表ãã¦ãã¾ãã ãããã¯"
-"é常ã®è¦ªåé¢ä¿ã¨ãã¦ã¢ããªã³ã°ããã¾ããã setã§ã¯ãªãé åºãæã£ãbagã使ç¨ã"
-"ããã¨ã«ãã¾ãã"
+"æ°¸ç¶ã¯ã©ã¹ãã¦ã§ããã°ã¨ãã¦ã§ããã°ã«æ²ç¤ºãããé
ç®ã表ãã¦ãã¾ãããããã¯"
+"é常ã®è¦ªåé¢ä¿ã¨ãã¦ã¢ããªã³ã°ããã¾ããã set ã§ã¯ãªãé åºãæã£ã bag ã使"
+"ç¨ãããã¨ã«ãã¾ãã"
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
-msgstr "Hibernateã®ãããã³ã°"
+msgstr "Hibernate ã®ãããã³ã°"
#. 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
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
-msgstr "Hibernateã®ã³ã¼ã"
+msgstr "Hibernate ã®ã³ã¼ã"
#. Tag: para
-#: example_weblog.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following class demonstrates some of the kinds of things we can do with "
"these classes using Hibernate:"
msgstr ""
-"以ä¸ã®ã¯ã©ã¹ã¯ã Hibernateã§ãããã®ã¯ã©ã¹ã使ã£ã¦ã§ãããã¨ãããã¤ã示ãã¦"
-"ãã¾ãã"
+"以ä¸ã®ã¯ã©ã¹ã¯ã Hibernate ã§ãããã®ã¯ã©ã¹ã使ã£ã¦ã§ããããã¤ãã®ãã¨ã示ã"
+"ã¦ãã¾ãã"
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,44 +1,43 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-18 15:28+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr "ãã¼ã¿ã®ãã£ã«ã¿ãªã³ã°"
#. Tag: para
-#: filters.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
"named, parameterized filter that can be enabled or disabled for a particular "
"Hibernate session."
msgstr ""
-"Hibernate3ã§ã¯ãå¯è¦æ§ãã«ã¼ã«ã«åºã¥ãã¦ãã¼ã¿ãæ±ãããã®ç»æçãªæ¹æ³ãç¨æ"
+"Hibernate3 ã§ã¯ãå¯è¦æ§ãã«ã¼ã«ã«åºã¥ãã¦ãã¼ã¿ãæ±ãããã®ç»æçãªæ¹æ³ãç¨æ"
"ãã¦ãã¾ãã <emphasis>Hibernate filter</emphasis> ã¯ã°ãã¼ãã«ã§ãååä»ã"
-"ã§ããã©ã¡ã¼ã¿åããããã£ã«ã¿ã§ãã ããã¯Hibernateã»ãã·ã§ã³ãã¨ã«æå¹ç¡å¹"
+"ã§ããã©ã¡ã¼ã¿åããããã£ã«ã¿ã§ãããã㯠Hibernate ã»ãã·ã§ã³ãã¨ã«æå¹ç¡å¹"
"ãåãæ¿ãããã¾ãã"
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
-msgstr "Hibernateã®ãã£ã«ã¿"
+msgstr "Hibernate ã®ãã£ã«ã¿"
#. Tag: para
-#: filters.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
@@ -49,17 +48,15 @@
"parameter values should be. Filters can be used like database views, but "
"they are parameterized inside the application."
msgstr ""
-"Hibernate3ã¯ãã£ã«ã¿ã¯ã©ã¤ããªã¢ããããããå®ç¾©ãã ãããã®ãã£ã«ã¿ãã¯ã©ã¹"
-"ãã³ã¬ã¯ã·ã§ã³ã¬ãã«ã«å ããæ©è½ãå ãã¾ããã ãã£ã«ã¿ã¯ã©ã¤ããªã¢ã¯å¶ç´ç¯ã"
-"å®ç¾©ããæ©è½ã§ãã ãããã®ãã£ã«ã¿æ¡ä»¶ã¯ãã©ã¡ã¼ã¿åã§ããã¨ãããã¨ãé¤"
-"ãã ã¯ã©ã¹ããã¾ãã¾ãªã³ã¬ã¯ã·ã§ã³è¦ç´ ã§å©ç¨å¯è½ãªï½¢whereï½£å¥ã«é常ã«ããä¼¼ã¦"
-"ãã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã¯ãä¸ãããããã£ã«ã¿ãå¯è½ã«ãã¹ããã ããã¦ãã®"
-"ãã©ã¡ã¼ã¿å¤ãä½ã«ãã¹ãããå®è¡æã«æ±ºå®ãããã¨ãã§ãã¾ãã ãã£ã«ã¿ã¯ãã¼ã¿"
-"ãã¼ã¹ãã¥ã¼ã®ããã«ä½¿ç¨ããã¾ãããã¢ããªã±ã¼ã·ã§ã³å
ã§ã¯ãã©ã¡ã¼ã¿åããã¾"
-"ãã"
+"Hibernate3 ã¯ãã£ã«ã¿ã¯ã©ã¤ããªã¢ããããããå®ç¾©ãããããã®ãã£ã«ã¿ãã¯ã©ã¹"
+"ãã³ã¬ã¯ã·ã§ã³ã¬ãã«ã«å ããæ©è½ãå ãã¾ããããã£ã«ã¿ã¯ã©ã¤ããªã¢ã¯å¶ç´ç¯ã"
+"å®ç¾©ããæ©è½ã§ãããããã®ãã£ã«ã¿æ¡ä»¶ã¯ãã©ã¡ã¼ã¿åã§ããã¨ãããã¨ãé¤ãã"
+"ã¯ã©ã¹ããã¾ãã¾ãªã³ã¬ã¯ã·ã§ã³è¦ç´ ã§å©ç¨å¯è½ãª ï½¢whereï½£ å¥ã«é常ã«ããä¼¼ã¦ãã¾"
+"ããã¢ããªã±ã¼ã·ã§ã³ã¯ãä¸ãããããã£ã«ã¿ãå¯è½ã«ãã¹ãããããã¦ãã®ãã©"
+"ã¡ã¼ã¿å¤ãä½ã«ãã¹ãããå®è¡æã«æ±ºå®ãããã¨ãã§ãã¾ãããã£ã«ã¿ã¯ãã¼ã¿ãã¼"
+"ã¹ãã¥ã¼ã®ããã«ä½¿ç¨ããã¾ãããã¢ããªã±ã¼ã·ã§ã³å
ã§ã¯ãã©ã¡ã¼ã¿åããã¾ãã"
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -68,60 +65,26 @@
"></literal> element:"
msgstr ""
"ãã£ã«ã¿ã使ãããã«ã¯ã¾ããé©åãªãããã³ã°è¦ç´ ã«å®ç¾©ã追å ããªãã¦ã¯ãªãã¾"
-"ããã ãã£ã«ã¿ãå®ç¾©ããããã«ã¯ã <literal><hibernate-mapping/></"
-"literal> è¦ç´ å
ã§ <literal><filter-def/></literal> è¦ç´ ã使ç¨ãã¾ããï¼"
+"ããããã£ã«ã¿ãå®ç¾©ããããã«ã¯ã <literal><hibernate-mapping/></"
+"literal> è¦ç´ å
ã§ <literal><filter-def/></literal> è¦ç´ ã使ç¨ãã¾ãï¼"
-#. Tag: programlisting
-#: filters.xml:56
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
+msgid "This filter can then be attached to a class:"
+msgstr "ãããã¦ãã£ã«ã¿ã¯ã¯ã©ã¹ã¸ã¨çµã³ä»ãããã¾ãï¼"
#. Tag: para
-#: filters.xml:58
-#, fuzzy, no-c-format
-msgid "This filter can then be attached to a class:"
-msgstr "ãããã¦ãã£ã«ã¿ã¯ã¯ã©ã¹ã¸ã¨çµã³ä»ãããã¾ããï¼"
-
-#. Tag: programlisting
-#: filters.xml:62
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
+msgid "Or, to a collection:"
+msgstr "ã¾ããã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦ã¯æ¬¡ã®ããã«ãªãã¾ãï¼"
#. Tag: para
-#: filters.xml:64
-#, fuzzy, no-c-format
-msgid "Or, to a collection:"
-msgstr "ã¾ããã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦ã¯æ¬¡ã®ããã«ãªãã¾ããï¼"
-
-#. Tag: programlisting
-#: filters.xml:68
#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:70
-#, fuzzy, no-c-format
msgid "Or, to both or multiples of each at the same time."
-msgstr "ã©ã¡ãã«å¯¾ãã¦ã(ã¾ãããããããè¤æ°)åæã«è¨å®ãããã¨ãã§ãã¾ãã"
+msgstr "ã©ã¡ãã«å¯¾ãã¦ã (ã¾ãããããããè¤æ°) åæã«è¨å®ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: filters.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
@@ -133,150 +96,78 @@
"this:"
msgstr ""
"<literal>Session</literal> ä¸ã®ã¡ã½ãã㯠<literal>enableFilter(String "
-"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
-"literal>, <literal>disableFilter(String filterName)</literal> ã§ãã ããã©ã«"
+"filterName)</literal>ã <literal>getEnabledFilter(String filterName)</"
+"literal>ã <literal>disableFilter(String filterName)</literal> ã§ããããã©ã«"
"ãã§ã¯ããã£ã«ã¿ã¯ä¸ããããã»ãã·ã§ã³ã«å¯¾ãã¦ä½¿ç¨ <emphasis>ã§ãã¾ãã</"
"emphasis> ã <literal>Filter</literal> ã¤ã³ã¹ã¿ã³ã¹ãè¿ãå¤ã¨ãã "
-"<literal>Session.enableFilter()</literal> ã¡ã½ããã使ããã¨ã§ã ãã£ã«ã¿ã¯æ"
-"示çã«ä½¿ç¨å¯è½ã¨ãªãã¾ãã ä¸ã§å®ç¾©ããåç´ãªãã£ã«ã¿ã®ä½¿ç¨ã¯ããã®ããã«ãªã"
-"ã¾ããï¼"
+"<literal>Session.enabledFilter()</literal> ã¡ã½ããã使ããã¨ã§ããã£ã«ã¿ã¯æ"
+"示çã«ä½¿ç¨å¯è½ã¨ãªãã¾ããä¸ã§å®ç¾©ããåç´ãªãã£ã«ã¿ã®ä½¿ç¨ã¯ããã®ããã«ãªã"
+"ã¾ãï¼"
-#. Tag: programlisting
-#: filters.xml:83
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:85
-#, fuzzy, no-c-format
-msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
-"org.hibernate.Filterã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã¯ã Hibernateã®å¤ãã«å
±éãã¦"
-"ããã¡ã½ããé£éã許ãã¦ãããã¨ã«æ³¨æãã¦ãã ããã"
+"org.hibernate.Filter ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ã¡ã½ããã¯ã Hibernate ã®å¤ãã«å
±éã"
+"ã¦ããã¡ã½ããé£éã許ãã¦ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: filters.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr "æå¹ãªã¬ã³ã¼ããã¼ã¿ãã¿ã¼ã³ãæã¤ä¸æãã¼ã¿ã使ã£ãå®å
¨ãªä¾ã§ãï¼"
-#. Tag: programlisting
-#: filters.xml:93
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:95
-#, fuzzy, no-c-format
-msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
-"常ã«ç¾å¨ã®æå¹ã¬ã³ã¼ããè¿å´ãããã¨ãä¿è¨¼ããããã«ã åç´ã«ã社å¡ãã¼ã¿ã®æ¤"
-"ç´¢ããåã«ã»ãã·ã§ã³ä¸ã®ãã£ã«ã¿ãæå¹ã«ãã¾ãã"
+"常ã«ç¾å¨ã®æå¹ã¬ã³ã¼ããè¿å´ãããã¨ãä¿è¨¼ããããã«ãåç´ã«ã社å¡ãã¼ã¿ã®æ¤"
+"ç´¢ããåã«ã»ãã·ã§ã³ä¸ã®ãã£ã«ã¿ãæå¹ã«ãã¾ã:"
-#. Tag: programlisting
-#: filters.xml:100
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:102
-#, fuzzy, no-c-format
-msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
-"ä¸è¨ã®HQLã§ã¯ãçµæã®çµ¦æã®å¶ç´ã«ã¤ãã¦æç¤ºçã«è§¦ããã ãã§ããã æå¹ã«ãªã£"
+"ä¸è¨ã® HQL ã§ã¯ãçµæã®çµ¦æã®å¶ç´ã«ã¤ãã¦æç¤ºçã«è§¦ããã ãã§ãããæå¹ã«ãªã£"
"ã¦ãããã£ã«ã¿ã®ãããã§ããã®ã¯ã¨ãªã¯çµ¦æã100ä¸ãã«ä»¥ä¸ã®ç¾å½¹ã®ç¤¾å¡ã ããè¿"
"ãã¾ãã"
#. Tag: para
-#: filters.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
"safest to set this up for left outer joining. Place the parameter first "
"followed by the column name(s) after the operator."
msgstr ""
-"(HQLããã¼ããã§ããã§ï¼å¤é¨çµåãæã¤ãã£ã«ã¿ã使ãã¤ãããªãã æ¡ä»¶å¼ã®æ¹å"
-"ã«æ³¨æãã¦ãã ããã ããã¯å·¦å¤é¨çµåã®ããã«è¨å®ããã®ãæãå®å
¨ã§ãã ä¸è¬"
-"çã«ãæ¼ç®åã®å¾ã«ã©ã åã«ç¶ãã¦æåã®ãã©ã¡ã¼ã¿ãé
ç½®ãã¦ãã ããã"
+"注è¨ï¼ (HQL ããã¼ããã§ããã§ï¼å¤é¨çµåãæã¤ãã£ã«ã¿ã使ãã¤ãããªããæ¡ä»¶"
+"å¼ã®æ¹åã«æ³¨æãã¦ãã ãããããã¯å·¦å¤é¨çµåã®ããã«è¨å®ããã®ãæãå®å
¨ã§"
+"ããä¸è¬çã«ãæ¼ç®åã®å¾ã«ã©ã åã«ç¶ãã¦æåã®ãã©ã¡ã¼ã¿ãé
ç½®ãã¦ãã ããã"
#. Tag: para
-#: filters.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
"collections each with its own condition. This can be problematic when the "
"conditions are the same each time. Using <literal><filter-def/></"
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
-msgstr "translator-credits"
-
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
msgstr ""
+"å®ç¾©ãããã¨ããã£ã«ã¿ã¯ãããããç¬èªã®ã³ã³ãã£ã·ã§ã³ãæã¤è¤æ°ã®ã¨ã³ãã£"
+"ãã£ãã³ã¬ã¯ã·ã§ã³ã«ã¢ã¿ããããã¾ããã³ã³ãã£ã·ã§ã³ããã¤ãåãå ´åãããã¯"
+"é¢åããããã¾ãããå¾ã£ã¦ã <literal><filter-def/></literal> ã¯ã屿§"
+"ã¾ã㯠CDATA ã¨ãã¦ããã©ã«ãã³ã³ãã£ã·ã§ã³ãå®ç¾©ãããã¨ãå¯è½ã«ãªãã¾ãï¼"
#. Tag: para
-#: filters.xml:124
#, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
@@ -284,3 +175,150 @@
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
+"ãã®ããã©ã«ãã®ã³ã³ãã£ã·ã§ã³ã¯ãã³ã³ãã£ã·ã§ã³ãæå®ããã«ä½ãã«ã¢ã¿ããã"
+"ããå ´åãã¤ã§ã使ããã¾ããããã¯ãç¹å®ã®ã±ã¼ã¹ã«ããã¦ããã©ã«ãã®ã³ã³ãã£"
+"ã·ã§ã³ããªã¼ãã¼ã©ã¤ããããã£ã«ã¿ã¼ã®ã¢ã¿ããã¡ã³ãã®ä¸é¨ã¨ãã¦ãç¹å®ã®ã³ã³"
+"ãã£ã·ã§ã³ãä¸ãããã¨ãã§ãããã¨ãæå³ãã¾ãã"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+#~ msgstr ""
+#~ "<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+#~ msgstr ""
+#~ "session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", \"some-"
+#~ "value\");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class="
+#~ "\"Department\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column="
+#~ "\"eff_end_dt\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "Session session = ...;\n"
+#~ "session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary "
+#~ "> :targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
+#~ msgstr ""
+#~ "<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,74 +1,64 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-07 09:59+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: inheritance_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Inheritance mapping"
msgstr "ç¶æ¿ãããã³ã°"
#. Tag: title
-#: inheritance_mapping.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The three strategies"
msgstr "3ã¤ã®æ¦ç¥"
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
-msgstr "Hibernateã¯3ã¤ã®åºæ¬çãªç¶æ¿ã®ãããã³ã°æ¦ç¥ããµãã¼ããã¾ãã"
+msgstr "Hibernate ã¯3ã¤ã®åºæ¬çãªç¶æ¿ã®ãããã³ã°æ¦ç¥ããµãã¼ããã¾ãã"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
-msgstr "ã¯ã©ã¹é層ãã¨ã®ãã¼ãã«ï¼table-per-class-hierarchyï¼"
+msgstr "ã¯ã©ã¹é層ãã¨ã®ãã¼ãã« ï¼table-per-class-hierarchyï¼"
#. Tag: para
-#: inheritance_mapping.xml:45
-#, fuzzy, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã«ï¼table-per-subclassï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"table per subclass"
+#, no-c-format
+msgid "table per subclass"
+msgstr "ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã« ï¼table-per-subclassï¼"
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
-msgstr "å
·è±¡ã¯ã©ã¹ãã¨ã®ãã¼ãã«ï¼table-per-concrete-classï¼"
+msgstr "å
·è±¡ã¯ã©ã¹ãã¨ã®ãã¼ãã« ï¼table-per-concrete-classï¼"
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
"polymorphism:"
msgstr ""
-"å ãã¦4ã¤ç®ã«ãHibernateã¯ãããã«ç°ãªãæ§è³ªãæã£ãããªã¢ã¼ãã£ãºã ããµãã¼"
-"ããã¾ãã"
+"å ãã¦4ã¤ç®ã«ã Hibernate ã¯ãããã«ç°ãªãæ§è³ªãæã£ãããªã¢ã¼ãã£ãºã ããµ"
+"ãã¼ããã¾ãã"
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
msgstr "æé»çããªã¢ã¼ãã£ãºã "
#. Tag: para
-#: inheritance_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
"the same inheritance hierarchy. You can then make use of implicit "
@@ -82,19 +72,18 @@
"<literal><join></literal> elements (see below for an example)."
msgstr ""
"åä¸ã®ç¶æ¿é層ã®ç°ãªããã©ã³ãã«å¯¾ãã¦ç°ãªããããã³ã°æ¦ç¥ã使ããã¨ãã§ãã¾"
-"ãã ãã®å ´åã«ã¯å
¨ä½ã®éå±¤ã«æ¸¡ãããªã¢ã¼ãã£ãºã ãå®ç¾ããããã«æé»çããª"
-"ã¢ã¼ãã£ãºã ã使ç¨ãã¾ãã ããããHibernateã¯åãã«ã¼ã <literal><"
-"class></literal> è¦ç´ å
ã§ <literal><subclass></literal> ãããã³ã°ã"
-"<literal><joined-subclass></literal> ãããã³ã°ã <literal><union-"
-"subclass></literal> ãããã³ã°ã®åæä½¿ç¨ããµãã¼ããã¦ãã¾ããã "
+"ãããã®å ´åã«ã¯å
¨ä½ã®éå±¤ã«æ¸¡ãããªã¢ã¼ãã£ãºã ãå®ç¾ããããã«æé»çããª"
+"ã¢ã¼ãã£ãºã ã使ç¨ãã¾ãããããã Hibernate ã¯åãã«ã¼ã <literal><"
+"class></literal> è¦ç´ å
ã§ <literal><subclass></literal> ãããã³"
+"ã°ã <literal><joined-subclass></literal> ãããã³ã°ã <literal><"
+"union-subclass></literal> ãããã³ã°ã®åæä½¿ç¨ããµãã¼ããã¦ãã¾ããã "
"<literal><subclass></literal> è¦ç´ 㨠<literal><join></literal> è¦"
-"ç´ ãçµã¿åããããã¨ã§ã åä¸ <literal><class></literal> è¦ç´ å
ã§ã® "
+"ç´ ãçµã¿åããããã¨ã§ãåä¸ <literal><class></literal> è¦ç´ å
ã§ã® "
"table-per-hierarchy æ¦ç¥ã¨ table-per-subclass æ¦ç¥ã®åæä½¿ç¨ã¯å¯è½ã§ããæ¬¡ã®"
"ä¾ãè¦ã¦ãã ããã"
#. Tag: para
-#: inheritance_mapping.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
"subclass</literal>, and <literal>joined-subclass</literal> mappings in "
@@ -107,145 +96,74 @@
"extends keyword. The ordering inside a single mapping file still needs to be "
"defined as superclasses before subclasses."
msgstr ""
-"<literal>subclass</literal>, <literal>union-subclass</literal> 㨠"
+"<literal>subclass</literal>ã <literal>union-subclass</literal> 㨠"
"<literal>joined-subclass</literal> ãããã³ã°ãè¤æ°ã®ãããã³ã°ããã¥ã¡ã³ãã«"
"å®ç¾©ãããã¨ãåºæ¥ã <literal>hibernate-mapping</literal> ã®ç´ä¸ã«é
ç½®ãã¾"
-"ãã ããã¯æ°ãããããã³ã°ãã¡ã¤ã«ã追å ããã ãã§ãã¯ã©ã¹éå±¤ãæ¡å¼µã§ããã¨"
-"ãããã¨ã§ãã ããããããããããã¹ã¼ãã¼ã¯ã©ã¹ãæå®ãã¦ããµãã¯ã©ã¹ããã"
-"ã³ã°ã« <literal>extends</literal> 屿§ãè¨è¿°ããªããã°ãªãã¾ããã æ³¨æï¼ãã®"
-"ç¹å¾´ã«ããã以åã¯ãããã³ã°ã»ããã¥ã¡ã³ãã®é çªãéè¦ã§ããã Hibernate3ãã"
-"ã¯ãextendsãã¼ã¯ã¼ãã使ãå ´åããããã³ã°ããã¥ã¡ã³ãã®é çªã¯åé¡ã«ãªãã¾ã"
-"ãã ï¼ã¤ã®ãããã³ã°ãã¡ã¤ã«å
ã§é çªä»ããè¡ãã¨ãã¯ã ä¾ç¶ã¨ãã¦ããµãã¯ã©"
+"ããããã¯æ°ãããããã³ã°ãã¡ã¤ã«ã追å ããã ãã§ãã¯ã©ã¹éå±¤ãæ¡å¼µã§ããã¨"
+"ãããã¨ã§ããããããããããããã¹ã¼ãã¼ã¯ã©ã¹ãæå®ãã¦ããµãã¯ã©ã¹ããã"
+"ã³ã°ã« <literal>extends</literal> 屿§ãè¨è¿°ããªããã°ãªãã¾ãããæ³¨è¨ï¼ãã®"
+"ç¹å¾´ã«ããã以åã¯ãããã³ã°ããã¥ã¡ã³ãã®é çªãéè¦ã§ããã Hibernate3 ãã"
+"ã¯ã extends ãã¼ã¯ã¼ãã使ãå ´åããããã³ã°ããã¥ã¡ã³ãã®é çªã¯åé¡ã«ãªãã¾"
+"ãããï¼ã¤ã®ãããã³ã°ãã¡ã¤ã«å
ã§é çªä»ããè¡ãã¨ãã¯ãä¾ç¶ã¨ãã¦ããµãã¯ã©"
"ã¹ãå®ç¾©ããåã«ã¹ã¼ãã¼ã¯ã©ã¹ãå®ç¾©ããå¿
è¦ãããã¾ãã)"
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
msgstr "ã¯ã©ã¹é層ãã¨ã®ãã¼ãã«ï¼table-per-class-hierarchyï¼"
#. Tag: para
-#: inheritance_mapping.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
"implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</"
"literal>, and <literal>ChequePayment</literal>. The table per hierarchy "
"mapping would display in the following way:"
msgstr ""
-"ä¾ãã°ãã¤ã³ã¿ã¼ãã§ã¤ã¹ <literal>Payment</literal> ã¨ããããå®è£
ãã "
-"<literal>CreditCardPayment</literal>ã<literal>CashPayment</literal>ã "
+"ä¾ãã°ãã¤ã³ã¿ã¼ãã§ã¼ã¹ <literal>Payment</literal> ã¨ããããå®è£
ãã "
+"<literal>CreditCardPayment</literal>ã <literal>CashPayment</literal>ã "
"<literal>ChequePayment</literal> ãããã¨ãã¾ããé層ãã¨ã®ãã¼ãã«ãããã³ã°"
-"㯠以ä¸ã®ããã«ãªãã¾ãã"
+"ã¯ä»¥ä¸ã®ããã«ãªãã¾ã:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:109
-#, fuzzy, no-c-format
-msgid ""
"Exactly one table is required. There is a limitation of this mapping "
"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
"literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
-"ã¡ããã©ä¸ã¤ã®ãã¼ãã«ãå¿
è¦ã§ãã ãã®ãããã³ã°æ¦ç¥ã«ã¯ä¸ã¤å¤§ããªå¶éããã"
+"ã¡ããã©ä¸ã¤ã®ãã¼ãã«ãå¿
è¦ã§ãããã®ãããã³ã°æ¦ç¥ã«ã¯ä¸ã¤å¤§ããªå¶éããã"
"ã¾ãã <literal>CCTYPE</literal> ã®ãããªããµãã¯ã©ã¹ã§å®£è¨ãããã«ã©ã 㯠"
"<literal>NOT NULL</literal> å¶ç´ãæã¦ã¾ããã"
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
-msgstr "ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã«ï¼table-per-subclassï¼"
+msgstr "ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã« ï¼table-per-subclassï¼"
#. Tag: para
-#: inheritance_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A table per subclass mapping looks like this:"
-msgstr "table-per-subclass ãããã³ã°ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã"
+msgstr "table-per-subclass ãããã³ã°ã¯ä»¥ä¸ã®ããã«ãªãã¾ã:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:126
-#, fuzzy, no-c-format
-msgid ""
"Four tables are required. The three subclass tables have primary key "
"associations to the superclass table so the relational model is actually a "
"one-to-one association."
msgstr ""
-"ãã®ãããã³ã°ã«ã¯4ã¤ã®ãã¼ãã«ãå¿
è¦ã§ãã3ã¤ã®ãµãã¯ã©ã¹ãã¼ãã«ã¯ ã¹ã¼ãã¼"
+"ãã®ãããã³ã°ã«ã¯4ã¤ã®ãã¼ãã«ãå¿
è¦ã§ãã3ã¤ã®ãµãã¯ã©ã¹ãã¼ãã«ã¯ã¹ã¼ãã¼"
"ã¯ã©ã¹ãã¼ãã«ã¨ã®é¢é£ã示ã主ãã¼ãæã£ã¦ãã¾ã ï¼å®éãé¢ä¿ã¢ãã«ä¸ã¯ä¸å¯¾ä¸"
"é¢é£ã§ãï¼ã"
#. Tag: title
-#: inheritance_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per subclass: using a discriminator"
-msgstr "å¼å¥åãç¨ãã table-per-subclass"
+msgstr "discriminator ãç¨ãã table-per-subclass"
#. Tag: para
-#: inheritance_mapping.xml:137
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
"discriminator column. Other object/relational mappers use a different "
@@ -256,103 +174,40 @@
"strategy, you can combine the use of <literal><subclass></literal> and "
"<literal><join></literal>, as follows:"
msgstr ""
-"Hibernateã® table-per-subclass å®è£
ã¯ãdiscriminatorã«ã©ã ãå¿
è¦ã¨ããªããã¨"
-"ãè¦ãã¦ããã¦ãã ããã Hibernate以å¤ã®O/Rãããã¼ã¯ãtable-per-subclass ã«"
-"ç°ãªãå®è£
ãç¨ãã¾ãã ããã¯ãã¹ã¼ãã¼ã¯ã©ã¹ã®ãã¼ãã«ã«ã¿ã¤ãdiscriminator"
-"ã«ã©ã ãå¿
è¦ã¨ãã¾ãã ãã®ã¢ããã¼ãã¯å®è£
ãå°é£ã«ãªãã¾ãããé¢ä¿ã®è¦ç¹ãã"
-"è¦ãã¨ãããæ£ç¢ºãªãã®ã§ãã table-per-subclass æ¦ç¥ã§discriminatorã«ã©ã ã使"
-"ããããã°ã <literal><subclass></literal> 㨠<literal><join></"
-"literal> ã以ä¸ã®ããã«çµã¿åããã¦ä½¿ã£ã¦ãã ããã"
+"Hibernate ã® table-per-subclass å®è£
ã¯ã discriminator ã«ã©ã ãå¿
è¦ã¨ããªãã"
+"ã¨ãè¦ãã¦ããã¦ãã ããã Hibernate 以å¤ã® O/R ãããã¼ã¯ã table-per-"
+"subclass ã«ç°ãªãå®è£
ãç¨ãã¾ããããã¯ãã¹ã¼ãã¼ã¯ã©ã¹ã®ãã¼ãã«ã«ã¿ã¤ã "
+"discriminator ã«ã©ã ãå¿
è¦ã¨ãã¾ãããã®ã¢ããã¼ãã¯å®è£
ãå°é£ã«ãªãã¾ããã"
+"é¢ä¿ã®è¦ç¹ããè¦ãã¨ãããæ£ç¢ºãªãã®ã§ãã table-per-subclass æ¦ç¥ã§ "
+"discriminator ã«ã©ã ã使ããããã°ã <literal><subclass></literal> 㨠"
+"<literal><join></literal> ã以ä¸ã®ããã«çµã¿åããã¦ä½¿ã£ã¦ãã ããã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
"not to fetch the <literal>ChequePayment</literal> subclass data using an "
"outer join when querying the superclass."
msgstr ""
-"ãªãã·ã§ã³ã® <literal>fetch=\"select\"</literal> 宣è¨ã¯ã ã¹ã¼ãã¼ã¯ã©ã¹ã®ã¯"
-"ã¨ãªå®è¡æã«å¤é¨çµåã使ã£ã¦ã ãµãã¯ã©ã¹ã® <literal>ChequePayment</literal> "
+"ãªãã·ã§ã³ã® <literal>fetch=\"select\"</literal> 宣è¨ã¯ãã¹ã¼ãã¼ã¯ã©ã¹ã®ã¯ã¨"
+"ãªå®è¡æã«å¤é¨çµåã使ã£ã¦ããµãã¯ã©ã¹ã® <literal>ChequePayment</literal> "
"ãã¼ã¿ãåå¾ããªãããã«æå®ããããã®ãã®ã§ãã"
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr "table-per-subclass 㨠table-per-class-hierarchy ã®æ··å"
#. Tag: para
-#: inheritance_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
-"ãã®ã¢ããã¼ãã使ç¨ããã¨ãtable-per-hierarchy 㨠table-per-subclass æ¦ç¥ã "
+"ãã®ã¢ããã¼ãã使ç¨ããã¨ã table-per-hierarchy 㨠table-per-subclass æ¦ç¥ã"
"çµã¿åãããäºãå¯è½ã§ãã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
@@ -360,68 +215,33 @@
"</literal>."
msgstr ""
"ãããã®ãããã³ã°æ¦ç¥ã§ãã£ã¦ããã«ã¼ãã§ãã <literal>Payment</literal> ã¯"
-"ã©ã¹ã¸ã® ããªã¢ã¼ãã£ãã¯ãªé¢é£ã¯ <literal><many-to-one></literal> ã"
+"ã©ã¹ã¸ã®ããªã¢ã¼ãã£ãã¯ãªé¢é£ã¯ <literal><many-to-one></literal> ã"
"使ã£ã¦ãããã³ã°ãã¾ãã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr "å
·è±¡ã¯ã©ã¹ãã¨ã®ãã¼ãã«ï¼table-per-concrete-classï¼"
#. Tag: para
-#: inheritance_mapping.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
"you can use <literal><union-subclass></literal>."
msgstr ""
-"table-per-concrete-class æ¦ç¥ã®ãããã³ã°ã«å¯¾ããã¢ããã¼ãã¯ã2ã¤ããã¾ãã "
-"1ã¤ç®ã¯ <literal><union-subclass></literal> ãå©ç¨ããæ¹æ³ã§ãã"
+"table-per-concrete-class æ¦ç¥ã®ãããã³ã°ã«å¯¾ããã¢ããã¼ãã¯ã2ã¤ããã¾ãã1"
+"ã¤ç®ã¯ <literal><union-subclass></literal> ãå©ç¨ããæ¹æ³ã§ãã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
"all properties of the class, including inherited properties."
msgstr ""
"ãµãã¯ã©ã¹ãã¨ã«3ã¤ã®ãã¼ãã«ãå¿
è¦ã§ããããããã®ãã¼ãã«ã¯ãç¶æ¿ããããã£"
-"ãå«ãã ã ã¯ã©ã¹ã®å
¨ã¦ã®ããããã£ã«å¯¾ããã«ã©ã ãå®ç¾©ãã¾ãã"
+"ãå«ãã ãã¯ã©ã¹ã®å
¨ã¦ã®ããããã£ã«å¯¾ããã«ã©ã ãå®ç¾©ãã¾ãã"
#. Tag: para
-#: inheritance_mapping.xml:194
#, fuzzy, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
@@ -430,129 +250,78 @@
"The primary key seed has to be shared across all unioned subclasses of a "
"hierarchy."
msgstr ""
-"ãã®ã¢ããã¼ãã«ã¯å¶éãããã¾ãã ããã¯ãããããã£ãã¹ã¼ãã¼ã¯ã©ã¹ã«ããã"
-"ã³ã°ããã¦ããå ´åã å
¨ã¦ã®ãµãã¯ã©ã¹ã«ããã¦ã«ã©ã åãåãã§ãªããã°ãªããªã"
-"ã¨ãããã®ã§ãã ï¼Hibernateã®ä»å¾ã®ãªãªã¼ã¹ã§ç·©åãããããããã¾ããï¼ã "
-"<union-subclass> ã使ã£ã table-per-concrete-class æ¦ç¥ã§ã¯èå¥åçææ¦"
-"ç¥ã使ç¨ã§ãã¾ããã 主ãã¼ãçæããããã®ã·ã¼ãã¯ãå
¨ã¦ã® union subclass ã®"
-"é層å
ã§å
±æããå¿
è¦ãããããã§ãã"
+"ãã®ã¢ããã¼ãã«ã¯å¶éãããã¾ããããã¯ãããããã£ãã¹ã¼ãã¼ã¯ã©ã¹ã«ããã"
+"ã³ã°ããã¦ããå ´åãå
¨ã¦ã®ãµãã¯ã©ã¹ã«ããã¦ã«ã©ã åãåãã§ãªããã°ãªããªã"
+"ã¨ãããã®ã§ããï¼Hibernate ã®ä»å¾ã®ãªãªã¼ã¹ã§ç·©åãããããããã¾ããï¼ã "
+"union subclass ç¶æ¿ã§ã¯èå¥åçææ¦ç¥ã使ç¨ã§ãã¾ããã主ãã¼ãçæããããã®"
+"ã·ã¼ãã¯ãå
¨ã¦ã® union subclass ã®é層å
ã§å
±æããå¿
è¦ãããããã§ãã"
#. Tag: para
-#: inheritance_mapping.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
"literal>. If it is not abstract, an additional table (it defaults to "
"<literal>PAYMENT</literal> in the example above), is needed to hold "
"instances of the superclass."
msgstr ""
-"ããã¹ã¼ãã¼ã¯ã©ã¹ãæ½è±¡ã¯ã©ã¹ãªãã<literal>abstract=\"true\"</literal>ã¨"
-"ãããã³ã°ãã¾ãã ãã¡ãããã¹ã¼ãã¼ã¯ã©ã¹ãæ½è±¡ã¯ã©ã¹ã§ãªããªããã¹ã¼ãã¼ã¯"
-"ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã ä¿æããããã®ãã¼ãã«ã®è¿½å ãå¿
è¦ã¨ãªãã¾ã(ä¸ã®ä¾ã§ã®"
+"ããã¹ã¼ãã¼ã¯ã©ã¹ãæ½è±¡ã¯ã©ã¹ãªãã <literal>abstract=\"true\"</literal> ã¨"
+"ãããã³ã°ãã¾ãããã¡ãããã¹ã¼ãã¼ã¯ã©ã¹ãæ½è±¡ã¯ã©ã¹ã§ãªããªããã¹ã¼ãã¼ã¯"
+"ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãä¿æããããã®ãã¼ãã«ã®è¿½å ãå¿
è¦ã¨ãªãã¾ã (ä¸ã®ä¾ã§ã®"
"ããã©ã«ã㯠<literal>PAYMENT</literal> )ã"
#. Tag: title
-#: inheritance_mapping.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
msgstr "æé»çããªã¢ã¼ãã£ãºã ãç¨ãã table-per-concrete-class"
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
-msgstr "ããä¸ã¤ã®ã¢ããã¼ãã¯æé»çããªã¢ã¼ãã£ãºã ã®ä½¿ç¨ã§ãã"
+msgstr "ããä¸ã¤ã®ã¢ããã¼ãã¯æé»çããªã¢ã¼ãã£ãºã ã®ä½¿ç¨ã§ãï¼"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:221
-#, fuzzy, no-c-format
-msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
"explicitly. Also notice that properties of <literal>Payment</literal> are "
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
-"<literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ãã©ãã«ãæç¤ºçã«ç¤ºããã¦ããªãã"
-"ã¨ã«æ³¨æãã¦ãã ããã ããã¦ã<literal>Payment</literal> ããããã£ãããã"
-"ãã®ãµãã¯ã©ã¹ã«ãããã³ã°ããã¦ãããã¨ã«ã注æãã¦ãã ããã ããéè¤ãé¿ã"
-"ããã®ã§ããã°ãXMLã¨ã³ãã£ãã£ã®å©ç¨ãèãã¦ãã ããã ï¼ä¾ï¼ "
+"<literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ãã©ãã«ãæç¤ºçã«ç¤ºããã¦ããªãã"
+"ã¨ã«æ³¨æãã¦ãã ãããããã¦ã <literal>Payment</literal> ããããã£ãããã"
+"ãã®ãµãã¯ã©ã¹ã«ãããã³ã°ããã¦ãããã¨ã«ã注æãã¦ãã ãããããéè¤ãé¿ã"
+"ããã®ã§ããã°ã XML ã¨ã³ãã£ãã£ã®å©ç¨ãèãã¦ãã ããã ï¼ä¾ï¼ "
"<literal>DOCTYPE</literal> 宣è¨ã«ããã <literal>[ <!ENTITY allproperties "
"SYSTEM \"allproperties.xml\"> ]</literal> ã¨ããããã³ã°ã«ããã "
-"<literal>&allproperties;</literal>ï¼"
+"<literal>&allproperties;</literal>ï¼ã"
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
"<literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
-"ãã®ã¢ããã¼ãã®æ¬ ç¹ã¯ãHibernateãããªã¢ã¼ãã£ãã¯ãªã¯ã¨ãªã®å®è¡æã«SQL "
+"ãã®ã¢ããã¼ãã®æ¬ ç¹ã¯ã Hibernate ãããªã¢ã¼ãã£ãã¯ãªã¯ã¨ãªã®å®è¡æã« SQL "
"<literal>UNION</literal> ãçæããªãç¹ã§ãã"
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
"literal> is usually mapped using <literal><any></literal>."
msgstr ""
-"ãã®ãããã³ã°æ¦ç¥ã«å¯¾ãã¦ã¯ã<literal>Payment</literal> ã¸ã®ããªã¢ã¼ãã£ãã¯"
-"ãªé¢é£ã¯ é常ã<literal><any></literal> ã使ã£ã¦ãããã³ã°ããã¾ãã"
+"ãã®ãããã³ã°æ¦ç¥ã«å¯¾ãã¦ã¯ã <literal>Payment</literal> ã¸ã®ããªã¢ã¼ãã£ã"
+"ã¯ãªé¢é£ã¯å¸¸ã«ã <literal><any></literal> ã使ã£ã¦ãããã³ã°ããã¾ãã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
msgstr "ä»ã®ç¶æ¿ãããã³ã°ã¨æé»çããªã¢ã¼ãã£ãºã ã®çµã¿åãã"
#. Tag: para
-#: inheritance_mapping.xml:248
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
"literal> element, and since <literal>Payment</literal> is just an "
@@ -560,50 +329,16 @@
"inheritance hierarchy. You can still use polymorphic queries against the "
"<literal>Payment</literal> interface."
msgstr ""
-"ãã®ãããã³ã°ã«ã¤ãã¦ã®æ´ãªã注æç¹ãããã¾ãã ãµãã¯ã©ã¹ãèªèº«ã "
-"<literal><class></literal> è¦ç´ ã¨ãã¦ãããã³ã°ãã¦ããã®ã§ã ï¼ã㤠"
-"<literal>Payment</literal> ã¯åãªãã¤ã³ã¿ã¼ãã§ã¤ã¹ãªã®ã§ï¼ã ããããã®ãµã"
-"ã¯ã©ã¹ã¯ç°¡åã«ãã®ä»ã®ç¶æ¿é層ã®ä¸é¨ã¨ãªãã¾ãã ï¼ããããä»ã¾ã§ã©ãã "
-"<literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã«å¯¾ããããªã¢ã¼ãã£ãã¯ãªã¯ã¨ãª "
-"ã使ç¨ãããã¨ãã§ãã¾ãï¼"
+"ãã®ãããã³ã°ã«ã¤ãã¦ã®æ´ãªã注æç¹ãããã¾ãããµãã¯ã©ã¹ãèªèº«ã "
+"<literal><class></literal> è¦ç´ ã¨ãã¦ãããã³ã°ãã¦ããã®ã§ãï¼ã㤠"
+"<literal>Payment</literal> ã¯åãªãã¤ã³ã¿ã¼ãã§ã¼ã¹ãªã®ã§ï¼ãããããã®ãµãã¯"
+"ã©ã¹ã¯ç°¡åã«ãã®ä»ã®ç¶æ¿é層ã®ä¸é¨ã¨ãªãã¾ããï¼ããããä»ã¾ã§ã©ãã "
+"<literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«å¯¾ããããªã¢ã¼ãã£ãã¯ãªã¯ã¨ãªã"
+"使ç¨ãããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:258
-#, fuzzy, no-c-format
-msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
"execute a query against the <literal>Payment</literal> interface, for "
"example <literal>from Payment</literal>, Hibernate automatically returns "
@@ -612,229 +347,589 @@
"literal> and <literal>ChequePayment</literal>, but not instances of "
"<literal>NonelectronicTransaction</literal>."
msgstr ""
-"ããä¸åº¦è¿°ã¹ã¾ããã<literal>Payment</literal> ã¯æç¤ºçã«å®ç¾©ããã¾ããã ã"
-"ãã<literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã«å¯¾ãã¦ã¯ã¨ãªãå®è¡ãããªã "
-"ï¼ä¾ãã° <literal>from Payment</literal> ç¯ã使ã£ã¦ï¼ã Hibernateã¯èªåçã« "
-"<literal>CreditCardPayment</literal> ï¼ã¨CreditCardPaymentã®ãµãã¯ã©ã¹ã"
-"<literal>Payment</literal> ã®å®è£
ã§ããããï¼ã ããã³ã"
-"<literal>CashPayment</literal> ã<literal>ChequePayment</literal> ã®ã¤ã³ã¹ã¿"
+"ããä¸åº¦è¿°ã¹ã¾ããã <literal>Payment</literal> ã¯æç¤ºçã«å®ç¾©ããã¾ãããã"
+"ãã <literal>Payment</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«å¯¾ãã¦ã¯ã¨ãªãå®è¡ãããªã "
+"ï¼ä¾ãã° <literal>from Payment</literal> ç¯ã使ã£ã¦ï¼ã Hibernate ã¯èªåçã« "
+"<literal>CreditCardPayment</literal> ï¼ã¨ CreditCardPayment ã®ãµãã¯ã©ã¹ã "
+"<literal>Payment</literal> ã®å®è£
ã§ããããï¼ãããã³ã "
+"<literal>CashPayment</literal> ã <literal>ChequePayment</literal> ã®ã¤ã³ã¹ã¿"
"ã³ã¹ãè¿ãã¾ãã <literal>NonelectronicTransaction</literal> ã¤ã³ã¹ã¿ã³ã¹ã¯è¿"
"ãã¾ããã"
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "å¶é"
#. Tag: para
-#: inheritance_mapping.xml:275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
"per concrete-class mapping strategy. There are somewhat less restrictive "
"limitations to <literal><union-subclass></literal> mappings."
msgstr ""
"table-per-concrete-class ãããã³ã°æ¦ç¥ã¸ã®ãæé»çããªã¢ã¼ãã£ãºã ãã¢ããã¼"
-"ãã«ã¯ ããã¤ãã®å¶éãããã¾ãã<literal><union-subclass></literal> "
-"ãããã³ã°ã«å¯¾ãã¦ã å°ãå¼±ãã®å¶éãããã¾ãã"
+"ãã«ã¯ããã¤ãã®å¶éãããã¾ãã <literal><union-subclass></literal> "
+"ãããã³ã°ã«å¯¾ãã¦ãå°ãå¼±ãã®å¶éãããã¾ãã"
#. Tag: para
-#: inheritance_mapping.xml:282
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
-"次ã®ãã¼ãã«ã«ãHibernateã«ãããtable-per-concrete-classãããã³ã°ã® å¶éã"
-"æé»çããªã¢ã¼ãã£ãºã ã®å¶éã示ãã¾ãã"
+"次ã®ãã¼ãã«ã«ã Hibernate ã«ããã table-per-concrete-class ãããã³ã°ã®å¶é"
+"ãæé»çããªã¢ã¼ãã£ãºã ã®å¶éã示ãã¾ãã"
#. Tag: title
-#: inheritance_mapping.xml:288
#, no-c-format
msgid "Features of inheritance mappings"
msgstr "ç¶æ¿ãããã³ã°ã®æ©è½"
#. Tag: entry
-#: inheritance_mapping.xml:301
#, no-c-format
msgid "Inheritance strategy"
msgstr "ç¶æ¿æ¦ç¥"
#. Tag: entry
-#: inheritance_mapping.xml:302
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-one"
-msgstr "å¤å¯¾ä¸ã®ããªã¢ã¼ãã£ãºã "
+msgstr "å¤å¯¾å¤ã®ããªã¢ã¼ãã£ãºã "
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
msgstr "ä¸å¯¾ä¸ã®ããªã¢ã¼ãã£ãºã "
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
msgstr "ä¸å¯¾å¤ã®ããªã¢ã¼ãã£ãºã "
#. Tag: entry
-#: inheritance_mapping.xml:305
#, no-c-format
msgid "Polymorphic many-to-many"
msgstr "å¤å¯¾å¤ã®ããªã¢ã¼ãã£ãºã "
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
-msgstr ""
+msgstr "ããªã¢ã¼ãã£ãã¯ãª <literal>load()/get()</literal>"
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
msgstr "ããªã¢ã¼ãã£ãºã ã使ã£ãã¯ã¨ãª"
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
msgstr "ããªã¢ã¼ãã£ãºã ã使ã£ãçµå"
#. Tag: entry
-#: inheritance_mapping.xml:309
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Outer join fetching"
msgstr "å¤é¨çµåã«ãããã§ãã"
#. Tag: entry
-#: inheritance_mapping.xml:314
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per class-hierarchy"
-msgstr "table per class-hierarchy"
+msgstr "ã¯ã©ã¹é層ãã¨ã®ãã¼ãã« ï¼table-per-class-hierarchyï¼"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
-#, no-c-format
-msgid "<many-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-one></literal>"
msgstr "<many-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
-#, no-c-format
-msgid "<one-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-one></literal>"
msgstr "<one-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
-#, no-c-format
-msgid "<one-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-many></literal>"
msgstr "<one-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
-#, no-c-format
-msgid "<many-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-many></literal>"
msgstr "<many-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
-#, no-c-format
-msgid "s.get(Payment.class, id)"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>s.get(Payment.class, id)</literal>"
msgstr "s.get(Payment.class, id)"
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
-#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>from Payment p</literal>"
+msgstr "ããªã¢ã¼ãã£ãã¯ãª <literal>load()/get()</literal>"
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
+#. Tag: entry
#, no-c-format
-msgid "from Order o join o.payment p"
-msgstr "from Order o join o.payment p"
+msgid "<literal>from Order o join o.payment p</literal>"
+msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
+#. Tag: entry
#, no-c-format
-msgid "supported"
-msgstr "ãµãã¼ã"
-
-#. Tag: entry
-#: inheritance_mapping.xml:325
-#, fuzzy, no-c-format
-msgid "<entry>table per subclass</entry>"
+msgid "<emphasis>supported</emphasis>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã«ï¼table-per-subclassï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"table per subclass"
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr "table per concrete-class (union-subclass)"
#. Tag: entry
-#: inheritance_mapping.xml:339
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
"literal> only)"
msgstr ""
+"<literal><one-to-many></literal> ( <literal>inverse=\"true\"</literal> "
+"ã®ããã«éããã)"
#. Tag: entry
-#: inheritance_mapping.xml:347
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
msgstr "table per concrete class (implicit polymorphism)"
-#. Tag: literal
-#: inheritance_mapping.xml:348
-#, no-c-format
-msgid "<any>"
-msgstr "<any>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><any></literal>"
+msgstr "ããªã¢ã¼ãã£ãã¯ãª <literal>load()/get()</literal>"
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
-msgstr "ãµãã¼ããã¦ãã¾ãã"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
-#, no-c-format
-msgid "<many-to-any>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-any></literal>"
msgstr "<many-to-any>"
-#. Tag: literal
-#: inheritance_mapping.xml:352
-#, no-c-format
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
-#~ msgid "load()/get()"
-#~ msgstr "load()/get()"
+#, fuzzy
+#~ msgid "table per class-heirarchy"
+#~ msgstr "table per class-hierarchy"
-#~ msgid "Polymorphic <placeholder-1/>"
-#~ msgstr "ããªã¢ã¼ãã£ãºã ã使ã£ã<placeholder-1/>"
+#, fuzzy
+#~ msgid "Polymorphic many-to-one: <code><any></code>"
+#~ msgstr "å¤å¯¾ä¸ã®ããªã¢ã¼ãã£ãºã "
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "<para>ãµãã¯ã©ã¹ãã¨ã®ãã¼ãã« ï¼table-per-subclassï¼ </para>"
-#~ msgid "<placeholder-1/> (for <placeholder-2/> only)"
-#~ msgstr "<placeholder-1/> (for <placeholder-2/> only)"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ " <hibernate-mapping>\n"
+#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value="
+#~ "\"D\">\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </subclass>\n"
+#~ " </hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-"
+#~ "value=\"D\">\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </subclass>\n"
+#~ " </hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " <join table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " <join table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class="
+#~ "\"Payment\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
+#~ " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
+#~ " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
+#~ " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
+#~ " <column name=\"PAYMENT_CLASS\"/>\n"
+#~ " <column name=\"PAYMENT_ID\"/>\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
+#~ " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
+#~ " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
+#~ " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
+#~ " <column name=\"PAYMENT_CLASS\"/>\n"
+#~ " <column name=\"PAYMENT_ID\"/>\n"
+#~ "</any>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
+#~ " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/"
+#~ ">\n"
+#~ " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN"
+#~ "\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid "<term>table per subclass</term>"
+#~ msgstr "<entry>table per subclass</entry>"
+
+#~ msgid "from Payment p"
+#~ msgstr "from Payment p"
+
+#~ msgid "supported"
+#~ msgstr "ãµãã¼ã"
+
+#~ msgid "<any>"
+#~ msgstr "<any>"
+
+#~ msgid "not supported"
+#~ msgstr "ãµãã¼ããã¦ãã¾ãã"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,30 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-20 14:25+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
msgstr "ããã©ã¼ãã³ã¹ã®æ¹å"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
msgstr "ãã§ããæ¦ç¥"
#. Tag: para
-#: performance.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
"associated objects if the application needs to navigate the association. "
@@ -32,31 +32,28 @@
"by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
"<emphasis>ãã§ããæ¦ç¥</emphasis> ã¯ãã¢ããªã±ã¼ã·ã§ã³ãé¢é£ãããã²ã¼ããã"
-"å¿
è¦ããã ã¨ãã«ãHibernateãé¢é£ãªãã¸ã§ã¯ãã復å
ããããã«ä½¿ç¨ããæ¦ç¥ã§"
-"ãããã§ããæ¦ç¥ã¯O/Rãããã³ã°ã® ã¡ã¿ãã¼ã¿ã«å®£è¨ããããç¹å®ã®HQLã "
+"å¿
è¦ãããã¨ãã«ã Hibernate ãé¢é£ãªãã¸ã§ã¯ãã復å
ããããã«ä½¿ç¨ããæ¦ç¥ã§"
+"ãããã§ããæ¦ç¥ã¯ O/R ãããã³ã°ã®ã¡ã¿ãã¼ã¿ã«å®£è¨ããããç¹å®ã® HQL ã "
"<literal>Criteria</literal> ã¯ã¨ãªã§ãªã¼ãã¼ã©ã¤ããã¾ãã"
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
-msgstr "Hibernate3ã¯æ¬¡ã«ç¤ºããã§ããæ¦ç¥ãå®ç¾©ãã¦ãã¾ãã"
+msgstr "Hibernate3 ã¯æ¬¡ã«ç¤ºããã§ããæ¦ç¥ãå®ç¾©ãã¦ãã¾ã:"
#. Tag: para
-#: performance.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
"instance or collection in the same <literal>SELECT</literal>, using an "
"<literal>OUTER JOIN</literal>."
msgstr ""
-"<emphasis>çµåãã§ãã</emphasis> - Hibernate㯠<literal>OUTER JOIN</"
-"literal> ã使ã£ã¦ã é¢é£ããã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³ãï¼ã¤ã® "
+"<emphasis>çµåãã§ãã</emphasis> - Hibernate 㯠<literal>OUTER JOIN</"
+"literal> ã使ã£ã¦ãé¢é£ããã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³ãï¼ã¤ã® "
"<literal>SELECT</literal> ã§å¾©å
ãã¾ãã"
#. Tag: para
-#: performance.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
"used to retrieve the associated entity or collection. Unless you explicitly "
@@ -65,12 +62,11 @@
msgstr ""
"<emphasis>ã»ã¬ã¯ããã§ãã</emphasis> - 2åç®ã® <literal>SELECT</literal> ã§"
"é¢é£ããã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã復å
ãã¾ãã <literal>lazy=\"false\"</"
-"literal> ã§æç¤ºçã«é
å»¶ãã§ãããç¡å¹ã«ããªããã°ããã®2åç®ã®selectã¯å®éã« "
-"é¢é£ã«ã¢ã¯ã»ã¹ããã¨ãã®ã¿å®è¡ãããã§ãããã"
+"literal> ã§æç¤ºçã«é
å»¶ãã§ãããç¡å¹ã«ããªããã°ããã®2åç®ã® select ã¯å®é"
+"ã«é¢é£ã«ã¢ã¯ã»ã¹ããã¨ãã®ã¿å®è¡ãããã§ãããã"
#. Tag: para
-#: performance.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
"is used to retrieve the associated collections for all entities retrieved in "
@@ -80,13 +76,12 @@
msgstr ""
"<emphasis>ãµãã»ã¬ã¯ããã§ãã</emphasis> - 2åç®ã® <literal>SELECT</"
"literal> ã§ãç´åã®ã¯ã¨ãªããã§ããã§å¾©å
ãããã¹ã¦ã®è¦ç´ ã«é¢é£ããã³ã¬ã¯ã·ã§"
-"ã³ã 復å
ãã¾ãã <literal>lazy=\"false\"</literal> ã§æç¤ºçã«é
å»¶ãã§ããã"
-"ç¡å¹ã«ããªããã°ããã®2åç®ã®selectã¯å®éã« é¢é£ã«ã¢ã¯ã»ã¹ããã¨ãã®ã¿å®è¡ã"
-"ããã§ãããã"
+"ã³ã復å
ãã¾ãã <literal>lazy=\"false\"</literal> ã§æç¤ºçã«é
å»¶ãã§ãããç¡"
+"å¹ã«ããªããã°ããã®2åç®ã® select ã¯å®éã«é¢é£ã«ã¢ã¯ã»ã¹ããã¨ãã®ã¿å®è¡ãã"
+"ãã§ãããã"
#. Tag: para
-#: performance.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
"fetching. Hibernate retrieves a batch of entity instances or collections in "
@@ -94,66 +89,60 @@
"foreign keys."
msgstr ""
"<emphasis>ããããã§ãã</emphasis> - ã»ã¬ã¯ããã§ããã®ããã®æé©åãããæ¦"
-"ç¥ - Hibernateã¯ã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³ã®ä¸ç¾¤ã1åã® "
+"ç¥ - Hibernate ã¯ã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³ã®ä¸ç¾¤ã1åã® "
"<literal>SELECT</literal> ã§å¾©å
ãã¾ããããã¯ä¸»ãã¼ãå¤é¨ãã¼ã®ãªã¹ããæå®"
-"ãããã¨ã« ã«ããè¡ãã¾ãã"
+"ãããã¨ã«ããè¡ãã¾ãã"
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
-msgstr "Hibernateã¯æ¬¡ã«ç¤ºãæ¦ç¥ã¨ãåºå¥ããã¾ãã"
+msgstr "Hibernate ã¯æ¬¡ã«ç¤ºãæ¦ç¥ã¨ãåºå¥ããã¾ã: "
#. Tag: para
-#: performance.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
"attribute is fetched immediately when the owner is loaded."
msgstr ""
"<emphasis>峿ãã§ãã</emphasis> - ææè
ã®ãªãã¸ã§ã¯ãããã¼ããããã¨ã"
-"ã«ã é¢é£ãã³ã¬ã¯ã·ã§ã³ã¯å³æã«ãã§ããããã¾ãã"
+"ã«ãé¢é£ãã³ã¬ã¯ã·ã§ã³ã¯å³æã«ãã§ããããã¾ãã"
#. Tag: para
-#: performance.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
"the application invokes an operation upon that collection. This is the "
"default for collections."
msgstr ""
"<emphasis>é
å»¶ã³ã¬ã¯ã·ã§ã³ãã§ãã</emphasis> - ã¢ããªã±ã¼ã·ã§ã³ãã³ã¬ã¯ã·ã§"
-"ã³ã« 対ãã¦æä½ãè¡ã£ãã¨ãã«ã³ã¬ã¯ã·ã§ã³ããã§ãããã¾ãã (ããã¯ã³ã¬ã¯ã·ã§"
-"ã³ã«å¯¾ããããã©ã«ãã®åä½ã§ã)"
+"ã³ã«å¯¾ãã¦æä½ãè¡ã£ãã¨ãã«ã³ã¬ã¯ã·ã§ã³ããã§ãããã¾ãã(ããã¯ã³ã¬ã¯ã·ã§ã³"
+"ã«å¯¾ããããã©ã«ãã®åä½ã§ã)"
#. Tag: para
-#: performance.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
"of the collection are accessed from the database as needed. Hibernate tries "
"not to fetch the whole collection into memory unless absolutely needed. It "
"is suitable for large collections."
msgstr ""
-"<emphasis>\"ç¹å¥ãªé
å»¶\"ã³ã¬ã¯ã·ã§ã³ãã§ãã</emphasis> - ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ "
-"ï¼ã¤ï¼ã¤ãç¬ç«ãã¦ãå¿
è¦ãªã¨ãã«ãã¼ã¿ãã¼ã¹ããåå¾ããã¾ãã Hibernateã¯å¿
"
-"è¦ãªããªãã°ãã³ã¬ã¯ã·ã§ã³å
¨ä½ãã¡ã¢ãªã«ãã§ãããããã¨ã¯ é¿ãã¾ãï¼ã¨ã¦ã大"
+"<emphasis>ãç¹å¥ãªé
å»¶ãã³ã¬ã¯ã·ã§ã³ãã§ãã</emphasis> - ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ "
+"ï¼ã¤ï¼ã¤ãç¬ç«ãã¦ãå¿
è¦ãªã¨ãã«ãã¼ã¿ãã¼ã¹ããåå¾ããã¾ãã Hibernate ã¯å¿
"
+"è¦ãªããªãã°ãã³ã¬ã¯ã·ã§ã³å
¨ä½ãã¡ã¢ãªã«ãã§ãããããã¨ã¯é¿ãã¾ãï¼ã¨ã¦ã大"
"ããªã³ã¬ã¯ã·ã§ã³ã«é©ãã¦ãã¾ãï¼ã"
#. Tag: para
-#: performance.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
"when a method other than the identifier getter is invoked upon the "
"associated object."
msgstr ""
-"<emphasis>ãããã·ãã§ãã</emphasis> - åä¸å¤é¢é£ã¯ãèå¥åã®getter以å¤ã® ã¡"
-"ã½ãããé¢é£ãªãã¸ã§ã¯ãã§å¼ã³åºãããã¨ãã«ãã§ããããã¾ãã"
+"<emphasis>ãããã·ãã§ãã</emphasis> - åä¸å¤é¢é£ã¯ãèå¥åã® getter 以å¤ã®"
+"ã¡ã½ãããé¢é£ãªãã¸ã§ã¯ãã§å¼ã³åºãããã¨ãã«ãã§ããããã¾ãã"
#. Tag: para
-#: performance.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
"fetched when the instance variable is accessed. Compared to proxy fetching, "
@@ -162,28 +151,26 @@
"visible to the application. This approach requires buildtime bytecode "
"instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>\"ãããã·ãªã\"ãã§ãã</emphasis> - åä¸å¤é¢é£ã¯ãã¤ã³ã¹ã¿ã³ã¹å¤"
-"æ°ã« ã¢ã¯ã»ã¹ãããã¨ãã«ãã§ããããã¾ãããããã·ãã§ããã¨æ¯è¼ããã¨ããã®"
-"æ¹æ³ã¯ é
å»¶ã®åº¦åããå°ãªãï¼é¢é£ã¯èå¥åã«ã¢ã¯ã»ã¹ããã ãã§ããã§ããããã¾"
-"ãï¼ ã§ãããããééçã§ãã¢ããªã±ã¼ã·ã§ã³ã«ãããã·ãåå¨ããªãããã«è¦ãã¾"
-"ãã ãã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã«ãªãã使ãå ´é¢ã¯ã¾ãã§"
+"<emphasis>ããããã·ãªãããã§ãã</emphasis> - åä¸å¤é¢é£ã¯ãã¤ã³ã¹ã¿ã³ã¹å¤"
+"æ°ã«ã¢ã¯ã»ã¹ãããã¨ãã«ãã§ããããã¾ãããããã·ãã§ããã¨æ¯è¼ããã¨ããã®"
+"æ¹æ³ã¯é
å»¶ã®åº¦åããå°ãªãï¼é¢é£ã¯èå¥åã«ã¢ã¯ã»ã¹ããã ãã§ããã§ããããã¾"
+"ãï¼ã§ãããããééçã§ãã¢ããªã±ã¼ã·ã§ã³ã«ãããã·ãåå¨ããªãããã«è¦ãã¾"
+"ãããã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã«ãªãã使ãå ´é¢ã¯ã¾ãã§"
"ãã"
#. Tag: para
-#: performance.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
"association is fetched when the instance variable is accessed. This approach "
"requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
"<emphasis>é
延屿§ãã§ãã</emphasis> - 屿§ãåä¸å¤é¢é£ã¯ãã¤ã³ã¹ã¿ã³ã¹å¤æ°"
-"ã«ã¢ã¯ã»ã¹ãã ã¨ãã«ãã§ããããã¾ãããã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼"
-"ã¿ãå¿
è¦ã«ãªãã 使ãå ´é¢ã¯ã¾ãã§ãã"
+"ã«ã¢ã¯ã»ã¹ããã¨ãã«ãã§ããããã¾ãããã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼"
+"ã¿ãå¿
è¦ã«ãªãã使ãå ´é¢ã¯ã¾ãã§ãã"
#. Tag: para
-#: performance.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
"association fetched and <emphasis>how</emphasis> is it fetched. It is "
@@ -193,89 +180,67 @@
"class."
msgstr ""
"äºã¤ã®ç´è¡ããæ¦å¿µãããã¾ã: <emphasis>ãã¤</emphasis> é¢é£ããã§ãããã"
-"ãã ããã¦ã <emphasis>ã©ããã£ã¦</emphasis> ãã§ãããããï¼ã©ããªSQLã使ã£"
-"ã¦ï¼ã ããããæ··åããªãã§ãã ããï¼ <literal>fetch</literal> ã¯ããã©ã¼ãã³"
-"ã¹ãã¥ã¼ãã³ã°ã«ä½¿ãã¾ãã <literal>lazy</literal> ã¯ããã¯ã©ã¹ã®åé¢ãããã¤"
-"ã³ã¹ã¿ã³ã¹ã®ãã¡ãã©ã®ãã¼ã¿ã常㫠使ç¨å¯è½ã«ãããã®åãæ±ºããå®ç¾©ãã¾ãã"
+"ããããã¦ã <emphasis>ã©ããã£ã¦</emphasis> ãã§ãããããï¼ã©ã㪠SQL ã"
+"使ã£ã¦ï¼ãããããæ··åããªãã§ãã ããã <literal>fetch</literal> ã¯ããã©ã¼"
+"ãã³ã¹ãã¥ã¼ãã³ã°ã«ä½¿ãã¾ãã <literal>lazy</literal> ã¯ããã¯ã©ã¹ã®åé¢ãã"
+"ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¡ãã©ã®ãã¼ã¿ã常ã«ä½¿ç¨å¯è½ã«ãããã®åãæ±ºããå®ç¾©ãã¾"
+"ãã"
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
msgstr "é
å»¶é¢é£ã®åã"
#. Tag: para
-#: performance.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
"proxy fetching for single-valued associations. These defaults make sense for "
"most associations in the majority of applications."
msgstr ""
-"ããã©ã«ãã§ã¯ãHibernate3ã¯ã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦ã¯é
å»¶ã»ã¬ã¯ããã§ããã使"
-"ãã åä¸å¤é¢é£ã«ã¯é
å»¶ãããã·ãã§ããã使ãã¾ãããããã®ããã©ã«ãåä½ã¯ã»"
-"ã¼ãã¹ã¦ã® ã¢ããªã±ã¼ã·ã§ã³ã®ã»ã¼ãã¹ã¦ã®é¢é£ã§æå³ãããã¾ãã"
+"ããã©ã«ãã§ã¯ã Hibernate3 ã¯ã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦ã¯é
å»¶ã»ã¬ã¯ããã§ããã使"
+"ããåä¸å¤é¢é£ã«ã¯é
å»¶ãããã·ãã§ããã使ãã¾ãããããã®ããã©ã«ãåä½ã¯ã»"
+"ã¼ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ã®ã»ã¼ãã¹ã¦ã®é¢é£ã§æå³ãããã¾ãã"
#. Tag: para
-#: performance.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
"will use the batch fetch optimization for lazy fetching. This optimization "
"can also be enabled at a more granular level."
msgstr ""
"<emphasis>注:</emphasis><literal>hibernate.default_batch_fetch_size</"
-"literal> ãã»ããããã¨ãã¯ãHibernate㯠é
å»¶ãã§ããã®ããã®ããããã§ããæ"
-"é©åã使ãã§ããã ï¼ãã®æé©åã¯ããç´°ããã¬ãã«ã§æå¹ã«ãããã¨ãåºæ¥ã¾"
+"literal> ãã»ããããã¨ãã¯ã Hibernate ã¯é
å»¶ãã§ããã®ããã®ããããã§ãã"
+"æé©åã使ãã§ãããï¼ãã®æé©åã¯ããç´°ããã¬ãã«ã§æå¹ã«ãããã¨ãåºæ¥ã¾"
"ãï¼ã"
#. Tag: para
-#: performance.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
"an open Hibernate session will result in an exception. For example:"
msgstr ""
"ããããé
å»¶ãã§ããã¯ç¥ã£ã¦ãããªããã°ãªããªãä¸ã¤ã®åé¡ãããã¾ãã "
-"Hibernateã®sessionããªã¼ãã³ãã¦ããã³ã³ããã¹ãã®å¤ããé
å»¶é¢é£ã«ã¢ã¯ã»ã¹ã"
-"ãã¨ã ä¾å¤ãçºçãã¾ããä¾ï¼"
+"Hibernate ã® session ããªã¼ãã³ãã¦ããã³ã³ããã¹ãã®å¤ããé
å»¶é¢é£ã«ã¢ã¯ã»ã¹"
+"ããã¨ãä¾å¤ãçºçãã¾ããä¾ï¼"
-#. Tag: programlisting
-#: performance.xml:164
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:166
-#, fuzzy, no-c-format
-msgid ""
"Since the permissions collection was not initialized when the "
"<literal>Session</literal> was closed, the collection will not be able to "
"load its state. <emphasis>Hibernate does not support lazy initialization for "
"detached objects</emphasis>. This can be fixed by moving the code that reads "
"from the collection to just before the transaction is committed."
msgstr ""
-"<literal>Session</literal> ãã¯ãã¼ãºãããã¨ããpermissionsã³ã¬ã¯ã·ã§ã³ã¯ å"
-"æåããã¦ããªãããããã®ã³ã¬ã¯ã·ã§ã³ã¯èªèº«ã®ç¶æ
ããã¼ãã§ãã¾ããã "
-"<emphasis>Hibernateã¯åãé¢ããããªãã¸ã§ã¯ãã®é
å»¶åæåã¯ãµãã¼ã ãã¦ãã¾"
-"ãã</emphasis> ãä¿®æ£æ¹æ³ã¨ãã¦ãã³ã¬ã¯ã·ã§ã³ããèªã¿è¾¼ã¿ãè¡ãã³ã¼ãã ãã©"
+"<literal>Session</literal> ãã¯ãã¼ãºãããã¨ãã permissions ã³ã¬ã¯ã·ã§ã³ã¯"
+"åæåããã¦ããªãããããã®ã³ã¬ã¯ã·ã§ã³ã¯èªèº«ã®ç¶æ
ããã¼ãã§ãã¾ããã "
+"<emphasis>Hibernate ã¯åãé¢ããããªãã¸ã§ã¯ãã®é
å»¶åæåã¯ãµãã¼ããã¦ãã¾"
+"ãã</emphasis> ãä¿®æ£æ¹æ³ã¨ãã¦ãã³ã¬ã¯ã·ã§ã³ããèªã¿è¾¼ã¿ãè¡ãã³ã¼ãããã©"
"ã³ã¶ã¯ã·ã§ã³ãã³ãããããç´åã«ç§»åããã¾ãã"
#. Tag: para
-#: performance.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
"specifying <literal>lazy=\"false\"</literal> for the association mapping. "
@@ -284,16 +249,15 @@
"in your object model, Hibernate will fetch the entire database into memory "
"in every transaction."
msgstr ""
-"䏿¹ã§ã <literal>lazy=\"false\"</literal> ãé¢é£ãããã³ã°ã«æå®ãããã¨"
-"ã§ã é
å»¶å¦çãããªãã³ã¬ã¯ã·ã§ã³ãé¢é£ã使ããã¨ãåºæ¥ã¾ãã ããããªããã"
-"é
å»¶åæåã¯ã»ã¼ãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ãé¢é£ã§ä½¿ããããã¨ã æå³ãã¦ãã¾ããã"
-"ãããªãã®ãªãã¸ã§ã¯ãã¢ãã«ã®ä¸ã«é
å»¶å¦çãããªãé¢é£ã å¤ãå®ç¾©ãã¦ãã¾ã"
-"ã¨ãHibernateã¯æçµçã«ã¯ãã©ã³ã¶ã¯ã·ã§ã³æ¯ã« ã»ã¼å®å
¨ãªãã¼ã¿ãã¼ã¹ãã¡ã¢ãª"
-"ã®ä¸ã«ãã§ãããããã¨ã«ãªãã§ãããï¼"
+"䏿¹ã§ã <literal>lazy=\"false\"</literal> ãé¢é£ãããã³ã°ã«æå®ãããã¨ã§ã"
+"é
å»¶å¦çãããªãã³ã¬ã¯ã·ã§ã³ãé¢é£ã使ããã¨ãåºæ¥ã¾ããããããªãããé
å»¶å"
+"æåã¯ã»ã¼ãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ãé¢é£ã§ä½¿ããããã¨ãæå³ãã¦ãã¾ããããããª"
+"ãã®ãªãã¸ã§ã¯ãã¢ãã«ã®ä¸ã«é
å»¶å¦çãããªãé¢é£ãå¤ãå®ç¾©ãã¦ãã¾ãã¨ã "
+"Hibernate ã¯æçµçã«ã¯ãã©ã³ã¶ã¯ã·ã§ã³æ¯ã«ã»ã¼å®å
¨ãªãã¼ã¿ãã¼ã¹ãã¡ã¢ãªã®ä¸"
+"ã«ãã§ãããããã¨ã«ãªãã§ãããã"
#. Tag: para
-#: performance.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
"instead of select fetching in a particular transaction. We will now explain "
@@ -301,93 +265,67 @@
"choosing a fetch strategy are identical for single-valued associations and "
"collections."
msgstr ""
-"仿¹ã§ã¯ãç¹å®ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ããã¦ã»ã¬ã¯ããã§ããã®ä»£ããã« çµåãã§ã"
-"ãï¼å½ç¶ããã¯é
å»¶å¦çã§ã¯ãªããªãã¾ãï¼ã鏿ããããã¨ã æã
ããã¾ãããã"
-"ãããã§ããæ¦ç¥ãã«ã¹ã¿ãã¤ãºããæ¹æ³ããè¦ããã¾ãã Hibernate3ã§ã¯ããã§ã"
-"ãæ¦ç¥ã鏿ããä»çµã¿ã¯åä¸å¤é¢é£ã¨ã³ã¬ã¯ã·ã§ã³ã§ å¤ããã¯ããã¾ããã"
+"仿¹ã§ã¯ãç¹å®ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ããã¦ã»ã¬ã¯ããã§ããã®ä»£ããã«çµåãã§ã"
+"ãï¼å½ç¶ããã¯é
å»¶å¦çã§ã¯ãªããªãã¾ãï¼ã鏿ããããã¨ãæã
ããã¾ãããã"
+"ãããã§ããæ¦ç¥ãã«ã¹ã¿ãã¤ãºããæ¹æ³ããè¦ããã¾ãã Hibernate3 ã§ã¯ã"
+"ãã§ããæ¦ç¥ã鏿ããä»çµã¿ã¯åä¸å¤é¢é£ã¨ã³ã¬ã¯ã·ã§ã³ã§å¤ããã¯ããã¾ããã"
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr "ãã§ããæ¦ç¥ã®ãã¥ã¼ãã³ã°"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
"problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
-"ã»ã¬ã¯ããã§ããï¼ããã©ã«ãï¼ã¯N+1ã»ã¬ã¯ãåé¡ã¨ãã大ããªå¼±ç¹ãããããã "
-"ãããã³ã°å®ç¾©ã§çµåãã§ãããæå¹ã«ãããã¨ãã§ãã¾ãã"
+"ã»ã¬ã¯ããã§ããï¼ããã©ã«ãï¼ã¯ N+1 ã»ã¬ã¯ãåé¡ã¨ãã大ããªå¼±ç¹ãããããã"
+"ãããã³ã°å®ç¾©ã§çµåãã§ãããæå¹ã«ãããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
"affects:"
msgstr ""
"ãããã³ã°å®ç¾©ã§å®ç¾©ãã <literal>ãã§ãã</literal> æ¦ç¥ã¯æ¬¡ã®ãã®ã«å½±é¿ãã¾"
-"ãã"
+"ã:"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr "<literal>get()</literal> ã <literal>load()</literal> ã«ãã復å
"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr "é¢é£ã«ããã²ã¼ãããã¨ãã«çºçããæé»çãªå¾©å
"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
msgstr "<literal>Criteria</literal> ã¯ã¨ãª"
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
-msgstr "<literal>ãµãã»ã¬ã¯ã</literal> ãã§ããã使ãHQLã¯ã¨ãª"
+msgstr "<literal>ãµãã»ã¬ã¯ã</literal> ãã§ããã使ã HQL ã¯ã¨ãª"
#. Tag: para
-#: performance.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
"guaranteed to be loaded into memory. This might, however, result in several "
"immediate selects being used to execute a particular HQL query."
msgstr ""
"ãã¨ãã©ããªãã§ããæ¦ç¥ã使ã£ãã¨ãã¦ããé
å»¶ã§ã¯ãªãã°ã©ãã¯ã¡ã¢ãªã«èªã¿è¾¼"
-"ã¾ãããã¨ã ä¿è¨¼ããã¾ããã¤ã¾ããç¹å®ã®HQLã¯ã¨ãªãå®è¡ããããã«ããã¤ãã®"
-"SELECTæã峿å®è¡ããã ãã¨ãããã®ã§æ³¨æãã¦ãã ããã"
+"ã¾ãããã¨ãä¿è¨¼ããã¾ããã¤ã¾ããç¹å®ã® HQL ã¯ã¨ãªãå®è¡ããããã«ããã¤ã"
+"ã® SELECT æã峿å®è¡ããããã¨ãããã®ã§æ³¨æãã¦ãã ããã"
#. Tag: para
-#: performance.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
"keep the default behavior, and override it for a particular transaction, "
@@ -396,64 +334,49 @@
"the <literal>Criteria</literal> query API, you would use "
"<literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
-"é常ã¯ããããã³ã°å®ç¾©ã§ãã§ããã®ã«ã¹ã¿ãã¤ãºã¯è¡ãã¾ããã 代ããã«ãããã©"
-"ã«ãã®åä½ã®ã¾ã¾ã«ãã¦ããã¦ãHQLã§ <literal>left join fetch</literal> ã æ"
-"å®ãããã¨ã§ç¹å®ã®ãã©ã³ã¶ã¯ã·ã§ã³ã§åä½ããªã¼ãã¼ã©ã¤ããã¾ãã ããã¯"
-"Hibernateã«ååã®ã»ã¬ã¯ãã§å¤é¨çµåã使ã£ã¦é¢é£ãå
ã«ãã§ããããããã«æå®ã"
-"ã¦ãã¾ãã <literal>Criteria</literal> ã¯ã¨ãªã®APIã§ã¯ã "
+"é常ã¯ããããã³ã°å®ç¾©ã§ãã§ããã®ã«ã¹ã¿ãã¤ãºã¯è¡ãã¾ããã代ããã«ãããã©"
+"ã«ãã®åä½ã®ã¾ã¾ã«ãã¦ããã¦ã HQL ã§ <literal>left join fetch</literal> ãæ"
+"å®ãããã¨ã§ç¹å®ã®ãã©ã³ã¶ã¯ã·ã§ã³ã§åä½ããªã¼ãã¼ã©ã¤ããã¾ãããã㯠"
+"Hibernate ã«ååã®ã»ã¬ã¯ãã§å¤é¨çµåã使ã£ã¦é¢é£ãå
ã«ãã§ããããããã«æå®"
+"ãã¦ãã¾ãã <literal>Criteria</literal> ã¯ã¨ãªã® API ã§ã¯ã "
"<literal>setFetchMode(FetchMode.JOIN)</literal> ã使ããã¨ãåºæ¥ã¾ãã"
#. Tag: para
-#: performance.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
"or <literal>load()</literal>, you can use a <literal>Criteria</literal> "
"query. For example:"
msgstr ""
-"ãã <literal>get()</literal> ã <literal>load()</literal> ã§ä½¿ããã ãã§ã"
-"ãæ¦ç¥ãå¤ãããã¨æããã¨ãã«ã¯ãåç´ã« <literal>Criteria</literal> ã¯ã¨ãªã"
+"ãã <literal>get()</literal> ã <literal>load()</literal> ã§ä½¿ããããã§ãã"
+"æ¦ç¥ãå¤ãããã¨æããã¨ãã«ã¯ãåç´ã« <literal>Criteria</literal> ã¯ã¨ãªã"
"使ã£ã¦ãã ãããä¾ï¼"
-#. Tag: programlisting
-#: performance.xml:253
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:255
-#, fuzzy, no-c-format
-msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
"\"."
msgstr ""
-"ï¼ããã¯ããã¤ãã®ORMã½ãªã¥ã¼ã·ã§ã³ã\"fetch plan\"ã¨å¼ãã§ãããã®ã¨åãã§"
-"ããï¼"
+"ï¼ããã¯ããã¤ãã® ORM ã½ãªã¥ã¼ã·ã§ã³ã \"fetch plan\" ã¨å¼ãã§ãããã®ã¨åã"
+"ã§ããï¼"
#. Tag: para
-#: performance.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
"second-level cache."
msgstr ""
-"N+1ã»ã¬ã¯ãåé¡ãé¿ããããã®ã¾ã£ããéãæ¹æ³ã¯ã第2ã¬ãã«ãã£ãã·ã¥ã使ãã"
+"N+1 ã»ã¬ã¯ãåé¡ãé¿ããããã®ã¾ã£ããéãæ¹æ³ã¯ã第2ã¬ãã«ãã£ãã·ã¥ã使ãã"
"ã¨ã§ãã"
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
msgstr "åä¸ç«¯é¢é£ãããã·"
#. Tag: para
-#: performance.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
"implementation of persistent collections. However, a different mechanism is "
@@ -462,27 +385,25 @@
"proxies for persistent objects using runtime bytecode enhancement which is "
"accessed via the CGLIB library."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®é
å»¶ãã§ããã¯ãHibernateèªèº«ã®å®è£
ã«ããæ°¸ç¶ã³ã¬ã¯ã·ã§ã³ã使ã£"
-"㦠å®ç¾ãã¦ãã¾ããããããåä¸ç«¯é¢é£ã«ãããé
å»¶å¦çã§ã¯ãéãä»çµã¿ã å¿
è¦"
-"ã§ãã対象ã®é¢é£ã¨ã³ãã£ãã£ã¯ãããã·ã§ãªããã°ãªãã¾ãããHibernate㯠ï¼ã"
-"ã°ãããCGLIBã©ã¤ãã©ãªã«ããï¼å®è¡æã®ãã¤ãã³ã¼ãæ¡å¼µã 使ã£ã¦æ°¸ç¶ãªãã¸ã§"
-"ã¯ãã®é
å»¶åæåãããã·ãå®ç¾ãã¦ãã¾ãã"
+"ã³ã¬ã¯ã·ã§ã³ã®é
å»¶ãã§ããã¯ã Hibernate èªèº«ã®å®è£
ã«ããæ°¸ç¶ã³ã¬ã¯ã·ã§ã³ã"
+"使ã£ã¦å®ç¾ãã¦ãã¾ããããããåä¸ç«¯é¢é£ã«ãããé
å»¶å¦çã§ã¯ãéãä»çµã¿ãå¿
"
+"è¦ã§ãã対象ã®é¢é£ã¨ã³ãã£ãã£ã¯ãããã·ã§ãªããã°ãªãã¾ããã Hibernate ã¯"
+"ï¼ãã°ããã CGLIB ã©ã¤ãã©ãªã«ããï¼å®è¡æã®ãã¤ãã³ã¼ãæ¡å¼µã使ã£ã¦æ°¸ç¶ãªã"
+"ã¸ã§ã¯ãã®é
å»¶åæåãããã·ãå®ç¾ãã¦ãã¾ãã"
#. Tag: para
-#: performance.xml:277
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
"classes and uses them to enable lazy fetching of <literal>many-to-one</"
"literal> and <literal>one-to-one</literal> associations."
msgstr ""
-"ããã©ã«ãã§ã¯ãHibernate3ã¯ï¼éå§æã«ï¼ãã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã®ãããã·ãçæ"
-"ãã ãããã使ã£ã¦ã <literal>many-to-one</literal> ã <literal>one-to-one</"
-"literal> é¢é£ã® é
å»¶ãã§ãããå¯è½ã«ãã¦ãã¾ãã"
+"ããã©ã«ãã§ã¯ã Hibernate3 ã¯ï¼éå§æã«ï¼ãã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã®ãããã·ãçæ"
+"ãããããã使ã£ã¦ã <literal>many-to-one</literal> ã <literal>one-to-one</"
+"literal> é¢é£ã®é
å»¶ãã§ãããå¯è½ã«ãã¦ãã¾ãã"
#. Tag: para
-#: performance.xml:283
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
"that class, with the <literal>proxy</literal> attribute. By default, "
@@ -491,36 +412,22 @@
"constructor is recommended for all persistent classes</emphasis>."
msgstr ""
"ãããã³ã°ãã¡ã¤ã«ã§ <literal>proxy</literal> 屿§ã«ãã£ã¦ãã¯ã©ã¹ã®ãããã·"
-"ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨ã㦠使ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã宣è¨ã§ãã¾ããããã©ã«ãã§ã¯ã"
-"Hibernateã¯ãã®ã¯ã©ã¹ã®ãµãã¯ã©ã¹ã使ãã¾ãã <emphasis>ãããã·ã¯ã©ã¹ã¯å°ãª"
-"ãã¨ãããã±ã¼ã¸å¯è¦ã§ããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ãå®è£
ããªããã° ãªããªããã¨ã«"
-"注æãã¦ãã ããããã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«ãã®ã³ã³ã¹ãã©ã¯ã¿ãæ¨å¥¨ãã¾ãï¼</"
+"ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ãã¦ä½¿ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã宣è¨ã§ãã¾ããããã©ã«ãã§ã¯ã "
+"Hibernate ã¯ãã®ã¯ã©ã¹ã®ãµãã¯ã©ã¹ã使ãã¾ãã <emphasis>ãããã·ã¯ã©ã¹ã¯å°ãª"
+"ãã¨ãããã±ã¼ã¸å¯è¦ã§ããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ãå®è£
ããªããã°ãªããªããã¨ã«"
+"注æãã¦ãã ããããã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«ãã®ã³ã³ã¹ãã©ã¯ã¿ãæ¨å¥¨ãã¾ãã</"
"emphasis>"
#. Tag: para
-#: performance.xml:290
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
"polymorphic classes.For example:"
msgstr ""
"ããªã¢ã¼ãã£ãºã ã®ã¯ã©ã¹ã«å¯¾ãã¦ãã®æ¹æ³ãé©ç¨ããã¨ãã«ããã¤ãèæ
®ãããã¨"
-"ãããã¾ãã ä¾ï¼"
+"ãããã¾ããä¾ï¼"
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
@@ -529,41 +436,14 @@
msgstr ""
"第ä¸ã«ã <literal>Cat</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ <literal>DomesticCat</"
"literal> ã«ãã£ã¹ãã§ãã¾ããããã¨ãåºã¨ãªãã¤ã³ã¹ã¿ã³ã¹ã "
-"<literal>DomesticCat</literal> ã§ãã£ãã¨ãã¦ãã§ãã"
+"<literal>DomesticCat</literal> ã§ãã£ãã¨ãã¦ãã§ã:"
-#. Tag: programlisting
-#: performance.xml:302
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:304
-#, fuzzy, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
msgstr "第äºã«ããããã·ã® <literal>==</literal> ã¯æç«ããªããã¨ãããã¾ãã"
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
@@ -571,44 +451,33 @@
"still be the same object:"
msgstr ""
"ããããããã¯è¦ããã»ã©æªãç¶æ³ã¨ããããã§ã¯ããã¾ããããã¨ãç°ãªã£ããã"
-"ãã·ãªãã¸ã§ã¯ãã¸ã® äºã¤ã®åç
§ããã£ãã¨ãã¦ããåºã¨ãªãã¤ã³ã¹ã¿ã³ã¹ã¯åããª"
-"ãã¸ã§ã¯ãã§ãã"
+"ãã·ãªãã¸ã§ã¯ãã¸ã®äºã¤ã®åç
§ããã£ãã¨ãã¦ããåºã¨ãªãã¤ã³ã¹ã¿ã³ã¹ã¯åããª"
+"ãã¸ã§ã¯ãã§ã:"
-#. Tag: programlisting
-#: performance.xml:315
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:317
-#, fuzzy, no-c-format
-msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
"a class with any <literal>final</literal> methods."
msgstr ""
"第ä¸ã«ã <literal>final</literal> ã¯ã©ã¹ã <literal>final</literal> ã¡ã½ãã"
-"ãæã¤ã¯ã©ã¹ã« CGLIBãããã·ã使ãã¾ããã"
+"ãæã¤ã¯ã©ã¹ã« CGLIB ãããã·ã使ãã¾ããã"
#. Tag: para
-#: performance.xml:322
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
"(e.g. in initializers or default constructor), then those resources will "
"also be acquired by the proxy. The proxy class is an actual subclass of the "
"persistent class."
msgstr ""
-"æå¾ã«ãããæ°¸ç¶ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹åæ(ä¾ãã°ãåæåå¦çãããã©ã«ã"
-"ã³ã³ã¹ãã©ã¯ã¿ã®ä¸ã§) ã«ãªãããã®ãªã½ã¼ã¹ãå¿
è¦ã¨ãªããªãããã®ãªã½ã¼ã¹ãã¾"
-"ããããã·ãéãã¦åå¾ããã¾ãã å®éã«ã¯ããããã·ã¯ã©ã¹ã¯æ°¸ç¶ã¯ã©ã¹ã®ãµãã¯"
-"ã©ã¹ã§ãã"
+"æå¾ã«ãããæ°¸ç¶ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹åæ (ä¾ãã°ãåæåå¦çãããã©ã«"
+"ãã³ã³ã¹ãã©ã¯ã¿ã®ä¸ã§) ã«ãªãããã®ãªã½ã¼ã¹ãå¿
è¦ã¨ãªããªãããã®ãªã½ã¼ã¹ã"
+"ã¾ããããã·ãéãã¦åå¾ããã¾ããå®éã«ã¯ããããã·ã¯ã©ã¹ã¯æ°¸ç¶ã¯ã©ã¹ã®ãµã"
+"ã¯ã©ã¹ã§ãã"
#. Tag: para
-#: performance.xml:328
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
"inheritance model. To avoid these problems your persistent classes must each "
@@ -618,25 +487,12 @@
"<literal>DomesticCatImpl</literal> implements the interface "
"<literal>DomesticCat</literal>. For example:"
msgstr ""
-"ãããã®åé¡ã¯Javaã®åä¸ç¶æ¿ã¢ãã«ã®åçä¸ã®å¶éã®ããã§ãããããããã®åé¡"
-"ãé¿ãããã®ãªãã ãã¸ãã¹ã¡ã½ããã宣è¨ããã¤ã³ã¿ã¼ãã§ã¤ã¹ãããããæ°¸ç¶ã¯"
-"ã©ã¹ã§å®è£
ããªããã°ãªãã¾ããã ãããã³ã°ãã¡ã¤ã«ã§ãããã®ã¤ã³ã¿ã¼ãã§ã¤ã¹"
-"ãæå®ããå¿
è¦ãããã¾ããä¾ï¼"
+"ãããã®åé¡ã¯ Java ã®åä¸ç¶æ¿ã¢ãã«ã®åçä¸ã®å¶éã®ããã§ãããããããã®å"
+"é¡ãé¿ãããã®ãªãããã¸ãã¹ã¡ã½ããã宣è¨ããã¤ã³ã¿ã¼ãã§ã¼ã¹ãããããæ°¸ç¶"
+"ã¯ã©ã¹ã§å®è£
ããªããã°ãªãã¾ããããããã³ã°ãã¡ã¤ã«ã§ãããã®ã¤ã³ã¿ã¼ãã§ã¼"
+"ã¹ãæå®ããå¿
è¦ãããã¾ããä¾ï¼"
-#. Tag: programlisting
-#: performance.xml:336
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:338
#, fuzzy, no-c-format
msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
@@ -645,32 +501,19 @@
msgstr ""
"第ä¸ã«ã <literal>Cat</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ <literal>DomesticCat</"
"literal> ã«ãã£ã¹ãã§ãã¾ããããã¨ãåºã¨ãªãã¤ã³ã¹ã¿ã³ã¹ã "
-"<literal>DomesticCat</literal> ã§ãã£ãã¨ãã¦ãã§ãã"
+"<literal>DomesticCat</literal> ã§ãã£ãã¨ãã¦ãã§ã:"
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: performance.xml:347
#, fuzzy, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
-msgstr "<literal>Criteria</literal> ã¯ã¨ãª"
+msgstr "<literal>full join</literal> (ããã¦ãã®å ´å使ãã¥ãã)"
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
@@ -678,56 +521,50 @@
"literal>."
msgstr ""
"é¢é£ãé
å»¶åæåããã¾ããããã¯ããããã£ã <literal>Cat</literal> åã§å®£è¨"
-"ããªããã° ãªããªããã¨ãæå³ãã¾ãã <literal>CatImpl</literal> ã§ã¯ããã¾ã"
+"ããªããã°ãªããªããã¨ãæå³ãã¾ãã <literal>CatImpl</literal> ã§ã¯ããã¾ã"
"ãã"
#. Tag: para
-#: performance.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
msgstr ""
"ãããã·ã®åæåã <emphasis>å¿
è¦ã¨ããªã</emphasis> æä½ãåå¨ãã¾ãã"
#. Tag: para
-#: performance.xml:363
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
"<literal>equals()</literal>"
msgstr ""
-"<literal>equals()</literal> ï¼æ°¸ç¶ã¯ã©ã¹ã <literal>equals()</literal> ã "
-"ãªã¼ãã¼ã©ã¤ãããªãã¨ãï¼"
+"<literal>equals()</literal> ï¼æ°¸ç¶ã¯ã©ã¹ã <literal>equals()</literal> ããªã¼"
+"ãã¼ã©ã¤ãããªãã¨ãï¼"
#. Tag: para
-#: performance.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
"<literal>hashCode()</literal>"
msgstr ""
-"<literal>hashCode()</literal> ï¼æ°¸ç¶ã¯ã©ã¹ã <literal>hashCode()</literal> "
-"ã ãªã¼ãã¼ã©ã¤ãããªãã¨ãï¼"
+"<literal>hashCode()</literal> ï¼æ°¸ç¶ã¯ã©ã¹ã <literal>hashCode()</literal> ã"
+"ãªã¼ãã¼ã©ã¤ãããªãã¨ãï¼"
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
-msgstr "èå¥åã®getterã¡ã½ãã"
+msgstr "èå¥åã® getter ã¡ã½ãã"
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
"literal> or <literal>hashCode()</literal>."
msgstr ""
-"Hibernate㯠<literal>equals()</literal> ã <literal>hashCode()</literal> ã"
-"ãªã¼ãã¼ã©ã¤ããã æ°¸ç¶ã¯ã©ã¹ãæ¤åºãã¾ãã"
+"Hibernate 㯠<literal>equals()</literal> ã <literal>hashCode()</literal> ã"
+"ãªã¼ãã¼ã©ã¤ãããæ°¸ç¶ã¯ã©ã¹ãæ¤åºãã¾ãã"
#. Tag: para
-#: performance.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
"<literal>lazy=\"proxy\"</literal>, you can avoid problems associated with "
@@ -735,19 +572,17 @@
"all operations will result in immediate proxy initialization."
msgstr ""
"ããã©ã«ãã® <literal>lazy=\"proxy\"</literal> ã®ä»£ããã«ã <literal>lazy="
-"\"no-proxy\"</literal> ã é¸ãã ãã¨ã§ãå夿ã«é¢é£ããåé¡ãåé¿ãããã¨ã"
-"åºæ¥ã¾ãã ãããããã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã«ãªããã©ã®ãããªæä½"
-"ã§ãã£ã¦ãã ãã ã¡ã«ãããã·ã®åæåãè¡ããã¨ã«ãªãã§ãããã"
+"\"no-proxy\"</literal> ãé¸ãã ãã¨ã§ãå夿ã«é¢é£ããåé¡ãåé¿ãããã¨ãåº"
+"æ¥ã¾ãããããããã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã«ãªããã©ã®ãããªæä½ã§"
+"ãã£ã¦ãããã ã¡ã«ãããã·ã®åæåãè¡ããã¨ã«ãªãã§ãããã"
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
msgstr "ã³ã¬ã¯ã·ã§ã³ã¨ãããã·ã®åæå"
#. Tag: para
-#: performance.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
"if an uninitialized collection or proxy is accessed outside of the scope of "
@@ -755,13 +590,12 @@
"or having the reference to the proxy is in the detached state."
msgstr ""
"<literal>LazyInitializationException</literal> ã¯ã <literal>Session</"
-"literal> ã®ã¹ã³ã¼ãå¤ãã åæåãã¦ããªãã³ã¬ã¯ã·ã§ã³ããããã·ã«ã¢ã¯ã»ã¹ã"
-"ããã¨ãã«ãHibernateã«ãã£ã¦ã¹ãã¼ããã¾ãã ããªãã¡ãã³ã¬ã¯ã·ã§ã³ãããã"
-"ã·ã¸ã®åç
§ãæã¤ã¨ã³ãã£ãã£ãåé¢ãããç¶æ
ã®æã§ãã"
+"literal> ã®ã¹ã³ã¼ãå¤ããåæåãã¦ããªãã³ã¬ã¯ã·ã§ã³ããããã·ã«ã¢ã¯ã»ã¹ãã"
+"ãã¨ãã«ã Hibernate ã«ãã£ã¦ã¹ãã¼ããã¾ããããªãã¡ãã³ã¬ã¯ã·ã§ã³ããããã·"
+"ã¸ã®åç
§ãæã¤ã¨ã³ãã£ãã£ãåé¢ãããç¶æ
ã®æã§ãã"
#. Tag: para
-#: performance.xml:404
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
"<literal>Session</literal>. You can force initialization by calling "
@@ -770,14 +604,13 @@
"and it is not convenient for generic code."
msgstr ""
"<literal>Session</literal> ãã¯ãã¼ãºããåã«ãããã·ãã³ã¬ã¯ã·ã§ã³ã®åæåã"
-"確å®ã« è¡ãããã¨ããããã¾ãããã¡ããã <literal>cat.getSex()</literal> ã "
+"確å®ã«è¡ãããã¨ããããã¾ãããã¡ããã <literal>cat.getSex()</literal> ã "
"<literal>cat.getKittens().size()</literal> ãªã©ã常ã«å¼ã³åºããã¨ã§åæåãå¼·"
-"å¶ãããã¨ã¯ã§ãã¾ãã ãããããã¯ã³ã¼ããèªãäººãæ··ä¹±ãããæ±ç¨çãªã³ã¼ãã¨"
+"å¶ãããã¨ã¯ã§ãã¾ãããããããã¯ã³ã¼ããèªãäººãæ··ä¹±ãããæ±ç¨çãªã³ã¼ãã¨"
"ããç¹ãããä¸ä¾¿ã§ãã"
#. Tag: para
-#: performance.xml:411
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
"<literal>Hibernate.isInitialized()</literal>, provide the application with a "
@@ -787,17 +620,16 @@
"literal> is still open. <literal>Hibernate.initialize( cat.getKittens() )</"
"literal> has a similar effect for the collection of kittens."
msgstr ""
-"staticã¡ã½ããã® <literal>Hibernate.initialize()</literal> ã "
+"static ã¡ã½ããã® <literal>Hibernate.initialize()</literal> ã "
"<literal>Hibernate.isInitialized()</literal> ã¯é
å»¶åæåã®ã³ã¬ã¯ã·ã§ã³ããã"
"ãã·ãæ±ãã¨ãã«ä¾¿å©ãªæ¹æ³ãã¢ããªã±ã¼ã·ã§ã³ã«æä¾ãã¾ãã "
"<literal>Hibernate.initialize(cat)</literal> ã¯ã <literal>Session</literal> "
"ããªã¼ãã³ãã¦ããéã㯠<literal>cat</literal> ãããã·ãå¼·å¶çã«åæåãã¾"
-"ãã <literal>Hibernate.initialize( cat.getKittens() )</literal> ã¯kittensã³"
-"ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦åæ§ã® 广ãããã¾ãã"
+"ãã <literal>Hibernate.initialize( cat.getKittens() )</literal> 㯠kittens "
+"ã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦åæ§ã®å¹æãããã¾ãã"
#. Tag: para
-#: performance.xml:420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
"required collections and proxies have been loaded. In some application "
@@ -809,15 +641,14 @@
msgstr ""
"å¥ã®é¸æè¢ã¨ãã¦ãå¿
è¦ãªãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ããããã·ããã¼ããããã¾ã§ "
"<literal>Session</literal> ããªã¼ãã³ã«ãã¦ããæ¹æ³ãããã¾ããããã¤ãã®ã¢ã"
-"ãªã±ã¼ã·ã§ã³ã® ã¢ã¼ããã¯ãã£ã§ã¯ãç¹ã«Hibernateã«ãããã¼ã¿ã¢ã¯ã»ã¹ãè¡ã"
-"ã³ã¼ãã¨ãããã使ã ã³ã¼ããç°ãªãã¢ããªã±ã¼ã·ã§ã³ã®ã¬ã¤ã¤ã¼ããç©ççã«ç°ãª"
-"ãããã»ããµã®ã¨ãã«ã¯ã ã³ã¬ã¯ã·ã§ã³ãåæåãããã¨ãã« <literal>Session</"
-"literal> ããªã¼ãã³ãã¦ãããã¨ã ä¿è¨¼ããåé¡ãããã¾ãããã®åé¡ã«å¯¾ãã¦ã¯2"
-"ã¤ã®åºæ¬çãªæ¹æ³ãããã¾ãã"
+"ãªã±ã¼ã·ã§ã³ã®ã¢ã¼ããã¯ãã£ã§ã¯ãç¹ã« Hibernate ã«ãããã¼ã¿ã¢ã¯ã»ã¹ãè¡ã"
+"ã³ã¼ãã¨ãããã使ãã³ã¼ããç°ãªãã¢ããªã±ã¼ã·ã§ã³ã®ã¬ã¤ã¤ã¼ããç©ççã«ç°ãª"
+"ãããã»ããµã®ã¨ãã«ã¯ãã³ã¬ã¯ã·ã§ã³ãåæåãããã¨ãã« <literal>Session</"
+"literal> ããªã¼ãã³ãã¦ãããã¨ãä¿è¨¼ããåé¡ãããã¾ãããã®åé¡ã«å¯¾ãã¦ã¯2"
+"ã¤ã®åºæ¬çãªæ¹æ³ãããã¾ã:"
#. Tag: para
-#: performance.xml:431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
"<literal>Session</literal> only at the end of a user request, once the "
@@ -829,18 +660,17 @@
"rendering of the view. See the Hibernate Wiki for examples of this \"Open "
"Session in View\" pattern."
msgstr ""
-"Webãã¼ã¹ã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ã ãã¥ã¼ã®ã¬ã³ããªã³ã°ãå®äºãããªã¯ã¨ã¹ãã"
+"Web ãã¼ã¹ã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã¥ã¼ã®ã¬ã³ããªã³ã°ãå®äºãããªã¯ã¨ã¹ãã"
"çµããä¸çªæå¾ã§ <literal>Session</literal> ãã¯ãã¼ãºããããã«ããµã¼ãã¬ã"
"ããã£ã«ã¿ã使ããã¨ãã§ãã¾ãï¼ <emphasis>Open Session in View</emphasis> ã"
"ã¿ã¼ã³ã§ãï¼ããã¡ãããã¢ããªã±ã¼ã·ã§ã³åºç¤ã®ä¾å¤å¦çã®æ£ç¢ºæ§ãé常ã«éè¦ã«"
-"ãªãã¾ãã ãã¥ã¼ã®ã¬ã³ããªã³ã°ä¸ã«ä¾å¤ãçºçããã¨ãã§ãããã¦ã¼ã¶ã«å¦çãæ»"
-"ãåã« <literal>Session</literal> ã®ã¯ãã¼ãºã¨ãã©ã³ã¶ã¯ã·ã§ã³ã®çµäºãè¡ã ã"
-"ã¨ãä¸å¯æ¬ ã«ãªãã¾ãã Hibernateã®Wikiã«è¼ã£ã¦ãã\"Open Session in View\"ã"
-"ã¿ã¼ã³ã®ä¾ãåç
§ãã¦ãã ããã"
+"ãªãã¾ãããã¥ã¼ã®ã¬ã³ããªã³ã°ä¸ã«ä¾å¤ãçºçããã¨ãã§ãããã¦ã¼ã¶ã¼ã«å¦çã"
+"æ»ãåã« <literal>Session</literal> ã®ã¯ãã¼ãºã¨ãã©ã³ã¶ã¯ã·ã§ã³ã®çµäºãè¡ã"
+"ãã¨ãä¸å¯æ¬ ã«ãªãã¾ãã Hibernate ã® Wiki ã«è¼ã£ã¦ãã \"Open Session in "
+"View\" ãã¿ã¼ã³ã®ä¾ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: performance.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
"\"prepare\" all collections that the web tier needs before returning. This "
@@ -854,21 +684,20 @@
"literal>. This is usually easier if you adopt the <emphasis>Command</"
"emphasis> pattern instead of a <emphasis>Session Facade</emphasis>."
msgstr ""
-"ãã¸ãã¹å±¤ãåé¢ãã¦ããã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã¸ãã¹ãã¸ãã¯ã¯ Web層ã§å¿
è¦"
-"ã«ãªããã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ãäºåã«\"æºå\"ããå¿
è¦ãããã¾ãã ããã¯ç¹å®ã®"
-"ã¦ã¼ã¹ã±ã¼ã¹ã§å¿
è¦ã¨ãªããã¬ã¼ã³ãã¼ã·ã§ã³/Web層ã«å¯¾ãã ãã¸ãã¹å±¤ããã¹ã¦ã®"
-"ãã¼ã¿ããã¼ããããã¹ã¦ã®ãã¼ã¿ãåæåãã¦è¿ãã¹ã㨠ãããã¨ãæå³ãã¦ãã¾"
-"ããé常ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯Web層ã§å¿
è¦ãªã³ã¬ã¯ã·ã§ã³ ããããã«å¯¾ã㦠"
-"<literal>Hibernate.initialize()</literal> ãå¼ã³åºãã ï¼ãã®å¼ã³åºãã¯ã»ã"
-"ã·ã§ã³ãã¯ãã¼ãºããåã«è¡ãå¿
è¦ãããã¾ãï¼ã Hibernateã¯ã¨ãªã® "
+"ãã¸ãã¹å±¤ãåé¢ãã¦ããã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã¸ãã¹ãã¸ãã¯ã¯ Web 層ã§å¿
è¦"
+"ã«ãªããã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ãäºåã«ãæºåãããå¿
è¦ãããã¾ããããã¯ç¹å®ã®"
+"ã¦ã¼ã¹ã±ã¼ã¹ã§å¿
è¦ã¨ãªããã¬ã¼ã³ãã¼ã·ã§ã³/ Web 層ã«å¯¾ãããã¸ãã¹å±¤ããã¹ã¦"
+"ã®ãã¼ã¿ããã¼ããããã¹ã¦ã®ãã¼ã¿ãåæåãã¦è¿ãã¹ãã¨ãããã¨ãæå³ãã¦ã"
+"ã¾ããé常ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯ Web 層ã§å¿
è¦ãªã³ã¬ã¯ã·ã§ã³ããããã«å¯¾ã㦠"
+"<literal>Hibernate.initialize()</literal> ãå¼ã³åºããï¼ãã®å¼ã³åºãã¯ã»ã"
+"ã·ã§ã³ãã¯ãã¼ãºããåã«è¡ãå¿
è¦ãããã¾ãï¼ã Hibernate ã¯ã¨ãªã® "
"<literal>FETCH</literal> ç¯ã <literal>Criteria</literal> ã® "
-"<literal>FetchMode.JOIN</literal> ã使ã£ã¦ã³ã¬ã¯ã·ã§ã³ãå
ã«å¾©å
ãã¾ãã æ®é"
+"<literal>FetchMode.JOIN</literal> ã使ã£ã¦ã³ã¬ã¯ã·ã§ã³ãå
ã«å¾©å
ãã¾ããæ®é"
"㯠<emphasis>Session Facade</emphasis> ãã¿ã¼ã³ã®ä»£ããã« <emphasis>Command</"
"emphasis> ãã¿ã¼ã³ãæ¡ç¨ããã»ããããç°¡åã§ãã"
#. Tag: para
-#: performance.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
"literal> with <literal>merge()</literal> or <literal>lock()</literal> before "
@@ -879,41 +708,30 @@
"åæåããã¦ããªãã³ã¬ã¯ã·ã§ã³ï¼ãããã¯ä»ã®ãããã·ï¼ã«ã¢ã¯ã»ã¹ããåã«ã "
"<literal>merge()</literal> ã <literal>lock()</literal> ã使ã£ã¦æ°ãã "
"<literal>Session</literal> ã«ä»¥åã«ãã¼ãããããªãã¸ã§ã¯ãã追å ãããã¨ãåº"
-"æ¥ã¾ãã ã¢ãããã¯ãªãã©ã³ã¶ã¯ã·ã§ã³ã®ã»ãã³ãã£ã¯ã¹ãå°å
¥ããã®ã§ã"
-"Hibernate㯠ãããèªåçã«è¡ããã <emphasis>è¡ãã¹ãã§ãããã¾ãã</"
-"emphasis> ï¼"
+"æ¥ã¾ããã¢ãããã¯ãªãã©ã³ã¶ã¯ã·ã§ã³ã®ã»ãã³ãã£ã¯ã¹ãå°å
¥ããã®ã§ã "
+"Hibernate ã¯ãããèªåçã«è¡ããã <emphasis>è¡ãã¹ãã§ãããã¾ãã</"
+"emphasis> ã"
#. Tag: para
-#: performance.xml:469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
"some information about it, like its size, for example, or a subset of the "
"data."
msgstr ""
"大ããªã³ã¬ã¯ã·ã§ã³ãåæåãããã¯ãªãããã³ã¬ã¯ã·ã§ã³ã«ã¤ãã¦ã®ãªãããã®æ
"
-"å ±ï¼ãµã¤ãºã®ãããªï¼ ããã¼ã¿ã®ãµãã»ãããå¿
è¦ã¨ãããã¨ãããã¾ãã"
+"å ±ï¼ãµã¤ãºã®ãããªï¼ããã¼ã¿ã®ãµãã»ãããå¿
è¦ã¨ãããã¨ãããã¾ãã"
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
"initializing it:"
msgstr ""
"ã³ã¬ã¯ã·ã§ã³ãã£ã«ã¿ã使ããã¨ã§ãåæåããã«ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºãåå¾ãã"
-"ãã¨ãåºæ¥ã¾ãã"
+"ãã¨ãåºæ¥ã¾ãï¼"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
@@ -921,40 +739,29 @@
"collection:"
msgstr ""
"<literal>createFilter()</literal> ã¡ã½ããã¯ãã³ã¬ã¯ã·ã§ã³å
¨ä½ãåæåããå¿
"
-"è¦ãªãã«ãã³ã¬ã¯ã·ã§ã³ã® ãµãã»ããã復å
ããããã«å¹æçã«ä½¿ãã¾ãã"
+"è¦ãªãã«ãã³ã¬ã¯ã·ã§ã³ã®ãµãã»ããã復å
ããããã«å¹æçã«ä½¿ãã¾ã:"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr "ããããã§ããã®ä½¿ç¨"
#. Tag: para
-#: performance.xml:492
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
"one proxy is accessed. Batch fetching is an optimization of the lazy select "
"fetching strategy. There are two ways you can configure batch fetching: on "
"the class level and the collection level."
msgstr ""
-"Hibernateã¯ããããã§ãããå¹ççã«ä½¿ç¨ã§ãã¾ããä¸ã¤ã®ãããã·ï¼ãããã¯ã³ã¬"
-"ã¯ã·ã§ã³ï¼ãã¢ã¯ã»ã¹ ãããã¨ãHibernateã¯ããã¤ãã®åæåãã¦ããªããããã·"
-"ããã¼ããããã¨ãã§ãã¾ããããããã§ãã㯠é
å»¶ã»ã¬ã¯ããã§ããæ¦ç¥ã«å¯¾ãã"
-"æé©åã§ããããããã§ããã®èª¿æ´ã«ã¯ï¼ã¤ã®æ¹æ³ãããã¾ãã ã¯ã©ã¹ã¬ãã«ã¨ã³ã¬"
-"ã¯ã·ã§ã³ã¬ãã«ã§ãã"
+"Hibernate ã¯ããããã§ãããå¹ççã«ä½¿ç¨ã§ãã¾ããä¸ã¤ã®ãããã·ï¼ãããã¯ã³"
+"ã¬ã¯ã·ã§ã³ï¼ãã¢ã¯ã»ã¹ãããã¨ã Hibernate ã¯ããã¤ãã®åæåãã¦ããªãããã"
+"ã·ããã¼ããããã¨ãã§ãã¾ããããããã§ããã¯é
å»¶ã»ã¬ã¯ããã§ããæ¦ç¥ã«å¯¾ã"
+"ãæé©åã§ããããããã§ããã®èª¿æ´ã«ã¯ï¼ã¤ã®æ¹æ³ãããã¾ããã¯ã©ã¹ã¬ãã«ã¨ã³"
+"ã¬ã¯ã·ã§ã³ã¬ãã«ã§ãã"
#. Tag: para
-#: performance.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
"following example: at runtime you have 25 <literal>Cat</literal> instances "
@@ -969,33 +776,25 @@
msgstr ""
"ã¯ã©ã¹ãè¦ç´ ã®ããããã§ããã¯çè§£ãç°¡åã§ããå®è¡æã®æ¬¡ã®å ´é¢ãæ³åãã¦ãã "
"ããã <literal>Session</literal> ã«ãã¼ãããã25åã® <literal>Cat</"
-"literal> ã¤ã³ã¹ã¿ã³ã¹ãåå¨ãã ããããã® <literal>Cat</literal> 㯠"
+"literal> ã¤ã³ã¹ã¿ã³ã¹ãåå¨ããããããã® <literal>Cat</literal> 㯠"
"<literal>owner</literal> ã§ãã <literal>Person</literal> ã¸ã®é¢é£ãæã¡ã¾"
"ãã <literal>Person</literal> ã¯ã©ã¹ã¯ <literal>lazy=\"true\"</literal> ã®ã"
-"ããã·ã§ãããã³ã°ããã¦ãã¾ãã ããä»ãã¹ã¦ã®Catã«å¯¾ãã¦ç¹°ãè¿ã "
-"<literal>getOwner()</literal> ãå¼ã³åºãã¨ãHibernate㯠ããã©ã«ãã§ã¯25åã® "
-"<literal>SELECT</literal> ãå®è¡ããownerãããã·ã®å¾©å
ããã¾ãã ãã®æ¯ãè"
-"ãã <literal>Person</literal> ã®ãããã³ã°ã® <literal>batch-size</literal> "
-"ã®æå®ã§èª¿æ´ã§ãã¾ãã"
+"ããã·ã§ãããã³ã°ããã¦ãã¾ããããä»ãã¹ã¦ã® Cat ã«å¯¾ãã¦ç¹°ãè¿ã "
+"<literal>getOwner()</literal> ãå¼ã³åºãã¨ã Hibernate ã¯ããã©ã«ãã§ã¯25å"
+"ã® <literal>SELECT</literal> ãå®ãã owner ãããã·ã®å¾©å
ããã¾ãããã®æ¯ã"
+"èãã <literal>Person</literal> ã®ãããã³ã°ã® <literal>batch-size</"
+"literal> ã®æå®ã§èª¿æ´ã§ãã¾ãã"
-#. Tag: programlisting
-#: performance.xml:508
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:510
-#, fuzzy, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
msgstr ""
-"Hibernateã¯ã¯ã¨ãªãï¼åã ããå®è¡ããããã«ãªãã¾ãããã¿ã¼ã³ã¯10, 10, 5ã§"
+"Hibernate ã¯ã¯ã¨ãªãï¼åã ããå®è¡ããããã«ãªãã¾ãããã¿ã¼ã³ã¯ 10, 10, 5 ã§"
"ãã"
#. Tag: para
-#: performance.xml:514
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
"<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, "
@@ -1007,25 +806,14 @@
msgstr ""
"ã³ã¬ã¯ã·ã§ã³ã®ããããã§ãããæå¹ã«ãããã¨ãåºæ¥ã¾ããä¾ã¨ãã¦ãããããã® "
"<literal>Person</literal> ã <literal>Cat</literal> ã®é
å»¶ã³ã¬ã¯ã·ã§ã³ãæã£"
-"ã¦ããã 10åã®Personã <literal>Sesssion</literal> ã«ãã¼ããããã¨ããã¨ã"
-"ãã¹ã¦ã®Person㫠対ãã¦ç¹°ãè¿ã <literal>getCats()</literal> ãå¼ã³åºããã¨"
-"ã§ãè¨10åã® <literal>SELECT</literal> ãçºçãã¾ãããã <literal>Person</"
-"literal> ã®ãããã³ã°ã§ <literal>cats</literal> ã³ã¬ã¯ã·ã§ã³ã®ããããã§ãã"
-"ãæå¹ã«ããã°ãHibernateã¯ã³ã¬ã¯ã·ã§ã³ã®äºåãã§ãããåºæ¥ã¾ãã"
+"ã¦ããã 10 åã® Person ã <literal>Sesssion</literal> ã«ãã¼ããããã¨ãã"
+"ã¨ããã¹ã¦ã® Person ã«å¯¾ãã¦ç¹°ãè¿ã <literal>getCats()</literal> ãå¼ã³åºã"
+"ãã¨ã§ãè¨10åã® <literal>SELECT</literal> ãçºçãã¾ãããã "
+"<literal>Person</literal> ã®ãããã³ã°ã§ <literal>cats</literal> ã³ã¬ã¯ã·ã§ã³"
+"ã®ããããã§ãããæå¹ã«ããã°ã Hibernate ã¯ã³ã¬ã¯ã·ã§ã³ã®äºåãã§ãããåºæ¥"
+"ã¾ãã"
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -1033,53 +821,106 @@
"attribute depends on the expected number of uninitialized collections in a "
"particular <literal>Session</literal>."
msgstr ""
-"<literal>batch-size</literal> ã3ãªã®ã§ãHibernateã¯4åã® <literal>SELECT</"
-"literal> ã§3åã3åã3åã1åããã¼ããã¾ããç¹°ãè¿ãã¨ã屿§ã®å¤ã¯ç¹å®ã® "
-"<literal>Session</literal> ã®ä¸ã®åæåããã¦ããªãã³ã¬ã¯ã·ã§ã³ã®æå¾
æ°ã«ä¾å"
-"ãã¾ãã"
+"<literal>batch-size</literal> ã 3 ãªã®ã§ã Hibernate 㯠4 åã® "
+"<literal>SELECT</literal> ã§ 3 åã 3 åã 3 åã 1 åããã¼ããã¾ããç¹°ãè¿"
+"ãã¨ã屿§ã®å¤ã¯ç¹å®ã® <literal>Session</literal> ã®ä¸ã®åæåããã¦ããªãã³"
+"ã¬ã¯ã·ã§ã³ã®æå¾
æ°ã«ä¾åãã¾ãã"
#. Tag: para
-#: performance.xml:531
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
"tree of items, i.e. the typical bill-of-materials pattern. However, a "
"<emphasis>nested set</emphasis> or a <emphasis>materialized path</emphasis> "
"might be a better option for read-mostly trees."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®ããããã§ããã¯ã¢ã¤ãã ã®ãã¹ãããããªã¼ã ããªãã¡ã代表çãª"
-"é¨å表ã®ãã¿ã¼ã³ã ããå ´åã«ç¹ã«æç¨ã§ããï¼ããããèªã¿è¾¼ã¿ãå¤ãããªã¼ã§"
-"㯠<emphasis>ãã¹ãããset</emphasis> ã <emphasis>å
·ä½åãããã¹</emphasis> "
-"ããããã鏿ã«ãªãã¾ããï¼"
+"ã³ã¬ã¯ã·ã§ã³ã®ããããã§ããã¯ã¢ã¤ãã ã®ãã¹ãããããªã¼ãããªãã¡ã代表çãª"
+"é¨å表ã®ãã¿ã¼ã³ãããå ´åã«ç¹ã«æç¨ã§ããï¼ããããèªã¿è¾¼ã¿ãå¤ãããªã¼ã§ã¯ "
+"<emphasis>ãã¹ããã set</emphasis> ã <emphasis>å
·ä½åãããã¹</emphasis> ã"
+"ãããã鏿ã«ãªãã¾ããï¼"
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
msgstr "ãµãã»ã¬ã¯ããã§ããã®ä½¿ç¨"
#. Tag: para
-#: performance.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
"will load all of them, re-running the original query in a subselect. This "
"works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
-"ä¸ã¤ã®é
å»¶ã³ã¬ã¯ã·ã§ã³ãåä¸å¤ãããã·ããã§ãããããªããã°ãããªãã¨ãã"
-"Hibernate㯠ããããã¹ã¦ããã¼ããããµãã»ã¬ã¯ãã®ãªãªã¸ãã«ã¯ã¨ãªãå度å®è¡"
-"ããã¾ãããã㯠ããããã§ããã¨åãæ¹æ³ã§åããå°ããã¤ã®ãã¼ãã¯è¡ãã¾ã"
+"ä¸ã¤ã®é
å»¶ã³ã¬ã¯ã·ã§ã³ãåä¸å¤ãããã·ããã§ãããããªããã°ãããªãã¨ãã "
+"Hibernate ã¯ããããã¹ã¦ããã¼ããããµãã»ã¬ã¯ãã®ãªãªã¸ãã«ã¯ã¨ãªãå度å®è¡"
+"ããã¾ããããã¯ããããã§ããã¨åãæ¹æ³ã§åããå°ããã¤ã®ãã¼ãã¯è¡ãã¾ã"
"ãã"
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "ãã§ããæ¦ç¥"
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
msgstr "é
å»¶ããããã£ãã§ããã®ä½¿ç¨"
#. Tag: para
-#: performance.xml:555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
"optimization technique is also known as <emphasis>fetch groups</emphasis>. "
@@ -1089,110 +930,67 @@
"when legacy tables have hundreds of columns and the data model cannot be "
"improved."
msgstr ""
-"Hibernate3ã¯ããããã£ãã¨ã®é
å»¶ãã§ããããµãã¼ããã¦ãã¾ãããã®æé©åææ³"
+"Hibernate3 ã¯ããããã£ãã¨ã®é
å»¶ãã§ããããµãã¼ããã¦ãã¾ãããã®æé©åææ³"
"㯠<emphasis>ã°ã«ã¼ãã®ãã§ãã</emphasis> ã¨ãã¦ãç¥ããã¦ãã¾ããããã¯ã»ã¨"
-"ãã© è¦æããåºãæ©è½ã§ãããã¨ã«æ³¨æãã¦ãã ãããå®éã«ã¯åèªã¿è¾¼ã¿ã®æé©å"
-"ãããã è¡èªã¿è¾¼ã¿ã®æé©åãé常ã«éè¦ã§ãã ããããã¯ã©ã¹ã®ããã¤ãã®ãã"
-"ããã£ã ããèªã¿è¾¼ããã¨ã¯ãæ¢åã®ãã¼ãã«ãä½ç¾ãã®åãæã¡ã ãã¼ã¿ã¢ãã«ã"
-"æ¹åã§ããªããªã©ã®æ¥µç«¯ãªå ´åã«ã¯æç¨ã§ãã"
+"ãã©è¦æããåºãæ©è½ã§ãããã¨ã«æ³¨æãã¦ãã ãããå®éã«ã¯åèªã¿è¾¼ã¿ã®æé©å"
+"ããããè¡èªã¿è¾¼ã¿ã®æé©åãé常ã«éè¦ã§ããããããã¯ã©ã¹ã®ããã¤ãã®ããã"
+"ãã£ã ããèªã¿è¾¼ããã¨ã¯ãæ¢åã®ãã¼ãã«ãä½ç¾ãã®åãæã¡ããã¼ã¿ã¢ãã«ãæ¹"
+"åã§ããªããªã©ã®æ¥µç«¯ãªå ´åã«ã¯æç¨ã§ãã"
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
"on your particular property mappings:"
msgstr ""
"é
å»¶ããããã£èªã¿è¾¼ã¿ãæå¹ã«ããã«ã¯ã対象ã®ããããã£ã®ãããã³ã°ã§ "
-"<literal>lazy</literal> 屿§ãã»ãããã¦ãã ããã"
+"<literal>lazy</literal> 屿§ãã»ãããã¦ãã ãã:"
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:571
-#, fuzzy, no-c-format
-msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
"persistent classes are not enhanced, Hibernate will ignore lazy property "
"settings and return to immediate fetching."
msgstr ""
-"é
å»¶ããããã£èªã¿è¾¼ã¿ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã¨ãã¾ãï¼ãã æ°¸"
-"ç¶ã¯ã©ã¹ã«çµã¿è¾¼ã¿ãããã¦ããªããªããHibernateã¯é»ã£ã¦é
å»¶ããããã£ã®è¨å®ã"
-"ç¡è¦ãã¦ã 峿ãã§ããã«æ»ãã¾ãã"
+"é
å»¶ããããã£èªã¿è¾¼ã¿ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãå¿
è¦ã¨ãã¾ããããæ°¸"
+"ç¶ã¯ã©ã¹ã«çµã¿è¾¼ã¿ãããã¦ããªããªãã Hibernate ã¯é»ã£ã¦é
å»¶ããããã£ã®è¨å®"
+"ãç¡è¦ãã¦ã峿ãã§ããã«æ»ãã¾ãã"
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
-msgstr "ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ã¯ä»¥ä¸ã®Antã¿ã¹ã¯ã使ã£ã¦ãã ããã"
+msgstr "ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ã¯ä»¥ä¸ã® Ant ã¿ã¹ã¯ã使ã£ã¦ãã ãã: "
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:583
-#, fuzzy, no-c-format
-msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
"transactions, is to use the projection features of HQL or Criteria queries. "
"This avoids the need for buildtime bytecode processing and is certainly a "
"preferred solution."
msgstr ""
-"ä¸è¦ãªåãèªã¿è¾¼ã¾ãªãããã®ãå¥ã®ï¼ããããï¼ï¼æ¹æ³ã¯ãå°ãªãã¨ã èªã¿è¾¼ã¿ã®"
-"ã¿ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ããã¦ã¯ãHQLãCriteriaã¯ã¨ãªã®å°å½± æ©è½ã使ããã¨ã§"
-"ãããã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãä¸è¦ã«ãªãã ããè¯ãè§£æ±ºæ¹æ³ã§"
+"ä¸è¦ãªåãèªã¿è¾¼ã¾ãªãããã®ãå¥ã®ï¼ããããï¼ï¼æ¹æ³ã¯ãå°ãªãã¨ãèªã¿è¾¼ã¿ã®"
+"ã¿ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ããã¦ã¯ã HQL ã Criteria ã¯ã¨ãªã®å°å½±æ©è½ã使ããã¨ã§"
+"ãããã®æ¹æ³ã¯ãã«ãæã®ãã¤ãã³ã¼ãçµã¿è¾¼ã¿ãä¸è¦ã«ãªããããè¯ãè§£æ±ºæ¹æ³ã§"
"ãã"
#. Tag: para
-#: performance.xml:590
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
"all properties</literal> in HQL."
msgstr ""
-"HQLã§ <literal>fetch all properties</literal> ã使ããã¨ã§ãæ®éã©ããã® ãã"
+"HQL ã§ <literal>fetch all properties</literal> ã使ããã¨ã§ãæ®éã©ããã®ãã"
"ããã£ã®å³æãã§ããã³ã°ãå¼·å¶ãããã¨ãåºæ¥ã¾ãã"
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
msgstr "第2ã¬ãã«ãã£ãã·ã¥"
#. Tag: para
-#: performance.xml:602
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
"persistent data. It is possible to configure a cluster or JVM-level "
@@ -1202,16 +1000,16 @@
"another application. They can, however, be configured to regularly expire "
"cached data."
msgstr ""
-"Hibernateã® <literal>Session</literal> ã¯æ°¸ç¶ãã¼ã¿ã®ãã©ã³ã¶ã¯ã·ã§ã³ã¬ãã«ã®"
-"ãã£ãã·ã¥ã§ãã class-by-classã¨collection-by-collectionãã¨ã®ãã¯ã©ã¹ã¿ã¬ã"
-"ã«ãJVMã¬ãã« ï¼ <literal>SessionFactory</literal> ã¬ãã«ï¼ã®ãã£ãã·ã¥ãè¨å®"
-"ãããã¨ãåºæ¥ã¾ãã ã¯ã©ã¹ã¿åããããã£ãã·ã¥ã«ã¤ãªããã¨ããåºæ¥ã¾ãããã"
-"ãæ³¨æãã¦ãã ããã ãã£ãã·ã¥ã¯ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããæ°¸ç¶å±¤ã®å¤æ´ã è"
-"æ
®ãã¾ããï¼ãã£ãã·ã¥ãã¼ã¿ã宿çã«æéåãã«ããè¨å®ã¯åºæ¥ã¾ãï¼ã"
+"Hibernate ã® <literal>Session</literal> ã¯æ°¸ç¶ãã¼ã¿ã®ãã©ã³ã¶ã¯ã·ã§ã³ã¬ãã«"
+"ã®ãã£ãã·ã¥ã§ãã class-by-class 㨠collection-by-collection ãã¨ã®ãã¯ã©ã¹"
+"ã¿ã¬ãã«ã JVM ã¬ãã« ï¼ <literal>SessionFactory</literal> ã¬ãã«ï¼ã®ãã£ã"
+"ã·ã¥ãè¨å®ãããã¨ãåºæ¥ã¾ããã¯ã©ã¹ã¿åããããã£ãã·ã¥ã«ã¤ãªããã¨ããåºæ¥"
+"ã¾ãããããæ³¨æãã¦ãã ããããã£ãã·ã¥ã¯ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããæ°¸ç¶å±¤ã®"
+"夿´ãèæ
®ãã¾ããï¼ãã£ãã·ã¥ãã¼ã¿ã宿çã«æéåãã«ããè¨å®ã¯åºæ¥ã¾"
+"ãï¼ã"
#. Tag: para
-#: performance.xml:610
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
"specifying the name of a class that implements <literal>org.hibernate.cache."
@@ -1221,190 +1019,156 @@
"can also implement your own and plug it in as outlined above. Note that "
"versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
-"Hibernateã使ç¨ãããã£ãã·ã¥å®è£
ã¯ã<literal>hibernate.cache."
+"Hibernate ã使ç¨ãããã£ãã·ã¥å®è£
ã¯ã <literal>hibernate.cache."
"provider_class</literal> ããããã£ã« <literal>org.hibernate.cache."
"CacheProvider</literal> ãå®è£
ããã¯ã©ã¹åãæå®ãããã¨ã§å¤æ´ã§ãã¾ãã "
-"Hibernateã¯å¤ãã®ãªã¼ãã³ã½ã¼ã¹ã®ãã£ãã·ã¥ãããã¤ãããã«ãã¤ã³å®è£
ã§æã£ã¦"
-"ãã¾ãï¼å¾ã«ãªã¹ããããã¾ãï¼ã å ãã¦ãåã«èª¬æããããã«ãããªãèªèº«ãç¬èª"
-"ã®å®è£
ããã¦ããããçµã¿è¾¼ããã¨ãåºæ¥ã¾ãã ãã¼ã¸ã§ã³3.2ããåã§ã¯EhCacheã"
-"ããã©ã«ãã®ãã£ãã·ã¥ãããã¤ãã§ãããã¨ã«æ³¨æãã¦ãã ããã ãã¼ã¸ã§ã³3.2"
-"ã§ã¯ããã¯å½ã¦ã¯ã¾ãã¾ããã"
+"Hibernate ã¯å¤ãã®ãªã¼ãã³ã½ã¼ã¹ã®ãã£ãã·ã¥ãããã¤ãããã«ãã¤ã³å®è£
ã§æã£"
+"ã¦ãã¾ãï¼å¾ã«ãªã¹ããããã¾ãï¼ãå ãã¦ãåã«èª¬æããããã«ãããªãèªèº«ãç¬"
+"èªã®å®è£
ããã¦ããããçµã¿è¾¼ããã¨ãåºæ¥ã¾ãããã¼ã¸ã§ã³3.2ããåã§ã¯ "
+"EhCache ãããã©ã«ãã®ãã£ãã·ã¥ãããã¤ãã§ãããã¨ã«æ³¨æãã¦ãã ããããã¼"
+"ã¸ã§ã³3.2ã§ã¯ããã¯å½ã¦ã¯ã¾ãã¾ããã"
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
msgstr "ãã£ãã·ã¥ãããã¤ã"
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr "ãã£ãã·ã¥"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
msgstr "ãããã¤ãã¯ã©ã¹"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr "ã¿ã¤ã"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
msgstr "ã¯ã©ã¹ã¿ã»ã¼ã"
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
msgstr "ã¯ã¨ãªãã£ãã·ã¥ã®ãµãã¼ã"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, no-c-format
msgid "Hashtable (not intended for production use)"
msgstr "Hashtableï¼è£½åç¨ã¨ãã¦æå³ãã¦ãã¾ããï¼"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
-msgstr "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr "ã¡ã¢ãª"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
+msgid "yes"
msgstr ""
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
-msgstr "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.EhCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
msgstr "ã¡ã¢ãªããã£ã¹ã¯"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
-msgstr "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.OSCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
-msgstr "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
-msgstr "ã¯ã©ã¹ã¿ï¼ipãã«ããã£ã¹ãï¼"
+msgstr "ã¯ã©ã¹ã¿ï¼ip ãã«ããã£ã¹ãï¼"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
msgstr "yesï¼ã¯ã©ã¹ã¿ç¡å¹åï¼"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 1.x"
-msgstr "JBoss TreeCache"
+msgstr ""
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
-msgstr "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
-msgstr "ã¯ã©ã¹ã¿ï¼ipãã«ããã£ã¹ãï¼ããã©ã³ã¶ã¯ã·ã§ãã«"
+msgstr "ã¯ã©ã¹ã¿ï¼ip ãã«ããã£ã¹ãï¼ããã©ã³ã¶ã¯ã·ã§ãã«"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
msgstr "yesï¼è¤è£½ï¼"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
msgstr "yesï¼æå»åæãå¿
è¦ï¼"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 2"
-msgstr "JBoss TreeCache"
+msgstr ""
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
-msgstr "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
+msgstr "<literal>org.hibernate.cache.jbc2.JBossCacheRegionFactory</literal>"
#. Tag: entry
-#: performance.xml:677
#, fuzzy, no-c-format
msgid "yes (replication or invalidation)"
msgstr "yesï¼ã¯ã©ã¹ã¿ç¡å¹åï¼"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
msgstr "ãã£ãã·ã¥ã®ãããã³ã°"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
@@ -1413,56 +1177,41 @@
"ã¯ã©ã¹ãã³ã¬ã¯ã·ã§ã³ã®ãããã³ã°ã® <literal><cache></literal> è¦ç´ ã¯ä»¥"
"ä¸ã®å½¢å¼ã§ãã"
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
"<literal>transactional</literal>, <literal>read-write</literal>, "
"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
msgstr ""
-"<literal>usage</literal> (required) specifies the caching strategy: "
-"<literal>transactional</literal>, <literal>read-write</literal>, "
-"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
+"<literal>usage</literal> (å¿
é ) ãã£ãã·ã³ã°æ¦ç¥ãæå®ãã¾ãï¼ "
+"<literal>transactional</literal>ã <literal>read-write</literal>ã "
+"<literal>nonstrict-read-write</literal> ã¾ã㯠<literal>read-only</literal>"
#. Tag: para
-#: performance.xml:710
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
"role name): specifies the name of the second level cache region"
msgstr ""
-"<literal>region</literal> (optional, defaults to the class or collection "
-"role name) specifies the name of the second level cache region"
+"<literal>region</literal> (ãªãã·ã§ã³ãã¯ã©ã¹ã¾ãã¯ã³ã¬ã¯ã·ã§ã³ã®ãã¼ã«ãã¼ã "
+"ã®ããã©ã«ã) 2次ã¬ãã«ã®ãã£ãã·ã¥é åã®ååãæå®ãã¾ã"
#. Tag: para
-#: performance.xml:717
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
"<literal>non-lazy</literal>: specifies that properties of the entity mapped "
"with <literal>lazy=\"true\"</literal> cannot be cached when attribute-level "
"lazy fetching is enabled"
msgstr ""
-"<literal>include</literal> (optional, defaults to <literal>all</literal>) "
-"<literal>non-lazy</literal> specifies that properties of the entity mapped "
-"with <literal>lazy=\"true\"</literal> may not be cached when attribute-level "
-"lazy fetching is enabled"
+"<literal>include</literal> (ãªãã·ã§ã³ã <literal>all</literal> ã«å¯¾ãã¦ã"
+"ãã©ã«ã) <literal>non-lazy</literal> ã¯ã 屿§ã¬ãã«ã® lazy ãã§ããæå¹ã«"
+"ãªã£ã¦ããå ´å <literal>lazy=\"true\"</literal> ã§ãããã³ã°ãããã¨ã³ãã£"
+"ãã£ã®ããããã£ã¯ãã£ãã·ã¥ãããªãã¦ããããã¨ãæå®ãã¾ãã"
#. Tag: para
-#: performance.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
"<literal><collection-cache></literal> elements in <literal>hibernate."
@@ -1473,7 +1222,6 @@
"literal> è¦ç´ ãæå®ãããã¨ãåºæ¥ã¾ãã"
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
@@ -1483,14 +1231,12 @@
"ãæå®ãã¾ãã"
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
-msgstr "read onlyæ¦ç¥"
+msgstr "read only æ¦ç¥"
#. Tag: para
-#: performance.xml:741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
"class, a <literal>read-only</literal> cache can be used. This is the "
@@ -1499,28 +1245,16 @@
msgstr ""
"ããã¢ããªã±ã¼ã·ã§ã³ãèªã¿è¾¼ã¿ã®ã¿å¿
è¦ã§ãæ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã夿´ããª"
"ããªãã <literal>read-only</literal> ãã£ãã·ã¥ã使ããã¨ãåºæ¥ã¾ããããã¯"
-"ãã£ã¨ãåç´ã§ ãã£ã¨ãããã©ã¼ãã³ã¹ã®è¯ãæ¦ç¥ã§ããã¯ã©ã¹ã¿ã§ã®ä½¿ç¨ãå®å
¨ã«"
+"ãã£ã¨ãåç´ã§ãã£ã¨ãããã©ã¼ãã³ã¹ã®è¯ãæ¦ç¥ã§ããã¯ã©ã¹ã¿ã§ã®ä½¿ç¨ãå®å
¨ã«"
"å®å
¨ã§ãã"
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
-msgstr "read/writeæ¦ç¥"
+msgstr "read/write æ¦ç¥"
#. Tag: para
-#: performance.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
"cache might be appropriate. This cache strategy should never be used if "
@@ -1535,40 +1269,25 @@
"built-in cache providers <emphasis>do not</emphasis> support locking."
msgstr ""
"ã¢ããªã±ã¼ã·ã§ã³ããã¼ã¿ãæ´æ°ããå¿
è¦ããããªãã <literal>read-write</"
-"literal> ãã£ãã·ã¥ãé©å½ãã ããã¾ããããã®ãã£ãã·ã¥æ¦ç¥ã¯ãã·ãªã¢ã©ã¤ã¶"
-"ãã«ãªãã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã«ãè¦æ±ããããªãã æ±ºãã¦ä½¿ãã¹ãã§ã¯ããã¾ã"
-"ãããããã£ãã·ã¥ãJTAç°å¢ã§ä½¿ããããªããJTA <literal>TransactionManager</"
-"literal> ãåå¾ããããã®æ¹æ³ã示ã <literal>hibernate.transaction."
-"manager_lookup_class</literal> ããããã£ãæå®ããªããã°ãªãã¾ãããä»ã®ç°å¢"
-"ã§ã¯ã <literal>Session.close()</literal> ã <literal>Session.disconnect()</"
-"literal> ãå¼ã°ããã¨ãã«ã確å®ã«ãã©ã³ã¶ã¯ã·ã§ã³ãå®äº ãã¦ããªããã°ãªãã¾"
-"ããã ããã¯ã©ã¹ã¿ã§ãã®æ¦ç¥ã使ããããªããåºã¨ãªããã£ãã·ã¥ã®å®è£
ãããã¯"
-"ããµãã¼ã ãã¦ãããã¨ãä¿è¨¼ããªããã°ãªãã¾ããã çµã¿è¾¼ã¿ã®ãã£ãã·ã¥ãã"
-"ãã¤ã㯠<emphasis>ãµãã¼ããã¦ãã¾ãã</emphasis> ã"
+"literal> ãã£ãã·ã¥ãé©å½ããããã¾ããããã®ãã£ãã·ã¥æ¦ç¥ã¯ãã·ãªã¢ã©ã¤ã¶ã"
+"ã«ãªãã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã«ãè¦æ±ããããªããæ±ºãã¦ä½¿ãã¹ãã§ã¯ããã¾ã"
+"ãããããã£ãã·ã¥ã JTA ç°å¢ã§ä½¿ããããªãã JTA "
+"<literal>TransactionManager</literal> ãåå¾ããããã®æ¹æ³ã示ã "
+"<literal>hibernate.transaction.manager_lookup_class</literal> ããããã£ãæ"
+"å®ããªããã°ãªãã¾ãããä»ã®ç°å¢ã§ã¯ã <literal>Session.close()</literal> ã "
+"<literal>Session.disconnect()</literal> ãå¼ã°ããã¨ãã«ã確å®ã«ãã©ã³ã¶ã¯"
+"ã·ã§ã³ãå®äºãã¦ããªããã°ãªãã¾ãããããã¯ã©ã¹ã¿ã§ãã®æ¦ç¥ã使ããããªãã"
+"åºã¨ãªããã£ãã·ã¥ã®å®è£
ãããã¯ããµãã¼ããã¦ãããã¨ãä¿è¨¼ããªããã°ãªãã¾"
+"ãããçµã¿è¾¼ã¿ã®ãã£ãã·ã¥ãããã¤ã㯠<emphasis>ãµãã¼ããã¦ãã¾ãã</"
+"emphasis> ã"
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
-msgstr "å³å¯ã§ã¯ãªãread/writeæ¦ç¥"
+msgstr "å³å¯ã§ã¯ãªã read/write æ¦ç¥"
#. Tag: para
-#: performance.xml:773
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
"extremely unlikely that two transactions would try to update the same item "
@@ -1580,100 +1299,85 @@
"</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
"ã¢ããªã±ã¼ã·ã§ã³ããã¾ã«ãããã¼ã¿ãæ´æ°ããå¿
è¦ã¯ãªãï¼ããªãã¡äºã¤ã®ãã©ã³"
-"ã¶ã¯ã·ã§ã³ã åæã«åãã¢ã¤ãã ãæ´æ°ãããã¨ãããã¨ã¯ã»ã¨ãã©èµ·ãããªãï¼ã"
-"å³å¯ãªãã©ã³ã¶ã¯ã·ã§ã³åé¢ã è¦æ±ãããªããªãã <literal>nonstrict-read-"
-"write</literal> ãã£ãã·ã¥ãé©å½ããããã¾ããã ãããã£ãã·ã¥ãJTAç°å¢ã§ä½¿"
+"ã¶ã¯ã·ã§ã³ãåæã«åãã¢ã¤ãã ãæ´æ°ãããã¨ãããã¨ã¯ã»ã¨ãã©èµ·ãããªãï¼ã"
+"å³å¯ãªãã©ã³ã¶ã¯ã·ã§ã³åé¢ãè¦æ±ãããªããªãã <literal>nonstrict-read-"
+"write</literal> ãã£ãã·ã¥ãé©å½ããããã¾ããããããã£ãã·ã¥ã JTA ç°å¢ã§ä½¿"
"ããããªãã <literal>hibernate.transaction.manager_lookup_class</literal> ã"
"æå®ããªããã°ãªãã¾ãããä»ã®ç°å¢ã§ã¯ã <literal>Session.close()</literal> "
"ã <literal>Session.disconnect()</literal> ãå¼ã°ããã¨ãã«ã確å®ã«ãã©ã³ã¶ã¯"
-"ã·ã§ã³ãå®äº ãã¦ããªããã°ãªãã¾ããã"
+"ã·ã§ã³ãå®äºãã¦ããªããã°ãªãã¾ããã"
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
-msgstr "transactionalæ¦ç¥"
+msgstr "transactional æ¦ç¥"
#. Tag: para
-#: performance.xml:787
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
"fully transactional cache providers such as JBoss TreeCache. Such a cache "
"can only be used in a JTA environment and you must specify "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
-"<literal>transactional</literal> ãã£ãã·ã¥æ¦ç¥ã¯JBoss TreeCacheã®ãããªå®å
¨"
-"ãªãã©ã³ã¶ã¯ã·ã§ãã« ãã£ãã·ã¥ãããã¤ãã®ãµãã¼ããæä¾ãã¾ãã ãã®ãããª"
-"ãã£ãã·ã¥ã¯JTAç°å¢ã§ã®ã¿ä½¿ç¨å¯è½ã§ã <literal>hibernate.transaction."
+"<literal>transactional</literal> ãã£ãã·ã¥æ¦ç¥ã¯ JBoss TreeCache ã®ãããªå®"
+"å
¨ãªãã©ã³ã¶ã¯ã·ã§ãã«ãã£ãã·ã¥ãããã¤ãã®ãµãã¼ããæä¾ãã¾ãããã®ãããª"
+"ãã£ãã·ã¥ã¯ JTA ç°å¢ã§ã®ã¿ä½¿ç¨å¯è½ã§ã <literal>hibernate.transaction."
"manager_lookup_class</literal> ãæå®ããªããã°ãªãã¾ããã"
#. Tag: title
-#: performance.xml:796
#, fuzzy, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
msgstr "åæä¸¦è¡æ§ãã£ãã·ã¥æ¦ç¥ã®ãµãã¼ã"
#. Tag: para
-#: performance.xml:799
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
msgstr ""
"ãã¹ã¦ã®åæä¸¦è¡æ§ãã£ãã·ã¥æ¦ç¥ããµãã¼ããã¦ãããã£ãã·ã¥ãããã¤ãã¯ãã"
-"ã¾ããã 以ä¸ã®è¡¨ã¯ã©ã®ãããã¤ããã©ã®åæä¸¦åæ§æ¦ç¥ã«å¯¾å¿ãããã表ãã¦ãã¾"
-"ãã"
+"ã¾ããã"
#. Tag: para
-#: performance.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
"concurrency strategies."
msgstr ""
-"ãã¹ã¦ã®åæä¸¦è¡æ§ãã£ãã·ã¥æ¦ç¥ããµãã¼ããã¦ãããã£ãã·ã¥ãããã¤ãã¯ãã"
-"ã¾ããã 以ä¸ã®è¡¨ã¯ã©ã®ãããã¤ããã©ã®åæä¸¦åæ§æ¦ç¥ã«å¯¾å¿ãããã表ãã¦ãã¾"
-"ãã"
+"以ä¸ã®è¡¨ã¯ã©ã®ãããã¤ããã©ã®åæä¸¦åæ§æ¦ç¥ã«å¯¾å¿ãããã表ãã¦ãã¾ãã"
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
msgstr "åæä¸¦è¡æ§ãã£ãã·ã¥æ¦ç¥ã®ãµãã¼ã"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr "read-only"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
-msgstr "å³å¯ã§ã¯ãªãread-write"
+msgstr "å³å¯ã§ã¯ãªã read-write"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
msgstr "read-write"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr "transactional"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
msgstr "ãã£ãã·ã¥ã®ç®¡ç"
#. Tag: para
-#: performance.xml:879
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an "
@@ -1686,12 +1390,11 @@
"<literal>saveOrUpdate()</literal> ã«æ¸¡ãã¨ãããã㦠<literal>load()</"
"literal> ã <literal>get()</literal> ã <literal>list()</literal> ã "
"<literal>iterate()</literal> ã <literal>scroll()</literal> ã使ã£ã¦ãªãã¸ã§"
-"ã¯ãã復å
ããã¨ãã«ã¯å¸¸ã«ã ãã®ãªãã¸ã§ã¯ã㯠<literal>Session</literal> ã®"
+"ã¯ãã復å
ããã¨ãã«ã¯å¸¸ã«ããã®ãªãã¸ã§ã¯ã㯠<literal>Session</literal> ã®"
"å
é¨ãã£ãã·ã¥ã«è¿½å ããã¾ãã"
#. Tag: para
-#: performance.xml:886
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
"object will be synchronized with the database. If you do not want this "
@@ -1701,26 +1404,12 @@
"cache."
msgstr ""
"次㫠<literal>flush()</literal> ãå¼ã°ããã¨ããªãã¸ã§ã¯ãã®ç¶æ
ã¯ãã¼ã¿ãã¼"
-"ã¹ã¨åæåããã¾ãã ãããã®åæãèµ·ãããã¨ãæã¾ãªãã¨ãããè¨å¤§ãªæ°ã®ãªã"
-"ã¸ã§ã¯ããå¦çãã¦ãã¦ã¡ã¢ãªãå¹ççã« æ±ãå¿
è¦ãããã¨ãã¯ã <literal>evict"
-"()</literal> ã¡ã½ããã使ã£ã¦ä¸æ¬¡ãã£ãã·ã¥ãã ãªãã¸ã§ã¯ããã³ã¬ã¯ã·ã§ã³ã"
-"åé¤ãããã¨ãåºæ¥ã¾ãã"
+"ã¹ã¨åæåããã¾ãããããã®åæãèµ·ãããã¨ãæã¾ãªãã¨ãããè¨å¤§ãªæ°ã®ãªã"
+"ã¸ã§ã¯ããå¦çãã¦ãã¦ã¡ã¢ãªãå¹ççã«æ±ãå¿
è¦ãããã¨ãã¯ã <literal>evict()"
+"</literal> ã¡ã½ããã使ã£ã¦ä¸æ¬¡ãã£ãã·ã¥ãããªãã¸ã§ã¯ããã³ã¬ã¯ã·ã§ã³ãåé¤"
+"ãããã¨ãåºæ¥ã¾ãã"
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
@@ -1730,52 +1419,36 @@
"ããã夿ããããã® <literal>contains()</literal> ã¡ã½ãããæä¾ãã¾ãã"
#. Tag: para
-#: performance.xml:901
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
"literal>"
msgstr ""
-"ãã¹ã¦ã®ãªãã¸ã§ã¯ããã»ãã·ã§ã³ãã£ãã·ã¥ããå®å
¨ã«åãé¤ãã«ã¯ã"
+"ãã¹ã¦ã®ãªãã¸ã§ã¯ããã»ãã·ã§ã³ãã£ãã·ã¥ããå®å
¨ã«åãé¤ãã«ã¯ã "
"<literal>Session.clear()</literal> ãå¼ã³åºãã¦ãã ããã"
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
"<literal>SessionFactory</literal> for evicting the cached state of an "
"instance, entire class, collection instance or entire collection role."
msgstr ""
-"äºæ¬¡ãã£ãã·ã¥ã®ããã«ã <literal>SessionFactory</literal> ã«ã¯ ã¤ã³ã¹ã¿ã³"
-"ã¹ãã¯ã©ã¹å
¨ä½ãã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³å
¨ä½ããã£ãã·ã¥ãã "
-"åé¤ããããã®ã¡ã½ãããããããå®ç¾©ããã¦ãã¾ãã"
+"äºæ¬¡ãã£ãã·ã¥ã®ããã«ã <literal>SessionFactory</literal> ã«ã¯ã¤ã³ã¹ã¿ã³ã¹ã"
+"ã¯ã©ã¹å
¨ä½ãã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ãã³ã¬ã¯ã·ã§ã³å
¨ä½ããã£ãã·ã¥ããåé¤"
+"ããããã®ã¡ã½ãããããããå®ç¾©ããã¦ãã¾ãã"
-#. Tag: programlisting
-#: performance.xml:911
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:913
-#, fuzzy, no-c-format
-msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
"with the second-level cache:"
msgstr ""
"<literal>CacheMode</literal> ã¯ç¹å®ã®ã»ãã·ã§ã³ãäºæ¬¡ãã£ãã·ã¥ã¨ã©ã®ããã«ç¸"
-"äºä½ç¨ãããã æå®ãã¾ãã"
+"äºä½ç¨ããããæå®ãã¾ãã"
#. Tag: para
-#: performance.xml:920
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
"the second-level cache"
@@ -1784,28 +1457,25 @@
"ãã£ãã·ã¥ã使ãã¾ã"
#. Tag: para
-#: performance.xml:925
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
"cache. Do not write to the second-level cache except when updating data"
msgstr ""
"<literal>CacheMode.GET</literal> - èªã¿è¾¼ã¿ã¯äºæ¬¡ãã£ãã·ã¥ããè¡ãã¾ããã"
-"ãã¼ã¿ã æ´æ°ããå ´åãé¤ãã¦äºæ¬¡ãã£ãã·ã¥ã«æ¸ãè¾¼ã¿ããã¾ããã"
+"ãã¼ã¿ãæ´æ°ããå ´åãé¤ãã¦äºæ¬¡ãã£ãã·ã¥ã«æ¸ãè¾¼ã¿ããã¾ããã"
#. Tag: para
-#: performance.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache"
msgstr ""
"<literal>CacheMode.PUT</literal> - äºæ¬¡ãã£ãã·ã¥ã«ã¢ã¤ãã ãæ¸ãè¾¼ã¿ã¾ããã"
-"èªã¿è¾¼ã¿ã«ã¯ äºæ¬¡ãã£ãã·ã¥ã使ãã¾ããã"
+"èªã¿è¾¼ã¿ã«ã¯äºæ¬¡ãã£ãã·ã¥ã使ãã¾ããã"
#. Tag: para
-#: performance.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache. Bypass the effect of "
@@ -1813,109 +1483,125 @@
"second-level cache for all items read from the database"
msgstr ""
"<literal>CacheMode.REFRESH</literal> - äºæ¬¡ãã£ãã·ã¥ã«ã¢ã¤ãã ãæ¸ãè¾¼ã¿ã¾ã"
-"ããèªã¿è¾¼ã¿ã«ã¯ äºæ¬¡ãã£ãã·ã¥ã使ããã <literal>hibernate.cache."
+"ããèªã¿è¾¼ã¿ã«ã¯äºæ¬¡ãã£ãã·ã¥ã使ããã <literal>hibernate.cache."
"use_minimal_puts</literal> ã®å½±é¿ãåããã«ããã¼ã¿ãã¼ã¹ããèªã¿è¾¼ããã¹ã¦ã®"
"ã¢ã¤ãã ã®äºæ¬¡ãã£ãã·ã¥ãå¼·å¶çã«ãªãã¬ãã·ã¥ãã¾ãã"
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
"<literal>Statistics</literal> API:"
msgstr ""
"äºæ¬¡ãã£ãã·ã¥ã®å
容ãã¯ã¨ãªãã£ãã·ã¥é åãè¦ãããã«ã "
-"<literal>Statistics</literal> APIã 使ã£ã¦ãã ããã"
+"<literal>Statistics</literal> API ã使ã£ã¦ãã ãã:"
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
+"You will need to enable statistics and, optionally, force Hibernate to keep "
+"the cache entries in a more readable format:"
msgstr ""
+"çµ±è¨æ
å ±ãæå¹ã«ãã¦ãããã«ãªãã·ã§ã³ã¨ãã¦ããã£ãã·ã¥ã¨ã³ããªã人ãããç"
+"è§£å¯è½ãªå½¢å¼ã§ä¿æãããã¨ã Hibernate ã«å¼·å¶ãã¾ã:"
+#. Tag: title
+#, no-c-format
+msgid "The Query Cache"
+msgstr "ã¯ã¨ãªãã£ãã·ã¥"
+
#. Tag: para
-#: performance.xml:952
#, fuzzy, no-c-format
msgid ""
-"You will need to enable statistics and, optionally, force Hibernate to keep "
-"the cache entries in a more readable format:"
+"Query result sets can also be cached. This is only useful for queries that "
+"are run frequently with the same parameters."
msgstr ""
-"çµ±è¨æ
å ±ãæå¹ã«ãã¦ãããã«ãªãã·ã§ã³ã¨ãã¦ããã£ãã·ã¥ã¨ã³ããªã 人ãããç"
-"è§£å¯è½ãªå½¢å¼ã§ä¿æãããã¨ãHibernateã«å¼·å¶ãã¾ãã"
+"ã¯ã¨ãªã®ãªã¶ã«ãã»ããããã£ãã·ã¥åºæ¥ã¾ããããã¯åããã©ã¡ã¼ã¿ã§ä½åº¦ãå®è¡"
+"ãããã¯ã¨ãªã«å¯¾ãã¦ã®ã¿æç¨ã§ããã¯ã¨ãªãã£ãã·ã¥ã使ãã«ã¯ãã¾ãè¨å®ã§æå¹"
+"ã«ããªãã¦ã¯ãªãã¾ãã:"
-#. Tag: programlisting
-#: performance.xml:957
+#. Tag: title
#, no-c-format
+msgid "Enabling query caching"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-#. Tag: title
-#: performance.xml:962
+#. Tag: para
#, no-c-format
-msgid "The Query Cache"
-msgstr "ã¯ã¨ãªãã£ãã·ã¥"
+msgid "This setting creates two new cache regions:"
+msgstr ""
#. Tag: para
-#: performance.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
msgstr ""
-"ã¯ã¨ãªã®ãªã¶ã«ãã»ããããã£ãã·ã¥åºæ¥ã¾ããããã¯åããã©ã¡ã¼ã¿ã§ä½åº¦ãå®è¡"
-"ããã ã¯ã¨ãªã«å¯¾ãã¦ã®ã¿æç¨ã§ããã¯ã¨ãªãã£ãã·ã¥ã使ãã«ã¯ãã¾ãè¨å®ã§æå¹"
-"ã«ããªãã¦ã¯ãªãã¾ããã"
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
msgstr ""
-"ãã®è¨å®ã¯æ°ãã«äºã¤ã®ãã£ãã·ã¥é åã®ä½æãè¡ãã¾ããä¸ã¤ã¯ã¯ã¨ãªã®ãªã¶ã«ã"
-"ã»ããã® ãã£ãã·ã¥ï¼ <literal>org.hibernate.cache.StandardQueryCache</"
-"literal> ï¼ãä¿æãã ãã1ã¤ã¯ã¯ã¨ãªå¯è½ãªãã¼ãã«ã¸ã®ææ°ã®æ´æ°ã¿ã¤ã ã¹ã¿ã³"
-"ã ï¼ <literal>org.hibernate.cache.UpdateTimestampsCache</literal> ï¼ãä¿æã"
-"ã¾ãã ã¯ã¨ãªãã£ãã·ã¥ã¯ãªã¶ã«ãã»ããã®å®éã®è¦ç´ ã®ç¶æ
ã¯ãã£ãã·ã¥ããªãã"
-"ã¨ã« 注æãã¦ãã ããããã£ãã·ã¥ããã®ã¯èå¥åã®å¤ã¨ãå¤åã®çµæã®ã¿ã§ãã "
-"ãã®ãããã¯ã¨ãªãã£ãã·ã¥ã¯å¸¸ã«äºæ¬¡ãã£ãã·ã¥ã¨ä¸ç·ã«ä½¿ãã¹ãã§ãã"
#. Tag: para
-#: performance.xml:981
#, fuzzy, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
"ã»ã¨ãã©ã®ã¯ã¨ãªã¯ãã£ãã·ã¥ã®æ©æµãåããªãã®ã§ãããã©ã«ãã§ã¯ã¯ã¨ãªã¯"
-"ãã£ãã·ã¥ããã¾ããã ãã£ãã·ã¥ãæå¹ã«ããã«ã¯ã <literal>Query."
-"setCacheable(true)</literal> ãå¼ã³åºãã¦ãã ããã ããããã°ã¯ã¨ãªãæ¢åã®"
-"ãã£ãã·ã¥çµæãæ¢ããã¯ã¨ãªå®è¡æã«ãã®çµæããã£ãã·ã¥ã«è¿½å ãã ããã«ãªã"
+"ãã£ãã·ã¥ããã¾ããããã£ãã·ã¥ãæå¹ã«ããã«ã¯ã <literal>Query."
+"setCacheable(true)</literal> ãå¼ã³åºãã¦ãã ãããããããã°ã¯ã¨ãªãæ¢åã®"
+"ãã£ãã·ã¥çµæãæ¢ããã¯ã¨ãªå®è¡æã«ãã®çµæããã£ãã·ã¥ã«è¿½å ããããã«ãªã"
"ã¾ãã"
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "ã¯ã¨ãªãã£ãã·ã¥ã®ãµãã¼ã"
+
+#. Tag: para
+#, no-c-format
msgid ""
"If you require fine-grained control over query cache expiration policies, "
"you can specify a named cache region for a particular query by calling "
@@ -1925,47 +1611,33 @@
"setCacheRegion()</literal> ãå¼ã³åºãã¦ç¹å®ã®ã¯ã¨ãªã«å¯¾ãããã£ãã·ã¥é åãæ"
"å®ãããã¨ãåºæ¥ã¾ãã"
-#. Tag: programlisting
-#: performance.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:996
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
msgstr ""
"ã¯ã¨ãªãèªèº«ã®ã¯ã¨ãªãã£ãã·ã¥é åã®ãªãã¬ãã·ã¥ãå¼·å¶ããªããã°ãªããªããª"
"ãã <literal>Query.setCacheMode(CacheMode.REFRESH)</literal> ãå¼ã³åºãã¹ã"
-"ã§ãããã㯠å
ã¨ãªããã¼ã¿ãå¥ã®ããã»ã¹ã«ãã£ã¦æ´æ°ããããï¼ããªãã¡"
-"Hibernateãéãã¦æ´æ°ãããªãï¼ã ã¢ããªã±ã¼ã·ã§ã³ã«ç¹å®ã®ã¯ã¨ãªãªã¶ã«ãã»ã"
-"ãã鏿ãã¦ãªãã¬ãã·ã¥ãããå ´åã«ç¹ã«æç¨ã§ãã ããã«æç¨ãªããä¸ã¤ã®æ¹æ³"
+"ã§ããããã¯å
ã¨ãªããã¼ã¿ãå¥ã®ããã»ã¹ã«ãã£ã¦æ´æ°ããããï¼ããªãã¡ "
+"Hibernate ãéãã¦æ´æ°ãããªãï¼ãã¢ããªã±ã¼ã·ã§ã³ã«ç¹å®ã®ã¯ã¨ãªãªã¶ã«ãã»ã"
+"ãã鏿ãã¦ãªãã¬ãã·ã¥ãããå ´åã«ç¹ã«æç¨ã§ããããã«æç¨ãªããä¸ã¤ã®æ¹æ³"
"ã¯ã <literal>SessionFactory.evictQueries()</literal> ã«ãã£ã¦ã¯ã¨ãªãã£ã"
"ã·ã¥é åãæ¶å»ãããã¨ã§ãã"
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ããã©ã¼ãã³ã¹ã®çè§£"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
@@ -1974,37 +1646,31 @@
msgstr ""
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
msgstr "åé¡"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
-msgstr "Hibernateã¯3ã¤ã®åºæ¬çãªã³ã¬ã¯ã·ã§ã³ã®ç¨®é¡ãå®ç¾©ãã¦ãã¾ãã"
+msgstr "Hibernate ã¯3ã¤ã®åºæ¬çãªã³ã¬ã¯ã·ã§ã³ã®ç¨®é¡ãå®ç¾©ãã¦ãã¾ã:"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr "å¤ã®ã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: performance.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many associations"
msgstr "ä¸å¯¾å¤é¢é£"
#. Tag: para
-#: performance.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
msgid "many-to-many associations"
msgstr "å¤å¯¾å¤é¢é£"
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -2015,32 +1681,28 @@
"This suggests the following classification:"
msgstr ""
"ãã®åé¡ã¯ãã¾ãã¾ãªãã¼ãã«ãå¤é¨ãã¼é¢é£ãåºå¥ãã¾ãããç§ãã¡ãç¥ãå¿
è¦ã®"
-"ãã é¢é£ã¢ãã«ã«ã¤ãã¦ã»ã¨ãã©ãªã«ãæãã¦ããã¾ãããé¢é£æ§é ãããã©ã¼ãã³"
-"ã¹ã®ç¹å¾´ã å®å
¨ã«çè§£ããã«ã¯ãHibernateãã³ã¬ã¯ã·ã§ã³ã®è¡ãæ´æ°ãåé¤ããã"
-"ãã«ä½¿ã主ãã¼ã® æ§é ãã¾ãèããªããã°ãªãã¾ãããããã¯ä»¥ä¸ã®åé¡ãæç¤ºãã¾"
+"ããé¢é£ã¢ãã«ã«ã¤ãã¦ã»ã¨ãã©ãªã«ãæãã¦ããã¾ãããé¢é£æ§é ãããã©ã¼ãã³"
+"ã¹ã®ç¹å¾´ãå®å
¨ã«çè§£ããã«ã¯ã Hibernate ãã³ã¬ã¯ã·ã§ã³ã®è¡ãæ´æ°ãåé¤ããã"
+"ãã«ä½¿ã主ãã¼ã®æ§é ãã¾ãèããªããã°ãªãã¾ãããããã¯ä»¥ä¸ã®åé¡ãæç¤ºãã¾"
"ãã"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr "ã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
msgstr "set"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
msgstr "bag"
#. Tag: para
-#: performance.xml:1054
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
"consisting of the <literal><key></literal> and <literal><index></"
@@ -2048,15 +1710,14 @@
"The primary key can be efficiently indexed and a particular row can be "
"efficiently located when Hibernate tries to update or delete it."
msgstr ""
-"ãã¹ã¦ã®ã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³ï¼mapãlistãé
åï¼ã¯ <literal><"
-"key></literal> 㨠<literal><index></literal> ã«ã©ã ãããªã主ãã¼ã"
-"æã£ã¦ãã¾ãããã®å ´å㯠ã³ã¬ã¯ã·ã§ã³ã®æ´æ°ã¯é常ã«å¹ççã§ãã主ãã¼ã¯æç¨ãª"
-"ã¤ã³ããã¯ã¹ã«ãªããHibernateã ç¹å®ã®è¡ãæ´æ°ã¾ãã¯åé¤ããã¨ãã«ããã®è¡ã"
-"å¹ççã«è¦ã¤ãããã¨ãã§ãã¾ãã"
+"ãã¹ã¦ã®ã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³ ï¼ãããããªã¹ããé
åï¼ ã¯ "
+"<literal><key></literal> 㨠<literal><index></literal> ã«ã©ã ãã"
+"ãªã主ãã¼ãæã£ã¦ãã¾ãããã®å ´åã¯ã³ã¬ã¯ã·ã§ã³ã®æ´æ°ã¯é常ã«å¹ççã§ãã主"
+"ãã¼ã¯æç¨ãªã¤ã³ããã¯ã¹ã«ãªãã Hibernate ãç¹å®ã®è¡ãæ´æ°ã¾ãã¯åé¤ããã¨ã"
+"ã«ããã®è¡ãå¹ççã«è¦ã¤ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: performance.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
"element columns. This can be less efficient for some types of collection "
@@ -2068,28 +1729,26 @@
"<literal><set></literal>, you must declare all columns as <literal>not-"
"null=\"true\"</literal>."
msgstr ""
-"set㯠<literal><key></literal> ãããªã主ãã¼ã¨è¦ç´ ã®ã«ã©ã ãæã£ã¦ãã¾"
-"ãã ããã¯ã³ã¬ã¯ã·ã§ã³è¦ç´ ã®ããã¤ãã®åã«ã¤ãã¦ã¯å¹ççã§ã¯ãªãããããã¾ã"
-"ãã ç¹ã«è¤åè¦ç´ ã大ããªããã¹ãããã¤ããªãã£ã¼ã«ãã§ã¯éå¹çã§ãããã¼ã¿"
-"ãã¼ã¹ã¯ è¤å主ãã¼ã«å¹ççã«ã¤ã³ããã¯ã¹ãä»ãããã¨ãã§ããªãããã§ããä¸"
-"æ¹ã1対å¤ãå¤å¯¾å¤é¢é£ã«ããã¦ã ç¹ã«äººå·¥èå¥åã®å ´åã¯åããããå¹ççã§ãã"
+"set 㯠<literal><key></literal> ãããªã主ãã¼ã¨è¦ç´ ã®ã«ã©ã ãæã£ã¦ã"
+"ã¾ããããã¯ã³ã¬ã¯ã·ã§ã³è¦ç´ ã®ããã¤ãã®åã«ã¤ãã¦ã¯å¹ççã§ã¯ãªãããããã¾"
+"ãããç¹ã«è¤åè¦ç´ ã大ããªããã¹ãããã¤ããªãã£ã¼ã«ãã§ã¯éå¹çã§ãããã¼ã¿"
+"ãã¼ã¹ã¯è¤å主ãã¼ã«å¹ççã«ã¤ã³ããã¯ã¹ãä»ãããã¨ãã§ããªãããã§ããä¸"
+"æ¹ãä¸å¯¾å¤ãå¤å¯¾å¤é¢é£ã«ããã¦ãç¹ã«äººå·¥èå¥åã®å ´åã¯åããããå¹ççã§ãã"
"ï¼ä½è«ï¼ <literal>SchemaExport</literal> ã§å®éã« <literal><set></"
"literal> ã®ä¸»ãã¼ãä½ããããªãããã¹ã¦ã®ã«ã©ã ã§ <literal>not-null=\"true"
"\"</literal> ã宣è¨ããªããã°ãªãã¾ãããï¼"
#. Tag: para
-#: performance.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
"are efficient to update. In fact, they are the best case."
msgstr ""
-"<literal><idbag></literal> ãããã³ã°ã¯ä»£çãã¼ãå®ç¾©ãã¾ãããã®ãã "
-"æ´æ°ã¯å¸¸ã«é常ã«å¹ççã§ããäºå®ä¸ãããã¯æåã®ã±ã¼ã¹ã§ãã"
+"<literal><idbag></literal> ãããã³ã°ã¯ä»£çãã¼ãå®ç¾©ãã¾ãããã®ããæ´"
+"æ°ã¯å¸¸ã«é常ã«å¹ççã§ããäºå®ä¸ãããã¯æåã®ã±ã¼ã¹ã§ãã"
#. Tag: para
-#: performance.xml:1078
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
"they have no index column, no primary key can be defined. Hibernate has no "
@@ -2097,47 +1756,43 @@
"problem by completely removing in a single <literal>DELETE</literal> and "
"recreating the collection whenever it changes. This can be inefficient."
msgstr ""
-"bagã¯ææªã®ã±ã¼ã¹ã§ããbagã¯è¦ç´ ã®å¤ã®éè¤ãå¯è½ã§ãã¤ã³ããã¯ã¹ã«ã©ã ãæã"
-"ãªãããã 主ãã¼ã¯å®ç¾©ãããªãããããã¾ãããHibernateã«ã¯éè¤ããè¡ãåºå¥"
-"ããæ¹æ³ãããã¾ããã Hibernateã¯ãã®åé¡ã®è§£æ±ºã®ããã«ã夿´ããã£ãã¨ãã«"
-"ã¯å¸¸ã«å®å
¨ãªåé¤ ï¼ä¸ã¤ã® <literal>DELETE</literal> ã«ããï¼ãè¡ããã³ã¬ã¯"
-"ã·ã§ã³ã®å使ãè¡ãã¾ãã ããã¯é常ã«éå¹ççããããã¾ããã"
+"bag ã¯ææªã®ã±ã¼ã¹ã§ãã bag ã¯è¦ç´ ã®å¤ã®éè¤ãå¯è½ã§ãã¤ã³ããã¯ã¹ã«ã©ã ãæ"
+"ããªãããã主ãã¼ã¯å®ç¾©ãããªãããããã¾ããã Hibernate ã«ã¯éè¤ããè¡ãåº"
+"å¥ããæ¹æ³ãããã¾ããã Hibernate ã¯ãã®åé¡ã®è§£æ±ºã®ããã«ã夿´ããã£ãã¨ã"
+"ã«ã¯å¸¸ã«å®å
¨ãªåé¤ï¼ä¸ã¤ã® <literal>DELETE</literal> ã«ããï¼ãè¡ããã³ã¬ã¯"
+"ã·ã§ã³ã®å使ãè¡ãã¾ããããã¯é常ã«éå¹ççããããã¾ããã"
#. Tag: para
-#: performance.xml:1086
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
"primary key of the database table. Even in this case, the above "
"classification is still useful. It reflects how Hibernate \"locates\" "
"individual rows of the collection."
msgstr ""
-"1対å¤é¢é£ã§ã¯ãã主ãã¼ãã¯ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ã®ç©çç㪠主ãã¼ã§ã¯ãªãã"
+"ä¸å¯¾å¤é¢é£ã§ã¯ãã主ãã¼ãã¯ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ã®ç©ççãªä¸»ãã¼ã§ã¯ãªãã"
"ããããªããã¨ã«æ³¨æãã¦ãã ãããããããã®å ´åã§ãããä¸è¨ã®åé¡ã¯ã¾ã æç¨"
-"ã§ãã ï¼Hibernateãã³ã¬ã¯ã·ã§ã³ã®åã
ã®è¡ãã©ããã£ã¦ãè¦ã¤ããããã表ãã¦"
-"ãã¾ããï¼"
+"ã§ããï¼Hibernateãã³ã¬ã¯ã·ã§ã³ã®åã
ã®è¡ãã©ããã£ã¦ãè¦ã¤ããããã表ãã¦ã"
+"ã¾ããï¼"
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
msgstr "æ´æ°ã«ãã£ã¨ãå¹ççãªã³ã¬ã¯ã·ã§ã³ listãmapãidbagãset"
#. Tag: para
-#: performance.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
"sets allow the most efficient operation in terms of adding, removing and "
"updating elements."
msgstr ""
-"ä¸ã§ã®è°è«ãããã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³ã¨ï¼æ®éã®ï¼setã¯è¦ç´ ã®è¿½å ãå"
-"é¤ã æ´æ°ã§ãã£ã¨ãå¹ççãªæä½ãåºæ¥ããã¨ã¯æããã§ãã"
+"ä¸ã§ã®è°è«ãããã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯ã·ã§ã³ã¨ï¼æ®éã®ï¼ set ã¯è¦ç´ ã®è¿½å ãå"
+"é¤ãæ´æ°ã§ãã£ã¨ãå¹ççãªæä½ãåºæ¥ããã¨ã¯æããã§ãã"
#. Tag: para
-#: performance.xml:1104
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
"sets for many-to-many associations or collections of values. Because of the "
@@ -2148,15 +1803,14 @@
"to one-to-many associations."
msgstr ""
"ã»ã¼ééããªããå¤å¯¾å¤é¢é£ãå¤ã®ã³ã¬ã¯ã·ã§ã³ã«ããã¦ãã¤ã³ããã¯ã¹ä»ãã³ã¬ã¯"
-"ã·ã§ã³ã setãããåªãã¦ããç¹ãä¸ã¤ä»¥ä¸ããã¾ãã <literal>Set</literal> ã¯"
-"ãã® æ§é ã®ããã«ãHibernateã¯è¦ç´ ãã夿´ããããã¨ãã«è¡ã決ã㦠"
+"ã·ã§ã³ã set ãããåªãã¦ããç¹ãä¸ã¤ä»¥ä¸ããã¾ãã <literal>Set</literal> ã¯"
+"ãã®æ§é ã®ããã«ã Hibernate ã¯è¦ç´ ãã夿´ããããã¨ãã«è¡ã決ã㦠"
"<literal>UPDATE</literal> ãã¾ããã <literal>Set</literal> ã¸ã®å¤æ´ã¯å¸¸ã«"
-"ï¼åã
ã®è¡ã®ï¼<literal>INSERT</literal> 㨠<literal>DELETE</literal> ã«ãã£ã¦"
-"è¡ãã¾ããç¹°ãè¿ãã¾ãããããã¯ä¸å¯¾å¤é¢é£ã«ã¯ å½ã¦ã¯ã¾ãã¾ããã"
+"ï¼åã
ã®è¡ã®ï¼ <literal>INSERT</literal> 㨠<literal>DELETE</literal> ã«ãã£"
+"ã¦è¡ãã¾ããç¹°ãè¿ãã¾ãããããã¯ä¸å¯¾å¤é¢é£ã«ã¯å½ã¦ã¯ã¾ãã¾ããã"
#. Tag: para
-#: performance.xml:1113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
"maps and idbags are the most performant (non-inverse) collection types, with "
@@ -2164,15 +1818,14 @@
"collection in Hibernate applications. This is because the \"set\" semantics "
"are most natural in the relational model."
msgstr ""
-"é
åã¯é
å»¶å¦çãã§ããªãã¨ããæ±ºã¾ããªã®ã§ãçµè«ã¨ãã¦ãlistãmapãidbagã"
-"ãã£ã¨ã ããã©ã¼ãã³ã¹ã®è¯ãï¼inverseã§ã¯ãªãï¼ã³ã¬ã¯ã·ã§ã³ã¿ã¤ãã¨ãªãã¾"
-"ããsetã ããã»ã©éãã¯ããã¾ãããHibernateã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãsetã¯ã³"
-"ã¬ã¯ã·ã§ã³ã®ãã£ã¨ã å
±éã®ç¨®é¡ã¨ãã¦æå¾
ããã¾ããsetã®è¡¨ç¾ã¯é¢é£ã¢ãã«ã§ã¯"
-"ãã£ã¨ãèªç¶ã ããã§ãã"
+"é
åã¯é
å»¶å¦çãã§ããªãã¨ããæ±ºã¾ããªã®ã§ãçµè«ã¨ãã¦ãlistãmapãidbag ã"
+"ãã£ã¨ãããã©ã¼ãã³ã¹ã®è¯ãï¼inverse ã§ã¯ãªãï¼ã³ã¬ã¯ã·ã§ã³ã¿ã¤ãã¨ãªãã¾"
+"ãã set ãããã»ã©éãã¯ããã¾ããã Hibernate ã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ã set "
+"ã¯ã³ã¬ã¯ã·ã§ã³ã®ãã£ã¨ãå
±éã®ç¨®é¡ã¨ãã¦æå¾
ããã¾ãã \"set\" ã®è¡¨ç¾ã¯é¢é£ã¢"
+"ãã«ã§ã¯ãã£ã¨ãèªç¶ã ããã§ãã"
#. Tag: para
-#: performance.xml:1121
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
"fact one-to-many associations with <literal>inverse=\"true\"</literal>. For "
@@ -2180,20 +1833,18 @@
"association, and so considerations of collection update performance simply "
"do not apply."
msgstr ""
-"ãããããããã¶ã¤ã³ãããHibernateã®ãã¡ã¤ã³ã¢ãã«ã§ã¯ãé常ãã£ã¨ãå¤ãã³ã¬"
-"ã¯ã·ã§ã³ã¯ äºå®ä¸ <literal>inverse=\"true\"</literal> ãæå®ãã1対å¤é¢é£ã§"
-"ãããããã®é¢é£ã§ã¯ã æ´æ°ã¯å¤å¯¾ä¸ã®é¢é£ç«¯ã§æ±ãããã³ã¬ã¯ã·ã§ã³ã®æ´æ°ã"
+"ãããããããã¶ã¤ã³ããã Hibernate ã®ãã¡ã¤ã³ã¢ãã«ã§ã¯ãé常ãã£ã¨ãå¤ãã³"
+"ã¬ã¯ã·ã§ã³ã¯äºå®ä¸ <literal>inverse=\"true\"</literal> ãæå®ããä¸å¯¾å¤é¢é£ã§"
+"ãããããã®é¢é£ã§ã¯ãæ´æ°ã¯å¤å¯¾ä¸ã®é¢é£ç«¯ã§æ±ãããã³ã¬ã¯ã·ã§ã³ã®æ´æ°ã"
"ãã©ã¼ãã³ã¹ã®åé¡ã¯å½ã¦ã¯ã¾ãã¾ããã"
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
-msgstr "inverseã³ã¬ã¯ã·ã§ã³ã«ãã£ã¨ãæé©ãªbagã¨list"
+msgstr "inverse ã³ã¬ã¯ã·ã§ã³ã«ãã£ã¨ãæé©ãª bag 㨠list"
#. Tag: para
-#: performance.xml:1133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
"more performant than sets. For a collection with <literal>inverse=\"true\"</"
@@ -2204,35 +1855,22 @@
"literal> must always return true for a bag or <literal>List</literal>. This "
"can make the following common code much faster:"
msgstr ""
-"bagãè¦æ¾ãã¦ãã¾ãåã«ãbagï¼ããã¦listãï¼ãsetããããã£ã¨ããã©ã¼ãã³ã¹ã"
-"è¯ãç¹å¥ãªã±ã¼ã¹ã ç´¹ä»ãã¾ãã <literal>inverse=\"true\"</literal> ã®ã³ã¬ã¯"
-"ã·ã§ã³ï¼ä¸è¬çãª1対å¤é¢é£ã®ä½¿ãæ¹ãªã©ï¼ã§ã bagã®è¦ç´ ãåæåï¼ãã§ããï¼ãã"
-"å¿
è¦ãªãbagãlistã«è¦ç´ ã追å ã§ãã¾ãï¼ ãã㯠<literal>Collection.add()</"
-"literal> ã <literal>Collection.addAll()</literal> ã¯bagã <literal>List</"
-"literal> ã§ã¯å¸¸ã«trueãè¿ããªããã°ãªããªãããã§ã ï¼ <literal>Set</"
-"literal> ã¨ã¯ç°ãªãã¾ãï¼ã ããã¯ä»¥ä¸ã®å
±éå¦çãããéããããã¨ãã§ãã¾"
-"ãã"
+"bag ãè¦æ¾ãã¦ãã¾ãåã«ã bag ï¼ãã㦠list ãï¼ã set ããããã£ã¨ããã©ã¼"
+"ãã³ã¹ãè¯ãç¹å¥ãªã±ã¼ã¹ãç´¹ä»ãã¾ãã <literal>inverse=\"true\"</literal> ã®"
+"ã³ã¬ã¯ã·ã§ã³ï¼ä¸è¬çãªä¸å¯¾å¤é¢é£ã®ä½¿ãæ¹ãªã©ï¼ã§ã bag ã®è¦ç´ ãåæåï¼ãã§ã"
+"ãï¼ããå¿
è¦ãªã bag ã list ã«è¦ç´ ã追å ã§ãã¾ãããã㯠"
+"<literal>Collection.add()</literal> ã <literal>Collection.addAll()</"
+"literal> 㯠bag ã <literal>List</literal> ã§ã¯å¸¸ã« true ãè¿ããªããã°ãªããª"
+"ãããã§ã ï¼ <literal>Set</literal> ã¨ã¯ç°ãªãã¾ãï¼ãããã¯ä»¥ä¸ã®å
±éå¦çã"
+"ããéããããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
msgstr "䏿¬åé¤"
#. Tag: para
-#: performance.xml:1150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
"inefficient. Hibernate knows not to do that in the case of an newly-empty "
@@ -2240,14 +1878,13 @@
"this case, Hibernate will issue a single <literal>DELETE</literal>."
msgstr ""
"æã
ãã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ãä¸ã¤ä¸ã¤åé¤ãããã¨ã¯æ¥µãã¦éå¹ççã«ãªããã¨ãã"
-"ãã¾ãã Hibernateã¯æãã§ã¯ãªãã®ã§ãæ°ãã空ã®ã³ã¬ã¯ã·ã§ã³ã®å ´å"
+"ãã¾ãã Hibernate ã¯æãã§ã¯ãªãã®ã§ãæ°ãã空ã®ã³ã¬ã¯ã·ã§ã³ã®å ´å"
"ï¼ <literal>list.clear()</literal> ãå¼ã³åºããå ´åãªã©ï¼ã§ã¯ããããã¹ãã§ãª"
-"ããã¨ãç¥ã£ã¦ãã¾ãããã®å ´åã¯ãHibernate㯠<literal>DELETE</literal> ãä¸"
-"åçºè¡ãã¦ãããã§ãã¹ã¦çµããã¾ãï¼"
+"ããã¨ãç¥ã£ã¦ãã¾ãããã®å ´åã¯ã Hibernate 㯠<literal>DELETE</literal> ã"
+"ä¸åçºè¡ãã¦ãããã§ãã¹ã¦çµããã¾ãã"
#. Tag: para
-#: performance.xml:1157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
@@ -2255,63 +1892,57 @@
"collection is a bag. This is certainly desirable."
msgstr ""
"ãµã¤ãº20ã®ã³ã¬ã¯ã·ã§ã³ã«ä¸ã¤ã®è¦ç´ ã追å ããããããäºã¤ã®è¦ç´ ãåé¤ããã¨ã"
-"ã¾ãã Hibernateã¯ä¸ã¤ã® <literal>INSERT</literal> æã¨äºã¤ã® "
-"<literal>DELETE</literal> æãçºè¡ãã¾ã ï¼ã³ã¬ã¯ã·ã§ã³ãbagã§ãªããã°ï¼ãã"
-"ãã¯ç¢ºãã«æã¾ããåä½ã§ãã"
+"ã¾ãã Hibernate ã¯ä¸ã¤ã® <literal>INSERT</literal> æã¨äºã¤ã® "
+"<literal>DELETE</literal> æãçºè¡ãã¾ã ï¼ã³ã¬ã¯ã·ã§ã³ã bag ã§ãªããã°ï¼ã"
+"ããã¯ç¢ºãã«æã¾ããåä½ã§ãã"
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
"thee new elements. There are two possible ways to proceed"
msgstr ""
"ãããã18åã®è¦ç´ ãåé¤ãã¦2ã¤ãæ®ãããããã3ã¤æ°ããè¦ç´ ã追å ããã¨ãã¾"
-"ãã ãã®ã¨ãäºã¤ã®æ¹æ³ãããã¾ãã"
+"ãããã®ã¨ãäºã¤ã®æ¹æ³ãããã¾ãã"
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
msgstr "18è¡ãä¸ã¤ä¸ã¤åé¤ãã¦ã3è¡ã追å ãã"
#. Tag: para
-#: performance.xml:1173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
"all five current elements one by one"
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³å
¨ä½ãåé¤ï¼ <literal>DELETE</literal> ã®SQLãä¸åï¼ããããã¦5ã¤"
-"ã®è¦ç´ ãã¹ã¦ã ï¼ä¸ã¤ãã¤ï¼è¿½å ãã"
+"ã³ã¬ã¯ã·ã§ã³å
¨ä½ãåé¤ï¼ <literal>DELETE</literal> ã® SQL ãä¸åï¼ããããã¦5"
+"ã¤ã®è¦ç´ ãã¹ã¦ãï¼ä¸ã¤ãã¤ï¼è¿½å ãã"
#. Tag: para
-#: performance.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
"probably be undesirable for Hibernate to be that intuitive as such behavior "
"might confuse database triggers, etc."
msgstr ""
-"Hibernateã¯ãã®å ´åã«2çªç®ã®æ¹æ³ãããéãã ããã¨ãããã»ã©è³¢ãã¯ããã¾ã"
-"ãã ï¼ããã¦Hibernateããã®ããã«è³¢ããã¨ãæã¾ãããªãã§ãããããã®ãããª"
-"æ¯ãèã㯠ãã¼ã¿ãã¼ã¹ã®ããªã¬ãªã©ãæ··ä¹±ãããããããã¾ãããï¼"
+"Hibernate ã¯ãã®å ´åã«2çªç®ã®æ¹æ³ãããéãã ããã¨ãããã»ã©è³¢ãã¯ããã¾ã"
+"ããï¼ãã㦠Hibernate ããã®ããã«è³¢ããã¨ãæã¾ãããªãã§ãããããã®ãããª"
+"æ¯ãèãã¯ãã¼ã¿ãã¼ã¹ã®ããªã¬ãªã©ãæ··ä¹±ãããããããã¾ãããï¼"
#. Tag: para
-#: performance.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
"time by discarding (i.e. dereferencing) the original collection and "
"returning a newly instantiated collection with all the current elements."
msgstr ""
"幸ãã«ããå
ã®ã³ã¬ã¯ã·ã§ã³ãæ¨ã¦ï¼ã¤ã¾ãåç
§ãããã¦ï¼ãç¾å¨ã®è¦ç´ ããã¹ã¦æ"
-"ã¤æ°ããã³ã¬ã¯ã·ã§ã³ã® ã¤ã³ã¹ã¿ã³ã¹ãè¿ããã¨ã§ããã¤ã§ããã®æ¯ãèãï¼2çªç®"
-"ã®æ¦ç¥ï¼ãå¼·å¶ãããã¨ãåºæ¥ã¾ãã æã«ããã¯ã¨ã¦ã便å©ã§å¼·åã§ãã"
+"ã¤æ°ããã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ã¹ã¿ã³ã¹ãè¿ããã¨ã§ããã¤ã§ããã®æ¯ãèãï¼2çªç®ã®"
+"æ¦ç¥ï¼ãå¼·å¶ãããã¨ãåºæ¥ã¾ããæã«ããã¯ã¨ã¦ã便å©ã§å¼·åã§ãã"
#. Tag: para
-#: performance.xml:1190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
"\"</literal>."
@@ -2320,13 +1951,11 @@
"ã³ã«ã¯è¡ãã¾ããã"
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
msgstr "ããã©ã¼ãã³ã¹ã®ã¢ãã¿ãªã³ã°"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2335,17 +1964,15 @@
"<literal>SessionFactory</literal>."
msgstr ""
"æé©åã¯ã¢ãã¿ãªã³ã°ãããã©ã¼ãã³ã¹ãç¤ºãæ°å¤ããªããã°ååã«è¡ãã¾ããã "
-"Hibernateã¯å
é¨å¦çã®ãã¹ã¦ã®ç¯å²ã®æ°å¤ãæä¾ãã¾ãã Hibernateã®çµ±è¨æ
å ±ã¯ "
-"<literal>SessionFactory</literal> åä½ã§åå¾å¯è½ã§ãã"
+"Hibernate ã¯å
é¨å¦çã®ãã¹ã¦ã®ç¯å²ã®æ°å¤ãæä¾ãã¾ãã Hibernate ã®çµ±è¨æ
å ±"
+"㯠<literal>SessionFactory</literal> åä½ã§åå¾å¯è½ã§ãã"
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
-msgstr "SessionFactoryã®ã¢ãã¿ãªã³ã°"
+msgstr "SessionFactory ã®ã¢ãã¿ãªã³ã°"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
@@ -2353,58 +1980,26 @@
"and read or display the <literal>Statistics</literal> yourself."
msgstr ""
"<literal>SessionFactory</literal> ã®ã¡ããªã¯ã¹ã«ã¢ã¯ã»ã¹ããã«ã¯2ã¤ã®æ¹æ³ãã"
-"ãã¾ãã æåã®æ¹æ³ã¯ã <literal>sessionFactory.getStatistics()</literal> ã"
-"å¼ã³åºãã èªåã§ <literal>Statistics</literal> ã®èªã¿è¾¼ã¿ã表示ãè¡ãã¾ãã"
+"ãã¾ããæåã®æ¹æ³ã¯ã <literal>sessionFactory.getStatistics()</literal> ãå¼"
+"ã³åºããèªåã§ <literal>Statistics</literal> ã®èªã¿è¾¼ã¿ã表示ãè¡ãã¾ãã"
#. Tag: para
-#: performance.xml:1216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
"<literal>StatisticsService</literal> MBean. You can enable a single MBean "
"for all your <literal>SessionFactory</literal> or one per factory. See the "
"following code for minimalistic configuration examples:"
msgstr ""
-"<literal>StatisticsService</literal> MBeanãæå¹ã«ãã¦ããã°ãHibernateã¯JMX"
-"ã使ã£ã¦ ã¡ããªã¯ã¹ãçºè¡ãããã¨ãã§ãã¾ãã1ã¤ã®MBeanããã¹ã¦ã® "
-"<literal>SessionFactory</literal> ã«å¯¾ãã¦æå¹ã«ããããSessionFactoryãã¨ã«"
-"ä¸ã¤ã®MBeanãæå¹ã«ãããã¨ãåºæ¥ã¾ãã æå°éã®è¨å®ä¾ã§ãã以ä¸ã®ã³ã¼ããè¦"
-"ã¦ãã ããã"
+"<literal>StatisticsService</literal> MBean ãæå¹ã«ãã¦ããã°ã Hibernate 㯠"
+"JMX ã使ã£ã¦ã¡ããªã¯ã¹ãçºè¡ãããã¨ãã§ãã¾ãã1ã¤ã® MBean ããã¹ã¦ã® "
+"<literal>SessionFactory</literal> ã«å¯¾ãã¦æå¹ã«ãããã SessionFactory ãã¨"
+"ã«ä¸ã¤ã® MBean ãæå¹ã«ãããã¨ãåºæ¥ã¾ããæå°éã®è¨å®ä¾ã§ãã以ä¸ã®ã³ã¼ãã"
+"è¦ã¦ãã ãã:"
-#. Tag: programlisting
-#: performance.xml:1223
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1228
-#, fuzzy, no-c-format
-msgid ""
"You can activate and deactivate the monitoring for a "
"<literal>SessionFactory</literal>:"
msgstr ""
@@ -2412,7 +2007,6 @@
"ã¨ãåºæ¥ã¾ãã"
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
@@ -2422,7 +2016,6 @@
"<literal>false</literal> ã«ãã¾ã"
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
@@ -2433,26 +2026,23 @@
"ã³åºãã¾ã"
#. Tag: para
-#: performance.xml:1247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
"literal> method. A summary can be sent to a logger (info level) using the "
"<literal>logSummary()</literal> method."
msgstr ""
"çµ±è¨ã¯ <literal>clear()</literal> ã¡ã½ããã使ã£ã¦æåã§ãªã»ãããããã¨ãåº"
-"æ¥ã¾ãã ãµããªã¯ <literal>logSummary()</literal> ã¡ã½ããã使ã£ã¦loggerã«é"
-"ããã¨ãåºæ¥ã¾ã ï¼infoã¬ãã«ã§ãï¼ã"
+"æ¥ã¾ãããµããªã¯ <literal>logSummary()</literal> ã¡ã½ããã使ã£ã¦ logger ã«é"
+"ããã¨ãåºæ¥ã¾ãï¼info ã¬ãã«ã§ãï¼ã"
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
msgstr "ã¡ããªã¯ã¹"
#. Tag: para
-#: performance.xml:1258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
"specialized information that is only relevant in certain scenarios. All "
@@ -2460,30 +2050,27 @@
"interface API, in three categories:"
msgstr ""
"å¤ãã®ãã®ãããã¾ãããã¹ã¦ã®ä½¿ç¨å¯è½ãªã«ã¦ã³ã¿ã¯ <literal>Statistics</"
-"literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®APIã«æ¸ããã¦ããã3ã¤ã®åé¡ãããã¾ãã"
+"literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã® API ã«æ¸ããã¦ããã3ã¤ã®åé¡ãããã¾ã:"
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
"number of open sessions, retrieved JDBC connections, etc."
msgstr ""
-"ã¡ããªã¯ã¹ã¯ä¸è¬ç㪠<literal>Session</literal> ã®ä½¿ãæ¹ã¨é¢ä¿ãã¦ãã¾ãã "
-"ãªã¼ãã³ããã»ãã·ã§ã³ã®æ°ãJDBCã³ãã¯ã·ã§ã³ã¨é¢é£ãã¦ããã®ã¨åãã§ãã"
+"ã¡ããªã¯ã¹ã¯ä¸è¬ç㪠<literal>Session</literal> ã®ä½¿ãæ¹ã¨é¢ä¿ãã¦ãã¾ãã"
+"ãªã¼ãã³ããã»ãã·ã§ã³ã®æ°ã JDBC ã³ãã¯ã·ã§ã³ã¨é¢é£ãã¦ããã®ã¨åãã§ãã"
#. Tag: para
-#: performance.xml:1271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
"(aka global metrics)."
msgstr ""
-"ã¡ããªã¯ã¹ã¯è¦ç´ ãã³ã¬ã¯ã·ã§ã³ãã¯ã¨ãªããã£ãã·ã¥ãªã©å
¨ä½ã« é¢ä¿ãã¦ãã¾ã"
+"ã¡ããªã¯ã¹ã¯è¦ç´ ãã³ã¬ã¯ã·ã§ã³ãã¯ã¨ãªããã£ãã·ã¥ãªã©å
¨ä½ã«é¢ä¿ãã¦ãã¾ã"
"ï¼å¥åã¯ã°ãã¼ãã«ã¡ããªã¯ã¹ã§ãï¼ã"
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
@@ -2493,8 +2080,7 @@
"é¢ä¿ãã¦ãã¾ãã"
#. Tag: para
-#: performance.xml:1284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
"collections and queries, and the average time a query needs. Be aware that "
@@ -2503,13 +2089,12 @@
"to 10 seconds."
msgstr ""
"ä¾ã¨ãã¦ããã£ãã·ã¥ã®ããããããããã¹ããè¦ç´ ãã³ã¬ã¯ã·ã§ã³ãã¯ã¨ãªã®å²"
-"åãã¯ã¨ãªã®å®è¡ã« å¿
è¦ãªå¹³åæéã確èªã§ãã¾ããããªç§ã®æ°å¤ã¯Javaã®è¿ä¼¼ãå"
-"ãããã¨ã«æ³¨æãã¦ãã ããã Hibernateã¯JVMã®ç²¾åº¦ã«å¶éããããã©ãããã©ã¼ã "
-"ã«ãã£ã¦ã¯10ç§åä½ã§ããæ£ç¢ºã§ãªãããããã¾ããã"
+"åãã¯ã¨ãªã®å®è¡ã«å¿
è¦ãªå¹³åæéã確èªã§ãã¾ããããªç§ã®æ°å¤ã¯ Java ã®è¿ä¼¼ã"
+"åãããã¨ã«æ³¨æãã¦ãã ããã Hibernate 㯠JVM ã®ç²¾åº¦ã«å¶éããããã©ãã"
+"ãã©ã¼ã ã«ãã£ã¦ã¯10ç§åä½ã§ããæ£ç¢ºã§ãªãããããã¾ããã"
#. Tag: para
-#: performance.xml:1291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
"particular entity, collection, cache region, etc.). You can access the "
@@ -2521,41 +2106,18 @@
"literal> API Javadoc for more information. The following code is a simple "
"example:"
msgstr ""
-"åç´ãªgetterã¯ã°ãã¼ãã«ã¡ããªã¯ã¹ï¼ããªãã¡ç¹å®ã®ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§"
-"ã³ããã£ãã·ã¥é åãªã©ã«ç¸ãããªãï¼ ã«ã¢ã¯ã»ã¹ããããã«ä½¿ãã¾ããç¹å®ã®ã¨ã³"
-"ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ããã£ãã·ã¥é åã®ã¡ããªã¯ã¹ã¯ã ãããã®ååããã¯ã¨ãª"
-"ã®HQLãSQL表ç¾ã«ãã£ã¦ã¢ã¯ã»ã¹ãããã¨ãåºæ¥ã¾ããããã«è©³ããæ
å ±ã¯ã "
+"åç´ãª getter ã¯ã°ãã¼ãã«ã¡ããªã¯ã¹ï¼ããªãã¡ç¹å®ã®ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§"
+"ã³ããã£ãã·ã¥é åãªã©ã«ç¸ãããªãï¼ã«ã¢ã¯ã»ã¹ããããã«ä½¿ãã¾ããç¹å®ã®ã¨ã³"
+"ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ããã£ãã·ã¥é åã®ã¡ããªã¯ã¹ã¯ããããã®ååããã¯ã¨ãª"
+"ã® HQL ã SQL 表ç¾ã«ãã£ã¦ã¢ã¯ã»ã¹ãããã¨ãåºæ¥ã¾ããããã«è©³ããæ
å ±ã¯ã "
"<literal>Statistics</literal> ã <literal>EntityStatistics</literal> ã "
"<literal>CollectionStatistics</literal> ã "
"<literal>SecondLevelCacheStatistics</literal> ã <literal>QueryStatistics</"
-"literal> APIã®javadocã åç
§ãã¦ãã ããã以ä¸ã®ã³ã¼ãã¯ç°¡åãªä¾ã§ãã"
+"literal> API ã® javadoc ãåç
§ãã¦ãã ããã以ä¸ã®ã³ã¼ãã¯ç°¡åãªä¾ã§ã:"
-#. Tag: programlisting
-#: performance.xml:1301
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1303
-#, fuzzy, no-c-format
-msgid ""
"You can work on all entities, collections, queries and region caches, by "
"retrieving the list of names of entities, collections, queries and region "
"caches using the following methods: <literal>getQueries()</literal>, "
@@ -2565,44 +2127,482 @@
"ãã¹ã¦ã®ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ãã¯ã¨ãªããã£ãã·ã¥é åã«å¯¾ãã¦è¡ãå ´å"
"ã¯ã <literal>getQueries()</literal> ã <literal>getEntityNames()</"
"literal>ã <literal>getCollectionRoleNames()</literal> ã "
-"<literal>getSecondLevelCacheRegionNames()</literal> ã¡ã½ããã§ ããããã®åå"
+"<literal>getSecondLevelCacheRegionNames()</literal> ã¡ã½ããã§ããããã®åå"
"ã®ãªã¹ããåå¾ãããã¨ãåºæ¥ã¾ãã"
#~ msgid ""
-#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
-#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
-#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
-#~ "<literal>Cat</literal> and <literal>DomesticCat</literal> may be returned "
-#~ "by <literal>load()</literal> or <literal>iterate()</literal>. (Note that "
-#~ "<literal>list()</literal> does not usually return proxies.)"
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
#~ msgstr ""
-#~ "<literal>CatImpl</literal> 㯠<literal>Cat</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®"
-#~ "è£
ããã®ã«å¯¾ãã <literal>DomesticCatImpl</literal> 㯠"
-#~ "<literal>DomesticCat</literal> ãå®è£
ãã¾ãã ããã¨ã <literal>load()</"
-#~ "literal> ã <literal>iterate()</literal> ã¯ã <literal>Cat</literal> ã "
-#~ "<literal>DomesticCat</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã®ãããã·ã è¿ãã¾ãã"
-#~ "ï¼ <literal>list()</literal> ã¯é常ã¯ãããã·ãè¿ããªããã¨ã«æ³¨æãã¦ãã "
-#~ "ãããï¼"
+#~ "ãã®è¨å®ã¯æ°ãã«äºã¤ã®ãã£ãã·ã¥é åã®ä½æãè¡ãã¾ããä¸ã¤ã¯ã¯ã¨ãªã®ãªã¶ã«"
+#~ "ãã»ããã®ãã£ãã·ã¥ï¼ <literal>org.hibernate.cache.StandardQueryCache</"
+#~ "literal> ï¼ãä¿æãããã1ã¤ã¯ã¯ã¨ãªå¯è½ãªãã¼ãã«ã¸ã®ææ°ã®æ´æ°ã¿ã¤ã ã¹ã¿"
+#~ "ã³ã ï¼ <literal>org.hibernate.cache.UpdateTimestampsCache</literal> ï¼ã"
+#~ "ä¿æãã¾ããã¯ã¨ãªãã£ãã·ã¥ã¯ãªã¶ã«ãã»ããã®å®éã®è¦ç´ ã®ç¶æ
ã¯ãã£ãã·ã¥"
+#~ "ããªããã¨ã«æ³¨æãã¦ãã ããããã£ãã·ã¥ããã®ã¯èå¥åã®å¤ã¨ãå¤åã®çµæã®"
+#~ "ã¿ã§ãããã®ãããã¯ã¨ãªãã£ãã·ã¥ã¯å¸¸ã«äºæ¬¡ãã£ãã·ã¥ã¨ä¸ç·ã«ä½¿ãã¹ãã§"
+#~ "ãã"
+#, fuzzy
#~ msgid ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
+#~ "<![CDATA[s = sessions.openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ " \n"
+#~ "User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
+#~ " .setString(\"userName\", userName).uniqueResult();\n"
+#~ "Map permissions = u.getPermissions();\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();\n"
+#~ "\n"
+#~ "Integer accessLevel = (Integer) permissions.get(\"accounts\"); // "
+#~ "Error!]]>"
#~ msgstr ""
-#~ "ã³ã¬ã¯ã·ã§ã³ã®è©±é¡ã«ã¯ãã§ã«å¤ãã®æéã使ãã¾ããããã®ç¯ã§ã¯ ã³ã¬ã¯ã·ã§"
-#~ "ã³ãå®è¡æã«ã©ã®ããã«æ¯èããã«ã¤ãã¦ã®è©±é¡ã2ã3åãä¸ãã¾ãã"
+#~ "s = sessions.openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ " \n"
+#~ "User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
+#~ " .setString(\"userName\", userName).uniqueResult();\n"
+#~ "Map permissions = u.getPermissions();\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();\n"
+#~ "\n"
+#~ "Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!"
+#, fuzzy
#~ msgid ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
+#~ "<![CDATA[<set name=\"permissions\" \n"
+#~ " fetch=\"join\">\n"
+#~ " <key column=\"userId\"/>\n"
+#~ " <one-to-many class=\"Permission\"/>\n"
+#~ "</set]]>"
#~ msgstr ""
-#~ "TODO: ããã¯æå³ãããã¾ãããæåã®ã±ã¼ã¹ã¯ãMBeanãç´æ¥å¾©å
ãã¦ä½¿ç¨ãã¾"
-#~ "ãã2çªç®ã®ã±ã¼ã¹ã¯ã 使ãåã«session factoryãæã£ã¦ããJNDIåãæ¸¡ããªã"
-#~ "ãã°ãªãã¾ããã <literal>hibernateStatsBean.setSessionFactoryJNDIName"
-#~ "(\"my/JNDI/Name\")</literal> ã使ã£ã¦ãã ããã"
+#~ "<set name=\"permissions\" \n"
+#~ " fetch=\"join\">\n"
+#~ " <key column=\"userId\"/>\n"
+#~ " <one-to-many class=\"Permission\"/>\n"
+#~ "</set"
-#~ msgid "yes"
-#~ msgstr "yes"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
+#~ msgstr "<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[User user = (User) session.createCriteria(User.class)\n"
+#~ " .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
+#~ " .add( Restrictions.idEq(userId) )\n"
+#~ " .uniqueResult();]]>"
+#~ msgstr ""
+#~ "User user = (User) session.createCriteria(User.class)\n"
+#~ " .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
+#~ " .add( Restrictions.idEq(userId) )\n"
+#~ " .uniqueResult();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Cat\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
+#~ "proxy (does not hit the db)\n"
+#~ "if ( cat.isDomesticCat() ) { // hit the db to initialize "
+#~ "the proxy\n"
+#~ " DomesticCat dc = (DomesticCat) cat; // Error!\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "Cat cat = (Cat) session.load(Cat.class, id); // instantiate a proxy "
+#~ "(does not hit the db)\n"
+#~ "if ( cat.isDomesticCat() ) { // hit the db to initialize "
+#~ "the proxy\n"
+#~ " DomesticCat dc = (DomesticCat) cat; // Error!\n"
+#~ " ....\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
+#~ "instantiate a Cat proxy\n"
+#~ "DomesticCat dc = \n"
+#~ " (DomesticCat) session.load(DomesticCat.class, id); // acquire "
+#~ "new DomesticCat proxy!\n"
+#~ "System.out.println(cat==dc); // false]]>"
+#~ msgstr ""
+#~ "Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
+#~ "Cat proxy\n"
+#~ "DomesticCat dc = \n"
+#~ " (DomesticCat) session.load(DomesticCat.class, id); // acquire "
+#~ "new DomesticCat proxy!\n"
+#~ "System.out.println(cat==dc); // false"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
+#~ "System.out.println( dc.getWeight() ); // 11.0]]>"
+#~ msgstr ""
+#~ "cat.setWeight(11.0); // hit the db to initialize the proxy\n"
+#~ "System.out.println( dc.getWeight() ); // 11.0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"CatImpl\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
+#~ "Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
+#~ "name='fritz'\").iterate();\n"
+#~ "Cat fritz = (Cat) iter.next();]]>"
+#~ msgstr ""
+#~ "Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
+#~ "Iterator iter = session.iterate(\"from CatImpl as cat where cat."
+#~ "name='fritz'\");\n"
+#~ "Cat fritz = (Cat) iter.next();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" )."
+#~ "list().get(0) ).intValue()]]>"
+#~ msgstr ""
+#~ "( (Integer) s.createFilter( collection, \"select count(*)\" ).list().get"
+#~ "(0) ).intValue()"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
+#~ "setMaxResults(10).list();]]>"
+#~ msgstr ""
+#~ "s.createFilter( lazyCollection, \"\").setFirstResult(0).setMaxResults(10)."
+#~ "list();"
+
+#, fuzzy
+#~ msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
+#~ msgstr "<class name=\"Person\" batch-size=\"10\">...</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <set name=\"cats\" batch-size=\"3\">\n"
+#~ " ...\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <set name=\"cats\" batch-size=\"3\">\n"
+#~ " ...\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Document\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
+#~ " <property name=\"summary\" not-null=\"true\" length=\"200\" lazy="
+#~ "\"true\"/>\n"
+#~ " <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true"
+#~ "\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Document\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
+#~ " <property name=\"summary\" not-null=\"true\" length=\"200\" lazy="
+#~ "\"true\"/>\n"
+#~ " <property name=\"text\" not-null=\"true\" length=\"2000\" lazy="
+#~ "\"true\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
+#~ " <taskdef name=\"instrument\" classname=\"org.hibernate.tool."
+#~ "instrument.InstrumentTask\">\n"
+#~ " <classpath path=\"${jar.path}\"/>\n"
+#~ " <classpath path=\"${classes.dir}\"/>\n"
+#~ " <classpath refid=\"lib.class.path\"/>\n"
+#~ " </taskdef>\n"
+#~ "\n"
+#~ " <instrument verbose=\"true\">\n"
+#~ " <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
+#~ " <include name=\"*.class\"/>\n"
+#~ " </fileset>\n"
+#~ " </instrument>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"instrument\" depends=\"compile\">\n"
+#~ " <taskdef name=\"instrument\" classname=\"org.hibernate.tool."
+#~ "instrument.InstrumentTask\">\n"
+#~ " <classpath path=\"${jar.path}\"/>\n"
+#~ " <classpath path=\"${classes.dir}\"/>\n"
+#~ " <classpath refid=\"lib.class.path\"/>\n"
+#~ " </taskdef>\n"
+#~ "\n"
+#~ " <instrument verbose=\"true\">\n"
+#~ " <fileset dir=\"${testclasses.dir}/org/hibernate/auction/"
+#~ "model\">\n"
+#~ " <include name=\"*.class\"/>\n"
+#~ " </fileset>\n"
+#~ " </instrument>\n"
+#~ "</target>"
+
+#~ msgid "<entry>yes</entry>"
+#~ msgstr "<entry>yes</entry>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<cache \n"
+#~ " usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
+#~ " region=\"RegionName\"\n"
+#~ " include=\"all|non-lazy\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<cache \n"
+#~ " usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
+#~ " region=\"RegionName\"\n"
+#~ " include=\"all|non-lazy\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
+#~ " <cache usage=\"read-only\"/>\n"
+#~ " ....\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Immutable\" mutable=\"false\">\n"
+#~ " <cache usage=\"read-only\"/>\n"
+#~ " ....\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Cat\" .... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"kittens\" ... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Cat\" .... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"kittens\" ... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\")."
+#~ "scroll(); //a huge result set\n"
+#~ "while ( cats.next() ) {\n"
+#~ " Cat cat = (Cat) cats.get(0);\n"
+#~ " doSomethingWithACat(cat);\n"
+#~ " sess.evict(cat);\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll(); //"
+#~ "a huge result set\n"
+#~ "while ( cats.next() ) {\n"
+#~ " Cat cat = (Cat) cats.get(0);\n"
+#~ " doSomethingWithACat(cat);\n"
+#~ " sess.evict(cat);\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular "
+#~ "Cat\n"
+#~ "sessionFactory.evict(Cat.class); //evict all Cats\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a "
+#~ "particular collection of kittens\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
+#~ "collections]]>"
+#~ msgstr ""
+#~ "sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
+#~ "sessionFactory.evict(Cat.class); //evict all Cats\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a "
+#~ "particular collection of kittens\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
+#~ "collections"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
+#~ " .getSecondLevelCacheStatistics(regionName)\n"
+#~ " .getEntries();]]>"
+#~ msgstr ""
+#~ "Map cacheEntries = sessionFactory.getStatistics()\n"
+#~ " .getSecondLevelCacheStatistics(regionName)\n"
+#~ " .getEntries();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[hibernate.generate_statistics true\n"
+#~ "hibernate.cache.use_structured_entries true]]>"
+#~ msgstr ""
+#~ "hibernate.generate_statistics true\n"
+#~ "hibernate.cache.use_structured_entries true"
+
+#, fuzzy
+#~ msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+#~ msgstr "hibernate.cache.use_query_cache true"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog."
+#~ "blogger = :blogger\")\n"
+#~ " .setEntity(\"blogger\", blogger)\n"
+#~ " .setMaxResults(15)\n"
+#~ " .setCacheable(true)\n"
+#~ " .setCacheRegion(\"frontpages\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List blogs = sess.createQuery(\"from Blog blog where blog.blogger = :"
+#~ "blogger\")\n"
+#~ " .setEntity(\"blogger\", blogger)\n"
+#~ " .setMaxResults(15)\n"
+#~ " .setCacheable(true)\n"
+#~ " .setCacheRegion(\"frontpages\")\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
+#~ "Child c = new Child();\n"
+#~ "c.setParent(p);\n"
+#~ "p.getChildren().add(c); //no need to fetch the collection!\n"
+#~ "sess.flush();]]>"
+#~ msgstr ""
+#~ "Parent p = (Parent) sess.load(Parent.class, id);\n"
+#~ "Child c = new Child();\n"
+#~ "c.setParent(p);\n"
+#~ "p.getChildren().add(c); //no need to fetch the collection!\n"
+#~ "sess.flush();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// MBean service registration for a specific SessionFactory\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "stats.setSessionFactory(sessionFactory); // Bind the stats to a "
+#~ "SessionFactory\n"
+#~ "server.registerMBean(stats, on); // Register the Mbean on the server]]>"
+#~ msgstr ""
+#~ "// MBean service registration for a specific SessionFactory\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "stats.setSessionFactory(sessionFactory); // Bind the stats to a "
+#~ "SessionFactory\n"
+#~ "server.registerMBean(stats, on); // Register the Mbean on the server"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// MBean service registration for all SessionFactory's\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"all\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "server.registerMBean(stats, on); // Register the MBean on the server]]>"
+#~ msgstr ""
+#~ "// MBean service registration for all SessionFactory's\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"all\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "server.registerMBean(stats, on); // Register the MBean on the server"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics"
+#~ "();\n"
+#~ "\n"
+#~ "double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
+#~ "double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
+#~ "double queryCacheHitRatio =\n"
+#~ " queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
+#~ "\n"
+#~ "log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
+#~ "\n"
+#~ "EntityStatistics entityStats =\n"
+#~ " stats.getEntityStatistics( Cat.class.getName() );\n"
+#~ "long changes =\n"
+#~ " entityStats.getInsertCount()\n"
+#~ " + entityStats.getUpdateCount()\n"
+#~ " + entityStats.getDeleteCount();\n"
+#~ "log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
+#~ msgstr ""
+#~ "Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
+#~ "\n"
+#~ "double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
+#~ "double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
+#~ "double queryCacheHitRatio =\n"
+#~ " queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
+#~ "\n"
+#~ "log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
+#~ "\n"
+#~ "EntityStatistics entityStats =\n"
+#~ " stats.getEntityStatistics( Cat.class.getName() );\n"
+#~ "long changes =\n"
+#~ " entityStats.getInsertCount()\n"
+#~ " + entityStats.getUpdateCount()\n"
+#~ " + entityStats.getDeleteCount();\n"
+#~ "log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-04 13:58+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
msgstr "æ°¸ç¶ã¯ã©ã¹"
#. Tag: para
-#: persistent_classes.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
"of the business problem (e.g. Customer and Order in an E-commerce "
@@ -26,15 +27,14 @@
"in the persistent state. For example, an instance can instead be transient "
"or detached."
msgstr ""
-"æ°¸ç¶ã¯ã©ã¹ã¯ãã¸ãã¹ä¸ã®åé¡ã®ã¨ã³ãã£ãã£ï¼ä¾ãã°ãEã³ãã¼ã¹ã¢ããªã±ã¼ã·ã§ã³"
-"ã®é¡§å®¢ã注æï¼ ãå®è£
ããã¢ããªã±ã¼ã·ã§ã³ã®ã¯ã©ã¹ã§ãã æ°¸ç¶ã¯ã©ã¹ã®ãã¹ã¦ã®"
-"ã¤ã³ã¹ã¿ã³ã¹ãæ°¸ç¶ç¶æ
ã§ããã¨è¦ãªãããããã§ã¯ããã¾ããã ã¤ã³ã¹ã¿ã³ã¹ã¯é"
+"æ°¸ç¶ã¯ã©ã¹ã¯ãã¸ãã¹ä¸ã®åé¡ã®ã¨ã³ãã£ãã£ï¼ä¾ãã°ã E ã³ãã¼ã¹ã¢ããªã±ã¼ã·ã§"
+"ã³ã®é¡§å®¢ã注æï¼ ãå®è£
ããã¢ããªã±ã¼ã·ã§ã³ã®ã¯ã©ã¹ã§ããæ°¸ç¶ã¯ã©ã¹ã®ãã¹ã¦ã®"
+"ã¤ã³ã¹ã¿ã³ã¹ãæ°¸ç¶ç¶æ
ã§ããã¨è¦ãªãããããã§ã¯ããã¾ãããã¤ã³ã¹ã¿ã³ã¹ã¯é"
"ã«ä¸æçï¼transientï¼ã§ãã£ãããåé¢ç¶æ
ï¼detachedï¼ã§ãã£ããããããããã¾"
"ããã"
#. Tag: para
-#: persistent_classes.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
"as the Plain Old Java Object (POJO) programming model. However, none of "
@@ -42,114 +42,25 @@
"about the nature of your persistent objects. You can express a domain model "
"in other ways (using trees of <literal>Map</literal> instances, for example)."
msgstr ""
-"Plain Old Java Object (POJO)ããã°ã©ãã³ã°ã¢ãã«ã¨ãã¦ãç¥ããã ããã¤ãã®å"
-"ç´ãªã«ã¼ã«ã«å¾ããªããHibernateã¯æãããåãã¾ãã ããããããã®ã«ã¼ã«ã¯é£"
-"ãããã®ã§ã¯ããã¾ããã å®éHibernate3ã¯æ°¸ç¶ãªãã¸ã§ã¯ãã®æ§è³ªã«ã»ã¨ãã©ä½ã®"
-"åæãç½®ãã¦ãã¾ããã ãã¡ã¤ã³ã¢ãã«ã¯ä»ã®æ¹æ³ã§è¡¨ç¾ãããã¨ãã§ãã¾ãã ä¾"
+"Plain Old Java Object (POJO)ããã°ã©ãã³ã°ã¢ãã«ã¨ãã¦ãç¥ãããããã¤ãã®å"
+"ç´ãªã«ã¼ã«ã«å¾ããªãã Hibernate ã¯æãããåãã¾ããããããããã®ã«ã¼ã«ã¯é£"
+"ãããã®ã§ã¯ããã¾ãããå®é Hibernate3 ã¯æ°¸ç¶ãªãã¸ã§ã¯ãã®æ§è³ªã«ã»ã¨ãã©ä½"
+"ã®åæãç½®ãã¦ãã¾ããããã¡ã¤ã³ã¢ãã«ã¯ä»ã®æ¹æ³ã§è¡¨ç¾ãããã¨ãã§ãã¾ããä¾"
"ãã° <literal>Map</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ããªã¼ãä½¿ãæ¹æ³ãããã¾ãã"
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
-msgstr "åç´ãªPOJOã®ä¾"
+msgstr "åç´ãª POJO ã®ä¾"
#. Tag: para
-#: persistent_classes.xml:49
#, fuzzy, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
"example:"
-msgstr ""
-"ã»ã¨ãã©ã®Javaã¢ããªã±ã¼ã·ã§ã³ã«ã¯ãã³ç§ã®åç©ã表ç¾ããæ°¸ç¶ã¯ã©ã¹ãå¿
è¦ã§"
-"ãã"
+msgstr "以ä¸ã¯ãã³ç§ã®åç©ã表ç¾ããæ°¸ç¶ã¯ã©ã¹ã§ãã"
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
@@ -157,14 +68,12 @@
msgstr ""
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
msgstr "弿°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ãå®è£
ãã"
#. Tag: para
-#: persistent_classes.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
"must have a default constructor (which can be non-public) so that Hibernate "
@@ -173,21 +82,19 @@
"<emphasis>package</emphasis> visibility for runtime proxy generation in "
"Hibernate."
msgstr ""
-"<literal>Cat</literal> ã«ã¯å¼æ°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ãããã¾ãã Hibernateã "
-"<literal>Constructor.newInstance()</literal> ã使ã£ã¦æ°¸ç¶ã¯ã©ã¹ã® ã¤ã³ã¹ã¿ã³"
-"ã¹åãè¡ããããã«ããã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«ã¯ããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ ï¼publicã§"
-"ãªãã¦ãæ§ãã¾ããï¼ããªããã°ãªãã¾ããã Hibernateã®å®è¡æãããã·çæã®ã"
-"ãã«ãå°ãªãã¨ã <emphasis>package</emphasis> ã®å¯è¦æ§ãæã¤ããã©ã«ãã³ã³ã¹"
-"ãã©ã¯ã¿ãå¼·ããå§ããã¾ãã"
+"<literal>Cat</literal> ã«ã¯å¼æ°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ãããã¾ãã Hibernate ã "
+"<literal>Constructor.newInstance()</literal> ã使ã£ã¦æ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹"
+"åãè¡ããããã«ããã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«ã¯ããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ ï¼public ã§"
+"ãªãã¦ãæ§ãã¾ããï¼ ããªããã°ãªãã¾ããã Hibernate ã®å®è¡æãããã·çæã®"
+"ããã«ãå°ãªãã¨ã <emphasis>package</emphasis> ã®å¯è¦æ§ãæã¤ããã©ã«ãã³ã³"
+"ã¹ãã©ã¯ã¿ãå¼·ããå§ããã¾ãã"
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
msgstr "èå¥åããããã£ãç¨æããï¼ãªãã·ã§ã³ï¼"
#. Tag: para
-#: persistent_classes.xml:75
#, fuzzy, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
@@ -199,27 +106,26 @@
"types (see the section on composite identifiers later in the chapter.)"
msgstr ""
"<literal>Cat</literal> ã«ã¯ <literal>id</literal> ã¨ããããããã£ãããã¾"
-"ãã ãã®ããããã£ã¯ãã¼ã¿ãã¼ã¹ãã¼ãã«ã®ä¸»ãã¼ã«ã©ã ã¸ãããã³ã°ããã¾"
-"ãã ãã®ããããã£ã®ååã¯ä½ã§ãæ§ãã¾ããããåã¯ã©ã®ãããªããªããã£ãåã§"
-"ãã ããªããã£ãã®ãã©ããã¼ãåã§ãã<literal>java.lang.String</literal> "
-"ã <literal>java.util.Date</literal> ã§ãæ§ãã¾ããã ï¼ããã¬ã¬ã·ã¼ãã¼ã¿"
-"ãã¼ã¹ãã¼ãã«ãè¤åãã¼ãæã¤ãªãã°ã ä»è¿°ã¹ããããªåã®ããããã£ãæã¤ã¦ã¼"
-"ã¶å®ç¾©ã®ã¯ã©ã¹ã使ããã¨ããå¯è½ã§ãã å¾ã§è¤åèå¥åã®ç¯ãè¦ã¦ãã ãããï¼"
+"ãããã®ããããã£ã¯ãã¼ã¿ãã¼ã¹ãã¼ãã«ã®ä¸»ãã¼ã«ã©ã ã¸ãããã³ã°ããã¾ãã"
+"ãã®ããããã£ã®ååã¯ä½ã§ãæ§ãã¾ããããåã¯ã©ã®ãããªããªããã£ãåã§ãã"
+"ããªããã£ãã®ãã©ããã¼ãåã§ãã <literal>java.lang.String</literal> ã "
+"<literal>java.util.Date</literal> ã§ãæ§ãã¾ããã ï¼ããã¬ã¬ã·ã¼ãã¼ã¿ãã¼ã¹"
+"ãã¼ãã«ãè¤åãã¼ãæã¤ãªãã°ãä»è¿°ã¹ããããªåã®ããããã£ãæã¤ã¦ã¼ã¶ã¼å®"
+"義ã®ã¯ã©ã¹ã使ããã¨ããå¯è½ã§ããå¾ã§è¤åèå¥åã®ã»ã¯ã·ã§ã³ãè¦ã¦ãã ã"
+"ããï¼"
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
"Hibernate keep track of object identifiers internally. We do not recommend "
"this, however."
msgstr ""
-"èå¥åããããã£ã¯å³å¯ã«ã¯ãªãã·ã§ã³ã§ãã ãããçç¥ãã¦ãHibernateã«å
é¨ç"
-"ã«ãªãã¸ã§ã¯ãã®èå¥åã追跡ããããã¨ã¯å¯è½ã§ãã ãããããããã¯ãã¾ããã"
+"èå¥åããããã£ã¯å³å¯ã«ã¯ãªãã·ã§ã³ã§ãããããçç¥ãã¦ã Hibernate ã«å
é¨ç"
+"ã«ãªãã¸ã§ã¯ãã®èå¥åã追跡ããããã¨ã¯å¯è½ã§ããããããå§ãã¯ãã¾ããã"
#. Tag: para
-#: persistent_classes.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
"identifier property:"
@@ -228,71 +134,64 @@
"ãï¼"
#. Tag: para
-#: persistent_classes.xml:96
#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-"åé¢ãªãã¸ã§ã¯ãã®é£éçãªå追å ï¼ã«ã¹ã±ã¼ãæ´æ°ãã«ã¹ã±ã¼ããã¼ã¸ï¼ã <xref "
-"linkend=\"objectstate-transitive\"/> ãåç
§ãã¦ãã ããã"
+"åé¢ãªãã¸ã§ã¯ãã®é£éçãªå追å ï¼ã«ã¹ã±ã¼ãæ´æ°ãã«ã¹ã±ã¼ããã¼ã¸ï¼ - <xref "
+"linkend=\"objectstate-transitive\" />次ãåç
§ãã¦ãã ããã"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
-msgstr "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
+msgstr "<xref linkend=\"objectstate-transitive\" />"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
-msgstr "Session.merge()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
+msgstr "<literal>Session.merge()</literal>"
#. Tag: para
-#: persistent_classes.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
"persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
-"æ°¸ç¶ã¯ã©ã¹ã«ã¯ãä¸è²«ããååã®èå¥åããããã£ãå®ç¾©ãããã¨ããå§ããã¾ãã "
-"ããã«nullå¤ãåãã(ã¤ã¾ãããªããã£ãã§ã¯ãªã)åã使ã£ãæ¹ãããã§ãããã"
+"æ°¸ç¶ã¯ã©ã¹ã«ã¯ãä¸è²«ããååã®èå¥åããããã£ãå®ç¾©ãããã¨ããå§ããã¾ãã"
+"ããã« null å¤ãåãã(ã¤ã¾ãããªããã£ãã§ã¯ãªã)åã使ã£ãæ¹ãããã§ãã"
+"ãã"
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
-msgstr "finalã¯ã©ã¹ã«ããªãï¼ãªãã·ã§ã³ï¼"
+msgstr "final ã¯ã©ã¹ã«ããªãï¼ãªãã·ã§ã³ï¼"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
"the persistent class being either non-final, or the implementation of an "
"interface that declares all public methods."
msgstr ""
-"Hibernateã®ä¸å¿çãªç¹å¾´ã§ãã <emphasis>ãããã·</emphasis> ã¯ã æ°¸ç¶ã¯ã©ã¹ã"
-"finalã§ãªããã¨ãã¾ãã¯ã¡ã½ãããå
¨é¨publicã§å®£è¨ãã¦ãã ã¤ã³ã¿ã¼ãã§ã¤ã¹ã"
-"å®è£
ããã¦ãããã«ä¾åãã¦ãã¾ãã"
+"Hibernate ã®ä¸å¿çãªç¹å¾´ã§ãã <emphasis>ãããã·</emphasis> ã¯ãæ°¸ç¶ã¯ã©ã¹"
+"ã final ã§ãªããã¨ãã¾ãã¯ã¡ã½ãããå
¨é¨ public ã§å®£è¨ãã¦ããã¤ã³ã¿ã¼ãã§ã¼"
+"ã¹ãå®è£
ããã¦ãããã«ä¾åãã¦ãã¾ãã"
#. Tag: para
-#: persistent_classes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
"interface with Hibernate. You will not, however, be able to use proxies for "
"lazy association fetching which will ultimately limit your options for "
"performance tuning."
msgstr ""
-"Hibernateã§ã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ãã¦ããªã <literal>final</literal> ã¯ã©ã¹ã"
-"æ°¸ç¶åãããã¨ã¯ã§ãã¾ããã é
å»¶é¢é£ãã§ããã«å¯¾ãã¦ãããã·ã使ããã¨ã¯ã§ã"
-"ãªããªãã¾ãã ããã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã¸ã®é¸æè¢ãçãããã¨ã«ãªãã¾"
-"ãã"
+"Hibernate ã§ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£
ãã¦ããªã <literal>final</literal> ã¯ã©ã¹"
+"ãæ°¸ç¶åãããã¨ã¯ã§ãã¾ãããé
å»¶é¢é£ãã§ããã«å¯¾ãã¦ãããã·ã使ããã¨ã¯ã§"
+"ããªããªãã¾ããããã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã¸ã®é¸æè¢ãçãããã¨ã«ãªã"
+"ã¾ãã"
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -300,19 +199,17 @@
"final</literal> method, you must explicitly disable proxying by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"finalã§ã¯ãªãã¯ã©ã¹ã§ <literal>public final</literal> ã¡ã½ãããå®ç¾©ãããã¨"
+"final ã§ã¯ãªãã¯ã©ã¹ã§ <literal>public final</literal> ã¡ã½ãããå®ç¾©ãããã¨"
"ãé¿ããã¹ãã§ãã <literal>public final</literal> ã¡ã½ãããæã¤ã¯ã©ã¹ã使ã"
"ãããã°ã <literal>lazy=\"false\"</literal> ã¨è¨å®ãã¦æç¤ºçã«ãããã·ãç¡å¹"
"ã«ããªããã°ãªãã¾ããã"
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
msgstr "æ°¸ç¶ãã£ã¼ã«ãã«å¯¾ããã¢ã¯ã»ãµã¨ãã¥ã¼ãã¼ã¿ãå®ç¾©ããï¼ãªãã·ã§ã³ï¼"
#. Tag: para
-#: persistent_classes.xml:141
#, fuzzy, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
@@ -324,70 +221,47 @@
"required, you can switch to direct field access for particular properties."
msgstr ""
"<literal>Cat</literal> ã§ã¯ãã¹ã¦ã®æ°¸ç¶ãã£ã¼ã«ãã«å¯¾ãã¦ã¢ã¯ã»ãµã¡ã½ãããå®"
-"義ãã¦ãã¾ãã ä»ã®å¤ãã®ORMãã¼ã«ã¯ãæ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãç´æ¥æ°¸ç¶åãã¾"
-"ãã ç§ãã¡ã¯ãªã¬ã¼ã·ã§ãã«ã¹ãã¼ãã¨ã¯ã©ã¹ã®å
鍿§é ãåé¢ããæ¹ãè¯ãã¨ä¿¡ã"
-"ã¦ãã¾ãã ããã©ã«ãã§ã¯ãHibernateã¯JavaBeanã¹ã¿ã¤ã«ã®ããããã£ãæ°¸ç¶å"
+"義ãã¦ãã¾ããä»ã®å¤ãã® ORM ãã¼ã«ã¯ãæ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãç´æ¥æ°¸ç¶åãã¾"
+"ããç§ãã¡ã¯ãªã¬ã¼ã·ã§ãã«ã¹ãã¼ãã¨ã¯ã©ã¹ã®å
鍿§é ãåé¢ããæ¹ãè¯ãã¨ä¿¡ã"
+"ã¦ãã¾ããããã©ã«ãã§ã¯ã Hibernate 㯠JavaBean ã¹ã¿ã¤ã«ã®ããããã£ãæ°¸ç¶å"
"ãã <literal>getFoo</literal>, <literal>isFoo</literal>, <literal>setFoo</"
-"literal> å½¢å¼ã®ã¡ã½ããåãèªèãã¾ãã ãããå¿
è¦ãªããç¹å®ã®ããããã£ã«å¯¾"
-"ãã¦ãç´æ¥ã®ãã£ã¼ã«ãã¢ã¯ã»ã¹ã«åãæ¿ãããã¨ã¯å¯è½ã§ãã"
+"literal> å½¢å¼ã®ã¡ã½ããåãèªèãã¾ãããããå¿
è¦ãªããç¹å®ã®ããããã£ã«å¯¾ã"
+"ã¦ãç´æ¥ã®ãã£ã¼ã«ãã¢ã¯ã»ã¹ã«åãæ¿ãããã¨ã¯å¯è½ã§ãã"
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
"persist a property with a default, <literal>protected</literal> or "
"<literal>private</literal> get / set pair."
msgstr ""
-"ããããã£ã¯publicã§å®£è¨ããå¿
è¦ã¯ <emphasis>ããã¾ãã</emphasis> ã "
-"Hibernateã¯ããã©ã«ãã<literal>protected</literal> ããã㯠"
-"<literal>private</literal> ã®get / setã®ãã¢ãæã¤ããããã£ãæ°¸ç¶åãããã¨"
-"ãã§ãã¾ãã"
+"ããããã£ã¯ public ã§å®£è¨ããå¿
è¦ã¯ <emphasis>ããã¾ãã</emphasis> ã "
+"Hibernate ã¯ããã©ã«ãã§ã <literal>protected</literal> ããã㯠"
+"<literal>private</literal> ã® get / set ã®ãã¢ãæã¤ããããã£ãæ°¸ç¶åããã"
+"ã¨ãã§ãã¾ãã"
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
msgstr "ç¶æ¿ã®å®è£
"
#. Tag: para
-#: persistent_classes.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
"identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
-"ãµãã¯ã©ã¹ã1çªç®ã¨2çªç®ã®ã«ã¼ã«ãå®ããªããã°ãªãã¾ããã ãµãã¯ã©ã¹ã¯ã¹ã¼"
+"ãµãã¯ã©ã¹ã1çªç®ã¨2çªç®ã®ã«ã¼ã«ãå®ããªããã°ãªãã¾ããããµãã¯ã©ã¹ã¯ã¹ã¼"
"ãã¼ã¯ã©ã¹ <literal>Cat</literal> ããèå¥åããããã£ãç¶æ¿ãã¾ãã"
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
-msgstr "<literal>equals()</literal> 㨠<literal>hashCode()</literal> ã®å®è£
"
+msgstr "<literal>equals()</literal> 㨠<literal>hashCode()</literal>ã®å®è£
"
#. Tag: para
-#: persistent_classes.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
"</literal> methods if you:"
@@ -396,8 +270,7 @@
"literal> ã¡ã½ããããªã¼ãã¼ã©ã¤ãããªããã°ãªãã¾ããã"
#. Tag: para
-#: persistent_classes.xml:181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
"(the recommended way to represent many-valued associations); <emphasis>and</"
@@ -407,14 +280,12 @@
"é¢é£ã表ç¾ããããããã®æ¹æ³ã§ãï¼ <emphasis>ããã¦åæã«</emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
msgstr "åé¢ã¤ã³ã¹ã¿ã³ã¹ãã»ãã·ã§ã³ã¸å追å ããå ´åã"
#. Tag: para
-#: persistent_classes.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
"Java identity only inside a particular session scope. When you mix instances "
@@ -422,15 +293,14 @@
"literal> and <literal>hashCode()</literal> if you wish to have meaningful "
"semantics for <literal>Set</literal>s."
msgstr ""
-"Hibernateã¯ãæ°¸ç¶IDï¼ãã¼ã¿ãã¼ã¹ã®è¡ï¼ã¨ãç¹å®ã®ã»ãã·ã§ã³ã¹ã³ã¼ãå
ã« éå®"
-"ã§ããJavaIDã¨ãç価ã§ãããã¨ãä¿è¨¼ãã¾ãã ã§ãããç°ãªãã»ãã·ã§ã³ã§æ¤ç´¢ã"
-"ãã¤ã³ã¹ã¿ã³ã¹ãçµã¿åãããå ´åã <literal>Set</literal> ã«æå³ã®ããã»ãã³"
-"ãã£ã¯ã¹ãæããããã¨æã£ã¦ãããªã ããã«<literal>equals()</literal> 㨠"
-"<literal>hashCode()</literal> ãå®è£
ããªããã°ãªãã¾ããã"
+"Hibernate ã¯ãæ°¸ç¶ ID ï¼ãã¼ã¿ãã¼ã¹ã®è¡ï¼ã¨ãç¹å®ã®ã»ãã·ã§ã³ã¹ã³ã¼ãå
ã«é"
+"å®ã§ãã Java ID ã¨ãç価ã§ãããã¨ãä¿è¨¼ãã¾ããã§ãããç°ãªãã»ãã·ã§ã³ã§æ¤"
+"ç´¢ããã¤ã³ã¹ã¿ã³ã¹ãçµã¿åãããå ´åã <literal>Set</literal> ã«æå³ã®ããã»"
+"ãã³ãã£ã¯ã¹ãæããããã¨æã£ã¦ãããªãããã« <literal>equals()</literal> "
+"㨠<literal>hashCode()</literal> ãå®è£
ããªããã°ãªãã¾ããã"
#. Tag: para
-#: persistent_classes.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
"<literal>hashCode()</literal> by comparing the identifier value of both "
@@ -449,23 +319,22 @@
msgstr ""
"æãæç½ãªæ¹æ³ã¯ã両æ¹ã®ãªãã¸ã§ã¯ãã®èå¥åã®å¤ã®æ¯è¼ã«ãã£ã¦ "
"<literal>equals()</literal>㨠<literal>hashCode()</literal> ãå®è£
ããæ¹æ³ã§"
-"ãã å¤ãåããªãã両è
ã¯ãã¼ã¿ãã¼ã¹ã®åãè¡ã§ãªããã°ãªããªãããçãããªã"
+"ããå¤ãåããªãã両è
ã¯ãã¼ã¿ãã¼ã¹ã®åãè¡ã§ãªããã°ãªããªãããçãããªã"
"ã¾ãã ï¼ä¸¡è
ã <literal>Set</literal> ã«è¿½å ããã¦ãã <literal>Set</"
"literal> ã«ã¯1åã®è¦ç´ ãããªããã¨ã«ãªãã¾ãï¼ æ®å¿µãªãã¨ã«ãçæãããèå¥å"
-"ã«ã¯ãã®ã¢ããã¼ãã使ããã¨ãã§ãã¾ããã Hibernateã¯æ°¸ç¶åããããªãã¸ã§ã¯"
-"ãã¸èå¥åã®å¤ã代å
¥ããã ãã§ããã æ°ãã使ãããã¤ã³ã¹ã¿ã³ã¹ã¯ã©ã®ãããª"
-"èå¥åã®å¤ãæã£ã¦ãã¾ããã ããã«ãã¤ã³ã¹ã¿ã³ã¹ãã»ã¼ãããã¦ããããç¾å¨ "
-"<literal>Set</literal> ã®ä¸ã«ããã°ã ã»ã¼ãããã¨ãªãã¸ã§ã¯ãã¸èå¥åã®å¤ã"
-"代å
¥ãããã¨ã«ãªãã¾ãã ãã <literal>equals()</literal> 㨠"
-"<literal>hashCode()</literal> ãèå¥åã®å¤ã«åºã¥ãã¦ãããªãã ããã·ã¥ã³ã¼ã"
-"ã夿´ããã㨠<literal>Set</literal> ã®è¦ç´ãç ´ããã¾ãã ãã®åé¡ã«ã¤ãã¦ã®"
-"å®å
¨ãªè°è«ã¯ãHibernateã®ã¦ã§ããµã¤ããè¦ã¦ãã ããã ããã¯Hibernateã®åé¡ã§"
-"ã¯ãªãããªãã¸ã§ã¯ãã®å䏿§ã¨ç価æ§ã«ã¤ãã¦ã®ã é常ã®Javaã®ã»ãã³ãã£ã¯ã¹ã§"
-"ãããã¨ã«æ³¨æãã¦ãã ããã"
+"ã«ã¯ãã®ã¢ããã¼ãã使ããã¨ãã§ãã¾ããã Hibernate ã¯æ°¸ç¶åããããªãã¸ã§ã¯"
+"ãã¸èå¥åã®å¤ã代å
¥ããã ãã§ãããæ°ãã使ãããã¤ã³ã¹ã¿ã³ã¹ã¯ã©ã®ãããª"
+"èå¥åã®å¤ãæã£ã¦ãã¾ãããããã«ãã¤ã³ã¹ã¿ã³ã¹ãã»ã¼ãããã¦ããããç¾å¨ "
+"<literal>Set</literal> ã®ä¸ã«ããã°ãã»ã¼ãããã¨ãªãã¸ã§ã¯ãã¸èå¥åã®å¤ã代"
+"å
¥ãããã¨ã«ãªãã¾ãããã <literal>equals()</literal> 㨠<literal>hashCode()"
+"</literal> ãèå¥åã®å¤ã«åºã¥ãã¦ãããªããããã·ã¥ã³ã¼ãã夿´ããã㨠"
+"<literal>Set</literal> ã®è¦ç´ãç ´ããã¾ãããã®åé¡ã«ã¤ãã¦ã®å®å
¨ãªè°è«ã¯ã "
+"Hibernate ã®ã¦ã§ããµã¤ããè¦ã¦ãã ããããã㯠Hibernate ã®åé¡ã§ã¯ãªãããªã"
+"ã¸ã§ã¯ãã®å䏿§ã¨ç価æ§ã«ã¤ãã¦ã®ãé常㮠Java ã®ã»ãã³ãã£ã¯ã¹ã§ãããã¨ã«"
+"注æãã¦ãã ããã"
#. Tag: para
-#: persistent_classes.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> using <emphasis>Business key equality</"
@@ -475,78 +344,44 @@
"emphasis> candidate key):"
msgstr ""
"<emphasis>ãã¸ãã¹ãã¼ã®ç価æ§</emphasis> ã使ã£ã¦ã <literal>equals()</"
-"literal> 㨠<literal>hashCode()</literal> ãå®è£
ãããã¨ããå§ããã¾ãã ãã¸"
-"ãã¹ãã¼ã®ç価æ§ã¨ã¯ã<literal>equals()</literal> ã¡ã½ãããããã¸ãã¹ãã¼ã "
+"literal> 㨠<literal>hashCode()</literal> ãå®è£
ãããã¨ããå§ããã¾ãããã¸"
+"ãã¹ãã¼ã®ç価æ§ã¨ã¯ã <literal>equals()</literal> ã¡ã½ãããããã¸ãã¹ãã¼ã"
"ã¤ã¾ãç¾å®ã®ä¸çã«ããã¦ã¤ã³ã¹ã¿ã³ã¹ãç¹å®ãããã¼ï¼<emphasis>èªç¶</"
"emphasis> åè£ãã¼ï¼ ãå½¢æããããããã£ã ããæ¯è¼ãããã¨ãæå³ãã¾ãã"
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
"ãã¸ãã¹ãã¼ã¯ãã¼ã¿ãã¼ã¹ã®ä¸»ãã¼åè£ã»ã©å®å®ã§ããå¿
è¦ã¯ãªããã¨ã«æ³¨æãã¦"
-"ãã ãã ï¼<xref linkend=\"transactions-basics-identity\"/> ãè¦ã¦ãã ã"
-"ãï¼ã æ´æ°ä¸å¯ãªããããã£ãã¦ãã¼ã¯ãªããããã£ã¯ãé常ãã¸ãã¹ãã¼ã®ããå"
+"ãã ãã ï¼<xref linkend=\"transactions-basics-identity\"/> ãåç
§ãã¦ãã ã"
+"ãï¼ãæ´æ°ä¸å¯ãªããããã£ãã¦ãã¼ã¯ãªããããã£ã¯ãé常ãã¸ãã¹ãã¼ã®ããå"
"è£ã§ãã"
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
msgstr "åçã¢ãã«"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
msgstr ""
-"以ä¸ã®æ©è½ã¯ç¾å¨å®é¨æ®µéã«ããã¨è¦ãªããã¦ããã è¿ãå°æ¥å¤æ´ãããå¯è½æ§ãã"
+"以ä¸ã®æ©è½ã¯ç¾å¨å®é¨æ®µéã«ããã¨è¦ãªããã¦ãããè¿ãå°æ¥å¤æ´ãããå¯è½æ§ãã"
"ããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: persistent_classes.xml:246
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
"classes or as JavaBean objects at runtime. Hibernate also supports dynamic "
@@ -554,131 +389,60 @@
"and the representation of entities as DOM4J trees. With this approach, you "
"do not write persistent classes, only mapping files."
msgstr ""
-"æ°¸ç¶ã¨ã³ãã£ãã£ã¯ãå¿
ãããå®è¡æã«POJOã¯ã©ã¹ãJavaBeanãªãã¸ã§ã¯ãã§è¡¨ç¾ã"
-"ãå¿
è¦ã¯ããã¾ããã Hibernateã¯ï¼å®è¡æã« <literal>Map</literal> ã® "
-"<literal>Map</literal> ã使ãï¼åçã¢ãã«ã¨ã DOM4Jããªã¼ã¨ãã¦ã®ã¨ã³ãã£ãã£"
-"ã®è¡¨ç¾ããµãã¼ããã¾ãã ãã®ã¢ããã¼ãã使ãã¨æ°¸ç¶ã¯ã©ã¹ãæ¸ããããããã³ã°"
-"ãã¡ã¤ã«ã ããæ¸ããã¨ã«ãªãã¾ãã"
+"æ°¸ç¶ã¨ã³ãã£ãã£ã¯ãå¿
ãããå®è¡æã« POJO ã¯ã©ã¹ã JavaBean ãªãã¸ã§ã¯ãã§è¡¨"
+"ç¾ããå¿
è¦ã¯ããã¾ããã Hibernate ã¯ï¼å®è¡æã« <literal>Map</literal> ã® "
+"<literal>Map</literal> ã使ãï¼åçã¢ãã«ã¨ã DOM4J ããªã¼ã¨ãã¦ã®ã¨ã³ãã£"
+"ãã£ã®è¡¨ç¾ããµãã¼ããã¾ãããã®ã¢ããã¼ãã使ãã¨æ°¸ç¶ã¯ã©ã¹ãæ¸ãããããã"
+"ã³ã°ãã¡ã¤ã«ã ããæ¸ããã¨ã«ãªãã¾ãã"
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
-"ããã©ã«ãã§ã¯ãHibernateã¯é常ã®POJOã¢ã¼ãã§åä½ãã¾ãã "
-"<literal>default_entity_mode</literal> è¨å®ãªãã·ã§ã³ã使ã£ã¦ã ç¹å®ã® "
+"ããã©ã«ãã§ã¯ã Hibernate ã¯é常㮠POJO ã¢ã¼ãã§åä½ãã¾ãã "
+"<literal>default_entity_mode</literal> è¨å®ãªãã·ã§ã³ã使ã£ã¦ãç¹å®ã® "
"<literal>SessionFactory</literal> ã«å¯¾ããããã©ã«ãã®ã¨ã³ãã£ãã£è¡¨ç¾ã¢ã¼ã"
"ãè¨å®ãããã¨ãã§ãã¾ã ï¼<xref linkend=\"configuration-optional-properties"
"\"/> ãè¦ã¦ãã ããï¼ã"
#. Tag: para
-#: persistent_classes.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
"literal>s. First, in the mapping file an <literal>entity-name</literal> has "
"to be declared instead of, or in addition to, a class name:"
msgstr ""
-"以ä¸ã®ä¾ã§ã¯ <literal>Map</literal> ã使ã£ã表ç¾ãç´¹ä»ãã¾ãã ã¾ããããã³ã°"
+"以ä¸ã®ä¾ã§ã¯ <literal>Map</literal> ã使ã£ã表ç¾ãç´¹ä»ãã¾ããã¾ããããã³ã°"
"ãã¡ã¤ã«ã§ãã¯ã©ã¹åã®ä»£ããã«ï¼ã¾ãã¯ããã«å ãã¦ï¼ <literal>entity-name</"
"literal> ãå®ç¾©ããªããã°ãªãã¾ããï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:267
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:269
-#, fuzzy, no-c-format
-msgid ""
"Even though associations are declared using target class names, the target "
"type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
-"é¢é£ãã¿ã¼ã²ããã®ã¯ã©ã¹åã使ã£ã¦å®ç¾©ãã¦ããã¨ãã¦ãã é¢é£ã®ã¿ã¼ã²ããåã"
-"POJOã§ã¯ãªãåçãªã¨ã³ãã£ãã£ã§ãæ§ããªããã¨ã«æ³¨æãã¦ãã ããã"
+"é¢é£ãã¿ã¼ã²ããã®ã¯ã©ã¹åã使ã£ã¦å®ç¾©ãã¦ããã¨ãã¦ããé¢é£ã®ã¿ã¼ã²ããåã "
+"POJO ã§ã¯ãªãåçãªã¨ã³ãã£ãã£ã§ãæ§ããªããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: persistent_classes.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
"the <literal>SessionFactory</literal>, you can, at runtime, work with "
"<literal>Map</literal>s of <literal>Map</literal>s:"
msgstr ""
"<literal>SessionFactory</literal> ã«å¯¾ãã¦ããã©ã«ãã®ã¨ã³ãã£ãã£ã¢ã¼ãã "
-"<literal>dynamic-map</literal> ã«è¨å®ããå¾ã å®è¡æã« <literal>Map</"
-"literal> ã® <literal>Map</literal> ã使ããã¨ãã§ãã¾ãï¼"
+"<literal>dynamic-map</literal> ã«è¨å®ããå¾ãå®è¡æã« <literal>Map</literal> "
+"ã® <literal>Map</literal> ã使ããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:282
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:284
-#, fuzzy, no-c-format
-msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
"prototyping, without the need for entity class implementation. However, you "
"lose compile-time type checking and will likely deal with many exceptions at "
@@ -686,15 +450,14 @@
"easily be normalized and sound, allowing to add a proper domain model "
"implementation on top later on."
msgstr ""
-"åçãªãããã³ã°ã®å©ç¹ã¯ãã¨ã³ãã£ãã£ã¯ã©ã¹ã®å®è£
ãå¿
è¦ã¨ããªãããã ããã"
-"ã¿ã¤ãã³ã°ã«è¦ããã¿ã¼ã³ã¢ã©ã¦ã³ãã¿ã¤ã ãæ©ãã¨ãããã¨ã§ãã ãããã³ã³ãã¤"
+"åçãªãããã³ã°ã®å©ç¹ã¯ãã¨ã³ãã£ãã£ã¯ã©ã¹ã®å®è£
ãå¿
è¦ã¨ããªããããããã"
+"ã¿ã¤ãã³ã°ã«è¦ããã¿ã¼ã³ã¢ã©ã¦ã³ãã¿ã¤ã ãæ©ãã¨ãããã¨ã§ãããããã³ã³ãã¤"
"ã«æã®åãã§ãã¯ããªãã®ã§ãå®è¡æã«é常ã«å¤ãã®ä¾å¤å¦çãæ±ããªããã°ãªããª"
-"ãã§ãããã Hibernateãããã³ã°ã®ãããã§ããã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯å®¹æã«æ£è¦"
-"åã§ããå¥å
¨ã«ãªãã å¾ã§é©åãªãã¡ã¤ã³ã¢ãã«ã®å®è£
ã追å ãããã¨ãå¯è½ã«ãªã"
+"ãã§ãããã Hibernate ãããã³ã°ã®ãããã§ããã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯å®¹æã«æ£è¦"
+"åã§ããå¥å
¨ã«ãªããå¾ã§é©åãªãã¡ã¤ã³ã¢ãã«ã®å®è£
ã追å ãããã¨ãå¯è½ã«ãªã"
"ã¾ãã"
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
@@ -703,28 +466,9 @@
"ã¨ã³ãã£ãã£è¡¨ç¾ã¢ã¼ã㯠<literal>Session</literal> ãã¨ã«è¨å®ãããã¨ãå¯è½"
"ã§ãã"
-#. Tag: programlisting
-#: persistent_classes.xml:297
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:300
-#, fuzzy, no-c-format
-msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
@@ -736,32 +480,29 @@
msgstr ""
"<literal>EntityMode</literal> ã使ã£ã <literal>getSession()</literal> ã®å¼ã³"
"åºã㯠<literal>SessionFactory</literal> ã§ã¯ãªã <literal>Session</literal> "
-"APIã«ãããã¨ã«æ³¨æãã¦ãã ããã ãã®æ¹æ³ã§ã¯ãæ°ãã <literal>Session</"
-"literal> ã¯ããã¼ã¹ã¨ãªãJDBCã³ãã¯ã·ã§ã³ã ãã©ã³ã¶ã¯ã·ã§ã³ããã®ä»ã®ã³ã³ã"
-"ãã¹ãæ
å ±ãå
±æãã¾ãã ããã¯2çªç®ã® <literal>Session</literal> ã§ã¯ "
+"APIã«ãããã¨ã«æ³¨æãã¦ãã ããããã®æ¹æ³ã§ã¯ãæ°ãã <literal>Session</"
+"literal> ã¯ããã¼ã¹ã¨ãªã JDBC ã³ãã¯ã·ã§ã³ããã©ã³ã¶ã¯ã·ã§ã³ããã®ä»ã®ã³ã³ã"
+"ãã¹ãæ
å ±ãå
±æãã¾ããããã¯2çªç®ã® <literal>Session</literal> ã§ã¯ "
"<literal>flush()</literal> 㨠<literal>close()</literal> ãå¼ã¶å¿
è¦ããªãã¨ã"
-"ããã¨ããã®ãããã©ã³ã¶ã¯ã·ã§ã³ã¨ã³ãã¯ã·ã§ã³ã®ç®¡çã 1çªç®ã®ä½æ¥åä½(Unit "
+"ããã¨ããã®ãããã©ã³ã¶ã¯ã·ã§ã³ã¨ã³ãã¯ã·ã§ã³ã®ç®¡çã1çªç®ã®ä½æ¥åä½(Unit "
"of Work)ã«ä»»ãããã¨ãã§ããã¨ãããã¨ã§ãã"
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"<xref linkend=\"xml\" />."
msgstr ""
-"XML表ç¾ã®è½åã«ã¤ãã¦ã®ãããªãæ
å ±ã¯ <xref linkend=\"xml\"/> ã§è¦ã¤ããã¾"
-"ãã"
+"XML 表ç¾ã®è½åã«ã¤ãã¦ã®ãããªãæ
å ±ã¯ <xref linkend=\"xml\"/> ã«è¨è¿°ããã¦ã"
+"ã¾ãã"
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
msgstr "Tuplizer"
#. Tag: para
-#: persistent_classes.xml:320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
"responsible for managing a particular representation of a piece of data "
@@ -773,22 +514,16 @@
"through its constructor. It also knows how to access the POJO properties "
"using the defined property accessors."
msgstr ""
-"<literal>org.hibernate.tuple.Tuplizer</literal> ã¨ãã®ãµãã¤ã³ã¿ã¼ãã§ã¤ã¹"
-"ã¯ã 表ç¾ã® <literal>org.hibernate.EntityMode</literal> ãå©ç¨ãã¦ã ãã¼ã¿æ"
-"çã®ãã表ç¾ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ãã ä¸ãããããã¼ã¿æçããã¼ã¿æ§é ã¨ãã¦è"
-"ãããªããTuplizerã¯ãã®ãããªãã¼ã¿æ§é ã ã©ã®ããã«ä½æããããç¥ãããã®ã"
-"ããªãã¼ã¿æ§é ããã©ã®ããã«å¤ãæ½åºãã æ³¨å
¥ããããç¥ã£ã¦ãã¾ãã ä¾ãã°"
-"POJOã¨ã³ãã£ãã£ã¢ã¼ãã§ã¯ã対å¿ããTuplizerã¯ã³ã³ã¹ãã©ã¯ã¿ãéãã¦ã POJOã"
-"ã©ã®ããã«ä½æããããå®ç¾©ãããããããã£ã¢ã¯ã»ãµã使ãã POJOããããã£ã«ã©"
-"ã®ããã«ã¢ã¯ã»ã¹ããããç¥ãã¾ãã Tuplizerã«ã¯äºã¤ã®ãã¤ã¬ãã«ã®åãããã¾"
-"ãã ãããã¯ã<literal>org.hibernate.tuple.EntityTuplizer</literal> 㨠"
-"<literal>org.hibernate.tuple.ComponentTuplizer</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§è¡¨"
-"ç¾ããã¾ãã <literal>EntityTuplizer</literal> ã¯ä¸ã§è¿°ã¹ããããªã¨ã³ãã£ãã£"
-"ã«é¢ããå¥ç´ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ãã 䏿¹ã<literal>ComponentTuplizer</"
-"literal> ã¯ã³ã³ãã¼ãã³ãã«é¢ããå¥ç´ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ãã"
+"<literal>org.hibernate.tuple.Tuplizer</literal> ã¨ãã®ãµãã¤ã³ã¿ã¼ãã§ã¼ã¹"
+"ã¯ã表ç¾ã® <literal>org.hibernate.EntityMode</literal> ãå©ç¨ãã¦ããã¼ã¿æç"
+"ã®ãã表ç¾ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ããä¸ãããããã¼ã¿æçããã¼ã¿æ§é ã¨ãã¦èã"
+"ããªãã Tuplizer ã¯ãã®ãããªãã¼ã¿æ§é ãã©ã®ããã«ä½æããããç¥ãããã®ã"
+"ããªãã¼ã¿æ§é ããã©ã®ããã«å¤ãæ½åºããæ³¨å
¥ããããç¥ã£ã¦ãã¾ããä¾ãã° "
+"POJO ã¨ã³ãã£ãã£ã¢ã¼ãã§ã¯ã対å¿ãã Tuplizer ã¯ã³ã³ã¹ãã©ã¯ã¿ãéãã¦ã "
+"POJO ãã©ã®ããã«ä½æããããå®ç¾©ãããããããã£ã¢ã¯ã»ãµã使ãã POJO ããã"
+"ãã£ã«ã©ã®ããã«ã¢ã¯ã»ã¹ããããç¥ãã¾ãã"
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -798,10 +533,15 @@
"mentioned contracts in regards to entities, while "
"<literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
+"Tuplizer ã«ã¯äºã¤ã®ãã¤ã¬ãã«ã®åãããã¾ãããããã¯ã<literal>org."
+"hibernate.tuple.entity.EntityTuplizer</literal> 㨠<literal>org.hibernate."
+"tuple.component.ComponentTuplizer</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§è¡¨ç¾ããã¾ãã "
+"<literal>EntityTuplizer</literal> ã¯ä¸ã§è¿°ã¹ããããªã¨ã³ãã£ãã£ã«é¢ããå¥ç´"
+"ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ãã䏿¹ã <literal>ComponentTuplizer</literal> ã¯ã³ã³"
+"ãã¼ãã³ãã«é¢ããå¥ç´ã®ç®¡çã«è²¬ä»»ãæã¡ã¾ãã"
#. Tag: para
-#: persistent_classes.xml:338
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
"<literal>java.util.Map</literal> implementation other than <literal>java."
@@ -812,63 +552,20 @@
"mapping they are meant to manage. Going back to the example of our customer "
"entity:"
msgstr ""
-"ã¦ã¼ã¶ã¯ç¬èªã®Tuplizerã«å·®ãæ¿ãããã¨ãå¯è½ã§ãã ããããdynamic-map "
-"entity-modeã®éã« <literal>java.util.HashMap</literal> ã使ãã®ã§ã¯ãªãã "
-"<literal>java.util.Map</literal> ã®å®è£
ãå¿
è¦ã§ãããã ãããã¯ãããããã"
-"ãã©ã«ãã®ãã®ã§ã¯ãªããå¥ã®ãããã·çææ¦ç¥ã®å®ç¾©ãå¿
è¦ã§ãããã 両è
ã¨ãã"
-"ã«ã¹ã¿ã ã®Tuplizerå®è£
ãå®ç¾©ãããã¨ã§éæããã¾ãã Tuplizerã®å®ç¾©ã¯ã管çã"
-"ããã¨ããã¨ã³ãã£ãã£ãã³ã³ãã¼ãã³ãã®ãããã³ã°ã«çµã³ä»ãããã¾ãã 顧客ã¨"
-"ã³ãã£ãã£ã®ä¾ã«æ»ãã¨ï¼"
+"ã¦ã¼ã¶ã¼ã¯ç¬èªã® Tuplizer ã«å·®ãæ¿ãããã¨ãå¯è½ã§ãããããã dynamic-map "
+"entity-mode ã®éã« <literal>java.util.HashMap</literal> ã使ãã®ã§ã¯ãªãã "
+"<literal>java.util.Map</literal> ã®å®è£
ãå¿
è¦ã§ãããããããã¯ãããããã"
+"ãã©ã«ãã®ãã®ã§ã¯ãªããå¥ã®ãããã·çææ¦ç¥ã®å®ç¾©ãå¿
è¦ã§ãããã両è
ã¨ãã"
+"ã«ã¹ã¿ã ã® Tuplizer å®è£
ãå®ç¾©ãããã¨ã§éæããã¾ãã Tuplizer ã®å®ç¾©ã¯ã管"
+"çãããã¨ããã¨ã³ãã£ãã£ãã³ã³ãã¼ãã³ãã®ãããã³ã°ã«çµã³ä»ãããã¾ããé¡§"
+"客ã¨ã³ãã£ãã£ã®ä¾ã¯ä»¥ä¸ã«ãªãã¾ãï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
-#, no-c-format
+#, fuzzy, no-c-format
msgid "EntityNameResolvers"
-msgstr ""
+msgstr "ã¨ã³ãã£ãã£ãªã¾ã«ã"
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -886,140 +583,7 @@
"package for illustration."
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
@@ -1027,7 +591,6 @@
msgstr ""
#. Tag: para
-#: persistent_classes.xml:374
#, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
@@ -1036,7 +599,6 @@
msgstr ""
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
@@ -1045,11 +607,460 @@
"<methodname>registerEntityNameResolver</methodname> method."
msgstr ""
-#~ msgid "There are four main rules to follow here:"
-#~ msgstr "å¾ãã¹ã4ã¤ã®ã«ã¼ã«ãããã¾ãï¼"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ "\n"
+#~ " private Date birthdate;\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ " private int litterId;\n"
+#~ "\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens = new HashSet();\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setLitterId(int id) {\n"
+#~ " this.litterId = id;\n"
+#~ " }\n"
+#~ " public int getLitterId() {\n"
+#~ " return litterId;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " \n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kitten.setMother(this);\n"
+#~ " kitten.setLitterId( kittens.size() ); \n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ "\n"
+#~ " private Date birthdate;\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ " private int litterId;\n"
+#~ "\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens = new HashSet();\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setLitterId(int id) {\n"
+#~ " this.litterId = id;\n"
+#~ " }\n"
+#~ " public int getLitterId() {\n"
+#~ " return litterId;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " \n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kitten.setMother(this);\n"
+#~ "kitten.setLitterId( kittens.size() ); \n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "public class DomesticCat extends Cat {\n"
+#~ " private String name;\n"
+#~ "\n"
+#~ " public String getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " protected void setName(String name) {\n"
+#~ " this.name=name;\n"
+#~ " }\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "TODO: ããããã£ã¨ãããã·ããã±ã¼ã¸ã®ã¦ã¼ã¶æ¡å¼µãã¬ã¼ã ã¯ã¼ã¯ãææ¸åãã"
-#~ "ãã¨"
+#~ "package eg;\n"
+#~ "\n"
+#~ "public class DomesticCat extends Cat {\n"
+#~ " private String name;\n"
+#~ "\n"
+#~ " public String getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " protected void setName(String name) {\n"
+#~ " this.name=name;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[public class Cat {\n"
+#~ "\n"
+#~ " ...\n"
+#~ " public boolean equals(Object other) {\n"
+#~ " if (this == other) return true;\n"
+#~ " if ( !(other instanceof Cat) ) return false;\n"
+#~ "\n"
+#~ " final Cat cat = (Cat) other;\n"
+#~ "\n"
+#~ " if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
+#~ " if ( !cat.getMother().equals( getMother() ) ) return false;\n"
+#~ "\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " int result;\n"
+#~ " result = getMother().hashCode();\n"
+#~ " result = 29 * result + getLitterId();\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "public class Cat {\n"
+#~ "\n"
+#~ " ...\n"
+#~ " public boolean equals(Object other) {\n"
+#~ " if (this == other) return true;\n"
+#~ " if ( !(other instanceof Cat) ) return false;\n"
+#~ "\n"
+#~ " final Cat cat = (Cat) other;\n"
+#~ "\n"
+#~ " if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
+#~ " if ( !cat.getMother().equals( getMother() ) ) return false;\n"
+#~ "\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " int result;\n"
+#~ " result = getMother().hashCode();\n"
+#~ " result = 29 * result + getLitterId();\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"id\"\n"
+#~ " type=\"long\"\n"
+#~ " column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <property name=\"address\"\n"
+#~ " column=\"ADDRESS\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"organization\"\n"
+#~ " column=\"ORGANIZATION_ID\"\n"
+#~ " class=\"Organization\"/>\n"
+#~ "\n"
+#~ " <bag name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " lazy=\"false\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"CUSTOMER_ID\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ " \n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"id\"\n"
+#~ " type=\"long\"\n"
+#~ " column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <property name=\"address\"\n"
+#~ " column=\"ADDRESS\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"organization\"\n"
+#~ " column=\"ORGANIZATION_ID\"\n"
+#~ " class=\"Organization\"/>\n"
+#~ "\n"
+#~ " <bag name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " lazy=\"false\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"CUSTOMER_ID\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ " \n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session s = openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ "Session s = openSession();\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "\n"
+#~ "// Create an organization\n"
+#~ "Map foobar = new HashMap();\n"
+#~ "foobar.put(\"name\", \"Foobar Inc.\");\n"
+#~ "\n"
+#~ "// Link both\n"
+#~ "david.put(\"organization\", foobar);\n"
+#~ "\n"
+#~ "// Save both\n"
+#~ "s.save(\"Customer\", david);\n"
+#~ "s.save(\"Organization\", foobar);\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();]]>"
+#~ msgstr ""
+#~ "Session s = openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ "Session s = openSession();\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "\n"
+#~ "// Create an organization\n"
+#~ "Map foobar = new HashMap();\n"
+#~ "foobar.put(\"name\", \"Foobar Inc.\");\n"
+#~ "\n"
+#~ "// Link both\n"
+#~ "david.put(\"organization\", foobar);\n"
+#~ "\n"
+#~ "// Save both\n"
+#~ "s.save(\"Customer\", david);\n"
+#~ "s.save(\"Organization\", foobar);\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode."
+#~ "MAP);\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "dynamicSession.save(\"Customer\", david);\n"
+#~ "...\n"
+#~ "dynamicSession.flush();\n"
+#~ "dynamicSession.close()\n"
+#~ "...\n"
+#~ "// Continue on pojoSession\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "dynamicSession.save(\"Customer\", david);\n"
+#~ "...\n"
+#~ "dynamicSession.flush();\n"
+#~ "dynamicSession.close()\n"
+#~ "...\n"
+#~ "// Continue on pojoSession"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ " <!--\n"
+#~ " Override the dynamic-map entity-mode\n"
+#~ " tuplizer for the customer entity\n"
+#~ " -->\n"
+#~ " <tuplizer entity-mode=\"dynamic-map\"\n"
+#~ " class=\"CustomMapTuplizerImpl\"/>\n"
+#~ "\n"
+#~ " <id name=\"id\" type=\"long\" column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <!-- other properties -->\n"
+#~ " ...\n"
+#~ " </class>\n"
+#~ "</hibernate-mapping>\n"
+#~ "\n"
+#~ "\n"
+#~ "public class CustomMapTuplizerImpl\n"
+#~ " extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
+#~ " // override the buildInstantiator() method to plug in our custom "
+#~ "map...\n"
+#~ " protected final Instantiator buildInstantiator(\n"
+#~ " org.hibernate.mapping.PersistentClass mappingInfo) {\n"
+#~ " return new CustomMapInstantiator( mappingInfo );\n"
+#~ " }\n"
+#~ "\n"
+#~ " private static final class CustomMapInstantiator\n"
+#~ " extends org.hibernate.tuple.DynamicMapInstantitor {\n"
+#~ " // override the generateMap() method to return our custom map...\n"
+#~ " protected final Map generateMap() {\n"
+#~ " return new CustomMap();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ " <!--\n"
+#~ " Override the dynamic-map entity-mode\n"
+#~ " tuplizer for the customer entity\n"
+#~ " -->\n"
+#~ " <tuplizer entity-mode=\"dynamic-map\"\n"
+#~ " class=\"CustomMapTuplizerImpl\"/>\n"
+#~ "\n"
+#~ " <id name=\"id\" type=\"long\" column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <!-- other properties -->\n"
+#~ " ...\n"
+#~ " </class>\n"
+#~ "</hibernate-mapping>\n"
+#~ "\n"
+#~ "\n"
+#~ "public class CustomMapTuplizerImpl\n"
+#~ " extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
+#~ " // override the buildInstantiator() method to plug in our custom "
+#~ "map...\n"
+#~ " protected final Instantiator buildInstantiator(\n"
+#~ " org.hibernate.mapping.PersistentClass mappingInfo) {\n"
+#~ " return new CustomMapInstantiator( mappingInfo );\n"
+#~ " }\n"
+#~ "\n"
+#~ " private static final class CustomMapInstantiator\n"
+#~ " extends org.hibernate.tuple.DynamicMapInstantitor {\n"
+#~ " // override the generateMap() method to return our custom map...\n"
+#~ " protected final Map generateMap() {\n"
+#~ " return new CustomMap();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,29 @@
-# Language ja-JP translations for PACKAGE package.
-# Automatically generated, 2009.
-#
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: 2009-07-14 19:56+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-20 17:03+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
msgstr ""
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
msgstr ""
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -40,13 +37,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
msgstr ""
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -60,13 +55,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
msgstr ""
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -77,7 +70,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -89,15 +81,14 @@
msgstr ""
#. Tag: para
-#: portability.xml:72
#, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -110,7 +101,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -126,13 +116,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
msgstr ""
#. Tag: para
-#: portability.xml:100
#, no-c-format
msgid ""
"When considering portability between databases, another important decision "
@@ -151,38 +139,64 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
#. Tag: para
-#: portability.xml:125
#, no-c-format
msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr ""
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
msgstr ""
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +205,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -202,7 +215,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -213,7 +225,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
@@ -222,13 +233,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,24 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-21 17:17+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "忏ã"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -27,29 +28,28 @@
"representation from an object model to a relational data model with a SQL-"
"based schema."
msgstr ""
-"仿¥ã®ä¼æ¥ç°å¢ã«ããã¦ããªãã¸ã§ã¯ãæåã½ããã¦ã§ã¢ã¨ãªã¬ã¼ã·ã§ãã«ãã¼ã¿"
-"ãã¼ã¹ã«é¢ãã使¥ã¯ ç
©éã§è¨å¤§ãªæéãå¿
è¦ã¨ãã¾ãã Hibernateã¯Javaç°å¢ã®ãª"
-"ãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ãã¼ã«ã§ãã ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«"
-"ãããã³ã°ï¼ORMï¼ã¨ã¯ã ãªãã¸ã§ã¯ãã¢ãã«ããSQLãã¼ã¹ã¹ãã¼ãã®ãªã¬ã¼ã·ã§ã"
-"ã«ãã¼ã¿ã¢ãã«ã¸ã¨ã ãã¼ã¿è¡¨ç¾ããããã³ã°ããï¼å¯¾å¿ä»ããï¼æè¡ã®ãã¨ã§ãã"
+"ãªãã¸ã§ã¯ãæåã®ã½ããã¦ã§ã¢ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã®ä½¿ç¨ã¯ã 仿¥ã®ã¨"
+"ã³ã¿ã¼ãã©ã¤ãºç°å¢ã§ã¯é常ã«ç¹éã§æéã®ããã使¥ã¨ãªãã¾ãã Hibernate 㯠"
+"Java ç°å¢ç¨ã®ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ãã¼ã«ã§ãã ãªãã¸ã§ã¯ã/"
+"ãªã¬ã¼ã·ã§ãã«ãããã³ã° (ORM) ã¨ã¯ãã¼ã¿è¡¨ç¾ããªãã¸ã§ã¯ãã¢ãã«ãã SQL "
+"ãã¼ã¹ã®ã¹ãã¼ãã«ãããªã¬ã¼ã·ã§ãã«ãã¼ã¿ã¢ãã«ã«ãããã³ã°ããæè¡ã®ãã¨ã"
+"æãã¾ãã "
#. Tag: para
-#: preface.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
"tables (and from Java data types to SQL data types), but also provides data "
"query and retrieval facilities. It can also significantly reduce development "
"time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
-"Hibernateã¯Javaã¯ã©ã¹ãããã¼ã¿ãã¼ã¹ãã¼ãã«ã¸ï¼ããã¦Javaãã¼ã¿åããSQL"
-"ãã¼ã¿åã¸ï¼ ã®ãããã³ã°ãå¦çããã ãã§ã¯ãªãããã¼ã¿ã®ã¯ã¨ãªã¨å¾©å
ã®ä»çµã¿"
-"ãæä¾ãã¾ãã ãã®ãããã§SQLã¨JDBCã使ã£ãæä½æ¥ã§ã®ãã¼ã¿å¦çã«è²»ãããã¦"
-"ããéçºæéã大å¹
ã«åæ¸ã§ãã¾ãã"
+"Hibernate 㯠Java ã¯ã©ã¹ãããã¼ã¿ãã¼ã¹ãã¼ãã«ã¸ã®ãããã³ã°(åã³ Java ãã¼"
+"ã¿ã¿ã¤ããã SQL ãã¼ã¿ã¿ã¤ãã¸ã®ãããã³ã°)ãè¡ãã ãã§ãªããã¼ã¿ã®ã¯ã¨ãªã"
+"æ¤ç´¢æ©è½ãæä¾ããããã SQL ã JDBC ã§ã®æä½æ¥ã«ãããã¼ã¿å¦çãé¤ãéçºã«è¦"
+"ããæéã大å¹
ã«åæ¸ãããã¨ãå¯è½ã«ãªãã¾ãã"
#. Tag: para
-#: preface.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
"persistence related programming tasks. Hibernate may not be the best "
@@ -60,49 +60,47 @@
"specific SQL code and will help with the common task of result set "
"translation from a tabular representation to a graph of objects."
msgstr ""
-"Hibernateã®æçµç®æ¨ã¯ããã¼ã¿ã®æ°¸ç¶åã«é¢ããä¸è¬çãªããã°ã©ãã³ã°ä½æ¥ã®95ï¼
"
-"ããéçºè
ãè§£æ¾ãããã¨ã§ãã Hibernateã¯ãã¸ãã¹ãã¸ãã¯ã®å®è£
ã«ã¹ãã¢ãã"
-"ãã·ã¼ã¸ã£ã使ã ãã¼ã¿ä¸å¿ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ã®ãã¹ãã½ãªã¥ã¼ã·ã§ã³ã§ã"
-"ãã«çã¾ãã¾ããã ãªãã¸ã§ã¯ãæåãã¡ã¤ã³ã¢ãã«ã¨Javaãã¼ã¹ã®ä¸é層ã§ã®ãã¸"
-"ãã¹ãã¸ãã¯ã«å¯¾ãã¦æãå½¹ã«ç«ã¡ã¾ãã ãããHibernateã¯ãã³ãåºæã®SQLã³ã¼ã"
-"ã忏ã¾ãã¯ã«ãã»ã«åãããã 表形å¼ãããªãã¸ã§ã¯ãã®ã°ã©ãã¸ã¨ãªã¶ã«ãã»ã"
-"ãã夿ãããªã©ã®ã ä¸è¬çãªã¿ã¹ã¯ã«ãå½¹ç«ã¤ã§ãããã"
+"Hibernate ã®ç®æ¨ã¯ã éçºè
ã«ã¨ã£ã¦ã®ããã°ã©ãã³ã°ã«ãããä¸è¬çãªãã¼ã¿æ°¸ç¶"
+"æ§ã®ä½æ¥ã® 95 % ã軽æ¸ãããã¨ã§ãã Hibernate ãã¼ã¿ãã¼ã¹å
ã§ãã¸ãã¹ãã¸ã"
+"ã¯ãå®ç¾ããã¹ãã¢ãããã·ã¼ã¸ã£ã®ã¿ã使ç¨ãããã¼ã¿å¦çä¸å¿ã®ã¢ããªã±ã¼ã·ã§"
+"ã³ã«å¯¾ãã¦ã¯æé©ã§ã¯ãªãããããã¾ãããã Java ãã¼ã¹ã®ä¸é層ã§ã®ãã¸ãã¹ã"
+"ã¸ãã¯åã³ãªãã¸ã§ã¯ãæåã®ãã¡ã¤ã³ã¢ãã«ã使ç¨ããå ´åã«æãå½¹ã«ç«ã¡ã¾ãã "
+"Hibernate ã¯éçºè
ããã³ãã¼åºæã® SQL ã³ã¼ãã®é¤å»ãããã¯ã«ãã»ã«åãè¡ãé"
+"ã«ä¾¿å©ãªããã 表形å¼ã®è¡¨ç¾ãããªãã¸ã§ã¯ãã®ã°ã©ãã¸ã®çµæã»ããã®å¤æã«é¢ã"
+"ãä¸è¬çãªä½æ¥ã«å½¹ç«ã¡ã¾ãã"
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
"please follow these steps:"
msgstr ""
-"Hibernateããªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã ããã«ã¯Javaãåãã¦ã®æ¹"
-"ã¯ã以ä¸ã®ã¹ãããã«å¾ã£ã¦ãã ããï¼"
+"Hibernate åã³ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã ããã㯠Java ã䏿
£ã"
+"ãªæ¹ã¯ã æ¬¡ã®æé ãè¡ã£ã¦ãã ããã"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
-"<xref linkend=\"tutorial\"/> ãèªãã§ãã ããã æ®µéçã«è§£èª¬ãã¦ããã¾ãã "
-"ãã¥ã¼ããªã¢ã«ã®ã½ã¼ã¹ã³ã¼ãã¯ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® <literal>doc/"
-"reference/tutorial</literal> ãã£ã¬ã¯ããªã«å«ã¾ãã¦ãã¾ãã"
+"ã¹ããããã¤ã¹ãããã®è§£èª¬ãè¡ããã¦ãããã¥ã¼ããªã¢ã«ã¨ã㦠<xref linkend="
+"\"tutorial\"/> ããèªã¿ãã ããã ãã¥ã¼ããªã¢ã«ã®ã½ã¼ã¹ã³ã¼ãã¯ãã®ãã£ã¹ã"
+"ãªãã¥ã¼ã·ã§ã³ã® <literal>doc/reference/tutorial/</literal> ãã£ã¬ã¯ããªé
ä¸"
+"ã«ããã¾ãã"
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
msgstr ""
-"<xref linkend=\"architecture\"/> ãèªãã§ãHibernateãå©ç¨å¯è½ãªç°å¢ãçè§£ã"
-"ã¦ãã ããã"
+"Hibernate ã使ç¨ã§ããç°å¢ã«ã¤ãã¦çè§£ããããã <xref linkend=\"architecture"
+"\"/> ããèªã¿ãã ããã"
#. Tag: para
-#: preface.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
"contains a simple standalone application. Copy your JDBC driver to the "
@@ -111,62 +109,57 @@
"command prompt in the distribution directory, type <literal>ant eg</literal> "
"(using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
-"Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® <literal>eg/</literal> ãã£ã¬ã¯ããªãè¦ã¦ã"
-"ã ããã ç°¡åãªã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ãããã¾ãã JDBCãã©ã¤ãã "
-"<literal>lib/</literal> ãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ã èªåã®ãã¼ã¿ãã¼ã¹ã«åãæ£"
-"ããå¤ãæå®ããããã« <literal>etc/hibernate.properties</literal> ãç·¨éãã¦"
-"ãã ããã ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãã£ã¬ã¯ããªãããã³ãã³ãããã³ããã§ "
-"<literal>ant eg</literal> ã¨ã¿ã¤ããã¦ãã ããï¼Antã使ãã¾ãï¼ã ã¾ãWindows"
-"ç°å¢ã§ã¯ <literal>build eg</literal> ã¨ã¿ã¤ããã¦ãã ããã"
+"Hibernate ãã£ã¹ããªãã¥ã¼ã·ã§ã³å
ã® <literal>eg/</literal> ãã£ã¬ã¯ããªå
ã"
+"è¦ã¦ãã ããã ã·ã³ãã«ãªã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ãå«ã¾ãã¦ãã¾"
+"ãã ã使ç¨ã® JDBC ãã©ã¤ãã <literal>lib/</literal> ãã£ã¬ã¯ããªã«ã³ãã¼ã"
+"ã¦ãã使ç¨ãããã¼ã¿ãã¼ã¹ã«å¯¾ãã¦æ£ããå¤ãæå®ãããã <literal>etc/"
+"hibernate.properties</literal> ãç·¨éãã¾ãã ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãã£ã¬ã¯"
+"ããªå
ã®ã³ãã³ãããã³ããããã <literal>ant eg</literal> (Ant ã使ç¨)ã¨å
¥å"
+"ãããã Windows ç°å¢ã®å ´å㯠<literal>build eg</literal> ã¨å
¥åãã¾ãã"
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
-"ãã®ãªãã¡ã¬ã³ã¹ããã¥ã¡ã³ãã第ä¸ã®æ
å ±æºã¨ãã¦å©ç¨ãã¦ãã ããã ã¢ããªã±ã¼"
-"ã·ã§ã³è¨è¨ã«ã¤ãã¦ã®ãããªãæ
å ±ãæ®µéçãªãã¥ã¼ããªã¢ã«ãæ¢ãã¦ãããªãã "
-"<emphasis>Java Persistence with Hibernate</emphasis>ï¼http://www.manning.com/"
-"bauer2ï¼ ããããããã¾ãã ã¾ãhttp://caveatemptor.hibernate.orgãã Java "
-"Persistence with Hibernateã®ä¾é¡ã®ã¢ããªã±ã¼ã·ã§ã³ããã¦ã³ãã¼ãã§ãã¾ãã"
+"ãããªæ
å ±æºã¨ãã¦æ¬ãªãã¡ã¬ã³ã¹ããã¥ã¡ã³ãããå©ç¨ãã ããã ã¢ããªã±ã¼ã·ã§"
+"ã³ã®ãã¶ã¤ã³ã«é¢ãã詳細ã ã¹ããããã¤ã¹ãããã«ãã解説ãå¿
è¦ãªå ´åã¯ã "
+"<emphasis>Hibernate in Action</emphasis> (http://www.manning.com/bauer) ãã"
+"èªã¿ã«ãªã£ã¦ãããã§ãããã ã¾ãã http://caveatemptor.hibernate.org ãã "
+"Hibernate in Action ã®ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ããã¦ã³ãã¼ããããã¨ãã§ãã¾"
+"ãã"
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
-msgstr "FAQã¯Hibernateã¦ã§ããµã¤ãã«ããã¾ãã"
+msgstr "ãããã質åã¨ãã®çã (FAQ) 㯠Hibernate ã¦ã§ããµã¤ãã§ã覧ãã ããã"
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
"Hibernate website."
msgstr ""
-"ãµã¼ããã¼ãã£ã®ãã¢ãä¾ããã¥ã¼ããªã¢ã«ã¯Hibernateã¦ã§ããµã¤ãã«ãªã³ã¯ããã"
-"ã¾ãã"
+"ãµã¼ããã¼ãã£ã®ãã¢ã ãµã³ãã«ã ãã¥ã¼ããªã¢ã«ãªã©ã¯ Hibernate ã®ã¦ã§ããµã¤"
+"ãä¸ã«ãªã³ã¯ããã¦ãã¾ãã"
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
"patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, "
"etc.)."
msgstr ""
-"Hibernateã¦ã§ããµã¤ãã®ã³ãã¥ããã£ã¨ãªã¢ã¯ããã¶ã¤ã³ãã¿ã¼ã³ããã¾ãã¾ãªçµ±å"
-"ã½ãªã¥ã¼ã·ã§ã³ ï¼Tomcat, JBoss AS, Struts, EJB, çï¼ã«ã¤ãã¦ã®ããæ
å ±æºã§"
-"ãã"
+"Hibernate ã¦ã§ããµã¤ãä¸ã® Community Area ã¯ãã¶ã¤ã³ã®ãã¿ã¼ã³ããã¾ãã¾ãªçµ±"
+"åã½ãªã¥ã¼ã·ã§ã³ (Tomcatã JBoss ASã Strutsã EJB ãªã©)ãæ¤ç´¢ããä¸ã§è峿·±"
+"ããªã½ã¼ã¹ã«ãªãã¾ãã"
#. Tag: para
-#: preface.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
"We also provide a JIRA issue tracking system for bug reports and feature "
@@ -174,14 +167,13 @@
"developer mailing list. If you are interested in translating this "
"documentation into your language, contact us on the developer mailing list."
msgstr ""
-"質åãããã°Hibernateã¦ã§ããµã¤ãã®ã¦ã¼ã¶ãã©ã¼ã©ã ãæ´»ç¨ãã¦ãã ããã ã¾ã"
-"ãã°ã¬ãã¼ãã¨ãã£ã¼ãã£ãªã¯ã¨ã¹ãã®ããJIRA課é¡è¿½è·¡ã·ã¹ãã ãç¨æãã¦ãã¾"
-"ãã Hibernateã®éçºã«èå³ãããã°ãéçºè
ã¡ã¼ãªã³ã°ãªã¹ãã«åå ãã¦ãã ã"
-"ãã ãã®ããã¥ã¡ã³ããããªãã®å½ã®è¨èã«ç¿»è¨³ãããå ´åã¯ã éçºè
ã¡ã¼ãªã³ã°"
-"ãªã¹ãã§ç§ãã¡ã«ã³ã³ã¿ã¯ããåã£ã¦ãã ããã"
+"質åãããå ´åã¯ã Hibernate ã¦ã§ããµã¤ãä¸ã«ãªã³ã¯ãããã¦ã¼ã¶ã¼ãã©ã¼ã©ã ã"
+"ãå©ç¨ãã ããã ã¾ãã ãã°å ±ååã³ä»å¾ã®ãªã¯ã¨ã¹ãã«é¢ãã¦ã¯ JIRA (åé¡è¿½è·¡"
+"ã·ã¹ãã ) ãæä¾ãã¦ãã¾ãã Hibernate, ã®éçºã«èå³ãããæ¹ã¯ã éçºè
ç¨ã¡ã¼"
+"ãªã³ã°ãªã¹ãã«ãåå ãã ããã æ¬ããã¥ã¡ã³ãã®ç¿»è¨³ã«èå³ãããæ¹ã¯ã éçºè
"
+"ç¨ã¡ã¼ãªã³ã°ãªã¹ããããé£çµ¡ãã ããã"
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
@@ -190,7 +182,8 @@
"critical component of the JBoss Enterprise Middleware System (JEMS) suite of "
"products."
msgstr ""
-"åç¨éçºã®ãµãã¼ãã製åã®ãµãã¼ããHibernateã®ãã¬ã¼ãã³ã°ã¯JBoss Inc.ãæä¾"
-"ãã¦ãã¾ã ï¼http://www.hibernate.org/SupportTraining/ãè¦ã¦ãã ããï¼ã "
-"Hibernateã¯Professional Open Sourceããã¸ã§ã¯ãã ããã¦JBoss Enterprise "
-"Middleware Systemï¼JEMSï¼ãããã¯ãã¹ã¤ã¼ãã®ã¯ãªãã£ã«ã«ã³ã³ãã¼ãã³ãã§ãã"
+"Hibernate ã«é¢ãã忥ç¨éçºãµãã¼ãã å®ç¨¼åãµãã¼ãã ãã¬ã¼ãã³ã°ã«ã¤ãã¦"
+"㯠JBoss Inc ãããå©ç¨é ãã¾ã (http://www.hibernate.org/SupportTraining/ ã"
+"åç
§)ã Hibernate ã¯ãããã§ãã·ã§ãã«ãªãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã§ããã "
+"JBoss Enterprise Middleware System (JEMS) ã¹ã£ã¼ã製åã®éè¦ãªã³ã³ãã¼ãã³ã"
+"ã«ãªãã¾ãã"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,62 +1,51 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-18 13:38+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
-msgstr "Criteriaã¯ã¨ãª"
+msgstr "Criteria ã¯ã¨ãª"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
-msgstr "Hibernateã«ã¯ãç´æçã§æ¡å¼µå¯è½ãªcriteriaã¯ã¨ãªAPIãç¨æããã¦ãã¾ãã"
+msgstr ""
+"Hibernate ã«ã¯ãç´æçã§æ¡å¼µå¯è½ãª criteria ã¯ã¨ãª API ãç¨æããã¦ãã¾ãã"
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
msgstr "<literal>Criteria</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ä½æ"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
"against a particular persistent class. The <literal>Session</literal> is a "
"factory for <literal>Criteria</literal> instances."
msgstr ""
-"<literal>org.hibernate.Criteria</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ç¹å®ã®æ°¸ç¶æ§ã¯ã©"
+"<literal>org.hibernate.Criteria</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ç¹å®ã®æ°¸ç¶æ§ã¯ã©"
"ã¹ã«å¯¾ããã¯ã¨ãªã表ç¾ãã¾ãã <literal>Session</literal> 㯠"
"<literal>Criteria</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ãã¡ã¯ããªã§ãã"
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
msgstr "ãªã¶ã«ãã»ããã®çµè¾¼ã¿"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -64,127 +53,54 @@
"criterion.Restrictions</literal> defines factory methods for obtaining "
"certain built-in <literal>Criterion</literal> types."
msgstr ""
-"<literal>org.hibernate.criterion.Criterion</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¤ã³ã¹"
-"ã¿ã³ã¹ã¯ã åå¥ã®ã¯ã¨ãªã¯ã©ã¤ããªãªã³ï¼åãåããã®å¤å®åºæºï¼ã表ãã¾ãã "
+"<literal>org.hibernate.criterion.Criterion</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ã¤ã³ã¹"
+"ã¿ã³ã¹ã¯ãåå¥ã®ã¯ã¨ãªã¯ã©ã¤ããªãªã³ï¼åãåããã®å¤å®åºæºï¼ã表ãã¾ãã "
"<literal>org.hibernate.criterion.Restrictions</literal> ã¯ã©ã¹ã¯ãããçµã¿è¾¼"
"ã¿ã® <literal>Criterion</literal> åãåå¾ããããã®ãã¡ã¯ããªã¡ã½ãããæã£"
"ã¦ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:59
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
+msgid "Restrictions can be grouped logically."
+msgstr "Restriction ï¼éå®ï¼ã¯ãè«ççã«ã°ã«ã¼ãåã§ãã¾ãã"
#. Tag: para
-#: query_criteria.xml:61
-#, fuzzy, no-c-format
-msgid "Restrictions can be grouped logically."
-msgstr "Restrictionï¼éå®ï¼ã¯ãè«ççã«ã°ã«ã¼ãåã§ãã¾ãã"
-
-#. Tag: programlisting
-#: query_criteria.xml:65
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:69
-#, fuzzy, no-c-format
-msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
"literal> subclasses). One of the most useful allows you to specify SQL "
"directly."
msgstr ""
-"å
ã
ããCriterionåï¼<literal>Restrictions</literal> ã®ãµãã¯ã©ã¹ï¼ ã¯ããªã"
-"ã®ç¯å²ã«åã³ã¾ãããç¹ã«æç¨ãªã®ã¯SQLãç´æ¥æå®ã§ãããã®ã§ãã"
+"å
ã
ãã Criterion åï¼<literal>Restrictions</literal> ã®ãµãã¯ã©ã¹ï¼ ã¯ããª"
+"ãã®ç¯å²ã«åã³ã¾ãããç¹ã«æç¨ãªã®ã¯ SQL ãç´æ¥æå®ã§ãããã®ã§ãã"
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
"of the queried entity."
msgstr ""
-"<literal>{alias}</literal> ã¨ãããã¬ã¼ã¹ãã«ãã¯ã åãåãããåããã¨ã³"
-"ãã£ãã£ã®è¡ã®å¥åã«ãã£ã¦ç½®ãæãããã¾ãã"
+"<literal>{alias}</literal> ã¨ãããã¬ã¼ã¹ãã«ãã¯ãåãåãããåããã¨ã³ãã£"
+"ãã£ã®è¡ã®å¥åã«ãã£ã¦ç½®ãæãããã¾ãã"
#. Tag: para
-#: query_criteria.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
"You can create a <literal>Property</literal> by calling <literal>Property."
"forName()</literal>:"
msgstr ""
-"criterionãå¾ãå¥ã®ææ®µã¯ã <literal>Property</literal> ã¤ã³ã¹ã¿ã³ã¹ããåå¾"
+"criterion ãå¾ãå¥ã®ææ®µã¯ã <literal>Property</literal> ã¤ã³ã¹ã¿ã³ã¹ããåå¾"
"ãããã¨ã§ãã <literal>Property.forName()</literal> ãå¼ã³åºãã¦ã "
"<literal>Property</literal> ã¤ã³ã¹ã¿ã³ã¹ã使ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
msgstr "çµæã®æ´å"
#. Tag: para
-#: query_criteria.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
"literal>."
@@ -192,87 +108,36 @@
"<literal>org.hibernate.criterion.Order</literal> ã使ã£ã¦çµæãä¸¦ã³æ¿ãããã¨"
"ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
msgstr "é¢é£"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:114
-#, fuzzy, no-c-format
-msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
"<literal>Criteria</literal> that refers to the elements of the "
"<literal>kittens</literal> collection."
msgstr ""
-"2çªç®ã® <literal>createCriteria()</literal> ã¯ã<literal>kittens</literal> ã³"
-"ã¬ã¯ã·ã§ã³ã®è¦ç´ ãåç
§ããæ°ãã <literal>Criteria</literal> ã¤ã³ã¹ã¿ã³ã¹ãè¿"
-"ããã¨ã«æ³¨æãã¦ãã ããã"
+"2çªç®ã® <literal>createCriteria()</literal> ã¯ã <literal>kittens</literal> "
+"ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ãåç
§ããæ°ãã <literal>Criteria</literal> ã¤ã³ã¹ã¿ã³ã¹ã"
+"è¿ããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: query_criteria.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
msgstr "以ä¸ã®ãããªæ¹æ³ããç¶æ³ã«ããæç¨ã§ãã"
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
@@ -282,8 +147,7 @@
"ã¹ã¿ã³ã¹ã使ãã¾ãããï¼"
#. Tag: para
-#: query_criteria.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
"returned by the previous two queries are <emphasis>not</emphasis> pre-"
@@ -291,154 +155,113 @@
"match the criteria, you must use a <literal>ResultTransformer</literal>."
msgstr ""
"åã®2ã¤ã®ã¯ã¨ãªã«ãã£ã¦è¿ããã <literal>Cat</literal> ã¤ã³ã¹ã¿ã³ã¹ã«ãã£ã¦ä¿"
-"æãããkittensã³ã¬ã¯ã·ã§ã³ã¯ã criteriaã«ãã£ã¦äºåã«ãã£ã«ã¿ãªã³ã° "
-"<emphasis>ãããªã</emphasis> ãã¨ã«æ³¨æãã¦ãã ããã ããcriteriaã«é©åãã"
-"kittenãåå¾ããããªãã <literal>ResultTransformer</literal> ã使ããªããã°"
-"ãªãã¾ããã"
+"æããã kittens ã³ã¬ã¯ã·ã§ã³ã¯ã criteria ã«ãã£ã¦äºåã«ãã£ã«ã¿ãªã³ã° "
+"<emphasis>ãããªã</emphasis> ãã¨ã«æ³¨æãã¦ãã ããããã criteria ã«é©åã"
+"ã kitten ãåå¾ããããªãã <literal>ResultTransformer</literal> ã使ããªã"
+"ãã°ãªãã¾ããã"
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
+msgid "Additionally you may manipulate the result set using a left outer join:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
#. Tag: title
-#: query_criteria.xml:143
#, no-c-format
msgid "Dynamic association fetching"
msgstr "é¢é£ã®åçãã§ãã"
#. Tag: para
-#: query_criteria.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify association fetching semantics at runtime using "
"<literal>setFetchMode()</literal>."
msgstr ""
-"<literal>setFetchMode()</literal> ã使ãã å®è¡æã«é¢é£ã®å¾©å
æ¹æ³ãæå®ãã¦ã"
+"<literal>setFetchMode()</literal> ã使ããå®è¡æã«é¢é£ã®å¾©å
æ¹æ³ãæå®ãã¦ã"
"ããã§ãã"
-#. Tag: programlisting
-#: query_criteria.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:152
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
msgstr ""
"ãã®ã¯ã¨ãªã¯å¤é¨çµåã«ãã <literal>mate</literal> 㨠<literal>kittens</"
-"literal> ã®ä¸¡æ¹ããã§ãããã¾ãã ããå¤ãã®æ
å ±ã¯ <xref linkend="
-"\"performance-fetching\"/> ãåç
§ãã¦ãã ããã"
+"literal> ã®ä¸¡æ¹ããã§ãããã¾ãã詳細ã«ã¤ãã¦ã¯ <xref linkend=\"performance-"
+"fetching\"/> ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
msgstr "ã¯ã¨ãªã®ä¾"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
"construct a query criterion from a given instance."
msgstr ""
-"<literal>org.hibernate.criterion.Example</literal> ã¯ã©ã¹ã¯ã ä¸ããããã¤ã³"
-"ã¹ã¿ã³ã¹ããã¯ã¨ãªã¯ã©ã¤ããªãªã³ãæ§ç¯ã§ãã¾ãã"
+"<literal>org.hibernate.criterion.Example</literal> ã¯ã©ã¹ã¯ãä¸ããããã¤ã³ã¹"
+"ã¿ã³ã¹ããã¯ã¨ãªã¯ã©ã¤ããªãªã³ãæ§ç¯ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
"null valued properties are excluded."
msgstr ""
-"ãã¼ã¸ã§ã³ããããã£ãèå¥åãé¢é£ã¯ç¡è¦ããã¾ãã ããã©ã«ãã§ã¯nullå¤ã®ãã"
-"ããã£ã¯é¤å¤ããã¾ãã"
+"ãã¼ã¸ã§ã³ããããã£ãèå¥åãé¢é£ã¯ç¡è¦ããã¾ããããã©ã«ãã§ã¯ null å¤ã®ã"
+"ãããã£ã¯é¤å¤ããã¾ãã"
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
msgstr ""
-"ã©ã®ããã« <literal>Example</literal> ãé©ç¨ããã 調æ´ãããã¨ãã§ãã¾ãã"
+"ã©ã®ããã« <literal>Example</literal> ãé©ç¨ããã調æ´ãããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
msgstr ""
-"é¢é£ãªãã¸ã§ã¯ãã«criteriaãæå®ããããã«ãExampleã使ããã¨ãå¯è½ã§ãã"
+"é¢é£ãªãã¸ã§ã¯ãã« criteria ãæå®ããããã«ã example ã使ããã¨ãå¯è½ã§ãã"
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
msgstr "å°å½±ãéç´ãã°ã«ã¼ãå"
#. Tag: para
-#: query_criteria.xml:190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
"factory for <literal>Projection</literal> instances. You can apply a "
@@ -446,79 +269,31 @@
msgstr ""
"<literal>org.hibernate.criterion.Projections</literal> ã¯ã©ã¹ã¯ "
"<literal>Projection</literal> ã¤ã³ã¹ã¿ã³ã¹ã®ãã¡ã¯ããªã§ãã "
-"<literal>setProjection()</literal> ãå¼ã³åºããã¨ã§ã ã¯ã¨ãªã«å°å½±ãé©ç¨ãã¾"
+"<literal>setProjection()</literal> ãå¼ã³åºããã¨ã§ãã¯ã¨ãªã«å°å½±ãé©ç¨ãã¾"
"ãã"
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
"projection types are defined to be <emphasis>grouping projections</"
"emphasis>, which also appear in the SQL <literal>group by</literal> clause."
msgstr ""
-"å¿
è¦ã§ãã£ã¦ããcriteriaã¯ã¨ãªã«ãgroup byããæç¤ºããå¿
è¦ã¯ããã¾ããã ãã"
-"種ã®Projectionå㯠<emphasis>ã°ã«ã¼ãåå°å½±</emphasis> ã¨ãã¦å®ç¾©ããã SQL"
-"ã® <literal>group by</literal> ç¯ã«ãç¾ãã¾ãã"
+"å¿
è¦ã§ãã£ã¦ãã criteria ã¯ã¨ãªã«ãgroup byããæç¤ºããå¿
è¦ã¯ããã¾ãããã"
+"ã種㮠Projection å㯠<emphasis>ã°ã«ã¼ãåå°å½±</emphasis> ã¨ãã¦å®ç¾©ããã "
+"SQL ã® <literal>group by</literal> ç¯ã«ãç¾ãã¾ãã"
#. Tag: para
-#: query_criteria.xml:206
#, fuzzy, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
"referred to in restrictions or orderings. Here are two different ways to do "
"this:"
msgstr ""
-"ä»»æã§å°å½±ã«å¥åãä»ãããããããå°å½±ãããå¤ã¯restrictionãorderingå
ããå"
-"ç
§ã§ãã¾ãã å¥åãã¤ããï¼ã¤ã®ç°ãªãæ¹æ³ã示ãã¾ãã"
+"ä»»æã§å°å½±ã«å¥åãä»ãããããããå°å½±ãããå¤ã¯ restriction ã ordering å
ã"
+"ãåç
§ã§ãã¾ããå¥åãã¤ããï¼ã¤ã®ç°ãªãæ¹æ³ã示ãã¾ã:"
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -526,171 +301,57 @@
"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
"you add the projection to a projection list:"
msgstr ""
-"<literal>alias()</literal> 㨠<literal>as()</literal> ã¡ã½ããã¯ã Projection"
-"ã¤ã³ã¹ã¿ã³ã¹ãå¥ã®ååã® <literal>Projection</literal> ã¤ã³ã¹ã¿ã³ã¹ã§ ã©ãã"
-"ããã ãã§ãã ã·ã§ã¼ãã«ããã¨ãã¦ãå°å½±ãå°å½±ãªã¹ãã«è¿½å ããéã«ãå¥åãã¤"
-"ãããã¾ãã"
+"<literal>alias()</literal> 㨠<literal>as()</literal> ã¡ã½ããã¯ã "
+"Projection ã¤ã³ã¹ã¿ã³ã¹ãå¥ã®ååã® <literal>Projection</literal> ã¤ã³ã¹ã¿ã³"
+"ã¹ã§ã©ããããã ãã§ããã·ã§ã¼ãã«ããã¨ãã¦ãå°å½±ãå°å½±ãªã¹ãã«è¿½å ããé"
+"ã«ãå¥åãã¤ãããã¾ã:"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
"projections:"
-msgstr "å°å½±ã®å¼ã« <literal>Property.forName()</literal> ã使ç¨ã§ãã¾ãã"
+msgstr "å°å½±ã®å¼ã« <literal>Property.forName()</literal> ã使ç¨ã§ãã¾ã:"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
msgstr "ã¯ã¨ãªããã³ãµãã¯ã¨ãªã®åé¢"
#. Tag: para
-#: query_criteria.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
"outside the scope of a session and then execute it using an arbitrary "
"<literal>Session</literal>."
msgstr ""
-"<literal>DetachedCriteria</literal> ã¯ã©ã¹ã«ããã ã»ãã·ã§ã³ã¹ã³ã¼ãå¤ã«ã¯ã¨"
-"ãªã使ã§ãã¾ãã å¾ã§ãä»»æã® <literal>Session</literal> ã使ã£ã¦ãå®è¡ã§ã"
+"<literal>DetachedCriteria</literal> ã¯ã©ã¹ã«ãããã»ãã·ã§ã³ã¹ã³ã¼ãå¤ã«ã¯ã¨"
+"ãªã使ã§ãã¾ããå¾ã§ãä»»æã® <literal>Session</literal> ã使ã£ã¦ãå®è¡ã§ã"
"ã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:246
-#, fuzzy, no-c-format
-msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
"subquery. Criterion instances involving subqueries can be obtained via "
"<literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
"<literal>DetachedCriteria</literal> ã¯ããµãã¯ã¨ãªã表ç¾ããããã«ã使ãã¾"
-"ãã ãµãã¯ã¨ãªãä¼´ãCriterionã¤ã³ã¹ã¿ã³ã¹ã¯ã <literal>Subqueries</literal> "
-"ããã㯠<literal>Property</literal> ããå¾ããã¾ãã"
+"ãããµãã¯ã¨ãªãä¼´ã Criterion ã¤ã³ã¹ã¿ã³ã¹ã¯ã <literal>Subqueries</"
+"literal> ããã㯠<literal>Property</literal> ããå¾ããã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:252
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:256
-#, fuzzy, no-c-format
msgid "Correlated subqueries are also possible:"
-msgstr "ç¸äºé¢ä¿ããããµãã¯ã¨ãªã§ãããå¯è½ã§ãã"
+msgstr "ç¸äºé¢ä¿ããããµãã¯ã¨ãªã§ãããå¯è½ã§ã:"
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
msgstr "èªç¶èå¥åã«ããã¯ã¨ãª"
#. Tag: para
-#: query_criteria.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
"efficient because query cache invalidation occurs too frequently. However, "
@@ -699,79 +360,544 @@
"applications, this kind of query occurs frequently. The criteria API "
"provides special provision for this use case."
msgstr ""
-"criteriaã¯ã¨ãªãå«ãããã¦ãã®ã¯ã¨ãªã«ã¨ã£ã¦ã ã¯ã¨ãªãã£ãã·ã¥ã¯ãã¾ãå¹çã"
-"ãããªãã§ãã ãªããªããã¯ã¨ãªãã£ãã·ã¥ãé »ç¹ã«ç¡å¹ã«ãªãããã§ãã ããã"
-"ãªããããã£ãã·ã¥ãç¡å¹ã«ããã¢ã«ã´ãªãºã ãæé©åã§ãã ç¹å¥ãªã¯ã¨ãªã®ç¨®é¡ã"
-"ï¼ã¤ããã¾ãã æ´æ°ãããªãèªç¶ãã¼ã«ããæ¤ç´¢ã§ãã ããã¤ãã®ã¢ããªã±ã¼ã·ã§"
-"ã³ã§ã¯ããã®ç¨®é¡ã®ã¯ã¨ãªãé »ç¹ã«ç¾ãã¾ãã ãã®ãããªä½¿ããæ¹ã®ããã«ã"
-"criteria APIã¯ç¹å¥ãªå¯¾çãæä¾ãã¾ãã"
+"criteria ã¯ã¨ãªãå«ãããã¦ãã®ã¯ã¨ãªã«ã¨ã£ã¦ãã¯ã¨ãªãã£ãã·ã¥ã¯ãã¾ãå¹çã"
+"ãããªãã§ãããªããªããã¯ã¨ãªãã£ãã·ã¥ãé »ç¹ã«ç¡å¹ã«ãªãããã§ããããããª"
+"ããããã£ãã·ã¥ãç¡å¹ã«ããã¢ã«ã´ãªãºã ãæé©åã§ããç¹å¥ãªã¯ã¨ãªã®ç¨®é¡ãï¼"
+"ã¤ããã¾ããæ´æ°ãããªãèªç¶ãã¼ã«ããæ¤ç´¢ã§ããããã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§"
+"ã¯ããã®ç¨®é¡ã®ã¯ã¨ãªãé »ç¹ã«ç¾ãã¾ãããã®ãããªä½¿ããæ¹ã®ããã«ã criteria "
+"API ã¯ç¹å¥ãªå¯¾çãæä¾ãã¾ãã"
#. Tag: para
-#: query_criteria.xml:279
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
"literal> and enable use of the second-level cache."
msgstr ""
-"æåã«ã<literal><natural-id></literal> ã使ã£ã¦ã ã¨ã³ãã£ãã£ã®èªç¶"
-"ãã¼ãããããã¦ãã ããã ããã¦ãäºæ¬¡ãã£ãã·ã¥ãæå¹ã«ãã¾ãã"
+"æåã«ã <literal><natural-id></literal> ã使ã£ã¦ãã¨ã³ãã£ãã£ã®èªç¶"
+"ãã¼ãããããã¦ãã ãããããã¦ãäºæ¬¡ãã£ãã·ã¥ãæå¹ã«ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:284
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:286
-#, fuzzy, no-c-format
-msgid ""
"This functionality is not intended for use with entities with "
"<emphasis>mutable</emphasis> natural keys."
msgstr ""
-"注æï¼ <emphasis>夿´ããã</emphasis> èªç¶ãã¼ãæã¤ã¨ã³ãã£ãã£ã« ãã®æ©è½"
-"ã使ãã®ã¯ãæå³ããã¦ããªãä½¿ãæ¹ã§ãã"
+"注è¨ï¼ <emphasis>夿´ããã</emphasis> èªç¶ãã¼ãæã¤ã¨ã³ãã£ãã£ã«ãã®æ©è½ã"
+"使ãã®ã¯ãæå³ããã¦ããªãä½¿ãæ¹ã§ãã"
#. Tag: para
-#: query_criteria.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
"naturalId()</literal> allows you to make use of the more efficient cache "
"algorithm."
msgstr ""
-"ããã§ã<literal>Restrictions.naturalId()</literal> ã«ããã ããå¹ççãª"
+"ããã§ã <literal>Restrictions.naturalId()</literal> ã«ãããããå¹ççãª"
"ãã£ãã·ã¥ã¢ã«ã´ãªãºã ã使ç¨ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
+#~ "crit.setMaxResults(50);\n"
+#~ "List cats = crit.list();]]>"
+#~ msgstr ""
+#~ "Criteria crit = sess.createCriteria(Cat.class);\n"
+#~ "crit.setMaxResults(50);\n"
+#~ "List cats = crit.list();"
+#, fuzzy
#~ msgid ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
+#~ " .list();]]>"
#~ msgstr ""
-#~ "<literal>createCriteria()</literal> ã使ããé¢é£ãããã²ã¼ããããã¨ã§ã "
-#~ "容æã«é¢ä¿ããã¨ã³ãã£ãã£ã«å¶ç´ãæå®ã§ãã¾ãã"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
+#~ " .list();"
-#~ msgid "Next, enable the Hibernate query cache."
-#~ msgstr "次ã«ãHibernateã¯ã¨ãªãã£ãã·ã¥ãæå¹ã«ãã¾ãã"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.or(\n"
+#~ " Restrictions.eq( \"age\", new Integer(0) ),\n"
+#~ " Restrictions.isNull(\"age\")\n"
+#~ " ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.or(\n"
+#~ " Restrictions.eq( \"age\", new Integer(0) ),\n"
+#~ " Restrictions.isNull(\"age\")\n"
+#~ " ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", "
+#~ "\"Pk\" } ) )\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( Restrictions.isNull(\"age\") )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", "
+#~ "\"Pk\" } ) )\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( Restrictions.isNull(\"age\") )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)"
+#~ "\", \"Fritz%\", Hibernate.STRING) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)"
+#~ "\", \"Fritz%\", \n"
+#~ " Hibernate.STRING) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "Property age = Property.forName(\"age\");\n"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( age.isNull() )\n"
+#~ " .add( age.eq( new Integer(0) ) )\n"
+#~ " .add( age.eq( new Integer(1) ) )\n"
+#~ " .add( age.eq( new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi"
+#~ "\", \"Pk\" } ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Property age = Property.forName(\"age\");\n"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( age.isNull() )\n"
+#~ " .add( age.eq( new Integer(0) ) )\n"
+#~ " .add( age.eq( new Integer(1) ) )\n"
+#~ " .add( age.eq( new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi"
+#~ "\", \"Pk\" } ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\")\n"
+#~ " .addOrder( Order.asc(\"name\") )\n"
+#~ " .addOrder( Order.desc(\"age\") )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\")\n"
+#~ " .addOrder( Order.asc(\"name\") )\n"
+#~ " .addOrder( Order.desc(\"age\") )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"name\").like(\"F%\") )\n"
+#~ " .addOrder( Property.forName(\"name\").asc() )\n"
+#~ " .addOrder( Property.forName(\"age\").desc() )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"name\").like(\"F%\") )\n"
+#~ " .addOrder( Property.forName(\"name\").asc() )\n"
+#~ " .addOrder( Property.forName(\"age\").desc() )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .createCriteria(\"kittens\")\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .createCriteria(\"kittens\")\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createAlias(\"kittens\", \"kt\")\n"
+#~ " .createAlias(\"mate\", \"mt\")\n"
+#~ " .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createAlias(\"kittens\", \"kt\")\n"
+#~ " .createAlias(\"mate\", \"mt\")\n"
+#~ " .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createCriteria(\"kittens\", \"kt\")\n"
+#~ " .add( Restrictions.eq(\"name\", \"F%\") )\n"
+#~ " .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
+#~ " .list();\n"
+#~ "Iterator iter = cats.iterator();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Map map = (Map) iter.next();\n"
+#~ " Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
+#~ " Cat kitten = (Cat) map.get(\"kt\");\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createCriteria(\"kittens\", \"kt\")\n"
+#~ " .add( Restrictions.eq(\"name\", \"F%\") )\n"
+#~ " .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
+#~ " .list();\n"
+#~ "Iterator iter = cats.iterator();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Map map = (Map) iter.next();\n"
+#~ " Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
+#~ " Cat kitten = (Cat) map.get(\"kt\");\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .setFetchMode(\"mate\", FetchMode.EAGER)\n"
+#~ " .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .setFetchMode(\"mate\", FetchMode.EAGER)\n"
+#~ " .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new Cat();\n"
+#~ "cat.setSex('F');\n"
+#~ "cat.setColor(Color.BLACK);\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Cat cat = new Cat();\n"
+#~ "cat.setSex('F');\n"
+#~ "cat.setColor(Color.BLACK);\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Example example = Example.create(cat)\n"
+#~ " .excludeZeroes() //exclude zero valued properties\n"
+#~ " .excludeProperty(\"color\") //exclude the property named \"color\"\n"
+#~ " .ignoreCase() //perform case insensitive string "
+#~ "comparisons\n"
+#~ " .enableLike(); //use like for string comparisons\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add(example)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Example example = Example.create(cat)\n"
+#~ " .excludeZeroes() //exclude zero valued properties\n"
+#~ " .excludeProperty(\"color\") //exclude the property named \"color\"\n"
+#~ " .ignoreCase() //perform case insensitive string "
+#~ "comparisons\n"
+#~ " .enableLike(); //use like for string comparisons\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add(example)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .createCriteria(\"mate\")\n"
+#~ " .add( Example.create( cat.getMate() ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .createCriteria(\"mate\")\n"
+#~ " .add( Example.create( cat.getMate() ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.rowCount() )\n"
+#~ " .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.rowCount() )\n"
+#~ " .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount() )\n"
+#~ " .add( Projections.avg(\"weight\") )\n"
+#~ " .add( Projections.max(\"weight\") )\n"
+#~ " .add( Projections.groupProperty(\"color\") )\n"
+#~ " )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount() )\n"
+#~ " .add( Projections.avg(\"weight\") )\n"
+#~ " .add( Projections.max(\"weight\") )\n"
+#~ " .add( Projections.groupProperty(\"color\") )\n"
+#~ " )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.alias( Projections.groupProperty(\"color"
+#~ "\"), \"colr\" ) )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.alias( Projections.groupProperty(\"color"
+#~ "\"), \"colr\" ) )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount(), \"catCountByColor\" )\n"
+#~ " .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
+#~ " .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
+#~ " .add( Projections.groupProperty(\"color\"), \"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount(), \"catCountByColor\" )\n"
+#~ " .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
+#~ " .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
+#~ " .add( Projections.groupProperty(\"color\"), \"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
+#~ " .createAlias(\"kittens\", \"kit\")\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.property(\"cat.name\"), \"catName\" )\n"
+#~ " .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.asc(\"catName\") )\n"
+#~ " .addOrder( Order.asc(\"kitName\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Domestic.class, \"cat\")\n"
+#~ " .createAlias(\"kittens\", \"kit\")\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.property(\"cat.name\"), \"catName\" )\n"
+#~ " .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.asc(\"catName\") )\n"
+#~ " .addOrder( Order.asc(\"kitName\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"name\") )\n"
+#~ " .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"name\") )\n"
+#~ " .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount().as(\"catCountByColor\") )\n"
+#~ " .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
+#~ " .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
+#~ " .add( Property.forName(\"color\").group().as(\"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount().as(\"catCountByColor\") )\n"
+#~ " .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
+#~ " .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
+#~ " .add( Property.forName(\"color\").group().as(\"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .add( Property.forName(\"sex\").eq('F') );\n"
+#~ " \n"
+#~ "Session session = ....;\n"
+#~ "Transaction txn = session.beginTransaction();\n"
+#~ "List results = query.getExecutableCriteria(session).setMaxResults(100)."
+#~ "list();\n"
+#~ "txn.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .add( Property.forName(\"sex\").eq('F') );\n"
+#~ " \n"
+#~ "Session session = ....;\n"
+#~ "Transaction txn = session.beginTransaction();\n"
+#~ "List results = query.getExecutableCriteria(session).setMaxResults(100)."
+#~ "list();\n"
+#~ "txn.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat."
+#~ "class)\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"weight\").gt(avgWeight) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"weight).gt(avgWeight) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\") );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Subqueries.geAll(\"weight\", weights) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\") );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Subqueries.geAll(\"weight\", weights) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
+#~ "class, \"cat2\")\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() )\n"
+#~ " .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
+#~ "session.createCriteria(Cat.class, \"cat\")\n"
+#~ " .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat.class, "
+#~ "\"cat2\")\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() )\n"
+#~ " .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
+#~ "session.createCriteria(Cat.class, \"cat\")\n"
+#~ " .add( Property.forName(\"weight).gt(avgWeightForSex) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"User\">\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <natural-id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <property name=\"org\"/>\n"
+#~ " </natural-id>\n"
+#~ " <property name=\"password\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"User\">\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <natural-id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <property name=\"org\"/>\n"
+#~ " </natural-id>\n"
+#~ " <property name=\"password\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[session.createCriteria(User.class)\n"
+#~ " .add( Restrictions.naturalId()\n"
+#~ " .set(\"name\", \"gavin\")\n"
+#~ " .set(\"org\", \"hb\") \n"
+#~ " ).setCacheable(true)\n"
+#~ " .uniqueResult();]]>"
+#~ msgstr ""
+#~ "session.createCriteria(User.class)\n"
+#~ " .add( Restrictions.naturalId()\n"
+#~ " .set(\"name\", \"gavin\")\n"
+#~ " .set(\"org\", \"hb\") \n"
+#~ " ).setCacheable(true)\n"
+#~ " .uniqueResult();"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,42 +1,41 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-13 17:08+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
-msgstr "HQL: The Hibernate Query Language"
+msgstr "HQL: Hibernate ã¯ã¨ãªè¨èª"
#. Tag: para
-#: query_hql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
-"Hibernateã¯SQLã«é常ã«ããä¼¼ã(æå³çã«ä¼¼ãã)å¼·åãªåãåããè¨èªãåãã¦ã"
-"ã¾ãã ãããSQLã«ä¼¼ãæ§æã«æããããªãã§ãã ãããHQLã¯å®å
¨ã«ãªãã¸ã§ã¯ãæ"
-"åã§ããã ç¶æ¿ãããªã¢ã¼ãã£ãºã ãé¢é£ã¨ãã£ãæ¦å¿µãçè§£ãã¾ãã"
+"Hibernate 㯠SQL ã«é常ã«ããä¼¼ã (æå³çã«ä¼¼ãã) å¼·åãªåãåããè¨èªãåã"
+"ã¦ãã¾ããããã SQL ã«ä¼¼ãæ§æã«æããããªãã§ãã ããã HQL ã¯å®å
¨ã«ãªã"
+"ã¸ã§ã¯ãæåã§ãããç¶æ¿ãããªã¢ã¼ãã£ãºã ãé¢é£ã¨ãã£ãæ¦å¿µãçè§£ãã¾ãã"
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
msgstr "大æåã¨å°æåã®åºå¥"
#. Tag: para
-#: query_hql.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</"
@@ -44,260 +43,158 @@
"hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, "
"and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
-"ã¯ã¨ãªã¯Javaã®ã¯ã©ã¹åã¨ããããã£åãé¤ãã¦å¤§æåãå°æåãåºå¥ãã¾ããã "
+"ã¯ã¨ãªã¯ Java ã®ã¯ã©ã¹åã¨ããããã£åãé¤ãã¦å¤§æåãå°æåãåºå¥ãã¾ããã"
"å¾ã£ã¦ <literal>SeLeCT</literal> 㯠<literal>sELEct</literal> ã¨åãã§ãã㤠"
-"<literal>SELECT</literal> ã¨ãåãã§ãã <literal>net.sf.hibernate.eg.FOO</"
-"literal> 㯠<literal>net.sf.hibernate.eg.Foo</literal> ã¨ã¯éããã㤠"
+"<literal>SELECT</literal> ã¨ãåãã§ãã <literal>org.hibernate.eg.FOO</"
+"literal> 㯠<literal>org.hibernate.eg.Foo</literal> ã¨ã¯éããã㤠"
"<literal>foo.barSet</literal> 㯠<literal>foo.BARSET</literal> ã¨ãéãã¾ãã"
#. Tag: para
-#: query_hql.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
-"ãã®ããã¥ã¢ã«ã§ã¯å°æåã®HQLãã¼ã¯ã¼ãã使ç¨ãã¾ãã 大æåã®ãã¼ã¯ã¼ãã®ã¯"
-"ã¨ãªã®æ¹ãèªã¿ãããã¨æããã¦ã¼ã¶ã¼ãããã¨æãã¾ãã ã§ãããJavaã³ã¼ãå
ã«"
-"åãè¾¼ã¾ããã¨ãã«ã¯è¦ã¥ããã¨æãã¾ãã"
+"ãã®ããã¥ã¢ã«ã§ã¯å°æåã® HQL ãã¼ã¯ã¼ãã使ç¨ãã¾ãã大æåã®ãã¼ã¯ã¼ãã®ã¯"
+"ã¨ãªã®æ¹ãèªã¿ãããã¨æããã¦ã¼ã¶ã¼ãããã¨æãã¾ããã§ããã Java ã³ã¼ãå
"
+"ã«åãè¾¼ã¾ããã¨ãã«ã¯è¦ã¥ããã¨æãã¾ãã"
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
-msgstr "fromç¯"
+msgstr "from ç¯"
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
-msgstr "ãã£ã¨ãåç´ãªHibernateã¯ã¨ãªã¯æ¬¡ã®å½¢å¼ã§ãã"
+msgstr "ãã£ã¨ãåç´ãª Hibernate ã¯ã¨ãªã¯æ¬¡ã®å½¢å¼ã§ã:"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
#, fuzzy, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
"not usually need to qualify the class name, since <literal>auto-import</"
"literal> is the default. For example:"
msgstr ""
-"ããã¯åç´ã«ã<literal>eg.Cat</literal>ãã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããã¹ã¦è¿ãã¾"
-"ãã å¿
ãããã¯ã©ã¹åã修飾ããï¼ã¯ã©ã¹ã«ããã±ã¼ã¸åãä»ããï¼å¿
è¦ã¯ããã¾ã"
-"ãã ã¨ããã®ãã<literal>auto-import</literal> ãããã©ã«ãã«ãªã£ã¦ãããã"
-"ã§ãã ãã®ããã»ã¨ãã©ã®å ´åããã®ããã«æ¸ãã ãã§ååã§ãã"
+"ããã¯åç´ã«ã <literal>eg.Cat</literal>ã ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããã¹ã¦è¿ãã¾"
+"ããå¿
ãããã¯ã©ã¹åã修飾ããï¼ã¯ã©ã¹ã«ããã±ã¼ã¸åãä»ããï¼å¿
è¦ã¯ããã¾ã"
+"ããã¨ããã®ãã <literal>auto-import</literal> ãããã©ã«ãã«ãªã£ã¦ãããã"
+"ã§ãããã®ããã»ã¨ãã©ã®å ´åããã®ããã«æ¸ãã ãã§ååã§ã:"
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
"literal> instances, so you can use that alias later in the query. The "
"<literal>as</literal> keyword is optional. You could also write:"
msgstr ""
"ãã®ã¯ã¨ãªã§ã¯ <literal>Cat</literal> ã¤ã³ã¹ã¿ã³ã¹ã« <literal>cat</literal> "
-"ã¨ããå¥åãä»ãã¦ãã¾ãã ãã®ãããå¾ã§ãã®ã¯ã¨ãªå
ã§ããã®å¥åã使ããã¨ã"
+"ã¨ããå¥åãä»ãã¦ãã¾ãããã®ãããå¾ã§ãã®ã¯ã¨ãªå
ã§ããã®å¥åã使ããã¨ã"
"ã§ãã¾ãã <literal>as</literal> ãã¼ã¯ã¼ãã¯ãªãã·ã§ã³ã§ããã¤ã¾ããã®ããã«"
"æ¸ããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
-msgstr "ç´ç©ããããã¯ã¯ãã¹çµåã«ãã£ã¦å¤æ°ã®ã¯ã©ã¹ãåºç¾ãããã¨ãããã¾ãã"
-
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
msgstr ""
+"ç´ç©ããããã¯ãã¯ãã¹ãçµåã«ãã£ã¦å¤æ°ã®ã¯ã©ã¹ãåºç¾ãããã¨ãããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat</literal>)."
msgstr ""
-"ãã¼ã«ã«å¤æ°ã®Javaã®ãã¼ãã³ã°åºæºã¨ä¸è´ããã é æåã«å°æåã使ã£ãã¯ã¨ãªã®"
-"å¥åãä»ãããã¨ã¯ããç¿æ
£ã§ã(ä¾ãã° <literal>domesticCat</literal> )ã"
+"ãã¼ã«ã«å¤æ°ã® Java ã®ãã¼ãã³ã°åºæºã¨ä¸è´ãããé æåã«å°æåã使ã£ãã¯ã¨ãª"
+"ã®å¥åãä»ãããã¨ã¯ããç¿æ
£ã§ã (ä¾ãã° <literal>domesticCat</literal>)ã"
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
msgstr "é¢é£ã¨çµå"
#. Tag: para
-#: query_hql.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join</literal>. For example:"
msgstr ""
-"é¢é£ããã¨ã³ãã£ãã£ãããã¯å¤ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã«ãã<literal>çµå</"
+"é¢é£ããã¨ã³ãã£ãã£ãããã¯å¤ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã«ãã <literal>çµå</"
"literal> ã使ã£ã¦å¥åãå²ãå½ã¦ããã¨ãåºæ¥ã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:114
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
+msgid "The supported join types are borrowed from ANSI SQL:"
+msgstr "ãµãã¼ããã¦ããçµåã®ã¿ã¤ã㯠ANSI SQL ã¨åãã§ãã"
-#. Tag: programlisting
-#: query_hql.xml:116
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
+msgid "<literal>inner join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: programlisting
-#: query_hql.xml:118
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>left outer join</literal>"
#. Tag: para
-#: query_hql.xml:120
-#, fuzzy, no-c-format
-msgid "The supported join types are borrowed from ANSI SQL:"
-msgstr "ãµãã¼ããã¦ããçµåã®ã¿ã¤ãã¯ANSI SQLã¨åãã§ãã"
-
-#. Tag: literal
-#: query_hql.xml:127
#, no-c-format
-msgid "inner join"
-msgstr "inner join"
+msgid "<literal>right outer join</literal>"
+msgstr "<literal>right outer join</literal>"
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "left outer join"
-
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
-msgstr "right outer join"
-
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
msgstr "<literal>full join</literal> (ããã¦ãã®å ´å使ãã¥ãã)"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
"<literal>right outer join</literal> constructs may be abbreviated."
msgstr ""
-"<literal>inner join</literal>ã<literal>left outer join</literal>ã"
-"<literal>right outer join</literal>ã«ã¯çç¥å½¢ã使ããã¨ãã§ãã¾ãã"
+"<literal>inner join</literal>ã <literal>left outer join</literal>ã "
+"<literal>right outer join</literal> ã«ã¯çç¥å½¢ã使ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
"keyword."
msgstr ""
-"HQLã® <literal>with</literal> ãã¼ã¯ã¼ãã使ãã¨ãçµåæ¡ä»¶ãä»ãå ãããã¨ã"
+"HQL ã® <literal>with</literal> ãã¼ã¯ã¼ãã使ãã¨ãçµåæ¡ä»¶ãä»ãå ãããã¨ã"
"ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
-"å ãã¦ãããã§ãããçµåã¯é¢é£ãå¤ã®ã³ã¬ã¯ã·ã§ã³ã親ãªãã¸ã§ã¯ãã¨ä¸ç·ã«1度ã®"
-"selectå¥ã§åæåãã¾ãã ããã¯ç¹ã«ã³ã¬ã¯ã·ã§ã³ã®å ´åã«æç¨ã§ããããã¯å®è³ª"
-"ä¸ãé¢é£ã¨ã³ã¬ã¯ã·ã§ã³ã«å¯¾ãããããã³ã°å®ç¾©ãã¡ã¤ã«ã®å¤é¨çµåã¨lazyåæåã®"
-"å®ç¾©ã䏿¸ããããã¨ã«ãªãã¾ãã <xref linkend=\"performance-fetching\"/> ã«"
-"ããå¤ãã®æ
å ±ãããã¾ãã"
+"å ãã¦ãããã§ãããçµåã¯é¢é£ãå¤ã®ã³ã¬ã¯ã·ã§ã³ã親ãªãã¸ã§ã¯ãã¨ä¸ç·ã«1度"
+"ã® select å¥ã§åæåãã¾ããããã¯ç¹ã«ã³ã¬ã¯ã·ã§ã³ã®å ´åã«æç¨ã§ããããã¯å®"
+"質ä¸ãé¢é£ã¨ã³ã¬ã¯ã·ã§ã³ã«å¯¾ãããããã³ã°å®ç¾©ãã¡ã¤ã«ã®å¤é¨çµå㨠lazy åæ"
+"åã®å®ç¾©ã䏿¸ããããã¨ã«ãªãã¾ãã <xref linkend=\"performance-fetching\"/"
+"> ã«ããå¤ãã®æ
å ±ãããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:169
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:171
-#, fuzzy, no-c-format
-msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where</literal> clause "
"(or any other clause). The associated objects are also not returned directly "
@@ -305,26 +202,15 @@
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
-"çµåã«ãããã§ããã¯é¢é£ãããªãã¸ã§ã¯ãã <literal>where</literal> ç¯(ã¾ãã¯"
-"ä»ã®ã©ããªç¯ã§ã) ã§ä½¿ããã¦ã¯ãªããªãã®ã§ãé常å¥åãå²ãå½ã¦ãå¿
è¦ãããã¾"
-"ãããã¾ãé¢é£ãªãã¸ã§ã¯ãã¯åãåããçµæã¨ãã¦ ç´æ¥è¿ããã¾ããã代ããã«è¦ª"
-"ãªãã¸ã§ã¯ããéãã¦ã¢ã¯ã»ã¹ã§ãã¾ãã ã³ã¬ã¯ã·ã§ã³ãå帰çã«çµåãã§ãããã"
-"å ´åã®ã¿ãå¥åãå¿
è¦ã«ãªãã¾ãã"
+"çµåã«ãããã§ããã¯é¢é£ãããªãã¸ã§ã¯ãã <literal>where</literal> ç¯ (ã¾ã"
+"ã¯ä»ã®ã©ããªç¯ã§ã) ã§ä½¿ããã¦ã¯ãªããªãã®ã§ãé常å¥åãå²ãå½ã¦ãå¿
è¦ããã"
+"ã¾ãããã¾ãé¢é£ãªãã¸ã§ã¯ãã¯åãåããçµæã¨ãã¦ç´æ¥è¿ããã¾ããã代ããã«"
+"親ãªãã¸ã§ã¯ããéãã¦ã¢ã¯ã»ã¹ã§ãã¾ããã³ã¬ã¯ã·ã§ã³ãå帰çã«çµåãã§ããã"
+"ãå ´åã®ã¿ãå¥åãå¿
è¦ã«ãªãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:179
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:181
-#, fuzzy, no-c-format
-msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
"using <literal>iterate()</literal> (though <literal>scroll()</literal> can "
"be used). <literal>Fetch</literal> should be used together with "
@@ -342,22 +228,21 @@
msgstr ""
"<literal>fetch</literal> æ§æã¯ <literal>iterate()</literal> ã使ã£ãã¯ã¨ãªå¼"
"ã³åºãã§ä½¿ç¨ã§ããªããã¨ã«æ³¨æãã¦ãã ãã ï¼ä¸æ¹ã§ <literal>scroll()</"
-"literal> ã¯ä½¿ç¨ã§ãã¾ãï¼ã ã¾ãããããã®æä½ã¯çµæã®è¡ã«åºã¥ãã¦ããããã "
+"literal> ã¯ä½¿ç¨ã§ãã¾ãï¼ãã¾ãããããã®æä½ã¯çµæã®è¡ã«åºã¥ãã¦ããããã "
"<literal>fetch</literal> 㯠<literal>setMaxResults()</literal> ã "
-"<literal>setFirstResult()</literal> ã¨ä¸ç·ã«ä½¿ç¨ãã¹ãã§ã¯ããã¾ããã é常"
-"eagerãªã³ã¬ã¯ã·ã§ã³ãã§ãããããã¨éè¤ãåºã¦ãã¾ããããããªããæå¾
ãããã"
-"ãªè¡æ°ã«ã¯ãªããªãã®ã§ãã ããã¦ã¾ã <literal>fetch</literal> ã¯ãã¢ãããã¯"
-"㪠<literal>with</literal> æ¡ä»¶ã ä¸ç·ã«ä½¿ããã¨ãã§ãã¾ããã ä¸ã¤ã®ã¯ã¨ãªã§"
+"<literal>setFirstResult()</literal> ã¨ä¸ç·ã«ä½¿ç¨ãã¹ãã§ã¯ããã¾ãããé常 "
+"eager ãªã³ã¬ã¯ã·ã§ã³ãã§ãããããã¨éè¤ãåºã¦ãã¾ããããããªããæå¾
ããã"
+"ããªè¡æ°ã«ã¯ãªããªãã®ã§ããããã¦ã¾ã <literal>fetch</literal> ã¯ãã¢ããã"
+"ã¯ãª <literal>with</literal> æ¡ä»¶ãä¸ç·ã«ä½¿ããã¨ãã§ãã¾ãããä¸ã¤ã®ã¯ã¨ãªã§"
"è¤æ°ã®ã³ã¬ã¯ã·ã§ã³ãçµåãã§ãããããã¨ã«ããç´ç©ã使ã§ããã®ã§ããã®å ´å"
-"注æãã¦ãã ããã ã¾ããè¤æ°ã®ã³ã¬ã¯ã·ã§ã³ã«å¯¾ããçµåãã§ããã¯bagãããã³"
-"ã°ã«å¯¾ãã¦äºæãã¬çµæããããããã¨ãããã®ã§ã ãã®å ´åã®ã¯ã¨ãªã®ä½æã«ã¯æ³¨"
-"æãã¦ãã ããã æå¾ã« <literal>å
¨å¤é¨çµåã«ãããã§ãã</literal> 㨠"
+"注æãã¦ãã ãããã¾ããè¤æ°ã®ã³ã¬ã¯ã·ã§ã³ã«å¯¾ããçµåãã§ãã㯠bag ãããã³"
+"ã°ã«å¯¾ãã¦äºæãã¬çµæããããããã¨ãããã®ã§ããã®å ´åã®ã¯ã¨ãªã®ä½æã«ã¯æ³¨"
+"æãã¦ãã ãããæå¾ã« <literal>å
¨å¤é¨çµåã«ãããã§ãã</literal> 㨠"
"<literal>å³å¤é¨çµåã«ãããã§ãã</literal> ã¯æç¨ã§ã¯ãªããã¨ã«æ³¨æãã¦ãã "
"ããã"
#. Tag: para
-#: query_hql.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
@@ -365,53 +250,35 @@
"properties</literal>."
msgstr ""
"ããããããã£ã¬ãã«ã®é
å»¶ãã§ããã使ãå ´åï¼å
é¨çã«ãã¤ãã³ã¼ãå¦çããã"
-"å ´åï¼ã <literal>fetch all properties</literal> ã使ããã¨ã§ Hibernateã«é
å»¶"
-"ããããã£ãéããã«ï¼æåã®ã¯ã¨ãªã§ï¼ãã§ããããããã¨ãã§ãã¾ãã"
+"å ´åï¼ã <literal>fetch all properties</literal> ã使ããã¨ã§ Hibernate ã«é
"
+"å»¶ããããã£ãéããã«ï¼æåã®ã¯ã¨ãªã§ï¼ãã§ããããããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
msgstr "çµåæ§æã®å½¢å¼"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
"and <literal>explicit</literal>."
msgstr ""
-"HQLã¯ï¼ã¤ã®é¢é£çµåå½¢å¼ããµãã¼ããã¾ãï¼<literal>æé»ç</literal> 㨠"
+"HQL ã¯ï¼ã¤ã®é¢é£çµåå½¢å¼ããµãã¼ããã¾ãï¼ <literal>æé»ç</literal> 㨠"
"<literal>æç¤ºç</literal>ã"
#. Tag: para
-#: query_hql.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
"literal> form, that is, where the join keyword is explicitly used in the "
"from clause. This is the recommended form."
msgstr ""
"ããã¾ã§ã®ã»ã¯ã·ã§ã³ã§ãè¦ãããä½¿ãæ¹ã¯ãã¹ã¦ <literal>æç¤ºçãª</literal> å½¢"
-"å¼ã§ã fromç¯ã§æç¤ºçã«joinãã¼ã¯ã¼ãã使ã£ã¦ãã¾ãã ãã®å½¢å¼ããããããã¾"
-"ãã"
+"å¼ã§ã from ç¯ã§æç¤ºçã« join ãã¼ã¯ã¼ãã使ã£ã¦ãã¾ãããã®å½¢å¼ãããããã"
+"ã¾ãã"
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -419,56 +286,43 @@
"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
"literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-"<literal>æé»ç</literal> ãã©ã¼ã ã¯ãjoinãã¼ã¯ã¼ãã使ãã¾ããã代ããã«ã"
-"åç
§ããé¢é£ã« ããã表è¨ã使ãã¾ãã<literal>æé»ç</literal> çµåã¯ããã¾ã"
-"ã¾ãªHQLã«åºã¦ãã¾ãã <literal>æé»ç</literal> çµåã®çµæã¯ãSQLã¹ãã¼ãã¡ã³"
-"ãã®å
é¨çµåçµæã§ãã"
+"<literal>æé»ç</literal> ãã©ã¼ã ã¯ã join ãã¼ã¯ã¼ãã使ãã¾ããã代ãã"
+"ã«ãåç
§ããé¢é£ã«ããã表è¨ã使ãã¾ãã <literal>æé»ç</literal> çµåã¯ãã"
+"ã¾ãã¾ãª HQL ã«åºã¦ãã¾ãã <literal>æé»ç</literal> çµåã®çµæã¯ã SQL ã¹"
+"ãã¼ãã¡ã³ãã®å
é¨çµåçµæã§ãã"
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Referring to identifier property"
-msgstr "Refering to identifier property"
+msgstr "èå¥åããããã£ã®åç
§"
#. Tag: para
-#: query_hql.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
-msgstr ""
-"There are, generally speaking, 2 ways to refer to an entity's identifier "
-"property:"
+msgstr "ã¨ã³ãã£ãã£ã®èå¥åããããã£ã¯ãä¸è¬çã«2ã¤ã®æ¹æ³ã§åç
§ããã¾ã:"
#. Tag: para
-#: query_hql.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
-"The special property (lowercase) <literal>id</literal> may be used to "
-"reference the identifier property of an entity <emphasis>provided that "
-"entity does not define a non-identifier property named id</emphasis>."
+"ç¹å¥ãªãããã㣠(å°æå) <literal>id</literal> ã¯ã <emphasis>id ã¨åä»ãã"
+"ããéèå¥åããããã£ãå®ç¾©ããªãã¨ã³ãã£ãã£ãä¸ãããã</emphasis> ã¨ã³"
+"ãã£ãã£ã®èå¥åããããã£ãåç
§ããã®ã«ä½¿ç¨ããã¾ãã"
#. Tag: para
-#: query_hql.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
msgstr ""
-"If the entity defines a named identifier property, you may use that property "
-"name."
+"ããã¨ã³ãã£ãã£ãåä»ããããèå¥åããããã£ãå®ç¾©ãããããã®ããããã£å"
+"ã使ç¨ã§ãã¾ãã"
#. Tag: para
-#: query_hql.xml:250
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
@@ -476,15 +330,13 @@
"the special <literal>id</literal> property can be used to reference the "
"identifier property."
msgstr ""
-"References to composite identifier properties follow the same naming rules. "
-"If the entity has a non-identifier property named id, the composite "
-"identifier property can only be referenced by its defined named; otherwise, "
-"the special <literal>id</literal> property can be used to rerference the "
-"identifier property."
+"è¤åèå¥åããããã£ã¸ã®åç
§ã¯åãå½åã«ã¼ã«ã«å¾ãã¾ããããã¨ã³ãã£ãã£ã "
+"id ã¨åä»ããããéèå¥åããããã£ãæã£ã¦ããããè¤åèå¥åããããã£ã¯ãã®"
+"å®ç¾©ãããååã§åç
§ãããã¨ãã§ãã¾ããããã§ãªãã¨ãç¹å¥ãª <literal>id</"
+"literal> ããããã£ã¯ãèå¥åããããã£ãåç
§ããã®ã«ä½¿ç¨ããã¾ãã"
#. Tag: para
-#: query_hql.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
"In previous versions, <literal>id</literal> <emphasis>always</emphasis> "
@@ -492,279 +344,146 @@
"ramification of that decision was that non-identifier properties named "
"<literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
-"Note: this has changed significantly starting in version 3.2.2. In previous "
-"versions, <literal>id</literal><emphasis>always</emphasis> referred to the "
-"identifier property no matter what its actual name. A ramification of that "
-"decision was that non-identifier properties named <literal>id</literal> "
-"could never be referenced in Hibernate queries."
+"注è¨: ããã¯ããã¼ã¸ã§ã³ 3.2.2 ãã大å¹
ã«å¤æ´ãã¾ãããåãã¼ã¸ã§ã³ã§ã¯ã "
+"<literal>id</literal> ã¯ããã®å®éã®ååã«é¢ä¿ãªã <emphasis>常ã«</emphasis> "
+"èå¥åããããã£ãåç
§ãã¦ãã¾ããããã®çµæã <literal>id</literal> ã¨åä»ã"
+"ãããéèå¥åããããã£ã¯ã Hibernate ã§æ±ºãã¦åç
§ããã¾ããã§ããã"
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
-msgstr "Selectç¯"
+msgstr "Select ç¯"
#. Tag: para
-#: query_hql.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
"<literal>select</literal> ç¯ã¯ä»¥ä¸ã®ããã«ã©ã®ãªãã¸ã§ã¯ãã¨å±æ§ãã¯ã¨ãªãªã¶"
-"ã«ãã»ããã«è¿ããã鏿ãã¾ãã:"
+"ã«ãã»ããã«è¿ããã鏿ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:276
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:278
-#, fuzzy, no-c-format
-msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
"literal>s. You can express this query more compactly as:"
msgstr ""
"ä¸è¨ã®ã¯ã¨ãªã¯ä»ã® <literal>Cat</literal> ã® <literal>mate</literal> ã鏿ã"
-"ã¾ãã å®éã«ã¯æ¬¡ã®ããã«ãããç°¡æ½ã«è¡¨ç¾ã§ãã¾ãã:"
+"ã¾ããå®éã«ã¯æ¬¡ã®ããã«ãããç°¡æ½ã«è¡¨ç¾ã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
"ã¯ã¨ãªã¯ã³ã³ãã¼ãã³ãåã®ããããã£ãå«ããããããå¤åã®ããããã£ãè¿ãã¾"
-"ãã:"
+"ã:"
-#. Tag: programlisting
-#: query_hql.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:293
-#, fuzzy, no-c-format
-msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]</literal>:"
msgstr ""
-"ã¯ã¨ãªã¯è¤æ°ã®ãªãã¸ã§ã¯ãã¨(ã¾ãã¯)ããããã£ã <literal>Object[]</literal> "
-"åã®é
åã¨ãã¦è¿ãã¾ãã"
+"ã¯ã¨ãªã¯è¤æ°ã®ãªãã¸ã§ã¯ã㨠(ã¾ãã¯) ããããã£ã <literal>Object[]</"
+"literal> åã®é
åã¨ãã¦è¿ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or as a <literal>List</literal>:"
msgstr "ããã㯠<literal>List</literal> ã¨ãã¦ã"
-#. Tag: programlisting
-#: query_hql.xml:304
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:306
-#, fuzzy, no-c-format
-msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr ""
"ããã㯠<literal>Family</literal> ã¯ã©ã¹ãé©åãªã³ã³ã¹ãã©ã¯ã¿ãæã£ã¦ããã¨"
"ãããªãã°ã"
-#. Tag: programlisting
-#: query_hql.xml:310
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:313
-#, fuzzy, no-c-format
-msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
-msgstr "selectç¯ã« <literal>as</literal> ã使ã£ã¦å¥åãã¤ãããã¨ãã§ãã¾ãã"
+msgstr "select ç¯ã« <literal>as</literal> ã使ã£ã¦å¥åãã¤ãããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
"literal>:"
msgstr "<literal>select new map</literal> ã¨ä¸ç·ã«ä½¿ãã¨ãã«æãå½¹ç«ã¡ã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
-msgstr "ãã®ã¯ã¨ãªã¯å¥åããselectããå¤ã¸ <literal>Map</literal> ãè¿ãã¾ãã"
+msgstr ""
+"ãã®ã¯ã¨ãªã¯å¥åãã select ããå¤ã¸ <literal>Map</literal> ãè¿ãã¾ãã"
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
msgstr "éç´é¢æ°"
#. Tag: para
-#: query_hql.xml:334
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
-msgstr "HQLã®ã¯ã¨ãªã¯ããããã£ã®éç´é¢æ°ã®çµæãè¿ãã¾ãï¼"
+msgstr "HQL ã®ã¯ã¨ãªã¯ããããã£ã®éç´é¢æ°ã®çµæãè¿ãã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:338
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
+msgid "The supported aggregate functions are:"
+msgstr "ãµãã¼ããã¦ããéç´é¢æ°ã¯ä»¥ä¸ã®ãã®ã§ãã"
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
-msgid "The supported aggregate functions are:"
-msgstr "ãµãã¼ããã¦ããéç´é¢æ°ã¯ä»¥ä¸ã®ãã®ã§ãã"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
+msgstr "<literal>avg(...), sum(...), min(...), max(...)</literal>"
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
-msgstr "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>count(*)</literal>"
+msgstr "<literal>count(*)</literal>"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
-
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
-msgstr "count(...), count(distinct ...), count(all...)"
-
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
+msgstr "<literal>count(...), count(distinct ...), count(all...)</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
msgstr ""
-"selectç¯ã«ããã¦ç®è¡æä½ãé£çµã¨æ¿èªãããSQL颿°ã使ããã¨ãã§ãã¾ãã"
+"select ç¯ã«ããã¦ç®è¡æä½ãé£çµã¨æ¿èªããã SQL 颿°ã使ããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:376
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:380
-#, fuzzy, no-c-format
-msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
-"SQLã¨åãæå³ãæã¤ <literal>distinct</literal> 㨠<literal>all</literal> "
+"SQL ã¨åãæå³ãæã¤ <literal>distinct</literal> 㨠<literal>all</literal> "
"ãã¼ã¯ã¼ãã使ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
-msgstr "ããªã¢ã¼ãã£ãã¯ãªã¯ã¨ãª"
+msgstr "ããªã¢ã¼ãã£ãºã ã使ã£ãã¯ã¨ãª"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
msgstr "次ã®ãããªã¯ã¨ãªï¼"
#. Tag: para
-#: query_hql.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
"like <literal>DomesticCat</literal>. Hibernate queries can name "
@@ -773,154 +492,98 @@
"that extend that class or implement the interface. The following query would "
"return all persistent objects:"
msgstr ""
-"<literal>Cat</literal> ã¤ã³ã¹ã¿ã³ã¹ã ãã§ã¯ãªãã<literal>DomesticCat</"
-"literal> ã®ãããªãµãã¯ã©ã¹ãè¿ããã¾ããHibernateã¯ã¨ãªã¯ <emphasis>ã©ããª</"
-"emphasis> Javaã¯ã©ã¹ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã <literal>from</literal> ç¯ã«å
¥ããã"
-"ã¨ãã§ãã¾ãã ã¯ã¨ãªã¯ãã®ã¯ã©ã¹ãæ¡å¼µããããããã¯ã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ã"
-"ãå
¨ã¦ã®æ°¸ç¶ã¯ã©ã¹ãè¿ãã¾ãã æ¬¡ã®ã¯ã¨ãªã¯æ°¸ç¶ãªãã¸ã§ã¯ãããã¹ã¦è¿ãã¾ã:"
+"<literal>Cat</literal> ã¤ã³ã¹ã¿ã³ã¹ã ãã§ã¯ãªãã <literal>DomesticCat</"
+"literal> ã®ãããªãµãã¯ã©ã¹ãè¿ããã¾ãã Hibernate ã¯ã¨ãªã¯ <emphasis>ã©ããª"
+"</emphasis> Java ã¯ã©ã¹ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã <literal>from</literal> ç¯ã«å
¥ã"
+"ããã¨ãã§ãã¾ããã¯ã¨ãªã¯ãã®ã¯ã©ã¹ãæ¡å¼µããããããã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®"
+"è£
ããå
¨ã¦ã®æ°¸ç¶ã¯ã©ã¹ãè¿ãã¾ããæ¬¡ã®ã¯ã¨ãªã¯æ°¸ç¶ãªãã¸ã§ã¯ãããã¹ã¦è¿ãã¾"
+"ã:"
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
"persistent classes:"
msgstr ""
-"<literal>Named</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯æ§ã
ãªæ°¸ç¶ã¯ã©ã¹ã«ãã£ã¦å®è£
ããã¾"
+"<literal>Named</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯æ§ã
ãªæ°¸ç¶ã¯ã©ã¹ã«ãã£ã¦å®è£
ããã¾"
"ãã:"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
"literal>. This means that the <literal>order by</literal> clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()</literal>."
msgstr ""
-"æå¾ã®äºã¤ã®ã¯ã¨ãªã¯ãäºã¤ä»¥ä¸ã®SQL <literal>SELECT</literal> ãè¦æ±ãã¦ãã"
-"ãã¨ã«æ³¨æãã¦ãã ããã ãã®ãã¨ã¯ <literal>order by</literal> ç¯ããªã¶ã«ã"
-"ã»ããå
¨ä½ãæ£ç¢ºã«ã¯æ´åããªããã¨ãæå³ãã¾ã (ããã«ããã¯ã<literal>Query."
+"æå¾ã®2ã¤ã®ã¯ã¨ãªã¯ã2ã¤ä»¥ä¸ã® SQL <literal>SELECT</literal> ãè¦æ±ãã¦ããã"
+"ã¨ã«æ³¨æãã¦ãã ããããã®ãã¨ã¯ <literal>order by</literal> ç¯ããªã¶ã«ãã»ã"
+"ãå
¨ä½ãæ£ç¢ºã«ã¯æ´åããªããã¨ãæå³ãã¾ã (ããã«ããã¯ã <literal>Query."
"scroll()</literal> ã使ç¨ãã¦ãããã®ã¯ã¨ãªãå¼ã¶ãã¨ãã§ããªããã¨ãæå³ãã¾"
"ãã)ã"
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
-msgstr "whereç¯"
+msgstr "where ç¯"
#. Tag: para
-#: query_hql.xml:426
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
"<literal>where</literal> ç¯ã¯è¿ãããã¤ã³ã¹ã¿ã³ã¹ã®ãªã¹ããçµããã¨ãã§ãã¾"
-"ãã ããå¥åããªãå ´åãååã§ããããã£ãåç
§ãã¾ãã"
+"ããããå¥åããªãå ´åãååã§ããããã£ãåç
§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
-msgstr "ããå¥åãããå ´åã修飾åã使ã£ã¦ãã ããã"
+msgstr "ããå¥åãããå ´åã修飾åã使ã£ã¦ãã ãã:"
-#. Tag: programlisting
-#: query_hql.xml:437
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
+msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
msgstr ""
+"ååã 'Fritz' ã¨ãã <literal>Cat</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã"
#. Tag: para
-#: query_hql.xml:439
-#, fuzzy, no-c-format
-msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
-msgstr "ååã'Fritz'ã¨ãã <literal>Cat</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾ãã"
-
-#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:446
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:448
-#, fuzzy, no-c-format
-msgid ""
"returns all instances of <literal>Foo</literal> with an instance of "
"<literal>bar</literal> with a <literal>date</literal> property equal to the "
"<literal>startDate</literal> property of the <literal>Foo</literal>. "
"Compound path expressions make the <literal>where</literal> clause extremely "
"powerful. Consider the following:"
msgstr ""
-"ä¸ã®HQLã¯ã<literal>Foo</literal> ã® <literal>startDate</literal> ããããã£"
-"ã¨çãã <literal>date</literal> ããããã£ãæã£ã <literal>bar</literal> ã¤"
-"ã³ã¹ã¿ã³ã¹ãåå¨ããã ãã¹ã¦ã® <literal>Foo</literal> ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¾"
-"ãã ã³ã³ãã¦ã³ããã¹å¼ï¼ä¾ãã°ãcat.mate.nameãï¼ã¯ <literal>where</"
-"literal> ç¯ãé常ã«å¼·åã«ãã¾ããæ³¨ç®ï¼"
+"ä¸ã® HQL ã¯ã <literal>Foo</literal> ã® <literal>startDate</literal> ããã"
+"ãã£ã¨çãã <literal>date</literal> ããããã£ãæã£ã <literal>bar</"
+"literal> ã¤ã³ã¹ã¿ã³ã¹ãåå¨ããããã¹ã¦ã® <literal>Foo</literal> ã¤ã³ã¹ã¿ã³ã¹"
+"ãè¿ãã¾ããã³ã³ãã¦ã³ããã¹å¼ã¯ <literal>where</literal> ç¯ãé常ã«å¼·åã«ã"
+"ã¾ããæ³¨ç®ï¼"
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-"ãã®ã¯ã¨ãªã¯ãã¼ãã«çµåï¼å
é¨çµåï¼ãæã¤SQLã¯ã¨ãªã«å¤æããã¾ãã ãã®ä»£ã"
+"ãã®ã¯ã¨ãªã¯ãã¼ãã«çµåï¼å
é¨çµåï¼ãæã¤ SQL ã¯ã¨ãªã«å¤æããã¾ãããã®ä»£ã"
"ãã«ä»¥ä¸ã®ããã«æ¸ãã¨ã"
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
-"ããä¸ã®ã¯ã¨ãªãè¨è¿°ãããã¯ã¨ãªå
ã«4ã¤ã®ãã¼ãã«çµåãå¿
è¦ã¨ããSQLã¯ã¨ãªã«"
-"夿ããã¾ãã"
+"ããä¸ã®ã¯ã¨ãªãè¨è¿°ãããã¯ã¨ãªå
ã«4ã¤ã®ãã¼ãã«çµåãå¿
è¦ã¨ãã SQL ã¯ã¨ãª"
+"ã«å¤æããã¾ãã"
#. Tag: para
-#: query_hql.xml:470
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
"properties, but also instances:"
@@ -928,51 +591,24 @@
"<literal>=</literal> æ¼ç®åã¯ä»¥ä¸ã®ããã«ãããããã£ã ãã§ãªãã¤ã³ã¹ã¿ã³ã¹ã"
"æ¯è¼ããããã«ã使ããã¾ããï¼"
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
-"<literal>id</literal> (å°æå)ã¯ç¹å¥ãªããããã£ã§ããã ãªãã¸ã§ã¯ãã®ã¦ãã¼"
-"ã¯ãªèå¥åãåç
§ããããã«ä½¿ç¨ã§ãã¾ãã(ããã«ããã®ããããã£åã使ç¨ã§ãã¾"
-"ãã)"
+"<literal>id</literal> (å°æå) ã¯ç¹å¥ãªããããã£ã§ããããªãã¸ã§ã¯ãã®ã¦ãã¼"
+"ã¯ãªèå¥åãåç
§ããããã«ä½¿ç¨ã§ãã¾ãã詳細ã«ã¤ãã¦ã¯ <xref linkend="
+"\"queryhql-identifier-property\"/> ãåç
§ãã ããã"
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The second query is efficient and does not require a table join."
-msgstr "2çªç®ã®ã¯ã¨ãªã¯å¹ççã§ãããã¼ãã«çµåãå¿
è¦ããã¾ããï¼"
+msgstr "2çªç®ã®ã¯ã¨ãªã¯å¹ççã§ãããã¼ãã«çµåãå¿
è¦ããã¾ããã"
#. Tag: para
-#: query_hql.xml:491
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person</literal> has composite identifiers consisting "
@@ -980,151 +616,105 @@
msgstr ""
"ã¾ãè¤åèå¥åã®ããããã£ã使ç¨ã§ãã¾ããããã§ <literal>Person</literal> "
"ã <literal>country</literal> 㨠<literal>medicareNumber</literal> ãããªãè¤"
-"åèå¥åãæã¤ã¨ä»®å®ãã¾ãã"
+"åèå¥åãæã¤ã¨ä»®å®ãã¾ããèå¥åããããã£åç
§ã«ã¤ãã¦ã®è©³ç´°ã¯ãååã¨åæ§"
+"ã« <xref linkend=\"queryhql-identifier-property\"/> ãåç
§ãã ããã"
-#. Tag: programlisting
-#: query_hql.xml:497
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Once again, the second query does not require a table join."
-msgstr "ããä¸åº¦è¨ãã¾ããã2çªç®ã®ã¯ã¨ãªã«ã¯ãã¼ãã«çµåãå¿
è¦ããã¾ããã"
+msgstr "ç¹°ãè¿ãã¾ããã2çªç®ã®ã¯ã¨ãªã«ã¯ãã¼ãã«çµåãå¿
è¦ããã¾ããã"
#. Tag: para
-#: query_hql.xml:505
#, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
#. Tag: para
-#: query_hql.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
-"åæ§ã« <literal>class</literal> ã¯ç¹å¥ãªããããã£ã§ããã ããªã¢ã¼ãã£ãã¯ãª"
-"æ°¸ç¶åã«ãããã¤ã³ã¹ã¿ã³ã¹ã®discriminatorå¤ã«ã¢ã¯ã»ã¹ãã¾ãã whereç¯ã«åãè¾¼"
-"ã¾ããJavaã®ã¯ã©ã¹åã¯ãã®discriminatorå¤ã«å¤æããã¾ãã"
+"åæ§ã« <literal>class</literal> ã¯ç¹å¥ãªããããã£ã§ãããããªã¢ã¼ãã£ãã¯ãª"
+"æ°¸ç¶åã«ãããã¤ã³ã¹ã¿ã³ã¹ã® discriminator å¤ã«ã¢ã¯ã»ã¹ãã¾ãã where ç¯ã«å"
+"ãè¾¼ã¾ãã Java ã®ã¯ã©ã¹åã¯ãã® discriminator å¤ã«å¤æããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
-"ã¾ãã³ã³ãã¼ãã³ããè¤åã¦ã¼ã¶å(ã¾ããã®ã³ã³ãã¼ãã³ãã®ã³ã³ãã¼ãã³ããªã©)"
-"ã®ããããã£ãæå®ã§ãã¾ãã ãããæ±ºãã¦ï¼ã³ã³ãã¼ãã³ãã®ããããã£ã§ã¯ãª"
-"ãï¼ã³ã³ãã¼ãã³ãåã®ããããã£ã§çµäºãããã¹å¼ã使ããªãã§ãã ããã ä¾ãã°"
-"ãã <literal>store.owner</literal> ã <literal>address</literal> ã³ã³ãã¼ã"
-"ã³ããæã¤ã¨ã³ãã£ãã£ãªãã°ä»¥ä¸ã®ãããªçµæã¨ãªãã¾ãã"
+"ã¾ãã³ã³ãã¼ãã³ããè¤åã¦ã¼ã¶ã¼åãåã¯ãã®ã³ã³ãã¼ãã³ãã®ããããã£ã使ç¨"
+"ã§ãã¾ãã詳細ã«ã¤ãã¦ã¯ã <xref linkend=\"queryhql-components\"/> ãåç
§ä¸ã"
+"ãã"
#. Tag: para
-#: query_hql.xml:523
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
"<literal>class</literal> that allows you to express a join in the following "
"way (where <literal>AuditLog.item</literal> is a property mapped with "
"<literal><any></literal>):"
msgstr ""
-"\"any\"åã¯ç¹å¥ãªããããã£ã§ãã <literal>id</literal> 㨠<literal>class</"
-"literal> ãæã¡ã 以ä¸ã®æ¹æ³ã§çµåã表ç¾ãããã¨ãå¯è½ã«ãã¾ã"
+"\"any\" åã¯ç¹å¥ãªããããã£ã§ãã <literal>id</literal> 㨠<literal>class</"
+"literal> ãæã¡ã以ä¸ã®æ¹æ³ã§çµåã表ç¾ãããã¨ãå¯è½ã«ãã¾ã "
"(<literal>AuditLog.item</literal> 㯠<literal><any></literal> ã§ããã"
"ã³ã°ãããããããã£ã§ã)ã"
-#. Tag: programlisting
-#: query_hql.xml:529
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:531
-#, fuzzy, no-c-format
-msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
"would refer to the values of completely different database columns in the "
"above query."
msgstr ""
-"<literal>log.item.class</literal> 㨠<literal>payment.class</literal> ã ä¸è¨"
+"<literal>log.item.class</literal> 㨠<literal>payment.class</literal> ãä¸è¨"
"ã®ã¯ã¨ãªä¸ã§å
¨ãç°ãªããã¼ã¿ãã¼ã¹ã«ã©ã ã®å¤ãåç
§ããã¨ãããã¨ã«æ³¨æãã¦ã"
"ã ããã"
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr "Expressions å¼"
#. Tag: para
-#: query_hql.xml:541
#, fuzzy, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
"following:"
msgstr ""
-"SQLã® <literal>where</literal> ç¯ã§è¨è¿°ãããã¨ãåºæ¥ãå¼ã®ã»ã¨ãã©ãHQLã§ã"
-"è¨è¿°ã§ãã¾ãã:"
+"SQL ã® <literal>where</literal> ç¯ã§è¨è¿°ãããã¨ãåºæ¥ãå¼ã®ã»ã¨ãã©ã HQL ã§"
+"ãè¨è¿°ã§ãã¾ã:"
#. Tag: para
-#: query_hql.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
msgstr "ç®è¡æ¼ç®åï¼<literal>+, -, *, /</literal>"
#. Tag: para
-#: query_hql.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
"literal>"
msgstr "2é
æ¯è¼æ¼ç®åï¼<literal>=, >=, <=, <>, !=, like</literal>"
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
msgstr "è«çæ¼ç®åï¼<literal>and, or, not</literal>"
#. Tag: para
-#: query_hql.xml:563
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
msgstr "ã°ã«ã¼ãåããè¡¨ãæ¬å¼§ï¼<literal>( )</literal>"
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1138,18 +728,16 @@
"<literal>member of</literal> and <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
"and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
msgstr ""
-"\"ã·ã³ãã«\"ãªcase <literal>case ... when ... then ... else ... end</"
-"literal>ã \"æ¢ç´¢ç\"ãªcase <literal>case when ... then ... else ... end</"
+"\"ã·ã³ãã«\"㪠case <literal>case ... when ... then ... else ... end</"
+"literal>ã \"æ¢ç´¢ç\"㪠case <literal>case when ... then ... else ... end</"
"literal>"
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
@@ -1159,8 +747,7 @@
"</literal>"
#. Tag: para
-#: query_hql.xml:592
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
@@ -1169,8 +756,7 @@
"<literal>current_timestamp()</literal>"
#. Tag: para
-#: query_hql.xml:598
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
@@ -1181,32 +767,28 @@
"<literal>year(...)</literal>,"
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
-"EJB-QL 3.0ã§å®ç¾©ããã¦ãã颿°ãæ¼ç®å: <literal>substring(), trim(), lower"
-"(), upper(), length(), locate(), abs(), sqrt(), bit_length()</literal>"
+"EJB-QL 3.0 ã§å®ç¾©ããã¦ãã颿°ãæ¼ç®å: <literal>substring(), trim(), lower"
+"(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()</literal>"
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> 㨠<literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
"readable string"
-msgstr "æ°åãæéã®å¤ãStringã«ã³ã³ãã¼ããã <literal>str()</literal>ï¼"
+msgstr "æ°åãæéã®å¤ã String ã«ã³ã³ãã¼ããã <literal>str()</literal>"
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1214,24 +796,22 @@
"<literal>cast()</literal> and <literal>extract()</literal> is supported by "
"the underlying database"
msgstr ""
-"2çªç®ã®å¼æ°ãHibernateåã®ååã§ãã <literal>cast(... as ...)</literal> 㨠"
-"<literal>extract(... from ...)</literal>ã ãã ã使ç¨ãããã¼ã¿ãã¼ã¹ãANSI "
-"<literal>cast()</literal> 㨠<literal>extract()</literal> ããµãã¼ãããå ´å"
-"ã«éãã¾ãã"
+"2çªç®ã®å¼æ°ã Hibernate åã®ååã§ãã <literal>cast(... as ...)</literal> "
+"㨠<literal>extract(... from ...)</literal>ããã ã使ç¨ãããã¼ã¿ãã¼ã¹ã "
+"ANSI <literal>cast()</literal> 㨠<literal>extract()</literal> ããµãã¼ããã"
+"å ´åã«éãã¾ãã"
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
"joined indexed collection"
msgstr ""
-"çµåããã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ã®å¥åã«é©ç¨ãããHQLã® <literal>index"
-"()</literal> 颿°ã"
+"çµåããã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ã®å¥åã«é©ç¨ããã HQL ã® "
+"<literal>index()</literal> 颿°ã"
#. Tag: para
-#: query_hql.xml:636
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
@@ -1239,33 +819,30 @@
"functions that can be quantified using <literal>some, all, exists, any, in</"
"literal>."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³å¤ã®ãã¹å¼ãåãHQL颿°ï¼ <literal>size(), minelement(), "
+"ã³ã¬ã¯ã·ã§ã³å¤ã®ãã¹å¼ãåã HQL 颿°ï¼ <literal>size(), minelement(), "
"maxelement(), minindex(), maxindex()</literal> ã <literal>some, all, "
"exists, any, in</literal> ã使ã£ã¦ä¿®é£¾ãããã¨ãã§ããç¹å¥ãª "
"<literal>elements()</literal> 㨠<literal>indices</literal> 颿°ã¨ä¸ç·ã«ä½¿ã"
"ã¾ãã"
#. Tag: para
-#: query_hql.xml:644
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
"<literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</"
"literal>"
msgstr ""
-"<literal>sign()</literal>, <literal>trunc()</literal>, <literal>rtrim()</"
-"literal>, <literal>sin()</literal> ã®ãããªãã¼ã¿ãã¼ã¹ããµãã¼ãããSQLã¹ã«"
-"ã©é¢æ°ã"
+"<literal>sign()</literal>ã <literal>trunc()</literal>ã <literal>rtrim()</"
+"literal>ã <literal>sin()</literal> ã®ãããªãã¼ã¿ãã¼ã¹ããµãã¼ããã SQL ã¹"
+"ã«ã©é¢æ°ã"
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
-msgstr "JDBCã¹ã¿ã¤ã«ã®ä½ç½®ãã©ã¡ã¼ã¿ <literal>?</literal>"
+msgstr "JDBC ã¹ã¿ã¤ã«ã®ä½ç½®ãã©ã¡ã¼ã¿ <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:655
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
"and <literal>:x1</literal>"
@@ -1274,138 +851,76 @@
"literal>, <literal>:x1</literal>"
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
msgstr ""
-"SQLãªãã©ã«ï¼<literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
-"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
+"SQL ãªãã©ã«ï¼ <literal>'foo'</literal>ã <literal>69</literal>ã "
+"<literal>6.66E+2</literal>ã <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
"TABBY</literal>"
msgstr ""
-"Javaã® <literal>public static final</literal> 宿°ï¼<literal>eg.Color.TABBY</"
-"literal>"
+"Java ã® <literal>public static final</literal> 宿°ï¼ <literal>eg.Color."
+"TABBY</literal>"
#. Tag: para
-#: query_hql.xml:672
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
"<literal>in</literal> 㨠<literal>between</literal> ã¯ä»¥ä¸ã®ããã«ä½¿ç¨ã§ãã¾"
-"ãã:"
+"ã:"
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The negated forms can be written as follows:"
msgstr "ã¾ããå¦å®å½¢ã§è¨è¿°ãããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:684
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
"be used to test for null values."
msgstr ""
-"åæ§ã« <literal>is null</literal> ã <literal>is not null</literal> ã¯nullå¤"
-"ããã¹ãããããã«ä½¿ç¨ã§ãã¾ãã"
+"åæ§ã« <literal>is null</literal> ã <literal>is not null</literal> 㯠null "
+"å¤ããã¹ãããããã«ä½¿ç¨ã§ãã¾ãã"
#. Tag: para
-#: query_hql.xml:693
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
-"Hibernateè¨å®ãã¡ã¤ã«ã§HQL query substitutionsãå®ç¾©ããã°ãbooleanå¤ãå¼ã®ä¸"
-"ã§ç°¡åã«ä½¿ç¨ã§ãã¾ãï¼"
+"Hibernate è¨å®ãã¡ã¤ã«ã§ HQL query substitutions ãå®ç¾©ããã°ã boolean å¤ã"
+"å¼ã®ä¸ã§ç°¡åã«ä½¿ç¨ã§ãã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
"literal> with the literals <literal>1</literal> and <literal>0</literal> in "
"the translated SQL from this HQL:"
msgstr ""
-"ãããããã¨ã§ä¸è¨ã®HQLãSQLã«å¤æããã¨ãã« <literal>true</literal> , "
-"<literal>false</literal> ãã¼ã¯ã¼ã㯠<literal>1</literal> , <literal>0</"
-"literal> ã«ç½®ãæãããã¾ãã:"
+"ãããããã¨ã§ä¸è¨ã® HQL ã SQL ã«å¤æããã¨ãã« <literal>true</literal> ã "
+"<literal>false</literal> ãã¼ã¯ã¼ã㯠<literal>1</literal> ã <literal>0</"
+"literal> ã«ç½®ãæãããã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can test the size of a collection with the special property "
"<literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
"ç¹å¥ãªãããã㣠<literal>size</literal>ãã¾ãã¯ç¹å¥ãªé¢æ° <literal>size()</"
-"literal> ã使ã£ã¦ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºããã¹ãã§ãã¾ãã:"
+"literal> ã使ã£ã¦ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºããã¹ãã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
"using <literal>minindex</literal> and <literal>maxindex</literal> functions. "
@@ -1413,34 +928,14 @@
"of basic type using the <literal>minelement</literal> and "
"<literal>maxelement</literal> functions. For example:"
msgstr ""
-"ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ã§ã¯ã<literal>minindex</literal> 㨠"
+"ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ã§ã¯ã <literal>minindex</literal> 㨠"
"<literal>maxindex</literal> 颿°ã使ã£ã¦ãã¤ã³ããã¯ã¹ã®æå°å¤ã¨æå¤§å¤ãåç
§"
-"ã§ãã¾ãã åæ§ã«ã<literal>minelement</literal> 㨠<literal>maxelement</"
-"literal> ã使ã£ã¦ã åºæ¬åã®ã³ã¬ã¯ã·ã§ã³è¦ç´ ã®æå°å¤ã¨æå¤§å¤ãåç
§ã§ãã¾ãã"
+"ã§ãã¾ããåæ§ã«ã <literal>minelement</literal> 㨠<literal>maxelement</"
+"literal> ã使ã£ã¦ãåºæ¬åã®ã³ã¬ã¯ã·ã§ã³è¦ç´ ã®æå°å¤ã¨æå¤§å¤ãåç
§ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:724
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:730
-#, fuzzy, no-c-format
-msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
"supported when passed the element or index set of a collection "
"(<literal>elements</literal> and <literal>indices</literal> functions) or "
@@ -1448,227 +943,83 @@
msgstr ""
"ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ãã¤ã³ããã¯ã¹ã®ã»ããï¼<literal>elements</literal> 㨠"
"<literal>indices</literal> 颿°ï¼ãã¾ãã¯å¯åãåããï¼å¾è¿°ï¼ã®çµæãåãåã"
-"ãã¨ãã¯ã SQL颿° <literal>any, some, all, exists, in</literal> ããµãã¼ãã"
-"ãã¾ãã"
+"ãã¨ãã¯ã SQL 颿° <literal>any, some, all, exists, in</literal> ããµãã¼ã"
+"ããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:736
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:746
-#, fuzzy, no-c-format
-msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
"<literal>maxelement</literal> - can only be used in the where clause in "
"Hibernate3."
msgstr ""
-"<literal>size</literal>, <literal>elements</literal>, <literal>indices</"
-"literal>, <literal>minindex</literal>, <literal>maxindex</literal>, "
-"<literal>minelement</literal>, <literal>maxelement</literal> ã¯Hibernate3ã®"
-"whereç¯ã ãã§å©ç¨å¯è½ã§ãããã¨ã«æ³¨æãã¦ãã ããã"
+"<literal>size</literal>ã <literal>elements</literal>ã <literal>indices</"
+"literal>ã <literal>minindex</literal>ã <literal>maxindex</literal>ã "
+"<literal>minelement</literal>ã <literal>maxelement</literal> 㯠Hibernate3 "
+"ã® where ç¯ã ãã§å©ç¨å¯è½ã§ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: query_hql.xml:753
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
-"ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ï¼arrays, lists, mapsï¼ã®è¦ç´ ã¯ã ã¤ã³ããã¯ã¹"
-"ã§åç
§ã§ãã¾ãï¼whereç¯å
ã§ã®ã¿ï¼ã"
+"ã¤ã³ããã¯ã¹ä»ãã®ã³ã¬ã¯ã·ã§ã³ï¼arrays, lists, mapsï¼ã®è¦ç´ ã¯ãã¤ã³ããã¯ã¹ã§"
+"åç
§ã§ãã¾ãï¼whereç¯å
ã§ã®ã¿ï¼ï¼"
-#. Tag: programlisting
-#: query_hql.xml:758
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
msgstr "<literal>[]</literal> å
é¨ã®å¼ã¯ãç®è¡å¼ã§ãæ§ãã¾ããã"
-#. Tag: programlisting
-#: query_hql.xml:770
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:772
-#, fuzzy, no-c-format
-msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
"elements of a one-to-many association or collection of values."
msgstr ""
-"ä¸å¯¾å¤é¢é£ãå¤ã®ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã«å¯¾ãã¦ã¯ãHQLã¯çµã¿è¾¼ã¿ã® <literal>index"
-"()</literal> 颿°ãç¨æãã¦ãã¾ãã"
+"ä¸å¯¾å¤é¢é£ãå¤ã®ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã«å¯¾ãã¦ã¯ã HQL ã¯çµã¿è¾¼ã¿ã® "
+"<literal>index()</literal> 颿°ãç¨æãã¦ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
-"ãã¼ã¹ã¨ãªããã¼ã¿ãã¼ã¹ããµãã¼ããã¦ããã¹ã«ã©ã¼SQL颿°ã使ç¨ã§ãã¾ã"
+"ãã¼ã¹ã¨ãªããã¼ã¿ãã¼ã¹ããµãã¼ããã¦ããã¹ã«ã©ã¼ SQL 颿°ã使ç¨ã§ãã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:783
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:785
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
-"ããã¾ã å
¨ã¦ãçè§£ãã¦ããªããªããä¸ã®ã¯ã¨ãªãSQLã§ã©ãã ãé·ããèªã¿ã¥ããåº"
-"æ¥ããèãã¦ãã ããã:"
+"ããã¾ã å
¨ã¦ãçè§£ãã¦ããªããªããä¸ã®ã¯ã¨ãªã SQL ã§ã©ãã ãé·ããèªã¿ã¥ãã"
+"åºæ¥ããèãã¦ãã ãã:"
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
msgstr "<emphasis>ãã³ã:</emphasis> ä¾ãã°ãã®ããã«åºæ¥ã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
-msgstr "order byç¯"
+msgstr "order by ç¯"
#. Tag: para
-#: query_hql.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
-"ã¯ã¨ãªãè¿ãlistã¯ãè¿ãããã¯ã©ã¹ãã³ã³ãã¼ãã³ãã®ä»»æã®å±æ§ã«ãã£ã¦ä¸¦ã¹æ¿"
-"ãããã¾ããï¼"
+"ã¯ã¨ãªãè¿ã list ã¯ãè¿ãããã¯ã©ã¹ãã³ã³ãã¼ãã³ãã®ä»»æã®å±æ§ã«ãã£ã¦ä¸¦ã¹"
+"æ¿ãããã¾ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
@@ -1678,104 +1029,57 @@
"ãéé ã®æ´åã示ãã¾ãã"
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
-msgstr "group byç¯"
+msgstr "group by ç¯"
#. Tag: para
-#: query_hql.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
"éç´å¤ãè¿ãã¯ã¨ãªã¯ãè¿ãããã¯ã©ã¹ãã³ã³ãã¼ãã³ãã®ä»»æã®ããããã£ã«ãã£"
-"ã¦ã°ã«ã¼ãåã§ãã¾ãã:"
+"ã¦ã°ã«ã¼ãåã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
msgstr "<literal>having</literal> ç¯ã使ãã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:830
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:832
-#, fuzzy, no-c-format
-msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
"literal> and <literal>order by</literal> clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
"ãã使ç¨ãããã¼ã¿ãã¼ã¹ããµãã¼ããã¦ãããªãã <literal>having</literal> "
-"㨠<literal>order by</literal> ç¯ã§SQL颿°ã¨éç´é¢æ°ã使ãã¾ã ï¼ä¾ãã°MySQL"
-"ã«ã¯ããã¾ããï¼ã"
+"㨠<literal>order by</literal> ç¯ã§ SQL 颿°ã¨éç´é¢æ°ã使ãã¾ãï¼ä¾ãã° "
+"MySQL ã«ã¯ããã¾ããï¼ã"
-#. Tag: programlisting
-#: query_hql.xml:838
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:840
-#, fuzzy, no-c-format
-msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
"literal> clause can contain arithmetic expressions. Hibernate also does not "
"currently expand a grouped entity, so you cannot write <literal>group by "
"cat</literal> if all properties of <literal>cat</literal> are non-"
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
-"Note that neither the <literal>group by</literal> clause nor the "
-"<literal>order by</literal> clause may contain arithmetic expressions. Also "
-"note that Hibernate currently does not expand a grouped entity, so you can't "
-"write <literal>group by cat</literal> if all properties of <literal>cat</"
-"literal> are non-aggregated. You have to list all non-aggregated properties "
-"explicitly."
+"<literal>group by</literal> ç¯ã <literal>order by</literal> ç¯ã«ç®è¡å¼ãå«ã"
+"ãã¨ãã§ããªããã¨ã«æ³¨æãã¦ãã ãããã¾ãã Hibernate ã¯ä»ã®ã¨ããã°ã«ã¼ã"
+"ã¨ã³ãã£ãã£ãæ¡å¼µããªããã¨ã«ã注æãã¦ãã ããããããã£ã¦ããã "
+"<literal>cat</literal> ã®å
¨ã¦ã®ããããã£ãééåä½ã®å ´åã <literal>group "
+"by cat</literal> ãæ¸ããã¨ã¯ã§ãã¾ãããå
¨ã¦ã®ééåä½ã®ããããã£ãæç¤ºçã«"
+"ãªã¹ãããå¿
è¦ãããã¾ãã"
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
msgstr "å¯åãåãã"
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1783,85 +1087,36 @@
"aggregate function call). Even correlated subqueries (subqueries that refer "
"to an alias in the outer query) are allowed."
msgstr ""
-"ãµãã»ã¬ã¯ãããµãã¼ããããã¼ã¿ãã¼ã¹ã®ãããHibernateã¯å¯åãåããããµãã¼"
-"ããã¦ãã¾ãã å¯åãåããã¯æ¬å¼§ã§å²ã¾ãªããã°ãªãã¾ããï¼SQLã®éç´é¢æ°å¼ã³"
-"åºãã«ããäºãå¤ãã§ãï¼ã é¢é£å¯åãåãã(å¤é¨ã¯ã¨ãªä¸ã®å¥åãåç
§ããå¯å"
-"ãåããã®ãã¨)ãã許å¯ããã¾ãã"
+"ãµãã»ã¬ã¯ãããµãã¼ããããã¼ã¿ãã¼ã¹ã®ããã Hibernate ã¯å¯åãåããããµ"
+"ãã¼ããã¦ãã¾ããå¯åãåããã¯æ¬å¼§ã§å²ã¾ãªããã°ãªãã¾ããï¼ SQL ã®éç´é¢æ°"
+"å¼ã³åºãã«ããäºãå¤ãã§ãï¼ãé¢é£å¯åãåãã (å¤é¨ã¯ã¨ãªä¸ã®å¥åãåç
§ãã"
+"å¯åãåããã®ãã¨) ãã許å¯ããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
-"HQLå¯åãåããã¯ãselectã¾ãã¯whereç¯ã ãã§ä½¿ããããã¨ã«æ³¨æãã¦ãã ããã"
+"HQL å¯åãåããã¯ã select ã¾ã㯠where ç¯ã ãã§ä½¿ããããã¨ã«æ³¨æãã¦ãã ã"
+"ãã"
#. Tag: para
-#: query_hql.xml:874
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
-"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more details."
+"ãµãã¯ã¨ãªã¯ <literal>row value constructor</literal> æ§æã使ç¨ã§ãããã¨ã"
+"è¦ãã¦ããã¦ãã ããã詳細ã«ã¤ãã¦ã¯ <xref linkend=\"queryhql-tuple\"/> ãå"
+"ç
§ãã¦ãã ããã"
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
-msgstr "HQLã®ä¾"
+msgstr "HQL ã®ä¾"
#. Tag: para
-#: query_hql.xml:884
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
@@ -1869,14 +1124,13 @@
"projects. Please note that most queries you will write will be much simpler "
"than the following examples."
msgstr ""
-"Hibernateã¯ã¨ãªã¯é常ã«å¼·åã§è¤éã«ã§ãã¾ããå®éãã¯ã¨ãªè¨èªã®å¨åã¯"
-"Hibernateã®ä¸»è¦ãªã»ã¼ã«ã¹ãã¤ã³ãã®ä¸ã¤ã§ãã ããã«æè¿ã®ããã¸ã§ã¯ãã§ä½¿ç¨"
-"ããã¯ã¨ãªã¨é常ã«ããä¼¼ãä¾ãããã¾ãã ã»ã¨ãã©ã®ã¯ã¨ãªã¯ãããã®ä¾ããç°¡å"
-"ã«è¨è¿°ã§ãããã¨ã«æ³¨æãã¦ãã ãã!"
+"Hibernate ã¯ã¨ãªã¯é常ã«å¼·åã§è¤éã«ã§ãã¾ããå®éãã¯ã¨ãªè¨èªã®å¨å㯠"
+"Hibernate ã®ä¸»è¦ãªã»ã¼ã«ã¹ãã¤ã³ãã®ä¸ã¤ã§ããããã«æè¿ã®ããã¸ã§ã¯ãã§ä½¿ç¨"
+"ããã¯ã¨ãªã¨é常ã«ããä¼¼ãä¾ãããã¾ããã»ã¨ãã©ã®ã¯ã¨ãªã¯ãããã®ä¾ããç°¡å"
+"ã«è¨è¿°ã§ãããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: query_hql.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
@@ -1886,68 +1140,23 @@
"<literal>PRODUCT</literal>, <literal>CATALOG</literal> and <literal>PRICE</"
"literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
-"以ä¸ã®ã¯ã¨ãªã¯ç¹å®ã®é¡§å®¢ã¨ä¸ããããæå°ã®åè¨å¤ã«å¯¾ããæªæã注æã®æ³¨æIDã "
-"ååã®æ°ã注æã®åè¨ãåè¨å¤ã§æ´åãã¦è¿ãã¾ãã ä¾¡æ ¼ãæ±ºå®ããéãç¾å¨ã®ã«ã¿"
-"ãã°ã使ãã¾ããçµæã¨ãã¦è¿ãããSQLã¯ã¨ãªã¯ <literal>ORDER</literal>, "
-"<literal>ORDER_LINE</literal>, <literal>PRODUCT</literal>, <literal>CATALOG</"
-"literal> ããã³ <literal>PRICE</literal> ãã¼ãã«ã«å¯¾ã4ã¤ã®å
é¨çµå㨠(é¢é£"
-"ããªã)å¯åãåãããæã¡ã¾ãã"
+"以ä¸ã®ã¯ã¨ãªã¯ç¹å®ã®é¡§å®¢ã¨ä¸ããããæå°ã®åè¨å¤ã«å¯¾ããæªæã注æã®æ³¨æ "
+"ID ãååã®æ°ã注æã®åè¨ãåè¨å¤ã§æ´åãã¦è¿ãã¾ããä¾¡æ ¼ãæ±ºå®ããéãç¾å¨ã®"
+"ã«ã¿ãã°ã使ãã¾ããçµæã¨ãã¦è¿ããã SQL ã¯ã¨ãªã¯ <literal>ORDER</"
+"literal>ã <literal>ORDER_LINE</literal>ã <literal>PRODUCT</literal>ã "
+"<literal>CATALOG</literal> ããã³ <literal>PRICE</literal> ãã¼ãã«ã«å¯¾ã4ã¤"
+"ã®å
é¨çµå㨠(é¢é£ããªã) å¯åãåãããæã¡ã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
"my query was really more like this:"
msgstr ""
-"ä½ã¦å·¨å¤§ãªã¯ã¨ãªãªã®ã§ããã! æ®æ®µç§ã¯å¯åãåããããã¾ã使ãã¾ããããã"
+"ä½ã¦å·¨å¤§ãªã¯ã¨ãªãªã®ã§ããããæ®æ®µç§ã¯å¯åãåããããã¾ã使ãã¾ããããã"
"ãã£ã¦ç§ã®ã¯ã¨ãªã¯å®éã«ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã:"
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -1958,58 +1167,21 @@
"<literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
"次ã®ã¯ã¨ãªã¯åã¹ãã¼ã¿ã¹ã®æ¯æãæ°ãæ°ãã¾ãããã ããã¹ã¦ã®æ¯æããç¾å¨ã®å©"
-"ç¨è
ã«ãã ææ°ã®ã¹ãã¼ã¿ã¹å¤æ´ã§ãã <literal>AWAITING_APPROVAL</literal> ã§"
-"ããå ´åãé¤ãã¾ãã ãã®ã¯ã¨ãªã¯2ã¤ã®å
é¨çµå㨠<literal>PAYMENT</literal>, "
+"ç¨è
ã«ããææ°ã®ã¹ãã¼ã¿ã¹å¤æ´ã§ãã <literal>AWAITING_APPROVAL</literal> ã§"
+"ããå ´åãé¤ãã¾ãããã®ã¯ã¨ãªã¯2ã¤ã®å
é¨çµå㨠<literal>PAYMENT</literal>, "
"<literal>PAYMENT_STATUS</literal> ããã³ <literal>PAYMENT_STATUS_CHANGE</"
-"literal> ãã¼ãã«ã«å¯¾ããé¢é£å¯åãåãããåããSQLã¯ã¨ãªã«å¤æããã¾ãã"
+"literal> ãã¼ãã«ã«å¯¾ããé¢é£å¯åãåãããåãã SQL ã¯ã¨ãªã«å¤æããã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:916
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:918
-#, fuzzy, no-c-format
-msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
-"ããç§ãsetã®ä»£ããã«listã¨ã㦠<literal>statusChanges</literal> ã³ã¬ã¯ã·ã§ã³"
-"ã ãããã³ã°ãããªãã°ãã¯ããã«ç°¡åã«ã¯ã¨ãªãè¨è¿°ã§ããã§ãããã"
+"ãã set ã®ä»£ããã« list ã¨ã㦠<literal>statusChanges</literal> ã³ã¬ã¯ã·ã§ã³"
+"ããããã³ã°ãããªãã°ãã¯ããã«ç°¡åã«ã¯ã¨ãªãè¨è¿°ã§ããã§ãããã"
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -2020,314 +1192,150 @@
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and "
"<literal>ORG_USER</literal> tables."
msgstr ""
-"次ã®ã¯ã¨ãªã¯ç¾å¨ã®ã¦ã¼ã¶ãæå±ããçµç¹ã«å¯¾ããã¢ã«ã¦ã³ãããã³æªæãã®æ¯æã"
-"ã ãã¹ã¦è¿ãMS SQL Server ã® <literal>isNull()</literal> 颿°ã使ç¨ãã¦ãã¾"
-"ãã ãã®ã¯ã¨ãªã¯3ã¤ã®å
é¨çµåã¨1ã¤ã®å¤é¨çµå ã ãã㦠<literal>ACCOUNT</"
-"literal>, <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal>, "
-"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> ããã³ "
-"<literal>ORG_USER</literal> ãã¼ãã«ã«å¯¾ããå¯åãåããæã£ãSQLã«å¤æããã¾"
-"ãã"
+"次ã®ã¯ã¨ãªã¯ç¾å¨ã®ã¦ã¼ã¶ã¼ãæå±ããçµç¹ã«å¯¾ããã¢ã«ã¦ã³ãããã³æªæãã®æ¯æ"
+"ãããã¹ã¦è¿ã MS SQL Server ã® <literal>isNull()</literal> 颿°ã使ç¨ãã¦ã"
+"ã¾ãããã®ã¯ã¨ãªã¯3ã¤ã®å
é¨çµåã¨1ã¤ã®å¤é¨çµåããã㦠<literal>ACCOUNT</"
+"literal>ã <literal>PAYMENT</literal>ã <literal>PAYMENT_STATUS</literal>ã "
+"<literal>ACCOUNT_TYPE</literal>ã <literal>ORGANIZATION</literal> ããã³ "
+"<literal>ORG_USER</literal> ãã¼ãã«ã«å¯¾ããå¯åãåããæã£ã SQL ã«å¤æãã"
+"ã¾ãã"
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
-"ããã¤ãã®ãã¼ã¿ãã¼ã¹ã«ã¤ãã¦ã¯ã(é¢é£ããããã)å¯åãåããã®ä½¿ç¨ãé¿ãã"
-"å¿
è¦ãããã§ãããã"
+"ããã¤ãã®ãã¼ã¿ãã¼ã¹ã«ã¤ãã¦ã¯ã (é¢é£ããããã) å¯åãåããã®ä½¿ç¨ãé¿ã"
+"ãå¿
è¦ãããã§ãããã"
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
-msgstr "大éã®UPDATEã¨DELETE"
+msgstr "大éã® UPDATE 㨠DELETE"
#. Tag: para
-#: query_hql.xml:947
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
-"HQLã¯ä»ã¯ <literal>update</literal> 㨠<literal>delete</literal>ã"
-"<literal>insert ... select ...</literal> ã¹ãã¼ãã¡ã³ããHQLã«å
¥ãããã¨ããµ"
-"ãã¼ããã¦ãã¾ãã <xref linkend=\"batch-direct\"/> ã«è©³ç´°ãããã¾ãã"
+"HQL ã¯ç¾å¨ <literal>update</literal> 㨠<literal>delete</literal>ã "
+"<literal>insert ... select ...</literal> ã¹ãã¼ãã¡ã³ãããµãã¼ããã¦ãã¾ãã"
+"詳細ã«ã¤ãã¦ã¯ <xref linkend=\"batch-direct\"/> ãåç
§ãã ããã"
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr "Tips & Tricks"
#. Tag: para
-#: query_hql.xml:957
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can count the number of query results without returning them:"
-msgstr "å®éã«çµæãè¿ããªãã¦ãã¯ã¨ãªã®çµææ°ãæ°ãããã¨ãã§ãã¾ãã:"
+msgstr "å®éã«çµæãè¿ããªãã¦ãã¯ã¨ãªã®çµææ°ãæ°ãããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºã«ããçµæãä¸¦ã¹æ¿ããããã«ã¯ä»¥ä¸ã®ã¯ã¨ãªã使ç¨ãã¾ãã:"
+"ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºã«ããçµæãä¸¦ã¹æ¿ããããã«ã¯ä»¥ä¸ã®ã¯ã¨ãªã使ç¨ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
-"使ç¨ãã¦ãããã¼ã¿ãã¼ã¹ããµãã»ã¬ã¯ãããµãã¼ãããå ´åãã¯ã¨ãªã®whereç¯ã§ãµ"
-"ã¤ãºã«ãã鏿æ¡ä»¶ãè¨å®ã§ãã¾ã:"
+"使ç¨ãã¦ãããã¼ã¿ãã¼ã¹ããµãã»ã¬ã¯ãããµãã¼ãããå ´åãã¯ã¨ãªã® where ç¯ã§"
+"ãµã¤ãºã«ãã鏿æ¡ä»¶ãè¨å®ã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:974
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid "If your database does not support subselects, use the following query:"
msgstr ""
"使ç¨ãã¦ãããã¼ã¿ãã¼ã¹ããµãã»ã¬ã¯ãããµãã¼ãããªãå ´åã¯ã次ã®ã¯ã¨ãªã使"
"ç¨ãã¦ãã ãã:"
-#. Tag: programlisting
-#: query_hql.xml:980
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:983
-#, fuzzy, no-c-format
-msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
-"å
é¨çµåããã¦ããããã§ä¸ã®è§£æ±ºæ³ãmessageã®ä»¶æ°ã ã¼ãã® <literal>User</"
-"literal> ãè¿ããã¨ãã§ããªããªãã°ã以ä¸ã®å½¢å¼ã使ãã¾ãã"
+"å
é¨çµåããã¦ããããã§ä¸ã®è§£æ±ºæ³ã message ã®ä»¶æ°ãã¼ãã® <literal>User</"
+"literal> ãè¿ããã¨ãã§ããªããªãã°ã以ä¸ã®å½¢å¼ã使ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
-"JavaBeanã®ããããã£ã¯ãååä»ãã®ã¯ã¨ãªãã©ã¡ã¼ã¿ã«çµã³ã¤ãããã¨ãåºæ¥ã¾"
-"ããï¼"
+"JavaBean ã®ããããã£ã¯ãååä»ãã®ã¯ã¨ãªãã©ã¡ã¼ã¿ã«çµã³ã¤ãããã¨ãåºæ¥ã¾"
+"ãï¼"
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
"with a filter:"
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã¯ãã£ã«ã¿ä»ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã使ç¨ã"
-"ããã¨ã§ãã¼ã¸ãã¤ãããã¨ãã§ãã¾ãã:"
+"ã³ã¬ã¯ã·ã§ã³ã¯ãã£ã«ã¿ä»ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ç¨ã"
+"ããã¨ã§ãã¼ã¸ãã¤ãããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã¯ã¯ã¨ãªãã£ã«ã¿ã使ã£ã¦ãä¸¦ã¹æ¿ããã°ã«ã¼ãåããåºæ¥ã¾"
-"ãã:"
+"ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã¯ã¯ã¨ãªãã£ã«ã¿ã使ã£ã¦ãä¸¦ã¹æ¿ããã°ã«ã¼ãåããåºæ¥ã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
-msgstr "ã³ã¬ã¯ã·ã§ã³ãåæåããã«ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºãå¾ããã¨ãã§ãã¾ãã:"
+msgstr "ã³ã¬ã¯ã·ã§ã³ãåæåããã«ã³ã¬ã¯ã·ã§ã³ã®ãµã¤ãºãå¾ããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
-msgstr "translator-credits"
+msgstr "ã³ã³ãã¼ãã³ã"
#. Tag: para
-#: query_hql.xml:1019
#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select</literal> clause as "
"follows:"
msgstr ""
+"HQL ã¯ã¨ãªã§ã·ã³ãã«ãªå¤åã使ç¨ã§ããã®ã§ãã³ã³ãã¼ãã³ãã¯ãããããç¹ã§ä½¿"
+"ç¨ã§ãã¾ãããã㯠<literal>select</literal> ç¯ã®ä¸ã«ç¾ããã¾ã:"
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where</literal> clause:"
msgstr ""
+"人åã®ããããã£ãã³ã³ãã¼ãã³ãã®å ´æãã³ã³ãã¼ãã³ãã¯ã <literal>where</"
+"literal> ç¯ã§ã使ç¨å¯è½ã§ã:"
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
-msgstr ""
+msgstr "ã³ã³ãã¼ãã³ã㯠<literal>order by</literal> ç¯ã§ã使ç¨å¯è½ã§ã:"
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
+"ã³ã³ãã¼ãã³ãã®ä»ã®ä¸è¬çãªä½¿ç¨ã¯ã <xref linkend=\"queryhql-tuple\"/> è¡å¤"
+"ã³ã³ã¹ãã©ã¯ã¿ã«ããã¾ãã"
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
-msgstr ""
+msgstr "è¡å¤ã³ã³ã¹ãã©ã¯ã¿æ§æ"
#. Tag: para
-#: query_hql.xml:1050
#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
@@ -2336,71 +1344,983 @@
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
+"ä¸ã«ä½ç½®ãããã¼ã¿ãã¼ã¹ã ANSI SQL <literal>row value constructor</literal> "
+"æ§æ (<literal>tuple</literal> æ§æã¨ãã°ãããã¨ãããã¾ã) ããµãã¼ããã¦ã"
+"ãªãã¨ãã¦ãã HQL ã¯ãã®ä½¿ç¨ããµãã¼ããã¦ãã¾ããããã§ã¯ãä¸è¬çã«ã³ã³ãã¼"
+"ãã³ãã¨é£ç¹ãããã«ãããªã¥ã¼æ¯è¼ã«ã¤ãã¦è§¦ãã¾ãããã¼ã ã³ã³ãã¼ãã³ããå®"
+"義ãã Person ã¨ã³ãã£ãã£ãèãã¾ããã:"
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
+"ããã¯å°ã
詳細ã«ãªãã¾ãããæå¹ãªæ§æã§ããããç°¡æ½ã«ãã <literal>row "
+"value constructor</literal> æ§æã使ç¨ããã®ãããã§ããã:"
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
"clause:"
-msgstr ""
+msgstr "ããã <literal>select</literal> ç¯ã§æå®ããã®ã广çã§ãã"
#. Tag: para
-#: query_hql.xml:1072
#, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
+"次㫠<literal>row value constructor</literal> æ§æã®ä½¿ç¨ãæå¹ãªã¨ãã¯ããµã"
+"ã¯ã¨ãªã使ç¨ãã¦è¤æ°ã®å¤ã¨æ¯è¼ããå¿
è¦ãããã¨ãã§ã:"
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
+"ãã®æ§æã使ç¨ãããã©ããæ±ºå®ããã¨ãã«èæ
®ããªããã°ãªããªããã¨ã¯ãã¯ã¨ãª"
+"ãã¡ã¿ãã¼ã¿å
ã®ã³ã³ãã¼ãã³ãã®ãµãããããã£ã®é çªã«ä¾åãã¦ãããã¨ã§ãã"
+#, fuzzy
+#~ msgid "<![CDATA[from eg.Cat]]>"
+#~ msgstr "from eg.Cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat]]>"
+#~ msgstr "from eg.Cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat]]>"
+#~ msgstr "from Cat as cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat]]>"
+#~ msgstr "from Cat cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula, Parameter]]>"
+#~ msgstr "from Formula, Parameter"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula as form, Parameter as param]]>"
+#~ msgstr "from Formula as form, Parameter as param"
+
+#, fuzzy
#~ msgid ""
-#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
-#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
-#~ "of the query."
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join cat.mate as mate\n"
+#~ " left outer join cat.kittens as kitten]]>"
#~ msgstr ""
-#~ "ã»ã¨ãã©ã®å ´åã¯ã¨ãªã®ã»ãã®é¨åã§ã<literal>Cat</literal>ããåç
§ããã®"
-#~ "ã§ãå¥åãå²ãå½ã¦ãå¿
è¦ãããã§ãããã"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate\n"
+#~ " left outer join cat.kittens as kitten"
-#~ msgid "or as an actual typesafe Java object,"
-#~ msgstr "ã¾ãã¯ãã¿ã¤ãã»ã¼ããªJavaãªãã¸ã§ã¯ããè¿ãã¾ãã"
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
+#~ msgstr "from Cat as cat left join cat.mate.kittens as kittens"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula form full join form.parameter param]]>"
+#~ msgstr "from Formula form full join form.parameter param"
+
+#~ msgid "inner join"
+#~ msgstr "inner join"
+
+#~ msgid "left outer join"
+#~ msgstr "left outer join"
+
+#, fuzzy
+#~ msgid "right outer join"
+#~ msgstr "left outer join"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " join cat.mate as mate\n"
+#~ " left join cat.kittens as kitten]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " join cat.mate as mate\n"
+#~ " left join cat.kittens as kitten"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " left join cat.kittens as kitten\n"
+#~ " with kitten.bodyWeight > 10.0]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " left join cat.kittens as kitten\n"
+#~ " with kitten.bodyWeight > 10.0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens child\n"
+#~ " left join fetch child.kittens]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens child\n"
+#~ " left join fetch child.kittens"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Document fetch all properties order by name]]>"
+#~ msgstr "from Document fetch all properties order by name"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Document doc fetch all properties where lower(doc.name) "
+#~ "like '%cats%']]>"
+#~ msgstr ""
+#~ "from Document doc fetch all properties where lower(doc.name) like '%"
+#~ "cats%'"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
+#~ msgstr "from Cat as cat where cat.mate.name like '%s%'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mate\n"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate]]>"
+#~ msgstr ""
+#~ "select mate\n"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate"
+
+#, fuzzy
+#~ msgid "<![CDATA[select cat.mate from Cat cat]]>"
+#~ msgstr "select cat.mate from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.name from DomesticCat cat\n"
+#~ "where cat.name like 'fri%']]>"
+#~ msgstr ""
+#~ "select cat.name from DomesticCat cat\n"
+#~ "where cat.name like 'fri%'"
+
+#, fuzzy
+#~ msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
+#~ msgstr "select cust.name.firstName from Customer as cust"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mother, offspr, mate.name\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select mother, offspr, mate.name\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new list(mother, offspr, mate.name)\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select new list(mother, offspr, mate.name)\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new Family(mother, mate, offspr)\n"
+#~ "from DomesticCat as mother\n"
+#~ " join mother.mate as mate\n"
+#~ " left join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select new Family(mother, mate, offspr)\n"
+#~ "from DomesticCat as mother\n"
+#~ " join mother.mate as mate\n"
+#~ " left join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
+#~ "as n\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n\n"
+#~ "from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
+#~ "count(*) as n )\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
+#~ "as n )\n"
+#~ "from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
+#~ "(cat)\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)\n"
+#~ "from Cat cat"
+
+#~ msgid "count(*)"
+#~ msgstr "count(*)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.weight + sum(kitten.weight)\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.weight]]>"
+#~ msgstr ""
+#~ "select cat.weight + sum(kitten.weight)\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.weight"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select firstName||' '||initial||' '||upper(lastName) from "
+#~ "Person]]>"
+#~ msgstr "select firstName||' '||initial||' '||upper(lastName) from Person"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select distinct cat.name from Cat cat\n"
+#~ "\n"
+#~ "select count(distinct cat.name), count(cat) from Cat cat]]>"
+#~ msgstr ""
+#~ "select distinct cat.name from Cat cat\n"
+#~ "\n"
+#~ "select count(distinct cat.name), count(cat) from Cat cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from java.lang.Object o]]>"
+#~ msgstr "from java.lang.Object o"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
+#~ msgstr "from Named n, Named m where n.name = m.name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat where name='Fritz']]>"
+#~ msgstr "from Cat where name='Fritz'"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
+#~ msgstr "from Cat as cat where cat.name='Fritz'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select foo\n"
+#~ "from Foo foo, Bar bar\n"
+#~ "where foo.startDate = bar.date]]>"
+#~ msgstr ""
+#~ "select foo\n"
+#~ "from Foo foo, Bar bar\n"
+#~ "where foo.startDate = bar.date"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
+#~ msgstr "from Cat cat where cat.mate.name is not null"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Foo foo\n"
+#~ "where foo.bar.baz.customer.address.city is not null]]>"
+#~ msgstr ""
+#~ "from Foo foo\n"
+#~ "where foo.bar.baz.customer.address.city is not null"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
+#~ msgstr "from Cat cat, Cat rival where cat.mate = rival.mate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat, mate\n"
+#~ "from Cat cat, Cat mate\n"
+#~ "where cat.mate = mate]]>"
+#~ msgstr ""
+#~ "select cat, mate\n"
+#~ "from Cat cat, Cat mate\n"
+#~ "where cat.mate = mate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat where cat.id = 123\n"
+#~ "\n"
+#~ "from Cat as cat where cat.mate.id = 69]]>"
+#~ msgstr ""
+#~ "from Cat as cat where cat.id = 123\n"
+#~ "\n"
+#~ "from Cat as cat where cat.mate.id = 69"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from bank.Person person\n"
+#~ "where person.id.country = 'AU'\n"
+#~ " and person.id.medicareNumber = 123456]]>"
+#~ msgstr ""
+#~ "from bank.Person person\n"
+#~ "where person.id.country = 'AU'\n"
+#~ " and person.id.medicareNumber = 123456"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from bank.Account account\n"
+#~ "where account.owner.id.country = 'AU'\n"
+#~ " and account.owner.id.medicareNumber = 123456]]>"
+#~ msgstr ""
+#~ "from bank.Account account\n"
+#~ "where account.owner.id.country = 'AU'\n"
+#~ " and account.owner.id.medicareNumber = 123456"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
+#~ msgstr "from Cat cat where cat.class = DomesticCat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from AuditLog log, Payment payment\n"
+#~ "where log.item.class = 'Payment' and log.item.id = payment.id]]>"
+#~ msgstr ""
+#~ "from AuditLog log, Payment payment\n"
+#~ "where log.item.class = 'Payment' and log.item.id = payment.id"
+
+#, fuzzy
+#~ msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
+#~ msgstr "from DomesticCat cat where cat.name between 'A' and 'B'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
+#~ msgstr "from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
+#~ msgstr "from DomesticCat cat where cat.name not between 'A' and 'B'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', "
+#~ "'Baz' )]]>"
+#~ msgstr "from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false "
+#~ "0</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"hibernate.query.substitutions\">true 1, false "
+#~ "0</property>"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
+#~ msgstr "from Cat cat where cat.alive = true"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
+#~ msgstr "from Cat cat where cat.kittens.size > 0"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
+#~ msgstr "from Cat cat where size(cat.kittens) > 0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]"
+#~ ">"
+#~ msgstr "from Calendar cal where maxelement(cal.holidays) > current_date"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
+#~ msgstr "from Order order where maxindex(order.items) > 100"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
+#~ msgstr "from Order order where minelement(order.items) > 10000"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mother from Cat as mother, Cat as kit\n"
+#~ "where kit in elements(foo.kittens)]]>"
+#~ msgstr ""
+#~ "select mother from Cat as mother, Cat as kit\n"
+#~ "where kit in elements(foo.kittens)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select p from NameList list, Person p\n"
+#~ "where p.name = some elements(list.names)]]>"
+#~ msgstr ""
+#~ "select p from NameList list, Person p\n"
+#~ "where p.name = some elements(list.names)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
+#~ msgstr "from Cat cat where exists elements(cat.kittens)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
+#~ msgstr "from Player p where 3 > all elements(p.scores)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
+#~ msgstr "from Show show where 'fizard' in indices(show.acts)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
+#~ msgstr "from Order order where order.items[0].id = 1234"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select person from Person person, Calendar calendar\n"
+#~ "where calendar.holidays['national day'] = person.birthDay\n"
+#~ " and person.nationality.calendar = calendar]]>"
+#~ msgstr ""
+#~ "select person from Person person, Calendar calendar\n"
+#~ "where calendar.holidays['national day'] = person.birthDay\n"
+#~ " and person.nationality.calendar = calendar"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
+#~ "11]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
+#~ "11"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ size(order.items) - 1 ] = item]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ size(order.items) - 1 ] = item"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item, index(item) from Order order\n"
+#~ " join order.items item\n"
+#~ "where index(item) < 5]]>"
+#~ msgstr ""
+#~ "select item, index(item) from Order order\n"
+#~ " join order.items item\n"
+#~ "where index(item) < 5"
+
+#, fuzzy
+#~ msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
+#~ msgstr "from DomesticCat cat where upper(cat.name) like 'FRI%'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cust\n"
+#~ "from Product prod,\n"
+#~ " Store store\n"
+#~ " inner join store.customers cust\n"
+#~ "where prod.name = 'widget'\n"
+#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
+#~ " and prod = all elements(cust.currentOrder.lineItems)]]>"
+#~ msgstr ""
+#~ "select cust\n"
+#~ "from Product prod,\n"
+#~ " Store store\n"
+#~ " inner join store.customers cust\n"
+#~ "where prod.name = 'widget'\n"
+#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
+#~ " and prod = all elements(cust.currentOrder.lineItems)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
+#~ "current_order\n"
+#~ "FROM customers cust,\n"
+#~ " stores store,\n"
+#~ " locations loc,\n"
+#~ " store_customers sc,\n"
+#~ " product prod\n"
+#~ "WHERE prod.name = 'widget'\n"
+#~ " AND store.loc_id = loc.id\n"
+#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
+#~ " AND sc.store_id = store.id\n"
+#~ " AND sc.cust_id = cust.id\n"
+#~ " AND prod.id = ALL(\n"
+#~ " SELECT item.prod_id\n"
+#~ " FROM line_items item, orders o\n"
+#~ " WHERE item.order_id = o.id\n"
+#~ " AND cust.current_order = o.id\n"
+#~ " )]]>"
+#~ msgstr ""
+#~ "SELECT cust.name, cust.address, cust.phone, cust.id, cust.current_order\n"
+#~ "FROM customers cust,\n"
+#~ " stores store,\n"
+#~ " locations loc,\n"
+#~ " store_customers sc,\n"
+#~ " product prod\n"
+#~ "WHERE prod.name = 'widget'\n"
+#~ " AND store.loc_id = loc.id\n"
+#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
+#~ " AND sc.store_id = store.id\n"
+#~ " AND sc.cust_id = cust.id\n"
+#~ " AND prod.id = ALL(\n"
+#~ " SELECT item.prod_id\n"
+#~ " FROM line_items item, orders o\n"
+#~ " WHERE item.order_id = o.id\n"
+#~ " AND cust.current_order = o.id\n"
+#~ " )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat\n"
+#~ "order by cat.name asc, cat.weight desc, cat.birthdate]]>"
+#~ msgstr ""
+#~ "from DomesticCat cat\n"
+#~ "order by cat.name asc, cat.weight desc, cat.birthdate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color]]>"
+#~ msgstr ""
+#~ "select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select foo.id, avg(name), max(name)\n"
+#~ "from Foo foo join foo.names name\n"
+#~ "group by foo.id]]>"
+#~ msgstr ""
+#~ "select foo.id, avg(name), max(name)\n"
+#~ "from Foo foo join foo.names name\n"
+#~ "group by foo.id"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color\n"
+#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
+#~ msgstr ""
+#~ "select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color\n"
+#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
+#~ "having avg(kitten.weight) > 100\n"
+#~ "order by count(kitten) asc, sum(kitten.weight) desc]]>"
+#~ msgstr ""
+#~ "select cat\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
+#~ "having avg(kitten.weight) > 100\n"
+#~ "order by count(kitten) asc, sum(kitten.weight) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as fatcat\n"
+#~ "where fatcat.weight > (\n"
+#~ " select avg(cat.weight) from DomesticCat cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as fatcat\n"
+#~ "where fatcat.weight > (\n"
+#~ " select avg(cat.weight) from DomesticCat cat\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat as cat\n"
+#~ "where cat.name = some (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from DomesticCat as cat\n"
+#~ "where cat.name = some (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ "where not exists (\n"
+#~ " from Cat as mate where mate.mate = cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ "where not exists (\n"
+#~ " from Cat as mate where mate.mate = cat\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat as cat\n"
+#~ "where cat.name not in (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from DomesticCat as cat\n"
+#~ "where cat.name not in (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
+#~ "from Cat as cat]]>"
+#~ msgstr ""
+#~ "select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
+#~ "from Cat as cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog.effectiveDate < sysdate\n"
+#~ " and catalog.effectiveDate >= all (\n"
+#~ " select cat.effectiveDate\n"
+#~ " from Catalog as cat\n"
+#~ " where cat.effectiveDate < sysdate\n"
+#~ " )\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc]]>"
+#~ msgstr ""
+#~ "select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog.effectiveDate < sysdate\n"
+#~ " and catalog.effectiveDate >= all (\n"
+#~ " select cat.effectiveDate\n"
+#~ " from Catalog as cat\n"
+#~ " where cat.effectiveDate < sysdate\n"
+#~ " )\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog = :currentCatalog\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc]]>"
+#~ msgstr ""
+#~ "select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog = :currentCatalog\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ " join payment.statusChanges as statusChange\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or (\n"
+#~ " statusChange.timeStamp = (\n"
+#~ " select max(change.timeStamp)\n"
+#~ " from PaymentStatusChange change\n"
+#~ " where change.payment = payment\n"
+#~ " )\n"
+#~ " and statusChange.user <> :currentUser\n"
+#~ " )\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder]]>"
+#~ msgstr ""
+#~ "select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ " join payment.statusChanges as statusChange\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or (\n"
+#~ " statusChange.timeStamp = (\n"
+#~ " select max(change.timeStamp)\n"
+#~ " from PaymentStatusChange change\n"
+#~ " where change.payment = payment\n"
+#~ " )\n"
+#~ " and statusChange.user <> :currentUser\n"
+#~ " )\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
+#~ "currentUser\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder]]>"
+#~ msgstr ""
+#~ "select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <"
+#~ "> :currentUser\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select account, payment\n"
+#~ "from Account as account\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser in elements(account.holder.users)\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
+#~ msgstr ""
+#~ "select account, payment\n"
+#~ "from Account as account\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser in elements(account.holder.users)\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select account, payment\n"
+#~ "from Account as account\n"
+#~ " join account.holder.users as user\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser = user\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
+#~ msgstr ""
+#~ "select account, payment\n"
+#~ "from Account as account\n"
+#~ " join account.holder.users as user\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser = user\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
+#~ "iterate().next() ).intValue()]]>"
+#~ msgstr ""
+#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
+#~ "intValue()"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "order by count(msg)]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "order by count(msg)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
+#~ msgstr "from User usr where size(usr.messages) >= 1"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User usr.name\n"
+#~ " join usr.messages msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) >= 1]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User usr.name\n"
+#~ " join usr.messages msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) >= 1"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) = 0]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) = 0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:"
+#~ "name and foo.size=:size\");\n"
+#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
+#~ "List foos = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name and "
+#~ "foo.size=:size\");\n"
+#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
+#~ "List foos = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
+#~ "filter\n"
+#~ "q.setMaxResults(PAGE_SIZE);\n"
+#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
+#~ "List page = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = s.createFilter( collection, \"\" ); // the trivial filter\n"
+#~ "q.setMaxResults(PAGE_SIZE);\n"
+#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
+#~ "List page = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
+#~ "this.amount\" );\n"
+#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
+#~ "group by this.type\" );]]>"
+#~ msgstr ""
+#~ "Collection orderedCollection = s.filter( collection, \"order by this."
+#~ "amount\" );\n"
+#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
+#~ "group by this.type\" );"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
+#~ "iterate().next() ).intValue();]]>"
+#~ msgstr ""
+#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
+#~ "intValue();"
+
+#, fuzzy
+#~ msgid "<![CDATA[select p.name from Person p]]>"
+#~ msgstr "select p.name from from Person p"
+
+#, fuzzy
+#~ msgid "<![CDATA[select p.name.first from Person p]]>"
+#~ msgstr "select p.name.first from from Person p"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p where p.name = :name]]>"
+#~ msgstr "from from Person p where p.name = :name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
+#~ msgstr "from from Person p where p.name.first = :firstName"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p order by p.name]]>"
+#~ msgstr "from from Person p order by p.name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p order by p.name.first]]>"
+#~ msgstr "from from Person p order by p.name.first"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Person p where p.name.first='John' and p.name."
+#~ "last='Jingleheimer-Schmidt']]>"
+#~ msgstr ""
+#~ "from Person p where p.name.first='John' and p.name.last='Jingleheimer-"
+#~ "Schmidt'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
+#~ msgstr "from Person p where p.name=('John', 'Jingleheimer-Schmidt')"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ "where not ( cat.name, cat.color ) in (\n"
+#~ " select cat.name, cat.color from DomesticCat cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ "where not ( cat.name, cat.color ) in (\n"
+#~ " select cat.name, cat.color from DomesticCat cat\n"
+#~ ")"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-18 15:09+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
-msgstr "ãã¤ãã£ãSQL"
+msgstr "ãã¤ãã£ã SQL"
#. Tag: para
-#: query_sql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
"This is useful if you want to utilize database-specific features such as "
@@ -26,118 +27,87 @@
"provides a clean migration path from a direct SQL/JDBC based application to "
"Hibernate."
msgstr ""
-"ãã¼ã¿ãã¼ã¹ã®ãã¤ãã£ãSQLæ¹è¨ã使ã£ã¦ã¯ã¨ãªã表ç¾ãããã¨ãã§ãã¾ãã ã¯ã¨"
-"ãªãã³ããOracleã® <literal>CONNECT</literal> ãã¼ã¯ã¼ãã®ããã«ã ãã¼ã¿ãã¼"
-"ã¹ç¬èªã®æ©è½ãå©ç¨ãããã¨ãã«ä½¿ãã¾ãã SQL/JDBCãç´æ¥ä½¿ç¨ãã¦ããã¢ããªã±ã¼"
-"ã·ã§ã³ããHibernateã¸ã®ç§»è¡ã容æã«ãã¦ãã¾ãã"
+"ãã¼ã¿ãã¼ã¹ã®ãã¤ãã£ã SQL æ¹è¨ã使ã£ã¦ã¯ã¨ãªã表ç¾ãããã¨ãã§ãã¾ããã¯ã¨"
+"ãªãã³ãã Oracle ã® <literal>CONNECT</literal> ãã¼ã¯ã¼ãã®ããã«ããã¼ã¿"
+"ãã¼ã¹ç¬èªã®æ©è½ãå©ç¨ãããã¨ãã«ä½¿ãã¾ãã SQL/JDBC ãç´æ¥ä½¿ç¨ãã¦ããã¢ã"
+"ãªã±ã¼ã·ã§ã³ãã Hibernate ã¸ã®ç§»è¡ã容æã«ãã¦ãã¾ãã"
#. Tag: para
-#: query_sql.xml:37
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
"procedures, for all create, update, delete, and load operations."
msgstr ""
-"Hibernate3ã§ã¯ãçæãæ´æ°ãåé¤ãèªã¿è¾¼ã¿å¦çã®ãããªãã¹ã¦ã® SQLï¼ã¹ãã¢ã"
-"ããã·ã¼ã¸ã£ãå«ãï¼ãææ¸ãã§ãã¾ãã"
+"Hibernate3 ã§ã¯ãçæãæ´æ°ãåé¤ãèªã¿è¾¼ã¿å¦çã®ãããªãã¹ã¦ã® SQL ï¼ã¹ãã¢"
+"ãããã·ã¼ã¸ã£ãå«ãï¼ãææ¸ãã§ãã¾ãã"
#. Tag: title
-#: query_sql.xml:41
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
-msgstr "<literal>SQLQuery</literal> ã®ä½¿ç¨"
+msgstr "ããã㯠<literal>List</literal> ã¨ãã¦ã"
#. Tag: para
-#: query_sql.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
"literal> interface, which is obtained by calling <literal>Session."
"createSQLQuery()</literal>. The following sections describe how to use this "
"API for querying."
msgstr ""
-"ãã¤ãã£ããªSQLã¯ã¨ãªã®å®è¡ã¯ <literal>SQLQuery</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã"
-"éãã¦å¶å¾¡ãã¾ãã <literal>SQLQuery</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ "
-"<literal>Session.createSQLQuery()</literal> ãå¼ã³åºãã¦åå¾ãã¾ãã ãã®API"
+"ãã¤ãã£ã㪠SQL ã¯ã¨ãªã®å®è¡ã¯ <literal>SQLQuery</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹"
+"ãéãã¦å¶å¾¡ãã¾ãã <literal>SQLQuery</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ "
+"<literal>Session.createSQLQuery()</literal> ãå¼ã³åºãã¦åå¾ãã¾ãããã® API "
"ã使ã£ã¦åãåããããæ¹æ³ã以ä¸ã§èª¬æãã¾ãã"
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
msgstr "ã¹ã«ã©ã¼ã®ã¯ã¨ãª"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
-msgstr "æãåºæ¬çãªSQLã¯ã¨ãªã¯ã¹ã«ã©ã¼ï¼å¤ï¼ã®ãªã¹ããå¾ããã¨ã§ãã"
+msgstr "æãåºæ¬ç㪠SQL ã¯ã¨ãªã¯ã¹ã«ã©ã¼ï¼å¤ï¼ã®ãªã¹ããå¾ããã¨ã§ãã"
-#. Tag: programlisting
-#: query_sql.xml:54
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:56
-#, fuzzy, no-c-format
-msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
"each column in the CATS table. Hibernate will use ResultSetMetadata to "
"deduce the actual order and types of the returned scalar values."
msgstr ""
-"ãããã¯ã©ã¡ãããCATSãã¼ãã«ã®åã«ã©ã ã®ã¹ã«ã©ã¼å¤ãå«ã Objecté
åï¼Object"
-"[]ï¼ã®ãªã¹ããè¿ãã¾ãã è¿ãã¹ã«ã©ã¼å¤ã®å®éã®é çªã¨åãæ¨å®ããããã«ã "
-"Hibernateã¯ResultSetMetadataã使ç¨ãã¾ãã"
+"ãããã¯ã©ã¡ããã CATS ãã¼ãã«ã®åã«ã©ã ã®ã¹ã«ã©ã¼å¤ãå«ã Object é
å"
+"ï¼Object[]ï¼ã®ãªã¹ããè¿ãã¾ããè¿ãã¹ã«ã©ã¼å¤ã®å®éã®é çªã¨åãæ¨å®ãããã"
+"ã«ã Hibernate 㯠ResultSetMetadata ã使ç¨ãã¾ãã"
#. Tag: para
-#: query_sql.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
"simply to be more explicit in what is returned, one can use "
"<literal>addScalar()</literal>:"
msgstr ""
-"<literal>ResultSetMetadata</literal> ã使ç¨ãããªã¼ãã¼ããããé¿ããããã "
-"ãããã¯åã«ä½ãè¿ããããæç¢ºã«ããããã<literal>addScalar()</literal> ã使"
+"<literal>ResultSetMetadata</literal> ã使ç¨ãããªã¼ãã¼ããããé¿ãããããã"
+"ããã¯åã«ä½ãè¿ããããæç¢ºã«ããããã <literal>addScalar()</literal> ã使"
"ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
-msgstr "ãã®ã¯ã¨ãªã§æå®ããã¦ãããã®ãä¸è¨ã«ç¤ºãã¾ãã"
+msgstr "ãã®ã¯ã¨ãªã§æå®ããã¦ãããã®ãä¸è¨ã«ç¤ºãã¾ã:"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
-msgstr "SQLã¯ã¨ãªæåå"
+msgstr "SQL ã¯ã¨ãªæåå"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
msgstr "è¿ãããã«ã©ã ã¨å"
#. Tag: para
-#: query_sql.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
"<literal>ResultSetMetadata</literal> but will instead explicitly get the ID, "
@@ -146,47 +116,32 @@
"be returned, even though the query is using <literal>*</literal> and could "
"return more than the three listed columns."
msgstr ""
-"ããã¯ã¾ã Objecté
åãè¿ãã¾ããã <literal>ResultSetMetdata</literal> ã使ç¨"
-"ãã¾ããã ãã ãããã®ä»£ããã«åºç¤ã«ãããªã¶ã«ãã»ãããã IDãNAMEã"
-"BIRTHDATE ã«ã©ã ããããã LongãStringãShort ã¨ãã¦æç¤ºçã«åå¾ãã¾ãã ã"
-"ãã¯ï¼ã¤ã®ã«ã©ã ãè¿ãã®ã¿ã§ãããã¨ãæå³ãã¾ãã ãã¨ããã¯ã¨ãªã "
-"<literal>*</literal> ã使ç¨ãã åæããï¼ã¤ããå¤ãã®ã«ã©ã ãè¿ããã¨ãã¦ã"
-"ã§ãã"
+"ããã¯ã¾ã Object é
åãè¿ãã¾ããã <literal>ResultSetMetdata</literal> ã使"
+"ç¨ãã¾ããããã ãããã®ä»£ããã«åºç¤ã«ãããªã¶ã«ãã»ãããã IDãNAMEã"
+"BIRTHDATE ã«ã©ã ããããã LongãStringãShort ã¨ãã¦æç¤ºçã«åå¾ãã¾ãããã"
+"ã¯ï¼ã¤ã®ã«ã©ã ãè¿ãã®ã¿ã§ãããã¨ãæå³ãã¾ãããã¨ããã¯ã¨ãªã <literal>*</"
+"literal> ã使ç¨ããåæããï¼ã¤ããå¤ãã®ã«ã©ã ãè¿ããã¨ãã¦ãã§ãã"
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr "ã¹ã«ã©ã¼ã®åæ
å ±ãçããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:90
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:92
-#, fuzzy, no-c-format
-msgid ""
"This is essentially the same query as before, but now "
"<literal>ResultSetMetaData</literal> is used to determine the type of NAME "
"and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
-"ããã¯æ¬è³ªçã«åã¨åãã¯ã¨ãªã§ãããã NAME 㨠BIRTHDATE ã®åãæ±ºããããã« "
-"<literal>ResultSetMetaData</literal> ã使ç¨ãã¾ãã䏿¹ãID ã®åã¯æç¤ºçã«æ"
+"ããã¯æ¬è³ªçã«åã¨åãã¯ã¨ãªã§ããã NAME 㨠BIRTHDATE ã®åãæ±ºããããã« "
+"<literal>ResultSetMetaData</literal> ã使ç¨ãã¾ãã䏿¹ã ID ã®åã¯æç¤ºçã«æ"
"å®ããã¦ãã¾ãã"
#. Tag: para
-#: query_sql.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
"Hibernate types is controlled by the Dialect. If a specific type is not "
@@ -194,18 +149,16 @@
"it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
"ResultSetMetaData ããè¿ããã java.sql.Types ã Hibernate ã®åã« ãããã³ã°"
-"ãããã¨ã¯ãDialect ãå¶å¾¡ãã¾ãã æç¤ºãããåããããã³ã°ããã¦ããªãããçµ"
+"ãããã¨ã¯ã Dialect ãå¶å¾¡ãã¾ããæç¤ºãããåããããã³ã°ããã¦ããªãããçµ"
"æã®åãæå¾
ãããã®ã¨ç°ãªãå ´åã Dialect ã® "
-"<literal>registerHibernateType</literal> ãå¼ã³åºãã ã«ã¹ã¿ãã¤ãºã§ãã¾ãã"
+"<literal>registerHibernateType</literal> ãå¼ã³åºããã«ã¹ã¿ãã¤ãºã§ãã¾ãã"
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
msgstr "ã¨ã³ãã£ãã£ã®ã¯ã¨ãª"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -213,40 +166,27 @@
"get entity objects from a native sql query via <literal>addEntity()</"
"literal>."
msgstr ""
-"ããã¾ã§ã®ã¯ã¨ãªã¯ããã¹ã¦ã¹ã«ã©ã¼å¤ãè¿ããã®ã§ããã åºæ¬çã«ããªã¶ã«ãã»ã"
-"ããããæªå å·¥ãã®å¤ãè¿ãã¾ãã 以éã§ã¯ã<literal>addEntity()</literal> ã«"
-"ããããã¤ãã£ãSQLã¯ã¨ãªãã ã¨ã³ãã£ãã£ãªãã¸ã§ã¯ããåå¾ããæ¹æ³ã示ãã¾"
+"ããã¾ã§ã®ã¯ã¨ãªã¯ããã¹ã¦ã¹ã«ã©ã¼å¤ãè¿ããã®ã§ãããåºæ¬çã«ããªã¶ã«ãã»ã"
+"ããããæªå å·¥ãã®å¤ãè¿ãã¾ãã以éã§ã¯ã <literal>addEntity()</literal> ã«"
+"ããããã¤ãã£ã SQL ã¯ã¨ãªããã¨ã³ãã£ãã£ãªãã¸ã§ã¯ããåå¾ããæ¹æ³ã示ãã¾"
"ãã"
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
-msgstr "ã¯ã¨ãªãè¿ãã¨ã³ãã£ãã£ã¨SQLãã¼ãã«ã®å¥å"
+msgstr "ã¯ã¨ãªãè¿ãã¨ã³ãã£ãã£ã¨ SQL ãã¼ãã«ã®å¥å"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
"BIRTHDATE the above queries will both return a List where each element is a "
"Cat entity."
msgstr ""
-"CatãID, NAME, BIRTHDATEã®ã«ã©ã ã使ã£ã¦ã¯ã©ã¹ã«ãããã³ã°ãããå ´åã ä¸è¨ã®"
-"ã¯ã¨ãªã¯ã©ã¡ãããè¦ç´ ãCatã¨ã³ãã£ãã£ã§ãããªã¹ããè¿ãã¾ãã"
+"Cat ã ID ã NAME ã BIRTHDATE ã®ã«ã©ã ã使ã£ã¦ã¯ã©ã¹ã«ãããã³ã°ãããå ´åã"
+"ä¸è¨ã®ã¯ã¨ãªã¯ã©ã¡ãããè¦ç´ ã Cat ã¨ã³ãã£ãã£ã§ãããªã¹ããè¿ãã¾ãã"
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -257,35 +197,23 @@
"to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
"ã¨ã³ãã£ãã£ãå¥ã®ã¨ã³ãã£ãã£ã« <literal>å¤å¯¾ä¸</literal> ã§ãããã³ã°ãã¦ã"
-"ãå ´åã¯ã ãã¤ãã£ãã¯ã¨ãªãå®è¡ããéã«ããã®å¥ã®ã¨ã³ãã£ãã£ãè¿ããã¨ãè¦"
-"æ±ãã¾ãã ãããªããã°ããã¼ã¿ãã¼ã¹åºæã®ãcolumn not found(ã«ã©ã ãè¦ã¤ã"
-"ãã¾ãã)ãã¨ã©ã¼ãçºçãã¾ãã * 表è¨ã使ç¨ããéã¯ã追å ã®ã«ã©ã ãèªåçã«"
-"è¿ããã¾ããã æ¬¡ã®ä¾ã®ããã«ã<literal>Dog</literal> ã« <literal>å¤å¯¾ä¸</"
-"literal> ã§ãããã¨ã æç¤ºãããã¨ãç§ãã¡ã¯å¥½ã¿ã¾ãã"
+"ãå ´åã¯ããã¤ãã£ãã¯ã¨ãªãå®è¡ããéã«ããã®å¥ã®ã¨ã³ãã£ãã£ãè¿ããã¨ãè¦"
+"æ±ãã¾ãããããªããã°ããã¼ã¿ãã¼ã¹åºæã®ãcolumn not found(ã«ã©ã ãè¦ã¤ãã"
+"ã¾ãã)ãã¨ã©ã¼ãçºçãã¾ãã * 表è¨ã使ç¨ããéã¯ã追å ã®ã«ã©ã ãèªåçã«è¿"
+"ããã¾ãããæ¬¡ã®ä¾ã®ããã«ã <literal>Dog</literal> ã« <literal>å¤å¯¾ä¸</"
+"literal> ã§ãããã¨ãæç¤ºãããã¨ãç§ãã¡ã¯å¥½ã¿ã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
msgstr "ããã«ãã cat.getDog() ãæ£ããæ©è½ãã¾ãã"
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
msgstr "é¢é£ã¨ã³ã¬ã¯ã·ã§ã³ã®æä½"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -294,24 +222,12 @@
"association or collection."
msgstr ""
"ãããã·ãåæåããããã®ä½åãªå¦çãé¿ããããã <literal>Dog</literal> ã®"
-"ä¸ã§å³æçµåã§ãã¾ãã ãã㯠<literal>addJoin()</literal> ã¡ã½ããã«ããè¡ã"
-"ã¾ãã é¢é£ãããã¯ã³ã¬ã¯ã·ã§ã³ã«çµåã§ãã¾ãã"
+"ä¸ã§å³æçµåã§ãã¾ãããã㯠<literal>addJoin()</literal> ã¡ã½ããã«ããè¡ã"
+"ã¾ããé¢é£ãããã¯ã³ã¬ã¯ã·ã§ã³ã«çµåã§ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:152
-#, fuzzy, no-c-format
-msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
"<literal>dog</literal> property fully initialized without any extra "
"roundtrip to the database. Notice that you added an alias name (\"cat\") to "
@@ -319,81 +235,54 @@
"do the same eager joining for collections, e.g. if the <literal>Cat</"
"literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-"ãã®ä¾ã®ä¸ã§ãè¿ããã <literal>Cat</literal> ã¯ã ãã¼ã¿ãã¼ã¹ã¸ã®ä½åå¦çãª"
-"ãã§ã å®å
¨ã«åæåããã <literal>dog</literal> ããããã£ãæã¡ã¾ãã çµå"
-"対象ã®ããããã£ã¸ã®ãã¹ãæå®ã§ããããã«ã å¥åï¼ãcatãï¼ã追å ãããã¨ã«"
-"注æãã¦ãã ããã ã³ã¬ã¯ã·ã§ã³ã®å³æçµåãåãããã«ã§ãã¾ãã ãã¨ãã°ã"
+"ãã®ä¾ã®ä¸ã§ãè¿ããã <literal>Cat</literal> ã¯ããã¼ã¿ãã¼ã¹ã¸ã®ä½åå¦çãª"
+"ãã§ãå®å
¨ã«åæåããã <literal>dog</literal> ããããã£ãæã¡ã¾ããçµå対"
+"象ã®ããããã£ã¸ã®ãã¹ãæå®ã§ããããã«ãå¥åï¼ãcatãï¼ã追å ãããã¨ã«æ³¨æ"
+"ãã¦ãã ãããã³ã¬ã¯ã·ã§ã³ã®å³æçµåãåãããã«ã§ãã¾ãããã¨ãã°ã "
"<literal>Cat</literal> ãä¸å¯¾å¤ã§ <literal>Dog</literal> ãæã£ã¦ããå ´åãæ¬¡"
"ã®ããã«ãªãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:162
-#, fuzzy, no-c-format
-msgid ""
"At this stage you are reaching the limits of what is possible with native "
"queries, without starting to enhance the sql queries to make them usable in "
"Hibernate. Problems can arise when returning multiple entities of the same "
"type or when the default alias/column names are not enough."
msgstr ""
-"ç¾å¨ã®ã¨ããã Hibernateã§ä½¿ããããããããã®SQLã¯ã¨ãªã®æ¡å¼µãªãã«ã ãã¤"
-"ãã£ãã¯ã¨ãªã§ä½ããå¯è½ã«ããéçã«æ¥ã¦ãã¾ãã åãåã®ã¨ã³ãã£ãã£ãè¤æ°è¿"
-"ãéããããã©ã«ãã®å¥åãååã§ååã§ã¯ãªãå ´åã«ã åé¡ã¯èµ·ããå§ãã¾ãã"
+"ç¾å¨ã®ã¨ããã Hibernate ã§ä½¿ããããããããã® SQL ã¯ã¨ãªã®æ¡å¼µãªãã«ããã¤"
+"ãã£ãã¯ã¨ãªã§ä½ããå¯è½ã«ããéçã«æ¥ã¦ãã¾ããåãåã®ã¨ã³ãã£ãã£ãè¤æ°è¿"
+"ãéããããã©ã«ãã®å¥åãååã§ååã§ã¯ãªãå ´åã«ãåé¡ã¯èµ·ããå§ãã¾ãã"
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
msgstr "è¤æ°ã¨ã³ãã£ãã£ã®åå¾"
#. Tag: para
-#: query_sql.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
"column names specified in the mapping document. This can be problematic for "
"SQL queries that join multiple tables, since the same column names can "
"appear in more than one table."
msgstr ""
-"ããã¾ã§ã¯ããªã¶ã«ãã»ããã®ã«ã©ã åã¯ã ãããã³ã°ãã¡ã¤ã«ã§æå®ãããã«ã©ã "
-"åã¨åãã§ããã¨ä»®å®ãã¦ãã¾ããã è¤æ°ã®ãã¼ãã«ãåãã«ã©ã åãæã¤å ´åãã"
-"ãããã è¤æ°ãã¼ãã«ãçµåããSQLã¯ã¨ãªã§åé¡ã¨ãªãå ´åãããã¾ãã"
+"ããã¾ã§ã¯ããªã¶ã«ãã»ããã®ã«ã©ã åã¯ããããã³ã°ããã¥ã¡ã³ãã§æå®ãããã«"
+"ã©ã åã¨åãã§ããã¨ä»®å®ãã¦ãã¾ãããè¤æ°ã®ãã¼ãã«ãåãã«ã©ã åãæã¤å ´å"
+"ããããããè¤æ°ãã¼ãã«ãçµåãã SQL ã¯ã¨ãªã§åé¡ã¨ãªãå ´åãããã¾ãã"
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr ""
-"ä¸è¨ã®ãããªï¼å¤±æããããªï¼ã¯ã¨ãªã§ã¯ã ã«ã©ã å¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ï¼column "
-"alias injectionï¼ãå¿
è¦ã§ãã"
+"ä¸è¨ã®ãããªï¼å¤±æããããªï¼ã¯ã¨ãªã§ã¯ãã«ã©ã å¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ï¼column "
+"alias injectionï¼ãå¿
è¦ã§ãï¼"
-#. Tag: programlisting
-#: query_sql.xml:180
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:184
-#, fuzzy, no-c-format
-msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
"mother. The query will, however, fail because there is a conflict of names; "
"the instances are mapped to the same column names. Also, on some databases "
@@ -401,48 +290,33 @@
"NAME\", etc. which are not equal to the columns specified in the mappings "
"(\"ID\" and \"NAME\")."
msgstr ""
-"ãã®ã¯ã¨ãªã®æå³ã¯ã ï¼è¡ãã¨ã«ï¼ã¤ã®Catã¤ã³ã¹ã¿ã³ã¹ãã¤ã¾ãç«ã¨ãã®æ¯è¦ªãè¿"
-"ãã¨ãããã¨ã§ãã åãã«ã©ã åã«ãããã³ã°ãããã¨ã«ããååãè¡çªããããã"
-"ãã®ã¯ã¨ãªã¯å¤±æãã¾ãã ãã¼ã¿ãã¼ã¹ã«ãã£ã¦ã¯ãè¿ãããã«ã©ã ã®å¥åã \"c."
-"ID\"ã\"c.NAME\" ãªã©ã®å½¢å¼ã§ããã ãããã³ã°ã§æå®ãããã«ã©ã ï¼\"ID\" 㨠"
+"ãã®ã¯ã¨ãªã®æå³ã¯ãï¼è¡ãã¨ã«ï¼ã¤ã® Cat ã¤ã³ã¹ã¿ã³ã¹ãã¤ã¾ãç«ã¨ãã®æ¯è¦ªãè¿"
+"ãã¨ãããã¨ã§ããåãã«ã©ã åã«ãããã³ã°ãããã¨ã«ããååãè¡çªããããã"
+"ãã®ã¯ã¨ãªã¯å¤±æãã¾ãããã¼ã¿ãã¼ã¹ã«ãã£ã¦ã¯ãè¿ãããã«ã©ã ã®å¥åã \"c.ID"
+"\"ã\"c.NAME\" ãªã©ã®å½¢å¼ã§ããããããã³ã°ã§æå®ãããã«ã©ã ï¼\"ID\" 㨠"
"\"NAME\"ï¼ã¨çãããªãããã失æãã¾ãã"
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
-msgstr "ä¸è¨ã®å½¢å¼ã¯ãã«ã©ã åãéè¤ãã¦ã大ä¸å¤«ã§ãã"
+msgstr "ä¸è¨ã®å½¢å¼ã¯ãã«ã©ã åãéè¤ãã¦ã大ä¸å¤«ã§ãï¼"
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
"aliases"
msgstr ""
-"SQLã¯ã¨ãªæåå ï¼Hibernateãã«ã©ã ã®å¥åãæ¿å
¥ããããã®ãã¬ã¼ã¹ãã«ããå«"
+"SQL ã¯ã¨ãªæåå ï¼Hibernate ãã«ã©ã ã®å¥åãæ¿å
¥ããããã®ãã¬ã¼ã¹ãã«ããå«"
"ãï¼"
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
msgstr "ã¯ã¨ãªã«ãã£ã¦è¿ãããã¨ã³ãã£ãã£"
#. Tag: para
-#: query_sql.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
"properties\". Alternatively, you can list the columns explicitly, but even "
@@ -452,390 +326,287 @@
"from a different table (cat_log) to the one declared in the mapping "
"metadata. You can even use the property aliases in the where clause."
msgstr ""
-"ä¸è¨ã§ä½¿ç¨ãã¦ãã {cat.*} 㨠{mother.*} ã¨ãã表è¨ã¯ã ããã¹ã¦ã®ããã"
-"ãã£ãã表ãçç¥å½¢ã§ãã 代ããã«ãæç¤ºçã«ã«ã©ã ãåæãã¦ãããã§ããã ã"
-"ã®å ´åã¯ãHibernateã«åããããã£ã«å¯¾å¿ããSQLã«ã©ã ã®å¥åãæ¿å
¥ãããã¹ãã§"
-"ãããã ã«ã©ã ã®å¥åã®ããã®ãã¬ã¼ã¹ãã«ãã¯ããã¼ãã«ã®å¥åã«ãã£ã¦ä¿®é£¾ãã"
-"ãããããã£åã§ãã ä¸è¨ã®ä¾ã§ã¯ãå¥ã®ãã¼ãã« cat_log ãã ãããã³ã°ã¡ã¿"
-"ãã¼ã¿ã§å®ç¾©ããã Cat ã¨ãã®æ¯è¦ªã復å
ãã¾ãã ãã好ããªããwhereç¯ã®ä¸ã§"
+"ä¸è¨ã§ä½¿ç¨ãã¦ãã {cat.*} 㨠{mother.*} ã¨ãã表è¨ã¯ãããã¹ã¦ã®ããããã£ã"
+"ã表ãçç¥å½¢ã§ãã代ããã«ãæç¤ºçã«ã«ã©ã ãåæãã¦ãããã§ããããã®å ´å"
+"ã¯ã Hibernate ã«åããããã£ã«å¯¾å¿ãã SQL ã«ã©ã ã®å¥åãæ¿å
¥ãããã¹ãã§"
+"ããããã«ã©ã ã®å¥åã®ããã®ãã¬ã¼ã¹ãã«ãã¯ããã¼ãã«ã®å¥åã«ãã£ã¦ä¿®é£¾ãã"
+"ãããããã£åã§ããä¸è¨ã®ä¾ã§ã¯ãå¥ã®ãã¼ãã« cat_log ãã ãããã³ã°ã¡ã¿"
+"ãã¼ã¿ã§å®ç¾©ããã Cat ã¨ãã®æ¯è¦ªã復å
ãã¾ãããã好ããªãã where ç¯ã®ä¸ã§"
"ããããããã£ã®å¥åã使ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
msgstr "å¥åã¨ããããã£ã®ãªãã¡ã¬ã³ã¹"
#. Tag: para
-#: query_sql.xml:225
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
"more complex mappings, like composite properties, inheritance "
"discriminators, collections etc., you can use specific aliases that allow "
"Hibernate to inject the proper aliases."
msgstr ""
-"å¤ãã®å ´åãä¸è¨ã®ãããªå¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ãå¿
è¦ã§ãã ãã ããè¤åããã"
-"ãã£ãç¶æ¿èå¥åãã³ã¬ã¯ã·ã§ã³ãªã©ã®ãã㪠ããè¤éãªãããã³ã°ã¨é¢é£ããã¯ã¨"
-"ãªããªããã°ã§ãã ããç¹å®ã®å¥åã使ç¨ãããã¨ã«ãããHibernateã¯é©åãªå¥å"
+"å¤ãã®å ´åãä¸è¨ã®ãããªå¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ãå¿
è¦ã§ãããã ããè¤åããã"
+"ãã£ãç¶æ¿èå¥åãã³ã¬ã¯ã·ã§ã³ãªã©ã®ãããªããè¤éãªãããã³ã°ã¨é¢é£ããã¯ã¨"
+"ãªããªããã°ã§ããããç¹å®ã®å¥åã使ç¨ãããã¨ã«ããã Hibernate ã¯é©åãªå¥å"
"ãæ¿å
¥ã§ãã¾ãã"
#. Tag: para
-#: query_sql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
"injection. Please note that the alias names in the result are simply "
"examples; each alias will have a unique and probably different name when "
"used."
msgstr ""
-"å¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ã¨ãã¦ä½¿ç¨ã§ãããã®ãä¸è¡¨ã«ç¤ºãã¾ãã æ³¨æï¼ä¸è¡¨ã®å¥åã¯"
-"ä¸ä¾ã§ãã ããããã®å¥åã¯ä¸æã§ããã使ç¨ããéã«ã¯ããããç°ãªãååãæã¡"
+"å¥åã¤ã³ã¸ã§ã¯ã·ã§ã³ã¨ãã¦ä½¿ç¨ã§ãããã®ãä¸è¡¨ã«ç¤ºãã¾ããæ³¨è¨ï¼ä¸è¡¨ã®å¥åã¯"
+"ä¸ä¾ã§ããããããã®å¥åã¯ä¸æã§ããã使ç¨ããéã«ã¯ããããç°ãªãååãæã¡"
"ã¾ãã"
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
msgstr "å¥åã«æ¿å
¥ããåå"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
msgstr "説æ"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
msgstr "æ§æ"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
msgstr "ä¾"
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
msgstr "åç´ãªããããã£"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
-msgstr "{[aliasname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
+msgstr "<literal>{[aliasname].[propertyname]</literal>"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
-msgstr "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
msgstr "è¤åããããã£"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
-msgstr "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
-msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
+msgstr ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
msgstr "ã¨ã³ãã£ãã£ã®ã¯ã©ã¹ãèå¥ããå¤"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
-msgstr "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
-msgstr "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
msgstr "ã¨ã³ãã£ãã£ã®å
¨ããããã£"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
-msgstr "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®ãã¼"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
-msgstr "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
-msgstr "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
-msgstr "ã³ã¬ã¯ã·ã§ã³ã®ID"
+msgstr "ã³ã¬ã¯ã·ã§ã³ã® ID"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
-msgstr "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
-msgstr "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ "
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
-msgstr "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
-msgstr "XID as {coll.element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>XID as {coll.element}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
#. Tag: entry
-#: query_sql.xml:314
-#, fuzzy, no-c-format
+#, no-c-format
msgid "property of the element in the collection"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®ããããã£"
-#. Tag: literal
-#: query_sql.xml:316
-#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
-msgstr "{[aliasname].element.[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].element.[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
-msgstr "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
#. Tag: entry
-#: query_sql.xml:322
#, no-c-format
msgid "All properties of the element in the collection"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã®å
¨ããããã£"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
-msgstr "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:326
+#. Tag: entry
#, no-c-format
-msgid "{coll.element.*}"
-msgstr "{coll.element.*}"
+msgid "<literal>{coll.element.*}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
msgstr "ã³ã¬ã¯ã·ã§ã³ã®å
¨ããããã£"
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
msgstr "管çããã¦ããªãã¨ã³ãã£ãã£ã®åå¾"
#. Tag: para
-#: query_sql.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
"it to return non-managed entities."
msgstr ""
-"ãã¤ãã£ãSQLã¯ã¨ãªã« ResultTransformer ãé©ç¨ã§ãã¾ãã ä¸è¨ã®ããã«ãä¾ã"
+"ãã¤ãã£ã SQL ã¯ã¨ãªã« ResultTransformer ãé©ç¨ã§ãã¾ããä¸è¨ã®ããã«ãä¾ã"
"ã°ã管çããã¦ããªãã¨ã³ãã£ãã£ãè¿ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
msgstr "çµæã夿ãããã®"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
"been instantiated and injected the values of NAME and BIRTHNAME into its "
"corresponding properties or fields."
msgstr ""
-"ä¸è¨ã®ã¯ã¨ãªã¯ãã¤ã³ã¹ã¿ã³ã¹åããNAME 㨠BIRTHDATE ã®å¤ã 対å¿ããããããã£"
+"ä¸è¨ã®ã¯ã¨ãªã¯ãã¤ã³ã¹ã¿ã³ã¹åãã NAME 㨠BIRTHDATE ã®å¤ã対å¿ããããããã£"
"ãããã¯ãã£ã¼ã«ãã«æ¿å
¥ãã <literal>CatDTO</literal> ã®ãªã¹ããè¿ãã¾ãã"
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
msgstr "ç¶æ¿ã®å¶å¾¡"
#. Tag: para
-#: query_sql.xml:370
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
"inheritance must include all properties for the baseclass and all its "
"subclasses."
msgstr ""
-"ç¶æ¿ã®ä¸é¨ã¨ãã¦ãããã³ã°ãããã¨ã³ãã£ãã£ãåãåããããã¤ãã£ãSQLã¯ã¨ãª"
-"ã¯ã ãã¼ã¹ã®ã¯ã©ã¹ã¨ãã®ãã¹ã¦ã®ãµãã¯ã©ã¹ã®ããããã£ãã¹ã¦ãå«ã¾ãªããã°ãª"
-"ãã¾ããã"
+"ç¶æ¿ã®ä¸é¨ã¨ãã¦ãããã³ã°ãããã¨ã³ãã£ãã£ãåãåããããã¤ãã£ã SQL ã¯ã¨"
+"ãªã¯ããã¼ã¹ã®ã¯ã©ã¹ã¨ãã®ãã¹ã¦ã®ãµãã¯ã©ã¹ã®ããããã£ãã¹ã¦ãå«ã¾ãªããã°"
+"ãªãã¾ããã"
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
msgstr "ãã©ã¡ã¼ã¿"
#. Tag: para
-#: query_sql.xml:378
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
-"ãã¤ãã£ãSQLã¯ã¨ãªã¯ã以ä¸ã®ããã«ã ååä»ããã©ã¡ã¼ã¿ï¼:nameï¼ã¨åæ§ã«ä½ç½®"
-"ãã©ã¡ã¼ã¿ããµãã¼ããã¾ãã"
+"ãã¤ãã£ã SQL ã¯ã¨ãªã¯ã以ä¸ã®ããã«ãååä»ããã©ã¡ã¼ã¿ï¼:nameï¼ã¨åæ§ã«ä½"
+"ç½®ãã©ã¡ã¼ã¿ããµãã¼ããã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:381
-#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
-msgstr "ååä»ãSQLã¯ã¨ãª"
+msgstr "ååä»ã SQL ã¯ã¨ãª"
#. Tag: para
-#: query_sql.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
"exactly the same way as a named HQL query. In this case, you do "
"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
-"ååä»ãSQLã¯ã¨ãªã¯ãããã³ã°ããã¥ã¡ã³ãã§å®ç¾©ãããã¨ãã§ãã ååä»ãHQLã¯"
-"ã¨ãªã¨å
¨ãåãæ¹æ³ã§å¼ã¶ãã¨ãã§ãã¾ãã ãã®å ´åã<literal>addEntity()</"
-"literal> ãå¼ã³åºãå¿
è¦ã¯ <emphasis>ãªã</emphasis> ã§ãã"
+"ååä»ã SQL ã¯ã¨ãªã¯ãããã³ã°ããã¥ã¡ã³ãã§å®ç¾©ãããã¨ãã§ããååä»ã "
+"HQL ã¯ã¨ãªã¨å
¨ãåãæ¹æ³ã§å¼ã¶ãã¨ãã§ãã¾ãããã®å ´åã <literal>addEntity()"
+"</literal> ãå¼ã³åºãå¿
è¦ã¯ <emphasis>ããã¾ãã</emphasis> ã"
-#. Tag: programlisting
-#: query_sql.xml:396
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:400
#, fuzzy, no-c-format
msgid ""
"The <literal><return-join></literal> element is use to join "
@@ -846,210 +617,92 @@
"<literal><return-join></literal> 㨠<literal><load-collection></"
"literal> è¦ç´ ã使ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
"alias and Hibernate type using the <literal><return-scalar></literal> "
"element:"
msgstr ""
-"ååä»ãSQLã¯ã¨ãªã¯ã¹ã«ã©å¤ãè¿ããã¨ãã§ãã¾ãã <literal><return-"
-"scalar></literal> è¦ç´ ã使ã£ã¦ã åã®å¥åã¨Hibernateã®åã宣è¨ããªããã°ãª"
-"ãã¾ããã"
+"ååä»ã SQL ã¯ã¨ãªã¯ã¹ã«ã©å¤ãè¿ããã¨ãã§ãã¾ãã <literal><return-"
+"scalar></literal> è¦ç´ ã使ã£ã¦ãåã®å¥å㨠Hibernate ã®åã宣è¨ããªããã°"
+"ãªãã¾ãã:"
-#. Tag: programlisting
-#: query_sql.xml:410
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:412
-#, fuzzy, no-c-format
-msgid ""
"You can externalize the resultset mapping information in a <literal><"
"resultset></literal> element which will allow you to either reuse them "
"across several named queries or through the <literal>setResultSetMapping()</"
"literal> API."
msgstr ""
-"ãªã¶ã«ãã»ããã®ãããã³ã°æ
å ±ã <literal><resultset></literal> ã«å¤åº"
-"ããããã¨ãã§ãã¾ãã è¤æ°ã®ååä»ãã¯ã¨ãªã§åå©ç¨ãããã"
-"<literal>setResultSetMapping()</literal> APIãéãã¦åå©ç¨ãããã§ãã¾ãã"
+"ãªã¶ã«ãã»ããã®ãããã³ã°æ
å ±ã <literal><resultset></literal> ã«å¤é¨"
+"åãããã¨ãã§ãã¾ããè¤æ°ã®ååä»ãã¯ã¨ãªã§åå©ç¨ãããã "
+"<literal>setResultSetMapping()</literal> API ãéãã¦åå©ç¨ãããã§ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:417
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:419
-#, fuzzy, no-c-format
-msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
"files directly in java code."
msgstr ""
-"代ããã«ãhbmãã¡ã¤ã«å
ã®ãªã¶ã«ãã»ããã®ãããã³ã°æ
å ±ã ç´æ¥Javaã³ã¼ãã®ä¸"
-"ã§ä½¿ç¨ã§ãã¾ãã"
+"代ããã«ã hbm ãã¡ã¤ã«å
ã®ãªã¶ã«ãã»ããã®ãããã³ã°æ
å ±ãç´æ¥ Java ã³ã¼ãã®"
+"ä¸ã§ä½¿ç¨ã§ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
msgstr "åã¨åã®å¥åãæç¤ºçã«æå®ããããã« return-property ã使ã"
#. Tag: para
-#: query_sql.xml:428
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
"<literal><return-property></literal>, instead of using the <literal>{}"
"</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
"å¥åãæ¿å
¥ããããã« <literal>{}</literal> æ§æã使ã代ããã«ã <literal><"
-"return-property></literal> ã使ãã ã©ã®åã®å¥åã使ãã®ããæç¤ºã§ãã¾ãã"
+"return-property></literal> ã使ããã©ã®åã®å¥åã使ãã®ããæç¤ºã§ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:433
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:435
-#, fuzzy, no-c-format
-msgid ""
"<literal><return-property></literal> also works with multiple columns. "
"This solves a limitation with the <literal>{}</literal>-syntax which cannot "
"allow fine grained control of multi-column properties."
msgstr ""
-"<literal><return-property></literal> ã¯è¤æ°ã®åãæ±ãã¾ãã ããã¯ãè¤"
-"æ°åã®ããããã£ãããç´°ããå¶å¾¡ã§ããªãã¨ããã <literal>{}</literal> æ§æã®"
-"å¶éã解決ãã¾ãã"
+"<literal><return-property></literal> ã¯è¤æ°ã®åãæ±ãã¾ããããã¯ãè¤æ°"
+"åã®ããããã£ãããç´°ããå¶å¾¡ã§ããªãã¨ããã <literal>{}</literal> æ§æã®å¶"
+"éã解決ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:440
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:442
-#, fuzzy, no-c-format
-msgid ""
"In this example <literal><return-property></literal> was used in "
"combination with the <literal>{}</literal>-syntax for injection. This allows "
"users to choose how they want to refer column and properties."
msgstr ""
"ãã®ä¾ã§ã¯ãæ¿å
¥ã®ããã® <literal>{}</literal> æ§æã¨ãã£ããã«ã "
"<literal><return-property></literal> ã使ã£ã¦ãããã¨ã«æ³¨æãã¦ãã ã"
-"ãã åã¨ããããã£ãã©ã®ããã«åç
§ããããé¸ã¹ã¾ãã"
+"ããåã¨ããããã£ãã©ã®ããã«åç
§ããããé¸ã¹ã¾ãã"
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
"discriminator></literal> to specify the discriminator column."
msgstr ""
"ãããã³ã°ã« discriminator ãå«ã¾ãã¦ããå ´åã discriminator ã®åãæå®ãã"
-"ããã«ã<return-discriminator> ã使ããªããã°ãªãã¾ããã"
+"ããã«ã <literal><return-discriminator></literal> ã使ããªããã°ãªãã¾"
+"ããã"
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
msgstr "åãåããããããã«ã¹ãã¢ãããã·ã¼ã¸ã£ã使ã"
#. Tag: para
-#: query_sql.xml:455
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
"Most of the following documentation is equivalent for both. The stored "
@@ -1057,80 +710,37 @@
"able to work with Hibernate. An example of such a stored function in Oracle "
"9 and higher is as follows:"
msgstr ""
-"Hibernateã¯ãã¼ã¸ã§ã³3ãããã¹ãã¢ãããã·ã¼ã¸ã£ã¨ã¹ãã¢ã颿°çµç±ã®åãåã"
-"ãã ãµãã¼ãããã¾ããã 以éã®ææ¸ã®å¤ãã¯ã両æ¹ã«å½ã¦ã¯ã¾ãã¾ãã ã¹ãã¢ã"
-"ããã·ã¼ã¸ã£ãã¹ãã¢ã颿°ãHibernateã§ä½¿ãããã«ã¯ã 1çªç®ã®åºåãã©ã¡ã¼ã¿ã¨"
+"Hibernate ã¯ãã¼ã¸ã§ã³3ãããã¹ãã¢ãããã·ã¼ã¸ã£ã¨ã¹ãã¢ã颿°çµç±ã®åãåã"
+"ãããµãã¼ãããã¾ããã以éã®ææ¸ã®å¤ãã¯ã両æ¹ã«å½ã¦ã¯ã¾ãã¾ããã¹ãã¢ãã"
+"ãã·ã¼ã¸ã£ãã¹ãã¢ã颿°ã Hibernate ã§ä½¿ãããã«ã¯ã1çªç®ã®åºåãã©ã¡ã¼ã¿ã¨"
"ãã¦ãªã¶ã«ãã»ãããè¿ããªããã°ãªãã¾ããã Oracle 9ï¼ãããã¯ãã以ä¸ã®ãã¼"
-"ã¸ã§ã³ï¼ã®ã¹ãã¢ãããã·ã¼ã¸ã£ã®ä¾ã以ä¸ã«ç¤ºãã¾ãã"
+"ã¸ã§ã³ï¼ã®ã¹ãã¢ãããã·ã¼ã¸ã£ã®ä¾ã以ä¸ã«ç¤ºãã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
msgstr ""
-"Hibernateã§ãã®ã¯ã¨ãªã使ãããã«ã¯ã ååä»ãã¯ã¨ãªã§ãããã³ã°ããå¿
è¦ãã"
+"Hibernate ã§ãã®ã¯ã¨ãªã使ãããã«ã¯ãååä»ãã¯ã¨ãªã§ãããã³ã°ããå¿
è¦ãã"
"ãã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:466
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:468
-#, fuzzy, no-c-format
-msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
"return-join></literal> and <literal><load-collection></literal> are "
"not supported."
msgstr ""
-"注æï¼ä»ã®ã¨ãããã¹ãã¢ãããã·ã¼ã¸ã£ã¯ã¹ã«ã©ã¨ã¨ã³ãã£ãã£ãè¿ãã®ã¿ã§ãã "
+"注è¨ï¼ä»ã®ã¨ãããã¹ãã¢ãããã·ã¼ã¸ã£ã¯ã¹ã«ã©ã¨ã¨ã³ãã£ãã£ãè¿ãã®ã¿ã§ãã "
"<literal><return-join></literal> 㨠<literal><load-collection></"
"literal> ã¯ãµãã¼ãããã¦ãã¾ããã"
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
msgstr "ã¹ãã¢ãããã·ã¼ã¸ã£ã使ãä¸ã§ã®ã«ã¼ã«ã¨å¶é"
#. Tag: para
-#: query_sql.xml:475
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
"procedure/function rules. If they do not follow those rules they are not "
@@ -1139,45 +749,41 @@
"different for each database, since database vendors have different stored "
"procedure semantics/syntax."
msgstr ""
-"Hibernateã§ã¹ãã¢ãããã·ã¼ã¸ã£ã颿°ã使ãããã«ã¯ã ãã®ããã·ã¼ã¸ã£ã¯ãã"
-"ã¤ãã®ã«ã¼ã«ã«æºæ ããå¿
è¦ãããã¾ãã ã«ã¼ã«ã«æºæ ãã¦ããªãããã·ã¼ã¸ã£ã¯ã"
-"Hibernateã§ä½¿ããã¨ã¯ã§ãã¾ããã ããã§ããæºæ ãã¦ããªãããã·ã¼ã¸ã£ã使ã"
+"Hibernate ã§ã¹ãã¢ãããã·ã¼ã¸ã£ã颿°ã使ãããã«ã¯ããã®ããã·ã¼ã¸ã£ã¯ãã"
+"ã¤ãã®ã«ã¼ã«ã«æºæ ããå¿
è¦ãããã¾ããã«ã¼ã«ã«æºæ ãã¦ããªãããã·ã¼ã¸ã£ã¯ã "
+"Hibernate ã§ä½¿ããã¨ã¯ã§ãã¾ãããããã§ããæºæ ãã¦ããªãããã·ã¼ã¸ã£ã使ã"
"ããã®ã§ããã°ã <literal>session.connection()</literal> ãéãã¦å®è¡ããªãã"
-"ã°ãªãã¾ããã ã«ã¼ã«ã¯ãã¼ã¿ãã¼ã¹ãã¨ã«ç°ãªãã¾ãã ã¹ãã¢ãããã·ã¼ã¸ã£ã®"
-"ã»ãã³ãã£ãã¯ã¹ã¨ã·ã³ã¿ãã¯ã¹ã¯ã ãã¼ã¿ãã¼ã¹ãã³ããã¨ã«ç°ãªãããã§ãã"
+"ã°ãªãã¾ãããã«ã¼ã«ã¯ãã¼ã¿ãã¼ã¹ãã¨ã«ç°ãªãã¾ããã¹ãã¢ãããã·ã¼ã¸ã£ã®ã»"
+"ãã³ãã£ãã¯ã¹ã¨ã·ã³ã¿ãã¯ã¹ã¯ããã¼ã¿ãã¼ã¹ãã³ããã¨ã«ç°ãªãããã§ãã"
#. Tag: para
-#: query_sql.xml:482
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
"setMaxResults()</literal>."
msgstr ""
-"<literal>setFirstResult()/setMaxResults()</literal> ã使ã£ã¦ã ã¹ãã¢ããã"
+"<literal>setFirstResult()/setMaxResults()</literal> ã使ã£ã¦ãã¹ãã¢ããã"
"ã·ã¼ã¸ã£ã¯ã¨ãªããã¼ã¸åããããã¨ã¯ã§ãã¾ããã"
#. Tag: para
-#: query_sql.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
"parameters>}</literal>. Native call syntax is not supported."
msgstr ""
-"æ¨å¥¨ããå¼ã³åºãæ¹ã¯ãæ¨æºã§ããSQL92ã«å¾ããã¨ã§ãã <literal>{ ? = call "
+"æ¨å¥¨ããå¼ã³åºãæ¹ã¯ãæ¨æºã§ãã SQL92 ã«å¾ããã¨ã§ãã <literal>{ ? = call "
"functionName(<parameters>) }</literal> ã <literal>{ ? = call "
-"procedureName(<parameters>) }</literal> ã§ãã ãã¤ãã£ããªå¼ã³åºãæ§æ"
-"ã¯ãµãã¼ãããã¦ãã¾ããã"
+"procedureName(<parameters>}</literal> ã§ãããã¤ãã£ããªå¼ã³åºãæ§æã¯"
+"ãµãã¼ãããã¦ãã¾ããã"
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
-msgstr "Oracleã«ã¯ä¸è¨ã®ã«ã¼ã«ãé©ç¨ããã¾ãã"
+msgstr "Oracle ã«ã¯ä¸è¨ã®ã«ã¼ã«ãé©ç¨ããã¾ã:"
#. Tag: para
-#: query_sql.xml:494
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
"be an <literal>OUT</literal> that returns a result set. This is done by "
@@ -1185,131 +791,98 @@
"you need to define a <literal>REF CURSOR</literal> type. See Oracle "
"literature for further information."
msgstr ""
-"颿°ã¯ãªã¶ã«ãã»ãããè¿ããªããã°ãªãã¾ããã ããã·ã¼ã¸ã£ã®ç¬¬ä¸å¼æ°ã¯ãªã¶ã«"
-"ãã»ãããè¿ãããã <literal>OUT</literal> ã§ãªããã°ãªãã¾ããã Oracle 9ã¨"
-"10ã§ã¯ã<literal>SYS_REFCURSOR</literal> ã使ããã¨ã«ãã£ã¦ã§ãã¾ãã Oracle"
-"ã§ã¯ <literal>REF CURSOR</literal> åãå®ç¾©ããå¿
è¦ãããã¾ãã Oracleã®æç®"
-"ãåç
§ãã¦ãã ããã"
+"颿°ã¯ãªã¶ã«ãã»ãããè¿ããªããã°ãªãã¾ãããããã·ã¼ã¸ã£ã®ç¬¬ä¸å¼æ°ã¯ãªã¶ã«"
+"ãã»ãããè¿ãããã <literal>OUT</literal> ã§ãªããã°ãªãã¾ããã Oracle 9 "
+"㨠10 ã§ã¯ã <literal>SYS_REFCURSOR</literal> ã使ããã¨ã«ãã£ã¦ã§ãã¾ãã "
+"Oracle ã§ã¯ <literal>REF CURSOR</literal> åãå®ç¾©ããå¿
è¦ãããã¾ãã "
+"Oracle ã®æç®ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
-msgstr "Sybaseã¨MS SQLãµã¼ãã¼ã«é©ç¨ãããã«ã¼ã«ãä¸è¨ã«ç¤ºãã¾ãã"
+msgstr "Sybase 㨠MS SQL ãµã¼ãã¼ã«é©ç¨ãããã«ã¼ã«ãä¸è¨ã«ç¤ºãã¾ã:"
#. Tag: para
-#: query_sql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
"return multiple result sets and update counts, Hibernate will iterate the "
"results and take the first result that is a result set as its return value. "
"Everything else will be discarded."
msgstr ""
-"ããã·ã¼ã¸ã£ã¯ãªã¶ã«ãã»ãããè¿ããªããã°ãªãã¾ããã ãµã¼ãã¼ã¯è¤æ°ã®ãªã¶ã«"
-"ãã»ããã¨æ´æ°ã«ã¦ã³ããè¿ãã¾ããã Hibernateã¯1ã¤ç®ã®ãªã¶ã«ãã»ããã ããè¿"
-"ããã¨ã«æ³¨æãã¦ãã ããã ãã®ä»ã¯ãã¹ã¦æ¨ã¦ããã¾ãã"
+"ããã·ã¼ã¸ã£ã¯ãªã¶ã«ãã»ãããè¿ããªããã°ãªãã¾ããããµã¼ãã¼ã¯è¤æ°ã®ãªã¶ã«"
+"ãã»ããã¨æ´æ°ã«ã¦ã³ããè¿ãã¾ããã Hibernate ã¯1ã¤ç®ã®ãªã¶ã«ãã»ããã ãã"
+"è¿ããã¨ã«æ³¨æãã¦ãã ããããã®ä»ã¯ãã¹ã¦æ¨ã¦ããã¾ãã"
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
"will probably be more efficient, but this is not a requirement."
msgstr ""
-"ããã·ã¼ã¸ã£ã®ä¸ã§ <literal>SET NOCOUNT ON</literal> ãæå¹ã«ã§ããã°ã ãã"
-"ããå¹çããããªãã§ãããã ããããããã¯å¿
è¦æ¡ä»¶ã§ã¯ããã¾ããã"
+"ããã·ã¼ã¸ã£ã®ä¸ã§ <literal>SET NOCOUNT ON</literal> ãæå¹ã«ã§ããã°ãããã"
+"ãå¹çããããªãã§ããããããããããã¯å¿
è¦æ¡ä»¶ã§ã¯ããã¾ããã"
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
-msgstr "ä½æãæ´æ°ãåé¤ã®ããã®ã«ã¹ã¿ã SQL"
+msgstr "ä½æãæ´æ°ãåé¤ã®ããã®ã«ã¹ã¿ã SQL"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
-"Hibernate3ã¯ä½æãæ´æ°ãåé¤å¦çã®ããã®ã«ã¹ã¿ã SQLæã使ç¨ã§ãã¾ãã ã¯ã©ã¹"
-"ã¨ã³ã¬ã¯ã·ã§ã³ã®æ°¸ç¶åæ©æ§ã¯ãã³ã³ãã£ã°ã¬ã¼ã·ã§ã³æã«çæãããæåå "
-"ï¼insertsqlãdeletesqlãupdatesqlãªã©ï¼ã®ã»ããããã§ã«ä¿æãã¦ãã¾ãã ãã"
-"ãã®æååããã <literal><sql-insert></literal>ã <literal><sql-"
-"delete></literal>ã <literal><sql-update></literal> ã¨ãããããã³ã°"
-"ã¿ã°ãåªå
ããã¾ãã"
-#. Tag: programlisting
-#: query_sql.xml:535
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
msgstr ""
+"Hibernate3 ã¯ä½æãæ´æ°ãåé¤å¦çã®ããã®ã«ã¹ã¿ã SQL æã使ç¨ã§ãã¾ããã¯ã©"
+"ã¹ã¨ã³ã¬ã¯ã·ã§ã³ã®æ°¸ç¶åæ©æ§ã¯ãã³ã³ãã£ã°ã¬ã¼ã·ã§ã³æã«çæãããæåå "
+"ï¼insertsqlãdeletesqlãupdatesql ãªã©ï¼ã®ã»ããããã§ã«ä¿æãã¦ãã¾ãããã"
+"ãã®æååããã <literal><sql-insert></literal>ã <literal><sql-"
+"delete></literal>ã <literal><sql-update></literal> ã¨ãããããã³ã°"
+"ã¿ã°ãåªå
ããã¾ã:"
#. Tag: para
-#: query_sql.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
"you like. This will reduce the portability of your mapping if you use "
"database specific SQL."
msgstr ""
-"SQLãç´æ¥ãã¼ã¿ãã¼ã¹ã§å®è¡ããããã好ã¿ã®æ¹è¨ãèªç±ã«ä½¿ç¨ã§ãã¾ãã ãã¼ã¿"
-"ãã¼ã¹ç¬èªã®SQLã使ãã°ãå½ç¶ãããã³ã°ã®ãã¼ã¿ããªãã£ãä¸ããã¾ãã"
+"SQL ãç´æ¥ãã¼ã¿ãã¼ã¹ã§å®è¡ããããã好ã¿ã®æ¹è¨ãèªç±ã«ä½¿ç¨ã§ãã¾ãããã¼ã¿"
+"ãã¼ã¹ç¬èªã® SQL ã使ãã°ãå½ç¶ãããã³ã°ã®ãã¼ã¿ããªãã£ãä¸ããã¾ãã"
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
"is set:"
msgstr ""
-"<literal>callable</literal> 屿§ãã»ããããã°ã ã¹ãã¢ãããã·ã¼ã¸ã£ã使ç¨ã§"
-"ãã¾ãã"
+"<literal>callable</literal> 屿§ãã»ããããã°ãã¹ãã¢ãããã·ã¼ã¸ã£ã使ç¨ã§"
+"ãã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:544
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:546
-#, fuzzy, no-c-format
-msgid ""
"The order of the positional parameters is vital, as they must be in the same "
"sequence as Hibernate expects them."
msgstr ""
-"ä»ã®ã¨ãããä½ç½®ãã©ã¡ã¼ã¿ã®é çªã¯ã¨ã¦ãéè¦ã§ãã ããªãã¡ãHibernateãæå¾
"
+"ä»ã®ã¨ãããä½ç½®ãã©ã¡ã¼ã¿ã®é çªã¯ã¨ã¦ãéè¦ã§ããããªãã¡ã Hibernate ãæå¾
"
"ããé åºã§ãªããã°ãªãã¾ããã"
#. Tag: para
-#: query_sql.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
"<literal>org.hibernate.persister.entity</literal> level. With this level "
@@ -1318,153 +891,728 @@
"your custom SQL in the mapping files, as this will override the Hibernate "
"generated static SQL."
msgstr ""
-"<literal>org.hiberante.persister.entity</literal> ã¬ãã«ã®ãããã°ãã°ã æå¹"
-"ã«ãããã¨ã«ãã£ã¦ãæå¾
ãããé çªã確ããããã¾ãã ãã®ã¬ãã«ãæå¹ã«ããã"
-"ã¨ã«ãããã¨ã³ãã£ãã£ã®ä½æãæ´æ°ãåé¤ãªã©ã§ 使ç¨ãããéçãªSQLãåºåãã"
-"ã¾ãã ï¼æå¾
ãããé åºã確èªããããã«ã¯ãHibernateãçæããéçãªSQLããªã¼"
-"ãã¼ã©ã¤ããã ã«ã¹ã¿ã SQLããããã³ã°ãã¡ã¤ã«ã«å«ããªããã¨ãå¿ããªãã§ãã "
-"ãããï¼"
+"<literal>org.hiberante.persister.entity</literal> ã¬ãã«ã®ãããã°ãã°ãæå¹"
+"ã«ãããã¨ã«ãã£ã¦ãæå¾
ãããé çªã確ããããã¾ãããã®ã¬ãã«ãæå¹ã«ããã"
+"ã¨ã«ãããã¨ã³ãã£ãã£ã®ä½æãæ´æ°ãåé¤ãªã©ã§ä½¿ç¨ãããéç㪠SQL ãåºåãã"
+"ã¾ããï¼æå¾
ãããé åºã確èªããããã«ã¯ã Hibernate ãçæããéç㪠SQL ã"
+"ãªã¼ãã¼ã©ã¤ãããã«ã¹ã¿ã SQL ããããã³ã°ãã¡ã¤ã«ã«å«ããªããã¨ãå¿ããªãã§"
+"ãã ãããï¼"
#. Tag: para
-#: query_sql.xml:556
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
"rows inserted, updated and deleted, as Hibernate has some runtime checks for "
"the success of the statement. Hibernate always registers the first statement "
"parameter as a numeric output parameter for the CUD operations:"
msgstr ""
-"ã¹ãã¢ãããã·ã¼ã¸ã£ã¯æ¿å
¥/æ´æ°/åé¤ãããè¡æ°ãè¿ãå¿
è¦ãããã¾ã ï¼èªã¿è¾¼ã¿"
-"ã®å ´åã¯ãè¿ããªãããã¯è¿ãæ¹ãããã§ãï¼ã å®è¡æã«HibernateãSQLæã®æåã"
-"ãã§ãã¯ããããã§ãã Hibernateã¯ãCUDå¦çã®ããã®æ°å¤ã®åºåãã©ã¡ã¼ã¿ã¨ã"
-"ã¦ã SQLæã®æåã®ãã©ã¡ã¼ã¿ããã¤ãè¨é²ãã¾ãã"
+"ã¹ãã¢ãããã·ã¼ã¸ã£ã¯æ¿å
¥/æ´æ°/åé¤ãããè¡æ°ãè¿ãå¿
è¦ãããã¾ãï¼èªã¿è¾¼ã¿"
+"ã®å ´åã¯ãè¿ããªãããã¯è¿ãæ¹ãããã§ãï¼ãå®è¡æã« Hibernate ã SQL æã®æ"
+"åããã§ãã¯ããããã§ãã Hibernate ã¯ã CUD å¦çã®ããã®æ°å¤ã®åºåãã©ã¡ã¼"
+"ã¿ã¨ãã¦ã SQL æã®æåã®ãã©ã¡ã¼ã¿ããã¤ãè¨é²ãã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
-msgstr "ãã¼ãã®ããã®ã«ã¹ã¿ã SQL"
+msgstr "ãã¼ãã®ããã®ã«ã¹ã¿ã SQL"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr ""
-"ã¨ã³ãã£ãã£ãèªã¿è¾¼ãããã®ç¬èªã®SQLï¼ãããã¯HQLï¼ã¯ã¨ãªã宣è¨ã§ãã¾ãã"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
#. Tag: para
-#: query_sql.xml:573
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
"reference this named query in a class mapping:"
msgstr ""
-"ããã¯ãã¾ãã«ï¼ä»¥åè°è«ããï¼ååä»ãã¯ã¨ãªã®å®£è¨ã§ãã ãã®ååä»ãã¯ã¨ãªã"
-"ã¯ã©ã¹ã®ãããã³ã°ããåç
§ã§ãã¾ãã"
+"ããã¯ãã¾ãã«ï¼ä»¥åè°è«ããï¼ååä»ãã¯ã¨ãªã®å®£è¨ã§ãããã®ååä»ãã¯ã¨ãªã"
+"ã¯ã©ã¹ã®ãããã³ã°ããåç
§ã§ãã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
msgstr "ããã¯ã¹ãã¢ãããã·ã¼ã¸ã£ã§ãããåä½ãã¾ãã"
#. Tag: para
-#: query_sql.xml:580
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even define a query for collection loading:"
-msgstr "次ã®ããã«ãã³ã¬ã¯ã·ã§ã³ããã¼ãããããã®ã¯ã¨ãªããå®ç¾©ãã¦ããã§ãã"
+msgstr "次ã®ããã«ãã³ã¬ã¯ã·ã§ã³ããã¼ãããããã®ã¯ã¨ãªããå®ç¾©ãã¦ããã§ã:"
-#. Tag: programlisting
-#: query_sql.xml:582
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:586
-#, fuzzy, no-c-format
-msgid ""
"You can also define an entity loader that loads a collection by join "
"fetching:"
msgstr ""
-"次ã®ããã«ãçµåãã§ããã«ããã³ã¬ã¯ã·ã§ã³ããã¼ããã ã¨ã³ãã£ãã£ãã¼ãã¼ã"
-"å®ç¾©ã§ãã¾ãã"
+"次ã®ããã«ãçµåãã§ããã«ããã³ã¬ã¯ã·ã§ã³ããã¼ãããã¨ã³ãã£ãã£ãã¼ãã¼ã"
+"å®ç¾©ã§ãã¾ã:"
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr ""
+#~ "ã¨ã³ãã£ãã£ãèªã¿è¾¼ãããã®ç¬èªã® SQL ï¼ããã㯠HQLï¼ã¯ã¨ãªã宣è¨ã§ãã¾"
+#~ "ã:"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\", Hibernate.STRING)\n"
+#~ " .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\", Hibernate.STRING)\n"
+#~ " .addScalar(\"BIRTHDATE\", Hibernate.DATE)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\")\n"
+#~ " .addScalar(\"BIRTHDATE\")\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\")\n"
+#~ " .addScalar(\"BIRTHDATE\")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat."
+#~ "class);\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity"
+#~ "(Cat.class);\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity"
+#~ "(Cat.class);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM "
+#~ "CATS\").addEntity(Cat.class);\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS\")."
+#~ "addEntity(Cat.class);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, "
+#~ "D_ID, D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dog\");\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, D_NAME "
+#~ "FROM CATS c, DOGS d \n"
+#~ " WHERE c.DOG_ID = d.D_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dog\");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
+#~ "CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dogs\");\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, CAT_ID "
+#~ "FROM CATS c, DOGS d\n"
+#~ " WHERE c.ID = d.CAT_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dogs\");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE "
+#~ "c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
+#~ "MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, "
+#~ "CATS m WHERE c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS m "
+#~ "WHERE c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
+#~ " \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother."
+#~ "*} \" +\n"
+#~ " \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
+#~ "\n"
+#~ "List loggedCats = sess.createSQLQuery(sql)\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class).list()\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
+#~ " \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother."
+#~ "*} \" +\n"
+#~ " \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
+#~ "\n"
+#~ "List loggedCats = sess.createSQLQuery(sql)\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class).list()"
+
+#, fuzzy
+#~ msgid "A_NAME as {item.name}"
+#~ msgstr "<literal>A_NAME as {item.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].class}"
+#~ msgstr "<literal>{[aliasname].class}</literal>"
+
+#, fuzzy
+#~ msgid "DISC as {item.class}"
+#~ msgstr "<literal>DISC as {item.class}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].*}"
+#~ msgstr "<literal>{[aliasname].*}</literal>"
+
+#~ msgid "{item.*}"
+#~ msgstr "{item.*}"
+
+#, fuzzy
+#~ msgid "{[aliasname].key}"
+#~ msgstr "<literal>{[aliasname].key}</literal>"
+
+#, fuzzy
+#~ msgid "ORGID as {coll.key}"
+#~ msgstr "<literal>ORGID as {coll.key}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].id}"
+#~ msgstr "<literal>{[aliasname].id}</literal>"
+
+#, fuzzy
+#~ msgid "EMPID as {coll.id}"
+#~ msgstr "<literal>EMPID as {coll.id}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element}"
+#~ msgstr "<literal>{[aliasname].element}</literal>"
+
+#, fuzzy
+#~ msgid "XID as {coll.element}"
+#~ msgstr "<literal>XID as {coll.element}</literal>"
+
+#, fuzzy
+#~ msgid "NAME as {coll.element.name}"
+#~ msgstr "<literal>NAME as {coll.element.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element.*}"
+#~ msgstr "<literal>{[aliasname].element.*}</literal>"
+
+#, fuzzy
+#~ msgid "{coll.element.*}"
+#~ msgstr "{coll.*}"
+
+#~ msgid "{coll.*}"
+#~ msgstr "{coll.*}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
+#~ " .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
+#~ " .setResultTransformer(Transformers.aliasToBean(CatDTO.class))"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE "
+#~ "NAME like ?\").addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(0, \"Pus%\").list();\n"
+#~ " \n"
+#~ "query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
+#~ "addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
+#~ msgstr ""
+#~ "Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like ?"
+#~ "\").addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(0, \"Pus%\").list();\n"
+#~ " \n"
+#~ "query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
+#~ "addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(\"name\", \"Pus%\").list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"persons\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex}\n"
+#~ " FROM PERSON person\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"persons\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex}\n"
+#~ " FROM PERSON person\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
+#~ " .setString(\"namePattern\", namePattern)\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List people = sess.getNamedQuery(\"persons\")\n"
+#~ " .setString(\"namePattern\", namePattern)\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"personsWith\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " address.STREET AS {address.street},\n"
+#~ " address.CITY AS {address.city},\n"
+#~ " address.STATE AS {address.state},\n"
+#~ " address.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS address\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"personsWith\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/"
+#~ ">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " adddress.STREET AS {address.street},\n"
+#~ " adddress.CITY AS {address.city},\n"
+#~ " adddress.STATE AS {address.state},\n"
+#~ " adddress.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS adddress\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
+#~ " <return-scalar column=\"name\" type=\"string\"/>\n"
+#~ " <return-scalar column=\"age\" type=\"long\"/>\n"
+#~ " SELECT p.NAME AS name,\n"
+#~ " p.AGE AS age,\n"
+#~ " FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"mySqlQuery\">\n"
+#~ " <return-scalar column=\"name\" type=\"string\"/>\n"
+#~ " <return-scalar column=\"age\" type=\"long\"/>\n"
+#~ " SELECT p.NAME AS name,\n"
+#~ " p.AGE AS age,\n"
+#~ " FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<resultset name=\"personAddress\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
+#~ "</resultset>\n"
+#~ "\n"
+#~ "<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " address.STREET AS {address.street},\n"
+#~ " address.CITY AS {address.city},\n"
+#~ " address.STATE AS {address.state},\n"
+#~ " address.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS address\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<resultset name=\"personAddress\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/"
+#~ ">\n"
+#~ "</resultset>\n"
+#~ "\n"
+#~ "<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " adddress.STREET AS {address.street},\n"
+#~ " adddress.CITY AS {address.city},\n"
+#~ " adddress.STATE AS {address.state},\n"
+#~ " adddress.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS adddress\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createSQLQuery(\n"
+#~ " \"select {cat.*}, {kitten.*} from cats cat, cats kitten where "
+#~ "kitten.mother = cat.id\"\n"
+#~ " )\n"
+#~ " .setResultSetMapping(\"catAndKitten\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createSQLQuery(\n"
+#~ " \"select {cat.*}, {kitten.*} from cats cat, cats kitten where "
+#~ "kitten.mother = cat.id\"\n"
+#~ " )\n"
+#~ " .setResultSetMapping(\"catAndKitten\")\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\">\n"
+#~ " <return-property name=\"name\" column=\"myName\"/>\n"
+#~ " <return-property name=\"age\" column=\"myAge\"/>\n"
+#~ " <return-property name=\"sex\" column=\"mySex\"/>\n"
+#~ " </return>\n"
+#~ " SELECT person.NAME AS myName,\n"
+#~ " person.AGE AS myAge,\n"
+#~ " person.SEX AS mySex,\n"
+#~ " FROM PERSON person WHERE person.NAME LIKE :name\n"
+#~ "</sql-query>\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"mySqlQuery\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\">\n"
+#~ " <return-property name=\"name\" column=\"myName\"/>\n"
+#~ " <return-property name=\"age\" column=\"myAge\"/>\n"
+#~ " <return-property name=\"sex\" column=\"mySex\"/>\n"
+#~ " </return>\n"
+#~ " SELECT person.NAME AS myName,\n"
+#~ " person.AGE AS myAge,\n"
+#~ " person.SEX AS mySex,\n"
+#~ " FROM PERSON person WHERE person.NAME LIKE :name\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
+#~ " </return>\n"
+#~ " SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
+#~ " STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
+#~ " REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT\n"
+#~ " WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
+#~ " ORDER BY STARTDATE ASC\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"organizationCurrentEmployments\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
+#~ " </return>\n"
+#~ " SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
+#~ " STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
+#~ " REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT\n"
+#~ " WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
+#~ " ORDER BY STARTDATE ASC\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
+#~ " RETURN SYS_REFCURSOR\n"
+#~ "AS\n"
+#~ " st_cursor SYS_REFCURSOR;\n"
+#~ "BEGIN\n"
+#~ " OPEN st_cursor FOR\n"
+#~ " SELECT EMPLOYEE, EMPLOYER,\n"
+#~ " STARTDATE, ENDDATE,\n"
+#~ " REGIONCODE, EID, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT;\n"
+#~ " RETURN st_cursor;\n"
+#~ " END;]]>"
+#~ msgstr ""
+#~ "CREATE OR REPLACE FUNCTION selectAllEmployments\n"
+#~ " RETURN SYS_REFCURSOR\n"
+#~ "AS\n"
+#~ " st_cursor SYS_REFCURSOR;\n"
+#~ "BEGIN\n"
+#~ " OPEN st_cursor FOR\n"
+#~ " SELECT EMPLOYEE, EMPLOYER,\n"
+#~ " STARTDATE, ENDDATE,\n"
+#~ " REGIONCODE, EID, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT;\n"
+#~ " RETURN st_cursor;\n"
+#~ " END;"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
+#~ " <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
+#~ " <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
+#~ " <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
+#~ " <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
+#~ " <return-property name=\"id\" column=\"EID\"/>\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " </return>\n"
+#~ " { ? = call selectAllEmployments() }\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
+#~ " <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
+#~ " <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
+#~ " <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
+#~ " <return-property name=\"regionCode\" column=\"REGIONCODE\"/"
+#~ ">\n"
+#~ " <return-property name=\"id\" column=\"EID\"/>\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " </return>\n"
+#~ " { ? = call selectAllEmployments() }\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
+#~ "insert>\n"
+#~ " <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
+#~ " <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )"
+#~ "</sql-insert>\n"
+#~ " <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-"
+#~ "update>\n"
+#~ " <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-"
+#~ "insert>\n"
+#~ " <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-"
+#~ "delete>\n"
+#~ " <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
+#~ "update>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert callable=\"true\">{call createPerson (?, ?)}</"
+#~ "sql-insert>\n"
+#~ " <sql-delete callable=\"true\">{? = call deletePerson (?)}</"
+#~ "sql-delete>\n"
+#~ " <sql-update callable=\"true\">{? = call updatePerson (?, ?)}"
+#~ "</sql-update>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
+#~ "VARCHAR2)\n"
+#~ " RETURN NUMBER IS\n"
+#~ "BEGIN\n"
+#~ "\n"
+#~ " update PERSON\n"
+#~ " set\n"
+#~ " NAME = uname,\n"
+#~ " where\n"
+#~ " ID = uid;\n"
+#~ "\n"
+#~ " return SQL%ROWCOUNT;\n"
+#~ "\n"
+#~ "END updatePerson;]]>"
+#~ msgstr ""
+#~ "CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
+#~ "VARCHAR2)\n"
+#~ " RETURN NUMBER IS\n"
+#~ "BEGIN\n"
+#~ "\n"
+#~ " update PERSON\n"
+#~ " set\n"
+#~ " NAME = uname,\n"
+#~ " where\n"
+#~ " ID = uid;\n"
+#~ "\n"
+#~ " return SQL%ROWCOUNT;\n"
+#~ "\n"
+#~ "END updatePerson;"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
+#~ " SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
+#~ " FROM PERSON\n"
+#~ " WHERE ID=?\n"
+#~ " FOR UPDATE\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/"
+#~ ">\n"
+#~ " SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
+#~ " FROM PERSON\n"
+#~ " WHERE ID=?\n"
+#~ " FOR UPDATE\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <loader query-ref=\"person\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <loader query-ref=\"person\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
+#~ " <key/>\n"
+#~ " <one-to-many class=\"Employment\"/>\n"
+#~ " <loader query-ref=\"employments\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"employments\" inverse=\"true\">\n"
+#~ " <key/>\n"
+#~ " <one-to-many class=\"Employment\"/>\n"
+#~ " <loader query-ref=\"employments\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"employments\">\n"
+#~ " <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
+#~ " SELECT {emp.*}\n"
+#~ " FROM EMPLOYMENT emp\n"
+#~ " WHERE EMPLOYER = :id\n"
+#~ " ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"employments\">\n"
+#~ " <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
+#~ " SELECT {emp.*}\n"
+#~ " FROM EMPLOYMENT emp\n"
+#~ " WHERE EMPLOYER = :id\n"
+#~ " ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\"/>\n"
+#~ " <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
+#~ " SELECT NAME AS {pers.*}, {emp.*}\n"
+#~ " FROM PERSON pers\n"
+#~ " LEFT OUTER JOIN EMPLOYMENT emp\n"
+#~ " ON pers.ID = emp.PERSON_ID\n"
+#~ " WHERE ID=?\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\"/>\n"
+#~ " <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
+#~ " SELECT NAME AS {pers.*}, {emp.*}\n"
+#~ " FROM PERSON pers\n"
+#~ " LEFT OUTER JOIN EMPLOYMENT emp\n"
+#~ " ON pers.ID = emp.PERSON_ID\n"
+#~ " WHERE ID=?\n"
+#~ "</sql-query>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-07 14:56+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr "ãªãã¸ã§ã¯ããæ±ã"
#. Tag: para
-#: session_api.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
"the developer from the details of the underlying database management system, "
@@ -27,14 +28,13 @@
"JDBC/SQL persistence layers, a natural object-oriented view of persistence "
"in Java applications."
msgstr ""
-"Hibernate ã¯å®å
¨ãªãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã½ãªã¥ã¼ã·ã§ã³ã§ã"
-"ãã ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ã®è©³ç´°ãéçºè
ããé è½ããã ãã§ãªãã ãªãã¸ã§"
-"ã¯ãã® <emphasis>ç¶æ
管ç</emphasis> ãè¡ãã¾ãã ããã¯ãJDBC/SQLæ°¸ç¶å±¤ã¨å"
-"ããããªSQL <literal>æ</literal> ã®ç®¡çã¨ã¯ç°ãªãã Javaã¢ããªã±ã¼ã·ã§ã³ã«ã"
-"ããæ°¸ç¶åã«å¯¾ãããã¨ã¦ãèªç¶ãªãªãã¸ã§ã¯ãæåã®èãæ¹ãæä¾ãã¾ãã"
+"Hibernate ã¯å®å
¨ãªãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã½ãªã¥ã¼ã·ã§ã³ã§ããã"
+"ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ã®è©³ç´°ãéçºè
ããé è½ããã ãã§ãªãããªãã¸ã§ã¯ãã® "
+"<emphasis>ç¶æ
管ç</emphasis> ãè¡ãã¾ããããã¯ã JDBC/SQL æ°¸ç¶å±¤ã¨åããã"
+"㪠SQL <literal>statements</literal> ã®ç®¡çã¨ã¯ç°ãªãã Java ã¢ããªã±ã¼ã·ã§ã³"
+"ã«ãããæ°¸ç¶åã«å¯¾ãããã¨ã¦ãèªç¶ãªãªãã¸ã§ã¯ãæåã®èãæ¹ãæä¾ãã¾ãã"
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -43,26 +43,23 @@
"is only relevant for the application developer when tuning the performance "
"of the system."
msgstr ""
-"è¨ããããã°ãHibernateãç¨ããã¢ããªã±ã¼ã·ã§ã³éçºè
ã¯ããªãã¸ã§ã¯ãã® "
-"<emphasis>ç¶æ
</emphasis> ã«ã¤ãã¦ã¯ å¸¸ã«æèãã¹ãã§ãããSQLæã®å®è¡ã«ã¤ã"
-"ã¦ã¯å¿
ãããããã§ã¯ããã¾ããã ãã®é¨åã¯ãé常ãHibernateãå¦çããã·ã¹ã"
-"ã ã®ããã©ã¼ãã³ã¹ããã¥ã¼ãã³ã°ããã¨ãã«ã ãã åé¡ã«ãªã£ã¦ãã¾ãã"
+"è¨ããããã°ã Hibernate ãç¨ããã¢ããªã±ã¼ã·ã§ã³éçºè
ã¯ããªãã¸ã§ã¯ãã® "
+"<emphasis>ç¶æ
</emphasis> ã«ã¤ãã¦ã¯å¸¸ã«æèãã¹ãã§ããã SQL æã®å®è¡ã«ã¤ã"
+"ã¦ã¯å¿
ãããããã§ã¯ããã¾ããããã®é¨åã¯ãé常ã Hibernate ãå¦çããã·ã¹ã"
+"ã ã®ããã©ã¼ãã³ã¹ããã¥ã¼ãã³ã°ããã¨ãã«ã ããåé¡ã«ãªã£ã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
-msgstr "Hibernateã«ããããªãã¸ã§ã¯ãã®ç¶æ
"
+msgstr "Hibernate ã«ããããªãã¸ã§ã¯ãã®ç¶æ
"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
-msgstr "Hibernateã¯æ¬¡ã®ãããªãªãã¸ã§ã¯ãã®ç¶æ
ãå®ç¾©ãããµãã¼ããã¦ãã¾ãã"
+msgstr "Hibernate ã¯æ¬¡ã®ãããªãªãã¸ã§ã¯ãã®ç¶æ
ãå®ç¾©ãããµãã¼ããã¦ãã¾ã:"
#. Tag: para
-#: session_api.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
"instantiated using the <literal>new</literal> operator, and it is not "
@@ -74,18 +71,17 @@
"take care of the SQL statements that need to be executed for this "
"transition)."
msgstr ""
-"<emphasis> 䏿ç(Transient) </emphasis> - <literal>new</literal> æ¼ç®åã"
-"使ã£ã¦ ã¤ã³ã¹ã¿ã³ã¹åãããã ãã§ã Hibernateã® <literal>Session</literal> ã«"
-"é¢é£ä»ãããã¦ããªããªãã¸ã§ã¯ãã¯ã 䏿ç(transient)ã§ãã ããã¯ããã¼ã¿"
-"ãã¼ã¹ã«æ°¸ç¶çãªè¡¨ç¾ãæãããèå¥åã¨ãªãå¤ã¯å²ãå½ã¦ããã¦ãã¾ããã 䏿ç"
-"ãªã¤ã³ã¹ã¿ã³ã¹ã¯ãã¢ããªã±ã¼ã·ã§ã³ããã®åç
§ãã©ãã«ãä¿æããªãå ´åã«ã ã¬"
-"ãã¼ã¸ã³ã¬ã¯ã¿ã«ãã£ã¦ç ´æ£ããã¾ãã ãªãã¸ã§ã¯ããæ°¸ç¶ç(persistent)ãªç¶æ
ã«"
-"ããããã«ã¯ãHibernateã® <literal>Session</literal> ã使ãã¾ãããã ï¼ãã®"
-"ç¶æ
é·ç§»ã«å¿
è¦ã¨ãªãSQLæã®çºè¡ã¯ãHibernateã«ä»»ãã¾ããããï¼"
+"<emphasis>Transient</emphasis> - <literal>new</literal> æ¼ç®åã使ã£ã¦ã¤ã³ã¹"
+"ã¿ã³ã¹åãããã ãã§ã Hibernate ã® <literal>Session</literal> ã«é¢é£ä»ããã"
+"ã¦ããªããªãã¸ã§ã¯ãã¯ã transient ã§ããããã¯ããã¼ã¿ãã¼ã¹ã«æ°¸ç¶çãªè¡¨ç¾ã"
+"æãããèå¥åã¨ãªãå¤ã¯å²ãå½ã¦ããã¦ãã¾ããã Transient ã¤ã³ã¹ã¿ã³ã¹ã¯ãã¢"
+"ããªã±ã¼ã·ã§ã³ããã®åç
§ãã©ãã«ãä¿æããªãå ´åã«ãã¬ãã¼ã¸ã³ã¬ã¯ã¿ã«ãã£ã¦"
+"ç ´æ£ããã¾ãããªãã¸ã§ã¯ããæ°¸ç¶ç (persistent) ãªç¶æ
ã«ããããã«ã¯ã "
+"Hibernate ã® <literal>Session</literal> ã使ãã¾ãããï¼ãã®ç¶æ
é·ç§»ã«å¿
è¦ã¨"
+"ãªã SQL æã®çºè¡ã¯ã Hibernate ã«ä»»ãã¾ãããï¼ã"
#. Tag: para
-#: session_api.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
"in the database and an identifier value. It might just have been saved or "
@@ -96,18 +92,17 @@
"statements, or <literal>DELETE</literal> statements when an object should be "
"made transient."
msgstr ""
-"<emphasis>æ°¸ç¶ç(Persistent)</emphasis> - æ°¸ç¶çãªã¤ã³ã¹ã¿ã³ã¹ã¯ãã¼ã¿ãã¼ã¹"
-"ã« æ°¸ç¶çãªè¡¨ç¾ãæã¡ãèå¥åã¨ãªãå¤ãæã£ã¦ãã¾ãã ããã¯ãã»ã¼ãããã"
-"ãããã¼ãããããããããããã¾ãããã å®ç¾©ä¸ã¯ã <literal>Session</"
-"literal> ã®ã¹ã³ã¼ãã®ä¸ã«åå¨ãã¦ãã¾ãã Hibernateã¯ã使¥åä½ï¼Unit of "
-"workï¼ãå®äºããã¨ãã«ã æ°¸ç¶ç¶æ
ã®ãªãã¸ã§ã¯ãã«å ãããã夿´ãæ¤åºãã ãª"
-"ãã¸ã§ã¯ãã®ç¶æ
ã¨ãã¼ã¿ãã¼ã¹ãåæãã¾ãã ãªãã¸ã§ã¯ãã䏿ç(transient)"
-"ã«ããã¨ãã¯ãéçºè
ã¯ãæä½æ¥ã§ <literal>UPDATE</literal> æã "
-"<literal>DELETE</literal> æãå®è¡ãã¾ããã"
+"<emphasis>æ°¸ç¶ç (Persistent)</emphasis> - æ°¸ç¶çãªã¤ã³ã¹ã¿ã³ã¹ã¯ãã¼ã¿ãã¼ã¹"
+"ã«æ°¸ç¶çãªè¡¨ç¾ãæã¡ãèå¥åã¨ãªãå¤ãæã£ã¦ãã¾ããããã¯ãã»ã¼ãããããã"
+"ãã¼ãããããããããããã¾ããããå®ç¾©ä¸ã¯ã <literal>Session</literal> ã®"
+"ã¹ã³ã¼ãã®ä¸ã«åå¨ãã¦ãã¾ãã Hibernate ã¯ã使¥åä½ï¼Unit of Workï¼ãå®äºã"
+"ãã¨ãã«ãæ°¸ç¶ç¶æ
ã®ãªãã¸ã§ã¯ãã«å ãããã夿´ãæ¤åºãããªãã¸ã§ã¯ãã®ç¶æ
"
+"ã¨ãã¼ã¿ãã¼ã¹ãåæãã¾ãããªãã¸ã§ã¯ãã transient ã«ããã¨ãã¯ãéçºè
ã¯ã"
+"æä½æ¥ã§ <literal>UPDATE</literal> æã <literal>DELETE</literal> æãå®è¡ã"
+"ã¾ããã"
#. Tag: para
-#: session_api.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
"been persistent, but its <literal>Session</literal> has been closed. The "
@@ -119,61 +114,46 @@
"them <emphasis>application transactions</emphasis>, i.e., a unit of work "
"from the point of view of the user."
msgstr ""
-"<emphasis>åé¢(Detached)</emphasis> - åé¢ãããã¤ã³ã¹ã¿ã³ã¹ã¨ã¯ãæ°¸ç¶åãã"
-"ã¦ãããã ããã¨é¢é£ä»ãã¦ãã <literal>Session</literal> ãã¯ãã¼ãºããã¦ã"
-"ããªãã¸ã§ã¯ãã®ãã¨ã§ãã ãã®ãªãã¸ã§ã¯ãã¸ã®åç
§ã¯ãä¾ç¶ã¨ãã¦æå¹ã§ãã "
-"ããã¦ããã¡ãããåé¢ãããç¶æ
ã«ãããªãã¸ã§ã¯ãã¯ãä¿®æ£ãããã¨ããã§ãã¾"
-"ãã åé¢ãããã¤ã³ã¹ã¿ã³ã¹ã¯ãããä¸åº¦æ°¸ç¶åãããï¼ããã¦ããã¹ã¦ã®å¤æ´ãæ°¸"
-"ç¶åãããï¼ã¨ãã«ã æ°ãã <literal>Session</literal> ã«å追å ã§ãã¾ãã ã"
-"ã®æ©è½ã¯ãã¦ã¼ã¶ãèããæéãå¿
è¦ã¨ãããããªãé·æéã«åã¶ä½æ¥åä½ã«å¯¾ãã "
-"ããã°ã©ãã³ã°ã¢ãã«ãå¯è½ã«ãã¾ãã æã
ã¯ãããã <emphasis>ã¢ããªã±ã¼ã·ã§"
-"ã³ã®ãã©ã³ã¶ã¯ã·ã§ã³ï¼application transactionsï¼</emphasis> ã¨å¼ãã§ãã¾ãã "
-"ããªãã¡ãã¦ã¼ã¶ããè¦ã使¥åä½ã ã¨ãããã¨ã§ãã"
+"<emphasis>Detached</emphasis> - detached ã¤ã³ã¹ã¿ã³ã¹ã¨ã¯ãæ°¸ç¶åããã¦ãã"
+"ããããã¨é¢é£ä»ãã¦ãã <literal>Session</literal> ãã¯ãã¼ãºããã¦ãããªã"
+"ã¸ã§ã¯ãã®ãã¨ã§ãããã®ãªãã¸ã§ã¯ãã¸ã®åç
§ã¯ãä¾ç¶ã¨ãã¦æå¹ã§ããããã¦ã"
+"ãã¡ãããdetached ã¤ã³ã¹ã¿ã³ã¹ã¯ãã®ç¶æ
ã«ä¿®æ£ãããã¨ããã§ãã¾ãã "
+"detached ã¤ã³ã¹ã¿ã³ã¹ã¯ãããä¸åº¦æ°¸ç¶åãããï¼ããã¦ããã¹ã¦ã®å¤æ´ãæ°¸ç¶åã"
+"ããï¼ã¨ãã«ãæ°ãã <literal>Session</literal> ã«å追å ã§ãã¾ãããã®æ©è½"
+"ã¯ãã¦ã¼ã¶ã¼ãèããæéãå¿
è¦ã¨ãããããªãé·æéã«åã¶ä½æ¥åä½ã«å¯¾ãããã"
+"ã°ã©ãã³ã°ã¢ãã«ãå¯è½ã«ãã¾ããæã
ã¯ãããã <emphasis>ã¢ããªã±ã¼ã·ã§ã³ã®ã"
+"ã©ã³ã¶ã¯ã·ã§ã³ï¼application transactionsï¼</emphasis> ã¨å¼ãã§ãã¾ããããªã"
+"ã¡ãã¦ã¼ã¶ã¼ããè¦ã使¥åä½ã ã¨ãããã¨ã§ãã"
#. Tag: para
-#: session_api.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
"methods that trigger a transition) in more detail."
msgstr ""
-"ãããããç¶æ
ã¨ç¶æ
é·ç§»ï¼ããã¦ãé·ç§»ã®ãã£ããã¨ãªãHibernateã®ã¡ã½ããï¼ã«"
-"ã¤ã㦠ã詳細ã«è¿°ã¹ã¾ãã"
+"ãããããç¶æ
ã¨ç¶æ
é·ç§»ï¼ããã¦ãé·ç§»ã®ãã£ããã¨ãªã Hibernate ã®ã¡ã½ããï¼"
+"ã«ã¤ãã¦ã詳細ã«è¿°ã¹ã¾ãã"
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "ãªãã¸ã§ã¯ããæ°¸ç¶ç¶æ
ã«ãã"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
"<emphasis>transient</emphasis> by Hibernate. We can make a transient "
"instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
-"æ°ããã¤ã³ã¹ã¿ã³ã¹åãããæ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã Hibernateã§ã¯ "
-"<emphasis>䏿ç(transient)</emphasis> ã¨è¦ãªããã¾ãã 以ä¸ã®ããã«ãã»ã"
-"ã·ã§ã³ã¨é¢é£ã¥ãããã¨ã§ã䏿çãªã¤ã³ã¹ã¿ã³ã¹ã <emphasis>æ°¸ç¶ç¶æ
"
-"(persistent)</emphasis> ã«ã§ãã¾ãã"
+"æ°ããã¤ã³ã¹ã¿ã³ã¹åãããæ°¸ç¶ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã Hibernate ã§ã¯ "
+"<emphasis>transient</emphasis> ã¨è¦ãªããã¾ãã以ä¸ã®ããã«ãã»ãã·ã§ã³ã¨é¢é£"
+"ã¥ãããã¨ã§ã transient ã¤ã³ã¹ã¿ã³ã¹ã <emphasis>æ°¸ç¶ç¶æ
(persistent)</"
+"emphasis> ã«ã§ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:110
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:112
-#, fuzzy, no-c-format
-msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
"generated and assigned to the <literal>cat</literal> when <literal>save()</"
"literal> is called. If <literal>Cat</literal> has an <literal>assigned</"
@@ -184,17 +164,16 @@
"draft."
msgstr ""
"<literal>Cat</literal> ã¯ã©ã¹ã®èå¥åãèªåçæãããã®ã§ããã°ã "
-"<literal>save()</literal> ãå¼ã°ããã¨ãã«ã èå¥åãçæããã "
-"<literal>cat</literal> ã¤ã³ã¹ã¿ã³ã¹ã«å²ãå½ã¦ããã¾ãã <literal>Cat</"
-"literal> ã®èå¥åãä»ããå²ãå½ã¦ãããï¼ <literal>assigned</literal> èå¥å"
-"ãæã¤ï¼ããè¤åãã¼ã§ãããªãã <literal>save()</literal> ãå¼ã³åºãåã«ãè"
-"å¥åãå²ãå½ã¦ãªããã°ãªãã¾ããã <literal>save()</literal> ã®ä»£ããã«ã"
-"EJB3 ã®åæãã©ããã§å®ç¾©ããã <literal>persist()</literal> ã使ããã¨ãå¯è½"
-"ã§ãã"
+"<literal>save()</literal> ãå¼ã°ããã¨ãã«ãèå¥åãçæããã <literal>cat</"
+"literal> ã¤ã³ã¹ã¿ã³ã¹ã«å²ãå½ã¦ããã¾ãã <literal>Cat</literal> ã®èå¥åã "
+"<literal>assigned</literal> èå¥åãæã¤ããè¤åãã¼ã§ãããªãã "
+"<literal>save()</literal> ãå¼ã³åºãåã«ãèå¥åã <literal>cat</literal> ã¤"
+"ã³ã¹ã¿ã³ã¹ãå²ãå½ã¦ãªããã°ãªãã¾ããã <literal>save()</literal> ã®ä»£ãã"
+"ã«ã EJB3 ã®åæãã©ããã§å®ç¾©ããã <literal>persist()</literal> ã使ããã¨"
+"ãå¯è½ã§ãã"
#. Tag: para
-#: session_api.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
"it does not guarantee that the identifier value will be assigned to the "
@@ -204,16 +183,8 @@
"boundaries. This is useful in long-running conversations with an extended "
"Session/persistence context."
msgstr ""
-"<literal>persist()</literal> makes a transient instance persistent. However, "
-"it doesn't guarantee that the identifier value will be assigned to the "
-"persistent instance immediately, the assignment might happen at flush time. "
-"<literal>persist()</literal> also guarantees that it will not execute an "
-"<literal>INSERT</literal> statement if it is called outside of transaction "
-"boundaries. This is useful in long-running conversations with an extended "
-"Session/persistence context."
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -222,39 +193,19 @@
"you are inside or outside of a transaction. This is problematic in a long-"
"running conversation with an extended Session/persistence context."
msgstr ""
-"<literal>save()</literal> does guarantee to return an identifier. If an "
-"INSERT has to be executed to get the identifier ( e.g. \"identity\" "
-"generator, not \"sequence\"), this INSERT happens immediately, no matter if "
-"you are inside or outside of a transaction. This is problematic in a long-"
-"running conversation with an extended Session/persistence context."
#. Tag: para
-#: session_api.xml:145
#, fuzzy, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
"<literal>save()</literal>."
msgstr ""
-"代ããã«ãèå¥åã弿°ã«ã¨ã <literal>save()</literal> ã¡ã½ããã使ã£ã¦ã è"
-"å¥åãå²ãå½ã¦ããã¨ãã§ãã¾ãã"
+"代ããã«ãèå¥åã弿°ã«ã¨ã <literal>save()</literal> ã¡ã½ããã使ã£ã¦ãèå¥"
+"åãå²ãå½ã¦ããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:152
-#, fuzzy, no-c-format
-msgid ""
"If the object you make persistent has associated objects (e.g. the "
"<literal>kittens</literal> collection in the previous example), these "
"objects can be made persistent in any order you like unless you have a "
@@ -264,16 +215,15 @@
"literal> the objects in the wrong order."
msgstr ""
"æ°¸ç¶åãããªãã¸ã§ã¯ããé¢é£ãªãã¸ã§ã¯ããæã£ã¦ããå ´å ï¼ä¾ãã°ãåã®ä¾ã«ã"
-"ãã <literal>kittens</literal> ã³ã¬ã¯ã·ã§ã³ã®ããã«ï¼ã å¤é¨ãã¼ã«ã©ã ã«ã "
-"<literal>NOT NULL</literal> å¶ç´ãã¤ããªãéãã¯ã ãããã®ä¸é£ã®ãªãã¸ã§ã¯ã"
-"ãã©ããªé çªã§æ°¸ç¶åãã¦ããã¾ãã¾ããã å¤é¨ãã¼å¶ç´ãéåããæãã¯ããã¾ã"
-"ãã ãããã <literal>NOT NULL</literal> å¶ç´ãããå ´åãééã£ãé çªã§ãªã"
-"ã¸ã§ã¯ãã <literal>save()</literal> ãã¦ãã¾ãã¨ã å¶ç´ã«éåããããããã¾"
-"ããã"
+"ãã <literal>kittens</literal> ã³ã¬ã¯ã·ã§ã³ã®ããã«ï¼ãå¤é¨ãã¼ã«ã©ã ã«ã "
+"<literal>NOT NULL</literal> å¶ç´ãã¤ããªãéãã¯ããããã®ä¸é£ã®ãªãã¸ã§ã¯ã"
+"ãã©ããªé çªã§æ°¸ç¶åãã¦ããã¾ãã¾ãããå¤é¨ãã¼å¶ç´ãéåããæãã¯ããã¾ã"
+"ãããããã <literal>NOT NULL</literal> å¶ç´ãããå ´åãééã£ãé çªã§ãªã"
+"ã¸ã§ã¯ãã <literal>save()</literal> ãã¦ãã¾ãã¨ãå¶ç´ã«éåããããããã¾ã"
+"ãã"
#. Tag: para
-#: session_api.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
"Hibernate's <emphasis>transitive persistence</emphasis> feature to save the "
@@ -281,21 +231,19 @@
"constraint violations do not occur - Hibernate will take care of everything. "
"Transitive persistence is discussed later in this chapter."
msgstr ""
-"é¢é£ãããªãã¸ã§ã¯ããèªåçã«ä¿åããã Hibernateã® <emphasis>é·ç§»çãªæ°¸ç¶å"
-"(transitive persistence)</emphasis> æ©è½ã 使ãã¤ãããªãã°ããã®ãããªè©³ç´°ã"
-"æ°ã«ããå¿
è¦ã¯ããã¾ããã ããã¦ã <literal>NOT NULL</literal> å¶ç´ã®éåã"
-"ãèµ·ããã¾ããã Hibernateããã¹ã¦é¢åãã¿ã¦ããã¾ããé·ç§»çãªæ°¸ç¶åã¯ããã®"
+"é¢é£ãããªãã¸ã§ã¯ããèªåçã«ä¿åããã Hibernate ã® <emphasis>é·ç§»çãªæ°¸ç¶"
+"å (transitive persistence)</emphasis> æ©è½ã使ãã¤ãããªãã°ããã®ãããªè©³ç´°"
+"ãæ°ã«ããå¿
è¦ã¯ããã¾ãããããã¦ã <literal>NOT NULL</literal> å¶ç´ã®éåã"
+"ãèµ·ããã¾ããã Hibernate ããã¹ã¦é¢åãã¿ã¦ããã¾ããé·ç§»çãªæ°¸ç¶åã¯ããã®"
"ç« ã®å¾åã«æ¸ããã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr "ãªãã¸ã§ã¯ãã®ãã¼ã"
#. Tag: para
-#: session_api.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
"a way of retrieving a persistent instance if you know its identifier. "
@@ -304,47 +252,19 @@
msgstr ""
"æ°¸ç¶åãããã¤ã³ã¹ã¿ã³ã¹ã®èå¥åããããããåãã£ã¦ãããªãã "
"<literal>Session</literal> ã® <literal>load()</literal> ã¡ã½ããã使ã£ã¦ã復"
-"å
ã§ãã¾ãã <literal>load()</literal> ã¯ãClass ãªãã¸ã§ã¯ãã弿°ã«ã¨ãã "
-"ãã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãæ°ãã«çæããç¶æ
ããã¼ããã¾ãã ãã®ã¤ã³ã¹ã¿ã³ã¹"
-"ã®ç¶æ
ã¯ãæ°¸ç¶(persistent)ç¶æ
ã§ãã"
+"å
ã§ãã¾ãã <literal>load()</literal> ã¯ã Class ãªãã¸ã§ã¯ãã弿°ã«ã¨ãã"
+"ãã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãæ°ãã«çæããç¶æ
ããã¼ããã¾ãããã®ã¤ã³ã¹ã¿ã³ã¹"
+"ã®ç¶æ
ã¯ãæ°¸ç¶ (persistent) ç¶æ
ã§ãã"
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
msgstr ""
-"ãããã¯ã以ä¸ã®ããã«ãæ¢åã®ã¤ã³ã¹ã¿ã³ã¹ã«ç¶æ
ããã¼ããããã¨ãã§ãã¾ãã"
+"ãããã¯ã以ä¸ã®ããã«ãæ¢åã®ã¤ã³ã¹ã¿ã³ã¹ã«ç¶æ
ããã¼ããããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: session_api.xml:190
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:192
-#, fuzzy, no-c-format
-msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
"exception if there is no matching database row. If the class is mapped with "
"a proxy, <literal>load()</literal> just returns an uninitialized proxy and "
@@ -354,59 +274,38 @@
"be loaded as a batch if <literal>batch-size</literal> is defined for the "
"class mapping."
msgstr ""
-"DBã«è©²å½ããè¡ãç¡ãå ´åã <literal>load()</literal> ã¯å復ä¸å¯è½ãªä¾å¤ã æ"
-"ãããã¨ã«æ³¨æãã¾ãããã ãã®ã¯ã©ã¹ããããã·ã使ã£ã¦ãããã³ã°ããã¦ããå ´"
+"DB ã«è©²å½ããè¡ãç¡ãå ´åã <literal>load()</literal> ã¯å復ä¸å¯è½ãªä¾å¤ãæ"
+"ãããã¨ã«æ³¨æãã¾ãããããã®ã¯ã©ã¹ããããã·ã使ã£ã¦ãããã³ã°ããã¦ããå ´"
"åã <literal>load()</literal> ã¯åæåããã¦ããªããããã·ãè¿ãããããã·ã®"
-"ã¡ã½ãããå¼ã°ããã¾ã§å®éã«ã¯ ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ãã¾ããã ãããå®éã«"
-"ãã¼ã¿ãã¼ã¹ãããã¼ãããã«ããªãã¸ã§ã¯ãã«å¯¾ããé¢é£ãä½ãããå ´åã ãã®æ¯"
+"ã¡ã½ãããå¼ã°ããã¾ã§å®éã«ã¯ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ãã¾ããããããå®éã«"
+"ãã¼ã¿ãã¼ã¹ãããã¼ãããã«ããªãã¸ã§ã¯ãã«å¯¾ããé¢é£ãä½ãããå ´åããã®æ¯"
"ãèãã¯ã¨ã¦ãå½¹ç«ã¡ã¾ãã <literal>batch-size</literal> ãã¯ã©ã¹ãããã³ã°ã«"
-"å®ç¾©ããã¦ãããªãã°ã è¤æ°ã®ã¤ã³ã¹ã¿ã³ã¹ã䏿¬ã§ãã¼ããããã¨ãå¯è½ã§ãã"
+"å®ç¾©ããã¦ãããªãã°ãè¤æ°ã®ã¤ã³ã¹ã¿ã³ã¹ã䏿¬ã§ãã¼ããããã¨ãå¯è½ã§ãã"
#. Tag: para
-#: session_api.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
"<literal>get()</literal> method which hits the database immediately and "
"returns null if there is no matching row."
msgstr ""
"該å½ããè¡ãåå¨ãããã¨ã確信ã§ããªãå ´åã¯ã <literal>get()</literal> ã¡"
-"ã½ããã使ãã¹ãã§ãã ããã¯ããã¼ã¿ãã¼ã¹ã«ããã«ã¢ã¯ã»ã¹ãã該å½ããè¡ãç¡"
-"ãå ´åã¯nullãè¿ãã¾ãã"
+"ã½ããã使ãã¹ãã§ããããã¯ããã¼ã¿ãã¼ã¹ã«ããã«ã¢ã¯ã»ã¹ãã該å½ããè¡ãç¡"
+"ãå ´å㯠null ãè¿ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:209
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:211
-#, fuzzy, no-c-format
-msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
"literal>, using a <literal>LockMode</literal>. See the API documentation for "
"more information."
msgstr ""
"<literal>LockMode</literal> ã使ãã°ã <literal>SELECT ... FOR UPDATE</"
-"literal>ã¨ããSQLã 使ã£ã¦ãªãã¸ã§ã¯ãããã¼ããããã¨ãã§ãã¾ãã è©³ç´°ãªæ
å ±"
-"ã¯ãAPIããã¥ã¡ã³ããåç
§ãã¦ãã ããã"
+"literal> ã¨ãã SQL ã使ã£ã¦ãªãã¸ã§ã¯ãããã¼ããããã¨ãã§ãã¾ããè©³ç´°ãªæ
"
+"å ±ã¯ã API ããã¥ã¡ã³ããåç
§ãã¦ãã ããã"
-#. Tag: programlisting
-#: session_api.xml:216
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:218
-#, fuzzy, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
"emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to "
@@ -414,12 +313,11 @@
"for the association."
msgstr ""
"é¢é£ã«å¯¾ããã«ã¹ã±ã¼ãæ¹æ³ã¨ã㦠<literal>lock</literal> ã <literal>all</"
-"literal> ã æå®ããªãéããé¢é£ããã¤ã³ã¹ã¿ã³ã¹ãå«ã¾ããã³ã¬ã¯ã·ã§ã³ã¯ "
+"literal> ãæå®ããªãéããé¢é£ããã¤ã³ã¹ã¿ã³ã¹ãå«ã¾ããã³ã¬ã¯ã·ã§ã³ã¯ "
"<literal>FOR UPDATE</literal> ã§å¾©å
<emphasis>ãããªã</emphasis> ãã¨ã«æ³¨æ"
"ãã¾ãããã"
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
@@ -427,43 +325,31 @@
"triggers are used to initialize some of the properties of the object."
msgstr ""
"<literal>refresh()</literal> ã¡ã½ããã使ããã¨ã§ãã©ããªã¨ãã§ãããªãã¸ã§ã¯"
-"ãããã®ã³ã¬ã¯ã·ã§ã³ã ãªãã¼ããããã¨ãã§ãã¾ãã ãã¼ã¿ãã¼ã¹ã®ããªã¬ã"
-"ãã¼ãã«ãæ´æ°ããéã«ã ãã®ãã¼ãã«ã«å¯¾å¿ãããªãã¸ã§ã¯ãã®ããããã£ãåæ"
-"ããå ´åããã®ã¡ã½ãããå½¹ã«ç«ã¡ã¾ãã"
+"ãããã®ã³ã¬ã¯ã·ã§ã³ããªãã¼ããããã¨ãã§ãã¾ãããã¼ã¿ãã¼ã¹ã®ããªã¬ããã¼"
+"ãã«ãæ´æ°ããéã«ããã®ãã¼ãã«ã«å¯¾å¿ãããªãã¸ã§ã¯ãã®ããããã£ãåæãã"
+"å ´åããã®ã¡ã½ãããå½¹ã«ç«ã¡ã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
-"大åãªåé¡ã¯ããã¤ã次ã®ç¹ã«é¢ãããã®ã§ããããã¯ãHibernateããã¼ã¿ãã¼ã¹ã"
-"ãã ã©ã®ãããã®éã復å
ããã®ãã¨ãã©ã®ãããã®æ°ã®SQLã® <literal>SELECT</"
-"literal> æã使ãããã®ãã§ãã ããã¯ã <emphasis>ãã§ããã®æ¦ç¥</emphasis> "
-"ã«ããã¾ããããã«ã¤ãã¦ã¯ã<xref linkend=\"performance-fetching\"/> ã§èª¬æã"
-"ã¦ãã¾ãã"
+"大åãªåé¡ã¯ããã¤ã次ã®ç¹ã«é¢ãããã®ã§ããããã¯ã Hibernate ããã¼ã¿ãã¼ã¹"
+"ãããã©ã®ãããã®éã復å
ããã®ãã¨ãã©ã®ãããã®æ°ã® SQL ã® "
+"<literal>SELECT</literal> æã使ãããã®ãã§ããããã¯ã <emphasis>ãã§ããã®"
+"æ¦ç¥</emphasis> ã«ããã¾ããããã«ã¤ãã¦ã¯ã <xref linkend=\"performance-"
+"fetching\"/> ã§èª¬æãã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr "ã¯ã¨ãª"
#. Tag: para
-#: session_api.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
"need a query. Hibernate supports an easy-to-use but powerful object oriented "
@@ -473,20 +359,18 @@
"from Hibernate for result set conversion into objects."
msgstr ""
"æ¢ããããªãã¸ã§ã¯ãã®èå¥åãåãããªãå ´åã¯ãã¯ã¨ãªãå¿
è¦ã«ãªãã¾ãã "
-"Hibernateã¯ä½¿ããããã¦å¼·åãªãªãã¸ã§ã¯ãæåã®ã¯ã¨ãªè¨èª (HQL)ããµãã¼ããã¦"
-"ãã¾ãã ããã°ã©ã ã«ãã£ã¦ã¯ã¨ãªã使ã§ããããã«ãHibernateã¯æ´ç·´ããã"
-"Criteriaã¨Exampleã¯ã¨ãªæ©è½(QBCã¨QBEï¼ã ãµãã¼ããã¦ãã¾ããResultSetããªã"
-"ã¸ã§ã¯ãã«å¤æããHibernateã®ãªãã·ã§ã³æ©è½ã使ããã¨ã§ã ãã¼ã¿ãã¼ã¹ã®ãã¤"
-"ãã£ããªSQLã§ã¯ã¨ãªã表ç¾ãããã¨ãã§ãã¾ãã"
+"Hibernate ã¯ä½¿ããããã¦å¼·åãªãªãã¸ã§ã¯ãæåã®ã¯ã¨ãªè¨èª (HQL) ããµãã¼ãã"
+"ã¦ãã¾ããããã°ã©ã ã«ãã£ã¦ã¯ã¨ãªã使ã§ããããã«ã Hibernate ã¯æ´ç·´ãã"
+"ã Criteria 㨠Example ã¯ã¨ãªæ©è½ (QBC 㨠QBEï¼ ããµãã¼ããã¦ãã¾ãã "
+"ResultSet ããªãã¸ã§ã¯ãã«å¤æãã Hibernate ã®ãªãã·ã§ã³æ©è½ã使ããã¨ã§ã"
+"ãã¼ã¿ãã¼ã¹ã®ãã¤ãã£ã㪠SQL ã§ã¯ã¨ãªã表ç¾ãããã¨ãã§ãã¾ãã"
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr "ã¯ã¨ãªã®å®è¡"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -495,46 +379,15 @@
"always obtain a <literal>Query</literal> using the current <literal>Session</"
"literal>:"
msgstr ""
-"HQLããã¤ãã£ããªSQLã¯ã¨ãªã¯ã <literal>org.hibernate.Query</literal> ã®ã¤ã³"
-"ã¹ã¿ã³ã¹ã¨ãã¦è¡¨ç¾ããã¾ãã ãã®ã¤ã³ã¿ãã§ã¼ã¹ã¯ããã©ã¡ã¼ã¿ãã¤ã³ãã£ã³ã°ã"
-"ResultSetã®ãã³ããªã³ã°ã ã¯ã¨ãªã®å®è¡ãè¡ãã¡ã½ãããç¨æãã¦ãã¾ãã é"
-"常ã <literal>Query</literal> ã¯ã以ä¸ã«ç¤ºãããã«ã ãã®æç¹ã® "
+"HQL ããã¤ãã£ã㪠SQL ã¯ã¨ãªã¯ã <literal>org.hibernate.Query</literal> ã®ã¤"
+"ã³ã¹ã¿ã³ã¹ã¨ãã¦è¡¨ç¾ããã¾ãããã®ã¤ã³ã¿ãã§ã¼ã¹ã¯ããã©ã¡ã¼ã¿ãã¤ã³ãã£ã³ã°"
+"ã ResultSet ã®ãã³ããªã³ã°ãã¯ã¨ãªã®å®è¡ãè¡ãã¡ã½ãããç¨æãã¦ãã¾ããé"
+"常ã <literal>Query</literal> ã¯ã以ä¸ã«ç¤ºãããã«ããã®æç¹ã® "
"<literal>Session</literal> ã使ã£ã¦åå¾ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:264
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:266
-#, fuzzy, no-c-format
-msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
"result of the query will be loaded completely into a collection in memory. "
"Entity instances retrieved by a query are in a persistent state. The "
@@ -545,23 +398,21 @@
"a <literal>Set</literal>."
msgstr ""
"ã¯ã¨ãªã¯ãæ®éã <literal>list()</literal> ãå¼ã³åºããã¨ã«ãã£ã¦å®è¡ããã¾"
-"ãã ã¯ã¨ãªã®çµæã¯ãã¡ã¢ãªä¸ã«ããã³ã¬ã¯ã·ã§ã³ã«ãã¹ã¦ãã¼ãããã¾ãã ã¯ã¨"
-"ãªã«ãã£ã¦å¾©å
ãããã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãæ°¸ç¶ç¶æ
ã§ãã ãããã¯ã¨ãª"
-"ããã£ã1åã®ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¨åãã£ã¦ãããªãã <literal>uniqueResult()</"
-"literal> ã¡ã½ãããæã£åãæ©ãæ¹æ³ã§ãã 峿ãã§ãããå©ç¨ããã¯ã¨ãªã®å ´"
-"åããµã¤ããå¾ãããã³ã¬ã¯ã·ã§ã³ã«ã¯ã ã«ã¼ãã®ãªãã¸ã§ã¯ããéè¤ãã¦å«ã¾ãã¦"
-"ãã¾ã ï¼ããããã«ã¼ããæã¤ã³ã¬ã¯ã·ã§ã³ã¯åæå(ãã¼ãï¼ããã¦ãã¾ãï¼ã ã"
-"ã®éè¤ã¯ <literal>Set</literal> ã使ã£ã¦åãé¤ããã¨ãã§ãã¾ãã"
+"ããã¯ã¨ãªã®çµæã¯ãã¡ã¢ãªä¸ã«ããã³ã¬ã¯ã·ã§ã³ã«ãã¹ã¦ãã¼ãããã¾ããã¯ã¨ãª"
+"ã«ãã£ã¦å¾©å
ãããã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãæ°¸ç¶ç¶æ
ã§ãããããã¯ã¨ãªã"
+"ãã£ã1åã®ã¤ã³ã¹ã¿ã³ã¹ãè¿ãã¨åãã£ã¦ãããªãã <literal>uniqueResult()</"
+"literal> ã¡ã½ãããæã£åãæ©ãæ¹æ³ã§ãã峿ãã§ãããå©ç¨ããã¯ã¨ãªã®å ´åã"
+"ãµã¤ããå¾ãããã³ã¬ã¯ã·ã§ã³ã«ã¯ãã«ã¼ãã®ãªãã¸ã§ã¯ããéè¤ãã¦å«ã¾ãã¦ãã¾"
+"ãï¼ããããã«ã¼ããæã¤ã³ã¬ã¯ã·ã§ã³ã¯åæå (ãã¼ãï¼ããã¦ãã¾ãï¼ããã®é"
+"è¤ã¯ <literal>Set</literal> ã使ã£ã¦åãé¤ããã¨ãã§ãã¾ãã"
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
msgstr "çµæãã¤ãã¬ã¼ããã"
#. Tag: para
-#: session_api.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
"the query using the <literal>iterate()</literal> method. This will usually "
@@ -573,115 +424,53 @@
"returns identifiers, and <emphasis>n</emphasis> additional selects to "
"initialize the actual instances."
msgstr ""
-"æã
ã <literal>iterate()</literal> ã¡ã½ããã使ã£ã¦ã¯ã¨ãªãå®è¡ãããã¨ã§ã "
-"ããè¯ãããã©ã¼ãã³ã¹ãå¾ããã¨ãã§ãã¾ãã ããã¯ãé常ãã¯ã¨ãªã«ãã£ã¦å¾ã"
-"ããå®éã®ã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ãã ãã§ã«ã»ãã·ã§ã³ã¾ãã¯äºæ¬¡ãã£ãã·ã¥"
-"ã«åå¨ãããã¨ãæå¾
ã§ããå ´åã ãã§ãã ãããããã¾ã ãã£ãã·ã¥ããã¦ããªã"
+"æã
ã <literal>iterate()</literal> ã¡ã½ããã使ã£ã¦ã¯ã¨ãªãå®è¡ãããã¨ã§ã"
+"ããè¯ãããã©ã¼ãã³ã¹ãå¾ããã¨ãã§ãã¾ããããã¯ãé常ãã¯ã¨ãªã«ãã£ã¦å¾ã"
+"ããå®éã®ã¨ã³ãã£ãã£ã®ã¤ã³ã¹ã¿ã³ã¹ãããã§ã«ã»ãã·ã§ã³ã¾ãã¯äºæ¬¡ãã£ãã·ã¥"
+"ã«åå¨ãããã¨ãæå¾
ã§ããå ´åã ãã§ãããããããã¾ã ãã£ãã·ã¥ããã¦ããªã"
"ãªãã <literal>iterate()</literal> ã¯ã <literal>list()</literal> ãããé
"
-"ããç°¡åãªã¯ã¨ãªã«å¯¾ãã¦ãå¤ãã®ãã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ã å¿
è¦ã¨ãã¾ãããã®ã¢ã¯"
-"ã»ã¹ã¨ã¯ãèå¥åã ããåå¾ããããã®æåã®selectï¼åã¨ã å®éã®ã¤ã³ã¹ã¿ã³ã¹ã"
-"åæåããããã«å¾ããè¡ãnåã®selectã®ãã¨ã§ãã"
+"ããç°¡åãªã¯ã¨ãªã«å¯¾ãã¦ãå¤ãã®ãã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ãå¿
è¦ã¨ãã¾ãããã®ã¢ã¯"
+"ã»ã¹ã¨ã¯ãèå¥åã ããåå¾ããããã®æåã® select <emphasis>ï¼å</emphasis> "
+"ã¨ãå®éã®ã¤ã³ã¹ã¿ã³ã¹ãåæåããããã«å¾ããè¡ã <emphasis>nå</emphasis> "
+"ã® select ã®ãã¨ã§ãã"
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr "ãªãã¸ã§ã¯ãã®çµï¼tupleï¼ãè¿ãã¯ã¨ãª"
#. Tag: para
-#: session_api.xml:298
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
"as an array:"
msgstr ""
-"Hibernateã®ã¯ã¨ãªã§ã¯ãæã
ããªãã¸ã§ã¯ãã®çµãè¿ããã¨ãããã¾ãã ãã®å ´å"
-"ã¯ãåã¿ãã«ã¯é
åã¨ãã¦è¿ããã¾ãã"
+"Hibernate ã®ã¯ã¨ãªã§ã¯ãæã
ããªãã¸ã§ã¯ãã®çµãè¿ããã¨ãããã¾ãããã®å ´å"
+"ã¯ãåã¿ãã«ã¯é
åã¨ãã¦è¿ããã¾ã:"
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr "ã¹ã«ã©ã¼ã®çµæ"
#. Tag: para
-#: session_api.xml:310
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
"clause. They can even call SQL aggregate functions. Properties or aggregates "
"are considered \"scalar\" results and not entities in persistent state."
msgstr ""
"ã¯ã¨ãªã§ã¯ã <literal>select</literal> ç¯ã§ã¯ã©ã¹ã®ããããã£ãæå®ã§ãã¾"
-"ãã SQLã®éå颿°ãå¼ã¶ãã¨ãã§ãã¾ããããããã£ãéå颿°ã¯ã ï¼æ°¸ç¶ç¶æ
ã®"
+"ãã SQL ã®éå颿°ãå¼ã¶ãã¨ãã§ãã¾ããããããã£ãéå颿°ã¯ãï¼æ°¸ç¶ç¶æ
ã®"
"ã¨ã³ãã£ãã£ã§ã¯ãªãï¼ãã¹ã«ã©ã¼å¤ãã§ããã¨è¦ãªããã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
msgstr "ãã©ã¡ã¼ã¿ã®ãã¤ã³ã"
#. Tag: para
-#: session_api.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
@@ -689,229 +478,120 @@
"are identifiers of the form <literal>:name</literal> in the query string. "
"The advantages of named parameters are as follows:"
msgstr ""
-"<literal>Query</literal> ã¯ãååä»ãã®ãã©ã¡ã¼ã¿ãJDBCã¹ã¿ã¤ã«ã® <literal>?"
-"</literal> ãã©ã¡ã¼ã¿ã«å¤ããã¤ã³ãããããã®ã¡ã½ãããæã£ã¦ãã¾ãã "
-"<emphasis>JDBCã¨ã¯éããHibernateã¯ãã©ã¡ã¼ã¿ã«ã¼ãããçªå·ãæ¯ã£ã¦ããã¾ãã"
-"</emphasis> ååä»ãã®ãã©ã¡ã¼ã¿ã¨ã¯ãã¯ã¨ãªæååã®ãªãã«ãã <literal>:"
-"name</literal> å½¢å¼ã®èå¥åã§ãã ååä»ããã©ã¡ã¼ã¿ã®å©ç¹ã¯æ¬¡ã®éãã§ãã"
+"<literal>Query</literal> ã¯ãååä»ãã®ãã©ã¡ã¼ã¿ã JDBC ã¹ã¿ã¤ã«ã® "
+"<literal>?</literal> ãã©ã¡ã¼ã¿ã«å¤ããã¤ã³ãããããã®ã¡ã½ãããæã£ã¦ãã¾"
+"ãã <emphasis> JDBC ã¨ã¯éãã Hibernate ã¯ãã©ã¡ã¼ã¿ã«ã¼ãããçªå·ãæ¯ã£ã¦"
+"ããã¾ãã</emphasis>ååä»ãã®ãã©ã¡ã¼ã¿ã¨ã¯ãã¯ã¨ãªæååã®ãªãã«ãã "
+"<literal>:name</literal> å½¢å¼ã®èå¥åã§ããååä»ããã©ã¡ã¼ã¿ã®å©ç¹ã¯æ¬¡ã®éã"
+"ã§ãã"
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
msgstr "ååä»ããã©ã¡ã¼ã¿ã¯ãã¯ã¨ãªæååã«ç»å ´ããé çªã¨ç¡é¢ä¿ã§ã"
#. Tag: para
-#: session_api.xml:339
-#, fuzzy, no-c-format
+#, no-c-format
msgid "they can occur multiple times in the same query"
msgstr "åãã¯ã¨ãªå
ã«è¤æ°åç»å ´ãããã¨ãã§ãã¾ã"
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr "èªåèªèº«ã説æãã¾ã"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
msgstr "ãã¼ã¸åã"
#. Tag: para
-#: session_api.xml:361
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
"number of rows you want to retrieve and/or the first row you want to "
"retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
-"ResultSetã«å¶éï¼å¾©å
ãããæå¤§è¡æ°ã復å
ãããæåã®è¡ï¼ãå ããå¿
è¦ããã"
-"ã°ã 以ä¸ã®ããã«ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã使ã"
+"ResultSet ã«å¶éï¼å¾©å
ãããæå¤§è¡æ°ã復å
ãããæåã®è¡ï¼ãå ããå¿
è¦ããã"
+"ã°ã以ä¸ã®ããã«ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ã¡ã½ããã使ã"
"ã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
"your DBMS."
msgstr ""
-"å¶éä»ãã®ã¯ã¨ãªãDBMSã®ãã¤ãã£ããªSQLã«å¤æããæ¹æ³ããHibernateã¯ç¥ã£ã¦ã"
-"ã¾ãã"
+"å¶éä»ãã®ã¯ã¨ãªã DBMS ã®ãã¤ãã£ã㪠SQL ã«å¤æããæ¹æ³ãã Hibernate ã¯"
+"ç¥ã£ã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
msgstr "ã¹ã¯ãã¼ã«å¯è½ãªã¤ãã¬ã¼ã·ã§ã³"
#. Tag: para
-#: session_api.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
"<literal>Query</literal> interface can be used to obtain a "
"<literal>ScrollableResults</literal> object that allows flexible navigation "
"of the query results."
msgstr ""
-"JDBCãã©ã¤ããã¹ã¯ãã¼ã«å¯è½ãª <literal>ResultSet</literal> ããµãã¼ããã¦ã"
-"ãã°ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¤ã¹ã使ã£ã¦ã "
-"<literal>ScrollableResults</literal> ãªãã¸ã§ã¯ãã åå¾ã§ãã¾ããããã使ã"
+"JDBC ãã©ã¤ããã¹ã¯ãã¼ã«å¯è½ãª <literal>ResultSet</literal> ããµãã¼ããã¦ã"
+"ãã°ã <literal>Query</literal> ã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ã£ã¦ã "
+"<literal>ScrollableResults</literal> ãªãã¸ã§ã¯ããåå¾ã§ãã¾ããããã使ã"
"ã¨ãã¯ã¨ãªã®çµæã«å¯¾ãã¦æè»ã«ããã²ã¼ã·ã§ã³ã§ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:386
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:388
-#, fuzzy, no-c-format
-msgid ""
"Note that an open database connection and cursor is required for this "
"functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult"
"()</literal> if you need offline pagination functionality."
msgstr ""
"ãã®æ©è½ã«ã¯ãªã¼ãã³ç¶æ
ã®ãã¼ã¿ãã¼ã¹ã³ãã¯ã·ã§ã³ãå¿
è¦ã§ãããã¨ã«æ³¨æãã¦"
-"ãã ããã ããããªãã©ã¤ã³ã®ãã¼ã¸åãæ©è½ãå¿
è¦ã§ããã°ã "
+"ãã ãããããããªãã©ã¤ã³ã®ãã¼ã¸åãæ©è½ãå¿
è¦ã§ããã°ã "
"<literal>setMaxResult()</literal> / <literal>setFirstResult()</literal> ã使"
"ãã¾ãããã"
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
msgstr "ååä»ãã¯ã¨ãªã®å¤åºã"
#. Tag: para
-#: session_api.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
"<literal>CDATA</literal> section if your query contains characters that "
"could be interpreted as markup."
msgstr ""
-"ãããã³ã°ããã¥ã¡ã³ãã«ååä»ãã®ã¯ã¨ãªãå®ç¾©ãããã¨ãã§ãã¾ãã ï¼ãã¼ã¯"
+"ãããã³ã°ããã¥ã¡ã³ãã«ååä»ãã®ã¯ã¨ãªãå®ç¾©ãããã¨ãã§ãã¾ããï¼ãã¼ã¯"
"ã¢ããã¨è§£éãããæåãã¯ã¨ãªã«å«ã¾ãããªãã <literal>CDATA</literal> ã»ã¯"
-"ã·ã§ã³ã 使ããã¨ãå¿ããªãããã«ãã¾ããããï¼"
+"ã·ã§ã³ã使ããã¨ãå¿ããªãããã«ãã¾ããããï¼"
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
msgstr ""
-"ãã©ã¡ã¼ã¿ã®ãã¤ã³ãã£ã³ã°ã¨å®è¡ã¯ã以ä¸ã®ãããªããã°ã©ã ã§è¡ããã¾ãã"
+"ãã©ã¡ã¼ã¿ã®ãã¤ã³ãã£ã³ã°ã¨å®è¡ã¯ã以ä¸ã®ãããªããã°ã©ã ã§è¡ããã¾ã:"
-#. Tag: programlisting
-#: session_api.xml:411
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:413
-#, fuzzy, no-c-format
-msgid ""
"The actual program code is independent of the query language that is used. "
"You can also define native SQL queries in metadata, or migrate existing "
"queries to Hibernate by placing them in mapping files."
msgstr ""
"å®éã®ããã°ã©ã ã³ã¼ãã¯ã使ãããã¯ã¨ãªè¨èªã«ä¾åãã¦ããªããã¨ã«æ³¨æãã¾"
-"ãããã ã¡ã¿ãã¼ã¿ã«ã¯ããã¤ãã£ãSQLã¯ã¨ãªãå®ç¾©ãããã¨ãã§ãã¾ãã ã¾ãã"
-"æ¢åã®ã¯ã¨ãªããããã³ã°ãã¡ã¤ã«ã«ç§»ããã¨ã§ã Hibernateã«ç§»è¡ãããã¨ãã§ã"
+"ããããã¡ã¿ãã¼ã¿ã«ã¯ããã¤ãã£ã SQL ã¯ã¨ãªãå®ç¾©ãããã¨ãã§ãã¾ããã¾ãã"
+"æ¢åã®ã¯ã¨ãªããããã³ã°ãã¡ã¤ã«ã«ç§»ããã¨ã§ã Hibernate ã«ç§»è¡ãããã¨ãã§ã"
"ã¾ãã"
#. Tag: para
-#: session_api.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
"mapping></literal> element requires a global unique name for the query, "
@@ -919,145 +599,94 @@
"is made unique automatically by prepending the fully qualified name of the "
"class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
-"<literal><hibernate-mapping></literal> ã®ä¸ã®ã¯ã¨ãªå®ç¾©ã¯ãã¯ã¨ãªã«å¯¾ã"
-"ã ã¦ãã¼ã¯ãªååãå¿
è¦ãªãã¨ã«ã注æãã¦ãã ãããããã«å¯¾ãã¦ã "
-"<literal><class></literal> ã®ä¸ã® ã¯ã¨ãªå®ç¾©ã¯ãã¯ã©ã¹ã®å®å
¨éå®åãå"
-"ã«ä»ããããã®ã§ãèªåçã«ã¦ãã¼ã¯ãªååã«ãªãã¾ãã ä¾ï¼ <literal>eg.Cat."
+"<literal><hibernate-mapping></literal> è¦ç´ ã®ä¸ã®ã¯ã¨ãªå®ç¾©ã¯ãã¯ã¨ãªã«"
+"対ããã¦ãã¼ã¯ãªååãå¿
è¦ãªãã¨ã«ã注æãã¦ãã ãããããã«å¯¾ãã¦ã "
+"<literal><class></literal> è¦ç´ ã®ä¸ã®ã¯ã¨ãªå®ç¾©ã¯ãã¯ã©ã¹ã®å®å
¨éå®åã"
+"åã«ä»ããããã®ã§ãèªåçã«ã¦ãã¼ã¯ãªååã«ãªãã¾ããä¾ï¼ <literal>eg.Cat."
"ByNameAndMaximumWeight</literal>"
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
-msgstr "ã³ã¬ã¯ã·ã§ã³ã®ãã£ã«ã¿ãªã³ã°"
+msgstr "ãã£ã«ã¿ãªã³ã°ã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: session_api.xml:433
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
"be applied to a persistent collection or array. The query string can refer "
"to <literal>this</literal>, meaning the current collection element."
msgstr ""
"ã³ã¬ã¯ã·ã§ã³ <emphasis>ãã£ã«ã¿</emphasis> ã¯ãæ°¸ç¶åããã¦ããã³ã¬ã¯ã·ã§ã³ã"
-"é
åã«é©ç¨ããã ç¹æ®ãªã¿ã¤ãã®ã¯ã¨ãªã§ãããã®ã¯ã¨ãªæååã§ã¯ãã³ã¬ã¯ã·ã§ã³"
+"é
åã«é©ç¨ãããç¹æ®ãªã¿ã¤ãã®ã¯ã¨ãªã§ãããã®ã¯ã¨ãªæååã§ã¯ãã³ã¬ã¯ã·ã§ã³"
"ã®ãã®æç¹ã§ã®è¦ç´ ãæå³ãã <literal>this</literal> ã使ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:439
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:441
-#, fuzzy, no-c-format
-msgid ""
"The returned collection is considered a bag that is a copy of the given "
"collection. The original collection is not modified. This is contrary to the "
"implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
-"è¿ãããã³ã¬ã¯ã·ã§ã³ã¯Bagã¨ã¿ãªããã¾ããããã¦ãããã¯ãã¨ã®ã³ã¬ã¯ã·ã§ã³ã®ã³"
-"ãã¼ã«ãªãã¾ãã å
ã®ã³ã¬ã¯ã·ã§ã³ã¯ä¿®æ£ããã¾ããï¼ããã¯ã\"filter\"ã¨ããå"
-"åã®æå³ã¨ã¯ç°ãªãã¾ããã æå¾
ãããåãã¨ã¯ä¸è´ãã¦ãã¾ãï¼ã"
+"è¿ãããã³ã¬ã¯ã·ã§ã³ã¯ Bag ã¨ã¿ãªããã¾ããããã¦ãããã¯ãã¨ã®ã³ã¬ã¯ã·ã§ã³ã®"
+"ã³ãã¼ã«ãªãã¾ããå
ã®ã³ã¬ã¯ã·ã§ã³ã¯ä¿®æ£ããã¾ããï¼ããã¯ã \"filter\" ã¨ã"
+"ãååã®æå³ã¨ã¯ç°ãªãã¾ãããæå¾
ãããåãã¨ã¯ä¸è´ãã¦ãã¾ãï¼ã"
#. Tag: para
-#: session_api.xml:447
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
"although they can have one if required. Filters are not limited to returning "
"the collection elements themselves."
msgstr ""
"ãã£ã«ã¿ã«ã¯ <literal>from</literal> ç¯ãä¸è¦ã§ãããã¨ã«æ°ã¥ãã§ãããï¼å¿
è¦"
-"ãªããæã¤ãã¨ãå¯è½ã§ããï¼ã ãã£ã«ã¿ã¯ãã³ã¬ã¯ã·ã§ã³ã®è¦ç´ èªä½ãè¿ãã¦æ§ã"
+"ãªããæã¤ãã¨ãå¯è½ã§ããï¼ããã£ã«ã¿ã¯ãã³ã¬ã¯ã·ã§ã³ã®è¦ç´ èªä½ãè¿ãã¦æ§ã"
"ã¾ããã"
-#. Tag: programlisting
-#: session_api.xml:452
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:454
-#, fuzzy, no-c-format
-msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
"large collection:"
msgstr ""
-"ã¯ã¨ãªãå«ã¾ãªããã£ã«ã¿ãå½¹ã«ç«ã¡ã¾ãã ä¾ãã°ãé常ã«å¤§ããªã³ã¬ã¯ã·ã§ã³ã®é¨"
+"ã¯ã¨ãªãå«ã¾ãªããã£ã«ã¿ãå½¹ã«ç«ã¡ã¾ããä¾ãã°ãé常ã«å¤§ããªã³ã¬ã¯ã·ã§ã³ã®é¨"
"åéåããã¼ãããããã«ä½¿ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
msgstr "ã¯ã©ã¤ããªã¢ã®ã¯ã¨ãª"
#. Tag: para
-#: session_api.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
"dynamically using an object-oriented API, rather than building query "
"strings. Hibernate provides an intuitive <literal>Criteria</literal> query "
"API for these cases:"
msgstr ""
-"HQLã¯é常ã«å¼·åã§ãããã¯ã¨ãªæååãä½ããããããªãã¸ã§ã¯ãæåã®APIã使ã£"
-"㦠åçã«ã¯ã¨ãªãä½ãæ¹ã好ãéçºè
ããã¾ãã ãããã£ãå ´åã®ããã«ã"
-"Hibernateã¯ç´æç㪠<literal>Criteria</literal> ã¯ã¨ãªAPIãæä¾ãã¦ãã¾ãã"
+"HQL ã¯é常ã«å¼·åã§ãããã¯ã¨ãªæååãä½ããããããªãã¸ã§ã¯ãæåã® API ã"
+"使ã£ã¦åçã«ã¯ã¨ãªãä½ãæ¹ã好ãéçºè
ããã¾ãããããã£ãå ´åã®ããã«ã "
+"Hibernate ã¯ç´æç㪠<literal>Criteria</literal> ã¯ã¨ãª API ãæä¾ãã¦ãã¾"
+"ãã"
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
-"<literal>Criteria</literal> 㨠<literal>Example</literal> APIã®è©³ç´°ã¯ã "
+"<literal>Criteria</literal> 㨠<literal>Example</literal> API ã®è©³ç´°ã¯ã "
"<xref linkend=\"querycriteria\"/> ã«è¿°ã¹ããã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
-msgstr "ãã¤ãã£ãSQLã®ã¯ã¨ãª"
+msgstr "ãã¤ãã£ã SQL ã®ã¯ã¨ãª"
#. Tag: para
-#: session_api.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
"and let Hibernate manage the mapping from result sets to objects. You can at "
@@ -1065,57 +694,31 @@
"<literal>Connection</literal> directly. If you choose to use the Hibernate "
"API, you must enclose SQL aliases in braces:"
msgstr ""
-"<literal>createSQLQuery()</literal> ã使ã£ã¦ãSQLã§ã¯ã¨ãªã表ç¾ãããã¨ãã§ã"
-"ã¾ãã ããã¦ãHibernateã«ãResultSet ãããªãã¸ã§ã¯ãã¸ã®ãããã³ã°ãã¾ãã"
-"ã¾ãã <literal>session.connection()</literal> ãå¼ã¹ã°ã©ããªã¨ãã§ããç´æ¥ã"
-"JDBC <literal>Connection</literal> ã使ç¨ã§ãããã¨ãè¦ãã¦ããã¾ãããã ã"
-"ããHibernate APIã使ãã®ã§ããã°ãä¸è¨ã®ããã«SQLã®å¥åãæ¬å¼§ã§ããããªãã"
-"ã°ãªãã¾ããã"
+"<literal>createSQLQuery()</literal> ã使ã£ã¦ã SQL ã§ã¯ã¨ãªã表ç¾ãããã¨ãã§"
+"ãã¾ããããã¦ã Hibernate ã«ã ResultSet ãããªãã¸ã§ã¯ãã¸ã®ãããã³ã°ãã¾"
+"ããã¾ãã <literal>session.connection()</literal> ãå¼ã¹ã°ã©ããªã¨ãã§ããç´"
+"æ¥ã JDBC <literal>Connection</literal> ã使ç¨ã§ãããã¨ãè¦ãã¦ããã¾ãã"
+"ããããã Hibernate API ã使ãã®ã§ããã°ãä¸è¨ã®ããã« SQL ã®å¥åãæ¬å¼§ã§ã"
+"ãããªããã°ãªãã¾ããã"
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
-"SQLã¯ã¨ãªã¯ãHibernateã¯ã¨ãªã¨åãããã«ãååä»ãã®ãã©ã¡ã¼ã¿ã¨ä½ç½®ãã©ã¡ã¼"
-"ã¿ãæã¤ãã¨ãã§ãã¾ãã Hibernateã«ããããã¤ãã£ããªSQLã¯ã¨ãªã®è©³ç´°ã«ã¤ãã¦"
-"ã¯ã <xref linkend=\"querysql\"/> ãåç
§ãã¦ãã ããã"
+"SQL ã¯ã¨ãªã¯ã Hibernate ã¯ã¨ãªã¨åãããã«ãååä»ãã®ãã©ã¡ã¼ã¿ã¨ä½ç½®ãã©"
+"ã¡ã¼ã¿ãæã¤ãã¨ãã§ãã¾ãã Hibernate ã«ããããã¤ãã£ã㪠SQL ã¯ã¨ãªã®è©³ç´°"
+"ã«ã¤ãã¦ã¯ã <xref linkend=\"querysql\"/> ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
msgstr "æ°¸ç¶ãªãã¸ã§ã¯ãã®ä¿®æ£"
#. Tag: para
-#: session_api.xml:509
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
"loaded, saved, created or queried by the <literal>Session</literal>) can be "
@@ -1128,42 +731,30 @@
"manipulate it directly while the <literal>Session</literal> is open:"
msgstr ""
"<emphasis>å¦çä¸ã®æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹</emphasis> ï¼ä¾ï¼ <literal>Session</"
-"literal> ã«ãã£ã¦ã ãã¼ããã»ã¼ãã使ãã¯ã¨ãªããããªãã¸ã§ã¯ãï¼ã¯ãã¢ã"
-"ãªã±ã¼ã·ã§ã³ã«æä½ããã¾ãã ãã®éã«å¤æ´ãããæ°¸ç¶ç¶æ
ã¯ã "
-"<literal>Session</literal> ã <emphasis>ãã©ãã·ã¥</emphasis> ãããã¨ãã«ã"
-"æ°¸ç¶åããã¾ãï¼ããã¯ããã®ç« ã®å¾åã§è¿°ã¹ã¦ãã¾ãï¼ã 夿´ãæ°¸ç¶åãããã"
-"ã«ãç¹æ®ãªã¡ã½ããï¼ <literal>update()</literal> ã®ãããªãã®ãããã¯ãå¥ã®ç®"
-"çã§ä½¿ç¨ãã¾ãï¼ã å¼ã¶å¿
è¦ã¯ããã¾ããã ãªãã¸ã§ã¯ãã®ç¶æ
ãæ´æ°ããä¸çªç°¡"
-"åãªæ¹æ³ã¯ããªãã¸ã§ã¯ãã <literal>load()</literal> ãã <literal>Session</"
-"literal> ããªã¼ãã³ã«ãã¦ããéã«ãç´æ¥æä½ãããã¨ã§ãã"
+"literal> ã«ãã£ã¦ããã¼ããã»ã¼ãã使ãã¯ã¨ãªããããªãã¸ã§ã¯ãï¼ã¯ãã¢ããª"
+"ã±ã¼ã·ã§ã³ã«æä½ããã¾ãããã®éã«å¤æ´ãããæ°¸ç¶ç¶æ
ã¯ã <literal>Session</"
+"literal> ã <emphasis>ãã©ãã·ã¥</emphasis> ãããã¨ãã«ãæ°¸ç¶åããã¾ãï¼ã"
+"ãã¯ããã®ç« ã®å¾åã§è¿°ã¹ã¦ãã¾ãï¼ã夿´ãæ°¸ç¶åããããã«ãç¹æ®ãªã¡ã½ãã"
+"ï¼ <literal>update()</literal> ã®ãããªãã®ãããã¯ãå¥ã®ç®çã§ä½¿ç¨ãã¾ãï¼ã"
+"å¼ã¶å¿
è¦ã¯ããã¾ããããªãã¸ã§ã¯ãã®ç¶æ
ãæ´æ°ããä¸çªç°¡åãªæ¹æ³ã¯ããªãã¸ã§"
+"ã¯ãã <literal>load()</literal> ãã <literal>Session</literal> ããªã¼ãã³ã«"
+"ãã¦ããéã«ãç´æ¥æä½ãããã¨ã§ãã"
-#. Tag: programlisting
-#: session_api.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:522
-#, fuzzy, no-c-format
-msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
"session both an SQL <literal>SELECT</literal> to load an object and an SQL "
"<literal>UPDATE</literal> to persist its updated state. Hibernate offers an "
"alternate approach by using detached instances."
msgstr ""
-"ï¼ãªãã¸ã§ã¯ãããã¼ãããããã®ï¼SQLã® <literal>SELECT</literal> ã¨ï¼æ´æ°ã"
-"ããç¶æ
ãæ°¸ç¶åããããã®ï¼ SQLã® <literal>UPDATE</literal> ãåãã»ãã·ã§ã³"
-"ã§å¿
è¦ã¨ãªãã®ã§ããã®ããã°ã©ãã³ã°ã¢ãã«ã¯ã å¹çãæªããªãå ´åãããã¾"
-"ãã ãã®ãããHibernateã¯å¥ã®æ¹æ³ãç¨æãã¦ãã¾ããããã¯ãã¤ã³ã¹ã¿ã³ã¹ãå"
-"é¢ããï¼detachedï¼æ¹æ³ã§ãã"
+"ï¼ãªãã¸ã§ã¯ãããã¼ãããããã®ï¼ SQL ã® <literal>SELECT</literal> ã¨ï¼æ´æ°"
+"ãããç¶æ
ãæ°¸ç¶åããããã®ï¼ SQL ã® <literal>UPDATE</literal> ãåãã»ã"
+"ã·ã§ã³ã§å¿
è¦ã¨ãªãã®ã§ããã®ããã°ã©ãã³ã°ã¢ãã«ã¯ãå¹çãæªããªãå ´åããã"
+"ã¾ãããã®ããã Hibernate ã¯å¥ã®æ¹æ³ãç¨æãã¦ãã¾ããããã¯ã detached ã¤ã³"
+"ã¹ã¿ã³ã¹ã使ç¨ããæ¹æ³ã§ãã"
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1175,26 +766,26 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
-"Hibernateã¯ã <placeholder-1/> æã <placeholder-2/> æãç´æ¥å®è¡ããAPIãç¨"
-"æãã¦ãã¾ããã Hibernateã¯ã <placeholder-3/> ãµã¼ãã¹ã§ããã使ãããSQL "
-"<placeholder-4/> ã®ãã¨ãéçºè
ãèããå¿
è¦ã¯ããã¾ããã JDBCã¯SQLæãå®è¡ã"
-"ãå®ç§ãªAPIã§ããã <placeholder-5/> ãå¼ã¶ãã¨ã§ ãã¤ã§ããJDBC "
-"<placeholder-6/> ãéçºè
ã¯åå¾ã§ãã¾ãã ããã«ã大éã®ãã¼ã¿æä½ã®èãæ¹"
-"ã¯ããªã³ã©ã¤ã³ãã©ã³ã¶ã¯ã·ã§ã³å¦çåãã¢ããªã±ã¼ã·ã§ã³ã® ãªãã¸ã§ã¯ã/ãªã¬ã¼"
-"ã·ã§ãã«ãããã³ã°ã¨è¡çªãã¾ãã ããããHibernateã®ä»å¾ã®ãã¼ã¸ã§ã³ã§ã¯ã大"
-"éãã¼ã¿ãå¦çããç¹å¥ãªæ©è½ãæä¾ããããããã¾ããã ãããæä½ã«å©ç¨ã§ãã"
-"ããã¤ãã®å·¥å¤«ã«ã¤ãã¦ã¯ã <xref linkend=\"batch\"/> ãåç
§ãã¦ãã ããã"
+"Hibernate ã¯ã <literal>UPDATE</literal> æã <literal>DELETE</literal> æã"
+"ç´æ¥å®è¡ãã API ãç¨æãã¦ãã¾ããã Hibernate ã¯ã <emphasis>ã¹ãã¼ãããã¼"
+"ã¸ã¡ã³ã</emphasis> ãµã¼ãã¹ã§ãããããã使ãã®ã« <emphasis>ã¹ãã¼ãã¡ã³ã</"
+"emphasis> ã®ãã¨ãéçºè
ãèããå¿
è¦ã¯ããã¾ããã JDBC 㯠SQL æãå®è¡ããå®"
+"ç§ãª API ã§ããã <literal>session.connection()</literal> ãå¼ã¶ãã¨ã§ãã¤ã§"
+"ãã JDBC <literal>Connection</literal> ãéçºè
ã¯åå¾ã§ãã¾ããããã«ã大é"
+"ã®ãã¼ã¿æä½ã®èãæ¹ã¯ããªã³ã©ã¤ã³ãã©ã³ã¶ã¯ã·ã§ã³å¦çåãã¢ããªã±ã¼ã·ã§ã³ã®"
+"ãªãã¸ã§ã¯ã/ãªã¬ã¼ã·ã§ãã«ãããã³ã°ã¨è¡çªãã¾ãããããã Hibernate ã®ä»å¾"
+"ã®ãã¼ã¸ã§ã³ã§ã¯ã大éãã¼ã¿ãå¦çããç¹å¥ãªæ©è½ãæä¾ããããããã¾ããã"
+"ãããæä½ã«å©ç¨ã§ããããã¤ãã®å·¥å¤«ã«ã¤ãã¦ã¯ã <xref linkend=\"batch\"/> ã"
+"åç
§ãã¦ãã ããã"
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
-msgstr "åé¢ãªãã¸ã§ã¯ãã®ä¿®æ£"
+msgstr "detached ãªãã¸ã§ã¯ãã®ä¿®æ£"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1203,56 +794,36 @@
"environment usually use versioned data to ensure isolation for the \"long\" "
"unit of work."
msgstr ""
-"å¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯æ¬¡ã®ãã¨ãå¿
è¦ã«ãªãã¾ãã ããã¯ããããã©ã³ã¶ã¯"
-"ã·ã§ã³ã§ãªãã¸ã§ã¯ãã復å
ããæä½ããããã«ãããUI層ã«éãã ãã®å¾ã«ãæ°ã"
-"ããã©ã³ã¶ã¯ã·ã§ã³ã§å¤æ´ãã»ã¼ãããã¨ãã£ããã¨ã§ãã ä¸¦è¡æ§ã®é«ãç°å¢ã§ãã"
-"ã®ã¿ã¤ãã®ã¢ããã¼ãã使ãã¢ããªã±ã¼ã·ã§ã³ã§ã¯ã \"æéã®é·ã\" 使¥åä½ã®é"
+"å¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯æ¬¡ã®ãã¨ãå¿
è¦ã«ãªãã¾ããããã¯ããããã©ã³ã¶ã¯"
+"ã·ã§ã³ã§ãªãã¸ã§ã¯ãã復å
ããæä½ããããã«ããã UI 層ã«éãããã®å¾ã«ãæ°"
+"ãããã©ã³ã¶ã¯ã·ã§ã³ã§å¤æ´ãã»ã¼ãããã¨ãã£ããã¨ã§ããä¸¦è¡æ§ã®é«ãç°å¢ã§ã"
+"ãã®ã¿ã¤ãã®ã¢ããã¼ãã使ãã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããæéã®é·ãã使¥åä½ã®é"
"颿§ãä¿è¨¼ããããã«ããã¼ã¸ã§ã³ãã¼ã¿ãé常使ããã¾ãã"
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
"instances using the <literal>Session.update()</literal> or <literal>Session."
"merge()</literal> methods:"
msgstr ""
-"Hibernateã¯ã <literal>Session.update()</literal> ã <literal>Session.merge()"
-"</literal> ã¡ã½ããã 使ã£ã¦ãåé¢ã¤ã³ã¹ã¿ã³ã¹ãå追å ãããã¨ã§ããã®ã¢ãã«"
-"ã«å¯¾å¿ãã¾ãã"
+"Hibernate ã¯ã <literal>Session.update()</literal> ã <literal>Session.merge"
+"()</literal> ã¡ã½ããã使ã£ã¦ã detached ã¤ã³ã¹ã¿ã³ã¹ãå追å ãããã¨ã§ããã®"
+"ã¢ãã«ã«å¯¾å¿ãã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
"already been loaded by <literal>secondSession</literal> when the application "
"tried to reattach it, an exception would have been thrown."
msgstr ""
-"èå¥å<literal>catId</literal> ãæã¤ <literal>Cat</literal> ããæ¢ã« "
+"èå¥å <literal>catId</literal> ãæã¤ <literal>Cat</literal> ããæ¢ã« "
"<literal>secondSession</literal> ã§ãã¼ãããã¦ããå ´åã¯ãå追å ãããã¨ãã"
"ã¨ãã«ãä¾å¤ãæãããã¾ãã"
#. Tag: para
-#: session_api.xml:569
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
"contain an already persistent instance with the same identifier. Use "
@@ -1262,84 +833,67 @@
"fresh session, ensuring that the reattachment of your detached instances is "
"the first operation that is executed."
msgstr ""
-"åãèå¥åãæã¤æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ãã»ãã·ã§ã³ãæ¢ã«ä¿æãã¦ããªããã¨ã 確信ã§"
-"ãããªã <literal>update()</literal> ã使ãã¾ãããã ããã¦ãã»ãã·ã§ã³ã®ç¶"
-"æ
ãèããã«ãã©ããªå ´åã§ã夿´ããã¼ã¸ãããå ´åã¯ã <literal>merge()</"
-"literal> ã使ãã¾ãããã ããªãã¡ãåé¢ãªãã¸ã§ã¯ãã®åè¿½å æä½ããæåã«å®"
-"è¡ããããã¨ã確å®ã«ããããã«ã é常㯠<literal>update()</literal> ãæ°ãã"
-"ã»ãã·ã§ã³ã®ãªãã§æåã«å¼ã°ããã¡ã½ããã«ãªãã¾ãã"
+"åãèå¥åãæã¤æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ãã»ãã·ã§ã³ãæ¢ã«ä¿æãã¦ããªããã¨ã確信ã§"
+"ãããªã <literal>update()</literal> ã使ãã¾ããããã¦ãã»ãã·ã§ã³ã®ç¶æ
ãè"
+"ããã«ãã©ããªå ´åã§ã夿´ããã¼ã¸ãããå ´åã¯ã <literal>merge()</literal> "
+"ã使ãã¾ããããªãã¡ã detached ã¤ã³ã¹ã¿ã³ã¹ã®åè¿½å æä½ããæåã«å®è¡ããã"
+"ãã¨ã確å®ã«ããããã«ãé常㯠<literal>update()</literal> ãæ°ããã»ãã·ã§ã³"
+"ã®ãªãã§æåã«å¼ã°ããã¡ã½ããã«ãªãã¾ãã"
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
-"åé¢ã¤ã³ã¹ã¿ã³ã¹ããå°éå¯è½ãªãåé¢ã¤ã³ã¹ã¿ã³ã¹ãã¢ããªã±ã¼ã·ã§ã³ã¯åå¥ã« "
-"<literal>update()</literal> ãã¹ãã§ããããã¯ããã®ç¶æ
ãæ´æ°ãããå ´åã« "
-"<emphasis>éã</emphasis> ã¾ãã <emphasis>é·ç§»çãªæ°¸ç¶å</emphasis> ã使ã"
-"ã°ããã¡ããèªååã§ãã¾ãã <xref linkend=\"objectstate-transitive\"/> ãå"
-"ç
§ãã¦ãã ããã"
+"detached ã¤ã³ã¹ã¿ã³ã¹ããå°éå¯è½ãªã detached ã¤ã³ã¹ã¿ã³ã¹ãã¢ããªã±ã¼ã·ã§ã³"
+"ã¯åå¥ã« <literal>update()</literal> ãã¹ãã§ããããã¯ããã®ç¶æ
ãæ´æ°ããã"
+"å ´åã« <emphasis>éãã¾ãã</emphasis> <emphasis>é·ç§»çãªæ°¸ç¶å</emphasis> "
+"ã使ãã°ããã¡ããèªååã§ãã¾ãã<xref linkend=\"objectstate-transitive\"/> "
+"ãåç
§ãã¦ãã ããã"
#. Tag: para
-#: session_api.xml:585
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
"reassociate an object with a new session. However, the detached instance has "
"to be unmodified."
msgstr ""
-"ã¡ã½ããã§ãã¾ããæ°ããã»ãã·ã§ã³ã«ãªãã¸ã§ã¯ããåé¢é£ä»ãã§ãã¾ãã ãã"
-"ããåé¢ã¤ã³ã¹ã¿ã³ã¹ã¯ç¡ä¿®æ£ã§ãªããã°ãªãã¾ããã"
+"<literal>lock()</literal> ã¡ã½ããã§ãã¾ããæ°ããã»ãã·ã§ã³ã«ãªãã¸ã§ã¯ãã"
+"åé¢é£ä»ãã§ãã¾ãããããã detached ã¤ã³ã¹ã¿ã³ã¹ã¯ç¡ä¿®æ£ã§ãªããã°ãªãã¾ã"
+"ãã"
-#. Tag: programlisting
-#: session_api.xml:590
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:592
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal>lock()</literal> can be used with various "
"<literal>LockMode</literal>s. See the API documentation and the chapter on "
"transaction handling for more information. Reattachment is not the only "
"usecase for <literal>lock()</literal>."
msgstr ""
"<literal>lock()</literal> ã¯ããã¾ãã¾ãª <literal>LockMode</literal> ã¨ã¨ãã«"
-"使ããã¨ãã§ãã¾ãã 詳細ã¯ãAPIããã¥ã¡ã³ãã¨ãã©ã³ã¶ã¯ã·ã§ã³å¦çã®ç« ãåç
§"
-"ãã¦ãã ããã å追å ã®ã¨ãã«ã ãã <literal>lock()</literal> ã使ããããã"
-"ã§ã¯ããã¾ããã"
+"使ããã¨ãã§ãã¾ãã詳細ã¯ã API ããã¥ã¡ã³ãã¨ãã©ã³ã¶ã¯ã·ã§ã³å¦çã®ç« ãåç
§"
+"ãã¦ãã ãããå追å ã®ã¨ãã«ã ãã <literal>lock()</literal> ã使ãããããã§"
+"ã¯ããã¾ããã"
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
-"æéã®é·ã使¥åä½ã®ããã®ä»ã®ã¢ãã«ã¯ã<xref linked=\"transactions-"
+"æéã®é·ã使¥åä½ã®ããã®ä»ã®ã¢ãã«ã¯ã <xref linkend=\"transactions-"
"optimistic\"/> ã§è¿°ã¹ã¦ãã¾ãã"
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
msgstr "èªåçãªç¶æ
æ¤åº"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1347,32 +901,13 @@
"detached instances associated with its current identifier. The "
"<literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
-"Hibernateã®ã¦ã¼ã¶ã¯æ¬¡ã®2ã¤ã®ã±ã¼ã¹ã®ã©ã¡ãã«ã使ããæ±ç¨çãªã¡ã½ãããè¦æ±ã"
-"ã¦ãã¾ããã ããã¯ãæ°ããèå¥åãçæãã¦ä¸æçãªã¤ã³ã¹ã¿ã³ã¹ãã»ã¼ãããã"
-"ã¨ã¨ã ãã®æç¹ã®èå¥åã¨é¢é£ã¥ãã¦ããåé¢ã¤ã³ã¹ã¿ã³ã¹ãæ´æ°/å追å ãããã¨"
-"ã®ã§ããã¡ã½ããã§ãã <literal>saveOrUpdate()</literal> ã¯ãã®ãããªæ©è½ãå®"
-"ç¾ããã¡ã½ããã§ãã"
+"Hibernate ã®ã¦ã¼ã¶ã¼ã¯æ¬¡ã®2ã¤ã®ã±ã¼ã¹ã®ã©ã¡ãã«ã使ããæ±ç¨çãªã¡ã½ãããè¦æ±"
+"ãã¦ãã¾ãããããã¯ãæ°ããèå¥åãçæã㦠transient ã¤ã³ã¹ã¿ã³ã¹ãã»ã¼ãã"
+"ããã¨ã¨ããã®æç¹ã®èå¥åã¨é¢é£ã¥ãã¦ãã detached ã¤ã³ã¹ã¿ã³ã¹ãæ´æ°/å追å "
+"ãããã¨ã®ã§ããã¡ã½ããã§ãã <literal>saveOrUpdate()</literal> ã¯ãã®ãããª"
+"æ©è½ãå®ç¾ããã¡ã½ããã§ãã"
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1382,49 +917,43 @@
"<literal>merge()</literal>. Some whole applications will never use either of "
"these methods."
msgstr ""
-"<literal>saveOrUpdate()</literal> ã®ä½¿ç¨æ¹æ³ã¨æå³ã¯ã æ°ããã¦ã¼ã¶ã«ã¨ã£ã¦æ··"
-"ä¹±ãæãããããã¾ããã ã¾ã第ä¸ã«ãããã»ãã·ã§ã³ã§ä½¿ç¨ããã¤ã³ã¹ã¿ã³ã¹ãå¥"
-"ã®æ°ããã»ãã·ã§ã³ã§ä½¿ããã¨ããªãéãã <literal>update()</literal> ã "
+"<literal>saveOrUpdate()</literal> ã®ä½¿ç¨æ¹æ³ã¨æå³ã¯ãæ°ããã¦ã¼ã¶ã¼ã«ã¨ã£ã¦"
+"æ··ä¹±ãæãããããã¾ãããã¾ã第ä¸ã«ãããã»ãã·ã§ã³ã§ä½¿ç¨ããã¤ã³ã¹ã¿ã³ã¹ã"
+"å¥ã®æ°ããã»ãã·ã§ã³ã§ä½¿ããã¨ããªãéãã <literal>update()</literal> ã "
"<literal>saveOrUpdate()</literal> ã <literal>merge()</literal> ã使ãå¿
è¦ã¯"
-"ããã¾ããã ã¢ããªã±ã¼ã·ã§ã³å
¨ä½ãéãã¦ããããã®ã¡ã½ãããå
¨ã使ããªããã¨"
+"ããã¾ãããã¢ããªã±ã¼ã·ã§ã³å
¨ä½ãéãã¦ããããã®ã¡ã½ãããå
¨ã使ããªããã¨"
"ãããã¾ãã"
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
"used in the following scenario:"
msgstr ""
"é常ã <literal>update()</literal> ã <literal>saveOrUpdate()</literal> ã¯æ¬¡"
-"ã®ã·ããªãªã§ 使ããã¾ãã"
+"ã®ã·ããªãªã§ä½¿ããã¾ã:"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "ã¢ããªã±ã¼ã·ã§ã³ãæåã®ã»ãã·ã§ã³ã§ãªãã¸ã§ã¯ãããã¼ããã¾ãã"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
-msgstr "ãªãã¸ã§ã¯ããUI層ã«éããã¾ãã"
+msgstr "ãªãã¸ã§ã¯ãã UI 層ã«éããã¾ãã"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
msgstr "ãªãã¸ã§ã¯ãã«å¯¾ãã¦å¤æ´ãå ãããã¾ãã"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "ãªãã¸ã§ã¯ãããã¸ãã¹ãã¸ãã¯å±¤ã«éããã¾ãã"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1434,49 +963,42 @@
"ã¨ã§ããããã®å¤æ´ãæ°¸ç¶åãã¾ãã"
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
-msgstr "<literal>saveOrUpdate()</literal> ã¯ä»¥ä¸ã®ãã¨ãè¡ãã¾ãã"
+msgstr "<literal>saveOrUpdate()</literal> ã¯ä»¥ä¸ã®ãã¨ãè¡ãã¾ã:"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
"ãªãã¸ã§ã¯ãããã®ã»ãã·ã§ã³ã§ããã§ã«æ°¸ç¶åããã¦ããã°ãä½ããã¾ããã"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
"an exception"
msgstr ""
-"ãã®ã»ãã·ã§ã³ã«é¢é£ã¥ãã¦ããå¥ã®ãªãã¸ã§ã¯ããåãèå¥åãæã£ã¦ãããªãã "
+"ãã®ã»ãã·ã§ã³ã«é¢é£ã¥ãã¦ããå¥ã®ãªãã¸ã§ã¯ããåãèå¥åãæã£ã¦ãããªãã"
"ä¾å¤ãæãã¾ãã"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
"ãªãã¸ã§ã¯ãã®èå¥åãå¤ãæããªããªãã°ã <literal>save()</literal> ãã¾ãã"
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
"object, <literal>save()</literal> it"
msgstr ""
"ãªãã¸ã§ã¯ãã®èå¥åãå¤ãæã¡ããã®å¤ãæ°ãã«ã¤ã³ã¹ã¿ã³ã¹åããããªãã¸ã§ã¯"
-"ãã®ããã®å¤ã§ããå ´åã ãã®ãªãã¸ã§ã¯ãã <literal>save()</literal> ãã¾"
-"ãã"
+"ãã®ããã®å¤ã§ããå ´åããã®ãªãã¸ã§ã¯ãã <literal>save()</literal> ãã¾ãã"
#. Tag: para
-#: session_api.xml:687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
"<literal><timestamp></literal>, and the version property value is the "
@@ -1484,25 +1006,22 @@
"literal> it"
msgstr ""
"ãªãã¸ã§ã¯ããï¼ <literal><version></literal> ã <literal><"
-"timestamp></literal> ã«ãã£ã¦ï¼ ãã¼ã¸ã§ã³ã¥ãããã¦ãã¦ããã¼ã¸ã§ã³ã®ãã"
-"ããã£ãå¤ãæã¡ã ãã®å¤ãæ°ããã¤ã³ã¹ã¿ã³ã¹åããããªãã¸ã§ã¯ãã®ããã®å¤ã§"
-"ããå ´åã ãã®ãªãã¸ã§ã¯ãã <literal>save()</literal> ãã¾ãã"
+"timestamp></literal> ã«ãã£ã¦ï¼ãã¼ã¸ã§ã³ã¥ãããã¦ãã¦ããã¼ã¸ã§ã³ã®ãã"
+"ããã£ãå¤ãæã¡ããã®å¤ãæ°ããã¤ã³ã¹ã¿ã³ã¹åããããªãã¸ã§ã¯ãã®ããã®å¤ã§"
+"ããå ´åããã®ãªãã¸ã§ã¯ãã <literal>save()</literal> ãã¾ãã"
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
"ããã§ãªãå ´åã¯ããã®ãªãã¸ã§ã¯ãã <literal>update()</literal> ãã¾ãã"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
-msgstr "ããã¦ã <literal>merge()</literal> ã¯ä»¥ä¸ã®ããã«ã¨ã¦ãç°ãªãã¾ãã"
+msgstr "ããã¦ã <literal>merge()</literal> ã¯ä»¥ä¸ã®ããã«é常ã«ç°ãªãã¾ã:"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1510,43 +1029,38 @@
"persistent instance"
msgstr ""
"åãèå¥åãæã¤æ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ããã®æç¹ã§ã»ãã·ã§ã³ã¨é¢é£ä»ãã¦ãããªã"
-"ã°ã 弿°ã§åãåã£ããªãã¸ã§ã¯ãã®ç¶æ
ãæ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ã«ã³ãã¼ãã¾ãã"
+"ã°ã弿°ã§åãåã£ããªãã¸ã§ã¯ãã®ç¶æ
ãæ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ã«ã³ãã¼ãã¾ãã"
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
"try to load it from the database, or create a new persistent instance"
msgstr ""
-"æ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ããã®æç¹ã§ã»ãã·ã§ã³ã«é¢é£ä»ãã¦ããªããªãã ãã¼ã¿ãã¼ã¹"
+"æ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ããã®æç¹ã§ã»ãã·ã§ã³ã«é¢é£ä»ãã¦ããªããªãããã¼ã¿ãã¼ã¹"
"ããããããã¼ããããããããã¯ãæ°ããæ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ã使ãã¾ãã"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr "æ°¸ç¶åã¤ã³ã¹ã¿ã³ã¹ãè¿ããã¾ãã"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
"detached"
msgstr ""
-"弿°ã¨ãã¦ä¸ããã¤ã³ã¹ã¿ã³ã¹ã¯ã»ãã·ã§ã³ã¨é¢é£ãæã¡ã¾ããã ããã¯ãåé¢ç¶æ
"
+"弿°ã¨ãã¦ä¸ããã¤ã³ã¹ã¿ã³ã¹ã¯ã»ãã·ã§ã³ã¨é¢é£ãæã¡ã¾ãããããã¯ãåé¢ç¶æ
"
"ã®ã¾ã¾ã§ãã"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
msgstr "æ°¸ç¶ãªãã¸ã§ã¯ãã®åé¤"
#. Tag: para
-#: session_api.xml:737
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
"database. Your application, however, can still hold a reference to a deleted "
@@ -1554,19 +1068,12 @@
"persistent instance, transient."
msgstr ""
"<literal>Session.delete()</literal> ã¯ãªãã¸ã§ã¯ãã®ç¶æ
ããã¼ã¿ãã¼ã¹ããå"
-"é¤ãã¾ãã ãã¡ãããåé¤ãããªãã¸ã§ã¯ããã¢ããªã±ã¼ã·ã§ã³ãä¿æããã¾ã¾ã§ã"
-"ããã§ãã ãã®ããã <literal>delete()</literal> ã¯æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ã䏿ç"
-"ã«ãããã®ã¨èããã®ãä¸çªã§ãã"
+"é¤ãã¾ãããã¡ãããåé¤ãããªãã¸ã§ã¯ããã¢ããªã±ã¼ã·ã§ã³ãä¿æããã¾ã¾ã§ã"
+"ããã§ãããã®ããã <literal>delete()</literal> ã¯æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ã "
+"transient ã«ãããã®ã¨èããã®ãä¸çªã§ãã"
-#. Tag: programlisting
-#: session_api.xml:744
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:746
-#, fuzzy, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
"violations. It is still possible to violate a <literal>NOT NULL</literal> "
@@ -1574,50 +1081,28 @@
"g. if you delete the parent, but forget to delete the children."
msgstr ""
"å¤é¨ãã¼å¶ç´ã«éåãããªã¹ã¯ããªãã好ããªé çªã§ãªãã¸ã§ã¯ããåé¤ãããã¨ã"
-"ã§ãã¾ãã ãã ããééã£ãé çªã§ãªãã¸ã§ã¯ããåé¤ããã¨ãå¤é¨ãã¼ã«ã©ã ã® "
-"<literal>NOT NULL</literal> å¶ç´ã«éåããå¯è½æ§ãããã¾ãã ä¾ãã°ã親ãªã"
+"ã§ãã¾ãããã ããééã£ãé çªã§ãªãã¸ã§ã¯ããåé¤ããã¨ãå¤é¨ãã¼ã«ã©ã ã® "
+"<literal>NOT NULL</literal> å¶ç´ã«éåããå¯è½æ§ãããã¾ããä¾ãã°ã親ãªã"
"ã¸ã§ã¯ããåé¤ããã¨ãã«ãåä¾ãªãã¸ã§ã¯ããåé¤ãå¿ããå ´åã§ãã"
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "ç°ãªãäºã¤ã®ãã¼ã¿ã¹ãã¢éã§ã®ãªãã¸ã§ã¯ãã®ã¬ããªã±ã¼ã·ã§ã³"
#. Tag: para
-#: session_api.xml:759
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
"and make them persistent in a different datastore, without regenerating "
"identifier values."
msgstr ""
-"æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ã®ã°ã©ããå¥ã®ãã¼ã¿ã¹ãã¢ã«æ°¸ç¶åããå ´åã«ã èå¥åã®å¤ãå"
+"æ°¸ç¶ã¤ã³ã¹ã¿ã³ã¹ã®ã°ã©ããå¥ã®ãã¼ã¿ã¹ãã¢ã«æ°¸ç¶åããå ´åã«ãèå¥åã®å¤ãå"
"çæããã«ããã¨ä¾¿å©ãªå ´åãããã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:765
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:767
-#, fuzzy, no-c-format
-msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
"literal> will deal with conflicts with existing rows in the database:"
msgstr ""
@@ -1626,49 +1111,44 @@
"ãã¾ãã"
#. Tag: para
-#: session_api.xml:774
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
"an existing database row with the same identifier"
msgstr ""
"<literal>ReplicationMode.IGNORE</literal> - åãèå¥åãæã¤è¡ããã¼ã¿ãã¼ã¹"
-"ã«åå¨ãããªãã ãã®ãªãã¸ã§ã¯ããç¡è¦ãã¾ãã"
+"ã«åå¨ãããªãããã®ãªãã¸ã§ã¯ããç¡è¦ãã¾ãã"
#. Tag: para
-#: session_api.xml:780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
"database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.OVERWRITE</literal> - åãèå¥åãæã¤æ¢åã®è¡ã ã"
-"ã¹ã¦ä¸æ¸ããã¾ãã"
+"<literal>ReplicationMode.OVERWRITE</literal> - åãèå¥åãæã¤æ¢åã®è¡ããã¹"
+"ã¦ä¸æ¸ããã¾ãã"
#. Tag: para
-#: session_api.xml:786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
"is an existing database row with the same identifier"
msgstr ""
"<literal>ReplicationMode.EXCEPTION</literal> - åãèå¥åãæã¤è¡ããã¼ã¿ãã¼"
-"ã¹ã«åå¨ãããªãã ä¾å¤ãæãã¾ãã"
+"ã¹ã«åå¨ãããªããä¾å¤ãæãã¾ãã"
#. Tag: para
-#: session_api.xml:792
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
"version number is earlier than the version number of the object, or ignore "
"the object otherwise"
msgstr ""
"<literal>ReplicationMode.LATEST_VERSION</literal> - è¡ã«ä¿åããã¦ãããã¼"
-"ã¸ã§ã³çªå·ãã 弿°ã®ãªãã¸ã§ã¯ãã®ãã¼ã¸ã§ã³çªå·ããå¤ããªãã°ããã®è¡ã䏿¸"
+"ã¸ã§ã³çªå·ãã弿°ã®ãªãã¸ã§ã¯ãã®ãã¼ã¸ã§ã³çªå·ããå¤ããªãã°ããã®è¡ã䏿¸"
"ããã¾ãã"
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1676,110 +1156,96 @@
"product upgrades, rolling back changes made during non-ACID transactions and "
"more."
msgstr ""
-"次ã®ãããªã±ã¼ã¹ã§ããã®æ©è½ã使ç¨ãã¾ãã ç°ãªããã¼ã¿ãã¼ã¹ã¤ã³ã¹ã¿ã³ã¹ã«å
¥"
-"ãããããã¼ã¿ã®åæã è£½åæ´æ°æã«ãããã·ã¹ãã è¨å®æ
å ±ã®æ´æ°ãéACIDãã©ã³"
-"ã¶ã¯ã·ã§ã³ã®ãªãã§å ãããã夿´ã®ãã¼ã«ããã¯ãªã©ã§ãã"
+"次ã®ãããªã±ã¼ã¹ã§ããã®æ©è½ã使ç¨ãã¾ããç°ãªããã¼ã¿ãã¼ã¹ã¤ã³ã¹ã¿ã³ã¹ã«å
¥"
+"ãããããã¼ã¿ã®åæãè£½åæ´æ°æã«ãããã·ã¹ãã è¨å®æ
å ±ã®æ´æ°ãé ACID ãã©"
+"ã³ã¶ã¯ã·ã§ã³ã®ãªãã§å ãããã夿´ã®ãã¼ã«ããã¯ãªã©ã§ãã"
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
msgstr "ã»ãã·ã§ã³ã®ãã©ãã·ã¥"
#. Tag: para
-#: session_api.xml:811
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
"needed to synchronize the JDBC connection's state with the state of objects "
"held in memory. This process, called <emphasis>flush</emphasis>, occurs by "
"default at the following points:"
msgstr ""
-"JDBCã³ãã¯ã·ã§ã³ã®ç¶æ
ã¨ã¡ã¢ãªä¸ã®ãªãã¸ã§ã¯ãã®ç¶æ
ãåæãããããã«å¿
è¦ãª "
-"SQLæã <literal>Session</literal> ãå®è¡ãããã¨ãã¨ãã©ãããã¾ãã ãã®å¦"
-"ç <emphasis>flush</emphasis> ã¯ãããã©ã«ãã§ã¯æ¬¡ã®ã¨ãã«èµ·ããã¾ãã"
+"JDBC ã³ãã¯ã·ã§ã³ã®ç¶æ
ã¨ã¡ã¢ãªä¸ã®ãªãã¸ã§ã¯ãã®ç¶æ
ãåæãããããã«å¿
è¦"
+"㪠SQL æã <literal>Session</literal> ãå®è¡ãããã¨ãã¨ãã©ãããã¾ãããã®"
+"å¦ç <emphasis>flush</emphasis> ã¯ãããã©ã«ãã§ã¯æ¬¡ã®ã¨ãã«èµ·ããã¾ãã"
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
msgstr "ã¯ã¨ãªãå®è¡ããå"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "<literal>org.hibernate.Transaction.commit()</literal> ãå®è¡ããã¨ã"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "<literal>Session.flush()</literal> ãå®è¡ããã¨ã"
#. Tag: para
-#: session_api.xml:836
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The SQL statements are issued in the following order:"
-msgstr "SQLæã¯ä»¥ä¸ã®é çªã§çºè¡ããã¾ãã"
+msgstr "SQL æã¯ä»¥ä¸ã®é çªã§çºè¡ããã¾ãã"
#. Tag: para
-#: session_api.xml:842
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
"using <literal>Session.save()</literal>"
msgstr ""
"ãã¹ã¦ã®ã¨ã³ãã£ãã£ã®æ¿å
¥ãããã¯ã <literal>Session.save()</literal> ã使ã£"
-"ã¦ã»ã¼ããã ãªãã¸ã§ã¯ãã®é ã«å®è¡ãã¦ããã¾ãã"
+"ã¦ã»ã¼ããããªãã¸ã§ã¯ãã®é ã«å®è¡ãã¦ããã¾ãã"
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
msgstr "ãã¹ã¦ã®ã¨ã³ãã£ãã£ã®æ´æ°"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr "ãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ã®åé¤"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "ãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ã®è¦ç´ ã«å¯¾ããåé¤ãæ´æ°ãæ¿å
¥"
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr "ãã¹ã¦ã®ã³ã¬ã¯ã·ã§ã³ã®æ¿å
¥"
#. Tag: para
-#: session_api.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
"deleted using <literal>Session.delete()</literal>"
msgstr ""
-"ãã¹ã¦ã®ã¨ã³ãã£ãã£ã®åé¤ãããã¯ã<literal>Session.delete()</literal> ã"
-"使ã£ã¦ åé¤ãããªãã¸ã§ã¯ãã®é ã«å®è¡ãã¦ããã¾ãã"
+"ãã¹ã¦ã®ã¨ã³ãã£ãã£ã®åé¤ãããã¯ã <literal>Session.delete()</literal> ã"
+"使ã£ã¦åé¤ãããªãã¸ã§ã¯ãã®é ã«å®è¡ãã¦ããã¾ãã"
#. Tag: para
-#: session_api.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
"are inserted when they are saved."
msgstr ""
"(ï¼ã¤ä¾å¤ãããã¾ãã <literal>native</literal> ID çæã使ã£ããªãã¸ã§ã¯ã"
-"ã¯ã ããããã»ã¼ããããã¨ãã«æ¿å
¥ããã¾ããï¼"
+"ã¯ãããããã»ã¼ããããã¨ãã«æ¿å
¥ããã¾ããï¼"
#. Tag: para
-#: session_api.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
@@ -1788,13 +1254,12 @@
"(..)</literal> will never return stale or incorrect data."
msgstr ""
"æç¤ºçã« <literal>flush()</literal> ããã¨ããé¤ãã¦ã <emphasis>ãã¤</"
-"emphasis><literal>Session</literal> ãJDBCãã³ã¼ã«ããã®ãã«ã¤ã㦠絶対çãªä¿"
-"証ã¯ããã¾ããããã ããããããå®è¡ããã <emphasis>é çª</emphasis> ã ã㯠"
-"ä¿è¨¼ããã¾ãã ã¾ããHibernate ã¯ã <literal>Query.list(..)</literal> ãå¤ã"
-"ãã¼ã¿ãééã£ããã¼ã¿è¿ããªããã¨ã ä¿è¨¼ãã¦ãã¾ãã"
+"emphasis> <literal>Session</literal> ã JDBC ãã³ã¼ã«ããã®ãã«ã¤ãã¦çµ¶å¯¾çãª"
+"ä¿è¨¼ã¯ããã¾ããããã ããããããå®è¡ããã <emphasis>é çª</emphasis> ã ãã¯"
+"ä¿è¨¼ããã¾ããã¾ãã Hibernate ã¯ã <literal>Query.list(..)</literal> ãå¤ã"
+"ãã¼ã¿ãééã£ããã¼ã¿è¿ããªããã¨ãä¿è¨¼ãã¦ãã¾ãã"
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1804,72 +1269,48 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
"ãã©ãã·ã¥ãé »ç¹ã«èµ·ãããªãããã«ããã©ã«ãã®æ¯ãèããå¤ãããã¨ãã§ãã¾"
-"ãã <literal>FlushMode</literal> ã¯ã©ã¹ã¯3ã¤ã®ç°ãªãã¢ã¼ããå®ç¾©ãã¾ãã ã"
-"ãã¯ãã³ãããæã«ã ããã©ãã·ã¥ããã¢ã¼ã ï¼Hibernateã® "
-"<literal>Transaction</literal> APIã使ãããå ´åã ãã§ãï¼ã 説æã®ãã£ãå¦ç"
-"é ã«åºã¥ãã¦èªåã§ãã©ãã·ã¥ããã¢ã¼ãã <literal>flush()</literal> ãæç¤ºç"
-"ã«å¼ã°ããªãéããã©ãã·ã¥ããªãã¢ã¼ãã®ï¼ã¤ã§ãã æå¾ã®ã¢ã¼ãã¯ã使¥åä½ã"
-"é·æéã«åã¶å ´åã«å½¹ã«ç«ã¡ã¾ã ( <xref linkend=\"transactions-optimistic-"
-"longsession\"/> ãåç
§ãã¦ãã ãã)ã"
+"ãã <literal>FlushMode</literal> ã¯ã©ã¹ã¯3ã¤ã®ç°ãªãã¢ã¼ããå®ç¾©ãã¾ãããã"
+"ã¯ãã³ãããæã«ã ããã©ãã·ã¥ããã¢ã¼ãï¼Hibernate ã® <literal>Transaction</"
+"literal> API ã使ãããå ´åã ãã§ãï¼ã説æã®ãã£ãå¦çé ã«åºã¥ãã¦èªåã§ã"
+"ã©ãã·ã¥ããã¢ã¼ãã <literal>flush()</literal> ãæç¤ºçã«å¼ã°ããªãéãã"
+"ã©ãã·ã¥ããªãã¢ã¼ãã®ï¼ã¤ã§ããæå¾ã®ã¢ã¼ãã¯ã使¥åä½ãé·æéã«åã¶å ´åã«"
+"å½¹ã«ç«ã¡ã¾ã ( <xref linkend=\"transactions-optimistic-longsession\"/> ãåç
§"
+"ãã¦ãã ãã)ã"
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
-"ãã©ãã·ã¥ã®ã¨ããä¾å¤ãçºçããããããã¾ããã ï¼ä¾ãã°ãDMLæä½ãå¶ç´ãé"
-"åãããããªå ´åã§ããï¼ ä¾å¤å¦çãçè§£ããããã«ã¯ãHibernateã®ãã©ã³ã¶ã¯"
-"ã·ã§ã³ã®æ¯ãèããçè§£ããå¿
è¦ãããããã <xref linkend=\"transactions\"/> "
-"ã§èª¬æãã¾ãã"
+"ãã©ãã·ã¥ã®ã¨ããä¾å¤ãçºçããããããã¾ããï¼ä¾ãã°ã DML æä½ãå¶ç´ãéå"
+"ãããããªå ´åã§ãï¼ãä¾å¤å¦çãçè§£ããããã«ã¯ã Hibernate ã®ãã©ã³ã¶ã¯ã·ã§"
+"ã³ã®æ¯ãèããçè§£ããå¿
è¦ãããããã <xref linkend=\"transactions\"/> ã§èª¬"
+"æãã¾ãã"
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
msgstr "é£éçãªæ°¸ç¶å"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
"especially if you deal with a graph of associated objects. A common case is "
"a parent/child relationship. Consider the following example:"
msgstr ""
-"åã
ã®ãªãã¸ã§ã¯ããã»ã¼ãããããåé¤ããããå追å ããããããã¨ã¯ ããªãé¢"
-"åã§ããç¹ã«ãé¢é£ãããªãã¸ã§ã¯ããæ±ããããªå ´åã«ã¯éç«ã¡ã¾ãã ããããã®"
-"ã¯ã親åé¢ä¿ãæ±ãã±ã¼ã¹ã§ãã 以ä¸ã®ä¾ãèãã¦ã¿ã¾ãããã"
+"åã
ã®ãªãã¸ã§ã¯ããã»ã¼ãããããåé¤ããããå追å ããããããã¨ã¯ããªãé¢"
+"åã§ããç¹ã«ãé¢é£ãããªãã¸ã§ã¯ããæ±ããããªå ´åã«ã¯éç«ã¡ã¾ããããããã®"
+"ã¯ã親åé¢ä¿ãæ±ãã±ã¼ã¹ã§ãã以ä¸ã®ä¾ãèãã¦ã¿ã¾ããã:"
#. Tag: para
-#: session_api.xml:917
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
"collection of addresses or strings), their life cycle would depend on the "
@@ -1880,17 +1321,16 @@
"collection. Since value-typed objects cannot have shared references, "
"Hibernate will detect this and delete the child from the database."
msgstr ""
-"ããã親åé¢ä¿ã®åãå¤åãªãï¼ä¾ãã°ã使ãæååã®ã³ã¬ã¯ã·ã§ã³ï¼ã ãããã®"
-"ã©ã¤ããµã¤ã¯ã«ã¯è¦ªã«ä¾åãã¦ããã便å©ãªç¶æ
å¤åã®\"ã«ã¹ã±ã¼ã\"ã使ããã"
-"ã«ã 追å ã®ä½æ¥ã¯å¿
è¦ã¯ããã¾ããã 親ãã»ã¼ããããã¨ããå¤åã®åãªãã¸ã§ã¯"
-"ããåãããã«ã»ã¼ãããã¾ããã 親ãåé¤ãããã¨ãã¯ãåãåé¤ããã¾ãããã®"
-"ä»ã®æä½ãåãã§ãã ã³ã¬ã¯ã·ã§ã³ãã1ã¤ã®åãåé¤ãããããªæä½ã§ããã¾ãã"
-"ãã¾ãã ããªãã¡ãHibernateã¯ãã®å餿ä½ãæ¤åºããã¨ã å¤åã®ãªãã¸ã§ã¯ãã¯"
-"åç
§ãå
±æã§ããªãã®ã§ããã¼ã¿ãã¼ã¹ãããã®åä¾ãåé¤ãã¾ãã"
+"ããã親åé¢ä¿ã®åãå¤åãªãï¼ä¾ãã°ã使ãæååã®ã³ã¬ã¯ã·ã§ã³ï¼ããããã®"
+"ã©ã¤ããµã¤ã¯ã«ã¯è¦ªã«ä¾åãã¦ããã便å©ãªç¶æ
å¤åã®ãã«ã¹ã±ã¼ããã使ããã"
+"ã«ã追å ã®ä½æ¥ã¯å¿
è¦ã¯ããã¾ããã親ãã»ã¼ããããã¨ããå¤åã®åãªãã¸ã§ã¯ã"
+"ãåãããã«ã»ã¼ãããã¾ããã親ãåé¤ãããã¨ãã¯ãåãåé¤ããã¾ãããã®ä»"
+"ã®æä½ãåãã§ããã³ã¬ã¯ã·ã§ã³ãã1ã¤ã®åãåé¤ãããããªæä½ã§ããã¾ãããã¾"
+"ããããªãã¡ã Hibernate ã¯ãã®å餿ä½ãæ¤åºããã¨ãå¤åã®ãªãã¸ã§ã¯ãã¯åç
§"
+"ãå
±æã§ããªãã®ã§ããã¼ã¿ãã¼ã¹ãããã®åä¾ãåé¤ãã¾ãã"
#. Tag: para
-#: session_api.xml:928
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
"not value-types (e.g. categories and items, or parent and child cats). "
@@ -1901,15 +1341,14 @@
"reachability</emphasis> by default."
msgstr ""
"ããã§ã親ã¨åãå¤åã§ãªãã¨ã³ãã£ãã£ã§ããã¨ãã¦åãã·ããªãªãèãã¦ã¿ã¾"
-"ãããã ï¼ä¾ãã°ãã«ãã´ãªã¼ã¨åç®ã®é¢ä¿ã親ã¨åã®ç«ã®é¢ä¿ã§ããï¼ ã¨ã³ãã£"
-"ãã£ã¯ãããèªèº«ãã©ã¤ããµã¤ã¯ã«ãæã¡ãåç
§ã®å
±æããµãã¼ããã¾ãã ï¼ãã®ã"
-"ããã³ã¬ã¯ã·ã§ã³ããã¨ã³ãã£ãã£ãåé¤ãããã¨ã¯ã ã¨ã³ãã£ãã£èªèº«ã®åé¤ãæ"
-"å³ãã¾ãããï¼ ã¾ããã¨ã³ãã£ãã£ã¯ãããã©ã«ãã§ã¯ãé¢é£ããä»ã®ã¨ã³ãã£ãã£"
-"ã¸ ç¶æ
ãã«ã¹ã±ã¼ããããã¨ã¯ããã¾ããã Hibernate㯠<emphasis>å°éå¯è½æ§ã«"
+"ããããï¼ä¾ãã°ãã«ãã´ãªã¼ã¨åç®ã®é¢ä¿ã親ã¨åã®ç«ã®é¢ä¿ã§ããï¼ã¨ã³ãã£"
+"ãã£ã¯ãããèªèº«ãã©ã¤ããµã¤ã¯ã«ãæã¡ãåç
§ã®å
±æããµãã¼ããã¾ããï¼ãã®ã"
+"ããã³ã¬ã¯ã·ã§ã³ããã¨ã³ãã£ãã£ãåé¤ãããã¨ã¯ãã¨ã³ãã£ãã£èªèº«ã®åé¤ãæ"
+"å³ãã¾ãããï¼ã¾ããã¨ã³ãã£ãã£ã¯ãããã©ã«ãã§ã¯ãé¢é£ããä»ã®ã¨ã³ãã£ãã£"
+"ã¸ç¶æ
ãã«ã¹ã±ã¼ããããã¨ã¯ããã¾ããã Hibernate 㯠<emphasis>å°éå¯è½æ§ã«"
"ããæ°¸ç¶å</emphasis> ãããã©ã«ãã§ã¯å®è¡ãã¾ããã"
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -1920,49 +1359,33 @@
"operation to be cascaded along an association, you must indicate that in the "
"mapping document. For example:"
msgstr ""
-"Hibernateã®Sessionã®åºæ¬æä½ï¼ <literal>persist(), merge(), saveOrUpdate(), "
-"delete(), lock(), refresh(), evict(), replicate()</literal> ãå«ã¾ãã¾ãï¼ã«"
-"対ãã¦ã ããããã«å¯¾å¿ããã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ãããã¾ãã ããããã®ã«ã¹ã±ã¼"
-"ãã¹ã¿ã¤ã«ã«ã¯ã <literal>create, merge, save-update, delete, lock, refresh, "
-"evict, replicate</literal> ã¨ããååãã¤ãã¦ãã¾ãã ãããé¢é£ã«æ²¿ã£ã¦ã«ã¹"
-"ã±ã¼ãããããæä½ããããªãããããã³ã°ãã¡ã¤ã«ã«ããæå®ããªããã°ãªãã¾ã"
-"ãã ä¾ãã°ã以ä¸ã®ããã«ãã¾ãã"
+"Hibernate ã® Session ã®åºæ¬æä½ï¼ <literal>persist(), merge(), saveOrUpdate"
+"(), delete(), lock(), refresh(), evict(), replicate()</literal> ãå«ã¾ãã¾"
+"ãï¼ã«å¯¾ãã¦ãããããã«å¯¾å¿ããã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ãããã¾ããããããã®ã«ã¹"
+"ã±ã¼ãã¹ã¿ã¤ã«ã«ã¯ã <literal>create, merge, save-update, delete, lock, "
+"refresh, evict, replicate</literal> ã¨ããååãã¤ãã¦ãã¾ãããããé¢é£ã«"
+"沿ã£ã¦ã«ã¹ã±ã¼ãããããæä½ããããªãããããã³ã°ãã¡ã¤ã«ã«ããæå®ããªãã"
+"ã°ãªãã¾ãããä¾ãã°ã以ä¸ã®ããã«ãã¾ã:"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
-msgstr "ã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ã¯ãçµã¿åããããã¨ãã§ãã¾ãã"
+msgstr "ã«ã¹ã±ã¼ãã¹ã¿ã¤ã«ã¯ãçµã¿åããããã¨ãã§ãã¾ã:"
-#. Tag: programlisting
-#: session_api.xml:952
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:954
-#, fuzzy, no-c-format
-msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
"<emphasis>all</emphasis> operations should be cascaded along the "
"association. The default <literal>cascade=\"none\"</literal> specifies that "
"no operations are to be cascaded."
msgstr ""
"<emphasis>ãã¹ã¦ã®</emphasis> æä½ãé¢é£ã«æ²¿ã£ã¦ã«ã¹ã±ã¼ãããããæå®ããã¨"
-"ãã¯ã <literal>cascade=\"all\"</literal> ã使ãã¾ãã ããã©ã«ãã® "
+"ãã¯ã <literal>cascade=\"all\"</literal> ã使ãã¾ããããã©ã«ãã® "
"<literal>cascade=\"none\"</literal> ã¯ãã©ã®æä½ãã«ã¹ã±ã¼ãããªããã¨ãæå³"
"ãã¾ãã"
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -1971,18 +1394,16 @@
"association."
msgstr ""
"ç¹æ®ãªã«ã¹ã±ã¼ãã¹ã¿ã¤ã« <literal>delete-orphan</literal> ã¯ãä¸å¯¾å¤é¢é£ã«ã "
-"ã é©ç¨ã§ãã¾ãã ããã¯ãé¢é£ããåé¤ãããåä¾ã®ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã "
+"ãé©ç¨ã§ãã¾ããããã¯ãé¢é£ããåé¤ãããåä¾ã®ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã "
"<literal>delete()</literal> æä½ãé©ç¨ããããã¨ãæå³ãã¾ãã"
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
msgstr "ããããï¼"
#. Tag: para
-#: session_api.xml:973
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
"one></literal> or <literal><many-to-many></literal> association. "
@@ -1990,12 +1411,11 @@
"<literal><one-to-many></literal> associations."
msgstr ""
"æ®éã <literal><many-to-one></literal> ã <literal><many-to-"
-"many></literal> é¢é£ã«å¯¾ãã¦ã¯ã ã«ã¹ã±ã¼ããè¨å®ããæå³ã¯ããã¾ããã "
+"many></literal> é¢é£ã«å¯¾ãã¦ã¯ãã«ã¹ã±ã¼ããè¨å®ããæå³ã¯ããã¾ããã "
"<literal><one-to-one></literal> 㨠<literal><one-to-many></"
-"literal> é¢é£ã«å¯¾ãã¦ã¯ã ã«ã¹ã±ã¼ããå½¹ã«ç«ã¤ãã¨ãããã¾ãã"
+"literal> é¢é£ã«å¯¾ãã¦ã¯ãã«ã¹ã±ã¼ããå½¹ã«ç«ã¤ãã¨ãããã¾ãã"
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2003,11 +1423,10 @@
"<literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
"åä¾ãªãã¸ã§ã¯ãã®å¯¿å½ã親ãªãã¸ã§ã¯ãã®å¯¿å½ã«å¶éãåãããªãã°ã "
-"<literal>cascade=\"all,delete-orphan\"</literal> ãæå®ãã åä¾ãªãã¸ã§ã¯ã"
+"<literal>cascade=\"all,delete-orphan\"</literal> ãæå®ããåä¾ãªãã¸ã§ã¯ã"
"ã <emphasis>ã©ã¤ããµã¤ã¯ã«ãªãã¸ã§ã¯ã</emphasis> ã«ãã¾ãã"
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2015,13 +1434,12 @@
"transaction, and you want to save yourself some typing, consider using "
"<literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
-". ãã以å¤ã®å ´åã¯ãã«ã¹ã±ã¼ãã¯ã»ã¨ãã©å¿
è¦ãªãã§ãããã ããããåããã©ã³"
-"ã¶ã¯ã·ã§ã³ã®ãªãã§è¦ªã¨åãä¸ç·ã«åä½ãããã¨ãå¤ãã¨æãã ããããã®ã³ã¼ãã"
-"æ¸ãæéãçãããã®ã§ããã°ã <literal>cascade=\"persist,merge,save-update"
-"\"</literal> ã使ããã¨ãèãã¾ãããã"
+"ãã以å¤ã®å ´åã¯ãã«ã¹ã±ã¼ãã¯ã»ã¨ãã©å¿
è¦ãªãã§ããããããããåããã©ã³ã¶"
+"ã¯ã·ã§ã³ã®ãªãã§è¦ªã¨åãä¸ç·ã«åä½ãããã¨ãå¤ãã¨æããããããã®ã³ã¼ããæ¸"
+"ãæéãçãããã®ã§ããã°ã <literal>cascade=\"persist,merge,save-update\"</"
+"literal> ã使ããã¨ãèãã¾ãããã"
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2030,12 +1448,11 @@
"delete of the parent results in save/update/delete of the child or children."
msgstr ""
"<literal>cascade=\"all\"</literal> ã§ãããã³ã°ããé¢é£ï¼åå¤é¢é£ãã³ã¬ã¯ã·ã§"
-"ã³ï¼ã¯ã <emphasis>親å</emphasis> ã¹ã¿ã¤ã«ã®é¢é£ã¨ãã¼ã¯ããã¾ãã ããã¯ã"
-"親ã®ã»ã¼ã/æ´æ°/åé¤ããåã®ã»ã¼ã/æ´æ°/åé¤ãå¼ãèµ·ããé¢ä¿ã®ãã¨ã§ãã"
+"ã³ï¼ã¯ã <emphasis>親å</emphasis> ã¹ã¿ã¤ã«ã®é¢é£ã¨ãã¼ã¯ããã¾ããããã¯ã親"
+"ã®ã»ã¼ã/æ´æ°/åé¤ããåã®ã»ã¼ã/æ´æ°/åé¤ãå¼ãèµ·ããé¢ä¿ã®ãã¨ã§ãã"
#. Tag: para
-#: session_api.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
"result in save/update of the child. This metaphor is incomplete, however. A "
@@ -2046,34 +1463,31 @@
"relationship are as follows:"
msgstr ""
"ããã«ãæ°¸ç¶åããã親ãåãåã«åç
§ãã¦ããã ãã§ãåã®ã»ã¼ã/æ´æ°ãå¼ãèµ·ã"
-"ãã¾ãã ãããããã®ã¡ã¿ãã¡ã¼ã¯ä¸å®å
¨ã§ãã親ããåç
§ãããªããªã£ãåã¯ãèª"
-"åçã«åé¤ <emphasis>ããã¾ãã</emphasis> ã ãã ãã <literal>cascade="
+"ãã¾ãããããããã®ã¡ã¿ãã¡ã¼ã¯ä¸å®å
¨ã§ãã親ããåç
§ãããªããªã£ãåã¯ãèª"
+"åçã«åé¤ <emphasis>ããã¾ãã</emphasis> ããã ãã <literal>cascade="
"\"delete-orphan\"</literal> ã§ãããã³ã°ããã <literal><one-to-many></"
-"literal> é¢é£ã é¤ãã¦ã§ãã 親åé¢ä¿ã®ã«ã¹ã±ã¼ãæä½ã®æ£ç¢ºãªæå³ã¯ä»¥ä¸ã®ãã"
-"ã«ãªãã¾ãã"
+"literal> é¢é£ãé¤ãã¦ã§ãã親åé¢ä¿ã®ã«ã¹ã±ã¼ãæä½ã®æ£ç¢ºãªæå³ã¯ä»¥ä¸ã®ããã«"
+"ãªãã¾ã:"
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
"passed to <literal>persist()</literal>"
msgstr ""
-"親ã <literal>persist()</literal> ã«æ¸¡ããããªãã°ã ãã¹ã¦ã®å㯠"
+"親ã <literal>persist()</literal> ã«æ¸¡ããããªãã°ããã¹ã¦ã®å㯠"
"<literal>persist()</literal> ã«æ¸¡ããã¾ãã"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
"to <literal>merge()</literal>"
msgstr ""
-"<literal>merge()</literal> ã«æ¸¡ããããªãã°ã ãã¹ã¦ã®å㯠<literal>merge()</"
+"<literal>merge()</literal> ã«æ¸¡ããããªãã°ããã¹ã¦ã®å㯠<literal>merge()</"
"literal> ã«æ¸¡ããã¾ãã"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2085,17 +1499,15 @@
"<literal>saveOrUpdate()</literal> ã«æ¸¡ããã¾ãã"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
"it is passed to <literal>saveOrUpdate()</literal>"
msgstr ""
-"䏿çã¾ãã¯åé¢ç¶æ
ã®åããæ°¸ç¶åããã親ã«åç
§ããããªãã°ã "
+"transient ã¾ã㯠detached ã®åããæ°¸ç¶åããã親ã«åç
§ããããªãã°ã "
"<literal>saveOrUpdate()</literal> ã«æ¸¡ããã¾ãã"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2105,7 +1517,6 @@
"ãã"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2114,13 +1525,12 @@
"case the \"orphaned\" child is deleted."
msgstr ""
"åãæ°¸ç¶åããã親ããåç
§ãããªããªã£ãã¨ãã¯ã <emphasis>ç¹ã«ä½ãèµ·ããã¾ã"
-"ã</emphasis> ã ãã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ãå¿
è¦ã§ããã°ãæç¤ºçã«åé¤ããå¿
è¦"
-"ãããã¾ãã ãã ãã <literal>cascade=\"delete-orphan\"</literal> ã®å ´åãé¤"
-"ãã¾ãã ãã®å ´åãã親ã®ãªããåã¯åé¤ããã¾ãã"
+"ã</emphasis> ããã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ãå¿
è¦ã§ããã°ãæç¤ºçã«åé¤ããå¿
è¦"
+"ãããã¾ãããã ãã <literal>cascade=\"delete-orphan\"</literal> ã®å ´åãé¤"
+"ãã¾ãããã®å ´åãã親ã®ãªããåã¯åé¤ããã¾ãã"
#. Tag: para
-#: session_api.xml:1051
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
@@ -2131,21 +1541,19 @@
msgstr ""
"æå¾ã«ãæä½ã®ã«ã¹ã±ã¼ãããªãã¸ã§ã¯ãã°ã©ãã«é©ç¨ãããã®ã¯ã <emphasis>ã³ã¼"
"ã«ããæ</emphasis> ãããã¯ã <emphasis>flushããæ</emphasis> ã§ãããã¨ã«"
-"注æãã¦ãã ããã ãã¹ã¦ã®æä½ã¯ããã®æä½ãå®è¡ãããã¨ãã«ãå°éå¯è½ãªé¢é£"
-"ããã¨ã³ãã£ãã£ã«å¯¾ã㦠ã«ã¹ã±ã¼ããå¯è½ãªãã«ã¹ã±ã¼ããã¾ãã ãããã "
+"注æãã¦ãã ããããã¹ã¦ã®æä½ã¯ããã®æä½ãå®è¡ãããã¨ãã«ãå°éå¯è½ãªé¢é£"
+"ããã¨ã³ãã£ãã£ã«å¯¾ãã¦ã«ã¹ã±ã¼ããå¯è½ãªãã«ã¹ã±ã¼ããã¾ãããããã "
"<literal>save-upate</literal> 㨠<literal>delete-orphan</literal> ã¯ã "
-"<literal>Session</literal> ãflushãã¦ããéã«ã ãã¹ã¦ã®å°éå¯è½ãªé¢é£ããã¨"
-"ã³ãã£ãã£ã«ä¼æãã¾ãã"
+"<literal>Session</literal> ã flush ãã¦ããéã«ããã¹ã¦ã®å°éå¯è½ãªé¢é£ãã"
+"ã¨ã³ãã£ãã£ã«ä¼æãã¾ãã"
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr "ã¡ã¿ãã¼ã¿ã®ä½¿ç¨"
#. Tag: para
-#: session_api.xml:1065
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
"This model can be useful to the application itself. For example, the "
@@ -2154,63 +1562,671 @@
"value types) and which objects that should not (e.g. immutable value types "
"and, possibly, associated entities)."
msgstr ""
-"Hibernateã¯ããã¹ã¦ã®ã¨ã³ãã£ãã£ã¨å¤åã®é常ã«ãªãããªã¡ã¿ã¬ãã«ã®ã¢ãã«ãå¿
"
-"è¦ã¨ãã¾ãã ã¨ãã©ãããã®ã¢ãã«ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ã¨ã¦ãå½¹ã«ç«ã¡ã¾"
-"ãã ä¾ãã°ãã¢ããªã±ã¼ã·ã§ã³ã¯ãHibernateã®ã¡ã¿ãã¼ã¿ã使ã£ã¦ã\"è³¢ã\" "
-"ãã£ã¼ãã³ãã¼ã¢ã«ã´ãªãºã ã å®è£
ã§ãããããã¾ããããã®ã¢ã«ã´ãªãºã ã¨ã¯ãã©"
-"ã®ãªãã¸ã§ã¯ããã³ãã¼ãããã¹ããï¼ä¾ï¼å¯å¤ã®å¤åï¼ã ã©ã®ãªãã¸ã§ã¯ãã¯ã³"
-"ãã¼ãããªãã¹ããï¼ä¾ï¼ä¸å¤ãªå¤åãå¯è½ãªãé¢é£ããã¨ã³ãã£ãã£ï¼ã 夿ã§ã"
+"Hibernate ã¯ããã¹ã¦ã®ã¨ã³ãã£ãã£ã¨å¤åã®é常ã«ãªãããªã¡ã¿ã¬ãã«ã®ã¢ãã«ã"
+"å¿
è¦ã¨ãã¾ããã¨ãã©ãããã®ã¢ãã«ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ã¨ã¦ãå½¹ã«ç«ã¡ã¾"
+"ããä¾ãã°ãã¢ããªã±ã¼ã·ã§ã³ã¯ã Hibernate ã®ã¡ã¿ãã¼ã¿ã使ã£ã¦ããè³¢ãã"
+"ãã£ã¼ãã³ãã¼ã¢ã«ã´ãªãºã ãå®è£
ã§ãããããã¾ããããã®ã¢ã«ã´ãªãºã ã¨ã¯ãã©"
+"ã®ãªãã¸ã§ã¯ããã³ãã¼ãããã¹ããï¼ä¾ï¼å¯å¤ã®å¤åï¼ãã©ã®ãªãã¸ã§ã¯ãã¯ã³"
+"ãã¼ãããªãã¹ããï¼ä¾ï¼ä¸å¤ãªå¤åãå¯è½ãªãé¢é£ããã¨ã³ãã£ãã£ï¼ã夿ã§ã"
"ããã®ã§ãã"
#. Tag: para
-#: session_api.xml:1072
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
"<literal>CollectionMetadata</literal> interfaces and the <literal>Type</"
"literal> hierarchy. Instances of the metadata interfaces can be obtained "
"from the <literal>SessionFactory</literal>."
msgstr ""
-"Hibernateã¯<literal>ClassMetadata</literal> ã¨<literal>CollectionMetadata</"
-"literal> ã¤ã³ã¿ãã§ã¼ã¹ã¨ <literal>Type</literal> é層ãéãã¦ã¡ã¿ãã¼ã¿ãå
¬"
-"éãã¾ãã ã¡ã¿ãã¼ã¿ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã "
-"<literal>SessionFactory</literal> ããå¾ããã¾ãã"
+"Hibernate 㯠<literal>ClassMetadata</literal> 㨠"
+"<literal>CollectionMetadata</literal> ã¤ã³ã¿ãã§ã¼ã¹ã¨ <literal>Type</"
+"literal> é層ãéãã¦ã¡ã¿ãã¼ã¿ãå
¬éãã¾ããã¡ã¿ãã¼ã¿ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ã¤ã³"
+"ã¹ã¿ã³ã¹ã¯ã <literal>SessionFactory</literal> ããå¾ããã¾ãã"
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DomesticCat fritz = new DomesticCat();\n"
+#~ "fritz.setColor(Color.GINGER);\n"
+#~ "fritz.setSex('M');\n"
+#~ "fritz.setName(\"Fritz\");\n"
+#~ "Long generatedId = (Long) sess.save(fritz);]]>"
+#~ msgstr ""
+#~ "DomesticCat fritz = new DomesticCat();\n"
+#~ "fritz.setColor(Color.GINGER);\n"
+#~ "fritz.setSex('M');\n"
+#~ "fritz.setName(\"Fritz\");\n"
+#~ "Long generatedId = (Long) sess.save(fritz);"
-#~ msgid "UPDATE"
-#~ msgstr "UPDATE"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DomesticCat pk = new DomesticCat();\n"
+#~ "pk.setColor(Color.TABBY);\n"
+#~ "pk.setSex('F');\n"
+#~ "pk.setName(\"PK\");\n"
+#~ "pk.setKittens( new HashSet() );\n"
+#~ "pk.addKitten(fritz);\n"
+#~ "sess.save( pk, new Long(1234) );]]>"
+#~ msgstr ""
+#~ "DomesticCat pk = new DomesticCat();\n"
+#~ "pk.setColor(Color.TABBY);\n"
+#~ "pk.setSex('F');\n"
+#~ "pk.setName(\"PK\");\n"
+#~ "pk.setKittens( new HashSet() );\n"
+#~ "pk.addKitten(fritz);\n"
+#~ "sess.save( pk, new Long(1234) );"
-#~ msgid "DELETE"
-#~ msgstr "DELETE"
+#, fuzzy
+#~ msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
+#~ msgstr "Cat fritz = (Cat) sess.load(Cat.class, generatedId);"
-#~ msgid "state management"
-#~ msgstr "ç¶æ
管ç"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// you need to wrap primitive identifiers\n"
+#~ "long id = 1234;\n"
+#~ "DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
+#~ "(id) );]]>"
+#~ msgstr ""
+#~ "// you need to wrap primitive identifiers\n"
+#~ "long id = 1234;\n"
+#~ "DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
+#~ "(id) );"
-#~ msgid "statements"
-#~ msgstr "æ"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "// load pk's state into cat\n"
+#~ "sess.load( cat, new Long(pkId) );\n"
+#~ "Set kittens = cat.getKittens();]]>"
+#~ msgstr ""
+#~ "Cat cat = new DomesticCat();\n"
+#~ "// load pk's state into cat\n"
+#~ "sess.load( cat, new Long(pkId) );\n"
+#~ "Set kittens = cat.getKittens();"
-#~ msgid "Connection"
-#~ msgstr "session.connection()"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
+#~ "if (cat==null) {\n"
+#~ " cat = new Cat();\n"
+#~ " sess.save(cat, id);\n"
+#~ "}\n"
+#~ "return cat;]]>"
+#~ msgstr ""
+#~ "Cat cat = (Cat) sess.get(Cat.class, id);\n"
+#~ "if (cat==null) {\n"
+#~ " cat = new Cat();\n"
+#~ " sess.save(cat, id);\n"
+#~ "}\n"
+#~ "return cat;"
-#~ msgid "session.connection()"
-#~ msgstr "Connection"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
+#~ msgstr "Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.save(cat);\n"
+#~ "sess.flush(); //force the SQL INSERT\n"
+#~ "sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
+#~ msgstr ""
+#~ "sess.save(cat);\n"
+#~ "sess.flush(); //force the SQL INSERT\n"
+#~ "sess.refresh(cat); //re-read the state (after the trigger executes)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.birthdate < ?\")\n"
+#~ " .setDate(0, date)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List mothers = session.createQuery(\n"
+#~ " \"select mother from Cat as cat join cat.mother as mother where cat."
+#~ "name = ?\")\n"
+#~ " .setString(0, name)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List kittens = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.mother = ?\")\n"
+#~ " .setEntity(0, pk)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "Cat mother = (Cat) session.createQuery(\n"
+#~ " \"select cat.mother from Cat as cat where cat = ?\")\n"
+#~ " .setEntity(0, izi)\n"
+#~ " .uniqueResult();]]\n"
+#~ "\n"
+#~ "Query mothersWithKittens = (Cat) session.createQuery(\n"
+#~ " \"select mother from Cat as mother left join fetch mother.kittens"
+#~ "\");\n"
+#~ "Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
+#~ msgstr ""
+#~ "List cats = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.birthdate < ?\")\n"
+#~ " .setDate(0, date)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List mothers = session.createQuery(\n"
+#~ " \"select mother from Cat as cat join cat.mother as mother where cat."
+#~ "name = ?\")\n"
+#~ " .setString(0, name)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List kittens = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.mother = ?\")\n"
+#~ " .setEntity(0, pk)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "Cat mother = (Cat) session.createQuery(\n"
+#~ " \"select cat.mother from Cat as cat where cat = ?\")\n"
+#~ " .setEntity(0, izi)\n"
+#~ " .uniqueResult();]]\n"
+#~ "\n"
+#~ "Query mothersWithKittens = (Cat) session.createQuery(\n"
+#~ " \"select mother from Cat as mother left join fetch mother.kittens"
+#~ "\");\n"
+#~ "Set uniqueMothers = new HashSet(mothersWithKittens.list());"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// fetch ids\n"
+#~ "Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
+#~ "iterate();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Qux qux = (Qux) iter.next(); // fetch the object\n"
+#~ " // something we couldnt express in the query\n"
+#~ " if ( qux.calculateComplicatedAlgorithm() ) {\n"
+#~ " // delete the current instance\n"
+#~ " iter.remove();\n"
+#~ " // dont need to process the rest\n"
+#~ " break;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "// fetch ids\n"
+#~ "Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
+#~ "iterate();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Qux qux = (Qux) iter.next(); // fetch the object\n"
+#~ " // something we couldnt express in the query\n"
+#~ " if ( qux.calculateComplicatedAlgorithm() ) {\n"
+#~ " // delete the current instance\n"
+#~ " iter.remove();\n"
+#~ " // dont need to process the rest\n"
+#~ " break;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
+#~ " \"select kitten, mother from Cat kitten join kitten.mother "
+#~ "mother\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( kittensAndMothers.hasNext() ) {\n"
+#~ " Object[] tuple = (Object[]) kittensAndMothers.next();\n"
+#~ " Cat kitten = (Cat) tuple[0];\n"
+#~ " Cat mother = (Cat) tuple[1];\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "Iterator kittensAndMothers = sess.createQuery(\n"
+#~ " \"select kitten, mother from Cat kitten join kitten.mother "
+#~ "mother\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( kittensAndMothers.hasNext() ) {\n"
+#~ " Object[] tuple = (Object[]) kittensAndMothers.next();\n"
+#~ " Cat kitten = tuple[0];\n"
+#~ " Cat mother = tuple[1];\n"
+#~ " ....\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Iterator results = sess.createQuery(\n"
+#~ " \"select cat.color, min(cat.birthdate), count(cat) from Cat cat "
+#~ "\" +\n"
+#~ " \"group by cat.color\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( results.hasNext() ) {\n"
+#~ " Object[] row = (Object[]) results.next();\n"
+#~ " Color type = (Color) row[0];\n"
+#~ " Date oldest = (Date) row[1];\n"
+#~ " Integer count = (Integer) row[2];\n"
+#~ " .....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "Iterator results = sess.createQuery(\n"
+#~ " \"select cat.color, min(cat.birthdate), count(cat) from Cat cat "
+#~ "\" +\n"
+#~ " \"group by cat.color\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( results.hasNext() ) {\n"
+#~ " Object[] row = (Object[]) results.next();\n"
+#~ " Color type = (Color) row[0];\n"
+#~ " Date oldest = (Date) row[1];\n"
+#~ " Integer count = (Integer) row[2];\n"
+#~ " .....\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[//named parameter (preferred)\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
+#~ "\");\n"
+#~ "q.setString(\"name\", \"Fritz\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+#~ msgstr ""
+#~ "//named parameter (preferred)\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
+#~ "\");\n"
+#~ "q.setString(\"name\", \"Fritz\");\n"
+#~ "Iterator cats = q.iterate();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[//positional parameter\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
+#~ "q.setString(0, \"Izi\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+#~ msgstr ""
+#~ "//positional parameter\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
+#~ "q.setString(0, \"Izi\");\n"
+#~ "Iterator cats = q.iterate();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[//named parameter list\n"
+#~ "List names = new ArrayList();\n"
+#~ "names.add(\"Izi\");\n"
+#~ "names.add(\"Fritz\");\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
+#~ "namesList)\");\n"
+#~ "q.setParameterList(\"namesList\", names);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "//named parameter list\n"
+#~ "List names = new ArrayList();\n"
+#~ "names.add(\"Izi\");\n"
+#~ "names.add(\"Fritz\");\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
+#~ "namesList)\");\n"
+#~ "q.setParameterList(\"namesList\", names);\n"
+#~ "List cats = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
+#~ "q.setFirstResult(20);\n"
+#~ "q.setMaxResults(10);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = sess.createQuery(\"from DomesticCat cat\");\n"
+#~ "q.setFirstResult(20);\n"
+#~ "q.setMaxResults(10);\n"
+#~ "List cats = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from "
+#~ "DomesticCat cat \" +\n"
+#~ " \"order by cat.name\");\n"
+#~ "ScrollableResults cats = q.scroll();\n"
+#~ "if ( cats.first() ) {\n"
+#~ "\n"
+#~ " // find the first name on each page of an alphabetical list of cats "
+#~ "by name\n"
+#~ " firstNamesOfPages = new ArrayList();\n"
+#~ " do {\n"
+#~ " String name = cats.getString(0);\n"
+#~ " firstNamesOfPages.add(name);\n"
+#~ " }\n"
+#~ " while ( cats.scroll(PAGE_SIZE) );\n"
+#~ "\n"
+#~ " // Now get the first page of cats\n"
+#~ " pageOfCats = new ArrayList();\n"
+#~ " cats.beforeFirst();\n"
+#~ " int i=0;\n"
+#~ " while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
+#~ "(1) );\n"
+#~ "\n"
+#~ "}\n"
+#~ "cats.close()]]>"
+#~ msgstr ""
+#~ "Query q = sess.createQuery(\"select cat.name, cat from DomesticCat cat \" "
+#~ "+\n"
+#~ " \"order by cat.name\");\n"
+#~ "ScrollableResults cats = q.scroll();\n"
+#~ "if ( cats.first() ) {\n"
+#~ "\n"
+#~ " // find the first name on each page of an alphabetical list of cats "
+#~ "by name\n"
+#~ " firstNamesOfPages = new ArrayList();\n"
+#~ " do {\n"
+#~ " String name = cats.getString(0);\n"
+#~ " firstNamesOfPages.add(name);\n"
+#~ " }\n"
+#~ " while ( cats.scroll(PAGE_SIZE) );\n"
+#~ "\n"
+#~ " // Now get the first page of cats\n"
+#~ " pageOfCats = new ArrayList();\n"
+#~ " cats.beforeFirst();\n"
+#~ " int i=0;\n"
+#~ " while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add"
+#~ "( cats.get(1) );\n"
+#~ "\n"
+#~ "}\n"
+#~ "cats.close()"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
+#~ " from eg.DomesticCat as cat\n"
+#~ " where cat.name = ?\n"
+#~ " and cat.weight > ?\n"
+#~ "] ]></query>]]>"
+#~ msgstr ""
+#~ "<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
+#~ " from eg.DomesticCat as cat\n"
+#~ " where cat.name = ?\n"
+#~ " and cat.weight > ?\n"
+#~ "] ]></query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
+#~ "q.setString(0, name);\n"
+#~ "q.setInt(1, minWeight);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
+#~ "q.setString(0, name);\n"
+#~ "q.setInt(1, minWeight);\n"
+#~ "List cats = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Collection blackKittens = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"where this.color = ?\")\n"
+#~ " .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
+#~ " .list()\n"
+#~ ");]]>"
+#~ msgstr ""
+#~ "Collection blackKittens = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"where this.color = ?\")\n"
+#~ " .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
+#~ " .list()\n"
+#~ ");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Collection blackKittenMates = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Collection blackKittenMates = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Collection tenKittens = session.createFilter(\n"
+#~ " mother.getKittens(), \"\")\n"
+#~ " .setFirstResult(0).setMaxResults(10)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Collection tenKittens = session.createFilter(\n"
+#~ " mother.getKittens(), \"\")\n"
+#~ " .setFirstResult(0).setMaxResults(10)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
+#~ "crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
+#~ "crit.setMaxResults(10);\n"
+#~ "List cats = crit.list();]]>"
+#~ msgstr ""
+#~ "Criteria crit = session.createCriteria(Cat.class);\n"
+#~ "crit.add( Expression.eq( \"color\", eg.Color.BLACK ) );\n"
+#~ "crit.setMaxResults(10);\n"
+#~ "List cats = crit.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT "
+#~ "{cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list();]]>"
+#~ msgstr ""
+#~ "List cats = session.createSQLQuery(\n"
+#~ " \"SELECT {cat.*} FROM CAT {cat} WHERE ROWNUM<10\",\n"
+#~ " \"cat\",\n"
+#~ " Cat.class\n"
+#~ ").list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\n"
+#~ " \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
+#~ " \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... "
+#~ "\" +\n"
+#~ " \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list()]]>"
+#~ msgstr ""
+#~ "List cats = session.createSQLQuery(\n"
+#~ " \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
+#~ " \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... "
+#~ "\" +\n"
+#~ " \"FROM CAT {cat} WHERE ROWNUM<10\",\n"
+#~ " \"cat\",\n"
+#~ " Cat.class\n"
+#~ ").list()"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
+#~ "(69) );\n"
+#~ "cat.setName(\"PK\");\n"
+#~ "sess.flush(); // changes to cat are automatically detected and "
+#~ "persisted]]>"
+#~ msgstr ""
+#~ "DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long(69) );\n"
+#~ "cat.setName(\"PK\");\n"
+#~ "sess.flush(); // changes to cat are automatically detected and persisted"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
+#~ "Cat potentialMate = new Cat();\n"
+#~ "firstSession.save(potentialMate);\n"
+#~ "\n"
+#~ "// in a higher layer of the application\n"
+#~ "cat.setMate(potentialMate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.update(cat); // update cat\n"
+#~ "secondSession.update(mate); // update mate]]>"
+#~ msgstr ""
+#~ "// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
+#~ "Cat potentialMate = new Cat();\n"
+#~ "firstSession.save(potentialMate);\n"
+#~ "\n"
+#~ "// in a higher layer of the application\n"
+#~ "cat.setMate(potentialMate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.update(cat); // update cat\n"
+#~ "secondSession.update(mate); // update mate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[//just reassociate:\n"
+#~ "sess.lock(fritz, LockMode.NONE);\n"
+#~ "//do a version check, then reassociate:\n"
+#~ "sess.lock(izi, LockMode.READ);\n"
+#~ "//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
+#~ "sess.lock(pk, LockMode.UPGRADE);]]>"
+#~ msgstr ""
+#~ "//just reassociate:\n"
+#~ "sess.lock(fritz, LockMode.NONE);\n"
+#~ "//do a version check, then reassociate:\n"
+#~ "sess.lock(izi, LockMode.READ);\n"
+#~ "//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
+#~ "sess.lock(pk, LockMode.UPGRADE);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
+#~ "\n"
+#~ "// in a higher tier of the application\n"
+#~ "Cat mate = new Cat();\n"
+#~ "cat.setMate(mate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.saveOrUpdate(cat); // update existing state (cat has a "
+#~ "non-null id)\n"
+#~ "secondSession.saveOrUpdate(mate); // save the new instance (mate has a "
+#~ "null id)]]>"
+#~ msgstr ""
+#~ "// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
+#~ "\n"
+#~ "// in a higher tier of the application\n"
+#~ "Cat mate = new Cat();\n"
+#~ "cat.setMate(mate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.saveOrUpdate(cat); // update existing state (cat has a "
+#~ "non-null id)\n"
+#~ "secondSession.saveOrUpdate(mate); // save the new instance (mate has a "
+#~ "null id)"
+
+#, fuzzy
+#~ msgid "<![CDATA[sess.delete(cat);]]>"
+#~ msgstr "sess.delete(cat);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[//retrieve a cat from one database\n"
+#~ "Session session1 = factory1.openSession();\n"
+#~ "Transaction tx1 = session1.beginTransaction();\n"
+#~ "Cat cat = session1.get(Cat.class, catId);\n"
+#~ "tx1.commit();\n"
+#~ "session1.close();\n"
+#~ "\n"
+#~ "//reconcile with a second database\n"
+#~ "Session session2 = factory2.openSession();\n"
+#~ "Transaction tx2 = session2.beginTransaction();\n"
+#~ "session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
+#~ "tx2.commit();\n"
+#~ "session2.close();]]>"
+#~ msgstr ""
+#~ "//retrieve a cat from one database\n"
+#~ "Session session1 = factory1.openSession();\n"
+#~ "Transaction tx1 = session1.beginTransaction();\n"
+#~ "Cat cat = session1.get(Cat.class, catId);\n"
+#~ "tx1.commit();\n"
+#~ "session1.close();\n"
+#~ "\n"
+#~ "//reconcile with a second database\n"
+#~ "Session session2 = factory2.openSession();\n"
+#~ "Transaction tx2 = session2.beginTransaction();\n"
+#~ "session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
+#~ "tx2.commit();\n"
+#~ "session2.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess = sf.openSession();\n"
+#~ "Transaction tx = sess.beginTransaction();\n"
+#~ "sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale "
+#~ "state\n"
+#~ "\n"
+#~ "Cat izi = (Cat) sess.load(Cat.class, id);\n"
+#~ "izi.setName(iznizi);\n"
+#~ "\n"
+#~ "// might return stale data\n"
+#~ "sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
+#~ "\n"
+#~ "// change to izi is not flushed!\n"
+#~ "...\n"
+#~ "tx.commit(); // flush occurs\n"
+#~ "sess.close();]]>"
+#~ msgstr ""
+#~ "sess = sf.openSession();\n"
+#~ "Transaction tx = sess.beginTransaction();\n"
+#~ "sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale "
+#~ "state\n"
+#~ "\n"
+#~ "Cat izi = (Cat) sess.load(Cat.class, id);\n"
+#~ "izi.setName(iznizi);\n"
+#~ "\n"
+#~ "// might return stale data\n"
+#~ "sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
+#~ "\n"
+#~ "// change to izi is not flushed!\n"
+#~ "...\n"
+#~ "tx.commit(); // flush occurs\n"
+#~ "sess.close();"
+
+#, fuzzy
+#~ msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
+#~ msgstr "<one-to-one name=\"person\" cascade=\"persist\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
+#~ msgstr "<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat fritz = ......;\n"
+#~ "ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
+#~ "\n"
+#~ "Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
+#~ "String[] propertyNames = catMeta.getPropertyNames();\n"
+#~ "Type[] propertyTypes = catMeta.getPropertyTypes();\n"
+#~ "\n"
+#~ "// get a Map of all properties which are not collections or associations\n"
+#~ "Map namedValues = new HashMap();\n"
+#~ "for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
+#~ "isCollectionType() ) {\n"
+#~ " namedValues.put( propertyNames[i], propertyValues[i] );\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "Cat fritz = ......;\n"
+#~ "ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
+#~ "\n"
+#~ "Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
+#~ "String[] propertyNames = catMeta.getPropertyNames();\n"
+#~ "Type[] propertyTypes = catMeta.getPropertyTypes();\n"
+#~ "\n"
+#~ "// get a Map of all properties which are not collections or associations\n"
+#~ "Map namedValues = new HashMap();\n"
+#~ "for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
+#~ "isCollectionType() ) {\n"
+#~ " namedValues.put( propertyNames[i], propertyValues[i] );\n"
+#~ " }\n"
+#~ "}"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,59 +1,57 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-20 15:00+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
-msgstr "Toolset Guide ãã¼ã«ã»ããã¬ã¤ã"
+msgstr "ãã¼ã«ã»ããã¬ã¤ã"
#. Tag: para
-#: toolset_guide.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
"plugins, commandline tools, and Ant tasks."
msgstr ""
-"Hibernateã使ã£ãã©ã¦ã³ãããªããã¨ã³ã¸ãã¢ãªã³ã°ã¯ã Eclipseãã©ã°ã¤ã³ãã³ã"
-"ã³ãã©ã¤ã³ãã¼ã«ããã¡ããAntã¿ã¹ã¯ã使ããã¨ã§å¯è½ã§ãã"
+"Hibernate ã使ã£ãã©ã¦ã³ãããªããã¨ã³ã¸ãã¢ãªã³ã°ã¯ã Eclipse ãã©ã°ã¤ã³ãã³"
+"ãã³ãã©ã¤ã³ãã¼ã«ããã¡ãã Ant ã¿ã¹ã¯ã使ããã¨ã§å¯è½ã§ãã"
#. Tag: para
-#: toolset_guide.xml:36
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
"databases:"
msgstr ""
"<emphasis>Hibernate Tools</emphasis> ã¯ç¾å¨ãæ¢åãã¼ã¿ãã¼ã¹ã®ãªãã¼ã¹ã¨ã³ã¸"
-"ãã¢ãªã³ã°ã®Antã¿ã¹ã¯ã«å ãã¦ãEclipseIDEã®ãã©ã°ã¤ã³ãå«ã¿ã¾ãã"
+"ãã¢ãªã³ã°ã® Ant ã¿ã¹ã¯ã«å ãã¦ã Eclipse IDE ã®ãã©ã°ã¤ã³ãå«ã¿ã¾ã:"
#. Tag: para
-#: toolset_guide.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
"files that supports auto-completion and syntax highlighting. It also "
"supports semantic auto-completion for class names and property/field names, "
"making it more versatile than a normal XML editor."
msgstr ""
-"<emphasis>ãããã³ã°ã¨ãã£ã¿:</emphasis> Hibernateã®XMLãããã³ã°ãã¡ã¤ã«ç¨ã®"
-"ã¨ãã£ã¿ã§ã èªåè£å®ã¨æ§æå¼·èª¿è¡¨ç¤ºããµãã¼ããã¦ãã¾ããã¯ã©ã¹åãããã"
-"ãã£/ãã£ã¼ã«ãåã«å¯¾ããèªåè£å®ããµãã¼ããã é常ã®XMLã¨ãã£ã¿ãããå¼·åã§"
-"ãã"
+"<emphasis>ãããã³ã°ã¨ãã£ã¿:</emphasis> Hibernate ã® XML ãããã³ã°ãã¡ã¤ã«"
+"ç¨ã®ã¨ãã£ã¿ã§ãèªåè£å®ã¨æ§æå¼·èª¿è¡¨ç¤ºããµãã¼ããã¦ãã¾ããã¯ã©ã¹åãããã"
+"ãã£/ãã£ã¼ã«ãåã«å¯¾ããèªåè£å®ããµãã¼ãããé常㮠XML ã¨ãã£ã¿ãããå¼·å"
+"ã§ãã"
#. Tag: para
-#: toolset_guide.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
"addition to a tree overview of your console configurations, you are also "
@@ -61,14 +59,13 @@
"relationships. The console allows you to execute HQL queries against your "
"database and browse the result directly in Eclipse."
msgstr ""
-"<emphasis>Console:</emphasis> ã³ã³ã½ã¼ã«ã¯ã¨ã¯ãªãã¹ã®æ°ãããã¥ã¼ã§ãã ã³ã³"
+"<emphasis>Console:</emphasis> ã³ã³ã½ã¼ã«ã¯ã¨ã¯ãªãã¹ã®æ°ãããã¥ã¼ã§ããã³ã³"
"ã½ã¼ã«ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ã®ããªã¼ãªã¼ãã¼ãã¥ã¼ã«å ãã¦ãæ°¸ç¶ã¯ã©ã¹ã¨ãã®"
-"é¢é£ã®ç¸äºä½ç¨ãã¥ã¼ãå¾ããã¾ãã ãã¼ã¿ãã¼ã¹ã«HQLãå®è¡ããçµæãç´æ¥ã¨ã¯"
+"é¢é£ã®ç¸äºä½ç¨ãã¥ã¼ãå¾ããã¾ãããã¼ã¿ãã¼ã¹ã« HQL ãå®è¡ããçµæãç´æ¥ã¨ã¯"
"ãªãã¹ä¸ã§è¦ããã¨ãã§ãã¾ãã"
#. Tag: para
-#: toolset_guide.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
"the Hibernate Eclipse tools. You can use a wizard to quickly generate "
@@ -76,16 +73,15 @@
"database schema into POJO source files and Hibernate mapping files. The "
"reverse engineering wizard supports customizable templates."
msgstr ""
-"<emphasis>éçºã¦ã£ã¶ã¼ã</emphasis> Hibernateã®Eclipseãã¼ã«ã¯ããã¤ãã®ã¦ã£"
-"ã¶ã¼ããæä¾ãã¾ãã ã¦ã£ã¶ã¼ãã使ã£ã¦Hibernateã®è¨å®ãã¡ã¤ã«(cfg.xml)ããã°"
-"ããçæãããã æ¢åã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ããPOJOã®ã½ã¼ã¹ãã¡ã¤ã«ã¨Hibernate"
-"ã®ãããã³ã°ãã¡ã¤ã«ã¸ã¨ã å®å
¨ã«ãªãã¼ã¹ã¨ã³ã¸ãã¢ãªã³ã°ãããã¨ãã§ãã¾"
-"ãã ãªãã¼ã¹ã¨ã³ã¸ãã¢ãªã³ã°ã¦ã£ã¶ã¼ãã¯ã«ã¹ã¿ãã¤ãºå¯è½ãªãã³ãã¬ã¼ãããµ"
-"ãã¼ããã¾ãã"
+"<emphasis>éçºã¦ã£ã¶ã¼ã</emphasis> Hibernate ã® Eclipse ãã¼ã«ã¯ããã¤ãã®"
+"ã¦ã£ã¶ã¼ããæä¾ãã¾ããã¦ã£ã¶ã¼ãã使ã£ã¦ Hibernate ã®è¨å®ãã¡ã¤ã« (cfg."
+"xml) ããã°ããçæããããæ¢åã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã POJO ã®ã½ã¼ã¹ãã¡ã¤ã«"
+"㨠Hibernate ã®ãããã³ã°ãã¡ã¤ã«ã¸ã¨ãå®å
¨ã«ãªãã¼ã¹ã¨ã³ã¸ãã¢ãªã³ã°ãããã¨"
+"ãã§ãã¾ãããªãã¼ã¹ã¨ã³ã¸ãã¢ãªã³ã°ã¦ã£ã¶ã¼ãã¯ã«ã¹ã¿ãã¤ãºå¯è½ãªãã³ãã¬ã¼"
+"ãããµãã¼ããã¾ãã"
#. Tag: para
-#: toolset_guide.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
"documentation for more information."
@@ -94,52 +90,47 @@
"ã¡ã³ããåç
§ãã¦ãã ããã"
#. Tag: para
-#: toolset_guide.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even "
"be used from \"inside\" Hibernate."
msgstr ""
-"ããããHibernateã®ã¡ã¤ã³ããã±ã¼ã¸ã¯ <emphasis>SchemaExport</emphasis> ã å¥"
-"å <literal>hbm2ddl</literal> ãå«ã¿ã¾ã(Hibernateå
ã§ãªã³ã¶ãã©ã¤ã§ä½¿ç¨ã§ã"
-"ã¾ã)ã"
+"ãããã Hibernate ã®ã¡ã¤ã³ããã±ã¼ã¸ã¯ <emphasis>SchemaExport</emphasis> ã"
+"å¥å <literal>hbm2ddl</literal> ãå«ã¿ã¾ã(Hibernate ãå
ãã§ãªã³ã¶ãã©ã¤ã§ä½¿"
+"ç¨ã§ãã¾ã)ã"
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
msgstr "ã¹ãã¼ãã®èªåçæ"
#. Tag: para
-#: toolset_guide.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
"generated schema includes referential integrity constraints, primary and "
"foreign keys, for entity and collection tables. Tables and sequences are "
"also created for mapped identifier generators."
msgstr ""
-"DDLã¯Hibernateã¦ã¼ãã£ãªãã£ã«ãããããã³ã°ãã¡ã¤ã«ããçæãããã¨ãã§ãã¾"
-"ãã çæãããã¹ãã¼ãã¯ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã®ãã¼ãã«ã«å¯¾ããåç
§æ´å"
-"æ§å¶ç´(主ãã¼ã¨å¤é¨ãã¼)ãå«ã¿ã¾ãã ãã¼ãã«ã¨ã·ã¼ã±ã³ã¹ã¯ãããã³ã°ããèå¥"
-"åã¸ã§ãã¬ã¼ã¿ã«å¯¾ãã¦çæããã¾ãã"
+"DDL 㯠Hibernate ã¦ã¼ãã£ãªãã£ã«ãããããã³ã°ãã¡ã¤ã«ããçæãããã¨ãã§ã"
+"ã¾ããçæãããã¹ãã¼ãã¯ã¨ã³ãã£ãã£ãã³ã¬ã¯ã·ã§ã³ã®ãã¼ãã«ã«å¯¾ããåç
§æ´"
+"åæ§å¶ç´ (主ãã¼ã¨å¤é¨ãã¼) ãå«ã¿ã¾ãããã¼ãã«ã¨ã·ã¼ã±ã³ã¹ã¯ãããã³ã°ãã"
+"èå¥åã¸ã§ãã¬ã¼ã¿ã«å¯¾ãã¦çæããã¾ãã"
#. Tag: para
-#: toolset_guide.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
"the <literal>hibernate.dialect</literal> property when using this tool, as "
"DDL is highly vendor-specific."
msgstr ""
-"DDLã¯ãã³ãã¼ä¾åãªã®ã§ããã®ãã¼ã«ã使ãã¨ãã¯ã<literal>hibernate.dialect</"
-"literal> ããããã£ã§SQLã® <literal>æ¹è¨</literal> ãæå® <emphasis>ããªãã"
-"ã°ãªãã¾ãã</emphasis> ã"
+"DDL ã¯ãã³ãã¼ä¾åãªã®ã§ããã®ãã¼ã«ã使ãã¨ãã¯ã <literal>hibernate."
+"dialect</literal> ããããã£ã§ SQL ã® <literal>æ¹è¨</literal> ãæå® "
+"<emphasis>ããªããã°ãªãã¾ãã</emphasis> ã"
#. Tag: para
-#: toolset_guide.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
"schema. The next section covers schema customization."
@@ -148,39 +139,25 @@
"ã¦ãã ããã"
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
msgstr "ã¹ãã¼ãã®ã«ã¹ã¿ãã¤ãº"
#. Tag: para
-#: toolset_guide.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
"literal>. You can set the length, precision and scale of a column with this "
"attribute."
msgstr ""
-"å¤ãã®Hibernateã®ãããã³ã°è¦ç´ ã§ã¯ããªãã·ã§ã³ã® <literal>length</literal> "
-"ã¨ããåã®å±æ§ãå®ç¾©ãã¦ãã¾ãã ãã®å±æ§ã§ã«ã©ã é·ãè¨å®ãããã¨ãã§ãã¾ã"
-"(ã¾ãã¯NUMERIC/DECIMALåã®ãã¼ã¿ã®ç²¾åº¦ãè¨å®ã§ãã¾ã)ã"
+"å¤ãã® Hibernate ã®ãããã³ã°è¦ç´ ã§ã¯ããªãã·ã§ã³ã® <literal>length</"
+"literal>ã <literal>precision</literal>ã <literal>scale</literal> ã¨ããåã®"
+"屿§ãå®ç¾©ãã¦ãã¾ãããã®å±æ§ã§ã«ã©ã ã®é·ãã精度ãã¹ã±ã¼ã«ãè¨å®ãããã¨ã"
+"ã§ãã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
"a <literal>NOT NULL</literal> constraint on table columns, and a "
@@ -191,25 +168,9 @@
"literal> å¶ç´ãçæããï¼ã¨ <literal>unique</literal> 屿§ï¼ãã¼ãã«ã®ã«ã©ã "
"㸠<literal>UNIQUE</literal> å¶ç´ãçæããï¼ãè¨å®ã§ããã¿ã°ãããã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:117
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:121
-#, fuzzy, no-c-format
-msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
"single, unique key constraint. Currently, the specified value of the "
"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
@@ -217,309 +178,193 @@
"columns in the mapping file."
msgstr ""
"<literal>unique-key</literal> 屿§ã¯ã«ã©ã ãã°ã«ã¼ãåãã¦ä¸ã¤ã®ãã¼å¶ç´ã«ã"
-"ãããã«ä½¿ããã¾ãã ç¾å¨ã<literal>unique-key</literal> 屿§ã§æå®ãããå¤ã¯"
-"å¶ç´ã®æå®ã«ã¯ <emphasis>使ããã</emphasis> ã ãããã³ã°ãã¡ã¤ã«ã§ã«ã©ã ã"
-"ã°ã«ã¼ãåãããã¨ã«ã®ã¿ä½¿ããã¾ãã"
+"ãããã«ä½¿ããã¾ããç¾å¨ã <literal>unique-key</literal> 屿§ã§æå®ãããå¤ã¯"
+"å¶ç´ã®æå®ã«ã¯ <emphasis>使ããã</emphasis> ããããã³ã°ãã¡ã¤ã«ã§ã«ã©ã ãã°"
+"ã«ã¼ãåãããã¨ã«ã®ã¿ä½¿ããã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:129
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:131
-#, fuzzy, no-c-format
-msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
"will be created using the mapped column or columns. Multiple columns can be "
"grouped into the same index by simply specifying the same index name."
msgstr ""
"<literal>index</literal> 屿§ã¯ãããã³ã°ããã«ã©ã ã使ã£ã¦çæããã¤ã³ããã¯"
-"ã¹ã®ååãæå®ãã¾ãã è¤æ°ã«ã©ã ãï¼ã¤ã®ã¤ã³ããã¯ã¹ã«ã°ã«ã¼ãåã§ãã¾ããå"
+"ã¹ã®ååãæå®ãã¾ããè¤æ°ã«ã©ã ãï¼ã¤ã®ã¤ã³ããã¯ã¹ã«ã°ã«ã¼ãåã§ãã¾ããå"
"ã«ãåãã¤ã³ããã¯ã¹åãæå®ããã ãã§ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:139
-#, fuzzy, no-c-format
-msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
"of any generated foreign key constraint."
msgstr ""
"<literal>foreign-key</literal> 屿§ã¯ãçæãããå¤é¨ãã¼å¶ç´ã®ååããªã¼ãã¼"
"ã©ã¤ãããããã«ä½¿ç¨ã§ãã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
"element. This is particularly useful for mapping multi-column types:"
msgstr ""
"å¤ãã®ãããã³ã°è¦ç´ ã¯ãå <literal><column></literal> è¦ç´ ãè¨è¿°ã§ãã¾"
-"ããããã¯è¤æ°ã«ã©ã åã®ãããã³ã°ã«ã¯ç¹ã«æç¨ã§ãã"
+"ããããã¯è¤æ°ã«ã©ã åã®ãããã³ã°ã«ã¯ç¹ã«æç¨ã§ã:"
-#. Tag: programlisting
-#: toolset_guide.xml:151
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:153
-#, fuzzy, no-c-format
-msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
"value for a column.You should assign the same value to the mapped property "
"before saving a new instance of the mapped class."
msgstr ""
"<literal>default</literal> 屿§ã¯ã«ã©ã ã®ããã©ã«ãå¤ãæå®ãã¾ã (ãããã³ã°"
-"ããã¯ã©ã¹ã®æ°ããã¤ã³ã¹ã¿ã³ã¹ãä¿åããåã«ã ãããã³ã°ããããããã£ã¸åã"
+"ããã¯ã©ã¹ã®æ°ããã¤ã³ã¹ã¿ã³ã¹ãä¿åããåã«ããããã³ã°ããããããã£ã¸åã"
"å¤ã代å
¥ãã¹ãã§ã)ã"
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
"default mapping of a Hibernate type to SQL datatype."
msgstr ""
-"<literal>sql-type</literal> 屿§ã§ãããã©ã«ãã®HibernateåããSQLã®ãã¼ã¿å"
-"ã¸ã®ãããã³ã°ããªã¼ãã¼ã©ã¤ãã§ãã¾ãã"
+"<literal>sql-type</literal> 屿§ã§ãããã©ã«ãã® Hibernate åãã SQL ã®ãã¼"
+"ã¿åã¸ã®ãããã³ã°ããªã¼ãã¼ã©ã¤ãã§ãã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
"constraint."
msgstr "<literal>check</literal> 屿§ã§ãã§ãã¯å¶ç´ãæå®ãããã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
-msgstr "ã¾ã¨ã"
+msgstr "è¦ç´"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
msgstr "屿§"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
msgstr "å¤"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
msgstr "説æ"
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
-msgstr "length"
+msgid "<literal>length</literal>"
+msgstr "<literal>length</literal>"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
msgstr "æ°å¤"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
msgstr "ã«ã©ã ã®é·ã"
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
-msgstr "precision"
+msgid "<literal>precision</literal>"
+msgstr "<literal>precision</literal>"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
-msgstr "ã«ã©ã ã®DECIMALåã®ç²¾åº¦ï¼precisionï¼"
+msgstr "ã«ã©ã ã® DECIMAL åã®ç²¾åº¦ï¼precisionï¼"
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
-msgstr "scale"
+msgid "<literal>scale</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
-msgstr "ã«ã©ã ã®DECIMALåã®ã¹ã±ã¼ã«ï¼scaleï¼"
+msgstr "ã«ã©ã ã® DECIMAL åã®ã¹ã±ã¼ã«ï¼scaleï¼"
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+msgid "<literal>not-null</literal>"
+msgstr "<literal>not-null</literal>"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+msgid "<literal>true|false</literal>"
+msgstr "<literal>true|false</literal>"
#. Tag: entry
-#: toolset_guide.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specifies that the column should be non-nullable"
-msgstr "ã«ã©ã ãnullå¤ãåããªããã¨ãæå®ãã¾ã"
+msgstr "ã«ã©ã ã null å¤ãåããªããã¨ãæå®ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
-msgstr "unique"
+msgid "<literal>unique</literal>"
+msgstr "<literal>unique</literal>"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr "ã«ã©ã ãã¦ãã¼ã¯å¶ç´ãæã¤ãã¨ãæå®ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
-msgstr "index"
+msgid "<literal>index</literal>"
+msgstr "<literal>index</literal>"
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
+msgid "<literal>index_name</literal>"
msgstr "ã¤ã³ããã¯ã¹å"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr "(è¤æ°ã«ã©ã ã®)ã¤ã³ããã¯ã¹ã®ååãæå®ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>unique-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:227
+#. Tag: entry
#, no-c-format
-msgid "unique_key_name"
+msgid "<literal>unique_key_name</literal>"
msgstr "ã¦ãã¼ã¯ãã¼å"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr "è¤æ°ã«ã©ã ã®ã¦ãã¼ã¯å¶ç´ã®ååãæå®ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>foreign-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:232
-#, no-c-format
-msgid "foreign_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>foreign_key_name</literal>"
msgstr "å¤é¨ãã¼å"
#. Tag: entry
-#: toolset_guide.xml:233
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
"association, for a <literal><one-to-one></literal>, <literal><many-"
@@ -527,64 +372,57 @@
"to-many></literal> mapping element. Note that <literal>inverse=\"true\"</"
"literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-"specifies the name of the foreign key constraint generated for an "
-"association, for a <placeholder-1/>, <placeholder-2/>, <placeholder-3/>, or "
-"<placeholder-4/> mapping element. Note that <placeholder-5/> sides will not "
-"be considered by <placeholder-6/>."
+"<literal><one-to-one></literal>ã <literal><many-to-one></"
+"literal>ã <literal><key></literal>ã ã¾ã㯠<literal><many-to-"
+"many></literal> ãããã³ã°ã¨ã¬ã¡ã³ãã®ããã«ãé¢é£ã«å¯¾ãã¦çæãããå¤é¨"
+"ãã¼å¶ç´ã®ååãæå®ãã¾ãã <literal>inverse=\"true\"</literal> å´ã¯ "
+"<literal>SchemaExport</literal> ã«ãã£ã¦èæ
®ãããªããã¨ã«æ³¨æãã¦ãã ããã"
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>sql-type</literal>"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
-msgstr "SQLã®ã«ã©ã å"
-
#. Tag: entry
-#: toolset_guide.xml:245
#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
+msgstr "<literal>sql-type</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
"literal> element only)"
msgstr ""
-"ããã©ã«ãã®ã«ã©ã åããªã¼ãã¼ã©ã¤ããã¾ã( <placeholder-1/> è¦ç´ ã®å±æ§ã®ã¿)"
+"ããã©ã«ãã®ã«ã©ã åããªã¼ãã¼ã©ã¤ããã¾ã ( <literal><column></"
+"literal> è¦ç´ ã®å±æ§ã«éã)"
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
-msgstr "default"
+msgid "<literal>default</literal>"
+msgstr "<literal>default</literal>"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
#, no-c-format
msgid "SQL expression"
-msgstr "SQLå¼"
+msgstr "SQL å¼"
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
msgstr "ã«ã©ã ã®ããã©ã«ãå¤ãæå®ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
-msgstr "check"
+msgid "<literal>check</literal>"
+msgstr "<literal>check</literal>"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
-msgstr "ã«ã©ã ããã¼ãã«ã«SQLã®ãã§ãã¯å¶ç´ã使ãã¾ã"
+msgstr "ã«ã©ã ããã¼ãã«ã« SQL ã®ãã§ãã¯å¶ç´ã使ãã¾ã"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
@@ -593,252 +431,179 @@
"<literal><comment></literal> è¦ç´ ã§çæããã¹ãã¼ãã«ã³ã¡ã³ããæå®ãã"
"ãã¨ãã§ãã¾ãã"
-#. Tag: programlisting
-#: toolset_guide.xml:273
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:277
-#, fuzzy, no-c-format
-msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
"column</literal> statement in the generated DDL where supported."
msgstr ""
-"ããã«ãããçæããDDLã« <literal>comment on table</literal> ã "
+"ããã«ãããçæãã DDL ã« <literal>comment on table</literal> ã "
"<literal>comment on column</literal> æãæ¸ããã¾ãã"
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
msgstr "ãã¼ã«ã®å®è¡"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
"and/or executes the DDL statements."
msgstr ""
-"<literal>SchemaExport</literal> ã¯æ¨æºåºåã«å¯¾ãã¦DDLã¹ã¯ãªãããæ¸ãåºãã"
-"DDLæãå®è¡ãããããã¾ãã"
+"<literal>SchemaExport</literal> ã¯æ¨æºåºåã«å¯¾ã㦠DDL ã¹ã¯ãªãããæ¸ãåº"
+"ãã DDL æãå®è¡ãããããã¾ãã"
#. Tag: para
-#: toolset_guide.xml:293
#, fuzzy, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
"line options"
-msgstr ""
-"<literal>SchemaExport</literal> Command Line Options <literal>SchemaExport</"
-"literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
+msgstr "<literal>SchemaExport</literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
-msgstr ""
-"<literal>SchemaExport</literal> Command Line Options <literal>SchemaExport</"
-"literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
+msgstr "<literal>SchemaExport</literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
msgstr "ãªãã·ã§ã³"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:528
#, no-c-format
msgid "Description"
msgstr "説æ"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>--quiet</literal>"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not output the script to stdout"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ã¹ã¯ãªãããæ¨æºåºåã«åºåãã¾ãã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¨æºåºåã«ã¹ã¯ãªãããåºåãã¾ãã"
+msgstr "æ¨æºåºåã«ã¹ã¯ãªãããåºåãã¾ãã"
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+msgid "<literal>--drop</literal>"
+msgstr "<literal>--drop</literal>"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
msgstr "ãã¼ãã«ã®åé¤ã ããè¡ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
-msgstr "--create"
+msgid "<literal>--create</literal>"
+msgstr "<literal>--create</literal>"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
-msgstr "ãã¼ãã«ã®çæã®ã¿ãè¡ãã¾ãã"
+msgstr "ãã¼ãã«ã®çæã®ã¿ãè¡ãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
-msgstr "--text"
+msgid "<literal>--text</literal>"
+msgstr "<literal>--text</literal>"
#. Tag: entry
-#: toolset_guide.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export to the database"
msgstr "ãã¼ã¿ãã¼ã¹ã«ã¨ã¯ã¹ãã¼ããã¾ãã"
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
-msgstr "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
-msgstr "DDLã¹ã¯ãªããããã¡ã¤ã«ã«åºåãã¾ã"
+msgstr "DDL ã¹ã¯ãªããããã¡ã¤ã«ã«åºåãã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
-msgstr "--naming=eg.MyNamingStrategy"
-
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, fuzzy, no-c-format
-msgid "select a <literal>NamingStrategy</literal>"
-msgstr "<literal>hibernate.properties</literal> ãã¡ã¤ã«å
ã§"
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
+msgstr "<literal>--naming=eg.MyNamingStrategy</literal>"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
+#. Tag: entry
#, no-c-format
-msgid "--config=hibernate.cfg.xml"
-msgstr "--config=hibernate.cfg.xml"
+msgid "select a <literal>NamingStrategy</literal>"
+msgstr "<literal>NamingStrategy</literal> ã鏿"
#. Tag: entry
-#: toolset_guide.xml:338
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
+msgstr "<literal>hibernate.dialect</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
-msgstr "XMLãã¡ã¤ã«ããHibernateã®å®ç¾©æ
å ±ãèªã¿è¾¼ã¿ã¾ã"
+msgstr "XML ãã¡ã¤ã«ãã Hibernate ã®å®ç¾©æ
å ±ãèªã¿è¾¼ã¿ã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
+#. Tag: entry
#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "<literal>--properties=hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid "read database properties from a file"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ãã¡ã¤ã«ãããã¼ã¿ãã¼ã¹ããããã£ãèªã¿è¾¼ã¿ã¾ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ãã¡ã¤ã«ãããã¼ã¿ãã¼ã¹ããããã£ãèªã¿è¾¼ã¿ã¾ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ãã¡ã¤ã«ãããã¼ã¿ãã¼ã¹ã®ããããã£ãèªã¿è¾¼ã¿ã¾ã"
+msgstr "ãã¡ã¤ã«ãããã¼ã¿ãã¼ã¹ã®ããããã£ãèªã¿è¾¼ã¿ã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
-msgstr "--format"
+msgid "<literal>--format</literal>"
+msgstr "<literal>--format</literal>"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
-msgstr "ã¹ã¯ãªããå
ã«çæããSQLãèªã¿ãããããã«ãã©ã¼ããããã¾ã"
+msgstr "ã¹ã¯ãªããå
ã«çæãã SQL ãèªã¿ãããããã«ãã©ã¼ããããã¾ã"
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=x"
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>--delimiter=;</literal>"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr "ã¹ã¯ãªããã®è¡åºåãæåãè¨å®ãã¾ã"
#. Tag: para
-#: toolset_guide.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
"ã¢ããªã±ã¼ã·ã§ã³ã« <literal>SchemaExport</literal> ãçµã¿è¾¼ããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
msgstr "ããããã£"
#. Tag: para
-#: toolset_guide.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Database properties can be specified:"
msgstr "次ã®ããã«ããã¼ã¿ãã¼ã¹ã®ããããã£ãæå®ãããã¨ãã§ãã¾ãã"
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
@@ -848,236 +613,160 @@
"ããããã£ã¨ãã¦"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
msgstr "<literal>hibernate.properties</literal> ãã¡ã¤ã«å
ã§"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr "<literal>--properties</literal> ã使ã£ã¦æå®ããããããã£ãã¡ã¤ã«å
ã§"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
msgstr "å¿
è¦ãªããããã£ã¯ä»¥ä¸ã®ãã®ã§ãï¼"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
-msgstr "SchemaExportã³ãã¯ã·ã§ã³ããããã£"
+msgstr "SchemaExport ã³ãã¯ã·ã§ã³ããããã£"
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
msgstr "ããããã£å"
-#. Tag: literal
-#: toolset_guide.xml:400
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<literal>hibernate.connection.driver_class</literal>"
+msgstr "<literal>hibernate.connection.driver_class</literal>"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
-msgstr "jdbcã®ãã©ã¤ãã¼ã¯ã©ã¹"
+msgstr "jdbc ã®ãã©ã¤ãã¼ã¯ã©ã¹"
-#. Tag: literal
-#: toolset_guide.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "<literal>hibernate.connection.url</literal>"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
-msgstr "jdbcã®url"
+msgstr "jdbc ã® url"
-#. Tag: literal
-#: toolset_guide.xml:408
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "<literal>hibernate.connection.username</literal>"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
-msgstr "ãã¼ã¿ãã¼ã¹ã®ã¦ã¼ã¶"
+msgstr "ãã¼ã¿ãã¼ã¹ã®ã¦ã¼ã¶ã¼"
-#. Tag: literal
-#: toolset_guide.xml:412
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "<literal>hibernate.connection.password</literal>"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
-msgstr "ã¦ã¼ã¶ãã¹ã¯ã¼ã"
+msgstr "ã¦ã¼ã¶ã¼ãã¹ã¯ã¼ã"
-#. Tag: literal
-#: toolset_guide.xml:416
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "<literal>hibernate.dialect</literal>"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
msgstr "ãã¼ã¿ãã¼ã¹æ¹è¨"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
-msgstr "Antã使ç¨ãã"
+msgstr "Ant ã使ç¨ãã"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
msgstr ""
-"Antã®ãã«ãã¹ã¯ãªãããã <literal>SchemaExport</literal> ãå¼ã³åºããã¨ãã§"
-"ãã¾ãã:"
+"Ant ã®ãã«ãã¹ã¯ãªãããã <literal>SchemaExport</literal> ãå¼ã³åºããã¨ãã§"
+"ãã¾ã:"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
msgstr "ã¤ã³ã¯ãªã¡ã³ã¿ã«ãªã¹ãã¼ãæ´æ°"
#. Tag: para
-#: toolset_guide.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
"\"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon "
"the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
"<literal>SchemaUpdate</literal> ãã¼ã«ã¯æ¢åã®ã¹ãã¼ããã¤ã³ã¯ãªã¡ã³ã¿ã«ã«æ´"
-"æ°ãã¾ãã <literal>SchemaUpdate</literal> ã¯JDBCã®ã¡ã¿ãã¼ã¿APIã«å¼·ãä¾åã"
-"ã¾ãã ãã®ããããã¹ã¦ã®JDBCãã©ã¤ãã§ãã¾ãããã¨ã¯éããªããã¨ã«æ³¨æãã¦ã"
-"ã ããã"
+"æ°ãã¾ãã <literal>SchemaUpdate</literal> 㯠JDBC ã®ã¡ã¿ãã¼ã¿ API ã«å¼·ãä¾"
+"åãã¾ãããã®ããããã¹ã¦ã® JDBC ãã©ã¤ãã§ãã¾ãããã¨ã¯éããªããã¨ã«æ³¨æ"
+"ãã¦ãã ããã"
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
-msgstr "<literal>SchemaUpdate</literal> ã®ã³ãã³ãã©ã¤ã³ï½¥ãªãã·ã§ã³"
+msgstr "<literal>SchemaUpdate</literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
#. Tag: entry
-#: toolset_guide.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export the script to the database"
msgstr "ãã¼ã¿ãã¼ã¹ã«ã¹ã¯ãªãããã¨ã¯ã¹ãã¼ããã¾ãã"
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
-msgstr "<placeholder-1/> ãã¡ã¤ã«ãæå®ãã¾ã"
+msgstr "<literal>.cfg.xml</literal> ãã¡ã¤ã«ãæå®"
#. Tag: para
-#: toolset_guide.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã« <literal>SchemaUpdate</literal> ãçµã¿è¾¼ããã¨ãã§ãã¾"
-"ããï¼"
+"ã¢ããªã±ã¼ã·ã§ã³ã« <literal>SchemaUpdate</literal> ãçµã¿è¾¼ããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
-msgstr "ã¤ã³ã¯ãªã¡ã³ã¿ã«ãªã¹ãã¼ãæ´æ°ã«å¯¾ããAntã®ä½¿ç¨"
+msgstr "ã¤ã³ã¯ãªã¡ã³ã¿ã«ãªã¹ãã¼ãæ´æ°ã«å¯¾ãã Ant ã®ä½¿ç¨"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
msgstr ""
-"Antã¹ã¯ãªãããã <literal>SchemaUpdate</literal> ãå¼ã³åºããã¨ãã§ãã¾ãï¼"
+"Ant ã¹ã¯ãªãããã <literal>SchemaUpdate</literal> ãå¼ã³åºããã¨ãã§ãã¾ãï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
msgstr "Schema validation"
#. Tag: para
-#: toolset_guide.xml:508
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
"database schema \"matches\" your mapping documents. The "
@@ -1086,134 +775,407 @@
"extremely useful for testing."
msgstr ""
"<literal>SchemaValidator</literal> ãã¼ã«ã¯ãæ¢åã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¨ä½æ"
-"ãããããã³ã°ããã¥ã¡ã³ãã\"ä¸è´ãã\"ãã¨ãæ¤è¨¼ãã¾ãã "
-"<literal>SchemaValidator</literal> ã¯JDBCã®ã¡ã¿ãã¼ã¿APIã«å¼·ãä¾åãããã¨ã«"
-"注æãã¦ãã ããããã®ããããã¹ã¦ã®JDBCãã©ã¤ãã¼ã§ä½åãããã®ã§ã¯ããã¾ã"
-"ãããã®ãã¼ã«ã¯ãã¹ãæã«éå¸¸ã«æç¨ã§ãã"
+"ãããããã³ã°ããã¥ã¡ã³ãããä¸è´ããããã¨ãæ¤è¨¼ãã¾ãã "
+"<literal>SchemaValidator</literal> 㯠JDBC ã®ã¡ã¿ãã¼ã¿ API ã«å¼·ãä¾åããã"
+"ã¨ã«æ³¨æãã¦ãã ããããã®ããããã¹ã¦ã® JDBC ãã©ã¤ãã¼ã§ä½åãããã®ã§ã¯ã"
+"ãã¾ããããã®ãã¼ã«ã¯ãã¹ãæã«éå¸¸ã«æç¨ã§ãã"
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
"<emphasis>options mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
+"<emphasis>options mapping_files</emphasis>"
#. Tag: para
-#: toolset_guide.xml:518
#, fuzzy, no-c-format
msgid ""
"The following table displays the <literal>SchemaValidator</literal> command "
"line options:"
-msgstr "<literal>SchemaValidator</literal> ã®ã³ãã³ãã©ã¤ã³ã»ãªãã·ã§ã³"
+msgstr "<literal>SchemaValidator</literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
-msgstr "<literal>SchemaValidator</literal> ã®ã³ãã³ãã©ã¤ã³ã»ãªãã·ã§ã³"
+msgstr "<literal>SchemaValidator</literal> ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³"
#. Tag: para
-#: toolset_guide.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
msgstr ""
"<literal>SchemaValidator</literal> ãã¢ããªã±ã¼ã·ã§ã³ã«çµã¿è¾¼ããã¨ãåºæ¥ã¾"
"ã:"
-#. Tag: programlisting
-#: toolset_guide.xml:552
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
-msgstr "ã¹ãã¼ãã®ããªãã¼ã·ã§ã³ã«Antã使ç¨ãã¾ã"
+msgstr "ã¹ãã¼ãã®ããªãã¼ã·ã§ã³ã« Ant ã使ç¨ãã¾ã"
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
-msgstr "Antã¹ã¯ãªãããã <literal>SchemaValidator</literal> ãå¼ã³åºãã¾ã:"
+msgstr "Ant ã¹ã¯ãªãããã <literal>SchemaValidator</literal> ãå¼ã³åºãã¾ã:"
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
-msgstr ""
+#, fuzzy
+#~ msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
+#~ msgstr "<property name=\"zip\" length=\"5\"/>"
-#~ msgid "Ant Tasks:"
-#~ msgstr "Ant Tasks:"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
+#~ msgstr "<property name=\"balance\" precision=\"12\" scale=\"2\"/>"
-#~ msgid "<one-to-one>"
-#~ msgstr "<one-to-one>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>"
-#~ msgid "<many-to-one>"
-#~ msgstr "<many-to-one>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
+#~ "unique=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
+#~ "unique=\"true\"/>"
-#~ msgid "<key>"
-#~ msgstr "<key>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
+#~ "\"OrgEmployeeId\"/>\n"
+#~ "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"org\" column=\"orgId\" unique-key=\"OrgEmployeeId"
+#~ "\"/>\n"
+#~ "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>"
-#~ msgid "<many-to-many>"
-#~ msgstr "<many-to-many>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
+#~ "<property name=\"firstName\" index=\"CustName\"/>]]>"
+#~ msgstr ""
+#~ "<property name=\"lastName\" index=\"CustName\"/>\n"
+#~ "<property name=\"firstName\" index=\"CustName\"/>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar"
+#~ "\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
+#~ ">"
-#~ msgid "SchemaExport"
-#~ msgstr "SchemaExport"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
+#~ " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30"
+#~ "\"/>\n"
+#~ " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20"
+#~ "\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
+#~ " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length="
+#~ "\"30\"/>\n"
+#~ " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length="
+#~ "\"20\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ "</property>"
-#~ msgid "<column>"
-#~ msgstr "<column>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"credits\" default=\"10\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"credits\" default=\"10\"/>\n"
+#~ "</property>"
-#~ msgid "java -cp"
-#~ msgstr "java -cp"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"version\" default=\"0\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<version name=\"version\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"version\" default=\"0\"/>\n"
+#~ "</property>"
-#~ msgid "hibernate_classpaths"
-#~ msgstr "hibernate_classpaths"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\" type=\"float\">\n"
+#~ " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"balance\" type=\"float\">\n"
+#~ " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
+#~ "</property>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaExport"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaExport"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"foo\" type=\"integer\">\n"
+#~ " <column name=\"foo\" check=\"foo > 10\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"foo\" type=\"integer\">\n"
+#~ " <column name=\"foo\" check=\"foo > 10\"/>\n"
+#~ "</property>"
-#~ msgid "options mapping_files"
-#~ msgstr "options mapping_files"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
+#~ " ...\n"
+#~ " <property name=\"bar\" type=\"float\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
+#~ " ...\n"
+#~ " <property name=\"bar\" type=\"float\"/>\n"
+#~ "</class>"
-#~ msgid "NamingStrategy"
-#~ msgstr "NamingStrategy"
+#~ msgid "length"
+#~ msgstr "length"
+#~ msgid "precision"
+#~ msgstr "precision"
+
+#~ msgid "scale"
+#~ msgstr "scale"
+
+#~ msgid "not-null"
+#~ msgstr "not-null"
+
+#~ msgid "true|false"
+#~ msgstr "true|false"
+
+#~ msgid "unique"
+#~ msgstr "unique"
+
+#~ msgid "index"
+#~ msgstr "index"
+
+#~ msgid "index_name"
+#~ msgstr "ã¤ã³ããã¯ã¹å"
+
+#~ msgid "unique-key"
+#~ msgstr "unique-key"
+
+#~ msgid "unique_key_name"
+#~ msgstr "ã¦ãã¼ã¯ãã¼å"
+
+#~ msgid "foreign-key"
+#~ msgstr "foreign-key"
+
#, fuzzy
-#~ msgid "select a <placeholder-1/>"
+#~ msgid "foreign_key_name"
+#~ msgstr "foreign-key"
+
+#~ msgid "sql-type"
+#~ msgstr "sql-type"
+
+#, fuzzy
+#~ msgid "SQL column type"
+#~ msgstr "SQL ã®ã«ã©ã å"
+
+#~ msgid "default"
+#~ msgstr "default"
+
+#~ msgid "check"
+#~ msgstr "check"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
+#~ " <comment>Current customers only</comment>\n"
+#~ " ...\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<placeholder-1/> ã鏿ãã¾ã\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<placeholder-1/> ã鏿ãã¾ãã\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "<placeholder-1/> ã鏿ãã¾ã"
+#~ "<class name=\"Customer\" table=\"CurCust\">\n"
+#~ " <comment>Current customers only</comment>\n"
+#~ " ...\n"
+#~ "</class>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaUpdate"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\">\n"
+#~ " <column name=\"bal\">\n"
+#~ " <comment>Balance in USD</comment>\n"
+#~ " </column>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"balance\">\n"
+#~ " <column name=\"bal\">\n"
+#~ " <comment>Balance in USD</comment>\n"
+#~ " </column>\n"
+#~ "</property>"
-#~ msgid ".cfg.xml"
-#~ msgstr ".cfg.xml"
+#~ msgid "--quiet"
+#~ msgstr "--quiet"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaValidator"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaValidator"
+#~ msgid "--drop"
+#~ msgstr "--drop"
+
+#~ msgid "--create"
+#~ msgstr "--create"
+
+#~ msgid "--text"
+#~ msgstr "--text"
+
+#, fuzzy
+#~ msgid "--output=my_schema.ddl"
+#~ msgstr "<literal>--output=my_schema.ddl</literal>"
+
+#, fuzzy
+#~ msgid "--config=hibernate.cfg.xml"
+#~ msgstr "<literal>--config=hibernate.cfg.xml</literal>"
+
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "--properties=hibernate.properties"
+
+#~ msgid "--format"
+#~ msgstr "--format"
+
+#~ msgid "--delimiter=;"
+#~ msgstr "--delimiter=x"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaExport(cfg).create(false, true);]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaExport(cfg).create(false, true);"
+
+#, fuzzy
+#~ msgid "hibernate.connection.driver_class"
+#~ msgstr "hibernate.connection.url"
+
+#~ msgid "hibernate.connection.url"
+#~ msgstr "hibernate.connection.url"
+
+#~ msgid "hibernate.connection.username"
+#~ msgstr "hibernate.connection.username"
+
+#~ msgid "hibernate.connection.password"
+#~ msgstr "hibernate.connection.password"
+
+#~ msgid "hibernate.dialect"
+#~ msgstr "hibernate.dialect"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemaexport\">\n"
+#~ " <taskdef name=\"schemaexport\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaexport\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\"\n"
+#~ " text=\"no\"\n"
+#~ " drop=\"no\"\n"
+#~ " delimiter=\";\"\n"
+#~ " output=\"schema-export.sql\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaexport>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemaexport\">\n"
+#~ " <taskdef name=\"schemaexport\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaexport\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\"\n"
+#~ " text=\"no\"\n"
+#~ " drop=\"no\"\n"
+#~ " delimiter=\";\"\n"
+#~ " output=\"schema-export.sql\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaexport>\n"
+#~ "</target>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaUpdate(cfg).execute(false);]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaUpdate(cfg).execute(false);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemaupdate\">\n"
+#~ " <taskdef name=\"schemaupdate\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaupdate\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemaupdate\">\n"
+#~ " <taskdef name=\"schemaupdate\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaupdate\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaValidator(cfg).validate();]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaValidator(cfg).validate();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemavalidate\">\n"
+#~ " <taskdef name=\"schemavalidator\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemavalidator\n"
+#~ " properties=\"hibernate.properties\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemavalidator>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemavalidate\">\n"
+#~ " <taskdef name=\"schemavalidator\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemavalidator\n"
+#~ " properties=\"hibernate.properties\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-13 11:23+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: transactions.xml:29
#, fuzzy, no-c-format
msgid "Transactions and Concurrency"
msgstr "ãã©ã³ã¶ã¯ã·ã§ã³ã¨ä¸¦è¡æ§"
#. Tag: para
-#: transactions.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
"is easy to understand. Hibernate directly uses JDBC connections and JTA "
@@ -26,14 +27,14 @@
"that you spend some time with the JDBC, ANSI, and transaction isolation "
"specification of your database management system."
msgstr ""
-"Hibernateã¨åæå®è¡å¶å¾¡ã«ã¤ãã¦æãéè¦ãªç¹ã¯ã容æã«çè§£ã§ãããã¨ã§ãã "
-"Hibernateã¯æ°ããªããã¯ã®æ¯ãèãã追å ãã¦ããããç´æ¥JDBCã³ãã¯ã·ã§ã³ã¨JTA"
-"ãªã½ã¼ã¹ã使ç¨ãã¾ãã JDBCãANSIãããã³ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ï¼DBMSï¼ã®ã"
-"ã©ã³ã¶ã¯ã·ã§ã³åé¢ã®ä»æ§ã å°ãæéãããã¦åå¼·ãããã¨ãå¼·ãæ¨å¥¨ãã¾ãã"
+"Hibernate ã¨åæå®è¡å¶å¾¡ã«ã¤ãã¦æãéè¦ãªç¹ã¯ã容æã«çè§£ã§ãããã¨ã§ãã "
+"Hibernate ã¯æ°ããªããã¯ã®æ¯ãèãã追å ãã¦ããããç´æ¥ JDBC ã³ãã¯ã·ã§ã³ã¨ "
+"JTA ãªã½ã¼ã¹ã使ç¨ãã¾ãã JDBC ã ANSI ãããã³ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã "
+"ï¼DBMSï¼ã®ãã©ã³ã¶ã¯ã·ã§ã³åé¢ã®ä»æ§ãå°ãæéãããã¦åå¼·ãããã¨ãå¼·ãæ¨å¥¨"
+"ãã¾ãã"
#. Tag: para
-#: transactions.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
"behavior as defined by the isolation level of your database transactions. "
@@ -41,15 +42,14 @@
"cache, Hibernate provides repeatable reads for lookup by identifier and "
"entity queries and not reporting queries that return scalar values."
msgstr ""
-"Hibernateã¯ã¡ã¢ãªå
ã®ãªãã¸ã§ã¯ããããã¯ãã¾ããã ã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼"
-"ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®åé¢ã¬ãã«ã§ å®ç¾©ããæ¯ãèããæå¾
ã§ãã¾ãã ãã©"
-"ã³ã¶ã¯ã·ã§ã³ã¹ã³ã¼ãã®ãã£ãã·ã¥ã§ããã <literal>Session</literal> ã®ãé°"
-"ã§ã èå¥åãã¯ã¨ãªã«ããæ¤ç´¢ããã¨ã³ãã£ãã£ã¯ãªãã¼ã¿ãã«ãªã¼ãã«ãªãã¾ã "
-"ï¼ã¹ã«ã©ã¼å¤ãè¿ããããªã¬ãã¼ãã¯ã¨ãªã¯éãã¾ãï¼ã"
+"Hibernate ã¯ã¡ã¢ãªå
ã®ãªãã¸ã§ã¯ããããã¯ãã¾ãããã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼"
+"ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®åé¢ã¬ãã«ã§å®ç¾©ããæ¯ãèããæå¾
ã§ãã¾ãããã©ã³"
+"ã¶ã¯ã·ã§ã³ã¹ã³ã¼ãã®ãã£ãã·ã¥ã§ããã <literal>Session</literal> ã®ãé°ã§ã"
+"èå¥åãã¯ã¨ãªã«ããæ¤ç´¢ããã¨ã³ãã£ãã£ã¯ãªãã¼ã¿ãã«ãªã¼ãã«ãªãã¾ãï¼ã¹ã«"
+"ã©ã¼å¤ãè¿ããããªã¬ãã¼ãã¯ã¨ãªã¯éãã¾ãï¼ã"
#. Tag: para
-#: transactions.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
"Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> "
@@ -57,13 +57,12 @@
"concurrency control and this API are discussed later in this chapter."
msgstr ""
"ãã¼ã¸ã§ãã³ã°ã«ããèªåçãªæ¥½è¦³çåæå®è¡å¶å¾¡ã«å ãã¦ã <literal>SELECT FOR "
-"UPDATE</literal> æã使ç¨ãã¦ã è¡ãæ²è¦³çããã¯ããããã®ï¼ãã¤ãã¼ãªï¼APIã"
-"æä¾ãã¾ãã æ¥½è¦³çåæå®è¡å¶å¾¡ã¨ãã®APIã«ã¤ãã¦ã¯ããã®ç« ã®å¾ã®ã»ãã§è°è«ã"
-"ã¾ãã"
+"UPDATE</literal> æã使ç¨ãã¦ãè¡ãæ²è¦³çããã¯ããããã®ï¼ãã¤ãã¼ãªï¼ API "
+"ãæä¾ãã¾ããæ¥½è¦³çåæå®è¡å¶å¾¡ã¨ãã® API ã«ã¤ãã¦ã¯ããã®ç« ã®å¾ã®ã»ãã§è°è«"
+"ãã¾ãã"
#. Tag: para
-#: transactions.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
"granularity of <literal>Configuration</literal>, <literal>SessionFactory</"
@@ -72,32 +71,29 @@
msgstr ""
"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãé·ã対話ï¼conversationããã³ã°ãã©ã³ã¶ã¯ã·ã§"
"ã³ï¼ã ãã§ãªãã <literal>Configuration</literal>ã<literal>SessionFactory</"
-"literal>ãããã³ <literal>Session</literal> ã¨ããç²åº¦ã§Hibernateãè¡ãåæå®"
-"è¡å¶å¾¡ã®è°è«ãå§ãã¾ãã"
+"literal>ãããã³ <literal>Session</literal> ã¨ããç²åº¦ã§ Hibernate ãè¡ãåæ"
+"å®è¡å¶å¾¡ã®è°è«ãå§ãã¾ãã"
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
-msgstr "sessionã¹ã³ã¼ãã¨transactionã¹ã³ã¼ã"
+msgstr "session ã¹ã³ã¼ã㨠transaction ã¹ã³ã¼ã"
#. Tag: para
-#: transactions.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
"object, intended to be shared by all application threads. It is created "
"once, usually on application startup, from a <literal>Configuration</"
"literal> instance."
msgstr ""
-"<literal>SessionFactory</literal> ã¯çæãããã¨ãé«ä¾¡ã§ã ã¹ã¬ããã»ã¼ããªãª"
-"ãã¸ã§ã¯ãã§ãã ãã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ã¦ã®ã¹ã¬ããã§å
±æãã¹ãã§"
-"ãã é常ãã¢ããªã±ã¼ã·ã§ã³ã®èµ·åæã«ã <literal>Configuration</literal> ã¤ã³"
-"ã¹ã¿ã³ã¹ããï¼åº¦ã ãçæãã¾ãã"
+"<literal>SessionFactory</literal> ã¯çæãããã¨ãé«ä¾¡ã§ãã¹ã¬ããã»ã¼ããªãª"
+"ãã¸ã§ã¯ãã§ãããã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ã¦ã®ã¹ã¬ããã§å
±æãã¹ãã§ãã"
+"é常ãã¢ããªã±ã¼ã·ã§ã³ã®èµ·åæã«ã <literal>Configuration</literal> ã¤ã³ã¹ã¿"
+"ã³ã¹ããï¼åº¦ã ãçæãã¾ãã"
#. Tag: para
-#: transactions.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
"should be used once and then discarded for: a single request, a conversation "
@@ -106,15 +102,14 @@
"unless it is needed. It will not consume any resources until used."
msgstr ""
"<literal>Session</literal> ã¯é«ä¾¡ã§ã¯ãªããã¹ã¬ããã»ã¼ããªãªãã¸ã§ã¯ãã§ãã"
-"ãã¾ããã ãã£ã¦ãï¼ã¤ã®è¦æ±ãï¼ã¤ã®å¯¾è©±ãï¼ã¤ã®ä½æ¥åä½ï¼unit of workï¼ã«å¯¾"
-"ãã¦ï¼åº¦ã ã使ãã ãã®å¾ã§æ¨ã¦ãã¹ãã§ãã <literal>Session</literal> ã¯å¿
è¦"
+"ãã¾ããããã£ã¦ãï¼ã¤ã®è¦æ±ãï¼ã¤ã®å¯¾è©±ãï¼ã¤ã®ä½æ¥åä½ï¼unit of workï¼ã«å¯¾"
+"ãã¦ï¼åº¦ã ã使ãããã®å¾ã§æ¨ã¦ãã¹ãã§ãã <literal>Session</literal> ã¯å¿
è¦"
"ã«ãªãã¾ã§ã JDBC <literal>Connection</literal>ï¼ããã㯠"
-"<literal>DataSource</literal>ï¼ãç²å¾ãã¾ããã ããã«ãå®éã«ä½¿ç¨ããã¨ãã¾"
-"ã§ãªã½ã¼ã¹ãæ¶è²»ãã¾ããã"
+"<literal>DataSource</literal>ï¼ãç²å¾ãã¾ãããããã«ãå®éã«ä½¿ç¨ããã¨ãã¾ã§"
+"ãªã½ã¼ã¹ãæ¶è²»ãã¾ããã"
#. Tag: para
-#: transactions.xml:76
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
"has to be as short as possible. Long database transactions will prevent your "
@@ -122,16 +117,15 @@
"that you hold a database transaction open during user think time until the "
"unit of work is complete."
msgstr ""
-"ãã®ç¶æ³ãå®äºãããããã«ã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«ã¤ãã¦ãèããªãã"
-"ã°ãªãã¾ããã ãã¼ã¿ãã¼ã¹å
ã®ããã¯ã®ç«¶åãå°ãªãããããã«ã ãã¼ã¿ãã¼ã¹"
-"ãã©ã³ã¶ã¯ã·ã§ã³ã¯å¯è½ãªéãçãããã¹ãã§ãã é·ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§"
-"ã³ã¯ãã¢ããªã±ã¼ã·ã§ã³ã®é«ã並åå®è¡æ§ãé»å®³ãã¾ãã ããã«ãã¦ã¼ã¶ã¼ãèãã¦"
-"ããéï¼ä½æ¥åä½ãå®äºããã¾ã§ï¼ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã éããã¾ã¾ã«ã"
-"ãã®ã¯ãããã¦ãã®å ´åããè¨è¨ã¨ã¯ããã¾ããã"
+"ãã®ç¶æ³ãå®äºãããããã«ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«ã¤ãã¦ãèããªãã"
+"ã°ãªãã¾ããããã¼ã¿ãã¼ã¹å
ã®ããã¯ã®ç«¶åãå°ãªãããããã«ããã¼ã¿ãã¼ã¹ã"
+"ã©ã³ã¶ã¯ã·ã§ã³ã¯å¯è½ãªéãçãããã¹ãã§ããé·ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³"
+"ã¯ãã¢ããªã±ã¼ã·ã§ã³ã®é«ã並åå®è¡æ§ãé»å®³ãã¾ããããã«ãã¦ã¼ã¶ã¼ãèãã¦ã"
+"ãéï¼ä½æ¥åä½ãå®äºããã¾ã§ï¼ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãéããã¾ã¾ã«ãã"
+"ã®ã¯ãããã¦ãã®å ´åããè¨è¨ã¨ã¯ããã¾ããã"
#. Tag: para
-#: transactions.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
"<literal>Session</literal> span several database transactions, or is this a "
@@ -139,20 +133,18 @@
"<literal>Session</literal> and how do you demarcate the database transaction "
"boundaries? These questions are addressed in the following sections."
msgstr ""
-"使¥åä½ã¨ããã¹ã³ã¼ãã¨ã¯ä½ã§ããããï¼ ï¼ã¤ã®Hibernate <literal>Session</"
-"literal> ã¯ã ããã¤ãã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã¾ããããã¨ãã§ããã§"
-"ããããï¼ ã¾ãã¯ãã¹ã³ã¼ãã¨ä¸å¯¾ä¸ã®é¢ä¿ã§ããããï¼ ã㤠<literal>Session</"
-"literal> ãéããéããã¹ãã§ããããï¼ ããã¦ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³"
-"å¢çãã©ã®ããã«åããã®ã§ããããï¼"
+"使¥åä½ã¨ããã¹ã³ã¼ãã¨ã¯ä½ã§ããããï¼ï¼ã¤ã® Hibernate <literal>Session</"
+"literal> ã¯ãããã¤ãã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã¾ããããã¨ãã§ããã§"
+"ããããï¼ã¾ãã¯ãã¹ã³ã¼ãã¨ä¸å¯¾ä¸ã®é¢ä¿ã§ããããï¼ã㤠<literal>Session</"
+"literal> ãéããéããã¹ãã§ããããï¼ããã¦ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³å¢"
+"çãã©ã®ããã«åããã®ã§ããããï¼"
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr "使¥åä½ï¼Unit of workï¼"
#. Tag: para
-#: transactions.xml:94
#, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
@@ -162,14 +154,13 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
#. Tag: para
-#: transactions.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
"not open and close a <literal>Session</literal> for every simple database "
@@ -185,25 +176,24 @@
"clearly defined unit of work. The latter is also more maintainable and "
"extensible."
msgstr ""
-"ï¼ã¤ç®ã¯ã<emphasis>session-per-operation</emphasis> ã¢ã³ããã¿ã¼ã³ã使ã£ã¦ã¯"
-"ããã¾ããã ããªãã¡ãï¼ã¤ã®ã¹ã¬ããã®ä¸ã§ãåç´ãªãã¼ã¿ãã¼ã¹å¼ã³åºãã®ãã³"
-"ã« <literal>Session</literal> ãéãã¦ãéãã¦ã¯ããã¾ããï¼ ãã¡ããããã¼ã¿"
-"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«ã¤ãã¦ãåæ§ã§ãã ã¢ããªã±ã¼ã·ã§ã³ä¸ã®ãã¼ã¿ãã¼ã¹å¼"
-"ã³åºãã¯ã è¨ç»ãããã·ã¼ã±ã³ã¹ï¼planned sequenceï¼ã使ãã ã¢ãããã¯ãªä½æ¥"
-"åä½ã«åé¡ããã¾ãã ï¼ï¼ã¤ã®SQLæãã¨ã«ã³ãããããèªåã³ããããã 使ãããª"
-"ãã¨ããæå³ã§ããããã¨ã«æ³¨æãã¦ãã ããã èªåã³ãããã¯ãSQLã³ã³ã½ã¼ã«ã§"
-"ã¢ãããã¯ãªä½æ¥ãããéã«ä½¿ããã®ã§ãã Hibernateã¯ç´ã¡ã«èªåã³ãããã¢ã¼ã"
-"ãç¡å¹ã«ãã¾ãã ãããã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãç¡å¹åãããã¨ãæå¾
ãã¾"
-"ããï¼ ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¯ãªãã·ã§ã³ã§ã¯ããã¾ããã ãã¼ã¿ãã¼ã¹"
-"ã¨ã®ãã¹ã¦ã®éä¿¡ã¯ããã¼ã¿ã®èªã¿è¾¼ã¿ã§ãã£ã¦ããæ¸ãè¾¼ã¿ã§ãã£ã¦ãã ãã©ã³ã¶"
-"ã¯ã·ã§ã³ã®ä¸ã§è¡ããªããã°ãªãã¾ããã 説æããã¨ããã¼ã¿èªã¿è¾¼ã¿ã«å¯¾ãã¦ãèª"
-"åã³ãããã¯é¿ããã¹ãã§ãã ãªããªãã夿°ã®å°ããªãã©ã³ã¶ã¯ã·ã§ã³ã¯ãæç¢ºã«"
-"å®ç¾©ãããï¼ã¤ã®ä½æ¥åä½ã¨æ¯ã¹ã¦ã ããã©ã¼ãã³ã¹ããããªããã¨ã¯ããã¾ã"
-"ãã å¾è
ã¯ä¿å®æ§ãæ¡å¼µæ§ããããããã¦ãã¾ãã"
+"ï¼ã¤ç®ã¯ã <emphasis>session-per-operation</emphasis> ã¢ã³ããã¿ã¼ã³ã使ã£ã¦"
+"ã¯ããã¾ãããããªãã¡ãï¼ã¤ã®ã¹ã¬ããã®ä¸ã§ãåç´ãªãã¼ã¿ãã¼ã¹å¼ã³åºãã®åº¦"
+"ã« <literal>Session</literal> ãéãã¦ãéãã¦ã¯ããã¾ããããã¡ããããã¼ã¿"
+"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«ã¤ãã¦ãåæ§ã§ããã¢ããªã±ã¼ã·ã§ã³ä¸ã®ãã¼ã¿ãã¼ã¹å¼"
+"ã³åºãã¯ãè¨ç»ãããã·ã¼ã±ã³ã¹ï¼planned sequenceï¼ã使ããã¢ãããã¯ãªä½æ¥å"
+"ä½ã«åé¡ããã¾ããï¼ï¼ã¤ã® SQL æãã¨ã«ã³ãããããèªåã³ããããã使ãããªã"
+"ã¨ããæå³ã§ããããã¨ã«æ³¨æãã¦ãã ãããèªåã³ãããã¯ã SQL ã³ã³ã½ã¼ã«ã§ã¢"
+"ãããã¯ãªä½æ¥ãããéã«ä½¿ããã®ã§ãã Hibernate ã¯ç´ã¡ã«èªåã³ãããã¢ã¼ãã"
+"ç¡å¹ã«ãã¾ãããããã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãç¡å¹åãããã¨ãæå¾
ãã¾"
+"ããï¼ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¯ãªãã·ã§ã³ã§ã¯ããã¾ããããã¼ã¿ãã¼ã¹ã¨"
+"ã®ãã¹ã¦ã®éä¿¡ã¯ããã¼ã¿ã®èªã¿è¾¼ã¿ã§ãã£ã¦ããæ¸ãè¾¼ã¿ã§ãã£ã¦ãããã©ã³ã¶ã¯"
+"ã·ã§ã³ã®ä¸ã§è¡ããªããã°ãªãã¾ããã説æããã¨ããã¼ã¿èªã¿è¾¼ã¿ã«å¯¾ãã¦ãèªå"
+"ã³ãããã¯é¿ããã¹ãã§ãããªããªãã夿°ã®å°ããªãã©ã³ã¶ã¯ã·ã§ã³ã¯ãæç¢ºã«å®"
+"義ãããï¼ã¤ã®ä½æ¥åä½ã¨æ¯ã¹ã¦ãããã©ã¼ãã³ã¹ããããªããã¨ã¯ããã¾ãããå¾"
+"è
ã¯ä¿å®æ§ãæ¡å¼µæ§ããããããã¦ãã¾ãã"
#. Tag: para
-#: transactions.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
"<emphasis>session-per-request</emphasis>. In this model, a request from the "
@@ -216,20 +206,19 @@
"literal>. The relationship between the two is one-to-one and this model is a "
"perfect fit for many applications."
msgstr ""
-"ãã«ãã¦ã¼ã¶ã¼ã®ã¯ã©ã¤ã¢ã³ãï¼ãµã¼ãã¼ã¢ããªã±ã¼ã·ã§ã³ã®ä¸ã§ã æããã使ãã"
-"ããã¿ã¼ã³ã¯ã<emphasis>session-per-request</emphasis> ã§ãã ãã®ã¢ãã«ã®ä¸"
-"ã§ã¯ã ã¯ã©ã¤ã¢ã³ãããï¼Hibernateæ°¸ç¶å層ãåä½ããï¼ãµã¼ãã¼ã¸ãªã¯ã¨ã¹ãã"
-"éããã æ°ããHibernate <literal>Session</literal> ãéããã¾ãã ããã¦ãã"
-"ã®ä½æ¥åä½ã®ä¸ã§ãã¹ã¦ã®ãã¼ã¿ãã¼ã¹å¦çãå®è¡ããã¾ãã 使¥ãå®äºããï¼ãã"
+"ãã«ãã¦ã¼ã¶ã¼ã®ã¯ã©ã¤ã¢ã³ãï¼ãµã¼ãã¼ã¢ããªã±ã¼ã·ã§ã³ã®ä¸ã§ãæããã使ãã"
+"ããã¿ã¼ã³ã¯ã <emphasis>session-per-request</emphasis> ã§ãããã®ã¢ãã«ã®ä¸"
+"ã§ã¯ãã¯ã©ã¤ã¢ã³ãããï¼ Hibernate æ°¸ç¶å層ãåä½ããï¼ãµã¼ãã¼ã¸ãªã¯ã¨ã¹ãã"
+"éãããæ°ãã Hibernate <literal>Session</literal> ãéããã¾ããããã¦ãã"
+"ã®ä½æ¥åä½ã®ä¸ã§ãã¹ã¦ã®ãã¼ã¿ãã¼ã¹å¦çãå®è¡ããã¾ãã使¥ãå®äºããï¼ãã"
"ã¦ãã¯ã©ã¤ã¢ã³ãã¸ã®ã¬ã¹ãã³ã¹ãæºåã§ããï¼æç¹ã§ã session ããã©ãã·ã¥ãã"
-"éãã¾ãã ã¯ã©ã¤ã¢ã³ãã®è¦æ±ãå¦çããããã«ãï¼ã¤ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯"
-"ã·ã§ã³ã使ç¨ããã§ãããã <literal>Session</literal> ãéããéããéã«ã "
-"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã³ããããã¾ãã äºã¤ã®é¢ä¿ã¯ä¸å¯¾ä¸ã§"
-"ãã ãã®ã¢ãã«ã¯å¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«å®å
¨ã«é©åãã¾ãã"
+"éãã¾ããã¯ã©ã¤ã¢ã³ãã®è¦æ±ãå¦çããããã«ãï¼ã¤ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯"
+"ã·ã§ã³ã使ç¨ããã§ãããã <literal>Session</literal> ãéããéããéã«ã"
+"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã³ããããã¾ããäºã¤ã®é¢ä¿ã¯ä¸å¯¾ä¸ã§"
+"ãããã®ã¢ãã«ã¯å¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«å®å
¨ã«é©åãã¾ãã"
#. Tag: para
-#: transactions.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
"management of the \"current session\" to simplify this pattern. Start a "
@@ -243,38 +232,36 @@
"use the Hibernate <literal>Transaction</literal> API shown later in this "
"chapter."
msgstr ""
-"以éã®å®è£
ã«ãã£ã¬ã³ã¸ãã¦ãã ããã Hibernateã¯åç´ãªãã®ãã¿ã¼ã³ã®ããã«ã"
-"äºãçµã¿è¾¼ã¾ãã ãcurrent sessionãã®ç®¡çãæä¾ãã¾ãã ãµã¼ãã¼ãªã¯ã¨ã¹ãã"
-"å¦çããéã¯ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããªããã°ãªãã¾ããã ããã¦ãã¬ã¹ãã³ã¹ã"
-"ã¯ã©ã¤ã¢ã³ãã«éä¿¡ããåã«ãã©ã³ã¶ã¯ã·ã§ã³ãçµãããã¾ãã 好ããªæ¹æ³ã§å®ç¾ã§"
-"ãã¾ããä¸è¬çãªè§£æ±ºç㯠<literal>ServletFilter</literal> ã ãµã¼ãã¹ã¡ã½ãã"
-"ããã¤ã³ãã«ãããã¦AOPã¤ã³ã¿ã¼ã»ãã¿ã¼ã proxy/interception ã³ã³ããã§ãã "
-"EJBã³ã³ããã¯EJBã»ãã·ã§ã³ãã¼ã³ããã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ã㦠ã¢ã¹ãã¯ããã¯ã"
-"ã¹ã«ããããå®è£
ã®æ¨æºçãªæ¹æ³ã§ãï¼CMTã«ãã宣è¨çï¼ã ããã°ã©ã ã«ãããã©"
-"ã³ã¶ã¯ã·ã§ã³å¢çã使ãã¨æ±ºããå ´åã ç°¡åã«ä½¿ããããäºææ§ã®ããã³ã¼ãã«ãã"
-"ããã«ã ãã®ç« ã®å¾ã®ã»ãã«ããHibernate <literal>Transaction</literal> APIã®"
-"ã»ããããã§ãã"
+"以éã®å®è£
ã«ãã£ã¬ã³ã¸ãã¦ãã ããã Hibernate ã¯åç´ãªãã®ãã¿ã¼ã³ã®ããã«ã"
+"äºãçµã¿è¾¼ã¾ãã \"current session\" ã®ç®¡çãæä¾ãã¾ãããµã¼ãã¼ãªã¯ã¨ã¹ãã"
+"å¦çããéã¯ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããªããã°ãªãã¾ãããããã¦ãã¬ã¹ãã³ã¹ã"
+"ã¯ã©ã¤ã¢ã³ãã«éä¿¡ããåã«ãã©ã³ã¶ã¯ã·ã§ã³ãçµãããã¾ãã好ããªæ¹æ³ã§å®ç¾ã§"
+"ãã¾ããä¸è¬çãªè§£æ±ºç㯠<literal>ServletFilter</literal> ããµã¼ãã¹ã¡ã½ãã"
+"ããã¤ã³ãã«ããã㦠AOP ã¤ã³ã¿ã¼ã»ãã¿ã¼ã proxy/interception ã³ã³ããã§"
+"ãã EJB ã³ã³ãã㯠EJB ã»ãã·ã§ã³ Bean ããã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ãã¦ã¢ã¹ãã¯"
+"ããã¯ãã¹ã«ããããå®è£
ã®æ¨æºçãªæ¹æ³ã§ãï¼ CMT ã«ãã宣è¨çï¼ãããã°ã©ã ã«"
+"ãããã©ã³ã¶ã¯ã·ã§ã³å¢çã使ãã¨æ±ºããå ´åãç°¡åã«ä½¿ããããäºææ§ã®ããã³ã¼"
+"ãã«ããããã«ããã®ç« ã®å¾ã®ã»ãã«ãã Hibernate <literal>Transaction</"
+"literal> API ã®ã»ããããã§ãã"
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãã¯ãå¿
è¦ãªã¨ãã«ã©ãã§ããä½åã§ãã åã« "
-"<literal>sessionFactory.getCurrentSession()</literal> ãå¼ã³åºãã ãã§ ãç¾å¨"
-"ã®ã»ãã·ã§ã³ãã«ã¢ã¯ã»ã¹ã§ãã¾ãã ç¾å¨ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¸ã® "
-"<literal>ã»ãã·ã§ã³</literal> ã常ã«åå¾ãã¾ãã ãªã½ã¼ã¹ã»ãã¼ã«ã«ãªç°å¢ãã"
-"ããã¯JTAç°å¢ãæ§æããªããã°ãªãã¾ãã ï¼<xref linkend=\"architecture-"
+"ã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãã¯ãå¿
è¦ãªã¨ãã«ã©ãã§ããä½åã§ããåã« "
+"<literal>sessionFactory.getCurrentSession()</literal> ãå¼ã³åºãã ãã§ãç¾å¨"
+"ã®ã»ãã·ã§ã³ãã«ã¢ã¯ã»ã¹ã§ãã¾ããç¾å¨ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¸ã® "
+"<literal>ã»ãã·ã§ã³</literal> ã常ã«åå¾ãã¾ãããªã½ã¼ã¹ãã¼ã«ã«ãªç°å¢ããã"
+"ã㯠JTA ç°å¢ãæ§æããªããã°ãªãã¾ãã ï¼<xref linkend=\"architecture-"
"current-session\"/> ãåç
§ãã¦ãã ããï¼ã"
#. Tag: para
-#: transactions.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
"transaction until the \"view has been rendered\". This is especially useful "
@@ -287,24 +274,22 @@
"examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
"ã¨ãã©ããããã¥ã¼ãæç»ãããã¾ã§ <literal>ã»ãã·ã§ã³</literal> ã¨ãã¼ã¿ãã¼"
-"ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¹ã³ã¼ããæ¡å¼µããã¨ä¾¿å©ãªãã¨ãããã¾ãã ããã¯ãè¦æ±ã®"
-"å¦çã¨æç»ã®ãã§ã¼ãºãåãã¦ãã ãµã¼ãã¬ããã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ç¹ã«å½¹ç«"
-"ã¡ã¾ãã ç¬èªã®ã¤ã³ã¿ã¼ã»ãã¿ãå®è£
ããã°ã ãã¥ã¼ãæç»ããã¾ã§ãã¼ã¿ãã¼ã¹"
-"ãã©ã³ã¶ã¯ã·ã§ã³ãæ¡å¼µããã®ã¯ç°¡åã§ãã ããããã³ã³ãã管çãã©ã³ã¶ã¯ã·ã§ã³"
-"ã®EJBã«é ¼ãå ´åã¯ãç°¡åã«ã¯ã§ãã¾ããã ãªããªãããã¥ã¼ã®æç»ãéå§ããå"
-"ã«ãEJBã®ã¡ã½ããããªã¿ã¼ã³ããéã«ã ãã©ã³ã¶ã¯ã·ã§ã³ãå®äºããããã§ãã ã"
-"ã® <emphasis>Open Session in View</emphasis> ãã¿ã¼ã³ã«é¢é£ãããã³ãã¨ä¾ã«ã¤"
-"ãã¦ã¯ã Hibernateã®Webãµã¤ãããã©ã¼ã©ã ãåç
§ãã¦ãã ããã"
+"ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¹ã³ã¼ããæ¡å¼µããã¨ä¾¿å©ãªãã¨ãããã¾ããããã¯ãè¦æ±ã®"
+"å¦çã¨æç»ã®ãã§ã¼ãºãåãã¦ãããµã¼ãã¬ããã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ç¹ã«å½¹ç«"
+"ã¡ã¾ããç¬èªã®ã¤ã³ã¿ã¼ã»ãã¿ãå®è£
ããã°ããã¥ã¼ãæç»ããã¾ã§ãã¼ã¿ãã¼ã¹ã"
+"ã©ã³ã¶ã¯ã·ã§ã³ãæ¡å¼µããã®ã¯ç°¡åã§ããããããã³ã³ãã管çãã©ã³ã¶ã¯ã·ã§ã³ã® "
+"EJB ã«é ¼ãå ´åã¯ãç°¡åã«ã¯ã§ãã¾ããããªããªãããã¥ã¼ã®æç»ãéå§ããåã«ã "
+"EJB ã®ã¡ã½ããããªã¿ã¼ã³ããéã«ããã©ã³ã¶ã¯ã·ã§ã³ãå®äºããããã§ãããã® "
+"<emphasis>Open Session in View</emphasis> ãã¿ã¼ã³ã«é¢é£ãããã³ãã¨ä¾ã«ã¤ã"
+"ã¦ã¯ã Hibernate ã® Web ãµã¤ãããã©ã¼ã©ã ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr "é·ã対話"
#. Tag: para
-#: transactions.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
"work. Many business processes require a whole series of interactions with "
@@ -312,51 +297,47 @@
"applications, it is not acceptable for a database transaction to span a user "
"interaction. Consider the following example:"
msgstr ""
-"session-per-requestãã¿ã¼ã³ã¯ã使¥åä½ãè¨è¨ããéã«å½¹ç«ã¤èãã¨ããã ãã§ã¯"
-"ããã¾ããã å¤ãã®ãã¸ãã¹ããã»ã¹ã¯ãã¦ã¼ã¶ã¼ã¨ã®ä¸é£ã®ç¸äºä½ç¨å
¨ä½ãè¦æ±ã"
-"ã¾ãã ãã®ç¸äºä½ç¨ã«ã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ãå«ã¾ãã¾ãã Webã¨ã¨ã³ã¿ã¼ãã©"
-"ã¤ãºã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã ã¦ã¼ã¶ã¨ã®ç¸äºä½ç¨ã«"
-"ã¾ã§æ¸¡ããã¨ã¯è¨±ããã¾ããã æ¬¡ã®ä¾ãããèãã¦ã¿ã¦ãã ããã"
+"session-per-request ãã¿ã¼ã³ã¯ã使¥åä½ãè¨è¨ããéã«å½¹ç«ã¤èãã¨ããã ãã§"
+"ã¯ããã¾ãããå¤ãã®ãã¸ãã¹ããã»ã¹ã¯ãã¦ã¼ã¶ã¼ã¨ã®ä¸é£ã®ç¸äºä½ç¨å
¨ä½ãè¦æ±"
+"ãã¾ãããã®ç¸äºä½ç¨ã«ã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ãå«ã¾ãã¾ãã Web ã¨ã¨ã³ã¿ã¼ã"
+"ã©ã¤ãºã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã¦ã¼ã¶ã¼ã¨ã®ç¸äºä½"
+"ç¨ã«ã¾ã§æ¸¡ããã¨ã¯è¨±ããã¾ãããæ¬¡ã®ä¾ãããèãã¦ã¿ã¦ãã ãã: "
#. Tag: para
-#: transactions.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
"loaded in a particular <literal>Session</literal> and database transaction. "
"The user is free to modify the objects."
msgstr ""
"ãã¤ã¢ãã°ã®æåã®ç»é¢ãéããåã
ã® <literal>Session</literal> ã¨ãã¼ã¿ãã¼"
-"ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸ã§ãã¼ãããããã¼ã¿ãã¦ã¼ã¶ã¼ã«è¦ãã¾ãã ã¦ã¼ã¶ã¼ã¯ãª"
+"ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸ã§ãã¼ãããããã¼ã¿ãã¦ã¼ã¶ã¼ã«è¦ãã¾ããã¦ã¼ã¶ã¼ã¯ãª"
"ãã¸ã§ã¯ããèªç±ã«ä¿®æ£ã§ãã¾ãã"
#. Tag: para
-#: transactions.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
"be made persistent. The user also expects that they were the only person "
"editing this information and that no conflicting modification has occurred."
msgstr ""
-"5åå¾ã«ã¦ã¼ã¶ã¼ã¯ãSaveããã¯ãªãã¯ããä¿®æ£ãæ°¸ç¶åãããã®ãæå¾
ãã¾ãã ã¾"
-"ãããã®æ
å ±ãç·¨éããã®ã¯èªåï¼äººã ãã§ã ä¿®æ£ã®ã³ã³ããªã¯ãã¯çºçããªãã¨æ"
+"5åå¾ã«ã¦ã¼ã¶ã¼ã¯ \"Save\" ãã¯ãªãã¯ããä¿®æ£ãæ°¸ç¶åãããã®ãæå¾
ãã¾ããã¾"
+"ãããã®æ
å ±ãç·¨éããã®ã¯èªåï¼äººã ãã§ãä¿®æ£ã®ã³ã³ããªã¯ãã¯çºçããªãã¨æ"
"å¾
ãã¾ãã"
#. Tag: para
-#: transactions.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
"<emphasis>conversation</emphasis> or <emphasis>application transaction</"
"emphasis>. There are many ways to implement this in your application."
msgstr ""
"ãã®ä½æ¥åä½ãï¼ã¦ã¼ã¶ã¼ã®è¦ç¹ã§ï¼é·æã® <emphasis>対話</emphasis> ï¼ããã"
-"ã¯ã<emphasis>ã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³</emphasis> ï¼ã¨å¼ã³ã¾ãã ã¢ã"
+"ã¯ã<emphasis>ã¢ããªã±ã¼ã·ã§ã³ãã©ã³ã¶ã¯ã·ã§ã³</emphasis> ï¼ã¨å¼ã³ã¾ããã¢ã"
"ãªã±ã¼ã·ã§ã³ã«ãããå®è£
ããæ¹æ³ã¯ããããããã¾ãã"
#. Tag: para
-#: transactions.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
"database transaction open during user think time, with locks held in the "
@@ -364,16 +345,15 @@
"atomicity. This is an anti-pattern, since lock contention would not allow "
"the application to scale with the number of concurrent users."
msgstr ""
-"æåã«æãã¤ãå®è£
ã¯ãã¦ã¼ã¶ã¼ãèãã¦ããéã<literal>Session</literal> ã¨"
-"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãéããã¾ã¾ã«ãã¦ãããã¨ã§ãã åæã«ä¿®æ£ãã"
-"ããåé¢ã¨ååæ§ãä¿è¨¼ãããããã«ã ãã¼ã¿ãã¼ã¹å
ã®ããã¯ã¯ä¿æããã¾ã¾ã«ã"
-"ã¾ãã ãã¡ãããããã¯ã¢ã³ããã¿ã¼ã³ã§ãã ãªããªããããã¯ã®ç«¶åãçºçãã"
-"ã¨ã ã¢ããªã±ã¼ã·ã§ã³ãåæã¦ã¼ã¶ã¼æ°ã«å¿ãã¦ã¹ã±ã¼ã«ã¢ããã§ããªããªãããã§"
+"æåã«æãã¤ãå®è£
ã¯ãã¦ã¼ã¶ã¼ãèãã¦ããéã <literal>Session</literal> ã¨"
+"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãéããã¾ã¾ã«ãã¦ãããã¨ã§ããåæã«ä¿®æ£ãã"
+"ããåé¢ã¨ååæ§ãä¿è¨¼ãããããã«ããã¼ã¿ãã¼ã¹å
ã®ããã¯ã¯ä¿æããã¾ã¾ã«ã"
+"ã¾ãããã¡ãããããã¯ã¢ã³ããã¿ã¼ã³ã§ãããªããªããããã¯ã®ç«¶åãçºçãã"
+"ã¨ãã¢ããªã±ã¼ã·ã§ã³ãåæã¦ã¼ã¶ã¼æ°ã«å¿ãã¦ã¹ã±ã¼ã«ã¢ããã§ããªããªãããã§"
"ãã"
#. Tag: para
-#: transactions.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
"In this case, maintaining isolation of business processes becomes the "
@@ -384,31 +364,29 @@
"several request/response cycles). This is easier to implement than it might "
"sound, especially if you utilize some of Hibernate's features:"
msgstr ""
-"æããã«ã対話ãå®è£
ããããã«ã¯ã ããã¤ãã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã使"
-"ç¨ããã¹ãã§ãã ãã®å ´åããã¸ãã¹ããã»ã¹ã®åé¢ãç¶æãããã¨ã¯ã ã¢ããª"
-"ã±ã¼ã·ã§ã³å±¤ã®è²¬åã®ï¼ã¤ã«ãªãã¾ãã ï¼ã¤ã®å¯¾è©±ã¯ã é常ããã¤ãã®ãã¼ã¿ãã¼"
-"ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã«åã³ã¾ãã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ï¼ã¤ã®ã¿ï¼æå¾ã®"
-"ï¼ã¤ï¼ãæ´æ°ãããã¼ã¿ãä¿åãã ä»ã¯ãã¼ã¿ãèªãã ãã§ããã°ãããã¯ã¢ããã"
-"ã¯ã§ã ï¼ä¾ãã°ãããã¤ãã®è¦æ±ï¼å¿çãç¹°ãè¿ãã¦ã£ã¶ã¼ãå½¢å¼ã®ãã¤ã¢ã"
-"ã°ï¼ã ããã¯èããããå®è£
ããã»ããç°¡åã§ãã Hibernateã®æ©è½ã使ãã®ã§ãã"
-"ã°ãç¹ã«ç°¡åã§ãã"
+"æããã«ã対話ãå®è£
ããããã«ã¯ãããã¤ãã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã使"
+"ç¨ããã¹ãã§ãããã®å ´åããã¸ãã¹ããã»ã¹ã®åé¢ãç¶æãããã¨ã¯ãã¢ããªã±ã¼"
+"ã·ã§ã³å±¤ã®è²¬åã®ï¼ã¤ã«ãªãã¾ããï¼ã¤ã®å¯¾è©±ã¯ãé常ããã¤ãã®ãã¼ã¿ãã¼ã¹ãã©"
+"ã³ã¶ã¯ã·ã§ã³ã«åã³ã¾ãããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ï¼ã¤ã®ã¿ï¼æå¾ã®ï¼ã¤ï¼"
+"ãæ´æ°ãããã¼ã¿ãä¿åããä»ã¯ãã¼ã¿ãèªãã ãã§ããã°ãããã¯ã¢ãããã¯ã§ã"
+"ï¼ä¾ãã°ãããã¤ãã®è¦æ±ï¼å¿çãç¹°ãè¿ãã¦ã£ã¶ã¼ãå½¢å¼ã®ãã¤ã¢ãã°ï¼ãããã¯"
+"èããããå®è£
ããã»ããç°¡åã§ãã Hibernate ã®æ©è½ã使ãã®ã§ããã°ãç¹ã«ç°¡å"
+"ã§ã:"
#. Tag: para
-#: transactions.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
"optimistic concurrency control for you. It can automatically detect if a "
"concurrent modification occurred during user think time. Check for this at "
"the end of the conversation."
msgstr ""
-"<emphasis>èªåãã¼ã¸ã§ãã³ã°</emphasis> - Hibernateã¯èªåçã«æ¥½è¦³çåæå®è¡å¶"
-"御ãã§ãã¾ãã ã¦ã¼ã¶ã¼ãèãã¦ããéã«åæã«ä¿®æ£ããããå ´åãèªåçã«æ¤åºã§"
-"ãã¾ãã é常ã対話ã®çµäºæã«ãã§ãã¯ããã ãã§ãã"
+"<emphasis>èªåãã¼ã¸ã§ãã³ã°</emphasis> - Hibernate ã¯èªåçã«æ¥½è¦³çåæå®è¡"
+"å¶å¾¡ãã§ãã¾ããã¦ã¼ã¶ã¼ãèãã¦ããéã«åæã«ä¿®æ£ããããå ´åãèªåçã«æ¤åº"
+"ã§ãã¾ããé常ã対話ã®çµäºæã«ãã§ãã¯ããã ãã§ãã"
#. Tag: para
-#: transactions.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
"<emphasis>session-per-request</emphasis> pattern, all loaded instances will "
@@ -418,16 +396,15 @@
"versioning is used to isolate concurrent modifications."
msgstr ""
"<emphasis>åé¢ï¼Detachedï¼ãªãã¸ã§ã¯ã</emphasis> - ãã§ã«è°è«ãã "
-"<emphasis>session-per-request</emphasis> ãã¿ã¼ã³ã使ãã¨æ±ºå®ããå ´åã ãã¼"
-"ãããããã¹ã¦ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã¦ã¼ã¶ãèãã¦ããéã¯ã ã»ãã·ã§ã³ããåé¢ã"
-"ããç¶æ
ã«ãªãã¾ãã ãªãã¸ã§ã¯ããã»ãã·ã§ã³ã«å追å ããä¿®æ£ãæ°¸ç¶åã§ãã¾"
-"ãã ããã <emphasis>session-per-request-with-detached-objects</emphasis> ã"
-"ã¿ã¼ã³ã¨å¼ã³ã¾ãã èªåãã¼ã¸ã§ãã³ã°ã使ããã¨ã§ãåæã«è¡ãããä¿®æ£ãåé¢ã§"
+"<emphasis>session-per-request</emphasis> ãã¿ã¼ã³ã使ãã¨æ±ºå®ããå ´åããã¼ã"
+"ããããã¹ã¦ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã¦ã¼ã¶ã¼ãèãã¦ããéã¯ãã»ãã·ã§ã³ããåé¢ã"
+"ããç¶æ
ã«ãªãã¾ãããªãã¸ã§ã¯ããã»ãã·ã§ã³ã«å追å ããä¿®æ£ãæ°¸ç¶åã§ãã¾"
+"ããããã <emphasis>session-per-request-with-detached-objects</emphasis> ã"
+"ã¿ã¼ã³ã¨å¼ã³ã¾ããèªåãã¼ã¸ã§ãã³ã°ã使ããã¨ã§ãåæã«è¡ãããä¿®æ£ãåé¢ã§"
"ãã¾ãã"
#. Tag: para
-#: transactions.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
"<literal>Session</literal> can be disconnected from the underlying JDBC "
@@ -438,18 +415,17 @@
"<literal>Session</literal> will not be allowed to be flushed automatically, "
"but explicitly."
msgstr ""
-"<emphasis>æ¡å¼µï¼ãããã¯ãé·ãï¼ã»ãã·ã§ã³</emphasis> - Hibernateã® "
-"<literal>Session</literal> ã¯ã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã³ããããã"
-"å¾ã è£ã§çµã³ã¤ãã¦ããJDBCã³ãã¯ã·ã§ã³ãåæã§ãã¾ãã ããã¦ãã¯ã©ã¤ã¢ã³ã"
-"ããã®æ°ããè¦æ±ãçºçããéã«ã忥ç¶ã§ãã¾ãã ãã®ãã¿ã¼ã³ã¯ã"
+"<emphasis>æ¡å¼µï¼ãããã¯ãé·ãï¼ã»ãã·ã§ã³</emphasis> - Hibernate ã® "
+"<literal>Session</literal> ã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã³ãããããå¾ã"
+"è£ã§çµã³ã¤ãã¦ãã JDBC ã³ãã¯ã·ã§ã³ãåæã§ãã¾ããããã¦ãã¯ã©ã¤ã¢ã³ããã"
+"ã®æ°ããè¦æ±ãçºçããéã«ã忥ç¶ã§ãã¾ãããã®ãã¿ã¼ã³ã¯ã "
"<emphasis>session-per-conversation</emphasis> ã¨ããåã§ç¥ããã¦ããããªã"
-"ã¸ã§ã¯ããã»ãã·ã§ã³ã¸å追å ãããã¨ããä¸è¦ã«ãã¾ãã èªåãã¼ã¸ã§ãã³ã°ã使"
-"ããã¨ã§ãåæã«è¡ãããä¿®æ£ãåé¢ã§ãã¾ãã é常 <literal>Session</literal> "
-"ãèªåçã«ãã©ãã·ã¥ãããã æç¤ºçã«ãã©ãã·ã¥ãã¾ãã"
+"ã¸ã§ã¯ããã»ãã·ã§ã³ã¸å追å ãããã¨ããä¸è¦ã«ãã¾ããèªåãã¼ã¸ã§ãã³ã°ã使"
+"ããã¨ã§ãåæã«è¡ãããä¿®æ£ãåé¢ã§ãã¾ããé常 <literal>Session</literal> "
+"ãèªåçã«ãã©ãã·ã¥ããããæç¤ºçã«ãã©ãã·ã¥ãã¾ãã"
#. Tag: para
-#: transactions.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
"<emphasis>session-per-conversation</emphasis> have advantages and "
@@ -457,57 +433,50 @@
"the context of optimistic concurrency control."
msgstr ""
"<emphasis>session-per-request-with-detached-objects</emphasis> 㨠"
-"<emphasis>session-per-conversation</emphasis> ã®ï¼ã¤ã¯ã å©ç¹ã¨æ¬ ç¹ãæã£ã¦ã"
-"ã¾ãã ããã«ã¤ãã¦ã¯ããã®ç« ã®å¾ã®ã»ãã§ã楽観çåæå®è¡å¶å¾¡ã®æèã®ä¸ã§è°è«"
+"<emphasis>session-per-conversation</emphasis> ã®ï¼ã¤ã¯ãå©ç¹ã¨æ¬ ç¹ãæã£ã¦ã"
+"ã¾ããããã«ã¤ãã¦ã¯ããã®ç« ã®å¾ã®ã»ãã§ã楽観çåæå®è¡å¶å¾¡ã®æèã®ä¸ã§è°è«"
"ãã¾ãã"
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
msgstr "ãªãã¸ã§ã¯ãèå¥åãèãã"
#. Tag: para
-#: transactions.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
"different <literal>Session</literal>s. However, an instance of a persistent "
"class is never shared between two <literal>Session</literal> instances. It "
"is for this reason that there are two different notions of identity:"
msgstr ""
-"ã¢ããªã±ã¼ã·ã§ã³ã¯ãï¼ã¤ã®ç°ãªã <literal>Session</literal> ãã åãæ°¸ç¶ç¶æ
"
-"ã«åæã«ã¢ã¯ã»ã¹ã§ãã¾ãã ããããï¼ã¤ã® <literal>Session</literal> ã¤ã³ã¹ã¿"
-"ã³ã¹ã æ°¸ç¶æ§ã¯ã©ã¹ã®ï¼ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ãå
±æãããã¨ã¯ã§ãã¾ããã ããã«ã"
-"èå¥åã«ã¯ï¼ã¤ã®ç°ãªãæ¦å¿µãããã¨ãããã¨ã«ãªãã¾ãã"
+"ã¢ããªã±ã¼ã·ã§ã³ã¯ãï¼ã¤ã®ç°ãªã <literal>Session</literal> ããåãæ°¸ç¶ç¶æ
"
+"ã«åæã«ã¢ã¯ã»ã¹ã§ãã¾ããããããï¼ã¤ã® <literal>Session</literal> ã¤ã³ã¹ã¿"
+"ã³ã¹ãæ°¸ç¶æ§ã¯ã©ã¹ã®ï¼ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ãå
±æãããã¨ã¯ã§ãã¾ãããããã«ãè"
+"å¥åã«ã¯ï¼ã¤ã®ç°ãªãæ¦å¿µãããã¨ãããã¨ã«ãªãã¾ãã"
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr "ãã¼ã¿ãã¼ã¹èå¥å"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
-msgstr "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
+msgstr "<literal>foo.getId().equals( bar.getId() )</literal>"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
-msgstr "JVMèå¥å"
+msgstr "JVM èå¥å"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr ""
#. Tag: para
-#: transactions.xml:295
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
"literal> (i.e., in the scope of a <literal>Session</literal>), the two "
@@ -518,18 +487,17 @@
"resolved using an optimistic approach and automatic versioning at flush/"
"commit time."
msgstr ""
-"<emphasis>åã
ã®</emphasis><literal>Session</literal> ã«è¿½å ããããªãã¸ã§ã¯"
+"<emphasis>ç¹å®ã®</emphasis><literal>Session</literal> ã«è¿½å ããããªãã¸ã§ã¯"
"ãã«ã¨ã£ã¦ ï¼ããªãã¡ãï¼ã¤ã® <literal>Session</literal> ã®ã¹ã³ã¼ãã®ä¸ã§"
-"ã¯ï¼ãï¼ã¤ã®æ¦å¿µã¯åãã§ãã ãã¼ã¿ãã¼ã¹å䏿§ã¨JVMå䏿§ãä¸è´ãããã¨ãã"
-"Hibernateãä¿è¨¼ãã¾ãã ããããã¢ããªã±ã¼ã·ã§ã³ãï¼ã¤ã®ç°ãªãã»ãã·ã§ã³ãã "
-"ãåããï¼æ°¸ç¶æ§èå¥åã®ï¼ãã¸ãã¹ãªãã¸ã§ã¯ãã«åæã«ã¢ã¯ã»ã¹ããéãã ï¼ã¤"
-"ã®ã¤ã³ã¹ã¿ã³ã¹ã¯å®éã«ï¼JVMèå¥åãï¼ãç°ãªããã¾ãã æ¥½è¦³çã¢ããã¼ãã«ãã£"
-"ã¦ãï¼èªåãã¼ã¸ã§ãã³ã°ã®ï¼ãã©ãã·ã¥ï¼ã³ãããæã« ã³ã³ããªã¯ãã解決ããã¾"
-"ãã"
+"ã¯ï¼ ãï¼ã¤ã®æ¦å¿µã¯åãã§ãããã¼ã¿ãã¼ã¹å䏿§ã¨ JVM å䏿§ãä¸è´ãããã¨"
+"ãã Hibernate ãä¿è¨¼ãã¾ããããããã¢ããªã±ã¼ã·ã§ã³ãï¼ã¤ã®ç°ãªãã»ãã·ã§ã³"
+"ãããåããï¼æ°¸ç¶æ§èå¥åã®ï¼ãã¸ãã¹ãªãã¸ã§ã¯ãã«åæã«ã¢ã¯ã»ã¹ããéãã"
+"ï¼ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ã¯å®éã«ï¼ JVM èå¥åãï¼ãç°ãªããã¾ããæ¥½è¦³çã¢ããã¼ãã«"
+"ãã£ã¦ã ï¼èªåãã¼ã¸ã§ãã³ã°ã®ï¼ ãã©ãã·ã¥ï¼ã³ãããæã«ã³ã³ããªã¯ãã解決"
+"ããã¾ãã"
#. Tag: para
-#: transactions.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
"It also provides the best scalability, since guaranteeing identity in single-"
@@ -539,17 +507,16 @@
"<literal>Session</literal>. Within a <literal>Session</literal> the "
"application can safely use <literal>==</literal> to compare objects."
msgstr ""
-"ãã®ã¢ããã¼ãã§ã¯ãHibernateã¨ãã¼ã¿ãã¼ã¹ã«åæå®è¡ã«ã¤ãã¦ã®å¿é
ãæ®ãã¾"
-"ãã 䏿¹ã§ãæé«ã®ã¹ã±ã¼ã©ããªãã£ãæä¾ããã¾ãã ãªããªããï¼ã¹ã¬ããã®ä½"
-"æ¥åä½ã®ä¸ã§ä¸ææ§ãä¿è¨¼ãããã°ã é«ä¾¡ãªããã¯ãåæåãä¸è¦ã«ãªãããã§"
-"ãã <literal>Session</literal> ãã¨ã«ï¼ã¤ã®ã¹ã¬ãããè²¼ãä»ããéãã ã¢ããª"
-"ã±ã¼ã·ã§ã³ã¯ãã¸ãã¹ãªãã¸ã§ã¯ããsynchronizeããå¿
è¦ã¯ããã¾ããã "
+"ãã®ã¢ããã¼ãã§ã¯ã Hibernate ã¨ãã¼ã¿ãã¼ã¹ã«åæå®è¡ã«ã¤ãã¦ã®å¿é
ãæ®ãã¾"
+"ãã䏿¹ã§ãæé«ã®ã¹ã±ã¼ã©ããªãã£ãæä¾ããã¾ãããªããªããï¼ã¹ã¬ããã®ä½æ¥"
+"åä½ã®ä¸ã§ä¸ææ§ãä¿è¨¼ãããã°ãé«ä¾¡ãªããã¯ãåæåãä¸è¦ã«ãªãããã§ãã "
+"<literal>Session</literal> ãã¨ã«ï¼ã¤ã®ã¹ã¬ãããè²¼ãä»ããéããã¢ããªã±ã¼"
+"ã·ã§ã³ã¯ãã¸ãã¹ãªãã¸ã§ã¯ãã synchronize ããå¿
è¦ã¯ããã¾ããã "
"<literal>Session</literal> å
ã§ã¯ãã¢ããªã±ã¼ã·ã§ã³ã¯ãªãã¸ã§ã¯ããæ¯è¼ããã"
"ãã«ã <literal>==</literal> ãå®å
¨ã«ä½¿ç¨ã§ãã¾ãã"
#. Tag: para
-#: transactions.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
"<literal>Session</literal> might produce unexpected results. This might "
@@ -572,33 +539,31 @@
"that this is not a Hibernate issue, but simply how Java object identity and "
"equality has to be implemented."
msgstr ""
-"ããã©ãã<literal>Session</literal> ã®å¤ã§ <literal>==</literal> ã使ãã¢ã"
-"ãªã±ã¼ã·ã§ã³ã¯ãäºæããªãçµæã«ééãã¾ãã ããã¯äºæããªãå ´æã§èµ·ãããã¾"
-"ãã ä¾ãã°ãï¼ã¤ã®åé¢ã¤ã³ã¹ã¿ã³ã¹ãåã <literal>Set</literal> ã« putããã¨"
-"ããªã©ã§ãã 両æ¹ã¨ãåããã¼ã¿ãã¼ã¹èå¥åãæã¡ã¾ãï¼ããªãã¡ãåãè¡ã表ã"
-"ã¾ãï¼ã ããããåé¢ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã®JVMèå¥åã¯å½ç¶ä¿è¨¼ããã¾ããã éçº"
+"ããã©ãã <literal>Session</literal> ã®å¤ã§ <literal>==</literal> ã使ãã¢ã"
+"ãªã±ã¼ã·ã§ã³ã¯ãäºæããªãçµæã«ééãã¾ããããã¯äºæããªãå ´æã§èµ·ãããã¾"
+"ããä¾ãã°ãï¼ã¤ã®åé¢ã¤ã³ã¹ã¿ã³ã¹ãåã <literal>Set</literal> ã« put ããã¨"
+"ããªã©ã§ãã両æ¹ã¨ãåããã¼ã¿ãã¼ã¹èå¥åãæã¡ã¾ãï¼ããªãã¡ãåãè¡ã表ã"
+"ã¾ãï¼ãããããåé¢ç¶æ
ã®ã¤ã³ã¹ã¿ã³ã¹ã® JVM èå¥åã¯å½ç¶ä¿è¨¼ããã¾ãããéçº"
"è
ã¯ãæ°¸ç¶æ§ã¯ã©ã¹ã® <literal>equals()</literal> 㨠<literal>hashCode()</"
"literal> ã¡ã½ããããªã¼ãã¼ã©ã¤ããããªãã¸ã§ã¯ãç価æ§ã®æ¦å¿µãå®è£
ãã¹ãã§"
-"ãã è¦åãï¼ã¤ããã¾ããç価æ§ã®å®è£
ã«ãã¼ã¿ãã¼ã¹èå¥åã使ããªãã§ãã ã"
-"ãã ã¦ãã¼ã¯ãªï¼æ®éã¯ä¸å¤ã®ï¼å±æ§ã®çµã¿åããã§ãããã¸ãã¹ãã¼ã使ã£ã¦ãã "
-"ããã ããã䏿ãªãã¸ã§ã¯ããæ°¸ç¶åãããå ´åããã¼ã¿ãã¼ã¹èå¥åãå¤ããã¾"
-"ãã 䏿ãªãã¸ã§ã¯ããï¼é常åé¢ã¤ã³ã¹ã¿ã³ã¹ã¨å
±ã«ï¼ <literal>Set</literal> "
-"ã«ä¿æããå ´åãããã·ã¥ã³ã¼ããå¤ããã¨ãããã¨ã¯ã<literal>Set</literal> ã®"
-"å¥ç´ãç ´ãã¨ãããã¨ã§ãã ãã¸ãã¹ãã¼ã®ããã®å±æ§ã¯ããã¼ã¿ãã¼ã¹ã®ä¸»ãã¼ã»"
-"ã©å®å®ãã¹ãã§ã¯ãªãã§ãã ãªãã¸ã§ã¯ããåã <literal>Set</literal> ã®ä¸ã«ã"
-"ãéã ããå®å®ãä¿è¨¼ãã¹ãã§ãã ãã®åé¡ã®ããå¾¹åºçãªè°è«ã¯ãHibernateã®Web"
-"ãµã¤ããåç
§ãã¦ãã ããã ã¾ããããã¯Hibernateã®åé¡ã§ã¯ãªããåã«Javaãªã"
-"ã¸ã§ã¯ãã®èå¥åãç価æ§ã ã©ã®ããã«å®è£
ãã¹ããã¨ãããã¨ã§ãã"
+"ããè¦åãï¼ã¤ããã¾ããç価æ§ã®å®è£
ã«ãã¼ã¿ãã¼ã¹èå¥åã使ããªãã§ãã ã"
+"ããã¦ãã¼ã¯ãªï¼æ®éã¯ä¸å¤ã®ï¼å±æ§ã®çµã¿åããã§ãããã¸ãã¹ãã¼ã使ã£ã¦ãã "
+"ãããããã䏿ãªãã¸ã§ã¯ããæ°¸ç¶åãããå ´åããã¼ã¿ãã¼ã¹èå¥åãå¤ããã¾"
+"ãã䏿ãªãã¸ã§ã¯ããï¼é常åé¢ã¤ã³ã¹ã¿ã³ã¹ã¨å
±ã«ï¼ <literal>Set</literal> "
+"ã«ä¿æããå ´åãããã·ã¥ã³ã¼ããå¤ããã¨ãããã¨ã¯ã <literal>Set</literal> "
+"ã®å¥ç´ãç ´ãã¨ãããã¨ã§ãããã¸ãã¹ãã¼ã®ããã®å±æ§ã¯ããã¼ã¿ãã¼ã¹ã®ä¸»ãã¼"
+"ã»ã©å®å®ãã¹ãã§ã¯ãªãã§ãããªãã¸ã§ã¯ããåã <literal>Set</literal> ã®ä¸ã«"
+"ããéã ããå®å®ãä¿è¨¼ãã¹ãã§ãããã®åé¡ã®ããå¾¹åºçãªè°è«ã¯ã Hibernate "
+"ã® Web ãµã¤ããåç
§ãã¦ãã ãããã¾ãããã㯠Hibernate ã®åé¡ã§ã¯ãªããåã« "
+"Java ãªãã¸ã§ã¯ãã®èå¥åãç価æ§ãã©ã®ããã«å®è£
ãã¹ããã¨ãããã¨ã§ãã"
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr "ä¸è¬çãªåé¡"
#. Tag: para
-#: transactions.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
"or <emphasis>session-per-application</emphasis> (there are, however, rare "
@@ -607,13 +572,12 @@
"implications before making a design decision:"
msgstr ""
"<emphasis>session-per-user-session</emphasis> 㨠<emphasis>session-per-"
-"application</emphasis> ã¢ã³ããã¿ã¼ã³ ã¯ä½¿ã£ã¦ã¯ããã¾ããï¼ãã¡ãããã¾ãã«"
-"ä¾å¤ãããã¾ãï¼ã 注æï¼ä¸è¨ã®åé¡ã®ããã¤ãã¯ãæ¨å¥¨ããããã¿ã¼ã³ã¨ãã¦ãåº"
-"ç¾ãã¾ãã è¨è¨ã決å®ããåã«ãè£ã®æå³ãçè§£ããããã«ãã¦ãã ããã"
+"application</emphasis> ã¢ã³ããã¿ã¼ã³ã¯ä½¿ã£ã¦ã¯ããã¾ããï¼ãã¡ãããã¾ãã«ä¾"
+"å¤ãããã¾ãï¼ã注è¨ï¼ä¸è¨ã®åé¡ã®ããã¤ãã¯ãæ¨å¥¨ããããã¿ã¼ã³ã¨ãã¦ãåºç¾"
+"ãã¾ããè¨è¨ã決å®ããåã«ãè£ã®æå³ãçè§£ããããã«ãã¦ãã ããã"
#. Tag: para
-#: transactions.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
"concurrently, like HTTP requests, session beans, or Swing workers, will "
@@ -624,18 +588,17 @@
"that clicks reload fast enough can use the same <literal>Session</literal> "
"in two concurrently running threads."
msgstr ""
-"<literal>Session</literal> ã¯ã¹ã¬ããã»ã¼ãã§ã¯ããã¾ããã HTTPãªã¯ã¨ã¹ãã"
-"ã»ãã·ã§ã³BeanãSwingã¯ã¼ã«ã¼ã®ããã«ã åæå®è¡ãå¯è½ãªãã®ã "
-"<literal>Session</literal> ã¤ã³ã¹ã¿ã³ã¹ãå
±æããã¨ã ç«¶åç¶æ
ãå¼ãèµ·ããã¾"
-"ãã ï¼å¾ã§è°è«ããï¼<literal>HttpSession</literal> ã®ä¸ã§ Hibernate "
-"<literal>Session</literal> ãä¿æããå ´åã HttpSessionã¸ã®ã¢ã¯ã»ã¹ãåæåã"
-"ããã¨ãèæ
®ãã¹ãã§ãã ãããªããã°ãã¦ã¼ã¶ã¼ãååæ©ããªãã¼ããã¯ãªãã¯ã"
-"ãã¨ã åæã«èµ°ãï¼ã¤ã®ã¹ã¬ããã®ä¸ã§ãåã <literal>Session</literal> ã使ã"
-"ãã¾ãã"
+"<literal>Session</literal> ã¯ã¹ã¬ããã»ã¼ãã§ã¯ããã¾ããã HTTP ãªã¯ã¨ã¹ãã"
+"ã»ãã·ã§ã³ Bean ã Swing ã¯ã¼ã«ã¼ã®ããã«ãåæå®è¡ãå¯è½ãªãã®ã "
+"<literal>Session</literal> ã¤ã³ã¹ã¿ã³ã¹ãå
±æããã¨ãç«¶åç¶æ
ãå¼ãèµ·ããã¾"
+"ããï¼å¾ã§è°è«ããï¼ <literal>HttpSession</literal> ã®ä¸ã§ Hibernate "
+"<literal>Session</literal> ãä¿æããå ´åã HttpSession ã¸ã®ã¢ã¯ã»ã¹ãåæå"
+"ãããã¨ãèæ
®ãã¹ãã§ãããããªããã°ãã¦ã¼ã¶ã¼ãååæ©ããªãã¼ããã¯ãªãã¯"
+"ããã¨ãåæã«èµ°ãï¼ã¤ã®ã¹ã¬ããã®ä¸ã§ãåã <literal>Session</literal> ã使"
+"ããã¾ãã"
#. Tag: para
-#: transactions.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
"transaction and close the <literal>Session</literal> immediately (this is "
@@ -647,17 +610,16 @@
"Usually this is not a problem, because exceptions are not recoverable and "
"you will have to start over after rollback anyway."
msgstr ""
-"Hibernateãä¾å¤ãæããå ´åã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯"
-"ãã ç´ã¡ã« <literal>Session</literal> ãéããã¹ãã§ãï¼è©³ç´°ãå¾ã§è°è«ãã¾"
-"ãï¼ã <literal>Session</literal> ãã¢ããªã±ã¼ã·ã§ã³ã«çµã³ä»ãããã¦ããã®ã§"
-"ããã°ã ã¢ããªã±ã¼ã·ã§ã³ã忢ãã¹ãã§ãã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã"
-"ãã¼ã«ããã¯ãã¦ãããã¸ãã¹ãªãã¸ã§ã¯ã㯠ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã¨ãã®ç¶"
-"æ
ã«æ»ãã¾ããã ããã¯ããã¼ã¿ãã¼ã¹ã®ç¶æ
ã¨ãã¸ãã¹ãªãã¸ã§ã¯ãã¯åæãã¦ã"
-"ãªããã¨ãæå³ãã¾ãã é常ããã¯åé¡ã«ãªãã¾ããã ãªããªããä¾å¤ã¯å復ã§ã"
-"ãªãããã§ãã ã¨ã«ãããã¼ã«ããã¯ããå¾ã«ããç´ãã¹ãã§ãã"
+"Hibernate ãä¾å¤ãæããå ´åã¯ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯"
+"ããç´ã¡ã« <literal>Session</literal> ãéããã¹ãã§ã ï¼è©³ç´°ãå¾ã§è°è«ãã¾"
+"ãï¼ ã <literal>Session</literal> ãã¢ããªã±ã¼ã·ã§ã³ã«çµã³ä»ãããã¦ããã®ã§"
+"ããã°ãã¢ããªã±ã¼ã·ã§ã³ã忢ãã¹ãã§ãããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼"
+"ã«ããã¯ãã¦ãããã¸ãã¹ãªãã¸ã§ã¯ãã¯ãã©ã³ã¶ã¯ã·ã§ã³ãéå§ããã¨ãã®ç¶æ
ã«"
+"æ»ãã¾ãããããã¯ããã¼ã¿ãã¼ã¹ã®ç¶æ
ã¨ãã¸ãã¹ãªãã¸ã§ã¯ãã¯åæãã¦ããªã"
+"ãã¨ãæå³ãã¾ããé常ããã¯åé¡ã«ãªãã¾ããããªããªããä¾å¤ã¯å復ã§ããªãã"
+"ãã§ããã¨ã«ãããã¼ã«ããã¯ããå¾ã«ããç´ãã¹ãã§ãã"
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -666,31 +628,28 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
-"<literal>Session</literal> ã¯æ°¸ç¶ï¼persistentï¼ç¶æ
ã®ãã¹ã¦ã®ãªãã¸ã§ã¯ãã "
-"ãã£ãã·ã¥ãã¾ãï¼Hibernateã¯ç£è¦ãããã¼ãã£ç¶æ
ããã§ãã¯ãã¾ãï¼ã ãã"
-"ã¯ãé·ãéã»ãã·ã§ã³ãéããã¾ã¾ã«ãããã é常ã«å¤ãã®ãã¼ã¿ããã¼ããç¶ãã"
-"ãããå ´åã¯ã OutOfMemoryExceptionãçºçããã¾ã§ç¡éã«å¤§ãããªããã¨ãæå³ã"
-"ã¾ãã 解決çã®ï¼ã¤ã¯ã<literal>Session</literal> ãã£ãã·ã¥ã管çãããã"
+"<literal>Session</literal> ã¯æ°¸ç¶ ï¼persistentï¼ ç¶æ
ã®ãã¹ã¦ã®ãªãã¸ã§ã¯ãã"
+"ãã£ãã·ã¥ãã¾ãï¼ Hibernate ã¯ç£è¦ãããã¼ãã£ç¶æ
ããã§ãã¯ãã¾ãï¼ããã"
+"ã¯ãé·ãéã»ãã·ã§ã³ãéããã¾ã¾ã«ããããé常ã«å¤ãã®ãã¼ã¿ããã¼ããç¶ãã"
+"ãããå ´åã¯ã OutOfMemoryException ãçºçããã¾ã§ç¡éã«å¤§ãããªããã¨ãæå³"
+"ãã¾ãã解決çã®ï¼ã¤ã¯ã<literal>Session</literal> ãã£ãã·ã¥ã管çãããã"
"ã«ã <literal>clear()</literal> ã <literal>evict()</literal> ãå¼ã¶ãã¨ã§"
-"ãã ãããã大ããªãã¼ã¿ãå¦çããå¿
è¦ããããªãã ãã¶ãã¹ãã¢ãããã·ã¼"
-"ã¸ã£ãèæ
®ããã¹ãã§ãããã ããã¤ãã®è§£æ±ºçã¯ã<xref linkend=\"batch\"/> ã§"
-"ç´¹ä»ããã¦ãã¾ãã ã¦ã¼ã¶ã¼ã»ãã·ã§ã³ã®éã<literal>Session</literal> ãéã"
-"ãã¾ã¾ã«ããã¨ãããã¨ã¯ã ãã¼ã¿ãæ°é®®ã§ãªããªã確çãé«ããªããã¨ãæå³ãã¾"
-"ãã"
+"ãããããã大ããªãã¼ã¿ãå¦çããå¿
è¦ããããªãããã¶ãã¹ãã¢ãããã·ã¼ã¸ã£"
+"ãèæ
®ããã¹ãã§ããããããã¤ãã®è§£æ±ºçã¯ã <xref linkend=\"batch\"/> ã§ç´¹ä»"
+"ããã¦ãã¾ããã¦ã¼ã¶ã¼ã»ãã·ã§ã³ã®éã <literal>Session</literal> ãéããã¾"
+"ã¾ã«ããã¨ãããã¨ã¯ããã¼ã¿ãæ°é®®ã§ãªããªã確çãé«ããªããã¨ãæå³ãã¾ãã"
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
msgstr "ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³å¢ç"
#. Tag: para
-#: transactions.xml:388
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
"communication with the database can occur outside of a database transaction "
@@ -701,18 +660,17 @@
"transactions explicitly. Certainly, a single database transaction is going "
"to perform better than many small transactions, even for reading data."
msgstr ""
-"ãã¼ã¿ãã¼ã¹ï¼ãããã¯ã·ã¹ãã ï¼ãã©ã³ã¶ã¯ã·ã§ã³ã®å¢çã¯ã常ã«å¿
è¦ã§ãã ãã¼"
-"ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®å¤ã§ããã¼ã¿ãã¼ã¹ã¨ã®éä¿¡ã¯èµ·ãã¾ãã ï¼ããã¯èªå"
-"ã³ãããã¢ã¼ãã«æ
£ãã¦ããå¤ãã®éçºè
ãæ··ä¹±ãããããããã¾ããï¼ã èªã¿è¾¼ã"
-"ã ãã®æä½ã«ã§ãããã¤ãæç¢ºãªãã©ã³ã¶ã¯ã·ã§ã³å¢çã使ç¨ãã¦ãã ããã åé¢ã¬"
-"ãã«ã¨ãã¼ã¿ãã¼ã¹ã®è½å次第ã§ãããã¯å¿
è¦ãªãããããã¾ãããã 常ã«ãã©ã³ã¶"
-"ã¯ã·ã§ã³å¢çãæç¤ºçã«æå®ãã¦ãããã¤ãã¹é¢ã¯å
¨ãããã¾ããã 確ãã«ãï¼ã¤ã®"
-"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¯å¤æ°ã®å°ããªãã©ã³ã¶ã¯ã·ã§ã³ãã ï¼ãã¼ã¿ã®èªã¿"
-"è¾¼ã¿ã§ãã£ã¦ãï¼ããã©ã¼ãã³ã¹ããããã¦ãã¾ãã"
+"ãã¼ã¿ãã¼ã¹ ï¼ãããã¯ã·ã¹ãã ï¼ ãã©ã³ã¶ã¯ã·ã§ã³ã®å¢çã¯ã常ã«å¿
è¦ã§ãã"
+"ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®å¤ã§ããã¼ã¿ãã¼ã¹ã¨ã®éä¿¡ã¯èµ·ãã¾ãã ï¼ããã¯"
+"èªåã³ãããã¢ã¼ãã«æ
£ãã¦ããå¤ãã®éçºè
ãæ··ä¹±ãããããããã¾ããï¼ ãèªã¿"
+"è¾¼ãã ãã®æä½ã«ã§ãããã¤ãæç¢ºãªãã©ã³ã¶ã¯ã·ã§ã³å¢çã使ç¨ãã¦ãã ãããå"
+"é¢ã¬ãã«ã¨ãã¼ã¿ãã¼ã¹ã®è½å次第ã§ãããã¯å¿
è¦ãªãããããã¾ãããã常ã«ãã©"
+"ã³ã¶ã¯ã·ã§ã³å¢çãæç¤ºçã«æå®ãã¦ãããã¤ãã¹é¢ã¯å
¨ãããã¾ããã確ãã«ãï¼"
+"ã¤ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã¯å¤æ°ã®å°ããªãã©ã³ã¶ã¯ã·ã§ã³ãã ï¼ãã¼ã¿ã®"
+"èªã¿è¾¼ã¿ã§ãã£ã¦ãï¼ ããã©ã¼ãã³ã¹ããããã¦ãã¾ãã"
#. Tag: para
-#: transactions.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
"Web- or Swing applications) and managed J2EE environments. In a non-managed "
@@ -724,20 +682,19 @@
"descriptors of EJB session beans, for example). Programmatic transaction "
"demarcation is then no longer necessary."
msgstr ""
-"J2EEç°å¢ã«ç®¡çããã¦ããªãç¶æ
ï¼ããªãã¡ãã¹ã¿ã³ãã¢ãã³ãåç´ãªWebãSwingã¢"
-"ããªã±ã¼ã·ã§ã³ï¼ã§ãã 管çãããç¶æ
ã§ããHibernateã¢ããªã±ã¼ã·ã§ã³ãå®è¡ã§"
-"ãã¾ãã 管çããã¦ããªãç°å¢ã§ã¯ãHiberanteããã¼ã¿ãã¼ã¹ã®ã³ãã¯ã·ã§ã³ãã¼"
-"ã«ãæä¾ãã¾ãã ã¢ããªã±ã¼ã·ã§ã³éçºè
ã¯ããã©ã³ã¶ã¯ã·ã§ã³å¢çãæåã§è¨å®ã"
-"ãªããã°ãªãã¾ããã è¨ãæããã¨ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®éå§ãã³ãã"
-"ãããã¼ã«ããã¯ã éçºè
èªèº«ãè¨å®ããå¿
è¦ãããã¨ãããã¨ã§ãã é常ã管ç"
-"ãããç°å¢ã§ã¯ãã³ã³ãã管çã«ãããã©ã³ã¶ã¯ã·ã§ã³ï¼CMTï¼ãæä¾ããã¾ãã ä¾"
-"ãã°ãã»ãã·ã§ã³Beanã®ãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã§å®£è¨çã«å®ç¾©ãã ãã©ã³ã¶"
-"ã¯ã·ã§ã³ãçµã¿ç«ã¦ã¾ãã ããã°ã©ã ã«ãããã©ã³ã¶ã¯ã·ã§ã³å¢çã¯ããå¿
è¦ããã¾"
-"ããã"
+"J2EE ç°å¢ã«ç®¡çããã¦ããªãç¶æ
ï¼ããªãã¡ãã¹ã¿ã³ãã¢ãã³ãåç´ãª Web ã "
+"Swing ã¢ããªã±ã¼ã·ã§ã³ï¼ã§ãã管çãããç¶æ
ã§ãã Hibernate ã¢ããªã±ã¼ã·ã§ã³"
+"ãå®è¡ã§ãã¾ãã管çããã¦ããªãç°å¢ã§ã¯ã Hiberante ããã¼ã¿ãã¼ã¹ã®ã³ãã¯"
+"ã·ã§ã³ãã¼ã«ãæä¾ãã¾ããã¢ããªã±ã¼ã·ã§ã³éçºè
ã¯ããã©ã³ã¶ã¯ã·ã§ã³å¢çãæ"
+"åã§è¨å®ããªããã°ãªãã¾ãããè¨ãæããã¨ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®é"
+"å§ãã³ãããããã¼ã«ããã¯ãéçºè
èªèº«ãè¨å®ããå¿
è¦ãããã¨ãããã¨ã§ããé"
+"常ã管çãããç°å¢ã§ã¯ãã³ã³ãã管çã«ãããã©ã³ã¶ã¯ã·ã§ã³ ï¼CMTï¼ ãæä¾ãã"
+"ã¾ããä¾ãã°ãã»ãã·ã§ã³ Bean ã®ãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã§å®£è¨çã«å®ç¾©"
+"ãããã©ã³ã¶ã¯ã·ã§ã³ãçµã¿ç«ã¦ã¾ããããã°ã©ã ã«ãããã©ã³ã¶ã¯ã·ã§ã³å¢çã¯ã"
+"ãå¿
è¦ããã¾ããã"
#. Tag: para
-#: transactions.xml:408
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
"between non-managed resource-local environments, and systems that can rely "
@@ -747,103 +704,71 @@
"system of your deployment environment. This API is actually optional, but we "
"strongly encourage its use unless you are in a CMT session bean."
msgstr ""
-"ããããªããã管çããã¦ããªããªã½ã¼ã¹ã»ãã¼ã«ã«ãªç°å¢ã¨ JTAã«ä¾åããã·ã¹ã"
-"ã ï¼CMTã§ã¯ãªãBMTï¼ã®ä¸¡æ¹ã«ã æ°¸ç¶å層ããã¼ã¿ãã«ã«ä¿ã¤ã®ã¯ããã°ãã°æã¾ã"
-"ããã¨ã§ãã ãããã¤ç°å¢ã®ãã¤ãã£ãã®ãã©ã³ã¶ã¯ã·ã§ã³ã·ã¹ãã ãå¼ã³åºã "
-"<literal>Transaction</literal> ã¨ããã©ããã¼APIãHibernateãæä¾ãã¾ãã ã"
-"ã®APIã使ããã¯ä»»æã§ãããCMTã®ã»ãã·ã§ã³Beanã使ããªãã®ã§ããã°ã使ããã¨"
-"ãå¼·ãæ¨å¥¨ãã¾ãã"
+"ããããªããã管çããã¦ããªããªã½ã¼ã¹ãã¼ã«ã«ãªç°å¢ã¨ JTA ã«ä¾åããã·ã¹ã"
+"ã ï¼CMT ã§ã¯ãªã BMTï¼ ã®ä¸¡æ¹ã«ãæ°¸ç¶å層ããã¼ã¿ãã«ã«ä¿ã¤ã®ã¯ããã°ãã°æ"
+"ã¾ãããã¨ã§ãããããã¤ç°å¢ã®ãã¤ãã£ãã®ãã©ã³ã¶ã¯ã·ã§ã³ã·ã¹ãã ãå¼ã³åºã "
+"<literal>Transaction</literal> ã¨ããã©ããã¼ API ã Hibernate ãæä¾ãã¾ãã"
+"ãã® API ã使ããã¯ä»»æã§ããã CMT ã®ã»ãã·ã§ã³ Bean ã使ããªãã®ã§ããã°ã"
+"使ããã¨ãå¼·ãæ¨å¥¨ãã¾ãã"
#. Tag: para
-#: transactions.xml:417
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
msgstr ""
-"é常ã<literal>Session</literal> çµäºã¯ãï¼ã¤ã®ç°ãªããã§ã¼ãºãå«ã¿ã¾ãã"
+"é常ã <literal>Session</literal> çµäºã¯ãï¼ã¤ã®ç°ãªããã§ã¼ãºãå«ã¿ã¾ã:"
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
msgstr "ã»ãã·ã§ã³ã®ãã©ãã·ã¥"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
msgstr "ãã©ã³ã¶ã¯ã·ã§ã³ã®ã³ããã"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
msgstr "ã»ãã·ã§ã³ã®ã¯ãã¼ãº"
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr "ä¾å¤ã®ãã³ããªã³ã°"
#. Tag: para
-#: transactions.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
"at transaction demarcation and exception handling in both managed and non-"
"managed environments."
msgstr ""
-"ã»ãã·ã§ã³ã®ãã©ãã·ã¥ã«ã¤ãã¦ã¯ãåã®ã»ãã§ãã§ã«è°è«ãã¾ããã 管çãããç°"
-"å¢ã¨ç®¡çããã¦ããªãç°å¢ã®ä¸¡æ¹ã«ã¤ãã¦ã ãã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ä¾å¤ãã³ããªã³"
-"ã°ããã£ã¨è©³ããè¦ã¦ããã¾ãããã"
+"ã»ãã·ã§ã³ã®ãã©ãã·ã¥ã«ã¤ãã¦ã¯ãåã®æ¹ã§æ¢ã«è°è«ãã¾ããã管çãããç°å¢ã¨"
+"管çããã¦ããªãç°å¢ã®ä¸¡æ¹ã«ã¤ãã¦ããã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ä¾å¤ãã³ããªã³ã°ã"
+"ãã£ã¨è©³ããè¦ã¦ããã¾ãããã"
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
msgstr "管çããã¦ããªãç°å¢"
#. Tag: para
-#: transactions.xml:453
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
"connections are usually handled by simple (i.e., non-DataSource) connection "
"pools from which Hibernate obtains connections as needed. The session/"
"transaction handling idiom looks like this:"
msgstr ""
-"Hibernateæ°¸ç¶å層ã管çããã¦ããªãç°å¢ã§å®è£
ããå ´åã¯ã é常åç´ãªã³ãã¯"
-"ã·ã§ã³ãã¼ã«ï¼ããªãã¡DataSourceã§ã¯ãªãï¼ã«ãã£ã¦ã ãã¼ã¿ãã¼ã¹ã³ãã¯ã·ã§ã³"
-"ãå¶å¾¡ãã¾ãã Hibernateã¯ãã®ã³ãã¯ã·ã§ã³ãã¼ã«ããå¿
è¦ãªã³ãã¯ã·ã§ã³ãåå¾"
-"ãã¾ãã ã»ãã·ã§ã³ï¼ãã©ã³ã¶ã¯ã·ã§ã³å¶å¾¡ã®ã¤ãã£ãªã ã¯æ¬¡ã®ããã«ãªãã¾ãã"
+"Hibernate æ°¸ç¶å層ã管çããã¦ããªãç°å¢ã§å®è£
ããå ´åã¯ãé常åç´ãªã³ãã¯"
+"ã·ã§ã³ãã¼ã« ï¼ããªãã¡ DataSource ã§ã¯ãªãï¼ ã«ãã£ã¦ããã¼ã¿ãã¼ã¹ã³ãã¯"
+"ã·ã§ã³ãå¶å¾¡ãã¾ãã Hibernate ã¯ãã®ã³ãã¯ã·ã§ã³ãã¼ã«ããå¿
è¦ãªã³ãã¯ã·ã§ã³"
+"ãåå¾ãã¾ããã»ãã·ã§ã³ï¼ãã©ã³ã¶ã¯ã·ã§ã³å¶å¾¡ã®ã¤ãã£ãªã ã¯æ¬¡ã®ããã«ãªãã¾"
+"ãï¼"
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -856,46 +781,25 @@
msgstr ""
"æç¤ºçã« <literal>Session</literal> ã® <literal>flush()</literal> ãå¼ã³åºã"
"ã¹ãã§ã¯ãªãã <literal>commit()</literal> ãå¼ã³åºããã¨ã«ãããèªåçã«åæ"
-"åå¦çãå®è¡ããã¾ã ï¼ã»ãã·ã§ã³ã® <xref linkend=\"objectstate-flushing"
-"\">FlushMode</xref> ã«ä¾åãã¦ããï¼ã <literal>close()</literal> ãå¼ã³åºã"
-"ãã¨ã«ãããã»ãã·ã§ã³ã®çµãããæç¢ºã«ãã¾ãã <literal>close()</literal> ã"
-"æé»çã«è¡ã主ãªãã¨ã¯ã ã»ãã·ã§ã³ãJDBCã³ãã¯ã·ã§ã³ãéæ¾ãããã¨ã§ãã ä¸"
-"è¨ã®Javaã³ã¼ãã¯ãã¼ã¿ãã«ã§ããã管çããã¦ããªãç°å¢ã¨JTAç°å¢ã®ä¸¡æ¹ã§å®è¡ã§"
+"åå¦çãå®è¡ããã¾ã ï¼ã»ãã·ã§ã³ã® <xref linkend=\"objectstate-flushing\"/> "
+"FlushMode ã«ä¾åãã¦ããï¼ã <literal>close()</literal> ãå¼ã³åºããã¨ã«ã"
+"ããã»ãã·ã§ã³ã®çµãããæç¢ºã«ãã¾ãã <literal>close()</literal> ãæé»çã«"
+"è¡ã主ãªãã¨ã¯ãã»ãã·ã§ã³ã JDBC ã³ãã¯ã·ã§ã³ãéæ¾ãããã¨ã§ããä¸è¨ã® "
+"Java ã³ã¼ãã¯ãã¼ã¿ãã«ã§ããã管çããã¦ããªãç°å¢ã¨ JTA ç°å¢ã®ä¸¡æ¹ã§å®è¡ã§"
"ãã¾ãã"
#. Tag: para
-#: transactions.xml:471
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
"\"current session\" context management:"
msgstr ""
-"ããé©å¿æ§ã®ãã解決çã¯ãHibernateã«äºãçµã¿è¾¼ã¾ãã¦ãã ãcurrent sessionã"
-"ã³ã³ããã¹ã管çã§ãã è¨èã§èª¬æããããä¸è¨ãè¦ãã»ããéãã§ãããã"
+"ããé©å¿æ§ã®ãã解決çã¯ã Hibernate ã«äºãçµã¿è¾¼ã¾ãã¦ãã \"current session"
+"\" ã³ã³ããã¹ã管çã§ããè¨èã§èª¬æããããä¸è¨ãè¦ãã»ããéãã§ãããã"
-#. Tag: programlisting
-#: transactions.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:478
-#, fuzzy, no-c-format
-msgid ""
"You will not see these code snippets in a regular application; fatal "
"(system) exceptions should always be caught at the \"top\". In other words, "
"the code that executes Hibernate calls in the persistence layer, and the "
@@ -906,37 +810,34 @@
"this chapter."
msgstr ""
"æ£è¦ã®ã¢ããªã±ã¼ã·ã§ã³ã®ä¸ã§ã¯ããã®ãããªã³ã¼ãã®åãç«¯ãæ±ºãã¦è¦ãªãã§ãã"
-"ãã è´å½çãªï¼ã·ã¹ãã ï¼ä¾å¤ã¯ã常ã«ãæä¸ä½ãã§ãã£ãããã¹ãã§ãã è¨ãæ"
-"ããã°ãï¼æ°¸ç¶å層ã§ï¼Hibernateå¼ã³åºããå®è¡ããã³ã¼ãã¨ã "
+"ããè´å½ç㪠ï¼ã·ã¹ãã ï¼ ä¾å¤ã¯ã常ã«ãæä¸ä½ãã§ãã£ãããã¹ãã§ããè¨ãæ"
+"ããã°ã ï¼æ°¸ç¶å層ã§ï¼ Hibernate å¼ã³åºããå®è¡ããã³ã¼ãã¨ã "
"<literal>RuntimeException</literal> ãå¶å¾¡ãã ï¼é常ã¯ã¯ãªã¼ã³ã¢ããã¨çµäºã®"
-"ã¿è¡ããã¨ãã§ããï¼ã³ã¼ãã¯ãå¥ã
ã®å±¤ã®ä¸ã«ããã¾ãã Hibernateã«ããã«ã¬ã³"
-"ãã³ã³ããã¹ã管çã¯ããã®è¨è¨ãããªãåç´ã«ãã¾ãã å¿
è¦ãªã®ã¯ã"
-"<literal>SessionFactory</literal> ã«ã¢ã¯ã»ã¹ãããã¨ã ãã§ãã ä¾å¤å¦çã¯ãã"
+"ã¿è¡ããã¨ãã§ããï¼ ã³ã¼ãã¯ãå¥ã
ã®å±¤ã®ä¸ã«ããã¾ãã Hibernate ã«ããã«ã¬"
+"ã³ãã³ã³ããã¹ã管çã¯ããã®è¨è¨ãããªãåç´ã«ãã¾ããå¿
è¦ãªã®ã¯ã "
+"<literal>SessionFactory</literal> ã«ã¢ã¯ã»ã¹ãããã¨ã ãã§ããä¾å¤å¦çã¯ãã"
"ã®ç« ã®å¾ã®ã»ãã§è°è«ãã¾ãã"
#. Tag: para
-#: transactions.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
"literal>, which is the default, and for the second example select <literal>"
"\"thread\"</literal> as your <literal>hibernate."
"current_session_context_class</literal>."
msgstr ""
-"注æï¼ï¼ããã©ã«ãã§ããï¼ <literal>org.hibernate.transaction."
-"JDBCTransactionFactory</literal> ã鏿ããã¹ãã§ãã 第2ã®ç¨ä¾ã¨ãã¦ã¯ã "
+"注è¨ï¼ï¼ããã©ã«ãã§ããï¼ <literal>org.hibernate.transaction."
+"JDBCTransactionFactory</literal> ã鏿ããã¹ãã§ãã第2ã®ç¨ä¾ã¨ãã¦ã¯ã "
"<literal>hibernate.current_session_context_class</literal> ã <literal>"
"\"thread\"</literal> ã¨ããã¨ããã§ãããã"
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
-msgstr "JTAã使ç¨ãã"
+msgstr "JTA ã使ç¨ãã"
#. Tag: para
-#: transactions.xml:499
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
"EJB session beans), every datasource connection obtained by Hibernate will "
@@ -944,113 +845,50 @@
"standalone JTA implementation and use it without EJB. Hibernate offers two "
"strategies for JTA integration."
msgstr ""
-"æ°¸ç¶å層ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ï¼ä¾ãã°ãEJBã»ãã·ã§ã³Beanã®èå¾ï¼ã§å®è¡ã"
-"ãå ´åã Hibernateããåå¾ãããã¹ã¦ã®ãã¼ã¿ã½ã¼ã¹ã³ãã¯ã·ã§ã³ã¯ã èªåçã«ã°"
-"ãã¼ãã«JTAãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸é¨ã«ãªãã¾ãã EJBã使ããã«ãã¹ã¿ã³ãã¢ãã³ã®"
-"JTAå®è£
ãå°å
¥ãããã¨ãã§ãã¾ãã JTAçµ±åã®ããã«ãHibernateã¯ï¼ã¤ã®æ¦ç¥ãæ"
-"ä¾ãã¾ãã"
+"æ°¸ç¶å層ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ ï¼ä¾ãã°ã EJB ã»ãã·ã§ã³ Bean ã®èå¾ï¼ ã§"
+"å®è¡ããå ´åã Hibernate ããåå¾ãããã¹ã¦ã®ãã¼ã¿ã½ã¼ã¹ã³ãã¯ã·ã§ã³ã¯ãèªå"
+"çã«ã°ãã¼ãã« JTA ãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸é¨ã«ãªãã¾ãã EJB ã使ããã«ãã¹ã¿ã³"
+"ãã¢ãã³ã® JTA å®è£
ãå°å
¥ãããã¨ãã§ãã¾ãã JTA çµ±åã®ããã«ã Hibernate ã¯"
+"ï¼ã¤ã®æ¦ç¥ãæä¾ãã¾ãã"
#. Tag: para
-#: transactions.xml:506
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
"application server to start and end a BMT transaction if you use the "
"<literal>Transaction</literal> API. The transaction management code is "
"identical to the non-managed environment."
msgstr ""
-"Bean管çãã©ã³ã¶ã¯ã·ã§ã³ï¼BMTï¼ã使ãã<literal>Transaction</literal> APIã使"
-"ãå ´åã Hibernateã¯ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã«BMTãã©ã³ã¶ã¯ã·ã§ã³ã®éå§ã¨çµã"
-"ããåãã¾ãã ããªãã¡ããã©ã³ã¶ã¯ã·ã§ã³ç®¡çã®ã³ã¼ãã¯ã管çãããªãç°å¢ã¨å"
-"ãã«ãªãã¾ãã"
+"Bean 管çãã©ã³ã¶ã¯ã·ã§ã³ï¼BMTï¼ã使ãã <literal>Transaction</literal> API "
+"ã使ãå ´åã Hibernate ã¯ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã« BMT ãã©ã³ã¶ã¯ã·ã§ã³ã®é"
+"å§ã¨çµãããåãã¾ããããªãã¡ããã©ã³ã¶ã¯ã·ã§ã³ç®¡çã®ã³ã¼ãã¯ã管çãããªã"
+"ç°å¢ã¨åãã«ãªãã¾ãã"
-#. Tag: programlisting
-#: transactions.xml:512
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:514
-#, fuzzy, no-c-format
-msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
"the <literal>getCurrentSession()</literal> functionality for easy context "
"propagation, use the JTA <literal>UserTransaction</literal> API directly:"
msgstr ""
-"ãã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ã㦠<literal>Session</literal> ã使ãããå ´åã ç°¡åã«"
+"ãã©ã³ã¶ã¯ã·ã§ã³å¢çã¨ã㦠<literal>Session</literal> ã使ãããå ´åãç°¡åã«"
"ã³ã³ããã¹ãã伿ããæ©è½ã§ãã <literal>getCurrentSession()</literal> ãã"
-"ãã®ã§ã JTAã® <literal>UserTransaction</literal> APIãç´æ¥ä½¿ç¨ãã¹ãã§ãã"
+"ãã®ã§ã JTAã® <literal>UserTransaction</literal> API ãç´æ¥ä½¿ç¨ãã¹ãã§ãã"
"ãã"
-#. Tag: programlisting
-#: transactions.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:522
-#, fuzzy, no-c-format
-msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
"descriptors, not programmatically. The code is reduced to:"
msgstr ""
-"CMTã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³å¢çãã»ãã·ã§ã³Beanã®ãããã¤ã¡ã³ããã£ã¹ã¯ãªãã¿ã§"
-"å®ç¾©ãã ããã°ã©ã ã§ã¯è¡ãã¾ããã ããã«ãã³ã¼ãã¯æ¬¡ã®ããã«å°ãªããªãã¾"
-"ãã"
+"CMT ã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³å¢çãã»ãã·ã§ã³ Bean ã®ãããã¤ã¡ã³ããã£ã¹ã¯ãªã"
+"ã¿ã§å®ç¾©ããããã°ã©ã ã§ã¯è¡ãã¾ãããããã«ãã³ã¼ãã¯æ¬¡ã®ããã«å°ãªããªãã¾"
+"ã:"
-#. Tag: programlisting
-#: transactions.xml:527
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:529
-#, fuzzy, no-c-format
-msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
"<literal>RuntimeException</literal> thrown by a session bean method tells "
"the container to set the global transaction to rollback. <emphasis>You do "
@@ -1058,16 +896,16 @@
"BMT or CMT, and you get automatic propagation of the \"current\" Session "
"bound to the transaction.</emphasis>"
msgstr ""
-"CMT/EJBã®ä¸ã§ã¯ã常ã«ãã¼ã«ããã¯ãèªåçã«å®æ½ããã¾ãã ãªããªããã»ãã·ã§"
-"ã³ãã¼ã³ã®ã¡ã½ããã«ããæããããå¶å¾¡ããã¦ããªã "
-"<literal>RuntimeException</literal> ã¯ãã°ãã¼ãã«ãã©ã³ã¶ã¯ã·ã§ã³ã ãã¼ã«"
-"ããã¯ããããã«ã³ã³ããã«ä¼ããããã§ãã <emphasis>ããã¯ãBMTãããã¯CMTã¨"
-"ãã£ããã«Hibernate <literal>Transaction</literal> APIã使ãå¿
è¦ã¯å°ãããªã"
-"ã¨ããæå³ã§ãã</emphasis>"
+"CMT/EJB ã®ä¸ã§ã¯ã常ã«ãã¼ã«ããã¯ãèªåçã«å®æ½ããã¾ãããªããªããã»ãã·ã§"
+"ã³ Bean ã®ã¡ã½ããã«ããæããããå¶å¾¡ããã¦ããªã "
+"<literal>RuntimeException</literal> ã¯ãã°ãã¼ãã«ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«"
+"ããã¯ããããã«ã³ã³ããã«ä¼ããããã§ãã <emphasis>ããã¯ã BMT ããã㯠"
+"CMT ã¨ä¸ç·ã« Hibernate <literal>Transaction</literal> API ã使ãå¿
è¦ã¯ã¾ã£ã"
+"ããªãã¨ãããã¨ãæå³ãããã©ã³ã¶ã¯ã·ã§ã³ã«ãã¤ã³ããããç¾å¨ã®ãã»ãã·ã§ã³"
+"ãèªå伿¬ã§ãã¾ãã</emphasis>"
#. Tag: para
-#: transactions.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
"hibernate.transaction.JTATransactionFactory</literal> if you use JTA "
@@ -1077,18 +915,17 @@
"your <literal>hibernate.current_session_context_class</literal> is either "
"unset (backwards compatibility), or is set to <literal>\"jta\"</literal>."
msgstr ""
-"Hibernateã®ãã©ã³ã¶ã¯ã·ã§ã³ãã¡ã¯ããªãè¨å®ããéã«ã JTAãç´æ¥ä½¿ãï¼BMTã®ï¼"
-"å ´å㯠<literal>org.hibernate.transaction.JTATransactionFactory</literal> "
-"ãã CMTã»ãã·ã§ã³ãã¼ã³ã®ä¸ã§ã¯ <literal>org.hibernate.transaction."
-"CMTTransactionFactory</literal> ã 鏿ãã¹ãã ã¨ãããã¨ã«æ³¨æãã¦ãã ã"
-"ãã <literal>hibernate.transaction.manager_lookup_class</literal> ãã»ããã"
-"ããã¨ãæãåºãã¦ãã ããã ãªãã<literal>hibernate."
-"current_session_context_class</literal> ã¯ã ã»ããããªããï¼å¾æ¹äºæï¼ã"
+"Hibernate ã®ãã©ã³ã¶ã¯ã·ã§ã³ãã¡ã¯ããªãè¨å®ããéã«ã JTA ãç´æ¥ä½¿ã ï¼BMT"
+"ã®ï¼ å ´å㯠<literal>org.hibernate.transaction.JTATransactionFactory</"
+"literal> ãã CMT ã»ãã·ã§ã³ Bean ã®ä¸ã§ã¯ <literal>org.hibernate."
+"transaction.CMTTransactionFactory</literal> ã鏿ãã¹ãã ã¨ãããã¨ã«æ³¨æã"
+"ã¦ãã ããã <literal>hibernate.transaction.manager_lookup_class</literal> ã"
+"ã»ãããããã¨ãæãåºãã¦ãã ããããªãã <literal>hibernate."
+"current_session_context_class</literal> ã¯ãã»ããããªããï¼å¾æ¹äºæï¼ã "
"<literal>\"jta\"</literal> ãã»ãããã¦ãã ããã"
#. Tag: para
-#: transactions.xml:546
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
"JTA environment. There is one caveat to the use of <literal>after_statement</"
@@ -1103,28 +940,26 @@
"using <literal>scroll()</literal> or <literal>iterate()</literal> from the "
"JTA or CMT code.)"
msgstr ""
-"<literal>getCurrentSession()</literal> ãªãã¬ã¼ã·ã§ã³ã¯ãJTAç°å¢ã§ã¯ï¼ã¤ã®æ¬ "
-"ç¹ãæã¡ã¾ãã ããã©ã«ãã§ä½¿ããã <literal>after_statement</literal> ã³ãã¯"
-"ã·ã§ã³ãªãªã¼ã¹ã¢ã¼ãã使ç¨ããä¸ã§ã è¦åãï¼ã¤ããã¾ãã JTA仿§ã®æããªå¶ç´"
-"ã®ããã«ã <literal>scroll()</literal> ã¾ã㯠<literal>iterate()</literal> ã"
-"è¿ããã éãããã¦ããªã <literal>ScrollableResults</literal> ã¾ã㯠"
-"<literal>Iterator</literal> ã¤ã³ã¹ã¿ã³ã¹ãHibernateãèªåçã«ã¯ãªã¼ã³ã¢ããã"
-"ããã¨ã¯ã§ãã¾ããã <literal>finally</literal> ãããã¯ã®ä¸ã§ã "
+"<literal>getCurrentSession()</literal> ãªãã¬ã¼ã·ã§ã³ã¯ã JTA ç°å¢ã§ã¯ï¼ã¤ã®"
+"æ¬ ç¹ãæã¡ã¾ããããã©ã«ãã§ä½¿ããã <literal>after_statement</literal> ã³ã"
+"ã¯ã·ã§ã³ãªãªã¼ã¹ã¢ã¼ãã使ç¨ããä¸ã§ãè¦åãï¼ã¤ããã¾ãã JTA 仿§ã®æããªå¶"
+"ç´ã®ããã«ã <literal>scroll()</literal> ã¾ã㯠<literal>iterate()</literal> "
+"ãè¿ãããéãããã¦ããªã <literal>ScrollableResults</literal> ã¾ã㯠"
+"<literal>Iterator</literal> ã¤ã³ã¹ã¿ã³ã¹ã Hibernate ãèªåçã«ã¯ãªã¼ã³ã¢ãã"
+"ãããã¨ã¯ã§ãã¾ããã <literal>finally</literal> ãããã¯ã®ä¸ã§ã "
"<literal>ScrollableResults.close()</literal> ã¾ã㯠<literal>Hibernate.close"
-"(Iterator)</literal> ãæç¤ºçã«å¼ã³åºãã¦ã è£ã«æ½ãã ãã¼ã¿ãã¼ã¹ã«ã¼ã½ã«ã"
-"è§£æ¾ <emphasis>ããªããã°ãªãã¾ãã</emphasis>ã ï¼ãã¡ãããå¤ãã®ã¢ããªã±ã¼"
-"ã·ã§ã³ã§ã¯ãJTAãCMTã³ã¼ãã§ <literal>scroll()</literal> ã <literal>iterate"
-"()</literal> ã®ä½¿ç¨ãé¿ããã®ã¯å®¹æã§ããï¼"
+"(Iterator)</literal> ãæç¤ºçã«å¼ã³åºãã¦ãè£ã«æ½ãã ãã¼ã¿ãã¼ã¹ã«ã¼ã½ã«ãè§£"
+"æ¾ <emphasis>ããªããã°ãªãã¾ãã</emphasis>ã ï¼ãã¡ãããå¤ãã®ã¢ããªã±ã¼"
+"ã·ã§ã³ã§ã¯ã JTA ã CMT ã³ã¼ãã§ <literal>scroll()</literal> ã "
+"<literal>iterate()</literal> ã®ä½¿ç¨ãé¿ããã®ã¯å®¹æã§ããï¼"
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "ä¾å¤ãã³ããªã³ã°"
#. Tag: para
-#: transactions.xml:564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
"<literal>SQLException</literal>, immediately rollback the database "
@@ -1135,18 +970,17 @@
"Ensure that the <literal>Session</literal> will be closed by calling "
"<literal>close()</literal> in a <literal>finally</literal> block."
msgstr ""
-"<literal>Session</literal> ãä¾å¤ï¼<literal>SQLException</literal>ãå«ãï¼ã"
-"æããå ´åã ç´ã¡ã«ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯ãã"
-"<literal>Session.close()</literal> ãå¼ã³ã<literal>Session</literal> ã¤ã³ã¹"
-"ã¿ã³ã¹ãç ´æ£ãã¹ãã§ãã <literal>Session</literal> ã®ããã¤ãã®ã¡ã½ããã¯ã "
-"ã»ãã·ã§ã³ã®ç¶æ
ã <emphasis>çç¾ããã¾ã¾</emphasis> ã«ãã¾ãã Hibernateãæ"
-"ããä¾å¤ããå復ã§ãããã®ã¨ãã¦æ±ããã¨ã¯ã§ãã¾ããã <literal>finally</"
+"<literal>Session</literal> ãä¾å¤ ï¼<literal>SQLException</literal>ãå«ãï¼ "
+"ãæããå ´åãç´ã¡ã«ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯ãã "
+"<literal>Session.close()</literal> ãå¼ã³ã <literal>Session</literal> ã¤ã³ã¹"
+"ã¿ã³ã¹ãç ´æ£ãã¹ãã§ãã <literal>Session</literal> ã®ããã¤ãã®ã¡ã½ããã¯ã"
+"ã»ãã·ã§ã³ã®ç¶æ
ã <emphasis>çç¾ããã¾ã¾</emphasis> ã«ãã¾ãã Hibernate ã"
+"æããä¾å¤ããå復ã§ãããã®ã¨ãã¦æ±ããã¨ã¯ã§ãã¾ããã <literal>finally</"
"literal> ãããã¯ã®ä¸ã§ <literal>close()</literal> ãå¼ãã§ã "
"<literal>Session</literal> ã確å®ã«éãã¦ãã ããã"
#. Tag: para
-#: transactions.xml:575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
"that can occur in a Hibernate persistence layer, is an unchecked exception. "
@@ -1159,19 +993,18 @@
"unchecked exceptions that are not a <literal>HibernateException</literal>. "
"These are not recoverable and appropriate action should be taken."
msgstr ""
-"<literal>HibernateException</literal> ã¯ãHibernateæ°¸ç¶å層ã®ä¸ã§çºçããå¤ã"
-"ã®ã¨ã©ã¼ã ã©ãããããæ¤æ»ãããªãä¾å¤ã§ãï¼Hibernateã®å¤ããã¼ã¸ã§ã³ã¯éã"
-"ã¾ããï¼ã ç§ãã¡ã®æè¦ã¯ãã¢ããªã±ã¼ã·ã§ã³éçºè
ã«å復ä¸å¯è½ãªä¾å¤ã ä¸å±¤ã§"
-"ãã£ãããããã¨ãå¼·è¦ãã¹ãã§ã¯ãªãã¨ãããã¨ã§ãã å¤ãã®ã·ã¹ãã ã§ã¯ãæ¤æ»"
-"ãããªãä¾å¤ã¨è´å½çãªä¾å¤ã¯ã ã³ã¼ã«ã¹ã¿ãã¯ã®æåã®ãã¬ã¼ã ã®ï¼ã¤ï¼ä¾ãã°ã"
-"æä¸ä½ã®å±¤ã§ï¼ã§ãã³ããªã³ã°ãã ã¨ã©ã¼ã¡ãã»ã¼ã¸ãã¢ããªã±ã¼ã·ã§ã³ã¦ã¼ã¶ã¼ã«"
-"表示ãã¾ã ï¼ãããã¯ãä»ã®é©åãªå¦çã宿½ãã¾ãï¼ã Hibernateã¯ã"
-"<literal>HibernateException</literal> 以å¤ã®æ¤æ»ãããªãä¾å¤ã æãããã¨ã«æ³¨"
-"æãã¦ãã ããã ããããã¾ããå復ä¸å¯è½ã§ãããé©åãªå¦çã宿½ãã¹ãã§ãã"
+"<literal>HibernateException</literal> ã¯ã Hibernate æ°¸ç¶å層ã®ä¸ã§çºçããå¤"
+"ãã®ã¨ã©ã¼ãã©ãããããæ¤æ»ãããªãä¾å¤ã§ã ï¼ Hibernate ã®å¤ããã¼ã¸ã§ã³ã¯"
+"éãã¾ããï¼ ãç§ãã¡ã®æè¦ã¯ãã¢ããªã±ã¼ã·ã§ã³éçºè
ã«å復ä¸å¯è½ãªä¾å¤ãä¸å±¤"
+"ã§ãã£ãããããã¨ãå¼·è¦ãã¹ãã§ã¯ãªãã¨ãããã¨ã§ããå¤ãã®ã·ã¹ãã ã§ã¯ãæ¤"
+"æ»ãããªãä¾å¤ã¨è´å½çãªä¾å¤ã¯ãã³ã¼ã«ã¹ã¿ãã¯ã®æåã®ãã¬ã¼ã ã®ï¼ã¤ ï¼ä¾ã"
+"ã°ãæä¸ä½ã®å±¤ã§ï¼ ã§ãã³ããªã³ã°ããã¨ã©ã¼ã¡ãã»ã¼ã¸ãã¢ããªã±ã¼ã·ã§ã³ã¦ã¼"
+"ã¶ã¼ã«è¡¨ç¤ºãã¾ã ï¼ãããã¯ãä»ã®é©åãªå¦çã宿½ãã¾ãï¼ ã Hibernate ã¯ã"
+"<literal>HibernateException</literal> 以å¤ã®æ¤æ»ãããªãä¾å¤ãæãããã¨ã«æ³¨"
+"æãã¦ãã ãããããããã¾ããå復ä¸å¯è½ã§ãããé©åãªå¦çã宿½ãã¹ãã§ãã"
#. Tag: para
-#: transactions.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
"with the database in a <literal>JDBCException</literal>. In fact, Hibernate "
@@ -1188,43 +1021,40 @@
"class for details. The standard <literal>JDBCException</literal> subtypes "
"are:"
msgstr ""
-"Hibernateã¯ããã¼ã¿ãã¼ã¹ã¨ã®å¯¾è©±ä¸ã«æãããã <literal>SQLException</"
-"literal> ã <literal>JDBCException</literal> ã§ã©ãããã¾ãã å®ã¯ãä¾å¤ãã"
-"ãæå³ã®ãã <literal>JDBCException</literal> ã®ãµãã¯ã©ã¹ã« 夿ãããã¨è©¦ã¿"
-"ã¾ãã å
ã® <literal>SQLException</literal> ã¯ã<literal>JDBCException."
-"getCause()</literal> ã«ãããã¤ã§ãå¾ããã¾ãã Hibernateã¯ã"
+"Hibernate ã¯ããã¼ã¿ãã¼ã¹ã¨ã®å¯¾è©±ä¸ã«æãããã <literal>SQLException</"
+"literal> ã <literal>JDBCException</literal> ã§ã©ãããã¾ããå®ã¯ãä¾å¤ããã"
+"æå³ã®ãã <literal>JDBCException</literal> ã®ãµãã¯ã©ã¹ã«å¤æãããã¨è©¦ã¿ã¾"
+"ããå
ã® <literal>SQLException</literal> ã¯ã <literal>JDBCException.getCause"
+"()</literal> ã«ãããã¤ã§ãå¾ããã¾ãã Hibernate ã¯ã "
"<literal>SessionFactory</literal> ã«è¿½å ããã¦ãã "
-"<literal>SQLExceptionConverter</literal> ã使ãã<literal>SQLException</"
-"literal> ã é©å½ãª <literal>JDBCException</literal> ãµãã¯ã©ã¹ã«å¤æãã¾ãã "
-"ããã©ã«ãã§ã¯ã<literal>SQLExceptionConverter</literal> ã¯è¨å®ããã¦ããSQL"
-"æ¹è¨ã«ãã å®ç¾©ããã¾ãã 䏿¹ã§ãç¬èªã®å®è£
ã«å·®ãæ¿ãããã¨ãã§ãã¾ã ï¼è©³ç´°"
-"ã¯ã<literal>SQLExceptionConverterFactory</literal> ã¯ã©ã¹ã®Javadocãåç
§ãã¦"
-"ãã ããï¼ã æ¨æºç㪠<literal>JDBCException</literal> ã®ãµãã¿ã¤ããä¸è¨ã«ç¤º"
-"ãã¾ãã"
+"<literal>SQLExceptionConverter</literal> ã使ãã <literal>SQLException</"
+"literal> ãé©å½ãª <literal>JDBCException</literal> ãµãã¯ã©ã¹ã«å¤æãã¾ããã"
+"ãã©ã«ãã§ã¯ã <literal>SQLExceptionConverter</literal> ã¯è¨å®ããã¦ãã SQL "
+"æ¹è¨ã«ããå®ç¾©ããã¾ãã䏿¹ã§ãç¬èªã®å®è£
ã«å·®ãæ¿ãããã¨ãã§ãã¾ã ï¼è©³ç´°"
+"ã¯ã <literal>SQLExceptionConverterFactory</literal> ã¯ã©ã¹ã® Javadoc ãåç
§"
+"ãã¦ãã ããï¼ãæ¨æºç㪠<literal>JDBCException</literal> ã®ãµãã¿ã¤ããä¸è¨"
+"ã«ç¤ºãã¾ãã"
#. Tag: para
-#: transactions.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
"underlying JDBC communication."
msgstr ""
-"<literal>JDBCConnectionException</literal> - åºç¤ã¨ãªãJDBCéä¿¡ã®ã¨ã©ã¼ã表ã"
-"ã¾ãã"
+"<literal>JDBCConnectionException</literal> - åºç¤ã¨ãªã JDBC éä¿¡ã®ã¨ã©ã¼ã表"
+"ãã¾ãã"
#. Tag: para
-#: transactions.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
"problem with the issued SQL."
msgstr ""
-"<literal>SQLGrammarException</literal> - çºè¡ããSQLã®ææ³ãããã¯æ§æã®åé¡"
-"ã表ãã¾ãã"
+"<literal>SQLGrammarException</literal> - çºè¡ãã SQL ã®ææ³ãããã¯æ§æã®å"
+"é¡ã表ãã¾ãã"
#. Tag: para
-#: transactions.xml:615
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
"integrity constraint violation."
@@ -1233,8 +1063,7 @@
"åã表ãã¾ãã"
#. Tag: para
-#: transactions.xml:621
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
"lock level necessary to perform the requested operation."
@@ -1243,8 +1072,7 @@
"è¦ãªããã¯ã¬ãã«ãå¾ãéã®ã¨ã©ã¼ã表ãã¾ãã"
#. Tag: para
-#: transactions.xml:627
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
"fall into any of the other categories."
@@ -1253,14 +1081,12 @@
"ãªä¾å¤ã§ãã"
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
msgstr "ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¿ã¤ã ã¢ã¦ã"
#. Tag: para
-#: transactions.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
"never provided for non-managed code, is transaction timeout. Transaction "
@@ -1273,61 +1099,33 @@
"transaction timeout to JTA. This functionality is abstracted by the "
"Hibernate <literal>Transaction</literal> object."
msgstr ""
-"EJBã®ãããªç®¡çãããç°å¢ãæä¾ãããããã¦éè¦ãªç¹å¾´ã®ï¼ã¤ã¯ã ãã©ã³ã¶ã¯"
-"ã·ã§ã³ã®ã¿ã¤ã ã¢ã¦ãã§ãã ããã¯ç®¡çããã¦ããªãã³ã¼ãã«ã¯æä¾ã§ãã¾ããã "
-"ãã©ã³ã¶ã¯ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã¯ãä¸åè¡ãªãã©ã³ã¶ã¯ã·ã§ã³ã ã¦ã¼ã¶ã¼ã«ã¬ã¹ãã³"
-"ã¹ãè¿ããªãã¾ã¾ãç¡æéã«ãªã½ã¼ã¹ã使ãç¶ããªã ãã¨ãä¿éãã¾ãã 管çãã"
-"ãç°å¢ï¼JTAï¼ã®å¤ã§ã¯ãHibernateã¯ãã®æ©è½ããã«ã«æä¾ã§ãã¾ããã ããããªã"
-"ããHibernateã¯æ¬¡ã®ãããªãã¼ã¿ã¢ã¯ã»ã¹æä½ã®å¶å¾¡ãããã¯ã§ãã¾ãã ãã¼ã¿"
-"ãã¼ã¹ã¬ãã«ã®ãããããã¯ã大ããªãªã¶ã«ãã»ãããè¿ãã¯ã¨ãªã å®ç¾©ãããã¿ã¤"
-"ã ã¢ã¦ãã«ãã£ã¦ç¢ºå®ã«å¶éãã¾ãã 管çãããç°å¢ã§ã¯ãHibernateã¯ãã©ã³ã¶ã¯"
-"ã·ã§ã³ã¿ã¤ã ã¢ã¦ããJTAã«å§è²ãã¾ãã ãã®æ©è½ã¯ãHibernateã® "
-"<literal>Transaction</literal> ãªãã¸ã§ã¯ãã« ãã£ã¦æ½è±¡åããã¦ãã¾ãã"
+"EJB ã®ãããªç®¡çãããç°å¢ãæä¾ãããããã¦éè¦ãªç¹å¾´ã®ï¼ã¤ã¯ããã©ã³ã¶ã¯"
+"ã·ã§ã³ã®ã¿ã¤ã ã¢ã¦ãã§ããããã¯ç®¡çããã¦ããªãã³ã¼ãã«ã¯æä¾ã§ãã¾ãããã"
+"ã©ã³ã¶ã¯ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã¯ãä¸åè¡ãªãã©ã³ã¶ã¯ã·ã§ã³ãã¦ã¼ã¶ã¼ã«ã¬ã¹ãã³ã¹"
+"ãè¿ããªãã¾ã¾ãç¡æéã«ãªã½ã¼ã¹ã使ãç¶ããªããã¨ãä¿éãã¾ãã管çãããç°"
+"å¢ ï¼JTAï¼ ã®å¤ã§ã¯ã Hibernate ã¯ãã®æ©è½ããã«ã«æä¾ã§ãã¾ãããããããªã"
+"ãã Hibernate ã¯æ¬¡ã®ãããªãã¼ã¿ã¢ã¯ã»ã¹æä½ã®å¶å¾¡ãããã¯ã§ãã¾ãããã¼ã¿"
+"ãã¼ã¹ã¬ãã«ã®ãããããã¯ã大ããªãªã¶ã«ãã»ãããè¿ãã¯ã¨ãªãå®ç¾©ãããã¿ã¤"
+"ã ã¢ã¦ãã«ãã£ã¦ç¢ºå®ã«å¶éãã¾ãã管çãããç°å¢ã§ã¯ã Hibernate ã¯ãã©ã³ã¶ã¯"
+"ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã JTA ã«å§è²ãã¾ãããã®æ©è½ã¯ã Hibernate ã® "
+"<literal>Transaction</literal> ãªãã¸ã§ã¯ãã«ãã£ã¦æ½è±¡åããã¦ãã¾ãã"
-#. Tag: programlisting
-#: transactions.xml:652
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:654
-#, fuzzy, no-c-format
-msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
"transaction timeouts must be defined declaratively."
msgstr ""
-"CMTãã¼ã³ã®ä¸ã§ã¯ <literal>setTimeout()</literal> ã å¼ã³åºããªããã¨ã«æ³¨æã"
-"ã¦ãã ããã ãã©ã³ã¶ã¯ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã¯å®£è¨çã«å®ç¾©ãããã¹ãã§ãã"
+"CMT Bean ã®ä¸ã§ã¯ <literal>setTimeout()</literal> ãå¼ã³åºããªããã¨ã«æ³¨æã"
+"ã¦ãã ããããã©ã³ã¶ã¯ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã¯å®£è¨çã«å®ç¾©ãããã¹ãã§ãã"
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
msgstr "楽観çåæå®è¡å¶å¾¡"
#. Tag: para
-#: transactions.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
"scalability, is optimistic concurrency control with versioning. Version "
@@ -1337,23 +1135,21 @@
"discuss are in the context of long conversations, but version checking also "
"has the benefit of preventing lost updates in single database transactions."
msgstr ""
-"é«ã䏦忧ã¨é«ãã¹ã±ã¼ã©ããªãã£ã®ä¸¡æ¹ãå®ç¾ããã¢ããã¼ãã¯ã ãã¼ã¸ã§ãã³ã°"
-"ã使ã£ã楽観çåæå®è¡å¶å¾¡ã®ã¿ã§ãã æ´æ°ã®è¡çªãè¦ã¤ããããã«ï¼ããã³ãæ´æ°"
-"ã失ãããã®ãé²ãããã«ï¼ã ãã¼ã¸ã§ã³çªå·ãããã¯ã¿ã¤ã ã¹ã¿ã³ãã使ã£ã¦ã"
-"ãã¼ã¸ã§ã³ããã§ãã¯ãã¾ãã Hibernateã¯ã楽観çåæå®è¡ãè¡ãã¢ããªã±ã¼ã·ã§"
-"ã³ã³ã¼ããæ¸ãããã® ã¢ããã¼ããï¼ã¤æä¾ãã¾ãã ç§ãã¡ãè¦ããã¦ã¼ã¹ã±ã¼ã¹"
-"ã¯ãé·ã対話ãæã¡ã¾ããã ãã¼ã¸ã§ã³ãã§ãã¯ã¯ã¾ã ï¼ã¤ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶"
-"ã¯ã·ã§ã³ã®ä¸ã§æ´æ°ã失ããã¨ãé²ã å©ç¹ãæã£ã¦ãã¾ãã"
+"é«ã䏦忧ã¨é«ãã¹ã±ã¼ã©ããªãã£ã®ä¸¡æ¹ãå®ç¾ããã¢ããã¼ãã¯ããã¼ã¸ã§ãã³ã°"
+"ã使ã£ã楽観çåæå®è¡å¶å¾¡ã®ã¿ã§ããæ´æ°ã®è¡çªãè¦ã¤ããããã«ï¼ããã³ãæ´æ°"
+"ã失ãããã®ãé²ãããã«ï¼ããã¼ã¸ã§ã³çªå·ãããã¯ã¿ã¤ã ã¹ã¿ã³ãã使ã£ã¦ã"
+"ãã¼ã¸ã§ã³ããã§ãã¯ãã¾ãã Hibernate ã¯ã楽観çåæå®è¡ãè¡ãã¢ããªã±ã¼ã·ã§"
+"ã³ã³ã¼ããæ¸ãããã®ã¢ããã¼ããï¼ã¤æä¾ãã¾ããç§ãã¡ãè¦ããã¦ã¼ã¹ã±ã¼ã¹"
+"ã¯ãé·ã対話ãæã¡ã¾ããããã¼ã¸ã§ã³ãã§ãã¯ã¯ã¾ã ï¼ã¤ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶"
+"ã¯ã·ã§ã³ã®ä¸ã§æ´æ°ã失ããã¨ãé²ãå©ç¹ãæã£ã¦ãã¾ãã"
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
msgstr "ã¢ããªã±ã¼ã·ã§ã³ã«ãããã¼ã¸ã§ã³ãã§ãã¯"
#. Tag: para
-#: transactions.xml:679
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
"the database occurs in a new <literal>Session</literal> and the developer is "
@@ -1363,48 +1159,28 @@
"least efficient in terms of database access. It is the approach most similar "
"to entity EJBs."
msgstr ""
-"Hibernateã«ã»ã¨ãã©å©ãã¦ããããã«å®è£
ããã±ã¼ã¹ã§ãã ãã¼ã¿ãã¼ã¹ã¨ã®ãã"
-"åãã¯ãããããæ°ãã <literal>Session</literal> ã®ä¸ã§èµ·ããã¾ãã éçºè
"
-"ã¯ããã¹ã¦ã®æ°¸ç¶æ§ã¤ã³ã¹ã¿ã³ã¹ãæä½ããåã«ã ãã¼ã¿ãã¼ã¹ããåèªã¿è¾¼ã¿ãã"
-"責åãããã¾ãã ãã®ã¢ããã¼ãã§ã¯ã対話ãã©ã³ã¶ã¯ã·ã§ã³ã®åé¢ãå®ããã"
-"ã«ã ã¢ããªã±ã¼ã·ã§ã³èªèº«ããã¼ã¸ã§ã³ãã§ãã¯ãè¡ãå¿
è¦ãããã¾ãã ãã®ã¢ã"
-"ãã¼ãã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ã®ä¸ã§ã¯ãæãéå¹çã§ãã ã¨ã³ãã£ãã£EJBã¨æ"
-"ãä¼¼ã¦ããã¢ããã¼ãã§ãã"
+"Hibernate ã«ã»ã¨ãã©å©ãã¦ããããã«å®è£
ããã±ã¼ã¹ã§ãããã¼ã¿ãã¼ã¹ã¨ã®ãã"
+"åãã¯ãããããæ°ãã <literal>Session</literal> ã®ä¸ã§èµ·ããã¾ããéçºè
"
+"ã¯ããã¹ã¦ã®æ°¸ç¶æ§ã¤ã³ã¹ã¿ã³ã¹ãæä½ããåã«ããã¼ã¿ãã¼ã¹ããåèªã¿è¾¼ã¿ãã"
+"責åãããã¾ãããã®ã¢ããã¼ãã§ã¯ã対話ãã©ã³ã¶ã¯ã·ã§ã³ã®åé¢ãå®ãããã«ã"
+"ã¢ããªã±ã¼ã·ã§ã³èªèº«ããã¼ã¸ã§ã³ãã§ãã¯ãè¡ãå¿
è¦ãããã¾ãããã®ã¢ããã¼ã"
+"ã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ã®ä¸ã§ã¯ãæãéå¹çã§ããã¨ã³ãã£ã㣠EJB ã¨æãä¼¼ã¦"
+"ããã¢ããã¼ãã§ãã"
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
"version></literal>, and Hibernate will automatically increment it during "
"flush if the entity is dirty."
msgstr ""
-"<literal><version></literal> ã使ã£ã¦ã<literal>version</literal> ãã"
-"ããã£ããããã³ã°ãã¾ãã Hibernateã¯ãã¨ã³ãã£ãã£ããã¼ãã£ã§ããå ´åãã"
-"ã©ãã·ã¥ãã ãã®éã« <literal>version</literal> ããããã£ãèªåçã«ã¤ã³ã¯ãª"
+"<literal><version></literal> ã使ã£ã¦ã <literal>version</literal> ãã"
+"ããã£ããããã³ã°ãã¾ãã Hibernate ã¯ãã¨ã³ãã£ãã£ããã¼ãã£ã§ããå ´åãã"
+"ã©ãã·ã¥ãããã®éã« <literal>version</literal> ããããã£ãèªåçã«ã¤ã³ã¯ãª"
"ã¡ã³ããã¾ãã"
#. Tag: para
-#: transactions.xml:696
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
"require version checking, you can use this approach and skip the version "
@@ -1414,15 +1190,14 @@
"messages or a chance to merge conflicting changes."
msgstr ""
"ãã¡ããããã¼ã¿ã®ä¸¦åæ§ãä½ãç°å¢ã§éç¨ãã¦ããããã¼ã¸ã§ã³ãã§ãã¯ãä¸è¦ãª"
-"ãã ãã®ã¢ããã¼ãã使ãããã¼ã¸ã§ã³ãã§ãã¯ãã¹ãããããã ãã§ãã ãã®å ´"
-"åã¯ãé·ã対話ã«ã¯ã <emphasis>ãæå¾ã«ã³ããããããã®ãåã¤ã</emphasis> ã"
-"ããã©ã«ãã®æ¦ç¥ã§ãããã ãã®ã¢ããã¼ãã¯ãã¢ããªã±ã¼ã·ã§ã³ã®ã¦ã¼ã¶ã¼ãæ··ä¹±"
-"ããããããããªããã¨ã å¿ã«çãã¦ç½®ãã¦ãã ãããããã¯ãã¨ã©ã¼ã¡ãã»ã¼ã¸ã"
-"ç«¶åãã夿´ããã¼ã¸ããæ©ä¼ã ãªãã¾ã¾ãæ´æ°ã失ãçµé¨ãããããã§ãã"
+"ãããã®ã¢ããã¼ãã使ãããã¼ã¸ã§ã³ãã§ãã¯ãã¹ãããããã ãã§ãããã®å ´å"
+"ã¯ãé·ã対話ã«ã¯ã <emphasis>æå¾ã«ã³ããããããã®ãåã¤</emphasis> ãããã©"
+"ã«ãã®æ¦ç¥ã§ãããããã®ã¢ããã¼ãã¯ãã¢ããªã±ã¼ã·ã§ã³ã®ã¦ã¼ã¶ã¼ãæ··ä¹±ããã"
+"ãããããªããã¨ãå¿ã«çãã¦ç½®ãã¦ãã ãããããã¯ãã¨ã©ã¼ã¡ãã»ã¼ã¸ãç«¶åã"
+"ã夿´ããã¼ã¸ããæ©ä¼ããªãã¾ã¾ãæ´æ°ã失ãå¯è½æ§ãããããã§ãã"
#. Tag: para
-#: transactions.xml:705
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
"practical for most applications. Often not only single instances, but "
@@ -1431,20 +1206,18 @@
"literal> or detached instances as the design paradigm."
msgstr ""
"確ãã«ãããã¥ã¢ã«ã«ãããã¼ã¸ã§ã³ãã§ãã¯ã¯ãäºç´°ãªåå¼ã ãã§å®è¡ã§ãã¾ã"
-"ãã å¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦å®ç¨çã§ã¯ããã¾ããã ãã°ãã°ãï¼ã¤ã®ã¤"
-"ã³ã¹ã¿ã³ã¹ã ãã§ãªãã ä¿®æ£ããããªãã¸ã§ã¯ãã®å®å
¨ãªã°ã©ãããã§ãã¯ããªãã"
-"ã°ãªãã¾ããã Hibernateã¯ãè¨è¨ãã©ãã¤ã ã¨ãã¦ãæ¡å¼µ <literal>Session</"
-"literal> ã åé¢ãããã¤ã³ã¹ã¿ã³ã¹ãèªåçã«ãã¼ã¸ã§ã³ãã§ãã¯ãã¾ãã"
+"ããå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦å®ç¨çã§ã¯ããã¾ããããã°ãã°ãï¼ã¤ã®ã¤ã³"
+"ã¹ã¿ã³ã¹ã ãã§ãªããä¿®æ£ããããªãã¸ã§ã¯ãã®å®å
¨ãªã°ã©ãããã§ãã¯ããªããã°"
+"ãªãã¾ããã Hibernate ã¯ãè¨è¨ãã©ãã¤ã ã¨ãã¦ãæ¡å¼µ <literal>Session</"
+"literal> ãåé¢ãããã¤ã³ã¹ã¿ã³ã¹ãèªåçã«ãã¼ã¸ã§ã³ãã§ãã¯ãã¾ãã"
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
msgstr "æ¡å¼µã»ãã·ã§ã³ã¨èªåãã¼ã¸ã§ãã³ã°"
#. Tag: para
-#: transactions.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
"that are used for the whole conversation are known as <emphasis>session-per-"
@@ -1455,15 +1228,14 @@
"conversation with non-stale data."
msgstr ""
"ï¼ã¤ã® <literal>Session</literal> ã¤ã³ã¹ã¿ã³ã¹ã¨ãã®æ°¸ç¶æ§ã¤ã³ã¹ã¿ã³ã¹ã¯ã "
-"<emphasis>session-per-conversation</emphasis> ã¨ãã¦ç¥ãããã 対話å
¨ä½ã§ä½¿ã"
-"ãã¾ãã Hibernateã¯ãã©ãã·ã¥ããéã«ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¼ã¸ã§ã³ããã§ãã¯ã"
-"ã¾ãã åæã«ä¿®æ£ããããã¨ãæ¤åºããã¨ãä¾å¤ãæãã¾ãã ãã®ä¾å¤ããã£ãã"
-"ãã¦æ±ãã®ã¯ãéçºè
ã®è²¬ä»»ã§ã ï¼ä¸è¬çãªé¸æè¢ã¯ã夿´ããã¼ã¸ãããå¤ããªã"
-"ãã¼ã¿ã§ãã¸ãã¹å¯¾è©±ã åã¹ã¿ã¼ãããæ©ä¼ãã¦ã¼ã¶ã¼ã«æä¾ãããã¨ã§ãï¼ã"
+"<emphasis>session-per-conversation</emphasis> ã¨ãã¦ç¥ãããã対話å
¨ä½ã§ä½¿ã"
+"ãã¾ãã Hibernate ã¯ãã©ãã·ã¥ããéã«ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¼ã¸ã§ã³ããã§ãã¯ã"
+"ã¾ããåæã«ä¿®æ£ããããã¨ãæ¤åºããã¨ãä¾å¤ãæãã¾ãããã®ä¾å¤ããã£ããã"
+"ã¦æ±ãã®ã¯ãéçºè
ã®è²¬ä»»ã§ã ï¼ä¸è¬çãªé¸æè¢ã¯ã夿´ããã¼ã¸ãããå¤ããªã"
+"ãã¼ã¿ã§ãã¸ãã¹å¯¾è©±ãåã¹ã¿ã¼ãããæ©ä¼ãã¦ã¼ã¶ã¼ã«æä¾ãããã¨ã§ãï¼ã"
#. Tag: para
-#: transactions.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
"connection when waiting for user interaction. This approach is the most "
@@ -1471,31 +1243,15 @@
"check or reattach detached instances, nor does it have to reload instances "
"in every database transaction."
msgstr ""
-"ã¦ã¼ã¶ã¼ã®å¯¾è©±ãå¾
ã£ã¦ããã¨ãã¯ã <literal>Session</literal> ãåºç¤ã¨ãªã"
-"JDBCã³ãã¯ã·ã§ã³ããåãé¢ãã¾ãã ãã®ã¢ããã¼ãã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ã®ä¸"
-"ã§ã¯ãæãå¹ççã§ãã ã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼ã¸ã§ã³ãã§ãã¯ãåé¢ãããã¤ã³"
-"ã¹ã¿ã³ã¹ãå追å ããã㨠ã«é¢å¿ãæã¤å¿
è¦ã¯ããã¾ãããã¾ãããããããã¼ã¿"
-"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸ã§ ã¤ã³ã¹ã¿ã³ã¹ãåèªã¿è¾¼ã¿ããå¿
è¦ã¯ããã¾ããã"
+"ã¦ã¼ã¶ã¼ã®å¯¾è©±ãå¾
ã£ã¦ããã¨ãã¯ã <literal>Session</literal> ãåºç¤ã¨ãªã "
+"JDBC ã³ãã¯ã·ã§ã³ããåãé¢ãã¾ãããã®ã¢ããã¼ãã¯ããã¼ã¿ãã¼ã¹ã¢ã¯ã»ã¹ã®ä¸"
+"ã§ã¯ãæãå¹ççã§ããã¢ããªã±ã¼ã·ã§ã³ã¯ããã¼ã¸ã§ã³ãã§ãã¯ãåé¢ãããã¤ã³"
+"ã¹ã¿ã³ã¹ãå追å ãããã¨ã«é¢å¿ãæã¤å¿
è¦ã¯ããã¾ãããã¾ãããããããã¼ã¿"
+"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ä¸ã§ã¤ã³ã¹ã¿ã³ã¹ãåèªã¿è¾¼ã¿ããå¿
è¦ã¯ããã¾ããã"
-#. Tag: programlisting
-#: transactions.xml:735
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:736
-#, fuzzy, no-c-format
-msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
"was loaded in. Beginning a new database transaction on an old session "
"obtains a new connection and resumes the session. Committing a database "
@@ -1512,23 +1268,22 @@
"<literal>close()</literal> the session to end the conversation."
msgstr ""
"<literal>foo</literal> ãªãã¸ã§ã¯ãã¯ãèªåããã¼ããã <literal>Session</"
-"literal> ãã¾ã ç¥ã£ã¦ãã¾ãã å¤ãã»ãã·ã§ã³ã®ä¸ã§æ°ãããã¼ã¿ãã¼ã¹ãã©ã³ã¶"
-"ã¯ã·ã§ã³ãéå§ãããã¨ã§ã æ°ããã³ãã¯ã·ã§ã³ãåå¾ãããã®ã»ãã·ã§ã³ãåéã"
-"ãã¾ãã ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã³ããããããã¨ã§ã ã»ãã·ã§ã³ãã"
-"JDBCã³ãã¯ã·ã§ã³ãåæããã³ãã¯ã·ã§ã³ããã¼ã«ã«è¿ãã¾ãã 忥ç¶ããå¾ãæ´æ°"
-"ãã¦ããªããã¼ã¿ã®ãã¼ã¸ã§ã³ãã§ãã¯ãå¼·å¶ããããã«ã ä»ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«"
-"ããæ´æ°ããã¦ãããããããªããªãã¸ã§ã¯ãã«é¢ãã¦ã <literal>LockMode.READ</"
+"literal> ãã¾ã ç¥ã£ã¦ãã¾ããå¤ãã»ãã·ã§ã³ã®ä¸ã§æ°ãããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯"
+"ã·ã§ã³ãéå§ãããã¨ã§ãæ°ããã³ãã¯ã·ã§ã³ãåå¾ãããã®ã»ãã·ã§ã³ãåéãã"
+"ã¾ãããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ãã³ããããããã¨ã§ãã»ãã·ã§ã³ãã JDBC "
+"ã³ãã¯ã·ã§ã³ãåæããã³ãã¯ã·ã§ã³ããã¼ã«ã«è¿ãã¾ãã忥ç¶ããå¾ãæ´æ°ãã¦"
+"ããªããã¼ã¿ã®ãã¼ã¸ã§ã³ãã§ãã¯ãå¼·å¶ããããã«ãä»ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«ãã"
+"æ´æ°ããã¦ãããããããªããªãã¸ã§ã¯ãã«é¢ãã¦ã <literal>LockMode.READ</"
"literal> ãã¤ã㦠<literal>Session.lock()</literal> ãå¼ã³åºããã¨ãã§ãã¾"
-"ãã æ´æ°ã㦠<emphasis>ãã</emphasis> ãã¼ã¿ãããã¯ããå¿
è¦ã¯ããã¾ããã "
-"éå¸¸ãæ¡å¼µ <literal>Session</literal> ã« <literal>FlushMode.MANUAL</literal> "
-"ãã»ãããã¾ãã æå¾ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®å¨æã§ã®ã¿ã 対話ã®ä¸ã§"
-"夿´ããããã¹ã¦ãå®éã«æ°¸ç¶åãããããã§ãã ããã«ãæå¾ã®ãã¼ã¿ãã¼ã¹ãã©"
-"ã³ã¶ã¯ã·ã§ã³ã®ã¿ <literal>flush()</literal> ãªãã¬ã¼ã·ã§ã³ãå«ã¿ã¾ãããã"
-"ã¦ã対話ãçµããããããã«ã ã»ãã·ã§ã³ã <literal>close()</literal> ãã¾ãã"
+"ããæ´æ°ã㦠<emphasis>ãã</emphasis> ãã¼ã¿ãããã¯ããå¿
è¦ã¯ããã¾ãããé"
+"å¸¸ãæ¡å¼µ <literal>Session</literal> ã« <literal>FlushMode.MANUAL</literal> ã"
+"ã»ãããã¾ããæå¾ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®å¨æã§ã®ã¿ã対話ã®ä¸ã§å¤æ´"
+"ããããã¹ã¦ãå®éã«æ°¸ç¶åãããããã§ããããã«ãæå¾ã®ãã¼ã¿ãã¼ã¹ãã©ã³ã¶"
+"ã¯ã·ã§ã³ã®ã¿ <literal>flush()</literal> ãªãã¬ã¼ã·ã§ã³ãå«ã¿ã¾ããããã¦ã対"
+"話ãçµããããããã«ãã»ãã·ã§ã³ã <literal>close()</literal> ãã¾ãã"
#. Tag: para
-#: transactions.xml:751
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
"be stored during user think time (for example, an <literal>HttpSession</"
@@ -1539,34 +1294,31 @@
"have stale data."
msgstr ""
"ã¦ã¼ã¶ã¼ãèæ
®ä¸ã«ãæ ¼ç´ãããã¨ãã§ããªãããã <literal>Session</literal> "
-"ã大ããã®ã§ããã°ããã®ãã¿ã¼ã³ã¯åé¡ãããã¾ãã ä¾ãã°ã"
+"ã大ããã®ã§ããã°ããã®ãã¿ã¼ã³ã¯åé¡ãããã¾ããä¾ãã°ã "
"<literal>HttpSession</literal> ã¯å¯è½ãªéãå°ããä¿ã¤ã¹ãã§ãã "
-"<literal>Session</literal> ã¯ï¼å¼·å¶çã«ï¼ï¼æ¬¡ãã£ãã·ã¥ã§ãããã ãã¼ããã"
-"ãªãã¸ã§ã¯ãããã¹ã¦ä¿æãã¾ãã ããããããªã¯ã¨ã¹ãï¼ã¬ã¹ãã³ã¹ã®ãµã¤ã¯ã«ã"
-"æ°åã§ããã°ããã®æ¦ç¥ã使ãã¾ãã ï¼ã¤ã®å¯¾è©±ã®ããã ãã« <literal>Session</"
-"literal> ã使ãã¹ãã§ãã ãªããªããããã«æ°é®®ã§ãªããã¼ã¿ãæã¤ããã§ãã"
+"<literal>Session</literal> 㯠ï¼å¼·å¶çã«ï¼ ï¼æ¬¡ãã£ãã·ã¥ã§ãããããã¼ããã"
+"ãªãã¸ã§ã¯ãããã¹ã¦ä¿æãã¾ããããããããªã¯ã¨ã¹ãï¼ã¬ã¹ãã³ã¹ã®ãµã¤ã¯ã«ã"
+"æ°åã§ããã°ããã®æ¦ç¥ã使ãã¾ããï¼ã¤ã®å¯¾è©±ã®ããã ãã« <literal>Session</"
+"literal> ã使ãã¹ãã§ãããªããªããããã«æ°é®®ã§ãªããã¼ã¿ãæã¤ããã§ãã"
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注è¨"
#. Tag: para
-#: transactions.xml:763
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
"reconnection of a <literal>Session</literal>. These methods are deprecated, "
"as beginning and ending a transaction has the same effect."
msgstr ""
-"ï¼Hibernateã®ä»¥åã®ãã¼ã¸ã§ã³ã¯ãæç¤ºç㪠<literal>Session</literal> ã® åæ"
-"ã¨åæ¥ç¶ãå¿
è¦ã ã£ããã¨ã«æ³¨æãã¦ãã ããã ãããã®ã¡ã½ããã¯éæ¨å¥¨ã«ãªãã¾"
-"ããã ãªããªãããã©ã³ã¶ã¯ã·ã§ã³ã®éå§ã¨çµäºã¯åã广ãããããã§ããï¼"
+"Hibernate ã®ä»¥åã®ãã¼ã¸ã§ã³ã¯ãæç¤ºç㪠<literal>Session</literal> ã®åæã¨"
+"忥ç¶ãå¿
è¦ã ã£ããã¨ã«æ³¨æãã¦ãã ããããããã®ã¡ã½ããã¯éæ¨å¥¨ã«ãªãã¾ã"
+"ãããªããªãããã©ã³ã¶ã¯ã·ã§ã³ã®éå§ã¨çµäºã¯åã广ãããããã§ãã"
#. Tag: para
-#: transactions.xml:769
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
"layer. Use an EJB stateful session bean to hold the <literal>Session</"
@@ -1574,15 +1326,14 @@
"or even serialize it to a separate tier, to store it in the "
"<literal>HttpSession</literal>."
msgstr ""
-"åæãã <literal>Session</literal> ãæ°¸ç¶å層ã®è¿ãã§ä¿æãã¹ãã§ãããã¨ã« "
-"注æãã¦ãã ããã è¨ãæããã¨ãï¼å±¤ç°å¢ã®ä¸ã§ <literal>Session</literal> ã"
-"ä¿æããããã«ã EJBã¹ãã¼ããã«ã»ãã·ã§ã³Beanã使ã£ã¦ãã ããã "
-"<literal>HttpSession</literal> ã«æ ¼ç´ããããã«ãWeb層ã«è»¢éããªãã§ãã ãã "
-"ï¼å¥ã®å±¤ã¸ã®ã·ãªã¢ã©ã¤ãºãããªãã§ãã ããï¼ã"
+"åæãã <literal>Session</literal> ãæ°¸ç¶å層ã®è¿ãã§ä¿æãã¹ãã§ãããã¨ã«"
+"注æãã¦ãã ãããè¨ãæããã¨ãï¼å±¤ç°å¢ã®ä¸ã§ <literal>Session</literal> ã"
+"ä¿æããããã«ã EJB ã¹ãã¼ããã«ã»ãã·ã§ã³ Bean ã使ã£ã¦ãã ããã "
+"<literal>HttpSession</literal> ã«æ ¼ç´ããããã«ã Web 層ã«è»¢éããªãã§ãã ã"
+"ã ï¼å¥ã®å±¤ã¸ã®ã·ãªã¢ã©ã¤ãºãããªãã§ãã ããï¼ã"
#. Tag: para
-#: transactions.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
"emphasis>, is more difficult to implement with automatic current session "
@@ -1590,19 +1341,17 @@
"<literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki "
"for examples."
msgstr ""
-"æ¡å¼µã»ãã·ã§ã³ãã¿ã¼ã³ï¼ãããã¯ã<emphasis>session-per-conversation</"
-"emphasis>ï¼ã¯ã èªåçãªã«ã¬ã³ãã»ãã·ã§ã³ã³ã³ããã¹ã管çã宿½ããããé£ã"
-"ãã ãã®ããã«ãããªã㯠<literal>CurrentSessionContext</literal> ã®å®è£
ãä¾"
-"給ããå¿
è¦ãããã¾ãã Hibernate Wikiã«ããä¾ãåç
§ãã¦ãã ããã"
+"æ¡å¼µã»ãã·ã§ã³ãã¿ã¼ã³ ï¼ãããã¯ã <emphasis>session-per-conversation</"
+"emphasis> ï¼ ã¯ãèªåçãªã«ã¬ã³ãã»ãã·ã§ã³ã³ã³ããã¹ã管çã宿½ããããé£ã"
+"ãããã®ããã«ãããªã㯠<literal>CurrentSessionContext</literal> ã®å®è£
ãä¾"
+"給ããå¿
è¦ãããã¾ãã Hibernate Wiki ã«ããä¾ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr "ãã¿ããããããªãã¸ã§ã¯ãã¨èªåãã¼ã¸ã§ãã³ã°"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1613,41 +1362,25 @@
"<literal>Session.saveOrUpdate()</literal>, or <literal>Session.merge()</"
"literal>."
msgstr ""
-"æ°ãã <literal>Session</literal>ã«ãããæ°¸ç¶åã¹ãã¢ï¼è¨³æ³¨ï¼ï¼¤ï¼¢ï¼ã¨ã®å¯¾è©±ã"
-"çºçãã¾ãã ã¾ã䏿¹ãåãæ°¸ç¶æ§ã¤ã³ã¹ã¿ã³ã¹ãããã¼ã¿ãã¼ã¹ã¨ã®å¯¾è©±ãã¨ã«å"
-"å©ç¨ããã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã¯ãå
ã
ã¯ä»ã® <literal>Session</literal> ã§"
-"ãã¼ãããã ãã¿ãããããã¤ã³ã¹ã¿ã³ã¹ã®ç¶æ
ãæä½ãã¾ãã ããã¦ã"
-"<literal>Session.update()</literal> ãããã¯ã<literal>Session.saveOrUpdate()"
-"</literal>ã <literal>Session.merge()</literal> ã使ã£ã¦ããããã®ã¤ã³ã¹ã¿ã³"
-"ã¹ãå追å ãã¾ãã"
+"æ°ãã <literal>Session</literal> ã«ãããæ°¸ç¶åã¹ã㢠ï¼è¨³æ³¨ï¼ï¼¤ï¼¢ï¼ ã¨ã®å¯¾"
+"話ãçºçãã¾ããã¾ã䏿¹ãåãæ°¸ç¶æ§ã¤ã³ã¹ã¿ã³ã¹ãããã¼ã¿ãã¼ã¹ã¨ã®å¯¾è©±ãã¨"
+"ã«åå©ç¨ããã¾ããã¢ããªã±ã¼ã·ã§ã³ã¯ãå
ã
ã¯ä»ã® <literal>Session</literal> "
+"ã§ãã¼ãããããã¿ãããããã¤ã³ã¹ã¿ã³ã¹ã®ç¶æ
ãæä½ãã¾ããããã¦ã "
+"<literal>Session.update()</literal> ãããã¯ã <literal>Session.saveOrUpdate"
+"()</literal> ã <literal>Session.merge()</literal> ã使ã£ã¦ããããã®ã¤ã³ã¹ã¿"
+"ã³ã¹ãå追å ãã¾ãã"
-#. Tag: programlisting
-#: transactions.xml:797
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:799
-#, fuzzy, no-c-format
-msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
"exception if conflicting updates occurred."
msgstr ""
-"ãã®å ´åããã¯ããHibernateã¯ãã©ãã·ã¥ããéã«ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¼ã¸ã§ã³ã"
-"ãã§ãã¯ãã¾ãã æ´æ°ã®ç«¶åãçºçããå ´åã«ã¯ãä¾å¤ãæãã¾ãã"
+"ãã®å ´åããã¯ãã Hibernate ã¯ãã©ãã·ã¥ããéã«ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¼ã¸ã§ã³ã"
+"ãã§ãã¯ãã¾ããæ´æ°ã®ç«¶åãçºçããå ´åã«ã¯ãä¾å¤ãæãã¾ãã"
#. Tag: para
-#: transactions.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
"literal>, and use <literal>LockMode.READ</literal> (performing a version "
@@ -1655,19 +1388,17 @@
"modified."
msgstr ""
"ãªãã¸ã§ã¯ããä¿®æ£ããã¦ããªããã¨ã確信ãã¦ããå ´åã¯ã <literal>update()</"
-"literal> ã®ä»£ããã«ã<literal>LockMode.READ</literal> ã使ã£ã¦ã "
+"literal> ã®ä»£ããã«ã <literal>LockMode.READ</literal> ã使ã£ã¦ã "
"<literal>lock()</literal> ãå¼ã³åºããã¨ãã§ãã¾ã ï¼ãã¹ã¦ã®ãã£ãã·ã¥ãè¿å"
"ãããã¼ã¸ã§ã³ãã§ãã¯ã宿½ãã¾ãï¼ã"
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr "èªåãã¼ã¸ã§ãã³ã°ã®ã«ã¹ã¿ãã¤ãº"
#. Tag: para
-#: transactions.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
"properties and collections by setting the <literal>optimistic-lock</literal> "
@@ -1675,13 +1406,12 @@
"increment versions if the property is dirty."
msgstr ""
"ãããã³ã°ã® <literal>optimistic-lock</literal> 屿§ã« <literal>false</"
-"literal> ãè¨å®ãããã¨ã«ãããç¹å®ã®ããããã£ãã³ã¬ã¯ã·ã§ã³ã®ããã« èªå"
-"ãã¼ã¸ã§ã³ã¤ã³ã¯ãªã¡ã³ããç¡å¹ã«ã§ãã¾ãã ããããã£ããã¼ãã£ã§ãã£ã¦ãã"
-"ãã¼ã¸ã§ã³ãã¤ã³ã¯ãªã¡ã³ããã¾ããã"
+"literal> ãè¨å®ãããã¨ã«ãããç¹å®ã®ããããã£ãã³ã¬ã¯ã·ã§ã³ã®ããã«èªåãã¼"
+"ã¸ã§ã³ã¤ã³ã¯ãªã¡ã³ããç¡å¹ã«ã§ãã¾ããããããã£ããã¼ãã£ã§ãã£ã¦ãããã¼"
+"ã¸ã§ã³ãã¤ã³ã¯ãªã¡ã³ããã¾ããã"
#. Tag: para
-#: transactions.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
"applications might access the same database and will not know how to handle "
@@ -1694,21 +1424,20 @@
"long <literal>Session</literal> and not session-per-request-with-detached-"
"objects)."
msgstr ""
-"ã¬ã¬ã·ã¼ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯ããã°ãã°åºå®çã§ããã夿´ã§ãã¾ããã ã¾ã"
-"ã¯ãä»ã®ã¢ããªã±ã¼ã·ã§ã³ãåããã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ããªããã°ãªããã ãã®ã¢"
-"ããªã±ã¼ã·ã§ã³ã¯ãã¼ã¸ã§ã³çªå·ãã¿ã¤ã ã¹ã¿ã³ãããæä½ããæ¹æ³ãç¥ãã¾ããã "
+"ã¬ã¬ã·ã¼ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯ããã°ãã°åºå®çã§ããã夿´ã§ãã¾ãããã¾ã"
+"ã¯ãä»ã®ã¢ããªã±ã¼ã·ã§ã³ãåããã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ããªããã°ãªããããã®ã¢"
+"ããªã±ã¼ã·ã§ã³ã¯ãã¼ã¸ã§ã³çªå·ãã¿ã¤ã ã¹ã¿ã³ãããæä½ããæ¹æ³ãç¥ãã¾ããã"
"ã©ã¡ãã®å ´åãããã¼ãã«ã®ç¹å®ã®ã«ã©ã ãå½ã¦ã«ãã¦ããã¼ã¸ã§ãã³ã°ãè¡ãã¾ã"
-"ãã ãã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ããããã³ã°ããã«ããã¼ã¸ã§ã³"
+"ãããã¼ã¸ã§ã³ãã¿ã¤ã ã¹ã¿ã³ãã®ããããã£ããããã³ã°ããã«ããã¼ã¸ã§ã³"
"ãã§ãã¯ãããããã«ã <literal><class></literal> ãããã³ã°ã« "
-"<literal>optimistic-lock=\"all\"</literal> ã æå®ãã¦ãã ããã è¡ã®ãã¹ã¦ã®"
-"ãã£ã¼ã«ãã®ç¶æ
ãæ¯è¼ããããã«ãªãã¾ãã ããã¯ãHibernateãå¤ãç¶æ
ã¨æ°ã"
-"ãç¶æ
ãæ¯è¼ã§ããå ´åã«ã çè«çã«åä½ããã ãã§ãããã¨ã«æ³¨æãã¦ãã ã"
-"ãã ä¾ãã°ãsession-per-request-with-detached-objects ã§ã¯ãªãã ï¼ã¤ã®é·ã "
+"<literal>optimistic-lock=\"all\"</literal> ãæå®ãã¦ãã ãããè¡ã®ãã¹ã¦ã®"
+"ãã£ã¼ã«ãã®ç¶æ
ãæ¯è¼ããããã«ãªãã¾ããããã¯ã Hibernate ãå¤ãç¶æ
ã¨æ°ã"
+"ãç¶æ
ãæ¯è¼ã§ããå ´åã«ãçè«çã«åä½ããã ãã§ãããã¨ã«æ³¨æãã¦ãã ããã"
+"ä¾ãã°ã session-per-request-with-detached-objects ã§ã¯ãªããï¼ã¤ã®é·ã "
"<literal>Session</literal> ã使ãå ´åã§ãã"
#. Tag: para
-#: transactions.xml:834
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
"have been made do not overlap. If you set <literal>optimistic-lock=\"dirty"
@@ -1717,12 +1446,11 @@
msgstr ""
"ã¨ãã©ããè¡ããã夿´ãéãªããªãéããåæã«è¡ããã夿´ãåãå
¥ãããã¨ã"
"ã§ãã¾ãã <literal><class></literal> ãããã³ã°ã« <literal>optimistic-"
-"lock=\"dirty\"</literal> ãè¨å®ããå ´åããã©ãã·ã¥ããéã«ãHibernateã¯ãã¼"
-"ãã£ãã£ã¼ã«ãã®ã¿ãæ¯è¼ãã¾ãã"
+"lock=\"dirty\"</literal> ãè¨å®ããå ´åããã©ãã·ã¥ããéã«ã Hibernate ã¯"
+"ãã¼ãã£ãã£ã¼ã«ãã®ã¿ãæ¯è¼ãã¾ãã"
#. Tag: para
-#: transactions.xml:840
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
"field comparison, Hibernate uses a single <literal>UPDATE</literal> "
@@ -1737,27 +1465,25 @@
"to <literal>SELECT</literal> the instance to ensure that changes did occur "
"before updating the row."
msgstr ""
-"å°ç¨ã®ãã¼ã¸ã§ã³ï¼ã¿ã¤ã ã¹ã¿ã³ãã®ã«ã©ã ã使ãå ´åã ãããã¯ãã¹ã¦ï¼ãã¼ãã£"
-"ã®ãã£ã¼ã«ããæ¯è¼ããå ´åã©ã¡ãã§ãã£ã¦ãã Hibernateã¯ã¨ã³ãã£ãã£ãã¨ã«1ã¤"
-"ã® <literal>UPDATE</literal> æã ï¼é©å㪠<literal>WHERE</literal> ç¯ã¨å
±"
-"ã«ï¼ä½¿ãã ãã¼ã¸ã§ã³ãã§ãã¯ã¨æ
å ±ã®æ´æ°ãè¡ãã¾ãã é¢é£ããã¨ã³ãã£ãã£ã®"
-"å追å ãã«ã¹ã±ã¼ãããããã«ã é£éçãªæ°¸ç¶åã使ç¨ããå ´åãä¸å¿
è¦ãªæ´æ°ãå®"
-"è¡ããããããã¾ããã ããã¯é常åé¡ã«ãªãã¾ããã ããããåé¢ããã¤ã³ã¹ã¿"
-"ã³ã¹ã夿´ãã¦ããªãã¨ãã ãã¼ã¿ãã¼ã¹ã® <emphasis>on update</emphasis> ããª"
-"ã¬ã¼ãå®è¡ãããããããã¾ããã <literal><class></literal> ãããã³ã°"
-"ã« <literal>select-before-update=\"true\"</literal> ãè¨å®ãããã¨ã«ãã£ã¦ã "
-"ãã®æ¯ãèããã«ã¹ã¿ãã¤ãºã§ãã¾ãã 確å®ã«å¤æ´ããããã確èªããããã«ãè¡ã"
-"æ´æ°ããåã«ã å¿
ãã¤ã³ã¹ã¿ã³ã¹ã <literal>SELECT</literal> ãã¾ãã"
+"å°ç¨ã®ãã¼ã¸ã§ã³ï¼ã¿ã¤ã ã¹ã¿ã³ãã®ã«ã©ã ã使ãå ´åããããã¯ãã¹ã¦ï¼ãã¼ãã£"
+"ã®ãã£ã¼ã«ããæ¯è¼ããå ´åã©ã¡ãã§ãã£ã¦ãã Hibernate ã¯ã¨ã³ãã£ãã£ãã¨ã«1"
+"ã¤ã® <literal>UPDATE</literal> æã ï¼é©å㪠<literal>WHERE</literal> ç¯ã¨å
±"
+"ã«ï¼ 使ãããã¼ã¸ã§ã³ãã§ãã¯ã¨æ
å ±ã®æ´æ°ãè¡ãã¾ããé¢é£ããã¨ã³ãã£ãã£ã®å"
+"追å ãã«ã¹ã±ã¼ãããããã«ãé£éçãªæ°¸ç¶åã使ç¨ããå ´åãä¸å¿
è¦ãªæ´æ°ãå®è¡"
+"ããããããã¾ãããããã¯é常åé¡ã«ãªãã¾ãããããããåé¢ããã¤ã³ã¹ã¿ã³ã¹"
+"ã夿´ãã¦ããªãã¨ãããã¼ã¿ãã¼ã¹ã® <emphasis>on update</emphasis> ããªã¬ã¼"
+"ãå®è¡ãããããããã¾ããã <literal><class></literal> ãããã³ã°ã« "
+"<literal>select-before-update=\"true\"</literal> ãè¨å®ãããã¨ã«ãã£ã¦ããã®"
+"æ¯ãèããã«ã¹ã¿ãã¤ãºã§ãã¾ãã確å®ã«å¤æ´ããããã確èªããããã«ãè¡ãæ´æ°"
+"ããåã«ãå¿
ãã¤ã³ã¹ã¿ã³ã¹ã <literal>SELECT</literal> ãã¾ãã"
#. Tag: title
-#: transactions.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pessimistic locking"
msgstr "æ²è¦³çããã¯"
#. Tag: para
-#: transactions.xml:860
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
"strategies. It is usually enough to specify an isolation level for the JDBC "
@@ -1765,80 +1491,73 @@
"advanced users may wish to obtain exclusive pessimistic locks or re-obtain "
"locks at the start of a new transaction."
msgstr ""
-"ã¦ã¼ã¶ãããã¯æ¦ç¥ã«æ©ãã®ã«å¤ãã®æéãè²»ãããã¨ãæå³ãã¦ãã¾ããã é常"
-"ã¯ãJDBCã³ãã¯ã·ã§ã³ã«åé¢ã¬ãã«ãæå®ãã åã«ãã¼ã¿ãã¼ã¹ã«ãã¹ã¦ã®ä»äºãã"
-"ããã°ååã§ãã ããããªãããé«åº¦ãªã¦ã¼ã¶ã¯ãæä»çãªæ²è¦³çããã¯ãç²å¾ãã"
-"ãã¨ãã æ°ãããã©ã³ã¶ã¯ã·ã§ã³ãéå§ãããéã«ããã¯ãåç²å¾ãããã¨ã ã¨ã"
-"ã©ãæãããããã¾ããã"
+"ã¦ã¼ã¶ã¼ãããã¯æ¦ç¥ã«æ©ãã®ã«å¤ãã®æéãè²»ãããã¨ãæå³ãã¦ãã¾ãããé常"
+"ã¯ã JDBC ã³ãã¯ã·ã§ã³ã«åé¢ã¬ãã«ãæå®ããåã«ãã¼ã¿ãã¼ã¹ã«ãã¹ã¦ã®ä»äºã"
+"ãããã°ååã§ããããããªãããé«åº¦ãªã¦ã¼ã¶ã¼ã¯ãæä»çãªæ²è¦³çããã¯ãç²å¾"
+"ãããã¨ããæ°ãããã©ã³ã¶ã¯ã·ã§ã³ãéå§ãããéã«ããã¯ãåç²å¾ãããã¨ãã¨"
+"ãã©ãæãããããã¾ããã"
#. Tag: para
-#: transactions.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
"lock objects in memory."
msgstr ""
-"Hibernateã¯ãã¤ããã¼ã¿ãã¼ã¹ã®ããã¯ã®ä»çµã¿ã使ãã¾ãã ã¡ã¢ãªå
ã®ãªãã¸ã§"
-"ã¯ããæ±ºãã¦ããã¯ãã¾ããï¼"
+"Hibernate ã¯ãã¤ããã¼ã¿ãã¼ã¹ã®ããã¯ã®ä»çµã¿ã使ãã¾ããã¡ã¢ãªå
ã®ãªãã¸ã§"
+"ã¯ããæ±ºãã¦ããã¯ãã¾ããã"
#. Tag: para
-#: transactions.xml:872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
"can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
-"<literal>LockMode</literal> ã¯ã©ã¹ã¯ãHibernateãç²å¾ã§ããç°ãªãããã¯ã¬ãã«"
-"ãå®ç¾©ãã¾ãã 以ä¸ã®ä»çµã¿ã«ãããããã¯ãç²å¾ã§ãã¾ãã"
+"<literal>LockMode</literal> ã¯ã©ã¹ã¯ã Hibernate ãç²å¾ã§ããç°ãªãããã¯ã¬ã"
+"ã«ãå®ç¾©ãã¾ãã以ä¸ã®ä»çµã¿ã«ãããããã¯ãç²å¾ã§ãã¾ãã"
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
"updates or inserts a row."
msgstr ""
-"<literal>LockMode.WRITE</literal> ã¯ã Hibernateãè¡ãæ´æ°ãããã¯æ¿å
¥ããé"
+"<literal>LockMode.WRITE</literal> ã¯ã Hibernate ãè¡ãæ´æ°ãããã¯æ¿å
¥ããé"
"ã«èªåçã«å¾ããã¾ãã"
#. Tag: para
-#: transactions.xml:885
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
"request using <literal>SELECT ... FOR UPDATE</literal> on databases which "
"support that syntax."
msgstr ""
-"<literal>LockMode.UPGRADE</literal> ã¯ã ãã¼ã¿ãã¼ã¹ã§ãµãã¼ãããã¦ããæ"
-"æ³ <literal>SELECT ... FOR UPDATE</literal> ã使ã£ããæç¤ºçãªã¦ã¼ã¶ã¼è¦æ±ã«"
-"ããå¾ãããããããã¾ããã"
+"<literal>LockMode.UPGRADE</literal> ã¯ããã¼ã¿ãã¼ã¹ã§ãµãã¼ãããã¦ããææ³ "
+"<literal>SELECT ... FOR UPDATE</literal> ã使ã£ããæç¤ºçãªã¦ã¼ã¶ã¼è¦æ±ã«ãã"
+"å¾ãããããããã¾ããã"
#. Tag: para
-#: transactions.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
"user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under "
"Oracle."
msgstr ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> ã¯ã Oracle ã§ "
-"<literal>SELECT ... FOR UPDATE NOWAIT</literal> ã使ã£ãã æç¤ºçãªã¦ã¼ã¶ã¼è¦"
+"<literal>SELECT ... FOR UPDATE NOWAIT</literal> ã使ã£ããæç¤ºçãªã¦ã¼ã¶ã¼è¦"
"æ±ã«ããå¾ãããããããã¾ããã"
#. Tag: para
-#: transactions.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
"reads data under Repeatable Read or Serializable isolation level. It can be "
"re-acquired by explicit user request."
msgstr ""
-"<literal>LockMode.READ</literal> ã¯ã Repeatable Readãããã¯Serializableã®å"
-"é¢ã¬ãã«ã§ããã¼ã¿ãèªãã éã«èªåçã«å¾ããã¾ãã ãããããæç¤ºçãªã¦ã¼ã¶ã¼"
-"è¦æ±ã«ãããååå¾ããã¾ãã"
+"<literal>LockMode.READ</literal> ã¯ã Repeatable Read ããã㯠Serializable "
+"ã®åé¢ã¬ãã«ã§ããã¼ã¿ãèªãã éã«èªåçã«å¾ããã¾ãããããããæç¤ºçãªã¦ã¼"
+"ã¶ã¼è¦æ±ã«ãããååå¾ããã¾ãã"
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1848,20 +1567,18 @@
"mode."
msgstr ""
"<literal>LockMode.NONE</literal> ã¯ãããã¯ããªããã¨ã表ãã¾ãã "
-"<literal>Transaction</literal> ã®çµããã«ã ãã¹ã¦ã®ãªãã¸ã§ã¯ãã¯ãã®ããã¯"
+"<literal>Transaction</literal> ã®çµããã«ããã¹ã¦ã®ãªãã¸ã§ã¯ãã¯ãã®ããã¯"
"ã¢ã¼ãã«åãæ¿ããã¾ãã <literal>update()</literal> ã <literal>saveOrUpdate"
-"()</literal> ãå¼ã³åºããã¨ã«ãã£ã¦ã ã»ãã·ã§ã³ã«é¢é£ä»ãããããªãã¸ã§ã¯ã"
+"()</literal> ãå¼ã³åºããã¨ã«ãã£ã¦ãã»ãã·ã§ã³ã«é¢é£ä»ãããããªãã¸ã§ã¯ã"
"ãããã®ããã¯ã¢ã¼ãã§åºçºãã¾ãã"
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
msgstr "ãæç¤ºçãªã¦ã¼ã¶ã¼è¦æ±ãã¨ã¯ãä¸è¨ã®æ¹æ³ã®ï¼ã¤ã§è¨ã表ãã¾ãã"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
@@ -1871,19 +1588,16 @@
"ã³åºãã"
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
msgstr "<literal>Session.lock()</literal> ã®å¼ã³åºãã"
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
msgstr "<literal>Query.setLockMode()</literal> ã®å¼ã³åºãã"
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1895,16 +1609,15 @@
"object."
msgstr ""
"<literal>UPGRADE</literal> ããã㯠<literal>UPGRADE_NOWAIT</literal> ãæå®"
-"ããã <literal>Session.load()</literal> ãå¼ã³åºããã ãã¤è¦æ±ããããªã"
-"ã¸ã§ã¯ããã»ãã·ã§ã³ã«ãã£ã¦ã¾ã ãã¼ãããã¦ããªãã£ãå ´åã¯ã "
+"ããã <literal>Session.load()</literal> ãå¼ã³åºããããã¤è¦æ±ããããªãã¸ã§"
+"ã¯ããã»ãã·ã§ã³ã«ãã£ã¦ã¾ã ãã¼ãããã¦ããªãã£ãå ´åã¯ã "
"<literal>SELECT ... FOR UPDATE</literal> ã使ã£ã¦ããªãã¸ã§ã¯ãããã¼ãããã¾"
-"ãã <literal>load()</literal> ã§å¼ã³åºããããªãã¸ã§ã¯ããã è¦æ±ããã¦ãã"
-"ããå¶éãå°ãªãããã¯ã§ãã§ã«ãã¼ãããã¦ããå ´åã¯ã Hibernateã¯ãã®ãªã"
-"ã¸ã§ã¯ãã®ããã«ã<literal>lock()</literal> ãå¼ã³åºãã¾ãã"
+"ãã <literal>load()</literal> ã§å¼ã³åºããããªãã¸ã§ã¯ãããè¦æ±ããã¦ããã"
+"ãå¶éãå°ãªãããã¯ã§ãã§ã«ãã¼ãããã¦ããå ´åã¯ã Hibernate ã¯ãã®ãªãã¸ã§"
+"ã¯ãã®ããã«ã <literal>lock()</literal> ãå¼ã³åºãã¾ãã"
#. Tag: para
-#: transactions.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
"specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> "
@@ -1912,33 +1625,30 @@
"literal> or <literal>UPGRADE_NOWAIT</literal>, <literal>SELECT ... FOR "
"UPDATE</literal> is used."
msgstr ""
-"æå®ãããããã¯ã¢ã¼ãã <literal>READ</literal> ãããã¯ã<literal>UPGRADE</"
-"literal>ã <literal>UPGRADE_NOWAIT</literal> ã ã£ãå ´åã<literal>Session."
-"lock()</literal> ã¯ããã¼ã¸ã§ã³çªå·ã®ãã§ãã¯ã宿½ãã¾ãã "
+"æå®ãããããã¯ã¢ã¼ãã <literal>READ</literal> ãããã¯ã "
+"<literal>UPGRADE</literal> ã <literal>UPGRADE_NOWAIT</literal> ã ã£ãå ´åã "
+"<literal>Session.lock()</literal> ã¯ããã¼ã¸ã§ã³çªå·ã®ãã§ãã¯ã宿½ãã¾ãã "
"ï¼<literal>UPGRADE</literal> ããã㯠<literal>UPGRADE_NOWAIT</literal> ã®å ´"
"åã <literal>SELECT ... FOR UPDATE</literal> ã使ããã¾ããï¼"
#. Tag: para
-#: transactions.xml:951
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
"an appropriate alternate mode instead of throwing an exception. This ensures "
"that applications are portable."
msgstr ""
-"ãã¼ã¿ãã¼ã¹ãè¦æ±ãããããã¯ã¢ã¼ãããµãã¼ããã¦ããªãå ´åã Hibernateã¯"
-"ï¼ä¾å¤ãæãã代ããã«ãï¼é©åãªä»£ããã®ã¢ã¼ãã使ãã¾ãã ããã¯ãã¢ããªã±ã¼"
+"ãã¼ã¿ãã¼ã¹ãè¦æ±ãããããã¯ã¢ã¼ãããµãã¼ããã¦ããªãå ´åã Hibernate ã¯"
+"ï¼ä¾å¤ãæãã代ããã«ãï¼é©åãªä»£ããã®ã¢ã¼ãã使ãã¾ããããã¯ãã¢ããªã±ã¼"
"ã·ã§ã³ããã¼ã¿ãã«ã§ãããã¨ãä¿è¨¼ãã¾ãã"
#. Tag: title
-#: transactions.xml:960
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Connection release modes"
msgstr "ã³ãã¯ã·ã§ã³éæ¾ã¢ã¼ã"
#. Tag: para
-#: transactions.xml:962
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
"<literal>Session</literal> would obtain a connection when it was first "
@@ -1951,40 +1661,37 @@
"by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</"
"literal>:"
msgstr ""
-"Hibernateã®ã¬ã¬ã·ã¼ï¼2.xï¼ã®JDBCã³ãã¯ã·ã§ã³ç®¡çã«é¢ããæ¯ãèãã¯ã æåã«å¿
"
-"è¦ã¨ããéã« <literal>Session</literal> ãã³ãã¯ã·ã§ã³ãå¾ãã¨ãããã®ã§ã"
-"ãã ããã¦ãã»ãã·ã§ã³ãéããããã¾ã§ããã®ã³ãã¯ã·ã§ã³ãä¿æãã¾ããã "
-"Hibernate 3.xã¯ãã»ãã·ã§ã³ã«JDBCã³ãã¯ã·ã§ã³ãã©ã®ããã«å¶å¾¡ããããä¼ãã "
-"ã³ãã¯ã·ã§ã³éæ¾ã¢ã¼ãã¨ããæ¦å¿µãå°å
¥ãã¾ããã 以éã®è°è«ã¯ãæ§æããã "
-"<literal>ConnectionProvider</literal> ãéãã¦æä¾ããã ã³ãã¯ã·ã§ã³ã«é©åã§"
-"ãããã¨ã«æ³¨æãã¦ãã ããã ç°ãªãéæ¾ã¢ã¼ãã¯ã<literal>org.hibernate."
-"ConnectionReleaseMode</literal> ã« åæãããå¤ã«ãã確èªããã¾ãã"
+"Hibernate ã®ã¬ã¬ã·ã¼ï¼2.xï¼ã® JDBC ã³ãã¯ã·ã§ã³ç®¡çã«é¢ããæ¯ãèãã¯ãæåã«"
+"å¿
è¦ã¨ããéã« <literal>Session</literal> ãã³ãã¯ã·ã§ã³ãå¾ãã¨ãããã®ã§ã"
+"ããããã¦ãã»ãã·ã§ã³ãéããããã¾ã§ããã®ã³ãã¯ã·ã§ã³ãä¿æãã¾ããã "
+"Hibernate 3.x ã¯ãã»ãã·ã§ã³ã« JDBC ã³ãã¯ã·ã§ã³ãã©ã®ããã«å¶å¾¡ããããä¼ã"
+"ãã³ãã¯ã·ã§ã³éæ¾ã¢ã¼ãã¨ããæ¦å¿µãå°å
¥ãã¾ããã以éã®è°è«ã¯ãæ§æããã "
+"<literal>ConnectionProvider</literal> ãéãã¦æä¾ãããã³ãã¯ã·ã§ã³ã«é©åã§"
+"ãããã¨ã«æ³¨æãã¦ãã ãããç°ãªãéæ¾ã¢ã¼ãã¯ã <literal>org.hibernate."
+"ConnectionReleaseMode</literal> ã«åæãããå¤ã«ãã確èªããã¾ãã"
#. Tag: para
-#: transactions.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
"Hibernate session obtains a connection when it first needs to perform some "
"JDBC access and maintains that connection until the session is closed."
msgstr ""
"<literal>ON_CLOSE</literal> - æ¬è³ªçã«ä¸è¨ã§è¿°ã¹ãã¬ã¬ã·ã¼ã®æ¯ãèãã§ãã "
-"Hibernateã»ãã·ã§ã³ã¯æåã«JDBCã¢ã¯ã»ã¹ãå®è¡ããå¿
è¦ãããéã«ã³ãã¯ã·ã§ã³ã"
-"å¾ã¾ãã ããã¦ãã»ãã·ã§ã³ãéããããã¾ã§ãã³ãã¯ã·ã§ã³ãä¿æãã¾ãã"
+"Hibernate ã»ãã·ã§ã³ã¯æåã« JDBC ã¢ã¯ã»ã¹ãå®è¡ããå¿
è¦ãããéã«ã³ãã¯ã·ã§"
+"ã³ãå¾ã¾ããããã¦ãã»ãã·ã§ã³ãéããããã¾ã§ãã³ãã¯ã·ã§ã³ãä¿æãã¾ãã"
#. Tag: para
-#: transactions.xml:983
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
"<literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
"<literal>AFTER_TRANSACTION</literal> - <literal>org.hibernate.Transaction</"
-"literal> ãå®äºããå¾ã ã³ãã¯ã·ã§ã³ãéæ¾ãã¾ãã"
+"literal> ãå®äºããå¾ãã³ãã¯ã·ã§ã³ãéæ¾ãã¾ãã"
#. Tag: para
-#: transactions.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
"releases connections after every statement execution. This aggressive "
@@ -1993,26 +1700,24 @@
"the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
"<literal>AFTER_STATEMENT</literal> ï¼ç©æ¥µçãªéæ¾ã¨ãå¼ã°ããï¼ - ãã¹ã¦ã®ã¹"
-"ãã¼ãã¡ã³ããããããå®è¡ãããå¾ãã³ãã¯ã·ã§ã³ãéæ¾ããã¾ãã ã¹ãã¼ãã¡ã³"
-"ããã»ãã·ã§ã³ã«é¢é£ãããªã½ã¼ã¹ãéããã¾ã¾ã«ããå ´åã¯ã ãã®ç©æ¥µçãªéæ¾ã¯"
-"ã¹ãããããã¾ãã ä»ã®ã¨ããããããèµ·ããã®ã¯ <literal>org.hibernate."
+"ãã¼ãã¡ã³ããããããå®è¡ãããå¾ãã³ãã¯ã·ã§ã³ãéæ¾ããã¾ããã¹ãã¼ãã¡ã³"
+"ããã»ãã·ã§ã³ã«é¢é£ãããªã½ã¼ã¹ãéããã¾ã¾ã«ããå ´åã¯ããã®ç©æ¥µçãªéæ¾ã¯"
+"ã¹ãããããã¾ããä»ã®ã¨ããããããèµ·ããã®ã¯ <literal>org.hibernate."
"ScrollableResults</literal> ã使ãããå ´åã®ã¿ã§ãã"
#. Tag: para
-#: transactions.xml:999
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
"literal> is used to specify which release mode to use. The possible values "
"are as follows:"
msgstr ""
"ã³ã³ãã£ã°ã¬ã¼ã·ã§ã³ãã©ã¡ã¼ã¿ã® <literal>hibernate.connection.release_mode</"
-"literal> ã¯ã使ç¨ããéæ¾ã¢ã¼ããæå®ããããã«ä½¿ãã¾ãã æå®ã§ããå¤ã¯æ¬¡ã®"
-"éãã§ãã"
+"literal> ã¯ã使ç¨ããéæ¾ã¢ã¼ããæå®ããããã«ä½¿ãã¾ããæå®ã§ããå¤ã¯æ¬¡ã®é"
+"ãã§ã:"
#. Tag: para
-#: transactions.xml:1006
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
"mode returned by the <literal>org.hibernate.transaction.TransactionFactory."
@@ -2024,26 +1729,24 @@
msgstr ""
"<literal>auto</literal> ï¼ããã©ã«ãï¼ - ããã鏿ãã㨠<literal>org."
"hibernate.transaction.TransactionFactory.getDefaultReleaseMode()</literal> ã¡"
-"ã½ããã«ãã£ã¦è¿ãããéæ¾ã¢ã¼ãã«å§è²ããã¾ãã ãã®ã¡ã½ããã¯ã "
-"JTATransactionFactoryã«ã¯ConnectionReleaseMode.AFTER_STATEMENTãè¿ãã "
-"JDBCTransactionFactoryã«ã¯ConnectionReleaseMode.AFTER_TRANSACTIONãè¿ãã¾"
-"ãã ãã®ããã©ã«ãã®æ¯ãèããå¤ãã¦ãã¾ããã£ã試ããããã¾ããã ããã¯ã"
-"ãã®è¨å®å¤ãåå ã§èµ·ããé害ã¯ã ã¦ã¼ã¶ã³ã¼ãã®ä¸ã§ãã°ãééã£ãæ¡ä»¶ã«ãªãã"
+"ã½ããã«ãã£ã¦è¿ãããéæ¾ã¢ã¼ãã«å§è²ããã¾ãããã®ã¡ã½ããã¯ã "
+"JTATransactionFactory ã«ã¯ ConnectionReleaseMode.AFTER_STATEMENT ãè¿ãã "
+"JDBCTransactionFactory ã«ã¯ ConnectionReleaseMode.AFTER_TRANSACTION ãè¿ãã¾"
+"ãããã®ããã©ã«ãã®æ¯ãèããå¤ãã¦ãã¾ããã£ã試ããããã¾ãããããã¯ãã"
+"ã®è¨å®å¤ãåå ã§èµ·ããé害ã¯ãã¦ã¼ã¶ã¼ã³ã¼ãã®ä¸ã§ãã°ãééã£ãæ¡ä»¶ã«ãªãã"
"ããããã§ãã"
#. Tag: para
-#: transactions.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
"setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
-"<literal>on_close</literal> - ConnectionReleaseMode.ON_CLOSEã使ãã¾ãã ãã®"
+"<literal>on_close</literal> - ConnectionReleaseMode.ON_CLOSE ã使ãã¾ãããã®"
"è¨å®ã¯å¾æ¹äºæã®ããã«æ®ããã¦ãã¾ããã使ããªããã¨ãå¼·ãå§ãã¾ãã"
#. Tag: para
-#: transactions.xml:1022
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
"AFTER_TRANSACTION. This setting should not be used in JTA environments. Also "
@@ -2052,14 +1755,13 @@
"release mode were AFTER_STATEMENT."
msgstr ""
"<literal>after_transaction</literal> - ConnectionReleaseMode."
-"AFTER_TRANSACTIONã使ãã¾ãã ãã®è¨å®ã¯JTAç°å¢ã®ä¸ã§ã¯ä½¿ãã¹ãã§ã¯ããã¾ã"
-"ãã ConnectionReleaseMode.AFTER_TRANSACTIONãæå®ããèªåã³ãããã¢ã¼ãã®ä¸"
-"ã§ã¯ã éæ¾ã¢ã¼ããAFTER_STATEMENTã§ãããã®ããã«ãã³ãã¯ã·ã§ã³ã¯éæ¾ããã"
+"AFTER_TRANSACTION ã使ãã¾ãããã®è¨å®ã¯ JTA ç°å¢ã®ä¸ã§ã¯ä½¿ãã¹ãã§ã¯ããã¾ã"
+"ãã ConnectionReleaseMode.AFTER_TRANSACTION ãæå®ããèªåã³ãããã¢ã¼ãã®ä¸"
+"ã§ã¯ãéæ¾ã¢ã¼ãã AFTER_STATEMENT ã§ãããã®ããã«ãã³ãã¯ã·ã§ã³ã¯éæ¾ããã"
"ãã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: transactions.xml:1030
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
"AFTER_STATEMENT. Additionally, the configured <literal>ConnectionProvider</"
@@ -2071,11 +1773,287 @@
"getConnection()</literal> or in auto-commit environments where it does not "
"matter if we re-establish the same connection."
msgstr ""
-"<literal>after_statement</literal> - ConnectionReleaseMode.AFTER_STATEMENTã"
-"使ãã¾ãã ããã«ãè¨å®ããã <literal>ConnectionProvider</literal> ã¯ã ãã®"
-"è¨å® (<literal>supportsAggressiveRelease()</literal>) ããµãã¼ããããã©ãã "
-"ã調ã¹ãããã«ä½¿ç¨ãã¾ãã ããããã§ãªãå ´åãéæ¾ã¢ã¼ãã¯"
-"ConnectionReleaseMode.AFTER_TRANSACTION ã«ãªã»ããããã¾ãã ãã®è¨å®ã¯æ¬¡ã®ç°"
-"å¢ã§ã®ã¿å®å
¨ã§ãã ããã¯ã<literal>ConnectionProvider.getConnection()</"
-"literal> ãå¼ã³åºããã³ã« åºç¤ã¨ãªãJDBCã³ãã¯ã·ã§ã³ãåããã®ãåå¾ã§ãã"
-"ãã åãã³ãã¯ã·ã§ã³ãå¾ããããã¨ãåé¡ã¨ãªããªãèªåã³ãããç°å¢ã®ä¸ã§ãã"
+"<literal>after_statement</literal> - ConnectionReleaseMode.AFTER_STATEMENT ã"
+"使ãã¾ããããã«ãè¨å®ããã <literal>ConnectionProvider</literal> ã¯ããã®è¨"
+"å® (<literal>supportsAggressiveRelease()</literal>) ããµãã¼ããããã©ããã"
+"調ã¹ãããã«ä½¿ç¨ãã¾ããããããã§ãªãå ´åãéæ¾ã¢ã¼ã㯠"
+"ConnectionReleaseMode.AFTER_TRANSACTION ã«ãªã»ããããã¾ãããã®è¨å®ã¯æ¬¡ã®ç°"
+"å¢ã§ã®ã¿å®å
¨ã§ããããã¯ã <literal>ConnectionProvider.getConnection()</"
+"literal> ãå¼ã³åºããã³ã«åºç¤ã¨ãªã JDBC ã³ãã¯ã·ã§ã³ãåããã®ãåå¾ã§ãã"
+"ããåãã³ãã¯ã·ã§ã³ãå¾ããããã¨ãåé¡ã¨ãªããªãèªåã³ãããç°å¢ã®ä¸ã§ãã"
+
+#~ msgid "foo==bar"
+#~ msgstr "foo==bar"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// Non-managed environment idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "// Non-managed environment idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " factory.getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " factory.getCurrentSession().getTransaction().commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " factory.getCurrentSession().getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "// Non-managed environment idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " factory.getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " factory.getCurrentSession().getTransaction().commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " factory.getCurrentSession().getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// BMT idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "// BMT idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// BMT idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " UserTransaction tx = (UserTransaction)new InitialContext()\n"
+#~ " .lookup(\"java:comp/UserTransaction\");\n"
+#~ "\n"
+#~ " tx.begin();\n"
+#~ "\n"
+#~ " // Do some work on Session bound to transaction\n"
+#~ " factory.getCurrentSession().load(...);\n"
+#~ " factory.getCurrentSession().persist(...);\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "// BMT idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " UserTransaction tx = (UserTransaction)new InitialContext()\n"
+#~ " .lookup(\"java:comp/UserTransaction\");\n"
+#~ "\n"
+#~ " tx.begin();\n"
+#~ "\n"
+#~ " // Do some work on Session bound to transaction\n"
+#~ " factory.getCurrentSession().load(...);\n"
+#~ " factory.getCurrentSession().persist(...);\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// CMT idiom\n"
+#~ " Session sess = factory.getCurrentSession();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "// CMT idiom\n"
+#~ " Session sess = factory.getCurrentSession();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ..."
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "try {\n"
+#~ " //set transaction timeout to 3 seconds\n"
+#~ " sess.getTransaction().setTimeout(3);\n"
+#~ " sess.getTransaction().begin();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " sess.getTransaction().commit()\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " sess.getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "Session sess = factory.openSession();\n"
+#~ "try {\n"
+#~ " //set transaction timeout to 3 seconds\n"
+#~ " sess.getTransaction().setTimeout(3);\n"
+#~ " sess.getTransaction().begin();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " sess.getTransaction().commit()\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " sess.getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "\n"
+#~ "int oldVersion = foo.getVersion();\n"
+#~ "session.load( foo, foo.getKey() ); // load the current state\n"
+#~ "if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
+#~ "();\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "// foo is an instance loaded by a previous Session\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "\n"
+#~ "int oldVersion = foo.getVersion();\n"
+#~ "session.load( foo, foo.getKey() ); // load the current state\n"
+#~ "if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "t.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded earlier by the old session\n"
+#~ "Transaction t = session.beginTransaction(); // Obtain a new JDBC "
+#~ "connection, start transaction\n"
+#~ "\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "session.flush(); // Only for last transaction in conversation\n"
+#~ "t.commit(); // Also return JDBC connection\n"
+#~ "session.close(); // Only for last transaction in conversation]]>"
+#~ msgstr ""
+#~ "// foo is an instance loaded earlier by the old session\n"
+#~ "Transaction t = session.beginTransaction(); // Obtain a new JDBC "
+#~ "connection, start transaction\n"
+#~ "\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "session.flush(); // Only for last transaction in conversation\n"
+#~ "t.commit(); // Also return JDBC connection\n"
+#~ "session.close(); // Only for last transaction in conversation"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been "
+#~ "loaded already\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "// foo is an instance loaded by a previous Session\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been "
+#~ "loaded already\n"
+#~ "t.commit();\n"
+#~ "session.close();"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,24 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-21 16:43+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
msgstr ""
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -28,7 +29,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
@@ -37,7 +37,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
@@ -45,24 +44,21 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
-msgstr "ãã¼ã1 - åãã¦ã®Hibernateã¢ããªã±ã¼ã·ã§ã³"
+msgstr "ãã¼ã1 - åãã¦ã® Hibernate ã¢ããªã±ã¼ã·ã§ã³"
#. Tag: para
-#: tutorial.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
"events we want to attend and information about the host(s) of these events."
msgstr ""
-"ä»®ã«å°ããªãã¼ã¿ãã¼ã¹ã¢ããªã±ã¼ã·ã§ã³ãå¿
è¦ã ã¨ãã¾ãããã ãã®ã¢ããªã±ã¼"
-"ã·ã§ã³ã«ã¯åºå¸ãããã¤ãã³ãã¨ã ãã®ã¤ãã³ãã®ãã¹ãã«ã¤ãã¦ã®æ
å ±ãæ ¼ç´ãã"
+"ä»®ã«å°ããªãã¼ã¿ãã¼ã¹ã¢ããªã±ã¼ã·ã§ã³ãå¿
è¦ã ã¨ãã¾ãããããã®ã¢ããªã±ã¼"
+"ã·ã§ã³ã«ã¯åºå¸ãããã¤ãã³ãã¨ããã®ã¤ãã³ãã®ãã¹ãã«ã¤ãã¦ã®æ
å ±ãæ ¼ç´ãã"
"ãã®ã¨ãã¾ãã"
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -72,13 +68,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
msgstr ""
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -92,7 +86,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
@@ -100,61 +93,7 @@
"automatically set up a project for us based on the maven descriptor."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
#, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
@@ -173,70 +112,24 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr "æåã®ã¯ã©ã¹"
#. Tag: para
-#: tutorial.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
"database; it is a simple JavaBean class with some properties:"
msgstr "次ã«ãã¼ã¿ãã¼ã¹ã«æ ¼ç´ããã¤ãã³ãã表ãã¯ã©ã¹ã使ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:128
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:130
#, fuzzy, no-c-format
msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
@@ -245,16 +138,15 @@
"fields directly, the benefit of accessor methods is robustness for "
"refactoring."
msgstr ""
-"ã覧ã®ã¨ããããã®ã¯ã©ã¹ã¯ãã£ã¼ã«ããprivateã®å¯è¦æ§ãæã£ã¦ããã®ã¨åæ"
-"ã«ã JavaBeanæ¨æºã®ã²ãã¿ã¼ãã»ãã¿ã¼ã¡ã½ããã®å½åè¦ç´ã«å¾ã£ã¦ãã¾ãã ãã®"
-"ãããªè¨è¨ã¯æ¨å¥¨ããã¦ãã¾ããå¿
é ã§ã¯ããã¾ããã ã¢ã¯ã»ãµã¡ã½ãããè¨ããã®"
-"ã¯ãªãã¡ã¯ã¿ãªã³ã°ãèããé 奿§ã®ããã§ã Hibernateã¯ãã£ã¼ã«ãã«ç´æ¥ã¢ã¯ã»"
-"ã¹ãããã¨ãå¯è½ã§ãã 弿°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ã¯ããªãã¬ã¯ã·ã§ã³ã§ãã®ã¯ã©ã¹"
-"ã®ã¤ã³ã¹ã¿ã³ã¹ã使ããããã« å¿
è¦ã§ãã"
+"ã覧ã®ã¨ããããã®ã¯ã©ã¹ã¯ãã£ã¼ã«ãã private ã®å¯è¦æ§ãæã£ã¦ããã®ã¨åæ"
+"ã«ã JavaBean æ¨æºã®ã²ãã¿ã¼ãã»ãã¿ã¼ã¡ã½ããã®å½åè¦ç´ã«å¾ã£ã¦ãã¾ãããã®"
+"ãããªè¨è¨ã¯æ¨å¥¨ããã¦ãã¾ããå¿
é ã§ã¯ããã¾ãããã¢ã¯ã»ãµã¡ã½ãããè¨ããã®"
+"ã¯ãªãã¡ã¯ã¿ãªã³ã°ãèããé 奿§ã®ããã§ã Hibernate ã¯ãã£ã¼ã«ãã«ç´æ¥ã¢ã¯ã»"
+"ã¹ãããã¨ãå¯è½ã§ãã弿°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ã¯ããªãã¬ã¯ã·ã§ã³ã§ãã®ã¯ã©ã¹"
+"ã®ã¤ã³ã¹ã¿ã³ã¹ã使ããããã«å¿
è¦ã§ãã"
#. Tag: para
-#: tutorial.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
"particular event. All persistent entity classes (there are less important "
@@ -269,21 +161,20 @@
"to you and you can match it to fit your application design."
msgstr ""
"<literal>id</literal> ããããã£ã¯ãããç¹å®ã®ã¤ãã³ãã«å¯¾ããã¦ãã¼ã¯ãªèå¥"
-"åã®å¤ãä¿æãã¾ãã Hibernateã®å®å
¨ãªæ©è½ã使ããããã°ããã¹ã¦ã®æ°¸ç¶ã¨ã³"
+"åã®å¤ãä¿æãã¾ãã Hibernate ã®å®å
¨ãªæ©è½ã使ããããã°ããã¹ã¦ã®æ°¸ç¶ã¨ã³"
"ãã£ãã£ã¯ã©ã¹ ï¼ããã»ã©éè¦ã§ã¯ãªãä¾åã¯ã©ã¹ã¨ãããã®ãããã¾ãï¼ ã«ãã®"
-"ãããªèå¥åããããã£ãå¿
è¦ã«ãªãã¾ãã äºå®ä¸ã»ã¨ãã©ã®ã¢ããªã±ã¼ã·ã§ã³ï¼ç¹"
-"ã«webã¢ããªã±ã¼ã·ã§ã³ï¼ã§ã¯ã èå¥åã§ãªãã¸ã§ã¯ããåºå¥ããå¿
è¦ãããããã"
-"ããã¯å¶éã¨ãããããç¹å¾´ã§ããã¨èããã¹ãã§ãã ãããé常ãªãã¸ã§ã¯ãã®ID"
-"ãæä½ãããããªãã¨ã¯ãã¾ããã ãã®ããã»ãã¿ã¼ã¡ã½ããã¯privateã«ããã¹ã"
-"ã§ãã Hibernateã ãããªãã¸ã§ã¯ããã»ã¼ããããã¨ãã«èå¥åã¸å¤ã代å
¥ãã¾"
-"ãã Hibernateãï¼public, private, protectedï¼ãã£ã¼ã«ãã«ç´æ¥ã¢ã¯ã»ã¹ã§ãã"
-"ã®ã¨åæ§ã«ã public, private, protectedã®ã¢ã¯ã»ãµã¡ã½ããã«ã¢ã¯ã»ã¹ã§ããã¨ã"
-"ããã¨ããããã§ãããã 鏿ã¯ããªãã«ä»»ããã¦ããã®ã§ãããªãã®ã¢ããªã±ã¼"
-"ã·ã§ã³ã®è¨è¨ã«åããããã¨ãã§ãã¾ãã"
+"ãããªèå¥åããããã£ãå¿
è¦ã«ãªãã¾ããäºå®ä¸ã»ã¨ãã©ã®ã¢ããªã±ã¼ã·ã§ã³ "
+"ï¼ ç¹ã« web ã¢ããªã±ã¼ã·ã§ã³ï¼ ã§ã¯ãèå¥åã§ãªãã¸ã§ã¯ããåºå¥ããå¿
è¦ããã"
+"ãããããã¯å¶éã¨ãããããç¹å¾´ã§ããã¨èããã¹ãã§ãããããé常ãªãã¸ã§ã¯"
+"ãã® ID ãæä½ãããããªãã¨ã¯ãã¾ããããã®ããã»ãã¿ã¼ã¡ã½ãã㯠private ã«"
+"ããã¹ãã§ãã Hibernate ã ãããªãã¸ã§ã¯ããã»ã¼ããããã¨ãã«èå¥åã¸å¤ã代"
+"å
¥ãã¾ãã Hibernate ãï¼public, private, protectedï¼ãã£ã¼ã«ãã«ç´æ¥ã¢ã¯ã»ã¹"
+"ã§ããã®ã¨åæ§ã«ã public, private, protected ã®ã¢ã¯ã»ãµã¡ã½ããã«ã¢ã¯ã»ã¹ã§"
+"ããã¨ãããã¨ããããã§ãããã鏿ã¯ããªãã«ä»»ããã¦ããã®ã§ãããªãã®ã¢ã"
+"ãªã±ã¼ã·ã§ã³ã®è¨è¨ã«åããããã¨ãã§ãã¾ãã"
#. Tag: para
-#: tutorial.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
"Hibernate has to create objects for you, using Java Reflection. The "
@@ -291,13 +182,12 @@
"for runtime proxy generation and efficient data retrieval without bytecode "
"instrumentation."
msgstr ""
-"弿°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ã¯ãã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«å¿
é ã§ãã ããã¯Hibernateã"
-"Javaã®ãªãã¬ã¯ã·ã§ã³ã使ã£ã¦ããªãã¸ã§ã¯ãã使ããªããã°ãªããªãããã§ãã "
-"ã³ã³ã¹ãã©ã¯ã¿ãprivateã«ãããã¨ã¯å¯è½ã§ããã å®è¡æã®ãããã·çæã¨ããã¤"
-"ãã³ã¼ãæä½ãªãã®å¹ççãªãã¼ã¿ã®æ½åºã«ã¯ã packageå¯è¦æ§ãå¿
è¦ã§ãã"
+"弿°ã®ãªãã³ã³ã¹ãã©ã¯ã¿ã¯ãã¹ã¦ã®æ°¸ç¶ã¯ã©ã¹ã«å¿
é ã§ãããã㯠Hibernate ã "
+"Java ã®ãªãã¬ã¯ã·ã§ã³ã使ã£ã¦ããªãã¸ã§ã¯ãã使ããªããã°ãªããªãããã§ãã"
+"ã³ã³ã¹ãã©ã¯ã¿ã private ã«ãããã¨ã¯å¯è½ã§ãããå®è¡æã®ãããã·çæã¨ããã¤"
+"ãã³ã¼ãæä½ãªãã®å¹ççãªãã¼ã¿ã®æ½åºã«ã¯ã package å¯è¦æ§ãå¿
è¦ã§ãã"
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
@@ -305,13 +195,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
msgstr "ãããã³ã°ãã¡ã¤ã«"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -319,35 +207,19 @@
"file tells Hibernate what table in the database it has to access, and what "
"columns in that table it should use."
msgstr ""
-"Hibernateã¯ãã©ã®ããã«æ°¸ç¶ã¯ã©ã¹ã®ãªãã¸ã§ã¯ãããã¼ããæ ¼ç´ããã°ããããç¥"
-"ãå¿
è¦ãããã¾ãã ããã§Hibernateãããã³ã°ãã¡ã¤ã«ãç»å ´ãã¾ãã ãããã³ã°"
-"ãã¡ã¤ã«ã¯ããã¼ã¿ãã¼ã¹å
ã®ã©ã®ãã¼ãã«ã«ã¢ã¯ã»ã¹ããªããã°ãªããªããã ãã®"
-"ãã¼ãã«ã®ã©ã®ã«ã©ã ã使ãã¹ããããHibernateã«æãã¾ãã"
+"Hibernate ã¯ãã©ã®ããã«æ°¸ç¶ã¯ã©ã¹ã®ãªãã¸ã§ã¯ãããã¼ããæ ¼ç´ããã°ãããã"
+"ç¥ãå¿
è¦ãããã¾ããããã§ Hibernate ãããã³ã°ãã¡ã¤ã«ãç»å ´ãã¾ãããããã³"
+"ã°ãã¡ã¤ã«ã¯ããã¼ã¿ãã¼ã¹å
ã®ã©ã®ãã¼ãã«ã«ã¢ã¯ã»ã¹ããªããã°ãªããªãããã"
+"ã®ãã¼ãã«ã®ã©ã®ã«ã©ã ã使ãã¹ãããã Hibernate ã«æãã¾ãã"
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
msgstr "ãããã³ã°ãã¡ã¤ã«ã®åºæ¬çãªæ§é ã¯ãã®ããã«ãªãã¾ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:182
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:184
-#, fuzzy, no-c-format
-msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
"mapping elements and attributes in your editor or IDE. Opening up the DTD "
"file in your text editor is the easiest way to get an overview of all "
@@ -357,28 +229,26 @@
"<filename>hibernate-core.jar</filename> (it is also included in the "
"<filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
-"Hibernate DTDãéå¸¸ã«æ´ç·´ããã¦ãããã¨ã«æ³¨ç®ãã¦ãã ããã ãã®DTDã¯ãã¨ãã£"
-"ã¿ãIDEã§ã®XMLãããã³ã°è¦ç´ ã¨å±æ§ã®ãªã¼ãã³ã³ããªã¼ã·ã§ã³æ©è½ã«å©ç¨ã§ãã¾"
-"ãã ã¾ãDTDãã¡ã¤ã«ãããã¹ãã¨ãã£ã¿ã§éãã¦ã¿ã¦ãã ããã ã¨ããã®ãããã¹"
-"ã¦ã®è¦ç´ ã¨å±æ§ãæ¦è¦³ãã ã³ã¡ã³ããããã©ã«ãã®å¤ãè¦ãã«ã¯ä¸çªç°¡åãªæ¹æ³ã ã"
-"ãã§ãã Hibernateã¯ãwebããDTDãã¡ã¤ã«ããã¼ãããã«ã ã¾ãã¢ããªã±ã¼ã·ã§ã³"
-"ã®ã¯ã©ã¹ãã¹ãããããæ¢ãåºããã¨ãããã¨ã«æ³¨æãã¦ãã ããã DTDãã¡ã¤ã«ã¯"
-"Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® <literal>src/</literal> ãã£ã¬ã¯ããªã¨å"
-"æ§ã<literal>hibernate3.jar</literal> ã«ãå«ã¾ãã¦ãã¾ãã"
+"Hibernate DTD ãéå¸¸ã«æ´ç·´ããã¦ãããã¨ã«æ³¨ç®ãã¦ãã ããããã® DTD ã¯ãã¨"
+"ãã£ã¿ã IDE ã§ã® XML ãããã³ã°è¦ç´ ã¨å±æ§ã®ãªã¼ãã³ã³ããªã¼ã·ã§ã³æ©è½ã«å©ç¨"
+"ã§ãã¾ããã¾ã DTD ãã¡ã¤ã«ãããã¹ãã¨ãã£ã¿ã§éãã¦ã¿ã¦ãã ãããã¨ããã®"
+"ãããã¹ã¦ã®è¦ç´ ã¨å±æ§ãæ¦è¦³ããã³ã¡ã³ããããã©ã«ãã®å¤ãè¦ãã«ã¯ä¸çªç°¡åãª"
+"æ¹æ³ã ããã§ãã Hibernate ã¯ã web ãã DTD ãã¡ã¤ã«ããã¼ãããã«ãã¾ãã¢ã"
+"ãªã±ã¼ã·ã§ã³ã®ã¯ã©ã¹ãã¹ãããããæ¢ãåºããã¨ãããã¨ã«æ³¨æãã¦ãã ããã "
+"DTD ãã¡ã¤ã«ã¯ Hibernate ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® <literal>src/</literal> "
+"ãã£ã¬ã¯ããªã¨åæ§ã<literal>hibernate3.jar</literal> ã«ãå«ã¾ãã¦ãã¾ãã"
#. Tag: para
-#: tutorial.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
"is, of course, not optional."
msgstr ""
-"以éã®ä¾ã§ã¯ã³ã¼ããçãããããã«DTD宣è¨ãçç¥ãã¾ãã å½ç¶ã§ããããã¯ãªã"
+"以éã®ä¾ã§ã¯ã³ã¼ããçãããããã« DTD 宣è¨ãçç¥ãã¾ããå½ç¶ã§ããããã¯ãªã"
"ã·ã§ã³ã§ã¯ããã¾ããã"
#. Tag: para
-#: tutorial.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
"<literal>class</literal> element. All persistent entity classes (again, "
@@ -386,27 +256,13 @@
"entities) need a mapping to a table in the SQL database:"
msgstr ""
"2ã¤ã® <literal>hibernate-mapping</literal> ã¿ã°ã®éã« <literal>class</"
-"literal> è¦ç´ ãå«ãã¦ãã ããã ãã¹ã¦ã®æ°¸ç¶ã¨ã³ãã£ãã£ã¯ã©ã¹ï¼å¿µãæ¼ãã¾ã"
-"ãã ãã¡ã¼ã¹ãã¯ã©ã¹ã®ã¨ã³ãã£ãã£ã§ã¯ãªãä¾åã¯ã©ã¹ã¨ãããã®ãå¾ã»ã©ç»å ´ã"
-"ã¾ãï¼ ã¯SQLãã¼ã¿ãã¼ã¹å
ã®ãã¼ãã«ã¸ã®ãã®ãããªãããã³ã°ãå¿
è¦ã¨ãã¾ãã"
+"literal> è¦ç´ ãå«ãã¦ãã ããããã¹ã¦ã®æ°¸ç¶ã¨ã³ãã£ãã£ã¯ã©ã¹ï¼å¿µãæ¼ãã¾ã"
+"ãããã¡ã¼ã¹ãã¯ã©ã¹ã®ã¨ã³ãã£ãã£ã§ã¯ãªãä¾åã¯ã©ã¹ã¨ãããã®ãå¾ã»ã©ç»å ´ã"
+"ã¾ãï¼ã¯ SQL ãã¼ã¿ãã¼ã¹å
ã®ãã¼ãã«ã¸ã®ãã®ãããªãããã³ã°ãå¿
è¦ã¨ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:212
-#, fuzzy, no-c-format
-msgid ""
"So far we have told Hibernate how to persist and load object of class "
"<literal>Event</literal> to the table <literal>EVENTS</literal>. Each "
"instance is now represented by a row in that table. Now we can continue by "
@@ -414,31 +270,15 @@
"not want to care about handling this identifier, we configure Hibernate's "
"identifier generation strategy for a surrogate primary key column:"
msgstr ""
-"ããã¾ã§ç§ãã¡ã¯ã<literal>Event</literal> ã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã "
+"ããã¾ã§ç§ãã¡ã¯ã <literal>Event</literal> ã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã "
"<literal>EVENTS</literal> ãã¼ãã«ã«å¯¾ãã¦ãã©ã®ããã«æ°¸ç¶åããããã¼ããã"
-"ãããã®ãã Hibernateã«æãã¦ãã¾ãããããã¦åã
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã¼ãã«ã®"
-"è¡ã¨ãã¦è¡¨ç¾ããã¾ãã ããã§ã¯å¼ãç¶ããã¼ãã«ã®ä¸»ãã¼ã«å¯¾ããã¦ãã¼ã¯ãªèå¥"
-"åããããã£ããããã³ã°ãã¦ããã¾ãã ããã«ããã®èå¥åã®æ±ãã«æ°ã使ããã"
-"ãªãã£ãã®ã¨åæ§ã«ã 代çã®ä¸»ãã¼ã«ã©ã ã«å¯¾ããHibernateã®èå¥åçææ¦ç¥ãè¨"
+"ãããã®ãã Hibernate ã«æãã¦ãã¾ãããããã¦åã
ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ãã¼ãã«ã®"
+"è¡ã¨ãã¦è¡¨ç¾ããã¾ããããã§ã¯å¼ãç¶ããã¼ãã«ã®ä¸»ãã¼ã«å¯¾ããã¦ãã¼ã¯ãªèå¥"
+"åããããã£ããããã³ã°ãã¦ããã¾ããããã«ããã®èå¥åã®æ±ãã«æ°ã使ããã"
+"ãªãã£ãã®ã¨åæ§ã«ã代çã®ä¸»ãã¼ã«ã©ã ã«å¯¾ãã Hibernate ã®èå¥åçææ¦ç¥ãè¨"
"å®ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -450,7 +290,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -463,45 +302,25 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:246
#, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
#. Tag: para
-#: tutorial.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
"properties. By default, no properties of the class are considered persistent:"
msgstr ""
-"æå¾ã«ã¯ã©ã¹ã®æ°¸ç¶ããããã£ã®å®£è¨ããããã³ã°ãã¡ã¤ã«ã«å«ãã¾ãã ããã©ã«ã"
+"æå¾ã«ã¯ã©ã¹ã®æ°¸ç¶ããããã£ã®å®£è¨ããããã³ã°ãã¡ã¤ã«ã«å«ãã¾ããããã©ã«ã"
"ã§ã¯ãã¯ã©ã¹ã®ããããã£ã¯æ°¸ç¶ã¨è¦ãªããã¾ããï¼"
-#. Tag: programlisting
-#: tutorial.xml:258
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:260
-#, fuzzy, no-c-format
-msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
"attribute of the <literal>property</literal> element tells Hibernate which "
"getter and setter methods to use. In this case, Hibernate will search for "
@@ -510,12 +329,11 @@
msgstr ""
"<literal>id</literal> è¦ç´ ã®å ´åã¨åæ§ã«ã <literal>property</literal> è¦ç´ "
"ã® <literal>name</literal> 屿§ã§ãã©ã®ã²ãã¿ã¼ã¨ã»ãã¿ã¼ã¡ã½ããã使ãã¹ãã"
-"ãHibernateã«æãã¾ãã ãã®ä¾ã§ã¯ãHibernate㯠<literal>getDate()/setDate()"
-"</literal> 㨠<literal>getTitle()/setTitle()</literal> ã æ¢ãã¾ãã"
+"ã Hibernate ã«æãã¾ãããã®ä¾ã§ã¯ã Hibernate 㯠<literal>getDate()/setDate"
+"()</literal> 㨠<literal>getTitle()/setTitle()</literal> ãæ¢ãã¾ãã"
#. Tag: para
-#: tutorial.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
"<literal>column</literal> attribute, but the <literal>title</literal> does "
@@ -525,15 +343,14 @@
"databases so you will need to map it to a different name."
msgstr ""
"ãªã <literal>date</literal> ããããã£ã®ãããã³ã°ã«ã¯ <literal>column</"
-"literal> 屿§ãããã<literal>title</literal> ããããã£ã«ã¯ãªãã®ã§ããã"
-"ãï¼ <literal>column</literal> 屿§ããªããã°ãHibernateã¯ããããã£åãã«ã©"
-"ã åã¨ãã¦ä½¿ãã¾ãã ãã㯠<literal>title</literal> ã§ã¯ä¸æãè¡ãã¾ãã ã"
-"ãã <literal>date</literal> ã¯ã»ã¨ãã©ã®ãã¼ã¿ãã¼ã¹ã§äºç´èªãªã®ã§ã éãå"
-"åã§ãããã³ã°ããæ¹ãããã®ã§ãã"
+"literal> 屿§ãããã <literal>title</literal> ããããã£ã«ã¯ãªãã®ã§ããã"
+"ãï¼ <literal>column</literal> 屿§ããªããã°ã Hibernate ã¯ããã©ã«ãã§ãã"
+"ããã£åãã«ã©ã åã¨ãã¦ä½¿ãã¾ãããã㯠<literal>title</literal> ã§ã¯ä¸æã"
+"ããã¾ããããã <literal>date</literal> ã¯ãã»ã¨ãã©ã®ãã¼ã¿ãã¼ã¹ã§äºç´èªãª"
+"ã®ã§ãéãååã§ãããã³ã°ããæ¹ãããã®ã§ãã"
#. Tag: para
-#: tutorial.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
"attribute. The types declared and used in the mapping files are not Java "
@@ -551,23 +368,22 @@
"property with a <literal>timestamp</literal> converter."
msgstr ""
"次ã«è峿·±ãã®ã¯ <literal>title</literal> ãããã³ã°ã <literal>type</"
-"literal> 屿§ããæ¬ ãã¦ããç¹ã§ãã ãããã³ã°ãã¡ã¤ã«ã§å®£è¨ãã¦ä½¿ãtypeã¯ã"
-"ããããããããã¾ãããJavaã®ãã¼ã¿åã§ã¯ããã¾ããã SQLãã¼ã¿ãã¼ã¹ã®åã§"
-"ãããã¾ããã ãã㯠<emphasis>Hibernateãããã³ã°å</emphasis> ã¨å¼ã°ã"
-"ãã JavaããSQLãã¼ã¿ã®åã¸ã¾ãã¯SQLããJavaãã¼ã¿åã¸ç¿»è¨³ããã³ã³ãã¼ã¿ã§"
-"ãã ç¹°ãè¿ãã«ãªãã¾ãããHibernate㯠<literal>type</literal> 屿§ããããã³"
-"ã°ãã¡ã¤ã«å
ã«ãªããã°ã æ£ããã³ã³ãã¼ã¸ã§ã³ã¨ãããã³ã°åãèªåã§è§£æ±ºããã"
-"ã¨ãã¾ãã ï¼Javaã¯ã©ã¹ã®ãªãã¬ã¯ã·ã§ã³ã使ã£ãï¼ãã®èªåæ¤ç¥ã¯ã å ´åã«ãã£"
-"ã¦ã¯ããªããæå¾
ã¾ãã¯å¿
è¦ã¨ããããã©ã«ãå¤ã«ãªããªãããããã¾ããã "
-"<literal>date</literal> ããããã£ã®å ´åãããã§ããã Hibernateã¯ãã®"
-"ï¼ <literal>java.util.Date</literal> ã®ï¼ããããã£ã SQLã® <literal>date</"
+"literal> 屿§ããæ¬ ãã¦ããç¹ã§ãããããã³ã°ãã¡ã¤ã«ã§å®£è¨ãã¦ä½¿ã type ã¯ã"
+"ããããããããã¾ããã Java ã®ãã¼ã¿åã§ã¯ããã¾ããã SQL ãã¼ã¿ãã¼ã¹ã®å"
+"ã§ãããã¾ããããã㯠<emphasis>Hibernateãããã³ã°å</emphasis> ã¨å¼ã°ã"
+"ãã Java ãã SQL ãã¼ã¿ã®åã¸ã¾ã㯠SQL ãã Java ãã¼ã¿åã¸ç¿»è¨³ããã³ã³"
+"ãã¼ã¿ã§ããç¹°ãè¿ãã«ãªãã¾ããã Hibernate 㯠<literal>type</literal> 屿§"
+"ããããã³ã°ãã¡ã¤ã«å
ã«ãªããã°ãæ£ããã³ã³ãã¼ã¸ã§ã³ã¨ãããã³ã°åãèªåã§"
+"解決ãããã¨ãã¾ãã ï¼Javaã¯ã©ã¹ã®ãªãã¬ã¯ã·ã§ã³ã使ã£ãï¼ãã®èªåæ¤ç¥ã¯ãå ´"
+"åã«ãã£ã¦ã¯ããªããæå¾
ã¾ãã¯å¿
è¦ã¨ããããã©ã«ãå¤ã«ãªããªãããããã¾ã"
+"ãã <literal>date</literal> ããããã£ã®å ´åãããã§ããã Hibernate ã¯ãã®"
+"ï¼ <literal>java.util.Date</literal> ã®ï¼ããããã£ã SQL ã® <literal>date</"
"literal> , <literal>timestamp</literal> , <literal>time</literal> ã®ãã¡ãã©"
"ã®ã«ã©ã ã«ãããã³ã°ããã¹ããªã®ããããã¾ããã <literal>timestamp</"
"literal> ã³ã³ãã¼ã¿ã§ããããã£ããããã³ã°ãããã¨ã«ãããå®å
¨ãªæ¥æãä¿åã"
"ã¾ãã"
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -577,7 +393,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
@@ -585,13 +400,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
-msgstr "Hibernateã®è¨å®"
+msgstr "Hibernate ã®è¨å®"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
@@ -600,13 +413,11 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:321
#, no-c-format
msgid "We do this do that the data remains between runs."
msgstr ""
#. Tag: para
-#: tutorial.xml:326
#, fuzzy, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
@@ -618,17 +429,16 @@
"filename> directory, and start HSQLDB again."
msgstr ""
"<literal>data</literal> ã¨ãããã£ã¬ã¯ããªãéçºãã£ã¬ã¯ããªã®ã«ã¼ãã«ä½æã"
-"ã¦ãã ããã HSQL DBã¯ããã«ãã¼ã¿ãã¡ã¤ã«ãæ ¼ç´ãã¾ãã ãã®ãã¼ã¿ãã£ã¬ã¯ã"
-"ãªã«ãã㦠<literal>java -classpath lib/hsqldb.jar org.hsqldb.Server</"
-"literal> ãå®è¡ãã ãã¼ã¿ãã¼ã¹ãèµ·åããã¦ãã ããã åä½ã®éå§ã¨ãTCP/IPã½"
-"ã±ããã®ãã¤ã³ãã確èªã§ãã¾ãã å¾ã»ã©ä½æããã¢ããªã±ã¼ã·ã§ã³ã¯ããã«æ¥ç¶ã"
-"ã¾ãã ãããã®ãã¥ã¼ããªã¢ã«ä¸ã«ãã¼ã¿ãã¼ã¹ãåæåããããã°ã HSQL DBã"
+"ã¦ãã ããã HSQL DB ã¯ããã«ãã¼ã¿ãã¡ã¤ã«ãæ ¼ç´ãã¾ãããã®ãã¼ã¿ãã£ã¬ã¯ã"
+"ãªã«ãã㦠<literal>java -classpath ../lib/hsqldb.jar org.hsqldb.Server</"
+"literal> ãå®è¡ãããã¼ã¿ãã¼ã¹ãèµ·åããã¦ãã ãããåä½ã®éå§ã¨ã TCP/IP ã½"
+"ã±ããã®ãã¤ã³ãã確èªã§ãã¾ããå¾ã»ã©ä½æããã¢ããªã±ã¼ã·ã§ã³ã¯ããã«æ¥ç¶ã"
+"ã¾ãããããã®ãã¥ã¼ããªã¢ã«ä¸ã«ãã¼ã¿ãã¼ã¹ãåæåããããã°ã HSQL DB ã"
"ã·ã£ãããã¦ã³ãã¦ï¼ä½æ¥ã¦ã£ã³ãã¦ã§ <literal>CTRL + C</literal> ãæ¼ãã¾"
"ãï¼ <literal>data/</literal> ãã£ã¬ã¯ããªå
ã®ãã¡ã¤ã«ãå
¨ã¦æ¶å»ããå¾ã "
-"HSQL DBãåèµ·åãã¾ãã"
+"HSQL DB ãåèµ·åãã¾ãã"
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -642,7 +452,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:348
#, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
@@ -650,109 +459,57 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
"properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</"
"literal> file, or even complete programmatic setup. Most users prefer the "
"XML configuration file:"
msgstr ""
-"Hibernateã®è¨å®ã§ã¯ãåç´ãª <literal>hibernate.properties</literal> ãã¡ã¤"
-"ã«ã ããããå°ãæ´ç·´ããã¦ãã <literal>hibernate.cfg.xml</literal> ãã¡ã¤"
-"ã«ã ã¾ãã¯å®å
¨ã«ããã°ã©ã ä¸ã§ã»ããã¢ããããæ¹æ³ãå©ç¨ã§ãã¾ãã ã»ã¨ãã©"
-"ã®ã¦ã¼ã¶ã好ãã®ã¯XMLè¨å®ãã¡ã¤ã«ã§ãï¼"
+"Hibernate ã®è¨å®ã§ã¯ãåç´ãª <literal>hibernate.properties</literal> ãã¡ã¤"
+"ã«ãããããå°ãæ´ç·´ããã¦ãã <literal>hibernate.cfg.xml</literal> ãã¡ã¤"
+"ã«ãã¾ãã¯å®å
¨ã«ããã°ã©ã ä¸ã§ã»ããã¢ããããæ¹æ³ãå©ç¨ã§ãã¾ããã»ã¨ãã©ã®"
+"ã¦ã¼ã¶ã¼ã好ãã®ã¯ XML è¨å®ãã¡ã¤ã«ã§ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
-msgstr ""
+msgstr "ãã® XML ã®è¨å®ãç°ãªã DTD ã使ããã¨ã«æ³¨æãã¦ãã ããã"
#. Tag: para
-#: tutorial.xml:366
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
"is a global factory responsible for a particular database. If you have "
"several databases, for easier startup you should use several <literal><"
"session-factory></literal> configurations in several configuration files."
msgstr ""
-"ãã®XMLã®è¨å®ãç°ãªãDTDã使ããã¨ã«æ³¨æãã¦ãã ããã ç¹å®ã®ãã¼ã¿ãã¼ã¹ãå"
-"ãæã¤ã°ãã¼ãã«ãã¡ã¯ããªã§ããHibernateã® <literal>SessionFactory</"
-"literal> ãè¨å®ãã¾ãã ããè¤æ°ã®ãã¼ã¿ãã¼ã¹ãããå ´åã«ã¯ã ï¼ã¹ã¿ã¼ãã¢ã"
-"ããç°¡åã«ããããï¼é常ããã¤ãã®è¨å®ãã¡ã¤ã«å
ã§ã ããã¤ãã® <literal><"
-"session-factory></literal> ã使ãè¨å®ã«ãã¦ãã ããã"
+"ç¹å®ã®ãã¼ã¿ãã¼ã¹ãåãæã¤ã°ãã¼ãã«ãã¡ã¯ããªã§ãã Hibernate ã® "
+"<literal>SessionFactory</literal> ãè¨å®ãã¾ããããè¤æ°ã®ãã¼ã¿ãã¼ã¹ããã"
+"å ´åã«ã¯ã ï¼ã¹ã¿ã¼ãã¢ãããç°¡åã«ããããï¼é常ããã¤ãã®è¨å®ãã¡ã¤ã«å
ã§ã"
+"ããã¤ãã® <literal><session-factory></literal> ã使ãè¨å®ã«ãã¦ãã ã"
+"ãã"
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
"configuration for the JDBC connection. The dialect <literal>property</"
"literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
+"æåã®4ã¤ã® <literal>property</literal> è¦ç´ 㯠JDBC ã³ãã¯ã·ã§ã³ã«å¿
è¦ãªè¨å®"
+"ãå«ãã§ãã¾ãã dialect ã¨ããååã® <literal>property</literal> è¦ç´ ã¯ã "
+"Hibernate ãçæããç¹å®ã® SQL æ¹è¨ãæå®ãã¾ãã"
#. Tag: para
-#: tutorial.xml:380
#, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
#. Tag: para
-#: tutorial.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
"particularly useful in this context. The <literal>hbm2ddl.auto</literal> "
@@ -762,18 +519,15 @@
"Ant task. Finally, add the mapping file(s) for persistent classes to the "
"configuration."
msgstr ""
-"æåã®4ã¤ã® <literal>property</literal> è¦ç´ ã¯JDBCã³ãã¯ã·ã§ã³ã«å¿
è¦ãªè¨å®ã"
-"å«ãã§ãã¾ãã dialectã¨ããååã® <literal>property</literal> è¦ç´ ã¯ã"
-"Hibernateãçæããç¹å®ã®SQLæ¹è¨ãæå®ãã¾ãã æ°¸ç¶çãªã³ã³ããã¹ãã«å¯¾ãã"
-"Hibernateã®ã»ãã·ã§ã³ã®èªå管çã¯ãå¾ã®ä¾ã§ããã«ãããããã«ãå½¹ã«ç«ã¤ãã¨ã§"
-"ãããã <literal>hbm2ddl.auto</literal> ãªãã·ã§ã³ã¯ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®èª"
-"åçæãonã«ãã¾ãã ããã¯ç´æ¥ãã¼ã¿ãã¼ã¹ã«å¯¾ãã¦çæããã¾ãã å½ç¶"
-"ï¼configãªãã·ã§ã³ãåé¤ãã¦ï¼offã«ãããã <literal>SchemaExport</literal> "
-"ã¨ããAntã¿ã¹ã¯ã®å©ããåãã¦ãã¡ã¤ã«ã«ãªãã¤ã¬ã¯ããããã§ãã¾ãã æå¾ã«æ°¸"
-"ç¶ã¯ã©ã¹ã®ããã®ãããã³ã°ãã¡ã¤ã«ãè¨å®ã«è¿½å ãã¾ãã"
+"æ°¸ç¶çãªã³ã³ããã¹ãã«å¯¾ãã Hibernate ã®ã»ãã·ã§ã³ã®èªå管çã¯ãå¾ã®ä¾ã§ãã"
+"ã«ãããããã«ãå½¹ã«ç«ã¤ãã¨ã§ãããã <literal>hbm2ddl.auto</literal> ãªã"
+"ã·ã§ã³ã¯ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®èªåçæã on ã«ãã¾ããããã¯ç´æ¥ãã¼ã¿ãã¼ã¹"
+"ã«å¯¾ãã¦çæããã¾ããå½ç¶ï¼config ãªãã·ã§ã³ãåé¤ãã¦ï¼ off ã«ãããã "
+"<literal>SchemaExport</literal> ã¨ãã Ant ã¿ã¹ã¯ã®å©ããåãã¦ãã¡ã¤ã«ã«ãªã"
+"ã¤ã¬ã¯ããããã§ãã¾ããæå¾ã«æ°¸ç¶ã¯ã©ã¹ã®ããã®ãããã³ã°ãã¡ã¤ã«ãè¨å®ã«è¿½"
+"å ãã¾ãã"
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
@@ -781,13 +535,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:403
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Building with Maven"
-msgstr "Antã«ãããã«ã"
+msgstr "Maven ã«ãããã«ã"
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -798,44 +550,13 @@
"make sure we can compile everything so far:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
msgstr "ã¹ã¿ã¼ãã¢ããã¨ãã«ã"
#. Tag: para
-#: tutorial.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
"first you have to complete the setup with some infrastructure code. You have "
@@ -849,64 +570,29 @@
"global object that is instantiated once."
msgstr ""
"ã㦠<literal>Event</literal> ãªãã¸ã§ã¯ãããã¼ããããæ ¼ç´ãããããæºåã"
-"ã§ãã¾ããã ãããã¾ãã¯ã¤ã³ãã©ã¹ãã©ã¯ãã£ã®ã³ã¼ããæ¸ãã¦ãã»ããã¢ããã"
-"å®äºããå¿
è¦ãããã¾ãã ã¾ãã¯Hibernateãã¹ã¿ã¼ãã¢ããããªããã°ãªãã¾ã"
-"ãã ãã®ã¹ã¿ã¼ãã¢ããã«ã¯ãã°ãã¼ãã«ã® <literal>SessionFactory</literal> "
-"ãªãã¸ã§ã¯ããçæãã¦ã ãããã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãã§ã¢ã¯ã»ã¹ããããå ´æ"
-"ã«æ ¼ç´ãããã¨ãå«ã¾ãã¾ãã <literal>SessionFactory</literal> ã¯æ°ãã "
-"<literal>Session</literal> ããªã¼ãã³ãããã¨ãã§ãã¾ãã <literal>Session</"
-"literal> ã¯ã·ã³ã°ã«ã¹ã¬ããã®ä½æ¥åä½(Unit of Work)ã表ç¾ãã¾ãã ããã«å¯¾ã"
-"<literal>SessionFactory</literal> ã¯ã¹ã¬ããã»ã¼ãã®ã°ãã¼ãã«ãªãã¸ã§ã¯ãã§"
-"ããã ä¸åº¦ã ãã¤ã³ã¹ã¿ã³ã¹åããã¾ãã"
+"ã§ãã¾ããããããã¾ãã¯ã¤ã³ãã©ã¹ãã©ã¯ãã£ã®ã³ã¼ããæ¸ãã¦ãã»ããã¢ããã"
+"å®äºããå¿
è¦ãããã¾ããã¾ã㯠Hibernate ãã¹ã¿ã¼ãã¢ããããªããã°ãªãã¾ã"
+"ãããã®ã¹ã¿ã¼ãã¢ããã«ã¯ãã°ãã¼ãã«ã® <literal>SessionFactory</literal> ãª"
+"ãã¸ã§ã¯ããçæãã¦ããããã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãã§ã¢ã¯ã»ã¹ããããå ´æã«"
+"æ ¼ç´ãããã¨ãå«ã¾ãã¾ãã <interfacename>org.hibernate.SessionFactory</"
+"interfacename> ã¯æ°ãã <interfacename>org.hibernate.Session</interfacename> "
+"ããªã¼ãã³ãããã¨ãã§ãã¾ãã <interfacename>org.hibernate.Session</"
+"interfacename> ã¯ã·ã³ã°ã«ã¹ã¬ããã®ä½æ¥åä½(Unit of Work)ã表ç¾ãã¾ããããã«"
+"対ã <interfacename>org.hibernate.SessionFactory</interfacename> ã¯ã¹ã¬ãã"
+"ã»ã¼ãã®ã°ãã¼ãã«ãªãã¸ã§ã¯ãã§ãããä¸åº¦ã ãã¤ã³ã¹ã¿ã³ã¹åããã¾ãã"
#. Tag: para
-#: tutorial.xml:436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
"care of startup and makes accessing the <interfacename>org.hibernate."
"SessionFactory</interfacename> more convenient."
msgstr ""
-"ããã§ã¹ã¿ã¼ãã¢ãããè¡ãã 便å©ã« <literal>SessionFactory</literal> ã¸ã¢ã¯"
-"ã»ã¹ãã <literal>HibernateUtil</literal> ãã«ãã¯ã©ã¹ã使ãã¾ãã å®è£
ãè¦"
-"ã¦ã¿ã¾ãããï¼"
+"ããã§ã¹ã¿ã¼ãã¢ãããè¡ãã便å©ã« <interfacename>org.hibernate."
+"SessionFactory</interfacename> ã¸ã¢ã¯ã»ã¹ãã <literal>HibernateUtil</"
+"literal> ãã«ãã¯ã©ã¹ã使ãã¾ããå®è£
ãè¦ã¦ã¿ã¾ãããï¼"
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
@@ -914,7 +600,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:449
#, fuzzy, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
@@ -924,13 +609,13 @@
"reference from JNDI in an application server or any other location for that "
"matter."
msgstr ""
-"ãã®ã¯ã©ã¹ã¯éçåæåãããã¯ï¼ã¯ã©ã¹ããã¼ããããã¨ãã«JVMã«ãã£ã¦ä¸åº¦ã ã"
-"å¼ã°ããï¼ ã§ã°ãã¼ãã«ã® <literal>SessionFactory</literal> ãçæããã ãã§"
-"ã¯ãªãã éçã·ã³ã°ã«ãã³ã®ä½¿ç¨ãé è½ãã¾ãã ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®JNDI"
-"ãã <literal>SessionFactory</literal> ã ã«ãã¯ã¢ããããã®ã¨åæ§ã§ãã"
+"ãã®ã¯ã©ã¹ã¯éçåæåãããã¯ï¼ã¯ã©ã¹ããã¼ããããã¨ãã« JVM ã«ãã£ã¦ä¸åº¦ã "
+"ãå¼ã°ããï¼ ã§ã°ãã¼ãã«ã® <interfacename>org.hibernate.SessionFactory</"
+"interfacename> ãçæããã ãã§ã¯ãªããéçã·ã³ã°ã«ãã³ã®ä½¿ç¨ãé è½ãã¾ããã¢"
+"ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã® JNDI ãã <interfacename>org.hibernate."
+"SessionFactory</interfacename> ãã«ãã¯ã¢ããããã®ã¨åæ§ã§ãã"
#. Tag: para
-#: tutorial.xml:458
#, fuzzy, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
@@ -940,15 +625,15 @@
"<literal>HibernateService</literal> to JNDI. Such advanced options are "
"discussed later."
msgstr ""
-"è¨å®ãã¡ã¤ã«å
ã§ <literal>SessionFactory</literal> ã«ååãä¸ããã¨ã "
-"Hibernate㯠<literal>SessionFactory</literal> æ§ç¯å¾ã«JNDIã«å¯¾ããã¤ã³ããè¡"
-"ããã¨ãã¾ãã ãã®ã³ã¼ããå®å
¨ã«æé¤ããããã«ã¯ã JMXãããã¤ã¡ã³ããå©ç¨ã"
-"㦠JMXãå©ç¨ã§ããã³ã³ãããã¤ã³ã¹ã¿ã³ã¹åãã <literal>HibernateService</"
-"literal> ãJNDIã¸ãã¤ã³ããããã¨ãã§ãã¾ãã ãããã®é«åº¦ãªãªãã·ã§ã³ã¯ã"
-"Hibernateã®ãªãã¡ã¬ã³ã¹ããã¥ã¡ã³ãã§èª¬æããã¦ãã¾ãã"
+"è¨å®ãã¡ã¤ã«å
ã§ <interfacename>org.hibernate.SessionFactory</interfacename> "
+"ã«ååãä¸ããã¨ã Hibernate 㯠<interfacename>org.hibernate.SessionFactory</"
+"interfacename> æ§ç¯å¾ã« JNDI ã«å¯¾ããã¤ã³ããè¡ããã¨ãã¾ãããã®ã³ã¼ããå®å
¨"
+"ã«æé¤ããããã«ã¯ã JMX ãããã¤ã¡ã³ããå©ç¨ã㦠JMX ãå©ç¨ã§ããã³ã³ããã"
+"ã¤ã³ã¹ã¿ã³ã¹åãã <literal>HibernateService</literal> ã JNDI ã¸ãã¤ã³ããã"
+"ãã¨ãã§ãã¾ãããããã®é«åº¦ãªãªãã·ã§ã³ã¯ã Hibernate ã®ãªãã¡ã¬ã³ã¹ããã¥ã¡"
+"ã³ãã§èª¬æããã¦ãã¾ãã"
#. Tag: para
-#: tutorial.xml:467
#, fuzzy, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
@@ -960,86 +645,41 @@
"configuration, you can change the settings. By default, only the Hibernate "
"startup message is shown on stdout."
msgstr ""
-"ããã¯åé¡ãªãåã³ã³ãã¤ã«ã§ããã¯ãã§ãã æå¾ã«ãã®ã³ã°ã·ã¹ãã ãè¨å®ããå¿
"
-"è¦ãããã¾ãã Hibernateã¯commons loggingã使ããããLog4jã¨JDK 1.4 loggingã®"
-"鏿ãããå¿
è¦ãããã¾ããã ã»ã¨ãã©ã®éçºè
ã好ãã®ã¯Log4jã§ãã Hibernate"
-"ãã£ã¹ããªãã¥ã¼ã·ã§ã³ï¼ã®<literal>etc/</literal> ãã£ã¬ã¯ããªï¼ãã "
-"<literal>log4j.properties</literal> ãããªãã® <literal>src</literal> ãã£ã¬"
-"ã¯ããªå
ã® <literal>hibernate.cfg.xml</literal> ã®é£ã«ã³ãã¼ãã¦ãã ããã è¨"
-"å®ä¾ãè¦ã¦ãåé·ãªåºåããããã°è¨å®ã夿´ãã¦ãã ããã ããã©ã«ãã§ã¯"
-"Hibernateã®ã¹ã¿ã¼ãã¢ããã¡ãã»ã¼ã¸ã ããæ¨æºåºåã«è¡¨ç¤ºããã¾ãã"
+"ããã¯åé¡ãªãåã³ã³ãã¤ã«ã§ããã¯ãã§ããæå¾ã«ãã®ã³ã°ã·ã¹ãã ãè¨å®ããå¿
"
+"è¦ãããã¾ãã Hibernate 㯠commons logging ã使ãããã Log4j 㨠JDK 1.4 "
+"logging ã®é¸æãããå¿
è¦ãããã¾ãããã»ã¨ãã©ã®éçºè
ã好ãã®ã¯ Log4j ã§"
+"ãã Hibernate ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ï¼ <literal>etc/</literal> ãã£ã¬ã¯ã"
+"ãªï¼ãã <literal>log4j.properties</literal> ãããªãã® <literal>src</"
+"literal> ãã£ã¬ã¯ããªå
ã® <literal>hibernate.cfg.xml</literal> ã®é£ã«ã³ãã¼ã"
+"ã¦ãã ãããè¨å®ä¾ãè¦ã¦ãåé·ãªåºåããããã°è¨å®ã夿´ãã¦ãã ãããããã©"
+"ã«ãã§ã¯ Hibernate ã®ã¹ã¿ã¼ãã¢ããã¡ãã»ã¼ã¸ã ããæ¨æºåºåã«è¡¨ç¤ºããã¾ãã"
#. Tag: para
-#: tutorial.xml:477
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
"real work with Hibernate."
msgstr ""
-"ãã¥ã¼ããªã¢ã«ã®ã¤ã³ãã©ã¯å®å
¨ã§ãã Hibernateã使ã£ã¦å®éã®ä½æ¥ãããæºåã"
+"ãã¥ã¼ããªã¢ã«ã®ã¤ã³ãã©ã¯å®å
¨ã§ãã Hibernate ã使ã£ã¦å®éã®ä½æ¥ãããæºåã"
"æ´ãã¾ããã"
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr "ãªãã¸ã§ã¯ãã®ãã¼ãã¨æ ¼ç´"
#. Tag: para
-#: tutorial.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
"by writing an <literal>EventManager</literal> class with a <literal>main()</"
"literal> method:"
msgstr ""
-"ã¤ãã«ãªãã¸ã§ã¯ãã®ãã¼ãã¨æ ¼ç´ã«Hibernateã使ããã¨ãã§ãã¾ãã "
+"ã¤ãã«ãªãã¸ã§ã¯ãã®ãã¼ãã¨æ ¼ç´ã« Hibernate ã使ããã¨ãã§ãã¾ãã "
"<literal>main()</literal> ã¡ã½ãããæã¤ <literal>EventManager</literal> ã¯ã©"
"ã¹ãæ¸ãã¾ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:493
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:495
#, fuzzy, no-c-format
msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
@@ -1047,13 +687,12 @@
"takes care of the SQL and executes an <literal>INSERT</literal> on the "
"database."
msgstr ""
-"æ°ãã <literal>Event</literal> ãªãã¸ã§ã¯ããçæãããããHibernateã«æ¸¡ãã¾"
-"ãã ä»ã§ã¯HibernateãSQLãå¦çãããã¼ã¿ãã¼ã¹ã§ <literal>INSERT</literal> "
-"ãå®è¡ãã¾ãã å®è¡åã« <literal>Session</literal> 㨠<literal>Transaction</"
+"æ°ãã <literal>Event</literal> ãªãã¸ã§ã¯ããçæããããã Hibernate ã«æ¸¡ã"
+"ã¾ãã Hibernate ã SQL ãå¦çãããã¼ã¿ãã¼ã¹ã§ <literal>INSERT</literal> ã"
+"å®è¡ãã¾ããå®è¡åã«l <literal>Session</literal> 㨠<literal>Transaction</"
"literal> ãå¦çããã³ã¼ãã確èªãã¦ãã ããã"
#. Tag: para
-#: tutorial.xml:502
#, fuzzy, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
@@ -1065,15 +704,15 @@
"interfacename> API. In this particular case we are using JDBC-based "
"transactional semantics, but it could also run with JTA."
msgstr ""
-"<literal>Session</literal> ã¯1ã¤ã®ä½æ¥åä½(Unit of Work)ã§ãã å½åã®éã話ã"
-"ç°¡åã«ããããã«ã <literal>Session</literal> 㨠<literal>Transaction</"
-"literal> ã®å¯¾å¿ãä¸å¯¾ä¸ã¨ä»®å®ãã¾ãã 使ç¨ãã¦ãããã©ã³ã¶ã¯ã·ã§ã³ã»ã·ã¹ãã "
-"ï¼ãã®ã±ã¼ã¹ã§ã¯JTAã¨å
±åã§ããåç´ãªJDBCï¼ããã³ã¼ããä¿è·ããããã«ã "
-"Hibernate <literal>Session</literal> ä¸ã§å©ç¨å¯è½ãª <literal>Transaction</"
-"literal> APIã使ç¨ãã¾ãã"
+"<interface>org.hibernate.Session</interface> ã¯1ã¤ã®ä½æ¥åä½ (Unit of Work) "
+"ã§ããå½åã®éã話ãç°¡åã«ããããã«ã <interface>org.hibernate.Session</"
+"interface> 㨠<literal>Transaction</literal> ã®å¯¾å¿ãä¸å¯¾ä¸ã¨ä»®å®ãã¾ãã使ç¨"
+"ãã¦ãããã©ã³ã¶ã¯ã·ã§ã³ã·ã¹ãã ï¼ãã®ã±ã¼ã¹ã§ã¯ JTA ã¨å
±åã§ããåç´ãª "
+"JDBCï¼ããã³ã¼ããä¿è·ããããã«ã Hibernate <literal>Session</literal> ä¸ã§"
+"å©ç¨å¯è½ãª <interfacename>org.hibernate.Transaction</interfacename> API ã使"
+"ç¨ãã¾ãã"
#. Tag: para
-#: tutorial.xml:515
#, fuzzy, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
@@ -1085,17 +724,18 @@
"xml</filename>? Due to that setting, the context of a current unit of work "
"is bound to the current Java thread that executes the application."
msgstr ""
-"<literal>sessionFactory.getCurrentSession()</literal> ã¯ãªã«ãããã®ã§ããã"
-"ãï¼ ã¾ãããã£ãã <literal>SessionFactory</literal> ãåå¾ãä¿æããã° "
-"ï¼ <literal>HibernateUtil</literal> ã®ãããã§ç°¡åã§ãï¼ããã®ã¡ã½ãããä½åº¦"
-"ã§ãã ã©ãããã§ãå¼ã³åºããã¨ãåºæ¥ã¾ãã <literal>getCurrentSession()</"
-"literal> ã¡ã½ããã¯å¸¸ã«ãç¾å¨ã®ã使¥åä½(Unit of Work)ãè¿ãã¾ãã "
-"<literal>hibernate.cfg.xml</literal> ã®ãã®æ©è½ã®è¨å®ã§ã\"thread\"ãæå®ãã"
-"ãã¨ãæãåºãã¦ãã ããã ãã®ããç¾å¨ã®ä½æ¥åä½ã®ã¹ã³ã¼ãã¯ããã®ã¢ããªã±ã¼"
-"ã·ã§ã³ãå®è¡ããç¾å¨ã®Javaã¹ã¬ããã§ãã ãããããã§å
¨ã¦ã§ã¯ããã¾ããã"
+"<literal>sessionFactory.getCurrentSession()</literal> ã¯ä½ãããã®ã§ããã"
+"ãï¼ã¾ãããã£ãã <interfacename>org.hibernate.SessionFactory</"
+"interfacename> ãåå¾ãä¿æããã° ï¼ <literal>HibernateUtil</literal> ã®ãã"
+"ãã§ç°¡åã§ãï¼ããã®ã¡ã½ãããä½åº¦ã§ããã©ãããã§ãå¼ã³åºããã¨ãã§ãã¾ãã "
+"<literal>getCurrentSession()</literal> ã¡ã½ããã¯å¸¸ã«ãç¾å¨ã®ã使¥åä½(Unit "
+"of Work)ãè¿ãã¾ãã <filename>src/main/resources/hibernate.cfg.xml</"
+"filename> ã®ãã®æ©è½ã®è¨å®ã§ã\"thread\"ãæå®ãããã¨ãæãåºãã¦ãã ããã"
+"ãã®ããç¾å¨ã®ä½æ¥åä½ã®ã¹ã³ã¼ãã¯ããã®ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ããç¾å¨ã® "
+"Java ã¹ã¬ããã§ãããããããã§å
¨ã¦ã§ã¯ããã¾ããã使¥åä½ã®éå§æã¨çµäºæã«"
+"ã¯ã¹ã³ã¼ããèæ
®ããå¿
è¦ãããã¾ãã"
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1105,7 +745,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:538
#, fuzzy, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
@@ -1117,19 +756,20 @@
"new <interface>org.hibernate.Session</interface> and can start a new unit of "
"work."
msgstr ""
-"<literal>Session</literal> ã¯æåã«å¿
è¦ã¨ãªã£ãã¨ããã¤ã¾ãæåã« "
-"<literal>getCurrentSession()</literal> ã å¼ã°ããã¨ãã«éå§ãã¾ãã ãã®ã¨ã"
-"Hibernateã«ããç¾å¨ã®ã¹ã¬ããã«çµã³ä»ãããã¾ãã ãã©ã³ã¶ã¯ã·ã§ã³ãçµäºï¼ã³"
-"ããããããã¯ãã¼ã«ããã¯ï¼ããã¨ãã Hibernateãã¹ã¬ãããã "
-"<literal>Session</literal> ãåãé¢ããã¯ãã¼ãºãã¾ãã åã³ "
-"<literal>getCurrentSession()</literal> ãå¼ã¶ã¨ã æ°ãã <literal>Session</"
-"literal> ãåå¾ãã¦æ°ãã使¥åä½ãã¹ã¿ã¼ãã§ãã¾ãã ãã® <emphasis>thread-"
-"bound</emphasis> ããã°ã©ãã³ã°ã»ã¢ãã«ã¯Hibernateãå©ç¨ããä¸ã§æã人æ°ãã"
-"ãã¾ãã"
+"<interface>org.hibernate.Session</interface> ã¯æåã«å¿
è¦ã¨ãªã£ãã¨ããã¤ã¾ã"
+"æåã« <literal>getCurrentSession()</literal> ãå¼ã°ããã¨ãã«éå§ãã¾ããã"
+"ã®ã¨ã Hibernate ã«ããç¾å¨ã®ã¹ã¬ããã«çµã³ä»ãããã¾ãããã©ã³ã¶ã¯ã·ã§ã³ãçµ"
+"äºï¼ã³ããããããã¯ãã¼ã«ããã¯ï¼ããã¨ãã Hibernate ãã¹ã¬ãããã "
+"<interface>org.hibernate.Session</interface> ãåãé¢ããã¯ãã¼ãºãã¾ããå"
+"ã³ <literal>getCurrentSession()</literal> ãå¼ã¶ã¨ãæ°ãã <interface>org."
+"hibernate.Session</interface> ãåå¾ãã¦æ°ãã使¥åä½ãã¹ã¿ã¼ãã§ãã¾ããã"
+"ã® <emphasis>thread-bound</emphasis> ããã°ã©ãã³ã°ã¢ãã«ã¯ãã³ã¼ãã®ãã¬ãã·"
+"ãã«ãªã¬ã¤ã¤ãªã³ã°ãå¯è½ã«ããã®ã§ã Hibernate ãå©ç¨ããä¸ã§æã人æ°ãããã¾"
+"ã (ãã®ãã¥ã¼ããªã¢ã«ã§å¾ã»ã©è§¦ãã¾ãããã©ã³ã¶ã¯ã·ã§ã³å¢çã³ã¼ãã¯ãã¼ã¿ã¢"
+"ã¯ã»ã¹ã³ã¼ãã¨ã¯åºå¥ããã¾ã)ã"
#. Tag: para
-#: tutorial.xml:551
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
"hibernate.Session</interface> be used to execute one or several database "
@@ -1143,31 +783,31 @@
"<emphasis>session-per-operation</emphasis> an anti-pattern. A real web "
"application is shown later in the tutorial which will help illustrate this."
msgstr ""
-"Related to the unit of work scope, should the Hibernate <literal>Session</"
-"literal> be used to execute one or several database operations? The above "
-"example uses one <literal>Session</literal> for one operation. This is pure "
-"coincidence, the example is just not complex enough to show any other "
-"approach. The scope of a Hibernate <literal>Session</literal> is flexible "
-"but you should never design your application to use a new Hibernate "
-"<literal>Session</literal> for <emphasis>every</emphasis> database "
-"operation. So even if you see it a few more times in the following (very "
-"trivial) examples, consider <emphasis>session-per-operation</emphasis> an "
-"anti-pattern. A real (web) application is shown later in this tutorial."
+"使¥åä½ (Unit of Work) ã®ç¯å²ã«é¢ãã¦ã Hibernate ã® <interface>org."
+"hibernate.Session</interface> ã¯1ã¤ã¾ãã¯ããã¤ãã®ãã¼ã¿ãã¼ã¹ãªãã¬ã¼ã·ã§ã³"
+"ãå®è¡ããããã«ä½¿ç¨ãããã¹ãã§ããããï¼ä¸è¨ã®ä¾ã¯ãï¼ã¤ã®ãªãã¬ã¼ã·ã§ã³ã§1"
+"ã¤ã® <interface>org.hibernate.Session</interface> ã使ç¨ãã¾ããããã¯ç´ç²ãª"
+"å¶ç¶ã§ãä¾ã¯ãã®ä»ã®ã¢ããã¼ãã示ãã»ã©è¾¼ã¿å
¥ã£ã¦ãã¾ããã Hibernate ã® "
+"<interface>org.hibernate.Session</interface> ã®ç¯å²ã¯æè»ã§ããã <emphasis>"
+"å
¨ã¦ã®</emphasis> ãã¼ã¿ãã¼ã¹ãªãã¬ã¼ã·ã§ã³ã®ããã«æ°ãã Hibernate "
+"<interface>org.hibernate.Session</interface> ã使ç¨ããããã«ã¢ããªã±ã¼ã·ã§ã³"
+"ããã¶ã¤ã³ããã¹ãã§ã¯ããã¾ãããå¾ã£ã¦ãããããã以ä¸ã® (æ®éã®) ä¾ã§ä½åº¦"
+"ãè¦ãã¨ãã¦ããã¢ã³ããã¿ã¼ã³ã§ãã <emphasis>ãªãã¬ã¼ã·ã§ã³æ¯ã® Session</"
+"emphasis> ãèæ
®ãã¦ãã ãããå®éã® (ã¦ã§ã) ã¢ããªã±ã¼ã·ã§ã³ã¯ããã®ãã¥ã¼"
+"ããªã¢ã«ã§å¾ã«è¦ããã¨ãã§ãã¾ãã"
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
"ãã©ã³ã¶ã¯ã·ã§ã³ã®æ±ãã¨å¢çã®è©³ããæ
å ±ã«ã¤ãã¦ã¯ã <xref linkend="
-"\"transactions\"/> ãè¦ã¦ãã ããã ãã®ä¾ã§ã¯ã¨ã©ã¼å¦çããã¼ã«ããã¯ã岿"
-"ãã¾ãã"
+"\"transactions\"/> ãè¦ã¦ãã ããããã®ä¾ã§ã¯ã¨ã©ã¼å¦çããã¼ã«ããã¯ã岿ã"
+"ã¾ãã"
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
@@ -1176,100 +816,52 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
msgstr ""
#. Tag: para
-#: tutorial.xml:586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
"lots of log output. Towards the end, the following line will be displayed:"
msgstr ""
-"ã³ã³ãã¤ã«ããã¨ãHibernateãã¹ã¿ã¼ãããããªãã®è¨å®ã«ããã¾ããã å¤ãã®ã"
-"ã°åºåãããã¯ãã§ãã ãã®æå¾ã«ã¯ä»¥ä¸ã®è¡ãããã§ãããï¼"
+"ã³ã³ãã¤ã«ããã¨ã Hibernate ãã¹ã¿ã¼ãããè¨å®ã«ããã¾ãããå¤ãã®ãã°åºåã"
+"ããã¯ãã§ãããã®æå¾ã«ã¯ä»¥ä¸ã®è¡ãããã§ãããï¼"
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
-#, no-c-format
+#, fuzzy, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
-msgstr ""
+msgstr "HQL ã® <literal>INSERT</literal> æã®å®è¡ä¾ã§ãï¼"
#. Tag: para
-#: tutorial.xml:597
#, fuzzy, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
-"ããã§ã¯åãããã«æ ¼ç´ãããã¤ãã³ãã®ä¸è¦§ãè¦ããã¨æãã¾ãã ãã®ããã¡ã¤ã³"
+"ããã§ã¯åãããã«æ ¼ç´ãããã¤ãã³ãã®ä¸è¦§ãè¦ããã¨æãã¾ãããã®ããã¡ã¤ã³"
"ã¡ã½ããã«ãªãã·ã§ã³ã追å ãã¾ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:601
-#, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
msgstr "æ°ãã <literal>listEvents()ã¡ã½ãã</literal> ã追å ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:607
-#, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
"ããã§ãããã¨ã¯ããã¼ã¿ãã¼ã¹ããåå¨ãããã¹ã¦ã® <literal>Event</literal> "
-"ãªãã¸ã§ã¯ãããã¼ãããHQL (Hibernate Query Language) ã¯ã¨ãªã使ããã¨ã§"
-"ãã Hibernateã¯é©åãªSQLãçæããããããã¼ã¿ãã¼ã¹ã«éãã ãã®ãã¼ã¿ã"
-"使ã£ã¦ <literal>Event</literal> ãªãã¸ã§ã¯ããçæãã¾ãã å½ç¶HQLã§ããã«è¤"
+"ãªãã¸ã§ã¯ãããã¼ããã HQL (Hibernate Query Language) ã¯ã¨ãªã使ããã¨ã§"
+"ãã Hibernate ã¯é©å㪠SQL ãçæããããããã¼ã¿ãã¼ã¹ã«éãããã®ãã¼ã¿ã"
+"使ã£ã¦ <literal>Event</literal> ãªãã¸ã§ã¯ããçæãã¾ããå½ç¶ HQL ã§ããã«è¤"
"éãªã¯ã¨ãªã使ã§ãã¾ãã"
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
@@ -1278,58 +870,33 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
msgstr "ãã¼ã2 - é¢é£ã®ãããã³ã°"
#. Tag: para
-#: tutorial.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
"isolation. Let's expand on that a bit and add some class associations. We "
"will add people to the application and store a list of events in which they "
"participate."
msgstr ""
-"æ°¸ç¶ã¨ã³ãã£ãã£ã¯ã©ã¹ããã¼ãã«ã«ãããã³ã°ãã¾ããã ããã«ãã®ä¸ã«ããã¤ã"
-"ã®ã¯ã©ã¹ã®é¢é£ã追å ãã¾ãããã ã¾ãåãã«ã¢ããªã±ã¼ã·ã§ã³ã«äººã
ã追å ããå½¼"
+"æ°¸ç¶ã¨ã³ãã£ãã£ã¯ã©ã¹ããã¼ãã«ã«ãããã³ã°ãã¾ãããããã«ãã®ä¸ã«ããã¤ã"
+"ã®ã¯ã©ã¹ã®é¢é£ã追å ãã¾ããããã¾ãåãã«ã¢ããªã±ã¼ã·ã§ã³ã«äººã
ã追å ããå½¼"
"ããåå ããã¤ãã³ãã®ãªã¹ããæ ¼ç´ãã¾ãã"
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
-msgstr "Personã¯ã©ã¹ã®ãããã³ã°"
+msgstr "Person ã¯ã©ã¹ã®ãããã³ã°"
#. Tag: para
-#: tutorial.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
msgstr "æåã® <literal>Person</literal> ã¯ã©ã¹ã¯åç´ã§ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:643
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
@@ -1337,65 +904,34 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
-msgstr "æå¾ã«Hibernateã®è¨å®ã«æ°ãããããã³ã°ã追å ãã¦ãã ããï¼"
+msgstr "æå¾ã« Hibernate ã®è¨å®ã«æ°ãããããã³ã°ã追å ãã¦ãã ããï¼"
-#. Tag: programlisting
-#: tutorial.xml:661
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:663
-#, fuzzy, no-c-format
-msgid ""
"Create an association between these two entities. Persons can participate in "
"events, and events have participants. The design questions you have to deal "
"with are: directionality, multiplicity, and collection behavior."
msgstr ""
-"ããã§ã¯ããã2ã¤ã®ã¨ã³ãã£ãã£éã®é¢é£ã使ãã¾ãã 人ã
ãã¤ãã³ãã«åå ã§"
-"ããã¤ãã³ããåå è
ãæã¤ã®ã¯æããã§ãã æ±ããªããã°ãªããªãè¨è¨ã®åé¡ã¯ã"
+"ããã§ã¯ããã2ã¤ã®ã¨ã³ãã£ãã£éã®é¢é£ã使ãã¾ãã人ã
ãã¤ãã³ãã«åå ã§"
+"ããã¤ãã³ããåå è
ãæã¤ã®ã¯æããã§ããæ±ããªããã°ãªããªãè¨è¨ã®åé¡ã¯ã"
"æ¹åãå¤é度ãã³ã¬ã¯ã·ã§ã³ã®æ¯ãèãã§ãã"
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
-msgstr "åæ¹åSetãã¼ã¹é¢é£"
+msgstr "åæ¹å Set ãã¼ã¹é¢é£"
#. Tag: para
-#: tutorial.xml:675
#, fuzzy, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
@@ -1406,32 +942,14 @@
"Set</interfacename> because the collection will not contain duplicate "
"elements and the ordering is not relevant to our examples:"
msgstr ""
-"ã¤ãã³ãã®ã³ã¬ã¯ã·ã§ã³ã <literal>Person</literal> ã¯ã©ã¹ã«è¿½å ãã¾ãã ãã"
-"ãã¦ããã¨ãæç¤ºçãªã¯ã¨ãªãã¤ã¾ããããã<literal>aPerson.getEvents()</"
-"literal>ãå¼ã³åºããã«ã ç¹å®ã®äººã«ç´ä»ãã¤ãã³ããç°¡åã«ããã²ã¼ããããã¨ã"
-"ã§ãã¾ãã ç§ãã¡ã¯Javaã®ã³ã¬ã¯ã·ã§ã³ã<literal>Set</literal> ã使ãã¾ãã ã³"
-"ã¬ã¯ã·ã§ã³ã¯éè¤è¦ç´ ãæããªãããé çªã¯ç§ãã¡ã«ã¯æå³ããªãããã§ãã"
+"ã¤ãã³ãã®ã³ã¬ã¯ã·ã§ã³ã <literal>Person</literal> ã¯ã©ã¹ã«è¿½å ãã¾ããããã"
+"ã¦ããã¨ãæç¤ºçãªã¯ã¨ãªãã¤ã¾ããããã <literal>aPerson.getEvents()</"
+"literal> ãå¼ã³åºããã«ãç¹å®ã®äººã«ç´ä»ãã¤ãã³ããç°¡åã«ããã²ã¼ããããã¨ã"
+"ã§ãã¾ããç§ãã¡ã¯ Java ã®ã³ã¬ã¯ã·ã§ã³ã<interfacename>java.util.Set</"
+"interfacename> ã使ãã¾ããã³ã¬ã¯ã·ã§ã³ã¯éè¤è¦ç´ ãæããªãããé çªã¯ç§ãã¡ã«"
+"ã¯æå³ããªãããã§ãã"
-#. Tag: programlisting
-#: tutorial.xml:686
-#, no-c-format
-msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:688
#, fuzzy, no-c-format
msgid ""
"Before mapping this association, let's consider the other side. We could "
@@ -1444,40 +962,19 @@
"on both sides is called a <emphasis>many-to-many</emphasis> association. "
"Hence, we use Hibernate's many-to-many mapping:"
msgstr ""
-"ãã®é¢é£ããããã³ã°ããåã«ãå対å´ã«ã¤ãã¦èãã¦ãã ããã æãããªãã¨ã§ã"
-"ããä»ã¯ãããåæ¹åã«ããã ãã§ãã éã«ã <literal>Event</literal> å´ã«ãå¥"
-"ã®ã³ã¬ã¯ã·ã§ã³ãä½ããã¨ãã§ãã¾ãã ä¾ãã° <literal>anEvent.getParticipants"
-"()</literal> ã®ããã«ã åæ¹åã«ããã²ã¼ãããããã°ããããããã¨ãã§ãã¾"
-"ãã ããã¯æ©è½çã«ã¿ã¦å¿
è¦ã§ã¯ããã¾ããã ç¹å®ã®ã¤ãã³ãã«é¢ä¿ãããã¼ã¿ã"
-"åå¾ããæç¢ºãªã¯ã¨ãªãããã¤ã§ãå®è¡ãããã¨ãåºæ¥ã¾ããã ãã®è¨è¨ã®é¸æã¯é"
-"çºè
ã«ä»»ããã¦ãã¦ããã®è°è«ã«ããæãããªã®ã¯é¢é£ã®å¤é度ã§ãã ã¤ã¾ã両å´ã"
-"ãå¤ãå¤ã«ããã <emphasis>å¤å¯¾å¤</emphasis> ã¨å¼ã°ããé¢é£ã§ãã ãã®ãã"
-"Hibernateã®many-to-manyãããã³ã°ã使ãã¾ãï¼"
+"ãã®é¢é£ããããã³ã°ããåã«ãå対å´ã«ã¤ãã¦èãã¦ãã ãããæãããªãã¨ã§ã"
+"ããä»ã¯ãããåæ¹åã«ããã ãã§ããéã«ã <literal>Event</literal> å´ã«ãå¥"
+"ã®ã³ã¬ã¯ã·ã§ã³ãä½ããã¨ãã§ãã¾ããä¾ãã° <literal>anEvent.getParticipants()"
+"</literal> ã®ããã«ãåæ¹åã«ããã²ã¼ãããããã°ããããããã¨ãã§ãã¾ããã"
+"ãã¯æ©è½çã«ã¿ã¦å¿
è¦ã§ã¯ããã¾ãããç¹å®ã®ã¤ãã³ãã«é¢ä¿ãããã¼ã¿ãåå¾ãã"
+"æç¢ºãªã¯ã¨ãªãããã¤ã§ãå®è¡ãããã¨ãåºæ¥ã¾ããããã®è¨è¨ã®é¸æã¯éçºè
ã«ä»»"
+"ããã¦ãã¦ããã®è°è«ã«ããæãããªã®ã¯é¢é£ã®å¤é度ã§ããã¤ã¾ã両å´ããå¤ãå¤"
+"ã«ããã <emphasis>å¤å¯¾å¤</emphasis> ã¨å¼ã°ããé¢é£ã§ãããã®ãã Hibernate "
+"ã®å¤å¯¾å¤ãããã³ã°ã使ãã¾ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:701
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:703
-#, fuzzy, no-c-format
-msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
"literal> being most common. For a many-to-many association, or <emphasis>n:"
"m</emphasis> entity relationship, an association table is required. Each row "
@@ -1490,51 +987,28 @@
"tell Hibernate the class of the objects in your collection (the class on the "
"other side of the collection of references)."
msgstr ""
-"Hibernateã¯ããã¨ãããã種é¡ã®ã³ã¬ã¯ã·ã§ã³ãããã³ã°ããµãã¼ããã¦ãã¾ã"
-"ãã æãä¸è¬çãªãã®ã <literal><set></literal> ã§ãã å¤å¯¾å¤é¢é£ï¼ã¾"
-"ã㯠<emphasis>n:m</emphasis> ã¨ã³ãã£ãã£ãªã¬ã¼ã·ã§ã³ã·ããï¼ã«ã¯ã é¢é£ãã¼"
-"ãã«ãå¿
è¦ã§ãã ãã®ãã¼ãã«ã®ããããã®è¡ã¯ã人ã¨ã¤ãã³ãéã®ãªã³ã¯ã表ç¾ã"
-"ã¾ãã ãã¼ãã«å㯠<literal>set</literal> è¦ç´ ã® <literal>table</literal> å±"
-"æ§ã§è¨å®ãã¾ãã 人å´ã®é¢é£ã®èå¥åã«ã©ã å㯠<literal><key></literal> "
-"è¦ç´ ã§ã ã¤ãã³ãå´ã®ã«ã©ã å㯠<literal><many-to-many></literal> ã® "
-"<literal>column</literal> 屿§ã§å®ç¾©ãã¾ãã Hibernateã«ã³ã¬ã¯ã·ã§ã³ã®ãªã"
-"ã¸ã§ã¯ãã®ã¯ã©ã¹ ï¼æ£ç¢ºã«ã¯ãåç
§ã®ã³ã¬ã¯ã·ã§ã³ã®å対å´ã®ã¯ã©ã¹ï¼ãæããªãã"
-"ã°ãªãã¾ããã"
+"Hibernate ã¯ããã¨ãããã種é¡ã®ã³ã¬ã¯ã·ã§ã³ãããã³ã°ããµãã¼ããã¦ãã¾ã"
+"ããæãä¸è¬çãªãã®ã <literal>set</literal> ã§ãã å¤å¯¾å¤é¢é£ï¼ã¾ã㯠"
+"<emphasis>n:m</emphasis> ã¨ã³ãã£ãã£ãªã¬ã¼ã·ã§ã³ã·ããï¼ã«ã¯ãé¢é£ãã¼ãã«ã"
+"å¿
è¦ã§ãããã®ãã¼ãã«ã®ããããã®è¡ã¯ã人ã¨ã¤ãã³ãéã®ãªã³ã¯ã表ç¾ãã¾ãã"
+"ãã¼ãã«å㯠<literal>set</literal> è¦ç´ ã® <literal>table</literal> 屿§ã§è¨"
+"å®ãã¾ãã人å´ã®é¢é£ã®èå¥åã«ã©ã å㯠<literal>key</literal> è¦ç´ ã§ãã¤ãã³"
+"ãå´ã®ã«ã©ã å㯠<literal>many-to-many</literal> ã® <literal>column</"
+"literal> 屿§ã§å®ç¾©ãã¾ãã Hibernate ã«ã³ã¬ã¯ã·ã§ã³ã®ãªãã¸ã§ã¯ãã®ã¯ã©ã¹ "
+"ï¼æ£ç¢ºã«ã¯ãåç
§ã®ã³ã¬ã¯ã·ã§ã³ã®å対å´ã®ã¯ã©ã¹ï¼ãæããªããã°ãªãã¾ããã"
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
-msgstr "ãã®ãããã®ãããã³ã°ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯ä»¥ä¸ã®ããã«ãªãã¾ããï¼"
+msgstr "ãã®ãããã®ãããã³ã°ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯ä»¥ä¸ã®ããã«ãªãã¾ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
msgstr "é¢é£ãåããã"
#. Tag: para
-#: tutorial.xml:730
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
"<literal>EventManager</literal>:"
@@ -1542,25 +1016,7 @@
"<literal>EventManager</literal> ã®æ°ããã¡ã½ããã§äººã
ã¨ã¤ãã³ããä¸ç·ã«ãã¾"
"ãããï¼"
-#. Tag: programlisting
-#: tutorial.xml:734
-#, no-c-format
-msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:736
#, fuzzy, no-c-format
msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
@@ -1577,25 +1033,24 @@
"of a unit of work, is called <emphasis>flushing</emphasis>. In our code, the "
"unit of work ends with a commit, or rollback, of the database transaction."
msgstr ""
-"<literal>Person</literal> 㨠<literal>Event</literal> ããã¼ãããå¾ã æ®éã®"
-"ã³ã¬ã¯ã·ã§ã³ã¡ã½ããã使ã£ã¦åç´ã«ãã®ã³ã¬ã¯ã·ã§ã³ãä¿®æ£ãã¦ãã ããã ã覧ã®"
+"<literal>Person</literal> 㨠<literal>Event</literal> ããã¼ãããå¾ãæ®éã®"
+"ã³ã¬ã¯ã·ã§ã³ã¡ã½ããã使ã£ã¦åç´ã«ãã®ã³ã¬ã¯ã·ã§ã³ãä¿®æ£ãã¦ãã ãããã覧ã®"
"ã¨ãã <literal>update()</literal> ã <literal>save()</literal> ã®æç¤ºçãªå¼"
-"ã³åºãã¯ããã¾ããã Hibernateã¯ãä¿®æ£ããããã¨ã«ããæ´æ°ããå¿
è¦ã®ããã³ã¬"
-"ã¯ã·ã§ã³ãèªåçã«æ¤ç¥ãã¾ãã ãã㯠<emphasis>èªåãã¼ãã£ãã§ãã¯</"
-"emphasis> ã¨å¼ã°ãã ãªãã¸ã§ã¯ãã®ååãdateããããã£ãä¿®æ£ãããã¨ã§è©¦ãã"
-"ã¨ãå¯è½ã§ãã ãããã <emphasis>æ°¸ç¶</emphasis> ç¶æ
ã«ããéãã ã¤ã¾ãç¹å®"
-"ã®Hibernate <literal>Session</literal> ã«ãã¤ã³ãããã¦ããéã ï¼ä¾ãã°ä½æ¥"
-"åä½(Unit of Work)ã®ä¸ã§åã«ãã¼ãã¾ãã¯ã»ã¼ããããï¼ã Hibernateã¯ã©ããªå¤"
-"æ´ãã¢ãã¿ã¼ããé
å»¶æ¸ãè¾¼ã¿(write-behind)ã§SQLãå®è¡ãã¾ãã é常ã使¥åä½"
-"(Unit of Work)ã®æå¾ã«ã ãè¡ããããã¼ã¿ãã¼ã¹ã¨ã¡ã¢ãªã®ç¶æ
ãåæãããå¦ç"
-"ã¯ã <emphasis>ãã©ãã·ã¥</emphasis> ã¨å¼ã°ãã¾ãã ãã®ã³ã¼ãã§ã¯ã使¥åä½"
-"(Unit of Work)ã¯ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ã³ãããï¼ãããã¯ãã¼ã«ãã"
-"ã¯ï¼ã§çµäºãã¾ãã ããã¯ã <literal>CurrentSessionContext</literal> ã¯ã©ã¹ã«"
-"対ã㦠<literal>thread</literal> ãè¨å®ããããã§ãã"
+"ã³åºãã¯ããã¾ããã Hibernate ã¯ãä¿®æ£ããããã¨ã«ããæ´æ°ããå¿
è¦ã®ããã³ã¬"
+"ã¯ã·ã§ã³ãèªåçã«æ¤ç¥ãã¾ãããã㯠<emphasis>èªåãã¼ãã£ãã§ãã¯</"
+"emphasis> ã¨å¼ã°ãããªãã¸ã§ã¯ãã®ååã date ããããã£ãä¿®æ£ãããã¨ã§è©¦ã"
+"ãã¨ãå¯è½ã§ãããããã <emphasis>æ°¸ç¶</emphasis> ç¶æ
ã«ããéããã¤ã¾ãç¹å®"
+"ã® Hibernate <literal>Session</literal> ã«ãã¤ã³ãããã¦ããéã ï¼ä¾ãã°ä½æ¥"
+"åä½ (Unit of Work) ã®ä¸ã§åã«ãã¼ãã¾ãã¯ã»ã¼ããããï¼ã Hibernate ã¯ã©ããª"
+"夿´ãã¢ãã¿ã¼ããé
å»¶æ¸ã込㿠(write-behind) ã§ SQL ãå®è¡ãã¾ããé常ã使¥"
+"åä½ (Unit of Work) ã®æå¾ã«ã ãè¡ããããã¼ã¿ãã¼ã¹ã¨ã¡ã¢ãªã®ç¶æ
ãåæãã"
+"ãå¦çã¯ã <emphasis>ãã©ãã·ã¥</emphasis> ã¨å¼ã°ãã¾ãããã®ã³ã¼ãã§ã¯ã使¥"
+"åä½ (Unit of Work) ã¯ãã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®ã³ãããï¼ãããã¯ãã¼ã«"
+"ããã¯ï¼ã§çµäºãã¾ããããã¯ã <literal>CurrentSessionContext</literal> ã¯ã©"
+"ã¹ã«å¯¾ã㦠<literal>thread</literal> ãè¨å®ããããã§ãã"
#. Tag: para
-#: tutorial.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
"an object outside of a <interfacename>org.hibernate.Session</interfacename>, "
@@ -1603,65 +1058,28 @@
"is called <emphasis>detached</emphasis>). You can even modify a collection "
"when it is detached:"
msgstr ""
-"ç°ãªã使¥åä½(Unit of Work)ã§äººã
ã¨ã¤ãã³ãããã¼ããããã¨ãå½ç¶ã§ãã¾ãã "
-"ããã§ãªããã°ãæ°¸ç¶ç¶æ
ã«ãªãã¨ãï¼ä»¥åã«æ°¸ç¶ã§ãã£ããªãããã®ç¶æ
ã "
-"<emphasis>åé¢ï¼detachedï¼</emphasis> ã¨å¼ã³ã¾ãï¼ã <literal>Session</"
-"literal> ã®å¤é¨ã§ãªãã¸ã§ã¯ããä¿®æ£ãã¾ãã åé¢ãããã¨ãã«ã¯ã³ã¬ã¯ã·ã§ã³ã"
-"夿´ãããã¨ãå¯è½ã§ãï¼"
+"ç°ãªã使¥åä½ (Unit of Work) ã§äººã
ã¨ã¤ãã³ãããã¼ããããã¨ãå½ç¶ã§ãã¾"
+"ããããã§ãªããã°ãæ°¸ç¶ç¶æ
ã«ãªãã¨ãï¼ä»¥åã«æ°¸ç¶ã§ãã£ããªãããã®ç¶æ
ã "
+"<emphasis>åé¢ï¼detachedï¼</emphasis> ã¨å¼ã³ã¾ãï¼ã <interfacename>org."
+"hibernate.Session</interfacename> ã®å¤é¨ã§ãªãã¸ã§ã¯ããä¿®æ£ãã¾ããåé¢ãã"
+"ãã¨ãã«ã¯ã³ã¬ã¯ã·ã§ã³ã夿´ãããã¨ãå¯è½ã§ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:764
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
"again by binding it to a new unit of work, so any modifications you made to "
"it while detached can be saved to the database. This includes any "
"modifications (additions/deletions) you made to a collection of that entity "
"object."
msgstr ""
-"<literal>update</literal> ã®å¼ã³åºãã¯åé¢ãªãã¸ã§ã¯ããåã³æ°¸ç¶åãã¾ãã ã"
-"ãã¯ãæ°ãã使¥åä½(Unit of Work)ã«ãã¤ã³ãããã¨è¨ããã§ãããã ãã®ããå"
-"é¢ã®éã«å ããããã©ã®ãããªä¿®æ£ããã¼ã¿ãã¼ã¹ã«ã»ã¼ãã§ãã¾ãã ã¨ã³ãã£ãã£"
-"ãªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³ã¸ã®ä¿®æ£ï¼è¿½å ï½¥åé¤ï¼ãåæ§ã«ã»ã¼ãã§ãã¾ãã"
+"<literal>update</literal> ã®å¼ã³åºãã¯åé¢ãªãã¸ã§ã¯ããåã³æ°¸ç¶åãã¾ããã"
+"ãã¯ãæ°ãã使¥åä½ (Unit of Work) ã«ãã¤ã³ãããã¨è¨ããã§ãããããã®ãã"
+"åé¢ã®éã«å ããããã©ã®ãããªä¿®æ£ããã¼ã¿ãã¼ã¹ã«ã»ã¼ãã§ãã¾ããã¨ã³ãã£"
+"ãã£ãªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³ã¸ã®ä¿®æ£ï¼è¿½å ï½¥åé¤ï¼ãåæ§ã«ã»ã¼ãã§ãã¾ãã"
#. Tag: para
-#: tutorial.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
"incorporate into your own application. Complete this exercise by adding a "
@@ -1670,31 +1088,16 @@
"an event - the <literal>save()</literal> method returns it (you might have "
"to modify some of the previous methods to return that identifier):"
msgstr ""
-"ããã¯ä»ã¯ãã¾ã使ãã¿ã¡ãããã¾ãããã èªåã®ã¢ããªã±ã¼ã·ã§ã³ã®è¨è¨ã«çµã¿è¾¼"
-"ããã¨ãã§ããéè¦ãªã³ã³ã»ããã§ãã ããã§ã¯ãã®ã¨ã¯ãµãµã¤ãºã®æå¾ã«ã "
-"<literal>EventManager</literal> ã®ã¡ã¤ã³ã¡ã½ããã«æ°ããã¢ã¯ã·ã§ã³ã追å ã㦠"
-"ã³ãã³ãã©ã¤ã³ããå¼ã³åºãã¦ã¿ã¾ãããã 人ãã¤ãã³ãã®èå¥åãå¿
è¦ãªãã "
+"ããã¯ä»ã¯ãã¾ã使ãã¿ã¡ãããã¾ããããèªåã®ã¢ããªã±ã¼ã·ã§ã³ã®è¨è¨ã«çµã¿è¾¼"
+"ããã¨ãã§ããéè¦ãªã³ã³ã»ããã§ããããã§ã¯ãã®ã¨ã¯ãµãµã¤ãºã®æå¾ã«ã "
+"<literal>EventManager</literal> ã®ã¡ã¤ã³ã¡ã½ããã«æ°ããã¢ã¯ã·ã§ã³ã追å ãã¦"
+"ã³ãã³ãã©ã¤ã³ããå¼ã³åºãã¦ã¿ã¾ãããã人ãã¤ãã³ãã®èå¥åãå¿
è¦ãªãã "
"<literal>save()</literal> ã¡ã½ãããè¿ãã¦ããã¾ã ï¼å ´åã«ãã£ã¦ã¯èå¥åãè¿"
"ãããã«ã¡ã½ãããä¿®æ£ããå¿
è¦ãããããããã¾ããï¼ã"
-#. Tag: programlisting
-#: tutorial.xml:783
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:785
-#, fuzzy, no-c-format
-msgid ""
"This is an example of an association between two equally important classes : "
"two entities. As mentioned earlier, there are other classes and types in a "
"typical model, usually \"less important\". Some you have already seen, like "
@@ -1709,38 +1112,35 @@
"fact, in a Hibernate application all JDK classes are considered value types."
msgstr ""
"ããã¯åãããã«éè¦ãª2ã¤ã®ã¯ã©ã¹ãã¤ã¾ã2ã¤ã®ã¨ã³ãã£ãã£éã®é¢é£ã®ä¾ã§ã"
-"ãã åã«è¿°ã¹ãããã«ãå
¸åçãªã¢ãã«ã«ã¯ãæ®éãæ¯è¼çéè¦ã§ã¯ãªããä»ã®ã¯ã©"
-"ã¹ã¨åãããã¾ãã ããã¾ã§ã«è¦ããã㪠<literal>int</literal> ã "
-"<literal>String</literal> ã®ãããªãã®ã§ãã ãã®ãããªã¯ã©ã¹ã <emphasis>å¤"
-"å</emphasis> ã¨è¨ãã¾ãã ãã®ã¤ã³ã¹ã¿ã³ã¹ã¯ç¹å®ã®ã¨ã³ãã£ãã£ã« <emphasis>"
-"ä¾å</emphasis> ãã¾ãã ãã®åã®ã¤ã³ã¹ã¿ã³ã¹ã¯ç¬èªã®IDãæã¡ã¾ãããã ã¨ã³"
-"ãã£ãã£éã§å
±æããããã¨ãããã¾ãã ï¼ãã¡ã¼ã¹ããã¼ã ãåãã ã£ãã¨ãã¦"
-"ãã2人ã®äººã¯åã <literal>firstname</literal> ãªãã¸ã§ã¯ããåç
§ãã¾ã"
-"ãï¼ã å¤åã¯ãã¡ããJDKå
ã«è¦ã¤ããã¾ãããããã ãã§ã¯ãªã ï¼å®éã"
-"Hibernateã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãã¹ã¦ã®JDKã¯ã©ã¹ã¯å¤åã¨è¦ãªãã¾ãï¼ã ä¾ã"
-"ã° <literal>Address</literal> ã <literal>MonetaryAmount</literal> ã®ãããªç¬"
-"èªã®ä¾åã¯ã©ã¹ãæ¸ããã¨ãã§ãã¾ãã"
+"ããåã«è¿°ã¹ãããã«ãå
¸åçãªã¢ãã«ã«ã¯ãæ®éãæ¯è¼çéè¦ã§ã¯ãªããä»ã®ã¯ã©"
+"ã¹ã¨åãããã¾ããããã¾ã§ã«è¦ããã㪠<literal>int</literal> ã "
+"<classname>java.lang.String</classname> ã®ãããªãã®ã§ãããã®ãããªã¯ã©ã¹ã "
+"<emphasis>å¤å</emphasis> ã¨è¨ãã¾ãããã®ã¤ã³ã¹ã¿ã³ã¹ã¯ç¹å®ã®ã¨ã³ãã£ãã£ã« "
+"<emphasis>ä¾å</emphasis> ãã¾ãããã®åã®ã¤ã³ã¹ã¿ã³ã¹ã¯ç¬èªã® ID ãæã¡ã¾ã"
+"ãããã¨ã³ãã£ãã£éã§å
±æããããã¨ãããã¾ãã ï¼ãã¡ã¼ã¹ããã¼ã ãåãã ã£"
+"ãã¨ãã¦ãã2人ã®äººã¯åã <literal>firstname</literal> ãªãã¸ã§ã¯ããåç
§ãã¾"
+"ããï¼ãå¤åã¯ãã¡ãã JDK å
ã«è¦ã¤ããã¾ãããããã ãã§ã¯ãªã ï¼å®éã "
+"Hibernate ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãã¹ã¦ã® JDK ã¯ã©ã¹ã¯å¤åã¨è¦ãªãã¾ãï¼ã "
+"ä¾ãã° <literal>Address</literal> ã <literal>MonetaryAmount</literal> ã®ãã"
+"ãªç¬èªã®ä¾åã¯ã©ã¹ãæ¸ããã¨ãã§ãã¾ãã"
#. Tag: para
-#: tutorial.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
"different from a collection of references to other entities, but looks "
"almost the same in Java."
msgstr ""
-"å¤åã®ã³ã¬ã¯ã·ã§ã³ãè¨è¨ãããã¨ãã§ãã¾ãã ããã¯ä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ã®"
-"ã³ã¬ã¯ã·ã§ã³ã¨ã¯æ¦å¿µçã«é常ã«ç°ãªãã¾ããã Javaã§ã¯ã»ã¨ãã©åãããã«è¦ãã¾"
-"ãã"
+"å¤åã®ã³ã¬ã¯ã·ã§ã³ãè¨è¨ãããã¨ãã§ãã¾ããããã¯ä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ã®"
+"ã³ã¬ã¯ã·ã§ã³ã¨ã¯æ¦å¿µçã«é常ã«ç°ãªãã¾ããã Java ã§ã¯ã»ã¨ãã©åãããã«è¦ã"
+"ã¾ãã"
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
msgstr "å¤ã®ã³ã¬ã¯ã·ã§ã³"
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
@@ -1748,41 +1148,14 @@
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:820
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
msgstr "ãã® <literal>Set</literal> ã®ãããã³ã°ã§ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:826
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:828
-#, fuzzy, no-c-format
-msgid ""
"The difference compared with the earlier mapping is the use of the "
"<literal>element</literal> part which tells Hibernate that the collection "
"does not contain references to another entity, but is rather a collection "
@@ -1796,91 +1169,42 @@
"address values will actually be stored."
msgstr ""
"åã®ãããã³ã°ã¨æ¯ã¹ã¦éãã®ã¯ <literal>element</literal> ã®é¨åã§ããã "
-"Hibernateã«ãã®ã³ã¬ã¯ã·ã§ã³ãä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ãå«ã¾ãã "
-"<literal>String</literal> åã®è¦ç´ ã®ã³ã¬ã¯ã·ã§ã³ãå«ããã¨ãæãã¾ãã ï¼å°æ"
-"åã®åå(string)ã¯Hibernateã®ãããã³ã°åã¾ãã¯ã³ã³ãã¼ã¿ã§ããã¨ãããã¨ã§"
-"ãï¼ã ç¹°ãè¿ãã¾ããã<literal>set</literal> è¦ç´ ã® <literal>table</"
-"literal> 屿§ã¯ã ã³ã¬ã¯ã·ã§ã³ã®ããã®ãã¼ãã«åãæå®ãã¾ãã <literal>key</"
-"literal> è¦ç´ ã¯ã³ã¬ã¯ã·ã§ã³ãã¼ãã«ã®å¤é¨ãã¼ã«ã©ã åãå®ç¾©ãã¾ãã "
-"<literal>element</literal> è¦ç´ ã® <literal>column</literal> 屿§ã¯ "
-"<literal>String</literal> ã®å¤ãå®éã«æ ¼ç´ãããã«ã©ã ã®ååãå®ç¾©ãã¾ãã"
+"Hibernate ã«ãã®ã³ã¬ã¯ã·ã§ã³ãä»ã®ã¨ã³ãã£ãã£ã¸ã®åç
§ãå«ã¾ãã "
+"<literal>string</literal> åã®è¦ç´ ã®ã³ã¬ã¯ã·ã§ã³ãå«ããã¨ãæãã¾ãï¼å°æå"
+"ã®åå (string) 㯠Hibernate ã®ãããã³ã°åã¾ãã¯ã³ã³ãã¼ã¿ã§ããã¨ãããã¨ã§"
+"ãï¼ãç¹°ãè¿ãã¾ããã<literal>set</literal> è¦ç´ ã® <literal>table</literal> "
+"屿§ã¯ãã³ã¬ã¯ã·ã§ã³ã®ããã®ãã¼ãã«åãæå®ãã¾ãã <literal>key</literal> "
+"è¦ç´ ã¯ã³ã¬ã¯ã·ã§ã³ãã¼ãã«ã®å¤é¨ãã¼ã«ã©ã åãå®ç¾©ãã¾ãã <literal>element</"
+"literal> è¦ç´ ã® <literal>column</literal> 屿§ã¯ <literal>string</literal> ã®"
+"å¤ãå®éã«æ ¼ç´ãããã«ã©ã ã®ååãå®ç¾©ãã¾ãã"
#. Tag: para
-#: tutorial.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is the updated schema:"
msgstr "æ´æ°ããã¹ãã¼ããè¦ã¦ãã ããï¼"
-#. Tag: programlisting
-#: tutorial.xml:848
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:850
-#, fuzzy, no-c-format
-msgid ""
"You can see that the primary key of the collection table is in fact a "
"composite key that uses both columns. This also implies that there cannot be "
"duplicate email addresses per person, which is exactly the semantics we need "
"for a set in Java."
msgstr ""
"ã³ã¬ã¯ã·ã§ã³ãã¼ãã«ã®ä¸»ãã¼ã¯ãå®éã¯ä¸¡æ¹ã®ã«ã©ã ã使ã£ãè¤åãã¼ã§ãããã¨"
-"ããããã¾ãã ããã¯äººãã¨ã«Eã¡ã¼ã«ã¢ãã¬ã¹ãéè¤ã§ããªãã¨ãããã¨ã§ã Java"
-"ã®setã«è¦æ±ãããã»ãã³ãã£ã¯ã¹ãã®ãã®ã§ãã"
+"ããããã¾ããããã¯äººãã¨ã« E ã¡ã¼ã«ã¢ãã¬ã¹ãéè¤ã§ããªãã¨ãããã¨ã§ã "
+"Java ã® set ã«è¦æ±ãããã»ãã³ãã£ã¯ã¹ãã®ãã®ã§ãã"
#. Tag: para
-#: tutorial.xml:856
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
"by linking persons and events. It is the same code in Java:"
msgstr ""
-"以å人ã¨ã¤ãã³ããé¢é£ã¥ããã¨ãã¨å
¨ãåãããã«ã ä»ã試ãã«ã³ã¬ã¯ã·ã§ã³ã«è¦"
-"ç´ ã追å ãããã¨ãã§ããããã«ãªãã¾ããã 両æ¹ã¨ãJavaã§ã¯åãã³ã¼ãã§ãã"
+"以å人ã¨ã¤ãã³ããé¢é£ã¥ããã¨ãã¨å
¨ãåãããã«ãä»ã試ãã«ã³ã¬ã¯ã·ã§ã³ã«è¦"
+"ç´ ã追å ãããã¨ãã§ããããã«ãªãã¾ããã 両æ¹ã¨ã Java ã§ã¯åãã³ã¼ãã§ãã"
-#. Tag: programlisting
-#: tutorial.xml:861
-#, no-c-format
-msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:863
#, fuzzy, no-c-format
msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
@@ -1888,43 +1212,40 @@
"fetch."
msgstr ""
"ä»åãã³ã¬ã¯ã·ã§ã³ã®åæåã« <emphasis>fetch</emphasis> ã¯ã¨ãªã使ç¨ãã¾ãã"
-"ã§ããã ãã®ãããgetterã¡ã½ããã®å¼ã³åºãã«ãã£ã¦ã³ã¬ã¯ã·ã§ã³ãåæåããã"
-"ãã®SELECTã å®è¡ãããã®ã§ãã³ã¬ã¯ã·ã§ã³ã«è¦ç´ ã追å ã§ãã¾ãã SQLã®ãã°ãç£"
-"è¦ãã¦ã峿ãã§ããã使ã£ã¦æé©åãã¦ãã ããã"
+"ã§ããããã®ããã getter ã¡ã½ããã®å¼ã³åºãã«ãã£ã¦ã³ã¬ã¯ã·ã§ã³ãåæåãã"
+"ããã® SELECT ãå®è¡ãããã®ã§ãã³ã¬ã¯ã·ã§ã³ã«è¦ç´ ã追å ã§ãã¾ãã SQL ã®ãã°"
+"ãç£è¦ãã¦ã峿ãã§ããã使ã£ã¦æé©åãã¦ãã ããã"
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr "åæ¹åé¢é£"
#. Tag: para
-#: tutorial.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
"association between person and event work from both sides in Java. The "
"database schema does not change, so you will still have many-to-many "
"multiplicity."
msgstr ""
-"次ã«åæ¹åé¢é£ããããã³ã°ãã¾ãã Javaã§ä¸¡å´ãã人ã¨ã¤ãã³ãã®é¢é£ãåä½ãã"
-"ã¾ãã ãã¡ããããã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯å¤ããã¾ããããå¤é度ã¯å¤å¯¾å¤ã®ã¾ã¾ã§"
-"ãã ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã¯ãããã¯ã¼ã¯ããã°ã©ãã³ã°è¨èªãããæè»ãªã®"
-"ã§ã ããã²ã¼ã·ã§ã³ã®æ¹åã®ãããªãã®ãå¿
è¦ã¨ãã¾ããã ãã¼ã¿ã¯ããããã®æ¹"
-"æ³ã§è¦ãã復å
ã§ããã¨ãããã¨ã§ãã"
+"次ã«åæ¹åé¢é£ããããã³ã°ãã¾ãã Java ã§ä¸¡å´ãã人ã¨ã¤ãã³ãã®é¢é£ãåä½ã"
+"ãã¾ãããã¡ããããã¼ã¿ãã¼ã¹ã¹ãã¼ãã¯å¤ããã¾ããããå¤é度ã¯å¤å¯¾å¤ã®ã¾ã¾"
+"ã§ãã"
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
"in that it does not need a navigation direction; data can be viewed and "
"retrieved in any possible way."
msgstr ""
+"ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã¯ãããã¯ã¼ã¯ããã°ã©ãã³ã°è¨èªãããæè»ãªã®ã§ã"
+"ããã²ã¼ã·ã§ã³ã®æ¹åã®ãããªãã®ãå¿
è¦ã¨ãã¾ããããã¼ã¿ã¯ããããæ¹æ³ã§è¦ã"
+"ã復å
ã§ããã¨ãããã¨ã§ãã"
#. Tag: para
-#: tutorial.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
"class:"
@@ -1932,45 +1253,17 @@
"ã¾ã <literal>Event</literal> ã¤ãã³ãã¯ã©ã¹ã«åå è
ã®ã³ã¬ã¯ã·ã§ã³ã追å ãã¾"
"ãï¼"
-#. Tag: programlisting
-#: tutorial.xml:895
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:897
-#, fuzzy, no-c-format
-msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr ""
"ããã§ã¯ <literal>Event.hbm.xml</literal> ã§é¢é£ã®ãã¡ãå´ããããã³ã°ãã¦ã"
"ã ããã"
-#. Tag: programlisting
-#: tutorial.xml:901
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:903
-#, fuzzy, no-c-format
-msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
"Notice that the column names in <literal>key</literal> and <literal>many-to-"
"many</literal> swap in both mapping documents. The most important addition "
@@ -1978,16 +1271,15 @@
"<literal>set</literal> element of the <literal>Event</literal>'s collection "
"mapping."
msgstr ""
-"ã覧ã®ã¨ããããããã®ãããã³ã°ããã¥ã¡ã³ã(XMLãã¡ã¤ã«)ã§ããæ®éã® "
+"ã覧ã®ã¨ããããããã®ãããã³ã°ããã¥ã¡ã³ã (XMLãã¡ã¤ã«) ã§ããæ®éã® "
"<literal>set</literal> ãããã³ã°ã使ã£ã¦ãã¾ãã <literal>key</literal> 㨠"
-"<literal>many-to-many</literal> ã®ã«ã©ã åãã 両æ¹ã®ãããã³ã°ããã¥ã¡ã³ãã§"
-"å
¥ãæ¿ãã«ãªã£ã¦ãããã¨ã«æ³¨ç®ãã¦ãã ããã ããã§æãéè¦ãªè¿½å é
ç®ã¯ã "
+"<literal>many-to-many</literal> ã®ã«ã©ã åãã両æ¹ã®ãããã³ã°ããã¥ã¡ã³ãã§"
+"å
¥ãæ¿ãã«ãªã£ã¦ãããã¨ã«æ³¨ç®ãã¦ãã ãããããã§æãéè¦ãªè¿½å é
ç®ã¯ã "
"<literal>Event</literal> ã®ã³ã¬ã¯ã·ã§ã³ãããã³ã°ã® <literal>set</literal> è¦"
"ç´ ã«ãã <literal>inverse=\"true\"</literal> 屿§ã§ãã"
#. Tag: para
-#: tutorial.xml:911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
"<literal>Person</literal> class, when it needs to find out information about "
@@ -1995,19 +1287,17 @@
"see how the bi-directional link between our two entities is created."
msgstr ""
"ãã®æå®ã®æå³ã¯ã2ã¤ã®éã®ã¨ã³ãã£ãã£éã®ãªã³ã¯ã«ã¤ãã¦ã®æ
å ±ãæ¢ãå¿
è¦ãã"
-"ãã¨ãã Hibernateã¯å対å´ã®ã¨ã³ãã£ãã£ãã¤ã¾ã <literal>Person</literal> ã¯"
-"ã©ã¹ããæ¢ãã¨ãããã¨ã§ãã ä¸åº¦2ã¤ã®ã¨ã³ãã£ãã£éã®åæ¹åãªã³ã¯ãã©ã®ãã"
-"ã«ä½æããããããããã°ã ãããçè§£ãããã¨ã¯ã¨ã¦ãç°¡åã§ãã"
+"ãã¨ãã Hibernate ã¯å対å´ã®ã¨ã³ãã£ãã£ãã¤ã¾ã <literal>Person</literal> "
+"ã¯ã©ã¹ããæ¢ãã¨ãããã¨ã§ããä¸åº¦2ã¤ã®ã¨ã³ãã£ãã£éã®åæ¹åãªã³ã¯ãã©ã®ãã"
+"ã«ä½æããããããããã°ããããçè§£ãããã¨ã¯ã¨ã¦ãç°¡åã§ãã"
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
msgstr "åæ¹åãªã³ã¯ã®åä½"
#. Tag: para
-#: tutorial.xml:922
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
"How did we create a link between a <literal>Person</literal> and an "
@@ -2019,68 +1309,42 @@
"literal>. This process of \"setting the link on both sides\" is absolutely "
"necessary with bi-directional links."
msgstr ""
-"ã¾ããHibernateãé常ã®Javaã®ã»ãã³ãã£ã¯ã¹ã«å½±é¿ãåã¼ããªããã¨ãå¿ã«çãã¦"
-"ããã¦ãã ããã ç§ãã¡ã¯ãåæ¹åã®ä¾ã¨ãã¦ã©ã®ããã« <literal>Person</"
+"ã¾ãã Hibernate ãé常㮠Java ã®ã»ãã³ãã£ã¯ã¹ã«å½±é¿ãåã¼ããªããã¨ãå¿ã«ç"
+"ãã¦ããã¦ãã ãããç§ãã¡ã¯ãåæ¹åã®ä¾ã¨ãã¦ã©ã®ããã« <literal>Person</"
"literal> 㨠<literal>Event</literal> ã®éã®ãªã³ã¯ã使ããã§ããããï¼ "
"<literal>Person</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã®ã¤ãã³ãã¸ã®åç
§ã®ã³ã¬ã¯ã·ã§ã³ã« "
-"<literal>Event</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã追å ãã¾ããã ãã®ãããã®ãªã³ã¯ã"
-"åæ¹åã«ããããã°ã å½ããåã§ããå対å´ã«ãåããã¨ãããªããã°ãªãã¾ã"
-"ãã <literal>Event</literal> ã®ã³ã¬ã¯ã·ã§ã³ã« <literal>Person</literal> ã¸"
-"ã® åç
§ã追å ããã¨ãããã¨ã§ãã ãã®ã両å´ã§ãªã³ã¯ãè¨å®ãããã¨ãã¯çµ¶å¯¾ã«"
-"å¿
è¦ãªã®ã§ã決ãã¦å¿ããªãã§ãã ããã"
+"<literal>Event</literal> ã®ã¤ã³ã¹ã¿ã³ã¹ã追å ãã¾ããããã®ãããã®ãªã³ã¯ãå"
+"æ¹åã«ããããã°ãå½ããåã§ããå対å´ã«ãåããã¨ãããªããã°ãªãã¾ããã "
+"<literal>Event</literal> ã®ã³ã¬ã¯ã·ã§ã³ã« <literal>Person</literal> ã¸ã®åç
§"
+"ã追å ããã¨ãããã¨ã§ãããã®ã両å´ã§ãªã³ã¯ãè¨å®ãããã¨ãã¯çµ¶å¯¾ã«å¿
è¦ãªã®"
+"ã§ã決ãã¦å¿ããªãã§ãã ããã"
#. Tag: para
-#: tutorial.xml:932
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
"correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
-"å¤ãã®éçºè
ã¯æ
éã«ããã°ã©ã ããã®ã§ã ã¨ã³ãã£ãã£ã®ä¸¡å´ã«æ£ããé¢é£ãè¨å®"
-"ãããªã³ã¯ç®¡çã¡ã½ããã使ãã¾ãã ä¾ãã° <literal>Person</literal> ã§ã¯ä»¥"
-"ä¸ã®ããã«ãªãã¾ããï¼"
+"å¤ãã®éçºè
ã¯æ
éã«ããã°ã©ã ããã®ã§ãã¨ã³ãã£ãã£ã®ä¸¡å´ã«æ£ããé¢é£ãè¨å®"
+"ãããªã³ã¯ç®¡çã¡ã½ããã使ãã¾ããä¾ãã° <literal>Person</literal> ã§ã¯ä»¥ä¸"
+"ã®ããã«ãªãã¾ããï¼"
-#. Tag: programlisting
-#: tutorial.xml:937
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:939
-#, fuzzy, no-c-format
-msgid ""
"The get and set methods for the collection are now protected. This allows "
"classes in the same package and subclasses to still access the methods, but "
"prevents everybody else from altering the collections directly. Repeat the "
"steps for the collection on the other side."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã®ã²ããã¨ã»ããã¡ã½ãããç¾å¨protectedã«ãªã£ã¦ãããã¨ã«æ³¨æãã¦"
-"ãã ããã ããã¯åãããã±ã¼ã¸ã®ã¯ã©ã¹ããµãã¯ã©ã¹ã®ã¡ã½ããã¯ä¾ç¶ã¢ã¯ã»ã¹ã"
-"å¯è½ã§ããã ï¼ã»ã¨ãã©ï¼ãã®ããã±ã¼ã¸å¤ã®ã©ã®ã¯ã©ã¹ã§ãç´æ¥ãã®ã³ã¬ã¯ã·ã§ã³"
-"ãå°ç¡ãã«ãããã¨ãé²ãã¾ãã ããããå対å´ã®ã³ã¬ã¯ã·ã§ã³ã«ãåããã¨ããã"
-"æ¹ãããã§ãããã"
+"ã³ã¬ã¯ã·ã§ã³ã®ã²ããã¨ã»ããã¡ã½ãããç¾å¨ protected ã«ãªã£ã¦ãããã¨ã«æ³¨æã"
+"ã¦ãã ãããããã¯åãããã±ã¼ã¸ã®ã¯ã©ã¹ããµãã¯ã©ã¹ã®ã¡ã½ããã¯ä¾ç¶ã¢ã¯ã»ã¹"
+"ãå¯è½ã§ããã ï¼ã»ã¨ãã©ï¼ ãã®ããã±ã¼ã¸å¤ã®ã©ã®ã¯ã©ã¹ã§ãç´æ¥ãã®ã³ã¬ã¯"
+"ã·ã§ã³ãå°ç¡ãã«ãããã¨ãé²ãã¾ããããããå対å´ã®ã³ã¬ã¯ã·ã§ã³ã«ãåããã¨"
+"ãããæ¹ãããã§ãããã"
#. Tag: para
-#: tutorial.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
"for Java, a bi-directional link is simply a matter of setting the references "
@@ -2095,28 +1359,26 @@
"as <literal>inverse</literal>. In a one-to-many association it has to be the "
"many-side, and in many-to-many association you can select either side."
msgstr ""
-"<literal>inverse</literal> ãããã³ã°å±æ§ã¨ã¯ãã£ããä½ã§ããããï¼ éçºè
ã¨"
-"Javaã«ã¨ã£ã¦ã¯ãåæ¹åãªã³ã¯ã¯åã«ä¸¡å´ã®åç
§ãæ£ããè¨å®ããã¨ãããã¨ã§ãã "
-"ãããHibernateã¯ï¼å¶ç´éåãé¿ããããã«ï¼SQLã® <literal>INSERT</literal> "
-"㨠<literal>UPDATE</literal> æãæ£ç¢ºã«å¤æ´ããããã®ååãªæ
å ±ãæã£ã¦ããªã"
-"ã®ã§ã åæ¹åé¢é£ããããã£ãæ±ãããã®ä½ããã®å©ããå¿
è¦ã¨ãã¾ãã é¢é£ã®ç"
-"å´ã <literal>inverse</literal> ã«è¨å®ãããã¨ã§ãHibernateã¯åºæ¬çã«ã¯è¨å®ã"
-"ãå´ãç¡è¦ãã å対å´ã® <emphasis>é¡</emphasis> ã¨ãã¦èãã¾ãã ããã ãã§ã"
-"Hibernateã¯æ¹åãæã¤ããã²ã¼ã·ã§ã³ã¢ãã«ãSQLãã¼ã¿ãã¼ã¹ã¹ãã¼ãã¸å¤æãã"
-"ã¨ãã® ãã¹ã¦ã®åé¡ã«ãã¾ã対å¦ã§ãã¾ãã è¦ãã¦ãããªããã°ãªããªãã«ã¼ã«ã¯"
-"ç°¡åã§ãã åæ¹åé¢é£ã¯å¿
ãçå´ã <literal>inverse</literal> ã«ããå¿
è¦ããã"
-"ã¨ãããã¨ã§ãã ä¸å¯¾å¤é¢é£ã§ã¯ããã¯å¤å´ã§ãªããã°ãªãã¾ããã å¤å¯¾å¤é¢é£ã§"
-"ã¯ã©ã¡ãå´ã§ãæ§ãã¾ãããã©ã¡ãã§ãéãã¯ããã¾ããã"
+"<literal>inverse</literal> ãããã³ã°å±æ§ã¨ã¯ãã£ããä½ã§ããããï¼éçºè
㨠"
+"Java ã«ã¨ã£ã¦ã¯ãåæ¹åãªã³ã¯ã¯åã«ä¸¡å´ã®åç
§ãæ£ããè¨å®ããã¨ãããã¨ã§ãã"
+"ããã Hibernate ã¯ï¼å¶ç´éåãé¿ããããã«ï¼ SQL ã® <literal>INSERT</"
+"literal> 㨠<literal>UPDATE</literal> æãæ£ç¢ºã«å¤æ´ããããã®ååãªæ
å ±ã"
+"æã£ã¦ããªãã®ã§ãåæ¹åé¢é£ããããã£ãæ±ãããã®ä½ããã®å©ããå¿
è¦ã¨ãã¾"
+"ããé¢é£ã®çå´ã <literal>inverse</literal> ã«è¨å®ãããã¨ã§ã Hibernate ã¯åº"
+"æ¬çã«ã¯è¨å®ããå´ãç¡è¦ããå対å´ã® <emphasis>é¡</emphasis> ã¨ãã¦èãã¾ãã"
+"ããã ãã§ã Hibernate ã¯æ¹åãæã¤ããã²ã¼ã·ã§ã³ã¢ãã«ã SQL ãã¼ã¿ãã¼ã¹ã¹"
+"ãã¼ãã¸å¤æããã¨ãã®ãã¹ã¦ã®åé¡ã«ãã¾ã対å¦ã§ãã¾ããè¦ãã¦ãããªããã°ãª"
+"ããªãã«ã¼ã«ã¯ç°¡åã§ããåæ¹åé¢é£ã¯å¿
ãçå´ã <literal>inverse</literal> ã«"
+"ããå¿
è¦ãããã¨ãããã¨ã§ããä¸å¯¾å¤é¢é£ã§ã¯ããã¯å¤å´ã§ãªããã°ãªãã¾ããã"
+"å¤å¯¾å¤é¢é£ã§ã¯ã©ã¡ãå´ã§ãæ§ãã¾ãããã©ã¡ãã§ãéãã¯ããã¾ããã"
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
-msgstr "ãã¼ã3 - EventManager Webã¢ããªã±ã¼ã·ã§ã³"
+msgstr "ãã¼ã3 - EventManager Web ã¢ããªã±ã¼ã·ã§ã³"
#. Tag: para
-#: tutorial.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
"<literal>Transaction</literal> almost like a standalone application. "
@@ -2124,76 +1386,29 @@
"<literal>EventManagerServlet</literal>. This servlet can list all events "
"stored in the database, and it provides an HTML form to enter new events."
msgstr ""
-"Hibernateã®Webã¢ããªã±ã¼ã·ã§ã³ã¯ãã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ã®ããã« "
-"<literal>Session</literal> 㨠<literal>Transaction</literal> ã使ç¨ãã¾ãã "
-"ãããããã¤ãã®ä¸è¬çãªãã¿ã¼ã³ãå½¹ç«ã¡ã¾ãã ããã§ "
-"<literal>EventManagerServlet</literal> ã使ãã¾ãããã®ãµã¼ãã¬ããã¯ã "
-"ãã¼ã¿ãã¼ã¹ã«æ ¼ç´ããå
¨ã¦ã®ã¤ãã³ãããªã¹ãã«ã§ããããã«HTMLãã©ã¼ã ããæ°"
-"ããã¤ãã³ããå
¥åã§ãããã®ã§ãã"
+"Hibernate ã® Web ã¢ããªã±ã¼ã·ã§ã³ã¯ãã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ã®ãã"
+"ã« <literal>Session</literal> 㨠<literal>Transaction</literal> ã使ç¨ãã¾"
+"ãããããããã¤ãã®ä¸è¬çãªãã¿ã¼ã³ãå½¹ç«ã¡ã¾ããããã§ "
+"<literal>EventManagerServlet</literal> ã使ãã¾ãããã®ãµã¼ãã¬ããã¯ããã¼"
+"ã¿ãã¼ã¹ã«æ ¼ç´ããå
¨ã¦ã®ã¤ãã³ãããªã¹ãã«ã§ããããã« HTML ãã©ã¼ã ããæ°ã"
+"ãã¤ãã³ããå
¥åã§ãããã®ã§ãã"
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
-msgstr "åºæ¬çãªServletã®è¨è¿°"
+msgstr "åºæ¬ç㪠Servlet ã®è¨è¿°"
#. Tag: para
-#: tutorial.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
"handles HTTP <literal>GET</literal> requests, we will only implement the "
"<literal>doGet()</literal> method:"
msgstr ""
-"Servletã¯HTTPã® <literal>GET</literal> ãªã¯ã¨ã¹ãã®ã¿ãå¦çããã®ã§ã "
+"Servlet 㯠HTTP ã® <literal>GET</literal> ãªã¯ã¨ã¹ãã®ã¿ãå¦çããã®ã§ã "
"<literal>doGet()</literal> ãå®è£
ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
@@ -2201,8 +1416,7 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
"When a request hits the servlet, a new Hibernate <literal>Session</literal> "
@@ -2211,16 +1425,15 @@
"started. All data access occurs inside a transaction irrespective of whether "
"the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
-"ãã㯠<emphasis>session-per-request</emphasis> ã¨ãããã¿ã¼ã³ã§ãã Servlet"
+"ãã㯠<emphasis>session-per-request</emphasis> ã¨ãããã¿ã¼ã³ã§ãã Servlet "
"ããªã¯ã¨ã¹ããåãåãã¨ã <literal>SessionFactory</literal> ã® "
-"<literal>getCurrentSession()</literal> ã®æåã®å¼ã³åºãã§ã Hibernateã®æ°ã"
-"ã <literal>Session</literal> ãéããã¾ãã ãã®ã¨ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯"
-"ã·ã§ã³ãéå§ããã¾ãã ãã¼ã¿ã®èªã¿æ¸ãã«é¢ãããããã¹ã¦ã®ãã¼ã¿ã¢ã¯ã»ã¹ã¯ã"
-"ã©ã³ã¶ã¯ã·ã§ã³å
ã§è¡ãã¾ãã ï¼ã¢ããªã±ã¼ã·ã§ã³å
ã§ã¯ãªã¼ãã³ãããã¢ã¼ãã使"
-"ç¨ãã¾ããï¼ã"
+"<literal>getCurrentSession()</literal> ã®æåã®å¼ã³åºãã§ã Hibernate ã®æ°ã"
+"ã <literal>Session</literal> ãéããã¾ãããã®ã¨ããã¼ã¿ãã¼ã¹ãã©ã³ã¶ã¯"
+"ã·ã§ã³ãéå§ããã¾ãããã¼ã¿ã®èªã¿æ¸ãã«é¢ãããããã¹ã¦ã®ãã¼ã¿ã¢ã¯ã»ã¹ã¯ã"
+"ã©ã³ã¶ã¯ã·ã§ã³å
ã§è¡ãã¾ãï¼ã¢ããªã±ã¼ã·ã§ã³å
ã§ã¯ãªã¼ãã³ãããã¢ã¼ãã使ç¨"
+"ãã¾ããï¼ã"
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2228,24 +1441,23 @@
"that is scoped to the whole request. Use <literal>getCurrentSession()</"
"literal>, so that it is automatically bound to the current Java thread."
msgstr ""
-"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
-"for every database operation. Use one Hibernate <literal>Session</literal> "
-"that is scoped to the whole request. Use <literal>getCurrentSession()</"
-"literal>, so that it is automatically bound to the current Java thread."
+"å
¨ã¦ã®ãã¼ã¿ãã¼ã¹ãªãã¬ã¼ã·ã§ã³ã§æ°ãã Hibernate <literal>Session</"
+"literal> ãä½¿ç¨ <emphasis>ããªãã§ãã ãã</emphasis> ãå
¨ã¦ã®ãªã¯ã¨ã¹ãã§æ©"
+"è½ãããï¼ã¤ã® Hibernate <literal>Session</literal> ã使ç¨ãã¦ãã ãããèªå"
+"çã«ç¾å¨ã® Java ã¹ã¬ããã«ãã¤ã³ããããã®ã§ã <literal>getCurrentSession()</"
+"literal> ã使ç¨ãã¦ãã ããã"
#. Tag: para
-#: tutorial.xml:1003
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
"HTML is rendered. We will get to that part soon."
msgstr ""
-"次ã«ããªã¯ã¨ã¹ãã®ã¢ã¯ã·ã§ã³ã¯å¦çãããã¬ã¹ãã³ã¹ã§ããHTMLãæç»ããã¾ãã "
-"ããã«ã¤ãã¦ã¯ããã«èª¬æãã¾ãã"
+"次ã«ããªã¯ã¨ã¹ãã®ã¢ã¯ã·ã§ã³ã¯å¦çãããã¬ã¹ãã³ã¹ã§ãã HTML ãæç»ããã¾"
+"ããããã«ã¤ãã¦ã¯ããã«èª¬æãã¾ãã"
#. Tag: para
-#: tutorial.xml:1008
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
"If any problems occurred during processing or rendering, an exception will "
@@ -2256,69 +1468,31 @@
"called <emphasis>Open Session in View</emphasis>. You will need it as soon "
"as you consider rendering your view in JSP, not in a servlet."
msgstr ""
-"æå¾ã«ãªã¯ã¨ã¹ãã®å¦çã¨HTMLæç»ãå®äºããã¨ãã«ã使¥åä½(Unit of Work)ãçµ"
-"äºãã¾ãã ããå¦çãæç»ä¸ã«åé¡ãçºçããå ´åãexceptionãæãããã¦ãã¼ã¿"
-"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯ãã¾ãã ããã§ <literal>session-per-"
-"request</literal> ãã¿ã¼ã³ãå®äºãã¾ãã å
¨ã¦ã®ãµã¼ãã¬ããã«ãã©ã³ã¶ã¯ã·ã§ã³"
+"æå¾ã«ãªã¯ã¨ã¹ãã®å¦ç㨠HTML æç»ãå®äºããã¨ãã«ã使¥åä½ (Unit of Work) "
+"ãçµäºãã¾ããããå¦çãæç»ä¸ã«åé¡ãçºçããå ´åãä¾å¤ãéåºããã¦ã¦ãã¼ã¿"
+"ãã¼ã¹ãã©ã³ã¶ã¯ã·ã§ã³ããã¼ã«ããã¯ãã¾ããããã§ <literal>session-per-"
+"request</literal> ãã¿ã¼ã³ãå®äºãã¾ããå
¨ã¦ã®ãµã¼ãã¬ããã«ãã©ã³ã¶ã¯ã·ã§ã³"
"å¢çã®ã³ã¼ããæ¸ã代ããã«ããµã¼ãã¬ãããã£ã«ã¿ã«è¨è¿°ãããã¨ãå¯è½ã§ãã "
"<emphasis>Open Session in View</emphasis> ã¨å¼ã°ãããã®ãã¿ã¼ã³ã«ã¤ãã¦ã¯ã "
-"Hibernateã®Webãµã¤ããWikiãåç
§ãã¦ãã ããã ãµã¼ãã¬ããã§ã¯ãªãJSPã§HTML"
-"æç»ããããã¨ããã¨ãããã«ãã®ãã¿ã¼ã³ã«ã¤ãã¦ã®æ
å ±ãå¿
è¦ã«ãªãã§ãããã"
+"Hibernate ã® Web ãµã¤ãã Wiki ãåç
§ãã¦ãã ããããµã¼ãã¬ããã§ã¯ãªã JSP "
+"ã§ HTML æç»ããããã¨ããã¨ãããã«ãã®ãã¿ã¼ã³ã«ã¤ãã¦ã®æ
å ±ãå¿
è¦ã«ãªãã§"
+"ãããã"
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
msgstr "å¦çã¨æç»"
#. Tag: para
-#: tutorial.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
msgstr "ã§ã¯ããªã¯ã¨ã¹ãã®å¦çã¨ãã¼ã¸ã®æç»ãå®è£
ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:1028
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1030
-#, fuzzy, no-c-format
-msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
"complex application—keep in mind that we are only illustrating basic "
"Hibernate concepts in this tutorial. The code prints an HTML header and a "
@@ -2326,72 +1500,23 @@
"events in the database are printed. The first method is trivial and only "
"outputs HTML:"
msgstr ""
-"Javaã¨HTMLãæ··å¨ããã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ã¯ãããè¤éãªã¢ããªã±ã¼ã·ã§ã³ã«ã¯é©"
-"ãã¦ããªãã§ããã ï¼ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ãåºæ¬çãªHibernateã®ã³ã³ã»ããã"
-"示ãã¦ããã ãã§ãããã¨ãè¦ãã¦ããã¦ãã ããï¼ã ãã®ã³ã¼ãã¯HTMLã®ãããã¼"
-"ã¨ããã¿ã¼ã®è¨è¿°ã§ãã ãã®ãã¼ã¸ã«ã¯ãã¤ãã³ããå
¥åããHTMLãã©ã¼ã ã¨ããã¼"
-"ã¿ãã¼ã¹ã«ããå
¨ã¦ã®ã¤ãã³ãã®ãªã¹ãã表示ããã¾ãã æåã®ã¡ã½ããã¯ããåç´"
-"ãªHTMLåºåã§ãã"
+"Java 㨠HTML ãæ··å¨ããã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ã¯ãããè¤éãªã¢ããªã±ã¼ã·ã§ã³ã«ã¯"
+"é©ãã¦ããªãã§ããã ï¼ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ãåºæ¬ç㪠Hibernate ã®ã³ã³ã»ã"
+"ãã示ãã¦ããã ãã§ãããã¨ãè¦ãã¦ããã¦ãã ããï¼ããã®ã³ã¼ã㯠HTML ã®"
+"ãããã¼ã¨ããã¿ã¼ã®è¨è¿°ã§ãããã®ãã¼ã¸ã«ã¯ãã¤ãã³ããå
¥åãã HTML ãã©ã¼"
+"ã ã¨ããã¼ã¿ãã¼ã¹ã«ããå
¨ã¦ã®ã¤ãã³ãã®ãªã¹ãã表示ããã¾ããæåã®ã¡ã½ãã"
+"ã¯ããåç´ãª HTML åºåã§ãã"
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
"<literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
"<literal>listEvents()</literal> ã¡ã½ããã¯ãç¾å¨ã®ã¹ã¬ããã«çµã³ã¤ã "
-"Hibernateã® <literal>Session</literal> ã使ç¨ãã¦ãã¯ã¨ãªãå®è¡ãã¾ãã"
+"Hibernate ã® <literal>Session</literal> ã使ç¨ãã¦ãã¯ã¨ãªãå®è¡ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
@@ -2399,28 +1524,12 @@
"<literal>Session</literal> of the current thread:"
msgstr ""
"æå¾ã«ã <literal>store</literal> ã¢ã¯ã·ã§ã³ã <literal>createAndStoreEvent()"
-"</literal> ã¡ã½ããã å¼ã³åºãã¾ãããã®ã¡ã½ããã§ãç¾å¨ã®ã¹ã¬ããã® "
+"</literal> ã¡ã½ãããå¼ã³åºãã¾ãããã®ã¡ã½ããã§ãç¾å¨ã®ã¹ã¬ããã® "
"<literal>Session</literal> ãå©ç¨ãã¾ãã"
-#. Tag: programlisting
-#: tutorial.xml:1055
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1057
-#, fuzzy, no-c-format
-msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
"single <literal>Session</literal> and <literal>Transaction</literal>. As "
"earlier in the standalone application, Hibernate can automatically bind "
@@ -2430,24 +1539,22 @@
"data access code into data access objects (the DAO pattern). See the "
"Hibernate Wiki for more examples."
msgstr ""
-"ããã§ãµã¼ãã¬ããã®å®æã§ãã ãµã¼ãã¬ããã¸ã®ãªã¯ã¨ã¹ãã¯ãä¸ã¤ã® "
+"ããã§ãµã¼ãã¬ããã®å®æã§ãããµã¼ãã¬ããã¸ã®ãªã¯ã¨ã¹ãã¯ã1ã¤ã® "
"<literal>Session</literal> 㨠<literal>Transaction</literal> ã§å¦çãããã§"
-"ãããã æåã®ã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ã®ããã«ã Hibernateã¯èªåç"
-"ã«ãããã®ãªãã¸ã§ã¯ããå®è¡ããã¹ã¬ããã«çµã³ä»ãããã¨ãã§ãã¾ãã ããã«ã"
-"ããéçºè
ãèªç±ã«ã³ã¼ããã¬ã¤ã¤ã¼åãã§ãã 好ããªæ¹æ³ã§ "
-"<literal>SessionFactory</literal> ã¸ã®ã¢ã¯ã»ã¹ãã§ããããã«ãªãã¾ãã é常ã"
-"éçºè
ã¯ããæ´ç·´ããããã¶ã¤ã³ã使ç¨ãã¦ããã¼ã¿ã¢ã¯ã»ã¹ã®ã³ã¼ãã ãã¼ã¿ã¢ã¯"
-"ã»ã¹ãªãã¸ã§ã¯ãã«ç§»åããã§ãããï¼DAOãã¿ã¼ã³ï¼ã ããå¤ãã®ä¾ã¯ãHibernate"
-"ã®Wikiãåç
§ãã¦ãã ããã"
+"ããããæåã®ã¹ã¿ã³ãã¢ãã¼ã³ã®ã¢ããªã±ã¼ã·ã§ã³ã®ããã«ã Hibernate ã¯èªåç"
+"ã«ãããã®ãªãã¸ã§ã¯ããå®è¡ããã¹ã¬ããã«çµã³ä»ãããã¨ãã§ãã¾ããããã«ã"
+"ããéçºè
ãèªç±ã«ã³ã¼ããã¬ã¤ã¤ã¼åãã§ãã好ããªæ¹æ³ã§ "
+"<literal>SessionFactory</literal> ã¸ã®ã¢ã¯ã»ã¹ãã§ããããã«ãªãã¾ããé常ã"
+"éçºè
ã¯ããæ´ç·´ããããã¶ã¤ã³ã使ç¨ãã¦ããã¼ã¿ã¢ã¯ã»ã¹ã®ã³ã¼ãããã¼ã¿ã¢ã¯"
+"ã»ã¹ãªãã¸ã§ã¯ãã«ç§»åããã§ãããï¼DAOãã¿ã¼ã³ï¼ãããå¤ãã®ä¾ã¯ã "
+"Hibernate ã® Wiki ãåç
§ãã¦ãã ããã"
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
msgstr "ãããã¤ã¨ãã¹ã"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
@@ -2455,56 +1562,29 @@
"web.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1079
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1081
-#, fuzzy, no-c-format
-msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
"directory and copy the <filename>hibernate-tutorial.war</filename> file into "
"your Tomcat <filename>webapps</filename> directory."
msgstr ""
-"ãã«ãã¨ãããã¤ã®ããã«ãããã¸ã§ã¯ããã£ã¬ã¯ããªã§ <literal>ant war</"
-"literal> ãå¼ã³åºãã <literal>hibernate-tutorial.war</literal> ãã¡ã¤ã«ã"
-"Tomcatã® <literal>webapp</literal> ãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ããã ã¾ã "
-"Tomcatãã¤ã³ã¹ãã¼ã«ãã¦ããªããã°ããã¦ã³ãã¼ããã¦ã以ä¸ã®ã¤ã³ã¹ãã¼ã«ã¬ã¤"
-"ãã«å¾ã£ã¦ãã ããã ãããããã®ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ããããã«ãTomcat"
-"ã®è¨å®ã夿´ããå¿
è¦ã¯ããã¾ããã"
+"ãã«ãã¨ãããã¤ã®ããã«ãããã¸ã§ã¯ããã£ã¬ã¯ããªã§ <literal>mvn package</"
+"literal> ãå¼ã³åºãã <literal>hibernate-tutorial.war</literal> ãã¡ã¤ã«ã "
+"Tomcat ã® <literal>webapp</literal> ãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ããã"
#. Tag: para
-#: tutorial.xml:1088
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
+"ã¾ã Tomcat ãã¤ã³ã¹ãã¼ã«ãã¦ããªããã°ããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ã¬ã¤"
+"ãã«å¾ã£ã¦ãã ããããããããã®ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ããããã«ã "
+"Tomcat ã®è¨å®ã夿´ããå¿
è¦ã¯ããã¾ããã"
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -2514,415 +1594,1202 @@
"<literal>HibernateUtil</literal> is called) and to get the detailed output "
"if any exceptions occurs."
msgstr ""
-"ä¸åº¦ãããã¤ãã¦Tomcatãèµ·åããã°ã <literal>http://localhost:8080/"
-"hibernate-tutorial/eventmanager</literal> ã§ ã¢ããªã±ã¼ã·ã§ã³ã¸ã®ã¢ã¯ã»ã¹ãå¯"
-"è½ã§ãã æåã®ãªã¯ã¨ã¹ãã使ãããµã¼ãã¬ããã«æ¸¡ã£ãã¨ãã«ãTomcatã®ãã°"
-"ã§ Hibernateã®åæåå¦çã確èªãã¦ãã ãã ï¼ <literal>HibernateUtil</"
-"literal> å
ã®éçåæåãããã¯ãå¼ã°ãã¦ãã¾ãï¼ã ã¾ããexceptionãçºçãã"
-"ãªã詳細ã確èªãã¦ãã ããã"
+"ä¸åº¦ãããã¤ã㦠Tomcat ãèµ·åããã°ã <literal>http://localhost:8080/"
+"hibernate-tutorial/eventmanager</literal> ã§ã¢ããªã±ã¼ã·ã§ã³ã¸ã®ã¢ã¯ã»ã¹ãå¯"
+"è½ã§ããæåã®ãªã¯ã¨ã¹ãã使ãããµã¼ãã¬ããã«æ¸¡ã£ãã¨ãã«ã Tomcat ã®ãã°"
+"ã§ Hibernate ã®åæåå¦çã確èªãã¦ãã ãã ï¼ <literal>HibernateUtil</"
+"literal> å
ã®éçåæåãããã¯ãå¼ã°ãã¦ãã¾ãï¼ãã¾ããä¾å¤ãçºçãããªã詳"
+"ç´°ã確èªãã¦ãã ããã"
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr "è¦ç´"
#. Tag: para
-#: tutorial.xml:1111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
"application and a small web application. More tutorials are available from "
"the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
-"ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ãç°¡åãªã¹ã¿ã³ãã¢ãã¼ã³ã®Hibernateã¢ããªã±ã¼ã·ã§ã³ã¨ "
-"å°è¦æ¨¡ã®Webã¢ããªã±ã¼ã·ã§ã³ãæ¸ãããã®åºæ¬ãç´¹ä»ãã¾ããã"
+"ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ãç°¡åãªã¹ã¿ã³ãã¢ãã¼ã³ã® Hibernate ã¢ããªã±ã¼ã·ã§ã³ã¨"
+"å°è¦æ¨¡ã® Web ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãããã®åºæ¬ãç´¹ä»ãã¾ããã"
-#~ msgid "Introduction to Hibernate"
-#~ msgstr "Hibernateã®å°å
¥"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.tutorial.domain;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Event {\n"
+#~ " private Long id;\n"
+#~ "\n"
+#~ " private String title;\n"
+#~ " private Date date;\n"
+#~ "\n"
+#~ " public Event() {}\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id = id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Date getDate() {\n"
+#~ " return date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setDate(Date date) {\n"
+#~ " this.date = date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getTitle() {\n"
+#~ " return title;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setTitle(String title) {\n"
+#~ " this.title = title;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package events;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Event {\n"
+#~ " private Long id;\n"
+#~ "\n"
+#~ " private String title;\n"
+#~ " private Date date;\n"
+#~ "\n"
+#~ " public Event() {}\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id = id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Date getDate() {\n"
+#~ " return date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setDate(Date date) {\n"
+#~ " this.date = date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getTitle() {\n"
+#~ " return title;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setTitle(String title) {\n"
+#~ " this.title = title;\n"
+#~ " }\n"
+#~ "}"
-#~ msgid "Preface"
-#~ msgstr "忏ã"
-
+#, fuzzy
#~ msgid ""
-#~ "This chapter is an introductory tutorial for new users of Hibernate. We "
-#~ "start with a simple command line application using an in-memory database "
-#~ "and develop it in easy to understand steps."
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "[...]\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "ãã®ç« ã¯Hibernateãåãã¦ä½¿ãã¦ã¼ã¶åãã®å
¥éçãªãã¥ã¼ããªã¢ã«ã§ãã ã¤ã³"
-#~ "ã¡ã¢ãªãã¼ã¿ãã¼ã¹ã使ãç°¡åãªã³ãã³ãã©ã¤ã³ã¢ããªã±ã¼ã·ã§ã³ããå§ãã ä¸"
-#~ "æ©ä¸æ©ããããããããæ¹ã§éçºãé²ãã¾ãã"
+#~ "<?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"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping>\n"
+#~ "[...]\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "This tutorial is intended for new users of Hibernate but requires Java "
-#~ "and SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-"
-#~ "party libraries we name are for JDK 1.4 and 5.0. You might need others "
-#~ "for JDK 1.3."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "ãã®ãã¥ã¼ããªã¢ã«ã¯Hibernateãåãã¦ä½¿ãã¦ã¼ã¶ãæ³å®ãã¦ãã¾ããã çè§£ã"
-#~ "ãã«ã¯Javaã¨SQLã«ã¤ãã¦ã®ç¥èãå¿
è¦ã§ãã ããã¯Michael Gloeglã®æã«ãã"
-#~ "ãã¥ã¼ããªã¢ã«ã䏿·ãã«ãã¦ãã¾ããã ããã§ãµã¼ããã¼ãã£ã©ã¤ãã©ãªã¨"
-#~ "è¨ã£ã¦ããã®ã¯ãJDK 1.4ã¨5.0ç¨ã®ãã®ã§ãã JDK 1.3ãå©ç¨ããã®ã§ããã°ä»ã®"
-#~ "ã©ã¤ãã©ãªãå¿
è¦ããããã¾ããã"
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"events.Event\" table=\"EVENTS\">\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "The source code for the tutorial is included in the distribution in the "
-#~ "<literal>doc/reference/tutorial/</literal> directory."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "ãã¥ã¼ããªã¢ã«ã®ã½ã¼ã¹ã³ã¼ãã¯Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ã® "
-#~ "<literal>doc/reference/tutorial/</literal> ã«ããã¾ãã"
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"events.Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "First, we'll create a simple console-based Hibernate application. We use "
-#~ "an Java database (HSQL DB), so we do not have to install any database "
-#~ "server."
+#~ "<![CDATA[\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/"
+#~ ">\n"
+#~ " <property name=\"title\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "æåã«ã³ã³ã½ã¼ã«ãã¼ã¹ã®ç°¡åãªHibernateã¢ããªã±ã¼ã·ã§ã³ã使ãã¾ãã Java"
-#~ "ãã¼ã¿ãã¼ã¹ï¼HSQL DBï¼ãå©ç¨ããã®ã§ã ãã¼ã¿ãã¼ã¹ãµã¼ããã¤ã³ã¹ãã¼ã«ã"
-#~ "ãå¿
è¦ã¯ããã¾ããã"
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"events.Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE"
+#~ "\"/>\n"
+#~ " <property name=\"title\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "The first thing we do, is set up our development directory and put all "
-#~ "the Java libraries we need into it. Download the Hibernate distribution "
-#~ "from the Hibernate website. Extract the package and place all required "
-#~ "libraries found in <literal>/lib</literal> into into the <literal>/lib</"
-#~ "literal> directory of your new development working directory. It should "
-#~ "look like this:"
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <session-factory>\n"
+#~ "\n"
+#~ " <!-- Database connection settings -->\n"
+#~ " <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
+#~ "property>\n"
+#~ " <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
+#~ "property>\n"
+#~ " <property name=\"connection.username\">sa</property>\n"
+#~ " <property name=\"connection.password\"></property>\n"
+#~ "\n"
+#~ " <!-- JDBC connection pool (use the built-in) -->\n"
+#~ " <property name=\"connection.pool_size\">1</property>\n"
+#~ "\n"
+#~ " <!-- SQL dialect -->\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Enable Hibernate's automatic session context management -->\n"
+#~ " <property name=\"current_session_context_class\">thread</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Disable the second-level cache -->\n"
+#~ " <property name=\"cache.provider_class\">org.hibernate.cache."
+#~ "NoCacheProvider</property>\n"
+#~ "\n"
+#~ " <!-- Echo all executed SQL to stdout -->\n"
+#~ " <property name=\"show_sql\">true</property>\n"
+#~ "\n"
+#~ " <!-- Drop and re-create the database schema on startup -->\n"
+#~ " <property name=\"hbm2ddl.auto\">update</property>\n"
+#~ "\n"
+#~ " <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/"
+#~ ">\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
#~ msgstr ""
-#~ "ã¾ãæåã«ãããã¨ã¯éçºç¨ã®ãã£ã¬ã¯ããªãã»ããã¢ãããã¦ã å¿
è¦ã¨ãªãã"
-#~ "ã¹ã¦ã®Javaã©ã¤ãã©ãªãé
ç½®ãããã¨ã§ãã Hibernateã¦ã§ããµã¤ããã"
-#~ "Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ããã¦ã³ãã¼ããã¦ãã ããã ãã¡ã¤ã«ãè§£å"
-#~ "ã㦠<literal>/lib</literal> ã«ããå¿
è¦ãªã©ã¤ãã©ãªã®ãã¹ã¦ãã æ°ããéçº"
-#~ "ç¨ãã£ã¬ã¯ããªã® <literal>/lib</literal> ãã£ã¬ã¯ããªã«é
ç½®ãã¦ãã ããã "
-#~ "ãã®ããã«ãªã£ã¦ããã¯ãã§ãï¼"
+#~ "<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <session-factory>\n"
+#~ "\n"
+#~ " <!-- Database connection settings -->\n"
+#~ " <property name=\"connection.driver_class\">org.hsqldb."
+#~ "jdbcDriver</property>\n"
+#~ " <property name=\"connection.url\">jdbc:hsqldb:hsql://"
+#~ "localhost</property>\n"
+#~ " <property name=\"connection.username\">sa</property>\n"
+#~ " <property name=\"connection.password\"></property>\n"
+#~ "\n"
+#~ " <!-- JDBC connection pool (use the built-in) -->\n"
+#~ " <property name=\"connection.pool_size\">1</property>\n"
+#~ "\n"
+#~ " <!-- SQL dialect -->\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect."
+#~ "HSQLDialect</property>\n"
+#~ "\n"
+#~ " <!-- Enable Hibernate's automatic session context management --"
+#~ ">\n"
+#~ " <property name=\"current_session_context_class\">thread</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Disable the second-level cache -->\n"
+#~ " <property name=\"cache.provider_class\">org.hibernate.cache."
+#~ "NoCacheProvider</property>\n"
+#~ "\n"
+#~ " <!-- Echo all executed SQL to stdout -->\n"
+#~ " <property name=\"show_sql\">true</property>\n"
+#~ "\n"
+#~ " <!-- Drop and re-create the database schema on startup -->\n"
+#~ " <property name=\"hbm2ddl.auto\">create</property>\n"
+#~ "\n"
+#~ " <mapping resource=\"events/Event.hbm.xml\"/>\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>"
+#, fuzzy
#~ msgid ""
-#~ "This is the minimum set of required libraries (note that we also copied "
-#~ "hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of "
-#~ "writing</emphasis>. The Hibernate release you are using might require "
-#~ "more or less libraries. See the <literal>README.txt</literal> file in the "
-#~ "<literal>lib/</literal> directory of the Hibernate distribution for more "
-#~ "information about required and optional third-party libraries. (Actually, "
-#~ "Log4j is not required but preferred by many developers.)"
+#~ "<![CDATA[package org.hibernate.tutorial.util;\n"
+#~ "\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "\n"
+#~ "public class HibernateUtil {\n"
+#~ "\n"
+#~ " private static final SessionFactory sessionFactory = "
+#~ "buildSessionFactory();\n"
+#~ "\n"
+#~ " private static SessionFactory buildSessionFactory() {\n"
+#~ " try {\n"
+#~ " // Create the SessionFactory from hibernate.cfg.xml\n"
+#~ " return new Configuration().configure().buildSessionFactory"
+#~ "();\n"
+#~ " }\n"
+#~ " catch (Throwable ex) {\n"
+#~ " // Make sure you log the exception, as it might be swallowed\n"
+#~ " System.err.println(\"Initial SessionFactory creation failed."
+#~ "\" + ex);\n"
+#~ " throw new ExceptionInInitializerError(ex);\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " public static SessionFactory getSessionFactory() {\n"
+#~ " return sessionFactory;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ããã <emphasis>æ¬ããã¥ã¡ã³ãå·çæç¹ã§ã®</emphasis> Hibernateã®å¿
è¦æä½"
-#~ "éã®ã©ã¤ãã©ãªã§ã ï¼ã¡ã¤ã³ã¢ã¼ã«ã¤ãã®hibernate3.jarãã³ãã¼ãã¦ãããã¨"
-#~ "ã«æ³¨æãã¦ãã ããï¼ã Hibernateã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ããã«å¿
è¦ãªã©ã¤ãã©"
-#~ "ãªããä¸è¦ãªã©ã¤ãã©ãªãããããããã¾ããã Hibernateãã£ã¹ããªãã¥ã¼ã·ã§"
-#~ "ã³ã® <literal>lib/</literal> ãã£ã¬ã¯ããªã«ãã <literal>README.txt</"
-#~ "literal> ãã¡ã¤ã«ãè¦ã¦ãã ããã å¿
é ã¾ãã¯ãªãã·ã§ã³ã®ãµã¼ããã¼ãã£ã©ã¤"
-#~ "ãã©ãªã«ã¤ãã¦ã®æ
å ±ãè¼ãã¦ãã¾ã ï¼å®éLog4jã¯å¿
é ã§ã¯ããã¾ããããå¤ã"
-#~ "ã®éçºè
ã好ãã§ãã¾ãï¼ã"
+#~ "package util;\n"
+#~ "\n"
+#~ "import org.hibernate.*;\n"
+#~ "import org.hibernate.cfg.*;\n"
+#~ "\n"
+#~ "public class HibernateUtil {\n"
+#~ "\n"
+#~ " private static final SessionFactory sessionFactory;\n"
+#~ "\n"
+#~ " static {\n"
+#~ " try {\n"
+#~ " // Create the SessionFactory from hibernate.cfg.xml\n"
+#~ " sessionFactory = new Configuration().configure()."
+#~ "buildSessionFactory();\n"
+#~ " } catch (Throwable ex) {\n"
+#~ " // Make sure you log the exception, as it might be swallowed\n"
+#~ " System.err.println(\"Initial SessionFactory creation failed."
+#~ "\" + ex);\n"
+#~ " throw new ExceptionInInitializerError(ex);\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " public static SessionFactory getSessionFactory() {\n"
+#~ " return sessionFactory;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Our first persistent class is a simple JavaBean class with some "
-#~ "properties:"
+#~ "<![CDATA[package org.hibernate.tutorial;\n"
+#~ "\n"
+#~ "import org.hibernate.Session;\n"
+#~ "\n"
+#~ "import java.util.*;\n"
+#~ "\n"
+#~ "import org.hibernate.tutorial.domain.Event;\n"
+#~ "import org.hibernate.tutorial.util.HibernateUtil;\n"
+#~ "\n"
+#~ "public class EventManager {\n"
+#~ "\n"
+#~ " public static void main(String[] args) {\n"
+#~ " EventManager mgr = new EventManager();\n"
+#~ "\n"
+#~ " if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory().close();\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void createAndStoreEvent(String title, Date theDate) {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ " session.save(theEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "æåã®æ°¸ç¶ã¯ã©ã¹ã¯ãããããã£ãããã¤ãæã¤ã·ã³ãã«ãªJavaBeanã§ãï¼"
+#~ "package events;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "import util.HibernateUtil;\n"
+#~ "\n"
+#~ "public class EventManager {\n"
+#~ "\n"
+#~ " public static void main(String[] args) {\n"
+#~ " EventManager mgr = new EventManager();\n"
+#~ "\n"
+#~ " if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory().close();\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void createAndStoreEvent(String title, Date theDate) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ "\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " session.save(theEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Place this Java source file in a directory called <literal>src</literal> "
-#~ "in the development folder, and in its correct package. The directory "
-#~ "should now look like this:"
+#~ "<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, "
+#~ "EVENT_ID) values (?, ?, ?)]]>"
#~ msgstr ""
-#~ "éçºãã©ã«ãã® <literal>src</literal> ã¨ãããã£ã¬ã¯ããªã®é©åãªããã±ã¼ã¸"
-#~ "ã«ã ãã®Javaã½ã¼ã¹ãã¡ã¤ã«ãé
ç½®ãã¦ãã ããã ãã®æç¹ã§ãã£ã¬ã¯ããªã¯ä»¥"
-#~ "ä¸ã®ããã«ãªã£ã¦ããã¯ãã§ãï¼"
+#~ "[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values "
+#~ "(?, ?, ?)"
-#~ msgid "In the next step, we tell Hibernate about this persistent class."
-#~ msgstr "次ã®ã¹ãããã§ã¯ãHibernateã«ãã®æ°¸ç¶ã¯ã©ã¹ã®æ
å ±ãæãã¾ãã"
-
+#, fuzzy
#~ msgid ""
-#~ "The <literal>id</literal> element is the declaration of the identifer "
-#~ "property, <literal>name=\"id\"</literal> declares the name of the Java "
-#~ "property - Hibernate will use the getter and setter methods to access the "
-#~ "property. The column attribute tells Hibernate which column of the "
-#~ "<literal>EVENTS</literal> table we use for this primary key. The nested "
-#~ "<literal>generator</literal> element specifies the identifier generation "
-#~ "strategy, in this case we used <literal>native</literal>, which picks the "
-#~ "best strategy depending on the configured database (dialect). Hibernate "
-#~ "supports database generated, globally unique, as well as application "
-#~ "assigned identifiers (or any strategy you have written an extension for)."
+#~ "<![CDATA[ if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ " else if (args[0].equals(\"list\")) {\n"
+#~ " List events = mgr.listEvents();\n"
+#~ " for (int i = 0; i < events.size(); i++) {\n"
+#~ " Event theEvent = (Event) events.get(i);\n"
+#~ " System.out.println(\n"
+#~ " \"Event: \" + theEvent.getTitle() + \" Time: \" + "
+#~ "theEvent.getDate()\n"
+#~ " );\n"
+#~ " }\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "<literal>id</literal> è¦ç´ ã¯èå¥åããããã£ã®å®£è¨ã§ããã <literal>name="
-#~ "\"id\"</literal> ã§Javaããããã£ã®ååã宣è¨ãã¾ãã Hibernateã¯ãã®ãã"
-#~ "ããã£ã¸ã¢ã¯ã»ã¹ããããã«ã²ãã¿ã¼ãã»ãã¿ã¼ã¡ã½ããã使ãã¾ãã ã«ã©ã å±"
-#~ "æ§ã§ã¯ <literal>EVENTS</literal> ãã¼ãã«ã®ã©ã®ã«ã©ã ã主ãã¼ã¨ãã¦ä½¿ãã®"
-#~ "ãã Hibernateã«æãã¾ãã å
¥ãåã«ãªã£ã¦ãã <literal>generator</"
-#~ "literal> è¦ç´ ã¯ãèå¥åãçæããæã®æ¦ç¥ãæå®ãã¾ãã ï¼ãã®ä¾ã§ã¯ "
-#~ "<literal>native</literal> ãç¨ãã¾ããï¼ã ãã®è¦ç´ ã¯ãè¨å®ãããã¼ã¿ãã¼"
-#~ "ã¹ï¼dialectï¼ã«å¯¾ããæè¯ãªèå¥åçææ¦ç¥ãé¸å®ãããã®ã§ãã Hibernate"
-#~ "ã¯ãã¢ããªã±ã¼ã·ã§ã³ã§å¤ãå²ãå½ã¦ãæ¦ç¥ï¼ãããã¯ç¬èªã«æ¡å¼µããæ¦ç¥ï¼ã¨å"
-#~ "æ§ã«ã ã°ãã¼ãã«ã«ã¦ãã¼ã¯ãªå¤ããã¼ã¿ãã¼ã¹ã«çæãããæ¦ç¥ããµãã¼ãã"
-#~ "ã¦ãã¾ãã"
+#~ "if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ "}\n"
+#~ "else if (args[0].equals(\"list\")) {\n"
+#~ " List events = mgr.listEvents();\n"
+#~ " for (int i = 0; i < events.size(); i++) {\n"
+#~ " Event theEvent = (Event) events.get(i);\n"
+#~ " System.out.println(\"Event: \" + theEvent.getTitle() +\n"
+#~ " \" Time: \" + theEvent.getDate());\n"
+#~ " }\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "This mapping file should be saved as <literal>Event.hbm.xml</literal>, "
-#~ "right in the directory next to the <literal>Event</literal> Java class "
-#~ "source file. The naming of mapping files can be arbitrary, however the "
-#~ "<literal>hbm.xml</literal> suffix is a convention in the Hibernate "
-#~ "developer community. The directory structure should now look like this:"
+#~ "<![CDATA[ private List listEvents() {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ " List result = session.createQuery(\"from Event\").list();\n"
+#~ " session.getTransaction().commit();\n"
+#~ " return result;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ãã®ãããã³ã°ãã¡ã¤ã«ã¯ã<literal>Event.hbm.xml</literal> ã¨ã㦠"
-#~ "<literal>Event</literal> Javaã¯ã©ã¹ã½ã¼ã¹ãã¡ã¤ã«ã®ããé£ã«ã»ã¼ãããã¹ã"
-#~ "ã§ãã ãããã³ã°ãã¡ã¤ã«ã®å½åæ¹æ³ã¯ä»»æã§ããã<literal>hbm.xml</"
-#~ "literal> ãµãã£ãã¯ã¹ãHibernateã®éçºè
ã®ã³ãã¥ããã£å
ã§ã®ç¿æ
£ã¨ãªã£ã¦ã"
-#~ "ã¾ãã ç¾å¨ãã£ã¬ã¯ããªæ§é ã¯ãã®ããã«ãªã£ã¦ããã¯ãã§ãï¼"
+#~ "private List listEvents() {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ "\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " List result = session.createQuery(\"from Event\").list();\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " return result;\n"
+#~ "}"
-#~ msgid "We continue with the main configuration of Hibernate."
-#~ msgstr "Hibernateã®ä¸»è¦ãªè¨å®ãç¶ãã¾ãã"
-
+#, fuzzy
#~ msgid ""
-#~ "We now have a persistent class and its mapping file in place. It is time "
-#~ "to configure Hibernate. Before we do this, we will need a database. HSQL "
-#~ "DB, a java-based SQL DBMS, can be downloaded from the HSQL DB website"
-#~ "(http://hsqldb.org/). Actually, you only need the <literal>hsqldb.jar</"
-#~ "literal> from this download. Place this file in the <literal>lib/</"
-#~ "literal> directory of the development folder."
+#~ "<![CDATA[package org.hibernate.tutorial.domain;\n"
+#~ "\n"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Long id;\n"
+#~ " private int age;\n"
+#~ " private String firstname;\n"
+#~ " private String lastname;\n"
+#~ "\n"
+#~ " public Person() {}\n"
+#~ "\n"
+#~ " // Accessor methods for all properties, private setter for 'id'\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ããã¾ã§ã§æ°¸ç¶ã¯ã©ã¹ã¨ãããã³ã°ãã¡ã¤ã«ãæãã¾ãããããããHibernateã®"
-#~ "è¨å®ãè¡ãã¾ããã ãã®åã«ãã¼ã¿ãã¼ã¹ãå¿
è¦ã§ãã HSQL DBã¯Javaãã¼ã¹ã®"
-#~ "ã¤ã³ã¡ã¢ãªSQL DBMSã§ãããHSQL DBã¦ã§ããµã¤ããããã¦ã³ãã¼ãã§ãã¾ãã å®"
-#~ "éã«ã¯ãã¦ã³ãã¼ãããä¸ã® <literal>hsqldb.jar</literal> ã ããå¿
è¦ã§ãã "
-#~ "ãã®ãã¡ã¤ã«ãéçºãã©ã«ãã® <literal>lib/</literal> ãã£ã¬ã¯ããªã«é
ç½®ã"
-#~ "ã¦ãã ããã"
+#~ "package events;\n"
+#~ "\n"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Long id;\n"
+#~ " private int age;\n"
+#~ " private String firstname;\n"
+#~ " private String lastname;\n"
+#~ "\n"
+#~ " public Person() {}\n"
+#~ "\n"
+#~ " // Accessor methods for all properties, private setter for 'id'\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Hibernate is the layer in your application which connects to this "
-#~ "database, so it needs connection information. The connections are made "
-#~ "through a JDBC connection pool, which we also have to configure. The "
-#~ "Hibernate distribution contains several open source JDBC connection "
-#~ "pooling tools, but will use the Hibernate built-in connection pool for "
-#~ "this tutorial. Note that you have to copy the required library into your "
-#~ "classpath and use different connection pooling settings if you want to "
-#~ "use a production-quality third party JDBC pooling software."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "Hibernateã¯ã¢ããªã±ã¼ã·ã§ã³ã®ãã¼ã¿ãã¼ã¹ã«æ¥ç¶ãã層ãªã®ã§ã ã³ãã¯ã·ã§ã³"
-#~ "ã®æ
å ±ãå¿
è¦ã«ãªãã¾ãã ã³ãã¯ã·ã§ã³ã¯JDBCã³ãã¯ã·ã§ã³ãã¼ã«ãéãã¦è¡ã"
-#~ "ãã¾ããããããè¨å®ããå¿
è¦ãããã¾ãã Hibernateãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«"
-#~ "ã¯ããã¤ãã®ãªã¼ãã³ã½ã¼ã¹ã®JDBCã³ãã¯ã·ã§ã³ãã¼ã«ãã¼ã«ãå«ã¾ãã¦ãã¾ã"
-#~ "ãã ãã®ãã¥ã¼ããªã¢ã«ã§ã¯Hibernateã«çµã¿è¾¼ã¾ããã³ãã¯ã·ã§ã³ãã¼ã«ã使ã"
-#~ "ã¾ãã ãã製åã¬ãã«ã®å質ã®ãµã¼ããã¼ãã£JDBCã³ãã¯ã·ã§ã³ãã¼ã«ã½ãã"
-#~ "ã¦ã§ã¢ã使ããããã°ã ã¯ã©ã¹ãã¹ã«å¿
è¦ãªã©ã¤ãã©ãªãã³ãã¼ãã¦ãç°ãªãã³"
-#~ "ãã¯ã·ã§ã³ãã¼ã«ãè¨å®ããªããã° ãªããªããã¨ã«æ³¨æãã¦ãã ããã"
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"events.Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "Copy this file into the source directory, so it will end up in the root "
-#~ "of the classpath. Hibernate automatically looks for a file called "
-#~ "<literal>hibernate.cfg.xml</literal> in the root of the classpath, on "
-#~ "startup."
+#~ "<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
+#~ "<mapping resource=\"events/Person.hbm.xml\"/>]]>"
#~ msgstr ""
-#~ "ãã®ãã¡ã¤ã«ãã½ã¼ã¹ãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ããã ããã¨ããã¯ã¯ã©ã¹"
-#~ "ãã¹ã®ã«ã¼ãã«ãããã¨ã«ãªãã¾ãã Hibernateã¯ãã¹ã¿ã¼ãã¢ããæã«ã¯ã©ã¹ã"
-#~ "ã¹ã®ã«ã¼ãã§ <literal>hibernate.cfg.xml</literal> ã¨ãããã¡ã¤ã«ãèªåçã«"
-#~ "æ¢ãã¾ãã"
+#~ "<mapping resource=\"events/Event.hbm.xml\"/>\n"
+#~ "<mapping resource=\"events/Person.hbm.xml\"/>"
+#, fuzzy
#~ msgid ""
-#~ "We'll now build the tutorial with Ant. You will need to have Ant "
-#~ "installed - get it from the <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Ant download page</ulink>. How to install Ant will not "
-#~ "be covered here. Please refer to the <ulink url=\"http://ant.apache.org/"
-#~ "manual/index.html\">Ant manual</ulink>. After you have installed Ant, we "
-#~ "can start to create the buildfile. It will be called <literal>build.xml</"
-#~ "literal> and placed directly in the development directory."
+#~ "<![CDATA[public class Person {\n"
+#~ "\n"
+#~ " private Set events = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ããã§ã¯Antã使ã£ã¦ãã¥ã¼ããªã¢ã«ããã«ããã¾ãããã ããã«ã¯Antãã¤ã³ã¹"
-#~ "ãã¼ã«ããã¦ããªããã°ãªãã¾ããã <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Antãã¦ã³ãã¼ããã¼ã¸</ulink> ãããã¦ã³ãã¼ããã¦ãã ã"
-#~ "ãã Antã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ããã§ã¯èª¬æãã¾ããã®ã§ã <ulink url="
-#~ "\"http://ant.apache.org/manual/index.html\">Antããã¥ã¢ã«</ulink> ãåç
§ã"
-#~ "ã¦ãã ããã Antãã¤ã³ã¹ãã¼ã«ããã°ããã«ããã¡ã¤ã«ã®ä½æãéå§ã§ãã¾"
-#~ "ãã ãã®ãã¡ã¤ã«ã¯ <literal>build.xml</literal> ã¨å¼ã°ããéçºãã£ã¬ã¯ã"
-#~ "ãªã«ç´æ¥é
ç½®ãã¾ãã"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Set events = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "}"
-#~ msgid "A basic build file looks like this:"
-#~ msgstr "åºæ¬çãªãã«ããã¡ã¤ã«ã¯ãã®ããã«ãªãã¾ãï¼"
-
+#, fuzzy
#~ msgid ""
-#~ "This will tell Ant to add all files in the lib directory ending with "
-#~ "<literal>.jar</literal> to the classpath used for compilation. It will "
-#~ "also copy all non-Java source files to the target directory, e.g. "
-#~ "configuration and Hibernate mapping files. If you now run Ant, you should "
-#~ "get this output:"
+#~ "<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ "\n"
+#~ " <set name=\"events\" table=\"PERSON_EVENT\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "ãã㯠<literal>.jar</literal> ã§çµããlibãã£ã¬ã¯ããªã®ãã¹ã¦ã®ãã¡ã¤ã«"
-#~ "ãã ã³ã³ãã¤ã«ã«ä½¿ç¨ããã¯ã©ã¹ãã¹ã«è¿½å ãããã¨ãAntã«æãã¾ãã ã¾ãã"
-#~ "Javaã½ã¼ã¹ãã¡ã¤ã«ã§ãªããã¹ã¦ã®ãã¡ã¤ã«ãã¿ã¼ã²ãããã£ã¬ã¯ããªã«ã³ãã¼ã"
-#~ "ãã¨ãããã¨ã§ãããã¾ãã ä¾ãã°è¨å®ãã¡ã¤ã«ãHibernateãããã³ã°ãã¡ã¤ã«"
-#~ "ãªã©ã§ãã ä»Antãå®è¡ããã¨ããã®ãããªåºåãããã¯ãã§ãï¼"
+#~ "<class name=\"events.Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ "\n"
+#~ " <set name=\"events\" table=\"PERSON_EVENT\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <many-to-many column=\"EVENT_ID\" class=\"events.Event\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "Place <literal>HibernateUtil.java</literal> in the development source "
-#~ "directory, in a package next to <literal>events</literal>:"
+#~ "<![CDATA[\n"
+#~ " _____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | |\n"
+#~ " |_____________| |__________________| | PERSON |\n"
+#~ " | | | | |_____________|\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | |\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE |\n"
+#~ " |_____________| | FIRSTNAME |\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|\n"
+#~ " ]]>"
#~ msgstr ""
-#~ "<literal>HibernateUtil.java</literal> ãéçºã½ã¼ã¹ãã£ã¬ã¯ããªã«ãã "
-#~ "<literal>events</literal> ããã±ã¼ã¸ã® é£ã«é
ç½®ãã¦ãã ããã"
+#~ "_____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | |\n"
+#~ " |_____________| |__________________| | PERSON |\n"
+#~ " | | | | |_____________|\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | |\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE |\n"
+#~ " |_____________| | FIRSTNAME |\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|"
+#, fuzzy
#~ msgid ""
-#~ "To run this first routine we have to add a callable target to the Ant "
-#~ "build file:"
+#~ "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) "
+#~ "{\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ " aPerson.getEvents().add(anEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ãã®æåã®ã«ã¼ãã³ãå®è¡ããã«ã¯ãAntã®ãã«ããã¡ã¤ã«ã«å¼ã³åºãå¯è½ãªã¿ã¼"
-#~ "ã²ããã 追å ããªããã°ãªãã¾ããï¼"
+#~ "private void addPersonToEvent(Long personId, Long eventId) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "The value of the <literal>action</literal> argument is set on the command "
-#~ "line when calling the target:"
+#~ "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) "
+#~ "{\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session\n"
+#~ " .createQuery(\"select p from Person p left join fetch p."
+#~ "events where p.id = :pid\")\n"
+#~ " .setParameter(\"pid\", personId)\n"
+#~ " .uniqueResult(); // Eager fetch the collection so we can "
+#~ "use it detached\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " // End of first unit of work\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent); // aPerson (and its collection) "
+#~ "is detached\n"
+#~ "\n"
+#~ " // Begin second unit of work\n"
+#~ "\n"
+#~ " Session session2 = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session2.beginTransaction();\n"
+#~ " session2.update(aPerson); // Reattachment of aPerson\n"
+#~ "\n"
+#~ " session2.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "<literal>action</literal> 弿°ã®å¤ã¯ãã¿ã¼ã²ãããå¼ã¶ã¨ãã«ã³ãã³ãã©ã¤ã³"
-#~ "ã§è¨å®ãã¾ãï¼"
+#~ "private void addPersonToEvent(Long personId, Long eventId) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session\n"
+#~ " .createQuery(\"select p from Person p left join fetch p."
+#~ "events where p.id = :pid\")\n"
+#~ " .setParameter(\"pid\", personId)\n"
+#~ " .uniqueResult(); // Eager fetch the collection so we can use "
+#~ "it detached\n"
+#~ "\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " // End of first unit of work\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
+#~ "detached\n"
+#~ "\n"
+#~ " // Begin second unit of work\n"
+#~ "\n"
+#~ " Session session2 = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session2.beginTransaction();\n"
+#~ "\n"
+#~ " session2.update(aPerson); // Reattachment of aPerson\n"
+#~ "\n"
+#~ " session2.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "This is the <literal>INSERT</literal> executed by Hibernate, the question "
-#~ "marks represent JDBC bind parameters. To see the values bound as "
-#~ "arguments, or to reduce the verbosity of the log, check your "
-#~ "<literal>log4j.properties</literal>."
+#~ "<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
+#~ " Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
+#~ "());\n"
+#~ " Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
+#~ " mgr.addPersonToEvent(personId, eventId);\n"
+#~ " System.out.println(\"Added person \" + personId + \" to event "
+#~ "\" + eventId);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ããã¯Hibernateãå®è¡ãã <literal>INSERT</literal> ã§ã ã¯ã¨ã¹ãã§ã³ãã¼"
-#~ "ã¯ã¯JDBCãã¤ã³ããã©ã¡ã¼ã¿ã表ãã¦ãã¾ãã 弿°ã¨ãã¦ãã¤ã³ããããå¤ãè¦"
-#~ "ãããããããã¯ãã°ã®åé·æ§ãæ¸ããããã«ã¯ã <literal>log4j.properties</"
-#~ "literal> ããã§ãã¯ãã¦ãã ããã"
+#~ "else if (args[0].equals(\"addpersontoevent\")) {\n"
+#~ " Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
+#~ " mgr.addPersonToEvent(personId, eventId);\n"
+#~ " System.out.println(\"Added person \" + personId + \" to event \" + "
+#~ "eventId);\n"
+#~ "}"
-#~ msgid "Now, to execute and test all of this, follow these steps:"
-#~ msgstr "以ä¸ã®ã¹ãããã§ããã¹ã¦ã®å®è¡ã¨ãã¹ããè¡ãã¾ãã"
-
+#, fuzzy
#~ msgid ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
+#~ "<![CDATA[ private Set emailAddresses = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEmailAddresses() {\n"
+#~ " return emailAddresses;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEmailAddresses(Set emailAddresses) {\n"
+#~ " this.emailAddresses = emailAddresses;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "hbm2ddlãéãåã«ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ã使ãããã¼ã¿ãã¼ã¹ã¹ãã¼ããçæ"
-#~ "ããããã«ã <literal>ant run -Daction=store</literal> ãå®è¡ãã¦ãã ã"
-#~ "ãã"
+#~ "private Set emailAddresses = new HashSet();\n"
+#~ "\n"
+#~ "public Set getEmailAddresses() {\n"
+#~ " return emailAddresses;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void setEmailAddresses(Set emailAddresses) {\n"
+#~ " this.emailAddresses = emailAddresses;\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
+#~ "<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR"
+#~ "\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
+#~ " </set>]]>"
#~ msgstr ""
-#~ "ä»ã¯ <literal>hibernate.cfg.xml</literal> ãã¡ã¤ã«ã®ããããã£ãã³ã¡ã³ãã¢"
-#~ "ã¦ããã¦hbm2ddlãç¡å¹ã«ãã¦ãã ããã é常ã¯ç¶ç¶çã«åä½ãã¹ãããã¦ããé"
-#~ "ã¯hbm2ddlãæå¹ã«ãã¦ããã®ã§ããã ãã以å¤ã®å ´åã«hbm2ddlãèµ·åããã¨æ ¼"
-#~ "ç´ãã¦ãããå
¨ã¦ã®ãã¼ã¿ã <emphasis>ãããã</emphasis> ããã§ãããã è¨"
-#~ "å®ã <literal>create</literal> ã«ããã¨ãçµæã¨ã㦠ãSessionFactoryçæã®"
-#~ "éãã¹ãã¼ãããå
¨ã¦ã®ãã¼ãã«ããããããã¦å使ãããã¨ããè¨å®ã«ãªãã¾"
-#~ "ãã"
+#~ "<set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
+#~ "</set>"
+#, fuzzy
#~ msgid ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
+#~ "<![CDATA[\n"
+#~ " _____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | | "
+#~ "___________________\n"
+#~ " |_____________| |__________________| | PERSON | "
+#~ "| |\n"
+#~ " | | | | |_____________| | "
+#~ "PERSON_EMAIL_ADDR |\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | | |"
+#~ "___________________|\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
+#~ "*PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE | | "
+#~ "*EMAIL_ADDR |\n"
+#~ " |_____________| | FIRSTNAME | |"
+#~ "___________________|\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|\n"
+#~ " ]]>"
#~ msgstr ""
-#~ "ä» <literal>-Daction=list</literal> ã¨æå®ãã¦Antãå¼ã¶ã¨ã ããã¾ã§æ ¼ç´ã"
-#~ "ãã¤ãã³ããè¦ããã¯ãã§ãã <literal>store</literal> ã¢ã¯ã·ã§ã³ãæ°å以ä¸"
-#~ "å¼ã¶ãã¨ãå¯è½ã§ãã"
+#~ "_____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | | "
+#~ "___________________\n"
+#~ " |_____________| |__________________| | PERSON | "
+#~ "| |\n"
+#~ " | | | | |_____________| | "
+#~ "PERSON_EMAIL_ADDR |\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | "
+#~ "| |___________________|\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | "
+#~ "<--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE | | "
+#~ "*EMAIL_ADDR |\n"
+#~ " |_____________| | FIRSTNAME | |"
+#~ "___________________|\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|"
+#, fuzzy
#~ msgid ""
-#~ "Note: Most new Hibernate users fail at this point and we see questions "
-#~ "about <emphasis>Table not found</emphasis> error messages regularly. "
-#~ "However, if you follow the steps outlined above you will not have this "
-#~ "problem, as hbm2ddl creates the database schema on the first run, and "
-#~ "subsequent application restarts will use this schema. If you change the "
-#~ "mapping and/or database schema, you have to re-enable hbm2ddl once again."
+#~ "<![CDATA[ private void addEmailToPerson(Long personId, String "
+#~ "emailAddress) {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " // adding to the emailAddress collection might trigger a lazy "
+#~ "load of the collection\n"
+#~ " aPerson.getEmailAddresses().add(emailAddress);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "注æï¼åãã¦Hibernateã«è§¦ãã人ã
ã®å¤ããããã§å¤±æããããã"
-#~ "<emphasis>Table not found</emphasis> ã¨ã©ã¼ã¡ãã»ã¼ã¸ã« é¢ãã質åã宿ç"
-#~ "ã«è¦ããã¾ãã ãããä¸è¨ã®ã¹ãããã«å¾ãã°ãhbm2ddlãæåã«å®è¡ãããã¨ã"
-#~ "ã«ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã使ãã ãã®å¾ã®å®è¡ã«ããã¦ããã®ã¹ãã¼ãã使ç¨"
-#~ "ããã®ã§ãåé¡ã¯èµ·ãããªãã§ãããã ãããã³ã°ããã¼ã¿ãã¼ã¹ã¹ãã¼ããå¤"
-#~ "æ´ããã¨ãã¯ãããä¸åº¦hbm2ddlãæå¹ã«ãã¦ãã ããã"
+#~ "private void addEmailToPerson(Long personId, String emailAddress) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ "\n"
+#~ " // The getEmailAddresses() might trigger a lazy load of the "
+#~ "collection\n"
+#~ " aPerson.getEmailAddresses().add(emailAddress);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Create a new mapping file called <literal>Person.hbm.xml</literal> (don't "
-#~ "forget the DTD reference at the top):"
+#~ "<![CDATA[ private Set participants = new HashSet();\n"
+#~ "\n"
+#~ " public Set getParticipants() {\n"
+#~ " return participants;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setParticipants(Set participants) {\n"
+#~ " this.participants = participants;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "<literal>Person.hbm.xml</literal> ã¨ããæ°ãããããã³ã°ãã¡ã¤ã«ã使ãã¦"
-#~ "ãã ãã ï¼ãã¡ã¤ã«ã®æåã«DTDã¸ã®åç
§ãå¿ããã«å
¥ãã¦ãã ããï¼ï¼"
+#~ "private Set participants = new HashSet();\n"
+#~ "\n"
+#~ "public Set getParticipants() {\n"
+#~ " return participants;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void setParticipants(Set participants) {\n"
+#~ " this.participants = participants;\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "We need a unidirectional, many-valued associations, implemented with a "
-#~ "<literal>Set</literal>. Let's write the code for this in the Java classes "
-#~ "and then map it:"
+#~ "<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" "
+#~ "inverse=\"true\">\n"
+#~ " <key column=\"EVENT_ID\"/>\n"
+#~ " <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
+#~ " </set>]]>"
#~ msgstr ""
-#~ "<literal>Set</literal> ã§å®è£
ãããåæ¹åãå¤å¤é¢é£ãå¿
è¦ã§ãã Javaã¯ã©ã¹"
-#~ "å
ã«å¯¾å¿ããã³ã¼ããæ¸ãã¦ãããã³ã°ãã¾ãããï¼"
+#~ "<set name=\"participants\" table=\"PERSON_EVENT\" inverse=\"true"
+#~ "\">\n"
+#~ " <key column=\"EVENT_ID\"/>\n"
+#~ " <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
+#~ "</set>"
+#, fuzzy
#~ msgid ""
-#~ "We add a collection of value typed objects to the <literal>Person</"
-#~ "literal> entity. We want to store email addresses, so the type we use is "
-#~ "<literal>String</literal>, and the collection is again a <literal>Set</"
-#~ "literal>:"
+#~ "<![CDATA[ protected Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " protected void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void addToEvent(Event event) {\n"
+#~ " this.getEvents().add(event);\n"
+#~ " event.getParticipants().add(this);\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void removeFromEvent(Event event) {\n"
+#~ " this.getEvents().remove(event);\n"
+#~ " event.getParticipants().remove(this);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "å¤åãªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³ã <literal>Person</literal> ã¨ã³ãã£ãã£ã¸"
-#~ "追å ãã¾ãã Eã¡ã¼ã«ã¢ãã¬ã¹ãæ ¼ç´ãããã®ã§ããã<literal>String</"
-#~ "literal> åã使ã£ã¦ããã®ã§ã ã³ã¬ã¯ã·ã§ã³ã¯åã³ <literal>Set</literal> ã§"
-#~ "ãï¼"
+#~ "protected Set getEvents() {\n"
+#~ " return events;\n"
+#~ "}\n"
+#~ "\n"
+#~ "protected void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void addToEvent(Event event) {\n"
+#~ " this.getEvents().add(event);\n"
+#~ " event.getParticipants().add(this);\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void removeFromEvent(Event event) {\n"
+#~ " this.getEvents().remove(event);\n"
+#~ " event.getParticipants().remove(this);\n"
+#~ "}"
-#~ msgid "Let's turn this into a small web application."
-#~ msgstr "ã§ã¯ãããå°ããªWebã¢ããªã±ã¼ã·ã§ã³ã«ãã¦ã¿ã¾ãããã"
-
+#, fuzzy
#~ msgid ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
+#~ "<![CDATA[package org.hibernate.tutorial.web;\n"
+#~ "\n"
+#~ "// Imports\n"
+#~ "\n"
+#~ "public class EventManagerServlet extends HttpServlet {\n"
+#~ "\n"
+#~ " protected void doGet(\n"
+#~ " HttpServletRequest request,\n"
+#~ " HttpServletResponse response) throws ServletException, "
+#~ "IOException {\n"
+#~ "\n"
+#~ " SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM."
+#~ "yyyy\" );\n"
+#~ "\n"
+#~ " try {\n"
+#~ " // Begin unit of work\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "beginTransaction();\n"
+#~ "\n"
+#~ " // Process request and render page...\n"
+#~ "\n"
+#~ " // End unit of work\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "getTransaction().commit();\n"
+#~ " }\n"
+#~ " catch (Exception ex) {\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "getTransaction().rollback();\n"
+#~ " if ( ServletException.class.isInstance( ex ) ) {\n"
+#~ " throw ( ServletException ) ex;\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " throw new ServletException( ex );\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "æ°ããã¯ã©ã¹ããã½ã¼ã¹ãã£ã¬ã¯ããªã® <literal>events</literal> ããã±ã¼ã¸"
-#~ "ã«ä½æãã¦ãã ããã"
+#~ "protected void doGet(HttpServletRequest request,\n"
+#~ " HttpServletResponse response)\n"
+#~ " throws ServletException, IOException {\n"
+#~ "\n"
+#~ " SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd.MM.yyyy"
+#~ "\");\n"
+#~ "\n"
+#~ " try {\n"
+#~ " // Begin unit of work\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // Process request and render page...\n"
+#~ "\n"
+#~ " // End unit of work\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().getTransaction().commit();\n"
+#~ "\n"
+#~ " } catch (Exception ex) {\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().getTransaction().rollback();\n"
+#~ " throw new ServletException(ex);\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
+#~ "<![CDATA[ // Write HTML header\n"
+#~ " PrintWriter out = response.getWriter();\n"
+#~ " out.println(\"<html><head><title>Event Manager</title></"
+#~ "head><body>\");\n"
+#~ "\n"
+#~ " // Handle actions\n"
+#~ " if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
+#~ "\n"
+#~ " String eventTitle = request.getParameter(\"eventTitle\");\n"
+#~ " String eventDate = request.getParameter(\"eventDate\");\n"
+#~ "\n"
+#~ " if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
+#~ " out.println(\"<b><i>Please enter event title and date.</"
+#~ "i></b>\");\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " createAndStoreEvent(eventTitle, dateFormatter.parse"
+#~ "(eventDate));\n"
+#~ " out.println(\"<b><i>Added event.</i></b>\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " // Print page\n"
+#~ " printEventForm(out);\n"
+#~ " listEvents(out, dateFormatter);\n"
+#~ "\n"
+#~ " // Write HTML footer\n"
+#~ " out.println(\"</body></html>\");\n"
+#~ " out.flush();\n"
+#~ " out.close();]]>"
#~ msgstr ""
-#~ "ãã®ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ã®ããã«ãWebã¢ã¼ã«ã¤ãï¼WARï¼ã使ãã¦ãã "
-#~ "ããã 以ä¸ã®Antã¿ã¼ã²ããã <literal>build.xml</literal> ã«å ãã¦ãã ã"
-#~ "ãã"
+#~ "// Write HTML header\n"
+#~ "PrintWriter out = response.getWriter();\n"
+#~ "out.println(\"<html><head><title>Event Manager</"
+#~ "title></head><body>\");\n"
+#~ "\n"
+#~ "// Handle actions\n"
+#~ "if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
+#~ "\n"
+#~ " String eventTitle = request.getParameter(\"eventTitle\");\n"
+#~ " String eventDate = request.getParameter(\"eventDate\");\n"
+#~ "\n"
+#~ " if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
+#~ " out.println(\"<b><i>Please enter event title and date."
+#~ "</i></b>\");\n"
+#~ " } else {\n"
+#~ " createAndStoreEvent(eventTitle, dateFormatter.parse(eventDate));\n"
+#~ " out.println(\"<b><i>Added event.</i></b>"
+#~ "\");\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "// Print page\n"
+#~ "printEventForm(out);\n"
+#~ "listEvents(out, dateFormatter);\n"
+#~ "\n"
+#~ "// Write HTML footer\n"
+#~ "out.println(\"</body></html>\");\n"
+#~ "out.flush();\n"
+#~ "out.close();"
+#, fuzzy
#~ msgid ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
+#~ "<![CDATA[ private void printEventForm(PrintWriter out) {\n"
+#~ " out.println(\"<h2>Add new event:</h2>\");\n"
+#~ " out.println(\"<form>\");\n"
+#~ " out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
+#~ "\");\n"
+#~ " out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
+#~ "length='10'/><br/>\");\n"
+#~ " out.println(\"<input type='submit' name='action' value='store'/>"
+#~ "\");\n"
+#~ " out.println(\"</form>\");\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ãã®ã¿ã¼ã²ãã㯠<literal>hibernate-tutorial.war</literal> ã¨ãããã¡ã¤ã«"
-#~ "ã ããã¸ã§ã¯ããã£ã¬ã¯ããªã«ä½æãã¾ãã ãã®ãã¡ã¤ã«ã¯ãã¹ã¦ã®ã©ã¤ãã©ãª"
-#~ "㨠<literal>web.xml</literal> è¨è¿°åãå«ãã§ããã ããã¸ã§ã¯ãã®ãã¼ã¹"
-#~ "ãã£ã¬ã¯ããªã«ç½®ããããã¨ãæå¾
ããã¾ãã"
+#~ "private void printEventForm(PrintWriter out) {\n"
+#~ " out.println(\"<h2>Add new event:</h2>\");\n"
+#~ " out.println(\"<form>\");\n"
+#~ " out.println(\"Title: <input name='eventTitle' length='50'/><"
+#~ "br/>\");\n"
+#~ " out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
+#~ "length='10'/><br/>\");\n"
+#~ " out.println(\"<input type='submit' name='action' value='store'/>"
+#~ "\");\n"
+#~ " out.println(\"</form>\");\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compliation and excluded from the WAR package."
+#~ "<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
+#~ "dateFormatter) {\n"
+#~ "\n"
+#~ " List result = HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().createCriteria(Event.class).list();\n"
+#~ " if (result.size() > 0) {\n"
+#~ " out.println(\"<h2>Events in database:</h2>\");\n"
+#~ " out.println(\"<table border='1'>\");\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<th>Event title</th>\");\n"
+#~ " out.println(\"<th>Event date</th>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " Iterator it = result.iterator();\n"
+#~ " while (it.hasNext()) {\n"
+#~ " Event event = (Event) it.next();\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
+#~ " out.println(\"<td>\" + dateFormatter.format(event.getDate"
+#~ "()) + \"</td>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " }\n"
+#~ " out.println(\"</table>\");\n"
+#~ " }\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "Webã¢ããªã±ã¼ã·ã§ã³ã®ã³ã³ãã¤ã«ã¨ãããã¤ã®åã«ã <literal>jsdk.jar</"
-#~ "literal> ã¨ãã 追å ã®ã©ã¤ãã©ãªãå¿
è¦ãªãã¨ã«æ³¨æãã¦ãã ããã ããã¯"
-#~ "Javaãµã¼ãã¬ããã®éçºãããã§ãã ããã¾ã ãã®ã©ã¤ãã©ãªãæã£ã¦ããªããª"
-#~ "ããSunã®ã¦ã§ããµã¤ãã§å
¥æãã¦ã ã©ã¤ãã©ãªãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ã"
-#~ "ãã ããããããã¯ã³ã³ãã¤ã«ã«ã®ã¿ä½¿ç¨ãããWARããã±ã¼ã¸ããã¯é¤å¤ããã¾"
-#~ "ãã"
+#~ "private void listEvents(PrintWriter out, SimpleDateFormat dateFormatter) "
+#~ "{\n"
+#~ "\n"
+#~ " List result = HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().createCriteria(Event.class).list"
+#~ "();\n"
+#~ " if (result.size() > 0) {\n"
+#~ " out.println(\"<h2>Events in database:</h2>\");\n"
+#~ " out.println(\"<table border='1'>\");\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<th>Event title</th>\");\n"
+#~ " out.println(\"<th>Event date</th>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " for (Iterator it = result.iterator(); it.hasNext();) {\n"
+#~ " Event event = (Event) it.next();\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<td>\" + event.getTitle() + \"</td>"
+#~ "\");\n"
+#~ " out.println(\"<td>\" + dateFormatter.format(event."
+#~ "getDate()) + \"</td>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " }\n"
+#~ " out.println(\"</table>\");\n"
+#~ " }\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "If you already feel confident with Hibernate, continue browsing through "
-#~ "the reference documentation table of contents for topics you find "
-#~ "interesting - most asked are transactional processing (<xref linkend="
-#~ "\"transactions\"/>), fetch performance (<xref linkend=\"performance\"/>), "
-#~ "or the usage of the API (<xref linkend=\"objectstate\"/>) and the query "
-#~ "features (<xref linkend=\"objectstate-querying\"/>)."
+#~ "<![CDATA[ protected void createAndStoreEvent(String title, Date "
+#~ "theDate) {\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().save(theEvent);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ããHibernateã«èªä¿¡ãããã°ããªãã¡ã¬ã³ã¹ããã¥ã¡ã³ãã®ç®æ¬¡ã«ç®ãéãã¦ã "
-#~ "é¢ç½ããã ã¨æããããã¯ãæ¢ãã¦ãã ããã æãé »ç¹ã«è³ªåãããã®ã¯ããã©"
-#~ "ã³ã¶ã¯ã·ã§ã³å¦çï¼<xref linkend=\"transactions\"/>ï¼ã ãã§ããã®ããã©ã¼"
-#~ "ãã³ã¹ï¼<xref linkend=\"performance\"/>ï¼ã APIã®ä½¿ãæ¹ï¼<xref linkend="
-#~ "\"objectstate\"/>ï¼ã¨ã¯ã¨ãª ï¼<xref linkend=\"objectstate-querying\"/>ï¼ã§"
-#~ "ãã"
+#~ "protected void createAndStoreEvent(String title, Date theDate) {\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().save(theEvent);\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Don't forget to check the Hibernate website for more (specialized) "
-#~ "tutorials."
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<web-app version=\"2.4\"\n"
+#~ " xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun."
+#~ "com/xml/ns/j2ee/web-app_2_4.xsd\">\n"
+#~ "\n"
+#~ " <servlet>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
+#~ "servlet-class>\n"
+#~ " </servlet>\n"
+#~ "\n"
+#~ " <servlet-mapping>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <url-pattern>/eventmanager</url-pattern>\n"
+#~ " </servlet-mapping>\n"
+#~ "</web-app>]]>"
#~ msgstr ""
-#~ "ããã«ï¼ç¹å¥ãªï¼ãã¥ã¼ããªã¢ã«ãå¿
è¦ãªããHibernateã¦ã§ããµã¤ããå¿ããã«"
-#~ "ãã§ãã¯ãã¦ãã ããã"
+#~ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<web-app version=\"2.4\"\n"
+#~ " xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee\n"
+#~ " http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\">\n"
+#~ "\n"
+#~ " <servlet>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <servlet-class>events.EventManagerServlet</servlet-"
+#~ "class>\n"
+#~ " </servlet>\n"
+#~ "\n"
+#~ " <servlet-mapping>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <url-pattern>/eventmanager</url-pattern>\n"
+#~ " </servlet-mapping>\n"
+#~ "</web-app>"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,50 +1,50 @@
+# translation of Collection_Mapping.po to
+# Xi HUANG <xhuang at redhat.com>, 2007, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2010-01-18 15:42+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
-msgstr "XMLãããã³ã°"
+msgstr "XML ãããã³ã°"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
msgstr ""
-"XMLãããã³ã°ã¯Hibernate3.0ã§ã¯è©¦é¨çãªæ©è½ã§ãããéå¸¸ã«æ´»åçã«éçºä¸ã§ãã"
+"XML ãããã³ã°ã¯ Hibernate3.0 ã§ã¯è©¦é¨çãªæ©è½ã§ãããéå¸¸ã«æ´»åçã«éçºä¸ã§"
+"ãã"
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
-msgstr "XMLãã¼ã¿ã§ã®ä½æ¥"
+msgstr "XML ãã¼ã¿ã§ã®ä½æ¥"
#. Tag: para
-#: xml.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
"you work with persistent POJOs. A parsed XML tree can be thought of as "
"another way of representing the relational data at the object level, instead "
"of POJOs."
msgstr ""
-"Hibernateã§ã¯æ°¸ç¶æ§ã®POJOã使ã£ã¦ä½æ¥ããã®ã¨ã»ã¼åããããªããæ¹ã§ã æ°¸ç¶æ§"
-"ã®XMLãã¼ã¿ã使ã£ã¦ä½æ¥ã§ãã¾ãã"
+"Hibernate ã§ã¯æ°¸ç¶æ§ã® POJO ã使ã£ã¦ä½æ¥ããã®ã¨ã»ã¼åããããªããæ¹ã§ãæ°¸ç¶"
+"æ§ã® XML ãã¼ã¿ã使ã£ã¦ä½æ¥ã§ãã¾ããè§£æããã XML ããªã¼ã¯ POJO ã®ä»£ããã«"
+"ãªãã¸ã§ã¯ãã¬ãã«ã§é¢ä¿ãã¼ã¿ã表ããå¥ã®æ¹æ³ã§ããã¨ã¿ãªããã¦ãã¾ãã"
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -55,170 +55,102 @@
"(), saveOrUpdate(), merge(), delete(), replicate()</literal> (merging is not "
"yet supported)."
msgstr ""
-"Hibernateã¯XMLããªã¼ãæä½ããããã®APIã¨ãã¦dom4jããµãã¼ããã¦ãã¾ãã ãã¼"
-"ã¿ãã¼ã¹ããdom4jã®ããªã¼ã復å
ããã¯ã¨ãªãæ¸ããã¨ãã§ãã ããªã¼ã«å¯¾ãã¦"
-"è¡ã£ãä¿®æ£ã¯èªåçã«ãã¼ã¿ãã¼ã¹ã¨åæããã¾ãã ã¾ãXMLããã¥ã¡ã³ããåå¾ã"
-"ããã¨ãã§ããdom4jã使ã£ã¦ããã¥ã¡ã³ãããã¼ã¹ãã Hibernateã®ä»»æã®åºæ¬æä½"
-"ã使ã£ã¦ãã¼ã¿ãã¼ã¹ã¸æ¸ãè¾¼ããã¨ãã§ãã¾ããï¼ ã¤ã¾ãã<literal>persist(), "
-"saveOrUpdate(), merge(), delete(), replicate()</literal> æä½ã§ã(ãã¼ã¸ã¯ã¾"
-"ã ãµãã¼ããã¦ãã¾ãã)ã"
+"Hibernate 㯠XML ããªã¼ãæä½ããããã® API ã¨ã㦠dom4j ããµãã¼ããã¦ãã¾"
+"ãããã¼ã¿ãã¼ã¹ãã dom4j ã®ããªã¼ã復å
ããã¯ã¨ãªãæ¸ããã¨ãã§ããããªã¼ã«"
+"対ãã¦è¡ã£ãä¿®æ£ã¯èªåçã«ãã¼ã¿ãã¼ã¹ã¨åæããã¾ããã¾ã XML ããã¥ã¡ã³ãã"
+"åå¾ãããã¨ãã§ãã dom4j ã使ã£ã¦ããã¥ã¡ã³ãããã¼ã¹ãã Hibernate ã®ä»»æ"
+"ã®åºæ¬æä½ã使ã£ã¦ãã¼ã¿ãã¼ã¹ã¸æ¸ãè¾¼ããã¨ãã§ãã¾ããï¼ ã¤ã¾ãã "
+"<literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> "
+"æä½ã§ã (ãã¼ã¸ã¯ã¾ã ãµãã¼ããã¦ãã¾ãã)ã"
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"This feature has many applications including data import/export, "
"externalization of entity data via JMS or SOAP and XSLT-based reporting."
msgstr ""
-"ãã¼ã¿ã®ã¤ã³ãã¼ã/ã¨ã¯ã¹ãã¼ãã JMSã«ããã¨ã³ãã£ãã£ãã¼ã¿ã®å¤é¨åãSOAPã"
-"XSLTãã¼ã¹ã®ã¬ãã¼ããªã©ã ãã®æ©è½ã«ã¯å¤ãã®ç¨éãããã¾ãã"
+"ãã¼ã¿ã®ã¤ã³ãã¼ã/ã¨ã¯ã¹ãã¼ãã JMS ã«ããã¨ã³ãã£ãã£ãã¼ã¿ã®å¤é¨åã "
+"SOAP ã XSLT ãã¼ã¹ã®ã¬ãã¼ããªã©ããã®æ©è½ã«ã¯å¤ãã®ç¨éãããã¾ãã"
#. Tag: para
-#: xml.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single mapping can 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 can be used to map just the XML."
msgstr ""
-"åä¸ã®ãããã³ã°ã¯ãã¯ã©ã¹ã®ããããã£ã¨XMLããã¥ã¡ã³ãã®ãã¼ãã åæã«ãã¼"
-"ã¿ãã¼ã¹ã¸ãããã³ã°ããããã«ä½¿ããã¨ãã§ãã¾ãã ã¾ããããã³ã°ããã¯ã©ã¹ã"
-"ãªããã°ã XMLã ãããããã³ã°ããããã«ä½¿ããã¨ãã§ãã¾ãã"
+"åä¸ã®ãããã³ã°ã¯ãã¯ã©ã¹ã®ããããã£ã¨ XML ããã¥ã¡ã³ãã®ãã¼ããåæã«ãã¼"
+"ã¿ãã¼ã¹ã¸ãããã³ã°ããããã«ä½¿ããã¨ãã§ãã¾ããã¾ããããã³ã°ããã¯ã©ã¹ã"
+"ãªããã°ã XML ã ãããããã³ã°ããããã«ä½¿ããã¨ãã§ãã¾ãã"
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
-msgstr "XMLã¨ã¯ã©ã¹ã®ãããã³ã°ãåæã«æå®ãã"
+msgstr "XML ã¨ã¯ã©ã¹ã®ãããã³ã°ãåæã«æå®ãã"
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
-msgstr "ããã¯POJOã¨XMLãåæã«ãããã³ã°ããä¾ã§ããï¼"
+msgstr "ãã㯠POJO 㨠XML ãåæã«ãããã³ã°ããä¾ã§ãï¼"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
-msgstr "XMLãããã³ã°ã ããæå®ãã"
+msgstr "XML ãããã³ã°ã ããæå®ãã"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
-msgstr "ããã¯POJOã¯ã©ã¹ããªããããã³ã°ã®ä¾ã§ããï¼"
+msgstr "ãã㯠POJO ã¯ã©ã¹ããªããããã³ã°ã®ä¾ã§ãï¼"
-#. Tag: programlisting
-#: xml.xml:84
+#. Tag: para
#, no-c-format
msgid ""
-"<![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 ""
-
-#. Tag: para
-#: xml.xml:86
-#, fuzzy, no-c-format
-msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
"property name/value pairs or java <literal>Map</literal>s. The property "
"names are purely logical constructs that can be referred to in HQL queries."
msgstr ""
-"ãã®ãããã³ã°ã«ãããdom4jããªã¼ãã ããããã£å/å¤ã®çµã®ã°ã©ãï¼javaã® "
-"<literal>Map</literal>ï¼ã¨ã㦠ãã¼ã¿ã«ã¢ã¯ã»ã¹ã§ãã¾ãã ããããã£ã®åå"
-"ã¯ãHQLã¯ã¨ãªã¼å
ã§åç
§ã§ããç´ç²ãªè«çæ§é ã§ãã"
+"ãã®ãããã³ã°ã«ããã dom4j ããªã¼ããããããã£å/å¤ã®çµã®ã°ã©ãï¼java ã® "
+"<literal>Map</literal>ï¼ã¨ãã¦ãã¼ã¿ã«ã¢ã¯ã»ã¹ã§ãã¾ããããããã£ã®ååã¯ã "
+"HQL ã¯ã¨ãªå
ã§åç
§ã§ããç´ç²ãªè«çæ§é ã§ãã"
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
-msgstr "XMLãããã³ã°ã®ã¡ã¿ãã¼ã¿"
+msgstr "XML ãããã³ã°ã®ã¡ã¿ãã¼ã¿"
#. Tag: para
-#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
"attribute. This lets 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 ""
-"å¤ãã®Hibernateã®ãããã³ã°è¦ç´ ã¯ã<literal>node</literal>ã屿§ã使ç¨ã§ãã¾"
-"ãã ããã«ããXML屿§ã®ååãããããã£ãã¨ã³ãã£ãã£ãã¼ã¿ãä¿æããè¦ç´ ã"
-"æå®ã§ãã¾ãã <literal>node</literal>ã屿§ã®ãã©ã¼ãããã¯ä»¥ä¸ã®ä¸ã®1ã¤ã§ãª"
-"ããã°ãªãã¾ãããï¼"
+"å¤ãã® Hibernate ã®ãããã³ã°è¦ç´ 㯠<literal>node</literal> 屿§ã使ç¨ã§ãã¾"
+"ããããã«ãã XML 屿§ã®ååãããããã£ãã¨ã³ãã£ãã£ãã¼ã¿ãä¿æããè¦ç´ ã"
+"æå®ã§ãã¾ãã <literal>node</literal> 屿§ã®ãã©ã¼ãããã¯ä»¥ä¸ã®ä¸ã®1ã¤ã§ãª"
+"ããã°ãªãã¾ããï¼"
#. Tag: para
-#: xml.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
msgstr ""
-"<literal>\"element-name\"</literal> - æå®ããXMLè¦ç´ ã¸ãããã³ã°ãã¾ã"
+"<literal>\"element-name\"</literal> - æå®ãã XML è¦ç´ ã¸ãããã³ã°ãã¾ã"
#. Tag: para
-#: xml.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
-"<literal>\"@attribute-name\"</literal> - æå®ããXML屿§ã¸ãããã³ã°ãã¾ã"
+"<literal>\"@attribute-name\"</literal> - æå®ãã XML 屿§ã¸ãããã³ã°ãã¾ã"
#. Tag: para
-#: xml.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
-msgstr "<literal>\".\"</literal> -ã親è¦ç´ ã¸ãããã³ã°ãã¾ã"
+msgstr "<literal>\".\"</literal> - 親è¦ç´ ã¸ãããã³ã°ãã¾ã"
#. Tag: para
-#: xml.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
"attribute of the named element"
@@ -227,8 +159,7 @@
"å®ãã屿§ã¸ãããã³ã°ãã¾ã"
#. Tag: para
-#: xml.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
@@ -238,204 +169,373 @@
"then only the referenced identifier value will appear in the XML for single "
"point associations and collections will not appear at all."
msgstr ""
-"ã³ã¬ã¯ã·ã§ã³ã¨åä¸ã®å¤ã®é¢é£ã«å¯¾ãã¦ã ãã¾ãã® <literal>embed-xml</literal> "
-"屿§ãããã¾ãã ããã©ã«ãã® <literal>embed-xml=\"true\"</literal> ã¨è¨å®ã"
-"ãå ´åã é¢é£ããã¨ã³ãã£ãã£(å¤åã®ã³ã¬ã¯ã·ã§ã³)ã®XMLããªã¼ã¯ã ç´æ¥é¢é£ãæ"
-"æããã¨ã³ãã£ãã£ã®XMLããªã¼å
ã«åãè¾¼ã¾ãã¾ãã å対ã«ã<literal>embed-xml="
-"\"false\"</literal> ã¨è¨å®ããå ´åã åç
§ãããèå¥åã®å¤ã ããå¤é度ï¼å´ã®é¢"
-"é£ã«å¯¾ããXMLã«ç¾ãã åç´ã«ã³ã¬ã¯ã·ã§ã³ã¯ã¾ã£ããç¾ããªããªãã¾ãã"
+"ã³ã¬ã¯ã·ã§ã³ã¨åä¸ã®å¤ã®é¢é£ã«å¯¾ãã¦ããã¾ãã® <literal>embed-xml</literal> "
+"屿§ãããã¾ããããã©ã«ãã® <literal>embed-xml=\"true\"</literal> ã¨è¨å®ãã"
+"å ´åãé¢é£ããã¨ã³ãã£ã㣠(å¤åã®ã³ã¬ã¯ã·ã§ã³) ã® XML ããªã¼ã¯ãç´æ¥é¢é£ãæ"
+"æããã¨ã³ãã£ãã£ã® XML ããªã¼å
ã«åãè¾¼ã¾ãã¾ããå対ã«ã <literal>embed-"
+"xml=\"false\"</literal> ã¨è¨å®ããå ´åãåç
§ãããèå¥åã®å¤ã ããå¤é度ï¼å´"
+"ã®é¢é£ã«å¯¾ãã XML ã«ç¾ããåç´ã«ã³ã¬ã¯ã·ã§ã³ã¯ã¾ã£ããç¾ããªããªãã¾ãã"
#. Tag: para
-#: xml.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
"associations, since XML does not deal well with circularity."
msgstr ""
"ãã¾ãã«å¤ãã®é¢é£ã«å¯¾ã㦠<literal>embed-xml=\"true\"</literal> ã¨ããã¾ã¾ã«"
-"ããã®ã¯æ³¨æãã¹ãã§ãã XMLã¯å¾ªç°ããã¾ãæ±ãã¾ããã"
+"ããã®ã¯æ³¨æãã¹ãã§ãã XML ã¯å¾ªç°ããã¾ãæ±ãã¾ããã"
-#. Tag: programlisting
-#: xml.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:141
-#, fuzzy, no-c-format
-msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
"account data. The following HQL query:"
msgstr ""
-"ãã®ä¾ã§ã¯ãå®éã®accountã®ãã¼ã¿ã§ã¯ãªãã accountã®idã®ã³ã¬ã¯ã·ã§ã³ãåãè¾¼"
-"ããã¨ã«ãã¾ããã ç¶ãã®HQLã¯ã¨ãªã§ãï¼"
+"ãã®ä¾ã§ã¯ãå®éã® account ã®ãã¼ã¿ã§ã¯ãªãã account ã® id ã®ã³ã¬ã¯ã·ã§ã³ã"
+"åãè¾¼ããã¨ã«ãã¾ãããç¶ãã® HQL ã¯ã¨ãªã§ãï¼"
-#. Tag: programlisting
-#: xml.xml:146
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:148
-#, fuzzy, no-c-format
msgid "would return datasets such as this:"
-msgstr "ãã®ãããªãã¼ã¿ã»ãããè¿ãã§ããã"
+msgstr "ãã®ãããªãã¼ã¿ã»ãããè¿ãã§ããã:"
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
"many></literal> mapping, the data might look more like this:"
msgstr ""
"<literal><one-to-many></literal> ãããã³ã°ã§ <literal>embed-xml=\"true"
-"\"</literal> ã¨è¨å®ããå ´åã ãã¼ã¿ã¯ãã®ããã«ãªãã§ãããã"
+"\"</literal> ã¨è¨å®ããå ´åããã¼ã¿ã¯ãã®ããã«ãªãã§ãããã"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
-msgstr "XMLãã¼ã¿ãæ±ã"
+msgstr "XML ãã¼ã¿ãæ±ã"
#. Tag: para
-#: xml.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
"this by obtaining a dom4j session:"
msgstr ""
-"XMLããã¥ã¡ã³ãããã¢ããªã±ã¼ã·ã§ã³å
ã§åèªã¿è¾¼ã¿ãæ´æ°ããã¦ã¿ã¾ãããã 以"
-"ä¸ã§ã¯dom4jã®ã»ãã·ã§ã³ãåå¾ãããã¨ã§è¡ãã¾ããï¼"
+"XML ããã¥ã¡ã³ãããã¢ããªã±ã¼ã·ã§ã³å
ã§åèªã¿è¾¼ã¿ãæ´æ°ããã¦ã¿ã¾ãããã以"
+"ä¸ã§ã¯ dom4j ã®ã»ãã·ã§ã³ãåå¾ãããã¨ã§è¡ãã¾ãï¼"
-#. Tag: programlisting
-#: xml.xml:172
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
+"When implementing XML-based data import/export, it is useful to combine this "
+"feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
+"XML ãã¼ã¹ã®ãã¼ã¿ã®ã¤ã³ãã¼ã/ã¨ã¯ã¹ãã¼ããå®è£
ããããã«ã Hibernate ã® "
+"<literal>replicate()</literal> æä½ããã®æ©è½ã«çµã³ã¤ããã®ã¯æ¥µãã¦æå¹ã§ãã"
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![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 ""
+#~ "<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>"
-#. Tag: para
-#: xml.xml:176
-#, fuzzy, no-c-format
-msgid ""
-"When implementing XML-based data import/export, it is useful to combine this "
-"feature with Hibernate's <literal>replicate()</literal> operation."
-msgstr ""
-"XMLãã¼ã¹ã®ãã¼ã¿ã®ã¤ã³ãã¼ã/ã¨ã¯ã¹ãã¼ããå®è£
ããããã«ã Hibernateã® "
-"<literal>replicate()</literal> æä½ããã®æ©è½ãçµã³ã¤ããã®ã¯ 極ãã¦æå¹ã§"
-"ãã"
+#, fuzzy
+#~ msgid ""
+#~ "<![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 ""
+#~ "<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>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\" \n"
+#~ " table=\"CUSTOMER\" \n"
+#~ " node=\"customer\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"CUST_ID\" \n"
+#~ " node=\"@id\"/>\n"
+#~ " \n"
+#~ " <map name=\"accounts\" \n"
+#~ " node=\".\" \n"
+#~ " embed-xml=\"true\">\n"
+#~ " <key column=\"CUSTOMER_ID\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"SHORT_DESC\" \n"
+#~ " node=\"@short-desc\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many entity-name=\"Account\"\n"
+#~ " embed-xml=\"false\" \n"
+#~ " node=\"account\"/>\n"
+#~ " </map>\n"
+#~ " \n"
+#~ " <component name=\"name\" \n"
+#~ " node=\"name\">\n"
+#~ " <property name=\"firstName\" \n"
+#~ " node=\"first-name\"/>\n"
+#~ " <property name=\"initial\" \n"
+#~ " node=\"initial\"/>\n"
+#~ " <property name=\"lastName\" \n"
+#~ " node=\"last-name\"/>\n"
+#~ " </component>\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Customer\" \n"
+#~ " table=\"CUSTOMER\" \n"
+#~ " node=\"customer\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"CUST_ID\" \n"
+#~ " node=\"@id\"/>\n"
+#~ " \n"
+#~ " <map name=\"accounts\" \n"
+#~ " node=\".\" \n"
+#~ " embed-xml=\"true\">\n"
+#~ " <key column=\"CUSTOMER_ID\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"SHORT_DESC\" \n"
+#~ " node=\"@short-desc\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many entity-name=\"Account\"\n"
+#~ " embed-xml=\"false\" \n"
+#~ " node=\"account\"/>\n"
+#~ " </map>\n"
+#~ " \n"
+#~ " <component name=\"name\" \n"
+#~ " node=\"name\">\n"
+#~ " <property name=\"firstName\" \n"
+#~ " node=\"first-name\"/>\n"
+#~ " <property name=\"initial\" \n"
+#~ " node=\"initial\"/>\n"
+#~ " <property name=\"lastName\" \n"
+#~ " node=\"last-name\"/>\n"
+#~ " </component>\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Customer c left join fetch c.accounts where c.lastName "
+#~ "like :lastName]]>"
+#~ msgstr ""
+#~ "from Customer c left join fetch c.accounts where c.lastName like :lastName"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account short-desc=\"Savings\">987632567</account>\n"
+#~ " <account short-desc=\"Credit Card\">985612323</account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+#~ msgstr ""
+#~ "<customer id=\"123456789\">\n"
+#~ " <account short-desc=\"Savings\">987632567</account>\n"
+#~ " <account short-desc=\"Credit Card\">985612323</account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account id=\"987632567\" short-desc=\"Savings\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>100.29</balance>\n"
+#~ " </account>\n"
+#~ " <account id=\"985612323\" short-desc=\"Credit Card\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>-2370.34</balance>\n"
+#~ " </account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+#~ msgstr ""
+#~ "<customer id=\"123456789\">\n"
+#~ " <account id=\"987632567\" short-desc=\"Savings\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>100.29</balance>\n"
+#~ " </account>\n"
+#~ " <account id=\"985612323\" short-desc=\"Credit Card\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>-2370.34</balance>\n"
+#~ " </account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Document doc = ....;\n"
+#~ " \n"
+#~ "Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "List results = dom4jSession\n"
+#~ " .createQuery(\"from Customer c left join fetch c.accounts where c."
+#~ "lastName like :lastName\")\n"
+#~ " .list();\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " //add the customer data to the XML document\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " doc.add(customer);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Document doc = ....;\n"
+#~ " \n"
+#~ "Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "List results = dom4jSession\n"
+#~ " .createQuery(\"from Customer c left join fetch c.accounts where c."
+#~ "lastName like :lastName\")\n"
+#~ " .list();\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " //add the customer data to the XML document\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " doc.add(customer);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " //change the customer name in the XML and database\n"
+#~ " Element name = customer.element(\"name\");\n"
+#~ " name.element(\"first-name\").setText(firstName);\n"
+#~ " name.element(\"initial\").setText(initial);\n"
+#~ " name.element(\"last-name\").setText(lastName);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " //change the customer name in the XML and database\n"
+#~ " Element name = customer.element(\"name\");\n"
+#~ " name.element(\"first-name\").setText(firstName);\n"
+#~ " name.element(\"initial\").setText(initial);\n"
+#~ " name.element(\"last-name\").setText(lastName);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();"
Modified: core/trunk/documentation/manual/src/main/docbook/ja-JP/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ja-JP/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ja-JP/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,35 +2,33 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - ê°ì±ìë ìë°ë¥¼ ìí ê´ê³ ìì"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "íì´ë²ë¤ì´í¸ 참조 문ì"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2010-01-12 20:35+0900\n"
"Last-Translator: Jongdae Kim <jdkim528 at korea.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,314 +11,580 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr "ìí¤í
ì²"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
msgstr "ê°ì"
#. Tag: para
-#: architecture.xml:35
#, no-c-format
-msgid "The diagram below provides a high-level view of the Hibernate architecture:"
+msgid ""
+"The diagram below provides a high-level view of the Hibernate architecture:"
msgstr "ìë ë¤ì´ì´ê·¸ë¨ì Hibernate ìí¤í
ì²ì ëí ëì ìì¤ì 뷰를 ì ê³µíë¤:"
#. Tag: para
-#: architecture.xml:48
#, no-c-format
-msgid "We do not have the scope in this document to provide a more detailed view of all the runtime architectures available; Hibernate is flexible and supports several different approaches. We will, however, show the two extremes: \"minimal\" architecture and \"comprehensive\" architecture."
-msgstr "ì°ë¦¬ê° ì´ì© ê°ë¥í 모ë ë°íì ìí¤í
ì²ë¤ì ëí ë³´ë¤ ìì¸í ê°ì를 ì ê³µíë ê²ì ì´ ë¬¸ìì ë²ì를 ëì´ì ë¤; Hibernateë ì ì°íë©° ëªëª ë¤ë¥¸ ì ê·¼ë²ë¤ì ì ê³µíë¤. íì§ë§ ì°ë¦¬ë ë ê°ì§ ê·¹ë¨ì ë³´ì¬ì¤ ê²ì´ë¤. \"ìµì\" ìí¤í
ì²ì \"ì¢
í©\" ìí¤í
ì²."
+msgid ""
+"We do not have the scope in this document to provide a more detailed view of "
+"all the runtime architectures available; Hibernate is flexible and supports "
+"several different approaches. We will, however, show the two extremes: "
+"\"minimal\" architecture and \"comprehensive\" architecture."
+msgstr ""
+"ì°ë¦¬ê° ì´ì© ê°ë¥í 모ë ë°íì ìí¤í
ì²ë¤ì ëí ë³´ë¤ ìì¸í ê°ì를 ì ê³µíë "
+"ê²ì ì´ ë¬¸ìì ë²ì를 ëì´ì ë¤; Hibernateë ì ì°íë©° ëªëª ë¤ë¥¸ ì ê·¼ë²ë¤ì ì "
+"ê³µíë¤. íì§ë§ ì°ë¦¬ë ë ê°ì§ ê·¹ë¨ì ë³´ì¬ì¤ ê²ì´ë¤. \"ìµì\" ìí¤í
ì²ì \"ì¢
"
+"í©\" ìí¤í
ì²."
#. Tag: para
-#: architecture.xml:54
#, no-c-format
-msgid "This next diagram illustrates how Hibernate utilizes database and configuration data to provide persistence services, and persistent objects, to the application."
-msgstr "ì´ ë¤ì ë¤ì´ì´ê·¸ë¨ì íì´ë²ë¤ì´í¸ê° ììí ìë¹ì¤ë¤ê³¼ ìì ê°ì²´ë¤ì ì´í리ì¼ì´ì
ì ì ê³µí기 ìí´ ë°ì´í°ë² ì´ì¤ì 컨í¼ê·¸ë ì´ì
ë°ì´í°ë¥¼ ì´ë»ê² ì´ì©íëì§ë¥¼ ì¤ëª
íë¤."
+msgid ""
+"This next diagram illustrates how Hibernate utilizes database and "
+"configuration data to provide persistence services, and persistent objects, "
+"to the application."
+msgstr ""
+"ì´ ë¤ì ë¤ì´ì´ê·¸ë¨ì íì´ë²ë¤ì´í¸ê° ììí ìë¹ì¤ë¤ê³¼ ìì ê°ì²´ë¤ì ì´í리ì¼"
+"ì´ì
ì ì ê³µí기 ìí´ ë°ì´í°ë² ì´ì¤ì 컨í¼ê·¸ë ì´ì
ë°ì´í°ë¥¼ ì´ë»ê² ì´ì©íëì§"
+"를 ì¤ëª
íë¤."
#. Tag: para
-#: architecture.xml:59
#, no-c-format
-msgid "The \"minimal\" architecture has the application provide its own JDBC connections and manage its own transactions. This approach uses a minimal subset of Hibernate's APIs:"
-msgstr "\"ìµì\" ìí¤í
ì²ë ì´í리ì¼ì´ì
ì¼ë¡ íì¬ê¸ ê·¸ê² ìì ì JDBC 커ë¥ì
ë¤ì ê°ì§ê³ ê·¸ê² ìì ì í¸ëìì
ë¤ì ê´ë¦¬íëë¡ íë¤. ì´ ì ê·¼ë²ì íì´ë²ë¤ì´í¸ APIì ìµì ë¶ë¶ì§í©ì ì¬ì©íë¤:"
+msgid ""
+"The \"minimal\" architecture has the application provide its own JDBC "
+"connections and manage its own transactions. This approach uses a minimal "
+"subset of Hibernate's APIs:"
+msgstr ""
+"\"ìµì\" ìí¤í
ì²ë ì´í리ì¼ì´ì
ì¼ë¡ íì¬ê¸ ê·¸ê² ìì ì JDBC 커ë¥ì
ë¤ì ê°ì§"
+"ê³ ê·¸ê² ìì ì í¸ëìì
ë¤ì ê´ë¦¬íëë¡ íë¤. ì´ ì ê·¼ë²ì íì´ë²ë¤ì´í¸ APIì "
+"ìµì ë¶ë¶ì§í©ì ì¬ì©íë¤:"
#. Tag: para
-#: architecture.xml:74
#, no-c-format
-msgid "The \"comprehensive\" architecture abstracts the application away from the underlying JDBC/JTA APIs and allows Hibernate to manage the details."
-msgstr "\"ì¢
í©\" ìí¤í
ì²ë 기본 JDBC/JTAë¡ë¶í° ì´í리ì¼ì´ì
ì ì¶ìí ìí¤ê³ Hibernateë¡ íì¬ê¸ ì¸ë¶ì ì¸ ê²ì ê´ë¦¬íëë¡ íë¤."
+msgid ""
+"The \"comprehensive\" architecture abstracts the application away from the "
+"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
+msgstr ""
+"\"ì¢
í©\" ìí¤í
ì²ë 기본 JDBC/JTAë¡ë¶í° ì´í리ì¼ì´ì
ì ì¶ìí ìí¤ê³ "
+"Hibernateë¡ íì¬ê¸ ì¸ë¶ì ì¸ ê²ì ê´ë¦¬íëë¡ íë¤."
#. Tag: para
-#: architecture.xml:88
#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
msgstr "ë¤ìì ë¤ì´ì´ê·¸ë¨ì ëí´ëì´ ìë ê°ì²´ë¤ì ëí ëªê°ì§ ì ìë¤ì´ë¤:"
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:95
#, no-c-format
-msgid "A threadsafe, immutable cache of compiled mappings for a single database. A factory for <literal>Session</literal> and a client of <literal>ConnectionProvider</literal>, <literal>SessionFactory</literal> can hold an optional (second-level) cache of data that is reusable between transactions at a process, or cluster, level."
-msgstr "ë¨ì¼ ë°ì´í°ë² ì´ì¤ì ëí´ ì»´íì¼ë 매íë¤ì ê´í ì°ë ëìì í, ë¶ë³ ìºì. <literal>Session</literal>ì ìí í©í 리ì <literal>ConnectionProvider</literal>, <literal>SessionFactory</literal>ì í´ë¼ì´ì¸í¸ë íë¡ì¸ì¤ ë 벨 ëë í´ë¬ì¤í° ë 벨ìì í¸ëìì
ë¤ ì¬ì´ì ì¬ì¬ì©ì´ ê°ë¥í ë°ì´í°ì ëí ì íì ì¸ (second-level) ìºì를 ë³´ì í ì ìë¤."
+msgid ""
+"A threadsafe, immutable cache of compiled mappings for a single database. A "
+"factory for <literal>Session</literal> and a client of "
+"<literal>ConnectionProvider</literal>, <literal>SessionFactory</literal> can "
+"hold an optional (second-level) cache of data that is reusable between "
+"transactions at a process, or cluster, level."
+msgstr ""
+"ë¨ì¼ ë°ì´í°ë² ì´ì¤ì ëí´ ì»´íì¼ë 매íë¤ì ê´í ì°ë ëìì í, ë¶ë³ ìºì. "
+"<literal>Session</literal>ì ìí í©í 리ì <literal>ConnectionProvider</"
+"literal>, <literal>SessionFactory</literal>ì í´ë¼ì´ì¸í¸ë íë¡ì¸ì¤ ë 벨 ë"
+"ë í´ë¬ì¤í° ë 벨ìì í¸ëìì
ë¤ ì¬ì´ì ì¬ì¬ì©ì´ ê°ë¥í ë°ì´í°ì ëí ì íì "
+"ì¸ (second-level) ìºì를 ë³´ì í ì ìë¤."
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:107
#, no-c-format
-msgid "A single-threaded, short-lived object representing a conversation between the application and the persistent store. It wraps a JDBC connection and is a factory for <literal>Transaction</literal>. <literal>Session</literal> holds a mandatory first-level cache of persistent objects that are used when navigating the object graph or looking up objects by identifier."
-msgstr "ì´í리ì¼ì´ì
ê³¼ ìì ì ì¥ì ì¬ì´ì ëí를 íííë ë¨ì¼ ì°ë ëì´ë©´ì ìëª
ì´ ì§§ì ê°ì²´. ê·¸ê²ì JDBC 커ë¥ì
ì í¬ì¥íë©°, <literal>Transaction</literal>ì ìí í©í 리ì´ë¤. <literal>Session</literal>ì ê°ì²´ ê·¸ëí를 ë¤ë¹ê²ì´í¸ íê±°ë ìë³ìë¡ì ê°ì²´ë¤ì íìí ë ì¬ì©ëë ìì ê°ì²´ë¤ì ëí íìì ì¸ ì²« ë²ì§¸ ë 벨 ìºì를 ë³´ì íê³ ìë¤."
+msgid ""
+"A single-threaded, short-lived object representing a conversation between "
+"the application and the persistent store. It wraps a JDBC connection and is "
+"a factory for <literal>Transaction</literal>. <literal>Session</literal> "
+"holds a mandatory first-level cache of persistent objects that are used when "
+"navigating the object graph or looking up objects by identifier."
+msgstr ""
+"ì´í리ì¼ì´ì
ê³¼ ìì ì ì¥ì ì¬ì´ì ëí를 íííë ë¨ì¼ ì°ë ëì´ë©´ì ìëª
ì´ ì§§"
+"ì ê°ì²´. ê·¸ê²ì JDBC 커ë¥ì
ì í¬ì¥íë©°, <literal>Transaction</literal>ì ì"
+"í í©í 리ì´ë¤. <literal>Session</literal>ì ê°ì²´ ê·¸ëí를 ë¤ë¹ê²ì´í¸ íê±°ë "
+"ìë³ìë¡ì ê°ì²´ë¤ì íìí ë ì¬ì©ëë ìì ê°ì²´ë¤ì ëí íìì ì¸ ì²« ë²ì§¸ ë "
+"벨 ìºì를 ë³´ì íê³ ìë¤."
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
msgstr "ìì ê°ì²´ë¤ê³¼ ì½ë ì
ë¤"
#. Tag: para
-#: architecture.xml:119
#, no-c-format
-msgid "Short-lived, single threaded objects containing persistent state and business function. These can be ordinary JavaBeans/POJOs. They are associated with exactly one <literal>Session</literal>. Once the <literal>Session</literal> is closed, they will be detached and free to use in any application layer (for example, directly as data transfer objects to and from presentation)."
-msgstr "ìì ìíì ë¹ì§ëì¤ ê¸°ë¥ì í¬í¨íë ìëª
ì´ ì§§ì, ë¨ì¼ ì°ë ë ê°ì²´ë¤. ì´ê²ë¤ì íµìì ìë°ë¹ì¦/POJOë¤ì¼ ì ìë¤. ê·¸ê²ë¤ì ì íí í ê°ì <literal>Session</literal>ê³¼ ì°ê´ì§ìì§ë¤. <literal>Session</literal>ì´ ë«íë ìê°, ê·¸ê²ë¤ì ë¶ë¦¬ë ê²ì´ê³ ììì ì´í리ì¼ì´ì
ê³ì¸µìì ì¬ì©ì´ ìì ë¡ìì§ë¤(ì를 ë¤ë©´. ì§ì ì ì¼ë¡ í리ì í
ì´ì
ê³ì¸µ ì¬ì´ì ë°ì´í° ì ì¡ ê°ì²´ë¤ë¡ì)."
+msgid ""
+"Short-lived, single threaded objects containing persistent state and "
+"business function. These can be ordinary JavaBeans/POJOs. They are "
+"associated with exactly one <literal>Session</literal>. Once the "
+"<literal>Session</literal> is closed, they will be detached and free to use "
+"in any application layer (for example, directly as data transfer objects to "
+"and from presentation)."
+msgstr ""
+"ìì ìíì ë¹ì§ëì¤ ê¸°ë¥ì í¬í¨íë ìëª
ì´ ì§§ì, ë¨ì¼ ì°ë ë ê°ì²´ë¤. ì´ê²ë¤"
+"ì íµìì ìë°ë¹ì¦/POJOë¤ì¼ ì ìë¤. ê·¸ê²ë¤ì ì íí í ê°ì "
+"<literal>Session</literal>ê³¼ ì°ê´ì§ìì§ë¤. <literal>Session</literal>ì´ ë«í"
+"ë ìê°, ê·¸ê²ë¤ì ë¶ë¦¬ë ê²ì´ê³ ììì ì´í리ì¼ì´ì
ê³ì¸µìì ì¬ì©ì´ ìì ë¡ì"
+"ì§ë¤(ì를 ë¤ë©´. ì§ì ì ì¼ë¡ í리ì í
ì´ì
ê³ì¸µ ì¬ì´ì ë°ì´í° ì ì¡ ê°ì²´ë¤ë¡ì)."
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr "ì ì´(Transient, íì 주-ê³¼ë) ê°ì²´ë¤ê³¼ ì½ë ì
ë¤"
#. Tag: para
-#: architecture.xml:131
#, no-c-format
-msgid "Instances of persistent classes that are not currently associated with a <literal>Session</literal>. They may have been instantiated by the application and not yet persisted, or they may have been instantiated by a closed <literal>Session</literal>."
-msgstr "íì¬ <literal>Session</literal>ê³¼ ì°ê´ëì´ ìì§ ìì ìì í´ëì¤ë¤ì ì¸ì¤í´ì¤ë¤. ê·¸ê²ë¤ì ì´í리ì¼ì´ì
ì ìí´ ì´ê¸°í ëìê³ ìì§ ììí ëì§ ììê±°ë ê·¸ê²ë¤ì ë«í <literal>Session</literal>ì ìí´ ì´ê¸°í ëìì ì ìë¤."
+msgid ""
+"Instances of persistent classes that are not currently associated with a "
+"<literal>Session</literal>. They may have been instantiated by the "
+"application and not yet persisted, or they may have been instantiated by a "
+"closed <literal>Session</literal>."
+msgstr ""
+"íì¬ <literal>Session</literal>ê³¼ ì°ê´ëì´ ìì§ ìì ìì í´ëì¤ë¤ì ì¸ì¤í´ì¤"
+"ë¤. ê·¸ê²ë¤ì ì´í리ì¼ì´ì
ì ìí´ ì´ê¸°í ëìê³ ìì§ ììí ëì§ ììê±°ë ê·¸ê²"
+"ë¤ì ë«í <literal>Session</literal>ì ìí´ ì´ê¸°í ëìì ì ìë¤."
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:142
#, no-c-format
-msgid "(Optional) A single-threaded, short-lived object used by the application to specify atomic units of work. It abstracts the application from the underlying JDBC, JTA or CORBA transaction. A <literal>Session</literal> might span several <literal>Transaction</literal>s in some cases. However, transaction demarcation, either using the underlying API or <literal>Transaction</literal>, is never optional."
-msgstr "(ìµì
) ì´í리ì¼ì´ì
ì ìí´ ìì
ì ìì ë¨ì를 ì§ì íëë° ì¬ì©ëë ë¨ì¼ ì°ë ëì¸, ìëª
ì´ ì§§ì ê°ì²´. ê·¸ê²ì 기본 JDBC, JTA ëë CORBA í¸ëìì
ì¼ë¡ë¶í° ì´í리ì¼ì´ì
ì ì¶ìí ìí¨ë¤. ëªëª ê²½ì°ë¤ìì íëì <literal>Session</literal>ì ì¬ë¬ ê°ì <literal>Transaction</literal>ë¤ì 걸ì³ì ¸ ìì ì ìë¤. íì§ë§ 기본 API ëë <literal>Transaction</literal> ì¤ ì´ëê²ì ì¬ì©íë í¸ëìì
ê²½ê³ ì¤ì ì ê²°ì½ ìµì
ì´ ìëë¤."
+msgid ""
+"(Optional) A single-threaded, short-lived object used by the application to "
+"specify atomic units of work. It abstracts the application from the "
+"underlying JDBC, JTA or CORBA transaction. A <literal>Session</literal> "
+"might span several <literal>Transaction</literal>s in some cases. However, "
+"transaction demarcation, either using the underlying API or "
+"<literal>Transaction</literal>, is never optional."
+msgstr ""
+"(ìµì
) ì´í리ì¼ì´ì
ì ìí´ ìì
ì ìì ë¨ì를 ì§ì íëë° ì¬ì©ëë ë¨ì¼ ì°ë ë"
+"ì¸, ìëª
ì´ ì§§ì ê°ì²´. ê·¸ê²ì 기본 JDBC, JTA ëë CORBA í¸ëìì
ì¼ë¡ë¶í° ì´í"
+"리ì¼ì´ì
ì ì¶ìí ìí¨ë¤. ëªëª ê²½ì°ë¤ìì íëì <literal>Session</literal>"
+"ì ì¬ë¬ ê°ì <literal>Transaction</literal>ë¤ì 걸ì³ì ¸ ìì ì ìë¤. íì§ë§ "
+"기본 API ëë <literal>Transaction</literal> ì¤ ì´ëê²ì ì¬ì©íë í¸ëìì
ê²½"
+"ê³ ì¤ì ì ê²°ì½ ìµì
ì´ ìëë¤."
#. Tag: term
-#: architecture.xml:153
#, no-c-format
-msgid "ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</literal>)"
-msgstr "ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</literal>)"
+msgid ""
+"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
+"literal>)"
+msgstr ""
+"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
+"literal>)"
#. Tag: para
-#: architecture.xml:155
#, no-c-format
-msgid "(Optional) A factory for, and pool of, JDBC connections. It abstracts the application from underlying <literal>Datasource</literal> or <literal>DriverManager</literal>. It is not exposed to application, but it can be extended and/or implemented by the developer."
-msgstr "(ìµì
) JDBC ì°ê²°ë¤ì ìí í©í 리, ê·¸ë¦¬ê³ ê·¸ê²ë¤ì pool. ê·¸ê²ì 기본 <literal>Datasource</literal> ëë <literal>DriverManager</literal>ë¡ë¶í° ì´í리ì¼ì´ì
ì ì¶ìí ìí¨ë¤. ê·¸ê²ì ì´í리ì¼ì´ì
ì ë
¸ì¶ëì§ ìì§ë§, ê·¸ê²ì ê°ë°ìì ìí´ íì¥ ê·¸ë¦¬ê³ /ëë 구í ë ì ìë¤."
+msgid ""
+"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
+"application from underlying <literal>Datasource</literal> or "
+"<literal>DriverManager</literal>. It is not exposed to application, but it "
+"can be extended and/or implemented by the developer."
+msgstr ""
+"(ìµì
) JDBC ì°ê²°ë¤ì ìí í©í 리, ê·¸ë¦¬ê³ ê·¸ê²ë¤ì pool. ê·¸ê²ì 기본 "
+"<literal>Datasource</literal> ëë <literal>DriverManager</literal>ë¡ë¶í° ì´"
+"í리ì¼ì´ì
ì ì¶ìí ìí¨ë¤. ê·¸ê²ì ì´í리ì¼ì´ì
ì ë
¸ì¶ëì§ ìì§ë§, ê·¸ê²ì ê°"
+"ë°ìì ìí´ íì¥ ê·¸ë¦¬ê³ /ëë 구í ë ì ìë¤."
#. Tag: term
-#: architecture.xml:163
#, no-c-format
-msgid "TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
-msgstr "TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
+msgid ""
+"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
+msgstr ""
+"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:165
#, no-c-format
-msgid "(Optional) A factory for <literal>Transaction</literal> instances. It is not exposed to the application, but it can be extended and/or implemented by the developer."
-msgstr "(ìµì
) <literal>Transaction</literal> ì¸ì¤í´ì¤ë¤ì ìí í©í 리. ê·¸ê²ì ì´í리ì¼ì´ì
ì ë
¸ì¶ëì§ ìì§ë§, ê·¸ê²ì ê°ë°ìì ìí´ íì¥ ê·¸ë¦¬ê³ /ëë 구í ë ì ìë¤."
+msgid ""
+"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
+"exposed to the application, but it can be extended and/or implemented by the "
+"developer."
+msgstr ""
+"(ìµì
) <literal>Transaction</literal> ì¸ì¤í´ì¤ë¤ì ìí í©í 리. ê·¸ê²ì ì´í리"
+"ì¼ì´ì
ì ë
¸ì¶ëì§ ìì§ë§, ê·¸ê²ì ê°ë°ìì ìí´ íì¥ ê·¸ë¦¬ê³ /ëë 구í ë ì "
+"ìë¤."
-#. Tag: emphasis
-#: architecture.xml:172
-#, no-c-format
-msgid "Extension Interfaces"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
msgstr "Extension Interfaces"
#. Tag: para
-#: architecture.xml:174
#, no-c-format
-msgid "Hibernate offers a range of optional extension interfaces you can implement to customize the behavior of your persistence layer. See the API documentation for details."
-msgstr "íì´ë²ë¤ì´í¸ë ë¹ì ì´ ë¹ì ì ìì ê³ì¸µì íì를 ë§ì¶¤í ìí¤ê¸° ìí´ êµ¬íí ì ìë ì íì ì¸ íì¥ ì¸í°íì´ì¤ë¤ì ììì ì ê³µíë¤. ìì¸í ê²ì API 문ì를 ë³´ë¼."
+msgid ""
+"Hibernate offers a range of optional extension interfaces you can implement "
+"to customize the behavior of your persistence layer. See the API "
+"documentation for details."
+msgstr ""
+"íì´ë²ë¤ì´í¸ë ë¹ì ì´ ë¹ì ì ìì ê³ì¸µì íì를 ë§ì¶¤í ìí¤ê¸° ìí´ êµ¬íí ì "
+"ìë ì íì ì¸ íì¥ ì¸í°íì´ì¤ë¤ì ììì ì ê³µíë¤. ìì¸í ê²ì API 문ì를 ë³´"
+"ë¼."
#. Tag: para
-#: architecture.xml:183
#, no-c-format
-msgid "Given a \"minimal\" architecture, the application bypasses the <literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or <literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC directly."
-msgstr "\"ìµì\" ìí¤í
ì²ì ê²½ì°, ì´í리ì¼ì´ì
ì JTA ëë JDBCì ì§ì íµì í기 ìí´ <literal>Transaction</literal>/<literal>TransactionFactory</literal> ê·¸ë¦¬ê³ /ëë <literal>ConnectionProvider</literal> APIë¤ì 무ìíë¤."
+msgid ""
+"Given a \"minimal\" architecture, the application bypasses the "
+"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
+"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
+"directly."
+msgstr ""
+"\"ìµì\" ìí¤í
ì²ì ê²½ì°, ì´í리ì¼ì´ì
ì JTA ëë JDBCì ì§ì íµì í기 ìí´ "
+"<literal>Transaction</literal>/<literal>TransactionFactory</literal> ê·¸ë¦¬ê³ /"
+"ëë <literal>ConnectionProvider</literal> APIë¤ì 무ìíë¤."
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr "ì¸ì¤í´ì¤ ìíë¤"
#. Tag: para
-#: architecture.xml:192
#, no-c-format
-msgid "An instance of a persistent class can be in one of three different states. These states are defined in relation to a <emphasis>persistence context</emphasis>. The Hibernate <literal>Session</literal> object is the persistence context. The three different states are as follows:"
-msgstr "ìì í´ëì¤ë¤ì ì¸ì¤í´ì¤ë ì¸ê°ì ìíë¤ ì¤ íëì ëì¬ì§ ì ìë¤. ì´ë¤ ìíë¤ì <emphasis>ìì 컨í
ì¤í¸</emphasis>ì ê´ë ¨íì¬ ì ìëë¤. íì´ë²ë¤ì´í¸ <literal>Session</literal> ê°ì²´ë ìì 컨í
ì¤í¸ì´ë¤. ì¸ ê°ì ë¤ë¥¸ ìíë¤ì ë¤ìê³¼ ê°ë¤:"
+msgid ""
+"An instance of a persistent class can be in one of three different states. "
+"These states are defined in relation to a <emphasis>persistence context</"
+"emphasis>. The Hibernate <literal>Session</literal> object is the "
+"persistence context. The three different states are as follows:"
+msgstr ""
+"ìì í´ëì¤ë¤ì ì¸ì¤í´ì¤ë ì¸ê°ì ìíë¤ ì¤ íëì ëì¬ì§ ì ìë¤. ì´ë¤ ìí"
+"ë¤ì <emphasis>ìì 컨í
ì¤í¸</emphasis>ì ê´ë ¨íì¬ ì ìëë¤. íì´ë²ë¤ì´í¸ "
+"<literal>Session</literal> ê°ì²´ë ìì 컨í
ì¤í¸ì´ë¤. ì¸ ê°ì ë¤ë¥¸ ìíë¤ì ë¤"
+"ìê³¼ ê°ë¤:"
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
msgstr "transient"
#. Tag: para
-#: architecture.xml:202
#, no-c-format
-msgid "The instance is not associated with any persistence context. It has no persistent identity or primary key value."
-msgstr "ê·¸ ì¸ì¤í´ì¤ë ììì ìì 컨í
ì¤í¸ì ì°ê´ì§ìì ¸ ìì§ ìë¤. ê·¸ê²ì ìì ìë³ì ëë íë¼ì´ë¨¸ë¦¬ í¤ ê°ì ê°ì§ ìëë¤."
+msgid ""
+"The instance is not associated with any persistence context. It has no "
+"persistent identity or primary key value."
+msgstr ""
+"ê·¸ ì¸ì¤í´ì¤ë ììì ìì 컨í
ì¤í¸ì ì°ê´ì§ìì ¸ ìì§ ìë¤. ê·¸ê²ì ìì ìë³"
+"ì ëë íë¼ì´ë¨¸ë¦¬ í¤ ê°ì ê°ì§ ìëë¤."
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
msgstr "persistent"
#. Tag: para
-#: architecture.xml:212
#, no-c-format
-msgid "The instance is currently associated with a persistence context. It has a persistent identity (primary key value) and can have a corresponding row in the database. For a particular persistence context, Hibernate <emphasis>guarantees</emphasis> that persistent identity is equivalent to Java identity in relation to the in-memory location of the object."
-msgstr "ê·¸ ì¸ì¤í´ì¤ë íì¬ ìì 컨í
ì¤í¸ì ì°ê´ëì´ ìë¤. ê·¸ê²ì ìì ìë³ì(íë¼ì´ë¨¸ë¦¬ í¤ ê°)ì ê°ê³ ìê³ ë°ì´í°ë² ì´ì¤ ë´ìì íëì ëìíë íì ê°ì§ ì ìë¤. í¹ì ìì 컨í
ì¤í¸ì ê²½ì°, íì´ë²ë¤ì´í¸ë ìì ìë³ìê° ê°ì²´ì ë©ëª¨ë¦¬ ë´ ìì¹ì ê´íì¬ ìë° ìë³ìì ëë±í¨ì <emphasis>ë³´ì¦íë¤</emphasis>."
+msgid ""
+"The instance is currently associated with a persistence context. It has a "
+"persistent identity (primary key value) and can have a corresponding row in "
+"the database. For a particular persistence context, Hibernate "
+"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
+"Java identity in relation to the in-memory location of the object."
+msgstr ""
+"ê·¸ ì¸ì¤í´ì¤ë íì¬ ìì 컨í
ì¤í¸ì ì°ê´ëì´ ìë¤. ê·¸ê²ì ìì ìë³ì(íë¼ì´ë¨¸"
+"리 í¤ ê°)ì ê°ê³ ìê³ ë°ì´í°ë² ì´ì¤ ë´ìì íëì ëìíë íì ê°ì§ ì ìë¤. "
+"í¹ì ìì 컨í
ì¤í¸ì ê²½ì°, íì´ë²ë¤ì´í¸ë ìì ìë³ìê° ê°ì²´ì ë©ëª¨ë¦¬ ë´ ìì¹"
+"ì ê´íì¬ ìë° ìë³ìì ëë±í¨ì <emphasis>ë³´ì¦íë¤</emphasis>."
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
msgstr "detached"
#. Tag: para
-#: architecture.xml:226
#, no-c-format
-msgid "The instance was once associated with a persistence context, but that context was closed, or the instance was serialized to another process. It has a persistent identity and can have a corresponding row in the database. For detached instances, Hibernate does not guarantee the relationship between persistent identity and Java identity."
-msgstr "ê·¸ ì¸ì¤í´ì¤ë ì¼ë¨ ìì 컨í
ì¤í¸ì ì°ê´ëìì§ë§, ê·¸ 컨í
ì¤í¸ê° ë«íì¡ê±°ë, ëë ê·¸ ì¸ì¤í´ì¤ê° ë ë¤ë¥¸ íë¡ì¸ì¤ì ì§ë ¬í ëìë¤. ê·¸ê²ì ìì ìë³ì를 ê°ê³ ìì¼ë©°, ë°ì´í°ë² ì´ì¤ ë´ìì íëì ëìíë íì ê°ì§ ì ìë¤. ë¶ë¦¬ë ì¸ì¤í´ì¤ë¤ì ê²½ì°, íì´ë²ë¤ì´í¸ë ìì ìë³ìì ìë° ìë³ì ì¬ì´ì ê´ê³ë¥¼ ë³´ì¦íì§ ìëë¤."
+msgid ""
+"The instance was once associated with a persistence context, but that "
+"context was closed, or the instance was serialized to another process. It "
+"has a persistent identity and can have a corresponding row in the database. "
+"For detached instances, Hibernate does not guarantee the relationship "
+"between persistent identity and Java identity."
+msgstr ""
+"ê·¸ ì¸ì¤í´ì¤ë ì¼ë¨ ìì 컨í
ì¤í¸ì ì°ê´ëìì§ë§, ê·¸ 컨í
ì¤í¸ê° ë«íì¡ê±°ë, ë"
+"ë ê·¸ ì¸ì¤í´ì¤ê° ë ë¤ë¥¸ íë¡ì¸ì¤ì ì§ë ¬í ëìë¤. ê·¸ê²ì ìì ìë³ì를 ê°ê³ "
+"ìì¼ë©°, ë°ì´í°ë² ì´ì¤ ë´ìì íëì ëìíë íì ê°ì§ ì ìë¤. ë¶ë¦¬ë ì¸ì¤í´"
+"ì¤ë¤ì ê²½ì°, íì´ë²ë¤ì´í¸ë ìì ìë³ìì ìë° ìë³ì ì¬ì´ì ê´ê³ë¥¼ ë³´ì¦íì§ "
+"ìëë¤."
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
msgstr "JMX íµí©"
#. Tag: para
-#: architecture.xml:243
#, no-c-format
-msgid "JMX is the J2EE standard for the management of Java components. Hibernate can be managed via a JMX standard service. AN MBean implementation is provided in the distribution: <literal>org.hibernate.jmx.HibernateService</literal>."
-msgstr "JMXë ìë° ì»´í¬ëí¸ ê´ë¦¬ë¥¼ ìí J2EE íì¤ì´ë¤. íì´ë²ë¤ì´í¸ë JMX íì¤ ìë¹ì¤ë¥¼ íµí´ ê´ë¦¬ë ì ìë¤. íëì MBean 구íì´ ë°°í¬ë³¸ ë´ì ì ê³µëë¤: <literal>org.hibernate.jmx.HibernateService</literal>."
+msgid ""
+"JMX is the J2EE standard for the management of Java components. Hibernate "
+"can be managed via a JMX standard service. AN MBean implementation is "
+"provided in the distribution: <literal>org.hibernate.jmx.HibernateService</"
+"literal>."
+msgstr ""
+"JMXë ìë° ì»´í¬ëí¸ ê´ë¦¬ë¥¼ ìí J2EE íì¤ì´ë¤. íì´ë²ë¤ì´í¸ë JMX íì¤ ìë¹ì¤"
+"를 íµí´ ê´ë¦¬ë ì ìë¤. íëì MBean 구íì´ ë°°í¬ë³¸ ë´ì ì ê³µëë¤: "
+"<literal>org.hibernate.jmx.HibernateService</literal>."
#. Tag: para
-#: architecture.xml:249
#, no-c-format
-msgid "For an example of how to deploy Hibernate as a JMX service on the JBoss Application Server, please see the JBoss User Guide. JBoss AS also provides these benefits if you deploy using JMX:"
-msgstr "JBoss ì´í리ì¼ì´ì
ìë² ìì JMX ìë¹ì¤ë¡ì íì´ë²ë¤ì´í¸ë¥¼ ë°°í¬íë ë°©ë²ì ëí ìì ë JBoss ì¬ì©ì ê°ì´ë를 보길 ë°ëë¤. ë¹ì ì´ JMX를 ì¬ì©íì¬ ë°°í¬í ê²½ì°, JBoss ASë ëí ë¤ì ì´ì ë¤ì ì ê³µíë¤: "
+msgid ""
+"For an example of how to deploy Hibernate as a JMX service on the JBoss "
+"Application Server, please see the JBoss User Guide. JBoss AS also provides "
+"these benefits if you deploy using JMX:"
+msgstr ""
+"JBoss ì´í리ì¼ì´ì
ìë² ìì JMX ìë¹ì¤ë¡ì íì´ë²ë¤ì´í¸ë¥¼ ë°°í¬íë ë°©ë²ì ë"
+"í ìì ë JBoss ì¬ì©ì ê°ì´ë를 보길 ë°ëë¤. ë¹ì ì´ JMX를 ì¬ì©íì¬ ë°°í¬í ê²½"
+"ì°, JBoss ASë ëí ë¤ì ì´ì ë¤ì ì ê³µíë¤: "
#. Tag: para
-#: architecture.xml:257
#, no-c-format
-msgid "<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</literal>'s life cycle can be automatically bound to the scope of a JTA transaction. This means that you no longer have to manually open and close the <literal>Session</literal>; this becomes the job of a JBoss EJB interceptor. You also do not have to worry about transaction demarcation in your code (if you would like to write a portable persistence layer use the optional Hibernate <literal>Transaction</literal> API for this). You call the <literal>HibernateContext</literal> to access a <literal>Session</literal>."
-msgstr "<emphasis>ì¸ì
ê´ë¦¬</emphasis>: íì´ë²ë¤ì´í¸ <literal>Session</literal>ì ìëª
주기ë JTA í¸ëìì
ì ììì ìëì ì¼ë¡ 묶ì¬ì§ ì ìë¤. ì´ê²ì ë¹ì ì´ <literal>Session</literal>ì ë ì´ì ììì
ì¼ë¡ ì´ê±°ë ë«ì§ ììë ë¨ì ì미íë¤; ì´ê²ì JBoss ì¸í°ì
í°ì ìì
ì´ ëë¤. ë¹ì ì ëí ë ì´ì ë¹ì ì ì½ë ë´ìì í¸ëìì
격리ì ëí´ ê±±ì íì§ ììë ëë¤(ë§ì¼ ë¹ì ì´ ì´ìê°ë¥í ìì ê³ì¸µì ìì±íê³ ì ìí ê²½ì° ì´ê²ì ìí´ ì íì ì¼ë¡ íì´ë²ë¤ì´í¸ <literal>Transaction</literal> API를 ì¬ì©íë¼). ë¹ì ì <literal>Session</literal>ì ì ê·¼í기 ìí´ <literal>HibernateContext</literal>를 í¸ì¶íë¤."
+msgid ""
+"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
+"literal>'s life cycle can be automatically bound to the scope of a JTA "
+"transaction. This means that you no longer have to manually open and close "
+"the <literal>Session</literal>; this becomes the job of a JBoss EJB "
+"interceptor. You also do not have to worry about transaction demarcation in "
+"your code (if you would like to write a portable persistence layer use the "
+"optional Hibernate <literal>Transaction</literal> API for this). You call "
+"the <literal>HibernateContext</literal> to access a <literal>Session</"
+"literal>."
+msgstr ""
+"<emphasis>ì¸ì
ê´ë¦¬</emphasis>: íì´ë²ë¤ì´í¸ <literal>Session</literal>ì ì"
+"ëª
주기ë JTA í¸ëìì
ì ììì ìëì ì¼ë¡ 묶ì¬ì§ ì ìë¤. ì´ê²ì ë¹ì ì´ "
+"<literal>Session</literal>ì ë ì´ì ììì
ì¼ë¡ ì´ê±°ë ë«ì§ ììë ë¨ì ì미"
+"íë¤; ì´ê²ì JBoss ì¸í°ì
í°ì ìì
ì´ ëë¤. ë¹ì ì ëí ë ì´ì ë¹ì ì ì½ë ë´"
+"ìì í¸ëìì
격리ì ëí´ ê±±ì íì§ ììë ëë¤(ë§ì¼ ë¹ì ì´ ì´ìê°ë¥í ìì ê³"
+"층ì ìì±íê³ ì ìí ê²½ì° ì´ê²ì ìí´ ì íì ì¼ë¡ íì´ë²ë¤ì´í¸ "
+"<literal>Transaction</literal> API를 ì¬ì©íë¼). ë¹ì ì <literal>Session</"
+"literal>ì ì ê·¼í기 ìí´ <literal>HibernateContext</literal>를 í¸ì¶íë¤."
#. Tag: para
-#: architecture.xml:269
#, no-c-format
-msgid "<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed using a JBoss service deployment descriptor in an EAR and/or SAR file, as it supports all the usual configuration options of a Hibernate <literal>SessionFactory</literal>. However, you still need to name all your mapping files in the deployment descriptor. If you use the optional HAR deployment, JBoss will automatically detect all mapping files in your HAR file."
-msgstr "<emphasis>HAR ë°°í¬</emphasis>: JBossê° íì´ë²ë¤ì´í¸ <literal>SessionFactory</literal>ì ê±°ì 모ë êµ¬ì± ìµì
ë¤ì ì§ìíë¯ë¡, íì´ë²ë¤ì´í¸ JMS ìë¹ì¤ë JBoss ìë¹ì¤ ë°°í¬ ëì¤í¬ë¦½í°ë¥¼ ì¬ì©íì¬ EAR ê·¸ë¦¬ê³ /ëë SAR íì¼ë¡ì ë°°í¬ëë¤. íì§ë§ ë¹ì ì ì¬ì í ë°°í¬ ëì¤í¬ë¦½í° ë´ì 모ë ë¹ì ì 매í íì¼ë¤ì ëª
ëª
í íìê° ìë¤. ë§ì¼ ë¹ì ì´ ì íì ì¸ HAR ë°°í¬ë¥¼ ì¬ì©í ê²½ì°, JBossë ë¹ì ì HAR íì¼ ë´ì ìë 모ë 매í íì¼ë¤ì ìëì ì¼ë¡ ê²ì¶í ê²ì´ë¤."
+msgid ""
+"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
+"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
+"supports all the usual configuration options of a Hibernate "
+"<literal>SessionFactory</literal>. However, you still need to name all your "
+"mapping files in the deployment descriptor. If you use the optional HAR "
+"deployment, JBoss will automatically detect all mapping files in your HAR "
+"file."
+msgstr ""
+"<emphasis>HAR ë°°í¬</emphasis>: JBossê° íì´ë²ë¤ì´í¸ <literal>SessionFactory</"
+"literal>ì ê±°ì 모ë êµ¬ì± ìµì
ë¤ì ì§ìíë¯ë¡, íì´ë²ë¤ì´í¸ JMS ìë¹ì¤ë "
+"JBoss ìë¹ì¤ ë°°í¬ ëì¤í¬ë¦½í°ë¥¼ ì¬ì©íì¬ EAR ê·¸ë¦¬ê³ /ëë SAR íì¼ë¡ì ë°°í¬ë"
+"ë¤. íì§ë§ ë¹ì ì ì¬ì í ë°°í¬ ëì¤í¬ë¦½í° ë´ì 모ë ë¹ì ì 매í íì¼ë¤ì ëª
ëª
"
+"í íìê° ìë¤. ë§ì¼ ë¹ì ì´ ì íì ì¸ HAR ë°°í¬ë¥¼ ì¬ì©í ê²½ì°, JBossë ë¹ì ì "
+"HAR íì¼ ë´ì ìë 모ë 매í íì¼ë¤ì ìëì ì¼ë¡ ê²ì¶í ê²ì´ë¤."
#. Tag: para
-#: architecture.xml:280
#, no-c-format
-msgid "Consult the JBoss AS user guide for more information about these options."
-msgstr "ì´ë¤ ìµì
ë¤ì ëí ì¶ê° ì ë³´ë JBoss ì´í리ì¼ì´ì
ìë² ì¬ì©ì ê°ì´ë를 참조íë¼."
+msgid ""
+"Consult the JBoss AS user guide for more information about these options."
+msgstr ""
+"ì´ë¤ ìµì
ë¤ì ëí ì¶ê° ì ë³´ë JBoss ì´í리ì¼ì´ì
ìë² ì¬ì©ì ê°ì´ë를 참조í"
+"ë¼."
#. Tag: para
-#: architecture.xml:284
-#, no-c-format
-msgid "Another feature available as a JMX service is runtime Hibernate statistics. See <xref linkend=\"configuration-optional-statistics\"/> for more information."
-msgstr "JMX ìë¹ì¤ë¡ì ì´ì© ê°ë¥í ëë¤ë¥¸ í¹ì§ì ë°íì íì´ë²ë¤ì´í¸ íµê³ì´ë¤. ë¶ê° ì ë³´ë <xref linkend=\"configuration-optional-statistics\"/>를 ë³´ë¼."
+#, fuzzy, no-c-format
+msgid ""
+"Another feature available as a JMX service is runtime Hibernate statistics. "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
+"information."
+msgstr ""
+"JMX ìë¹ì¤ë¡ì ì´ì© ê°ë¥í ëë¤ë¥¸ í¹ì§ì ë°íì íì´ë²ë¤ì´í¸ íµê³ì´ë¤. ë¶ê° "
+"ì ë³´ë <xref linkend=\"configuration-optional-statistics\"/>를 ë³´ë¼."
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
msgstr "JCA ì§ì"
#. Tag: para
-#: architecture.xml:292
#, no-c-format
-msgid "Hibernate can also be configured as a JCA connector. Please see the website for more information. Please note, however, that at this stage Hibernate JCA support is under development."
-msgstr "íì´ë²ë¤ì´í¸ë ëí JCA 커ë¥í°ë¡ì 구ì±ë ìë ìë¤. ë¶ê° ì ë³´ë ì¹ ì¬ì´í¸ë¥¼ 보길 ë°ëë¤. íì§ë§ í ë¨ê²ìì íì´ë²ë¤ì´í¸ JCA ì§ìì ê°ë° ì¤ì ììì ì¼ëì ë길 ë°ëë¤."
+msgid ""
+"Hibernate can also be configured as a JCA connector. Please see the website "
+"for more information. Please note, however, that at this stage Hibernate JCA "
+"support is under development."
+msgstr ""
+"íì´ë²ë¤ì´í¸ë ëí JCA 커ë¥í°ë¡ì 구ì±ë ìë ìë¤. ë¶ê° ì ë³´ë ì¹ ì¬ì´í¸ë¥¼ "
+"보길 ë°ëë¤. íì§ë§ í ë¨ê²ìì íì´ë²ë¤ì´í¸ JCA ì§ìì ê°ë° ì¤ì ììì ì¼ë"
+"ì ë길 ë°ëë¤."
#. Tag: title
-#: architecture.xml:299
#, no-c-format
msgid "Contextual sessions"
msgstr "컨í
ì¤í¸ì ì¸ì
ë¤"
#. Tag: para
-#: architecture.xml:300
#, no-c-format
-msgid "Most applications using Hibernate need some form of \"contextual\" session, where a given session is in effect throughout the scope of a given context. However, across applications the definition of what constitutes a context is typically different; different contexts define different scopes to the notion of current. Applications using Hibernate prior to version 3.0 tended to utilize either home-grown <literal>ThreadLocal</literal>-based contextual sessions, helper classes such as <literal>HibernateUtil</literal>, or utilized third-party frameworks, such as Spring or Pico, which provided proxy/interception-based contextual sessions."
-msgstr "íì´ë²ë¤ì´í¸ë¥¼ ì¬ì©íë ëë¶ë¶ì ì´í리ì¼ì´ì
ë¤ì \"컨í
ì¤í¸ìì(contextual)\" ì¸ì
ì ëí ì´ë¤ íìì íìë¡ íë©°, ì¬ê¸°ì 주ì´ì§ ì¸ì
ì 주ì´ì§ 컨í
ì¤í¸ì ìì ë´ìì í¨ê³¼ê° ìë¤. íì§ë§ ì´í리ì¼ì´ì
ë¤ì ê°ë¡ì§ë¬ ì´ë 컨í
ì¤í¸ë¥¼ 구ì±íë ê²ì ëí ì ìë ì¼ë°ì ì¼ë¡ ë¤ë¥´ë¤; ê·¸ë¦¬ê³ ë¤ë¥¸ 컨í
ì¤í¸ë¤ì´ íì¬ë¼ê³ íë ê°ë
ì ëí´ ë¤ë¥¸ ììë¤ì ì ìíë¤. ë²ì 3.0 ì´ì ì íì´ë²ë¤ì´í¸ë¥¼ ì¬ì©íë ì´í리ì¼ì´ì
ë¤ì <literal>HibernateUtil</literal>ê³¼ ê°ì helper í´ëì¤ë¤ì¸, ìê°ìì°ë <literal>ThreadLocal</literal>-기ë°ì 컨í
ì¤í¸ ì¸ì
ë¤ì íì©íë ¤ê³ íê±°ë, íë½ì/ì¸í°ì
ì
기ë°ì 컨í
ì¤í¸ ì¸ì
ë¤ì ì ê³µí´ì£¼ìë, Springì´ë Picoì ê°ì ì 3ì íë ììë¤ì íì©íë¤."
+msgid ""
+"Most applications using Hibernate need some form of \"contextual\" session, "
+"where a given session is in effect throughout the scope of a given context. "
+"However, across applications the definition of what constitutes a context is "
+"typically different; different contexts define different scopes to the "
+"notion of current. Applications using Hibernate prior to version 3.0 tended "
+"to utilize either home-grown <literal>ThreadLocal</literal>-based contextual "
+"sessions, helper classes such as <literal>HibernateUtil</literal>, or "
+"utilized third-party frameworks, such as Spring or Pico, which provided "
+"proxy/interception-based contextual sessions."
+msgstr ""
+"íì´ë²ë¤ì´í¸ë¥¼ ì¬ì©íë ëë¶ë¶ì ì´í리ì¼ì´ì
ë¤ì \"컨í
ì¤í¸ìì(contextual)"
+"\" ì¸ì
ì ëí ì´ë¤ íìì íìë¡ íë©°, ì¬ê¸°ì 주ì´ì§ ì¸ì
ì 주ì´ì§ 컨í
ì¤í¸"
+"ì ìì ë´ìì í¨ê³¼ê° ìë¤. íì§ë§ ì´í리ì¼ì´ì
ë¤ì ê°ë¡ì§ë¬ ì´ë 컨í
ì¤í¸ë¥¼ "
+"구ì±íë ê²ì ëí ì ìë ì¼ë°ì ì¼ë¡ ë¤ë¥´ë¤; ê·¸ë¦¬ê³ ë¤ë¥¸ 컨í
ì¤í¸ë¤ì´ íì¬ë¼"
+"ê³ íë ê°ë
ì ëí´ ë¤ë¥¸ ììë¤ì ì ìíë¤. ë²ì 3.0 ì´ì ì íì´ë²ë¤ì´í¸ë¥¼ ì¬"
+"ì©íë ì´í리ì¼ì´ì
ë¤ì <literal>HibernateUtil</literal>ê³¼ ê°ì helper í´ëì¤"
+"ë¤ì¸, ìê°ìì°ë <literal>ThreadLocal</literal>-기ë°ì 컨í
ì¤í¸ ì¸ì
ë¤ì íì©"
+"íë ¤ê³ íê±°ë, íë½ì/ì¸í°ì
ì
기ë°ì 컨í
ì¤í¸ ì¸ì
ë¤ì ì ê³µí´ì£¼ìë, Spring"
+"ì´ë Picoì ê°ì ì 3ì íë ììë¤ì íì©íë¤."
#. Tag: para
-#: architecture.xml:309
#, no-c-format
-msgid "Starting with version 3.0.1, Hibernate added the <literal>SessionFactory.getCurrentSession()</literal> method. Initially, this assumed usage of <literal>JTA</literal> transactions, where the <literal>JTA</literal> transaction defined both the scope and context of a current session. Given the maturity of the numerous stand-alone <literal>JTA TransactionManager</literal> implementations, most, if not all, applications should be using <literal>JTA</literal> transaction management, whether or not they are deployed into a <literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-based contextual sessions are all you need to use."
-msgstr "ë²ì 3.0.1ììë¶í°, íì´ë²ë¤ì´í¸ë <literal>SessionFactory.getCurrentSession()</literal> ë©ìë를 ì¶ê°íë¤. ì´ê¸°ì ì´ê²ì <literal>JTA</literal> í¸ëìì
ì¬ì©ì ì ì íì¼ë©°, <literal>JTA</literal> í¸ëìì
ì í ì¸ì
ì ìì ë° ì»¨í
ì¤í¸ ë ë¤ ì ìíë¤. ë§ì ì¤í ëì¼ë¡ <literal>JTA TransactionManager</literal> 구íë¤ì´ ì±ìëë©´, ì ë¶ë ìëê² ì§ë§, ëë¶ë¶ì ì´í리ì¼ì´ì
ë¤ì´ <literal>J2EE</literal> 컨í
ì´ë ë´ë¡ ë°°í¬ëë ê·¸ë ì§ ìë ê°ì ëë¶ë¶ì ì´í리ì¼ì´ì
ë¤ì´ <literal>JTA</literal> í¸ëìì
ê´ë¦¬ë¥¼ ì¬ì©íê² ë ê²ì´ë¤. ê·¸ê²ì 기ì´íë©´, <literal>JTA</literal>ì 기ë°í 컨í
ì¤í¸ ì¸ì
ë¤ì ë¹ì ì´ ì¬ì©í íìê° ìë 모ë ê²ì´ë¤."
+msgid ""
+"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
+"getCurrentSession()</literal> method. Initially, this assumed usage of "
+"<literal>JTA</literal> transactions, where the <literal>JTA</literal> "
+"transaction defined both the scope and context of a current session. Given "
+"the maturity of the numerous stand-alone <literal>JTA TransactionManager</"
+"literal> implementations, most, if not all, applications should be using "
+"<literal>JTA</literal> transaction management, whether or not they are "
+"deployed into a <literal>J2EE</literal> container. Based on that, the "
+"<literal>JTA</literal>-based contextual sessions are all you need to use."
+msgstr ""
+"ë²ì 3.0.1ììë¶í°, íì´ë²ë¤ì´í¸ë <literal>SessionFactory.getCurrentSession"
+"()</literal> ë©ìë를 ì¶ê°íë¤. ì´ê¸°ì ì´ê²ì <literal>JTA</literal> í¸ëì"
+"ì
ì¬ì©ì ì ì íì¼ë©°, <literal>JTA</literal> í¸ëìì
ì í ì¸ì
ì ìì ë° ì»¨"
+"í
ì¤í¸ ë ë¤ ì ìíë¤. ë§ì ì¤í ëì¼ë¡ <literal>JTA TransactionManager</"
+"literal> 구íë¤ì´ ì±ìëë©´, ì ë¶ë ìëê² ì§ë§, ëë¶ë¶ì ì´í리ì¼ì´ì
ë¤ì´ "
+"<literal>J2EE</literal> 컨í
ì´ë ë´ë¡ ë°°í¬ëë ê·¸ë ì§ ìë ê°ì ëë¶ë¶ì ì´í"
+"리ì¼ì´ì
ë¤ì´ <literal>JTA</literal> í¸ëìì
ê´ë¦¬ë¥¼ ì¬ì©íê² ë ê²ì´ë¤. ê·¸ê²"
+"ì 기ì´íë©´, <literal>JTA</literal>ì 기ë°í 컨í
ì¤í¸ ì¸ì
ë¤ì ë¹ì ì´ ì¬ì©í "
+"íìê° ìë 모ë ê²ì´ë¤."
#. Tag: para
-#: architecture.xml:319
#, no-c-format
-msgid "However, as of version 3.1, the processing behind <literal>SessionFactory.getCurrentSession()</literal> is now pluggable. To that end, a new extension interface, <literal>org.hibernate.context.CurrentSessionContext</literal>, and a new configuration parameter, <literal>hibernate.current_session_context_class</literal>, have been added to allow pluggability of the scope and context of defining current sessions."
-msgstr "íì§ë§ íì¬ ë²ì 3.1ìì <literal>SessionFactory.getCurrentSession()</literal> ì´ë©´ì ì²ë¦¬ê³¼ì ì´ ì´ì íë¬ê·¸ ê°ë¥íë¤. ê·¸ê²ì¼ë¡ ì¸í´, íëì ìë¡ì´ íì¥ ì¸í°íì´ì¤, <literal>org.hibernate.context.CurrentSessionContext</literal>)ì íëì ìë¡ì´ êµ¬ì± íë¼ë¯¸í°, <literal>hibernate.current_session_context_class</literal>ê° íì¬ ì¸ì
ë¤ì ì ìíë ìì ë° ì»¨í
ì¤í¸ì íë¬ê·¸ ê°ë¥ì±ì íì©íëë¡ ì¶ê°ëìë¤."
+msgid ""
+"However, as of version 3.1, the processing behind <literal>SessionFactory."
+"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
+"interface, <literal>org.hibernate.context.CurrentSessionContext</literal>, "
+"and a new configuration parameter, <literal>hibernate."
+"current_session_context_class</literal>, have been added to allow "
+"pluggability of the scope and context of defining current sessions."
+msgstr ""
+"íì§ë§ íì¬ ë²ì 3.1ìì <literal>SessionFactory.getCurrentSession()</"
+"literal> ì´ë©´ì ì²ë¦¬ê³¼ì ì´ ì´ì íë¬ê·¸ ê°ë¥íë¤. ê·¸ê²ì¼ë¡ ì¸í´, íëì ìë¡"
+"ì´ íì¥ ì¸í°íì´ì¤, <literal>org.hibernate.context.CurrentSessionContext</"
+"literal>)ì íëì ìë¡ì´ êµ¬ì± íë¼ë¯¸í°, <literal>hibernate."
+"current_session_context_class</literal>ê° íì¬ ì¸ì
ë¤ì ì ìíë ìì ë° ì»¨í
"
+"ì¤í¸ì íë¬ê·¸ ê°ë¥ì±ì íì©íëë¡ ì¶ê°ëìë¤."
#. Tag: para
-#: architecture.xml:326
#, no-c-format
-msgid "See the Javadocs for the <literal>org.hibernate.context.CurrentSessionContext</literal> interface for a detailed discussion of its contract. It defines a single method, <literal>currentSession()</literal>, by which the implementation is responsible for tracking the current contextual session. Out-of-the-box, Hibernate comes with three implementations of this interface:"
-msgstr "ê·¸ê²ì ê³ì½ì ëí ìì¸í ë
¼ìë <literal>org.hibernate.context.CurrentSessionContext</literal> ì¸í°íì´ì¤ì ê´í javadocs를 ë³´ë¼. ê·¸ê²ì íëì ë©ìë, <literal>currentSession()</literal>를 ì ìíë©°, ê·¸ 구íì íì¬ì 컨í
ì¤í¸ ìì ì¸ì
ì ì¶ì í ì±
ìì´ ìë¤. ë¹ê³µìì ì¼ë¡, Hibernateë ì´ ì¸í°íì´ì¤ì ëí ì¸ ê°ì 구íë¤ì ë¶ìì ì¼ë¡ í¬í¨íê³ ìë¤."
+msgid ""
+"See the Javadocs for the <literal>org.hibernate.context."
+"CurrentSessionContext</literal> interface for a detailed discussion of its "
+"contract. It defines a single method, <literal>currentSession()</literal>, "
+"by which the implementation is responsible for tracking the current "
+"contextual session. Out-of-the-box, Hibernate comes with three "
+"implementations of this interface:"
+msgstr ""
+"ê·¸ê²ì ê³ì½ì ëí ìì¸í ë
¼ìë <literal>org.hibernate.context."
+"CurrentSessionContext</literal> ì¸í°íì´ì¤ì ê´í javadocs를 ë³´ë¼. ê·¸ê²ì í"
+"ëì ë©ìë, <literal>currentSession()</literal>를 ì ìíë©°, ê·¸ 구íì íì¬"
+"ì 컨í
ì¤í¸ ìì ì¸ì
ì ì¶ì í ì±
ìì´ ìë¤. ë¹ê³µìì ì¼ë¡, Hibernateë ì´ ì¸í°"
+"íì´ì¤ì ëí ì¸ ê°ì 구íë¤ì ë¶ìì ì¼ë¡ í¬í¨íê³ ìë¤."
#. Tag: para
-#: architecture.xml:336
#, no-c-format
-msgid "<literal>org.hibernate.context.JTASessionContext</literal>: current sessions are tracked and scoped by a <literal>JTA</literal> transaction. The processing here is exactly the same as in the older JTA-only approach. See the Javadocs for details."
-msgstr "<literal>org.hibernate.context.JTASessionContext</literal>: íì¬ ì¸ì
ë¤ì <literal>JTA</literal> í¸ëìì
ì ìí´ ì¶ì ëê³ ììí ëë¤. ì¬ê¸°ì ì²ë¦¬ë ìì ì JTA-ì ì© ì ê·¼ë²ê³¼ ì ííê² ê°ë¤. ìì¸í ê²ì Javadocs를 ë³´ë¼."
+msgid ""
+"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
+"are tracked and scoped by a <literal>JTA</literal> transaction. The "
+"processing here is exactly the same as in the older JTA-only approach. See "
+"the Javadocs for details."
+msgstr ""
+"<literal>org.hibernate.context.JTASessionContext</literal>: íì¬ ì¸ì
ë¤ì "
+"<literal>JTA</literal> í¸ëìì
ì ìí´ ì¶ì ëê³ ììí ëë¤. ì¬ê¸°ì ì²ë¦¬ë ì"
+"ì ì JTA-ì ì© ì ê·¼ë²ê³¼ ì ííê² ê°ë¤. ìì¸í ê²ì Javadocs를 ë³´ë¼."
#. Tag: para
-#: architecture.xml:344
#, no-c-format
-msgid "<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current sessions are tracked by thread of execution. See the Javadocs for details."
-msgstr "<literal>org.hibernate.context.ThreadLocalSessionContext</literal> :íì¬ ì¸ì
ë¤ì ì¤í ì°ë ëì ìí´ ì¶ì ëë¤. ìì¸í ê²ì ë¤ì javadocs를 ë³´ë¼."
+msgid ""
+"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
+"sessions are tracked by thread of execution. See the Javadocs for details."
+msgstr ""
+"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> :íì¬ ì¸ì
"
+"ë¤ì ì¤í ì°ë ëì ìí´ ì¶ì ëë¤. ìì¸í ê²ì ë¤ì javadocs를 ë³´ë¼."
#. Tag: para
-#: architecture.xml:350
#, no-c-format
-msgid "<literal>org.hibernate.context.ManagedSessionContext</literal>: current sessions are tracked by thread of execution. However, you are responsible to bind and unbind a <literal>Session</literal> instance with static methods on this class: it does not open, flush, or close a <literal>Session</literal>."
-msgstr "<literal>org.hibernate.context.ManagedSessionContext</literal> : íì¬ ì¸ì
ë¤ì ì¤í ì°ë ëì ìí´ ì¶ì ëë¤. íì§ë§ <literal>Session</literal> ì¸ì¤í´ì¤ë¥¼ ì´ í´ëì¤ ìì ìë static ë©ìëë¤ì ë°ì¸ë©ìí¤ê³ ì¸ë°ì¸ë© ìí¬ ì±
ìì´ ë¹ì ìê² ìë¤: ê·¸ê²ì <literal>Session</literal>ì ì´ì§ë flush ìí¤ê±°ë ë«ì§ ìëë¤."
+msgid ""
+"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
+"sessions are tracked by thread of execution. However, you are responsible to "
+"bind and unbind a <literal>Session</literal> instance with static methods on "
+"this class: it does not open, flush, or close a <literal>Session</literal>."
+msgstr ""
+"<literal>org.hibernate.context.ManagedSessionContext</literal> : íì¬ ì¸ì
ë¤"
+"ì ì¤í ì°ë ëì ìí´ ì¶ì ëë¤. íì§ë§ <literal>Session</literal> ì¸ì¤í´ì¤ë¥¼ "
+"ì´ í´ëì¤ ìì ìë static ë©ìëë¤ì ë°ì¸ë©ìí¤ê³ ì¸ë°ì¸ë© ìí¬ ì±
ìì´ ë¹ì "
+"ìê² ìë¤: ê·¸ê²ì <literal>Session</literal>ì ì´ì§ë flush ìí¤ê±°ë ë«ì§ ì"
+"ëë¤."
#. Tag: para
-#: architecture.xml:359
-#, no-c-format
-msgid "The first two implementations provide a \"one session - one database transaction\" programming model. This is also also known and used as <emphasis>session-per-request</emphasis>. The beginning and end of a Hibernate session is defined by the duration of a database transaction. If you use programmatic transaction demarcation in plain JSE without JTA, you are advised to use the Hibernate <literal>Transaction</literal> API to hide the underlying transaction system from your code. If you use JTA, you can utilize the JTA interfaces to demarcate transactions. If you execute in an EJB container that supports CMT, transaction boundaries are defined declaratively and you do not need any transaction or session demarcation operations in your code. Refer to <xref linkend=\"transactions\"/> for more information and code examples."
-msgstr "첫 ë ê°ì 구íë¤ì \"í ê°ì ì¸ì
- í ê°ì ë°ì´í°ë² ì´ì¤ í¸ëìì
\" íë¡ê·¸ëë° ëª¨íì ì ê³µíë¤. ì´ê²ì ëí <emphasis>ìì² ë¹ ì¸ì
</emphasis>ì¼ë¡ ìë ¤ì ¸ ìê³ ì¬ì©ëë¤. íì´ë²ë¤ì´í¸ ì¸ì
ì ììê³¼ ëì ë°ì´í°ë² ì´ì¤ í¸ëìì
ì ì¡´ì 기ê°ì ìí´ ì ìëë¤. ë§ì¼ ë¹ì ì´ JTAìì´ íë²í JSEìì íë¡ê·¸ë¨ ìì í¸ëìì
격리를 ì¬ì©í ê²½ì°, ë¹ì ìê² ë¹ì ì ì½ëìì 기본 í¸ëìì
ìì¤í
ì ìíìí¤ëë° íì´ë²ë¤ì´í¸ <literal>Transaction</literal> API를 ì¬ì©íëë¡ ê¶ì¥ëë¤.ë§ì¼ ë¹ì ì´ CMT를 ì§ìíë EJB 컨í
ì´ë ë´ìì ì¤íí ê²½ì°, í¸ëìì
ê²½ê³ë¤ì ì ì¸ì ì¼ë¡ ì ìëë©° ë¹ì ì´ ë¹ì ì ì½ëì ììì í¸ëìì
ëë ì¸ì
ê²½ê³ì¤ì ì¤í¼ë ì´ì
ì íìë¡ íì§ ìëë¤. ë§ì¼ ë¹ì ì´ CMT를 ì§ìíë íëì EJB 컨í
ì´ëìì ì¤íí ê²½ì°!
, í¸ëìì
ê²½ê³ë¤ì´ ì ì¸ì ì¼ë¡ ì ìëê³ ë¹ì ì ë¹ì ì ì½ë ë´ìì ì´ë í í¸ëìì
ì´ë ì¸ì
ê²½ê³êµ¬ë¶ ì¤í¼ë ì´ì
ë¤ì íìë¡ íì§ ìëë¤. ë¶ê° ì ë³´ì ì½ë ìì ë¤ì <xref linkend=\"transactions\"/>를 참조íë¼."
+#, fuzzy, no-c-format
+msgid ""
+"The first two implementations provide a \"one session - one database "
+"transaction\" programming model. This is also also known and used as "
+"<emphasis>session-per-request</emphasis>. The beginning and end of a "
+"Hibernate session is defined by the duration of a database transaction. If "
+"you use programmatic transaction demarcation in plain JSE without JTA, you "
+"are advised to use the Hibernate <literal>Transaction</literal> API to hide "
+"the underlying transaction system from your code. If you use JTA, you can "
+"utilize the JTA interfaces to demarcate transactions. If you execute in an "
+"EJB container that supports CMT, transaction boundaries are defined "
+"declaratively and you do not need any transaction or session demarcation "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
+"information and code examples."
+msgstr ""
+"첫 ë ê°ì 구íë¤ì \"í ê°ì ì¸ì
- í ê°ì ë°ì´í°ë² ì´ì¤ í¸ëìì
\" íë¡ê·¸ë"
+"ë° ëª¨íì ì ê³µíë¤. ì´ê²ì ëí <emphasis>ìì² ë¹ ì¸ì
</emphasis>ì¼ë¡ ìë ¤"
+"ì ¸ ìê³ ì¬ì©ëë¤. íì´ë²ë¤ì´í¸ ì¸ì
ì ììê³¼ ëì ë°ì´í°ë² ì´ì¤ í¸ëìì
ì ì¡´"
+"ì 기ê°ì ìí´ ì ìëë¤. ë§ì¼ ë¹ì ì´ JTAìì´ íë²í JSEìì íë¡ê·¸ë¨ ìì í¸"
+"ëìì
격리를 ì¬ì©í ê²½ì°, ë¹ì ìê² ë¹ì ì ì½ëìì 기본 í¸ëìì
ìì¤í
ì ì"
+"íìí¤ëë° íì´ë²ë¤ì´í¸ <literal>Transaction</literal> API를 ì¬ì©íëë¡ ê¶ì¥"
+"ëë¤.ë§ì¼ ë¹ì ì´ CMT를 ì§ìíë EJB 컨í
ì´ë ë´ìì ì¤íí ê²½ì°, í¸ëìì
ê²½"
+"ê³ë¤ì ì ì¸ì ì¼ë¡ ì ìëë©° ë¹ì ì´ ë¹ì ì ì½ëì ììì í¸ëìì
ëë ì¸ì
ê²½"
+"ê³ì¤ì ì¤í¼ë ì´ì
ì íìë¡ íì§ ìëë¤. ë§ì¼ ë¹ì ì´ CMT를 ì§ìíë íëì "
+"EJB 컨í
ì´ëìì ì¤íí ê²½ì°, í¸ëìì
ê²½ê³ë¤ì´ ì ì¸ì ì¼ë¡ ì ìëê³ ë¹ì ì ë¹"
+"ì ì ì½ë ë´ìì ì´ë í í¸ëìì
ì´ë ì¸ì
ê²½ê³êµ¬ë¶ ì¤í¼ë ì´ì
ë¤ì íìë¡ í"
+"ì§ ìëë¤. ë¶ê° ì ë³´ì ì½ë ìì ë¤ì <xref linkend=\"transactions\"/>를 참조"
+"íë¼."
#. Tag: para
-#: architecture.xml:371
#, no-c-format
-msgid "The <literal>hibernate.current_session_context_class</literal> configuration parameter defines which <literal>org.hibernate.context.CurrentSessionContext</literal> implementation should be used. For backwards compatibility, if this configuration parameter is not set but a <literal>org.hibernate.transaction.TransactionManagerLookup</literal> is configured, Hibernate will use the <literal>org.hibernate.context.JTASessionContext</literal>. Typically, the value of this parameter would just name the implementation class to use. For the three out-of-the-box implementations, however, there are three corresponding short names: \"jta\", \"thread\", and \"managed\"."
-msgstr "<literal>hibernate.current_session_context_class</literal> êµ¬ì± íë¼ë¯¸í°ë ì´ë <literal>org.hibernate.context.CurrentSessionContext</literal> 구íì´ ì¬ì©ë ê²ì¸ì§ë¥¼ ì ìíë¤. ìí¸íì ìí´. ë§ì¼ ì´ êµ¬ì± íë¼ë¯¸í°ê° ì¤ì ëì§ ìì§ë§ íëì <literal>org.hibernate.transaction.TransactionManagerLookup</literal>ì´ êµ¬ì±ëë ê²½ì°ì, íì´ë²ë¤ì´í¸ë <literal>org.hibernate.context.JTASessionContext</literal>를 ì¬ì©í ê²ì´ë¤. ì¼ë°ì ì¼ë¡, ì´ íë¼ë¯¸í°ì ê°ì ë¨ì§ ì¬ì©í 구í í´ëì¤ë¥¼ ëª
ëª
í ê²ì´ë¤; íì§ë§ ì¸ ê°ì ë¹ê³µìì ì¸ êµ¬íë¤ì ëí´, ì¸ ê°ì ëìíë ì§§ì ì´ë¦ë¤ \"jta\"ì \"thread\", ê·¸ë¦¬ê³ \"managed\"ê° ì¡´ì¬íë¤."
-
+msgid ""
+"The <literal>hibernate.current_session_context_class</literal> configuration "
+"parameter defines which <literal>org.hibernate.context."
+"CurrentSessionContext</literal> implementation should be used. For backwards "
+"compatibility, if this configuration parameter is not set but a <literal>org."
+"hibernate.transaction.TransactionManagerLookup</literal> is configured, "
+"Hibernate will use the <literal>org.hibernate.context.JTASessionContext</"
+"literal>. Typically, the value of this parameter would just name the "
+"implementation class to use. For the three out-of-the-box implementations, "
+"however, there are three corresponding short names: \"jta\", \"thread\", and "
+"\"managed\"."
+msgstr ""
+"<literal>hibernate.current_session_context_class</literal> êµ¬ì± íë¼ë¯¸í°ë ì´"
+"ë <literal>org.hibernate.context.CurrentSessionContext</literal> 구íì´ ì¬ì©"
+"ë ê²ì¸ì§ë¥¼ ì ìíë¤. ìí¸íì ìí´. ë§ì¼ ì´ êµ¬ì± íë¼ë¯¸í°ê° ì¤ì ëì§ ìì§ë§ "
+"íëì <literal>org.hibernate.transaction.TransactionManagerLookup</literal>"
+"ì´ êµ¬ì±ëë ê²½ì°ì, íì´ë²ë¤ì´í¸ë <literal>org.hibernate.context."
+"JTASessionContext</literal>를 ì¬ì©í ê²ì´ë¤. ì¼ë°ì ì¼ë¡, ì´ íë¼ë¯¸í°ì ê°ì "
+"ë¨ì§ ì¬ì©í 구í í´ëì¤ë¥¼ ëª
ëª
í ê²ì´ë¤; íì§ë§ ì¸ ê°ì ë¹ê³µìì ì¸ êµ¬íë¤ì "
+"ëí´, ì¸ ê°ì ëìíë ì§§ì ì´ë¦ë¤ \"jta\"ì \"thread\", ê·¸ë¦¬ê³ \"managed"
+"\"ê° ì¡´ì¬íë¤."
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2010-01-12 20:59+0900\n"
"Last-Translator: Jongdae Kim <jdkim528 at korea.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,1085 +11,1108 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
msgstr "ì°ê´ 매íë¤"
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr "ê°ì"
#. Tag: para
-#: association_mapping.xml:35
#, no-c-format
-msgid "Association mappings are often the most difficult thing to implement correctly. In this section we examine some canonical cases one by one, starting with unidirectional mappings and then bidirectional cases. We will use <literal>Person</literal> and <literal>Address</literal> in all the examples."
-msgstr "ì°ê´ 매íë¤ì ì¢
ì¢
ì ííê² êµ¬ííë ê²ì´ ê°ì¥ ì´ë ¤ì´ ê²ì´ë¤. ì´ ì ìì ì°ë¦¬ë ë¨ë°©í¥ 매íë¤ìì ììíì¬, ìë°©í¥ ë§¤íì ê²½ì°ê¹ì§ íëì© ëªëª ì ê·ì ì¸ ê²½ì°ë¤ì ë
¼ìí ê²ì´ë¤. ì°ë¦¬ë 모ë ìì ë¤ìì <literal>Person</literal>ê³¼ <literal>Address</literal>를 ì¬ì©í ê²ì´ë¤."
+msgid ""
+"Association mappings are often the most difficult thing to implement "
+"correctly. In this section we examine some canonical cases one by one, "
+"starting with unidirectional mappings and then bidirectional cases. We will "
+"use <literal>Person</literal> and <literal>Address</literal> in all the "
+"examples."
+msgstr ""
+"ì°ê´ 매íë¤ì ì¢
ì¢
ì ííê² êµ¬ííë ê²ì´ ê°ì¥ ì´ë ¤ì´ ê²ì´ë¤. ì´ ì ìì ì°ë¦¬"
+"ë ë¨ë°©í¥ 매íë¤ìì ììíì¬, ìë°©í¥ ë§¤íì ê²½ì°ê¹ì§ íëì© ëªëª ì ê·ì ì¸ ê²½"
+"ì°ë¤ì ë
¼ìí ê²ì´ë¤. ì°ë¦¬ë 모ë ìì ë¤ìì <literal>Person</literal>ê³¼ "
+"<literal>Address</literal>를 ì¬ì©í ê²ì´ë¤."
#. Tag: para
-#: association_mapping.xml:43
#, no-c-format
-msgid "Associations will be classified by multiplicity and whether or not they map to an intervening join table."
-msgstr "ì°ê´ë¤ì ë¤ê°ì± ê·¸ë¦¬ê³ ì¤ì¬íë join í
ì´ë¸ë¡ 매íìí¬ ê²ì¸ì§ ì¬ë¶ì ë°ë¼ ë¶ë¥ë ê²ì´ë¤."
+msgid ""
+"Associations will be classified by multiplicity and whether or not they map "
+"to an intervening join table."
+msgstr ""
+"ì°ê´ë¤ì ë¤ê°ì± ê·¸ë¦¬ê³ ì¤ì¬íë join í
ì´ë¸ë¡ 매íìí¬ ê²ì¸ì§ ì¬ë¶ì ë°ë¼ ë¶"
+"ë¥ë ê²ì´ë¤."
#. Tag: para
-#: association_mapping.xml:48
#, no-c-format
-msgid "Nullable foreign keys are not considered to be good practice in traditional data modelling, so our examples do not use nullable foreign keys. This is not a requirement of Hibernate, and the mappings will work if you drop the nullability constraints."
-msgstr "ëê°ì´ íì©ëë ì¸ë í¤ë¤ì ì íµì ì¸ ë°ì´í° 모ë¸ë§ìì ì¢ì ì¬ë¡ë¡ ê°ì£¼ëì§ ìì¼ë¯ë¡, ì°ë¦¬ì ìì ë¤ì ë ê°ì´ íì©ëë ì¸ë í¤ë¤ì ì¬ì©íì§ ìëë¤. ì´ê²ì íì´ë²ë¤ì´í¸ì ì¬ìì´ ìëë©°, ë¹ì ì´ ë íì© ì»¨ì¤í¸ë ì¸í¸ë¤ì ëë¡ìí¬ ê²½ì°ì 매íë¤ì´ ëìí ê²ì´ë¤."
+msgid ""
+"Nullable foreign keys are not considered to be good practice in traditional "
+"data modelling, so our examples do not use nullable foreign keys. This is "
+"not a requirement of Hibernate, and the mappings will work if you drop the "
+"nullability constraints."
+msgstr ""
+"ëê°ì´ íì©ëë ì¸ë í¤ë¤ì ì íµì ì¸ ë°ì´í° 모ë¸ë§ìì ì¢ì ì¬ë¡ë¡ ê°ì£¼ëì§ "
+"ìì¼ë¯ë¡, ì°ë¦¬ì ìì ë¤ì ë ê°ì´ íì©ëë ì¸ë í¤ë¤ì ì¬ì©íì§ ìëë¤. ì´ê²"
+"ì íì´ë²ë¤ì´í¸ì ì¬ìì´ ìëë©°, ë¹ì ì´ ë íì© ì»¨ì¤í¸ë ì¸í¸ë¤ì ëë¡ìí¬ ê²½"
+"ì°ì 매íë¤ì´ ëìí ê²ì´ë¤."
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr "ë¨ë°©í¥ ì°ê´ë¤"
#. Tag: title
-#: association_mapping.xml:61
-#: association_mapping.xml:132
#, no-c-format
msgid "Many-to-one"
msgstr "ë¤-ë-ì¼"
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
-msgid "A <emphasis>unidirectional many-to-one association</emphasis> is the most common kind of unidirectional association."
-msgstr "<emphasis>ë¨ë°©í¥ many-to-one ì°ê´</emphasis>ì ê°ì¥ ê³µíµì ì¸ ì¢
ë¥ì ë¨ë°©í¥ ì°ê´ì´ë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:68
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
+"common kind of unidirectional association."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>ë¨ë°©í¥ many-to-one ì°ê´</emphasis>ì ê°ì¥ ê³µíµì ì¸ ì¢
ë¥ì ë¨ë°©í¥ ì°"
+"ê´ì´ë¤."
-#. Tag: programlisting
-#: association_mapping.xml:69
-#: association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:74
-#: association_mapping.xml:145
-#: association_mapping.xml:210
#, no-c-format
msgid "One-to-one"
msgstr "ì¼-ë-ì¼"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
-msgid "A <emphasis>unidirectional one-to-one association on a foreign key</emphasis> is almost identical. The only difference is the column unique constraint."
-msgstr "<emphasis>foreign í¤ì ëí ë¨ë°©í¥ one-to-one ì°ê´ì ëê° ì주 ëì¼íë¤.</emphasis> ì ì¼í ì°¨ì´ì ì ì»¬ë¼ ì ì¼(unique) 컨ì¤í¸ë ì¸í¸ì´ë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:81
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional one-to-one association on a foreign key</"
+"emphasis> is almost identical. The only difference is the column unique "
+"constraint."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>foreign í¤ì ëí ë¨ë°©í¥ one-to-one ì°ê´ì ëê° ì주 ëì¼íë¤.</"
+"emphasis> ì ì¼í ì°¨ì´ì ì ì»¬ë¼ ì ì¼(unique) 컨ì¤í¸ë ì¸í¸ì´ë¤."
-#. Tag: programlisting
-#: association_mapping.xml:82
-#: association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: para
-#: association_mapping.xml:84
#, no-c-format
-msgid "A <emphasis>unidirectional one-to-one association on a primary key</emphasis> usually uses a special id generator In this example, however, we have reversed the direction of the association:"
-msgstr "<emphasis>íë¼ì´ë¨¸ë¦¬ í¤ì ëí ë¨ë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì ëê° í¹ë³í id ìì±ì를 ì¬ì©íë¤. íì§ë§ ì´ ìì ìì ì°ë¦¬ë ì°ê´ì ë°©í¥ì ìì ìì¼°ë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:90
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
+"A <emphasis>unidirectional one-to-one association on a primary key</"
+"emphasis> usually uses a special id generator In this example, however, we "
+"have reversed the direction of the association:"
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
+"<emphasis>íë¼ì´ë¨¸ë¦¬ í¤ì ëí ë¨ë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì ëê° í¹ë³í "
+"id ìì±ì를 ì¬ì©íë¤. íì§ë§ ì´ ìì ìì ì°ë¦¬ë ì°ê´ì ë°©í¥ì ìì ìì¼°ë¤:"
-#. Tag: programlisting
-#: association_mapping.xml:91
-#: association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:96
-#: association_mapping.xml:118
#, no-c-format
msgid "One-to-many"
msgstr "ì¼-ë-ë¤ "
#. Tag: para
-#: association_mapping.xml:98
#, no-c-format
-msgid "A <emphasis>unidirectional one-to-many association on a foreign key</emphasis> is an unusual case, and is not recommended."
-msgstr "<emphasis>ì¸ë í¤ì ëí ë¨ë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ìë¤ë¥¸ ê²½ì°ì´ë©°, ê¶ì¥ëì§ ìëë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:103
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional one-to-many association on a foreign key</"
+"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>ì¸ë í¤ì ëí ë¨ë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ìë¤ë¥¸ ê²½ì°ì´ë©°, "
+"ê¶ì¥ëì§ ìëë¤."
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId bigint not null )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId bigint not null )\n"
-" ]]>"
-
#. Tag: para
-#: association_mapping.xml:106
#, no-c-format
msgid "You should instead use a join table for this kind of association."
-msgstr "ëì ì ë¹ì ì ì´ë° ì¢
ë¥ì ì°ê´ì ëí´ íëì join í
ì´ë¸ì ì¬ì©í´ì¼ íë¤."
+msgstr ""
+"ëì ì ë¹ì ì ì´ë° ì¢
ë¥ì ì°ê´ì ëí´ íëì join í
ì´ë¸ì ì¬ì©í´ì¼ íë¤."
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "join í
ì´ë¸ë¤ì ëí ë¨ë°©í¥ ì°ê´ë¤"
#. Tag: para
-#: association_mapping.xml:120
#, no-c-format
-msgid "A <emphasis>unidirectional one-to-many association on a join table</emphasis> is the preferred option. Specifying <literal>unique=\"true\"</literal>, changes the multiplicity from many-to-many to one-to-many."
-msgstr "<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ì í¸ëë ìµì
ì´ë¤. <literal>unique=\"true\"</literal>를 ì§ì íì¬, ë¤-ë-ë¤ìì ì¼-ë-ë¤ë¡ ë¤ì¤ê°ì ë³ê²½ìì¼ë¼."
-
-#. Tag: programlisting
-#: association_mapping.xml:126
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional one-to-many association on a join table</"
+"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
+"literal>, changes the multiplicity from many-to-many to one-to-many."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ì í¸ëë ìµì
"
+"ì´ë¤. <literal>unique=\"true\"</literal>를 ì§ì íì¬, ë¤-ë-ë¤ìì ì¼-ë-ë¤ë¡ "
+"ë¤ì¤ê°ì ë³ê²½ìì¼ë¼."
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: para
-#: association_mapping.xml:134
#, no-c-format
-msgid "A <emphasis>unidirectional many-to-one association on a join table</emphasis> is common when the association is optional. For example:"
-msgstr "<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ë¤-ë-ì¼ ì°ê´</emphasis>ì ê·¸ ì°ê´ì´ ì íì ì¼ ë ê³µíµì ì´ë¤. ì를 ë¤ë©´:"
-
-#. Tag: programlisting
-#: association_mapping.xml:139
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional many-to-one association on a join table</"
+"emphasis> is common when the association is optional. For example:"
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ë¤-ë-ì¼ ì°ê´</emphasis>ì ê·¸ ì°ê´ì´ ì í"
+"ì ì¼ ë ê³µíµì ì´ë¤. ì를 ë¤ë©´:"
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: para
-#: association_mapping.xml:147
#, no-c-format
-msgid "A <emphasis>unidirectional one-to-one association on a join table</emphasis> is possible, but extremely unusual."
-msgstr "<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì ê°ë¥íì§ë§, ê·¹í íµìì ì´ì§ ìë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:152
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
+"is possible, but extremely unusual."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"<emphasis>join í
ì´ë¸ì ëí ë¨ë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì ê°ë¥íì§ë§, ê·¹"
+"í íµìì ì´ì§ ìë¤."
-#. Tag: programlisting
-#: association_mapping.xml:153
-#: association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:158
-#: association_mapping.xml:263
#, no-c-format
msgid "Many-to-many"
msgstr "ë¤-ë-ë¤"
#. Tag: para
-#: association_mapping.xml:160
#, no-c-format
-msgid "Finally, here is an example of a <emphasis>unidirectional many-to-many association</emphasis>."
-msgstr "ë§ì§ë§ì¼ë¡, ë¤ìì <emphasis>ë¨ë°©í¥ ë¤-ë-ë¤ ì°ê´</emphasis>ì ëí ìì ì´ë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"Finally, here is an example of a <emphasis>unidirectional many-to-many "
+"association</emphasis>."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
+"ë§ì§ë§ì¼ë¡, ë¤ìì <emphasis>ë¨ë°©í¥ ë¤-ë-ë¤ ì°ê´</emphasis>ì ëí ìì ì´ë¤."
-#. Tag: programlisting
-#: association_mapping.xml:165
-#: association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
msgstr "ìë°©í¥ ì°ê´ë¤"
#. Tag: title
-#: association_mapping.xml:175
-#: association_mapping.xml:236
#, no-c-format
msgid "one-to-many / many-to-one"
msgstr "ì¼-ë-ë¤ / ë¤-ë-ì¼"
#. Tag: para
-#: association_mapping.xml:177
#, no-c-format
-msgid "A <emphasis>bidirectional many-to-one association</emphasis> is the most common kind of association. The following example illustrates the standard parent/child relationship."
-msgstr "<emphasis>ìë°©í¥ ë¤-ë-ì¼ ì°ê´</emphasis>ì ê°ì¥ ê³µíµë ì¢
ë¥ì ì°ê´ì´ë¤. ë¤ì ìì ë íì¤ ë¶ëª¨/ìì ê´ê³ë¥¼ ì¤ëª
íë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:183
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
+"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
+"common kind of association. The following example illustrates the standard "
+"parent/child relationship."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
+"<emphasis>ìë°©í¥ ë¤-ë-ì¼ ì°ê´</emphasis>ì ê°ì¥ ê³µíµë ì¢
ë¥ì ì°ê´ì´ë¤. ë¤"
+"ì ìì ë íì¤ ë¶ëª¨/ìì ê´ê³ë¥¼ ì¤ëª
íë¤."
#. Tag: para
-#: association_mapping.xml:187
#, no-c-format
-msgid "If you use a <literal>List</literal>, or other indexed collection, set the <literal>key</literal> column of the foreign key to <literal>not null</literal>. Hibernate will manage the association from the collections side to maintain the index of each element, making the other side virtually inverse by setting <literal>update=\"false\"</literal> and <literal>insert=\"false\"</literal>:"
-msgstr "ë§ì¼ ë¹ì ì´ <literal>List</literal>, ëë ë¤ë¥¸ ì¸ë±ì± ë ì½ë ì
ì ì¬ì©í ê²½ì°, ì¸ë í¤ì <literal>key</literal> 컬ë¼ì <literal>not null</literal>ë¡ ì¤ì íë¼. íì´ë²ë¤ì´í¸ë ê°ê°ì ììì ì¸ë±ì¤ë¥¼ ê´ë¦¬í기 ìí´ <literal>update=\"false\"</literal>ì <literal>insert=\"false\"</literal>를 ì¤ì íì¬ ë¤ë¥¸ 측ì ê°ìì ì¼ë¡ ìíìí´ì¼ë¡ì ì½ë ì
ë¤ ì¸¡ìì ê·¸ ì°ê´ì ê´ë¦¬í ê²ì´ë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:195
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
+"If you use a <literal>List</literal>, or other indexed collection, set the "
+"<literal>key</literal> column of the foreign key to <literal>not null</"
+"literal>. Hibernate will manage the association from the collections side to "
+"maintain the index of each element, making the other side virtually inverse "
+"by setting <literal>update=\"false\"</literal> and <literal>insert=\"false"
+"\"</literal>:"
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
+"ë§ì¼ ë¹ì ì´ <literal>List</literal>, ëë ë¤ë¥¸ ì¸ë±ì± ë ì½ë ì
ì ì¬ì©í ê²½"
+"ì°, ì¸ë í¤ì <literal>key</literal> 컬ë¼ì <literal>not null</literal>ë¡ ì¤"
+"ì íë¼. íì´ë²ë¤ì´í¸ë ê°ê°ì ììì ì¸ë±ì¤ë¥¼ ê´ë¦¬í기 ìí´ <literal>update="
+"\"false\"</literal>ì <literal>insert=\"false\"</literal>를 ì¤ì íì¬ ë¤ë¥¸ 측"
+"ì ê°ìì ì¼ë¡ ìíìí´ì¼ë¡ì ì½ë ì
ë¤ ì¸¡ìì ê·¸ ì°ê´ì ê´ë¦¬í ê²ì´ë¤:"
#. Tag: para
-#: association_mapping.xml:197
#, no-c-format
-msgid "If the underlying foreign key column is <literal>NOT NULL</literal>, it is important that you define <literal>not-null=\"true\"</literal> on the <literal><key></literal> element of the collection mapping. Do not only declare <literal>not-null=\"true\"</literal> on a possible nested <literal><column></literal> element, but on the <literal><key></literal> element."
-msgstr "ë§ì¼ 기본 ì¸ë í¤ ì»¬ë¼ì´ <literal>NOT NULL</literal>ì¼ ê²½ì°, ë¹ì ì´ ì½ë ì
매íì <literal><key></literal>ì <literal>not-null=\"true\"</literal>를 ì ìíë ê²ì´ ì¤ìíë¤. <literal>not-null=\"true\"</literal>를 ê°ë¥í ë´í¬ë <literal><column></literal> ìì ë¿ë§ ìëë¼, <literal><key></literal> ìì ììë ì ì¸íë¼."
+msgid ""
+"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
+"important that you define <literal>not-null=\"true\"</literal> on the "
+"<literal><key></literal> element of the collection mapping. Do not "
+"only declare <literal>not-null=\"true\"</literal> on a possible nested "
+"<literal><column></literal> element, but on the <literal><key></"
+"literal> element."
+msgstr ""
+"ë§ì¼ 기본 ì¸ë í¤ ì»¬ë¼ì´ <literal>NOT NULL</literal>ì¼ ê²½ì°, ë¹ì ì´ ì½ë ì
매"
+"íì <literal><key></literal>ì <literal>not-null=\"true\"</literal>를 "
+"ì ìíë ê²ì´ ì¤ìíë¤. <literal>not-null=\"true\"</literal>를 ê°ë¥í ë´í¬"
+"ë <literal><column></literal> ìì ë¿ë§ ìëë¼, <literal><key></"
+"literal> ìì ììë ì ì¸íë¼."
#. Tag: para
-#: association_mapping.xml:212
#, no-c-format
-msgid "A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> is common:"
+msgid ""
+"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
+"is common:"
msgstr "<emphasis>ì¸ë í¤ì ëí ìë°©í¥ì¼-ë-ì¼ ì°ê´</emphasis>ì ê³µíµì ì´ë¤:"
-#. Tag: programlisting
-#: association_mapping.xml:217
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-
#. Tag: para
-#: association_mapping.xml:220
#, no-c-format
-msgid "A <emphasis>bidirectional one-to-one association on a primary key</emphasis> uses the special id generator:"
-msgstr "<emphasis>íë¼ì´ë¨¸ë¦¬ í¤ì ëí ìë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì í¹ë³í id ìì±ì를 ì¬ì©íë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
+"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
+"uses the special id generator:"
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
+"<emphasis>íë¼ì´ë¨¸ë¦¬ í¤ì ëí ìë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì í¹ë³í id ì"
+"ì±ì를 ì¬ì©íë¤:"
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr "join í
ì´ë¸ë¤ì ëí ìë°©í¥ ì°ê´ë¤"
#. Tag: para
-#: association_mapping.xml:238
#, no-c-format
-msgid "The following is an example of a <emphasis>bidirectional one-to-many association on a join table</emphasis>. The <literal>inverse=\"true\"</literal> can go on either end of the association, on the collection, or on the join."
-msgstr "ë¤ìì <emphasis>join í
ì´ë¸ì ëí ìë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ëí ìì ì´ë¤. <literal>inverse=\"true\"</literal>ë ì°ê´ì ì´ë 측ì´ë ì§, ì½ë ì
측ìë, ëë join 측ìë ì¸ ì ìë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:244
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
+"The following is an example of a <emphasis>bidirectional one-to-many "
+"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
+"literal> can go on either end of the association, on the collection, or on "
+"the join."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
+"ë¤ìì <emphasis>join í
ì´ë¸ì ëí ìë°©í¥ ì¼-ë-ë¤ ì°ê´</emphasis>ì ëí ì"
+"ì ì´ë¤. <literal>inverse=\"true\"</literal>ë ì°ê´ì ì´ë 측ì´ë ì§, ì½ë ì
측"
+"ìë, ëë join 측ìë ì¸ ì ìë¤."
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-
#. Tag: title
-#: association_mapping.xml:250
#, no-c-format
msgid "one to one"
msgstr "one to one"
#. Tag: para
-#: association_mapping.xml:252
#, no-c-format
-msgid "A <emphasis>bidirectional one-to-one association on a join table</emphasis> is possible, but extremely unusual."
-msgstr "<emphasis>join í
ì´ë¸ì ëí ìë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì´ ê°ë¥íì§ë§, ê·¹í íµìì ì´ì§ ìë¤."
-
-#. Tag: programlisting
-#: association_mapping.xml:257
-#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
+"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
+"is possible, but extremely unusual."
msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
+"<emphasis>join í
ì´ë¸ì ëí ìë°©í¥ ì¼-ë-ì¼ ì°ê´</emphasis>ì´ ê°ë¥íì§ë§, ê·¹"
+"í íµìì ì´ì§ ìë¤."
#. Tag: para
-#: association_mapping.xml:265
#, no-c-format
-msgid "Here is an example of a <emphasis>bidirectional many-to-many association</emphasis>."
+msgid ""
+"Here is an example of a <emphasis>bidirectional many-to-many association</"
+"emphasis>."
msgstr "ì´ê²ì <emphasis>ìë°©í¥ ë¤-ë-ë¤ ì°ê´</emphasis>ì ëí ìì ì´ë¤."
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
msgstr "ë³´ë¤ ë³µì¡í ì°ê´ 매íë¤"
#. Tag: para
-#: association_mapping.xml:280
#, no-c-format
-msgid "More complex association joins are <emphasis>extremely</emphasis> rare. Hibernate handles more complex situations by using SQL fragments embedded in the mapping document. For example, if a table with historical account information data defines <literal>accountNumber</literal>, <literal>effectiveEndDate</literal> and <literal>effectiveStartDate</literal>columns, it would be mapped as follows:"
-msgstr "ë³´ë¤ ë³µì¡í ì°ê´ joinë¤ì <emphasis>ê·¹í</emphasis> ë물ë¤. íì´ë²ë¤ì´í¸ë 매í 문ìë¤ ë´ì ì½ì
ë SQL ì¡°ê°ë¤ì ì¬ì©íì¬ ë³´ë¤ ë³µì¡í ìí©ë¤ì ì²ë¦¬íë¤. ì를 ë¤ì´, ë§ì¼ ê³ì¢ ë´ì ì ë³´ ë°ì´í°ë¥¼ ê°ì§ í
ì´ë¸ì´ <literal>accountNumber</literal>, <literal>effectiveEndDate</literal> ê·¸ë¦¬ê³ <literal>effectiveStartDate</literal> 컬ë¼ë¤ì ì ìíê³ ìë¤ë©´, ê·¸ê²ì ë¤ìê³¼ ê°ì´ 매íë ê²ì´ë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:289
-#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+"More complex association joins are <emphasis>extremely</emphasis> rare. "
+"Hibernate handles more complex situations by using SQL fragments embedded in "
+"the mapping document. For example, if a table with historical account "
+"information data defines <literal>accountNumber</literal>, "
+"<literal>effectiveEndDate</literal> and <literal>effectiveStartDate</"
+"literal>columns, it would be mapped as follows:"
msgstr ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+"ë³´ë¤ ë³µì¡í ì°ê´ joinë¤ì <emphasis>ê·¹í</emphasis> ë물ë¤. íì´ë²ë¤ì´í¸ë 매"
+"í 문ìë¤ ë´ì ì½ì
ë SQL ì¡°ê°ë¤ì ì¬ì©íì¬ ë³´ë¤ ë³µì¡í ìí©ë¤ì ì²ë¦¬íë¤. ì"
+"를 ë¤ì´, ë§ì¼ ê³ì¢ ë´ì ì ë³´ ë°ì´í°ë¥¼ ê°ì§ í
ì´ë¸ì´ <literal>accountNumber</"
+"literal>, <literal>effectiveEndDate</literal> ê·¸ë¦¬ê³ "
+"<literal>effectiveStartDate</literal> 컬ë¼ë¤ì ì ìíê³ ìë¤ë©´, ê·¸ê²ì ë¤ì"
+"ê³¼ ê°ì´ 매íë ê²ì´ë¤:"
#. Tag: para
-#: association_mapping.xml:291
#, no-c-format
-msgid "You can then map an association to the <emphasis>current</emphasis> instance, the one with null <literal>effectiveEndDate</literal>, by using:"
-msgstr "ê·¸ë ë¹ì ì ë¤ìì ì¬ì©íì¬ íëì ì°ê´ì ëì´ íì©ëë <literal>effectiveEndDate</literal>를 ê°ì§, <emphasis>current</emphasis> ì¸ì¤í´ì¤ì 매íìí¬ ì ìë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:296
-#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
+"You can then map an association to the <emphasis>current</emphasis> "
+"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
+"ê·¸ë ë¹ì ì ë¤ìì ì¬ì©íì¬ íëì ì°ê´ì ëì´ íì©ëë "
+"<literal>effectiveEndDate</literal>를 ê°ì§, <emphasis>current</emphasis> ì¸ì¤"
+"í´ì¤ì 매íìí¬ ì ìë¤:"
#. Tag: para
-#: association_mapping.xml:298
#, no-c-format
-msgid "In a more complex example, imagine that the association between <literal>Employee</literal> and <literal>Organization</literal> is maintained in an <literal>Employment</literal> table full of historical employment data. An association to the employee's <emphasis>most recent</emphasis> employer, the one with the most recent <literal>startDate</literal>, could be mapped in the following way:"
-msgstr "ë³´ë¤ ë³µì¡í ìì ìì, <literal>Employee</literal>ì <literal>Organization</literal> ì¬ì´ì ì°ê´ì´ ì ì²´ ê³ ì© ë´ì ë°ì´í°ë¥¼ ê°ì§ <literal>Employment</literal> í
ì´ë¸ ë´ì ì ì§ëë¤ê³ ê°ì íì. ì¢
ì
ìì <emphasis>ê°ì¥ ìµê·¼ì</emphasis> ê³ ì©ì£¼ì ëí ì°ê´, ê°ì¥ ìµê·¼ì <literal>startDate</literal>를 ê°ì§ ì°ê´ì´ ë¤ì ë°©ë²ì¼ë¡ 매íë ì ìë¤:"
-
-#. Tag: programlisting
-#: association_mapping.xml:306
-#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
+"In a more complex example, imagine that the association between "
+"<literal>Employee</literal> and <literal>Organization</literal> is "
+"maintained in an <literal>Employment</literal> table full of historical "
+"employment data. An association to the employee's <emphasis>most recent</"
+"emphasis> employer, the one with the most recent <literal>startDate</"
+"literal>, could be mapped in the following way:"
msgstr ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
+"ë³´ë¤ ë³µì¡í ìì ìì, <literal>Employee</literal>ì <literal>Organization</"
+"literal> ì¬ì´ì ì°ê´ì´ ì ì²´ ê³ ì© ë´ì ë°ì´í°ë¥¼ ê°ì§ <literal>Employment</"
+"literal> í
ì´ë¸ ë´ì ì ì§ëë¤ê³ ê°ì íì. ì¢
ì
ìì <emphasis>ê°ì¥ ìµê·¼ì</"
+"emphasis> ê³ ì©ì£¼ì ëí ì°ê´, ê°ì¥ ìµê·¼ì <literal>startDate</literal>를 ê°"
+"ì§ ì°ê´ì´ ë¤ì ë°©ë²ì¼ë¡ 매íë ì ìë¤:"
#. Tag: para
-#: association_mapping.xml:308
#, no-c-format
-msgid "This functionality allows a degree of creativity and flexibility, but it is more practical to handle these kinds of cases using HQL or a criteria query."
-msgstr "ì´ ê¸°ë¥ì ìì°ì±ê³¼ ì ì°ì± ì ê³ ë¥¼ íì©íì§ë§, HQLì´ë criteria ì§ì를 ì¬ì©íì¬ ì´ë¤ ì¢
ë¥ì ê²½ì°ë¤ì ì²ë¦¬íë ê²ì´ ë³´ë¤ ì¤ì©ì ì´ë¤."
+msgid ""
+"This functionality allows a degree of creativity and flexibility, but it is "
+"more practical to handle these kinds of cases using HQL or a criteria query."
+msgstr ""
+"ì´ ê¸°ë¥ì ìì°ì±ê³¼ ì ì°ì± ì ê³ ë¥¼ íì©íì§ë§, HQLì´ë criteria ì§ì를 ì¬ì©í"
+"ì¬ ì´ë¤ ì¢
ë¥ì ê²½ì°ë¤ì ì²ë¦¬íë ê²ì´ ë³´ë¤ ì¤ì©ì ì´ë¤."
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,19 +11,16 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
msgstr "기본 O/R 매í"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
msgstr "매í ì ì¸"
#. Tag: para
-#: basic_mapping.xml:34
#, fuzzy, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
@@ -36,7 +33,6 @@
"ìë, ìì í´ëì¤ ì ì¸ë¤ë¡ ìì±ëë¤ë ì미ìì ìë° ì¤ì¬ì ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:41
#, fuzzy, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
@@ -48,83 +44,11 @@
"ë구ë¤ì´ ì¡´ì¬íë¤ë ì ì ë
¸í¸íë¼."
#. Tag: para
-#: basic_mapping.xml:47
#, fuzzy, no-c-format
msgid "Here is an example mapping:"
msgstr "ìì 매íì¼ë¡ ììíì:"
-#. Tag: programlisting
-#: basic_mapping.xml:51
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:53
#, fuzzy, no-c-format
msgid ""
"We will now discuss the content of the mapping document. We will only "
@@ -140,13 +64,11 @@
"ì±.)"
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
#, fuzzy, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
@@ -164,13 +86,11 @@
"ë¹ì ì DTD ì ì¸ì ì²´í¬íë¼."
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
msgstr "EntityResolver"
#. Tag: para
-#: basic_mapping.xml:77
#, fuzzy, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
@@ -186,7 +106,6 @@
"ì ë¤ë¥¸ systemId namespaceë¤ì ì¸ì§í´ë¸ë¤."
#. Tag: para
-#: basic_mapping.xml:85
#, fuzzy, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
@@ -200,7 +119,6 @@
"ìí°í°ë¤ì í´ìíë ¤ê³ ìëíë¤."
#. Tag: para
-#: basic_mapping.xml:94
#, fuzzy, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
@@ -215,34 +133,11 @@
"ì¤ë¡ë를 íµí´ ì´ë¤ ìí°í°ë¤ì í´ìíë ¤ê³ ìëí ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:103
#, fuzzy, no-c-format
msgid "The following is an example of utilizing user namespacing:"
msgstr "user namespacingì íì©íë ìì :"
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
#, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
@@ -254,13 +149,11 @@
"xref>를 í¬í¨íë¤."
#. Tag: title
-#: basic_mapping.xml:115
#, fuzzy, no-c-format
msgid "Hibernate-mapping"
msgstr "hibernate-mapping"
#. Tag: para
-#: basic_mapping.xml:117
#, fuzzy, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
@@ -284,35 +177,17 @@
"를 ì§ì íë¤. <literal>auto-import</literal> ìì±ì ëí´í¸ë¡ ì°ë¦¬ê° ì§ì ì¸ì´ "
"ììì ììì´ê° ë¶ì§ ìì(unqualified) í´ëì¤ ì´ë¦ë¤ì ì¬ì©íê² í ê²ì´ë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:138
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:141
#, fuzzy, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr "<literal>schema</literal> (ìµì
): ë°ì´í°ë² ì´ì¤ ì¤í¤ë§ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:146
#, fuzzy, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr "<literal>catalog</literal> (ìµì
): ë°ì´í°ë² ì´ì¤ ì¹´ë¤ë¡ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:151
#, fuzzy, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
@@ -322,7 +197,6 @@
"literal>): ëí´í¸ cascade ì¤íì¼."
#. Tag: para
-#: basic_mapping.xml:157
#, fuzzy, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
@@ -334,7 +208,6 @@
"<literal>PropertyAccessor</literal>ì ëí ë§ì¶¤í 구íì¼ ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:164
#, fuzzy, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
@@ -346,7 +219,6 @@
"ëí ëí´í¸ ê°."
#. Tag: para
-#: basic_mapping.xml:171
#, fuzzy, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
@@ -358,7 +230,6 @@
"ì´ë¦ë¤ì ì¬ì©í ì ìëì§ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:178
#, fuzzy, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
@@ -368,7 +239,6 @@
"ì¤ ì´ë¦ë¤ì ëí´ ê°ì í í¨í¤ì§ ì ëì´ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:186
#, fuzzy, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
@@ -381,7 +251,6 @@
"í ê²½ì°ì Hibernateë ìì¸ìí©ì ëì§ ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:192
#, fuzzy, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
@@ -401,13 +270,11 @@
"ë <literal>Animal.hbm.xml</literal>."
#. Tag: title
-#: basic_mapping.xml:205
#, fuzzy, no-c-format
msgid "Class"
msgstr "class"
#. Tag: para
-#: basic_mapping.xml:207
#, fuzzy, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
@@ -416,38 +283,7 @@
"ë¹ì ì <literal>class</literal> ìì를 ì¬ì©íì¬ ìì í´ëì¤ë¥¼ ì ì¸í ìë ì"
"ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:235
-#, no-c-format
-msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:238
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
@@ -459,7 +295,6 @@
"ê³ ê°ì ëë¤."
#. Tag: para
-#: basic_mapping.xml:245
#, fuzzy, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
@@ -469,7 +304,6 @@
"ì ë°ì´í°ë² ì´ì¤ í
ì´ë¸ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:251
#, fuzzy, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
@@ -482,7 +316,6 @@
"ê°ë¤ì<literal>null</literal>ê³¼ <literal>not null</literal>ì í¬í¨íë¤."
#. Tag: para
-#: basic_mapping.xml:258
#, fuzzy, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
@@ -492,7 +325,6 @@
"ë¤ì ì¸ì¤í´ì¤ë¤ì´ ê°ë³ì ì¸ì§ë¥¼ (ê°ë³ì ì´ì§ ììì§ë¥¼) ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
#, fuzzy, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
@@ -506,7 +338,6 @@
"literal> ììì ìí´ ì§ì ë ì¤í¤ë§ ì´ë¦ì ì¤ë²ë¼ì´ë ìí¨ë¤"
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
#, fuzzy, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
@@ -520,7 +351,6 @@
"literal> ììì ìí´ ì§ì ë ì¹´íë¡ ì´ë¦ì ì¤ë²ë¼ì´ë ìí¨ë¤."
#. Tag: para
-#: basic_mapping.xml:276
#, fuzzy, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
@@ -530,7 +360,6 @@
"ì¤ë¥¼ ì§ì íë¤. ë¹ì ì í´ëì¤ ê·¸ ìì²´ì ì´ë¦ì ì§ì í ì ë ìë¤."
#. Tag: para
-#: basic_mapping.xml:282
#, fuzzy, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
@@ -542,7 +371,6 @@
"ê°ë¤ì´ ë³ê²½ë ê·¸ë¤ ì»¬ë¼ë¤ ë§ì í¬í¨í ê²ì¸ì§ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:289
#, fuzzy, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
@@ -554,7 +382,6 @@
"ì ê°ì´ nullì´ ìë 컬ë¼ë¤ ë§ì í¬í¨í ê²ì¸ì§ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:296
#, fuzzy, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
@@ -574,7 +401,6 @@
"Hibernateë í¹ë³í SQL <literal>SELECT</literal>를 ì¤íí ê²ìì ì미íë¤."
#. Tag: para
-#: basic_mapping.xml:306
#, fuzzy, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
@@ -586,7 +412,6 @@
"ê²ì¸ì§ë¥¼ ê²°ì íë¤."
#. Tag: para
-#: basic_mapping.xml:312
#, fuzzy, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
@@ -597,7 +422,6 @@
"ì¸ SQL <literal>WHERE</literal> ì¡°ê±´ì ì§ì íë¤"
#. Tag: para
-#: basic_mapping.xml:318
#, fuzzy, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
@@ -607,7 +431,6 @@
"를 ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:323
#, fuzzy, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
@@ -618,7 +441,6 @@
"ì ìí´ ì´ í´ëì¤ì ì¸ì¤í´ì¤ë¤ì íì¹ìí¤ë \"ë°°ì¹ ì¬ì´ì¦\"를 ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:329
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
@@ -628,7 +450,6 @@
"literal>): optimistic ì ê¸ ë°©ë를 ê²°ì íë¤."
#. Tag: para
-#: basic_mapping.xml:335
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
@@ -638,7 +459,6 @@
"ë¡ì¨ Lazy fetchingì´ ì ì²´ì ì¼ë¡ ì¬ì©ë¶ê°ë¥íê² ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:341
#, fuzzy, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
@@ -646,7 +466,7 @@
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
"<literal>entity-name</literal>(ìµì
, ëí´í¸ë í´ëì¤ ì´ë¦): Hibernate3ë íë"
"ì í´ëì¤ê° (ì ì ì ì¼ë¡ ë¤ë¥¸ í
ì´ë¸ë¤ë¡) ì¬ë¬ë² 매íëë ê²ì íì©í´ì£¼ê³ , "
@@ -659,7 +479,6 @@
"\"persistent-classes-dynamicmodels\"/>ê³¼ <xref linkend=\"xml\"/>ì ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:351
#, fuzzy, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
@@ -670,7 +489,6 @@
"<emphasis>check</emphasis> constraint를 ìì±ìí¤ëë° ì¬ì©ëë SQL ííì."
#. Tag: para
-#: basic_mapping.xml:357
#, fuzzy, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
@@ -686,7 +504,6 @@
"íí(tuple)ì 물리ì ì´ë ìì¹ë¥¼ íííë¤."
#. Tag: para
-#: basic_mapping.xml:364
#, fuzzy, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
@@ -698,7 +515,6 @@
"ì©íì§ë§, ì¬ì©ì ìì íë¼. ì¶ê° ì ë³´ë ìë를 ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:371
#, fuzzy, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
@@ -708,7 +524,6 @@
"literal> ê³ì¸µ êµ¬ì¡°ë¤ ë´ìì abstract ìí¼í´ëì¤ë¤ì ë§í¬íëë° ì¬ì©ëë¤."
#. Tag: para
-#: basic_mapping.xml:379
#, fuzzy, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
@@ -724,7 +539,6 @@
"Foo$Bar</literal>를 ì¬ì©íì¬ í´ëì¤ ì´ë¦ì ì§ì í´ì¼ íë¤."
#. Tag: para
-#: basic_mapping.xml:386
#, fuzzy, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
@@ -736,7 +550,6 @@
"ë¤ ë§ì´ë í¼í¬ë¨¼ì¤ ìµì í를 ííê²ë íì©í´ì¤ë¤."
#. Tag: para
-#: basic_mapping.xml:391
#, fuzzy, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
@@ -751,7 +564,6 @@
"ì¶ë ë ë¡ëë ê²ì´ë¤. ìë \"Lazy ì´ê¸°í를 ìí íë½ìë¤\"ì ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:398
#, fuzzy, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
@@ -782,7 +594,6 @@
"\"ê²½ëê¸\" í´ëì¤ë¥¼ íì©íë¤)."
#. Tag: para
-#: basic_mapping.xml:410
#, fuzzy, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
@@ -804,7 +615,6 @@
"<literal>org.hibernate.test.CustomPersister</literal>를 ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:421
#, fuzzy, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
@@ -820,7 +630,6 @@
"ë§ ë¤ë¥¸ ê²½ì°ë¤ììë í¼í¬ë¨¼ì¤ë¥¼ ì¤ì ë¡ ê°ììí¬ ìë ìë¤. ì ì íê² ì¬ì©íë¼."
#. Tag: para
-#: basic_mapping.xml:429
#, fuzzy, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
@@ -834,7 +643,6 @@
"ë°©ì§íëë° ë§¤ì° ì ì©íë¤."
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
@@ -844,19 +652,16 @@
"optimistic ì ê¸ ì ëµë¤ì ì ííê² ë ê²ì´ë¤:"
#. Tag: para
-#: basic_mapping.xml:441
#, fuzzy, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
msgstr "<literal>version</literal>ì version/timestamp 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:446
#, fuzzy, no-c-format
msgid "<literal>all</literal>: check all columns"
msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:451
#, fuzzy, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
@@ -866,13 +671,11 @@
"ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:456
#, fuzzy, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
msgstr "<literal>none</literal>ì optimistic ì ê¸ì ì¬ì©íì§ ìëë¤"
#. Tag: para
-#: basic_mapping.xml:461
#, fuzzy, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
@@ -887,7 +690,6 @@
"ì©ë ë)."
#. Tag: para
-#: basic_mapping.xml:468
#, fuzzy, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
@@ -904,26 +706,7 @@
"í°ë² ì´ì¤ ìì 뷰를 ìì±ìí¬ ì ìë¤. ì´ ê²½ì°ì, ë¹ì ì ë¶ë³ì ì½ê¸° ì ì© ìí°"
"í°ë¥¼ 주ì´ì§ SQL subselect ííìì¼ë¡ 매íìí¬ ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:476
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:478
#, fuzzy, no-c-format
msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
@@ -937,13 +720,11 @@
"ììë¡ì ì´ì© ê°ë¥íë¤."
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
-msgstr ""
+msgid "id"
+msgstr "id"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -957,38 +738,19 @@
"ë ìë°ë¹ì¦-ì¤íì¼ íë¡í¼í°ë¥¼ ê°ì§ ê²ì´ë¤. <literal><id></literal> ìì"
"ë ê·¸ íë¡í¼í°ë¡ë¶í° íë¼ì´ë¨¸ë¦¬ í¤ ì»¬ë¼ì¼ë¡ì 매íì ì ìíë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:505
-#, no-c-format
-msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:508
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal> (optional): the name of the identifier property."
msgstr "<literal>name</literal> (ìµì
): ìë³ì íë¡í¼í°ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
msgstr "<literal>type</literal> (ìµì
): Hibernate íì
ì ëíë´ë ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:518
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
@@ -998,7 +760,6 @@
"ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:524
#, fuzzy, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
@@ -1012,7 +773,6 @@
"ì íë¡í¼í° ê°."
#. Tag: para
-#: basic_mapping.xml:532
#, fuzzy, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
@@ -1048,7 +808,6 @@
"Hibernateê° íë¡í¼í° ê°ì ì ê·¼íëë° ì¬ì©í ë°©ë."
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
@@ -1058,7 +817,6 @@
"ë¤ê³ ê°ì ëë¤."
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
@@ -1067,7 +825,6 @@
"<literal>unsaved-value</literal> ìì±ì Hibernate3ììë ê±°ì íìíì§ ìë¤."
#. Tag: para
-#: basic_mapping.xml:549
#, fuzzy, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
@@ -1079,13 +836,11 @@
"ê²ì ëí ê·¸ê²ì ì¬ì©ì ëí´ ê°ë ¥íê² ë°ëíë¤."
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
msgstr "Generator"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1099,20 +854,7 @@
"ë§ì¼ ììì íë¼ë¯¸í°ë¤ì´ ìì±ê¸° ì¸ì¤í´ì¤ë¥¼ 구ì±íê±°ë ì´ê¸°í ìí¤ëë° íìí "
"ê²½ì°, ê·¸ê²ë¤ì <literal><param></literal> ìì 를 ì¬ì©íì¬ ì ë¬ëë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:564
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:566
#, fuzzy, no-c-format
msgid ""
"All generators implement the interface <literal>org.hibernate.id."
@@ -1127,14 +869,12 @@
"미리 ë¹ëë 구íë¤ì ììë¤ì ì ê³µíë¤. ë¹ë-ì¸ ìì±ê¸°(generator)ë¤ì ëí ë¨"
"ì¶ ì´ë¦ë¤ì´ ì¡´ì¬íë¤: <placeholder-1/>"
-#. Tag: literal
-#: basic_mapping.xml:574
-#, no-c-format
-msgid "increment"
-msgstr "increment"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>increment</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1147,14 +887,12 @@
"literal> íì
ì ìë³ìë¤ì ìì±ìí¨ë¤. <emphasis>í´ë¬ì¤í° ë´ììë ì¬ì©íì§ "
"ë§ë¼.</emphasis>"
-#. Tag: literal
-#: basic_mapping.xml:585
-#, no-c-format
-msgid "identity"
-msgstr "identity"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>identity</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
@@ -1165,14 +903,12 @@
"ë°íëë ìë³ìë <literal>long</literal>, <literal>short</literal> ëë "
"<literal>int</literal> íì
ì´ë¤."
-#. Tag: literal
-#: basic_mapping.xml:595
-#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>sequence</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
@@ -1183,14 +919,12 @@
"ìì±ê¸°(generator)를 ì¬ì©íë¤. ë°íëë ìë³ìë <literal>long</literal>, "
"<literal>short</literal> ëë <literal>int</literal> íì
ì´ë¤."
-#. Tag: literal
-#: basic_mapping.xml:605
-#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>hilo</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1206,14 +940,12 @@
"ë¤ì í¨ê³¼ì ì¼ë¡ ìì±ìí¤ëë° hi/lo ìê³ ë¦¬ì¦ì ì¬ì©íë¤. hi/lo ìê³ ë¦¬ì¦ì í¹"
"ì ë°ì´í°ë² ì´ì¤ì ëí´ìë§ ì ì¼í ìë³ìë¤ì ìì±ìí¨ë¤."
-#. Tag: literal
-#: basic_mapping.xml:617
-#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1224,14 +956,12 @@
"<literal>short</literal> ëë <literal>int</literal> íì
ì ìë³ìë¤ì í¨ê³¼ì "
"ì¼ë¡ ìì±ìí¤ëë° hi/lo ìê³ ë¦¬ì¦ì ì¬ì©íë¤."
-#. Tag: literal
-#: basic_mapping.xml:627
-#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>uuid</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:629
#, fuzzy, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
@@ -1242,26 +972,22 @@
"ìí´ 128 ë¹í¸ UUID ìê³ ë¦¬ì¦ì ì¬ì©íë¤. UUIDë 길ì´ê° 32ì¸ 16ì§ìë¤ì 문ìì´"
"ë¡ì ì¸ì½ë© ëë¤."
-#. Tag: literal
-#: basic_mapping.xml:637
-#, no-c-format
-msgid "guid"
-msgstr "guid"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>guid</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
msgstr "MS SQL Serverì MySQL ììì ë°ì´í°ë² ì´ì¤ ìì± GUID 문ìì´ì ì¬ì©íë¤."
-#. Tag: literal
-#: basic_mapping.xml:645
-#, no-c-format
-msgid "native"
-msgstr "native"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>native</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:647
#, fuzzy, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
@@ -1271,14 +997,12 @@
"기본 ë°ì´í°ë² ì´ì¤ì ê°ì©ì±ë¤ì ìì¡´íì¬ <literal>identity</literal>, "
"<literal>sequence</literal> ëë <literal>hilo</literal>를 ì°¾ìë¸ë¤."
-#. Tag: literal
-#: basic_mapping.xml:655
-#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>assigned</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:657
#, fuzzy, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
@@ -1289,14 +1013,12 @@
"ì²´ì í ë¹íëë¡ íë¤. <literal><generator></literal> ììê° ì§ì ëì§ ì"
"ì ê²½ì° ì´ê²ì´ ëí´í¸ ë°©ëì´ë¤."
-#. Tag: literal
-#: basic_mapping.xml:665
-#, no-c-format
-msgid "select"
-msgstr "select"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>select</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:667
#, fuzzy, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
@@ -1305,14 +1027,12 @@
"ì´ë¤ ì ì¼ í¤ì ìí´ íì selectíê³ íë¼ì´ë¨¸ë¦¬ í¤ ê°ì ê²ìí¨ì¼ë¡ì¨ ë°ì´í°ë² "
"ì´ì¤ í¸ë¦¬ê±°ì ìí´ í ë¹ë íë¼ì´ë¨¸ë¦¬ í¤ë¥¼ ê²ìíë¤."
-#. Tag: literal
-#: basic_mapping.xml:674
-#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>foreign</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:676
#, fuzzy, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
@@ -1322,14 +1042,12 @@
"ë ë¤ë¥¸ ì°ê´ë ê°ì²´ì ìë³ì를 ì¬ì©íë¤. ëê° <literal><one-to-one></"
"literal> íë¼ì´ë¨¸ë¦¬ í¤ ì°ê´ê´ê³ì í¨ê» ì¬ì©ëë¤."
-#. Tag: literal
-#: basic_mapping.xml:683
-#, no-c-format
-msgid "sequence-identity"
-msgstr "sequence-identity"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:685
#, fuzzy, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
@@ -1347,13 +1065,11 @@
"ê² ëì´ ììì ë
¸í¸íë¼."
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "Hi/lo algorithm"
#. Tag: para
-#: basic_mapping.xml:703
#, fuzzy, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
@@ -1368,33 +1084,7 @@
"\" ë°ì´í°ë² ì´ì¤ í
ì´ë¸ì íìë¡ íë¤. ë ë²ì§¸ë (ì§ìëë) Oracle ì¤íì¼ì ì"
"íì¤ë¥¼ ì¬ì©íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:710
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:714
#, fuzzy, no-c-format
msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
@@ -1410,13 +1100,11 @@
"í´ì¼ íë¤."
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
msgstr "UUID ìê³ ë¦¬ì¦"
#. Tag: para
-#: basic_mapping.xml:724
#, fuzzy, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
@@ -1430,13 +1118,11 @@
"ìµìì ê²ì´ë¤."
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr "ìë³ ì»¬ë¼ë¤ê³¼ ìíì¤ë¤"
#. Tag: para
-#: basic_mapping.xml:734
#, fuzzy, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
@@ -1451,29 +1137,7 @@
"ë¹ì ì <literal>sequence</literal> ì¤íì¼ í¤ ìì±ì ì¬ì©í ìë ìë¤. ì´ë¤ ë°©"
"ëë¤ ëª¨ë ìë¡ì´ ê°ì²´ë¥¼ insertí기 ìí´ ë ê°ì SQL ì§ìë¤ì íìë¡ íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:742
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:746
#, fuzzy, no-c-format
msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
@@ -1486,13 +1150,11 @@
"literal>, <literal>hilo</literal> ë°©ë ì¤ìì ì íë ê²ì´ë¤."
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr "í ë¹ë ìë³ìë¤"
#. Tag: para
-#: basic_mapping.xml:755
#, fuzzy, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
@@ -1512,7 +1174,6 @@
"í¸ í¹ì§ì´ë¤"
#. Tag: para
-#: basic_mapping.xml:764
#, fuzzy, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
@@ -1529,13 +1190,11 @@
"ë¡ íë¤."
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr "í¸ë¦¬ê±°ë¤ì ìí´ í ë¹ë íë¼ì´ë¨¸ë¦¬ í¤ë¤"
#. Tag: para
-#: basic_mapping.xml:775
#, fuzzy, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
@@ -1543,19 +1202,7 @@
"리거ì ì¤í¤ë§ì ëí´ìë§(Hibernateë í¸ë¦¬ê±°ë¤ì ê°ì§ DDLì ìì±ìí¤ì§ ìë"
"ë¤)."
-#. Tag: programlisting
-#: basic_mapping.xml:779
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:781
#, fuzzy, no-c-format
msgid ""
"In the above example, there is a unique valued property named "
@@ -1568,13 +1215,11 @@
"ìì±ëë <literal>person_id</literal>ë¡ ëª
ëª
ë ëì©í¤ê° ì¡´ì¬íë¤."
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
msgstr "NOT TRANSLATED!Enhanced identifier generators"
#. Tag: para
-#: basic_mapping.xml:795
#, fuzzy, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
@@ -1594,7 +1239,6 @@
"current releases and can be referenced by FQN."
#. Tag: para
-#: basic_mapping.xml:803
#, fuzzy, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
@@ -1632,7 +1276,6 @@
"<placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:817
#, fuzzy, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
@@ -1644,7 +1287,6 @@
"to be used."
#. Tag: para
-#: basic_mapping.xml:823
#, fuzzy, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
@@ -1658,7 +1300,6 @@
"\"STARTS WITH\"."
#. Tag: para
-#: basic_mapping.xml:830
#, fuzzy, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
@@ -1672,7 +1313,6 @@
"named \"INCREMENT BY\"."
#. Tag: para
-#: basic_mapping.xml:837
#, fuzzy, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
@@ -1684,7 +1324,6 @@
"though the dialect might support sequence?"
#. Tag: para
-#: basic_mapping.xml:844
#, fuzzy, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
@@ -1696,17 +1335,16 @@
"table which is used to hold the value."
#. Tag: para
-#: basic_mapping.xml:851
#, fuzzy, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
-"cascade ì¤íì¼."
+"<literal>optimizer</literal> (optional, defaults to <literal>none</"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
#. Tag: para
-#: basic_mapping.xml:858
#, fuzzy, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
@@ -1732,7 +1370,6 @@
"parameters: <placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:868
#, fuzzy, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
@@ -1742,7 +1379,6 @@
"<literal>hibernate_sequences</literal>): The name of the table to be used."
#. Tag: para
-#: basic_mapping.xml:874
#, fuzzy, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
@@ -1754,7 +1390,6 @@
"used to hold the value."
#. Tag: para
-#: basic_mapping.xml:880
#, fuzzy, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
@@ -1768,7 +1403,6 @@
"identifies which increment value to use."
#. Tag: para
-#: basic_mapping.xml:887
#, fuzzy, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
@@ -1780,7 +1414,6 @@
"pull increment values for this generator."
#. Tag: para
-#: basic_mapping.xml:894
#, fuzzy, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
@@ -1792,7 +1425,6 @@
"segment key column."
#. Tag: para
-#: basic_mapping.xml:900
#, fuzzy, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
@@ -1802,7 +1434,6 @@
"literal>): The initial value to be retrieved from the table."
#. Tag: para
-#: basic_mapping.xml:906
#, fuzzy, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
@@ -1812,23 +1443,20 @@
"literal>): The value by which subsequent calls to the table should differ."
#. Tag: para
-#: basic_mapping.xml:912
#, fuzzy, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
-"cascade ì¤íì¼."
+"<literal>optimizer</literal> (optional, defaults to <literal>none</"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
msgstr "NOT TRANSLATED! Identifier generator optimization"
#. Tag: para
-#: basic_mapping.xml:923
#, fuzzy, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
@@ -1836,7 +1464,7 @@
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
"For identifier generators which store values in the database, it is "
@@ -1848,7 +1476,6 @@
"\"/> support this notion. <placeholder-1/>"
#. Tag: para
-#: basic_mapping.xml:931
#, fuzzy, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
@@ -1860,7 +1487,6 @@
"each and every request."
#. Tag: para
-#: basic_mapping.xml:937
#, fuzzy, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
@@ -1878,7 +1504,6 @@
"define a group \"hi value\"."
#. Tag: para
-#: basic_mapping.xml:946
#, fuzzy, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
@@ -1896,32 +1521,11 @@
"refers to the values coming from the database."
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr "composite-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:963
#, fuzzy, no-c-format
msgid ""
"A table with a composite key can be mapped with multiple properties of the "
@@ -1934,18 +1538,7 @@
"ë ìì ììë¤ë¡ì <literal><key-property></literal> íë¡í¼í° 매íê³¼ "
"<literal><key-many-to-one></literal> 매íë¤ì íì©íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:970
-#, no-c-format
-msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:972
#, fuzzy, no-c-format
msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
@@ -1958,7 +1551,6 @@
"ì 구íí´ì¼ íë¤."
#. Tag: para
-#: basic_mapping.xml:978
#, fuzzy, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
@@ -1977,7 +1569,6 @@
"composite ìë³ìë¡ ë¶ë¥´ê³ , ì¤ëí ì´í리ì¼ì´ì
ë¤ì ëí´ ê·¸ê²ì ìµì ìí¨ë¤."
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -1990,18 +1581,7 @@
"기ì ìë³ì íë¡í¼í°ë¤ì ìì í´ëì¤ì ë³ëì ìë³ì í´ëì¤ ìì ìì ì¤ë³µë"
"ë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:993
-#, no-c-format
-msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:995
#, fuzzy, no-c-format
msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
@@ -2019,14 +1599,12 @@
"ëª
ë°±í—ì½ë ì¤ë³µì´ë¤."
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
msgstr "ë¤ì ìì±ë¤ì 매íë composite ìë³ì를 ì§ì íëë° ì¬ì©ëë¤:"
#. Tag: para
-#: basic_mapping.xml:1010
#, fuzzy, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
@@ -2039,7 +1617,6 @@
"ëì¤ì composite ìë³ì í´ëì¤ ìì를 참조í¨ì ëíë¸ë¤."
#. Tag: para
-#: basic_mapping.xml:1018
#, fuzzy, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
@@ -2049,12 +1626,11 @@
"ìë íìì ì): íëì composite ìë³ìë¡ì ì¬ì©ëë í´ëì¤."
#. Tag: para
-#: basic_mapping.xml:1025
#, fuzzy, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
"ì°ë¦¬ë <xref linkend=\"components-compositeid\"/>ìì composite ìë³ìê° íë"
@@ -2062,7 +1638,6 @@
"ì´ë¤. ìëì ì¤ëª
ëì´ ìë ìì±ë¤ì ì´ ëì²´ì ì¸ ì ê·¼ë²ìë§ ì ì©ëë¤:"
#. Tag: para
-#: basic_mapping.xml:1033
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
@@ -2073,9 +1648,6 @@
"component ìë³ì를 ìì íë ì»´í¬ëí¸ íì
ì íë¡í¼í°(9ì¥ì ë³´ë¼)."
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
#, fuzzy, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
@@ -2110,7 +1682,6 @@
"Hibernateê° íë¡í¼í° ê°ì ì ê·¼íëë° ì¬ì©í ë°©ë."
#. Tag: para
-#: basic_mapping.xml:1045
#, fuzzy, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
@@ -2121,7 +1692,6 @@
"íì
): íëì composite ìë³ìë¡ì ì¬ì©ëë ì»´í¬ëí¸ í´ëì¤(ë¤ì ì ì ë³´ë¼)."
#. Tag: para
-#: basic_mapping.xml:1052
#, fuzzy, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
@@ -2131,13 +1701,11 @@
"리ì¼ì´ì
ë¤ì ëí´ ì°ë¦¬ê° ê¶ì¥íë ê²ì´ë¤."
#. Tag: title
-#: basic_mapping.xml:1060
#, fuzzy, no-c-format
msgid "Discriminator"
msgstr "discriminator"
#. Tag: para
-#: basic_mapping.xml:1062
#, fuzzy, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
@@ -2159,21 +1727,7 @@
"literal>, <literal>short</literal>, <literal>boolean</literal>, "
"<literal>yes_no</literal>, <literal>true_false</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1080
-#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1083
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
@@ -2183,7 +1737,6 @@
"discriminator 컬ë¼ëª
."
#. Tag: para
-#: basic_mapping.xml:1089
#, fuzzy, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
@@ -2193,7 +1746,6 @@
"Hibernate íì
ì ëíë´ë ì´ë¦"
#. Tag: para
-#: basic_mapping.xml:1095
#, fuzzy, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
@@ -2205,7 +1757,6 @@
"discriminator ê°ë¤ì ì§ì íëë¡ \"ê°ì íë¤\"."
#. Tag: para
-#: basic_mapping.xml:1102
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
@@ -2219,7 +1770,6 @@
"literal>ë¤ ìì ê·¸ 컬ë¼ì í¬í¨íì§ ìëë¡ íµë³´íë¤.)"
#. Tag: para
-#: basic_mapping.xml:1110
#, fuzzy, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
@@ -2230,7 +1780,6 @@
"SQL ííì. 컨í
ì¸ ê¸°ë°ì íë³ì íì©í´ì¤ë¤."
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
@@ -2242,7 +1791,6 @@
"literal> ìì±ì ìí´ ì§ì ëë¤."
#. Tag: para
-#: basic_mapping.xml:1124
#, fuzzy, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
@@ -2254,7 +1802,6 @@
"ê·¸ ê²½ì°ê° ìë ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:1130
#, fuzzy, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
@@ -2263,23 +1810,12 @@
"<literal>formula</literal> ìì±ì ì¬ì©íì¬ ë¹ì ì íì íì
ì íë¨íëë° ì¬ì©"
"ë ììì SQL ííìì ì ì¸í ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1135
-#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1140
#, fuzzy, no-c-format
msgid "Version (optional)"
msgstr "version (ìµì
)"
#. Tag: para
-#: basic_mapping.xml:1142
#, fuzzy, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
@@ -2291,24 +1827,7 @@
"를 í¬í¨íë¤ë ê²ì ëíë¸ë¤. ì´ê²ì ë¹ì ì´ <emphasis>긴 í¸ëìì
(long "
"transaction)ë¤</emphasis>ì ì¬ì©í ê³íì´ë¼ë©´ í¹í ì ì©íë¤ (ìë를 ë³´ë¼)."
-#. Tag: programlisting
-#: basic_mapping.xml:1158
-#, no-c-format
-msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1161
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
@@ -2318,14 +1837,12 @@
"ë¼ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1167
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
msgstr "<literal>name</literal>: ìì í´ëì¤ì íë¡í¼í° ëª
."
#. Tag: para
-#: basic_mapping.xml:1172
#, fuzzy, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
@@ -2335,7 +1852,6 @@
"í¸ì íì
."
#. Tag: para
-#: basic_mapping.xml:1178
#, fuzzy, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
@@ -2370,7 +1886,6 @@
"Hibernateê° íë¡í¼í° ê°ì ì ê·¼íëë° ì¬ì©í ë°©ë."
#. Tag: para
-#: basic_mapping.xml:1184
#, fuzzy, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
@@ -2385,7 +1900,6 @@
"(<literal>undefined</literal>ë ìë³ì íë¡í¼í° ê°ì´ ì¬ì©ë ê²ìì ì§ì íë¤.)"
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2399,7 +1913,6 @@
"ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:1200
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
@@ -2413,7 +1926,6 @@
"literal>ë¡ ì¤ì ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:1210
#, fuzzy, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
@@ -2425,7 +1937,6 @@
"<literal>calendar</literal> íì
ì¼ ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:1215
#, fuzzy, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
@@ -2445,13 +1956,11 @@
"í ì ì©íë¤!</emphasis>"
#. Tag: title
-#: basic_mapping.xml:1226
#, fuzzy, no-c-format
msgid "Timestamp (optional)"
msgstr "timestamp (ìµì
)"
#. Tag: para
-#: basic_mapping.xml:1228
#, fuzzy, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
@@ -2464,23 +1973,7 @@
"Timestampì ê³ ì íê² optimistic ì ê¸ì ëí ë¤ì ìì í 구íì´ë¤. íì§ë§ ëë"
"ë¡ ì´í리ì¼ì´ì
ì ë¤ë¥¸ ë°©ë²ë¤ë¡ timestampë¤ì ì¬ì©í ìë ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:1244
-#, no-c-format
-msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1247
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
@@ -2490,7 +1983,6 @@
"ë ì»¬ë¼ ëª
."
#. Tag: para
-#: basic_mapping.xml:1253
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
@@ -2501,7 +1993,6 @@
"ë <literal>Timestamp</literal> íì
ì ê°ì§ ìë°ë¹ì¦ ì¤íì¼ì íë¡í¼í° ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1266
#, fuzzy, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
@@ -2516,7 +2007,6 @@
"(<literal>undefined</literal>ë ìë³ì íë¡í¼í° ê°ì´ ì¬ì©ë ê²ìì ì§ì íë¤.)"
#. Tag: para
-#: basic_mapping.xml:1275
#, fuzzy, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
@@ -2538,7 +2028,6 @@
"ì ìì´ ì¬ì©ì´ ìì íì§ ìì ì ììì ë
¸í¸íë¼(ì를 ë¤ë©´ ì¤ë¼í´ 8)."
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2551,13 +2040,11 @@
"linkend=\"mapping-generated\">ì°ì¶ëë íë¡í¼í°ë¤</xref>ì ëí ë
¼ìë¤ ë³´ë¼."
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1299
#, fuzzy, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
@@ -2571,13 +2058,11 @@
"literal>ê³¼ ê°ë¤"
#. Tag: title
-#: basic_mapping.xml:1311
#, fuzzy, no-c-format
msgid "Property"
msgstr "íë¡í¼í°"
#. Tag: para
-#: basic_mapping.xml:1313
#, fuzzy, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
@@ -2586,34 +2071,7 @@
"<literal><property></literal> ììë í´ëì¤ì ìë°ë¹ì¦ ì¤íì¼ì ìì í"
"ë¡í¼í°ë¥¼ ì ì¸íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
@@ -2621,7 +2079,6 @@
msgstr "<literal>name</literal>: 첫 ì문ìë¡ ììíë íë¡í¼í° ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1344
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
@@ -2633,7 +2090,6 @@
"literal> ìì(ë¤)ì ìí´ ì§ì ë ìë ìë¤."
#. Tag: para
-#: basic_mapping.xml:1356
#, fuzzy, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
@@ -2651,7 +2107,6 @@
"기í ëë ììíê² \"íìë(derived)\" íë¡í¼í°ë¥¼ íì©í´ì¤ë¤."
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
@@ -2663,7 +2118,6 @@
"매íì ê°ì§ ìëë¤."
#. Tag: para
-#: basic_mapping.xml:1378
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
@@ -2675,7 +2129,6 @@
"(ë¹ë-ì ë°ì´í¸ì½ë ìë¨ì íìë¡ íë¤)."
#. Tag: para
-#: basic_mapping.xml:1385
#, fuzzy, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
@@ -2687,7 +2140,6 @@
"ë ê²ì íì©í´ì¤ë¤."
#. Tag: para
-#: basic_mapping.xml:1392
#, fuzzy, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
@@ -2697,7 +2149,6 @@
"DDL ìì±ì ê°ë¥íê² ë§ë ë¤."
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
@@ -2711,7 +2162,6 @@
"ë²ì ì¦ê°ê° ë°ìí ê²½ì°ì¸ì§ë¥¼ ê²°ì íë¤."
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2724,13 +2174,11 @@
"linkend=\"mapping-generated\">ì°ì¶ëë íë¡í¼í°ë¤</xref>ì ëí ë
¼ì를 ë³´ë¼."
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
msgstr "<emphasis>typename</emphasis>ì ë¤ìì¼ ì ìë¤:"
#. Tag: para
-#: basic_mapping.xml:1421
#, fuzzy, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
@@ -2740,7 +2188,6 @@
"date, timestamp, float, binary, serializable, object, blob</literal>)."
#. Tag: para
-#: basic_mapping.xml:1427
#, fuzzy, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
@@ -2752,13 +2199,11 @@
"literal>)."
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
msgstr "serializable Java í´ëì¤ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1438
#, fuzzy, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
@@ -2768,7 +2213,6 @@
"literal>)."
#. Tag: para
-#: basic_mapping.xml:1444
#, fuzzy, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
@@ -2788,7 +2232,6 @@
"ì´ë¥¼ 구ë³í기 ìí´, ëë ë§ì¶¤ íì
ì ì§ì í기 ìí´.)"
#. Tag: para
-#: basic_mapping.xml:1454
#, fuzzy, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
@@ -2808,7 +2251,6 @@
"í° ì ê·¼ì ìí ë¹ì ìì ì ë°©ë를 ì§ì í ìë ìë¤."
#. Tag: para
-#: basic_mapping.xml:1463
#, fuzzy, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
@@ -2821,21 +2263,7 @@
"ì ì¸íê³ , ì´ê²ì ì¸ì¤í´ì¤ë¥¼ ë¡ëìí¤ë SQL ì§ì ë´ì <literal>SELECT</"
"literal> ì ìë¸ì§ìë¡ ë²ìëë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1470
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1472
#, fuzzy, no-c-format
msgid ""
"You can reference the entity table by not declaring an alias on a particular "
@@ -2849,13 +2277,11 @@
"<literal><formula></literal> 매í ìì를 ì¬ì©í ì ììì ë
¸í¸íë¼."
#. Tag: title
-#: basic_mapping.xml:1482
#, fuzzy, no-c-format
msgid "Many-to-one"
msgstr "many-to-one"
#. Tag: para
-#: basic_mapping.xml:1484
#, fuzzy, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
@@ -2868,43 +2294,12 @@
"ë¸ ë´ì ìë foreign í¤ë ëì í
ì´ë¸ì íë¼ì´ë¨¸ë¦¬ í¤ ì»¬ë¼(ë¤)ì 참조íê³ ì"
"ë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:1512
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
#, fuzzy, no-c-format
msgid "<literal>name</literal>: the name of the property."
msgstr "<literal>name</literal>: íë¡í¼í°ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
#, fuzzy, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
@@ -2919,7 +2314,6 @@
"ë <literal><column></literal> ìì(ë¤)ì ìí´ ì§ì ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
#, fuzzy, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
@@ -2929,7 +2323,6 @@
"íì
): ì°ê´ë í´ëì¤ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
#, fuzzy, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
@@ -2939,7 +2332,6 @@
"ê°ì²´ë¡ ì¼ì¤ì¼ì´ë ë ê²ì¸ì§ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
#, fuzzy, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
@@ -2953,7 +2345,6 @@
"join íì¹ ëë ìì°¨ì ì¸ select íì¹ ì¤ìì ì ííë¼."
#. Tag: para
-#: basic_mapping.xml:1545
#, fuzzy, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
@@ -2971,7 +2362,6 @@
"ì°ê´ê´ê³ ê°ì íì©íë¤."
#. Tag: para
-#: basic_mapping.xml:1554
#, fuzzy, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
@@ -2983,7 +2373,6 @@
"ë¤."
#. Tag: para
-#: basic_mapping.xml:1567
#, fuzzy, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
@@ -2997,7 +2386,6 @@
"ì¼ë¡ ë§ë ë¤."
#. Tag: para
-#: basic_mapping.xml:1575
#, fuzzy, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
@@ -3007,7 +2395,6 @@
"ì¤í¸ë ì¸í¸ì DDL ìì±ì ê°ë¥íëë¡ í´ì¤ë¤."
#. Tag: para
-#: basic_mapping.xml:1589
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
@@ -3024,7 +2411,6 @@
"ë ê·¸ ì°ê´ì´ íì eagerly íì¹ë ê²ìì ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:1599
#, fuzzy, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
@@ -3038,7 +2424,6 @@
"ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
#, fuzzy, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
@@ -3046,7 +2431,6 @@
msgstr "<literal>entity-name</literal> (ìµì
): ì°ê´ë í´ëì¤ì ìí°í° ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
@@ -3056,7 +2440,6 @@
"ëí ê°ì ì ìíë SQL ííì."
#. Tag: para
-#: basic_mapping.xml:1619
#, fuzzy, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
@@ -3067,7 +2450,7 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
@@ -3083,23 +2466,13 @@
"ê³¼ one-to-one ì°ê´)ì orphan delete를 ì§ìíì§ ììì ë
¸í¸íë¼."
#. Tag: para
-#: basic_mapping.xml:1632
#, fuzzy, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
"ì¼ë°ì ì¸ <literal>many-to-one</literal> ì ì¸ì ë¤ìê³¼ ê°ì´ ê°ë¨íê² ë³´ì¬ì§ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1636
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1638
#, fuzzy, no-c-format
msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
@@ -3117,37 +2490,18 @@
"(<literal>unique</literal> ìì±ì SchemaExport ëêµ¬ë¡ Hibernateì DDL ìì±ì "
"ì ì´íë¤.)"
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
msgstr ""
"ê·¸ë° ë¤ì <literal>OrderItem</literal>ì ëí 매íì ë¤ìì ì¬ì©í ê²ì´ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1655
#, fuzzy, no-c-format
msgid "This is not encouraged, however."
msgstr "íì§ë§ ì´ê²ì íì¤í ê¶ì¥ëì§ ìëë¤."
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
@@ -3159,7 +2513,6 @@
"매íí ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:1664
#, fuzzy, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
@@ -3168,22 +2521,12 @@
"ë§ì¼ 참조ë ì ì¼í¤ê° ì»´í¬ëí¸ì íë¡í¼í°ì¼ ê²½ì°, ë¹ì ì íëì íë¡í¼í° ê²½ë¡"
"를 ì§ì í ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1668
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1673
#, fuzzy, no-c-format
msgid "One-to-one"
msgstr "one-to-one"
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
@@ -3192,29 +2535,7 @@
"ë ë¤ë¥¸ ìì í´ëì¤ì ëí one-to-one ì°ê´ê´ê³ë <literal>one-to-one</"
"literal> ìì를 ì¬ì©íì¬ ì ì¸ëë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:1693
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1713
#, fuzzy, no-c-format
msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
@@ -3231,7 +2552,6 @@
"(ëí ì¤í¤ë§ ë´ë³´ë´ê¸° ë구ì ìí´ ì¬ì©ëë¤)."
#. Tag: para
-#: basic_mapping.xml:1728
#, fuzzy, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
@@ -3243,7 +2563,6 @@
"리 í¤ê° ì¬ì©ëë¤."
#. Tag: para
-#: basic_mapping.xml:1741
#, fuzzy, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
@@ -3259,7 +2578,6 @@
"ë¼.)"
#. Tag: para
-#: basic_mapping.xml:1749
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
@@ -3280,25 +2598,21 @@
"eager íì¹ìí¬ ê²ì´ë¤!</emphasis>"
#. Tag: para
-#: basic_mapping.xml:1767
#, fuzzy, no-c-format
msgid "There are two varieties of one-to-one associations:"
msgstr "one-to-one ì°ê´ê´ê³ìë ë ê°ì§ ë³ì¢
ì´ ì¡´ì¬íë¤:"
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
msgstr "íë¼ì´ë¨¸ë¦¬ í¤ ì°ê´ê´ê³ë¤"
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
msgstr "ì ì¼ foreign í¤ ì°ê´ê´ê³ë¤"
#. Tag: para
-#: basic_mapping.xml:1779
#, fuzzy, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
@@ -3313,7 +2627,6 @@
"ì¼ íë¤!"
#. Tag: para
-#: basic_mapping.xml:1786
#, fuzzy, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
@@ -3322,22 +2635,7 @@
"íë¼ì´ë¨¸ë¦¬ í¤ ì°ê´ì ëí´, ë¤ì 매íë¤ì <literal>Employee</literal>ì "
"<literal>Person</literal> ê°ê°ì ì¶ê°íë¼."
-#. Tag: programlisting
-#: basic_mapping.xml:1791
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1794
#, fuzzy, no-c-format
msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
@@ -3348,25 +2646,7 @@
"ì´ ëì¼í¨ì íì¤í í´ì¼ íë¤! ì°ë¦¬ë <literal>foreign</literal>ë¡ ëª
ëª
ëë í¹"
"ë³í Hibernate ìë³ì ìì± ë°©ë를 ì¬ì©íë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1800
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1802
#, fuzzy, no-c-format
msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
@@ -3378,7 +2658,6 @@
"ë <literal>Employee</literal> ì¸ì¤í´ì¤ì ëì¼í íë¼ì´ë¨¸ë¦¬ í¤ë¥¼ í ë¹ë°ëë¤."
#. Tag: para
-#: basic_mapping.xml:1808
#, fuzzy, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
@@ -3388,16 +2667,7 @@
"ë¬ë¦¬, <literal>Employee</literal>ë¡ë¶í° <literal>Person</literal>ì¼ë¡ì ì ì¼ "
"컨ì¤í¸ë ì¸í¸ë¥¼ ê°ì§ íëì foreign keyë ë¤ìê³¼ ê°ì´ ííë ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1813
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1815
#, fuzzy, no-c-format
msgid ""
"This association can be made bidirectional by adding the following to the "
@@ -3406,33 +2676,12 @@
"ê·¸ë¦¬ê³ ì´ ì°ê´ì ë¤ìì <literal>Person</literal> 매íì ì¶ê°í¨ì¼ë¡ì¨ ìë°©í¥"
"ì´ ë ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:1820
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1825
#, fuzzy, no-c-format
msgid "Natural-id"
msgstr "natural-id"
-#. Tag: programlisting
-#: basic_mapping.xml:1827
-#, no-c-format
-msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1829
#, fuzzy, no-c-format
msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
@@ -3452,7 +2701,6 @@
"íì ë³´ë¤ ìê° ì¤ëª
ì ì´ê² ë ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:1838
#, fuzzy, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
@@ -3464,7 +2712,6 @@
"ë ¥íê² ê¶ì¥íë¤."
#. Tag: para
-#: basic_mapping.xml:1843
#, fuzzy, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
@@ -3474,7 +2721,6 @@
"ìëë¤."
#. Tag: para
-#: basic_mapping.xml:1849
#, fuzzy, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
@@ -3485,13 +2731,11 @@
"ë¡, narutal ìë³ì íë¡í¼í°ë¤ì ë³ê²½ë ì ìë ê²(ìì)ì¼ë¡ ê°ì ëë¤."
#. Tag: title
-#: basic_mapping.xml:1859
#, fuzzy, no-c-format
msgid "Component and dynamic-component"
msgstr "component, dynamic-component"
#. Tag: para
-#: basic_mapping.xml:1861
#, fuzzy, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
@@ -3503,30 +2747,7 @@
"ëì¤ì ëí í
ì´ë¸ì 컬ë¼ë¤ë¡ 매íìí¨ë¤. ì»´í¬ëí¸ë¤ì ê·¸ê²ë¤ ìì ì íë¡í¼í°"
"ë¤, ì»´í¬ëí¸ë¤, ëë ì½ë ì
ë¤ì ì ì¸íë¤. ì´ë \"ì»´í¬ëí¸ë¤\"ì ë³´ë¼."
-#. Tag: programlisting
-#: basic_mapping.xml:1879
-#, no-c-format
-msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1887
#, fuzzy, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
@@ -3536,7 +2757,6 @@
"íì
): ì»´í¬ëí¸(ìì) í´ëì¤ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
@@ -3550,7 +2770,6 @@
"ì ëíë ê²ì¸ê°?"
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
#, fuzzy, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
@@ -3564,7 +2783,6 @@
"ì ëíë ê²ì¸ê°?"
#. Tag: para
-#: basic_mapping.xml:1911
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
@@ -3576,7 +2794,6 @@
"ë¶ë¥¼ ì§ì íë¤ (ë¹ë ì ë°ì´í¸ì½ë ìë¨ì íìë¡ íë¤)."
#. Tag: para
-#: basic_mapping.xml:1918
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
@@ -3590,7 +2807,6 @@
"ë°ìí ê²ì¸ì§ ì¬ë¶ë¥¼ ê²°ì íë¤."
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
#, fuzzy, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
@@ -3601,7 +2817,6 @@
"ì¤í¸ë ì¸í¸ê° ì»´í¬ëí¸ì 모ë 매íë 컬ë¼ë¤ì ëí´ ì¡´ì¬íëì§ ì¬ë¶ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
@@ -3611,7 +2826,6 @@
"í
ì´ë¸ 컬ë¼ë¤ë¡ 매íìí¨ë¤."
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
@@ -3623,12 +2837,11 @@
"ìì를 íì©íë¤."
#. Tag: para
-#: basic_mapping.xml:1946
#, fuzzy, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
msgstr ""
"<literal><dynamic-component></literal> ììë ì»´í¬ëí¸ë¡ì 매íë "
@@ -3636,13 +2849,11 @@
"íë¤. <xref linkend=\"components-dynamic\"/>ì ë³´ë¼."
#. Tag: title
-#: basic_mapping.xml:1955
#, fuzzy, no-c-format
msgid "Properties"
msgstr "properties"
#. Tag: para
-#: basic_mapping.xml:1957
#, fuzzy, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
@@ -3657,26 +2868,7 @@
"ì¤ë¤ë ì ì´ë¤. ëí ê·¸ê²ì ë¤ì¤ ì»¬ë¼ ì ì¼ ì»¨ì¤í¸ë ì¸ë를 ì ìíë í¸ë¦¬í ë°©ë²"
"ì´ë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:1973
-#, no-c-format
-msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1976
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
@@ -3686,7 +2878,6 @@
"<emphasis>ìëë¤</emphasis>."
#. Tag: para
-#: basic_mapping.xml:1994
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
@@ -3700,7 +2891,6 @@
"ìí ê²ì¸ì§ ì¬ë¶ë¥¼ ê²°ì íë¤."
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
@@ -3709,25 +2899,7 @@
"ì를 ë¤ì´, ë§ì¼ ì°ë¦¬ê° ë¤ì <literal><properties></literal> 매íì ê°"
"ì§ ê²½ì°:"
-#. Tag: programlisting
-#: basic_mapping.xml:2015
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2017
#, fuzzy, no-c-format
msgid ""
"You might have some legacy data association that refers to this unique key "
@@ -3736,20 +2908,7 @@
"ê·¸ ë ì°ë¦¬ë íë¼ì´ë¨¸ë¦¬ í¤ê° ìë, <literal>Person</literal> í
ì´ë¸ì ì´ ì "
"ì¼ í¤ë¥¼ 참조íë ì´ë¤ 리거ì ë°ì´í° ì°ê´ì ê°ì§ ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:2022
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2024
#, fuzzy, no-c-format
msgid ""
"The use of this outside the context of mapping legacy data is not "
@@ -3759,13 +2918,11 @@
"ë ê²ì ê¶ì¥íì§ ìëë¤."
#. Tag: title
-#: basic_mapping.xml:2032
#, fuzzy, no-c-format
msgid "Subclass"
msgstr "subclass"
#. Tag: para
-#: basic_mapping.xml:2034
#, fuzzy, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
@@ -3776,28 +2933,7 @@
"íìë¡ íë¤.(ê¶ì¥ëë) table-per-class-hierarchy(í
ì´ë¸ ë¹ í´ëì¤ ê³ì¸µêµ¬ì¡°) "
"매í ë°©ëì ê²½ì°, <literal><subclass></literal> ì ì¸ì´ ì¬ì©ëë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2047
-#, no-c-format
-msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
#, fuzzy, no-c-format
msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
@@ -3810,7 +2946,6 @@
"<literal>name</literal>: ìë¸í´ëì¤ì ì ì²´ ììì´ê° ë¶ì í´ëì¤ ëª
."
#. Tag: para
-#: basic_mapping.xml:2055
#, fuzzy, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
@@ -3820,7 +2955,6 @@
"ìë¸í´ëì¤ë¤ì 구ë¶ì§ë ê°."
#. Tag: para
-#: basic_mapping.xml:2061
#, fuzzy, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
@@ -3837,7 +2971,6 @@
"ì¤ ëë ì¸í°íì´ì¤ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:2067
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
@@ -3855,7 +2988,6 @@
"<literal>lazy=\"false\"</literal> ì¤ì ì lazy íì¹ì ì¬ì©ë¶ê°ë¥íê² ë§ë ë¤."
#. Tag: para
-#: basic_mapping.xml:2075
#, fuzzy, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
@@ -3871,21 +3003,18 @@
"ë¤. noneì´ ì§ì ë ê²½ì°, ì ì²´ ììì´ê° ë¶ì ìë° í´ëì¤ ì´ë¦ì´ ì¬ì©ëë¤."
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
#, fuzzy, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
msgstr "ìì 매íë¤ì ëí ì ë³´ë <xref linkend=\"inheritance\"/>ì ë³´ë¼."
#. Tag: title
-#: basic_mapping.xml:2090
#, fuzzy, no-c-format
msgid "Joined-subclass"
msgstr "joined-subclass"
#. Tag: para
-#: basic_mapping.xml:2092
#, fuzzy, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
@@ -3897,40 +3026,12 @@
"per-subclass 매í ë°©ë). ììë ìíë ìí¼í´ëì¤ì í
ì´ë¸ê³¼ ì¡°ì¸í¨ì¼ë¡ì¨ ê²"
"ìëë¤. ì°ë¦¬ë <literal><joined-subclass></literal> ìì를 ì¬ì©íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2105
-#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
msgstr "<literal>table</literal>: ìë¸í´ëì¤ í
ì´ë¸ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
#, fuzzy, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
@@ -3947,7 +3048,6 @@
"ì¤ ëë ì¸í°íì´ì¤ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
@@ -3965,7 +3065,6 @@
"<literal>lazy=\"false\"</literal> ì¤ì ì lazy íì¹ì ì¬ì©ë¶ê°ë¥íê² ë§ë ë¤."
#. Tag: para
-#: basic_mapping.xml:2132
#, fuzzy, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
@@ -3978,52 +3077,12 @@
"ë í
ì´ë¸ 컬ë¼ì ì ì¸í´ì¼ íë¤. ì´ ì¥ì ìì ë¶ë¶ì ìë 매íì ë¤ìê³¼ ê°ì´ "
"ë¤ì ìì±ë ê²ì´ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:2139
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2148
#, fuzzy, no-c-format
msgid "Union-subclass"
msgstr "union-subclass"
#. Tag: para
-#: basic_mapping.xml:2150
#, fuzzy, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
@@ -4045,46 +3104,18 @@
"ê´)ì ì¬ì©íê³ ì ìí ê²½ì°, ë¹ì ì <literal><union-subclass></literal> "
"매íì ì¬ì©í íìê° ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
msgstr "ì´ ë§¤í ë°©ëìë íë³ì 컬ë¼ì´ë í¤ ì»¬ë¼ì´ íìíì§ ìë¤."
#. Tag: title
-#: basic_mapping.xml:2206
#, fuzzy, no-c-format
msgid "Join"
msgstr "join"
#. Tag: para
-#: basic_mapping.xml:2208
#, fuzzy, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
@@ -4095,33 +3126,12 @@
"ì¡´ì¬í ë, íëì í´ëì¤ì ìí íë¡í¼í°ë¤ì ì¬ë¬ í
ì´ë¸ë¤ë¡ 매íìí¤ë ê²ì´ "
"ê°ë¥íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2222
-#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2226
#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
msgstr "<literal>table</literal>: ì¡°ì¸ë í
ì´ë¸ì ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:2243
#, fuzzy, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
@@ -4146,7 +3156,6 @@
"<literal><join></literal>ì ê²ìíëë° ì¬ì©ë ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:2256
#, fuzzy, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
@@ -4158,7 +3167,6 @@
"ì´í¸íë ¤ê³ ìëíì§ ìì ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:2263
#, fuzzy, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
@@ -4172,7 +3180,6 @@
"ì©í ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:2272
#, fuzzy, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
@@ -4181,26 +3188,7 @@
"ì를 ë¤ì´, (모ë íë¡í¼í°ë¤ì ëí´ value íì
ì미를 ì ì§íë©´ì) ê°ì¸ì 주ì "
"ì ë³´ë ë³ëì í
ì´ë¸ì 매íë ì ìë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:2277
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2279
#, fuzzy, no-c-format
msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
@@ -4214,13 +3202,11 @@
"ë ê²ì ì ì©íë¤."
#. Tag: title
-#: basic_mapping.xml:2289
-#, no-c-format
-msgid "<title>Key</title>"
-msgstr ""
+#, fuzzy, no-c-format
+msgid "Key"
+msgstr "key"
#. Tag: para
-#: basic_mapping.xml:2291
#, fuzzy, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
@@ -4233,22 +3219,7 @@
"íëê³ , ê·¸ê²ì ì¡°ì¸ë í
ì´ë¸ì foreign í¤ë¥¼ ì ìíê³ , ê·¸ê²ì ìëì í
ì´ë¸ì "
"íë¼ì´ë¨¸ë¦¬ í¤ë¥¼ 참조íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2307
-#, no-c-format
-msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2318
#, fuzzy, no-c-format
msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
@@ -4260,7 +3231,6 @@
"ë¡ í ê²ì¸ì§ ì¬ë¶ë¥¼ ì§ì íë¤."
#. Tag: para
-#: basic_mapping.xml:2325
#, fuzzy, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
@@ -4271,7 +3241,6 @@
"머리 í¤ê° ìë 컬ë¼ë¤ì 참조í¨ì ì§ì íë¤. (리거ì ë°ì´í°ì ì ê³µë¨.)"
#. Tag: para
-#: basic_mapping.xml:2332
#, fuzzy, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
@@ -4282,7 +3251,6 @@
"ë¤(ì´ê²ì foreign í¤ê° ëí íë¼ì´ë¨¸ë¦¬ í¤ì ë¶ë¶ì¼ ëë§ë¤ í¨ì¶ëë¤)."
#. Tag: para
-#: basic_mapping.xml:2339
#, fuzzy, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
@@ -4293,7 +3261,6 @@
"ì§ì íë¤(ì´ê²ì foreign í¤ê° ëí íë¼ì´ë¨¸ë¦¬ í¤ì ë¶ë¶ì¼ ëë§ë¤ í¨ì¶ëë¤)."
#. Tag: para
-#: basic_mapping.xml:2346
#, fuzzy, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
@@ -4305,7 +3272,6 @@
"ë¤)."
#. Tag: para
-#: basic_mapping.xml:2354
#, fuzzy, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
@@ -4323,7 +3289,6 @@
"ìì´ë¼."
#. Tag: para
-#: basic_mapping.xml:2362
#, fuzzy, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
@@ -4339,13 +3304,11 @@
"emphasis>."
#. Tag: title
-#: basic_mapping.xml:2372
#, fuzzy, no-c-format
msgid "Column and formula elements"
msgstr "column ììì formula ìì"
#. Tag: para
-#: basic_mapping.xml:2373
#, fuzzy, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
@@ -4357,61 +3320,34 @@
"column></literal> ìë¸ìì를 ìì©í ê²ì´ë¤. ë¹ì·íê² <literal><"
"formula></literal>ë <literal>formula</literal> ìì±ì ëí ëìì´ë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
"<literal>column</literal> ìì±ê³¼ <literal>formula</literal> ìì±ì ì를 ë¤ì´ "
"ì ì¢
ì¡°ì¸ ì¡°ê±´ë¤ì ííí기 ìí´ ëì¼í property ëë ì°ê´ê´ê³ 매í ë´ì ê²°í©"
"ë ì ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2394
#, fuzzy, no-c-format
msgid "Import"
msgstr "import"
#. Tag: para
-#: basic_mapping.xml:2396
#, fuzzy, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
@@ -4426,24 +3362,7 @@
"ìì¡´í기 ë³´ë¤ ëª
ìì ì¼ë¡ \"ìí¬í¸ ë \" ê²ì´ë¤. ë¹ì ì ì¬ì§ì´ ëª
ìì ì¼ë¡ 매í"
"ëì§ ìë í´ëì¤ë¤ê³¼ ì¸í°íì´ì¤ë¤ì ìí¬í¸ ìí¬ ì(ê°ì ¸ì¤ê¸° í ì) ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2403
-#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
-msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2413
#, fuzzy, no-c-format
msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
@@ -4452,7 +3371,6 @@
"ë¦."
#. Tag: para
-#: basic_mapping.xml:2418
#, fuzzy, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
@@ -4462,13 +3380,11 @@
"ì§ì ì¸ì´ ë´ìì ì¬ì©ë ì´ë¦."
#. Tag: title
-#: basic_mapping.xml:2429
-#, no-c-format
-msgid "<title>Any</title>"
-msgstr ""
+#, fuzzy, no-c-format
+msgid "Any"
+msgstr "any"
#. Tag: para
-#: basic_mapping.xml:2431
#, fuzzy, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
@@ -4490,7 +3406,6 @@
"ììë§ ì´ê²ì ì¬ì©í´ì¼ íë¤."
#. Tag: para
-#: basic_mapping.xml:2441
#, fuzzy, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
@@ -4504,54 +3419,17 @@
"ì ê°ì§ ìì í´ëì¤ë¤ë¡ 매íìí¤ë ë§ì¶¤í íì
ì ì§ì íëë¡ íë¤. ë¹ì ì "
"meta-typeì ê°ë¤ë¡ë¶í° í´ëì¤ ì´ë¦ë¤ë¡ì 매íì ì§ì í´ì¼ íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
msgstr "<literal>name</literal>: íë¡í¼í° ì´ë¦."
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
msgstr "<literal>id-type</literal>: ìë³ì íì
."
#. Tag: para
-#: basic_mapping.xml:2472
#, fuzzy, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
@@ -4561,7 +3439,6 @@
"discriminator 매íì íì©ëë ììì íì
."
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
@@ -4571,7 +3448,6 @@
"cascade ì¤íì¼."
#. Tag: para
-#: basic_mapping.xml:2490
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
@@ -4585,19 +3461,16 @@
"í ê²ì¸ì§ ì¬ë¶ë¥¼ ì ìíë¤."
#. Tag: title
-#: basic_mapping.xml:2505
#, fuzzy, no-c-format
msgid "Hibernate types"
msgstr "Hibernate íì
ë¤"
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr "ìí°í°ë¤ê³¼ ê°ë¤"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
@@ -4605,7 +3478,6 @@
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2515
#, fuzzy, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
@@ -4628,7 +3500,6 @@
"ë¤. ê·¸ê²ë¤ ëí ë²ì í ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2526
#, fuzzy, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
@@ -4651,7 +3522,6 @@
"ì ìí°í°ë¤ì´ë ì½ë ì
ë¤ì ìí´ ê³µì ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2537
#, fuzzy, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
@@ -4678,13 +3548,11 @@
"compositionì´ë aggregationì ëê° value íì
ì¼ë¡ ë³íëë¤."
#. Tag: para
-#: basic_mapping.xml:2551
#, fuzzy, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr "ì°ë¦¬ë 문ì를 íµí´ ë ê°ë
ë¤ì ë¤ì ê³ ì°°í ê²ì´ë¤."
#. Tag: para
-#: basic_mapping.xml:2555
#, fuzzy, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
@@ -4710,7 +3578,6 @@
"íí ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2568
#, fuzzy, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
@@ -4719,13 +3586,11 @@
"ì½ë ì
ë¤ì ì ì¸í 모ë 미리 ë¹ëë Hibernate íì
ë¤ì null ì미를 ì§ìíë¤."
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
msgstr "기본 value íì
ë¤"
#. Tag: para
-#: basic_mapping.xml:2577
#, fuzzy, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
@@ -4734,18 +3599,16 @@
"미리-ë§ë¤ì´ì§ <emphasis>기본 매í íì
ë¤</emphasis>ì ëëµ ë¤ìê³¼ ê°ì´ ì¹´í
ê³ "
"ë¦¬ë¡ ë¶ë¥ëë¤ <placeholder-1/>"
-#. Tag: literal
-#: basic_mapping.xml:2582
-#, no-c-format
+#. Tag: term
+#, fuzzy, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
"integer, long, short, float, double, character, byte, boolean, yes_no, "
"true_false"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -4758,14 +3621,12 @@
"<literal>true_false</literal>ë Java <literal>boolean</literal>ì´ë "
"<literal>java.lang.Boolean</literal>ì ëí 모ë ëì²´ì ì¸ ì¸ì½ë©ë¤ì´ë¤."
-#. Tag: literal
-#: basic_mapping.xml:2594
-#, no-c-format
-msgid "string"
-msgstr "string"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>string</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
@@ -4774,14 +3635,12 @@
"<literal>java.lang.String</literal>ì¼ë¡ë¶í° <literal>VARCHAR</literal> (ëë "
"Oracle <literal>VARCHAR2</literal>)ë¡ì íì
매í."
-#. Tag: literal
-#: basic_mapping.xml:2603
-#, no-c-format
-msgid "date, time, timestamp"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>date, time, timestamp</literal>"
msgstr "date, time, timestamp"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
@@ -4792,14 +3651,12 @@
"<literal>DATE</literal>, <literal>TIME</literal>, <literal>TIMESTAMP</"
"literal> (ëë ë±ê°ë¬¼)ë¡ì íì
매íë¤."
-#. Tag: literal
-#: basic_mapping.xml:2613
-#, no-c-format
-msgid "calendar, calendar_date"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>calendar, calendar_date</literal>"
msgstr "calendar, calendar_date"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
@@ -4808,14 +3665,12 @@
"<literal>java.util.Calendar</literal>ë¡ë¶í° SQL íì
ë¤ì¸ <literal>TIMESTAMP</"
"literal>, <literal>DATE</literal> (ëë ë±ê°ë¬¼)ë¡ì íì
매íë¤."
-#. Tag: literal
-#: basic_mapping.xml:2623
-#, no-c-format
-msgid "big_decimal, big_integer"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>big_decimal, big_integer</literal>"
msgstr "big_decimal, big_integer"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
@@ -4826,14 +3681,12 @@
"literal>ë¡ë¶í° <literal>NUMERIC</literal> (ëë Oracle <literal>NUMBER</"
"literal>)ë¡ì íì
매íë¤."
-#. Tag: literal
-#: basic_mapping.xml:2633
-#, no-c-format
-msgid "locale, timezone, currency"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>locale, timezone, currency</literal>"
msgstr "locale, timezone, currency"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -4850,14 +3703,12 @@
"매íëë¤. <literal>TimeZone</literal>ì ì¸ì¤í´ì¤ë¤ì ê·¸ê²ë¤ì <literal>ID</"
"literal>ë¡ ë§¤íëë¤."
-#. Tag: literal
-#: basic_mapping.xml:2647
-#, no-c-format
-msgid "class"
-msgstr "class"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>class</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
@@ -4868,26 +3719,22 @@
"Oracle <literal>VARCHAR2</literal>)ë¡ì íì
매í. <literal>Class</literal>"
"ë ê·¸ê²ì ì ì²´ ììì´ê° ë¶ì ì´ë¦ì¼ë¡ 매íëë¤."
-#. Tag: literal
-#: basic_mapping.xml:2657
-#, no-c-format
-msgid "binary"
-msgstr "binary"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>binary</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
msgstr "byte ë°°ì´ë¤ì ì ì í SQL binary íì
ì¼ë¡ 매íìí¨ë¤."
-#. Tag: literal
-#: basic_mapping.xml:2665
-#, no-c-format
-msgid "text"
-msgstr "text"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>text</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
@@ -4896,14 +3743,12 @@
"long Java 문ìì´ì SQL <literal>CLOB</literal> ëë <literal>TEXT</literal> "
"íì
ì¼ë¡ 매íìí¨ë¤"
-#. Tag: literal
-#: basic_mapping.xml:2674
-#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>serializable</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2676
#, fuzzy, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
@@ -4914,14 +3759,12 @@
"í ëí´í¸ë¡ 기본 íì
ì´ ìë serializable ìë° í´ëì¤ ëë ì¸í°íì´ì¤ì ì´ë¦"
"ì ê°ì§ Hibernate íì
<literal>serializable</literal>ì ëíë¼ ìë ìë¤."
-#. Tag: literal
-#: basic_mapping.xml:2685
-#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
#. Tag: para
-#: basic_mapping.xml:2687
#, fuzzy, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
@@ -4934,18 +3777,16 @@
"ëíë©´ blob ëë clob ê°ì²´ë í¸ëìì
ì¸ë¶ìì ì¬ì¬ì©ë ì ì기 ë문ì´ë¤.(ê²"
"ë¤ê° ëë¼ì´ë² ì§ìì´ ë¹ì¼ê´ì ì´ê³ íì¹ëì´ì¼ íë¤)"
-#. Tag: literal
-#: basic_mapping.xml:2697
-#, no-c-format
+#. Tag: term
+#, fuzzy, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
"imm_serializable, imm_binary"
#. Tag: para
-#: basic_mapping.xml:2701
#, fuzzy, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
@@ -4965,7 +3806,6 @@
"를 ê·¸ íë¡í¼í°ì í ë¹í´ì¼ íë¤."
#. Tag: para
-#: basic_mapping.xml:2716
#, fuzzy, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
@@ -4978,7 +3818,6 @@
"ì´ë ê²ì¼ ì ìë¤. (Composite ìë³ìë¤ì´ ëí íì©ëë¤. ìë를 ë³´ë¼.)"
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -4992,13 +3831,11 @@
"ë¤."
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr "ë§ì¶¤í value íì
ë¤"
#. Tag: para
-#: basic_mapping.xml:2733
#, fuzzy, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
@@ -5022,7 +3859,6 @@
"literal>/ <literal>setName()</literal>를 ê°ì§ ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2744
#, fuzzy, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
@@ -5036,19 +3872,7 @@
"ììì´ê° ë¶ì í´ëì¤ëª
ì ì¬ì©íì¬ íë¡í¼í°ë¤ì ì ì¸íë¼. ê°ë¥í ì¢
ë¥ì ê²ë¤"
"ì ë³´ë ¤ë©´ <literal>org.hibernate.test.DoubleStringType</literal>ì ì²´í¬íë¼."
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
@@ -5058,7 +3882,6 @@
"literal> íê·¸ì ì¬ì©ì 주목íë¼."
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -5071,7 +3894,6 @@
"literal> ì¸í°íì´ì¤ë¤ì ë ë§ì í¹íë ì¬ì©ë¤ì ìí ì§ìì ì ê³µíë¤."
#. Tag: para
-#: basic_mapping.xml:2765
#, fuzzy, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
@@ -5086,19 +3908,7 @@
"í´ì¼ íë¤. ë¹ì ì ë§ì¶¤í íì
ì íë¼ë¯¸í°ë¤ì ì ê³µí기 ìí´, ë¹ì ì ë¹ì ì 매"
"í íì¼ë¤ ìì <literal><type></literal> ìì를 ì¬ì©í ì ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
@@ -5110,7 +3920,6 @@
"ê²ìí ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2780
#, fuzzy, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
@@ -5125,24 +3934,7 @@
"ê³ , ëí ë§ì¼ ê·¸ íì
ì´ íë¼ë¯¸í°í ë ê²½ì°ì ëí´í¸ íë¼ë¯¸í° ê°ë¤ì 리ì¤í¸ë¥¼ "
"í¬í¨í ìë ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
@@ -5152,7 +3944,6 @@
"ê³µë íë¼ë¯¸í°ë¤ì ì¤ë²ë¼ì´ë ìí¤ë ê²ì´ ê°ë¥íë¤."
#. Tag: para
-#: basic_mapping.xml:2796
#, fuzzy, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
@@ -5175,13 +3966,11 @@
"ê²½ë¤ì ëí´ ì¥ì°¨ ê²ì¦ë ê²ì´ë¤."
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
msgstr "íëì í´ëì¤ë¥¼ í ë² ì´ì 매íí기"
#. Tag: para
-#: basic_mapping.xml:2813
#, fuzzy, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
@@ -5198,31 +3987,7 @@
"í ë, ì§ìë¤ì ìì±í ë, ëë ëª
ëª
ë ìí°í°ì ëí ì°ê´ë¤ì 매íí ë ë¹ì "
"ì¼ë¡ íì¬ê¸ ìí°í° ì´ë¦ì ì§ì íëë¡ íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2821
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2823
#, fuzzy, no-c-format
msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
@@ -5232,13 +3997,11 @@
"ì ì¬ì©íì¬ ì´ë»ê² ì§ì ëëì§ë¥¼ 주목íë¼."
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
msgstr "SQL ì¸ì©ë¶í¸ íìë ìë³ìë¤"
#. Tag: para
-#: basic_mapping.xml:2832
#, fuzzy, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
@@ -5253,26 +4016,12 @@
"í ê²ì´ë¤(ëê° ì´ì¤ ì¸ì©ë¶í¸ ì´ì§ë§, SQL Serverì ê²½ì°ìë 모ë ê´í¸ë¤ì´ê³ "
"MySQLì ê²½ì°ìë ìì¸ì©ë¶í¸(`))."
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
msgstr "Metadata ëìë¤"
#. Tag: para
-#: basic_mapping.xml:2847
#, fuzzy, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
@@ -5282,13 +4031,11 @@
"ì ìíë ëªëª ëìì ì¸ ë°©ë²ë¤ì´ ì¡´ì¬íë¤."
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
msgstr "XDoclet ë§í¬ì
ì¬ì©í기"
#. Tag: para
-#: basic_mapping.xml:2854
#, fuzzy, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
@@ -5303,130 +4050,17 @@
"ì¼ë¡ ê°ì£¼ë기 ë문ì´ë¤. íì§ë§ ì°ë¦¬ë XDoclet 매íë¤ì ê°ì§ <literal>Cat</"
"literal> í´ëì¤ì ê´í ë¤ì ìì 를 í¬í¨íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2861
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2863
#, fuzzy, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr "XDocletê³¼ ibernateì ê´í ì¶ê° ìì ë¤ì Hibernate ì¹ ì¬ì´í¸ë¥¼ ë³´ë¼."
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
msgstr "JDK 5.0 Annotations ì¬ì©í기"
#. Tag: para
-#: basic_mapping.xml:2872
#, fuzzy, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
@@ -5451,41 +4085,11 @@
"(JSR-220)ê³¼ Hibernate3 metadata ììê° ì§ìëë¤."
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
msgstr "ë¤ìì EJB ìí°í° ë¹ì¼ë¡ì 주ìì´ ë¶ì POJO í´ëì¤ì ê´í ìì ì´ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:2887
-#, no-c-format
-msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2891
#, fuzzy, no-c-format
msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
@@ -5496,13 +4100,11 @@
"ìì±ëì§ ìììì ë
¸í¸íë¼. ìì¸í ê²ì Hibernate Anotations를 참조íë¼."
#. Tag: title
-#: basic_mapping.xml:2901
#, fuzzy, no-c-format
msgid "Generated properties"
msgstr "ì°ì¶ëë íë¡í¼í°ë¤"
#. Tag: para
-#: basic_mapping.xml:2902
#, fuzzy, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
@@ -5522,7 +4124,6 @@
"ë¡ ì§íì ì°ì¶ëë ê°ë¤ì ê²ìí기 ìí´ íëì select ëª
ë ¹ì ë´ë¦°ë¤."
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -5539,7 +4140,6 @@
"ë¨ì íë¡í¼í°ë¤</xref> ë§ì´ generatedë¡ ë§í¬ë ì ìë¤."
#. Tag: para
-#: basic_mapping.xml:2918
#, fuzzy, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
@@ -5549,7 +4149,6 @@
"ì ìì±ëì§ ìì ê²ìì ì미íë¤."
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -5567,7 +4166,6 @@
"ë¼ë, ì´ ìµì
ì 거기ì ì´ì© ë¶ê°ë¥í¨ì ë
¸í¸íë¼..."
#. Tag: para
-#: basic_mapping.xml:2930
#, fuzzy, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
@@ -5577,13 +4175,55 @@
"ì±ë¨ì 기ì íë¤."
#. Tag: title
-#: basic_mapping.xml:2937
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
msgid "Auxiliary database objects"
msgstr "ë³´ì¡° ë°ì´í°ë² ì´ì¤ ê°ì²´ë¤"
#. Tag: para
-#: basic_mapping.xml:2938
#, fuzzy, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
@@ -5604,7 +4244,6 @@
"ì ì ìíë ë ê°ì§ 모ëë¤ì´ 본ì§ì ì¼ë¡ ì¡´ì¬íë¤..."
#. Tag: para
-#: basic_mapping.xml:2947
#, fuzzy, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
@@ -5613,21 +4252,7 @@
"첫 ë²ì§¸ 모ëë 매í íì¼ ë°ê¹¥ìì CREATE ë° DROP ëª
ë ¹ë¤ì ëª
ìì ì¼ë¡ ëì´í"
"ë ê²ì´ë¤:"
-#. Tag: programlisting
-#: basic_mapping.xml:2951
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2952
#, fuzzy, no-c-format
msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
@@ -5638,20 +4263,7 @@
"춤 í´ëì¤ë¥¼ ì ê³µíë ê²ì´ë¤. ì´ ë§ì¶¤ í´ëì¤ë <literal>org.hibernate.mapping."
"AuxiliaryDatabaseObject</literal> ì¸í°íì´ì¤ë¥¼ 구íí´ì¼ íë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2957
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2958
#, fuzzy, no-c-format
msgid ""
"Additionally, these database objects can be optionally scoped so that they "
@@ -5660,21 +4272,77 @@
"ë§ë¶ì¬ ì´ë¤ ë°ì´í°ë² ì´ì¤ ê°ì²´ë¤ì ì´ë¤ dialectë¤ì´ ì¬ì©ë ë ê·¸ê²ë¤ì´ ë¨ì§ ì "
"ì©ë ì ìëë¡ ì íì ì¼ë¡ ë³ëë ì ìë¤."
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
+#~ msgid "increment"
+#~ msgstr "increment"
+#~ msgid "identity"
+#~ msgstr "identity"
+
+#~ msgid "sequence"
+#~ msgstr "sequence"
+
+#~ msgid "hilo"
+#~ msgstr "hilo"
+
+#~ msgid "seqhilo"
+#~ msgstr "seqhilo"
+
+#~ msgid "uuid"
+#~ msgstr "uuid"
+
+#~ msgid "guid"
+#~ msgstr "guid"
+
+#~ msgid "native"
+#~ msgstr "native"
+
+#~ msgid "assigned"
+#~ msgstr "assigned"
+
+#~ msgid "select"
+#~ msgstr "select"
+
+#~ msgid "foreign"
+#~ msgstr "foreign"
+
+#~ msgid "sequence-identity"
+#~ msgstr "sequence-identity"
+
+#, fuzzy
#~ msgid ""
+#~ "<literal>optimizer</literal> (optional - defaults to <literal>none</"
+#~ "literal>): See"
+#~ msgstr ""
+#~ "<literal>cascade</literal> (optional- defaults to <literal>none</"
+#~ "literal>): cascade ì¤íì¼."
+
+#, fuzzy
+#~ msgid ""
+#~ "<literal>optimizer</literal> (optional - defaults to <literal></"
+#~ "literal>): See"
+#~ msgstr ""
+#~ "<literal>cascade</literal> (optional- defaults to <literal>none</"
+#~ "literal>): cascade ì¤íì¼."
+
+#~ msgid "string"
+#~ msgstr "string"
+
+#~ msgid "class"
+#~ msgstr "class"
+
+#~ msgid "binary"
+#~ msgstr "binary"
+
+#~ msgid "text"
+#~ msgstr "text"
+
+#~ msgid "serializable"
+#~ msgstr "serializable"
+
+#~ msgid "clob, blob"
+#~ msgstr "clob, blob"
+
+#~ msgid ""
#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
#~ "type."
#~ msgstr "<literal>type</literal> (ìµì
): Hibernate íì
ì ëíë´ë ì´ë¦."
@@ -5705,31 +4373,9 @@
#~ "ìì ìë¹ì¤ì ê´í ì¬ë¬ Java ì¸ì´-ë 벨ì ê°ì²´ë¤ì ì´í´í기 ìí´, ì°ë¦¬ë ê·¸"
#~ "ê²ë¤ì ë¤ì ë ê°ì 그룹ë¤ë¡ ë¶ë¥í íìê° ìë¤:"
-#, fuzzy
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>all</literal>ì 모ë 컬ë¼ë¤ì ì²´í¬íë¤"
-
-#~ msgid "id"
-#~ msgstr "id"
-
#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-
-#~ msgid ""
#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
#~ msgstr ""
#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
-
-#~ msgid "key"
-#~ msgstr "key"
-
-#~ msgid "any"
-#~ msgstr "any"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2010-01-12 23:26+0900\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2010-01-12 23:37+0900\n"
"Last-Translator: Jongdae Kim <jdkim528 at korea.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,458 +11,665 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
msgstr "Batch ì²ë¦¬"
#. Tag: para
-#: batch.xml:31
#, no-c-format
-msgid "A naive approach to inserting 100,000 rows in the database using Hibernate might look like this:"
-msgstr "íì´ë²ë¤ì´í¸ë¥¼ ì¬ì©íì¬ ë°ì´í°ë² ì´ì¤ ë´ìì 100,000 ê°ì íë¤ì ì½ì
ìí¤ë ìì ì ê·¼ë²ì ë¤ìê³¼ ê°ì ì ìë¤:"
-
-#. Tag: programlisting
-#: batch.xml:36
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
+"A naive approach to inserting 100,000 rows in the database using Hibernate "
+"might look like this:"
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
+"íì´ë²ë¤ì´í¸ë¥¼ ì¬ì©íì¬ ë°ì´í°ë² ì´ì¤ ë´ìì 100,000 ê°ì íë¤ì ì½ì
ìí¤ë ì"
+"ì ì ê·¼ë²ì ë¤ìê³¼ ê°ì ì ìë¤:"
#. Tag: para
-#: batch.xml:38
#, no-c-format
-msgid "This would fall over with an <literal>OutOfMemoryException</literal> somewhere around the 50,000th row. That is because Hibernate caches all the newly inserted <literal>Customer</literal> instances in the session-level cache. In this chapter we will show you how to avoid this problem."
-msgstr "ì´ê²ì 50 000ë²ì§¸ í ê·¼ì²ìì <literal>OutOfMemoryException</literal>ì¼ë¡ ë¨ì´ì§ ê²ì´ë¤. ê·¸ê²ì íì´ë²ë¤ì´í¸ê° 모ë ìë¡ì´ ì½ì
ë <literal>Customer</literal> ì¸ì¤í´ì¤ë¤ì session-level ìºì ë´ì ìºììí¤ê¸° ë문ì´ë¤. ì´ ì¥ìì ì°ë¦¬ë ì´ ë¬¸ì 를 íí¼íë ë°©ë²ì ë³´ì¬ì¤ ê²ì´ë¤."
+msgid ""
+"This would fall over with an <literal>OutOfMemoryException</literal> "
+"somewhere around the 50,000th row. That is because Hibernate caches all the "
+"newly inserted <literal>Customer</literal> instances in the session-level "
+"cache. In this chapter we will show you how to avoid this problem."
+msgstr ""
+"ì´ê²ì 50 000ë²ì§¸ í ê·¼ì²ìì <literal>OutOfMemoryException</literal>ì¼ë¡ ë¨"
+"ì´ì§ ê²ì´ë¤. ê·¸ê²ì íì´ë²ë¤ì´í¸ê° 모ë ìë¡ì´ ì½ì
ë <literal>Customer</"
+"literal> ì¸ì¤í´ì¤ë¤ì session-level ìºì ë´ì ìºììí¤ê¸° ë문ì´ë¤. ì´ ì¥ìì "
+"ì°ë¦¬ë ì´ ë¬¸ì 를 íí¼íë ë°©ë²ì ë³´ì¬ì¤ ê²ì´ë¤."
#. Tag: para
-#: batch.xml:45
#, no-c-format
-msgid "If you are undertaking batch processing you will need to enable the use of JDBC batching. This is absolutely essential if you want to achieve optimal performance. Set the JDBC batch size to a reasonable number (10-50, for example):"
-msgstr "ë§ì¼ ë¹ì ì´ ë°°ì¹ ì²ë¦¬ë¥¼ ííë ì¤ì´ë¼ë©´, ë¹ì ì JDBC ë°°ì¹ ì¬ì©ì ì´ì© ê°ë¥íëë¡ í íìê° ìì ê²ì´ë¤. ë§ì¼ ë¹ì ì´ ìµì ì ì±ë¥ì ì±ì·¨íê³ ì ìíë¤ë©´ ì´ê²ì´ ì ëì ì¼ë¡ íìì ì´ë¤. JDBC ë°°ì¹ ì¬ì´ì¦ë¥¼ ì ë¹í ì«ìë¡ ì¤ì íë¼(ì를 ë¤ë©´,10-50):"
+msgid ""
+"If you are undertaking batch processing you will need to enable the use of "
+"JDBC batching. This is absolutely essential if you want to achieve optimal "
+"performance. Set the JDBC batch size to a reasonable number (10-50, for "
+"example):"
+msgstr ""
+"ë§ì¼ ë¹ì ì´ ë°°ì¹ ì²ë¦¬ë¥¼ ííë ì¤ì´ë¼ë©´, ë¹ì ì JDBC ë°°ì¹ ì¬ì©ì ì´ì© ê°ë¥í"
+"ëë¡ í íìê° ìì ê²ì´ë¤. ë§ì¼ ë¹ì ì´ ìµì ì ì±ë¥ì ì±ì·¨íê³ ì ìíë¤ë©´ ì´"
+"ê²ì´ ì ëì ì¼ë¡ íìì ì´ë¤. JDBC ë°°ì¹ ì¬ì´ì¦ë¥¼ ì ë¹í ì«ìë¡ ì¤ì íë¼(ì를 ë¤"
+"ë©´,10-50):"
-#. Tag: programlisting
-#: batch.xml:52
-#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-
#. Tag: para
-#: batch.xml:54
#, no-c-format
-msgid "Hibernate disables insert batching at the JDBC level transparently if you use an <literal>identity</literal> identifier generator."
-msgstr "ë§ì¼ ë¹ì ì´ <literal>identiy</literal> ìë³ì ìì±ì를 ì¬ì©í ê²½ì°ì íì´ë²ë¤ì´í¸ë JDBC ë 벨ìì í¬ëª
íê² insert ë°°ì¹ìì
ì ì¬ì©ë¶ê°ë¥íëë¡ ë§ë ë¤."
+msgid ""
+"Hibernate disables insert batching at the JDBC level transparently if you "
+"use an <literal>identity</literal> identifier generator."
+msgstr ""
+"ë§ì¼ ë¹ì ì´ <literal>identiy</literal> ìë³ì ìì±ì를 ì¬ì©í ê²½ì°ì íì´ë²ë¤"
+"ì´í¸ë JDBC ë 벨ìì í¬ëª
íê² insert ë°°ì¹ìì
ì ì¬ì©ë¶ê°ë¥íëë¡ ë§ë ë¤."
#. Tag: para
-#: batch.xml:59
#, no-c-format
-msgid "You can also do this kind of work in a process where interaction with the second-level cache is completely disabled:"
-msgstr "ë¹ì ì ëí second-level ìºì를 ê°ì§ ìí¸ìì©ì´ ì ì ì¼ë¡ ì¬ì©ë¶ê°ë¥í íë¡ì¸ì¤ ë´ìì ì´ë° ì¢
ë¥ì ìì
ì íí ì ìë¤:"
+msgid ""
+"You can also do this kind of work in a process where interaction with the "
+"second-level cache is completely disabled:"
+msgstr ""
+"ë¹ì ì ëí second-level ìºì를 ê°ì§ ìí¸ìì©ì´ ì ì ì¼ë¡ ì¬ì©ë¶ê°ë¥í íë¡ì¸"
+"ì¤ ë´ìì ì´ë° ì¢
ë¥ì ìì
ì íí ì ìë¤:"
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
-msgid "However, this is not absolutely necessary, since we can explicitly set the <literal>CacheMode</literal> to disable interaction with the second-level cache."
-msgstr "íì§ë§ ì´ê²ì ì ëì ì¼ë¡ íìíì§ ìë¤. ìëíë©´ ì°ë¦¬ë second-level ìºììì ìí¸ìì©ì ë¶ê°ë¥íëë¡ í기 ìí´ ëª
ìì ì¼ë¡ <literal>CacheMode</literal>를 ì¤ì í ì ì기 ë문ì´ë¤."
+msgid ""
+"However, this is not absolutely necessary, since we can explicitly set the "
+"<literal>CacheMode</literal> to disable interaction with the second-level "
+"cache."
+msgstr ""
+"íì§ë§ ì´ê²ì ì ëì ì¼ë¡ íìíì§ ìë¤. ìëíë©´ ì°ë¦¬ë second-level ìºìì"
+"ì ìí¸ìì©ì ë¶ê°ë¥íëë¡ í기 ìí´ ëª
ìì ì¼ë¡ <literal>CacheMode</literal>"
+"를 ì¤ì í ì ì기 ë문ì´ë¤."
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
msgstr "Batch inserts"
#. Tag: para
-#: batch.xml:74
#, no-c-format
-msgid "When making new objects persistent <literal>flush()</literal> and then <literal>clear()</literal> the session regularly in order to control the size of the first-level cache."
-msgstr "ìë¡ì´ ê°ì²´ë¤ì ììí ìí¬ ë ë¹ì ì first-level ìºìì ì¬ì´ì¦ë¥¼ ì ì´í기 ìí´ ì¸ì
ì ì 기ì ì¼ë¡ <literal>flush()</literal> ìí¤ê³ ëì <literal>clear()</literal> íë¼."
-
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"When making new objects persistent <literal>flush()</literal> and then "
+"<literal>clear()</literal> the session regularly in order to control the "
+"size of the first-level cache."
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"ìë¡ì´ ê°ì²´ë¤ì ììí ìí¬ ë ë¹ì ì first-level ìºìì ì¬ì´ì¦ë¥¼ ì ì´í기 ì"
+"í´ ì¸ì
ì ì 기ì ì¼ë¡ <literal>flush()</literal> ìí¤ê³ ëì <literal>clear()"
+"</literal> íë¼."
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
msgstr "Batch updates"
#. Tag: para
-#: batch.xml:87
#, no-c-format
-msgid "For retrieving and updating data, the same ideas apply. In addition, you need to use <literal>scroll()</literal> to take advantage of server-side cursors for queries that return many rows of data."
-msgstr "ë°ì´í° ê²ìíê³ ì
ë°ì´í¸í ë, ëì¼í ê°ë
ë¤ì´ ì ì©ëë¤. ê²ë¤ê° ë¹ì ì ë§ì ë°ì´í° íë¤ì ë°ííë ì§ìë¤ì ìí ìë²-측 커ìë¤ì ì¥ì ì ì·¨íí기 ìí´ <literal>scroll()</literal>ì ì¬ì©í íìê° ìë¤."
-
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"For retrieving and updating data, the same ideas apply. In addition, you "
+"need to use <literal>scroll()</literal> to take advantage of server-side "
+"cursors for queries that return many rows of data."
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"ë°ì´í° ê²ìíê³ ì
ë°ì´í¸í ë, ëì¼í ê°ë
ë¤ì´ ì ì©ëë¤. ê²ë¤ê° ë¹ì ì ë§ì "
+"ë°ì´í° íë¤ì ë°ííë ì§ìë¤ì ìí ìë²-측 커ìë¤ì ì¥ì ì ì·¨íí기 ìí´ "
+"<literal>scroll()</literal>ì ì¬ì©í íìê° ìë¤."
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
msgstr "StatelessSession ì¸í°íì´ì¤"
#. Tag: para
-#: batch.xml:99
#, no-c-format
-msgid "Alternatively, Hibernate provides a command-oriented API that can be used for streaming data to and from the database in the form of detached objects. A <literal>StatelessSession</literal> has no persistence context associated with it and does not provide many of the higher-level life cycle semantics. In particular, a stateless session does not implement a first-level cache nor interact with any second-level or query cache. It does not implement transactional write-behind or automatic dirty checking. Operations performed using a stateless session never cascade to associated instances. Collections are ignored by a stateless session. Operations performed via a stateless session bypass Hibernate's event model and interceptors. Due to the lack of a first-level cache, Stateless sessions are vulnerable to data aliasing effects. A stateless session is a lower-level abstraction that is much closer to the underlying JDBC."
-msgstr "ë¤ë¥¸ ë°©ë²ì¼ë¡ íì´ë²ë¤ì´í¸ë ë¶ë¦¬ë(detached) ê°ì²´ë¤ì íìì¼ë¡ ë°ì´í°ë² ì´ì¤ë¡ ê·¸ë¦¬ê³ ë°ì´í°ë² ì´ì¤ë¡ë¶í° ë°ì´í°ë¥¼ ì¤í¸ë¦¬ë°íëë° ì¬ì©ë ì ìë ëª
ë ¹-ì§í¥ API를 ì ê³µíë¤. <literal>StatelessSession</literal>ì ê·¸ê²ê³¼ ì°ê´ë ìì 컨í
ì¤í¸ë¥¼ ê°ì§ ìê³ ë§ì ë³´ë¤ ëì ë 벨ì ìëª
주기 ì미를 ì ê³µíì§ ìëë¤. í¹í íëì ìí ìë ì¸ì
ì 첫 ë²ì§¸ ë 벨 ìºì를 구ííì§ ìì¼ë©° ììì ë ë²ì§¸ ë 벨 ìºì ëë ì§ì ìºìì ìí¸ìì©íì§ ìëë¤. ê·¸ê²ì í¸ëìì
ìì ì°ê¸°-ì´ë©´(write-behind)ì ì²´í¹ì´ë ìëì ì¸ dirty ì²´í¹ì 구ííì§ ìëë¤. ìí ìë ì¸ì
ì ì¬ì©íì¬ ìíë ì°ì°ë¤ì ê²°ì½ ì°ê´ë ì¸ì¤í´ì¤ë¤ì ëí´ ì¼ì¤ì¼ì´ë ëì§ ìëë¤. ì½ë ì
ë¤ì ìí ìë ì¸ì
ì ìí´ ë¬´ìëë¤. ìíìë ì¸ì
ì íµí´ ìíë ì°ì°ë¤ì íì´ë!
²ë¤ì´í¸ì ì´ë²¤í¸ 모íê³¼ ì¸í°ì
í°ë¤ì ì°ííë¤. 첫ë²ì§¸-ë 벨ì ìºìì ë¶ì¬ì¼ë¡ ì¸í´, ìíìë ì¸ì
ë¤ì ë°ì´í° alias í¨ê³¼ë¤ì ì·¨ì½íë¤. ìíìë ì¸ì
ì ê¸°ë° JDBCì í¨ì¬ ë ê°ê¹ì´ íëì ë³´ë¤ ë®ì ë 벨ì ì¶ìì´ë¤."
-
-#. Tag: programlisting
-#: batch.xml:114
-#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"Alternatively, Hibernate provides a command-oriented API that can be used "
+"for streaming data to and from the database in the form of detached objects. "
+"A <literal>StatelessSession</literal> has no persistence context associated "
+"with it and does not provide many of the higher-level life cycle semantics. "
+"In particular, a stateless session does not implement a first-level cache "
+"nor interact with any second-level or query cache. It does not implement "
+"transactional write-behind or automatic dirty checking. Operations performed "
+"using a stateless session never cascade to associated instances. Collections "
+"are ignored by a stateless session. Operations performed via a stateless "
+"session bypass Hibernate's event model and interceptors. Due to the lack of "
+"a first-level cache, Stateless sessions are vulnerable to data aliasing "
+"effects. A stateless session is a lower-level abstraction that is much "
+"closer to the underlying JDBC."
msgstr ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
+"ë¤ë¥¸ ë°©ë²ì¼ë¡ íì´ë²ë¤ì´í¸ë ë¶ë¦¬ë(detached) ê°ì²´ë¤ì íìì¼ë¡ ë°ì´í°ë² ì´ì¤"
+"ë¡ ê·¸ë¦¬ê³ ë°ì´í°ë² ì´ì¤ë¡ë¶í° ë°ì´í°ë¥¼ ì¤í¸ë¦¬ë°íëë° ì¬ì©ë ì ìë ëª
ë ¹-ì§"
+"í¥ API를 ì ê³µíë¤. <literal>StatelessSession</literal>ì ê·¸ê²ê³¼ ì°ê´ë ìì "
+"컨í
ì¤í¸ë¥¼ ê°ì§ ìê³ ë§ì ë³´ë¤ ëì ë 벨ì ìëª
주기 ì미를 ì ê³µíì§ ìëë¤. "
+"í¹í íëì ìí ìë ì¸ì
ì 첫 ë²ì§¸ ë 벨 ìºì를 구ííì§ ìì¼ë©° ììì ë ë²"
+"째 ë 벨 ìºì ëë ì§ì ìºìì ìí¸ìì©íì§ ìëë¤. ê·¸ê²ì í¸ëìì
ìì ì°ê¸°-"
+"ì´ë©´(write-behind)ì ì²´í¹ì´ë ìëì ì¸ dirty ì²´í¹ì 구ííì§ ìëë¤. ìí ì"
+"ë ì¸ì
ì ì¬ì©íì¬ ìíë ì°ì°ë¤ì ê²°ì½ ì°ê´ë ì¸ì¤í´ì¤ë¤ì ëí´ ì¼ì¤ì¼ì´ë "
+"ëì§ ìëë¤. ì½ë ì
ë¤ì ìí ìë ì¸ì
ì ìí´ ë¬´ìëë¤. ìíìë ì¸ì
ì íµí´ "
+"ìíë ì°ì°ë¤ì íì´ë²ë¤ì´í¸ì ì´ë²¤í¸ 모íê³¼ ì¸í°ì
í°ë¤ì ì°ííë¤. 첫ë²ì§¸-ë "
+"벨ì ìºìì ë¶ì¬ì¼ë¡ ì¸í´, ìíìë ì¸ì
ë¤ì ë°ì´í° alias í¨ê³¼ë¤ì ì·¨ì½íë¤. "
+"ìíìë ì¸ì
ì ê¸°ë° JDBCì í¨ì¬ ë ê°ê¹ì´ íëì ë³´ë¤ ë®ì ë 벨ì ì¶ìì´ë¤."
#. Tag: para
-#: batch.xml:116
#, no-c-format
-msgid "In this code example, the <literal>Customer</literal> instances returned by the query are immediately detached. They are never associated with any persistence context."
-msgstr "ì´ ì½ë ìì ìì, ì§ìì ìí´ ë°íë <literal>Customer</literal> ì¸ì¤í´ì¤ë¤ì ê³§ë°ê³ ë¶ë¦¬ëë¤(detached). ê·¸ê²ë¤ì ììì ìì 컨í
ì¤í¸ì ê²°ì½ ì°ê´ëì§ ìëë¤."
+msgid ""
+"In this code example, the <literal>Customer</literal> instances returned by "
+"the query are immediately detached. They are never associated with any "
+"persistence context."
+msgstr ""
+"ì´ ì½ë ìì ìì, ì§ìì ìí´ ë°íë <literal>Customer</literal> ì¸ì¤í´ì¤ë¤"
+"ì ê³§ë°ê³ ë¶ë¦¬ëë¤(detached). ê·¸ê²ë¤ì ììì ìì 컨í
ì¤í¸ì ê²°ì½ ì°ê´ëì§ "
+"ìëë¤."
#. Tag: para
-#: batch.xml:122
#, no-c-format
-msgid "The <literal>insert(), update()</literal> and <literal>delete()</literal> operations defined by the <literal>StatelessSession</literal> interface are considered to be direct database row-level operations. They result in the immediate execution of a SQL <literal>INSERT, UPDATE</literal> or <literal>DELETE</literal> respectively. They have different semantics to the <literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> operations defined by the <literal>Session</literal> interface."
-msgstr "<literal>StatelessSession</literal> ì¸í°íì´ì¤ì ìí´ ì ìë <literal>insert(), update()</literal> ê·¸ë¦¬ê³ <literal>delete()</literal> ì°ì°ë¤ì ì§ì ì ì¸ ë°ì´í°ë² ì´ì¤ í ë 벨ì ì°ì°ë¤ë¡ ê°ì£¼ëë¤. ê·¸ê²ë¤ì ê°ê° íëì SQL <literal>INSERT, UPDATE</literal> ëë <literal>DELETE</literal>ì ì¦ê°ì ì¸ ì¤íì¼ë¡ ê·ê²°ëë¤. ê·¸ê²ë¤ì <literal>Session</literal> ì¸í°íì´ì¤ì ìí´ ì ìë <literal>save(), saveOrUpdate()</literal>ì <literal>delete()</literal> ì°ì°ë¤ê³¼ë ë¤ë¥¸ ì미ë¤ì ê°ëë¤."
+msgid ""
+"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
+"operations defined by the <literal>StatelessSession</literal> interface are "
+"considered to be direct database row-level operations. They result in the "
+"immediate execution of a SQL <literal>INSERT, UPDATE</literal> or "
+"<literal>DELETE</literal> respectively. They have different semantics to the "
+"<literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> "
+"operations defined by the <literal>Session</literal> interface."
+msgstr ""
+"<literal>StatelessSession</literal> ì¸í°íì´ì¤ì ìí´ ì ìë <literal>insert"
+"(), update()</literal> ê·¸ë¦¬ê³ <literal>delete()</literal> ì°ì°ë¤ì ì§ì ì ì¸ "
+"ë°ì´í°ë² ì´ì¤ í ë 벨ì ì°ì°ë¤ë¡ ê°ì£¼ëë¤. ê·¸ê²ë¤ì ê°ê° íëì SQL "
+"<literal>INSERT, UPDATE</literal> ëë <literal>DELETE</literal>ì ì¦ê°ì ì¸ "
+"ì¤íì¼ë¡ ê·ê²°ëë¤. ê·¸ê²ë¤ì <literal>Session</literal> ì¸í°íì´ì¤ì ìí´ ì ì"
+"ë <literal>save(), saveOrUpdate()</literal>ì <literal>delete()</literal> ì°"
+"ì°ë¤ê³¼ë ë¤ë¥¸ ì미ë¤ì ê°ëë¤."
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
msgstr "DML-ì¤íì¼ ì°ì°ë¤"
#. Tag: para
-#: batch.xml:137
#, no-c-format
-msgid "As already discussed, automatic and transparent object/relational mapping is concerned with the management of the object state. The object state is available in memory. This means that manipulating data directly in the database (using the SQL <literal>Data Manipulation Language</literal> (DML) the statements: <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>) will not affect in-memory state. However, Hibernate provides methods for bulk SQL-style DML statement execution that is performed through the Hibernate Query Language (<link linkend=\"queryhql\">HQL</link>)."
-msgstr "ì´ë¯¸ ë
¼ìíë¯ì´, ìëì ì´ê³ í¬ëª
í ê°ì²´/ê´ê³í 매íì ê°ì²´ ìíì ëí ê´ë¦¬ì ê´ê³ëë¤. ê°ì²´ì ìíë ë©ëª¨ë¦¬ ë´ìì ì´ì© ê°ë¥íë¤. (SQL <literal>ë°ì´í° ì²ë¦¬ ì¸ì´</literal>(DML) 문ì¥ë¤ : <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>를 ì¬ì©íì¬) ë°ì´í°ë² ì´ì¤ìì ì§ì ë°ì´í° ì²ë¦¬íë ê²ì´ ë©ëª¨ë¦¬ ë´ ìíì ìí¥ì ì£¼ì§ ììì ì미íë¤. íì§ë§ íì´ë²ë¤ì´í¸ë íì´ë²ë¤ì´í¸ ì§ì ì¸ì´(<xref linkend=\"queryhql\">HQL</xref>)를 íµí´ ì¤íëë ëë SQL-ì¤íì¼ì DML ë¬¸ì¥ ì¤íì ìí ë©ìëë¤ì ì ê³µíë¤."
+msgid ""
+"As already discussed, automatic and transparent object/relational mapping is "
+"concerned with the management of the object state. The object state is "
+"available in memory. This means that manipulating data directly in the "
+"database (using the SQL <literal>Data Manipulation Language</literal> (DML) "
+"the statements: <literal>INSERT</literal>, <literal>UPDATE</literal>, "
+"<literal>DELETE</literal>) will not affect in-memory state. However, "
+"Hibernate provides methods for bulk SQL-style DML statement execution that "
+"is performed through the Hibernate Query Language (<link linkend=\"queryhql"
+"\">HQL</link>)."
+msgstr ""
+"ì´ë¯¸ ë
¼ìíë¯ì´, ìëì ì´ê³ í¬ëª
í ê°ì²´/ê´ê³í 매íì ê°ì²´ ìíì ëí ê´ë¦¬"
+"ì ê´ê³ëë¤. ê°ì²´ì ìíë ë©ëª¨ë¦¬ ë´ìì ì´ì© ê°ë¥íë¤. (SQL <literal>ë°ì´í° "
+"ì²ë¦¬ ì¸ì´</literal>(DML) 문ì¥ë¤ : <literal>INSERT</literal>, "
+"<literal>UPDATE</literal>, <literal>DELETE</literal>를 ì¬ì©íì¬) ë°ì´í°ë² ì´ì¤"
+"ìì ì§ì ë°ì´í° ì²ë¦¬íë ê²ì´ ë©ëª¨ë¦¬ ë´ ìíì ìí¥ì ì£¼ì§ ììì ì미íë¤. "
+"íì§ë§ íì´ë²ë¤ì´í¸ë íì´ë²ë¤ì´í¸ ì§ì ì¸ì´(<xref linkend=\"queryhql\">HQL</"
+"xref>)를 íµí´ ì¤íëë ëë SQL-ì¤íì¼ì DML ë¬¸ì¥ ì¤íì ìí ë©ìëë¤ì ì ê³µ"
+"íë¤."
#. Tag: para
-#: batch.xml:146
#, no-c-format
-msgid "The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE where_conditions)?</literal>."
-msgstr "<literal>UPDATE</literal>ì <literal>DELETE</literal> 문ì¥ë¤ì ëí ì ì¬ êµ¬ë¬¸ì ë¤ìê³¼ ê°ë¤: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE where_conditions)?</literal>."
+msgid ""
+"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
+"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
+"where_conditions)?</literal>."
+msgstr ""
+"<literal>UPDATE</literal>ì <literal>DELETE</literal> 문ì¥ë¤ì ëí ì ì¬ êµ¬ë¬¸"
+"ì ë¤ìê³¼ ê°ë¤: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
+"where_conditions)?</literal>."
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
msgstr "ë
¸í¸í ëª ê°ì§:"
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
msgstr "from-ì ìì, FROM í¤ìëë ìµì
ì´ë¤"
#. Tag: para
-#: batch.xml:162
#, no-c-format
-msgid "There can only be a single entity named in the from-clause. It can, however, be aliased. If the entity name is aliased, then any property references must be qualified using that alias. If the entity name is not aliased, then it is illegal for any property references to be qualified."
-msgstr "from-ì ë´ì ë¨ì§ ëª
ëª
ë í ê°ì ìí°í°ê° ì¡´ì¬í ì ìë¤. íì§ë§ ê·¸ê²ì ì íì ì¼ë¡ aliasë ì ìë¤. ë§ì¼ ìí°í° ì´ë¦ì´ aliasëë©´, ê·¸ë ììì íë¡í¼í° 참조ë¤ì ê·¸ alias를 ì¬ì©íì¬ ììëì´ì¼ íë¤; ë§ì¼ ìí°í° ì´ë¦ì´ aliasëì§ ìì ê²½ì°, ììì íë¡í¼í° 참조ë¤ì´ ììëë ê²ì ê·ì¹ì ì´ê¸ëë¤."
+msgid ""
+"There can only be a single entity named in the from-clause. It can, however, "
+"be aliased. If the entity name is aliased, then any property references must "
+"be qualified using that alias. If the entity name is not aliased, then it is "
+"illegal for any property references to be qualified."
+msgstr ""
+"from-ì ë´ì ë¨ì§ ëª
ëª
ë í ê°ì ìí°í°ê° ì¡´ì¬í ì ìë¤. íì§ë§ ê·¸ê²ì ì í"
+"ì ì¼ë¡ aliasë ì ìë¤. ë§ì¼ ìí°í° ì´ë¦ì´ aliasëë©´, ê·¸ë ììì íë¡í¼í° ì°¸"
+"ì¡°ë¤ì ê·¸ alias를 ì¬ì©íì¬ ììëì´ì¼ íë¤; ë§ì¼ ìí°í° ì´ë¦ì´ aliasëì§ ì"
+"ì ê²½ì°, ììì íë¡í¼í° 참조ë¤ì´ ììëë ê²ì ê·ì¹ì ì´ê¸ëë¤."
#. Tag: para
-#: batch.xml:170
#, no-c-format
-msgid "No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or explicit, can be specified in a bulk HQL query. Sub-queries can be used in the where-clause, where the subqueries themselves may contain joins."
-msgstr "í¨ì¶ì ì´ë ëª
ìì ì´ë <xref linkend=\"queryhql-joins-forms\">joinë¤</xref>ì ëë HQL ì§ì ìì ì§ì ë ì ìë¤. ìë¸-ì§ìë¤ì´ where-ì ì ì¬ì©ë ì ìëë°, ì¬ê¸°ì ìë¸ì§ìë¤ ê·¸ ìì ë¤ì ì¡°ì¸ë¤ì í¬í¨í ì ìë¤."
+msgid ""
+"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
+"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
+"the where-clause, where the subqueries themselves may contain joins."
+msgstr ""
+"í¨ì¶ì ì´ë ëª
ìì ì´ë <xref linkend=\"queryhql-joins-forms\">joinë¤</xref>ì "
+"ëë HQL ì§ì ìì ì§ì ë ì ìë¤. ìë¸-ì§ìë¤ì´ where-ì ì ì¬ì©ë ì ìë"
+"ë°, ì¬ê¸°ì ìë¸ì§ìë¤ ê·¸ ìì ë¤ì ì¡°ì¸ë¤ì í¬í¨í ì ìë¤."
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
msgstr "where-ì ëí ìµì
ì´ë¤."
#. Tag: para
-#: batch.xml:183
#, no-c-format
-msgid "As an example, to execute an HQL <literal>UPDATE</literal>, use the <literal>Query.executeUpdate()</literal> method. The method is named for those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</literal>:"
-msgstr "íëì ìì ë¡ì, í ê°ì HQL <literal>UPDATE</literal>를 ì¤íí기 ìí´, <literal>Query.executeUpdate()</literal> ë©ìë를 ì¬ì©íë¼. ê·¸ ë©ìëë JDBCì <literal>PreparedStatement.executeUpdate()</literal>ì ì ì¬íê² ëª
ëª
ëë¤:"
-
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
+"<literal>Query.executeUpdate()</literal> method. The method is named for "
+"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
+"literal>:"
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"íëì ìì ë¡ì, í ê°ì HQL <literal>UPDATE</literal>를 ì¤íí기 ìí´, "
+"<literal>Query.executeUpdate()</literal> ë©ìë를 ì¬ì©íë¼. ê·¸ ë©ìëë JDBC"
+"ì <literal>PreparedStatement.executeUpdate()</literal>ì ì ì¬íê² ëª
ëª
ëë¤:"
#. Tag: para
-#: batch.xml:191
#, no-c-format
-msgid "In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> statements, by default, do not effect the <link linkend=\"mapping-declaration-version\">version</link> or the <link linkend=\"mapping-declaration-timestamp\">timestamp</link> property values for the affected entities. However, you can force Hibernate to reset the <literal>version</literal> or <literal>timestamp</literal> property values through the use of a <literal>versioned update</literal>. This is achieved by adding the <literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> keyword."
-msgstr "ì´ê²ì EJB3 ëª
ì¸ììì ì ì§ëê³ ìë¯ì´, HQL <literal>UPDATE</literal> 문ì¥ë¤ì ëí´í¸ë¡ ìí¥ë°ë ìí°í°ë¤ì ëí <xref linkend=\"mapping-declaration-version\">version</xref> ëë <xref linkend=\"mapping-declaration-timestamp\">timestamp</xref> íë¡í¼í° ê°ë¤ì ìí¥ì ì£¼ì§ ìëë¤. íì§ë§ ë¹ì ì íì´ë²ë¤ì´í¸ë¡ íì¬ê¸ <literal>versioned update</literal>ì ì¬ì©ì íµí´ <literal>version</literal> ëë <literal>timestamp</literal> íë¡í¼í° ê°ë¤ì ì ì íê² ì¬ì¤ì íëë¡ ê°ì ìí¬ ì ìë¤. ì´ê²ì <literal>UPDATE</literal> í¤ìë ë¤ì <literal>VERSIONED</literal> í¤ìë를 ì¶ê°ìí´ì¼ë¡ì¨ ë¬ì±ëë¤."
-
-#. Tag: programlisting
-#: batch.xml:201
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
+"statements, by default, do not effect the <link linkend=\"mapping-"
+"declaration-version\">version</link> or the <link linkend=\"mapping-"
+"declaration-timestamp\">timestamp</link> property values for the affected "
+"entities. However, you can force Hibernate to reset the <literal>version</"
+"literal> or <literal>timestamp</literal> property values through the use of "
+"a <literal>versioned update</literal>. This is achieved by adding the "
+"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
+"keyword."
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"ì´ê²ì EJB3 ëª
ì¸ììì ì ì§ëê³ ìë¯ì´, HQL <literal>UPDATE</literal> 문ì¥ë¤"
+"ì ëí´í¸ë¡ ìí¥ë°ë ìí°í°ë¤ì ëí <xref linkend=\"mapping-declaration-"
+"version\">version</xref> ëë <xref linkend=\"mapping-declaration-timestamp"
+"\">timestamp</xref> íë¡í¼í° ê°ë¤ì ìí¥ì ì£¼ì§ ìëë¤. íì§ë§ ë¹ì ì íì´ë²"
+"ë¤ì´í¸ë¡ íì¬ê¸ <literal>versioned update</literal>ì ì¬ì©ì íµí´ "
+"<literal>version</literal> ëë <literal>timestamp</literal> íë¡í¼í° ê°ë¤ì "
+"ì ì íê² ì¬ì¤ì íëë¡ ê°ì ìí¬ ì ìë¤. ì´ê²ì <literal>UPDATE</literal> í¤ì"
+"ë ë¤ì <literal>VERSIONED</literal> í¤ìë를 ì¶ê°ìí´ì¼ë¡ì¨ ë¬ì±ëë¤."
#. Tag: para
-#: batch.xml:203
#, no-c-format
-msgid "Custom version types, <literal>org.hibernate.usertype.UserVersionType</literal>, are not allowed in conjunction with a <literal>update versioned</literal> statement."
-msgstr "ë§ì¶¤í version íì
ë¤, <literal>org.hibernate.usertype.UserVersionType</literal>ì <literal>update versioned</literal>ê³¼ 문ì¥ê³¼ í¨ê» ì¬ì©íë ê²ì´ íì©ëì§ ìëë¤."
+msgid ""
+"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
+"literal>, are not allowed in conjunction with a <literal>update versioned</"
+"literal> statement."
+msgstr ""
+"ë§ì¶¤í version íì
ë¤, <literal>org.hibernate.usertype.UserVersionType</"
+"literal>ì <literal>update versioned</literal>ê³¼ 문ì¥ê³¼ í¨ê» ì¬ì©íë ê²ì´ í"
+"ì©ëì§ ìëë¤."
#. Tag: para
-#: batch.xml:208
#, no-c-format
-msgid "To execute an HQL <literal>DELETE</literal>, use the same <literal>Query.executeUpdate()</literal> method:"
-msgstr "HQL <literal>DELETE</literal>를 ì¤ííë ¤ë©´, ê°ì ë©ìë <literal>Query.executeUpdate()</literal>를 ì¬ì©íë¼:"
-
-#. Tag: programlisting
-#: batch.xml:213
-#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
+"executeUpdate()</literal> method:"
msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+"HQL <literal>DELETE</literal>를 ì¤ííë ¤ë©´, ê°ì ë©ìë <literal>Query."
+"executeUpdate()</literal>를 ì¬ì©íë¼:"
#. Tag: para
-#: batch.xml:215
#, no-c-format
-msgid "The <literal>int</literal> value returned by the <literal>Query.executeUpdate()</literal> method indicates the number of entities effected by the operation. This may or may not correlate to the number of rows effected in the database. An HQL bulk operation might result in multiple actual SQL statements being executed (for joined-subclass, for example). The returned number indicates the number of actual entities affected by the statement. Going back to the example of joined-subclass, a delete against one of the subclasses may actually result in deletes against not just the table to which that subclass is mapped, but also the \"root\" table and potentially joined-subclass tables further down the inheritance hierarchy."
-msgstr "<literal>Query.executeUpdate()</literal> ë©ìëì ìí´ ë°íëë <literal>int</literal> ê°ì ê·¸ ì¤í¼ë ì´ì
ì ìí´ ìí¥ë°ì ìí°í°ë¤ì ê°ì를 ëíë¸ë¤. ì´ê²ì´ ë°ì´í°ë² ì´ì¤ ë´ìì ìí¥ë°ì íë¤ì ê°ìì ìê´ì´ ìì ìë ìì ìë ìë¤. HQL ëë ì¤í¼ë ì´ì
ì (ì를 ë¤ì´ joined-subclassì ëí´) ì¤í ì¤ì¸ ì¬ë¬ ê°ì ì¤ì SQL 문ì¥ë¤ë¡ ê·ê²°ë ì ìë¤. ë°íëë ì«ìë ê·¸ 문ì¥ì ìí´ ìí¥ë°ì ì¤ì ìí°í°ë¤ì ê°ì를 ëíë¸ë¤. joined-subclass ìì ë¡ ëëìê°ë©´, ìë¸í´ëì¤ë¤ ì¤ íëì ëí ìì ë ë¨ì§ ê·¸ ìë¸í´ëì¤ê° 매íëì´ ìë í
ì´ë¸ì ëí ìì ë¡ ê·ê²°ë ë¿ë§ ìëë¼ ëí \"루í¸\" í
ì´ë¸ê³¼ ìì ê³ì¸µìì ë ë´ë ¤ì¨ ì ì ì ì¼ë¡ ì¡°ì¸ë-ìë¸í´ëì¤ í
ì´ë¸ë¤ì ëí ìì ë¤ë¡ ê·ê²°ë ì ìë¤."
+msgid ""
+"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
+"()</literal> method indicates the number of entities effected by the "
+"operation. This may or may not correlate to the number of rows effected in "
+"the database. An HQL bulk operation might result in multiple actual SQL "
+"statements being executed (for joined-subclass, for example). The returned "
+"number indicates the number of actual entities affected by the statement. "
+"Going back to the example of joined-subclass, a delete against one of the "
+"subclasses may actually result in deletes against not just the table to "
+"which that subclass is mapped, but also the \"root\" table and potentially "
+"joined-subclass tables further down the inheritance hierarchy."
+msgstr ""
+"<literal>Query.executeUpdate()</literal> ë©ìëì ìí´ ë°íëë "
+"<literal>int</literal> ê°ì ê·¸ ì¤í¼ë ì´ì
ì ìí´ ìí¥ë°ì ìí°í°ë¤ì ê°ì를 "
+"ëíë¸ë¤. ì´ê²ì´ ë°ì´í°ë² ì´ì¤ ë´ìì ìí¥ë°ì íë¤ì ê°ìì ìê´ì´ ìì ìë "
+"ìì ìë ìë¤. HQL ëë ì¤í¼ë ì´ì
ì (ì를 ë¤ì´ joined-subclassì ëí´) ì¤"
+"í ì¤ì¸ ì¬ë¬ ê°ì ì¤ì SQL 문ì¥ë¤ë¡ ê·ê²°ë ì ìë¤. ë°íëë ì«ìë ê·¸ 문ì¥"
+"ì ìí´ ìí¥ë°ì ì¤ì ìí°í°ë¤ì ê°ì를 ëíë¸ë¤. joined-subclass ìì ë¡ ëë"
+"ìê°ë©´, ìë¸í´ëì¤ë¤ ì¤ íëì ëí ìì ë ë¨ì§ ê·¸ ìë¸í´ëì¤ê° 매íëì´ ì"
+"ë í
ì´ë¸ì ëí ìì ë¡ ê·ê²°ë ë¿ë§ ìëë¼ ëí \"루í¸\" í
ì´ë¸ê³¼ ìì ê³ì¸µì"
+"ì ë ë´ë ¤ì¨ ì ì ì ì¼ë¡ ì¡°ì¸ë-ìë¸í´ëì¤ í
ì´ë¸ë¤ì ëí ìì ë¤ë¡ ê·ê²°ë ì "
+"ìë¤."
#. Tag: para
-#: batch.xml:226
#, no-c-format
-msgid "The pseudo-syntax for <literal>INSERT</literal> statements is: <literal>INSERT INTO EntityName properties_list select_statement</literal>. Some points to note:"
-msgstr "ì¥ëì ë°°í¬ë³¸ë¤ìì ì ë¬ë ëë HQL ì¤í¼ë ì´ì
ë¤ì ëí ëª ê°ì§ ì íë¤ì´ íì¬ ì¡´ì¬í¨ì ë
¸í¸íë¼; ìì¸í ê²ì JIRA ë¡ëë§µì 참조íë¼. <literal>INSERT</literal> 문ì¥ë¤ì ìí ì ì¬-구문ì ë¤ìê³¼ ê°ë¤: <literal>INSERT INTO EntityName properties_list select_statement</literal>. ë
¸í¸í ëª ê°ì§:"
+msgid ""
+"The pseudo-syntax for <literal>INSERT</literal> statements is: "
+"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
+"Some points to note:"
+msgstr ""
+"ì¥ëì ë°°í¬ë³¸ë¤ìì ì ë¬ë ëë HQL ì¤í¼ë ì´ì
ë¤ì ëí ëª ê°ì§ ì íë¤ì´ í"
+"ì¬ ì¡´ì¬í¨ì ë
¸í¸íë¼; ìì¸í ê²ì JIRA ë¡ëë§µì 참조íë¼. <literal>INSERT</"
+"literal> 문ì¥ë¤ì ìí ì ì¬-구문ì ë¤ìê³¼ ê°ë¤: <literal>INSERT INTO "
+"EntityName properties_list select_statement</literal>. ë
¸í¸í ëª ê°ì§:"
#. Tag: para
-#: batch.xml:234
#, no-c-format
-msgid "Only the INSERT INTO ... SELECT ... form is supported; not the INSERT INTO ... VALUES ... form."
-msgstr "ì¤ì§ INSERT INTO ... SELECT ... íì ë§ì¼ ì§ìëë¤; INSERT INTO ... VALUES ... íìì ì§ìëì§ ìëë¤."
+msgid ""
+"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
+"INTO ... VALUES ... form."
+msgstr ""
+"ì¤ì§ INSERT INTO ... SELECT ... íì ë§ì¼ ì§ìëë¤; INSERT INTO ... "
+"VALUES ... íìì ì§ìëì§ ìëë¤."
#. Tag: para
-#: batch.xml:237
#, no-c-format
-msgid "The properties_list is analogous to the <literal>column specification</literal> in the SQL <literal>INSERT</literal> statement. For entities involved in mapped inheritance, only properties directly defined on that given class-level can be used in the properties_list. Superclass properties are not allowed and subclass properties do not make sense. In other words, <literal>INSERT</literal> statements are inherently non-polymorphic."
-msgstr "properties_listë SQL <literal>INSERT</literal> 문ì¥ìì <literal>ì»¬ë¼ ëª
ì¸</literal>ì ì ì¬íë¤. 매íë ììì ì°¸ì¬íë ìí°í°ë¤ì ê²½ì°, ê·¸ 주ì´ì§ í´ëì¤-ë 벨 ìì ì§ì ì ìë íë¡í¼í°ë¤ ë§ì´ properties_listì ì¬ì©ë ì ìë¤. ìí¼í´ëì¤ íë¡í¼í°ë¤ì íì©ëì§ ìê³ , ìë¸í´ëì¤ íë¡í¼í°ë¤ì ìë¯¸ê° ìë¤. ë¬ë¦¬ ë§í´ <literal>INSERT</literal> 문ì¥ë¤ì 본ëì ì¼ë¡ ë¤íì ì´ì§ ìë¤(non-polymorphic)."
+msgid ""
+"The properties_list is analogous to the <literal>column specification</"
+"literal> in the SQL <literal>INSERT</literal> statement. For entities "
+"involved in mapped inheritance, only properties directly defined on that "
+"given class-level can be used in the properties_list. Superclass properties "
+"are not allowed and subclass properties do not make sense. In other words, "
+"<literal>INSERT</literal> statements are inherently non-polymorphic."
+msgstr ""
+"properties_listë SQL <literal>INSERT</literal> 문ì¥ìì <literal>ì»¬ë¼ ëª
ì¸</"
+"literal>ì ì ì¬íë¤. 매íë ììì ì°¸ì¬íë ìí°í°ë¤ì ê²½ì°, ê·¸ 주ì´ì§ í´ë"
+"ì¤-ë 벨 ìì ì§ì ì ìë íë¡í¼í°ë¤ ë§ì´ properties_listì ì¬ì©ë ì ìë¤. ì"
+"í¼í´ëì¤ íë¡í¼í°ë¤ì íì©ëì§ ìê³ , ìë¸í´ëì¤ íë¡í¼í°ë¤ì ìë¯¸ê° ìë¤. ë¬"
+"리 ë§í´ <literal>INSERT</literal> 문ì¥ë¤ì 본ëì ì¼ë¡ ë¤íì ì´ì§ ìë¤(non-"
+"polymorphic)."
#. Tag: para
-#: batch.xml:247
#, no-c-format
-msgid "select_statement can be any valid HQL select query, with the caveat that the return types must match the types expected by the insert. Currently, this is checked during query compilation rather than allowing the check to relegate to the database. This might, however, cause problems between Hibernate <literal>Type</literal>s which are <emphasis>equivalent</emphasis> as opposed to <emphasis>equal</emphasis>. This might cause issues with mismatches between a property defined as a <literal>org.hibernate.type.DateType</literal> and a property defined as a <literal>org.hibernate.type.TimestampType</literal>, even though the database might not make a distinction or might be able to handle the conversion."
-msgstr "ë°í íì
ë¤ì´ insertì ìí´ ê¸°ëëë íì
ë¤ê³¼ ì¼ì¹í´ì¼ íë¤ë ë¨ì íì, select_statementë ììì ì í¨í HQL select ì§ìì¼ ì ìë¤. íì¬ ì´ê²ì ë°ì´í°ë² ì´ì¤ë¡ ê°ë±ìí¬ ì²´í¬ë¥¼ íì©í기 ë³´ë¤ë ì§ì ì»´íì¼ ëìì ì²´í¬ëë¤. íì§ë§ ì´ê²ì <emphasis>equal</emphasis>ê³¼ë ëì¡°ì ì¼ë¡ <emphasis>ë±ê°ì¸(equivalent)</emphasis> Hibernate <literal>Type</literal>ë¤ ì¬ì´ì 문ì ì ë¤ì ì¼ì¼í¬ ìë ìë¤. ë¹ë¡ ë°ì´í°ë² ì´ì¤ê° 구ë³í ì ìê±°ë ë³íì ì²ë¦¬í ì ìì ì§ë¼ë, ì´ê²ì <literal>org.hibernate.type.DateType</literal>ë¡ ì ìë íë¡í¼í°ì <literal>org.hibernate.type.TimestampType</literal>ì¼ë¡ ì ìë íë¡í¼í° ì¬ì´ì ë¶ì¼ì¹ ìì ë¤ì ì ë°ìí¬ ìë ìë¤."
+msgid ""
+"select_statement can be any valid HQL select query, with the caveat that the "
+"return types must match the types expected by the insert. Currently, this is "
+"checked during query compilation rather than allowing the check to relegate "
+"to the database. This might, however, cause problems between Hibernate "
+"<literal>Type</literal>s which are <emphasis>equivalent</emphasis> as "
+"opposed to <emphasis>equal</emphasis>. This might cause issues with "
+"mismatches between a property defined as a <literal>org.hibernate.type."
+"DateType</literal> and a property defined as a <literal>org.hibernate.type."
+"TimestampType</literal>, even though the database might not make a "
+"distinction or might be able to handle the conversion."
+msgstr ""
+"ë°í íì
ë¤ì´ insertì ìí´ ê¸°ëëë íì
ë¤ê³¼ ì¼ì¹í´ì¼ íë¤ë ë¨ì íì, "
+"select_statementë ììì ì í¨í HQL select ì§ìì¼ ì ìë¤. íì¬ ì´ê²ì ë°ì´"
+"í°ë² ì´ì¤ë¡ ê°ë±ìí¬ ì²´í¬ë¥¼ íì©í기 ë³´ë¤ë ì§ì ì»´íì¼ ëìì ì²´í¬ëë¤. íì§"
+"ë§ ì´ê²ì <emphasis>equal</emphasis>ê³¼ë ëì¡°ì ì¼ë¡ <emphasis>ë±ê°ì¸"
+"(equivalent)</emphasis> Hibernate <literal>Type</literal>ë¤ ì¬ì´ì 문ì ì ë¤"
+"ì ì¼ì¼í¬ ìë ìë¤. ë¹ë¡ ë°ì´í°ë² ì´ì¤ê° 구ë³í ì ìê±°ë ë³íì ì²ë¦¬í ì ì"
+"ì ì§ë¼ë, ì´ê²ì <literal>org.hibernate.type.DateType</literal>ë¡ ì ìë í"
+"ë¡í¼í°ì <literal>org.hibernate.type.TimestampType</literal>ì¼ë¡ ì ìë íë¡"
+"í¼í° ì¬ì´ì ë¶ì¼ì¹ ìì ë¤ì ì ë°ìí¬ ìë ìë¤."
#. Tag: para
-#: batch.xml:259
#, no-c-format
-msgid "For the id property, the insert statement gives you two options. You can either explicitly specify the id property in the properties_list, in which case its value is taken from the corresponding select expression, or omit it from the properties_list, in which case a generated value is used. This latter option is only available when using id generators that operate in the database; attempting to use this option with any \"in memory\" type generators will cause an exception during parsing. For the purposes of this discussion, in-database generators are considered to be <literal>org.hibernate.id.SequenceGenerator</literal> (and its subclasses) and any implementers of <literal>org.hibernate.id.PostInsertIdentifierGenerator</literal>. The most notable exception here is <literal>org.hibernate.id.TableHiLoGenerator</literal>, which cannot be used because it does not expose a selectable way to get its values."
-msgstr "id íë¡í¼í°ì ê²½ì°, insert 문ì¥ì ë¹ì ìê² ë ê°ì ìµì
ì ì¤ë¤. ë¹ì ì properties_list ë´ì id íë¡í¼í°ë¥¼ ëª
ìì ì¼ë¡ ì§ì í ì ìëë° ì´ ê²½ì°ì ê·¸ê²ì ê°ì ëìíë SELECT ííìì¼ë¡ë¶í° ì»ì´ì§ë¤. ëë properties_listìì ê·¸ê²ì ìëµí ì ìëë° ì´ ê²½ì°ì ìì±ë ê°ì´ ì¬ì©ëë¤. ì´ íìì ìµì
ì ë°ì´í°ë² ì´ì¤ ë´ìì ì°ì°ëë id ì°ì°ìë¤ì ì¬ì©í ëìë§ ì´ì© ê°ë¥íë¤; ììì \"ë©ëª¨ë¦¬ ë´\" íì
ìì±ê¸°ë¤ë¡ì ì´ ìµì
ì ì¬ì©íê³ ì ìëíë ê²ì íì± ëìì ìì¸ìí©ì ì¼ì¼í¬ ê²ì´ë¤. ì´ ë
¼ìì 목ì ì, ë°ì´í°ë² ì´ì¤ ë´ ìì±ê¸°ë¤ì <literal>org.hibernate.id.SequenceGenerator</literal> (ê·¸ë¦¬ê³ ê·¸ê²ì ìë¸í´ëì¤ë¤) ê·¸ë¦¬ê³ ììì <literal>org.hibernate.id.PostInsertIdentifierGenerator</literal>ì 구íìë¤ì´ë¼ê³ ê°ì£¼ëë¤. ì¬ê¸°ì ê°ì¥ 주목í ë§í ìì!
¸ë <literal>org.hibernate.id.TableHiLoGenerator</literal>ì¸ë°, ê·¸ê²ì´ ê·¸ê²ì ê°ë¤ì ì»ê¸° ìí select ê°ë¥í ë°©ë²ì ë
¸ì¶ìí¤ì§ ì기 ë문ì ì¬ì©ë ì ìë¤."
+msgid ""
+"For the id property, the insert statement gives you two options. You can "
+"either explicitly specify the id property in the properties_list, in which "
+"case its value is taken from the corresponding select expression, or omit it "
+"from the properties_list, in which case a generated value is used. This "
+"latter option is only available when using id generators that operate in the "
+"database; attempting to use this option with any \"in memory\" type "
+"generators will cause an exception during parsing. For the purposes of this "
+"discussion, in-database generators are considered to be <literal>org."
+"hibernate.id.SequenceGenerator</literal> (and its subclasses) and any "
+"implementers of <literal>org.hibernate.id.PostInsertIdentifierGenerator</"
+"literal>. The most notable exception here is <literal>org.hibernate.id."
+"TableHiLoGenerator</literal>, which cannot be used because it does not "
+"expose a selectable way to get its values."
+msgstr ""
+"id íë¡í¼í°ì ê²½ì°, insert 문ì¥ì ë¹ì ìê² ë ê°ì ìµì
ì ì¤ë¤. ë¹ì ì "
+"properties_list ë´ì id íë¡í¼í°ë¥¼ ëª
ìì ì¼ë¡ ì§ì í ì ìëë° ì´ ê²½ì°ì ê·¸ê²"
+"ì ê°ì ëìíë SELECT ííìì¼ë¡ë¶í° ì»ì´ì§ë¤. ëë properties_listìì ê·¸"
+"ê²ì ìëµí ì ìëë° ì´ ê²½ì°ì ìì±ë ê°ì´ ì¬ì©ëë¤. ì´ íìì ìµì
ì ë°ì´í°"
+"ë² ì´ì¤ ë´ìì ì°ì°ëë id ì°ì°ìë¤ì ì¬ì©í ëìë§ ì´ì© ê°ë¥íë¤; ììì \"ë©"
+"모리 ë´\" íì
ìì±ê¸°ë¤ë¡ì ì´ ìµì
ì ì¬ì©íê³ ì ìëíë ê²ì íì± ëìì ì"
+"ì¸ìí©ì ì¼ì¼í¬ ê²ì´ë¤. ì´ ë
¼ìì 목ì ì, ë°ì´í°ë² ì´ì¤ ë´ ìì±ê¸°ë¤ì "
+"<literal>org.hibernate.id.SequenceGenerator</literal> (ê·¸ë¦¬ê³ ê·¸ê²ì ìë¸í´ë"
+"ì¤ë¤) ê·¸ë¦¬ê³ ììì <literal>org.hibernate.id.PostInsertIdentifierGenerator</"
+"literal>ì 구íìë¤ì´ë¼ê³ ê°ì£¼ëë¤. ì¬ê¸°ì ê°ì¥ 주목í ë§í ìì¸ë "
+"<literal>org.hibernate.id.TableHiLoGenerator</literal>ì¸ë°, ê·¸ê²ì´ ê·¸ê²ì ê°"
+"ë¤ì ì»ê¸° ìí select ê°ë¥í ë°©ë²ì ë
¸ì¶ìí¤ì§ ì기 ë문ì ì¬ì©ë ì ìë¤."
#. Tag: para
-#: batch.xml:274
#, no-c-format
-msgid "For properties mapped as either <literal>version</literal> or <literal>timestamp</literal>, the insert statement gives you two options. You can either specify the property in the properties_list, in which case its value is taken from the corresponding select expressions, or omit it from the properties_list, in which case the <literal>seed value</literal> defined by the <literal>org.hibernate.type.VersionType</literal> is used."
-msgstr "<literal>version</literal> ëë <literal>timestamp</literal>ë¡ ë§¤íë íë¡í¼í°ë¤ì ê²½ì°ì, insert 문ì¥ì ë¹ì ìê² ë ê°ì ìµì
ë¤ì ì¤ë¤. ë¹ì ì properties_list ë´ì ê·¸ íë¡í¼í°ë¥¼ ì§ì í ì ìëë° ê·¸ ê²½ì° ê·¸ê²ì ê°ì´ ëìíë select ííìì¼ë¡ë¶í° ì»ì´ì§ë¤. ëë ë¹ì ì properties_listìì ê·¸ê²ì ìëµí ì ìëë° ê·¸ ê²½ì°ì <literal>org.hibernate.type.VersionType</literal>ì ìí´ ì ìë <literal>seed value</literal> ê°ì´ ì¬ì©ëë¤."
+msgid ""
+"For properties mapped as either <literal>version</literal> or "
+"<literal>timestamp</literal>, the insert statement gives you two options. "
+"You can either specify the property in the properties_list, in which case "
+"its value is taken from the corresponding select expressions, or omit it "
+"from the properties_list, in which case the <literal>seed value</literal> "
+"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
+msgstr ""
+"<literal>version</literal> ëë <literal>timestamp</literal>ë¡ ë§¤íë íë¡í¼"
+"í°ë¤ì ê²½ì°ì, insert 문ì¥ì ë¹ì ìê² ë ê°ì ìµì
ë¤ì ì¤ë¤. ë¹ì ì "
+"properties_list ë´ì ê·¸ íë¡í¼í°ë¥¼ ì§ì í ì ìëë° ê·¸ ê²½ì° ê·¸ê²ì ê°ì´ ëì"
+"íë select ííìì¼ë¡ë¶í° ì»ì´ì§ë¤. ëë ë¹ì ì properties_listìì ê·¸ê²ì "
+"ìëµí ì ìëë° ê·¸ ê²½ì°ì <literal>org.hibernate.type.VersionType</literal>"
+"ì ìí´ ì ìë <literal>seed value</literal> ê°ì´ ì¬ì©ëë¤."
#. Tag: para
-#: batch.xml:284
#, no-c-format
-msgid "The following is an example of an HQL <literal>INSERT</literal> statement execution:"
+msgid ""
+"The following is an example of an HQL <literal>INSERT</literal> statement "
+"execution:"
msgstr "ë¤ìì HQL <literal>INSERT</literal> ë¬¸ì¥ ì¤í ìì ì´ë¤:"
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c.name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c.name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
+#~ msgstr "<![CDATA[hibernate.jdbc.batch_size 20]]>"
+
+#~ msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
+#~ msgstr "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession"
+#~ "();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession"
+#~ "();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
msgstr "ìµìì ì¤ì ê²½íë¤"
#. Tag: term
-#: best_practices.xml:33
#, fuzzy, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
@@ -27,7 +25,6 @@
"íì¬ ê·¸ê²ë¤ì 매ííë¼."
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -41,13 +38,11 @@
"í ìí¨ë¤."
#. Tag: term
-#: best_practices.xml:43
#, fuzzy, no-c-format
msgid "Declare identifier properties on persistent classes:"
msgstr "ìì í´ëì¤ë¤ì ëí´ ìë³ì íë¡í¼í°ë¤ì ì ì¸íë¼."
#. Tag: para
-#: best_practices.xml:45
#, fuzzy, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
@@ -59,13 +54,11 @@
"(synthetic)'ì´ ëë(ë¹ì§ëì¤ ì미 ìì´ ìì±ëë) ê²ì ê¶ì¥íë¤."
#. Tag: term
-#: best_practices.xml:53
#, fuzzy, no-c-format
msgid "Identify natural keys:"
msgstr "ê³ ì í¤ë¤ì ìë³íë¼."
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -79,13 +72,11 @@
"ë¼."
#. Tag: term
-#: best_practices.xml:63
#, fuzzy, no-c-format
msgid "Place each class mapping in its own file:"
msgstr "ê°ê°ì í´ëì¤ ë§¤íì ê·¸ê² ìì ì íì¼ ë´ì ìì¹ì§ìë¼."
#. Tag: para
-#: best_practices.xml:65
#, fuzzy, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
@@ -97,25 +88,21 @@
"ì í¹í ì¢ì ì미를 ì¤ë¤."
#. Tag: term
-#: best_practices.xml:73
#, fuzzy, no-c-format
msgid "Load mappings as resources:"
msgstr "매íë¤ì 리ìì¤ë¤ë¡ì ë¡ëìì¼ë¼."
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
msgstr "ê·¸ê²ë¤ì´ 매ííë í´ëì¤ë¤ì ë°ë¼ì 매íë¤ì ë°°ì¹íë¼"
#. Tag: term
-#: best_practices.xml:81
#, fuzzy, no-c-format
msgid "Consider externalizing query strings:"
msgstr "ì§ì 문ìì´ë¤ì ê°ê´í ìí¤ë ê²ì ê³ ë ¤íë¼."
#. Tag: para
-#: best_practices.xml:83
#, fuzzy, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
@@ -127,13 +114,11 @@
"ì´ìì± ìëë¡ ë§ë¤ì´ì¤ ê²ì´ë¤."
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
msgstr "ë°ì¸ë ë³ìë¤ì ì¬ì©íë¼."
#. Tag: para
-#: best_practices.xml:93
#, fuzzy, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
@@ -145,13 +130,11 @@
"ë íë¼ë¯¸í°ë¤ì ì¬ì©íë ê²ì ê³ ë ¤íë¼."
#. Tag: term
-#: best_practices.xml:101
#, fuzzy, no-c-format
msgid "Do not manage your own JDBC connections:"
msgstr "ë¹ì ìì ì JDBC 커ë¥ì
ë¤ì ê´ë¦¬íì§ ë§ë¼."
#. Tag: para
-#: best_practices.xml:103
#, fuzzy, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
@@ -166,13 +149,11 @@
"ë¼."
#. Tag: term
-#: best_practices.xml:111
#, fuzzy, no-c-format
msgid "Consider using a custom type:"
msgstr "ë§ì¶¤í íì
ì¬ì©ì ê³ ë ¤íë¼."
#. Tag: para
-#: best_practices.xml:113
#, fuzzy, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
@@ -188,22 +169,21 @@
"ì 구ííë ê²ì¼ë¡ë¶í° ì´í리ì¼ì´ì
ì½ë를 ìì ë¡ê² í´ì¤ë¤."
#. Tag: term
-#: best_practices.xml:122
#, fuzzy, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
msgstr "ë³ëª© ì§ì ë¤ìì ììì
ì¼ë¡ ì½ë©ë JDBC를 ì¬ì©íë¼."
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
"ìì¤í
ì í¼í¬ë¨¼ì¤ê° ì¤ëí ììë¤ìì, ëªëª ì¢
ë¥ì ì¤í¼ë ì´ì
ë¤ì ì§ì ì ì¸ "
"JDBCìì ì´ëì 본ë¤. ê·¸ë¬ë ë¹ì ì´ ì´ë¤ ê²ì´ ë³ëª©ì¸ì§ë¥¼ <emphasis>ì기</"
@@ -214,13 +194,11 @@
"í ì¬ì©í ì ìë¤"
#. Tag: term
-#: best_practices.xml:134
#, fuzzy, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
msgstr "<literal>Session</literal> flushingì ì´í´íë¼."
#. Tag: para
-#: best_practices.xml:136
#, fuzzy, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
@@ -236,14 +214,12 @@
"ìí ìí¬ ì ìë¤."
#. Tag: term
-#: best_practices.xml:145
#, fuzzy, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr ""
"3-tier ìí¤í
ì²ìì, <literal>saveOrUpdate()</literal> ì¬ì©ì ê³ ë ¤íë¼."
#. Tag: para
-#: best_practices.xml:147
#, fuzzy, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
@@ -259,14 +235,12 @@
"</literal>를 ì¬ì©íë¼."
#. Tag: term
-#: best_practices.xml:156
#, fuzzy, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr ""
"2-tier ìí¤í
ì²ìì, ìëª
ì´ ê¸´ ìì 컨í
ì¤í¸ë¤ì ì¬ì©íë ê²ì ê³ ë ¤íë¼."
#. Tag: para
-#: best_practices.xml:158
#, fuzzy, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
@@ -295,13 +269,11 @@
"ì´ë¤."
#. Tag: term
-#: best_practices.xml:172
#, fuzzy, no-c-format
msgid "Do not treat exceptions as recoverable:"
msgstr "ìì¸ìí©ë¤ì 복구ê°ë¥í ê²ì¼ë¡ì ë¤ë£¨ì§ ë§ë¼."
#. Tag: para
-#: best_practices.xml:174
#, fuzzy, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
@@ -321,13 +293,11 @@
"get()</literal> ëë íëì ì§ì를 ì¬ì©íë¼."
#. Tag: term
-#: best_practices.xml:184
#, fuzzy, no-c-format
msgid "Prefer lazy fetching for associations:"
msgstr "ì°ê´ë¤ì ëí lazy íì¹ì ì í¸íë¼."
#. Tag: para
-#: best_practices.xml:186
#, fuzzy, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
@@ -346,7 +316,6 @@
"ì í ë, íëì <literal>left join fetch</literal>를 ê°ì§ ì§ì를 ì¬ì©íë¼."
#. Tag: term
-#: best_practices.xml:196
#, fuzzy, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
@@ -357,7 +326,6 @@
"ë¨ê³(assembly phase)</emphasis>를 ì¬ì©íë¼."
#. Tag: para
-#: best_practices.xml:201
#, fuzzy, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
@@ -387,13 +355,11 @@
"ë¤."
#. Tag: term
-#: best_practices.xml:215
#, fuzzy, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
msgstr "Hibernateìì ë¹ì ì ë¹ì§ëì¤ ë¡ì§ì ì¶ìí ìí¤ë ê²ì ê³ ë ¤íë¼."
#. Tag: para
-#: best_practices.xml:217
#, fuzzy, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
@@ -411,13 +377,11 @@
"ì ê°ì§ ì´í리ì¼ì´ì
ì ëí´ìë ì ì íì§ ìë¤!)"
#. Tag: term
-#: best_practices.xml:227
#, fuzzy, no-c-format
msgid "Do not use exotic association mappings:"
msgstr "ì ì¢
ì ì°ê´ 매íì ì¬ì©íì§ ë§ë¼."
#. Tag: para
-#: best_practices.xml:229
#, fuzzy, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
@@ -435,13 +399,11 @@
"를 ë¹ì ì¤ì¤ë¡ ì§ë¬¸íë¼."
#. Tag: term
-#: best_practices.xml:239
#, fuzzy, no-c-format
msgid "Prefer bidirectional associations:"
msgstr "ìë°©í¥ ì°ê´ë¤ì ì í¸íë¼."
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,19 +11,16 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: collection_mapping.xml:29
#, fuzzy, no-c-format
msgid "Collection mapping"
msgstr "ì½ë ì
매íë¤"
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
msgstr "ìì ì½ë ì
ë¤"
#. Tag: para
-#: collection_mapping.xml:34
#, fuzzy, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
@@ -32,23 +29,7 @@
"ì를 ë¤ì´ Hibernateë ìì ì½ë ì
-ê°ì ê°ì§ íëë¤ì´ ì¸í°íì´ì¤ íì
ì¼ë¡ì ì "
"ì¸ë ê²ì íìë¡ íë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:39
-#, no-c-format
-msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:41
#, fuzzy, no-c-format
msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
@@ -66,7 +47,6 @@
"UserCollectionType</literal>ì ëí 구íì ìì±í´ì¼ í¨ì ì미íë¤.)"
#. Tag: para
-#: collection_mapping.xml:50
#, fuzzy, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
@@ -85,23 +65,7 @@
"Hibernate ìì ì 구íì ì¸ì¤í´ì¤ë¡ ëì²´ìí¬ ê²ì´ë¤. ë¤ìê³¼ ê°ì ì¤ë¥ë¤ì ê´ì°°"
"íë¼:"
-#. Tag: programlisting
-#: collection_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:62
#, fuzzy, no-c-format
msgid ""
"The persistent collections injected by Hibernate behave like "
@@ -115,7 +79,6 @@
"ì´ íìíë¤."
#. Tag: para
-#: collection_mapping.xml:69
#, fuzzy, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
@@ -136,7 +99,6 @@
"Hibernateë null ì½ë ì
참조ì 공백ì ì½ë ì
ì¬ì´ë¥¼ êµ¬ë³ ì§ì§ ìëë¤."
#. Tag: para
-#: collection_mapping.xml:80
#, fuzzy, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
@@ -149,13 +111,11 @@
"ë¨)."
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
msgstr "ì½ë ì
매íë¤"
#. Tag: para
-#: collection_mapping.xml:92
#, fuzzy, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
@@ -168,7 +128,6 @@
"ë°©ë²ì ë¹ì ì´ ëë¼ë ¤ë©´ ì¤í¤ë§ ìì± ëêµ¬ë¡ ì¤íí ê²ì ì°ë¦¬ë ì ìíë¤."
#. Tag: para
-#: collection_mapping.xml:99
#, fuzzy, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
@@ -179,21 +138,7 @@
"ë¤. ì를 ë¤ì´<literal><set></literal> ììë <literal>Set</literal> í"
"ì
ì 매í íë¡í¼í°ë¤ì ì¬ì©ëë¤"
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -207,43 +152,12 @@
"<literal><array></literal>, ê·¸ë¦¬ê³ <literal><map></literal> 매í "
"ììë¤ì´ ì¡´ì¬íë¤. <literal><map></literal> ììê° ëíì ì´ë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:132
-#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:135
#, fuzzy, no-c-format
msgid "<literal>name</literal>: the collection property name"
msgstr "<literal>name</literal> ì½ë ì
íë¡í¼í° ì´ë¦"
#. Tag: para
-#: collection_mapping.xml:140
#, fuzzy, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
@@ -253,7 +167,6 @@
"(one-to-many ì°ê´ê´ê³ë¤ì ëí´ìë ì¬ì©ëì§ ìì)"
#. Tag: para
-#: collection_mapping.xml:146
#, fuzzy, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
@@ -263,7 +176,6 @@
"í¤ë í
ì´ë¸ ì¤í¤ë§ì ì´ë¦"
#. Tag: para
-#: collection_mapping.xml:152
#, fuzzy, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
@@ -278,7 +190,6 @@
"ì© ê°ë¥íëë¡ íëë°(ë§¤ì° í° ì½ë ì
ë¤ì ì ë¹í¨) ì¬ì©ë ì ìë¤"
#. Tag: para
-#: collection_mapping.xml:161
#, fuzzy, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
@@ -289,7 +200,6 @@
"ì
ì ìë°©í¥ ì°ê´ê´ê³ì \"inverse\" ë(end)ì¼ë¡ íìíë¤"
#. Tag: para
-#: collection_mapping.xml:167
#, fuzzy, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
@@ -299,7 +209,6 @@
"ì
ë¤ì´ ìì ìí°í°ë¤ì ëí´ ì¼ì¤ì¼ì´ëíë ê²ì ì´ì© ê°ë¥íê² íë¤"
#. Tag: para
-#: collection_mapping.xml:173
#, fuzzy, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
@@ -309,7 +218,6 @@
"(sorted) ì½ë ì
ëë 주ì´ì§ comparator í´ëì¤ë¥¼ ì§ì íë¤"
#. Tag: para
-#: collection_mapping.xml:179
#, fuzzy, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
@@ -322,7 +230,6 @@
"literal> ëë bagì ë°ë³µ ìì를 ì ìíë í
ì´ë¸ 컬ë¼(ëë 컬ë¼ë¤)ì ì§ì íë¤"
#. Tag: para
-#: collection_mapping.xml:186
#, fuzzy, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
@@ -335,7 +242,6 @@
"ì´í°ì ë¶ë¶ì§í© ë§ì í¬í¨í ê²½ì°ì ì ì©íë¤)"
#. Tag: para
-#: collection_mapping.xml:193
#, fuzzy, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
@@ -347,7 +253,6 @@
"ì ííë¼."
#. Tag: para
-#: collection_mapping.xml:200
#, fuzzy, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
@@ -357,7 +262,6 @@
"ì lazily fetching ì¸ì¤í´ì¤ì ëí´ \"ë°°ì¹ ì¬ì´ì¦\"를 ì§ì íë¼."
#. Tag: para
-#: collection_mapping.xml:206
#, fuzzy, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
@@ -368,7 +272,6 @@
"Hibernateê° ì½ë ì
íë¡í¼í° ê°ì ì ê·¼íëë° ì¬ì©í ë°©ë."
#. Tag: para
-#: collection_mapping.xml:212
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
@@ -382,7 +285,6 @@
"íë ê²ì´ ì¢
ì¢
í©ë¹íë¤.)"
#. Tag: para
-#: collection_mapping.xml:220
#, fuzzy, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
@@ -395,13 +297,11 @@
"ë¤. (ëªëª ê²½ì°ë¤ìì ë§ì´ë í¼í¬ë¨¼ì¤ ìµì í)."
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
msgstr "ì½ë ì
foreign í¤ë¤"
#. Tag: para
-#: collection_mapping.xml:232
#, fuzzy, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
@@ -416,7 +316,6 @@
"<literal><key></literal> ììì ìí´ ë§¤íëë¤."
#. Tag: para
-#: collection_mapping.xml:240
#, fuzzy, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
@@ -429,14 +328,7 @@
"ì°, foreign í¤ë ëí´í¸ë¡ null íì© ê°ë¥íì¬ì, ë¹ì ì <literal>not-null="
"\"true\"</literal>를 ì§ì í íìê° ìì ì ìë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:247
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:249
#, fuzzy, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
@@ -444,14 +336,7 @@
"foreign í¤ ì»¨ì¤í¸ë ì¸í¸ë <literal>ON DELETE CASCADE</literal>를 ì¬ì©í ìë "
"ìë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
@@ -459,13 +344,11 @@
msgstr "<literal><key></literal> ììì ëí ì ì²´ ì ìë ì ì¥ì ë³´ë¼."
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
msgstr "ì½ë ì
ììë¤"
#. Tag: para
-#: collection_mapping.xml:265
#, fuzzy, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
@@ -484,7 +367,6 @@
"ë¤ ì¬ì´ì \"ë§í¬\" ë§ì´ ê·¸ ì½ë ì
ì ìí´ ìì ë ìíë¡ ê°ì£¼ëë¤."
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -502,13 +384,11 @@
"ë° ì¬ì©ëë¤."
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
msgstr "ì¸ë±ì± ë ì½ë ì
ë¤"
#. Tag: para
-#: collection_mapping.xml:288
#, fuzzy, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
@@ -534,56 +414,74 @@
"</literal> ìì를 ì¬ì©íì¬ ë§¤íëë¤. 매íë 컬ë¼ì ìì°¨ì ì¸ ì ìë¤ì í¬í¨íë¤"
"(ëí´í¸ë¡ 0ìì ììíë ë²í¸ê° ë¶ì¬ì§)."
-#. Tag: sect2
-#: collection_mapping.xml:299
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
msgstr ""
+"<literal>column_name</literal> (íì): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ë³´ê´íë 컬ë¼ì "
+"ì´ë¦."
#. Tag: para
-#: collection_mapping.xml:380
#, fuzzy, no-c-format
msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
+msgstr ""
+"<literal>base</literal> (ìµì
, ëí´í¸ë <literal>0</literal>): 리ì¤í¸ ëë ë°°"
+"ì´ì 첫 ë²ì§¸ ììì ëìíë ì¸ë±ì¤ 컬ë¼ì ê°."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr ""
+"<literal>column</literal> (ìµì
): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ë³´ê´íë 컬ë¼ì ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
+msgstr ""
+"<literal>formula</literal> (ìµì
): mapì í¤ë¥¼ íê°íëë° ì¬ì©ëë SQL "
+"formula."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>type</literal> (íì): The type of the map í¤ë¤ì íì
"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr ""
+"<literal>column</literal> (ìµì
): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ëí foreign í¤ ì»¬ë¼"
+"ì ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+"<literal>formula</literal> (ìµì
): mapì foreign í¤ë¥¼ íê°íëë° ì¬ì©ëë "
+"SQL formula."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr "<literal>class</literal> (íì): map í¤ë¡ì ì¬ì©ëë ìí°í° í´ëì¤."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
@@ -597,13 +495,11 @@
"ë¡ ì ë ¬(sorting)ëê±°ë orderingë ìë ìë¤."
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
msgstr "ê°ë¤ì ê°ì§ ì½ë ì
ë¤ê³¼ many-to-many ì°ê´ë¤"
#. Tag: para
-#: collection_mapping.xml:392
#, fuzzy, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
@@ -616,7 +512,6 @@
"ë¤ì´ë 컬ë¼ë¤ì ê°ì§ ì ì© <emphasis>ì½ë ì
í
ì´ë¸</emphasis>ì íìë¡ íë¤."
#. Tag: para
-#: collection_mapping.xml:399
#, fuzzy, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
@@ -625,101 +520,133 @@
"ê°ë¤ì ê°ì§ ì½ë ì
ì ê²½ì°, ì°ë¦¬ë <literal><element></literal> í그를 "
"ì¬ì©íë¤."
-#. Tag: sect2
-#: collection_mapping.xml:401
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
+"collection element values."
+msgstr ""
+"<literal>column</literal> (ìµì
): ì½ë ì
ìì ê°ë¤ì ìì íë 컬ë¼ì ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
+"element."
+msgstr ""
+"<literal>formula</literal> (ìµì
): ìì를 íê°íëë° ì¬ì©ëë SQL formula."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>type</literal> (required): the type of the collection element."
+msgstr "<literal>type</literal> (íì): ì½ë ì
ììì íì
."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
+msgstr ""
+"<emphasis>many-to-many association</emphasis> ì°ê´ì <literal><many-to-"
+"many></literal> ìì를 ì¬ì©íì¬ ì§ì ëë¤."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
+msgstr "<literal>column</literal> (ìµì
): ìì foreign í¤ ì»¬ë¼ì ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
+msgstr ""
+"<literal>formula</literal> (ìµì
): ìì foreign í¤ ê°ì íê°íëë° ì¬ì©ëë "
+"SQL formula."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal> (íì): ì°ê´ë í´ëì¤ì ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"enables outer-join or sequential select fetching for this association. This "
"is a special case; for full eager fetching in a single <literal>SELECT</"
"literal> of an entity and its many-to-many relationships to other entities, "
"you would enable <literal>join</literal> fetching,not only of the collection "
"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"literal> nested element."
msgstr ""
+"<literal>fetch</literal> (ìµì
- ëí´í¸ë <literal>join</literal>): ì´ ì°ê´"
+"ì ëí´ outer-join íì¹ ëë sequential select íì¹ì ì´ì© ê°ë¥íê² ë§ë ë¤. "
+"ì´ê²ì í¹ë³í ê²½ì°ì´ë¤; ìí°í° ê·¸ë¦¬ê³ ë¤ë¥¸ ìí°í°ë¤ê³¼ ê·¸ê²ì many-to-many ê´"
+"ê³ë¤ì ëí (íëì <literal>SELECT</literal> ë´ìì) ì ì²´ eager íì¹ì ê²½"
+"ì°, ë¹ì ì ì½ë ì
ê·¸ ìì²´ì ëí´ì ë¿ë§ ìëë¼ ë´í¬ë ìì <literal><many-"
+"to-many></literal> ìì ì´ ìì±ì ëí´ <literal>join</literal> íì¹ì ì´"
+"ì© ê°ë¥íê² í ê²ì´ë¤."
#. Tag: para
-#: collection_mapping.xml:506
+#, fuzzy, no-c-format
+msgid ""
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
+msgstr ""
+"<literal>unique</literal> (ìµì
): foreign-key 컬ë¼ì ëí ì ì¼ ì»¨ì¤í¸ë ì¸í¸"
+"ì DDL ìì±ì ê°ë¥íëë¡ íë¤. ì´ê²ì ì°ê´ ë¤ì¤ì± (association multiplicity)"
+"ì í¨ì¨ì ì¼ë¡ one to manyë¡ ë§ë ë¤."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
+msgstr ""
+"<literal>not-found</literal> (ìµì
- ëí´í¸ë <literal>exception</literal>): "
+"ëë½ë íë¤ì 참조íë foreign í¤ë¤ì´ ì´ë»ê² ì²ë¦¬ë ê²ì¸ì§ë¥¼ ì§ì íë¤: "
+"<literal>ignore</literal>ë ëë½ë í íì í ê°ì ì°ê´ì¼ë¡ ë¤ë£° ê²ì´ë¤."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
+msgstr ""
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"<literal>entity-name</literal> (ìµì
): <literal>class</literal>ì ëí íë"
+"ì ëìì¼ë¡ì, ì°ê´ë í´ëì¤ì ìí°í° ì´ë¦.\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"<literal>entity-name</literal> (ìµì
): <literal>class</literal>ì ëí ëìì¼"
+"ë¡ì, ì°ê´ë í´ëì¤ì ìí°í° ì´ë¦."
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
+msgstr ""
+"<literal>property-ref</literal>: (ìµì
) ì´ foreign í¤ì ì¡°ì¸ë ì°ê´ í´ëì¤ì "
+"íë¡í¼í°ì ì´ë¦. ì§ì ëì§ ìì ê²½ì°, ì°ê´ í´ëì¤ì íë¼ì´ë¨¸ë¦¬ í¤ê° ì¬ì©ëë¤."
+
+#. Tag: para
#, no-c-format
msgid "Here are some examples."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
msgid "A set of strings:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:513
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:515
#, fuzzy, no-c-format
msgid ""
"A bag containing integers with an iteration order determined by the "
@@ -728,87 +655,27 @@
"(<literal>order-by</literal> ìì±ì ìí´ ê²°ì ëë ë°ë³µ ìì를 ê°ì§) ì ìë¤ì "
"í¬í¨íë bag :"
-#. Tag: programlisting
-#: collection_mapping.xml:520
-#, no-c-format
-msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:522
#, fuzzy, no-c-format
msgid "An array of entities, in this case, a many-to-many association:"
msgstr "ìí°í°ë¤ì ê°ì§ ë°°ì´ - ì´ ê²½ì°ì, many to many ì°ê´ :"
-#. Tag: programlisting
-#: collection_mapping.xml:526
-#, no-c-format
-msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
msgid "A map from string indices to dates:"
msgstr "ë ì§ë¤ì ëí 문ìì´ ì¸ë±ì¤ë¤ì ê°ì§ map :"
-#. Tag: programlisting
-#: collection_mapping.xml:532
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:534
#, fuzzy, no-c-format
msgid "A list of components (this is discussed in the next chapter):"
msgstr "ì»´í¬ëí¸ë¤ì 리ì¤í¸(ë¤ì ì¥ìì ë
¼ìë¨):"
-#. Tag: programlisting
-#: collection_mapping.xml:538
-#, no-c-format
-msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
msgstr "One-to-many ì°ê´ë¤"
#. Tag: para
-#: collection_mapping.xml:545
#, fuzzy, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
@@ -820,7 +687,6 @@
"ë ì
ë¤ì ì´ë¤ ì미를 ìì¤íë¤:"
#. Tag: para
-#: collection_mapping.xml:553
#, fuzzy, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
@@ -830,7 +696,6 @@
"ìì ì ìë¤"
#. Tag: para
-#: collection_mapping.xml:559
#, fuzzy, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
@@ -840,7 +705,6 @@
"ì§ ìì ì ìë¤"
#. Tag: para
-#: collection_mapping.xml:566
#, fuzzy, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
@@ -853,28 +717,8 @@
"íë¤. <literal><one-to-many></literal> íê·¸ë ì´ê²ì´ one to many ì°ê´ì"
"ì ëíë¸ë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:579
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:582
#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr "<literal>class</literal> (íì): ì°ê´ë í´ëì¤ì ì´ë¦."
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
@@ -886,23 +730,8 @@
"<literal>ignore</literal>ë ëë½ë í íì í ê°ì ì°ê´ì¼ë¡ ë¤ë£° ê²ì´ë¤."
#. Tag: para
-#: collection_mapping.xml:594
#, fuzzy, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (ìµì
): <literal>class</literal>ì ëí íë"
-"ì ëìì¼ë¡ì, ì°ê´ë í´ëì¤ì ìí°í° ì´ë¦.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>entity-name</literal> (ìµì
): <literal>class</literal>ì ëí ëìì¼"
-"ë¡ì, ì°ê´ë í´ëì¤ì ìí°í° ì´ë¦."
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
@@ -912,7 +741,6 @@
"ìì ì´ì§ ìë¤."
#. Tag: para
-#: collection_mapping.xml:609
#, fuzzy, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
@@ -930,7 +758,6 @@
"ë¤ì ëí ë
¼ìë ì´ ì¥ì ë·ë¶ë¶ì ë³´ë¼."
#. Tag: para
-#: collection_mapping.xml:619
#, fuzzy, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
@@ -941,32 +768,17 @@
"기ì <literal>partName</literal>ì <literal>Part</literal>ì ìì íë¡í¼í°ì´"
"ë¤). formula-ê¸°ë° indexì ì¬ì©ì 주목íë¼."
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
msgstr "ê°ì ë ì½ë ì
매íë¤"
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr "Sorted ì½ë ì
ë¤"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
@@ -977,26 +789,7 @@
"SortedSet</literal>를 구ííë ì½ë ì
ë¤ì ì§ìíë¤. ë¹ì ì 매í íì¼ ìì í"
"ëì comparator를 ì§ì í´ì¼ íë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
@@ -1008,7 +801,6 @@
"구ííë í´ëì¤ì ì´ë¦ì´ë¤."
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
@@ -1018,7 +810,6 @@
"util.TreeMap</literal>ì²ë¼ íëíë¤."
#. Tag: para
-#: collection_mapping.xml:654
#, fuzzy, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
@@ -1035,31 +826,12 @@
"ëë <literal>LinkedHashMap</literal>ì ì¬ì©íì¬ êµ¬íëë¤). ì´ê²ì ë©ëª¨ë¦¬ ë´"
"ê° ìë, SQL ì§ì ë´ìì ììì§ì(ordering)ì ìííë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:667
#, fuzzy, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
@@ -1069,7 +841,6 @@
"ììì§ì(ordering)ìì ë
¸í¸íë¼!"
#. Tag: para
-#: collection_mapping.xml:673
#, fuzzy, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
@@ -1078,22 +849,12 @@
"ì°ê´ë¤ì ì½ë ì
<literal>filter()</literal>를 ì¬ì©íì¬ ì¤í ìì ì´ë¤ ììì "
"criteria(기ì¤)ì ì¬ì©íì¬ ì ë ¬(sort)ë ìë ìë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr "ìë°©í¥ ì°ê´ë¤"
#. Tag: para
-#: collection_mapping.xml:685
#, fuzzy, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
@@ -1104,31 +865,26 @@
"ì íì©íë¤. ë ê°ì§ ì¢
ë¥ì ìë°©í¥ ì°ê´ë¤ì´ ì§ìëë¤: <placeholder-1/>"
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
msgstr "one-to-many"
#. Tag: para
-#: collection_mapping.xml:694
#, fuzzy, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
msgstr "í쪽 ëì set ëë bag ê°ì ê°ê³ , ë¤ë¥¸ 쪽 ê¸ì ë¨ì¼ ê°ì ê°ì§ ì°ê´"
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
msgstr "many-to-many"
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
msgstr "ì ëìì set ëë bag ê°ì ê°ì§ ì°ê´"
#. Tag: para
-#: collection_mapping.xml:711
#, fuzzy, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
@@ -1141,7 +897,6 @@
"many ì°ê´ì ì§ì í ìë ìë¤."
#. Tag: para
-#: collection_mapping.xml:718
#, fuzzy, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
@@ -1151,33 +906,7 @@
"ë¤ìì ìë°©í¥ many-to-many ì°ê´ì ê´í ìì ì´ë¤; ê°ê°ì ì¹´í
ê³ ë¦¬ë ë§ì ìì´"
"í
ë¤ì ê°ì§ ì ìê³ ê°ê°ì ìì´í
ì ë§ì ì¹´í
ê³ ë¦¬ë¤ ìì ìì ì ìë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:725
#, fuzzy, no-c-format
msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
@@ -1192,23 +921,7 @@
"ì ë ë¤ë¥¸ ë§í¬. ë§ì¼ ë¹ì ì´ ìë° ê°ì²´ 모íì ëí´ ê·¸ë¦¬ê³ ìë°ìì many-to-"
"many ê´ê³ë¥¼ ìì±ìí¤ë ë°©ë²ì ëí´ ìê°íë©´ ì´ê²ì ì´í´íê¸°ê° ë ì½ë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
@@ -1216,7 +929,6 @@
msgstr "non-inverse 측ì ë©ëª¨ë¦¬ ë´ íìì ë°ì´í°ë² ì´ì¤ë¡ ì ì¥íëë° ì¬ì©ëë¤."
#. Tag: para
-#: collection_mapping.xml:739
#, fuzzy, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
@@ -1227,31 +939,7 @@
"컬ë¼(ë¤)ë¡ ë§¤ííê³ many-ê°ì ê°ì§ ë(end)ì <literal>inverse=\"true\"</"
"literal>ë¡ ì ì¸í¨ì¼ë¡ì¨ íëì ìë°©í¥ ì°ê´ì ì ìí ìë ìë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:745
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:747
#, fuzzy, no-c-format
msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
@@ -1262,13 +950,11 @@
"ë¤!"
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "ì¸ë±ì±ë ì½ë ì
ë¤ì ê°ì§ ìë°©í¥ ì°ê´ë¤"
#. Tag: para
-#: collection_mapping.xml:756
#, fuzzy, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
@@ -1283,35 +969,7 @@
"ë ì½ë ì
매í ìì <literal>inverse=\"true\"</literal>를 ì¬ì©íì¬ ê³ìí ì "
"ìë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:763
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:765
#, fuzzy, no-c-format
msgid ""
"If there is no such property on the child class, the association cannot be "
@@ -1326,36 +984,7 @@
"<literal>inverse=\"true\"</literal>ë¡ ë§¤íìí¬ ì ìë¤. ëì ì ì°ë¦¬ë ë¤ì 매"
"íì ì¬ì©í ì ìë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
@@ -1365,13 +994,11 @@
"ì´ ììì ë
¸í¸íë¼."
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "Ternary associations(ì¸ê²¹ ì°ê´ë¤)"
#. Tag: para
-#: collection_mapping.xml:784
#, fuzzy, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
@@ -1380,30 +1007,7 @@
"ì¸ ê²¹ì ì°ê´ì 매ííë ì¸ ê°ì§ ê°ë¥í ì ê·¼ë²ë¤ì´ ì¡´ì¬íë¤. íëì ì ê·¼ë²ì "
"ê·¸ê²ì ì¸ë±ì¤ë¡ì ì°ê´ê´ê³ë¥¼ ê°ì§ <literal>Map</literal>ì ì¬ì©íë ê²ì´ë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:789
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:793
#, fuzzy, no-c-format
msgid ""
"A second approach is to remodel the association as an entity class. This is "
@@ -1413,7 +1017,6 @@
"ì´ê²ì ì°ë¦¬ê° ê°ì¥ ê³µíµì ì¼ë¡ ì¬ì©íë ì ê·¼ë²ì´ë¤."
#. Tag: para
-#: collection_mapping.xml:798
#, fuzzy, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
@@ -1421,14 +1024,12 @@
msgstr ""
"ë§ì§ë§ ëìì ì°ë¦¬ê° ëì¤ì ë
¼ìíê² ë composite ììë¤ì ì¬ì©íë ê²ì´ë¤."
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
msgstr "<literal><idbag></literal> ì¬ì©í기"
#. Tag: para
-#: collection_mapping.xml:807
#, fuzzy, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
@@ -1451,7 +1052,6 @@
"ë ê²ì ë¹ì ìê² íì©í´ì£¼ë í¹ì§ì ì ê³µíë¤."
#. Tag: para
-#: collection_mapping.xml:817
#, fuzzy, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
@@ -1461,21 +1061,7 @@
"literal>(ëë <literal>Collection</literal>)ì 매ííëë¡ ë¹ì ìê² íì©í´ì¤"
"ë¤."
-#. Tag: programlisting
-#: collection_mapping.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:824
#, fuzzy, no-c-format
msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
@@ -1489,7 +1075,6 @@
"ì¦ì ì ê³µíì§ ìëë¤."
#. Tag: para
-#: collection_mapping.xml:831
#, fuzzy, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
@@ -1503,7 +1088,6 @@
"ë¡ ì
ë°ì´í¸ íê±°ë ìì ìí¬ ì ìë¤."
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
@@ -1514,48 +1098,22 @@
"idbag></literal> ì½ë ì
ìë³ìë¤ì ëí´ ì§ìëì§ ìëë¤."
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr "ì½ë ì
ìì ë¤"
#. Tag: para
-#: collection_mapping.xml:863
#, fuzzy, no-c-format
msgid "This section covers collection examples."
msgstr "ì½ë ì
ìì ë¤"
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:871
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:873
#, fuzzy, no-c-format
msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
@@ -1565,50 +1123,12 @@
"ì¼ ê°ê°ì ììì´ ìµìí í ê°ì ë¶ëª¨ë¥¼ ê°ì§ ê²½ì°, ëë¶ë¶ì ê³ ì í 매íì one-"
"to-many ì°ê´ì´ë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "ì´ê²ì ë¤ì í
ì´ë¸ ì ìë¤ë¡ 매íëë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
@@ -1617,54 +1137,12 @@
"ë§ì¼ ë¶ëª¨ê° <emphasis>íìì </emphasis>ì´ë¼ë©´, ìë°©í¥ one-to-many ì°ê´ê´ê³ë¥¼ "
"ì¬ì©íë¼:"
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
msgstr "<literal>NOT NULL</literal> 컨ì¤í¸ë ì¸í¸ë¥¼ 주목íë¼:"
-#. Tag: programlisting
-#: collection_mapping.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:900
#, fuzzy, no-c-format
msgid ""
"Alternatively, if this association must be unidirectional you can declare "
@@ -1675,34 +1153,7 @@
"ì°, ë¹ì ì <literal><key></literal> 매í ìì <literal>NOT NULL</"
"literal> 컨ì¤í¸ë ì¸í¸ë¥¼ ì ì¸í ì ìë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:908
#, fuzzy, no-c-format
msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
@@ -1711,65 +1162,21 @@
"ë°ë©´ì, ë§ì¼ ììì´ ì¬ë¬ ë¶ëª¨ë¤ì ê°ì§ ì ìì ê²½ì°, many-to-many ì°ê´ì´ ì ì "
"íë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr "í
ì´ë¸ ì ìë¤:"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
"ë¶ëª¨/ìì ê´ê³ 매íì ì°ìµíë ë ë§ì ìì ë¤ê³¼ ì ì²´ 리íì¤ì <xref linkend="
"\"example-parentchild\"/>를 ë³´ë¼."
#. Tag: para
-#: collection_mapping.xml:926
#, fuzzy, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr ""
@@ -1786,134 +1193,3 @@
#~ "The previous sections are pretty confusing. So lets look at an example. "
#~ "This class:"
#~ msgstr "ìì ì ë¤ì 꽤 í¼ëì¤ë½ë¤. ë°ë¼ì ìì 를 ì´í´ë³´ì. ë¤ì í´ëì¤:"
-
-#~ msgid ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
-#~ msgstr ""
-#~ "<literal>column_name</literal> (íì): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ë³´ê´íë 컬ë¼"
-#~ "ì ì´ë¦."
-
-#~ msgid ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
-#~ msgstr ""
-#~ "<literal>base</literal> (ìµì
, ëí´í¸ë <literal>0</literal>): 리ì¤í¸ ë"
-#~ "ë ë°°ì´ì 첫 ë²ì§¸ ììì ëìíë ì¸ë±ì¤ 컬ë¼ì ê°."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (ìµì
): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ë³´ê´íë 컬ë¼ì ì´"
-#~ "ë¦."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
-#~ msgstr ""
-#~ "<literal>formula</literal> (ìµì
): mapì í¤ë¥¼ íê°íëë° ì¬ì©ëë SQL "
-#~ "formula."
-
-#~ msgid "<literal>type</literal> (reguired): The type of the map keys."
-#~ msgstr "<literal>type</literal> (íì): The type of the map í¤ë¤ì íì
"
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (ìµì
): ì½ë ì
ì¸ë±ì¤ ê°ë¤ì ëí foreign í¤ ì»¬"
-#~ "ë¼ì ì´ë¦."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
-#~ msgstr ""
-#~ "<literal>formula</literal> (ìµì
): mapì foreign í¤ë¥¼ íê°íëë° ì¬ì©ëë "
-#~ "SQL formula."
-
-#~ msgid ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
-#~ msgstr "<literal>class</literal> (íì): map í¤ë¡ì ì¬ì©ëë ìí°í° í´ëì¤."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
-#~ msgstr ""
-#~ "<literal>column</literal> (ìµì
): ì½ë ì
ìì ê°ë¤ì ìì íë 컬ë¼ì ì´ë¦."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
-#~ msgstr ""
-#~ "<literal>formula</literal> (ìµì
): ìì를 íê°íëë° ì¬ì©ëë SQL formula."
-
-#~ msgid ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-#~ msgstr "<literal>type</literal> (íì): ì½ë ì
ììì íì
."
-
-#~ msgid ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
-#~ msgstr ""
-#~ "<emphasis>many-to-many association</emphasis> ì°ê´ì <literal><many-to-"
-#~ "many></literal> ìì를 ì¬ì©íì¬ ì§ì ëë¤."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
-#~ msgstr "<literal>column</literal> (ìµì
): ìì foreign í¤ ì»¬ë¼ì ì´ë¦."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
-#~ msgstr ""
-#~ "<literal>formula</literal> (ìµì
): ìì foreign í¤ ê°ì íê°íëë° ì¬ì©ë"
-#~ "ë SQL formula."
-
-#~ msgid ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
-#~ msgstr ""
-#~ "<literal>fetch</literal> (ìµì
- ëí´í¸ë <literal>join</literal>): ì´ ì°"
-#~ "ê´ì ëí´ outer-join íì¹ ëë sequential select íì¹ì ì´ì© ê°ë¥íê² ë§ë "
-#~ "ë¤. ì´ê²ì í¹ë³í ê²½ì°ì´ë¤; ìí°í° ê·¸ë¦¬ê³ ë¤ë¥¸ ìí°í°ë¤ê³¼ ê·¸ê²ì many-to-"
-#~ "many ê´ê³ë¤ì ëí (íëì <literal>SELECT</literal> ë´ìì) ì ì²´ eager í"
-#~ "ì¹ì ê²½ì°, ë¹ì ì ì½ë ì
ê·¸ ìì²´ì ëí´ì ë¿ë§ ìëë¼ ë´í¬ë ìì "
-#~ "<literal><many-to-many></literal> ìì ì´ ìì±ì ëí´ "
-#~ "<literal>join</literal> íì¹ì ì´ì© ê°ë¥íê² í ê²ì´ë¤."
-
-#~ msgid ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
-#~ msgstr ""
-#~ "<literal>unique</literal> (ìµì
): foreign-key 컬ë¼ì ëí ì ì¼ ì»¨ì¤í¸ë ì¸"
-#~ "í¸ì DDL ìì±ì ê°ë¥íëë¡ íë¤. ì´ê²ì ì°ê´ ë¤ì¤ì± (association "
-#~ "multiplicity)ì í¨ì¨ì ì¼ë¡ one to manyë¡ ë§ë ë¤."
-
-#~ msgid ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
-#~ msgstr ""
-#~ "<literal>not-found</literal> (ìµì
- ëí´í¸ë <literal>exception</"
-#~ "literal>): ëë½ë íë¤ì 참조íë foreign í¤ë¤ì´ ì´ë»ê² ì²ë¦¬ë ê²ì¸ì§ë¥¼ ì§"
-#~ "ì íë¤: <literal>ignore</literal>ë ëë½ë í íì í ê°ì ì°ê´ì¼ë¡ ë¤ë£° "
-#~ "ê²ì´ë¤."
-
-#~ msgid ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
-#~ msgstr ""
-#~ "<literal>property-ref</literal>: (ìµì
) ì´ foreign í¤ì ì¡°ì¸ë ì°ê´ í´ëì¤"
-#~ "ì íë¡í¼í°ì ì´ë¦. ì§ì ëì§ ìì ê²½ì°, ì°ê´ í´ëì¤ì íë¼ì´ë¨¸ë¦¬ í¤ê° ì¬ì©"
-#~ "ëë¤."
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
msgstr "Component 매í"
#. Tag: para
-#: component_mapping.xml:31
#, fuzzy, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
@@ -27,13 +25,11 @@
"컨í
ì¤í¸ë¤ ë´ìì ì¬ì¬ì©ëë¤."
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr "ì¢
ì ê°ì²´ë¤"
#. Tag: para
-#: component_mapping.xml:39
#, fuzzy, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
@@ -46,68 +42,7 @@
"composition(구ì±,í©ì±)ì ëí ê°ì²´-ì§í¥ì ì¸ ê°ë
ì ì¸ê¸íë¤. ì를 ë¤ì´ ë¹ì "
"ì ë¤ìê³¼ ê°ì´ ê°ì¸ì 모íí ìí¬ ìë ìë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:45
-#, no-c-format
-msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:49
#, fuzzy, no-c-format
msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
@@ -121,31 +56,11 @@
"í¼í°ë¤ì ì ì¸íë ê²ì íìë¡ íì§ ììì 주목íë¼."
#. Tag: para
-#: component_mapping.xml:56
#, fuzzy, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr "ì°ë¦¬ì Hibernate 매íì ë¤ìê³¼ ê°ì ê²ì´ë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
@@ -157,7 +72,6 @@
"literal> 컬ë¼ë¤ì ê°ì§ ê²ì´ë¤."
#. Tag: para
-#: component_mapping.xml:70
#, fuzzy, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
@@ -176,7 +90,6 @@
"ì²´ ì»´í¬ëí¸ê° nullì´ë¼ê³ ê°ì í ê²ì´ë¤. ì´ê²ì ëë¶ë¶ì ì©ëì ë§ì ê²ì´ë¤."
#. Tag: para
-#: component_mapping.xml:78
#, fuzzy, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
@@ -190,7 +103,6 @@
"ì ì§ìíëë¡ ê³ ìëì´ìë¤."
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
@@ -201,33 +113,12 @@
"ëë ìí°í°ì ëí ì 참조ë¡ì 매íìí¤ë <literal><parent></literal> "
"ìë¸ìì를 íì©íë¤."
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
msgstr "ì¢
ì ê°ì²´ë¤ì ê°ì§ ì½ë ì
ë¤"
#. Tag: para
-#: component_mapping.xml:98
#, fuzzy, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
@@ -240,22 +131,7 @@
"composite-element></literal> íê·¸ë¡ ëì²´ìì¼ì ë¹ì ì ì»´í¬ëí¸ ì½ë ì
ì ì "
"ì¸íë¼."
-#. Tag: programlisting
-#: component_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:108
#, fuzzy, no-c-format
msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
@@ -267,7 +143,6 @@
"ê² êµ¬ííë ê²ì´ ë§¤ì° ì¤ìíë¤."
#. Tag: para
-#: component_mapping.xml:115
#, fuzzy, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
@@ -287,7 +162,6 @@
"ë¤ì´ ëì¼í ì§ë¼ë, ê´ê³í 모íê³¼ ììí ì미ë¤ì ì¬ì í ì½ê° ë¤ë¥´ë¤."
#. Tag: para
-#: component_mapping.xml:127
#, fuzzy, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
@@ -309,7 +183,6 @@
"ì¼ íë¤."
#. Tag: para
-#: component_mapping.xml:138
#, fuzzy, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
@@ -328,27 +201,7 @@
"<literal>price</literal>, ê·¸ë¦¬ê³ <literal>quantity</literal>ë ì°ê´ì íë¡í¼"
"í°ë¤ì´ë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:150
#, fuzzy, no-c-format
msgid ""
"There cannot be a reference to the purchase on the other side for "
@@ -364,29 +217,11 @@
"literal>ì ìí´ ì°¸ì¡°ë ì ìë¤."
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "ì¬ì§ì´ ì¸ê²¹ì(ëë ë¤ ê²¹ì, 기í) ì°ê´ë¤ì´ ê°ë¥íë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:160
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:162
#, fuzzy, no-c-format
msgid ""
"Composite elements can appear in queries using the same syntax as "
@@ -396,13 +231,11 @@
"ë¤ ë´ì ëíë ìë ìë¤."
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
msgstr "Map ì¸ë±ì¤ë¤ë¡ì ì»´í¬ëí¸ë¤"
#. Tag: para
-#: component_mapping.xml:172
#, fuzzy, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
@@ -416,13 +249,11 @@
"literal>를 ì ííê² ì¤ë²ë¼ì´ë ìí¤ëë¡ íë¼."
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
msgstr "composite ìë³ìë¤ë¡ì ì»´í¬ëí¸ë¤"
#. Tag: para
-#: component_mapping.xml:183
#, fuzzy, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
@@ -432,13 +263,11 @@
"í ìë ìë¤. ë¹ì ì ì»´í¬ëí¸ í´ëì¤ë ì´ë¤ ì¬ìë¤ì 충족ìì¼ì¼ íë¤:"
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
msgstr "ê·¸ê²ì <literal>java.io.Serializable</literal>ì 구íí´ì¼ íë¤."
#. Tag: para
-#: component_mapping.xml:195
#, fuzzy, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
@@ -449,13 +278,11 @@
"íë¤."
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: component_mapping.xml:205
#, fuzzy, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
@@ -465,7 +292,6 @@
"ëë¤. ê·¸ë¬ë ìë¬´í¼ ê·¸ê²ì ííë¼."
#. Tag: para
-#: component_mapping.xml:211
#, fuzzy, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
@@ -475,7 +301,6 @@
"ì¬ì©í ì ìë¤. ëì ì ì´í리ì¼ì´ì
ì ê·¸ê² ìì ì ìë³ìë¤ì í ë¹í´ì¼ íë¤."
#. Tag: para
-#: component_mapping.xml:216
#, fuzzy, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
@@ -490,32 +315,7 @@
"<literal>Order</literal>ì (composite) íë¼ì´ë¨¸ë¦¬ í¤ì ìì¡´íë íë¼ì´ë¨¸ë¦¬ í¤"
"를 ê°ëë¤."
-#. Tag: programlisting
-#: component_mapping.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-"\n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-"\n"
-" <property name=\"name\"/>\n"
-"\n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:226
#, fuzzy, no-c-format
msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
@@ -527,20 +327,7 @@
"ì¼ íë¤. <literal>OrderLine</literal>ì ëí íëì ì°ê´ì ë¤ìê³¼ ê°ì´ 매í"
"ë ê²ì´ë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
#, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
@@ -550,7 +337,6 @@
msgstr ""
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
@@ -559,22 +345,7 @@
"<literal>OrderLine</literal>ì ëí <literal>many-to-many</literal> ì°ê´ì ë"
"í composite foreign í¤ë¥¼ ì¬ì©íë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
@@ -583,21 +354,7 @@
"<literal>Order</literal>ìì <literal>OrderLine</literal>ë¤ì ì½ë ì
ì´ ì¬ì©"
"ë ê²ì´ë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:256
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:258
#, fuzzy, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
msgstr ""
@@ -605,7 +362,6 @@
"ìëë¤.)"
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
@@ -614,52 +370,17 @@
"ë§ì¼ <literal>OrderLine</literal> ìì²´ê° íëì ì½ë ì
ì ìì í ê²½ì°, ê·¸ê²ì "
"ëí íëì composite foreign í¤ë¥¼ ê°ëë¤."
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
msgstr "ëì ì¸ ì»´í¬ëí¸ë¤"
#. Tag: para
-#: component_mapping.xml:274
#, fuzzy, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
msgstr "ë¹ì ì <literal>Map</literal> íì
ì íë¡í¼í°ë¥¼ 매íìí¬ ìë ìë¤:"
-#. Tag: programlisting
-#: component_mapping.xml:278
-#, no-c-format
-msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:280
#, fuzzy, no-c-format
msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
msgstr "구ì±"
#. Tag: para
-#: configuration.xml:31
#, fuzzy, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
@@ -34,13 +32,11 @@
"classpath ê²½ë¡ ìì ê·¸ íì¼ì ì§ì´ë£ê³ ê·¸ê²ì 커ì¤í¸ë§ì´ì§íê¸°ë§ í´ì¼ íë¤."
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
msgstr "íë¡ê·¸ë¨ ìì 구ì±"
#. Tag: para
-#: configuration.xml:42
#, fuzzy, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
@@ -55,7 +51,6 @@
"를 ë¹ëíëë° ì¬ì©ëë¤. 매íë¤ì ì¬ë¬ XML 매í íì¼ë¤ë¡ë¶í° ì»´íì¼ ëë¤."
#. Tag: para
-#: configuration.xml:49
#, fuzzy, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
@@ -68,17 +63,7 @@
"ë¤. ë§ì¼ 매í íì¼ë¤ì´ classpath ë´ì ìë¤ë©´, <literal>addResource()</"
"literal>를 ì¬ì©íë¼:"
-#. Tag: programlisting
-#: configuration.xml:55
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:57
#, fuzzy, no-c-format
msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
@@ -87,17 +72,7 @@
"(ëëë¡ ë ëì) ë¤ë¥¸ ë°©ë²ì 매íë í´ëì¤ë¥¼ ì§ì íë ê²ì´ê³ , Hibernateë¡ í"
"ì¬ê¸ ë¹ì ì ìí´ ë§¤í 문ì를 ì°¾ëë¡ íë¼:"
-#. Tag: programlisting
-#: configuration.xml:62
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:64
#, fuzzy, no-c-format
msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
@@ -111,7 +86,6 @@
"ì ê±°íë¤."
#. Tag: para
-#: configuration.xml:70
#, fuzzy, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
@@ -120,22 +94,7 @@
"<literal>Configuration</literal>ì ëí êµ¬ì± íë¡í¼í°ë¤ì ì§ì íë ê²ì íì©"
"í´ì¤ë¤:"
-#. Tag: programlisting
-#: configuration.xml:75
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:77
#, fuzzy, no-c-format
msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
@@ -145,7 +104,6 @@
"ì¬ë¬ ê°ì§ ìµì
ë¤ì ë¤ìì í¬í¨íë¤:"
#. Tag: para
-#: configuration.xml:84
#, fuzzy, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
@@ -155,7 +113,6 @@
"setProperties()</literal>ì ì ë¬íë¤ ."
#. Tag: para
-#: configuration.xml:90
#, fuzzy, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
@@ -165,7 +122,6 @@
"ì´ë¤."
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
@@ -175,7 +131,6 @@
"literal> íë¡í¼í°ë¤ì ì¤ì íë¤."
#. Tag: para
-#: configuration.xml:100
#, fuzzy, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
@@ -185,7 +140,6 @@
"ìë¤ì í¬í¨íë¤ (ëì¤ì ë
¼ìë¨)."
#. Tag: para
-#: configuration.xml:107
#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
@@ -193,7 +147,6 @@
msgstr ""
#. Tag: para
-#: configuration.xml:111
#, fuzzy, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
@@ -204,13 +157,11 @@
"<literal>SessionFactory</literal>ê° ìì±ëë©´ í기ëê²ë ìì ëì´ ìë¤."
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
msgstr "SessionFactory ì»ê¸°"
#. Tag: para
-#: configuration.xml:121
#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
@@ -222,14 +173,7 @@
"ì´ì
ì <literal>Session</literal> ì¸ì¤í´ì¤ë¤ì ëí í©í 리를 ì»ì´ì¼ íë¤. ì´ "
"í©í 리ë 모ë ì´í리ì¼ì´ì
ì°ë ëë¤ì ìí´ ê³µì ëëë¡ ê³ ìëìë¤:"
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
@@ -241,13 +185,11 @@
"ì´ íë ì´ìì ë°ì´í°ë² ì´ì¤ë¥¼ ì¬ì©íë ê²½ì°ì ì ì©íë¤."
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
msgstr "JDBC 커ë¥ì
ë¤"
#. Tag: para
-#: configuration.xml:140
#, fuzzy, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
@@ -259,15 +201,7 @@
"ì
ë¤ì ìì±ìí¤ê³ íë§ìí¤ë ê²ì ìíë¤. ë§ì¼ ë¹ì ì´ ì´ ì ê·¼ë²ì ì·¨í ê²½ì°, "
"í ê°ì <literal>Session</literal>ì ì¬ë ê²ì ë¤ìê³¼ ê°ì´ ê°ë¨íë¤:"
-#. Tag: programlisting
-#: configuration.xml:146
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:148
#, fuzzy, no-c-format
msgid ""
"Once you start a task that requires access to the database, a JDBC "
@@ -277,7 +211,6 @@
"JDBC 커ë¥ì
ì´ ê·¸ íë¡ë¶í° ì»ì´ì§ ê²ì´ë¤."
#. Tag: para
-#: configuration.xml:153
#, fuzzy, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
@@ -292,7 +225,6 @@
"ì°ë¦¬ë ì´ì JDBC 커ë¥ì
구ì±ì ìí ê°ì¥ ì¤ìí ì¤ì ë¤ì ì¤ëª
í ê²ì´ë¤."
#. Tag: para
-#: configuration.xml:159
#, fuzzy, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
@@ -303,89 +235,71 @@
"ì´ë¤):"
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
msgstr "Hibernate JDBC íë¡í¼í°ë¤"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:548 configuration.xml:743 configuration.xml:850
-#: configuration.xml:938
#, no-c-format
msgid "Property name"
msgstr "íë¡í¼í° ì´ë¦"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:549 configuration.xml:744 configuration.xml:851
-#: configuration.xml:939
#, no-c-format
msgid "Purpose"
msgstr "ì©ë"
-#. Tag: property
-#: configuration.xml:178
-#, no-c-format
-msgid "hibernate.connection.driver_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.driver_class</property>"
msgstr "hibernate.connection.driver_class"
-#. Tag: emphasis
-#: configuration.xml:181
-#, no-c-format
-msgid "JDBC driver class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>JDBC driver class</emphasis>"
msgstr "jdbc ëë¼ì´ë² í´ëì¤"
-#. Tag: property
-#: configuration.xml:186
-#, no-c-format
-msgid "hibernate.connection.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.url</property>"
msgstr "hibernate.connection.url"
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
-msgstr "jdbc URL"
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr ""
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
-#, no-c-format
-msgid "hibernate.connection.username"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.username</property>"
msgstr "hibernate.connection.username"
-#. Tag: emphasis
-#: configuration.xml:197
-#, no-c-format
-msgid "database user"
-msgstr "ë°ì´í°ë² ì´ì¤ ì¬ì©ì"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>database user</emphasis>"
+msgstr "ë°ì´í°ë² ì´ì¤ ì¬ì©ì í¨ì¤ìë"
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
-#, no-c-format
-msgid "hibernate.connection.password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.password</property>"
msgstr "hibernate.connection.password"
-#. Tag: emphasis
-#: configuration.xml:205
-#, no-c-format
-msgid "database user password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>database user password</emphasis>"
msgstr "ë°ì´í°ë² ì´ì¤ ì¬ì©ì í¨ì¤ìë"
-#. Tag: property
-#: configuration.xml:210
-#, no-c-format
-msgid "hibernate.connection.pool_size"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.pool_size</property>"
msgstr "hibernate.connection.pool_size"
-#. Tag: emphasis
-#: configuration.xml:213
-#, no-c-format
-msgid "maximum number of pooled connections"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
msgstr "íë§ë 커ë¥ì
ë¤ì ìµë ê°ì"
#. Tag: para
-#: configuration.xml:220
#, fuzzy, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
@@ -404,7 +318,6 @@
"ë¶ poolì ì¤íìí¬ ê²ì´ë¤. ì를 ë¤ì´ ë¹ì ì C3P0를 ì¬ì©í ìë ìë¤."
#. Tag: para
-#: configuration.xml:230
#, fuzzy, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
@@ -423,7 +336,6 @@
"literal>를 참조íê³ ì¶ê° ì ë³´ë Hibernate ì¹ ì¬ì´í¸ë¥¼ 참조íë¼."
#. Tag: para
-#: configuration.xml:238
#, fuzzy, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
@@ -432,23 +344,7 @@
"ë¤ìì C3P0ì ëí ì¬ì©íë ìì <literal>hibernate.properties</literal> íì¼"
"ì´ë¤:"
-#. Tag: programlisting
-#: configuration.xml:242
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:244
#, fuzzy, no-c-format
msgid ""
"For use inside an application server, you should almost always configure "
@@ -462,43 +358,36 @@
"ìì ê²ì´ë¤."
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
msgstr "Hibernate Datasource Properties"
-#. Tag: property
-#: configuration.xml:264
-#, no-c-format
-msgid "hibernate.connection.datasource"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.datasource</property>"
msgstr "hibernate.connection.datasource"
-#. Tag: emphasis
-#: configuration.xml:267
-#, no-c-format
-msgid "datasource JNDI name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<emphasis>datasource JNDI name</emphasis>"
msgstr "ë°ì´í°ìì¤ JNDI ì´ë¦"
-#. Tag: property
-#: configuration.xml:272
-#, no-c-format
-msgid "hibernate.jndi.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jndi.url</property>"
msgstr "hibernate.jndi.url"
#. Tag: entry
-#: configuration.xml:274
#, fuzzy, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
msgstr "JNDI íë¡ë°ì´ëì URL"
-#. Tag: property
-#: configuration.xml:280
-#, no-c-format
-msgid "hibernate.jndi.class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jndi.class</property>"
msgstr "hibernate.jndi.class"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
@@ -506,19 +395,16 @@
msgstr ""
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
msgstr ""
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
msgstr ""
#. Tag: para
-#: configuration.xml:306
#, fuzzy, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
@@ -527,20 +413,7 @@
"ë¤ìì ì´í리ì¼ì´ì
ìë² ì ê³µ JNDI ë°ì´í°ìì¤ì© ìì <literal>hibernate."
"properties</literal> íì¼ì´ë¤:"
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
@@ -550,7 +423,6 @@
"ìí´ ê´ë¦¬ëë í¸ëìì
ë¤ì ìëì ì¼ë¡ ì°¸ì¬í ê²ì´ë¤."
#. Tag: para
-#: configuration.xml:318
#, fuzzy, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
@@ -564,7 +436,6 @@
"literal>ì ì§ì í ìë ìë¤."
#. Tag: para
-#: configuration.xml:324
#, fuzzy, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
@@ -579,13 +450,11 @@
"íì¬ ë§ì¶¤í 구íì ì íí ìë ìë¤."
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr "ì íì ì¸ êµ¬ì± íë¡í¼í°ë¤"
#. Tag: para
-#: configuration.xml:335
#, fuzzy, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
@@ -594,8 +463,7 @@
"ì¤í ìì Hibernateì íì를 ì ì´íë ë§ì ë¤ë¥¸ íë¡í¼í°ë¤ì´ ì¡´ì¬íë¤. 모ë "
"ê²ì´ ìµì
ì´ì§ë§ í©ë¹í ëí´í¸ ê°ë¤ì ê°ëë¤."
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -610,19 +478,16 @@
"emphasis>."
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
msgstr "Hibernate êµ¬ì± íë¡í¼í°ë¤"
-#. Tag: property
-#: configuration.xml:360
-#, no-c-format
-msgid "hibernate.dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.dialect</property>"
msgstr "hibernate.dialect"
#. Tag: entry
-#: configuration.xml:362
#, fuzzy, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
@@ -633,7 +498,6 @@
"í´ì£¼ë Hibernate <placeholder-1/>ì í´ëì¤ëª
. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:365
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
@@ -643,7 +507,6 @@
"<literal>false</literal>"
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
@@ -651,14 +514,12 @@
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
-#. Tag: property
-#: configuration.xml:378
-#, no-c-format
-msgid "hibernate.show_sql"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.show_sql</property>"
msgstr "hibernate.show_sql"
#. Tag: entry
-#: configuration.xml:380
#, fuzzy, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
@@ -669,11 +530,6 @@
"<placeholder-2/>ë¡ ì¤ì íë ê²ì ëí íëì ë¤ë¥¸ ë°©ë²ì´ë¤. <placeholder-3/>"
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:583 configuration.xml:610 configuration.xml:623
-#: configuration.xml:678 configuration.xml:906 configuration.xml:921
-#: configuration.xml:1011
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
@@ -682,26 +538,22 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:392
-#, no-c-format
-msgid "hibernate.format_sql"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.format_sql</property>"
msgstr "hibernate.format_sql"
#. Tag: entry
-#: configuration.xml:394
#, fuzzy, no-c-format
msgid "Pretty print the SQL in the log and console."
msgstr "ë¡ê·¸ì ì½ì ìì SQLì ê¹ëíê² í린í¸íë¤. <placeholder-1/>"
-#. Tag: property
-#: configuration.xml:404
-#, no-c-format
-msgid "hibernate.default_schema"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.default_schema</property>"
msgstr "hibernate.default_schema"
#. Tag: entry
-#: configuration.xml:406
#, fuzzy, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
@@ -711,7 +563,6 @@
"íë¤. <placeholder-1/>"
#. Tag: para
-#: configuration.xml:409
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
@@ -719,14 +570,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:417
-#, no-c-format
-msgid "hibernate.default_catalog"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.default_catalog</property>"
msgstr "hibernate.default_catalog"
#. Tag: entry
-#: configuration.xml:419
#, fuzzy, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
@@ -735,7 +584,6 @@
"<placeholder-1/>"
#. Tag: para
-#: configuration.xml:422
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
@@ -743,14 +591,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:430
-#, no-c-format
-msgid "hibernate.session_factory_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.session_factory_name</property>"
msgstr "hibernate.session_factory_name"
#. Tag: entry
-#: configuration.xml:432
#, fuzzy, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
@@ -760,7 +606,6 @@
"ë ë ê²ì´ë¤. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
@@ -769,14 +614,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:443
-#, no-c-format
-msgid "hibernate.max_fetch_depth"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.max_fetch_depth</property>"
msgstr "hibernate.max_fetch_depth"
#. Tag: entry
-#: configuration.xml:445
#, fuzzy, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
@@ -788,7 +631,6 @@
"ì ì¬ì©ë¶ê°ë¥íê² ë§ë ë¤. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:449
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
@@ -797,21 +639,18 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>0</literal>ê³¼ <literal>3</"
"literal> ì¬ì´ì ê°ë¤ì´ê¶ì¥ëë¤"
-#. Tag: property
-#: configuration.xml:458
-#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.default_batch_fetch_size</property>"
msgstr "hibernate.default_batch_fetch_size"
#. Tag: entry
-#: configuration.xml:460
#, fuzzy, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr ""
"ì°ê´ë¤ì Hibernate ë°°ì¹ íì¹ì ëí ëí´í¸ í¬ê¸°ë¥¼ ì¤ì íë¤. <placeholder-1/>"
#. Tag: para
-#: configuration.xml:462
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
@@ -820,14 +659,12 @@
"<emphasis role=\"strong\">ì.</emphasis> ê¶ì¥ëë ê°ë¤ì <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
-#. Tag: property
-#: configuration.xml:471
-#, no-c-format
-msgid "hibernate.default_entity_mode"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.default_entity_mode</property>"
msgstr "hibernate.default_entity_mode"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
@@ -837,7 +674,6 @@
"ë¡ ì¤ì íë¤ <placeholder-2/>"
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
@@ -846,14 +682,12 @@
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
-#. Tag: property
-#: configuration.xml:484
-#, no-c-format
-msgid "hibernate.order_updates"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.order_updates</property>"
msgstr "hibernate.order_updates"
#. Tag: entry
-#: configuration.xml:486
#, fuzzy, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
@@ -864,14 +698,12 @@
"(ordering)ì§ìì§ëë¡ Hibernateìê² ê°ì ìí¨ë¤. ì´ê²ì ê³ ëì ëìì± ìì¤í
ë¤"
"ìì ë ì ì í¸ëìì
ë°ëë½(deadlock)ë¤ë¡ ê·ê²°ë ê²ì´ë¤ <placeholder-1/>"
-#. Tag: property
-#: configuration.xml:498
-#, no-c-format
-msgid "hibernate.generate_statistics"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.generate_statistics</property>"
msgstr "hibernate.generate_statistics"
#. Tag: entry
-#: configuration.xml:500
#, fuzzy, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
@@ -879,14 +711,12 @@
"ì´ì© ê°ë¥íê² ëë©´, Hibernateë í¼í¬ë¨¼ì¤ íëì ì ì©í íµê³ë¤ì ìì§í ê²ì´"
"ë¤. <placeholder-1/>"
-#. Tag: property
-#: configuration.xml:511
-#, no-c-format
-msgid "hibernate.use_identifier_rollback"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.use_identifier_rollback</property>"
msgstr "hibernate.use_identifer_rollback"
#. Tag: entry
-#: configuration.xml:513
#, fuzzy, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
@@ -895,14 +725,12 @@
"ì´ì© ê°ë¥íê² ëë©´, ê°ì²´ê° ìì ë ë ìì±ë ìë³ì íë¡í¼í°ë¤ì ëí´í¸ ê°ë¤"
"ë¡ ì¬ì¤ì ë ê²ì´ë¤. <placeholder-1/>"
-#. Tag: property
-#: configuration.xml:524
-#, no-c-format
-msgid "hibernate.use_sql_comments"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.use_sql_comments</property>"
msgstr "hibernate.use_sql_comments"
#. Tag: entry
-#: configuration.xml:526
#, fuzzy, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
@@ -912,19 +740,16 @@
"ì±ìí¬ ê²ì´ë¤. ëí´í¸ë <placeholder-1/>. <placeholder-2/>"
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "Hibernate JDBC ë° ì»¤ë¥ì
íë¡í¼í°ë¤"
-#. Tag: property
-#: configuration.xml:555
-#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.fetch_size</property>"
msgstr "hibernate.jdbc.fetch_size"
#. Tag: entry
-#: configuration.xml:557
#, fuzzy, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
@@ -932,14 +757,12 @@
msgstr ""
"0 ìë ê°ì JDBC fetch ì¬ì´ì¦ë¥¼ ê²°ì íë¤(<placeholder-1/>ì í¸ì¶íë¤ )."
-#. Tag: property
-#: configuration.xml:564
-#, no-c-format
-msgid "hibernate.jdbc.batch_size"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.batch_size</property>"
msgstr "hibernate.jdbc.batch_size"
#. Tag: entry
-#: configuration.xml:566
#, fuzzy, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr ""
@@ -947,7 +770,6 @@
"ë¤. <placeholder-1/>"
#. Tag: para
-#: configuration.xml:568
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
@@ -956,14 +778,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>5</literal>ì <literal>30</"
"literal> ì¬ì´ì ê°ë¤ì´ ê¶ì¥ëë¤"
-#. Tag: property
-#: configuration.xml:576
-#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
msgstr "hibernate.jdbc.batch_versioned_data"
#. Tag: entry
-#: configuration.xml:578
#, fuzzy, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
@@ -977,14 +797,12 @@
"ì¹íë(batched) DMLì ì¬ì©í ê²ì´ë¤. ëí´í¸ë <placeholder-3/>. <placeholder-"
"4/>"
-#. Tag: property
-#: configuration.xml:591
-#, no-c-format
-msgid "hibernate.jdbc.factory_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.factory_class</property>"
msgstr "hibernate.jdbc.factory_class"
#. Tag: entry
-#: configuration.xml:593
#, fuzzy, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
@@ -994,7 +812,6 @@
"í°ë¥¼ íìë¡ íì§ ìì ê²ì´ë¤. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:596
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
@@ -1003,14 +820,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:604
-#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
msgstr "hibernate.jdbc.use_scrollable_resultset"
#. Tag: entry
-#: configuration.xml:606
#, fuzzy, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
@@ -1021,14 +836,12 @@
"ë¡í¼í°ë ì¬ì©ìê° ì ê³µí JDBC커ë¥ì
ë¤ì ì¬ì©í ëìë§ íìì ì´ê³ , ê·¸ ë°ì ê²½"
"ì° Hibernateë 커ë¥ì
ë©íë°ì´í°ë¥¼ ì¬ì©íë¤. <placeholder-1/>"
-#. Tag: property
-#: configuration.xml:618
-#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
msgstr "hibernate.jdbc.use_streams_for_binary"
#. Tag: entry
-#: configuration.xml:620
#, fuzzy, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
@@ -1038,14 +851,12 @@
"FUZZY! <placeholder-1/> ëë <placeholder-2/> íì
ë¤ì ì½ì´ë¤ì¼ ë ì¤í¸ë¦¼ë¤"
"ì ì¬ì©íë¤(ìì¤í
-ë 벨 íë¡í¼í°). <placeholder-3/>"
-#. Tag: property
-#: configuration.xml:631
-#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
msgstr "hibernate.jdbc.use_get_generated_keys"
#. Tag: entry
-#: configuration.xml:633
#, fuzzy, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
@@ -1061,22 +872,18 @@
"ë¼. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781
-#: configuration.xml:795 configuration.xml:833
#, fuzzy, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
msgstr ""
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:647
-#, no-c-format
-msgid "hibernate.connection.provider_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.provider_class</property>"
msgstr "hibernate.connection.provider_class"
#. Tag: entry
-#: configuration.xml:649
#, fuzzy, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
@@ -1087,7 +894,6 @@
"<placeholder-2/>"
#. Tag: para
-#: configuration.xml:652
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
@@ -1096,14 +902,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:660
-#, no-c-format
-msgid "hibernate.connection.isolation"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.isolation</property>"
msgstr "hibernate.connection.isolation"
#. Tag: entry
-#: configuration.xml:662
#, fuzzy, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
@@ -1116,35 +920,30 @@
"ììì ë
¸í¸íë¼. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:666
#, fuzzy, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
msgstr ""
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:674
-#, no-c-format
-msgid "hibernate.connection.autocommit"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.autocommit</property>"
msgstr "hibernate.connection.autocommit"
#. Tag: entry
-#: configuration.xml:676
#, fuzzy, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr ""
"JDBC íë§ë 커ë¥ì
ë¤ì ëí´ ìë커ë°ì ì´ì© ê°ë¥íëë¡ íë¤(ê¶ì¥ëì§ ìì). "
"<placeholder-1/>"
-#. Tag: property
-#: configuration.xml:686
-#, no-c-format
-msgid "hibernate.connection.release_mode"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<property>hibernate.connection.release_mode</property>"
msgstr "hibernate.connection.release_mode"
#. Tag: entry
-#: configuration.xml:688
#, fuzzy, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
@@ -1167,7 +966,6 @@
"5/>를 ì íí ê²ì´ë¤. <placeholder-6/><placeholder-7/>"
#. Tag: para
-#: configuration.xml:699
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
@@ -1179,7 +977,6 @@
"<literal>after_statement</literal>"
#. Tag: para
-#: configuration.xml:704
#, fuzzy, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
@@ -1187,7 +984,8 @@
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
+"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
+"\" />"
msgstr ""
"ì´ ì¤ì ì´ <literal>SessionFactory.openSession</literal>ë¡ë¶í° ë°íë "
"<literal>Session</literal>ë¤ìë§ ìí¥ì ì¤ë¤ë ì ì ë
¸í¸íë¼. "
@@ -1198,7 +996,6 @@
"session\"/>를 ë³´ë¼."
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
@@ -1206,7 +1003,6 @@
msgstr ""
#. Tag: entry
-#: configuration.xml:718
#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
@@ -1214,14 +1010,12 @@
msgstr ""
#. Tag: entry
-#: configuration.xml:724
#, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
#. Tag: entry
-#: configuration.xml:727
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
@@ -1229,25 +1023,21 @@
msgstr ""
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
msgstr "Hibernate Cache íë¡í¼í°ë¤"
-#. Tag: literal
-#: configuration.xml:750
-#, no-c-format
-msgid "hibernate.cache.provider_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.provider_class</literal>"
msgstr "hibernate.cache.provider_class"
#. Tag: entry
-#: configuration.xml:752
#, fuzzy, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
msgstr "ë§ì¶¤í <placeholder-1/>ì í´ëì¤ëª
. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:754
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
@@ -1256,14 +1046,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:762
-#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
msgstr "hibernate.cache.use_minimal_puts"
#. Tag: entry
-#: configuration.xml:764
#, fuzzy, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
@@ -1275,14 +1063,12 @@
"ê³ , Hibernate3ììë í´ë¬ì¤í°ë§ë ìºì 구íë¤ì ëí´ ëí´í¸ë¡ ì´ì© ê°ë¥íë¤. "
"<placeholder-1/>"
-#. Tag: literal
-#: configuration.xml:777
-#, no-c-format
-msgid "hibernate.cache.use_query_cache"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
msgstr "hibernate.cache.use_query_cache"
#. Tag: entry
-#: configuration.xml:779
#, fuzzy, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
@@ -1290,14 +1076,12 @@
"ì§ì ìºì를 ê°ë¥íê² ë§ë ë¤. ê°ë³ ì§ìë¤ì ì¬ì í ìºì ê°ë¥í ê²ì¼ë¡ ì¤ì ëì´"
"ì¼ íë¤. <placeholder-1/>"
-#. Tag: literal
-#: configuration.xml:789
-#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
msgstr "hibernate.cache.use_second_level_cache"
#. Tag: entry
-#: configuration.xml:791
#, fuzzy, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
@@ -1308,14 +1092,12 @@
"<placeholder-1/> 매íì ì§ì íë í´ëì¤ë¤ì ëí´ ëí´í¸ë¡ ì´ì© ê°ë¥ì´ë¤. "
"<placeholder-2/>"
-#. Tag: literal
-#: configuration.xml:803
-#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
msgstr "hibernate.cache.query_cache_factory"
#. Tag: entry
-#: configuration.xml:805
#, fuzzy, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
@@ -1325,7 +1107,6 @@
"<placeholder-2/>. <placeholder-3/>"
#. Tag: para
-#: configuration.xml:808
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
@@ -1334,34 +1115,29 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:816
-#, no-c-format
-msgid "hibernate.cache.region_prefix"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.region_prefix</literal>"
msgstr "hibernate.cache.region_prefix"
#. Tag: entry
-#: configuration.xml:818
#, fuzzy, no-c-format
msgid "A prefix to use for second-level cache region names."
msgstr "second-level ìºì ìì ì´ë¦ë¤ì ì¬ì©í ì ëì´. <placeholder-1/>"
#. Tag: para
-#: configuration.xml:820
#, fuzzy, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
msgstr ""
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:828
-#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
msgstr "hibernate.cache.use_structured_entries"
#. Tag: entry
-#: configuration.xml:830
#, fuzzy, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
@@ -1371,19 +1147,16 @@
"Hibernateìê² ê°ì ìí¨ë¤.. <placeholder-1/>"
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr "Hibernate í¸ëìì
íë¡í¼í°ë¤"
-#. Tag: literal
-#: configuration.xml:857
-#, no-c-format
-msgid "hibernate.transaction.factory_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.factory_class</literal>"
msgstr "hibernate.transaction.factory_class"
#. Tag: entry
-#: configuration.xml:859
#, fuzzy, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
@@ -1394,7 +1167,6 @@
"í¸ë <placeholder-3/>). <placeholder-4/>"
#. Tag: para
-#: configuration.xml:863
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
@@ -1403,14 +1175,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:871
-#, no-c-format
-msgid "jta.UserTransaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>jta.UserTransaction</literal>"
msgstr "jta.UserTransaction"
#. Tag: entry
-#: configuration.xml:873
#, fuzzy, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
@@ -1419,14 +1189,12 @@
"ì´í리ì¼ì´ì
ìë²ë¡ë¶í° JTA <placeholder-1/>ì ì»ê¸° ìí´ <placeholder-2/>ì "
"ìí´ ì¬ì©ëë JNDI ì´ë¦. <placeholder-3/>"
-#. Tag: literal
-#: configuration.xml:885
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
msgstr "hibernate.transaction.manager_lookup_class"
#. Tag: entry
-#: configuration.xml:887
#, fuzzy, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
@@ -1437,7 +1205,6 @@
"ì hilo generator를 ì¬ì©í ë íìíë¤. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:891
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
@@ -1446,19 +1213,17 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:899
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
msgstr "hibernate.transaction.flush_before_completion"
#. Tag: entry
-#: configuration.xml:901
#, fuzzy, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
"ë§ì¼ ì¬ì©ê°ë¥íëë¡ ëë©´, ì¸ì
ì í¸ëìì
ì before completion ë¨ê³ ëìì ì"
@@ -1466,50 +1231,44 @@
"ëë°, <xref linkend=\"architecture-current-session\"/>를 ë³´ë¼. <placeholder-"
"1/>"
-#. Tag: literal
-#: configuration.xml:914
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
msgstr "hibernate.transaction.auto_close_session"
#. Tag: entry
-#: configuration.xml:916
#, fuzzy, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
"ë§ì¼ ì¬ì©ê°ë¥í ë¡ íë©´, after completion ë¨ê³ ëìì ì¸ì
ì´ ìëì ì¼ë¡ ë«í"
"ì§ ê²ì´ë¤. (CMTì ëí´ Hibernate를 ì¬ì©í ë ë§¤ì° ì ì©íë¤.) <placeholder-1/>"
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "ì¬ë¬ê°ì§ íë¡í¼í°ë¤"
-#. Tag: literal
-#: configuration.xml:945
-#, no-c-format
-msgid "hibernate.current_session_context_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
msgstr "hibernate.current_session_context_class"
#. Tag: entry
-#: configuration.xml:947
#, fuzzy, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
"\"íì¬\" <placeholder-1/>ì ììí를 ìí íëì (ë§ì¶¤) ë°©ë를 ì ê³µíë¤. ë¹ë"
"ëì´ ìë ë°©ëë¤ì ëí ì¶ê° ì ë³´ë <xref linkend=\"architecture-current-"
"session\"/>를 ë³´ë¼. <placeholder-2/>"
#. Tag: para
-#: configuration.xml:952
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
@@ -1520,20 +1279,17 @@
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
-#. Tag: literal
-#: configuration.xml:961
-#, no-c-format
-msgid "hibernate.query.factory_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.query.factory_class</literal>"
msgstr "hibernate.query.factory_class"
#. Tag: entry
-#: configuration.xml:963
#, fuzzy, no-c-format
msgid "Chooses the HQL parser implementation."
msgstr "Chooses the HQL íì 구íì ì ííë¤. <placeholder-1/>"
#. Tag: para
-#: configuration.xml:965
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
@@ -1544,14 +1300,12 @@
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
-#. Tag: literal
-#: configuration.xml:974
-#, no-c-format
-msgid "hibernate.query.substitutions"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.query.substitutions</literal>"
msgstr "hibernate.query.substitutions"
#. Tag: entry
-#: configuration.xml:976
#, fuzzy, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
@@ -1561,7 +1315,6 @@
"ì ì´ë¦ ëë 리í°ë´ ì´ë¦ì¼ ì ìë¤). <placeholder-1/>"
#. Tag: para
-#: configuration.xml:979
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
@@ -1570,14 +1323,12 @@
"<emphasis role=\"strong\">ì.</emphasis><literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: literal
-#: configuration.xml:987
-#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
msgstr "hibernate.hbm2ddl.auto"
#. Tag: entry
-#: configuration.xml:989
#, fuzzy, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
@@ -1590,7 +1341,6 @@
"ì ì¼ë¡ ë«íì§ ë ë°ì´í°ë² ì´ì¤ ì¤í¤ë§ê° ëë¡ë ê²ì´ë¤. <placeholder-4/>"
#. Tag: para
-#: configuration.xml:995
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
@@ -1601,14 +1351,12 @@
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
-#. Tag: literal
-#: configuration.xml:1004
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
msgstr "hibernate.cglib.use_reflection_optimizer"
#. Tag: entry
-#: configuration.xml:1006
#, fuzzy, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
@@ -1622,13 +1370,11 @@
"<placeholder-1/> ìì ì´ íë¡í¼í°ë¥¼ ì¤ì í ì ìë¤. <placeholder-2/>"
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
msgstr "SQL Dialects"
#. Tag: para
-#: configuration.xml:1024
#, fuzzy, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
@@ -1644,307 +1390,256 @@
"ëªëªì ëí´ ì미ìë ëí´í¸ë¤ì ì¬ì©í ê²ì´ë¤."
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
msgstr "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1041
#, no-c-format
msgid "Dialect"
msgstr "Dialect"
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr ""
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1046
-#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
msgstr "org.hibernate.dialect.DB2Dialect"
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1049
-#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
msgstr "org.hibernate.dialect.DB2400Dialect"
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1052
-#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
msgstr "org.hibernate.dialect.DB2390Dialect"
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1055
-#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
msgstr "org.hibernate.dialect.PostgreSQLDialect"
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
-#. Tag: literal
-#: configuration.xml:1058
-#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
msgstr "org.hibernate.dialect.MySQLDialect"
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL with InnoDB"
-#. Tag: literal
-#: configuration.xml:1061
-#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL with MyISAM"
-#. Tag: literal
-#: configuration.xml:1064
-#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
msgstr "Oracle (any version)"
-#. Tag: literal
-#: configuration.xml:1067
-#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
msgstr "org.hibernate.dialect.OracleDialect"
#. Tag: entry
-#: configuration.xml:1070
#, fuzzy, no-c-format
msgid "Oracle 9i"
msgstr "Oracle 9i/10g"
-#. Tag: literal
-#: configuration.xml:1070
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
msgstr "org.hibernate.dialect.Oracle9Dialect"
#. Tag: entry
-#: configuration.xml:1073
#, fuzzy, no-c-format
msgid "Oracle 10g"
msgstr "Oracle 9i/10g"
-#. Tag: literal
-#: configuration.xml:1073
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
msgstr "org.hibernate.dialect.OracleDialect"
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1076
-#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
msgstr "org.hibernate.dialect.SybaseDialect"
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
-#. Tag: literal
-#: configuration.xml:1079
-#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
-#. Tag: literal
-#: configuration.xml:1082
-#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
msgstr "org.hibernate.dialect.SQLServerDialect"
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1085
-#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
msgstr "org.hibernate.dialect.SAPDBDialect"
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1088
-#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
msgstr "org.hibernate.dialect.InformixDialect"
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1091
-#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
msgstr "org.hibernate.dialect.HSQLDialect"
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1094
-#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
msgstr "org.hibernate.dialect.IngresDialect"
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
msgstr "Progress"
-#. Tag: literal
-#: configuration.xml:1097
-#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
msgstr "org.hibernate.dialect.ProgressDialect"
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1100
-#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
msgstr "org.hibernate.dialect.MckoiDialect"
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1103
-#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
msgstr "org.hibernate.dialect.InterbaseDialect"
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
-#. Tag: literal
-#: configuration.xml:1106
-#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
msgstr "org.hibernate.dialect.PointbaseDialect"
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
-#. Tag: literal
-#: configuration.xml:1109
-#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
msgstr "org.hibernate.dialect.FrontbaseDialect"
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1112
-#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
msgstr "org.hibernate.dialect.FirebirdDialect"
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
msgstr "Outer Join Fetching"
#. Tag: para
-#: configuration.xml:1123
#, fuzzy, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
@@ -1964,7 +1659,6 @@
"<literal>SELECT</literal> ììì ê²ìëê²ë íì©í´ì¤ë¤."
#. Tag: para
-#: configuration.xml:1132
#, fuzzy, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
@@ -1980,19 +1674,16 @@
"outer join fetchingì ì¬ì© ê°ë¥íëë¡ ë§ë ë¤."
#. Tag: para
-#: configuration.xml:1140
-#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
+#, fuzzy, no-c-format
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
msgstr "ì¶ê° ì ë³´ë <xref linkend=\"performance-fetching\"/>를 ë³´ë¼."
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
msgstr "Binary Streams"
#. Tag: para
-#: configuration.xml:1149
#, fuzzy, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
@@ -2008,31 +1699,27 @@
"ë¥íê² í´ì¼ í ê²ì´ë¤. <emphasis>ì´ê²ì ì¤ì§ ìì¤í
ë 벨 ì¤ì ì´ë¤.</emphasis>"
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
msgstr "Second-level ìºìì query ìºì"
#. Tag: para
-#: configuration.xml:1162
#, fuzzy, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
"<literal>hibernate.cache</literal> ì ëì´ê° ë¶ì íë¡í¼í°ë¤ì Hibernateì ë"
"í´ íë¡ì¸ì¤ ëë í´ë¬ì¤í° ë²ìì ë ë²ì§¸ ë 벨 ìºì ìì¤í
ì ì¬ì©íë ê²ì í"
"ì©í´ì¤ë¤. ìì¸í ê²ì <xref linkend=\"performance-cache\"/>를 ë³´ë¼."
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
msgstr "Query Language ì¹í"
#. Tag: para
-#: configuration.xml:1174
#, fuzzy, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
@@ -2041,14 +1728,7 @@
"ë¹ì ì <literal>hibernate.query.substitutions</literal>ì ì¬ì©íì¬ ìë¡ì´ "
"Hibernate ì§ì í í°ë¤ì ì ìí ì ìë¤. ì를 ë¤ì´:"
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions true=1, false=0"
-
#. Tag: para
-#: configuration.xml:1181
#, fuzzy, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
@@ -2057,14 +1737,7 @@
"ì<literal>true</literal>ì <literal>false</literal> í í°ë¤ì´ ìì±ë SQL ë´ì"
"ì ì ì 리í°ë´ë¤ë¡ ë²ìëëë¡ ê°ì í ê²ì´ë¤."
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1188
#, fuzzy, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
@@ -2073,13 +1746,11 @@
"íì©í´ ì¤ ê²ì´ë¤"
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
msgstr "Hibernate íµê³"
#. Tag: para
-#: configuration.xml:1197
#, fuzzy, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
@@ -2096,13 +1767,11 @@
"Javadoc를 ì½ì´ë¼."
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
msgstr "ë¡ê¹
"
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2120,7 +1789,6 @@
msgstr ""
#. Tag: para
-#: configuration.xml:1222
#, fuzzy, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
@@ -2135,67 +1803,56 @@
"ë¤ìì ìë¤:"
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
msgstr "Hibernate ë¡ê·¸ ì¹´í
ê³ ë¦¬ë¤"
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr "ì¹´í
ê³ ë¦¬"
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr "기ë¥"
-#. Tag: literal
-#: configuration.xml:1243
-#, no-c-format
-msgid "org.hibernate.SQL"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.SQL</literal>"
msgstr "org.hibernate.SQL"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
msgstr "SQL DML 문ì¥ë¤ì´ ì¤íë ë ê·¸ê²ë¤ 모ë를 ë¡ê·¸ ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1247
-#, no-c-format
-msgid "org.hibernate.type"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.type</literal>"
msgstr "org.hibernate.type"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
msgstr "모ë JDBC íë¼ë¯¸í°ë¤ì ë¡ê·¸ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1251
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
msgstr "org.hibernate.tool.hbm2ddl"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
msgstr "SQL DDL 문ì¥ë¤ì´ ì¤íë ë ê·¸ê²ë¤ 모ë를 ë¡ê·¸ ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1255
-#, no-c-format
-msgid "org.hibernate.pretty"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.pretty</literal>"
msgstr "org.hibernate.pretty"
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
@@ -2204,74 +1861,62 @@
"flush ìì ìì ì¸ì
ê³¼ ì°ê´ë 모ë ìí°í°ë¤(ìµë 20ê°ì ìí°í°ë¤)ì ìí를 ë¡"
"ê·¸ ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1262
-#, no-c-format
-msgid "org.hibernate.cache"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache</literal>"
msgstr "org.hibernate.cache"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
msgstr "모ë second-level ìºì ì¡í°ë¹í°ë¥¼ ë¡ê·¸ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1266
-#, no-c-format
-msgid "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
msgstr "org.hibernate.transaction"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
msgstr "í¸ëìì
ê´ë ¨ ì¡í°ë¹í°ë¥¼ ë¡ê·¸ ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1270
-#, no-c-format
-msgid "org.hibernate.jdbc"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.jdbc</literal>"
msgstr "org.hibernate.jdbc"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
msgstr "모ë JDBC 리ìì¤ ì·¨ëì ë¡ê·¸ ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1274
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
msgstr "org.hibernate.hql.ast.AST"
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
msgstr "ì§ì íì± ëìì HQL ASTì SQL AST를 ë¡ê·¸ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1280
-#, no-c-format
-msgid "org.hibernate.secure"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.secure</literal>"
msgstr "org.hibernate.secure"
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
msgstr "모ë JAAS íê° ìì²ë¤ì ë¡ê·¸ìí¨ë¤"
-#. Tag: literal
-#: configuration.xml:1284
-#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate</literal>"
+msgstr "JNDI-bound <literal>SessionFactory</literal>"
#. Tag: entry
-#: configuration.xml:1285
#, fuzzy, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
@@ -2279,7 +1924,6 @@
msgstr "모ë ê²ì ë¡ê·¸ìí¨ë¤(ë§ì ì ë³´ì´ì§ë§, 문ì í´ê²°ì ë§¤ì° ì ì©íë¤)"
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2293,13 +1937,11 @@
"í°ë¥¼ ì´ì©ê°ë¥íê² íì¬ ìì
í´ì¼ í ê²ì´ë¤."
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
msgstr "<literal>NamingStrategy</literal> 구íí기"
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
@@ -2310,7 +1952,6 @@
"ì©í´ì¤ë¤."
#. Tag: para
-#: configuration.xml:1311
#, fuzzy, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
@@ -2328,7 +1969,6 @@
"주 ìì ìíì´ë¤."
#. Tag: para
-#: configuration.xml:1320
#, fuzzy, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
@@ -2337,19 +1977,7 @@
"ë¹ì ì 매íë¤ì ì¶ê°í기 ì´ì ì <literal>Configuration.setNamingStrategy()</"
"literal>를 í¸ì¶í¨ì¼ë¡ì¨ ë¤ë¥¸ ë°©ë를 ì§ì í ì ìë¤:"
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
@@ -2359,13 +1987,11 @@
"ì
ë¤ì ëí ì ì©í ììì ì¼ ì ìë 미리 ë¹ëë ë°©ëì´ë¤."
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
msgstr "XML êµ¬ì± íì¼"
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -2379,7 +2005,6 @@
"ë¡í¼í°ë¤ì ì¤ë³µì ìíëë° ì¬ì©ë ì ìë¤."
#. Tag: para
-#: configuration.xml:1344
#, fuzzy, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
@@ -2388,52 +2013,7 @@
"XML êµ¬ì± íì¼ì ëí´í¸ë¡ ë¹ì ì <literal>CLASSPATH</literal>ì 루í¸ì ì¡´ì¬í"
"ë ê²ì´ 기ëëë¤. ë¤ìì ìì ì´ë¤:"
-#. Tag: programlisting
-#: configuration.xml:1349
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1351
#, fuzzy, no-c-format
msgid ""
"The advantage of this approach is the externalization of the mapping file "
@@ -2451,48 +2031,26 @@
"ê²ìì ë
¸í¸íë¼."
#. Tag: para
-#: configuration.xml:1360
#, fuzzy, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
msgstr "Hibernate 구ì±ì¼ë¡, Hibernate를 ììíë ê²ì ë¤ìê³¼ ê°ì´ ê°ë¨íë¤"
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
#, fuzzy, no-c-format
msgid "You can select a different XML configuration file using:"
msgstr "ë¹ì ì ë¤ìì ì¬ì©íì¬ ë¤ë¥¸ XML êµ¬ì± íì¼ì ì°¾ìë¼ ì ìë¤"
-#. Tag: programlisting
-#: configuration.xml:1370
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
msgstr "J2EE ì´í리ì¼ì´ì
ìë² íµí©"
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr "Hibernateë J2EE ì¸íë¼ì¤í¸ëì²ì ëí ë¤ì íµí© ì ë¤ì ê°ê³ ìë¤:"
#. Tag: para
-#: configuration.xml:1383
#, fuzzy, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
@@ -2513,7 +2071,6 @@
"Hibernate <literal>Transaction</literal> API를 ì¬ì©íê³ ì ìí ìë ìë¤."
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
@@ -2523,7 +2080,6 @@
"<literal>SessionFactory</literal>를 JNDIì ë°ì¸ë ìí¬ ì ìë¤."
#. Tag: para
-#: configuration.xml:1407
#, fuzzy, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
@@ -2543,7 +2099,6 @@
"UserTransaction))ì´ë¤."
#. Tag: para
-#: configuration.xml:1420
#, fuzzy, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
@@ -2563,7 +2118,6 @@
"Hibernateê° ììë기 ì ì ì´ì© ê°ë¥í´ì¼ íë¤)."
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
@@ -2576,13 +2130,11 @@
"ë ìë ìë¤."
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "í¸ëìì
ë°©ë 구ì±"
#. Tag: para
-#: configuration.xml:1440
#, fuzzy, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
@@ -2600,7 +2152,6 @@
"<literal>UserTransaction</literal>ì í¸ì¶íê³ ì ìí ì ìë¤."
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -2618,31 +2169,26 @@
"ë¤."
#. Tag: para
-#: configuration.xml:1455
#, fuzzy, no-c-format
msgid "There are three standard, or built-in, choices:"
msgstr "ì¸ ê°ì íì¤(미리 ë§ë¤ì´ì§) ì íë¤ì´ ì¡´ì¬íë¤:"
-#. Tag: literal
-#: configuration.xml:1461
-#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
msgstr "org.hibernate.transaction.JDBCTransactionFactory"
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
msgstr "ë°ì´í°ë² ì´ì¤ (JDBC) í¸ëìì
ë¤ìê² ìììí¨ë¤(ëí´í¸)"
-#. Tag: literal
-#: configuration.xml:1467
-#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
msgstr "org.hibernate.transaction.JTATransactionFactory"
#. Tag: para
-#: configuration.xml:1469
#, fuzzy, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
@@ -2653,20 +2199,17 @@
"ì¤ì¼ ê²½ì°ì container-managed transactionìê² ìììí¤ê³ , ê·¸ ë°ì ê²½ì° ìë¡"
"ì´ í¸ëìì
ì´ ììëê³ bean-managed transactionì´ ì¬ì©ëë¤."
-#. Tag: literal
-#: configuration.xml:1477
-#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
msgstr "org.hibernate.transaction.CMTTransactionFactory"
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
msgstr "container-managed JTA í¸ëìì
ë¤ìê² ìììí¨ë¤"
#. Tag: para
-#: configuration.xml:1484
#, fuzzy, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
@@ -2676,7 +2219,6 @@
"ìí ìë ìë¤."
#. Tag: para
-#: configuration.xml:1489
#, fuzzy, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
@@ -2693,151 +2235,138 @@
"íë¤. ìëíë©´ J2EEê° í ê°ì ë©ì»¤ëì¦ì íì¤í ìí¤ê³ ìì§ ì기 ë문ì´ë¤:"
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "JTA TransactionManagers"
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
msgstr "í¸ëìì
í©í 리"
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
msgstr "ì´í리ì¼ì´ì
ìë²"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1545
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
msgstr "JNDI-bound <literal>SessionFactory</literal>"
#. Tag: para
-#: configuration.xml:1557
#, fuzzy, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
@@ -2851,7 +2380,6 @@
"ë¨ìíê² ë ë¤ ëì¼í ë ì§ì¤í¸ë¦¬ë¥¼ ì¬ì©íë¤ë ì ì ë
¸í¸íë¼!"
#. Tag: para
-#: configuration.xml:1564
#, fuzzy, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
@@ -2870,7 +2398,6 @@
"ë¤.)"
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -2885,7 +2412,6 @@
"ë ê²ì´ë¤."
#. Tag: para
-#: configuration.xml:1579
#, fuzzy, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
@@ -2902,7 +2428,6 @@
"ë¤ ìì ì½ë (ëë ì í¸ë¦¬í° í´ëì¤) ë´ìì ì´ê²ì í¸ì¶í ê²ìì ì미íë¤."
#. Tag: para
-#: configuration.xml:1586
#, fuzzy, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
@@ -2914,7 +2439,6 @@
"literal>를 ì»ì ì ìë¤."
#. Tag: para
-#: configuration.xml:1591
#, fuzzy, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
@@ -2934,23 +2458,21 @@
"ìì ë
¸í¸íë¼— 1ì¥ì ë³´ë¼."
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
msgstr "Current Session context management with JTA"
#. Tag: para
-#: configuration.xml:1605
#, fuzzy, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
-"a discussion of contextual sessions see <link linkend=\"architecture-current-"
-"session\"></link>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
+"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
+"is no Hibernate <literal>Session</literal> associated with the current JTA "
+"transaction, one will be started and associated with that JTA transaction "
+"the first time you call <literal>sessionFactory.getCurrentSession()</"
+"literal>. The <literal>Session</literal>s retrieved via "
"<literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
@@ -3001,13 +2523,11 @@
"ì ê²½ì°ì ì ì¸ì ì¸ í¸ëìì
ê²½ê³ì¤ì ì´ ì í¸ëë¤."
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
msgstr "JMX ë°°ì¹"
#. Tag: para
-#: configuration.xml:1630
#, fuzzy, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
@@ -3023,7 +2543,6 @@
"<emphasis>managed service</emphasis>ë¡ì ë°°ì¹í ì ìë¤."
#. Tag: para
-#: configuration.xml:1638
#, fuzzy, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
@@ -3036,59 +2555,7 @@
"ë¤. ì¤ì ë°°ì¹ì 구ì±ì 벤ë ì§ì ì ì´ë¤. ë¤ìì JBoss 4.0.x를 ìí "
"<literal>jboss-service.xml</literal> ìì ì´ë¤:"
-#. Tag: programlisting
-#: configuration.xml:1645
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1647
#, fuzzy, no-c-format
msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
@@ -3110,6 +2577,21 @@
"ìí´ ë©ì¸ ìë¹ì¤ ìì¹´ì´ë¸ ìì ì´ EJB JAR íì¼ì í¬í¨ìí¬ ìë ìë¤. JMX ìë¹"
"ì¤ì EJB ë°°ì¹ì ê´í ì¶ê° ì ë³´ë JBoss AS 문ì를 참조íë¼."
+#~ msgid "JDBC URL"
+#~ msgstr "jdbc URL"
+
+#~ msgid "database user"
+#~ msgstr "ë°ì´í°ë² ì´ì¤ ì¬ì©ì"
+
+#~ msgid "hibernate.query.substitutions true=1, false=0"
+#~ msgstr "hibernate.query.substitutions true=1, false=0"
+
+#~ msgid "hibernate.query.substitutions toLowercase=LOWER"
+#~ msgstr "hibernate.query.substitutions toLowercase=LOWER"
+
+#~ msgid "org.hibernate"
+#~ msgstr "org.hibernate"
+
#~ msgid ""
#~ "<literal>hibernate.properties</literal> is the easiest approach if you "
#~ "want to get started quickly."
@@ -3306,6 +2788,3 @@
#~ msgid "hibernate.cfg.xml"
#~ msgstr "hibernate.cfg.xml"
-
-#~ msgid "DB2"
-#~ msgstr "DB2"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
msgstr "ì¸í°ì
í°ë¤ê³¼ ì´ë²¤í¸ë¤"
#. Tag: para
-#: events.xml:31
#, fuzzy, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
@@ -29,13 +27,11 @@
"기ë¥ì 구íì íì©í´ì¤ë¤."
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr "ì¸í°ì
í°ë¤"
#. Tag: para
-#: events.xml:40
#, fuzzy, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
@@ -58,7 +54,6 @@
"literal> íë¡í¼í°ë¥¼ ì
ë°ì´í¸ íë¤."
#. Tag: para
-#: events.xml:51
#, fuzzy, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
@@ -67,97 +62,7 @@
"ë¹ì ì <literal>Interceptor</literal>를 ì§ì 구íí´ì¼ íê±°ë (ë ì¢ê²ë) "
"<literal>EmptyInterceptor</literal>를 íì¥(extend)í´ì¼ íë¤."
-#. Tag: programlisting
-#: events.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:58
#, fuzzy, no-c-format
msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
@@ -167,7 +72,6 @@
"í ê·¸ë¦¬ê³ <literal>SessionFactory</literal>-ììí."
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
@@ -178,14 +82,7 @@
"<literal>Interceptor</literal>를 ìì©íë ì¤ë²ë¡ëë SessionFactory."
"openSession() ë©ìëë¤ ì¤ íë를 ì¬ì©íì¬ ì´ë¦´ ë ì§ì ëë¤."
-#. Tag: programlisting
-#: events.xml:69
-#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:71
#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
@@ -206,21 +103,12 @@
"ì¼ íë¤. ìëíë©´ ë¤ì¤ ì¸ì
ë¤ì (ì ì ì ì¼ë¡) ì´ ì¸í°ì
í°ë¥¼ ëìì ì¼ë¡ ì¬ì©í "
"ê²ì´ê¸° ë문ì´ë¤."
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr "ì´ë²¤í¸ ìì¤í
"
#. Tag: para
-#: events.xml:87
#, fuzzy, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
@@ -233,7 +121,6 @@
"ìë¤."
#. Tag: para
-#: events.xml:93
#, fuzzy, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
@@ -266,7 +153,6 @@
"ì´ ìì ê²ì´ë¤."
#. Tag: para
-#: events.xml:108
#, fuzzy, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
@@ -277,7 +163,6 @@
"ì¥íì§ ë§ìì¼ í¨ì ì미íë¤."
#. Tag: para
-#: events.xml:113
#, fuzzy, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
@@ -297,25 +182,7 @@
"ì ì§ì ë ì ìë¤ (properties íì¼ì íµí ì ì¸ì ì¸ êµ¬ì±ì ì§ìëì§ ìëë¤). "
"ë¤ìì ë§ì¶¤í load ì´ë²¤í¸ 리ì¤ëì ëí ìì ì´ë¤:"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
@@ -324,40 +191,12 @@
"ë¹ì ì ëí ëí´í¸ 리ì¤ëì ë§ë¶ì¬ ê·¸ 리ì¤ë를 ì¬ì©íëë¡ Hibernateìê² ìë ¤"
"주ë êµ¬ì± ìí¸ë¦¬ë¥¼ íìë¡ íë¤:"
-#. Tag: programlisting
-#: events.xml:130
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:132
#, fuzzy, no-c-format
msgid "Instead, you can register it programmatically:"
msgstr "ëì ì ë¹ì ì ê·¸ê²ì íë¡ê·¸ëë° ë°©ìì¼ë¡ ë±ë¡í ìë ìë¤:"
-#. Tag: programlisting
-#: events.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:138
#, fuzzy, no-c-format
msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
@@ -373,7 +212,6 @@
"ë¹ì ì íë¡ê·¸ëë° ë°©ìì ë±ë¡ ì ê·¼ë²ì ì¬ì©í´ì¼ íë¤."
#. Tag: para
-#: events.xml:146
#, fuzzy, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
@@ -388,13 +226,11 @@
"ì íìí¤ë ê²ì ë ì½ê² í´ì¤ë¤."
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
msgstr "Hibernate ì ì¸ì ì¸ ë³´ì"
#. Tag: para
-#: events.xml:157
#, fuzzy, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
@@ -408,7 +244,6 @@
"ì
기ë¥ì´ë¤."
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
@@ -417,22 +252,7 @@
"먼ì , ë¹ì ì JAAS authorization ì¬ì©ì ì´ì© ê°ë¥íëë¡ í기 ìí´ ì ì í ì´ë²¤"
"í¸ ë¦¬ì¤í°ë¤ì 구ì±í´ì¼ íë¤."
-#. Tag: programlisting
-#: events.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:170
#, fuzzy, no-c-format
msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
@@ -446,7 +266,6 @@
"ì¶íìì ë
¸í¸íë¼."
#. Tag: para
-#: events.xml:176
#, fuzzy, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
@@ -455,17 +274,7 @@
"ë¤ìì¼ë¡, ì¬ì í <literal>hibernate.cfg.xml</literal> ë´ìì í¼ë¯¸ì
ë¤ì role"
"ë¤ì ë°ì¸ë ìí¨ë¤ :"
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,25 +11,21 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
msgstr "ìì : ì¬ë¬ ê°ì§ 매íë¤"
#. Tag: para
-#: example_mappings.xml:32
#, fuzzy, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr "ì´ ì¥ì ëªëª ë³´ë¤ ë³µì¡í ì°ê´ 매íë¤ì ë³´ì¬ì¤ë¤."
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
msgstr "Employer/Employee"
#. Tag: para
-#: example_mappings.xml:39
#, fuzzy, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
@@ -45,124 +41,23 @@
"í ìí¤ëë° ì¬ì©ëë¤."
#. Tag: para
-#: example_mappings.xml:56
#, fuzzy, no-c-format
msgid "Here is a possible mapping document:"
msgstr "ë¤ìì ê°ë¥í 매í 문ìì´ë¤:"
-#. Tag: programlisting
-#: example_mappings.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:62
#, fuzzy, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr ""
"ê·¸ë¦¬ê³ ë¤ìì <literal>SchemaExport</literal>ì ìí´ ìì±ë í
ì´ë¸ ì¤í¤ë§ì´"
"ë¤."
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
msgstr "Author/Work"
#. Tag: para
-#: example_mappings.xml:73
#, fuzzy, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
@@ -182,71 +77,12 @@
"ê²ì´ë¤."
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
msgstr "ë¤ì 매í 문ìë ì´ë¤ ê´ê³ë¤ì ì ííê² íííë¤:"
-#. Tag: programlisting
-#: example_mappings.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:97
#, fuzzy, no-c-format
msgid ""
"There are four tables in this mapping: <literal>works</literal>, "
@@ -261,55 +97,12 @@
"ì ìì
ë¤ì ì°ê²°ìí¤ë ì°ê´ í
ì´ë¸ì´ë¤. ë¤ìì <literal>SchemaExport</"
"literal>ì ìí´ ìì±ë í
ì´ë¸ ì¤í¤ë§ì´ë¤."
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
msgstr "Customer/Order/Product"
#. Tag: para
-#: example_mappings.xml:112
#, fuzzy, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
@@ -333,56 +126,11 @@
"ë¤."
#. Tag: para
-#: example_mappings.xml:132
#, fuzzy, no-c-format
msgid "The mapping document will look like this:"
msgstr "매í 문ì:"
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -396,54 +144,12 @@
"<literal>line_items</literal>ë ëí 주문ë¤ì ì íë¤ê³¼ ì°ê²°ìí¤ë ì°ê´ í
ì´ë¸"
"ë¡ì ëìíë¤."
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr "기í ìì 매íë¤"
#. Tag: para
-#: example_mappings.xml:152
#, fuzzy, no-c-format
msgid ""
"These examples are available from the Hibernate test suite. You will find "
@@ -455,337 +161,29 @@
"literal> í´ë를 ì´í´ë³´ë¼."
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
msgstr "\"íìíë(Typed)\" one-to-one ì°ê´"
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
msgstr "Composite í¤ ìì "
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
msgstr "ê³µì ë í©ì± í¤ ìì±ì ê°ì§ Many-to-many"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
msgstr "ë´ì© ê¸°ë° íë³"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
msgstr "ëì²´ í¤ë¤ì ëí ì°ê´ë¤"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#~ msgid "TODO: put words around this stuff"
#~ msgstr "TODO: ì´ ë´ì©ì ëë¬ì¼ ë§ë¤ì ì§ì´ë£ì ê²."
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
msgstr "ìì : ë¶ëª¨/ìì"
#. 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 "
@@ -49,13 +47,11 @@
"ë¤!"
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
msgstr "ì½ë ì
ë¤ì ê´í ë
¸í¸"
#. Tag: para
-#: example_parentchild.xml:47
#, fuzzy, no-c-format
msgid ""
"Hibernate collections are considered to be a logical part of their owning "
@@ -67,7 +63,6 @@
"ìì ë¤ì ê²°ê³¼ë¤ì ê°ëë¤:"
#. 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 "
@@ -77,7 +72,6 @@
"ë²ì ë²í¸ê° ì¦ê°ëë¤."
#. 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 "
@@ -92,7 +86,6 @@
"ê°ìí¤ë ê²ì ê·¸ê²ì ìíê° ì¦ì ììí ëëë¡ ê°ì ìí¬ ê²ì´ë¤."
#. 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-"
@@ -108,7 +101,6 @@
"í°ê° ììí ëëë¡ ê°ì ìí¤ì§ ìëë¤."
#. Tag: para
-#: example_parentchild.xml:78
#, fuzzy, no-c-format
msgid ""
"Adding an entity to a collection, by default, merely creates a link between "
@@ -124,13 +116,11 @@
"ìë¤."
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
msgstr "ìë°©í¥ one-to-many"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
@@ -139,41 +129,17 @@
"<literal>Parent</literal>ë¡ë¶í° <literal>Child</literal>ë¡ì ê°ë¨í "
"<literal><one-to-many></literal> ì°ê´ê´ê³ë¡ ììíë¤ê³ ê°ì íì."
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:97
#, fuzzy, no-c-format
msgid "If we were to execute the following code:"
msgstr "ì°ë¦¬ê° ë¤ì ì½ë를 ì¤íìì¼°ë¤ë©´"
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
msgstr "Hibernateë ë ê°ì SQL 문ì¥ë¤ì ì¤íí ê²ì´ë¤:"
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid ""
"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
@@ -181,7 +147,6 @@
"<literal>c</literal>ì ëí ë ì½ë를 ìì±ìí¤ë <literal>INSERT</literal>"
#. Tag: para
-#: example_parentchild.xml:112
#, no-c-format
msgid ""
"an <literal>UPDATE</literal> to create the link from <literal>p</literal> to "
@@ -191,7 +156,6 @@
"<literal>UPDATE</literal>"
#. Tag: para
-#: example_parentchild.xml:119
#, fuzzy, no-c-format
msgid ""
"This is not only inefficient, but also violates any <literal>NOT NULL</"
@@ -204,24 +168,12 @@
"ìì <literal>not-null=\"true\"</literal>를 ì§ì í¨ì¼ë¡ì¨ null íì© ê°ë¥ 컨ì¤"
"í¸ë ì¸í¸ ìë°ì ì ì í ì ìë¤:"
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
msgstr "íì§ë§ ì´ê²ì ê¶ì¥ëë í´ê²°ì±
ì´ ìëë¤."
#. Tag: para
-#: example_parentchild.xml:130
#, fuzzy, no-c-format
msgid ""
"The underlying cause of this behavior is that the link (the foreign key "
@@ -236,16 +188,7 @@
"ì§ ìëë¤ë ì ì´ë¤. ë°ë¼ì í´ê²°ì±
ì <literal>Child</literal> 매íì ë§í¬ ë¶ë¶"
"ì ë§ëë ê²ì´ë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:139
#, fuzzy, no-c-format
msgid ""
"You also need to add the <literal>parent</literal> property to the "
@@ -255,7 +198,6 @@
"ëì¤ì ì¶ê°ìí¬ íìê° ìë¤.)"
#. Tag: para
-#: example_parentchild.xml:143
#, fuzzy, no-c-format
msgid ""
"Now that the <literal>Child</literal> entity is managing the state of the "
@@ -266,44 +208,19 @@
"ê³ , ì°ë¦¬ë ë§í¬ë¥¼ ì
ë°ì´í¸ ìí¤ì§ ë§ëë¡ ì½ë ì
ìê² íµë³´íë¤. ì°ë¦¬ë "
"<literal>inverse</literal> ìì±ì ì¬ì©íë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:150
#, fuzzy, no-c-format
msgid "The following code would be used to add a new <literal>Child</literal>:"
msgstr ""
"ë¤ì ì½ëë ìë¡ì´ <literal>Child</literal>를 ì¶ê°ìí¤ëë° ì¬ì©ë ê²ì´ë¤"
-#. Tag: programlisting
-#: example_parentchild.xml:154
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:156
#, fuzzy, no-c-format
msgid "Only one SQL <literal>INSERT</literal> would now be issued."
msgstr ""
"ê·¸ë¦¬ê³ ì´ì , ì ì¼íê² í ê°ì SQL <literal>INSERT</literal>ê° ì¤íë ê²ì´ë¤!"
#. Tag: para
-#: example_parentchild.xml:160
#, fuzzy, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
@@ -312,41 +229,17 @@
"ì½ê° ê±°ì¹ ê², ì°ë¦¬ë <literal>Parent</literal>ì <literal>addChild()</"
"literal> ë©ìë를 ìì±ìí¬ ì ìë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:167
#, fuzzy, no-c-format
msgid "The code to add a <literal>Child</literal> looks like this:"
msgstr "ì´ì , <literal>Child</literal>를 ì¶ê°íë ì½ëë ë¤ìê³¼ ê°ë¤"
-#. Tag: programlisting
-#: example_parentchild.xml:171
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
msgstr "ì¼ì¤ì¼ì´ë© ìëª
주기"
#. Tag: para
-#: example_parentchild.xml:178
#, fuzzy, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
@@ -355,34 +248,12 @@
"<literal>save()</literal>ì ëí ëª
ìì ì¸ í¸ì¶ì ì¬ì í ì±ê°ìë¤. ì°ë¦¬ë ì¼ì¤"
"ì¼ì´ë©ì ì¬ì©íì¬ ì´ê²ì ì기í ê²ì´ë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:185
#, fuzzy, no-c-format
msgid "This simplifies the code above to:"
msgstr "ë¤ìì ìì ì½ë를 ë¨ìí ìí¨ë¤"
-#. Tag: programlisting
-#: example_parentchild.xml:189
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:191
#, fuzzy, no-c-format
msgid ""
"Similarly, we do not need to iterate over the children when saving or "
@@ -393,34 +264,12 @@
"í´ ë°ë³µíë ê²ì íìë¡ íì§ ìëë¤. ë¤ìì ë°ì´í°ë² ì´ì¤ë¡ë¶í° <literal>p</"
"literal>ì 모ë ê·¸ê²ì ììë¤ì ì ê±°ìí¨ë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:198
#, fuzzy, no-c-format
msgid "However, the following code:"
msgstr "íì§ë§, ë¤ì ì½ë"
-#. Tag: programlisting
-#: example_parentchild.xml:202
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:204
#, fuzzy, no-c-format
msgid ""
"will not remove <literal>c</literal> from the database. In this case, it "
@@ -434,19 +283,7 @@
"ì ì¼ë¡ <literal>Child</literal>를 <literal>delete()</literal> ìí¬ íìê° ì"
"ë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:210
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:212
#, fuzzy, no-c-format
msgid ""
"In our case, a <literal>Child</literal> cannot exist without its parent. So "
@@ -459,19 +296,7 @@
"literal>를 ì ê±°í ê²½ì°, ì°ë¦¬ë ê·¸ê²ì´ ì ë§ë¡ ìì ë기를 ìíë¤. ì´ë¥¼ ìí´ ì°"
"리ë <literal>cascade=\"all-delete-orphan\"</literal>ì ì¬ì©í´ì¼ íë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:220
#, fuzzy, no-c-format
msgid ""
"Even though the collection mapping specifies <literal>inverse=\"true\"</"
@@ -487,13 +312,11 @@
"</literal>를 í¸ì¶íë ê²ì¼ë¡ë ì¶©ë¶íì§ ìë¤."
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
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</"
@@ -506,7 +329,7 @@
"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 "
+"\"objectstate-saveorupdate\" />.) <emphasis>In Hibernate3, it is no longer "
"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
"emphasis>"
msgstr ""
@@ -524,7 +347,6 @@
"ë¡ ì§ì í íìê° ìë¤.</emphasis>"
#. Tag: para
-#: example_parentchild.xml:244
#, fuzzy, no-c-format
msgid ""
"The following code will update <literal>parent</literal> and <literal>child</"
@@ -533,20 +355,7 @@
"ë¤ì ì½ëë <literal>parent</literal>ì <literal>child</literal>를 ì
ë°ì´í¸í"
"ê³ <literal>newChild</literal>를 ì½ì
ìí¬ ê²ì´ë¤."
-#. Tag: programlisting
-#: example_parentchild.xml:249
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. 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 "
@@ -566,13 +375,11 @@
"ì¡´ì¬íëì§ë¥¼ ì기 ìí´ ë°ì´í°ë² ì´ì¤ë¥¼ ì§ìí ê²ì´ë¤."
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
msgstr "ê²°ë¡ "
#. Tag: para
-#: example_parentchild.xml:265
#, fuzzy, no-c-format
msgid ""
"The sections we have just covered can be a bit confusing. However, in "
@@ -584,7 +391,6 @@
"ë¤ì ë§ì ì¥ìë¤ìì ë¶ëª¨/ìì í¨í´ì ì¬ì©íë¤."
#. Tag: para
-#: example_parentchild.xml:270
#, fuzzy, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,19 +11,16 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
msgstr "ìì : Weblog ì´í리ì¼ì´ì
"
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
msgstr "ìì í´ëì¤ë¤"
#. Tag: para
-#: example_weblog.xml:34
#, fuzzy, no-c-format
msgid ""
"The persistent classes here represent a weblog and an item posted in a "
@@ -34,203 +31,22 @@
"íì¤ ë¶ëª¨/ìì ê´ê³ë¡ 모íí ë ê²ì´ì§ë§, ì°ë¦¬ë set ëì ì ììì§ìì§ bag를 "
"ì¬ì©í ê²ì´ë¤."
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
msgstr "Hibernate 매íë¤"
#. Tag: para
-#: example_weblog.xml:49
#, fuzzy, no-c-format
msgid "The XML mappings are now straightforward. For example:"
msgstr "XML 매íë¤ì ì´ì ë§¤ì° ê°ë¨í´ì§ ê²ì´ë¤."
-#. Tag: programlisting
-#: example_weblog.xml:53
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
msgstr "Hibernate ì½ë"
#. 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 "
@@ -238,247 +54,3 @@
msgstr ""
"ë¤ì í´ëì¤ë ì°ë¦¬ê° Hibernate를 ì¬ì©íì¬ ì´ë¤ í´ëì¤ë¤ë¡ íí ì ìë ëªëª "
"ì¢
ë¥ì ê²ë¤ì ì¤ëª
íë¤."
-
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr "ë°ì´í° íí°ë§í기"
#. Tag: para
-#: filters.xml:31
#, fuzzy, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
@@ -31,13 +29,11 @@
"ë¼ë¯¸í°í ë íí°ì´ë¤."
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
msgstr "Hibernate íí°ë¤"
#. Tag: para
-#: filters.xml:40
#, fuzzy, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
@@ -59,7 +55,6 @@
"í ëë¤."
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -71,56 +66,22 @@
"ê°ëì´ì¼ íë¤. íí°ë¥¼ ì ìí기 ìí´, <literal><hibernate-mapping/></"
"literal> ìì ë´ë¶ì <literal><filter-def/></literal> ìì를 ì¬ì©íë¼:"
-#. Tag: programlisting
-#: filters.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:58
#, fuzzy, no-c-format
msgid "This filter can then be attached to a class:"
msgstr "ê·¸ë ì´ íí°ë í´ëì¤ì 첨ê°ë ì ìë¤:"
-#. Tag: programlisting
-#: filters.xml:62
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:64
#, fuzzy, no-c-format
msgid "Or, to a collection:"
msgstr "ëë ì½ë ì
ì 첨ê°ë ì ìë¤:"
-#. Tag: programlisting
-#: filters.xml:68
-#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:70
#, fuzzy, no-c-format
msgid "Or, to both or multiples of each at the same time."
msgstr "ëë ëìì ììì(ëë ê°ê°ì ì¬ë¬ë²) 첨ê°ë ì ìë¤."
#. Tag: para
-#: filters.xml:74
#, fuzzy, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
@@ -141,16 +102,7 @@
"<literal>Filter</literal> ì¸í°íì´ì¤ì ì¸ì¤í´ì¤ë¥¼ ë°ííë¤. ìì ì ìë ê°ë¨"
"í íí°ë¥¼ ì¬ì©íë©´, ì´ê²ì ë¤ìê³¼ ê°ì ê²ì´ë¤:"
-#. Tag: programlisting
-#: filters.xml:83
-#, no-c-format
-msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:85
#, fuzzy, no-c-format
msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
@@ -160,53 +112,13 @@
"method-chainingì íì©íë¤ë ì ì ë
¸í¸íë¼."
#. Tag: para
-#: filters.xml:89
#, fuzzy, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr "ì í¨í ê¸°ë¡ ë ì§ í¨í´ì ê°ì§ ìê° ë°ì´í°ë¥¼ ì¬ì©íë ì ì²´ ìì :"
-#. Tag: programlisting
-#: filters.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:95
#, fuzzy, no-c-format
msgid ""
"In order to ensure that you are provided with currently effective records, "
@@ -215,22 +127,7 @@
"ê·¸ë ë¹ì ì´ íì¬ ì í¨í ë ì½ëë¤ì íì ì»ë ê²ì íì¤í í기 ìí´, employee "
"ë°ì´í°ë¥¼ ê²ìí기 ì ì ì¸ì
ìì íí°ë¥¼ ê°ë¨íê² ì´ì© ê°ë¥íê² íë¼:"
-#. Tag: programlisting
-#: filters.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:102
#, fuzzy, no-c-format
msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
@@ -243,7 +140,6 @@
"ì¸ íì¬ ì±ì©ì¤ì¸ ì§ìë¤ë§ì ë°íí ê²ì´ë¤."
#. Tag: para
-#: filters.xml:108
#, fuzzy, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
@@ -257,7 +153,6 @@
"첫ë²ì§¸ì íë¼ë¯¸í°ë¥¼ ìì¹ì§ìë¼."
#. Tag: para
-#: filters.xml:115
#, fuzzy, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
@@ -271,17 +166,7 @@
"ë¤. ë°ë¼ì <literal><filter-def/></literal>ì attribute ë CDATA ë ì´"
"ëê²ì´ë ëí´í¸ ì¡°ê±´ì ì ìíë ê²ì íì©í´ì¤ë¤:"
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:124
#, fuzzy, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,43 +11,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: inheritance_mapping.xml:29
#, fuzzy, no-c-format
msgid "Inheritance mapping"
msgstr "ìì 매í"
#. Tag: title
-#: inheritance_mapping.xml:32
#, fuzzy, no-c-format
msgid "The three strategies"
msgstr "ì¸ ê°ì§ ë°©ëë¤"
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr "Hibernateë ì¸ ê°ì§ 기본ì ì¸ ìì 매í ë°©ëë¤ì ì§ìíë¤:"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
msgstr "table per class hierarchy"
#. Tag: para
-#: inheritance_mapping.xml:45
#, fuzzy, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr "table per subclass"
+msgid "table per subclass"
+msgstr "Table per subclass"
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
msgstr "table per concrete class"
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
@@ -55,13 +48,11 @@
msgstr "ê²ë¤ê° Hibernateë ë¤ ë²ì§¸ì ì½ê° ë¤ë¥¸ ì¢
ë¥ì ë¤íì±ì ì§ìíë¤:"
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
msgstr "implicit polymorphism(í¨ì¶ì ì¸ ë¤íì±)"
#. Tag: para
-#: inheritance_mapping.xml:69
#, fuzzy, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
@@ -86,7 +77,6 @@
"ëì table per subclass ë°©ë를 í¨ê» í¼í©ìí¤ë ê²ì´ ê°ë¥íë¤(ìë를 ë³´ë¼)."
#. Tag: para
-#: inheritance_mapping.xml:83
#, fuzzy, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
@@ -110,27 +100,12 @@
"ì ììë extends í¤ìë를 ì¬ì©í ë ìê´ìë¤. íëì 매í íì¼ ë´ì ììë "
"ì¬ì í ìë¸í´ëì¤ë¤ì ìì ìí¼í´ëì¤ë¤ì ì ìíëë° ì¬ì í íìíë¤."
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
msgstr "Table per class hierarchy"
#. Tag: para
-#: inheritance_mapping.xml:100
#, fuzzy, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
@@ -143,32 +118,7 @@
"<literal>Payment</literal>를 ê°ê³ ìë¤ê³ ê°ì íì. table per hierarchy 매í"
"ì ë¤ìê³¼ ê°ì ê²ì´ë¤:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:109
#, fuzzy, no-c-format
msgid ""
"Exactly one table is required. There is a limitation of this mapping "
@@ -180,45 +130,16 @@
"ì <literal>NOT NULL</literal> 컨ì¤í¸ë ì¸í¸ë¤ì ê°ì§ ì ìë¤."
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
msgstr "Table per subclass"
#. Tag: para
-#: inheritance_mapping.xml:120
#, fuzzy, no-c-format
msgid "A table per subclass mapping looks like this:"
msgstr "table per subclass 매íì ë¤ìê³¼ ê°ì ê²ì´ë¤:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:126
#, fuzzy, no-c-format
msgid ""
"Four tables are required. The three subclass tables have primary key "
@@ -230,13 +151,11 @@
"one ì°ê´ì´ë¤)."
#. Tag: title
-#: inheritance_mapping.xml:135
#, fuzzy, no-c-format
msgid "Table per subclass: using a discriminator"
msgstr "discriminator를 ì¬ì©íë, table per subclass"
#. Tag: para
-#: inheritance_mapping.xml:137
#, fuzzy, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
@@ -257,41 +176,7 @@
"ì´ <literal><subclass></literal>ì <literal><join></literal>ì ì¬"
"ì©ì ê²°í©ìí¬ ìë ìë¤:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
@@ -303,13 +188,11 @@
"ì¹ìí¤ì§ ìëë¡ Hibernateìê² ìë ¤ì¤ë¤."
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr "table per class hierarchyì table per subclass를 í¼í©í기"
#. Tag: para
-#: inheritance_mapping.xml:162
#, fuzzy, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
@@ -318,34 +201,7 @@
"ë¹ì ì ì´ ì ê·¼ë²ì ì¬ì©íì¬ table per hierarchy ë°©ëì table per subclass ë°©"
"ë를 í¼í©ìí¬ ì ìë¤:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
@@ -356,22 +212,12 @@
"ëí íëì ë¤íì± ì°ê´ì <literal><many-to-one></literal>ì ì¬ì©íì¬ "
"매íëë¤."
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr "Table per concrete class"
#. Tag: para
-#: inheritance_mapping.xml:182
#, fuzzy, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
@@ -381,31 +227,7 @@
"ì´ ì¡´ì¬íë¤. 첫 ë²ì§¸ë <literal><union-subclass></literal>를 ì¬ì©íë "
"ê²ì´ë¤."
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
@@ -415,7 +237,6 @@
"í¼í°ë¤ì í¬í¨íì¬, ê·¸ í´ëì¤ì 모ë íë¡í¼í°ë¤ì ëí 컬ë¼ë¤ì ì ìíë¤."
#. Tag: para
-#: inheritance_mapping.xml:194
#, fuzzy, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
@@ -431,7 +252,6 @@
"ê³ì¸µêµ¬ì¡°ì 모ë unioned ìë¸í´ëì¤ë¤ì ê°ë¡ì§ë¬ ê³µì ëì´ì¼ íë¤."
#. Tag: para
-#: inheritance_mapping.xml:203
#, fuzzy, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
@@ -445,48 +265,16 @@
"ì¤ë¤ì ìì íëë° íìíë¤."
#. Tag: title
-#: inheritance_mapping.xml:213
#, fuzzy, no-c-format
msgid "Table per concrete class using implicit polymorphism"
msgstr "í¨ì¶ì ì¸ ë¤íì±ì ì¬ì©íë, table per concrete class"
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr "ëìì ì¸ ì ê·¼ë²ì í¨ì¶ì ì¸ ë¤íì±ì ì¬ì©íë ê²ì´ë¤:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, fuzzy, no-c-format
msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
@@ -494,18 +282,17 @@
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
"ì´ë ê³³ììë ì°ë¦¬ê° ëª
ìì ì¼ë¡ <literal>Payment</literal> ì¸í°íì´ì¤ë¥¼ ì¸ê¸"
"íì§ ììì 주목íë¼. ëí <literal>Payment</literal>ì íë¡í¼í°ë¤ì´ ìë¸í´ë"
"ì¤ë¤ ê°ê°ìì 매íëë¤ë ì ì 주목íë¼. ë§ì¼ ë¹ì ì´ ì¤ë³µì í¼íê³ ì ìíë¤"
"ë©´, XML ìí°í°ë¤ì ì¬ì©íë ê²ì ê³ ë ¤íë¼(ì를 ë¤ì´ 매íìì "
-"<literal>DOCTYPE</literal> ì ì¸ê³¼ <literal>&allproperties;</literal>ìì "
+"<literal>DOCTYPE</literal> ì ì¸ê³¼ <literal>&allproperties;</literal>ìì "
"<literal>[ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</"
"literal>)."
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
@@ -515,7 +302,6 @@
"<literal>UNION</literal>ë¤ì ìì±ìí¤ë ìëë¤ë ì ì´ë¤."
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
@@ -524,27 +310,12 @@
"ì´ ë§¤í ë°©ëì ê²½ì°, <literal>Payment</literal>ì ëí íëì ë¤íì± ì°ê´ì "
"ëê° <literal><any></literal>를 ì¬ì©íì¬ ë§¤íëë¤."
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
msgstr "í¨ì¶ì ì¸ ë¤íì±ì ë¤ë¥¸ ìì 매íë¤ê³¼ í¼í©í기"
#. Tag: para
-#: inheritance_mapping.xml:248
#, fuzzy, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
@@ -559,41 +330,7 @@
"ê² ë ë¤ë¥¸ ìì ê³ì¸µêµ¬ì¡°ì ë¶ë¶ì¼ ì ìë¤! (ê·¸ë¦¬ê³ ë¹ì ì <literal>Payment</"
"literal> ì¸í°íì´ì¤ì ëí´ ì¬ì í ë¤íì± ì§ìë¤ì ì¬ì©í ì ìë¤.)"
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:258
#, fuzzy, no-c-format
msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
@@ -613,13 +350,11 @@
"<literal>NonelectronicTransaction</literal>ì ì¸ì¤í´ì¤ë¤ì ë°ííì§ ìëë¤."
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "ì ì½ë¤"
#. Tag: para
-#: inheritance_mapping.xml:275
#, fuzzy, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
@@ -631,7 +366,6 @@
"ìë ë¤ì ë ì íì ì¸ ì ì½ë¤ì´ ì¡´ì¬íë¤:"
#. Tag: para
-#: inheritance_mapping.xml:282
#, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
@@ -641,140 +375,106 @@
"ê³ í¨ì¶ì ì¸ ë¤íì±ì ëí ì ì½ë¤ì ë³´ì¬ì¤ë¤."
#. Tag: title
-#: inheritance_mapping.xml:288
#, no-c-format
msgid "Features of inheritance mappings"
msgstr "ìì 매íë¤ì í¹ì§ë¤"
#. Tag: entry
-#: inheritance_mapping.xml:301
#, no-c-format
msgid "Inheritance strategy"
msgstr "ìì ë°©ë"
#. Tag: entry
-#: inheritance_mapping.xml:302
#, no-c-format
msgid "Polymorphic many-to-one"
msgstr "ë¤íì± ë¤ëì¼"
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
msgstr "ë¤íì± ì¼ëì¼"
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
msgstr "ë¤íì± ì¼ëë¤"
#. Tag: entry
-#: inheritance_mapping.xml:305
#, no-c-format
msgid "Polymorphic many-to-many"
msgstr "ë¤íì± ë¤ëë¤"
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
msgstr "ë¤íì± ì§ìë¤"
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
msgstr "ë¤íì± ì¡°ì¸ë¤"
#. Tag: entry
-#: inheritance_mapping.xml:309
#, no-c-format
msgid "Outer join fetching"
msgstr "Outer ì¡°ì¸ íì¹"
#. Tag: entry
-#: inheritance_mapping.xml:314
#, no-c-format
msgid "table per class-hierarchy"
msgstr "table per class-hierarchy"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
-#, no-c-format
-msgid "<many-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-one></literal>"
msgstr "<many-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
-#, no-c-format
-msgid "<one-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-one></literal>"
msgstr "<one-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
-#, no-c-format
-msgid "<one-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-many></literal>"
msgstr "<one-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
-#, no-c-format
-msgid "<many-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-many></literal>"
msgstr "<many-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
-#, no-c-format
-msgid "s.get(Payment.class, id)"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>s.get(Payment.class, id)</literal>"
msgstr "s.get(Payment.class, id)"
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
+#. Tag: entry
#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+msgid "<literal>from Payment p</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
-#, no-c-format
-msgid "from Order o join o.payment p"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>from Order o join o.payment p</literal>"
msgstr "from Order o join o.payment p"
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
+#. Tag: entry
#, no-c-format
-msgid "supported"
-msgstr "ì§ìë¨"
+msgid "<emphasis>supported</emphasis>"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:325
-#, fuzzy, no-c-format
-msgid "<entry>table per subclass</entry>"
-msgstr "table per subclass"
-
-#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr "table per concrete-class (union-subclass)"
#. Tag: entry
-#: inheritance_mapping.xml:339
#, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
@@ -782,38 +482,53 @@
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:347
#, no-c-format
msgid "table per concrete class (implicit polymorphism)"
msgstr "table per concrete class (implicit polymorphism)"
-#. Tag: literal
-#: inheritance_mapping.xml:348
+#. Tag: entry
#, no-c-format
-msgid "<any>"
-msgstr "<any>"
+msgid "<literal><any></literal>"
+msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
-msgstr "ì§ìëì§ ìì"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
-#, no-c-format
-msgid "<many-to-any>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-any></literal>"
msgstr "<many-to-any>"
-#. Tag: literal
-#: inheritance_mapping.xml:352
-#, no-c-format
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+#, fuzzy
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "table per subclass"
+
+#~ msgid "from Payment p"
+#~ msgstr "from Payment p"
+
+#~ msgid "supported"
+#~ msgstr "ì§ìë¨"
+
+#, fuzzy
+#~ msgid "<entry>table per subclass</entry>"
+#~ msgstr "table per subclass"
+
+#~ msgid "<any>"
+#~ msgstr "<any>"
+
+#~ msgid "not supported"
+#~ msgstr "ì§ìëì§ ìì"
+
#~ msgid "load()/get()"
#~ msgstr "load()/get()"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,19 +11,16 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
msgstr "í¼í¬ë¨¼ì¤ ê°ì í기"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
msgstr "íì¹ ë°©ëë¤"
#. Tag: para
-#: performance.xml:34
#, fuzzy, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
@@ -37,13 +34,11 @@
"<literal>Criteria</literal> ì§ìì ìí´ ì¤ë²ë¼ì´ë ë ìë ìë¤."
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
msgstr "Hibernate3ë ë¤ì íì¹ ë°©ëë¤ì ì ìíë¤:"
#. Tag: para
-#: performance.xml:47
#, fuzzy, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
@@ -55,7 +50,6 @@
"ì ê²ìíë¤."
#. Tag: para
-#: performance.xml:54
#, fuzzy, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
@@ -69,7 +63,6 @@
"ì´ ë ë²ì§¸ selectë ë¹ì ì´ ê·¸ ì°ê´ì ì¤ì ë¡ ì¡ì¸ì¤í ë ì¤ì§ ì¤íë ê²ì´ë¤."
#. Tag: para
-#: performance.xml:63
#, fuzzy, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
@@ -85,7 +78,6 @@
"ê·¸ ì°ê´ì ì ê·¼í ë ì¤ì§ ì¤íë ê²ì´ë¤."
#. Tag: para
-#: performance.xml:72
#, fuzzy, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
@@ -99,13 +91,11 @@
"를 ê²ìíë¤."
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
msgstr "Hibernateë ëí ë¤ì ì¬ì´ë¥¼ êµ¬ë³ ì§ëë¤:"
#. Tag: para
-#: performance.xml:87
#, fuzzy, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
@@ -115,7 +105,6 @@
"ì±ì´ ì¦ì íì¹ëë¤."
#. Tag: para
-#: performance.xml:93
#, fuzzy, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
@@ -127,7 +116,6 @@
"ë¤.)"
#. Tag: para
-#: performance.xml:100
#, fuzzy, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
@@ -140,7 +128,6 @@
"ì²´ ì½ë ì
ì ë©ëª¨ë¦¬ ë´ë¡ íì¹íë ¤ê³ ìëíì§ ìëë¤(ë§¤ì° í° ì½ë ì
ì ì í©í¨)"
#. Tag: para
-#: performance.xml:108
#, fuzzy, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
@@ -151,7 +138,6 @@
"ê°ì²´ì ëí´ í¸ì¶ë ë ë¨ì¼ ê° ì°ê´ì´ íì¹ëë¤."
#. Tag: para
-#: performance.xml:115
#, fuzzy, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
@@ -168,7 +154,6 @@
"ì½ë ìë¨ì íìë¡ íë©° ëë¬¼ê² íìíë¤."
#. Tag: para
-#: performance.xml:125
#, fuzzy, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
@@ -180,7 +165,6 @@
"ê² íìíë¤."
#. Tag: para
-#: performance.xml:134
#, fuzzy, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
@@ -198,13 +182,11 @@
"í ì ìë¤."
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
msgstr "lazy ì°ê´ë¤ë¡ ìì
í기"
#. Tag: para
-#: performance.xml:145
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
@@ -216,7 +198,6 @@
"ì
ë¤ìì ê±°ì 모ë ì°ê´ë¤ì ëí´ ì ì미íë¤."
#. Tag: para
-#: performance.xml:151
#, fuzzy, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
@@ -229,7 +210,6 @@
"ìì ì´ì© ê°ë¥í ì ìë¤)."
#. Tag: para
-#: performance.xml:158
#, fuzzy, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
@@ -239,25 +219,7 @@
"Hibernate ì¸ì
컨í
ì¤í¸ ì¸ë¶ìì lazy ì°ê´ì ëí ì ê·¼ì ìì¸ìí©ì¼ë¡ ê·ê²°ë "
"ê²ì´ë¤. ì를 ë¤ë©´ :"
-#. Tag: programlisting
-#: performance.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:166
#, fuzzy, no-c-format
msgid ""
"Since the permissions collection was not initialized when the "
@@ -273,7 +235,6 @@
"í¤ë ê²ì´ë¤."
#. Tag: para
-#: performance.xml:174
#, fuzzy, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
@@ -291,7 +252,6 @@
"ë ê²ì´ë¤!"
#. Tag: para
-#: performance.xml:183
#, fuzzy, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
@@ -306,13 +266,11 @@
"ë¨ì¼ ê° ì°ê´ë¤ê³¼ ì½ë ì
ë¤ì ëí´ ëì¼íë¤."
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr "íì¹ ë°©ëë¤ì íëí기"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
@@ -321,25 +279,7 @@
"select íì¹(ëí´í¸)ì N+1 selects 문ì ì ë¤ì ë§¤ì° ì·¨ì½í´ì, ì°ë¦¬ë 매í 문ì"
"ìì join íì¹ì ì¬ì© ê°ë¥íê² í기를 ìí ìë ìë¤:"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
@@ -348,31 +288,26 @@
"매í 문ì ë´ì ì ìë <literal>fetch</literal> ë°©ëë ë¤ìì ìí¥ì ì¤ë¤:"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr "<literal>get()</literal> ëë <literal>load()</literal>를 íµí ê²ì"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr "ì°ê´ì´ ë¤ë¹ê²ì´í¸ë ë í¨ì¶ì ì¼ë¡ ë°ìíë ê²ì"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
msgstr "<literal>Criteria</literal> ì§ìë¤"
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
msgstr "<literal>subselect</literal> íì¹ì´ ì¬ì©ë ê²½ì°ì HQL ì§ìë¤"
#. Tag: para
-#: performance.xml:232
#, fuzzy, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
@@ -384,7 +319,6 @@
"ì¬ì©ëë ëªëª ì¦ìì ì¸ selectë¤ë¡ ê·ê²°ë ì ììì ë
¸í¸íë¼."
#. Tag: para
-#: performance.xml:238
#, fuzzy, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
@@ -402,7 +336,6 @@
"<literal>setFetchMode(FetchMode.JOIN)</literal>ì ì¬ì©íë¤."
#. Tag: para
-#: performance.xml:247
#, fuzzy, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
@@ -413,18 +346,7 @@
"ì©ë íì¹ ë°©ë를 ë³ê²½ìí¬ ì ì기를 ë¹ì ì´ ìíë¤ê³ ëë ê²½ì°, ë¨ìíê² "
"<literal>Criteria</literal> ì§ì를 ì¬ì©íë¼. ì를 ë¤ë©´:"
-#. Tag: programlisting
-#: performance.xml:253
-#, no-c-format
-msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:255
#, fuzzy, no-c-format
msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
@@ -434,7 +356,6 @@
"ë±ê°ë¬¼ì´ë¤.)"
#. Tag: para
-#: performance.xml:259
#, fuzzy, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
@@ -444,13 +365,11 @@
"ì를 ì¬ì©íë ê²ì´ë¤."
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
msgstr "Single-ended ì°ê´ íë½ì"
#. Tag: para
-#: performance.xml:269
#, fuzzy, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
@@ -467,7 +386,6 @@
"기í íë½ìë¤ì 구ííë¤."
#. Tag: para
-#: performance.xml:277
#, fuzzy, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
@@ -479,7 +397,6 @@
"ê´ì ëí´ lazy íì¹ì ì´ì© ê°ë¥íê² íëë° ê·¸ê²ë¤ì ì¬ì©íë¤."
#. Tag: para
-#: performance.xml:283
#, fuzzy, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
@@ -495,7 +412,6 @@
"ë ìì í´ëì¤ë¤ì ëí´ ì´ ìì±ì를 ê¶ì¥íë¤!</emphasis>"
#. Tag: para
-#: performance.xml:290
#, fuzzy, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
@@ -504,20 +420,7 @@
"ë¤íì± í´ëì¤ë¤ì ëí´ ì´ ì ê·¼ë²ì íì¥í ë ììí´ì¼ íë ëªëª ëì²í¨ë¤ì´ ì¡´"
"ì¬íë¤. ì를 ë¤ë©´."
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
@@ -528,39 +431,12 @@
"ì¸ ê²½ì°ì¡°ì°¨ë, <literal>Cat</literal>ì ì¸ì¤í´ì¤ë¤ì ê²°ì½ "
"<literal>DomesticCat</literal>ì¼ë¡ íì
ìºì¤í¸ê° ê°ë¥íì§ ìì ê²ì´ë¤:"
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:304
#, fuzzy, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
msgstr "ëë²ì§¸ë¡, íë½ì <literal>==</literal>를 í기í ê°ë¥ì±ì´ ìë¤."
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
@@ -571,16 +447,7 @@
"íë½ì ê°ì²´ë¤ì ëí ë ê°ì 참조를 ê°ì§ì§ë¼ë, 기본 ì¸ì¤í´ì¤ë ì¬ì í ëì¼"
"í ê°ì²´ë¤ì¼ ê²ì´ë¤:"
-#. Tag: programlisting
-#: performance.xml:315
-#, no-c-format
-msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:317
#, fuzzy, no-c-format
msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
@@ -590,7 +457,6 @@
"literal> ë©ìëë¤ì ê°ì§ í´ëì¤ì ëí´ CGLIB íë½ì를 ì¬ì©íì§ ìì ì ìë¤."
#. Tag: para
-#: performance.xml:322
#, fuzzy, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
@@ -604,7 +470,6 @@
"ë¸í´ëì¤ì´ë¤."
#. Tag: para
-#: performance.xml:328
#, fuzzy, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
@@ -620,20 +485,7 @@
"ì§ëì¤ ë©ìëë¤ì ì ì¸íë ì¸í°íì´ì¤ë¥¼ 구íí´ì¼ íë¤. ë¹ì ì 매í íì¼ ìì "
"ì´ë¤ ì¸í°íì´ì¤ë¤ì ì§ì í´ì¼ íë¤. ì를 ë¤ë©´."
-#. Tag: programlisting
-#: performance.xml:336
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:338
#, fuzzy, no-c-format
msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
@@ -644,30 +496,17 @@
"ì¸ ê²½ì°ì¡°ì°¨ë, <literal>Cat</literal>ì ì¸ì¤í´ì¤ë¤ì ê²°ì½ "
"<literal>DomesticCat</literal>ì¼ë¡ íì
ìºì¤í¸ê° ê°ë¥íì§ ìì ê²ì´ë¤:"
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: performance.xml:347
#, fuzzy, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
msgstr "<literal>Criteria</literal> ì§ìë¤"
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
@@ -679,7 +518,6 @@
"ì¼ í¨ì ì미íë¤."
#. Tag: para
-#: performance.xml:357
#, fuzzy, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
@@ -687,7 +525,6 @@
"ì´ë¤ ì¤í¼ë ì´ì
ë¤ì íë½ì ì´ê¸°í를 íìë¡ íì§ <emphasis>ìëë¤</emphasis>"
#. Tag: para
-#: performance.xml:363
#, fuzzy, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
@@ -697,7 +534,6 @@
"를 ì¤ë²ë¼ì´ë ìí¤ì§ ìë ê²½ì°"
#. Tag: para
-#: performance.xml:369
#, fuzzy, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
@@ -707,13 +543,11 @@
"literal>를 ì¤ë²ë¼ì´ë ìí¤ì§ ìë ê²½ì°"
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
msgstr "ìë³ì getter ë©ìë"
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
@@ -723,7 +557,6 @@
"ì¤ë²ë¼ì´ë ìí¤ë ìì í´ëì¤ë¤ì ê²ì¶í ê²ì´ë¤."
#. Tag: para
-#: performance.xml:386
#, fuzzy, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
@@ -737,13 +570,11 @@
"íë½ì ì´ê¸°íë¡ ê·ê²°ë ê²ì´ë¤."
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
msgstr "ì½ë ì
ë¤ê³¼ íë½ìë¤ì ì´ê¸°í ìí¤ê¸°"
#. Tag: para
-#: performance.xml:398
#, fuzzy, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
@@ -757,7 +588,6 @@
"literal>ì´ Hibernateì ìí´ ëì ¸ì§ ê²ì´ë¤."
#. Tag: para
-#: performance.xml:404
#, fuzzy, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
@@ -773,7 +603,6 @@
"ì½ëë¡ í¸ìì ì´ì§ ìë¤."
#. Tag: para
-#: performance.xml:411
#, fuzzy, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
@@ -793,7 +622,6 @@
"kittensì ì½ë ì
ì ëí´ ì ì¬í í¨ê³¼ë¥¼ ê°ëë¤."
#. Tag: para
-#: performance.xml:420
#, fuzzy, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
@@ -812,7 +640,6 @@
"í íë 문ì ì¼ ì ìë¤. ì´ ìì ì ë¤ë£¨ë ë ê°ì§ 기본 ë°©ë²ë¤ì´ ì¡´ì¬íë¤:"
#. Tag: para
-#: performance.xml:431
#, fuzzy, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
@@ -834,7 +661,6 @@
"ë¤. ì´ \"Open Session in View\" í¨í´ì ê´í ìì ë¤ì Hibernate ìí¤ë¥¼ ë³´ë¼."
#. Tag: para
-#: performance.xml:444
#, fuzzy, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
@@ -861,7 +687,6 @@
"emphasis> í¨í´ì ì±íí ê²½ì°ì ë ì½ë¤."
#. Tag: para
-#: performance.xml:459
#, fuzzy, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
@@ -878,7 +703,6 @@
"ì´ê¸° ë문ì´ë¤!"
#. Tag: para
-#: performance.xml:469
#, fuzzy, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
@@ -889,7 +713,6 @@
"ì ì¬ì´ì¦ì ê°ì) ê·¸ê²ì ëí ì´ë¤ ì ë³´ ëë ë°ì´í°ì ë¶ë¶ì§í©ì íìë¡ íë¤."
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
@@ -898,16 +721,7 @@
"ë¹ì ì ê·¸ê²ì ì´ê¸°í ìí¤ì§ ìê³ ì ì½ë ì
ì ì¬ì´ì¦ë¥¼ ì»ëë° ì½ë ì
íí°ë¥¼ ì¬"
"ì©í ì ìë¤:"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
@@ -917,22 +731,12 @@
"<literal>createFilter()</literal> ë©ìëë ëí ì ì²´ ì½ë ì
ì ì´ê¸°í ìí¬ í"
"ì ìì´ ì½ë ì
ì ë¶ë¶ì§í©ë¤ì í¨ì¨ì ì¼ë¡ ê²ìíëë° ì¬ì©ëë¤:"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr "batch íì¹ ì¬ì©í기"
#. Tag: para
-#: performance.xml:492
#, fuzzy, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
@@ -947,7 +751,6 @@
"ê³ ì½ë ì
ë 벨ìì."
#. Tag: para
-#: performance.xml:498
#, fuzzy, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
@@ -973,14 +776,7 @@
"<literal>Person</literal> 매íìì <literal>batch-size</literal>를 ì§ì í¨ì¼ë¡"
"ì¨ ì´ ëìì íëìí¬ ì ìë¤:"
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:510
#, fuzzy, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
@@ -989,7 +785,6 @@
"ë¤."
#. Tag: para
-#: performance.xml:514
#, fuzzy, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
@@ -1010,19 +805,7 @@
"batch íì¹ì ì¬ì©ê°ë¥íê² í ê²½ì°, Hibernateë ì½ë ì
ë¤ì 미리-íì¹ ìí¬ ì "
"ìë¤:"
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -1036,7 +819,6 @@
"ì ìì¡´íë¤."
#. Tag: para
-#: performance.xml:531
#, fuzzy, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
@@ -1050,13 +832,11 @@
"ì ìµì
ì¼ ì ììì§ë¼ë) ì½ë ì
ë¤ì ëí batch íì¹ì´ í¹í ì ì©íë¤."
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
msgstr "subselect íì¹ ì¬ì©í기"
#. Tag: para
-#: performance.xml:542
#, fuzzy, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
@@ -1068,13 +848,69 @@
"ë¤. ì´ê²ì ì¡°ê°ë ë¡ë© ìì´ batch íì¹ê³¼ ëì¼í ë°©ìì¼ë¡ ëìíë¤."
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "íì¹ ë°©ëë¤"
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
msgstr "lazy íë¡í¼í° íì¹ ì¬ì©í기"
#. Tag: para
-#: performance.xml:555
#, fuzzy, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
@@ -1093,7 +929,6 @@
"ëª íë¡í¼í°ë¤ì ë¡ëìí¤ë ê² ë§ì´ ì ì©í ìë ìë¤."
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
@@ -1102,24 +937,7 @@
"lazy íë¡í¼í° ë¡ë©ì ì´ì©ê°ë¥íê² íë ¤ë©´, ë¹ì ì í¹ì property 매íë¤ì ëí´ "
"<literal>lazy</literal> ìì±ì ì¤ì íë¼:"
-#. Tag: programlisting
-#: performance.xml:569
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:571
#, fuzzy, no-c-format
msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
@@ -1131,33 +949,11 @@
"ìíê³ ì¦ê°ì ì¸ íì¹ì¼ë¡ íí´í ê²ì´ë¤."
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
msgstr "bytecode ìë¨ì¼ë¡, ë¤ì Ant íì¤í¬ë¥¼ ì¬ì©íë¼:"
-#. Tag: programlisting
-#: performance.xml:581
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:583
#, fuzzy, no-c-format
msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
@@ -1171,7 +967,6 @@
"í¸ëë í´ê²°ì±
ì´ë¤."
#. Tag: para
-#: performance.xml:590
#, fuzzy, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
@@ -1181,13 +976,11 @@
"ì ëí íµìì eager íì¹ì ê°ì ìí¬ ì ìë¤."
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
msgstr "ëë²ì§¸ ë 벨 ìºì"
#. Tag: para
-#: performance.xml:602
#, fuzzy, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
@@ -1206,7 +999,6 @@
"른 ì´í리ì¼ì´ì
ì ìí´ ìì ì ì¥ìì ëí´ íí´ì§ ë³ê²½ë¤ì ê²°ì½ ìì§ ëª»íë¤."
#. Tag: para
-#: performance.xml:610
#, fuzzy, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
@@ -1240,43 +1032,36 @@
"í´í¸ ë´ì¥ì´ ìëë¤."
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
msgstr "ìºì íë¡ë°ì´ëë¤"
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr "ìºì"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
msgstr "íë¡ë°ì´ë í´ëì¤"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr "íì
"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
msgstr "í´ë¬ì¤í° ìì "
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
msgstr "ì§ì ìºì ì§ì"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, fuzzy, no-c-format
msgid "Hashtable (not intended for production use)"
msgstr ""
@@ -1285,139 +1070,144 @@
"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"Hashtable (ì íì©ì¼ë¡ ê³ ìëì§ ìì)"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
msgstr "org.hibernate.cache.HashtableCacheProvider"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr "memory"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
-#, no-c-format
-msgid "<entry>yes</entry>"
+#, fuzzy, no-c-format
+msgid "yes"
msgstr ""
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"yes\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"yes\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"yes\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì\n"
+"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
+"ì"
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
msgstr "org.hibernate.cache.EhCacheProvider"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
msgstr "memory, disk"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
msgstr "org.hibernate.cache.OSCacheProvider"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
msgstr "org.hibernate.cache.SwarmCacheProvider"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
msgstr "clustered (ip multicast)"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
msgstr "yes (clustered invalidation)"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
#, fuzzy, no-c-format
msgid "JBoss Cache 1.x"
msgstr "JBoss TreeCache"
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
msgstr "org.hibernate.cache.TreeCacheProvider"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
msgstr "clustered (ip multicast), transactional"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
msgstr "yes (replication)"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
msgstr "yes (clock sync req.)"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
#, fuzzy, no-c-format
msgid "JBoss Cache 2"
msgstr "JBoss TreeCache"
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
msgstr "org.hibernate.cache.EhCacheProvider"
#. Tag: entry
-#: performance.xml:677
#, fuzzy, no-c-format
msgid "yes (replication or invalidation)"
msgstr "yes (clustered invalidation)"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
msgstr "Cache 매íë¤"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
@@ -1426,19 +1216,7 @@
"í´ëì¤ ëë ì½ë ì
매íì <literal><cache></literal> ììë ë¤ì íì"
"ì ê°ëë¤:"
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
@@ -1450,7 +1228,6 @@
"literal> ëë <literal>read-only</literal>"
#. Tag: para
-#: performance.xml:710
#, fuzzy, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
@@ -1460,7 +1237,6 @@
"second level ìºì ììì ì´ë¦ì ì§ì íë¤"
#. Tag: para
-#: performance.xml:717
#, fuzzy, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
@@ -1474,7 +1250,6 @@
"ë¤"
#. Tag: para
-#: performance.xml:727
#, fuzzy, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
@@ -1486,7 +1261,6 @@
"</literal> ììë¤ì ì§ì í ìë ìë¤."
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
@@ -1496,13 +1270,11 @@
"íë¤."
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
msgstr "ë°©ë: ì½ê¸° ì ì©"
#. Tag: para
-#: performance.xml:741
#, fuzzy, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
@@ -1515,24 +1287,12 @@
"ë¤. ì´ê²ì ê°ì¥ ê°ë¨í ìµìì í¼í¬ë¨¼ì¤ë¥¼ ìí ë°©ëì´ë¤. ê·¸ê²ì í´ë¬ì¤í° ë´ ì¬"
"ì©ìë ìë²½íê² ìì íë¤."
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
msgstr "ë°©ë: ì½ê¸°/ì°ê¸°"
#. Tag: para
-#: performance.xml:755
#, fuzzy, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
@@ -1559,28 +1319,12 @@
"ì¤í í´ì¼ íë¤. 미리 ë§ë¤ì´ì§ ìºì íë¡ë°ì´ëë¤ì ê·¸ë ê² ííì§ <emphasis>ì"
"ëë¤</emphasis>."
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
msgstr "ë°©ë: ì격íì§ ìì ì½ê¸°/ì°ê¸°"
#. Tag: para
-#: performance.xml:773
#, fuzzy, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
@@ -1602,13 +1346,11 @@
"literal>ê° í¸ì¶ë ë í¸ëìì
ì´ ìë£ëëë¡ íì¤í í´ì¼ íë¤."
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
msgstr "ë°©ë: transactional"
#. Tag: para
-#: performance.xml:787
#, fuzzy, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
@@ -1622,13 +1364,11 @@
"manager_lookup_class</literal>를 ì§ì í´ì¼ íë¤."
#. Tag: title
-#: performance.xml:796
#, fuzzy, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
msgstr "ìºì ëìì± ë°©ë ì§ì"
#. Tag: para
-#: performance.xml:799
#, fuzzy, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
@@ -1637,7 +1377,6 @@
"ì í
ì´ë¸ì ì´ë íë¡ë°ì´ëë¤ì´ ì´ë ëìì± ë°©ëë¤ê³¼ í¸íëëì§ë¥¼ ë³´ì¬ì¤ë¤."
#. Tag: para
-#: performance.xml:804
#, fuzzy, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
@@ -1647,43 +1386,36 @@
"ì í
ì´ë¸ì ì´ë íë¡ë°ì´ëë¤ì´ ì´ë ëìì± ë°©ëë¤ê³¼ í¸íëëì§ë¥¼ ë³´ì¬ì¤ë¤."
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
msgstr "ìºì ëìì± ë°©ë ì§ì"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr "ì½ê¸° ì ì©"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
msgstr "ì격íì§ ìì ì½ê¸°-ì°ê¸°"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
msgstr "ì½ê¸°-ì°ê¸°"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr "transactional"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
msgstr "ìºìë¤ì ê´ë¦¬í기"
#. Tag: para
-#: performance.xml:879
#, fuzzy, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
@@ -1701,7 +1433,6 @@
"ë¤."
#. Tag: para
-#: performance.xml:886
#, fuzzy, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
@@ -1717,21 +1448,7 @@
"ì ê²½ì°, <literal>evict()</literal> ë©ìëë first-level ìºìë¡ë¶í° ê·¸ ê°ì²´"
"ì ê·¸ê²ì ì½ë ì
ë¤ì ì ê±°íëë° ì¬ì©ë ì ìë¤."
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
@@ -1741,7 +1458,6 @@
"íëë° <literal>contains()</literal> ë©ìë를 ì ê³µíë¤."
#. Tag: para
-#: performance.xml:901
#, fuzzy, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
@@ -1751,7 +1467,6 @@
"clear()</literal>를 í¸ì¶íë¼."
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
@@ -1762,20 +1477,7 @@
"ì ì²´ ì½ë ì
roleì ìºìë ìí를 í´ê±°ìí¤ë <literal>SessionFactory</"
"literal> ìì ì ìë ë©ìëë¤ì´ ì¡´ì¬íë¤."
-#. Tag: programlisting
-#: performance.xml:911
-#, no-c-format
-msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:913
#, fuzzy, no-c-format
msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
@@ -1785,7 +1487,6 @@
"ì©íëì§ë¥¼ ì ì´íë¤"
#. Tag: para
-#: performance.xml:920
#, fuzzy, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
@@ -1795,7 +1496,6 @@
"ë¤ì´ê³ second-level ìºìë¡ ìì´í
ë¤ì 기ë¡íë¤"
#. Tag: para
-#: performance.xml:925
#, fuzzy, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
@@ -1805,7 +1505,6 @@
"ì´ì§ë§, ë°ì´í°ë¥¼ ì
ë°ì´í¸í ë를 ì ì¸íë©´ second-level ìºìë¡ ê¸°ë¡íì§ ìëë¤"
#. Tag: para
-#: performance.xml:931
#, fuzzy, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
@@ -1815,7 +1514,6 @@
"ë§, second-level ìºìë¡ë¶í° ì½ì´ë¤ì´ì§ ìëë¤"
#. Tag: para
-#: performance.xml:937
#, fuzzy, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
@@ -1829,7 +1527,6 @@
"cache.use_minimal_puts</literal>ì í¨ê³¼ë¥¼ 무ìíë¤"
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
@@ -1838,17 +1535,7 @@
"second-level ìºì ëë ì§ì ìºì ììì ë´ì©ë¬¼ì ë¸ë¼ì°ì§íë ¤ë©´ "
"<literal>Statistics</literal> API를 ì¬ì©íë¼:"
-#. Tag: programlisting
-#: performance.xml:950
-#, no-c-format
-msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:952
#, fuzzy, no-c-format
msgid ""
"You will need to enable statistics and, optionally, force Hibernate to keep "
@@ -1858,66 +1545,79 @@
"ì ë³´ë¤ ì¸ê°ìê² ì´í´ê°ë¥í íìì¼ë¡ ì ì§ìí¤ëë¡ ê°ì ìí¤ë ê²ì´ íìí ê²ì´"
"ë¤:"
-#. Tag: programlisting
-#: performance.xml:957
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:962
#, no-c-format
msgid "The Query Cache"
msgstr "ì§ì ìºì"
#. Tag: para
-#: performance.xml:964
#, fuzzy, no-c-format
msgid ""
"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"are run frequently with the same parameters."
msgstr ""
"ì§ì ê²°ê³¼ ì
ë¤ì´ ëí ìºìë ìë ìë¤. ì´ê²ì ëì¼í íë¼ë¯¸í°ë¤ì ê°ì§ê³ ì"
"주 ì¤íëë ì§ìë¤ìë§ ì ì©íë¤. ì§ì ìºì를 ì¬ì©í기 ìí´ ë¹ì ì 먼ì ê·¸ê²"
"ì ì´ì© ê°ë¥íëë¡ í´ì¼ íë¤:"
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: title
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid "Enabling query caching"
msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-"ì´ ì¤ì ì ë ê°ì ìë¡ì´ ìºì ììë¤ - ìºìë ì§ì ê²°ê³¼ ì
ë¤ì ë³´ê´íë ê² "
-"(<literal>org.hibernate.cache.StandardQueryCache</literal>), ì§ì ê°ë¥í í
ì´"
-"ë¸ë¤ì ëí ê°ì¥ ìµì ì
ë°ì´í¸ë¤ì ëí timestampë¤ì ë³´ê´íë ë¤ë¥¸ ê² "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>)-ì ìì±ì ê°ì "
-"íë¤ . ì§ì ìºìë ê²°ê³¼ ì
ë´ì ì¤ì ìí°í°ë¤ì ìí를 ìºììí¤ì§ ììì ë
¸í¸"
-"íë¼; ê·¸ê²ì ì¤ì§ ìë³ì ê°ë¤ê³¼ ê° íì
ì ê²°ê³¼ë¤ ë§ì ìºììí¨ë¤. ë°ë¼ì ì§"
-"ì ìºìë íì second-level ìºìì í¨ê» ì¬ì©ëì´ì¼ íë¤."
#. Tag: para
-#: performance.xml:981
+#, no-c-format
+msgid "This setting creates two new cache regions:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
+msgstr ""
+
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
"ëë¶ë¶ì ì§ìë¤ì ìºì±ì¼ë¡ë¶í° ì´ì ì´ ì기ì, ëí´í¸ë¡ ì§ìë¤ì ìºìëì§ ìë"
"ë¤. ìºì±ì ì´ì© ê°ë¥íëë¡ íë ¤ë©´, <literal>Query.setCacheable(true)</"
@@ -1925,8 +1625,22 @@
"ê±°ë ì§ìê° ì¤íë ë ê·¸ê²ì ê²°ê³¼ë¤ì ìºìì ì¶ê°íë ê²ì íì©í´ì¤ë¤."
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "ì§ì ìºì ì§ì"
+
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
"If you require fine-grained control over query cache expiration policies, "
"you can specify a named cache region for a particular query by calling "
@@ -1936,30 +1650,18 @@
"ì <literal>Query.setCacheRegion()</literal>ì í¸ì¶í¨ì¼ë¡ì¨ í¹ë³í ì§ìì ë"
"í´ ëª
ëª
ëë ìºì ììì ì§ì í ìë ìë¤."
-#. Tag: programlisting
-#: performance.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:996
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
msgstr ""
"ë§ì¼ ì§ìê° ê·¸ê²ì ì§ì ìºì ììì ê°±ì ì ê°ì ìì¼ì¼ íë ê²½ì°ì, ë¹ì ì "
"<literal>Query.setCacheMode(CacheMode.REFRESH)</literal>를 í¸ì¶í´ì¼ íë¤. ì´"
@@ -1970,13 +1672,11 @@
"ìí¤ë ë³´ë¤ í¨ê³¼ì ì¸ ëìì´ë¤."
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
msgstr "ì½ë ì
í¼í¬ë¨¼ì¤ ì´í´í기"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
@@ -1985,37 +1685,31 @@
msgstr ""
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
msgstr "ë¶ë¥"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
msgstr "Hibernateë ì¸ ê°ì§ 기본ì ì¸ ì¢
ë¥ì ì½ë ì
ë¤ì ì ìíë¤:"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr "ê°ë¤ì ê°ì§ ì½ë ì
ë¤"
#. Tag: para
-#: performance.xml:1026
#, fuzzy, no-c-format
msgid "one-to-many associations"
msgstr "one to many ì°ê´ë¤"
#. Tag: para
-#: performance.xml:1029
#, fuzzy, no-c-format
msgid "many-to-many associations"
msgstr "many to many ì°ê´ë¤"
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -2032,25 +1726,21 @@
"íë¤. ì´ê²ì ë¤ì ë¶ë¥ë¥¼ ì ìíë¤:"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr "ì¸ë±ì± ë ì½ë ì
ë¤"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
msgstr "setë¤"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
msgstr "bagë¤"
#. Tag: para
-#: performance.xml:1054
#, fuzzy, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
@@ -2066,7 +1756,6 @@
"ê³ í¹ì íì í¨ì¨ì ì¼ë¡ ìì¹ì§ìì§ ì ìë¤."
#. Tag: para
-#: performance.xml:1062
#, fuzzy, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
@@ -2090,7 +1779,6 @@
"ë¡ ì ì¸í´ì¼ íë¤.)"
#. Tag: para
-#: performance.xml:1073
#, fuzzy, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
@@ -2100,7 +1788,6 @@
"ì ì
ë°ì´í¸ì ë§¤ì° í¨ì¨ì ì´ë¤. ì¬ì¤, ê·¸ê²ë¤ì ìµìì ê²½ì°ì´ë¤."
#. Tag: para
-#: performance.xml:1078
#, fuzzy, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
@@ -2116,7 +1803,6 @@
"문ì 를 í´ê²°íë¤. ì´ê²ì ë§¤ì° ë¹í¨ì¨ì ì´ë¤."
#. Tag: para
-#: performance.xml:1086
#, fuzzy, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
@@ -2130,14 +1816,12 @@
"ìíë¤.)"
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
msgstr "List, map, idbag, setë¤ì updateì ê°ì¥ í¨ì¨ì ì¸ ì½ë ì
ë¤ì´ë¤"
#. Tag: para
-#: performance.xml:1098
#, fuzzy, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
@@ -2148,7 +1832,6 @@
"ê³ ì
ë°ì´í¸í¨ì ìì´ ê°ì¥ í¨ì¨ì ì¸ ì¤í¼ë ì´ì
ì íì©í´ì¤ë¤."
#. Tag: para
-#: performance.xml:1104
#, fuzzy, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
@@ -2168,7 +1851,6 @@
"ë¤."
#. Tag: para
-#: performance.xml:1113
#, fuzzy, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
@@ -2184,7 +1866,6 @@
"í ê²ì´ê¸° ë문ì´ë¤."
#. Tag: para
-#: performance.xml:1121
#, fuzzy, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
@@ -2199,13 +1880,11 @@
"ê³ , ë°ë¼ì ì½ë ì
ì
ë°ì´í¸ í¼í¬ë¨¼ì¤ì ëí ê²í ë¤ì ë¨ìí ì ì©ëì§ ìëë¤."
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
msgstr "Bagë¤ê³¼ listë¤ì ê°ì¥ í¨ì¨ì ì¸ inverse ì½ë ì
ë¤ì´ë¤"
#. Tag: para
-#: performance.xml:1133
#, fuzzy, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
@@ -2226,25 +1905,12 @@
"ì bag ëë <literal>List</literal>ì ëí´ true를 ë°íí´ì¼í기 ë문ì´ë¤. ì´ê²"
"ì í¨ì¬ ë¤ì ê³µíµì ì¸ ì½ë를 ë ë¹ ë¥´ê² ë§ë¤ ì ìë¤."
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
msgstr "ì ì· delete"
#. Tag: para
-#: performance.xml:1150
#, fuzzy, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
@@ -2259,7 +1925,6 @@
"ì ë´ë¦´ ê²ì´ê³ ì°ë¦¬ë 모ë ííë¤!"
#. Tag: para
-#: performance.xml:1157
#, fuzzy, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
@@ -2273,7 +1938,6 @@
"ë ¹ ë´ë¦´ ê²ì´ë¤. ì´ê²ì íì¤í ë§ìì ë ë¤."
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
@@ -2284,13 +1948,11 @@
"ë¤."
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
msgstr "íëì© ì´ ì¬ë ê°ì íë¤ì ìì í ë¤ìì ì¸ ê°ì íë¤ì ì½ì
ìí¨ë¤"
#. Tag: para
-#: performance.xml:1173
#, fuzzy, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
@@ -2300,7 +1962,6 @@
"ì íì¬ ììë¤ì (íëì©) insert ìí¨ë¤"
#. Tag: para
-#: performance.xml:1178
#, fuzzy, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
@@ -2313,7 +1974,6 @@
"ë¤.)"
#. Tag: para
-#: performance.xml:1184
#, fuzzy, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
@@ -2325,7 +1985,6 @@
"ìí¬ ì ìë¤. ì´ê²ì ìê°ì´ íë¦ì ë°ë¼ ë§¤ì° ì ì©íê³ ê°ë ¥í´ì§ ì ìë¤."
#. Tag: para
-#: performance.xml:1190
#, fuzzy, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
@@ -2335,13 +1994,11 @@
"매íë ì½ë ì
ë¤ì ì ì©ëì§ ìëë¤."
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
msgstr "í¼í¬ë¨¼ì¤ 모ëí°ë§í기"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2355,13 +2012,11 @@
"ì´ì© ê°ë¥íë¤."
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
msgstr "SessionFactory 모ëí°ë§ í기"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
@@ -2374,7 +2029,6 @@
"ë ì´ íë ê²ì´ë¤."
#. Tag: para
-#: performance.xml:1216
#, fuzzy, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
@@ -2387,38 +2041,7 @@
"ë¹ì ì<literal>SessionFactory</literal>ì ëí´ í ê°ì MBean ëë í©í 리 ë¹ "
"í ê°ë¥¼ ì´ì© ê°ë¥íê² í ì ìë¤. ìµìíì êµ¬ì± ìì ë¤ì ë¤ì ì½ë를 ë³´ë¼:"
-#. Tag: programlisting
-#: performance.xml:1223
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:1228
#, fuzzy, no-c-format
msgid ""
"You can activate and deactivate the monitoring for a "
@@ -2428,7 +2051,6 @@
"ì ìë¤"
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
@@ -2438,7 +2060,6 @@
"<literal>false</literal>"
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
@@ -2448,7 +2069,6 @@
"ë <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
#. Tag: para
-#: performance.xml:1247
#, fuzzy, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
@@ -2460,13 +2080,11 @@
"를 ì¬ì©íì¬ logger(info ë 벨)ìê² ì ì¡ë ì ìë¤."
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
msgstr "Metrics"
#. Tag: para
-#: performance.xml:1258
#, fuzzy, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
@@ -2480,7 +2098,6 @@
"ë¤:"
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
@@ -2490,7 +2107,6 @@
"<literal>Session</literal> ì¬ì©ì ê´ë ¨ë metrics."
#. Tag: para
-#: performance.xml:1271
#, fuzzy, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
@@ -2500,7 +2116,6 @@
"metricsë¡ ìë ¤ì ¸ ìì),"
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
@@ -2508,7 +2123,6 @@
msgstr "í¹ì í ìí°í°, ì½ë ì
, ì§ì ëë ìºì ììì ê´ë ¨ë ìì¸ metrics."
#. Tag: para
-#: performance.xml:1284
#, fuzzy, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
@@ -2524,7 +2138,6 @@
"ìë¤."
#. Tag: para
-#: performance.xml:1291
#, fuzzy, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
@@ -2547,30 +2160,7 @@
"<literal>QueryStatistics</literal>를 참조íë¼. ë¤ì ì½ëë ê°ë¨í ìì 를 ë³´ì¬"
"ì¤ë¤:"
-#. Tag: programlisting
-#: performance.xml:1301
-#, no-c-format
-msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:1303
#, fuzzy, no-c-format
msgid ""
"You can work on all entities, collections, queries and region caches, by "
@@ -2585,7 +2175,26 @@
"<literal>getEntityNames()</literal>, <literal>getCollectionRoleNames()</"
"literal>, ê·¸ë¦¬ê³ <literal>getSecondLevelCacheRegionNames()</literal>."
+#, fuzzy
#~ msgid ""
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
+#~ msgstr ""
+#~ "ì´ ì¤ì ì ë ê°ì ìë¡ì´ ìºì ììë¤ - ìºìë ì§ì ê²°ê³¼ ì
ë¤ì ë³´ê´íë "
+#~ "ê² (<literal>org.hibernate.cache.StandardQueryCache</literal>), ì§ì ê°ë¥"
+#~ "í í
ì´ë¸ë¤ì ëí ê°ì¥ ìµì ì
ë°ì´í¸ë¤ì ëí timestampë¤ì ë³´ê´íë ë¤"
+#~ "른 ê² (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>)-ì ì"
+#~ "ì±ì ê°ì íë¤ . ì§ì ìºìë ê²°ê³¼ ì
ë´ì ì¤ì ìí°í°ë¤ì ìí를 ìºììí¤"
+#~ "ì§ ììì ë
¸í¸íë¼; ê·¸ê²ì ì¤ì§ ìë³ì ê°ë¤ê³¼ ê° íì
ì ê²°ê³¼ë¤ ë§ì ìºìì"
+#~ "í¨ë¤. ë°ë¼ì ì§ì ìºìë íì second-level ìºìì í¨ê» ì¬ì©ëì´ì¼ íë¤."
+
+#~ msgid ""
#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
@@ -2621,39 +2230,3 @@
#~ "íë¤. ë ë²ì§¸ ê²½ì°ì ì°ë¦¬ë JNDI ì´ë¦ì ì¬ì©í기 ì ì ì¸ì
í©í ë¦¬ê° ë³´ê´í"
#~ "ê³ ìë JNDI ì´ë¦ì ë¶ì¬í´ì¼ íë¤. <literal>hibernateStatsBean."
#~ "setSessionFactoryJNDIName(\"my/JNDI/Name\")</literal>ì ì¬ì©íë¼."
-
-#, fuzzy
-#~ msgid "yes"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "yes\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "yes\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "yes\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "ì"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
msgstr "ìì í´ëì¤ë¤"
#. Tag: para
-#: persistent_classes.xml:31
#, fuzzy, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
@@ -32,7 +30,6 @@
"ì¤í´ì¤ë transient ëë detached ìíì¼ ì ìë¤."
#. Tag: para
-#: persistent_classes.xml:38
#, fuzzy, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
@@ -49,13 +46,11 @@
"기."
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
msgstr "ê°ë¨í POJO ìì "
#. Tag: para
-#: persistent_classes.xml:49
#, fuzzy, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
@@ -64,92 +59,7 @@
"ëë¶ë¶ì ìë° ì´í리ì¼ì´ì
ë¤ì ê³ ìì´ê³¼ë¤ì íííë ìì í´ëì¤ë¥¼ íìë¡ í"
"ë¤."
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
@@ -157,13 +67,11 @@
msgstr ""
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
msgstr "ìê·ë¨¼í¸ ìë ìì±ì를 구ííë¼"
#. Tag: para
-#: persistent_classes.xml:63
#, fuzzy, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
@@ -181,13 +89,11 @@
"ë¤."
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
msgstr "identifier íë¡í¼í°ë¥¼ ì ê³µíë¼(ìµì
)"
#. Tag: para
-#: persistent_classes.xml:75
#, fuzzy, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
@@ -207,7 +113,6 @@
"ì í´ëì¤ë¥¼ ì¬ì©í ìë ìë¤ - ëì¤ì composite ìë³ìë¤ì ëí ì ì ë³´ë¼)"
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
@@ -219,7 +124,6 @@
"ì°ë¦¬ë ì´ê²ì ê¶ì¥íì§ ìëë¤."
#. Tag: para
-#: persistent_classes.xml:89
#, fuzzy, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
@@ -229,29 +133,25 @@
"ë¥íë¤:"
#. Tag: para
-#: persistent_classes.xml:96
#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
"detached ê°ì²´ë¤ì ëí Transitive reattachment(cascade update ëë cascade "
"merge) - <xref linkend=\"objectstate-transitive\"/>"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
msgstr "Session.saveOrUpdate()"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
msgstr "Session.merge()"
#. Tag: para
-#: persistent_classes.xml:113
#, fuzzy, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
@@ -262,13 +162,11 @@
"primitive)ì ì¬ì©í ê²ì ê¶ì¥íë¤."
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
msgstr "finalì´ ìë í´ëì¤ë¤ì ì í¸íë¼(ìµì
)"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
@@ -280,7 +178,6 @@
"í´ëì¤ë¤ì ìì¡´íë¤."
#. Tag: para
-#: persistent_classes.xml:126
#, fuzzy, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
@@ -294,7 +191,6 @@
"ìµì
ë¤ì ì íìí¬ ê²ì´ë¤."
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -308,13 +204,11 @@
"literal>를 ì¤ì í¨ì¼ë¡ì¨ ëª
ìì ì¼ë¡ íë½ì±ì ì¬ì© ë¶ê°ë¥íëë¡ í´ì¼ íë¤."
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
msgstr "ìì íëë¤ì ìí accessorë¤ê³¼ mutatorë¤ì ì ì¸íë¼(ìµì
)"
#. Tag: para
-#: persistent_classes.xml:141
#, fuzzy, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
@@ -334,7 +228,6 @@
"ì íë¡í¼í°ì ëí ì§ì ì ì¸ íë ì ê·¼ì¼ë¡ ì íí ìë ìë¤."
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
@@ -346,13 +239,11 @@
"literal> get/set ìì ê°ì§ íë¡í¼í°ë¥¼ ììí ìí¬ ì ìë¤."
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
msgstr "ìì 구íí기"
#. Tag: para
-#: persistent_classes.xml:164
#, fuzzy, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
@@ -362,33 +253,13 @@
"í¼í´ëì¤ <literal>Cat</literal>ì¼ë¡ë¶í° ê·¸ê²ì identifier íë¡í¼í°ë¥¼ ììë°ë"
"ë¤."
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
msgstr "<literal>equals()</literal>ì <literal>hashCode()</literal> 구íí기"
#. Tag: para
-#: persistent_classes.xml:175
#, fuzzy, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
@@ -398,7 +269,6 @@
"<literal>hashCode()</literal> ë©ìëë¤ì ì¤ë²ë¼ì´ë ìì¼ì¼ íë¤."
#. Tag: para
-#: persistent_classes.xml:181
#, fuzzy, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
@@ -409,13 +279,11 @@
"ëíê³ (many-valued ì°ê´ë¤ì ëí´ ê¶ì¥ëë ë°©ë²) <emphasis>ê·¸ë¦¬ê³ </emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
msgstr "detached ì¸ì¤í´ì¤ë¤ì reattachment(ì¬ì²¨ë¶)를 ì¬ì©íê³ ì ìëíë"
#. Tag: para
-#: persistent_classes.xml:194
#, fuzzy, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
@@ -431,7 +299,6 @@
"literal>를 구íí´ì¼ íë¤."
#. Tag: para
-#: persistent_classes.xml:202
#, fuzzy, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
@@ -465,7 +332,6 @@
"ì²´ identityì equalityì ê´í íµìì ìë° ìë¯¸ë¡ ìì ë
¸í¸íë¼."
#. Tag: para
-#: persistent_classes.xml:216
#, fuzzy, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
@@ -481,41 +347,11 @@
"ì ì°ë¦¬ì ì¸ì¤í´ì¤ë¥¼ ìë³íê² ë í¤(<emphasis>natural</emphasis> íë³´ í¤)를 "
"íì±íë íë¡í¼í°ë¤ë§ì ë¹êµíë¤ë ì ì ì미íë¤ :"
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
"íëì ë¹ì§ëì¤ í¤ë ë°ì´í°ë² ì´ì¤ íë¼ì´ë¨¸ë¦¬ í¤ íë³´ ë§í¼ ê²¬ê³ íì§ ììì¼ í"
@@ -524,29 +360,25 @@
"ë³´ë¤ì´ë¤."
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
msgstr "ëì ì¸ ëª¨íë¤"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
msgstr ""
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
msgstr ""
"ë¤ì í¹ì§ë¤ì íì¬ ì¤íì ì¼ë¡ ê³ ë ¤ëê³ ìì¼ë©° ì¥ëìë ë³ê²½ë ì ììì ë
¸í¸"
"íë¼."
#. Tag: para
-#: persistent_classes.xml:246
#, fuzzy, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
@@ -562,13 +394,12 @@
"ìì±íì§ ìê³ , ì¤ì§ 매í íì¼ë¤ ë§ì ìì±íë¤."
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
"ëí´í¸ë¡, Hibernateë íµì°ì POJO 모ëë¡ ëìíë¤. ë¹ì ì "
"<literal>default_entity_mode</literal> êµ¬ì± ìµì
ì ì¬ì©íì¬ í¹ë³í "
@@ -576,7 +407,6 @@
"ìë¤ (<xref linkend=\"configuration-optional-properties\"/>ì ë³´ë¼)."
#. Tag: para
-#: persistent_classes.xml:261
#, fuzzy, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
@@ -587,47 +417,7 @@
"íì¼ìì, <literal>entity-name</literal>ì í´ëì¤ ì´ë¦ ëì ì(ëë í´ëì¤ ì´"
"ë¦ì ë§ë¶ì¬) ì ì¸ëì´ì¼ íë¤:"
-#. Tag: programlisting
-#: persistent_classes.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:269
#, fuzzy, no-c-format
msgid ""
"Even though associations are declared using target class names, the target "
@@ -637,7 +427,6 @@
"ë¤ì ëì(target) íì
ì ëí POJOê° ìë ëì ì¸ ìí°í°ì¼ ì ììì ë
¸í¸íë¼."
#. Tag: para
-#: persistent_classes.xml:276
#, fuzzy, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
@@ -648,35 +437,7 @@
"<literal>dynamic-map</literal>ì¼ë¡ ì¤ì í íì, ì°ë¦¬ë <literal>Map</literal>"
"ë¤ì ê°ì§ <literal>Map</literal>ë¤ì ëí´ ì¤í ìì ìì
í ì ìë¤:"
-#. Tag: programlisting
-#: persistent_classes.xml:282
-#, no-c-format
-msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:284
#, fuzzy, no-c-format
msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
@@ -693,7 +454,6 @@
"ê·í ëê³ ìë¦¬ê° ì¸ë ¤ í¼ì§ ì ìë¤."
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
@@ -702,26 +462,7 @@
"ìí°í° íí 모ëë¤ì ëí íëì ë¨ì <literal>Session</literal> 기ì¤ì ëí´ "
"ì¤ì ë ì ìë¤:"
-#. Tag: programlisting
-#: persistent_classes.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:300
#, fuzzy, no-c-format
msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
@@ -743,23 +484,20 @@
"ë¤."
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"<xref linkend=\"xml\" />."
msgstr ""
"XML íí ê°ì©ì±ë¤ì ëí ì¶ê° ì ë³´ë <xref linkend=\"xml\"/>ìì ì°¾ì ì ì"
"ë¤."
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
msgstr "Tuplizerë¤"
#. Tag: para
-#: persistent_classes.xml:320
#, fuzzy, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
@@ -789,7 +527,6 @@
"íë¤."
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -801,7 +538,6 @@
msgstr ""
#. Tag: para
-#: persistent_classes.xml:338
#, fuzzy, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
@@ -821,55 +557,12 @@
"ë¤ ì ìë¤ì ê·¸ê²ë¤ì´ ê´ë¦¬í ìë¨ì¸ ìí°í° 매í ëë ì»´í¬ëí¸ ë§¤íì 첨ë¶ë"
"ë¤. ì°ë¦¬ì ê³ ê° ìí°í°ì ëí ìì ë¡ ëëìê°ë©´:"
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
#, no-c-format
msgid "EntityNameResolvers"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -887,140 +580,7 @@
"package for illustration."
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
@@ -1028,7 +588,6 @@
msgstr ""
#. Tag: para
-#: persistent_classes.xml:374
#, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
@@ -1037,7 +596,6 @@
msgstr ""
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: 2009-07-14 19:56+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,19 +14,16 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
msgstr ""
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
msgstr ""
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -40,13 +37,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
msgstr ""
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -60,13 +55,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
msgstr ""
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -77,7 +70,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -89,15 +81,14 @@
msgstr ""
#. Tag: para
-#: portability.xml:72
#, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -110,7 +101,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -126,13 +116,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
msgstr ""
#. Tag: para
-#: portability.xml:100
#, no-c-format
msgid ""
"When considering portability between databases, another important decision "
@@ -151,38 +139,63 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
#. Tag: para
-#: portability.xml:125
#, no-c-format
msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr ""
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr ""
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
msgstr ""
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +204,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -202,7 +214,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -213,7 +224,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
@@ -222,13 +232,11 @@
msgstr ""
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "머리ë§"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -34,7 +32,6 @@
"íë 기ì ì ì¸ê¸íë¤."
#. Tag: para
-#: preface.xml:39
#, fuzzy, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
@@ -48,7 +45,6 @@
"ìê°ì íì íê² ë¨ì¶ìì¼ì¤ ì ìë¤."
#. Tag: para
-#: preface.xml:46
#, fuzzy, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
@@ -69,7 +65,6 @@
"ê°ì²´ë¤ì ê·¸ëíë¡ ê²°ê³¼ ì
ì ë³ííë ê³µíµë íì¤í¬ë¥¼ ëìì¤ ê²ì´ë¤."
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
@@ -79,10 +74,9 @@
"ë©´, ë¤ì ë¨ê³ë¤ì ë°ë¥´ê¸° ë°ëë¤:"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
@@ -91,17 +85,15 @@
"tutorial/</literal> ëë í 리ì í¬í¨ëì´ ìë¤."
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
msgstr ""
"Hibernateê° ì¬ì©ë ì ìë íê²½ì ì´í´ë ¤ë©´ <xref linkend=\"architecture\"/> "
"를 ì½ì´ë¼."
#. Tag: para
-#: preface.xml:77
#, fuzzy, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
@@ -120,15 +112,13 @@
"ì´í íë¼."
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
"ë¹ì ì 주ë ì ë³´ì ìì¤ë¡ì ì´ ì°¸ì¡° 문ì를 ì¬ì©íë¼. ë§ì¼ ì´í리ì¼ì´ì
ì¤ê³"
"ì ëí´ ë ë§ì ëìì íìë¡ íê±°ë ë¹ì ì´ ë¨ê³ì ì¸ íí 리ì¼ì ì í¸íë¤ë©´ "
@@ -137,13 +127,11 @@
"ì¬ Java Persistence with Hibernateì© ìì ì´í리ì¼ì´ì
ì ë¤ì´ë¡ë íë¼."
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
msgstr "FAQë¤ì Hibernate ì¹ ì¬ì´í¸ ìì ëµë³ëì´ ìë¤."
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
@@ -153,7 +141,6 @@
"ìë¤."
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
@@ -164,7 +151,6 @@
"(Tomcat, JBoss AS, Struts, EJB ë±.)ì ê´í ì¢ì 리ìì¤ì´ë¤."
#. Tag: para
-#: preface.xml:117
#, fuzzy, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
@@ -180,7 +166,6 @@
"ì ì ì´íë¼."
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,25 +11,21 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
msgstr "Criteria ì§ìë¤"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
msgstr "Hibernateë ì§ê´ì ì¸, íì¥ ê°ë¥í criteria query API를 í¹ì§ ì§ëë¤."
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
msgstr "<literal>Criteria</literal> ì¸ì¤í´ì¤ ìì±í기"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
@@ -40,23 +36,12 @@
"í ì§ì를 íííë¤. <literal>Session</literal>ì <literal>Criteria</literal> "
"ì¸ì¤í´ì¤ë¤ì ëí í©í 리ì´ë¤."
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
msgstr "ê²°ê³¼ ì
ì íí기"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -69,53 +54,12 @@
"literal> í´ëì¤ë ì´ë¤ 미리 ë§ë¤ì´ì§ <literal>Criterion</literal> íì
ë¤ì ì»"
"ë í©í 리 ë©ìëë¤ì ì ìíë¤."
-#. Tag: programlisting
-#: query_criteria.xml:59
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:61
#, fuzzy, no-c-format
msgid "Restrictions can be grouped logically."
msgstr "ì íë¤ì ë
¼ë¦¬ì ì¼ë¡ 그룹ì§ìì§ ìë ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:69
#, fuzzy, no-c-format
msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
@@ -126,18 +70,7 @@
"ì ììì´ ê½¤ ì¡´ì¬íì§ë§, í¹í ì ì©í ê²ì ë¹ì ì¼ë¡ íì¬ê¸ SQLì ì§ì ì§ì íë"
"ë¡ í´ì¤ë¤."
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
@@ -147,7 +80,6 @@
"placeholder."
#. Tag: para
-#: query_criteria.xml:81
#, fuzzy, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
@@ -158,32 +90,12 @@
"í° ê·¸ê²ì ì»ë ê²ì´ë¤. ë¹ì ì <literal>Property.forName()</literal>ì í¸ì¶í"
"ì¬ <literal>Property</literal>를 ìì±ìí¬ ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
msgstr "ê²°ê³¼ë¤ì ììì§ì°ê¸°(ordering)"
#. Tag: para
-#: query_criteria.xml:94
#, fuzzy, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
@@ -192,57 +104,19 @@
"ë¹ì ì <literal>org.hibernate.criterion.Order</literal>를 ì¬ì©íì¬ ê²°ê³¼ë¤ì "
"ìì(ordering)ì§ì¸ ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
msgstr "ì°ê´ë¤"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:112
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:114
#, fuzzy, no-c-format
msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
@@ -254,25 +128,12 @@
"ì 참조íë¤ë ì ì ë
¸í¸íë¼."
#. Tag: para
-#: query_criteria.xml:120
#, fuzzy, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
msgstr "ë¤ì ëì²´ íìì ì´ë¤ íê²½ë¤ìì ì ì©íë¤."
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
@@ -282,7 +143,6 @@
"í´ì¤ë¥¼ ìì±ìí¤ì§ ìëë¤.)"
#. Tag: para
-#: query_criteria.xml:131
#, fuzzy, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
@@ -296,31 +156,47 @@
"ë¤ì ë¨ì§ ê²ìíê³ ì ìí ê²½ì°, ë¹ì ì íëì <literal>ResultTransformer</"
"literal>를 ì¬ì©í´ì¼ íë¤."
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
+msgid "Additionally you may manipulate the result set using a left outer join:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
#. Tag: title
-#: query_criteria.xml:143
#, no-c-format
msgid "Dynamic association fetching"
msgstr "ëì ì¸ ì°ê´ íì¹"
#. Tag: para
-#: query_criteria.xml:145
#, fuzzy, no-c-format
msgid ""
"You can specify association fetching semantics at runtime using "
@@ -329,23 +205,11 @@
"ë¹ì ì <literal>setFetchMode()</literal>를 ì¬ì©íì¬ ì¤í ìì ì°ê´ íì¹ ì미"
"를 ì§ì í ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:152
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
msgstr ""
"ì´ ì§ìë outer ì¡°ì¸ì¼ë¡ <literal>mate</literal>ì <literal>kittens</"
@@ -353,13 +217,11 @@
"fetching\"/>ì ë³´ë¼."
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
msgstr "ìì ì§ìë¤"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
@@ -368,20 +230,7 @@
"<literal>org.hibernate.criterion.Example</literal> í´ëì¤ë 주ì´ì§ ì¸ì¤í´ì¤ë¡"
"ë¶í° ì§ì 기ì¤(criterion)ì 구조í ìí¤ë ê²ì ë¹ì ìê² íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
@@ -391,53 +240,23 @@
"ì´ ì ì¸ëë¤."
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
msgstr "ë¹ì ì <literal>Example</literal>ì´ ì ì©ëë ë°©ë²ì ì¡°ì í ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
msgstr ""
"ë¹ì ì ì°ê´ë ê°ì²´ë¤ì ëí criteria(기ì¤)ì ìì¹ì§ì°ëë° examples를 ì¬ì©í "
"ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
msgstr "Projections, aggregation ê·¸ë¦¬ê³ grouping"
#. Tag: para
-#: query_criteria.xml:190
#, fuzzy, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
@@ -449,32 +268,7 @@
"<literal>setProjection()</literal>ì í¸ì¶íì¬ íëì ì§ìì projection(í¬ì¬,"
"í¬ì)ì ì ì©ìí¨ë¤."
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
@@ -486,7 +280,6 @@
"ê³ , ê·¸ê²ì ëí SQL <literal>group by</literal> ì ìì ëíëë¤."
#. Tag: para
-#: query_criteria.xml:206
#, fuzzy, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
@@ -497,29 +290,7 @@
"(restriction)ë¤ ëë orderingë¤ ë´ìì 참조ë ì ìë¤. ë¤ìì ì´ê²ì ííë "
"ë ê°ì ë¤ë¥¸ ë°©ë²ë¤ì´ë¤:"
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -532,39 +303,7 @@
"í´ì¤ë¥¼ ê°ë¨íê² í¬ì¥íë¤. ì§ë¦ê¸¸ë¡ì, ë¹ì ì´ projectionì projection 리ì¤í¸"
"ì ì¶ê°í ë ë¹ì ì alias를 í ë¹í ì ìë¤:"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
@@ -573,40 +312,12 @@
"ë¹ì ì ëí projectionë¤ì íííëë° <literal>Property.forName()</literal>"
"ì ì¬ì©í ì ìë¤:"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
msgstr "Detached ì§ìë¤ê³¼ ìë¸ì§ìë¤"
#. Tag: para
-#: query_criteria.xml:239
#, fuzzy, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
@@ -617,23 +328,7 @@
"ì를 ìì±ìí¤ëë¡ íê³ , ê·¸ë° ë¤ì ëì¤ì ì´ë¤ ììì <literal>Session</"
"literal>ì ì¬ì©íì¬ ê·¸ê²ì ì¤ííëë¡ íë¤."
-#. Tag: programlisting
-#: query_criteria.xml:244
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:246
#, fuzzy, no-c-format
msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
@@ -644,55 +339,17 @@
"ë¸ì§ìë¤ì í¬í¨íë Criterion ì¸ì¤í´ì¤ë¤ì <literal>Subqueries</literal> ë"
"ë <literal>Property</literal>를 íµí´ ì»ì´ì§ ì ìë¤."
-#. Tag: programlisting
-#: query_criteria.xml:252
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:256
#, fuzzy, no-c-format
msgid "Correlated subqueries are also possible:"
msgstr "ì¬ì§ì´ ìê´ê´ê³ ì§ìì§ ìë¸ì§ìë¤ì´ ê°ë¥íë¤:"
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
msgstr "natural ìë³ìì ìí ì§ìë¤"
#. Tag: para
-#: query_criteria.xml:271
#, fuzzy, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
@@ -709,7 +366,6 @@
"ì§ìê° ì주 ë°ìíë¤. criteria APIë ì´ ì°ìì를 ìí í¹ë³í ì¤ë¹ë¥¼ ì ê³µíë¤."
#. Tag: para
-#: query_criteria.xml:279
#, fuzzy, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
@@ -719,25 +375,7 @@
"í°ì ëí natural í¤ë¥¼ 매í ìì¼ì¼ íê³ , second-level ìºì ì¬ì©ì ê°ë¥íê² í´"
"ì¼ íë¤."
-#. Tag: programlisting
-#: query_criteria.xml:284
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:286
#, fuzzy, no-c-format
msgid ""
"This functionality is not intended for use with entities with "
@@ -747,7 +385,6 @@
"ëë¡ ê³ ìëì´ ìì§ ììì ë
¸í¸íë¼."
#. Tag: para
-#: query_criteria.xml:291
#, fuzzy, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
@@ -757,18 +394,6 @@
"ì´ì <literal>Restrictions.naturalId()</literal>ë ìºì ìê³ ë¦¬ì¦ì ë³´ë¤ í¨ì¨"
"ì ì¼ë¡ ì¬ì©í ì ìëë¡ ì°ë¦¬ìê² íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
-
#~ msgid ""
#~ "You may easily specify constraints upon related entities by navigating "
#~ "associations using <literal>createCriteria()</literal>."
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
msgstr "HQL: íì´ë²ë¤ì´í¸ ì§ì ì¸ì´(Hibernate Query Language)"
#. Tag: para
-#: query_hql.xml:31
#, fuzzy, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
@@ -29,13 +27,11 @@
"ì± ê·¸ë¦¬ê³ ì°ê´ê³¼ ê°ì ê°ë
ë¤ì ì´í´íì¬ì, ì ì²´ì ì¼ë¡ ê°ì²´ ì§í¥ì ì´ë¤."
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
msgstr "ëì문ì 구ë¶"
#. Tag: para
-#: query_hql.xml:40
#, fuzzy, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
@@ -51,7 +47,6 @@
"literal>ì <literal>foo.BARSET</literal>ê³¼ ê°ì§ ìë¤."
#. Tag: para
-#: query_hql.xml:51
#, fuzzy, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
@@ -63,25 +58,16 @@
"ì´ ì»¨ë²¤ì
ì´ ì¶íë¤ë ì ì ë°ê²¬íë¤."
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
msgstr "from ì "
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
msgstr "ê°ì¥ ê°ë¨í ê°ë¥í Hibernate ì§ìë ë¤ì íìì´ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
#, fuzzy, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
@@ -93,28 +79,14 @@
"import</literal>ê° ëí´í¸ì´ê¸° ë문ì´ë¤. ë°ë¼ì ì°ë¦¬ë ëê° íì ë¨ì§ ë¤ìê³¼ "
"ê°ì´ ìì±íë¤:"
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
#, fuzzy, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
@@ -126,14 +98,7 @@
"<literal>as</literal> í¤ìëë ìµì
ì´ë¤; ì°ë¦¬ë ëí ë¤ìê³¼ ê°ì´ ìì±í ì ì"
"ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
#, fuzzy, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
@@ -142,20 +107,7 @@
"ì¬ë¬ ê°ì í´ëì¤ë¤ì cartesian product(ì¹´í°ì ¼ ê³±) ëë \"í¬ë¡ì¤\" ì¡°ì¸ì¼ë¡ ê·"
"ê²°ëì´ ëíë ìë ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
#, fuzzy, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
@@ -167,13 +119,11 @@
"<literal>domesticCat</literal>)."
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
msgstr "ì°ê´ë¤ê³¼ ì¡°ì¸ë¤"
#. Tag: para
-#: query_hql.xml:109
#, fuzzy, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
@@ -182,59 +132,32 @@
"ì°ë¦¬ë ëí <literal>join</literal>ì ì¬ì©íì¬ , ì°ê´ë ìí°í°ë¤ì ëë ê°ë¤"
"ì ê°ì§ ì½ë ì
ì ììë¤ìë aliasë¤ì í ë¹í ìë ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:114
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:116
-#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:118
-#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:120
#, fuzzy, no-c-format
msgid "The supported join types are borrowed from ANSI SQL:"
msgstr "ì§ìëë join íì
ë¤ì ANSI SQLë¡ë¶í° ë¹ë ¤ìë¤"
-#. Tag: literal
-#: query_hql.xml:127
-#, no-c-format
-msgid "inner join"
-msgstr "inner join"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>inner join</literal>"
+msgstr "ëë <literal>List</literal>ë¡ì,"
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "left outer join"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>full join</literal> (ëê° ì ì©íì§ ìì)"
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>right outer join</literal>"
msgstr "right outer join"
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
msgstr "<literal>full join</literal> (ëê° ì ì©íì§ ìì)"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
@@ -243,17 +166,7 @@
"<literal>inner join</literal>, <literal>left outer join</literal>, ê·¸ë¦¬ê³ "
"<literal>right outer join</literal> 구조체ë¤ì´ ì½ì¹ë ì ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
@@ -262,24 +175,14 @@
"ë¹ì ì HQL <literal>with</literal> í¤ìë를 ì¬ì©íì¬ í¹ë³í ì¡°ì¸ ì¡°ê±´ë¤ì ì "
"ê³µí ì ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
"ê²ë¤ê°, \"fetch\" joinì ê°ë¤ì ê°ì§ ì½ë ì
ë¤ì´ë ì°ê´ê´ê³ë¤ì´ í ê°ì select"
@@ -288,17 +191,7 @@
"ì outer joinê³¼ lazy ì ì¸ë¤ì í¨ì¨ì ì¼ë¡ ì¤ë²ë¼ì´ë ìí¨ë¤. ì¶ê° ì ë³´ë "
"<xref linkend=\"performance-fetching\"/>ì ë³´ë¼."
-#. Tag: programlisting
-#: query_hql.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:171
#, fuzzy, no-c-format
msgid ""
"A fetch join does not usually need to assign an alias, because the "
@@ -314,18 +207,7 @@
"ì ë¶ëª¨ ê°ì²´ë¥¼ íµí´ ì ê·¼ë ì ìë¤. ì°ë¦¬ê° alias를 íìë¡ í ì ìë ì ì¼í "
"ì´ì ë ë ë§ì ì½ë ì
ë¤ì ì¬ê·ì ì¼ë¡ ì¡°ì¸ íì¹ìí¤ë ê²½ì°ì´ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:179
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:181
#, fuzzy, no-c-format
msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
@@ -358,7 +240,6 @@
"literal>ì <literal>right join fetch</literal>ë ìë¯¸ê° ìë¤."
#. Tag: para
-#: query_hql.xml:196
#, fuzzy, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
@@ -370,28 +251,12 @@
"Hibernateë¡ íì¬ê¸ <literal>fetch all properties</literal>를 ì¬ì©íì¬ (첫 ë²"
"째 ì§ììì) lazy íë¡í¼í°ë¤ì ì¦ì íì¹íëë¡ ê°ì ìí¤ë ê²ì´ ê°ë¥íë¤."
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
msgstr "join 구문ì íìë¤"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
@@ -401,7 +266,6 @@
"<literal>ëª
ìì </literal>."
#. Tag: para
-#: query_hql.xml:214
#, fuzzy, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
@@ -412,7 +276,6 @@
"ë <literal>ëª
ìì ì¸</literal> íìì ì¬ì©íë¤. ì´ê²ì ê¶ì¥ëë íìì´ë¤."
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -425,27 +288,18 @@
"ì¸</literal> ì¡°ì¸ë¤ì ììì HQL ì ë¤ë´ì ëíë ì ìë¤. <literal>í¨ì¶ì ì¸</"
"literal> joinì ê²°ê³¼ëë SQL 문ì¥ìì inner joinì¼ë¡ ê·ê²°ëë¤."
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
#, fuzzy, no-c-format
msgid "Referring to identifier property"
msgstr "ìë³ì ìì± ì°¸ì¡°í기"
#. Tag: para
-#: query_hql.xml:232
#, fuzzy, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr ""
"ê°ëµì ì¼ë¡ ë§íìë©´, ìí°í°ì ìë³ì ìì±ì 참조íë 2ê°ì§ ë°©ë²ë¤ì´ ì¡´ì¬íë¤:"
#. Tag: para
-#: query_hql.xml:237
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
@@ -457,7 +311,6 @@
"참조íëë° ì¬ì©ë ì ìë¤."
#. Tag: para
-#: query_hql.xml:244
#, fuzzy, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
@@ -467,7 +320,6 @@
"ì©í ìë ìë¤."
#. Tag: para
-#: query_hql.xml:250
#, fuzzy, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
@@ -482,7 +334,6 @@
"literal> ìì±ì´ ìë³ì ìì±ì 참조íëë° ì¬ì©ë ì ìë¤."
#. Tag: para
-#: query_hql.xml:258
#, fuzzy, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
@@ -497,13 +348,11 @@
"ë¹ìë³ì ìì±ë¤ì´ Hibernate ì§ìë¤ ë´ìì ê²°ì½ ì°¸ì¡°ë ì ììë¤ë ì ì´ìë¤."
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
msgstr "select ì "
#. Tag: para
-#: query_hql.xml:271
#, fuzzy, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
@@ -512,17 +361,7 @@
"<literal>select</literal> ì ì ì§ì ê²°ê³¼ ì
ìì ë°íí ê°ì²´ë¤ê³¼ íë¡í¼í°ë¤"
"ì´ ì´ë ê²ì¸ì§ë¥¼ ê³¨ë¼ ë´ëë¡ ê°ì íë¤. ë¤ìì ê²í íì:"
-#. Tag: programlisting
-#: query_hql.xml:276
-#, no-c-format
-msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:278
#, fuzzy, no-c-format
msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
@@ -532,14 +371,7 @@
"ê²ì´ë¤. ì¤ì ë¡ ë¹ì ì ì´ ì§ìë¤ì ë¤ìê³¼ ê°ì´ ë³´ë¤ ì¶ì½íì¼ë¡ ííí ìë ì"
"ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
#, fuzzy, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
@@ -548,22 +380,7 @@
"ì§ìë¤ì ì»´í¬ëí¸ íì
ì íë¡í¼í°ë¤ì í¬í¨íë ììì ê° íì
ì íë¡í¼í°ë¤ì "
"ë°íí ìë ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:289
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:293
#, fuzzy, no-c-format
msgid ""
"Queries can return multiple objects and/or properties as an array of type "
@@ -573,52 +390,19 @@
"ë¤ì ì¬ë¬ ê°ì²´ë¤ ê·¸ë¦¬ê³ /ëë íë¡í¼í°ë¤ì <literal>Object[]</literal> íì
ì "
"ë°°ì´ë¡ì,"
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
#, fuzzy, no-c-format
msgid "Or as a <literal>List</literal>:"
msgstr "ëë <literal>List</literal>ë¡ì,"
-#. Tag: programlisting
-#: query_hql.xml:304
-#, no-c-format
-msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:306
#, fuzzy, no-c-format
msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr "ë°íí ìë ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:310
-#, no-c-format
-msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:313
#, fuzzy, no-c-format
msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
@@ -626,17 +410,7 @@
"ë¹ì ì <literal>as</literal>를 ì¬ì©íì¬ selectëë ííìë¤ì aliasë¤ì í ë¹"
"í ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
@@ -644,17 +418,7 @@
msgstr ""
"ë¤ìì <literal>select new map</literal>ê³¼ í¨ê» ì¬ì©ë ë ê°ì¥ ì ì©íë¤:"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
@@ -663,13 +427,11 @@
"ë°ííë¤."
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
msgstr "ì§ê³ í¨ìë¤"
#. Tag: para
-#: query_hql.xml:334
#, fuzzy, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
@@ -677,41 +439,27 @@
"HQL ì§ìë¤ì íë¡í¼í°ë¤ì ëí ì§ê³(aggregate) í¨ìë¤ì ê²°ê³¼ë¤ì ë°íí ìë "
"ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:338
-#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
msgid "The supported aggregate functions are:"
msgstr "ì§ìëë ì§ê³ í¨ìë¤ì ë¤ìê³¼ ê°ë¤"
-#. Tag: literal
-#: query_hql.xml:356
-#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
msgstr "avg(...), sum(...), min(...), max(...)"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>count(*)</literal>"
+msgstr "ëë <literal>List</literal>ë¡ì,"
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
msgstr "count(...), count(distinct ...), count(all...)"
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
@@ -720,25 +468,7 @@
"ë¹ì ì select ì ìì ì°ì ì°ì°ìë¤, ì°ê²° ì°ì°ì, ê·¸ë¦¬ê³ ì¸ì§ë SQL í¨ìë¤ì "
"ì¬ì©í ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:376
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:380
#, fuzzy, no-c-format
msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
@@ -747,29 +477,17 @@
"<literal>distinct</literal> í¤ìëì all <literal>all</literal>ê° ì¬ì©ë ì "
"ìê³ SQLì ê²½ì°ì ëì¼í ì미를 ê°ëë¤."
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
msgstr "Polymorphic(ë¤íì±) ì§ìë¤"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
msgstr "ë¤ìê³¼ ê°ì ì§ì:"
#. Tag: para
-#: query_hql.xml:398
#, fuzzy, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
@@ -786,14 +504,7 @@
"ì¤ë¥¼ 구ííë 모ë ìì í´ëì¤ë¤ì ì¸ì¤í´ì¤ë¤ì ë°íí ê²ì´ë¤. ë¤ì ì§ìë 모"
"ë ìì ê°ì²´ë¤ì ë°íí ê²ì´ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
@@ -802,14 +513,7 @@
"ì¸í°íì´ì¤ <literal>Named</literal>ë ì¬ë¬ ê°ì§ ìì í´ëì¤ë¤ì ìí´ êµ¬íë "
"ìë ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
#, fuzzy, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
@@ -823,13 +527,11 @@
"scroll()</literal>ì ì¬ì©íì¬ ì´ë¤ ì§ìë¤ì í¸ì¶í ì ììì ì미íë¤)."
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
msgstr "where ì "
#. Tag: para
-#: query_hql.xml:426
#, fuzzy, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
@@ -839,49 +541,24 @@
"ìê² íì©í´ì¤ë¤. ë§ì¼ aliasê° ì¡´ì¬íì§ ìì ê²½ì°, ë¹ì ì ì´ë¦ì ìí´ íë¡í¼í°"
"ë¤ì 참조í ìë ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
msgstr ""
"ë§ì¼ í ê°ì aliasê° ì¡´ì¬í ê²½ì°, íëì ììì´ê° ë¶ì íë¡í¼í° ì´ë¦ì ì¬ì©í"
"ë¼:"
-#. Tag: programlisting
-#: query_hql.xml:437
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:439
#, fuzzy, no-c-format
msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
msgstr "ë 'Fritz'ë¡ ëª
ëª
ë <literal>Cat</literal>ì ì¸ì¤í´ì¤ë¤ì ë°ííë¤."
#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:446
-#, no-c-format
-msgid ""
-"<![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:448
#, fuzzy, no-c-format
msgid ""
"returns all instances of <literal>Foo</literal> with an instance of "
@@ -896,14 +573,7 @@
"íìë¤ì <literal>where</literal> ì ì ë§¤ì° ê°ë ¥íê² ë§ë¤ì´ì¤ë¤. ë¤ìì ê²í "
"íì:"
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
#, fuzzy, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
@@ -911,23 +581,13 @@
"ì´ ì§ìë í
ì´ë¸ (inner) joinì ê°ì§ SQL ì§ìë¡ ë²ìëë¤. ë§ì¼ ë¹ì ì´ ë¤ìê³¼ "
"ê°ì ì´ë¤ ê²ì ìì±íë¤ë©´"
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
#, fuzzy, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
"ë¹ì ì SQLìì ë¤ ê°ì í
ì´ë¸ joinë¤ì íìë¡ íë íëì ì§ìë¡ ëë¼ ê²ì´ë¤."
#. Tag: para
-#: query_hql.xml:470
#, fuzzy, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
@@ -936,50 +596,23 @@
"<literal>=</literal> ì°ì°ìë íë¡í¼í°ë¤ ë¿ë§ ìëë¼ ëí ì¸ì¤í´ì¤ë¤ì ë¹êµí"
"ëë° ì¬ì©ë ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
"í¹ë³í íë¡í¼í°(ì문ì) <literal>id</literal>ë ê°ì²´ì ì ì¼ ìë³ì를 참조íë"
"ë° ì¬ì©ë ì ìë¤. ì¶ê° ì ë³´ë <xref linkend=\"queryhql-identifier-property"
"\"/>를 ë³´ë¼."
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
#, fuzzy, no-c-format
msgid "The second query is efficient and does not require a table join."
msgstr "ë ë²ì§¸ ì§ìê° í¨ì¨ì ì´ë¤. í
ì´ë¸ joinì´ íì ìë¤!"
#. Tag: para
-#: query_hql.xml:491
#, fuzzy, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
@@ -992,40 +625,19 @@
"ì. ìë³ì ìì±ë¤ì 참조íë ê²ê³¼ ê´ë ¨ë ì¶ê° ì ë³´ë ë¤ì <xref linkend="
"\"queryhql-identifier-property\"/>를 ë³´ë¼."
-#. Tag: programlisting
-#: query_hql.xml:497
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
#, fuzzy, no-c-format
msgid "Once again, the second query does not require a table join."
msgstr "ë¤ì íë², ë ë²ì§¸ ì§ìë í
ì´ë¸ joinì íìë¡ íì§ ìëë¤."
#. Tag: para
-#: query_hql.xml:505
#, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
#. Tag: para
-#: query_hql.xml:510
#, fuzzy, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
@@ -1038,18 +650,11 @@
"ì¤íë¤. where ì ìì ì½ì
ë Java í´ëì¤ ì´ë¦ì ê·¸ê²ì íë³ì(discriminator) "
"ê°ì¼ë¡ ë³íë ê²ì´ë¤."
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
"ë¹ì ì ëí ì»´í¬ëí¸ë¤ ëë composite ì¬ì©ì íì
ë¤, ëë ëª
ëª
ë ì»´í¬ëí¸ í"
@@ -1057,7 +662,6 @@
"components\"/>를 ë³´ë¼."
#. Tag: para
-#: query_hql.xml:523
#, fuzzy, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
@@ -1070,16 +674,7 @@
"기ì <literal>AuditLog.item</literal>ì <literal><any></literal>ë¡ ë§¤í"
"ë íë¡í¼í°ì´ë¤)."
-#. Tag: programlisting
-#: query_hql.xml:529
-#, no-c-format
-msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:531
#, fuzzy, no-c-format
msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
@@ -1090,13 +685,11 @@
"ì§ì ë´ìì ìì í ë¤ë¥¸ ë°ì´í°ë² ì´ì¤ 컬ë¼ë¤ì ê°ë¤ì 참조í ê²ìì ë
¸í¸íë¼."
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr "ííìë¤"
#. Tag: para
-#: query_hql.xml:541
#, fuzzy, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
@@ -1106,13 +699,11 @@
"ìë ëë¶ë¶ì ì¢
ë¥ì ê²ë¤ì í¬í¨íë¤:"
#. Tag: para
-#: query_hql.xml:548
#, fuzzy, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
msgstr "ì°ì ì°ì°ìë¤ <literal>+, -, *, /</literal>"
#. Tag: para
-#: query_hql.xml:553
#, fuzzy, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
@@ -1121,19 +712,16 @@
"ë°ì´ë리 ë¹êµ ì°ì°ìë¤ <literal>=, >=, <=, <>, !=, like</literal>"
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
msgstr "ë
¼ë¦¬ ì°ì°ë¤ <literal>and, or, not</literal>"
#. Tag: para
-#: query_hql.xml:563
#, fuzzy, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
msgstr "그룹íì ëíë´ë ê´í¸ë¤ <literal>( )</literal>, indicating grouping"
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1147,7 +735,6 @@
"<literal>member of</literal> and <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
@@ -1158,7 +745,6 @@
"literal>"
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
@@ -1167,7 +753,6 @@
"문ìì´ ì°ê²° <literal>...||...</literal> or <literal>concat(...,...)</literal>"
#. Tag: para
-#: query_hql.xml:592
#, fuzzy, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
@@ -1177,7 +762,6 @@
"<literal>current_timestamp()</literal>"
#. Tag: para
-#: query_hql.xml:598
#, fuzzy, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
@@ -1189,7 +773,6 @@
"<literal>year(...)</literal>,"
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
@@ -1201,13 +784,11 @@
"mod()</literal>"
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> ê·¸ë¦¬ê³ <literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
@@ -1217,7 +798,6 @@
"()</literal>"
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1231,7 +811,6 @@
"literal>."
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
@@ -1241,7 +820,6 @@
"í¨ì"
#. Tag: para
-#: query_hql.xml:636
#, fuzzy, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
@@ -1257,7 +835,6 @@
"literal>."
#. Tag: para
-#: query_hql.xml:644
#, fuzzy, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
@@ -1269,13 +846,11 @@
"ë¼ í¨ì"
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
msgstr "JDBC-ì¤íì¼ ìì¹ íë¼ë¯¸í°ë¤ <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:655
#, fuzzy, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
@@ -1285,7 +860,6 @@
"<literal>:x1</literal>"
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
@@ -1295,7 +869,6 @@
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
@@ -1305,7 +878,6 @@
"literal>"
#. Tag: para
-#: query_hql.xml:672
#, fuzzy, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
@@ -1313,41 +885,12 @@
"<literal>in</literal> ê³¼ <literal>between</literal>ì ë¤ìê³¼ ê°ì´ ì¬ì©ë ì "
"ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
#, fuzzy, no-c-format
msgid "The negated forms can be written as follows:"
msgstr "ê·¸ë¦¬ê³ ë¶ì íë¤ì ë¤ìê³¼ ê°ì´ ìì±ë ì ìë¤"
-#. Tag: programlisting
-#: query_hql.xml:684
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:688
#, fuzzy, no-c-format
msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
@@ -1357,7 +900,6 @@
"null ê°ë¤ì í
ì¤í¸íëë° ì¬ì©ë ì ìë¤."
#. Tag: para
-#: query_hql.xml:693
#, fuzzy, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
@@ -1366,16 +908,7 @@
"Booleanë¤ì Hibernate êµ¬ì± ë´ì HQL ì§ì ì¹íë¤ì ì ì¸í¨ì¼ë¡ì¨ ííìë¤ ë´ì "
"ì½ê² ì¬ì©ë ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
@@ -1386,14 +919,7 @@
"ì´ HQLë¡ë¶í° ë²ìë SQLìì 리í°ë´ <literal>1</literal>ê³¼ <literal>0</"
"literal>ì¼ë¡ ëì²´ë ê²ì´ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
#, fuzzy, no-c-format
msgid ""
"You can test the size of a collection with the special property "
@@ -1402,20 +928,7 @@
"ë¹ì ì í¹ë³í íë¡í¼í° <literal>size</literal>ë¡ì ëë í¹ë³í <literal>size"
"()</literal> í¨ìë¡ì ì½ë ì
ì ì¬ì´ì¦ë¥¼ í
ì¤í¸í ì ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
#, fuzzy, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
@@ -1430,27 +943,7 @@
"<literal>maxelement</literal> í¨ì를 ì¬ì©íì¬ ê¸°ë³¸ íì
ì ê°ì§ ì½ë ì
ì ìµì "
"ìì ë° ìµë ìì를 참조í ì ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:724
-#, no-c-format
-msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:730
#, fuzzy, no-c-format
msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
@@ -1462,42 +955,7 @@
"ë ì¸ë±ì¤ ì¸í¸(<literal>elements</literal> í¨ìì <literal>indices</literal> "
"í¨ì), ëë ìë¸ì§ìì 결과를 ì ë¬íì ë ì§ìëë¤(ìë를 ë³´ë¼)."
-#. Tag: programlisting
-#: query_hql.xml:736
-#, no-c-format
-msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:746
#, fuzzy, no-c-format
msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
@@ -1512,7 +970,6 @@
"Hibernate3ìì where ì ë´ììë§ ì¬ì©ë ê²ìì ë
¸í¸íë¼."
#. Tag: para
-#: query_hql.xml:753
#, fuzzy, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
@@ -1521,56 +978,14 @@
"ì¸ë±ì± ë ì½ë ì
ë¤ì ììë¤(ë°°ì´ë¤, 리ì¤í¸ë¤, mapë¤)ì ì¸ë±ì¤ì ìí´ ì°¸ì¡°ë "
"ì ìë¤(where ì ìììë§):"
-#. Tag: programlisting
-#: query_hql.xml:758
-#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
-msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:766
#, fuzzy, no-c-format
msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
msgstr "<literal>[]</literal> ë´ë¶ì ííìì ì°ì ííì¤ì¼ ì ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:770
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:772
#, fuzzy, no-c-format
msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
@@ -1579,29 +994,12 @@
"HQLì ëí one-to-many ì°ê´ ëë ê°ë¤ì ê°ì§ ì½ë ì
ì ììë¤ì ëí´ ë¯¸ë¦¬ ë§ë¤"
"ì´ì§ <literal>index()</literal> í¨ì를 ì ê³µíë¤."
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
#, fuzzy, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr "기본 ë°ì´í°ë² ì´ì¤ì ìí´ ì ê³µëë Scalar SQL í¨ìë¤ì´ ì¬ì©ë ìë ìë¤"
-#. Tag: programlisting
-#: query_hql.xml:783
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:785
#, fuzzy, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
@@ -1610,57 +1008,17 @@
"ë¹ì ì´ ìì§ ì´ ëª¨ë ê²ì ë©ëíì§ ëª»íë¤ë©´, SQL ë´ìì ë¤ì ì§ìê° ê°ë
ì±ì´ "
"ì¼ë§ë ë§ê³ ì ìì§ë¥¼ ìê°í´ë³´ë¼:"
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
msgstr "<emphasis>íí¸</emphasis> : ë¤ìê³¼ ê°ì ì´ë¤ ê²"
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
msgstr "order by ì "
#. Tag: para
-#: query_hql.xml:803
#, fuzzy, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
@@ -1669,16 +1027,7 @@
"ì§ìì ìí´ ë°íë 리ì¤í¸ë ë°íë í´ëì¤ ëë ì»´í¬ëí¸ë¤ì íë¡í¼í°ì ìí´ "
"ìì(ordering)ì§ìì§ ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
@@ -1688,13 +1037,11 @@
"ì ëë ë´ë¦¼ì°¨ì ì ë ¬ì ëíë¸ë¤."
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
msgstr "group by ì "
#. Tag: para
-#: query_hql.xml:818
#, fuzzy, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
@@ -1703,42 +1050,12 @@
"aggregate ê°ë¤ì ë°ííë ì§ìë ë°íë í´ëì¤ë ì»´í¬ëí¸ë¤ì íë¡í¼í°ì ì"
"í´ ê·¸ë£¹ì§ìì§ ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
msgstr "ëí <literal>having</literal> ì ì´ íì©ëë¤."
-#. Tag: programlisting
-#: query_hql.xml:830
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:832
#, fuzzy, no-c-format
msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
@@ -1749,20 +1066,7 @@
"MySQLì ì§ìëì§ ìëë¤) <literal>having</literal> ì ê³¼ <literal>order by</"
"literal> ì ìì íì©ëë¤."
-#. Tag: programlisting
-#: query_hql.xml:838
-#, no-c-format
-msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:840
#, fuzzy, no-c-format
msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
@@ -1778,13 +1082,11 @@
"ë¼. ë¹ì ì ëª
ìì ì¼ë¡ 모ë ì§ê³ëì§ ìë ìì±ë¤ì 리ì¤í¸í´ì¼ íë¤."
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
msgstr "ìë¸ì§ìë¤"
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1797,79 +1099,28 @@
"í´). ì¬ì§ì´ ìë¡ ìê´ë ìë¸ì§ìë¤(ì¸ë¶ ì§ì ë´ìì alias를 참조íë ìë¸ì§ì"
"ë¤)ì´ íì©ëë¤."
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
#, fuzzy, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
"HQL ìë¸ì§ìë¤ì´ select ì ëë where ì ë´ììë§ ì¼ì´ë ì ììì ë
¸í¸íë¼."
#. Tag: para
-#: query_hql.xml:874
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
"ìë¸ì§ìë¤ì ëí <literal>row value constructor</literal> 구문ì íì©í ì "
"ìë¤. ìì¸í ê²ì <xref linkend=\"queryhql-tuple\"/>를 ë³´ë¼."
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
msgstr "HQL ìì ë¤"
#. Tag: para
-#: query_hql.xml:884
#, fuzzy, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
@@ -1884,7 +1135,6 @@
"ì ì§ìë¤ì ì´ê²ë¤ë³´ë¤ í¨ì¬ ê°ë¨íë¤ë ì ì ë
¸í¸íë¼!"
#. Tag: para
-#: query_hql.xml:890
#, fuzzy, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
@@ -1903,32 +1153,7 @@
"<literal>PRICE</literal> í
ì´ë¸ë¤ì ëí ë¤ ê°ì inner ì¡°ì¸ë¤ê³¼ í ê°ì(ìê´"
"ì§ìì§ì§ ìì) subselect를 ê°ê³ ìë¤."
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
@@ -1937,27 +1162,7 @@
"괴물 ê°ì ê²! ì¤ì ë¡ ì¤ ìíìì, ëë ìë¸ì§ìë¤ì ë§¤ì° ì¢ìíì§ ììì, ë"
"ì ì§ìë ì¤ì ë¡ ë¤ìê³¼ ê°ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -1974,29 +1179,7 @@
"literal> í
ì´ë¸ë¤ì ëí ë ê°ì inner ì¡°ì¸ë¤ê³¼ íëì ìê´ê´ê³ ì§ìì§ "
"subselect를 ê°ì§ SQL ì§ìë¡ ë³íëë¤."
-#. Tag: programlisting
-#: query_hql.xml:916
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:918
#, fuzzy, no-c-format
msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
@@ -2005,22 +1188,7 @@
"ë§ì¼ ë´ê° <literal>statusChanges</literal> ì½ë ì
ì setê° ìë listë¡ ë§¤íí"
"ë¤ë©´, ê·¸ ì§ìë ìì±íê¸°ê° í¨ì¬ ë ê°ë¨íì ê²ì´ë¤."
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -2039,21 +1207,7 @@
"ì¸ ê°ì inner ì¡°ì¸ë¤, íëì outer ì¡°ì¸, ê·¸ë¦¬ê³ íëì subselect를 ê°ì§ í ê°"
"ì SQL ì§ìë¡ ë²ìëë¤."
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
@@ -2061,80 +1215,41 @@
"ëªëª ë°ì´í°ë² ì´ì¤ë¤ì ê²½ì°, ì°ë¦¬ë (ìê´ê´ê³ ì§ìì§) subselect를 ìì¨ íìê° "
"ìì ê²ì´ë¤."
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
msgstr "ëë updateì delete"
#. Tag: para
-#: query_hql.xml:947
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
"HQLì ì´ì <literal>update</literal>, <literal>delete</literal> ê·¸ë¦¬ê³ "
"<literal>insert ... select ...</literal> 문ì¥ë¤ì ì§ìíë¤. ìì¸í ê²ì "
"<xref linkend=\"batch-direct\"/>를 ë³´ë¼."
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr "íë¤ & í¸ë¦ë¤"
#. Tag: para
-#: query_hql.xml:957
#, fuzzy, no-c-format
msgid "You can count the number of query results without returning them:"
msgstr ""
"ë¹ì ì ì¤ì ë¡ ì§ì ê²°ê³¼ë¤ì ë°ííì§ ìê³ ì ê·¸ê²ë¤(ì§ì ê²°ê³¼ë¤)ì ê°ì를 ì¹´ì´"
"í¸í ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
"ì½ë ì
ì í¬ê¸°ì ë°ë¼ 결과를 ìì(ordering)ì§ì°ë ¤ë©´, ë¤ì ì§ì를 ì¬ì©íë¼:"
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
@@ -2143,33 +1258,14 @@
"ë§ì¼ ë¹ì ì ë°ì´í°ë² ì´ì¤ê° subselectë¤ì ì§ìí ê²½ì°, ë¹ì ì ë¹ì ì ì§ìì "
"where ì ë´ì selection ì¬ì´ì¦ì ëí ì¡°ê±´ì ìì¹ì§ì¸ ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:974
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:976
#, fuzzy, no-c-format
msgid "If your database does not support subselects, use the following query:"
msgstr ""
"ë§ì¼ ë¹ì ì ë°ì´í°ë² ì´ì¤ê° subselect를 ì§ìíì§ ìì ê²½ì°, ë¤ì ì§ì를 ì¬ì©í"
"ë¼:"
-#. Tag: programlisting
-#: query_hql.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:983
#, fuzzy, no-c-format
msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
@@ -2178,36 +1274,13 @@
"ì´ í´ê²°ì±
ì´ inner ì¡°ì¸ ë문ì 0ê°ì ë©ìì§ë¥¼ ê°ì§ <literal>User</literal>를 "
"ë°íí ì ìì¼ë¯ë¡, ë¤ì íìì´ ëí ì ì©íë¤:"
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
"íëì JavaBeanì íë¡í¼í°ë¤ì ëª
ëª
ë ì§ì íë¼ë¯¸í°ë¤ì ë°ì¸ëë ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
@@ -2216,57 +1289,24 @@
"ì½ë ì
ë¤ì íí°ë¥¼ ê°ì§ <literal>Query</literal> ì¸í°íì´ì¤ë¥¼ ì¬ì©íì¬ ìª¼ë§¤ê¹"
"íë ê²ì´ ê°ë¥íë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
#, fuzzy, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
"ì½ë ì
ììë¤ì ì§ì íí°ë¥¼ ì¬ì©íì¬ ìì(ordering)ì§ìì§ê±°ë 그룹ì§ìì§ ì "
"ë ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
msgstr "ë¹ì ì ì½ë ì
ì ì´ê¸°í íì§ ìê³ ì ê·¸ê²(ì½ë ì
)ì í¬ê¸°ë¥¼ ì°¾ì ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
msgstr "ì»´í¬ëí¸ë¤"
#. Tag: para
-#: query_hql.xml:1019
#, fuzzy, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
@@ -2277,20 +1317,7 @@
"ì¼ë¡ ì¬ì©ë ì ìë¤. ê·¸ê²ë¤ì <literal>select</literal> ì ë´ì ëíë ì ì"
"ë¤."
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
@@ -2299,38 +1326,12 @@
"ì¬ê¸°ì Personì name ìì±ì ì»´í¬ëí¸ì´ë¤. ì»´í¬ëí¸ë¤ì ëí <literal>where</"
"literal> ì ë´ì ì¬ì©ë ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
msgstr "ì»´í¬ëí¸ë¤ì ëí <literal>order by</literal> ì ë´ì ì¬ì©ë ì ìë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
#, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
@@ -2340,13 +1341,11 @@
"\">row value constructors</xref>ì ìë¤."
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
msgstr "Row value constructor 구문"
#. Tag: para
-#: query_hql.xml:1050
#, fuzzy, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
@@ -2361,16 +1360,7 @@
"ëí¸ë¤ê³¼ ì°ê´ëì´ ìë ë¤ì¤-ê° ë¹êµë¤ì ì¼ë°ì ì¼ë¡ ì¸ê¸íê³ ìë¤. name ì»´í¬ë"
"í¸ë¥¼ ì ìíë Person ìí°í°ë¥¼ ê²í íì:"
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, fuzzy, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
@@ -2379,14 +1369,7 @@
"ë¹ë¡ ì½ê° ì¥í©ì¤ë½ì§ë§ ê·¸ê²ì ì í¨í 구문ì´ë¤. ì´ê²ì ì½ê° ë ê°ê²°íê² ë§ë¤"
"ê³ <literal>row value constructor</literal> 구문ì ì¬ì©íë ê²ì´ ì¢ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
@@ -2395,7 +1378,6 @@
"<literal>select</literal>ì ë´ì ì´ê²ì ì§ì íë ê²ì´ ëí ì ì©í ì ìë¤:"
#. Tag: para
-#: query_hql.xml:1072
#, fuzzy, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
@@ -2404,18 +1386,7 @@
"<literal>row value constructor</literal> 구문ì ì¬ì©íë ë ë¤ë¥¸ ê²½ì°ë ë¤ì¤ "
"ê°ë¤ì ëí´ ë¹êµí íìê° ìë ìë¸ ì§ìë¤ì ì¬ì©í ëì´ë¤:"
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, fuzzy, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
@@ -2425,6 +1396,15 @@
"ë§ì¼ ë¹ì ì´ ì´ êµ¬ë¬¸ì ì¬ì©íê³ ì ìí ê²½ì°ì ê³ ë ¤í´ì¼ í í ê°ì§ë ì§ìê° ë©"
"íë°ì´í° ë´ì ìë ì»´í¬ëí¸ ìë¸-ìì±ë¤ì ììì ì¢
ìë ê²ì´ë¼ë ì ì´ë¤."
+#~ msgid "inner join"
+#~ msgstr "inner join"
+
+#~ msgid "left outer join"
+#~ msgstr "left outer join"
+
+#~ msgid "count(*)"
+#~ msgstr "count(*)"
+
#~ msgid ""
#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
msgstr "Native SQL"
#. Tag: para
-#: query_sql.xml:31
#, fuzzy, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
@@ -33,7 +31,6 @@
"ë£í ì´ì ê²½ë¡ë¥¼ ì ê³µíë¤."
#. Tag: para
-#: query_sql.xml:37
#, fuzzy, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
@@ -44,13 +41,11 @@
"ë¤."
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
msgstr "<literal>SQLQuery</literal> ì¬ì©í기"
#. Tag: para
-#: query_sql.xml:43
#, fuzzy, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
@@ -63,28 +58,16 @@
"ë¤. ë¤ìì ì´ API를 ì§ìì ì¬ì©íë ë°©ë²ì ì¤ëª
íë¤."
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
msgstr "ì¤ì¹¼ë¼ ì§ìë¤"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
msgstr "ê°ì¥ 기본ì ì¸ SQL ì§ìë ì¤ì¹¼ë¼ë¤(ê°ë¤)ì 목ë¡ì ì»ë ê²ì´ë¤."
-#. Tag: programlisting
-#: query_sql.xml:54
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:56
#, fuzzy, no-c-format
msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
@@ -96,7 +79,6 @@
"ì ììì íì
ë¤ì ëì¶íëë° ResultSetMetadata를 ì¬ì©í ê²ì´ë¤."
#. Tag: para
-#: query_sql.xml:61
#, fuzzy, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
@@ -107,37 +89,22 @@
"íëë ê²ì ë³´ë¤ ëª
ìì ì´ê²ë í기 ìí´ ì°ë¦¬ë <literal>addScalar()</literal>"
"를 ì¬ì©í ì ìë¤."
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
msgstr "ì´ ì§ìë ë¤ìì ì§ì íë¤:"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
msgstr "SQL ì§ì 문ìì´"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
msgstr "ë°íí 컬ë¼ë¤ê³¼ íì
ë¤"
#. Tag: para
-#: query_sql.xml:79
#, fuzzy, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
@@ -155,26 +122,13 @@
"ì¸ ê°ì 컬ë¼ë¤ ë§ì´ ë°íë ê²ìì ì미íë¤."
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr "ì¤ì¹¼ë¼ë¤ ì¤ ëªëª ëë ì ë¶ì ëí íì
ì 보를 ë¨ê²¨ëë ê²ì´ ê°ë¥íë¤."
-#. Tag: programlisting
-#: query_sql.xml:90
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:92
#, fuzzy, no-c-format
msgid ""
"This is essentially the same query as before, but now "
@@ -186,7 +140,6 @@
"ë¡ NAMEê³¼ BIRTHDATEì íì
ì ê²°ì íëë° ì¬ì©ëë¤."
#. Tag: para
-#: query_sql.xml:96
#, fuzzy, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
@@ -201,13 +154,11 @@
"ìí¤ë ê²ì´ ê°ë¥íë¤."
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
msgstr "Entity ì§ìë¤"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -219,24 +170,12 @@
"본ì ì¼ë¡ ë°ííë ê²ì ëí ì ë¶ìë¤. ë¤ìì <literal>addEntity()</literal>"
"를 íµí´ native sql ì§ìë¡ë¶í° ìí°í° ê°ì²´ë¤ì ì»ë ë°©ë²ì ë³´ì¬ì¤ë¤."
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
msgstr "ê·¸ ì§ìì ìí´ ë°íëë ìí°í°"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
@@ -247,7 +186,6 @@
"ëë¤ ê°ê°ì ììê° íëì Cat ìí°í°ì¸ íëì List를 ë°íí ê²ì´ë¤."
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -264,29 +202,17 @@
"ì <literal>Dog</literal>ì ëí <literal>many-to-one</literal> ìì ììì²ë¼ "
"ëª
ìì ì¸ ê²ì ë ì í¸íë¤:"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
msgstr "ì´ê²ì cat.getDog()ì´ ê³ ì íê² ê¸°ë¥íë ê²ì íì©íë¤."
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
msgstr "ì°ê´ë¤ê³¼ ì½ë ì
ë¤ì ì²ë¦¬í기"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -299,19 +225,7 @@
"<literal>addJoin()</literal> ë©ìë를 íµí´ íí´ì§ëë°, ê·¸ê²ì ì°ê´ì´ë ì½ë "
"ì
ë´ìì ì¡°ì¸ìí¤ë ê²ì ë¹ì ìê² íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: query_sql.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:152
#, fuzzy, no-c-format
msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
@@ -328,19 +242,7 @@
"<literal>Cat</literal>ì´ <literal>Dog</literal>ì ëí´ one-to-many를 ê°ì§ ê²½"
"ì°, ì½ë ì
ë¤ì ëí´ ëì¼í eager joiningì ííë ê²ì´ ê°ë¥íë¤."
-#. Tag: programlisting
-#: query_sql.xml:160
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:162
#, fuzzy, no-c-format
msgid ""
"At this stage you are reaching the limits of what is possible with native "
@@ -354,13 +256,11 @@
"ëë ëí´í¸ alias/column ì´ë¦ë¤ì´ ì¶©ë¶íì§ ìì ë ë°ìí기 ììíë¤."
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
msgstr "ì¬ë¬ ê°ì ìí°í°ë¤ì ë°íí기"
#. Tag: para
-#: query_sql.xml:172
#, fuzzy, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
@@ -374,26 +274,13 @@
"ë¤."
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr "ì»¬ë¼ alias 주ì
ì ë¤ì ì§ì(ìë§ ì¤í¨í ê²ì´ë¤)ìì íìíë¤:"
-#. Tag: programlisting
-#: query_sql.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:184
#, fuzzy, no-c-format
msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
@@ -410,24 +297,11 @@
"\" ë±ì íìì¼ ê²ì´ë¤."
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
msgstr "ë¤ì íìì ì»¬ë¼ ì´ë¦ ì¤ë³µ ì·¨ì½ì ì ê°ì§ ìëë¤:"
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
@@ -436,13 +310,11 @@
"ì»¬ë¼ aliasë¤ì 주ì
í기 ìí Hibernateì© placeholderë¤ì ê°ì§ SQL ì§ì 문ìì´"
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
msgstr "ê·¸ ì§ìì ìí´ ë°íëë ìí°í°ë¤"
#. Tag: para
-#: query_sql.xml:211
#, fuzzy, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
@@ -461,29 +333,12 @@
"í° ë´ì ì ì¸ë ê²ì¼ë¡ì Catë¤ê³¼ ê·¸ê²ë¤ì motherë¤ì ê²ìíë¤. ì°ë¦¬ë ì°ë¦¬ê° "
"ì¢ë¤ë©´ ì¬ì§ì´ where ì ë´ì íë¡í¼í° alias를 ì¬ì©í ìë ììì 주ì§íë¼."
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
msgstr "alias 참조ì íë¡í¼í° 참조"
#. Tag: para
-#: query_sql.xml:225
#, fuzzy, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
@@ -497,7 +352,6 @@
"ë° ì¬ì©ë ëªëª í¹ë³í aliasë¤ì´ ì¡´ì¬íë¤."
#. Tag: para
-#: query_sql.xml:230
#, fuzzy, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
@@ -510,211 +364,178 @@
"ê³¼ ìë§ ë¤ë¥¸ ì´ë¦ì ê°ì§ ê²ì´ë¤."
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
msgstr "alias 주ì
ì´ë¦ë¤"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
msgstr "ì¤ëª
"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
msgstr "구문"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
msgstr "ìì "
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
msgstr "ê°ë¨í íë¡í¼í°"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
msgstr "{[aliasname].[propertyname]"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
msgstr "A_NAME as {item.name}"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
msgstr "composite íë¡í¼í°"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
msgstr "{[aliasname].[componentname].[propertyname]}"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
msgstr "ìí°í°ì íë³ì(Discriminator)"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
msgstr "{[aliasname].class}"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
msgstr "DISC as {item.class}"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
msgstr "ìí°í°ì 모ë íë¡í¼í°ë¤"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
msgstr "{[aliasname].*}"
-#. Tag: literal
-#: query_sql.xml:286
-#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>SQLQuery</literal> ì¬ì©í기"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
msgstr "ì½ë ì
í¤"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
msgstr "{[aliasname].key}"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
msgstr "ORGID as {coll.key}"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
msgstr "ì½ë ì
ì id"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
msgstr "{[aliasname].id}"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
msgstr "EMPID as {coll.id}"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
msgstr "ì½ë ì
ì ìì"
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
msgstr "{[aliasname].element}"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>XID as {coll.element}</literal>"
msgstr "XID as {coll.element}"
#. Tag: entry
-#: query_sql.xml:314
#, fuzzy, no-c-format
msgid "property of the element in the collection"
msgstr "ì½ë ì
ë´ì ìë ììì íë¡í¼í°"
-#. Tag: literal
-#: query_sql.xml:316
-#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
msgstr "{[aliasname].element.[propertyname]}"
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
msgstr "NAME as {coll.element.name}"
#. Tag: entry
-#: query_sql.xml:322
#, no-c-format
msgid "All properties of the element in the collection"
msgstr "ì½ë ì
ë´ì ìë ììì 모ë íë¡í¼í°ë¤"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
msgstr "{[aliasname].element.*}"
-#. Tag: literal
-#: query_sql.xml:326
-#, no-c-format
-msgid "{coll.element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{coll.element.*}</literal>"
msgstr "{coll.element.*}"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
msgstr "ì½ë ì
ì 모ë íë¡í¼í°ë¤"
-#. Tag: literal
-#: query_sql.xml:334
-#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>SQLQuery</literal> ì¬ì©í기"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
msgstr "non-managed ìí°í°ë¤ì ë°íí기"
#. Tag: para
-#: query_sql.xml:345
#, fuzzy, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
@@ -723,22 +544,12 @@
"native sql ì§ìì ResultTransformer를 ì ì©íë ê²ì´ ê°ë¥íë¤. ì를 ë¤ì´ non-"
"managed ìí°í°ë¤ì ë°íí기 ìí´ ResultTransformer를 íì©íë ê²."
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
msgstr "ê²°ê³¼ ë³íì(transformer)"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
@@ -750,13 +561,11 @@
"literal>ì 리ì¤í¸ë¥¼ ë°íí ê²ì´ë¤."
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
msgstr "ìì ì²ë¦¬í기"
#. Tag: para
-#: query_sql.xml:370
#, fuzzy, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
@@ -767,39 +576,22 @@
"ì 모ë íë¡í¼í°ë¤ì í¬í¨í´ì¼ íê³ ê·¸ 모ë ê²ì´ ìë¸í´ëì¤í ëì´ì¼ íë¤."
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
msgstr "íë¼ë¯¸í°ë¤"
#. Tag: para
-#: query_sql.xml:378
#, fuzzy, no-c-format
msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
"Native sql ì§ìë¤ì ìì¹ íë¼ë¯¸í°ë¤ ë¿ë§ ìëë¼ ëª
ëª
ë íë¼ë¯¸í°ë¤ì ì§ìíë¤:"
-#. Tag: programlisting
-#: query_sql.xml:381
-#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
msgstr "ëª
ëª
ë SQL ì§ìë¤"
#. Tag: para
-#: query_sql.xml:391
#, fuzzy, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
@@ -810,32 +602,7 @@
"ì ííê² í¸ì¶ë ìë ìë¤. ì´ ê²½ì°ì, ì°ë¦¬ë <literal>addEntity()</literal> "
"í¸ì¶ì íìë¡ íì§ <emphasis>ìëë¤</emphasis>."
-#. Tag: programlisting
-#: query_sql.xml:396
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:400
#, fuzzy, no-c-format
msgid ""
"The <literal><return-join></literal> element is use to join "
@@ -846,29 +613,7 @@
"collection></literal> ììë ì°ê´ë¤ì ì¡°ì¸ìí¤ê³ ì½ë ì
ë¤ì ê°ê° ì´ê¸°í ì"
"í¤ë ì§ìë¤ì ì ìíëë° ì¬ì©ëë¤."
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
@@ -879,21 +624,7 @@
"scalar></literal> ìì를 ì¬ì©íì¬ ì»¬ë¼ aliasì Hibernate íì
ì ì ì¸í´ì¼ "
"íë¤:"
-#. Tag: programlisting
-#: query_sql.xml:410
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:412
#, fuzzy, no-c-format
msgid ""
"You can externalize the resultset mapping information in a <literal><"
@@ -906,32 +637,7 @@
"ì©í기 ìí´ <literal><resultset></literal> ìì ìì ê²°ê³¼ì
매í ì ë³´ë¤"
"ì 구체í ìí¬ ì ìë¤."
-#. Tag: programlisting
-#: query_sql.xml:417
-#, no-c-format
-msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:419
#, fuzzy, no-c-format
msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
@@ -940,26 +646,12 @@
"ë¤ë¥¸ë°©ë²ì¼ë¡ ë¹ì ì ë¹ì ì hbm íì¼ë¤ ë´ì ì§ì ìë° ì½ëë¡ ë ê²°ê³¼ì
매í ì "
"보를 ì¬ì©í ì ìë¤."
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
msgstr "ëª
ìì ì¼ë¡ column/alias ì´ë¦ë¤ì ì§ì íëë° return-property ì¬ì©í기"
#. Tag: para
-#: query_sql.xml:428
#, fuzzy, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
@@ -971,26 +663,7 @@
"literal>ë¡ì ë¹ì ì ì¬ì©í ì»¬ë¼ aliasë¤ì´ 무ìì¸ì§ë¥¼ Hibernateìê² ëª
ìì ì¼"
"ë¡ ìë ¤ì¤ ì ìë¤."
-#. Tag: programlisting
-#: query_sql.xml:433
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:435
#, fuzzy, no-c-format
msgid ""
"<literal><return-property></literal> also works with multiple columns. "
@@ -1001,29 +674,7 @@
"ë¤. ì´ê²ì ë¤ì¤-ì»¬ë¼ íë¡í¼í°ë¤ì ëí fine grained ì ì´ë¥¼ íì©í ì ìë "
"<literal>{}</literal>-구문ì ê°ì§ ì ì½ì í´ê²°í´ì¤ë¤."
-#. Tag: programlisting
-#: query_sql.xml:440
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:442
#, fuzzy, no-c-format
msgid ""
"In this example <literal><return-property></literal> was used in "
@@ -1036,7 +687,6 @@
"ì©í´ì¤ì¼ë¡ì¨."
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
@@ -1047,13 +697,11 @@
"íë¤."
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
msgstr "ì§ì를 ìí ë´ì¥ íë¡ìì ì¬ì©í기"
#. Tag: para
-#: query_sql.xml:455
#, fuzzy, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
@@ -1067,55 +715,14 @@
"ëìíë ê²ì´ ê°ë¥íëë¡ ì²« ë²ì§¸ out-íë¼ë¯¸í°ë¡ì í ê°ì ê²°ê³¼ì
ì ë°íí´ì¼ "
"íë¤. Oracle9 ì´ìì ë²ì ìì ê·¸ë° ë´ì¥ íë¡ìì ì ëí ìì ë ë¤ìê³¼ ê°ë¤:"
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
msgstr ""
"Hibernateìì ì´ ì§ì를 ì¬ì©í기 ìí´ ë¹ì ì íëì ëª
ëª
ë ì§ì(a named "
"query)를 íµí´ ê·¸ê²ì 매íí íìê° ìë¤."
-#. Tag: programlisting
-#: query_sql.xml:466
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:468
#, fuzzy, no-c-format
msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
@@ -1127,13 +734,11 @@
"literal>ì ì§ìëì§ ìëë¤."
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
msgstr "ë´ì¥ íë¡ìì ë¤ì ì¬ì©íë ê·ì¹ë¤/ì ì½ë¤"
#. Tag: para
-#: query_sql.xml:475
#, fuzzy, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
@@ -1151,7 +756,6 @@
"ì ê°ê³ ì기 ë문ì, ê·ì¹ë¤ì ê°ê°ì ë°ì´í°ë² ì´ì¤ì ë°ë¼ ì°¨ì´ê° ëë¤."
#. Tag: para
-#: query_sql.xml:482
#, fuzzy, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
@@ -1161,7 +765,6 @@
"ì ìª½ë§¤ê¹ ë ì ìë¤."
#. Tag: para
-#: query_sql.xml:485
#, fuzzy, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
@@ -1173,13 +776,11 @@
"parameters>}</literal>. Native í¸ì¶ 구문ì ì§ìëì§ ìëë¤."
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
msgstr "Oracleì ê²½ì° ë¤ì ê·ì¹ë¤ì´ ì ì©ëë¤:"
#. Tag: para
-#: query_sql.xml:494
#, fuzzy, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
@@ -1195,13 +796,11 @@
"ëë°, Oracle ë³´ê³ ì를 ë³´ë¼."
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
msgstr "Sybase ëë MS SQL serverì ê²½ì° ë¤ì ê·ì¹ë¤ì´ ì ì©ëë¤:"
#. Tag: para
-#: query_sql.xml:507
#, fuzzy, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
@@ -1215,7 +814,6 @@
"ì´ë¤. ê·¸ ë°ì 모ë ê²ì í기ë ê²ì´ë¤."
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
@@ -1226,22 +824,28 @@
"ì´ ìëë¤."
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
msgstr "create, update ê·¸ë¦¬ê³ delete를 ìí ë§ì¶¤í SQL"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
+msgstr ""
"Hibernate3ë create, update, delete ì¤í¼ë ì´ì
ë¤ì ìí ë§ì¶¤í 문ì¥ë¤ì ì¬ì©"
"í ì ìë¤. Hibernateìì í´ëì¤ì ì½ë ì
ìììë¤ì êµ¬ì± ìì ìì±ë 문ìì´"
"ë¤ì ì§í©(insertsql, deletesql, updatesql ë±)ì ì´ë¯¸ í¬í¨íê³ ìë¤. "
@@ -1249,24 +853,7 @@
"literal>, <literal><sql-update></literal> 매í íê·¸ë¤ì ì´ë¤ 문ìì´ë¤"
"ì ì¤ë²ë¼ì´ë ìí¨ë¤:"
-#. Tag: programlisting
-#: query_sql.xml:535
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:537
#, fuzzy, no-c-format
msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
@@ -1278,7 +865,6 @@
"ì©í ê²½ì° ì´ê²ì ë¬¼ë¡ ë¹ì ì 매íì ì´ìì±ì ê°ììí¬ ê²ì´ë¤."
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
@@ -1286,24 +872,7 @@
msgstr ""
"ë§ì¼ <literal>callable</literal> ìì±ì´ ì¤ì ëë©´ ë´ì¥ íë¡ìì ë¤ì´ ì§ìëë¤:"
-#. Tag: programlisting
-#: query_sql.xml:544
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:546
#, fuzzy, no-c-format
msgid ""
"The order of the positional parameters is vital, as they must be in the same "
@@ -1313,7 +882,6 @@
"ë¡, ìì¹ íë¼ë¯¸í°ë¤ì ììë íì¬ ì ëì ì¼ë¡ ì¤ìíë¤."
#. Tag: para
-#: query_sql.xml:549
#, fuzzy, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
@@ -1331,7 +899,6 @@
"ì¼ëì ëë¼.)"
#. Tag: para
-#: query_sql.xml:556
#, fuzzy, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
@@ -1345,54 +912,22 @@
"CUD ì¤í¼ë ì´ì
ë¤ì ëí ì«ì ì¶ë ¥ íë¼ë¯¸í°ë¡ì 첫 ë²ì§¸ ë¬¸ì¥ íë¼ë¯¸í°ë¥¼ ë±ë¡ì"
"í¨ë¤:"
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
msgstr "ë¡ë©ì ìí ë§ì¶¤í SQL"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr ""
-"ë¹ì ì ëí ìí°í° ë¡ë©ì ìí ë¹ì ìì ì SQL (ëë HQL)ì ì ì¸í ìë ìë¤:"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
#. Tag: para
-#: query_sql.xml:573
#, fuzzy, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
@@ -1401,57 +936,17 @@
"ì´ê²ì ìì ë
¼ìíë¯ì´ ë¨ì§ ëª
ëª
ë ì§ì ì ì¸ì´ë¤. ë¹ì ì class 매í ìì ì´ "
"ëª
ëª
ë ì§ì를 참조í ì ìë¤:"
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
msgstr "ì´ê²ì ì¬ì§ì´ ë´ì¥ íë¡ìì ë¤ì ëìíë¤."
#. Tag: para
-#: query_sql.xml:580
#, fuzzy, no-c-format
msgid "You can even define a query for collection loading:"
msgstr "ë¹ì ì ì½ë ì
ë¡ë©ì ìí í ê°ì ì§ì를 ì ìí ìë ìë¤:"
-#. Tag: programlisting
-#: query_sql.xml:582
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:586
#, fuzzy, no-c-format
msgid ""
"You can also define an entity loader that loads a collection by join "
@@ -1460,17 +955,15 @@
"ë¹ì ì ì¬ì§ì´ ì¡°ì¸ íì¹ì ìí´ íëì ì½ë ì
ì ë¡ëìí¤ë íëì ìí°í°ë¥¼ ì "
"ìí ì ìë¤:"
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
+#~ msgid "{item.*}"
+#~ msgstr "{item.*}"
+
+#~ msgid "{coll.*}"
+#~ msgstr "{coll.*}"
+
+#, fuzzy
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr ""
+#~ "ë¹ì ì ëí ìí°í° ë¡ë©ì ìí ë¹ì ìì ì SQL (ëë HQL)ì ì ì¸í ìë ì"
+#~ "ë¤:"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr "ê°ì²´ë¤ë¡ ìì
í기"
#. Tag: para
-#: session_api.xml:31
#, fuzzy, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
@@ -34,7 +32,6 @@
"ì¼ì´ì
ë¤ìì ììì ê´í ë§¤ì° ê³ ì í ê°ì²´-ì§í¥ì ê´ì ì´ë¤."
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -49,19 +46,16 @@
"리ì¼ì´ì
ê°ë°ìì ì ì¼íê² ê´ë ¨ëë¤."
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
msgstr "Hibernate ê°ì²´ ìíë¤"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
msgstr "Hibernate ë¤ì ê°ì²´ ìíë¤ì ì ìíê³ ì§ìíë¤:"
#. Tag: para
-#: session_api.xml:56
#, fuzzy, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
@@ -84,7 +78,6 @@
"<literal>Session</literal>ì ì¬ì©íë¼."
#. Tag: para
-#: session_api.xml:68
#, fuzzy, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
@@ -105,7 +98,6 @@
"ë <literal>DELETE</literal> 문ì¥ë¤ì ììì
ì¼ë¡ ì¤ííì§ ìëë¤."
#. Tag: para
-#: session_api.xml:79
#, fuzzy, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
@@ -128,7 +120,6 @@
"emphasis>, ì¦ ì¬ì©ìì ê´ì ì ìì
ë¨ìë¼ê³ ë¶ë¥¸ë¤."
#. Tag: para
-#: session_api.xml:93
#, fuzzy, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
@@ -138,13 +129,11 @@
"Hibernate ë©ìëë¤)ì ìì¸íê² ë
¼ìí ê²ì´ë¤."
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "ê°ì²´ë¤ì ììí ìí¤ê¸°"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
@@ -155,19 +144,7 @@
"<emphasis>transient</emphasis>ë¡ ê°ì£¼ëë¤. ì°ë¦¬ë ê·¸ê²ì ì¸ì
ê³¼ ì°ê´ì§ì´ì "
"transient ì¸ì¤í´ì¤ë¥¼ <emphasis>ììí</emphasis> ìí¬ ì ìë¤:"
-#. Tag: programlisting
-#: session_api.xml:110
-#, no-c-format
-msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:112
#, fuzzy, no-c-format
msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
@@ -188,7 +165,6 @@
"()</literal>를 ì¬ì©í ìë ìë¤."
#. Tag: para
-#: session_api.xml:124
#, fuzzy, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
@@ -208,7 +184,6 @@
"extended Session/persistence context."
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -224,7 +199,6 @@
"running conversation with an extended Session/persistence context."
#. Tag: para
-#: session_api.xml:145
#, fuzzy, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
@@ -233,21 +207,7 @@
"ë¤ë¥¸ ë°©ë²ì¼ë¡, ë¹ì ì <literal>save()</literal>ì ì¤ë²ë¡ëë ë²ì ì ì¬ì©íì¬ "
"ìë³ì를 í ë¹í ì ìë¤."
-#. Tag: programlisting
-#: session_api.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:152
#, fuzzy, no-c-format
msgid ""
"If the object you make persistent has associated objects (e.g. the "
@@ -267,7 +227,6 @@
"<literal>NOT NULL</literal> 컨ì¤í¸ë ì¸í¸ë¥¼ ìë°°í ìë ìë¤."
#. Tag: para
-#: session_api.xml:162
#, fuzzy, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
@@ -284,13 +243,11 @@
"ë
¼ìëë¤."
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr "ê°ì²´ë¥¼ ë¡ëìí¤ê¸°"
#. Tag: para
-#: session_api.xml:175
#, fuzzy, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
@@ -304,40 +261,12 @@
"체를 ì·¨íê³ ê·¸ ìí를 ìì(persistent) ìíë¡ ê·¸ í´ëì¤ì ìë¡ì´ ì´ê¸°í ë ì¸"
"ì¤í´ì¤ ìì¼ë¡ ë¡ëìí¬ ê²ì´ë¤."
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
msgstr "ë¤ë¥¸ ë°©ë²ì¼ë¡ ë¹ì ì 주ì´ì§ ì¸ì¤í´ì¤ ìì¼ë¡ ìí를 ë¡ëìí¬ ì ìë¤:"
-#. Tag: programlisting
-#: session_api.xml:190
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:192
#, fuzzy, no-c-format
msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
@@ -360,7 +289,6 @@
"íì©í´ì¤ë¤."
#. Tag: para
-#: session_api.xml:203
#, fuzzy, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
@@ -372,20 +300,7 @@
"literal> ë©ìë)ë ë°ì´í°ë² ì´ì¤ì ì¦ì ì ìíê³ ë§ì¼ ì¼ì¹íë íì´ ìì ê²½ì° "
"nullì ë°ííë¤."
-#. Tag: programlisting
-#: session_api.xml:209
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:211
#, fuzzy, no-c-format
msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
@@ -396,14 +311,7 @@
"FOR UPDATE</literal>를 ì¬ì©íì¬ íëì ê°ì²´ë¥¼ ë¡ëìí¬ ìë ìë¤. ì¶ê° ì ë³´"
"ë API 문ì를 ë³´ë¼."
-#. Tag: programlisting
-#: session_api.xml:216
-#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:218
#, fuzzy, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
@@ -417,7 +325,6 @@
"ë¼."
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
@@ -428,23 +335,13 @@
"ê·¸ê²ì ì½ë ì
ë¤ì ë¤ì ë¡ëìí¤ë ê²ì´ ê°ë¥íë¤. ë°ì´í°ë² ì´ì¤ í¸ë¦¬ê±°ë¤ì´ ê·¸ "
"ê°ì²´ì íë¡í¼í°ë¤ ì¤ ì´ë¤ ê²ì ì´ê¸°í ìí¤ëë° ì¬ì©ë ë ì´ê²ì´ ì ì©íë¤."
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
"ì¤ìí ì§ë¬¸ì´ ëê° ì´ ì§ì ìì ëíëë¤: Hibernateë ë°ì´í°ë² ì´ë¡ë¶í° ê·¸ê²ì "
"ì¼ë§ë ë§ì´ ë¡ëìí¤ê³ ê·¸ë¦¬ê³ ì¼ë§ë ë§ì SQL <literal>SELECT</literal>ë¤ì´ "
@@ -452,13 +349,11 @@
"linkend=\"performance-fetching\"/>ì ì¤ëª
ëì´ ìë¤."
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr "ì§ìí기"
#. Tag: para
-#: session_api.xml:245
#, fuzzy, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
@@ -476,13 +371,11 @@
"native SQL ìì ë¹ì ì ì§ì를 ííí ìë ìë¤."
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr "ì§ìë¤ì ì¤íí기"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -497,38 +390,7 @@
"<literal>Session</literal>ì ì¬ì©íì¬ íëì <literal>Query</literal>를 ì»ë"
"ë¤:"
-#. Tag: programlisting
-#: session_api.xml:264
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:266
#, fuzzy, no-c-format
msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
@@ -550,13 +412,11 @@
"ë¤ ì¤ë³µë¤ì ê°ë¨íê² íí°ë§í ì ìë¤."
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
msgstr "ê²°ê³¼ë¤ì ë°ë³µí기"
#. Tag: para
-#: session_api.xml:280
#, fuzzy, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
@@ -579,33 +439,12 @@
"ì¤í´ì¤ë¤ì ì´ê¸°í ìí¤ë ì¶ê°ì ì¸ selectë¤ì ëí´ <emphasis>n</emphasis> ë²"
"ì ì ìì íìë¡ í ì ìë¤."
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr "ííë¤ì ë°ííë ì§ìë¤"
#. Tag: para
-#: session_api.xml:298
#, fuzzy, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
@@ -614,32 +453,12 @@
"Hibernate ì§ìë¤ì ëëë¡ ê°ì²´ë¤ì ííë¤ì ë°ííê³ , ê·¸ ê²½ì°ì ê°ê°ì íí"
"ì ë°°ì´ë¡ì ë°íëë¤:"
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr "ì¤ì¹¼ë¼ ê²°ê³¼ë¤"
#. Tag: para
-#: session_api.xml:310
#, fuzzy, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
@@ -651,34 +470,12 @@
"í¼í°ë¤ì´ë aggregateë¤ì \"ì¤ì¹¼ë¼\" ê²°ê³¼ë¤(ê·¸ë¦¬ê³ ìì ìíì ìë ìí°í°ë¤"
"ì´ ìë ê²ì¼)ë¡ ê°ì£¼ëë¤."
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
msgstr "ë°ì¸ë íë¼ë¯¸í°ë¤"
#. Tag: para
-#: session_api.xml:323
#, fuzzy, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
@@ -694,67 +491,27 @@
"ë¤. ëª
ëª
ë íë¼ë¯¸í°ë¤ì ì¥ì ë¤ì ë¤ìê³¼ ê°ë¤:"
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
msgstr "ëª
ëª
ë íë¼ë¯¸í°ë¤ì ê·¸ê²ë¤ì´ ì§ì 문ìì´ ë´ì ë°ìíë ììì ê´ê³ìë¤"
#. Tag: para
-#: session_api.xml:339
#, fuzzy, no-c-format
msgid "they can occur multiple times in the same query"
msgstr "ê·¸ê²ë¤ì ëì¼í ì§ì ë´ìì ì¬ë¬ ë² ë°ìí ì ìë¤"
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr "ê·¸ê²ì ì기-ì¤ëª
ì ì´ë¤"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
msgstr "쪽매ê¹"
#. Tag: para
-#: session_api.xml:361
#, fuzzy, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
@@ -765,18 +522,7 @@
"ëë ë¹ì ì´ ê²ìíê³ ì ìíë 첫 ë²ì§¸ í)ì ì§ì í íìê° ìë¤ë©´ ë¹ì ì "
"<literal>Query</literal> ì¸í°íì´ì¤ì ë©ìëë¤ì ì¬ì©í´ì¼ íë¤:"
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
@@ -786,13 +532,11 @@
"ìë¤."
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
msgstr "ì¤í¬ë¡¤ ê°ë¥í iteration"
#. Tag: para
-#: session_api.xml:379
#, fuzzy, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
@@ -805,38 +549,7 @@
"literal> ê°ì²´ë¥¼ ì»ëë° ì¬ì©ë ì ìê³ , ê·¸ê²ì ì§ì ê²°ê³¼ë¤ì ëí ì ì°í ë¤ë¹"
"ê²ì´ì
ì íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: session_api.xml:386
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:388
#, fuzzy, no-c-format
msgid ""
"Note that an open database connection and cursor is required for this "
@@ -848,13 +561,11 @@
"<literal>setFirstResult()</literal>를 ì¬ì©íë¼."
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
msgstr "ëª
ëª
ë ì§ìë¤ì 구체í ìí¤ê¸°"
#. Tag: para
-#: session_api.xml:399
#, fuzzy, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
@@ -865,35 +576,12 @@
"ê° ë§í¬ì
ì¼ë¡ì í´ìë ì ìë 문ìë¤ì í¬í¨í ê²½ì°ì <literal>CDATA</"
"literal> ì¹ì
ì ì¬ì©íë ê²ì 기ìµíë¼))"
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
msgstr "íë¼ë¯¸í° ë°ì¸ë©ê³¼ ì¤íì íë¡ê·¸ë¨ ìì¼ë¡ íí´ì§ë¤:"
-#. Tag: programlisting
-#: session_api.xml:411
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:413
#, fuzzy, no-c-format
msgid ""
"The actual program code is independent of the query language that is used. "
@@ -905,7 +593,6 @@
"ë¤ì ìì¹ì§ìì¼ë¡ì¨ 기존 ì§ìë¤ì Hibernateë¡ ì´ì ìí¬ ìë ììì ë
¸í¸íë¼."
#. Tag: para
-#: session_api.xml:419
#, fuzzy, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
@@ -921,13 +608,11 @@
"ByNameAndMaximumWeight</literal>."
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
msgstr "ì½ë ì
ë¤ì íí°ë§ í기"
#. Tag: para
-#: session_api.xml:433
#, fuzzy, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
@@ -938,20 +623,7 @@
"ìì í¹ë³í íì
ì´ë¤. ì§ì 문ìì´ì íì¬ì ì½ë ì
ìì를 ì미íë "
"<literal>this</literal>를 참조í ì ìë¤."
-#. Tag: programlisting
-#: session_api.xml:439
-#, no-c-format
-msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:441
#, fuzzy, no-c-format
msgid ""
"The returned collection is considered a bag that is a copy of the given "
@@ -963,7 +635,6 @@
"ì´ì§ë§, ììëë íìì ì¼ì¹ëë¤)."
#. Tag: para
-#: session_api.xml:447
#, fuzzy, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
@@ -974,18 +645,7 @@
"ì íí°ë¤ì´ í ê°ì from ì ì ê°ì§ ì ììì§ë¼ë). íí°ë¤ì ì½ë ì
ììë¤ ì"
"ì²´ë¤ì ë°ííë ê²ì¼ë¡ íì ëì§ ìëë¤."
-#. Tag: programlisting
-#: session_api.xml:452
-#, no-c-format
-msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:454
#, fuzzy, no-c-format
msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
@@ -994,24 +654,12 @@
"ì¬ì§ì´ íëì 공백ì íí° ì§ìë ì를 ë¤ì´ ê±°ëí ì½ë ì
ë´ì ìë ììë¤ì "
"ë¶ë¶ì§í©ë¤ì ë¡ëìí¤ëë° ì ì©íë¤:"
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
msgstr "Criteria ì§ìë¤"
#. Tag: para
-#: session_api.xml:466
#, fuzzy, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
@@ -1023,35 +671,22 @@
"í¥ API를 ì¬ì©íì¬ ëì ì¼ë¡ ì§ìë¤ì ë¹ëìí¤ë ê²ì ì í¸íë¤. Hibernateë ì´"
"ë¤ ê²½ì°ë¤ì ìí ì§ê´ì ì¸ <literal>Criteria</literal> query API를 ì ê³µíë¤:"
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
"<literal>Criteria</literal>ì ì°ê´ë <literal>Example</literal> API ë <xref "
"linkend=\"querycriteria\"/>ìì ìì¸íê² ë
¼ìëë¤."
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
msgstr "native SQLìì ì§ìë¤"
#. Tag: para
-#: session_api.xml:484
#, fuzzy, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
@@ -1067,49 +702,23 @@
"íë¼. ë§ì¼ ë¹ì ì´ Hibernate API를 ì¬ì©íê³ ì ì íí ê²½ì°ì , ë¹ì ì SQL alias"
"ë¤ì ì¤ê´í¸ë¤ ìì í¬í¨ìì¼ì¼ íë¤:"
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
"SQL ì§ìë¤ì Hibernate ì§ìë¤ì²ë¼ ëª
ëª
ë íë¼ë¯¸í°ë¤ê³¼ ìì¹ íë¼ë¯¸í°ë¤ì í¬í¨"
"í ìë ìë¤. SQL ì§ìë¤ì ëí ì¶ê° ì ë³´ë <xref linkend=\"querysql\"/>ìì "
"ì°¾ì ì ìë¤."
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
msgstr "ìì ê°ì²´ë¤ì ë³ê²½í기"
#. Tag: para
-#: session_api.xml:509
#, fuzzy, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
@@ -1132,18 +741,7 @@
"<literal>Session</literal>ì´ ì´ë ¤ ìë ëì, ê·¸ê²ì <literal>load()</literal>"
"ìí¤ê³ ëì, ê·¸ê²ì ì§ì ì²ë¦¬íë ê²ì´ë¤:"
-#. Tag: programlisting
-#: session_api.xml:520
-#, no-c-format
-msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:522
#, fuzzy, no-c-format
msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
@@ -1158,7 +756,6 @@
"ì ê³µíë¤."
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1170,7 +767,7 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
"Hibernateë <placeholder-1/> ë¬¸ì¥ ëë <placeholder-2/> 문ì¥ì ì§ì ì ì¸ ì¤í"
"ì ìí ê·¸ê² ìì ì API를 ì ê³µíì§ ììì ë
¸í¸íë¼. Hibernateë íëì "
@@ -1183,13 +780,11 @@
"ì´ì
í¸ë¦ë¤ì ëí´ìë <xref linkend=\"batch\"/>ì ë³´ë¼."
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
msgstr "detached ê°ì²´ë¤ì ë³ê²½ìí¤ê¸°"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1205,7 +800,6 @@
"í°ë¥¼ ì¬ì©íë¤."
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
@@ -1216,25 +810,7 @@
"merge()</literal> ë©ìë를 ì¬ì©íì¬ detached ì¸ì¤í´ì¤ë¤ì ì¬ì²¨ë¶ë¥¼ ì ê³µí¨ì¼ë¡"
"ì¨ ì´ ëª¨íì ì§ìíë¤:"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
@@ -1246,7 +822,6 @@
"ì´ ê·¸ê²ì ë¤ì ì¬ì²¨ë¶íë ¤ê³ ìëí ë, ìì¸ìí©ì´ ëì ¸ì¡ì ê²ì´ë¤."
#. Tag: para
-#: session_api.xml:569
#, fuzzy, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
@@ -1266,14 +841,13 @@
"첫 ë²ì§¸ ë©ìëì´ë¤."
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
"ì´í리ì¼ì´ì
ì ë§ì¼ ê·¸ê²ì´ detached ì¸ì¤í´ì¤ë¤ì ìíê° ëí ì
ë°ì´í¸ ëë ê²"
"ì ìí ê²½ì°ì<emphasis>ë§</emphasis> 주ì´ì§ detached ì¸ì¤í´ì¤ë¡ë¶í° ëë¬ ê°"
@@ -1282,7 +856,6 @@
"íì¬ ìëí ë ì ìê³ , <xref linkend=\"objectstate-transitive\"/>를 ë³´ë¼."
#. Tag: para
-#: session_api.xml:585
#, fuzzy, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
@@ -1293,20 +866,7 @@
"ì ì°ê´ìí¤ëê²ì ì´í리ì¼ì´ì
ìê² íì©í´ì¤ë¤. íì§ë§ detached ì¸ì¤í´ì¤ë ë³"
"ê²½ëì§ ììì¼ íë¤!"
-#. Tag: programlisting
-#: session_api.xml:590
-#, no-c-format
-msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:592
#, fuzzy, no-c-format
msgid ""
"Note that <literal>lock()</literal> can be used with various "
@@ -1319,23 +879,20 @@
"첨ë¶ë <literal>lock()</literal>ì ëí ì ì¼í ì°ììë ìëë¤."
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
"긴 ìì
ë¨ìì ëí ë¤ë¥¸ 모íë¤ì <xref linkend=\"transactions-optimistic\"/>"
"ìì ë
¼ìëë¤."
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
msgstr "ìëì ì¸ ìí ê²ì¶"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1348,26 +905,7 @@
"ì¼ë°ì ì¸ ì©ëì ë©ìë를 ìì²íë¤. <literal>saveOrUpdate()</literal> ë©ìë"
"ë ì´ ê¸°ë¥ì 구ííë¤."
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1385,7 +923,6 @@
"ì½ ì¬ì©íì§ ìì ê²ì´ë¤."
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
@@ -1395,31 +932,26 @@
"ì ìë리ì¤ìì ì¬ì©ëë¤:"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
msgstr "ì´í리ì¼ì´ì
ì´ ì²« ë²ì§¸ ì¸ì
ë´ì ê°ì²´ë¥¼ ë¡ëìí¨ë¤"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "ê°ì²´ê° UI í°ì´ë¡ ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
msgstr "ëªëª ë³ê²½ë¤ì´ ê·¸ ê°ì²´ì íí´ì§ë¤"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "ê°ì²´ê° ë¹ì§ëì¤ ë¡ì§ í°ì´ë¡ ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
@@ -1429,20 +961,17 @@
"ë¤ ë³ê²½ë¤ì ììí ìí¨ë¤"
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr "<literal>saveOrUpdate()</literal>ë ë¤ìì ííë¤:"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
"ë§ì¼ ê°ì²´ê° ì´ ì¸ì
ë´ìì ì´ë¯¸ ììí ëì´ ìì ê²½ì°, ì무ê²ë ííì§ ìëë¤"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
@@ -1452,7 +981,6 @@
"ì§ë¤"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
@@ -1460,7 +988,6 @@
"literal> ìí¨ë¤"
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
@@ -1470,7 +997,6 @@
"<literal>save()</literal> ìí¨ë¤"
#. Tag: para
-#: session_api.xml:687
#, fuzzy, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
@@ -1484,19 +1010,16 @@
"literal> ìí¨ë¤"
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr "ê·¸ ë°ì ê²½ì° ê·¸ ê°ì²´ë¥¼ <literal>update()</literal> ìí¨ë¤"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr "ê·¸ë¦¬ê³ <literal>merge()</literal>ë ë§¤ì° ë¤ë¥´ë¤:"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
@@ -1507,7 +1030,6 @@
"ì´ì§ ê°ì²´ì ìí를 ìì ì¸ì¤í´ì¤ ìì¼ë¡ ë³µì¬íë¤"
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
@@ -1518,13 +1040,11 @@
"ë¤"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr "ìì ì¸ì¤í´ì¤ê° ë°íëë¤"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
@@ -1533,13 +1053,11 @@
"주ì´ì§ ì¸ì¤í´ì¤ë ì¸ì
ê³¼ ì°ê´ëì§ ìê³ , ê·¸ê²ì detached ìíì 머무른ë¤"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
msgstr "ìì ê°ì²´ë¤ì ìì í기"
#. Tag: para
-#: session_api.xml:737
#, fuzzy, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
@@ -1552,14 +1070,7 @@
"í ê²ì´ë¤. ìì ì¸ì¤í´ì¤ë¥¼ transientë¡ ë§ë¤ ë <literal>delete()</literal>를 "
"ìê°íë ê²ì´ ìµìì´ë¤."
-#. Tag: programlisting
-#: session_api.xml:744
-#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:746
#, fuzzy, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
@@ -1574,13 +1085,11 @@
"ë ê²ì ìì ê²½ì°."
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "ë ê°ì ë¤ë¥¸ ë°ì´í°ì ì¥ìë¤ ì¬ì´ì ê°ì²´ë¤ì ë³µì í기"
#. Tag: para
-#: session_api.xml:759
#, fuzzy, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
@@ -1590,27 +1099,7 @@
"ìì ì¸ì¤í´ì¤ë¤ì ê·¸ëí를 ì·¨íê³ ìë³ì ê°ë¤ì ë¤ì ìì±ìí¤ì§ ìê³ ì ê·¸ê²ë¤"
"ì ë¤ë¥¸ ì ì¥ì ìì ììí ìí¤ë ê²ì ê°ë¥íëë¡ ë§ëë ê²ì´ ì¢
ì¢
ì ì©íë¤."
-#. Tag: programlisting
-#: session_api.xml:765
-#, no-c-format
-msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:767
#, fuzzy, no-c-format
msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
@@ -1620,7 +1109,6 @@
"ë² ì´ì¤ ë´ì ìë 기존ì íë¤ê³¼ì ì¶©ëì ì²ë¦¬íê²ë ë°©ë²ì ê²°ì íë¤."
#. Tag: para
-#: session_api.xml:774
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
@@ -1630,7 +1118,6 @@
"ë² ì´ì¤ íì´ ì¡´ì¬í ê²½ì°ì ê·¸ ê°ì²´ë¥¼ 무ìíë¤"
#. Tag: para
-#: session_api.xml:780
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
@@ -1640,7 +1127,6 @@
"ì ë°ì´í°ë² ì´ì¤ íì ë®ì´ ì´ë¤"
#. Tag: para
-#: session_api.xml:786
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
@@ -1650,7 +1136,6 @@
"ì¡´ ë°ì´í°ë² ì´ì¤ íì´ ì¡´ì¬í ê²½ì°ì ìì¸ìí©ì ëì§ë¤"
#. Tag: para
-#: session_api.xml:792
#, fuzzy, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
@@ -1661,7 +1146,6 @@
"ë²ì ë²í¸ ë³´ë¤ ì´ì ì ê²ì´ë©´ ë®ì´ì°ê³ , ê·¸ ë°ì ê²½ì°ì ê·¸ ê°ì²´ë¥¼ 무ìíë¤"
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1674,13 +1158,11 @@
"ì
ë¤ ëìì íí´ì§ ë³ê²½ë¤ì 롤백ìí¤ê¸° ë±ì í¬í¨íë¤."
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
msgstr "Sessionì flush ìí¤ê¸°"
#. Tag: para
-#: session_api.xml:811
#, fuzzy, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
@@ -1694,31 +1176,26 @@
"ë¤"
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
msgstr "ëªëª ì§ìë¤ì´ ì¤íë기 ì ì"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr "<literal>org.hibernate.Transaction.commit()</literal> ìì ìì"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr "<literal>Session.flush()</literal> ìì ìì"
#. Tag: para
-#: session_api.xml:836
#, fuzzy, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr "SQL 문ì¥ë¤ì´ ë¤ì ììë¡ ì¤í ëª
ë ¹ì´ ë´ë ¤ì§ë¤"
#. Tag: para
-#: session_api.xml:842
#, fuzzy, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
@@ -1728,31 +1205,26 @@
"ê³¼ ê°ì ììë¡, 모ë ìí°í° ì½ì
ë¤"
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
msgstr "모ë ìí°í° ì
ë°ì´í¸ë¤"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr "모ë ì½ë ì
ìì ë¤"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "모ë ì½ë ì
ìì ìì ë¤, ì
ë°ì´í¸ë¤ ê·¸ë¦¬ê³ ì½ì
ë¤"
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr "모ë ì½ë ì
ì½ì
ë¤"
#. Tag: para
-#: session_api.xml:868
#, fuzzy, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
@@ -1762,7 +1234,6 @@
"ê²ê³¼ ê°ì ììë¡ ëª¨ë ìí°í° ìì ë¤."
#. Tag: para
-#: session_api.xml:875
#, fuzzy, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
@@ -1772,7 +1243,6 @@
"ë ê°ì²´ë¤ì´ insert ëë ì ì´ë¤.)"
#. Tag: para
-#: session_api.xml:880
#, fuzzy, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
@@ -1789,7 +1259,6 @@
"ë°ííì§ ìì ê²ìì ë³´ì¥íë¤."
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1799,7 +1268,7 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
"flushê° ë무 ì주 ë°ìíì§ ìëë¡ ëí´í¸ íì를 ë³ê²½íë ê²ì´ ê°ë¥íë¤. "
"<literal>FlushMode</literal> í´ëì¤ë ì¸ ê°ì ë¤ë¥¸ 모ëë¤ì ì ìíë¤: ì¤ì§ 커"
@@ -1810,34 +1279,13 @@
"literal>ì ì´ë ¤ì§ì±ë¡ ì ì§ëê³ ì¤ë ìê° ëì ì°ê²°ì´ í´ì ë ì±ë¡ ì ì§ëë¤. "
"(<xref linkend=\"transactions-optimistic-longsession\"/>를 ë³´ë¼)."
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
"flush ëìì, íëì ìì¸ìí©ì´ ë°ìí ìë ìë¤(ì를 ë¤ë©´. ë§ì¼ DML ì¤í¼ë ì´"
"ì
ì´ ì»¨ì¤í¸ë ì¸í¸ë¥¼ ìë°í ê²½ì°). ìì¸ìí©ë¤ì ì²ë¦¬íë ê²ì Hibernatemì í¸"
@@ -1845,13 +1293,11 @@
"\"/>ìì ê·¸ê²ì ë
¼ìíë¤."
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
msgstr "Transitive persistence(ì ì´ ìì)"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -1863,7 +1309,6 @@
"ì ê´ê³ì´ë¤. ë¤ì ìì 를 ê²í íì:"
#. Tag: para
-#: session_api.xml:917
#, fuzzy, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
@@ -1885,7 +1330,6 @@
"ì¤ë¡ë¶í° ê·¸ ììì ìì ìí¨ë¤."
#. Tag: para
-#: session_api.xml:928
#, fuzzy, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
@@ -1906,7 +1350,6 @@
"ë¤."
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -1925,27 +1368,12 @@
"ì ì°ê´ì ë°ë¼ ì¼ì¤ì¼ì´ë©ëë ê²ì ìí ê²½ì°, ë¹ì ì 매í 문ì ë´ì ê·¸ê²ì ì§"
"ìí´ì¼ íë¤. ì를 ë¤ë©´:"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr "ì¼ì¤ì¼ì´ë© ì¤íì¼ë¤ì´ ê²°í©ë ìë ìë¤:"
-#. Tag: programlisting
-#: session_api.xml:952
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:954
#, fuzzy, no-c-format
msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
@@ -1959,7 +1387,6 @@
"ì ê²ìì ì§ì íë¤."
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -1972,13 +1399,11 @@
"ë¡ë¶í° ì ê±°ëë ììì ìì ê°ì²´ì ì ì©ëì´ì¼ í¨ì ëíë¸ë¤."
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
msgstr "ê¶ì¥ì¬íë¤ :"
#. Tag: para
-#: session_api.xml:973
#, fuzzy, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
@@ -1992,7 +1417,6 @@
"one-to-many></literal> ì°ê´ì ëí´ ì¢
ì¢
ì ì©íë¤."
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
@@ -2004,7 +1428,6 @@
"<emphasis>ìëª
주기 ê°ì²´</emphasis>ë¡ ë§ë¤ì´ë¼."
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2019,7 +1442,6 @@
"íë¼."
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2033,7 +1455,6 @@
"íì¼ì ê´ê³ë¡ ë§í¬íë¤."
#. Tag: para
-#: session_api.xml:1002
#, fuzzy, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
@@ -2052,7 +1473,6 @@
"ì¼ì´ë© ì¤í¼ë ì´ì
ì ì íí ì미ë ë¤ìê³¼ ê°ë¤:"
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
@@ -2062,7 +1482,6 @@
"<literal>persist()</literal>ì ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
@@ -2072,7 +1491,6 @@
"<literal>merge()</literal>ì ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
@@ -2084,7 +1502,6 @@
"<literal>saveOrUpdate()</literal>ì ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
@@ -2094,7 +1511,6 @@
"<literal>saveOrUpdate()</literal>ì ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
@@ -2103,7 +1519,6 @@
"ë§ì¼ ë¶ëª¨ê° ìì ë ê²½ì°, 모ë ììë¤ì´ <literal>delete()</literal>ì ì ë¬ëë¤"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2118,7 +1533,6 @@
"ì° ììì´ ìì ëë¤."
#. Tag: para
-#: session_api.xml:1051
#, fuzzy, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
@@ -2136,13 +1550,11 @@
"flush ëìì ëë¬ ê°ë¥í 모ë ì°ê´ë ìí°í°ë¤ì ëí´ ì´íì (transitive)ì´ë¤."
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr "ë©íë°ì´í° ì¬ì©í기"
#. Tag: para
-#: session_api.xml:1065
#, fuzzy, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
@@ -2160,7 +1572,6 @@
"copy ìê³ ë¦¬ì¦ì 구ííëë° Hibernateì ë©íë°ì´í°ë¥¼ ì¬ì©í ìë ìë¤."
#. Tag: para
-#: session_api.xml:1072
#, fuzzy, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
@@ -2173,27 +1584,6 @@
"literal> ê³ì¸µêµ¬ì¡°ë¥¼ íµí´ ë©íë°ì´í°ë¥¼ ë
¸ì¶ìí¨ë¤. ë©íë°ì´í° ì¸í°íì´ì¤ë¤ì "
"ì¸ì¤í´ì¤ë¤ì <literal>SessionFactory</literal>ë¡ë¶í° ì»ì´ì§ ìë ìë¤."
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#~ msgid "UPDATE"
#~ msgstr "UPDATE"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
msgstr "ë구ì
ìë´"
#. Tag: para
-#: toolset_guide.xml:31
#, fuzzy, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
@@ -27,7 +25,6 @@
"ë¤, ë¿ë§ ìëë¼ Ant íì¤í¬ë¤ì ì¬ì©íì¬ ê°ë¥íë¤."
#. Tag: para
-#: toolset_guide.xml:36
#, fuzzy, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
@@ -39,7 +36,6 @@
"íê³ ìë¤:"
#. Tag: para
-#: toolset_guide.xml:42
#, fuzzy, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
@@ -53,7 +49,6 @@
"ë¡ ì ìë ìì± ê¸°ë¥ì ì§ìíë¤."
#. Tag: para
-#: toolset_guide.xml:47
#, fuzzy, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
@@ -69,7 +64,6 @@
"í´ì¤ë¤."
#. Tag: para
-#: toolset_guide.xml:54
#, fuzzy, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
@@ -85,7 +79,6 @@
"ì§ëì´ë§ ë§ë²ì¬ë ë§ì¶¤ ê°ë¥í í
í릿ë¤ì ì ê³µíë¤."
#. Tag: para
-#: toolset_guide.xml:67
#, fuzzy, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
@@ -95,7 +88,6 @@
"í길 ë°ëë¤."
#. Tag: para
-#: toolset_guide.xml:72
#, fuzzy, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
@@ -107,13 +99,11 @@
"emphasis> ë³ì¹ì <literal>hbm2ddl</literal>."
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
msgstr "ìëì ì¸ ì¤í¤ë§ ìì±"
#. Tag: para
-#: toolset_guide.xml:81
#, fuzzy, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
@@ -127,7 +117,6 @@
"ìë³ì ìì±ê¸°ë¤ì ëí´ ìì±ëë¤."
#. Tag: para
-#: toolset_guide.xml:88
#, fuzzy, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
@@ -139,7 +128,6 @@
"ì <emphasis>í´ì¼ íë¤</emphasis>."
#. Tag: para
-#: toolset_guide.xml:94
#, fuzzy, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
@@ -148,13 +136,11 @@
"먼ì ìì±ë ì¤í¤ë§ë¥¼ ê°ì ìí¤ê¸° ìí´ ë¹ì ì 매í íì¼ë¤ì ë§ì¶¤í ìì¼ë¼."
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
msgstr "ì¤í¤ë§ ë§ì¶¤í ìí¤ê¸°"
#. Tag: para
-#: toolset_guide.xml:101
#, fuzzy, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
@@ -169,20 +155,7 @@
"<literal>scale</literal>ë¡ ëª
ëª
ë ìµì
ìì±ë¤ì ì ìíê³ ìë¤. ë¹ì ì ì´ ìì±"
"ì¼ë¡ì 컬ë¼ì´ 길ì´, ì ë°ë, í¬ê¸°ë¥¼ ì¤ì í ì ìë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
#, fuzzy, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
@@ -195,23 +168,7 @@
"<literal>UNIQUE</literal> 컨ì¤í¸ë ì¸í¸ë¥¼ ìì±ìí¤ë) <literal>unique</"
"literal> ìì±ì ìì©íë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:117
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:121
#, fuzzy, no-c-format
msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
@@ -225,17 +182,7 @@
"ë ê°ì ì°ì¶ë DDLë´ìì 컨ì¤í¸ë ì¸í¸ë¥¼ ëª
ëª
íëë° ì¬ì©ëì§ <emphasis>ìê³ </"
"emphasis>, ì¤ì§ 매í íì¼ ë´ìì 컬ë¼ë¤ì 그룹 ì§ì°ëë° ì¬ì©ëë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:129
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:131
#, fuzzy, no-c-format
msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
@@ -246,16 +193,7 @@
"ë±ì¤ì ì´ë¦ì ì§ì íë¤. ê°ë¨íê² ëì¼í ì¸ë±ì¤ ì´ë¦ì ì§ì í¨ì¼ë¡ì¨ ì¬ë¬ 컬ë¼"
"ë¤ì´ ëì¼í ì¸ë±ì¤ ë´ë¡ 그룹ì§ìì§ ìë ìë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:139
#, fuzzy, no-c-format
msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
@@ -264,16 +202,7 @@
"<literal>foreign-key</literal> ìì±ì ììì ì°ì¶ë foreign í¤ ì»¨ì¤í¸ë ì¸í¸"
"ì ì´ë¦ì ì¤ë²ë¼ì´ë ìí¤ëë° ì¬ì©ë ì ë ìë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
@@ -282,21 +211,7 @@
"ë§ì 매í ììë¤ì ëí íëì ìì <literal><column></literal> ìì를 "
"íì©íë¤. ì´ê²ì í¹í ë¤ì¤ ì»¬ë¼ íì
ë¤ì 매ííëë° ì ì©íë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:151
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:153
#, fuzzy, no-c-format
msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
@@ -309,26 +224,7 @@
"ë¤(ë¹ì ì 매íë í´ëì¤ì ìë¡ì´ ì¸ì¤í´ì¤ë¥¼ ì ì¥í기 ì ì 매íë íë¡í¼í°ì "
"ëì¼í ê°ì í ë¹íê² ë ê²ì´ë¤)."
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
@@ -337,17 +233,7 @@
"<literal>sql-type</literal> ìì±ì SQL ë°ì´í°íì
ì ëí Hibernate íì
ì ë"
"í´í¸ 매íì ì¤ë²ë¼ì´ë ìí¤ë ê²ì ì¬ì©ììê² íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
@@ -356,177 +242,132 @@
"<literal>check</literal> ìì±ì check 컨ì¤í¸ë ì¸í¸ë¥¼ ì§ì íë ê²ì ë¹ì ìê² "
"íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
msgstr "ìì½"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
msgstr "ìì±"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
msgstr "ê°ë¤"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
msgstr "í´ì"
-#. Tag: literal
-#: toolset_guide.xml:196
-#, no-c-format
-msgid "length"
-msgstr "length"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>length</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
msgstr "number"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
msgstr "ì»¬ë¼ ê¸¸ì´"
-#. Tag: literal
-#: toolset_guide.xml:201
-#, no-c-format
-msgid "precision"
-msgstr "precision"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>precision</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
msgstr "ì»¬ë¼ decimal ì ë°ë"
-#. Tag: literal
-#: toolset_guide.xml:206
-#, no-c-format
-msgid "scale"
-msgstr "scale"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>scale</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
msgstr "ì»¬ë¼ decimal í¬ê¸°"
-#. Tag: literal
-#: toolset_guide.xml:211
-#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>not-null</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
-#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>true|false</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:213
#, fuzzy, no-c-format
msgid "specifies that the column should be non-nullable"
msgstr "컬ë¼ì´ nullì´ ìëì´ì¼ í¨ì ì§ì íë¤"
-#. Tag: literal
-#: toolset_guide.xml:216
-#, no-c-format
-msgid "unique"
-msgstr "unique"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr "컬ë¼ì´ íëì ì ì¼ ì»¨ì¤í¸ë ì¸í¸ë¥¼ ê°ì ¸ì¼í¨ì ì§ì íë¤"
-#. Tag: literal
-#: toolset_guide.xml:221
-#, no-c-format
-msgid "index"
-msgstr "index"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>index</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:222
-#, no-c-format
-msgid "index_name"
-msgstr "index_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>index_name</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr "(ë¤ì¤-컬ë¼) ì¸ë±ì¤ì ì´ë¦ì ì§ì íë¤"
-#. Tag: literal
-#: toolset_guide.xml:226
-#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:227
-#, no-c-format
-msgid "unique_key_name"
-msgstr "unique_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique_key_name</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr "ë¤ì¤-ì»¬ë¼ ì ì¼ ì»¨ì¤í¸ë ì¸í¸ì ì´ë¦ì ì§ì íë¤"
-#. Tag: literal
-#: toolset_guide.xml:231
-#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:232
-#, no-c-format
-msgid "foreign_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>foreign_key_name</literal>"
msgstr "foreign_key_name"
#. Tag: entry
-#: toolset_guide.xml:233
#, fuzzy, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
@@ -540,20 +381,17 @@
"ë¤.<placeholder-5/> 측ë¤ì <placeholder-6/>ì ìí´ ê³ ë ¤ëì§ ìì ê²ìì ë
¸í¸"
"íë¼."
-#. Tag: literal
-#: toolset_guide.xml:243
-#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
msgstr "SQL column type"
#. Tag: entry
-#: toolset_guide.xml:245
#, fuzzy, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
@@ -561,38 +399,32 @@
msgstr ""
"ëí´í¸ ì»¬ë¼ íì
ì ì¤ë²ë¼ì´ë ìí¨ë¤ (<placeholder-1/> ììì ìì±ìë§)"
-#. Tag: literal
-#: toolset_guide.xml:251
-#, no-c-format
-msgid "default"
-msgstr "default"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>default</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
#, no-c-format
msgid "SQL expression"
msgstr "SQL expression"
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
msgstr "컬ë¼ì ëí ëí´í¸ ê°ì ì§ì íë¤"
-#. Tag: literal
-#: toolset_guide.xml:258
-#, no-c-format
-msgid "check"
-msgstr "check"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>check</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
msgstr "ì»¬ë¼ ëë í
ì´ë¸ì ëí SQL check 컨ì¤í¸ë ì¸í¸ë¥¼ ìì±ìí¨ë¤"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
@@ -601,29 +433,7 @@
"<literal><comment></literal> ììë ìì±ë ì¤í¤ë§ì ëí 주ìë¤ì ì§ì "
"íë ê²ì ë¹ì ìê² íì©í´ì¤ë¤."
-#. Tag: programlisting
-#: toolset_guide.xml:273
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:277
#, fuzzy, no-c-format
msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
@@ -633,13 +443,11 @@
"ë <literal>comment on column</literal> 문ì¥ì¼ë¡ ê·ê²°ëë¤."
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
msgstr "ë구 ì¤íí기"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
@@ -649,7 +457,6 @@
"ê³ /íê±°ë DDL 문ì¥ë¤ì ì¤íìí¨ë¤."
#. Tag: para
-#: toolset_guide.xml:293
#, fuzzy, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
@@ -657,7 +464,6 @@
msgstr "<literal>SchemaExport</literal> ëª
ë ¹ ë¼ì¸ ìµì
ë¤"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
@@ -666,116 +472,96 @@
msgstr ""
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
msgstr "<literal>SchemaExport</literal> ëª
ë ¹ ë¼ì¸ ìµì
ë¤"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
msgstr "ìµì
"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:528
#, no-c-format
msgid "Description"
msgstr "ì¤ëª
"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
-#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
#, fuzzy, no-c-format
msgid "do not output the script to stdout"
msgstr "ì¤í¬ë¦½í¸ë¥¼ íì¤ì¶ë ¥ì¼ë¡ ì¶ë ¥íì§ ìëë¤"
-#. Tag: literal
-#: toolset_guide.xml:317
-#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--drop</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
msgstr "ì¤ì§ í
ì´ë¸ë¤ì ëë¡ìí¨ë¤"
-#. Tag: literal
-#: toolset_guide.xml:321
-#, no-c-format
-msgid "--create"
-msgstr "--create"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--create</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
msgstr "ì¤ì§ í
ì´ë¸ë¤ì ìì±ìí¨ë¤"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
-#, no-c-format
-msgid "--text"
-msgstr "--text"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--text</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:326
#, fuzzy, no-c-format
msgid "do not export to the database"
msgstr "ë°ì´í°ë² ì´ì¤ë¡ ë´ë³´ë´ê¸° íì§ ìëë¤"
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
msgstr "--output=my_schema.ddl"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
msgstr "ddl ì¤í¬ë¦½í¸ë¥¼ íì¼ë¡ ì¶ë ¥íë¤"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
msgstr "--naming=eg.MyNamingStrategy"
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, fuzzy, no-c-format
msgid "select a <literal>NamingStrategy</literal>"
msgstr "<literal>hibernate.properties</literal> ë´ìì"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
-#, no-c-format
-msgid "--config=hibernate.cfg.xml"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
msgstr "--config=hibernate.cfg.xml"
#. Tag: entry
-#: toolset_guide.xml:338
#, no-c-format
msgid "read Hibernate configuration from an XML file"
msgstr "XML íì¼ë¡ë¶í° Hibernate 구ì±ì ì½ì´ë¤ì¸ë¤"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
-#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
#, fuzzy, no-c-format
msgid "read database properties from a file"
msgstr ""
@@ -786,60 +572,44 @@
"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"íì¼ë¡ë¶í° ë°ì´í°ë² ì´ì¤ íë¡í¼í°ë¤ì ì½ì´ë¤ì¸ë¤"
-#. Tag: literal
-#: toolset_guide.xml:345
-#, no-c-format
-msgid "--format"
-msgstr "--format"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--format</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
msgstr "ìì±ë SQLì ì¤í¬ë¦½í¸ ë´ì ì¢ê² íìì§ì´ë¤"
-#. Tag: literal
-#: toolset_guide.xml:349
-#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=;"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr "ì¤í¬ë¦½í¸ë¥¼ ìí ë¼ì¸ ê²½ê³ì ëì ì¤ì íë¤"
#. Tag: para
-#: toolset_guide.xml:356
#, fuzzy, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
"ë¹ì ì ë¹ì ì ì´í리ì¼ì´ì
ë´ì <literal>SchemaExport</literal>를 ì½ì
ìí¬ ì"
"ë ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
msgstr "íë¡í¼í°ë¤"
#. Tag: para
-#: toolset_guide.xml:367
#, fuzzy, no-c-format
msgid "Database properties can be specified:"
msgstr "ë°ì´í°ë² ì´ì¤ íë¡í¼í°ë¤ì ë¤ìê³¼ ê°ì´ ì§ì ë ì ìë¤"
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
@@ -849,103 +619,86 @@
"í¼í°ë¡ì"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr "<literal>--properties</literal>를 ê°ì§ ëª
ëª
ë íë¡í¼í°ë¤ ë´ìì"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
msgstr "íìí íë¡í¼í°ë¤ì ë¤ìê³¼ ê°ë¤:"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr "SchemaExport 커ë¥ì
íë¡í¼í°ë¤"
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
msgstr "íë¡í¼í° ì´ë¦"
-#. Tag: literal
-#: toolset_guide.xml:400
-#, no-c-format
-msgid "hibernate.connection.driver_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.driver_class</literal>"
msgstr "hibernate.connection.driver_class"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
msgstr "jdbc ëë¼ì´ë² í´ëì¤"
-#. Tag: literal
-#: toolset_guide.xml:404
-#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr "jdbc url"
-#. Tag: literal
-#: toolset_guide.xml:408
-#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
msgstr "ë°ì´í°ë² ì´ì¤ ì¬ì©ì"
-#. Tag: literal
-#: toolset_guide.xml:412
-#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
msgstr "ì¬ì©ì í¨ì¤ìë"
-#. Tag: literal
-#: toolset_guide.xml:416
-#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "<literal>hibernate.properties</literal> ë´ìì"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
msgstr "dialect"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
msgstr "Ant ì¬ì©í기"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
@@ -953,37 +706,12 @@
"ë¹ì ì ë¹ì ì Ant ë¹ë ì¤í¬ë¦½í¸ìì <literal>SchemaExport</literal>를 í¸ì¶í "
"ì ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
msgstr "ì ì¦íë ì¤í¤ë§ ì
ë°ì´í¸ë¤"
#. Tag: para
-#: toolset_guide.xml:439
#, fuzzy, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
@@ -996,7 +724,6 @@
"ë¼."
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
@@ -1005,79 +732,44 @@
msgstr ""
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
msgstr "<literal>SchemaUpdate</literal> ëª
ë ¹ ë¼ì¸ ìµì
ë¤"
#. Tag: entry
-#: toolset_guide.xml:468
#, fuzzy, no-c-format
msgid "do not export the script to the database"
msgstr "ì¤í¬ë¦½í¸ë¥¼ ë°ì´í°ë² ì´ì¤ë¡ ë´ë³´ë´ê¸° íì§ ìëë¤"
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
#, fuzzy, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
msgstr "<placeholder-1/> íì¼ì ì§ì íë¤"
#. Tag: para
-#: toolset_guide.xml:486
#, fuzzy, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
msgstr ""
"ë¹ì ì ë¹ì ì ì´í리ì¼ì´ì
ë´ì <literal>SchemaUpdate</literal>를 ì½ì
ìí¬ "
"ì ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
msgstr "ì ì¦íë ì¤í¤ë§ ì
ë°ì´í¸ë¤ì Ant ì¬ì©í기"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
msgstr ""
"ë¹ì ì Ant ì¤í¬ë¦½í¸ìì<literal>SchemaUpdate</literal>를 í¸ì¶í ì ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
msgstr "ì¤í¤ë§ ì í¨ì± ê²ì¬"
#. Tag: para
-#: toolset_guide.xml:508
#, fuzzy, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
@@ -1093,7 +785,6 @@
"ê·¹í ì ì©íë¤."
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
@@ -1102,7 +793,6 @@
msgstr ""
#. Tag: para
-#: toolset_guide.xml:518
#, fuzzy, no-c-format
msgid ""
"The following table displays the <literal>SchemaValidator</literal> command "
@@ -1110,58 +800,103 @@
msgstr "<literal>SchemaValidator</literal> ëª
ë ¹ ë¼ì¸ ìµì
ë¤"
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
msgstr "<literal>SchemaValidator</literal> ëª
ë ¹ ë¼ì¸ ìµì
ë¤"
#. Tag: para
-#: toolset_guide.xml:548
#, fuzzy, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
msgstr ""
"ë¹ì ì ë¹ì ì ì´í리ì¼ì´ì
ë´ì <literal>SchemaValidator</literal>ì ì½ì
ì"
"í¬ ì ë ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:552
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
msgstr "ì¤í¤ë§ ì í¨ì± ê²ì¬ë¥¼ ìí´ Ant ì¬ì©í기"
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
msgstr ""
"ë¹ì ì Ant ì¤í¬ë¦½í¸ìì <literal>SchemaValidator</literal>를 í¸ì¶í ì ìë¤:"
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
-msgstr ""
+#~ msgid "length"
+#~ msgstr "length"
+#~ msgid "precision"
+#~ msgstr "precision"
+
+#~ msgid "scale"
+#~ msgstr "scale"
+
+#~ msgid "not-null"
+#~ msgstr "not-null"
+
+#~ msgid "true|false"
+#~ msgstr "true|false"
+
+#~ msgid "unique"
+#~ msgstr "unique"
+
+#~ msgid "index"
+#~ msgstr "index"
+
+#~ msgid "index_name"
+#~ msgstr "index_name"
+
+#~ msgid "unique-key"
+#~ msgstr "unique-key"
+
+#~ msgid "unique_key_name"
+#~ msgstr "unique_key_name"
+
+#~ msgid "foreign-key"
+#~ msgstr "foreign-key"
+
+#~ msgid "sql-type"
+#~ msgstr "sql-type"
+
+#~ msgid "default"
+#~ msgstr "default"
+
+#~ msgid "check"
+#~ msgstr "check"
+
+#~ msgid "--quiet"
+#~ msgstr "--quiet"
+
+#~ msgid "--drop"
+#~ msgstr "--drop"
+
+#~ msgid "--create"
+#~ msgstr "--create"
+
+#~ msgid "--text"
+#~ msgstr "--text"
+
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "--properties=hibernate.properties"
+
+#~ msgid "--format"
+#~ msgstr "--format"
+
+#~ msgid "--delimiter=;"
+#~ msgstr "--delimiter=;"
+
+#~ msgid "hibernate.connection.url"
+#~ msgstr "hibernate.connection.url"
+
+#~ msgid "hibernate.connection.username"
+#~ msgstr "hibernate.connection.username"
+
+#~ msgid "hibernate.connection.password"
+#~ msgstr "hibernate.connection.password"
+
+#~ msgid "hibernate.dialect"
+#~ msgstr "hibernate.dialect"
+
#~ msgid "Ant Tasks:"
#~ msgstr "Ant íì¤í¬ë¤:"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: transactions.xml:29
#, fuzzy, no-c-format
msgid "Transactions and Concurrency"
msgstr "í¸ëìì
ë¤ê³¼ ëìì±"
#. Tag: para
-#: transactions.xml:31
#, fuzzy, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
@@ -32,7 +30,6 @@
"ëìì
격리 ëª
ì¸ì ì½ê°ì ìê°ì í ì í ê²ì ë§¤ì° ê¶ì¥íë¤."
#. Tag: para
-#: transactions.xml:38
#, fuzzy, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
@@ -48,7 +45,6 @@
"ì½ê¸°ë¥¼ ì ê³µíë¤."
#. Tag: para
-#: transactions.xml:46
#, fuzzy, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
@@ -62,7 +58,6 @@
"ì´ ì¥ì ë·ë¶ë¶ìì ë
¼ìëë¤."
#. Tag: para
-#: transactions.xml:53
#, fuzzy, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
@@ -76,13 +71,11 @@
"ììíë¤."
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
msgstr "ì¸ì
ììê³¼ í¸ëìì
ìì"
#. Tag: para
-#: transactions.xml:62
#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
@@ -96,7 +89,6 @@
"ìì±ëë¤."
#. Tag: para
-#: transactions.xml:68
#, fuzzy, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
@@ -112,7 +104,6 @@
"ì§ ìì ê²ì´ë¯ë¡, ì¬ì©ë ëê¹ì§ 리ìì¤ë¤ì ìë¹íì§ ìëë¤."
#. Tag: para
-#: transactions.xml:76
#, fuzzy, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
@@ -129,7 +120,6 @@
"ë ê²ì ëê° ê²°ì½ ì¢ì ì¤ê³ë ìëë¤."
#. Tag: para
-#: transactions.xml:84
#, fuzzy, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
@@ -144,13 +134,11 @@
"ê·¸ë¦¬ê³ ë¹ì ì ë°ì´í°ë² ì´ì¤ í¸ëìì
ê²½ê³ë¤ì ì´ë»ê² íì íëê°?"
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr "ìì
ë¨ì"
#. Tag: para
-#: transactions.xml:94
#, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
@@ -160,13 +148,12 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
#. Tag: para
-#: transactions.xml:111
#, fuzzy, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
@@ -200,7 +187,6 @@
"ì¬ ë ì ì§ê°ë¥íê³ íì¥ì ì´ë¤."
#. Tag: para
-#: transactions.xml:126
#, fuzzy, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
@@ -226,7 +212,6 @@
"ì í©íë¤."
#. Tag: para
-#: transactions.xml:138
#, fuzzy, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
@@ -254,14 +239,13 @@
"literal>ì ì í¸íë¼."
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
"ë¹ì ì ì´í리ì¼ì´ì
ì½ëë ì´ëìë íìí ë ì¢
ì¢
<literal>sessionFactory."
"getCurrentSession()</literal>ì ê°ë¨í í¸ì¶í¨ì¼ë¡ì¨ ìì²ì ì²ë¦¬í \"íì¬ ì¸ì
"
@@ -271,7 +255,6 @@
"session\"/>ì ë³´ë¼."
#. Tag: para
-#: transactions.xml:158
#, fuzzy, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
@@ -295,13 +278,11 @@
"emphasis> í¨í´ì ëë¬ì¼ íë¤ê³¼ ìì ë¤ì Hibernate ì¹ ì¬ì´í¸ì í¬ë¼ì ë³´ë¼."
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr "ì¥ê¸°ê°ì ëí"
#. Tag: para
-#: transactions.xml:175
#, fuzzy, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
@@ -317,7 +298,6 @@
"ì©ëì§ ìëë¤. ë¤ì ìì 를 ê²í íì:"
#. Tag: para
-#: transactions.xml:185
#, fuzzy, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
@@ -329,7 +309,6 @@
"ê°ì²´ë¤ì ë³ê²½ìí¤ë ê²ì´ ìì ë¡ë¤."
#. Tag: para
-#: transactions.xml:192
#, fuzzy, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
@@ -341,7 +320,6 @@
"를 기ëíë¤."
#. Tag: para
-#: transactions.xml:200
#, fuzzy, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
@@ -354,7 +332,6 @@
"ì¬íë¤."
#. Tag: para
-#: transactions.xml:206
#, fuzzy, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
@@ -370,7 +347,6 @@
"ì© ì«ì를 ëì´ë ê²ì íì©íì§ ìì ê²ì´ê¸° ë문ì´ë¤."
#. Tag: para
-#: transactions.xml:214
#, fuzzy, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
@@ -393,7 +369,6 @@
"ì½ë¤:"
#. Tag: para
-#: transactions.xml:227
#, fuzzy, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
@@ -407,7 +382,6 @@
"ì ëìì ì²´í¬íë¤."
#. Tag: para
-#: transactions.xml:235
#, fuzzy, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
@@ -426,7 +400,6 @@
"ë³ê²½ë¤ì 격리ìí¤ëë° ì¬ì©ëë¤."
#. Tag: para
-#: transactions.xml:245
#, fuzzy, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
@@ -447,7 +420,6 @@
"flushëë ê²ì´ íì©ëì§ ìì§ë§ ëª
ìì ì¼ë¡ flushëë ê²ì íì©ëë¤."
#. Tag: para
-#: transactions.xml:258
#, fuzzy, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
@@ -461,13 +433,11 @@
"íë¤."
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
msgstr "ê°ì²´ identity ê³ ë ¤í기"
#. Tag: para
-#: transactions.xml:269
#, fuzzy, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
@@ -481,31 +451,26 @@
"identityì ëí ë ê°ì ë¤ë¥¸ ê°ë
ë¤ì´ ì¡´ì¬íë¤:"
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr "ë°ì´í°ë² ì´ì¤ Identity"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
msgstr "foo.getId().equals( bar.getId() )"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr "JVM Identity"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr ""
#. Tag: para
-#: transactions.xml:295
#, fuzzy, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
@@ -526,7 +491,6 @@
"ì¬, optimistic ì ê·¼ë²ì ì¬ì©íì¬ í´ê²°ëë¤."
#. Tag: para
-#: transactions.xml:304
#, fuzzy, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
@@ -546,7 +510,6 @@
"<literal>==</literal>를 ìì íê² ì¬ì©í ìê° ìë¤."
#. Tag: para
-#: transactions.xml:313
#, fuzzy, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
@@ -591,13 +554,11 @@
"ê° êµ¬íëì´ì¼ íë ë°©ë²ìì ë
¸í¸íë¼."
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr "ê³µíµë ìì ë¤"
#. Tag: para
-#: transactions.xml:336
#, fuzzy, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
@@ -613,7 +574,6 @@
"ë¤ì íì¤í ì´í´íë¼:"
#. Tag: para
-#: transactions.xml:345
#, fuzzy, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
@@ -635,7 +595,6 @@
"ìì ëì¼í <literal>Session</literal>ì ì¬ì©í ìë ìë¤."
#. Tag: para
-#: transactions.xml:356
#, fuzzy, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
@@ -658,7 +617,6 @@
"ì´ ìëê³ ë¹ì ì´ ì´ë»ê²ë 롤백 íì ììí´ì¼ í기 ë문ì´ë¤."
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -667,7 +625,7 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
@@ -684,13 +642,11 @@
"ë°ì´í°ì ëí ëì íë¥ ì ì미íë¤."
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
msgstr "ë°ì´í°ë² ì´ì¤ í¸ëìì
ê²½ê³ ì¤ì "
#. Tag: para
-#: transactions.xml:388
#, fuzzy, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
@@ -712,7 +668,6 @@
"ìì í¸ëìì
ë¤ì ê²½ì°ë³´ë¤ë ë ì¢ê² ìíë ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:398
#, fuzzy, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
@@ -736,7 +691,6 @@
"ë ì´ì íìíì§ ìë¤."
#. Tag: para
-#: transactions.xml:408
#, fuzzy, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
@@ -756,7 +710,6 @@
"í ê·¸ê²ì ì¬ì©ì ê°ë ¥íê² ê¶ì¥íë¤."
#. Tag: para
-#: transactions.xml:417
#, fuzzy, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
@@ -764,31 +717,26 @@
"ëê° <literal>Session</literal> ì¢
ë£ë ë¤ ê°ì 구ë¶ëë ë¨ê³ë¤ì ìë°íë¤:"
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
msgstr "ì¸ì
ì flush ìí¨ë¤"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
msgstr "í¸ëìì
ì ì»¤ë° ìí¨ë¤"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
msgstr "ì¸ì
ì ë«ëë¤"
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr "ìì¸ìí©ë¤ì ì²ë¦¬íë¤"
#. Tag: para
-#: transactions.xml:444
#, fuzzy, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
@@ -800,13 +748,11 @@
"ë¤."
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
msgstr "ê´ë¦¬ëì§ ìë íê²½"
#. Tag: para
-#: transactions.xml:453
#, fuzzy, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
@@ -819,32 +765,7 @@
"í (ì를 ë¤ë©´ DataSourceê° ìë) 커ë¥ì
í(pool)ë¤ë¡ë¶í° ì²ë¦¬ëë¤. session/"
"transaction ì²ë¦¬ ê´ì©êµ¬ë ë¤ìê³¼ ê°ë¤:"
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -864,7 +785,6 @@
"ìì ì´ìì±ì´ ìê³ ì¤íëë¤."
#. Tag: para
-#: transactions.xml:471
#, fuzzy, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
@@ -873,27 +793,7 @@
"ë³´ë¤ ë ì ì°í í´ê²°ì±
ì ìì ì¤ëª
íë¯ì´ Hibernateì 미리 ë¹ëëì´ ìë \"í"
"ì¬ ì¸ì
\" 컨í
ì¤í¸ ê´ë¦¬ì´ë¤:"
-#. Tag: programlisting
-#: transactions.xml:476
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:478
#, fuzzy, no-c-format
msgid ""
"You will not see these code snippets in a regular application; fatal "
@@ -915,7 +815,6 @@
"ë¶ë¶ìì ë
¼ìëë¤."
#. Tag: para
-#: transactions.xml:488
#, fuzzy, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
@@ -928,13 +827,11 @@
"current_session_context_class</literal>를 ì íí´ì¼ í¨ì ë
¸í¸íë¼."
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
msgstr "JTA ì¬ì©í기"
#. Tag: para
-#: transactions.xml:499
#, fuzzy, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
@@ -950,7 +847,6 @@
"ë°©ëë¤ì ì ê³µíë¤."
#. Tag: para
-#: transactions.xml:506
#, fuzzy, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
@@ -963,32 +859,7 @@
"ë£íëë¡ ì´í리ì¼ì´ì
ìë²ìê² ìë ¤ì¤ ê²ì´ë¤. ë°ë¼ì í¸ëìì
ê´ë¦¬ ì½ëë "
"non-managed í경과 ëì¼íë¤."
-#. Tag: programlisting
-#: transactions.xml:512
-#, no-c-format
-msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:514
#, fuzzy, no-c-format
msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
@@ -999,31 +870,7 @@
"ì ìí <literal>getCurrentSession()</literal> 기ë¥ì ì¬ì©íê³ ì ìí ê²½ì°, "
"ë¹ì ì JTA <literal>UserTransaction</literal> API를 ì§ì ì¬ì©í´ì¼ í ê²ì´ë¤:"
-#. Tag: programlisting
-#: transactions.xml:520
-#, no-c-format
-msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:522
#, fuzzy, no-c-format
msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
@@ -1032,20 +879,7 @@
"CMTì ê²½ì°, í¸ëìì
ê´í [ê²½ê³ ì¤ì ]ì íë¡ê·¸ë¨ ìì´ ìë, session bean ë°°ì¹ "
"ëì¤í¬ë¦½í°ë¤ ììì íí´ì§ë¤. ê·¸ë¬ë¯ë¡ ì½ëë ë¤ìì¼ë¡ ê°ìëë¤:"
-#. Tag: programlisting
-#: transactions.xml:527
-#, no-c-format
-msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:529
#, fuzzy, no-c-format
msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
@@ -1064,7 +898,6 @@
"emphasis>"
#. Tag: para
-#: transactions.xml:537
#, fuzzy, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
@@ -1085,7 +918,6 @@
"ëë <literal>\"jta\"</literal>ë¡ ì¤ì ëëë¡ íë¼."
#. Tag: para
-#: transactions.xml:546
#, fuzzy, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
@@ -1115,13 +947,11 @@
"ì½ê² í¼í ì ìë¤.)"
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "ìì¸ìí© ì²ë¦¬"
#. Tag: para
-#: transactions.xml:564
#, fuzzy, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
@@ -1143,7 +973,6 @@
"를 í¸ì¶íì¬ ë«íì§ëë¡ íì¤í íë¼."
#. Tag: para
-#: transactions.xml:575
#, fuzzy, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
@@ -1169,7 +998,6 @@
"ê°ë¥íì§ ìê³ ì ì í ì¡ì
ì´ ì·¨í´ì ¸ì¼ íë¤."
#. Tag: para
-#: transactions.xml:587
#, fuzzy, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
@@ -1201,7 +1029,6 @@
"를 ë³´ë¼). íì¤ <literal>JDBCException</literal> ìë¸íì
ì ë¤ìê³¼ ê°ë¤:"
#. Tag: para
-#: transactions.xml:603
#, fuzzy, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
@@ -1211,7 +1038,6 @@
"íë¸ë¤."
#. Tag: para
-#: transactions.xml:609
#, fuzzy, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
@@ -1221,7 +1047,6 @@
"ì ì ì ëíë¸ë¤."
#. Tag: para
-#: transactions.xml:615
#, fuzzy, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
@@ -1231,7 +1056,6 @@
"ë¤ íìì ëíë¸ë¤."
#. Tag: para
-#: transactions.xml:621
#, fuzzy, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
@@ -1241,7 +1065,6 @@
"íìì ì¸ ì ê¸ ë 벨ì íëíë ì¤ë¥ë¥¼ ëíë¸ë¤."
#. Tag: para
-#: transactions.xml:627
#, fuzzy, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
@@ -1251,13 +1074,11 @@
"ëì§ ììë ì¼ë°ì ì¸ ìì¸ìí©."
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
msgstr "í¸ëìì
íììì"
#. Tag: para
-#: transactions.xml:639
#, fuzzy, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
@@ -1282,33 +1103,7 @@
"ë¤. ì´ ê¸°ë¥ì Hibernate <literal>Transaction</literal> ê°ì²´ì ìí´ ì¶ìí ë"
"ë¤."
-#. Tag: programlisting
-#: transactions.xml:652
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:654
#, fuzzy, no-c-format
msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
@@ -1318,13 +1113,11 @@
"ë¼. ì¬ê¸°ì í¸ëìì
íìììë¤ì ì ì¸ì ì¼ë¡ ì ìëì´ì¼ íë¤."
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
msgstr "Optimistic ëìì± ì ì´"
#. Tag: para
-#: transactions.xml:666
#, fuzzy, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
@@ -1344,13 +1137,11 @@
"ì§íë ì´ì ì ê°ê³ ìë¤."
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
msgstr "ì´í리ì¼ì´ì
ë²ì ì²´í¹"
#. Tag: para
-#: transactions.xml:679
#, fuzzy, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
@@ -1367,26 +1158,7 @@
"ëìí¬ ì±
ìì´ ìë¤. ì´ ì ê·¼ë²ì ëí í¸ëìì
ì íì¤í 격리ìí¤ê¸° ìí´ ê·¸ê² "
"ìì ì ë²ì ì²´í¹ì ìííëë¡ ì´í리ì¼ì´ì
ìê² ê°ì ìí¨ë¤."
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
@@ -1398,7 +1170,6 @@
"í¬ ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:696
#, fuzzy, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
@@ -1416,7 +1187,6 @@
"ë¤ì ë³í©ìí¬ ê¸°í ìì´ ì
ë°ì´í¸ë¤ ìì¤ì 겪ì ìë ì기 ë문ì´ë¤."
#. Tag: para
-#: transactions.xml:705
#, fuzzy, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
@@ -1432,13 +1202,11 @@
"ì ì²´í¹ì ì ê³µíë¤."
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
msgstr "íì¥ë ì¸ì
ê³¼ ìëì ì¸ ë²ì í"
#. Tag: para
-#: transactions.xml:718
#, fuzzy, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
@@ -1462,7 +1230,6 @@
"ëì§ ìì ë°ì´í°ë¥¼ ê°ì§ê³ ë¹ì§ëì¤ ëí를 ì¬ììíë 기íì´ë¤)."
#. Tag: para
-#: transactions.xml:727
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
@@ -1477,23 +1244,7 @@
"ì ê·¸ ìì²´ ê´ê³í íìê° ìê±°ë ê·¸ê²ì 모ë ë°ì´í°ë² ì´ì¤ í¸ëìì
ìì ì¸ì¤í´"
"ì¤ë¤ì ë¤ì ë¡ëìí¬ íìê° ìë¤."
-#. Tag: programlisting
-#: transactions.xml:735
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:736
#, fuzzy, no-c-format
msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
@@ -1528,7 +1279,6 @@
"<literal>close()</literal>í ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:751
#, fuzzy, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
@@ -1548,13 +1298,11 @@
"ì ëí ê³§ ì¤ìë ë°ì´í°ê° ë ê²ì´ê¸° ë문ì´ë¤."
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: transactions.xml:763
#, fuzzy, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
@@ -1566,7 +1314,6 @@
"í¨ê³¼ë¥¼ ê°ì§ë¯ë¡, ì´ë¤ ë°©ë²ë¤ì ì§ë¶íê² ëìë¤.)"
#. Tag: para
-#: transactions.xml:769
#, fuzzy, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
@@ -1582,7 +1329,6 @@
"ì ì ì¡íì§ ë§ë¼ (ëë ê·¸ê²ì ë³ëì í°ì´ì ì§ë ¬í ìí¤ì§ë ë§ë¼)."
#. Tag: para
-#: transactions.xml:777
#, fuzzy, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
@@ -1597,13 +1343,11 @@
"ë©°, ìì ë¤ì Hibernate Wiki를 ë³´ë¼."
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr "Detached ê°ì²´ë¤ê³¼ ìëì ì¸ ë²ì í"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1621,22 +1365,7 @@
"</literal>, <literal>Session.saveOrUpdate()</literal>, <literal>Session.merge"
"()</literal>를 ì¬ì©íì¬ ê·¸ê²ë¤ì ë¤ì 첨ë¶ìí¨ë¤."
-#. Tag: programlisting
-#: transactions.xml:797
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:799
#, fuzzy, no-c-format
msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
@@ -1646,7 +1375,6 @@
"ì´ ë°ìí ê²½ì°ì ìì¸ìí©ì ëì§ ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:804
#, fuzzy, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
@@ -1660,13 +1388,11 @@
"ì©í ì ìë¤."
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr "ìëì ì¸ ë²ì í를 ë§ì¶¤í ìí¤ê¸°"
#. Tag: para
-#: transactions.xml:815
#, fuzzy, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
@@ -1680,7 +1406,6 @@
"dirty ì¼ ê²½ì°ì ë ì´ì ë²ì ì ì¦ê°ìí¤ì§ ìì ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:822
#, fuzzy, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
@@ -1706,7 +1431,6 @@
"ì¼ë¡ë§ ëìí¨ì ë
¸í¸íë¼."
#. Tag: para
-#: transactions.xml:834
#, fuzzy, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
@@ -1720,7 +1444,6 @@
"ë¹êµë§ í ê²ì´ë¤."
#. Tag: para
-#: transactions.xml:840
#, fuzzy, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
@@ -1750,13 +1473,11 @@
"ì§ì ë§ì¶¤í ìí¬ ì ìë¤."
#. Tag: title
-#: transactions.xml:858
#, fuzzy, no-c-format
msgid "Pessimistic locking"
msgstr "Pessimistic ì ê¸"
#. Tag: para
-#: transactions.xml:860
#, fuzzy, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
@@ -1772,7 +1493,6 @@
"ì ìì ì ê¸ë¤ì ë¤ì ì»ê³ ì ìí ìë ìë¤."
#. Tag: para
-#: transactions.xml:867
#, fuzzy, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
@@ -1782,7 +1502,6 @@
"ì íì ì¬ì©í ê²ì´ë¤!"
#. Tag: para
-#: transactions.xml:872
#, fuzzy, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
@@ -1792,7 +1511,6 @@
"ê¸ ë 벨ë¤ì ì ìíë¤. ì ê¸ì ë¤ì ë©ì»¤ëì¦ë¤ì ìí´ ì»ì´ì§ë¤:"
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
@@ -1802,7 +1520,6 @@
"insert í ë ìëì ì¼ë¡ íëëë¤."
#. Tag: para
-#: transactions.xml:885
#, fuzzy, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
@@ -1814,7 +1531,6 @@
"literal>를 ì¬ì©íì¬ ëª
ìì ì¸ ì¬ì©ì ìì² ììì ì»ì´ì§ ì ìë¤."
#. Tag: para
-#: transactions.xml:891
#, fuzzy, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
@@ -1826,7 +1542,6 @@
"ë ìë¤."
#. Tag: para
-#: transactions.xml:897
#, fuzzy, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
@@ -1838,7 +1553,6 @@
"ì§ ìë ìë¤. ëª
ìì ì¸ ì¬ì©ì ìì²ì ìí´ ë¤ì ì»ì´ì§ ìë ìë¤."
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1853,14 +1567,12 @@
"ì¶ì íµí´ ì¸ì
ê³¼ ì°ê´ë ê°ì²´ë¤ì´ ëí ì´ ì ê¸ ëª¨ëë¡ ììëë¤."
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
msgstr "\"ëª
ìì ì¸ ì¬ì©ì ìì²\"ì ë¤ì ë°©ë²ë¤ ì¤ íëë¡ ííëë¤:"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
@@ -1870,19 +1582,16 @@
"í í¸ì¶."
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
msgstr "<literal>Session.lock()</literal>ì ëí í¸ì¶."
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
msgstr "<literal>Query.setLockMode()</literal>ì ëí í¸ì¶."
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1901,7 +1610,6 @@
"ê·¸ ê°ì²´ì ëí´ <literal>lock()</literal>ì í¸ì¶íë¤."
#. Tag: para
-#: transactions.xml:944
#, fuzzy, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
@@ -1917,7 +1625,6 @@
"literal>ê° ì¬ì©ëë¤.)"
#. Tag: para
-#: transactions.xml:951
#, fuzzy, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
@@ -1929,13 +1636,11 @@
"ì´ ì´ì ê°ë¥í ê²ìì íì¤í í´ì¤ë¤."
#. Tag: title
-#: transactions.xml:960
#, fuzzy, no-c-format
msgid "Connection release modes"
msgstr "ì°ê²° í´ì 모ëë¤"
#. Tag: para
-#: transactions.xml:962
#, fuzzy, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
@@ -1959,7 +1664,6 @@
"ConnectionReleaseMode</literal>ì ì´ê±°ë ê°ë¤ì ìí´ ìë³ëë¤:"
#. Tag: para
-#: transactions.xml:976
#, fuzzy, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
@@ -1971,7 +1675,6 @@
"ë¥ì
ì ë³´ê´í íìê° ìì ë íëì 커ë¥ì
ì íëíë¤."
#. Tag: para
-#: transactions.xml:983
#, fuzzy, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
@@ -1981,7 +1684,6 @@
"Transaction</literal>ì´ ìë£ë íì ì°ê²°ë¤ì í´ì íë¼ê³ ë§íë¤."
#. Tag: para
-#: transactions.xml:989
#, fuzzy, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
@@ -1997,7 +1699,6 @@
"ScrollableResults</literal>ì ì¬ì©ì íµí´ìì´ë¤."
#. Tag: para
-#: transactions.xml:999
#, fuzzy, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
@@ -2008,7 +1709,6 @@
"release_mode</literal>ê° ì¬ì©ëë¤. ê°ë¥í ê°ë¤ì ë¤ìê³¼ ê°ë¤:"
#. Tag: para
-#: transactions.xml:1006
#, fuzzy, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
@@ -2029,7 +1729,6 @@
"ë¤."
#. Tag: para
-#: transactions.xml:1016
#, fuzzy, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
@@ -2040,7 +1739,6 @@
"ëë¤."
#. Tag: para
-#: transactions.xml:1022
#, fuzzy, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
@@ -2056,7 +1754,6 @@
"AFTER_STATEMENTì¸ ê²ì²ë¼ í´ì ë ê²ìì ëí ë
¸í¸íë¼."
#. Tag: para
-#: transactions.xml:1030
#, fuzzy, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
@@ -2077,3 +1774,6 @@
"<literal>ConnectionProvider.getConnection()</literal>ì í¸ì¶í ëë§ë¤ ì°ë¦¬ê° "
"ëì¼í 기본 JDBC 커ë¥ì
ì ë¤ì íìë¡ í ì ìë íê²½ë¤ìì ëë ì°ë¦¬ê° ëì¼"
"í 커ë¥ì
ì ì»ë ê²ì ìê´ìë auto-commit íê²½ìì ì¤ì§ ìì íë¤."
+
+#~ msgid "foo==bar"
+#~ msgstr "foo==bar"
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:22\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,13 +11,11 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
msgstr ""
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -28,7 +26,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
@@ -37,7 +34,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
@@ -45,13 +41,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
msgstr "íí¸ 1 - 첫 ë²ì§¸ Hibernate ì´í리ì¼ì´ì
"
#. Tag: para
-#: tutorial.xml:61
#, fuzzy, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
@@ -61,7 +55,6 @@
"ì´í리ì¼ì´ì
ê³¼ ì´ë¤ ì´ë²¤í¸ë¤ì í¸ì¤í¸ë¤ì ëí ì 보를 íìë¡ íë¤ê³ ê°ì íì."
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -71,13 +64,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
msgstr ""
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -91,7 +82,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
@@ -99,61 +89,7 @@
"automatically set up a project for us based on the maven descriptor."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
#, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
@@ -172,20 +108,17 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr "첫 ë²ì§¸ í´ëì¤"
#. Tag: para
-#: tutorial.xml:123
#, fuzzy, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
@@ -194,50 +127,7 @@
"ë¤ìì¼ë¡ ì°ë¦¬ë ì°ë¦¬ê° ë°ì´í°ë² ì´ì¤ ìì ì ì¥ìí¤ê³ ì ìíë ì´ë²¤í¸ë¥¼ ííí"
"ë í ê°ì í´ëì¤ë¥¼ ìì±ìí¨ë¤."
-#. Tag: programlisting
-#: tutorial.xml:128
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:130
#, fuzzy, no-c-format
msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
@@ -254,7 +144,6 @@
"ë¤."
#. Tag: para
-#: tutorial.xml:138
#, fuzzy, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
@@ -282,7 +171,6 @@
"ìì¼ë©°, ë¹ì ì ë¹ì ì ì´í리ì¼ì´ì
ì¤ê³ì ì í©íëë¡ ê·¸ê²ì ë¶í©ìí¬ ì ìë¤."
#. Tag: para
-#: tutorial.xml:153
#, fuzzy, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
@@ -297,7 +185,6 @@
"ìë í¨ì¨ì ì¸ ë°ì´í° ê²ìì íìíë¤."
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
@@ -305,13 +192,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
msgstr "The mapping file"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -325,27 +210,11 @@
"ì¬ì©í´ì¼ íë ê·¸ í
ì´ë¸ ë´ì 컬ë¼ë¤ì´ 무ìì¸ì§ë¥¼ Hibernateìê² ìë ¤ì¤ë¤."
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
msgstr "매í íì¼ì 기본 구조ë ë¤ìê³¼ ê°ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:182
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:184
#, fuzzy, no-c-format
msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
@@ -367,7 +236,6 @@
"Hibernate ë°°í¬ë³¸ì <literal>src/</literal> ëë í 리 ìì í¬í¨ëì´ ìë¤."
#. Tag: para
-#: tutorial.xml:197
#, fuzzy, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
@@ -377,7 +245,6 @@
"ê²ì ë¬¼ë¡ ìµì
ì´ ìëë¤."
#. Tag: para
-#: tutorial.xml:203
#, fuzzy, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
@@ -390,21 +257,7 @@
"ì ìê³ , ê·¸ê²ì 첫ë²ì§¸-ê¸ì ìí°í°ë¤ì´ ìëë¤)ì SQL ë°ì´í°ë² ì´ì¤ ë´ì í
ì´ë¸"
"ì ëí ê·¸ë° ë§¤íì íìë¡ íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:210
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:212
#, fuzzy, no-c-format
msgid ""
"So far we have told Hibernate how to persist and load object of class "
@@ -421,23 +274,7 @@
"리ë ëì© í¤ íë¼ì´ë¨¸ë¦¬ í¤ ì»¬ë¼ì ëí Hibernateì ìë³ì ìì± ë°©ë를 구ì±í"
"ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -449,7 +286,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -462,15 +298,14 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:246
#, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
#. Tag: para
-#: tutorial.xml:252
#, fuzzy, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
@@ -479,26 +314,7 @@
"ë§ì§ë§ì¼ë¡ ì°ë¦¬ë 매í íì¼ ììì í´ëì¤ì ìì íë¡í¼í°ë¤ì ëí ì ì¸ë¤ì "
"í¬í¨íë¤. ëí´í¸ë¡, í´ëì¤ì íë¡í¼í°ë¤ì ììì ì¸ ê²ì¼ë¡ ê°ì£¼ëì§ ìëë¤:"
-#. Tag: programlisting
-#: tutorial.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:260
#, fuzzy, no-c-format
msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
@@ -514,7 +330,6 @@
"ê² ë ê²ì´ë¤."
#. Tag: para
-#: tutorial.xml:271
#, fuzzy, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
@@ -532,7 +347,6 @@
"ë ê·¸ê²ì ë¤ë¥¸ ì´ë¦ì¼ë¡ ë ì¢ê² 매í ìí¨ë¤."
#. Tag: para
-#: tutorial.xml:281
#, fuzzy, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
@@ -567,7 +381,6 @@
"ê³ ì ì¸íë¤."
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -577,7 +390,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
@@ -585,13 +397,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
msgstr "Hibernate 구ì±"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
@@ -600,13 +410,11 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:321
#, no-c-format
msgid "We do this do that the data remains between runs."
msgstr ""
#. Tag: para
-#: tutorial.xml:326
#, fuzzy, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
@@ -628,7 +436,6 @@
"ì ìë 모ë íì¼ë¤ì ìì íê³ ë¤ì HSQL DB를 ììíë¼."
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -642,7 +449,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:348
#, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
@@ -650,7 +456,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:354
#, fuzzy, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
@@ -663,63 +468,12 @@
"xml</literal> íì¼, ëë ì¬ì§ì´ ìì í íë¡ê·¸ë¨ ìì ì¤ì ì ì¬ì©í ì ìë¤. "
"ëë¶ë¶ì ì¬ì©ìë¤ì XMl êµ¬ì± íì¼ì ì í¸íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
msgstr ""
#. Tag: para
-#: tutorial.xml:366
#, fuzzy, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
@@ -734,7 +488,6 @@
"factory></literal> 구ì±ë¤ì ì¬ì©íë¼."
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
@@ -743,15 +496,13 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:380
#, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
#. Tag: para
-#: tutorial.xml:386
#, fuzzy, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
@@ -771,7 +522,6 @@
"ì ìë¤. ë§ì§ë§ì¼ë¡ ì°ë¦¬ë ìì í´ëì¤ë¤ì ìí 매í íì¼(ë¤)ì ì¶ê°ìí¨ë¤."
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
@@ -779,13 +529,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:403
#, fuzzy, no-c-format
msgid "Building with Maven"
msgstr "Antë¡ ë¹ëí기"
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -796,43 +544,12 @@
"make sure we can compile everything so far:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
msgstr "ììê³¼ helperë¤"
#. Tag: para
-#: tutorial.xml:422
#, fuzzy, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
@@ -856,7 +573,6 @@
"ì ì ê°ì²´ì´ë¤."
#. Tag: para
-#: tutorial.xml:436
#, fuzzy, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
@@ -868,42 +584,7 @@
"<emphasis>ThreadLocal Session</emphasis> í¨í´ì´ ì¬ê¸°ì ì ì©íë©°, ì°ë¦¬ë íì¬"
"ì ìì
ë¨ì를 íì¬ì ì°ë ëì ì°ê´ì§ì ì ì§íë¤. 구íì ì´í´ë³´ì:"
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
@@ -911,7 +592,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:449
#, fuzzy, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
@@ -930,7 +610,6 @@
"</literal>ì ëí í¸ì¶ì ì°ë ëì íì¬ ì°ê´ëì´ ìë ìì
ë¨ì를 ì¢
ë£ìí¨ë¤."
#. Tag: para
-#: tutorial.xml:458
#, fuzzy, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
@@ -952,7 +631,6 @@
"ì¼ë¡ ë°ì¸ëìí¬ ì ìì ê²ì´ë¤."
#. Tag: para
-#: tutorial.xml:467
#, fuzzy, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
@@ -974,7 +652,6 @@
"Hibernate ìì ë©ìì§ë stdout ìì ë³´ì¬ì§ë¤."
#. Tag: para
-#: tutorial.xml:477
#, fuzzy, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
@@ -984,13 +661,11 @@
"ì íí ì¤ë¹ê° ëì´ ìë¤."
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr "ê°ì²´ ë¡ë©ê³¼ ê°ì²´ ì ì¥"
#. Tag: para
-#: tutorial.xml:487
#, fuzzy, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
@@ -1001,49 +676,7 @@
"ì°ë¦¬ë í ê°ì <literal>main()</literal> ë©ìë를 ê°ì§ í ê°ì "
"<literal>EventManager</literal> í´ëì¤ë¥¼ ìì±íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:493
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:495
#, fuzzy, no-c-format
msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
@@ -1058,7 +691,6 @@
"í´ë³´ì."
#. Tag: para
-#: tutorial.xml:502
#, fuzzy, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
@@ -1078,7 +710,6 @@
"ê°ë¥í <literal>Transaction</literal> API를 ì¬ì©íë¤."
#. Tag: para
-#: tutorial.xml:515
#, fuzzy, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
@@ -1101,7 +732,6 @@
"scope(ìì), ìì
ë¨ìê° ììë ëì ìì
ë¨ìê° ì¢
ë£ë ë를 ê³ ë ¤í´ì¼ íë¤."
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1111,7 +741,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:538
#, fuzzy, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
@@ -1136,7 +765,6 @@
"ì§ ì ìëë°, ì°ë¦¬ë ì´ íí 리ì¼ì ë·ë¶ë¶ìì ì´ê²ì ë¤ë£° ê²ì´ë¤.)."
#. Tag: para
-#: tutorial.xml:551
#, fuzzy, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
@@ -1164,10 +792,9 @@
"ì§ë¤."
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
@@ -1175,7 +802,6 @@
">ì ì´í´ë³´ë¼. ì°ë¦¬ë ëí ìì ìì ìì ììì ì¤ë¥ ì²ë¦¬ì 롤백ì ìëµíë¤."
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
@@ -1184,13 +810,11 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
msgstr ""
#. Tag: para
-#: tutorial.xml:586
#, fuzzy, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
@@ -1199,78 +823,33 @@
"ì»´íì¼, 구ì±ì ë°ë¥¸ Hibernate ìì íì, ë¹ì ì ë§ì ë¡ê·¸ ì¶ë ¥ì ë³´ê² ë ê²ì´"
"ë¤. ëìì ë¹ì ì ë¤ì ë¼ì¸ì ë°ê²¬í ê²ì´ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
msgstr ""
#. Tag: para
-#: tutorial.xml:597
#, fuzzy, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
"ì´ì ì°ë¦¬ë ë§ì°¬ê°ì§ë¡ ì ì¥ë ì´ë²¤í¸ë¤ì ì´ê±°íê³ ì ìíë©°, ì°ë¦¬ë main ë©ì"
"ëì í ê°ì ìµì
ì ì¶ê°íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:601
-#, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:603
#, fuzzy, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
msgstr ""
"ì°ë¦¬ë ëí ìë¡ì´ <literal>listEvents() method</literal> ë©ìë를 ì¶ê° ìí¨"
"ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:607
-#, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
"ì¬ê¸°ì ì°ë¦¬ê° íí ê²ì ë°ì´í°ë² ì´ì¤ë¡ë¶í° 모ë ì¡´ì¬íë <literal>Event</"
"literal> ê°ì²´ë¤ì ë¡ëìí¤ê¸° ìí´ HQL (Hibernate Query Language) ì§ì를 ì¬ì©"
@@ -1279,7 +858,6 @@
"ë¬¼ë¡ HQLë¡ì ë³´ë¤ ë³µì¡í ì§ìë¤ì ìì±ìí¬ ì ìë¤."
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
@@ -1288,13 +866,11 @@
msgstr ""
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
msgstr "íí¸ 2 - ì°ê´ë¤ì 매íí기"
#. Tag: para
-#: tutorial.xml:629
#, fuzzy, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
@@ -1307,39 +883,16 @@
"ëë¤ì ì¶ê°íê³ ê·¸ë¤ì´ ì°¸ì¬íë ì´ë²¤í¸ë¤ì 목ë¡ì ì ì¥í ê²ì´ë¤."
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
msgstr "Person í´ëì¤ ë§¤íí기"
#. Tag: para
-#: tutorial.xml:639
#, fuzzy, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
msgstr "í´ëì¤ì 첫 ë²ì§¸ ì¥ë©´ì ê°ë¨íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:643
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
@@ -1347,47 +900,18 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
msgstr "ë§ì§ë§ì¼ë¡ ìë¡ì´ 매íì Hibernateì 구ì±ì ì¶ê°íë¼:"
-#. Tag: programlisting
-#: tutorial.xml:661
-#, no-c-format
-msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:663
#, fuzzy, no-c-format
msgid ""
"Create an association between these two entities. Persons can participate in "
@@ -1400,13 +924,11 @@
"(multiplicity), ê·¸ë¦¬ê³ ì½ë ì
í¹ì§."
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
msgstr "ë¨ë°©í¥ Set-기ë°ì ì°ê´"
#. Tag: para
-#: tutorial.xml:675
#, fuzzy, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
@@ -1424,26 +946,7 @@
"literal>를 ì¬ì©íë¤. ìëíë©´ ê·¸ ì½ë ì
ì ì¤ë³µ ììë¤ì í¬í¨í기 ìì ê²ì´ê³ "
"ê·¸ ììê° ì°ë¦¬ì ê´ë ¨ëì´ ìì§ ì기 ë문ì´ë¤."
-#. Tag: programlisting
-#: tutorial.xml:686
-#, no-c-format
-msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:688
#, fuzzy, no-c-format
msgid ""
"Before mapping this association, let's consider the other side. We could "
@@ -1465,28 +968,7 @@
"to-many</emphasis> ì°ê´ì´ë¼ê³ ëª
ëª
íë¤. ê·¸ë¬ë¯ë¡ ì°ë¦¬ë Hibernateì many-to-"
"many 매íì ì¬ì©íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:701
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:703
#, fuzzy, no-c-format
msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
@@ -1513,38 +995,16 @@
"ì ìë í´ëì¤)를 Hibernateìê² ìë ¤ì£¼ì´ì¼ íë¤."
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
msgstr "ë°ë¼ì ì´ ë§¤íì ìí ë°ì´í°ë² ì´ì¤ ì¤í¤ë§ë ë¤ìê³¼ ê°ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
msgstr "ì°ê´ë¤ì ìì
í기"
#. Tag: para
-#: tutorial.xml:730
#, fuzzy, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
@@ -1553,25 +1013,7 @@
"<literal>EventManager</literal> ìì ìë í ê°ì ìë¡ì´ ë©ìë ë´ì ëªëª ì¬"
"ëë¤ê³¼ ì´ë²¤í¸ë¤ì í¨ê» ê°ì ¸ì¤ì:"
-#. Tag: programlisting
-#: tutorial.xml:734
-#, no-c-format
-msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:736
#, fuzzy, no-c-format
msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
@@ -1605,7 +1047,6 @@
"ì
ì 커ë°(ëë 롤백)ì¼ë¡ ëì´ëë¤."
#. Tag: para
-#: tutorial.xml:755
#, fuzzy, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
@@ -1620,43 +1061,7 @@
"ìí를 <emphasis>detached</emphasis>ë¼ê³ ë¶ë¥¸ë¤). (ë§¤ì° ì¬ì¤ì ì´ì§ ìì) ì½"
"ë ë´ìì ì´ê²ì ë¤ìê³¼ ê°ì ì ìë¤:"
-#. Tag: programlisting
-#: tutorial.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:766
#, fuzzy, no-c-format
msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
@@ -1672,7 +1077,6 @@
"(ì¶ê°/ìì )를 í¬í¨íë¤."
#. Tag: para
-#: tutorial.xml:775
#, fuzzy, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
@@ -1690,22 +1094,7 @@
"literal> ë©ìëê° ê·¸ê²ì ë°íìí¨ë¤(ë¹ì ì ê·¸ ìë³ì를 ë°íìí¤ë ìì ë©ìë"
"ë¤ ì¤ ëªëªì ë³ê²½ìì¼ì¼ í ê²ì´ë¤):"
-#. Tag: programlisting
-#: tutorial.xml:783
-#, no-c-format
-msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:785
#, fuzzy, no-c-format
msgid ""
"This is an example of an association between two equally important classes : "
@@ -1736,7 +1125,6 @@
"<literal>MonetaryAmount</literal>ì ìì±í ì ìë¤."
#. Tag: para
-#: tutorial.xml:803
#, fuzzy, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
@@ -1748,13 +1136,11 @@
"ì§ë¤."
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
msgstr "ê°ë¤ì ê°ì§ ì½ë ì
"
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
@@ -1762,39 +1148,12 @@
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:820
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:822
#, fuzzy, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
msgstr "ì´ <literal>Set</literal>ì ëí 매íì ë¤ìê³¼ ê°ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:826
-#, no-c-format
-msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:828
#, fuzzy, no-c-format
msgid ""
"The difference compared with the earlier mapping is the use of the "
@@ -1820,39 +1179,11 @@
"ìì±ì <literal>String</literal> ê°ë¤ì´ ì¤ì ë¡ ì ì¥ë ì»¬ë¼ ì´ë¦ì ì ìíë¤."
#. Tag: para
-#: tutorial.xml:844
#, fuzzy, no-c-format
msgid "Here is the updated schema:"
msgstr "ì
ë°ì´í¸ë ì¤í¤ë§ë¥¼ ì´í´ë³´ë¼:"
-#. Tag: programlisting
-#: tutorial.xml:848
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:850
#, fuzzy, no-c-format
msgid ""
"You can see that the primary key of the collection table is in fact a "
@@ -1866,7 +1197,6 @@
"ë¯¸ë¡ ì´ë¤."
#. Tag: para
-#: tutorial.xml:856
#, fuzzy, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
@@ -1876,27 +1206,7 @@
"ììë¤ì ìëíê³ ì´ ì½ë ì
ì ì¶ê°í ì ìë¤. ê·¸ê²ì Javaìì ëì¼í ì½ëì´"
"ë¤."
-#. Tag: programlisting
-#: tutorial.xml:861
-#, no-c-format
-msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:863
#, fuzzy, no-c-format
msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
@@ -1910,13 +1220,11 @@
"ë¼."
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr "Bi-directional associations"
#. Tag: para
-#: tutorial.xml:874
#, fuzzy, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
@@ -1932,7 +1240,6 @@
"ê³ ê²ìë ì ìë¤."
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
@@ -1941,7 +1248,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:890
#, fuzzy, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
@@ -1950,41 +1256,13 @@
"먼ì , ì°¸ì¬ìë¤ì ê°ì§ í ê°ì ì½ë ì
ì <literal>Event</literal> Event í´ëì¤"
"ì ì¶ê°ìì¼ë¼:"
-#. Tag: programlisting
-#: tutorial.xml:895
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:897
#, fuzzy, no-c-format
msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr "ì´ì <literal>Event.hbm.xml</literal> ë´ì ì°ê´ì ì´ ìª½ë 매ííë¼."
-#. Tag: programlisting
-#: tutorial.xml:901
-#, no-c-format
-msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:903
#, fuzzy, no-c-format
msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
@@ -2001,7 +1279,6 @@
"ë´ì ìë <literal>inverse=\"true\"</literal> ìì±ì´ë¤."
#. Tag: para
-#: tutorial.xml:911
#, fuzzy, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
@@ -2015,13 +1292,11 @@
"í´íê¸°ê° í¨ì¬ ë ì¬ì¸ ê²ì´ë¤."
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
msgstr "ìë°©í¥ ë§í¬ë¤ì ìì
í기"
#. Tag: para
-#: tutorial.xml:922
#, fuzzy, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
@@ -2045,7 +1320,6 @@
"ê²ì ííë ê²ì ê²°ì½ ìì§ ë§ìì¼ íë¤."
#. Tag: para
-#: tutorial.xml:932
#, fuzzy, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
@@ -2054,31 +1328,7 @@
"ë§ì ê°ë°ìë¤ì ë°©ë¹ì±
ì íë¡ê·¸ë¨íê³ ì 측ë¤ì ì ííê² ì¤ì í기 ìí íë"
"ì ë§í¬ ê´ë¦¬ ë©ìëë¤ì ìì±ìí¨ë¤. ì를 ë¤ë©´ <literal>Person</literal>ìì :"
-#. Tag: programlisting
-#: tutorial.xml:937
-#, no-c-format
-msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:939
#, fuzzy, no-c-format
msgid ""
"The get and set methods for the collection are now protected. This allows "
@@ -2092,7 +1342,6 @@
"ê¸ì§ìí¨ë¤. ë¹ì ì ë¤ë¥¸ 측 ìì ìë ì½ë ì
ì ëí´ ëì¼í ê²ì íí ê²ì´ë¤."
#. Tag: para
-#: tutorial.xml:946
#, fuzzy, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
@@ -2123,13 +1372,11 @@
"ì´ë ì íí ì ìì¼ë©° ì°¨ì´ì ì ìë¤."
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
msgstr "íí¸ 3 - EventManager ì¹ ì´í리ì¼ì´ì
"
#. Tag: para
-#: tutorial.xml:964
#, fuzzy, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
@@ -2145,13 +1392,11 @@
"ì´í ì ìê³ , ê·¸ê²ì ìë¡ì´ ì´ë²¤í¸ë¤ì ì
ë ¥í기 ìí HTML formì ì ê³µíë¤."
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
msgstr "기본 ìë¸ë¦¿ ìì±í기"
#. Tag: para
-#: tutorial.xml:974
#, fuzzy, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
@@ -2161,52 +1406,7 @@
"ìë¸ë¦¿ì HTTP <literal>GET</literal> ìì²ë¤ ë§ì ì²ë¦¬íë¯ë¡, ì°ë¦¬ê° 구ííë "
"ë©ìëë <literal>doGet()</literal>ì´ë¤:"
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
@@ -2214,7 +1414,6 @@
msgstr ""
#. Tag: para
-#: tutorial.xml:987
#, fuzzy, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
@@ -2233,7 +1432,6 @@
"commit 모ë를 ì¬ì©íì§ ìëë¤)."
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2248,7 +1446,6 @@
"íë¼."
#. Tag: para
-#: tutorial.xml:1003
#, fuzzy, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
@@ -2258,7 +1455,6 @@
"ì¥ ê·¸ë¶ë¶ì¼ë¡ ê° ê²ì´ë¤."
#. Tag: para
-#: tutorial.xml:1008
#, fuzzy, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
@@ -2280,57 +1476,18 @@
"í ë ê·¸ê²ì íìë¡ í ê²ì´ë¤."
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
msgstr "íë¡ì¸ì±ê³¼ ë ëë§"
#. Tag: para
-#: tutorial.xml:1024
#, fuzzy, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
msgstr "ìì²ì ì²ë¦¬ì íì´ì§ì ë ëë§ì 구ííì."
-#. Tag: programlisting
-#: tutorial.xml:1028
-#, no-c-format
-msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1030
#, fuzzy, no-c-format
msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
@@ -2347,25 +1504,7 @@
"ë ì´ë²¤í¸ë¤ì 목ë¡ì´ í린í¸ëë¤. 첫 ë²ì§¸ ë©ìëë ìíì ì´ê³ ì¤ì§ HTMLì ì¶ë ¥"
"íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
@@ -2374,38 +1513,7 @@
"<literal>listEvents()</literal> ë©ìëë íëì ì§ì를 ì¤íí기 ìí´ì íì¬"
"ì ì°ë ëì ê²°í©ë Hibernate <literal>Session</literal>ì ì¬ì©íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
@@ -2416,23 +1524,7 @@
"literal> ë©ìëë¡ ëì¤í¨ì¹ëë¤. ê·¸ê²ì íì¬ ì°ë ëì <literal>Session</"
"literal>ì ì¬ì©íë¤:"
-#. Tag: programlisting
-#: tutorial.xml:1055
-#, no-c-format
-msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1057
#, fuzzy, no-c-format
msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
@@ -2454,13 +1546,11 @@
"í¤ë¥¼ ë³´ë¼."
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
msgstr "ë°°ì¹í기 ê·¸ë¦¬ê³ í
ì¤í¸í기"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
@@ -2468,32 +1558,7 @@
"web.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1081
#, fuzzy, no-c-format
msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
@@ -2507,16 +1572,14 @@
"ì ë°°ì¹í기 ìí´ ììì Tomcat 구ì±ì ë³ê²½íì§ ììì¼ íë¤."
#. Tag: para
-#: tutorial.xml:1088
#, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -2534,13 +1597,11 @@
"ë¡ íë¼."
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr "ìì½"
#. Tag: para
-#: tutorial.xml:1111
#, fuzzy, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -11,29 +11,25 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
msgstr "XML 매í"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
msgstr ""
"ì´ê²ì Hibernate3.0ìì ì¤íì ì¸ í¹ì§ì´ê³ ë§¤ì° íëì ì¼ë¡ ê°ë° ì¤ì ììì ë
¸"
"í¸íë¼."
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
msgstr "XML ë°ì´í°ë¡ ìì
í기"
#. Tag: para
-#: xml.xml:39
#, fuzzy, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
@@ -48,7 +44,6 @@
"ì ìë¤."
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -68,7 +63,6 @@
"literal>(merging(ë³í©)ì ìì§ ì§ìëì§ ìëë¤)."
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"This feature has many applications including data import/export, "
@@ -78,7 +72,6 @@
"íµí ìí°í° ë°ì´í°ì 구체í를 í¬í¨íë ë§ì ì´í리ì¼ì´ì
ë¤ì ê°ëë¤."
#. Tag: para
-#: xml.xml:61
#, fuzzy, no-c-format
msgid ""
"A single mapping can be used to simultaneously map properties of a class and "
@@ -90,86 +83,26 @@
"ê²ì ë¨ì§ XMLì 매íìí¤ëë° ì¬ì©ë ìë ìë¤."
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
msgstr "XMLê³¼ í´ëì¤ ë§¤íì í¨ê» ì§ì í기"
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
msgstr "ë¤ìì POJOì XMLì ëìì 매íìí¤ë ìì ì´ë¤ :"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
msgstr "XML 매íë§ì ì§ì í기"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
msgstr "ë¤ìì POJO í´ëì¤ê° ì¡´ì¬íì§ ìë ìì ì´ë¤:"
-#. Tag: programlisting
-#: xml.xml:84
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: para
-#: xml.xml:86
#, fuzzy, no-c-format
msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
@@ -182,13 +115,11 @@
"ë¤."
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
msgstr "XML 매í ë©íë°ì´í°"
#. Tag: para
-#: xml.xml:99
#, fuzzy, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
@@ -201,26 +132,22 @@
"íëë¡ íë¤. <literal>node</literal> ìì±ì í¬ë§·ì ë¤ì ì¤ íëì´ì´ì¼ íë¤:"
#. Tag: para
-#: xml.xml:108
#, fuzzy, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
msgstr "<literal>\"element-name\"</literal> - ëª
ëª
ë XML ììë¡ ë§¤íìí¨ë¤"
#. Tag: para
-#: xml.xml:111
#, fuzzy, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
"<literal>\"@attribute-name\"</literal> - ëª
ëª
ë XML ìì±ì¼ë¡ 매íìí¨ë¤"
#. Tag: para
-#: xml.xml:114
#, fuzzy, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
msgstr "<literal>\".\"</literal> - ë¶ëª¨ ììë¡ ë§¤í ìí¨ë¤"
#. Tag: para
-#: xml.xml:117
#, fuzzy, no-c-format
msgid ""
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
@@ -230,7 +157,6 @@
"ì±ì¼ë¡ 매íìí¨ë¤"
#. Tag: para
-#: xml.xml:124
#, fuzzy, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
@@ -249,7 +175,6 @@
"ì¸í¸ ì°ê´ë¤ì ëí´ ëíë ê²ì´ê³ ì½ë ì
ë¤ì ë¨ìí ì í ëíëì§ ìì ê²ì´ë¤."
#. Tag: para
-#: xml.xml:134
#, fuzzy, no-c-format
msgid ""
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
@@ -259,48 +184,7 @@
"ì§ ë§ëë¡ ì£¼ìí´ì¼ íë¤. ìëíë©´ XMLì´ ìíì ì¼ë¡ ì ì²ë¦¬íì§ ëª»í기 ë문ì´"
"ë¤!"
-#. Tag: programlisting
-#: xml.xml:139
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:141
#, fuzzy, no-c-format
msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
@@ -309,38 +193,12 @@
"ì´ ê²½ì°ì, ì°ë¦¬ë ì¤ì account ë°ì´í°ê° ìë, account idë¤ì ê°ì§ ì½ë ì
ì ì½"
"ì
ìí¤ê¸°ë¡ ê²°ì íë¤. ë¤ì HQL ì§ì:"
-#. Tag: programlisting
-#: xml.xml:146
-#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:148
#, fuzzy, no-c-format
msgid "would return datasets such as this:"
msgstr "ë ë¤ìê³¼ ê°ì ë°ì´í°ì
ë¤ì ë°íí ê²ì´ë¤:"
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
@@ -350,36 +208,12 @@
"<literal>embed-xml=\"true\"</literal>를 ì¤ì í ê²½ì°, ë°ì´í°ë ë¤ìê³¼ ê°ì´ ë³´"
"ì¼ ìë ìë¤:"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
msgstr "XML ë°ì´í° ì²ë¦¬í기"
#. Tag: para
-#: xml.xml:167
#, fuzzy, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
@@ -388,54 +222,7 @@
"ì°ë¦¬ì ì´í리ì¼ì´ì
ë´ìì XML 문ìë¤ì ë¤ì ì½ì´ë¤ì´ê³ ì
ë°ì´í¸ ìí¤ì. ì°ë¦¬"
"ë dom4j ì¸ì
ì ì»ì´ì ì´ê²ì ííë¤:"
-#. Tag: programlisting
-#: xml.xml:172
-#, no-c-format
-msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:176
#, fuzzy, no-c-format
msgid ""
"When implementing XML-based data import/export, it is useful to combine this "
Modified: core/trunk/documentation/manual/src/main/docbook/ko-KR/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/ko-KR/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/ko-KR/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,26 +2,25 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
@@ -30,7 +29,6 @@
"<state>NC</state><postcode>27709</postcode><country>USA</country>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
Modified: core/trunk/documentation/manual/src/main/docbook/pot/Hibernate_Reference.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/Hibernate_Reference.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/Hibernate_Reference.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,34 +1,29 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
+"PO-Revision-Date: 2010-02-11T05:38:14\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
+msgid "&versionNumber;"
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/author_group.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/author_group.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/author_group.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,190 +1,149 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
+"PO-Revision-Date: 2010-02-11T05:38:14\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid "<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid "<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> <email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid "<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Alvaro</firstname> <surname>Netto</surname> <email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anderson</firstname> <surname>Braulio</surname> <email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Daniel Vieira</firstname> <surname>Costa</surname> <email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco.gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> <email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel.castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail.com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Pablo L.</firstname> <surname>de Miranda</surname> <email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid "<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail.com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid "<firstname>Rogério</firstname> <surname>Araújo</surname> <email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid "<firstname>Wanderson</firstname> <surname>Siqueira</surname> <email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid "<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> <orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/architecture.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,327 +1,273 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
+"PO-Revision-Date: 2010-02-11T05:38:14\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr ""
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
msgstr ""
#. Tag: para
-#: architecture.xml:35
#, no-c-format
msgid "The diagram below provides a high-level view of the Hibernate architecture:"
msgstr ""
#. Tag: para
-#: architecture.xml:48
#, no-c-format
msgid "We do not have the scope in this document to provide a more detailed view of all the runtime architectures available; Hibernate is flexible and supports several different approaches. We will, however, show the two extremes: \"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
#. Tag: para
-#: architecture.xml:54
#, no-c-format
msgid "This next diagram illustrates how Hibernate utilizes database and configuration data to provide persistence services, and persistent objects, to the application."
msgstr ""
#. Tag: para
-#: architecture.xml:59
#, no-c-format
msgid "The \"minimal\" architecture has the application provide its own JDBC connections and manage its own transactions. This approach uses a minimal subset of Hibernate's APIs:"
msgstr ""
#. Tag: para
-#: architecture.xml:74
#, no-c-format
msgid "The \"comprehensive\" architecture abstracts the application away from the underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
#. Tag: para
-#: architecture.xml:88
#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
msgstr ""
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr ""
#. Tag: para
-#: architecture.xml:95
#, no-c-format
msgid "A threadsafe, immutable cache of compiled mappings for a single database. A factory for <literal>Session</literal> and a client of <literal>ConnectionProvider</literal>, <literal>SessionFactory</literal> can hold an optional (second-level) cache of data that is reusable between transactions at a process, or cluster, level."
msgstr ""
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr ""
#. Tag: para
-#: architecture.xml:107
#, no-c-format
msgid "A single-threaded, short-lived object representing a conversation between the application and the persistent store. It wraps a JDBC connection and is a factory for <literal>Transaction</literal>. <literal>Session</literal> holds a mandatory first-level cache of persistent objects that are used when navigating the object graph or looking up objects by identifier."
msgstr ""
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
msgstr ""
#. Tag: para
-#: architecture.xml:119
#, no-c-format
msgid "Short-lived, single threaded objects containing persistent state and business function. These can be ordinary JavaBeans/POJOs. They are associated with exactly one <literal>Session</literal>. Once the <literal>Session</literal> is closed, they will be detached and free to use in any application layer (for example, directly as data transfer objects to and from presentation)."
msgstr ""
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
msgstr ""
#. Tag: para
-#: architecture.xml:131
#, no-c-format
msgid "Instances of persistent classes that are not currently associated with a <literal>Session</literal>. They may have been instantiated by the application and not yet persisted, or they may have been instantiated by a closed <literal>Session</literal>."
msgstr ""
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr ""
#. Tag: para
-#: architecture.xml:142
#, no-c-format
msgid "(Optional) A single-threaded, short-lived object used by the application to specify atomic units of work. It abstracts the application from the underlying JDBC, JTA or CORBA transaction. A <literal>Session</literal> might span several <literal>Transaction</literal>s in some cases. However, transaction demarcation, either using the underlying API or <literal>Transaction</literal>, is never optional."
msgstr ""
#. Tag: term
-#: architecture.xml:153
#, no-c-format
msgid "ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</literal>)"
msgstr ""
#. Tag: para
-#: architecture.xml:155
#, no-c-format
msgid "(Optional) A factory for, and pool of, JDBC connections. It abstracts the application from underlying <literal>Datasource</literal> or <literal>DriverManager</literal>. It is not exposed to application, but it can be extended and/or implemented by the developer."
msgstr ""
#. Tag: term
-#: architecture.xml:163
#, no-c-format
msgid "TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
msgstr ""
#. Tag: para
-#: architecture.xml:165
#, no-c-format
msgid "(Optional) A factory for <literal>Transaction</literal> instances. It is not exposed to the application, but it can be extended and/or implemented by the developer."
msgstr ""
-#. Tag: emphasis
-#: architecture.xml:172
+#. Tag: term
#, no-c-format
-msgid "Extension Interfaces"
+msgid "<emphasis>Extension Interfaces</emphasis>"
msgstr ""
#. Tag: para
-#: architecture.xml:174
#, no-c-format
msgid "Hibernate offers a range of optional extension interfaces you can implement to customize the behavior of your persistence layer. See the API documentation for details."
msgstr ""
#. Tag: para
-#: architecture.xml:183
#, no-c-format
msgid "Given a \"minimal\" architecture, the application bypasses the <literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or <literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC directly."
msgstr ""
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr ""
#. Tag: para
-#: architecture.xml:192
#, no-c-format
msgid "An instance of a persistent class can be in one of three different states. These states are defined in relation to a <emphasis>persistence context</emphasis>. The Hibernate <literal>Session</literal> object is the persistence context. The three different states are as follows:"
msgstr ""
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
msgstr ""
#. Tag: para
-#: architecture.xml:202
#, no-c-format
msgid "The instance is not associated with any persistence context. It has no persistent identity or primary key value."
msgstr ""
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
msgstr ""
#. Tag: para
-#: architecture.xml:212
#, no-c-format
msgid "The instance is currently associated with a persistence context. It has a persistent identity (primary key value) and can have a corresponding row in the database. For a particular persistence context, Hibernate <emphasis>guarantees</emphasis> that persistent identity is equivalent to Java identity in relation to the in-memory location of the object."
msgstr ""
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
msgstr ""
#. Tag: para
-#: architecture.xml:226
#, no-c-format
msgid "The instance was once associated with a persistence context, but that context was closed, or the instance was serialized to another process. It has a persistent identity and can have a corresponding row in the database. For detached instances, Hibernate does not guarantee the relationship between persistent identity and Java identity."
msgstr ""
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
msgstr ""
#. Tag: para
-#: architecture.xml:243
#, no-c-format
msgid "JMX is the J2EE standard for the management of Java components. Hibernate can be managed via a JMX standard service. AN MBean implementation is provided in the distribution: <literal>org.hibernate.jmx.HibernateService</literal>."
msgstr ""
#. Tag: para
-#: architecture.xml:249
#, no-c-format
msgid "For an example of how to deploy Hibernate as a JMX service on the JBoss Application Server, please see the JBoss User Guide. JBoss AS also provides these benefits if you deploy using JMX:"
msgstr ""
#. Tag: para
-#: architecture.xml:257
#, no-c-format
msgid "<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</literal>'s life cycle can be automatically bound to the scope of a JTA transaction. This means that you no longer have to manually open and close the <literal>Session</literal>; this becomes the job of a JBoss EJB interceptor. You also do not have to worry about transaction demarcation in your code (if you would like to write a portable persistence layer use the optional Hibernate <literal>Transaction</literal> API for this). You call the <literal>HibernateContext</literal> to access a <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: architecture.xml:269
#, no-c-format
msgid "<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed using a JBoss service deployment descriptor in an EAR and/or SAR file, as it supports all the usual configuration options of a Hibernate <literal>SessionFactory</literal>. However, you still need to name all your mapping files in the deployment descriptor. If you use the optional HAR deployment, JBoss will automatically detect all mapping files in your HAR file."
msgstr ""
#. Tag: para
-#: architecture.xml:280
#, no-c-format
msgid "Consult the JBoss AS user guide for more information about these options."
msgstr ""
#. Tag: para
-#: architecture.xml:284
#, no-c-format
-msgid "Another feature available as a JMX service is runtime Hibernate statistics. See <xref linkend=\"configuration-optional-statistics\"/> for more information."
+msgid "Another feature available as a JMX service is runtime Hibernate statistics. See <xref linkend=\"configuration-optional-statistics\" /> for more information."
msgstr ""
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
msgstr ""
#. Tag: para
-#: architecture.xml:292
#, no-c-format
msgid "Hibernate can also be configured as a JCA connector. Please see the website for more information. Please note, however, that at this stage Hibernate JCA support is under development."
msgstr ""
#. Tag: title
-#: architecture.xml:299
#, no-c-format
msgid "Contextual sessions"
msgstr ""
#. Tag: para
-#: architecture.xml:300
#, no-c-format
msgid "Most applications using Hibernate need some form of \"contextual\" session, where a given session is in effect throughout the scope of a given context. However, across applications the definition of what constitutes a context is typically different; different contexts define different scopes to the notion of current. Applications using Hibernate prior to version 3.0 tended to utilize either home-grown <literal>ThreadLocal</literal>-based contextual sessions, helper classes such as <literal>HibernateUtil</literal>, or utilized third-party frameworks, such as Spring or Pico, which provided proxy/interception-based contextual sessions."
msgstr ""
#. Tag: para
-#: architecture.xml:309
#, no-c-format
msgid "Starting with version 3.0.1, Hibernate added the <literal>SessionFactory.getCurrentSession()</literal> method. Initially, this assumed usage of <literal>JTA</literal> transactions, where the <literal>JTA</literal> transaction defined both the scope and context of a current session. Given the maturity of the numerous stand-alone <literal>JTA TransactionManager</literal> implementations, most, if not all, applications should be using <literal>JTA</literal> transaction management, whether or not they are deployed into a <literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-based contextual sessions are all you need to use."
msgstr ""
#. Tag: para
-#: architecture.xml:319
#, no-c-format
msgid "However, as of version 3.1, the processing behind <literal>SessionFactory.getCurrentSession()</literal> is now pluggable. To that end, a new extension interface, <literal>org.hibernate.context.CurrentSessionContext</literal>, and a new configuration parameter, <literal>hibernate.current_session_context_class</literal>, have been added to allow pluggability of the scope and context of defining current sessions."
msgstr ""
#. Tag: para
-#: architecture.xml:326
#, no-c-format
msgid "See the Javadocs for the <literal>org.hibernate.context.CurrentSessionContext</literal> interface for a detailed discussion of its contract. It defines a single method, <literal>currentSession()</literal>, by which the implementation is responsible for tracking the current contextual session. Out-of-the-box, Hibernate comes with three implementations of this interface:"
msgstr ""
#. Tag: para
-#: architecture.xml:336
#, no-c-format
msgid "<literal>org.hibernate.context.JTASessionContext</literal>: current sessions are tracked and scoped by a <literal>JTA</literal> transaction. The processing here is exactly the same as in the older JTA-only approach. See the Javadocs for details."
msgstr ""
#. Tag: para
-#: architecture.xml:344
#, no-c-format
msgid "<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
#. Tag: para
-#: architecture.xml:350
#, no-c-format
msgid "<literal>org.hibernate.context.ManagedSessionContext</literal>: current sessions are tracked by thread of execution. However, you are responsible to bind and unbind a <literal>Session</literal> instance with static methods on this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: architecture.xml:359
#, no-c-format
-msgid "The first two implementations provide a \"one session - one database transaction\" programming model. This is also also known and used as <emphasis>session-per-request</emphasis>. The beginning and end of a Hibernate session is defined by the duration of a database transaction. If you use programmatic transaction demarcation in plain JSE without JTA, you are advised to use the Hibernate <literal>Transaction</literal> API to hide the underlying transaction system from your code. If you use JTA, you can utilize the JTA interfaces to demarcate transactions. If you execute in an EJB container that supports CMT, transaction boundaries are defined declaratively and you do not need any transaction or session demarcation operations in your code. Refer to <xref linkend=\"transactions\"/> for more information and code examples."
+msgid "The first two implementations provide a \"one session - one database transaction\" programming model. This is also also known and used as <emphasis>session-per-request</emphasis>. The beginning and end of a Hibernate session is defined by the duration of a database transaction. If you use programmatic transaction demarcation in plain JSE without JTA, you are advised to use the Hibernate <literal>Transaction</literal> API to hide the underlying transaction system from your code. If you use JTA, you can utilize the JTA interfaces to demarcate transactions. If you execute in an EJB container that supports CMT, transaction boundaries are defined declaratively and you do not need any transaction or session demarcation operations in your code. Refer to <xref linkend=\"transactions\" /> for more information and code examples."
msgstr ""
#. Tag: para
-#: architecture.xml:371
#, no-c-format
msgid "The <literal>hibernate.current_session_context_class</literal> configuration parameter defines which <literal>org.hibernate.context.CurrentSessionContext</literal> implementation should be used. For backwards compatibility, if this configuration parameter is not set but a <literal>org.hibernate.transaction.TransactionManagerLookup</literal> is configured, Hibernate will use the <literal>org.hibernate.context.JTASessionContext</literal>. Typically, the value of this parameter would just name the implementation class to use. For the three out-of-the-box implementations, however, there are three corresponding short names: \"jta\", \"thread\", and \"managed\"."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/association_mapping.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/association_mapping.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/association_mapping.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,743 +1,198 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
+"PO-Revision-Date: 2010-02-11T05:38:14\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
msgstr ""
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr ""
#. Tag: para
-#: association_mapping.xml:35
#, no-c-format
msgid "Association mappings are often the most difficult thing to implement correctly. In this section we examine some canonical cases one by one, starting with unidirectional mappings and then bidirectional cases. We will use <literal>Person</literal> and <literal>Address</literal> in all the examples."
msgstr ""
#. Tag: para
-#: association_mapping.xml:43
#, no-c-format
msgid "Associations will be classified by multiplicity and whether or not they map to an intervening join table."
msgstr ""
#. Tag: para
-#: association_mapping.xml:48
#, no-c-format
msgid "Nullable foreign keys are not considered to be good practice in traditional data modelling, so our examples do not use nullable foreign keys. This is not a requirement of Hibernate, and the mappings will work if you drop the nullability constraints."
msgstr ""
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr ""
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
#, no-c-format
msgid "Many-to-one"
msgstr ""
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid "A <emphasis>unidirectional many-to-one association</emphasis> is the most common kind of unidirectional association."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:68
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <many-to-one name=\"address\" \n"
- " column=\"addressId\"\n"
- " not-null=\"true\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key, addressId bigint not null )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145 association_mapping.xml:210
#, no-c-format
msgid "One-to-one"
msgstr ""
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid "A <emphasis>unidirectional one-to-one association on a foreign key</emphasis> is almost identical. The only difference is the column unique constraint."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:81
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <many-to-one name=\"address\" \n"
- " column=\"addressId\" \n"
- " unique=\"true\"\n"
- " not-null=\"true\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key, addressId bigint not null unique )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:84
#, no-c-format
msgid "A <emphasis>unidirectional one-to-one association on a primary key</emphasis> usually uses a special id generator In this example, however, we have reversed the direction of the association:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:90
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"foreign\">\n"
- " <param name=\"property\">person</param>\n"
- " </generator>\n"
- " </id>\n"
- " <one-to-one name=\"person\" constrained=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table Address ( personId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
#, no-c-format
msgid "One-to-many"
msgstr ""
#. Tag: para
-#: association_mapping.xml:98
#, no-c-format
msgid "A <emphasis>unidirectional one-to-many association on a foreign key</emphasis> is an unusual case, and is not recommended."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:103
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"addresses\">\n"
- " <key column=\"personId\" \n"
- " not-null=\"true\"/>\n"
- " <one-to-many class=\"Address\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table Address ( addressId bigint not null primary key, personId bigint not null )\n"
- " ]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:106
#, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr ""
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr ""
#. Tag: para
-#: association_mapping.xml:120
#, no-c-format
msgid "A <emphasis>unidirectional one-to-many association on a join table</emphasis> is the preferred option. Specifying <literal>unique=\"true\"</literal>, changes the multiplicity from many-to-many to one-to-many."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:126
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"addresses\" table=\"PersonAddress\">\n"
- " <key column=\"personId\"/>\n"
- " <many-to-many column=\"addressId\"\n"
- " unique=\"true\"\n"
- " class=\"Address\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table PersonAddress ( personId not null, addressId bigint not null primary key )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:134
#, no-c-format
msgid "A <emphasis>unidirectional many-to-one association on a join table</emphasis> is common when the association is optional. For example:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:139
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <join table=\"PersonAddress\" \n"
- " optional=\"true\">\n"
- " <key column=\"personId\" unique=\"true\"/>\n"
- " <many-to-one name=\"address\"\n"
- " column=\"addressId\" \n"
- " not-null=\"true\"/>\n"
- " </join>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table PersonAddress ( personId bigint not null primary key, addressId bigint not null )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:147
#, no-c-format
msgid "A <emphasis>unidirectional one-to-one association on a join table</emphasis> is possible, but extremely unusual."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:152
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <join table=\"PersonAddress\" \n"
- " optional=\"true\">\n"
- " <key column=\"personId\" \n"
- " unique=\"true\"/>\n"
- " <many-to-one name=\"address\"\n"
- " column=\"addressId\" \n"
- " not-null=\"true\"\n"
- " unique=\"true\"/>\n"
- " </join>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table PersonAddress ( personId bigint not null primary key, addressId bigint not null unique )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
#, no-c-format
msgid "Many-to-many"
msgstr ""
#. Tag: para
-#: association_mapping.xml:160
#, no-c-format
msgid "Finally, here is an example of a <emphasis>unidirectional many-to-many association</emphasis>."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"addresses\" table=\"PersonAddress\">\n"
- " <key column=\"personId\"/>\n"
- " <many-to-many column=\"addressId\"\n"
- " class=\"Address\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table PersonAddress ( personId bigint not null, addressId bigint not null, primary key (personId, addressId) )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
msgstr ""
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
#, no-c-format
msgid "one-to-many / many-to-one"
msgstr ""
#. Tag: para
-#: association_mapping.xml:177
#, no-c-format
msgid "A <emphasis>bidirectional many-to-one association</emphasis> is the most common kind of association. The following example illustrates the standard parent/child relationship."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:183
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <many-to-one name=\"address\" \n"
- " column=\"addressId\"\n"
- " not-null=\"true\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"people\" inverse=\"true\">\n"
- " <key column=\"addressId\"/>\n"
- " <one-to-many class=\"Person\"/>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:187
#, no-c-format
msgid "If you use a <literal>List</literal>, or other indexed collection, set the <literal>key</literal> column of the foreign key to <literal>not null</literal>. Hibernate will manage the association from the collections side to maintain the index of each element, making the other side virtually inverse by setting <literal>update=\"false\"</literal> and <literal>insert=\"false\"</literal>:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:195
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\"/>\n"
- " ...\n"
- " <many-to-one name=\"address\"\n"
- " column=\"addressId\"\n"
- " not-null=\"true\"\n"
- " insert=\"false\"\n"
- " update=\"false\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\"/>\n"
- " ...\n"
- " <list name=\"people\">\n"
- " <key column=\"addressId\" not-null=\"true\"/>\n"
- " <list-index column=\"peopleIdx\"/>\n"
- " <one-to-many class=\"Person\"/>\n"
- " </list>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:197
#, no-c-format
msgid "If the underlying foreign key column is <literal>NOT NULL</literal>, it is important that you define <literal>not-null=\"true\"</literal> on the <literal><key></literal> element of the collection mapping. Do not only declare <literal>not-null=\"true\"</literal> on a possible nested <literal><column></literal> element, but on the <literal><key></literal> element."
msgstr ""
#. Tag: para
-#: association_mapping.xml:212
#, no-c-format
msgid "A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> is common:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:217
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <many-to-one name=\"address\" \n"
- " column=\"addressId\" \n"
- " unique=\"true\"\n"
- " not-null=\"true\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <one-to-one name=\"person\" \n"
- " property-ref=\"address\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:220
#, no-c-format
msgid "A <emphasis>bidirectional one-to-one association on a primary key</emphasis> uses the special id generator:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <one-to-one name=\"address\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"foreign\">\n"
- " <param name=\"property\">person</param>\n"
- " </generator>\n"
- " </id>\n"
- " <one-to-one name=\"person\" \n"
- " constrained=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr ""
#. Tag: para
-#: association_mapping.xml:238
#, no-c-format
msgid "The following is an example of a <emphasis>bidirectional one-to-many association on a join table</emphasis>. The <literal>inverse=\"true\"</literal> can go on either end of the association, on the collection, or on the join."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:244
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"addresses\" \n"
- " table=\"PersonAddress\">\n"
- " <key column=\"personId\"/>\n"
- " <many-to-many column=\"addressId\"\n"
- " unique=\"true\"\n"
- " class=\"Address\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <join table=\"PersonAddress\" \n"
- " inverse=\"true\" \n"
- " optional=\"true\">\n"
- " <key column=\"addressId\"/>\n"
- " <many-to-one name=\"person\"\n"
- " column=\"personId\"\n"
- " not-null=\"true\"/>\n"
- " </join>\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "create table Person ( personId bigint not null primary key )\n"
- "create table PersonAddress ( personId bigint not null, addressId bigint not null primary key )\n"
- "create table Address ( addressId bigint not null primary key )\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:250
#, no-c-format
msgid "one to one"
msgstr ""
#. Tag: para
-#: association_mapping.xml:252
#, no-c-format
msgid "A <emphasis>bidirectional one-to-one association on a join table</emphasis> is possible, but extremely unusual."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:257
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <join table=\"PersonAddress\" \n"
- " optional=\"true\">\n"
- " <key column=\"personId\" \n"
- " unique=\"true\"/>\n"
- " <many-to-one name=\"address\"\n"
- " column=\"addressId\" \n"
- " not-null=\"true\"\n"
- " unique=\"true\"/>\n"
- " </join>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <join table=\"PersonAddress\" \n"
- " optional=\"true\"\n"
- " inverse=\"true\">\n"
- " <key column=\"addressId\" \n"
- " unique=\"true\"/>\n"
- " <many-to-one name=\"person\"\n"
- " column=\"personId\" \n"
- " not-null=\"true\"\n"
- " unique=\"true\"/>\n"
- " </join>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:265
#, no-c-format
msgid "Here is an example of a <emphasis>bidirectional many-to-many association</emphasis>."
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\" column=\"personId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"addresses\" table=\"PersonAddress\">\n"
- " <key column=\"personId\"/>\n"
- " <many-to-many column=\"addressId\"\n"
- " class=\"Address\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- " <id name=\"id\" column=\"addressId\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
- " <key column=\"addressId\"/>\n"
- " <many-to-many column=\"personId\"\n"
- " class=\"Person\"/>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
msgstr ""
#. Tag: para
-#: association_mapping.xml:280
#, no-c-format
msgid "More complex association joins are <emphasis>extremely</emphasis> rare. Hibernate handles more complex situations by using SQL fragments embedded in the mapping document. For example, if a table with historical account information data defines <literal>accountNumber</literal>, <literal>effectiveEndDate</literal> and <literal>effectiveStartDate</literal>columns, it would be mapped as follows:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:289
-#, no-c-format
-msgid ""
- "<![CDATA[<properties name=\"currentAccountKey\">\n"
- " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
- " <property name=\"currentAccount\" type=\"boolean\">\n"
- " <formula>case when effectiveEndDate is null then 1 else 0 end</formula>\n"
- " </property>\n"
- "</properties>\n"
- "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
- "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:291
#, no-c-format
msgid "You can then map an association to the <emphasis>current</emphasis> instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:296
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
- " property-ref=\"currentAccountKey\"\n"
- " class=\"AccountInfo\">\n"
- " <column name=\"accountNumber\"/>\n"
- " <formula>'1'</formula>\n"
- "</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:298
#, no-c-format
msgid "In a more complex example, imagine that the association between <literal>Employee</literal> and <literal>Organization</literal> is maintained in an <literal>Employment</literal> table full of historical employment data. An association to the employee's <emphasis>most recent</emphasis> employer, the one with the most recent <literal>startDate</literal>, could be mapped in the following way:"
msgstr ""
-#. Tag: programlisting
-#: association_mapping.xml:306
-#, no-c-format
-msgid ""
- "<![CDATA[<join>\n"
- " <key column=\"employeeId\"/>\n"
- " <subselect>\n"
- " select employeeId, orgId \n"
- " from Employments \n"
- " group by orgId \n"
- " having startDate = max(startDate)\n"
- " </subselect>\n"
- " <many-to-one name=\"mostRecentEmployer\" \n"
- " class=\"Organization\" \n"
- " column=\"orgId\"/>\n"
- "</join>]]>"
-msgstr ""
-
#. Tag: para
-#: association_mapping.xml:308
#, no-c-format
msgid "This functionality allows a degree of creativity and flexibility, but it is more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/basic_mapping.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/basic_mapping.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/basic_mapping.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,3360 +1,1959 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
msgstr ""
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:34
#, no-c-format
msgid "Object/relational mappings are usually defined in an XML document. The mapping document is designed to be readable and hand-editable. The mapping language is Java-centric, meaning that mappings are constructed around persistent class declarations and not table declarations."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:41
#, no-c-format
msgid "Please note that even though many Hibernate users choose to write the XML by hand, a number of tools exist to generate the mapping document. These include XDoclet, Middlegen and AndroMDA."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:47
#, no-c-format
msgid "Here is an example mapping:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:51
-#, no-c-format
-msgid ""
- "<![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\">\n"
- "\n"
- "<hibernate-mapping package=\"eg\">\n"
- "\n"
- " <class name=\"Cat\"\n"
- " table=\"cats\"\n"
- " discriminator-value=\"C\">\n"
- "\n"
- " <id name=\"id\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- "\n"
- " <discriminator column=\"subclass\"\n"
- " type=\"character\"/>\n"
- "\n"
- " <property name=\"weight\"/>\n"
- "\n"
- " <property name=\"birthdate\"\n"
- " type=\"date\"\n"
- " not-null=\"true\"\n"
- " update=\"false\"/>\n"
- "\n"
- " <property name=\"color\"\n"
- " type=\"eg.types.ColorUserType\"\n"
- " not-null=\"true\"\n"
- " update=\"false\"/>\n"
- "\n"
- " <property name=\"sex\"\n"
- " not-null=\"true\"\n"
- " update=\"false\"/>\n"
- "\n"
- " <property name=\"litterId\"\n"
- " column=\"litterId\"\n"
- " update=\"false\"/>\n"
- "\n"
- " <many-to-one name=\"mother\"\n"
- " column=\"mother_id\"\n"
- " update=\"false\"/>\n"
- "\n"
- " <set name=\"kittens\"\n"
- " inverse=\"true\"\n"
- " order-by=\"litter_id\">\n"
- " <key column=\"mother_id\"/>\n"
- " <one-to-many class=\"Cat\"/>\n"
- " </set>\n"
- "\n"
- " <subclass name=\"DomesticCat\"\n"
- " discriminator-value=\"D\">\n"
- "\n"
- " <property name=\"name\"\n"
- " type=\"string\"/>\n"
- "\n"
- " </subclass>\n"
- "\n"
- " </class>\n"
- "\n"
- " <class name=\"Dog\">\n"
- " <!-- mapping for Dog could go here -->\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:53
#, no-c-format
msgid "We will now discuss the content of the mapping document. We will only describe, however, the document elements and attributes that are used by Hibernate at runtime. The mapping document also contains some extra optional attributes and elements that affect the database schemas exported by the schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:66
#, no-c-format
msgid "All XML mappings should declare the doctype shown. The actual DTD can be found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/hibernate </literal>, or in <literal>hibernate3.jar</literal>. Hibernate will always look for the DTD in its classpath first. If you experience lookups of the DTD using an Internet connection, check the DTD declaration against the contents of your classpath."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:77
#, no-c-format
msgid "Hibernate will first attempt to resolve DTDs in its classpath. It does this is by registering a custom <literal>org.xml.sax.EntityResolver</literal> implementation with the SAXReader it uses to read in the xml files. This custom <literal>EntityResolver</literal> recognizes two different systemId namespaces:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:85
#, no-c-format
msgid "a <literal>hibernate namespace</literal> is recognized whenever the resolver encounters a systemId starting with <literal>http://hibernate.sourceforge.net/</literal>. The resolver attempts to resolve these entities via the classloader which loaded the Hibernate classes."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:94
#, no-c-format
msgid "a <literal>user namespace</literal> is recognized whenever the resolver encounters a systemId using a <literal>classpath://</literal> URL protocol. The resolver will attempt to resolve these entities via (1) the current thread context classloader and (2) the classloader which loaded the Hibernate classes."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:103
#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
- "<![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\" [\n"
- " <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
- "]>\n"
- "\n"
- "<hibernate-mapping package=\"your.domain\">\n"
- " <class name=\"MyEntity\">\n"
- " <id name=\"id\" type=\"my-custom-id-type\">\n"
- " ...\n"
- " </id>\n"
- " <class>\n"
- " &types;\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
#, no-c-format
msgid "Where <literal>types.xml</literal> is a resource in the <literal>your.domain</literal> package and contains a custom <link linkend=\"mapping-types-custom\">typedef</link>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:115
#, no-c-format
msgid "Hibernate-mapping"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:117
#, no-c-format
msgid "This element has several optional attributes. The <literal>schema</literal> and <literal>catalog</literal> attributes specify that tables referred to in this mapping belong to the named schema and/or catalog. If they are specified, tablenames will be qualified by the given schema and catalog names. If they are missing, tablenames will be unqualified. The <literal>default-cascade</literal> attribute specifies what cascade style should be assumed for properties and collections that do not specify a <literal>cascade</literal> attribute. By default, the <literal>auto-import</literal> attribute allows you to use unqualified class names in the query language."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:138
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping\n"
- " schema=\"schemaName\"\n"
- " catalog=\"catalogName\"\n"
- " default-cascade=\"cascade_style\"\n"
- " default-access=\"field|property|ClassName\"\n"
- " default-lazy=\"true|false\"\n"
- " auto-import=\"true|false\"\n"
- " package=\"package.name\"\n"
- " />]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:141
#, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:146
#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:151
#, no-c-format
msgid "<literal>default-cascade</literal> (optional - defaults to <literal>none</literal>): a default cascade style."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:157
#, no-c-format
msgid "<literal>default-access</literal> (optional - defaults to <literal>property</literal>): the strategy Hibernate should use for accessing all properties. It can be a custom implementation of <literal>PropertyAccessor</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:164
#, no-c-format
msgid "<literal>default-lazy</literal> (optional - defaults to <literal>true</literal>): the default value for unspecified <literal>lazy</literal> attributes of class and collection mappings."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:171
#, no-c-format
msgid "<literal>auto-import</literal> (optional - defaults to <literal>true</literal>): specifies whether we can use unqualified class names of classes in this mapping in the query language."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:178
#, no-c-format
msgid "<literal>package</literal> (optional): specifies a package prefix to use for unqualified class names in the mapping document."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:186
#, no-c-format
msgid "If you have two persistent classes with the same unqualified name, you should set <literal>auto-import=\"false\"</literal>. An exception will result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:192
#, no-c-format
msgid "The <literal>hibernate-mapping</literal> element allows you to nest several persistent <literal><class></literal> mappings, as shown above. It is, however, good practice (and expected by some tools) to map only a single persistent class, or a single class hierarchy, in one mapping file and name it after the persistent superclass. For example, <literal>Cat.hbm.xml</literal>, <literal>Dog.hbm.xml</literal>, or if using inheritance, <literal>Animal.hbm.xml</literal>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:205
#, no-c-format
msgid "Class"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:207
#, no-c-format
msgid "You can declare a persistent class using the <literal>class</literal> element. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:235
-#, no-c-format
-msgid ""
- "<![CDATA[<class\n"
- " name=\"ClassName\"\n"
- " table=\"tableName\"\n"
- " discriminator-value=\"discriminator_value\"\n"
- " mutable=\"true|false\"\n"
- " schema=\"owner\"\n"
- " catalog=\"catalog\"\n"
- " proxy=\"ProxyInterface\"\n"
- " dynamic-update=\"true|false\"\n"
- " dynamic-insert=\"true|false\"\n"
- " select-before-update=\"true|false\"\n"
- " polymorphism=\"implicit|explicit\"\n"
- " where=\"arbitrary sql where condition\"\n"
- " persister=\"PersisterClass\"\n"
- " batch-size=\"N\"\n"
- " optimistic-lock=\"none|version|dirty|all\"\n"
- " lazy=\"true|false\"\n"
- " entity-name=\"EntityName\"\n"
- " check=\"arbitrary sql check condition\"\n"
- " rowid=\"rowid\"\n"
- " subselect=\"SQL expression\"\n"
- " abstract=\"true|false\"\n"
- " node=\"element-name\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:238
#, no-c-format
msgid "<literal>name</literal> (optional): the fully qualified Java class name of the persistent class or interface. If this attribute is missing, it is assumed that the mapping is for a non-POJO entity."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:245
#, no-c-format
msgid "<literal>table</literal> (optional - defaults to the unqualified class name): the name of its database table."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:251
#, no-c-format
msgid "<literal>discriminator-value</literal> (optional - defaults to the class name): a value that distinguishes individual subclasses that is used for polymorphic behavior. Acceptable values include <literal>null</literal> and <literal>not null</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:258
#, no-c-format
msgid "<literal>mutable</literal> (optional - defaults to <literal>true</literal>): specifies that instances of the class are (not) mutable."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
#, no-c-format
msgid "<literal>schema</literal> (optional): overrides the schema name specified by the root <literal><hibernate-mapping></literal> element."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
#, no-c-format
msgid "<literal>catalog</literal> (optional): overrides the catalog name specified by the root <literal><hibernate-mapping></literal> element."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:276
#, no-c-format
msgid "<literal>proxy</literal> (optional): specifies an interface to use for lazy initializing proxies. You can specify the name of the class itself."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:282
#, no-c-format
msgid "<literal>dynamic-update</literal> (optional - defaults to <literal>false</literal>): specifies that <literal>UPDATE</literal> SQL should be generated at runtime and can contain only those columns whose values have changed."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:289
#, no-c-format
msgid "<literal>dynamic-insert</literal> (optional - defaults to <literal>false</literal>): specifies that <literal>INSERT</literal> SQL should be generated at runtime and contain only the columns whose values are not null."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:296
#, no-c-format
msgid "<literal>select-before-update</literal> (optional - defaults to <literal>false</literal>): specifies that Hibernate should <emphasis>never</emphasis> perform an SQL <literal>UPDATE</literal> unless it is certain that an object is actually modified. Only when a transient object has been associated with a new session using <literal>update()</literal>, will Hibernate perform an extra SQL <literal>SELECT</literal> to determine if an <literal>UPDATE</literal> is actually required."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:306
#, no-c-format
msgid "<literal>polymorphism</literal> (optional - defaults to <literal>implicit</literal>): determines whether implicit or explicit query polymorphism is used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:312
#, no-c-format
msgid "<literal>where</literal> (optional): specifies an arbitrary SQL <literal>WHERE</literal> condition to be used when retrieving objects of this class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:318
#, no-c-format
msgid "<literal>persister</literal> (optional): specifies a custom <literal>ClassPersister</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:323
#, no-c-format
msgid "<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): specifies a \"batch size\" for fetching instances of this class by identifier."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:329
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>version</literal>): determines the optimistic locking strategy."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:335
#, no-c-format
msgid "<literal>lazy</literal> (optional): lazy fetching can be disabled by setting <literal>lazy=\"false\"</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:341
#, no-c-format
-msgid "<literal>entity-name</literal> (optional - defaults to the class name): Hibernate3 allows a class to be mapped multiple times, potentially to different tables. It also allows entity mappings that are represented by Maps or XML at the Java level. In these cases, you should provide an explicit arbitrary name for the entity. See <xref linkend=\"persistent-classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+msgid "<literal>entity-name</literal> (optional - defaults to the class name): Hibernate3 allows a class to be mapped multiple times, potentially to different tables. It also allows entity mappings that are represented by Maps or XML at the Java level. In these cases, you should provide an explicit arbitrary name for the entity. See <xref linkend=\"persistent-classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:351
#, no-c-format
msgid "<literal>check</literal> (optional): an SQL expression used to generate a multi-row <emphasis>check</emphasis> constraint for automatic schema generation."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:357
#, no-c-format
msgid "<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra column for fast updates once this option has been set to <literal>rowid</literal>. A ROWID is an implementation detail and represents the physical location of a stored tuple."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:364
#, no-c-format
msgid "<literal>subselect</literal> (optional): maps an immutable and read-only entity to a database subselect. This is useful if you want to have a view instead of a base table. See below for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:371
#, no-c-format
msgid "<literal>abstract</literal> (optional): is used to mark abstract superclasses in <literal><union-subclass></literal> hierarchies."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:379
#, no-c-format
msgid "It is acceptable for the named persistent class to be an interface. You can declare implementing classes of that interface using the <literal><subclass></literal> element. You can persist any <emphasis>static</emphasis> inner class. Specify the class name using the standard form i.e. <literal>e.g.Foo$Bar</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:386
#, no-c-format
msgid "Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated or deleted by the application. This allows Hibernate to make some minor performance optimizations."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:391
#, no-c-format
msgid "The optional <literal>proxy</literal> attribute enables lazy initialization of persistent instances of the class. Hibernate will initially return CGLIB proxies that implement the named interface. The persistent object will load when a method of the proxy is invoked. See \"Initializing collections and proxies\" below."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:398
#, no-c-format
msgid "<emphasis>Implicit</emphasis> polymorphism means that instances of the class will be returned by a query that names any superclass or implemented interface or class, and that instances of any subclass of the class will be returned by a query that names the class itself. <emphasis>Explicit</emphasis> polymorphism means that class instances will be returned only by queries that explicitly name that class. Queries that name the class will return only instances of subclasses mapped inside this <literal><class></literal> declaration as a <literal><subclass></literal> or <literal><joined-subclass></literal>. For most purposes, the default <literal>polymorphism=\"implicit\"</literal> is appropriate. Explicit polymorphism is useful when two different classes are mapped to the same table This allows a \"lightweight\" class that contains a subset of the table columns."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:410
#, no-c-format
msgid "The <literal>persister</literal> attribute lets you customize the persistence strategy used for the class. You can, for example, specify your own subclass of <literal>org.hibernate.persister.EntityPersister</literal>, or you can even provide a completely new implementation of the interface <literal>org.hibernate.persister.ClassPersister</literal> that implements, for example, persistence via stored procedure calls, serialization to flat files or LDAP. See <literal>org.hibernate.test.CustomPersister</literal> for a simple example of \"persistence\" to a <literal>Hashtable</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:421
#, no-c-format
msgid "The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> settings are not inherited by subclasses, so they can also be specified on the <literal><subclass></literal> or <literal><joined-subclass></literal> elements. Although these settings can increase performance in some cases, they can actually decrease performance in others."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:429
#, no-c-format
msgid "Use of <literal>select-before-update</literal> will usually decrease performance. It is useful to prevent a database update trigger being called unnecessarily if you reattach a graph of detached instances to a <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid "If you enable <literal>dynamic-update</literal>, you will have a choice of optimistic locking strategies:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:441
#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:446
#, no-c-format
msgid "<literal>all</literal>: check all columns"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:451
#, no-c-format
msgid "<literal>dirty</literal>: check the changed columns, allowing some concurrent updates"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:456
#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:461
#, no-c-format
msgid "It is <emphasis>strongly</emphasis> recommended that you use version/timestamp columns for optimistic locking with Hibernate. This strategy optimizes performance and correctly handles modifications made to detached instances (i.e. when <literal>Session.merge()</literal> is used)."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:468
#, no-c-format
msgid "There is no difference between a view and a base table for a Hibernate mapping. This is transparent at the database level, although some DBMS do not support views properly, especially with updates. Sometimes you want to use a view, but you cannot create one in the database (i.e. with a legacy schema). In this case, you can map an immutable and read-only entity to a given SQL subselect expression:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:476
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Summary\">\n"
- " <subselect>\n"
- " select item.name, max(bid.amount), count(*)\n"
- " from item\n"
- " join bid on bid.item_id = item.id\n"
- " group by item.name\n"
- " </subselect>\n"
- " <synchronize table=\"item\"/>\n"
- " <synchronize table=\"bid\"/>\n"
- " <id name=\"name\"/>\n"
- " ...\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:478
#, no-c-format
msgid "Declare the tables to synchronize this entity with, ensuring that auto-flush happens correctly and that queries against the derived entity do not return stale data. The <literal><subselect></literal> is available both as an attribute and a nested mapping element."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
+msgid "id"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid "Mapped classes <emphasis>must</emphasis> declare the primary key column of the database table. Most classes will also have a JavaBeans-style property holding the unique identifier of an instance. The <literal><id></literal> element defines the mapping from that property to the primary key column."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:505
-#, no-c-format
-msgid ""
- "<![CDATA[<id\n"
- " name=\"propertyName\"\n"
- " type=\"typename\"\n"
- " column=\"column_name\"\n"
- " unsaved-value=\"null|any|none|undefined|id_value\"\n"
- " access=\"field|property|ClassName\">\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- "\n"
- " <generator class=\"generatorClass\"/>\n"
- "</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:508
#, no-c-format
msgid "<literal>name</literal> (optional): the name of the identifier property."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid "<literal>type</literal> (optional): a name that indicates the Hibernate type."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:518
#, no-c-format
msgid "<literal>column</literal> (optional - defaults to the property name): the name of the primary key column."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:524
#, no-c-format
msgid "<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" value): an identifier property value that indicates an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:532
#, no-c-format
msgid "<literal>access</literal> (optional - defaults to <literal>property</literal>): the strategy Hibernate should use for accessing the property value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid "If the <literal>name</literal> attribute is missing, it is assumed that the class has no identifier property."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid "The <literal>unsaved-value</literal> attribute is almost never needed in Hibernate3."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:549
#, no-c-format
msgid "There is an alternative <literal><composite-id></literal> declaration that allows access to legacy data with composite keys. Its use is strongly discouraged for anything else."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid "The optional <literal><generator></literal> child element names a Java class used to generate unique identifiers for instances of the persistent class. If any parameters are required to configure or initialize the generator instance, they are passed using the <literal><param></literal> element."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:564
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
- " <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
- " <param name=\"table\">uid_table</param>\n"
- " <param name=\"column\">next_hi_value_column</param>\n"
- " </generator>\n"
- "</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:566
#, no-c-format
msgid "All generators implement the interface <literal>org.hibernate.id.IdentifierGenerator</literal>. This is a very simple interface. Some applications can choose to provide their own specialized implementations, however, Hibernate provides a range of built-in implementations. The shortcut names for the built-in generators are as follows:"
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:574
+#. Tag: term
#, no-c-format
-msgid "increment"
+msgid "<literal>increment</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid "generates identifiers of type <literal>long</literal>, <literal>short</literal> or <literal>int</literal> that are unique only when no other process is inserting data into the same table. <emphasis>Do not use in a cluster.</emphasis>"
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:585
+#. Tag: term
#, no-c-format
-msgid "identity"
+msgid "<literal>identity</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid "supports identity columns in DB2, MySQL, MS SQL Server, Sybase and HypersonicSQL. The returned identifier is of type <literal>long</literal>, <literal>short</literal> or <literal>int</literal>."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:595
+#. Tag: term
#, no-c-format
-msgid "sequence"
+msgid "<literal>sequence</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid "uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in Interbase. The returned identifier is of type <literal>long</literal>, <literal>short</literal> or <literal>int</literal>"
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:605
+#. Tag: term
#, no-c-format
-msgid "hilo"
+msgid "<literal>hilo</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid "uses a hi/lo algorithm to efficiently generate identifiers of type <literal>long</literal>, <literal>short</literal> or <literal>int</literal>, given a table and column (by default <literal>hibernate_unique_key</literal> and <literal>next_hi</literal> respectively) as a source of hi values. The hi/lo algorithm generates identifiers that are unique only for a particular database."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:617
+#. Tag: term
#, no-c-format
-msgid "seqhilo"
+msgid "<literal>seqhilo</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid "uses a hi/lo algorithm to efficiently generate identifiers of type <literal>long</literal>, <literal>short</literal> or <literal>int</literal>, given a named database sequence."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:627
+#. Tag: term
#, no-c-format
-msgid "uuid"
+msgid "<literal>uuid</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:629
#, no-c-format
msgid "uses a 128-bit UUID algorithm to generate identifiers of type string that are unique within a network (the IP address is used). The UUID is encoded as a string of 32 hexadecimal digits in length."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:637
+#. Tag: term
#, no-c-format
-msgid "guid"
+msgid "<literal>guid</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:645
+#. Tag: term
#, no-c-format
-msgid "native"
+msgid "<literal>native</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:647
#, no-c-format
msgid "selects <literal>identity</literal>, <literal>sequence</literal> or <literal>hilo</literal> depending upon the capabilities of the underlying database."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:655
+#. Tag: term
#, no-c-format
-msgid "assigned"
+msgid "<literal>assigned</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:657
#, no-c-format
msgid "lets the application assign an identifier to the object before <literal>save()</literal> is called. This is the default strategy if no <literal><generator></literal> element is specified."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:665
+#. Tag: term
#, no-c-format
-msgid "select"
+msgid "<literal>select</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:667
#, no-c-format
msgid "retrieves a primary key, assigned by a database trigger, by selecting the row by some unique key and retrieving the primary key value."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:674
+#. Tag: term
#, no-c-format
-msgid "foreign"
+msgid "<literal>foreign</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:676
#, no-c-format
msgid "uses the identifier of another associated object. It is usually used in conjunction with a <literal><one-to-one></literal> primary key association."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
+msgid "<literal>sequence-identity</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:685
#, no-c-format
msgid "a specialized sequence generation strategy that utilizes a database sequence for the actual value generation, but combines this with JDBC3 getGeneratedKeys to return the generated identifier value as part of the insert statement execution. This strategy is only supported on Oracle 10g drivers targeted for JDK 1.4. Comments on these insert statements are disabled due to a bug in the Oracle drivers."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:703
#, no-c-format
msgid "The <literal>hilo</literal> and <literal>seqhilo</literal> generators provide two alternate implementations of the hi/lo algorithm. The first implementation requires a \"special\" database table to hold the next available \"hi\" value. Where supported, the second uses an Oracle-style sequence."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:710
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
- " <generator class=\"hilo\">\n"
- " <param name=\"table\">hi_value</param>\n"
- " <param name=\"column\">next_value</param>\n"
- " <param name=\"max_lo\">100</param>\n"
- " </generator>\n"
- "</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
- " <generator class=\"seqhilo\">\n"
- " <param name=\"sequence\">hi_value</param>\n"
- " <param name=\"max_lo\">100</param>\n"
- " </generator>\n"
- "</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:714
#, no-c-format
msgid "Unfortunately, you cannot use <literal>hilo</literal> when supplying your own <literal>Connection</literal> to Hibernate. When Hibernate uses an application server datasource to obtain connections enlisted with JTA, you must configure the <literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:724
#, no-c-format
msgid "The UUID contains: IP address, startup time of the JVM that is accurate to a quarter second, system time and a counter value that is unique within the JVM. It is not possible to obtain a MAC address or memory address from Java code, so this is the best option without using JNI."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:734
#, no-c-format
msgid "For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), you can use <literal>identity</literal> key generation. For databases that support sequences (DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB) you can use <literal>sequence</literal> style key generation. Both of these strategies require two SQL queries to insert a new object. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:742
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
- " <generator class=\"sequence\">\n"
- " <param name=\"sequence\">person_id_sequence</param>\n"
- " </generator>\n"
- "</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0\">\n"
- " <generator class=\"identity\"/>\n"
- "</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:746
#, no-c-format
msgid "For cross-platform development, the <literal>native</literal> strategy will, depending on the capabilities of the underlying database, choose from the <literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</literal> strategies."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:755
#, no-c-format
msgid "If you want the application to assign identifiers, as opposed to having Hibernate generate them, you can use the <literal>assigned</literal> generator. This special generator uses the identifier value already assigned to the object's identifier property. The generator is used when the primary key is a natural key instead of a surrogate key. This is the default behavior if you do not specify a <literal><generator></literal> element."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:764
#, no-c-format
msgid "The <literal>assigned</literal> generator makes Hibernate use <literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go to the database to determine if an instance is transient or detached, unless there is a version or timestamp property, or you define <literal>Interceptor.isUnsaved()</literal>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:775
#, no-c-format
msgid "Hibernate does not generate DDL with triggers. It is for legacy schemas only."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:779
-#, no-c-format
-msgid ""
- "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
- " <generator class=\"select\">\n"
- " <param name=\"key\">socialSecurityNumber</param>\n"
- " </generator>\n"
- "</id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:781
#, no-c-format
msgid "In the above example, there is a unique valued property named <literal>socialSecurityNumber</literal>. It is defined by the class, as a natural key and a surrogate key named <literal>person_id</literal>, whose value is generated by a trigger."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:795
#, no-c-format
msgid "Starting with release 3.2.3, there are 2 new generators which represent a re-thinking of 2 different aspects of identifier generation. The first aspect is database portability; the second is optimization Optimization means that you do not have to query the database for every request for a new identifier value. These two new generators are intended to take the place of some of the named generators described above, starting in 3.3.x. However, they are included in the current releases and can be referenced by FQN."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:803
#, no-c-format
msgid "The first of these new generators is <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</literal> which is intended, firstly, as a replacement for the <literal>sequence</literal> generator and, secondly, as a better portability generator than <literal>native</literal>. This is because <literal>native</literal> generally chooses between <literal>identity</literal> and <literal>sequence</literal> which have largely different semantics that can cause subtle issues in applications eyeing portability. <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</literal>, however, achieves portability in a different manner. It chooses between a table or a sequence in the database to store its incrementing values, depending on the capabilities of the dialect being used. The difference between this and <literal>native</literal> is that table-based and sequence-based storage have the same exact semantic. In fact, sequences are exactly what Hibernate tries to emulate with!
its table-based generators. This generator has a number of configuration parameters:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:817
#, no-c-format
msgid "<literal>sequence_name</literal> (optional, defaults to <literal>hibernate_sequence</literal>): the name of the sequence or table to be used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:823
#, no-c-format
msgid "<literal>initial_value</literal> (optional, defaults to <literal>1</literal>): the initial value to be retrieved from the sequence/table. In sequence creation terms, this is analogous to the clause typically named \"STARTS WITH\"."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:830
#, no-c-format
msgid "<literal>increment_size</literal> (optional - defaults to <literal>1</literal>): the value by which subsequent calls to the sequence/table should differ. In sequence creation terms, this is analogous to the clause typically named \"INCREMENT BY\"."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:837
#, no-c-format
msgid "<literal>force_table_use</literal> (optional - defaults to <literal>false</literal>): should we force the use of a table as the backing structure even though the dialect might support sequence?"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:844
#, no-c-format
msgid "<literal>value_column</literal> (optional - defaults to <literal>next_val</literal>): only relevant for table structures, it is the name of the column on the table which is used to hold the value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:851
#, no-c-format
-msgid "<literal>optimizer</literal> (optional - defaults to <literal>none</literal>): See"
+msgid "<literal>optimizer</literal> (optional - defaults to <literal>none</literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:858
#, no-c-format
msgid "The second of these new generators is <literal>org.hibernate.id.enhanced.TableGenerator</literal>, which is intended, firstly, as a replacement for the <literal>table</literal> generator, even though it actually functions much more like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>, and secondly, as a re-implementation of <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal> that utilizes the notion of pluggable optimizers. Essentially this generator defines a table capable of holding a number of different increment values simultaneously by using multiple distinctly keyed rows. This generator has a number of configuration parameters:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:868
#, no-c-format
msgid "<literal>table_name</literal> (optional - defaults to <literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:874
#, no-c-format
msgid "<literal>value_column_name</literal> (optional - defaults to <literal>next_val</literal>): the name of the column on the table that is used to hold the value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:880
#, no-c-format
msgid "<literal>segment_column_name</literal> (optional - defaults to <literal>sequence_name</literal>): the name of the column on the table that is used to hold the \"segment key\". This is the value which identifies which increment value to use."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:887
#, no-c-format
msgid "<literal>segment_value</literal> (optional - defaults to <literal>default</literal>): The \"segment key\" value for the segment from which we want to pull increment values for this generator."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:894
#, no-c-format
msgid "<literal>segment_value_length</literal> (optional - defaults to <literal>255</literal>): Used for schema generation; the column size to create this segment key column."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:900
#, no-c-format
msgid "<literal>initial_value</literal> (optional - defaults to <literal>1</literal>): The initial value to be retrieved from the table."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:906
#, no-c-format
msgid "<literal>increment_size</literal> (optional - defaults to <literal>1</literal>): The value by which subsequent calls to the table should differ."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:912
#, no-c-format
-msgid "<literal>optimizer</literal> (optional - defaults to <literal></literal>): See"
+msgid "<literal>optimizer</literal> (optional - defaults to <literal></literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:923
#, no-c-format
-msgid "For identifier generators that store values in the database, it is inefficient for them to hit the database on each and every call to generate a new identifier value. Instead, you can group a bunch of them in memory and only hit the database when you have exhausted your in-memory value group. This is the role of the pluggable optimizers. Currently only the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> support this operation."
+msgid "For identifier generators that store values in the database, it is inefficient for them to hit the database on each and every call to generate a new identifier value. Instead, you can group a bunch of them in memory and only hit the database when you have exhausted your in-memory value group. This is the role of the pluggable optimizers. Currently only the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> support this operation."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:931
#, no-c-format
msgid "<literal>none</literal> (generally this is the default if no optimizer was specified): this will not perform any optimizations and hit the database for each and every request."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:937
#, no-c-format
msgid "<literal>hilo</literal>: applies a hi/lo algorithm around the database retrieved values. The values from the database for this optimizer are expected to be sequential. The values retrieved from the database structure for this optimizer indicates the \"group number\". The <literal>increment_size</literal> is multiplied by that value in memory to define a group \"hi value\"."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:946
#, no-c-format
msgid "<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this optimizer attempts to minimize the number of hits to the database. Here, however, we simply store the starting value for the \"next group\" into the database structure rather than a sequential value in combination with an in-memory grouping algorithm. Here, <literal>increment_size</literal> refers to the values coming from the database."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:961
-#, no-c-format
-msgid ""
- "<![CDATA[<composite-id\n"
- " name=\"propertyName\"\n"
- " class=\"ClassName\"\n"
- " mapped=\"true|false\"\n"
- " access=\"field|property|ClassName\">\n"
- " node=\"element-name|.\"\n"
- "\n"
- " <key-property name=\"propertyName\" type=\"typename\" column=\"column_name\"/>\n"
- " <key-many-to-one name=\"propertyName class=\"ClassName\" column=\"column_name\"/>\n"
- " ......\n"
- "</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:963
#, no-c-format
msgid "A table with a composite key can be mapped with multiple properties of the class as identifier properties. The <literal><composite-id></literal> element accepts <literal><key-property></literal> property mappings and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:970
-#, no-c-format
-msgid ""
- "<![CDATA[<composite-id>\n"
- " <key-property name=\"medicareNumber\"/>\n"
- " <key-property name=\"dependent\"/>\n"
- "</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:972
#, no-c-format
msgid "The persistent class <emphasis>must</emphasis> override <literal>equals()</literal> and <literal>hashCode()</literal> to implement composite identifier equality. It must also implement <literal>Serializable</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:978
#, no-c-format
msgid "Unfortunately, this approach means that a persistent object is its own identifier. There is no convenient \"handle\" other than the object itself. You must instantiate an instance of the persistent class itself and populate its identifier properties before you can <literal>load()</literal> the persistent state associated with a composite key. We call this approach an <emphasis>embedded</emphasis> composite identifier, and discourage it for serious applications."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid "A second approach is what we call a <emphasis>mapped</emphasis> composite identifier, where the identifier properties named inside the <literal><composite-id></literal> element are duplicated on both the persistent class and a separate identifier class."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:993
-#, no-c-format
-msgid ""
- "<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
- " <key-property name=\"medicareNumber\"/>\n"
- " <key-property name=\"dependent\"/>\n"
- "</composite-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:995
#, no-c-format
msgid "In this example, both the composite identifier class, <literal>MedicareId</literal>, and the entity class itself have properties named <literal>medicareNumber</literal> and <literal>dependent</literal>. The identifier class must override <literal>equals()</literal> and <literal>hashCode()</literal> and implement <literal>Serializable</literal>. The main disadvantage of this approach is code duplication."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid "The following attributes are used to specify a mapped composite identifier:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1010
#, no-c-format
msgid "<literal>mapped</literal> (optional - defaults to <literal>false</literal>): indicates that a mapped composite identifier is used, and that the contained property mappings refer to both the entity class and the composite identifier class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1018
#, no-c-format
msgid "<literal>class</literal> (optional - but required for a mapped composite identifier): the class used as a composite identifier."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1025
#, no-c-format
-msgid "We will describe a third, even more convenient approach, where the composite identifier is implemented as a component class in <xref linkend=\"components-compositeid\"/>. The attributes described below apply only to this alternative approach:"
+msgid "We will describe a third, even more convenient approach, where the composite identifier is implemented as a component class in <xref linkend=\"components-compositeid\" />. The attributes described below apply only to this alternative approach:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1033
#, no-c-format
msgid "<literal>name</literal> (optional - required for this approach): a property of component type that holds the composite identifier. Please see chapter 9 for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372 basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905 basic_mapping.xml:2484
#, no-c-format
msgid "<literal>access</literal> (optional - defaults to <literal>property</literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1045
#, no-c-format
msgid "<literal>class</literal> (optional - defaults to the property type determined by reflection): the component class used as a composite identifier. Please see the next section for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1052
#, no-c-format
msgid "The third approach, an <emphasis>identifier component</emphasis>, is recommended for almost all applications."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1060
#, no-c-format
msgid "Discriminator"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1062
#, no-c-format
msgid "The <literal><discriminator></literal> element is required for polymorphic persistence using the table-per-class-hierarchy mapping strategy. It declares a discriminator column of the table. The discriminator column contains marker values that tell the persistence layer what subclass to instantiate for a particular row. A restricted set of types can be used: <literal>string</literal>, <literal>character</literal>, <literal>integer</literal>, <literal>byte</literal>, <literal>short</literal>, <literal>boolean</literal>, <literal>yes_no</literal>, <literal>true_false</literal>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1080
-#, no-c-format
-msgid ""
- "<![CDATA[<discriminator\n"
- " column=\"discriminator_column\"\n"
- " type=\"discriminator_type\"\n"
- " force=\"true|false\"\n"
- " insert=\"true|false\"\n"
- " formula=\"arbitrary sql expression\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1083
#, no-c-format
msgid "<literal>column</literal> (optional - defaults to <literal>class</literal>): the name of the discriminator column."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1089
#, no-c-format
msgid "<literal>type</literal> (optional - defaults to <literal>string</literal>): a name that indicates the Hibernate type"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1095
#, no-c-format
msgid "<literal>force</literal> (optional - defaults to <literal>false</literal>): \"forces\" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1102
#, no-c-format
msgid "<literal>insert</literal> (optional - defaults to <literal>true</literal>): set this to <literal>false</literal> if your discriminator column is also part of a mapped composite identifier. It tells Hibernate not to include the column in SQL <literal>INSERTs</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1110
#, no-c-format
msgid "<literal>formula</literal> (optional): an arbitrary SQL expression that is executed when a type has to be evaluated. It allows content-based discrimination."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid "Actual values of the discriminator column are specified by the <literal>discriminator-value</literal> attribute of the <literal><class></literal> and <literal><subclass></literal> elements."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1124
#, no-c-format
msgid "The <literal>force</literal> attribute is only useful if the table contains rows with \"extra\" discriminator values that are not mapped to a persistent class. This will not usually be the case."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1130
#, no-c-format
msgid "The <literal>formula</literal> attribute allows you to declare an arbitrary SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1135
-#, no-c-format
-msgid ""
- "<![CDATA[<discriminator\n"
- " formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
- " type=\"integer\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1140
#, no-c-format
msgid "Version (optional)"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1142
#, no-c-format
msgid "The <literal><version></literal> element is optional and indicates that the table contains versioned data. This is particularly useful if you plan to use <emphasis>long transactions</emphasis>. See below for more information:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1158
-#, no-c-format
-msgid ""
- "<![CDATA[<version\n"
- " column=\"version_column\"\n"
- " name=\"propertyName\"\n"
- " type=\"typename\"\n"
- " access=\"field|property|ClassName\"\n"
- " unsaved-value=\"null|negative|undefined\"\n"
- " generated=\"never|always\"\n"
- " insert=\"true|false\"\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1161
#, no-c-format
msgid "<literal>column</literal> (optional - defaults to the property name): the name of the column holding the version number."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1167
#, no-c-format
msgid "<literal>name</literal>: the name of a property of the persistent class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1172
#, no-c-format
msgid "<literal>type</literal> (optional - defaults to <literal>integer</literal>): the type of the version number."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1178
#, no-c-format
msgid "<literal>access</literal> (optional - defaults to <literal>property</literal>): the strategy Hibernate uses to access the property value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1184
#, no-c-format
msgid "<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</literal>): a version property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session. <literal>Undefined</literal> specifies that the identifier property value should be used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1193
#, no-c-format
msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): specifies that this version property value is generated by the database. See the discussion of <link linkend=\"mapping-generated\">generated properties</link> for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1200
#, no-c-format
msgid "<literal>insert</literal> (optional - defaults to <literal>true</literal>): specifies whether the version column should be included in SQL insert statements. It can be set to <literal>false</literal> if the database column is defined with a default value of <literal>0</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1210
#, no-c-format
msgid "Version numbers can be of Hibernate type <literal>long</literal>, <literal>integer</literal>, <literal>short</literal>, <literal>timestamp</literal> or <literal>calendar</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1215
#, no-c-format
msgid "A version or timestamp property should never be null for a detached instance. Hibernate will detect any instance with a null version or timestamp as transient, irrespective of what other <literal>unsaved-value</literal> strategies are specified. <emphasis>Declaring a nullable version or timestamp property is an easy way to avoid problems with transitive reattachment in Hibernate. It is especially useful for people using assigned identifiers or composite keys</emphasis>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1226
#, no-c-format
msgid "Timestamp (optional)"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1228
#, no-c-format
msgid "The optional <literal><timestamp></literal> element indicates that the table contains timestamped data. This provides an alternative to versioning. Timestamps are a less safe implementation of optimistic locking. However, sometimes the application might use the timestamps in other ways."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1244
-#, no-c-format
-msgid ""
- "<![CDATA[<timestamp\n"
- " column=\"timestamp_column\"\n"
- " name=\"propertyName\"\n"
- " access=\"field|property|ClassName\"\n"
- " unsaved-value=\"null|undefined\"\n"
- " source=\"vm|db\"\n"
- " generated=\"never|always\"\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1247
#, no-c-format
msgid "<literal>column</literal> (optional - defaults to the property name): the name of a column holding the timestamp."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1253
#, no-c-format
msgid "<literal>name</literal>: the name of a JavaBeans style property of Java type <literal>Date</literal> or <literal>Timestamp</literal> of the persistent class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1266
#, no-c-format
msgid "<literal>unsaved-value</literal> (optional - defaults to <literal>null</literal>): a version property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session. <literal>Undefined</literal> specifies that the identifier property value should be used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1275
#, no-c-format
msgid "<literal>source</literal> (optional - defaults to <literal>vm</literal>): Where should Hibernate retrieve the timestamp value from? From the database, or from the current JVM? Database-based timestamps incur an overhead because Hibernate must hit the database in order to determine the \"next value\". It is safer to use in clustered environments. Not all <literal>Dialects</literal> are known to support the retrieval of the database's current timestamp. Others may also be unsafe for usage in locking due to lack of precision (Oracle 8, for example)."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1287
#, no-c-format
msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): specifies that this timestamp property value is actually generated by the database. See the discussion of <link linkend=\"mapping-generated\">generated properties</link> for more information."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1299
#, no-c-format
msgid "<literal><Timestamp></literal> is equivalent to <literal><version type=\"timestamp\"></literal>. And <literal><timestamp source=\"db\"></literal> is equivalent to <literal><version type=\"dbtimestamp\"></literal>"
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1311
#, no-c-format
msgid "Property"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1313
#, no-c-format
msgid "The <literal><property></literal> element declares a persistent JavaBean style property of the class."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
- "<![CDATA[<property\n"
- " name=\"propertyName\"\n"
- " column=\"column_name\"\n"
- " type=\"typename\"\n"
- " update=\"true|false\"\n"
- " insert=\"true|false\"\n"
- " formula=\"arbitrary SQL expression\"\n"
- " access=\"field|property|ClassName\"\n"
- " lazy=\"true|false\"\n"
- " unique=\"true|false\"\n"
- " not-null=\"true|false\"\n"
- " optimistic-lock=\"true|false\"\n"
- " generated=\"never|insert|always\"\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- " index=\"index_name\"\n"
- " unique_key=\"unique_key_id\"\n"
- " length=\"L\"\n"
- " precision=\"P\"\n"
- " scale=\"S\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid "<literal>name</literal>: the name of the property, with an initial lowercase letter."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1344
#, no-c-format
msgid "<literal>column</literal> (optional - defaults to the property name): the name of the mapped database table column. This can also be specified by nested <literal><column></literal> element(s)."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1356
#, no-c-format
msgid "<literal>update, insert</literal> (optional - defaults to <literal>true</literal>): specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> allows a pure \"derived\" property whose value is initialized from some other property that maps to the same column(s), or by a trigger or other application."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid "<literal>formula</literal> (optional): an SQL expression that defines the value for a <emphasis>computed</emphasis> property. Computed properties do not have a column mapping of their own."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1378
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>false</literal>): specifies that this property should be fetched lazily when the instance variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1385
#, no-c-format
msgid "<literal>unique</literal> (optional): enables the DDL generation of a unique constraint for the columns. Also, allow this to be the target of a <literal>property-ref</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1392
#, no-c-format
msgid "<literal>not-null</literal> (optional): enables the DDL generation of a nullability constraint for the columns."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): specifies that updates to this property do or do not require acquisition of the optimistic lock. In other words, it determines if a version increment should occur when this property is dirty."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1406
#, no-c-format
msgid "<literal>generated</literal> (optional - defaults to <literal>never</literal>): specifies that this property value is actually generated by the database. See the discussion of <link linkend=\"mapping-generated\">generated properties</link> for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1421
#, no-c-format
msgid "The name of a Hibernate basic type: <literal>integer, string, character, date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1427
#, no-c-format
msgid "The name of a Java class with a default basic type: <literal>int, float, char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</literal> etc."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1438
#, no-c-format
msgid "The class name of a custom type: <literal>com.illflow.type.MyCustomType</literal> etc."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1444
#, no-c-format
msgid "If you do not specify a type, Hibernate will use reflection upon the named property and guess the correct Hibernate type. Hibernate will attempt to interpret the name of the return class of the property getter using, in order, rules 2, 3, and 4. In certain cases you will need the <literal>type</literal> attribute. For example, to distinguish between <literal>Hibernate.DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a custom type."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1454
#, no-c-format
msgid "The <literal>access</literal> attribute allows you to control how Hibernate accesses the property at runtime. By default, Hibernate will call the property get/set pair. If you specify <literal>access=\"field\"</literal>, Hibernate will bypass the get/set pair and access the field directly using reflection. You can specify your own strategy for property access by naming a class that implements the interface <literal>org.hibernate.property.PropertyAccessor</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1463
#, no-c-format
msgid "A powerful feature is derived properties. These properties are by definition read-only. The property value is computed at load time. You declare the computation as an SQL expression. This then translates to a <literal>SELECT</literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1470
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "<property name=\"totalPrice\"\n"
- " formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product p\n"
- " WHERE li.productId = p.productId\n"
- " AND li.customerId = customerId\n"
- " AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1472
#, no-c-format
msgid "You can reference the entity table by not declaring an alias on a particular column. This would be <literal>customerId</literal> in the given example. You can also use the nested <literal><formula></literal> mapping element if you do not want to use the attribute."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1482
#, no-c-format
msgid "Many-to-one"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1484
#, no-c-format
msgid "An ordinary association to another persistent class is declared using a <literal>many-to-one</literal> element. The relational model is a many-to-one association; a foreign key in one table is referencing the primary key column(s) of the target table."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1512
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one\n"
- " name=\"propertyName\"\n"
- " column=\"column_name\"\n"
- " class=\"ClassName\"\n"
- " cascade=\"cascade_style\"\n"
- " fetch=\"join|select\"\n"
- " update=\"true|false\"\n"
- " insert=\"true|false\"\n"
- " property-ref=\"propertyNameFromAssociatedClass\"\n"
- " access=\"field|property|ClassName\"\n"
- " unique=\"true|false\"\n"
- " not-null=\"true|false\"\n"
- " optimistic-lock=\"true|false\"\n"
- " lazy=\"proxy|no-proxy|false\"\n"
- " not-found=\"ignore|exception\"\n"
- " entity-name=\"EntityName\"\n"
- " formula=\"arbitrary SQL expression\"\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- " embed-xml=\"true|false\"\n"
- " index=\"index_name\"\n"
- " unique_key=\"unique_key_id\"\n"
- " foreign-key=\"foreign_key_name\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
#, no-c-format
msgid "<literal>name</literal>: the name of the property."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
#, no-c-format
msgid "<literal>column</literal> (optional): the name of the foreign key column. This can also be specified by nested <literal><column></literal> element(s)."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
#, no-c-format
msgid "<literal>class</literal> (optional - defaults to the property type determined by reflection): the name of the associated class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
#, no-c-format
msgid "<literal>cascade</literal> (optional): specifies which operations should be cascaded from the parent object to the associated object."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
#, no-c-format
msgid "<literal>fetch</literal> (optional - defaults to <literal>select</literal>): chooses between outer-join fetching or sequential select fetching."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1545
#, no-c-format
msgid "<literal>update, insert</literal> (optional - defaults to <literal>true</literal>): specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> allows a pure \"derived\" association whose value is initialized from another property that maps to the same column(s), or by a trigger or other application."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1554
#, no-c-format
msgid "<literal>property-ref</literal> (optional): the name of a property of the associated class that is joined to this foreign key. If not specified, the primary key of the associated class is used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1567
#, no-c-format
msgid "<literal>unique</literal> (optional): enables the DDL generation of a unique constraint for the foreign-key column. By allowing this to be the target of a <literal>property-ref</literal>, you can make the association multiplicity one-to-one."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1575
#, no-c-format
msgid "<literal>not-null</literal> (optional): enables the DDL generation of a nullability constraint for the foreign key columns."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1589
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): by default, single point associations are proxied. <literal>lazy=\"no-proxy\"</literal> specifies that the property should be fetched lazily when the instance variable is first accessed. This requires build-time bytecode instrumentation. <literal>lazy=\"false\"</literal> specifies that the association will always be eagerly fetched."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1599
#, no-c-format
msgid "<literal>not-found</literal> (optional - defaults to <literal>exception</literal>): specifies how foreign keys that reference missing rows will be handled. <literal>ignore</literal> will treat a missing row as a null association."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
#, no-c-format
msgid "<literal>entity-name</literal> (optional): the entity name of the associated class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid "<literal>formula</literal> (optional): an SQL expression that defines the value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1619
#, no-c-format
-msgid "Setting a value of the <literal>cascade</literal> attribute to any meaningful value other than <literal>none</literal> will propagate certain operations to the associated object. The meaningful values are divided into three categories. First, basic operations, which include: <literal>persist, merge, delete, save-update, evict, replicate, lock and refresh</literal>; second, special values: <literal>delete-orphan</literal>; and third,<literal>all</literal> comma-separated combinations of operation names: <literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> for a full explanation. Note that single valued, many-to-one and one-to-one, associations do not support orphan delete."
+msgid "Setting a value of the <literal>cascade</literal> attribute to any meaningful value other than <literal>none</literal> will propagate certain operations to the associated object. The meaningful values are divided into three categories. First, basic operations, which include: <literal>persist, merge, delete, save-update, evict, replicate, lock and refresh</literal>; second, special values: <literal>delete-orphan</literal>; and third,<literal>all</literal> comma-separated combinations of operation names: <literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> for a full explanation. Note that single valued, many-to-one and one-to-one, associations do not support orphan delete."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1632
#, no-c-format
msgid "Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1636
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1638
#, no-c-format
msgid "The <literal>property-ref</literal> attribute should only be used for mapping legacy data where a foreign key refers to a unique key of the associated table other than the primary key. This is a complicated and confusing relational model. For example, if the <literal>Product</literal> class had a unique serial number that is not the primary key. The <literal>unique</literal> attribute controls Hibernate's DDL generation with the SchemaExport tool."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid "<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1653
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column=\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1655
#, no-c-format
msgid "This is not encouraged, however."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid "If the referenced unique key comprises multiple properties of the associated entity, you should map the referenced properties inside a named <literal><properties></literal> element."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1664
#, no-c-format
msgid "If the referenced unique key is the property of a component, you can specify a property path:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1668
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column=\"OWNER_SSN\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1673
#, no-c-format
msgid "One-to-one"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid "A one-to-one association to another persistent class is declared using a <literal>one-to-one</literal> element."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1693
-#, no-c-format
-msgid ""
- "<![CDATA[<one-to-one\n"
- " name=\"propertyName\"\n"
- " class=\"ClassName\"\n"
- " cascade=\"cascade_style\"\n"
- " constrained=\"true|false\"\n"
- " fetch=\"join|select\"\n"
- " property-ref=\"propertyNameFromAssociatedClass\"\n"
- " access=\"field|property|ClassName\"\n"
- " formula=\"any SQL expression\"\n"
- " lazy=\"proxy|no-proxy|false\"\n"
- " entity-name=\"EntityName\"\n"
- " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
- " embed-xml=\"true|false\"\n"
- " foreign-key=\"foreign_key_name\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1713
#, no-c-format
msgid "<literal>constrained</literal> (optional): specifies that a foreign key constraint on the primary key of the mapped table and references the table of the associated class. This option affects the order in which <literal>save()</literal> and <literal>delete()</literal> are cascaded, and determines whether the association can be proxied. It is also used by the schema export tool."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1728
#, no-c-format
msgid "<literal>property-ref</literal> (optional): the name of a property of the associated class that is joined to the primary key of this class. If not specified, the primary key of the associated class is used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1741
#, no-c-format
msgid "<literal>formula</literal> (optional): almost all one-to-one associations map to the primary key of the owning entity. If this is not the case, you can specify another column, columns or expression to join on using an SQL formula. See <literal>org.hibernate.test.onetooneformula</literal> for an example."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1749
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): by default, single point associations are proxied. <literal>lazy=\"no-proxy\"</literal> specifies that the property should be fetched lazily when the instance variable is first accessed. It requires build-time bytecode instrumentation. <literal>lazy=\"false\"</literal> specifies that the association will always be eagerly fetched. <emphasis>Note that if <literal>constrained=\"false\"</literal>, proxying is impossible and Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1767
#, no-c-format
msgid "There are two varieties of one-to-one associations:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1779
#, no-c-format
msgid "Primary key associations do not need an extra table column. If two rows are related by the association, then the two table rows share the same primary key value. To relate two objects by a primary key association, ensure that they are assigned the same identifier value."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1786
#, no-c-format
msgid "For a primary key association, add the following mappings to <literal>Employee</literal> and <literal>Person</literal> respectively:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1791
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1794
#, no-c-format
msgid "Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE tables are equal. You use a special Hibernate identifier generation strategy called <literal>foreign</literal>:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1800
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
- " <id name=\"id\" column=\"PERSON_ID\">\n"
- " <generator class=\"foreign\">\n"
- " <param name=\"property\">employee</param>\n"
- " </generator>\n"
- " </id>\n"
- " ...\n"
- " <one-to-one name=\"employee\"\n"
- " class=\"Employee\"\n"
- " constrained=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1802
#, no-c-format
msgid "A newly saved instance of <literal>Person</literal> is assigned the same primary key value as the <literal>Employee</literal> instance referred with the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1808
#, no-c-format
msgid "Alternatively, a foreign key with a unique constraint, from <literal>Employee</literal> to <literal>Person</literal>, can be expressed as:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1813
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" unique=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1815
#, no-c-format
msgid "This association can be made bidirectional by adding the following to the <literal>Person</literal> mapping:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1820
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref=\"person\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1825
#, no-c-format
msgid "Natural-id"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1827
-#, no-c-format
-msgid ""
- "<![CDATA[<natural-id mutable=\"true|false\"/>\n"
- " <property ... />\n"
- " <many-to-one ... />\n"
- " ......\n"
- "</natural-id>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1829
#, no-c-format
msgid "Although we recommend the use of surrogate keys as primary keys, you should try to identify natural keys for all entities. A natural key is a property or combination of properties that is unique and non-null. It is also immutable. Map the properties of the natural key inside the <literal><natural-id></literal> element. Hibernate will generate the necessary unique key and nullability constraints and, as a result, your mapping will be more self-documenting."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1838
#, no-c-format
msgid "It is recommended that you implement <literal>equals()</literal> and <literal>hashCode()</literal> to compare the natural key properties of the entity."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1843
#, no-c-format
msgid "This mapping is not intended for use with entities that have natural primary keys."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1849
#, no-c-format
msgid "<literal>mutable</literal> (optional - defaults to <literal>false</literal>): by default, natural identifier properties are assumed to be immutable (constant)."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1859
#, no-c-format
msgid "Component and dynamic-component"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1861
#, no-c-format
msgid "The <literal><component></literal> element maps properties of a child object to columns of the table of a parent class. Components can, in turn, declare their own properties, components or collections. See the \"Component\" examples below:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1879
-#, no-c-format
-msgid ""
- "<![CDATA[<component\n"
- " name=\"propertyName\"\n"
- " class=\"className\"\n"
- " insert=\"true|false\"\n"
- " update=\"true|false\"\n"
- " access=\"field|property|ClassName\"\n"
- " lazy=\"true|false\"\n"
- " optimistic-lock=\"true|false\"\n"
- " unique=\"true|false\"\n"
- " node=\"element-name|.\"\n"
- ">\n"
- "\n"
- " <property ...../>\n"
- " <many-to-one .... />\n"
- " ........\n"
- "</component>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1887
#, no-c-format
msgid "<literal>class</literal> (optional - defaults to the property type determined by reflection): the name of the component (child) class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
#, no-c-format
msgid "<literal>insert</literal>: do the mapped columns appear in SQL <literal>INSERTs</literal>?"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
#, no-c-format
msgid "<literal>update</literal>: do the mapped columns appear in SQL <literal>UPDATEs</literal>?"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1911
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>false</literal>): specifies that this component should be fetched lazily when the instance variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1918
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): specifies that updates to this component either do or do not require acquisition of the optimistic lock. It determines if a version increment should occur when this property is dirty."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
#, no-c-format
msgid "<literal>unique</literal> (optional - defaults to <literal>false</literal>): specifies that a unique constraint exists upon all mapped columns of the component."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid "The child <literal><property></literal> tags map properties of the child class to table columns."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid "The <literal><component></literal> element allows a <literal><parent></literal> subelement that maps a property of the component class as a reference back to the containing entity."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1946
#, no-c-format
-msgid "The <literal><dynamic-component></literal> element allows a <literal>Map</literal> to be mapped as a component, where the property names refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for more information."
+msgid "The <literal><dynamic-component></literal> element allows a <literal>Map</literal> to be mapped as a component, where the property names refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for more information."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:1955
#, no-c-format
msgid "Properties"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1957
#, no-c-format
msgid "The <literal><properties></literal> element allows the definition of a named, logical grouping of the properties of a class. The most important use of the construct is that it allows a combination of properties to be the target of a <literal>property-ref</literal>. It is also a convenient way to define a multi-column unique constraint. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:1973
-#, no-c-format
-msgid ""
- "<![CDATA[<properties\n"
- " name=\"logicalName\"\n"
- " insert=\"true|false\"\n"
- " update=\"true|false\"\n"
- " optimistic-lock=\"true|false\"\n"
- " unique=\"true|false\"\n"
- ">\n"
- "\n"
- " <property ...../>\n"
- " <many-to-one .... />\n"
- " ........\n"
- "</properties>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1976
#, no-c-format
msgid "<literal>name</literal>: the logical name of the grouping. It is <emphasis>not</emphasis> an actual property name."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:1994
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): specifies that updates to these properties either do or do not require acquisition of the optimistic lock. It determines if a version increment should occur when these properties are dirty."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid "For example, if we have the following <literal><properties></literal> mapping:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2015
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"personNumber\"/>\n"
- "\n"
- " ...\n"
- " <properties name=\"name\"\n"
- " unique=\"true\" update=\"false\">\n"
- " <property name=\"firstName\"/>\n"
- " <property name=\"initial\"/>\n"
- " <property name=\"lastName\"/>\n"
- " </properties>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2017
#, no-c-format
msgid "You might have some legacy data association that refers to this unique key of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2022
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one name=\"person\"\n"
- " class=\"Person\" property-ref=\"name\">\n"
- " <column name=\"firstName\"/>\n"
- " <column name=\"initial\"/>\n"
- " <column name=\"lastName\"/>\n"
- "</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2024
#, no-c-format
msgid "The use of this outside the context of mapping legacy data is not recommended."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2032
#, no-c-format
msgid "Subclass"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2034
#, no-c-format
msgid "Polymorphic persistence requires the declaration of each subclass of the root persistent class. For the table-per-class-hierarchy mapping strategy, the <literal><subclass></literal> declaration is used. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2047
-#, no-c-format
-msgid ""
- "<![CDATA[<subclass\n"
- " name=\"ClassName\"\n"
- " discriminator-value=\"discriminator_value\"\n"
- " proxy=\"ProxyInterface\"\n"
- " lazy=\"true|false\"\n"
- " dynamic-update=\"true|false\"\n"
- " dynamic-insert=\"true|false\"\n"
- " entity-name=\"EntityName\"\n"
- " node=\"element-name\"\n"
- " extends=\"SuperclassName\">\n"
- "\n"
- " <property .... />\n"
- " .....\n"
- "</subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
#, no-c-format
msgid "<literal>name</literal>: the fully qualified class name of the subclass."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2055
#, no-c-format
msgid "<literal>discriminator-value</literal> (optional - defaults to the class name): a value that distinguishes individual subclasses."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2061
#, no-c-format
msgid "<literal>proxy</literal> (optional): specifies a class or interface used for lazy initializing proxies."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2067
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>true</literal>): setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2075
#, no-c-format
msgid "Each subclass declares its own persistent properties and subclasses. <literal><version></literal> and <literal><id></literal> properties are assumed to be inherited from the root class. Each subclass in a hierarchy must define a unique <literal>discriminator-value</literal>. If this is not specified, the fully qualified Java class name is used."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
#, no-c-format
-msgid "For information about inheritance mappings see <xref linkend=\"inheritance\"/>."
+msgid "For information about inheritance mappings see <xref linkend=\"inheritance\" />."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2090
#, no-c-format
msgid "Joined-subclass"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2092
#, no-c-format
msgid "Each subclass can also be mapped to its own table. This is called the table-per-subclass mapping strategy. An inherited state is retrieved by joining with the table of the superclass. To do this you use the <literal><joined-subclass></literal> element. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2105
-#, no-c-format
-msgid ""
- "<![CDATA[<joined-subclass\n"
- " name=\"ClassName\"\n"
- " table=\"tablename\"\n"
- " proxy=\"ProxyInterface\"\n"
- " lazy=\"true|false\"\n"
- " dynamic-update=\"true|false\"\n"
- " dynamic-insert=\"true|false\"\n"
- " schema=\"schema\"\n"
- " catalog=\"catalog\"\n"
- " extends=\"SuperclassName\"\n"
- " persister=\"ClassName\"\n"
- " subselect=\"SQL expression\"\n"
- " entity-name=\"EntityName\"\n"
- " node=\"element-name\">\n"
- "\n"
- " <key .... >\n"
- "\n"
- " <property .... />\n"
- " .....\n"
- "</joined-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
#, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
#, no-c-format
msgid "<literal>proxy</literal> (optional): specifies a class or interface to use for lazy initializing proxies."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
#, no-c-format
msgid "<literal>lazy</literal> (optional, defaults to <literal>true</literal>): setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2132
#, no-c-format
msgid "A discriminator column is not required for this mapping strategy. Each subclass must, however, declare a table column holding the object identifier using the <literal><key></literal> element. The mapping at the start of the chapter would then be re-written as:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2139
-#, no-c-format
-msgid ""
- "<![CDATA[<?xml version=\"1.0\"?>\n"
- "<!DOCTYPE hibernate-mapping PUBLIC\n"
- " \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
- " \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
- "\n"
- "<hibernate-mapping package=\"eg\">\n"
- "\n"
- " <class name=\"Cat\" table=\"CATS\">\n"
- " <id name=\"id\" column=\"uid\" type=\"long\">\n"
- " <generator class=\"hilo\"/>\n"
- " </id>\n"
- " <property name=\"birthdate\" type=\"date\"/>\n"
- " <property name=\"color\" not-null=\"true\"/>\n"
- " <property name=\"sex\" not-null=\"true\"/>\n"
- " <property name=\"weight\"/>\n"
- " <many-to-one name=\"mate\"/>\n"
- " <set name=\"kittens\">\n"
- " <key column=\"MOTHER\"/>\n"
- " <one-to-many class=\"Cat\"/>\n"
- " </set>\n"
- " <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS\">\n"
- " <key column=\"CAT\"/>\n"
- " <property name=\"name\" type=\"string\"/>\n"
- " </joined-subclass>\n"
- " </class>\n"
- "\n"
- " <class name=\"eg.Dog\">\n"
- " <!-- mapping for Dog could go here -->\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2148
#, no-c-format
msgid "Union-subclass"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2150
#, no-c-format
msgid "A third option is to map only the concrete classes of an inheritance hierarchy to tables. This is called the table-per-concrete-class strategy. Each table defines all persistent states of the class, including the inherited state. In Hibernate, it is not necessary to explicitly map such inheritance hierarchies. You can map each class with a separate <literal><class></literal> declaration. However, if you wish use polymorphic associations (e.g. an association to the superclass of your hierarchy), you need to use the <literal><union-subclass></literal> mapping. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
- "<![CDATA[<union-subclass\n"
- " name=\"ClassName\"\n"
- " table=\"tablename\"\n"
- " proxy=\"ProxyInterface\"\n"
- " lazy=\"true|false\"\n"
- " dynamic-update=\"true|false\"\n"
- " dynamic-insert=\"true|false\"\n"
- " schema=\"schema\"\n"
- " catalog=\"catalog\"\n"
- " extends=\"SuperclassName\"\n"
- " abstract=\"true|false\"\n"
- " persister=\"ClassName\"\n"
- " subselect=\"SQL expression\"\n"
- " entity-name=\"EntityName\"\n"
- " node=\"element-name\">\n"
- "\n"
- " <property .... />\n"
- " .....\n"
- "</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid "No discriminator column or key column is required for this mapping strategy."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2206
#, no-c-format
msgid "Join"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2208
#, no-c-format
msgid "Using the <literal><join></literal> element, it is possible to map properties of one class to several tables that have a one-to-one relationship. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2222
-#, no-c-format
-msgid ""
- "<![CDATA[<join\n"
- " table=\"tablename\"\n"
- " schema=\"owner\"\n"
- " catalog=\"catalog\"\n"
- " fetch=\"join|select\"\n"
- " inverse=\"true|false\"\n"
- " optional=\"true|false\">\n"
- "\n"
- " <key ... />\n"
- "\n"
- " <property ... />\n"
- " ...\n"
- "</join>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2226
#, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2243
#, no-c-format
msgid "<literal>fetch</literal> (optional - defaults to <literal>join</literal>): if set to <literal>join</literal>, the default, Hibernate will use an inner join to retrieve a <literal><join></literal> defined by a class or its superclasses. It will use an outer join for a <literal><join></literal> defined by a subclass. If set to <literal>select</literal> then Hibernate will use a sequential select for a <literal><join></literal> defined on a subclass. This will be issued only if a row represents an instance of the subclass. Inner joins will still be used to retrieve a <literal><join></literal> defined by the class and its superclasses."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2256
#, no-c-format
msgid "<literal>inverse</literal> (optional - defaults to <literal>false</literal>): if enabled, Hibernate will not insert or update the properties defined by this join."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2263
#, no-c-format
msgid "<literal>optional</literal> (optional - defaults to <literal>false</literal>): if enabled, Hibernate will insert a row only if the properties defined by this join are non-null. It will always use an outer join to retrieve the properties."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2272
#, no-c-format
msgid "For example, address information for a person can be mapped to a separate table while preserving value type semantics for all properties:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2277
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\"\n"
- " table=\"PERSON\">\n"
- "\n"
- " <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
- "\n"
- " <join table=\"ADDRESS\">\n"
- " <key column=\"ADDRESS_ID\"/>\n"
- " <property name=\"address\"/>\n"
- " <property name=\"zip\"/>\n"
- " <property name=\"country\"/>\n"
- " </join>\n"
- " ...]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2279
#, no-c-format
msgid "This feature is often only useful for legacy data models. We recommend fewer tables than classes and a fine-grained domain model. However, it is useful for switching between inheritance mapping strategies in a single hierarchy, as explained later."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2289
#, no-c-format
-msgid "<title>Key</title>"
+msgid "Key"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2291
#, no-c-format
msgid "The <literal><key></literal> element has featured a few times within this guide. It appears anywhere the parent mapping element defines a join to a new table that references the primary key of the original table. It also defines the foreign key in the joined table:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2307
-#, no-c-format
-msgid ""
- "<![CDATA[<key\n"
- " column=\"columnname\"\n"
- " on-delete=\"noaction|cascade\"\n"
- " property-ref=\"propertyName\"\n"
- " not-null=\"true|false\"\n"
- " update=\"true|false\"\n"
- " unique=\"true|false\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2318
#, no-c-format
msgid "<literal>on-delete</literal> (optional - defaults to <literal>noaction</literal>): specifies whether the foreign key constraint has database-level cascade delete enabled."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2325
#, no-c-format
msgid "<literal>property-ref</literal> (optional): specifies that the foreign key refers to columns that are not the primary key of the original table. It is provided for legacy data."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2332
#, no-c-format
msgid "<literal>not-null</literal> (optional): specifies that the foreign key columns are not nullable. This is implied whenever the foreign key is also part of the primary key."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2339
#, no-c-format
msgid "<literal>update</literal> (optional): specifies that the foreign key should never be updated. This is implied whenever the foreign key is also part of the primary key."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2346
#, no-c-format
msgid "<literal>unique</literal> (optional): specifies that the foreign key should have a unique constraint. This is implied whenever the foreign key is also the primary key."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2354
#, no-c-format
msgid "For systems where delete performance is important, we recommend that all keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate uses a database-level <literal>ON CASCADE DELETE</literal> constraint, instead of many individual <literal>DELETE</literal> statements. Be aware that this feature bypasses Hibernate's usual optimistic locking strategy for versioned data."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2362
#, no-c-format
msgid "The <literal>not-null</literal> and <literal>update</literal> attributes are useful when mapping a unidirectional one-to-many association. If you map a unidirectional one-to-many association to a non-nullable foreign key, you <emphasis>must</emphasis> declare the key column using <literal><key not-null=\"true\"></literal>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2372
#, no-c-format
msgid "Column and formula elements"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2373
#, no-c-format
msgid "Mapping elements which accept a <literal>column</literal> attribute will alternatively accept a <literal><column></literal> subelement. Likewise, <literal><formula></literal> is an alternative to the <literal>formula</literal> attribute. For example:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<column\n"
- " name=\"column_name\"\n"
- " length=\"N\"\n"
- " precision=\"N\"\n"
- " scale=\"N\"\n"
- " not-null=\"true|false\"\n"
- " unique=\"true|false\"\n"
- " unique-key=\"multicolumn_unique_key_name\"\n"
- " index=\"index_name\"\n"
- " sql-type=\"sql_type_name\"\n"
- " check=\"SQL expression\"\n"
- " default=\"SQL expression\"/>]]>"
+msgid "Most of the attributes on <literal>column</literal> provide a means of tailoring the DDL during automatic schema generation. The <literal>read</literal> and <literal>write</literal> attributes allow you to specify custom SQL that Hibernate will use to access the column's value. For more on this, see the discussion of <link linkend=\"mapping-column-read-and-write\">column read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, no-c-format
-msgid "<literal>column</literal> and <literal>formula</literal> attributes can even be combined within the same property or association mapping to express, for example, exotic join conditions."
+msgid "The <literal>column</literal> and <literal>formula</literal> elements can even be combined within the same property or association mapping to express, for example, exotic join conditions."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
- " insert=\"false\" update=\"false\">\n"
- " <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
- " <formula>'MAILING'</formula>\n"
- "</many-to-one>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2394
#, no-c-format
msgid "Import"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2396
#, no-c-format
msgid "If your application has two persistent classes with the same name, and you do not want to specify the fully qualified package name in Hibernate queries, classes can be \"imported\" explicitly, rather than relying upon <literal>auto-import=\"true\"</literal>. You can also import classes and interfaces that are not explicitly mapped:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2403
-#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
-msgid ""
- "<![CDATA[<import\n"
- " class=\"ClassName\"\n"
- " rename=\"ShortName\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2413
#, no-c-format
msgid "<literal>class</literal>: the fully qualified class name of any Java class."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2418
#, no-c-format
msgid "<literal>rename</literal> (optional - defaults to the unqualified class name): a name that can be used in the query language."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2429
#, no-c-format
-msgid "<title>Any</title>"
+msgid "Any"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2431
#, no-c-format
msgid "There is one more type of property mapping. The <literal><any></literal> mapping element defines a polymorphic association to classes from multiple tables. This type of mapping requires more than one column. The first column contains the type of the associated entity. The remaining columns contain the identifier. It is impossible to specify a foreign key constraint for this kind of association. This is not the usual way of mapping polymorphic associations and you should use this only in special cases. For example, for audit logs, user session data, etc."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2441
#, no-c-format
msgid "The <literal>meta-type</literal> attribute allows the application to specify a custom type that maps database column values to persistent classes that have identifier properties of the type specified by <literal>id-type</literal>. You must specify the mapping from values of the meta-type to class names."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
- "<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
- " <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
- " <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
- " <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
- " <column name=\"table_name\"/>\n"
- " <column name=\"id\"/>\n"
- "</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
- "<![CDATA[<any\n"
- " name=\"propertyName\"\n"
- " id-type=\"idtypename\"\n"
- " meta-type=\"metatypename\"\n"
- " cascade=\"cascade_style\"\n"
- " access=\"field|property|ClassName\"\n"
- " optimistic-lock=\"true|false\"\n"
- ">\n"
- " <meta-value ... />\n"
- " <meta-value ... />\n"
- " .....\n"
- " <column .... />\n"
- " <column .... />\n"
- " .....\n"
- "</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2472
#, no-c-format
msgid "<literal>meta-type</literal> (optional - defaults to <literal>string</literal>): any type that is allowed for a discriminator mapping."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid "<literal>cascade</literal> (optional- defaults to <literal>none</literal>): the cascade style."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2490
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): specifies that updates to this property either do or do not require acquisition of the optimistic lock. It defines whether a version increment should occur if this property is dirty."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2505
#, no-c-format
msgid "Hibernate types"
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid "In relation to the persistence service, Java language-level objects are classified into two groups:"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2515
#, no-c-format
msgid "An <emphasis>entity</emphasis> exists independently of any other objects holding references to the entity. Contrast this with the usual Java model, where an unreferenced object is garbage collected. Entities must be explicitly saved and deleted. Saves and deletions, however, can be <emphasis>cascaded</emphasis> from a parent entity to its children. This is different from the ODMG model of object persistence by reachability and corresponds more closely to how application objects are usually used in large systems. Entities support circular and shared references. They can also be versioned."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2526
#, no-c-format
msgid "An entity's persistent state consists of references to other entities and instances of <emphasis>value</emphasis> types. Values are primitives: collections (not what is inside a collection), components and certain immutable objects. Unlike entities, values in particular collections and components, <emphasis>are</emphasis> persisted and deleted by reachability. Since value objects and primitives are persisted and deleted along with their containing entity, they cannot be independently versioned. Values have no independent identity, so they cannot be shared by two entities or collections."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2537
#, no-c-format
msgid "Until now, we have been using the term \"persistent class\" to refer to entities. We will continue to do that. Not all user-defined classes with a persistent state, however, are entities. A <emphasis>component</emphasis> is a user-defined class with value semantics. A Java property of type <literal>java.lang.String</literal> also has value semantics. Given this definition, all types (classes) provided by the JDK have value type semantics in Java, while user-defined types can be mapped with entity or value type semantics. This decision is up to the application developer. An entity class in a domain model will normally have shared references to a single instance of that class, while composition or aggregation usually translates to a value type."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2551
#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2555
#, no-c-format
msgid "The challenge is to map the Java type system, and the developers' definition of entities and value types, to the SQL/database type system. The bridge between both systems is provided by Hibernate. For entities, <literal><class></literal>, <literal><subclass></literal> and so on are used. For value types we use <literal><property></literal>, <literal><component></literal>etc., that usually have a <literal>type</literal> attribute. The value of this attribute is the name of a Hibernate <emphasis>mapping type</emphasis>. Hibernate provides a range of mappings for standard JDK value types out of the box. You can write your own mapping types and implement your own custom conversion strategies."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2568
#, no-c-format
msgid "With the exception of collections, all built-in Hibernate types support null semantics."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2577
#, no-c-format
msgid "The built-in <emphasis>basic mapping types</emphasis> can be roughly categorized into the following:"
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
-msgid "integer, long, short, float, double, character, byte, boolean, yes_no, true_false"
+msgid "<literal>integer, long, short, float, double, character, byte, boolean, yes_no, true_false</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid "Type mappings from Java primitives or wrapper classes to appropriate (vendor-specific) SQL column types. <literal>boolean, yes_no</literal> and <literal>true_false</literal> are all alternative encodings for a Java <literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2594
+#. Tag: term
#, no-c-format
-msgid "string"
+msgid "<literal>string</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid "A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</literal> (or Oracle <literal>VARCHAR2</literal>)."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid "Type mappings from <literal>java.util.Date</literal> and its subclasses to SQL types <literal>DATE</literal>, <literal>TIME</literal> and <literal>TIMESTAMP</literal> (or equivalent)."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid "Type mappings from <literal>java.util.Calendar</literal> to SQL types <literal>TIMESTAMP</literal> and <literal>DATE</literal> (or equivalent)."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid "Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java.math.BigInteger</literal> to <literal>NUMERIC</literal> (or Oracle <literal>NUMBER</literal>)."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid "Type mappings from <literal>java.util.Locale</literal>, <literal>java.util.TimeZone</literal> and <literal>java.util.Currency</literal> to <literal>VARCHAR</literal> (or Oracle <literal>VARCHAR2</literal>). Instances of <literal>Locale</literal> and <literal>Currency</literal> are mapped to their ISO codes. Instances of <literal>TimeZone</literal> are mapped to their <literal>ID</literal>."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2647
+#. Tag: term
#, no-c-format
-msgid "class"
+msgid "<literal>class</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid "A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</literal> (or Oracle <literal>VARCHAR2</literal>). A <literal>Class</literal> is mapped to its fully qualified name."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2657
+#. Tag: term
#, no-c-format
-msgid "binary"
+msgid "<literal>binary</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2665
+#. Tag: term
#, no-c-format
-msgid "text"
+msgid "<literal>text</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid "Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</literal> type."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2674
+#. Tag: term
#, no-c-format
-msgid "serializable"
+msgid "<literal>serializable</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2676
#, no-c-format
msgid "Maps serializable Java types to an appropriate SQL binary type. You can also indicate the Hibernate type <literal>serializable</literal> with the name of a serializable Java class or interface that does not default to a basic type."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2685
+#. Tag: term
#, no-c-format
-msgid "clob, blob"
+msgid "<literal>clob, blob</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2687
#, no-c-format
msgid "Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and <literal>java.sql.Blob</literal>. These types can be inconvenient for some applications, since the blob or clob object cannot be reused outside of a transaction. Driver support is patchy and inconsistent."
msgstr ""
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
-msgid "imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, imm_serializable, imm_binary"
+msgid "<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, imm_serializable, imm_binary</literal>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2701
#, no-c-format
msgid "Type mappings for what are considered mutable Java types. This is where Hibernate makes certain optimizations appropriate only for immutable Java types, and the application treats the object as immutable. For example, you should not call <literal>Date.setTime()</literal> for an instance mapped as <literal>imm_timestamp</literal>. To change the value of the property, and have that change made persistent, the application must assign a new, nonidentical, object to the property."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2716
#, no-c-format
msgid "Unique identifiers of entities and collections can be of any basic type except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</literal>. Composite identifiers are also allowed. See below for more information."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid "The basic value types have corresponding <literal>Type</literal> constants defined on <literal>org.hibernate.Hibernate</literal>. For example, <literal>Hibernate.STRING</literal> represents the <literal>string</literal> type."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2733
#, no-c-format
msgid "It is relatively easy for developers to create their own value types. For example, you might want to persist properties of type <literal>java.lang.BigInteger</literal> to <literal>VARCHAR</literal> columns. Hibernate does not provide a built-in type for this. Custom types are not limited to mapping a property, or collection element, to a single table column. So, for example, you might have a Java property <literal>getName()</literal>/<literal>setName()</literal> of type <literal>java.lang.String</literal> that is persisted to the columns <literal>FIRST_NAME</literal>, <literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2744
#, no-c-format
msgid "To implement a custom type, implement either <literal>org.hibernate.UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and declare properties using the fully qualified classname of the type. View <literal>org.hibernate.test.DoubleStringType</literal> to see the kind of things that are possible."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test.DoubleStringType\">\n"
- " <column name=\"first_string\"/>\n"
- " <column name=\"second_string\"/>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid "Notice the use of <literal><column></literal> tags to map a property to multiple columns."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid "The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</literal>, <literal>UserCollectionType</literal>, and <literal>UserVersionType</literal> interfaces provide support for more specialized uses."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2765
#, no-c-format
msgid "You can even supply parameters to a <literal>UserType</literal> in the mapping file. To do this, your <literal>UserType</literal> must implement the <literal>org.hibernate.usertype.ParameterizedType</literal> interface. To supply parameters to your custom type, you can use the <literal><type></literal> element in your mapping files."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"priority\">\n"
- " <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
- " <param name=\"default\">0</param>\n"
- " </type>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid "The <literal>UserType</literal> can now retrieve the value for the parameter named <literal>default</literal> from the <literal>Properties</literal> object passed to it."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2780
#, no-c-format
msgid "If you regularly use a certain <literal>UserType</literal>, it is useful to define a shorter name for it. You can do this using the <literal><typedef></literal> element. Typedefs assign a name to a custom type, and can also contain a list of default parameter values if the type is parameterized."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
- "<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" name=\"default_zero\">\n"
- " <param name=\"default\">0</param>\n"
- "</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid "It is also possible to override the parameters supplied in a typedef on a case-by-case basis by using type parameters on the property mapping."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2796
#, no-c-format
msgid "Even though Hibernate's rich range of built-in types and support for components means you will rarely need to use a custom type, it is considered good practice to use custom types for non-entity classes that occur frequently in your application. For example, a <literal>MonetaryAmount</literal> class is a good candidate for a <literal>CompositeUserType</literal>, even though it could be mapped as a component. One reason for this is abstraction. With a custom type, your mapping documents would be protected against changes to the way monetary values are represented."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2813
#, no-c-format
msgid "It is possible to provide more than one mapping for a particular persistent class. In this case, you must specify an <emphasis>entity name</emphasis> to disambiguate between instances of the two mapped entities. By default, the entity name is the same as the class name. Hibernate lets you specify the entity name when working with persistent objects, when writing queries, or when mapping associations to the named entity."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2821
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
- " entity-name=\"CurrentContract\">\n"
- " ...\n"
- " <set name=\"history\" inverse=\"true\"\n"
- " order-by=\"effectiveEndDate desc\">\n"
- " <key column=\"currentContractId\"/>\n"
- " <one-to-many entity-name=\"HistoricalContract\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Contract\" table=\"ContractHistory\"\n"
- " entity-name=\"HistoricalContract\">\n"
- " ...\n"
- " <many-to-one name=\"currentContract\"\n"
- " column=\"currentContractId\"\n"
- " entity-name=\"CurrentContract\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2823
#, no-c-format
msgid "Associations are now specified using <literal>entity-name</literal> instead of <literal>class</literal>."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2832
#, no-c-format
msgid "You can force Hibernate to quote an identifier in the generated SQL by enclosing the table or column name in backticks in the mapping document. Hibernate will use the correct quotation style for the SQL <literal>Dialect</literal>. This is usually double quotes, but the SQL Server uses brackets and MySQL uses backticks."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
- " <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></id>\n"
- " <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
- " ...\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2847
#, no-c-format
msgid "XML does not suit all users so there are some alternative ways to define O/R mapping metadata in Hibernate."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2854
#, no-c-format
msgid "Many Hibernate users prefer to embed mapping information directly in sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover this approach in this reference guide since it is considered part of XDoclet. However, we include the following example of the <literal>Cat</literal> class with XDoclet mappings:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2861
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "import java.util.Set;\n"
- "import java.util.Date;\n"
- "\n"
- "/**\n"
- " * @hibernate.class\n"
- " * table=\"CATS\"\n"
- " */\n"
- "public class Cat {\n"
- " private Long id; // identifier\n"
- " private Date birthdate;\n"
- " private Cat mother;\n"
- " private Set kittens\n"
- " private Color color;\n"
- " private char sex;\n"
- " private float weight;\n"
- "\n"
- " /*\n"
- " * @hibernate.id\n"
- " * generator-class=\"native\"\n"
- " * column=\"CAT_ID\"\n"
- " */\n"
- " public Long getId() {\n"
- " return id;\n"
- " }\n"
- " private void setId(Long id) {\n"
- " this.id=id;\n"
- " }\n"
- "\n"
- " /**\n"
- " * @hibernate.many-to-one\n"
- " * column=\"PARENT_ID\"\n"
- " */\n"
- " public Cat getMother() {\n"
- " return mother;\n"
- " }\n"
- " void setMother(Cat mother) {\n"
- " this.mother = mother;\n"
- " }\n"
- "\n"
- " /**\n"
- " * @hibernate.property\n"
- " * column=\"BIRTH_DATE\"\n"
- " */\n"
- " public Date getBirthdate() {\n"
- " return birthdate;\n"
- " }\n"
- " void setBirthdate(Date date) {\n"
- " birthdate = date;\n"
- " }\n"
- " /**\n"
- " * @hibernate.property\n"
- " * column=\"WEIGHT\"\n"
- " */\n"
- " public float getWeight() {\n"
- " return weight;\n"
- " }\n"
- " void setWeight(float weight) {\n"
- " this.weight = weight;\n"
- " }\n"
- "\n"
- " /**\n"
- " * @hibernate.property\n"
- " * column=\"COLOR\"\n"
- " * not-null=\"true\"\n"
- " */\n"
- " public Color getColor() {\n"
- " return color;\n"
- " }\n"
- " void setColor(Color color) {\n"
- " this.color = color;\n"
- " }\n"
- " /**\n"
- " * @hibernate.set\n"
- " * inverse=\"true\"\n"
- " * order-by=\"BIRTH_DATE\"\n"
- " * @hibernate.collection-key\n"
- " * column=\"PARENT_ID\"\n"
- " * @hibernate.collection-one-to-many\n"
- " */\n"
- " public Set getKittens() {\n"
- " return kittens;\n"
- " }\n"
- " void setKittens(Set kittens) {\n"
- " this.kittens = kittens;\n"
- " }\n"
- " // addKitten not needed by Hibernate\n"
- " public void addKitten(Cat kitten) {\n"
- " kittens.add(kitten);\n"
- " }\n"
- "\n"
- " /**\n"
- " * @hibernate.property\n"
- " * column=\"SEX\"\n"
- " * not-null=\"true\"\n"
- " * update=\"false\"\n"
- " */\n"
- " public char getSex() {\n"
- " return sex;\n"
- " }\n"
- " void setSex(char sex) {\n"
- " this.sex=sex;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2863
#, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2872
#, no-c-format
msgid "JDK 5.0 introduced XDoclet-style annotations at the language level that are type-safe and checked at compile time. This mechanism is more powerful than XDoclet annotations and better supported by tools and IDEs. IntelliJ IDEA, for example, supports auto-completion and syntax highlighting of JDK 5.0 annotations. The new revision of the EJB specification (JSR-220) uses JDK 5.0 annotations as the primary metadata mechanism for entity beans. Hibernate3 implements the <literal>EntityManager</literal> of JSR-220 (the persistence API). Support for mapping metadata is available via the <emphasis>Hibernate Annotations</emphasis> package as a separate download. Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2887
-#, no-c-format
-msgid ""
- "<![CDATA[@Entity(access = AccessType.FIELD)\n"
- "public class Customer implements Serializable {\n"
- "\n"
- " @Id;\n"
- " Long id;\n"
- "\n"
- " String firstName;\n"
- " String lastName;\n"
- " Date birthday;\n"
- "\n"
- " @Transient\n"
- " Integer age;\n"
- "\n"
- " @Embedded\n"
- " private Address homeAddress;\n"
- "\n"
- " @OneToMany(cascade=CascadeType.ALL)\n"
- " @JoinColumn(name=\"CUSTOMER_ID\")\n"
- " Set<Order> orders;\n"
- "\n"
- " // Getter/setter and business methods\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2891
#, no-c-format
msgid "Support for JDK 5.0 Annotations (and JSR-220) is currently under development. Please refer to the Hibernate Annotations module for more details."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2901
#, no-c-format
msgid "Generated properties"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2902
#, no-c-format
msgid "Generated properties are properties that have their values generated by the database. Typically, Hibernate applications needed to <literal>refresh</literal> objects that contain any properties for which the database was generating values. Marking properties as generated, however, lets the application delegate this responsibility to Hibernate. When Hibernate issues an SQL INSERT or UPDATE for an entity that has defined generated properties, it immediately issues a select afterwards to retrieve the generated values."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2911
#, no-c-format
msgid "Properties marked as generated must additionally be non-insertable and non-updateable. Only <link linkend=\"mapping-declaration-version\">versions</link>, <link linkend=\"mapping-declaration-timestamp\">timestamps</link>, and <link linkend=\"mapping-declaration-property\">simple properties</link>, can be marked as generated."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2918
#, no-c-format
msgid "<literal>never</literal> (the default): the given property value is not generated within the database."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2922
#, no-c-format
msgid "<literal>insert</literal>: the given property value is generated on insert, but is not regenerated on subsequent updates. Properties like created-date fall into this category. Even though <link linkend=\"mapping-declaration-version\">version</link> and <link linkend=\"mapping-declaration-timestamp\">timestamp</link> properties can be marked as generated, this option is not available."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2930
#, no-c-format
msgid "<literal>always</literal>: the property value is generated both on insert and on update."
msgstr ""
#. Tag: title
-#: basic_mapping.xml:2937
#, no-c-format
-msgid "Auxiliary database objects"
+msgid "Column read and write expressions"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2938
#, no-c-format
-msgid "Auxiliary database objects allow for the CREATE and DROP of arbitrary database objects. In conjunction with Hibernate's schema evolution tools, they have the ability to fully define a user schema within the Hibernate mapping files. Although designed specifically for creating and dropping things like triggers or stored procedures, any SQL command that can be run via a <literal>java.sql.Statement.execute()</literal> method is valid (for example, ALTERs, INSERTS, etc.). There are essentially two modes for defining auxiliary database objects:"
+msgid "Hibernate allows you to customize the SQL it uses to read and write the values of columns mapped to <link linkend=\"mapping-declaration-property\">simple properties</link>. For example, if your database provides a set of data encryption functions, you can invoke them for individual columns like this: <programlisting role=\"XML\"><property name=\"creditCardNumber\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" write=\"encrypt(?)\"/> </property></programlisting>"
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2947
#, no-c-format
-msgid "The first mode is to explicitly list the CREATE and DROP commands in the mapping file:"
+msgid "Hibernate applies the custom expressions automatically whenever the property is referenced in a query. This functionality is similar to a derived-property <literal>formula</literal> with two differences:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- " ...\n"
- " <database-object>\n"
- " <create>CREATE TRIGGER my_trigger ...</create>\n"
- " <drop>DROP TRIGGER my_trigger</drop>\n"
- " </database-object>\n"
- "</hibernate-mapping>]]>"
+msgid "The property is backed by one or more columns that are exported as part of automatic schema generation."
msgstr ""
#. Tag: para
-#: basic_mapping.xml:2952
#, no-c-format
-msgid "The second mode is to supply a custom class that constructs the CREATE and DROP commands. This custom class must implement the <literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal> interface."
+msgid "The property is read-write, not read-only."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- " ...\n"
- " <database-object>\n"
- " <definition class=\"MyTriggerDefinition\"/>\n"
- " </database-object>\n"
- "</hibernate-mapping>]]>"
+msgid "The <literal>write</literal> expression, if specified, must contain exactly one '?' placeholder for the value."
msgstr ""
+#. Tag: title
+#, no-c-format
+msgid "Auxiliary database objects"
+msgstr ""
+
#. Tag: para
-#: basic_mapping.xml:2958
#, no-c-format
-msgid "Additionally, these database objects can be optionally scoped so that they only apply when certain dialects are used."
+msgid "Auxiliary database objects allow for the CREATE and DROP of arbitrary database objects. In conjunction with Hibernate's schema evolution tools, they have the ability to fully define a user schema within the Hibernate mapping files. Although designed specifically for creating and dropping things like triggers or stored procedures, any SQL command that can be run via a <literal>java.sql.Statement.execute()</literal> method is valid (for example, ALTERs, INSERTS, etc.). There are essentially two modes for defining auxiliary database objects:"
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2962
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- " ...\n"
- " <database-object>\n"
- " <definition class=\"MyTriggerDefinition\"/>\n"
- " <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
- " <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
- " </database-object>\n"
- "</hibernate-mapping>]]>"
+msgid "The first mode is to explicitly list the CREATE and DROP commands in the mapping file:"
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid "The second mode is to supply a custom class that constructs the CREATE and DROP commands. This custom class must implement the <literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal> interface."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Additionally, these database objects can be optionally scoped so that they only apply when certain dialects are used."
+msgstr ""
+
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/batch.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/batch.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/batch.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,379 +1,189 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
msgstr ""
#. Tag: para
-#: batch.xml:31
#, no-c-format
msgid "A naive approach to inserting 100,000 rows in the database using Hibernate might look like this:"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:36
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- "for ( int i=0; i<100000; i++ ) {\n"
- " Customer customer = new Customer(.....);\n"
- " session.save(customer);\n"
- "}\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:38
#, no-c-format
msgid "This would fall over with an <literal>OutOfMemoryException</literal> somewhere around the 50,000th row. That is because Hibernate caches all the newly inserted <literal>Customer</literal> instances in the session-level cache. In this chapter we will show you how to avoid this problem."
msgstr ""
#. Tag: para
-#: batch.xml:45
#, no-c-format
msgid "If you are undertaking batch processing you will need to enable the use of JDBC batching. This is absolutely essential if you want to achieve optimal performance. Set the JDBC batch size to a reasonable number (10-50, for example):"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:52
-#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:54
#, no-c-format
msgid "Hibernate disables insert batching at the JDBC level transparently if you use an <literal>identity</literal> identifier generator."
msgstr ""
#. Tag: para
-#: batch.xml:59
#, no-c-format
msgid "You can also do this kind of work in a process where interaction with the second-level cache is completely disabled:"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid "However, this is not absolutely necessary, since we can explicitly set the <literal>CacheMode</literal> to disable interaction with the second-level cache."
msgstr ""
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
msgstr ""
#. Tag: para
-#: batch.xml:74
#, no-c-format
msgid "When making new objects persistent <literal>flush()</literal> and then <literal>clear()</literal> the session regularly in order to control the size of the first-level cache."
msgstr ""
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- " \n"
- "for ( int i=0; i<100000; i++ ) {\n"
- " Customer customer = new Customer(.....);\n"
- " session.save(customer);\n"
- " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
- " //flush a batch of inserts and release memory:\n"
- " session.flush();\n"
- " session.clear();\n"
- " }\n"
- "}\n"
- " \n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
msgstr ""
#. Tag: para
-#: batch.xml:87
#, no-c-format
msgid "For retrieving and updating data, the same ideas apply. In addition, you need to use <literal>scroll()</literal> to take advantage of server-side cursors for queries that return many rows of data."
msgstr ""
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- " \n"
- "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
- " .setCacheMode(CacheMode.IGNORE)\n"
- " .scroll(ScrollMode.FORWARD_ONLY);\n"
- "int count=0;\n"
- "while ( customers.next() ) {\n"
- " Customer customer = (Customer) customers.get(0);\n"
- " customer.updateStuff(...);\n"
- " if ( ++count % 20 == 0 ) {\n"
- " //flush a batch of updates and release memory:\n"
- " session.flush();\n"
- " session.clear();\n"
- " }\n"
- "}\n"
- " \n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
msgstr ""
#. Tag: para
-#: batch.xml:99
#, no-c-format
msgid "Alternatively, Hibernate provides a command-oriented API that can be used for streaming data to and from the database in the form of detached objects. A <literal>StatelessSession</literal> has no persistence context associated with it and does not provide many of the higher-level life cycle semantics. In particular, a stateless session does not implement a first-level cache nor interact with any second-level or query cache. It does not implement transactional write-behind or automatic dirty checking. Operations performed using a stateless session never cascade to associated instances. Collections are ignored by a stateless session. Operations performed via a stateless session bypass Hibernate's event model and interceptors. Due to the lack of a first-level cache, Stateless sessions are vulnerable to data aliasing effects. A stateless session is a lower-level abstraction that is much closer to the underlying JDBC."
msgstr ""
-#. Tag: programlisting
-#: batch.xml:114
-#, no-c-format
-msgid ""
- "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- " \n"
- "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
- " .scroll(ScrollMode.FORWARD_ONLY);\n"
- "while ( customers.next() ) {\n"
- " Customer customer = (Customer) customers.get(0);\n"
- " customer.updateStuff(...);\n"
- " session.update(customer);\n"
- "}\n"
- " \n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:116
#, no-c-format
msgid "In this code example, the <literal>Customer</literal> instances returned by the query are immediately detached. They are never associated with any persistence context."
msgstr ""
#. Tag: para
-#: batch.xml:122
#, no-c-format
msgid "The <literal>insert(), update()</literal> and <literal>delete()</literal> operations defined by the <literal>StatelessSession</literal> interface are considered to be direct database row-level operations. They result in the immediate execution of a SQL <literal>INSERT, UPDATE</literal> or <literal>DELETE</literal> respectively. They have different semantics to the <literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> operations defined by the <literal>Session</literal> interface."
msgstr ""
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
msgstr ""
#. Tag: para
-#: batch.xml:137
#, no-c-format
msgid "As already discussed, automatic and transparent object/relational mapping is concerned with the management of the object state. The object state is available in memory. This means that manipulating data directly in the database (using the SQL <literal>Data Manipulation Language</literal> (DML) the statements: <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>) will not affect in-memory state. However, Hibernate provides methods for bulk SQL-style DML statement execution that is performed through the Hibernate Query Language (<link linkend=\"queryhql\">HQL</link>)."
msgstr ""
#. Tag: para
-#: batch.xml:146
#, no-c-format
msgid "The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE where_conditions)?</literal>."
msgstr ""
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
msgstr ""
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
msgstr ""
#. Tag: para
-#: batch.xml:162
#, no-c-format
msgid "There can only be a single entity named in the from-clause. It can, however, be aliased. If the entity name is aliased, then any property references must be qualified using that alias. If the entity name is not aliased, then it is illegal for any property references to be qualified."
msgstr ""
#. Tag: para
-#: batch.xml:170
#, no-c-format
msgid "No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or explicit, can be specified in a bulk HQL query. Sub-queries can be used in the where-clause, where the subqueries themselves may contain joins."
msgstr ""
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
msgstr ""
#. Tag: para
-#: batch.xml:183
#, no-c-format
msgid "As an example, to execute an HQL <literal>UPDATE</literal>, use the <literal>Query.executeUpdate()</literal> method. The method is named for those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</literal>:"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- "\n"
- "String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :oldName\";\n"
- "// or String hqlUpdate = \"update Customer set name = :newName where name = :oldName\";\n"
- "int updatedEntities = s.createQuery( hqlUpdate )\n"
- " .setString( \"newName\", newName )\n"
- " .setString( \"oldName\", oldName )\n"
- " .executeUpdate();\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:191
#, no-c-format
msgid "In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> statements, by default, do not effect the <link linkend=\"mapping-declaration-version\">version</link> or the <link linkend=\"mapping-declaration-timestamp\">timestamp</link> property values for the affected entities. However, you can force Hibernate to reset the <literal>version</literal> or <literal>timestamp</literal> property values through the use of a <literal>versioned update</literal>. This is achieved by adding the <literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> keyword."
msgstr ""
-#. Tag: programlisting
-#: batch.xml:201
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- "String hqlVersionedUpdate = \"update versioned Customer set name = :newName where name = :oldName\";\n"
- "int updatedEntities = s.createQuery( hqlUpdate )\n"
- " .setString( \"newName\", newName )\n"
- " .setString( \"oldName\", oldName )\n"
- " .executeUpdate();\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:203
#, no-c-format
msgid "Custom version types, <literal>org.hibernate.usertype.UserVersionType</literal>, are not allowed in conjunction with a <literal>update versioned</literal> statement."
msgstr ""
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid "To execute an HQL <literal>DELETE</literal>, use the same <literal>Query.executeUpdate()</literal> method:"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:213
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- "\n"
- "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
- "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
- "int deletedEntities = s.createQuery( hqlDelete )\n"
- " .setString( \"oldName\", oldName )\n"
- " .executeUpdate();\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:215
#, no-c-format
msgid "The <literal>int</literal> value returned by the <literal>Query.executeUpdate()</literal> method indicates the number of entities effected by the operation. This may or may not correlate to the number of rows effected in the database. An HQL bulk operation might result in multiple actual SQL statements being executed (for joined-subclass, for example). The returned number indicates the number of actual entities affected by the statement. Going back to the example of joined-subclass, a delete against one of the subclasses may actually result in deletes against not just the table to which that subclass is mapped, but also the \"root\" table and potentially joined-subclass tables further down the inheritance hierarchy."
msgstr ""
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid "The pseudo-syntax for <literal>INSERT</literal> statements is: <literal>INSERT INTO EntityName properties_list select_statement</literal>. Some points to note:"
msgstr ""
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid "Only the INSERT INTO ... SELECT ... form is supported; not the INSERT INTO ... VALUES ... form."
msgstr ""
#. Tag: para
-#: batch.xml:237
#, no-c-format
msgid "The properties_list is analogous to the <literal>column specification</literal> in the SQL <literal>INSERT</literal> statement. For entities involved in mapped inheritance, only properties directly defined on that given class-level can be used in the properties_list. Superclass properties are not allowed and subclass properties do not make sense. In other words, <literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
#. Tag: para
-#: batch.xml:247
#, no-c-format
msgid "select_statement can be any valid HQL select query, with the caveat that the return types must match the types expected by the insert. Currently, this is checked during query compilation rather than allowing the check to relegate to the database. This might, however, cause problems between Hibernate <literal>Type</literal>s which are <emphasis>equivalent</emphasis> as opposed to <emphasis>equal</emphasis>. This might cause issues with mismatches between a property defined as a <literal>org.hibernate.type.DateType</literal> and a property defined as a <literal>org.hibernate.type.TimestampType</literal>, even though the database might not make a distinction or might be able to handle the conversion."
msgstr ""
#. Tag: para
-#: batch.xml:259
#, no-c-format
msgid "For the id property, the insert statement gives you two options. You can either explicitly specify the id property in the properties_list, in which case its value is taken from the corresponding select expression, or omit it from the properties_list, in which case a generated value is used. This latter option is only available when using id generators that operate in the database; attempting to use this option with any \"in memory\" type generators will cause an exception during parsing. For the purposes of this discussion, in-database generators are considered to be <literal>org.hibernate.id.SequenceGenerator</literal> (and its subclasses) and any implementers of <literal>org.hibernate.id.PostInsertIdentifierGenerator</literal>. The most notable exception here is <literal>org.hibernate.id.TableHiLoGenerator</literal>, which cannot be used because it does not expose a selectable way to get its values."
msgstr ""
#. Tag: para
-#: batch.xml:274
#, no-c-format
msgid "For properties mapped as either <literal>version</literal> or <literal>timestamp</literal>, the insert statement gives you two options. You can either specify the property in the properties_list, in which case its value is taken from the corresponding select expressions, or omit it from the properties_list, in which case the <literal>seed value</literal> defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
#. Tag: para
-#: batch.xml:284
#, no-c-format
msgid "The following is an example of an HQL <literal>INSERT</literal> statement execution:"
msgstr ""
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = sessionFactory.openSession();\n"
- "Transaction tx = session.beginTransaction();\n"
- "\n"
- "String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c.name from Customer c where ...\";\n"
- "int createdEntities = s.createQuery( hqlInsert )\n"
- " .executeUpdate();\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/best_practices.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/best_practices.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/best_practices.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,249 +1,208 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
msgstr ""
#. Tag: term
-#: best_practices.xml:33
#, no-c-format
msgid "Write fine-grained classes and map them using <literal><component></literal>:"
msgstr ""
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid "Use an <literal>Address</literal> class to encapsulate <literal>street</literal>, <literal>suburb</literal>, <literal>state</literal>, <literal>postcode</literal>. This encourages code reuse and simplifies refactoring."
msgstr ""
#. Tag: term
-#: best_practices.xml:43
#, no-c-format
msgid "Declare identifier properties on persistent classes:"
msgstr ""
#. Tag: para
-#: best_practices.xml:45
#, no-c-format
msgid "Hibernate makes identifier properties optional. There are a range of reasons why you should use them. We recommend that identifiers be 'synthetic', that is, generated with no business meaning."
msgstr ""
#. Tag: term
-#: best_practices.xml:53
#, no-c-format
msgid "Identify natural keys:"
msgstr ""
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid "Identify natural keys for all entities, and map them using <literal><natural-id></literal>. Implement <literal>equals()</literal> and <literal>hashCode()</literal> to compare the properties that make up the natural key."
msgstr ""
#. Tag: term
-#: best_practices.xml:63
#, no-c-format
msgid "Place each class mapping in its own file:"
msgstr ""
#. Tag: para
-#: best_practices.xml:65
#, no-c-format
msgid "Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes sense, particularly in a team environment."
msgstr ""
#. Tag: term
-#: best_practices.xml:73
#, no-c-format
msgid "Load mappings as resources:"
msgstr ""
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
msgstr ""
#. Tag: term
-#: best_practices.xml:81
#, no-c-format
msgid "Consider externalizing query strings:"
msgstr ""
#. Tag: para
-#: best_practices.xml:83
#, no-c-format
msgid "This is recommended if your queries call non-ANSI-standard SQL functions. Externalizing the query strings to mapping files will make the application more portable."
msgstr ""
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
msgstr ""
#. Tag: para
-#: best_practices.xml:93
#, no-c-format
msgid "As in JDBC, always replace non-constant values by \"?\". Do not use string manipulation to bind a non-constant value in a query. You should also consider using named parameters in queries."
msgstr ""
#. Tag: term
-#: best_practices.xml:101
#, no-c-format
msgid "Do not manage your own JDBC connections:"
msgstr ""
#. Tag: para
-#: best_practices.xml:103
#, no-c-format
msgid "Hibernate allows the application to manage JDBC connections, but his approach should be considered a last-resort. If you cannot use the built-in connection providers, consider providing your own implementation of <literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
#. Tag: term
-#: best_practices.xml:111
#, no-c-format
msgid "Consider using a custom type:"
msgstr ""
#. Tag: para
-#: best_practices.xml:113
#, no-c-format
msgid "Suppose you have a Java type from a library that needs to be persisted but does not provide the accessors needed to map it as a component. You should consider implementing <literal>org.hibernate.UserType</literal>. This approach frees the application code from implementing transformations to/from a Hibernate type."
msgstr ""
#. Tag: term
-#: best_practices.xml:122
#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
msgstr ""
#. Tag: para
-#: best_practices.xml:124
#, no-c-format
-msgid "In performance-critical areas of the system, some kinds of operations might benefit from direct JDBC. Do not assume, however, that JDBC is necessarily faster. Please wait until you <emphasis>know</emphasis> something is a bottleneck. If you need to use direct JDBC, you can open a Hibernate <literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index.html that JDBC connection. This way you can still use the same transaction strategy and underlying connection provider."
+msgid "In performance-critical areas of the system, some kinds of operations might benefit from direct JDBC. Do not assume, however, that JDBC is necessarily faster. Please wait until you <emphasis>know</emphasis> something is a bottleneck. If you need to use direct JDBC, you can open a Hibernate <literal>Session</literal>, wrap your JDBC operation as a <literal>org.hibernate.jdbc.Work</literal> object and using that JDBC connection. This way you can still use the same transaction strategy and underlying connection provider."
msgstr ""
#. Tag: term
-#: best_practices.xml:134
#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
msgstr ""
#. Tag: para
-#: best_practices.xml:136
#, no-c-format
msgid "Sometimes the Session synchronizes its persistent state with the database. Performance will be affected if this process occurs too often. You can sometimes minimize unnecessary flushing by disabling automatic flushing, or even by changing the order of queries and other operations within a particular transaction."
msgstr ""
#. Tag: term
-#: best_practices.xml:145
#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr ""
#. Tag: para
-#: best_practices.xml:147
#, no-c-format
msgid "When using a servlet/session bean architecture, you can pass persistent objects loaded in the session bean to and from the servlet/JSP layer. Use a new session to service each request. Use <literal>Session.merge()</literal> or <literal>Session.saveOrUpdate()</literal> to synchronize objects with the database."
msgstr ""
#. Tag: term
-#: best_practices.xml:156
#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr ""
#. Tag: para
-#: best_practices.xml:158
#, no-c-format
msgid "Database Transactions have to be as short as possible for best scalability. However, it is often necessary to implement long running <emphasis>application transactions</emphasis>, a single unit-of-work from the point of view of a user. An application transaction might span several client request/response cycles. It is common to use detached objects to implement application transactions. An appropriate alternative in a two tiered architecture, is to maintain a single open persistence contact session for the whole life cycle of the application transaction. Then simply disconnect from the JDBC connection at the end of each request and reconnect at the beginning of the subsequent request. Never share a single session across more than one application transaction or you will be working with stale data."
msgstr ""
#. Tag: term
-#: best_practices.xml:172
#, no-c-format
msgid "Do not treat exceptions as recoverable:"
msgstr ""
#. Tag: para
-#: best_practices.xml:174
#, no-c-format
msgid "This is more of a necessary practice than a \"best\" practice. When an exception occurs, roll back the <literal>Transaction</literal> and close the <literal>Session</literal>. If you do not do this, Hibernate cannot guarantee that in-memory state accurately represents the persistent state. For example, do not use <literal>Session.load()</literal> to determine if an instance with the given identifier exists on the database; use <literal>Session.get()</literal> or a query instead."
msgstr ""
#. Tag: term
-#: best_practices.xml:184
#, no-c-format
msgid "Prefer lazy fetching for associations:"
msgstr ""
#. Tag: para
-#: best_practices.xml:186
#, no-c-format
msgid "Use eager fetching sparingly. Use proxies and lazy collections for most associations to classes that are not likely to be completely held in the second-level cache. For associations to cached classes, where there is an a extremely high probability of a cache hit, explicitly disable eager fetching using <literal>lazy=\"false\"</literal>. When join fetching is appropriate to a particular use case, use a query with a <literal>left join fetch</literal>."
msgstr ""
#. Tag: term
-#: best_practices.xml:196
#, no-c-format
msgid "Use the <emphasis>open session in view</emphasis> pattern, or a disciplined <emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
#. Tag: para
-#: best_practices.xml:201
#, no-c-format
msgid "Hibernate frees the developer from writing tedious <emphasis>Data Transfer Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual purposes: first, they work around the problem that entity beans are not serializable; second, they implicitly define an assembly phase where all data to be used by the view is fetched and marshalled into the DTOs before returning control to the presentation tier. Hibernate eliminates the first purpose. Unless you are prepared to hold the persistence context (the session) open across the view rendering process, you will still need an assembly phase. Think of your business methods as having a strict contract with the presentation tier about what data is available in the detached objects. This is not a limitation of Hibernate. It is a fundamental requirement of safe transactional data access."
msgstr ""
#. Tag: term
-#: best_practices.xml:215
#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
msgstr ""
#. Tag: para
-#: best_practices.xml:217
#, no-c-format
msgid "Hide Hibernate data-access code behind an interface. Combine the <emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> patterns. You can even have some classes persisted by handcoded JDBC associated to Hibernate via a <literal>UserType</literal>. This advice is, however, intended for \"sufficiently large\" applications. It is not appropriate for an application with five tables."
msgstr ""
#. Tag: term
-#: best_practices.xml:227
#, no-c-format
msgid "Do not use exotic association mappings:"
msgstr ""
#. Tag: para
-#: best_practices.xml:229
#, no-c-format
msgid "Practical test cases for real many-to-many associations are rare. Most of the time you need additional information stored in the \"link table\". In this case, it is much better to use two one-to-many associations to an intermediate link class. In fact, most associations are one-to-many and many-to-one. For this reason, you should proceed cautiously when using any other association style."
msgstr ""
#. Tag: term
-#: best_practices.xml:239
#, no-c-format
msgid "Prefer bidirectional associations:"
msgstr ""
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid "Unidirectional associations are more difficult to query. In a large application, almost all associations must be navigable in both directions in queries."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/bibliography.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/bibliography.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/bibliography.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,70 +1,49 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/collection_mapping.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/collection_mapping.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/collection_mapping.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1210 +1,623 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: collection_mapping.xml:29
#, no-c-format
msgid "Collection mapping"
msgstr ""
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:34
#, no-c-format
msgid "Hibernate requires that persistent collection-valued fields be declared as an interface type. For example:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:39
-#, no-c-format
-msgid ""
- "<![CDATA[public class Product {\n"
- " private String serialNumber;\n"
- " private Set parts = new HashSet();\n"
- " \n"
- " public Set getParts() { return parts; }\n"
- " void setParts(Set parts) { this.parts = parts; }\n"
- " public String getSerialNumber() { return serialNumber; }\n"
- " void setSerialNumber(String sn) { serialNumber = sn; }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:41
#, no-c-format
msgid "The actual interface might be <literal>java.util.Set</literal>, <literal>java.util.Collection</literal>, <literal>java.util.List</literal>, <literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java.util.SortedMap</literal> or anything you like (\"anything you like\" means you will have to write an implementation of <literal>org.hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:50
#, no-c-format
msgid "Notice how the instance variable was initialized with an instance of <literal>HashSet</literal>. This is the best way to initialize collection valued properties of newly instantiated (non-persistent) instances. When you make the instance persistent, by calling <literal>persist()</literal> for example, Hibernate will actually replace the <literal>HashSet</literal> with an instance of Hibernate's own implementation of <literal>Set</literal>. Be aware of the following errors:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:60
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = new DomesticCat();\n"
- "Cat kitten = new DomesticCat();\n"
- "....\n"
- "Set kittens = new HashSet();\n"
- "kittens.add(kitten);\n"
- "cat.setKittens(kittens);\n"
- "session.persist(cat);\n"
- "kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
- "(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:62
#, no-c-format
msgid "The persistent collections injected by Hibernate behave like <literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, depending on the interface type."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:69
#, no-c-format
msgid "Collections instances have the usual behavior of value types. They are automatically persisted when referenced by a persistent object and are automatically deleted when unreferenced. If a collection is passed from one persistent object to another, its elements might be moved from one table to another. Two entities cannot share a reference to the same collection instance. Due to the underlying relational model, collection-valued properties do not support null value semantics. Hibernate does not distinguish between a null collection reference and an empty collection."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:80
#, no-c-format
msgid "Use persistent collections the same way you use ordinary Java collections. However, please ensure you understand the semantics of bidirectional associations (these are discussed later)."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:92
#, no-c-format
msgid "There are quite a range of mappings that can be generated for collections that cover many common relational models. We suggest you experiment with the schema generation tool so that you understand how various mapping declarations translate to database tables."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:99
#, no-c-format
msgid "The Hibernate mapping element used for mapping a collection depends upon the type of interface. For example, a <literal><set></literal> element is used for mapping properties of type <literal>Set</literal>."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Product\">\n"
- " <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
- " <set name=\"parts\">\n"
- " <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
- " <one-to-many class=\"Part\"/>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid "Apart from <literal><set></literal>, there is also <literal><list></literal>, <literal><map></literal>, <literal><bag></literal>, <literal><array></literal> and <literal><primitive-array></literal> mapping elements. The <literal><map></literal> element is representative:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:132
-#, no-c-format
-msgid ""
- "<![CDATA[<map\n"
- " name=\"propertyName\"\n"
- " table=\"table_name\"\n"
- " schema=\"schema_name\"\n"
- " lazy=\"true|extra|false\"\n"
- " inverse=\"true|false\"\n"
- " cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
- " sort=\"unsorted|natural|comparatorClass\"\n"
- " order-by=\"column_name asc|desc\"\n"
- " where=\"arbitrary sql where condition\"\n"
- " fetch=\"join|select|subselect\"\n"
- " batch-size=\"N\"\n"
- " access=\"field|property|ClassName\"\n"
- " optimistic-lock=\"true|false\"\n"
- " mutable=\"true|false\"\n"
- " node=\"element-name|.\"\n"
- " embed-xml=\"true|false\"\n"
- ">\n"
- "\n"
- " <key .... />\n"
- " <map-key .... />\n"
- " <element .... />\n"
- "</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:135
#, no-c-format
msgid "<literal>name</literal>: the collection property name"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:140
#, no-c-format
msgid "<literal>table</literal> (optional - defaults to property name): the name of the collection table. It is not used for one-to-many associations."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:146
#, no-c-format
msgid "<literal>schema</literal> (optional): the name of a table schema to override the schema declared on the root element"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:152
#, no-c-format
msgid "<literal>lazy</literal> (optional - defaults to <literal>true</literal>): disables lazy fetching and specifies that the association is always eagerly fetched. It can also be used to enable \"extra-lazy\" fetching where most operations do not initialize the collection. This is suitable for large collections."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:161
#, no-c-format
msgid "<literal>inverse</literal> (optional - defaults to <literal>false</literal>): marks this collection as the \"inverse\" end of a bidirectional association."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:167
#, no-c-format
msgid "<literal>cascade</literal> (optional - defaults to <literal>none</literal>): enables operations to cascade to child entities."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:173
#, no-c-format
msgid "<literal>sort</literal> (optional): specifies a sorted collection with <literal>natural</literal> sort order or a given comparator class."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:179
#, no-c-format
msgid "<literal>order-by</literal> (optional, JDK1.4 only): specifies a table column or columns that define the iteration order of the <literal>Map</literal>, <literal>Set</literal> or bag, together with an optional <literal>asc</literal> or <literal>desc</literal>."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:186
#, no-c-format
msgid "<literal>where</literal> (optional): specifies an arbitrary SQL <literal>WHERE</literal> condition that is used when retrieving or removing the collection. This is useful if the collection needs to contain only a subset of the available data."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:193
#, no-c-format
msgid "<literal>fetch</literal> (optional, defaults to <literal>select</literal>): chooses between outer-join fetching, fetching by sequential select, and fetching by sequential subselect."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:200
#, no-c-format
msgid "<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:206
#, no-c-format
msgid "<literal>access</literal> (optional - defaults to <literal>property</literal>): the strategy Hibernate uses for accessing the collection property value."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:212
#, no-c-format
msgid "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): specifies that changes to the state of the collection results in increments of the owning entity's version. For one-to-many associations you may want to disable this setting."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:220
#, no-c-format
msgid "<literal>mutable</literal> (optional - defaults to <literal>true</literal>): a value of <literal>false</literal> specifies that the elements of the collection never change. This allows for minor performance optimization in some cases."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:232
#, no-c-format
msgid "Collection instances are distinguished in the database by the foreign key of the entity that owns the collection. This foreign key is referred to as the <emphasis>collection key column</emphasis>, or columns, of the collection table. The collection key column is mapped by the <literal><key></literal> element."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:240
#, no-c-format
msgid "There can be a nullability constraint on the foreign key column. For most collections, this is implied. For unidirectional one-to-many associations, the foreign key column is nullable by default, so you may need to specify <literal>not-null=\"true\"</literal>."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:247
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:249
#, no-c-format
msgid "The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid "See the previous chapter for a full definition of the <literal><key></literal> element."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:265
#, no-c-format
msgid "Collections can contain almost any other Hibernate type, including: basic types, custom types, components and references to other entities. This is an important distinction. An object in a collection might be handled with \"value\" semantics (its life cycle fully depends on the collection owner), or it might be a reference to another entity with its own life cycle. In the latter case, only the \"link\" between the two objects is considered to be a state held by the collection."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid "The contained type is referred to as the <emphasis>collection element type</emphasis>. Collection elements are mapped by <literal><element></literal> or <literal><composite-element></literal>, or in the case of entity references, with <literal><one-to-many></literal> or <literal><many-to-many></literal>. The first two map elements with value semantics, the next two are used to map entity associations."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:288
#, no-c-format
msgid "All collection mappings, except those with set and bag semantics, need an <emphasis>index column</emphasis> in the collection table. An index column is a column that maps to an array index, or <literal>List</literal> index, or <literal>Map</literal> key. The index of a <literal>Map</literal> may be of any basic type, mapped with <literal><map-key></literal>. It can be an entity reference mapped with <literal><map-key-many-to-many></literal>, or it can be a composite type mapped with <literal><composite-map-key></literal>. The index of an array or list is always of type <literal>integer</literal> and is mapped using the <literal><list-index></literal> element. The mapped column contains sequential integers that are numbered from zero by default."
msgstr ""
-#. Tag: sect2
-#: collection_mapping.xml:299
+#. Tag: para
#, no-c-format
-msgid ""
- "<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id=\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-index \n"
- " column=\"column_name\"\n"
- " base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the name of the column holding the collection index values. </para> </callout> <callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - defaults to <literal>0</literal>): the value of the index column that corresponds to the first element of the list or array. </para> </callout> </calloutlist> </programlistingco> <programlistingco> <areaspec> <area id=\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-key \n"
- " column=\"column_name\"\n"
- " formula=\"any SQL expression\"\n"
- " type=\"type_name\"\n"
- " node=\"@attribute-name\"\n"
- " length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs=\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the column holding the collection index values. </para> </callout> <callout arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL formula used to evaluate the key of the map. </para> </callout> <callout arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of the map keys. </para> </callout> </calloutlist> </programlistingco> <programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-many\n"
- " column=\"column_name\"\n"
- " formula=\"any SQL expression\"\n"
- " class=\"ClassName\"\n"
- "/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> <para> <literal>column</literal> (optional): the name of the foreign key column for the collection index values. </para> </callout> <callout arearefs=\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ formula used to evaluate the foreign key of the map key. </para> </callout> <callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> (required): the entity class used as the map key. </para> </callout> </calloutlist> </programlistingco>"
+msgid "<literal>column_name</literal> (required): the name of the column holding the collection index values."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:380
#, no-c-format
+msgid "<literal>base</literal> (optional - defaults to <literal>0</literal>): the value of the index column that corresponds to the first element of the list or array."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>column</literal> (optional): the name of the column holding the collection index values."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>formula</literal> (optional): a SQL formula used to evaluate the key of the map."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>column</literal> (optional): the name of the foreign key column for the collection index values."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>formula</literal> (optional): a SQ formula used to evaluate the foreign key of the map key."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>class</literal> (required): the entity class used as the map key."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid "If your table does not have an index column, and you still wish to use <literal>List</literal> as the property type, you can map the property as a Hibernate <emphasis><bag></emphasis>. A bag does not retain its order when it is retrieved from the database, but it can be optionally sorted or ordered."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:392
#, no-c-format
msgid "Any collection of values or many-to-many associations requires a dedicated <emphasis>collection table</emphasis> with a foreign key column or columns, <emphasis>collection element column</emphasis> or columns, and possibly an index column or columns."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:399
#, no-c-format
msgid "For a collection of values use the <literal><element></literal> tag. For example:"
msgstr ""
-#. Tag: sect2
-#: collection_mapping.xml:401
+#. Tag: para
#, no-c-format
-msgid ""
- "<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> </areaspec> <programlisting><![CDATA[<element\n"
- " column=\"column_name\"\n"
- " formula=\"any SQL expression\"\n"
- " type=\"typename\"\n"
- " length=\"L\"\n"
- " precision=\"P\"\n"
- " scale=\"S\"\n"
- " not-null=\"true|false\"\n"
- " unique=\"true|false\"\n"
- " node=\"element-name\"\n"
- "/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> <literal>column</literal> (optional): the name of the column holding the collection element values. </para> </callout> <callout arearefs=\"element2b\"> <para> <literal>formula</literal> (optional): an SQL formula used to evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> <para> <literal>type</literal> (required): the type of the collection element. </para> </callout> </calloutlist> </programlistingco> <para> A <emphasis>many-to-many association</emphasis> is specified using the <literal><many-to-many></literal> element. </para> <programlistingco> <areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id=\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> <area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords=\"8 60\"/> <area id=\!
"manytomany8\" coords=\"9 60\"/> </areaspec> <programlisting><![CDATA[<many-to-many\n"
- " column=\"column_name\"\n"
- " formula=\"any SQL expression\"\n"
- " class=\"ClassName\"\n"
- " fetch=\"select|join\"\n"
- " unique=\"true|false\"\n"
- " not-found=\"ignore|exception\"\n"
- " entity-name=\"EntityName\"\n"
- " property-ref=\"propertyNameFromAssociatedClass\"\n"
- " node=\"element-name\"\n"
- " embed-xml=\"true|false\"\n"
- " />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> <para> <literal>column</literal> (optional): the name of the element foreign key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> <literal>formula</literal> (optional): an SQL formula used to evaluate the element foreign key value. </para> </callout> <callout arearefs=\"manytomany3\"> <para> <literal>class</literal> (required): the name of the associated class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> <literal>fetch</literal> (optional - defaults to <literal>join</literal>): enables outer-join or sequential select fetching for this association. This is a special case; for full eager fetching in a single <literal>SELECT</literal> of an entity and its many-to-many relationships to other entities, you would enable <literal>join</literal> fetching,not only of the collection itself, but also with this attribute on the <literal><many-to-many></literal> !
nested element. </para> </callout> <callout arearefs=\"manytomany5\"> <para> <literal>unique</literal> (optional): enables the DDL generation of a unique constraint for the foreign-key column. This makes the association multiplicity effectively one-to-many. </para> </callout> <callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> (optional - defaults to <literal>exception</literal>): specifies how foreign keys that reference missing rows will be handled: <literal>ignore</literal> will treat a missing row as a null association. </para> </callout> <callout arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): the entity name of the associated class, as an alternative to <literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8\"> <para> <literal>property-ref</literal> (optional): the name of a property of the associated class that is joined to this foreign key. If not specified, the primary key of the associated class i!
s used. </para> </callout> </calloutlist> </programlistingco>"
+msgid "<literal>column</literal> (optional): the name of the column holding the collection element values."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid "<literal>formula</literal> (optional): an SQL formula used to evaluate the element."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
-msgid "A set of strings:"
+msgid "<literal>type</literal> (required): the type of the collection element."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"names\" table=\"person_names\">\n"
- " <key column=\"person_id\"/>\n"
- " <element column=\"person_name\" type=\"string\"/>\n"
- "</set>]]>"
+msgid "A <emphasis>many-to-many association</emphasis> is specified using the <literal><many-to-many></literal> element."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:515
#, no-c-format
-msgid "A bag containing integers with an iteration order determined by the <literal>order-by</literal> attribute:"
+msgid "<literal>column</literal> (optional): the name of the element foreign key column."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<bag name=\"sizes\" \n"
- " table=\"item_sizes\" \n"
- " order-by=\"size asc\">\n"
- " <key column=\"item_id\"/>\n"
- " <element column=\"size\" type=\"integer\"/>\n"
- "</bag>]]>"
+msgid "<literal>formula</literal> (optional): an SQL formula used to evaluate the element foreign key value."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:522
#, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
+msgid "<literal>class</literal> (required): the name of the associated class."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<array name=\"addresses\" \n"
- " table=\"PersonAddress\" \n"
- " cascade=\"persist\">\n"
- " <key column=\"personId\"/>\n"
- " <list-index column=\"sortOrder\"/>\n"
- " <many-to-many column=\"addressId\" class=\"Address\"/>\n"
- "</array>]]>"
+msgid "<literal>fetch</literal> (optional - defaults to <literal>join</literal>): enables outer-join or sequential select fetching for this association. This is a special case; for full eager fetching in a single <literal>SELECT</literal> of an entity and its many-to-many relationships to other entities, you would enable <literal>join</literal> fetching,not only of the collection itself, but also with this attribute on the <literal><many-to-many></literal> nested element."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
+msgid "<literal>unique</literal> (optional): enables the DDL generation of a unique constraint for the foreign-key column. This makes the association multiplicity effectively one-to-many."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<map name=\"holidays\" \n"
- " table=\"holidays\" \n"
- " schema=\"dbo\" \n"
- " order-by=\"hol_name asc\">\n"
- " <key column=\"id\"/>\n"
- " <map-key column=\"hol_name\" type=\"string\"/>\n"
- " <element column=\"hol_date\" type=\"date\"/>\n"
- "</map>]]>"
+msgid "<literal>not-found</literal> (optional - defaults to <literal>exception</literal>): specifies how foreign keys that reference missing rows will be handled: <literal>ignore</literal> will treat a missing row as a null association."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:534
#, no-c-format
-msgid "A list of components (this is discussed in the next chapter):"
+msgid "<literal>entity-name</literal> (optional): the entity name of the associated class, as an alternative to <literal>class</literal>."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:538
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<list name=\"carComponents\" \n"
- " table=\"CarComponents\">\n"
- " <key column=\"carId\"/>\n"
- " <list-index column=\"sortOrder\"/>\n"
- " <composite-element class=\"CarComponent\">\n"
- " <property name=\"price\"/>\n"
- " <property name=\"type\"/>\n"
- " <property name=\"serialNumber\" column=\"serialNum\"/>\n"
- " </composite-element>\n"
- "</list>]]>"
+msgid "<literal>property-ref</literal> (optional): the name of a property of the associated class that is joined to this foreign key. If not specified, the primary key of the associated class is used."
msgstr ""
-#. Tag: title
-#: collection_mapping.xml:543
+#. Tag: para
#, no-c-format
-msgid "One-to-many associations"
+msgid "Here are some examples."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:545
#, no-c-format
-msgid "A <emphasis>one-to-many association</emphasis> links the tables of two classes via a foreign key with no intervening collection table. This mapping loses certain semantics of normal Java collections:"
+msgid "A set of strings:"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:553
#, no-c-format
-msgid "An instance of the contained entity class cannot belong to more than one instance of the collection."
+msgid "A bag containing integers with an iteration order determined by the <literal>order-by</literal> attribute:"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:559
#, no-c-format
-msgid "An instance of the contained entity class cannot appear at more than one value of the collection index."
+msgid "An array of entities, in this case, a many-to-many association:"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:566
#, no-c-format
-msgid "An association from <literal>Product</literal> to <literal>Part</literal> requires the existence of a foreign key column and possibly an index column to the <literal>Part</literal> table. A <literal><one-to-many></literal> tag indicates that this is a one-to-many association."
+msgid "A map from string indices to dates:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:579
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<one-to-many \n"
- " class=\"ClassName\"\n"
- " not-found=\"ignore|exception\"\n"
- " entity-name=\"EntityName\"\n"
- " node=\"element-name\"\n"
- " embed-xml=\"true|false\"\n"
- " />]]>"
+msgid "A list of components (this is discussed in the next chapter):"
msgstr ""
+#. Tag: title
+#, no-c-format
+msgid "One-to-many associations"
+msgstr ""
+
#. Tag: para
-#: collection_mapping.xml:582
#, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
+msgid "A <emphasis>one-to-many association</emphasis> links the tables of two classes via a foreign key with no intervening collection table. This mapping loses certain semantics of normal Java collections:"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:587
#, no-c-format
-msgid "<literal>not-found</literal> (optional - defaults to <literal>exception</literal>): specifies how cached identifiers that reference missing rows will be handled. <literal>ignore</literal> will treat a missing row as a null association."
+msgid "An instance of the contained entity class cannot belong to more than one instance of the collection."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:594
#, no-c-format
-msgid "<literal>entity-name</literal> (optional): the entity name of the associated class, as an alternative to <literal>class</literal>."
+msgid "An instance of the contained entity class cannot appear at more than one value of the collection index."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:602
#, no-c-format
-msgid "The <literal><one-to-many></literal> element does not need to declare any columns. Nor is it necessary to specify the <literal>table</literal> name anywhere."
+msgid "An association from <literal>Product</literal> to <literal>Part</literal> requires the existence of a foreign key column and possibly an index column to the <literal>Part</literal> table. A <literal><one-to-many></literal> tag indicates that this is a one-to-many association."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:609
#, no-c-format
-msgid "If the foreign key column of a <literal><one-to-many></literal> association is declared <literal>NOT NULL</literal>, you must declare the <literal><key></literal> mapping <literal>not-null=\"true\"</literal> or <emphasis>use a bidirectional association</emphasis> with the collection mapping marked <literal>inverse=\"true\"</literal>. See the discussion of bidirectional associations later in this chapter for more information."
+msgid "<literal>not-found</literal> (optional - defaults to <literal>exception</literal>): specifies how cached identifiers that reference missing rows will be handled. <literal>ignore</literal> will treat a missing row as a null association."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:619
#, no-c-format
-msgid "The following example shows a map of <literal>Part</literal> entities by name, where <literal>partName</literal> is a persistent property of <literal>Part</literal>. Notice the use of a formula-based index:"
+msgid "The <literal><one-to-many></literal> element does not need to declare any columns. Nor is it necessary to specify the <literal>table</literal> name anywhere."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:625
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<map name=\"parts\"\n"
- " cascade=\"all\">\n"
- " <key column=\"productId\" not-null=\"true\"/>\n"
- " <map-key formula=\"partName\"/>\n"
- " <one-to-many class=\"Part\"/>\n"
- "</map>]]>"
+msgid "If the foreign key column of a <literal><one-to-many></literal> association is declared <literal>NOT NULL</literal>, you must declare the <literal><key></literal> mapping <literal>not-null=\"true\"</literal> or <emphasis>use a bidirectional association</emphasis> with the collection mapping marked <literal>inverse=\"true\"</literal>. See the discussion of bidirectional associations later in this chapter for more information."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid "The following example shows a map of <literal>Part</literal> entities by name, where <literal>partName</literal> is a persistent property of <literal>Part</literal>. Notice the use of a formula-based index:"
+msgstr ""
+
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
msgstr ""
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid "Hibernate supports collections implementing <literal>java.util.SortedMap</literal> and <literal>java.util.SortedSet</literal>. You must specify a comparator in the mapping file:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"aliases\" \n"
- " table=\"person_aliases\" \n"
- " sort=\"natural\">\n"
- " <key column=\"person\"/>\n"
- " <element column=\"name\" type=\"string\"/>\n"
- "</set>\n"
- "\n"
- "<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
- " <key column=\"year_id\"/>\n"
- " <map-key column=\"hol_name\" type=\"string\"/>\n"
- " <element column=\"hol_date\" type=\"date\"/>\n"
- "</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid "Allowed values of the <literal>sort</literal> attribute are <literal>unsorted</literal>, <literal>natural</literal> and the name of a class implementing <literal>java.util.Comparator</literal>."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid "Sorted collections actually behave like <literal>java.util.TreeSet</literal> or <literal>java.util.TreeMap</literal>."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:654
#, no-c-format
msgid "If you want the database itself to order the collection elements, use the <literal>order-by</literal> attribute of <literal>set</literal>, <literal>bag</literal> or <literal>map</literal> mappings. This solution is only available under JDK 1.4 or higher and is implemented using <literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>. This performs the ordering in the SQL query and not in the memory."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower(name) asc\">\n"
- " <key column=\"person\"/>\n"
- " <element column=\"name\" type=\"string\"/>\n"
- "</set>\n"
- "\n"
- "<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
- " <key column=\"year_id\"/>\n"
- " <map-key column=\"hol_name\" type=\"string\"/>\n"
- " <element column=\"hol_date type=\"date\"/>\n"
- "</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:667
#, no-c-format
msgid "The value of the <literal>order-by</literal> attribute is an SQL ordering, not an HQL ordering."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:673
#, no-c-format
msgid "Associations can even be sorted by arbitrary criteria at runtime using a collection <literal>filter()</literal>:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid "<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:685
#, no-c-format
msgid "A <emphasis>bidirectional association</emphasis> allows navigation from both \"ends\" of the association. Two kinds of bidirectional association are supported:"
msgstr ""
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:694
#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
msgstr ""
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:711
#, no-c-format
msgid "You can specify a bidirectional many-to-many association by mapping two many-to-many associations to the same database table and declaring one end as <emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:718
#, no-c-format
msgid "Here is an example of a bidirectional many-to-many association that illustrates how each category can have many items and each item can be in many categories:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:723
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Category\">\n"
- " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
- " ...\n"
- " <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
- " <key column=\"CATEGORY_ID\"/>\n"
- " <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
- " </bag>\n"
- "</class>\n"
- "\n"
- "<class name=\"Item\">\n"
- " <id name=\"id\" column=\"ITEM_ID\"/>\n"
- " ...\n"
- "\n"
- " <!-- inverse end -->\n"
- " <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
- " <key column=\"ITEM_ID\"/>\n"
- " <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
- " </bag>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:725
#, no-c-format
msgid "Changes made only to the inverse end of the association are <emphasis>not</emphasis> persisted. This means that Hibernate has two representations in memory for every bidirectional association: one link from A to B and another link from B to A. This is easier to understand if you think about the Java object model and how a many-to-many relationship in Javais created:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "category.getItems().add(item); // The category now \"knows\" about the relationship\n"
- "item.getCategories().add(category); // The item now \"knows\" about the relationship\n"
- "\n"
- "session.persist(item); // The relationship won't be saved!\n"
- "session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid "The non-inverse side is used to save the in-memory representation to the database."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:739
#, no-c-format
msgid "You can define a bidirectional one-to-many association by mapping a one-to-many association to the same table column(s) as a many-to-one association and declaring the many-valued end <literal>inverse=\"true\"</literal>."
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:745
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Parent\">\n"
- " <id name=\"id\" column=\"parent_id\"/>\n"
- " ....\n"
- " <set name=\"children\" inverse=\"true\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </set>\n"
- "</class>\n"
- "\n"
- "<class name=\"Child\">\n"
- " <id name=\"id\" column=\"child_id\"/>\n"
- " ....\n"
- " <many-to-one name=\"parent\" \n"
- " class=\"Parent\" \n"
- " column=\"parent_id\"\n"
- " not-null=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:747
#, no-c-format
msgid "Mapping one end of an association with <literal>inverse=\"true\"</literal> does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:756
#, no-c-format
msgid "A bidirectional association where one end is represented as a <literal><list></literal> or <literal><map></literal>, requires special consideration. If there is a property of the child class that maps to the index column you can use <literal>inverse=\"true\"</literal> on the collection mapping:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:763
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Parent\">\n"
- " <id name=\"id\" column=\"parent_id\"/>\n"
- " ....\n"
- " <map name=\"children\" inverse=\"true\">\n"
- " <key column=\"parent_id\"/>\n"
- " <map-key column=\"name\" \n"
- " type=\"string\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </map>\n"
- "</class>\n"
- "\n"
- "<class name=\"Child\">\n"
- " <id name=\"id\" column=\"child_id\"/>\n"
- " ....\n"
- " <property name=\"name\" \n"
- " not-null=\"true\"/>\n"
- " <many-to-one name=\"parent\" \n"
- " class=\"Parent\" \n"
- " column=\"parent_id\"\n"
- " not-null=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:765
#, no-c-format
msgid "If there is no such property on the child class, the association cannot be considered truly bidirectional. That is, there is information available at one end of the association that is not available at the other end. In this case, you cannot map the collection <literal>inverse=\"true\"</literal>. Instead, you could use the following mapping:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Parent\">\n"
- " <id name=\"id\" column=\"parent_id\"/>\n"
- " ....\n"
- " <map name=\"children\">\n"
- " <key column=\"parent_id\"\n"
- " not-null=\"true\"/>\n"
- " <map-key column=\"name\" \n"
- " type=\"string\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </map>\n"
- "</class>\n"
- "\n"
- "<class name=\"Child\">\n"
- " <id name=\"id\" column=\"child_id\"/>\n"
- " ....\n"
- " <many-to-one name=\"parent\" \n"
- " class=\"Parent\" \n"
- " column=\"parent_id\"\n"
- " insert=\"false\"\n"
- " update=\"false\"\n"
- " not-null=\"true\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, no-c-format
msgid "Note that in this mapping, the collection-valued end of the association is responsible for updates to the foreign key."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:784
#, no-c-format
msgid "There are three possible approaches to mapping a ternary association. One approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:789
-#, no-c-format
-msgid ""
- "<![CDATA[<map name=\"contracts\">\n"
- " <key column=\"employer_id\" not-null=\"true\"/>\n"
- " <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
- " <one-to-many class=\"Contract\"/>\n"
- "</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
- "<![CDATA[<map name=\"connections\">\n"
- " <key column=\"incoming_node_id\"/>\n"
- " <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
- " <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
- "</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:793
#, no-c-format
msgid "A second approach is to remodel the association as an entity class. This is the most common approach."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:798
#, no-c-format
msgid "A final alternative is to use composite elements, which will be discussed later."
msgstr ""
-#. Tag: literal
-#: collection_mapping.xml:805
+#. Tag: title
#, no-c-format
-msgid "Using an <idbag>"
+msgid "<literal>Using an <idbag></literal>"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:807
#, no-c-format
msgid "The majority of the many-to-many associations and collections of values shown previously all map to tables with composite keys, even though it has been have suggested that entities should have synthetic identifiers (surrogate keys). A pure association table does not seem to benefit much from a surrogate key, although a collection of composite values <emphasis>might</emphasis>. It is for this reason that Hibernate provides a feature that allows you to map many-to-many associations and collections of values to a table with a surrogate key."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:817
#, no-c-format
msgid "The <literal><idbag></literal> element lets you map a <literal>List</literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:822
-#, no-c-format
-msgid ""
- "<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
- " <collection-id column=\"ID\" type=\"long\">\n"
- " <generator class=\"sequence\"/>\n"
- " </collection-id>\n"
- " <key column=\"PERSON1\"/>\n"
- " <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
- "</idbag>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:824
#, no-c-format
msgid "An <literal><idbag></literal> has a synthetic id generator, just like an entity class. A different surrogate key is assigned to each collection row. Hibernate does not, however, provide any mechanism for discovering the surrogate key value of a particular row."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:831
#, no-c-format
msgid "The update performance of an <literal><idbag></literal> supersedes a regular <literal><bag></literal>. Hibernate can locate individual rows efficiently and update or delete them individually, similar to a list, map or set."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid "In the current implementation, the <literal>native</literal> identifier generation strategy is not supported for <literal><idbag></literal> collection identifiers."
msgstr ""
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr ""
#. Tag: para
-#: collection_mapping.xml:863
#, no-c-format
msgid "This section covers collection examples."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid "The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:871
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "import java.util.Set;\n"
- "\n"
- "public class Parent {\n"
- " private long id;\n"
- " private Set children;\n"
- "\n"
- " public long getId() { return id; }\n"
- " private void setId(long id) { this.id=id; }\n"
- "\n"
- " private Set getChildren() { return children; }\n"
- " private void setChildren(Set children) { this.children=children; }\n"
- "\n"
- " ....\n"
- " ....\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:873
#, no-c-format
msgid "If each child has, at most, one parent, the most natural mapping is a one-to-many association:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class name=\"Parent\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <set name=\"children\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </set>\n"
- " </class>\n"
- "\n"
- " <class name=\"Child\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <property name=\"name\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
- "<![CDATA[create table parent ( id bigint not null primary key )\n"
- "create table child ( id bigint not null primary key, name varchar(255), parent_id bigint )\n"
- "alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid "If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-many association:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class name=\"Parent\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <set name=\"children\" inverse=\"true\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </set>\n"
- " </class>\n"
- "\n"
- " <class name=\"Child\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <property name=\"name\"/>\n"
- " <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" not-null=\"true\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:898
-#, no-c-format
-msgid ""
- "<![CDATA[create table parent ( id bigint not null primary key )\n"
- "create table child ( id bigint not null\n"
- " primary key,\n"
- " name varchar(255),\n"
- " parent_id bigint not null )\n"
- "alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:900
#, no-c-format
msgid "Alternatively, if this association must be unidirectional you can declare the <literal>NOT NULL</literal> constraint on the <literal><key></literal> mapping:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:906
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class name=\"Parent\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <set name=\"children\">\n"
- " <key column=\"parent_id\" not-null=\"true\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- " </set>\n"
- " </class>\n"
- "\n"
- " <class name=\"Child\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <property name=\"name\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:908
#, no-c-format
msgid "On the other hand, if a child has multiple parents, a many-to-many association is appropriate:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class name=\"Parent\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <set name=\"children\" table=\"childset\">\n"
- " <key column=\"parent_id\"/>\n"
- " <many-to-many class=\"Child\" column=\"child_id\"/>\n"
- " </set>\n"
- " </class>\n"
- "\n"
- " <class name=\"Child\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <property name=\"name\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr ""
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
- "<![CDATA[create table parent ( id bigint not null primary key )\n"
- "create table child ( id bigint not null primary key, name varchar(255) )\n"
- "create table childset ( parent_id bigint not null,\n"
- " child_id bigint not null,\n"
- " primary key ( parent_id, child_id ) )\n"
- "alter table childset add constraint childsetfk0 (parent_id) references parent\n"
- "alter table childset add constraint childsetfk1 (child_id) references child]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, no-c-format
-msgid "For more examples and a complete explanation of a parent/child relationship mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+msgid "For more examples and a complete explanation of a parent/child relationship mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
#. Tag: para
-#: collection_mapping.xml:926
#, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/component_mapping.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/component_mapping.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/component_mapping.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,481 +1,203 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
msgstr ""
#. Tag: para
-#: component_mapping.xml:31
#, no-c-format
msgid "The notion of a <emphasis>component</emphasis> is re-used in several different contexts and purposes throughout Hibernate."
msgstr ""
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr ""
#. Tag: para
-#: component_mapping.xml:39
#, no-c-format
msgid "A component is a contained object that is persisted as a value type and not an entity reference. The term \"component\" refers to the object-oriented notion of composition and not to architecture-level components. For example, you can model a person like this:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:45
-#, no-c-format
-msgid ""
- "<![CDATA[public class Person {\n"
- " private java.util.Date birthday;\n"
- " private Name name;\n"
- " private String key;\n"
- " public String getKey() {\n"
- " return key;\n"
- " }\n"
- " private void setKey(String key) {\n"
- " this.key=key;\n"
- " }\n"
- " public java.util.Date getBirthday() {\n"
- " return birthday;\n"
- " }\n"
- " public void setBirthday(java.util.Date birthday) {\n"
- " this.birthday = birthday;\n"
- " }\n"
- " public Name getName() {\n"
- " return name;\n"
- " }\n"
- " public void setName(Name name) {\n"
- " this.name = name;\n"
- " }\n"
- " ......\n"
- " ......\n"
- "}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
- "<![CDATA[public class Name {\n"
- " char initial;\n"
- " String first;\n"
- " String last;\n"
- " public String getFirst() {\n"
- " return first;\n"
- " }\n"
- " void setFirst(String first) {\n"
- " this.first = first;\n"
- " }\n"
- " public String getLast() {\n"
- " return last;\n"
- " }\n"
- " void setLast(String last) {\n"
- " this.last = last;\n"
- " }\n"
- " public char getInitial() {\n"
- " return initial;\n"
- " }\n"
- " void setInitial(char initial) {\n"
- " this.initial = initial;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:49
#, no-c-format
msgid "Now <literal>Name</literal> can be persisted as a component of <literal>Person</literal>. <literal>Name</literal> defines getter and setter methods for its persistent properties, but it does not need to declare any interfaces or identifier properties."
msgstr ""
#. Tag: para
-#: component_mapping.xml:56
#, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
- " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
- " <generator class=\"uuid\"/>\n"
- " </id>\n"
- " <property name=\"birthday\" type=\"date\"/>\n"
- " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute optional -->\n"
- " <property name=\"initial\"/>\n"
- " <property name=\"first\"/>\n"
- " <property name=\"last\"/>\n"
- " </component>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid "The person table would have the columns <literal>pid</literal>, <literal>birthday</literal>, <literal>initial</literal>, <literal>first</literal> and <literal>last</literal>."
msgstr ""
#. Tag: para
-#: component_mapping.xml:70
#, no-c-format
msgid "Like value types, components do not support shared references. In other words, two persons could have the same name, but the two person objects would contain two independent name objects that were only \"the same\" by value. The null value semantics of a component are <emphasis>ad hoc</emphasis>. When reloading the containing object, Hibernate will assume that if all component columns are null, then the entire component is null. This is suitable for most purposes."
msgstr ""
#. Tag: para
-#: component_mapping.xml:78
#, no-c-format
msgid "The properties of a component can be of any Hibernate type (collections, many-to-one associations, other components, etc). Nested components should <emphasis>not</emphasis> be considered an exotic usage. Hibernate is intended to support a fine-grained object model."
msgstr ""
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid "The <literal><component></literal> element allows a <literal><parent></literal> subelement that maps a property of the component class as a reference back to the containing entity."
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
- " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
- " <generator class=\"uuid\"/>\n"
- " </id>\n"
- " <property name=\"birthday\" type=\"date\"/>\n"
- " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
- " <parent name=\"namedPerson\"/> <!-- reference back to the Person -->\n"
- " <property name=\"initial\"/>\n"
- " <property name=\"first\"/>\n"
- " <property name=\"last\"/>\n"
- " </component>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
msgstr ""
#. Tag: para
-#: component_mapping.xml:98
#, no-c-format
msgid "Collections of components are supported (e.g. an array of type <literal>Name</literal>). Declare your component collection by replacing the <literal><element></literal> tag with a <literal><composite-element></literal> tag:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:105
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
- " <key column=\"id\"/>\n"
- " <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
- " <property name=\"initial\"/>\n"
- " <property name=\"first\"/>\n"
- " <property name=\"last\"/>\n"
- " </composite-element>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:108
#, no-c-format
msgid "If you define a <literal>Set</literal> of composite elements, it is important to implement <literal>equals()</literal> and <literal>hashCode()</literal> correctly."
msgstr ""
#. Tag: para
-#: component_mapping.xml:115
#, no-c-format
msgid "Composite elements can contain components but not collections. If your composite element contains components, use the <literal><nested-composite-element></literal> tag. This case is a collection of components which themselves have components. You may want to consider if a one-to-many association is more appropriate. Remodel the composite element as an entity, but be aware that even though the Java model is the same, the relational model and persistence semantics are still slightly different."
msgstr ""
#. Tag: para
-#: component_mapping.xml:127
#, no-c-format
msgid "A composite element mapping does not support null-able properties if you are using a <literal><set></literal>. There is no separate primary key column in the composite element table. Hibernate uses each column's value to identify a record when deleting objects, which is not possible with null values. You have to either use only not-null properties in a composite-element or choose a <literal><list></literal>, <literal><map></literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
#. Tag: para
-#: component_mapping.xml:138
#, no-c-format
msgid "A special case of a composite element is a composite element with a nested <literal><many-to-one></literal> element. This mapping allows you to map extra columns of a many-to-many association table to the composite element class. The following is a many-to-many association from <literal>Order</literal> to <literal>Item</literal>, where <literal>purchaseDate</literal>, <literal>price</literal> and <literal>quantity</literal> are properties of the association:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:148
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Order\" .... >\n"
- " ....\n"
- " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
- " <key column=\"order_id\">\n"
- " <composite-element class=\"eg.Purchase\">\n"
- " <property name=\"purchaseDate\"/>\n"
- " <property name=\"price\"/>\n"
- " <property name=\"quantity\"/>\n"
- " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class attribute is optional -->\n"
- " </composite-element>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:150
#, no-c-format
msgid "There cannot be a reference to the purchase on the other side for bidirectional association navigation. Components are value types and do not allow shared references. A single <literal>Purchase</literal> can be in the set of an <literal>Order</literal>, but it cannot be referenced by the <literal>Item</literal> at the same time."
msgstr ""
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:160
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Order\" .... >\n"
- " ....\n"
- " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
- " <key column=\"order_id\">\n"
- " <composite-element class=\"eg.OrderLine\">\n"
- " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
- " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
- " </composite-element>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:162
#, no-c-format
msgid "Composite elements can appear in queries using the same syntax as associations to other entities."
msgstr ""
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
msgstr ""
#. Tag: para
-#: component_mapping.xml:172
#, no-c-format
msgid "The <literal><composite-map-key></literal> element allows you to map a component class as the key of a <literal>Map</literal>. Ensure that you override <literal>hashCode()</literal> and <literal>equals()</literal> correctly on the component class."
msgstr ""
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
msgstr ""
#. Tag: para
-#: component_mapping.xml:183
#, no-c-format
msgid "You can use a component as an identifier of an entity class. Your component class must satisfy certain requirements:"
msgstr ""
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
msgstr ""
#. Tag: para
-#: component_mapping.xml:195
#, no-c-format
msgid "It must re-implement <literal>equals()</literal> and <literal>hashCode()</literal> consistently with the database's notion of composite key equality."
msgstr ""
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: component_mapping.xml:205
#, no-c-format
msgid "In Hibernate3, although the second requirement is not an absolutely hard requirement of Hibernate, it is recommended."
msgstr ""
#. Tag: para
-#: component_mapping.xml:211
#, no-c-format
msgid "You cannot use an <literal>IdentifierGenerator</literal> to generate composite keys. Instead the application must assign its own identifiers."
msgstr ""
#. Tag: para
-#: component_mapping.xml:216
#, no-c-format
msgid "Use the <literal><composite-id></literal> tag, with nested <literal><key-property></literal> elements, in place of the usual <literal><id></literal> declaration. For example, the <literal>OrderLine</literal> class has a primary key that depends upon the (composite) primary key of <literal>Order</literal>."
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:224
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"OrderLine\">\n"
- "\n"
- " <composite-id name=\"id\" class=\"OrderLineId\">\n"
- " <key-property name=\"lineId\"/>\n"
- " <key-property name=\"orderId\"/>\n"
- " <key-property name=\"customerId\"/>\n"
- " </composite-id>\n"
- "\n"
- " <property name=\"name\"/>\n"
- "\n"
- " <many-to-one name=\"order\" class=\"Order\"\n"
- " insert=\"false\" update=\"false\">\n"
- " <column name=\"orderId\"/>\n"
- " <column name=\"customerId\"/>\n"
- " </many-to-one>\n"
- " ....\n"
- "\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:226
#, no-c-format
msgid "Any foreign keys referencing the <literal>OrderLine</literal> table are now composite. Declare this in your mappings for other classes. An association to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
- "<!-- the \"class\" attribute is optional, as usual -->\n"
- " <column name=\"lineId\"/>\n"
- " <column name=\"orderId\"/>\n"
- " <column name=\"customerId\"/>\n"
- "</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
#, no-c-format
msgid "The <literal>column</literal> element is an alternative to the <literal>column</literal> attribute everywhere. Using the <literal>column</literal> element just gives more declaration options, which are mostly useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid "A <literal>many-to-many</literal> association to <literal>OrderLine</literal> also uses the composite foreign key:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
- " <key column name=\"warehouseId\"/>\n"
- " <many-to-many class=\"OrderLine\">\n"
- " <column name=\"lineId\"/>\n"
- " <column name=\"orderId\"/>\n"
- " <column name=\"customerId\"/>\n"
- " </many-to-many>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid "The collection of <literal>OrderLine</literal>s in <literal>Order</literal> would use:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:256
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
- " <key>\n"
- " <column name=\"orderId\"/>\n"
- " <column name=\"customerId\"/>\n"
- " </key>\n"
- " <one-to-many class=\"OrderLine\"/>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:258
#, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
msgstr ""
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid "If <literal>OrderLine</literal> itself owns a collection, it also has a composite foreign key."
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"OrderLine\">\n"
- " ....\n"
- " ....\n"
- " <list name=\"deliveryAttempts\">\n"
- " <key> <!-- a collection inherits the composite key type -->\n"
- " <column name=\"lineId\"/>\n"
- " <column name=\"orderId\"/>\n"
- " <column name=\"customerId\"/>\n"
- " </key>\n"
- " <list-index column=\"attemptId\" base=\"1\"/>\n"
- " <composite-element class=\"DeliveryAttempt\">\n"
- " ...\n"
- " </composite-element>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
msgstr ""
#. Tag: para
-#: component_mapping.xml:274
#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
msgstr ""
-#. Tag: programlisting
-#: component_mapping.xml:278
-#, no-c-format
-msgid ""
- "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
- " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
- " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
- " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
- "</dynamic-component>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:280
#, no-c-format
msgid "The semantics of a <literal><dynamic-component></literal> mapping are identical to <literal><component></literal>. The advantage of this kind of mapping is the ability to determine the actual properties of the bean at deployment time just by editing the mapping document. Runtime manipulation of the mapping document is also possible, using a DOM parser. You can also access, and change, Hibernate's configuration-time metamodel via the <literal>Configuration</literal> object."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/configuration.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/configuration.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/configuration.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,2188 +1,1663 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
msgstr ""
#. Tag: para
-#: configuration.xml:31
#, no-c-format
msgid "Hibernate is designed to operate in many different environments and, as such, there is a broad range of configuration parameters. Fortunately, most have sensible default values and Hibernate is distributed with an example <literal>hibernate.properties</literal> file in <literal>etc/</literal> that displays the various options. Simply put the example file in your classpath and customize it to suit your needs."
msgstr ""
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
msgstr ""
#. Tag: para
-#: configuration.xml:42
#, no-c-format
msgid "An instance of <classname>org.hibernate.cfg.Configuration</classname> represents an entire set of mappings of an application's Java types to an SQL database. The <classname>org.hibernate.cfg.Configuration</classname> is used to build an immutable <interfacename>org.hibernate.SessionFactory</interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
#. Tag: para
-#: configuration.xml:49
#, no-c-format
msgid "You can obtain a <classname>org.hibernate.cfg.Configuration</classname> instance by instantiating it directly and specifying XML mapping documents. If the mapping files are in the classpath, use <literal>addResource()</literal>. For example:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:55
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = new Configuration()\n"
- " .addResource(\"Item.hbm.xml\")\n"
- " .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:57
#, no-c-format
msgid "An alternative way is to specify the mapped class and allow Hibernate to find the mapping document for you:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:62
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = new Configuration()\n"
- " .addClass(org.hibernate.auction.Item.class)\n"
- " .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:64
#, no-c-format
msgid "Hibernate will then search for mapping files named <filename>/org/hibernate/auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm.xml</filename> in the classpath. This approach eliminates any hardcoded filenames."
msgstr ""
#. Tag: para
-#: configuration.xml:70
#, no-c-format
msgid "A <classname>org.hibernate.cfg.Configuration</classname> also allows you to specify configuration properties. For example:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:75
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = new Configuration()\n"
- " .addClass(org.hibernate.auction.Item.class)\n"
- " .addClass(org.hibernate.auction.Bid.class)\n"
- " .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect.MySQLInnoDBDialect\")\n"
- " .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/test\")\n"
- " .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:77
#, no-c-format
msgid "This is not the only way to pass configuration properties to Hibernate. Some alternative options include:"
msgstr ""
#. Tag: para
-#: configuration.xml:84
#, no-c-format
msgid "Pass an instance of <classname>java.util.Properties</classname> to <literal>Configuration.setProperties()</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:90
#, no-c-format
msgid "Place a file named <filename>hibernate.properties</filename> in a root directory of the classpath."
msgstr ""
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid "Set <literal>System</literal> properties using <literal>java -Dproperty=value</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:100
#, no-c-format
msgid "Include <literal><property></literal> elements in <literal>hibernate.cfg.xml</literal> (this is discussed later)."
msgstr ""
#. Tag: para
-#: configuration.xml:107
#, no-c-format
msgid "If you want to get started quickly<filename>hibernate.properties</filename> is the easiest approach."
msgstr ""
#. Tag: para
-#: configuration.xml:111
#, no-c-format
msgid "The <classname>org.hibernate.cfg.Configuration</classname> is intended as a startup-time object that will be discarded once a <literal>SessionFactory</literal> is created."
msgstr ""
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
msgstr ""
#. Tag: para
-#: configuration.xml:121
#, no-c-format
msgid "When all mappings have been parsed by the <classname>org.hibernate.cfg.Configuration</classname>, the application must obtain a factory for <interfacename>org.hibernate.Session</interfacename> instances. This factory is intended to be shared by all application threads:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, no-c-format
msgid "Hibernate does allow your application to instantiate more than one <interfacename>org.hibernate.SessionFactory</interfacename>. This is useful if you are using more than one database."
msgstr ""
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
msgstr ""
#. Tag: para
-#: configuration.xml:140
#, no-c-format
msgid "It is advisable to have the <interfacename>org.hibernate.SessionFactory</interfacename> create and pool JDBC connections for you. If you take this approach, opening a <interfacename>org.hibernate.Session</interfacename> is as simple as:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:146
-#, no-c-format
-msgid "<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:148
#, no-c-format
msgid "Once you start a task that requires access to the database, a JDBC connection will be obtained from the pool."
msgstr ""
#. Tag: para
-#: configuration.xml:153
#, no-c-format
msgid "Before you can do this, you first need to pass some JDBC connection properties to Hibernate. All Hibernate property names and semantics are defined on the class <classname>org.hibernate.cfg.Environment</classname>. The most important settings for JDBC connection configuration are outlined below."
msgstr ""
#. Tag: para
-#: configuration.xml:159
#, no-c-format
msgid "Hibernate will obtain and pool connections using <classname>java.sql.DriverManager</classname> if you set the following properties:"
msgstr ""
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
msgstr ""
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353 configuration.xml:548 configuration.xml:743 configuration.xml:850 configuration.xml:938
#, no-c-format
msgid "Property name"
msgstr ""
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354 configuration.xml:549 configuration.xml:744 configuration.xml:851 configuration.xml:939
#, no-c-format
msgid "Purpose"
msgstr ""
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
+msgid "<emphasis>JDBC driver class</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
+msgid "<emphasis>JDBC URL</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:197
+#. Tag: entry
#, no-c-format
-msgid "database user"
+msgid "<emphasis>database user</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:205
+#. Tag: entry
#, no-c-format
-msgid "database user password"
+msgid "<emphasis>database user password</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
msgstr ""
#. Tag: para
-#: configuration.xml:220
#, no-c-format
msgid "Hibernate's own connection pooling algorithm is, however, quite rudimentary. It is intended to help you get started and is <emphasis>not intended for use in a production system</emphasis>, or even for performance testing. You should use a third party pool for best performance and stability. Just replace the <property>hibernate.connection.pool_size</property> property with connection pool specific settings. This will turn off Hibernate's internal pool. For example, you might like to use c3p0."
msgstr ""
#. Tag: para
-#: configuration.xml:230
#, no-c-format
msgid "C3P0 is an open source JDBC connection pool distributed along with Hibernate in the <filename>lib</filename> directory. Hibernate will use its <classname>org.hibernate.connection.C3P0ConnectionProvider</classname> for connection pooling if you set <property>hibernate.c3p0.*</property> properties. If you would like to use Proxool, refer to the packaged <filename>hibernate.properties</filename> and the Hibernate web site for more information."
msgstr ""
#. Tag: para
-#: configuration.xml:238
#, no-c-format
msgid "The following is an example <filename>hibernate.properties</filename> file for c3p0:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:242
-#, no-c-format
-msgid ""
- "<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
- "hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
- "hibernate.connection.username = myuser\n"
- "hibernate.connection.password = secret\n"
- "hibernate.c3p0.min_size=5\n"
- "hibernate.c3p0.max_size=20\n"
- "hibernate.c3p0.timeout=1800\n"
- "hibernate.c3p0.max_statements=50\n"
- "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:244
#, no-c-format
msgid "For use inside an application server, you should almost always configure Hibernate to obtain connections from an application server <interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You will need to set at least one of the following properties:"
msgstr ""
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
msgstr ""
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
msgstr ""
-#. Tag: emphasis
-#: configuration.xml:267
+#. Tag: entry
#, no-c-format
-msgid "datasource JNDI name"
+msgid "<emphasis>datasource JNDI name</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:274
#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
msgstr ""
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid "<emphasis>class of the JNDI <literal>InitialContextFactory</literal></emphasis> (optional)"
msgstr ""
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
msgstr ""
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
msgstr ""
#. Tag: para
-#: configuration.xml:306
#, no-c-format
msgid "Here is an example <filename>hibernate.properties</filename> file for an application server provided JNDI datasource:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
- "<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
- "hibernate.transaction.factory_class = \\\n"
- " org.hibernate.transaction.JTATransactionFactory\n"
- "hibernate.transaction.manager_lookup_class = \\\n"
- " org.hibernate.transaction.JBossTransactionManagerLookup\n"
- "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid "JDBC connections obtained from a JNDI datasource will automatically participate in the container-managed transactions of the application server."
msgstr ""
#. Tag: para
-#: configuration.xml:318
#, no-c-format
msgid "Arbitrary connection properties can be given by prepending \"<literal>hibernate.connection</literal>\" to the connection property name. For example, you can specify a <property>charSet</property> connection property using <property>hibernate.connection.charSet</property>."
msgstr ""
#. Tag: para
-#: configuration.xml:324
#, no-c-format
msgid "You can define your own plugin strategy for obtaining JDBC connections by implementing the interface <interfacename>org.hibernate.connection.ConnectionProvider</interfacename>, and specifying your custom implementation via the <property>hibernate.connection.provider_class</property> property."
msgstr ""
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr ""
#. Tag: para
-#: configuration.xml:335
#, no-c-format
msgid "There are a number of other properties that control the behavior of Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, no-c-format
msgid "<emphasis>Some of these properties are \"system-level\" only.</emphasis> System-level properties can be set only via <literal>java -Dproperty=value</literal> or <filename>hibernate.properties</filename>. They <emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
msgstr ""
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:362
#, no-c-format
msgid "The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</classname> which allows Hibernate to generate SQL optimized for a particular relational database."
msgstr ""
#. Tag: para
-#: configuration.xml:365
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of.Dialect</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid "In most cases Hibernate will actually be able to choose the correct <classname>org.hibernate.dialect.Dialect</classname> implementation based on the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:380
#, no-c-format
msgid "Write all SQL statements to console. This is an alternative to setting the log category <literal>org.hibernate.SQL</literal> to <literal>debug</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490 configuration.xml:503 configuration.xml:516 configuration.xml:529 configuration.xml:583 configuration.xml:610 configuration.xml:623 configuration.xml:678 configuration.xml:906 configuration.xml:921 configuration.xml:1011
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | <literal>false</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:394
#, no-c-format
msgid "Pretty print the SQL in the log and console."
msgstr ""
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:406
#, no-c-format
msgid "Qualify unqualified table names with the given schema/tablespace in generated SQL."
msgstr ""
#. Tag: para
-#: configuration.xml:409
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:419
#, no-c-format
msgid "Qualifies unqualified table names with the given catalog in generated SQL."
msgstr ""
#. Tag: para
-#: configuration.xml:422
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:432
#, no-c-format
msgid "The <interfacename>org.hibernate.SessionFactory</interfacename> will be automatically bound to this name in JNDI after it has been created."
msgstr ""
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:445
#, no-c-format
msgid "Sets a maximum \"depth\" for the outer join fetch tree for single-ended associations (one-to-one, many-to-one). A <literal>0</literal> disables default outer join fetching."
msgstr ""
#. Tag: para
-#: configuration.xml:449
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> recommended values between <literal>0</literal> and <literal>3</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:460
#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr ""
#. Tag: para
-#: configuration.xml:462
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</literal>, <literal>8</literal>, <literal>16</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:473
#, no-c-format
msgid "Sets a default mode for entity representation for all sessions opened from this <literal>SessionFactory</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid "<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:486
#, no-c-format
msgid "Forces Hibernate to order SQL updates by the primary key value of the items being updated. This will result in fewer transaction deadlocks in highly concurrent systems."
msgstr ""
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:500
#, no-c-format
msgid "If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr ""
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:513
#, no-c-format
msgid "If enabled, generated identifier properties will be reset to default values when objects are deleted."
msgstr ""
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:526
#, no-c-format
msgid "If turned on, Hibernate will generate comments inside the SQL, for easier debugging, defaults to <literal>false</literal>."
msgstr ""
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr ""
-#. Tag: property
-#: configuration.xml:555
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:557
#, no-c-format
msgid "A non-zero value determines the JDBC fetch size (calls <literal>Statement.setFetchSize()</literal>)."
msgstr ""
-#. Tag: property
-#: configuration.xml:564
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:566
#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr ""
#. Tag: para
-#: configuration.xml:568
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> recommended values between <literal>5</literal> and <literal>30</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:576
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:578
#, no-c-format
msgid "Set this property to <literal>true</literal> if your JDBC driver returns correct row counts from <literal>executeBatch()</literal>. Iit is usually safe to turn this option on. Hibernate will then use batched DML for automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-#. Tag: property
-#: configuration.xml:591
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:593
#, no-c-format
msgid "Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. Most applications will not need this configuration property."
msgstr ""
#. Tag: para
-#: configuration.xml:596
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.BatcherFactory</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:604
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:606
#, no-c-format
msgid "Enables use of JDBC2 scrollable resultsets by Hibernate. This property is only necessary when using user-supplied JDBC connections. Hibernate uses connection metadata otherwise."
msgstr ""
-#. Tag: property
-#: configuration.xml:618
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:620
#, no-c-format
msgid "Use streams when writing/reading <literal>binary</literal> or <literal>serializable</literal> types to/from JDBC. <emphasis>*system-level property*</emphasis>"
msgstr ""
-#. Tag: property
-#: configuration.xml:631
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:633
#, no-c-format
msgid "Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> to retrieve natively generated keys after insert. Requires JDBC3+ driver and JRE1.4+, set to false if your driver has problems with the Hibernate identifier generators. By default, it tries to determine the driver capabilities using connection metadata."
msgstr ""
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781 configuration.xml:795 configuration.xml:833
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:647
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:649
#, no-c-format
msgid "The classname of a custom <interfacename>org.hibernate.connection.ConnectionProvider</interfacename> which provides JDBC connections to Hibernate."
msgstr ""
#. Tag: para
-#: configuration.xml:652
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.ConnectionProvider</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:660
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:662
#, no-c-format
msgid "Sets the JDBC transaction isolation level. Check <interfacename>java.sql.Connection</interfacename> for meaningful values, but note that most databases do not support all isolation levels and some define additional, non-standard isolations."
msgstr ""
#. Tag: para
-#: configuration.xml:666
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
msgstr ""
-#. Tag: property
-#: configuration.xml:674
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:676
#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr ""
-#. Tag: property
-#: configuration.xml:686
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
msgstr ""
#. Tag: entry
-#: configuration.xml:688
#, no-c-format
msgid "Specifies when Hibernate should release JDBC connections. By default, a JDBC connection is held until the session is explicitly closed or disconnected. For an application server JTA datasource, use <literal>after_statement</literal> to aggressively release connections after every JDBC call. For a non-JTA connection, it often makes sense to release the connection at the end of each transaction, by using <literal>after_transaction</literal>. <literal>auto</literal> will choose <literal>after_statement</literal> for the JTA and CMT transaction strategies and <literal>after_transaction</literal> for the JDBC transaction strategy."
msgstr ""
#. Tag: para
-#: configuration.xml:699
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) | <literal>on_close</literal> | <literal>after_transaction</literal> | <literal>after_statement</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:704
#, no-c-format
-msgid "This setting only affects <literal>Session</literal>s returned from <literal>SessionFactory.openSession</literal>. For <literal>Session</literal>s obtained through <literal>SessionFactory.getCurrentSession</literal>, the <literal>CurrentSessionContext</literal> implementation configured for use controls the connection release mode for those <literal>Session</literal>s. See"
+msgid "This setting only affects <literal>Session</literal>s returned from <literal>SessionFactory.openSession</literal>. For <literal>Session</literal>s obtained through <literal>SessionFactory.getCurrentSession</literal>, the <literal>CurrentSessionContext</literal> implementation configured for use controls the connection release mode for those <literal>Session</literal>s. See <xref linkend=\"architecture-current-session\" />"
msgstr ""
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid "<property>hibernate.connection.</property><emphasis><propertyName></emphasis>"
msgstr ""
#. Tag: entry
-#: configuration.xml:718
#, no-c-format
msgid "Pass the JDBC property <emphasis><propertyName></emphasis> to <literal>DriverManager.getConnection()</literal>."
msgstr ""
#. Tag: entry
-#: configuration.xml:724
#, no-c-format
msgid "<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
#. Tag: entry
-#: configuration.xml:727
#, no-c-format
msgid "Pass the property <emphasis><propertyName></emphasis> to the JNDI <literal>InitialContextFactory</literal>."
msgstr ""
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
msgstr ""
-#. Tag: literal
-#: configuration.xml:750
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:752
#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:754
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.CacheProvider</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:762
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:764
#, no-c-format
msgid "Optimizes second-level cache operation to minimize writes, at the cost of more frequent reads. This setting is most useful for clustered caches and, in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
-#. Tag: literal
-#: configuration.xml:777
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:779
#, no-c-format
msgid "Enables the query cache. Individual queries still have to be set cachable."
msgstr ""
-#. Tag: literal
-#: configuration.xml:789
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:791
#, no-c-format
msgid "Can be used to completely disable the second level cache, which is enabled by default for classes which specify a <literal><cache></literal> mapping."
msgstr ""
-#. Tag: literal
-#: configuration.xml:803
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:805
#, no-c-format
msgid "The classname of a custom <literal>QueryCache</literal> interface, defaults to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:808
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:816
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:818
#, no-c-format
msgid "A prefix to use for second-level cache region names."
msgstr ""
#. Tag: para
-#: configuration.xml:820
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:828
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:830
#, no-c-format
msgid "Forces Hibernate to store data in the second-level cache in a more human-friendly format."
msgstr ""
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr ""
-#. Tag: literal
-#: configuration.xml:857
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:859
#, no-c-format
msgid "The classname of a <literal>TransactionFactory</literal> to use with Hibernate <literal>Transaction</literal> API (defaults to <literal>JDBCTransactionFactory</literal>)."
msgstr ""
#. Tag: para
-#: configuration.xml:863
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.TransactionFactory</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:871
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:873
#, no-c-format
msgid "A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-#. Tag: literal
-#: configuration.xml:885
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:887
#, no-c-format
msgid "The classname of a <literal>TransactionManagerLookup</literal>. It is required when JVM-level caching is enabled or when using hilo generator in a JTA environment."
msgstr ""
#. Tag: para
-#: configuration.xml:891
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.TransactionManagerLookup</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:899
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:901
#, no-c-format
-msgid "If enabled, the session will be automatically flushed during the before completion phase of the transaction. Built-in and automatic session context management is preferred, see <xref linkend=\"architecture-current-session\"/>."
+msgid "If enabled, the session will be automatically flushed during the before completion phase of the transaction. Built-in and automatic session context management is preferred, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
-#. Tag: literal
-#: configuration.xml:914
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:916
#, no-c-format
-msgid "If enabled, the session will be automatically closed during the after completion phase of the transaction. Built-in and automatic session context management is preferred, see <xref linkend=\"architecture-current-session\"/>."
+msgid "If enabled, the session will be automatically closed during the after completion phase of the transaction. Built-in and automatic session context management is preferred, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr ""
-#. Tag: literal
-#: configuration.xml:945
+#. Tag: entry
#, no-c-format
-msgid "hibernate.current_session_context_class"
+msgid "<literal>hibernate.current_session_context_class</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:947
#, no-c-format
-msgid "Supply a custom strategy for the scoping of the \"current\" <literal>Session</literal>. See <xref linkend=\"architecture-current-session\"/> for more information about the built-in strategies."
+msgid "Supply a custom strategy for the scoping of the \"current\" <literal>Session</literal>. See <xref linkend=\"architecture-current-session\" /> for more information about the built-in strategies."
msgstr ""
#. Tag: para
-#: configuration.xml:952
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | <literal>thread</literal> | <literal>managed</literal> | <literal>custom.Class</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:961
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:963
#, no-c-format
msgid "Chooses the HQL parser implementation."
msgstr ""
#. Tag: para
-#: configuration.xml:965
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast.ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic.ClassicQueryTranslatorFactory</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:974
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:976
#, no-c-format
msgid "Is used to map from tokens in Hibernate queries to SQL tokens (tokens might be function or literal names, for example)."
msgstr ""
#. Tag: para
-#: configuration.xml:979
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:987
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:989
#, no-c-format
msgid "Automatically validates or exports schema DDL to the database when the <literal>SessionFactory</literal> is created. With <literal>create-drop</literal>, the database schema will be dropped when the <literal>SessionFactory</literal> is closed explicitly."
msgstr ""
#. Tag: para
-#: configuration.xml:995
#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | <literal>update</literal> | <literal>create</literal> | <literal>create-drop</literal>"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1004
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1006
#, no-c-format
msgid "Enables the use of CGLIB instead of runtime reflection (System-level property). Reflection can sometimes be useful when troubleshooting. Hibernate always requires CGLIB even if you turn off the optimizer. You cannot set this property in <literal>hibernate.cfg.xml</literal>."
msgstr ""
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
msgstr ""
#. Tag: para
-#: configuration.xml:1024
#, no-c-format
msgid "Always set the <literal>hibernate.dialect</literal> property to the correct <literal>org.hibernate.dialect.Dialect</literal> subclass for your database. If you specify a dialect, Hibernate will use sensible defaults for some of the other properties listed above. This means that you will not have to specify them manually."
msgstr ""
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
msgstr ""
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
msgstr ""
#. Tag: entry
-#: configuration.xml:1041
#, no-c-format
msgid "Dialect"
msgstr ""
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
+msgid "DB2"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1046
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1049
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1052
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1055
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1058
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1061
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1064
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1067
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1070
#, no-c-format
msgid "Oracle 9i"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1070
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1073
#, no-c-format
msgid "Oracle 10g"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1073
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1076
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1079
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1082
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1085
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1088
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1091
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1094
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1097
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1100
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1103
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1106
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1109
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1112
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
msgstr ""
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
msgstr ""
#. Tag: para
-#: configuration.xml:1123
#, no-c-format
msgid "If your database supports ANSI, Oracle or Sybase style outer joins, <emphasis>outer join fetching</emphasis> will often increase performance by limiting the number of round trips to and from the database. This is, however, at the cost of possibly more work performed by the database itself. Outer join fetching allows a whole graph of objects connected by many-to-one, one-to-many, many-to-many and one-to-one associations to be retrieved in a single SQL <literal>SELECT</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:1132
#, no-c-format
msgid "Outer join fetching can be disabled <emphasis>globally</emphasis> by setting the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</literal>. A setting of <literal>1</literal> or higher enables outer join fetching for one-to-one and many-to-one associations that have been mapped with <literal>fetch=\"join\"</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:1140
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
msgstr ""
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
msgstr ""
#. Tag: para
-#: configuration.xml:1149
#, no-c-format
msgid "Oracle limits the size of <literal>byte</literal> arrays that can be passed to and/or from its JDBC driver. If you wish to use large instances of <literal>binary</literal> or <literal>serializable</literal> type, you should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. <emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
msgstr ""
#. Tag: para
-#: configuration.xml:1162
#, no-c-format
-msgid "The properties prefixed by <literal>hibernate.cache</literal> allow you to use a process or cluster scoped second-level cache system with Hibernate. See the <xref linkend=\"performance-cache\"/> for more information."
+msgid "The properties prefixed by <literal>hibernate.cache</literal> allow you to use a process or cluster scoped second-level cache system with Hibernate. See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
msgstr ""
#. Tag: para
-#: configuration.xml:1174
#, no-c-format
msgid "You can define new Hibernate query tokens using <literal>hibernate.query.substitutions</literal>. For example:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1181
#, no-c-format
msgid "This would cause the tokens <literal>true</literal> and <literal>false</literal> to be translated to integer literals in the generated SQL."
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1188
#, no-c-format
msgid "This would allow you to rename the SQL <literal>LOWER</literal> function."
msgstr ""
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
msgstr ""
#. Tag: para
-#: configuration.xml:1197
#, no-c-format
msgid "If you enable <literal>hibernate.generate_statistics</literal>, Hibernate exposes a number of metrics that are useful when tuning a running system via <literal>SessionFactory.getStatistics()</literal>. Hibernate can even be configured to expose these statistics via JMX. Read the Javadoc of the interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
msgstr ""
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid "Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging Facade for Java</ulink> (SLF4J) in order to log various system events. SLF4J can direct your logging output to several logging frameworks (NOP, Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on your chosen binding. In order to setup logging you will need <filename>slf4j-api.jar</filename> in your classpath together with the jar file for your preferred binding - <filename>slf4j-log4j12.jar</filename> in the case of Log4J. See the SLF4J <ulink url=\"http://www.slf4j.org/manual.html\">documentation</ulink> for more detail. To use Log4j you will also need to place a <filename>log4j.properties</filename> file in your classpath. An example properties file is distributed with Hibernate in the <literal>src/</literal> directory."
msgstr ""
#. Tag: para
-#: configuration.xml:1222
#, no-c-format
msgid "It is recommended that you familiarize yourself with Hibernate's log messages. A lot of work has been put into making the Hibernate log as detailed as possible, without making it unreadable. It is an essential troubleshooting device. The most interesting log categories are the following:"
msgstr ""
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
msgstr ""
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr ""
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1247
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1251
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1255
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid "Log the state of all entities (max 20 entities) associated with the session at flush time"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1262
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1266
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction"
+msgid "<literal>org.hibernate.transaction</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1270
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1274
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1284
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate"
+msgid "<literal>org.hibernate</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1285
#, no-c-format
msgid "Log everything. This is a lot of information but it is useful for troubleshooting"
msgstr ""
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid "When developing applications with Hibernate, you should almost always work with <literal>debug</literal> enabled for the category <literal>org.hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate.show_sql</literal> enabled."
msgstr ""
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid "The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
#. Tag: para
-#: configuration.xml:1311
#, no-c-format
msgid "You can provide rules for automatically generating database identifiers from Java identifiers or for processing \"logical\" column and table names given in the mapping file into \"physical\" table and column names. This feature helps reduce the verbosity of the mapping document, eliminating repetitive noise (<literal>TBL_</literal> prefixes, for example). The default strategy used by Hibernate is quite minimal."
msgstr ""
#. Tag: para
-#: configuration.xml:1320
#, no-c-format
msgid "You can specify a different strategy by calling <literal>Configuration.setNamingStrategy()</literal> before adding mappings:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
- "<![CDATA[SessionFactory sf = new Configuration()\n"
- " .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
- " .addFile(\"Item.hbm.xml\")\n"
- " .addFile(\"Bid.hbm.xml\")\n"
- " .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid "<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in strategy that might be a useful starting point for some applications."
msgstr ""
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
msgstr ""
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid "An alternative approach to configuration is to specify a full configuration in a file named <literal>hibernate.cfg.xml</literal>. This file can be used as a replacement for the <literal>hibernate.properties</literal> file or, if both are present, to override properties."
msgstr ""
#. Tag: para
-#: configuration.xml:1344
#, no-c-format
msgid "The XML configuration file is by default expected to be in the root of your <literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1349
-#, no-c-format
-msgid ""
- "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
- "<!DOCTYPE hibernate-configuration PUBLIC\n"
- " \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
- " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
- "\n"
- "<hibernate-configuration>\n"
- "\n"
- " <!-- a SessionFactory instance listed as /jndi/name -->\n"
- " <session-factory\n"
- " name=\"java:hibernate/SessionFactory\">\n"
- "\n"
- " <!-- properties -->\n"
- " <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</property>\n"
- " <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</property>\n"
- " <property name=\"show_sql\">false</property>\n"
- " <property name=\"transaction.factory_class\">\n"
- " org.hibernate.transaction.JTATransactionFactory\n"
- " </property>\n"
- " <property name=\"jta.UserTransaction\">java:comp/UserTransaction</property>\n"
- "\n"
- " <!-- mapping files -->\n"
- " <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
- " <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
- "\n"
- " <!-- cache settings -->\n"
- " <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write\"/>\n"
- " <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/>\n"
- " <collection-cache collection=\"org.hibernate.auction.Item.bids\" usage=\"read-write\"/>\n"
- "\n"
- " </session-factory>\n"
- "\n"
- "</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1351
#, no-c-format
msgid "The advantage of this approach is the externalization of the mapping file names to configuration. The <literal>hibernate.cfg.xml</literal> is also more convenient once you have to tune the Hibernate cache. It is your choice to use either <literal>hibernate.properties</literal> or <literal>hibernate.cfg.xml</literal>. Both are equivalent, except for the above mentioned benefits of using the XML syntax."
msgstr ""
#. Tag: para
-#: configuration.xml:1360
#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid "<![CDATA[SessionFactory sf = new Configuration().configure().buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
#, no-c-format
msgid "You can select a different XML configuration file using:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1370
-#, no-c-format
-msgid ""
- "<![CDATA[SessionFactory sf = new Configuration()\n"
- " .configure(\"catdb.cfg.xml\")\n"
- " .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
msgstr ""
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr ""
#. Tag: para
-#: configuration.xml:1383
#, no-c-format
msgid "<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC connections managed by the container and provided through JNDI. Usually, a JTA compatible <literal>TransactionManager</literal> and a <literal>ResourceManager</literal> take care of transaction management (CMT), especially distributed transaction handling across several datasources. You can also demarcate transaction boundaries programmatically (BMT), or you might want to use the optional Hibernate <literal>Transaction</literal> API for this to keep your code portable."
msgstr ""
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid "<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its <literal>SessionFactory</literal> to JNDI after startup."
msgstr ""
#. Tag: para
-#: configuration.xml:1407
#, no-c-format
msgid "<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</literal> can be automatically bound to the scope of JTA transactions. Simply lookup the <literal>SessionFactory</literal> from JNDI and get the current <literal>Session</literal>. Let Hibernate manage flushing and closing the <literal>Session</literal> when your JTA transaction completes. Transaction demarcation is either declarative (CMT) or programmatic (BMT/UserTransaction)."
msgstr ""
#. Tag: para
-#: configuration.xml:1420
#, no-c-format
msgid "<emphasis>JMX deployment:</emphasis> if you have a JMX capable application server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed MBean. This saves you the one line startup code to build your <literal>SessionFactory</literal> from a <literal>Configuration</literal>. The container will startup your <literal>HibernateService</literal> and also take care of service dependencies (datasource has to be available before Hibernate starts, etc)."
msgstr ""
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid "Depending on your environment, you might have to set the configuration option <literal>hibernate.connection.aggressive_release</literal> to true if your application server shows \"connection containment\" exceptions."
msgstr ""
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr ""
#. Tag: para
-#: configuration.xml:1440
#, no-c-format
msgid "The Hibernate <literal>Session</literal> API is independent of any transaction demarcation system in your architecture. If you let Hibernate use JDBC directly through a connection pool, you can begin and end your transactions by calling the JDBC API. If you run in a J2EE application server, you might want to use bean-managed transactions and call the JTA API and <literal>UserTransaction</literal> when needed."
msgstr ""
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid "To keep your code portable between these two (and other) environments we recommend the optional Hibernate <literal>Transaction</literal> API, which wraps and hides the underlying system. You have to specify a factory class for <literal>Transaction</literal> instances by setting the Hibernate configuration property <literal>hibernate.transaction.factory_class</literal>."
msgstr ""
#. Tag: para
-#: configuration.xml:1455
#, no-c-format
msgid "There are three standard, or built-in, choices:"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1461
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1467
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:1469
#, no-c-format
msgid "delegates to container-managed transactions if an existing transaction is underway in this context (for example, EJB session bean method). Otherwise, a new transaction is started and bean-managed transactions are used."
msgstr ""
-#. Tag: literal
-#: configuration.xml:1477
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
msgstr ""
#. Tag: para
-#: configuration.xml:1484
#, no-c-format
msgid "You can also define your own transaction strategies (for a CORBA transaction service, for example)."
msgstr ""
#. Tag: para
-#: configuration.xml:1489
#, no-c-format
msgid "Some features in Hibernate (i.e., the second level cache, Contextual Sessions with JTA, etc.) require access to the JTA <literal>TransactionManager</literal> in a managed environment. In an application server, since J2EE does not standardize a single mechanism, you have to specify how Hibernate should obtain a reference to the <literal>TransactionManager</literal>:"
msgstr ""
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr ""
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
msgstr ""
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1509
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1513
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1517
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1521
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+msgid "<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1525
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1529
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1533
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1537
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1541
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr ""
-#. Tag: literal
-#: configuration.xml:1545
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
+msgid "<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
msgstr ""
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr ""
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
msgstr ""
#. Tag: para
-#: configuration.xml:1557
#, no-c-format
msgid "A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the lookup function of the factory and create new <literal>Session</literal>s. This is not, however, related to a JNDI bound <literal>Datasource</literal>; both simply use the same registry."
msgstr ""
#. Tag: para
-#: configuration.xml:1564
#, no-c-format
msgid "If you wish to have the <literal>SessionFactory</literal> bound to a JNDI namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</literal>) using the property <literal>hibernate.session_factory_name</literal>. If this property is omitted, the <literal>SessionFactory</literal> will not be bound to JNDI. This is especially useful in environments with a read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid "When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will use the values of <literal>hibernate.jndi.url</literal>, <literal>hibernate.jndi.class</literal> to instantiate an initial context. If they are not specified, the default <literal>InitialContext</literal> will be used."
msgstr ""
#. Tag: para
-#: configuration.xml:1579
#, no-c-format
msgid "Hibernate will automatically place the <literal>SessionFactory</literal> in JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means you will have this call in some startup code, or utility class in your application, unless you use JMX deployment with the <literal>HibernateService</literal> (this is discussed later in greater detail)."
msgstr ""
#. Tag: para
-#: configuration.xml:1586
#, no-c-format
msgid "If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other class, you can obtain the <literal>SessionFactory</literal> using a JNDI lookup."
msgstr ""
#. Tag: para
-#: configuration.xml:1591
#, no-c-format
msgid "It is recommended that you bind the <literal>SessionFactory</literal> to JNDI in a managed environment and use a <literal>static</literal> singleton otherwise. To shield your application code from these details, we also recommend to hide the actual lookup code for a <literal>SessionFactory</literal> in a helper class, such as <literal>HibernateUtil.getSessionFactory()</literal>. Note that such a class is also a convenient way to startup Hibernate—see chapter 1."
msgstr ""
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
msgstr ""
#. Tag: para
-#: configuration.xml:1605
#, no-c-format
-msgid "The easiest way to handle <literal>Sessions</literal> and transactions is Hibernate's automatic \"current\" <literal>Session</literal> management. For a discussion of contextual sessions see <link linkend=\"architecture-current-session\"></link>. Using the <literal>\"jta\"</literal> session context, if there is no Hibernate <literal>Session</literal> associated with the current JTA transaction, one will be started and associated with that JTA transaction the first time you call <literal>sessionFactory.getCurrentSession()</literal>. The <literal>Session</literal>s retrieved via <literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> context are set to automatically flush before the transaction completes, close after the transaction completes, and aggressively release JDBC connections after each statement. This allows the <literal>Session</literal>s to be managed by the life cycle of the JTA transaction to which it is associated, keeping user code clean!
of such management concerns. Your code can either use JTA programmatically through <literal>UserTransaction</literal>, or (recommended for portable code) use the Hibernate <literal>Transaction</literal> API to set transaction boundaries. If you run in an EJB container, declarative transaction demarcation with CMT is preferred."
+msgid "The easiest way to handle <literal>Sessions</literal> and transactions is Hibernate's automatic \"current\" <literal>Session</literal> management. For a discussion of contextual sessions see <xref linkend=\"architecture-current-session\" />. Using the <literal>\"jta\"</literal> session context, if there is no Hibernate <literal>Session</literal> associated with the current JTA transaction, one will be started and associated with that JTA transaction the first time you call <literal>sessionFactory.getCurrentSession()</literal>. The <literal>Session</literal>s retrieved via <literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> context are set to automatically flush before the transaction completes, close after the transaction completes, and aggressively release JDBC connections after each statement. This allows the <literal>Session</literal>s to be managed by the life cycle of the JTA transaction to which it is associated, keeping user code clean of s!
uch management concerns. Your code can either use JTA programmatically through <literal>UserTransaction</literal>, or (recommended for portable code) use the Hibernate <literal>Transaction</literal> API to set transaction boundaries. If you run in an EJB container, declarative transaction demarcation with CMT is preferred."
msgstr ""
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
msgstr ""
#. Tag: para
-#: configuration.xml:1630
#, no-c-format
msgid "The line <literal>cfg.buildSessionFactory()</literal> still has to be executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You can do this either in a <literal>static</literal> initializer block, like the one in <literal>HibernateUtil</literal>, or you can deploy Hibernate as a <emphasis>managed service</emphasis>."
msgstr ""
#. Tag: para
-#: configuration.xml:1638
#, no-c-format
msgid "Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</literal> for deployment on an application server with JMX capabilities, such as JBoss AS. The actual deployment and configuration is vendor-specific. Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
-#. Tag: programlisting
-#: configuration.xml:1645
-#, no-c-format
-msgid ""
- "<![CDATA[<?xml version=\"1.0\"?>\n"
- "<server>\n"
- "\n"
- "<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
- " name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
- "\n"
- " <!-- Required services -->\n"
- " <depends>jboss.jca:service=RARDeployer</depends>\n"
- " <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
- "\n"
- " <!-- Bind the Hibernate service to JNDI -->\n"
- " <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
- "\n"
- " <!-- Datasource settings -->\n"
- " <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
- " <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</attribute>\n"
- "\n"
- " <!-- Transaction integration -->\n"
- " <attribute name=\"TransactionStrategy\">\n"
- " org.hibernate.transaction.JTATransactionFactory</attribute>\n"
- " <attribute name=\"TransactionManagerLookupStrategy\">\n"
- " org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
- " <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
- " <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
- "\n"
- " <!-- Fetching options -->\n"
- " <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
- "\n"
- " <!-- Second-level caching -->\n"
- " <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
- " <attribute name=\"CacheProviderClass\">org.hibernate.cache.EhCacheProvider</attribute>\n"
- " <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
- "\n"
- " <!-- Logging -->\n"
- " <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
- "\n"
- " <!-- Mapping files -->\n"
- " <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category.hbm.xml</attribute>\n"
- "\n"
- "</mbean>\n"
- "\n"
- "</server>]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1647
#, no-c-format
msgid "This file is deployed in a directory called <literal>META-INF</literal> and packaged in a JAR file with the extension <literal>.sar</literal> (service archive). You also need to package Hibernate, its required third-party libraries, your compiled persistent classes, as well as your mapping files in the same archive. Your enterprise beans (usually session beans) can be kept in their own JAR file, but you can include this EJB JAR file in the main service archive to get a single (hot-)deployable unit. Consult the JBoss AS documentation for more information about JMX service and EJB deployment."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/events.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/events.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/events.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,310 +1,128 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
msgstr ""
#. Tag: para
-#: events.xml:31
#, no-c-format
msgid "It is useful for the application to react to certain events that occur inside Hibernate. This allows for the implementation of generic functionality and the extension of Hibernate functionality."
msgstr ""
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr ""
#. Tag: para
-#: events.xml:40
#, no-c-format
msgid "The <literal>Interceptor</literal> interface provides callbacks from the session to the application, allowing the application to inspect and/or manipulate properties of a persistent object before it is saved, updated, deleted or loaded. One possible use for this is to track auditing information. For example, the following <literal>Interceptor</literal> automatically sets the <literal>createTimestamp</literal> when an <literal>Auditable</literal> is created and updates the <literal>lastUpdateTimestamp</literal> property when an <literal>Auditable</literal> is updated."
msgstr ""
#. Tag: para
-#: events.xml:51
#, no-c-format
msgid "You can either implement <literal>Interceptor</literal> directly or extend <literal>EmptyInterceptor</literal>."
msgstr ""
-#. Tag: programlisting
-#: events.xml:56
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.test;\n"
- "\n"
- "import java.io.Serializable;\n"
- "import java.util.Date;\n"
- "import java.util.Iterator;\n"
- "\n"
- "import org.hibernate.EmptyInterceptor;\n"
- "import org.hibernate.Transaction;\n"
- "import org.hibernate.type.Type;\n"
- "\n"
- "public class AuditInterceptor extends EmptyInterceptor {\n"
- "\n"
- " private int updates;\n"
- " private int creates;\n"
- " private int loads;\n"
- "\n"
- " public void onDelete(Object entity,\n"
- " Serializable id,\n"
- " Object[] state,\n"
- " String[] propertyNames,\n"
- " Type[] types) {\n"
- " // do nothing\n"
- " }\n"
- "\n"
- " public boolean onFlushDirty(Object entity,\n"
- " Serializable id,\n"
- " Object[] currentState,\n"
- " Object[] previousState,\n"
- " String[] propertyNames,\n"
- " Type[] types) {\n"
- "\n"
- " if ( entity instanceof Auditable ) {\n"
- " updates++;\n"
- " for ( int i=0; i < propertyNames.length; i++ ) {\n"
- " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
- " currentState[i] = new Date();\n"
- " return true;\n"
- " }\n"
- " }\n"
- " }\n"
- " return false;\n"
- " }\n"
- "\n"
- " public boolean onLoad(Object entity,\n"
- " Serializable id,\n"
- " Object[] state,\n"
- " String[] propertyNames,\n"
- " Type[] types) {\n"
- " if ( entity instanceof Auditable ) {\n"
- " loads++;\n"
- " }\n"
- " return false;\n"
- " }\n"
- "\n"
- " public boolean onSave(Object entity,\n"
- " Serializable id,\n"
- " Object[] state,\n"
- " String[] propertyNames,\n"
- " Type[] types) {\n"
- "\n"
- " if ( entity instanceof Auditable ) {\n"
- " creates++;\n"
- " for ( int i=0; i<propertyNames.length; i++ ) {\n"
- " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
- " state[i] = new Date();\n"
- " return true;\n"
- " }\n"
- " }\n"
- " }\n"
- " return false;\n"
- " }\n"
- "\n"
- " public void afterTransactionCompletion(Transaction tx) {\n"
- " if ( tx.wasCommitted() ) {\n"
- " System.out.println(\"Creations: \" + creates + \", Updates: \" + updates, \"Loads: \" + loads);\n"
- " }\n"
- " updates=0;\n"
- " creates=0;\n"
- " loads=0;\n"
- " }\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:58
#, no-c-format
msgid "There are two kinds of inteceptors: <literal>Session</literal>-scoped and <literal>SessionFactory</literal>-scoped."
msgstr ""
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid "A <literal>Session</literal>-scoped interceptor is specified when a session is opened using one of the overloaded SessionFactory.openSession() methods accepting an <literal>Interceptor</literal>."
msgstr ""
-#. Tag: programlisting
-#: events.xml:69
-#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:71
#, no-c-format
msgid "A <literal>SessionFactory</literal>-scoped interceptor is registered with the <literal>Configuration</literal> object prior to building the <literal>SessionFactory</literal>. Unless a session is opened explicitly specifying the interceptor to use, the supplied interceptor will be applied to all sessions opened from that <literal>SessionFactory</literal>. <literal>SessionFactory</literal>-scoped interceptors must be thread safe. Ensure that you do not store session-specific states, since multiple sessions will use this interceptor potentially concurrently."
msgstr ""
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr ""
#. Tag: para
-#: events.xml:87
#, no-c-format
msgid "If you have to react to particular events in your persistence layer, you can also use the Hibernate3 <emphasis>event</emphasis> architecture. The event system can be used in addition, or as a replacement, for interceptors."
msgstr ""
#. Tag: para
-#: events.xml:93
#, no-c-format
msgid "All the methods of the <literal>Session</literal> interface correlate to an event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</literal>, etc. Consult the XML configuration-file DTD or the <literal>org.hibernate.event</literal> package for the full list of defined event types. When a request is made of one of these methods, the Hibernate <literal>Session</literal> generates an appropriate event and passes it to the configured event listeners for that type. Out-of-the-box, these listeners implement the same processing in which those methods always resulted. However, you are free to implement a customization of one of the listener interfaces (i.e., the <literal>LoadEvent</literal> is processed by the registered implementation of the <literal>LoadEventListener</literal> interface), in which case their implementation would be responsible for processing any <literal>load()</literal> requests made of the <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: events.xml:108
#, no-c-format
msgid "The listeners should be considered singletons. This means they are shared between requests, and should not save any state as instance variables."
msgstr ""
#. Tag: para
-#: events.xml:113
#, no-c-format
msgid "A custom listener implements the appropriate interface for the event it wants to process and/or extend one of the convenience base classes (or even the default event listeners used by Hibernate out-of-the-box as these are declared non-final for this purpose). Custom listeners can either be registered programmatically through the <literal>Configuration</literal> object, or specified in the Hibernate configuration XML. Declarative configuration through the properties file is not supported. Here is an example of a custom load event listener:"
msgstr ""
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
- "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
- " // this is the single method defined by the LoadEventListener interface\n"
- " public void onLoad(LoadEvent event, LoadEventListener.LoadType loadType)\n"
- " throws HibernateException {\n"
- " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event.getEntityId() ) ) {\n"
- " throw MySecurityException(\"Unauthorized access\");\n"
- " }\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid "You also need a configuration entry telling Hibernate to use the listener in addition to the default listener:"
msgstr ""
-#. Tag: programlisting
-#: events.xml:130
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-configuration>\n"
- " <session-factory>\n"
- " ...\n"
- " <event type=\"load\">\n"
- " <listener class=\"com.eg.MyLoadListener\"/>\n"
- " <listener class=\"org.hibernate.event.def.DefaultLoadEventListener\"/>\n"
- " </event>\n"
- " </session-factory>\n"
- "</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:132
#, no-c-format
msgid "Instead, you can register it programmatically:"
msgstr ""
-#. Tag: programlisting
-#: events.xml:136
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = new Configuration();\n"
- "LoadEventListener[] stack = { new MyLoadListener(), new DefaultLoadEventListener() };\n"
- "cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:138
#, no-c-format
msgid "Listeners registered declaratively cannot share instances. If the same class name is used in multiple <literal><listener/></literal> elements, each reference will result in a separate instance of that class. If you need to share listener instances between listener types you must use the programmatic registration approach."
msgstr ""
#. Tag: para
-#: events.xml:146
#, no-c-format
msgid "Why implement an interface and define the specific type during configuration? A listener implementation could implement multiple event listener interfaces. Having the type additionally defined during registration makes it easier to turn custom listeners on or off during configuration."
msgstr ""
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
msgstr ""
#. Tag: para
-#: events.xml:157
#, no-c-format
msgid "Usually, declarative security in Hibernate applications is managed in a session facade layer. Hibernate3 allows certain actions to be permissioned via JACC, and authorized via JAAS. This is an optional functionality that is built on top of the event architecture."
msgstr ""
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid "First, you must configure the appropriate event listeners, to enable the use of JAAS authorization."
msgstr ""
-#. Tag: programlisting
-#: events.xml:168
-#, no-c-format
-msgid ""
- "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure.JACCPreDeleteEventListener\"/>\n"
- "<listener type=\"pre-update\" class=\"org.hibernate.secure.JACCPreUpdateEventListener\"/>\n"
- "<listener type=\"pre-insert\" class=\"org.hibernate.secure.JACCPreInsertEventListener\"/>\n"
- "<listener type=\"pre-load\" class=\"org.hibernate.secure.JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:170
#, no-c-format
msgid "Note that <literal><listener type=\"...\" class=\"...\"/></literal> is shorthand for <literal><event type=\"...\"><listener class=\"...\"/></event></literal> when there is exactly one listener for a particular event type."
msgstr ""
#. Tag: para
-#: events.xml:176
#, no-c-format
msgid "Next, while still in <literal>hibernate.cfg.xml</literal>, bind the permissions to roles:"
msgstr ""
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
- "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,read\"/>\n"
- "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/example_mappings.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/example_mappings.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/example_mappings.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,717 +1,119 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
msgstr ""
#. Tag: para
-#: example_mappings.xml:32
#, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr ""
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
msgstr ""
#. Tag: para
-#: example_mappings.xml:39
#, 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 ""
#. Tag: para
-#: example_mappings.xml:56
#, no-c-format
msgid "Here is a possible mapping document:"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:60
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- " \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"
- " <class name=\"Employment\" table=\"employment_periods\">\n"
- "\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"
- " <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"
- " <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"
- " <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"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:62
#, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
- "<![CDATA[create table employers (\n"
- " id BIGINT not null, \n"
- " name VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table employment_periods (\n"
- " id BIGINT not null,\n"
- " hourly_rate NUMERIC(12, 2),\n"
- " currency VARCHAR(12), \n"
- " employee_id BIGINT not null, \n"
- " employer_id BIGINT not null, \n"
- " end_date TIMESTAMP, \n"
- " start_date TIMESTAMP, \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table employees (\n"
- " id BIGINT not null, \n"
- " firstName VARCHAR(255), \n"
- " initial CHAR(1), \n"
- " lastName VARCHAR(255), \n"
- " taxfileNumber VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "alter table employment_periods \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"
- "create sequence employee_id_seq\n"
- "create sequence employment_id_seq\n"
- "create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
msgstr ""
#. Tag: para
-#: example_mappings.xml:73
#, 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 ""
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid "The following mapping document correctly represents these relationships:"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:95
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
- "\n"
- " <id name=\"id\" column=\"id\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <discriminator column=\"type\" type=\"character\"/>\n"
- "\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"
- " <subclass name=\"Book\" discriminator-value=\"B\">\n"
- " <property name=\"text\"/>\n"
- " </subclass>\n"
- "\n"
- " <subclass name=\"Song\" discriminator-value=\"S\">\n"
- " <property name=\"tempo\"/>\n"
- " <property name=\"genre\"/>\n"
- " </subclass>\n"
- "\n"
- " </class>\n"
- "\n"
- " <class name=\"Author\" table=\"authors\">\n"
- "\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"
- " <property name=\"alias\"/>\n"
- " <one-to-one name=\"person\" constrained=\"true\"/>\n"
- "\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"
- " </class>\n"
- "\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"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:97
#, 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 ""
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
- "<![CDATA[create table works (\n"
- " id BIGINT not null generated by default as identity, \n"
- " tempo FLOAT, \n"
- " genre VARCHAR(255), \n"
- " text INTEGER, \n"
- " title VARCHAR(255), \n"
- " type CHAR(1) not null, \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table author_work (\n"
- " author_id BIGINT not null, \n"
- " work_id BIGINT not null, \n"
- " primary key (work_id, author_id)\n"
- ")\n"
- "\n"
- "create table authors (\n"
- " id BIGINT not null generated by default as identity, \n"
- " alias VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table persons (\n"
- " id BIGINT not null generated by default as identity, \n"
- " name VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "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"
- "alter table author_work\n"
- " add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
msgstr ""
#. Tag: para
-#: example_mappings.xml:112
#, 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 ""
#. Tag: para
-#: example_mappings.xml:132
#, no-c-format
msgid "The mapping document will look like this:"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\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"
- " <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"
- " <class name=\"Product\" table=\"products\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"serialNumber\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. 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 ""
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
- "<![CDATA[create table customers (\n"
- " id BIGINT not null generated by default as identity, \n"
- " name VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table orders (\n"
- " id BIGINT not null generated by default as identity, \n"
- " customer_id BIGINT, \n"
- " date TIMESTAMP, \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "create table line_items (\n"
- " line_number INTEGER not null, \n"
- " order_id BIGINT not null, \n"
- " product_id BIGINT, \n"
- " quantity INTEGER, \n"
- " primary key (order_id, line_number)\n"
- ")\n"
- "\n"
- "create table products (\n"
- " id BIGINT not null generated by default as identity, \n"
- " serialNumber VARCHAR(255), \n"
- " primary key (id)\n"
- ")\n"
- "\n"
- "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"
- "alter table line_items\n"
- " add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr ""
#. Tag: para
-#: example_mappings.xml:152
#, 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 ""
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
- "<![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"
- "<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Customer\">\n"
- "\n"
- " <id name=\"customerId\"\n"
- " length=\"10\">\n"
- " <generator class=\"assigned\"/>\n"
- " </id>\n"
- "\n"
- " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
- " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
- "\n"
- " <list name=\"orders\"\n"
- " inverse=\"true\"\n"
- " cascade=\"save-update\">\n"
- " <key column=\"customerId\"/>\n"
- " <index column=\"orderNumber\"/>\n"
- " <one-to-many class=\"Order\"/>\n"
- " </list>\n"
- "\n"
- "</class>\n"
- "\n"
- "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
- " <synchronize table=\"LineItem\"/>\n"
- " <synchronize table=\"Product\"/>\n"
- " \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"
- " <property name=\"orderDate\" \n"
- " type=\"calendar_date\"\n"
- " not-null=\"true\"/>\n"
- " \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"
- " </formula>\n"
- " </property>\n"
- " \n"
- " <many-to-one name=\"customer\"\n"
- " column=\"customerId\"\n"
- " insert=\"false\"\n"
- " update=\"false\" \n"
- " not-null=\"true\"/>\n"
- " \n"
- " <bag name=\"lineItems\"\n"
- " fetch=\"join\" \n"
- " inverse=\"true\"\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"
- "</class>\n"
- " \n"
- "<class name=\"LineItem\">\n"
- " \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"
- " <property name=\"quantity\"/>\n"
- " \n"
- " <many-to-one name=\"order\"\n"
- " insert=\"false\"\n"
- " update=\"false\" \n"
- " not-null=\"true\">\n"
- " <column name=\"customerId\"/>\n"
- " <column name=\"orderNumber\"/>\n"
- " </many-to-one>\n"
- " \n"
- " <many-to-one name=\"product\"\n"
- " insert=\"false\"\n"
- " update=\"false\" \n"
- " not-null=\"true\"\n"
- " column=\"productId\"/>\n"
- " \n"
- "</class>\n"
- "\n"
- "<class name=\"Product\">\n"
- " <synchronize table=\"LineItem\"/>\n"
- "\n"
- " <id name=\"productId\"\n"
- " length=\"10\">\n"
- " <generator class=\"assigned\"/>\n"
- " </id>\n"
- " \n"
- " <property name=\"description\" \n"
- " not-null=\"true\" \n"
- " length=\"200\"/>\n"
- " <property name=\"price\" length=\"3\"/>\n"
- " <property name=\"numberAvailable\"/>\n"
- " \n"
- " <property name=\"numberOrdered\">\n"
- " <formula>\n"
- " ( select sum(li.quantity) \n"
- " from LineItem li \n"
- " where li.productId = productId )\n"
- " </formula>\n"
- " </property>\n"
- " \n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
- "<![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"
- "<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"
- "]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\"\n"
- " discriminator-value=\"P\">\n"
- " \n"
- " <id name=\"id\" \n"
- " column=\"person_id\" \n"
- " unsaved-value=\"0\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " \n"
- " \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"
- " </formula>\n"
- " </discriminator>\n"
- "\n"
- " <property name=\"name\" \n"
- " not-null=\"true\"\n"
- " length=\"80\"/>\n"
- " \n"
- " <property name=\"sex\" \n"
- " not-null=\"true\"\n"
- " update=\"false\"/>\n"
- " \n"
- " <component name=\"address\">\n"
- " <property name=\"address\"/>\n"
- " <property name=\"zip\"/>\n"
- " <property name=\"country\"/>\n"
- " </component>\n"
- " \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"
- " <subclass name=\"Customer\" \n"
- " discriminator-value=\"C\">\n"
- " <property name=\"comments\"/>\n"
- " <many-to-one name=\"salesperson\"/>\n"
- " </subclass>\n"
- " \n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
msgstr ""
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " \n"
- " <id name=\"id\">\n"
- " <generator class=\"hilo\"/>\n"
- " </id>\n"
- " \n"
- " <property name=\"name\" length=\"100\"/>\n"
- " \n"
- " <one-to-one name=\"address\" \n"
- " property-ref=\"person\"\n"
- " cascade=\"all\"\n"
- " fetch=\"join\"/>\n"
- " \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"
- " <property name=\"userId\" length=\"8\"/>\n"
- "\n"
- "</class>\n"
- "\n"
- "<class name=\"Address\">\n"
- "\n"
- " <id name=\"id\">\n"
- " <generator class=\"hilo\"/>\n"
- " </id>\n"
- "\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"
- "</class>\n"
- "\n"
- "<class name=\"Account\">\n"
- " <id name=\"accountId\" length=\"32\">\n"
- " <generator class=\"uuid\"/>\n"
- " </id>\n"
- " \n"
- " <many-to-one name=\"user\"\n"
- " column=\"userId\"\n"
- " property-ref=\"userId\"/>\n"
- " \n"
- " <property name=\"type\" not-null=\"true\"/>\n"
- " \n"
- "</class>]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/example_parentchild.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/example_parentchild.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/example_parentchild.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,396 +1,203 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:31
#, 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><one-to-many></literal> association from <literal>Parent</literal> to <literal>Child</literal>. The alternative approach is to declare the <literal>Child</literal> as a <literal><composite-element></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 ""
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:47
#, 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 ""
#. Tag: para
-#: example_parentchild.xml:54
#, no-c-format
msgid "When you remove/add an object from/to a collection, the version number of the collection owner is incremented."
msgstr ""
#. Tag: para
-#: example_parentchild.xml:60
#, 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 ""
#. Tag: para
-#: example_parentchild.xml:68
#, 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 ""
#. Tag: para
-#: example_parentchild.xml:78
#, 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 ""
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid "Suppose we start with a simple <literal><one-to-many></literal> association from <literal>Parent</literal> to <literal>Child</literal>."
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"children\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:97
#, no-c-format
msgid "If we were to execute the following code:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
- "<![CDATA[Parent p = .....;\n"
- "Child c = new Child();\n"
- "p.getChildren().add(c);\n"
- "session.save(c);\n"
- "session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid "an <literal>INSERT</literal> to create the record for <literal>c</literal>"
msgstr ""
#. 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 ""
#. Tag: para
-#: example_parentchild.xml:119
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
msgstr ""
#. Tag: para
-#: example_parentchild.xml:130
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:137
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:139
#, no-c-format
msgid "You also need to add the <literal>parent</literal> property to the <literal>Child</literal> class."
msgstr ""
#. Tag: para
-#: example_parentchild.xml:143
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"children\" inverse=\"true\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:150
#, no-c-format
msgid "The following code would be used to add a new <literal>Child</literal>:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:154
-#, no-c-format
-msgid ""
- "<![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();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:156
#, no-c-format
msgid "Only one SQL <literal>INSERT</literal> would now be issued."
msgstr ""
#. Tag: para
-#: example_parentchild.xml:160
#, no-c-format
msgid "You could also create an <literal>addChild()</literal> method of <literal>Parent</literal>."
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
- "<![CDATA[public void addChild(Child c) {\n"
- " c.setParent(this);\n"
- " children.add(c);\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:167
#, no-c-format
msgid "The code to add a <literal>Child</literal> looks like this:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:171
-#, no-c-format
-msgid ""
- "<![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();]]>"
-msgstr ""
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:178
#, no-c-format
msgid "You can address the frustrations of the explicit call to <literal>save()</literal> by using cascades."
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:185
#, no-c-format
msgid "This simplifies the code above to:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:189
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:191
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
- "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
- "session.delete(p);\n"
- "session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:198
#, no-c-format
msgid "However, the following code:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:202
-#, no-c-format
-msgid ""
- "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
- "Child c = (Child) p.getChildren().iterator().next();\n"
- "p.getChildren().remove(c);\n"
- "c.setParent(null);\n"
- "session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:204
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:210
-#, no-c-format
-msgid ""
- "<![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();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:212
#, 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 ""
-#. Tag: programlisting
-#: example_parentchild.xml:218
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan\">\n"
- " <key column=\"parent_id\"/>\n"
- " <one-to-many class=\"Child\"/>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:220
#, 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 ""
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:232
#, 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>"
+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 ""
#. Tag: para
-#: example_parentchild.xml:244
#, no-c-format
msgid "The following code will update <literal>parent</literal> and <literal>child</literal> and insert <literal>newChild</literal>:"
msgstr ""
-#. Tag: programlisting
-#: example_parentchild.xml:249
-#, no-c-format
-msgid ""
- "<![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();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:251
#, 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 ""
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
msgstr ""
#. Tag: para
-#: example_parentchild.xml:265
#, 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 ""
#. Tag: para
-#: example_parentchild.xml:270
#, no-c-format
msgid "We mentioned an alternative in the first paragraph. None of the above issues exist in the case of <literal><composite-element></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 ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/example_weblog.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/example_weblog.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/example_weblog.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,478 +1,49 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
msgstr ""
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
msgstr ""
#. Tag: para
-#: example_weblog.xml:34
#, 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 ""
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "\n"
- "import java.util.List;\n"
- "\n"
- "public class Blog {\n"
- " private Long _id;\n"
- " private String _name;\n"
- " private List _items;\n"
- "\n"
- " public Long getId() {\n"
- " return _id;\n"
- " }\n"
- " public List getItems() {\n"
- " return _items;\n"
- " }\n"
- " public String getName() {\n"
- " return _name;\n"
- " }\n"
- " public void setId(Long long1) {\n"
- " _id = long1;\n"
- " }\n"
- " public void setItems(List list) {\n"
- " _items = list;\n"
- " }\n"
- " public void setName(String string) {\n"
- " _name = string;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "\n"
- "import java.text.DateFormat;\n"
- "import java.util.Calendar;\n"
- "\n"
- "public class BlogItem {\n"
- " private Long _id;\n"
- " private Calendar _datetime;\n"
- " private String _text;\n"
- " private String _title;\n"
- " private Blog _blog;\n"
- "\n"
- " public Blog getBlog() {\n"
- " return _blog;\n"
- " }\n"
- " public Calendar getDatetime() {\n"
- " return _datetime;\n"
- " }\n"
- " public Long getId() {\n"
- " return _id;\n"
- " }\n"
- " public String getText() {\n"
- " return _text;\n"
- " }\n"
- " public String getTitle() {\n"
- " return _title;\n"
- " }\n"
- " public void setBlog(Blog blog) {\n"
- " _blog = blog;\n"
- " }\n"
- " public void setDatetime(Calendar calendar) {\n"
- " _datetime = calendar;\n"
- " }\n"
- " public void setId(Long long1) {\n"
- " _id = long1;\n"
- " }\n"
- " public void setText(String string) {\n"
- " _text = string;\n"
- " }\n"
- " public void setTitle(String string) {\n"
- " _title = string;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
msgstr ""
#. Tag: para
-#: example_weblog.xml:49
#, no-c-format
msgid "The XML mappings are now straightforward. For example:"
msgstr ""
-#. Tag: programlisting
-#: example_weblog.xml:53
-#, no-c-format
-msgid ""
- "<![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\">\n"
- "\n"
- "<hibernate-mapping package=\"eg\">\n"
- "\n"
- " <class\n"
- " name=\"Blog\"\n"
- " table=\"BLOGS\">\n"
- "\n"
- " <id\n"
- " name=\"id\"\n"
- " column=\"BLOG_ID\">\n"
- "\n"
- " <generator class=\"native\"/>\n"
- "\n"
- " </id>\n"
- "\n"
- " <property\n"
- " name=\"name\"\n"
- " column=\"NAME\"\n"
- " not-null=\"true\"\n"
- " unique=\"true\"/>\n"
- "\n"
- " <bag\n"
- " name=\"items\"\n"
- " inverse=\"true\"\n"
- " order-by=\"DATE_TIME\"\n"
- " cascade=\"all\">\n"
- "\n"
- " <key column=\"BLOG_ID\"/>\n"
- " <one-to-many class=\"BlogItem\"/>\n"
- "\n"
- " </bag>\n"
- "\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
- "<![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\">\n"
- "\n"
- "<hibernate-mapping package=\"eg\">\n"
- "\n"
- " <class\n"
- " name=\"BlogItem\"\n"
- " table=\"BLOG_ITEMS\"\n"
- " dynamic-update=\"true\">\n"
- "\n"
- " <id\n"
- " name=\"id\"\n"
- " column=\"BLOG_ITEM_ID\">\n"
- "\n"
- " <generator class=\"native\"/>\n"
- "\n"
- " </id>\n"
- "\n"
- " <property\n"
- " name=\"title\"\n"
- " column=\"TITLE\"\n"
- " not-null=\"true\"/>\n"
- "\n"
- " <property\n"
- " name=\"text\"\n"
- " column=\"TEXT\"\n"
- " not-null=\"true\"/>\n"
- "\n"
- " <property\n"
- " name=\"datetime\"\n"
- " column=\"DATE_TIME\"\n"
- " not-null=\"true\"/>\n"
- "\n"
- " <many-to-one\n"
- " name=\"blog\"\n"
- " column=\"BLOG_ID\"\n"
- " not-null=\"true\"/>\n"
- "\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
msgstr ""
#. Tag: para
-#: example_weblog.xml:62
#, no-c-format
msgid "The following class demonstrates some of the kinds of things we can do with these classes using Hibernate:"
msgstr ""
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "\n"
- "import java.util.ArrayList;\n"
- "import java.util.Calendar;\n"
- "import java.util.Iterator;\n"
- "import java.util.List;\n"
- "\n"
- "import org.hibernate.HibernateException;\n"
- "import org.hibernate.Query;\n"
- "import org.hibernate.Session;\n"
- "import org.hibernate.SessionFactory;\n"
- "import org.hibernate.Transaction;\n"
- "import org.hibernate.cfg.Configuration;\n"
- "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
- "\n"
- "public class BlogMain {\n"
- " \n"
- " private SessionFactory _sessions;\n"
- " \n"
- " public void configure() throws HibernateException {\n"
- " _sessions = new Configuration()\n"
- " .addClass(Blog.class)\n"
- " .addClass(BlogItem.class)\n"
- " .buildSessionFactory();\n"
- " }\n"
- " \n"
- " public void exportTables() throws HibernateException {\n"
- " Configuration cfg = new Configuration()\n"
- " .addClass(Blog.class)\n"
- " .addClass(BlogItem.class);\n"
- " new SchemaExport(cfg).create(true, true);\n"
- " }\n"
- " \n"
- " public Blog createBlog(String name) throws HibernateException {\n"
- " \n"
- " Blog blog = new Blog();\n"
- " blog.setName(name);\n"
- " blog.setItems( new ArrayList() );\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " session.persist(blog);\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return blog;\n"
- " }\n"
- " \n"
- " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
- " throws HibernateException {\n"
- " \n"
- " BlogItem item = new BlogItem();\n"
- " item.setTitle(title);\n"
- " item.setText(text);\n"
- " item.setBlog(blog);\n"
- " item.setDatetime( Calendar.getInstance() );\n"
- " blog.getItems().add(item);\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " session.update(blog);\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return item;\n"
- " }\n"
- " \n"
- " public BlogItem createBlogItem(Long blogid, String title, String text)\n"
- " throws HibernateException {\n"
- " \n"
- " BlogItem item = new BlogItem();\n"
- " item.setTitle(title);\n"
- " item.setText(text);\n"
- " item.setDatetime( Calendar.getInstance() );\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
- " item.setBlog(blog);\n"
- " blog.getItems().add(item);\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return item;\n"
- " }\n"
- " \n"
- " public void updateBlogItem(BlogItem item, String text)\n"
- " throws HibernateException {\n"
- " \n"
- " item.setText(text);\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " session.update(item);\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " }\n"
- " \n"
- " public void updateBlogItem(Long itemid, String text)\n"
- " throws HibernateException {\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " BlogItem item = (BlogItem) session.load(BlogItem.class, itemid);\n"
- " item.setText(text);\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " }\n"
- " \n"
- " public List listAllBlogNamesAndItemCounts(int max)\n"
- " throws HibernateException {\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " List result = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " Query q = session.createQuery(\n"
- " \"select blog.id, blog.name, count(blogItem) \" +\n"
- " \"from Blog as blog \" +\n"
- " \"left outer join blog.items as blogItem \" +\n"
- " \"group by blog.name, blog.id \" +\n"
- " \"order by max(blogItem.datetime)\"\n"
- " );\n"
- " q.setMaxResults(max);\n"
- " result = q.list();\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return result;\n"
- " }\n"
- " \n"
- " public Blog getBlogAndAllItems(Long blogid)\n"
- " throws HibernateException {\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " Blog blog = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " Query q = session.createQuery(\n"
- " \"from Blog as blog \" +\n"
- " \"left outer join fetch blog.items \" +\n"
- " \"where blog.id = :blogid\"\n"
- " );\n"
- " q.setParameter(\"blogid\", blogid);\n"
- " blog = (Blog) q.uniqueResult();\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return blog;\n"
- " }\n"
- " \n"
- " public List listBlogsAndRecentItems() throws HibernateException {\n"
- " \n"
- " Session session = _sessions.openSession();\n"
- " Transaction tx = null;\n"
- " List result = null;\n"
- " try {\n"
- " tx = session.beginTransaction();\n"
- " Query q = session.createQuery(\n"
- " \"from Blog as blog \" +\n"
- " \"inner join blog.items as blogItem \" +\n"
- " \"where blogItem.datetime > :minDate\"\n"
- " );\n"
- "\n"
- " Calendar cal = Calendar.getInstance();\n"
- " cal.roll(Calendar.MONTH, false);\n"
- " q.setCalendar(\"minDate\", cal);\n"
- " \n"
- " result = q.list();\n"
- " tx.commit();\n"
- " }\n"
- " catch (HibernateException he) {\n"
- " if (tx!=null) tx.rollback();\n"
- " throw he;\n"
- " }\n"
- " finally {\n"
- " session.close();\n"
- " }\n"
- " return result;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/filters.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/filters.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/filters.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,198 +1,93 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr ""
#. Tag: para
-#: filters.xml:31
#, no-c-format
msgid "Hibernate3 provides an innovative new approach to handling data with \"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, named, parameterized filter that can be enabled or disabled for a particular Hibernate session."
msgstr ""
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
msgstr ""
#. Tag: para
-#: filters.xml:40
#, no-c-format
msgid "Hibernate3 has the ability to pre-define filter criteria and attach those filters at both a class level and a collection level. A filter criteria allows you to define a restriction clause similar to the existing \"where\" attribute available on the class and various collection elements. These filter conditions, however, can be parameterized. The application can then decide at runtime whether certain filters should be enabled and what their parameter values should be. Filters can be used like database views, but they are parameterized inside the application."
msgstr ""
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid "In order to use filters, they must first be defined and then attached to the appropriate mapping elements. To define a filter, use the <literal><filter-def/></literal> element within a <literal><hibernate-mapping/></literal> element:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:56
-#, no-c-format
-msgid ""
- "<![CDATA[<filter-def name=\"myFilter\">\n"
- " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
- "</filter-def>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:58
#, no-c-format
msgid "This filter can then be attached to a class:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:62
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"myClass\" ...>\n"
- " ...\n"
- " <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:64
#, no-c-format
msgid "Or, to a collection:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:68
-#, no-c-format
-msgid ""
- "<![CDATA[<set ...>\n"
- " <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN\"/>\n"
- "</set>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:70
#, no-c-format
msgid "Or, to both or multiples of each at the same time."
msgstr ""
#. Tag: para
-#: filters.xml:74
#, no-c-format
msgid "The methods on <literal>Session</literal> are: <literal>enableFilter(String filterName)</literal>, <literal>getEnabledFilter(String filterName)</literal>, and <literal>disableFilter(String filterName)</literal>. By default, filters are <emphasis>not</emphasis> enabled for a given session. Filters must be enabled through use of the <literal>Session.enableFilter()</literal> method, which returns an instance of the <literal>Filter</literal> interface. If you used the simple filter defined above, it would look like this:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:83
-#, no-c-format
-msgid "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", \"some-value\");]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:85
#, no-c-format
msgid "Methods on the org.hibernate.Filter interface do allow the method-chaining common to much of Hibernate."
msgstr ""
#. Tag: para
-#: filters.xml:89
#, no-c-format
msgid "The following is a full example, using temporal data with an effective record date pattern:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:93
-#, no-c-format
-msgid ""
- "<![CDATA[<filter-def name=\"effectiveDate\">\n"
- " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
- "</filter-def>\n"
- "\n"
- "<class name=\"Employee\" ...>\n"
- "...\n"
- " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/>\n"
- " <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt\"/>\n"
- " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/>\n"
- "...\n"
- " <!--\n"
- " Note that this assumes non-terminal records have an eff_end_dt set to\n"
- " a max db date for simplicity-sake\n"
- " -->\n"
- " <filter name=\"effectiveDate\"\n"
- " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"Department\" ...>\n"
- "...\n"
- " <set name=\"employees\" lazy=\"true\">\n"
- " <key column=\"dept_id\"/>\n"
- " <one-to-many class=\"Employee\"/>\n"
- " <filter name=\"effectiveDate\"\n"
- " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:95
#, no-c-format
msgid "In order to ensure that you are provided with currently effective records, enable the filter on the session prior to retrieving employee data:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:100
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = ...;\n"
- "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date());\n"
- "List results = session.createQuery(\"from Employee as e where e.salary > :targetSalary\")\n"
- " .setLong(\"targetSalary\", new Long(1000000))\n"
- " .list();\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:102
#, no-c-format
msgid "Even though a salary constraint was mentioned explicitly on the results in the above HQL, because of the enabled filter, the query will return only currently active employees who have a salary greater than one million dollars."
msgstr ""
#. Tag: para
-#: filters.xml:108
#, no-c-format
msgid "If you want to use filters with outer joining, either through HQL or load fetching, be careful of the direction of the condition expression. It is safest to set this up for left outer joining. Place the parameter first followed by the column name(s) after the operator."
msgstr ""
#. Tag: para
-#: filters.xml:115
#, no-c-format
msgid "After being defined, a filter might be attached to multiple entities and/or collections each with its own condition. This can be problematic when the conditions are the same each time. Using <literal><filter-def/></literal> allows you to definine a default condition, either as an attribute or CDATA:"
msgstr ""
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
- "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-def>\n"
- "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
-msgstr ""
-
#. Tag: para
-#: filters.xml:124
#, no-c-format
msgid "This default condition will be used whenever the filter is attached to something without specifying a condition. This means you can give a specific condition as part of the attachment of the filter that overrides the default condition in that particular case."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/inheritance_mapping.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/inheritance_mapping.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/inheritance_mapping.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,631 +1,334 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: inheritance_mapping.xml:29
#, no-c-format
msgid "Inheritance mapping"
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:32
#, no-c-format
msgid "The three strategies"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:45
#, no-c-format
-msgid "<para>table per subclass</para>"
+msgid "table per subclass"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid "In addition, Hibernate supports a fourth, slightly different kind of polymorphism:"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:69
#, no-c-format
msgid "It is possible to use different mapping strategies for different branches of the same inheritance hierarchy. You can then make use of implicit polymorphism to achieve polymorphism across the whole hierarchy. However, Hibernate does not support mixing <literal><subclass></literal>, <literal><joined-subclass></literal> and <literal><union-subclass></literal> mappings under the same root <literal><class></literal> element. It is possible to mix together the table per hierarchy and table per subclass strategies under the the same <literal><class></literal> element, by combining the <literal><subclass></literal> and <literal><join></literal> elements (see below for an example)."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:83
#, no-c-format
msgid "It is possible to define <literal>subclass</literal>, <literal>union-subclass</literal>, and <literal>joined-subclass</literal> mappings in separate mapping documents directly beneath <literal>hibernate-mapping</literal>. This allows you to extend a class hierarchy by adding a new mapping file. You must specify an <literal>extends</literal> attribute in the subclass mapping, naming a previously mapped superclass. Previously this feature made the ordering of the mapping documents important. Since Hibernate3, the ordering of mapping files is irrelevant when using the extends keyword. The ordering inside a single mapping file still needs to be defined as superclasses before subclasses."
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- " <hibernate-mapping>\n"
- " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D\">\n"
- " <property name=\"name\" type=\"string\"/>\n"
- " </subclass>\n"
- " </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:100
#, no-c-format
msgid "Suppose we have an interface <literal>Payment</literal> with the implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</literal>, and <literal>ChequePayment</literal>. The table per hierarchy mapping would display in the following way:"
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
- " <property name=\"amount\" column=\"AMOUNT\"/>\n"
- " ...\n"
- " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
- " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
- " ...\n"
- " </subclass>\n"
- " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
- " ...\n"
- " </subclass>\n"
- " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
- " ...\n"
- " </subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:109
#, no-c-format
msgid "Exactly one table is required. There is a limitation of this mapping strategy: columns declared by the subclasses, such as <literal>CCTYPE</literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:120
#, no-c-format
msgid "A table per subclass mapping looks like this:"
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"amount\" column=\"AMOUNT\"/>\n"
- " ...\n"
- " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
- " ...\n"
- " </joined-subclass>\n"
- " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " ...\n"
- " </joined-subclass>\n"
- " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " ...\n"
- " </joined-subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:126
#, no-c-format
msgid "Four tables are required. The three subclass tables have primary key associations to the superclass table so the relational model is actually a one-to-one association."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:135
#, no-c-format
msgid "Table per subclass: using a discriminator"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:137
#, no-c-format
msgid "Hibernate's implementation of table per subclass does not require a discriminator column. Other object/relational mappers use a different implementation of table per subclass that requires a type discriminator column in the superclass table. The approach taken by Hibernate is much more difficult to implement, but arguably more correct from a relational point of view. If you want to use a discriminator column with the table per subclass strategy, you can combine the use of <literal><subclass></literal> and <literal><join></literal>, as follows:"
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
- " <property name=\"amount\" column=\"AMOUNT\"/>\n"
- " ...\n"
- " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
- " <join table=\"CREDIT_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
- " ...\n"
- " </join>\n"
- " </subclass>\n"
- " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
- " <join table=\"CASH_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " ...\n"
- " </join>\n"
- " </subclass>\n"
- " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
- " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " ...\n"
- " </join>\n"
- " </subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid "The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate not to fetch the <literal>ChequePayment</literal> subclass data using an outer join when querying the superclass."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:162
#, no-c-format
msgid "You can even mix the table per hierarchy and table per subclass strategies using the following approach:"
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
- " <property name=\"amount\" column=\"AMOUNT\"/>\n"
- " ...\n"
- " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
- " <join table=\"CREDIT_PAYMENT\">\n"
- " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
- " ...\n"
- " </join>\n"
- " </subclass>\n"
- " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
- " ...\n"
- " </subclass>\n"
- " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
- " ...\n"
- " </subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid "For any of these mapping strategies, a polymorphic association to the root <literal>Payment</literal> class is mapped using <literal><many-to-one></literal>."
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:182
#, no-c-format
msgid "There are two ways we can map the table per concrete class strategy. First, you can use <literal><union-subclass></literal>."
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Payment\">\n"
- " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- " <property name=\"amount\" column=\"AMOUNT\"/>\n"
- " ...\n"
- " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
- " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
- " ...\n"
- " </union-subclass>\n"
- " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
- " ...\n"
- " </union-subclass>\n"
- " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
- " ...\n"
- " </union-subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid "Three tables are involved for the subclasses. Each table defines columns for all properties of the class, including inherited properties."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:194
#, no-c-format
msgid "The limitation of this approach is that if a property is mapped on the superclass, the column name must be the same on all subclass tables. The identity generator strategy is not allowed in union subclass inheritance. The primary key seed has to be shared across all unioned subclasses of a hierarchy."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:203
#, no-c-format
msgid "If your superclass is abstract, map it with <literal>abstract=\"true\"</literal>. If it is not abstract, an additional table (it defaults to <literal>PAYMENT</literal> in the example above), is needed to hold instances of the superclass."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:213
#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
- " ...\n"
- "</class>\n"
- "\n"
- "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
- " ...\n"
- "</class>\n"
- "\n"
- "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
- " ...\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, no-c-format
-msgid "Notice that the <literal>Payment</literal> interface is not mentioned explicitly. Also notice that properties of <literal>Payment</literal> are mapped in each of the subclasses. If you want to avoid duplication, consider using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> declaration and <literal>&allproperties;</literal> in the mapping)."
+msgid "Notice that the <literal>Payment</literal> interface is not mentioned explicitly. Also notice that properties of <literal>Payment</literal> are mapped in each of the subclasses. If you want to avoid duplication, consider using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid "The disadvantage of this approach is that Hibernate does not generate SQL <literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid "For this mapping strategy, a polymorphic association to <literal>Payment</literal> is usually mapped using <literal><any></literal>."
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
- "<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
- " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
- " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
- " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
- " <column name=\"PAYMENT_CLASS\"/>\n"
- " <column name=\"PAYMENT_ID\"/>\n"
- "</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:248
#, no-c-format
msgid "Since the subclasses are each mapped in their own <literal><class></literal> element, and since <literal>Payment</literal> is just an interface), each of the subclasses could easily be part of another inheritance hierarchy. You can still use polymorphic queries against the <literal>Payment</literal> interface."
msgstr ""
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
- " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
- " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
- " ...\n"
- " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
- " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
- "</class>\n"
- "\n"
- "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
- " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " ...\n"
- " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
- " ...\n"
- " </joined-subclass>\n"
- " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
- " <key column=\"PAYMENT_ID\"/>\n"
- " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
- " ...\n"
- " </joined-subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:258
#, no-c-format
msgid "Once again, <literal>Payment</literal> is not mentioned explicitly. If we execute a query against the <literal>Payment</literal> interface, for example <literal>from Payment</literal>, Hibernate automatically returns instances of <literal>CreditCardPayment</literal> (and its subclasses, since they also implement <literal>Payment</literal>), <literal>CashPayment</literal> and <literal>ChequePayment</literal>, but not instances of <literal>NonelectronicTransaction</literal>."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:275
#, no-c-format
msgid "There are limitations to the \"implicit polymorphism\" approach to the table per concrete-class mapping strategy. There are somewhat less restrictive limitations to <literal><union-subclass></literal> mappings."
msgstr ""
#. Tag: para
-#: inheritance_mapping.xml:282
#, no-c-format
msgid "The following table shows the limitations of table per concrete-class mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
#. Tag: title
-#: inheritance_mapping.xml:288
#, no-c-format
msgid "Features of inheritance mappings"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:301
#, no-c-format
msgid "Inheritance strategy"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:302
#, no-c-format
msgid "Polymorphic many-to-one"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:305
#, no-c-format
msgid "Polymorphic many-to-many"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:309
#, no-c-format
msgid "Outer join fetching"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:314
#, no-c-format
msgid "table per class-hierarchy"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326 inheritance_mapping.xml:337
+#. Tag: entry
#, no-c-format
-msgid "<many-to-one>"
+msgid "<literal><many-to-one></literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327 inheritance_mapping.xml:338
+#. Tag: entry
#, no-c-format
-msgid "<one-to-one>"
+msgid "<literal><one-to-one></literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
+#. Tag: entry
#, no-c-format
-msgid "<one-to-many>"
+msgid "<literal><one-to-many></literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329 inheritance_mapping.xml:340
+#. Tag: entry
#, no-c-format
-msgid "<many-to-many>"
+msgid "<literal><many-to-many></literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330 inheritance_mapping.xml:341
+#. Tag: entry
#, no-c-format
-msgid "s.get(Payment.class, id)"
+msgid "<literal>s.get(Payment.class, id)</literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331 inheritance_mapping.xml:342 inheritance_mapping.xml:353
+#. Tag: entry
#, no-c-format
-msgid "from Payment p"
+msgid "<literal>from Payment p</literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332 inheritance_mapping.xml:343
+#. Tag: entry
#, no-c-format
-msgid "from Order o join o.payment p"
+msgid "<literal>from Order o join o.payment p</literal>"
msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333 inheritance_mapping.xml:344
-#, no-c-format
-msgid "supported"
-msgstr ""
-
#. Tag: entry
-#: inheritance_mapping.xml:325
#, no-c-format
-msgid "<entry>table per subclass</entry>"
+msgid "<emphasis>supported</emphasis>"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:339
#, no-c-format
msgid "<literal><one-to-many></literal> (for <literal>inverse=\"true\"</literal> only)"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:347
#, no-c-format
msgid "table per concrete class (implicit polymorphism)"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:348
+#. Tag: entry
#, no-c-format
-msgid "<any>"
+msgid "<literal><any></literal>"
msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350 inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
+msgid "<emphasis>not supported</emphasis>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
+#. Tag: entry
#, no-c-format
-msgid "<many-to-any>"
+msgid "<literal><many-to-any></literal>"
msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:352
+#. Tag: entry
#, no-c-format
-msgid "s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+msgid "<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()</literal>"
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/performance.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/performance.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/performance.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1561 +1,1103 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
msgstr ""
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
msgstr ""
#. Tag: para
-#: performance.xml:34
#, no-c-format
msgid "Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve associated objects if the application needs to navigate the association. Fetch strategies can be declared in the O/R mapping metadata, or over-ridden by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
msgstr ""
#. Tag: para
-#: performance.xml:47
#, no-c-format
msgid "<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated instance or collection in the same <literal>SELECT</literal>, using an <literal>OUTER JOIN</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:54
#, no-c-format
msgid "<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is used to retrieve the associated entity or collection. Unless you explicitly disable lazy fetching by specifying <literal>lazy=\"false\"</literal>, this second select will only be executed when you access the association."
msgstr ""
#. Tag: para
-#: performance.xml:63
#, no-c-format
msgid "<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> is used to retrieve the associated collections for all entities retrieved in a previous query or fetch. Unless you explicitly disable lazy fetching by specifying <literal>lazy=\"false\"</literal>, this second select will only be executed when you access the association."
msgstr ""
#. Tag: para
-#: performance.xml:72
#, no-c-format
msgid "<emphasis>Batch fetching</emphasis>: an optimization strategy for select fetching. Hibernate retrieves a batch of entity instances or collections in a single <literal>SELECT</literal> by specifying a list of primary or foreign keys."
msgstr ""
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
msgstr ""
#. Tag: para
-#: performance.xml:87
#, no-c-format
msgid "<emphasis>Immediate fetching</emphasis>: an association, collection or attribute is fetched immediately when the owner is loaded."
msgstr ""
#. Tag: para
-#: performance.xml:93
#, no-c-format
msgid "<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when the application invokes an operation upon that collection. This is the default for collections."
msgstr ""
#. Tag: para
-#: performance.xml:100
#, no-c-format
msgid "<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements of the collection are accessed from the database as needed. Hibernate tries not to fetch the whole collection into memory unless absolutely needed. It is suitable for large collections."
msgstr ""
#. Tag: para
-#: performance.xml:108
#, no-c-format
msgid "<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched when a method other than the identifier getter is invoked upon the associated object."
msgstr ""
#. Tag: para
-#: performance.xml:115
#, no-c-format
msgid "<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is fetched when the instance variable is accessed. Compared to proxy fetching, this approach is less lazy; the association is fetched even when only the identifier is accessed. It is also more transparent, since no proxy is visible to the application. This approach requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
#. Tag: para
-#: performance.xml:125
#, no-c-format
msgid "<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued association is fetched when the instance variable is accessed. This approach requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
#. Tag: para
-#: performance.xml:134
#, no-c-format
msgid "We have two orthogonal notions here: <emphasis>when</emphasis> is the association fetched and <emphasis>how</emphasis> is it fetched. It is important that you do not confuse them. We use <literal>fetch</literal> to tune performance. We can use <literal>lazy</literal> to define a contract for what data is always available in any detached instance of a particular class."
msgstr ""
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
msgstr ""
#. Tag: para
-#: performance.xml:145
#, no-c-format
msgid "By default, Hibernate3 uses lazy select fetching for collections and lazy proxy fetching for single-valued associations. These defaults make sense for most associations in the majority of applications."
msgstr ""
#. Tag: para
-#: performance.xml:151
#, no-c-format
msgid "If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate will use the batch fetch optimization for lazy fetching. This optimization can also be enabled at a more granular level."
msgstr ""
#. Tag: para
-#: performance.xml:158
#, no-c-format
msgid "Please be aware that access to a lazy association outside of the context of an open Hibernate session will result in an exception. For example:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:164
-#, no-c-format
-msgid ""
- "<![CDATA[s = sessions.openSession();\n"
- "Transaction tx = s.beginTransaction();\n"
- " \n"
- "User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
- " .setString(\"userName\", userName).uniqueResult();\n"
- "Map permissions = u.getPermissions();\n"
- "\n"
- "tx.commit();\n"
- "s.close();\n"
- "\n"
- "Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:166
#, no-c-format
msgid "Since the permissions collection was not initialized when the <literal>Session</literal> was closed, the collection will not be able to load its state. <emphasis>Hibernate does not support lazy initialization for detached objects</emphasis>. This can be fixed by moving the code that reads from the collection to just before the transaction is committed."
msgstr ""
#. Tag: para
-#: performance.xml:174
#, no-c-format
msgid "Alternatively, you can use a non-lazy collection or association, by specifying <literal>lazy=\"false\"</literal> for the association mapping. However, it is intended that lazy initialization be used for almost all collections and associations. If you define too many non-lazy associations in your object model, Hibernate will fetch the entire database into memory in every transaction."
msgstr ""
#. Tag: para
-#: performance.xml:183
#, no-c-format
msgid "On the other hand, you can use join fetching, which is non-lazy by nature, instead of select fetching in a particular transaction. We will now explain how to customize the fetching strategy. In Hibernate3, the mechanisms for choosing a fetch strategy are identical for single-valued associations and collections."
msgstr ""
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr ""
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid "Select fetching (the default) is extremely vulnerable to N+1 selects problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"permissions\" \n"
- " fetch=\"join\">\n"
- " <key column=\"userId\"/>\n"
- " <one-to-many class=\"Permission\"/>\n"
- "</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid "The <literal>fetch</literal> strategy defined in the mapping document affects:"
msgstr ""
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr ""
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
msgstr ""
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
msgstr ""
#. Tag: para
-#: performance.xml:232
#, no-c-format
msgid "Irrespective of the fetching strategy you use, the defined non-lazy graph is guaranteed to be loaded into memory. This might, however, result in several immediate selects being used to execute a particular HQL query."
msgstr ""
#. Tag: para
-#: performance.xml:238
#, no-c-format
msgid "Usually, the mapping document is not used to customize fetching. Instead, we keep the default behavior, and override it for a particular transaction, using <literal>left join fetch</literal> in HQL. This tells Hibernate to fetch the association eagerly in the first select, using an outer join. In the <literal>Criteria</literal> query API, you would use <literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:247
#, no-c-format
msgid "If you want to change the fetching strategy used by <literal>get()</literal> or <literal>load()</literal>, you can use a <literal>Criteria</literal> query. For example:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:253
-#, no-c-format
-msgid ""
- "<![CDATA[User user = (User) session.createCriteria(User.class)\n"
- " .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
- " .add( Restrictions.idEq(userId) )\n"
- " .uniqueResult();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:255
#, no-c-format
msgid "This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan\"."
msgstr ""
#. Tag: para
-#: performance.xml:259
#, no-c-format
msgid "A completely different approach to problems with N+1 selects is to use the second-level cache."
msgstr ""
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
msgstr ""
#. Tag: para
-#: performance.xml:269
#, no-c-format
msgid "Lazy fetching for collections is implemented using Hibernate's own implementation of persistent collections. However, a different mechanism is needed for lazy behavior in single-ended associations. The target entity of the association must be proxied. Hibernate implements lazy initializing proxies for persistent objects using runtime bytecode enhancement which is accessed via the CGLIB library."
msgstr ""
#. Tag: para
-#: performance.xml:277
#, no-c-format
msgid "At startup, Hibernate3 generates proxies by default for all persistent classes and uses them to enable lazy fetching of <literal>many-to-one</literal> and <literal>one-to-one</literal> associations."
msgstr ""
#. Tag: para
-#: performance.xml:283
#, no-c-format
msgid "The mapping file may declare an interface to use as the proxy interface for that class, with the <literal>proxy</literal> attribute. By default, Hibernate uses a subclass of the class. <emphasis>The proxied class must implement a default constructor with at least package visibility. This constructor is recommended for all persistent classes</emphasis>."
msgstr ""
#. Tag: para
-#: performance.xml:290
#, no-c-format
msgid "There are potential problems to note when extending this approach to polymorphic classes.For example:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
- " ......\n"
- " <subclass name=\"DomesticCat\">\n"
- " .....\n"
- " </subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid "Firstly, instances of <literal>Cat</literal> will never be castable to <literal>DomesticCat</literal>, even if the underlying instance is an instance of <literal>DomesticCat</literal>:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a proxy (does not hit the db)\n"
- "if ( cat.isDomesticCat() ) { // hit the db to initialize the proxy\n"
- " DomesticCat dc = (DomesticCat) cat; // Error!\n"
- " ....\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:304
#, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a Cat proxy\n"
- "DomesticCat dc = \n"
- " (DomesticCat) session.load(DomesticCat.class, id); // acquire new DomesticCat proxy!\n"
- "System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid "However, the situation is not quite as bad as it looks. Even though we now have two references to different proxy objects, the underlying instance will still be the same object:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:315
-#, no-c-format
-msgid ""
- "<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
- "System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:317
#, no-c-format
msgid "Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or a class with any <literal>final</literal> methods."
msgstr ""
#. Tag: para
-#: performance.xml:322
#, no-c-format
msgid "Finally, if your persistent object acquires any resources upon instantiation (e.g. in initializers or default constructor), then those resources will also be acquired by the proxy. The proxy class is an actual subclass of the persistent class."
msgstr ""
#. Tag: para
-#: performance.xml:328
#, no-c-format
msgid "These problems are all due to fundamental limitations in Java's single inheritance model. To avoid these problems your persistent classes must each implement an interface that declares its business methods. You should specify these interfaces in the mapping file where <literal>CatImpl</literal> implements the interface <literal>Cat</literal> and <literal>DomesticCatImpl</literal> implements the interface <literal>DomesticCat</literal>. For example:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:336
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
- " ......\n"
- " <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
- " .....\n"
- " </subclass>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:338
#, no-c-format
msgid "Then proxies for instances of <literal>Cat</literal> and <literal>DomesticCat</literal> can be returned by <literal>load()</literal> or <literal>iterate()</literal>."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
- "Iterator iter = session.createQuery(\"from CatImpl as cat where cat.name='fritz'\").iterate();\n"
- "Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: performance.xml:347
#, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
msgstr ""
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid "Relationships are also lazily initialized. This means you must declare any properties to be of type <literal>Cat</literal>, not <literal>CatImpl</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:357
#, no-c-format
msgid "Certain operations do <emphasis>not</emphasis> require proxy initialization:"
msgstr ""
#. Tag: para
-#: performance.xml:363
#, no-c-format
msgid "<literal>equals()</literal>: if the persistent class does not override <literal>equals()</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:369
#, no-c-format
msgid "<literal>hashCode()</literal>: if the persistent class does not override <literal>hashCode()</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
msgstr ""
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid "Hibernate will detect persistent classes that override <literal>equals()</literal> or <literal>hashCode()</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:386
#, no-c-format
msgid "By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default <literal>lazy=\"proxy\"</literal>, you can avoid problems associated with typecasting. However, buildtime bytecode instrumentation is required, and all operations will result in immediate proxy initialization."
msgstr ""
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
msgstr ""
#. Tag: para
-#: performance.xml:398
#, no-c-format
msgid "A <literal>LazyInitializationException</literal> will be thrown by Hibernate if an uninitialized collection or proxy is accessed outside of the scope of the <literal>Session</literal>, i.e., when the entity owning the collection or having the reference to the proxy is in the detached state."
msgstr ""
#. Tag: para
-#: performance.xml:404
#, no-c-format
msgid "Sometimes a proxy or collection needs to be initialized before closing the <literal>Session</literal>. You can force initialization by calling <literal>cat.getSex()</literal> or <literal>cat.getKittens().size()</literal>, for example. However, this can be confusing to readers of the code and it is not convenient for generic code."
msgstr ""
#. Tag: para
-#: performance.xml:411
#, no-c-format
msgid "The static methods <literal>Hibernate.initialize()</literal> and <literal>Hibernate.isInitialized()</literal>, provide the application with a convenient way of working with lazily initialized collections or proxies. <literal>Hibernate.initialize(cat)</literal> will force the initialization of a proxy, <literal>cat</literal>, as long as its <literal>Session</literal> is still open. <literal>Hibernate.initialize( cat.getKittens() )</literal> has a similar effect for the collection of kittens."
msgstr ""
#. Tag: para
-#: performance.xml:420
#, no-c-format
msgid "Another option is to keep the <literal>Session</literal> open until all required collections and proxies have been loaded. In some application architectures, particularly where the code that accesses data using Hibernate, and the code that uses it are in different application layers or different physical processes, it can be a problem to ensure that the <literal>Session</literal> is open when a collection is initialized. There are two basic ways to deal with this issue:"
msgstr ""
#. Tag: para
-#: performance.xml:431
#, no-c-format
msgid "In a web-based application, a servlet filter can be used to close the <literal>Session</literal> only at the end of a user request, once the rendering of the view is complete (the <emphasis>Open Session in View</emphasis> pattern). Of course, this places heavy demands on the correctness of the exception handling of your application infrastructure. It is vitally important that the <literal>Session</literal> is closed and the transaction ended before returning to the user, even when an exception occurs during rendering of the view. See the Hibernate Wiki for examples of this \"Open Session in View\" pattern."
msgstr ""
#. Tag: para
-#: performance.xml:444
#, no-c-format
msgid "In an application with a separate business tier, the business logic must \"prepare\" all collections that the web tier needs before returning. This means that the business tier should load all the data and return all the data already initialized to the presentation/web tier that is required for a particular use case. Usually, the application calls <literal>Hibernate.initialize()</literal> for each collection that will be needed in the web tier (this call must occur before the session is closed) or retrieves the collection eagerly using a Hibernate query with a <literal>FETCH</literal> clause or a <literal>FetchMode.JOIN</literal> in <literal>Criteria</literal>. This is usually easier if you adopt the <emphasis>Command</emphasis> pattern instead of a <emphasis>Session Facade</emphasis>."
msgstr ""
#. Tag: para
-#: performance.xml:459
#, no-c-format
msgid "You can also attach a previously loaded object to a new <literal>Session</literal> with <literal>merge()</literal> or <literal>lock()</literal> before accessing uninitialized collections or other proxies. Hibernate does not, and certainly <emphasis>should</emphasis> not, do this automatically since it would introduce impromptu transaction semantics."
msgstr ""
#. Tag: para
-#: performance.xml:469
#, no-c-format
msgid "Sometimes you do not want to initialize a large collection, but still need some information about it, like its size, for example, or a subset of the data."
msgstr ""
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid "You can use a collection filter to get the size of a collection without initializing it:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid "<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid "The <literal>createFilter()</literal> method is also used to efficiently retrieve subsets of a collection without needing to initialize the whole collection:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid "<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0).setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr ""
#. Tag: para
-#: performance.xml:492
#, no-c-format
msgid "Using batch fetching, Hibernate can load several uninitialized proxies if one proxy is accessed. Batch fetching is an optimization of the lazy select fetching strategy. There are two ways you can configure batch fetching: on the class level and the collection level."
msgstr ""
#. Tag: para
-#: performance.xml:498
#, no-c-format
msgid "Batch fetching for classes/entities is easier to understand. Consider the following example: at runtime you have 25 <literal>Cat</literal> instances loaded in a <literal>Session</literal>, and each <literal>Cat</literal> has a reference to its <literal>owner</literal>, a <literal>Person</literal>. The <literal>Person</literal> class is mapped with a proxy, <literal>lazy=\"true\"</literal>. If you now iterate through all cats and call <literal>getOwner()</literal> on each, Hibernate will, by default, execute 25 <literal>SELECT</literal> statements to retrieve the proxied owners. You can tune this behavior by specifying a <literal>batch-size</literal> in the mapping of <literal>Person</literal>:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:510
#, no-c-format
msgid "Hibernate will now execute only three queries: the pattern is 10, 10, 5."
msgstr ""
#. Tag: para
-#: performance.xml:514
#, no-c-format
msgid "You can also enable batch fetching of collections. For example, if each <literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, and 10 persons are currently loaded in the <literal>Session</literal>, iterating through all persons will generate 10 <literal>SELECT</literal>s, one for every call to <literal>getCats()</literal>. If you enable batch fetching for the <literal>cats</literal> collection in the mapping of <literal>Person</literal>, Hibernate can pre-fetch collections:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <set name=\"cats\" batch-size=\"3\">\n"
- " ...\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid "With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 collections in four <literal>SELECT</literal>s. Again, the value of the attribute depends on the expected number of uninitialized collections in a particular <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:531
#, no-c-format
msgid "Batch fetching of collections is particularly useful if you have a nested tree of items, i.e. the typical bill-of-materials pattern. However, a <emphasis>nested set</emphasis> or a <emphasis>materialized path</emphasis> might be a better option for read-mostly trees."
msgstr ""
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
msgstr ""
#. Tag: para
-#: performance.xml:542
#, no-c-format
msgid "If one lazy collection or single-valued proxy has to be fetched, Hibernate will load all of them, re-running the original query in a subselect. This works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
#. Tag: title
-#: performance.xml:553
#, no-c-format
-msgid "Using lazy property fetching"
+msgid "Fetch profiles"
msgstr ""
#. Tag: para
-#: performance.xml:555
#, no-c-format
-msgid "Hibernate3 supports the lazy fetching of individual properties. This optimization technique is also known as <emphasis>fetch groups</emphasis>. Please note that this is mostly a marketing feature; optimizing row reads is much more important than optimization of column reads. However, only loading some properties of a class could be useful in extreme cases. For example, when legacy tables have hundreds of columns and the data model cannot be improved."
+msgid "Another way to affect the fetching strategy for loading associated objects is through something called a fetch profile, which is a named configuration associated with the <interfacename>org.hibernate.SessionFactory</interfacename> but enabled, by name, on the <interfacename>org.hibernate.Session</interfacename>. Once enabled on a <interfacename>org.hibernate.Session</interfacename>, the fetch profile wull be in affect for that <interfacename>org.hibernate.Session</interfacename> until it is explicitly disabled."
msgstr ""
#. Tag: para
-#: performance.xml:564
#, no-c-format
-msgid "To enable lazy property loading, set the <literal>lazy</literal> attribute on your particular property mappings:"
+msgid "So what does that mean? Well lets explain that by way of an example. Say we have the following mappings:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Document\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
- " <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true\"/>\n"
- " <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/>\n"
- "</class>]]>"
+msgid "Now normally when you get a reference to a particular customer, that customer's set of orders will be lazy meaning we will not yet have loaded those orders from the database. Normally this is a good thing. Now lets say that you have a certain use case where it is more efficient to load the customer and their orders together. One way certainly is to use \"dynamic fetching\" strategies via an HQL or criteria queries. But another option is to use a fetch profile to achieve that. Just add the following to your mapping:"
msgstr ""
#. Tag: para
-#: performance.xml:571
#, no-c-format
-msgid "Lazy property loading requires buildtime bytecode instrumentation. If your persistent classes are not enhanced, Hibernate will ignore lazy property settings and return to immediate fetching."
+msgid "or even:"
msgstr ""
#. Tag: para
-#: performance.xml:577
#, no-c-format
-msgid "For bytecode instrumentation, use the following Ant task:"
+msgid "Now the following code will actually load both the customer <emphasis>and their orders</emphasis>:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
- " <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument.InstrumentTask\">\n"
- " <classpath path=\"${jar.path}\"/>\n"
- " <classpath path=\"${classes.dir}\"/>\n"
- " <classpath refid=\"lib.class.path\"/>\n"
- " </taskdef>\n"
- "\n"
- " <instrument verbose=\"true\">\n"
- " <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
- " <include name=\"*.class\"/>\n"
- " </fileset>\n"
- " </instrument>\n"
- "</target>]]>"
+msgid "Currently only join style fetch profiles are supported, but they plan is to support additional styles. See <ulink url=\"http://opensource.atlassian.com/projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
msgstr ""
+#. Tag: title
+#, no-c-format
+msgid "Using lazy property fetching"
+msgstr ""
+
#. Tag: para
-#: performance.xml:583
#, no-c-format
+msgid "Hibernate3 supports the lazy fetching of individual properties. This optimization technique is also known as <emphasis>fetch groups</emphasis>. Please note that this is mostly a marketing feature; optimizing row reads is much more important than optimization of column reads. However, only loading some properties of a class could be useful in extreme cases. For example, when legacy tables have hundreds of columns and the data model cannot be improved."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "To enable lazy property loading, set the <literal>lazy</literal> attribute on your particular property mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Lazy property loading requires buildtime bytecode instrumentation. If your persistent classes are not enhanced, Hibernate will ignore lazy property settings and return to immediate fetching."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "For bytecode instrumentation, use the following Ant task:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid "A different way of avoiding unnecessary column reads, at least for read-only transactions, is to use the projection features of HQL or Criteria queries. This avoids the need for buildtime bytecode processing and is certainly a preferred solution."
msgstr ""
#. Tag: para
-#: performance.xml:590
#, no-c-format
msgid "You can force the usual eager fetching of properties using <literal>fetch all properties</literal> in HQL."
msgstr ""
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
msgstr ""
#. Tag: para
-#: performance.xml:602
#, no-c-format
msgid "A Hibernate <literal>Session</literal> is a transaction-level cache of persistent data. It is possible to configure a cluster or JVM-level (<literal>SessionFactory</literal>-level) cache on a class-by-class and collection-by-collection basis. You can even plug in a clustered cache. Be aware that caches are not aware of changes made to the persistent store by another application. They can, however, be configured to regularly expire cached data."
msgstr ""
#. Tag: para
-#: performance.xml:610
#, no-c-format
msgid "You have the option to tell Hibernate which caching implementation to use by specifying the name of a class that implements <literal>org.hibernate.cache.CacheProvider</literal> using the property <literal>hibernate.cache.provider_class</literal>. Hibernate is bundled with a number of built-in integrations with the open-source cache providers that are listed below. You can also implement your own and plug it in as outlined above. Note that versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
msgstr ""
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr ""
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
msgstr ""
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr ""
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
msgstr ""
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
msgstr ""
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, no-c-format
msgid "Hashtable (not intended for production use)"
msgstr ""
-#. Tag: literal
-#: performance.xml:640
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr ""
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657 performance.xml:828 performance.xml:829 performance.xml:830 performance.xml:835 performance.xml:836 performance.xml:837 performance.xml:842 performance.xml:843 performance.xml:844 performance.xml:849 performance.xml:850 performance.xml:856 performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
+msgid "yes"
msgstr ""
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr ""
-#. Tag: literal
-#: performance.xml:647
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
msgstr ""
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr ""
-#. Tag: literal
-#: performance.xml:654
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr ""
-#. Tag: literal
-#: performance.xml:661
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
msgstr ""
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
msgstr ""
#. Tag: entry
-#: performance.xml:667 performance.xml:855
#, no-c-format
msgid "JBoss Cache 1.x"
msgstr ""
-#. Tag: literal
-#: performance.xml:668
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
msgstr ""
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
msgstr ""
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
msgstr ""
#. Tag: entry
-#: performance.xml:674 performance.xml:862
#, no-c-format
msgid "JBoss Cache 2"
msgstr ""
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
msgstr ""
#. Tag: entry
-#: performance.xml:677
#, no-c-format
msgid "yes (replication or invalidation)"
msgstr ""
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
msgstr ""
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid "The <literal><cache></literal> element of a class or collection mapping has the following form:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
- "<![CDATA[<cache \n"
- " usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
- " region=\"RegionName\"\n"
- " include=\"all|non-lazy\"\n"
- "/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid "<literal>usage</literal> (required) specifies the caching strategy: <literal>transactional</literal>, <literal>read-write</literal>, <literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:710
#, no-c-format
msgid "<literal>region</literal> (optional: defaults to the class or collection role name): specifies the name of the second level cache region"
msgstr ""
#. Tag: para
-#: performance.xml:717
#, no-c-format
msgid "<literal>include</literal> (optional: defaults to <literal>all</literal>) <literal>non-lazy</literal>: specifies that properties of the entity mapped with <literal>lazy=\"true\"</literal> cannot be cached when attribute-level lazy fetching is enabled"
msgstr ""
#. Tag: para
-#: performance.xml:727
#, no-c-format
msgid "Alternatively, you can specify <literal><class-cache></literal> and <literal><collection-cache></literal> elements in <literal>hibernate.cfg.xml</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid "The <literal>usage</literal> attribute specifies a <emphasis>cache concurrency strategy</emphasis>."
msgstr ""
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
msgstr ""
#. Tag: para
-#: performance.xml:741
#, no-c-format
msgid "If your application needs to read, but not modify, instances of a persistent class, a <literal>read-only</literal> cache can be used. This is the simplest and optimal performing strategy. It is even safe for use in a cluster."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
- " <cache usage=\"read-only\"/>\n"
- " ....\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
msgstr ""
#. Tag: para
-#: performance.xml:755
#, no-c-format
msgid "If the application needs to update data, a <literal>read-write</literal> cache might be appropriate. This cache strategy should never be used if serializable transaction isolation level is required. If the cache is used in a JTA environment, you must specify the property <literal>hibernate.transaction.manager_lookup_class</literal> and naming a strategy for obtaining the JTA <literal>TransactionManager</literal>. In other environments, you should ensure that the transaction is completed when <literal>Session.close()</literal> or <literal>Session.disconnect()</literal> is called. If you want to use this strategy in a cluster, you should ensure that the underlying cache implementation supports locking. The built-in cache providers <emphasis>do not</emphasis> support locking."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"eg.Cat\" .... >\n"
- " <cache usage=\"read-write\"/>\n"
- " ....\n"
- " <set name=\"kittens\" ... >\n"
- " <cache usage=\"read-write\"/>\n"
- " ....\n"
- " </set>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
msgstr ""
#. Tag: para
-#: performance.xml:773
#, no-c-format
msgid "If the application only occasionally needs to update data (i.e. if it is extremely unlikely that two transactions would try to update the same item simultaneously), and strict transaction isolation is not required, a <literal>nonstrict-read-write</literal> cache might be appropriate. If the cache is used in a JTA environment, you must specify <literal>hibernate.transaction.manager_lookup_class</literal>. In other environments, you should ensure that the transaction is completed when <literal>Session.close()</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
msgstr ""
#. Tag: para
-#: performance.xml:787
#, no-c-format
msgid "The <literal>transactional</literal> cache strategy provides support for fully transactional cache providers such as JBoss TreeCache. Such a cache can only be used in a JTA environment and you must specify <literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
#. Tag: title
-#: performance.xml:796
#, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
msgstr ""
#. Tag: para
-#: performance.xml:799
#, no-c-format
msgid "None of the cache providers support all of the cache concurrency strategies."
msgstr ""
#. Tag: para
-#: performance.xml:804
#, no-c-format
msgid "The following table shows which providers are compatible with which concurrency strategies."
msgstr ""
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
msgstr ""
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr ""
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
msgstr ""
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
msgstr ""
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr ""
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
msgstr ""
#. Tag: para
-#: performance.xml:879
#, no-c-format
msgid "Whenever you pass an object to <literal>save()</literal>, <literal>update()</literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an object using <literal>load()</literal>, <literal>get()</literal>, <literal>list()</literal>, <literal>iterate()</literal> or <literal>scroll()</literal>, that object is added to the internal cache of the <literal>Session</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:886
#, no-c-format
msgid "When <literal>flush()</literal> is subsequently called, the state of that object will be synchronized with the database. If you do not want this synchronization to occur, or if you are processing a huge number of objects and need to manage memory efficiently, the <literal>evict()</literal> method can be used to remove the object and its collections from the first-level cache."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
- "<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll(); //a huge result set\n"
- "while ( cats.next() ) {\n"
- " Cat cat = (Cat) cats.get(0);\n"
- " doSomethingWithACat(cat);\n"
- " sess.evict(cat);\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid "The <literal>Session</literal> also provides a <literal>contains()</literal> method to determine if an instance belongs to the session cache."
msgstr ""
#. Tag: para
-#: performance.xml:901
#, no-c-format
msgid "To evict all objects from the session cache, call <literal>Session.clear()</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid "For the second-level cache, there are methods defined on <literal>SessionFactory</literal> for evicting the cached state of an instance, entire class, collection instance or entire collection role."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:911
-#, no-c-format
-msgid ""
- "<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
- "sessionFactory.evict(Cat.class); //evict all Cats\n"
- "sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular collection of kittens\n"
- "sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten collections]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:913
#, no-c-format
msgid "The <literal>CacheMode</literal> controls how a particular session interacts with the second-level cache:"
msgstr ""
#. Tag: para
-#: performance.xml:920
#, no-c-format
msgid "<literal>CacheMode.NORMAL</literal>: will read items from and write items to the second-level cache"
msgstr ""
#. Tag: para
-#: performance.xml:925
#, no-c-format
msgid "<literal>CacheMode.GET</literal>: will read items from the second-level cache. Do not write to the second-level cache except when updating data"
msgstr ""
#. Tag: para
-#: performance.xml:931
#, no-c-format
msgid "<literal>CacheMode.PUT</literal>: will write items to the second-level cache. Do not read from the second-level cache"
msgstr ""
#. Tag: para
-#: performance.xml:937
#, no-c-format
msgid "<literal>CacheMode.REFRESH</literal>: will write items to the second-level cache. Do not read from the second-level cache. Bypass the effect of <literal>hibernate.cache.use_minimal_puts</literal> forcing a refresh of the second-level cache for all items read from the database"
msgstr ""
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid "To browse the contents of a second-level or query cache region, use the <literal>Statistics</literal> API:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
- " .getSecondLevelCacheStatistics(regionName)\n"
- " .getEntries();]]>"
+msgid "You will need to enable statistics and, optionally, force Hibernate to keep the cache entries in a more readable format:"
msgstr ""
-#. Tag: para
-#: performance.xml:952
+#. Tag: title
#, no-c-format
-msgid "You will need to enable statistics and, optionally, force Hibernate to keep the cache entries in a more readable format:"
+msgid "The Query Cache"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:957
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[hibernate.generate_statistics true\n"
- "hibernate.cache.use_structured_entries true]]>"
+msgid "Query result sets can also be cached. This is only useful for queries that are run frequently with the same parameters."
msgstr ""
#. Tag: title
-#: performance.xml:962
#, no-c-format
-msgid "The Query Cache"
+msgid "Enabling query caching"
msgstr ""
#. Tag: para
-#: performance.xml:964
#, no-c-format
-msgid "Query result sets can also be cached. This is only useful for queries that are run frequently with the same parameters. You will first need to enable the query cache:"
+msgid "Caching of query results introduces some overhead in terms of your applications normal transactional processing. For example, if you cache results of a query against Person Hibernate will need to keep track of when those results should be invalidated because changes have been committed against Person. That, coupled with the fact that most applications simply gain no benefit from caching query results, leads Hibernate to disable caching of query results by default. To use query caching, you will first need to enable the query cache:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid "This setting creates two new cache regions:"
msgstr ""
#. Tag: para
-#: performance.xml:971
#, no-c-format
-msgid "This setting creates two new cache regions: one holding cached query result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other holding timestamps of the most recent updates to queryable tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that the query cache does not cache the state of the actual entities in the result set; it caches only identifier values and results of value type. The query cache should always be used in conjunction with the second-level cache."
+msgid "<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the cached query results"
msgstr ""
#. Tag: para
-#: performance.xml:981
#, no-c-format
-msgid "Most queries do not benefit from caching, so by default, queries are not cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. This call allows the query to look for existing cache results or add its results to the cache when it is executed."
+msgid "<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding timestamps of the most recent updates to queryable tables. These are used to validate the results as they are served from the query cache."
msgstr ""
#. Tag: para
-#: performance.xml:988
#, no-c-format
-msgid "If you require fine-grained control over query cache expiration policies, you can specify a named cache region for a particular query by calling <literal>Query.setCacheRegion()</literal>."
+msgid "If you configure your underlying cache implementation to use expiry or timeouts is is very important that the cache timeout of the underlying cache region for the UpdateTimestampsCache be set to a higher value than the timeouts of any of the query caches. In fact, we recommend that the the UpdateTimestampsCache region not be configured for expiry at all. Note, in particular, that an LRU cache expiry policy is never appropriate."
msgstr ""
-#. Tag: programlisting
-#: performance.xml:994
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger = :blogger\")\n"
- " .setEntity(\"blogger\", blogger)\n"
- " .setMaxResults(15)\n"
- " .setCacheable(true)\n"
- " .setCacheRegion(\"frontpages\")\n"
- " .list();]]>"
+msgid "As mentioned above, most queries do not benefit from caching or their results. So by default, individual queries are not cached even after enabling query caching. To enable results caching for a particular query, call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call allows the query to look for existing cache results or add its results to the cache when it is executed."
msgstr ""
#. Tag: para
-#: performance.xml:996
#, no-c-format
-msgid "If the query should force a refresh of its query cache region, you should call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is particularly useful in cases where underlying data may have been updated via a separate process (i.e., not modified through Hibernate) and allows the application to selectively refresh particular query result sets. This is a more efficient alternative to eviction of a query cache region via <literal>SessionFactory.evictQueries()</literal>."
+msgid "The query cache does not cache the state of the actual entities in the cache; it caches only identifier values and results of value type. For this reaso, the query cache should always be used in conjunction with the second-level cache for those entities expected to be cached as part of a query result cache (just as with collection caching)."
msgstr ""
#. Tag: title
-#: performance.xml:1008
#, no-c-format
+msgid "Query cache regions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "If you require fine-grained control over query cache expiration policies, you can specify a named cache region for a particular query by calling <literal>Query.setCacheRegion()</literal>."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "If you want to force the query cache to refresh one of its regions (disregard any cached results it finds there) you can use <literal>org.hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction with the region you have defined for the given query, Hibernate will selectively force the results cached in that particular region to be refreshed. This is particularly useful in cases where underlying data may have been updated via a separate process and is a far more efficient alternative to bulk eviction of the region via <literal>org.hibernate.SessionFactory.evictQueries()</literal>."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Understanding Collection performance"
msgstr ""
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid "In the previous sections we have covered collections and their applications. In this section we explore some more issues in relation to collections at runtime."
msgstr ""
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
msgstr ""
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
msgstr ""
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr ""
#. Tag: para
-#: performance.xml:1026
#, no-c-format
msgid "one-to-many associations"
msgstr ""
#. Tag: para
-#: performance.xml:1029
#, no-c-format
msgid "many-to-many associations"
msgstr ""
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid "This classification distinguishes the various table and foreign key relationships but does not tell us quite everything we need to know about the relational model. To fully understand the relational structure and performance characteristics, we must also consider the structure of the primary key that is used by Hibernate to update or delete collection rows. This suggests the following classification:"
msgstr ""
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr ""
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
msgstr ""
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
msgstr ""
#. Tag: para
-#: performance.xml:1054
#, no-c-format
msgid "All indexed collections (maps, lists, and arrays) have a primary key consisting of the <literal><key></literal> and <literal><index></literal> columns. In this case, collection updates are extremely efficient. The primary key can be efficiently indexed and a particular row can be efficiently located when Hibernate tries to update or delete it."
msgstr ""
#. Tag: para
-#: performance.xml:1062
#, no-c-format
msgid "Sets have a primary key consisting of <literal><key></literal> and element columns. This can be less efficient for some types of collection element, particularly composite elements or large text or binary fields, as the database may not be able to index a complex primary key as efficiently. However, for one-to-many or many-to-many associations, particularly in the case of synthetic identifiers, it is likely to be just as efficient. If you want <literal>SchemaExport</literal> to actually create the primary key of a <literal><set></literal>, you must declare all columns as <literal>not-null=\"true\"</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:1073
#, no-c-format
msgid "<literal><idbag></literal> mappings define a surrogate key, so they are efficient to update. In fact, they are the best case."
msgstr ""
#. Tag: para
-#: performance.xml:1078
#, no-c-format
msgid "Bags are the worst case since they permit duplicate element values and, as they have no index column, no primary key can be defined. Hibernate has no way of distinguishing between duplicate rows. Hibernate resolves this problem by completely removing in a single <literal>DELETE</literal> and recreating the collection whenever it changes. This can be inefficient."
msgstr ""
#. Tag: para
-#: performance.xml:1086
#, no-c-format
msgid "For a one-to-many association, the \"primary key\" may not be the physical primary key of the database table. Even in this case, the above classification is still useful. It reflects how Hibernate \"locates\" individual rows of the collection."
msgstr ""
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid "Lists, maps, idbags and sets are the most efficient collections to update"
msgstr ""
#. Tag: para
-#: performance.xml:1098
#, no-c-format
msgid "From the discussion above, it should be clear that indexed collections and sets allow the most efficient operation in terms of adding, removing and updating elements."
msgstr ""
#. Tag: para
-#: performance.xml:1104
#, no-c-format
msgid "There is, arguably, one more advantage that indexed collections have over sets for many-to-many associations or collections of values. Because of the structure of a <literal>Set</literal>, Hibernate does not <literal>UPDATE</literal> a row when an element is \"changed\". Changes to a <literal>Set</literal> always work via <literal>INSERT</literal> and <literal>DELETE</literal> of individual rows. Once again, this consideration does not apply to one-to-many associations."
msgstr ""
#. Tag: para
-#: performance.xml:1113
#, no-c-format
msgid "After observing that arrays cannot be lazy, you can conclude that lists, maps and idbags are the most performant (non-inverse) collection types, with sets not far behind. You can expect sets to be the most common kind of collection in Hibernate applications. This is because the \"set\" semantics are most natural in the relational model."
msgstr ""
#. Tag: para
-#: performance.xml:1121
#, no-c-format
msgid "However, in well-designed Hibernate domain models, most collections are in fact one-to-many associations with <literal>inverse=\"true\"</literal>. For these associations, the update is handled by the many-to-one end of the association, and so considerations of collection update performance simply do not apply."
msgstr ""
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
msgstr ""
#. Tag: para
-#: performance.xml:1133
#, no-c-format
msgid "There is a particular case, however, in which bags, and also lists, are much more performant than sets. For a collection with <literal>inverse=\"true\"</literal>, the standard bidirectional one-to-many relationship idiom, for example, we can add elements to a bag or list without needing to initialize (fetch) the bag elements. This is because, unlike a <literal>set</literal>, <literal>Collection.add()</literal> or <literal>Collection.addAll()</literal> must always return true for a bag or <literal>List</literal>. This can make the following common code much faster:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
- "<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
- "Child c = new Child();\n"
- "c.setParent(p);\n"
- "p.getChildren().add(c); //no need to fetch the collection!\n"
- "sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
msgstr ""
#. Tag: para
-#: performance.xml:1150
#, no-c-format
msgid "Deleting collection elements one by one can sometimes be extremely inefficient. Hibernate knows not to do that in the case of an newly-empty collection (if you called <literal>list.clear()</literal>, for example). In this case, Hibernate will issue a single <literal>DELETE</literal>."
msgstr ""
#. Tag: para
-#: performance.xml:1157
#, no-c-format
msgid "Suppose you added a single element to a collection of size twenty and then remove two elements. Hibernate will issue one <literal>INSERT</literal> statement and two <literal>DELETE</literal> statements, unless the collection is a bag. This is certainly desirable."
msgstr ""
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid "However, suppose that we remove eighteen elements, leaving two and then add thee new elements. There are two possible ways to proceed"
msgstr ""
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
msgstr ""
#. Tag: para
-#: performance.xml:1173
#, no-c-format
msgid "remove the whole collection in one SQL <literal>DELETE</literal> and insert all five current elements one by one"
msgstr ""
#. Tag: para
-#: performance.xml:1178
#, no-c-format
msgid "Hibernate cannot know that the second option is probably quicker. It would probably be undesirable for Hibernate to be that intuitive as such behavior might confuse database triggers, etc."
msgstr ""
#. Tag: para
-#: performance.xml:1184
#, no-c-format
msgid "Fortunately, you can force this behavior (i.e. the second strategy) at any time by discarding (i.e. dereferencing) the original collection and returning a newly instantiated collection with all the current elements."
msgstr ""
#. Tag: para
-#: performance.xml:1190
#, no-c-format
msgid "One-shot-delete does not apply to collections mapped <literal>inverse=\"true\"</literal>."
msgstr ""
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
msgstr ""
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid "Optimization is not much use without monitoring and access to performance numbers. Hibernate provides a full range of figures about its internal operations. Statistics in Hibernate are available per <literal>SessionFactory</literal>."
msgstr ""
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
msgstr ""
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid "You can access <literal>SessionFactory</literal> metrics in two ways. Your first option is to call <literal>sessionFactory.getStatistics()</literal> and read or display the <literal>Statistics</literal> yourself."
msgstr ""
#. Tag: para
-#: performance.xml:1216
#, no-c-format
msgid "Hibernate can also use JMX to publish metrics if you enable the <literal>StatisticsService</literal> MBean. You can enable a single MBean for all your <literal>SessionFactory</literal> or one per factory. See the following code for minimalistic configuration examples:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:1223
-#, no-c-format
-msgid ""
- "<![CDATA[// MBean service registration for a specific SessionFactory\n"
- "Hashtable tb = new Hashtable();\n"
- "tb.put(\"type\", \"statistics\");\n"
- "tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
- "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
- "\n"
- "StatisticsService stats = new StatisticsService(); // MBean implementation\n"
- "stats.setSessionFactory(sessionFactory); // Bind the stats to a SessionFactory\n"
- "server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
- "<![CDATA[// MBean service registration for all SessionFactory's\n"
- "Hashtable tb = new Hashtable();\n"
- "tb.put(\"type\", \"statistics\");\n"
- "tb.put(\"sessionFactory\", \"all\");\n"
- "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
- "\n"
- "StatisticsService stats = new StatisticsService(); // MBean implementation\n"
- "server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:1228
#, no-c-format
msgid "You can activate and deactivate the monitoring for a <literal>SessionFactory</literal>:"
msgstr ""
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid "at configuration time, set <literal>hibernate.generate_statistics</literal> to <literal>false</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid "at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> or <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
msgstr ""
#. Tag: para
-#: performance.xml:1247
#, no-c-format
msgid "Statistics can be reset programmatically using the <literal>clear()</literal> method. A summary can be sent to a logger (info level) using the <literal>logSummary()</literal> method."
msgstr ""
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
msgstr ""
#. Tag: para
-#: performance.xml:1258
#, no-c-format
msgid "Hibernate provides a number of metrics, from basic information to more specialized information that is only relevant in certain scenarios. All available counters are described in the <literal>Statistics</literal> interface API, in three categories:"
msgstr ""
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid "Metrics related to the general <literal>Session</literal> usage, such as number of open sessions, retrieved JDBC connections, etc."
msgstr ""
#. Tag: para
-#: performance.xml:1271
#, no-c-format
msgid "Metrics related to the entities, collections, queries, and caches as a whole (aka global metrics)."
msgstr ""
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid "Detailed metrics related to a particular entity, collection, query or cache region."
msgstr ""
#. Tag: para
-#: performance.xml:1284
#, no-c-format
msgid "For example, you can check the cache hit, miss, and put ratio of entities, collections and queries, and the average time a query needs. Be aware that the number of milliseconds is subject to approximation in Java. Hibernate is tied to the JVM precision and on some platforms this might only be accurate to 10 seconds."
msgstr ""
#. Tag: para
-#: performance.xml:1291
#, no-c-format
msgid "Simple getters are used to access the global metrics (i.e. not tied to a particular entity, collection, cache region, etc.). You can access the metrics of a particular entity, collection or cache region through its name, and through its HQL or SQL representation for queries. Please refer to the <literal>Statistics</literal>, <literal>EntityStatistics</literal>, <literal>CollectionStatistics</literal>, <literal>SecondLevelCacheStatistics</literal>, and <literal>QueryStatistics</literal> API Javadoc for more information. The following code is a simple example:"
msgstr ""
-#. Tag: programlisting
-#: performance.xml:1301
-#, no-c-format
-msgid ""
- "<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
- "\n"
- "double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
- "double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
- "double queryCacheHitRatio =\n"
- " queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
- "\n"
- "log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
- "\n"
- "EntityStatistics entityStats =\n"
- " stats.getEntityStatistics( Cat.class.getName() );\n"
- "long changes =\n"
- " entityStats.getInsertCount()\n"
- " + entityStats.getUpdateCount()\n"
- " + entityStats.getDeleteCount();\n"
- "log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:1303
#, no-c-format
msgid "You can work on all entities, collections, queries and region caches, by retrieving the list of names of entities, collections, queries and region caches using the following methods: <literal>getQueries()</literal>, <literal>getEntityNames()</literal>, <literal>getCollectionRoleNames()</literal>, and <literal>getSecondLevelCacheRegionNames()</literal>."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/persistent_classes.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/persistent_classes.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/persistent_classes.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,709 +1,283 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:31
#, no-c-format
msgid "Persistent classes are classes in an application that implement the entities of the business problem (e.g. Customer and Order in an E-commerce application). Not all instances of a persistent class are considered to be in the persistent state. For example, an instance can instead be transient or detached."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:38
#, no-c-format
msgid "Hibernate works best if these classes follow some simple rules, also known as the Plain Old Java Object (POJO) programming model. However, none of these rules are hard requirements. Indeed, Hibernate3 assumes very little about the nature of your persistent objects. You can express a domain model in other ways (using trees of <literal>Map</literal> instances, for example)."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:49
#, no-c-format
msgid "Most Java applications require a persistent class representing felines. For example:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "import java.util.Set;\n"
- "import java.util.Date;\n"
- "\n"
- "public class Cat {\n"
- " private Long id; // identifier\n"
- "\n"
- " private Date birthdate;\n"
- " private Color color;\n"
- " private char sex;\n"
- " private float weight;\n"
- " private int litterId;\n"
- "\n"
- " private Cat mother;\n"
- " private Set kittens = new HashSet();\n"
- "\n"
- " private void setId(Long id) {\n"
- " this.id=id;\n"
- " }\n"
- " public Long getId() {\n"
- " return id;\n"
- " }\n"
- "\n"
- " void setBirthdate(Date date) {\n"
- " birthdate = date;\n"
- " }\n"
- " public Date getBirthdate() {\n"
- " return birthdate;\n"
- " }\n"
- "\n"
- " void setWeight(float weight) {\n"
- " this.weight = weight;\n"
- " }\n"
- " public float getWeight() {\n"
- " return weight;\n"
- " }\n"
- "\n"
- " public Color getColor() {\n"
- " return color;\n"
- " }\n"
- " void setColor(Color color) {\n"
- " this.color = color;\n"
- " }\n"
- "\n"
- " void setSex(char sex) {\n"
- " this.sex=sex;\n"
- " }\n"
- " public char getSex() {\n"
- " return sex;\n"
- " }\n"
- "\n"
- " void setLitterId(int id) {\n"
- " this.litterId = id;\n"
- " }\n"
- " public int getLitterId() {\n"
- " return litterId;\n"
- " }\n"
- "\n"
- " void setMother(Cat mother) {\n"
- " this.mother = mother;\n"
- " }\n"
- " public Cat getMother() {\n"
- " return mother;\n"
- " }\n"
- " void setKittens(Set kittens) {\n"
- " this.kittens = kittens;\n"
- " }\n"
- " public Set getKittens() {\n"
- " return kittens;\n"
- " }\n"
- " \n"
- " // addKitten not needed by Hibernate\n"
- " public void addKitten(Cat kitten) {\n"
- " kitten.setMother(this);\n"
- " kitten.setLitterId( kittens.size() ); \n"
- " kittens.add(kitten);\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid "The four main rules of persistent classes are explored in more detail in the following sections."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:63
#, no-c-format
msgid "<literal>Cat</literal> has a no-argument constructor. All persistent classes must have a default constructor (which can be non-public) so that Hibernate can instantiate them using <literal>Constructor.newInstance()</literal>. It is recommended that you have a default constructor with at least <emphasis>package</emphasis> visibility for runtime proxy generation in Hibernate."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:75
#, no-c-format
msgid "<literal>Cat</literal> has a property called <literal>id</literal>. This property maps to the primary key column of a database table. The property might have been called anything, and its type might have been any primitive type, any primitive \"wrapper\" type, <literal>java.lang.String</literal> or <literal>java.util.Date</literal>. If your legacy database table has composite keys, you can use a user-defined class with properties of these types (see the section on composite identifiers later in the chapter.)"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid "The identifier property is strictly optional. You can leave them off and let Hibernate keep track of object identifiers internally. We do not recommend this, however."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:89
#, no-c-format
msgid "In fact, some functionality is available only to classes that declare an identifier property:"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:96
#, no-c-format
-msgid "Transitive reattachment for detached objects (cascade update or cascade merge) - see"
+msgid "Transitive reattachment for detached objects (cascade update or cascade merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-#. Tag: literal
-#: persistent_classes.xml:103
+#. Tag: para
#, no-c-format
-msgid "Session.saveOrUpdate()"
+msgid "<literal>Session.saveOrUpdate()</literal>"
msgstr ""
-#. Tag: literal
-#: persistent_classes.xml:108
+#. Tag: para
#, no-c-format
-msgid "Session.merge()"
+msgid "<literal>Session.merge()</literal>"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:113
#, no-c-format
msgid "We recommend that you declare consistently-named identifier properties on persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid "A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon the persistent class being either non-final, or the implementation of an interface that declares all public methods."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:126
#, no-c-format
msgid "You can persist <literal>final</literal> classes that do not implement an interface with Hibernate. You will not, however, be able to use proxies for lazy association fetching which will ultimately limit your options for performance tuning."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid "You should also avoid declaring <literal>public final</literal> methods on the non-final classes. If you want to use a class with a <literal>public final</literal> method, you must explicitly disable proxying by setting <literal>lazy=\"false\"</literal>."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:141
#, no-c-format
msgid "<literal>Cat</literal> declares accessor methods for all its persistent fields. Many other ORM tools directly persist instance variables. It is better to provide an indirection between the relational schema and internal data structures of the class. By default, Hibernate persists JavaBeans style properties and recognizes method names of the form <literal>getFoo</literal>, <literal>isFoo</literal> and <literal>setFoo</literal>. If required, you can switch to direct field access for particular properties."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid "Properties need <emphasis>not</emphasis> be declared public - Hibernate can persist a property with a default, <literal>protected</literal> or <literal>private</literal> get / set pair."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:164
#, no-c-format
msgid "A subclass must also observe the first and second rules. It inherits its identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
- "<![CDATA[package eg;\n"
- "\n"
- "public class DomesticCat extends Cat {\n"
- " private String name;\n"
- "\n"
- " public String getName() {\n"
- " return name;\n"
- " }\n"
- " protected void setName(String name) {\n"
- " this.name=name;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid "Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:175
#, no-c-format
msgid "You have to override the <literal>equals()</literal> and <literal>hashCode()</literal> methods if you:"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:181
#, no-c-format
msgid "intend to put instances of persistent classes in a <literal>Set</literal> (the recommended way to represent many-valued associations); <emphasis>and</emphasis>"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:194
#, no-c-format
msgid "Hibernate guarantees equivalence of persistent identity (database row) and Java identity only inside a particular session scope. When you mix instances retrieved in different sessions, you must implement <literal>equals()</literal> and <literal>hashCode()</literal> if you wish to have meaningful semantics for <literal>Set</literal>s."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:202
#, no-c-format
msgid "The most obvious way is to implement <literal>equals()</literal>/<literal>hashCode()</literal> by comparing the identifier value of both objects. If the value is the same, both must be the same database row, because they are equal. If both are added to a <literal>Set</literal>, you will only have one element in the <literal>Set</literal>). Unfortunately, you cannot use that approach with generated identifiers. Hibernate will only assign identifier values to objects that are persistent; a newly created instance will not have any identifier value. Furthermore, if an instance is unsaved and currently in a <literal>Set</literal>, saving it will assign an identifier value to the object. If <literal>equals()</literal> and <literal>hashCode()</literal> are based on the identifier value, the hash code would change, breaking the contract of the <literal>Set</literal>. See the Hibernate website for a full discussion of this problem. This is not a Hibernate issue, but normal Ja!
va semantics of object identity and equality."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:216
#, no-c-format
msgid "It is recommended that you implement <literal>equals()</literal> and <literal>hashCode()</literal> using <emphasis>Business key equality</emphasis>. Business key equality means that the <literal>equals()</literal> method compares only the properties that form the business key. It is a key that would identify our instance in the real world (a <emphasis>natural</emphasis> candidate key):"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
- "<![CDATA[public class Cat {\n"
- "\n"
- " ...\n"
- " public boolean equals(Object other) {\n"
- " if (this == other) return true;\n"
- " if ( !(other instanceof Cat) ) return false;\n"
- "\n"
- " final Cat cat = (Cat) other;\n"
- "\n"
- " if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
- " if ( !cat.getMother().equals( getMother() ) ) return false;\n"
- "\n"
- " return true;\n"
- " }\n"
- "\n"
- " public int hashCode() {\n"
- " int result;\n"
- " result = getMother().hashCode();\n"
- " result = 29 * result + getLitterId();\n"
- " return result;\n"
- " }\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, no-c-format
-msgid "A business key does not have to be as solid as a database primary key candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable or unique properties are usually good candidates for a business key."
+msgid "A business key does not have to be as solid as a database primary key candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable or unique properties are usually good candidates for a business key."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
msgstr ""
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
msgstr ""
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, no-c-format
-msgid "The following features are currently considered experimental and may change in the near future."
+msgid "<emphasis>The following features are currently considered experimental and may change in the near future.</emphasis>"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:246
#, no-c-format
msgid "Persistent entities do not necessarily have to be represented as POJO classes or as JavaBean objects at runtime. Hibernate also supports dynamic models (using <literal>Map</literal>s of <literal>Map</literal>s at runtime) and the representation of entities as DOM4J trees. With this approach, you do not write persistent classes, only mapping files."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:254
#, no-c-format
-msgid "By default, Hibernate works in normal POJO mode. You can set a default entity representation mode for a particular <literal>SessionFactory</literal> using the <literal>default_entity_mode</literal> configuration option (see <xref linkend=\"configuration-optional-properties\"/>)."
+msgid "By default, Hibernate works in normal POJO mode. You can set a default entity representation mode for a particular <literal>SessionFactory</literal> using the <literal>default_entity_mode</literal> configuration option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:261
#, no-c-format
msgid "The following examples demonstrate the representation using <literal>Map</literal>s. First, in the mapping file an <literal>entity-name</literal> has to be declared instead of, or in addition to, a class name:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:267
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- "\n"
- " <class entity-name=\"Customer\">\n"
- "\n"
- " <id name=\"id\"\n"
- " type=\"long\"\n"
- " column=\"ID\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- "\n"
- " <property name=\"name\"\n"
- " column=\"NAME\"\n"
- " type=\"string\"/>\n"
- "\n"
- " <property name=\"address\"\n"
- " column=\"ADDRESS\"\n"
- " type=\"string\"/>\n"
- "\n"
- " <many-to-one name=\"organization\"\n"
- " column=\"ORGANIZATION_ID\"\n"
- " class=\"Organization\"/>\n"
- "\n"
- " <bag name=\"orders\"\n"
- " inverse=\"true\"\n"
- " lazy=\"false\"\n"
- " cascade=\"all\">\n"
- " <key column=\"CUSTOMER_ID\"/>\n"
- " <one-to-many class=\"Order\"/>\n"
- " </bag>\n"
- "\n"
- " </class>\n"
- " \n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:269
#, no-c-format
msgid "Even though associations are declared using target class names, the target type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:276
#, no-c-format
msgid "After setting the default entity mode to <literal>dynamic-map</literal> for the <literal>SessionFactory</literal>, you can, at runtime, work with <literal>Map</literal>s of <literal>Map</literal>s:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:282
-#, no-c-format
-msgid ""
- "<![CDATA[Session s = openSession();\n"
- "Transaction tx = s.beginTransaction();\n"
- "Session s = openSession();\n"
- "\n"
- "// Create a customer\n"
- "Map david = new HashMap();\n"
- "david.put(\"name\", \"David\");\n"
- "\n"
- "// Create an organization\n"
- "Map foobar = new HashMap();\n"
- "foobar.put(\"name\", \"Foobar Inc.\");\n"
- "\n"
- "// Link both\n"
- "david.put(\"organization\", foobar);\n"
- "\n"
- "// Save both\n"
- "s.save(\"Customer\", david);\n"
- "s.save(\"Organization\", foobar);\n"
- "\n"
- "tx.commit();\n"
- "s.close();]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:284
#, no-c-format
msgid "One of the main advantages of dynamic mapping is quick turnaround time for prototyping, without the need for entity class implementation. However, you lose compile-time type checking and will likely deal with many exceptions at runtime. As a result of the Hibernate mapping, the database schema can easily be normalized and sound, allowing to add a proper domain model implementation on top later on."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid "Entity representation modes can also be set on a per <literal>Session</literal> basis:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:297
-#, no-c-format
-msgid ""
- "<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
- "\n"
- "// Create a customer\n"
- "Map david = new HashMap();\n"
- "david.put(\"name\", \"David\");\n"
- "dynamicSession.save(\"Customer\", david);\n"
- "...\n"
- "dynamicSession.flush();\n"
- "dynamicSession.close()\n"
- "...\n"
- "// Continue on pojoSession\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:300
#, no-c-format
msgid "Please note that the call to <literal>getSession()</literal> using an <literal>EntityMode</literal> is on the <literal>Session</literal> API, not the <literal>SessionFactory</literal>. That way, the new <literal>Session</literal> shares the underlying JDBC connection, transaction, and other context information. This means you do not have to call <literal>flush()</literal> and <literal>close()</literal> on the secondary <literal>Session</literal>, and also leave the transaction and connection handling to the primary unit of work."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:310
#, no-c-format
-msgid "More information about the XML representation capabilities can be found in <xref linkend=\"xml\"/>."
+msgid "More information about the XML representation capabilities can be found in <xref linkend=\"xml\" />."
msgstr ""
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:320
#, no-c-format
msgid "<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are responsible for managing a particular representation of a piece of data given that representation's <literal>org.hibernate.EntityMode</literal>. If a given piece of data is thought of as a data structure, then a tuplizer is the thing that knows how to create such a data structure and how to extract values from and inject values into such a data structure. For example, for the POJO entity mode, the corresponding tuplizer knows how create the POJO through its constructor. It also knows how to access the POJO properties using the defined property accessors."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid "There are two high-level types of Tuplizers, represented by the <literal>org.hibernate.tuple.entity.EntityTuplizer</literal> and <literal>org.hibernate.tuple.component.ComponentTuplizer</literal> interfaces. <literal>EntityTuplizer</literal>s are responsible for managing the above mentioned contracts in regards to entities, while <literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:338
#, no-c-format
msgid "Users can also plug in their own tuplizers. Perhaps you require that a <literal>java.util.Map</literal> implementation other than <literal>java.util.HashMap</literal> be used while in the dynamic-map entity-mode. Or perhaps you need to define a different proxy generation strategy than the one used by default. Both would be achieved by defining a custom tuplizer implementation. Tuplizer definitions are attached to the entity or component mapping they are meant to manage. Going back to the example of our customer entity:"
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping>\n"
- " <class entity-name=\"Customer\">\n"
- " <!--\n"
- " Override the dynamic-map entity-mode\n"
- " tuplizer for the customer entity\n"
- " -->\n"
- " <tuplizer entity-mode=\"dynamic-map\"\n"
- " class=\"CustomMapTuplizerImpl\"/>\n"
- "\n"
- " <id name=\"id\" type=\"long\" column=\"ID\">\n"
- " <generator class=\"sequence\"/>\n"
- " </id>\n"
- "\n"
- " <!-- other properties -->\n"
- " ...\n"
- " </class>\n"
- "</hibernate-mapping>\n"
- "\n"
- "\n"
- "public class CustomMapTuplizerImpl\n"
- " extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
- " // override the buildInstantiator() method to plug in our custom map...\n"
- " protected final Instantiator buildInstantiator(\n"
- " org.hibernate.mapping.PersistentClass mappingInfo) {\n"
- " return new CustomMapInstantiator( mappingInfo );\n"
- " }\n"
- "\n"
- " private static final class CustomMapInstantiator\n"
- " extends org.hibernate.tuple.DynamicMapInstantitor {\n"
- " // override the generateMap() method to return our custom map...\n"
- " protected final Map generateMap() {\n"
- " return new CustomMap();\n"
- " }\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
#, no-c-format
msgid "EntityNameResolvers"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid "The <interfacename>org.hibernate.EntityNameResolver</interfacename> interface is a contract for resolving the entity name of a given entity instance. The interface defines a single method <methodname>resolveEntityName</methodname> which is passed the entity instance and is expected to return the appropriate entity name (null is allowed and would indicate that the resolver does not know how to resolve the entity name of the given entity instance). Generally speaking, an <interfacename>org.hibernate.EntityNameResolver</interfacename> is going to be most useful in the case of dynamic models. One example might be using proxied interfaces as your domain model. The hibernate test suite has an example of this exact style of usage under the <package>org.hibernate.test.dynamicentity.tuplizer2</package>. Here is some of the code from that package for illustration."
msgstr ""
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
- "/**\n"
- " * A very trivial JDK Proxy InvocationHandler implementation where we proxy an interface as\n"
- " * the domain model and simply store persistent state in an internal Map. This is an extremely\n"
- " * trivial example meant only for illustration.\n"
- " */\n"
- "public final class DataProxyHandler implements InvocationHandler {\n"
- " private String entityName;\n"
- " private HashMap data = new HashMap();\n"
- "\n"
- " public DataProxyHandler(String entityName, Serializable id) {\n"
- " this.entityName = entityName;\n"
- " data.put( \"Id\", id );\n"
- " }\n"
- "\n"
- " public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n"
- " String methodName = method.getName();\n"
- " if ( methodName.startsWith( \"set\" ) ) {\n"
- " String propertyName = methodName.substring( 3 );\n"
- " data.put( propertyName, args[0] );\n"
- " }\n"
- " else if ( methodName.startsWith( \"get\" ) ) {\n"
- " String propertyName = methodName.substring( 3 );\n"
- " return data.get( propertyName );\n"
- " }\n"
- " else if ( \"toString\".equals( methodName ) ) {\n"
- " return entityName + \"#\" + data.get( \"Id\" );\n"
- " }\n"
- " else if ( \"hashCode\".equals( methodName ) ) {\n"
- " return new Integer( this.hashCode() );\n"
- " }\n"
- " return null;\n"
- " }\n"
- "\n"
- " public String getEntityName() {\n"
- " return entityName;\n"
- " }\n"
- "\n"
- " public HashMap getData() {\n"
- " return data;\n"
- " }\n"
- "}\n"
- "\n"
- "/**\n"
- " *\n"
- " */\n"
- "public class ProxyHelper {\n"
- " public static String extractEntityName(Object object) {\n"
- " // Our custom java.lang.reflect.Proxy instances actually bundle\n"
- " // their appropriate entity name, so we simply extract it from there\n"
- " // if this represents one of our proxies; otherwise, we return null\n"
- " if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
- " InvocationHandler handler = Proxy.getInvocationHandler( object );\n"
- " if ( DataProxyHandler.class.isAssignableFrom( handler.getClass() ) ) {\n"
- " DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
- " return myHandler.getEntityName();\n"
- " }\n"
- " }\n"
- " return null;\n"
- " }\n"
- "\n"
- " // various other utility methods ....\n"
- "\n"
- "}\n"
- "\n"
- "/**\n"
- " * The EntityNameResolver implementation.\n"
- " * IMPL NOTE : An EntityNameResolver really defines a strategy for how entity names should be\n"
- " * resolved. Since this particular impl can handle resolution for all of our entities we want to\n"
- " * take advantage of the fact that SessionFactoryImpl keeps these in a Set so that we only ever\n"
- " * have one instance registered. Why? Well, when it comes time to resolve an entity name,\n"
- " * Hibernate must iterate over all the registered resolvers. So keeping that number down\n"
- " * helps that process be as speedy as possible. Hence the equals and hashCode impls\n"
- " */\n"
- "public class MyEntityNameResolver implements EntityNameResolver {\n"
- " public static final MyEntityNameResolver INSTANCE = new MyEntityNameResolver();\n"
- "\n"
- " public String resolveEntityName(Object entity) {\n"
- " return ProxyHelper.extractEntityName( entity );\n"
- " }\n"
- "\n"
- " public boolean equals(Object obj) {\n"
- " return getClass().equals( obj.getClass() );\n"
- " }\n"
- "\n"
- " public int hashCode() {\n"
- " return getClass().hashCode();\n"
- " }\n"
- "}\n"
- "\n"
- "public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
- " public MyEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity) {\n"
- " super( entityMetamodel, mappedEntity );\n"
- " }\n"
- "\n"
- " public EntityNameResolver[] getEntityNameResolvers() {\n"
- " return new EntityNameResolver[] { MyEntityNameResolver.INSTANCE };\n"
- " }\n"
- "\n"
- " public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) {\n"
- " String entityName = ProxyHelper.extractEntityName( entityInstance );\n"
- " if ( entityName == null ) {\n"
- " entityName = super.determineConcreteSubclassEntityName( entityInstance, factory );\n"
- " }\n"
- " return entityName;\n"
- " }\n"
- "\n"
- " ...\n"
- "}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid "In order to register an <interfacename>org.hibernate.EntityNameResolver</interfacename> users must either:"
msgstr ""
#. Tag: para
-#: persistent_classes.xml:374
#, no-c-format
msgid "Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</link>, implementing the <methodname>getEntityNameResolvers</methodname> method."
msgstr ""
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid "Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</classname> (which is the implementation class for <interfacename>org.hibernate.SessionFactory</interfacename>) using the <methodname>registerEntityNameResolver</methodname> method."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/portability.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/portability.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/portability.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,135 +1,143 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
msgstr ""
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
msgstr ""
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid "One of the selling points of Hibernate (and really Object/Relational Mapping as a whole) is the notion of database portability. This could mean an internal IT user migrating from one database vendor to another, or it could mean a framework or deployable application consuming Hibernate to simultaneously target multiple database products by their users. Regardless of the exact scenario, the basic idea is that you want Hibernate to help you run against any number of databases without changes to your code, and ideally without any changes to the mapping metadata."
msgstr ""
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
msgstr ""
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid "The first line of portability for Hibernate is the dialect, which is a specialization of the <classname>org.hibernate.dialect.Dialect</classname> contract. A dialect encapsulates all the differences in how Hibernate must communicate with a particular database to accomplish some task like getting a sequence value or structuring a SELECT query. Hibernate bundles a wide range of dialects for many of the most popular databases. If you find that your particular database is not among them, it is not terribly difficult to write your own."
msgstr ""
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
msgstr ""
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid "Originally, Hibernate would always require that users specify which dialect to use. In the case of users looking to simultaneously target multiple databases with their build that was problematic. Generally this required their users to configure the Hibernate dialect or defining their own method of setting that value."
msgstr ""
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid "Starting with version 3.2, Hibernate introduced the notion of automatically detecting the dialect to use based on the <interfacename>java.sql.DatabaseMetaData</interfacename> obtained from a <interfacename>java.sql.Connection</interfacename> to that database. This was much better, expect that this resolution was limited to databases Hibernate know about ahead of time and was in no way configurable or overrideable."
msgstr ""
#. Tag: para
-#: portability.xml:72
#, no-c-format
-msgid "Starting with version 3.3, Hibernate has a fare more powerful way to automatically determine which dialect to should be used by relying on a series of delegates which implement the <interfacename>org.hibernate.dialect.resolver.DialectResolver</interfacename> which defines only a single method:<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException]]></programlisting>. The basic contract here is that if the resolver 'understands' the given database metadata then it returns the corresponding Dialect; if not it returns null and the process continues to the next resolver. The signature also identifies <exceptionname>org.hibernate.exception.JDBCConnectionException</exceptionname> as possibly being thrown. A JDBCConnectionException here is interpreted to imply a \"non transient\" (aka non-recoverable) connection problem and is used to indicate an immediate stop to resolution attempts. All other exceptions result in a!
warning and continuing on to the next resolver."
+msgid "Starting with version 3.3, Hibernate has a fare more powerful way to automatically determine which dialect to should be used by relying on a series of delegates which implement the <interfacename>org.hibernate.dialect.resolver.DialectResolver</interfacename> which defines only a single method:<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException</programlisting>. The basic contract here is that if the resolver 'understands' the given database metadata then it returns the corresponding Dialect; if not it returns null and the process continues to the next resolver. The signature also identifies <exceptionname>org.hibernate.exception.JDBCConnectionException</exceptionname> as possibly being thrown. A JDBCConnectionException here is interpreted to imply a \"non transient\" (aka non-recoverable) connection problem and is used to indicate an immediate stop to resolution attempts. All other exceptions result in!
a warning and continuing on to the next resolver."
msgstr ""
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid "The cool part about these resolvers is that users can also register their own custom resolvers which will be processed ahead of the built-in Hibernate ones. This might be useful in a number of different situations: it allows easy integration for auto-detection of dialects beyond those shipped with HIbernate itself; it allows you to specify to use a custom dialect when a particular database is recognized; etc. To register one or more resolvers, simply specify them (seperated by commas, tabs or spaces) using the 'hibernate.dialect_resolvers' configuration setting (see the <constant>DIALECT_RESOLVERS</constant> constant on <classname>org.hibernate.cfg.Environment</classname>)."
msgstr ""
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
msgstr ""
#. Tag: para
-#: portability.xml:100
#, no-c-format
-msgid "When considering portability between databases, another important decision is selecting the identifier generation stratagy you want to use. Originally Hibernate provided the <emphasis>native</emphasis> generator for this purpose, which was intended to select between a <emphasis>sequence</emphasis>, <emphasis>identity</emphasis>, or <emphasis>table</emphasis> strategy depending on the capability of the underlying database. However, an insidious implication of this approach comes about when targtetting some databases which support <emphasis>identity</emphasis> generation and some which do not. <emphasis>identity</emphasis> generation relies on the SQL definition of an IDENTITY (or auto-increment) column to manage the identifier value; it is what is known as a post-insert generation strategy becauase the insert must actually happen before we can know the identifier value. Because Hibernate relies on this identifier value to uniquely reference entities within a persisten!
ce context it must then issue the insert immediately when the users requests the entitiy be associated with the session (like via save() e.g.) regardless of current transactional semantics. <note> <para> Hibernate was changed slightly once the implication of this was better understood so that the insert is delayed in cases where that is feasible. </para> </note> The underlying issue is that the actual semanctics of the application itself changes in these cases."
+msgid "When considering portability between databases, another important decision is selecting the identifier generation stratagy you want to use. Originally Hibernate provided the <emphasis>native</emphasis> generator for this purpose, which was intended to select between a <emphasis>sequence</emphasis>, <emphasis>identity</emphasis>, or <emphasis>table</emphasis> strategy depending on the capability of the underlying database. However, an insidious implication of this approach comes about when targtetting some databases which support <emphasis>identity</emphasis> generation and some which do not. <emphasis>identity</emphasis> generation relies on the SQL definition of an IDENTITY (or auto-increment) column to manage the identifier value; it is what is known as a post-insert generation strategy becauase the insert must actually happen before we can know the identifier value. Because Hibernate relies on this identifier value to uniquely reference entities within a persisten!
ce context it must then issue the insert immediately when the users requests the entitiy be associated with the session (like via save() e.g.) regardless of current transactional semantics."
msgstr ""
#. Tag: para
-#: portability.xml:125
#, no-c-format
-msgid "Starting with version 3.2.3, Hibernate comes with a set of <ulink url=\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators targetting portability in a much different way. <note> <para> There are specifically 2 bundled <emphasis>enhanced</emphasis>generators: <itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> <classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </listitem> </itemizedlist> </para> </note> The idea behind these generators is to port the actual semantics of the identifer value generation to the different databases. For example, the <classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> mimics the behavior of a sequence on databases which do not support sequences by using a table."
+msgid "Hibernate was changed slightly once the implication of this was better understood so that the insert is delayed in cases where that is feasible."
msgstr ""
+#. Tag: note
+#, no-c-format
+msgid "The underlying issue is that the actual semanctics of the application itself changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Starting with version 3.2.3, Hibernate comes with a set of <ulink url=\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators targetting portability in a much different way."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr ""
+
+#. Tag: note
+#, no-c-format
+msgid "The idea behind these generators is to port the actual semantics of the identifer value generation to the different databases. For example, the <classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> mimics the behavior of a sequence on databases which do not support sequences by using a table."
+msgstr ""
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
msgstr ""
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid "This is an area in Hibernate in need of improvement. In terms of portability concerns, this function handling currently works pretty well from HQL; however, it is quite lacking in all other aspects."
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid "SQL functions can be referenced in many ways by users. However, not all databases support the same set of functions. Hibernate, provides a means of mapping a <emphasis>logical</emphasis> function name to a a delegate which knows how to render that particular function, perhaps even using a totally different physical function call."
msgstr ""
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid "Technically this function registration is handled through the <classname>org.hibernate.dialect.function.SQLFunctionRegistry</classname> class which is intended to allow users to provide custom function definitions without having to provide a custom dialect. This specific behavior is not fully completed as of yet."
msgstr ""
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid "It is sort of implemented such that users can programatically register functions with the <classname>org.hibernate.cfg.Configuration</classname> and those functions will be recognized for HQL."
msgstr ""
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/preface.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/preface.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/preface.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,99 +1,83 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: preface.xml:31
#, no-c-format
msgid "Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. Hibernate is an Object/Relational Mapping tool for Java environments. The term Object/Relational Mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema."
msgstr ""
#. Tag: para
-#: preface.xml:39
#, no-c-format
msgid "Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities. It can also significantly reduce development time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
#. Tag: para
-#: preface.xml:46
#, no-c-format
msgid "Hibernate's goal is to relieve the developer from 95 percent of common data persistence related programming tasks. Hibernate may not be the best solution for data-centric applications that only use stored-procedures to implement the business logic in the database, it is most useful with object-oriented domain models and business logic in the Java-based middle-tier. However, Hibernate can certainly help you to remove or encapsulate vendor-specific SQL code and will help with the common task of result set translation from a tabular representation to a graph of objects."
msgstr ""
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid "If you are new to Hibernate and Object/Relational Mapping or even Java, please follow these steps:"
msgstr ""
#. Tag: para
-#: preface.xml:63
#, no-c-format
-msgid "Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step instructions. The source code for the tutorial is included in the distribution in the <literal>doc/reference/tutorial/</literal> directory."
+msgid "Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step instructions. The source code for the tutorial is included in the distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
#. Tag: para
-#: preface.xml:71
#, no-c-format
-msgid "Read <xref linkend=\"architecture\"/> to understand the environments where Hibernate can be used."
+msgid "Read <xref linkend=\"architecture\" /> to understand the environments where Hibernate can be used."
msgstr ""
#. Tag: para
-#: preface.xml:77
#, no-c-format
msgid "View the <literal>eg/</literal> directory in the Hibernate distribution. It contains a simple standalone application. Copy your JDBC driver to the <literal>lib/</literal> directory and edit <literal>etc/hibernate.properties</literal>, specifying correct values for your database. From a command prompt in the distribution directory, type <literal>ant eg</literal> (using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
#. Tag: para
-#: preface.xml:88
#, no-c-format
-msgid "Use this reference documentation as your primary source of information. Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need more help with application design, or if you prefer a step-by-step tutorial. Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and download the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
+msgid "Use this reference documentation as your primary source of information. Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need more help with application design, or if you prefer a step-by-step tutorial. Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
msgstr ""
#. Tag: para
-#: preface.xml:103
#, no-c-format
msgid "Links to third party demos, examples, and tutorials are maintained on the Hibernate website."
msgstr ""
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid "The Community Area on the Hibernate website is a good resource for design patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, etc.)."
msgstr ""
#. Tag: para
-#: preface.xml:117
#, no-c-format
msgid "If you have questions, use the user forum linked on the Hibernate website. We also provide a JIRA issue tracking system for bug reports and feature requests. If you are interested in the development of Hibernate, join the developer mailing list. If you are interested in translating this documentation into your language, contact us on the developer mailing list."
msgstr ""
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid "Commercial development support, production support, and training for Hibernate is available through JBoss Inc. (see http://www.hibernate.org/SupportTraining/). Hibernate is a Professional Open Source project and a critical component of the JBoss Enterprise Middleware System (JEMS) suite of products."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/query_criteria.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/query_criteria.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/query_criteria.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,624 +1,244 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
msgstr ""
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
msgstr ""
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
msgstr ""
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid "The interface <literal>org.hibernate.Criteria</literal> represents a query against a particular persistent class. The <literal>Session</literal> is a factory for <literal>Criteria</literal> instances."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
- "<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
- "crit.setMaxResults(50);\n"
- "List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
msgstr ""
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid "An individual query criterion is an instance of the interface <literal>org.hibernate.criterion.Criterion</literal>. The class <literal>org.hibernate.criterion.Restrictions</literal> defines factory methods for obtaining certain built-in <literal>Criterion</literal> types."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:59
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
- " .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:61
#, no-c-format
msgid "Restrictions can be grouped logically."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:65
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
- " .add( Restrictions.or(\n"
- " Restrictions.eq( \"age\", new Integer(0) ),\n"
- " Restrictions.isNull(\"age\")\n"
- " ) )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk\" } ) )\n"
- " .add( Restrictions.disjunction()\n"
- " .add( Restrictions.isNull(\"age\") )\n"
- " .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
- " .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
- " .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
- " ) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:69
#, no-c-format
msgid "There are a range of built-in criterion types (<literal>Restrictions</literal> subclasses). One of the most useful allows you to specify SQL directly."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", \"Fritz%\", Hibernate.STRING) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid "The <literal>{alias}</literal> placeholder with be replaced by the row alias of the queried entity."
msgstr ""
#. Tag: para
-#: query_criteria.xml:81
#, no-c-format
msgid "You can also obtain a criterion from a <literal>Property</literal> instance. You can create a <literal>Property</literal> by calling <literal>Property.forName()</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "Property age = Property.forName(\"age\");\n"
- "List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.disjunction()\n"
- " .add( age.isNull() )\n"
- " .add( age.eq( new Integer(0) ) )\n"
- " .add( age.eq( new Integer(1) ) )\n"
- " .add( age.eq( new Integer(2) ) )\n"
- " ) )\n"
- " .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", \"Pk\" } ) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
msgstr ""
#. Tag: para
-#: query_criteria.xml:94
#, no-c-format
msgid "You can order the results using <literal>org.hibernate.criterion.Order</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:98
+#. Tag: title
#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.like(\"name\", \"F%\")\n"
- " .addOrder( Order.asc(\"name\") )\n"
- " .addOrder( Order.desc(\"age\") )\n"
- " .setMaxResults(50)\n"
- " .list();]]>"
+msgid "Associations"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:100
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Property.forName(\"name\").like(\"F%\") )\n"
- " .addOrder( Property.forName(\"name\").asc() )\n"
- " .addOrder( Property.forName(\"age\").desc() )\n"
- " .setMaxResults(50)\n"
- " .list();]]>"
+msgid "By navigating associations using <literal>createCriteria()</literal> you can specify constraints upon related entities:"
msgstr ""
-#. Tag: title
-#: query_criteria.xml:105
+#. Tag: para
#, no-c-format
-msgid "Associations"
+msgid "The second <literal>createCriteria()</literal> returns a new instance of <literal>Criteria</literal> that refers to the elements of the <literal>kittens</literal> collection."
msgstr ""
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
-msgid "By navigating associations using <literal>createCriteria()</literal> you can specify constraints upon related entities:"
+msgid "There is also an alternate form that is useful in certain circumstances:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.like(\"name\", \"F%\") )\n"
- " .createCriteria(\"kittens\")\n"
- " .add( Restrictions.like(\"name\", \"F%\") )\n"
- " .list();]]>"
+msgid "(<literal>createAlias()</literal> does not create a new instance of <literal>Criteria</literal>.)"
msgstr ""
#. Tag: para
-#: query_criteria.xml:114
#, no-c-format
-msgid "The second <literal>createCriteria()</literal> returns a new instance of <literal>Criteria</literal> that refers to the elements of the <literal>kittens</literal> collection."
+msgid "The kittens collections held by the <literal>Cat</literal> instances returned by the previous two queries are <emphasis>not</emphasis> pre-filtered by the criteria. If you want to retrieve just the kittens that match the criteria, you must use a <literal>ResultTransformer</literal>."
msgstr ""
#. Tag: para
-#: query_criteria.xml:120
#, no-c-format
-msgid "There is also an alternate form that is useful in certain circumstances:"
+msgid "Additionally you may manipulate the result set using a left outer join:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:124
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .createAlias(\"kittens\", \"kt\")\n"
- " .createAlias(\"mate\", \"mt\")\n"
- " .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
- " .list();]]>"
+msgid "This will return all of the <literal>Cat</literal>s with a mate whose name starts with \"good\" ordered by their mate's age, and all cats who do not have a mate. This is useful when there is a need to order or limit in the database prior to returning complex/large result sets, and removes many instances where multiple queries would have to be performed and the results unioned by java in memory."
msgstr ""
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
-msgid "(<literal>createAlias()</literal> does not create a new instance of <literal>Criteria</literal>.)"
+msgid "Without this feature, first all of the cats without a mate would need to be loaded in one query."
msgstr ""
#. Tag: para
-#: query_criteria.xml:131
#, no-c-format
-msgid "The kittens collections held by the <literal>Cat</literal> instances returned by the previous two queries are <emphasis>not</emphasis> pre-filtered by the criteria. If you want to retrieve just the kittens that match the criteria, you must use a <literal>ResultTransformer</literal>."
+msgid "A second query would need to retreive the cats with mates who's name started with \"good\" sorted by the mates age."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .createCriteria(\"kittens\", \"kt\")\n"
- " .add( Restrictions.eq(\"name\", \"F%\") )\n"
- " .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
- " .list();\n"
- "Iterator iter = cats.iterator();\n"
- "while ( iter.hasNext() ) {\n"
- " Map map = (Map) iter.next();\n"
- " Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
- " Cat kitten = (Cat) map.get(\"kt\");\n"
- "}]]>"
+msgid "Thirdly, in memory; the lists would need to be joined manually."
msgstr ""
#. Tag: title
-#: query_criteria.xml:143
#, no-c-format
msgid "Dynamic association fetching"
msgstr ""
#. Tag: para
-#: query_criteria.xml:145
#, no-c-format
msgid "You can specify association fetching semantics at runtime using <literal>setFetchMode()</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:150
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
- " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
- " .setFetchMode(\"mate\", FetchMode.EAGER)\n"
- " .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:152
#, no-c-format
-msgid "This query will fetch both <literal>mate</literal> and <literal>kittens</literal> by outer join. See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "This query will fetch both <literal>mate</literal> and <literal>kittens</literal> by outer join. See <xref linkend=\"performance-fetching\" /> for more information."
msgstr ""
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
msgstr ""
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid "The class <literal>org.hibernate.criterion.Example</literal> allows you to construct a query criterion from a given instance."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = new Cat();\n"
- "cat.setSex('F');\n"
- "cat.setColor(Color.BLACK);\n"
- "List results = session.createCriteria(Cat.class)\n"
- " .add( Example.create(cat) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid "Version properties, identifiers and associations are ignored. By default, null valued properties are excluded."
msgstr ""
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
- "<![CDATA[Example example = Example.create(cat)\n"
- " .excludeZeroes() //exclude zero valued properties\n"
- " .excludeProperty(\"color\") //exclude the property named \"color\"\n"
- " .ignoreCase() //perform case insensitive string comparisons\n"
- " .enableLike(); //use like for string comparisons\n"
- "List results = session.createCriteria(Cat.class)\n"
- " .add(example)\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .add( Example.create(cat) )\n"
- " .createCriteria(\"mate\")\n"
- " .add( Example.create( cat.getMate() ) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
msgstr ""
#. Tag: para
-#: query_criteria.xml:190
#, no-c-format
msgid "The class <literal>org.hibernate.criterion.Projections</literal> is a factory for <literal>Projection</literal> instances. You can apply a projection to a query by calling <literal>setProjection()</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.rowCount() )\n"
- " .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.projectionList()\n"
- " .add( Projections.rowCount() )\n"
- " .add( Projections.avg(\"weight\") )\n"
- " .add( Projections.max(\"weight\") )\n"
- " .add( Projections.groupProperty(\"color\") )\n"
- " )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid "There is no explicit \"group by\" necessary in a criteria query. Certain projection types are defined to be <emphasis>grouping projections</emphasis>, which also appear in the SQL <literal>group by</literal> clause."
msgstr ""
#. Tag: para
-#: query_criteria.xml:206
#, no-c-format
msgid "An alias can be assigned to a projection so that the projected value can be referred to in restrictions or orderings. Here are two different ways to do this:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.alias( Projections.groupProperty(\"color\"), \"colr\" ) )\n"
- " .addOrder( Order.asc(\"colr\") )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
- " .addOrder( Order.asc(\"colr\") )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid "The <literal>alias()</literal> and <literal>as()</literal> methods simply wrap a projection instance in another, aliased, instance of <literal>Projection</literal>. As a shortcut, you can assign an alias when you add the projection to a projection list:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.projectionList()\n"
- " .add( Projections.rowCount(), \"catCountByColor\" )\n"
- " .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
- " .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
- " .add( Projections.groupProperty(\"color\"), \"color\" )\n"
- " )\n"
- " .addOrder( Order.desc(\"catCountByColor\") )\n"
- " .addOrder( Order.desc(\"avgWeight\") )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
- " .createAlias(\"kittens\", \"kit\")\n"
- " .setProjection( Projections.projectionList()\n"
- " .add( Projections.property(\"cat.name\"), \"catName\" )\n"
- " .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
- " )\n"
- " .addOrder( Order.asc(\"catName\") )\n"
- " .addOrder( Order.asc(\"kitName\") )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid "You can also use <literal>Property.forName()</literal> to express projections:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Property.forName(\"name\") )\n"
- " .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
- "<![CDATA[List results = session.createCriteria(Cat.class)\n"
- " .setProjection( Projections.projectionList()\n"
- " .add( Projections.rowCount().as(\"catCountByColor\") )\n"
- " .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
- " .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
- " .add( Property.forName(\"color\").group().as(\"color\" )\n"
- " )\n"
- " .addOrder( Order.desc(\"catCountByColor\") )\n"
- " .addOrder( Order.desc(\"avgWeight\") )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
msgstr ""
#. Tag: para
-#: query_criteria.xml:239
#, no-c-format
msgid "The <literal>DetachedCriteria</literal> class allows you to create a query outside the scope of a session and then execute it using an arbitrary <literal>Session</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:244
-#, no-c-format
-msgid ""
- "<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
- " .add( Property.forName(\"sex\").eq('F') );\n"
- " \n"
- "Session session = ....;\n"
- "Transaction txn = session.beginTransaction();\n"
- "List results = query.getExecutableCriteria(session).setMaxResults(100).list();\n"
- "txn.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:246
#, no-c-format
msgid "A <literal>DetachedCriteria</literal> can also be used to express a subquery. Criterion instances involving subqueries can be obtained via <literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:252
-#, no-c-format
-msgid ""
- "<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
- " .setProjection( Property.forName(\"weight\").avg() );\n"
- "session.createCriteria(Cat.class)\n"
- " .add( Property.forName(\"weight\").gt(avgWeight) )\n"
- " .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
- "<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
- " .setProjection( Property.forName(\"weight\") );\n"
- "session.createCriteria(Cat.class)\n"
- " .add( Subqueries.geAll(\"weight\", weights) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:256
#, no-c-format
msgid "Correlated subqueries are also possible:"
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
- "<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat.class, \"cat2\")\n"
- " .setProjection( Property.forName(\"weight\").avg() )\n"
- " .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
- "session.createCriteria(Cat.class, \"cat\")\n"
- " .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
msgstr ""
#. Tag: para
-#: query_criteria.xml:271
#, no-c-format
msgid "For most queries, including criteria queries, the query cache is not efficient because query cache invalidation occurs too frequently. However, there is a special kind of query where you can optimize the cache invalidation algorithm: lookups by a constant natural key. In some applications, this kind of query occurs frequently. The criteria API provides special provision for this use case."
msgstr ""
#. Tag: para
-#: query_criteria.xml:279
#, no-c-format
msgid "First, map the natural key of your entity using <literal><natural-id></literal> and enable use of the second-level cache."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:284
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"User\">\n"
- " <cache usage=\"read-write\"/>\n"
- " <id name=\"id\">\n"
- " <generator class=\"increment\"/>\n"
- " </id>\n"
- " <natural-id>\n"
- " <property name=\"name\"/>\n"
- " <property name=\"org\"/>\n"
- " </natural-id>\n"
- " <property name=\"password\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:286
#, no-c-format
msgid "This functionality is not intended for use with entities with <emphasis>mutable</emphasis> natural keys."
msgstr ""
#. Tag: para
-#: query_criteria.xml:291
#, no-c-format
msgid "Once you have enabled the Hibernate query cache, the <literal>Restrictions.naturalId()</literal> allows you to make use of the more efficient cache algorithm."
msgstr ""
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
- "<![CDATA[session.createCriteria(User.class)\n"
- " .add( Restrictions.naturalId()\n"
- " .set(\"name\", \"gavin\")\n"
- " .set(\"org\", \"hb\") \n"
- " ).setCacheable(true)\n"
- " .uniqueResult();]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/query_hql.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/query_hql.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/query_hql.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1798 +1,793 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
msgstr ""
#. Tag: para
-#: query_hql.xml:31
#, no-c-format
msgid "Hibernate uses a powerful query language (HQL) that is similar in appearance to SQL. Compared with SQL, however, HQL is fully object-oriented and understands notions like inheritance, polymorphism and association."
msgstr ""
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
msgstr ""
#. Tag: para
-#: query_hql.xml:40
#, no-c-format
msgid "With the exception of names of Java classes and properties, queries are case-insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</literal> is the same as <literal>SELECT</literal>, but <literal>org.hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
#. Tag: para
-#: query_hql.xml:51
#, no-c-format
msgid "This manual uses lowercase HQL keywords. Some users find queries with uppercase keywords more readable, but this convention is unsuitable for queries embedded in Java code."
msgstr ""
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
msgstr ""
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
#, no-c-format
msgid "This returns all instances of the class <literal>eg.Cat</literal>. You do not usually need to qualify the class name, since <literal>auto-import</literal> is the default. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid "In order to refer to the <literal>Cat</literal> in other parts of the query, you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
#, no-c-format
msgid "This query assigns the alias <literal>cat</literal> to <literal>Cat</literal> instances, so you can use that alias later in the query. The <literal>as</literal> keyword is optional. You could also write:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
#, no-c-format
msgid "Multiple classes can appear, resulting in a cartesian product or \"cross\" join."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
#, no-c-format
msgid "It is good practice to name query aliases using an initial lowercase as this is consistent with Java naming standards for local variables (e.g. <literal>domesticCat</literal>)."
msgstr ""
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
msgstr ""
#. Tag: para
-#: query_hql.xml:109
#, no-c-format
msgid "You can also assign aliases to associated entities or to elements of a collection of values using a <literal>join</literal>. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:114
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- " inner join cat.mate as mate\n"
- " left outer join cat.kittens as kitten]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:116
-#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:118
-#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:120
#, no-c-format
msgid "The supported join types are borrowed from ANSI SQL:"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:127
+#. Tag: para
#, no-c-format
-msgid "inner join"
+msgid "<literal>inner join</literal>"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:132
+#. Tag: para
#, no-c-format
-msgid "left outer join"
+msgid "<literal>left outer join</literal>"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:137
+#. Tag: para
#, no-c-format
-msgid "right outer join"
+msgid "<literal>right outer join</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
msgstr ""
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid "The <literal>inner join</literal>, <literal>left outer join</literal> and <literal>right outer join</literal> constructs may be abbreviated."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- " join cat.mate as mate\n"
- " left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid "You may supply extra join conditions using the HQL <literal>with</literal> keyword."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- " left join cat.kittens as kitten\n"
- " with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:161
#, no-c-format
-msgid "A \"fetch\" join allows associations or collections of values to be initialized along with their parent objects using a single select. This is particularly useful in the case of a collection. It effectively overrides the outer join and lazy declarations of the mapping file for associations and collections. See <xref linkend=\"performance-fetching\"/> for more information."
+msgid "A \"fetch\" join allows associations or collections of values to be initialized along with their parent objects using a single select. This is particularly useful in the case of a collection. It effectively overrides the outer join and lazy declarations of the mapping file for associations and collections. See <xref linkend=\"performance-fetching\" /> for more information."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:169
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- " inner join fetch cat.mate\n"
- " left join fetch cat.kittens]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:171
#, no-c-format
msgid "A fetch join does not usually need to assign an alias, because the associated objects should not be used in the <literal>where</literal> clause (or any other clause). The associated objects are also not returned directly in the query results. Instead, they may be accessed via the parent object. The only reason you might need an alias is if you are recursively join fetching a further collection:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:179
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- " inner join fetch cat.mate\n"
- " left join fetch cat.kittens child\n"
- " left join fetch child.kittens]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:181
#, no-c-format
msgid "The <literal>fetch</literal> construct cannot be used in queries called using <literal>iterate()</literal> (though <literal>scroll()</literal> can be used). <literal>Fetch</literal> should be used together with <literal>setMaxResults()</literal> or <literal>setFirstResult()</literal>, as these operations are based on the result rows which usually contain duplicates for eager collection fetching, hence, the number of rows is not what you would expect. <literal>Fetch</literal> should also not be used together with impromptu <literal>with</literal> condition. It is possible to create a cartesian product by join fetching more than one collection in a query, so take care in this case. Join fetching multiple collection roles can produce unexpected results for bag mappings, so user discretion is advised when formulating queries in this case. Finally, note that <literal>full join fetch</literal> and <literal>right join fetch</literal> are not meaningful."
msgstr ""
#. Tag: para
-#: query_hql.xml:196
#, no-c-format
msgid "If you are using property-level lazy fetching (with bytecode instrumentation), it is possible to force Hibernate to fetch the lazy properties in the first query immediately using <literal>fetch all properties</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid "<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
msgstr ""
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid "HQL supports two forms of association joining: <literal>implicit</literal> and <literal>explicit</literal>."
msgstr ""
#. Tag: para
-#: query_hql.xml:214
#, no-c-format
msgid "The queries shown in the previous section all use the <literal>explicit</literal> form, that is, where the join keyword is explicitly used in the from clause. This is the recommended form."
msgstr ""
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid "The <literal>implicit</literal> form does not use the join keyword. Instead, the associations are \"dereferenced\" using dot-notation. <literal>implicit</literal> joins can appear in any of the HQL clauses. <literal>implicit</literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
#, no-c-format
msgid "Referring to identifier property"
msgstr ""
#. Tag: para
-#: query_hql.xml:232
#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr ""
#. Tag: para
-#: query_hql.xml:237
#, no-c-format
msgid "The special property (lowercase) <literal>id</literal> may be used to reference the identifier property of an entity <emphasis>provided that the entity does not define a non-identifier property named id</emphasis>."
msgstr ""
#. Tag: para
-#: query_hql.xml:244
#, no-c-format
msgid "If the entity defines a named identifier property, you can use that property name."
msgstr ""
#. Tag: para
-#: query_hql.xml:250
#, no-c-format
msgid "References to composite identifier properties follow the same naming rules. If the entity has a non-identifier property named id, the composite identifier property can only be referenced by its defined named. Otherwise, the special <literal>id</literal> property can be used to reference the identifier property."
msgstr ""
#. Tag: para
-#: query_hql.xml:258
#, no-c-format
msgid "Please note that, starting in version 3.2.2, this has changed significantly. In previous versions, <literal>id</literal> <emphasis>always</emphasis> referred to the identifier property regardless of its actual name. A ramification of that decision was that non-identifier properties named <literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
msgstr ""
#. Tag: para
-#: query_hql.xml:271
#, no-c-format
msgid "The <literal>select</literal> clause picks which objects and properties to return in the query result set. Consider the following:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:276
-#, no-c-format
-msgid ""
- "<![CDATA[select mate\n"
- "from Cat as cat\n"
- " inner join cat.mate as mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:278
#, no-c-format
msgid "The query will select <literal>mate</literal>s of other <literal>Cat</literal>s. You can express this query more compactly as:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
#, no-c-format
msgid "Queries can return properties of any value type including properties of component type:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:289
-#, no-c-format
-msgid ""
- "<![CDATA[select cat.name from DomesticCat cat\n"
- "where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:293
#, no-c-format
msgid "Queries can return multiple objects and/or properties as an array of type <literal>Object[]</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
- "<![CDATA[select mother, offspr, mate.name\n"
- "from DomesticCat as mother\n"
- " inner join mother.mate as mate\n"
- " left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
#, no-c-format
msgid "Or as a <literal>List</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:304
-#, no-c-format
-msgid ""
- "<![CDATA[select new list(mother, offspr, mate.name)\n"
- "from DomesticCat as mother\n"
- " inner join mother.mate as mate\n"
- " left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:306
#, no-c-format
msgid "Or - assuming that the class <literal>Family</literal> has an appropriate constructor - as an actual typesafe Java object:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:310
-#, no-c-format
-msgid ""
- "<![CDATA[select new Family(mother, mate, offspr)\n"
- "from DomesticCat as mother\n"
- " join mother.mate as mate\n"
- " left join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:313
#, no-c-format
msgid "You can assign aliases to selected expressions using <literal>as</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
- "<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n\n"
- "from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid "This is most useful when used together with <literal>select new map</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
- "<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n )\n"
- "from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid "This query returns a <literal>Map</literal> from aliases to selected values."
msgstr ""
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
msgstr ""
#. Tag: para
-#: query_hql.xml:334
#, no-c-format
msgid "HQL queries can even return the results of aggregate functions on properties:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:338
-#, no-c-format
-msgid ""
- "<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)\n"
- "from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:349
#, no-c-format
msgid "The supported aggregate functions are:"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:361
+#. Tag: para
#, no-c-format
-msgid "count(*)"
+msgid "<literal>count(*)</literal>"
msgstr ""
-#. Tag: literal
-#: query_hql.xml:366
+#. Tag: para
#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:371
#, no-c-format
msgid "You can use arithmetic operators, concatenation, and recognized SQL functions in the select clause:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:376
-#, no-c-format
-msgid ""
- "<![CDATA[select cat.weight + sum(kitten.weight)\n"
- "from Cat cat\n"
- " join cat.kittens kitten\n"
- "group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid "<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:380
#, no-c-format
msgid "The <literal>distinct</literal> and <literal>all</literal> keywords can be used and have the same semantics as in SQL."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
- "<![CDATA[select distinct cat.name from Cat cat\n"
- "\n"
- "select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
msgstr ""
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
msgstr ""
#. Tag: para
-#: query_hql.xml:398
#, no-c-format
msgid "returns instances not only of <literal>Cat</literal>, but also of subclasses like <literal>DomesticCat</literal>. Hibernate queries can name <emphasis>any</emphasis> Java class or interface in the <literal>from</literal> clause. The query will return instances of all persistent classes that extend that class or implement the interface. The following query would return all persistent objects:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid "The interface <literal>Named</literal> might be implemented by various persistent classes:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
#, no-c-format
msgid "These last two queries will require more than one SQL <literal>SELECT</literal>. This means that the <literal>order by</literal> clause does not correctly order the whole result set. It also means you cannot call these queries using <literal>Query.scroll()</literal>."
msgstr ""
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
msgstr ""
#. Tag: para
-#: query_hql.xml:426
#, no-c-format
msgid "The <literal>where</literal> clause allows you to refine the list of instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:437
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:439
#, no-c-format
msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
msgstr ""
#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:446
-#, no-c-format
-msgid ""
- "<![CDATA[select foo\n"
- "from Foo foo, Bar bar\n"
- "where foo.startDate = bar.date]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:448
#, no-c-format
msgid "returns all instances of <literal>Foo</literal> with an instance of <literal>bar</literal> with a <literal>date</literal> property equal to the <literal>startDate</literal> property of the <literal>Foo</literal>. Compound path expressions make the <literal>where</literal> clause extremely powerful. Consider the following:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
#, no-c-format
msgid "This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
- "<![CDATA[from Foo foo\n"
- "where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
#. Tag: para
-#: query_hql.xml:470
#, no-c-format
msgid "The <literal>=</literal> operator can be used to compare not only properties, but also instances:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
- "<![CDATA[select cat, mate\n"
- "from Cat cat, Cat mate\n"
- "where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, no-c-format
-msgid "The special property (lowercase) <literal>id</literal> can be used to reference the unique identifier of an object. See <xref linkend=\"queryhql-identifier-property\"/> for more information."
+msgid "The special property (lowercase) <literal>id</literal> can be used to reference the unique identifier of an object. See <xref linkend=\"queryhql-identifier-property\" /> for more information."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat where cat.id = 123\n"
- "\n"
- "from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
#, no-c-format
msgid "The second query is efficient and does not require a table join."
msgstr ""
#. Tag: para
-#: query_hql.xml:491
#, no-c-format
msgid "Properties of composite identifiers can also be used. Consider the following example where <literal>Person</literal> has composite identifiers consisting of <literal>country</literal> and <literal>medicareNumber</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:497
-#, no-c-format
-msgid ""
- "<![CDATA[from bank.Person person\n"
- "where person.id.country = 'AU'\n"
- " and person.id.medicareNumber = 123456]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
- "<![CDATA[from bank.Account account\n"
- "where account.owner.id.country = 'AU'\n"
- " and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
#, no-c-format
msgid "Once again, the second query does not require a table join."
msgstr ""
#. Tag: para
-#: query_hql.xml:505
#, no-c-format
-msgid "See <xref linkend=\"queryhql-identifier-property\"/> for more information regarding referencing identifier properties)"
+msgid "See <xref linkend=\"queryhql-identifier-property\" /> for more information regarding referencing identifier properties)"
msgstr ""
#. Tag: para
-#: query_hql.xml:510
#, no-c-format
msgid "The special property <literal>class</literal> accesses the discriminator value of an instance in the case of polymorphic persistence. A Java class name embedded in the where clause will be translated to its discriminator value."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, no-c-format
-msgid "You can also use components or composite user types, or properties of said component types. See <xref linkend=\"queryhql-components\"/> for more information."
+msgid "You can also use components or composite user types, or properties of said component types. See <xref linkend=\"queryhql-components\" /> for more information."
msgstr ""
#. Tag: para
-#: query_hql.xml:523
#, no-c-format
msgid "An \"any\" type has the special properties <literal>id</literal> and <literal>class</literal> that allows you to express a join in the following way (where <literal>AuditLog.item</literal> is a property mapped with <literal><any></literal>):"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:529
-#, no-c-format
-msgid ""
- "<![CDATA[from AuditLog log, Payment payment\n"
- "where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:531
#, no-c-format
msgid "The <literal>log.item.class</literal> and <literal>payment.class</literal> would refer to the values of completely different database columns in the above query."
msgstr ""
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr ""
#. Tag: para
-#: query_hql.xml:541
#, no-c-format
msgid "Expressions used in the <literal>where</literal> clause include the following:"
msgstr ""
#. Tag: para
-#: query_hql.xml:548
#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:553
#, no-c-format
msgid "binary comparison operators: <literal>=, >=, <=, <>, !=, like</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:563
#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
msgstr ""
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid "<literal>in</literal>, <literal>not in</literal>, <literal>between</literal>, <literal>is null</literal>, <literal>is not null</literal>, <literal>is empty</literal>, <literal>is not empty</literal>, <literal>member of</literal> and <literal>not member of</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid "\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid "string concatenation <literal>...||...</literal> or <literal>concat(...,...)</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:592
#, no-c-format
msgid "<literal>current_date()</literal>, <literal>current_time()</literal>, and <literal>current_timestamp()</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:598
#, no-c-format
msgid "<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, and <literal>year(...)</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid "Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid "<literal>str()</literal> for converting numeric or temporal values to a readable string"
msgstr ""
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid "<literal>cast(... as ...)</literal>, where the second argument is the name of a Hibernate type, and <literal>extract(... from ...)</literal> if ANSI <literal>cast()</literal> and <literal>extract()</literal> is supported by the underlying database"
msgstr ""
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid "the HQL <literal>index()</literal> function, that applies to aliases of a joined indexed collection"
msgstr ""
#. Tag: para
-#: query_hql.xml:636
#, no-c-format
msgid "HQL functions that take collection-valued path expressions: <literal>size(), minelement(), maxelement(), minindex(), maxindex()</literal>, along with the special <literal>elements()</literal> and <literal>indices</literal> functions that can be quantified using <literal>some, all, exists, any, in</literal>."
msgstr ""
#. Tag: para
-#: query_hql.xml:644
#, no-c-format
msgid "Any database-supported SQL scalar function like <literal>sign()</literal>, <literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:655
#, no-c-format
msgid "named parameters <literal>:name</literal>, <literal>:start_date</literal>, and <literal>:x1</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid "SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid "Java <literal>public static final</literal> constants <literal>eg.Color.TABBY</literal>"
msgstr ""
#. Tag: para
-#: query_hql.xml:672
#, no-c-format
msgid "<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
#, no-c-format
msgid "The negated forms can be written as follows:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:684
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:688
#, no-c-format
msgid "Similarly, <literal>is null</literal> and <literal>is not null</literal> can be used to test for null values."
msgstr ""
#. Tag: para
-#: query_hql.xml:693
#, no-c-format
msgid "Booleans can be easily used in expressions by declaring HQL query substitutions in Hibernate configuration:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid "<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid "This will replace the keywords <literal>true</literal> and <literal>false</literal> with the literals <literal>1</literal> and <literal>0</literal> in the translated SQL from this HQL:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
#, no-c-format
msgid "You can test the size of a collection with the special property <literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
#, no-c-format
msgid "For indexed collections, you can refer to the minimum and maximum indices using <literal>minindex</literal> and <literal>maxindex</literal> functions. Similarly, you can refer to the minimum and maximum elements of a collection of basic type using the <literal>minelement</literal> and <literal>maxelement</literal> functions. For example:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:724
-#, no-c-format
-msgid "<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:730
#, no-c-format
msgid "The SQL functions <literal>any, some, all, exists, in</literal> are supported when passed the element or index set of a collection (<literal>elements</literal> and <literal>indices</literal> functions) or the result of a subquery (see below):"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:736
-#, no-c-format
-msgid ""
- "<![CDATA[select mother from Cat as mother, Cat as kit\n"
- "where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
- "<![CDATA[select p from NameList list, Person p\n"
- "where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:746
#, no-c-format
msgid "Note that these constructs - <literal>size</literal>, <literal>elements</literal>, <literal>indices</literal>, <literal>minindex</literal>, <literal>maxindex</literal>, <literal>minelement</literal>, <literal>maxelement</literal> - can only be used in the where clause in Hibernate3."
msgstr ""
#. Tag: para
-#: query_hql.xml:753
#, no-c-format
msgid "Elements of indexed collections (arrays, lists, and maps) can be referred to by index in a where clause only:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:758
-#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
-msgid ""
- "<![CDATA[select person from Person person, Calendar calendar\n"
- "where calendar.holidays['national day'] = person.birthDay\n"
- " and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
- "<![CDATA[select item from Item item, Order order\n"
- "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
- "<![CDATA[select item from Item item, Order order\n"
- "where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:766
#, no-c-format
msgid "The expression inside <literal>[]</literal> can even be an arithmetic expression:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:770
-#, no-c-format
-msgid ""
- "<![CDATA[select item from Item item, Order order\n"
- "where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:772
#, no-c-format
msgid "HQL also provides the built-in <literal>index()</literal> function for elements of a one-to-many association or collection of values."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
- "<![CDATA[select item, index(item) from Order order\n"
- " join order.items item\n"
- "where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:783
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:785
#, no-c-format
msgid "Consider how much longer and less readable the following query would be in SQL:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
- "<![CDATA[select cust\n"
- "from Product prod,\n"
- " Store store\n"
- " inner join store.customers cust\n"
- "where prod.name = 'widget'\n"
- " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
- " and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
- "<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust.current_order\n"
- "FROM customers cust,\n"
- " stores store,\n"
- " locations loc,\n"
- " store_customers sc,\n"
- " product prod\n"
- "WHERE prod.name = 'widget'\n"
- " AND store.loc_id = loc.id\n"
- " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
- " AND sc.store_id = store.id\n"
- " AND sc.cust_id = cust.id\n"
- " AND prod.id = ALL(\n"
- " SELECT item.prod_id\n"
- " FROM line_items item, orders o\n"
- " WHERE item.order_id = o.id\n"
- " AND cust.current_order = o.id\n"
- " )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
msgstr ""
#. Tag: para
-#: query_hql.xml:803
#, no-c-format
msgid "The list returned by a query can be ordered by any property of a returned class or components:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
- "<![CDATA[from DomesticCat cat\n"
- "order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid "The optional <literal>asc</literal> or <literal>desc</literal> indicate ascending or descending order respectively."
msgstr ""
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
msgstr ""
#. Tag: para
-#: query_hql.xml:818
#, no-c-format
msgid "A query that returns aggregate values can be grouped by any property of a returned class or components:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
- "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
- "from Cat cat\n"
- "group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
- "<![CDATA[select foo.id, avg(name), max(name)\n"
- "from Foo foo join foo.names name\n"
- "group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:830
-#, no-c-format
-msgid ""
- "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
- "from Cat cat\n"
- "group by cat.color\n"
- "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:832
#, no-c-format
msgid "SQL functions and aggregate functions are allowed in the <literal>having</literal> and <literal>order by</literal> clauses if they are supported by the underlying database (i.e., not in MySQL)."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:838
-#, no-c-format
-msgid ""
- "<![CDATA[select cat\n"
- "from Cat cat\n"
- " join cat.kittens kitten\n"
- "group by cat.id, cat.name, cat.other, cat.properties\n"
- "having avg(kitten.weight) > 100\n"
- "order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:840
#, no-c-format
msgid "Neither the <literal>group by</literal> clause nor the <literal>order by</literal> clause can contain arithmetic expressions. Hibernate also does not currently expand a grouped entity, so you cannot write <literal>group by cat</literal> if all properties of <literal>cat</literal> are non-aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
msgstr ""
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid "For databases that support subselects, Hibernate supports subqueries within queries. A subquery must be surrounded by parentheses (often by an SQL aggregate function call). Even correlated subqueries (subqueries that refer to an alias in the outer query) are allowed."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as fatcat\n"
- "where fatcat.weight > (\n"
- " select avg(cat.weight) from DomesticCat cat\n"
- ")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
- "<![CDATA[from DomesticCat as cat\n"
- "where cat.name = some (\n"
- " select name.nickName from Name as name\n"
- ")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- "where not exists (\n"
- " from Cat as mate where mate.mate = cat\n"
- ")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
- "<![CDATA[from DomesticCat as cat\n"
- "where cat.name not in (\n"
- " select name.nickName from Name as name\n"
- ")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
- "<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
- "from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
#. Tag: para
-#: query_hql.xml:874
#, no-c-format
-msgid "Note that subqueries can also utilize <literal>row value constructor</literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+msgid "Note that subqueries can also utilize <literal>row value constructor</literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more information."
msgstr ""
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
msgstr ""
#. Tag: para
-#: query_hql.xml:884
#, no-c-format
msgid "Hibernate queries can be quite powerful and complex. In fact, the power of the query language is one of Hibernate's main strengths. The following example queries are similar to queries that have been used on recent projects. Please note that most queries you will write will be much simpler than the following examples."
msgstr ""
#. Tag: para
-#: query_hql.xml:890
#, no-c-format
msgid "The following query returns the order id, number of items, the given minimum total value and the total value of the order for all unpaid orders for a particular customer. The results are ordered by total value. In determining the prices, it uses the current catalog. The resulting SQL query, against the <literal>ORDER</literal>, <literal>ORDER_LINE</literal>, <literal>PRODUCT</literal>, <literal>CATALOG</literal> and <literal>PRICE</literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
- "<![CDATA[select order.id, sum(price.amount), count(item)\n"
- "from Order as order\n"
- " join order.lineItems as item\n"
- " join item.product as product,\n"
- " Catalog as catalog\n"
- " join catalog.prices as price\n"
- "where order.paid = false\n"
- " and order.customer = :customer\n"
- " and price.product = product\n"
- " and catalog.effectiveDate < sysdate\n"
- " and catalog.effectiveDate >= all (\n"
- " select cat.effectiveDate\n"
- " from Catalog as cat\n"
- " where cat.effectiveDate < sysdate\n"
- " )\n"
- "group by order\n"
- "having sum(price.amount) > :minAmount\n"
- "order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid "What a monster! Actually, in real life, I'm not very keen on subqueries, so my query was really more like this:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
- "<![CDATA[select order.id, sum(price.amount), count(item)\n"
- "from Order as order\n"
- " join order.lineItems as item\n"
- " join item.product as product,\n"
- " Catalog as catalog\n"
- " join catalog.prices as price\n"
- "where order.paid = false\n"
- " and order.customer = :customer\n"
- " and price.product = product\n"
- " and catalog = :currentCatalog\n"
- "group by order\n"
- "having sum(price.amount) > :minAmount\n"
- "order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid "The next query counts the number of payments in each status, excluding all payments in the <literal>AWAITING_APPROVAL</literal> status where the most recent status change was made by the current user. It translates to an SQL query with two inner joins and a correlated subselect against the <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal> and <literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:916
-#, no-c-format
-msgid ""
- "<![CDATA[select count(payment), status.name\n"
- "from Payment as payment\n"
- " join payment.currentStatus as status\n"
- " join payment.statusChanges as statusChange\n"
- "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
- " or (\n"
- " statusChange.timeStamp = (\n"
- " select max(change.timeStamp)\n"
- " from PaymentStatusChange change\n"
- " where change.payment = payment\n"
- " )\n"
- " and statusChange.user <> :currentUser\n"
- " )\n"
- "group by status.name, status.sortOrder\n"
- "order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:918
#, no-c-format
msgid "If the <literal>statusChanges</literal> collection was mapped as a list, instead of a set, the query would have been much simpler to write."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
- "<![CDATA[select count(payment), status.name\n"
- "from Payment as payment\n"
- " join payment.currentStatus as status\n"
- "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
- " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :currentUser\n"
- "group by status.name, status.sortOrder\n"
- "order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid "The next query uses the MS SQL Server <literal>isNull()</literal> function to return all the accounts and unpaid payments for the organization to which the current user belongs. It translates to an SQL query with three inner joins, an outer join and a subselect against the <literal>ACCOUNT</literal>, <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal>, <literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and <literal>ORG_USER</literal> tables."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
- "<![CDATA[select account, payment\n"
- "from Account as account\n"
- " left outer join account.payments as payment\n"
- "where :currentUser in elements(account.holder.users)\n"
- " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, PaymentStatus.UNPAID)\n"
- "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid "For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
- "<![CDATA[select account, payment\n"
- "from Account as account\n"
- " join account.holder.users as user\n"
- " left outer join account.payments as payment\n"
- "where :currentUser = user\n"
- " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, PaymentStatus.UNPAID)\n"
- "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
msgstr ""
#. Tag: para
-#: query_hql.xml:947
#, no-c-format
-msgid "HQL now supports <literal>update</literal>, <literal>delete</literal> and <literal>insert ... select ...</literal> statements. See <xref linkend=\"batch-direct\"/> for more information."
+msgid "HQL now supports <literal>update</literal>, <literal>delete</literal> and <literal>insert ... select ...</literal> statements. See <xref linkend=\"batch-direct\" /> for more information."
msgstr ""
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr ""
#. Tag: para
-#: query_hql.xml:957
#, no-c-format
msgid "You can count the number of query results without returning them:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\").iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
- "<![CDATA[select usr.id, usr.name\n"
- "from User as usr\n"
- " left join usr.messages as msg\n"
- "group by usr.id, usr.name\n"
- "order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid "If your database supports subselects, you can place a condition upon selection size in the where clause of your query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:974
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:976
#, no-c-format
msgid "If your database does not support subselects, use the following query:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:980
-#, no-c-format
-msgid ""
- "<![CDATA[select usr.id, usr.name\n"
- "from User usr.name\n"
- " join usr.messages msg\n"
- "group by usr.id, usr.name\n"
- "having count(msg) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:983
#, no-c-format
msgid "As this solution cannot return a <literal>User</literal> with zero messages because of the inner join, the following form is also useful:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
- "<![CDATA[select usr.id, usr.name\n"
- "from User as usr\n"
- " left join usr.messages as msg\n"
- "group by usr.id, usr.name\n"
- "having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
- "<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name and foo.size=:size\");\n"
- "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
- "List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid "Collections are pageable by using the <literal>Query</literal> interface with a filter:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
- "<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial filter\n"
- "q.setMaxResults(PAGE_SIZE);\n"
- "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
- "List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
- "<![CDATA[Collection orderedCollection = s.filter( collection, \"order by this.amount\" );\n"
- "Collection counts = s.filter( collection, \"select this.type, count(this) group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\").iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
msgstr ""
#. Tag: para
-#: query_hql.xml:1019
#, no-c-format
msgid "Components can be used similarly to the simple value types that are used in HQL queries. They can appear in the <literal>select</literal> clause as follows:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid "where the Person's name property is a component. Components can also be used in the <literal>where</literal> clause:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
#, no-c-format
msgid "Another common use of components is in <link linkend=\"queryhql-tuple\">row value constructors</link>."
msgstr ""
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
msgstr ""
#. Tag: para
-#: query_hql.xml:1050
#, no-c-format
msgid "HQL supports the use of ANSI SQL <literal>row value constructor</literal> syntax, sometimes referred to AS <literal>tuple</literal> syntax, even though the underlying database may not support that notion. Here, we are generally referring to multi-valued comparisons, typically associated with components. Consider an entity Person which defines a name component:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first='John' and p.name.last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, no-c-format
msgid "That is valid syntax although it is a little verbose. You can make this more concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid "It can also be useful to specify this in the <literal>select</literal> clause:"
msgstr ""
#. Tag: para
-#: query_hql.xml:1072
#, no-c-format
msgid "Using <literal>row value constructor</literal> syntax can also be beneficial when using subqueries that need to compare against multiple values:"
msgstr ""
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
- "<![CDATA[from Cat as cat\n"
- "where not ( cat.name, cat.color ) in (\n"
- " select cat.name, cat.color from DomesticCat cat\n"
- ")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, no-c-format
msgid "One thing to consider when deciding if you want to use this syntax, is that the query will be dependent upon the ordering of the component sub-properties in the metadata."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/query_sql.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/query_sql.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/query_sql.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1112 +1,594 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
msgstr ""
#. Tag: para
-#: query_sql.xml:31
#, no-c-format
msgid "You can also express queries in the native SQL dialect of your database. This is useful if you want to utilize database-specific features such as query hints or the <literal>CONNECT</literal> keyword in Oracle. It also provides a clean migration path from a direct SQL/JDBC based application to Hibernate."
msgstr ""
#. Tag: para
-#: query_sql.xml:37
#, no-c-format
msgid "Hibernate3 allows you to specify handwritten SQL, including stored procedures, for all create, update, delete, and load operations."
msgstr ""
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
msgstr ""
#. Tag: para
-#: query_sql.xml:43
#, no-c-format
msgid "Execution of native SQL queries is controlled via the <literal>SQLQuery</literal> interface, which is obtained by calling <literal>Session.createSQLQuery()</literal>. The following sections describe how to use this API for querying."
msgstr ""
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
msgstr ""
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:54
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
- "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:56
#, no-c-format
msgid "These will return a List of Object arrays (Object[]) with scalar values for each column in the CATS table. Hibernate will use ResultSetMetadata to deduce the actual order and types of the returned scalar values."
msgstr ""
#. Tag: para
-#: query_sql.xml:61
#, no-c-format
msgid "To avoid the overhead of using <literal>ResultSetMetadata</literal>, or simply to be more explicit in what is returned, one can use <literal>addScalar()</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
- " .addScalar(\"ID\", Hibernate.LONG)\n"
- " .addScalar(\"NAME\", Hibernate.STRING)\n"
- " .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
msgstr ""
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
msgstr ""
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
msgstr ""
#. Tag: para
-#: query_sql.xml:79
#, no-c-format
msgid "This will return Object arrays, but now it will not use <literal>ResultSetMetadata</literal> but will instead explicitly get the ID, NAME and BIRTHDATE column as respectively a Long, String and a Short from the underlying resultset. This also means that only these three columns will be returned, even though the query is using <literal>*</literal> and could return more than the three listed columns."
msgstr ""
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid "It is possible to leave out the type information for all or some of the scalars."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:90
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
- " .addScalar(\"ID\", Hibernate.LONG)\n"
- " .addScalar(\"NAME\")\n"
- " .addScalar(\"BIRTHDATE\")\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:92
#, no-c-format
msgid "This is essentially the same query as before, but now <literal>ResultSetMetaData</literal> is used to determine the type of NAME and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
#. Tag: para
-#: query_sql.xml:96
#, no-c-format
msgid "How the java.sql.Types returned from ResultSetMetaData is mapped to Hibernate types is controlled by the Dialect. If a specific type is not mapped, or does not result in the expected type, it is possible to customize it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
msgstr ""
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid "The above queries were all about returning scalar values, basically returning the \"raw\" values from the resultset. The following shows how to get entity objects from a native sql query via <literal>addEntity()</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
- "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat.class);\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
msgstr ""
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid "Assuming that Cat is mapped as a class with the columns ID, NAME and BIRTHDATE the above queries will both return a List where each element is a Cat entity."
msgstr ""
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid "If the entity is mapped with a <literal>many-to-one</literal> to another entity it is required to also return this when performing the native query, otherwise a database specific \"column not found\" error will occur. The additional columns will automatically be returned when using the * notation, but we prefer to be explicit as in the following example for a <literal>many-to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS\").addEntity(Cat.class);\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
msgstr ""
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
msgstr ""
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid "It is possible to eagerly join in the <literal>Dog</literal> to avoid the possible extra roundtrip for initializing the proxy. This is done via the <literal>addJoin()</literal> method, which allows you to join in an association or collection."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:150
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- " .addJoin(\"cat.dog\");\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:152
#, no-c-format
msgid "In this example, the returned <literal>Cat</literal>'s will have their <literal>dog</literal> property fully initialized without any extra roundtrip to the database. Notice that you added an alias name (\"cat\") to be able to specify the target property path of the join. It is possible to do the same eager joining for collections, e.g. if the <literal>Cat</literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:160
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- " .addJoin(\"cat.dogs\");\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:162
#, no-c-format
msgid "At this stage you are reaching the limits of what is possible with native queries, without starting to enhance the sql queries to make them usable in Hibernate. Problems can arise when returning multiple entities of the same type or when the default alias/column names are not enough."
msgstr ""
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
msgstr ""
#. Tag: para
-#: query_sql.xml:172
#, no-c-format
msgid "Until now, the result set column names are assumed to be the same as the column names specified in the mapping document. This can be problematic for SQL queries that join multiple tables, since the same column names can appear in more than one table."
msgstr ""
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid "Column alias injection is needed in the following query (which most likely will fail):"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:180
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c.MOTHER_ID = c.ID\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- " .addEntity(\"mother\", Cat.class)\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:184
#, no-c-format
msgid "The query was intended to return two Cat instances per row: a cat and its mother. The query will, however, fail because there is a conflict of names; the instances are mapped to the same column names. Also, on some databases the returned column aliases will most likely be on the form \"c.ID\", \"c.NAME\", etc. which are not equal to the columns specified in the mappings (\"ID\" and \"NAME\")."
msgstr ""
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS m WHERE c.MOTHER_ID = c.ID\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- " .addEntity(\"mother\", Cat.class)\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid "the SQL query string, with placeholders for Hibernate to inject column aliases"
msgstr ""
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
msgstr ""
#. Tag: para
-#: query_sql.xml:211
#, no-c-format
msgid "The {cat.*} and {mother.*} notation used above is a shorthand for \"all properties\". Alternatively, you can list the columns explicitly, but even in this case Hibernate injects the SQL column aliases for each property. The placeholder for a column alias is just the property name qualified by the table alias. In the following example, you retrieve Cats and their mothers from a different table (cat_log) to the one declared in the mapping metadata. You can even use the property aliases in the where clause."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
- "<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
- " \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} \" +\n"
- " \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
- "\n"
- "List loggedCats = sess.createSQLQuery(sql)\n"
- " .addEntity(\"cat\", Cat.class)\n"
- " .addEntity(\"mother\", Cat.class).list()\n"
- "]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
msgstr ""
#. Tag: para
-#: query_sql.xml:225
#, no-c-format
msgid "In most cases the above alias injection is needed. For queries relating to more complex mappings, like composite properties, inheritance discriminators, collections etc., you can use specific aliases that allow Hibernate to inject the proper aliases."
msgstr ""
#. Tag: para
-#: query_sql.xml:230
#, no-c-format
msgid "The following table shows the different ways you can use the alias injection. Please note that the alias names in the result are simply examples; each alias will have a unique and probably different name when used."
msgstr ""
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
msgstr ""
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
msgstr ""
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
msgstr ""
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
msgstr ""
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:259
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].[propertyname]"
+msgid "<literal>{[aliasname].[propertyname]</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:261
+#. Tag: entry
#, no-c-format
-msgid "A_NAME as {item.name}"
+msgid "<literal>A_NAME as {item.name}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:267
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:269
+#. Tag: entry
#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+msgid "<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:276
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].class}"
+msgid "<literal>{[aliasname].class}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:278
+#. Tag: entry
#, no-c-format
-msgid "DISC as {item.class}"
+msgid "<literal>DISC as {item.class}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].*}"
+msgid "<literal>{[aliasname].*}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
+msgid "<literal>{item.*}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:292
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].key}"
+msgid "<literal>{[aliasname].key}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:294
+#. Tag: entry
#, no-c-format
-msgid "ORGID as {coll.key}"
+msgid "<literal>ORGID as {coll.key}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:300
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].id}"
+msgid "<literal>{[aliasname].id}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:302
+#. Tag: entry
#, no-c-format
-msgid "EMPID as {coll.id}"
+msgid "<literal>EMPID as {coll.id}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:308
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element}"
+msgid "<literal>{[aliasname].element}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:310
+#. Tag: entry
#, no-c-format
-msgid "XID as {coll.element}"
+msgid "<literal>XID as {coll.element}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:314
#, no-c-format
msgid "property of the element in the collection"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:316
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:318
+#. Tag: entry
#, no-c-format
-msgid "NAME as {coll.element.name}"
+msgid "<literal>NAME as {coll.element.name}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:322
#, no-c-format
msgid "All properties of the element in the collection"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:324
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.*}"
+msgid "<literal>{[aliasname].element.*}</literal>"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:326
+#. Tag: entry
#, no-c-format
-msgid "{coll.element.*}"
+msgid "<literal>{coll.element.*}</literal>"
msgstr ""
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
msgstr ""
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
msgstr ""
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
msgstr ""
#. Tag: para
-#: query_sql.xml:345
#, no-c-format
msgid "It is possible to apply a ResultTransformer to native SQL queries, allowing it to return non-managed entities."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
- "<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
- " .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
msgstr ""
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid "The above query will return a list of <literal>CatDTO</literal> which has been instantiated and injected the values of NAME and BIRTHNAME into its corresponding properties or fields."
msgstr ""
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
msgstr ""
#. Tag: para
-#: query_sql.xml:370
#, no-c-format
msgid "Native SQL queries which query for entities that are mapped as part of an inheritance must include all properties for the baseclass and all its subclasses."
msgstr ""
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
msgstr ""
#. Tag: para
-#: query_sql.xml:378
#, no-c-format
msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:381
-#, no-c-format
-msgid ""
- "<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like ?\").addEntity(Cat.class);\n"
- "List pusList = query.setString(0, \"Pus%\").list();\n"
- " \n"
- "query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\").addEntity(Cat.class);\n"
- "List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
msgstr ""
#. Tag: para
-#: query_sql.xml:391
#, no-c-format
msgid "Named SQL queries can be defined in the mapping document and called in exactly the same way as a named HQL query. In this case, you do <emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:396
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"persons\">\n"
- " <return alias=\"person\" class=\"eg.Person\"/>\n"
- " SELECT person.NAME AS {person.name},\n"
- " person.AGE AS {person.age},\n"
- " person.SEX AS {person.sex}\n"
- " FROM PERSON person\n"
- " WHERE person.NAME LIKE :namePattern\n"
- "</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
- "<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
- " .setString(\"namePattern\", namePattern)\n"
- " .setMaxResults(50)\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:400
#, no-c-format
msgid "The <literal><return-join></literal> element is use to join associations and the <literal><load-collection></literal> element is used to define queries which initialize collections,"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"personsWith\">\n"
- " <return alias=\"person\" class=\"eg.Person\"/>\n"
- " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
- " SELECT person.NAME AS {person.name},\n"
- " person.AGE AS {person.age},\n"
- " person.SEX AS {person.sex},\n"
- " address.STREET AS {address.street},\n"
- " address.CITY AS {address.city},\n"
- " address.STATE AS {address.state},\n"
- " address.ZIP AS {address.zip}\n"
- " FROM PERSON person\n"
- " JOIN ADDRESS address\n"
- " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
- " WHERE person.NAME LIKE :namePattern\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid "A named SQL query may return a scalar value. You must declare the column alias and Hibernate type using the <literal><return-scalar></literal> element:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:410
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
- " <return-scalar column=\"name\" type=\"string\"/>\n"
- " <return-scalar column=\"age\" type=\"long\"/>\n"
- " SELECT p.NAME AS name,\n"
- " p.AGE AS age,\n"
- " FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:412
#, no-c-format
msgid "You can externalize the resultset mapping information in a <literal><resultset></literal> element which will allow you to either reuse them across several named queries or through the <literal>setResultSetMapping()</literal> API."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:417
-#, no-c-format
-msgid ""
- "<![CDATA[<resultset name=\"personAddress\">\n"
- " <return alias=\"person\" class=\"eg.Person\"/>\n"
- " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
- "</resultset>\n"
- "\n"
- "<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
- " SELECT person.NAME AS {person.name},\n"
- " person.AGE AS {person.age},\n"
- " person.SEX AS {person.sex},\n"
- " address.STREET AS {address.street},\n"
- " address.CITY AS {address.city},\n"
- " address.STATE AS {address.state},\n"
- " address.ZIP AS {address.zip}\n"
- " FROM PERSON person\n"
- " JOIN ADDRESS address\n"
- " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
- " WHERE person.NAME LIKE :namePattern\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:419
#, no-c-format
msgid "You can, alternatively, use the resultset mapping information in your hbm files directly in java code."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = sess.createSQLQuery(\n"
- " \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten.mother = cat.id\"\n"
- " )\n"
- " .setResultSetMapping(\"catAndKitten\")\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
msgstr ""
#. Tag: para
-#: query_sql.xml:428
#, no-c-format
msgid "You can explicitly tell Hibernate what column aliases to use with <literal><return-property></literal>, instead of using the <literal>{}</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:433
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
- " <return alias=\"person\" class=\"eg.Person\">\n"
- " <return-property name=\"name\" column=\"myName\"/>\n"
- " <return-property name=\"age\" column=\"myAge\"/>\n"
- " <return-property name=\"sex\" column=\"mySex\"/>\n"
- " </return>\n"
- " SELECT person.NAME AS myName,\n"
- " person.AGE AS myAge,\n"
- " person.SEX AS mySex,\n"
- " FROM PERSON person WHERE person.NAME LIKE :name\n"
- "</sql-query>\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:435
#, no-c-format
msgid "<literal><return-property></literal> also works with multiple columns. This solves a limitation with the <literal>{}</literal>-syntax which cannot allow fine grained control of multi-column properties."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:440
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
- " <return alias=\"emp\" class=\"Employment\">\n"
- " <return-property name=\"salary\">\n"
- " <return-column name=\"VALUE\"/>\n"
- " <return-column name=\"CURRENCY\"/>\n"
- " </return-property>\n"
- " <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
- " </return>\n"
- " SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
- " STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
- " REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
- " FROM EMPLOYMENT\n"
- " WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
- " ORDER BY STARTDATE ASC\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:442
#, no-c-format
msgid "In this example <literal><return-property></literal> was used in combination with the <literal>{}</literal>-syntax for injection. This allows users to choose how they want to refer column and properties."
msgstr ""
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid "If your mapping has a discriminator you must use <literal><return-discriminator></literal> to specify the discriminator column."
msgstr ""
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
msgstr ""
#. Tag: para
-#: query_sql.xml:455
#, no-c-format
msgid "Hibernate3 provides support for queries via stored procedures and functions. Most of the following documentation is equivalent for both. The stored procedure/function must return a resultset as the first out-parameter to be able to work with Hibernate. An example of such a stored function in Oracle 9 and higher is as follows:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
- "<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
- " RETURN SYS_REFCURSOR\n"
- "AS\n"
- " st_cursor SYS_REFCURSOR;\n"
- "BEGIN\n"
- " OPEN st_cursor FOR\n"
- " SELECT EMPLOYEE, EMPLOYER,\n"
- " STARTDATE, ENDDATE,\n"
- " REGIONCODE, EID, VALUE, CURRENCY\n"
- " FROM EMPLOYMENT;\n"
- " RETURN st_cursor;\n"
- " END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:466
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
- " <return alias=\"emp\" class=\"Employment\">\n"
- " <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
- " <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
- " <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
- " <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
- " <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
- " <return-property name=\"id\" column=\"EID\"/>\n"
- " <return-property name=\"salary\">\n"
- " <return-column name=\"VALUE\"/>\n"
- " <return-column name=\"CURRENCY\"/>\n"
- " </return-property>\n"
- " </return>\n"
- " { ? = call selectAllEmployments() }\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:468
#, no-c-format
msgid "Stored procedures currently only return scalars and entities. <literal><return-join></literal> and <literal><load-collection></literal> are not supported."
msgstr ""
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
msgstr ""
#. Tag: para
-#: query_sql.xml:475
#, no-c-format
msgid "You cannot use stored procedures with Hibernate unless you follow some procedure/function rules. If they do not follow those rules they are not usable with Hibernate. If you still want to use these procedures you have to execute them via <literal>session.connection()</literal>. The rules are different for each database, since database vendors have different stored procedure semantics/syntax."
msgstr ""
#. Tag: para
-#: query_sql.xml:482
#, no-c-format
msgid "Stored procedure queries cannot be paged with <literal>setFirstResult()/setMaxResults()</literal>."
msgstr ""
#. Tag: para
-#: query_sql.xml:485
#, no-c-format
msgid "The recommended call form is standard SQL92: <literal>{ ? = call functionName(<parameters>) }</literal> or <literal>{ ? = call procedureName(<parameters>}</literal>. Native call syntax is not supported."
msgstr ""
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
msgstr ""
#. Tag: para
-#: query_sql.xml:494
#, no-c-format
msgid "A function must return a result set. The first parameter of a procedure must be an <literal>OUT</literal> that returns a result set. This is done by using a <literal>SYS_REFCURSOR</literal> type in Oracle 9 or 10. In Oracle you need to define a <literal>REF CURSOR</literal> type. See Oracle literature for further information."
msgstr ""
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
msgstr ""
#. Tag: para
-#: query_sql.xml:507
#, no-c-format
msgid "The procedure must return a result set. Note that since these servers can return multiple result sets and update counts, Hibernate will iterate the results and take the first result that is a result set as its return value. Everything else will be discarded."
msgstr ""
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid "If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it will probably be more efficient, but this is not a requirement."
msgstr ""
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
msgstr ""
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
-msgid "Hibernate3 can use custom SQL statements for create, update, and delete operations. The class and collection persisters in Hibernate already contain a set of configuration time generated strings (insertsql, deletesql, updatesql etc.). The mapping tags <literal><sql-insert></literal>, <literal><sql-delete></literal>, and <literal><sql-update></literal> override these strings:"
+msgid "Hibernate3 can use custom SQL for create, update, and delete operations. The SQL can be overridden at the statement level or inidividual column level. This section describes statement overrides. For columns, see <xref linkend=\"mapping-column-read-and-write\" />."
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:535
+#. Tag: para
#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"increment\"/>\n"
- " </id>\n"
- " <property name=\"name\" not-null=\"true\"/>\n"
- " <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-insert>\n"
- " <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
- " <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
- "</class>]]>"
+msgid "The class and collection persisters in Hibernate already contain a set of configuration time generated strings (insertsql, deletesql, updatesql etc.). The mapping tags <literal><sql-insert></literal>, <literal><sql-delete></literal>, and <literal><sql-update></literal> override these strings:"
msgstr ""
#. Tag: para
-#: query_sql.xml:537
#, no-c-format
msgid "The SQL is directly executed in your database, so you can use any dialect you like. This will reduce the portability of your mapping if you use database specific SQL."
msgstr ""
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid "Stored procedures are supported if the <literal>callable</literal> attribute is set:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:544
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"increment\"/>\n"
- " </id>\n"
- " <property name=\"name\" not-null=\"true\"/>\n"
- " <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
- " <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
- " <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-update>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:546
#, no-c-format
msgid "The order of the positional parameters is vital, as they must be in the same sequence as Hibernate expects them."
msgstr ""
#. Tag: para
-#: query_sql.xml:549
#, no-c-format
msgid "You can view the expected order by enabling debug logging for the <literal>org.hibernate.persister.entity</literal> level. With this level enabled, Hibernate will print out the static SQL that is used to create, update, delete etc. entities. To view the expected sequence, do not include your custom SQL in the mapping files, as this will override the Hibernate generated static SQL."
msgstr ""
#. Tag: para
-#: query_sql.xml:556
#, no-c-format
msgid "The stored procedures are in most cases required to return the number of rows inserted, updated and deleted, as Hibernate has some runtime checks for the success of the statement. Hibernate always registers the first statement parameter as a numeric output parameter for the CUD operations:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
- "<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN VARCHAR2)\n"
- " RETURN NUMBER IS\n"
- "BEGIN\n"
- "\n"
- " update PERSON\n"
- " set\n"
- " NAME = uname,\n"
- " where\n"
- " ID = uid;\n"
- "\n"
- " return SQL%ROWCOUNT;\n"
- "\n"
- "END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
msgstr ""
#. Tag: para
-#: query_sql.xml:568
#, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
+msgid "You can also declare your own SQL (or HQL) queries for entity loading. As with inserts, updates, and deletes, this can be done at the individual column level as described in <xref linkend=\"mapping-column-read-and-write\" /> or at the statement level. Here is an example of a statement level override:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:571
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"person\">\n"
- " <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
- " SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
- " FROM PERSON\n"
- " WHERE ID=?\n"
- " FOR UPDATE\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:573
#, no-c-format
msgid "This is just a named query declaration, as discussed earlier. You can reference this named query in a class mapping:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\">\n"
- " <id name=\"id\">\n"
- " <generator class=\"increment\"/>\n"
- " </id>\n"
- " <property name=\"name\" not-null=\"true\"/>\n"
- " <loader query-ref=\"person\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
msgstr ""
#. Tag: para
-#: query_sql.xml:580
#, no-c-format
msgid "You can even define a query for collection loading:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:582
-#, no-c-format
-msgid ""
- "<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
- " <key/>\n"
- " <one-to-many class=\"Employment\"/>\n"
- " <loader query-ref=\"employments\"/>\n"
- "</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"employments\">\n"
- " <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
- " SELECT {emp.*}\n"
- " FROM EMPLOYMENT emp\n"
- " WHERE EMPLOYER = :id\n"
- " ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
- "</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:586
#, no-c-format
msgid "You can also define an entity loader that loads a collection by join fetching:"
msgstr ""
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
- "<![CDATA[<sql-query name=\"person\">\n"
- " <return alias=\"pers\" class=\"Person\"/>\n"
- " <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
- " SELECT NAME AS {pers.*}, {emp.*}\n"
- " FROM PERSON pers\n"
- " LEFT OUTER JOIN EMPLOYMENT emp\n"
- " ON pers.ID = emp.PERSON_ID\n"
- " WHERE ID=?\n"
- "</sql-query>]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/session_api.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1354 +1,759 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-02-11T05:38:15\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr ""
#. Tag: para
-#: session_api.xml:31
#, no-c-format
msgid "Hibernate is a full object/relational mapping solution that not only shields the developer from the details of the underlying database management system, but also offers <emphasis>state management</emphasis> of objects. This is, contrary to the management of SQL <literal>statements</literal> in common JDBC/SQL persistence layers, a natural object-oriented view of persistence in Java applications."
msgstr ""
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid "In other words, Hibernate application developers should always think about the <emphasis>state</emphasis> of their objects, and not necessarily about the execution of SQL statements. This part is taken care of by Hibernate and is only relevant for the application developer when tuning the performance of the system."
msgstr ""
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
msgstr ""
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
msgstr ""
#. Tag: para
-#: session_api.xml:56
#, no-c-format
msgid "<emphasis>Transient</emphasis> - an object is transient if it has just been instantiated using the <literal>new</literal> operator, and it is not associated with a Hibernate <literal>Session</literal>. It has no persistent representation in the database and no identifier value has been assigned. Transient instances will be destroyed by the garbage collector if the application does not hold a reference anymore. Use the Hibernate <literal>Session</literal> to make an object persistent (and let Hibernate take care of the SQL statements that need to be executed for this transition)."
msgstr ""
#. Tag: para
-#: session_api.xml:68
#, no-c-format
msgid "<emphasis>Persistent</emphasis> - a persistent instance has a representation in the database and an identifier value. It might just have been saved or loaded, however, it is by definition in the scope of a <literal>Session</literal>. Hibernate will detect any changes made to an object in persistent state and synchronize the state with the database when the unit of work completes. Developers do not execute manual <literal>UPDATE</literal> statements, or <literal>DELETE</literal> statements when an object should be made transient."
msgstr ""
#. Tag: para
-#: session_api.xml:79
#, no-c-format
msgid "<emphasis>Detached</emphasis> - a detached instance is an object that has been persistent, but its <literal>Session</literal> has been closed. The reference to the object is still valid, of course, and the detached instance might even be modified in this state. A detached instance can be reattached to a new <literal>Session</literal> at a later point in time, making it (and all the modifications) persistent again. This feature enables a programming model for long running units of work that require user think-time. We call them <emphasis>application transactions</emphasis>, i.e., a unit of work from the point of view of the user."
msgstr ""
#. Tag: para
-#: session_api.xml:93
#, no-c-format
msgid "We will now discuss the states and state transitions (and the Hibernate methods that trigger a transition) in more detail."
msgstr ""
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr ""
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid "Newly instantiated instances of a a persistent class are considered <emphasis>transient</emphasis> by Hibernate. We can make a transient instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:110
-#, no-c-format
-msgid ""
- "<![CDATA[DomesticCat fritz = new DomesticCat();\n"
- "fritz.setColor(Color.GINGER);\n"
- "fritz.setSex('M');\n"
- "fritz.setName(\"Fritz\");\n"
- "Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:112
#, no-c-format
msgid "If <literal>Cat</literal> has a generated identifier, the identifier is generated and assigned to the <literal>cat</literal> when <literal>save()</literal> is called. If <literal>Cat</literal> has an <literal>assigned</literal> identifier, or a composite key, the identifier should be assigned to the <literal>cat</literal> instance before calling <literal>save()</literal>. You can also use <literal>persist()</literal> instead of <literal>save()</literal>, with the semantics defined in the EJB3 early draft."
msgstr ""
#. Tag: para
-#: session_api.xml:124
#, no-c-format
msgid "<literal>persist()</literal> makes a transient instance persistent. However, it does not guarantee that the identifier value will be assigned to the persistent instance immediately, the assignment might happen at flush time. <literal>persist()</literal> also guarantees that it will not execute an <literal>INSERT</literal> statement if it is called outside of transaction boundaries. This is useful in long-running conversations with an extended Session/persistence context."
msgstr ""
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid "<literal>save()</literal> does guarantee to return an identifier. If an INSERT has to be executed to get the identifier ( e.g. \"identity\" generator, not \"sequence\"), this INSERT happens immediately, no matter if you are inside or outside of a transaction. This is problematic in a long-running conversation with an extended Session/persistence context."
msgstr ""
#. Tag: para
-#: session_api.xml:145
#, no-c-format
msgid "Alternatively, you can assign the identifier using an overloaded version of <literal>save()</literal>."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:150
-#, no-c-format
-msgid ""
- "<![CDATA[DomesticCat pk = new DomesticCat();\n"
- "pk.setColor(Color.TABBY);\n"
- "pk.setSex('F');\n"
- "pk.setName(\"PK\");\n"
- "pk.setKittens( new HashSet() );\n"
- "pk.addKitten(fritz);\n"
- "sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:152
#, no-c-format
msgid "If the object you make persistent has associated objects (e.g. the <literal>kittens</literal> collection in the previous example), these objects can be made persistent in any order you like unless you have a <literal>NOT NULL</literal> constraint upon a foreign key column. There is never a risk of violating foreign key constraints. However, you might violate a <literal>NOT NULL</literal> constraint if you <literal>save()</literal> the objects in the wrong order."
msgstr ""
#. Tag: para
-#: session_api.xml:162
#, no-c-format
msgid "Usually you do not bother with this detail, as you will normally use Hibernate's <emphasis>transitive persistence</emphasis> feature to save the associated objects automatically. Then, even <literal>NOT NULL</literal> constraint violations do not occur - Hibernate will take care of everything. Transitive persistence is discussed later in this chapter."
msgstr ""
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr ""
#. Tag: para
-#: session_api.xml:175
#, no-c-format
msgid "The <literal>load()</literal> methods of <literal>Session</literal> provide a way of retrieving a persistent instance if you know its identifier. <literal>load()</literal> takes a class object and loads the state into a newly instantiated instance of that class in a persistent state."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
- "<![CDATA[// you need to wrap primitive identifiers\n"
- "long id = 1234;\n"
- "DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:190
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = new DomesticCat();\n"
- "// load pk's state into cat\n"
- "sess.load( cat, new Long(pkId) );\n"
- "Set kittens = cat.getKittens();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:192
#, no-c-format
msgid "Be aware that <literal>load()</literal> will throw an unrecoverable exception if there is no matching database row. If the class is mapped with a proxy, <literal>load()</literal> just returns an uninitialized proxy and does not actually hit the database until you invoke a method of the proxy. This is useful if you wish to create an association to an object without actually loading it from the database. It also allows multiple instances to be loaded as a batch if <literal>batch-size</literal> is defined for the class mapping."
msgstr ""
#. Tag: para
-#: session_api.xml:203
#, no-c-format
msgid "If you are not certain that a matching row exists, you should use the <literal>get()</literal> method which hits the database immediately and returns null if there is no matching row."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:209
-#, no-c-format
-msgid ""
- "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
- "if (cat==null) {\n"
- " cat = new Cat();\n"
- " sess.save(cat, id);\n"
- "}\n"
- "return cat;]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:211
#, no-c-format
msgid "You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</literal>, using a <literal>LockMode</literal>. See the API documentation for more information."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:216
-#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:218
#, no-c-format
msgid "Any associated instances or contained collections will <emphasis>not</emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to specify <literal>lock</literal> or <literal>all</literal> as a cascade style for the association."
msgstr ""
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid "It is possible to re-load an object and all its collections at any time, using the <literal>refresh()</literal> method. This is useful when database triggers are used to initialize some of the properties of the object."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
- "<![CDATA[sess.save(cat);\n"
- "sess.flush(); //force the SQL INSERT\n"
- "sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, no-c-format
-msgid "How much does Hibernate load from the database and how many SQL <literal>SELECT</literal>s will it use? This depends on the <emphasis>fetching strategy</emphasis>. This is explained in <xref linkend=\"performance-fetching\"/>."
+msgid "How much does Hibernate load from the database and how many SQL <literal>SELECT</literal>s will it use? This depends on the <emphasis>fetching strategy</emphasis>. This is explained in <xref linkend=\"performance-fetching\" />."
msgstr ""
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr ""
#. Tag: para
-#: session_api.xml:245
#, no-c-format
msgid "If you do not know the identifiers of the objects you are looking for, you need a query. Hibernate supports an easy-to-use but powerful object oriented query language (HQL). For programmatic query creation, Hibernate supports a sophisticated Criteria and Example query feature (QBC and QBE). You can also express your query in the native SQL of your database, with optional support from Hibernate for result set conversion into objects."
msgstr ""
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr ""
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid "HQL and native SQL queries are represented with an instance of <literal>org.hibernate.Query</literal>. This interface offers methods for parameter binding, result set handling, and for the execution of the actual query. You always obtain a <literal>Query</literal> using the current <literal>Session</literal>:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:264
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = session.createQuery(\n"
- " \"from Cat as cat where cat.birthdate < ?\")\n"
- " .setDate(0, date)\n"
- " .list();\n"
- "\n"
- "List mothers = session.createQuery(\n"
- " \"select mother from Cat as cat join cat.mother as mother where cat.name = ?\")\n"
- " .setString(0, name)\n"
- " .list();\n"
- "\n"
- "List kittens = session.createQuery(\n"
- " \"from Cat as cat where cat.mother = ?\")\n"
- " .setEntity(0, pk)\n"
- " .list();\n"
- "\n"
- "Cat mother = (Cat) session.createQuery(\n"
- " \"select cat.mother from Cat as cat where cat = ?\")\n"
- " .setEntity(0, izi)\n"
- " .uniqueResult();]]\n"
- "\n"
- "Query mothersWithKittens = (Cat) session.createQuery(\n"
- " \"select mother from Cat as mother left join fetch mother.kittens\");\n"
- "Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:266
#, no-c-format
msgid "A query is usually executed by invoking <literal>list()</literal>. The result of the query will be loaded completely into a collection in memory. Entity instances retrieved by a query are in a persistent state. The <literal>uniqueResult()</literal> method offers a shortcut if you know your query will only return a single object. Queries that make use of eager fetching of collections usually return duplicates of the root objects, but with their collections initialized. You can filter these duplicates through a <literal>Set</literal>."
msgstr ""
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
msgstr ""
#. Tag: para
-#: session_api.xml:280
#, no-c-format
msgid "Occasionally, you might be able to achieve better performance by executing the query using the <literal>iterate()</literal> method. This will usually be the case if you expect that the actual entity instances returned by the query will already be in the session or second-level cache. If they are not already cached, <literal>iterate()</literal> will be slower than <literal>list()</literal> and might require many database hits for a simple query, usually <emphasis>1</emphasis> for the initial select which only returns identifiers, and <emphasis>n</emphasis> additional selects to initialize the actual instances."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
- "<![CDATA[// fetch ids\n"
- "Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\").iterate();\n"
- "while ( iter.hasNext() ) {\n"
- " Qux qux = (Qux) iter.next(); // fetch the object\n"
- " // something we couldnt express in the query\n"
- " if ( qux.calculateComplicatedAlgorithm() ) {\n"
- " // delete the current instance\n"
- " iter.remove();\n"
- " // dont need to process the rest\n"
- " break;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr ""
#. Tag: para
-#: session_api.xml:298
#, no-c-format
msgid "Hibernate queries sometimes return tuples of objects. Each tuple is returned as an array:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
- "<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
- " \"select kitten, mother from Cat kitten join kitten.mother mother\")\n"
- " .list()\n"
- " .iterator();\n"
- "\n"
- "while ( kittensAndMothers.hasNext() ) {\n"
- " Object[] tuple = (Object[]) kittensAndMothers.next();\n"
- " Cat kitten = (Cat) tuple[0];\n"
- " Cat mother = (Cat) tuple[1];\n"
- " ....\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr ""
#. Tag: para
-#: session_api.xml:310
#, no-c-format
msgid "Queries can specify a property of a class in the <literal>select</literal> clause. They can even call SQL aggregate functions. Properties or aggregates are considered \"scalar\" results and not entities in persistent state."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
- "<![CDATA[Iterator results = sess.createQuery(\n"
- " \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" +\n"
- " \"group by cat.color\")\n"
- " .list()\n"
- " .iterator();\n"
- "\n"
- "while ( results.hasNext() ) {\n"
- " Object[] row = (Object[]) results.next();\n"
- " Color type = (Color) row[0];\n"
- " Date oldest = (Date) row[1];\n"
- " Integer count = (Integer) row[2];\n"
- " .....\n"
- "}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
msgstr ""
#. Tag: para
-#: session_api.xml:323
#, no-c-format
msgid "Methods on <literal>Query</literal> are provided for binding values to named parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary to JDBC, Hibernate numbers parameters from zero.</emphasis> Named parameters are identifiers of the form <literal>:name</literal> in the query string. The advantages of named parameters are as follows:"
msgstr ""
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid "named parameters are insensitive to the order they occur in the query string"
msgstr ""
#. Tag: para
-#: session_api.xml:339
#, no-c-format
msgid "they can occur multiple times in the same query"
msgstr ""
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
- "<![CDATA[//named parameter (preferred)\n"
- "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name\");\n"
- "q.setString(\"name\", \"Fritz\");\n"
- "Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
- "<![CDATA[//positional parameter\n"
- "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
- "q.setString(0, \"Izi\");\n"
- "Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
- "<![CDATA[//named parameter list\n"
- "List names = new ArrayList();\n"
- "names.add(\"Izi\");\n"
- "names.add(\"Fritz\");\n"
- "Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:namesList)\");\n"
- "q.setParameterList(\"namesList\", names);\n"
- "List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
msgstr ""
#. Tag: para
-#: session_api.xml:361
#, no-c-format
msgid "If you need to specify bounds upon your result set, that is, the maximum number of rows you want to retrieve and/or the first row you want to retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
- "<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
- "q.setFirstResult(20);\n"
- "q.setMaxResults(10);\n"
- "List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid "Hibernate knows how to translate this limit query into the native SQL of your DBMS."
msgstr ""
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
msgstr ""
#. Tag: para
-#: session_api.xml:379
#, no-c-format
msgid "If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the <literal>Query</literal> interface can be used to obtain a <literal>ScrollableResults</literal> object that allows flexible navigation of the query results."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:386
-#, no-c-format
-msgid ""
- "<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat cat \" +\n"
- " \"order by cat.name\");\n"
- "ScrollableResults cats = q.scroll();\n"
- "if ( cats.first() ) {\n"
- "\n"
- " // find the first name on each page of an alphabetical list of cats by name\n"
- " firstNamesOfPages = new ArrayList();\n"
- " do {\n"
- " String name = cats.getString(0);\n"
- " firstNamesOfPages.add(name);\n"
- " }\n"
- " while ( cats.scroll(PAGE_SIZE) );\n"
- "\n"
- " // Now get the first page of cats\n"
- " pageOfCats = new ArrayList();\n"
- " cats.beforeFirst();\n"
- " int i=0;\n"
- " while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get(1) );\n"
- "\n"
- "}\n"
- "cats.close()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:388
#, no-c-format
msgid "Note that an open database connection and cursor is required for this functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult()</literal> if you need offline pagination functionality."
msgstr ""
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
msgstr ""
#. Tag: para
-#: session_api.xml:399
#, no-c-format
msgid "You can also define named queries in the mapping document. Remember to use a <literal>CDATA</literal> section if your query contains characters that could be interpreted as markup."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
- "<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
- " from eg.DomesticCat as cat\n"
- " where cat.name = ?\n"
- " and cat.weight > ?\n"
- "] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:411
-#, no-c-format
-msgid ""
- "<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
- "q.setString(0, name);\n"
- "q.setInt(1, minWeight);\n"
- "List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:413
#, no-c-format
msgid "The actual program code is independent of the query language that is used. You can also define native SQL queries in metadata, or migrate existing queries to Hibernate by placing them in mapping files."
msgstr ""
#. Tag: para
-#: session_api.xml:419
#, no-c-format
msgid "Also note that a query declaration inside a <literal><hibernate-mapping></literal> element requires a global unique name for the query, while a query declaration inside a <literal><class></literal> element is made unique automatically by prepending the fully qualified name of the class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
msgstr ""
#. Tag: para
-#: session_api.xml:433
#, no-c-format
msgid "A collection <emphasis>filter</emphasis> is a special type of query that can be applied to a persistent collection or array. The query string can refer to <literal>this</literal>, meaning the current collection element."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:439
-#, no-c-format
-msgid ""
- "<![CDATA[Collection blackKittens = session.createFilter(\n"
- " pk.getKittens(), \n"
- " \"where this.color = ?\")\n"
- " .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
- " .list()\n"
- ");]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:441
#, no-c-format
msgid "The returned collection is considered a bag that is a copy of the given collection. The original collection is not modified. This is contrary to the implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
#. Tag: para
-#: session_api.xml:447
#, no-c-format
msgid "Observe that filters do not require a <literal>from</literal> clause, although they can have one if required. Filters are not limited to returning the collection elements themselves."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:452
-#, no-c-format
-msgid ""
- "<![CDATA[Collection blackKittenMates = session.createFilter(\n"
- " pk.getKittens(), \n"
- " \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:454
#, no-c-format
msgid "Even an empty filter query is useful, e.g. to load a subset of elements in a large collection:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
- "<![CDATA[Collection tenKittens = session.createFilter(\n"
- " mother.getKittens(), \"\")\n"
- " .setFirstResult(0).setMaxResults(10)\n"
- " .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
msgstr ""
#. Tag: para
-#: session_api.xml:466
#, no-c-format
msgid "HQL is extremely powerful, but some developers prefer to build queries dynamically using an object-oriented API, rather than building query strings. Hibernate provides an intuitive <literal>Criteria</literal> query API for these cases:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
- "<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
- "crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
- "crit.setMaxResults(10);\n"
- "List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
#, no-c-format
-msgid "The <literal>Criteria</literal> and the associated <literal>Example</literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/>."
+msgid "The <literal>Criteria</literal> and the associated <literal>Example</literal> API are discussed in more detail in <xref linkend=\"querycriteria\" />."
msgstr ""
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
msgstr ""
#. Tag: para
-#: session_api.xml:484
#, no-c-format
msgid "You can express a query in SQL, using <literal>createSQLQuery()</literal> and let Hibernate manage the mapping from result sets to objects. You can at any time call <literal>session.connection()</literal> and use the JDBC <literal>Connection</literal> directly. If you choose to use the Hibernate API, you must enclose SQL aliases in braces:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} WHERE ROWNUM<10\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- ".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
- "<![CDATA[List cats = session.createSQLQuery(\n"
- " \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
- " \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" +\n"
- " \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
- " .addEntity(\"cat\", Cat.class)\n"
- ".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, no-c-format
-msgid "SQL queries can contain named and positional parameters, just like Hibernate queries. More information about native SQL queries in Hibernate can be found in <xref linkend=\"querysql\"/>."
+msgid "SQL queries can contain named and positional parameters, just like Hibernate queries. More information about native SQL queries in Hibernate can be found in <xref linkend=\"querysql\" />."
msgstr ""
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
msgstr ""
#. Tag: para
-#: session_api.xml:509
#, no-c-format
msgid "<emphasis>Transactional persistent instances</emphasis> (i.e. objects loaded, saved, created or queried by the <literal>Session</literal>) can be manipulated by the application, and any changes to persistent state will be persisted when the <literal>Session</literal> is <emphasis>flushed</emphasis>. This is discussed later in this chapter. There is no need to call a particular method (like <literal>update()</literal>, which has a different purpose) to make your modifications persistent. The most straightforward way to update the state of an object is to <literal>load()</literal> it and then manipulate it directly while the <literal>Session</literal> is open:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:520
-#, no-c-format
-msgid ""
- "<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long(69) );\n"
- "cat.setName(\"PK\");\n"
- "sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:522
#, no-c-format
msgid "Sometimes this programming model is inefficient, as it requires in the same session both an SQL <literal>SELECT</literal> to load an object and an SQL <literal>UPDATE</literal> to persist its updated state. Hibernate offers an alternate approach by using detached instances."
msgstr ""
#. Tag: para
-#: session_api.xml:529
#, no-c-format
-msgid "Hibernate does not offer its own API for direct execution of <literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate is a <emphasis>state management</emphasis> service, you do not have to think in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for executing SQL statements, you can get a JDBC <literal>Connection</literal> at any time by calling <literal>session.connection()</literal>. Furthermore, the notion of mass operations conflicts with object/relational mapping for online transaction processing-oriented applications. Future versions of Hibernate can, however, provide special mass operation functions. See <xref linkend=\"batch\"/> for some possible batch operation tricks."
+msgid "Hibernate does not offer its own API for direct execution of <literal>UPDATE</literal> or <literal>DELETE</literal> statements. Hibernate is a <emphasis>state management</emphasis> service, you do not have to think in <emphasis>statements</emphasis> to use it. JDBC is a perfect API for executing SQL statements, you can get a JDBC <literal>Connection</literal> at any time by calling <literal>session.connection()</literal>. Furthermore, the notion of mass operations conflicts with object/relational mapping for online transaction processing-oriented applications. Future versions of Hibernate can, however, provide special mass operation functions. See <xref linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
msgstr ""
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid "Many applications need to retrieve an object in one transaction, send it to the UI layer for manipulation, then save the changes in a new transaction. Applications that use this kind of approach in a high-concurrency environment usually use versioned data to ensure isolation for the \"long\" unit of work."
msgstr ""
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid "Hibernate supports this model by providing for reattachment of detached instances using the <literal>Session.update()</literal> or <literal>Session.merge()</literal> methods:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
- "<![CDATA[// in the first session\n"
- "Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
- "Cat potentialMate = new Cat();\n"
- "firstSession.save(potentialMate);\n"
- "\n"
- "// in a higher layer of the application\n"
- "cat.setMate(potentialMate);\n"
- "\n"
- "// later, in a new session\n"
- "secondSession.update(cat); // update cat\n"
- "secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid "If the <literal>Cat</literal> with identifier <literal>catId</literal> had already been loaded by <literal>secondSession</literal> when the application tried to reattach it, an exception would have been thrown."
msgstr ""
#. Tag: para
-#: session_api.xml:569
#, no-c-format
msgid "Use <literal>update()</literal> if you are certain that the session does not contain an already persistent instance with the same identifier. Use <literal>merge()</literal> if you want to merge your modifications at any time without consideration of the state of the session. In other words, <literal>update()</literal> is usually the first method you would call in a fresh session, ensuring that the reattachment of your detached instances is the first operation that is executed."
msgstr ""
#. Tag: para
-#: session_api.xml:578
#, no-c-format
-msgid "The application should individually <literal>update()</literal> detached instances that are reachable from the given detached instance <emphasis>only</emphasis> if it wants their state to be updated. This can be automated using <emphasis>transitive persistence</emphasis>. See <xref linkend=\"objectstate-transitive\"/> for more information."
+msgid "The application should individually <literal>update()</literal> detached instances that are reachable from the given detached instance <emphasis>only</emphasis> if it wants their state to be updated. This can be automated using <emphasis>transitive persistence</emphasis>. See <xref linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
#. Tag: para
-#: session_api.xml:585
#, no-c-format
msgid "The <literal>lock()</literal> method also allows an application to reassociate an object with a new session. However, the detached instance has to be unmodified."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:590
-#, no-c-format
-msgid ""
- "<![CDATA[//just reassociate:\n"
- "sess.lock(fritz, LockMode.NONE);\n"
- "//do a version check, then reassociate:\n"
- "sess.lock(izi, LockMode.READ);\n"
- "//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
- "sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:592
#, no-c-format
msgid "Note that <literal>lock()</literal> can be used with various <literal>LockMode</literal>s. See the API documentation and the chapter on transaction handling for more information. Reattachment is not the only usecase for <literal>lock()</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:599
#, no-c-format
-msgid "Other models for long units of work are discussed in <xref linkend=\"transactions-optimistic\"/>."
+msgid "Other models for long units of work are discussed in <xref linkend=\"transactions-optimistic\" />."
msgstr ""
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
msgstr ""
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid "Hibernate users have requested a general purpose method that either saves a transient instance by generating a new identifier or updates/reattaches the detached instances associated with its current identifier. The <literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
- "<![CDATA[// in the first session\n"
- "Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
- "\n"
- "// in a higher tier of the application\n"
- "Cat mate = new Cat();\n"
- "cat.setMate(mate);\n"
- "\n"
- "// later, in a new session\n"
- "secondSession.saveOrUpdate(cat); // update existing state (cat has a non-null id)\n"
- "secondSession.saveOrUpdate(mate); // save the new instance (mate has a null id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid "The usage and semantics of <literal>saveOrUpdate()</literal> seems to be confusing for new users. Firstly, so long as you are not trying to use instances from one session in another new session, you should not need to use <literal>update()</literal>, <literal>saveOrUpdate()</literal>, or <literal>merge()</literal>. Some whole applications will never use either of these methods."
msgstr ""
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid "Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are used in the following scenario:"
msgstr ""
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
msgstr ""
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr ""
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
msgstr ""
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr ""
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid "the application persists these modifications by calling <literal>update()</literal> in a second session"
msgstr ""
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
msgstr ""
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
msgstr ""
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid "if another object associated with the session has the same identifier, throw an exception"
msgstr ""
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid "if the object's identifier has the value assigned to a newly instantiated object, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:687
#, no-c-format
msgid "if the object is versioned by a <literal><version></literal> or <literal><timestamp></literal>, and the version property value is the same value assigned to a newly instantiated object, <literal>save()</literal> it"
msgstr ""
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
msgstr ""
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
msgstr ""
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid "if there is a persistent instance with the same identifier currently associated with the session, copy the state of the given object onto the persistent instance"
msgstr ""
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid "if there is no persistent instance currently associated with the session, try to load it from the database, or create a new persistent instance"
msgstr ""
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr ""
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid "the given instance does not become associated with the session, it remains detached"
msgstr ""
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
msgstr ""
#. Tag: para
-#: session_api.xml:737
#, no-c-format
msgid "<literal>Session.delete()</literal> will remove an object's state from the database. Your application, however, can still hold a reference to a deleted object. It is best to think of <literal>delete()</literal> as making a persistent instance, transient."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:744
-#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:746
#, no-c-format
msgid "You can delete objects in any order, without risk of foreign key constraint violations. It is still possible to violate a <literal>NOT NULL</literal> constraint on a foreign key column by deleting objects in the wrong order, e.g. if you delete the parent, but forget to delete the children."
msgstr ""
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr ""
#. Tag: para
-#: session_api.xml:759
#, no-c-format
msgid "It is sometimes useful to be able to take a graph of persistent instances and make them persistent in a different datastore, without regenerating identifier values."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:765
-#, no-c-format
-msgid ""
- "<![CDATA[//retrieve a cat from one database\n"
- "Session session1 = factory1.openSession();\n"
- "Transaction tx1 = session1.beginTransaction();\n"
- "Cat cat = session1.get(Cat.class, catId);\n"
- "tx1.commit();\n"
- "session1.close();\n"
- "\n"
- "//reconcile with a second database\n"
- "Session session2 = factory2.openSession();\n"
- "Transaction tx2 = session2.beginTransaction();\n"
- "session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
- "tx2.commit();\n"
- "session2.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:767
#, no-c-format
msgid "The <literal>ReplicationMode</literal> determines how <literal>replicate()</literal> will deal with conflicts with existing rows in the database:"
msgstr ""
#. Tag: para
-#: session_api.xml:774
#, no-c-format
msgid "<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is an existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:780
#, no-c-format
msgid "<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:786
#, no-c-format
msgid "<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there is an existing database row with the same identifier"
msgstr ""
#. Tag: para
-#: session_api.xml:792
#, no-c-format
msgid "<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its version number is earlier than the version number of the object, or ignore the object otherwise"
msgstr ""
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid "Usecases for this feature include reconciling data entered into different database instances, upgrading system configuration information during product upgrades, rolling back changes made during non-ACID transactions and more."
msgstr ""
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
msgstr ""
#. Tag: para
-#: session_api.xml:811
#, no-c-format
msgid "Sometimes the <literal>Session</literal> will execute the SQL statements needed to synchronize the JDBC connection's state with the state of objects held in memory. This process, called <emphasis>flush</emphasis>, occurs by default at the following points:"
msgstr ""
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
msgstr ""
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:836
#, no-c-format
msgid "The SQL statements are issued in the following order:"
msgstr ""
#. Tag: para
-#: session_api.xml:842
#, no-c-format
msgid "all entity insertions in the same order the corresponding objects were saved using <literal>Session.save()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
msgstr ""
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr ""
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr ""
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr ""
#. Tag: para
-#: session_api.xml:868
#, no-c-format
msgid "all entity deletions in the same order the corresponding objects were deleted using <literal>Session.delete()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:875
#, no-c-format
msgid "An exception is that objects using <literal>native</literal> ID generation are inserted when they are saved."
msgstr ""
#. Tag: para
-#: session_api.xml:880
#, no-c-format
msgid "Except when you explicitly <literal>flush()</literal>, there are absolutely no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> executes the JDBC calls, only the <emphasis>order</emphasis> in which they are executed. However, Hibernate does guarantee that the <literal>Query.list(..)</literal> will never return stale or incorrect data."
msgstr ""
#. Tag: para
-#: session_api.xml:888
#, no-c-format
-msgid "It is possible to change the default behavior so that flush occurs less frequently. The <literal>FlushMode</literal> class defines three different modes: only flush at commit time when the Hibernate <literal>Transaction</literal> API is used, flush automatically using the explained routine, or never flush unless <literal>flush()</literal> is called explicitly. The last mode is useful for long running units of work, where a <literal>Session</literal> is kept open and disconnected for a long time (see <xref linkend=\"transactions-optimistic-longsession\"/>)."
+msgid "It is possible to change the default behavior so that flush occurs less frequently. The <literal>FlushMode</literal> class defines three different modes: only flush at commit time when the Hibernate <literal>Transaction</literal> API is used, flush automatically using the explained routine, or never flush unless <literal>flush()</literal> is called explicitly. The last mode is useful for long running units of work, where a <literal>Session</literal> is kept open and disconnected for a long time (see <xref linkend=\"transactions-optimistic-longsession\" />)."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
- "<![CDATA[sess = sf.openSession();\n"
- "Transaction tx = sess.beginTransaction();\n"
- "sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
- "\n"
- "Cat izi = (Cat) sess.load(Cat.class, id);\n"
- "izi.setName(iznizi);\n"
- "\n"
- "// might return stale data\n"
- "sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
- "\n"
- "// change to izi is not flushed!\n"
- "...\n"
- "tx.commit(); // flush occurs\n"
- "sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
#, no-c-format
-msgid "During flush, an exception might occur (e.g. if a DML operation violates a constraint). Since handling exceptions involves some understanding of Hibernate's transactional behavior, we discuss it in <xref linkend=\"transactions\"/>."
+msgid "During flush, an exception might occur (e.g. if a DML operation violates a constraint). Since handling exceptions involves some understanding of Hibernate's transactional behavior, we discuss it in <xref linkend=\"transactions\" />."
msgstr ""
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
msgstr ""
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid "It is quite cumbersome to save, delete, or reattach individual objects, especially if you deal with a graph of associated objects. A common case is a parent/child relationship. Consider the following example:"
msgstr ""
#. Tag: para
-#: session_api.xml:917
#, no-c-format
msgid "If the children in a parent/child relationship would be value typed (e.g. a collection of addresses or strings), their life cycle would depend on the parent and no further action would be required for convenient \"cascading\" of state changes. When the parent is saved, the value-typed child objects are saved and when the parent is deleted, the children will be deleted, etc. This works for operations such as the removal of a child from the collection. Since value-typed objects cannot have shared references, Hibernate will detect this and delete the child from the database."
msgstr ""
#. Tag: para
-#: session_api.xml:928
#, no-c-format
msgid "Now consider the same scenario with parent and child objects being entities, not value-types (e.g. categories and items, or parent and child cats). Entities have their own life cycle and support shared references. Removing an entity from the collection does not mean it can be deleted), and there is by default no cascading of state from one entity to any other associated entities. Hibernate does not implement <emphasis>persistence by reachability</emphasis> by default."
msgstr ""
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid "For each basic operation of the Hibernate session - including <literal>persist(), merge(), saveOrUpdate(), delete(), lock(), refresh(), evict(), replicate()</literal> - there is a corresponding cascade style. Respectively, the cascade styles are named <literal>create, merge, save-update, delete, lock, refresh, evict, replicate</literal>. If you want an operation to be cascaded along an association, you must indicate that in the mapping document. For example:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:952
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:954
#, no-c-format
msgid "You can even use <literal>cascade=\"all\"</literal> to specify that <emphasis>all</emphasis> operations should be cascaded along the association. The default <literal>cascade=\"none\"</literal> specifies that no operations are to be cascaded."
msgstr ""
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid "A special cascade style, <literal>delete-orphan</literal>, applies only to one-to-many associations, and indicates that the <literal>delete()</literal> operation should be applied to any child object that is removed from the association."
msgstr ""
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
msgstr ""
#. Tag: para
-#: session_api.xml:973
#, no-c-format
msgid "It does not usually make sense to enable cascade on a <literal><many-to-one></literal> or <literal><many-to-many></literal> association. Cascade is often useful for <literal><one-to-one></literal> and <literal><one-to-many></literal> associations."
msgstr ""
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid "If the child object's lifespan is bounded by the lifespan of the parent object, make it a <emphasis>life cycle object</emphasis> by specifying <literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid "Otherwise, you might not need cascade at all. But if you think that you will often be working with the parent and children together in the same transaction, and you want to save yourself some typing, consider using <literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid "Mapping an association (either a single valued association, or a collection) with <literal>cascade=\"all\"</literal> marks the association as a <emphasis>parent/child</emphasis> style relationship where save/update/delete of the parent results in save/update/delete of the child or children."
msgstr ""
#. Tag: para
-#: session_api.xml:1002
#, no-c-format
msgid "Furthermore, a mere reference to a child from a persistent parent will result in save/update of the child. This metaphor is incomplete, however. A child which becomes unreferenced by its parent is <emphasis>not</emphasis> automatically deleted, except in the case of a <literal><one-to-many></literal> association mapped with <literal>cascade=\"delete-orphan\"</literal>. The precise semantics of cascading operations for a parent/child relationship are as follows:"
msgstr ""
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid "If a parent is passed to <literal>persist()</literal>, all children are passed to <literal>persist()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid "If a parent is passed to <literal>merge()</literal>, all children are passed to <literal>merge()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid "If a parent is passed to <literal>save()</literal>, <literal>update()</literal> or <literal>saveOrUpdate()</literal>, all children are passed to <literal>saveOrUpdate()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid "If a transient or detached child becomes referenced by a persistent parent, it is passed to <literal>saveOrUpdate()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid "If a parent is deleted, all children are passed to <literal>delete()</literal>"
msgstr ""
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid "If a child is dereferenced by a persistent parent, <emphasis>nothing special happens</emphasis> - the application should explicitly delete the child if necessary - unless <literal>cascade=\"delete-orphan\"</literal>, in which case the \"orphaned\" child is deleted."
msgstr ""
#. Tag: para
-#: session_api.xml:1051
#, no-c-format
msgid "Finally, note that cascading of operations can be applied to an object graph at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All operations, if enabled, are cascaded to associated entities reachable when the operation is executed. However, <literal>save-update</literal> and <literal>delete-orphan</literal> are transitive for all associated entities reachable during flush of the <literal>Session</literal>."
msgstr ""
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr ""
#. Tag: para
-#: session_api.xml:1065
#, no-c-format
msgid "Hibernate requires a rich meta-level model of all entity and value types. This model can be useful to the application itself. For example, the application might use Hibernate's metadata to implement a \"smart\" deep-copy algorithm that understands which objects should be copied (eg. mutable value types) and which objects that should not (e.g. immutable value types and, possibly, associated entities)."
msgstr ""
#. Tag: para
-#: session_api.xml:1072
#, no-c-format
msgid "Hibernate exposes metadata via the <literal>ClassMetadata</literal> and <literal>CollectionMetadata</literal> interfaces and the <literal>Type</literal> hierarchy. Instances of the metadata interfaces can be obtained from the <literal>SessionFactory</literal>."
msgstr ""
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
- "<![CDATA[Cat fritz = ......;\n"
- "ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
- "\n"
- "Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
- "String[] propertyNames = catMeta.getPropertyNames();\n"
- "Type[] propertyTypes = catMeta.getPropertyTypes();\n"
- "\n"
- "// get a Map of all properties which are not collections or associations\n"
- "Map namedValues = new HashMap();\n"
- "for ( int i=0; i<propertyNames.length; i++ ) {\n"
- " if ( !propertyTypes[i].isEntityType() && !propertyTypes[i].isCollectionType() ) {\n"
- " namedValues.put( propertyNames[i], propertyValues[i] );\n"
- " }\n"
- "}]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/toolset_guide.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/toolset_guide.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/toolset_guide.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,962 +1,629 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-02-11T05:38:16\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:31
#, no-c-format
msgid "Roundtrip engineering with Hibernate is possible using a set of Eclipse plugins, commandline tools, and Ant tasks."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:36
#, no-c-format
msgid "<emphasis>Hibernate Tools</emphasis> currently include plugins for the Eclipse IDE as well as Ant tasks for reverse engineering of existing databases:"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:42
#, no-c-format
msgid "<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping files that supports auto-completion and syntax highlighting. It also supports semantic auto-completion for class names and property/field names, making it more versatile than a normal XML editor."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:47
#, no-c-format
msgid "<emphasis>Console:</emphasis> the console is a new view in Eclipse. In addition to a tree overview of your console configurations, you are also provided with an interactive view of your persistent classes and their relationships. The console allows you to execute HQL queries against your database and browse the result directly in Eclipse."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:54
#, no-c-format
msgid "<emphasis>Development Wizards:</emphasis> several wizards are provided with the Hibernate Eclipse tools. You can use a wizard to quickly generate Hibernate configuration (cfg.xml) files, or to reverse engineer an existing database schema into POJO source files and Hibernate mapping files. The reverse engineering wizard supports customizable templates."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:67
#, no-c-format
msgid "Please refer to the <emphasis>Hibernate Tools</emphasis> package documentation for more information."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:72
#, no-c-format
msgid "However, the Hibernate main package comes bundled with an integrated tool : <emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even be used from \"inside\" Hibernate."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:81
#, no-c-format
msgid "DDL can be generated from your mapping files by a Hibernate utility. The generated schema includes referential integrity constraints, primary and foreign keys, for entity and collection tables. Tables and sequences are also created for mapped identifier generators."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:88
#, no-c-format
msgid "You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via the <literal>hibernate.dialect</literal> property when using this tool, as DDL is highly vendor-specific."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:94
#, no-c-format
msgid "First, you must customize your mapping files to improve the generated schema. The next section covers schema customization."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:101
#, no-c-format
msgid "Many Hibernate mapping elements define optional attributes named <literal>length</literal>, <literal>precision</literal> and <literal>scale</literal>. You can set the length, precision and scale of a column with this attribute."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
#, no-c-format
msgid "Some tags also accept a <literal>not-null</literal> attribute for generating a <literal>NOT NULL</literal> constraint on table columns, and a <literal>unique</literal> attribute for generating <literal>UNIQUE</literal> constraint on table columns."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:117
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid "<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" unique=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:121
#, no-c-format
msgid "A <literal>unique-key</literal> attribute can be used to group columns in a single, unique key constraint. Currently, the specified value of the <literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to name the constraint in the generated DDL. It is only used to group the columns in the mapping file."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:129
-#, no-c-format
-msgid ""
- "<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key=\"OrgEmployeeId\"/>\n"
- "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:131
#, no-c-format
msgid "An <literal>index</literal> attribute specifies the name of an index that will be created using the mapped column or columns. Multiple columns can be grouped into the same index by simply specifying the same index name."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:137
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
- "<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:139
#, no-c-format
msgid "A <literal>foreign-key</literal> attribute can be used to override the name of any generated foreign key constraint."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid "Many mapping elements also accept a child <literal><column></literal> element. This is particularly useful for mapping multi-column types:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:151
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
- " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/>\n"
- " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/>\n"
- " <column name=\"initial\"/>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:153
#, no-c-format
msgid "The <literal>default</literal> attribute allows you to specify a default value for a column.You should assign the same value to the mapped property before saving a new instance of the mapped class."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
- " <column name=\"credits\" default=\"10\"/>\n"
- "</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
- "<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
- " <column name=\"version\" default=\"0\"/>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid "The <literal>sql-type</literal> attribute allows the user to override the default mapping of a Hibernate type to SQL datatype."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"balance\" type=\"float\">\n"
- " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid "The <literal>check</literal> attribute allows you to specify a check constraint."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"foo\" type=\"integer\">\n"
- " <column name=\"foo\" check=\"foo > 10\"/>\n"
- "</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
- " ...\n"
- " <property name=\"bar\" type=\"float\"/>\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
+msgid "<literal>length</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
+msgid "<literal>precision</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
+msgid "<literal>scale</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
+msgid "<literal>not-null</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
+msgid "<literal>true|false</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:213
#, no-c-format
msgid "specifies that the column should be non-nullable"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
+msgid "<literal>unique</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
+msgid "<literal>index</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
+msgid "<literal>index_name</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
+msgid "<literal>unique-key</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:227
+#. Tag: entry
#, no-c-format
-msgid "unique_key_name"
+msgid "<literal>unique_key_name</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
+msgid "<literal>foreign-key</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:232
+#. Tag: entry
#, no-c-format
-msgid "foreign_key_name"
+msgid "<literal>foreign_key_name</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:233
#, no-c-format
msgid "specifies the name of the foreign key constraint generated for an association, for a <literal><one-to-one></literal>, <literal><many-to-one></literal>, <literal><key></literal>, or <literal><many-to-many></literal> mapping element. Note that <literal>inverse=\"true\"</literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
+msgid "<literal>sql-type</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:244
+#. Tag: entry
#, no-c-format
-msgid "SQL column type"
+msgid "<literal>SQL column type</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:245
#, no-c-format
msgid "overrides the default column type (attribute of <literal><column></literal> element only)"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
+msgid "<literal>default</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
#, no-c-format
msgid "SQL expression"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
+msgid "<literal>check</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid "The <literal><comment></literal> element allows you to specify comments for the generated schema."
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:273
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
- " <comment>Current customers only</comment>\n"
- " ...\n"
- "</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
- "<![CDATA[<property name=\"balance\">\n"
- " <column name=\"bal\">\n"
- " <comment>Balance in USD</comment>\n"
- " </column>\n"
- "</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:277
#, no-c-format
msgid "This results in a <literal>comment on table</literal> or <literal>comment on column</literal> statement in the generated DDL where supported."
msgstr ""
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid "The <literal>SchemaExport</literal> tool writes a DDL script to standard out and/or executes the DDL statements."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:293
#, no-c-format
msgid "The following table displays the <literal>SchemaExport</literal> command line options"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid "<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> <literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options mapping_files</emphasis>"
msgstr ""
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458 toolset_guide.xml:528
#, no-c-format
msgid "Description"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
+msgid "<literal>--quiet</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
#, no-c-format
msgid "do not output the script to stdout"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
+msgid "<literal>--drop</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
+msgid "<literal>--create</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
+msgid "<literal>--text</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:326
#, no-c-format
msgid "do not export to the database"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:329
+#. Tag: entry
#, no-c-format
-msgid "--output=my_schema.ddl"
+msgid "<literal>--output=my_schema.ddl</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
+#. Tag: entry
#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, no-c-format
msgid "select a <literal>NamingStrategy</literal>"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
+#. Tag: entry
#, no-c-format
-msgid "--config=hibernate.cfg.xml"
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:338
#, no-c-format
msgid "read Hibernate configuration from an XML file"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
+#. Tag: entry
#, no-c-format
-msgid "--properties=hibernate.properties"
+msgid "<literal>--properties=hibernate.properties</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
#, no-c-format
msgid "read database properties from a file"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
+msgid "<literal>--format</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
+msgid "<literal>--delimiter=;</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:356
#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = ....;\n"
- "new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:367
#, no-c-format
msgid "Database properties can be specified:"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid "as system properties with <literal>-D</literal><emphasis><property></emphasis>"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
msgstr ""
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:400
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
+msgid "<literal>hibernate.connection.driver_class</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
+msgid "<literal>hibernate.connection.url</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:408
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
+msgid "<literal>hibernate.connection.username</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:412
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
+msgid "<literal>hibernate.connection.password</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
msgstr ""
-#. Tag: literal
-#: toolset_guide.xml:416
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
+msgid "<literal>hibernate.dialect</literal>"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
msgstr ""
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid "You can call <literal>SchemaExport</literal> from your Ant build script:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
- "<![CDATA[<target name=\"schemaexport\">\n"
- " <taskdef name=\"schemaexport\"\n"
- " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
- " classpathref=\"class.path\"/>\n"
- " \n"
- " <schemaexport\n"
- " properties=\"hibernate.properties\"\n"
- " quiet=\"no\"\n"
- " text=\"no\"\n"
- " drop=\"no\"\n"
- " delimiter=\";\"\n"
- " output=\"schema-export.sql\">\n"
- " <fileset dir=\"src\">\n"
- " <include name=\"**/*.hbm.xml\"/>\n"
- " </fileset>\n"
- " </schemaexport>\n"
- "</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:439
#, no-c-format
msgid "The <literal>SchemaUpdate</literal> tool will update an existing schema with \"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid "<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> <literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options mapping_files</emphasis>"
msgstr ""
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:468
#, no-c-format
msgid "do not export the script to the database"
msgstr ""
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:486
#, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = ....;\n"
- "new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
- "<![CDATA[<target name=\"schemaupdate\">\n"
- " <taskdef name=\"schemaupdate\"\n"
- " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
- " classpathref=\"class.path\"/>\n"
- " \n"
- " <schemaupdate\n"
- " properties=\"hibernate.properties\"\n"
- " quiet=\"no\">\n"
- " <fileset dir=\"src\">\n"
- " <include name=\"**/*.hbm.xml\"/>\n"
- " </fileset>\n"
- " </schemaupdate>\n"
- "</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:508
#, no-c-format
msgid "The <literal>SchemaValidator</literal> tool will validate that the existing database schema \"matches\" your mapping documents. The <literal>SchemaValidator</literal> depends heavily upon the JDBC metadata API and, as such, will not work with all JDBC drivers. This tool is extremely useful for testing."
msgstr ""
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid "<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> <literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> <emphasis>options mapping_files</emphasis>"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:518
#, no-c-format
msgid "The following table displays the <literal>SchemaValidator</literal> command line options:"
msgstr ""
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:548
#, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:552
-#, no-c-format
-msgid ""
- "<![CDATA[Configuration cfg = ....;\n"
- "new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
msgstr ""
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
msgstr ""
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
- "<![CDATA[<target name=\"schemavalidate\">\n"
- " <taskdef name=\"schemavalidator\"\n"
- " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
- " classpathref=\"class.path\"/>\n"
- " \n"
- " <schemavalidator\n"
- " properties=\"hibernate.properties\">\n"
- " <fileset dir=\"src\">\n"
- " <include name=\"**/*.hbm.xml\"/>\n"
- " </fileset>\n"
- " </schemavalidator>\n"
- "</target>]]>"
-msgstr ""
-
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/transactions.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/transactions.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/transactions.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,960 +1,658 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-02-11T05:38:16\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: transactions.xml:29
#, no-c-format
msgid "Transactions and Concurrency"
msgstr ""
#. Tag: para
-#: transactions.xml:31
#, no-c-format
msgid "The most important point about Hibernate and concurrency control is that it is easy to understand. Hibernate directly uses JDBC connections and JTA resources without adding any additional locking behavior. It is recommended that you spend some time with the JDBC, ANSI, and transaction isolation specification of your database management system."
msgstr ""
#. Tag: para
-#: transactions.xml:38
#, no-c-format
msgid "Hibernate does not lock objects in memory. Your application can expect the behavior as defined by the isolation level of your database transactions. Through <literal>Session</literal>, which is also a transaction-scoped cache, Hibernate provides repeatable reads for lookup by identifier and entity queries and not reporting queries that return scalar values."
msgstr ""
#. Tag: para
-#: transactions.xml:46
#, no-c-format
msgid "In addition to versioning for automatic optimistic concurrency control, Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> syntax, a (minor) API for pessimistic locking of rows. Optimistic concurrency control and this API are discussed later in this chapter."
msgstr ""
#. Tag: para
-#: transactions.xml:53
#, no-c-format
msgid "The discussion of concurrency control in Hibernate begins with the granularity of <literal>Configuration</literal>, <literal>SessionFactory</literal>, and <literal>Session</literal>, as well as database transactions and long conversations."
msgstr ""
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
msgstr ""
#. Tag: para
-#: transactions.xml:62
#, no-c-format
msgid "A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe object, intended to be shared by all application threads. It is created once, usually on application startup, from a <literal>Configuration</literal> instance."
msgstr ""
#. Tag: para
-#: transactions.xml:68
#, no-c-format
msgid "A <literal>Session</literal> is an inexpensive, non-threadsafe object that should be used once and then discarded for: a single request, a conversation or a single unit of work. A <literal>Session</literal> will not obtain a JDBC <literal>Connection</literal>, or a <literal>Datasource</literal>, unless it is needed. It will not consume any resources until used."
msgstr ""
#. Tag: para
-#: transactions.xml:76
#, no-c-format
msgid "In order to reduce lock contention in the database, a database transaction has to be as short as possible. Long database transactions will prevent your application from scaling to a highly concurrent load. It is not recommended that you hold a database transaction open during user think time until the unit of work is complete."
msgstr ""
#. Tag: para
-#: transactions.xml:84
#, no-c-format
msgid "What is the scope of a unit of work? Can a single Hibernate <literal>Session</literal> span several database transactions, or is this a one-to-one relationship of scopes? When should you open and close a <literal>Session</literal> and how do you demarcate the database transaction boundaries? These questions are addressed in the following sections."
msgstr ""
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr ""
#. Tag: para
-#: transactions.xml:94
#, no-c-format
-msgid "First, let's define a unit of work. A unit of work is a design pattern described by Martin Fowler as <quote> [maintaining] a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems. </quote><citation>PoEAA</citation> In other words, its a series of operations we wish to carry out against the database together. Basically, it is a transaction, though fulfilling a unit of work will often span multiple physical database transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really we are talking about a more abstract notion of a transaction. The term \"business transaction\" is also sometimes used in lieu of unit of work."
+msgid "First, let's define a unit of work. A unit of work is a design pattern described by Martin Fowler as <quote> [maintaining] a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems. </quote><citation>PoEAA</citation> In other words, its a series of operations we wish to carry out against the database together. Basically, it is a transaction, though fulfilling a unit of work will often span multiple physical database transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really we are talking about a more abstract notion of a transaction. The term \"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
#. Tag: para
-#: transactions.xml:111
#, no-c-format
msgid "Do not use the <emphasis>session-per-operation</emphasis> antipattern: do not open and close a <literal>Session</literal> for every simple database call in a single thread. The same is true for database transactions. Database calls in an application are made using a planned sequence; they are grouped into atomic units of work. This also means that auto-commit after every single SQL statement is useless in an application as this mode is intended for ad-hoc SQL console work. Hibernate disables, or expects the application server to disable, auto-commit mode immediately. Database transactions are never optional. All communication with a database has to occur inside a transaction. Auto-commit behavior for reading data should be avoided, as many small transactions are unlikely to perform better than one clearly defined unit of work. The latter is also more maintainable and extensible."
msgstr ""
#. Tag: para
-#: transactions.xml:126
#, no-c-format
msgid "The most common pattern in a multi-user client/server application is <emphasis>session-per-request</emphasis>. In this model, a request from the client is sent to the server, where the Hibernate persistence layer runs. A new Hibernate <literal>Session</literal> is opened, and all database operations are executed in this unit of work. On completion of the work, and once the response for the client has been prepared, the session is flushed and closed. Use a single database transaction to serve the clients request, starting and committing it when you open and close the <literal>Session</literal>. The relationship between the two is one-to-one and this model is a perfect fit for many applications."
msgstr ""
#. Tag: para
-#: transactions.xml:138
#, no-c-format
msgid "The challenge lies in the implementation. Hibernate provides built-in management of the \"current session\" to simplify this pattern. Start a transaction when a server request has to be processed, and end the transaction before the response is sent to the client. Common solutions are <literal>ServletFilter</literal>, AOP interceptor with a pointcut on the service methods, or a proxy/interception container. An EJB container is a standardized way to implement cross-cutting aspects such as transaction demarcation on EJB session beans, declaratively with CMT. If you use programmatic transaction demarcation, for ease of use and code portability use the Hibernate <literal>Transaction</literal> API shown later in this chapter."
msgstr ""
#. Tag: para
-#: transactions.xml:150
#, no-c-format
-msgid "Your application code can access a \"current session\" to process the request by calling <literal>sessionFactory.getCurrentSession()</literal>. You will always get a <literal>Session</literal> scoped to the current database transaction. This has to be configured for either resource-local or JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+msgid "Your application code can access a \"current session\" to process the request by calling <literal>sessionFactory.getCurrentSession()</literal>. You will always get a <literal>Session</literal> scoped to the current database transaction. This has to be configured for either resource-local or JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
#. Tag: para
-#: transactions.xml:158
#, no-c-format
msgid "You can extend the scope of a <literal>Session</literal> and database transaction until the \"view has been rendered\". This is especially useful in servlet applications that utilize a separate rendering phase after the request has been processed. Extending the database transaction until view rendering, is achieved by implementing your own interceptor. However, this will be difficult if you rely on EJBs with container-managed transactions. A transaction will be completed when an EJB method returns, before rendering of any view can start. See the Hibernate website and forum for tips and examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr ""
#. Tag: para
-#: transactions.xml:175
#, no-c-format
msgid "The session-per-request pattern is not the only way of designing units of work. Many business processes require a whole series of interactions with the user that are interleaved with database accesses. In web and enterprise applications, it is not acceptable for a database transaction to span a user interaction. Consider the following example:"
msgstr ""
#. Tag: para
-#: transactions.xml:185
#, no-c-format
msgid "The first screen of a dialog opens. The data seen by the user has been loaded in a particular <literal>Session</literal> and database transaction. The user is free to modify the objects."
msgstr ""
#. Tag: para
-#: transactions.xml:192
#, no-c-format
msgid "The user clicks \"Save\" after 5 minutes and expects their modifications to be made persistent. The user also expects that they were the only person editing this information and that no conflicting modification has occurred."
msgstr ""
#. Tag: para
-#: transactions.xml:200
#, no-c-format
msgid "From the point of view of the user, we call this unit of work a long-running <emphasis>conversation</emphasis> or <emphasis>application transaction</emphasis>. There are many ways to implement this in your application."
msgstr ""
#. Tag: para
-#: transactions.xml:206
#, no-c-format
msgid "A first naive implementation might keep the <literal>Session</literal> and database transaction open during user think time, with locks held in the database to prevent concurrent modification and to guarantee isolation and atomicity. This is an anti-pattern, since lock contention would not allow the application to scale with the number of concurrent users."
msgstr ""
#. Tag: para
-#: transactions.xml:214
#, no-c-format
msgid "You have to use several database transactions to implement the conversation. In this case, maintaining isolation of business processes becomes the partial responsibility of the application tier. A single conversation usually spans several database transactions. It will be atomic if only one of these database transactions (the last one) stores the updated data. All others simply read data (for example, in a wizard-style dialog spanning several request/response cycles). This is easier to implement than it might sound, especially if you utilize some of Hibernate's features:"
msgstr ""
#. Tag: para
-#: transactions.xml:227
#, no-c-format
msgid "<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic optimistic concurrency control for you. It can automatically detect if a concurrent modification occurred during user think time. Check for this at the end of the conversation."
msgstr ""
#. Tag: para
-#: transactions.xml:235
#, no-c-format
msgid "<emphasis>Detached Objects</emphasis>: if you decide to use the <emphasis>session-per-request</emphasis> pattern, all loaded instances will be in the detached state during user think time. Hibernate allows you to reattach the objects and persist the modifications. The pattern is called <emphasis>session-per-request-with-detached-objects</emphasis>. Automatic versioning is used to isolate concurrent modifications."
msgstr ""
#. Tag: para
-#: transactions.xml:245
#, no-c-format
msgid "<emphasis>Extended (or Long) Session</emphasis>: the Hibernate <literal>Session</literal> can be disconnected from the underlying JDBC connection after the database transaction has been committed and reconnected when a new client request occurs. This pattern is known as <emphasis>session-per-conversation</emphasis> and makes even reattachment unnecessary. Automatic versioning is used to isolate concurrent modifications and the <literal>Session</literal> will not be allowed to be flushed automatically, but explicitly."
msgstr ""
#. Tag: para
-#: transactions.xml:258
#, no-c-format
msgid "Both <emphasis>session-per-request-with-detached-objects</emphasis> and <emphasis>session-per-conversation</emphasis> have advantages and disadvantages. These disadvantages are discussed later in this chapter in the context of optimistic concurrency control."
msgstr ""
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
msgstr ""
#. Tag: para
-#: transactions.xml:269
#, no-c-format
msgid "An application can concurrently access the same persistent state in two different <literal>Session</literal>s. However, an instance of a persistent class is never shared between two <literal>Session</literal> instances. It is for this reason that there are two different notions of identity:"
msgstr ""
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr ""
-#. Tag: literal
-#: transactions.xml:281
+#. Tag: para
#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
msgstr ""
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr ""
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
+msgid "<literal>foo==bar</literal>"
msgstr ""
#. Tag: para
-#: transactions.xml:295
#, no-c-format
msgid "For objects attached to a <emphasis>particular</emphasis> <literal>Session</literal> (i.e., in the scope of a <literal>Session</literal>), the two notions are equivalent and JVM identity for database identity is guaranteed by Hibernate. While the application might concurrently access the \"same\" (persistent identity) business object in two different sessions, the two instances will actually be \"different\" (JVM identity). Conflicts are resolved using an optimistic approach and automatic versioning at flush/commit time."
msgstr ""
#. Tag: para
-#: transactions.xml:304
#, no-c-format
msgid "This approach leaves Hibernate and the database to worry about concurrency. It also provides the best scalability, since guaranteeing identity in single-threaded units of work means that it does not need expensive locking or other means of synchronization. The application does not need to synchronize on any business object, as long as it maintains a single thread per <literal>Session</literal>. Within a <literal>Session</literal> the application can safely use <literal>==</literal> to compare objects."
msgstr ""
#. Tag: para
-#: transactions.xml:313
#, no-c-format
msgid "However, an application that uses <literal>==</literal> outside of a <literal>Session</literal> might produce unexpected results. This might occur even in some unexpected places. For example, if you put two detached instances into the same <literal>Set</literal>, both might have the same database identity (i.e., they represent the same row). JVM identity, however, is by definition not guaranteed for instances in a detached state. The developer has to override the <literal>equals()</literal> and <literal>hashCode()</literal> methods in persistent classes and implement their own notion of object equality. There is one caveat: never use the database identifier to implement equality. Use a business key that is a combination of unique, usually immutable, attributes. The database identifier will change if a transient object is made persistent. If the transient instance (usually together with detached instances) is held in a <literal>Set</literal>, changing the hashcode bre!
aks the contract of the <literal>Set</literal>. Attributes for business keys do not have to be as stable as database primary keys; you only have to guarantee stability as long as the objects are in the same <literal>Set</literal>. See the Hibernate website for a more thorough discussion of this issue. Please note that this is not a Hibernate issue, but simply how Java object identity and equality has to be implemented."
msgstr ""
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr ""
#. Tag: para
-#: transactions.xml:336
#, no-c-format
msgid "Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> or <emphasis>session-per-application</emphasis> (there are, however, rare exceptions to this rule). Some of the following issues might also arise within the recommended patterns, so ensure that you understand the implications before making a design decision:"
msgstr ""
#. Tag: para
-#: transactions.xml:345
#, no-c-format
msgid "A <literal>Session</literal> is not thread-safe. Things that work concurrently, like HTTP requests, session beans, or Swing workers, will cause race conditions if a <literal>Session</literal> instance is shared. If you keep your Hibernate <literal>Session</literal> in your <literal>HttpSession</literal> (this is discussed later in the chapter), you should consider synchronizing access to your Http session. Otherwise, a user that clicks reload fast enough can use the same <literal>Session</literal> in two concurrently running threads."
msgstr ""
#. Tag: para
-#: transactions.xml:356
#, no-c-format
msgid "An exception thrown by Hibernate means you have to rollback your database transaction and close the <literal>Session</literal> immediately (this is discussed in more detail later in the chapter). If your <literal>Session</literal> is bound to the application, you have to stop the application. Rolling back the database transaction does not put your business objects back into the state they were at the start of the transaction. This means that the database state and the business objects will be out of sync. Usually this is not a problem, because exceptions are not recoverable and you will have to start over after rollback anyway."
msgstr ""
#. Tag: para
-#: transactions.xml:368
#, no-c-format
-msgid "The <literal>Session</literal> caches every object that is in a persistent state (watched and checked for dirty state by Hibernate). If you keep it open for a long time or simply load too much data, it will grow endlessly until you get an OutOfMemoryException. One solution is to call <literal>clear()</literal> and <literal>evict()</literal> to manage the <literal>Session</literal> cache, but you should consider a Stored Procedure if you need mass data operations. Some solutions are shown in <xref linkend=\"batch\"/>. Keeping a <literal>Session</literal> open for the duration of a user session also means a higher probability of stale data."
+msgid "The <literal>Session</literal> caches every object that is in a persistent state (watched and checked for dirty state by Hibernate). If you keep it open for a long time or simply load too much data, it will grow endlessly until you get an OutOfMemoryException. One solution is to call <literal>clear()</literal> and <literal>evict()</literal> to manage the <literal>Session</literal> cache, but you should consider a Stored Procedure if you need mass data operations. Some solutions are shown in <xref linkend=\"batch\" />. Keeping a <literal>Session</literal> open for the duration of a user session also means a higher probability of stale data."
msgstr ""
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
msgstr ""
#. Tag: para
-#: transactions.xml:388
#, no-c-format
msgid "Database, or system, transaction boundaries are always necessary. No communication with the database can occur outside of a database transaction (this seems to confuse many developers who are used to the auto-commit mode). Always use clear transaction boundaries, even for read-only operations. Depending on your isolation level and database capabilities this might not be required, but there is no downside if you always demarcate transactions explicitly. Certainly, a single database transaction is going to perform better than many small transactions, even for reading data."
msgstr ""
#. Tag: para
-#: transactions.xml:398
#, no-c-format
msgid "A Hibernate application can run in non-managed (i.e., standalone, simple Web- or Swing applications) and managed J2EE environments. In a non-managed environment, Hibernate is usually responsible for its own database connection pool. The application developer has to manually set transaction boundaries (begin, commit, or rollback database transactions) themselves. A managed environment usually provides container-managed transactions (CMT), with the transaction assembly defined declaratively (in deployment descriptors of EJB session beans, for example). Programmatic transaction demarcation is then no longer necessary."
msgstr ""
#. Tag: para
-#: transactions.xml:408
#, no-c-format
msgid "However, it is often desirable to keep your persistence layer portable between non-managed resource-local environments, and systems that can rely on JTA but use BMT instead of CMT. In both cases use programmatic transaction demarcation. Hibernate offers a wrapper API called <literal>Transaction</literal> that translates into the native transaction system of your deployment environment. This API is actually optional, but we strongly encourage its use unless you are in a CMT session bean."
msgstr ""
#. Tag: para
-#: transactions.xml:417
#, no-c-format
msgid "Ending a <literal>Session</literal> usually involves four distinct phases:"
msgstr ""
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
msgstr ""
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
msgstr ""
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
msgstr ""
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr ""
#. Tag: para
-#: transactions.xml:444
#, no-c-format
msgid "We discussed Flushing the session earlier, so we will now have a closer look at transaction demarcation and exception handling in both managed and non-managed environments."
msgstr ""
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
msgstr ""
#. Tag: para
-#: transactions.xml:453
#, no-c-format
msgid "If a Hibernate persistence layer runs in a non-managed environment, database connections are usually handled by simple (i.e., non-DataSource) connection pools from which Hibernate obtains connections as needed. The session/transaction handling idiom looks like this:"
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
- "<![CDATA[// Non-managed environment idiom\n"
- "Session sess = factory.openSession();\n"
- "Transaction tx = null;\n"
- "try {\n"
- " tx = sess.beginTransaction();\n"
- "\n"
- " // do some work\n"
- " ...\n"
- "\n"
- " tx.commit();\n"
- "}\n"
- "catch (RuntimeException e) {\n"
- " if (tx != null) tx.rollback();\n"
- " throw e; // or display error message\n"
- "}\n"
- "finally {\n"
- " sess.close();\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, no-c-format
msgid "You do not have to <literal>flush()</literal> the <literal>Session</literal> explicitly: the call to <literal>commit()</literal> automatically triggers the synchronization depending on the <link linkend=\"objectstate-flushing\">FlushMode</link> for the session. A call to <literal>close()</literal> marks the end of a session. The main implication of <literal>close()</literal> is that the JDBC connection will be relinquished by the session. This Java code is portable and runs in both non-managed and JTA environments."
msgstr ""
#. Tag: para
-#: transactions.xml:471
#, no-c-format
msgid "As outlined earlier, a much more flexible solution is Hibernate's built-in \"current session\" context management:"
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:476
-#, no-c-format
-msgid ""
- "<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
- "try {\n"
- " factory.getCurrentSession().beginTransaction();\n"
- "\n"
- " // do some work\n"
- " ...\n"
- "\n"
- " factory.getCurrentSession().getTransaction().commit();\n"
- "}\n"
- "catch (RuntimeException e) {\n"
- " factory.getCurrentSession().getTransaction().rollback();\n"
- " throw e; // or display error message\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:478
#, no-c-format
msgid "You will not see these code snippets in a regular application; fatal (system) exceptions should always be caught at the \"top\". In other words, the code that executes Hibernate calls in the persistence layer, and the code that handles <literal>RuntimeException</literal> (and usually can only clean up and exit), are in different layers. The current context management by Hibernate can significantly simplify this design by accessing a <literal>SessionFactory</literal>. Exception handling is discussed later in this chapter."
msgstr ""
#. Tag: para
-#: transactions.xml:488
#, no-c-format
msgid "You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</literal>, which is the default, and for the second example select <literal>\"thread\"</literal> as your <literal>hibernate.current_session_context_class</literal>."
msgstr ""
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
msgstr ""
#. Tag: para
-#: transactions.xml:499
#, no-c-format
msgid "If your persistence layer runs in an application server (for example, behind EJB session beans), every datasource connection obtained by Hibernate will automatically be part of the global JTA transaction. You can also install a standalone JTA implementation and use it without EJB. Hibernate offers two strategies for JTA integration."
msgstr ""
#. Tag: para
-#: transactions.xml:506
#, no-c-format
msgid "If you use bean-managed transactions (BMT), Hibernate will tell the application server to start and end a BMT transaction if you use the <literal>Transaction</literal> API. The transaction management code is identical to the non-managed environment."
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:512
-#, no-c-format
-msgid ""
- "<![CDATA[// BMT idiom\n"
- "Session sess = factory.openSession();\n"
- "Transaction tx = null;\n"
- "try {\n"
- " tx = sess.beginTransaction();\n"
- "\n"
- " // do some work\n"
- " ...\n"
- "\n"
- " tx.commit();\n"
- "}\n"
- "catch (RuntimeException e) {\n"
- " if (tx != null) tx.rollback();\n"
- " throw e; // or display error message\n"
- "}\n"
- "finally {\n"
- " sess.close();\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:514
#, no-c-format
msgid "If you want to use a transaction-bound <literal>Session</literal>, that is, the <literal>getCurrentSession()</literal> functionality for easy context propagation, use the JTA <literal>UserTransaction</literal> API directly:"
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:520
-#, no-c-format
-msgid ""
- "<![CDATA[// BMT idiom with getCurrentSession()\n"
- "try {\n"
- " UserTransaction tx = (UserTransaction)new InitialContext()\n"
- " .lookup(\"java:comp/UserTransaction\");\n"
- "\n"
- " tx.begin();\n"
- "\n"
- " // Do some work on Session bound to transaction\n"
- " factory.getCurrentSession().load(...);\n"
- " factory.getCurrentSession().persist(...);\n"
- "\n"
- " tx.commit();\n"
- "}\n"
- "catch (RuntimeException e) {\n"
- " tx.rollback();\n"
- " throw e; // or display error message\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:522
#, no-c-format
msgid "With CMT, transaction demarcation is completed in session bean deployment descriptors, not programmatically. The code is reduced to:"
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:527
-#, no-c-format
-msgid ""
- "<![CDATA[// CMT idiom\n"
- " Session sess = factory.getCurrentSession();\n"
- "\n"
- " // do some work\n"
- " ...\n"
- "]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:529
#, no-c-format
msgid "In a CMT/EJB, even rollback happens automatically. An unhandled <literal>RuntimeException</literal> thrown by a session bean method tells the container to set the global transaction to rollback. <emphasis>You do not need to use the Hibernate <literal>Transaction</literal> API at all with BMT or CMT, and you get automatic propagation of the \"current\" Session bound to the transaction.</emphasis>"
msgstr ""
#. Tag: para
-#: transactions.xml:537
#, no-c-format
msgid "When configuring Hibernate's transaction factory, choose <literal>org.hibernate.transaction.JTATransactionFactory</literal> if you use JTA directly (BMT), and <literal>org.hibernate.transaction.CMTTransactionFactory</literal> in a CMT session bean. Remember to also set <literal>hibernate.transaction.manager_lookup_class</literal>. Ensure that your <literal>hibernate.current_session_context_class</literal> is either unset (backwards compatibility), or is set to <literal>\"jta\"</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:546
#, no-c-format
msgid "The <literal>getCurrentSession()</literal> operation has one downside in a JTA environment. There is one caveat to the use of <literal>after_statement</literal> connection release mode, which is then used by default. Due to a limitation of the JTA spec, it is not possible for Hibernate to automatically clean up any unclosed <literal>ScrollableResults</literal> or <literal>Iterator</literal> instances returned by <literal>scroll()</literal> or <literal>iterate()</literal>. You <emphasis>must</emphasis> release the underlying database cursor by calling <literal>ScrollableResults.close()</literal> or <literal>Hibernate.close(Iterator)</literal> explicitly from a <literal>finally</literal> block. Most applications can easily avoid using <literal>scroll()</literal> or <literal>iterate()</literal> from the JTA or CMT code.)"
msgstr ""
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr ""
#. Tag: para
-#: transactions.xml:564
#, no-c-format
msgid "If the <literal>Session</literal> throws an exception, including any <literal>SQLException</literal>, immediately rollback the database transaction, call <literal>Session.close()</literal> and discard the <literal>Session</literal> instance. Certain methods of <literal>Session</literal> will <emphasis>not</emphasis> leave the session in a consistent state. No exception thrown by Hibernate can be treated as recoverable. Ensure that the <literal>Session</literal> will be closed by calling <literal>close()</literal> in a <literal>finally</literal> block."
msgstr ""
#. Tag: para
-#: transactions.xml:575
#, no-c-format
msgid "The <literal>HibernateException</literal>, which wraps most of the errors that can occur in a Hibernate persistence layer, is an unchecked exception. It was not in older versions of Hibernate. In our opinion, we should not force the application developer to catch an unrecoverable exception at a low layer. In most systems, unchecked and fatal exceptions are handled in one of the first frames of the method call stack (i.e., in higher layers) and either an error message is presented to the application user or some other appropriate action is taken. Note that Hibernate might also throw other unchecked exceptions that are not a <literal>HibernateException</literal>. These are not recoverable and appropriate action should be taken."
msgstr ""
#. Tag: para
-#: transactions.xml:587
#, no-c-format
msgid "Hibernate wraps <literal>SQLException</literal>s thrown while interacting with the database in a <literal>JDBCException</literal>. In fact, Hibernate will attempt to convert the exception into a more meaningful subclass of <literal>JDBCException</literal>. The underlying <literal>SQLException</literal> is always available via <literal>JDBCException.getCause()</literal>. Hibernate converts the <literal>SQLException</literal> into an appropriate <literal>JDBCException</literal> subclass using the <literal>SQLExceptionConverter</literal> attached to the <literal>SessionFactory</literal>. By default, the <literal>SQLExceptionConverter</literal> is defined by the configured dialect. However, it is also possible to plug in a custom implementation. See the javadocs for the <literal>SQLExceptionConverterFactory</literal> class for details. The standard <literal>JDBCException</literal> subtypes are:"
msgstr ""
#. Tag: para
-#: transactions.xml:603
#, no-c-format
msgid "<literal>JDBCConnectionException</literal>: indicates an error with the underlying JDBC communication."
msgstr ""
#. Tag: para
-#: transactions.xml:609
#, no-c-format
msgid "<literal>SQLGrammarException</literal>: indicates a grammar or syntax problem with the issued SQL."
msgstr ""
#. Tag: para
-#: transactions.xml:615
#, no-c-format
msgid "<literal>ConstraintViolationException</literal>: indicates some form of integrity constraint violation."
msgstr ""
#. Tag: para
-#: transactions.xml:621
#, no-c-format
msgid "<literal>LockAcquisitionException</literal>: indicates an error acquiring a lock level necessary to perform the requested operation."
msgstr ""
#. Tag: para
-#: transactions.xml:627
#, no-c-format
msgid "<literal>GenericJDBCException</literal>: a generic exception which did not fall into any of the other categories."
msgstr ""
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
msgstr ""
#. Tag: para
-#: transactions.xml:639
#, no-c-format
msgid "An important feature provided by a managed environment like EJB, that is never provided for non-managed code, is transaction timeout. Transaction timeouts ensure that no misbehaving transaction can indefinitely tie up resources while returning no response to the user. Outside a managed (JTA) environment, Hibernate cannot fully provide this functionality. However, Hibernate can at least control data access operations, ensuring that database level deadlocks and queries with huge result sets are limited by a defined timeout. In a managed environment, Hibernate can delegate transaction timeout to JTA. This functionality is abstracted by the Hibernate <literal>Transaction</literal> object."
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:652
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "Session sess = factory.openSession();\n"
- "try {\n"
- " //set transaction timeout to 3 seconds\n"
- " sess.getTransaction().setTimeout(3);\n"
- " sess.getTransaction().begin();\n"
- "\n"
- " // do some work\n"
- " ...\n"
- "\n"
- " sess.getTransaction().commit()\n"
- "}\n"
- "catch (RuntimeException e) {\n"
- " sess.getTransaction().rollback();\n"
- " throw e; // or display error message\n"
- "}\n"
- "finally {\n"
- " sess.close();\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:654
#, no-c-format
msgid "<literal>setTimeout()</literal> cannot be called in a CMT bean, where transaction timeouts must be defined declaratively."
msgstr ""
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
msgstr ""
#. Tag: para
-#: transactions.xml:666
#, no-c-format
msgid "The only approach that is consistent with high concurrency and high scalability, is optimistic concurrency control with versioning. Version checking uses version numbers, or timestamps, to detect conflicting updates and to prevent lost updates. Hibernate provides three possible approaches to writing application code that uses optimistic concurrency. The use cases we discuss are in the context of long conversations, but version checking also has the benefit of preventing lost updates in single database transactions."
msgstr ""
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
msgstr ""
#. Tag: para
-#: transactions.xml:679
#, no-c-format
msgid "In an implementation without much help from Hibernate, each interaction with the database occurs in a new <literal>Session</literal> and the developer is responsible for reloading all persistent instances from the database before manipulating them. The application is forced to carry out its own version checking to ensure conversation transaction isolation. This approach is the least efficient in terms of database access. It is the approach most similar to entity EJBs."
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
- "<![CDATA[// foo is an instance loaded by a previous Session\n"
- "session = factory.openSession();\n"
- "Transaction t = session.beginTransaction();\n"
- "\n"
- "int oldVersion = foo.getVersion();\n"
- "session.load( foo, foo.getKey() ); // load the current state\n"
- "if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();\n"
- "foo.setProperty(\"bar\");\n"
- "\n"
- "t.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid "The <literal>version</literal> property is mapped using <literal><version></literal>, and Hibernate will automatically increment it during flush if the entity is dirty."
msgstr ""
#. Tag: para
-#: transactions.xml:696
#, no-c-format
msgid "If you are operating in a low-data-concurrency environment, and do not require version checking, you can use this approach and skip the version check. In this case, <emphasis>last commit wins</emphasis> is the default strategy for long conversations. Be aware that this might confuse the users of the application, as they might experience lost updates without error messages or a chance to merge conflicting changes."
msgstr ""
#. Tag: para
-#: transactions.xml:705
#, no-c-format
msgid "Manual version checking is only feasible in trivial circumstances and not practical for most applications. Often not only single instances, but complete graphs of modified objects, have to be checked. Hibernate offers automatic version checking with either an extended <literal>Session</literal> or detached instances as the design paradigm."
msgstr ""
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
msgstr ""
#. Tag: para
-#: transactions.xml:718
#, no-c-format
msgid "A single <literal>Session</literal> instance and its persistent instances that are used for the whole conversation are known as <emphasis>session-per-conversation</emphasis>. Hibernate checks instance versions at flush time, throwing an exception if concurrent modification is detected. It is up to the developer to catch and handle this exception. Common options are the opportunity for the user to merge changes or to restart the business conversation with non-stale data."
msgstr ""
#. Tag: para
-#: transactions.xml:727
#, no-c-format
msgid "The <literal>Session</literal> is disconnected from any underlying JDBC connection when waiting for user interaction. This approach is the most efficient in terms of database access. The application does not version check or reattach detached instances, nor does it have to reload instances in every database transaction."
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:735
-#, no-c-format
-msgid ""
- "<![CDATA[// foo is an instance loaded earlier by the old session\n"
- "Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, start transaction\n"
- "\n"
- "foo.setProperty(\"bar\");\n"
- "\n"
- "session.flush(); // Only for last transaction in conversation\n"
- "t.commit(); // Also return JDBC connection\n"
- "session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:736
#, no-c-format
msgid "The <literal>foo</literal> object knows which <literal>Session</literal> it was loaded in. Beginning a new database transaction on an old session obtains a new connection and resumes the session. Committing a database transaction disconnects a session from the JDBC connection and returns the connection to the pool. After reconnection, to force a version check on data you are not updating, you can call <literal>Session.lock()</literal> with <literal>LockMode.READ</literal> on any objects that might have been updated by another transaction. You do not need to lock any data that you <emphasis>are</emphasis> updating. Usually you would set <literal>FlushMode.MANUAL</literal> on an extended <literal>Session</literal>, so that only the last database transaction cycle is allowed to actually persist all modifications made in this conversation. Only this last database transaction will include the <literal>flush()</literal> operation, and then <literal>close()</literal> the se!
ssion to end the conversation."
msgstr ""
#. Tag: para
-#: transactions.xml:751
#, no-c-format
msgid "This pattern is problematic if the <literal>Session</literal> is too big to be stored during user think time (for example, an <literal>HttpSession</literal> should be kept as small as possible). As the <literal>Session</literal> is also the first-level cache and contains all loaded objects, we can probably use this strategy only for a few request/response cycles. Use a <literal>Session</literal> only for a single conversation as it will soon have stale data."
msgstr ""
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
-#: transactions.xml:763
#, no-c-format
msgid "Earlier versions of Hibernate required explicit disconnection and reconnection of a <literal>Session</literal>. These methods are deprecated, as beginning and ending a transaction has the same effect."
msgstr ""
#. Tag: para
-#: transactions.xml:769
#, no-c-format
msgid "Keep the disconnected <literal>Session</literal> close to the persistence layer. Use an EJB stateful session bean to hold the <literal>Session</literal> in a three-tier environment. Do not transfer it to the web layer, or even serialize it to a separate tier, to store it in the <literal>HttpSession</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:777
#, no-c-format
msgid "The extended session pattern, or <emphasis>session-per-conversation</emphasis>, is more difficult to implement with automatic current session context management. You need to supply your own implementation of the <literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki for examples."
msgstr ""
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr ""
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid "Each interaction with the persistent store occurs in a new <literal>Session</literal>. However, the same persistent instances are reused for each interaction with the database. The application manipulates the state of detached instances originally loaded in another <literal>Session</literal> and then reattaches them using <literal>Session.update()</literal>, <literal>Session.saveOrUpdate()</literal>, or <literal>Session.merge()</literal>."
msgstr ""
-#. Tag: programlisting
-#: transactions.xml:797
-#, no-c-format
-msgid ""
- "<![CDATA[// foo is an instance loaded by a previous Session\n"
- "foo.setProperty(\"bar\");\n"
- "session = factory.openSession();\n"
- "Transaction t = session.beginTransaction();\n"
- "session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded already\n"
- "t.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:799
#, no-c-format
msgid "Again, Hibernate will check instance versions during flush, throwing an exception if conflicting updates occurred."
msgstr ""
#. Tag: para
-#: transactions.xml:804
#, no-c-format
msgid "You can also call <literal>lock()</literal> instead of <literal>update()</literal>, and use <literal>LockMode.READ</literal> (performing a version check and bypassing all caches) if you are sure that the object has not been modified."
msgstr ""
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr ""
#. Tag: para
-#: transactions.xml:815
#, no-c-format
msgid "You can disable Hibernate's automatic version increment for particular properties and collections by setting the <literal>optimistic-lock</literal> mapping attribute to <literal>false</literal>. Hibernate will then no longer increment versions if the property is dirty."
msgstr ""
#. Tag: para
-#: transactions.xml:822
#, no-c-format
msgid "Legacy database schemas are often static and cannot be modified. Or, other applications might access the same database and will not know how to handle version numbers or even timestamps. In both cases, versioning cannot rely on a particular column in a table. To force a version check with a comparison of the state of all fields in a row but without a version or timestamp property mapping, turn on <literal>optimistic-lock=\"all\"</literal> in the <literal><class></literal> mapping. This conceptually only works if Hibernate can compare the old and the new state (i.e., if you use a single long <literal>Session</literal> and not session-per-request-with-detached-objects)."
msgstr ""
#. Tag: para
-#: transactions.xml:834
#, no-c-format
msgid "Concurrent modification can be permitted in instances where the changes that have been made do not overlap. If you set <literal>optimistic-lock=\"dirty\"</literal> when mapping the <literal><class></literal>, Hibernate will only compare dirty fields during flush."
msgstr ""
#. Tag: para
-#: transactions.xml:840
#, no-c-format
msgid "In both cases, with dedicated version/timestamp columns or with a full/dirty field comparison, Hibernate uses a single <literal>UPDATE</literal> statement, with an appropriate <literal>WHERE</literal> clause, per entity to execute the version check and update the information. If you use transitive persistence to cascade reattachment to associated entities, Hibernate may execute unnecessary updates. This is usually not a problem, but <emphasis>on update</emphasis> triggers in the database might be executed even when no changes have been made to detached instances. You can customize this behavior by setting <literal>select-before-update=\"true\"</literal> in the <literal><class></literal> mapping, forcing Hibernate to <literal>SELECT</literal> the instance to ensure that changes did occur before updating the row."
msgstr ""
#. Tag: title
-#: transactions.xml:858
#, no-c-format
msgid "Pessimistic locking"
msgstr ""
#. Tag: para
-#: transactions.xml:860
#, no-c-format
msgid "It is not intended that users spend much time worrying about locking strategies. It is usually enough to specify an isolation level for the JDBC connections and then simply let the database do all the work. However, advanced users may wish to obtain exclusive pessimistic locks or re-obtain locks at the start of a new transaction."
msgstr ""
#. Tag: para
-#: transactions.xml:867
#, no-c-format
msgid "Hibernate will always use the locking mechanism of the database; it never lock objects in memory."
msgstr ""
#. Tag: para
-#: transactions.xml:872
#, no-c-format
msgid "The <literal>LockMode</literal> class defines the different lock levels that can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid "<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate updates or inserts a row."
msgstr ""
#. Tag: para
-#: transactions.xml:885
#, no-c-format
msgid "<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user request using <literal>SELECT ... FOR UPDATE</literal> on databases which support that syntax."
msgstr ""
#. Tag: para
-#: transactions.xml:891
#, no-c-format
msgid "<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under Oracle."
msgstr ""
#. Tag: para
-#: transactions.xml:897
#, no-c-format
msgid "<literal>LockMode.READ</literal> is acquired automatically when Hibernate reads data under Repeatable Read or Serializable isolation level. It can be re-acquired by explicit user request."
msgstr ""
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid "<literal>LockMode.NONE</literal> represents the absence of a lock. All objects switch to this lock mode at the end of a <literal>Transaction</literal>. Objects associated with the session via a call to <literal>update()</literal> or <literal>saveOrUpdate()</literal> also start out in this lock mode."
msgstr ""
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid "The \"explicit user request\" is expressed in one of the following ways:"
msgstr ""
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid "A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid "If <literal>Session.load()</literal> is called with <literal>UPGRADE</literal> or <literal>UPGRADE_NOWAIT</literal>, and the requested object was not yet loaded by the session, the object is loaded using <literal>SELECT ... FOR UPDATE</literal>. If <literal>load()</literal> is called for an object that is already loaded with a less restrictive lock than the one requested, Hibernate calls <literal>lock()</literal> for that object."
msgstr ""
#. Tag: para
-#: transactions.xml:944
#, no-c-format
msgid "<literal>Session.lock()</literal> performs a version number check if the specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> or <literal>UPGRADE_NOWAIT</literal>. In the case of <literal>UPGRADE</literal> or <literal>UPGRADE_NOWAIT</literal>, <literal>SELECT ... FOR UPDATE</literal> is used."
msgstr ""
#. Tag: para
-#: transactions.xml:951
#, no-c-format
msgid "If the requested lock mode is not supported by the database, Hibernate uses an appropriate alternate mode instead of throwing an exception. This ensures that applications are portable."
msgstr ""
#. Tag: title
-#: transactions.xml:960
#, no-c-format
msgid "Connection release modes"
msgstr ""
#. Tag: para
-#: transactions.xml:962
#, no-c-format
msgid "One of the legacies of Hibernate 2.x JDBC connection management meant that a <literal>Session</literal> would obtain a connection when it was first required and then maintain that connection until the session was closed. Hibernate 3.x introduced the notion of connection release modes that would instruct a session how to handle its JDBC connections. The following discussion is pertinent only to connections provided through a configured <literal>ConnectionProvider</literal>. User-supplied connections are outside the breadth of this discussion. The different release modes are identified by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</literal>:"
msgstr ""
#. Tag: para
-#: transactions.xml:976
#, no-c-format
msgid "<literal>ON_CLOSE</literal>: is the legacy behavior described above. The Hibernate session obtains a connection when it first needs to perform some JDBC access and maintains that connection until the session is closed."
msgstr ""
#. Tag: para
-#: transactions.xml:983
#, no-c-format
msgid "<literal>AFTER_TRANSACTION</literal>: releases connections after a <literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
#. Tag: para
-#: transactions.xml:989
#, no-c-format
msgid "<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): releases connections after every statement execution. This aggressive releasing is skipped if that statement leaves open resources associated with the given session. Currently the only situation where this occurs is through the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
#. Tag: para
-#: transactions.xml:999
#, no-c-format
msgid "The configuration parameter <literal>hibernate.connection.release_mode</literal> is used to specify which release mode to use. The possible values are as follows:"
msgstr ""
#. Tag: para
-#: transactions.xml:1006
#, no-c-format
msgid "<literal>auto</literal> (the default): this choice delegates to the release mode returned by the <literal>org.hibernate.transaction.TransactionFactory.getDefaultReleaseMode()</literal> method. For JTATransactionFactory, this returns ConnectionReleaseMode.AFTER_STATEMENT; for JDBCTransactionFactory, this returns ConnectionReleaseMode.AFTER_TRANSACTION. Do not change this default behavior as failures due to the value of this setting tend to indicate bugs and/or invalid assumptions in user code."
msgstr ""
#. Tag: para
-#: transactions.xml:1016
#, no-c-format
msgid "<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
#. Tag: para
-#: transactions.xml:1022
#, no-c-format
msgid "<literal>after_transaction</literal>: uses ConnectionReleaseMode.AFTER_TRANSACTION. This setting should not be used in JTA environments. Also note that with ConnectionReleaseMode.AFTER_TRANSACTION, if a session is considered to be in auto-commit mode, connections will be released as if the release mode were AFTER_STATEMENT."
msgstr ""
#. Tag: para
-#: transactions.xml:1030
#, no-c-format
msgid "<literal>after_statement</literal>: uses ConnectionReleaseMode.AFTER_STATEMENT. Additionally, the configured <literal>ConnectionProvider</literal> is consulted to see if it supports this setting (<literal>supportsAggressiveRelease()</literal>). If not, the release mode is reset to ConnectionReleaseMode.AFTER_TRANSACTION. This setting is only safe in environments where we can either re-acquire the same underlying JDBC connection each time you make a call into <literal>ConnectionProvider.getConnection()</literal> or in auto-commit environments where it does not matter if we re-establish the same connection."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/tutorial.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/tutorial.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/tutorial.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,1582 +1,698 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-02-11T05:38:16\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
msgstr ""
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid "Intended for new users, this chapter provides an step-by-step introduction to Hibernate, starting with a simple application using an in-memory database. The tutorial is based on an earlier tutorial developed by Michael Gloegl. All code is contained in the <filename>tutorials/web</filename> directory of the project source."
msgstr ""
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid "This tutorial expects the user have knowledge of both Java and SQL. If you have a limited knowledge of JAVA or SQL, it is advised that you start with a good introduction to that technology prior to attempting to learn Hibernate."
msgstr ""
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid "The distribution contains another example application under the <filename>tutorial/eg</filename> project source directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
msgstr ""
#. Tag: para
-#: tutorial.xml:61
#, no-c-format
msgid "For this example, we will set up a small database application that can store events we want to attend and information about the host(s) of these events."
msgstr ""
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid "Although you can use whatever database you feel comfortable using, we will use <ulink url=\"http://hsqldb.org/\">HSQLDB</ulink> (an in-memory, Java database) to avoid describing installation/setup of any particular database servers."
msgstr ""
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
msgstr ""
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid "The first thing we need to do is to set up the development environment. We will be using the \"standard layout\" advocated by alot of build tools such as <ulink url=\"http://maven.org\">Maven</ulink>. Maven, in particular, has a good resource describing this <ulink url=\"http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html\">layout</ulink>. As this tutorial is to be a web application, we will be creating and making use of <filename>src/main/java</filename>, <filename>src/main/resources</filename> and <filename>src/main/webapp</filename> directories."
msgstr ""
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid "We will be using Maven in this tutorial, taking advantage of its transitive dependency management capabilities as well as the ability of many IDEs to automatically set up a project for us based on the maven descriptor."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
- "<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
- " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
- " xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n"
- "\n"
- " <modelVersion>4.0.0</modelVersion>\n"
- "\n"
- " <groupId>org.hibernate.tutorials</groupId>\n"
- " <artifactId>hibernate-tutorial</artifactId>\n"
- " <version>1.0.0-SNAPSHOT</version>\n"
- " <name>First Hibernate Tutorial</name>\n"
- "\n"
- " <build>\n"
- " <!-- we dont want the version to be part of the generated war file name -->\n"
- " <finalName>${artifactId}</finalName>\n"
- " </build>\n"
- "\n"
- " <dependencies>\n"
- " <dependency>\n"
- " <groupId>org.hibernate</groupId>\n"
- " <artifactId>hibernate-core</artifactId>\n"
- " </dependency>\n"
- "\n"
- " <!-- Because this is a web app, we also have a dependency on the servlet api. -->\n"
- " <dependency>\n"
- " <groupId>javax.servlet</groupId>\n"
- " <artifactId>servlet-api</artifactId>\n"
- " </dependency>\n"
- "\n"
- " <!-- Hibernate uses slf4j for logging, for our purposes here use the simple backend -->\n"
- " <dependency>\n"
- " <groupId>org.slf4j</groupId>\n"
- " <artifactId>slf4j-simple</artifactId>\n"
- " </dependency>\n"
- "\n"
- " <!-- Hibernate gives you a choice of bytecode providers between cglib and javassist -->\n"
- " <dependency>\n"
- " <groupId>javassist</groupId>\n"
- " <artifactId>javassist</artifactId>\n"
- " </dependency>\n"
- " </dependencies>\n"
- "\n"
- "</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
#, no-c-format
msgid "It is not a requirement to use Maven. If you wish to use something else to build this tutoial (such as Ant), the layout will remain the same. The only change is that you will need to manually account for all the needed dependencies. If you use something like <ulink url=\"http://ant.apache.org/ivy/\">Ivy</ulink> providing transitive dependency management you would still use the dependencies mentioned below. Otherwise, you'd need to grab <emphasis>all</emphasis> dependencies, both explicit and transitive, and add them to the project's classpath. If working from the Hibernate distribution bundle, this would mean <filename>hibernate3.jar</filename>, all artifacts in the <filename>lib/required</filename> directory and all files from either the <filename>lib/bytecode/cglib</filename> or <filename>lib/bytecode/javassist</filename> directory; additionally you will need both the servlet-api jar and one of the slf4j logging backends."
msgstr ""
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid "Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr ""
#. Tag: para
-#: tutorial.xml:123
#, no-c-format
msgid "Next, we create a class that represents the event we want to store in the database; it is a simple JavaBean class with some properties:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:128
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.tutorial.domain;\n"
- "\n"
- "import java.util.Date;\n"
- "\n"
- "public class Event {\n"
- " private Long id;\n"
- "\n"
- " private String title;\n"
- " private Date date;\n"
- "\n"
- " public Event() {}\n"
- "\n"
- " public Long getId() {\n"
- " return id;\n"
- " }\n"
- "\n"
- " private void setId(Long id) {\n"
- " this.id = id;\n"
- " }\n"
- "\n"
- " public Date getDate() {\n"
- " return date;\n"
- " }\n"
- "\n"
- " public void setDate(Date date) {\n"
- " this.date = date;\n"
- " }\n"
- "\n"
- " public String getTitle() {\n"
- " return title;\n"
- " }\n"
- "\n"
- " public void setTitle(String title) {\n"
- " this.title = title;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:130
#, no-c-format
msgid "This class uses standard JavaBean naming conventions for property getter and setter methods, as well as private visibility for the fields. Although this is the recommended design, it is not required. Hibernate can also access fields directly, the benefit of accessor methods is robustness for refactoring."
msgstr ""
#. Tag: para
-#: tutorial.xml:138
#, no-c-format
msgid "The <literal>id</literal> property holds a unique identifier value for a particular event. All persistent entity classes (there are less important dependent classes as well) will need such an identifier property if we want to use the full feature set of Hibernate. In fact, most applications, especially web applications, need to distinguish objects by identifier, so you should consider this a feature rather than a limitation. However, we usually do not manipulate the identity of an object, hence the setter method should be private. Only Hibernate will assign identifiers when an object is saved. Hibernate can access public, private, and protected accessor methods, as well as public, private and protected fields directly. The choice is up to you and you can match it to fit your application design."
msgstr ""
#. Tag: para
-#: tutorial.xml:153
#, no-c-format
msgid "The no-argument constructor is a requirement for all persistent classes; Hibernate has to create objects for you, using Java Reflection. The constructor can be private, however package or public visibility is required for runtime proxy generation and efficient data retrieval without bytecode instrumentation."
msgstr ""
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid "Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</filename> directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
msgstr ""
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid "Hibernate needs to know how to load and store objects of the persistent class. This is where the Hibernate mapping file comes into play. The mapping file tells Hibernate what table in the database it has to access, and what columns in that table it should use."
msgstr ""
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:182
-#, no-c-format
-msgid ""
- "<![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\">\n"
- "\n"
- "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
- "[...]\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:184
#, no-c-format
msgid "Hibernate DTD is sophisticated. You can use it for auto-completion of XML mapping elements and attributes in your editor or IDE. Opening up the DTD file in your text editor is the easiest way to get an overview of all elements and attributes, and to view the defaults, as well as some comments. Hibernate will not load the DTD file from the web, but first look it up from the classpath of the application. The DTD file is included in <filename>hibernate-core.jar</filename> (it is also included in the <filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
#. Tag: para
-#: tutorial.xml:197
#, no-c-format
msgid "We will omit the DTD declaration in future examples to shorten the code. It is, of course, not optional."
msgstr ""
#. Tag: para
-#: tutorial.xml:203
#, no-c-format
msgid "Between the two <literal>hibernate-mapping</literal> tags, include a <literal>class</literal> element. All persistent entity classes (again, there might be dependent classes later on, which are not first-class entities) need a mapping to a table in the SQL database:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:210
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
- "\n"
- " <class name=\"Event\" table=\"EVENTS\">\n"
- "\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:212
#, no-c-format
msgid "So far we have told Hibernate how to persist and load object of class <literal>Event</literal> to the table <literal>EVENTS</literal>. Each instance is now represented by a row in that table. Now we can continue by mapping the unique identifier property to the tables primary key. As we do not want to care about handling this identifier, we configure Hibernate's identifier generation strategy for a surrogate primary key column:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
- "\n"
- " <class name=\"Event\" table=\"EVENTS\">\n"
- " <id name=\"id\" column=\"EVENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid "The <literal>id</literal> element is the declaration of the identifier property. The <literal>name=\"id\"</literal> mapping attribute declares the name of the JavaBean property and tells Hibernate to use the <literal>getId()</literal> and <literal>setId()</literal> methods to access the property. The column attribute tells Hibernate which column of the <literal>EVENTS</literal> table holds the primary key value."
msgstr ""
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid "The nested <literal>generator</literal> element specifies the identifier generation strategy (aka how are identifier values generated?). In this case we choose <literal>native</literal>, which offers a level of portability depending on the configured database dialect. Hibernate supports database generated, globally unique, as well as application assigned, identifiers. Identifier value generation is also one of Hibernate's many extension points and you can plugin in your own strategy."
msgstr ""
#. Tag: para
-#: tutorial.xml:246
#, no-c-format
-msgid "<literal>native</literal> is no longer consider the best strategy in terms of portability. for further discussion, see"
+msgid "<literal>native</literal> is no longer consider the best strategy in terms of portability. for further discussion, see <xref linkend=\"portability-idgen\" />"
msgstr ""
#. Tag: para
-#: tutorial.xml:252
#, no-c-format
msgid "Lastly, we need to tell Hibernate about the remaining entity class properties. By default, no properties of the class are considered persistent:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:258
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
- "\n"
- " <class name=\"Event\" table=\"EVENTS\">\n"
- " <id name=\"id\" column=\"EVENT_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
- " <property name=\"title\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:260
#, no-c-format
msgid "Similar to the <literal>id</literal> element, the <literal>name</literal> attribute of the <literal>property</literal> element tells Hibernate which getter and setter methods to use. In this case, Hibernate will search for <literal>getDate()</literal>, <literal>setDate()</literal>, <literal>getTitle()</literal> and <literal>setTitle()</literal> methods."
msgstr ""
#. Tag: para
-#: tutorial.xml:271
#, no-c-format
msgid "Why does the <literal>date</literal> property mapping include the <literal>column</literal> attribute, but the <literal>title</literal> does not? Without the <literal>column</literal> attribute, Hibernate by default uses the property name as the column name. This works for <literal>title</literal>, however, <literal>date</literal> is a reserved keyword in most databases so you will need to map it to a different name."
msgstr ""
#. Tag: para
-#: tutorial.xml:281
#, no-c-format
msgid "The <literal>title</literal> mapping also lacks a <literal>type</literal> attribute. The types declared and used in the mapping files are not Java data types; they are not SQL database types either. These types are called <emphasis>Hibernate mapping types</emphasis>, converters which can translate from Java to SQL data types and vice versa. Again, Hibernate will try to determine the correct conversion and mapping type itself if the <literal>type</literal> attribute is not present in the mapping. In some cases this automatic detection using Reflection on the Java class might not have the default you expect or need. This is the case with the <literal>date</literal> property. Hibernate cannot know if the property, which is of <literal>java.util.Date</literal>, should map to a SQL <literal>date</literal>, <literal>timestamp</literal>, or <literal>time</literal> column. Full date and time information is preserved by mapping the property with a <literal>timestamp</literal>!
converter."
msgstr ""
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid "Hibernate makes this mapping type determination using reflection when the mapping files are processed. This can take time and resources, so if startup performance is important you should consider explicitly defining the type to use."
msgstr ""
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid "Save this mapping file as <filename>src/main/resources/org/hibernate/tutorial/domain/Event.hbm.xml</filename>."
msgstr ""
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
msgstr ""
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid "At this point, you should have the persistent class and its mapping file in place. It is now time to configure Hibernate. First let's set up HSQLDB to run in \"server mode\""
msgstr ""
#. Tag: para
-#: tutorial.xml:321
#, no-c-format
msgid "We do this do that the data remains between runs."
msgstr ""
#. Tag: para
-#: tutorial.xml:326
#, no-c-format
msgid "We will utilize the Maven exec plugin to launch the HSQLDB server by running: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -Dexec.args=\"-database.0 file:target/data/tutorial\"</command> You will see it start up and bind to a TCP/IP socket; this is where our application will connect later. If you want to start with a fresh database during this tutorial, shutdown HSQLDB, delete all files in the <filename>target/data</filename> directory, and start HSQLDB again."
msgstr ""
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid "Hibernate will be connecting to the database on behalf of your application, so it needs to know how to obtain connections. For this tutorial we will be using a standalone connection pool (as opposed to a <interfacename>javax.sql.DataSource</interfacename>). Hibernate comes with support for two third-party open source JDBC connection pools: <ulink url=\"https://sourceforge.net/projects/c3p0\">c3p0</ulink> and <ulink url=\"http://proxool.sourceforge.net/\">proxool</ulink>. However, we will be using the Hibernate built-in connection pool for this tutorial."
msgstr ""
#. Tag: para
-#: tutorial.xml:348
#, no-c-format
msgid "The built-in Hibernate connection pool is in no way intended for production use. It lacks several features found on any decent connection pool."
msgstr ""
#. Tag: para
-#: tutorial.xml:354
#, no-c-format
msgid "For Hibernate's configuration, we can use a simple <literal>hibernate.properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</literal> file, or even complete programmatic setup. Most users prefer the XML configuration file:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
- "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
- "<!DOCTYPE hibernate-configuration PUBLIC\n"
- " \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
- " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
- "\n"
- "<hibernate-configuration>\n"
- "\n"
- " <session-factory>\n"
- "\n"
- " <!-- Database connection settings -->\n"
- " <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</property>\n"
- " <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</property>\n"
- " <property name=\"connection.username\">sa</property>\n"
- " <property name=\"connection.password\"></property>\n"
- "\n"
- " <!-- JDBC connection pool (use the built-in) -->\n"
- " <property name=\"connection.pool_size\">1</property>\n"
- "\n"
- " <!-- SQL dialect -->\n"
- " <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</property>\n"
- "\n"
- " <!-- Enable Hibernate's automatic session context management -->\n"
- " <property name=\"current_session_context_class\">thread</property>\n"
- "\n"
- " <!-- Disable the second-level cache -->\n"
- " <property name=\"cache.provider_class\">org.hibernate.cache.NoCacheProvider</property>\n"
- "\n"
- " <!-- Echo all executed SQL to stdout -->\n"
- " <property name=\"show_sql\">true</property>\n"
- "\n"
- " <!-- Drop and re-create the database schema on startup -->\n"
- " <property name=\"hbm2ddl.auto\">update</property>\n"
- "\n"
- " <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
- "\n"
- " </session-factory>\n"
- "\n"
- "</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
msgstr ""
#. Tag: para
-#: tutorial.xml:366
#, no-c-format
msgid "You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory is a global factory responsible for a particular database. If you have several databases, for easier startup you should use several <literal><session-factory></literal> configurations in several configuration files."
msgstr ""
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid "The first four <literal>property</literal> elements contain the necessary configuration for the JDBC connection. The dialect <literal>property</literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
#. Tag: para
-#: tutorial.xml:380
#, no-c-format
-msgid "In most cases, Hibernate is able to properly determine which dialect to use. See <xref linkend=\"portability-dialectresolver\"/> for more information."
+msgid "In most cases, Hibernate is able to properly determine which dialect to use. See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
#. Tag: para
-#: tutorial.xml:386
#, no-c-format
msgid "Hibernate's automatic session management for persistence contexts is particularly useful in this context. The <literal>hbm2ddl.auto</literal> option turns on automatic generation of database schemas directly into the database. This can also be turned off by removing the configuration option, or redirected to a file with the help of the <literal>SchemaExport</literal> Ant task. Finally, add the mapping file(s) for persistent classes to the configuration."
msgstr ""
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid "Save this file as <filename>hibernate.cfg.xml</filename> into the <filename>src/main/resources</filename> directory."
msgstr ""
#. Tag: title
-#: tutorial.xml:403
#, no-c-format
msgid "Building with Maven"
msgstr ""
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid "We will now build the tutorial with Maven. You will need to have Maven installed; it is available from the <ulink url=\"http://maven.apache.org/download.html\">Maven download page</ulink>. Maven will read the <filename>/pom.xml</filename> file we created earlier and know how to perform some basic project tasks. First, lets run the <literal>compile</literal> goal to make sure we can compile everything so far:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
- "<![CDATA[[hibernateTutorial]$ mvn compile\n"
- "[INFO] Scanning for projects...\n"
- "[INFO] ------------------------------------------------------------------------\n"
- "[INFO] Building First Hibernate Tutorial\n"
- "[INFO] task-segment: [compile]\n"
- "[INFO] ------------------------------------------------------------------------\n"
- "[INFO] [resources:resources]\n"
- "[INFO] Using default encoding to copy filtered resources.\n"
- "[INFO] [compiler:compile]\n"
- "[INFO] Compiling 1 source file to /home/steve/projects/sandbox/hibernateTutorial/target/classes\n"
- "[INFO] ------------------------------------------------------------------------\n"
- "[INFO] BUILD SUCCESSFUL\n"
- "[INFO] ------------------------------------------------------------------------\n"
- "[INFO] Total time: 2 seconds\n"
- "[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
- "[INFO] Final Memory: 5M/547M\n"
- "[INFO] ------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
msgstr ""
#. Tag: para
-#: tutorial.xml:422
#, no-c-format
msgid "It is time to load and store some <literal>Event</literal> objects, but first you have to complete the setup with some infrastructure code. You have to startup Hibernate by building a global <interfacename>org.hibernate.SessionFactory</interfacename> object and storing it somewhere for easy access in application code. A <interfacename>org.hibernate.SessionFactory</interfacename> is used to obtain <interfacename>org.hibernate.Session</interfacename> instances. A <interfacename>org.hibernate.Session</interfacename> represents a single-threaded unit of work. The <interfacename>org.hibernate.SessionFactory</interfacename> is a thread-safe global object that is instantiated once."
msgstr ""
#. Tag: para
-#: tutorial.xml:436
#, no-c-format
msgid "We will create a <literal>HibernateUtil</literal> helper class that takes care of startup and makes accessing the <interfacename>org.hibernate.SessionFactory</interfacename> more convenient."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.tutorial.util;\n"
- "\n"
- "import org.hibernate.SessionFactory;\n"
- "import org.hibernate.cfg.Configuration;\n"
- "\n"
- "public class HibernateUtil {\n"
- "\n"
- " private static final SessionFactory sessionFactory = buildSessionFactory();\n"
- "\n"
- " private static SessionFactory buildSessionFactory() {\n"
- " try {\n"
- " // Create the SessionFactory from hibernate.cfg.xml\n"
- " return new Configuration().configure().buildSessionFactory();\n"
- " }\n"
- " catch (Throwable ex) {\n"
- " // Make sure you log the exception, as it might be swallowed\n"
- " System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n"
- " throw new ExceptionInInitializerError(ex);\n"
- " }\n"
- " }\n"
- "\n"
- " public static SessionFactory getSessionFactory() {\n"
- " return sessionFactory;\n"
- " }\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid "Save this code as <filename>src/main/java/org/hibernate/tutorial/util/HibernateUtil.java</filename>"
msgstr ""
#. Tag: para
-#: tutorial.xml:449
#, no-c-format
msgid "This class not only produces the global <interfacename>org.hibernate.SessionFactory</interfacename> reference in its static initializer; it also hides the fact that it uses a static singleton. We might just as well have looked up the <interfacename>org.hibernate.SessionFactory</interfacename> reference from JNDI in an application server or any other location for that matter."
msgstr ""
#. Tag: para
-#: tutorial.xml:458
#, no-c-format
msgid "If you give the <interfacename>org.hibernate.SessionFactory</interfacename> a name in your configuration, Hibernate will try to bind it to JNDI under that name after it has been built. Another, better option is to use a JMX deployment and let the JMX-capable container instantiate and bind a <literal>HibernateService</literal> to JNDI. Such advanced options are discussed later."
msgstr ""
#. Tag: para
-#: tutorial.xml:467
#, no-c-format
msgid "You now need to configure a logging system. Hibernate uses commons logging and provides two choices: Log4j and JDK 1.4 logging. Most developers prefer Log4j: copy <literal>log4j.properties</literal> from the Hibernate distribution in the <literal>etc/</literal> directory to your <literal>src</literal> directory, next to <literal>hibernate.cfg.xml</literal>. If you prefer to have more verbose output than that provided in the example configuration, you can change the settings. By default, only the Hibernate startup message is shown on stdout."
msgstr ""
#. Tag: para
-#: tutorial.xml:477
#, no-c-format
msgid "The tutorial infrastructure is complete and you are now ready to do some real work with Hibernate."
msgstr ""
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr ""
#. Tag: para
-#: tutorial.xml:487
#, no-c-format
msgid "We are now ready to start doing some real worjk with Hibernate. Let's start by writing an <literal>EventManager</literal> class with a <literal>main()</literal> method:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:493
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.tutorial;\n"
- "\n"
- "import org.hibernate.Session;\n"
- "\n"
- "import java.util.*;\n"
- "\n"
- "import org.hibernate.tutorial.domain.Event;\n"
- "import org.hibernate.tutorial.util.HibernateUtil;\n"
- "\n"
- "public class EventManager {\n"
- "\n"
- " public static void main(String[] args) {\n"
- " EventManager mgr = new EventManager();\n"
- "\n"
- " if (args[0].equals(\"store\")) {\n"
- " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
- " }\n"
- "\n"
- " HibernateUtil.getSessionFactory().close();\n"
- " }\n"
- "\n"
- " private void createAndStoreEvent(String title, Date theDate) {\n"
- " Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session.beginTransaction();\n"
- "\n"
- " Event theEvent = new Event();\n"
- " theEvent.setTitle(title);\n"
- " theEvent.setDate(theDate);\n"
- " session.save(theEvent);\n"
- "\n"
- " session.getTransaction().commit();\n"
- " }\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:495
#, no-c-format
msgid "In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</literal> object and handed it over to Hibernate. At that point, Hibernate takes care of the SQL and executes an <literal>INSERT</literal> on the database."
msgstr ""
#. Tag: para
-#: tutorial.xml:502
#, no-c-format
msgid "A <interface>org.hibernate.Session</interface> is designed to represent a single unit of work (a single atmoic piece of work to be performed). For now we will keep things simple and assume a one-to-one granularity between a Hibernate <interface>org.hibernate.Session</interface> and a database transaction. To shield our code from the actual underlying transaction system we use the Hibernate <interfacename>org.hibernate.Transaction</interfacename> API. In this particular case we are using JDBC-based transactional semantics, but it could also run with JTA."
msgstr ""
#. Tag: para
-#: tutorial.xml:515
#, no-c-format
msgid "What does <literal>sessionFactory.getCurrentSession()</literal> do? First, you can call it as many times and anywhere you like once you get hold of your <interfacename>org.hibernate.SessionFactory</interfacename>. The <literal>getCurrentSession()</literal> method always returns the \"current\" unit of work. Remember that we switched the configuration option for this mechanism to \"thread\" in our <filename>src/main/resources/hibernate.cfg.xml</filename>? Due to that setting, the context of a current unit of work is bound to the current Java thread that executes the application."
msgstr ""
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid "Hibernate offers three methods of current session tracking. The \"thread\" based method is not intended for production use; it is merely useful for prototyping and tutorials such as this one. Current session tracking is discussed in more detail later on."
msgstr ""
#. Tag: para
-#: tutorial.xml:538
#, no-c-format
msgid "A <interface>org.hibernate.Session</interface> begins when the first call to <literal>getCurrentSession()</literal> is made for the current thread. It is then bound by Hibernate to the current thread. When the transaction ends, either through commit or rollback, Hibernate automatically unbinds the <interface>org.hibernate.Session</interface> from the thread and closes it for you. If you call <literal>getCurrentSession()</literal> again, you get a new <interface>org.hibernate.Session</interface> and can start a new unit of work."
msgstr ""
#. Tag: para
-#: tutorial.xml:551
#, no-c-format
msgid "Related to the unit of work scope, should the Hibernate <interface>org.hibernate.Session</interface> be used to execute one or several database operations? The above example uses one <interface>org.hibernate.Session</interface> for one operation. However this is pure coincidence; the example is just not complex enough to show any other approach. The scope of a Hibernate <interface>org.hibernate.Session</interface> is flexible but you should never design your application to use a new Hibernate <interface>org.hibernate.Session</interface> for <emphasis>every</emphasis> database operation. Even though it is used in the following examples, consider <emphasis>session-per-operation</emphasis> an anti-pattern. A real web application is shown later in the tutorial which will help illustrate this."
msgstr ""
#. Tag: para
-#: tutorial.xml:568
#, no-c-format
-msgid "See <xref linkend=\"transactions\"/> for more information about transaction handling and demarcation. The previous example also skipped any error handling and rollback."
+msgid "See <xref linkend=\"transactions\" /> for more information about transaction handling and demarcation. The previous example also skipped any error handling and rollback."
msgstr ""
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid "To run this, we will make use of the Maven exec plugin to call our class with the necessary classpath setup: <command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store\"</command>"
msgstr ""
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
msgstr ""
#. Tag: para
-#: tutorial.xml:586
#, no-c-format
msgid "You should see Hibernate starting up and, depending on your configuration, lots of log output. Towards the end, the following line will be displayed:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid "<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
msgstr ""
#. Tag: para
-#: tutorial.xml:597
#, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:601
-#, no-c-format
-msgid ""
- "<![CDATA[ if (args[0].equals(\"store\")) {\n"
- " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
- " }\n"
- " else if (args[0].equals(\"list\")) {\n"
- " List events = mgr.listEvents();\n"
- " for (int i = 0; i < events.size(); i++) {\n"
- " Event theEvent = (Event) events.get(i);\n"
- " System.out.println(\n"
- " \"Event: \" + theEvent.getTitle() + \" Time: \" + theEvent.getDate()\n"
- " );\n"
- " }\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:603
#, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:607
-#, no-c-format
-msgid ""
- "<![CDATA[ private List listEvents() {\n"
- " Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session.beginTransaction();\n"
- " List result = session.createQuery(\"from Event\").list();\n"
- " session.getTransaction().commit();\n"
- " return result;\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:609
#, no-c-format
-msgid "Here, we are using a Hibernate Query Language (HQL) query to load all existing <literal>Event</literal> objects from the database. Hibernate will generate the appropriate SQL, send it to the database and populate <literal>Event</literal> objects with the data. You can create more complex queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+msgid "Here, we are using a Hibernate Query Language (HQL) query to load all existing <literal>Event</literal> objects from the database. Hibernate will generate the appropriate SQL, send it to the database and populate <literal>Event</literal> objects with the data. You can create more complex queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid "Now we can call our new functionality, again using the Maven exec plugin: <command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"list\"</command>"
msgstr ""
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
msgstr ""
#. Tag: para
-#: tutorial.xml:629
#, no-c-format
msgid "So far we have mapped a single persistent entity class to a table in isolation. Let's expand on that a bit and add some class associations. We will add people to the application and store a list of events in which they participate."
msgstr ""
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
msgstr ""
#. Tag: para
-#: tutorial.xml:639
#, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:643
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.tutorial.domain;\n"
- "\n"
- "public class Person {\n"
- "\n"
- " private Long id;\n"
- " private int age;\n"
- " private String firstname;\n"
- " private String lastname;\n"
- "\n"
- " public Person() {}\n"
- "\n"
- " // Accessor methods for all properties, private setter for 'id'\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid "Save this to a file named <filename>src/main/java/org/hibernate/tutorial/domain/Person.java</filename>"
msgstr ""
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid "Next, create the new mapping file as <filename>src/main/resources/org/hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
- "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
- "\n"
- " <class name=\"Person\" table=\"PERSON\">\n"
- " <id name=\"id\" column=\"PERSON_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"age\"/>\n"
- " <property name=\"firstname\"/>\n"
- " <property name=\"lastname\"/>\n"
- " </class>\n"
- "\n"
- "</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:661
-#, no-c-format
-msgid ""
- "<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
- "<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:663
#, no-c-format
msgid "Create an association between these two entities. Persons can participate in events, and events have participants. The design questions you have to deal with are: directionality, multiplicity, and collection behavior."
msgstr ""
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
msgstr ""
#. Tag: para
-#: tutorial.xml:675
#, no-c-format
msgid "By adding a collection of events to the <literal>Person</literal> class, you can easily navigate to the events for a particular person, without executing an explicit query - by calling <literal>Person#getEvents</literal>. Multi-valued associations are represented in Hibernate by one of the Java Collection Framework contracts; here we choose a <interfacename>java.util.Set</interfacename> because the collection will not contain duplicate elements and the ordering is not relevant to our examples:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:686
-#, no-c-format
-msgid ""
- "<![CDATA[public class Person {\n"
- "\n"
- " private Set events = new HashSet();\n"
- "\n"
- " public Set getEvents() {\n"
- " return events;\n"
- " }\n"
- "\n"
- " public void setEvents(Set events) {\n"
- " this.events = events;\n"
- " }\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:688
#, no-c-format
msgid "Before mapping this association, let's consider the other side. We could just keep this unidirectional or create another collection on the <literal>Event</literal>, if we wanted to be able to navigate it from both directions. This is not necessary, from a functional perspective. You can always execute an explicit query to retrieve the participants for a particular event. This is a design choice left to you, but what is clear from this discussion is the multiplicity of the association: \"many\" valued on both sides is called a <emphasis>many-to-many</emphasis> association. Hence, we use Hibernate's many-to-many mapping:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:701
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
- " <id name=\"id\" column=\"PERSON_ID\">\n"
- " <generator class=\"native\"/>\n"
- " </id>\n"
- " <property name=\"age\"/>\n"
- " <property name=\"firstname\"/>\n"
- " <property name=\"lastname\"/>\n"
- "\n"
- " <set name=\"events\" table=\"PERSON_EVENT\">\n"
- " <key column=\"PERSON_ID\"/>\n"
- " <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
- " </set>\n"
- "\n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:703
#, no-c-format
msgid "Hibernate supports a broad range of collection mappings, a <literal>set</literal> being most common. For a many-to-many association, or <emphasis>n:m</emphasis> entity relationship, an association table is required. Each row in this table represents a link between a person and an event. The table name is decalred using the <literal>table</literal> attribute of the <literal>set</literal> element. The identifier column name in the association, for the person side, is defined with the <literal>key</literal> element, the column name for the event's side with the <literal>column</literal> attribute of the <literal>many-to-many</literal>. You also have to tell Hibernate the class of the objects in your collection (the class on the other side of the collection of references)."
msgstr ""
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- " _____________ __________________\n"
- " | | | | _____________\n"
- " | EVENTS | | PERSON_EVENT | | |\n"
- " |_____________| |__________________| | PERSON |\n"
- " | | | | |_____________|\n"
- " | *EVENT_ID | <--> | *EVENT_ID | | |\n"
- " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
- " | TITLE | |__________________| | AGE |\n"
- " |_____________| | FIRSTNAME |\n"
- " | LASTNAME |\n"
- " |_____________|\n"
- " ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
msgstr ""
#. Tag: para
-#: tutorial.xml:730
#, no-c-format
msgid "Now we will bring some people and events together in a new method in <literal>EventManager</literal>:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:734
-#, no-c-format
-msgid ""
- "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
- " Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session.beginTransaction();\n"
- "\n"
- " Person aPerson = (Person) session.load(Person.class, personId);\n"
- " Event anEvent = (Event) session.load(Event.class, eventId);\n"
- " aPerson.getEvents().add(anEvent);\n"
- "\n"
- " session.getTransaction().commit();\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:736
#, no-c-format
msgid "After loading a <literal>Person</literal> and an <literal>Event</literal>, simply modify the collection using the normal collection methods. There is no explicit call to <literal>update()</literal> or <literal>save()</literal>; Hibernate automatically detects that the collection has been modified and needs to be updated. This is called <emphasis>automatic dirty checking</emphasis>. You can also try it by modifying the name or the date property of any of your objects. As long as they are in <emphasis>persistent</emphasis> state, that is, bound to a particular Hibernate <interfacename>org.hibernate.Session</interfacename>, Hibernate monitors any changes and executes SQL in a write-behind fashion. The process of synchronizing the memory state with the database, usually only at the end of a unit of work, is called <emphasis>flushing</emphasis>. In our code, the unit of work ends with a commit, or rollback, of the database transaction."
msgstr ""
#. Tag: para
-#: tutorial.xml:755
#, no-c-format
msgid "You can load person and event in different units of work. Or you can modify an object outside of a <interfacename>org.hibernate.Session</interfacename>, when it is not in persistent state (if it was persistent before, this state is called <emphasis>detached</emphasis>). You can even modify a collection when it is detached:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:764
-#, no-c-format
-msgid ""
- "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
- " Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session.beginTransaction();\n"
- "\n"
- " Person aPerson = (Person) session\n"
- " .createQuery(\"select p from Person p left join fetch p.events where p.id = :pid\")\n"
- " .setParameter(\"pid\", personId)\n"
- " .uniqueResult(); // Eager fetch the collection so we can use it detached\n"
- " Event anEvent = (Event) session.load(Event.class, eventId);\n"
- "\n"
- " session.getTransaction().commit();\n"
- "\n"
- " // End of first unit of work\n"
- "\n"
- " aPerson.getEvents().add(anEvent); // aPerson (and its collection) is detached\n"
- "\n"
- " // Begin second unit of work\n"
- "\n"
- " Session session2 = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session2.beginTransaction();\n"
- " session2.update(aPerson); // Reattachment of aPerson\n"
- "\n"
- " session2.getTransaction().commit();\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:766
#, no-c-format
msgid "The call to <literal>update</literal> makes a detached object persistent again by binding it to a new unit of work, so any modifications you made to it while detached can be saved to the database. This includes any modifications (additions/deletions) you made to a collection of that entity object."
msgstr ""
#. Tag: para
-#: tutorial.xml:775
#, no-c-format
msgid "This is not much use in our example, but it is an important concept you can incorporate into your own application. Complete this exercise by adding a new action to the main method of the <literal>EventManager</literal> and call it from the command line. If you need the identifiers of a person and an event - the <literal>save()</literal> method returns it (you might have to modify some of the previous methods to return that identifier):"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:783
-#, no-c-format
-msgid ""
- "<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
- " Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date());\n"
- " Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
- " mgr.addPersonToEvent(personId, eventId);\n"
- " System.out.println(\"Added person \" + personId + \" to event \" + eventId);\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:785
#, no-c-format
msgid "This is an example of an association between two equally important classes : two entities. As mentioned earlier, there are other classes and types in a typical model, usually \"less important\". Some you have already seen, like an <literal>int</literal> or a <classname>java.lang.String</classname>. We call these classes <emphasis>value types</emphasis>, and their instances <emphasis>depend</emphasis> on a particular entity. Instances of these types do not have their own identity, nor are they shared between entities. Two persons do not reference the same <literal>firstname</literal> object, even if they have the same first name. Value types cannot only be found in the JDK , but you can also write dependent classes yourself such as an <literal>Address</literal> or <literal>MonetaryAmount</literal> class. In fact, in a Hibernate application all JDK classes are considered value types."
msgstr ""
#. Tag: para
-#: tutorial.xml:803
#, no-c-format
msgid "You can also design a collection of value types. This is conceptually different from a collection of references to other entities, but looks almost the same in Java."
msgstr ""
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
msgstr ""
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid "Let's add a collection of email addresses to the <literal>Person</literal> entity. This will be represented as a <interfacename>java.util.Set</interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:820
-#, no-c-format
-msgid ""
- "<![CDATA[ private Set emailAddresses = new HashSet();\n"
- "\n"
- " public Set getEmailAddresses() {\n"
- " return emailAddresses;\n"
- " }\n"
- "\n"
- " public void setEmailAddresses(Set emailAddresses) {\n"
- " this.emailAddresses = emailAddresses;\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:822
#, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:826
-#, no-c-format
-msgid ""
- "<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
- " <key column=\"PERSON_ID\"/>\n"
- " <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
- " </set>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:828
#, no-c-format
msgid "The difference compared with the earlier mapping is the use of the <literal>element</literal> part which tells Hibernate that the collection does not contain references to another entity, but is rather a collection whose elements are values types, here specifically of type <literal>string</literal>. The lowercase name tells you it is a Hibernate mapping type/converter. Again the <literal>table</literal> attribute of the <literal>set</literal> element determines the table name for the collection. The <literal>key</literal> element defines the foreign-key column name in the collection table. The <literal>column</literal> attribute in the <literal>element</literal> element defines the column name where the email address values will actually be stored."
msgstr ""
#. Tag: para
-#: tutorial.xml:844
#, no-c-format
msgid "Here is the updated schema:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:848
-#, no-c-format
-msgid ""
- "<![CDATA[\n"
- " _____________ __________________\n"
- " | | | | _____________\n"
- " | EVENTS | | PERSON_EVENT | | | ___________________\n"
- " |_____________| |__________________| | PERSON | | |\n"
- " | | | | |_____________| | PERSON_EMAIL_ADDR |\n"
- " | *EVENT_ID | <--> | *EVENT_ID | | | |___________________|\n"
- " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | *PERSON_ID |\n"
- " | TITLE | |__________________| | AGE | | *EMAIL_ADDR |\n"
- " |_____________| | FIRSTNAME | |___________________|\n"
- " | LASTNAME |\n"
- " |_____________|\n"
- " ]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:850
#, no-c-format
msgid "You can see that the primary key of the collection table is in fact a composite key that uses both columns. This also implies that there cannot be duplicate email addresses per person, which is exactly the semantics we need for a set in Java."
msgstr ""
#. Tag: para
-#: tutorial.xml:856
#, no-c-format
msgid "You can now try to add elements to this collection, just like we did before by linking persons and events. It is the same code in Java:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:861
-#, no-c-format
-msgid ""
- "<![CDATA[ private void addEmailToPerson(Long personId, String emailAddress) {\n"
- " Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n"
- " session.beginTransaction();\n"
- "\n"
- " Person aPerson = (Person) session.load(Person.class, personId);\n"
- " // adding to the emailAddress collection might trigger a lazy load of the collection\n"
- " aPerson.getEmailAddresses().add(emailAddress);\n"
- "\n"
- " session.getTransaction().commit();\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:863
#, no-c-format
msgid "This time we did not use a <emphasis>fetch</emphasis> query to initialize the collection. Monitor the SQL log and try to optimize this with an eager fetch."
msgstr ""
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr ""
#. Tag: para
-#: tutorial.xml:874
#, no-c-format
msgid "Next you will map a bi-directional association. You will make the association between person and event work from both sides in Java. The database schema does not change, so you will still have many-to-many multiplicity."
msgstr ""
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid "A relational database is more flexible than a network programming language, in that it does not need a navigation direction; data can be viewed and retrieved in any possible way."
msgstr ""
#. Tag: para
-#: tutorial.xml:890
#, no-c-format
msgid "First, add a collection of participants to the <literal>Event</literal> class:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:895
-#, no-c-format
-msgid ""
- "<![CDATA[ private Set participants = new HashSet();\n"
- "\n"
- " public Set getParticipants() {\n"
- " return participants;\n"
- " }\n"
- "\n"
- " public void setParticipants(Set participants) {\n"
- " this.participants = participants;\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:897
#, no-c-format
msgid "Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:901
-#, no-c-format
-msgid ""
- "<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse=\"true\">\n"
- " <key column=\"EVENT_ID\"/>\n"
- " <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
- " </set>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:903
#, no-c-format
msgid "These are normal <literal>set</literal> mappings in both mapping documents. Notice that the column names in <literal>key</literal> and <literal>many-to-many</literal> swap in both mapping documents. The most important addition here is the <literal>inverse=\"true\"</literal> attribute in the <literal>set</literal> element of the <literal>Event</literal>'s collection mapping."
msgstr ""
#. Tag: para
-#: tutorial.xml:911
#, no-c-format
msgid "What this means is that Hibernate should take the other side, the <literal>Person</literal> class, when it needs to find out information about the link between the two. This will be a lot easier to understand once you see how the bi-directional link between our two entities is created."
msgstr ""
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
msgstr ""
#. Tag: para
-#: tutorial.xml:922
#, no-c-format
msgid "First, keep in mind that Hibernate does not affect normal Java semantics. How did we create a link between a <literal>Person</literal> and an <literal>Event</literal> in the unidirectional example? You add an instance of <literal>Event</literal> to the collection of event references, of an instance of <literal>Person</literal>. If you want to make this link bi-directional, you have to do the same on the other side by adding a <literal>Person</literal> reference to the collection in an <literal>Event</literal>. This process of \"setting the link on both sides\" is absolutely necessary with bi-directional links."
msgstr ""
#. Tag: para
-#: tutorial.xml:932
#, no-c-format
msgid "Many developers program defensively and create link management methods to correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:937
-#, no-c-format
-msgid ""
- "<![CDATA[ protected Set getEvents() {\n"
- " return events;\n"
- " }\n"
- "\n"
- " protected void setEvents(Set events) {\n"
- " this.events = events;\n"
- " }\n"
- "\n"
- " public void addToEvent(Event event) {\n"
- " this.getEvents().add(event);\n"
- " event.getParticipants().add(this);\n"
- " }\n"
- "\n"
- " public void removeFromEvent(Event event) {\n"
- " this.getEvents().remove(event);\n"
- " event.getParticipants().remove(this);\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:939
#, no-c-format
msgid "The get and set methods for the collection are now protected. This allows classes in the same package and subclasses to still access the methods, but prevents everybody else from altering the collections directly. Repeat the steps for the collection on the other side."
msgstr ""
#. Tag: para
-#: tutorial.xml:946
#, no-c-format
msgid "What about the <literal>inverse</literal> mapping attribute? For you, and for Java, a bi-directional link is simply a matter of setting the references on both sides correctly. Hibernate, however, does not have enough information to correctly arrange SQL <literal>INSERT</literal> and <literal>UPDATE</literal> statements (to avoid constraint violations). Making one side of the association <literal>inverse</literal> tells Hibernate to consider it a <emphasis>mirror</emphasis> of the other side. That is all that is necessary for Hibernate to resolve any issues that arise when transforming a directional navigation model to a SQL database schema. The rules are straightforward: all bi-directional associations need one side as <literal>inverse</literal>. In a one-to-many association it has to be the many-side, and in many-to-many association you can select either side."
msgstr ""
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
msgstr ""
#. Tag: para
-#: tutorial.xml:964
#, no-c-format
msgid "A Hibernate web application uses <literal>Session</literal> and <literal>Transaction</literal> almost like a standalone application. However, some common patterns are useful. You can now write an <literal>EventManagerServlet</literal>. This servlet can list all events stored in the database, and it provides an HTML form to enter new events."
msgstr ""
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
msgstr ""
#. Tag: para
-#: tutorial.xml:974
#, no-c-format
msgid "First we need create our basic processing servlet. Since our servlet only handles HTTP <literal>GET</literal> requests, we will only implement the <literal>doGet()</literal> method:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
- "<![CDATA[package org.hibernate.tutorial.web;\n"
- "\n"
- "// Imports\n"
- "\n"
- "public class EventManagerServlet extends HttpServlet {\n"
- "\n"
- " protected void doGet(\n"
- " HttpServletRequest request,\n"
- " HttpServletResponse response) throws ServletException, IOException {\n"
- "\n"
- " SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy\" );\n"
- "\n"
- " try {\n"
- " // Begin unit of work\n"
- " HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();\n"
- "\n"
- " // Process request and render page...\n"
- "\n"
- " // End unit of work\n"
- " HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit();\n"
- " }\n"
- " catch (Exception ex) {\n"
- " HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().rollback();\n"
- " if ( ServletException.class.isInstance( ex ) ) {\n"
- " throw ( ServletException ) ex;\n"
- " }\n"
- " else {\n"
- " throw new ServletException( ex );\n"
- " }\n"
- " }\n"
- " }\n"
- "\n"
- "}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid "Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/EventManagerServlet.java</filename>"
msgstr ""
#. Tag: para
-#: tutorial.xml:987
#, no-c-format
msgid "The pattern applied here is called <emphasis>session-per-request</emphasis>. When a request hits the servlet, a new Hibernate <literal>Session</literal> is opened through the first call to <literal>getCurrentSession()</literal> on the <literal>SessionFactory</literal>. A database transaction is then started. All data access occurs inside a transaction irrespective of whether the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid "Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> for every database operation. Use one Hibernate <literal>Session</literal> that is scoped to the whole request. Use <literal>getCurrentSession()</literal>, so that it is automatically bound to the current Java thread."
msgstr ""
#. Tag: para
-#: tutorial.xml:1003
#, no-c-format
msgid "Next, the possible actions of the request are processed and the response HTML is rendered. We will get to that part soon."
msgstr ""
#. Tag: para
-#: tutorial.xml:1008
#, no-c-format
msgid "Finally, the unit of work ends when processing and rendering are complete. If any problems occurred during processing or rendering, an exception will be thrown and the database transaction rolled back. This completes the <literal>session-per-request</literal> pattern. Instead of the transaction demarcation code in every servlet, you could also write a servlet filter. See the Hibernate website and Wiki for more information about this pattern called <emphasis>Open Session in View</emphasis>. You will need it as soon as you consider rendering your view in JSP, not in a servlet."
msgstr ""
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
msgstr ""
#. Tag: para
-#: tutorial.xml:1024
#, no-c-format
msgid "Now you can implement the processing of the request and the rendering of the page."
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1028
-#, no-c-format
-msgid ""
- "<![CDATA[ // Write HTML header\n"
- " PrintWriter out = response.getWriter();\n"
- " out.println(\"<html><head><title>Event Manager</title></head><body>\");\n"
- "\n"
- " // Handle actions\n"
- " if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
- "\n"
- " String eventTitle = request.getParameter(\"eventTitle\");\n"
- " String eventDate = request.getParameter(\"eventDate\");\n"
- "\n"
- " if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
- " out.println(\"<b><i>Please enter event title and date.</i></b>\");\n"
- " }\n"
- " else {\n"
- " createAndStoreEvent(eventTitle, dateFormatter.parse(eventDate));\n"
- " out.println(\"<b><i>Added event.</i></b>\");\n"
- " }\n"
- " }\n"
- "\n"
- " // Print page\n"
- " printEventForm(out);\n"
- " listEvents(out, dateFormatter);\n"
- "\n"
- " // Write HTML footer\n"
- " out.println(\"</body></html>\");\n"
- " out.flush();\n"
- " out.close();]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1030
#, no-c-format
msgid "This coding style, with a mix of Java and HTML, would not scale in a more complex application—keep in mind that we are only illustrating basic Hibernate concepts in this tutorial. The code prints an HTML header and a footer. Inside this page, an HTML form for event entry and a list of all events in the database are printed. The first method is trivial and only outputs HTML:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
- "<![CDATA[ private void printEventForm(PrintWriter out) {\n"
- " out.println(\"<h2>Add new event:</h2>\");\n"
- " out.println(\"<form>\");\n"
- " out.println(\"Title: <input name='eventTitle' length='50'/><br/>\");\n"
- " out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' length='10'/><br/>\");\n"
- " out.println(\"<input type='submit' name='action' value='store'/>\");\n"
- " out.println(\"</form>\");\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid "The <literal>listEvents()</literal> method uses the Hibernate <literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
- "<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat dateFormatter) {\n"
- "\n"
- " List result = HibernateUtil.getSessionFactory()\n"
- " .getCurrentSession().createCriteria(Event.class).list();\n"
- " if (result.size() > 0) {\n"
- " out.println(\"<h2>Events in database:</h2>\");\n"
- " out.println(\"<table border='1'>\");\n"
- " out.println(\"<tr>\");\n"
- " out.println(\"<th>Event title</th>\");\n"
- " out.println(\"<th>Event date</th>\");\n"
- " out.println(\"</tr>\");\n"
- " Iterator it = result.iterator();\n"
- " while (it.hasNext()) {\n"
- " Event event = (Event) it.next();\n"
- " out.println(\"<tr>\");\n"
- " out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
- " out.println(\"<td>\" + dateFormatter.format(event.getDate()) + \"</td>\");\n"
- " out.println(\"</tr>\");\n"
- " }\n"
- " out.println(\"</table>\");\n"
- " }\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid "Finally, the <literal>store</literal> action is dispatched to the <literal>createAndStoreEvent()</literal> method, which also uses the <literal>Session</literal> of the current thread:"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1055
-#, no-c-format
-msgid ""
- "<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) {\n"
- " Event theEvent = new Event();\n"
- " theEvent.setTitle(title);\n"
- " theEvent.setDate(theDate);\n"
- "\n"
- " HibernateUtil.getSessionFactory()\n"
- " .getCurrentSession().save(theEvent);\n"
- " }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1057
#, no-c-format
msgid "The servlet is now complete. A request to the servlet will be processed in a single <literal>Session</literal> and <literal>Transaction</literal>. As earlier in the standalone application, Hibernate can automatically bind these objects to the current thread of execution. This gives you the freedom to layer your code and access the <literal>SessionFactory</literal> in any way you like. Usually you would use a more sophisticated design and move the data access code into data access objects (the DAO pattern). See the Hibernate Wiki for more examples."
msgstr ""
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
msgstr ""
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid "To deploy this application for testing we must create a Web ARchive (WAR). First we must define the WAR descriptor as <filename>src/main/webapp/WEB-INF/web.xml</filename>"
msgstr ""
-#. Tag: programlisting
-#: tutorial.xml:1079
-#, no-c-format
-msgid ""
- "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
- "<web-app version=\"2.4\"\n"
- " xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
- " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
- " xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\">\n"
- "\n"
- " <servlet>\n"
- " <servlet-name>Event Manager</servlet-name>\n"
- " <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</servlet-class>\n"
- " </servlet>\n"
- "\n"
- " <servlet-mapping>\n"
- " <servlet-name>Event Manager</servlet-name>\n"
- " <url-pattern>/eventmanager</url-pattern>\n"
- " </servlet-mapping>\n"
- "</web-app>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1081
#, no-c-format
msgid "To build and deploy call <literal>mvn package</literal> in your project directory and copy the <filename>hibernate-tutorial.war</filename> file into your Tomcat <filename>webapps</filename> directory."
msgstr ""
#. Tag: para
-#: tutorial.xml:1088
#, no-c-format
-msgid "If you do not have Tomcat installed, download it from <ulink url=\"http://tomcat.apache.org/\"></ulink> and follow the installation instructions. Our application requires no changes to the standard Tomcat configuration."
+msgid "If you do not have Tomcat installed, download it from <ulink url=\"http://tomcat.apache.org/\" /> and follow the installation instructions. Our application requires no changes to the standard Tomcat configuration."
msgstr ""
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid "Once deployed and Tomcat is running, access the application at <literal>http://localhost:8080/hibernate-tutorial/eventmanager</literal>. Make sure you watch the Tomcat log to see Hibernate initialize when the first request hits your servlet (the static initializer in <literal>HibernateUtil</literal> is called) and to get the detailed output if any exceptions occurs."
msgstr ""
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr ""
#. Tag: para
-#: tutorial.xml:1111
#, no-c-format
msgid "This tutorial covered the basics of writing a simple standalone Hibernate application and a small web application. More tutorials are available from the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/content/xml.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/content/xml.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/content/xml.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,355 +1,143 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-02-11T05:38:16\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
msgstr ""
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, no-c-format
-msgid "XML Mapping is an experimental feature in Hibernate 3.0 and is currently under active development."
+msgid "<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is currently under active development. </emphasis>"
msgstr ""
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
msgstr ""
#. Tag: para
-#: xml.xml:39
#, no-c-format
msgid "Hibernate allows you to work with persistent XML data in much the same way you work with persistent POJOs. A parsed XML tree can be thought of as another way of representing the relational data at the object level, instead of POJOs."
msgstr ""
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid "Hibernate supports dom4j as API for manipulating XML trees. You can write queries that retrieve dom4j trees from the database and have any modification you make to the tree automatically synchronized to the database. You can even take an XML document, parse it using dom4j, and write it to the database with any of Hibernate's basic operations: <literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> (merging is not yet supported)."
msgstr ""
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid "This feature has many applications including data import/export, externalization of entity data via JMS or SOAP and XSLT-based reporting."
msgstr ""
#. Tag: para
-#: xml.xml:61
#, no-c-format
msgid "A single mapping can 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 can be used to map just the XML."
msgstr ""
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
msgstr ""
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
- "<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
msgstr ""
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:84
-#, no-c-format
-msgid ""
- "<![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 ""
-
#. Tag: para
-#: xml.xml:86
#, no-c-format
msgid "This mapping allows you to access the data as a dom4j tree, or as a graph of property name/value pairs or java <literal>Map</literal>s. The property names are purely logical constructs that can be referred to in HQL queries."
msgstr ""
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
msgstr ""
#. Tag: para
-#: xml.xml:99
#, no-c-format
msgid "A range of Hibernate mapping elements accept the <literal>node</literal> attribute. This lets 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 ""
#. Tag: para
-#: xml.xml:108
#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
msgstr ""
#. Tag: para
-#: xml.xml:111
#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
#. Tag: para
-#: xml.xml:114
#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
msgstr ""
#. Tag: para
-#: xml.xml:117
#, no-c-format
msgid "<literal>\"element-name/@attribute-name\"</literal>: map to the named attribute of the named element"
msgstr ""
#. Tag: para
-#: xml.xml:124
#, no-c-format
msgid "For collections and single valued associations, there is an additional <literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</literal>, the default, the XML tree for the associated entity (or collection of value type) will be embedded directly in the XML tree for the entity that owns the association. Otherwise, if <literal>embed-xml=\"false\"</literal>, then only the referenced identifier value will appear in the XML for single point associations and collections will not appear at all."
msgstr ""
#. Tag: para
-#: xml.xml:134
#, no-c-format
msgid "Do not leave <literal>embed-xml=\"true\"</literal> for too many associations, since XML does not deal well with circularity."
msgstr ""
-#. Tag: programlisting
-#: xml.xml:139
-#, no-c-format
-msgid ""
- "<![CDATA[<class name=\"Customer\" \n"
- " table=\"CUSTOMER\" \n"
- " node=\"customer\">\n"
- " \n"
- " <id name=\"id\" \n"
- " column=\"CUST_ID\" \n"
- " node=\"@id\"/>\n"
- " \n"
- " <map name=\"accounts\" \n"
- " node=\".\" \n"
- " embed-xml=\"true\">\n"
- " <key column=\"CUSTOMER_ID\" \n"
- " not-null=\"true\"/>\n"
- " <map-key column=\"SHORT_DESC\" \n"
- " node=\"@short-desc\" \n"
- " type=\"string\"/>\n"
- " <one-to-many entity-name=\"Account\"\n"
- " embed-xml=\"false\" \n"
- " node=\"account\"/>\n"
- " </map>\n"
- " \n"
- " <component name=\"name\" \n"
- " node=\"name\">\n"
- " <property name=\"firstName\" \n"
- " node=\"first-name\"/>\n"
- " <property name=\"initial\" \n"
- " node=\"initial\"/>\n"
- " <property name=\"lastName\" \n"
- " node=\"last-name\"/>\n"
- " </component>\n"
- " \n"
- " ...\n"
- " \n"
- "</class>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:141
#, no-c-format
msgid "In this case, the collection of account ids is embedded, but not the actual account data. The following HQL query:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:146
-#, no-c-format
-msgid "<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :lastName]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:148
#, no-c-format
msgid "would return datasets such as this:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
- "<![CDATA[<customer id=\"123456789\">\n"
- " <account short-desc=\"Savings\">987632567</account>\n"
- " <account short-desc=\"Credit Card\">985612323</account>\n"
- " <name>\n"
- " <first-name>Gavin</first-name>\n"
- " <initial>A</initial>\n"
- " <last-name>King</last-name>\n"
- " </name>\n"
- " ...\n"
- "</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid "If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-many></literal> mapping, the data might look more like this:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
- "<![CDATA[<customer id=\"123456789\">\n"
- " <account id=\"987632567\" short-desc=\"Savings\">\n"
- " <customer id=\"123456789\"/>\n"
- " <balance>100.29</balance>\n"
- " </account>\n"
- " <account id=\"985612323\" short-desc=\"Credit Card\">\n"
- " <customer id=\"123456789\"/>\n"
- " <balance>-2370.34</balance>\n"
- " </account>\n"
- " <name>\n"
- " <first-name>Gavin</first-name>\n"
- " <initial>A</initial>\n"
- " <last-name>King</last-name>\n"
- " </name>\n"
- " ...\n"
- "</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
msgstr ""
#. Tag: para
-#: xml.xml:167
#, no-c-format
msgid "You can also re-read and update XML documents in the application. You can do this by obtaining a dom4j session:"
msgstr ""
-#. Tag: programlisting
-#: xml.xml:172
-#, no-c-format
-msgid ""
- "<![CDATA[Document doc = ....;\n"
- " \n"
- "Session session = factory.openSession();\n"
- "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
- "Transaction tx = session.beginTransaction();\n"
- "\n"
- "List results = dom4jSession\n"
- " .createQuery(\"from Customer c left join fetch c.accounts where c.lastName like :lastName\")\n"
- " .list();\n"
- "for ( int i=0; i<results.size(); i++ ) {\n"
- " //add the customer data to the XML document\n"
- " Element customer = (Element) results.get(i);\n"
- " doc.add(customer);\n"
- "}\n"
- "\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
- "<![CDATA[Session session = factory.openSession();\n"
- "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
- "Transaction tx = session.beginTransaction();\n"
- "\n"
- "Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
- "for ( int i=0; i<results.size(); i++ ) {\n"
- " Element customer = (Element) results.get(i);\n"
- " //change the customer name in the XML and database\n"
- " Element name = customer.element(\"name\");\n"
- " name.element(\"first-name\").setText(firstName);\n"
- " name.element(\"initial\").setText(initial);\n"
- " name.element(\"last-name\").setText(lastName);\n"
- "}\n"
- "\n"
- "tx.commit();\n"
- "session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:176
#, no-c-format
msgid "When implementing XML-based data import/export, it is useful to combine this feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pot/legal_notice.pot
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pot/legal_notice.pot 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pot/legal_notice.pot 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,57 +1,48 @@
-# SOME DESCRIPTIVE TITLE.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+# AUTHOR <EMAIL at ADDRESS>, YEAR.
#
-#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"Project-Id-Version: 0\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-02-11T05:38:16\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: None\n"
"MIME-Version: 1.0\n"
-"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr ""
-#. Tag: address
-#: legal_notice.xml:30
+#. Tag: para
#, no-c-format
-msgid "<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, <state>NC</state><postcode>27709</postcode><country>USA</country>"
+msgid "<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, <state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
msgstr ""
#. Tag: para
-#: legal_notice.xml:39
#, no-c-format
msgid "Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU <ulink url=\"http://www.gnu.org/licenses/lgpl-2.1.html\">Lesser General Public License</ulink>, as published by the Free Software Foundation."
msgstr ""
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid "Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red Hat, Inc. in the United States and other countries."
msgstr ""
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid "All other trademarks referenced herein are the property of their respective owners."
msgstr ""
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr ""
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - Relational Persistence for Idiomatic Java"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "Documentação da Referência do Hibernate"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,102 +1,196 @@
+# translation of architecture.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: architecture\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-12-18 14:20+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
msgstr "Arquitetura"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
msgstr "Visão Geral"
#. Tag: para
-#: architecture.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
-msgstr "Uma visão bem ampla da arquitetura do Hibernate:"
+msgstr ""
+"O diagrama abaixo fornece uma visão de altÃssimo nÃvel da arquitetura do "
+"Hibernate:"
#. Tag: para
-#: architecture.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We do not have the scope in this document to provide a more detailed view of "
"all the runtime architectures available; Hibernate is flexible and supports "
"several different approaches. We will, however, show the two extremes: "
"\"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
-"Nós gostarÃamos de mostrar uma visão mais detalhada da arquitetura em "
-"execução. Infelizmente, o Hibernate é muito flexÃvel e suporta várias "
-"aproximações. Nós iremos mostrar os dois extremos. Na arquitetura mais "
-"simples o aplicativo fornece suas próprias conexões JDBC e gerencia suas "
-"transações. Esta abordagem usa o mÃnimo de subconjuntos das APIs do "
-"Hibernate:"
+"Nós não temos o escopo neste documento para mostrar uma visão mais detalhada "
+"da arquitetura em execução. O Hibernate é muito flexÃvel e suporta várias "
+"abordagens. Mostraremos os dois extremos. No entanto, nós apresentaremos os "
+"dois extremos: arquitetura \"mÃnima\" e arquitetura \"compreensiva\". "
#. Tag: para
-#: architecture.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This next diagram illustrates how Hibernate utilizes database and "
"configuration data to provide persistence services, and persistent objects, "
"to the application."
msgstr ""
-"Esse diagrama mostra o Hibernate usando o banco de dados e a configuração de "
-"dados para prover persistência de serviços (e persistência de objetos) para "
-"o aplicativo."
+"Este diagrama mostra o Hibernate usando o banco de dados e a configuração de "
+"dados para prover persistência de serviços e persistência de objetos para o "
+"aplicativo."
#. Tag: para
-#: architecture.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"minimal\" architecture has the application provide its own JDBC "
"connections and manage its own transactions. This approach uses a minimal "
"subset of Hibernate's APIs:"
msgstr ""
-"Nós gostarÃamos de mostrar uma visão mais detalhada da arquitetura em "
-"execução. Infelizmente, o Hibernate é muito flexÃvel e suporta várias "
-"aproximações. Nós iremos mostrar os dois extremos. Na arquitetura mais "
-"simples o aplicativo fornece suas próprias conexões JDBC e gerencia suas "
-"transações. Esta abordagem usa o mÃnimo de subconjuntos das APIs do "
-"Hibernate:"
+"Na arquitetura \"mÃnima\", o aplicativo fornece suas próprias conexões JDBC "
+"e gerencia suas transações. Esta abordagem usa o mÃnimo de subconjuntos das "
+"APIs do Hibernate:"
#. Tag: para
-#: architecture.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
-"A arquitetura \"completa\" abstrai a aplicação de ter de lidar diretamente "
-"com JDBC/JTA e APIs e deixa o Hibernate tomar conta dos detalhes."
+"A arquitetura \"compreensiva\" abstrai a aplicação do JDBC/JTA e APIs "
+"adjacentes e deixa o Hibernate tomar conta dos detalhes."
#. Tag: para
-#: architecture.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
-msgstr "Algumas definições dos objetos do diagrama: <placeholder-1/>"
+msgstr "Algumas definições dos objetos descritos nos diagramas: "
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A threadsafe, immutable cache of compiled mappings for a single database. A "
"factory for <literal>Session</literal> and a client of "
@@ -104,21 +198,19 @@
"hold an optional (second-level) cache of data that is reusable between "
"transactions at a process, or cluster, level."
msgstr ""
-"Um cache threadsafe (imutáveis) composto de identidades compiladas para um "
-"único banco de dados. Uma fabrica para <literal>Session</literal> e um "
-"cliente de <literal>ConnectionProvider</literal>. Pode conter um cachê "
-"opcional de dados (segundo nÃvel) reutilizáveis entre transações, no nÃvel "
-"de processo- ou cluster."
+"O threadsafe, cachê imutável composto de mapeamentos compilados para um "
+"único banco de dados. Uma fábrica para <literal>Session</literal> e um "
+"cliente de <literal>ConnectionProvider</literal>, <literal>SessionFactory</"
+"literal> pode conter um cachê opcional de dados (segundo nÃvel) "
+"reutilizáveis entre transações, no nÃvel de processo ou cluster."
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:107
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
"the application and the persistent store. It wraps a JDBC connection and is "
@@ -126,21 +218,20 @@
"holds a mandatory first-level cache of persistent objects that are used when "
"navigating the object graph or looking up objects by identifier."
msgstr ""
-"Objeto single-threaded, de vida curta, representando uma conversação entre o "
+"Objeto single-threaded, de vida curta, representa uma conversação entre o "
"aplicativo e o armazenamento persistente. Cria uma camada sobre uma conexão "
-"JDBC. à uma fabrica de <literal>Transaction</literal>. Possui um cachê "
-"obrigatório (primeiro nÃvel) de objetos persistentes, usado para navegação "
-"no gráficos de objetos e pesquisa de objetos pelo identificador."
+"JDBC. Ã uma fabrica de <literal>Transaction</literal>. A <literal>Session</"
+"literal> possui um cachê obrigatório (primeiro nÃvel) de objetos "
+"persistentes, usado para navegação nos gráficos de objetos e pesquisa de "
+"objetos pelo identificador."
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
msgstr "Objetos persistentes e coleções"
#. Tag: para
-#: architecture.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
@@ -150,21 +241,20 @@
"and from presentation)."
msgstr ""
"Objetos, de vida curta, single threaded contendo estado persistente e função "
-"de negócios. Esses podem ser JavaBeans/POJOs, onde única coisa especial "
+"de negócios. Esses podem ser JavaBeans/POJOs, onde a única coisa especial "
"sobre eles é que são associados a (exatamente uma) <literal>Session</"
"literal>. Quando a <literal>Session</literal> é fechada, eles são separados "
-"e liberados para serem usados dentro de qualquer camada da aplicacao (Ex. "
-"diretamente como data transfer objects de e para a camada de apresentação)"
+"e liberados para serem usados dentro de qualquer camada da aplicação (Ex. "
+"diretamente como objetos de transferência de dados de e para a camada de "
+"apresentação)."
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
-msgstr "Objetos e coleções desatachados e transientes"
+msgstr "Objetos e coleções desanexados e transientes"
#. Tag: para
-#: architecture.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<literal>Session</literal>. They may have been instantiated by the "
@@ -173,18 +263,16 @@
msgstr ""
"Instâncias de classes persistentes que ainda não estão associadas a uma "
"<literal>Session</literal>. Eles podem ter sido instanciados pela aplicação "
-"e não persistido (ainda) ou eles foram instanciados por uma "
-"<literal>Session</literal> que foi encerrada."
+"e não persistidos (ainda) ou eles foram instanciados por uma "
+"<literal>Session</literal> encerrada."
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
msgstr "Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
@@ -194,65 +282,59 @@
"<literal>Transaction</literal>, is never optional."
msgstr ""
"(Opcional) Objeto de vida curta, single threaded, usado pela aplicação para "
-"especificar unidades atômicas de trabalho. Abstrai o aplicativo de lidar "
-"diretamente com transações JDBC, JTA ou CORBA. Uma <literal>Session</"
-"literal> pode, em alguns casos, iniciar várias <literal>Transaction</"
-"literal>s. Entretanto, a demarcação da transação, mesmo utilizando API ou "
-"Transaction subjacentes, nunca é opcional!"
+"especificar unidades atômicas de trabalho. Abstrai o aplicativo das "
+"transações JDBC, JTA ou CORBA adjacentes. Uma <literal>Session</literal> "
+"pode, em alguns casos, iniciar várias <literal>Transaction</literal>s. "
+"Entretanto, a demarcação da transação, mesmo utilizando API ou "
+"<literal>Transaction</literal> subjacentes, nunca é opcional."
#. Tag: term
-#: architecture.xml:153
#, no-c-format
msgid ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
"literal>)"
msgstr ""
-"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
+"Connection Provider (<literal>org.hibernate.connection.ConnectionProvider</"
"literal>)"
#. Tag: para
-#: architecture.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
"application from underlying <literal>Datasource</literal> or "
"<literal>DriverManager</literal>. It is not exposed to application, but it "
"can be extended and/or implemented by the developer."
msgstr ""
-"(Opcional) Uma fábrica de (e combinações de) conexões JDBC. Abstrai a "
-"aplicação de lidar diretamente com <literal>Datasource</literal> ou "
-"<literal>DriverManager</literal>. Não exposto para a aplicação, mas pode ser "
-"implementado ou estendido pelo programador."
+"(Opcional) Uma fábrica de, e pool de, conexões JDBC. Abstrai a aplicação dos "
+"<literal>Datasource</literal> ou <literal>DriverManager</literal> "
+"adjacentes. Não exposto para a aplicação, mas pode ser implementado ou "
+"estendido pelo programador. "
#. Tag: term
-#: architecture.xml:163
#, no-c-format
msgid ""
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
msgstr ""
-"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
+"Transaction Factory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
"exposed to the application, but it can be extended and/or implemented by the "
"developer."
msgstr ""
"(Opcional) Uma fábrica para instâncias de <literal>Transaction</literal>. "
-"Não exposta a aplicação, mas pode ser extendida/implementada pelo "
+"Não exposta a aplicação, mas pode ser estendida/implementada pelo "
"programador."
-#. Tag: emphasis
-#: architecture.xml:172
-#, no-c-format
-msgid "Extension Interfaces"
-msgstr "Extension Interfaces"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
+msgstr "<emphasis>Interfaces de Extensão</emphasis>"
#. Tag: para
-#: architecture.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
@@ -260,31 +342,28 @@
msgstr ""
"O Hibernate oferece várias opções de interfaces estendidas que você pode "
"implementar para customizar sua camada persistente. Veja a documentação da "
-"API para maiores detalhes."
+"API para maiores detalhes. "
#. Tag: para
-#: architecture.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Given a \"minimal\" architecture, the application bypasses the "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
"directly."
msgstr ""
-"Dada uma arquitetura simples, o aplicativo passa pelas APIs "
+"Dada uma arquitetura \"mÃnima\", o aplicativo passa pelas APIs "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> e/ou "
"<literal>ConnectionProvider</literal> para se comunicar diretamente com a "
"transação JTA ou JDBC."
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr "Estados de instância"
#. Tag: para
-#: architecture.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of a persistent class can be in one of three different states. "
"These states are defined in relation to a <emphasis>persistence context</"
@@ -294,33 +373,29 @@
"Uma instância de classes persistentes pode estar em um dos três diferentes "
"estados, que são definidos respeitando um <emphasis>contexto persistente</"
"emphasis>. O objeto <literal>Session</literal> do Hibernate é o contexto "
-"persistente:"
+"persistente. Os três diferentes estados são os seguintes:"
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
msgstr "transiente"
#. Tag: para
-#: architecture.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is not associated with any persistence context. It has no "
"persistent identity or primary key value."
msgstr ""
-"A instância não é, e nunca foi associada com nenhum contexto persistente. "
-"Não possui uma identidade persistente (valor de chave primária)."
+"A instância não é associada a nenhum contexto persistente. Não possui uma "
+"identidade persistente ou valor de chave primária."
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
msgstr "persistente"
#. Tag: para
-#: architecture.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is currently associated with a persistence context. It has a "
"persistent identity (primary key value) and can have a corresponding row in "
@@ -330,19 +405,17 @@
msgstr ""
"A instância está atualmente associada a um contexto persistente. Possui uma "
"identidade persistente (valor de chave primária) e, talvez, correspondente a "
-"um registro no banco de dados. Para um contexto persistente em particular, o "
-"Hibernate <emphasis>guarantees</emphasis> que a identidade persistente é "
-"equivalente a identidade Java (na localização em memória do objeto)."
+"uma fila no banco de dados. Para um contexto persistente em particular, o "
+"Hibernate <emphasis>garante</emphasis> que a identidade persistente é "
+"equivalente à identidade Java (na localização em memória do objeto)."
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
-msgstr "desatachado"
+msgstr "desanexado"
#. Tag: para
-#: architecture.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance was once associated with a persistence context, but that "
"context was closed, or the instance was serialized to another process. It "
@@ -352,45 +425,42 @@
msgstr ""
"A instância foi associada com um contexto persistente, porém este contexto "
"foi fechado, ou a instância foi serializada por outro processo. Possui uma "
-"identidade persistente, e, talvez, correspondenta a um registro no banco de "
-"dados. Para instâncias desatachadas, o Hibernate não garante o "
-"relacionamento entre identidade persistente e identidade Java."
+"identidade persistente, e, talvez, corresponda a uma fila no banco de dados. "
+"Para instâncias desanexadas, o Hibernate não garante o relacionamento entre "
+"identidade persistente e identidade Java."
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
msgstr "Integração JMX"
#. Tag: para
-#: architecture.xml:243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
"provided in the distribution: <literal>org.hibernate.jmx.HibernateService</"
"literal>."
msgstr ""
-"JMX é padrão J2EE para manipulação de componentes Java. O Hibernate pode ser "
-"manipulado por um serviço JMX padrão. Nós fornecemos uma implementação do "
-"MBean na distribuição, <literal>org.hibernate.jmx.HibernateService</literal>."
+"JMX é o padrão do J2EE para manipulação de componentes Java. O Hibernate "
+"pode ser manipulado por um serviço JMX padrão. Nós fornecemos uma "
+"implementação do MBean na distribuição: <literal>org.hibernate.jmx."
+"HibernateService</literal>."
#. Tag: para
-#: architecture.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For an example of how to deploy Hibernate as a JMX service on the JBoss "
"Application Server, please see the JBoss User Guide. JBoss AS also provides "
"these benefits if you deploy using JMX:"
msgstr ""
-"Para um exemplo de como instalar o Hibernate como um serviço JMX em um "
-"servidor de aplicativo JBoss, por favor, consulte o manual do usuário do "
-"JBoss. No JBoss As, você poderá ver os benefÃcios de de se fazer o deploy "
-"usando JMX:"
+"Para um exemplo de como implementar o Hibernate como um serviço JMX em um "
+"Servidor de Aplicativo JBoss, por favor, consulte o Guia do Usuário do "
+"JBoss. No JBoss As, você poderá ver os benefÃcios de se fazer a "
+"implementação usando JMX:"
#. Tag: para
-#: architecture.xml:257
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
"literal>'s life cycle can be automatically bound to the scope of a JTA "
@@ -405,17 +475,15 @@
"<emphasis>Session Management:</emphasis> O ciclo de vida de uma "
"<literal>Session</literal> do Hibernate pode ser automaticamente conectada a "
"um escopo de transação JTA. Isso significa que você não precisará mais abrir "
-"e fechar manualmente uma <literal>Session</literal>, isso se torna trabalho "
-"para um interceptor EJB do JBoss . Você também não precisa se preocupar, "
-"nunca mais, com demarcação de transação em seu código (a não ser que você "
-"prefira escrever uma camada persistente portável, para isso, use a API "
-"opcional do Hibernate <literal>Transaction</literal>). Você deve chamar "
-"<literal>HibernateContext</literal> para acessar uma <literal>Session</"
-"literal>."
+"e fechar manualmente uma <literal>Session</literal>, isso se torna uma "
+"tarefa para um interceptor EJB do JBoss. Você também não precisará mais se "
+"preocupar com demarcação de transação em seu código (caso você prefira "
+"escrever uma camada persistente portável, use a API opcional do Hibernate "
+"<literal>Transaction</literal>). Você deve chamar <literal>HibernateContext</"
+"literal> para acessar uma <literal>Session</literal>."
#. Tag: para
-#: architecture.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
@@ -425,17 +493,16 @@
"deployment, JBoss will automatically detect all mapping files in your HAR "
"file."
msgstr ""
-"<emphasis>HAR deployment:</emphasis>: Normalmente você faz o deploy de um "
-"serviço JMX do Hibernate usando um serviço descritor de deploy do JBoss (em "
-"um EAR e/ou arquivo SAR), que suporta todas as configurações usuais de uma "
+"<emphasis>HAR deployment:</emphasis>: Normalmente você implementa o serviço "
+"JMX do Hibernate usando um serviço descritor de implementação do JBoss em um "
+"EAR e/ou arquivo SAR, que suporta todas as configurações comuns de uma "
"<literal>SessionFactory</literal> do Hibernate. Entretanto, você ainda "
"precisa nomear todos os seus arquivos de mapeamento no descritor de "
-"deploração. Se você decidir usar o deploy opcional HAR, o JBoss irá "
-"automaticamente detectar todos os seus arquivos de mapeamento no seu arquivo "
-"HAR."
+"implementação. Se você decidir usar a implementaçao opcional HAR, o JBoss "
+"irá automaticamente detectar todos os seus arquivos de mapeamento no seu "
+"arquivo HAR."
#. Tag: para
-#: architecture.xml:280
#, no-c-format
msgid ""
"Consult the JBoss AS user guide for more information about these options."
@@ -444,47 +511,39 @@
"sobre essas opções."
#. Tag: para
-#: architecture.xml:284
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/> for more "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
"information."
msgstr ""
-"Another feature available as a JMX service are runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/>. Outra opção "
-"disponÃvel como um serviço JMX são as estatÃsticas de execução do Hibernate. "
-"Veja a <xref linkend=\"configuration-optional-statistics\"/>."
+"Outra opção disponÃvel como um serviço JMX são as estatÃsticas de execução "
+"do Hibernate. Veja a <xref linkend=\"configuration-optional-statistics\"/> "
+"para maiores informações."
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
msgstr "Suporte JCA"
#. Tag: para
-#: architecture.xml:292
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also be configured as a JCA connector. Please see the website "
"for more information. Please note, however, that at this stage Hibernate JCA "
"support is under development."
msgstr ""
-"Hibernate may also be configured as a JCA connector. Please see the website "
-"for more details. Please note that Hibernate JCA support is still considered "
-"experimental. O Hibernate pode também ser configurado como um conector JCA. "
-"Por favor, visite o website para maiores detalhes. Entretanto, note que o "
-"suporte JCA do Hibernate ainda é considerado experimental."
+"O Hibernate pode também ser configurado como um conector JCA. Por favor, "
+"visite o website para maiores detalhes. Observe também, que o suporte do JCA "
+"do Hibernate ainda é considerado experimental."
#. Tag: title
-#: architecture.xml:299
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Contextual sessions"
-msgstr "Sessões contextuais"
+msgstr "Sessões Contextuais"
#. Tag: para
-#: architecture.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
"where a given session is in effect throughout the scope of a given context. "
@@ -496,18 +555,18 @@
"utilized third-party frameworks, such as Spring or Pico, which provided "
"proxy/interception-based contextual sessions."
msgstr ""
-"Muitas aplicações que usam o Hibernate necessita de algum tipo de sessão "
-"\"contextual\", onde uma sessão dada é na verdade um escopo de um contexto. "
-"Entretanto, através de aplicações a definição sobre um contexto é geralmente "
-"diferente; e contextos diferentes definem escopos diferentes. Aplicações "
-"usando versões anteriores ao Hibernate 3.0 tendem a utilizar tanto sessões "
-"contextuais baseadas em <literal>ThreadLocal</literal>, classes utilitárias "
-"como <literal>HibernateUtil</literal>, ou utilizar frameworks de terceiros"
-"(como Spring ou Pico) que provê sessões contextuais baseadas em proxy."
+"A maioria das aplicações que usa o Hibernate necessita de algum tipo de "
+"sessão \"contextual\", onde uma sessão dada é na verdade um escopo de um "
+"contexto. Entretanto, através de aplicações, a definição sobre um contexto é "
+"geralmente diferente; e contextos diferentes definem escopos diferentes. "
+"Aplicações usando versões anteriores ao Hibernate 3.0 tendem a utilizar "
+"tanto sessões contextuais baseadas em <literal>ThreadLocal</literal>, "
+"classes utilitárias como <literal>HibernateUtil</literal>, ou utilizar "
+"frameworks de terceiros (como Spring ou Pico) que provê sessões contextuais "
+"baseadas em proxy."
#. Tag: para
-#: architecture.xml:309
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
"getCurrentSession()</literal> method. Initially, this assumed usage of "
@@ -521,18 +580,17 @@
msgstr ""
"A partir da versão 3.0.1, o Hibernate adicionou o método "
"<literal>SessionFactory.getCurrentSession()</literal>. Inicialmente, este "
-"assume o uso de transações <literal>JTA</literal>, onde a transação "
-"<literal>JTA</literal> define tanto o escopo quanto o contexto de uma sessão "
-"atual. O time do Hibernate mantém este recurso, desenvolvendo as diversas "
-"implementações do <literal>JTA TransactionManager</literal>, a maioria (se "
-"não todos) aplicativos deveria utilizar o gerenciador de transações "
-"<literal>JTA</literal> sendo ou não instalados dentro de um container "
-"<literal>J2EE</literal>. Baseado neste recurso, você deveria sempre utilizar "
-"sessões contextuais baseadas em <literal>JTA</literal>."
+"considerou o uso de transações <literal>JTA</literal>, onde a transação "
+"<literal>JTA</literal> definia tanto o escopo quanto o contexto de uma "
+"sessão atual. Dada a maturidade de diversas implementações autônomas "
+"disponÃveis do <literal>JTA TransactionManager</literal>, a maioria (se não "
+"todos) dos aplicativos deveria utilizar o gerenciador de transações "
+"<literal>JTA</literal> sendo ou não instalados dentro de um recipiente "
+"<literal>J2EE</literal>. Baseado neste recurso, você deve sempre utilizar "
+"sessões contextuais baseadas em <literal>JTA</literal>. "
#. Tag: para
-#: architecture.xml:319
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
@@ -541,8 +599,8 @@
"current_session_context_class</literal>, have been added to allow "
"pluggability of the scope and context of defining current sessions."
msgstr ""
-"Entretanto, na versão 3.1, o processo por trás do método "
-"<literal>SessionFactory.getCurrentSession()</literal> é agora plugavel. Com "
+"Entretanto, a partir da versão 3.1, o processo por trás do método "
+"<literal>SessionFactory.getCurrentSession()</literal> é agora plugável. Com "
"isso, uma nova interface (<literal>org.hibernate.context."
"CurrentSessionContext</literal>) e um novo parâmetro de configuração "
"(<literal>hibernate.current_session_context_class</literal>) foram "
@@ -550,8 +608,7 @@
"definição de sessões correntes."
#. Tag: para
-#: architecture.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
"CurrentSessionContext</literal> interface for a detailed discussion of its "
@@ -560,54 +617,50 @@
"contextual session. Out-of-the-box, Hibernate comes with three "
"implementations of this interface:"
msgstr ""
-"De uma olhada em Javadocs sobre a interface <literal>org.hibernate.context."
+"Consulte no Javadocs sobre a interface <literal>org.hibernate.context."
"CurrentSessionContext</literal> para uma discussão detalhada. Ela define um "
-"método único, <literal>currentSession()</literal>, com o qual a "
-"implementação é responsável por rastrear a sessão contextual corrente. Por "
-"fora do \"encapsulamento\", o Hibernate possui duas implementações dessa "
-"interface."
+"método único, <literal>currentSession()</literal>, pelo qual a implementação "
+"é responsável por rastrear a sessão contextual atual. Fora da caixa, o "
+"Hibernate surge com três implementações dessa interface:"
#. Tag: para
-#: architecture.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
"are tracked and scoped by a <literal>JTA</literal> transaction. The "
"processing here is exactly the same as in the older JTA-only approach. See "
"the Javadocs for details."
msgstr ""
-"<literal>org.hibernate.context.JTASessionContext</literal> - As sessões "
+"<literal>org.hibernate.context.JTASessionContext</literal>: As sessões "
"correntes são rastreadas e recebem um escopo por uma transação <literal>JTA</"
-"literal>. O processamento aqui é exatamente igual ao antigo processo JTA. "
-"Consulte em Javadocs para maiores detalhes."
+"literal>. O processamento aqui é exatamente igual à abordagem anterior do "
+"JTA somente. Consulte em Javadocs para maiores detalhes."
#. Tag: para
-#: architecture.xml:344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - As "
"sessões correntes são rastreadas por uma thread de execução. Novamente, "
-"consulte em Javadocs para maiores detalhes."
+"consulte em Javadocs para maiores detalhes. "
#. Tag: para
-#: architecture.xml:350
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
"sessions are tracked by thread of execution. However, you are responsible to "
"bind and unbind a <literal>Session</literal> instance with static methods on "
"this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
-"<literal>org.hibernate.context.ManagedSessionContext</literal> - current "
-"sessions are tracked by thread of execution. However, you are responsible to "
-"bind and unbind a <literal>Session</literal> instance with static methods on "
-"this class, it does never open, flush, or close a <literal>Session</literal>."
+"<literal>org.hibernate.context.ManagedSessionContext</literal>. As sessões "
+"atuais são rastreadas por uma thread de execução. Entretanto, você é "
+"responsável por vincular e desvincular uma instância <literal>Session</"
+"literal> com métodos estáticos nesta classe, que nunca abre, libera ou fecha "
+"uma <literal>Session</literal>. "
#. Tag: para
-#: architecture.xml:359
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -620,25 +673,24 @@
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not need any transaction or session demarcation "
-"operations in your code. Refer to <xref linkend=\"transactions\"/> for more "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
"information and code examples."
msgstr ""
-"As duas primeiras implementações usam o modelo de programação \"uma sessão â "
-"uma transação do banco de dados\", também conhecida e usado como "
+"As duas primeiras implementações usam o modelo de programação \"uma sessão - "
+"uma transação do banco de dados\", também conhecida e usada como "
"<emphasis>sessão por requisição</emphasis>. O começo e o fim de uma sessão "
"Hibernate é definida pela duração da transação do banco de dados. Se você "
-"usa demarcação programática de transação (por exemplo. em J2SE puro ou com "
-"JTA /UserTransaction/BMT), você é recomendado a usar a API Hibernate "
-"<literal>Transaction</literal> para esconder a base do sistema de transação "
-"do seu código. Se você executa em um container EJB que suporta CMT, os "
-"limites das transações são definidas declarativamente e você não necessita "
-"de qualquer transação ou operação de demarcação de sessão no seu código. "
-"Consulte o <xref linkend=\"transactions\"/> para mais informações exemplos "
-"de código."
+"usar a demarcação programática de transação em JSE puro sem JTA, recomenda-"
+"se que utilize a API Hibernate <literal>Transaction</literal> para esconder "
+"o sistema de transação adjacente do seu código. Se você utiliza o JTA, use "
+"as interfaces JTA para demarcar as transações. Se você executar em um "
+"recipiente EJB que suporta CMT, os limites das transações são definidas "
+"declarativamente e você não precisará de qualquer transação ou operação de "
+"demarcação de sessão no seu código. Consulte o <xref linkend=\"transactions"
+"\"/> para mais informações e exemplos de código."
#. Tag: para
-#: architecture.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
"parameter defines which <literal>org.hibernate.context."
@@ -652,12 +704,12 @@
"\"managed\"."
msgstr ""
"O parâmetro de configuração <literal>hibernate."
-"current_session_context_class</literal> define que a implementação "
+"current_session_context_class</literal> define qual implementação "
"<literal>org.hibernate.context.CurrentSessionContext</literal> deve ser "
"usada. Note que para compatibilidade anterior, se este parâmetro de "
-"configuração não é determinado mas um <literal>org.hibernate.transaction."
-"TransactionManagerLookup</literal> é configurado, Hibernate usará o "
+"configuração não for determinado mas um <literal>org.hibernate.transaction."
+"TransactionManagerLookup</literal> for configurado, Hibernate usará o "
"<literal>org.hibernate.context.JTASessionContext</literal>. Tipicamente, o "
"valor deste parâmetro nomearia apenas a classe de implementação para usar; "
-"para as duas implementações out-of-the-box, entretanto, há três pequenos "
-"nomes correspondentes, \"jta\", \"thread\", and \"managed\"."
+"para as três implementações fora da caixa, entretanto, há dois pequenos "
+"nomes correspondentes, \"jta\", \"thread\", e \"managed\"."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,134 @@
+# translation of association_mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: association_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-16 14:59+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
-msgstr "Mapeamento de Associações"
+msgstr "Mapeamento de associações "
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr "Introdução"
#. Tag: para
-#: association_mapping.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
@@ -32,51 +136,45 @@
"use <literal>Person</literal> and <literal>Address</literal> in all the "
"examples."
msgstr ""
-"Mapeamentos de associações são freqüentemente a coisa mais difÃcil de se "
-"acertar. Nesta seção nós passaremos pêlos casos canônicos um pôr um, "
+"Os mapeamentos de associações são, geralmente, os mais difÃceis de se "
+"acertar. Nesta seção nós examinaremos pelos casos canônicos um por um, "
"começando com mapeamentos unidirecionais e considerando os casos "
-"bidirecionais. Nos vamos usar <literal>Person</literal> e <literal>Address</"
+"bidirecionais. Usaremos <literal>Person</literal> e <literal>Address</"
"literal> em todos os exemplos."
#. Tag: para
-#: association_mapping.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
msgstr ""
-"Nós classificaremos as associações pelo seu mapeamento ou a falta do mesmo, "
-"sua intervenção na tabela associativa, e pela sua multiplicidade."
+"Classificaremos as associações pela sua multiplicidade e se elas mapeiam ou "
+"não uma intervenção na tabela associativa."
#. Tag: para
-#: association_mapping.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
"not a requirement of Hibernate, and the mappings will work if you drop the "
"nullability constraints."
msgstr ""
-"O uso de chaves estrangeiras não obrigatórias não é considerada uma boa "
-"prática na modelagem de dados tradicional, assim todos nossos exemplos usam "
-"chaves estrangeiras obrigatórias. Esta não é uma exigência do Hibernate, e "
-"todas as mapeamentos funcionarão se você remover as constraints de "
-"obrigatoriedade."
+"O uso de chaves externas anuláveis não é considerado uma boa prática na "
+"modelagem de dados tradicional, assim todos os nossos exemplos usam chaves "
+"externas anuláveis. Esta não é uma exigência do Hibernate, e todos os "
+"mapeamentos funcionarão se você remover as restrições de anulabilidade."
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr "Associações Unidirecionais"
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "muitos para um"
+msgstr "Muitos-para-um"
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
@@ -85,445 +183,126 @@
"Uma <emphasis>associação unidirecional muitos-para-um</emphasis> é o tipo "
"mais comum de associação unidirecional."
-#. Tag: programlisting
-#: association_mapping.xml:68
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145
-#: association_mapping.xml:210
-#, fuzzy, no-c-format
msgid "One-to-one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"one to one"
+msgstr "Um-para-um"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key</"
"emphasis> is almost identical. The only difference is the column unique "
"constraint."
msgstr ""
-"Uma <emphasis>associação unidirecional um-para-um em uma chave estrangeira </"
-"emphasis> é quase idêntica. A única diferença é a constraint unique na "
-"coluna."
+"Uma <emphasis>associação unidirecional um-para-um em uma chave externa </"
+"emphasis> é quase idêntica. A única diferença é a restrição única na coluna."
-#. Tag: programlisting
-#: association_mapping.xml:81
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:84
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key</"
"emphasis> usually uses a special id generator In this example, however, we "
"have reversed the direction of the association:"
msgstr ""
-"Uma <emphasis>associação unidirecional um-para-um na chave primaria</"
-"emphasis> geralmente usa um gerador de id special. ( Note que nós invertemos "
-"a direção da associação nesse exemplo)."
+"Uma <emphasis>associação unidirecional um-para-um na chave primária</"
+"emphasis> geralmente usa um gerador de id especial. Note que nós invertemos "
+"a direção da associação nesse exemplo."
-#. Tag: programlisting
-#: association_mapping.xml:90
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
-#, fuzzy, no-c-format
msgid "One-to-many"
-msgstr "um para muitos"
+msgstr "Um-para-muitos"
#. Tag: para
-#: association_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key</"
"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"Uma <emphasis>associação unidirecional um-para-muitos em uma chave "
-"estrangeira</emphasis> é um caso muito incomum, e realmente não é "
-"recomendada."
+"Uma <emphasis>associação unidirecional um-para-muitos em uma chave externa</"
+"emphasis> é um caso muito incomum, e realmente não é recomendada."
-#. Tag: programlisting
-#: association_mapping.xml:103
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:106
-#, fuzzy, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr ""
-"Nós achamos que é melhor usar uma tabela associativa para este tipo de "
-"associação."
+"Acreditamos ser melhor usar uma tabela associativa para este tipo de "
+"associação. "
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "Associações Unidirecionais com tabelas associativas"
#. Tag: para
-#: association_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join table</"
"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
"literal>, changes the multiplicity from many-to-many to one-to-many."
msgstr ""
"Uma <emphasis>associação um-para-muitos unidirecional usando uma tabela "
-"associativa</emphasis> e o mais comum. Note que se especificarmos "
-"<literal>unique=\"true\"</literal>, estaremos modificando a cardinalidade de "
-"muitos-para-muitos para um-para-muitos."
+"associativa</emphasis> é o mais comum. Note que se especificarmos "
+"<literal>unique=\"true\"</literal>, estaremos modificando a multiplicidade "
+"de muitos-para-muitos para um-para-muitos."
-#. Tag: programlisting
-#: association_mapping.xml:126
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:134
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional many-to-one association on a join table</"
"emphasis> is common when the association is optional. For example:"
msgstr ""
"Uma <emphasis>associação unidirecional muitos-para-um em uma tabela "
-"associativa</emphasis> é bastante comum quando a associação for opcional."
+"associativa</emphasis> é bastante comum quando a associação for opcional. "
-#. Tag: programlisting
-#: association_mapping.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:147
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
"Uma <emphasis>associação unidirecional um-para-um em uma tabela associativa</"
-"emphasis> é extremamente incomum, mas possÃvel."
+"emphasis> é extremamente incomum, mas possÃvel. "
-#. Tag: programlisting
-#: association_mapping.xml:152
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
-#, fuzzy, no-c-format
msgid "Many-to-many"
-msgstr "muitos para muitos"
+msgstr "Muitos-para-muitos "
#. Tag: para
-#: association_mapping.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
msgstr ""
"Finalmente, nós temos a <emphasis>associação unidirecional muitos-para- "
-"muitos</emphasis>."
+"muitos</emphasis>. "
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
msgstr "Associações Bidirecionais"
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many / many-to-one"
-msgstr "um para muitos / muitos para um"
+msgstr "Um-para-muitos/muitos-para-um"
#. Tag: para
-#: association_mapping.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
"common kind of association. The following example illustrates the standard "
"parent/child relationship."
msgstr ""
"Uma <emphasis>associação bidirecional muitos-para-um</emphasis> é o tipo "
-"mais comum de associação. (Esse é o relacionamento padrão pai / filho. )"
+"mais comum de associação. A seguinte amostra ilustra o relacionamento padrão "
+"pai/filho. )"
-#. Tag: programlisting
-#: association_mapping.xml:183
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:187
-#, fuzzy, no-c-format
-msgid ""
"If you use a <literal>List</literal>, or other indexed collection, set the "
"<literal>key</literal> column of the foreign key to <literal>not null</"
"literal>. Hibernate will manage the association from the collections side to "
@@ -531,42 +310,16 @@
"by setting <literal>update=\"false\"</literal> and <literal>insert=\"false"
"\"</literal>:"
msgstr ""
-"Se você usar uma <literal>List</literal> ( ou outra coleção indexada ), você "
-"precisa especificar a coluna <literal>chave</literal> estrangeira como not "
-"null, e deixar o Hibernate administrar a associação do lado da coleção para "
-"que seja mantido o Ãndice de cada elemento da coleção (fazendo com que o "
-"outro lado seja virtualmente inverso setando <literal>update=\"false\"</"
-"literal> e <literal>insert=\"false\"</literal>):"
+"Se você usar uma <literal>List</literal> ou outra coleção indexada, você "
+"precisará especificar a coluna <literal>key</literal> da chave externa como "
+"<literal>not null</literal>. O Hibernate administrará a associação do lado "
+"da coleção para que seja mantido o Ãndice de cada elemento da coleção "
+"(fazendo com que o outro lado seja virtualmente inverso ajustando "
+"<literal>update=\"false\"</literal> e <literal>insert=\"false\"</literal>):"
-#. Tag: programlisting
-#: association_mapping.xml:195
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:197
-#, fuzzy, no-c-format
-msgid ""
"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
"important that you define <literal>not-null=\"true\"</literal> on the "
"<literal><key></literal> element of the collection mapping. Do not "
@@ -574,248 +327,79 @@
"<literal><column></literal> element, but on the <literal><key></"
"literal> element."
msgstr ""
-"à importante que você defina <literal>not-null=\"true\"</literal> no "
-"elemento <literal><key></literal> no mapeamento na coleção se a coluna "
-"de chave estrangeira for <literal>NOT NULL</literal>. Não declare como "
-"<literal>not-null=\"true\"</literal> apenas um elemento aninhado "
-"<literal><column></literal>, mas sim o elemento <literal><key></"
-"literal>."
+"Caso uma coluna chave externa adjacente for <literal>NOT NULL</literal>, é "
+"importante que você defina <literal>not-null=\"true\"</literal> no elemento "
+"<literal><key></literal> no mapeamento na coleção se a coluna de chave "
+"externa para <literal>NOT NULL</literal>. Não declare como <literal>not-null="
+"\"true\"</literal> apenas um elemento aninhado <literal><column></"
+"literal>, mas sim o elemento <literal><key></literal>."
#. Tag: para
-#: association_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
"is common:"
msgstr ""
-"Uma <emphasis>associação bidirecional um para um em uma chave estrangeira</"
-"emphasis> é bastante comum."
+"Uma <emphasis>associação bidirecional um para um em uma chave externa </"
+"emphasis> é bastante comum:"
-#. Tag: programlisting
-#: association_mapping.xml:217
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:220
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
"uses the special id generator:"
msgstr ""
"Uma <emphasis>associação bidirecional um para um em uma chave primária</"
-"emphasis> usa um gerador de id especial."
+"emphasis> usa um gerador de id especial:"
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr "Associações Bidirecionais com tabelas associativas"
#. Tag: para
-#: association_mapping.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
"literal> can go on either end of the association, on the collection, or on "
"the join."
msgstr ""
-"Uma <emphasis>associação bidirecional um para muitos em uma tabela "
-"associativa</emphasis>. Veja que <literal>inverse=\"true\"</literal> pode "
-"ser colocado em qualquer ponta associação, na coleção, ou no join."
+"Segue abaixo uma amostra da <emphasis>associação bidirecional um para muitos "
+"em uma tabela de união</emphasis>. Veja que <literal>inverse=\"true\"</"
+"literal> pode ser colocado em qualquer ponta da associação, na coleção, ou "
+"na união."
-#. Tag: programlisting
-#: association_mapping.xml:244
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:250
-#, fuzzy, no-c-format
msgid "one to one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"um para um\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"one to one"
+msgstr "Um para um"
#. Tag: para
-#: association_mapping.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"Uma <emphasis>associação bidirecional um-para-um em uma tabela de "
-"associação</emphasis> é algo bastante incomum, mas possivel."
+"Uma <emphasis>associação bidirecional um-para-um em uma tabela de união</"
+"emphasis> é algo bastante incomum, mas possÃvel."
-#. Tag: programlisting
-#: association_mapping.xml:257
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:265
-#, fuzzy, no-c-format
-msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association</"
"emphasis>."
msgstr ""
-"Finally, we have a <emphasis>bidirectional many-to-many association</"
-"emphasis>. Finalmente, nós temos uma associação bidirecional de muitos para "
-"muitos."
+"Finalmente, nós temos uma <emphasis>associação bidirecional de muitos para "
+"muitos</emphasis>."
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
msgstr "Mapeamento de associações mais complexas"
#. Tag: para
-#: association_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely</emphasis> rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
@@ -824,61 +408,25 @@
"<literal>effectiveEndDate</literal> and <literal>effectiveStartDate</"
"literal>columns, it would be mapped as follows:"
msgstr ""
-"More complex association joins are <emphasis>extremely</emphasis> rare. "
-"Hibernate makes it possible to handle more complex situations using SQL "
-"fragments embedded in the mapping document. For example, if a table with "
-"historical account information data defines <literal>accountNumber</"
-"literal>, <literal>effectiveEndDate</literal> and "
-"<literal>effectiveStartDate</literal>columns, mapped as follows: Joins de "
-"associações mais complexas são extremamente raros. O Hibernate torna "
-"possÃvel tratar mapeamentos mais complexos usando fragmentos de SQL "
-"embutidos no documento de mapeamento. Por exemplo, se uma tabela com "
-"informações de dados históricos de uma conta define a coluna accountNumber, "
-"effectiveEndDate e effectiveStartDate, mapeadas assim como segue:"
+"Uniões de associações mais complexas são <emphasis>extremamente</emphasis> "
+"raras. O Hibernate possibilita o tratamento de mapeamentos mais complexos, "
+"usando fragmentos de SQL embutidos no documento de mapeamento. Por exemplo, "
+"se uma tabela com informações de dados históricos de uma conta define as "
+"colunas <literal>accountNumber</literal>, <literal>effectiveEndDate</"
+"literal> e <literal>effectiveStartDate</literal>, mapeadas assim como segue:"
-#. Tag: programlisting
-#: association_mapping.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</"
-"formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:291
-#, fuzzy, no-c-format
-msgid ""
"You can then map an association to the <emphasis>current</emphasis> "
"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-"Then we can map an association to the <emphasis>current</emphasis> instance "
-"(the one with null <literal>effectiveEndDate</literal>) using: Então nós "
-"podemos mapear uma associação para a instância corrente (aquela com a "
-"effectiveEndDate igual a null) usando:"
+"Então nós podemos mapear uma associação para a instância <emphasis>atual</"
+"emphasis>, aquela com <literal>effectiveEndDate</literal> nulo, usando:"
-#. Tag: programlisting
-#: association_mapping.xml:296
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:298
-#, fuzzy, no-c-format
-msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee</literal> and <literal>Organization</literal> is "
"maintained in an <literal>Employment</literal> table full of historical "
@@ -886,44 +434,806 @@
"emphasis> employer, the one with the most recent <literal>startDate</"
"literal>, could be mapped in the following way:"
msgstr ""
-"In a more complex example, imagine that the association between "
-"<literal>Employee</literal> and <literal>Organization</literal> is "
-"maintained in an <literal>Employment</literal> table full of historical "
-"employment data. Then an association to the employee's <emphasis>most "
-"recent</emphasis> employer (the one with the most recent <literal>startDate</"
-"literal>) might be mapped this way: Em um exemplo mais complexo, imagine que "
-"a associação entre Employee e Organization é mantida em uma tabela "
-"Employment cheia de dados históricos do trabalho. Então a associação do "
-"funcionário mais recentemente empregado (aquele com a mais recente "
-"startDate) deve ser mapeado desta maneira:"
+"Em um exemplo mais complexo, imagine que a associação entre "
+"<literal>Employee</literal> e <literal>Organization</literal> é mantida em "
+"uma tabela <literal>Employment</literal> cheia de dados históricos do "
+"trabalho. Então a associação do funcionário <emphasis>mais recentemente</"
+"emphasis> e empregado, aquele com a mais recente <literal>startDate</"
+"literal>, deve ser mapeado desta maneira: "
-#. Tag: programlisting
-#: association_mapping.xml:306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:308
-#, fuzzy, no-c-format
-msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
-"You can get quite creative with this functionality, but it is usually more "
-"practical to handle these kinds of cases using HQL or a criteria query. Você "
-"pode ser criativo com esta funcionalidade, mas geralmente é mais prático "
-"tratar estes tipos de casos, usando uma pesquisa HQL ou uma pesquisa por "
-"criteria."
+"Esta funcionalidade permite um grau de criatividade e flexibilidade, mas "
+"geralmente é mais prático tratar estes tipos de casos, usando uma pesquisa "
+"HQL ou uma pesquisa por critério."
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,155 +1,185 @@
+# translation of basic_mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: basic_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 07:43+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
-msgstr "Mapeamento O/R Bassico"
+msgstr "Mapeamento O/R Básico"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
msgstr "Declaração de mapeamento"
#. Tag: para
-#: basic_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
"mapping document is designed to be readable and hand-editable. The mapping "
"language is Java-centric, meaning that mappings are constructed around "
"persistent class declarations and not table declarations."
msgstr ""
-"Object/relational mappings are usually defined in an XML document. The "
-"mapping document is designed to be readable and hand-editable. The mapping "
-"language is Java-centric, meaning that mappings are constructed around "
-"persistent class declarations, not table declarations."
+"O mapeamento de objeto/relacional é geralmente definido em um documento XML. "
+"O documento de mapeamento é criado para ser de leitura e editável "
+"manualmente. A linguagem do mapeamento é Java-centric, ou seja, os "
+"mapeamentos são construÃdos em torno de declarações de classe persistente e "
+"não de declarações de tabelas. "
#. Tag: para
-#: basic_mapping.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
"hand, a number of tools exist to generate the mapping document. These "
"include XDoclet, Middlegen and AndroMDA."
msgstr ""
-"Note that, even though many Hibernate users choose to write the XML by hand, "
-"a number of tools exist to generate the mapping document, including XDoclet, "
-"Middlegen and AndroMDA."
+"Note que, embora muitos usuários do Hibernate escolham gravar o XML "
+"manualmente, existem diversas ferramentas para gerar o documento de "
+"mapeamento, incluindo o XDoclet Middlegen e AndroMDA."
#. Tag: para
-#: basic_mapping.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is an example mapping:"
-msgstr "Lets kick off with an example mapping:"
+msgstr "Vamos iniciar com um exemplo de mapeamento:"
-#. Tag: programlisting
-#: basic_mapping.xml:51
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:53
-#, fuzzy, no-c-format
-msgid ""
"We will now discuss the content of the mapping document. We will only "
"describe, however, the document elements and attributes that are used by "
"Hibernate at runtime. The mapping document also contains some extra optional "
"attributes and elements that affect the database schemas exported by the "
"schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
-"Discutir agora o conteúdo deste documento de mapeamento. Iremos apenas "
-"descrever os elementos do documento e atributos que são utilizados pelo "
+"Discutiremos agora o conteúdo deste documento de mapeamento. Iremos apenas "
+"descrever os elementos do documento e funções que são utilizadas pelo "
"Hibernate em tempo de execução. O documento de mapeamento também contém "
-"alguns atributos adicionais e opcionais além de elementos que afetam os "
+"algumas funções adicionais e opcionais além de elementos que afetam os "
"esquemas de banco de dados exportados pela ferramenta de exportação de "
-"esquemas. (Por exemplo, o atributo <literal>not-null</literal>)."
+"esquemas. (Por exemplo, o atributo <literal>not-null</literal>). "
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
"found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/"
@@ -163,17 +193,15 @@
"org/ hibernate </literal> ou no <literal>hibernate3.jar</literal>. O "
"Hibernate sempre irá procurar pelo DTD inicialmente no seu classpath. Se "
"você tentar localizar o DTD usando uma conexão de internet, compare a "
-"declaração do seu DTD com o conteúdo do seu classpath"
+"declaração do seu DTD com o conteúdo do seu classpath."
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
-msgstr "EntityResolver"
+msgstr "Solucionador de Entidade"
#. Tag: para
-#: basic_mapping.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
"is by registering a custom <literal>org.xml.sax.EntityResolver</literal> "
@@ -181,30 +209,27 @@
"custom <literal>EntityResolver</literal> recognizes two different systemId "
"namespaces:"
msgstr ""
-"As mentioned previously, Hibernate will first attempt to resolve DTDs in its "
-"classpath. The manner in which it does this is by registering a custom "
-"<literal>org.xml.sax.EntityResolver</literal> implementation with the "
-"SAXReader it uses to read in the xml files. This custom "
-"<literal>EntityResolver</literal> recognizes two different systemId "
-"namespaces."
+"O Hibernate irá primeiro tentar solucionar os DTDs em seus classpath. Isto é "
+"feito, registrando uma implementação <literal>org.xml.sax.EntityResolver</"
+"literal> personalizada com o SAXReader que ele utiliza para ler os arquivos "
+"xml. Este <literal>EntityResolver</literal> personalizado, reconhece dois "
+"nomes de espaço de sistemas Id diferentes:"
#. Tag: para
-#: basic_mapping.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://hibernate.sourceforge."
"net/</literal>. The resolver attempts to resolve these entities via the "
"classloader which loaded the Hibernate classes."
msgstr ""
-"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId starting with <literal>http://hibernate.sourceforge."
-"net/</literal>; the resolver attempts to resolve these entities via the "
-"classlaoder which loaded the Hibernate classes."
+"Um <literal>hibernate namespace</literal> é reconhecido quando um "
+"solucionador encontra um systema Id iniciando com <literal>http://hibernate."
+"sourceforge.net/</literal>. O solucionador tenta solucionar estas entidades "
+"através do carregador de classe que carregou as classes do Hibernate. "
#. Tag: para
-#: basic_mapping.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath://</literal> URL protocol. "
@@ -212,60 +237,35 @@
"thread context classloader and (2) the classloader which loaded the "
"Hibernate classes."
msgstr ""
-"a <literal>user namespace</literal> is recognized whenever the resolver "
-"encounteres a systemId using a <literal>classpath://</literal> URL protocol; "
-"the resolver will attempt to resolve these entities via (1) the current "
-"thread context classloader and (2) the classloader which loaded the "
-"Hibernate classes."
+"Um <literal>user namespace</literal> é reconhecido quando um solucionador "
+"encontra um sistema Id, utilizando um protocolo URL de <literal>classpath://"
+"</literal>. O solucionador tentará solucionar estas entidades através do "
+"carregador de classe do contexto de thread atual (1) e o carregador de "
+"classe (2) que carregou as classes do Hibernate. "
#. Tag: para
-#: basic_mapping.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
-msgstr "An example of utilizing user namespacing:"
+msgstr "Um exemplo de utilização do espaço de nome do usuário:"
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
"custom\">typedef</link>."
msgstr ""
-"Where <literal>types.xml</literal> is a resource in the <literal>your."
-"domain</literal> package and contains a custom <xref linkend=\"mapping-types-"
-"custom\">typedef</xref>."
+"Onde <literal>types.xml</literal> é um recurso no pacote <literal>your."
+"domain</literal> e contém um <xref linkend=\"mapping-types-custom\"/> "
+"personalizado."
#. Tag: title
-#: basic_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate-mapping"
-msgstr "hibernate-mapping"
+msgstr "Mapeamento do Hibernate"
#. Tag: para
-#: basic_mapping.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
"and <literal>catalog</literal> attributes specify that tables referred to in "
@@ -278,119 +278,96 @@
"literal> attribute allows you to use unqualified class names in the query "
"language."
msgstr ""
-"Este elemento tem diversos atributos opcionais. Os atributos "
+"Este elemento possui diversos atributos opcionais. Os atributos "
"<literal>schema</literal> e <literal>catalog</literal> especificam que "
-"tabelas referenciadas neste mapeamento pertencem ao esquema e/ou ao catalogo "
-"nomeado. Se especificados, os nomes das tabelas irão ser qualificados no "
-"schema ou catalog dado. Se não, os nomes das tabelas não serão qualificados. "
-"O atributo <literal>default-cascade </literal> especifica qual estilo de "
-"cascata será assumido pelas propriedades e coleções que não especificarm um "
-"atributo <literal>cascade</literal>. O atributo <literal>auto-import</"
-"literal> nos deixa utilizar nomes de classes não qualificados na linguagem "
-"de consulta, por default."
+"tabelas referenciadas neste mapeamento pertencem ao esquema e/ou ao catálogo "
+"nomeado. Se especificados, os nomes das tabelas serão qualificados no "
+"esquema ou catálogo dado. Se não, os nomes das tabelas não serão "
+"qualificados. O atributo <literal>default-cascade</literal> especifica qual "
+"estilo de cascata será considerado pelas propriedades e coleções que não "
+"especificarem uma função <literal>cascade</literal>. A função <literal>auto-"
+"import</literal> nos deixa utilizar nomes de classes não qualificados na "
+"linguagem de consulta, por padrão."
-#. Tag: programlisting
-#: basic_mapping.xml:138
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
msgstr ""
-"<literal>schema</literal> (opcional): O nome do esquema do banco de dados."
+"<literal>schema</literal> (opcional): O nome do esquema do banco de dados. "
#. Tag: para
-#: basic_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
msgstr ""
-"<literal>catalog</literal> (opcional): O nome do catálogo do banco de dados."
+"<literal>catalog</literal> (opcional): O nome do catálogo do banco de dados. "
#. Tag: para
-#: basic_mapping.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
"literal>): a default cascade style."
msgstr ""
-"<literal>default-cascade</literal> (opcional â default é <literal>nenhum </"
-"literal>): Um estilo cascata default."
+"<literal>default-cascade</literal> (opcional â o padrão é <literal>none</"
+"literal>): Um estilo cascata padrão."
#. Tag: para
-#: basic_mapping.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing all properties. "
"It can be a custom implementation of <literal>PropertyAccessor</literal>."
msgstr ""
-"<literal>default-access</literal> (opcional â default é <literal>property</"
+"<literal>default-access</literal> (opcional â o padrão é <literal>property</"
"literal>): A estratégia que o Hibernate deve utilizar para acessar todas as "
-"propridades. Pode ser uma implementação própria de "
+"propridades. Pode ser uma implementação personalizada de "
"<literal>PropertyAccessor</literal>."
#. Tag: para
-#: basic_mapping.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
"literal>): the default value for unspecified <literal>lazy</literal> "
"attributes of class and collection mappings."
msgstr ""
-"<literal>default-lazy</literal> (opcional - default é <literal>true</"
-"literal>): O valor default para atributos <literal>lazy</literal> da classe "
-"e dos mapeamentos de coleções."
+"<literal>default-lazy</literal> (opcional - o padrão é <literal>true</"
+"literal>): O valor padrão para atributos <literal>lazy</literal> não "
+"especificados da classe e dos mapeamentos de coleções."
#. Tag: para
-#: basic_mapping.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
"literal>): specifies whether we can use unqualified class names of classes "
"in this mapping in the query language."
msgstr ""
-"<literal>auto-import</literal> ((opcional - default é <literal>true</"
-"literal>): Especifica se nós podemos usar nomes de classess não qualificados "
-"(das classes deste mapeamento) na linguagem de consulta."
+"<literal>auto-import</literal> (opcional - o padrão é <literal>true</"
+"literal>): Especifica se podemos usar nomes de classes não qualificados, das "
+"classes deste mapeamento, na linguagem de consulta."
#. Tag: para
-#: basic_mapping.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
-"<literal>package</literal> (opcional): Especifica um prefixo da package para "
-"assumir para nomes de classes não qualificadas no documento de mapeamento."
+"<literal>package</literal> (opcional): Especifica um prefixo do pacote a ser "
+"considerado para nomes de classes não qualificadas no documento de "
+"mapeamento. "
#. Tag: para
-#: basic_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\"</literal>. An exception will "
"result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
-"Se voce tem duas classes persistentes com o mesmo nome (não qualificadas), "
-"você deve setar <literal>auto-import=\"false\"</literal>. O Hibernate irá "
-"gerar uma exceção se você tentar setar duas classes para o mesmo nome "
-"\"importado\"."
+"Se você tem duas classes persistentes com o mesmo nome (não qualificadas), "
+"você deve ajustar <literal>auto-import=\"false\"</literal>. Caso você tentar "
+"ajustar duas classes para o mesmo nome \"importado\", isto resultará numa "
+"exceção."
#. Tag: para
-#: basic_mapping.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
"persistent <literal><class></literal> mappings, as shown above. It is, "
@@ -400,177 +377,125 @@
"literal>, <literal>Dog.hbm.xml</literal>, or if using inheritance, "
"<literal>Animal.hbm.xml</literal>."
msgstr ""
-"Observe que o elemento <literal>hibernate-mapping</literal> permite a você "
-"aninhar diversos mapeamentos de <literal><class></literal> "
+"Observe que o elemento <literal>hibernate-mapping</literal> permite que você "
+"aninhe diversos mapeamentos de <literal><class></literal> "
"persistentes, como mostrado abaixo. Entretanto, é uma boa prática (e "
-"esperado por algumas ferramentas)o mapeamento de apenas uma classe "
+"esperado por algumas ferramentas) o mapeamento de apenas uma classe "
"persistente simples (ou uma hierarquia de classes simples) em um arquivo de "
-"mapeamento e nomea-la após a superclasse persistente, por exemplo: "
+"mapeamento e nomeá-la após a superclasse persistente, por exemplo: "
"<literal>Cat.hbm.xml</literal>, <literal>Dog.hbm.xml</literal>, ou se "
-"estiver usando herança, <literal>Animal.hbm.xml</literal>."
+"estiver usando herança, <literal>Animal.hbm.xml</literal>. "
#. Tag: title
-#: basic_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Class"
-msgstr "class"
+msgstr "Classe"
#. Tag: para
-#: basic_mapping.xml:207
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
"element. For example:"
msgstr ""
"Você pode declarar uma classe persistente utilizando o elemento "
-"<literal>class</literal>:"
+"<literal>class</literal>. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:235
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:238
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
"the persistent class or interface. If this attribute is missing, it is "
"assumed that the mapping is for a non-POJO entity."
msgstr ""
"<literal>name</literal> (opcional): O nome da classe Java inteiramente "
-"qualificado da classe persistente (ou interface); Se o atributo é ausente, "
-"assume-se que o mapeamento é para intidades não-POJO."
+"qualificado da classe persistente (ou interface). Se a função é ausente, "
+"assume-se que o mapeamento é para entidades não-POJO. "
#. Tag: para
-#: basic_mapping.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
-"<literal>table</literal> (opcional â default para nomes de classes não "
-"qualificadas) O nome da sua tabela do banco de dados."
+"<literal>table</literal> (opcional â padrão para nomes de classes não "
+"qualificadas): O nome da sua tabela do banco de dados."
#. Tag: para
-#: basic_mapping.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
"polymorphic behavior. Acceptable values include <literal>null</literal> and "
"<literal>not null</literal>."
msgstr ""
-"<literal>discriminator-value</literal> (opcional â default para o nome da "
+"<literal>discriminator-value</literal> (opcional â padrão para o nome da "
"classe): Um valor que distingue subclasses individuais, usadas para o "
-"comportamento polimorfico. Valores aceitos incluem <literal>null</literal> e "
-"<literal>not null</literal>"
+"comportamento polimórfico. Valores aceitos incluem <literal>null</literal> e "
+"<literal>not null</literal>. "
#. Tag: para
-#: basic_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"specifies that instances of the class are (not) mutable."
msgstr ""
-"<literal>mutable</literal> (opcional - valor default <literal>true</"
-"literal>): Especifica que instancias da classe são (ou não) mutáveis"
+"<literal>mutable</literal> (opcional - valor padrão <literal>true</"
+"literal>): Especifica quais instâncias da classe são (ou não) mutáveis."
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>schema</literal> (opcional): Sobrepõe o nome do esquema "
-"especificado pelo elemento root <literal><hibernate-mapping></"
-"literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> (opcional): Sobrepõe o nome do esquema "
-"especificado pelo elemento raiz <literal><hibernate-mapping></literal>."
+"especificado pelo elemento raÃz <literal><hibernate-mapping></literal>."
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>catalog</literal> (opcional): Sobrepõe o nome do catálogo "
-"especificado pelo elemento root <literal><hibernate-mapping></"
-"literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> (opcional): Sobrepõe o nome do catálogo "
-"especificado pelo elemento raiz<literal><hibernate-mapping></literal>."
+"especificado pelo elemento raÃz <literal><hibernate-mapping></literal>."
#. Tag: para
-#: basic_mapping.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
-"<literal>proxy</literal> (opcional): Especifica um interface para ser "
-"utilizada pelos proxies de inicialização tardia. Você pode especificar o "
-"nome da própria classe."
+"<literal>proxy</literal> (opcional): Especifica uma interface para ser "
+"utilizada pelos proxies de inicialização lazy. Você pode especificar o nome "
+"da própria classe. "
#. Tag: para
-#: basic_mapping.xml:282
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>UPDATE</literal> SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
-"<literal>dynamic-update</literal> (opcional, valor default <literal>false</"
+"<literal>dynamic-update</literal> (opcional, valor padrão <literal>false</"
"literal>): Especifica que o SQL de <literal>UPDATE</literal> deve ser gerado "
"em tempo de execução e conter apenas aquelas colunas cujos valores foram "
-"alterados."
+"alterados. "
#. Tag: para
-#: basic_mapping.xml:289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>INSERT</literal> SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
-"<literal>dynamic-insert</literal> (opcional, valor default <literal>false</"
+"<literal>dynamic-insert</literal> (opcional, valor padrão <literal>falso</"
"literal>): Especifica que o SQL de <literal>INSERT</literal> deve ser gerado "
"em tempo de execução e conter apenas aquelas colunas cujos valores não estão "
-"nulos."
+"nulos. "
#. Tag: para
-#: basic_mapping.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
"<literal>false</literal>): specifies that Hibernate should <emphasis>never</"
@@ -580,116 +505,106 @@
"Hibernate perform an extra SQL <literal>SELECT</literal> to determine if an "
"<literal>UPDATE</literal> is actually required."
msgstr ""
-"<literal>select-before-update</literal> (opcional, valor default "
-"<literal>false</literal>): Especifica que o Hibernate <emphasis>never</"
+"<literal>select-before-update</literal> (opcional, valor padrão "
+"<literal>false</literal>): Especifica que o Hibernate <emphasis>nunca</"
"emphasis> deve executar um SQL de <literal>UPDATE</literal> a não ser que "
-"com certeza um objeto está atualmente modificado. Em certos casos "
-"(atualmente, apenas quando um objeto transiente foi associado com uma nova "
-"sessão utilizando <literal>update()</literal>), isto significa que o "
-"Hibernate ira executar uma instrução SQL de <literal>SELECT</literal> "
-"adicional para determinar se um <literal>UPDATE</literal> é necessário nesse "
-"momento."
+"seja certo que um objeto está atualmente modificado. Em certos casos (na "
+"verdade, apenas quando um objeto transiente foi associado a uma nova sessão "
+"utilizando <literal>update()</literal>), isto significa que o Hibernate irá "
+"executar uma instrução SQL de <literal>SELECT</literal> adicional para "
+"determinar se um <literal>UPDATE</literal> é necessário nesse momento."
#. Tag: para
-#: basic_mapping.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
"literal>): determines whether implicit or explicit query polymorphism is "
"used."
msgstr ""
-"<literal>polymorphism</literal> (opcional, default para <literal>implicit</"
-"literal>): Determina se deve ser utilizado a query polimorfica implicita ou "
-"explicitamente."
+"<literal>polymorphism</literal> (opcional, padrão para <literal>implicit</"
+"literal>): Determina se deve ser utilizado a consulta polimórfica implÃcita "
+"ou explicitamente. "
#. Tag: para
-#: basic_mapping.xml:312
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition to be used when retrieving objects of "
"this class."
msgstr ""
-"<literal>where</literal> (opicional) especifica um comando SQL "
+"<literal>where</literal> (opicional): Especifica um comando SQL "
"<literal>WHERE</literal> arbitrário para ser usado quando da recuperação de "
"objetos desta classe."
#. Tag: para
-#: basic_mapping.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
"<literal>ClassPersister</literal>."
msgstr ""
-"<literal>persister</literal> (opcional): Espeicifca uma "
+"<literal>persister</literal> (opcional): Especifica uma "
"<literal>ClassPersister</literal> customizada."
#. Tag: para
-#: basic_mapping.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
-"<literal>batch-size</literal> (opcional, valor default <literal>1</literal>) "
-"especifica um \"tamanho de lote\" para a recuperação de instancias desta "
-"classe pelo identificador."
+"<literal>batch-size</literal> (opcional, valor padrão <literal>1</literal>) "
+"Especifica um \"tamanho de lote\" para a recuperação de instâncias desta "
+"classe pela identificação."
#. Tag: para
-#: basic_mapping.xml:329
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
"literal>): determines the optimistic locking strategy."
msgstr ""
-"<literal>optimistic-lock</literal> (octional, valor default "
-"<literal>version</literal>): Determina a estratégia de bloqueio."
+"<literal>optimistic-lock</literal> (opcional, valor padrão <literal>version</"
+"literal>): Determina a estratégia de bloqueio."
#. Tag: para
-#: basic_mapping.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"<literal>lazy</literal> (opcional): A recuperação tardia pode ser "
-"completamente desabilitada, setando <literal>lazy=\"false\"</literal>."
+"<literal>lazy</literal> (opcional): A recuperação lazy pode ser "
+"completamente desabilitada, ajustando <literal>lazy=\"false\"</literal>."
#. Tag: para
-#: basic_mapping.xml:341
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
"Hibernate3 allows a class to be mapped multiple times, potentially to "
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
-"<literal>entity-name</literal> (opcional, default para o nome da classe): O "
-"Hibernate3 permite uma classe ser mapeada multiplas vezes, (potencialmente,"
-"para diferentes tabelas), e permite mapeamentos de entidades que são "
-"representadas por Maps ou XML no nÃvel Java. Nestes casos, você deve "
+"<literal>entity-name</literal> (opcional - padrão para o nome da classe): O "
+"Hibernate3 permite uma classe ser mapeada múltiplas vezes, potencialmente "
+"para diferentes tabelas. Além disso, isto permite mapeamentos de entidades "
+"que são representadas por Maps ou XML no nÃvel Java. Nestes casos, você deve "
"especificar um nome arbitrário explicitamente para a entidade. Veja <xref "
"linkend=\"persistent-classes-dynamicmodels\"/> e <xref linkend=\"xml\"/> "
"para maiores informações."
#. Tag: para
-#: basic_mapping.xml:351
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
"multi-row <emphasis>check</emphasis> constraint for automatic schema "
"generation."
msgstr ""
"<literal>check</literal> (opcional): Uma expressão SQL utilizada para gerar "
-"uma constraint de <emphasis>verificação</emphasis> de múltiplas linhas para "
-"a geração automática do esquema."
+"uma restrição de <emphasis>verificação</emphasis> de múltiplas linhas para a "
+"geração automática do esquema. "
#. Tag: para
-#: basic_mapping.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra "
@@ -697,41 +612,36 @@
"literal>. A ROWID is an implementation detail and represents the physical "
"location of a stored tuple."
msgstr ""
-"<literal>rowid</literal> (opcional): O Hibernate poder usar as assim "
+"<literal>rowid</literal> (opcional): O Hibernate poder usar as então "
"chamadas ROWIDs em bancos de dados que a suportam. Por exemplo, no Oracle, o "
"Hibernate pode utilizar a coluna extra rowid para atualizações mais rápidas "
"se você configurar esta opção para <literal>rowid</literal>. Um ROWID é uma "
"implementação que representa de maneira detalhada a localização fÃsica de "
-"uma determinada tupla armazenado."
+"uma determinada tuple armazenada. "
#. Tag: para
-#: basic_mapping.xml:364
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
"entity to a database subselect. This is useful if you want to have a view "
"instead of a base table. See below for more information."
msgstr ""
-"<literal>subselect</literal> (optional): Maps an immutable and read-only "
-"entity to a database subselect. Useful if you want to have a view instead of "
-"a base table, but don't. See below for more information. <literal>subselect</"
-"literal> (opcional): Mapeia uma entidade imutavel e somente de leitura para "
-"um subconjunto do banco de dados. Ãtil se você quiser ter uma view em vez de "
-"uma tabela. Veja abaixo para mais informações."
+"<literal>subselect</literal> (opcional): Mapeia uma entidade imutável e "
+"somente de leitura para um subconjunto do banco de dados. Ãtil se você "
+"quiser ter uma visão, ao invés de uma tabela. Veja abaixo para mais "
+"informações. "
#. Tag: para
-#: basic_mapping.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
"superclasses in <literal><union-subclass></literal> hierarchies."
msgstr ""
"<literal>abstract</literal> (opcional): Utilizada para marcar superclasses "
-"abstratas em hierarquias <literal><union-subclass></literal>."
+"abstratas em hierarquias <literal><union-subclass></literal>. "
#. Tag: para
-#: basic_mapping.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
"declare implementing classes of that interface using the <literal><"
@@ -739,28 +649,26 @@
"emphasis> inner class. Specify the class name using the standard form i.e. "
"<literal>e.g.Foo$Bar</literal>."
msgstr ""
-"à perfeitamente aceitável para uma classe persitente nomeada ser uma "
-"interface. Você deverá então declarar as classes implementadas desta "
-"interface utilizando o elemento <literal><subclass></literal>. Você "
-"pode persistir qualquer classe de aninhada <emphasis>estatica</emphasis>. "
-"Você deverá especificar o nome da classe usando a forma padrão, por exemplo: "
-"<literal>eg.Foo$Bar</literal>."
+"à perfeitamente aceitável uma classe persitente nomeada ser uma interface. "
+"Você deverá então declarar as classes implementadas desta interface "
+"utilizando o elemento <literal><subclass></literal>. Você pode "
+"persistir qualquer classe interna <emphasis>estática</emphasis>. Você deverá "
+"especificar o nome da classe usando a forma padrão, por exemplo: <literal>eg."
+"Foo$Bar</literal>. "
#. Tag: para
-#: basic_mapping.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
"or deleted by the application. This allows Hibernate to make some minor "
"performance optimizations."
msgstr ""
"Classes imutáveis, <literal>mutable=\"false\"</literal>, não podem ser "
-"modificadas ou excluÃdas pela aplicação. Isso permite ao Hibernate fazer "
-"alguns aperfeiçoamentos de performance."
+"modificadas ou excluÃdas pela aplicação. Isso permite que o Hibernate "
+"aperfeiçoe o desempenho. "
#. Tag: para
-#: basic_mapping.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
"of persistent instances of the class. Hibernate will initially return CGLIB "
@@ -768,15 +676,14 @@
"when a method of the proxy is invoked. See \"Initializing collections and "
"proxies\" below."
msgstr ""
-"O atributo opcional <literal>proxy</literal> habilita a inicialização tardia "
-"das instâncias persistentes da classe. O Hibernate irá retornar CGLIB "
-"proxies como implementado na interface nomeada. O objeto persistente atual "
-"será carregado quando um método do proxy for invocado. Veja \"Inicializando "
-"coleções e proxies\" abaixo."
+"A função opcional <literal>proxy</literal> habilita a inicialização lazy das "
+"instâncias persistentes da classe. O Hibernate irá retornar CGLIB proxies "
+"como implementado na interface nomeada. O objeto persistente atual será "
+"carregado quando um método do proxy for invocado. Veja \"Inicialização de "
+"Coleções e Proxies\" abaixo. "
#. Tag: para
-#: basic_mapping.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
"will be returned by a query that names any superclass or implemented "
@@ -793,22 +700,22 @@
"table columns."
msgstr ""
"Polimorfismo <emphasis>implÃcito</emphasis> significa que instâncias de uma "
-"classe serão retornada por uma query que dá nome a qualquer superclasse ou "
-"interface implementada, ou a classe e as instancias de qualquer subclasse da "
-"classe será retornada por umq query que nomeia a classe por si. Polimorfismo "
-"<emphasis>explÃcito</emphasis> significa que instancias da classe serão "
-"retornadas apenas por queries que explicitamente nomeiam a classe e que "
-"queries que nomeiam as classes irão retornar apenas instancias de subclasses "
-"mapeadas dentro da declaração <literal><class></literal> como uma "
-"<literal><subclass></literal> ou <literal><joined-subclass></"
-"literal>. Para a maioria dos casos, o valor default <literal>polymorphism="
-"\"implicit\"</literal>, é apropriado. Polimorfismo explicito é útil quando "
-"duas classes distintas estão mapeadas para a mesma tabela (isso permite um "
-"classe \"peso leve\" que contem um subconjunto de colunas da tabela)."
+"classe serão retornadas por uma consulta que dá nome a qualquer superclasse "
+"ou interface e classe implementada, além das instâncias de qualquer "
+"subclasse da classe serão retornadas por uma consulta que nomeia a classe "
+"por si. Polimorfismo <emphasis>explÃcito</emphasis> significa que instâncias "
+"da classe serão retornadas apenas por consultas que explicitamente nomeiam a "
+"classe e que as consultas que nomeiam as classes irão retornar apenas "
+"instâncias de subclasses mapeadas dentro da declaração <literal><class>"
+"</literal> como uma <literal><subclass></literal> ou <literal><"
+"joined-subclass></literal>. Para a maioria dos casos, o valor padrão "
+"<literal>polymorphism=\"implicit\"</literal>, é apropriado. Polimorfismo "
+"explicito é útil quando duas classes distintas estão mapeadas para a mesma "
+"tabela. Isso aceita uma classe \"peso leve\" que contém um subconjunto de "
+"colunas da tabela. "
#. Tag: para
-#: basic_mapping.xml:410
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
"persistence strategy used for the class. You can, for example, specify your "
@@ -821,17 +728,16 @@
msgstr ""
"O atributo <literal>persister</literal> deixa você customizar a estratégia "
"de persistência utilizada para a classe. Você pode, por exemplo, especificar "
-"sua prórpia subclasse do <literal>org.hibernate.persister.EntityPersister</"
+"sua própria subclasse do <literal>org.hibernate.persister.EntityPersister</"
"literal> ou você pode criar uma implementação completamente nova da "
"interface <literal>org.hibernate.persister.ClassPersister</literal> que "
-"implementa a persistência através de, por exemplo, chamadas a stored "
-"procedeures, serialização de arquivos flat ou LDAP. Veja <literal>org."
-"hibernate.test.CustomPersister</literal> para um exemplo simples (de "
-"\"persistencia\" para uma <literal>Hashtable</literal>)."
+"implementa a persistência através de, por exemplo, chamadas a procedimentos "
+"armazenados, serialização de arquivos planos ou LDAP. Veja <literal>org."
+"hibernate.test.CustomPersister</literal> para um exemplo simples de "
+"\"persistência\" para uma <literal>Hashtable</literal>."
#. Tag: para
-#: basic_mapping.xml:421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
"settings are not inherited by subclasses, so they can also be specified on "
@@ -840,28 +746,26 @@
"cases, they can actually decrease performance in others."
msgstr ""
"Observe que as configurações <literal>dynamic-update</literal> e "
-"<literal>dynamic-insert</literal> não sao herdadas pelas subclasses e assim "
-"podem tambem ser especificadas em elementos <literal><subclass></"
-"literal> or <literal><joined-subclass></literal>. Estas configurações "
-"podem incrementar a performance em alguns casos, mas pode realmente diminuir "
-"a performance em outras. Use-as de forma bastante criteriosa."
+"<literal>dynamic-insert</literal> não são herdadas pelas subclasses e assim "
+"podem também ser especificadas em elementos <literal><subclass></"
+"literal> ou <literal><joined-subclass></literal>. Estas configurações "
+"podem incrementar o desempenho em alguns casos, mas podem realmente diminuir "
+"o desempenho em outras. "
#. Tag: para
-#: basic_mapping.xml:429
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
"performance. It is useful to prevent a database update trigger being called "
"unnecessarily if you reattach a graph of detached instances to a "
"<literal>Session</literal>."
msgstr ""
-"O uso de <literal>select-before-update</literal> geralmente irá diminuir a "
-"performance. Ela é muito útil para prevenir que uma trigger de atualização "
-"no banco de dados seja ativada desnecessariamente, se você reconectar um nó "
-"de uma instancia desconectada em uma <literal>Session</literal>."
+"O uso de <literal>select-before-update</literal> geralmente irá diminuir o "
+"desempenho. Ela é muito útil para prevenir que um trigger de atualização no "
+"banco de dados seja ativado desnecessariamente, se você reconectar um nó de "
+"uma instância desconectada em uma <literal>Session</literal>."
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
@@ -871,51 +775,45 @@
"estratégia de bloqueio otimista:"
#. Tag: para
-#: basic_mapping.xml:441
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
-msgstr "<literal>version</literal> verifica a versão e a hora das colunas"
+msgstr "<literal>version</literal>: verifica as colunas de versão/timestamp"
#. Tag: para
-#: basic_mapping.xml:446
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>all</literal>: check all columns"
-msgstr "<literal>all</literal> cverifica todas as colunas"
+msgstr "<literal>all</literal>: verifica todas as colunas"
#. Tag: para
-#: basic_mapping.xml:451
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
"concurrent updates"
msgstr ""
-"<literal>dirty</literal> verifica as colunas modificadas, permitindo alguns "
-"updates concorrentes"
+"<literal>dirty</literal>: verifica as colunas modificadas, permitindo "
+"algumas atualizações concorrentes"
#. Tag: para
-#: basic_mapping.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
-msgstr "<literal>none</literal> não utiliza o bloqueio otimista"
+msgstr "<literal>none</literal>: não utiliza o bloqueio otimista"
#. Tag: para
-#: basic_mapping.xml:461
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
"timestamp columns for optimistic locking with Hibernate. This strategy "
"optimizes performance and correctly handles modifications made to detached "
"instances (i.e. when <literal>Session.merge()</literal> is used)."
msgstr ""
-"Nós <emphasis>recomendamos</emphasis> com muita enfase que você utilize a "
-"versão e a hora das colunas para o bloqueio otimista com o Hibernate. Esta é "
-"a melhor estratégia com respeito a performance e é a única estratégia que "
-"trata corretamente as modificações efetuadas em instancias desconectadas "
-"(por exemplo, quando <literal>Session.merge()</literal> é utilizado)."
+"Nós <emphasis>realmente</emphasis> recomendamos que você utilize as colunas "
+"de versão/timestamp para o bloqueio otimista com o Hibernate. Esta é a "
+"melhor estratégia em relação ao desempenho e é a única estratégia que trata "
+"corretamente as modificações efetuadas em instâncias desconectadas (por "
+"exemplo, quando <literal>Session.merge()</literal> é utilizado)."
#. Tag: para
-#: basic_mapping.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
"mapping. This is transparent at the database level, although some DBMS do "
@@ -924,54 +822,34 @@
"schema). In this case, you can map an immutable and read-only entity to a "
"given SQL subselect expression:"
msgstr ""
-"Não ha diferença entre uma view e uma tabela para o mapeamento do Hibernate, "
-"e como esperado isto é transparente no nÃvel do banco de dados (observe que "
-"alguns bancos de dados não suportam views apropriadamente, especialmente com "
-"updates). Algumas vezes, você quer utilizar uma view, ma snão pode cria-la "
-"no banco de dados (por exemplo, com um esquema legado). Neste caso, você "
-"pode mapear uma entidade imutável e de somente leitura, para uma dada "
-"expressão SQL, que representa um subselect:"
+"Não há diferença entre uma visão e uma tabela para o mapeamento do "
+"Hibernate, e como esperado isto é transparente no nÃvel do banco de dados, "
+"mesmo que alguns bancos de dados não suportam visões apropriadamente, "
+"especialmente com atualizações. Algumas vezes, você quer utilizar uma visão, "
+"mas não pode criá-la no banco de dados (por exemplo, com um esquema legado). "
+"Neste caso, você pode mapear uma entidade imutável e de somente leitura, "
+"para uma dada expressão de subseleção SQL: "
-#. Tag: programlisting
-#: basic_mapping.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:478
-#, fuzzy, no-c-format
-msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
"happens correctly and that queries against the derived entity do not return "
"stale data. The <literal><subselect></literal> is available both as an "
"attribute and a nested mapping element."
msgstr ""
-"Declare as tabelas para sincronizar com esta entidade, garantindo que o auto-"
-"flush ocorra corretamente, e que as queries para esta entidade derivada não "
-"retornem dados desatualizados. O <literal><subselect></literal> está "
-"disponÃvel tanto como um atributo como um elemento mapeado nested."
+"Declare as tabelas para sincronizar com esta entidade, garantindo que a auto-"
+"liberação ocorra corretamente, e que as consultas para esta entidade "
+"derivada não retornem dados desatualizados. O <literal><subselect></"
+"literal> está disponÃvel tanto como um atributo como um elemento mapeado "
+"aninhado."
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
-msgstr ""
+msgid "id"
+msgstr "id"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -980,152 +858,94 @@
"literal> element defines the mapping from that property to the primary key "
"column."
msgstr ""
-"Classes mapeadas <emphasis>precisam</emphasis> declarar a coluna de chave "
-"primaria da tabela do banco de dados. Muitas classes irão tambem ter uma "
-"propriedade ao estilo Java-Beans declarando o identificador unico de uma "
-"instancia. O elemento <literal><id></literal> define o mapeamento "
+"Classes mapeadas <emphasis>devem</emphasis> declarar a coluna de chave "
+"primária da tabela do banco de dados. Muitas classes irão também ter uma "
+"propriedade ao estilo Java-Beans declarando o identificador único de uma "
+"instância. O elemento <literal><id></literal> define o mapeamento "
"desta propriedade para a chave primária."
-#. Tag: programlisting
-#: basic_mapping.xml:505
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
+"<literal>name</literal> (optional): the name of the identifier property."
msgstr ""
+"<literal>name</literal> (opcional): O nome da propriedade do identificador."
#. Tag: para
-#: basic_mapping.xml:508
-#, fuzzy, no-c-format
-msgid ""
-"<literal>name</literal> (optional): the name of the identifier property."
-msgstr "<literal>name</literal> (opcional): O nome do identificador."
-
-#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
msgstr ""
-"<literal>type</literal> (opcional): um nome que indica o tipo Hibernate."
+"<literal>type</literal> (opcional): um nome que indica o tipo de Hibernate."
#. Tag: para
-#: basic_mapping.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the primary key column."
msgstr ""
-"<literal>column</literal> (opcional â default para o a propridade name): O "
-"nome coluna chave primaria."
+"<literal>column</literal> (opcional â padrão para o nome da propridade): O "
+"nome coluna chave primária."
#. Tag: para
-#: basic_mapping.xml:524
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
"value): an identifier property value that indicates an instance is newly "
"instantiated (unsaved), distinguishing it from detached instances that were "
"saved or loaded in a previous session."
msgstr ""
-"<literal>unsaved-value</literal> (opcional - default para um valor \"sensÃvel"
-"\"): Uma propriedade de identificação que indica que a instancia foi "
-"novamente instanciada (unsaved), diferenciando de instancias desconectadas "
-"que foram salvas ou carregadas em uma sessão anterior."
+"<literal>unsaved-value</literal> (opcional - padrão para um valor \"sensÃvel"
+"\"): O valor da propriedade de identificação que indica que a instância foi "
+"novamente instanciada (unsaved), diferenciando de instâncias desconectadas "
+"que foram salvas ou carregadas em uma sessão anterior. "
#. Tag: para
-#: basic_mapping.xml:532
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing the property "
"value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
+"<literal>access</literal> (opcional - padrão para <literal>property</"
"literal>): A estratégia que o Hiberante deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estartégia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estratégia Hibernate que deve ser usada para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default para <literal>property</"
-"literal>): A estretagia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estrategia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default padrão "
-"<literal>property</literal>): A estratégia que o Hibernate pode usar para "
-"acessar o valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate pode usar para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o hibernate deve usar para acessar o valor da "
-"propriedade."
+"da propriedade."
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
"class has no identifier property."
msgstr ""
-"Se o atributo <literal>name</literal> não for declarado, assume-se que a "
+"Se a função <literal>name</literal> não for declarada, considera-se que a "
"classe não tem a propriedade de identificação."
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
"Hibernate3."
msgstr ""
-"O atributo <literal>unsaved-value</literal> não é mais necessário no "
-"Hibernate 3."
+"A função <literal>unsaved-value</literal> não é mais necessária no Hibernate "
+"3."
#. Tag: para
-#: basic_mapping.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
"that allows access to legacy data with composite keys. Its use is strongly "
"discouraged for anything else."
msgstr ""
-"Há declaração alternativa <literal><composite-id></literal> permite o "
-"acesso a dados legados com chaves compostas. Nós desencorajamos fortemente o "
-"seu uso por qualquer pessoa."
+"Há uma declaração alternativa <literal><composite-id></literal> que "
+"permite o acesso à dados legados com chaves compostas. Nós realmente "
+"desencorajamos o uso deste para qualquer outra função."
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
-msgstr "Generator"
+msgstr "Gerador"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1135,48 +955,33 @@
"literal> element."
msgstr ""
"O elemento filho opcional <literal><generator></literal> nomeia uma "
-"classe Java usada para gerar identificadores unicos para instancias de uma "
+"classe Java usada para gerar identificadores únicos para instâncias de uma "
"classe persistente. Se algum parâmetro é requerido para configurar ou "
-"inicializar a instancia geradora, eles são passados utilizando o elemento "
+"inicializar a instância geradora, eles são passados utilizando o elemento "
"<literal><param></literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:564
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:566
-#, fuzzy, no-c-format
-msgid ""
"All generators implement the interface <literal>org.hibernate.id."
"IdentifierGenerator</literal>. This is a very simple interface. Some "
"applications can choose to provide their own specialized implementations, "
"however, Hibernate provides a range of built-in implementations. The "
"shortcut names for the built-in generators are as follows:"
msgstr ""
-"Todos os generators implementam a interface <literal>org.hibernate.id."
-"IdentifierGenerator</literal>. Esta é uma interface bem simples; algumas "
-"aplicações podem prover sua própria implementação esepecializada. "
-"Entretanto, o Hibernate disponibiliza um conjunto de implementações "
-"internamente. Há nomes de atalhos para estes generators próprios: "
-"<placeholder-1/>"
+"Todos os geradores implementam a interface <literal>org.hibernate.id."
+"IdentifierGenerator</literal>. Esta é uma interface bem simples. Algumas "
+"aplicações podem prover suas próprias implementações especializadas, "
+"entretanto, o Hibernate disponibiliza um conjunto de implementações "
+"internamente. Há nomes de atalhos para estes geradores internos, conforme "
+"segue abaixo: "
-#. Tag: literal
-#: basic_mapping.xml:574
+#. Tag: term
#, no-c-format
-msgid "increment"
-msgstr "increment"
+msgid "<literal>increment</literal>"
+msgstr "<literal>increment</literal>"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1185,54 +990,48 @@
"cluster.</emphasis>"
msgstr ""
"gera identificadores dos tipos <literal>long</literal>, <literal>short</"
-"literal> ou <literal>int</literal> que são unicos apenas quando nenhum outro "
+"literal> ou <literal>int</literal> que são únicos apenas quando nenhum outro "
"processo está inserindo dados na mesma tabela. <emphasis>Não utilize em "
"ambientes de cluster.</emphasis>"
-#. Tag: literal
-#: basic_mapping.xml:585
+#. Tag: term
#, no-c-format
-msgid "identity"
-msgstr "identity"
+msgid "<literal>identity</literal>"
+msgstr "<literal>identity</literal>"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
"HypersonicSQL. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>."
msgstr ""
-"suporta colunas de identidade em DB2, MySQL, MS SQL Server, Sybase e "
+"suporta colunas de identidade em DB2, MySQL, Servidor MS SQL, Sybase e "
"HypersonicSQL. O identificador retornado é do tipo <literal>long</literal>, "
"<literal>short</literal> ou <literal>int</literal>."
-#. Tag: literal
-#: basic_mapping.xml:595
+#. Tag: term
#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+msgid "<literal>sequence</literal>"
+msgstr "<literal>sequence</literal>"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
"Interbase. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>"
msgstr ""
-"utiliza uma sequence em DB2, PostgreSQL, Oracle, SAP DB, McKoi ou um "
-"generator no Interbase. O identificador de retorno é do tipo <literal> long</"
+"utiliza uma seqüência em DB2, PostgreSQL, Oracle, SAP DB, McKoi ou um "
+"gerador no Interbase. O identificador de retorno é do tipo <literal> long</"
"literal>, <literal>short</literal> ou <literal>int</literal>."
-#. Tag: literal
-#: basic_mapping.xml:605
+#. Tag: term
#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+msgid "<literal>hilo</literal>"
+msgstr "<literal>hilo</literal>"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1244,140 +1043,124 @@
msgstr ""
"utiliza um algoritmo hi/lo para gerar de forma eficiente identificadores do "
"tipo <literal>long</literal>, <literal>short</literal> ou <literal>int</"
-"literal>, a partir de uma tabela e coluna fornecida (por default "
+"literal>, a partir de uma tabela e coluna fornecida (por padrão "
"<literal>hibernate_unique_key</literal> e <literal>next_hi</literal>) como "
"fonte para os valores hi. O algoritmo hi/lo gera identificadores que são "
-"únicos apenas para um banco de dados particular."
+"únicos apenas para um banco de dados especÃfico."
-#. Tag: literal
-#: basic_mapping.xml:617
+#. Tag: term
#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>seqhilo</literal>"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long</literal>, <literal>short</literal> or <literal>int</literal>, "
"given a named database sequence."
msgstr ""
-"utiliza um algoritmo hi/lo para gerar de forma eficinete identificadores do "
+"utiliza um algoritmo hi/lo para gerar de forma eficiente identificadores do "
"tipo <literal>long</literal>, <literal>short</literal> ou <literal>int</"
-"literal>, a partir de uma sequence de banco de dados fornecida."
+"literal>, a partir de uma seqüência de banco de dados fornecida."
-#. Tag: literal
-#: basic_mapping.xml:627
+#. Tag: term
#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+msgid "<literal>uuid</literal>"
+msgstr "<literal>uuid</literal>"
#. Tag: para
-#: basic_mapping.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
"are unique within a network (the IP address is used). The UUID is encoded as "
"a string of 32 hexadecimal digits in length."
msgstr ""
-"utiliza um algortimo UUID de 128-bits para gerar identificadores do tipo "
-"string, unicos em uma rede(o endereço IP é utilizado). O UUID é codificado "
-"como um string de digitos hexadecimais de tamanho 32."
+"utiliza um algorÃtimo UUID de 128-bits para gerar identificadores do tipo "
+"string, únicos em uma rede (o endereço IP é utilizado). O UUID é codificado "
+"como um string de dÃgitos hexadecimais de tamanho 32."
-#. Tag: literal
-#: basic_mapping.xml:637
+#. Tag: term
#, no-c-format
-msgid "guid"
-msgstr "guid"
+msgid "<literal>guid</literal>"
+msgstr "<literal>guid</literal>"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
msgstr ""
-"utiliza um string GUID gerado pelo banco de dados no MS SQL Server e MySQL."
+"utiliza um string GUID gerado pelo banco de dados no Servidor MS SQL e MySQL."
-#. Tag: literal
-#: basic_mapping.xml:645
+#. Tag: term
#, no-c-format
-msgid "native"
-msgstr "native"
+msgid "<literal>native</literal>"
+msgstr "<literal>native</literal>"
#. Tag: para
-#: basic_mapping.xml:647
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
"<literal>hilo</literal> depending upon the capabilities of the underlying "
"database."
msgstr ""
-"seleciona entre <literal>identity</literal>, <literal>sequence</literal> ou "
+"seleciona entre <literal>identity</literal>, <literal>sequence</literal>ou "
"<literal>hilo</literal> dependendo das capacidades do banco de dados "
"utilizado."
-#. Tag: literal
-#: basic_mapping.xml:655
+#. Tag: term
#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+msgid "<literal>assigned</literal>"
+msgstr "<literal>assigned</literal>"
#. Tag: para
-#: basic_mapping.xml:657
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
"()</literal> is called. This is the default strategy if no <literal><"
"generator></literal> element is specified."
msgstr ""
"deixa a aplicação definir um identificador para o objeto antes que o "
-"<literal>save()</literal> seja chamado. Esta é a estratégia default se "
-"nenhum elemento <literal><generator></literal> é especificado."
+"<literal>save()</literal> seja chamado. Esta é a estratégia padrão caso "
+"nenhum elemento <literal><generator></literal> seja especificado. "
-#. Tag: literal
-#: basic_mapping.xml:665
+#. Tag: term
#, no-c-format
-msgid "select"
-msgstr "select"
+msgid "<literal>select</literal>"
+msgstr "<literal>select</literal>"
#. Tag: para
-#: basic_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
"row by some unique key and retrieving the primary key value."
msgstr ""
-"retorna a chave primaria recuperada por uma trigger do banco de dados, "
-"selecionado uma linha pela chave única e recuperando o valor da chave "
+"retorna a chave primária recuperada por um trigger do banco de dados, "
+"selecionando uma linha pela chave única e recuperando o valor da chave "
"primária."
-#. Tag: literal
-#: basic_mapping.xml:674
+#. Tag: term
#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+msgid "<literal>foreign</literal>"
+msgstr "<literal>foreign</literal>"
#. Tag: para
-#: basic_mapping.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one></literal> primary key "
"association."
msgstr ""
"utiliza o identificador de um outro objeto associado. Normalmente utilizado "
-"em conjunto com uma associaçõa de chave primária do tipo <literal><one-to-"
+"em conjunto com uma associação de chave primária do tipo <literal><one-to-"
"one></literal>."
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
-msgstr "sequence-identity"
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
"for the actual value generation, but combines this with JDBC3 "
@@ -1386,22 +1169,21 @@
"drivers targeted for JDK 1.4. Comments on these insert statements are "
"disabled due to a bug in the Oracle drivers."
msgstr ""
-"a specialized sequence generation strategy which utilizes a database "
-"sequence for the actual value generation, but combines this with JDBC3 "
-"getGeneratedKeys to actually return the generated identifier value as part "
-"of the insert statement execution. This strategy is only known to be "
-"supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on "
-"these insert statements are disabled due to a bug in the Oracle drivers."
+"uma estratégia de geração de seqüência especializada que use uma seqüência "
+"de banco de dados para a geração de valor atual, mas combina isto com JDBC3 "
+"getGeneratedKeys para de fato retornar o valor do identificador gerado como "
+"parte da execução de instrução de inserção. Esta estratégia é somente "
+"conhecida para suportar drivers da Oracle 10g, focados em JDK 1.4. Note que "
+"os comentários sobre estas instruções de inserção estão desabilitados devido "
+"a um bug nos drivers da Oracle. "
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "Algoritmo Hi/lo"
#. Tag: para
-#: basic_mapping.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
"provide two alternate implementations of the hi/lo algorithm. The first "
@@ -1412,80 +1194,51 @@
"Os geradores <literal>hilo</literal> e <literal>seqhilo</literal> fornecem "
"duas implementações alternativas do algoritmo hi/lo, uma solução "
"preferencial para a geração de identificadores. A primeira implementação "
-"requer uma tabela especial do banco de dados para manter o proximo valor \"hi"
-"\" disponÃvel. A segunda utiliza uma seqüência do estilo Oracle (quando "
+"requer uma tabela \"especial\" do banco de dados para manter o próximo valor "
+"\"hi\" disponÃvel. A segunda utiliza uma seqüência do estilo Oracle (quando "
"suportado)."
-#. Tag: programlisting
-#: basic_mapping.xml:710
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:714
-#, fuzzy, no-c-format
-msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
"own <literal>Connection</literal> to Hibernate. When Hibernate uses an "
"application server datasource to obtain connections enlisted with JTA, you "
"must configure the <literal>hibernate.transaction.manager_lookup_class</"
"literal>."
msgstr ""
-"Infelizemente, voce não pode utilizar <literal>hilo</literal> quando estiver "
-"fornecendo sia propria <literal>Connection</literal> para o Hibernate. "
-"Quando o Hibernate está usando um datasource do servidor de aplicações para "
-"obter conexões suportadas com JTA, você precisa configurar adequadamente o "
-"<literal>hibernate.transaction.manager_lookup_class</literal>."
+"Infelizmente, você não pode utilizar <literal>hilo</literal> quando estiver "
+"fornecendo sua própria <literal>Connection</literal> para o Hibernate. "
+"Quando o Hibernate estiver usando uma fonte de dados do servidor de "
+"aplicações para obter conexões suportadas com JTA, você precisará configurar "
+"adequadamente o <literal>hibernate.transaction.manager_lookup_class</"
+"literal>. "
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
-msgstr "UUID algorithm"
+msgstr "Algoritmo UUID"
#. Tag: para
-#: basic_mapping.xml:724
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
"quarter second, system time and a counter value that is unique within the "
"JVM. It is not possible to obtain a MAC address or memory address from Java "
"code, so this is the best option without using JNI."
msgstr ""
-"O UUID contem: o endereço IP, hora de inicio da JVM (com precisão de um "
-"quarto de segundo), a hora do sistema e um valor contador (unico dentro da "
-"JVM). Não é possivel obter o endereço MAC ou um endereço de memória do "
-"código Java, assim este é o melhor que pode ser feito sem utilizar JNI."
+"O UUID contém: o endereço IP, hora de inÃcio da JVM que é com precisão de um "
+"quarto de segundo, a hora do sistema e um valor contador que é único dentro "
+"da JVM. Não é possÃvel obter o endereço MAC ou um endereço de memória do "
+"código Java, portanto este é o melhor que pode ser feito sem utilizar JNI."
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
-msgstr "Colunas de identidade e sequencias"
+msgstr "Colunas de identidade e seqüências"
#. Tag: para
-#: basic_mapping.xml:734
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity</literal> key generation. For databases that "
@@ -1496,54 +1249,30 @@
"Para bancos de dados que suportam colunas de identidade (DB2, MySQL, Sybase, "
"MS SQL), você pode utilizar uma geração de chave <literal>identity</"
"literal>. Para bancos de dados que suportam sequencias (DB2, Oracle, "
-"PostgreSQL, Interbase, McKoi, SAP DB) voce pode utilizar a geração de chaves "
+"PostgreSQL, Interbase, McKoi, SAP DB) você pode utilizar a geração de chaves "
"no estilo <literal>sequence</literal>. As duas estratégias requerem duas "
-"consultas SQL para inserir um novo objeto."
+"consultas SQL para inserir um novo objeto. "
-#. Tag: programlisting
-#: basic_mapping.xml:742
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:746
-#, fuzzy, no-c-format
-msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</"
"literal> strategies."
msgstr ""
"Para desenvolvimento multi-plataforma, a estratégia <literal>native</"
-"literal> irá escolher entre as estratégias i <literal>identity</literal>, "
+"literal> irá escolher entre as estratégias <literal>identity</literal>, "
"<literal>sequence</literal> e <literal>hilo</literal>, dependendo das "
"capacidades do banco de dados utilizado."
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
-msgstr "Identificadores especificados"
+msgstr "Identificadores atribuÃdos"
#. Tag: para
-#: basic_mapping.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
"Hibernate generate them, you can use the <literal>assigned</literal> "
@@ -1553,17 +1282,16 @@
"behavior if you do not specify a <literal><generator></literal> "
"element."
msgstr ""
-"Se você quer que a aplicação especifique os identificadores (em vez do "
-"Hibernate gerá-los) você deve utilizar o gerador <literal>assigned</"
+"Se você quiser que a aplicação especifique os identificadores, em vez do "
+"Hibernate gerá-los, você deve utilizar o gerador <literal>assigned</"
"literal>. Este gerador especial irá utilizar o valor do identificador "
"especificado para a propriedade de identificação do objeto. Este gerador é "
-"usado quando a chave primaria é a chave natural em vez de uma surrogate key. "
-"Este é o comportamento padrão se você não especificar um elemento "
-"<literal><generator></literal>."
+"usado quando a chave primária é a chave natural em vez de uma chave "
+"substituta. Este é o comportamento padrão se você não especificar um "
+"elemento <literal><generator></literal>. "
#. Tag: para
-#: basic_mapping.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go "
@@ -1571,40 +1299,26 @@
"there is a version or timestamp property, or you define <literal>Interceptor."
"isUnsaved()</literal>."
msgstr ""
-"Escolher o gerador <literal>assigned</literal> faz com que o Hibernate "
-"utilize <literal>unsaved-value=\"undefined\"</literal>, forçando o Hibernate "
-"ir até o banco de dados para determinar se uma instância está transiente ou "
-"desasociada, a menos que haja uma versão ou uma propriedade timestamp, ou "
-"você pode definir <literal>Interceptor.isUnsaved()</literal>."
+"A escolha do gerador <literal>assigned</literal> faz com que o Hibernate "
+"utilize <literal>unsaved-value=\"undefined\"</literal>. Isto força o "
+"Hibernate ir até o banco de dados para determinar se uma instância está "
+"transiente ou desacoplada, a não ser que haja uma versão ou uma propriedade "
+"de timestamp, ou que você definia <literal>Interceptor.isUnsaved()</literal>."
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr "Chaves primárias geradas por triggers"
#. Tag: para
-#: basic_mapping.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
-msgstr "Apenas para sistemas legados (o Hibernate nao gera DDL com triggers)."
+msgstr "O Hibernate não gera DDL com triggers, apenas para sistemas legados."
-#. Tag: programlisting
-#: basic_mapping.xml:779
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:781
-#, fuzzy, no-c-format
-msgid ""
"In the above example, there is a unique valued property named "
"<literal>socialSecurityNumber</literal>. It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id</literal>, whose "
@@ -1612,18 +1326,16 @@
msgstr ""
"No exemplo acima, há uma única propriedade com valor nomeada "
"<literal>socialSecurityNumber</literal> definida pela classe, uma chave "
-"natural, e uma surrogate key nomeada <literal>person_id</literal> cujo valor "
-"é gerado pro uma trigger."
+"natural, e uma chave substituta nomeada <literal>person_id</literal> cujo "
+"valor é gerado por um trigger."
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
-msgstr "Enhanced identifier generators"
+msgstr "Aprimoração dos geradores de identificador"
#. Tag: para
-#: basic_mapping.xml:795
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
"thinking of 2 different aspects of identifier generation. The first aspect "
@@ -1633,17 +1345,17 @@
"the named generators described above, starting in 3.3.x. However, they are "
"included in the current releases and can be referenced by FQN."
msgstr ""
-"Starting with release 3.2.3, there are 2 new generators which represent a re-"
-"thinking of 2 different aspects of identifier generation. The first aspect "
-"is database portability; the second is optimization (not having to query the "
-"database for every request for a new identifier value). These two new "
-"generators are intended to take the place of some of the named generators "
-"described above (starting in 3.3.x); however, they are included in the "
-"current releases and can be referenced by FQN."
+"Iniciando com a liberação 3.2.3, existem dois novos geradores que "
+"representam uma reavaliação de dois diferentes aspectos da geração "
+"identificadora. O primeiro aspecto é a portabilidade do banco de dados, o "
+"segundo é a otimização. A otimização significa que você não precisa "
+"questionar o banco de dados a cada solicitação para um novo valor de "
+"identificador. Estes dois geradores possuem por intenção substituir alguns "
+"dos geradores nomeados acima, começando em 3.3.x. No entanto, eles estão "
+"incluÃdos nas liberações atuais e podem ser referenciados pelo FQN."
#. Tag: para
-#: basic_mapping.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
"SequenceStyleGenerator</literal> which is intended, firstly, as a "
@@ -1662,100 +1374,95 @@
"with its table-based generators. This generator has a number of "
"configuration parameters:"
msgstr ""
-"The first of these new generators is <literal>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</literal> which is intended firstly as a replacement "
-"for the <literal>sequence</literal> generator and secondly as a better "
-"portability generator than <literal>native</literal> (because "
-"<literal>native</literal> (generally) chooses between <literal>identity</"
-"literal> and <literal>sequence</literal> which have largely different "
-"semantics which can cause subtle isssues in applications eyeing "
-"portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
-"literal> however achieves portability in a different manner. It chooses "
-"between using a table or a sequence in the database to store its "
-"incrementing values depending on the capabilities of the dialect being used. "
-"The difference between this and <literal>native</literal> is that table-"
-"based and sequence-based storage have the same exact semantic (in fact "
-"sequences are exactly what Hibernate tries to emmulate with its table-based "
-"generators). This generator has a number of configuration parameters: "
-"<placeholder-1/>"
+"A primeira destas novas gerações é a <literal>org.hibernate.id.enhanced."
+"SequenceStyleGenerator</literal> que primeiramente é uma substituição para o "
+"gerador <literal>sequence</literal> e, segundo, um melhor gerador de "
+"portabilidade que o <literal>native</literal>. Isto é devido ao "
+"<literal>native</literal> normalmente escolher entre <literal>identity</"
+"literal> e <literal>sequence</literal>, que são semânticas extremamente "
+"diferentes das quais podem causar problemas súbitos em portabilidade de "
+"observação de aplicativos. No entanto, o <literal>org.hibernate.id.enhanced."
+"SequenceStyleGenerator</literal> atinge a portabilidade numa maneira "
+"diferente. Ele escolhe entre uma tabela ou uma seqüência no banco de dados "
+"para armazenar seus valores de incrementação, dependendo nas capacidades do "
+"dialeto sendo usado. A diferença entre isto e o <literal>native</literal> é "
+"que o armazenamento baseado na tabela e seqüência possuem exatamente a mesma "
+"semântica. Na realidade, as seqüências são exatamente o que o Hibernate "
+"tenta imitar com os próprios geradores baseados na tabela. Este gerador "
+"possui um número de parâmetros de configuração: "
#. Tag: para
-#: basic_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
"<literal>hibernate_sequence</literal>): the name of the sequence or table to "
"be used."
msgstr ""
-"<literal>sequence_name</literal> (optional, defaults to "
-"<literal>hibernate_sequence</literal>): The name of the sequence (or table) "
-"to be used."
+"<literal>sequence_name</literal> (opcional - valor padrão "
+"<literal>hibernate_sequence</literal>) o nome da seqüência ou tabela a ser "
+"usada."
#. Tag: para
-#: basic_mapping.xml:823
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
"literal>): the initial value to be retrieved from the sequence/table. In "
"sequence creation terms, this is analogous to the clause typically named "
"\"STARTS WITH\"."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the sequence/table. In "
-"sequence creation terms, this is analogous to the clause typical named "
-"\"STARTS WITH\"."
+"<literal>initial_value</literal> (opcional - padrão para <literal>1</"
+"literal>) O valor inicial a ser restaurado a partir da seqüência/tabela. Em "
+"termos da criação de seqüência, isto é análogo à cláusula tipicamente "
+"nomeada \"STARTS WITH\"."
#. Tag: para
-#: basic_mapping.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): the value by which subsequent calls to the sequence/table should "
"differ. In sequence creation terms, this is analogous to the clause "
"typically named \"INCREMENT BY\"."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the sequence/table should "
-"differ. In sequence creation terms, this is analogous to the clause typical "
-"named \"INCREMENT BY\"."
+"<literal>increment_size</literal> (opcional - padrão para <literal>1</"
+"literal>): o valor pelo qual as chamadas para a seqüência/tabela devem "
+"diferenciar-se. Nos termos da criação da seqüência, isto é análogo à "
+"cláusula tipicamente nomeada \"INCREMENT BY\"."
#. Tag: para
-#: basic_mapping.xml:837
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
"literal>): should we force the use of a table as the backing structure even "
"though the dialect might support sequence?"
msgstr ""
-"<literal>force_table_use</literal> (optional, defaults to <literal>false</"
-"literal>): Should we force the use of a table as the backing structure even "
-"though the dialect might support sequence?"
+"<literal>force_table_use</literal> (opcional - padrão para <literal>false</"
+"literal>): devemos forçar o uso de uma tabela como uma estrutura de reforço, "
+"mesmo que o dialeto possa suportar a seqüência?"
#. Tag: para
-#: basic_mapping.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
"literal>): only relevant for table structures, it is the name of the column "
"on the table which is used to hold the value."
msgstr ""
-"<literal>value_column</literal> (optional, defaults to <literal>next_val</"
-"literal>): Only relevant for table structures! The name of the column on the "
-"table which is used to hold the value."
+"<literal>value_column</literal> (opcional - padrão para <literal>next_val</"
+"literal>): apenas relevante para estruturas de tabela, este é o nome da "
+"coluna onde na tabela que é usado para manter o valor."
#. Tag: para
-#: basic_mapping.xml:851
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>cascade</literal> (opcional â valor default <literal>none</"
-"literal>): o estilo do cascade."
+"<literal>optimizer</literal> (opcional â padrão para <literal>none</"
+"literal>): Veja <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
+"\" />"
#. Tag: para
-#: basic_mapping.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
"TableGenerator</literal>, which is intended, firstly, as a replacement for "
@@ -1768,148 +1475,137 @@
"multiple distinctly keyed rows. This generator has a number of configuration "
"parameters:"
msgstr ""
-"The second of these new generators is <literal>org.hibernate.id.enhanced."
-"TableGenerator</literal> which is intended firstly as a replacement for the "
-"<literal>table</literal> generator (although it actually functions much more "
-"like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>) and "
-"secondly as a re-implementation of <literal>org.hibernate.id."
-"MultipleHiLoPerTableGenerator</literal> utilizing the notion of pluggable "
-"optimiziers. Essentially this generator defines a table capable of holding a "
-"number of different increment values simultaneously by using multiple "
-"distinctly keyed rows. This generator has a number of configuration "
-"parameters: <placeholder-1/>"
+"O segundo destes novos geradores é o <literal>org.hibernate.id.enhanced."
+"TableGenerator</literal>, que primeiramente é uma substituição para o "
+"gerador <literal>table</literal>, mesmo que isto funcione muito mais como um "
+"<literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>, e "
+"segundo, como uma reimplementação do <literal>org.hibernate.id."
+"MultipleHiLoPerTableGenerator</literal> que utiliza a noção dos otimizadores "
+"pugláveis. Basicamente, este gerador define uma tabela capacitada de manter "
+"um número de valores de incremento simultâneo pelo uso múltiplo de filas de "
+"chaves distintas. Este gerador possui um número de parâmetros de "
+"configuração."
#. Tag: para
-#: basic_mapping.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
"<literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
-"<literal>table_name</literal> (optional, defaults to "
-"<literal>hibernate_sequences</literal>): The name of the table to be used."
+"<literal>table_name</literal> (opcional - padrão para "
+"<literal>hibernate_sequences</literal>): O nome da tabela a ser usado."
#. Tag: para
-#: basic_mapping.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
"<literal>next_val</literal>): the name of the column on the table that is "
"used to hold the value."
msgstr ""
-"<literal>value_column_name</literal> (optional, defaults to "
-"<literal>next_val</literal>): The name of the column on the table which is "
-"used to hold the value."
+"<literal>value_column_name</literal> (opcional - padrão para "
+"<literal>next_val</literal>): o nome da coluna na tabela que é usado para "
+"manter o valor."
#. Tag: para
-#: basic_mapping.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
"<literal>sequence_name</literal>): the name of the column on the table that "
"is used to hold the \"segment key\". This is the value which identifies "
"which increment value to use."
msgstr ""
-"<literal>segment_column_name</literal> (optional, defaults to "
-"<literal>sequence_name</literal>): The name of the column on the table which "
-"is used to hold the \"segement key\". This is the value which distinctly "
-"identifies which increment value to use."
+"<literal>segment_column_name</literal> (opcional - padrão para "
+"<literal>sequence_name</literal>) O nome da coluna da tabela que é usado "
+"para manter a \"chave de segmento\". Este é o valor que identifica qual "
+"valor de incremento a ser usado."
#. Tag: para
-#: basic_mapping.xml:887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
"literal>): The \"segment key\" value for the segment from which we want to "
"pull increment values for this generator."
msgstr ""
-"<literal>segment_value</literal> (optional, defaults to <literal>default</"
-"literal>): The \"segment key\" value for the segment from which we want to "
-"pull increment values for this generator."
+"<literal>base</literal> (opcional - padrão para <literal>default</literal>) "
+"O valor da \"chave de segmento\" para o segmento pelo qual nós queremos "
+"obter os valores de incremento para este gerador."
#. Tag: para
-#: basic_mapping.xml:894
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
"<literal>255</literal>): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
-"<literal>segment_value_length</literal> (optional, defaults to <literal>255</"
-"literal>): Used for schema generation; the column size to create this "
-"segment key column."
+"<literal>segment_value_length</literal> (opcional - padrão para "
+"<literal>255</literal>): Usado para a geração do esquema. O tamanho da "
+"coluna para criar esta coluna de chave de segmento."
#. Tag: para
-#: basic_mapping.xml:900
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
"literal>): The initial value to be retrieved from the table."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the table."
+"<literal>initial_value</literal> (opcional - valor padrão para <literal>1</"
+"literal>): O valor inicial a ser restaurado a partir da tabela."
#. Tag: para
-#: basic_mapping.xml:906
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): The value by which subsequent calls to the table should differ."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the table should differ."
+"<literal>increment_size</literal> (opcional - padrão para <literal>1</"
+"literal>): O valor pelo qual as chamadas subseqüentes para a tabela devem "
+"diferir-se."
#. Tag: para
-#: basic_mapping.xml:912
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>cascade</literal> (opcional â valor default <literal>none</"
-"literal>): o estilo do cascade."
+"<literal>optimizer</literal> (opcional â padrão para <literal></literal>): "
+"Consulte <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
-msgstr "Identifier generator optimization"
+msgstr "Otimização do Gerador de Identificação"
#. Tag: para
-#: basic_mapping.xml:923
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
"inefficient for them to hit the database on each and every call to generate "
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
-"For identifier generators which store values in the database, it is "
-"inefficient for them to hit the database on each and every call to generate "
-"a new identifier value. Instead, you'd ideally want to group a bunch of them "
-"in memory and only hit the database when you have exhausted your in-memory "
-"value group. This is the role of the pluggable optimizers. Currently only "
-"the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced"
-"\"/> support this notion. <placeholder-1/>"
+"Para os geradores de identificação que armazenam valores no banco de dados, "
+"é ineficiente para os mesmos atingirem o banco de dados em cada e toda "
+"chamada para gerar um valor de identificação novo. Ao invés disto, você pode "
+"agrupá-los na memória e apenas alcançar o banco de dados quando exceder o "
+"grupo de valor em memória. Esta é a função dos otimizadores pugláveis. "
+"Atualmente, apenas dois geradores aprimorados suportam esta operação. (<xref "
+"linkend=\"mapping-declaration-id-enhanced\"/>)"
#. Tag: para
-#: basic_mapping.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
"specified): this will not perform any optimizations and hit the database for "
"each and every request."
msgstr ""
-"<literal>none</literal> (generally this is the default if no optimizer was "
-"specified): This says to not perform any optimizations, and hit the database "
-"each and every request."
+"<literal>none</literal> (geralmente este é o padrão, caso nenhum otimizador "
+"for especificado): isto não executará quaisquer otimizações e alcançará o "
+"banco de dados para cada e toda solicitação."
#. Tag: para
-#: basic_mapping.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
"retrieved values. The values from the database for this optimizer are "
@@ -1918,16 +1614,15 @@
"<literal>increment_size</literal> is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
-"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
-"retrieved values. The values from the database for this optimizer are "
-"expected to be sequential. The values retrieved from the database structure "
-"for this optimizer indicates the \"group number\"; the "
-"<literal>increment_size</literal> is multiplied by that value in memory to "
-"define a group \"hi value\"."
+"<literal>hilo</literal>: aplica-se ao algoritmo em volta dos valores "
+"restaurados do banco de dados. Espera-se que os valores a partir do banco de "
+"dados para este otimizador sejam seqüenciais. Os valores restaurados a "
+"partir da estrutura do banco de dados para este otimizador indica um "
+"\"número de grupo\". O <literal>increment_size</literal> é multiplicado pelo "
+"valor em memória para definir um grupo \"hi value\"."
#. Tag: para
-#: basic_mapping.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
"optimizer attempts to minimize the number of hits to the database. Here, "
@@ -1936,79 +1631,47 @@
"memory grouping algorithm. Here, <literal>increment_size</literal> refers to "
"the values coming from the database."
msgstr ""
-"<literal>pooled</literal>: like was discussed for <literal>hilo</literal>, "
-"this optimizers attempts to minimize the number of hits to the database. "
-"Here, however, we simply store the starting value for the \"next group\" "
-"into the database structure rather than a sequential value in combination "
-"with an in-memory grouping algorithm. <literal>increment_size</literal> here "
-"refers to the values coming from the database."
+"<literal>pooled</literal>: assim como o caso do <literal>hilo</literal>, "
+"este otimizador tenta minimizar o número de tentativas no banco de dados. No "
+"entanto, nós simplesmente implementamos o valor de inicialização para o "
+"\"próximo grupo\" na estrutura do banco de dados ao invés do valor "
+"seqüencial na combinação com um algoritmo de agrupamento em memória. Neste "
+"caso, o <literal>increment_size</literal> refere-se aos valores de entrada a "
+"partir do banco de dados."
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
-msgstr "composite-id"
+msgstr "Composição-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:963
-#, fuzzy, no-c-format
-msgid ""
"A table with a composite key can be mapped with multiple properties of the "
"class as identifier properties. The <literal><composite-id></literal> "
"element accepts <literal><key-property></literal> property mappings "
"and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-"Para tabelas com uma chave composta, você pode mapear múltiplas propriedades "
-"da classe como propriedades de identificação. O elemento <literal><"
-"composite-id></literal> aceita o mapeamento da propriedade <literal><"
-"key-property></literal> e mapeamentos <literal><key-many-to-one></"
-"literal>como elements filhos."
+"Uma tabela com uma chave composta, pode ser mapeada com múltiplas "
+"propriedades da classe como propriedades de identificação. O elemento "
+"<literal><composite-id></literal> aceita o mapeamento da propriedade "
+"<literal><key-property></literal> e mapeamentos <literal><key-many-"
+"to-one></literal>como elementos filhos."
-#. Tag: programlisting
-#: basic_mapping.xml:970
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:972
-#, fuzzy, no-c-format
-msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
"literal> and <literal>hashCode()</literal> to implement composite identifier "
"equality. It must also implement <literal>Serializable</literal>."
msgstr ""
-"Sua classe persistente <emphasis>precisa</emphasis> sobre escrever "
-"<literal>equals()</literal> e <literal>hashCode()</literal> para implementar "
+"A classe persistente <emphasis>precisa</emphasis> substituir <literal>equals"
+"()</literal> e <literal>hashCode()</literal> para implementar "
"identificadores compostos igualmente. E precisa também implementar "
"<literal>Serializable</literal>."
#. Tag: para
-#: basic_mapping.xml:978
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
"identifier. There is no convenient \"handle\" other than the object itself. "
@@ -2019,16 +1682,15 @@
"serious applications."
msgstr ""
"Infelizmente, esta solução para um identificador composto significa que um "
-"objeto persistente é seu próprio identificador. Não há outro \"handle\" que "
-"o próprio objeto. Você mesmo precisa instanciar uma instância de outra "
-"classe persistente e preencher suas propriedades de identificação antes que "
-"você possa dar um <literal>load()</literal> para o estado persistente "
-"associado com uma chave composta. Nos chamamos esta solução de identificador "
-"composto <emphasis>embedded</emphasis> e não aconselhamos para aplicações "
-"sérias."
+"objeto persistente é seu próprio identificador. Não há outro \"handle\" "
+"conveniente a não ser o próprio objeto. Você mesmo precisa instanciar uma "
+"instância de outra classe persistente e preencher suas propriedades de "
+"identificação antes que você possa dar um <literal>load()</literal> para o "
+"estado persistente associado com uma chave composta. Nós chamamos esta "
+"solução de identificador composto <emphasis>incorporado</emphasis> e não "
+"aconselhamos para aplicações sérias."
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -2036,25 +1698,14 @@
"composite-id></literal> element are duplicated on both the persistent "
"class and a separate identifier class."
msgstr ""
-"Uma segunda solução é o que podemos chamar de identificador composto "
-"<emphasis>mapped</emphasis> quando a propriedades de identificação nomeadas "
-"dentro do elemento <literal><composite-id></literal> estão duplicadas "
-"tando na classe persistente como em uma classe de identificação separada."
+"Uma segunda solução seria chamar de identificador composto <emphasis>mapped</"
+"emphasis> quando a propriedades de identificação nomeadas dentro do elemento "
+"<literal><composite-id></literal> estão duplicadas tanto na classe "
+"persistente como em uma classe de identificação separada."
-#. Tag: programlisting
-#: basic_mapping.xml:993
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:995
-#, fuzzy, no-c-format
-msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
"literal>, and the entity class itself have properties named "
"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
@@ -2062,149 +1713,106 @@
"<literal>hashCode()</literal> and implement <literal>Serializable</literal>. "
"The main disadvantage of this approach is code duplication."
msgstr ""
-"No exemplo, ambas as classes de identificação compostas, "
-"<literal>MedicareId</literal>, e a própria classe entidade tem propriedades "
-"nomeadas <literal>medicareNumber</literal> e <literal>dependent</literal>. A "
-"classe identificadora precisa sobrepor <literal>equals()</literal> e "
-"<literal>hashCode()</literal> e implementar <literal>Serializable</literal>. "
-"A desvantagem desta solução é obvia â duplicação de código."
+"No exemplo, ambas as classes de identificadores compostas, "
+"<literal>MedicareId</literal>, e a própria classe entidade possuem "
+"propriedades nomeadas <literal>medicareNumber</literal> e "
+"<literal>dependent</literal>. A classe identificadora precisa sobrepor "
+"<literal>equals()</literal> e <literal>hashCode()</literal> e implementar "
+"<literal>Serializable</literal>. A desvantagem desta solução é óbvia: "
+"duplicação de código."
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
msgstr ""
-"Os seguintes atributos ão utilizados para especificar o mapeamento de um "
+"As seguintes funções são utilizadas para especificar o mapeamento de um "
"identificador composto:"
#. Tag: para
-#: basic_mapping.xml:1010
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
"indicates that a mapped composite identifier is used, and that the contained "
"property mappings refer to both the entity class and the composite "
"identifier class."
msgstr ""
-"<literal>mapped</literal> mapped (opcional, valor default <literal>false </"
-"literal>): indica que um identificar composto mapeado é usado, e que as "
-"propriedades de mapeamento contidas refere-se tanto a classe entidade e a "
-"classe de identificação composta."
+"<literal>mapped</literal> (opcional, <literal>false</literal> por padrão): "
+"Indica que um identificar composto mapeado é usado, e que as propriedades de "
+"mapeamento contidas refere-se tanto à classe entidade quanto à classe de "
+"identificação composta."
#. Tag: para
-#: basic_mapping.xml:1018
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
"identifier): the class used as a composite identifier."
msgstr ""
-"<literal>class</literal> (opcional, mas requerida para um identificar "
-"composto mapeado): A classe usada como um identificador composto."
+"<literal>class</literal> (opcional, mas requerida para um identificador "
+"composto mapeado): A classe usada como um identificador composto. "
#. Tag: para
-#: basic_mapping.xml:1025
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
-"Nós iremos descrever uma terceira e as vezes mais conveniente solução, onde "
-"o identificador composto é implementado como uma classe componente na <xref "
-"linkend=\"components-compositeid\"/>. Os atributos descritos abaixo aplicam-"
-"se apenas para esta solução:"
+"Descreveremos uma abordagem terciária e até mais conveniente, onde o "
+"identificador da composição é implementado como uma classe componente na "
+"<xref linkend=\"components-compositeid\"/>. Os atributos descritos abaixo "
+"aplicam-se apenas para esta abordagem: "
#. Tag: para
-#: basic_mapping.xml:1033
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
"of component type that holds the composite identifier. Please see chapter 9 "
"for more information."
msgstr ""
-"<literal>name</literal> (opcional, requerida para esta solução): Uma "
-"propriedade do tipo componente que armazena o identificador composto (veja "
-"capÃtulo 9)"
+"<literal>name</literal> (opcional, requerida para esta abordagem): Uma "
+"propriedade do tipo componente que armazena o identificador composto. Para "
+"maiores informações, por favor consulte o capÃtulo 9."
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
+"<literal>access</literal> (opcional - padrão para <literal>property</"
"literal>): A estratégia que o Hiberante deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estartégia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estratégia Hibernate que deve ser usada para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default para <literal>property</"
-"literal>): A estretagia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estrategia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default padrão "
-"<literal>property</literal>): A estratégia que o Hibernate pode usar para "
-"acessar o valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate pode usar para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o hibernate deve usar para acessar o valor da "
-"propriedade."
+"da propriedade."
#. Tag: para
-#: basic_mapping.xml:1045
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the component class used as a composite "
"identifier. Please see the next section for more information."
msgstr ""
-"<literal>class</literal> (opcional - valor default para o tipo de "
-"propriedade determiando por reflexão) : A classe componente utilizada como "
-"um identificador composto (veja a próxima sessão)."
+"<literal>class</literal> (opcional - valor padrão para o tipo de propriedade "
+"determinando por reflexão): A classe componente utilizada como um "
+"identificador composto. Por favor consulte a próxima seção para maiores "
+"informações."
#. Tag: para
-#: basic_mapping.xml:1052
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
"recommended for almost all applications."
msgstr ""
-"Esta terceira solução, um <emphasis>componente de identificação</emphasis>, "
-"é o que nós recomendamos para a maioria das aplicações."
+"Esta terceira abordagem, um <emphasis>componente identificador</emphasis>, é "
+"a que nós recomendamos para a maioria das aplicações. "
#. Tag: title
-#: basic_mapping.xml:1060
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Discriminator"
-msgstr "discriminator"
+msgstr "Discriminador "
#. Tag: para
-#: basic_mapping.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
"polymorphic persistence using the table-per-class-hierarchy mapping "
@@ -2217,140 +1825,108 @@
"literal>."
msgstr ""
"O elemento <literal><discriminator></literal> é necessário para "
-"persistência polimórfica utilizando a estratégia de mapeamento table-per-"
-"class-hierarchy e declara uma coluna discriminadora da tabela. A coluna "
-"discriminadora contem valores de marcação que dizem a camada de persistência "
-"qual subclasse instanciar para uma linha particular. Um restrito conjunto de "
-"tipos que podem ser utilizados: <literal>string</literal>, "
-"<literal>character</literal>, <literal>integer</literal>, <literal>byte</"
-"literal>, <literal>short</literal>, <literal>boolean</literal>, "
-"<literal>yes_no</literal>, <literal>true_false</literal>."
+"persistência polimórfica utilizando a estratégia de mapeamento de tabela-por-"
+"classe-hierárquica e declara uma coluna discriminadora da tabela. A coluna "
+"discriminadora contém valores de marcação que informam à camada de "
+"persistência qual subclasse instanciar para uma linha em especÃfico. Um "
+"restrito conjunto de tipos que podem ser utilizados: <literal>string</"
+"literal>, <literal>character</literal>, <literal>integer</literal>, "
+"<literal>byte</literal>, <literal>short</literal>, <literal>boolean</"
+"literal>, <literal>yes_no</literal>, <literal>true_false</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1080
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1083
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
"the name of the discriminator column."
msgstr ""
-"<literal>column</literal> (opcional - valor default <literal>class</"
-"literal>) o nome da coluna discriminadora"
+"<literal>column</literal> (opcional - padrão para <literal>class</literal>): "
+"O nome da coluna discriminadora."
#. Tag: para
-#: basic_mapping.xml:1089
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
"a name that indicates the Hibernate type"
msgstr ""
-"<literal>type</literal> (opcional - valor default <literal>string</literal>) "
-"o nome que indica o tipo Hibernate"
+"<literal>type</literal> (opcional - padrão para <literal>string</literal>): "
+"O nome que indica o tipo Hibernate."
#. Tag: para
-#: basic_mapping.xml:1095
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
"retrieving all instances of the root class."
msgstr ""
-"<literal>force</literal> (opcional - valor default <literal>false</literal>) "
-"\"força\" o Hibernate a especificar valores discriminadores permitidos mesmo "
-"quando recuperando todas as instancias da classe root."
+"<literal>force</literal> (opcional - valor padrão <literal>false</literal>): "
+"\"Força\" o Hibernate a especificar valores discriminadores permitidos mesmo "
+"quando recuperando todas as instâncias da classe raÃz. "
#. Tag: para
-#: basic_mapping.xml:1102
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"set this to <literal>false</literal> if your discriminator column is also "
"part of a mapped composite identifier. It tells Hibernate not to include the "
"column in SQL <literal>INSERTs</literal>."
msgstr ""
-"<literal>insert</literal> (opcional - valor default para <literal>true</"
-"literal>) sete isto para <literal>false</literal> se sua coluna "
-"discriminadora é também parte do identificador composto mapeado. (Diz ao "
+"<literal>insert</literal> (opcional - valor padrão para <literal>true</"
+"literal>) Ajuste para <literal>false</literal> se sua coluna discriminadora "
+"também fizer parte do identificador composto mapeado. (Isto informa ao "
"Hibernate para não incluir a coluna em comandos SQL <literal>INSERT</"
"literal>s)."
#. Tag: para
-#: basic_mapping.xml:1110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
"discrimination."
msgstr ""
-"<literal>formula</literal> (opcional) uma expressão SQL arbitraria que é e "
-"xecutada quando um tipo tem que ser avaliado. Permite discriminação baseada "
-"em conteúdo."
+"<literal>formula</literal> (opcional): Uma expressão SQL arbitrária que é "
+"executada quando um tipo tem que ser avaliado. Permite discriminação baseada "
+"em conteúdo. "
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
"<literal>discriminator-value</literal> attribute of the <literal><"
"class></literal> and <literal><subclass></literal> elements."
msgstr ""
-"Valores atuais de uma coluna discriminada são especificados pelo atributo "
+"Valores atuais de uma coluna discriminada são especificados pela função "
"<literal>discriminator-value</literal> da <literal><class></literal> e "
"elementos da <literal><subclass></literal>."
#. Tag: para
-#: basic_mapping.xml:1124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
"rows with \"extra\" discriminator values that are not mapped to a persistent "
"class. This will not usually be the case."
msgstr ""
-"O atributo <literal>force</literal> é util (apenas) em tabelas contendo "
+"O atributo <literal>force</literal> é útil (apenas) em tabelas contendo "
"linhas com valores discriminadores \"extras\" que não estão mapeados para "
"uma classe persistente. Este não é geralmente o caso."
#. Tag: para
-#: basic_mapping.xml:1130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
"SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
-"Usando o atributo <literal>formula</literal> voce pode declarar uma "
-"expressão SQL arbitrária que sera utilizada para avaliar o tipo de uma "
-"linha :"
+"Usando o atributo <literal>formula</literal> você pode declarar uma "
+"expressão SQL arbitrária que será utilizada para avaliar o tipo de uma "
+"linha. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:1135
-#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1140
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Version (optional)"
-msgstr "version (optional)"
+msgstr "Versão (opcional) "
#. Tag: para
-#: basic_mapping.xml:1142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
"that the table contains versioned data. This is particularly useful if you "
@@ -2359,98 +1935,45 @@
msgstr ""
"O elemento <literal><version></literal> é opcional e indica que a "
"tabela possui dados versionados. Isto é particularmente útil se você planeja "
-"utilizar <emphasis>transações longas</emphasis> (veja abaixo):"
+"utilizar <emphasis>transações longas</emphasis>. Veja abaixo maiores "
+"informações: "
-#. Tag: programlisting
-#: basic_mapping.xml:1158
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1161
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
-"<literal>column</literal> (opcional - default a a propriedade name): O nome "
-"da coluna mantendo o numero da versão"
+"<literal>column</literal> (opcional - tem como padrão o nome da propriedade "
+"name): O nome da coluna mantendo o número da versão."
#. Tag: para
-#: basic_mapping.xml:1167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
-msgstr "<literal>name</literal>: O nome da propriedade da classe persistente."
+msgstr "<literal>name</literal>: O nome da propriedade da classe persistente. "
#. Tag: para
-#: basic_mapping.xml:1172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
"the type of the version number."
msgstr ""
-"<literal>type</literal> (opcional - valor default para <literal>integer</"
-"literal>): O tipo do numero da versão"
+"<literal>type</literal> (opcional - padrão para <literal>integer</literal>): "
+"O tipo do número da versão."
#. Tag: para
-#: basic_mapping.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses to access the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
+"<literal>access</literal> (opcional - padrão para <literal>property</"
"literal>): A estratégia que o Hiberante deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estartégia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estratégia Hibernate que deve ser usada para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default para <literal>property</"
-"literal>): A estretagia Hibernate que deve ser utilizada para acessar o "
-"valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default <literal>property</"
-"literal>): A estrategia que o Hibernate deve utilizar para acessar o valor "
-"da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional - valor default padrão "
-"<literal>property</literal>): A estratégia que o Hibernate pode usar para "
-"acessar o valor da propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o Hibernate pode usar para acessar o valor da "
-"propriedade.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (opcional â valor default <literal>property</"
-"literal>): A estratégia que o hibernate deve usar para acessar o valor da "
-"propriedade."
+"da propriedade."
#. Tag: para
-#: basic_mapping.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2458,15 +1981,14 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (opcional â valor default para "
+"<literal>unsaved-value</literal> (opcional â valor padrão para "
"<literal>undefined </literal>): Um valor para a propriedade versão que "
-"indica que uma instancia é uma nova instanciada (unsaved), distinguindo de "
-"instancias desconectadas que foram salvas ou carregadas em sessões "
-"anteriores. ((<literal>undefined</literal> especifica que o valor da "
-"propriedade de identificação deve ser utilizado)."
+"indica que uma instância foi instanciada recentemente (unsaved), "
+"distinguindo de instâncias desconectadas que foram salvas ou carregadas em "
+"sessões anteriores. (<literal>undefined</literal> especifica que o valor da "
+"propriedade de identificação deve ser utilizado). "
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2474,31 +1996,26 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (optional - defaults to <literal>never</"
-"literal>): Specifies that this version property value is actually generated "
-"by the database. See the discussion of <xref linkend=\"mapping-generated"
-"\">generated properties</xref>. <literal>generated</literal> (opcional - "
-"valor default <literal>never</literal>): Especifica que valor para a "
-"propriedade versão é na verdade gerado pelo banco de dados. Veja a discussão "
-"da Seção <xref linkend=\"mapping-generated\">generated properties</xref>."
+"<literal>generated</literal> (opcional - valor padrão <literal>never</"
+"literal>): Especifica que este valor de propriedade da versão é na verdade "
+"gerado pelo banco de dados. Veja o <xref linkend=\"mapping-generated\"/> "
+"para maiores informações. "
#. Tag: para
-#: basic_mapping.xml:1200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"specifies whether the version column should be included in SQL insert "
"statements. It can be set to <literal>false</literal> if the database column "
"is defined with a default value of <literal>0</literal>."
msgstr ""
-"<literal>insert</literal> (opcional - valor default para <literal>true</"
-"literal>): Especifica se a coluna de versão deve ser incluÃda no comando SQL "
-"de insert. Pode ser configurado como <literal>false</literal> se a coluna do "
-"banco de dados está definida com um valor default de <literal>0</literal>."
+"<literal>insert</literal> (opcional - padrão para <literal>true</literal>): "
+"Especifica se a coluna de versão deve ser incluÃda na instrução de inserção "
+"do SQL. Pode ser configurado como <literal>false</literal> se a coluna do "
+"banco de dados estiver definida com um valor padrão de <literal>0</literal>."
#. Tag: para
-#: basic_mapping.xml:1210
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
@@ -2506,11 +2023,10 @@
msgstr ""
"Números de versão podem ser dos tipos Hibernate <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
-"literal> ou <literal>calendar</literal>."
+"literal> ou <literal>calendar</literal>. "
#. Tag: para
-#: basic_mapping.xml:1215
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
"instance. Hibernate will detect any instance with a null version or "
@@ -2520,24 +2036,22 @@
"reattachment in Hibernate. It is especially useful for people using assigned "
"identifiers or composite keys</emphasis>."
msgstr ""
-"A versão de uma propriedade timestamp nunca deve ser nula para uma instancia "
-"desconectada, assim o Hibernate irá identificar qualquer instância com uma "
-"versão nula ou timestamp como transiente, não importando qual estratégia "
-"para foi especificada para <literal>unsaved-value</literal>. "
-"<emphasis>Declarando uma versão nula ou a propriedade timestamp é um caminho "
-"fácil para tratar problemas com reconexões transitivas no Hibernate, "
-"especialmente úteis para pessoas utilizando identificadores assinaldados ou "
-"chaves compostas!</emphasis>"
+"A versão ou timestamp de uma propriedade nunca deve ser nula para uma "
+"instância desconectada, assim o Hibernate irá identificar qualquer instância "
+"com uma versão nula ou timestamp como transiente, não importando qual outra "
+"estratégia <literal>unsaved-value</literal> tenha sido especificada. "
+"<emphasis>A declaração de uma versão nula ou a propriedade timestamp é um "
+"caminho fácil para tratar problemas com reconexões transitivas no Hibernate, "
+"especialmente úteis para pessoas utilizando identificadores atribuÃdos ou "
+"chaves compostas</emphasis>."
#. Tag: title
-#: basic_mapping.xml:1226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Timestamp (optional)"
-msgstr "timestamp (optional)"
+msgstr "Timestamp (opcional) "
#. Tag: para
-#: basic_mapping.xml:1228
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
"table contains timestamped data. This provides an alternative to versioning. "
@@ -2545,39 +2059,22 @@
"sometimes the application might use the timestamps in other ways."
msgstr ""
"O elemento opcional <literal><timestamp></literal> indica que uma "
-"tabela contém dados timestamped. Isso tem por objetivo dar uma alternativa "
+"tabela contém dados em timestamp. Isso tem por objetivo dar uma alternativa "
"para versionamento. Timestamps são por natureza uma implementação menos "
-"segura do locking otimista. Entretanto, algumas vezes a aplicação pode usar "
-"timestamps em outros caminhos."
+"segura do bloqueio otimista. Entretanto, algumas vezes a aplicação pode usar "
+"timestamps em outros caminhos. "
-#. Tag: programlisting
-#: basic_mapping.xml:1244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1247
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of a column holding the timestamp."
msgstr ""
-"<literal>column</literal> (opcional - valor default para a propriedade "
-"name): O nome da coluna que mantem o timestamp."
+"<literal>column</literal> (opcional - padrão para o nome da propriedade): O "
+"nome da coluna que mantém o timestamp."
#. Tag: para
-#: basic_mapping.xml:1253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
"<literal>Date</literal> or <literal>Timestamp</literal> of the persistent "
@@ -2585,11 +2082,10 @@
msgstr ""
"<literal>name</literal>: O nome da propriedade no estilo JavaBeans do tipo "
"<literal>Date</literal> ou <literal>Timestamp</literal> da classe "
-"persistente Java."
+"persistente."
#. Tag: para
-#: basic_mapping.xml:1266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2597,16 +2093,15 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (opcional - valor default <literal>null</"
-"literal>): Uma propriedade para a versão de que indica que uma instância é "
-"uma nova instanciada (unsaved), distinguindo-a de instancias desconectadas "
-"que foram salvas ou carregadas em sessões previas. (<literal>undefined</"
-"literal> especifica que um valor de propriedade de identificação deve ser "
-"utilizado)"
+"<literal>unsaved-value</literal> (opcional - padrão para <literal>null</"
+"literal>): Um valor de propriedade da versão que indica que uma instância "
+"foi recentemente instanciada (unsaved), distinguindo-a de instâncias "
+"desconectadas que foram salvas ou carregadas em sessões prévias. "
+"<literal>Undefined</literal> especifica que um valor de propriedade de "
+"identificação deve ser utilizado."
#. Tag: para
-#: basic_mapping.xml:1275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
"Where should Hibernate retrieve the timestamp value from? From the database, "
@@ -2617,18 +2112,17 @@
"timestamp. Others may also be unsafe for usage in locking due to lack of "
"precision (Oracle 8, for example)."
msgstr ""
-"<literal>source</literal> (opcional - valor default para <literal>vm</"
-"literal>): De onde o Hibernate deve recuperar o valor timestamp? Do banco de "
-"dados ou da JVM corrente? Timestamps baseados em banco de dados levam a um "
-"overhead porque o Hibernate precisa acessar o banco de dados para determinar "
-"o \"próximo valor\", mas é mais seguro para uso em ambientes de \"cluster\". "
-"Observe também, que nem todos <literal>Dialect</literal>s suportam a "
-"recuperação do timestamp corrente do banco de dados, enquando outros podem "
-"não ser seguros para utilização em bloqueios pela falta de precisão (Oracle "
-"8 por exemplo)"
+"<literal>source</literal> (opcional - padrão para <literal>vm</literal>): De "
+"onde o Hibernate deve recuperar o valor timestamp? Do banco de dados ou da "
+"JVM atual? Timestamps baseados em banco de dados levam a um overhead porque "
+"o Hibernate precisa acessar o banco de dados para determinar o \"próximo "
+"valor\", mas é mais seguro para uso em ambientes de cluster. Observe também, "
+"que nem todos os <literal>Dialects</literal> suportam a recuperação do "
+"carimbo de data e hora atual do banco de dados, enquanto outros podem não "
+"ser seguros para utilização em bloqueios, pela falta de precisão (Oracle 8, "
+"por exemplo)."
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2636,75 +2130,44 @@
"generated by the database. See the discussion of <link linkend=\"mapping-"
"generated\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (opcional - valor default <literal>never</"
+"<literal>generated</literal> (opcional - padrão para <literal>never</"
"literal>): Especifica que o valor da propriedade timestamp é gerado pelo "
-"banco de dados. Veja a discussão <xref linkend=\"mapping-generated"
-"\">generated properties</xref>."
+"banco de dados. Veja a discussão do <xref linkend=\"mapping-generated\"/> "
+"para maiores informações. "
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: basic_mapping.xml:1299
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
"type=\"timestamp\"></literal>. And <literal><timestamp source=\"db"
"\"></literal> is equivalent to <literal><version type=\"dbtimestamp"
"\"></literal>"
msgstr ""
-"Observe que <literal><timestamp></literal> é equivalente a "
+"Observe que o <literal><timestamp></literal> é equivalente a "
"<literal><version type=\"timestamp\"></literal>. E <literal><"
"timestamp source=\"db\"></literal> é equivalente a <literal><version "
"type=\"dbtimestamp\"></literal>."
#. Tag: title
-#: basic_mapping.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property"
-msgstr "property"
+msgstr "Propriedade "
#. Tag: para
-#: basic_mapping.xml:1313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
"JavaBean style property of the class."
msgstr ""
-"O elemento <literal><property></literal> declara uma propriedade "
-"persistente de uma classe, no estilo JavaBean."
+"O elemento <literal><property></literal> declara uma propriedade de "
+"estilo JavaBean de uma classe."
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
@@ -2714,20 +2177,18 @@
"minúscula."
#. Tag: para
-#: basic_mapping.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
"nested <literal><column></literal> element(s)."
msgstr ""
-"<literal>column</literal> (opcional - default para a propriedade name): o "
-"nome da coluna mapeada do banco de dados, Isto pode também ser especificado "
+"<literal>column</literal> (opcional - padrão para o nome da propriedade): O "
+"nome da coluna mapeada do banco de dados. Isto pode também ser especificado "
"pelo(s) elemento(s) <literal><column></literal> aninhados."
#. Tag: para
-#: basic_mapping.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2736,76 +2197,70 @@
"whose value is initialized from some other property that maps to the same "
"column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (opcional - valor default <literal>true</"
-"literal>): especifica que as colunas mapeadas devem ser incluidas nas "
-"instruções SQL de <literal>UPDATE</literal> e/ou <literal>INSERT</literal> . "
-"Setar ambas para to <literal>false</literal> permite uma propridade "
-"\"derivada\" pura cujo valor é inicializado de outra propriedade que mapeie "
-"a mesma coluna(s) ou por uma trigger ou outra aplicação."
+"<literal>update, insert</literal> (opcional - padrão para <literal>true</"
+"literal>): especifica que as colunas mapeadas devem ser incluÃdas nas "
+"instruções SQL de <literal>UPDATE</literal> e/ou <literal>INSERT</literal>. "
+"Ajustar ambas para <literal>false</literal> permite uma propridade \"derivada"
+"\" pura, cujo valor é inicializado de outra propriedade, que mapeie a mesma "
+"coluna(s) ou por uma disparo ou outra aplicação."
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> property. Computed properties do "
"not have a column mapping of their own."
msgstr ""
-"<literal>formula</literal> (opcional): uma expressão SQL que definie o valor "
+"<literal>formula</literal> (opcional): uma instrução SQL que definie o valor "
"para uma propriedade <emphasis>calculada</emphasis>. Propriedades calculadas "
-"nao tem uma coluna de mapeamento para elas."
+"não possuem uma coluna de mapeamento para elas."
#. Tag: para
-#: basic_mapping.xml:1378
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (opcional - valor default para <literal>false</"
-"literal>): Especifica que esta propriedade deve ser trazida de forma \"lazy"
-"\" quando a instancia da variável é acessada pela primeira vez (requer "
-"instrumentação bytecode em tempo de criação)."
+"<literal>lazy</literal> (opcional - padrão para <literal>false</literal>): "
+"Especifica que esta propriedade deve ser atingida de forma lenta quando a "
+"instância da variável é acessada pela primeira vez. Isto requer "
+"instrumentação bytecode em tempo de criação."
#. Tag: para
-#: basic_mapping.xml:1385
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref</literal>."
msgstr ""
-"<literal>unique</literal> (opcional): Habilita a geração de DDL de uma unica "
-"constraint para as colunas. Assim, permite que isto seja o alvo de uma "
-"<literal>property-ref</literal>."
+"<literal>unique</literal> (opcional): Habilita a geração de DDL de uma única "
+"restrição para as colunas. Da mesma forma, permita que isto seja o alvo de "
+"uma <literal>property-ref</literal>. "
#. Tag: para
-#: basic_mapping.xml:1392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
"<literal>not-null</literal> (opcional): Habilita a geração de DDL de uma "
-"constraint de nulidade para as colunas."
+"restrição de nulidade para as colunas. "
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property do or do not require "
"acquisition of the optimistic lock. In other words, it determines if a "
"version increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - valor default <literal>true</"
+"<literal>optimistic-lock</literal> (opcional - padrão para <literal>true</"
"literal>): Especifica se mudanças para esta propriedade requerem ou não "
"bloqueio otimista. Em outras palavras, determina se um incremento de versão "
"deve ocorrer quando esta propriedade está suja."
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2813,60 +2268,52 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (opcional - valor default <literal>never</"
+"<literal>generated</literal> (opcional - padrão para <literal>never</"
"literal>): Especifica que o valor da propriedade é na verdade gerado pelo "
-"banco de dados. Veja a discussão da seção <xref linkend=\"mapping-generated"
-"\">generated properties</xref>."
+"banco de dados. Veja a discussão do <xref linkend=\"mapping-generated\"/> "
+"para maiores informações. "
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
msgstr "<emphasis>typename</emphasis> pode ser:"
#. Tag: para
-#: basic_mapping.xml:1421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
"date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
-"The name of a Hibernate basic type (eg. <literal>integer, string, character, "
-"date, timestamp, float, binary, serializable, object, blob</literal>). O "
-"nome do tipo basico do Hibernate (ex., <literal>integer, string, character, "
-"date, timestamp, float, binary, serializable, object, blob</literal>)."
+"O nome de um tipo básico de Hibernate: <literal>integer, string, character, "
+"date, timestamp, float, binary, serializable, object, blob</literal>, etc. "
#. Tag: para
-#: basic_mapping.xml:1427
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
"literal> etc."
msgstr ""
-"O nome da classe Java com um tipo básico default (ex. <literal>int, float, "
-"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
-"literal>)."
+"O nome da classe Java com um tipo básico padrão: <literal>int, float, char, "
+"java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
+"literal>, etc."
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
-msgstr "O nome da classe Java serializable"
+msgstr "O nome da classe Java serializável"
#. Tag: para
-#: basic_mapping.xml:1438
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
"literal> etc."
msgstr ""
-"O nome da classe de um tipo customizado (ex. <literal>com.illflow.type."
-"MyCustomType</literal>)."
+"O nome da classe de um tipo customizado: <literal>com.illflow.type."
+"MyCustomType</literal>, etc."
#. Tag: para
-#: basic_mapping.xml:1444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
"property and guess the correct Hibernate type. Hibernate will attempt to "
@@ -2876,18 +2323,16 @@
"DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a "
"custom type."
msgstr ""
-"Se você não especificar um tipo, o Hibernate ira utilizar reflexão sobre a "
-"propriedade nomeada para ter uma idéia do tipo Hibernate correto. O "
-"Hibernate ira tentar interpretar o nome da classe retornada, usando as "
-"regras 2, 3 e 4 nesta ordem. Entretanto, isto não é sempre suficiente Em "
-"certos casos, você ainda irá necessitar do atributo <literal>type</literal>. "
-"(Por exemplo, para distinguir entre <literal>Hibernate.DATE</literal> ou "
-"<literal>Hibernate.TIMESTAMP</literal>, ou para espcificar uma tipo "
-"ciustomizado.)"
+"Se você não especificar um tipo, o Hibernate irá utilizar reflexão sobre a "
+"propriedade nomeada para ter uma idéia do tipo de Hibernate correto. O "
+"Hibernate tentará interpretar o nome da classe retornada, usando as regras "
+"2, 3 e 4 nesta ordem. Em certos casos, você ainda precisará do atributo "
+"<literal>type</literal>. Por exemplo, para distinguir entre "
+"<literal>Hibernate.DATE</literal> e <literal>Hibernate.TIMESTAMP</literal>, "
+"ou para especificar um tipo customizado."
#. Tag: para
-#: basic_mapping.xml:1454
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
"accesses the property at runtime. By default, Hibernate will call the "
@@ -2897,18 +2342,17 @@
"a class that implements the interface <literal>org.hibernate.property."
"PropertyAccessor</literal>."
msgstr ""
-"O atributo <literal>access</literal> permite voce controlar como o Hibernate "
-"irá acessar a propriedade em tempo de execução. Por default, o Hibernate irá "
-"chamar os métodos get/set da propriedades. Se voce especificar "
-"<literal>access=\"field\"</literal>, o Hibernate ira bipassar os metodos get/"
-"set, acessnado o campo diretamente, usando reflexão. Voc epode especificar "
+"A função <literal>access</literal> permite que você controle como o "
+"Hibernate irá acessar a propriedade em tempo de execução. Por padrão, o "
+"Hibernate irá chamar os métodos get/set da propriedades. Se você especificar "
+"<literal>access=\"field\"</literal>, o Hibernate irá bipassar os metodos get/"
+"set, acessando o campo diretamente, usando reflexão. Você pode especificar "
"sua própria estratégia para acesso da propriedade criando uma classe que "
"implemente a interface <literal>org.hibernate.property.PropertyAccessor</"
"literal>."
#. Tag: para
-#: basic_mapping.xml:1463
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
"read-only. The property value is computed at load time. You declare the "
@@ -2916,48 +2360,32 @@
"literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
"Um recurso especialmente poderoso é o de propriedades derivadas. Estas "
-"propriedades são por definição read-only, e o valor da propriedade é "
-"calculado em tempo de execução. Você declara este calculo como uma expressão "
-"SQL, que traduz para clausula <literal>SELECT</literal> de uma subquery "
-"daquery SQL que carrega a instancia:"
+"propriedades são por definição somente leitura, e o valor da propriedade é "
+"calculado em tempo de execução. Você declara este cálculo como uma expressão "
+"SQL, que traduz para cláusula <literal>SELECT</literal> de uma subconsulta "
+"da consulta SQL que carrega a instância: "
-#. Tag: programlisting
-#: basic_mapping.xml:1470
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1472
-#, fuzzy, no-c-format
-msgid ""
"You can reference the entity table by not declaring an alias on a particular "
"column. This would be <literal>customerId</literal> in the given example. "
"You can also use the nested <literal><formula></literal> mapping "
"element if you do not want to use the attribute."
msgstr ""
"Observe que você pode referenciar as entidades da própria tabela, através da "
-"não declaração de um alias para uma coluna particular ( <literal>customerId</"
-"literal> no exemplo dado). Observe tambem que voce pode usar o mapeamento de "
-"elemento aninhado <literal><formula></literal>, se você não gostar de "
-"usar o atributo."
+"não declaração de um alias para uma coluna particular. Isto seria o "
+"<literal>customerId</literal> no exemplo dado. Observe também que você pode "
+"usar o mapeamento de elemento aninhado <literal><formula></literal>, "
+"se você não gostar de usar o atributo. "
#. Tag: title
-#: basic_mapping.xml:1482
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "many-to-one"
+msgstr "Muitos-para-um "
#. Tag: para
-#: basic_mapping.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
"<literal>many-to-one</literal> element. The relational model is a many-to-"
@@ -2966,102 +2394,55 @@
msgstr ""
"Uma associação ordinária para outra classe persistente é declarada usando o "
"elemento <literal>many-to-one</literal>. O modelo relacional é uma "
-"associação many-to-one: a uma chave estrangeira de uma tabela referenciando "
-"a chave primaria da tabela destino."
+"associação muitos para um: uma chave exterior de uma tabela referenciando as "
+"colunas da chave primária da tabela destino."
-#. Tag: programlisting
-#: basic_mapping.xml:1512
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the name of the property."
-msgstr "<literal>name</literal>: O nome da propriedade."
+msgstr "<literal>name</literal>: O nome da propriedade. "
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column></literal> "
"element(s)."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (opcional): O nome da coluna foreign key. Isto "
-"pode também ser especificado através de elementos aninhados <literal><"
-"column></literal>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-". <literal>column</literal> (opcional): O nome da coluna da chave "
-"estrangeira. Isto também pode ser especificado por aninhamento de elemento"
-"(s) <literal><column></literal>."
+"<literal>column</literal> (opcional): O nome da coluna da chave exterior. "
+"Isto pode também ser especificado através de elementos aninhados "
+"<literal><column></literal>. "
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (opcional â default para o tipo de propriedade "
-"determinado pela reflexão). O nome da classe associada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (opcional â default para o tipo da propriedade "
-"definido via reflection): O nome da classe associada."
+"<literal>class</literal> (opcional â padrão para o tipo de propriedade "
+"determinado pela reflexão): O nome da classe associada."
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
msgstr ""
-"<literal>cascade</literal> (opcional): Especifica qual operação deve ser "
-"cascateada do objeto pai para o objeto associado."
+"<literal>cascade</literal> (opcional): Especifica qual operação deve ser "
+"cascateada do objeto pai para o objeto associado. "
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>fetch</literal> (opcional - default para <literal>select</"
-"literal>): Escolhe entre recuperação outer-join ou recuperação seqüencial.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>fetch</literal> ((opcional â valor default <literal>select</"
-"literal>): Escolhe entre outer-join fetching ou sequential select fetching."
+"<literal>fetch</literal> (opcional - padrão para <literal>select</literal>): "
+"Escolhe entre recuperação da união exterior ou recuperação seqüencial de "
+"seleção."
#. Tag: para
-#: basic_mapping.xml:1545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -3070,29 +2451,27 @@
"association whose value is initialized from another property that maps to "
"the same column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (opcional - valor default <literal>true</"
-"literal>): especifica que as colunas mapeadas dever ser incluidas em "
+"<literal>update, insert</literal> (opcional - valor padrão <literal>true</"
+"literal>): especifica que as colunas mapeadas devem ser incluÃdas em "
"instruções SQL de <literal>UPDATE</literal> e/ou <literal>INSERT</literal>. "
-"Setando ambas para <literal>false</literal> você permite uma associação "
-"\"derivada\" pura cujos valores são inicializados de algumas outras "
-"propriedades que mapeiam a mesma coluna ou por uma trigger ou outra "
-"aplicação."
+"Com o ajuste de ambas para <literal>false</literal> você permite uma "
+"associação \"derivada\" pura cujos valores são inicializados de algumas "
+"outras propriedades que mapeiam a(s) mesma(s) coluna(s) ou por um trigger ou "
+"outra aplicação. "
#. Tag: para
-#: basic_mapping.xml:1554
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>: (opcional) O nome da propriedade da classe "
-"associada que faz a junção desta foreign key. Se não especificada, a chave "
-"primaria da classe associada será utilizada."
+"<literal>property-ref</literal>: (opcional) O nome de uma propriedade da "
+"classe associada que esteja unida à esta chave exterior. Se não for "
+"especificada, a chave primária da classe associada será utilizada. "
#. Tag: para
-#: basic_mapping.xml:1567
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. By allowing this to be the target of "
@@ -3100,23 +2479,21 @@
"one-to-one."
msgstr ""
"<literal>unique</literal> (opcional): Habilita a geração DDL de uma "
-"constraint unique para a coluna foreign-key. Alem disso, permite ser o alvo "
-"de uma <literal>property-ref</literal>. Isso torna a associação multipla "
-"efetivamente um para um."
+"restrição única para a coluna da chave exterior. Além disso, permite ser o "
+"alvo de uma <literal>property-ref</literal>. Isso torna a multiplicidade da "
+"associação efetivamente um para um. "
#. Tag: para
-#: basic_mapping.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
-"<literal>not-null</literal> (opcional): Habilita a geração DDL de uma "
-"constraint de nulidade para as foreign keys."
+"<literal>not-null</literal> (opcional): Habilita a geração DDL de uma "
+"restrição de nulidade para as colunas de chaves exteriores."
#. Tag: para
-#: basic_mapping.xml:1589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3125,51 +2502,47 @@
"instrumentation. <literal>lazy=\"false\"</literal> specifies that the "
"association will always be eagerly fetched."
msgstr ""
-"<literal>lazy</literal>(opcional â valor default <literal>proxy</literal>): "
-"Por default, associações de ponto unico são envoltas em um proxie. "
+"<literal>lazy</literal>(opcional â padrão para <literal>proxy</literal>): "
+"Por padrão, associações de ponto único são envoltas em um proxie. "
"<literal>lazy=\"no-proxy\"</literal> especifica que a propriedade deve ser "
-"trazida de forma tardia quando a instancia da variável é acessada pela "
-"primeira vez (requer instrumentação bytecode em tempo de criação) "
+"trazida de forma tardia quando a instância da variável é acessada pela "
+"primeira vez. Isto requer instrumentação bytecode em tempo de criação. O "
"<literal>lazy=\"false\"</literal> especifica que a associação será sempre "
-"recuperada fortemente."
+"procurada."
#. Tag: para
-#: basic_mapping.xml:1599
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how foreign keys that reference missing rows will be "
"handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (opcional - valor default <literal>exception</"
-"literal>): Especifica como as foreign keys que referenciam linhas ausentes "
-"serão tratadas: <literal>ignore</literal> irá tratar a linha ausente como "
-"ama associaççao de null"
+"<literal>not-found</literal> (opcional - padrão para <literal>exception</"
+"literal>): Especifica como as chaves exteriores que informam que linhas que "
+"estejam faltando serão manuseadas. O <literal>ignore</literal> tratará a "
+"linha faltante como uma associação nula."
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
"class."
msgstr ""
"<literal>entity-name</literal> (opcional): O nome da entidade da classe "
-"associada."
+"associada. "
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
-"<literal>formula</literal> (optional): Uma expressão SQL que define um valor "
-"para um foreign key <emphasis>computed</emphasis>."
+"<literal>formula</literal> (optional): Uma instrução SQL que define um valor "
+"para uma chave exterior <emphasis>computed</emphasis>."
#. Tag: para
-#: basic_mapping.xml:1619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
"meaningful value other than <literal>none</literal> will propagate certain "
@@ -3179,42 +2552,34 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
-"Setar o valor do atributo <literal>cascade</literal> para qualquer valor "
-"significativo diferente de <literal>none</literal> irá propagar certas "
-"operações ao objeto associado. Os valores significativos são os nomes das "
-"operações básicas do Hibernate, <literal>persist, merge, delete, save-"
-"update, evict, replicate, lock, refresh</literal>, assim como os valores "
-"especiais <literal>delete-orphan</literal> e <literal>all</literal> e "
-"combinações de nomes de operações separadas por vÃrgula, como por exemplo, "
-"<literal>cascade=\"persist,merge,evict\"</literal> ou <literal>cascade=\"all,"
-"delete-orphan\"</literal>. Veja a seção <xref linkend=\"objectstate-"
-"transitive\"/> para uma explicação completa. Note que associações valoradas "
-"simples (associações muitos-pra-um, e um-pra-um) não suportam orphan delete."
+"Ao ajustar o valor do atributo <literal>cascade</literal> para qualquer "
+"valor diferente de <literal>none</literal> irá propagar certas operações ao "
+"objeto associado. Os valores significativos são divididos em três "
+"categorias. A primeira, operações básicas, que inclui: <literal>persist, "
+"merge, delete, save-update, evict, replicate, lock and refresh</literal>. A "
+"segunda, valores especiais: <literal>delete-orphan</literal> e a terceira "
+"combinações de vÃrgula separada <literal>all</literal> dos nomes da "
+"operação: <literal>cascade=\"persist,merge,evict\"</literal> ou "
+"<literal>cascade=\"all,delete-orphan\"</literal>. Veja <xref linkend="
+"\"objectstate-transitive\"/> para uma completa explicação. Perceba que as "
+"associações de valores únicos, muitos-para-um e um-para-um, não suportam "
+"delete órfão: "
#. Tag: para
-#: basic_mapping.xml:1632
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
msgstr ""
-"Uma tÃpica declaração <literal>muitos-pra-um</literal> se parece com esta:"
+"Segue abaixo uma amostra de uma tÃpica declaração <literal>many-to-one</"
+"literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1636
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1638
-#, fuzzy, no-c-format
-msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
"mapping legacy data where a foreign key refers to a unique key of the "
"associated table other than the primary key. This is a complicated and "
@@ -3224,43 +2589,24 @@
"the SchemaExport tool."
msgstr ""
"O atributo <literal>property-ref</literal> deve apenas ser usado para mapear "
-"dados legados onde uma chave estrangeira se referencia a uma chave exclusiva "
-"da tabela associada que não seja à chave primária. Este é um modelo "
-"relacional desagradável. Por exemplo, suponha que a classe <literal>Product</"
-"literal> tenha um número seqüencial exclusivo, que não é a chave primária. "
-"(O atributo <literal>unique</literal> controla a geração de DDL do Hibernate "
-"com a ferramenta SchemaExport.)"
+"dados legados onde uma chave exterior se refere à uma chave exclusiva da "
+"tabela associada que não seja a chave primária. Este é um modelo relacional "
+"desagradável. Por exemplo, suponha que a classe <literal>Product</literal> "
+"tenha um número seqüencial exclusivo, que não seja a chave primária. O "
+"atributo <literal>unique</literal> controla a geração de DDL do Hibernate "
+"com a ferramenta SchemaExport."
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
msgstr "Então o mapeamento para <literal>OrderItem</literal> poderia usar:"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1655
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This is not encouraged, however."
-msgstr "Porém, isto obviamente não é indicado, nunca."
+msgstr "No entanto, isto não é recomendável."
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
@@ -3272,31 +2618,20 @@
"elemento chamado <literal><properties></literal>"
#. Tag: para
-#: basic_mapping.xml:1664
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
"a property path:"
msgstr ""
"Se a chave exclusiva referenciada é a propriedade de um componente, você "
-"pode especificar um caminho para a propriedade."
+"pode especificar um caminho para a propriedade:"
-#. Tag: programlisting
-#: basic_mapping.xml:1668
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1673
-#, fuzzy, no-c-format
+#, no-c-format
msgid "One-to-one"
-msgstr "one-to-one (um-pra-um)"
+msgstr "Um-para-um "
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
@@ -3305,31 +2640,9 @@
"Uma associação um-pra-um para outra classe persistente é declarada usando um "
"elemento <literal>one-to-one </literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:1693
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1713
-#, fuzzy, no-c-format
-msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
"constraint on the primary key of the mapped table and references the table "
"of the associated class. This option affects the order in which <literal>save"
@@ -3337,28 +2650,25 @@
"whether the association can be proxied. It is also used by the schema export "
"tool."
msgstr ""
-"<literal>constrained</literal> (opcional): Especifica que uma chave "
-"estrangeira constraint na chave primária da tabela mapeada referencia a "
-"tabela da classe associada, Esta opção afeta a ordem em queh <literal>save()"
-"</literal> e <literal>delete()</literal> são cascateadas, e determina se a "
-"associação pode ser substituÃda (isto também é usado pela ferramenta schema "
-"export)."
+"<literal>constrained</literal> (opcional): Especifica que uma restrição de "
+"chave exterior na chave primária da tabela mapeada referencia a tabela da "
+"classe associada. Esta opção afeta a ordem em que <literal>save()</literal> "
+"e <literal>delete()</literal> são cascateadas, e determina se a associação "
+"pode sofrer o proxie. Isto também é usado pela ferramenta schema export. "
#. Tag: para
-#: basic_mapping.xml:1728
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to the primary key of this class. If not "
"specified, the primary key of the associated class is used."
msgstr ""
"<literal>property-ref</literal>(opcional): O nome da propriedade da classe "
-"associada que é ligada a chave primária desta classe. Se não for "
-"especificada, a chave primária da classe associada é utilizada."
+"associada que é ligada à chave primária desta classe. Se não for "
+"especificada, a chave primária da classe associada é utilizada. "
#. Tag: para
-#: basic_mapping.xml:1741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
"map to the primary key of the owning entity. If this is not the case, you "
@@ -3367,14 +2677,13 @@
"example."
msgstr ""
"<literal>formula</literal> (opcional): Quase todas associações um-pra-um "
-"mapeiam para a chave primária da entidade dona. No caso raro, que não é o "
-"caso, você pode especificar uma outra coluna, colunas ou expressões para "
-"juntar utilizando uma formula SQL. (Veja <literal>org.hibernate.test."
-"onetooneformula</literal> para exemplo)."
+"mapeiam para a chave primária da entidade dona. Caso este não seja o caso, "
+"você pode especificar uma outra coluna, colunas ou expressões para unir "
+"utilizando uma fórmula SQL. Veja <literal>org.hibernate.test."
+"onetooneformula</literal> para exemplo. "
#. Tag: para
-#: basic_mapping.xml:1749
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3385,173 +2694,105 @@
"<literal>constrained=\"false\"</literal>, proxying is impossible and "
"Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
-"<literal>lazy</literal> (opcional â valor default <literal>proxy</literal>): "
-"Por default, associações single point são proxied. <literal>lazy=\"no-proxy"
-"\"</literal> especifica que a propriedade deve ser fetched lazily quando o "
-"atributo é acessado pela primeira vez (requer build-time bytecode "
-"instrumentation). <literal>lazy=\"false\"</literal> especifica que a "
-"associação vai sempre ser avidamente fetched. <emphasis>Note que se "
-"<literal>constrained=\"false\"</literal>, proxing é impossÃvel e o Hibernate "
-"vai ávido fetch a associação!</emphasis>"
+"<literal>lazy</literal> (opcional â valor padrão <literal>proxy</literal>): "
+"Por padrão, as associações de ponto único estão em proxy. <literal>lazy=\"no-"
+"proxy\"</literal> especifica que a propriedade deve ser recuperada de forma "
+"preguiçosa quando a variável da instância for acessada pela primeira vez. "
+"Isto requer instrumentação de bytecode de tempo de construção. <literal>lazy="
+"\"false\"</literal> especifica que a associação terá sempre uma busca "
+"antecipada (eager fetched). <emphasis> Note que se <literal>constrained="
+"\"false\"</literal>, será impossÃvel efetuar o proxing e o Hibernate irá "
+"realizar uma busca antecipada na associação</emphasis>."
#. Tag: para
-#: basic_mapping.xml:1767
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are two varieties of one-to-one associations:"
-msgstr "Existem duas variedades de associações um-pra-um:"
+msgstr "Existem duas variedades de associações um-pra-um: "
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
-msgstr "associações de chave primária"
+msgstr "Associações de chave primária"
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
-msgstr "associações de chave estrangeira exclusiva"
+msgstr "Associações de chave exterior exclusiva"
#. Tag: para
-#: basic_mapping.xml:1779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
"related by the association, then the two table rows share the same primary "
"key value. To relate two objects by a primary key association, ensure that "
"they are assigned the same identifier value."
msgstr ""
-"Associações de chave primária não necessitam de uma coluna extra de tabela; "
-"se duas linhas são relacionadas pela associação então as duas linhas da "
-"tabela dividem a mesmo valor da chave primária. Assim, se você quer que dois "
-"objetos sejam relacionados por uma associação de chave primária, você deve "
-"ter certeza que eles são assinados com o mesmo valor identificador!"
+"Associações de chave primária não necessitam de uma coluna extra de tabela. "
+"Se duas linhas forem relacionadas pela associação, então as duas linhas da "
+"tabela dividem o mesmo valor da chave primária. Assim, se você quiser que "
+"dois objetos sejam relacionados por uma associação de chave primária, você "
+"deve ter certeza que foram atribuÃdos com o mesmo valor identificador."
#. Tag: para
-#: basic_mapping.xml:1786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
"<literal>Employee</literal> and <literal>Person</literal> respectively:"
msgstr ""
"Para uma associação de chave primária, adicione os seguintes mapeamentos em "
-"<literal>Employee</literal> e <literal>Person</literal>, respectivamente."
+"<literal>Employee</literal> e <literal>Person</literal>, respectivamente:"
-#. Tag: programlisting
-#: basic_mapping.xml:1791
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1794
-#, fuzzy, no-c-format
-msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
"tables are equal. You use a special Hibernate identifier generation strategy "
"called <literal>foreign</literal>:"
msgstr ""
-"Agora nós devemos assegurar que as chaves primárias de linhas relacionadas "
-"nas tabelas PERSON e EMPLOYEE são iguais. Nós usamos uma estratégia especial "
-"de geração de identificador do Hibernate chamada <literal>foreign</literal>:"
+"Agora devemos assegurar que as chaves primárias de linhas relacionadas nas "
+"tabelas PERSON e EMPLOYEE são iguais. Nós usamos uma estratégia especial de "
+"geração de identificador do Hibernate chamada <literal>foreign</literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1800
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1802
-#, fuzzy, no-c-format
-msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
"primary key value as the <literal>Employee</literal> instance referred with "
"the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
-"Uma nova instância de <literal>Person</literal> salva recentemente é então "
-"assinada com o mesmo valor da chave primária da instância de "
-"<literal>employee</literal> referenciada com a propriedade "
-"<literal>employee</literal> daquela <literal>Person</literal>."
+"Uma nova instância de <literal>Person</literal> é atribuÃda com o mesmo "
+"valor da chave primária da instância de <literal>Employee</literal> "
+"referenciada com a propriedade <literal>employee</literal> daquela "
+"<literal>Person</literal>."
#. Tag: para
-#: basic_mapping.xml:1808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
"<literal>Employee</literal> to <literal>Person</literal>, can be expressed "
"as:"
msgstr ""
-"Alternativamente, uma chave estrangeira com uma unique constraint, de "
+"Alternativamente, uma chave exterior com uma restrição única, de "
"<literal>Employee</literal> para <literal>Person</literal>, pode ser "
-"expressa como:"
+"expressada como:"
-#. Tag: programlisting
-#: basic_mapping.xml:1813
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1815
-#, fuzzy, no-c-format
-msgid ""
"This association can be made bidirectional by adding the following to the "
"<literal>Person</literal> mapping:"
msgstr ""
-"E esta associação pode ser feita de forma bi-direcional adicionando o "
-"seguinte no mapeamento de <literal>Person</literal>:"
+"Esta associação pode ser feita de forma bi-direcional adicionando o seguinte "
+"no mapeamento de <literal>Person</literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:1820
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:1825
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Natural-id"
-msgstr "natural-id"
+msgstr "Id Natural"
-#. Tag: programlisting
-#: basic_mapping.xml:1827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1829
-#, fuzzy, no-c-format
-msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
"try to identify natural keys for all entities. A natural key is a property "
"or combination of properties that is unique and non-null. It is also "
@@ -3560,166 +2801,127 @@
"unique key and nullability constraints and, as a result, your mapping will "
"be more self-documenting."
msgstr ""
-"Embora nós recomendemos o uso de surrogate keys como chaves primárias, você "
+"Embora recomendemos o uso das chaves substitutas como chaves primárias, você "
"deve ainda identificar chaves naturais para todas as entidades. Uma chave "
"natural é uma propriedade ou combinação de propriedades que é exclusiva e "
-"não nula. Se não pude ser modificada, melhor ainda. Mapeie as propriedades "
-"da chave natural dentro do elemento <literal><natural-id></literal>. O "
-"Hibernate irá gerar a chave exclusiva necessária e as constraints de "
-"nullability , e seu mapeamento será apropriadamente auto documentado."
+"não nula. Mapeie as propriedades da chave natural dentro do elemento "
+"<literal><natural-id></literal>. O Hibernate irá gerar a chave "
+"exclusiva necessária e as restrições de anulabilidade, e seu mapeamento será "
+"apropriadamente auto documentado."
#. Tag: para
-#: basic_mapping.xml:1838
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> to compare the natural key properties of the "
"entity."
msgstr ""
-"Nós recomendamos com enfase que você implemente <literal>equals()</literal> "
+"Nós recomendamos com ênfase que você implemente <literal>equals()</literal> "
"e <literal>hashCode()</literal> para comparar as propriedades da chave "
-"natural da entidade."
+"natural da entidade. "
#. Tag: para
-#: basic_mapping.xml:1843
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
msgstr ""
-"Este mapeamento não tem o objetivo de uso com entidades com natural chaves "
+"Este mapeamento não pretende ser utilizado com entidades com chaves naturais "
"primárias."
#. Tag: para
-#: basic_mapping.xml:1849
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
"literal>): by default, natural identifier properties are assumed to be "
"immutable (constant)."
msgstr ""
-"<literal>mutable</literal> mutable (opcional, valor default<literal>false</"
-"literal>): Por default, propriedades naturais identificadoras são "
-"consideradas imutáveis (constante)."
+"<literal>mutable</literal> (opcional, padrão <literal>false</literal>): Por "
+"padrão, propriedades naturais identificadoras são consideradas imutáveis "
+"(constante)."
#. Tag: title
-#: basic_mapping.xml:1859
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Component and dynamic-component"
-msgstr "componente, componente dinâmico"
+msgstr "Componente e componente dinâmico"
#. Tag: para
-#: basic_mapping.xml:1861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
"object to columns of the table of a parent class. Components can, in turn, "
"declare their own properties, components or collections. See the \"Component"
"\" examples below:"
msgstr ""
-"O elemento<literal><component></literal> mapeia propriedades de um "
-"objeto filho para colunas da tabela de uma classe pai. Componentes podem, um "
-"após o outro, declarar suas próprias propriedades, componentes ou coleções. "
-"Veja \"Components\" abaixo."
+"O elemento <literal><component></literal> mapeia propriedades de um "
+"objeto filho para colunas da tabela de uma classe pai. Os componentes podem, "
+"um após o outro, declarar suas próprias propriedades, componentes ou "
+"coleções. Veja \"Components\" abaixo:"
-#. Tag: programlisting
-#: basic_mapping.xml:1879
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1887
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
-"<literal>class</literal> (opcional â valor default para o tipo de "
-"propriedade determinada por reflection): O nome da classe (filha) do "
-"componente."
+"<literal>class</literal> (opcional â padrão para o tipo de propriedade "
+"determinada por reflection): O nome da classe (filha) do componente."
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
"<literal>INSERTs</literal>?"
msgstr ""
"<literal>insert</literal>: As colunas mapeadas aparecem nos SQL de "
-"<literal>INSERT</literal>s?"
+"<literal>INSERTs</literal>? "
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
"<literal>UPDATEs</literal>?"
msgstr ""
"<literal>update</literal>: As colunas mapeadas aparecem nos SQL de "
-"<literal>UPDATE</literal>s?"
+"<literal>UPDATEs</literal>? "
#. Tag: para
-#: basic_mapping.xml:1911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (opcional - valor default <literal>false</literal>): "
-"Especifica que este componente deve ser fetched lazily quando o atributo for "
-"acessado pela primeira vez (requer build-time bytecode instrumentation)."
+"<literal>lazy</literal> (opcional - padrão para <literal>false</literal>): "
+"Especifica que este componente deve ter uma busca lazy quando a função for "
+"acessada pela primeira vez. Isto requer instrumentação bytecode de tempo de "
+"construção."
#. Tag: para
-#: basic_mapping.xml:1918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this component either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional â valor default <literal>true</"
+"<literal>optimistic-lock</literal> (opcional â padrão para <literal>true</"
"literal>): Especifica que atualizações para este componente requerem ou não "
-"aquisição de um lock otimista. Em outras palavras, determina se uma versão "
-"de incremento deve ocorrer quando esta propriedade estiver modificada."
+"aquisição de um bloqueio otimista. Em outras palavras, determina se uma "
+"versão de incremento deve ocorrer quando esta propriedade estiver suja."
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
"specifies that a unique constraint exists upon all mapped columns of the "
"component."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>unique</literal> (opcional â valor default <literal>false</"
-"literal>): Especifica que existe uma unique constraint em todas as colunas "
-"mapeadas do componente.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>unique</literal> (opcional â valor defautl <literal>false</"
-"literal>): Especifica que uma unique constraint existe em todas as colunas "
-"mapeadas do componente."
+"<literal>unique</literal> (opcional â valor padrão <literal>false</"
+"literal>): Especifica que existe uma unique restrição em todas as colunas "
+"mapeadas do componente. "
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
@@ -3729,7 +2931,6 @@
"mapeamento da classe filha para colunas de uma tabela."
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
@@ -3741,28 +2942,25 @@
"componente como uma referencia de volta para a entidade que o contém."
#. Tag: para
-#: basic_mapping.xml:1946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
msgstr ""
"O elemento <literal><dynamic-component></literal> permite que um "
"<literal>Map</literal> possa ser mapeado como um componente onde os nomes "
-"das propriedades referem-se para as chaves no mapa, veja <xref linkend="
-"\"components-dynamic\"/>."
+"das propriedades referem-se para as chaves no mapa. Consulte <xref linkend="
+"\"components-dynamic\"/> para maiores informações."
#. Tag: title
-#: basic_mapping.xml:1955
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Properties"
-msgstr "propriedades"
+msgstr "Propriedades"
#. Tag: para
-#: basic_mapping.xml:1957
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
"named, logical grouping of the properties of a class. The most important use "
@@ -3771,222 +2969,117 @@
"define a multi-column unique constraint. For example:"
msgstr ""
"O elemento <literal><properties></literal> permite a definição de um "
-"grupo com nome, lógico de propriedades de uma classe. O uso mais importante "
-"do construtor é que este permite uma combinação de propriedades para ser o "
-"objetivo de uma <literal>property-ref</literal>. à também um modo "
-"conveninente para definir uma unique constraint de múltiplas colunas."
+"grupo com nome, lógico de propriedades de uma classe. A função mais "
+"importante do construtor é que ele permite que a combinação de propriedades "
+"seja o objetivo de uma <literal>property-ref</literal>. à também um modo "
+"conveninente para definir uma restrição única de múltiplas colunas. Por "
+"exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:1973
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1976
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
"<emphasis>not</emphasis> an actual property name."
msgstr ""
-"<literal>name</literal>:: O nome lógico do agrupamento â <emphasis>não </"
+"<literal>name</literal>: O nome lógico do agrupamento. Isto <emphasis>não</"
"emphasis> é o nome atual de propriedade."
#. Tag: para
-#: basic_mapping.xml:1994
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to these properties either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when these properties are dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional â valor default <literal>true</"
+"<literal>optimistic-lock</literal> (opcional â padrão para <literal>true</"
"literal>): Especifica que atualizações para estes componentes requerem ou "
-"não aquisição de um lock otimista. Em outras palavras, determina se uma "
-"versão de incremento deve ocorrer quando estas propriedades estiverem "
-"modificadas."
+"não aquisição de um bloqueio otimista. Em outras palavras, determina se uma "
+"versão de incremento deve ocorrer quando estas propriedades estiverem sujas."
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
"mapping:"
msgstr ""
-"Por exemplo, se nós temos o seguinte mapeamento de <literal><"
-"properties></literal>:"
+"Por exemplo, se temos o seguinte mapeamento de <literal><properties></"
+"literal>:"
-#. Tag: programlisting
-#: basic_mapping.xml:2015
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2017
-#, fuzzy, no-c-format
-msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
-"Então nós podemos ter uma associação de dados herdados que referem a esta "
-"chave exclusiva da tabela <literal>Person</literal>, ao invés de se "
-"referirem a chave primária:"
+"Então podemos ter uma associação de dados legados que referem a esta chave "
+"exclusiva da tabela <literal>Person</literal>, ao invés de se referirem a "
+"chave primária:"
-#. Tag: programlisting
-#: basic_mapping.xml:2022
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2024
-#, fuzzy, no-c-format
-msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
msgstr ""
"Nós não recomendamos o uso deste tipo de coisa fora do contexto de "
-"mapeamento de dados herdados."
+"mapeamento de dados legados."
#. Tag: title
-#: basic_mapping.xml:2032
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Subclass"
-msgstr "subclass (subclasse)"
+msgstr "Subclass"
#. Tag: para
-#: basic_mapping.xml:2034
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
"root persistent class. For the table-per-class-hierarchy mapping strategy, "
"the <literal><subclass></literal> declaration is used. For example:"
msgstr ""
"Finalmente, a persistência polimórfica requer a declaração de cada subclasse "
-"da classe de persistência raiz. Para a estratégia de mapeamento table-per-"
-"class-hierarchy, a declaração <literal><subclass></literal> deve ser "
-"usada."
+"da classe raÃz de persistência. Para a estratégia de mapeamento tabela-por-"
+"hierarquia-de-classe, deve-se utilizar a declaração <literal><subclass>"
+"</literal>. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2047
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>name</literal>: O nome de classe completamente qualificada da "
-"subclasse.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal>: O nome da classe completamente qualificada da "
-"subclasse.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal>: O nome da subclasse completamente qualificada."
+"subclasse. "
#. Tag: para
-#: basic_mapping.xml:2055
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
msgstr ""
-"<literal>discriminator-value</literal> (opcional â valor default o nome da "
+"<literal>discriminator-value</literal> (opcional â padrão para o nome da "
"classe): Um valor que distingue subclasses individuais."
#. Tag: para
-#: basic_mapping.xml:2061
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>proxy</literal> (opcional): Especifica a classe ou interface que "
-"usará os proxies de inicialização atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (opcional): Especifica a classe ou interface para "
-"usar os proxies de recuperação atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optional): Specifies a class or interface to use "
-"for lazy initializing proxies. <literal>proxy</literal> (opcional): "
-"Especifica a classe ou interface para usar os proxies de recuperação "
-"atrasada."
+"usará os proxies de inicialização lazy."
#. Tag: para
-#: basic_mapping.xml:2067
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (opcional, valor default <literal>true</literal>): "
+"<literal>lazy</literal> (opcional, padrão para <literal>true</literal>): "
"Configurar <literal>lazy=\"false\"</literal> desabilitará o uso de "
-"inicialização atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (opcional, valor default <literal>true</literal>): "
-"Fixanr <literal>lazy=\"false\"</literal> desabilita o uso recuperação "
-"atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
-"Setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching. "
-"<literal>lazy</literal> (opcional, valor default p<literal>true</literal>): "
-"Fixando <literal>lazy=\"false\"</literal> desabilita o uso da recuperação "
-"atrasada."
+"inicialização lazy."
#. Tag: para
-#: basic_mapping.xml:2075
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
"<literal><version></literal> and <literal><id></literal> "
@@ -3996,182 +3089,82 @@
msgstr ""
"Cada subclasse deve declarar suas próprias propriedades persistentes e "
"subclasses. As propriedades <literal><version></literal> e "
-"<literal><id></literal> são configuradas para serem herdades da classe "
-"raiz. Cada subclasse numa hierarquia deve definir um único "
-"<literal>discriminator-value</literal>. Se nenhum for especificado, o nome "
-"da classe Java completamente qualificada será usada."
+"<literal><id></literal> são configuradas para serem herdadas da classe "
+"raÃz. Cada subclasse numa hierarquia deve definir um único "
+"<literal>discriminator-value</literal>. Se nenhum for especificado, será "
+"usado o nome da classe Java completamente qualificado."
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Para informações sobre mapeamento de heranças, veja o <xref linkend="
-"\"inheritance\"/>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Para informações de mapeamentos de herança, veja <xref linkend=\"inheritance"
-"\"/>.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Para informações sobre mapeamentos de herança, veja <xref linkend="
-"\"inheritance\"/>."
+"Para informações sobre mapeamento de heranças. Consulte o <xref linkend="
+"\"inheritance\" />."
#. Tag: title
-#: basic_mapping.xml:2090
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Joined-subclass"
-msgstr "joined-subclass"
+msgstr "Subclasses Unidas "
#. Tag: para
-#: basic_mapping.xml:2092
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
"per-subclass mapping strategy. An inherited state is retrieved by joining "
"with the table of the superclass. To do this you use the <literal><joined-"
"subclass></literal> element. For example:"
msgstr ""
-"Alternativamente, cada subclasse pode ser mapeada para sua própria tabela "
-"(Estratégia de mapeamento table-per-subclass). O estado herdado é devolvido "
-"por associação com a tabela da superclasse. Nós usamos o elemento "
-"<literal><joined-subclass></literal>."
+"Alternativamente, cada subclasse pode ser mapeada para sua própria tabela. "
+"Isto é chamado estratégia de mapeamento de tabela-por-subclasse. O estado "
+"herdado é devolvido por associação com a tabela da superclasse. Nós usamos o "
+"elemento <literal><joined-subclass></literal>. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2105
-#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
-msgstr "<literal>table</literal>: O nome da tabela da subclasse."
+msgstr "<literal>table</literal>: O nome da tabela da subclasse. "
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
"<literal>proxy</literal> (opcional): Especifica a classe ou interface que "
-"usará os proxies de inicialização atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (opcional): Especifica a classe ou interface para "
-"usar os proxies de recuperação atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (optional): Specifies a class or interface to use "
-"for lazy initializing proxies. <literal>proxy</literal> (opcional): "
-"Especifica a classe ou interface para usar os proxies de recuperação "
-"atrasada."
+"usará os proxies de inicialização lazy. "
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (opcional, valor default <literal>true</literal>): "
+"<literal>lazy</literal> (opcional, padrão para <literal>true</literal>): "
"Configurar <literal>lazy=\"false\"</literal> desabilitará o uso de "
-"inicialização atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (opcional, valor default <literal>true</literal>): "
-"Fixanr <literal>lazy=\"false\"</literal> desabilita o uso recuperação "
-"atrasada.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
-"Setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching. "
-"<literal>lazy</literal> (opcional, valor default p<literal>true</literal>): "
-"Fixando <literal>lazy=\"false\"</literal> desabilita o uso da recuperação "
-"atrasada."
+"inicialização lazy."
#. Tag: para
-#: basic_mapping.xml:2132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
"subclass must, however, declare a table column holding the object identifier "
"using the <literal><key></literal> element. The mapping at the start "
"of the chapter would then be re-written as:"
msgstr ""
-"A coluna discriminator requerida para esta estratégia de mapeamento. Porém, "
-"cada subclasse deve declarar uma coluna de tabela com o identificador do "
+"A coluna discriminadora não é requerida para esta estratégia de mapeamento. "
+"Cada subclasse deve declarar uma coluna de tabela com o identificador do "
"objeto usando o elemento <literal><key></literal>. O mapeamento no "
-"inÃcio do capÃtulo poderia ser re-escrito assim:"
+"inÃcio do capÃtulo poderia ser re-escrito assim: "
-#. Tag: programlisting
-#: basic_mapping.xml:2139
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Union-subclass"
-msgstr "union-subclass"
+msgstr "Subclasse de União"
#. Tag: para
-#: basic_mapping.xml:2150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
"hierarchy to tables. This is called the table-per-concrete-class strategy. "
@@ -4183,94 +3176,46 @@
"need to use the <literal><union-subclass></literal> mapping. For "
"example:"
msgstr ""
-"Uma terceira opção é mapear para tabelas apenas as classes concretas de uma "
-"hierarquia de heranças, (a estratégia table-per-concrete-class) onde cada "
-"tabela define todos os estados persistentes da classe, incluindo estados "
-"herdados. No Hibernate, não é absolutamente necessário mapear explicitamente "
-"como hierarquia de heranças. Você pode simplesmente mapear cada classe com "
-"uma declaração <literal><class></literal> separada. Porém, se você "
-"deseja usar associações polimórficas (por exemplo: uma associação para a "
-"superclasse de sua hierarquia), você precisa usar o mapeamento <literal><"
-"union-subclass></literal>."
+"Uma terceira opção é mapear apenas as classes concretas de uma hierarquia de "
+"heranças para tabelas. Isto é chamado estratégia table-per-concrete-class. "
+"Cada tabela define todos os estados persistentes da classe, incluindo "
+"estados herdados. No Hibernate, não é absolutamente necessário mapear "
+"explicitamente como hierarquia de heranças. Você pode simplesmente mapear "
+"cada classe com uma declaração <literal><class></literal> separada. "
+"Porém, se você deseja usar associações polimórficas (por exemplo: uma "
+"associação para a superclasse de sua hierarquia), você precisa usar o "
+"mapeamento <literal><union-subclass></literal>. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
msgstr ""
-"A coluna discriminatõria não é requerida para esta estratégia de mapeamento."
+"A coluna discriminatória não é requerida para esta estratégia de mapeamento."
#. Tag: title
-#: basic_mapping.xml:2206
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Join"
-msgstr "join"
+msgstr "União "
#. Tag: para
-#: basic_mapping.xml:2208
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
"properties of one class to several tables that have a one-to-one "
"relationship. For example:"
msgstr ""
"Usando o elemento <literal><join></literal>>, é possÃvel mapear "
-"propriedades de uma classe para várias tabelas."
+"propriedades de uma classe para várias tabelas que possuem uma relação um "
+"por um. Por exemplo:"
-#. Tag: programlisting
-#: basic_mapping.xml:2222
-#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
-msgstr "<literal>table</literal>: O nome da tabela associada."
+msgstr "<literal>table</literal>: O nome da tabela associada. "
#. Tag: para
-#: basic_mapping.xml:2243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"if set to <literal>join</literal>, the default, Hibernate will use an inner "
@@ -4282,185 +3227,139 @@
"instance of the subclass. Inner joins will still be used to retrieve a "
"<literal><join></literal> defined by the class and its superclasses."
msgstr ""
-"<literal>fetch</literal>(opcional â valor default <literal>join</literal>): "
-"Se setado para <literal>join</literal>, o padrão, o Hibernate irá usar um "
-"inner join para restaurar um <literal>join</literal> definido por uma classe "
-"ou suas subclasses e uma outer join para um <literal>join</literal> definido "
-"por uma subclasse. Se setado para <literal>select</literal>, então o "
-"Hibernate irá usar uma seleção seqüencial para um <literal><join></"
-"literal> definida numa subclasse, que irá ser emitido apenas se uma linha se "
-"concentrar para representar uma instância da subclasse. Inner joins irá "
-"ainda ser usado para restaurar um <literal><join></literal> definido "
-"pela classe e suas superclasses."
+"<literal>fetch</literal>(opcional â valor padrão <literal>join</literal>): "
+"Se ajustado para <literal>join</literal>, o padrão, o Hibernate irá usar uma "
+"união interna para restaurar um <literal>join</literal> definido por uma "
+"classe ou suas subclasses e uma união externa para um <literal>join</"
+"literal> definido por uma subclasse. Se ajustado para <literal>select</"
+"literal>, então o Hibernate irá usar uma seleção seqüencial para um "
+"<literal><join></literal> definida numa subclasse, que será emitido "
+"apenas se uma linha representar uma instância da subclasse. Uniões internas "
+"ainda serão utilizadas para restaurar um <literal><join></literal> "
+"definido pela classe e suas superclasses. "
#. Tag: para
-#: basic_mapping.xml:2256
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will not insert or update the properties "
"defined by this join."
msgstr ""
-"<literal>inverse</literal> (opcional â valor default <literal>false</"
-"literal>): Se habilitado, o Hibernate não irá tentar inserir ou atualizar as "
-"propriedades definidas por este join."
+"<literal>inverse</literal> (opcional â padrão para <literal>false</"
+"literal>): Se habilitado, o Hibernate não tentará inserir ou atualizar as "
+"propriedades definidas por esta união."
#. Tag: para
-#: basic_mapping.xml:2263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will insert a row only if the properties "
"defined by this join are non-null. It will always use an outer join to "
"retrieve the properties."
msgstr ""
-"<literal>optional</literal> (opcional â valor default <literal>false</"
+"<literal>optional</literal> (opcional â padrão para <literal>false</"
"literal>): Se habilitado, o Hibernate irá inserir uma linha apenas se as "
-"propriedades definidas por esta junção não forem nulas e irá sempre usar uma "
-"outer join para recuperar as propriedades."
+"propriedades, definidas por esta junção, não forem nulas. Isto irá sempre "
+"usar uma união externa para recuperar as propriedades."
#. Tag: para
-#: basic_mapping.xml:2272
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
"table while preserving value type semantics for all properties:"
msgstr ""
"Por exemplo, a informação de endereço para uma pessoa pode ser mapeada para "
-"uma tabela separada (enquanto preservando o valor da semântica de tipos para "
-"todas as propriedades):"
+"uma tabela separada, enquanto preservando o valor da semântica de tipos para "
+"todas as propriedades:"
-#. Tag: programlisting
-#: basic_mapping.xml:2277
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2279
-#, fuzzy, no-c-format
-msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
"tables than classes and a fine-grained domain model. However, it is useful "
"for switching between inheritance mapping strategies in a single hierarchy, "
"as explained later."
msgstr ""
-"Esta caracterÃstica é útil apenas para modelos de dados legados, nós "
-"recomendamos menos tabelas do que classes e um modelo de domÃnio bem "
-"granulado. Porém, é útil para ficar trocando entre estratégias de mapeamento "
-"de herança numa hierarquia simples, como explicado mais a frente."
+"Esta caracterÃstica é útil apenas para modelos de dados legados. Nós "
+"recomendamos menos tabelas do que classes e um modelo de domÃnio fine-"
+"grained. Porém, é útil para ficar trocando entre estratégias de mapeamento "
+"de herança numa hierarquia simples, como explicaremos mais a frente."
#. Tag: title
-#: basic_mapping.xml:2289
#, no-c-format
-msgid "<title>Key</title>"
-msgstr ""
+msgid "Key"
+msgstr "Key"
#. Tag: para
-#: basic_mapping.xml:2291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
"this guide. It appears anywhere the parent mapping element defines a join to "
"a new table that references the primary key of the original table. It also "
"defines the foreign key in the joined table:"
msgstr ""
-"Nós vimos que o elemento <literal><key></literal> surgiu algumas vezes "
-"até agora. Ele aparece em qualquer lugar que o elemento pai define uma "
-"junção para a nova tabela, e define a chave estrangeira para a tabela "
-"associada, que referencia a chave primária da tabela original."
+"Vimos que o elemento <literal><key></literal> (chave) surgiu algumas "
+"vezes até agora. Ele aparece em qualquer lugar que o elemento pai define uma "
+"junção para a nova tabela, e define a chave exterior para a tabela "
+"associada. Ele também referencia a chave primária da tabela original:"
-#. Tag: programlisting
-#: basic_mapping.xml:2307
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2318
-#, fuzzy, no-c-format
-msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
"literal>): specifies whether the foreign key constraint has database-level "
"cascade delete enabled."
msgstr ""
-"<literal>on-delete</literal> (opcional, valor default <literal>noaction</"
-"literal>): Especifica se a constraint da chave estrangeira no banco de dados "
-"esta habilitada para cascade delete ."
+"<literal>on-delete</literal> (opcional, padrão para <literal>noaction</"
+"literal>): Especifica se a restrição da chave exterior no banco de dados "
+"está habilitada para o deletar cascade."
#. Tag: para
-#: basic_mapping.xml:2325
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
"refers to columns that are not the primary key of the original table. It is "
"provided for legacy data."
msgstr ""
-"<literal>property-ref</literal> (opcional): Especifica que a chave "
-"estrangeira se refere a colunas que não são chave primária da tabela "
-"original. (Util para base de dados legadas.)"
+"<literal>property-ref</literal> (opcional): Especifica que a chave exterior "
+"se refere a colunas que não são chave primária da tabela original. Ãtil para "
+"os dados legados."
#. Tag: para
-#: basic_mapping.xml:2332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
"columns are not nullable. This is implied whenever the foreign key is also "
"part of the primary key."
msgstr ""
"<literal>not-null</literal> (opcional): Especifica que a coluna da chave "
-"estrangeira não aceita valores nulos (isto é implÃcito em qualquer momento "
-"que a chave estrangeira também fizer parte da chave primária)."
+"exterior não aceita valores nulos. Isto é implÃcito em qualquer momento que "
+"a chave exterior também fizer parte da chave primária."
#. Tag: para
-#: basic_mapping.xml:2339
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
"never be updated. This is implied whenever the foreign key is also part of "
"the primary key."
msgstr ""
-"<literal>update</literal> (optional): Specifies that the foreign key should "
-"never be updated (this is implied whenever the foreign key is also part of "
-"the primary key). <literal>update</literal> (opcional): Especifica que a "
-"chave estrangeira nunca deve ser atualizada (isto é implÃcito em qualquer "
-"momento que a chave estrangeira também fizer parte da chave primária)."
+"<literal>update</literal> (opcional): Especifica que a chave exterior nunca "
+"deve ser atualizada. Isto está implÃcito em qualquer momento que a chave "
+"exterior também fizer parte da chave primária."
#. Tag: para
-#: basic_mapping.xml:2346
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
"have a unique constraint. This is implied whenever the foreign key is also "
"the primary key."
msgstr ""
-"<literal>unique</literal> (opcional): Especifica que a chave estrangeira "
-"deve ter uma constraint unique (sto é implÃcito em qualquer momento que a "
-"chave estrangeira também fizer parte da chave primária)."
+"<literal>unique</literal> (opcional): Especifica que a chave exterior deve "
+"ter uma restrição única. Isto é, implÃcito em qualquer momento que a chave "
+"exterior também fizer parte da chave primária."
#. Tag: para
-#: basic_mapping.xml:2354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate "
@@ -4469,17 +3368,15 @@
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
-"Nós recomendamos que para sistemas que a performance de delete seja "
-"importante, todas as chaves deve ser definida <literal>on-delete=\"cascade"
-"\"</literal>, e o Hibernate irá usar uma constraint a nÃvel de banco de "
-"dados <literal>ON CASCADE DELETE</literal>, ao invés de muitas instruções "
+"Nós recomendamos que para sistemas que o desempenho deletar seja importante, "
+"todas as chaves devem ser definidas <literal>on-delete=\"cascade\"</"
+"literal>. O Hibernate irá usar uma restrição a nÃvel de banco de dados "
+"<literal>ON CASCADE DELETE</literal>, ao invés de muitas instruções "
"<literal>DELETE</literal>. Esteja ciente que esta caracterÃstica é um atalho "
-"da estratégia usual de optimistic locking do Hibernate para dados "
-"versionados."
+"da estratégia usual de bloqueio otimista do Hibernate para dados versionados."
#. Tag: para
-#: basic_mapping.xml:2362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
"useful when mapping a unidirectional one-to-many association. If you map a "
@@ -4487,88 +3384,59 @@
"<emphasis>must</emphasis> declare the key column using <literal><key not-"
"null=\"true\"></literal>."
msgstr ""
-"Os atributos <literal>not-null</literal> e <literal>update</literal> são "
-"úteis quando estamos mapeamos uma associação unidirecional um para muitos. "
-"Se você mapear uma asociação unidirecional um para muitos para uma chave "
-"estrangeira non-nullable, você <emphasis>deve</emphasis> declarar a coluna "
-"chave usando <literal><key not-null=\"true\"></literal>."
+"As funções <literal>not-null</literal> e <literal>update</literal> são úteis "
+"quando estamos mapeando uma associação unidirecional um para muitos. Se você "
+"mapear uma associação unidirecional um para muitos para uma chave exterior "
+"não-nula, você <emphasis>deve</emphasis> declarar a coluna chave usando "
+"<literal><key not-null=\"true\"></literal>."
#. Tag: title
-#: basic_mapping.xml:2372
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Column and formula elements"
-msgstr "elementos column e formula"
+msgstr "Elementos coluna e fórmula "
#. Tag: para
-#: basic_mapping.xml:2373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
"alternatively accept a <literal><column></literal> subelement. "
"Likewise, <literal><formula></literal> is an alternative to the "
"<literal>formula</literal> attribute. For example:"
msgstr ""
-"Qualquer elemento de mapeamente que aceita um atributo <literal>column</"
-"literal> irá aceitar alternativamente um subelemento <literal><column>"
-"</literal>. Da mesma forma, <literal>formula</literal> é uma alternativa "
-"para o atributo <literal>formula</literal>."
+"Qualquer elemento de mapeamento que aceita uma função <literal>column</"
+"literal> irá aceitar alternativamente um sub-elemento <literal><column>"
+"</literal>. Da mesma forma, <literal><formula></literal> é uma "
+"alternativa para a função <literal>formula</literal>."
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
-"O atributo <literal>column</literal> e <literal>formula</literal> podem até "
+"As funções <literal>column</literal> e <literal>formula</literal> podem até "
"ser combinados dentro da mesma propriedade ou associação mapeando para "
-"expressar, por exemplo, associações exóticas."
+"expressar, por exemplo, condições de associações exóticas."
-#. Tag: programlisting
-#: basic_mapping.xml:2389
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Import"
-msgstr "import"
+msgstr "Importar "
#. Tag: para
-#: basic_mapping.xml:2396
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
"do not want to specify the fully qualified package name in Hibernate "
@@ -4576,56 +3444,36 @@
"<literal>auto-import=\"true\"</literal>. You can also import classes and "
"interfaces that are not explicitly mapped:"
msgstr ""
-"Suponha que a sua aplicação tem duas classes persistentes com o mesmo nome, "
-"e você não quer especificar o nome qualificado (do pacote) nas queries do "
-"Hibernate. As Classes devem ser \"importadas\" explicitamente, de "
+"Vamos supor que a sua aplicação tenha duas classes persistentes com o mesmo "
+"nome, e você não quer especificar o nome qualificado do pacote nas consultas "
+"do Hibernate. As Classes deverão ser \"importadas\" explicitamente, de "
"preferência contando com <literal>auto-import=\"true\"</literal>. Você pode "
-"até importar classes e interfaces que não estão explicitamente mapeadas."
+"até importar classes e interfaces que não estão explicitamente mapeadas:"
-#. Tag: programlisting
-#: basic_mapping.xml:2403
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2413
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
msgstr ""
-"<literal>class</literal>: O nome qualificado (do pacote) de qualquer classe "
+"<literal>class</literal>: O nome qualificado do pacote de qualquer classe "
"Java."
#. Tag: para
-#: basic_mapping.xml:2418
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
-"<literal>rename</literal> (opcional â valor default, o nome da classe não "
+"<literal>rename</literal> (opcional â padrão para o nome da classe não "
"qualificada): Um nome que pode ser usado numa linguagem de consulta."
#. Tag: title
-#: basic_mapping.xml:2429
#, no-c-format
-msgid "<title>Any</title>"
-msgstr ""
+msgid "Any"
+msgstr "Any"
#. Tag: para
-#: basic_mapping.xml:2431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
"literal> mapping element defines a polymorphic association to classes from "
@@ -4640,15 +3488,14 @@
"<literal><any></literal> define uma associação polimórfica para "
"classes de múltiplas tabelas. Este tipo de mapeamento sempre requer mais de "
"uma coluna. A primeira coluna possui o tipo da entidade associada. A outra "
-"coluna que ficou possui o identificador. Ã impossÃvel especificar uma "
-"restrição de chave estrangeira para este tipo de associação, assim isto "
-"claramente não é visto como um caminho usual para associações (polimórficas) "
+"coluna restante possui o identificador. Ã impossÃvel especificar uma "
+"restrição de chave exterior para este tipo de associação, portanto isto "
+"certamente não é visto como um caminho usual para associações (polimórficas) "
"de mapeamento. Você deve usar este mapeamento apenas em casos muito "
-"especiais (exemplo: audit logs, dados de sessão do usuário, etc)."
+"especiais. Por exemplo: audit logs, dados de sessão do usuário, etc. "
#. Tag: para
-#: basic_mapping.xml:2441
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
"a custom type that maps database column values to persistent classes that "
@@ -4656,115 +3503,74 @@
"literal>. You must specify the mapping from values of the meta-type to class "
"names."
msgstr ""
-"O atributo <literal>meta-type</literal> permite a aplicação especificar um "
+"A função <literal>meta-type</literal> permite que a aplicação especifique um "
"tipo adaptado que mapeia valores de colunas de banco de dados para classes "
-"persistentes que tem propriedades identificadoras do tipo especificado "
+"persistentes que possuem propriedades identificadoras do tipo especificado "
"através do <literal>id-type</literal>. Você deve especificar o mapeamento de "
-"valores do meta-type para nome de classes."
+"valores do meta-type para nome de classes. "
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
msgstr "<literal>name</literal>: o nome da propriedade."
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
msgstr "<literal>id-type</literal>: o tipo identificador."
#. Tag: para
-#: basic_mapping.xml:2472
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
"literal>): any type that is allowed for a discriminator mapping."
msgstr ""
-"<literal>meta-type</literal> (opcional â valor default <literal>string</"
+"<literal>meta-type</literal> (opcional â padrão para <literal>string</"
"literal>): Qualquer tipo que é permitido para um mapeamento discriminador."
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
"the cascade style."
msgstr ""
-"<literal>cascade</literal> (opcional â valor default <literal>none</"
-"literal>): o estilo do cascade."
+"<literal>cascade</literal> (opcional â valor padrão <literal>none</"
+"literal>): o estilo cascata."
#. Tag: para
-#: basic_mapping.xml:2490
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property either do or do not "
"require acquisition of the optimistic lock. It defines whether a version "
"increment should occur if this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (opcional - valor default<literal>true</"
+"<literal>optimistic-lock</literal> (opcional - valor padrão<literal>true</"
"literal>): Especifica que as atualizações para esta propriedade requerem ou "
-"não aquisição da trava otimista. Em outras palavras, define se uma versão de "
-"incremento deve ocorrer se esta propriedade está modificada."
+"não aquisição da bloqueio otimista. Em outras palavras, define se uma versão "
+"de incremento deve ocorrer se esta propriedade for suja."
#. Tag: title
-#: basic_mapping.xml:2505
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate types"
-msgstr "Tipos do Hibernate"
+msgstr "Tipos do Hibernate "
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
msgstr "Entidades e valores"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
"classified into two groups:"
msgstr ""
+"Os objetos de nÃvel de linguagem Java são classificados em dois grupos, em "
+"relação ao serviço de persistência:"
#. Tag: para
-#: basic_mapping.xml:2515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
"holding references to the entity. Contrast this with the usual Java model, "
@@ -4776,20 +3582,19 @@
"large systems. Entities support circular and shared references. They can "
"also be versioned."
msgstr ""
-"Uma <emphasis>entidade </emphasis> existe independentemente de qualquer "
-"outro objeto guardando referências para a entidade. Em contraste com o "
-"modelo usual de Java que um objeto não referenciado é coletado pelo garbage "
-"collector. Entidades devem ser explicitamente salvas ou deletada (exceto em "
+"Uma <emphasis>entidade</emphasis> existe independentemente de qualquer outro "
+"objeto guardando referências para a entidade. Em contraste com o modelo "
+"usual de Java que um objeto não referenciado é coletado pelo coletor de "
+"lixo. Entidades devem ser explicitamente salvas ou deletadas (exceto em "
"operações de salvamento ou deleção que possam ser executada em "
"<emphasis>cascata</emphasis> de uma entidade pai para seus filhos). Isto é "
-"diferente do modelo ODMG de persistência do objeto por acessibilidade â e "
-"corresponde quase a como objetos de aplicações são geralmente usados em "
+"diferente do modelo ODMG de persistência do objeto por acessibilidade e se "
+"refere mais à forma como os objetos de aplicações são geralmente usados em "
"grandes sistemas. Entidades suportam referências circulares e comuns. Eles "
-"podem ser versionadas."
+"podem ser versionados."
#. Tag: para
-#: basic_mapping.xml:2526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value</emphasis> types. Values are primitives: "
@@ -4801,19 +3606,18 @@
"no independent identity, so they cannot be shared by two entities or "
"collections."
msgstr ""
-"Uma entidade em estado persistente consiste de referências para outras "
+"O estado persistente da entidade consiste de referências para outras "
"entidades e instâncias de tipos de <emphasis>valor</emphasis>. Valores são "
-"primitivos, coleções (não o que tem dentro de uma coleção), componentes e "
+"primitivos: coleções (não o que tem dentro de uma coleção), componentes e "
"certos objetos imutáveis. Entidades distintas, valores (em coleções e "
-"componentes particulares) <emphasis>são </emphasis> persistidos e apagados "
-"por acessibilidade. Visto que objetos value (e primitivos) são persistidos e "
-"apagados junto com as entidades que os contém e não podem ser versionados "
-"independentemente. Valores têm identidade não independente, assim eles não "
-"podem ser comuns para duas entidades ou coleções."
+"componentes particulares) <emphasis>são</emphasis> persistidos e apagados "
+"por acessibilidade. Visto que objetos de valor (e primitivos) são "
+"persistidos e apagados junto com as entidades que os contém e não podem ser "
+"versionados independentemente. Valores têm identidade não independente, "
+"assim eles não podem ser comuns para duas entidades ou coleções."
#. Tag: para
-#: basic_mapping.xml:2537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
"entities. We will continue to do that. Not all user-defined classes with a "
@@ -4827,29 +3631,27 @@
"single instance of that class, while composition or aggregation usually "
"translates to a value type."
msgstr ""
-"Até agora, nós estivemos usando o termo \"classe persistente\" para referir "
-"a entidades. Nós iremos continuar a fazer isto. Falando a rigor, porém, nem "
-"todas as classes definidas pelo usuário com estados persistentes são "
-"entidades. Um <emphasis>componente</emphasis> é uma classe de usuário "
-"definida com valores semânticos. Uma propriedade de Java de tipo "
-"<literal>java.lang.String</literal> também tem um valor semêntico. Dada esta "
-"definição, nós podemos dizer que todos os tipos (classes) fornecida pelo JDK "
-"tem tipo de valor semântico em Java, enquanto que tipos definidos pelo "
-"usuário pode ser mapeados com entidade ou valor de tipo semântico. Esta "
-"decisão pertence ao desenvolvedor da aplicação. Uma boa dica para uma classe "
-"entidade em um modelo de domÃnio são referências comuns para uma instância "
-"simples daquela classe, enquanto a composição ou agregação geralmente se "
-"traduz para um valor de tipo."
+"Até agora, estivemos usando o termo \"classe persistente\" para referir às "
+"entidades. Continuaremos a fazer isto. No entanto, nem todas as classes "
+"definidas pelo usuário com estados persistentes são entidades. Um "
+"<emphasis>componente</emphasis> é uma classe de usuário definida com valores "
+"semânticos. Uma propriedade de Java de tipo <literal>java.lang.String</"
+"literal> também tem um valor semântico. Dada esta definição, nós podemos "
+"dizer que todos os tipos (classes) fornecidos pelo JDK têm tipo de valor "
+"semântico em Java, enquanto que tipos definidos pelo usuário, podem ser "
+"mapeados com entidade ou valor de tipo semântico. Esta decisão pertence ao "
+"desenvolvedor da aplicação. Uma boa dica para uma classe de entidade em um "
+"modelo de domÃnio são referências comuns para uma instância simples daquela "
+"classe, enquanto a composição ou agregação geralmente se traduz para um tipo "
+"de valor."
#. Tag: para
-#: basic_mapping.xml:2551
-#, fuzzy, no-c-format
+#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
-msgstr "Nós iremos rever ambos os conceitos durante toda a documentação."
+msgstr "Iremos rever ambos os conceitos durante todo o guia de referência."
#. Tag: para
-#: basic_mapping.xml:2555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
"of entities and value types, to the SQL/database type system. The bridge "
@@ -4862,57 +3664,51 @@
"for standard JDK value types out of the box. You can write your own mapping "
"types and implement your own custom conversion strategies."
msgstr ""
-"O desafio pe mapear o sistema de tipo de Java (e a definição do "
-"desenvolvedor de entidades e tipos de valor) para o sistema de tipo SQL/"
-"banco de dados. A ponte entre ambos os sistemas é fornecido pelo Hibernate: "
-"para entidades que usam <literal><class></literal>, <literal><"
-"subclass></literal> e assim por diante. Para tipos de valores nós usamos "
-"<literal><property></literal>, <literal><component></literal>, "
-"etc, geralmente com um atributo <literal>type</literal>. O valor deste "
-"atributo é o nome de um <emphasis>tipo de mapeamento</emphasis> do "
-"Hibernate. O Hibernate fornece muitos mapeamentos (para tipos de valores do "
-"JDK padrão) ut of the box. Você pode escrever os seus próprios tipos de "
-"mapeamentos e implementar sua estratégia de conversão adaptada, como você "
-"verá adiante."
+"O desafio é mapear o sistema de tipo de Java e a definição do desenvolvedor "
+"de entidades e tipos de valor para o sistema de tipo SQL/banco de dados. A "
+"ponte entre ambos os sistemas é fornecida pelo Hibernate. Para entidades que "
+"usam <literal><class></literal>, <literal>< subclass></literal> "
+"e assim por diante. Para tipos de valores nós usamos <literal><"
+"property></literal>, <literal><component></literal>, etc, "
+"geralmente com uma função <literal>type</literal>. O valor desta função é o "
+"nome de um <emphasis>tipo de mapeamento</emphasis> do Hibernate. O Hibernate "
+"fornece muitos mapeamentos imediatos para tipos de valores do JDK padrão. "
+"Você pode escrever os seus próprios tipos de mapeamentos e implementar sua "
+"estratégia de conversão adaptada, como você."
#. Tag: para
-#: basic_mapping.xml:2568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
msgstr ""
-"Todos os tipos internos do hibernate exceto coleções suportam semânticas "
-"nulas."
+"Todos os tipos internos do hibernate exceto coleções, suportam semânticas "
+"nulas com a exceção das coleções."
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
msgstr "Valores de tipos básicos"
#. Tag: para
-#: basic_mapping.xml:2577
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
"categorized into the following:"
msgstr ""
-"O tipos internos de mapeamentos básicos podem ser a grosso modo categorizado "
-"como: <placeholder-1/>"
+"Os <emphasis>tipos de mapeamento básicos</emphasis> fazem parte da "
+"categorização do seguinte:"
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -4920,19 +3716,17 @@
"<literal>true_false</literal> are all alternative encodings for a Java "
"<literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-"Tipos de mapeamentos de classes primitivas ou wrapper Java especificos "
+"Tipos de mapeamentos de classes primitivas ou wrapper Java especÃficos "
"(vendor-specific) para tipos de coluna SQL. Boolean, <literal>boolean, "
"yes_no</literal> são todas codificações alternativas para um "
"<literal>boolean</literal> ou <literal>java.lang.Boolean</literal> do Java."
-#. Tag: literal
-#: basic_mapping.xml:2594
+#. Tag: term
#, no-c-format
-msgid "string"
-msgstr "string"
+msgid "<literal>string</literal>"
+msgstr "<literal>string</literal>"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
@@ -4941,14 +3735,12 @@
"Um tipo de mapeamento de <literal>java.lang.String</literal> para "
"<literal>VARCHAR</literal> (ou <literal>VARCHAR2</literal> no Oracle)."
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
-msgstr "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
+msgstr "<literal>date, time, timestamp</literal>"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
@@ -4959,14 +3751,12 @@
"para os tipos SQL <literal>DATE</literal>, <literal>TIME</literal> e "
"<literal>TIMESTAMP</literal> (ou equivalente)."
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
-msgstr "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
@@ -4975,14 +3765,12 @@
"Tipo de mapeamento de <literal>java.util.Calendar</literal> para os tipos "
"SQL <literal>TIMESTAMP</literal> e <literal>DATE</literal> (ou equivalente)."
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
-msgstr "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
+msgstr "<literal>big_decimal, big_integer</literal>"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
@@ -4993,14 +3781,12 @@
"<literal>java.math.BigInteger</literal> para <literal>NUMERIC</literal> (ou "
"<literal>NUMBER</literal> no Oracle)."
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
-msgstr "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
+msgstr "<literal>locale, timezone, currency</literal>"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -5017,62 +3803,53 @@
"mapeados para seus códigos ISO. Instâncias de <literal>TimeZone</literal> "
"são mapeados para seu <literal>ID</literal>."
-#. Tag: literal
-#: basic_mapping.xml:2647
+#. Tag: term
#, no-c-format
-msgid "class"
-msgstr "class"
+msgid "<literal>class</literal>"
+msgstr "<literal>class</literal>"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>). A <literal>Class</literal> "
"is mapped to its fully qualified name."
msgstr ""
-"um tipo de mapeamento de <literal>java.lang.Class</literal> para "
+"Um tipo de mapeamento de <literal>java.lang.Class</literal> para "
"<literal>VARCHAR</literal> (ou <literal>VARCHAR2</literal> no Oracle). Uma "
"<literal>Class</literal> é mapeada pelo seu nome qualificado (completo)."
-#. Tag: literal
-#: basic_mapping.xml:2657
+#. Tag: term
#, no-c-format
-msgid "binary"
-msgstr "binary"
+msgid "<literal>binary</literal>"
+msgstr "<literal>binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
-msgstr "Mapeia arrays de bytes para um tipo binário de SQL apropriado."
+msgstr "Mapeia matrizes de bytes para um tipo binário de SQL apropriado."
-#. Tag: literal
-#: basic_mapping.xml:2665
+#. Tag: term
#, no-c-format
-msgid "text"
-msgstr "text"
+msgid "<literal>text</literal>"
+msgstr "<literal>text</literal>"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
"literal> type."
msgstr ""
-"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
-"literal> type. Mapeia strings longas de Java para um tipo SQL <literal>CLOB</"
-"literal> ou <literal>TEXT</literal>."
+"Mapeia strings de Java longos para um tipo SQL <literal>CLOB</literal> ou "
+"<literal>TEXT</literal>. "
-#. Tag: literal
-#: basic_mapping.xml:2674
+#. Tag: term
#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+msgid "<literal>serializable</literal>"
+msgstr "<literal>serializable</literal>"
#. Tag: para
-#: basic_mapping.xml:2676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
"indicate the Hibernate type <literal>serializable</literal> with the name of "
@@ -5081,17 +3858,15 @@
"Mapeia tipos Java serializáveis para um tipo binário SQL apropriado. Você "
"pode também indicar o tipo <literal>serializable</literal> do Hibernate com "
"o nome da classe ou interface Java serializável que não é padrão para um "
-"tipo básico."
+"tipo básico. "
-#. Tag: literal
-#: basic_mapping.xml:2685
+#. Tag: term
#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>clob, blob</literal>"
#. Tag: para
-#: basic_mapping.xml:2687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
"<literal>java.sql.Blob</literal>. These types can be inconvenient for some "
@@ -5099,24 +3874,22 @@
"transaction. Driver support is patchy and inconsistent."
msgstr ""
"Tipos de mapeamentos para as classes JDBC <literal>java.sql.Clob</literal> "
-"and <literal>java.sql.Blob</literal>. Estes tipos podem ser inconveniente "
-"para algumas aplicações, visto que o objeto blob ou clob pode não ser "
-"reusado fora de uma transação. (Além disso, o suporte de driver é imcompleto "
-"e inconsistente.)"
+"and <literal>java.sql.Blob</literal>. Estes tipos podem ser inconvenientes "
+"para algumas aplicações, visto que o objeto blob ou clob não pode ser "
+"reusado fora de uma transação. Além disso, o suporte de driver é imcompleto "
+"e inconsistente."
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
"Hibernate makes certain optimizations appropriate only for immutable Java "
@@ -5126,17 +3899,16 @@
"have that change made persistent, the application must assign a new, "
"nonidentical, object to the property."
msgstr ""
-"Mapeando tipos para o que geralmente são consideradas tipos mutáveis de "
-"Java, onde o Hibernate faz determinadas otimizações apropriadas somente para "
-"tipos imutáveis de Java, e a aplicação trata o objeto como imutável. Por "
-"exemplo, você não deve chamar <literal>Date.setTime()</literal> para uma "
-"instância mapeada como <literal>imm_timestamp</literal>. Para mudar o valor "
-"da propriedade, e ter a mudança feita persistente, a aplicação deve atribuir "
-"um novo objeto (nonidentical) Ã propriedade."
+"Mapeamento de tipos para, os geralmente considerados, tipos mutáveis de "
+"Java. Isto é onde o Hibernate faz determinadas otimizações apropriadas "
+"somente para tipos imutáveis de Java, e a aplicação trata o objeto como "
+"imutável. Por exemplo, você não deve chamar <literal>Date.setTime()</"
+"literal> para uma instância mapeada como <literal>imm_timestamp</literal>. "
+"Para mudar o valor da propriedade, e ter a mudança feita persistente, a "
+"aplicação deve atribuir um novo objeto (nonidentical) à propriedade."
#. Tag: para
-#: basic_mapping.xml:2716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</"
@@ -5145,11 +3917,10 @@
msgstr ""
"Identificadores únicos das entidades e coleções podem ser de qualquer tipo "
"básico exceto <literal>binary</literal>, <literal>blob</literal> ou "
-"<literal>clob</literal>. (Identificadores compostos também são permitidos, "
-"veja abaixo.)"
+"<literal>clob</literal>. (Identificadores compostos também são permitidos. "
+"Leia abaixo para maiores informações."
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -5163,14 +3934,12 @@
"<literal>string</literal>."
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr "Tipos de valores personalizados"
#. Tag: para
-#: basic_mapping.xml:2733
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
"example, you might want to persist properties of type <literal>java.lang."
@@ -5182,20 +3951,19 @@
"that is persisted to the columns <literal>FIRST_NAME</literal>, "
"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
-"à relativamente fácil para desenvolvedores criar seus próprios tipos de "
-"valor. Por exemplo, você pode querer persistir propriedades do tipo "
+"à relativamente fácil para desenvolvedores criarem seus próprios tipos de "
+"valores. Por exemplo, você pode querer persistir propriedades do tipo "
"<literal>java.lang.BigInteger</literal> para colunas <literal>VARCHAR</"
"literal>. O Hibernate não fornece um tipo correspondente para isso. Mas os "
-"tipos adaptados não são limitados a mapeamento de uma propriedade (ou "
-"elemento de coleção) a uma única coluna da tabela. Assim, por exemplo, você "
-"pôde ter uma propriedade Java <literal>getName()</literal>/<literal>setName()"
+"tipos adaptados não são limitados a mapeamento de uma propriedade, ou "
+"elemento de coleção, a uma única coluna da tabela. Assim, por exemplo, você "
+"pode ter uma propriedade Java <literal>getName()</literal>/<literal>setName()"
"</literal> do tipo <literal>java.lang.String</literal> que é persistido para "
"colunas <literal>FIRST_NAME</literal>, <literal>INITIAL</literal>, "
-"<literal>SURNAME</literal>."
+"<literal>SURNAME</literal>. "
#. Tag: para
-#: basic_mapping.xml:2744
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and "
@@ -5204,24 +3972,12 @@
"things that are possible."
msgstr ""
"Para implementar um tipo personalizado, implemente <literal>org.hibernate."
-"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> e "
+"UserType</literal> ou <literal>org.hibernate.CompositeUserType</literal> e "
"declare propriedades usando o nome qualificado da classe do tipo. Veja "
-"<literal>org.hibernate.test.DoubleStringType</literal> para ver o tipo das "
-"coisas que são possÃveis."
+"<literal>org.hibernate.test.DoubleStringType</literal> para outras "
+"funcionalidades. "
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
@@ -5231,7 +3987,6 @@
"propriedade para colunas múltiplas."
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -5245,8 +4000,7 @@
"especializados."
#. Tag: para
-#: basic_mapping.xml:2765
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
"mapping file. To do this, your <literal>UserType</literal> must implement "
@@ -5254,25 +4008,13 @@
"To supply parameters to your custom type, you can use the <literal><"
"type></literal> element in your mapping files."
msgstr ""
-"Você pode mesmo fornecer parâmetros a um <literal>UserType</literal> no "
+"Você mesmo pode fornecer parâmetros a um <literal>UserType</literal> no "
"arquivo de mapeamento. Para isto, seu <literal>UserType</literal> deve "
"implementar a interface <literal>org.hibernate.usertype.ParameterizedType</"
"literal>. Para fornecer parâmetros a seu tipo personalizado, você pode usar "
-"o elemento <literal><type></literal> em seus arquivos de mapeamento."
+"o elemento <literal><type></literal> em seus arquivos de mapeamento. "
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
@@ -5280,12 +4022,11 @@
"object passed to it."
msgstr ""
"O <literal>UserType</literal> pode agora recuperar o valor para o parâmetro "
-"chamado <literal>default</literal> da <literal>Propriedade</literal> do "
+"chamado <literal>padrão</literal> da <literal>Propriedade</literal> do "
"passado a ele."
#. Tag: para
-#: basic_mapping.xml:2780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
"define a shorter name for it. You can do this using the <literal><"
@@ -5296,38 +4037,21 @@
"Se você usar freqüentemente um determinado <literal>UserType</literal>, pode "
"ser útil definir um nome mais curto para ele. Você pode fazer isto usando o "
"elemento <literal><typedef></literal>. Typedefs atribui um nome a um "
-"tipo personalizado, e pode também conter uma lista de valores default de "
-"parâmetro se o tipo for parametrizado."
+"tipo personalizado, e pode também conter uma lista de valores de parâmetro "
+"padrão se o tipo for parametrizado."
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
"case-by-case basis by using type parameters on the property mapping."
msgstr ""
-"It is also possible to override the parameters supplied in a typedef on a "
-"case-by-case basis by using type parameters on the property mapping."
+"Também é possÃvel substituir os parâmetros fornecidos em um tipo de "
+"definição em situações de caso a caso, utilizando tipos de parâmetros no "
+"mapeamento da propriedade."
#. Tag: para
-#: basic_mapping.xml:2796
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
"components means you will rarely need to use a custom type, it is considered "
@@ -5338,25 +4062,23 @@
"is abstraction. With a custom type, your mapping documents would be "
"protected against changes to the way monetary values are represented."
msgstr ""
-"Even though Hibernate's rich range of built-in types and support for "
-"components means you will very rarely <emphasis>need</emphasis> to use a "
-"custom type, it is nevertheless considered good form to use custom types for "
-"(non-entity) classes that occur frequently in your application. For example, "
-"a <literal>MonetaryAmount</literal> class is a good candidate for a "
-"<literal>CompositeUserType</literal>, even though it could easily be mapped "
-"as a component. One motivation for this is abstraction. With a custom type, "
-"your mapping documents would be future-proofed against possible changes in "
-"your way of representing monetary values."
+"Apesar da rica variedade, os tipos construÃdos do Hibernate e suporte para "
+"componentes raramente irão utilizar um tipo de padrão, no entanto, é "
+"considerado uma boa idéia, utilizar tipos customizados para classes não "
+"entidade que ocorrem com freqüência em seu aplicativo. Por exemplo, uma "
+"classe <literal>MonetaryAmount</literal> é um bom candidato para um "
+"<literal>CompositeUserType</literal>, apesar de poder ter sido mapeado "
+"facilmente como um componente. Uma motivação para isto é a abstração. Com um "
+"tipo padronizado, seus documentos de mapeamento seriam colocados à prova "
+"contra mudanças possÃveis na forma de representação de valores monetários. "
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
-msgstr "Mapping a class more than once"
+msgstr "Mapeando uma classe mais de uma vez"
#. Tag: para
-#: basic_mapping.xml:2813
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
"class. In this case, you must specify an <emphasis>entity name</emphasis> to "
@@ -5365,55 +4087,30 @@
"entity name when working with persistent objects, when writing queries, or "
"when mapping associations to the named entity."
msgstr ""
-"It is possible to provide more than one mapping for a particular persistent "
-"class. In this case you must specify an <emphasis>entity name</emphasis> do "
-"disambiguate between instances of the two mapped entities. (By default, the "
-"entity name is the same as the class name.) Hibernate lets you specify the "
-"entity name when working with persistent objects, when writing queries, or "
-"when mapping associations to the named entity."
+"Ã possÃvel fornecer mais de um mapeamento para uma classe persistente em "
+"especÃfico. Neste caso, você deve especificar um <emphasis>nome de entidade</"
+"emphasis> para as instâncias das duas entidades mapeadas não se tornarem "
+"ambÃguas. Por padrão, o nome da entidade é o mesmo do nome da classe. O "
+"Hibernate o deixa especificar o nome de entidade quando estiver trabalhando "
+"com objetos persistentes, quando escrever consultas, ou ao mapear "
+"associações para a entidade nomeada. "
-#. Tag: programlisting
-#: basic_mapping.xml:2821
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2823
-#, fuzzy, no-c-format
-msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
"of <literal>class</literal>."
msgstr ""
-"Notice how associations are now specified using <literal>entity-name</"
-"literal> instead of <literal>class</literal>."
+"Note como as associações são agora especificadas utilizando o "
+"<literal>entity-name</literal> ao invés da <literal>class</literal>. "
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
-msgstr "SQL quoted identifiers"
+msgstr "Identificadores quotados do SQL"
#. Tag: para
-#: basic_mapping.xml:2832
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
"enclosing the table or column name in backticks in the mapping document. "
@@ -5421,49 +4118,33 @@
"literal>. This is usually double quotes, but the SQL Server uses brackets "
"and MySQL uses backticks."
msgstr ""
-"You may force Hibernate to quote an identifier in the generated SQL by "
-"enclosing the table or column name in backticks in the mapping document. "
-"Hibernate will use the correct quotation style for the SQL <literal>Dialect</"
-"literal> (usually double quotes, but brackets for SQL Server and backticks "
-"for MySQL)."
+"Você poderá forçar o Hibernate a quotar um identificador no SQL gerado, "
+"anexando o nome da tabela ou coluna aos backticks no documento de "
+"mapeamento. O Hibernate usará o estilo de quotação correto para o SQL "
+"<literal>Dialect</literal>. Geralmente são quotas dúplas, mas parênteses "
+"para o Servidor SQL e backticks para MeuSQL."
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
-msgstr "Metadata alternatives"
+msgstr "Alternativas de Metadados"
#. Tag: para
-#: basic_mapping.xml:2847
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
"mapping metadata in Hibernate."
msgstr ""
-"XML isn't for everyone, and so there are some alternative ways to define O/R "
-"mapping metadata in Hibernate."
+"O XML não é para todos, e portanto existem algumas formas alternativas de "
+"defiinir o metadado de mapeamento no Hibernate. "
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
-msgstr "Using XDoclet markup"
+msgstr "Usando a marcação XDoclet."
#. Tag: para
-#: basic_mapping.xml:2854
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover "
@@ -5471,137 +4152,27 @@
"XDoclet. However, we include the following example of the <literal>Cat</"
"literal> class with XDoclet mappings:"
msgstr ""
-"Many Hibernate users prefer to embed mapping information directly in "
-"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We will not "
-"cover this approach in this document, since strictly it is considered part "
-"of XDoclet. However, we include the following example of the <literal>Cat</"
-"literal> class with XDoclet mappings."
+"Muitos usuários do Hibernate preferem encubar a informação de mapeamento "
+"diretamente no código de fonte utilizando o XDoclet <literal>@hibernate."
+"tags</literal>. Nós não falaremos sobre esta abordagem neste documento, uma "
+"vez que é estritamente considerado parte de um XDoclet. No entanto, "
+"incluÃmos os seguintes exemplos da classe <literal>Cat</literal> com os "
+"mapeamentos de XDoclet:"
-#. Tag: programlisting
-#: basic_mapping.xml:2861
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
+msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
msgstr ""
+"Veja o web site do Hibernate para maiores detalhes sobre um XDoclet e "
+"Hibernate. "
-#. Tag: para
-#: basic_mapping.xml:2863
-#, fuzzy, no-c-format
-msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
-msgstr "See the Hibernate web site for more examples of XDoclet and Hibernate."
-
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
-msgstr "Using JDK 5.0 Annotations"
+msgstr "Usando as anotações JDK 5.0"
#. Tag: para
-#: basic_mapping.xml:2872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
"type-safe and checked at compile time. This mechanism is more powerful than "
@@ -5614,72 +4185,41 @@
"<emphasis>Hibernate Annotations</emphasis> package as a separate download. "
"Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
msgstr ""
-"JDK 5.0 introduced XDoclet-style annotations at the language level, type-"
-"safe and checked at compile time. This mechnism is more powerful than "
-"XDoclet annotations and better supported by tools and IDEs. IntelliJ IDEA, "
-"for example, supports auto-completion and syntax highlighting of JDK 5.0 "
-"annotations. The new revision of the EJB specification (JSR-220) uses JDK "
-"5.0 annotations as the primary metadata mechanism for entity beans. "
-"Hibernate3 implements the <literal>EntityManager</literal> of JSR-220 (the "
-"persistence API), support for mapping metadata is available via the "
-"<emphasis>Hibernate Annotations</emphasis> package, as a separate download. "
-"Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
+"O JDK 5.0 introduziu as anotações estilo XDoclet em nÃvel de linguagem, tipo "
+"seguro e checado em tempo de compilação. Este mecanismo é mais potente do "
+"que as anotações XDoclet e melhor suportado pelas ferramentas e IDEs. O "
+"IntelliJ IDEA por exemplo, suporta a auto complexão e destaque da sintaxe "
+"das anotações JDK 5.0. A nova revisão da especificação EJB (JSR-220) usa as "
+"anotações JDK 5.0 como mecanismos de metadados para beans de entidade. O "
+"Hibernate3 implementa o <literal>EntityManager</literal> do JSR-220 (o API "
+"de persistência). O suporte para mapear metadados está disponÃvel através do "
+"pacote <emphasis>Anotações do Hibernate</emphasis>, como um download "
+"separado. Ambos os EJB3 (JSR-220) e o metadado Hibernate3 são suportados. "
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
-msgstr "This is an example of a POJO class annotated as an EJB entity bean:"
-
-#. Tag: programlisting
-#: basic_mapping.xml:2887
-#, no-c-format
-msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
msgstr ""
+"Este é um exemplo de uma classe POJO anotado como um bean de entidade EJB:"
#. Tag: para
-#: basic_mapping.xml:2891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
"development. Please refer to the Hibernate Annotations module for more "
"details."
msgstr ""
-"Note that support for JDK 5.0 Annotations (and JSR-220) is still work in "
-"progress and not completed. Please refer to the Hibernate Annotations module "
-"for more details."
+"Note que o suporte para Anotações JDK 5.0 (e JSR-220) ainda está em "
+"construção. Consulte o módulo de Anotações do Hibernate para maiores "
+"detalhes. "
#. Tag: title
-#: basic_mapping.xml:2901
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Generated properties"
-msgstr "Generated Properties"
+msgstr "Propriedades geradas "
#. Tag: para
-#: basic_mapping.xml:2902
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh</"
@@ -5689,17 +4229,16 @@
"an SQL INSERT or UPDATE for an entity that has defined generated properties, "
"it immediately issues a select afterwards to retrieve the generated values."
msgstr ""
-"Generated properties are properties which have their values generated by the "
-"database. Typically, Hibernate applications needed to <literal>refresh</"
-"literal> objects which contain any properties for which the database was "
-"generating values. Marking properties as generated, however, lets the "
-"application delegate this responsibility to Hibernate. Essentially, whenever "
-"Hibernate issues an SQL INSERT or UPDATE for an entity which has defined "
-"generated properties, it immediately issues a select afterwards to retrieve "
-"the generated values."
+"Propriedades Geradas são propriedades que possuem seus valores gerados pelo "
+"banco de dados. Como sempre, os aplicativos do Hibernate precisavam "
+"<literal>renovar</literal> objetos que contenham qualquer propriedade para "
+"qual o banco de dados estivesse gerando valores. No entanto, vamos permitir "
+"que o aplicativo delegue esta responsabilidade ao Hibernate. Essencialmente, "
+"quando o Hibernate edita um SQL INSERT ou UPDATE para uma entidade que tem "
+"propriedades geradas definidas, ele edita imediatamente depois uma seleção "
+"para recuperar os valores gerados."
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -5708,24 +4247,21 @@
"and <link linkend=\"mapping-declaration-property\">simple properties</link>, "
"can be marked as generated."
msgstr ""
-"Properties marked as generated must additionally be non-insertable and non-"
-"updateable. Only <xref linkend=\"mapping-declaration-version\">versions</"
-"xref>, <xref linkend=\"mapping-declaration-timestamp\">timestamps</xref>, "
-"and <xref linkend=\"mapping-declaration-property\">simple properties</xref> "
-"can be marked as generated."
+"As propriedades marcadas como geradas devem ser não-inserÃveis e não-"
+"atualizáveis. Somente <xref linkend=\"mapping-declaration-version\" />, "
+"<xref linkend=\"mapping-declaration-timestamp\" /> e <xref linkend=\"mapping-"
+"declaration-property\"/> podem ser marcadas como geradas."
#. Tag: para
-#: basic_mapping.xml:2918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
"generated within the database."
msgstr ""
-"<literal>never</literal> (the default) - means that the given property value "
-"is not generated within the database."
+"<literal>never</literal> (padrão) - significa que o valor de propriedade "
+"dado não é gerado dentro do banco de dados. "
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -5735,32 +4271,73 @@
"\">timestamp</link> properties can be marked as generated, this option is "
"not available."
msgstr ""
-"<literal>insert</literal> - states that the given property value is "
-"generated on insert, but is not regenerated on subsequent updates. Things "
-"like created-date would fall into this category. Note that even thought "
-"<xref linkend=\"mapping-declaration-version\">version</xref> and <xref "
-"linkend=\"mapping-declaration-timestamp\">timestamp</xref> properties can be "
-"marked as generated, this option is not available there..."
+"<literal>insert</literal>: informa que o valor de propriedade dado é gerado "
+"ao inserir, mas não é novamente gerado nas próximas atualizações. "
+"Propriedades do tipo data criada, se encaixam nesta categoria. Note que "
+"embora as propriedades <xref linkend=\"mapping-declaration-version\"/> e "
+"<xref linkend=\"mapping-declaration-timestamp\"/> podem ser marcadas como "
+"geradas, esta opção não está disponÃvel."
#. Tag: para
-#: basic_mapping.xml:2930
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
"and on update."
msgstr ""
-"<literal>always</literal> - states that the property value is generated both "
-"on insert and on update."
+"<literal>always</literal> - informa que o valor da propriedade é gerado "
+"tanto ao inserir quanto ao atualizar. "
#. Tag: title
-#: basic_mapping.xml:2937
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Auxiliary database objects"
-msgstr "Auxiliary Database Objects"
+msgstr "Objetos de Banco de Dados Auxiliares "
#. Tag: para
-#: basic_mapping.xml:2938
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
"database objects. In conjunction with Hibernate's schema evolution tools, "
@@ -5771,144 +4348,40 @@
"example, ALTERs, INSERTS, etc.). There are essentially two modes for "
"defining auxiliary database objects:"
msgstr ""
-"Allows CREATE and DROP of arbitrary database objects, in conjunction with "
-"Hibernate's schema evolution tools, to provide the ability to fully define a "
-"user schema within the Hibernate mapping files. Although designed "
-"specifically for creating and dropping things like triggers or stored "
-"procedures, really any SQL command that can be run via a <literal>java.sql."
-"Statement.execute()</literal> method is valid here (ALTERs, INSERTS, etc). "
-"There are essentially two modes for defining auxiliary database objects..."
+"Permite o uso dos comandos CREATE e DROP para criar e remover os objetos de "
+"banco de dados arbitrários. Juntamente às ferramentas de evolução do esquema "
+"do Hibernate, eles possuem a habilidade de definir completamente um esquema "
+"de usuário dentro dos arquivos de mapeamento do Hibernate. Embora criado "
+"especificamente para criar e remover algo como trigger ou procedimento "
+"armazenado, qualquer comando SQL que pode rodar através de um método "
+"<literal>java.sql.Statement.execute()</literal> é válido. Existem dois "
+"módulos essenciais para definir objetos de banco de dados auxiliares:"
#. Tag: para
-#: basic_mapping.xml:2947
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
msgstr ""
-"The first mode is to explicitly list the CREATE and DROP commands out in the "
-"mapping file:"
+"O primeiro módulo é para listar explicitamente os comandos CREATE e DROP no "
+"arquivo de mapeamento: "
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2952
-#, fuzzy, no-c-format
-msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
"DROP commands. This custom class must implement the <literal>org.hibernate."
"mapping.AuxiliaryDatabaseObject</literal> interface."
msgstr ""
-"The second mode is to supply a custom class which knows how to construct the "
-"CREATE and DROP commands. This custom class must implement the <literal>org."
-"hibernate.mapping.AuxiliaryDatabaseObject</literal> interface."
+"O segundo módulo é para fornecer uma classe padrão que sabe como construir "
+"os comandos CREATE e DROP. Esta classe padrão deve implementar a interface "
+"<literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal>. "
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2958
-#, fuzzy, no-c-format
-msgid ""
"Additionally, these database objects can be optionally scoped so that they "
"only apply when certain dialects are used."
msgstr ""
-"Additionally, these database objects can be optionally scoped such that they "
-"only apply when certain dialects are used."
-
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#~ msgid ""
-#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
-#~ "type."
-#~ msgstr ""
-#~ "<literal>type</literal> (opcional): Um nome que indica o tipo no "
-#~ "Hibernate."
-
-#~ msgid ""
-#~ "<literal>cascade</literal> (optional): Specifies which operations should "
-#~ "be cascaded from the parent object to the associated object."
-#~ msgstr ""
-#~ "<literal>cascade</literal> (opcional): Especifica quais operações dever "
-#~ "ser em cascata do objeto pai para o objeto associado."
-
-#~ msgid ""
-#~ "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-#~ "literal>): Specifies that updates to this property do or do not require "
-#~ "acquisition of the optimistic lock. In other words, dertermines if a "
-#~ "version increment should occur when this property is dirty."
-#~ msgstr ""
-#~ "<literal>optimistic-lock</literal> (opcional - valor default "
-#~ "<literal>true</literal>): Especifica se mudanças desta propriedade "
-#~ "requerem ou não travamento otimista. Em outras palavras, determina se um "
-#~ "incremento de versão deve ocorrer quando esta propriedade está suja."
-
-#~ msgid ""
-#~ "To understand the behaviour of various Java language-level objects with "
-#~ "respect to the persistence service, we need to classify them into two "
-#~ "groups:"
-#~ msgstr ""
-#~ "Para entender o comportamento de vários objetos em nÃvel de linguagem de "
-#~ "Java a respeito do serviço de persistência, nós precisamos classificá-los "
-#~ "em dois grupos."
-
-#, fuzzy
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>all</literal> cverifica todas as colunas"
-
-#~ msgid "id"
-#~ msgstr "id"
-
-#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
-
-#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
-#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
-
-#~ msgid "key"
-#~ msgstr "key"
-
-#~ msgid "any"
-#~ msgstr "any"
+"Além disso, estes objetos de banco de dados podem ter um escopo opcional que "
+"só será aplicado quando certos dialetos forem utilizados. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,126 +1,200 @@
+# translation of batch.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: batch\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 07:46+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
-msgstr "Processamento de lotes"
+msgstr "Processamento em lotes"
#. Tag: para
-#: batch.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A naive approach to inserting 100,000 rows in the database using Hibernate "
"might look like this:"
msgstr ""
"Uma alternativa para inserir 100.000 linhas no banco de dados usando o "
-"Hibernate pode ser a seguinte:"
+"Hibernate pode ser a seguinte: "
-#. Tag: programlisting
-#: batch.xml:36
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:38
-#, fuzzy, no-c-format
-msgid ""
"This would fall over with an <literal>OutOfMemoryException</literal> "
"somewhere around the 50,000th row. That is because Hibernate caches all the "
"newly inserted <literal>Customer</literal> instances in the session-level "
"cache. In this chapter we will show you how to avoid this problem."
msgstr ""
-"Isto irá falhar em algum lugar próximo a linha 50.000, lançando uma "
-"<literal>OutOfMemoryException</literal>. Isso ocorre devido ao fato do "
-"Hibernate fazer cache de todas as instâncias de <literal>Customer</literal> "
-"inseridas num cachê em nÃvel de sessão."
+"Isto irá falhar com um <literal>OutOfMemoryException</literal> em algum "
+"lugar próximo a linha 50.000. Isso ocorre devido ao fato do Hibernate fazer "
+"cache de todas as instâncias de <literal>Customer</literal> inseridas num "
+"cachê em nÃvel de sessão. Nós demonstraremos neste capitulo como evitar este "
+"problema."
#. Tag: para
-#: batch.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are undertaking batch processing you will need to enable the use of "
"JDBC batching. This is absolutely essential if you want to achieve optimal "
"performance. Set the JDBC batch size to a reasonable number (10-50, for "
"example):"
msgstr ""
-"Neste capÃtulo veremos como contornar esse problema. Entretanto, se você vai "
-"realizar processamento de lotes, é muito importante que você habilite o uso "
-"de lotes JDBC, se você pretende obter um desempenho razoável. Defina o "
-"tamanho do lote JDBC em um valor razoável (algo entre 10-50):"
+"Entretanto, se você vai realizar processamento em lotes, é muito importante "
+"que você habilite o uso de lotes JDBC, se você pretende obter um desempenho "
+"razoável. Defina o tamanho do lote JDBC em um valor razoável (algo entre 10-"
+"50, por exemplo):"
-#. Tag: programlisting
-#: batch.xml:52
-#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate disables insert batching at the JDBC level transparently if you "
"use an <literal>identity</literal> identifier generator."
msgstr ""
-"Você também pode querer rodar esse tipo de processamento de lotes com o "
-"cache secundário completamente desabilitado:"
+"Note que o Hibernate desabilita o loteamento de inserção no nÃvel JDBC de "
+"forma transparente se você utilizar um gerador de identificador "
+"<literal>identiy</literal>. "
#. Tag: para
-#: batch.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also do this kind of work in a process where interaction with the "
"second-level cache is completely disabled:"
msgstr ""
-"Note that Hibernate disables insert batching at the JDBC level transparently "
-"if you use an <literal>identiy</literal> identifier generator."
+"Você também pode querer rodar esse tipo de processamento em lotes com o "
+"cache secundário completamente desabilitado: "
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid ""
"However, this is not absolutely necessary, since we can explicitly set the "
"<literal>CacheMode</literal> to disable interaction with the second-level "
"cache."
msgstr ""
-"Mas isto não é absolutamente necessário, desde que nós possamos ajustar o "
+"Mas isto não é absolutamente necessário, desde que possamos ajustar o "
"<literal>CacheMode</literal> para desabilitar a interação com o cache "
"secundário."
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
-msgstr "Inserção de lotes"
+msgstr "Inserção em lotes"
#. Tag: para
-#: batch.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When making new objects persistent <literal>flush()</literal> and then "
"<literal>clear()</literal> the session regularly in order to control the "
@@ -128,81 +202,31 @@
msgstr ""
"Quando você estiver inserindo novos objetos persistentes, vocês deve "
"executar os métodos <literal>flush()</literal> e <literal>clear()</literal> "
-"regularmente na sessão, para controlar o tamanho do cache primário."
+"regularmente na sessão, para controlar o tamanho do cache primário. "
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
-msgstr "Batch updates"
+msgstr "Atualização em lotes"
#. Tag: para
-#: batch.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For retrieving and updating data, the same ideas apply. In addition, you "
"need to use <literal>scroll()</literal> to take advantage of server-side "
"cursors for queries that return many rows of data."
msgstr ""
-"Para recuperar e atualizar informações a mesma idéia é válida. "
-"Adicionalmente, pode precisar usar o <literal>scroll()</literal> para usar "
-"recursos no lado do servidor em queries que retornam muita informação."
+"Para recuperar e atualizar informações a mesma idéia é válida. Além disso, "
+"pode precisará usar o <literal>scroll()</literal> para usar recursos no lado "
+"do servidor em consultas que retornem muita informação. "
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
-msgstr "A interface StatelessSession"
+msgstr "A interface de Sessão sem Estado"
#. Tag: para
-#: batch.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, Hibernate provides a command-oriented API that can be used "
"for streaming data to and from the database in the form of detached objects. "
@@ -218,55 +242,34 @@
"effects. A stateless session is a lower-level abstraction that is much "
"closer to the underlying JDBC."
msgstr ""
-"Alternativamente, o Hibernate provê uma API orientada à comandos, usada para "
-"transmitir um fluxo de dados de e para o banco de dados na forma de objetos "
-"soltos. Uma <literal>StatelessSession</literal> não tem um contexto "
-"persistente associado e não fornece muito das semânticas de alto nÃvel para "
-"controle do ciclo de vida. Em especial, uma StatelessSession não implemente "
-"o cache primário e nem interage com o cache secundário ou query cache. Ele "
-"não implementa salvamento transacional automatico ou checagem automática de "
-"mudanças. Operação realizadas usando uma StatelessSession não fazem nenhum "
-"tipo de cascade com as instancias associadas. As coleções são ignoradas por "
-"uma StatelessSession. Operações realizadas com um StatelessSession ignoram a "
-"arquitetura de eventos e os interceptadores. StatelessSession são "
-"vulneráveis aos efeitos do aliasing dos dados, devido a falta do cache "
-"primário. Uma StatelessSession é uma abstração de baixo nÃvel, muito mais "
-"próxima do JDBC."
+"Como forma alternativa, o Hibernate provê uma API orientada à comandos, que "
+"pode ser usada para transmitir um fluxo de dados de e para o banco de dados "
+"na forma de objetos desanexados. Um <literal>StatelessSession</literal> não "
+"tem um contexto persistente associado e não fornece muito das semânticas de "
+"alto nÃvel para controle do ciclo de vida. Especialmente uma Sessão sem "
+"Estado não implementa um cachê primário e nem interage com o cache "
+"secundário ou cachê de consulta. Ela não implementa uma gravação temporária "
+"transacional ou checagem suja automática. Operações realizadas usando uma "
+"sessão sem estado não fazem nenhum tipo de cascata com as instâncias "
+"associadas. As coleções são ignoradas por uma Sessão sem Estado. Operações "
+"realizadas com uma Sessão sem Estado ignoram a arquitetura de eventos e os "
+"interceptadores. As sessões sem estado são vulneráveis aos efeitos do alias "
+"dos dados, devido à falta do cachê primário. Uma Sessão sem Estado é uma "
+"abstração de baixo nÃvel, muito mais próxima do JDBC adjacente. "
-#. Tag: programlisting
-#: batch.xml:114
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:116
-#, fuzzy, no-c-format
-msgid ""
"In this code example, the <literal>Customer</literal> instances returned by "
"the query are immediately detached. They are never associated with any "
"persistence context."
msgstr ""
-"Veja neste exempo, as instancias de <literal>Customer</literal> retornadas "
-"pela query são imediatamente desvinculadas. Elas nunca serão assossiadas à "
-"um contexto persistente."
+"Veja neste exempo, as instâncias de <literal>Customer</literal> retornadas "
+"pela consulta, são imediatamente desvinculadas. Elas nunca serão associadas "
+"Ã um contexto persistente. "
#. Tag: para
-#: batch.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>StatelessSession</literal> interface are "
@@ -277,22 +280,20 @@
"operations defined by the <literal>Session</literal> interface."
msgstr ""
"As operações <literal>insert(), update()</literal> e <literal>delete()</"
-"literal> definidos pela interface <literal>StatelessSession</literal> são "
-"considerados operações diretas no banco de dados (row-level operations), "
-"isso resulta em uma execução imediata de comandos SQL <literal>INSERT, "
-"UPDATE</literal> ou <literal>DELETE</literal> respectivamente. Devido a "
-"isso, eles possuem uma semântica bem diferente das operações <literal>save"
-"(), saveOrUpdate()</literal> ou <literal>delete()</literal> definidas na "
-"interface <literal>Session</literal>."
+"literal> definidas pela interface <literal>StatelessSession</literal> são "
+"considerados operações diretas no banco de dados. Isto resulta em uma "
+"execução imediata de comandos SQL <literal>INSERT, UPDATE</literal> ou "
+"<literal>DELETE</literal> respectivamente. Dessa forma, eles possuem uma "
+"semântica bem diferente das operações <literal>save(), saveOrUpdate()</"
+"literal> ou <literal>delete()</literal> definidas na interface "
+"<literal>Session</literal>. "
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
msgstr "Operações no estilo DML"
#. Tag: para
-#: batch.xml:137
#, fuzzy, no-c-format
msgid ""
"As already discussed, automatic and transparent object/relational mapping is "
@@ -305,76 +306,71 @@
"is performed through the Hibernate Query Language (<link linkend=\"queryhql"
"\">HQL</link>)."
msgstr ""
-"Como já discutido, mapeamento objeto/relacional automático e transparente é "
-"conseguido com a gerência do estado do objeto. Com isto o estado daquele "
-"objeto fica disponÃvel na memória, manipulando(usando as expressões SQL "
-"<literal>Data Manipulation Language</literal> (SQL-style DML): "
-"<literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</"
-"literal>) os dados diretamente no banco de dados não irá afetar o estado "
-"registrado em memória. Entretanto, o Hibernate provê métodos para executar "
-"queries SQL-style DML, que são totalmente executas com HQL (Hibernate Query "
-"Language) (<xref linkend=\"queryhql\">HQL</xref>)."
+"Como já discutido anteriormente, o mapeamento objeto/relacional automático e "
+"transparente é adquirido com a gerência do estado do objeto. Com isto o "
+"estado daquele objeto fica disponÃvel na memória. Isto significa que a "
+"manipulação de dados (usando as instruções SQL <literal>Data Manipulation "
+"Language</literal> (SQL-style DML): <literal>INSERT</literal>, "
+"<literal>UPDATE</literal>, <literal>DELETE</literal>) diretamente no banco "
+"de dados não irá afetar o estado registrado em memória. Entretanto, o "
+"Hibernate provê métodos para executar instruções de volume de SQL-style DML, "
+"que são totalmente executados com HQL (Hibernate Query Language - Linguagem "
+"de Consulta Hibernate) (<xref linkend=\"queryhql\"/>). "
#. Tag: para
-#: batch.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
"where_conditions)?</literal>."
msgstr ""
-"A pseudo-sintaxe para expressões <literal>UPDATE</literal> e "
-"<literal>DELETE</literal> é: <literal>( UPDATE | DELETE ) FROM? NomeEntidade "
-"(WHERE condições_where)?</literal>. Algumas observações:"
+"A pseudo-sintaxe para instruções <literal>UPDATE</literal> e "
+"<literal>DELETE</literal> é: Algumas observações: <literal>( UPDATE | "
+"DELETE ) FROM? EntityName (WHERE where_conditions)?</literal>."
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
-msgstr ""
+msgstr "Alguns pontos a serem destacados:"
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
-msgstr "Na clausula from, a palavra chave FROM é opcional;"
+msgstr "Na cláusula from, a palavra chave FROM é opcional;"
#. Tag: para
-#: batch.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can only be a single entity named in the from-clause. It can, however, "
"be aliased. If the entity name is aliased, then any property references must "
"be qualified using that alias. If the entity name is not aliased, then it is "
"illegal for any property references to be qualified."
msgstr ""
-"Somente uma entidade pode ser chamada na clausula from; opcionalmente pode "
-"ter um alias. Se o nome da entidade for possuir um alias, então qualquer "
-"propriedade referenciada deve usar esse alias qualificado; se o nome da "
-"entidade não possuir um alias, então nenhuma das propriedade precisa usar o "
-"acesso qualificado."
+"Somente uma entidade pode ser chamada na cláusula from. Isto pode, "
+"opcionalmente, ser um alias. Se o nome da entidade for um alias, então "
+"qualquer referência de propriedade deve ser qualificada usando esse alias. "
+"Caso o nome da entidade não for um alias, então será ilegal qualquer das "
+"referências de propriedade serem qualificadas."
#. Tag: para
-#: batch.xml:170
#, fuzzy, no-c-format
msgid ""
"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
"the where-clause, where the subqueries themselves may contain joins."
msgstr ""
-"Na <xref linkend=\"queryhql-joins-forms\">joins</xref> (ambas implÃcita ou "
-"explicita) pode ser especificada em um bulk HQL query. Sub-queries podem ser "
-"usadas na clausula where; as subqueries podem conter joins."
+"Nenhum <xref linkend=\"queryhql-joins-forms\" />, tanto implÃcito ou "
+"explÃcito, pode ser especificado em uma consulta de volume HQL. As Sub-"
+"consultas podem ser utilizadas na cláusula onde, em que as subconsultas "
+"podem conter uniões. "
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
-msgstr "A clausula where também é opcional."
+msgstr "A clausula onde também é opcional."
#. Tag: para
-#: batch.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
"<literal>Query.executeUpdate()</literal> method. The method is named for "
@@ -382,31 +378,11 @@
"literal>:"
msgstr ""
"Como exemplo para executar um HQL <literal>UPDATE</literal>, use o método "
-"<literal>Query.executeUpdate()</literal>(o método ganhou o nome devido a sua "
-"familiaridade com o do JDBC <literal>PreparedStatement.executeUpdate()</"
+"<literal>Query.executeUpdate()</literal>. O método ganhou o nome devido à "
+"sua familiaridade com o do JDBC <literal>PreparedStatement.executeUpdate()</"
"literal>):"
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :"
-"oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :"
-"oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:191
#, fuzzy, no-c-format
msgid ""
"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
@@ -419,46 +395,27 @@
"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
"keyword."
msgstr ""
-"HQL <literal>UPDATE</literal> statements, by default do not effect the <xref "
-"linkend=\"mapping-declaration-version\">version</xref> or the <xref linkend="
-"\"mapping-declaration-timestamp\">timestamp</xref> property values for the "
-"affected entities; this is in keeping with the EJB3 specification. However, "
-"you can force Hibernate to properly reset the <literal>version</literal> or "
-"<literal>timestamp</literal> property values through the use of a "
-"<literal>versioned update</literal>. This is achieved by adding the "
-"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
-"keyword."
+"As instruções do HQL <literal>UPDATE</literal> por padrão não afetam o <xref "
+"linkend=\"mapping-declaration-version\"/> ou os valores de propriedade <xref "
+"linkend=\"mapping-declaration-timestamp\"/> para as entidades afetadas, de "
+"acordo com a especificação EJB3. No entanto, você poderá forçar o Hibernate "
+"a redefinir corretamente os valores de propriedade <literal>version</"
+"literal> ou <literal>timestamp</literal> usando um <literal>versioned "
+"update</literal>. Para tal, adicione uma palavra chave <literal>VERSIONED</"
+"literal> após a palavra chave <literal>UPDATE</literal>. "
-#. Tag: programlisting
-#: batch.xml:201
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName "
-"where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:203
-#, fuzzy, no-c-format
-msgid ""
"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
"literal>, are not allowed in conjunction with a <literal>update versioned</"
"literal> statement."
msgstr ""
-"Note that custom version types (<literal>org.hibernate.usertype."
-"UserVersionType</literal>) are not allowed in conjunction with a "
-"<literal>update versioned</literal> statement."
+"Note que os tipos de versões padronizadas, <literal>org.hibernate.usertype."
+"UserVersionType</literal>, não são permitidos junto às instruções "
+"<literal>update versioned</literal>."
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid ""
"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
@@ -467,26 +424,9 @@
"Para executar um HQL <literal>DELETE</literal>, use o mesmo método "
"<literal>Query.executeUpdate()</literal>:"
-#. Tag: programlisting
-#: batch.xml:213
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:215
-#, fuzzy, no-c-format
-msgid ""
"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
"()</literal> method indicates the number of entities effected by the "
"operation. This may or may not correlate to the number of rows effected in "
@@ -499,31 +439,29 @@
"joined-subclass tables further down the inheritance hierarchy."
msgstr ""
"O valor <literal>int</literal> retornado pelo método <literal>Query."
-"executeUpdate()</literal> indica o numero de entidade afetadas pela "
+"executeUpdate()</literal> indica o número de entidade afetadas pela "
"operação. Lembre-se que isso pode estar ou não relacionado ao número de "
-"linhas alteradas no banco de dados. Uma operação bulk HQL pode resultar em "
-"várias expressões SQL reais a serem executadas, por exemplo, no caso de "
-"joined-subclass. O número retornado indica a quantidade real de entidades "
-"afetadas pela expressão. Voltando ao exemplo da joined-subclass, a exclusão "
+"linhas alteradas no banco de dados. Uma operação de volume HQL pode resultar "
+"em várias instruções SQL atuais a serem executadas (por exemplo, no caso de "
+"subclasses unidas). O número retornado indica a quantidade real de entidades "
+"afetadas pela instrução. Voltando ao exemplo da subclasse unida, a exclusão "
"de uma das subclasses pode resultar numa exclusão em outra tabelas, não "
"apenas na tabela para qual a subclasses está mapeada, mas também tabela "
-"\"root\" e possivelmente nas tabelas joined-subclass num nÃvel hierárquico "
-"imediatamente abaixo."
+"\"root\" e possivelmente nas tabelas de subclasses unidas num nÃvel "
+"hierárquico imediatamente abaixo. "
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid ""
"The pseudo-syntax for <literal>INSERT</literal> statements is: "
"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
"Some points to note:"
msgstr ""
-"A pseudo-sintaxe para o comando <literal>INSERT</literal> é: <literal>INSERT "
+"A pseudo-sintáxe para o comando <literal>INSERT</literal> é: <literal>INSERT "
"INTO EntityName properties_list select_statement</literal>. Alguns pontos a "
"observar:"
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid ""
"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
@@ -533,8 +471,7 @@
"VALUES ... não é suportada."
#. Tag: para
-#: batch.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties_list is analogous to the <literal>column specification</"
"literal> in the SQL <literal>INSERT</literal> statement. For entities "
@@ -543,16 +480,15 @@
"are not allowed and subclass properties do not make sense. In other words, "
"<literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
-"A lista de propriedade é análoga à <literal>especificação da coluna</"
-"literal> do comando SQL <literal>INSERT</literal>. Para entidades envolvidas "
-"em mapeamentos, apenas a propriedades definidas diretamente a nÃvel da "
-"classe podem ser usandas na properties_list. Propriedades da superclass não "
-"são permitidas; e as propriedades da subclasse não faz sentido. Em outras "
-"palavras, os comandos <literal>INSERT</literal> não são polimorficos."
+"A lista de propriedade é análoga ao <literal>column specification</literal> "
+"do comando SQL <literal>INSERT</literal>. Para entidades envolvidas em "
+"mapeamentos, apenas as propriedades definidas diretamente em nÃvel da classe "
+"podem ser usadas na properties_list. Propriedades da superclasse não são "
+"permitidas e as propriedades da subclasse não fazem sentido. Em outras "
+"palavras, os comandos <literal>INSERT</literal> não são polimórficos. "
#. Tag: para
-#: batch.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"select_statement can be any valid HQL select query, with the caveat that the "
"return types must match the types expected by the insert. Currently, this is "
@@ -565,20 +501,20 @@
"TimestampType</literal>, even though the database might not make a "
"distinction or might be able to handle the conversion."
msgstr ""
-"O camando select pode ser qualquer query HQL válida, que tenha um retorno "
-"compatÃvel com o tipo com o esperado pela inclusão. Atualmente, isto é "
-"verificado durante a compilação da query, isto é melhor do que permitir que "
-"a verificação chegue ao banco de dados. Entretanto perceba que isso pode "
-"causar problemas entre os <literal>Tipo</literal> do Hibernate que são "
-"<emphasis>equivalentes</emphasis> em oposição a <emphasis>equal</emphasis>. "
-"Isso pode causar problemas nas combinações entre a propriedade definida como "
-"<literal>org.hibernate.type.DateType</literal>e um propriedade definida como "
-"<literal>org.hibernate.type.TimestampType</literal>, embora o banco de dados "
-"não possa fazer uma distinção ou possa ser capaz de manusear a conversão."
+"selecionar_instruções pode ser qualquer consulta de seleção HQL válida, "
+"desde que os tipos de retorno sejam compatÃveis com os tipos esperados pela "
+"inserção. Atualmente, isto é verificado durante a compilação da consulta, ao "
+"invés de permitir que a verificação chegue ao banco de dados. Entretanto, "
+"perceba que isso pode causar problemas entre os <literal>Tipo</literal>s de "
+"Hibernate que são <emphasis>equivalentes</emphasis> e não <emphasis>iguais</"
+"emphasis>. Isso pode causar problemas nas combinações entre a propriedade "
+"definida como <literal>org.hibernate.type.DateType</literal>e uma "
+"propriedade definida como <literal>org.hibernate.type.TimestampType</"
+"literal>, embora o banco de dados não possa fazer uma distinção ou possa ser "
+"capaz de manusear a conversão."
#. Tag: para
-#: batch.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For the id property, the insert statement gives you two options. You can "
"either explicitly specify the id property in the properties_list, in which "
@@ -594,23 +530,22 @@
"TableHiLoGenerator</literal>, which cannot be used because it does not "
"expose a selectable way to get its values."
msgstr ""
-"Para a propriedade id, a expressão insert oferece duas opções. Você pode "
+"Para a propriedade id, a instrução insert oferece duas opções. Você pode "
"especificar qualquer propriedade id explicitamente no properties_list (em "
-"alguns casos esse valor é obtido diretamente da expressão select) ou pode "
-"omitir do properties_list (nesse caso, um valor gerado é usado). Essa ultima "
+"alguns casos esse valor é obtido diretamente da instrução select) ou pode "
+"omitir do properties_list (nesse caso, um valor gerado é usado). Essa última "
"opção só é válida quando são usados geradores de ids que operam no banco de "
"dados; a tentativa de usar essa opção com geradores do tipo \"em memória\" "
-"vai causar um exceção durante a etapa de parser. Veja a finalidades desta "
-"discussão, os seguintes geradores operam com o banco de dados <literal>org."
-"hibernate.id.SequenceGenerator</literal> (e suas subclasses) e qualquer "
-"implementação de <literal>org.hibernate.id.PostInsertIdentifierGenerator</"
-"literal>. Aqui, a exceção mais notável é o <literal>org.hibernate.id."
-"TableHiLoGenerator</literal>, que não pode ser usado porque ele não dispõe "
-"de mecanismos para recuperar o seu valor."
+"irá causar um exceção durante a etapa de análise. Note que para a finalidade "
+"desta discussão, os seguintes geradores operam com o banco de dados "
+"<literal>org.hibernate.id.SequenceGenerator</literal> (e suas subclasses) e "
+"qualquer implementação de <literal>org.hibernate.id."
+"PostInsertIdentifierGenerator</literal>. Aqui, a exceção mais notável é o "
+"<literal>org.hibernate.id.TableHiLoGenerator</literal>, que não pode ser "
+"usado porque ele não dispõe de mecanismos para recuperar os seus valores."
#. Tag: para
-#: batch.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For properties mapped as either <literal>version</literal> or "
"<literal>timestamp</literal>, the insert statement gives you two options. "
@@ -619,39 +554,18 @@
"from the properties_list, in which case the <literal>seed value</literal> "
"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
-"For properties mapped as either <literal>version</literal> or "
-"<literal>timestamp</literal>, the insert statement gives you two options. "
-"You can either specify the property in the properties_list (in which case "
-"its value is taken from the corresponding select expressions) or omit it "
-"from the properties_list (in which case the <literal>seed value</literal> "
-"defined by the <literal>org.hibernate.type.VersionType</literal> is used). "
"Para propriedades mapeadas como <literal>version</literal> ou "
-"<literal>timestamp</literal>, a expressão insert oferece a você duas opções. "
-"Você pode especificar a propriedade na properties_list (nesse caso o seu "
-"valor é obtido a partir da expressão select correspondente) ou ele pode ser "
-"omitido da properties_list (neste caso o usa o <literal>valor semente</"
+"<literal>timestamp</literal>, a instrução insert lhe oferece duas opções. "
+"Você pode especificar a propriedade na properties_list, nesse caso o seu "
+"valor é obtido a partir da instrução select correspondente, ou ele pode ser "
+"omitido da properties_list (neste caso utiliza-se o <literal>seed value</"
"literal> definido pela classe <literal>org.hibernate.type.VersionType</"
"literal>)."
#. Tag: para
-#: batch.xml:284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of an HQL <literal>INSERT</literal> statement "
"execution:"
-msgstr "Exemplo da execução de um HQL <literal>INSERT</literal>:"
-
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c."
-"name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
msgstr ""
+"Segue abaixo o exemplo da execução de um HQL <literal>INSERT</literal>:"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,33 +1,137 @@
+# translation of best_practices.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: best_practices\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-10-22 15:53+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
-msgstr "Boas práticas"
+msgstr "Melhores práticas"
#. Tag: term
-#: best_practices.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
"literal>:"
msgstr ""
"Escreva classes compactas e mapeie-as usando <literal><component></"
-"literal>."
+"literal>:"
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -35,38 +139,33 @@
"<literal>postcode</literal>. This encourages code reuse and simplifies "
"refactoring."
msgstr ""
-"Use uma classe <literal>Endereco</literal> para encapsular <literal>rua</"
+"Use uma classe <literal>Endereço</literal> para encapsular <literal>rua</"
"literal>, <literal>bairro</literal>, <literal>estado</literal>, "
"<literal>CEP</literal>. Isto promove a reutilização de código e simplifica o "
"refactoring."
#. Tag: term
-#: best_practices.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Declare identifier properties on persistent classes:"
-msgstr "Declare propriedades identificadoras em classes persistentes."
+msgstr "Declare propriedades identificadoras em classes persistentes:"
#. Tag: para
-#: best_practices.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
"why you should use them. We recommend that identifiers be 'synthetic', that "
"is, generated with no business meaning."
msgstr ""
-"O Hibernate constrói propriedades identificadoras opcionais. Existem todos "
-"os tipos de razões que explicam porquê você deveria utilizá-las. Nós "
-"recomendamos que os identificadores sejam 'sintéticos' (gerados, sem "
-"significado para o negocio)."
+"O Hibernate constrói propriedades identificadoras opcionais. Existem "
+"inúmeras razões para utilizá-las. Nós recomendamos que os identificadores "
+"sejam 'sintéticos', quer dizer, gerados sem significado para negócios. "
#. Tag: term
-#: best_practices.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Identify natural keys:"
-msgstr "Identifique chaves naturais."
+msgstr "Identifique chaves naturais:"
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -80,62 +179,54 @@
"compõem a chave natural."
#. Tag: term
-#: best_practices.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Place each class mapping in its own file:"
-msgstr "Coloque cada classe de mapeamento em seu próprio arquivo."
+msgstr "Coloque cada classe de mapeamento em seu próprio arquivo:"
#. Tag: para
-#: best_practices.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
"literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes "
"sense, particularly in a team environment."
msgstr ""
"Não use um único código de mapeamento monolÃtico. Mapeie <literal>com.eg."
-"Foo</literal> no arquivo <literal>com/eg/Foo.hbm.xml</literal>. Isto promove "
-"particularmente o bom senso no time de desenvolvimento."
+"Foo</literal> no arquivo <literal>com/eg/Foo.hbm.xml</literal>. Isto faz "
+"bastante sentido, especialmente em ambiente de equipe."
#. Tag: term
-#: best_practices.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Load mappings as resources:"
-msgstr "Carregue os mapeamentos como recursos."
+msgstr "Carregue os mapeamentos como recursos:"
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
-msgstr "Faça o deploy dos mapeamentos junto com as classes que eles mapeiam."
+msgstr "Implemente os mapeamentos junto às classes que eles mapeiam."
#. Tag: term
-#: best_practices.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider externalizing query strings:"
-msgstr "Considere externalizar as strings de consultas."
+msgstr "Considere a possibilidade de externar as strings de consultas:"
#. Tag: para
-#: best_practices.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
"Externalizing the query strings to mapping files will make the application "
"more portable."
msgstr ""
"Esta é uma boa prática se suas consultas chamam funções SQL que não sejam "
-"ANSI. Externalizar as strings de consultas para mapear arquivos irão tornar "
-"a aplicação mais portável."
+"ANSI. Externar as strings de consultas para mapear arquivos irá tornar a "
+"aplicação mais portável. "
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
-msgstr "Use bind variables."
+msgstr "Use variáveis de vÃnculo."
#. Tag: para
-#: best_practices.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
"manipulation to bind a non-constant value in a query. You should also "
@@ -143,37 +234,34 @@
msgstr ""
"Assim como em JDBC, sempre substitua valores não constantes por \"?\". Nunca "
"use a manipulação de strings para concatenar valores não constantes em uma "
-"consulta! Até melhor, considere usar parâmetros nomeados nas consultas."
+"consulta. Até melhor, considere a possibilidade de usar parâmetros nomeados "
+"nas consultas."
#. Tag: term
-#: best_practices.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not manage your own JDBC connections:"
-msgstr "Não gerencie suas conexões JDBC."
+msgstr "Não gerencie suas conexões JDBC:"
#. Tag: para
-#: best_practices.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
"approach should be considered a last-resort. If you cannot use the built-in "
"connection providers, consider providing your own implementation of "
"<literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
-"O Hibernate permite que a aplicação gerencie conexões JDBC. Esta abordagem "
-"deve ser considerada um último recurso. Se você não pode usar os provedores "
-"de conexão embutidos, considere fazer sua implementação a partir de "
-"<literal>org.hibernate.connection.ConnectionProvider</literal>."
+"O Hibernate permite que a aplicação gerencie conexões JDBC, mas esta "
+"abordagem deve ser considerada um último recurso. Se você não pode usar os "
+"provedores de conexão embutidos, considere fazer sua implementação a partir "
+"de <literal>org.hibernate.connection.ConnectionProvider</literal>."
#. Tag: term
-#: best_practices.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider using a custom type:"
-msgstr "Considere usar tipos customizados."
+msgstr "Considere a possibilidade de usar tipos customizados:"
#. Tag: para
-#: best_practices.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
"does not provide the accessors needed to map it as a component. You should "
@@ -182,46 +270,43 @@
"from a Hibernate type."
msgstr ""
"Suponha que você tenha um tipo Java, de alguma biblioteca, que precisa ser "
-"persistido mas não provê os acessórios necessários para mapeá-lo como um "
+"persistido mas não provê de acessórios necessários para mapeá-lo como um "
"componente. Você deve implementar <literal>org.hibernate.UserType</literal>. "
"Esta abordagem livra o código da aplicação de implementar transformações de/"
-"para o tipo Hibernate."
+"para o tipo Hibernate. "
#. Tag: term
-#: best_practices.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
-msgstr "Use código manual JDBC nos gargalos."
+msgstr "Use código manual JDBC nos afunilamentos:"
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
"Nas áreas de desempenho crÃtico do sistema, alguns tipos de operações podem "
"se beneficiar do uso direto do JDBC. Mas por favor, espere até você "
-"<emphasis>saber </emphasis> se é um gargalo. E não suponha que o uso direto "
-"do JDBC é necessariamente mais rápido. Se você precisar usar diretamente o "
-"JDBC, vale a pena abrir uma <literal>Session</literal> do Hibernate e usar "
-"uma conexão JDBC. De modo que você possa ainda usar a mesma estratégia de "
-"transação e ocultar o provedor a conexão"
+"<emphasis>saber</emphasis> se é um afunilamento. E não suponha que o uso "
+"direto do JDBC é necessariamente mais rápido. Se você precisar usar "
+"diretamente o JDBC, vale a pena abrir uma <literal>Session</literal> do "
+"Hibernate e usar uma conexão JDBC. De modo que você possa ainda usar a mesma "
+"estratégia de transação e ocultar o provedor a conexão."
#. Tag: term
-#: best_practices.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
-msgstr "Entenda o <literal>Session</literal> flushing."
+msgstr "Entenda o esvaziamento da <literal>Session</literal>:"
#. Tag: para
-#: best_practices.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
"Performance will be affected if this process occurs too often. You can "
@@ -231,20 +316,18 @@
msgstr ""
"De tempos em tempos a sessão sincroniza seu estado persistente com o banco "
"de dados. O desempenho será afetado se este processo ocorrer frequentemente. "
-"Você pode algumas vezes minimizar o fluxo desnecessário desabilitando o "
-"fluxo automático ou até mesmo mudando a ordem das consultas e outras "
-"operações em uma transação particular."
+"Você pode algumas vezes minimizar a liberação desnecessária desabilitando a "
+"liberação automática ou até mesmo mudando a ordem das consultas e outras "
+"operações em uma transação particular. "
#. Tag: term
-#: best_practices.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
msgstr ""
-"Em uma arquitetura de três camadas, considere o uso de objetos separados."
+"Em uma arquitetura de três camadas, considere o uso de objetos separados:"
#. Tag: para
-#: best_practices.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
"objects loaded in the session bean to and from the servlet/JSP layer. Use a "
@@ -252,22 +335,21 @@
"or <literal>Session.saveOrUpdate()</literal> to synchronize objects with the "
"database."
msgstr ""
-"When using a servlet / session bean architecture, you could pass persistent "
-"objects loaded in the session bean to and from the servlet / JSP layer. Use "
-"a new session to service each request. Use <literal>Session.merge()</"
-"literal> or <literal>Session.saveOrUpdate()</literal> to synchronize objects "
-"with the database."
+"Ao usar a arquitetura do bean de sessão/servlet, você pode passar os objetos "
+"persistentes carregados no bean de sessão para e a partir da camada servlet/"
+"JSP. Use uma nova sessão para manipular cada solicitação. Use a "
+"<literal>Session.merge()</literal> ou a <literal>Session.saveOrUpdate()</"
+"literal> para sincronizar objetos com o banco de dados. "
#. Tag: term
-#: best_practices.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
msgstr ""
-"In a two tiered architecture, consider using long persistence contexts."
+"Em uma arquitetura de duas camadas, considere o uso de contextos de longa "
+"persistência:"
#. Tag: para
-#: best_practices.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
"However, it is often necessary to implement long running "
@@ -282,28 +364,26 @@
"across more than one application transaction or you will be working with "
"stale data."
msgstr ""
-"Database Transactions have to be as short as possible for best scalability. "
-"However, it is often necessary to implement long running "
-"<emphasis>application transactions</emphasis>, a single unit-of-work from "
-"the point of view of a user. An application transaction might span several "
-"client request/response cycles. It is common to use detached objects to "
-"implement application transactions. An alternative, extremely appropriate in "
-"two tiered architecture, is to maintain a single open persistence contact "
-"(session) for the whole life cycle of the application transaction and simply "
-"disconnect from the JDBC connection at the end of each request and reconnect "
-"at the beginning of the subsequent request. Never share a single session "
-"across more than one application transaction, or you will be working with "
-"stale data."
+"As Transações do Banco de Dados precisam ser as mais curtas possÃveis para "
+"uma melhor escalabilidade. No entanto, é geralmente necessário implementar "
+"<emphasis>transações de aplicações</emphasis> de longa duração, uma única "
+"unidade de trabalho a partir do ponto de vista de um usuário. Uma transação "
+"de aplicação pode transpor diversos ciclos de solicitação/resposta de "
+"cliente. à comum usar objetos desanexados para implementar as transações de "
+"aplicação. Uma outra alternativa, extremamente apropriada em uma arquitetura "
+"de duas camadas, é manter um único contato de persistência aberto (sessão) "
+"para todo o tempo de vida da transação de aplicação e simplesmente "
+"disconectá-lo do JDBC ao final de cada solicitação e reconectá-lo no inÃcio "
+"de uma solicitação subsequente. Nunca compartilhe uma sessão única com mais "
+"de uma transação de aplicação, ou você irá trabalhar com dados antigos."
#. Tag: term
-#: best_practices.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not treat exceptions as recoverable:"
-msgstr "Don't treat exceptions as recoverable."
+msgstr "Não trate as exceções como recuperáveis:"
#. Tag: para
-#: best_practices.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
"exception occurs, roll back the <literal>Transaction</literal> and close the "
@@ -313,23 +393,22 @@
"instance with the given identifier exists on the database; use "
"<literal>Session.get()</literal> or a query instead."
msgstr ""
-"This is more of a necessary practice than a \"best\" practice. When an "
-"exception occurs, roll back the <literal>Transaction</literal> and close the "
-"<literal>Session</literal>. If you don't, Hibernate can't guarantee that in-"
-"memory state accurately represents persistent state. As a special case of "
-"this, do not use <literal>Session.load()</literal> to determine if an "
-"instance with the given identifier exists on the database; use "
-"<literal>Session.get()</literal> or a query instead."
+"Isto é mais uma prática necessária do que uma \"melhor\" prática. Quando uma "
+"exceção ocorre, retorne à <literal>Transaction</literal> e feche a "
+"<literal>Sessão</literal>. Se não fizer isto, o Hibernate não poderá "
+"garantir que o estado em memória representará de forma precisa o estado "
+"persistente. Como este é um caso especial, não utilize a <literal>Session."
+"load()</literal> para determinar se uma instância com dado identificador "
+"existe em um banco de dados, use <literal>Session.get()</literal> ou então "
+"uma consulta. "
#. Tag: term
-#: best_practices.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer lazy fetching for associations:"
-msgstr "Prefer lazy fetching for associations."
+msgstr "Prefira a busca lazy para associações:"
#. Tag: para
-#: best_practices.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
"associations to classes that are not likely to be completely held in the "
@@ -339,27 +418,26 @@
"to a particular use case, use a query with a <literal>left join fetch</"
"literal>."
msgstr ""
-"Use eager fetching sparingly. Use proxies and lazy collections for most "
-"associations to classes that are not likely to be completely held in the "
-"second-level cache. For associations to cached classes, where there is an a "
-"extremely high probability of a cache hit, explicitly disable eager fetching "
-"using <literal>lazy=\"false\"</literal>. When an join fetching is "
-"appropriate to a particular use case, use a query with a <literal>left join "
-"fetch</literal>."
+"Use a busca antecipada de forma moderada. Use as coleções proxy e lazy para "
+"a maioria das associações para classes que possam não ser completamente "
+"mantidas em cache de segundo nÃvel. Para associações de classes em cache, "
+"onde existe uma enorme probabilidade de coincidir caches, desabilite "
+"explicitamente a busca antecipada usando <literal>lazy=\"false\"</literal>. "
+"Quando uma busca de união é apropriada para um caso especÃfico, use a "
+"consulta com <literal>left join fetch</literal>."
#. Tag: term
-#: best_practices.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
-"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
-"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data."
+"Use o modelo <emphasis>sessão aberta na visualização</emphasis>, ou uma "
+"<emphasis>fase de construção</emphasis> para evitar problemas com dados não "
+"encontrados."
#. Tag: para
-#: best_practices.xml:201
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
@@ -374,28 +452,28 @@
"objects. This is not a limitation of Hibernate. It is a fundamental "
"requirement of safe transactional data access."
msgstr ""
-"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
-"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
-"purposes: first, they work around the problem that entity beans are not "
-"serializable; second, they implicitly define an assembly phase where all "
-"data to be used by the view is fetched and marshalled into the DTOs before "
-"returning control to the presentation tier. Hibernate eliminates the first "
-"purpose. However, you will still need an assembly phase (think of your "
-"business methods as having a strict contract with the presentation tier "
-"about what data is available in the detached objects) unless you are "
-"prepared to hold the persistence context (the session) open across the view "
-"rendering process. This is not a limitation of Hibernate! It is a "
-"fundamental requirement of safe transactional data access."
+"O Hibernate libera o desenvolvedor de escrever <emphasis>Objetos de "
+"Transferência de Dados</emphasis> (DTO). Em uma arquitetura tradicional EJB, "
+"os DTOs servem dois propósitos: primeiro, eles se deparam com o problema de "
+"que os beans de entidade não são serializáveis, depois, eles implicitamente "
+"definem uma fase de construção onde todos os dados a serem utilizados pelo "
+"view são buscados e conduzidos aos DTOs antes mesmo de retornar o controle à "
+"camada de apresentação. O Hibernate elimina o primeiro propósito. No "
+"entanto, você ainda precisará de uma fase de construção (pense em seus "
+"métodos de negócios como tendo um contrato estrito com a camada de "
+"apresentação sobre o quais dados estão disponÃveis nos objetos desanexados) "
+"a não ser que você esteja preparado para manter o contexto de persistência "
+"(sessão) aberto no processo de renderização da visualização. Isto não é uma "
+"limitação do Hibernate. à uma solicitação fundamental para acesso a dados "
+"transacionais seguros."
#. Tag: term
-#: best_practices.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
-msgstr "Consider abstracting your business logic from Hibernate."
+msgstr "Considere abstrair sua lógica comercial do Hibernate:"
#. Tag: para
-#: best_practices.xml:217
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
@@ -404,22 +482,20 @@
"however, intended for \"sufficiently large\" applications. It is not "
"appropriate for an application with five tables."
msgstr ""
-"Hide (Hibernate) data-access code behind an interface. Combine the "
-"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
-"patterns. You can even have some classes persisted by handcoded JDBC, "
-"associated to Hibernate via a <literal>UserType</literal>. (This advice is "
-"intended for \"sufficiently large\" applications; it is not appropriate for "
-"an application with five tables!)"
+"Oculte (Hibernate) o código de acesso a dados atrás de uma interface. "
+"Combine os modelos <emphasis>DAO</emphasis> e <emphasis>Sessão Local de "
+"Thread</emphasis>. Você pode também persistir algumas classes pelo JDBC "
+"handcoded, associado ao Hibernate via um <literal>UserType</literal>. Este "
+"é um conselho para aplicações \"grandes o suficiente\", não é apropriado "
+"para uma aplicação com cinco tabelas."
#. Tag: term
-#: best_practices.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not use exotic association mappings:"
-msgstr "Don't use exotic association mappings."
+msgstr "Não use mapeamentos de associação exóticos:"
#. Tag: para
-#: best_practices.xml:229
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
"the time you need additional information stored in the \"link table\". In "
@@ -428,27 +504,26 @@
"to-one. For this reason, you should proceed cautiously when using any other "
"association style."
msgstr ""
-"Good usecases for a real many-to-many associations are rare. Most of the "
-"time you need additional information stored in the \"link table\". In this "
-"case, it is much better to use two one-to-many associations to an "
-"intermediate link class. In fact, we think that most associations are one-to-"
-"many and many-to-one, you should be careful when using any other association "
-"style and ask yourself if it is really neccessary."
+"Casos de testes práticos para associações muitos-para-muitos reais são "
+"raros. A maioria do tempo você precisa de informação adicional armazenada na "
+"\" tabela de link\". Neste caso, é muito melhor usar associações dois um-"
+"para-muitos para uma classe de link intermediário. Na verdade, acreditamos "
+"que a maioria das associações é um-para-muitos e muitos-para-um, você deve "
+"tomar cuidado ao utilizar qualquer outro tipo de associação e perguntar a "
+"você mesmo se é realmente necessário. "
#. Tag: term
-#: best_practices.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer bidirectional associations:"
-msgstr "Prefer bidirectional associations."
+msgstr "Prefira associações bidirecionais:"
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
"application, almost all associations must be navigable in both directions in "
"queries."
msgstr ""
-"Unidirectional associations are more difficult to query. In a large "
-"application, almost all associations must be navigable in both directions in "
-"queries."
+"As associações unidirecionais são mais difÃceis para pesquisar. Em "
+"aplicações grandes, quase todas as associações devem navegar nas duas "
+"direções em consultas. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,56 +1,144 @@
+# translation of collection_mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: collection_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-12-19 08:32+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: collection_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection mapping"
-msgstr "Collection mappings"
+msgstr "Mapeamento de coleção "
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
-msgstr "Persistent collections"
+msgstr "Coleções persistentes"
#. Tag: para
-#: collection_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
-"Hibernate requires that persistent collection-valued fields be declared as "
-"an interface type, for example:"
+"O Hibernate requer que os campos de coleções de valor persistente sejam "
+"declarados como um tipo de interface. Por exemplo:"
-#. Tag: programlisting
-#: collection_mapping.xml:39
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:41
-#, fuzzy, no-c-format
-msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
@@ -58,16 +146,15 @@
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
-"The actual interface might be <literal>java.util.Set</literal>, "
-"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
-"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
-"<literal>java.util.SortedMap</literal> or ... anything you like! (Where "
-"\"anything you like\" means you will have to write an implementation of "
-"<literal>org.hibernate.usertype.UserCollectionType</literal>.)"
+"A interface atual pode ser <literal>java.util.Set</literal>, <literal>java."
+"util.Collection</literal>, <literal>java.util.List</literal>, <literal>java."
+"util.Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java."
+"util.SortedMap</literal> ou o que desejar. (\"o que desejar\" significa que "
+"você terá que escrever uma implementação de <literal>org.hibernate.usertype."
+"UserCollectionType</literal>.)"
#. Tag: para
-#: collection_mapping.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet</literal>. This is the best way to initialize collection "
@@ -77,46 +164,29 @@
"an instance of Hibernate's own implementation of <literal>Set</literal>. Be "
"aware of the following errors:"
msgstr ""
-"Notice how we initialized the instance variable with an instance of "
-"<literal>HashSet</literal>. This is the best way to initialize collection "
-"valued properties of newly instantiated (non-persistent) instances. When you "
-"make the instance persistent - by calling <literal>persist()</literal>, for "
-"example - Hibernate will actually replace the <literal>HashSet</literal> "
-"with an instance of Hibernate's own implementation of <literal>Set</"
-"literal>. Watch out for errors like this:"
+"Observe como inicializamos a variável da instância com uma instância de "
+"<literal>HashSet</literal>. Esta é a melhor maneira de inicializar "
+"propriedades de coleções de valor de instâncias recentemente instanciadas "
+"(não persistentes). Quando você fizer uma instância persistente, chamando "
+"<literal>persist()</literal>, como por exemplo: o Hibernate substituirá o "
+"<literal>HashSet</literal> por uma instância da própria implementação do "
+"Hibernate do <literal>Set</literal>. Cuidado com erros como este:"
-#. Tag: programlisting
-#: collection_mapping.xml:60
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:62
-#, fuzzy, no-c-format
-msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
"depending on the interface type."
msgstr ""
-"The persistent collections injected by Hibernate behave like "
+"As coleções persistentes injetadas pelo Hibernate, se comportam como "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
-"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
-"depending upon the interface type."
+"literal>, <literal>TreeSet</literal> ou <literal>ArrayList</literal>, "
+"dependendo do tipo de interface."
#. Tag: para
-#: collection_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
@@ -127,74 +197,58 @@
"properties do not support null value semantics. Hibernate does not "
"distinguish between a null collection reference and an empty collection."
msgstr ""
-"Collections instances have the usual behavior of value types. They are "
-"automatically persisted when referenced by a persistent object and "
-"automatically deleted when unreferenced. If a collection is passed from one "
-"persistent object to another, its elements might be moved from one table to "
-"another. Two entities may not share a reference to the same collection "
-"instance. Due to the underlying relational model, collection-valued "
-"properties do not support null value semantics; Hibernate does not "
-"distinguish between a null collection reference and an empty collection."
+"As instâncias de coleção têm o comportamento comum de tipos de valores. Eles "
+"são automaticamente persistidos quando referenciados por um objeto "
+"persistente e automaticamente deletados quando não referenciados. Se a "
+"coleção é passada de um objeto persistente para outro, seus elementos devem "
+"ser movidos de uma tabela para outra. Duas entidades não devem compartilhar "
+"uma referência com uma mesma instância de coleção. Devido ao modelo "
+"relacional adjacente, as propriedades de coleções válidas, não suportam "
+"semânticas de valores nulos. O Hibernate não distingue entre a referência da "
+"coleção nula e uma coleção vazia. "
#. Tag: para
-#: collection_mapping.xml:80
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
-"You shouldn't have to worry much about any of this. Use persistent "
-"collections the same way you use ordinary Java collections. Just make sure "
-"you understand the semantics of bidirectional associations (discussed later)."
+"Use as coleções persistentes da mesma forma que usa coleções Java comuns. No "
+"entanto, somente tenha a certeza de entender as semânticas de associações "
+"bidirecionais (as quais serão discutidas mais tarde)."
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
-msgstr "Collection mappings"
+msgstr "Mapeamento de coleção"
#. Tag: para
-#: collection_mapping.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
-"There are quite a range of mappings that can be generated for collections, "
-"covering many common relational models. We suggest you experiment with the "
-"schema generation tool to get a feeling for how various mapping declarations "
-"translate to database tables."
+"Existem diversas variedades de mapeamento que podem ser gerados para as "
+"coleções, cobrindo muitos modelos relacionais comuns. Sugerimos que você "
+"faça o teste com a ferramenta de geração do esquema para obter uma idéia de "
+"como diversas declarações de mapeamento traduzem as tabelas de banco de "
+"dados. "
#. Tag: para
-#: collection_mapping.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set></literal> element is "
"used for mapping properties of type <literal>Set</literal>."
msgstr ""
-"The Hibernate mapping element used for mapping a collection depends upon the "
-"type of the interface. For example, a <literal><set></literal> element "
-"is used for mapping properties of type <literal>Set</literal>."
+"O elemento do mapeamento do Hibernate, usado para mapear uma coleção, "
+"depende do tipo de interface. Por exemplo, um elemento <literal><set></"
+"literal> é usado para mapear propriedades do tipo <literal>Set</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -203,70 +257,37 @@
"array></literal> mapping elements. The <literal><map></literal> "
"element is representative:"
msgstr ""
-"Apart from <literal><set></literal>, there is also <literal><"
-"list></literal>, <literal><map></literal>, <literal><bag></"
-"literal>, <literal><array></literal> and <literal><primitive-"
-"array></literal> mapping elements. The <literal><map></literal> "
-"element is representative:"
+"Além do <literal><set></literal>, existe também os elementos de "
+"mapeamento <literal><list></literal>, <literal><map></literal>, "
+"<literal><bag></literal>, <literal><array></literal> and "
+"<literal><primitive-array></literal>. O elemento <literal><map></"
+"literal> é de representação:"
-#. Tag: programlisting
-#: collection_mapping.xml:132
-#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>name</literal>: the collection property name"
-msgstr "<literal>name</literal> the collection property name"
+msgstr "<literal>name</literal>: o nome da propriedade da coleção"
#. Tag: para
-#: collection_mapping.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
-"<literal>table</literal> (optional - defaults to property name) the name of "
-"the collection table (not used for one-to-many associations)"
+"<literal>table</literal> (opcional - padrão para nome de propriedade): o "
+"nome da tabela de coleção. Isto não é usado para associações um-para-muitos."
#. Tag: para
-#: collection_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
-"<literal>schema</literal> (optional) the name of a table schema to override "
-"the schema declared on the root element"
+"<literal>schema</literal> (opcional): o nome de um esquema de tabela para "
+"sobrescrever o esquema declarado no elemento raÃz."
#. Tag: para
-#: collection_mapping.xml:152
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"disables lazy fetching and specifies that the association is always eagerly "
@@ -274,139 +295,131 @@
"operations do not initialize the collection. This is suitable for large "
"collections."
msgstr ""
-"<literal>lazy</literal> (optional - defaults to <literal>true</literal>) may "
-"be used to disable lazy fetching and specify that the association is always "
-"eagerly fetched, or to enable \"extra-lazy\" fetching where most operations "
-"do not initialize the collection (suitable for very large collections)"
+"<literal>lazy</literal> (opcional - padrão para <literal>true</literal>): "
+"pode ser utilizado para desabilitar a busca lazy e especificar que a "
+"associação é sempre buscada antecipadamente, ou para habilitar busca \"extra-"
+"lazy\" onde a maioria das operações não inicializa a coleção (apropriado "
+"para coleções bem grandes)."
#. Tag: para
-#: collection_mapping.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): marks this collection as the \"inverse\" end of a bidirectional "
"association."
msgstr ""
-"<literal>inverse</literal> (optional - defaults to <literal>false</literal>) "
-"mark this collection as the \"inverse\" end of a bidirectional association"
+"<literal>inverse</literal> (opcional - padrão para <literal>false</"
+"literal>): marque esta coleção como o lado \"inverso\" de uma associação "
+"bidirecional."
#. Tag: para
-#: collection_mapping.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
"enables operations to cascade to child entities."
msgstr ""
-"<literal>cascade</literal> (optional - defaults to <literal>none</literal>) "
-"enable operations to cascade to child entities"
+"<literal>cascade</literal> (opcional - padrão para <literal>none</literal>): "
+"habilita operações para cascata para entidades filho."
#. Tag: para
-#: collection_mapping.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
"<literal>natural</literal> sort order or a given comparator class."
msgstr ""
-"<literal>sort</literal> (optional) specify a sorted collection with "
-"<literal>natural</literal> sort order, or a given comparator class"
+"<literal>sort</literal> (opcional): especifica uma coleção escolhida com "
+"ordem de escolha<literal>natural</literal> ou uma dada classe comparatória."
#. Tag: para
-#: collection_mapping.xml:179
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>Map</"
"literal>, <literal>Set</literal> or bag, together with an optional "
"<literal>asc</literal> or <literal>desc</literal>."
msgstr ""
-"<literal>order-by</literal> (optional, JDK1.4 only) specify a table column "
-"(or columns) that define the iteration order of the <literal>Map</literal>, "
-"<literal>Set</literal> or bag, together with an optional <literal>asc</"
-"literal> or <literal>desc</literal>"
+"<literal>order-by</literal> (opcional, somente JDK1.4): especifica uma "
+"coluna da tabela (ou colunas) que define a ordem de iteração do "
+"<literal>Map</literal>, <literal>Set</literal> ou bag, juntos com um "
+"<literal>asc</literal> ou <literal>desc</literal> opcional."
#. Tag: para
-#: collection_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition that is used when retrieving or removing "
"the collection. This is useful if the collection needs to contain only a "
"subset of the available data."
msgstr ""
-"<literal>where</literal> (optional) specify an arbitrary SQL <literal>WHERE</"
-"literal> condition to be used when retrieving or removing the collection "
-"(useful if the collection should contain only a subset of the available data)"
+"<literal>where</literal> (opcional): especifica uma condição SQL arbitrária "
+"<literal>WHERE</literal> a ser usada quando recuperar ou remover a coleção "
+"Isto é útil se a coleção tiver somente um subconjunto dos dados disponÃveis."
#. Tag: para
-#: collection_mapping.xml:193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
"chooses between outer-join fetching, fetching by sequential select, and "
"fetching by sequential subselect."
msgstr ""
-"<literal>fetch</literal> (optional, defaults to <literal>select</literal>) "
-"Choose between outer-join fetching, fetching by sequential select, and "
-"fetching by sequential subselect."
+"<literal>fetch</literal> (opcional, padrão para <literal>select</literal>): "
+"escolha entre busca de união externa, busca por seleção sequencial e busca "
+"por subseleção sequencial."
#. Tag: para
-#: collection_mapping.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
-"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>) "
-"specify a \"batch size\" for lazily fetching instances of this collection."
+"<literal>batch-size</literal> (opcional, padrão para <literal>1</literal>): "
+"especifica um \"tamanho de lote\" para instâncias de busca lazy desta "
+"coleção."
#. Tag: para
-#: collection_mapping.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the collection property "
"value."
msgstr ""
-"<literal>access</literal> (optional - defaults to <literal>property</"
-"literal>): The strategy Hibernate should use for accessing the collection "
-"property value."
+"<literal>access</literal> (opcional - padrão para <literal>property</"
+"literal>): A estratégia que o Hibernate deve usar para acessar a coleção de "
+"valor de propriedade. "
#. Tag: para
-#: collection_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that changes to the state of the collection results in "
"increments of the owning entity's version. For one-to-many associations you "
"may want to disable this setting."
msgstr ""
-"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-"literal>): Species that changes to the state of the collection results in "
-"increment of the owning entity's version. (For one to many associations, it "
-"is often reasonable to disable this setting.)"
+"<literal>optimistic-lock</literal> (opcional - padrão para <literal>true</"
+"literal>): especifica que alterações para o estado da coleção, resulta no "
+"incremento da versão da própria entidade. Para associações um-para-muitos, é "
+"sempre bom desabilitar esta configuração."
#. Tag: para
-#: collection_mapping.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"a value of <literal>false</literal> specifies that the elements of the "
"collection never change. This allows for minor performance optimization in "
"some cases."
msgstr ""
-"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
-"A value of <literal>false</literal> specifies that the elements of the "
-"collection never change (a minor performance optimization in some cases)."
+"<literal>mutable</literal> (opcional - padrão para <literal>true</literal>): "
+"um valor de <literal>false</literal> especifica que os elementos da coleção "
+"nunca mudam. Isto permite uma otimização mÃnima do desempenho em alguns "
+"casos."
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
-msgstr "Collection foreign keys"
+msgstr "Chaves Externas de Coleção"
#. Tag: para
-#: collection_mapping.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
"the entity that owns the collection. This foreign key is referred to as the "
@@ -414,65 +427,48 @@
"table. The collection key column is mapped by the <literal><key></"
"literal> element."
msgstr ""
-"Collection instances are distinguished in the database by the foreign key of "
-"the entity that owns the collection. This foreign key is referred to as the "
-"<emphasis>collection key column</emphasis> (or columns) of the collection "
-"table. The collection key column is mapped by the <literal><key></"
-"literal> element."
+"Instâncias de coleção são distinguidas no banco de dados pela chave exterior "
+"da entidade que possui a coleção. Esta chave exterior é referida como a "
+"<emphasis>coluna de chave de coleção</emphasis> (ou colunas) da tabela de "
+"coleção. A coluna de chave de coleção é mapeada pelo elemento <literal><"
+"key></literal>."
#. Tag: para
-#: collection_mapping.xml:240
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
"collections, this is implied. For unidirectional one-to-many associations, "
"the foreign key column is nullable by default, so you may need to specify "
"<literal>not-null=\"true\"</literal>."
msgstr ""
-"There may be a nullability constraint on the foreign key column. For most "
-"collections, this is implied. For unidirectional one to many associations, "
-"the foreign key column is nullable by default, so you might need to specify "
-"<literal>not-null=\"true\"</literal>."
+"Pode existir uma restrição de nulabilidade na coluna da chave exterior. Para "
+"a maioria das coleções, isto está implÃcito. Para associações unidirecionais "
+"um-para-muitos, a coluna de chave estrangeira é anulável por padrão, "
+"portanto você pode precisar especificar <literal>not-null=\"true\"</literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:247
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
msgstr ""
-"The foreign key constraint may use <literal>ON DELETE CASCADE</literal>."
+"A restrição da chave exterior pode usar <literal>ON DELETE CASCADE</literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
"literal> element."
msgstr ""
-"See the previous chapter for a full definition of the <literal><key></"
-"literal> element."
+"Veja nos capÃtulos anteriores para uma completa definição do "
+"elemento<literal><key></literal>."
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
-msgstr "Collection elements"
+msgstr "Elementos de coleção"
#. Tag: para
-#: collection_mapping.xml:265
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and references to other entities. This is an "
@@ -482,16 +478,16 @@
"latter case, only the \"link\" between the two objects is considered to be a "
"state held by the collection."
msgstr ""
-"Collections may contain almost any other Hibernate type, including all basic "
-"types, custom types, components, and of course, references to other "
-"entities. This is an important distinction: an object in a collection might "
-"be handled with \"value\" semantics (its life cycle fully depends on the "
-"collection owner) or it might be a reference to another entity, with its own "
-"life cycle. In the latter case, only the \"link\" between the two objects is "
-"considered to be state held by the collection."
+"As coleções podem conter quase qualquer outro tipo de Hibernate, incluindo "
+"todos os tipos básicos, tipos padronizados, e é claro, referências a outras "
+"entidades. Isto é uma distinção importante: um objeto em uma coleção pode "
+"ser manipulada com as semânticas \"valor\" (seu ciclo de vida depende "
+"totalmente do proprietário da coleção), ou ele pode ser uma referência à "
+"outra entidade, com seu próprio ciclo de vida. No último caso, somente o "
+"\"link\" entre os dois objetos é considerado como estado seguro pela "
+"coleção. "
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -501,22 +497,21 @@
"<literal><many-to-many></literal>. The first two map elements with "
"value semantics, the next two are used to map entity associations."
msgstr ""
-"The contained type is referred to as the <emphasis>collection element type</"
-"emphasis>. Collection elements are mapped by <literal><element></"
-"literal> or <literal><composite-element></literal>, or in the case of "
-"entity references, with <literal><one-to-many></literal> or "
-"<literal><many-to-many></literal>. The first two map elements with "
-"value semantics, the next two are used to map entity associations."
+"O tipo contido é referido como <emphasis>tipo de elemento de coleção</"
+"emphasis>. Os elementos de coleção são mapeados pelo <literal><element>"
+"</literal> ou <literal><composite-element></literal>,ou no caso de "
+"referências de entidade, com <literal><one-to-many></literal> "
+"ou<literal><many-to-many></literal>. Os primeiros dois, mapeiam "
+"elementos com semânticas de valor, os dois outros são usados para mapear "
+"associações de entidade."
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
-msgstr "Indexed collections"
+msgstr "Coleções indexadas"
#. Tag: para
-#: collection_mapping.xml:288
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column</emphasis> in the collection table. An index column "
@@ -530,396 +525,358 @@
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
-"All collection mappings, except those with set and bag semantics, need an "
-"<emphasis>index column</emphasis> in the collection table - a column that "
-"maps to an array index, or <literal>List</literal> index, or <literal>Map</"
-"literal> key. The index of a <literal>Map</literal> may be of any basic "
-"type, mapped with <literal><map-key></literal>, it may be an entity "
-"reference mapped with <literal><map-key-many-to-many></literal>, or it "
-"may be a composite type, mapped with <literal><composite-map-key></"
-"literal>. The index of an array or list is always of type <literal>integer</"
-"literal> and is mapped using the <literal><list-index></literal> "
-"element. The mapped column contains sequential integers (numbered from zero, "
-"by default)."
+"Todos os mapeamentos de coleção, exceto aqueles com semânticas de conjunto e "
+"bag, precisam de uma <emphasis>coluna Ãndice</emphasis> na tabela de "
+"coleção, uma coluna que mapeia para um Ãndice matriz ou Ãndice "
+"<literal>List</literal> ou chave de <literal>Map</literal>. O Ãndice de um "
+"<literal>Map</literal> pode ser de qualquer tipo, mapeado com <literal><"
+"map-key></literal>, pode ser uma referência de entidade mapeada com "
+"<literal><map-key-many-to-many></literal>, ou pode ser um tipo "
+"composto, mapeado com <literal><composite-map-key></literal>. O Ãndice "
+"de uma matriz ou lista é sempre do tipo <literal>integer</literal> e é "
+"mapeado usando o elemento <literal><list-index></literal>. As colunas "
+"mapeadas contém inteiros sequenciais, dos quais são numerados a partir do "
+"zero, por padrão. "
-#. Tag: sect2
-#: collection_mapping.xml:299
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
msgstr ""
+"<literal>column_name</literal> (requerido): O nome da coluna que mantém os "
+"valores do Ãndice da coleção."
#. Tag: para
-#: collection_mapping.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
+msgstr ""
+"<literal>base</literal> (opcional - padrão para <literal>0</literal>): o "
+"valor da coluna de Ãndice que corresponde ao primeiro elemento da lista ou "
+"matriz."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr ""
+"<literal>column</literal>(opcional): o nome da coluna que mnatém os valores "
+"do Ãndice de coleção."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
+msgstr ""
+"<literal>formula</literal> (opcional): Uma fórmula SQL usada para avaliar a "
+"chave ou o mapa."
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>type</literal> (requerido): o tipo de chaves de mapa."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr ""
+"<literal>column</literal> (opcional): o nome de uma coluna de chave exterior "
+"para os valores do Ãndice de coleção."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+"<literal>formula</literal> (opcional): uma fórmula SQ usada para avaliar a "
+"chave exterior da chave do mapa."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr ""
+"<literal>class</literal> (requerido): a classe da entidade usada como chave "
+"do mapa."
+
+#. Tag: para
+#, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
"when it is retrieved from the database, but it can be optionally sorted or "
"ordered."
msgstr ""
-"If your table doesn't have an index column, and you still wish to use "
-"<literal>List</literal> as the property type, you should map the property as "
-"a Hibernate <emphasis><bag></emphasis>. A bag does not retain its "
-"order when it is retrieved from the database, but it may be optionally "
-"sorted or ordered."
+"Se sua tabela não possui uma coluna de Ãndice e você ainda quiser usar a "
+"<literal>Lista</literal> como tipo de propriedade, você deve mapeiar a "
+"propriedade como uma <emphasis><bag></emphasis> do Hibernate. Uma bag "
+"não mantém sua ordem quando é recuperadada do banco de dados, mas pode ser "
+"escolhida de forma opcional ou ordenada. "
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
-msgstr "Collections of values and many-to-many associations"
+msgstr "Coleções de valores e associações muitos-para-muitos"
#. Tag: para
-#: collection_mapping.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table</emphasis> with a foreign key column or columns, "
"<emphasis>collection element column</emphasis> or columns, and possibly an "
"index column or columns."
msgstr ""
-"Any collection of values or many-to-many association requires a dedicated "
-"<emphasis>collection table</emphasis> with a foreign key column or columns, "
-"<emphasis>collection element column</emphasis> or columns and possibly an "
-"index column or columns."
+"Quaisquer valores de coleção ou associação muitos-para-muitos requerem uma "
+"<emphasis>tabela de coleção</emphasis> dedicada, com uma coluna de chave "
+"exterior ou colunas, <emphasis>collection element column</emphasis> ou "
+"colunas e possivelmente uma coluna de Ãndice ou colunas."
#. Tag: para
-#: collection_mapping.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
"For example:"
msgstr ""
-"For a collection of values, we use the <literal><element></literal> "
-"tag."
+"Para uma coleção com valores, utilizamos a tag <literal><element></"
+"literal>. Por exemplo:"
-#. Tag: sect2
-#: collection_mapping.xml:401
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
-"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
-"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
-"enables outer-join or sequential select fetching for this association. This "
-"is a special case; for full eager fetching in a single <literal>SELECT</"
-"literal> of an entity and its many-to-many relationships to other entities, "
-"you would enable <literal>join</literal> fetching,not only of the collection "
-"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"collection element values."
msgstr ""
+"<literal>column</literal> (opcional): o nome da coluna que mantém os valores "
+"do elemento da coleção."
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element."
msgstr ""
+"<literal>formula</literal> (opcional): uma fórmula usada para avaliar o "
+"elemento."
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
-msgid "A set of strings:"
+msgid "<literal>type</literal> (required): the type of the collection element."
+msgstr "<literal>type</literal> (requerido): o tipo do elemento de coleção."
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
msgstr ""
+"A <emphasis>associação muitos-para-muitos</emphasis> é especificada usando o "
+"elemento <literal><many-to-many></literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
msgstr ""
+"<literal>column</literal> (opcional): o nome da coluna da chave exterior do "
+"elemento."
#. Tag: para
-#: collection_mapping.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"A bag containing integers with an iteration order determined by the "
-"<literal>order-by</literal> attribute:"
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
msgstr ""
-"A bag containing integers (with an iteration order determined by the "
-"<literal>order-by</literal> attribute):"
+"<literal>formula</literal> (opcional): uma fórmula SQL usada para avaliar o "
+"valor da chave exterior do elemento."
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal> (requerido): O nome da classe associada. "
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
+"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
+"enables outer-join or sequential select fetching for this association. This "
+"is a special case; for full eager fetching in a single <literal>SELECT</"
+"literal> of an entity and its many-to-many relationships to other entities, "
+"you would enable <literal>join</literal> fetching,not only of the collection "
+"itself, but also with this attribute on the <literal><many-to-many></"
+"literal> nested element."
msgstr ""
+"<literal>fetch</literal> (opcional - padrão para <literal>join</literal>): "
+"ativa a busca de seleção seqüencial ou união exterior para esta associação. "
+"Isto é um caso especial; para uma busca completa num <literal>SELECT</"
+"literal> único de uma entidade e suas relações muitos-para-muitos com outras "
+"entidades, você deverá ativar a busca <literal>join</literal>, não apenas a "
+"própria coleção, mas também este atributo no elemento aninhado <literal><"
+"many-to-many></literal>."
#. Tag: para
-#: collection_mapping.xml:522
-#, fuzzy, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
-msgstr "An array of entities - in this case, a many to many association:"
+#, no-c-format
+msgid ""
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
+msgstr ""
+"<literal>unique</literal> (opcional): ativa a geração DDl de uma restrição "
+"única para a coluna de chave exterior. Isto realiza efetivamente a "
+"multiplicidade da associação um-para-muitos."
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
msgstr ""
+"<literal>not-found</literal> (opcional - padrão para <literal>exception</"
+"literal>): especifica como os identificadores em cache que referenciam as "
+"linhas faltantes serão tratadas: <literal>ignore</literal> tratará a linha "
+"faltante como uma associação nula. "
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
-msgstr "A map from string indices to dates:"
+msgid ""
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
+msgstr ""
+"<literal>entity-name</literal> (opcional): O nome da entidade da classe "
+"associada, como uma alternativa para a <literal>class</literal>. "
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
msgstr ""
+"<literal>property-ref</literal> (opcional): o nome de uma propriedade de "
+"classe associada que é unida a esta chave exterior. caso não especificada, a "
+"chave primária da classe associada será usada."
#. Tag: para
-#: collection_mapping.xml:534
-#, fuzzy, no-c-format
-msgid "A list of components (this is discussed in the next chapter):"
-msgstr "A list of components (discussed in the next chapter):"
+#, no-c-format
+msgid "Here are some examples."
+msgstr "Segue abaixo alguns exemplos."
-#. Tag: programlisting
-#: collection_mapping.xml:538
+#. Tag: para
#, no-c-format
+msgid "A set of strings:"
+msgstr "Um conjunto de strings:"
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
+"A bag containing integers with an iteration order determined by the "
+"<literal>order-by</literal> attribute:"
msgstr ""
+"Uma bag contendo inteiros com uma ordem de iteração determinada pelo "
+"atributo <literal>order-by</literal>):"
+#. Tag: para
+#, no-c-format
+msgid "An array of entities, in this case, a many-to-many association:"
+msgstr ""
+"Uma matriz de entidades, neste caso, uma associação muitos-para-muitos: "
+
+#. Tag: para
+#, no-c-format
+msgid "A map from string indices to dates:"
+msgstr "Um mapa desde Ãndices de strigs até datas:"
+
+#. Tag: para
+#, no-c-format
+msgid "A list of components (this is discussed in the next chapter):"
+msgstr "Uma lista de componentes (isto será discutido no próximo capÃtulo):"
+
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
-msgstr "One-to-many associations"
+msgstr "Associações um-para-muitos"
#. Tag: para
-#: collection_mapping.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
msgstr ""
-"A <emphasis>one to many association</emphasis> links the tables of two "
-"classes via a foreign key, with no intervening collection table. This "
-"mapping loses certain semantics of normal Java collections:"
+"Uma <emphasis>associação um para muitos</emphasis> liga as tabelas das duas "
+"classes através de uma chave exterior, sem a intervenção da tabela de "
+"coleção. Este mapeamento perde um pouco da semântica das coleções normais do "
+"Java: "
#. Tag: para
-#: collection_mapping.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
msgstr ""
-"An instance of the contained entity class may not belong to more than one "
-"instance of the collection"
+"Uma instância de classes entidades contidas, podem não pertencer à mais de "
+"uma instância da coleção. "
#. Tag: para
-#: collection_mapping.xml:559
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
msgstr ""
-"An instance of the contained entity class may not appear at more than one "
-"value of the collection index"
+"Uma instância da classe de entidade contida pode não aparecer em mais de um "
+"valor do Ãndice da coleção. "
#. Tag: para
-#: collection_mapping.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
"requires the existence of a foreign key column and possibly an index column "
"to the <literal>Part</literal> table. A <literal><one-to-many></"
"literal> tag indicates that this is a one-to-many association."
msgstr ""
-"An association from <literal>Product</literal> to <literal>Part</literal> "
-"requires existence of a foreign key column and possibly an index column to "
-"the <literal>Part</literal> table. A <literal><one-to-many></literal> "
-"tag indicates that this is a one to many association."
+"Uma associação a partir do <literal>Produto</literal> até a <literal>Parte</"
+"literal> requer a existência de uma coluna de chave exterior e possivelmente "
+"uma coluna de Ãndice para a tabela <literal>Part</literal> Uma tag "
+"<literal><one-to-many></literal> indica que esta é uma associação um "
+"para muitos."
-#. Tag: programlisting
-#: collection_mapping.xml:579
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:582
-#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr "<literal>class</literal> (required): The name of the associated class."
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
-msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
"be handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (optional - defaults to <literal>exception</"
-"literal>): Specifies how cached identifiers that reference missing rows will "
-"be handled: <literal>ignore</literal> will treat a missing row as a null "
-"association."
+"<literal>not-found</literal> (opcional - padrão para <literal>exception</"
+"literal>): Especifica como os identificadores em cache que referenciam as "
+"linhas faltantes serão tratadas: <literal>ignore</literal> tratará a linha "
+"faltante como uma associação nula. "
#. Tag: para
-#: collection_mapping.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"<literal>entity-name</literal> (optional): The entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
msgstr ""
-"Notice that the <literal><one-to-many></literal> element does not need "
-"to declare any columns. Nor is it necessary to specify the <literal>table</"
-"literal> name anywhere."
+"Note que o elemento <literal><one-to-many></literal> não precisa "
+"declarar qualquer coluna. Nem é necessário especificar o nome da "
+"<literal>table</literal> em qualquer lugar. "
#. Tag: para
-#: collection_mapping.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
"association is declared <literal>NOT NULL</literal>, you must declare the "
@@ -928,105 +885,67 @@
"mapping marked <literal>inverse=\"true\"</literal>. See the discussion of "
"bidirectional associations later in this chapter for more information."
msgstr ""
-"<emphasis>Very important note:</emphasis> If the foreign key column of a "
-"<literal><one-to-many></literal> association is declared <literal>NOT "
-"NULL</literal>, you must declare the <literal><key></literal> mapping "
-"<literal>not-null=\"true\"</literal> or <emphasis>use a bidirectional "
-"association</emphasis> with the collection mapping marked <literal>inverse="
-"\"true\"</literal>. See the discussion of bidirectional associations later "
-"in this chapter."
+"Se a coluna da chave exterior de uma associação <literal><one-to-many>"
+"</literal> for declarada como <literal>NOT NULL</literal>, você deve "
+"declarar a <literal><key></literal> mapeando <literal>not-null=\"true"
+"\"</literal> ou <emphasis>use uma associação bidirecional</emphasis> com o "
+"mapeamento da coleção marcado como <literal>inverse=\"true\"</literal>. Veja "
+"a discussão das associações bidirecionais mais tarde neste mesmo capÃtulo."
#. Tag: para
-#: collection_mapping.xml:619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
"name, where <literal>partName</literal> is a persistent property of "
"<literal>Part</literal>. Notice the use of a formula-based index:"
msgstr ""
-"This example shows a map of <literal>Part</literal> entities by name (where "
-"<literal>partName</literal> is a persistent property of <literal>Part</"
-"literal>). Notice the use of a formula-based index."
+"Este exemplo demonstra um mapa das entidades <literal>Part</literal> por "
+"nome, onde <literal>partName</literal> é uma propriedade persistente de "
+"<literal>Part</literal>. Note que o uso de um Ãndice baseado em fórmula:"
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
-msgstr "Advanced collection mappings"
+msgstr "Mapeamentos de coleção avançados."
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
-msgstr "Sorted collections"
+msgstr "Coleções escolhidas"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
"literal> and <literal>java.util.SortedSet</literal>. You must specify a "
"comparator in the mapping file:"
msgstr ""
-"Hibernate supports collections implementing <literal>java.util.SortedMap</"
-"literal> and <literal>java.util.SortedSet</literal>. You must specify a "
-"comparator in the mapping file:"
+"O Hibernate suporta a implementação de coleções <literal>java.util."
+"SortedMap</literal> e <literal>java.util.SortedSet</literal>. Você deve "
+"especificar um comparador no arquivo de mapeamento:"
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
"<literal>unsorted</literal>, <literal>natural</literal> and the name of a "
"class implementing <literal>java.util.Comparator</literal>."
msgstr ""
-"Allowed values of the <literal>sort</literal> attribute are "
-"<literal>unsorted</literal>, <literal>natural</literal> and the name of a "
-"class implementing <literal>java.util.Comparator</literal>."
+"Valores permitidos da função<literal>sort</literal> são<literal>unsorted</"
+"literal>, <literal>natural</literal> e o nome de uma classe implementando "
+"<literal>java.util.Comparator</literal>."
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
"or <literal>java.util.TreeMap</literal>."
msgstr ""
-"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
-"or <literal>java.util.TreeMap</literal>."
+"Coleções escolhidas, na verdade se comportam como <literal>java.util."
+"TreeSet</literal> ou <literal>java.util.TreeMap</literal>."
#. Tag: para
-#: collection_mapping.xml:654
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by</literal> attribute of <literal>set</literal>, "
@@ -1035,159 +954,98 @@
"<literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>. This "
"performs the ordering in the SQL query and not in the memory."
msgstr ""
-"If you want the database itself to order the collection elements use the "
-"<literal>order-by</literal> attribute of <literal>set</literal>, "
-"<literal>bag</literal> or <literal>map</literal> mappings. This solution is "
-"only available under JDK 1.4 or higher (it is implemented using "
-"<literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>). This "
-"performs the ordering in the SQL query, not in memory."
+"Se você quiser que o próprio banco de dados ordene os elementos da coleção "
+"use a função <literal>order-by</literal> do <literal>set</literal>, "
+"<literal>bag</literal> ou mapeamentos <literal>map</literal>. Esta solução "
+"está disponÃvel somente sob JDK 1.4 ou versões posteriores e é implementada "
+"usando <literal>LinkedHashSet</literal> ou <literal>LinkedHashMap</"
+"literal>). Este desempenha a ordenação na consulta SQL, não em memória."
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: collection_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
-"Note that the value of the <literal>order-by</literal> attribute is an SQL "
-"ordering, not a HQL ordering!"
+"Note que o valor da função <literal>order-by</literal> é uma ordenação SQL e "
+"não uma ordenação."
#. Tag: para
-#: collection_mapping.xml:673
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter()</literal>:"
msgstr ""
-"Associations may even be sorted by some arbitrary criteria at runtime using "
-"a collection <literal>filter()</literal>."
+"Associações podem também ser escolhidas por algum critério arbritrário em "
+"tempo de espera usando uma coleção <literal>filter()</literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
-msgstr "Bidirectional associations"
+msgstr "Associações Bidirecionais"
#. Tag: para
-#: collection_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
-"A <emphasis>bidirectional association</emphasis> allows navigation from both "
-"\"ends\" of the association. Two kinds of bidirectional association are "
-"supported: <placeholder-1/>"
+"Uma <emphasis>associação bidirecional</emphasis> permite a navegação de "
+"ambos os \"lados\" da associação. Dois dos casos de associação bidirecional, "
+"são suportados: "
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
-msgstr "one-to-many"
+msgstr "Um-para-muitos"
#. Tag: para
-#: collection_mapping.xml:694
-#, fuzzy, no-c-format
+#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
-msgstr "set or bag valued at one end, single-valued at the other"
+msgstr "conjunto ou bag de valor em um dos lados, valor único do outro "
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
-msgstr "many-to-many"
+msgstr "Muitos-para-muitos"
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
-msgstr "set or bag valued at both ends"
+msgstr "Conjunto ou bag com valor em ambos os lados"
#. Tag: para
-#: collection_mapping.xml:711
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
-"You may specify a bidirectional many-to-many association simply by mapping "
-"two many-to-many associations to the same database table and declaring one "
-"end as <emphasis>inverse</emphasis> (which one is your choice, but it can "
-"not be an indexed collection)."
+"Você deve especificar uma associação muitos-para-muitos bidirecional, "
+"simplesmente mapeando as duas associações muitos-para-muitos para alguma "
+"tabela de banco de dados e declarando um dos lados como <emphasis>inverso</"
+"emphasis> Voce não poderá selecionar uma coleção indexada."
#. Tag: para
-#: collection_mapping.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
-"Here's an example of a bidirectional many-to-many association; each category "
-"can have many items and each item can be in many categories:"
+"Segue aqui um exemplo de uma associação muitos-para-muitos bidirecional. "
+"Cada categoria pode ter muitos Ãtens e cada Ãtem pode estar em várias "
+"categorias: "
-#. Tag: programlisting
-#: collection_mapping.xml:723
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:725
-#, fuzzy, no-c-format
-msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
"emphasis> persisted. This means that Hibernate has two representations in "
"memory for every bidirectional association: one link from A to B and another "
@@ -1198,36 +1056,19 @@
"são persistidas. Isto significa que o Hibernate tem duas representações na "
"memória para cada associação bidirecional, uma associação de A para B e uma "
"outra associação de B para A. Isto é mais fácil de compreender se você pensa "
-"sobre o modelo do objetos do Java e como nós criamos um relacionamento "
-"muitos para muitos em Java:"
+"sobre o modelo de objetos do Java e como criamos um relacionamento muitos "
+"para muitos em Java:"
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
"database."
msgstr ""
-"A outra ponta é usada salvar a representação em memória à base de dados."
+"A outra ponta é usada para salvar a representação em memória à base de dados."
#. Tag: para
-#: collection_mapping.xml:739
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
"many association to the same table column(s) as a many-to-one association "
@@ -1236,50 +1077,25 @@
"Você pode definir uma associação bidirecional um para muitos através de uma "
"associação um-para-muitos indicando as mesmas colunas da tabela que à "
"associação muitos-para-um e declarando a propriedade <literal>inverse=\"true"
-"\"</literal>"
+"\"</literal>."
-#. Tag: programlisting
-#: collection_mapping.xml:745
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:747
-#, fuzzy, no-c-format
-msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
"Mapear apenas uma das pontas da associação com <literal>inverse=\"true\"</"
-"literal> não afeta as operações em cascata, isso é um conceito ortogonal."
+"literal> não afeta as operações em cascata, uma vez que isto é um conceito "
+"ortogonal."
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "Associações bidirecionais com coleções indexadas"
#. Tag: para
-#: collection_mapping.xml:756
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <literal><map></literal>, requires special "
@@ -1287,43 +1103,15 @@
"index column you can use <literal>inverse=\"true\"</literal> on the "
"collection mapping:"
msgstr ""
-"Uma associação bidirecional onde uma dos lados e representa pôr uma "
+"Uma associação bidirecional onde um dos lados é representado por uma "
"<literal><list></literal> ou <literal><map></literal> requer uma "
"consideração especial. Se houver uma propriedade da classe filha que faça o "
-"mapeamento da coluna do Ãndice, sem problema, pode-se continuar usando "
-"<literal>inverse=\"true\"</literal> no mapeamento da coleção."
+"mapeamento da coluna do Ãndice sem problemas, pode-se continuar usando "
+"<literal>inverse=\"true\"</literal> no mapeamento da coleção:"
-#. Tag: programlisting
-#: collection_mapping.xml:763
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:765
-#, fuzzy, no-c-format
-msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
@@ -1333,115 +1121,58 @@
"Mas, se não houver nenhuma propriedade na classe filha, não podemos ver essa "
"associação como verdadeiramente bidirecional (há uma informação disponÃvel "
"em um lado da associação que não está disponÃvel no extremo oposto). Nesse "
-"caso, nos não podemos mapear a coleção usando <literal>inverse=\"true\"</"
-"literal>. Nos devemos usar o seguinte mapeamento:"
+"caso, nós não podemos mapear a coleção usando <literal>inverse=\"true\"</"
+"literal>. Devemos usar o seguinte mapeamento: "
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
msgstr ""
-"Veja que neste mapeamento, que um dos lado da associação, a coleção, é "
-"responsável pela atualização da chave estrangeira. TODO: Isso realmente "
-"resulta em updates desnecessários ?."
+"Veja que neste mapeamento, o lado de coleção válida da associação é "
+"responsável pela atualização da chave exterior. <!-- TODO: Does this really "
+"result in some unnecessary update statements? -->"
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "Associações Ternárias"
#. Tag: para
-#: collection_mapping.xml:784
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
"Há três meios possÃveis de se mapear uma associação ternária. Uma é usar um "
-"<literal>Map</literal> com uma associação como seu Ãndice:"
+"<literal>Map</literal> com uma associação como seu Ãndice: "
-#. Tag: programlisting
-#: collection_mapping.xml:789
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:793
-#, fuzzy, no-c-format
-msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
"A segunda maneira é simplesmente remodelar a associação das classes da "
-"entidade. Esta é a maneira que nós usamos de uma maneira geral."
+"entidade. Esta é a abordagem que utilizamos com mais freqüência. "
#. Tag: para
-#: collection_mapping.xml:798
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
msgstr ""
"Uma alternativa final é usar os elementos compostos, que nós discutiremos "
-"mais tarde."
+"mais tarde. "
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
-msgstr "Usando o <idbag>"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
+msgstr "<literal>Using an <idbag></literal>"
#. Tag: para
-#: collection_mapping.xml:807
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
"shown previously all map to tables with composite keys, even though it has "
@@ -1452,56 +1183,40 @@
"feature that allows you to map many-to-many associations and collections of "
"values to a table with a surrogate key."
msgstr ""
-"Se você concorda com nossa visão que chaves compostas são uma coisa ruim e "
-"que as entidades devem ter identificadores sintéticos (surrogate keys), "
-"então você deve estar achando um pouco estranho que as associações muitos "
-"para muitos usando coleções de valores que nós mostramos estejam mapeadas "
-"com chaves compostas! Bem, este ponto é bastante discutÃvel; um simples "
-"tabela de associação não parece se beneficiar muito de uma surrogate key "
-"(entretanto uma coleção de valores compostos <emphasis>sim</emphasis>). "
-"Opcionalmente, o Hibernate prove uma maneira de mapear uma associação muitos "
-"para muitos com uma coleção de valores para uma tabela com uma surrogate key."
+"A maioria das associações e coleções muitos para muitos de valores "
+"apresentados anteriormente mapeiam às tabelas com as chaves de composição, "
+"mesmo que foi sugerido que as entidades devem ser identificadores sintéticos "
+"(chaves substitutas). Uma tabela de associação pura não parece tirar muito "
+"proveito de uma chave substituta, mesmo que uma coleção de valores compostos "
+"<emphasis>usufruam disto</emphasis>. à por este motivo que o Hibernate provê "
+"uma maneira de mapear uma associação muitos para muitos com uma coleção de "
+"valores para uma tabela com uma chave substituta. "
#. Tag: para
-#: collection_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
"literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
"O elemento <literal><idbag></literal> permite mapear um <literal>List</"
-"literal> (ou uma <literal>Collection</literal> com uma semântica de bag."
+"literal> (ou uma <literal>Collection</literal>) com uma semântica de bag. "
+"Por exemplo:"
-#. Tag: programlisting
-#: collection_mapping.xml:822
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:824
-#, fuzzy, no-c-format
-msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
-"Como você pode ver, um <literal><idbag></literal> possui um gerador de "
-"id sintético, igual uma classe de entidade! Uma surrogate key diferente é "
-"associada para cada elemento de coleção. Porém, o Hibernate não prove nenhum "
-"mecanismo para descobrir qual a surrogate key de uma linha em particular."
+"O <literal><idbag></literal> possui um gerador de id sintético, igual "
+"a uma classe de entidade. Uma chave substituta diferente é associada para "
+"cada elemento de coleção. Porém, o Hibernate não provê de nenhum mecanismo "
+"para descobrir qual a chave substituta de uma linha em particular."
#. Tag: para
-#: collection_mapping.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
"regular <literal><bag></literal>. Hibernate can locate individual rows "
@@ -1509,12 +1224,11 @@
"or set."
msgstr ""
"Note que o desempenho de atualização de um <literal><idbag></literal> "
-"é <emphasis>much</emphasis> melhor que um <literal><bag></literal> "
-"normal! O Hibernate pode localizar uma linha individual eficazmente e "
-"atualizar ou deletar individualmente, como um list, map ou set."
+"é melhor do que um <literal><bag></literal> normal. O Hibernate pode "
+"localizar uma linha individual eficazmente e atualizar ou deletar "
+"individualmente, como um list, map ou set."
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
@@ -1526,417 +1240,87 @@
"usando o <literal><idbag></literal>."
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr "Exemplos de coleções"
#. Tag: para
-#: collection_mapping.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This section covers collection examples."
-msgstr "Exemplos de coleções"
+msgstr "Esta sessão cobre os exemplos de coleções."
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
msgstr ""
+"A seguinte classe possui uma coleção de instâncias <literal>Child</literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:871
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:873
-#, fuzzy, no-c-format
-msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
-"tem uma coleção de instancias de <literal>Child</literal>. Se cada Child "
-"tiver no máximo um parent, o mapeamento natural é uma associação um para "
-"muitos:"
+"Se cada Filho tiver no máximo um Pai, o mapeamento natural é uma associação "
+"um para muitos:"
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "Esse mapeamento gera a seguinte definição de tabelas"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
"many association:"
msgstr ""
-"Se o parent for <emphasis>obrigatório</emphasis>, use uma associação "
+"Se o pai for <emphasis>obrigatório</emphasis>, use uma associação "
"bidirecional um para muitos:"
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
-msgstr "Repare na constraint <literal>NOT NULL</literal>:"
+msgstr "Repare na restrição <literal>NOT NULL</literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:898
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:900
-#, fuzzy, no-c-format
-msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL</literal> constraint on the <literal><key></"
"literal> mapping:"
msgstr ""
-"Uma outra alternativa, no caso de você insistir que esta associação devea "
-"ser unidirecional, você pode declarar a constraint como <literal>NOT NULL</"
-"literal> na tag <literal><key></literal> do mapeamento:"
+"Uma outra alternativa, no caso de você insistir que esta associação deva ser "
+"unidirecional, você pode declarar a restrição como <literal>NOT NULL</"
+"literal> no mapeamento <literal><key></literal>:"
-#. Tag: programlisting
-#: collection_mapping.xml:906
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:908
-#, fuzzy, no-c-format
-msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
"association is appropriate:"
msgstr ""
-"Por outro lado, se uma child puder ter os múltiplos parents, a associação "
-"apropriada é muitos-para-muitos:"
+"Por outro lado, se um filho puder ter os múltiplos pais, a associação "
+"apropriada será muitos-para-muitos: "
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr "Definições das tabelas:"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
-"For more examples and a complete walk-through a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/>. Para mais exemplos e "
-"um exemplo completo de mapeamento de relacionamento de mestre/detalhe, veja "
-"<xref linkend=\"example-parentchild\"/>."
+"Para mais exemplos e um exemplo completo de mapeamento de relacionamento de "
+"mestre/detalhe, consulte <xref linkend=\"example-parentchild\" />."
#. Tag: para
-#: collection_mapping.xml:926
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
msgstr ""
-"Até mesmo o mapeamento de associações mais exóticas são possÃveis, nós "
-"catalogaremos todas as possibilidades no próximo capÃtulo."
-
-#~ msgid "Collection Mapping"
-#~ msgstr "Mapeamento de Coleções"
-
-#~ msgid "Some examples, first, a set of strings:"
-#~ msgstr "Some examples, first, a set of strings:"
-
-#~ msgid ""
-#~ "The previous sections are pretty confusing. So lets look at an example. "
-#~ "This class:"
-#~ msgstr ""
-#~ "As seções anteriores são uma grande confusão. Assim sendo vejamos uma "
-#~ "exemplo. Essa classe:"
-
-#~ msgid ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
-#~ msgstr ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
-
-#~ msgid ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
-#~ msgstr ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
-
-#~ msgid "<literal>type</literal> (reguired): The type of the map keys."
-#~ msgstr "<literal>type</literal> (reguired): The type of the map keys."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
-
-#~ msgid ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
-#~ msgstr ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
-#~ msgstr ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
-
-#~ msgid ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-#~ msgstr ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-
-#~ msgid ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
-#~ msgstr ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
-
-#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
-#~ msgstr ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
-
-#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
-#~ msgstr ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
-
-#~ msgid ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
-#~ msgstr ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
-
-#~ msgid ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
-#~ msgstr ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
-
-#~ msgid ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
-#~ msgstr ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
-
-#~ msgid ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
-#~ msgstr ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
+"Até mesmo o mapeamento de associações mais complexos serão discutimos no "
+"próximo capÃtulo."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,40 +1,143 @@
+# translation of component_mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: component_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-10-26 11:53+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
msgstr "Mapeamento de Componentes"
#. Tag: para
-#: component_mapping.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
-"A noção de <emphasis>componente</emphasis> é reusada em vários contextos "
-"diferentes, para propósitos diferentes, pelo Hibernate."
+"A noção de <emphasis>componente</emphasis> é re-utilizada em vários "
+"contextos diferentes, para propósitos diferentes, pelo Hibernate. "
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr "Objetos dependentes"
#. Tag: para
-#: component_mapping.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
@@ -43,73 +146,12 @@
msgstr ""
"Um componente é um objeto contido que é persistido como um tipo de valor, "
"não uma referência de entidade. O termo \"componente\" refere-se à noção de "
-"composição da orientação a objetos (não a componentes no nÃvel de "
-"arquitetura). Por exemplo, você pode modelar uma pessoa desta maneira:"
+"composição da orientação a objetos e não a componentes no nÃvel de "
+"arquitetura. Por exemplo, você pode modelar uma pessoa desta maneira: "
-#. Tag: programlisting
-#: component_mapping.xml:45
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:49
-#, fuzzy, no-c-format
-msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
"<literal>Person</literal>. <literal>Name</literal> defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
@@ -118,47 +160,26 @@
"Agora <literal>Name</literal> pode ser persistido como um componente de "
"<literal>Person</literal>. Note que <literal>Name</literal> define métodos "
"getter e setter para suas propriedades persistentes, mas não necessita "
-"declarar nenhuma interface ou propriedades identificadoras."
+"declarar nenhuma interface ou propriedades identificadoras. "
#. Tag: para
-#: component_mapping.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Our Hibernate mapping would look like this:"
-msgstr "Nosso mapeamento do Hibernate seria semelhante a isso"
+msgstr "Nosso mapeamento do Hibernate seria semelhante a este: "
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
msgstr ""
-"A tabela pessoa teria as seguintes colunas <literal>pid</literal>, "
+"A tabela person teria as seguintes colunas <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
#. Tag: para
-#: component_mapping.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
@@ -168,18 +189,16 @@
"if all component columns are null, then the entire component is null. This "
"is suitable for most purposes."
msgstr ""
-"Assim como todos tipos por valor, componentes não suportam referencias "
-"cruzadas. Em outras palavras, duas pessoas poderiam possuir o mesmo nome, "
-"mas os dois objetos pessoa poderiam conter dois objetos nome independentes, "
-"apenas com \"o mesmo\" por valor. A semântica dos valores null de um "
-"componente são <emphasis>ad hoc</emphasis>. No recarregameno do conteúdo do "
-"objeto, O Hibernate assumira que se todas as colunas do componente são null, "
-"então todo o componente é null. Isto seria o certo para a maioria dos "
-"propósitos."
+"Assim como todos tipos por valor, componentes não suportam referências "
+"cruzadas. Em outras palavras, duas persons podem ter o mesmo nome, mas os "
+"dois objetos person podem ter dois objetos de nome independentes, apenas \"o "
+"mesmo\" por valor. A semântica dos valores null de um componente são "
+"<emphasis>ad hoc</emphasis>. No recarregameno do conteúdo do objeto, o "
+"Hibernate entenderá que se todas as colunas do componente são null, então "
+"todo o componente é null. Isto seria o certo para a maioria dos propósitos."
#. Tag: para
-#: component_mapping.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
@@ -187,91 +206,53 @@
"intended to support a fine-grained object model."
msgstr ""
"As propriedades de um componente podem ser de qualquer tipo do Hibernate"
-"(collections, associações muitos-para-um, outros componentes, etc). "
-"Componentes agrupados <emphasis>não </emphasis> devem ser consideros um uso "
-"exótico. O Hibernate tem a intenção de suportar um modelo de objetos muito "
-"bem granulado."
+"(coleções, associações muitos-para-um, outros componentes, etc). Componentes "
+"agrupados <emphasis>não</emphasis> devem ser considerados luxo. O Hibernate "
+"tem a intenção de suportar um modelo de objetos fine-grained (muito bem "
+"granulados)."
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"O elemento <literal><component></literal> permite um subelemento "
-"<literal><parent></literal> que mapeia uma propriedade da classe "
-"componente como uma referência de volta para a entidade que a contém."
+"O elemento <literal><component></literal> permite um sub-elemento "
+"<literal><parent></literal> mapeie uma propriedade da classe do "
+"componente como uma referencia de volta para a entidade que o contém."
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
-msgstr "Collections de objetos dependentes"
+msgstr "Coleções de objetos dependentes"
#. Tag: para
-#: component_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
"<literal>Name</literal>). Declare your component collection by replacing the "
"<literal><element></literal> tag with a <literal><composite-"
"element></literal> tag:"
msgstr ""
-"Collections de componentes são suportadadas(ex. uma array de tipo "
-"<literal>Name</literal>). Declare a sua collection de componentes "
-"substituindo a tag<literal><element></literal> pela tag <literal><"
-"composite-element></literal>."
+"Coleções de componentes são suportadas (ex.: uma matriz de tipo "
+"<literal>Name</literal>). Declare a sua coleção de componentes substituindo "
+"a tag<literal><element></literal> pela tag <literal><composite-"
+"element></literal>. "
-#. Tag: programlisting
-#: component_mapping.xml:105
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:108
-#, fuzzy, no-c-format
-msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
"important to implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> correctly."
msgstr ""
-"Nota: se você definir um <literal>Set</literal> de elementos compostos, é "
-"muito importante implementar <literal>equals()</literal> e <literal>hashCode"
-"()</literal> corretamente."
+"Se você definir um <literal>Set</literal> de elementos compostos, é muito "
+"importante implementar <literal>equals()</literal> e <literal>hashCode()</"
+"literal> corretamente. "
#. Tag: para
-#: component_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
@@ -281,18 +262,17 @@
"but be aware that even though the Java model is the same, the relational "
"model and persistence semantics are still slightly different."
msgstr ""
-"Elementos compostos podem conter componentes mas não collections. Se o seu "
-"elemento composto contiver componentes , use a tag <literal><nested-"
-"composite-element></literal> . Este é um caso bastante exótico â uma "
-"collections de componentes que por si própria possui componentes. Neste "
-"momento você deve estar se perguntando se uma associação de um-para-muitos "
-"seria mais apropriada. Tente remodelar o elemento composto como uma entidade "
-"â mas note que mesmo pensando que o modelo Java é o mesmo, o modelo "
-"relacional e a semântica de persistência ainda são diferentes."
+"Elementos compostos podem conter componentes mas não coleções. Se o seu "
+"elemento composto tiver componentes , use a tag <literal><nested-"
+"composite-element></literal>. Este é um caso bastante exótico â coleções "
+"de componentes que por si própria possui componentes. Neste momento você "
+"deve estar se perguntando se uma associação de um-para-muitos seria mais "
+"apropriada. Tente remodelar o elemento composto como uma entidade â mas note "
+"que mesmo pensando que o modelo Java é o mesmo, o modelo relacional e a "
+"semântica de persistência ainda são diferentes."
#. Tag: para
-#: component_mapping.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set></literal>. There is no separate primary key "
@@ -302,19 +282,17 @@
"element or choose a <literal><list></literal>, <literal><map></"
"literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
-"Por favor, note que um mapeamento de elemento composto não suporta "
-"propriedades capazes de serem null se você estiver usando um <literal><"
-"set></literal>. O Hibernate tem que usar cada valor das colunas para "
-"identificar um registro quando estiver deletando objetos (não existe coluna "
-"chave primária separada na tabela de elemento composto), que não é possÃvel "
-"com valores null. Você tem que usar um dos dois, ou apenas propriedades não "
-"null em um elemento composto ou escolher uma <literal><list></"
-"literal>, <literal><map></literal>, <literal><bag></literal> ou "
-"<literal><idbag></literal>."
+"Um mapeamento de elemento composto não suporta propriedades capazes de serem "
+"null se você estiver usando um <literal><set></literal>. Não existe "
+"coluna chave primária separada na tabela de elemento composto. O Hibernate "
+"tem que usar cada valor das colunas para identificar um registro quando "
+"estiver deletando objetos, que não é possÃvel com valores null. Você tem que "
+"usar um dos dois, ou apenas propriedades não null em um elemento composto ou "
+"escolher uma <literal><list></literal>, <literal><map></"
+"literal>, <literal><bag></literal> ou <literal><idbag></literal>."
#. Tag: para
-#: component_mapping.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one></literal> element. This mapping allows you to "
@@ -326,74 +304,35 @@
msgstr ""
"Um caso especial de elemento composto é um elemento composto com um elemento "
"<literal><many-to-one></literal> aninhado. Um mapeamento como este "
-"permite você a mapear colunas extras de uma tabela de associação de muitos-"
+"permite que você mapeie colunas extras de uma tabela de associação de muitos-"
"para-muitos para a classe de elemento composto. A seguinte associação de "
"muitos-para-muitos de <literal>Order</literal> para um <literal>Item</"
"literal> onde <literal>purchaseDate</literal>, <literal>price</literal> e "
"<literal>quantity</literal> são propriedades da associação:"
-#. Tag: programlisting
-#: component_mapping.xml:148
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:150
-#, fuzzy, no-c-format
-msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase</literal> can be in the "
"set of an <literal>Order</literal>, but it cannot be referenced by the "
"<literal>Item</literal> at the same time."
msgstr ""
-"Claro, que não pode ter uma referência para purchase no outro lado, para a "
-"navegação da associação bidirecional. Lembre-se que componentes são tipos "
-"por valor e não permitem referências compartilhadas. Uma classe "
-"<literal>Purchase</literal> simples pode estar no set de uma classe "
-"<literal>Order</literal>, mas ela não pode ser referenciada por "
-"<literal>Item</literal> no mesmo momento."
+"Não pode haver uma referência de compra no outro lado, para a navegação da "
+"associação bidirecional. Lembre-se que componentes são tipos por valor e não "
+"permitem referências compartilhadas. Uma classe <literal>Purchase</literal> "
+"simples pode estar no conjunto de uma classe <literal>Order</literal>, mas "
+"ela não pode ser referenciada por <literal>Item</literal> no mesmo momento."
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "Até mesmo associações ternárias (ou quaternária, etc) são possÃveis:"
-#. Tag: programlisting
-#: component_mapping.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:162
-#, fuzzy, no-c-format
-msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
msgstr ""
@@ -401,14 +340,12 @@
"como associações para outras entidades."
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
msgstr "Componentes como Ãndices de Map"
#. Tag: para
-#: component_mapping.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
"component class as the key of a <literal>Map</literal>. Ensure that you "
@@ -418,71 +355,63 @@
"O elemento <literal><composite-map-key></literal> permite você mapear "
"uma classe componente como uma chave de um <literal>Map</literal>. Tenha "
"certeza que você sobrescreveu <literal>hashCode()</literal> e <literal>equals"
-"()</literal> corretamente na classe componente."
+"()</literal> corretamente na classe componente. "
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
-msgstr ". Componentes como identificadores compostos"
+msgstr "Componentes como identificadores compostos"
#. Tag: para
-#: component_mapping.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
"Você pode usar um componente como um identificador de uma classe entidade. "
-"Sua classe componente deve satisfazer certos requisitos:"
+"Sua classe componente deve satisfazer certos requisitos: "
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
msgstr "Ele deve implementar <literal>java.io.Serializable</literal>."
#. Tag: para
-#: component_mapping.xml:195
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> consistently with the database's notion of composite key equality."
msgstr ""
"Ele deve re-implementar <literal>equals()</literal> e <literal>hashCode()</"
"literal>, consistentemente com a noção de igualdade de chave composta do "
-"banco de dados."
+"banco de dados. "
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: component_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
-"Nota: no Hibernate 3, o segundo requisito não é um requisito absolutamente "
+"No Hibernate 3, o segundo requisito não é um requisito absolutamente "
"necessário. Mas atenda ele de qualquer forma."
#. Tag: para
-#: component_mapping.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
"Você não pode usar um <literal>IdentifierGenerator</literal> para gerar "
-"chaves compostas. Ao invés disso o aplicativo deve gerenciar seus próprios "
+"chaves compostas. Ao invés disso, o aplicativo deve gerenciar seus próprios "
"identificadores."
#. Tag: para
-#: component_mapping.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
"<literal><key-property></literal> elements, in place of the usual "
@@ -490,73 +419,36 @@
"<literal>OrderLine</literal> class has a primary key that depends upon the "
"(composite) primary key of <literal>Order</literal>."
msgstr ""
-"Use a tag <literal><composite-id></literal> (com elementos "
-"<literal><key-property></literal> aninhados) no lugar da declaração "
+"Use a tag <literal><composite-id></literal>, com elementos "
+"<literal><key-property></literal> aninhados, no lugar da declaração "
"<literal><id></literal> de costume. Por exemplo, a classe "
"<literal>OrderLine</literal> possui uma chave primária que depende da chave "
-"primária (composta) de <literal>Order</literal>."
+"primária (composta) de <literal>Order</literal>. "
-#. Tag: programlisting
-#: component_mapping.xml:224
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-"\n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-"\n"
-" <property name=\"name\"/>\n"
-"\n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:226
-#, fuzzy, no-c-format
-msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-"Agora, qualquer chave estrangeira referenciando a tabela <literal>OrderLine</"
-"literal> também serão compostas. Você deve declarar isto em seus mapeamentos "
+"Agora, qualquer chave exterior referenciando a tabela <literal>OrderLine</"
+"literal> também será composta. Você deve declarar isto em seus mapeamentos "
"para outras classes. Uma associação para <literal>OrderLine</literal> seria "
"mapeada dessa forma:"
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
"<literal>column</literal> attribute everywhere. Using the <literal>column</"
"literal> element just gives more declaration options, which are mostly "
"useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
+"A tag <literal><column></literal> é uma alternativa para a função "
+"<literal>column</literal> em todos os lugares."
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
@@ -565,110 +457,43 @@
"Uma associação <literal>many-to-many</literal> para <literal>many-to-many</"
"literal> também usa a chave estrangeira composta:"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
"would use:"
msgstr ""
-"A collection de <literal>OrderLine</literal>s em <literal>Order</literal> "
-"usaria:"
+"A coleção de <literal>OrderLine</literal>s em <literal>Order</literal> "
+"usaria: "
-#. Tag: programlisting
-#: component_mapping.xml:256
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:258
-#, fuzzy, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
-msgstr ""
-"(O elemento <literal><one-to-many></literal>, como de costume, não "
-"declara colunas.)"
+msgstr "O elemento <literal><one-to-many></literal> não declara colunas."
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
-"Se <literal>OrderLine</literal> possui uma collection, ela também tem uma "
-"chave estrangeira composta."
+"Se <literal>OrderLine</literal> possui uma coleção, ela também tem uma chave "
+"externa composta."
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
msgstr "Componentes Dinâmicos"
#. Tag: para
-#: component_mapping.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
msgstr ""
-"Você pode até mesmo mapear uma propriedade do tipo <literal>Map</literal>:"
+"Você pode até mesmo mapear uma propriedade do tipo <literal>Map</literal>: "
-#. Tag: programlisting
-#: component_mapping.xml:278
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:280
-#, fuzzy, no-c-format
-msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
"identical to <literal><component></literal>. The advantage of this "
"kind of mapping is the ability to determine the actual properties of the "
@@ -680,15 +505,375 @@
"A semântica de um mapeamento <literal><dynamic-component></literal> é "
"idêntica à <literal><component></literal>. A vantagem deste tipo de "
"mapeamento é a habilidade de determinar as propriedades atuais do bean no "
-"momento de deploy, apenas editando o documento de mapeamento. A Manipulação "
-"em tempo de execução do documento de mapeamento também é possÃvel, usando o "
-"parser DOM. Até melhor, você pode acessar (e mudar) o metamodelo "
-"configuration-time do Hibernate através do objeto <literal>Configuration</"
-"literal>."
+"momento da implementação, apenas editando o documento de mapeamento. A "
+"Manipulação em tempo de execução do documento de mapeamento também é "
+"possÃvel, usando o parser DOM. Até melhor, você pode acessar,e mudar, o "
+"tempo de configuração do metamodelo do Hibernate através do objeto "
+"<literal>Configuration</literal>."
#~ msgid ""
-#~ "(Note that the <literal><column></literal> tag is an alternative to "
-#~ "the <literal>column</literal> attribute everywhere.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "(Note que a tag <literal><column></literal> é uma alternativa para "
-#~ "o atributo <literal>column</literal> por toda a parte.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of configuration.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: configuration\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 08:53+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
-msgstr "Configuração"
+msgstr "Configuration"
#. Tag: para
-#: configuration.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
@@ -27,22 +132,20 @@
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
-"Devido ao fato de o Hibernate ser projetado para operar em vários ambientes "
+"Devido ao fato do Hibernate ser projetado para operar em vários ambientes "
"diferentes, há um grande número de parâmetros de configuração. Felizmente, a "
-"maioria tem valores default lógicos e o Hibernate é distribuÃdo com um "
-"arquivo <literal>hibernate.properties</literal> de exemplo no <literal>etc/</"
-"literal> que mostra várias opções. Apenas coloque o arquivo de exemplo no "
-"seu classpath e personalize-o."
+"maioria possui valores padrão consideráveis e o Hibernate é distribuÃdo com "
+"um arquivo <literal>hibernate.properties</literal> de exemplo no "
+"<literal>etc/</literal> que mostra várias opções. Apenas coloque o arquivo "
+"de exemplo no seu classpath e personalize-o. "
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
-msgstr "1.11 Configuração programática"
+msgstr "Configuração programática"
#. Tag: para
-#: configuration.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
"represents an entire set of mappings of an application's Java types to an "
@@ -51,122 +154,84 @@
"interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
"Uma instância de <literal>org.hibernate.cfg.Configuration</literal> "
-"representa um conjunto inteiro de mapeamentos de tipos Java da aplicação "
-"para um banco de dados SQL. O <literal>Configuration</literal> é usado para "
-"construir uma <literal>SessionFactory</literal> (imutável). Os mapeamentos "
-"são compilados a partir de arquivos de mapeamento XML."
+"representa um conjunto inteiro de mapeamentos de tipos Java de aplicação "
+"para um banco de dados SQL. O <classname>org.hibernate.cfg.Configuration</"
+"classname> é usado para construir uma <literal>SessionFactory</literal> "
+"imutável. Os mapeamentos são compilados a partir de diversos arquivos de "
+"mapeamento XML. "
#. Tag: para
-#: configuration.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
"instance by instantiating it directly and specifying XML mapping documents. "
"If the mapping files are in the classpath, use <literal>addResource()</"
"literal>. For example:"
msgstr ""
-"Você pode obter uma instância <literal>Configuration</literal> intanciando- "
-"o diretamente e especificando documentos de mapeamento XML. Se o arquivo de "
-"mapeamento estão no classpath, use use <literal>addResource()</literal>:"
+"Você pode obter uma instância <classname>org.hibernate.cfg.Configuration</"
+"classname> intanciando-a diretamente e especificando os documentos de "
+"mapeamento XML. Se os arquivos de mapeamento estiverem no classpath, use "
+"<literal>addResource()</literal>. Por exemplo:"
-#. Tag: programlisting
-#: configuration.xml:55
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:57
-#, fuzzy, no-c-format
-msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
-"Uma alternativa (às vezes melhor) é especificar a classe mapeada, e permitir "
-"que o Hibernate encontre o documento de mapeamento para você:"
+"Uma alternativa é especificar a classe mapeada e permitir que o Hibernate "
+"encontre o documento de mapeamento para você:"
-#. Tag: programlisting
-#: configuration.xml:62
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:64
-#, fuzzy, no-c-format
-msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
-"Então o Hibernate procurará pelos arquivos de mapeamento chamados <literal>/"
-"org/hibernate/auction/Item.hbm.xml</literal> e <literal>/org/hibernate/"
-"auction/Bid.hbm.xml</literal> no classpath. Esta abordagem elimina qualquer "
-"nome de arquivo de difÃcil compreensão."
+"O Hibernate procurará pelos arquivos de mapeamento chamados <literal>/org/"
+"hibernate/auction/Item.hbm.xml</literal> e <literal>/org/hibernate/auction/"
+"Bid.hbm.xml</literal> no classpath. Esta abordagem elimina qualquer nome de "
+"arquivo de difÃcil compreensão."
#. Tag: para
-#: configuration.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
"specify configuration properties. For example:"
msgstr ""
-"Uma <literal>Configuration</literal> também permite você especificar "
-"propriedades de configuração:"
+"Uma <literal>Configuration</literal> também permite que você especifique "
+"propriedades de configuração especÃfica. Por exemplo:"
-#. Tag: programlisting
-#: configuration.xml:75
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:77
-#, fuzzy, no-c-format
-msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
msgstr ""
-"Este não é o único caminho para passar as propriedades de configuração para "
-"o Hibernate. As várias opções incluem:"
+"Esta não é a única forma de passar as propriedades de configuração para o "
+"Hibernate. As várias opções incluem: "
#. Tag: para
-#: configuration.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
"<literal>Configuration.setProperties()</literal>."
msgstr ""
"Passar uma instância de <literal>java.util.Properties</literal> para "
-"<literal>Configuration.setProperties()</literal>."
+"<literal>Configuration.setProperties()</literal>. "
#. Tag: para
-#: configuration.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
"directory of the classpath."
msgstr ""
-"Colocar <literal>hibernate.properties</literal> no diretório raiz do "
-"classpath."
+"Colocar <literal>hibernate.properties</literal> de arquivo nomeado no "
+"diretório raÃz do classpath."
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
@@ -176,44 +241,40 @@
"-Dproperty=value</literal>."
#. Tag: para
-#: configuration.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
-"Include <literal><property></literal> elements in <literal>hibernate."
-"cfg.xml</literal> (discussed later). Incluir elementos <literal><"
-"property></literal> no <literal>hibernate.cfg.xml</literal> (discutido "
-"mais tarde)."
+"Incluir elementos <literal><property></literal> no <literal>hibernate."
+"cfg.xml</literal> (discutido mais tarde). "
#. Tag: para
-#: configuration.xml:107
#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
"is the easiest approach."
msgstr ""
+"Caso você deseje inicializar rapidamente o <filename>hibernate.properties</"
+"filename> é a abordagem mais rápida."
#. Tag: para
-#: configuration.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory</"
"literal> is created."
msgstr ""
-"O <literal>Configuration</literal> é entendido como um objeto startup-time, "
-"é descartado uma vez que a <literal>SessionFactory</literal> é criada."
+"O <classname>org.hibernate.cfg.Configuration</classname> é previsto como um "
+"objeto de tempo de inicialização, a ser descartado quando um "
+"<literal>SessionFactory</literal> for criado."
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
msgstr "Obtendo uma SessionFactory"
#. Tag: para
-#: configuration.xml:121
#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
@@ -221,68 +282,51 @@
"<interfacename>org.hibernate.Session</interfacename> instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
-"Quando todos os mapeamentos têm sido analisados pelo <literal>Configuration</"
-"literal>, a aplicação deve obter uma factory para as instâncias da "
-"<literal>Session</literal>. O objetivo desta factory é ser compartilhado por "
-"todas as threads da aplicação:"
+"Quando todos os mapeamentos forem analisados pelo <classname>org.hibernate."
+"cfg.Configuration</classname>, a aplicação deve obter uma factory para as "
+"instâncias do <interfacename>org.hibernate.Session</interfacename>. O "
+"objetivo desta factory é ser compartilhado por todas as threads da aplicação:"
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
"<interfacename>org.hibernate.SessionFactory</interfacename>. This is useful "
"if you are using more than one database."
msgstr ""
-"Hibernate permite sua aplicação instanciar mais do que uma "
-"<literal>SessionFactory</literal>. Isto é útil se você está usando mais do "
-"que um banco de dados."
+"O Hibernate permite sua aplicação instanciar mais do que um "
+"<interfacename>org.hibernate.SessionFactory</interfacename>. Isto será útil "
+"se você estiver usando mais do que um banco de dados. "
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
msgstr "Conexões JDBC"
#. Tag: para
-#: configuration.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
"interfacename> create and pool JDBC connections for you. If you take this "
"approach, opening a <interfacename>org.hibernate.Session</interfacename> is "
"as simple as:"
msgstr ""
-"Normalmente, você quer mandar criar a <literal>SessionFactory</literal> "
-"criar um pool de conexões JDBC para você. Se você seguir essa abordagem, a "
-"abertura de uma <literal>Session</literal> é tão simples quanto:"
+"Normalmente, você deseja que o <interfacename>org.hibernate.SessionFactory</"
+"interfacename> crie e faça um um pool de conexões JDBC para você. Se você "
+"seguir essa abordagem, a abertura de um <interfacename>org.hibernate."
+"Session</interfacename> será tão simples quanto:"
-#. Tag: programlisting
-#: configuration.xml:146
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:148
-#, fuzzy, no-c-format
-msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
-"Assim que você fizer algo que requer o acesso ao banco de dados, uma conexão "
-"JDBC será obtida do pool."
+"Assim que você fizer algo que requeira o acesso ao banco de dados, uma "
+"conexão JDBC será obtida a partir do pool."
#. Tag: para
-#: configuration.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
@@ -290,106 +334,87 @@
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
-"Para esse trabalho, nós necessitamos passar algumas propriedades da conexão "
-"JDBC para o Hibernate. Todos os nomes de propriedades Hibernate e semânticas "
-"são definidas <literal>org.hibernate.cfg.Environment</literal>. Nós iremos "
-"descrever agora o mais importantes configurações de conexão JDBC."
+"Para esse trabalho, precisaremos passar algumas propriedades da conexão JDBC "
+"para o Hibernate. Todos os nomes de propriedades Hibernate e semânticas são "
+"definidas na classe <literal>org.hibernate.cfg.Environment</literal>. "
+"Descreveremos agora as configurações mais importantes para a conexão JDBC. "
#. Tag: para
-#: configuration.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
"DriverManager</classname> if you set the following properties:"
msgstr ""
-"O Hibernate obterá conexões( e pool) usando <literal>java.sql.DriverManager</"
-"literal> se você determinar as seguintes propriedades:"
+"O Hibernate obterá conexões (e efetuará o pool) usando <literal>java.sql."
+"DriverManager</literal> se você determinar as seguintes propriedades: "
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
msgstr "Propriedades JDBC Hibernate"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:548 configuration.xml:743 configuration.xml:850
-#: configuration.xml:938
#, no-c-format
msgid "Property name"
msgstr "Nome da Propriedade"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:549 configuration.xml:744 configuration.xml:851
-#: configuration.xml:939
#, no-c-format
msgid "Purpose"
msgstr "Propósito"
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
+msgstr "<property>hibernate.connection.driver_class</property>"
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
-msgstr "Classe driver jdbc"
+msgid "<emphasis>JDBC driver class</emphasis>"
+msgstr "<emphasis>JDBC driver class</emphasis>"
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
+msgstr "<property>hibernate.connection.url</property>"
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
-msgstr "URL jdbc"
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr "<emphasis>JDBC URL</emphasis>"
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
+msgstr "<property>hibernate.connection.username</property>"
-#. Tag: emphasis
-#: configuration.xml:197
+#. Tag: entry
#, no-c-format
-msgid "database user"
-msgstr "Usuário do banco de dados"
+msgid "<emphasis>database user</emphasis>"
+msgstr "<emphasis>usuário de banco de dados</emphasis> "
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
+msgstr "<property>hibernate.connection.password</property>"
-#. Tag: emphasis
-#: configuration.xml:205
+#. Tag: entry
#, no-c-format
-msgid "database user password"
-msgstr "Senha do usuário do banco de dados"
+msgid "<emphasis>database user password</emphasis>"
+msgstr "<emphasis>senha de usuário de banco de dados</emphasis> "
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
-msgstr "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
+msgstr "<property>hibernate.connection.pool_size</property>"
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
-msgstr "Número máximo de connecxões no pool"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
+msgstr "<emphasis>número máximo de conexões em pool</emphasis>"
#. Tag: para
-#: configuration.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
@@ -399,18 +424,17 @@
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
-"O algoritmo de pool de conexões do próprio Hibernate entretanto é "
-"completamente rudimentar. A intenção dele e ajudar a iniciar e <emphasis>não "
-"para usar em um sistema de produção</emphasis> ou até para testar "
-"desempenho. Você deveria usar uma ferramente de pool de terceiros para "
-"conseguir melhor desempenho e estabilidade. Apenas especifique a propriedade "
-"<literal>hibernate.connection.pool_size</literal> com a definição do pool de "
-"conexões. Isto irá desligar o pool interno do Hibernate. Por exemplo, você "
-"pode gostar de usar C3P0."
+"No entanto, o algoritmo de pool de conexões do próprio Hibernate é um tanto "
+"rudimentar. A intenção dele é ajudar a iniciar e <emphasis>não para ser "
+"usado em um sistema de produção</emphasis> ou até para testar o desempenho. "
+"Você deve utilizar um pool de terceiros para conseguir um melhor desempenho "
+"e estabilidade. Apenas substitua a propriedade <literal>hibernate.connection."
+"pool_size</literal> pela configuração especÃfica do pool de conexões. Isto "
+"irá desligar o pool interno do Hibernate. Por exemplo, você pode gostar de "
+"usar C3P0. "
#. Tag: para
-#: configuration.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib</filename> directory. Hibernate will use its "
@@ -421,157 +445,117 @@
"more information."
msgstr ""
"O C3P0 é um pool conexão JDBC de código aberto distribuÃdo junto com "
-"Hibernate no diretório <literal>lib</literal>. O Hibernate usará o "
-"<literal>C3P0ConnectionProvider</literal> para o pool de conexão se você "
-"configurar a propriedade <literal>hibernate.c3p0.*</literal>. Se você gostar "
-"de usar Proxool consulte ao pacote <literal>hibernate.properties</literal> e "
-"o web site do Hibernate para mais informações."
+"Hibernate no diretório <literal>lib</literal>. O Hibernate usará o próprio "
+"<classname>org.hibernate.connection.C3P0ConnectionProvider</classname> para "
+"o pool de conexão se você configurar a propriedade <literal>hibernate.c3p0."
+"*</literal>. Se você gostar de usar Proxool, consulte o pacote "
+"<literal>hibernate.properties</literal> e o web site do Hibernate para mais "
+"informações."
#. Tag: para
-#: configuration.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
"for c3p0:"
msgstr ""
-"Aqui é um exemplo de arquivo <literal>hibernate.properties</literal> para "
-"C3P0:"
+"Este é um exemplo de arquivo <literal>hibernate.properties</literal> para "
+"c3p0:"
-#. Tag: programlisting
-#: configuration.xml:242
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:244
-#, fuzzy, no-c-format
-msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
"Para usar dentro de um servidor de aplicação, você deve configurar o "
-"Hibernate para obter conexões de um application server <literal>Datasource</"
-"literal> registrado no JNDI. Você necessitará determinar pelo menos uma das "
-"seguintes propriedades:"
+"Hibernate para obter conexões de um servidor de aplicação "
+"<interfacename>javax.sql.Datasource</interfacename> registrado no JNDI. Você "
+"precisará determinar pelo menos uma das seguintes propriedades:"
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
msgstr "Propriedades do Datasource do Hibernate"
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
-msgstr "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
+msgstr "<property>hibernate.connection.datasource</property>"
-#. Tag: emphasis
-#: configuration.xml:267
+#. Tag: entry
#, no-c-format
-msgid "datasource JNDI name"
-msgstr "Nome datasource JNDI"
+msgid "<emphasis>datasource JNDI name</emphasis>"
+msgstr "<emphasis>nome JNDI de fonte de dados</emphasis>"
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
-msgstr "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
+msgstr "<property>hibernate.jndi.url</property>"
#. Tag: entry
-#: configuration.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
-msgstr "URL do fornecedor JNDI"
+msgstr "<emphasis>URL do fornecedor JNDI</emphasis> (opcional)"
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
-msgstr "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
+msgstr "<property>hibernate.jndi.class</property>"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
"emphasis> (optional)"
msgstr ""
+"<emphasis>classe de JNDI <literal>InitialContextFactory</literal></emphasis> "
+"(opcional)"
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>usuário de banco de dados</emphasis> (opcional)"
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>senha de usuário de banco de dados</emphasis> (opcional)"
#. Tag: para
-#: configuration.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
"application server provided JNDI datasource:"
msgstr ""
"Eis um exemplo de arquivo <literal>hibernate.properties</literal> para um "
-"servidor de aplicação fornecedor de datasources JNDI:"
+"servidor de aplicação fornecedor de fontes de dados JNDI:"
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
"participate in the container-managed transactions of the application server."
msgstr ""
-"Conexões JDBC obtidas de um datasource JNDI irão automaticamente irão "
-"participar das transações gerenciadas pelo container no servidor de "
-"aplicação."
+"Conexões JDBC obtidas de um datasource JNDI irão automaticamente participar "
+"das transações gerenciadas pelo recipiente no servidor de aplicação."
#. Tag: para
-#: configuration.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection</literal>\" to the connection property name. "
"For example, you can specify a <property>charSet</property> connection "
"property using <property>hibernate.connection.charSet</property>."
msgstr ""
-"Arbitrariamente as propriedades de conexão podem ser acrescentandas ao "
+"As propriedades de conexão arbitrárias podem ser acrescentandas ao "
"\"<literal>hibernate.connnection</literal>\" ao nome da propriedade. Por "
-"exemplo, você deve especificar o <literal>charSet</literal> usando "
-"<literal>hibernate.connection.charSet</literal>.t."
+"exemplo, você deve especificar a propriedade de conexão <literal>charSet</"
+"literal> usando <property>hibernate.connection.charSet</property>."
#. Tag: para
-#: configuration.xml:324
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
@@ -581,28 +565,26 @@
msgstr ""
"Você pode definir sua própria estratégia de plugin para obter conexões JDBC "
"implementando a interface <literal>org.hibernate.connection."
-"ConnectionProvider</literal>. Você pode escolher uma implementação "
-"customizada setando <literal>hibernate.connection.provider_class</literal>."
+"ConnectionProvider</literal> e especificando sua implementação customizada "
+"através da propriedade <literal>hibernate.connection.provider_class</"
+"literal>."
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr "Propriedades opcionais de configuração"
#. Tag: para
-#: configuration.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
"Há um grande número de outras propriedades que controlam o comportamento do "
-"Hibernate em tempo de execução. Todos são opcionais e tem valores default "
-"lógicos."
+"Hibernate em tempo de execução. Todos são opcionais e têm valores padrão "
+"lógicos. "
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -610,428 +592,212 @@
"literal> or <filename>hibernate.properties</filename>. They "
"<emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
-"<emphasis>Aviso: algumas destas propriedades são somente a \"nÃvel de sistema"
-"\".</emphasis> Propriedades nÃvel de sistema podem ser determinados somente "
-"via <literal>java -Dproperty=value</literal> ou <literal>hibernate."
-"properties</literal>. Elas <emphasis>não</emphasis>podem ser configuradas "
-"por outras técnicas descritas abaixo."
+"Algumas destas propriedades são somente em nÃvel de sistema. As propriedades "
+"em nÃvel de sistema podem ser determinadas somente via <literal>java -"
+"Dproperty=value</literal> ou <literal>hibernate.properties</literal>. Elas "
+"<emphasis>não podem</emphasis> ser configuradas por outras técnicas "
+"descritas abaixo."
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
-msgstr "Hibernate Configuration Properties"
+msgstr "Propriedades de Configuração do Hibernate"
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
+msgstr "<property>hibernate.dialect</property>"
#. Tag: entry
-#: configuration.xml:362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
"classname> which allows Hibernate to generate SQL optimized for a particular "
"relational database."
msgstr ""
-"O nome da classe de um <placeholder-1/> que permite o Hibernate gerar SQL "
-"otimizado para um banco de dados relacional em particular. <placeholder-2/>"
+"O nome da classe de um Hibernate <classname>org.hibernate.dialect.Dialect</"
+"classname> que permite o Hibernate gerar SQL otimizado para um banco de "
+"dados relacional em particular. "
#. Tag: para
-#: configuration.xml:365
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
"Dialect</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
+"Dialect</literal>"
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
"<classname>org.hibernate.dialect.Dialect</classname> implementation based on "
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
+"Na maioria dos casos, o Hibernate irá atualmente estar apto a escolher a "
+"implementação <classname>org.hibernate.dialect.Dialect</classname> correta "
+"baseada no <literal>JDBC metadata</literal> retornado pelo JDBC driver."
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
-msgstr "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
+msgstr "<property>hibernate.show_sql</property>"
#. Tag: entry
-#: configuration.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL</literal> to <literal>debug</"
"literal>."
msgstr ""
-"Escreve todas as instruções SQL no console. Esta é uma alternativa a "
-"configurar a categoria de log <placeholder-1/> para <placeholder-2/>. "
-"<placeholder-3/>"
+"Escreve todas as instruções SQL no console. Esta é uma alternativa para "
+"configurar a categoria de log <literal>org.hibernate.SQL</literal> to "
+"<literal>debug</literal>."
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:583 configuration.xml:610 configuration.xml:623
-#: configuration.xml:678 configuration.xml:906 configuration.xml:921
-#: configuration.xml:1011
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
-msgstr "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
+msgstr "<property>hibernate.format_sql</property>"
#. Tag: entry
-#: configuration.xml:394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pretty print the SQL in the log and console."
-msgstr "Imprime o SQL formatado no log e console. <placeholder-1/>"
+msgstr "Imprime o SQL formatado no log e recipiente. "
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
-msgstr "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
+msgstr "<property>hibernate.default_schema</property>"
#. Tag: entry
-#: configuration.xml:406
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
msgstr ""
-"Qualifica no sql gerado, os nome das tabelas sem qualificar com schena/"
-"tablespace dado <placeholder-1/>"
+"Qualifica no SQL gerado, os nome das tabelas desqualificadas com o esquema/"
+"espaço da tabela dado."
#. Tag: para
-#: configuration.xml:409
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
-msgstr "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
+msgstr "<property>hibernate.default_catalog</property>"
#. Tag: entry
-#: configuration.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
msgstr ""
-"Qualifica no sql gerado, os nome das tabelas sem qualificar com catálogo "
-"dado <placeholder-1/>"
+"Qualifica no SQL gerado, os nome das tabelas desqualificadas com catálogo "
+"dado."
#. Tag: para
-#: configuration.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
-msgstr "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
+msgstr "<property>hibernate.session_factory_name</property>"
#. Tag: entry
-#: configuration.xml:432
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
-"O <placeholder-1/> irá automaticamente se ligar a este nome no JNDI depois "
-"de ter sido criado. <placeholder-2/>"
+"O <interfacename>org.hibernate.SessionFactory</interfacename> irá "
+"automaticamente se ligar a este nome no JNDI depois de ter sido criado. "
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
+"literal>"
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
-msgstr "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
+msgstr "<property>hibernate.max_fetch_depth</property>"
#. Tag: entry
-#: configuration.xml:445
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0</literal> disables "
"default outer join fetching."
msgstr ""
-"Estabelece a \"profundidade\" máxima para árvore outer join fetch para "
-"associações finais únicas(one-to-one,many-to-one). Um <placeholder-1/> "
-"desativa por default a busca outer join. <placeholder-2/>"
+"Estabelece a \"profundidade\" máxima para árvore de busca de união externa "
+"para associações finais únicas (um para um, muitos para um). Um <literal>0</"
+"literal> desativa por padrão a busca de união externa. "
#. Tag: para
-#: configuration.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>0</literal> and <literal>3</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis> Valores recomendados "
+"<emphasis role=\"strong\">eg.</emphasis> valores recomendados "
"entre<literal>0</literal> e <literal>3</literal>"
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
-msgstr "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
+msgstr "<property>hibernate.default_batch_fetch_size</property>"
#. Tag: entry
-#: configuration.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr ""
-"Determina um tamanho default para busca de associações em lotes do Hibernate "
-"<placeholder-1/>"
+"Determina um tamanho padrão para busca de associações em lotes do Hibernate."
#. Tag: para
-#: configuration.xml:462
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis> Valores recomendados <literal>4</"
+"<emphasis role=\"strong\">eg.</emphasis> valores recomendados <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
-msgstr "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
+msgstr "<property>hibernate.default_entity_mode</property>"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory</literal>"
msgstr ""
-"Determina um modo default para representação de entidades para todas as "
-"sessões abertas desta <placeholder-1/><placeholder-2/>"
+"Determina um modo padrão para representação de entidades para todas as "
+"sessões abertas desta <literal>SessionFactory</literal> "
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
@@ -1040,247 +806,183 @@
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
-msgstr "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
+msgstr "<property>hibernate.order_updates</property>"
#. Tag: entry
-#: configuration.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
"Força o Hibernate a ordenar os updates SQL pelo valor da chave primária dos "
-"itens a serem atualizados. Isto resultará em menos deadlocks nas transações "
-"em sistemas altamente concorrente. <placeholder-1/>"
+"Ãtens a serem atualizados. Isto resultará em menos deadlocks nas transações "
+"em sistemas altamente concorrente. "
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
-msgstr "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
+msgstr "<property>hibernate.generate_statistics</property>"
#. Tag: entry
-#: configuration.xml:500
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr ""
-"If enabled, Hibernate will collect statistics useful for performance tuning. "
-"Se habilitado, o Hibernate coletará estatÃsticas úties para performance "
-"tuning dos bancos. <placeholder-1/>"
+"Se habilitado, o Hibernate coletará estatÃsticas úteis para o ajuste do "
+"desempenho. "
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
-msgstr "hibernate.use_identifer_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
+msgstr "<property>hibernate.use_identifier_rollback</property>"
#. Tag: entry
-#: configuration.xml:513
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
msgstr ""
"Se habilitado, propriedades identificadoras geradas serão zeradas para os "
-"valores default quando os objetos forem apagados. <placeholder-1/>"
+"valores padrão quando os objetos forem apagados. "
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
-msgstr "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
+msgstr "<property>hibernate.use_sql_comments</property>"
#. Tag: entry
-#: configuration.xml:526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false</literal>."
msgstr ""
-"Se ligado, o Hibernate irá gerar comentários dentro do SQL, para facilitar o "
-"debugging, o valor default é <placeholder-1/>. <placeholder-2/>"
+"Se ligado, o Hibernate irá gerar comentários dentro do SQL, para facilitar a "
+"depuração, o valor padrão é <literal>false</literal>"
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "JDBC Hibernate e Propriedades de Conexão"
-#. Tag: property
-#: configuration.xml:555
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
-msgstr "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
+msgstr "<property>hibernate.jdbc.fetch_size</property>"
#. Tag: entry
-#: configuration.xml:557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
msgstr ""
-"Um valor maior que zero determina o tamanho do fetch do JDBC( chamadas "
-"<placeholder-1/>)."
+"Um valor maior que zero determina o tamanho da buscado JDBC (chamadas "
+"<literal>Statement.setFetchSize()</literal>)."
-#. Tag: property
-#: configuration.xml:564
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
-msgstr "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
+msgstr "<property>hibernate.jdbc.batch_size</property>"
#. Tag: entry
-#: configuration.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr ""
-"Um valor maior que zero habilita uso de batch updates JDBC2 pelo Hibernate. "
-"<placeholder-1/>"
+"Um valor maior que zero habilita o uso das atualizações em lotes JDBC2 pelo "
+"Hibernate. "
#. Tag: para
-#: configuration.xml:568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>5</literal> and <literal>30</literal>"
msgstr ""
-"<emphasis role=\"strong\">Ex.</emphasis> valores recomentados entre "
+"<emphasis role=\"strong\">ex.</emphasis> valores recomentados entre "
"<literal>5</literal> e <literal>30</literal>"
-#. Tag: property
-#: configuration.xml:576
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
-msgstr "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
+msgstr "<property>hibernate.jdbc.batch_versioned_data</property>"
#. Tag: entry
-#: configuration.xml:578
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
"correct row counts from <literal>executeBatch()</literal>. Iit is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-"Sete esta propriedade como <placeholder-1/> se seu driver JDBC retorna o "
-"número correto de linhas no <placeholder-2/> ( à usualmente seguro tornar "
-"esta opção ligada). O Hibernate então irá usar betched DML para "
-"automaticamente versionar dados. <placeholder-3/> por default. <placeholder-"
-"4/>"
+"Configure esta propriedade como <literal>true</literal> se seu driver JDBC "
+"retornar o número correto de linhas no <literal>executeBatch()</literal>. "
+"Geralmente é seguro ligar opção. O Hibernate então usará o DML em lotes para "
+"dados automaticamente vertidos. Padronizar para <literal>false</literal>."
-#. Tag: property
-#: configuration.xml:591
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
-msgstr "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
+msgstr "<property>hibernate.jdbc.factory_class</property>"
#. Tag: entry
-#: configuration.xml:593
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
"Most applications will not need this configuration property."
msgstr ""
-"Escolher um <placeholder-1/> customizado. Muitas aplicações não irão "
-"necessitar desta propriedade de configuração <placeholder-2/>"
+"Escolher um <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
+"Muitas aplicações não irão precisar desta propriedade de configuração."
#. Tag: para
-#: configuration.xml:596
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>classname.of."
+"BatcherFactory</literal>"
-#. Tag: property
-#: configuration.xml:604
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
-msgstr "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
+msgstr "<property>hibernate.jdbc.use_scrollable_resultset</property>"
#. Tag: entry
-#: configuration.xml:606
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
-"Habilita o uso de JDBC2 scrollable resultsets pelo Hibernate. Essa "
-"propriedade somente é necessaria quando se usa Conexeções JDBC providas pelo "
-"usuário, caso contrário o Hibernate os os metadados da conexão. <placeholder-"
-"1/>"
+"Habilita o uso dos resultados de ajustes roláveis do JDBC2 pelo Hibernate. "
+"Essa propriedade somente é necessária quando se usa Conexões JDBC providas "
+"pelo usuário. Do contrário, o Hibernate os os metadados da conexão. "
-#. Tag: property
-#: configuration.xml:618
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
-msgstr "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
+msgstr "<property>hibernate.jdbc.use_streams_for_binary</property>"
#. Tag: entry
-#: configuration.xml:620
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
"<literal>serializable</literal> types to/from JDBC. <emphasis>*system-level "
"property*</emphasis>"
msgstr ""
-"Use streams para escrever/ler tipos <placeholder-1/> ou <placeholder-2/> "
-"para/a o JDBC( propriedade a nÃvel de sistema). <placeholder-3/>"
+"Utilize fluxos para escrever/ler tipos <literal>binary</literal> ou tipos "
+"<literal>serializable</literal> para/do JDBC. <emphasis>*system-level "
+"property*</emphasis>"
-#. Tag: property
-#: configuration.xml:631
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
-msgstr "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
+msgstr "<property>hibernate.jdbc.use_get_generated_keys</property>"
#. Tag: entry
-#: configuration.xml:633
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
@@ -1288,131 +990,50 @@
"identifier generators. By default, it tries to determine the driver "
"capabilities using connection metadata."
msgstr ""
-"Possibilita o uso <placeholder-1/> do JDBC3 para recuperar chaves geradas "
-"nativamente depois da inserçãp. Requer driver JDBC3+ e JRE1.4+, determine "
-"para false se seu driver tem problemas com gerador de indentificadores "
-"Hibernate. Por default, tente determinar o driver capaz de usar metadados da "
-"conexão. <placeholder-2/>"
+"Possibilita o uso do <literal>PreparedStatement.getGeneratedKeys()</literal> "
+"JDBC3 para recuperar chaves geradas de forma nativa depois da inserção. "
+"Requer driver JDBC3+ e JRE1.4+, ajuste para falso se seu driver tiver "
+"problemas com gerador de indentificadores Hibernate. Por padrão, tente "
+"determinar o driver capaz de usar metadados da conexão. "
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781
-#: configuration.xml:795 configuration.xml:833
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>true|false</literal> "
-#. Tag: property
-#: configuration.xml:647
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
-msgstr "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
+msgstr "<property>hibernate.connection.provider_class</property>"
#. Tag: entry
-#: configuration.xml:649
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
-"O nome da classe de um <placeholder-1/> personalizado o qual proverá "
-"conexões JDBC para o Hibernate. <placeholder-2/>"
+"O nome da classe de um <interfacename>org.hibernate.connection."
+"ConnectionProvider</interfacename>, do qual proverá conexões JDBC para o "
+"Hibernate. "
#. Tag: para
-#: configuration.xml:652
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis><literal>classname.of."
+"ConnectionProvider</literal> "
-#. Tag: property
-#: configuration.xml:660
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
-msgstr "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
+msgstr "<property>hibernate.connection.isolation</property>"
#. Tag: entry
-#: configuration.xml:662
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
@@ -1420,77 +1041,33 @@
"non-standard isolations."
msgstr ""
"Determina o nÃvel de isolamento de uma transação JDBC. Verifique "
-"<placeholder-1/> para valores siginificativos mas note que a maior parte dos "
-"bancos de dados não suportam todos os nÃveis de isolamento. <placeholder-2/>"
+"<literal>java.sql.Connection</literal> para valores significativos mas note "
+"que a maior parte dos bancos de dados não suportam todos os isolamentos que "
+"não são padrões. "
#. Tag: para
-#: configuration.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>1, 2, 4, 8</literal>"
-#. Tag: property
-#: configuration.xml:674
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
-msgstr "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
+msgstr "<property>hibernate.connection.autocommit</property>"
#. Tag: entry
-#: configuration.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
-msgstr ""
-"Habilita autocommit para conexões no pool JDBC( não recomendado). "
-"<placeholder-1/>"
+msgstr "Habilita o auto-commit para conexões no pool JDBC (não recomendado). "
-#. Tag: property
-#: configuration.xml:686
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
-msgstr "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
+msgstr "<property>hibernate.connection.release_mode</property>"
#. Tag: entry
-#: configuration.xml:688
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
@@ -1502,711 +1079,441 @@
"the JTA and CMT transaction strategies and <literal>after_transaction</"
"literal> for the JDBC transaction strategy."
msgstr ""
-"Especifica quando o Hibernate deve liberar conexões JDBC. Por default, uma "
-"conexão JDBC é retida até a sessão está explicitamente fechada ou "
-"desconectada. Para um datasource JTA do servidor de aplicação, você deve "
-"usar <placeholder-1/> para forçar s liberação da conexões depois de todas as "
-"chamadas JDBC. Para uma conexão não-JTA, freqüentemente faz sentido liberar "
-"a conexão ao fim de cada transação, usando <placeholder-2/>. <placeholder-3/"
-"> escolheremos <placeholder-4/> para as estratégias de transaçãoes JTA e CMT "
-"e <placeholder-5/> para as estratégias de transação JDBC <placeholder-6/"
-"><placeholder-7/>"
+"Especifica quando o Hibernate deve liberar conexões JDBC. Por padrão, uma "
+"conexão JDBC é retida até a sessão estar explicitamente fechada ou "
+"desconectada. Para uma fonte de dados JTA do servidor de aplicação, você "
+"deve usar <literal>after_statement</literal> para forçar a liberação da "
+"conexões depois de todas as chamadas JDBC. Para uma conexão não-JTA, "
+"freqüentemente faz sentido liberar a conexão ao fim de cada transação, "
+"usando <literal>after_transaction</literal>. O <literal>auto</literal> "
+"escolherá <literal>after_statement</literal> para as estratégias de "
+"transaçãoes JTA e CMT e <literal>after_transaction</literal> para as "
+"estratégias de transação JDBC."
#. Tag: para
-#: configuration.xml:699
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
msgstr ""
-"<emphasis role=\"strong\">Ex.</emphasis><literal>auto</literal> (default) | "
-"<literal>on_close</literal> | <literal>after_transaction</literal> | "
-"<literal>after_statement</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>auto</literal> "
+"(padrão) | <literal>on_close</literal> | <literal>after_transaction</"
+"literal> | <literal>after_statement</literal> "
#. Tag: para
-#: configuration.xml:704
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
"<literal>SessionFactory.openSession</literal>. For <literal>Session</"
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
-msgstr ""
-"Note that this setting only affects <literal>Session</literal>s returned "
-"from <literal>SessionFactory.openSession</literal>. For <literal>Session</"
-"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
-"literal>, the <literal>CurrentSessionContext</literal> implementation "
-"configured for use controls the connection release mode for those "
"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
-"\"/>"
+"\" />"
+msgstr ""
+"Note que esta configuração somente afeta as <literal>Session</literal>s "
+"retornadas da <literal>SessionFactory.openSession</literal>. Para as "
+"<literal>Session</literal>s obtidas através da <literal>SessionFactory."
+"getCurrentSession</literal>, a implementação <literal>CurrentSessionContext</"
+"literal> configurada para uso, controla o modo de liberação de conexão para "
+"estas <literal>Session</literal>s. Consulte <xref linkend=\"architecture-"
+"current-session\" />"
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
"emphasis>"
msgstr ""
+"<property>hibernate.connection.</property><emphasis><propertyName></"
+"emphasis>"
#. Tag: entry
-#: configuration.xml:718
#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
"<literal>DriverManager.getConnection()</literal>."
msgstr ""
+"Passar a propriedade JDBC <emphasis><propertyName></emphasis> para "
+"<literal>DriverManager.getConnection()</literal>."
#. Tag: entry
-#: configuration.xml:724
#, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
+"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
#. Tag: entry
-#: configuration.xml:727
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
"<literal>InitialContextFactory</literal>."
msgstr ""
+"Passar a propriedade <emphasis><propertyName></emphasis> para o JNDI "
+"<literal>InitialContextFactory</literal>."
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
msgstr "Propriedades de Cachê do Hibernate"
-#. Tag: literal
-#: configuration.xml:750
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
-msgstr "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
+msgstr "<literal>hibernate.cache.provider_class</literal>"
#. Tag: entry
-#: configuration.xml:752
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
-msgstr "O nome da classe de um <placeholder-1/> customizado. <placeholder-2/>"
+msgstr ""
+"O nome da classe de um <literal>CacheProvider</literal> personalizado."
#. Tag: para
-#: configuration.xml:754
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>classname.of."
+"CacheProvider</literal> "
-#. Tag: literal
-#: configuration.xml:762
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
-msgstr "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
+msgstr "<literal>hibernate.cache.use_minimal_puts</literal>"
#. Tag: entry
-#: configuration.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
"Otimizar operação de cachê de segundo nÃvel para minimizar escritas, ao "
-"custo de leituras mais frequantes. Esta configuração é mais útil para cachês "
-"clusterizados e, no Hibernate3, é habilitado por default para implementações "
-"de cachê clusterizar. <placeholder-1/>"
+"custo de leituras mais freqüentes. Esta configuração é mais útil para cachês "
+"em cluster e, no Hibernate3, é habilitado por padrão para implementações de "
+"cache em cluster. "
-#. Tag: literal
-#: configuration.xml:777
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
-msgstr "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
+msgstr "<literal>hibernate.cache.use_query_cache</literal>"
#. Tag: entry
-#: configuration.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
msgstr ""
-"Habilita a cache de consultas, Mesmo assim, consultas individuais ainda tem "
-"que ser habilitadas para o cache. <placeholder-1/>"
+"Habilita a cache de consultas. Mesmo assim, consultas individuais ainda têm "
+"que ser habilitadas para o cache."
-#. Tag: literal
-#: configuration.xml:789
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
-msgstr "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
+msgstr "<literal>hibernate.cache.use_second_level_cache</literal>"
#. Tag: entry
-#: configuration.xml:791
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache></literal> "
"mapping."
msgstr ""
-"Pode ser usada para desabilitar completamente ocache de segundo nÃvel, o "
-"qual está habilitado por default para classes que especificam um mapeamento "
-"<placeholder-1/>. <placeholder-2/>"
+"Pode ser utilizado para desabilitar completamente o cache de segundo nÃvel, "
+"o qual é habilitado por padrão para as classes que especificam um mapeamento "
+"<literal><cache></literal>."
-#. Tag: literal
-#: configuration.xml:803
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
-msgstr "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
+msgstr "<literal>hibernate.cache.query_cache_factory</literal>"
#. Tag: entry
-#: configuration.xml:805
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
"to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
-"O nome de uma classe que implementa a interface <placeholder-1/> "
-"personalizada, por default, um <placeholder-2/> criado automaticamente. "
-"<placeholder-3/>"
+"O nome de classe de uma interface personalizada <literal>QueryCache</"
+"literal>, padroniza para o <literal>StandardQueryCache</literal> criado "
+"automaticamente. "
#. Tag: para
-#: configuration.xml:808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>classname.of."
+"QueryCache</literal>"
-#. Tag: literal
-#: configuration.xml:816
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
-msgstr "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
+msgstr "<literal>hibernate.cache.region_prefix</literal>"
#. Tag: entry
-#: configuration.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A prefix to use for second-level cache region names."
-msgstr ""
-"Um prefixo para usar nos nomes da área especial do cachê de segundo nÃvel. "
-"<placeholder-1/>"
+msgstr "Um prefixo para usar em nomes regionais de cachê de segundo nÃvel"
#. Tag: para
-#: configuration.xml:820
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>prefix</literal> "
-#. Tag: literal
-#: configuration.xml:828
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
-msgstr "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
+msgstr "<literal>hibernate.cache.use_structured_entries</literal>"
#. Tag: entry
-#: configuration.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
msgstr ""
-"Forces Hibernate to store data in the second-level cache in a more human-"
-"friendly format. Força o Hibernate armazenar dados no cachê se segundo nÃvel "
-"em um formato mais legivel. <placeholder-1/>"
+"Força o Hibernate a armazenar dados no cachê de segundo nÃvel em um formato "
+"mais humanamente amigável."
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr "Propriedades de Transação do Hibernate"
-#. Tag: literal
-#: configuration.xml:857
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
-msgstr "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
+msgstr "<literal>hibernate.transaction.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:859
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
"Hibernate <literal>Transaction</literal> API (defaults to "
"<literal>JDBCTransactionFactory</literal>)."
msgstr ""
-"O nome da clase de um a <placeholder-1/> para usar com API <placeholder-2/> "
-"( por default <placeholder-3/>). <placeholder-4/>"
+"O nome da classe de uma <literal>TransactionFactory</literal> para usar com "
+"API do Hibernate <literal>Transaction</literal> ( por "
+"padrão<literal>JDBCTransactionFactory</literal> ). "
#. Tag: para
-#: configuration.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>classname.of."
+"TransactionFactory</literal> "
-#. Tag: literal
-#: configuration.xml:871
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
-msgstr "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
+msgstr "<literal>jta.UserTransaction</literal>"
#. Tag: entry
-#: configuration.xml:873
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
"JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-"Um nome JNDI usado pelo <placeholder-1/> para obter uma <placeholder-2/> JTA "
-"a partir do servidor de aplicação. <placeholder-3/>"
+"Um nome JNDI usado pelo <literal>JTATransactionFactory</literal>para obter "
+"uma <literal>UserTransaction</literal> JTA a partir do servidor de "
+"aplicação. "
-#. Tag: literal
-#: configuration.xml:885
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
-msgstr "hibernate.transaction.manager_lookup_class"
-
#. Tag: entry
-#: configuration.xml:887
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
+msgstr "<literal>hibernate.transaction. manager_lookup_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
-"O nome da classe de um <placeholder-1/> â requerido quando caching a nÃvel "
-"JVM esta habilitado ou quando estivermos usando um generator hilo em um "
-"ambiente JTA. <placeholder-2/>"
+"O nome da classe de um <literal>TransactionManagerLookup</literal>. Ele é "
+"requerido quando o caching a nÃvel JVM estiver habilitado ou quando "
+"estivermos usando um gerador hilo em um ambiente JTA. "
#. Tag: para
-#: configuration.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>classname.of."
+"TransactionManagerLookup</literal> "
-#. Tag: literal
-#: configuration.xml:899
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
-msgstr "hibernate.transaction.flush_before_completion"
-
#. Tag: entry
-#: configuration.xml:901
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
+msgstr "<literal>hibernate.transaction. flush_before_completion</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"Se habilitado, a sessão será automaticamente limpa antes da fase de "
-"conclusão da transação. à preferivel a gerência interna e automática do "
-"contexto da sessão, veja <xref linkend=\"architecture-current-session\"/"
-"><placeholder-1/>"
+"Se habilitada, a sessão será automaticamente liberada antes da fase de "
+"conclusão da transação. Prefere-se o gerenciamento de contexto da sessão "
+"criada e automática, veja <xref linkend=\"architecture-current-session\" />."
-#. Tag: literal
-#: configuration.xml:914
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
-msgstr "hibernate.transaction.auto_close_session"
-
#. Tag: entry
-#: configuration.xml:916
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
+msgstr "<literal>hibernate.transaction. auto_close_session</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"Se habilitado, a sessão será automaticamente fechada após a fase de "
-"conclusão da transação. à preferivel a gerência interna e automática do "
-"contexto da sessão, veja <xref linkend=\"architecture-current-session\"/"
-"><placeholder-1/>"
+"Se habilitada, a sessão será automaticamente fechada após a fase de "
+"conclusão da transação. Prefere-se a gerência interna e automática do "
+"contexto da sessão, veja <xref linkend=\"architecture-current-session\" />."
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "Propriedades Variadas"
-#. Tag: literal
-#: configuration.xml:945
-#, no-c-format
-msgid "hibernate.current_session_context_class"
-msgstr "hibernate.current_session_context_class"
-
#. Tag: entry
-#: configuration.xml:947
#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
+msgstr "<literal>hibernate. current_session_context_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
-"Forneçe uma estratégia (personalizada) para extensão da <placeholder-1/> "
-"\"corrente\". Veja <xref linkend=\"architecture-current-session\"/> para "
-"mais informação sobre estratégias internas. <placeholder-2/>"
+"Fornece uma estratégia personalizada para extensão da <literal>Session</"
+"literal>\"atual\". Veja <xref linkend=\"architecture-current-session\" /> "
+"para mais informação sobre estratégias internas. "
#. Tag: para
-#: configuration.xml:952
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
msgstr ""
-"<emphasis role=\"strong\">Ex.</emphasis><literal>jta</literal> | "
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
-#. Tag: literal
-#: configuration.xml:961
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
-msgstr "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
+msgstr "<literal>hibernate.query.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:963
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Chooses the HQL parser implementation."
-msgstr "Escolha a implementação de análise HQL. <placeholder-1/>"
+msgstr "Escolha a implementação de análise HQL. "
#. Tag: para
-#: configuration.xml:965
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis><literal>org.hibernate.hql.ast."
-"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>org.hibernate.hql.ast. "
+"ASTQueryTranslatorFactory</literal> ou <literal>org.hibernate.hql.classic. "
"ClassicQueryTranslatorFactory</literal>"
-#. Tag: literal
-#: configuration.xml:974
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
-msgstr "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
+msgstr "<literal>hibernate.query.substitutions</literal>"
#. Tag: entry
-#: configuration.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
-"Mapeamento a partir de sÃmbolos em consultas HQL para sÃmbolos SQL( sÃmbolos "
-"devem ser funções ou nome literais , por exemplo). <placeholder-1/>"
+"Mapeamento a partir de sÃmbolos em consultas do Hibernate para para sÃmbolos "
+"SQL (sÃmbolos devem ser por exemplo, funções ou nome literais). "
#. Tag: para
-#: configuration.xml:979
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">Ex.</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">exemplo</emphasis> "
+"<literal>hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC</literal> "
-#. Tag: literal
-#: configuration.xml:987
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
-msgstr "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
+msgstr "<literal>hibernate.hbm2ddl.auto</literal>"
#. Tag: entry
-#: configuration.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory</literal> is created. With <literal>create-drop</"
"literal>, the database schema will be dropped when the "
"<literal>SessionFactory</literal> is closed explicitly."
msgstr ""
-"Automaticamente valida ou exporta schema DDL para o banco de dados quando o "
-"<placeholder-1/> é criads. Com <placeholder-2/>, o schema do banco de dados "
-"será excluido quando a <placeholder-3/> for fechada esplicitamente. "
-"<placeholder-4/>"
+"Automaticamente valida ou exporta DDL esquema para o banco de dados quando o "
+"<literal>SessionFactory</literal> é criado. Com <literal>create-drop</"
+"literal>, o esquema do banco de dados será excluido quando a "
+"<literal>SessionFactory</literal> for fechada explicitamente. "
#. Tag: para
-#: configuration.xml:995
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
msgstr ""
-"<emphasis role=\"strong\">Ex.</emphasis><literal>validate</literal> | "
+"<emphasis role=\"strong\">exemplo</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
-"drop</literal>"
+"drop</literal> "
-#. Tag: literal
-#: configuration.xml:1004
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
-msgstr "hibernate.cglib.use_reflection_optimizer"
-
#. Tag: entry
-#: configuration.xml:1006
#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
+msgstr "<literal>hibernate.cglib. use_reflection_optimizer</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
"Hibernate always requires CGLIB even if you turn off the optimizer. You "
"cannot set this property in <literal>hibernate.cfg.xml</literal>."
msgstr ""
-"Habilita o uso de CGLIB em vez de reflexão em tempo de execução "
-"( propriedade a nÃvel de sistema). Reflexão pode algumas vezes ser ú til "
-"quando controlar erros, note que o Hibernate sempre irá requerer a CGLIB "
+"Habilita o uso de CGLIB ao invés de reflexão em tempo de execução "
+"(propriedade a nÃvel de sistema). Reflexão pode algumas vezes ser útil "
+"quando controlar erros, note que o Hibernate sempre irá solicitar a CGLIB "
"mesmo se você desligar o otimizador. Você não pode determinar esta "
-"propriedade no <placeholder-1/>. <placeholder-2/>"
+"propriedade no <literal>hibernate.cfg.xml</literal>."
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
msgstr "Dialetos SQL"
#. Tag: para
-#: configuration.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
"<literal>org.hibernate.dialect.Dialect</literal> subclass for your database. "
@@ -2216,317 +1523,262 @@
msgstr ""
"Você deve sempre determinar a propriedade <literal>hibernate.dialect</"
"literal> para a subclasse de <literal>org.hibernate.dialect.Dialect</"
-"literal> correta de seu banco de dados. Se você especificar um dialeto, "
-"Hibernate usará defaults lógicos para qualquer um das outras propriedades "
+"literal> correta de seu banco de dados. Se você especificar um dialeto, o "
+"Hibernate usará padrões lógicos para qualquer um das outras propriedades "
"listadas abaixo, reduzindo o esforço de especificá-los manualmente."
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
-msgstr "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
+msgstr "Dialetos SQL do Hibernate (<literal>hibernate.dialect</literal>)"
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1041
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Dialect"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Dialeto\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Dialect"
+msgstr "Dialeto"
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr ""
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1046
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
-msgstr "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1049
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
-msgstr "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1052
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
-msgstr "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1055
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
-msgstr "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
-msgstr "MySQL"
+msgstr "Meu SQL"
-#. Tag: literal
-#: configuration.xml:1058
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
-msgstr "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
-msgstr "MySQL with InnoDB"
+msgstr "MeuSQL com InnoDB"
-#. Tag: literal
-#: configuration.xml:1061
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
-msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
-msgstr "MySQL with MyISAM"
+msgstr "Meu SQL com MeuISAM"
-#. Tag: literal
-#: configuration.xml:1064
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
-msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
-msgstr "Oracle (any version)"
+msgstr "Oracle (qualquer versão)"
-#. Tag: literal
-#: configuration.xml:1067
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.OracleDialect</literal>"
#. Tag: entry
-#: configuration.xml:1070
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 9i"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 9i"
-#. Tag: literal
-#: configuration.xml:1070
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
-msgstr "org.hibernate.dialect.Oracle9Dialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
#. Tag: entry
-#: configuration.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 10g"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 10g"
-#. Tag: literal
-#: configuration.xml:1073
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1076
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
-msgstr "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
-msgstr "Sybase Anywhere"
+msgstr "Sybase Qualquer lugar"
-#. Tag: literal
-#: configuration.xml:1079
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
-msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
-msgstr "Microsoft SQL Server"
+msgstr "Servidor Microsoft SQL"
-#. Tag: literal
-#: configuration.xml:1082
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
-msgstr "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1085
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
-msgstr "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1088
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
-msgstr "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InformixDialect</literal>"
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1091
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
-msgstr "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.HSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1094
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
-msgstr "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.IngresDialect</literal>"
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
-msgstr "Progress"
+msgstr "Progresso"
-#. Tag: literal
-#: configuration.xml:1097
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
-msgstr "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.ProgressDialect</literal>"
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1100
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
-msgstr "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MckoiDialect</literal>"
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1103
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
-msgstr "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
-msgstr "Pointbase"
+msgstr "Base Ponto"
-#. Tag: literal
-#: configuration.xml:1106
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
-msgstr "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
-msgstr "FrontBase"
+msgstr "Base Frontal"
-#. Tag: literal
-#: configuration.xml:1109
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
-msgstr "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1112
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
-msgstr "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
-msgstr "Recuperação por união externa (Outer Join Fetching)"
+msgstr "Busca por união externa (Outer Join Fetching)"
#. Tag: para
-#: configuration.xml:1123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching</emphasis> will often increase performance by "
@@ -2536,19 +1788,18 @@
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT</literal>."
msgstr ""
-"Se seu banco de dados suporta Recuperação por união externa (Outer Join "
-"Fetching) no estilo ANSI, Oracle ou Sybase, A recuperação por união externa "
-"(Outer Join Fetching) frequentemente aumentará o desempenho limitando o "
-"número de chamadas (round trips) ao banco de dados( ao custo de "
-"possivelmente mais trabalho desempenhado pelo próprio banco de dados). A "
-"recuperação por união externa (Outer Join Fetching)permite um gráfico "
-"completo de objetos conectados por muitos-para-um, um-para-muitos, muitos-"
-"para-muitos e associações um-para-um para ser recuperadas em um simples "
-"instrução SQL SELECT ."
+"Se seu banco de dados suporta união externa no estilo ANSI, Oracle ou "
+"Sybase, a <emphasis>outer join fetching</emphasis> freqüentemente aumentará "
+"o desempenho limitando o número de chamadas (round trips) para e a partir do "
+"banco de dados. No entanto, isto ao custo de possivelmente mais trabalho "
+"desempenhado pelo próprio banco de dados. A busca por união externa (outer "
+"join fetching) permite um gráfico completo de objetos conectados por "
+"associações muitos-para-um, um-para-muitos, muitos-para-muitos e um-para-um "
+"para serem recuperadas em uma simples instrução SQL <literal>SELECT</"
+"literal>."
#. Tag: para
-#: configuration.xml:1132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
"the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</"
@@ -2556,27 +1807,24 @@
"fetching for one-to-one and many-to-one associations that have been mapped "
"with <literal>fetch=\"join\"</literal>."
msgstr ""
-"A recuperação por união externa (Outer Join Fetching) pode ser desabilitado "
-"<emphasis>globalmente</emphasis> setando a propriedade <literal>hibernate."
-"max_fetch_depth</literal> para <literal>0</literal>. Uma valor 1 ou maior "
-"habilita o outer join fetching para associações um-para-um e muitos-para-"
-"umos cujos quais tem sido mapeado com <literal>fetch=\"join\"</literal>."
+"A busca por união externa pode ser desabilitada <emphasis>globalmente</"
+"emphasis> configurando a propriedade <literal>hibernate.max_fetch_depth</"
+"literal> para <literal>0</literal>. Um valor <literal>1</literal> ou maior "
+"habilita a busca por união externa para associações um-para-um e muitos-para-"
+"um, cujos quais têm sido mapeados com <literal>fetch=\"join\"</literal>."
#. Tag: para
-#: configuration.xml:1140
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
-msgstr "Veja <xref linkend=\"performance-fetching\"/> para mais informações."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
+msgstr "Veja <xref linkend=\"performance-fetching\" /> para mais informações."
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
msgstr "Fluxos Binários (Binary Streams)"
#. Tag: para
-#: configuration.xml:1149
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
@@ -2584,86 +1832,67 @@
"should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
"<emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
-"O Oracle limita o tamanho de arrays de <literal>byte</literal> que pode ser "
-"passado para/de o driver JDBC. Se você desejar usar grandes instâncias de "
+"O Oracle limita o tamanho de matrizes de <literal>byte</literal> que podem "
+"ser passadas para/do driver JDBC. Se você desejar usar grandes instâncias de "
"tipos <literal>binary</literal> ou <literal>serializable</literal>, você "
"deve habilitar <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
-"<emphasis>Essa é uma configuração que só pode ser feita a nÃvel de sistema.</"
-"emphasis>"
+"<emphasis>Essa é uma configuração que só pode ser feita em nÃvel de sistema."
+"</emphasis> "
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
-msgstr "Cachê de segundo nÃvel e query"
+msgstr "Cachê de segundo nÃvel e consulta"
#. Tag: para
-#: configuration.xml:1162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
-"As propriedades prefixadas pelo <literal>hibernate.cache</literal> permite "
-"você usar um sistema de cachê de segundo nÃvel em um processo executado em "
-"clustercom Hibernate. Veja <xref linkend=\"performance-cache\"/> para mais "
-"detalhes."
+"As propriedades pré-fixadas pelo <literal>hibernate.cache</literal> permitem "
+"que você use um sistema de cache de segundo nÃvel em um processo executado "
+"ou em cluster com Hibernate. Veja <xref linkend=\"performance-cache\"/> para "
+"maiores detalhes. "
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
-msgstr "Substituições na Linguagem de Consulta"
+msgstr "Substituição na Linguagem de Consulta"
#. Tag: para
-#: configuration.xml:1174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
"Você pode definir novos sÃmbolos de consulta Hibernate usando "
-"<literal>hibernate.query.substitutions</literal>. Por exemplo:"
+"<literal>hibernate.query.substitutions</literal>. Por exemplo: "
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions true=1, false=0"
-
#. Tag: para
-#: configuration.xml:1181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
"literal> to be translated to integer literals in the generated SQL."
msgstr ""
-"Faria com que os sÃmbolos <literal>true</literal> e <literal>false</literal> "
-"passasem a ser traduzidos para literais inteiro no SQL gerado."
+"Isto faria com que os sÃmbolos <literal>true</literal> e <literal>false</"
+"literal> passasem a ser traduzidos para literais inteiros no SQL gerado."
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1188
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
-msgstr "permitirá você renomear a função <literal>LOWER</literal> no SQL."
+msgstr ""
+"Isto permitirá que você renomeie a função <literal>LOWER</literal> no SQL."
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
msgstr "EstatÃsticas do Hibernate"
#. Tag: para
-#: configuration.xml:1197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
@@ -2671,11 +1900,6 @@
"configured to expose these statistics via JMX. Read the Javadoc of the "
"interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
-"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
-"will expose a number of metrics that are useful when tuning a running system "
-"via <literal>SessionFactory.getStatistics()</literal>. Hibernate can even be "
-"configured to expose these statistics via JMX. Read the Javadoc of the "
-"interfaces in <literal>org.hibernate.stats</literal> for more information. "
"Se você habilitar <literal>hibernate.generate_statistics</literal>, o "
"Hibernate exibirá um número de métricas bastante útil ao ajustar um sistema "
"via <literal>SessionFactory.getStatistics()</literal>. O Hibernate pode até "
@@ -2683,13 +1907,11 @@
"interface <literal>org.hibernate.stats</literal> para mais informações."
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
msgstr "Logging"
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2705,10 +1927,22 @@
"properties file is distributed with Hibernate in the <literal>src/</literal> "
"directory."
msgstr ""
+"O Hibernate utiliza o <ulink url=\"http://www.slf4j.org/\">Simple Logging "
+"Facade for Java</ulink> (SLF4J) com o objetivo de registrar os diversos "
+"eventos de sistema. O SLF4J pode direcionar a sua saÃda de logging a "
+"diversos frameworks de logging (NOP, Simple, log4j version 1.2, JDK 1.4 "
+"logging, JCL ou logback) dependendo de sua escolha de vinculação. Com o "
+"objetivo de determinar o seu logging, você precisará do <filename>slf4j-api."
+"jar</filename> em seu classpatch juntamente com o arquivo jar para a sua "
+"vinculação preferida - <filename>slf4j-log4j12.jar</filename> no caso do "
+"Log4J. Consulte o SLF4J <ulink url=\"http://www.slf4j.org/manual.html"
+"\">documentation</ulink> para maiores detalhes. Para usar o Log4j você "
+"precisará também colocar um arquivo <filename>log4j.properties</filename> em "
+"seu classpath. Um exemplo do arquivo de propriedades está distribuÃdo com o "
+"Hibernate no diretório <literal>src/</literal>. "
#. Tag: para
-#: configuration.xml:1222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
@@ -2716,165 +1950,135 @@
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
-"We strongly recommend that you familiarize yourself with Hibernate's log "
-"messages. A lot of work has been put into making the Hibernate log as "
-"detailed as possible, without making it unreadable. It is an essential "
-"troubleshooting device. The most interesting log categories are the "
-"following: Nós recomendamos enfaticamente que você se familiarize-se com "
-"mensagens de log do Hibernate. Uma parte do trabalho tem sido posto em fazer "
-"o log Hibernate tão detalhado quanto possÃvel, sem fazê-lo ilegÃvel. à um "
-"essencial dispositivos de controle de erros. As categorias de log mais "
-"interessantes são as seguintes:"
+"Nós recomendamos que você se familiarize-se com mensagens de log do "
+"Hibernate. Tem sido um árduo trabalho fazer o log Hibernate tão detalhado "
+"quanto possÃvel, sem fazê-lo ilegÃvel. à um dispositivo de controle de erros "
+"essencial. As categorias de log mais interessantes são as seguintes:"
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
msgstr "Categorias de Log do Hibernate"
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr "Categoria"
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr "Função"
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
-msgstr "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
+msgstr "<literal>org.hibernate.SQL</literal>"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
msgstr "Registra todas as instruções SQL DML a medida que elas são executadas"
-#. Tag: literal
-#: configuration.xml:1247
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
-msgstr "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
+msgstr "<literal>org.hibernate.type</literal>"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
msgstr "Registra todos os parâmetros JDBC"
-#. Tag: literal
-#: configuration.xml:1251
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
-msgstr "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
+msgstr "<literal>org.hibernate.tool. hbm2ddl</literal>"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
msgstr "Registra todas as instruções SQL DDL a medida que elas são executadas"
-#. Tag: literal
-#: configuration.xml:1255
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
-msgstr "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
+msgstr "<literal>org.hibernate.pretty</literal>"
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
msgstr ""
-"Log the state of all entities (max 20 entities) associated with the session "
-"at flush time Registra o estado de todas as entidades (máximo 20 entidades) "
-"associadas a session no momento da limpeza (flush)."
+"Registra o estado de todas as entidades (máximo 20 entidades) associadas à "
+"sessão no momento da liberação (flush)."
-#. Tag: literal
-#: configuration.xml:1262
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
-msgstr "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
+msgstr "<literal>org.hibernate.cache</literal>"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
msgstr "Registra todas as atividades de cachê de segundo nÃvel"
-#. Tag: literal
-#: configuration.xml:1266
-#, no-c-format
-msgid "org.hibernate.transaction"
-msgstr "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
+msgstr "<literal>org.hibernate. transaction</literal>"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
-msgstr "Registra atividades relacionada a transação"
+msgstr "Registra atividades relacionada à transação"
-#. Tag: literal
-#: configuration.xml:1270
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
-msgstr "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
+msgstr "<literal>org.hibernate.jdbc</literal>"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
msgstr "Registra todas as requisições de recursos JDBC"
-#. Tag: literal
-#: configuration.xml:1274
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
-msgstr "org.hibernate.hql.ast.AST"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
+msgstr "<literal>org.hibernate.hql. ast.AST</literal>"
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
msgstr "Registra instruções SQL e HQL durante a análise da consultas"
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
-msgstr "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
+msgstr "<literal>org.hibernate.secure</literal>"
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
msgstr "Registra todas as requisições de autorização JAAS"
-#. Tag: literal
-#: configuration.xml:1284
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
+msgid "<literal>org.hibernate</literal>"
+msgstr "<literal>org.hibernate</literal>"
#. Tag: entry
-#: configuration.xml:1285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
msgstr ""
-"Registra tudo ( uma parte das informações, mas muito útil para controle de "
-"erros )"
+"Registra tudo. Apesar de ter muita informação, é muito útil para o problema "
+"de inicialização."
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2882,31 +2086,28 @@
"hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate."
"show_sql</literal> enabled."
msgstr ""
-"Quando desenvolver aplicações com Hibernate, você deve quase sempre "
-"trabalhar com debug <literal>debug</literal> para a categoria <literal>org."
-"hibernate.SQL</literal>, ou, alternativamente, a com a propriedade "
-"<literal>hibernate.show_sql</literal> habilitada."
+"Ao desenvolver aplicações com Hibernate, você deve quase sempre trabalhar "
+"com o depurador <literal>debug</literal> habilitado para a categoria "
+"<literal>org.hibernate.SQL</literal>, ou, alternativamente, com a "
+"propriedade <literal>hibernate.show_sql</literal> habilitada."
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
-msgstr "Implementado uma <literal>NamingStrategy</literal>"
+msgstr "Implementando um <literal>NamingStrategy</literal>"
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
"to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
-"A interface <literal>org.hibernate.cfg.NamingStrategy</literal> permite você "
-"especificar um \"padrão de nomeação\" para objetos do banco de dados e "
-"elementos schema."
+"A interface <literal>org.hibernate.cfg.NamingStrategy</literal> permite que "
+"você especifique um \"padrão de nomeação\" para objetos do banco de dados e "
+"elementos de esquema."
#. Tag: para
-#: configuration.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
@@ -2917,52 +2118,37 @@
msgstr ""
"Você deve criar regras para a geração automaticamente de identificadores do "
"banco de dados a partir de identificadores Java ou para processar colunas "
-"\"computadas\" e nomes de tabelas dado o arquivo de mapeamento para nomes "
-"\"fÃsicos\" de tabelas e colunas. Esta caracterÃstica ajuda a reduzir a "
-"verbosidade do documento de mapeamento, eliminando interferências repetitivas"
-"( <literal>TBL_</literal>prefixos, por exemplo). A estratégia default usada "
-"pelo Hibernate é completamente mÃnima."
+"\"lógicas\" e nomes de tabelas dado o arquivo de mapeamento para nomes "
+"\"fÃsicos\" de tabelas e colunas. Este recurso ajuda a reduzir a verbosidade "
+"do documento de mapeamento, eliminando interferências repetitivas "
+"(<literal>TBL_</literal> prefixos, por exemplo). A estratégia padrão usada "
+"pelo Hibernate é bastante mÃnima. "
#. Tag: para
-#: configuration.xml:1320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
"Você pode especificar uma estratégia diferente ao chamar "
"<literal>Configuration.setNamingStrategy()</literal> antes de adicionar os "
-"mapeamentos:"
+"mapeamentos: "
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
"strategy that might be a useful starting point for some applications."
msgstr ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> é uma estratégia "
-"interna que pode ser um ponto de começo útil para algumas aplicações."
+"interna que pode ser um ponto inicial útil para algumas aplicações."
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
msgstr "Arquivo de configuração XML"
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -2973,68 +2159,21 @@
"Uma maneira alternativa de configuração é especificar uma configuração "
"completa em um arquivo chamado <literal>hibernate.cfg.xml</literal>. Este "
"arquivo pode ser usado como um substituto para o arquivo <literal>hibernate."
-"properties</literal> ou, se ambos estão presentes, sobrescrever propriedades."
+"properties</literal> ou, se ambos estiverem presentes, para substituir "
+"propriedades."
#. Tag: para
-#: configuration.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
-"The XML configuration file is by default expected to be in the root o your "
-"<literal>CLASSPATH</literal>. Here is an example: O arquivo XML de "
-"configuração é por default esperado para estar na raiz do seu "
-"<literal>CLASSPATH</literal>. Veja um exemplo:"
+"O arquivo XML de configuração deve ser encontrado na raÃz do seu "
+"<literal>CLASSPATH</literal>. Veja um exemplo: "
-#. Tag: programlisting
-#: configuration.xml:1349
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1351
-#, fuzzy, no-c-format
-msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml</literal> is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
@@ -3046,56 +2185,35 @@
"dos arquivos de mapeamento para configuração. O <literal>hibernate.cfg.xml</"
"literal> também é mais conveniente caso você tenha que ajustar o cache do "
"Hibernate. Note que a escolha é sua em usar <literal>hibernate.properties</"
-"literal> ou <literal>hibernate.cfg.xml</literal>, ambos são equivalente, à "
-"exceção dos benefÃcios acima mencionados de usar a sintaxe de XML."
+"literal> ou <literal>hibernate.cfg.xml</literal>, ambos são equivalentes, "
+"exceto os acima mencionados de usar a sintaxe de XML. "
#. Tag: para
-#: configuration.xml:1360
-#, fuzzy, no-c-format
+#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
msgstr ""
-"Com a configuração do XML, iniciar o Hibernate é então tão simples como"
+"Com a configuração do XML, iniciar o Hibernate é então tão simples quanto: "
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
-#, fuzzy, no-c-format
-msgid "You can select a different XML configuration file using:"
-msgstr "You can pick a different XML configuration file using"
-
-#. Tag: programlisting
-#: configuration.xml:1370
#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
+msgid "You can select a different XML configuration file using:"
msgstr ""
+"Você poderá escolher um arquivo de configuração XML diferente, utilizando:"
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
msgstr "Integração com servidores de aplicação J2EE"
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr ""
-"O Hibernate tem os seguintes pontos da integração para o infraestrutura de "
+"O Hibernate tem os seguintes pontos da integração para a infraestrutura de "
"J2EE:"
#. Tag: para
-#: configuration.xml:1383
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
@@ -3110,25 +2228,24 @@
"pode usar conexões JDBC gerenciadas pelo Container e fornecidas pela JNDI. "
"Geralmente, um <literal>TransactionManager</literal> compatÃvel com JTA e um "
"<literal>ResourceManager</literal> cuidam do gerenciamento da transação "
-"( CMT ), especialmente em transações distribuÃdas manipuladas através de "
+"(CMT), especialmente em transações distribuÃdas, manipuladas através de "
"vários DataSources. Naturalmente, você também pode demarcar os limites das "
"transações programaticamente (BMT) ou você poderia querer usar a API "
"opcional do Hibernate <literal>Transaction</literal> para esta manter seu "
-"código portável."
+"código portável. "
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
"<literal>SessionFactory</literal> to JNDI after startup."
msgstr ""
-"<emphasis>Ligação (binding) automática a JNDI</emphasis>: O Hibernate pode "
-"associar sua <literal>SessionFactory</literal> a JNDI depois de iniciado."
+"<emphasis>Vinculação (binding) automática à JNDI</emphasis>: O Hibernate "
+"pode associar sua <literal>SessionFactory</literal> a JNDI depois de "
+"iniciado."
#. Tag: para
-#: configuration.xml:1407
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
"literal> can be automatically bound to the scope of JTA transactions. Simply "
@@ -3138,17 +2255,17 @@
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
-"<emphasis>Ligação (binding) Session na JTA:</emphasis> A <literal>Session</"
-"literal> do Hibernate pode automaticamente ser ligada ao escopo da "
-"transações JTA. Simplesmente localizando a <literal>SessionFactory</literal> "
-"da JNDI e obtendo a<literal>Session</literal> corrente. Deixe o Hibernate "
-"cuidar da limpeza e encerramento da <literal>Session</literal> quando as "
-"transações JTA terminarem. A Demarcação de transação pode ser declarativa "
-"(CMT) ou programática(BMT/Transação do usuário)."
+"<emphasis>Vinculação (binding) da Sessão na JTA:</emphasis> A "
+"<literal>Session</literal> do Hibernate pode automaticamente ser ligada ao "
+"escopo da transações JTA. Simplesmente localizando a "
+"<literal>SessionFactory</literal> da JNDI e obtendo a <literal>Session</"
+"literal> corrente. Deixe o Hibernate cuidar da liberação e encerramento da "
+"<literal>Session</literal> quando as transações JTA terminarem. A Demarcação "
+"de transação pode ser declarativa (CMT) ou programática (BMT/Transação do "
+"usuário)."
#. Tag: para
-#: configuration.xml:1420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
@@ -3159,36 +2276,33 @@
"Hibernate starts, etc)."
msgstr ""
"<emphasis>JMX deployment:</emphasis> Se você usa um JMX servidor de "
-"aplicações capaz (ex. Jboss AS), você pode fazer a instação do Hibernate "
-"como um Mbean controlado. Isto evita ter que iniciar uma linha de código "
+"aplicações capaz (ex. Jboss AS), você pode fazer a instalação do Hibernate "
+"como um MBean controlado. Isto evita ter que iniciar uma linha de código "
"para construir sua <literal>SessionFactory</literal> de uma "
"<literal>Configuration</literal>. O container iniciará seu "
-"<literal>HibernateService</literal>, e idealmente também cuidará das "
-"dependências de serviços (DataSources, têm que estar disponÃveis antes do "
-"Hibernate iniciar, etc.)."
+"<literal>HibernateService</literal>, e também cuidará das dependências de "
+"serviços (DataSources, têm que estar disponÃveis antes do Hibernate iniciar, "
+"etc.). "
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release</literal> to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
-"Dependendo em seu ambiente, você poderia ter que ajustar a opção de "
+"Dependendo do seu ambiente, você pode ter que ajustar a opção de "
"configuração <literal>hibernate.connection.aggressive_release</literal> para "
"verdadeiro ( true ), se seu servidor de aplicações lançar exeções \"retenção "
-"de conecção\"."
+"de conexão\"."
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "Configuração de estratégia de transação"
#. Tag: para
-#: configuration.xml:1440
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
@@ -3203,10 +2317,9 @@
"inicializar e encerrar suas transações chamando a API JDBC. Se você rodar em "
"um servidor de aplicações J2EE, você poderá usar transações controladas por "
"beans e chamar a API JTA e <literal>UserTransaction</literal> quando "
-"necessário."
+"necessário. "
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -3216,73 +2329,66 @@
"configuration property <literal>hibernate.transaction.factory_class</"
"literal>."
msgstr ""
-"Para manter seu código portável entre estes dois ( e outros ) ambientes, "
+"Para manter seu código portável entre estes dois (e outros) ambientes, "
"recomendamos a API Hibernate <literal>Transaction</literal>, que envolve e "
-"esconde o sistema subjacente. Você tem que especificar um classe construtora "
-"para <literal>Transaction</literal> instanciar ajustando a propriedade de "
-"configuração do <literal>hibernate.transaction.factory_class</literal>."
+"esconde o sistema subjacente. Você tem que especificar uma classe "
+"construtora para instâncias <literal>Transaction</literal> ajustando a "
+"propriedade de configuração do <literal>hibernate.transaction.factory_class</"
+"literal>."
#. Tag: para
-#: configuration.xml:1455
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are three standard, or built-in, choices:"
-msgstr "Existem três escolhas (internas) padrões:"
+msgstr "Existem três escolhas, ou internas, padrões: "
-#. Tag: literal
-#: configuration.xml:1461
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
-msgstr "org.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
-msgstr "delegada as transações (JDBC)a bases de dados (Padrão)"
+msgstr "delega as transações (JDBC) para bases de dados (Padrão)"
-#. Tag: literal
-#: configuration.xml:1467
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
-msgstr "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
-"delegada a transação a um container gerenciador se a transação existente "
-"estiver de acordo neste contexto (ex: método bean sessão EJB), se não uma "
-"nova transação é iniciada e uma transação controlado por um bean é usada."
+"delega para uma transação à um container gerenciado se uma transação "
+"existente estiver de acordo neste contexto (ex: método bean de sessão EJB). "
+"No entanto, uma nova transação será iniciada e serão usadas transações "
+"controladas por um bean."
-#. Tag: literal
-#: configuration.xml:1477
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
-msgstr "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
msgstr "delega para um container gerenciador de transações JTA"
#. Tag: para
-#: configuration.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
msgstr ""
-"Você também pode definir suas próprias estratégias de transação ( para um "
-"serviço de transação CORBA por exemplo)."
+"Você também pode definir suas próprias estratégias de transação (para um "
+"serviço de transação CORBA, por exemplo)."
#. Tag: para
-#: configuration.xml:1489
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
@@ -3296,169 +2402,168 @@
"<literal>TransactionManager</literal> em um ambiente controlado. Em um "
"servidor de aplicação você tem que especificar como o Hibernate pode obter "
"uma referência para a <literal>TransactionManager</literal>, pois o J2EE não "
-"padronize um mecanismo simples :"
+"padroniza um mecanismo simples:"
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "Gerenciadores de transações JTA"
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
-msgstr "Transaction Factory"
+msgstr "Factory de Transação"
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
-msgstr "Application Server"
+msgstr "Servidor de Aplicação"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JBossTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WeblogicTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
-msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereExtendedJTATransactionLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
-msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. OrionTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
-msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. ResinTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOTMTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOnASTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
-msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JRun4TransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1545
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
-msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. BESTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
-msgstr "<literal>SessionFactory</literal> ligada a JNDI"
+msgstr "<literal>SessionFactory</literal> vinculada à JNDI"
#. Tag: para
-#: configuration.xml:1557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
"lookup function of the factory and create new <literal>Session</literal>s. "
"This is not, however, related to a JNDI bound <literal>Datasource</literal>; "
"both simply use the same registry."
msgstr ""
-"Uma <literal>SessionFactory</literal> de Hibernate ligada a JNDI pode "
-"simplificar a localização da fabrica e a criação de novas <literal>Session</"
-"literal>s. Observe que isto não relacionado a um <literal>Datasource</"
-"literal> ligado a JNDI, simplemente ambos usam o mesmo registro!"
+"Uma <literal>SessionFactory</literal> de Hibernate vinculada à JNDI pode "
+"simplificar a localização da fábrica e a criação de novas <literal>Session</"
+"literal>s. Observe que isto não está relacionado a um <literal>Datasource</"
+"literal> ligado a JNDI, simplesmente ambos usam o mesmo registro."
#. Tag: para
-#: configuration.xml:1564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</"
@@ -3467,15 +2572,15 @@
"will not be bound to JNDI. This is especially useful in environments with a "
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
-"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
-"namespace, specify a name (eg. <literal>java:hibernate/SessionFactory</"
-"literal>) using the property <literal>hibernate.session_factory_name</"
-"literal>. If this property is omitted, the <literal>SessionFactory</literal> "
-"will not be bound to JNDI. (This is especially useful in environments with a "
-"read-only JNDI default implementation, e.g. Tomcat.)"
+"Se você desejar ter uma <literal>SessionFactory</literal> limitada a um nome "
+"de espaço de JNDI, especifique um nome (ex.: <literal>java:hibernate/"
+"SessionFactory</literal>) usando a propriedade <literal>hibernate."
+"session_factory_name</literal>. Se esta propriedade for omitida, a "
+"<literal>SessionFactory</literal> não será limitada ao JNDI. Isto é muito "
+"útil em ambientes com uma implementação padrão JNDI de somente leitura (ex.: "
+"Tomcat)."
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -3483,14 +2588,14 @@
"jndi.class</literal> to instantiate an initial context. If they are not "
"specified, the default <literal>InitialContext</literal> will be used."
msgstr ""
-"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
-"use the values of <literal>hibernate.jndi.url</literal>, <literal>hibernate."
-"jndi.class</literal> to instantiate an initial context. If they are not "
-"specified, the default <literal>InitialContext</literal> will be used."
+"Ao vincular a <literal>SessionFactory</literal> ao JNDI, o Hibernate irá "
+"utilizar os valores de <literal>hibernate.jndi.url</literal>, "
+"<literal>hibernate.jndi.class</literal> para instanciar um contexto inicial. "
+"Se eles não forem especificados, será usado o padrão "
+"<literal>InitialContext</literal>."
#. Tag: para
-#: configuration.xml:1579
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
@@ -3499,26 +2604,26 @@
"<literal>HibernateService</literal> (this is discussed later in greater "
"detail)."
msgstr ""
-"Hibernate will automatically place the <literal>SessionFactory</literal> in "
-"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
-"you will at least have this call in some startup code (or utility class) in "
-"your application, unless you use JMX deployment with the "
-"<literal>HibernateService</literal> (discussed later)."
+"O Hibernate colocará automaticamente a <literal>SessionFactory</literal> no "
+"JNDI depois que você chamar a <literal>cfg.buildSessionFactory()</literal>. "
+"Isto significa que você terá esta chamada em pelo menos algum código de "
+"inicialização (ou classe de utilidade) em seu aplicativo, a não ser que você "
+"use a implementação JMX com o <literal>HibernateService</literal> (discutido "
+"mais tarde). "
#. Tag: para
-#: configuration.xml:1586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
"class, you can obtain the <literal>SessionFactory</literal> using a JNDI "
"lookup."
msgstr ""
-"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
-"class may obtain the <literal>SessionFactory</literal> using a JNDI lookup."
+"Se você usar um JNDI <literal>SessionFactory</literal>, o EJB ou qualquer "
+"outra classe obterá a <literal>SessionFactory</literal> utilizando um "
+"localizador JNDI."
#. Tag: para
-#: configuration.xml:1591
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
"JNDI in a managed environment and use a <literal>static</literal> singleton "
@@ -3528,32 +2633,30 @@
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
-"We recommend that you bind the <literal>SessionFactory</literal> to JNDI in "
-"a managend environment and use a <literal>static</literal> singleton "
-"otherwise. To shield your application code from these details, we also "
-"recommend to hide the actual lookup code for a <literal>SessionFactory</"
-"literal> in a helper class, such as <literal>HibernateUtil.getSessionFactory"
-"()</literal>. Note that such a class is also a convenient way to startup "
-"Hibernate—see chapter 1."
+"Recomendamos que você vincule a <literal>SessionFactory</literal> ao JNDI em "
+"um ambiente gerenciado e utilize um singleton <literal>static</literal>. "
+"Para proteger seu código de aplicativo destes detalhes, também recomendamos "
+"que esconda o código de localização atual para uma <literal>SessionFactory</"
+"literal> em uma classe de ajuda, assim como o <literal>HibernateUtil."
+"getSessionFactory()</literal>. Note que tal classe é também uma forma "
+"bastante conveniente de inicializar o Hibernate— veja o capÃtulo 1."
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
-msgstr "Current Session context management with JTA"
+msgstr "Gerenciamento de contexto de Sessão atual com JTA"
#. Tag: para
-#: configuration.xml:1605
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
-"a discussion of contextual sessions see <link linkend=\"architecture-current-"
-"session\"></link>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
+"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
+"is no Hibernate <literal>Session</literal> associated with the current JTA "
+"transaction, one will be started and associated with that JTA transaction "
+"the first time you call <literal>sessionFactory.getCurrentSession()</"
+"literal>. The <literal>Session</literal>s retrieved via "
"<literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
@@ -3566,34 +2669,33 @@
"in an EJB container, declarative transaction demarcation with CMT is "
"preferred."
msgstr ""
-"The easiest way to handle <literal>Session</literal>s and transactions is "
-"Hibernates automatic \"current\" <literal>Session</literal> management. See "
-"the discussion of <xref linkend=\"architecture-current-session\">current "
-"sessions</xref>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
-"<literal>getCurrentSession()</literal> in <literal>\"jta\"</literal> context "
-"will be set to automatically flush before the transaction completes, close "
-"after the transaction completes, and aggressively release JDBC connections "
-"after each statement. This allows the <literal>Session</literal>s to be "
-"managed by the life cycle of the JTA transaction to which it is associated, "
-"keeping user code clean of such management concerns. Your code can either "
-"use JTA programmatically through <literal>UserTransaction</literal>, or "
-"(recommended for portable code) use the Hibernate <literal>Transaction</"
-"literal> API to set transaction boundaries. If you run in an EJB container, "
-"declarative transaction demarcation with CMT is preferred."
+"A maneira mais fácil de manusear as <literal>Session</literal> e transações "
+"é com o gerenciamento automático do Hibernates \"atual\" <literal>Session</"
+"literal>. Veja a discussão do <xref linkend=\"architecture-current-session\"/"
+">. Utilizando o contexto da sessão <literal>\"jta\"</literal>, caso não haja "
+"uma <literal>Session</literal> do Hibernate associada com a transação atual "
+"do JTA, uma será iniciada e associada à transação JTA na primeira vez que "
+"você chamar a <literal>sessionFactory.getCurrentSession()</literal>. As "
+"<literal>Session</literal>s recuperadas através do contexto "
+"<literal>getCurrentSession()</literal> em <literal>\"jta\"</literal> serão "
+"ajustadas para liberar automaticamente antes que a transação se complete, e "
+"fechada após a transação se complete e liberar instantaneamente as conexões "
+"JDBC após cada instrução. Isto permitirá que as <literal>Session</literal>s "
+"sejam gerenciadas pelo ciclo de vida da transação JTA para as quais estão "
+"associadas, mantendo o código do usuário limpo de tais preocupações de "
+"gerenciamento. Seu código pode tanto utilizar um JTA programaticamente "
+"através do <literal>UserTransaction</literal>, ou (recomendado para códigos "
+"portáveis) use o API <literal>Transaction</literal> do Hibernate para "
+"ajustar as limitações das transações. Se você rodar em um recipiente EJB, "
+"prefira uma demarcação de transação declarativa com CMT. "
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
-msgstr "JMX deployment"
+msgstr "implementação JMX "
#. Tag: para
-#: configuration.xml:1630
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
@@ -3601,81 +2703,30 @@
"the one in <literal>HibernateUtil</literal>, or you can deploy Hibernate as "
"a <emphasis>managed service</emphasis>."
msgstr ""
-"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
-"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
-"can do this either in a <literal>static</literal> initializer block (like "
-"the one in <literal>HibernateUtil</literal>) or you deploy Hibernate as a "
-"<emphasis>managed service</emphasis>."
+"A linha <literal>cfg.buildSessionFactory()</literal> ainda precisa ser "
+"executada em algum local para conseguir uma <literal>SessionFactory</"
+"literal> em JNDI. Você pode escolher fazer isto em um bloqueio de "
+"inicializador <literal>static</literal>, como aquele em "
+"<literal>HibernateUtil</literal>, ou implementar o Hibernate como "
+"<emphasis>serviço gerenciado</emphasis>."
#. Tag: para
-#: configuration.xml:1638
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
"literal> for deployment on an application server with JMX capabilities, such "
"as JBoss AS. The actual deployment and configuration is vendor-specific. "
"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
-"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
-"literal> for deployment on an application server with JMX capabilities, such "
-"as JBoss AS. The actual deployment and configuration is vendor specific. "
-"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
+"O Hibernate é distribuÃdo com o <literal>org.hibernate.jmx.HibernateService</"
+"literal> para implementação em um servidor de aplicativo com capacidades "
+"JMX, tal como o JBoss AS. A implementação atual e configuração é comercial. "
+"Segue aqui um exemplo do <literal>jboss-service.xml</literal> para o JBoss "
+"4.0.x:"
-#. Tag: programlisting
-#: configuration.xml:1645
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1647
-#, fuzzy, no-c-format
-msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
"packaged in a JAR file with the extension <literal>.sar</literal> (service "
"archive). You also need to package Hibernate, its required third-party "
@@ -3686,258 +2737,13 @@
"JBoss AS documentation for more information about JMX service and EJB "
"deployment."
msgstr ""
-"This file is deployed in a directory called <literal>META-INF</literal> and "
-"packaged in a JAR file with the extension <literal>.sar</literal> (service "
-"archive). You also need to package Hibernate, its required third-party "
-"libraries, your compiled persistent classes, as well as your mapping files "
-"in the same archive. Your enterprise beans (usually session beans) may be "
-"kept in their own JAR file, but you may include this EJB JAR file in the "
-"main service archive to get a single (hot-)deployable unit. Consult the "
-"JBoss AS documentation for more information about JMX service and EJB "
-"deployment."
-
-#~ msgid ""
-#~ "<literal>hibernate.properties</literal> is the easiest approach if you "
-#~ "want to get started quickly."
-#~ msgstr ""
-#~ "<literal>hibernate.properties</literal> é o caminho mais facil se você "
-#~ "quer começar mais rápido."
-
-#~ msgid "Hibernate logs various events using Apache commons-logging."
-#~ msgstr "Hibernate registra vários eventos usando Apache commons-logging."
-
-#~ msgid ""
-#~ "The commons-logging service will direct output to either Apache Log4j (if "
-#~ "you include <literal>log4j.jar</literal> in your classpath) or JDK1.4 "
-#~ "logging (if running under JDK1.4 or above). You may download Log4j from "
-#~ "<literal>http://jakarta.apache.org</literal>. To use Log4j you will need "
-#~ "to place a <literal>log4j.properties</literal> file in your classpath, an "
-#~ "example properties file is distributed with Hibernate in the <literal>src/"
-#~ "</literal> directory."
-#~ msgstr ""
-#~ "O serviço commons-logging direcionará a saÃda para o Apache Log4j ( se "
-#~ "você incluir <literal>log4j.jar</literal>r no seu classpath) ou JDK1.4 "
-#~ "logging( se estiver em uso JDK1.4 ou maior). Você pode fazer o download "
-#~ "do Log4j a partir de <literal>http://jakarta.apache.org</literal>. Para "
-#~ "usar Log4j você necessitará colocar um arquivo <literal>log4j.properties</"
-#~ "literal> no seu classpath, um exemplo de arquivo de propriedades é "
-#~ "distribuÃdo com o Hibernate no diretório <literal>src/</literal>."
-
-#~ msgid "<placeholder-1/> (optional)"
-#~ msgstr "<placeholder-1/> (opcional)"
-
-#~ msgid "InitialContextFactory"
-#~ msgstr "InitialContextFactory"
-
-#~ msgid "class of the JNDI <placeholder-1/>"
-#~ msgstr "Classe do JNDI <placeholder-1/>"
-
-#, fuzzy
-#~ msgid "eg."
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "Ex.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "eg."
-
-#~ msgid "full.classname.of.Dialect"
-#~ msgstr "full.classname.of.Dialect"
-
-#~ msgid "debug"
-#~ msgstr "debug"
-
-#~ msgid "SCHEMA_NAME"
-#~ msgstr "SCHEMA_NAME"
-
-#~ msgid "CATALOG_NAME"
-#~ msgstr "CATALOG_NAME"
-
-#, fuzzy
-#~ msgid "SessionFactory"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "SessionFactory\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "SessionFactory\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "SessionFactory\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "create-drop"
-
-#~ msgid "jndi/composite/name"
-#~ msgstr "jndi/composite/name"
-
-#~ msgid "0"
-#~ msgstr "0"
-
-#~ msgid "false"
-#~ msgstr "false"
-
-#~ msgid "Statement.setFetchSize()"
-#~ msgstr "Statement.setFetchSize()"
-
-#~ msgid "true"
-#~ msgstr "true"
-
-#~ msgid "executeBatch()"
-#~ msgstr "executeBatch()"
-
-#~ msgid "Batcher"
-#~ msgstr "Batcher"
-
-#~ msgid "classname.of.BatcherFactory"
-#~ msgstr "classname.of.BatcherFactory"
-
-#~ msgid "binary"
-#~ msgstr "binary"
-
-#~ msgid "serializable"
-#~ msgstr "serializable"
-
-#~ msgid "PreparedStatement.getGeneratedKeys()"
-#~ msgstr "PreparedStatement.getGeneratedKeys()"
-
-#~ msgid "true|false"
-#~ msgstr "true|false"
-
-#~ msgid "ConnectionProvider"
-#~ msgstr "ConnectionProvider"
-
-#~ msgid "classname.of.ConnectionProvider"
-#~ msgstr "classname.of.ConnectionProvider"
-
-#~ msgid "java.sql.Connection"
-#~ msgstr "java.sql.Connection"
-
-#~ msgid "1, 2, 4, 8"
-#~ msgstr "1, 2, 4, 8"
-
-#~ msgid "after_statement"
-#~ msgstr "after_statement"
-
-#~ msgid "after_transaction"
-#~ msgstr "after_transaction"
-
-#~ msgid "auto"
-#~ msgstr "auto"
-
-#~ msgid "hibernate.connection."
-#~ msgstr "<propertyName>"
-
-#, fuzzy
-#~ msgid "<propertyName>"
-#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate.connection.<placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "propertyName\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "hibernate.jndi.<placeholder-1/>\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "propertyName"
-
-#~ msgid "DriverManager.getConnection()"
-#~ msgstr "DriverManager.getConnection()"
-
-#~ msgid "Pass the JDBC property <placeholder-1/> to <placeholder-2/>."
-#~ msgstr "Passa a propriedade JDBC <placeholder-1/> para <placeholder-2/>."
-
-#~ msgid "hibernate.jndi."
-#~ msgstr "<propertyName>"
-
-#~ msgid "Pass the property <placeholder-1/> to the JNDI <placeholder-2/>."
-#~ msgstr "Passar a propriedade <placeholder-1/> para o <placeholder-2/> JNDI."
-
-#~ msgid "CacheProvider"
-#~ msgstr "CacheProvider"
-
-#~ msgid "classname.of.CacheProvider"
-#~ msgstr "classname.of.CacheProvider"
-
-#~ msgid "<cache>"
-#~ msgstr "<cache>"
-
-#~ msgid "QueryCache"
-#~ msgstr "QueryCache"
-
-#~ msgid "StandardQueryCache"
-#~ msgstr "StandardQueryCache"
-
-#~ msgid "classname.of.QueryCache"
-#~ msgstr "classname.of.QueryCache"
-
-#~ msgid "prefix"
-#~ msgstr "prefix"
-
-#~ msgid "TransactionFactory"
-#~ msgstr "TransactionFactory"
-
-#~ msgid "Transaction"
-#~ msgstr "Transaction"
-
-#~ msgid "JDBCTransactionFactory"
-#~ msgstr "JDBCTransactionFactory"
-
-#~ msgid "classname.of.TransactionFactory"
-#~ msgstr "classname.of.TransactionFactory"
-
-#~ msgid "JTATransactionFactory"
-#~ msgstr "JTATransactionFactory"
-
-#~ msgid "UserTransaction"
-#~ msgstr "UserTransaction"
-
-#~ msgid "TransactionManagerLookup"
-#~ msgstr "TransactionManagerLookup"
-
-#~ msgid "classname.of.TransactionManagerLookup"
-#~ msgstr "classname.of.TransactionManagerLookup"
-
-#~ msgid "Session"
-#~ msgstr "Session"
-
-#~ msgid "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-#~ msgstr "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-
-#~ msgid "create-drop"
-#~ msgstr "create-drop"
-
-#~ msgid "hibernate.cfg.xml"
-#~ msgstr "hibernate.cfg.xml"
-
-#~ msgid "DB2"
-#~ msgstr "DB2"
+"Este arquivo é implementado em um diretório chamado <literal>META-INF</"
+"literal> e envolto em um arquivo JAR com a extensão <literal>.sar</literal> "
+"(arquivo de serviço). Você também pode precisar envolver o Hibernate, suas "
+"bibliotecas de terceiros solicitadas, suas classes persistentes compiladas, "
+"assim como seus arquivos de mapeamento no mesmo arquivo. Seus beans de "
+"empresa (geralmente beans de sessão) podem ser mantidos em seus próprios "
+"arquivos JAR, mas você poderá incluir estes arquivos EJB JAR no arquivo de "
+"serviço principal para conseguir uma única unidade de (hot)-deployable. "
+"Consulte a documentação do JBoss AS para maiores informações sobre o serviço "
+"JMX e implementação EJB. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,43 +1,145 @@
+# translation of events.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: events\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-10-28 16:51+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
msgstr "Interceptadores e Eventos"
#. Tag: para
-#: events.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
"inside Hibernate. This allows for the implementation of generic "
"functionality and the extension of Hibernate functionality."
msgstr ""
-"à muito útil quando a aplicação precisa executar alguma \"coisa\" no momento "
-"em que o Hibernate executa uma de suas ações. Isso permite a implementação "
-"de certas funções genéricas, assim como permite estender as funcionalidades "
-"do Hibernate"
+"à muito útil quando a aplicação precisa reagir a certos eventos que ocorrem "
+"dentro do Hibernate. Isso permite a implementação de certas funções "
+"genéricas, assim como permite estender as funcionalidades do Hibernate."
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
msgstr "Interceptadores"
#. Tag: para
-#: events.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
"session to the application, allowing the application to inspect and/or "
@@ -50,146 +152,46 @@
"literal> is updated."
msgstr ""
"A interface <literal>Interceptor</literal> permite fornecer informações da "
-"session para o aplicativo, permitindo ao aplicativo inspecionar e/ou "
-"manipular as propriedades de um objeto persistente antes de ser salvo, "
-"atualizado, excluÃdo ou salvo. Um dos possÃveis usos é gerar informações de "
-"auditoria. Por exemplo, o seguinte <literal>Interceptor</literal> seta "
-"automaticamente o atributo <literal>createTimestamp</literal> quando um "
-"<literal>Auditable</literal> é criada e atualiza o atributo "
+"sessão para o aplicativo, permitindo que o aplicativo inspecione e/ou "
+"manipule as propriedades de um objeto persistente antes de ser salvo, "
+"atualizado, excluÃdo ou salvo. Pode ser usado para gerar informações de "
+"auditoria. Por exemplo, o seguinte <literal>Interceptor</literal> ajusta a "
+"função automaticamente <literal>createTimestamp</literal> quando um "
+"<literal>Auditable</literal> é criado e atualiza a função "
"<literal>lastUpdateTimestamp</literal> quando um <literal>Auditable</"
-"literal> é atualizado."
+"literal> é atualizado. "
#. Tag: para
-#: events.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
"<literal>EmptyInterceptor</literal>."
msgstr ""
-"Você pode implementar <literal>Auditable</literal> diretamente ou pode "
-"estender <literal>EmptyInterceptor</literal>, sendo que a segunda é "
-"considerada a melhor opção."
+"Você pode implementar <literal>Interceptor</literal> diretamente ou pode "
+"estender <literal>EmptyInterceptor</literal>."
-#. Tag: programlisting
-#: events.xml:56
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:58
-#, fuzzy, no-c-format
-msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
"<literal>SessionFactory</literal>-scoped."
msgstr ""
-"Os interceptadores podem ser aplicados em dois diferentes escopos: No escopo "
-"da <literal>Session</literal> e no escopo <literal>SessionFactory</literal>."
+"Os interceptadores se apresentam de duas formas: <literal>Session</literal>-"
+"scoped e <literal>SessionFactory</literal>-scoped."
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
"is opened using one of the overloaded SessionFactory.openSession() methods "
"accepting an <literal>Interceptor</literal>."
msgstr ""
-"Um interceptador no escopo da <literal>Session</literal> é definido quando "
+"Um interceptador delimitado da <literal>Session</literal>, é definido quando "
"uma sessão é aberta usando o método sobrecarregado da SessionFactory."
"openSession() que aceita um <literal>Interceptor</literal> como parâmetro."
-#. Tag: programlisting
-#: events.xml:69
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:71
-#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
"the <literal>Configuration</literal> object prior to building the "
@@ -200,46 +202,35 @@
"Ensure that you do not store session-specific states, since multiple "
"sessions will use this interceptor potentially concurrently."
msgstr ""
-"Um interceptador no escopo da <literal>SessionFactory</literal> é definido "
-"no objeto <literal>Configuration</literal> antes da <literal>SessionFactory</"
+"Um interceptador da <literal>SessionFactory</literal>-scoped é definido no "
+"objeto <literal>Configuration</literal> antes da <literal>SessionFactory</"
"literal> ser instanciada. Nesse caso, o interceptador fornecido será "
"aplicado para todas as sessões abertas por aquela <literal>SessionFactory</"
"literal>; Isso apenas não ocorrerá caso seja especificado um interceptador "
"no momento em que a sessão for aberta. Um interceptador no escopo de "
-"<literal>SessionFactory</literal> deve ser thread safe, tomando-se o cuidado "
-"de não armazenar atributos de estado especÃficos da sessão, pois, "
-"provavelmente, múltiplas sessões irão utilizar esse interceptador "
-"simultaneamente."
+"<literal>SessionFactory</literal> deve ser thread safe. Cetifique-se de não "
+"armazenar funções de estado especÃficos da sessão, pois, provavelmente, "
+"múltiplas sessões irão utilizar esse interceptador simultaneamente."
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
msgstr "Sistema de Eventos"
#. Tag: para
-#: events.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
"also use the Hibernate3 <emphasis>event</emphasis> architecture. The event "
"system can be used in addition, or as a replacement, for interceptors."
msgstr ""
-"Se você precisa executar uma ação em determinados eventos da camada de "
+"Se você precisar executar uma ação em determinados eventos da camada de "
"persistência, você também pode usar a arquitetura de <emphasis>event</"
"emphasis> do Hibernate3. Um evento do sistema pode ser utilizado como "
-"complemento ou em substituição a um interceptador."
+"complemento ou em substituição a um interceptador. "
#. Tag: para
-#: events.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
"event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</"
@@ -258,33 +249,31 @@
msgstr ""
"Essencialmente todos os métodos da interface <literal>Session</literal> "
"possuem um evento correlacionado. Se você tiver um <literal>LoadEvent</"
-"literal>, um <literal>LoadEvent</literal>, etc (consulte o DTD do XML de "
-"configuração ou o pacote <literal>org.hibernate.event</literal> para a lista "
-"completa dos tipos de eventos). Quando uma requisição é feita em um desses "
-"métodos, a <literal>Session</literal> do hibernate gera um evento apropriado "
-"e o envia para o listener de evento correspondente àquele tipo de evento. "
-"Esses listeners implementam a mesma lógica que aqueles métodos, trazendo os "
-"mesmos resultados. Entretanto, você é livre para implementar uma "
-"customização de um desses listeners (isto é, o <literal>LoadEvent</literal> "
-"é processado pela implementação registrada da interface "
-"<literal>LoadEventListener</literal>), então sua implementação vai ficar "
-"responsável por processar qualquer requisição <literal>load()</literal> "
-"feita pela <literal>Session</literal>."
+"literal>, um <literal>LoadEvent</literal>, etc. Consulte o DTD do XML de "
+"arquivo deconfiguração ou o pacote <literal>org.hibernate.event</literal> "
+"para a lista completa dos tipos de eventos). Quando uma requisição é feita "
+"em um desses métodos, a <literal>Session</literal> do hibernate gera um "
+"evento apropriado e o envia para o listener de evento correspondente àquele "
+"tipo de evento. Esses listeners implementam a mesma lógica que aqueles "
+"métodos, trazendo os mesmos resultados. Entretanto, você é livre para "
+"implementar uma customização de um desses listeners (isto é, o "
+"<literal>LoadEvent</literal> é processado pela implementação registrada da "
+"interface <literal>LoadEventListener</literal>), então sua implementação vai "
+"ficar responsável por processar qualquer requisição <literal>load()</"
+"literal> feita pela <literal>Session</literal>."
#. Tag: para
-#: events.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
"between requests, and should not save any state as instance variables."
msgstr ""
-"Para todos os efeitos esses listeners deve ser considerados singletons; ou "
-"seja, eles são compartilhados entre as requisições, e assim sendo, não devem "
-"salvar nenhum estado das variáveis instanciadas."
+"Para todos os efeitos esses listeners devem ser considerados singletons. "
+"Isto significa que eles são compartilhados entre as requisições, e assim "
+"sendo, não devem salvar nenhum estado das variáveis instanciadas."
#. Tag: para
-#: events.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
"wants to process and/or extend one of the convenience base classes (or even "
@@ -296,33 +285,15 @@
"example of a custom load event listener:"
msgstr ""
"Um listener personalizado deve implementar a interface referente ao evento a "
-"ser processado e/ou deve estender a classes base equivalente (ou mesmo os "
+"ser processado e/ou deve estender a classes base equivalentes (ou mesmo os "
"listeners padrões usados pelo Hibernate, eles não são declarados como finais "
"com esse objetivo). O listener personalizado pode ser registrado "
"programaticamente no objeto <literal>Configuration</literal>, ou "
-"declarativamente no XML de configuração do Hibernate (o registro do listener "
-"no propertie de configuração não é suportado). Aqui temos um exemplo de como "
-"carregar um listener personalizado:"
+"declarativamente no XML de configuração do Hibernate especificado. A "
+"configuração declarativa através do arquivo de propriedades não é suportado. "
+"Aqui temos um exemplo de como carregar um listener personalizado:"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
@@ -332,58 +303,29 @@
"Hibernate para registrar declarativamente qual listener deve se utilizado em "
"conjunto com o listener padrão:"
-#. Tag: programlisting
-#: events.xml:130
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-msgstr ""
+msgid "Instead, you can register it programmatically:"
+msgstr "Ou, você pode registrar o listener programaticamente: "
#. Tag: para
-#: events.xml:132
-#, fuzzy, no-c-format
-msgid "Instead, you can register it programmatically:"
-msgstr "Ou, você pode registrar o listener programaticamente:"
-
-#. Tag: programlisting
-#: events.xml:136
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:138
-#, fuzzy, no-c-format
-msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
"name is used in multiple <literal><listener/></literal> elements, each "
"reference will result in a separate instance of that class. If you need to "
"share listener instances between listener types you must use the "
"programmatic registration approach."
msgstr ""
-"Listeners registrados declarativamente não compartilham da mesma instancia. "
-"Se o mesmo nome da classe é utilizado em vários elementos e <literal><"
-"listener/></literal>, cada um vai resultar em uma instancia separada "
-"dessa classe. Se você tem a necessidade de compartilhar uma instancia de um "
+"Listeners registrados declarativamente não compartilham da mesma instância. "
+"Se o mesmo nome da classe for utilizado em vários elementos <literal><"
+"listener/></literal>, cada um resultará em uma instância separada dessa "
+"classe. Se você tem a necessidade de compartilhar uma instância de um "
"listener entre diversos tipos de listeners você deve registrar o listener "
-"programaticamente."
+"programaticamente. "
#. Tag: para
-#: events.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
"configuration? A listener implementation could implement multiple event "
@@ -391,90 +333,331 @@
"registration makes it easier to turn custom listeners on or off during "
"configuration."
msgstr ""
-"Mas porque implementar uma interface e definir o tipo especÃfico durante a "
+"Mas, por quê implementar uma interface e definir o tipo especÃfico durante a "
"configuração? Bem, um listener pode implementar vários listeners de evento. "
"Com o tipo sendo definido durante o registro, fica fácil ligar ou desligar "
-"listeners personalizados durante a configuração."
+"listeners personalizados durante a configuração. "
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
-msgstr "Hibernate declarative security"
+msgstr "Segurança declarativa do Hibernate"
#. Tag: para
-#: events.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
"session facade layer. Hibernate3 allows certain actions to be permissioned "
"via JACC, and authorized via JAAS. This is an optional functionality that is "
"built on top of the event architecture."
msgstr ""
-"Usually, declarative security in Hibernate applications is managed in a "
-"session facade layer. Now, Hibernate3 allows certain actions to be "
-"permissioned via JACC, and authorized via JAAS. This is optional "
-"functionality built on top of the event architecture."
+"Geralmente a segurança declarativa nos aplicativos do Hibernate é gerenciada "
+"em uma camada de fachada de sessão. Agora o Hibernate3 permite certas ações "
+"serem aceitas através do JACC e autorizadas através do JAAS. Esta é uma "
+"funcionalidade opcional construÃda em cima da arquitetura do evento. "
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
"of JAAS authorization."
msgstr ""
-"First, you must configure the appropriate event listeners, to enable the use "
-"of JAAS authorization."
+"Primeiro, você precisa configurar um evento listener apropriado, para "
+"possibilitar o uso da autorização JAAS."
-#. Tag: programlisting
-#: events.xml:168
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:170
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
"shorthand for <literal><event type=\"...\"><listener class=\"...\"/"
"></event></literal> when there is exactly one listener for a "
"particular event type."
msgstr ""
-"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
-"just a shorthand for <literal><event type=\"...\"><listener class="
-"\"...\"/></event></literal> when there is exactly one listener for "
-"a particular event type."
+"Note que <literal><listener type=\"...\" class=\"...\"/></literal> é "
+"somente um atalho para <literal><event type=\"...\"><listener class="
+"\"...\"/></event></literal> quando existir somente um listener para "
+"um tipo de evento em particular."
#. Tag: para
-#: events.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
"permissions to roles:"
msgstr ""
-"Next, still in <literal>hibernate.cfg.xml</literal>, bind the permissions to "
-"roles:"
+"Depois disso, ainda em <literal>hibernate.cfg.xml</literal>, vincule as "
+"permissões aos papéis:"
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
-msgstr "The role names are the roles understood by your JACC provider."
+msgstr "Os nomes das funções são as funções conhecidas pelo seu provedor JACC."
+
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,140 @@
+# translation of example_mappings.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_mappings\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-10-28 16:59+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
msgstr "Exemplo: Vários Mapeamentos"
#. Tag: para
-#: example_mappings.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This chapters explores some more complex association mappings."
-msgstr "Este capitulo mostra algums mapeamentos de associações mais complexos."
+msgstr ""
+"Este capÃtulo mostra algums mapeamentos de associações mais complexos. "
#. Tag: title
-#: example_mappings.xml:37
#, no-c-format
msgid "Employer/Employee"
-msgstr "Employer/Employee"
+msgstr "Empregador/Empregado"
#. Tag: para
-#: example_mappings.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
@@ -38,132 +142,32 @@
"more than one period of employment for the same two parties. Components are "
"used to model monetary values and employee names."
msgstr ""
-"O modelo de seguinte relacionamento entre <literal>Employer</literal> e "
+"O modelo a seguir, do relacionamento entre <literal>Employer</literal> e "
"<literal>Employee</literal> utiliza uma entidade de classe atual "
"(<literal>Employment</literal>) para representar a associação. Isto é feito "
-"porque pode-ser ter mais do que um perÃodo de trabalho para as duas partes "
+"porque pode-se ter mais do que um perÃodo de trabalho para as duas partes "
"envolvidas. Outros Componentes são usados para modelar valores monetários e "
-"os nomes do empregado."
+"os nomes do empregado. "
#. Tag: para
-#: example_mappings.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is a possible mapping document:"
-msgstr "Abaixo o código de um possÃvel mapeamento:"
+msgstr "Abaixo, segue o documento de um possÃvel mapeamento: "
-#. Tag: programlisting
-#: example_mappings.xml:60
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_mappings.xml:62
-#, fuzzy, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr ""
-"E abaixo o esquema da tabela gerado pelo <literal>SchemaExport</literal>."
+"E abaixo, segue o esquema da tabela gerado pelo <literal>SchemaExport</"
+"literal>. "
-#. Tag: programlisting
-#: example_mappings.xml:66
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
-msgstr "Author/Work"
+msgstr "Autor/Trabalho"
#. Tag: para
-#: example_mappings.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
@@ -179,10 +183,9 @@
"como uma associação muitos-para-muitos. Nós escolhemos representar o "
"relacionamento entre <literal>Author</literal> e <literal>Person</literal> "
"como uma associação um-para-um. Outra possibilidade seria ter "
-"<literal>Author</literal> extendendo <literal>Person</literal>."
+"<literal>Author</literal> estendendo <literal>Person</literal>. "
#. Tag: para
-#: example_mappings.xml:91
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
@@ -190,134 +193,28 @@
"O mapeamento do código seguinte representa corretamente estes "
"relacionamentos:"
-#. Tag: programlisting
-#: example_mappings.xml:95
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. 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 ""
-"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. Heres the table schema, as "
-"generated by <literal>SchemaExport</literal>. Existem quatro tabelas neste "
-"mapeamento. <literal>works</literal>, <literal>authors</literal> e "
-"<literal>persons</literal> recebem os dados de work, author e person, "
-"respectivamente. <literal>author_work</literal> é uma tabela de associação "
-"que liga authors à works. Abaixo o esquema das tabelas, gerados pelo "
-"<literal>SchemaExport</literal>."
+"Existem quatro tabelas neste mapeamento: <literal>works</literal>, "
+"<literal>authors</literal> e <literal>persons</literal> matém os dados de "
+"trabalho, autor e pessoa, respectivamente. O <literal>author_work</literal> "
+"é uma tabela de associação que liga autores à trabalhos. Abaixo, segue o "
+"esquema das tabelas, gerados pelo <literal>SchemaExport</literal>:"
-#. Tag: programlisting
-#: example_mappings.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
-msgstr "Customer/Order/Product"
+msgstr "Cliente/Ordem/Produto"
#. Tag: para
-#: example_mappings.xml:112
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
@@ -334,62 +231,17 @@
"<literal>Product</literal>. Existe uma associação um-para-muitos entre "
"<literal>Customer</literal> e <literal>Order</literal>, mas como devemos "
"representar <literal>Order</literal> / <literal>LineItem</literal> / "
-"<literal>Product</literal>? Eu escolhi mapear LineItem como uma classe de "
-"associação representando a associação muitos-para-muitos entre "
-"<literal>Order</literal> and <literal>Product</literal>. No Hibernate, isto "
-"é conhecido como um elemento composto."
+"<literal>Product</literal>? Neste exemplo, o LineItem é mapeado como uma "
+"classe de associação representando a associação muitos-para-muitos entre "
+"<literal>Order</literal> e <literal>Product</literal>. No Hibernate, isto é "
+"conhecido como um elemento composto."
#. Tag: para
-#: example_mappings.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping document will look like this:"
-msgstr "O código do mapeamento:"
+msgstr "O documento de mapeamento será parecido com:"
-#. Tag: programlisting
-#: example_mappings.xml:136
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -401,57 +253,15 @@
"<literal>line_items</literal> e <literal>products</literal> recebem os dados "
"de customer, order, line_item e product, respectivamente. "
"<literal>line_items</literal> também atua como uma tabela de associação "
-"ligando orders com products."
+"ligando ordens a produtos."
-#. Tag: programlisting
-#: example_mappings.xml:145
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr "Exemplos variados de mapeamento"
#. Tag: para
-#: example_mappings.xml:152
-#, fuzzy, no-c-format
+#, 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</"
@@ -459,340 +269,1102 @@
msgstr ""
"Todos estes exemplos são retirados do conjunto de testes do Hibernate. Lá, "
"você encontrará vários outros exemplos úteis de mapeamentos. Verifique o "
-"diretorio <literal>test</literal> da distribuição do Hibernate."
+"diretório <literal>test</literal> da distribuição do Hibernate. "
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
-msgstr "Associação um-para-um \"Tipadas\""
+msgstr "Associação um-para-um \"Typed\""
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
msgstr "Exemplo de chave composta"
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:171
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
-msgstr "Mmuitos-para-muitos com atributo de chave composta compartilhada"
+msgstr "Muitos-para-muitos com função de chave composta compartilhada"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
-msgstr "Conteúdo baseado em descriminação"
+msgstr "Conteúdo baseado em discriminação"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
msgstr "Associações em chaves alternativas"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
-#~ msgid "TODO: put words around this stuff"
-#~ msgstr "TODO: put words around this stuff"
+#~ msgid ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+#~ msgstr ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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>]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of example_parentchild.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_parentchild\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-12-19 08:56+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_parentchild.xml:29
#, no-c-format
msgid "Example: Parent/Child"
-msgstr "Example: Parent/Child"
+msgstr "Exemplo: Pai/Filho"
#. Tag: para
-#: example_parentchild.xml:31
-#, fuzzy, no-c-format
+#, 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 "
@@ -34,52 +139,48 @@
"cascades</emphasis> to model a parent/child relationship efficiently and "
"elegantly."
msgstr ""
-"One of the very first things that new users try to do with Hibernate is to "
-"model a parent / child type relationship. There are two different approaches "
-"to this. For various reasons 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><one-to-many></literal> "
-"association from <literal>Parent</literal> to <literal>Child</literal>. (The "
-"alternative approach is to declare the <literal>Child</literal> as a "
-"<literal><composite-element></literal>.) Now, it turns out that "
-"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. It's not at "
-"all difficult!"
+"Uma das primeiras coisas que um usuário tenta fazer com o Hibernate é "
+"modelar um tipo de relacionamento Pai/Filho. Existem duas abordagens "
+"diferentes para isto. Por diversas razões diferentes, a abordagem mais "
+"conveniente, especialmente para novos usuários, é modelar ambos os "
+"<literal>Parent</literal> e <literal>Child</literal> como classes de "
+"entidade com uma associação <literal><one-to-many></literal> a partir "
+"do <literal>Parent</literal> para o <literal>Child</literal>. A abordagem "
+"alternativa é declarar o <literal>Child</literal> como um <literal><"
+"composite-element></literal>. As semânticas padrões da associação um para "
+"muitos (no Hibernate), são muito menos parecidas com as semânticas comuns de "
+"um relacionamento pai/filho do que aqueles de um mapeamento de elemento de "
+"composição. Explicaremos como utilizar uma <emphasis>associação bidirecional "
+"um para muitos com cascatas</emphasis> para modelar um relacionamento pai/"
+"filho de forma eficiente e elegante."
#. Tag: title
-#: example_parentchild.xml:45
#, no-c-format
msgid "A note about collections"
-msgstr "A note about collections"
+msgstr "Uma nota sobre as coleções"
#. Tag: para
-#: example_parentchild.xml:47
-#, fuzzy, no-c-format
+#, 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 are considered to be a logical part of their owning "
-"entity; never of the contained entities. This is a crucial distinction! It "
-"has the following consequences:"
+"As coleções do Hibernate são consideradas uma parte lógica de suas próprias "
+"entidades, nunca das entidades contidas. Saiba que esta é uma distinção que "
+"possui as seguintes conseqüências:"
#. Tag: para
-#: example_parentchild.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When you remove/add an object from/to a collection, the version number of "
"the collection owner is incremented."
msgstr ""
-"When we remove / add an object from / to a collection, the version number of "
-"the collection owner is incremented."
+"Quando removemos ou adicionamos um objeto da/na coleção, o número da versão "
+"do proprietário da coleção é incrementado. "
#. Tag: para
-#: example_parentchild.xml:60
-#, fuzzy, no-c-format
+#, 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 "
@@ -87,15 +188,14 @@
"value type instance to the collection will cause its state to be immediately "
"persistent."
msgstr ""
-"If an object that was removed from a collection is an instance of a value "
-"type (eg, 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."
+"Se um objeto removido de uma coleção for uma instância de um tipo de valor "
+"(ex.: um elemento de composição), este objeto irá parar de ser persistente e "
+"seu estado será completamente removido do banco de dados. Da mesma forma, ao "
+"adicionar uma instância de tipo de valor à coleção, causará ao estado uma "
+"persistência imediata. "
#. Tag: para
-#: example_parentchild.xml:68
-#, fuzzy, no-c-format
+#, 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 "
@@ -103,16 +203,15 @@
"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 ""
-"On the other hand, 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 "
-"behaviour 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."
+"Por outro lado, se uma entidade é removida de uma coleção (uma associação um-"
+"para-muitos ou muitos-para-muitos), ela não será deletada por padrão. Este "
+"comportamento é completamente consistente, uma mudança para o estado interno "
+"de uma outra entidade não deve fazer com que a entidade associada "
+"desapareça. Da mesma forma, ao adicionar uma entidade à coleção, não faz com "
+"que a entidade se torne persistente, por padrão. "
#. Tag: para
-#: example_parentchild.xml:78
-#, fuzzy, no-c-format
+#, 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 "
@@ -120,112 +219,72 @@
"case of a parent/child relationship. In this case, the life of the child is "
"bound to the life cycle of the parent."
msgstr ""
-"Instead, the default behaviour is that adding an entity to a collection "
-"merely creates a link between the two entities, while removing it removes "
-"the link. This is very appropriate for all sorts of cases. Where it is not "
-"appropriate at all is the case of a parent / child relationship, where the "
-"life of the child is bound to the life cycle of the parent."
+"A adição de uma entidade à coleção, por padrão, meramente cria um link entre "
+"as duas entidades. A remoção da entidade, removerá o link. Isto é muito "
+"apropriado para alguns tipos de casos. No entanto, não é apropriado o caso "
+"de um relacionamento pai/filho. Neste caso, a vida do filho está vinculada "
+"ao ciclo de vida do pai."
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
-msgstr "Bidirectional one-to-many"
+msgstr "Bidirecional um-para-muitos"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
"association from <literal>Parent</literal> to <literal>Child</literal>."
msgstr ""
-"Suppose we start with a simple <literal><one-to-many></literal> "
-"association from <literal>Parent</literal> to <literal>Child</literal>."
+"Suponha que começamos uma associação <literal><one-to-many></literal> "
+"simples de <literal>Parent</literal> para <literal>Child</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:97
-#, fuzzy, no-c-format
+#, no-c-format
msgid "If we were to execute the following code:"
-msgstr "If we were to execute the following code"
+msgstr "Se fossemos executar o seguinte código:"
-#. Tag: programlisting
-#: example_parentchild.xml:101
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
-msgstr "Hibernate would issue two SQL statements:"
+msgstr "O Hibernate editaria duas instruções SQL"
#. Tag: para
-#: example_parentchild.xml:109
#, no-c-format
msgid ""
"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
msgstr ""
-"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
+"um <literal>INSERT</literal> para criar um registro para <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 ""
-"an <literal>UPDATE</literal> to create the link from <literal>p</literal> to "
+"um <literal>UPDATE</literal> para criar um link de <literal>p</literal> para "
"<literal>c</literal>"
#. Tag: para
-#: example_parentchild.xml:119
-#, fuzzy, no-c-format
+#, 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 ""
-"This is not only inefficient, but also violates any <literal>NOT NULL</"
-"literal> constraint on the <literal>parent_id</literal> column. We can fix "
-"the nullability constraint violation by specifying <literal>not-null=\"true"
-"\"</literal> in the collection mapping:"
+"Isto não é somente ineficiente como também viola qualquer restrição "
+"<literal>NOT NULL</literal> na coluna <literal>parent_id</literal>. Nós "
+"podemos concertar a violação da restrição de nulabilidade, especificando um "
+"<literal>not-null=\"true\"</literal> no mapeamento da coleção:"
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
-msgstr "However, this is not the recommended solution."
+msgstr "No entanto, esta não é uma solução recomendada."
#. Tag: para
-#: example_parentchild.xml:130
-#, fuzzy, no-c-format
+#, 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</"
@@ -233,267 +292,141 @@
"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 ""
-"The underlying cause of this behaviour 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>. So the "
-"solution is to make the link part of the <literal>Child</literal> mapping."
+"As causas subjacentes deste comportamento é que o link (a chave exterior "
+"<literal>parent_id</literal>) de <literal>p</literal> para <literal>c</"
+"literal> não é considerada parte do estado do objeto <literal>Child</"
+"literal> e por isso não é criada no <literal>INSERT</literal>. Então a "
+"solução é fazer uma parte de link do mapeamento do <literal>Child</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-
-#. 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 ""
-"(We also need to add the <literal>parent</literal> property to the "
-"<literal>Child</literal> class.)"
+"Nós também precisamos adicionar a propriedade <literal>parent</literal> à "
+"classe do <literal>Child</literal>."
#. Tag: para
-#: example_parentchild.xml:143
-#, fuzzy, no-c-format
+#, 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 ""
-"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."
+"Agora que a entidade <literal>Child</literal> está gerenciando o estado do "
+"link, informaremos à coleção para não atualizar o link. Utilizamos o "
+"atributo <literal>inverse</literal> para isto:"
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:150
-#, fuzzy, no-c-format
-msgid "The following code would be used to add a new <literal>Child</literal>:"
-msgstr "The following code would be used to add a new <literal>Child</literal>"
-
-#. Tag: programlisting
-#: example_parentchild.xml:154
#, no-c-format
-msgid ""
-"<![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();]]>"
+msgid "The following code would be used to add a new <literal>Child</literal>:"
msgstr ""
+"O seguinte código seria usado para adicionar um novo <literal>Child</"
+"literal>:"
#. 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 "And now, only one SQL <literal>INSERT</literal> would be issued!"
+msgstr "E agora, somente um SQL <literal>INSERT</literal> seria editado."
#. Tag: para
-#: example_parentchild.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
"<literal>Parent</literal>."
msgstr ""
-"To tighten things up a bit, we could create an <literal>addChild()</literal> "
-"method of <literal>Parent</literal>."
+"Para assegurar tudo isto, podemos criar um método de <literal>addChild()</"
+"literal> do <literal>Parent</literal>. "
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:167
-#, fuzzy, no-c-format
-msgid "The code to add a <literal>Child</literal> looks like this:"
-msgstr "Now, the code to add a <literal>Child</literal> looks like"
-
-#. Tag: programlisting
-#: example_parentchild.xml:171
#, no-c-format
-msgid ""
-"<![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();]]>"
+msgid "The code to add a <literal>Child</literal> looks like this:"
msgstr ""
+"Agora, o código que adiciona um <literal>Child</literal> se parece com este: "
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
-msgstr "Cascading life cycle"
+msgstr "Ciclo de vida em Cascata "
#. Tag: para
-#: example_parentchild.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
"literal> by using cascades."
msgstr ""
-"The explicit call to <literal>save()</literal> is still annoying. We will "
-"address this by using cascades."
+"A chamada explÃcita para <literal>save()</literal> ainda é incômoda. Iremos "
+"nos referir a ela utilizando cascatas."
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This simplifies the code above to:"
-msgstr "This simplifies the code above to"
+msgstr "Isto simplifica o código acima para:"
-#. Tag: programlisting
-#: example_parentchild.xml:189
+#. Tag: para
#, 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 ""
-
-#. 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 ""
-"Similarly, we don't 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."
+"Da mesma forma, não precisamos repetir este comando com os filhos ao salvar "
+"ou deletar um <literal>Parent</literal>. O comando seguinte irá remover o "
+"<literal>p</literal> e todos os seus filhos do banco de dados. "
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:198
-#, fuzzy, no-c-format
+#, no-c-format
msgid "However, the following code:"
-msgstr "However, this code"
+msgstr "No entanto, este código:"
-#. Tag: programlisting
-#: example_parentchild.xml:202
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-
-#. 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 ""
-"will not remove <literal>c</literal> from the database; it will ony remove "
-"the link to <literal>p</literal> (and cause a <literal>NOT NULL</literal> "
-"constraint violation, in this case). You need to explicitly <literal>delete()"
-"</literal> the <literal>Child</literal>."
+"não irá remover <literal>c</literal> do banco de dados. Neste caso, ele "
+"somente removerá o link para <literal>p</literal> e causará uma violação de "
+"restrição <literal>NOT NULL</literal>). Você precisará <literal>delete()</"
+"literal> de forma explÃcita o <literal>Child</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 ""
-"Now, in our case, a <literal>Child</literal> can't really exist without its "
-"parent. So if we remove a <literal>Child</literal> from the collection, we "
-"really do want it to be deleted. For this, we must use <literal>cascade="
-"\"all-delete-orphan\"</literal>."
+"Agora, no seu caso, um <literal>Child</literal> não pode existir sem seu "
+"pai. Então, se removermos um <literal>Child</literal> da coleção, não iremos "
+"mais querer que ele seja deletado. Devido a isto, devemos utilizar um "
+"<literal>cascade=\"all-delete-orphan\"</literal>."
-#. Tag: programlisting
-#: example_parentchild.xml:218
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. 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 ""
-"Note: even though the collection mapping specifies <literal>inverse=\"true"
-"\"</literal>, cascades are still processed by iterating the collection "
-"elements. So if you require that 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>."
+"Apesar do mapeamento da coleção especificar <literal>inverse=\"true\"</"
+"literal>, as cascatas ainda são processadas por repetição dos elementos de "
+"coleção. Portanto, se você requiser que um objeto seja salvo, deletado ou "
+"atualizado por uma cascata, você deverá adicioná-lo à sua coleção. Chamar "
+"<literal>setParent()</literal> não é o bastante."
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr "Cascades and <literal>unsaved-value</literal>"
+msgstr "Cascatas e <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</"
@@ -506,49 +439,36 @@
"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 "
+"\"objectstate-saveorupdate\" />.) <emphasis>In Hibernate3, it is no longer "
"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
"emphasis>"
msgstr ""
-"Suppose we loaded up a <literal>Parent</literal> in one <literal>Session</"
-"literal>, made some changes in a UI action and wish to persist these changes "
-"in a new session by calling <literal>update()</literal>. The "
-"<literal>Parent</literal> will contain a collection of childen and, since "
-"cascading update is enabled, Hibernate needs to know which children are "
-"newly instantiated and which represent existing rows in the database. Lets "
-"assume that both <literal>Parent</literal> and <literal>Child</literal> have "
-"genenerated 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>"
+"Vamos supor que tenhamos carregado um <literal>Parent</literal> em uma "
+"<literal>Session</literal>, fizemos algumas mudanças em uma ação UI e "
+"desejamos que persista estas mudanças em uma sessão nova, chamando um "
+"<literal>update()</literal>. O <literal>Parent</literal> irá conter uma "
+"coleção de filhos e uma vez que a atualização da cascata esteja habilitada, "
+"o Hibernate precisará saber qual filho foi instanciado mais recentemente e "
+"qual representa a linha existente no banco de dados. Vamos supor que ambos "
+"os <literal>Parent</literal> e <literal>Child</literal> tenham gerado "
+"propriedades de identificador do tipo <literal>Long</literal>. O Hibernate "
+"usará o identificador e o valor de propriedade da versão/carimbo de data e "
+"hora para determinar qual filho é novo. (Veja <xref linkend=\"objectstate-"
+"saveorupdate\"/>.) <emphasis>no Hibernate3, não é mais necessário "
+"especificar um <literal>unsaved-value</literal> explicitamente.</emphasis> "
#. Tag: para
-#: example_parentchild.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following code will update <literal>parent</literal> and <literal>child</"
"literal> and insert <literal>newChild</literal>:"
msgstr ""
-"The following code will update <literal>parent</literal> and <literal>child</"
-"literal> and insert <literal>newChild</literal>."
+"O seguinte código atualizará o <literal>parent</literal> e o <literal>child</"
+"literal> e inserirá um <literal>newChild</literal>:"
-#. Tag: programlisting
-#: example_parentchild.xml:249
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 "
@@ -557,36 +477,34 @@
"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 ""
-"Well, that's all very well for the case of a generated identifier, but what "
-"about assigned identifiers and composite identifiers? This is more "
-"difficult, since Hibernate can't 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."
+"Bem, isto cabe bem no caso de um identificador gerado, mas e os "
+"identificadores atribuÃdos e os identificadores de composição? Isto é mais "
+"difÃcil, pois uma vez que o Hibernate não pode utilizar a propriedade do "
+"identificador para distinguir entre um objeto instanciado recentemente, com "
+"um identificador atribuÃdo pelo usuário, e um objeto carregado em uma sessão "
+"anterior. Neste caso, o Hibernate usará tanto um carimbo de data e hora "
+"(timestamp) ou uma propriedade de versão, ou irá na verdade consultar um "
+"cache de segundo nÃvel, ou no pior dos casos, o banco de dados, para ver se "
+"a linha existe. "
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
-msgstr "Conclusion"
+msgstr "Conclusão"
#. Tag: para
-#: example_parentchild.xml:265
-#, fuzzy, no-c-format
+#, 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 ""
-"There is quite a bit to digest here and it might look confusing first time "
-"around. However, in practice, it all works out very nicely. Most Hibernate "
-"applications use the parent / child pattern in many places."
+"Há muito o que digerir aqui e pode parecer confuso na primeira vez. No "
+"entanto, na prática, funciona muito bem. A maioria dos aplicativos do "
+"Hibernate utiliza o modelo pai/filho em muitos lugares. "
#. Tag: para
-#: example_parentchild.xml:270
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
"exist in the case of <literal><composite-element></literal> mappings, "
@@ -595,9 +513,9 @@
"composite elements cannot own collections and they should not be the child "
"of any entity other than the unique parent."
msgstr ""
-"We mentioned an alternative in the first paragraph. None of the above issues "
-"exist in the case of <literal><composite-element></literal> mappings, "
-"which have exactly the semantics of a parent / child relationship. "
-"Unfortunately, there are two big limitations to composite element classes: "
-"composite elements may not own collections, and they should not be the child "
-"of any entity other than the unique parent."
+"Nós mencionamos uma alternativa neste primeiro parágrafo. Nenhum dos casos "
+"acima existem no caso de mapeamentos <literal><composite-element></"
+"literal>, que possuem exatamente a semântica do relacionamento pai/filho. "
+"Infelizmente, existem duas grandes limitações para elementos compostos: "
+"elementos compostos podem não possuir coleções e assim sendo podem não ser "
+"filhos de nenhuma outra entidade a não ser do pai único. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,484 +1,962 @@
+# translation of example_weblog.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: example_weblog\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-10-29 11:19+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
-msgstr "Example: Weblog Application"
+msgstr "Exemplo: Aplicativo Weblog"
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
-msgstr "Persistent Classes"
+msgstr "Classes Persistentes"
#. Tag: para
-#: example_weblog.xml:34
-#, fuzzy, no-c-format
+#, 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 ""
-"The persistent classes 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."
+"As classes persistentes representam um weblog, e um item postado em um "
+"weblog. Eles não devem ser modelados como um relacionamento padrão pai/"
+"filho, mas usaremos uma bolsa ordenada ao invés de um conjunto:"
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
-msgstr "Hibernate Mappings"
+msgstr "Mapeamentos Hibernate"
#. Tag: para
-#: example_weblog.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The XML mappings are now straightforward. For example:"
-msgstr "The XML mappings should now be quite straightforward."
+msgstr "Os mapeamentos XML devem agora ser um tanto diretos. Por exemplo:"
-#. Tag: programlisting
-#: example_weblog.xml:53
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
-msgstr "Hibernate Code"
+msgstr "Código Hibernate "
#. Tag: para
-#: example_weblog.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following class demonstrates some of the kinds of things we can do with "
"these classes using Hibernate:"
msgstr ""
-"The following class demonstrates some of the kinds of things we can do with "
-"these classes, using Hibernate."
+"A seguinte classe demonstra algumas atividades que podemos realizar com "
+"estas classes, usando Hibernate:"
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of filters.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: filters\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-16 15:07+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr "Filtrando dados"
#. Tag: para
-#: filters.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
@@ -27,18 +132,16 @@
msgstr ""
"O Hibernate3 provê um novo método inovador para manusear dados com regras de "
"\"visibilidade\". Um <emphasis>Filtro do Hibernate</emphasis> é um filtro "
-"global, nomeado e parametrizado que pode se habilitado ou não dentro de um "
-"Session do Hibernate."
+"global, nomeado e parametrizado que pode ser habilitado ou não dentro de uma "
+"Sessão do Hibernate. "
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
msgstr "Filtros do Hibernate"
#. Tag: para
-#: filters.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
@@ -49,18 +152,16 @@
"parameter values should be. Filters can be used like database views, but "
"they are parameterized inside the application."
msgstr ""
-"O Hibernate tem a habilidade de pré definir os critérios do filtro e anexar "
+"O Hibernate3 tem a habilidade de pré-definir os critérios do filtro e anexar "
"esses filtros no nÃvel da classe e no nÃvel da coleção. Um critério do "
-"filtro é a habilidade de definir uma cláusula restritiva muito semelhante ao "
-"atributo \"where\" disponÃvel para a classe e várias coleções. A não ser que "
-"essas condições de filtros podem ser parametrizadas. A aplicação pode, "
-"então, fazer uma decisão em tempo de execução se os filtros definidos devem "
-"estar habilitados e quais valores seus parâmetros devem ter. Os filtros "
-"podem ser usados como Views de bancos de dados, mas com parametros internos "
-"à aplicação."
+"filtro é a habilidade de definir uma cláusula restritiva muito semelhante à "
+"função \"where\" disponÃvel para a classe e várias coleções. A não ser que "
+"essas condições de filtros possam ser parametrizadas. A aplicação pode, "
+"então decidir, em tempo de execução, se os filtros definidos devem estar "
+"habilitados e quais valores seus parâmetros devem ter. Os filtros podem ser "
+"usados como Views de bancos de dados, mas com parâmetros dentro da aplicação."
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -68,62 +169,28 @@
"filter-def/></literal> element within a <literal><hibernate-mapping/"
"></literal> element:"
msgstr ""
-"Para usar esses filtros, eles primeiramente devem ser definidos e anexados "
+"Para usar esses filtros, eles devem inicialmente ser definidos e anexados "
"aos elementos do mapeamento apropriados. Para definir um filtro, use o "
"elemento <literal><filter-def/></literal> dentro do elemento "
"<literal><hibernate-mapping/></literal>:"
-#. Tag: programlisting
-#: filters.xml:56
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
+msgid "This filter can then be attached to a class:"
+msgstr "Esse filtro pode ser acoplado à uma classe:"
#. Tag: para
-#: filters.xml:58
-#, fuzzy, no-c-format
-msgid "This filter can then be attached to a class:"
-msgstr "Então esse filtro pode ser anexo à uma classe:"
-
-#. Tag: programlisting
-#: filters.xml:62
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
+msgid "Or, to a collection:"
+msgstr "Ou, à uma coleção:"
#. Tag: para
-#: filters.xml:64
-#, fuzzy, no-c-format
-msgid "Or, to a collection:"
-msgstr "ou em uma coleção:"
-
-#. Tag: programlisting
-#: filters.xml:68
#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:70
-#, fuzzy, no-c-format
msgid "Or, to both or multiples of each at the same time."
-msgstr "ou mesmo para ambos (ou muitos de cada) ao mesmo tempo."
+msgstr "Ou, mesmo para ambos (ou muitos de cada) ao mesmo tempo."
#. Tag: para
-#: filters.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
@@ -136,151 +203,80 @@
msgstr ""
"Os métodos na <literal>Session</literal> são: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
-"literal>, e <literal>disableFilter(String filterName)</literal>. Por padrão, "
-"os filtros não são habilitados dentro de qualquer session; Eles devem ser "
-"explicitamente habilitados usando o método <literal>Session.enableFilter()</"
-"literal>, que retorna uma instância da interface <literal>Filter</literal>. "
-"Usando o filtro simples definido acima, o código se pareceria com o seguinte:"
+"literal> e <literal>disableFilter(String filterName)</literal>. Por padrão, "
+"os filtros <emphasis>não</emphasis> são habilitados dentro de qualquer "
+"sessão. Eles devem ser explicitamente habilitados usando o método "
+"<literal>Session.enabledFilter()</literal>, que retorna uma instância da "
+"interface <literal>Filter</literal>. Usando o filtro simples definido acima, "
+"o código se pareceria com o seguinte: "
-#. Tag: programlisting
-#: filters.xml:83
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:85
-#, fuzzy, no-c-format
-msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
"Veja que os métodos da interface org.hibernate.Filter permite o encadeamento "
-"de funções, comum à maioria das funções do Hibernate."
+"do método, comum à maioria das funções do Hibernate. "
#. Tag: para
-#: filters.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr ""
-"Um exemplo completo, usando dados temporais com um padrão efetivo de "
-"registro de datas:"
+"Um exemplo completo, usando dados temporais com um padrão de datas de "
+"registro efetivo:"
-#. Tag: programlisting
-#: filters.xml:93
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:95
-#, fuzzy, no-c-format
-msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
"Para garantir que você sempre tenha registro efetivos, simplesmente habilite "
-"o filtro na session antes de recuperar os dados dos empregados:"
+"o filtro na sessão antes de recuperar os dados dos empregados: "
-#. Tag: programlisting
-#: filters.xml:100
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:102
-#, fuzzy, no-c-format
-msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
-"No HQL acima, mesmo que mencionamos apenas uma restrição de salário nos "
-"resultados, por causa do filtro habilitado, a consulta retornará apenas os "
-"funcionários ativos cujo salário é maior que um milhão de dólares."
+"No HQL acima, mesmo que tenhamos mencionado apenas uma restrição de salário "
+"nos resultados, por causa do filtro habilitado, a consulta retornará apenas "
+"os funcionários ativos cujo salário é maior que um milhão de dólares. "
#. Tag: para
-#: filters.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
"safest to set this up for left outer joining. Place the parameter first "
"followed by the column name(s) after the operator."
msgstr ""
-"Nota: se você planeja usar filtros com outer join (por HQL ou por load "
-"fetching) seja cuidadoso na direção da expressão de condição. à mais seguro "
-"configura-lo com para um left outer join; geralmente, coloque o parâmetro "
-"primeiro seguido pelo nome da coluna após o operador."
+"Nota: se você planeja usar filtros com união externa (por HQL ou por busca "
+"de carga) seja cuidadoso quanto à direção da expressão de condição. à mais "
+"seguro configurá-lo para uma união externa esquerda. Coloque o parâmetro "
+"primeiro seguido pelo(s) nome(s) da coluna após o operador. "
#. Tag: para
-#: filters.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
"collections each with its own condition. This can be problematic when the "
"conditions are the same each time. Using <literal><filter-def/></"
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
-msgstr "translator-credits"
-
-#. Tag: programlisting
-#: filters.xml:122
-#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
msgstr ""
+"Após ser definido, o filtro deve ser anexado às entidades múltiplas e/ou "
+"coleções, cada uma com sua própria condição. Isto pode ser tedioso quando as "
+"condições se repetem. Assim, usando o <literal><filter-def/></literal> "
+"permite denifir uma condição padrão, tanto como uma função quanto CDATA:"
#. Tag: para
-#: filters.xml:124
#, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
@@ -288,3 +284,144 @@
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
+"Esta condição padrão será utilizada todas as vezes que um filtro for anexado "
+"a algo sem uma condição especÃfica. Note que isto significa que você pode "
+"dar uma condição especÃfica como parte de um anexo de filtro que substitua a "
+"condição padrão neste caso em particular. "
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+#~ msgstr ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,75 +1,169 @@
+# translation of inheritance_mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: inheritance_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 17:16+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: inheritance_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Inheritance mapping"
-msgstr "Mapeamento de Herança"
+msgstr "Mapeamento de Herança "
#. Tag: title
-#: inheritance_mapping.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The three strategies"
-msgstr "As três estratégias"
+msgstr "As três estratégias "
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr ""
"O Hibernate suporta as três estratégias básicas de mapeamento de herança:"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
msgstr "tabela por hierarquia de classes"
#. Tag: para
-#: inheritance_mapping.xml:45
#, fuzzy, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"tabela por subclasse\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"table per subclass"
+msgid "table per subclass"
+msgstr "Tabela por subclasse"
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
msgstr "tabela por classe concreta"
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
"polymorphism:"
msgstr ""
-"Adicionalmente, o Hibernate suporta uma quarta, um tipo levemente diferente "
-"de polimorfismo:"
+"Além disso, o Hibernate suporta um quarto tipo de polimorfismo um pouco "
+"diferente:"
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
msgstr "polimorfismo implÃcito"
#. Tag: para
-#: inheritance_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
"the same inheritance hierarchy. You can then make use of implicit "
@@ -83,20 +177,19 @@
"<literal><join></literal> elements (see below for an example)."
msgstr ""
"à possÃvel usar diferentes estratégias de mapeamento para diferentes "
-"ramificações da mesma hierarquia de herança, e então fazer uso do "
-"polimorfismo implÃcito para alcançar polimorfismo através da hierarquia "
-"completa. De qualquer forma, O Hibernate não suporta a mistura de "
-"mapeamentos <literal><subclass></literal>, and <literal><joined-"
-"subclass></literal> e <literal><union-subclass></literal> dentro do "
-"mesmo elemento raiz <literal><class></literal>. Ã possÃvel usar junto "
-"às estratégias tabela por hierarquia e a tabela por subclasse, abaixo do "
+"ramificações da mesma hierarquia de herança. Você pode fazer uso do "
+"polimorfismo implÃcito para alcançá-lo através da hierarquia completa. De "
+"qualquer forma, o Hibernate não suporta a mistura de mapeamentos "
+"<literal><subclass></literal>, <literal><joined-subclass></"
+"literal> e <literal><union-subclass></literal> dentro do mesmo "
+"elemento raÃz <literal><class></literal>. à possÃvel usar, junto à s "
+"estratégias, uma tabela por hierarquia e tabela por subclasse, abaixo do "
"mesmo elemento <literal><class></literal>, combinando os elementos "
"<literal><subclass></literal> e <literal><join></literal> (veja "
"abaixo)."
#. Tag: para
-#: inheritance_mapping.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
"subclass</literal>, and <literal>joined-subclass</literal> mappings in "
@@ -110,146 +203,75 @@
"defined as superclasses before subclasses."
msgstr ""
"Ã possÃvel definir mapeamentos <literal>subclass</literal>, <literal>union-"
-"subclass</literal>, e <literal>joined-subclass</literal> em documentos de "
+"subclass</literal> e <literal>joined-subclass</literal> em documentos de "
"mapeamento separados, diretamente abaixo de <literal>hibernate-mapping</"
-"literal>. Isso permite a você estender uma hierarquia de classes apenas "
-"adicionando um novo arquivo de mapeamento. Você deve especificar um atributo "
+"literal>. Isso permite que você estenda uma hierarquia de classes apenas "
+"adicionando um novo arquivo de mapeamento. Você deve especificar uma função "
"<literal>extends</literal> no mapeamento da subclasse, nomeando uma "
-"superclasse previamente mapeada. Nota: Anteriormente esta caracterÃstica "
-"fazia o ordenamento dos documentos de mapeamento importantes. Desde o "
-"Hibernate3, o ordenamento dos arquivos de mapeamento não importa quando "
-"usamos a palavra chave extends. O ordenamento dentro de um arquivo de "
-"mapeamento simples ainda necessita ser definido como superclasse antes de "
-"subclasse."
+"superclasse previamente mapeada. Anteriormente esta caracterÃstica fazia o "
+"ordenamento dos documentos de mapeamento importantes. Desde o Hibernate3, o "
+"ordenamento dos arquivos de mapeamento não importa quando usamos a palavra "
+"chave extends. O ordenamento dentro de um arquivo de mapeamento simples "
+"ainda necessita ser definido como superclasse antes de subclasse."
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
msgstr "Tabela por hierarquia de classes"
#. Tag: para
-#: inheritance_mapping.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
"implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</"
"literal>, and <literal>ChequePayment</literal>. The table per hierarchy "
"mapping would display in the following way:"
msgstr ""
-"Suponha que tenhamos uma interface <literal>Payment</literal>, com sua "
+"Vamos supor que temos uma interface <literal>Payment</literal>, com sua "
"implementação <literal>CreditCardPayment</literal>, <literal>CashPayment</"
-"literal>, <literal>ChequePayment</literal>. O mapeamento da tabela por "
+"literal> e <literal>ChequePayment</literal>. O mapeamento da tabela por "
"hierarquia seria parecido com:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:109
-#, fuzzy, no-c-format
-msgid ""
"Exactly one table is required. There is a limitation of this mapping "
"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
"literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
-"Exactly one table is required. There is one big limitation of this mapping "
-"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
-"literal>, may not have <literal>NOT NULL</literal> constraints."
+"à requisitado exatamente uma tabela. Existe uma grande limitação desta "
+"estratégia de mapeamento: colunas declaradas por subclasses, tais como "
+"<literal>CCTYPE</literal>, podem não ter restrições <literal>NOT NULL</"
+"literal>. "
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
msgstr "Tabela por subclasse"
#. Tag: para
-#: inheritance_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A table per subclass mapping looks like this:"
-msgstr "Um mapeamento de tabela por subclasse seria parecido com:"
+msgstr "Um mapeamento de tabela por subclasse seria parecido com: "
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:126
-#, fuzzy, no-c-format
-msgid ""
"Four tables are required. The three subclass tables have primary key "
"associations to the superclass table so the relational model is actually a "
"one-to-one association."
msgstr ""
-"Quatro tabelas são necessárias. As três tabelas subclasses possuem "
-"associação de chave primária para a tabela de superclasse (então o modelo "
-"relacional é atualmente uma associação de um-para-um)."
+"São necessárias quatro tabelas. As três tabelas subclasses possuem "
+"associação de chave primária para a tabela de superclasse, desta maneira o "
+"modelo relacional é atualmente uma associação de um-para-um."
#. Tag: title
-#: inheritance_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per subclass: using a discriminator"
-msgstr "Tabela por subclasse, usando um discriminador"
+msgstr "Tabela por subclasse: usando um discriminador"
#. Tag: para
-#: inheritance_mapping.xml:137
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
"discriminator column. Other object/relational mappers use a different "
@@ -260,107 +282,41 @@
"strategy, you can combine the use of <literal><subclass></literal> and "
"<literal><join></literal>, as follows:"
msgstr ""
-"Note que a implementação de tabela por subclasse do Hibernate não necessita "
-"de coluna de discriminador. Outro mapeador objeto/relacional usa uma "
-"implementação diferente de tabela por subclasse, que necessita uma coluna "
-"com o tipo discriminador na tabela da superclasse. A abordagem escolhida "
-"pelo Hibernate é muito mais difÃcil de implementar, porém de forma "
-"argumentável mais correto de um ponto de vista relacional. Se você deseja "
-"utilizar uma coluna discriminadora com a estratégia tabela por subclasse, "
-"você pode combinar o uso de <literal><subclass></literal> e "
-"<literal><join></literal>, dessa maneira:"
+"A implementação de tabela por subclasse do Hibernate não necessita de coluna "
+"de discriminador. Outro mapeador objeto/relacional usa uma implementação "
+"diferente de tabela por subclasse, que necessita uma coluna com o tipo "
+"discriminador na tabela da superclasse. A abordagem escolhida pelo Hibernate "
+"é muito mais difÃcil de implementar, porém mais correto de um ponto de vista "
+"relacional. Se você deseja utilizar uma coluna discriminadora com a "
+"estratégia tabela por subclasse, você poderá combinar o uso de <literal><"
+"subclass></literal> e <literal><join></literal>, dessa maneira:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
"not to fetch the <literal>ChequePayment</literal> subclass data using an "
"outer join when querying the superclass."
msgstr ""
-"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
-"not to fetch the <literal>ChequePayment</literal> subclass data using an "
-"outer join when querying the superclass. A declaração opcional "
-"fetch=âselectâ diz ao Hibernate para não buscar os dados da subclasse "
-"ChequePayment, quando usar um outer join pesquisando pela superclasse."
+"A declaração opcional <literal>fetch=\"select\"</literal> diz ao Hibernate "
+"para não buscar os dados da subclasse <literal>ChequePayment</literal>, "
+"quando usar uma união externa pesquisando a superclasse."
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
-msgstr ". Misturando tabela por hierarquia de classes com tabela por subclasse"
+msgstr "Mesclar tabela por hierarquia de classes com tabela por subclasse"
#. Tag: para
-#: inheritance_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
-"Você pode até mesmo misturar a estratégia de tabela por hierarquia e tabela "
-"por subclasse usando esta abordagem:"
+"Você pode até mesmo mesclar a estratégia de tabela por hierarquia e tabela "
+"por subclasse usando esta abordagem: "
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
@@ -368,59 +324,25 @@
"</literal>."
msgstr ""
"Para qualquer uma dessas estratégias de mapeamento, uma associação "
-"polimórfica para a classe raiz <literal>Payment</literal> deve ser mapeada "
+"polimórfica para a classe raÃz <literal>Payment</literal> deve ser mapeada "
"usando <literal><many-to-one></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
msgstr "Tabela por classe concreta"
#. Tag: para
-#: inheritance_mapping.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
"you can use <literal><union-subclass></literal>."
msgstr ""
"Existem duas formas que poderÃamos usar a respeito da estratégia de "
"mapeamento de tabela por classe concreta. A primeira é usar <literal><"
-"union-subclass></literal>.."
+"union-subclass></literal>. "
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
@@ -430,8 +352,7 @@
"para todas as propriedades da classe, incluindo propriedades herdadas."
#. Tag: para
-#: inheritance_mapping.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
"superclass, the column name must be the same on all subclass tables. The "
@@ -441,68 +362,34 @@
msgstr ""
"A limitação dessa abordagem é que se uma propriedade é mapeada na "
"superclasse, o nome da coluna deve ser o mesmo em todas as tabelas das "
-"subclasses. (Nós devemos melhorar isto em um futuro release do Hibernate). A "
-"estratégia do gerador de identidade não é permitida em união de subclasses"
-"(union-subclass) herdadas, na verdade a fonte de chave primária deve ser "
-"compartilhada através de todas subclasses unidas da hierarquia."
+"subclasses. A estratégia do gerador identidade não é permitida na união da "
+"herança de sub-classe. A fonte de chave primária deve ser compartilhada "
+"através de todas subclasses unidas da hierarquia."
#. Tag: para
-#: inheritance_mapping.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
"literal>. If it is not abstract, an additional table (it defaults to "
"<literal>PAYMENT</literal> in the example above), is needed to hold "
"instances of the superclass."
msgstr ""
-"Se sua superclasse é abstrata, mapeie ela com <literal>abstract=\"true\"</"
-"literal>. Claro, que se ela não for abstrata, uma tabela (padrão para "
-"<literal>PAYMENT</literal> no exemplo acima) adicional é necessária para "
+"Se sua superclasse é abstrata, mapeie-a com <literal>abstract=\"true\"</"
+"literal>. Claro, que se ela não for abstrata, uma tabela adicional (padrão "
+"para <literal>PAYMENT</literal> no exemplo acima), será necessária para "
"segurar as instâncias da superclasse."
#. Tag: title
-#: inheritance_mapping.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
-msgstr "Tabela por classe concreta, usando polimorfismo implÃcito"
+msgstr "Tabela por classe concreta usando polimorfismo implÃcito"
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr "Uma abordagem alternativa é fazer uso de polimorfismo implÃcito:"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, fuzzy, no-c-format
msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
@@ -510,28 +397,26 @@
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
"Veja que em nenhum lugar mencionamos a interface <literal>Payment</literal> "
-"explicitamente. Também preste atenção que propriedades de <literal>Payment</"
-"literal> são mapeadas em cada uma das subclasses. Se você quer evitar "
-"duplicação, considere usar entidades de XML (ex. (e.g. <literal>[ <!"
-"ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> na "
-"declaração do <literal>DOCTYPE</literal> e <literal>&allproperties;</"
-"literal> no mapeamento)."
+"explicitamente. Note também que propriedades de <literal>Payment</literal> "
+"são mapeadas em cada uma das subclasses. Se você quiser evitar duplicação, "
+"considere usar entidades de XML (ex. <literal>[ <!ENTITY allproperties "
+"SYSTEM \"allproperties.xml\"> ]</literal> na declaração do "
+"<literal>DOCTYPE</literal> e <literal>& allproperties;</literal> no "
+"mapeamento). "
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
"<literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
"A desvantagem dessa abordagem é que o Hibernate não gera <literal>UNION</"
-"literal>s SQL quando executa pesquisas polimórficas."
+"literal>s de SQL quando executa pesquisas polimórficas."
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
@@ -540,28 +425,13 @@
"Para essa estratégia, uma associação polimórfica para <literal>Payment</"
"literal> geralmente é mapeada usando <literal><any></literal>."
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
-msgstr "Misturando polimorfismo implÃcito com outros mapeamentos de herança"
+msgstr "Mesclando polimorfismo implÃcito com outros mapeamentos de herança"
#. Tag: para
-#: inheritance_mapping.xml:248
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
"literal> element, and since <literal>Payment</literal> is just an "
@@ -569,50 +439,16 @@
"inheritance hierarchy. You can still use polymorphic queries against the "
"<literal>Payment</literal> interface."
msgstr ""
-"Ainda existe uma coisa para ser observada com respeito a este mapeamento. "
-"Desde que as subclasses sejam mapeadas em seu próprio elemento <literal><"
-"class></literal> (e desde que <literal>Payment</literal> seja apenas uma "
-"interface), cada uma das subclasses pode ser facilmente parte de uma outra "
-"hierarquia de herança! (E você ainda pode usar pesquisas polimórficas em "
-"cima da interface <literal>Payment</literal>.)"
+"Existe ainda um item a ser observado sobre este mapeamento. Como as "
+"subclasses são mapeadas em seu próprio elemento <literal><class></"
+"literal>, e como o <literal>Payment</literal> é apenas uma interface, cada "
+"uma das subclasses pode ser facilmente parte de uma outra hierarquia de "
+"herança! (E você ainda pode usar pesquisas polimórficas em cima da interface "
+"<literal>Payment</literal>.)"
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:258
-#, fuzzy, no-c-format
-msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
"execute a query against the <literal>Payment</literal> interface, for "
"example <literal>from Payment</literal>, Hibernate automatically returns "
@@ -623,21 +459,19 @@
msgstr ""
"Mais uma vez, nós não mencionamos <literal>Payment</literal> explicitamente. "
"Se nós executarmos uma pesquisa em cima da interface <literal>Payment</"
-"literal> â por exemplo, <literal>from Payment</literal> â o Hibernate "
-"retorna automaticamente instâncias de <literal>CreditCardPayment</literal> "
-"(e suas subclasses, desde que elas também implementem <literal>Payment</"
-"literal>), <literal>CashPayment</literal> e <literal>ChequePayment</literal> "
-"mas não as instâncias de <literal>NonelectronicTransaction</literal>."
+"literal>, por exemplo, <literal>from Payment</literal> â o Hibernate retorna "
+"automaticamente instâncias de <literal>CreditCardPayment</literal> (e suas "
+"subclasses, desde que elas também implementem <literal>Payment</literal>), "
+"<literal>CashPayment</literal> e <literal>ChequePayment</literal> mas não as "
+"instâncias de <literal>NonelectronicTransaction</literal>. "
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "Limitações"
#. Tag: para
-#: inheritance_mapping.xml:275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
"per concrete-class mapping strategy. There are somewhat less restrictive "
@@ -646,204 +480,192 @@
"Existem certas limitações para a abordagem do \"polimorfismo implÃcito\" "
"comparada com a estratégia de mapeamento da tabela por classe concreta. "
"Existe uma limitação um tanto menos restritiva para mapeamentos <literal><"
-"union-subclass></literal>."
+"union-subclass></literal>. "
#. Tag: para
-#: inheritance_mapping.xml:282
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
-"A tabela seguinte demonstra as limitações do mapeamento de tabela por classe "
+"A seguinte tabela demonstra as limitações do mapeamento de tabela por classe "
"concreta e do polimorfismo implÃcito no Hibernate."
#. Tag: title
-#: inheritance_mapping.xml:288
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Features of inheritance mappings"
-msgstr "Features of inheritance mappings"
+msgstr "Mapeamento de Herança "
#. Tag: entry
-#: inheritance_mapping.xml:301
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Inheritance strategy"
-msgstr "Estratégia de Herança"
+msgstr "Mapeamento de Herança "
#. Tag: entry
-#: inheritance_mapping.xml:302
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-one"
-msgstr "muitos-para-um Polimórfico"
+msgstr "muitos-para-um Polimórfico: <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
-msgstr "um-para-um Polimórfico"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
-msgstr "um-para-muitos Polimórfico"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:305
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-many"
-msgstr "muitos-para-muitos Polimórfico"
+msgstr "muitos-para-um Polimórfico: <code><any></code>"
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
-msgstr "Pesquisas Polimórficas"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
-msgstr "Joins polimórficos"
+msgstr ""
#. Tag: entry
-#: inheritance_mapping.xml:309
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Outer join fetching"
-msgstr "Outer join fetching"
+msgstr "A busca por união externa é suportada."
#. Tag: entry
-#: inheritance_mapping.xml:314
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per class-hierarchy"
-msgstr "table per class-hierarchy"
+msgstr "tabela por hierarquia de classes"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
+#. Tag: entry
#, no-c-format
-msgid "<many-to-one>"
-msgstr "<many-to-one>"
+msgid "<literal><many-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
+#. Tag: entry
#, no-c-format
-msgid "<one-to-one>"
-msgstr "<one-to-one>"
+msgid "<literal><one-to-one></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
+#. Tag: entry
#, no-c-format
-msgid "<one-to-many>"
-msgstr "<one-to-many>"
+msgid "<literal><one-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
+#. Tag: entry
#, no-c-format
-msgid "<many-to-many>"
-msgstr "<many-to-many>"
+msgid "<literal><many-to-many></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
+#. Tag: entry
#, no-c-format
-msgid "s.get(Payment.class, id)"
-msgstr "s.get(Payment.class, id)"
+msgid "<literal>s.get(Payment.class, id)</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
+#. Tag: entry
#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+msgid "<literal>from Payment p</literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
-#, no-c-format
-msgid "from Order o join o.payment p"
-msgstr "from Order o join o.payment p"
-
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
-#, no-c-format
-msgid "supported"
-msgstr "supported"
-
#. Tag: entry
-#: inheritance_mapping.xml:325
#, fuzzy, no-c-format
-msgid "<entry>table per subclass</entry>"
+msgid "<literal>from Order o join o.payment p</literal>"
+msgstr "Junções polimórficas: <code>from Order o join o.payment p</code>"
+
+#. Tag: entry
+#, no-c-format
+msgid "<emphasis>supported</emphasis>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"tabela por subclasse\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"table per subclass"
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
-msgstr "table per concrete-class (union-subclass)"
+msgstr "tabela por classe concreta (subclasses de união)"
#. Tag: entry
-#: inheritance_mapping.xml:339
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
"literal> only)"
msgstr ""
+"Um-para-muito polimórfico: <literal><one-to-many></literal> (somente "
+"para <literal>inverse=\"true\"</literal>)"
#. Tag: entry
-#: inheritance_mapping.xml:347
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
-msgstr "table per concrete class (implicit polymorphism)"
+msgstr "tabela por classe concreta (polimorfismo implÃcito) "
-#. Tag: literal
-#: inheritance_mapping.xml:348
+#. Tag: entry
#, no-c-format
-msgid "<any>"
-msgstr "<any>"
+msgid "<literal><any></literal>"
+msgstr ""
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
-msgstr "not supported"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
+#. Tag: entry
#, no-c-format
-msgid "<many-to-any>"
-msgstr "<many-to-any>"
+msgid "<literal><many-to-any></literal>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:352
-#, no-c-format
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>load()</literal> ou <literal>get()</literal> polimórfico: <code>s."
+"criarCritério(Payment.class).adicionar( Restrições.idEq(id) ).Resultado único"
+"()</code>"
-#~ msgid "load()/get()"
-#~ msgstr "load()/get()"
+#~ msgid "table per class-heirarchy"
+#~ msgstr "tabela por hierarquia de classe"
-#~ msgid "Polymorphic <placeholder-1/>"
-#~ msgstr "<placeholder-1/> Polimórfico"
+#~ msgid "Polymorphic many-to-one: <code><many-to-one></code>"
+#~ msgstr "Muitos-para-um polimórfico: <code><many-to-one></code>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#~ msgid "Polymorphic one-to-one: <code><one-to-one></code>"
+#~ msgstr "Um-para-um polimórfico: <code><one-to-one></code>"
-#~ msgid "<placeholder-1/> (for <placeholder-2/> only)"
-#~ msgstr "<placeholder-1/> (for <placeholder-2/> only)"
+#~ msgid "Polymorphic one-to-many: <code><one-to-many></code>"
+#~ msgstr "Um-para-muitos polimórfico: <code><one-to-many></code>"
+
+#~ msgid "Polymorphic many-to-many: <code><many-to-many></code>"
+#~ msgstr "Muitos-para-muitos polimórfico: <code><many-to-many></code>"
+
+#~ msgid ""
+#~ "Polymorphic <literal>load()</literal> or <literal>get()</literal>: "
+#~ "<code>s.get(Payment.class, id)</code>"
+#~ msgstr ""
+#~ "<literal>load()</literal> ou <literal>get()</literal> polimórfico: "
+#~ "<code>s.get(Payment.class, id)</code>>"
+
+#~ msgid "Polymorphic queries: <code>from Payment p</code>"
+#~ msgstr "Consultas polimórficas: <code>from Payment p</code>"
+
+#~ msgid ""
+#~ "Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and "
+#~ "outer join fetching are not supported."
+#~ msgstr ""
+#~ "Um-para-um polimórfico, um-para-muitos polimórfico, junções polimórficas "
+#~ "e a busca de união externa não são suportadas."
+
+#, fuzzy
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "tabela por subclasse"
+
+#, fuzzy
+#~ msgid "<term>table per subclass</term>"
+#~ msgstr "tabela por subclasse"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,51 +1,153 @@
+# translation of performance.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: performance\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 17:17+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
-msgstr "Aumentando a performance"
+msgstr "Aumentando o desempenho"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
-msgstr "Estratégias de Fetching"
+msgstr "Estratégias de Busca "
#. Tag: para
-#: performance.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
"associated objects if the application needs to navigate the association. "
"Fetch strategies can be declared in the O/R mapping metadata, or over-ridden "
"by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
-"Uma <emphasis>estratégia de fetching</emphasis> é a estratégia que o "
-"Hibernate irá usar para buscar objetos associados se a aplicação precisar "
-"navegar pela associação. Estratégias de Fetch podem ser declaradas nos "
-"metadados de mapeamento O/R, ou sobrescritos por uma query HQL ou query com "
-"<literal>Criteria</literal>."
+"Uma <emphasis>estratégia de busca</emphasis> é a estratégia que o Hibernate "
+"irá usar para recuperar objetos associados se a aplicação precisar navegar "
+"pela associação. Estratégias de Busca podem ser declaradas nos metadados de "
+"mapeamento O/R, ou sobrescritos por uma consulta HQL ou consulta com "
+"<literal>Criteria</literal>. "
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
-msgstr "Hibernate3 define as seguintes estratégias de fetching:"
+msgstr "Hibernate3 define as seguintes estratégias de busca:"
#. Tag: para
-#: performance.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
"instance or collection in the same <literal>SELECT</literal>, using an "
@@ -53,11 +155,10 @@
msgstr ""
"<emphasis>Join fetching</emphasis> - o Hibernate busca o objeto ou coleção "
"associada no mesmo <literal>SELECT</literal>, usando um <literal>OUTER JOIN</"
-"literal>."
+"literal>. "
#. Tag: para
-#: performance.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
"used to retrieve the associated entity or collection. Unless you explicitly "
@@ -66,12 +167,11 @@
msgstr ""
"<emphasis>Select fetching</emphasis> - um segundo <literal>SELECT</literal> "
"é usado para buscar a entidade ou coleção associada. A menos que você "
-"desabilite lazy fetching especificando <literal>lazy=\"false\"</literal>, "
-"esse segundo SELECT será executado apenas quando você acessar a associação."
+"desabilite a busca lazy, especificando <literal>lazy=\"false\"</literal>, "
+"esse segundo SELECT será executado apenas quando você acessar a associação. "
#. Tag: para
-#: performance.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
"is used to retrieve the associated collections for all entities retrieved in "
@@ -80,60 +180,51 @@
"be executed when you access the association."
msgstr ""
"<emphasis>Subselect fetching</emphasis> - um segundo <literal>SELECT</"
-"literal> será usado para buscar as coleções associadas de todas as entidades "
-"buscadas na query ou fetch anterior. A menos que você desabilite lazy "
-"fetching especificando <literal>lazy=\"false\"</literal>, esse segundo "
-"SELECT será executado apenas quando você acessar a associação."
+"literal> será usado para recuperar as coleções associadas de todas as "
+"entidades recuperadas em uma consulta ou busca anterior. A menos que você "
+"desabilite a busca lazy especificando <literal>lazy=\"false\"</literal>, "
+"esse segundo SELECT será executado apenas quando você acessar a associação. "
#. Tag: para
-#: performance.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
"fetching. Hibernate retrieves a batch of entity instances or collections in "
"a single <literal>SELECT</literal> by specifying a list of primary or "
"foreign keys."
msgstr ""
-"<emphasis>Batch fetching</emphasis> - uma opção de otimização para o Select "
-"Fetching â O Hibernate busca um lote de instâncias ou entidades usando um "
-"único <literal>SELECT</literal>, especificando uma lista de chaves primárias "
-"ou chaves estrangeiras."
+"<emphasis>Batch fetching</emphasis> - uma opção de otimização para "
+"selecionar a busca. O Hibernate recupera um lote de instâncias ou entidades "
+"usando um único <literal>SELECT</literal>, especificando uma lista de chaves "
+"primárias ou chaves externas."
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
msgstr "O Hibernate distingue também entre:"
#. Tag: para
-#: performance.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
"attribute is fetched immediately when the owner is loaded."
msgstr ""
-"<emphasis>Immediate fetching</emphasis> - uma associação, coleção ou "
-"atributo é buscado como ela é carregada (Qual SQL é usado). Não se confuda "
-"com eles! Nós usamos fetch para melhorar a performance. Nós podemos usar "
-"lazy para definir um contrato para qual dado é sempre disponÃvel em qualquer "
-"instância desanexada de uma classe qualquer. imediatamente, quando o pai é "
-"carregado."
+"<emphasis>Immediate fetching</emphasis> - uma associação, coleção ou função "
+"é imediatamente recuperada, quando o proprietário for carregado. "
#. Tag: para
-#: performance.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
"the application invokes an operation upon that collection. This is the "
"default for collections."
msgstr ""
-"<emphasis>Lazy collection fetching</emphasis> - a coleção é buscada quando a "
-"aplicação invoca uma operação sobre aquela coleção (Esse é o padrão para "
-"coleções)"
+"<emphasis>Lazy collection fetching</emphasis> - a coleção é recuperada "
+"quando a aplicação invoca uma operação sobre aquela coleção. Esse é o padrão "
+"para coleções."
#. Tag: para
-#: performance.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
"of the collection are accessed from the database as needed. Hibernate tries "
@@ -141,25 +232,24 @@
"is suitable for large collections."
msgstr ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis> - elementos "
-"individuais de uma coleção são acessados do banco de dados quando preciso. O "
-"Hibernate tenta não buscar a coleção inteira dentro da memória ao menos que "
-"seja absolutamente preciso. (indicado para coleções muito grandes)"
+"individuais de uma coleção são acessados a partir do banco de dados quando "
+"necessário. O Hibernate tenta não buscar a coleção inteira dentro da memória "
+"a menos que seja absolutamente necessário. Isto é indicado para coleções "
+"muito grandes."
#. Tag: para
-#: performance.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
"when a method other than the identifier getter is invoked upon the "
"associated object."
msgstr ""
-"<emphasis>Proxy fetching</emphasis> - uma associação de um valor é carregada "
+"<emphasis>Proxy fetching</emphasis>: uma associação de um valor é carregada "
"quando um método diferente do getter do identificador é invocado sobre o "
"objeto associado."
#. Tag: para
-#: performance.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
"fetched when the instance variable is accessed. Compared to proxy fetching, "
@@ -168,28 +258,26 @@
"visible to the application. This approach requires buildtime bytecode "
"instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>\"No-proxy\" fetching</emphasis> - uma associação de um valor é "
-"carregada quando a variável da instância é carregada. Comparada com a proxy "
-"fetching, esse método é menos preguiçoso (lazy)(a associação é carregada "
-"somente quando o identificador é acessada) mas é mais transparente, já que "
-"não há proxies visÃveis para a aplicação. Esse método requer instrumentação "
-"de bytecodes em build-time e é raramente necessário."
+"<emphasis>\"No-proxy\" fetching</emphasis> - uma associação de um único "
+"valor é recuperada quando a variável da instância é acessada. Comparada à "
+"busca proxy, esse método é menos preguiçoso (lazy); a associação é buscada "
+"até mesmo quando somente o identificador é acessado. Ela é mais "
+"transparente, já que não há proxies visÃveis para a aplicação. Esse método "
+"requer instrumentação de bytecodes em build-time e é raramente necessário."
#. Tag: para
-#: performance.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
"association is fetched when the instance variable is accessed. This approach "
"requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>Lazy attribute fetching</emphasis> - um atributo ou associação de "
-"um valor é carregada quanto a varÃavel da instância é acessada. Esse método "
+"<emphasis>Lazy attribute fetching</emphasis>: um atributo ou associação de "
+"um valor é buscado quanto a varÃavel da instância é acessada. Esse método "
"requer instrumentação de bytecodes em build-time e é raramente necessário."
#. Tag: para
-#: performance.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
"association fetched and <emphasis>how</emphasis> is it fetched. It is "
@@ -199,21 +287,19 @@
"class."
msgstr ""
"Nós temos aqui duas noções ortogonais: <emphasis>quando</emphasis> a "
-"associação é carregada e <emphasis>como </emphasis> ela é carregada (Qual "
-"SQL é usado). Não se confuda com eles! Nós usamos <literal>fetch</literal> "
-"para melhorar a performance. Nós podemos usar lazy para definir um contrato "
+"associação é buscada e <emphasis>como</emphasis> ela é buscada. à importante "
+"que você não os confuda. Nós usamos <literal>fetch</literal> para ajustar o "
+"desempenho. Podemos usar <literal>lazy</literal> para definir um contrato "
"para qual dado é sempre disponÃvel em qualquer instância desconectada de uma "
-"classe qualquer."
+"classe particular."
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
-msgstr "Inicializando coleções e proxies"
+msgstr "Trabalhando com associações preguiçosas (lazy)"
#. Tag: para
-#: performance.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
"proxy fetching for single-valued associations. These defaults make sense for "
@@ -221,53 +307,31 @@
msgstr ""
"Por padrão, o Hibernate3 usa busca preguiçosa para coleções e busca "
"preguiçosa com proxy para associações de um valor. Esses padrões fazem "
-"sentido para quase todas as associações em quase todas a aplicações."
+"sentido para quase todas as associações em quase todas a aplicações. "
#. Tag: para
-#: performance.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
"will use the batch fetch optimization for lazy fetching. This optimization "
"can also be enabled at a more granular level."
msgstr ""
-"<emphasis>Veja:</emphasis> se voce setar <literal>hibernate."
-"default_batch_fetch_size</literal>, O Hibernate irá usar otimização de "
-"carregamento em lote para o carregamento preguiçoso(Essa otimização pode ser "
-"também habilitada em um nÃvel mais fino)."
+"Se você ajustar <literal>hibernate. default_batch_fetch_size</literal>, o "
+"Hibernate irá usar otimização de busca em lote para a busca preguiçosa. Essa "
+"otimização pode ser também habilitada em um nÃvel mais fino."
#. Tag: para
-#: performance.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
"an open Hibernate session will result in an exception. For example:"
msgstr ""
-"Porém, a busca preguiçosa tem um problema que você precisar saber. Acesso a "
-"associações preguiçosas fora do contexto de uma sessão aberta do Hibernate "
-"irá resultar numa exceção. Por exemplo:"
+"Perceba que o acesso a associações preguiçosas fora do contexto de uma "
+"sessão aberta do Hibernate irá resultar numa exceção. Por exemplo:"
-#. Tag: programlisting
-#: performance.xml:164
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:166
-#, fuzzy, no-c-format
-msgid ""
"Since the permissions collection was not initialized when the "
"<literal>Session</literal> was closed, the collection will not be able to "
"load its state. <emphasis>Hibernate does not support lazy initialization for "
@@ -275,14 +339,13 @@
"from the collection to just before the transaction is committed."
msgstr ""
"Como a coleção de permissões não foi inicializada quando a <literal>Session</"
-"literal> foi fechada, a coleção não poderá carregar o seu estado. O "
-"Hibernate não suporta inicialização preguiçosa para objetos desconectados. "
-"Para consertar isso, é necessário mover o código que carrega a coleção para "
-"antes da transação ser comitada."
+"literal> for fechada, a coleção não poderá carregar o seu estado. "
+"<emphasis>O Hibernate não suporta inicialização preguiçosa para objetos "
+"desconectados</emphasis>. Para consertar isso, é necessário mover o código "
+"que carrega a coleção para logo antes da transação ser submetida. "
#. Tag: para
-#: performance.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
"specifying <literal>lazy=\"false\"</literal> for the association mapping. "
@@ -296,11 +359,10 @@
"associação. Porém, é pretendido que a inicialização preguiçosa seja usada "
"por quase todas as coleções e associações. Se você definir muitas "
"associações não preguiçosas em seu modelo de objetos, o Hibernate irá "
-"precisar carregar o banco de dados inteiro na memória em cada transação!"
+"precisar buscar no banco de dados inteiro da memória em cada transação."
#. Tag: para
-#: performance.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
"instead of select fetching in a particular transaction. We will now explain "
@@ -308,48 +370,27 @@
"choosing a fetch strategy are identical for single-valued associations and "
"collections."
msgstr ""
-"Por outro lado, nós geralmente escolhemos join fetching (que é não "
-"preguiçosa por natureza) ao invés de select fetching em uma transação "
-"particular. Nós iremos ver como customizar a estratégoa de busca. No "
-"Hibernate3, os mecanismos para escolher a estratégia de fetching são "
-"identicos para as associações simples e para coleções."
+"Por outro lado, nós geralmente escolhemos a busca de união (que não é "
+"preguiçosa por natureza) ao invés do selecionar busca em uma transação "
+"particular. Nós agora veremos como customizar a estratégia de busca. No "
+"Hibernate3, os mecanismos para escolher a estratégia de busca são idênticos "
+"para as associações de valor único e para coleções."
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr "Personalizando as estratégias de busca"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
"problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
-"O select fetching (o padrão) é extremamente vunerável para N+1 problemas em "
-"select, então nós iremos querer habilitar o join fetching no documento de "
-"mapeamento:"
+"O padrão selecionar busca, é extremamente vunerável aos problemas de seleção "
+"N+1, então habilitaremos a busca de união no documento de mapeamento:"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
@@ -359,46 +400,40 @@
"afeta:"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
msgstr "recupera via <literal>get()</literal> ou <literal>load()</literal>"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr ""
"Recuperações que acontecem implicitamente quando navegamos por uma associação"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
-msgstr "<literal>Criteria</literal> queries"
+msgstr "consultas por <literal>Criteria</literal> "
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
-msgstr "buscas por HQL se buscar por <literal>subselect</literal> for usado"
+msgstr "consultas HQL se a busca por <literal>subselect</literal> for usada"
#. Tag: para
-#: performance.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
"guaranteed to be loaded into memory. This might, however, result in several "
"immediate selects being used to execute a particular HQL query."
msgstr ""
-"Independentemente da estratégia de busca que você usar, o grafo não "
-"preguiçoso definido será garantidamente carregado na memória. Note que isso "
-"irá resultar em diversos selects imediatos sendo usados em um HQL em "
-"particular."
+"Independentemente da estratégia de busca que você usar, o gráfico não "
+"preguiçoso definido será certamente carregado na memória. Note que isso irá "
+"resultar em diversas seleções imediatas sendo usadas para rodar uma consulta "
+"HQL em particular."
#. Tag: para
-#: performance.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
"keep the default behavior, and override it for a particular transaction, "
@@ -407,64 +442,49 @@
"the <literal>Criteria</literal> query API, you would use "
"<literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
-"Usualmente não usamos documentos de mapeamento para customizar as buscas. Ao "
-"invés disso, nós deixamos o comportamento padrão e sobrescrevemos isso em "
+"Geralmente, não usamos documentos de mapeamento para customizar as buscas. "
+"Ao invés disso, nós deixamos o comportamento padrão e sobrescrevemos isso em "
"uma transação em particular, usando <literal>left join fetch</literal> no "
"HQL. Isso diz ao Hibernate para buscar a associação inteira no primeiro "
-"select, usando um outer join. Na API de busca <literal>Criteria</literal>, "
-"você irá usar <literal>setFetchMode(FetchMode.JOIN)</literal>."
+"select, usando uma união externa. Na API de busca <literal>Criteria</"
+"literal>, você irá usar <literal>setFetchMode(FetchMode.JOIN)</literal>."
#. Tag: para
-#: performance.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
"or <literal>load()</literal>, you can use a <literal>Criteria</literal> "
"query. For example:"
msgstr ""
"Se você quiser mudar a estratégia de busca usada pelo <literal>get()</"
-"literal> ou <literal>load()</literal>, simplesmente use uma query "
-"<literal>Criteria</literal>, por exemplo:"
+"literal> ou <literal>load()</literal>, simplesmente use uma consulta por "
+"<literal>Criteria</literal>, por exemplo: "
-#. Tag: programlisting
-#: performance.xml:253
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:255
-#, fuzzy, no-c-format
-msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
"\"."
msgstr ""
-"(Isto é o equivalente do Hibernate para o que algumas soluções ORM chamam de "
-"\"plano de busca\")"
+"Isto é o equivalente do Hibernate para o que algumas soluções ORM chamam de "
+"\"plano de busca\"."
#. Tag: para
-#: performance.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
"second-level cache."
msgstr ""
"Um meio totalmente diferente de evitar problemas com selects N+1 é usar um "
-"cache de segundo nÃvel."
+"cache de segundo nÃvel. "
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
-msgstr "Proxies de associação single-ended"
+msgstr "Proxies de associação final único"
#. Tag: para
-#: performance.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
"implementation of persistent collections. However, a different mechanism is "
@@ -474,28 +494,26 @@
"accessed via the CGLIB library."
msgstr ""
"A recuperação preguiçosa para coleções é implementada usando uma "
-"implementação própria do Hibernate para coleções persistentes. Porém, um "
-"mecanismo diferente é necessário para comportamento preguiçoso para "
-"associações de um lado só. A entidade alvo da associação precisa usar um "
+"implementação própria do Hibernate para coleções persistentes. Porém, é "
+"necessário um mecanismo diferente para comportamento preguiçoso em "
+"associações de final único. A entidade alvo da associação precisa usar um "
"proxy. O Hibernate implementa proxies para inicialização preguiçosa em "
-"objetos persistentes usando manipulação de bytecode (via a excelente "
-"biblioteca CGLIB)."
+"objetos persistentes usando manipulação de bytecode, através da excelente "
+"biblioteca CGLIB. "
#. Tag: para
-#: performance.xml:277
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
"classes and uses them to enable lazy fetching of <literal>many-to-one</"
"literal> and <literal>one-to-one</literal> associations."
msgstr ""
"Por padrão, o Hibernate3 gera proxies (na inicialização) para todas as "
-"classes persistentes que usem eles para habilitar recuperaçãopreguiçosa de "
-"associações <literal>many-to-one</literal> e <literal>one-to-one</literal>."
+"classes persistentes que os usem para habilitar recuperação preguiçosa de "
+"associações <literal>many-to-one</literal> e <literal>one-to-one</literal>. "
#. Tag: para
-#: performance.xml:283
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
"that class, with the <literal>proxy</literal> attribute. By default, "
@@ -503,80 +521,39 @@
"implement a default constructor with at least package visibility. This "
"constructor is recommended for all persistent classes</emphasis>."
msgstr ""
-"O arquivo de mapeamento deve declaram uma interface para usar como interface "
-"de proxy para aquela classe, com o atributo <literal>proxy</literal>. Por "
+"O arquivo de mapeamento deve declarar uma interface para usar como interface "
+"de proxy para aquela classe, com a função <literal>proxy</literal>. Por "
"padrão, o Hibernate usa uma subclasse dessa classe. <emphasis>Note que a "
"classe a ser usada via proxy precisa implementar o construtor padrão com "
"pelo menos visibilidade de package. Nós recomendamos esse construtor para "
-"todas as classes persistentes!</emphasis>"
+"todas as classes persistentes</emphasis>."
#. Tag: para
-#: performance.xml:290
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
"polymorphic classes.For example:"
msgstr ""
-"Existe alguns truques que você deve saber quando extender esse comportamento "
-"para classes polimórficas, dessa maneira:"
+"Existe alguns truques que você deve saber quando estender esse comportamento "
+"para classes polimórficas. Por exemplo:"
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
"<literal>DomesticCat</literal>, even if the underlying instance is an "
"instance of <literal>DomesticCat</literal>:"
msgstr ""
-"Primeiramente, instâncias de <literal>Cat</literal> nunca seráo convertidas "
+"Primeiramente, instâncias de <literal>Cat</literal> nunca serão convertidas "
"para <literal>DomesticCat</literal>, mesmo que a instância em questão seja "
-"uma estância de <literal>DomesticCat</literal>:"
+"uma instância de <literal>DomesticCat</literal>:"
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
-msgstr "Ã possÃvel quebrar o proxy <literal>==</literal>."
+msgstr "E, segundo, é possÃvel quebrar o proxy <literal>==</literal>:"
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
@@ -584,44 +561,33 @@
"still be the same object:"
msgstr ""
"Porém a situação não é tão ruim como parece. Mesmo quando temos duas "
-"referências para objetos proxies diferentes, a instância deles será o mesmo "
-"objeto"
+"referências para objetos proxies diferentes, a instância adjacente será do "
+"mesmo objeto:"
-#. Tag: programlisting
-#: performance.xml:315
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:317
-#, fuzzy, no-c-format
-msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
"a class with any <literal>final</literal> methods."
msgstr ""
-"Terceiro, Você não pode usar um proxy CGLIB em uma classe <literal>final</"
-"literal> ou com qualquer método <literal>final</literal>."
+"E por terceiro, você não pode usar um proxy CGLIB em uma classe "
+"<literal>final</literal> ou com quaisquer métodos <literal>final</literal>."
#. Tag: para
-#: performance.xml:322
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
"(e.g. in initializers or default constructor), then those resources will "
"also be acquired by the proxy. The proxy class is an actual subclass of the "
"persistent class."
msgstr ""
-"Finalmente, se o seu objeto persistente adquirir qualquer recursto durante a "
-"instanciação (em inicializadores ou construtor padrão), então esses recursos "
-"serão adquiridos pelo proxy também. A classe de proxy é uma subclasse da "
-"classe persistente."
+"Finalmente, se o seu objeto persistente adquirir qualquer recurso durante a "
+"instanciação (ex. em inicializadores ou construtor padrão), então esses "
+"recursos serão adquiridos pelo proxy também. A classe de proxy é uma "
+"subclasse da classe persistente. "
#. Tag: para
-#: performance.xml:328
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
"inheritance model. To avoid these problems your persistent classes must each "
@@ -631,106 +597,77 @@
"<literal>DomesticCatImpl</literal> implements the interface "
"<literal>DomesticCat</literal>. For example:"
msgstr ""
-"Esses problemas são todos devido a limitação fundamental do modelo de "
-"herança simples do Java. Se você quiser evitar esse problemas em suas "
-"classes persistentes você deve imeplementar uma interface que declare seus "
-"métodos de negócio. Você deve especificar essas interfaces no arquivo de "
-"mapeamento. Ex:"
+"Esses problemas se dão devido à limitação originária do modelo de herança "
+"simples do Java. Se você quiser evitar esses problemas em suas classes "
+"persistentes você deve implementar uma interface que declare seus métodos "
+"comerciais. Você deve especificar essas interfaces no arquivo de mapeamento "
+"onde <literal>CatImpl</literal> implementa a interface <literal>Cat</"
+"literal> e <literal>DomesticCatImpl</literal> implementa a interface "
+"<literal>DomesticCat</literal>. Por exemplo: "
-#. Tag: programlisting
-#: performance.xml:336
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:338
-#, fuzzy, no-c-format
-msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
"<literal>DomesticCat</literal> can be returned by <literal>load()</literal> "
"or <literal>iterate()</literal>."
msgstr ""
-"Primeiramente, instâncias de <literal>Cat</literal> nunca seráo convertidas "
-"para <literal>DomesticCat</literal>, mesmo que a instância em questão seja "
-"uma estância de <literal>DomesticCat</literal>:"
+"Então, os proxies para instâncias de <literal>Cat</literal> e "
+"<literal>DomesticCat</literal> podem ser retornadas pelo <literal>load()</"
+"literal> ou <literal>iterate()</literal>."
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: performance.xml:347
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
-msgstr "<literal>Criteria</literal> queries"
+msgstr "<literal>list()</literal> normalmente retorna proxies."
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
"properties to be of type <literal>Cat</literal>, not <literal>CatImpl</"
"literal>."
msgstr ""
-"Relacionamentos são também carregados preguiçosamente. Isso significa que "
-"você precisa declarar qualquer propriedade como sendo do tipo <literal>Cat</"
-"literal>, e não <literal>CatImpl</literal>."
+"Relacionamentos são também inicializados de forma preguiçosa. Isso significa "
+"que você precisa declarar qualquer propriedade como sendo do tipo "
+"<literal>Cat</literal>, e não <literal>CatImpl</literal>."
#. Tag: para
-#: performance.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
msgstr ""
-"Algumas operações <emphasis>não</emphasis> requerem inicialização por proxy:"
+"Algumas operações <emphasis>não</emphasis> requerem inicialização por proxy: "
#. Tag: para
-#: performance.xml:363
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
"<literal>equals()</literal>"
msgstr ""
-"<literal>equals()</literal>, se a classe persistente não sobrescrever "
+"<literal>equals()</literal>: se a classe persistente não sobrescrever "
"<literal>equals()</literal>"
#. Tag: para
-#: performance.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
"<literal>hashCode()</literal>"
msgstr ""
-"<literal>hashCode()</literal>, se a classe persistente não sobrescrever "
+"<literal>hashCode()</literal>: se a classe persistente não sobrescrever "
"<literal>hashCode()</literal>"
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
msgstr "O método getter do identificador"
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
@@ -740,8 +677,7 @@
"<literal>equals()</literal> ou <literal>hashCode()</literal>."
#. Tag: para
-#: performance.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
"<literal>lazy=\"proxy\"</literal>, you can avoid problems associated with "
@@ -751,18 +687,16 @@
"Escolhendo <literal>lazy=\"no-proxy\"</literal> ao invés do padrão "
"<literal>lazy=\"proxy\"</literal>, podemos evitar problemas associados com "
"typecasting. Porém, iremos precisar de instrumentação de bytecode em tempo "
-"de compilação e todas as operações irão resultar em iniciazações de proxy "
-"imediatas."
+"de compilação e todas as operações irão resultar em inicializações de proxy "
+"imediatas. "
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
msgstr "Inicializando coleções e proxies"
#. Tag: para
-#: performance.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
"if an uninitialized collection or proxy is accessed outside of the scope of "
@@ -770,13 +704,12 @@
"or having the reference to the proxy is in the detached state."
msgstr ""
"Será lançada uma <literal>LazyInitializationException</literal> se uma "
-"coleção não inicializada ou proxy é acessado fora do escopo da "
+"coleção não inicializada ou proxy for acessado fora do escopo da "
"<literal>Session</literal>, isto é, quando a entidade que contém a coleção "
-"ou tem a referência ao proxy estiver no estado destachado."
+"ou que possua a referência ao proxy estiver no estado desanexado. "
#. Tag: para
-#: performance.xml:404
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
"<literal>Session</literal>. You can force initialization by calling "
@@ -784,15 +717,14 @@
"literal>, for example. However, this can be confusing to readers of the code "
"and it is not convenient for generic code."
msgstr ""
-"Algumas vezes precisamos garantir qie o proxy ou coleção é inicializado "
-"antes de se fechar a <literal>Session</literal>. Claro que sempre podemos "
+"Algumas vezes precisamos garantir que o proxy ou coleção é inicializado "
+"antes de fechar a <literal>Session</literal>. Claro que sempre podemos "
"forçar a inicialização chamando <literal>cat.getSex()</literal> ou "
"<literal>cat.getKittens().size()</literal>, por exemplo. Mas isto parece "
-"confuso para quem lê o código e não é conveniente para códigos genéricos."
+"confuso para quem lê o código e não é conveniente para códigos genéricos. "
#. Tag: para
-#: performance.xml:411
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
"<literal>Hibernate.isInitialized()</literal>, provide the application with a "
@@ -803,17 +735,15 @@
"literal> has a similar effect for the collection of kittens."
msgstr ""
"Os métodos estáticos <literal>Hibernate.initialize()</literal> e "
-"<literal>Hibernate.isInitialized()</literal> possibilitam a aplicação uma "
-"maneira conveniente de trabalhar com coleções inicializadas preguiçosamente "
-"e proxies. <literal>Hibernate.initialize(cat)</literal> irá forçar a "
-"inicialização de um proxy, <literal>cat</literal>, contanto que a "
-"<literal>Session</literal> esteja ainda aberta. <literal>Hibernate.initialize"
-"( cat.getKittens() )</literal> tem um efeito similar para a coleção de "
-"kittens."
+"<literal>Hibernate.isInitialized()</literal> favorecem a aplicação para "
+"trabalhar com coleções ou proxies inicializados de forma preguiçosa. O "
+"<literal>Hibernate.initialize(cat)</literal> irá forçar a inicialização de "
+"um proxy, <literal>cat</literal>, contanto que a <literal>Session</literal> "
+"esteja ainda aberta. <literal>Hibernate.initialize (cat.getKittens() )</"
+"literal> tem um efeito similar para a coleção de kittens. "
#. Tag: para
-#: performance.xml:420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
"required collections and proxies have been loaded. In some application "
@@ -823,17 +753,17 @@
"<literal>Session</literal> is open when a collection is initialized. There "
"are two basic ways to deal with this issue:"
msgstr ""
-"Outra opção é manter a <literal>Session</literal> aberta até que todas as "
-"coleções e proxies necessários sejam carregados. Em algumas arquiteturas de "
-"aplicações, particularmente onde o código que acessa os dados usando "
-"Hibernate e o código que usa os dados estão em diferentes camadas da "
-"aplicação ou diferentes processos fÃsicos, será um problema garantir que a "
-"<literal>Session</literal> esteja aberta quando uma coleção for "
-"inicializada. Existem dois caminhos básicos para lidar com esse problema:"
+"Uma outra opção é manter a <literal>Session</literal> aberta até que todas "
+"as coleções e os proxies necessários sejam carregados. Em algumas "
+"arquiteturas de aplicações, particularmente onde o código que acessa os "
+"dados usando Hibernate e o código que os usa, se encontram em diferentes "
+"camadas da aplicação ou diferentes processos fÃsicos, será um problema "
+"garantir que a <literal>Session</literal> esteja aberta quando uma coleção "
+"for inicializada. Existem dois caminhos básicos para lidar com esse "
+"problema: "
#. Tag: para
-#: performance.xml:431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
"<literal>Session</literal> only at the end of a user request, once the "
@@ -845,19 +775,18 @@
"rendering of the view. See the Hibernate Wiki for examples of this \"Open "
"Session in View\" pattern."
msgstr ""
-"Em aplicações web, um filtro servlet pode ser usado para fechar a "
-"<literal>Session</literal> somente no final da requisição do usuário, já que "
-"a renderização da visão estará completa (o pattern <emphasis>Open Session In "
-"View</emphasis>). Claro, que isto cria a necessidade de um correto manuseio "
-"de exceções na infraestrutura de sua aplicação. à vitalmente importante que "
-"a <literal>Session</literal> esteja fechada e a transação terminada antes de "
+"Em uma aplicações web, um filtro servlet pode ser usado para fechar a "
+"<literal>Session</literal> somente no final da requisição do usuário, quando "
+"a renderização da view estiver completa (o modelo <emphasis>Abrir Sessão em "
+"View</emphasis>). Claro, que isto demanda uma exatidão no manuseio de "
+"exceções na infraestrutura de sua aplicação. à extremamente importante que a "
+"<literal>Session</literal> seja fechada e a transação terminada antes de "
"retornar para o usuário, mesmo que uma exceção ocorra durante a renderização "
-"da view. Veja o Wiki do Hibernate para exemplos do pattern \"Open Session In "
-"View\""
+"da view. Veja o Wiki do Hibernate para exemplos do pattern \"Abrir Sessão em "
+"View\"."
#. Tag: para
-#: performance.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
"\"prepare\" all collections that the web tier needs before returning. This "
@@ -874,18 +803,18 @@
"Em uma aplicação com uma camada de negócios separada, a lógica de negócios "
"deve \"preparar\" todas as coleções que serão usadas pela camada web antes "
"de retornar. Isto sgnifica que a camada de negócios deve carregar todos os "
-"dados e retorná-los já inicializados para a camada de apresentação. "
-"Usualmente a aplicação chama <literal>Hibernate.initialize()</literal> para "
-"cada coleção que será usada pela camada web (essa chamada de método deve "
-"ocorrer antes da sessão ser fechada ou retornar a coleção usando uma "
-"consulta Hibernate com uma cláusula <literal>FETCH</literal> ou um "
-"<literal>FetchMode.JOIN</literal> na <literal>Criteria</literal>. Fica muito "
-"mais fácil se você adotar o pattern <emphasis>Command</emphasis> ao invés do "
-"<emphasis>Session Facade</emphasis>."
+"dados e retorná-los já inicializados para a camada de apresentação que é "
+"representada para um caso de uso particular. Geralmente, a aplicação chama "
+"<literal>Hibernate.initialize()</literal> para cada coleção que será usada "
+"pela camada web (essa chamada deve ocorrer antes da sessão ser fechada) ou "
+"retorna a coleção usando uma consulta Hibernate com uma cláusula "
+"<literal>FETCH</literal> ou um <literal>FetchMode.JOIN</literal> na "
+"<literal>Criteria</literal>. Fica muito mais fácil se você adotar o modelo "
+"<emphasis>Command</emphasis> ao invés do <emphasis>Session Facade</"
+"emphasis>. "
#. Tag: para
-#: performance.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
"literal> with <literal>merge()</literal> or <literal>lock()</literal> before "
@@ -893,42 +822,31 @@
"and certainly <emphasis>should</emphasis> not, do this automatically since "
"it would introduce impromptu transaction semantics."
msgstr ""
-"Você também pode anexar um objeto prevaimente carregado em uma nova "
-"<literal>Session</literal><literal>merge()</literal> or <literal>lock()</"
+"Você também pode anexar um objeto previamente carregado em uma nova "
+"<literal>Session</literal><literal>merge()</literal> ou <literal>lock()</"
"literal> antes de acessar coleções não inicializadas (ou outros proxies). O "
-"Hibernate não faz e certamente <literal>não deve</literal> isso "
-"automaticamente pois isso introduziria semantica em transações ad hoc."
+"Hibernate não faz e certamente <literal>não deve</literal> fazer isso "
+"automaticamente, pois isso introduziria semântica em transações impromptu."
#. Tag: para
-#: performance.xml:469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
"some information about it, like its size, for example, or a subset of the "
"data."
msgstr ""
-"As vezes você não quer inicializar uma coleção muito grande, mas precisa de "
-"algumas informações (como o tamanho) ou alguns de seus dados."
+"Ãs vezes você não quer inicializar uma coleção muito grande, mas precisa de "
+"algumas informações, como o mesmo tamanho, ou um subconjunto de seus dados."
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
"initializing it:"
msgstr ""
-"Você pode usar um filtro de coleção para saber seu tamanho sem a inicializar:"
+"Você pode usar um filtro de coleção para saber seu tamanho sem inicializá-la:"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
@@ -939,38 +857,27 @@
"algus dados de uma coleção eficientemente sem precisar inicializar a coleção "
"inteira:"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr "Usando busca em lote"
#. Tag: para
-#: performance.xml:492
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
"one proxy is accessed. Batch fetching is an optimization of the lazy select "
"fetching strategy. There are two ways you can configure batch fetching: on "
"the class level and the collection level."
msgstr ""
-"O Hibernate pode fazer uso eficiente de busca em lote, isto é, o Hibernate "
-"pode carregar diversos proxies não inicializados se um proxy é acessado (ou "
-"coleções. A busca em lote é uma otimização da estratégia de select "
-"fetching). Existe duas maneiras em que você pode usar busca em lote: no "
-"nÃvel da classe ou no nÃvel da coleção."
+"O Hibernate pode fazer uso eficiente de busca em lote, ou seja o Hibernate "
+"pode carregar diversos proxies não inicializados, se um proxy for acessado "
+"(ou coleções). A busca em lote é uma otimização da estratégia da busca de "
+"seleção lazy. Existem duas maneiras para você usar a busca em lote: no nÃvel "
+"da classe ou no nÃvel da coleção."
#. Tag: para
-#: performance.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
"following example: at runtime you have 25 <literal>Cat</literal> instances "
@@ -984,35 +891,26 @@
"mapping of <literal>Person</literal>:"
msgstr ""
"A recuperação em lote para classes/entidades é mais fácil de entender. "
-"Imagine que você tem a seguinte situação em tempo de execução: Você tem 25 "
+"Imagine que você tem a seguinte situação em tempo de execução: você tem 25 "
"instâncias de <literal>Cat</literal> carregadas em uma <literal>Session</"
-"literal>, cada <literal>Cat</literal> tem uma referência ao seu "
+"literal>, cada <literal>Cat</literal> possui uma referência ao seu "
"<literal>owner</literal>, que é da classe <literal>Person</literal>. A "
"classe <literal>Person</literal> é mapeada com um proxy, <literal>lazy=\"true"
-"\"</literal>. Se você iterar sobre todos os Cat's e chamar <literal>getOwner"
+"\"</literal>. Se você interar sobre todos os Cat's e chamar <literal>getOwner"
"()</literal> em cada, o Hibernate irá por padrão executar 25 comandos "
"<literal>SELECT()</literal>, para buscar os proxies de owners. Você pode "
"melhorar esse comportamento especificando um <literal>batch-size</literal> "
-"no mapeamento da classe <literal>Person</literal>:"
+"no mapeamento da classe <literal>Person</literal>: "
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
msgstr ""
-"O Hibernate irá executar agora apenas três consultas, buscando por vez, 10, "
-"10 e 5 Person."
+"O Hibernate irá executar agora apenas três consultas; o padrão é 10, 10, 5."
#. Tag: para
-#: performance.xml:514
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
"<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, "
@@ -1024,26 +922,14 @@
msgstr ""
"Você também pode habilitar busca em lote de uma coleção. Por exemplo, se "
"cada <literal>Person</literal> tem uma coleção preguiçosa de <literal>Cat</"
-"literal>s, e 10 pessoas estão já carregados em uma <literal>Sesssion</"
-"literal>, serão gerados 10 <literal>SELECT</literal>s ao se iterar todas as "
-"pessoas, um para cada chamada de <literal>getCats()</literal>.. Se você "
+"literal>s e 10 persons estão já carregadas em uma <literal>Session</"
+"literal>, serão gerados 10 <literal>SELECT</literal>s ao se interar todas as "
+"persons, um para cada chamada de <literal>getCats()</literal>. Se você "
"habilitar busca em lote para a coleção de <literal>cats</literal> no "
"mapeamento da classe <literal>Person</literal>, o Hibernate pode fazer uma "
"pré carga das coleções:"
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -1052,13 +938,12 @@
"particular <literal>Session</literal>."
msgstr ""
"Com um <literal>batch-size</literal> de 3, o Hibernate irá carregar 3, 3, 3, "
-"1 coleções em 4 <literal>SELECT</literal>s. Novamente, o valor do atributo "
-"depende do número esperado de coleções não inicialiadas em determinada "
+"1 coleções em 4 <literal>SELECT</literal>s. Novamente, o valor da função "
+"depende do número esperado de coleções não inicializadas em determinada "
"<literal>Session</literal>."
#. Tag: para
-#: performance.xml:531
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
"tree of items, i.e. the typical bill-of-materials pattern. However, a "
@@ -1066,38 +951,92 @@
"might be a better option for read-mostly trees."
msgstr ""
"A busca em lote de coleções é particularmente útil quando você tem uma "
-"árvore encadeada de items, ex. o tÃpico padrão bill-of-materials (Se bem que "
-"um <emphasis>conjunto encadeado</emphasis> ou <emphasis>caminho "
-"materializado </emphasis> pode ser uma opção melhor para árvores com mais "
-"leitura)"
+"árvore encadeada de Ãtens, ex.: o tÃpico padrão bill-of-materials (Se bem "
+"que um <emphasis>conjunto encadeado</emphasis> ou <emphasis>caminho "
+"materializado</emphasis> pode ser uma opção melhor para árvores com mais "
+"leitura."
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
-msgstr "Usando subselect fetching"
+msgstr "Usando busca de subseleção"
#. Tag: para
-#: performance.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
"will load all of them, re-running the original query in a subselect. This "
"works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
"Se uma coleção ou proxy simples precisa ser recuperado, o Hibernate carrega "
-"todos eles rodando novamente a query original em um subselect. Isso funciona "
-"da mesma maneira que busca em lote, sem carregar tanto."
+"todos eles rodando novamente a consulta original em uma subseleção. Isso "
+"funciona da mesma maneira que busca em lote, sem carregar tanto."
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "Estratégias de Busca "
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
msgstr "Usando busca preguiçosa de propriedade"
#. Tag: para
-#: performance.xml:555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
"optimization technique is also known as <emphasis>fetch groups</emphasis>. "
@@ -1107,111 +1046,68 @@
"when legacy tables have hundreds of columns and the data model cannot be "
"improved."
msgstr ""
-"O Hibernate3 suporta a carga posterior de propriedades individuais. Essa "
-"técnica de otimização também conhecida como <emphasis>fetch groups</"
-"emphasis>. Veja que isso é mais uma funcionalidade de marketing já que na "
-"prática, é mais importante otimização nas leituras dos registros do que na "
-"leitura das colunas. Porém, carregar apenas algumas propriedades de uma "
-"classe pode ser útil em casos extremos, onde tabelas legadas podem ter "
-"centenas de colunas e o modelo de dados não pode ser melhorado."
+"O Hibernate3 suporta a busca lazy de propriedades individuais. Essa técnica "
+"de otimização é também conhecida como <emphasis>grupos de busca</emphasis>. "
+"Veja que esta é mais uma caracterÃstica de marketing já que na prática, é "
+"mais importante a otimização nas leituras dos registros do que na leitura "
+"das colunas. Porém, carregar apenas algumas propriedades de uma classe pode "
+"ser útil em casos extremos, onde tabelas legadas podem ter centenas de "
+"colunas e o modelo de dados não pode ser melhorado."
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
"on your particular property mappings:"
msgstr ""
-"Para habilitar a carga posterior de propriedade, é preciso setar o atributo "
+"Para habilitar a carga de propriedade lazy, é preciso ajustar a função "
"<literal>lazy</literal> no seu mapeamento de propriedade:"
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:571
-#, fuzzy, no-c-format
-msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
"persistent classes are not enhanced, Hibernate will ignore lazy property "
"settings and return to immediate fetching."
msgstr ""
-"A carga posterior de propriedades requer instrumentação de bytecode! Se suas "
+"A carga de propriedades lazy requer instrumentação de bytecode. Se suas "
"classes persistentes não forem melhoradas, o Hibernate irá ignorar "
-"silenciosamente essa configuração e usará busca imediatamente."
+"silenciosamente essa configuração e usará a busca imediata."
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
msgstr "Para instrumentação de bytecode, use a seguinte tarefa do Ant:"
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:583
-#, fuzzy, no-c-format
-msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
"transactions, is to use the projection features of HQL or Criteria queries. "
"This avoids the need for buildtime bytecode processing and is certainly a "
"preferred solution."
msgstr ""
-"A different (better?) way to avoid unnecessary column reads, at least for "
-"read-only transactions is to use the projection features of HQL or Criteria "
-"queries. This avoids the need for buildtime bytecode processing and is "
-"certainly a prefered solution."
+"Uma forma diferente de evitar leitura de coluna desnecessária, ao menos para "
+"transações de somente leitura, deve-se usar os recursos de projeção do HQL "
+"ou consultas por Critério. Isto evita a necessidade de processamento de "
+"bytecode em build-time e é certamente uma melhor solução."
#. Tag: para
-#: performance.xml:590
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
"all properties</literal> in HQL."
msgstr ""
-"You may force the usual eager fetching of properties using <literal>fetch "
-"all properties</literal> in HQL."
+"Você pode forçar a busca antecipada comum de propriedades usando "
+"<literal>buscar todas as propriedades</literal> no HQL."
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
-msgstr "The Second Level Cache"
+msgstr "O Cachê de Segundo NÃvel"
#. Tag: para
-#: performance.xml:602
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
"persistent data. It is possible to configure a cluster or JVM-level "
@@ -1221,17 +1117,16 @@
"another application. They can, however, be configured to regularly expire "
"cached data."
msgstr ""
-"A Hibernate <literal>Session</literal> is a transaction-level cache of "
-"persistent data. It is possible to configure a cluster or JVM-level "
-"(<literal>SessionFactory</literal>-level) cache on a class-by-class and "
-"collection-by-collection basis. You may even plug in a clustered cache. Be "
-"careful. Caches are never aware of changes made to the persistent store by "
-"another application (though they may be configured to regularly expire "
-"cached data)."
+"Uma <literal>Session</literal> do Hibernate é um cache de nÃvel transacional "
+"de dados persistentes. Ã possÃvel configurar um cluster ou um cache de nÃvel "
+"JVM (nÃvel <literal>SessionFactory</literal>) em uma estrutura classe por "
+"classe e coleção por coleção. Você pode até mesmo plugar em um cache em "
+"cluster. Tenha cuidado, pois os caches nunca sabem das mudanças feitas em "
+"armazenamento persistente por um outro aplicativo. No entanto, eles podem "
+"ser configurados para dados em cache vencido regularmente."
#. Tag: para
-#: performance.xml:610
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
"specifying the name of a class that implements <literal>org.hibernate.cache."
@@ -1241,306 +1136,243 @@
"can also implement your own and plug it in as outlined above. Note that "
"versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
-"You have the option to tell Hibernate which caching implementation to use by "
-"specifying the name of a class that implements <literal>org.hibernate.cache."
-"CacheProvider</literal> using the property <literal>hibernate.cache."
-"provider_class</literal>. Hibernate comes bundled with a number of built-in "
-"integrations with open-source cache providers (listed below); additionally, "
-"you could implement your own and plug it in as outlined above. Note that "
-"versions prior to 3.2 defaulted to use EhCache as the default cache "
-"provider; that is no longer the case as of 3.2."
+"Você tem a opção de informar o Hibernate sobre qual implementação de cache "
+"utilizar, especificando o nome de uma classe que implementa <literal>org."
+"hibernate.cache.CacheProvider</literal> usando a propriedade "
+"<literal>hibernate.cache.provider_class</literal>. O Hibernate vem envolvido "
+"com um número de integrações construÃdas com provedores de cache de fonte "
+"aberta (listados abaixo). Além disso, você pode implementar seu próprio e "
+"plugá-lo como mencionado acima. Note que as versões anteriores ao padrão 3.2 "
+"utilizam EhCache como provedor de cache padrão. "
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
-msgstr "Cache Providers"
+msgstr "Provedores de Cache "
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr "Cache"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
-msgstr "Provider class"
+msgstr "Classe de provedor"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
-msgstr "Type"
+msgstr "Tipo"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
-msgstr "Cluster Safe"
+msgstr "Segurança de Cluster"
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
-msgstr "Query Cache Supported"
+msgstr "Cache de Consulta Suportado"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, no-c-format
msgid "Hashtable (not intended for production use)"
-msgstr "Hashtable (not intended for production use)"
+msgstr "Hashtable (não recomendado para uso de produção)"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
-msgstr "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
-msgstr "memory"
+msgstr "memória"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
-msgstr ""
+msgid "yes"
+msgstr "sim"
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
-msgstr "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.EhCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
-msgstr "memory, disk"
+msgstr "memória, disco"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
-msgstr "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.OSCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
-msgstr "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
msgstr "clustered (ip multicast)"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
-msgstr "yes (clustered invalidation)"
+msgstr "sim (invalidação em cluster)"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 1.x"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 1.x"
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
-msgstr "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
-msgstr "clustered (ip multicast), transactional"
+msgstr "(ip multicast) em cluster, transacional"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
-msgstr "yes (replication)"
+msgstr "sim (replicação)"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
-msgstr "yes (clock sync req.)"
+msgstr "sim (solicitação de sync. de relógio)"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 2"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 2"
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
-msgstr "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
+msgstr "<literal>org.hibernate.cache.jbc2.JBossCacheRegionFactory</literal>"
#. Tag: entry
-#: performance.xml:677
-#, fuzzy, no-c-format
+#, no-c-format
msgid "yes (replication or invalidation)"
-msgstr "yes (clustered invalidation)"
+msgstr "sim (invalidação ou replicação)"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
-msgstr "Cache mappings"
+msgstr "Mapeamento de Cache"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
"mapping has the following form:"
msgstr ""
-"The <literal><cache></literal> element of a class or collection "
-"mapping has the following form:"
+"O elemento <literal><cache></literal> de uma classe ou mapeamento de "
+"coleção possui a seguinte forma:"
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
"<literal>transactional</literal>, <literal>read-write</literal>, "
"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
msgstr ""
-"<literal>usage</literal> (required) specifies the caching strategy: "
-"<literal>transactional</literal>, <literal>read-write</literal>, "
-"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
+"<literal>uso</literal> (solicitado) especifica a estratégia de cache: "
+"<literal>transacional</literal>, <literal>leitura-escrita</literal>, "
+"<literal>leitura-escrita não estrito</literal> ou <literal>somente leitura</"
+"literal>"
#. Tag: para
-#: performance.xml:710
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
"role name): specifies the name of the second level cache region"
msgstr ""
-"<literal>region</literal> (optional, defaults to the class or collection "
-"role name) specifies the name of the second level cache region"
+"<literal>region</literal> (opcional: padrão à classe ou nome papel da "
+"coleção): especifica o nome da região do cache de segundo nÃvel"
#. Tag: para
-#: performance.xml:717
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
"<literal>non-lazy</literal>: specifies that properties of the entity mapped "
"with <literal>lazy=\"true\"</literal> cannot be cached when attribute-level "
"lazy fetching is enabled"
msgstr ""
-"<literal>include</literal> (optional, defaults to <literal>all</literal>) "
-"<literal>non-lazy</literal> specifies that properties of the entity mapped "
-"with <literal>lazy=\"true\"</literal> may not be cached when attribute-level "
-"lazy fetching is enabled"
+"<literal>include</literal> (opcional: padrão para <literal>all</literal>) "
+"<literal>non-lazy</literal>: especifica que a propriedade da entidade "
+"mapeada com <literal>lazy=\"true\"</literal> pode não estar em cache quando "
+"o nÃvel da função busca lazy for habilitada"
#. Tag: para
-#: performance.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
"<literal><collection-cache></literal> elements in <literal>hibernate."
"cfg.xml</literal>."
msgstr ""
-"Alternatively (preferrably?), you may specify <literal><class-cache></"
-"literal> and <literal><collection-cache></literal> elements in "
+"De forma alternativa, você poderá especificar os elementos <literal><"
+"class-cache></literal> e <literal><collection-cache></literal> em "
"<literal>hibernate.cfg.xml</literal>."
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
"concurrency strategy</emphasis>."
msgstr ""
-"The <literal>usage</literal> attribute specifies a <emphasis>cache "
-"concurrency strategy</emphasis>."
+"A função <literal>uso </literal> especifica uma <emphasis>estratégia de "
+"concorrência de cache</emphasis>."
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
-msgstr "Strategy: read only"
+msgstr "Estratégia: somente leitura"
#. Tag: para
-#: performance.xml:741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
"class, a <literal>read-only</literal> cache can be used. This is the "
"simplest and optimal performing strategy. It is even safe for use in a "
"cluster."
msgstr ""
-"If your application needs to read but never modify instances of a persistent "
-"class, a <literal>read-only</literal> cache may be used. This is the "
-"simplest and best performing strategy. It's even perfectly safe for use in a "
-"cluster."
+"Se sua aplicação precisar ler mas nunca modificar instâncias de uma classe "
+"persistente, pode-se utilizar um cache de <literal>read-only</literal>. Esta "
+"é a estratégia de desempenho mais simples e melhor. à também perfeitamente "
+"seguro para uso em um cluster."
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
-msgstr "Strategy: read/write"
+msgstr "Estratégia: leitura/escrita"
#. Tag: para
-#: performance.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
"cache might be appropriate. This cache strategy should never be used if "
@@ -1554,41 +1386,26 @@
"should ensure that the underlying cache implementation supports locking. The "
"built-in cache providers <emphasis>do not</emphasis> support locking."
msgstr ""
-"If the application needs to update data, a <literal>read-write</literal> "
-"cache might be appropriate. This cache strategy should never be used if "
-"serializable transaction isolation level is required. If the cache is used "
-"in a JTA environment, you must specify the property <literal>hibernate."
-"transaction.manager_lookup_class</literal>, naming a strategy for obtaining "
-"the JTA <literal>TransactionManager</literal>. In other environments, you "
-"should ensure that the transaction is completed when <literal>Session.close()"
-"</literal> or <literal>Session.disconnect()</literal> is called. If you wish "
-"to use this strategy in a cluster, you should ensure that the underlying "
-"cache implementation supports locking. The built-in cache providers do "
-"<emphasis>not</emphasis>."
+"Se a aplicação precisar atualizar dados, um cache de <literal>read-write</"
+"literal> pode ser mais apropriado. Esta estratégia de cache nunca deve ser "
+"usada se solicitado um nÃvel de isolação de transação serializável. Se o "
+"cache for usado em um ambiente JTA, você deve especificar a propriedade "
+"<literal>hibernate.transaction.manager_lookup_class</literal>, nomeando uma "
+"estratégia por obter o <literal>TransactionManager</literal> JTA. Em outros "
+"ambientes, você deve assegurar que a transação está completa quando a "
+"<literal>Session.close()</literal> ou <literal>Session.disconnect()</"
+"literal> for chamada. Se desejar utilizar esta estratégia em um cluster, "
+"você deve assegurar que a implementação de cache adjacente suporta o "
+"bloqueio. Os provedores de cache built-in <emphasis>não</emphasis> suportam "
+"o bloqueamento."
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
-msgstr "Strategy: nonstrict read/write"
+msgstr "Estratégia: leitura/escrita não estrita"
#. Tag: para
-#: performance.xml:773
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
"extremely unlikely that two transactions would try to update the same item "
@@ -1599,101 +1416,88 @@
"should ensure that the transaction is completed when <literal>Session.close()"
"</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
-"If the application only occasionally needs to update data (ie. if it is "
-"extremely unlikely that two transactions would try to update the same item "
-"simultaneously) and strict transaction isolation is not required, a "
-"<literal>nonstrict-read-write</literal> cache might be appropriate. If the "
-"cache is used in a JTA environment, you must specify <literal>hibernate."
-"transaction.manager_lookup_class</literal>. In other environments, you "
-"should ensure that the transaction is completed when <literal>Session.close()"
-"</literal> or <literal>Session.disconnect()</literal> is called."
+"Se a aplicação somente precisa atualizar dados ocasionalmente (ou seja, se "
+"for extremamente improvável que as duas transações tentem atualizar o mesmo "
+"Ãtem simultaneamente) e não for requerido uma isolação de transação estrita, "
+"o uso deum cache de <literal>nonstrict-read-write</literal> pode ser mais "
+"apropriado. Se um cache é usado em ambiente JTA, você deverá especificar o "
+"<literal>hibernate.transaction.manager_lookup_class</literal>. Em outros "
+"ambientes, você deve assegurar que a transação está completa quando a "
+"<literal>Session.close()</literal> ou <literal>Session.disconnect()</"
+"literal> for chamada."
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
-msgstr "Strategy: transactional"
+msgstr "Estratégia: transacional"
#. Tag: para
-#: performance.xml:787
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
"fully transactional cache providers such as JBoss TreeCache. Such a cache "
"can only be used in a JTA environment and you must specify "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
-"The <literal>transactional</literal> cache strategy provides support for "
-"fully transactional cache providers such as JBoss TreeCache. Such a cache "
-"may only be used in a JTA environment and you must specify "
+"A estratégia de cache <literal>transactional</literal> provê suporte para "
+"provedores de cache transacional completo como o JBoss TreeCache. Tal cache, "
+"deve ser usado somente em um ambiente JTA e você deverá especificar o "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
#. Tag: title
-#: performance.xml:796
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
-msgstr "Cache Concurrency Strategy Support"
+msgstr "Compatibilidade de Estratégia de Concorrência de Cache Provedor"
#. Tag: para
-#: performance.xml:799
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
msgstr ""
-"None of the cache providers support all of the cache concurrency strategies. "
-"The following table shows which providers are compatible with which "
-"concurrency strategies."
+"Nenhum provedor de cache suporta todas as estratégias de concorrência de "
+"cache. "
#. Tag: para
-#: performance.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
"concurrency strategies."
msgstr ""
-"None of the cache providers support all of the cache concurrency strategies. "
-"The following table shows which providers are compatible with which "
-"concurrency strategies."
+"A seguinte tabela mostra qual provedor é compatÃvel com qual estratégia de "
+"concorrência. "
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
-msgstr "Cache Concurrency Strategy Support"
+msgstr "Suporte de Estratégia de Concorrência de Cache"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
-msgstr "read-only"
+msgstr "somente leitura"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
-msgstr "nonstrict-read-write"
+msgstr "leitura-escrita não estrita"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
-msgstr "read-write"
+msgstr "leitura-escrita"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
-msgstr "transactional"
+msgstr "transacional"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
-msgstr "Managing the caches"
+msgstr "Gerenciando os caches"
#. Tag: para
-#: performance.xml:879
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an "
@@ -1702,16 +1506,14 @@
"</literal>, that object is added to the internal cache of the "
"<literal>Session</literal>."
msgstr ""
-"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
-"literal> or <literal>saveOrUpdate()</literal> and whenever you retrieve an "
-"object using <literal>load()</literal>, <literal>get()</literal>, "
-"<literal>list()</literal>, <literal>iterate()</literal> or <literal>scroll()"
-"</literal>, that object is added to the internal cache of the "
-"<literal>Session</literal>."
+"Quando passar um objeto para <literal>save()</literal>, <literal>update()</"
+"literal> ou <literal>saveOrUpdate()</literal> e quando recuperar um objeto "
+"usando um <literal>load()</literal>, <literal>get()</literal>, <literal>list"
+"()</literal>, <literal>iterate()</literal> ou <literal>scroll()</literal>, "
+"este objeto será adicionado ao cache interno da <literal>Session</literal>."
#. Tag: para
-#: performance.xml:886
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
"object will be synchronized with the database. If you do not want this "
@@ -1720,312 +1522,281 @@
"can be used to remove the object and its collections from the first-level "
"cache."
msgstr ""
-"When <literal>flush()</literal> is subsequently called, the state of that "
-"object will be synchronized with the database. If you do not want this "
-"synchronization to occur or if you are processing a huge number of objects "
-"and need to manage memory efficiently, the <literal>evict()</literal> method "
-"may be used to remove the object and its collections from the first-level "
-"cache."
+"Quando o <literal>flush()</literal> for subsequentemente chamado, o estado "
+"deste objeto será sincronizado com o banco de dados. Se você não desejar que "
+"esta sincronização aconteça ou se você estiver processando uma grande "
+"quantidade de objetos e precisar gerenciar a memória de forma eficiente, o "
+"método <literal>evict()</literal> pode ser usado para remover o objeto de "
+"suas coleções de cache de primeiro nÃvel."
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
"method to determine if an instance belongs to the session cache."
msgstr ""
-"The <literal>Session</literal> also provides a <literal>contains()</literal> "
-"method to determine if an instance belongs to the session cache."
+"A <literal>Session</literal> também oferece um método<literal>contains()</"
+"literal> para determinar se uma instância pertence ao cache de sessão."
#. Tag: para
-#: performance.xml:901
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
"literal>"
msgstr ""
-"To completely evict all objects from the session cache, call "
+"Para despejar completamente todos os objetos do cache de Sessão, chame "
"<literal>Session.clear()</literal>"
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
"<literal>SessionFactory</literal> for evicting the cached state of an "
"instance, entire class, collection instance or entire collection role."
msgstr ""
-"For the second-level cache, there are methods defined on "
-"<literal>SessionFactory</literal> for evicting the cached state of an "
-"instance, entire class, collection instance or entire collection role."
+"Para o cache de segundo nÃvel, existem métodos definidos na "
+"<literal>SessionFactory</literal> para despejar o estado de cache de uma "
+"instância, classe inteira, instância de coleção ou papel de coleção inteiro."
-#. Tag: programlisting
-#: performance.xml:911
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:913
-#, fuzzy, no-c-format
-msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
"with the second-level cache:"
msgstr ""
-"The <literal>CacheMode</literal> controls how a particular session interacts "
-"with the second-level cache."
+"O <literal>CacheMode</literal> controla como uma sessão em particular "
+"interage com o cache de segundo nÃvel:"
#. Tag: para
-#: performance.xml:920
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
"the second-level cache"
msgstr ""
-"<literal>CacheMode.NORMAL</literal> - read items from and write items to the "
-"second-level cache"
+"<literal>CacheMode.NORMAL</literal> - lê e escreve itens ao cache de segundo "
+"nÃvel."
#. Tag: para
-#: performance.xml:925
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
"cache. Do not write to the second-level cache except when updating data"
msgstr ""
-"<literal>CacheMode.GET</literal> - read items from the second-level cache, "
-"but don't write to the second-level cache except when updating data"
+"<literal>CacheMode.GET</literal>: itens de leitura do cache de segundo "
+"nÃvel. Não escreve ao cache de segundo nÃvel, exceto quando atualizar dados."
#. Tag: para
-#: performance.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache"
msgstr ""
-"<literal>CacheMode.PUT</literal> - write items to the second-level cache, "
-"but don't read from the second-level cache"
+"<literal>CacheMode.PUT</literal>: escreve itens ao cache de segundo nÃvel. "
+"Não lê a partir do cache de segundo nÃvel."
#. Tag: para
-#: performance.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache. Bypass the effect of "
"<literal>hibernate.cache.use_minimal_puts</literal> forcing a refresh of the "
"second-level cache for all items read from the database"
msgstr ""
-"<literal>CacheMode.REFRESH</literal> - write items to the second-level "
-"cache, but don't read from the second-level cache, bypass the effect of "
-"<literal>hibernate.cache.use_minimal_puts</literal>, forcing a refresh of "
-"the second-level cache for all items read from the database"
+"<literal>CacheMode.REFRESH</literal>: escreve itens ao cache de segundo "
+"nÃvel, mas não lê a partir do cache de segundo nÃvel. Passa o efeito de "
+"<literal>hibernate.cache.use_minimal_puts</literal>, forçando uma "
+"atualização do cache de segundo nÃvel para que todos os itens leiam a partir "
+"do banco de dados. "
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
"<literal>Statistics</literal> API:"
msgstr ""
-"To browse the contents of a second-level or query cache region, use the "
-"<literal>Statistics</literal> API:"
+"Para navegar o conteúdo do segundo nÃvel ou região de cache de consulta, use "
+"o<literal>Statistics</literal> API:"
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
+"You will need to enable statistics and, optionally, force Hibernate to keep "
+"the cache entries in a more readable format:"
msgstr ""
+"Você precisará habilitar estatÃsticas e, opcionalmente, forçar o Hibernate a "
+"manter as entradas de cache em um formato mais compreensÃvel: "
+#. Tag: title
+#, no-c-format
+msgid "The Query Cache"
+msgstr "O Cache de Consulta"
+
#. Tag: para
-#: performance.xml:952
#, fuzzy, no-c-format
msgid ""
-"You will need to enable statistics and, optionally, force Hibernate to keep "
-"the cache entries in a more readable format:"
+"Query result sets can also be cached. This is only useful for queries that "
+"are run frequently with the same parameters."
msgstr ""
-"You'll need to enable statistics, and, optionally, force Hibernate to keep "
-"the cache entries in a more human-understandable format:"
+"O conjunto de resultado de consulta pode também estar em cache. Isto é útil, "
+"somente para consultas que são rodadas freqüentemente com os mesmos "
+"parâmetros. Para usar o cache de consulta você deve habilitá-lo primeiro: "
-#. Tag: programlisting
-#: performance.xml:957
+#. Tag: title
#, no-c-format
+msgid "Enabling query caching"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-#. Tag: title
-#: performance.xml:962
+#. Tag: para
#, no-c-format
-msgid "The Query Cache"
-msgstr "The Query Cache"
+msgid "This setting creates two new cache regions:"
+msgstr ""
#. Tag: para
-#: performance.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
msgstr ""
-"Query result sets may also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. To use the query cache you must "
-"first enable it:"
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
msgstr ""
-"This setting causes the creation of two new cache regions - one holding "
-"cached query result sets (<literal>org.hibernate.cache.StandardQueryCache</"
-"literal>), the other holding timestamps of the most recent updates to "
-"queryable tables (<literal>org.hibernate.cache.UpdateTimestampsCache</"
-"literal>). Note that the query cache does not cache the state of the actual "
-"entities in the result set; it caches only identifier values and results of "
-"value type. So the query cache should always be used in conjunction with the "
-"second-level cache."
#. Tag: para
-#: performance.xml:981
#, fuzzy, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
-"Most queries do not benefit from caching, so by default queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"A maioria das consultas não se beneficiam do cache, portanto por padrão, "
+"eles não estão em cache. Para habilitar o caching, chame <literal>Query."
+"setCacheable(true)</literal>. Esta chamada permite que a consulta procure "
+"por resultados de caches existentes ou adicione seus resultados ao cache "
+"quando for executado. "
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
+msgstr ""
+
+#. Tag: title
#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "Cache de Consulta Suportado"
+
+#. Tag: para
+#, no-c-format
msgid ""
"If you require fine-grained control over query cache expiration policies, "
"you can specify a named cache region for a particular query by calling "
"<literal>Query.setCacheRegion()</literal>."
msgstr ""
-"If you require fine-grained control over query cache expiration policies, "
-"you may specify a named cache region for a particular query by calling "
-"<literal>Query.setCacheRegion()</literal>."
+"Se você solicitar um controle de granulado fino com polÃticas de validade do "
+"cache de consulta, você poderá especificar uma região de cache nomeada para "
+"uma consulta em particular, chamando <literal>Query.setCacheRegion()</"
+"literal>."
-#. Tag: programlisting
-#: performance.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:996
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
msgstr ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"Se a consulta forçar uma atualização de sua região de cache de consulta, "
+"você deve chamar <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. "
+"Isto é particularmente útil em casos onde dados adjacentes podem ter sido "
+"atualizados através de um processo em separado (ou seja, não modificado "
+"através do Hibernate) e permite que a aplicação atualize de forma seletiva "
+"um conjunto particular de resultado de consulta. Esta alternativa é mais "
+"eficiente se aplicada ao despejo de uma região de cache de consulta através "
+"de <literal>SessionFactory.evictQueries()</literal>."
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
-msgstr "Understanding Collection performance"
+msgstr "Entendendo o desempenho da Coleção"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
"In this section we explore some more issues in relation to collections at "
"runtime."
msgstr ""
+"Nas seções anteriores nós descrevemos as coleções e seus aplicativos. Nesta "
+"seção nós exploraremos mais problemas em relação à s coleções no perÃodo de "
+"execução."
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
-msgstr "Taxonomy"
+msgstr "Taxonomia"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
-msgstr "Hibernate defines three basic kinds of collections:"
+msgstr "O Hibernate define três tipos básicos de coleções:"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
-msgstr "collections of values"
+msgstr "Coleções de valores"
#. Tag: para
-#: performance.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many associations"
-msgstr "one to many associations"
+msgstr "Associações um-para-muitos "
#. Tag: para
-#: performance.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
msgid "many-to-many associations"
-msgstr "many to many associations"
+msgstr "Associações muitos-para-muitos "
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -2035,34 +1806,30 @@
"primary key that is used by Hibernate to update or delete collection rows. "
"This suggests the following classification:"
msgstr ""
-"This classification distinguishes the various table and foreign key "
-"relationships but does not tell us quite everything we need to know about "
-"the relational model. To fully understand the relational structure and "
-"performance characteristics, we must also consider the structure of the "
-"primary key that is used by Hibernate to update or delete collection rows. "
-"This suggests the following classification:"
+"A classificação distingue as diversas tabelas e relacionamento de chave "
+"externa, mas não nos diz tudo que precisamos saber sobre o modelo "
+"relacional. Para entender completamente a estrutura relacional e as "
+"caracterÃsticas de desempenho, devemos também considerar a estrutura da "
+"chave primária que é usada pelo Hibernate para atualizar ou deletar linhas "
+"de coleções. Isto sugere a seguinte classificação:"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
-msgstr "indexed collections"
+msgstr "Coleções indexadas"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
-msgstr "sets"
+msgstr "conjuntos"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
-msgstr "bags"
+msgstr "Bags"
#. Tag: para
-#: performance.xml:1054
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
"consisting of the <literal><key></literal> and <literal><index></"
@@ -2070,15 +1837,15 @@
"The primary key can be efficiently indexed and a particular row can be "
"efficiently located when Hibernate tries to update or delete it."
msgstr ""
-"All indexed collections (maps, lists, arrays) have a primary key consisting "
-"of the <literal><key></literal> and <literal><index></literal> "
-"columns. In this case collection updates are usually extremely efficient - "
-"the primary key may be efficiently indexed and a particular row may be "
-"efficiently located when Hibernate tries to update or delete it."
+"Todas as coleções indexadas (mapas, listas, matrizes) possuem uma chave "
+"primária, que consiste em colunas <literal><key></literal> e "
+"<literal><index></literal>. Neste caso, as atualizações de coleção são "
+"geralmente muito eficientes. A chave primária pode ser indexada de forma "
+"eficiente e uma linha em particular pode ser localizada de forma eficiente "
+"quando o Hibernate tentar atualizar ou deletá-la. "
#. Tag: para
-#: performance.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
"element columns. This can be less efficient for some types of collection "
@@ -2090,29 +1857,29 @@
"<literal><set></literal>, you must declare all columns as <literal>not-"
"null=\"true\"</literal>."
msgstr ""
-"Sets have a primary key consisting of <literal><key></literal> and "
-"element columns. This may be less efficient for some types of collection "
-"element, particularly composite elements or large text or binary fields; the "
-"database may not be able to index a complex primary key as efficently. On "
-"the other hand, for one to many or many to many associations, particularly "
-"in the case of synthetic identifiers, it is likely to be just as efficient. "
-"(Side-note: if you want <literal>SchemaExport</literal> to actually create "
-"the primary key of a <literal><set></literal> for you, you must "
-"declare all columns as <literal>not-null=\"true\"</literal>.)"
+"Os conjuntos possuem uma chave primária que consiste em <literal><key>"
+"</literal> e colunas de elemento. Isto pode ser menos eficiente para alguns "
+"tipos de elementos de coleções, especialmente elementos compostos ou textos "
+"grandes ou ainda campos binários. O banco de dados pode não ser capaz de "
+"indexar uma chave primária complexa de forma tão eficiente. Por um outro "
+"lado, para associações um-para-muitos ou muitos-para-muitos, especialmente "
+"no caso de identificadores sintáticos, é bem provável que seja tão eficiente "
+"quanto. Se você quiser que o <literal>SchemaExport</literal> crie para você "
+"uma chave primária de um <literal><set></literal> você deverá declarar "
+"todas as colunas como <literal>not-null=\"true\"</literal>."
#. Tag: para
-#: performance.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
"are efficient to update. In fact, they are the best case."
msgstr ""
-"<literal><idbag></literal> mappings define a surrogate key, so they "
-"are always very efficient to update. In fact, they are the best case."
+"Os mapeamentos <literal><idbag></literal> definem uma chave "
+"substituta, para que elas sejam sempre muito eficientes ao atualizar. Na "
+"verdade, este é o melhor caso. "
#. Tag: para
-#: performance.xml:1078
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
"they have no index column, no primary key can be defined. Hibernate has no "
@@ -2120,49 +1887,47 @@
"problem by completely removing in a single <literal>DELETE</literal> and "
"recreating the collection whenever it changes. This can be inefficient."
msgstr ""
-"Bags are the worst case. Since a bag permits duplicate element values and "
-"has no index column, no primary key may be defined. Hibernate has no way of "
-"distinguishing between duplicate rows. Hibernate resolves this problem by "
-"completely removing (in a single <literal>DELETE</literal>) and recreating "
-"the collection whenever it changes. This might be very inefficient."
+"As Bags são os piores casos. Como uma bag permite duplicar valores de "
+"elementos e não possui coluna de Ãndice, não se deve definir nenhuma chave "
+"primária. O Hibernate não tem como distinguir entre linhas duplicadas. O "
+"Hibernate resolve este problema, removendo completamente em um único "
+"<literal>DELETE</literal> e recria a coleção quando mudar. Isto pode ser "
+"bastante ineficiente."
#. Tag: para
-#: performance.xml:1086
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
"primary key of the database table. Even in this case, the above "
"classification is still useful. It reflects how Hibernate \"locates\" "
"individual rows of the collection."
msgstr ""
-"Note that for a one-to-many association, the \"primary key\" may not be the "
-"physical primary key of the database table - but even in this case, the "
-"above classification is still useful. (It still reflects how Hibernate "
-"\"locates\" individual rows of the collection.)"
+"Note que para uma associação um-para-muitos, a chave primária pode não ser a "
+"chave primária fÃsica da tabela do banco de dados, mas mesmo neste caso, a "
+"classificação acima é ainda útil. Isto reflete como o Hibernate \"localiza\" "
+"linhas individuais da coleção."
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
msgstr ""
-"Lists, maps, idbags and sets are the most efficient collections to update"
+"Listas, mapas, bags de id e conjuntos são coleções mais eficientes para "
+"atualizar"
#. Tag: para
-#: performance.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
"sets allow the most efficient operation in terms of adding, removing and "
"updating elements."
msgstr ""
-"From the discussion above, it should be clear that indexed collections and "
-"(usually) sets allow the most efficient operation in terms of adding, "
-"removing and updating elements."
+"A partir da discussão acima, deve ficar claro que as coleções indexadas e "
+"conjuntos (geralmente) permitem uma operação mais eficente em termos de "
+"adição, remoção e atualização de elementos. "
#. Tag: para
-#: performance.xml:1104
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
"sets for many-to-many associations or collections of values. Because of the "
@@ -2172,17 +1937,16 @@
"literal> of individual rows. Once again, this consideration does not apply "
"to one-to-many associations."
msgstr ""
-"There is, arguably, one more advantage that indexed collections have over "
-"sets for many to many associations or collections of values. Because of the "
-"structure of a <literal>Set</literal>, Hibernate doesn't ever "
-"<literal>UPDATE</literal> a row when an element is \"changed\". Changes to a "
-"<literal>Set</literal> always work via <literal>INSERT</literal> and "
-"<literal>DELETE</literal> (of individual rows). Once again, this "
-"consideration does not apply to one to many associations."
+"Existe ainda, mais uma vantagem, das coleções indexadas sob conjuntos para "
+"associações muitos-para-muitos. Por causa da estrutura de um <literal>Set</"
+"literal>, o Hibernate nunca utiliza o comando <literal>UPDATE</literal> em "
+"uma linha quando um elemento é \"modificado\". As mudanças para o <literal> "
+"Conjunto</literal> funcionam sempre através do comando <literal>INSERT</"
+"literal> e <literal>DELETE</literal> de linhas individuais. Novamente, esta "
+"consideração não se aplica às associações um para muitos. "
#. Tag: para
-#: performance.xml:1113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
"maps and idbags are the most performant (non-inverse) collection types, with "
@@ -2190,15 +1954,14 @@
"collection in Hibernate applications. This is because the \"set\" semantics "
"are most natural in the relational model."
msgstr ""
-"After observing that arrays cannot be lazy, we would conclude that lists, "
-"maps and idbags are the most performant (non-inverse) collection types, with "
-"sets not far behind. Sets are expected to be the most common kind of "
-"collection in Hibernate applications. This is because the \"set\" semantics "
-"are most natural in the relational model."
+"Após observar que as matrizes não podem ser preguiçosas, nós concluimos que "
+"as listas, mapas e bags de id são tipos de coleções com maior desempenho "
+"(não inverso), com conjuntos que não ficam atrás. Espera-se que os conjuntos "
+"sejam um tipo mais comum de coleção nas aplicações Hibernate. Isto porque as "
+"semânticas \"conjunto\" são mais naturais em modelos relacionais. "
#. Tag: para
-#: performance.xml:1121
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
"fact one-to-many associations with <literal>inverse=\"true\"</literal>. For "
@@ -2206,21 +1969,20 @@
"association, and so considerations of collection update performance simply "
"do not apply."
msgstr ""
-"However, in well-designed Hibernate domain models, we usually see that most "
-"collections are in fact one-to-many associations with <literal>inverse=\"true"
-"\"</literal>. For these associations, the update is handled by the many-to-"
-"one end of the association, and so considerations of collection update "
-"performance simply do not apply."
+"No entanto, em modelos de domÃnio de Hibernate bem criados, geralmente vemos "
+"que a maioria das coleções são de fato, associações um-para-muitos com "
+"<literal>inverse=\"true\"</literal>. Para estas associações, a atualização é "
+"manipulada pelo lado muitos-para-um de uma associação e portanto "
+"considerações de desempenho de atualização de coleção simplesmente não se "
+"aplicam a este caso. "
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
-msgstr "Bags and lists are the most efficient inverse collections"
+msgstr "As Bags e listas são as coleções de inversão mais eficientes."
#. Tag: para
-#: performance.xml:1133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
"more performant than sets. For a collection with <literal>inverse=\"true\"</"
@@ -2231,131 +1993,110 @@
"literal> must always return true for a bag or <literal>List</literal>. This "
"can make the following common code much faster:"
msgstr ""
-"Just before you ditch bags forever, there is a particular case in which bags "
-"(and also lists) are much more performant than sets. For a collection with "
-"<literal>inverse=\"true\"</literal> (the standard bidirectional one-to-many "
-"relationship idiom, for example) we can add elements to a bag or list "
-"without needing to initialize (fetch) the bag elements! This is because "
-"<literal>Collection.add()</literal> or <literal>Collection.addAll()</"
-"literal> must always return true for a bag or <literal>List</literal> "
-"(unlike a <literal>Set</literal>). This can make the following common code "
-"much faster."
+"Existe um caso em particular no qual as bags (e também as listas) possuem um "
+"desempenho muito maior do que conjuntos. Para uma coleção com "
+"<literal>inverse=\"true\"</literal>, o idioma de relacionamento um-para-um "
+"bidirecional padrão, por exemplo, podemos adicionar elementos a uma bag ou "
+"uma lista sem precisar inicializar (buscar) os elementos da bag. Isto "
+"acontece porque a <literal>Collection.add()</literal> ou <literal>Collection."
+"addAll()</literal> deve sempre retornar verdadeira para uma bag ou "
+"<literal>List</literal>. Isto pode fazer que o código comum seguinte seja "
+"muito mais rápido:"
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
-msgstr "One shot delete"
+msgstr "Deletar uma vez"
#. Tag: para
-#: performance.xml:1150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
"inefficient. Hibernate knows not to do that in the case of an newly-empty "
"collection (if you called <literal>list.clear()</literal>, for example). In "
"this case, Hibernate will issue a single <literal>DELETE</literal>."
msgstr ""
-"Occasionally, deleting collection elements one by one can be extremely "
-"inefficient. Hibernate isn't completely stupid, so it knows not to do that "
-"in the case of an newly-empty collection (if you called <literal>list.clear()"
-"</literal>, for example). In this case, Hibernate will issue a single "
-"<literal>DELETE</literal> and we are done!"
+"Ãs vezes, deletar elementos de coleção um por um pode ser extremamente "
+"ineficiente. O Hibernate não é completamente burro, portanto ele sabe que "
+"não deve fazer isso no caso de uma coleção que tenha sido esvaziada "
+"recentemente (se você chamou <literal>list.clear()</literal>, por exemplo). "
+"Neste caso, o Hibernate irá editar um único <literal>DELETE</literal>."
#. Tag: para
-#: performance.xml:1157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
"statement and two <literal>DELETE</literal> statements, unless the "
"collection is a bag. This is certainly desirable."
msgstr ""
-"Suppose we add a single element to a collection of size twenty and then "
-"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
-"statement and two <literal>DELETE</literal> statements (unless the "
-"collection is a bag). This is certainly desirable."
+"Vamos supor que tenha adicionado um elemento único à uma coleção de tamanho "
+"vinte e então remove dois elementos. O Hibernate irá editar uma instrução "
+"<literal>INSERT</literal> e duas instruções <literal>DELETE</literal>, a não "
+"ser que a coleção seja uma bag. Isto é certamente desejável."
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
"thee new elements. There are two possible ways to proceed"
msgstr ""
-"However, suppose that we remove eighteen elements, leaving two and then add "
-"thee new elements. There are two possible ways to proceed"
+"No entanto, suponha que removamos dezoito elementos, deixando dois e então "
+"adicionando três novos elementos. Existem duas formas possÃveis de se "
+"proceder:"
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
-msgstr "delete eighteen rows one by one and then insert three rows"
+msgstr "delete dezoito linhas uma por uma e então insira três linhas"
#. Tag: para
-#: performance.xml:1173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
"all five current elements one by one"
msgstr ""
-"remove the whole collection (in one SQL <literal>DELETE</literal>) and "
-"insert all five current elements (one by one)"
+"remova toda a coleção em um SQL <literal>DELETE</literal> e insira todos os "
+"cinco elementos atuais, um por um"
#. Tag: para
-#: performance.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
"probably be undesirable for Hibernate to be that intuitive as such behavior "
"might confuse database triggers, etc."
msgstr ""
-"Hibernate isn't smart enough to know that the second option is probably "
-"quicker in this case. (And it would probably be undesirable for Hibernate to "
-"be that smart; such behaviour might confuse database triggers, etc.)"
+"O Hibernate não sabe que a segunda opção é provavelmente mais rápida neste "
+"caso. O Hibernate não deseha saber a opção, uma vez que tal comportamento "
+"deve confundir os triggers do banco de dados, etc."
#. Tag: para
-#: performance.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
"time by discarding (i.e. dereferencing) the original collection and "
"returning a newly instantiated collection with all the current elements."
msgstr ""
-"Fortunately, you can force this behaviour (ie. the second strategy) at any "
-"time by discarding (ie. dereferencing) the original collection and returning "
-"a newly instantiated collection with all the current elements. This can be "
-"very useful and powerful from time to time."
+"Felizmente, você pode forçar este comportamento (ou seja, uma segunda "
+"estratégia) a qualquer momento, descartando (ou seja, desreferenciando) a "
+"coleção original e retornando uma coleção recentemente instanciada com todos "
+"os elementos atuais. "
#. Tag: para
-#: performance.xml:1190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
"\"</literal>."
msgstr ""
-"Of course, one-shot-delete does not apply to collections mapped "
+"à claro que, deletar somente uma vez, não se aplica às coleções mapeadas "
"<literal>inverse=\"true\"</literal>."
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
-msgstr "Monitoring performance"
+msgstr "Monitorando desempenho"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2363,167 +2104,126 @@
"operations. Statistics in Hibernate are available per "
"<literal>SessionFactory</literal>."
msgstr ""
-"Optimization is not much use without monitoring and access to performance "
-"numbers. Hibernate provides a full range of figures about its internal "
-"operations. Statistics in Hibernate are available per "
+"A otimização não é muito usada sem o monitoramento e acesso ao número de "
+"desempenho. O Hibernate oferece uma grande variedade de números sobre suas "
+"operações internas. EstatÃsticas em Hibernate estão disponÃveis através do "
"<literal>SessionFactory</literal>."
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
-msgstr "Monitoring a SessionFactory"
+msgstr "Monitorando uma SessionFactory"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
"first option is to call <literal>sessionFactory.getStatistics()</literal> "
"and read or display the <literal>Statistics</literal> yourself."
msgstr ""
-"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
-"first option is to call <literal>sessionFactory.getStatistics()</literal> "
-"and read or display the <literal>Statistics</literal> yourself."
+"Você poderá acessar as métricas da <literal>SessionFactory</literal> de duas "
+"formas. Sua primeira opção é chamar a <literal>sessionFactory.getStatistics()"
+"</literal> e ler ou dispôr as <literal>EstatÃsticas</literal> você mesmo."
#. Tag: para
-#: performance.xml:1216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
"<literal>StatisticsService</literal> MBean. You can enable a single MBean "
"for all your <literal>SessionFactory</literal> or one per factory. See the "
"following code for minimalistic configuration examples:"
msgstr ""
-"Hibernate can also use JMX to publish metrics if you enable the "
-"<literal>StatisticsService</literal> MBean. You may enable a single MBean "
-"for all your <literal>SessionFactory</literal> or one per factory. See the "
-"following code for minimalistic configuration examples:"
+"O Hibernate também usa o JMX para publicar métricas se você habilitar o "
+"MBean de <literal>StatisticsService</literal>. Você deve habiliar um MBean "
+"único para todas as suas <literal>SessionFactory</literal> ou uma por "
+"factory. Veja o seguinte código para exemplos de configurações "
+"minimalÃsticos: "
-#. Tag: programlisting
-#: performance.xml:1223
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1228
-#, fuzzy, no-c-format
-msgid ""
"You can activate and deactivate the monitoring for a "
"<literal>SessionFactory</literal>:"
msgstr ""
-"You can (de)activate the monitoring for a <literal>SessionFactory</literal>"
+"Você pode (des)ativar o monitoramento para uma <literal>SessionFactory</"
+"literal>:"
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
"to <literal>false</literal>"
msgstr ""
-"at configuration time, set <literal>hibernate.generate_statistics</literal> "
-"to <literal>false</literal>"
+"no tempo de configuração, ajuste <literal>hibernate.generate_statistics</"
+"literal> para <literal>falso</literal>"
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
"or <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
msgstr ""
-"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
-"or <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
+"em tempo de espera: <literal>sf.getStatistics().setStatisticsEnabled(true)</"
+"literal> ou <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
#. Tag: para
-#: performance.xml:1247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
"literal> method. A summary can be sent to a logger (info level) using the "
"<literal>logSummary()</literal> method."
msgstr ""
-"Statistics can be reset programatically using the <literal>clear()</literal> "
-"method. A summary can be sent to a logger (info level) using the "
-"<literal>logSummary()</literal> method."
+"As estatÃsticas podem ser reajsutadas de forma programática, usando o método "
+"<literal>clear()</literal>. Um resumo pode ser enviado para o usuário (nÃvel "
+"de info) usando o método <literal>logSummary()</literal>. "
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
-msgstr "Metrics"
+msgstr "Métricas"
#. Tag: para
-#: performance.xml:1258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
"specialized information that is only relevant in certain scenarios. All "
"available counters are described in the <literal>Statistics</literal> "
"interface API, in three categories:"
msgstr ""
-"Hibernate provides a number of metrics, from very basic to the specialized "
-"information only relevant in certain scenarios. All available counters are "
-"described in the <literal>Statistics</literal> interface API, in three "
-"categories:"
+"O Hibernate oferece um número de métricas, desde informações bem básicas até "
+"especializadas, somente relevantes a certos cenários. Todos os contadores "
+"disponÃveis estão descritos na API da interface <literal>Statistics</"
+"literal>, em três categorias: "
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
"number of open sessions, retrieved JDBC connections, etc."
msgstr ""
-"Metrics related to the general <literal>Session</literal> usage, such as "
-"number of open sessions, retrieved JDBC connections, etc."
+"As métricas relacionadas ao uso da <literal>Sessão</literal>, tal como um "
+"número de sessões em aberto, conexões JDBC recuperadas, etc."
#. Tag: para
-#: performance.xml:1271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
"(aka global metrics)."
msgstr ""
-"Metrics related to he entities, collections, queries, and caches as a whole "
-"(aka global metrics),"
+"As métricas relacionadas às entidades, coleções, consultas e caches como um "
+"todo (mais conhecido como métricas globais). "
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
"region."
msgstr ""
-"Detailed metrics related to a particular entity, collection, query or cache "
-"region."
+"Métricas detalhadas relacionadas à uma entidade em particular, coleção, "
+"consulta ou região de cache."
#. Tag: para
-#: performance.xml:1284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
"collections and queries, and the average time a query needs. Be aware that "
@@ -2531,15 +2231,14 @@
"tied to the JVM precision and on some platforms this might only be accurate "
"to 10 seconds."
msgstr ""
-"For exampl,e you can check the cache hit, miss, and put ratio of entities, "
-"collections and queries, and the average time a query needs. Beware that the "
-"number of milliseconds is subject to approximation in Java. Hibernate is "
-"tied to the JVM precision, on some platforms this might even only be "
-"accurate to 10 seconds."
+"Por exemplo, você pode verificar a coincidência de um cache, perder e "
+"colocar a relação entre as entidades, colações e consultas e tempo médio que "
+"uma consulta precisa. Esteja ciente de que o número de milisegundos é "
+"sujeito a aproximação em Java. O Hibernate é preso à precisão do JVM, em "
+"algumas plataformas a precisão chega a ser de 10 segundos. "
#. Tag: para
-#: performance.xml:1291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
"particular entity, collection, cache region, etc.). You can access the "
@@ -2551,90 +2250,48 @@
"literal> API Javadoc for more information. The following code is a simple "
"example:"
msgstr ""
-"Simple getters are used to access the global metrics (i.e. not tied to a "
-"particular entity, collection, cache region, etc.). You can access the "
-"metrics of a particular entity, collection or cache region through its name, "
-"and through its HQL or SQL representation for queries. Please refer to the "
-"<literal>Statistics</literal>, <literal>EntityStatistics</literal>, "
-"<literal>CollectionStatistics</literal>, "
-"<literal>SecondLevelCacheStatistics</literal>, and <literal>QueryStatistics</"
-"literal> API Javadoc for more information. The following code shows a simple "
-"example:"
+"Os Getters simples são usados para acessar métricas globais (ou seja, não "
+"presos à uma entidade em particular, coleção, região de cache, etc.) Você "
+"pode acessar as métricas de uma entidade em particular, coleção ou região de "
+"cache através de seu nome e através de sua representação de HQL ou SQL para "
+"consultas. Por favor consulte a Javadoc API <literal>Statistics</literal>, "
+"<literal>EntityStatistics</literal>, <literal>CollectionStatistics</"
+"literal>, <literal>SecondLevelCacheStatistics</literal>, e "
+"<literal>QueryStatistics</literal> para maiores informações. O seguinte "
+"código mostra um exemplo simples: "
-#. Tag: programlisting
-#: performance.xml:1301
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1303
-#, fuzzy, no-c-format
-msgid ""
"You can work on all entities, collections, queries and region caches, by "
"retrieving the list of names of entities, collections, queries and region "
"caches using the following methods: <literal>getQueries()</literal>, "
"<literal>getEntityNames()</literal>, <literal>getCollectionRoleNames()</"
"literal>, and <literal>getSecondLevelCacheRegionNames()</literal>."
msgstr ""
-"To work on all entities, collections, queries and region caches, you can "
-"retrieve the list of names of entities, collections, queries and region "
-"caches with the following methods: <literal>getQueries()</literal>, "
-"<literal>getEntityNames()</literal>, <literal>getCollectionRoleNames()</"
-"literal>, and <literal>getSecondLevelCacheRegionNames()</literal>."
+"Para trabalhar em todas as entidades, coleções, consultas e caches "
+"regionais, você poderá recuperar os nomes de lista de entidades, coleções, "
+"consultas e caches regionais com os seguintes métodos: <literal>getQueries()"
+"</literal>, <literal>getEntityNames()</literal>, "
+"<literal>getCollectionRoleNames()</literal>, e "
+"<literal>getSecondLevelCacheRegionNames()</literal>. "
#~ msgid ""
-#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
-#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
-#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
-#~ "<literal>Cat</literal> and <literal>DomesticCat</literal> may be returned "
-#~ "by <literal>load()</literal> or <literal>iterate()</literal>. (Note that "
-#~ "<literal>list()</literal> does not usually return proxies.)"
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
#~ msgstr ""
-#~ "onde <literal>CatImpl</literal> implementa a interface <literal>Cat</"
-#~ "literal> e <literal>DomesticCatImpl</literal> implementa a interface "
-#~ "<literal>DomesticCat</literal>. Então proxies para instâncias de "
-#~ "<literal>Cat</literal> e <literal>DomesticCat</literal> serão retornadas "
-#~ "por <literal>load()</literal> ou <literal>iterate()</literal>. (Note que "
-#~ "<literal>list()</literal> geralmente não retorna proxies)."
-
-#~ msgid ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
-#~ msgstr ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
-
-#~ msgid ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
-#~ msgstr ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
-
-#~ msgid "yes"
-#~ msgstr "yes"
+#~ "Esta configuração cria duas novas regiões de cache, um conjunto de "
+#~ "resultado de consulta em cache de retenção (<literal>org.hibernate.cache."
+#~ "StandardQueryCache</literal>), os outros carimbos de data e hora "
+#~ "timestamps de retenção das atualizações recentes de tabelas consultáveis "
+#~ "(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note que "
+#~ "o cache de consulta não efetua o cache no estado das entidades atuais no "
+#~ "conjunto de resultados. Ele somente efetua o cache de valores de "
+#~ "identificadores e resulta em tipo de valor. Portanto, o cache de consulta "
+#~ "deve sempre ser usado junto ao cache de segundo nÃvel. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of persistent_classes.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: persistent_classes\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 17:20+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
-msgstr "Persistent Classes"
+msgstr "Classes Persistentes"
#. Tag: para
-#: persistent_classes.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
"of the business problem (e.g. Customer and Order in an E-commerce "
@@ -26,14 +131,14 @@
"in the persistent state. For example, an instance can instead be transient "
"or detached."
msgstr ""
-"Persistent classes are classes in an application that implement the entities "
-"of the business problem (e.g. Customer and Order in an E-commerce "
-"application). Not all instances of a persistent class are considered to be "
-"in the persistent state - an instance may instead be transient or detached."
+"As classes persistentes são classes dentro de um aplicativo que implementa "
+"as entidades de problemas de negócios (ex.: Cliente e Pedido em um "
+"aplicativo e-commerce). Nem todas as instâncias de uma classe persistente "
+"estão em estado persistente, uma instância pode, ao invés disso, ser "
+"transiente ou desanexada. "
#. Tag: para
-#: persistent_classes.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
"as the Plain Old Java Object (POJO) programming model. However, none of "
@@ -41,128 +146,43 @@
"about the nature of your persistent objects. You can express a domain model "
"in other ways (using trees of <literal>Map</literal> instances, for example)."
msgstr ""
-"Hibernate works best if these classes follow some simple rules, also known "
-"as the Plain Old Java Object (POJO) programming model. However, none of "
-"these rules are hard requirements. Indeed, Hibernate3 assumes very little "
-"about the nature of your persistent objects. You may express a domain model "
-"in other ways: using trees of <literal>Map</literal> instances, for example."
+"O Hibernate trabalha melhor se estas classes seguirem uma regra simples, "
+"também conhecida como modelo de programação Objeto de Java Antigo Simples "
+"(POJO). No entanto, nenhuma destas regras são difÃceis solicitações. "
+"Certamente, o Hibernate3 considera muito pouco da natureza de seus objetos "
+"persistentes. Você pode expressar um modelo de domÃnio de outras formas (por "
+"exemplo: utilizando árvores de instâncias <literal>Map</literal>)."
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
-msgstr "A simple POJO example"
+msgstr "Um exemplo simples de POJO"
#. Tag: para
-#: persistent_classes.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
"example:"
msgstr ""
-"Most Java applications require a persistent class representing felines."
+"A maior parte dos aplicativos Java requerem uma classe persistente que "
+"representa os felinos. Por exemplo:"
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
"following sections."
msgstr ""
+"As quatro regras principais das classes persistentes são descritas em "
+"maiores detalhes nas seguintes seções."
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
-msgstr "Implement a no-argument constructor"
+msgstr "Implemente um construtor de não argumento"
#. Tag: para
-#: persistent_classes.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
"must have a default constructor (which can be non-public) so that Hibernate "
@@ -171,22 +191,20 @@
"<emphasis>package</emphasis> visibility for runtime proxy generation in "
"Hibernate."
msgstr ""
-"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
-"must have a default constructor (which may be non-public) so that Hibernate "
-"can instantiate them using <literal>Constructor.newInstance()</literal>. We "
-"strongly recommend having a default constructor with at least "
-"<emphasis>package</emphasis> visibility for runtime proxy generation in "
-"Hibernate."
+"<literal>Cat</literal> possui um construtor de não argumento. Todas as "
+"classes persistentes devem ter um construtor padrão (que não pode ser "
+"público), para que o Hibernate possa instanciá-lo utilizando um "
+"<literal>Constructor.newInstance()</literal>. Nós recomendamos enfaticamente "
+"ter um construtor padrão com ao menos uma visibilidade <emphasis>package</"
+"emphasis> para a geração de um proxy de tempo de espera no Hibernate. "
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
-msgstr "Provide an identifier property (optional)"
+msgstr "Providencie uma propriedade de identificador (opcional)"
#. Tag: para
-#: persistent_classes.xml:75
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
"property maps to the primary key column of a database table. The property "
@@ -196,102 +214,93 @@
"composite keys, you can use a user-defined class with properties of these "
"types (see the section on composite identifiers later in the chapter.)"
msgstr ""
-"<literal>Cat</literal> has a property called <literal>id</literal>. This "
-"property maps to the primary key column of a database table. The property "
-"might have been called anything, and its type might have been any primitive "
-"type, any primitive \"wrapper\" type, <literal>java.lang.String</literal> or "
-"<literal>java.util.Date</literal>. (If your legacy database table has "
-"composite keys, you can even use a user-defined class with properties of "
-"these types - see the section on composite identifiers later.)"
+"<literal>Cat</literal> possui uma propriedade chamada <literal>id</literal>. "
+"Esta propriedade mapeia para a coluna de chave primária de uma tabela de "
+"banco de dados. A propriedade pode ter sido chamada por qualquer nome e seu "
+"tipo pode ter sido qualquer um primitivo, ou qualquer tipo \"wrapper\", "
+"<literal>java.lang.String</literal> ou <literal>java.util.Date</literal>. Se "
+"sua tabela de banco de dados de legacia possuir chaves compostas, você "
+"também poderá usar uma classe de usuário definido, com propriedades destes "
+"tipos (veja a seção de identificadores compostos mais adiante.)"
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
"Hibernate keep track of object identifiers internally. We do not recommend "
"this, however."
msgstr ""
-"The identifier property is strictly optional. You can leave them off and let "
-"Hibernate keep track of object identifiers internally. We do not recommend "
-"this, however."
+"A propriedade de identificador é estritamente opcional. Você pode deixá-los "
+"desligados e deixar que o Hibernate encontre os identificadores de objeto "
+"internamente. No entanto, não recomendamos que faça isto."
#. Tag: para
-#: persistent_classes.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
"identifier property:"
msgstr ""
-"In fact, some functionality is available only to classes which declare an "
-"identifier property:"
+"Na verdade, algumas funcionalidades estão disponÃveis somente para classes "
+"que declaram uma propriedade de identificador:"
#. Tag: para
-#: persistent_classes.xml:96
#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see <xref linkend=\"objectstate-transitive\"/>"
+"Reconexão transitiva para objetos desanexados (atualização de cascata ou "
+"mesclagem de cascata) - veja <xref linkend=\"objectstate-transitive\" />"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
-msgstr "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
+msgstr "<literal>Session.saveOrUpdate()</literal>"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
-msgstr "Session.merge()"
-
#. Tag: para
-#: persistent_classes.xml:113
#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
+msgstr "<literal>Session.merge()</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
"persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
-"We recommend you declare consistently-named identifier properties on "
-"persistent classes. We further recommend that you use a nullable (ie. non-"
-"primitive) type."
+"Recomendamos que você declare propriedades de identificador nomeados de "
+"forma consistente nas classes persistentes e que você use um tipo anulável "
+"(ou seja, não primitivo)."
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
-msgstr "Prefer non-final classes (optional)"
+msgstr "Prefira classes não finais (opcional)"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
"the persistent class being either non-final, or the implementation of an "
"interface that declares all public methods."
msgstr ""
-"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
-"the persistent class being either non-final, or the implementation of an "
-"interface that declares all public methods."
+"Um recurso central do Hibernate, <emphasis>proxies</emphasis>, depende da "
+"classe persistente ser tanto não final como uma implementação de uma "
+"interface que declare todos os métodos públicos."
#. Tag: para
-#: persistent_classes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
"interface with Hibernate. You will not, however, be able to use proxies for "
"lazy association fetching which will ultimately limit your options for "
"performance tuning."
msgstr ""
-"You can persist <literal>final</literal> classes that do not implement an "
-"interface with Hibernate, but you won't be able to use proxies for lazy "
-"association fetching - which will limit your options for performance tuning."
+"Você pode persistir as classes <literal>final</literal> que não implementam "
+"uma interface com o Hibernate, mas não poderá usar os proxies para busca por "
+"associação lazy, que irá limitar suas opções para ajuste de desempenho. "
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -299,20 +308,18 @@
"final</literal> method, you must explicitly disable proxying by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"You should also avoid declaring <literal>public final</literal> methods on "
-"the non-final classes. If you want to use a class with a <literal>public "
-"final</literal> method, you must explicitly disable proying by setting "
-"<literal>lazy=\"false\"</literal>."
+"Você deve evitar declarar métodos <literal>public final</literal> em classes "
+"não finais. Se você desejar usar uma classe com um método <literal>public "
+"final</literal> você deve desabilitar o proxy explicitamente, ajustando "
+"<literal>lazy=\"false\"</literal>. "
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
-msgstr "Declare accessors and mutators for persistent fields (optional)"
+msgstr "Declare acessores e mutadores para campos persistentes (opcional)"
#. Tag: para
-#: persistent_classes.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
"fields. Many other ORM tools directly persist instance variables. It is "
@@ -322,100 +329,75 @@
"literal>, <literal>isFoo</literal> and <literal>setFoo</literal>. If "
"required, you can switch to direct field access for particular properties."
msgstr ""
-"<literal>Cat</literal> declares accessor methods for all its persistent "
-"fields. Many other ORM tools directly persist instance variables. We believe "
-"it is better to provide an indirection between the relational schema and "
-"internal data structures of the class. By default, Hibernate persists "
-"JavaBeans style properties, and recognizes method names of the form "
-"<literal>getFoo</literal>, <literal>isFoo</literal> and <literal>setFoo</"
-"literal>. You may switch to direct field access for particular properties, "
-"if needed."
+"<literal>Cat</literal> declara os métodos assessores para todos os seus "
+"campos persistentes. Muitas ferramentas ORM persistem diretamente variáveis "
+"de instâncias. Acreditamos ser melhor prover uma indireção entre o esquema "
+"relacional e as estruturas de dados internos da classe. Por padrão, o "
+"Hibernate persiste as propriedades de estilo JavaBeans, e reconhece nomes de "
+"métodos da forma <literal>getFoo</literal>, <literal>isFoo</literal> e "
+"<literal>setFoo</literal>. Caso solicitado, você pode mudar para direcionar "
+"acesso ao campo para certas propriedades, caso seja necessário. "
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
"persist a property with a default, <literal>protected</literal> or "
"<literal>private</literal> get / set pair."
msgstr ""
-"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
-"persist a property with a default, <literal>protected</literal> or "
-"<literal>private</literal> get / set pair."
+"As propriedades precisam <emphasis>not</emphasis> ser declaradas como "
+"públicas. O Hibernate pode persistir uma propriedade com um par get/set "
+"padrão <literal>protegido</literal> ou <literal>privado</literal>."
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
-msgstr "Implementing inheritance"
+msgstr "Implementando herança"
#. Tag: para
-#: persistent_classes.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
"identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
-"A subclass must also observe the first and second rules. It inherits its "
-"identifier property from the superclass, <literal>Cat</literal>."
+"Uma subclasse também deve observar as primeiras e segundas regras. Ela herda "
+"sua propriedade de identificador a partir das superclasses, <literal>Cat</"
+"literal>. Por exemplo:"
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
msgstr ""
-"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
+"Implementando <literal>equals()</literal> e <literal>hashCode()</literal> "
#. Tag: para
-#: persistent_classes.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
"</literal> methods if you:"
msgstr ""
-"You have to override the <literal>equals()</literal> and <literal>hashCode()"
-"</literal> methods if you"
+"Você precisa substituir os métodos <literal>equals()</literal> e "
+"<literal>hashCode()</literal> se você:"
#. Tag: para
-#: persistent_classes.xml:181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
"(the recommended way to represent many-valued associations); <emphasis>and</"
"emphasis>"
msgstr ""
-"intend to put instances of persistent classes in a <literal>Set</literal> "
-"(the recommended way to represent many-valued associations) <emphasis>and</"
-"emphasis>"
+"pretender inserir instâncias de classes persistentes em um <literal>Set</"
+"literal> (a forma mais recomendada é representar associações de muitos "
+"valores), <emphasis>e</emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
-msgstr "intend to use reattachment of detached instances"
+msgstr "pretender usar reconexão de instâncias desanexadas"
#. Tag: para
-#: persistent_classes.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
"Java identity only inside a particular session scope. When you mix instances "
@@ -423,15 +405,15 @@
"literal> and <literal>hashCode()</literal> if you wish to have meaningful "
"semantics for <literal>Set</literal>s."
msgstr ""
-"Hibernate guarantees equivalence of persistent identity (database row) and "
-"Java identity only inside a particular session scope. So as soon as we mix "
-"instances retrieved in different sessions, we must implement <literal>equals"
-"()</literal> and <literal>hashCode()</literal> if we wish to have meaningful "
-"semantics for <literal>Set</literal>s."
+"O Hibernate garante a equivalência de identidades persistentes (linha de "
+"base de dados) e identidade Java somente dentro de um certo escopo de "
+"sessão. Dessa forma, assim que misturarmos instâncias recuperadas em sessões "
+"diferentes, devemos implementar <literal>equals()</literal> e "
+"<literal>hashCode()</literal> se quisermos ter semânticas significativas "
+"para os <literal>Set</literal>s. "
#. Tag: para
-#: persistent_classes.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
"<literal>hashCode()</literal> by comparing the identifier value of both "
@@ -448,25 +430,25 @@
"the Hibernate website for a full discussion of this problem. This is not a "
"Hibernate issue, but normal Java semantics of object identity and equality."
msgstr ""
-"The most obvious way is to implement <literal>equals()</literal>/"
-"<literal>hashCode()</literal> by comparing the identifier value of both "
-"objects. If the value is the same, both must be the same database row, they "
-"are therefore equal (if both are added to a <literal>Set</literal>, we will "
-"only have one element in the <literal>Set</literal>). Unfortunately, we "
-"can't use that approach with generated identifiers! Hibernate will only "
-"assign identifier values to objects that are persistent, a newly created "
-"instance will not have any identifier value! Furthermore, if an instance is "
-"unsaved and currently in a <literal>Set</literal>, saving it will assign an "
-"identifier value to the object. If <literal>equals()</literal> and "
-"<literal>hashCode()</literal> are based on the identifier value, the hash "
-"code would change, breaking the contract of the <literal>Set</literal>. See "
-"the Hibernate website for a full discussion of this problem. Note that this "
-"is not a Hibernate issue, but normal Java semantics of object identity and "
-"equality."
+"A forma mais óbvia é implementar <literal>equals()</literal>/"
+"<literal>hashCode()</literal> comparando o valor do identificador de ambos "
+"objetos. Caso o valor seja o mesmo, ambos devem ter a mesma linha de base de "
+"dados, assim eles serão iguais (se ambos forem adicionados a um "
+"<literal>Set</literal>, nós só teremos um elemento no <literal>Set</"
+"literal>). Infelizmente, não podemos usar esta abordagem com os "
+"identificadores gerados. O Hibernate atribuirá somente os valores de "
+"identificadores aos objetos que forem persistentes, uma instância "
+"recentemente criada não terá nenhum valor de identificador. Além disso, se "
+"uma instância não for salva e estiver em um <literal>Set</literal>, salvá-la "
+"atribuirá um valor de identificador ao objeto. Se <literal>equals()</"
+"literal> e <literal>hashCode()</literal> fossem baseados em um valor "
+"identificador, o código hash teria mudado, quebrando o contrato do "
+"<literal>Set</literal>. Consulte o website do Hibernate para acessar uma "
+"discussão completa sobre este problema. Note que esta não é uma edição do "
+"Hibernate, e sim semânticas naturais do Java de igualdade e identidade."
#. Tag: para
-#: persistent_classes.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> using <emphasis>Business key equality</"
@@ -475,79 +457,46 @@
"that would identify our instance in the real world (a <emphasis>natural</"
"emphasis> candidate key):"
msgstr ""
-"We recommend implementing <literal>equals()</literal> and <literal>hashCode()"
-"</literal> using <emphasis>Business key equality</emphasis>. Business key "
-"equality means that the <literal>equals()</literal> method compares only the "
-"properties that form the business key, a key that would identify our "
-"instance in the real world (a <emphasis>natural</emphasis> candidate key):"
+"Recomendamos implementar <literal>equals()</literal> e <literal>hashCode()</"
+"literal> usando <emphasis>Business key equality</emphasis>. A chave de "
+"negócios significa que o método <literal>equals()</literal> compara somente "
+"a propriedade que formar uma chave de negócios, uma chave que identificaria "
+"nossa instância na realidade (uma chave de candidato <emphasis>natural</"
+"emphasis>): "
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
-"Note that a business key does not have to be as solid as a database primary "
-"key candidate (see <xref linkend=\"transactions-basics-identity\"/>). "
-"Immutable or unique properties are usually good candidates for a business "
-"key."
+"Note que uma chave de negócios não tem que ser tão sólida quanto um "
+"candidato de chave primária de base de dados (veja <xref linkend="
+"\"transactions-basics-identity\"/>). Propriedades imutáveis ou únicas são "
+"bons candidatos para uma chave de negócios. "
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
-msgstr "Dynamic models"
+msgstr "Modelos dinâmicos"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
msgstr ""
-"Note that the following features are currently considered experimental and "
-"may change in the near future."
+"<emphasis>Os recursos seguintes são considerados experimentais no momento e "
+"podem mudar no futuro.</emphasis>"
#. Tag: para
-#: persistent_classes.xml:246
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
"classes or as JavaBean objects at runtime. Hibernate also supports dynamic "
@@ -555,131 +504,62 @@
"and the representation of entities as DOM4J trees. With this approach, you "
"do not write persistent classes, only mapping files."
msgstr ""
-"Persistent entities don't necessarily have to be represented as POJO classes "
-"or as JavaBean objects at runtime. Hibernate also supports dynamic models "
-"(using <literal>Map</literal>s of <literal>Map</literal>s at runtime) and "
-"the representation of entities as DOM4J trees. With this approach, you don't "
-"write persistent classes, only mapping files."
+"Entidades persistentes não precisam ser representadas como classes POJO ou "
+"como objetos JavaBeans em tempo de espera. O Hibernate também suporta "
+"modelos dinâmicos (usando <literal>Map</literal>s de <literal>Map</literal>s "
+"em tempo de execução) e a representação de entidades como árvores DOM4J. Com "
+"esta abordagem, você não escreve classes persistes, somente arquivos de "
+"mapeamentos. "
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
-"By default, Hibernate works in normal POJO mode. You may set a default "
-"entity representation mode for a particular <literal>SessionFactory</"
-"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>."
+"Por padrão, o Hibernate funciona em modo POJO normal. Você deve ajustar um "
+"modo de representação de entidade por padrão para uma certa "
+"<literal>SessionFactory</literal> usando a opção de configuração "
+"<literal>default_entity_mode</literal> (veja <xref linkend=\"configuration-"
+"optional-properties\"/>). "
#. Tag: para
-#: persistent_classes.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
"literal>s. First, in the mapping file an <literal>entity-name</literal> has "
"to be declared instead of, or in addition to, a class name:"
msgstr ""
-"The following examples demonstrates the representation using <literal>Map</"
-"literal>s. First, in the mapping file, an <literal>entity-name</literal> has "
-"to be declared instead of (or in addition to) a class name:"
+"Os seguintes exemplos demonstram a representação usando <literal>Map</"
+"literal>s. Primeiro, no arquivo de mapeamento, um <literal>entity-name</"
+"literal> precisa ser declarado ao invés de (ou além de) um nome de classe:"
-#. Tag: programlisting
-#: persistent_classes.xml:267
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:269
-#, fuzzy, no-c-format
-msgid ""
"Even though associations are declared using target class names, the target "
"type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
-"Note that even though associations are declared using target class names, "
-"the target type of an associations may also be a dynamic entity instead of a "
-"POJO."
+"Note que embora as associações sejam declaradas utilizando nomes de classe, "
+"o tipo alvo de uma associação pode também ser uma entidade dinâmica, ao "
+"invés de um POJO. "
#. Tag: para
-#: persistent_classes.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
"the <literal>SessionFactory</literal>, you can, at runtime, work with "
"<literal>Map</literal>s of <literal>Map</literal>s:"
msgstr ""
-"After setting the default entity mode to <literal>dynamic-map</literal> for "
-"the <literal>SessionFactory</literal>, we can at runtime work with "
-"<literal>Map</literal>s of <literal>Map</literal>s:"
+"Após ajustar o modo de entidade padrão para <literal>dynamic-map</literal> "
+"para a <literal>SessionFactory</literal>, você poderá trabalhar com "
+"<literal>Map</literal>s de <literal>Map</literal>s no perÃodo de execução: "
-#. Tag: programlisting
-#: persistent_classes.xml:282
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:284
-#, fuzzy, no-c-format
-msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
"prototyping, without the need for entity class implementation. However, you "
"lose compile-time type checking and will likely deal with many exceptions at "
@@ -687,45 +567,26 @@
"easily be normalized and sound, allowing to add a proper domain model "
"implementation on top later on."
msgstr ""
-"The advantages of a dynamic mapping are quick turnaround time for "
-"prototyping without the need for entity class implementation. However, you "
-"lose compile-time type checking and will very likely deal with many "
-"exceptions at runtime. Thanks to the Hibernate mapping, the database schema "
-"can easily be normalized and sound, allowing to add a proper domain model "
-"implementation on top later on."
+"As vantagens de um mapeamento dinâmico são o tempo de retorno rápido para "
+"realizar o protótipo sem a necessidade de implementar uma classe de "
+"entidade. No entanto, você perde o tipo de tempo de compilação, verificando "
+"e muito provavelmente terá que lidar com muitas exceções de tempo de espera. "
+"Graças ao mapeamento do Hibernate, o esquema do banco de dados pode ser "
+"facilmente normalizado e seguro, permitindo adicionar uma implementação "
+"modelo de domÃnio apropriado na camada do topo num futuro próximo. "
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
"literal> basis:"
msgstr ""
-"Entity representation modes can also be set on a per <literal>Session</"
-"literal> basis:"
+"Modos de representação de entidade podem ser também ajustados para base por "
+"<literal>Session</literal>:"
-#. Tag: programlisting
-#: persistent_classes.xml:297
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:300
-#, fuzzy, no-c-format
-msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
@@ -735,34 +596,31 @@
"literal>, and also leave the transaction and connection handling to the "
"primary unit of work."
msgstr ""
-"Please note that the call to <literal>getSession()</literal> using an "
-"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
-"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
-"literal> shares the underlying JDBC connection, transaction, and other "
-"context information. This means you don't have tocall <literal>flush()</"
-"literal> and <literal>close()</literal> on the secondary <literal>Session</"
-"literal>, and also leave the transaction and connection handling to the "
-"primary unit of work."
+"Por favor, note que a chamada para a <literal>getSession()</literal> usando "
+"um <literal>EntityMode</literal> está na API de <literal>Session</literal> e "
+"não na <literal>SessionFactory</literal>. Dessa forma, a nova "
+"<literal>Session</literal> compartilha a conexão, transação e outra "
+"informação de contexto JDBC adjacente. Isto significa que você não precisará "
+"chamar <literal>flush()</literal> e <literal>close()</literal> na "
+"<literal>Session</literal> secundária, e também deixar a transação e o "
+"manuseio da conexão para a unidade primária do trabalho. "
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"<xref linkend=\"xml\" />."
msgstr ""
-"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
+"Você poderá encontrar maiores informações sobre as atividades de "
+"representação XML em <xref linkend=\"xml\" />."
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
-msgstr "Tuplizers"
+msgstr "Tuplizadores"
#. Tag: para
-#: persistent_classes.xml:320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
"responsible for managing a particular representation of a piece of data "
@@ -774,23 +632,17 @@
"through its constructor. It also knows how to access the POJO properties "
"using the defined property accessors."
msgstr ""
-"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
-"responsible for managing a particular representation of a piece of data, "
-"given that representation's <literal>org.hibernate.EntityMode</literal>. If "
-"a given piece of data is thought of as a data structure, then a tuplizer is "
-"the thing which knows how to create such a data structure and how to extract "
-"values from and inject values into such a data structure. For example, for "
-"the POJO entity mode, the correpsonding tuplizer knows how create the POJO "
-"through its constructor and how to access the POJO properties using the "
-"defined property accessors. There are two high-level types of Tuplizers, "
-"represented by the <literal>org.hibernate.tuple.EntityTuplizer</literal> and "
-"<literal>org.hibernate.tuple.ComponentTuplizer</literal> interfaces. "
-"<literal>EntityTuplizer</literal>s are responsible for managing the above "
-"mentioned contracts in regards to entities, while "
-"<literal>ComponentTuplizer</literal>s do the same for components."
+"<literal>org.hibernate.tuple.Tuplizer</literal>, e suas sub-interfaces, são "
+"responsáveis por gerenciar uma certa representação de uma parte de dado, "
+"dada a <literal>org.hibernate.EntityMode</literal> da representação. Se uma "
+"parte de dado é tida como uma estrutura de dado, então o tuplizador se "
+"encarrega de criar tal estrutura de dado e como extrair e injetar valores de "
+"e em tal estrutura de dados. Por exemplo, para um modo POJO, o tuplizador "
+"correspondente sabe como criar um POJO através de seu construtor. Além "
+"disso, ele sabe como acessar propriedades de POJO usando assessores de "
+"propriedades definidas. "
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -800,10 +652,15 @@
"mentioned contracts in regards to entities, while "
"<literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
+"Existem dois tipos de alto nÃvel de Tuplizadores, representados pelas "
+"interfaces <literal>org.hibernate.tuple.entity.EntityTuplizer</literal> e "
+"<literal>org.hibernate.tuple.component.ComponentTuplizer</literal>. Os "
+"<literal>EntityTuplizer</literal>s são responsáveis pelo gerenciamento dos "
+"contratos mencionados acima em relação às entidades, enquanto os "
+"<literal>ComponentTuplizer</literal>s realizam o mesmo para os componentes."
#. Tag: para
-#: persistent_classes.xml:338
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
"<literal>java.util.Map</literal> implementation other than <literal>java."
@@ -814,64 +671,22 @@
"mapping they are meant to manage. Going back to the example of our customer "
"entity:"
msgstr ""
-"Users may also plug in their own tuplizers. Perhaps you require that a "
-"<literal>java.util.Map</literal> implementation other than <literal>java."
-"util.HashMap</literal> be used while in the dynamic-map entity-mode; or "
-"perhaps you need to define a different proxy generation strategy than the "
-"one used by default. Both would be achieved by defining a custom tuplizer "
-"implementation. Tuplizers definitions are attached to the entity or "
-"component mapping they are meant to manage. Going back to the example of our "
-"customer entity:"
+"Os usuários podem também plugar seu próprio tuplizador. Talvez você queira "
+"usar uma implementação <literal>java.util.Map</literal> ao invés de uma "
+"<literal>java.util.HashMap</literal> enquanto estiver no modo de entidade "
+"mapa dinâmico, ou talvez você precise definir uma estratégia de geração de "
+"proxy diferente, ao invés de uma utilizada por padrão. Ambas seriam "
+"alcançadas definindo uma implementação de tuplizador personalizada. As "
+"definições do tuplizador estão anexadas à entidade ou ao mapeamento de "
+"componente que tiverem que gerenciar. Retornando ao exemplo da entidade do "
+"nosso cliente:"
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
#, no-c-format
msgid "EntityNameResolvers"
-msgstr ""
+msgstr "EntityNameResolvers"
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -888,158 +703,41 @@
"dynamicentity.tuplizer2</package>. Here is some of the code from that "
"package for illustration."
msgstr ""
+"A interface <interfacename>org.hibernate.EntityNameResolver</interfacename> "
+"é um contrato para resolver o nome da entidade de uma instância de entidade "
+"dada. A interface define um <methodname>resolveEntityName</methodname> de "
+"método único que é passado à instância de entidade e é esperado a retornar "
+"ao nome de entidade apropriado (nulo é permitido e indicaria que o "
+"solucionador não saiba como resolver o nome de entidade da instância de "
+"entidade dada). Normalmente, um <interfacename>org.hibernate."
+"EntityNameResolver</interfacename> será mais útil no caso de modelos "
+"dinâmicos. Um exemplo poderá ser usado nas interfaces com proxie no caso dos "
+"modelos dinâmicos. O hibernate test suite possui um exemplo deste estilo "
+"exato de uso sob o <package>org.hibernate.test.dynamicentity.tuplizer2</"
+"package>. Segue abaixo parte do código a partir daquele pacote para "
+"ilustração."
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
"interfacename> users must either:"
msgstr ""
+"Com o objetivo de registrar um <interfacename>org.hibernate."
+"EntityNameResolver</interfacename>, os usuários devem tanto:"
#. Tag: para
-#: persistent_classes.xml:374
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
"link>, implementing the <methodname>getEntityNameResolvers</methodname> "
"method."
msgstr ""
+"Implementar um <xref linkend=\"persistent-classes-tuplizers\"/> "
+"personalizado, implementando o método <methodname>getEntityNameResolvers</"
+"methodname>. "
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
@@ -1047,11 +745,7 @@
"hibernate.SessionFactory</interfacename>) using the "
"<methodname>registerEntityNameResolver</methodname> method."
msgstr ""
-
-#~ msgid "There are four main rules to follow here:"
-#~ msgstr "There are four main rules to follow here:"
-
-#~ msgid ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
-#~ msgstr ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
+"Registrá-lo com o <classname>org.hibernate.impl.SessionFactoryImpl</"
+"classname> (que é a classe de implementação para <interfacename>org."
+"hibernate.SessionFactory</interfacename>) usando o método "
+"<methodname>registerEntityNameResolver</methodname>."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,133 @@
-# Language pt-BR translations for PACKAGE package.
-# Automatically generated, 2009.
-#
+# translation of portability.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: portability\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: 2009-07-14 19:56+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 18:37+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
-msgstr ""
+msgstr "Considerações da Portabilidade do Banco de Dados"
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
-msgstr ""
+msgstr "Fundamentos da Portabilidade"
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -38,15 +139,23 @@
"run against any number of databases without changes to your code, and "
"ideally without any changes to the mapping metadata."
msgstr ""
+"Um dos pontos de venda do Hibernate (e realmente Mapeamento do Objeto/"
+"Relacional como um conjunto) é a noção da portabilidade do banco de dados. "
+"Isto pode significar um usuário de TI interno migrando a partir de um "
+"fornecedor de banco de dados a outro, ou isto pode significar que um "
+"framework ou aplicativo implementável consumindo o Hibernate para produtos "
+"de banco de dados múltiplos de destinação simultaneamente pelos usuários. "
+"Independente do cenário exato, a idéia básica é que você queira que o "
+"Hibernate o ajude a rodar em referência a qualquer número de banco de dados "
+"sem as alterações a seu código e preferencialmente sem quaisquer alterações "
+"ao metadados de mapeamento."
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
-msgstr ""
+msgstr "Dialeto"
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -58,15 +167,21 @@
"your particular database is not among them, it is not terribly difficult to "
"write your own."
msgstr ""
+"A primeira linha de portabilidade para o Hibernate é o dialeto, que trata-se "
+"de uma especialização de um contrato <classname>org.hibernate.dialect."
+"Dialect</classname>. Um dialeto encapsula todas as diferenças em como o "
+"Hibernate deve comunicar-se com um banco de dados particular para completar "
+"algumas tarefas como obter um valor de seqüência ou estruturar uma consulta "
+"SELECT. O Hibernate vincula uma variedade de dialetos para muitos dos bancos "
+"de dados mais populares. Se você achar que seu banco de dados particular não "
+"está seguindo os mesmos, não será difÃcil escrever o seu próprio."
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
-msgstr ""
+msgstr "Resolução do Dialeto"
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -75,9 +190,14 @@
"their users to configure the Hibernate dialect or defining their own method "
"of setting that value."
msgstr ""
+"Originalmente, o Hibernate sempre solicita que os usuários especifiquem qual "
+"dialeto a ser usado. No caso dos usuários buscarem banco de dados múltiplos "
+"de destinação simultaneamente com as próprias construções que eram "
+"problemáticas. Normalmente, isto solicita que seus próprios usuários "
+"configurem o dialeto do Hibernate ou definam o próprio método de "
+"determinação do valor."
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -87,17 +207,22 @@
"that this resolution was limited to databases Hibernate know about ahead of "
"time and was in no way configurable or overrideable."
msgstr ""
+"Inicializando com a versão 3.2, o Hibernate introduziu a noção de detecção "
+"automática do dialeto para uso baseado no <interfacename>java.sql."
+"DatabaseMetaData</interfacename> obtido a partir de um <interfacename>java."
+"sql.Connection</interfacename> para aquele banco de dados. Era muito melhor, "
+"esperar que esta resolução limitada aos bancos de dados Hibernate soubesse "
+"com antecedência e que em ocasião alguma era configurável ou substituÃvel."
#. Tag: para
-#: portability.xml:72
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -108,9 +233,25 @@
"All other exceptions result in a warning and continuing on to the next "
"resolver."
msgstr ""
+"Inicializando com a versão 3.3, o Hibernate possui uma maneira muito mais "
+"potente para determinar automaticamente qual dialeto deve ser usado baseando-"
+"se numa série de delegações que determinam qual implementação deve ser usada "
+"baseando-se numa série de delegações que implementam o <interfacename>org."
+"hibernate.dialect.resolver.DialectResolver</interfacename> que define apenas "
+"um método único: <programlisting><![CDATA[public Dialect resolveDialect"
+"(DatabaseMetaData metaData) throws JDBCConnectionException]]></"
+"programlisting>. Este contrato básico é que se o solucionador 'entender' o "
+"metadados do banco de dados dado, ele retornará o Dialeto correspondente. "
+"Caso contrário, ele retornará nulo e o processo continuará ao próximo "
+"solucionador. A assinatura também identifica o <exceptionname>org.hibernate."
+"exception.JDBCConnectionException</exceptionname> como possivelmente "
+"lançado. Neste caso, o JDBCConnectionException é interpretado para implicar "
+"um problema de conexão (também conhecida com não-recuperável) \"não "
+"transiente\" e é usado para indicar uma parada imediata de tentativas de "
+"resolução. Todas as demais exceções resultam num aviso e dão continuidade ao "
+"próximo solucionador. "
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -124,16 +265,25 @@
"<constant>DIALECT_RESOLVERS</constant> constant on <classname>org.hibernate."
"cfg.Environment</classname>)."
msgstr ""
+"A melhor parte destes solucionadores é que os usuários também podem "
+"registrar os seus próprios solucionadores personalizados dos quais serão "
+"processados antes dos Hibernates internos. Isto poderá ser útil em um número "
+"diferente de situações: permite uma integração fácil de auto-detecção de "
+"dialetos além daqueles lançados com o próprio Hibernate. Além disto, permite "
+"que você especifique o uso de um dialeto personalizado quando um banco de "
+"dados particular é reconhecido, etc. Para registrar um ou mais "
+"solucionadores, apenas especifique-os (separados por vÃrgula, tabs ou "
+"espaços) usando o conjunto de configuração 'hibernate."
+"dialect_resolvers' (consulte a constante <constant>DIALECT_RESOLVERS</"
+"constant> no <classname>org.hibernate.cfg.Environment</classname>)."
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
-msgstr ""
+msgstr "Geração do identificador"
#. Tag: para
-#: portability.xml:100
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"When considering portability between databases, another important decision "
"is selecting the identifier generation stratagy you want to use. Originally "
@@ -151,38 +301,94 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
+"Quando considerando a portabilidade entre os bancos de dados, outra "
+"importante decisão é selecionar a estratégia de geração do identificador que "
+"você deseja usar. Originalmente, o Hibernate fornecia o gerador "
+"<emphasis>nativo</emphasis> para este propósito, que intencionava selecionar "
+"entre uma estratégia de <emphasis>seqüência</emphasis>, "
+"<emphasis>identidade</emphasis> ou <emphasis>tabela</emphasis> dependendo da "
+"capacidade do banco de dados adjacente. No entanto, uma implicação insidiosa "
+"desta abordagem vêem quando destinando alguns bancos de dados que suportam a "
+"geração de identidade e outros que não suportam. A geração "
+"<emphasis>identidade</emphasis> baseia-se na definição de uma coluna (ou "
+"auto-incremento) IDENTITY para gerenciar o valor identificador. Isto é "
+"conhecido como estratégia de geração pós-inserção devido à inserção ter que "
+"ocorrer antes que nós possamos conhecer o valor identificador. Devido ao "
+"Hibernate depender neste valor identificador para unicamente referenciar "
+"entidades com um contexto persistente, ele deverá imprimir a inserção "
+"imediatamente quando as solicitações dos usuários de entidade estiverem "
+"associados com a sessão (como através save() e.g.) independente das "
+"semânticas de transação atual. O problema adjacente é que as semânticas do "
+"próprio aplicativo alteram nestes casos."
#. Tag: para
-#: portability.xml:125
+#, fuzzy, no-c-format
+msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr ""
+"O Hibernate foi atualizado para que a inserção seja lenta em casos em que "
+"isto é possÃvel. "
+
+#. Tag: note
#, no-c-format
msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
+"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
+"targetting portability in a much different way."
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
-msgstr ""
+msgstr "Funções do banco de dados"
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +397,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -200,9 +405,13 @@
"knows how to render that particular function, perhaps even using a totally "
"different physical function call."
msgstr ""
+"SQL functions can be referenced in many ways by users. However, not all "
+"databases support the same set of functions. Hibernate, provides a means of "
+"mapping a <emphasis>logical</emphasis> function name to a a delegate which "
+"knows how to render that particular function, perhaps even using a totally "
+"different physical function call."
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -211,24 +420,36 @@
"having to provide a custom dialect. This specific behavior is not fully "
"completed as of yet."
msgstr ""
+"Technically this function registration is handled through the <classname>org."
+"hibernate.dialect.function.SQLFunctionRegistry</classname> class which is "
+"intended to allow users to provide custom function definitions without "
+"having to provide a custom dialect. This specific behavior is not fully "
+"completed as of yet."
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
"functions with the <classname>org.hibernate.cfg.Configuration</classname> "
"and those functions will be recognized for HQL."
msgstr ""
+"It is sort of implemented such that users can programatically register "
+"functions with the <classname>org.hibernate.cfg.Configuration</classname> "
+"and those functions will be recognized for HQL."
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
msgstr ""
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
msgstr ""
+
+#~ msgid ""
+#~ "This is a new area in Hibernate and as such it is not as mature as the "
+#~ "overall Hibernate experience."
+#~ msgstr ""
+#~ "This is a new area in Hibernate and as such it is not as mature as the "
+#~ "overall Hibernate experience."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,129 @@
+# translation of Preface.po to
+# translation of preface.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Preface\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 18:38+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "Prefácio"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -27,31 +133,29 @@
"representation from an object model to a relational data model with a SQL-"
"based schema."
msgstr ""
-"Trabalhando com software orientado a objetos e banco de dados relacional, "
-"podemos ter alguns incômodos hoje em dia em ambientes empresariais. "
-"Hibernate é uma ferramenta que mapeia o objeto/relacional para o ambiente "
-"Java. O termo de mapeamento de objeto/relacional (ou ORM Â Object/Relational "
-"Mapping) se refere a técnica de mapear uma representação de dados de um "
-"modelo de objeto para dados de modelo relacional com o esquema baseado em SQL"
+"O trabalho com o software objeto relacional e banco de dados relacionais, "
+"pode ser incômodo e desgastante atualmente num meio empresarial. Hibernate é "
+"um objeto/relacional de mapeamento de ferramentas nos meios Java. O termo "
+"objeto/relacional de mapeamento ( ORM ) refere-se à técnica de mapeamento de "
+"dados, representada desde o objeto modelo aos dados relacionais modelo com "
+"um esquema baseado na SQL. "
#. Tag: para
-#: preface.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
"tables (and from Java data types to SQL data types), but also provides data "
"query and retrieval facilities. It can also significantly reduce development "
"time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
-"O Hibernate não somente cuida do mapeamento de classes em Java para tabelas "
-"de banco de dados (e de tipos de dados em Java para tipos de dados em SQL), "
-"como também fornece facilidade de consultas e recuperação de dados, podendo "
-"também reduzir significantemente o tempo de desenvolvimento gasto com a "
-"manipulação manual de dados no SQL e JDBC."
+"O Hibernate não cuida apenas do mapeamento desde às classes de Java até as "
+"mesas de banco de dados (e de tipos de dados Java até tipos de dados da "
+"SQL), mas também proporciona a consulta de dados e facildades de recuperação "
+"que pode significativamente reduzir o tempo de desenvolvimento. Do "
+"contrário, consumido com o manual de dados executados em SQL e JDBC. "
#. Tag: para
-#: preface.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
"persistence related programming tasks. Hibernate may not be the best "
@@ -62,52 +166,48 @@
"specific SQL code and will help with the common task of result set "
"translation from a tabular representation to a graph of objects."
msgstr ""
-"O objetivo do Hibernate é de aliviar o desenvolvedor de 95 por cento das "
-"tarefas de programação relacionadas aos dados comuns de persistência. O "
-"Hibernate talvez não seja a melhor solução para aplicações de dados-data-"
-"centric que somente usa stored-procedures para implementar a lógica de "
-"negócio no banco de dados, isto é muito utilizado com o domÃnio de modelos "
-"orientado a objetos e lógicas de negócio em camadas do meio (middle-tier) "
-"baseadas em Java. Porém, o Hibernate poderá certamente ajuda-lo a remover ou "
-"encapsular o código SQL de um vendedor especÃfico, ajudando também com a "
-"tarefa comum da tradução do resultado ajustado de uma representação para um "
+"A meta de Hibernate é aliviar o desenvolvedor em 95% de dados comuns de "
+"persistência relacionados as tarefas de programação. O Hibernate talvez não "
+"seja a melhor solução para as aplicações centradas em dados, das quais "
+"apenas usam procedimentos armazenados para a implementação das lógicas "
+"comerciais no banco de dados. Isto é mais utilizado orientando o objeto aos "
+"modelos de domÃnio e lógicas comerciais na camada intermediária baseada em "
+"Java. No entanto, o Hibernate pode certamente ajudá-lo a remover ou "
+"condensar o especÃfico código fornecedor SQL, e ajudará com a tarefa comum "
+"de resultado estabelecido pela tradução desde a representação tabular até um "
"gráfico de objetos."
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
"please follow these steps:"
msgstr ""
-"Se você for novo no Hibernate e no mapeamento Objeto/Relacional, ou até "
-"mesmo em Java, por favor, siga os seguintes passos."
+"Por favor siga os seguintes passos, caso você seja inexperiente com o "
+"Hibernate, Mapeamento Objeto/Relacional ou mesmo Java:"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
-"Leia <xref linkend=\"tutorial\"/> para um tutorial com instruções passo-a-"
-"passo. O código fonte para do tutorial está incluÃdo na distribuição no "
-"diretório <literal>doc/reference/tutorial/</literal>."
+"Leia <xref linkend=\"tutorial\"/> com passo-a-passo de instruções tutoriais. "
+"O código de origem tutorial está incluÃdo no diretório de distribuição "
+"<literal>doc/reference/tutorial/</literal>. "
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
msgstr ""
-"Leia o <xref linkend=\"architecture\"/> para entender o ambiente onde o "
-"Hibernate pode ser utilizado."
+"Leia <xref linkend=\"architecture\"/> para melhor entendimento dos meios "
+"onde Hibernate pode ser utilizado. "
#. Tag: para
-#: preface.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
"contains a simple standalone application. Copy your JDBC driver to the "
@@ -116,64 +216,58 @@
"command prompt in the distribution directory, type <literal>ant eg</literal> "
"(using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
-"Dê uma olhada no diretório de exemplo <literal>eg/</literal> da distribuição "
-"do Hibernate, ele contém uma simples aplicação standalone. Copie seu driver "
-"JDBC para o diretório <literal>lib/</literal> e edite o arquivo <literal>etc/"
-"hibernate.properties</literal>, especificando corretamente os valores para "
-"seu banco de dados. Usando o prompt de commando no diretorio de "
-"distribuicao, digite <literal>ant eg</literal> (usando Ant), ou no Windows, "
-"digite <literal>build eg</literal>."
+"Verifique no diretório <literal>eg/</literal> em sua distribuição de "
+"Hibernate, do qual possui uma simples aplicação autônoma. Copie seu driver "
+"JDBC para o diretório <literal>lib/</literal> e edite <literal>eg/hibernate."
+"properties</literal>, especificando valores corretos para o seu banco de "
+"dados. No diretório de distribuição sob o comando aviso, digite <literal>ant "
+"eg</literal> (usando Ant), ou sob Windows, digite <literal>build eg</"
+"literal>. "
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
msgstr ""
-"Use esta documentação de referencia como sua fonte primaria de informação. "
-"Considere ler também o livro <emphasis>Java Persistence with Hibernate</"
-"emphasis> (http://www.manning.com/bauer2) caso você precise de mais ajuda "
-"com o desenvolvimento de aplicações ou caso prefira um tutorial passo-a-"
-"passo. Também visite o site http://caveatemptor.hibernate.org e faça o "
-"download da aplicação de exemplo do Java Persistence with Hibernate."
+"Utilize esta documentação de referência como a sua primeira fonte de "
+"informação. Considere a leitura <emphasis> Persistência Java com Hibernate </"
+"emphasis> (http://www.manning.com/bauer2), caso você precise de auxÃlio com "
+"a aplicação de design, ou tutorial com passo-a-passo, caso seja desejado. "
+"Você pode também visitar http://caveatemptor.hibernate.org e fazer o "
+"download do exemplo de aplicação da Persistência Java com Hibernate."
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
msgstr ""
-"FAQs (perguntas feitas com mais freqüência) estão respondidas no site do "
-"Hibernate"
+"As respostas das perguntas mais freqüentes podem ser encontradas no website "
+"Hibernate. "
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
"Hibernate website."
msgstr ""
-"Demonstrações, exemplos e tutorials estão disponÃveis no site do Hibernate."
+"A terceira parte de demonstração, exemplos e tutoriais estão vinculadas no "
+"website Hibernate. "
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
"patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, "
"etc.)."
msgstr ""
-"A Ãrea da comunidade no site do Hibernate é uma boa fonte de recursos para "
-"padrões de projeto e várias soluções de integração (Tomcat, JBoss AS, "
-"Struts, EJB, etc.)."
+"A Ãrea de Comunidade no website Hibernate é um bom recurso para parceiros de "
+"design e várias soluções integradas. ( Tomcat, JBoss AS, Struts, EJB, etc. )"
#. Tag: para
-#: preface.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
"We also provide a JIRA issue tracking system for bug reports and feature "
@@ -181,14 +275,15 @@
"developer mailing list. If you are interested in translating this "
"documentation into your language, contact us on the developer mailing list."
msgstr ""
-"Caso você tenha dúvidas, use o fórum dos usuários encontrado no site do "
-"Hibernate. Nós também fornecemos um sistema para controle de bugÂs (JIRA) "
-"para relatórios de erros e requisições de features. Se você está interessado "
-"no desenvolvimento do Hibernate, junte-se a lista de e-mail dos "
-"desenvolvedores."
+"Em caso de dúvidas, utilize o fórum do usuário encontrado no website "
+"Hibernate. Nós também provemos o JIRA sistema de questão de rastreamento "
+"para os relatórios de erros de programação e recursos solicitados. Se você "
+"tem interesse no desenvolvimento do Hibernate, participe da lista de correio "
+"eletrônico do desenvolvedor. Caso você tenha interesse em traduzir este "
+"documento na sua própria lÃngua, por favor entre em contato conosco através "
+"da lista de correio eletrônico do desenvolvedor. "
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
@@ -197,8 +292,8 @@
"critical component of the JBoss Enterprise Middleware System (JEMS) suite of "
"products."
msgstr ""
-"Suporte comercial de desenvolvimento, suporte de produção e treinamento para "
-"o Hibernate está disponÃvel através do JBoss Inc. (veja http://www.hibernate."
-"org/SupportTraining). O Hibernate é um Projeto Profissional de Código Aberto "
-"e um componente crÃtico da suÃte de produtos JBoss Enterprise Middleware "
-"System (JEMS)."
+"O suporte do desenvolvimento comercial, suporte de produção e treinamento de "
+"Hibernate está disponÃvel através do JBoss Inc. ( see http://www.hibernate."
+"org/SupportTraining/ ). Hibernate é um projeto de Fonte Aberta Profissional "
+"e componente crÃtico do Sistema Jboss de Empreendimento e Middleware "
+"( JEMS ) suÃte de produtos. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,62 +1,155 @@
+# translation of query_criteria.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_criteria\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 18:39+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
msgstr "Consultas por critérios"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
-msgstr "O Hibernate provê uma intuitiva e extensÃvel API de critério de query."
+msgstr ""
+"O Hibernate provê uma API de consulta por critério intuitiva e extensÃvel."
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
-msgstr "Criando uma instancia <literal>Criteria</literal>"
+msgstr "Criando uma instância <literal>Criteria</literal>"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
"against a particular persistent class. The <literal>Session</literal> is a "
"factory for <literal>Criteria</literal> instances."
msgstr ""
-"A interface <literal>org.hibernate.Criteria</literal> representa a query ao "
-"invés de uma classe persistente particular. A sessão é uma fábrica para "
-"intancias de <literal>Criteria</literal> ."
+"A interface <literal>org.hibernate.Criteria</literal> representa a consulta "
+"ao invés de uma classe persistente particular. A sessão é uma fábrica para "
+"instâncias de <literal>Criteria</literal> ."
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
-msgstr "Limitando o result set"
+msgstr "Limitando o conjunto de resultados"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -64,458 +157,250 @@
"criterion.Restrictions</literal> defines factory methods for obtaining "
"certain built-in <literal>Criterion</literal> types."
msgstr ""
-"Um critério individual de query é uma instancia da interface <literal>org."
+"Um critério individual de consulta é uma instância da interface <literal>org."
"hibernate.criterion.Criterion</literal>. A classe <literal>org.hibernate."
"criterion.Restrictions</literal> define os métodos da fábrica para obter "
-"certos tipos pré fabricados de <literal>Criterion</literal>."
+"certos tipos de <literal>Criterion</literal> pré fabricados."
-#. Tag: programlisting
-#: query_criteria.xml:59
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Restrictions can be grouped logically."
-msgstr "Restrições podem ser logicamente agrupadas."
+msgstr "Restrições podem ser logicamente agrupadas. "
-#. Tag: programlisting
-#: query_criteria.xml:65
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:69
-#, fuzzy, no-c-format
-msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
"literal> subclasses). One of the most useful allows you to specify SQL "
"directly."
msgstr ""
-"Existe um grande número de critérios pré fabricados (subclasses de "
-"<literal>Restrictions</literal>), mas um é especialmente útil pois permite "
-"especificar o SQL diretamente."
+"Existe um grande número de critérios pré-fabricados (subclasses de "
+"<literal>Restrictions</literal>). Um dos mais úteis permite especificar o "
+"SQL diretamente."
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
"of the queried entity."
msgstr ""
-"O parametro <literal>{alias}</literal> será substituido pelo alias da "
+"O parâmetro <literal>{alias}</literal> será substituido pelo alias da "
"entidade procurada."
#. Tag: para
-#: query_criteria.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
"You can create a <literal>Property</literal> by calling <literal>Property."
"forName()</literal>:"
msgstr ""
-"Uma maneira alternativa de obter um critério é pegá-lo de uma instancia de "
+"Uma maneira alternativa de obter um critério é apartir de uma instância "
"<literal>Property</literal>. Você pode criar uma <literal>Property</literal> "
-"chamando <literal>Property.forName()</literal>."
+"chamando <literal>Property.forName()</literal>:"
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
-msgstr "Ordering the results"
+msgstr "Ordenando resultados"
#. Tag: para
-#: query_criteria.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
"literal>."
msgstr ""
-"You may order the results using <literal>org.hibernate.criterion.Order</"
-"literal>."
+"Você poderá ordenar os resultados usando <literal>org.hibernate.criterion."
+"Order</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
-msgstr "Associations"
+msgstr "Associações"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
+"Através da navegação de associações usando <literal>createCriteria()</"
+"literal>, você pode especificar restrições por entidades relacionadas:"
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:114
-#, fuzzy, no-c-format
-msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
"<literal>Criteria</literal> that refers to the elements of the "
"<literal>kittens</literal> collection."
msgstr ""
-"note that the second <literal>createCriteria()</literal> returns a new "
-"instance of <literal>Criteria</literal>, which refers to the elements of the "
-"<literal>kittens</literal> collection."
+"Note que o segundo <literal>createCriteria()</literal> retorna uma nova "
+"instância de <literal>Criteria</literal>, que refere aos elementos da "
+"coleção <literal>kittens</literal>."
#. Tag: para
-#: query_criteria.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
-msgstr "The following, alternate form is useful in certain circumstances."
+msgstr "A seguinte forma alternada é útil em certas circunstâncias:"
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
"<literal>Criteria</literal>.)"
msgstr ""
-"(<literal>createAlias()</literal> does not create a new instance of "
+"(<literal>createAlias()</literal> não cria uma nova instância de "
"<literal>Criteria</literal>.)"
#. Tag: para
-#: query_criteria.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
"returned by the previous two queries are <emphasis>not</emphasis> pre-"
"filtered by the criteria. If you want to retrieve just the kittens that "
"match the criteria, you must use a <literal>ResultTransformer</literal>."
msgstr ""
-"Note that the kittens collections held by the <literal>Cat</literal> "
-"instances returned by the previous two queries are <emphasis>not</emphasis> "
-"pre-filtered by the criteria! If you wish to retrieve just the kittens that "
-"match the criteria, you must use a <literal>ResultTransformer</literal>."
+"Note que as coleções de kittens mantidas pelas instâncias <literal>Cat</"
+"literal>, retornadas pelas duas consultas anteriores <emphasis>não</"
+"emphasis> são pré-filtradas pelo critério. Se você desejar recuperar somente "
+"os kittens que se encaixarem ao critérios, você deverá usar um "
+"<literal>ResultTransformer</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+msgid "Additionally you may manipulate the result set using a left outer join:"
msgstr ""
-#. Tag: title
-#: query_criteria.xml:143
+#. Tag: para
#, no-c-format
-msgid "Dynamic association fetching"
-msgstr "Dynamic association fetching"
+msgid ""
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
+msgstr ""
#. Tag: para
-#: query_criteria.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"You can specify association fetching semantics at runtime using "
-"<literal>setFetchMode()</literal>."
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
msgstr ""
-"You may specify association fetching semantics at runtime using "
-"<literal>setFetchMode()</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
msgstr ""
#. Tag: para
-#: query_criteria.xml:152
#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
+msgid "Dynamic association fetching"
+msgstr "Busca de associação dinâmica"
+
+#. Tag: para
+#, no-c-format
msgid ""
-"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
-"more information."
+"You can specify association fetching semantics at runtime using "
+"<literal>setFetchMode()</literal>."
msgstr ""
+"Você deve especificar as semânticas de busca de associação em tempo de "
+"execução usando <literal>setFetchMode()</literal>. "
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
+msgstr ""
+"Esta consulta fará a busca tanto de <literal>mate</literal> quanto de "
+"<literal>kittens</literal> por uma união externa. Para maiores informações, "
+"veja <xref linkend=\"performance-fetching\"/>. "
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
-msgstr "Example queries"
+msgstr "Exemplos de consultas"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
"construct a query criterion from a given instance."
msgstr ""
-"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
-"construct a query criterion from a given instance."
+"A classe <literal>org.hibernate.criterion.Example</literal> permite que você "
+"construa um critério de consulta a partir de uma dada instância."
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
"null valued properties are excluded."
msgstr ""
-"Version properties, identifiers and associations are ignored. By default, "
-"null valued properties are excluded."
+"Propriedades de versão, identificadores e associações são ignoradas. Por "
+"padrão, as propriedades de valor null são excluÃdas."
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
-msgstr "You can adjust how the <literal>Example</literal> is applied."
+msgstr "Você pode ajustar como o <literal>Exemplo</literal> é aplicado."
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
-msgstr "You can even use examples to place criteria upon associated objects."
-
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
msgstr ""
+"Você pode até usar os exemplos para colocar os critérios em objetos "
+"associados."
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
-msgstr "Projections, aggregation and grouping"
+msgstr "Projeções, agregações e agrupamento."
#. Tag: para
-#: query_criteria.xml:190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
"factory for <literal>Projection</literal> instances. You can apply a "
"projection to a query by calling <literal>setProjection()</literal>."
msgstr ""
-"The class <literal>org.hibernate.criterion.Projections</literal> is a "
-"factory for <literal>Projection</literal> instances. We apply a projection "
-"to a query by calling <literal>setProjection()</literal>."
+"A classe <literal>org.hibernate.criterion.Projections</literal> é uma "
+"fábrica para instâncias de <literal>Projection</literal>. Você pode aplicar "
+"uma projeção à uma consulta, chamando o <literal>setProjection()</literal>."
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
"projection types are defined to be <emphasis>grouping projections</"
"emphasis>, which also appear in the SQL <literal>group by</literal> clause."
msgstr ""
-"There is no explicit \"group by\" necessary in a criteria query. Certain "
-"projection types are defined to be <emphasis>grouping projections</"
-"emphasis>, which also appear in the SQL <literal>group by</literal> clause."
+"Não há necessidade de um \"agrupamento por\" explÃcito em uma consulta por "
+"critério. Certos tipos de projeção são definidos para serem "
+"<emphasis>projeções de agrupamento</emphasis>, que também aparecem em uma "
+"cláusula <literal>agrupamento por</literal>SQL."
#. Tag: para
-#: query_criteria.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
"referred to in restrictions or orderings. Here are two different ways to do "
"this:"
msgstr ""
-"An alias may optionally be assigned to a projection, so that the projected "
-"value may be referred to in restrictions or orderings. Here are two "
-"different ways to do this:"
+"Um alias pode ser atribuÃdo de forma opcional à uma projeção, assim o valor "
+"projetado pode ser referenciado em restrições ou ordenações. Aqui seguem "
+"duas formas diferentes para fazer isto: "
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -523,173 +408,60 @@
"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
"you add the projection to a projection list:"
msgstr ""
-"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
-"wrap a projection instance in another, aliased, instance of "
-"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
-"you add the projection to a projection list:"
+"Os métodos <literal>alias()</literal> e <literal>as()</literal> simplesmente "
+"envolvem uma instância de projeção à outra instância de <literal>Projeção</"
+"literal> em alias. Como um atalho, você poderá atribuir um alias quando "
+"adicionar a projeção à uma lista de projeção:"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
"projections:"
msgstr ""
-"You can also use <literal>Property.forName()</literal> to express "
-"projections:"
+"Você também pode usar um <literal>Property.forName()</literal> para "
+"expressar projeções:"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
-msgstr "Detached queries and subqueries"
+msgstr "Consultas e subconsultas desanexadas."
#. Tag: para
-#: query_criteria.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
"outside the scope of a session and then execute it using an arbitrary "
"<literal>Session</literal>."
msgstr ""
-"The <literal>DetachedCriteria</literal> class lets you create a query "
-"outside the scope of a session, and then later execute it using some "
-"arbitrary <literal>Session</literal>."
+"A classe <literal>DetachedCriteria</literal> deixa você criar uma consulta "
+"fora do escopo de uma sessão, e depois executá-la usando alguma "
+"<literal>Session</literal> arbitrária. "
-#. Tag: programlisting
-#: query_criteria.xml:244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:246
-#, fuzzy, no-c-format
-msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
"subquery. Criterion instances involving subqueries can be obtained via "
"<literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
-"A <literal>DetachedCriteria</literal> may also be used to express a "
-"subquery. Criterion instances involving subqueries may be obtained via "
-"<literal>Subqueries</literal> or <literal>Property</literal>."
+"Um <literal>DetachedCriteria</literal> também pode ser usado para expressar "
+"uma subconsulta. As instâncias de critérios, que envolvem subconsultas, "
+"podem ser obtidas através das <literal>Subqueries</literal> ou "
+"<literal>Property</literal>. "
-#. Tag: programlisting
-#: query_criteria.xml:252
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:256
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Correlated subqueries are also possible:"
-msgstr "Even correlated subqueries are possible:"
+msgstr "Até mesmo as subconsultas correlacionadas são possÃveis: "
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
-msgstr "Queries by natural identifier"
+msgstr "Consultas por um identificador natural"
#. Tag: para
-#: query_criteria.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
"efficient because query cache invalidation occurs too frequently. However, "
@@ -698,79 +470,40 @@
"applications, this kind of query occurs frequently. The criteria API "
"provides special provision for this use case."
msgstr ""
-"For most queries, including criteria queries, the query cache is not very "
-"efficient, because query cache invalidation occurs too frequently. However, "
-"there is one special kind of query where we can optimize the cache "
-"invalidation algorithm: lookups by a constant natural key. In some "
-"applications, this kind of query occurs frequently. The criteria API "
-"provides special provision for this use case."
+"Para a maioria das consultas, incluindo consultas de critérios, o cache de "
+"consulta não é muito eficiente, pois a invalidação do cache de consulta "
+"ocorre com muita frequência. No entanto, não há um tipo de consulta especial "
+"onde possamos otimizar um algoritmo de invalidação de cache: consultas "
+"realizadas por chaves naturais constantes. Em algumas aplicações, este tipo "
+"de consulta ocorre com freqüência. O API de critério provê provisão especial "
+"para este caso de uso. "
#. Tag: para
-#: query_criteria.xml:279
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
"literal> and enable use of the second-level cache."
msgstr ""
-"First, you should map the natural key of your entity using <literal><"
-"natural-id></literal>, and enable use of the second-level cache."
+"Primeiro, você deve mapear a chave natural de sua entidade usando um "
+"<literal><natural-id></literal> e habilitar o uso de um cache de "
+"segundo nÃvel."
-#. Tag: programlisting
-#: query_criteria.xml:284
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:286
-#, fuzzy, no-c-format
-msgid ""
"This functionality is not intended for use with entities with "
"<emphasis>mutable</emphasis> natural keys."
msgstr ""
-"Note that this functionality is not intended for use with entities with "
-"<emphasis>mutable</emphasis> natural keys."
+"Note que esta funcionalidade não é proposta para o uso com entidades com "
+"chaves naturais <emphasis>mutáveis</emphasis>. "
#. Tag: para
-#: query_criteria.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
"naturalId()</literal> allows you to make use of the more efficient cache "
"algorithm."
msgstr ""
-"Now, <literal>Restrictions.naturalId()</literal> allows us to make use of "
-"the more efficient cache algorithm."
-
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#~ msgid ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
-#~ msgstr ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
-
-#~ msgid "Next, enable the Hibernate query cache."
-#~ msgstr "Next, enable the Hibernate query cache."
+"Uma vez que você tenha ativado o cache de consulta Hibernate, o "
+"<literal>Restrictions.naturalId()</literal> nos permite que utilizemos um "
+"algoritmo de cache mais eficiente."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,43 +1,146 @@
+# translation of query_hql.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_hql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 18:42+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
-msgstr "HQL: A linguagem de Queries do Hibernate"
+msgstr "HQL: A Linguagem de Consultas do Hibernate"
#. Tag: para
-#: query_hql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
-"O Hibernate vem com uma poderosa linguagem que é (intencionalmente) muito "
-"parecida com o SQL. Mas não seja enganado pela sintaxe; a HQL é totalmente "
-"orientada à objetos, requer conhecimentos de herança, polimorfismo e "
+"O Hibernate vem com uma poderosa linguagem de consulta (HQL) que é muito "
+"parecida com o SQL. No entanto, comparado com o SQL o HQL é totalmente "
+"orientado à objetos, e compreende noções de herança, polimorfismo e "
"associações."
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
-msgstr "Case SensitÃve"
+msgstr "Diferenciação de maiúscula e minúscula"
#. Tag: para
-#: query_hql.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</"
@@ -45,266 +148,164 @@
"hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, "
"and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
-"As Queries não são case-sensitive, exceto pelo nomes das classes e "
-"propriedades Java. <literal>sELEct</literal> e o mesmo que <literal>SELECT</"
-"literal> mas <literal>org.hibernate.eg.FOO</literal> não é <literal>org."
-"hibernate.eg.Foo</literal> e <literal>foo.barSet</literal> não é "
-"<literal>foo.BARSET</literal>."
+"As Consultas não diferenciam maiúscula de minúscula, exceto pelo nomes das "
+"classes e propriedades Java. Portanto, <literal>SeLeCT</literal> é o mesmo "
+"que <literal>sELEct</literal> que é o mesmo que <literal>SELECT</literal>, "
+"mas <literal>org.hibernate.eg.FOO</literal> não é <literal>org.hibernate.eg."
+"Foo</literal> e <literal>foo.barSet</literal> não é <literal>foo.BARSET</"
+"literal>."
#. Tag: para
-#: query_hql.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
"Esse manual usa as palavras chave HQL em letras minúsculas. Alguns usuários "
-"acham que com letras maiúsculas as queries ficam mais legÃveis, mas nós "
-"achamos essa convenção feia dentro do código Java."
+"acreditam que com letras maiúsculas as consultas ficam mais legÃveis, mas "
+"nós acreditamos que este formato não é apropriado para o código Java. "
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
-msgstr "A clausula from"
+msgstr "A cláusula from"
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
-msgstr "A mais simples query possÃvel do Hibernate é a assim:"
+msgstr "A consulta mais simples possÃvel do Hibernate é a seguinte:"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
"not usually need to qualify the class name, since <literal>auto-import</"
"literal> is the default. For example:"
msgstr ""
-"Ela irá retornar todas as instancias da classe <literal>eg.Cat</literal>. "
-"Necessariamente não precisamos qualificar o nome da classe, pois é realizado "
-"<literal>auto-import</literal> por padrão. Por isso na maior parte do tempos "
-"nós simplesmente escrevemos:"
+"Isto simplesmente retornará todas as instâncias da classe <literal>eg.Cat</"
+"literal>. Geralmente não precisamos qualificar o nome da classe, uma vez que "
+"o <literal>auto-import</literal> é o padrão. Por exemplo:"
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
+"Com o objetivo de referir-se ao <literal>Cat</literal> em outras partes da "
+"consulta, você precisará determinar um <emphasis>alias</emphasis>. Por "
+"exemplo:"
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
"literal> instances, so you can use that alias later in the query. The "
"<literal>as</literal> keyword is optional. You could also write:"
msgstr ""
-"Essa query atribui um alias a <literal>cat</literal> para as instancias de "
-"<literal>Cat</literal>, então nós podemos usar esse alias depois na query. A "
-"palavra chave as é opcional; poderÃamos escrever assim:"
+"Essa consulta atribui um alias a <literal>cat</literal> para as instâncias "
+"de <literal>Cat</literal>, portanto poderemos usar esse alias mais tarde na "
+"consulta. A palavra chave <literal>as</literal> é opcional. Você também pode "
+"escrever assim:"
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
msgstr ""
-"Múltiplas classes pode ser envolvidas, resultando em um produto cartesiano "
-"ou \"cross\" join."
+"Classes múltiplas podem ser envolvidas, resultando em um produto cartesiano "
+"ou união \"cruzada\". "
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat</literal>)."
msgstr ""
-"à considerada uma boa prática os nomes dos aliases começarem com letra "
-"minúscula, aderente com os padrões Java para variáveis locais (ex: "
-"<literal>domesticCat</literal>)."
+"à considerada uma boa prática nomear alias de consulta, utilizando uma letra "
+"minúscula inicial, consistente com os padrões de nomeação Java para "
+"variáveis locais (ex.: <literal>domesticCat</literal>). "
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
-msgstr "Associações e joins"
+msgstr "Associações e uniões"
#. Tag: para
-#: query_hql.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join</literal>. For example:"
msgstr ""
-"Nós também podemos querer atribuir aliases em uma entidade associada, ou "
-"mesmo em elementos de uma coleção de valores, usando um <literal>join</"
-"literal>."
+"Podemos também atribuir aliases em uma entidade associada, ou mesmo em "
+"elementos de uma coleção de valores, usando uma <literal>join</literal>. Por "
+"exemplo:"
-#. Tag: programlisting
-#: query_hql.xml:114
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
+msgid "The supported join types are borrowed from ANSI SQL:"
+msgstr "Os tipos de uniões suportados foram inspirados no ANSI SQL:"
-#. Tag: programlisting
-#: query_hql.xml:116
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
+msgid "<literal>inner join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: programlisting
-#: query_hql.xml:118
-#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>inner join</literal>"
#. Tag: para
-#: query_hql.xml:120
#, fuzzy, no-c-format
-msgid "The supported join types are borrowed from ANSI SQL:"
-msgstr "Os tipos de joins suportados foram inspirados no SQL ANSI:"
+msgid "<literal>right outer join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: literal
-#: query_hql.xml:127
-#, no-c-format
-msgid "inner join"
-msgstr "inner join"
-
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "left outer join"
-
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
-msgstr "right outer join"
-
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
-msgstr "<literal>full join</literal> (geralmente não é útil)"
+msgstr "<literal>união completa</literal> (geralmente não é útil)"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
"<literal>right outer join</literal> constructs may be abbreviated."
msgstr ""
-"The <literal>inner join</literal>, <literal>left outer join</literal> and "
-"<literal>right outer join</literal> constructs may be abbreviated. As "
-"construções <literal>inner join</literal>, <literal>left outer join</"
-"literal> e <literal>right outer join</literal> podem ser abreviadas."
+"As construções <literal>inteiro</literal>, <literal>união esquerda externa</"
+"literal> e <literal>união direita externa</literal> podem ser abreviadas."
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
"keyword."
msgstr ""
-"Você pode fornecer condições extras de join usando a palavra chave do HQL "
+"Você pode fornecer condições extras de união usando a palavra chave do HQL "
"<literal>with</literal>."
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
-"Adicionalmente, um \"fetch\" join permite que associações ou coleções de "
-"valores sejam inicializadas junto com o objeto pai, usando apenas um select. "
-"Isso é muito útil no caso das coleções. Isso efetivamente sobre escreve as "
-"declarações outer join e lazy do arquivo mapeamento para associações e "
-"coleções. Veja a seção <xref linkend=\"performance-fetching\"/> para mais "
-"informações."
+"A união de \"busca\" permite que associações ou coleções de valores sejam "
+"inicializadas junto com o objeto pai, usando apenas um select. Isso é muito "
+"útil no caso das coleções. Isso efetivamente substitui as declarações união "
+"externa e lazy do arquivo de mapeamento para associações e coleções. Veja a "
+"seção <xref linkend=\"performance-fetching\"/> para mais informações."
-#. Tag: programlisting
-#: query_hql.xml:169
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:171
-#, fuzzy, no-c-format
-msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where</literal> clause "
"(or any other clause). The associated objects are also not returned directly "
@@ -312,28 +313,17 @@
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
-"Usualmente, um <literal>fetch</literal>join não precisa atribuir um alias, "
-"pois o objeto associado não deve ser usado na clausula <literal>where</"
-"literal> (ou em qualquer outra clausula). Também, os objetos associados não "
-"são retornados diretamente nos resultados da query. Ao invés disso, eles "
-"devem ser acessados usando o objeto pai. A única razão que nós podemos "
-"necessitar de um alias é quando fazemos um fech join recursivamente em uma "
-"coleção adicional:"
+"Geralmente, uma união de busca não precisa atribuir um alias, pois o objeto "
+"associado não deve ser usado na cláusula <literal>where</literal> (ou em "
+"qualquer outra cláusula). Também, os objetos associados não são retornados "
+"diretamente nos resultados da consulta. Ao invés disso, eles devem ser "
+"acessados usando o objeto pai. A única razão pela qual precisariamos de um "
+"alias é quando fazemos uma união de busca recursivamente em uma coleção "
+"adicional: "
-#. Tag: programlisting
-#: query_hql.xml:179
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:181
-#, fuzzy, no-c-format
-msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
"using <literal>iterate()</literal> (though <literal>scroll()</literal> can "
"be used). <literal>Fetch</literal> should be used together with "
@@ -349,80 +339,61 @@
"<literal>full join fetch</literal> and <literal>right join fetch</literal> "
"are not meaningful."
msgstr ""
-"Observe que a construção <literal>fetch</literal> não deve ser usada em "
-"queries invocadas usando <literal>iterate()</literal> (embora possa ser "
-"usado com <literal>scroll()</literal>). O <literal>fetch</literal> também "
+"Observe que a construção <literal>busca</literal> não deve ser usada em "
+"consultas invocadas usando <literal>iterate()</literal> (embora possa ser "
+"usado com <literal>scroll()</literal>). O <literal>Fetch</literal> também "
"não deve ser usado junto com o <literal>setMaxResults()</literal> ou "
"<literal>setFirstResult()</literal> pois essas operações são baseadas nas "
-"linhas retornadas, que normalmente contem duplicidade devido ao fetching das "
-"coleções, então o número de linhas pode não ser o que você espera. O "
-"<literal>fetch</literal> não deve ser usado junto com uma condição "
-"<literal>with</literal> em uma condição <literal>with</literal> ad hoc. à "
-"possÃvel que seja criado um produto cartesiano pelo join fetching em mais do "
-"que uma coleção em uma query, então tome cuidado nesses casos. Um join "
-"fetching em varias coleções pode trazer resultados inesperados para "
-"mapeamentos do tipo bag, tome cuidado na hora de formular queries como "
-"essas. Finalmente, observe o seguinte, o <literal>full join fetch</literal> "
-"e <literal>right join fetch</literal> não são significativos."
+"linhas retornadas, que normalmente contém duplicidade devido à busca das "
+"coleções, então o número de linhas pode não ser o que você espera. A "
+"<literal>Fetch</literal> não deve ser usada junto com uma condição "
+"<literal>with</literal>. Ã possÃvel que seja criado um produto cartesiano "
+"pela busca de união em mais do que uma coleção em uma consulta, então tome "
+"cuidado nesses casos. Uma busca de união em várias coleções pode trazer "
+"resultados inesperados para mapeamentos do tipo bag, tome cuidado na hora de "
+"formular consultas como essas. Finalmente, observe o seguinte, a "
+"<literal>busca de união completa</literal> e <literal>busca de união "
+"direita</literal> não são importantes."
#. Tag: para
-#: query_hql.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
"properties in the first query immediately using <literal>fetch all "
"properties</literal>."
msgstr ""
-"Se está usando o nÃvel de propriedade lazy (<literal>com</literal> "
-"instrumentação de bytecode), é possÃvel forçar o Hibernate a "
-"<literal>buscar</literal> as propriedades lazy imediatamente (na primeira "
-"query), usando <literal>fetch all properties </literal>."
+"Se estiver usando o nÃvel de propriedade busca lazy (com instrumentação de "
+"bytecode), é possÃvel forçar o Hibernate a buscar as propriedades lazy "
+"imediatamente na primeira consulta, usando <literal>buscar todas as "
+"propriedades </literal>. "
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
-msgstr "Formas e sintaxe de joins"
+msgstr "Formas de sintáxe de uniões"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
"and <literal>explicit</literal>."
msgstr ""
"O HQL suporta duas formas de associação para união: <literal>implÃcita</"
-"literal> e <literal>explicita</literal>."
+"literal> e <literal>explÃcita</literal>."
#. Tag: para
-#: query_hql.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
"literal> form, that is, where the join keyword is explicitly used in the "
"from clause. This is the recommended form."
msgstr ""
-"As queries apresentadas na seção anterior usam a forma <literal>explicita</"
-"literal>, onde a palavra chave \"join\" é explicitamente usada na clausula "
-"\"from\". Essa é a forma recomendada."
+"As consultas apresentadas na seção anterior usam a forma <literal>explÃcita</"
+"literal>, onde a palavra chave união é explicitamente usada na cláusula "
+"from. Essa é a forma recomendada."
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -430,57 +401,47 @@
"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
"literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-"A forma <literal>implÃcita</literal> não usa a palavra chave \"join\". "
-"Entretanto, as associações são diferenciadas usando pontuação (\".\" - "
-"dotnation). Uniões implÃcitas podem aparecer em qualquer das clausulas HQL. "
-"A união <literal>implÃcita</literal> resulta em declarações SQL que contem "
-"inner joins."
+"A forma <literal>implÃcita</literal> não usa a palavra chave \"união\". "
+"Entretanto, as associações são \"diferenciadas\" usando pontuação (\".\" - "
+"dot-notation). Uniões<literal>implÃcitas</literal> podem aparecer em "
+"qualquer uma das cláusulas HQL. A união <literal>implÃcita</literal> resulta "
+"em declarações SQL que contém uniões inteiras."
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Referring to identifier property"
-msgstr "Refering to identifier property"
+msgstr "Referência à propriedade do identificador "
#. Tag: para
-#: query_hql.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
msgstr ""
-"There are, generally speaking, 2 ways to refer to an entity's identifier "
-"property:"
+"Geralmente, existem duas formas para se referir à propriedade do "
+"indentificador de uma entidade: "
#. Tag: para
-#: query_hql.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
-"The special property (lowercase) <literal>id</literal> may be used to "
-"reference the identifier property of an entity <emphasis>provided that "
-"entity does not define a non-identifier property named id</emphasis>."
+"A propriedade especial (em letra minúscula) <literal>id</literal> pode ser "
+"usada para se referir à propriedade do identificador de uma entidade "
+"<emphasis>considerando que a entidade não define uma propriedade não "
+"identificadora chamada id</emphasis>."
#. Tag: para
-#: query_hql.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
msgstr ""
-"If the entity defines a named identifier property, you may use that property "
-"name."
+"Se a entidade definir a propriedade do identificador nomeada, você poderá "
+"usar este nome de propriedade. "
#. Tag: para
-#: query_hql.xml:250
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
@@ -488,15 +449,15 @@
"the special <literal>id</literal> property can be used to reference the "
"identifier property."
msgstr ""
-"References to composite identifier properties follow the same naming rules. "
-"If the entity has a non-identifier property named id, the composite "
-"identifier property can only be referenced by its defined named; otherwise, "
-"the special <literal>id</literal> property can be used to rerference the "
-"identifier property."
+"As referências à composição das propriedades do identificador seguem as "
+"mesmas regras de nomeação. Se a entidade tiver uma propriedade de não "
+"identificador chamada id, a composição da propriedade do identificador pode "
+"somente ser referenciada pelo seu nome definido. Do contrário, uma "
+"propriedade especial <literal>id</literal> poderá ser usada para referenciar "
+"a propriedade do identificador. "
#. Tag: para
-#: query_hql.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
"In previous versions, <literal>id</literal> <emphasis>always</emphasis> "
@@ -504,289 +465,157 @@
"ramification of that decision was that non-identifier properties named "
"<literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
-"Note: this has changed significantly starting in version 3.2.2. In previous "
-"versions, <literal>id</literal><emphasis>always</emphasis> referred to the "
-"identifier property no matter what its actual name. A ramification of that "
-"decision was that non-identifier properties named <literal>id</literal> "
-"could never be referenced in Hibernate queries."
+"Observe: esta ação mudou completamente na versão 3.2.2. Nas versões "
+"anteriores o <literal>id</literal> <emphasis>sempre</emphasis> referia-se à "
+"propriedade do identificador não importando seu nome atual. Uma ramificação "
+"desta decisão era que as propriedades do não identificador de chamadas "
+"<literal>id</literal> nunca poderiam ser referenciadas nas consultas do "
+"Hibernate. "
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
-msgstr "Clausula select"
+msgstr "A cláusula select"
#. Tag: para
-#: query_hql.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
-"A clausula <literal>select</literal> seleciona quais obetos e propriedades "
-"retornam no resultado da query. Considere:"
+"A cláusula <literal>select</literal> seleciona quais objetos e propriedades "
+"retornam no resultado da consulta. Considere: "
-#. Tag: programlisting
-#: query_hql.xml:276
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:278
-#, fuzzy, no-c-format
-msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
"literal>s. You can express this query more compactly as:"
msgstr ""
-"A query selecionará <literal>mate</literal>s (companheiros), de outros "
-"<literal>Cat</literal>s. Atualmente, podemos expressar a query de forma mais "
-"compacta como:"
+"A consulta selecionará <literal>mate</literal>s (parceiros), de outros "
+"<literal>Cat</literal>s. Atualmente, podemos expressar a consulta de forma "
+"mais compacta como: "
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
-"Queries podem retornar propriedades de qualquer tipo de valor, incluindo "
-"propriedades de tipo de componente:"
+"As consultas podem retornar propriedades de qualquer tipo de valor, "
+"incluindo propriedades de tipo de componente: "
-#. Tag: programlisting
-#: query_hql.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:293
-#, fuzzy, no-c-format
-msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]</literal>:"
msgstr ""
-"Queries podem retornar múltiplos objetos e/ou propriedades como um array do "
-"tipo Object[],"
+"As consultas podem retornar múltiplos objetos e/ou propriedades como uma "
+"matriz do tipo <literal>Object[]</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or as a <literal>List</literal>:"
-msgstr "ou como um <literal>List</literal>,"
+msgstr "Ou como um <literal>List</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:304
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:306
-#, fuzzy, no-c-format
-msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
msgstr ""
-"assumindo que a classe <literal>Family</literal> tenha um construtor "
-"apropriado."
+"Ou - considerando que a classe <literal>Family</literal> tenha um construtor "
+"apropriado - como um objeto Java typesafe atual:"
-#. Tag: programlisting
-#: query_hql.xml:310
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:313
-#, fuzzy, no-c-format
-msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
msgstr ""
-"Pode-se designar referencias a expressões selecionadas, <literal>as</"
+"Pode-se designar alias à expressões selecionadas usando <literal>as</"
"literal>:"
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
"literal>:"
msgstr ""
"Isto é bem mais útil quando usado junto <literal>com</"
-"literal><literal>select new map</literal>:"
+"literal><literal>selecione novo mapa</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
msgstr ""
-"Esta query retorna um <literal>Map</literal> de referencias para valores "
+"Esta consulta retorna um <literal>Mapa</literal> de referências para valores "
"selecionados."
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
msgstr "Funções de agregação"
#. Tag: para
-#: query_hql.xml:334
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
msgstr ""
-"As queries HQL podem retornar o resultado de funções agregadas nas "
-"propriedades."
+"As consultas HQL podem retornar o resultado de funções agregadas nas "
+"propriedades:"
-#. Tag: programlisting
-#: query_hql.xml:338
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
+msgid "The supported aggregate functions are:"
+msgstr "As funções agregadas suportadas são: "
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
-msgid "The supported aggregate functions are:"
-msgstr "As funções agregadas suportadas são:"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
+msgstr "<literal>avg(...), sum(...), min(...), max(...)</literal>"
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
-msgstr "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>count(*)</literal>"
+msgstr "<literal>count(*)</literal>"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
-
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
-msgstr "count(...), count(distinct ...), count(all...)"
-
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
+msgstr "<literal>count(...), count(distinct ...), count(all...)</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
msgstr ""
-"Pode-se usar operadores aritiméticos, concatenação e funções SQL "
-"reconhecidas na clausula select:"
+"Pode-se usar operadores aritméticos, concatenação e funções SQL reconhecidas "
+"na cláusula select: "
-#. Tag: programlisting
-#: query_hql.xml:376
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:380
-#, fuzzy, no-c-format
-msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
"As palavras <literal>distinct</literal> e <literal>all</literal> podem ser "
-"usadas e têm a mesma semântica como no SQL."
+"usadas e têm a mesma semântica que no SQL. "
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
-msgstr "Queries polimórficas"
+msgstr "Pesquisas Polimórficas"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
-msgstr "A query:"
+msgstr "A consulta:"
#. Tag: para
-#: query_hql.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
"like <literal>DomesticCat</literal>. Hibernate queries can name "
@@ -795,21 +624,14 @@
"that extend that class or implement the interface. The following query would "
"return all persistent objects:"
msgstr ""
-"retorna instancias não só de <literal>Cat</literal>, mas também de "
-"subclasses como <literal>DomesticCat</literal>. As queries do Hibernate "
-"podem nomear qualquer classe Java ou interface na clausula <literal>from</"
-"literal>. A query retornará instancias de toda classe persistente que "
-"extenda a determinada classe ou implemente a determinada interface. A "
-"query , a seguir, pode retornar todo objeto persistente:"
+"retorna instâncias não só de <literal>Cat</literal>, mas também de "
+"subclasses como <literal>DomesticCat</literal>. As consultas do Hibernate "
+"podem nomear qualquer classe Java ou interface na cláusula <literal>from</"
+"literal>. A consulta retornará instâncias de todas as classes persistentes "
+"que extendam a determinada classe ou implemente a determinada interface. A "
+"consulta a seguir, poderia retornar todos os objetos persistentes: "
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
@@ -818,340 +640,217 @@
"A interface <literal>Named</literal> pode ser implementada por várias "
"classes persistentes:"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
"literal>. This means that the <literal>order by</literal> clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()</literal>."
msgstr ""
-"Note que as duas últimas queries requerem mais de um SQL SELECT . Isto "
-"significa que a clausula <literal>order by</literal> não ordena corretamente "
-"todo o resultado. (Isso também significa que você não pode chamar essas "
-"queries usando <literal>Query.scroll()</literal>.)"
+"Note que as duas últimas consultas requerem mais de um SQL <literal>SELECT</"
+"literal>. Isto significa que a cláusula <literal>order by</literal> não "
+"ordena corretamente todo o resultado. Isso também significa que você não "
+"pode chamar essas consultas usando <literal>consulta.scroll()</literal>."
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
-msgstr "A clausula where"
+msgstr "A cláusula where"
#. Tag: para
-#: query_hql.xml:426
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
-"A clausula <literal>where</literal> permite estreitar a lista de instancias "
-"retornada. Se não houver referencia alguma, pode-se referir a propriedades "
-"pelo nome:"
+"A cláusula <literal>where</literal> permite estreitar a lista de instâncias "
+"retornadas. Se não houver referência alguma, pode-se referir à propriedades "
+"pelo nome: "
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
msgstr "Se houver uma referência, use o nome da propriedade qualificada:"
-#. Tag: programlisting
-#: query_hql.xml:437
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
-msgstr "retorna instancias de <literal>Cat</literal> com nome âFritzâ."
+msgstr "Isto retorna instâncias de <literal>Cat</literal> com nome âFritzâ."
#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
-msgstr ""
+msgstr "A seguinte consulta:"
-#. Tag: programlisting
-#: query_hql.xml:446
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:448
-#, fuzzy, no-c-format
-msgid ""
"returns all instances of <literal>Foo</literal> with an instance of "
"<literal>bar</literal> with a <literal>date</literal> property equal to the "
"<literal>startDate</literal> property of the <literal>Foo</literal>. "
"Compound path expressions make the <literal>where</literal> clause extremely "
"powerful. Consider the following:"
msgstr ""
-"retornará todas as instancias de <literal>Foo</literal>, para cada um que "
-"tiver uma instancia de <literal>bar</literal> com a propriedade "
+"retornará todas as instâncias de <literal>Foo</literal>, para cada um que "
+"tiver uma instância de <literal>bar</literal> com a propriedade "
"<literal>date</literal> igual a propriedade <literal>startDate</literal> de "
-"<literal>Foo</literal>. Expressões de filtro compostas fazem da clausula "
-"<literal>where</literal>, extremamente poderosa. Consideremos:"
+"<literal>Foo</literal>. Expressões de caminho compostas fazem da cláusula "
+"<literal>where</literal>, extremamente poderosa. Consideremos: "
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-"Esta query traduzida para uma query SQL <literal>com</literal> uma tabela "
-"(inner) join. Se fosse escrever algo como:"
+"Esta consulta traduz para uma consulta SQL com uma tabela (inner) união. Por "
+"exemplo:"
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
msgstr ""
-"Poderia-se terminar <literal>com</literal> uma query que necessitasse de "
-"join de quatro tabelas, no SQL."
+"resultaria numa consulta que necessitasse de união de quatro tabelas, no SQL."
#. Tag: para
-#: query_hql.xml:470
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
"properties, but also instances:"
msgstr ""
-"O operador <literal>=</literal> pode ser uasdo para comparar não apenas "
-"propriedades, mas também instancias:"
+"O operador <literal>=</literal> pode ser usado para comparar não apenas "
+"propriedades, mas também instâncias: "
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
-"A propriedade especial (lowercase) <literal>id</literal> pode ser usada para "
-"referenciar o identificador único de um objeto. (Pode-se usar também o nome "
-"de sua propriedade)"
+"A propriedade especial (letra minúscula) <literal>id</literal> pode ser "
+"usada para referenciar o identificador único de um objeto. Para maiores "
+"informações consulte a <xref linkend=\"queryhql-identifier-property\"/>. "
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The second query is efficient and does not require a table join."
-msgstr "A Segunda query é eficiente. Nenhuma união de tabelas é necessária!"
+msgstr "A segunda consulta é eficiente e não requer nenhuma união de tabelas."
#. Tag: para
-#: query_hql.xml:491
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person</literal> has composite identifiers consisting "
"of <literal>country</literal> and <literal>medicareNumber</literal>:"
msgstr ""
"As propriedades de identificadores compostas também podem ser usadas. "
-"Suponha que <literal>Person</literal> tenha um identificador composto que "
-"consiste de <literal>country</literal> e <literal>medicareNumber</literal>."
+"Considere o seguinte exemplo onde <literal>Person</literal> possui "
+"identificadores compostos que consistem de <literal>country</literal> e "
+"<literal>medicareNumber</literal>: "
-#. Tag: programlisting
-#: query_hql.xml:497
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
+msgid "Once again, the second query does not require a table join."
msgstr ""
+"Mais uma vez, a segunda consulta não precisa de nenhuma união de tabela."
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
#, fuzzy, no-c-format
-msgid "Once again, the second query does not require a table join."
-msgstr "Mais uma vez, a Segunda query não precisa de nenhum join de tabela."
-
-#. Tag: para
-#: query_hql.xml:505
-#, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
+"Veja <xref linkend=\"queryhql-identifier-property\"/> para maiores "
+"informações a respeito das propriedades do identificador referenciado) "
#. Tag: para
-#: query_hql.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
-"Assim mesmo, a propriedade especial <literal>class</literal> acessa o valor "
-"discriminador da instancia, no caso de persistência polimórfica. O nome de "
-"uma classe Java inclusa em uma clausula \"where\", será traduzida para seu "
-"valor descriminante."
+"Da mesma forma, a propriedade especial <literal>class</literal> acessa o "
+"valor discriminador da instância, no caso de persistência polimórfica. O "
+"nome de uma classe Java inclusa em uma cláusula where, será traduzida para "
+"seu valor discriminante."
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
-"Pode-se também especificar as propriedades dos components ou tipos de "
-"usuário composto (e de componentes de componentes). Nunca tente usar uma "
-"expressão de filtro que termine na propriedade de um tipo de componente (ao "
-"contrário de uma propriedade de um componente). Por exemplo, se store.owner "
-"é uma entidade <literal>com</literal> um componente <literal>address</"
-"literal>."
+"Pode-se também utilizar componentes ou tipos de usuários de composição, ou "
+"propriedades dos tipos de componentes mencionados. Veja <xref linkend="
+"\"queryhql-components\"/> para maiores informações."
#. Tag: para
-#: query_hql.xml:523
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
"<literal>class</literal> that allows you to express a join in the following "
"way (where <literal>AuditLog.item</literal> is a property mapped with "
"<literal><any></literal>):"
msgstr ""
-"Um tipo \"any\" tem as propriedades <literal>id</literal> e <literal>class</"
-"literal> especiais, nôs permitindo expressar um join da seguinte forma (onde "
-"<literal>AuditLog.item</literal> é uma propriedade mapeada <literal>com</"
-"literal><literal><any></literal>)"
+"Um tipo \"any\" possui as propriedades <literal>id</literal> e "
+"<literal>class</literal> especiais, nos permitindo expressar uma união da "
+"seguinte forma (onde <literal>AuditLog.item</literal> é uma propriedade "
+"mapeada <literal>com</literal><literal><any></literal>):"
-#. Tag: programlisting
-#: query_hql.xml:529
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:531
-#, fuzzy, no-c-format
-msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
"would refer to the values of completely different database columns in the "
"above query."
msgstr ""
"Veja que <literal>log.item.class</literal> e <literal>payment.class</"
-"literal> podem referir-se a valores de colunas de banco de dados "
-"completamente diferentes, na query acima."
+"literal> podem referir-se à valores de colunas de banco de dados "
+"completamente diferentes, na consulta acima. "
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr "Expressões"
#. Tag: para
-#: query_hql.xml:541
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
"following:"
msgstr ""
-"As expressões permitidas na cláusula <literal>where</literal> inclui a "
-"maioria das coisas que você poderia escrever no SQL:"
+"As expressões permitidas na cláusula <literal>where</literal> incluem o "
+"seguinte:"
#. Tag: para
-#: query_hql.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
-msgstr "operadores matemáticos <literal>+, -, *, /</literal>"
+msgstr "operadores matemáticos: <literal>+, -, *, /</literal>"
#. Tag: para
-#: query_hql.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
"literal>"
msgstr ""
-"operadores de comparação binários <literal>=, >=, <=, <>, !=, "
+"operadores de comparação binários: <literal>=, >=, <=, <>, !=, "
"like</literal>"
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
msgstr "operadores lógicos <literal>and, or, not</literal>"
#. Tag: para
-#: query_hql.xml:563
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
-msgstr "parenteses <literal>( )</literal>, indicating grouping"
+msgstr "Parênteses <literal>( )</literal> que indica o agrupamento"
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1165,7 +864,6 @@
"<literal>member of</literal> and <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
@@ -1176,7 +874,6 @@
"end</literal>"
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
@@ -1186,57 +883,51 @@
"(...,...)</literal>"
#. Tag: para
-#: query_hql.xml:592
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
msgstr ""
-"<literal>current_date()</literal>, <literal>current_time()</literal>, "
-"<literal>current_timestamp()</literal>"
+"<literal>current_date()</literal>, <literal>current_time()</literal> e "
+"<literal>current_timestamp()</literal> "
#. Tag: para
-#: query_hql.xml:598
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
"and <literal>year(...)</literal>"
msgstr ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
-"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
-"<literal>year(...)</literal>,"
+"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal> "
+"e <literal>year(...)</literal>"
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
-"qualquer funcao ou operador definida pela EJB-QL 3.0: <literal>substring(), "
+"qualquer função ou operador definidos pela EJB-QL 3.0: <literal>substring(), "
"trim(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), "
"mod()</literal>"
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> and <literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
"readable string"
msgstr ""
-"<literal>str()</literal> para converter valores numericos ou temporais para "
-"string"
+"<literal>str()</literal> para converter valores numéricos ou temporais para "
+"uma string de leitura"
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1246,22 +937,20 @@
msgstr ""
"<literal>cast(... as ...)</literal>, onde o segundo argumento é o nome do "
"tipo hibernate, e<literal>extract(... from ...)</literal> se ANSI "
-"<literal>cast()</literal> e <literal>extract()</literal> é suportado pele "
-"banco de dados usado"
+"<literal>cast()</literal> e <literal>extract()</literal> é suportado pelo "
+"banco de dados adjacente"
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
"joined indexed collection"
msgstr ""
-"A função HQL <literal>index()</literal> , que se aplicam a referencias de "
+"A função HQL <literal>index()</literal> , que se aplicam às referências de "
"coleçôes associadas e indexadas"
#. Tag: para
-#: query_hql.xml:636
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
@@ -1269,42 +958,38 @@
"functions that can be quantified using <literal>some, all, exists, any, in</"
"literal>."
msgstr ""
-"As funções hql que retornam expressões de coleções de valores: <literal>size"
-"(), minelement(), maxelement(), minindex(), maxindex()</literal>, "
-"<literal>junto</literal> com o elemento especial, <literal>elements()</"
-"literal>, e funções de <literal>Ãndice</literal> que podem ser quantificadas "
-"usando <literal>some, all, exists, any, in</literal>."
+"As funções HQL que retornam expressões de coleções de valores: <literal>size"
+"(), minelement(), maxelement(), minindex(), maxindex()</literal>, junto com "
+"o elemento especial, <literal>elements()</literal> e funções de "
+"<literal>Ãndices</literal> que podem ser quantificadas usando <literal>some, "
+"all, exists, any, in</literal>."
#. Tag: para
-#: query_hql.xml:644
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
"<literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</"
"literal>"
msgstr ""
-"Qualquer funçâo escalar pelo bando de dados como <literal>sign()</literal>, "
-"<literal>trunc()</literal>, <literal>rtrim()</literal>, <literal>sin()</"
-"literal>"
+"Qualquer função escalar suportada pelo banco de dados como <literal>sign()</"
+"literal>, <literal>trunc()</literal>, <literal>rtrim()</literal> e "
+"<literal>sin()</literal>"
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
-msgstr "Parametros posicionais ao estilo JDBC <literal>?</literal>"
+msgstr "Parâmetros posicionais ao estilo JDBC <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:655
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
"and <literal>:x1</literal>"
msgstr ""
-"Parametros nomeados <literal>:name</literal>, <literal>:start_date</"
-"literal>, <literal>:x1</literal>"
+"Parâmetros nomeados <literal>:name</literal>, <literal>:start_date</literal> "
+"e <literal>:x1</literal>"
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
@@ -1314,88 +999,46 @@
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
"TABBY</literal>"
msgstr ""
-"Constantes Java <literal>public static final</literal><literal>ex: Color."
+"Constantes Java <literal>final estático público</literal><literal>ex: Color."
"TABBY</literal>"
#. Tag: para
-#: query_hql.xml:672
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
"<literal>in</literal> e <literal>between</literal> podem ser usadas da "
-"seguinte maneira:"
+"seguinte maneira: "
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The negated forms can be written as follows:"
-msgstr "e as formas negativas podem ser escritas"
+msgstr "As formas negativas podem ser escritas conforme segue abaixo:"
-#. Tag: programlisting
-#: query_hql.xml:684
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
"be used to test for null values."
msgstr ""
-"Likewise, <literal>is null</literal> and <literal>is not null</literal> may "
-"be used to test for null values. Assim mesmo, , <literal>is null</literal> e "
-"<literal>is not null</literal> podem ser usados para testar valores nulos."
+"Da mesma forma, <literal>is null</literal> e <literal>is not null</literal> "
+"podem ser usados para testar valores nulos."
#. Tag: para
-#: query_hql.xml:693
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
"Booleanos podem ser facilmente usados em expressões, declarando as "
-"substituições da HQL query, na configuração do Hibernate"
+"substituições da consulta HQL, na configuração do Hibernate:"
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
@@ -1406,38 +1049,17 @@
"<literal>false</literal><literal>pelos</literal> literais <literal>1</"
"literal> e <literal>0</literal> na tradução do HQL para SQL."
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can test the size of a collection with the special property "
"<literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
-"Pode-se testar o tamanho de uma coleção <literal>com</literal> a propriedade "
-"especial <literal>size</literal>, ou a função especial <literal>size()</"
-"literal>."
+"Pode-se testar o tamanho de uma coleção com a propriedade especial "
+"<literal>size</literal> ou a função especial <literal>size()</literal>."
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
"using <literal>minindex</literal> and <literal>maxindex</literal> functions. "
@@ -1447,33 +1069,13 @@
msgstr ""
"Para coleções indexadas, você pode se referir aos Ãndices máximo e mÃnimo, "
"usando as funções <literal>minindex</literal> e <literal>maxindex</literal>. "
-"Similarmente, pode-se referir aos elementos máximo e mÃnimo de uma coleção "
-"de tipos básicos usando as funções <literal>minelement</literal> e "
-"<literal>maxelement</literal>."
+"Igualmente, pode-se referir aos elementos máximo e mÃnimo de uma coleção de "
+"tipos básicos usando as funções <literal>minelement</literal> e "
+"<literal>maxelement</literal>. Por exemplo:"
-#. Tag: programlisting
-#: query_hql.xml:724
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:730
-#, fuzzy, no-c-format
-msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
"supported when passed the element or index set of a collection "
"(<literal>elements</literal> and <literal>indices</literal> functions) or "
@@ -1481,229 +1083,87 @@
msgstr ""
"As funções SQL <literal>any, some, all, exists, in</literal> são suportadas "
"quando passado o elemento ou o conjunto de Ãndices de uma coleção "
-"(<literal>elements</literal> e <literal>indices</literal> de funções), ou o "
-"resultado de uma subquery (veja abaixo)."
+"(<literal>elements</literal> e <literal>Ãndices</literal> de funções) ou o "
+"resultado de uma subconsulta (veja abaixo):"
-#. Tag: programlisting
-#: query_hql.xml:736
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:746
-#, fuzzy, no-c-format
-msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
"<literal>maxelement</literal> - can only be used in the where clause in "
"Hibernate3."
msgstr ""
-"Note que essas construções - <literal>size</literal>, <literal>elements</"
-"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
+"Note que essas construções - <literal>tamanho</literal>, <literal>elementos</"
+"literal>, <literal>Ãndices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
-"<literal>maxelement</literal>â só podem ser usados na clausula where do "
+"<literal>maxelement</literal> â só podem ser usados na cláusula where do "
"Hibernate3."
#. Tag: para
-#: query_hql.xml:753
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
-"Elementos de coleções com Ãndice (arrays, lists, maps), podem ser "
-"referenciadas pelo Ãndice (apenas na clausula where):"
+"Elementos de coleções com Ãndice (matriz, listas, mapas) podem ser "
+"referenciadas pelo Ãndice (apenas na cláusula where):"
-#. Tag: programlisting
-#: query_hql.xml:758
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
msgstr ""
-"A expressão entre colchetes <literal>[]</literal>, pode ser até uma "
-"expressão aritimética."
+"A expressão entre colchetes <literal>[]</literal> pode ser até uma expressão "
+"aritimética:"
-#. Tag: programlisting
-#: query_hql.xml:770
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:772
-#, fuzzy, no-c-format
-msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
"elements of a one-to-many association or collection of values."
msgstr ""
-"O HQL também provê a função interna <literal>index()</literal>, para "
-"elementos de associação um-pra-muitos ou coleção de valores."
+"O HQL também provê a função interna <literal>index()</literal> para "
+"elementos de associação um-para-muitos ou coleção de valores."
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
-#, fuzzy, no-c-format
-msgid "Scalar SQL functions supported by the underlying database can be used:"
-msgstr "Funções escalares SQL, suportadas pelo banco de dados subjacente."
-
-#. Tag: programlisting
-#: query_hql.xml:783
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
+msgid "Scalar SQL functions supported by the underlying database can be used:"
msgstr ""
+"Funções escalares SQL, suportadas pelo banco de dados subjacente podem ser "
+"usadas:"
#. Tag: para
-#: query_hql.xml:785
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
-"Se ainda ainda não está totalmente convencido, pense o quão maior e menos "
-"legÃvel poderia ser a query a seguir, em SQL:"
+"Se ainda não estiver totalmente convencido, pense o quão maior e menos "
+"legÃvel poderia ser a consulta a seguir, em SQL: "
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
-msgstr "<emphasis>Hint:</emphasis> something like"
+msgstr "<emphasis>Hint:</emphasis> algo como:"
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
-msgstr "A clausula order by"
+msgstr "A cláusula ordenar por"
#. Tag: para
-#: query_hql.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
-"A lista retornada pela query pode ser ordenada por qualquer propriedade da "
-"classe ou componente retornado:"
+"A lista retornada pela consulta pode ser ordenada por qualquer propriedade "
+"da classe ou componentes retornados:"
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
@@ -1713,100 +1173,57 @@
"crescente ou decrescente, respectivamente."
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
-msgstr "A clausula group by"
+msgstr "A cláusula agrupar por"
#. Tag: para
-#: query_hql.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
-"Uma query que retorne valores agregados, podem ser agrupados por qualquer "
-"propriedade de uma classe ou componente retornado:"
+"Uma consulta que retorne valores agregados, podem ser agrupados por qualquer "
+"propriedade de uma classe ou componentes retornados:"
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
-msgstr "Uma clausula <literal>having</literal> também é permitida."
+msgstr "Uma cláusula <literal>having</literal> também é permitida."
-#. Tag: programlisting
-#: query_hql.xml:830
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:832
-#, fuzzy, no-c-format
-msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
"literal> and <literal>order by</literal> clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
-"Funções SQL e funções agregadas são permitidas nas clausulas "
+"Funções SQL e funções agregadas são permitidas nas cláusulas "
"<literal>having</literal> e <literal>order by</literal>, se suportadas pelo "
-"banco de dados subjacente (ex: não no MySQL)."
+"banco de dados subjacentes (ex: não no MeuSQL). "
-#. Tag: programlisting
-#: query_hql.xml:838
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:840
-#, fuzzy, no-c-format
-msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
"literal> clause can contain arithmetic expressions. Hibernate also does not "
"currently expand a grouped entity, so you cannot write <literal>group by "
"cat</literal> if all properties of <literal>cat</literal> are non-"
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
-"Note que, nem a clausula <literal>group by</literal> ou <literal>order by</"
-"literal>, podem conter expressões aritiméticas."
+"Note que, nem a cláusula <literal>group by</literal> ou <literal>order by</"
+"literal> podem conter expressões aritméticas. O Hibernate também não expande "
+"atualmente uma entidade agrupada, portanto você não pode escrever "
+"<literal>group by cat</literal> caso todas as propriedades do <literal>cat</"
+"literal> não estiverem agregadas. Você precisa listar claramente todas as "
+"propriedades não-agregadas. "
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
-msgstr "Subqueries"
+msgstr "Subconsultas"
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1814,86 +1231,37 @@
"aggregate function call). Even correlated subqueries (subqueries that refer "
"to an alias in the outer query) are allowed."
msgstr ""
-"Para bancos de dados que suportem subselects, o Hibernate suporta subqueries "
-"dentro de queries. Uma subquery precisa estar entre parênteses (normalmente "
-"uma chamada de função agregada SQL). Mesmo subqueries co-relacionadas "
-"(subqueries que fazem referência à alias de outras queries), são aceitas."
+"Para bancos de dados que suportam subseleções, o Hibernate suporta "
+"subconsultas dentro de consultas. Uma subconsulta precisa estar entre "
+"parênteses (normalmente uma chamada de função agregada SQL). Mesmo "
+"subconsultas co-relacionadas (subconsultas que fazem referência à alias de "
+"outras consultas), são aceitas."
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
msgstr ""
-"Note que HQL subqueries podem aparecer apenas dentro de clausulas select ou "
-"where."
+"Note que HQL subconsultas podem aparecer apenas dentro de cláusulas select "
+"ou where. "
#. Tag: para
-#: query_hql.xml:874
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
-"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more details."
+"Note que as subconsultas também podem utilizar a sintáxe <literal>row value "
+"constructor</literal>. Veja <xref linkend=\"queryhql-tuple\"/> para maiores "
+"detalhes. "
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
msgstr "Exemplos de HQL"
#. Tag: para
-#: query_hql.xml:884
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
@@ -1901,15 +1269,14 @@
"projects. Please note that most queries you will write will be much simpler "
"than the following examples."
msgstr ""
-"As queries do Hibernate, podem ser muito poderosas e complexas. De fato, o "
-"poder da linguagem de querie é um dos pontos principais na distribuição do "
-"Hibernate. Aqui temos algumas queries de exemplo, muito similares a queries "
-"que usei em um projeto recente. Note que a maioria das queries que você irá "
-"escrever, são mais simples que estas."
+"As consultas do Hibernate, podem ser muito poderosas e complexas. De fato, o "
+"poder da linguagem de consulta é um dos pontos principais na distribuição do "
+"Hibernate. Aqui temos algumas consultas de exemplo, muito similares a "
+"consultas usadas em um projeto recente. Note que a maioria das consultas que "
+"você irá escrever, são mais simples que estas."
#. Tag: para
-#: query_hql.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
@@ -1919,69 +1286,25 @@
"<literal>PRODUCT</literal>, <literal>CATALOG</literal> and <literal>PRICE</"
"literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
-"A query a seguir retorna o id de order, numero de itens e o valor total do "
-"order para todos os orders não pagos para um freguês particular e valor "
-"total mÃnimo dado, ordenando os resultados por valor total. Ao determinar os "
-"preços, é usado o catalogo corrente. A query SQL resultante, usando tabelas "
-"<literal>ORDER</literal>, <literal>ORDER_LINE</literal>, <literal>PRODUCT</"
-"literal>, <literal>CATALOG</literal> e <literal>PRICE</literal>, tem quatro "
-"inner joins e um (não correlacionado) subselect."
+"A consulta a seguir retorna o id de ordenar, número de Ãtens e o valor total "
+"do ordenar para todos os ordenar não pagos para um cliente particular e "
+"valor total mÃnimo dado, ordenando os resultados por valor total. Para "
+"determinar os preços, utiliza-se o catálogo atual. A consulta SQL "
+"resultante, usando tabelas <literal>ORDER</literal>, <literal>ORDER_LINE</"
+"literal>, <literal>PRODUCT</literal>, <literal>CATALOG</literal> e "
+"<literal>PRICE</literal>, têm quatro uniões inteiras e uma subseleção (não "
+"correlacionada)."
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
"my query was really more like this:"
msgstr ""
-"Que monstro! Atualmente, na vida real, eu não sou muito afeiçoado a "
-"subqueries, então minha query seria mais parecida com isto:"
+"Que monstro! Na verdade, na vida real, eu não sou muito afeiçoado à "
+"subconsultas, então minha consulta seria mais parecida com isto:"
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -1991,61 +1314,25 @@
"<literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal> and "
"<literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
-"A próxima query conta o número de pagamentos em cada status, tirando todos "
-"os pagamentos com status <literal>AWAITING_APPROVAL</literal>, onde a mais "
-"recente mudança de status foi feita pelo usuário corrente. Traduz-se para "
-"uma query SQL <literal>com</literal> dois inner joins e um subselect "
-"correlacionado, nas tabelas <literal>PAYMENT</literal>, "
+"A próxima consulta conta o número de pagamentos em cada status, excluindo "
+"todos os pagamentos no status <literal>AWAITING_APPROVAL</literal>, onde a "
+"mais recente mudança de status foi feita pelo usuário atual. Traduz-se para "
+"uma consulta SQL <literal>com</literal> duas uniões inteiras e uma "
+"subseleção correlacionada, nas tabelas <literal>PAYMENT</literal>, "
"<literal>PAYMENT_STATUS</literal> e <literal>PAYMENT_STATUS_CHANGE</"
"literal> ."
-#. Tag: programlisting
-#: query_hql.xml:916
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:918
-#, fuzzy, no-c-format
-msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
-"Se eu tivesse mapeado a Collection <literal>statusChanges</literal> como um "
-"List, ao invés de um Set, a query teria sido muito mais simples de escrever."
+"Se eu tivesse mapeado a coleção <literal>statusChanges</literal> como um "
+"List, ao invés de um Set, a consulta teria sido muito mais simples de "
+"escrever. "
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -2056,315 +1343,155 @@
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and "
"<literal>ORG_USER</literal> tables."
msgstr ""
-"A próxima query usa a função <literal>isNull()</literal> do MS SQL Server, "
-"para retornar todas as contas e pagamentos não pagos para a organização, "
-"para cada usuário corrente pertencente. Traduz-se para uma query SQL "
-"<literal>com</literal> três inner joins, um outer join e um subselect nas "
-"tabelas <literal>ACCOUNT</literal>, <literal>PAYMENT</literal>, "
-"<literal>PAYMENT_STATUS</literal>,<literal>ACCOUNT_TYPE</literal>, "
-"<literal>ORGANIZATION</literal> e <literal>ORG_USER</literal> ."
+"A próxima consulta usa a função <literal>isNull()</literal> do Servidor MS "
+"SQL, para retornar todas as contas e pagamentos não efetuados para a "
+"organização, para aquele que o usuário atual pertencer. Traduz-se para uma "
+"consulta SQL <literal>com</literal> três uniões inteiras, uma união externa "
+"e uma subseleção nas tabelas <literal>ACCOUNT</literal>, <literal>PAYMENT</"
+"literal>, <literal>PAYMENT_STATUS</literal>, <literal>ACCOUNT_TYPE</"
+"literal>, <literal>ORGANIZATION</literal> e <literal>ORG_USER</literal> ."
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr ""
-"Para alguns bancos de dados, precisaremos eleminar o subselect "
-"(correlacionado)."
+"Para alguns bancos de dados, precisaremos eliminar a subseleção "
+"(correlacionada)."
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
-msgstr "update e delete em lote"
+msgstr "Atualização e correção em lote"
#. Tag: para
-#: query_hql.xml:947
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
"Agora o HQL suporta declarações, <literal>update</literal>, <literal>delete</"
-"literal> e <literal>insert ... select ...</literal> Veja <xref linkend="
-"\"batch-direct\"/>, para mais detalhes."
+"literal> e <literal>insert ... select ...</literal>. Veja <xref linkend="
+"\"batch-direct\"/> para mais detalhes. "
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr "Dicas e Truques"
#. Tag: para
-#: query_hql.xml:957
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can count the number of query results without returning them:"
msgstr ""
-"Pode-se contar o número de resultados da query, sem realmente retorna-los."
+"Pode-se contar o número de resultados da consulta, sem realmente retorná-los:"
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr ""
-"Para ordenar um resultado pelo tamanho de uma Collection, use a query a "
+"Para ordenar um resultado pelo tamanho de uma coleção, use a consulta a "
"seguir."
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
-"Se seu banco de dados suporta subselects, pode-se colocar uma condição sobre "
-"tamanho de seleção na cláusula where da sua query:"
+"Se seu banco de dados suporta subseleções, pode-se colocar uma condição "
+"sobre tamanho de seleção na cláusula where da sua consulta:"
-#. Tag: programlisting
-#: query_hql.xml:974
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
+msgid "If your database does not support subselects, use the following query:"
msgstr ""
+"Se seu banco de dados não suporta subseleções, use a consulta a seguir: "
#. Tag: para
-#: query_hql.xml:976
-#, fuzzy, no-c-format
-msgid "If your database does not support subselects, use the following query:"
-msgstr "Se seu banco de dados não suporta subselects, use a query a seguir:"
-
-#. Tag: programlisting
-#: query_hql.xml:980
#, no-c-format
msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:983
-#, fuzzy, no-c-format
-msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
-"Com essa solução não se pode retornar um <literal>User</"
-"literal><literal>com</literal> sem nenhuma menssagem, por causa do \"inner "
-"join\", a forma a seguir também é útil."
+"Com essa solução não se pode retornar um <literal>User</literal> sem nenhuma "
+"menssagem, por causa da união inteira, a forma a seguir também é útil:"
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
msgstr ""
"As propriedades de um JavaBean podem ser limitadas à parâmetros nomeados da "
-"query:"
+"consulta:"
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
"with a filter:"
msgstr ""
-"As Collections são paginaveis, usando a interface <literal>Query</"
-"literal><literal>com</literal> um filtro:"
+"As coleções são pagináveis, usando a interface <literal>Query</literal> com "
+"um filtro:"
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
-"Os elementos da Collection podem ser ordenados ou agrupados usando um filtro "
-"de query:"
+"Os elementos da coleção podem ser ordenados ou agrupados usando um filtro de "
+"consulta: "
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
-msgstr "Pode-se achar o tamanho de uma Collection sem inicializa-la:"
+msgstr "Pode-se achar o tamanho de uma coleção sem inicializá-la:"
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
-msgstr "translator-credits"
+msgstr "Componentes"
#. Tag: para
-#: query_hql.xml:1019
#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select</literal> clause as "
"follows:"
msgstr ""
+"Os componentes podem ser usados de quase todas as formas que os tipos de "
+"valores simples são usados nas consultas HQL. Eles podem aparecer na "
+"cláusula <literal>select</literal>: "
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where</literal> clause:"
msgstr ""
+"onde a propriedade do nome da Person é um componente. Os componentes também "
+"podem ser utilizados na cláusula <literal>where</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
msgstr ""
+"Os componentes também podem ser usados na cláusula <literal>order by</"
+"literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
+"Outro uso comum dos componentes é nos construtores de valores em <xref "
+"linkend=\"queryhql-tuple\" />."
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
-msgstr ""
+msgstr "Sintáxe do construtor de valores de linha"
#. Tag: para
-#: query_hql.xml:1050
#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
@@ -2373,72 +1500,56 @@
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
+"O HQL suporta o uso da sintáxe ANSI SQL <literal>row value constructor</"
+"literal>, algumas vezes chamado de sintáxe <literal>tupla</literal>, embora "
+"o banco de dados adjacente possa não suportar esta noção. Aqui nós "
+"geralmente nos referimos às comparações de valores múltiplos, tipicamente "
+"associada aos componentes. Considere uma entidade Person que define um "
+"componente de nome:"
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
+"Esta é uma sintáxe válida, embora um pouco verbosa. Seria ótimo tornar essa "
+"sintáxe um pouco mais concisa e utilizar a sintáxe <literal>row value "
+"constructor</literal>:"
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
"clause:"
msgstr ""
+"Pode também ser útil especificar isto na cláusula <literal>select</literal>:"
#. Tag: para
-#: query_hql.xml:1072
#, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
+"Com o uso da sintáxe <literal>row value constructor</literal>, e que pode "
+"ser de benéfico, seria quando utilizar as subconsultas que precisem comparar "
+"com os valores múltiplos:"
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
+"Ao decidir se você quer usar esta sintáxe ou não, deve-se considerar o fato "
+"de que a consulta será dependente da ordenação das sub-propriedades do "
+"componente no metadados. "
-#~ msgid ""
-#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
-#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
-#~ "of the query."
-#~ msgstr ""
-#~ "Na maior parte do tempo, você precisará atribuir um <emphasis>alias</"
-#~ "emphasis>, desde que você queira se referia ao <literal>Cat</literal> em "
-#~ "outras partes da query."
+#, fuzzy
+#~ msgid "left outer join"
+#~ msgstr "<literal>left outer join</literal>"
-#~ msgid "or as an actual typesafe Java object,"
-#~ msgstr "ou como um objeto Java typesafe,"
+#, fuzzy
+#~ msgid "right outer join"
+#~ msgstr "<literal>right outer join</literal>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of query_sql.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: query_sql\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-19 18:44+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
-msgstr "Native SQL"
+msgstr "SQL Nativo"
#. Tag: para
-#: query_sql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
"This is useful if you want to utilize database-specific features such as "
@@ -26,119 +131,90 @@
"provides a clean migration path from a direct SQL/JDBC based application to "
"Hibernate."
msgstr ""
-"You may also express queries in the native SQL dialect of your database. "
-"This is useful if you want to utilize database specific features such as "
-"query hints or the <literal>CONNECT</literal> keyword in Oracle. It also "
-"provides a clean migration path from a direct SQL/JDBC based application to "
-"Hibernate."
+"Você também pode expressar consultas no dialeto SQL nativo de seu banco de "
+"dados. Isto é bastante útil para usar recursos especÃficos do banco de "
+"dados, assim como dicas de consultas ou a palavra chave em Oracle "
+"<literal>CONNECT</literal>. Ele também oferece um caminho de migração limpo "
+"de uma aplicação baseada em SQL/JDBC direta até o Hibernate. "
#. Tag: para
-#: query_sql.xml:37
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
"procedures, for all create, update, delete, and load operations."
msgstr ""
-"Hibernate3 allows you to specify handwritten SQL (including stored "
-"procedures) for all create, update, delete, and load operations."
+"O Hibernate3 permite que você especifique o SQL escrito à mão, incluindo "
+"procedimentos armazenados, para todas as operações de criar, atualizar, "
+"deletar e carregar."
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
-msgstr "Using a <literal>SQLQuery</literal>"
+msgstr "Usando um <literal>SQLQuery</literal>"
#. Tag: para
-#: query_sql.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
"literal> interface, which is obtained by calling <literal>Session."
"createSQLQuery()</literal>. The following sections describe how to use this "
"API for querying."
msgstr ""
-"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
-"literal> interface, which is obtained by calling <literal>Session."
-"createSQLQuery()</literal>. The following describes how to use this API for "
-"querying."
+"A execução de consultas SQL nativa é controlada através da interface "
+"<literal>SQLQuery</literal> que é obtido, chamando a <literal>Session."
+"createSQLQuery()</literal>. As seções abaixo descrevem como usar este API "
+"para consultas."
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
-msgstr "Scalar queries"
+msgstr "Consultas Escalares"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
-msgstr "The most basic SQL query is to get a list of scalars (values)."
+msgstr "A consulta SQL mais básica é obter uma lista dos escalares (valores)."
-#. Tag: programlisting
-#: query_sql.xml:54
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:56
-#, fuzzy, no-c-format
-msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
"each column in the CATS table. Hibernate will use ResultSetMetadata to "
"deduce the actual order and types of the returned scalar values."
msgstr ""
-"These will both return a List of Object arrays (Object[]) with scalar values "
-"for each column in the CATS table. Hibernate will use ResultSetMetadata to "
-"deduce the actual order and types of the returned scalar values."
+"Eles irão retornar uma matriz de Lista de Objeto (Object[]) com valores "
+"escalares para cada coluna na tabela CATS. O Hibernate usará o "
+"ResultSetMetadata para deduzir a ordem atual e tipos de valores escalares "
+"retornados."
#. Tag: para
-#: query_sql.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
"simply to be more explicit in what is returned, one can use "
"<literal>addScalar()</literal>:"
msgstr ""
-"To avoid the overhead of using <literal>ResultSetMetadata</literal> or "
-"simply to be more explicit in what is returned one can use <literal>addScalar"
-"()</literal>."
+"Para evitar o uso do <literal>ResultSetMetadata</literal> ou simplesmente "
+"para ser mais explÃcito em o quê é retornado, você poderá usar o "
+"<literal>addScalar()</literal>:"
-#. Tag: programlisting
-#: query_sql.xml:65
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
#, no-c-format
msgid "This query specified:"
-msgstr "This query specified:"
+msgstr "Esta consulta especificou:"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
-msgstr "the SQL query string"
+msgstr "A string da consulta SQL"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
-msgstr "the columns and types to return"
+msgstr "as colunas e tipos para retornar"
#. Tag: para
-#: query_sql.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
"<literal>ResultSetMetadata</literal> but will instead explicitly get the ID, "
@@ -147,68 +223,53 @@
"be returned, even though the query is using <literal>*</literal> and could "
"return more than the three listed columns."
msgstr ""
-"This will still return Object arrays, but now it will not use "
-"<literal>ResultSetMetdata</literal> but will instead explicitly get the ID, "
-"NAME and BIRTHDATE column as respectively a Long, String and a Short from "
-"the underlying resultset. This also means that only these three columns will "
-"be returned, even though the query is using <literal>*</literal> and could "
-"return more than the three listed columns."
+"Este ainda irá retornar as matrizes de Objeto, mas desta vez ele não usará o "
+"<literal>ResultSetMetdata</literal>, ao invés disso, obterá explicitamente a "
+"coluna de ID, NOME e DATA DE NASCIMENTO como respectivamente uma Longa, "
+"String e Curta a partir do conjunto de resultados adjacentes. Isto também "
+"significa que somente estas três colunas irão retornar, embora a consulta "
+"esteja utilizando <literal>*</literal> e possa retornar mais do que três "
+"colunas listadas. "
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr ""
-"It is possible to leave out the type information for all or some of the "
-"scalars."
+"à possÃvel deixar de fora o tipo de informação para todos ou alguns dos "
+"escalares."
-#. Tag: programlisting
-#: query_sql.xml:90
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:92
-#, fuzzy, no-c-format
-msgid ""
"This is essentially the same query as before, but now "
"<literal>ResultSetMetaData</literal> is used to determine the type of NAME "
"and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
-"This is essentially the same query as before, but now "
-"<literal>ResultSetMetaData</literal> is used to decide the type of NAME and "
-"BIRTHDATE where as the type of ID is explicitly specified."
+"Esta é a mesma consulta de antes, mas desta vez, o "
+"<literal>ResultSetMetaData</literal> é utilizado para decidir o tipo de NOME "
+"e DATA DE NASCIMENTO onde o tipo de ID é explicitamente especificado. "
#. Tag: para
-#: query_sql.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
"Hibernate types is controlled by the Dialect. If a specific type is not "
"mapped, or does not result in the expected type, it is possible to customize "
"it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
-"How the java.sql.Types returned from ResultSetMetaData is mapped to "
-"Hibernate types is controlled by the Dialect. If a specific type is not "
-"mapped or does not result in the expected type it is possible to customize "
-"it via calls to <literal>registerHibernateType</literal> in the Dialect."
+"Como o java.sql.Types retornados do ResultSetMetadata é mapeado para os "
+"tipos Hibernate, ele é controlado pelo Dialeto. Se um tipo especÃfico não é "
+"mapeado ou não resulta no tipo esperado, é possÃvel padronizá-lo através de "
+"chamadas para <literal>registerHibernateType</literal> no Dialeto. "
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
-msgstr "Entity queries"
+msgstr "Consultas de Entidade"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -216,41 +277,28 @@
"get entity objects from a native sql query via <literal>addEntity()</"
"literal>."
msgstr ""
-"The above queries were all about returning scalar values, basically "
-"returning the \"raw\" values from the resultset. The following shows how to "
-"get entity objects from a native sql query via <literal>addEntity()</"
-"literal>."
+"As consultas acima foram todas sobre o retorno de valores escalares, "
+"basicamente retornando os valores \"não processados\" do conjunto de "
+"resultados. A seguir, mostramos como obter objetos de entidade da consulta "
+"sql nativa através do <literal>addEntity()</literal>."
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
-msgstr "the entity returned by the query"
+msgstr "A entidade retornada por uma consulta"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
"BIRTHDATE the above queries will both return a List where each element is a "
"Cat entity."
msgstr ""
-"Assuming that Cat is mapped as a class with the columns ID, NAME and "
-"BIRTHDATE the above queries will both return a List where each element is a "
-"Cat entity."
+"Considerando que o Cat esteja mapeado como uma classe com colunas ID,NOME e "
+"DATA DE NASCIMENTO, as consultas acima irão devolver uma Lista onde cada "
+"elemento é uma entidade de Cat."
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -260,36 +308,24 @@
"but we prefer to be explicit as in the following example for a <literal>many-"
"to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
-"If the entity is mapped with a <literal>many-to-one</literal> to another "
-"entity it is required to also return this when performing the native query, "
-"otherwise a database specific \"column not found\" error will occur. The "
-"additional columns will automatically be returned when using the * notation, "
-"but we prefer to be explicit as in the following example for a <literal>many-"
-"to-one</literal> to a <literal>Dog</literal>:"
+"Se a entidade estiver mapeada com um <literal>muitos-para-um</literal> para "
+"outra entidade, requer-se que devolva também este ao desempenhar a consulta "
+"nativa, senão ocorrerá um erro de banco de dados especÃfico \"coluna não "
+"encontrada\". As colunas adicionais serão automaticamente retornadas ao usar "
+"a anotação, mas preferimos ser explÃcitos como no seguinte exemplo para "
+"uma<literal>muitos-para-um</literal> para um <literal>Dog</literal>:"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
-msgstr "This will allow cat.getDog() to function properly."
+msgstr "Isto irá permitir que o cat.getDog() funcione de forma apropriada"
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
-msgstr "Handling associations and collections"
+msgstr "Manuseio de associações e coleções"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -297,26 +333,14 @@
"<literal>addJoin()</literal> method, which allows you to join in an "
"association or collection."
msgstr ""
-"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
-"possible extra roundtrip for initializing the proxy. This is done via the "
-"<literal>addJoin()</literal> method, which allows you to join in an "
-"association or collection."
+"à possÃvel realizar a recuperação adiantada no <literal>Dog</literal> para "
+"evitar uma viagem extra por inicializar o proxy. Isto é feito através do "
+"método <literal>addJoin()</literal>que permite que você se una à associação "
+"ou coleção."
-#. Tag: programlisting
-#: query_sql.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:152
-#, fuzzy, no-c-format
-msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
"<literal>dog</literal> property fully initialized without any extra "
"roundtrip to the database. Notice that you added an alias name (\"cat\") to "
@@ -324,83 +348,58 @@
"do the same eager joining for collections, e.g. if the <literal>Cat</"
"literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-"In this example the returned <literal>Cat</literal>'s will have their "
-"<literal>dog</literal> property fully initialized without any extra "
-"roundtrip to the database. Notice that we added a alias name (\"cat\") to be "
-"able to specify the target property path of the join. It is possible to do "
-"the same eager joining for collections, e.g. if the <literal>Cat</literal> "
-"had a one-to-many to <literal>Dog</literal> instead."
+"Neste exemplo, a devolução do <literal>Cat</literal> terá sua propriedade "
+"<literal>dog</literal> totalmente inicializada sem nenhuma viagem extra ao "
+"banco de dados. Note que adicionamos um nome alias (\"cat\") para poder "
+"especificar o caminho da propriedade alvo na união. à possÃvel fazer a mesma "
+"união para coleções, ex.: se ao invés disso, o <literal>Cat</literal> "
+"tivesse um-para-muitos para <literal>Dog</literal>."
-#. Tag: programlisting
-#: query_sql.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:162
-#, fuzzy, no-c-format
-msgid ""
"At this stage you are reaching the limits of what is possible with native "
"queries, without starting to enhance the sql queries to make them usable in "
"Hibernate. Problems can arise when returning multiple entities of the same "
"type or when the default alias/column names are not enough."
msgstr ""
-"At this stage we are reaching the limits of what is possible with native "
-"queries without starting to enhance the sql queries to make them usable in "
-"Hibernate; the problems starts to arise when returning multiple entities of "
-"the same type or when the default alias/column names are not enough."
+"Neste estágio, estamos chegando no limite do que é possÃvel fazer com as "
+"consultas nativas sem começar a destacar as colunas sql para torná-las útil "
+"no Hibernate. Os problemas começam a surgir quando se retorna entidades "
+"múltiplas do mesmo tipo ou quando o padrão de nomes de alias/coluna não são "
+"suficientes. "
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
-msgstr "Returning multiple entities"
+msgstr "Retorno de entidades múltiplas"
#. Tag: para
-#: query_sql.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
"column names specified in the mapping document. This can be problematic for "
"SQL queries that join multiple tables, since the same column names can "
"appear in more than one table."
msgstr ""
-"Until now the result set column names are assumed to be the same as the "
-"column names specified in the mapping document. This can be problematic for "
-"SQL queries which join multiple tables, since the same column names may "
-"appear in more than one table."
+"Até aqui, os nomes de colunas do conjunto de resultados são considerados "
+"como sendo os mesmos que os nomes de colunas especificados no documento de "
+"mapeamento. Isto pode ser problemático para as consultas SQL, que une "
+"tabelas múltiplas, uma vez que os mesmos nomes de colunas podem aparecer em "
+"mais de uma tabela. "
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr ""
-"Column alias injection is needed in the following query (which most likely "
-"will fail):"
+"à necessário uma injeção de alias de coluna na seguinte consulta (a qual é "
+"bem provável que falhe):"
-#. Tag: programlisting
-#: query_sql.xml:180
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:184
-#, fuzzy, no-c-format
-msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
"mother. The query will, however, fail because there is a conflict of names; "
"the instances are mapped to the same column names. Also, on some databases "
@@ -408,49 +407,34 @@
"NAME\", etc. which are not equal to the columns specified in the mappings "
"(\"ID\" and \"NAME\")."
msgstr ""
-"The intention for this query is to return two Cat instances per row, a cat "
-"and its mother. This will fail since there is a conflict of names since they "
-"are mapped to the same column names and on some databases the returned "
-"column aliases will most likely be on the form \"c.ID\", \"c.NAME\", etc. "
-"which are not equal to the columns specificed in the mappings (\"ID\" and "
-"\"NAME\")."
+"A intenção para esta consulta é retornar duas instâncias Cat por linha: um "
+"cat e sua mãe. Isto irá falhar pois existe um conflito de nomes, são "
+"mapeados aos mesmos nomes de colunas e em alguns bancos de dados os aliases "
+"de colunas retornadas estarão, muito provavelmente, na forma de \"c.ID\", "
+"\"c.NOME\", etc., os quais não são iguais às colunas especificadas no "
+"mapeamento (\"ID\" e \"NOME\"). "
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
-msgstr "The following form is not vulnerable to column name duplication:"
+msgstr "A seguinte forma não é vulnerável à duplicação do nome de coluna:"
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
"aliases"
msgstr ""
-"the SQL query string, with placeholders for Hibernate to inject column "
-"aliases"
+"a string da consulta SQL, com espaço reservado para Hibernate para injetar "
+"aliases de coluna."
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
-msgstr "the entities returned by the query"
+msgstr "as entidades retornadas pela consulta"
#. Tag: para
-#: query_sql.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
"properties\". Alternatively, you can list the columns explicitly, but even "
@@ -460,605 +444,394 @@
"from a different table (cat_log) to the one declared in the mapping "
"metadata. You can even use the property aliases in the where clause."
msgstr ""
-"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
-"properties\". Alternatively, you may list the columns explicity, but even in "
-"this case we let Hibernate inject the SQL column aliases for each property. "
-"The placeholder for a column alias is just the property name qualified by "
-"the table alias. In the following example, we retrieve Cats and their "
-"mothers from a different table (cat_log) to the one declared in the mapping "
-"metadata. Notice that we may even use the property aliases in the where "
-"clause if we like."
+"A anotação {cat.*} e {mãe.*} usada acima, é um atalho para \"todas as "
+"propriedades\". De forma alternativa, você pode listar as colunas "
+"explicitamente, mas até neste caso nós deixamos o Hibernate injetar os "
+"aliases de coluna SQL para cada propriedade. O espaço reservado para um "
+"alias de coluna é simplesmente o nome de propriedade qualificado pelo alias "
+"de tabela. No seguinte exemplo, recuperamos os Cats e suas mães de uma "
+"tabela diferente (cat_log) para aquele declarado no metadado de mapeamentos. "
+"Note que podemos até usar os aliases de propriedade na cláusula where se "
+"quisermos."
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
-msgstr "Alias and property references"
+msgstr "Alias e referências de propriedades"
#. Tag: para
-#: query_sql.xml:225
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
"more complex mappings, like composite properties, inheritance "
"discriminators, collections etc., you can use specific aliases that allow "
"Hibernate to inject the proper aliases."
msgstr ""
-"For most cases the above alias injection is needed, but for queries relating "
-"to more complex mappings like composite properties, inheritance "
-"discriminators, collections etc. there are some specific aliases to use to "
-"allow Hibernate to inject the proper aliases."
+"Para a maioria dos casos, necessita-se da injeção de alias acima. Para "
+"consultas relatadas aos mapeamentos mais complexos, como as propriedades "
+"compostas, discriminadores de herança, coleções, etc., você pode usar "
+"aliases especÃficos que permitem o Hibernate injetar os aliases apropriados."
#. Tag: para
-#: query_sql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
"injection. Please note that the alias names in the result are simply "
"examples; each alias will have a unique and probably different name when "
"used."
msgstr ""
-"The following table shows the different possibilities of using the alias "
-"injection. Note: the alias names in the result are examples, each alias will "
-"have a unique and probably different name when used."
+"As seguintes tabelas mostram as diferentes formas de usar uma injeção de "
+"alias. Por favor note que os nomes de alias no resultado são exemplos, cada "
+"alias terá um nome único e provavelmente diferente quando usado."
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
-msgstr "Alias injection names"
+msgstr "Nomes de injeção de alias"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
-msgstr "Description"
+msgstr "Descrição"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
-msgstr "Syntax"
+msgstr "Sintáxe"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
-msgstr "Example"
+msgstr "Exemplo"
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
-msgstr "A simple property"
+msgstr "Uma propriedade simples"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
-msgstr "{[aliasname].[propertyname]"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
+msgstr "<literal>{[aliasname].[propertyname]</literal>"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
-msgstr "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
-msgstr "A composite property"
+msgstr "Uma propriedade composta"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
-msgstr "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
-msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
+msgstr ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
-msgstr "Discriminator of an entity"
+msgstr "Discriminador de uma entidade"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
-msgstr "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
-msgstr "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
-msgstr "All properties of an entity"
+msgstr "Todas as propriedades de uma entidade"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
-msgstr "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
-msgstr "A collection key"
+msgstr "Uma chave de coleção"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
-msgstr "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
-msgstr "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
-msgstr "The id of an collection"
+msgstr "O id de uma coleção"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
-msgstr "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
-msgstr "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
-msgstr "The element of an collection"
+msgstr "O elemento de uma coleção"
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
-msgstr "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
-msgstr "XID as {coll.element}"
-
#. Tag: entry
-#: query_sql.xml:314
#, fuzzy, no-c-format
-msgid "property of the element in the collection"
-msgstr "roperty of the element in the collection"
+msgid "<literal>XID as {coll.element}</literal>"
+msgstr "<literal>{coll.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:316
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
-msgstr "{[aliasname].element.[propertyname]}"
+msgid "property of the element in the collection"
+msgstr "propriedade de elemento na coleção "
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
-msgstr "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].element.[propertyname]}</literal>"
#. Tag: entry
-#: query_sql.xml:322
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
+msgstr "<literal>NAME as {coll.element.name}</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "All properties of the element in the collection"
-msgstr "All properties of the element in the collection"
+msgstr "Todas as propriedades de elemento na coleção"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
-msgstr "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:326
-#, no-c-format
-msgid "{coll.element.*}"
-msgstr "{coll.element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{coll.element.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
-msgstr "All properties of the the collection"
+msgstr "Todas as propriedades da coleção"
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
-msgstr "Returning non-managed entities"
+msgstr "Retorno de entidades não gerenciadas"
#. Tag: para
-#: query_sql.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
"it to return non-managed entities."
msgstr ""
-"It is possible to apply a ResultTransformer to native sql queries. Allowing "
-"it to e.g. return non-managed entities."
+"Ã possÃvel aplicar um ResultTransformer para consultas sql nativas, "
+"permitindo que o retorno de entidades não gerenciadas."
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
-msgstr "a result transformer"
+msgstr "um transformador de resultado"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
"been instantiated and injected the values of NAME and BIRTHNAME into its "
"corresponding properties or fields."
msgstr ""
-"The above query will return a list of <literal>CatDTO</literal> which has "
-"been instantiated and injected the values of NAME and BIRTHNAME into its "
-"corresponding properties or fields."
+"A consulta acima irá devolver uma lista de <literal>CatDTO</literal> que foi "
+"instanciada e injetada com valores dos comandos NAME e BIRTHDATE em suas "
+"propriedades correspondentes ou campos."
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
-msgstr "Handling inheritance"
+msgstr "Manuseio de herança"
#. Tag: para
-#: query_sql.xml:370
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
"inheritance must include all properties for the baseclass and all its "
"subclasses."
msgstr ""
-"Native sql queries which query for entities that is mapped as part of an "
-"inheritance must include all properties for the baseclass and all it "
-"subclasses."
+"As consultas sql nativas, as quais consultam entidades mapeadas como parte "
+"de uma herança, devem incluir todas as propriedades na classe base e todas "
+"as suas subclasses. "
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
-msgstr "Parameters"
+msgstr "Parâmetros"
#. Tag: para
-#: query_sql.xml:378
-#, fuzzy, no-c-format
-msgid "Native SQL queries support positional as well as named parameters:"
-msgstr "Native sql queries support positional as well as named parameters:"
-
-#. Tag: programlisting
-#: query_sql.xml:381
#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
+msgid "Native SQL queries support positional as well as named parameters:"
msgstr ""
+"Consultas sql Nativas suportam parâmetros posicionais assim como parâmetros "
+"nomeados:"
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
-msgstr "Named SQL queries"
+msgstr "Consultas SQL Nomeadas"
#. Tag: para
-#: query_sql.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
"exactly the same way as a named HQL query. In this case, you do "
"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
-"Named SQL queries may be defined in the mapping document and called in "
-"exactly the same way as a named HQL query. In this case, we do "
-"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
+"Consultas SQL Nomeadas podem ser definidas no documento de mapeamento e "
+"chamadas exatamente da mesma forma que uma consulta HQL nomeada. Neste caso "
+"nós <emphasis>não</emphasis> precisamos chamar o <literal>addEntity()</"
+"literal>."
-#. Tag: programlisting
-#: query_sql.xml:396
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:400
-#, fuzzy, no-c-format
-msgid ""
"The <literal><return-join></literal> element is use to join "
"associations and the <literal><load-collection></literal> element is "
"used to define queries which initialize collections,"
msgstr ""
-"The <literal><return-join></literal> and <literal><load-"
-"collection></literal> elements are used to join associations and define "
-"queries which initialize collections, respectively."
+"Os elementos <literal><return-join></literal> e <literal><load-"
+"collection></literal> são usados para unir associações e definir "
+"consultas que inicializam coleções, "
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
"alias and Hibernate type using the <literal><return-scalar></literal> "
"element:"
msgstr ""
-"A named SQL query may return a scalar value. You must declare the column "
-"alias and Hibernate type using the <literal><return-scalar></literal> "
-"element:"
+"Uma consulta SQL nomeada pode devolver um valor escalar. Você deve declarar "
+"um alias de coluna e um tipo Hibernate usando o elemento <literal><return-"
+"scalar></literal>:"
-#. Tag: programlisting
-#: query_sql.xml:410
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:412
-#, fuzzy, no-c-format
-msgid ""
"You can externalize the resultset mapping information in a <literal><"
"resultset></literal> element which will allow you to either reuse them "
"across several named queries or through the <literal>setResultSetMapping()</"
"literal> API."
msgstr ""
-"You can externalize the resultset mapping informations in a <literal><"
-"resultset></literal> element to either reuse them accross several named "
-"queries or through the <literal>setResultSetMapping()</literal> API."
+"Você pode externar as informações de mapeamento de conjunto de resultado em "
+"um elemento <literal><resultset></literal> tanto para reusá-los em "
+"diversas consultas nomeadas quanto através da API "
+"<literal>setResultSetMapping()</literal>."
-#. Tag: programlisting
-#: query_sql.xml:417
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:419
-#, fuzzy, no-c-format
-msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
"files directly in java code."
msgstr ""
-"You can alternatively use the resultset mapping information in your hbm "
-"files directly in java code."
+"Você pode também, como forma alternativa, usar a informação de mapeamento de "
+"conjunto de resultado em seus arquivos hbm em código de java. "
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
-msgstr "Using return-property to explicitly specify column/alias names"
+msgstr ""
+"Utilizando a propriedade retorno para especificar explicitamente os nomes de "
+"colunas/alias"
#. Tag: para
-#: query_sql.xml:428
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
"<literal><return-property></literal>, instead of using the <literal>{}"
"</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
-"With <literal><return-property></literal> you can explicitly tell "
-"Hibernate what column aliases to use, instead of using the <literal>{}</"
-"literal>-syntax to let Hibernate inject its own aliases."
+"Com a <literal><return-property></literal> você pode informar "
+"explicitamente, quais aliases de coluna utilizar, ao invés de usar a sintáxe "
+"<literal>{}</literal> para deixar o Hibernate injetar seus próprios aliases. "
+"Por exemplo:"
-#. Tag: programlisting
-#: query_sql.xml:433
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:435
-#, fuzzy, no-c-format
-msgid ""
"<literal><return-property></literal> also works with multiple columns. "
"This solves a limitation with the <literal>{}</literal>-syntax which cannot "
"allow fine grained control of multi-column properties."
msgstr ""
-"<literal><return-property></literal> also works with multiple columns. "
-"This solves a limitation with the <literal>{}</literal>-syntax which can not "
-"allow fine grained control of multi-column properties."
+"<literal><return-property></literal> também funciona com colunas "
+"múltiplas. Isto resolve a limitação com a sintáxe <literal>{}</literal> que "
+"não pode permitir controle granulado fino de muitas propriedades de colunas "
+"múltiplas. "
-#. Tag: programlisting
-#: query_sql.xml:440
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:442
-#, fuzzy, no-c-format
-msgid ""
"In this example <literal><return-property></literal> was used in "
"combination with the <literal>{}</literal>-syntax for injection. This allows "
"users to choose how they want to refer column and properties."
msgstr ""
-"Notice that in this example we used <literal><return-property></"
-"literal> in combination with the <literal>{}</literal>-syntax for injection. "
-"Allowing users to choose how they want to refer column and properties."
+"Observe que neste exemplo nós usamos <literal><return-property></"
+"literal> combinado à sÃntáxe <literal>{}</literal> para injeção. Permite que "
+"os usuários escolham como eles querem se referir à coluna e às "
+"propriedades. "
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
"discriminator></literal> to specify the discriminator column."
msgstr ""
-"If your mapping has a discriminator you must use <literal><return-"
-"discriminator></literal> to specify the discriminator column."
+"Se seu mapeamento possuir um discriminador, você deve usar <literal><"
+"return-discriminator></literal> para especificar a coluna do "
+"discriminador."
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
-msgstr "Using stored procedures for querying"
+msgstr "Usando procedimentos de armazenamento para consultas"
#. Tag: para
-#: query_sql.xml:455
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
"Most of the following documentation is equivalent for both. The stored "
@@ -1066,78 +839,38 @@
"able to work with Hibernate. An example of such a stored function in Oracle "
"9 and higher is as follows:"
msgstr ""
-"Hibernate 3 introduces support for queries via stored procedures and "
-"functions. Most of the following documentation is equivalent for both. The "
-"stored procedure/function must return a resultset as the first out-parameter "
-"to be able to work with Hibernate. An example of such a stored function in "
-"Oracle 9 and higher is as follows:"
+"O Hibernate 3 apresenta o suporte para consultas através de procedimentos e "
+"funções armazenadas. A maior parte da documentação a seguir, é equivalente "
+"para ambos. Os procedimentos e funções armazenados devem devolver um "
+"conjunto de resultados como primeiros parâmetros externos para poder "
+"trabalhar com o Hibernate. Um exemplo disto é a função armazenada em Oracle "
+"9 e versões posteriores como se segue: "
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
-msgstr "To use this query in Hibernate you need to map it via a named query."
-
-#. Tag: programlisting
-#: query_sql.xml:466
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
msgstr ""
+"Para usar esta consulta no Hibernate você vai precisar mapeá-lo através de "
+"uma consulta nomeada"
#. Tag: para
-#: query_sql.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
"return-join></literal> and <literal><load-collection></literal> are "
"not supported."
msgstr ""
-"Notice stored procedures currently only return scalars and entities. "
-"<literal><return-join></literal> and <literal><load-collection></"
-"literal> are not supported."
+"Observe que os procedimentos armazenados somente devolvem escalares e "
+"entidades. O <literal><return-join></literal> e <literal><load-"
+"collection></literal> não são suportados."
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
-msgstr "Rules/limitations for using stored procedures"
+msgstr "Regras e limitações para utilizar procedimentos armazenados."
#. Tag: para
-#: query_sql.xml:475
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
"procedure/function rules. If they do not follow those rules they are not "
@@ -1146,44 +879,41 @@
"different for each database, since database vendors have different stored "
"procedure semantics/syntax."
msgstr ""
-"To use stored procedures with Hibernate the procedures/functions have to "
-"follow some rules. If they do not follow those rules they are not usable "
-"with Hibernate. If you still want to use these procedures you have to "
-"execute them via <literal>session.connection()</literal>. The rules are "
-"different for each database, since database vendors have different stored "
-"procedure semantics/syntax."
+"Para usar procedimentos armazenados com Hibernate, os procedimentos e "
+"funções precisam seguir a mesma regra. Caso não sigam estas regras, não "
+"poderão ser usados com o Hibernate. Se você ainda desejar usar estes "
+"procedimentos, terá que executá-los através da <literal>session.connection()"
+"</literal>. As regras são diferentes para cada banco de dados, uma vez que "
+"os fabricantes possuem procedimentos de semânticas/sintáxe armazenados. "
#. Tag: para
-#: query_sql.xml:482
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
"setMaxResults()</literal>."
msgstr ""
-"Stored procedure queries can't be paged with <literal>setFirstResult()/"
-"setMaxResults()</literal>."
+"Consultas de procedimento armazenado não podem ser paginados com o "
+"<literal>setFirstResult()/setMaxResults()</literal>. "
#. Tag: para
-#: query_sql.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
"parameters>}</literal>. Native call syntax is not supported."
msgstr ""
-"Recommended call form is standard SQL92: <literal>{ ? = call functionName"
-"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
-"parameters>}</literal>. Native call syntax is not supported."
+"O formulário de chamada recomedado é o padrão SQL92: <literal>{ ? = call "
+"functionName(<parameters>) }</literal> or <literal>{ ? = call "
+"procedureName(<parameters>}</literal>. A sintáxe de chamada nativa não "
+"é suportada."
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
-msgstr "For Oracle the following rules apply:"
+msgstr "As seguintes regras se aplicam para Oracle:"
#. Tag: para
-#: query_sql.xml:494
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
"be an <literal>OUT</literal> that returns a result set. This is done by "
@@ -1191,138 +921,101 @@
"you need to define a <literal>REF CURSOR</literal> type. See Oracle "
"literature for further information."
msgstr ""
-"A funçãp deve retornar um result set. O primeiro parâmetro da procedure "
-"dever ser uma <literal>SAÃDA</literal> que retorne um result set. Isto é "
-"feito usando o tipo a <literal>SYS_REFCURSOR</literal> no Oracle 9 ou 10. No "
-"Oracle é necessário definir o tipo <literal>REF CURSOR</literal>, veja a "
-"documentação do Oracle."
+"A função deve retornar um conjunto de resultado. O primeiro parâmetro do "
+"procedimento deve ser um <literal>OUT</literal> que retorne um conjunto de "
+"resultado. Isto é feito usando o tipo <literal>SYS_REFCURSOR</literal> no "
+"Oracle 9 ou 10. No Oracle é necessário definir o tipo de <literal>REF "
+"CURSOR</literal>, veja a documentação do Oracle. "
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
-msgstr "For Sybase or MS SQL server the following rules apply:"
+msgstr "Para servidores Sybase ou MS SQL aplicam-se as seguintes regras:"
#. Tag: para
-#: query_sql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
"return multiple result sets and update counts, Hibernate will iterate the "
"results and take the first result that is a result set as its return value. "
"Everything else will be discarded."
msgstr ""
-"A procedure deve retornar um result set. Veja que este servidor pode "
-"retornar múltiplos result sets e update counts. O Hibernate ira iterar os "
-"resultados e pegar o primeiro resultado que é o valor de retorno do result "
-"set. O resto será descartado."
+"O procedimento deve retornar um conjunto de resultados. Observe que, como "
+"este servidor pode retornar múltiplos conjuntos de resultados e contas "
+"atualizadas, o Hibernate irá inteirar os resultados e pegar o primeiro "
+"resultado, o qual é o valor de retorno do conjunto de resultados. O resto "
+"será descartado."
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
"will probably be more efficient, but this is not a requirement."
msgstr ""
-"Se você habilitar <literal>SET NOCOUNT ON</literal> na sua procedure, ela "
+"Se você habilitar <literal>SET NOCOUNT ON</literal> no seu procedimento, ele "
"provavelmente será mais eficiente. Mas, isto não é obrigatório"
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
-msgstr "SQL customizado para create, update e delete"
+msgstr "SQL padronizado para criar, atualizar e deletar"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings: Hibernate3 pode usar SQL customizado para "
-"operações de create, update e delete. A persistência de classe e collection "
-"no hibernate já contem alguma strings de configurações (insertsql, "
-"deletesql, updatesql etc.). O mapaemento das tags <literal><sql-insert>"
-"</literal>, <literal><sql-delete></literal>, e <literal><sql-"
-"update></literal> sobreecreve essas strings:"
-#. Tag: programlisting
-#: query_sql.xml:535
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
msgstr ""
+"O Hibernate3 pode usar SQL padronizado para operações criar, atualizar e "
+"deletar. A persistência de classe e coleção no Hibernate já contém um "
+"conjunto de strings gerados por tempo de configuração (insertsql, deletesql, "
+"updatesql etc.). O mapeamento das tags <literal><sql-insert></"
+"literal>, <literal><sql-delete></literal>, e <literal><sql-"
+"update></literal> sobrescreve essas strings:"
#. Tag: para
-#: query_sql.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
"you like. This will reduce the portability of your mapping if you use "
"database specific SQL."
msgstr ""
"O SQL é executado diretamente no seu banco de dados, então você pode usar "
-"qualquer linguagem que quiser. Isto com certeza reduzira a portabilidade do "
-"seu mapeamento se você utilizar um SQL para um banco de dados especifico."
+"qualquer linguagem que quiser. Isto com certeza reduzirá a portabilidade do "
+"seu mapeamento se você utilizar um SQL para um banco de dados especÃfico."
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
"is set:"
msgstr ""
-"Stored Procedures são suportadas se o atributo the <literal>callable</"
-"literal> estiver ativado:"
+"Os procedimentos armazenados são suportados se a função <literal>callable</"
+"literal> estiver ativada:"
-#. Tag: programlisting
-#: query_sql.xml:544
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:546
-#, fuzzy, no-c-format
-msgid ""
"The order of the positional parameters is vital, as they must be in the same "
"sequence as Hibernate expects them."
msgstr ""
"A ordem de posições dos parâmetros são vitais, pois eles devem estar na "
-"mesma seqüência esperada pelo Hibernate."
+"mesma seqüência esperada pelo Hibernate. "
#. Tag: para
-#: query_sql.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
"<literal>org.hibernate.persister.entity</literal> level. With this level "
@@ -1331,155 +1024,121 @@
"your custom SQL in the mapping files, as this will override the Hibernate "
"generated static SQL."
msgstr ""
-"Você pode ver a ordem esperada ativando o debug logging no nÃvel "
-"<literal>org.hibernate.persister.entity</literal>. Com este nÃvel ativado, o "
-"Hibernate irá imprimir o SQL estático que foi usado para create, update, "
-"delete, etc. Entidades. (Para ver a seqüência esperada, lembre-se de não "
-"incluir seu SQL customizado no arquivo de mapeamento, pois ele irá "
-"sobreecreve o SQL estático gerado pelo Hibernate)."
+"Você pode ver a ordem esperada ativando o debug logging no nÃÂvel "
+"<literal>org.hibernate.persister.entity</literal>. Com este nÃÂvel ativado, "
+"o Hibernate irá imprimir o SQL estático que foi usado para criar, atualizar, "
+"deletar, etc., entidades. Para ver a seqüência esperada, lembre-se de não "
+"incluir seu SQL padronizado no arquivo de mapeamento, pois ele irá "
+"sobrescrever o SQL estático gerado pelo Hibernate."
#. Tag: para
-#: query_sql.xml:556
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
"rows inserted, updated and deleted, as Hibernate has some runtime checks for "
"the success of the statement. Hibernate always registers the first statement "
"parameter as a numeric output parameter for the CUD operations:"
msgstr ""
-"As stored procedures são na maioria dos casos (leia: melhor não fazer) "
-"requeridas para retornar o numero de linhas inseridas/atualizadas/deletadas. "
-"O hibernate tem algumas verificações em tempo de execução para o sucesso da "
-"declaração. Hibernate sempre registra o primeiro parâmetro da declaração "
-"como uma saÃda numérica para operações CRUD."
+"Os procedimentos armazenados são na maioria dos casos requeridos para "
+"retornar o número de linhas inseridas/atualizadas/deletadas, uma vez que o "
+"Hibernate possui algumas verificações em tempo de espera para o sucesso das "
+"instruções. O Hibernate sempre registra o primeiro parâmetro da instrução "
+"como um parâmetro de saÃda numérica para as operações CUD:"
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
-msgstr "SQL customizado para carga"
+msgstr "SQL padronizado para carga"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr ""
-"Você pode declarar sua própria query SQL (ou HQL) para iniciar entidades:"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
#. Tag: para
-#: query_sql.xml:573
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
"reference this named query in a class mapping:"
msgstr ""
-"Este é apenas uma declaração de query com nome, como discutido "
-"anteriormente. Você pode referenciar esta query com nome em um mapeamento de "
-"classe:"
+"Este é apenas uma instrução de consulta nomeada, como discutido "
+"anteriormente. Você pode referenciar esta consulta nomeada em um mapeamento "
+"de classe:"
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
-msgstr "Isto também funciona com stored procedures."
+msgstr "Este também funciona com procedimentos armazenados."
#. Tag: para
-#: query_sql.xml:580
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even define a query for collection loading:"
-msgstr "Você pode tembém definir uma query para iniciar collection:"
+msgstr "Você pode também definir uma consulta para carregar uma coleção: "
-#. Tag: programlisting
-#: query_sql.xml:582
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:586
-#, fuzzy, no-c-format
-msgid ""
"You can also define an entity loader that loads a collection by join "
"fetching:"
msgstr ""
-"You could even define an entity loader that loads a collection by join "
-"fetching:"
+"Você pode até definir um carregador de entidade que carregue uma coleção por "
+"busca de união: "
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr ""
+#~ "Você pode declarar sua própria consulta SQL (ou HQL) para o carregamento "
+#~ "da entidade: "
+
+#, fuzzy
+#~ msgid "A_NAME as {item.name}"
+#~ msgstr "<literal>A_NAME as {item.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].class}"
+#~ msgstr "<literal>{[aliasname].class}</literal>"
+
+#, fuzzy
+#~ msgid "DISC as {item.class}"
+#~ msgstr "<literal>DISC as {item.class}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].*}"
+#~ msgstr "<literal>{[aliasname].*}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].key}"
+#~ msgstr "<literal>{[aliasname].key}</literal>"
+
+#, fuzzy
+#~ msgid "ORGID as {coll.key}"
+#~ msgstr "<literal>ORGID as {coll.key}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].id}"
+#~ msgstr "<literal>{[aliasname].id}</literal>"
+
+#, fuzzy
+#~ msgid "EMPID as {coll.id}"
+#~ msgstr "<literal>EMPID as {coll.id}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element}"
+#~ msgstr "<literal>{[aliasname].element}</literal>"
+
+#, fuzzy
+#~ msgid "XID as {coll.element}"
+#~ msgstr "<literal>XID as {coll.element}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element.*}"
+#~ msgstr "<literal>{[aliasname].element.*}</literal>"
+
+#, fuzzy
+#~ msgid "{coll.element.*}"
+#~ msgstr "<literal>{coll.element.*}</literal>"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of session_api.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-12-21 07:37+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr "Trabalhando com objetos"
#. Tag: para
-#: session_api.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
"the developer from the details of the underlying database management system, "
@@ -29,14 +134,13 @@
msgstr ""
"O Hibernate é uma solução completa de mapeamento objeto/relacional que não "
"apenas poupa o desenvolvedor dos detalhes de baixo nÃvel do sistema de "
-"gerenciamento do banco de dados, mas também oferece um "
-"<emphasis>gerenciamento de estado </emphasis> para objetos. Isto é, ao "
-"contrário do gerenciamento de <literal>instruções </literal> SQL em camadas "
+"gerenciamento do banco de dados, como também oferece um "
+"<emphasis>gerenciamento de estado</emphasis> para objetos. Isto é, ao "
+"contrário do gerenciamento de <literal>instruções</literal> SQL em camadas "
"de persistência JDBC/SQL comuns, uma visão natural da persistência orientada "
-"a objetos em aplicações Java."
+"a objetos em aplicações Java. "
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -46,26 +150,23 @@
"of the system."
msgstr ""
"Em outras palavras, desenvolvedores de aplicações Hibernate podem sempre "
-"pensar em relação ao <emphasis>estado</emphasis> de seus objetos, e não "
-"necessariamente em relação a execução de instruções SQL. Este parte é "
-"responsabilidade do Hibernate e é relevante aos desenvolvedores de "
-"aplicações apenas quando estão ajustando a performance do sistema."
+"considerar o <emphasis>estado</emphasis> de seus objetos, e não "
+"necessariamente a execução de instruções SQL. O Hibernate é responsável por "
+"esta parte e é relevante aos desenvolvedores de aplicações apenas quando "
+"estão ajustando o desempenho do sistema."
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
msgstr "Estado dos objetos no Hibernate"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
-msgstr "O Hibernate define e suporta os seguintes estados de um objetos:"
+msgstr "O Hibernate define e suporta os seguintes estados de objetos:"
#. Tag: para
-#: session_api.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
"instantiated using the <literal>new</literal> operator, and it is not "
@@ -78,18 +179,17 @@
"transition)."
msgstr ""
"<emphasis>Transient</emphasis> - um objeto é transiente se ele foi "
-"instanciando usando apenas o operador <literal>new</literal>, e não foi "
-"associado com uma <literal>Session</literal> do Hibernate. Ele não terá uma "
-"representação persistente no banco de dados e nenhum identificador será "
-"atribuÃdo para ele. Instâncias transientes serão destruÃdas pelo coletor de "
-"lixo se a aplicação não manter sua referência. Use uma <literal>Session</"
-"literal> do Hibernate para tornar o objeto persistente ( e deixe o Hibernate "
+"instanciando usando apenas o operador <literal>new</literal> e não foi "
+"associado a uma <literal>Session</literal> do Hibernate. Ele não possui uma "
+"representação persistente no banco de dados e não lhe foi atribuÃdo nenhum "
+"identificador. Instâncias transientes serão destruÃdas pelo coletor de lixo "
+"se a aplicação não mantiver sua referência. Use uma <literal>Session</"
+"literal> do Hibernate para tornar o objeto persistente (e deixe o Hibernate "
"gerenciar as instruções SQL que serão necessárias para executar esta "
"transição)."
#. Tag: para
-#: session_api.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
"in the database and an identifier value. It might just have been saved or "
@@ -100,18 +200,17 @@
"statements, or <literal>DELETE</literal> statements when an object should be "
"made transient."
msgstr ""
-"<emphasis>Persistent</emphasis> -â uma instância persistente possui uma "
-"representação no banco de dados e um identificador. Ele pode ter sido salvo "
-"ou carregado, assim, ele está por definição no escopo de uma "
-"<literal>Session</literal>. O Hibernate irá detectar qualquer mudança feita "
-"a um objeto persistente e sincronizar o seu estado com o banco de dados "
-"quando completar a unidade de trabalho. Desenvolvedores não executam "
-"instruções manuais de <literal>UPDATE</literal>, ou instruções de "
-"<literal>DELETE</literal> quando o objeto deve ser passado para transiente."
+"<emphasis>Persistent</emphasis> - uma instância persistente possui uma "
+"representação no banco de dados e um identificador. Ela pode ter sido salva "
+"ou carregada, portanto ela se encontra no escopo de uma <literal>Session</"
+"literal>. O Hibernate irá detectar qualquer mudança feita a um objeto "
+"persistente e sincronizar o seu estado com o banco de dados quando completar "
+"a unidade de trabalho. Desenvolvedores não executam instruções manuais de "
+"<literal>UPDATE</literal>, ou instruções de <literal>DELETE</literal> quando "
+"o objeto se tornar transiente. "
#. Tag: para
-#: session_api.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
"been persistent, but its <literal>Session</literal> has been closed. The "
@@ -123,60 +222,45 @@
"them <emphasis>application transactions</emphasis>, i.e., a unit of work "
"from the point of view of the user."
msgstr ""
-"<emphasis>Detached</emphasis> â uma instância desaclopada é um objeto que "
-"foi persistido, mas sua <literal>Session</literal> foi fechada. A referência "
-"ao objeto continua válida, é claro, e a instância destacada desaclopada pode "
-"ser acoplada a uma nova <literal>Session</literal> no futuro, fazendo-o ( e "
-"todas as modificações sofridas) persistente novamente. Essa caracterÃstica "
-"possibilita um modelo de programação para unidades de trabalho que rodam "
-"durante muito tempo que requer um pensamento por tempo do usuário. Podemos "
-"chamar-las de <emphasis>transações da aplicação</emphasis>, i.e. uma unidade "
-"de trabalho do ponto de vista do usuário."
+"<emphasis>Detached</emphasis> â uma instância desanexada é um objeto que foi "
+"persistido, mas sua <literal>Session</literal> foi fechada. A referência ao "
+"objeto continua válida, é claro, e a instância desanexada pode ser acoplada "
+"a uma nova <literal>Session</literal> no futuro, tornando-o novamente "
+"persistente (e todas as modificações sofridas). Essa caracterÃstica habilita "
+"um modelo de programação para unidades de trabalho de longa execução, que "
+"requeira um tempo de espera do usuário. Podemos chamá-las de "
+"<emphasis>transações da aplicação</emphasis>, ou seja, uma unidade de "
+"trabalho do ponto de vista do usuário."
#. Tag: para
-#: session_api.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
"methods that trigger a transition) in more detail."
msgstr ""
-"Agora iremos discutir os estados e suas transições ( e os métodos do "
+"Agora iremos discutir os estados e suas transições (e os métodos do "
"Hibernate que disparam uma transição) em mais detalhes."
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "Tornando os objetos persistentes"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
"<emphasis>transient</emphasis> by Hibernate. We can make a transient "
"instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
-"Instâncias recentemente instanciadas de uma classe persistente são "
+"As instâncias recentemente instanciadas de uma classe persistente são "
"consideradas <emphasis>transientes </emphasis> pelo Hibernate. Podemos "
-"tornar uma instância transiente em <emphasis>persistente</emphasis> "
+"transformar uma instância transiente em <emphasis>persistente</emphasis> "
"associando-a a uma sessão:"
-#. Tag: programlisting
-#: session_api.xml:110
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:112
-#, fuzzy, no-c-format
-msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
"generated and assigned to the <literal>cat</literal> when <literal>save()</"
"literal> is called. If <literal>Cat</literal> has an <literal>assigned</"
@@ -187,17 +271,16 @@
"draft."
msgstr ""
"Se <literal>Cat</literal> possui um identificador gerado, o identificador é "
-"gerado e atribuÃdo a <literal>cat</literal> quando <literal>save()</literal> "
-"for chamada. Se <literal>Cat</literal> possuir um identificador "
-"<literal>Associado</literal>, ou uma chave composta, o identificador deve "
+"gerado e atribuÃdo à <literal>cat</literal> quando <literal>save()</literal> "
+"for chamado. Se <literal>Cat</literal> possuir um identificador "
+"<literal>Associado</literal>, ou uma chave composta, o identificador deverá "
"ser atribuÃdo à instância de <literal>cat</literal> antes que <literal>save()"
"</literal> seja chamado. Pode-se usar também <literal>persist()</literal> ao "
-"invés de <literal>save()</literal>, com a semântica definada no novo esboço "
-"do EJB3."
+"invés de <literal>save()</literal>, com a semântica definida no novo esboço "
+"do EJB3. "
#. Tag: para
-#: session_api.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
"it does not guarantee that the identifier value will be assigned to the "
@@ -207,16 +290,15 @@
"boundaries. This is useful in long-running conversations with an extended "
"Session/persistence context."
msgstr ""
-"<literal>persist()</literal> makes a transient instance persistent. However, "
-"it doesn't guarantee that the identifier value will be assigned to the "
-"persistent instance immediately, the assignment might happen at flush time. "
-"<literal>persist()</literal> also guarantees that it will not execute an "
-"<literal>INSERT</literal> statement if it is called outside of transaction "
-"boundaries. This is useful in long-running conversations with an extended "
-"Session/persistence context."
+"<literal>persist()</literal> faz uma instância transciente persistente. No "
+"entanto, isto não garante que o valor do identificador será determinado à "
+"instância persistente imediatamente, pois a determinação pode acontecer no "
+"perÃodo de limpeza. O <literal>persist()</literal> também garante que isto "
+"não executará uma declaração <literal>INSERT</literal> caso esta seja "
+"chamada fora dos limites da transação. Isto é útil em transações de longa-"
+"execução com um contexto de Sessão/persistência estendido."
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -225,39 +307,24 @@
"you are inside or outside of a transaction. This is problematic in a long-"
"running conversation with an extended Session/persistence context."
msgstr ""
-"<literal>save()</literal> does guarantee to return an identifier. If an "
-"INSERT has to be executed to get the identifier ( e.g. \"identity\" "
-"generator, not \"sequence\"), this INSERT happens immediately, no matter if "
-"you are inside or outside of a transaction. This is problematic in a long-"
-"running conversation with an extended Session/persistence context."
+"<literal>save()</literal> garante retornar um identificador. Caso um INSERT "
+"necessita ser executado para obter o identificador (ex.: gerador \"identidade"
+"\" e não \"seqüência\"), este INSERT acontece imediatamente, independente de "
+"você estar dentro ou fora da transação. Isto é problemático numa conversação "
+"de longa execução com um contexto de Sessão/persistência estendido."
#. Tag: para
-#: session_api.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
"<literal>save()</literal>."
msgstr ""
"Alternativamente, pode-se atribuir o identificador usando uma versão "
-"sobrecarregada de <literal>save()</literal>."
+"sobrecarregada de <literal>save()</literal>. "
-#. Tag: programlisting
-#: session_api.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:152
-#, fuzzy, no-c-format
-msgid ""
"If the object you make persistent has associated objects (e.g. the "
"<literal>kittens</literal> collection in the previous example), these "
"objects can be made persistent in any order you like unless you have a "
@@ -266,17 +333,16 @@
"violate a <literal>NOT NULL</literal> constraint if you <literal>save()</"
"literal> the objects in the wrong order."
msgstr ""
-"Se o objeto persistido possuir objetos associados (e.g. a coleção "
-"<literal>kittens</literal> no exemplo anterior), esses objetos podem ser "
-"tornar persistente em qualquer ordem que se queira ao menos que se tenha uma "
-"restrição <literal>NOT NULL</literal> em uma coluna de chave estrangeira. "
-"Nunca há risco de violação de restrições de chave estrangeira. Assim, pode-"
-"se violar uma restrição <literal>NOT NULL</literal> se <literal>save()</"
-"literal> for usada nos objetos em uma ordem errada."
+"Se o objeto persistido tiver associado objetos (ex.: a coleção "
+"<literal>kittens</literal> no exemplo anterior), esses objetos podem se "
+"tornar persistentes em qualquer ordem que se queira, a não ser que se tenha "
+"uma restrição <literal>NOT NULL</literal> em uma coluna de chave "
+"estrangeira. Nunca há risco de violação de restrições de chave estrangeira. "
+"Assim, pode-se violar uma restrição <literal>NOT NULL</literal> se "
+"<literal>save()</literal> for usado nos objetos em uma ordem errada. "
#. Tag: para
-#: session_api.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
"Hibernate's <emphasis>transitive persistence</emphasis> feature to save the "
@@ -284,72 +350,40 @@
"constraint violations do not occur - Hibernate will take care of everything. "
"Transitive persistence is discussed later in this chapter."
msgstr ""
-"Geralmente você não deve se importar com esses detalhes, muito provavelmente "
-"se usará a caracterÃstica de <emphasis>persistência transitiva </emphasis> "
-"do Hibernate para salvar os objetos associados automaticamente. Então, "
-"enquanto uma restrição <literal>NOT NULL</literal> não ocorrer â Hibernate "
-"tomará conta de tudo. Persistência transitiva será discutida futuramente "
-"nesse capÃtulo."
+"Geralmente você não precisa se preocupar com esses detalhes, pois muito "
+"provavelmente usará a caracterÃstica de <emphasis>persistência transitiva </"
+"emphasis> do Hibernate para salvar os objetos associados automaticamente. "
+"Assim, enquanto uma restrição <literal>NOT NULL</literal> não ocorrer, o "
+"Hibernate tomará conta de tudo. Persistência transitiva será discutida mais "
+"adiante nesse mesmo capÃtulo. "
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
-msgstr "Carregando o objetos"
+msgstr "Carregando o objeto"
#. Tag: para
-#: session_api.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
"a way of retrieving a persistent instance if you know its identifier. "
"<literal>load()</literal> takes a class object and loads the state into a "
"newly instantiated instance of that class in a persistent state."
msgstr ""
-"O método <literal>load()</literal> de uma <literal> Session</literal> nos "
-"fornece um meio para recuperar uma instância persistente se o identificador "
-"for conhecido. <literal>load()</literal> recebe uma classe do objeto e "
-"carregará o estado em uma instância mais recente dessa classe, no estado "
-"persistente."
+"O método <literal>load()</literal> de uma <literal> Session</literal> "
+"oferece uma maneira de recuperar uma instância persistente se o "
+"identificador for conhecido. O <literal>load()</literal> escolhe uma classe "
+"do objeto e carregará o estado em uma instância mais recente dessa classe, "
+"em estado persistente."
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
-msgstr ""
-"Alternatively, you can load state into a given instance: Alternativamente, "
-"pode-se carregar um estado em uma instância dada:"
+msgstr "Alternativamente, pode-se carregar um estado em uma instância dada:"
-#. Tag: programlisting
-#: session_api.xml:190
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:192
-#, fuzzy, no-c-format
-msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
"exception if there is no matching database row. If the class is mapped with "
"a proxy, <literal>load()</literal> just returns an uninitialized proxy and "
@@ -363,112 +397,79 @@
"não houver na tabela no banco de dados um registro que combine. Se a classe "
"for mapeada com um proxy, <literal>load()</literal> simplesmente retorna um "
"proxy não inicializado e realmente não chamará o banco de dados até que um "
-"método do proxy seja invocado. Esse comportamento é muito útil se deseja-se "
-"criar uma associação com um objeto sem que realmente o carregue do bando de "
-"dados. Isto também permite que sejam carregadas múltiplas instâncias como um "
-"grupo se <literal>batch-size</literal> estiver para o mapeamento da classe."
+"método do proxy seja invocado. Esse comportamento é muito útil para criar "
+"uma associação com um objeto sem que realmente o carregue do bando de dados. "
+"Isto também permite que sejam carregadas múltiplas instâncias como um grupo "
+"se o <literal>batch-size</literal> estiver definido para o mapeamento da "
+"classe. "
#. Tag: para
-#: session_api.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
"<literal>get()</literal> method which hits the database immediately and "
"returns null if there is no matching row."
msgstr ""
-"Se você não tiver certeza da existencia do registro no banco, você deve usar "
-"o metodo <literal>get()</literal>, que consulta o banco imediantamente e "
-"retorna um null se não existir o registro."
+"Se você não tiver certeza da existência do registro no banco, você deve usar "
+"o método <literal>get()</literal>, que consulta o banco imediatamente e "
+"retorna um null se não existir o registro. "
-#. Tag: programlisting
-#: session_api.xml:209
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:211
-#, fuzzy, no-c-format
-msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
"literal>, using a <literal>LockMode</literal>. See the API documentation for "
"more information."
msgstr ""
"Também pode-se carregar um objeto usando <literal>SELECT ... FOR UPDATE</"
"literal>, usando um <literal>LockMode</literal>. Veja a documentação da API "
-"para maiores informações."
+"para maiores informações. "
-#. Tag: programlisting
-#: session_api.xml:216
-#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:218
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
"emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to "
"specify <literal>lock</literal> or <literal>all</literal> as a cascade style "
"for the association."
msgstr ""
-"Note that any associated instances or contained collections are "
-"<emphasis>not</emphasis> selected <literal>FOR UPDATE</literal>, unless you "
-"decide to specify <literal>lock</literal> or <literal>all</literal> as a "
-"cascade style for the association."
+"Note que quaisquer instâncias associadas ou que contenham coleções, "
+"<emphasis>não</emphasis> são selecionados <literal>FOR UPDATE</literal>, a "
+"não ser que você decida especificar um <literal>lock</literal> ou "
+"<literal>all</literal> como um estilo cascata para a associação. "
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
"using the <literal>refresh()</literal> method. This is useful when database "
"triggers are used to initialize some of the properties of the object."
msgstr ""
-"O recarregamento de um objeto e todas as suas coleções é possÃvel a qualquer "
-"momento, usando o método <literal>refresh()</literal>. Util quando as "
-"triggers do banco de dados são usados para inicializar algumas propriedades "
-"do objeto."
+"à possÃvel realizar o recarregamento de um objeto e todas as suas coleções a "
+"qualquer momento, usando o método <literal>refresh()</literal>.à útil quando "
+"os disparos do banco de dados são usados para inicializar algumas "
+"propriedades do objeto."
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
-"Uma importante questão geralmente aparece neste ponto: O quanto Hibernate "
-"carrega do banco de dados e quantos SQL <literal>SELECT</literal> ele irá "
-"usar? Isto depende da estratégia de <emphasis>recuperação</emphasis>usada e "
-"explicada na <xref linkend=\"performance-fetching\"/>."
+"O quanto Hibernate carrega do banco de dados e quantos SQL <literal>SELECT</"
+"literal> ele irá usar? Isto depende da estratégia de <emphasis>estratégia de "
+"busca</emphasis> usada e explicada na <xref linkend=\"performance-fetching\"/"
+">."
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr "Consultando"
#. Tag: para
-#: session_api.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
"need a query. Hibernate supports an easy-to-use but powerful object oriented "
@@ -477,22 +478,20 @@
"express your query in the native SQL of your database, with optional support "
"from Hibernate for result set conversion into objects."
msgstr ""
-"Se o identificador do objeto que se está buscando não for conhecido, uma "
-"consulta será necessária. O Hibernate suporta uma linguagem de consulta "
-"(HQL) orientada a objetos fácil mas poderosa. Para criação via programação "
-"de consultas, o Hibernate suporta caracterÃsticas sofisticadas de consulta "
-"por Critério e Exemplo (QBCe QBE). Pode-se também expressar a consulta por "
-"meio de SQL nativa do banco de dados, com suporte opcional do Hibernate para "
-"conversão do conjunto de reultados em objetos."
+"Se o identificador do objeto que se está buscando não for conhecido, será "
+"necessário realizar uma consulta. O Hibernate suporta uma linguagem de "
+"consulta (HQL) orientada a objetos fáceis de usar, porém poderosos. Para "
+"criação via programação de consultas, o Hibernate suporta caracterÃsticas "
+"sofisticadas de consulta por Critério e Exemplo (QBCe QBE). Pode-se também "
+"expressar a consulta por meio de SQL nativa do banco de dados, com suporte "
+"opcional do Hibernate para conversão do conjunto de resultados em objetos. "
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr "Executando consultas"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -501,46 +500,15 @@
"always obtain a <literal>Query</literal> using the current <literal>Session</"
"literal>:"
msgstr ""
-"Consultas HQL e SQL nativa são representadas por uma instância de "
+"Consultas HQL e SQL nativas são representadas por uma instância de "
"<literal>org.hibernate.Query</literal>. Esta interface oferece métodos para "
-"associação de parâmetros, tratamento de conjunto de resultados, e para a "
+"associação de parâmetros, tratamento de conjunto de resultados e para a "
"execução de consultas reais. Você pode obter uma <literal>Query</literal> "
"usando a <literal>Session</literal> atual:"
-#. Tag: programlisting
-#: session_api.xml:264
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:266
-#, fuzzy, no-c-format
-msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
"result of the query will be loaded completely into a collection in memory. "
"Entity instances retrieved by a query are in a persistent state. The "
@@ -550,25 +518,23 @@
"with their collections initialized. You can filter these duplicates through "
"a <literal>Set</literal>."
msgstr ""
-"Geralmente uma consulta é executada ao invocar <literal>list()</literal>, o "
+"Geralmente uma consulta é executada ao invocar <literal>list()</literal>.O "
"resultado da consulta será carregado completamente em uma coleção na "
"memória. Instâncias de entidades recuperadas por uma consulta estão no "
"estado persistente. O <literal>uniqueResult()</literal> oferece um atalho se "
-"você souber de previamente que a consulta retornará apenas um único objeto. "
-"Repare que consultas que fazem uso de buscas de coleções de forma ansiosa "
-"(eager) geralmente retornam duplicatas dos objetos raiz ( mas com suas "
-"coleções inicializadas ). Pode-se filtrar estas duplicatas através de um "
+"você souber previamente, que a consulta retornará apenas um único objeto. "
+"Repare que consultas que fazem uso da busca antecipada (eager fetching) de "
+"coleções, geralmente retornam duplicatas dos objetos raiz, mas com suas "
+"coleções inicializadas. Pode-se filtrar estas duplicatas através de um "
"simples <literal>Set</literal>."
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
msgstr "Interagindo com resultados"
#. Tag: para
-#: session_api.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
"the query using the <literal>iterate()</literal> method. This will usually "
@@ -580,118 +546,55 @@
"returns identifiers, and <emphasis>n</emphasis> additional selects to "
"initialize the actual instances."
msgstr ""
-"Ocasionalmente, deves-se ser capaz de atingir performances melhores com a "
-"execução de consultas usando o método <literal>iterate()</literal>. "
-"Geralmente isso será o caso esperado apenas se as instâncias dos entidades "
-"reais retornadas pela consulta já estiverem na sessão ou no caché de segundo "
-"nÃvel. Caso elas ainda não tenham sido armazenadas, <literal>iterate()</"
-"literal> será mais devagar do que <literal>list()</literal> e pode ser "
-"necessário vários acessos ao banco de dados para um simples consulta, "
-"geralmente <emphasis>1</emphasis> para a seleção inicial que retorna apenas "
-"identificadores, e <emphasis>n</emphasis> consultas adicionais para "
-"inicializar as instâncias reais."
+"Ocasionalmente, pode-se obter um melhor desempenho com a execução de "
+"consultas, usando o método <literal>iterate()</literal>. Geralmente isso "
+"acontece apenas se as instâncias das entidades reais retornadas pela "
+"consulta já estiverem na sessão ou no cachê de segundo nÃvel. Caso elas "
+"ainda não tenham sido armazenadas, <literal>iterate()</literal> será mais "
+"devagar do que <literal>list()</literal> e podem ser necessários vários "
+"acessos ao banco de dados para uma simples consulta, geralmente <emphasis>1</"
+"emphasis> para a seleção inicial que retorna apenas identificadores, e "
+"<emphasis>n</emphasis> consultas adicionais para inicializar as instâncias "
+"reais. "
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
msgstr "Consultas que retornam tuplas"
#. Tag: para
-#: session_api.xml:298
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
"as an array:"
msgstr ""
-"Algumas vezes as consultas do Hibernate retornam tuplas de objetos, nesse "
-"caso cada tupla é retornada como um array:"
+"Algumas vezes as consultas do Hibernate retornam tuplas de objetos. Cada "
+"tupla é retornada como uma matriz:"
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
msgstr "Resultados escalares"
#. Tag: para
-#: session_api.xml:310
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
"clause. They can even call SQL aggregate functions. Properties or aggregates "
"are considered \"scalar\" results and not entities in persistent state."
msgstr ""
-"Consultas devem especificar uma propriedade da classe na clausula "
+"As consultas devem especificar uma propriedade da classe na cláusula "
"<literal>select</literal>. Elas também podem chamar funções SQL de "
-"agregaçãos. Propriedades ou agregações são considerados resultados agregados "
-"( e não entidades no estado persistente)."
+"agregações. Propriedades ou agregações são consideradas resultados agregados "
+"e não entidades no estado persistente. "
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
-msgstr "Bind parameters"
+msgstr "Parâmetros de vÃnculo"
#. Tag: para
-#: session_api.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
@@ -699,227 +602,120 @@
"are identifiers of the form <literal>:name</literal> in the query string. "
"The advantages of named parameters are as follows:"
msgstr ""
-"Methods on <literal>Query</literal> are provided for binding values to named "
-"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
-"to JDBC, Hibernate numbers parameters from zero.</emphasis> Named parameters "
-"are identifiers of the form <literal>:name</literal> in the query string. "
-"The advantages of named parameters are:"
+"Métodos em <literal>Consulta</literal> são oferecidos para valores de "
+"vÃnculo para parâmetros nomeados ou de estilo JDBC <literal>?</literal>. "
+"<emphasis>Ao contrário do JDBC, o Hibernate numera parâmetros a partir de "
+"zero.</emphasis> Parâmetros nomeados são identificadores da forma<literal>:"
+"name</literal> na faixa de consulta. As vantagens de parâmetros nomeados "
+"são: "
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
msgstr ""
-"named parameters are insensitive to the order they occur in the query string"
+"Parâmetros nomeados são insensÃveis à ordem que eles ocorrem na faixa de "
+"consulta"
#. Tag: para
-#: session_api.xml:339
-#, fuzzy, no-c-format
+#, no-c-format
msgid "they can occur multiple times in the same query"
-msgstr "they may occur multiple times in the same query"
+msgstr "eles podem ocorrer em tempos múltiplos na mesma consulta "
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
-msgstr "they are self-documenting"
+msgstr "eles são auto documentáveis"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
-msgstr "Pagination"
+msgstr "Paginação"
#. Tag: para
-#: session_api.xml:361
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
"number of rows you want to retrieve and/or the first row you want to "
"retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
-"If you need to specify bounds upon your result set (the maximum number of "
-"rows you want to retrieve and / or the first row you want to retrieve) you "
-"should use methods of the <literal>Query</literal> interface:"
+"Se você precisar especificar vÃnculos do conjunto de resultados, o máximo de "
+"números por linha que quiser recuperar e/ou a primeira linha que quiser "
+"recuperar, você deve usar métodos de interface <literal>Consulta</literal>:"
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
"your DBMS."
msgstr ""
-"Hibernate knows how to translate this limit query into the native SQL of "
-"your DBMS."
+"O Hibernate sabe como traduzir esta consulta de limite para a SQL nativa de "
+"seu DBMS"
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
-msgstr "Scrollable iteration"
+msgstr "Iteração rolável"
#. Tag: para
-#: session_api.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
"<literal>Query</literal> interface can be used to obtain a "
"<literal>ScrollableResults</literal> object that allows flexible navigation "
"of the query results."
msgstr ""
-"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
-"<literal>Query</literal> interface may be used to obtain a "
-"<literal>ScrollableResults</literal> object, which allows flexible "
-"navigation of the query results."
+"Se seu driver JDBC driver suportar <literal>ResultSet</literal>s roláveis, a "
+"interface da <literal>Consulta</literal> poderá ser usada para obter um "
+"objeto de <literal>ScrollableResults</literal>, que permite uma navegação "
+"flexÃvel dos resultados de consulta. "
-#. Tag: programlisting
-#: session_api.xml:386
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:388
-#, fuzzy, no-c-format
-msgid ""
"Note that an open database connection and cursor is required for this "
"functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult"
"()</literal> if you need offline pagination functionality."
msgstr ""
-"Note that an open database connection (and cursor) is required for this "
-"functionality, use <literal>setMaxResult()</literal>/<literal>setFirstResult"
-"()</literal> if you need offline pagination functionality."
+"Note que uma conexão aberta de banco de dados (e cursor) é requerida para "
+"esta função, use <literal>setMaxResult()</literal>/<literal>setFirstResult()"
+"</literal> se precisar da função de paginação offline. "
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
-msgstr "Externalizing named queries"
+msgstr "Externando consultas nomeadas"
#. Tag: para
-#: session_api.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
"<literal>CDATA</literal> section if your query contains characters that "
"could be interpreted as markup."
msgstr ""
-"You may also define named queries in the mapping document. (Remember to use "
-"a <literal>CDATA</literal> section if your query contains characters that "
-"could be interpreted as markup.)"
+"Você pode também definir consultas nomeadas no documento de mapeamento. "
+"Lembre-se de usar uma seção <literal>CDATA</literal> se sua consulta "
+"contiver caracteres que possam ser interpretados como marcação."
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
-msgstr "Parameter binding and executing is done programatically:"
+msgstr "O vÃnculo e execução de parâmetro são feitos programaticamente :"
-#. Tag: programlisting
-#: session_api.xml:411
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:413
-#, fuzzy, no-c-format
-msgid ""
"The actual program code is independent of the query language that is used. "
"You can also define native SQL queries in metadata, or migrate existing "
"queries to Hibernate by placing them in mapping files."
msgstr ""
-"Note that the actual program code is independent of the query language that "
-"is used, you may also define native SQL queries in metadata, or migrate "
-"existing queries to Hibernate by placing them in mapping files."
+"Note que o código de programa atual é independente da linguagem de consulta "
+"que é utilizada, você também pode definir as consultas SQL nativas no "
+"metadado, ou migrar consultas existentes para o Hibernate, colocando-os em "
+"arquivos de mapeamento. "
#. Tag: para
-#: session_api.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
"mapping></literal> element requires a global unique name for the query, "
@@ -927,147 +723,96 @@
"is made unique automatically by prepending the fully qualified name of the "
"class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
-"Also note that a query declaration inside a <literal><hibernate-"
-"mapping></literal> element requires a global unique name for the query, "
-"while a query declaration inside a <literal><class></literal> element "
-"is made unique automatically by prepending the fully qualified name of the "
-"class, for example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
+"Observe também que uma declaração de consulta dentro de um elemento "
+"<literal><hibernate-mapping></literal> requer um nome único global "
+"para a consulta, enquanto uma declaração de consulta dentro de um elemento "
+"de <literal><classe></literal> torna-se único automaticamente, "
+"aguardando o nome completo da classe qualificada, por exemplo: <literal>eg."
+"Cat.ByNameAndMaximumWeight</literal>. "
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
-msgstr "Filtering collections"
+msgstr "Filtrando coleções"
#. Tag: para
-#: session_api.xml:433
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
"be applied to a persistent collection or array. The query string can refer "
"to <literal>this</literal>, meaning the current collection element."
msgstr ""
-"A collection <emphasis>filter</emphasis> is a special type of query that may "
-"be applied to a persistent collection or array. The query string may refer "
-"to <literal>this</literal>, meaning the current collection element."
+"Uma coleção <emphasis>filter</emphasis> é um tipo especial de consulta que "
+"pode ser aplicado a uma coleção persistente ou a uma matriz. A faixa de "
+"consulta pode referir-se ao <literal>this</literal>, significando o elemento "
+"de coleção atual. "
-#. Tag: programlisting
-#: session_api.xml:439
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:441
-#, fuzzy, no-c-format
-msgid ""
"The returned collection is considered a bag that is a copy of the given "
"collection. The original collection is not modified. This is contrary to the "
"implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
-"The returned collection is considered a bag, and it's a copy of the given "
-"collection. The original collection is not modified (this is contrary to the "
-"implication of the name \"filter\", but consistent with expected behavior)."
+"A coleção retornada é considerada uma bolsa, e é a cópia da coleção dada. A "
+"coleção original não é modificada. Ela é oposta à implicação do nome \"filtro"
+"\", mas é consistente com o comportamento esperado."
#. Tag: para
-#: session_api.xml:447
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
"although they can have one if required. Filters are not limited to returning "
"the collection elements themselves."
msgstr ""
-"Observe that filters do not require a <literal>from</literal> clause (though "
-"they may have one if required). Filters are not limited to returning the "
-"collection elements themselves."
+"Observe que os filtros não requerem uma cláusula <literal>from</literal> "
+"embora possam ter um, se requerido. Os filtros não são limitados a retornar "
+"aos elementos de coleção. "
-#. Tag: programlisting
-#: session_api.xml:452
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:454
-#, fuzzy, no-c-format
-msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
"large collection:"
msgstr ""
-"Even an empty filter query is useful, e.g. to load a subset of elements in a "
-"huge collection:"
+"Até mesmo um filtro vazio é útil, ex.: para carregar um subconjunto em uma "
+"coleção enorme:"
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
-msgstr "Criteria queries"
+msgstr "Consulta por critério"
#. Tag: para
-#: session_api.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
"dynamically using an object-oriented API, rather than building query "
"strings. Hibernate provides an intuitive <literal>Criteria</literal> query "
"API for these cases:"
msgstr ""
-"HQL is extremely powerful but some developers prefer to build queries "
-"dynamically, using an object-oriented API, rather than building query "
-"strings. Hibernate provides an intuitive <literal>Criteria</literal> query "
-"API for these cases:"
+"O HQL é extremamente potente mas alguns desenvolvedores preferem construir "
+"consultas de forma dinâmica, utilizando um API de objeto, ao invés de "
+"construir faixas de consultas. O Hibernate oferece uma API de consulta de "
+"<literal>Critério</literal> intuitiva para estes casos: "
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
-"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"Um <literal>Criteria</literal> e API associado <literal>Example</literal> "
+"serão discutidos em mais detalhes em <xref linkend=\"querycriteria\"/>. "
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
-msgstr "Queries in native SQL"
+msgstr "Consultas em SQL nativa"
#. Tag: para
-#: session_api.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
"and let Hibernate manage the mapping from result sets to objects. You can at "
@@ -1075,56 +820,31 @@
"<literal>Connection</literal> directly. If you choose to use the Hibernate "
"API, you must enclose SQL aliases in braces:"
msgstr ""
-"You may express a query in SQL, using <literal>createSQLQuery()</literal> "
-"and let Hibernate take care of the mapping from result sets to objects. Note "
-"that you may at any time call <literal>session.connection()</literal> and "
-"use the JDBC <literal>Connection</literal> directly. If you chose to use the "
-"Hibernate API, you must enclose SQL aliases in braces:"
+"Você pode expressar uma consulta em SQL utilizando <literal>createSQLQuery()"
+"</literal> e deixar o Hibernate tomar conta do mapeamento desde conjuntos de "
+"resultados até objetos. Note que você pode chamar uma <literal>session."
+"connection()</literal> a qualquer momento e usar a <literal>Connection</"
+"literal> JDBC diretamente. Se você escolher utilizar a API Hibernate, você "
+"deve incluir as aliases SQL dentro de chaves: "
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
-"SQL queries may contain named and positional parameters, just like Hibernate "
-"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"As consultas SQL podem conter parâmetros nomeados e posicionais, assim como "
+"as consultas Hibernate. Maiores informações sobre as consultas nativas SQL "
+"no Hibernate poderão ser encontradas em <xref linkend=\"querysql\" />."
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
-msgstr "Modifying persistent objects"
+msgstr "Modificando objetos persistentes"
#. Tag: para
-#: session_api.xml:509
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
"loaded, saved, created or queried by the <literal>Session</literal>) can be "
@@ -1136,43 +856,32 @@
"to update the state of an object is to <literal>load()</literal> it and then "
"manipulate it directly while the <literal>Session</literal> is open:"
msgstr ""
-"<emphasis>Transactional persistent instances</emphasis> (ie. objects loaded, "
-"saved, created or queried by the <literal>Session</literal>) may be "
-"manipulated by the application and any changes to persistent state will be "
-"persisted when the <literal>Session</literal> is <emphasis>flushed</"
-"emphasis> (discussed later in this chapter). There is no need to call a "
-"particular method (like <literal>update()</literal>, which has a different "
-"purpose) to make your modifications persistent. So the most straightforward "
-"way to update the state of an object is to <literal>load()</literal> it, and "
-"then manipulate it directly, while the <literal>Session</literal> is open:"
+"<emphasis>Instâncias persistentes transacionais</emphasis> (ou seja, objetos "
+"carregados, salvos, criados ou consultados pela <literal>Session</literal>) "
+"podem ser manipuladas pela aplicação e qualquer mudança para estado "
+"persistente será persistida quando a <literal>Sessão</literal> for "
+"<emphasis>limpa</emphasis>. Isto será discutido mais adiante neste capÃtulo. "
+"Não há necessidade de chamar um método em particular (como <literal>update()"
+"</literal>, que possui um propósito diferente) para fazer modificações "
+"persistentes. Portanto, a forma mais direta de atualizar o estado de um "
+"objeto é <literal>carregá-lo()</literal> e depois manipulá-lo diretamente, "
+"enquanto a <literal>Sessão</literal> estiver aberta:"
-#. Tag: programlisting
-#: session_api.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:522
-#, fuzzy, no-c-format
-msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
"session both an SQL <literal>SELECT</literal> to load an object and an SQL "
"<literal>UPDATE</literal> to persist its updated state. Hibernate offers an "
"alternate approach by using detached instances."
msgstr ""
-"Sometimes this programming model is inefficient since it would require both "
-"an SQL <literal>SELECT</literal> (to load an object) and an SQL "
-"<literal>UPDATE</literal> (to persist its updated state) in the same "
-"session. Therefore Hibernate offers an alternate approach, using detached "
-"instances."
+"Algumas vezes, este modelo de programação é ineficiente, uma vez que ele "
+"requer ambos SQL <literal>SELECT</literal> (para carregar um objeto) e um "
+"SQL<literal>UPDATE</literal> (para persistir seu estado atualizado) na mesma "
+"sessão. Por isso, o Hibernate oferece uma abordagem alternativa, usando "
+"instâncias desanexadas."
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1184,26 +893,26 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
-"Note that Hibernate does not offer its own API for direct execution of "
-"<placeholder-1/> or <placeholder-2/> statements. Hibernate is a <placeholder-"
-"3/> service, you don't have to think in <placeholder-4/> to use it. JDBC is "
-"a perfect API for executing SQL statements, you can get a JDBC <placeholder-"
-"5/> at any time by calling <placeholder-6/>. Furthermore, the notion of mass "
-"operations conflicts with object/relational mapping for online transaction "
-"processing-oriented applications. Future versions of Hibernate may however "
-"provide special mass operation functions. See <xref linkend=\"batch\"/> for "
-"some possible batch operation tricks."
+"Note que o Hibernate não oferece seu próprio API para execução direta de "
+"instruções <literal>UPDATE</literal> ou <literal>DELETE</literal>. O "
+"Hibernate é um serviço de <emphasis>gerenciamento de estado</emphasis> que "
+"você nem precisa se preocupar com <emphasis>instruções</emphasis> para "
+"utilizá-lo. O JDBC é um API perfeito para executar instruções SQL, você pode "
+"ter uma <literal>Connection</literal> JDBC a qualquer momento, chamando "
+"<literal>session.connection()</literal>. Além disso, a noção de operações em "
+"massa conflitua com o mapeamento de objeto/relacional para aplicativos de "
+"transações online com processamento. No entanto, versões futuras do "
+"Hibernate poderão oferecer funções especiais de operação em massa. Veja "
+"<xref linkend=\"batch\"/> para alguns possÃveis truques de operação em lote. "
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
-msgstr "Modifying detached objects"
+msgstr "Modificando objetos desacoplados"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1212,56 +921,36 @@
"environment usually use versioned data to ensure isolation for the \"long\" "
"unit of work."
msgstr ""
-"Many applications need to retrieve an object in one transaction, send it to "
-"the UI layer for manipulation, then save the changes in a new transaction. "
-"Applications that use this kind of approach in a high-concurrency "
-"environment usually use versioned data to ensure isolation for the \"long\" "
-"unit of work."
+"Muitas aplicações precisam recuperar um objeto em uma transação, enviá-lo "
+"para a camada UI para manipulação e somente então salvar as mudanças em uma "
+"nova transação. As aplicações que usam este tipo de abordagem em ambiente de "
+"alta concorrência, geralmente usam dados versionados para assegurar isolação "
+"durante a \"longa\" unidade de trabalho."
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
"instances using the <literal>Session.update()</literal> or <literal>Session."
"merge()</literal> methods:"
msgstr ""
-"Hibernate supports this model by providing for reattachment of detached "
-"instances using the <literal>Session.update()</literal> or <literal>Session."
-"merge()</literal> methods:"
+"O Hibernate suporta este modelo, oferecendo re-acoplamentos das instâncias "
+"usando os métodos <literal>Session.update()</literal> ou<literal>Session."
+"merge()</literal>:"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
"already been loaded by <literal>secondSession</literal> when the application "
"tried to reattach it, an exception would have been thrown."
msgstr ""
-"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
-"already been loaded by <literal>secondSession</literal> when the application "
-"tried to reattach it, an exception would have been thrown."
+"Se o <literal>Cat</literal> com identificador <literal>catId</literal> já "
+"tivesse sido carregado pela<literal>segundaSessão</literal> quando a "
+"aplicação tentou re-acoplá-lo, teria surgido uma exceção."
#. Tag: para
-#: session_api.xml:569
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
"contain an already persistent instance with the same identifier. Use "
@@ -1271,86 +960,69 @@
"fresh session, ensuring that the reattachment of your detached instances is "
"the first operation that is executed."
msgstr ""
-"Use <literal>update()</literal> if you are sure that the session does not "
-"contain an already persistent instance with the same identifier, and "
-"<literal>merge()</literal> if you want to merge your modifications at any "
-"time without consideration of the state of the session. In other words, "
-"<literal>update()</literal> is usually the first method you would call in a "
-"fresh session, ensuring that reattachment of your detached instances is the "
-"first operation that is executed."
+"Use <literal>update()</literal> se você tiver certeza de que a sessão já não "
+"contém uma instância persistente com o mesmo identificador, e <literal>merge"
+"()</literal> se você quiser mesclar suas modificações a qualquer momento sem "
+"considerar o estado da sessão. Em outras palavras, <literal>update()</"
+"literal> é geralmente o primeiro método que você chama em uma nova sessão, "
+"assegurando que o re-acoplamento de suas instâncias seja a primeira operação "
+"executada. "
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
-"The application should individually <literal>update()</literal> detached "
-"instances reachable from the given detached instance if and <emphasis>only</"
-"emphasis> if it wants their state also updated. This can be automated of "
-"course, using <emphasis>transitive persistence</emphasis>, see <xref linkend="
-"\"objectstate-transitive\"/>."
+"A aplicação deve <literal>update()</literal> instâncias desanexadas "
+"individualmente, ao alcance da atual instância desanexada, se e "
+"<emphasis>somente</emphasis> se, esta requerer uma atualização também de seu "
+"estado. Esta ação pode ser automatizada, é claro, utilizando "
+"<emphasis>persistência transitiva</emphasis>, veja <xref linkend="
+"\"objectstate-transitive\"/> para maiores informações. "
#. Tag: para
-#: session_api.xml:585
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
"reassociate an object with a new session. However, the detached instance has "
"to be unmodified."
msgstr ""
-"The <literal>lock()</literal> method also allows an application to "
-"reassociate an object with a new session. However, the detached instance has "
-"to be unmodified!"
+"O método <literal>lock()</literal> também permite que um aplicativo re-"
+"associe um objeto com uma nova sessão. No entanto, a instância desanexada "
+"não pode ser modificada."
-#. Tag: programlisting
-#: session_api.xml:590
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:592
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal>lock()</literal> can be used with various "
"<literal>LockMode</literal>s. See the API documentation and the chapter on "
"transaction handling for more information. Reattachment is not the only "
"usecase for <literal>lock()</literal>."
msgstr ""
-"Note that <literal>lock()</literal> can be used with various "
-"<literal>LockMode</literal>s, see the API documentation and the chapter on "
-"transaction handling for more information. Reattachment is not the only "
-"usecase for <literal>lock()</literal>."
+"Note que <literal>lock()</literal> pode ser usado com diversos "
+"<literal>LockMode</literal>s, veja a documentação API e o capÃtulo sobre "
+"manuseio de transações para maiores informações. Re-acoplamento não é o "
+"único caso de uso para <literal>lock()</literal>. "
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
-"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"Outros modelos para unidades longas de trabalho serão discutidas em <xref "
+"linkend=\"transactions-optimistic\"/>. "
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
-msgstr "Automatic state detection"
+msgstr "Detecção automática de estado"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1358,31 +1030,12 @@
"detached instances associated with its current identifier. The "
"<literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
-"Hibernate users have requested a general purpose method that either saves a "
-"transient instance by generating a new identifier or updates/reattaches the "
-"detached instances associated with its current identifier. The "
-"<literal>saveOrUpdate()</literal> method implements this functionality."
+"Os usuários de Hibernate solicitaram um método geral, tanto para salvar uma "
+"instância transiente, gerando um novo identificador, quanto para atualizar/ "
+"re-acoplar as instâncias desanexadas associadas ao seu identificador atual. "
+"O método <literal>saveOrUpdate()</literal> implementa esta funcionalidade."
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1392,290 +1045,240 @@
"<literal>merge()</literal>. Some whole applications will never use either of "
"these methods."
msgstr ""
-"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
-"confusing for new users. Firstly, so long as you are not trying to use "
-"instances from one session in another new session, you should not need to "
-"use <literal>update()</literal>, <literal>saveOrUpdate()</literal>, or "
-"<literal>merge()</literal>. Some whole applications will never use either of "
-"these methods."
+"O uso e semântica do <literal>saveOrUpdate()</literal> parecem ser confusos "
+"para novos usuários. A princÃpio, enquanto você não tentar usar instâncias "
+"de uma sessão em outra nova sessão, não precisará utilizar <literal>update()"
+"</literal>, <literal>saveOrUpdate()</literal>, ou <literal>merge()</"
+"literal>. Algumas aplicações inteiras nunca precisarão utilizar estes "
+"métodos."
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
"used in the following scenario:"
msgstr ""
-"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
-"used in the following scenario:"
+"Geralmente, <literal>update()</literal> ou <literal>saveOrUpdate()</"
+"literal>são utilizados nos seguintes cenários:"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
-msgstr "the application loads an object in the first session"
+msgstr "a aplicação carrega um objeto na primeira sessão"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
-msgstr "the object is passed up to the UI tier"
+msgstr "o objeto é passado para a camada UI"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
-msgstr "some modifications are made to the object"
+msgstr "algumas modificações são feitas ao objeto"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
-msgstr "the object is passed back down to the business logic tier"
+msgstr "o objeto é retornado à camada lógica de negócios"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
"literal> in a second session"
msgstr ""
-"the application persists these modifications by calling <literal>update()</"
-"literal> in a second session"
+"a aplicação persiste estas modificações, chamando <literal>update()</"
+"literal> em uma segunda sessão."
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
-msgstr "<literal>saveOrUpdate()</literal> does the following:"
+msgstr "<literal>saveOrUpdate()</literal> faz o seguinte:"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
-msgstr "if the object is already persistent in this session, do nothing"
+msgstr "se o objeto já estiver persistente nesta sessão, não faça nada"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
"an exception"
msgstr ""
-"if another object associated with the session has the same identifier, throw "
-"an exception"
+"se outro objeto associado com a sessão possuir o mesmo identificador, jogue "
+"uma exceção"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
-msgstr "if the object has no identifier property, <literal>save()</literal> it"
+msgstr ""
+"se o objeto não tiver uma propriedade de identificador <literal>salve-o()</"
+"literal> "
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
"object, <literal>save()</literal> it"
msgstr ""
-"if the object's identifier has the value assigned to a newly instantiated "
-"object, <literal>save()</literal> it"
+"se o identificador do objeto possuir o valor atribuÃdo ao objeto "
+"recentemente instanciado, <literal>salve-o()</literal> "
#. Tag: para
-#: session_api.xml:687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
"<literal><timestamp></literal>, and the version property value is the "
"same value assigned to a newly instantiated object, <literal>save()</"
"literal> it"
msgstr ""
-"if the object is versioned (by a <literal><version></literal> or "
-"<literal><timestamp></literal>), and the version property value is the "
-"same value assigned to a newly instantiated object, <literal>save()</"
-"literal> it"
+"se o objeto for versionado por um <literal><version></literal> ou "
+"<literal><timestamp></literal>, e o valor da propriedade da versão for "
+"o mesmo valor atribuÃdo ao objeto recentemente instanciado, <literal>salve()"
+"</literal> o mesmo"
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
-msgstr "otherwise <literal>update()</literal> the object"
+msgstr "do contrário <literal>atualize()</literal> o objeto"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
-msgstr "and <literal>merge()</literal> is very different:"
+msgstr "e a <literal>mesclagem()</literal> é bastante diferente:"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
"associated with the session, copy the state of the given object onto the "
"persistent instance"
msgstr ""
-"if there is a persistent instance with the same identifier currently "
-"associated with the session, copy the state of the given object onto the "
-"persistent instance"
+"se existir uma instância persistente com um mesmo identificador associado "
+"atualmente com a sessão, copie o estado do objeto dado para a instância "
+"persistente."
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
"try to load it from the database, or create a new persistent instance"
msgstr ""
-"if there is no persistent instance currently associated with the session, "
-"try to load it from the database, or create a new persistent instance"
+"se não existir uma instância persistente atualmente associada com a sessão, "
+"tente carregá-la a partir do banco de dados, ou crie uma nova instância "
+"persistente"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
-msgstr "the persistent instance is returned"
+msgstr "a instância persistente é retornada"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
"detached"
msgstr ""
-"the given instance does not become associated with the session, it remains "
-"detached"
+"a instância dada não se torna associada com a sessão, ela permanece "
+"desanexada"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
-msgstr "Deleting persistent objects"
+msgstr "Apagando objetos persistentes"
#. Tag: para
-#: session_api.xml:737
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
"database. Your application, however, can still hold a reference to a deleted "
"object. It is best to think of <literal>delete()</literal> as making a "
"persistent instance, transient."
msgstr ""
-"<literal>Session.delete()</literal> will remove an object's state from the "
-"database. Of course, your application might still hold a reference to a "
-"deleted object. It's best to think of <literal>delete()</literal> as making "
-"a persistent instance transient."
+"A <literal>Session.delete()</literal> removerá um estado de objeto do banco "
+"de dados. à claro que seu aplicativo pode ainda reter uma referência à um "
+"objeto apagado. Ã melhor pensar em <literal>delete()</literal> como fazer "
+"uma instância persistente se tornar transiente. "
-#. Tag: programlisting
-#: session_api.xml:744
-#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:746
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
"violations. It is still possible to violate a <literal>NOT NULL</literal> "
"constraint on a foreign key column by deleting objects in the wrong order, e."
"g. if you delete the parent, but forget to delete the children."
msgstr ""
-"You may delete objects in any order you like, without risk of foreign key "
-"constraint violations. It is still possible to violate a <literal>NOT NULL</"
-"literal> constraint on a foreign key column by deleting objects in the wrong "
-"order, e.g. if you delete the parent, but forget to delete the children."
+"Você poderá deletar objetos na ordem que desejar, sem risco de violação de "
+"restrição da chave estrangeira. à possÃvel violar uma restrição "
+"<literal>NOT NULL</literal> em uma coluna de chave estrangeira, apagando "
+"objetos na ordem inversa, ex.: se apagar o pai, mas esquecer de apagar o "
+"filho. "
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
-msgstr "Replicating object between two different datastores"
+msgstr "Replicando objeto entre dois armazenamentos de dados diferentes."
#. Tag: para
-#: session_api.xml:759
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
"and make them persistent in a different datastore, without regenerating "
"identifier values."
msgstr ""
-"It is occasionally useful to be able to take a graph of persistent instances "
-"and make them persistent in a different datastore, without regenerating "
-"identifier values."
+"Algumas vezes é útil poder tirar um gráfico de instâncias persistentes e "
+"fazê-los persistentes em um armazenamento de dados diferente, sem gerar "
+"novamente valores de identificador. "
-#. Tag: programlisting
-#: session_api.xml:765
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:767
-#, fuzzy, no-c-format
-msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
"literal> will deal with conflicts with existing rows in the database:"
msgstr ""
-"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
-"literal> will deal with conflicts with existing rows in the database."
+"O <literal>ReplicationMode</literal> determina como o <literal>replicate()</"
+"literal> irá lidar com conflitos em linhas existentes no banco de dados: "
#. Tag: para
-#: session_api.xml:774
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
"an existing database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.IGNORE</literal> - ignore the object when there is "
-"an existing database row with the same identifier"
+"<literal>ReplicationMode.IGNORE</literal>: ignore o objeto quando houver uma "
+"linha de banco de dados existente com o mesmo identificador."
#. Tag: para
-#: session_api.xml:780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
"database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.OVERWRITE</literal> - overwrite any existing "
-"database row with the same identifier"
+"<literal>ReplicationMode.OVERWRITE</literal>: subscreva uma linha de banco "
+"de dados existente com um mesmo identificador."
#. Tag: para
-#: session_api.xml:786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
"is an existing database row with the same identifier"
msgstr ""
-"<literal>ReplicationMode.EXCEPTION</literal> - throw an exception if there "
-"is an existing database row with the same identifier"
+"<literal>ReplicationMode.EXCEPTION</literal>: jogue uma exceção se houver "
+"uma linha de banco de dados existente com o mesmo identificador. "
#. Tag: para
-#: session_api.xml:792
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
"version number is earlier than the version number of the object, or ignore "
"the object otherwise"
msgstr ""
-"<literal>ReplicationMode.LATEST_VERSION</literal> - overwrite the row if its "
-"version number is earlier than the version number of the object, or ignore "
-"the object otherwise"
+"<literal>ReplicationMode.LATEST_VERSION</literal>: subscreva a linha se seu "
+"número de versão for anterior ao número de versão do objeto, caso contrário, "
+"ignore o objeto."
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1683,112 +1286,98 @@
"product upgrades, rolling back changes made during non-ACID transactions and "
"more."
msgstr ""
-"Usecases for this feature include reconciling data entered into different "
-"database instances, upgrading system configuration information during "
-"product upgrades, rolling back changes made during non-ACID transactions and "
-"more."
+"O caso de uso para este recurso inclui dados de reconciliação em instâncias "
+"de banco de dados diferentes, atualizando informações da configuração do "
+"sistema durante a atualização do produto, retornando mudanças realizadas "
+"durante transações não ACID entre outras funções."
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
-msgstr "Flushing the Session"
+msgstr "Limpando a Sessão"
#. Tag: para
-#: session_api.xml:811
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
"needed to synchronize the JDBC connection's state with the state of objects "
"held in memory. This process, called <emphasis>flush</emphasis>, occurs by "
"default at the following points:"
msgstr ""
-"From time to time the <literal>Session</literal> will execute the SQL "
-"statements needed to synchronize the JDBC connection's state with the state "
-"of objects held in memory. This process, <emphasis>flush</emphasis>, occurs "
-"by default at the following points"
+"De vez em quando, a <literal>Session</literal> irá executar as instruções "
+"SQL, necessárias para sincronizar o estado de conexão JDBC com o estado de "
+"objetos mantidos na memória. Este processo de <emphasis>flush</emphasis>, "
+"ocorre por padrão nos seguintes pontos: "
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
-msgstr "before some query executions"
+msgstr "antes de algumas execuções de consultas"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
-msgstr "from <literal>org.hibernate.Transaction.commit()</literal>"
+msgstr "a partir de<literal>org.hibernate.Transaction.commit()</literal>"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
-msgstr "from <literal>Session.flush()</literal>"
+msgstr "a partir de <literal>Session.flush()</literal>"
#. Tag: para
-#: session_api.xml:836
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The SQL statements are issued in the following order:"
-msgstr "The SQL statements are issued in the following order"
+msgstr "As instruções SQL são editadas na seguinte ordem:"
#. Tag: para
-#: session_api.xml:842
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
"using <literal>Session.save()</literal>"
msgstr ""
-"all entity insertions, in the same order the corresponding objects were "
-"saved using <literal>Session.save()</literal>"
+"todas as inserções de entidade, na mesma ordem que os objetos "
+"correspondentes foram salvos usando <literal>Session.save()</literal> "
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
-msgstr "all entity updates"
+msgstr "todas as atualizações de entidades"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
-msgstr "all collection deletions"
+msgstr "todas as deleções de coleções"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
-msgstr "all collection element deletions, updates and insertions"
+msgstr "todas as deleções, atualizações e inserções de elementos de coleção."
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
-msgstr "all collection insertions"
+msgstr "todas as inserções de coleção"
#. Tag: para
-#: session_api.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
"deleted using <literal>Session.delete()</literal>"
msgstr ""
-"all entity deletions, in the same order the corresponding objects were "
-"deleted using <literal>Session.delete()</literal>"
+"todas as deleções de entidade, na mesma ordem que os objetos correspondentes "
+"foram deletados usando <literal>Session.delete()</literal> "
#. Tag: para
-#: session_api.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
"are inserted when they are saved."
msgstr ""
-"(An exception is that objects using <literal>native</literal> ID generation "
-"are inserted when they are saved.)"
+"Uma exceção é que o objeto que utiliza a geração de ID <literal>native</"
+"literal> é inserido quando salvo."
#. Tag: para
-#: session_api.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
@@ -1796,15 +1385,14 @@
"are executed. However, Hibernate does guarantee that the <literal>Query.list"
"(..)</literal> will never return stale or incorrect data."
msgstr ""
-"Except when you explicity <literal>flush()</literal>, there are absolutely "
-"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
-"executes the JDBC calls, only the <emphasis>order</emphasis> in which they "
-"are executed. However, Hibernate does guarantee that the <literal>Query.list"
-"(..)</literal> will never return stale data; nor will they return the wrong "
-"data."
+"Exceto quando você explicitamente <literal>limpar()</literal>, não há "
+"nenhuma garantia sobre <emphasis>quando</emphasis> a <literal>Sessão</"
+"literal> executará as chamadas de JDBC, somente se sabe a <emphasis>ordem</"
+"emphasis> na qual elas são executadas. No entanto, o Hibernate garante que a "
+"<literal>Query.list(..)</literal> nunca retornará dados antigos, nem "
+"retornará dados errados. "
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1814,72 +1402,49 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
-"It is possible to change the default behavior so that flush occurs less "
-"frequently. The <literal>FlushMode</literal> class defines three different "
-"modes: only flush at commit time (and only when the Hibernate "
-"<literal>Transaction</literal> API is used), flush automatically using the "
-"explained routine, or never flush unless <literal>flush()</literal> is "
-"called explicitly. The last mode is useful for long running units of work, "
-"where a <literal>Session</literal> is kept open and disconnected for a long "
-"time (see <xref linkend=\"transactions-optimistic-longsession\"/>)."
+"à possÃvel mudar o comportamento padrão para que a limpeza ocorra com menos "
+"freqüência. A classe <literal>FlushMode</literal> define três modos "
+"diferentes: somente limpe em um tempo submetido: somente quando a API da "
+"<literal>Transaction</literal> do Hibernate for usada, limpe automaticamente "
+"usando uma rotina explicada, ou nunca limpe a menos que o <literal>flush()</"
+"literal> seja chamado explicitamente. O último modo é útil para execução de "
+"unidades de trabalho longas, onde uma <literal>Session</literal> é mantida "
+"aberta e disconectada por um longo tempo (veja <xref linkend=\"transactions-"
+"optimistic-longsession\"/>)."
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
-"During flush, an exception might occur (e.g. if a DML operation violates a "
-"constraint). Since handling exceptions involves some understanding of "
-"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"Durante uma limpeza, pode ocorrer uma exceção (ex.: se uma operação DML "
+"violar uma restrição). Como o manuseio de exceções envolve algum "
+"entendimento do comportamento transacional do Hibernate, discutiremos sobre "
+"isso em <xref linkend=\"transactions\"/>. "
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
-msgstr "Transitive persistence"
+msgstr "Persistência Transitiva"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
"especially if you deal with a graph of associated objects. A common case is "
"a parent/child relationship. Consider the following example:"
msgstr ""
-"It is quite cumbersome to save, delete, or reattach individual objects, "
-"especially if you deal with a graph of associated objects. A common case is "
-"a parent/child relationship. Consider the following example:"
+"à um tanto incômodo salvar, deletar ou reanexar objetos individuais, "
+"especialmente ao lidar com um grafo de objetos associados. Um caso comum é "
+"um relacionamento pai/filho. Considere o seguinte exemplo: "
#. Tag: para
-#: session_api.xml:917
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
"collection of addresses or strings), their life cycle would depend on the "
@@ -1890,18 +1455,17 @@
"collection. Since value-typed objects cannot have shared references, "
"Hibernate will detect this and delete the child from the database."
msgstr ""
-"If the children in a parent/child relationship would be value typed (e.g. a "
-"collection of addresses or strings), their life cycle would depend on the "
-"parent and no further action would be required for convenient \"cascading\" "
-"of state changes. When the parent is saved, the value-typed child objects "
-"are saved as well, when the parent is deleted, the children will be deleted, "
-"etc. This even works for operations such as the removal of a child from the "
-"collection; Hibernate will detect this and, since value-typed objects can't "
-"have shared references, delete the child from the database."
+"Se os filhos em um relacionamento pai/filho fossem do tipo valor (ex.: "
+"coleção de endereços ou strings), seus ciclos de vida dependeriam do pai e "
+"nenhuma ação seria requerida para \"cascateamento\" de mudança de estado. "
+"Quando o pai é salvo, os objetos filho de valor são salvos também, quando o "
+"pai é deletado, os filhos também serão deletados, etc. Isto funciona até "
+"para operações como remoção de filho da coleção. O Hibernate irá detectar "
+"isto e como objetos de valor não podem ter referências compartilhadas, irá "
+"deletar o filho do banco de dados. "
#. Tag: para
-#: session_api.xml:928
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
"not value-types (e.g. categories and items, or parent and child cats). "
@@ -1911,16 +1475,15 @@
"entities. Hibernate does not implement <emphasis>persistence by "
"reachability</emphasis> by default."
msgstr ""
-"Now consider the same scenario with parent and child objects being entities, "
-"not value-types (e.g. categories and items, or parent and child cats). "
-"Entities have their own life cycle, support shared references (so removing "
-"an entity from the collection does not mean it can be deleted), and there is "
-"by default no cascading of state from one entity to any other associated "
-"entities. Hibernate does not implement <emphasis>persistence by "
-"reachability</emphasis> by default."
+"Agora considere o mesmo cenário com objeto pai e filho sendo entidades, e "
+"não de valores (ex.: categorias e Ãtens, ou cats pai e filho). As entidades "
+"possuem seus próprios ciclos de vida, suportam referências compartilhadas "
+"(portanto, remover uma entidade da coleção não significa que possa ter sido "
+"deletada), e não existe efeito cascata de estado, por padrão, a partir de "
+"uma entidade para outras entidades associadas. O Hibernate não implementa "
+"<emphasis>persistência por alcance</emphasis> por padrão. "
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -1931,49 +1494,33 @@
"operation to be cascaded along an association, you must indicate that in the "
"mapping document. For example:"
msgstr ""
-"For each basic operation of the Hibernate session - including "
-"<literal>persist(), merge(), saveOrUpdate(), delete(), lock(), refresh(), "
-"evict(), replicate()</literal> - there is a corresponding cascade style. "
-"Respectively, the cascade styles are named <literal>create, merge, save-"
-"update, delete, lock, refresh, evict, replicate</literal>. If you want an "
-"operation to be cascaded along an association, you must indicate that in the "
-"mapping document. For example:"
+"Para cada operação básica da sessão do Hibernate, incluindo<literal>persistir"
+"(), mesclar(), salvarOuAtualizar(), deletar(), bloquear(), atualizar(), "
+"despejar(), replicar()</literal>, existe um estilo cascata correspondente. "
+"Respectivamente, os estilos cascatas são nomeados <literal>criar, mesclar, "
+"salvar-atualizar, deletar, bloquiar, atualizar, despejar, replicar</"
+"literal>. Se desejar uma operação em cascata junto a associação, você deverá "
+"indicar isto no documento de mapeamento. Por exemplo:"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
-msgstr "Cascade styles my be combined:"
+msgstr "Estilo cascata pode ser combinado:"
-#. Tag: programlisting
-#: session_api.xml:952
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:954
-#, fuzzy, no-c-format
-msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
"<emphasis>all</emphasis> operations should be cascaded along the "
"association. The default <literal>cascade=\"none\"</literal> specifies that "
"no operations are to be cascaded."
msgstr ""
-"You may even use <literal>cascade=\"all\"</literal> to specify that "
-"<emphasis>all</emphasis> operations should be cascaded along the "
-"association. The default <literal>cascade=\"none\"</literal> specifies that "
-"no operations are to be cascaded."
+"Você pode até utilizar <literal>cascade=\"all\"</literal> para especificar "
+"que <emphasis>todas</emphasis> as operações devem estar em cascata junto à "
+"associação. O padrão <literal>cascade=\"none\"</literal> especifica que "
+"nenhuma operação deve estar em cascata. "
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -1981,45 +1528,41 @@
"operation should be applied to any child object that is removed from the "
"association."
msgstr ""
-"A special cascade style, <literal>delete-orphan</literal>, applies only to "
-"one-to-many associations, and indicates that the <literal>delete()</literal> "
-"operation should be applied to any child object that is removed from the "
-"association."
+"Um estilo especial em cascata, <literal>delete-orphan</literal>, aplica "
+"somente associações um-para-um, e indica que a operação <literal>delete()</"
+"literal> deve ser aplicada em qualquer objeto filho que seja removido da "
+"associação."
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
-msgstr "Recommendations:"
+msgstr "Recomendações:"
#. Tag: para
-#: session_api.xml:973
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
"one></literal> or <literal><many-to-many></literal> association. "
"Cascade is often useful for <literal><one-to-one></literal> and "
"<literal><one-to-many></literal> associations."
msgstr ""
-"It doesn't usually make sense to enable cascade on a <literal><many-to-"
-"one></literal> or <literal><many-to-many></literal> association. "
-"Cascade is often useful for <literal><one-to-one></literal> and "
-"<literal><one-to-many></literal> associations."
+"Não faz sentido habilitar a cascata em uma associação. <literal><many-to-"
+"one></literal> ou <literal><many-to-many></literal> A Cascata é "
+"geralmente útil para associações <literal><one-to-one></literal> e "
+"<literal><one-to-many></literal>."
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
"object, make it a <emphasis>life cycle object</emphasis> by specifying "
"<literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
-"If the child object's lifespan is bounded by the lifespan of the parent "
-"object, make it a <emphasis>life cycle object</emphasis> by specifying "
-"<literal>cascade=\"all,delete-orphan\"</literal>."
+"Se o tempo de vida do objeto filho estiver vinculado ao tempo de vida do "
+"objeto pai, faça disto um <emphasis>objeto de ciclo de vida</emphasis> "
+"especificando um <literal>cascade=\"all,delete-orphan\"</literal>."
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -2027,13 +1570,12 @@
"transaction, and you want to save yourself some typing, consider using "
"<literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
-"Otherwise, you might not need cascade at all. But if you think that you will "
-"often be working with the parent and children together in the same "
-"transaction, and you want to save yourself some typing, consider using "
-"<literal>cascade=\"persist,merge,save-update\"</literal>."
+"Caso contrário, você pode não precisar realizar a cascata. Mas se você achar "
+"que irá trabalhar com o pai e filho juntos com freqüência, na mesma "
+"transação, e quiser salvar você mesmo, considere o uso do <literal>cascata="
+"\"persistir,mesclar,salvar-atualizar\"</literal>."
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -2041,14 +1583,14 @@
"<emphasis>parent/child</emphasis> style relationship where save/update/"
"delete of the parent results in save/update/delete of the child or children."
msgstr ""
-"Mapping an association (either a single valued association, or a collection) "
-"with <literal>cascade=\"all\"</literal> marks the association as a "
-"<emphasis>parent/child</emphasis> style relationship where save/update/"
-"delete of the parent results in save/update/delete of the child or children."
+"Ao mapear uma associação (tanto uma associação de valor único como uma "
+"coleção) com <literal>casca de=\"all\"</literal>, a associação é demarcada "
+"como um relacionamento de estilo <emphasis>parent/child</emphasis> onde "
+"salvar/atualizar/deletar do pai, resulta em salvar/atualizar/deletar do(s) "
+"filho(s)."
#. Tag: para
-#: session_api.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
"result in save/update of the child. This metaphor is incomplete, however. A "
@@ -2058,68 +1600,62 @@
"literal>. The precise semantics of cascading operations for a parent/child "
"relationship are as follows:"
msgstr ""
-"Futhermore, a mere reference to a child from a persistent parent will result "
-"in save/update of the child. This metaphor is incomplete, however. A child "
-"which becomes unreferenced by its parent is <emphasis>not</emphasis> "
-"automatically deleted, except in the case of a <literal><one-to-many></"
-"literal> association mapped with <literal>cascade=\"delete-orphan\"</"
-"literal>. The precise semantics of cascading operations for a parent/child "
-"relationship are as follows:"
+"Além disso, uma mera referência ao filho de um pai persistente irá resultar "
+"em salvar/atualizar/ o filho. Entretanto, esta metáfora está incompleta. Um "
+"filho, que não é referenciado por seu pai <emphasis>não</emphasis> é "
+"deletado automaticamente, exceto no caso de uma associação <literal><one-"
+"to-many></literal> mapeada com <literal>casca de=\"delete-orphan\"</"
+"literal>. A semântica exata, de operações em cascata para o relacionamento "
+"pai/filho, são como as que se seguem: "
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
"passed to <literal>persist()</literal>"
msgstr ""
-"If a parent is passed to <literal>persist()</literal>, all children are "
-"passed to <literal>persist()</literal>"
+"Se um pai é passado para <literal>persist()</literal>, todos os filhos são "
+"passados para <literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
"to <literal>merge()</literal>"
msgstr ""
-"If a parent is passed to <literal>merge()</literal>, all children are passed "
-"to <literal>merge()</literal>"
+"Se um pai é passado para <literal>merge()</literal>, todos os filhos são "
+"passados para <literal>merge()</literal>"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, all children are passed to "
"<literal>saveOrUpdate()</literal>"
msgstr ""
-"If a parent is passed to <literal>save()</literal>, <literal>update()</"
-"literal> or <literal>saveOrUpdate()</literal>, all children are passed to "
+"Se um pai for passado para <literal>save()</literal>, <literal>update()</"
+"literal> ou <literal>saveOrUpdate()</literal>, todos os filhos passarão para "
"<literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
"it is passed to <literal>saveOrUpdate()</literal>"
msgstr ""
-"If a transient or detached child becomes referenced by a persistent parent, "
-"it is passed to <literal>saveOrUpdate()</literal>"
+"Se um filho transiente ou desanexado se tornar referenciado pelo pai "
+"persistente, ele será passado para <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
"literal>"
msgstr ""
-"If a parent is deleted, all children are passed to <literal>delete()</"
-"literal>"
+"Se um pai for deletado, todos os filhos serão passados para <literal>delete()"
+"</literal>"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2127,14 +1663,13 @@
"necessary - unless <literal>cascade=\"delete-orphan\"</literal>, in which "
"case the \"orphaned\" child is deleted."
msgstr ""
-"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
-"happens</emphasis> - the application should explicitly delete the child if "
-"necessary - unless <literal>cascade=\"delete-orphan\"</literal>, in which "
-"case the \"orphaned\" child is deleted."
+"Se um filho for diferenciado pelo pai persistente, <emphasis>nada de "
+"especial acontece</emphasis> - a aplicação deve explicitamente deletar o "
+"filho se necessário, a não ser que <literal>casca de=\"delete-orphan\"</"
+"literal>, nos quais casos o filho \"órfão\" é deletado."
#. Tag: para
-#: session_api.xml:1051
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
@@ -2143,22 +1678,21 @@
"<literal>delete-orphan</literal> are transitive for all associated entities "
"reachable during flush of the <literal>Session</literal>."
msgstr ""
-"Finally, note that cascading of operations can be applied to an object graph "
-"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
-"operations, if enabled, are cascaded to associated entities reachable when "
-"the operation is executed. However, <literal>save-upate</literal> and "
-"<literal>delete-orphan</literal> are transitive for all associated entities "
-"reachable during flush of the <literal>Session</literal>."
+"Finalmente, note que o cascateamento das operações podem ser aplicados a um "
+"grafo de objeto em <emphasis>tempo de chamada</emphasis> ou em "
+"<emphasis>tempo de limpeza</emphasis>. Todas as operações, se habilitadas, "
+"são colocadas em cascata para entidades associadas atingÃveis quando a "
+"operação for executada. No entanto, <literal>save-upate</literal> e "
+"<literal>delete-orphan</literal> são transitivas para todas as entidades "
+"associadas atingÃveis durante a limpeza da <literal>Sessão</literal>. "
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr "Usando metadados"
#. Tag: para
-#: session_api.xml:1065
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
"This model can be useful to the application itself. For example, the "
@@ -2167,63 +1701,23 @@
"value types) and which objects that should not (e.g. immutable value types "
"and, possibly, associated entities)."
msgstr ""
-"O Hibernate requer um modelo muito rico a nÃvel de metadados de todas as "
+"O Hibernate requer um modelo muito rico, em nÃvel de metadados, de todas as "
"entidades e tipos de valores. De tempos em tempos, este modelo é muito útil "
-"à própria aplicação. Por exemplo, a aplicação pode usar o metadados do "
-"Hibernate que executa um algoritmo \"inteligente\" que compreende quais "
+"à própria aplicação. Por exemplo, a aplicação pode usar os metadados do "
+"Hibernate, que executa um algoritmo \"inteligente\", que compreende quais "
"objetos podem ser copiados (por exemplo, tipos de valores mutáveis) ou não "
"(por exemplo, tipos de valores imutáveis e, possivelmente, entidades "
-"associadas)."
+"associadas). "
#. Tag: para
-#: session_api.xml:1072
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
"<literal>CollectionMetadata</literal> interfaces and the <literal>Type</"
"literal> hierarchy. Instances of the metadata interfaces can be obtained "
"from the <literal>SessionFactory</literal>."
msgstr ""
-"O Hibernate expõe o metadados via interfaces <literal>ClassMetadata</"
+"O Hibernate expõe os metadados via interfaces <literal>ClassMetadata</"
"literal> e <literal>CollectionMetadata</literal> e pela hierarquia "
"<literal>Type</literal>. Instâncias das interfaces de metadados podem ser "
-"obtidas a partir do <literal>SessionFactory</literal>."
-
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#~ msgid "UPDATE"
-#~ msgstr "UPDATE"
-
-#~ msgid "DELETE"
-#~ msgstr "DELETE"
-
-#~ msgid "state management"
-#~ msgstr "state management"
-
-#~ msgid "statements"
-#~ msgstr "statements"
-
-#~ msgid "Connection"
-#~ msgstr "Connection"
-
-#~ msgid "session.connection()"
-#~ msgstr "session.connection()"
+"obtidas a partir do <literal>SessionFactory</literal>. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,60 +1,164 @@
+# translation of toolset_guide.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: toolset_guide\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2009-12-21 07:41+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
-msgstr "Toolset Guide"
+msgstr "Guia de Toolset"
#. Tag: para
-#: toolset_guide.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
"plugins, commandline tools, and Ant tasks."
msgstr ""
-"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
-"plugins, commandline tools, as well as Ant tasks."
+"Ã possÃvel realizar uma engenharia de roundtrip com o Hibernate, usando um "
+"conjunto de plug-ins de Eclipse, ferramentas de linha de comando, assim como "
+"tarefas Ant."
#. Tag: para
-#: toolset_guide.xml:36
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
"databases:"
msgstr ""
-"The <emphasis>Hibernate Tools</emphasis> currently include plugins for the "
-"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
-"databases:"
+"As <emphasis>Ferramentas do Hibernate</emphasis> atualmente incluem os plug-"
+"ins para o IDE de Eclipse assim como as tarefas para reverter a engenharia "
+"dos bancos de dados existentes:"
#. Tag: para
-#: toolset_guide.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
"files that supports auto-completion and syntax highlighting. It also "
"supports semantic auto-completion for class names and property/field names, "
"making it more versatile than a normal XML editor."
msgstr ""
-"<emphasis>Mapping Editor:</emphasis> An editor for Hibernate XML mapping "
-"files, supporting auto-completion and syntax highlighting. It also supports "
-"semantic auto-completion for class names and property/field names, making it "
-"much more versatile than a normal XML editor."
+"<emphasis>Editor de Mapeamento:</emphasis> um editor para mapeamento de "
+"arquivos XML do Hibernate, suportando a auto complexão e destaque de "
+"sintáxe. Ele também suporta a auto complexão da semântica para nomes de "
+"classes e nomes de propriedade/campo, fazendo com que ele seja mais versátil "
+"do que um editor XML normal. "
#. Tag: para
-#: toolset_guide.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
"addition to a tree overview of your console configurations, you are also "
@@ -62,15 +166,14 @@
"relationships. The console allows you to execute HQL queries against your "
"database and browse the result directly in Eclipse."
msgstr ""
-"<emphasis>Console:</emphasis> The console is a new view in Eclipse. In "
-"addition to a tree overview of your console configurations, you also get an "
-"interactive view of your persistent classes and their relationships. The "
-"console allows you to execute HQL queries against your database and browse "
-"the result directly in Eclipse."
+"<emphasis>Console:</emphasis> o console é uma nova visão em Eclipse. Além "
+"disso, para uma visão geral de árvore de suas configurações de console, você "
+"também pode obter uma visão interativa de suas classes persistentes e seus "
+"relacionamentos. O console permite que você execute as consultas HQL junto "
+"ao banco de dados e navegue o resultado diretamente em Eclipse. "
#. Tag: para
-#: toolset_guide.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
"the Hibernate Eclipse tools. You can use a wizard to quickly generate "
@@ -78,453 +181,306 @@
"database schema into POJO source files and Hibernate mapping files. The "
"reverse engineering wizard supports customizable templates."
msgstr ""
-"<emphasis>Development Wizards:</emphasis> Several wizards are provided with "
-"the Hibernate Eclipse tools; you can use a wizard to quickly generate "
-"Hibernate configuration (cfg.xml) files, or you may even completely reverse "
-"engineer an existing database schema into POJO source files and Hibernate "
-"mapping files. The reverse engineering wizard supports customizable "
-"templates."
+"<emphasis>Assistentes de Desenvolvimento:</emphasis> são oferecidos diversos "
+"assistentes com as ferramentas de Eclipse do Hibernate. Você pode usar o "
+"assistente para gerar rapidamente arquivos de configuração do Hibernate (cfg."
+"xml), ou você pode também reverter completamente o engenheiro, um esquema de "
+"banco de dados existente, para arquivos de fonte POJO e arquivos de "
+"mapeamento do Hibernate. O assistente de engenharia reversa suporta modelos "
+"padronizáveis."
#. Tag: para
-#: toolset_guide.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
"documentation for more information."
msgstr ""
-"Please refer to the <emphasis>Hibernate Tools</emphasis> package and it's "
-"documentation for more information."
+"Por favor, consulte o pacote <emphasis>Ferramentas do Hibernate</emphasis> e "
+"suas documentações para maiores informações."
#. Tag: para
-#: toolset_guide.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even "
"be used from \"inside\" Hibernate."
msgstr ""
-"However, the Hibernate main package comes bundled with an integrated tool "
-"(it can even be used from \"inside\" Hibernate on-the-fly): "
-"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>."
+"No entanto, o pacote principal do Hibernate vem em lote com uma ferramenta "
+"integrada: <emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>. "
+"Ele pode também ser usado dentro do Hibernate."
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
-msgstr "Automatic schema generation"
+msgstr "Geração de esquema automático"
#. Tag: para
-#: toolset_guide.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
"generated schema includes referential integrity constraints, primary and "
"foreign keys, for entity and collection tables. Tables and sequences are "
"also created for mapped identifier generators."
msgstr ""
-"DDL may be generated from your mapping files by a Hibernate utility. The "
-"generated schema includes referential integrity constraints (primary and "
-"foreign keys) for entity and collection tables. Tables and sequences are "
-"also created for mapped identifier generators."
+"O DDL pode ser gerado a partir dos arquivos de mapeamento através dos "
+"utilitários do Hibernate. O esquema gerado inclui as restrições de "
+"integridade referencial, primária e chave estrangeira, para entidade e "
+"tabela de coleção. Tabelas e seqüência são também criadas por geradores de "
+"identificador mapeado."
#. Tag: para
-#: toolset_guide.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
"the <literal>hibernate.dialect</literal> property when using this tool, as "
"DDL is highly vendor-specific."
msgstr ""
-"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
-"the <literal>hibernate.dialect</literal> property when using this tool, as "
-"DDL is highly vendor specific."
+"Você <emphasis>deve</emphasis> especificar um SQL <literal>Dialect</literal> "
+"através da propriedade <literal>hibernate.dialect</literal> ao usar esta "
+"ferramenta, uma vez que o DDL é um fabricante bastante especÃfico."
#. Tag: para
-#: toolset_guide.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
"schema. The next section covers schema customization."
-msgstr "First, customize your mapping files to improve the generated schema."
+msgstr ""
+"Primeiro, padronize seus arquivos de mapeamento para melhorar o esquema "
+"gerado. A próxima seção cobrirá a personalização do esquema."
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
-msgstr "Customizing the schema"
+msgstr "Padronizando o esquema"
#. Tag: para
-#: toolset_guide.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
"literal>. You can set the length, precision and scale of a column with this "
"attribute."
msgstr ""
-"Many Hibernate mapping elements define optional attributes named "
-"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
-"literal>. You may set the length, precision and scale of a column with this "
-"attribute."
+"Muitos elementos de mapeamento do Hibernate definem funções opcionais "
+"nomeadas <literal>length</literal>, <literal>precision</literal> e "
+"<literal>scale</literal>. Você deve ajustar o length, precision e scale de "
+"uma coluna com esta função."
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
"a <literal>NOT NULL</literal> constraint on table columns, and a "
"<literal>unique</literal> attribute for generating <literal>UNIQUE</literal> "
"constraint on table columns."
msgstr ""
-"Some tags also accept a <literal>not-null</literal> attribute (for "
-"generating a <literal>NOT NULL</literal> constraint on table columns) and a "
-"<literal>unique</literal> attribute (for generating <literal>UNIQUE</"
-"literal> constraint on table columns)."
+"Algumas tags aceitam uma função <literal>not-null</literal> para gerar uma "
+"restrição <literal>NOT NULL</literal>nas colunas de tabela e uma função "
+"<literal>unique</literal> para gerar uma restrição <literal>UNIQUE</literal> "
+"em colunas de tabela."
-#. Tag: programlisting
-#: toolset_guide.xml:117
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:121
-#, fuzzy, no-c-format
-msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
"single, unique key constraint. Currently, the specified value of the "
"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
"name the constraint in the generated DDL. It is only used to group the "
"columns in the mapping file."
msgstr ""
-"A <literal>unique-key</literal> attribute may be used to group columns in a "
-"single unique key constraint. Currently, the specified value of the "
-"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
-"name the constraint in the generated DDL, only to group the columns in the "
-"mapping file."
+"Uma função <literal>unique-key</literal> pode ser usada para agrupar colunas "
+"em uma restrição de chave única. Atualmente, o valor especÃfico da função "
+"<literal>unique-key</literal> <emphasis>não é</emphasis> usada para nomear a "
+"restrição no DDL gerado, somente para agrupar as colunas no arquivo de "
+"mapeamento. "
-#. Tag: programlisting
-#: toolset_guide.xml:129
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:131
-#, fuzzy, no-c-format
-msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
"will be created using the mapped column or columns. Multiple columns can be "
"grouped into the same index by simply specifying the same index name."
msgstr ""
-"An <literal>index</literal> attribute specifies the name of an index that "
-"will be created using the mapped column or columns. Multiple columns may be "
-"grouped into the same index, simply by specifying the same index name."
+"Uma função <literal>index</literal> especifica o nome de um indexe que será "
+"criado, usando a coluna ou colunas mapeada(s). As colunas múltiplas podem "
+"ser agrupadas no mesmo indexe, simplesmente especificando o mesmo nome de "
+"Ãndice. "
-#. Tag: programlisting
-#: toolset_guide.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:139
-#, fuzzy, no-c-format
-msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
"of any generated foreign key constraint."
msgstr ""
-"A <literal>foreign-key</literal> attribute may be used to override the name "
-"of any generated foreign key constraint."
+"Uma função <literal>foreign-key</literal> pode ser usada para sobrescrever o "
+"nome de qualquer restrição de chave exterior gerada. "
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
"element. This is particularly useful for mapping multi-column types:"
msgstr ""
-"Many mapping elements also accept a child <literal><column></literal> "
-"element. This is particularly useful for mapping multi-column types:"
+"Muitos elementos de mapeamento também aceitam um elemento filho <literal><"
+"column></literal>. Isto é particularmente útil para mapeamento de tipos "
+"multi-colunas:"
-#. Tag: programlisting
-#: toolset_guide.xml:151
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:153
-#, fuzzy, no-c-format
-msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
"value for a column.You should assign the same value to the mapped property "
"before saving a new instance of the mapped class."
msgstr ""
-"The <literal>default</literal> attribute lets you specify a default value "
-"for a column (you should assign the same value to the mapped property before "
-"saving a new instance of the mapped class)."
+"A função <literal>default</literal> deixa você especificar um valor padrão "
+"para uma coluna. Você deve atribuir o mesmo valor à propriedade mapeada "
+"antes de salvar uma nova instância da classe mapeada."
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
"default mapping of a Hibernate type to SQL datatype."
msgstr ""
-"The <literal>sql-type</literal> attribute allows the user to override the "
-"default mapping of a Hibernate type to SQL datatype."
+"A função <literal>sql-type</literal> permite que o usuário sobrescreva o "
+"mapeamento padrão de um tipo de Hibernate para um tipo de dados SQL."
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
"constraint."
msgstr ""
-"The <literal>check</literal> attribute allows you to specify a check "
-"constraint."
+"A função <literal>check</literal> permite que você especifique uma restrição "
+"de verificação."
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
-msgstr ""
+msgstr "A seguinte tabela resume estes atributos opcionais."
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
-msgstr "Summary"
+msgstr "Sumário"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
-msgstr "Attribute"
+msgstr "Função"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
-msgstr "Values"
+msgstr "Valores"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
-msgstr "Interpretation"
+msgstr "Interpretação"
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
-msgstr "length"
+msgid "<literal>length</literal>"
+msgstr "<literal>length</literal>"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
-msgstr "number"
+msgstr "número"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
-msgstr "column length"
+msgstr "comprimento da coluna"
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
-msgstr "precision"
+msgid "<literal>precision</literal>"
+msgstr "<literal>precision</literal>"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
-msgstr "column decimal precision"
+msgstr "precisão da coluna decimal"
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
-msgstr "scale"
+msgid "<literal>scale</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
-msgstr "column decimal scale"
+msgstr "escaça de coluna decimal"
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+msgid "<literal>not-null</literal>"
+msgstr "<literal>not-null</literal>"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+msgid "<literal>true|false</literal>"
+msgstr "<literal>true|false</literal>"
#. Tag: entry
-#: toolset_guide.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specifies that the column should be non-nullable"
-msgstr "specfies that the column should be non-nullable"
+msgstr "especifica que a coluna deveria ser não anulável "
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
-msgstr "unique"
+msgid "<literal>unique</literal>"
+msgstr "<literal>unique</literal>"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
-msgstr "specifies that the column should have a unique constraint"
+msgstr "especifica que a coluna deveria ter uma restrição única"
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
-msgstr "index"
+msgid "<literal>index</literal>"
+msgstr "<literal>index</literal>"
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
-msgstr "index_name"
+msgid "<literal>index_name</literal>"
+msgstr "<literal>index_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
-msgstr "specifies the name of a (multi-column) index"
+msgstr "especifica o nome de um Ãndice (multi-coluna)"
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>unique-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:227
-#, no-c-format
-msgid "unique_key_name"
-msgstr "unique_key_name"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>unique_key_name</literal>"
+msgstr "<literal>unique-key</literal>"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
-msgstr "specifies the name of a multi-column unique constraint"
+msgstr "especifica o nome de uma restrição única de coluna múltipla"
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>foreign-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:232
-#, no-c-format
-msgid "foreign_key_name"
-msgstr "foreign_key_name"
-
#. Tag: entry
-#: toolset_guide.xml:233
#, fuzzy, no-c-format
+msgid "<literal>foreign_key_name</literal>"
+msgstr "<literal>foreign-key</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
"association, for a <literal><one-to-one></literal>, <literal><many-"
@@ -532,540 +488,407 @@
"to-many></literal> mapping element. Note that <literal>inverse=\"true\"</"
"literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-"specifies the name of the foreign key constraint generated for an "
-"association, for a <placeholder-1/>, <placeholder-2/>, <placeholder-3/>, or "
-"<placeholder-4/> mapping element. Note that <placeholder-5/> sides will not "
-"be considered by <placeholder-6/>."
+"especifica o nome da restrição de chave estrangeira gerada para uma "
+"associação, por um elemento de mapeamento <literal><one-to-one></"
+"literal>, <literal><many-to-one></literal>, <literal><key></"
+"literal>, ou <literal><many-to-many></literal>. Note que os lados "
+"<literal>inverse=\"true\"</literal> não serão considerados pelo "
+"<literal>SchemaExport</literal>."
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>sql-type</literal>"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
-msgstr "SQL column type"
-
#. Tag: entry
-#: toolset_guide.xml:245
#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
+msgstr "<literal>sql-type</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
"literal> element only)"
msgstr ""
-"overrides the default column type (attribute of <placeholder-1/> element "
-"only)"
+"sobrescreve o tipo de coluna padrão (função do elemento <literal><"
+"column></literal>somente)"
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
-msgstr "default"
+msgid "<literal>default</literal>"
+msgstr "<literal>default</literal>"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
#, no-c-format
msgid "SQL expression"
-msgstr "SQL expression"
+msgstr "Expressão SQL "
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
-msgstr "specify a default value for the column"
+msgstr "especifica um valor padrão para a coluna"
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
-msgstr "check"
+msgid "<literal>check</literal>"
+msgstr "<literal>check</literal>"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
-msgstr "create an SQL check constraint on either column or table"
+msgstr ""
+"cria uma restrição de verificação de SQL tanto na coluna quanto na tabela"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
"comments for the generated schema."
msgstr ""
-"The <literal><comment></literal> element allows you to specify "
-"comments for the generated schema."
+"O elemento <literal><comment></literal> permite que você especifique "
+"comentários para esquema gerado."
-#. Tag: programlisting
-#: toolset_guide.xml:273
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:277
-#, fuzzy, no-c-format
-msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
"column</literal> statement in the generated DDL where supported."
msgstr ""
-"This results in a <literal>comment on table</literal> or <literal>comment on "
-"column</literal> statement in the generated DDL (where supported)."
+"Isto resulta em uma instrução <literal>comment on table</literal> ou "
+"<literal>comment on column</literal> no DDL gerado, onde é suportado."
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
-msgstr "Running the tool"
+msgstr "Executando a ferramenta"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
"and/or executes the DDL statements."
msgstr ""
-"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
-"and/or executes the DDL statements."
+"A ferramenta <literal>SchemaExport</literal> escreve um script DDL para "
+"padronizar e/ou para executar as instruções DDL."
#. Tag: para
-#: toolset_guide.xml:293
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
"line options"
-msgstr "<literal>SchemaExport</literal> Command Line Options"
+msgstr ""
+"A seguinte tabela exibe as opções de linha de comando do "
+"<literal>SchemaExport</literal>"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
-msgstr "<literal>SchemaExport</literal> Command Line Options"
+msgstr "<literal>SchemaExport</literal> Opções de Linha de Comando"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
-msgstr "Option"
+msgstr "Opção"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:528
#, no-c-format
msgid "Description"
-msgstr "Description"
+msgstr "Descrição"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>--quiet</literal>"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not output the script to stdout"
-msgstr "don't output the script to stdout"
+msgstr "não saia do script para stdout "
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+msgid "<literal>--drop</literal>"
+msgstr "<literal>--drop</literal>"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
-msgstr "only drop the tables"
+msgstr "somente suspenda as tabelas"
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
-msgstr "--create"
+msgid "<literal>--create</literal>"
+msgstr "<literal>--create</literal>"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
-msgstr "only create the tables"
+msgstr "somente crie tabelas"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
-msgstr "--text"
+msgid "<literal>--text</literal>"
+msgstr "<literal>--text</literal>"
#. Tag: entry
-#: toolset_guide.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export to the database"
-msgstr "don't export to the database"
+msgstr "não exporte para o banco de dados "
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
-msgstr "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
-msgstr "output the ddl script to a file"
+msgstr "saia do script ddl para um arquivo"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
-msgstr "--naming=eg.MyNamingStrategy"
-
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, fuzzy, no-c-format
-msgid "select a <literal>NamingStrategy</literal>"
-msgstr "in <literal>hibernate.properties</literal>"
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
+msgstr "<literal>--naming=eg.MyNamingStrategy</literal>"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
+#. Tag: entry
#, no-c-format
-msgid "--config=hibernate.cfg.xml"
-msgstr "--config=hibernate.cfg.xml"
+msgid "select a <literal>NamingStrategy</literal>"
+msgstr "seleciona um <literal>NamingStrategy</literal>"
#. Tag: entry
-#: toolset_guide.xml:338
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
+msgstr "<literal>--config=hibernate.cfg.xml</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
-msgstr "read Hibernate configuration from an XML file"
+msgstr "leia a configuração do Hibernate a partir do arquivo XML"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
-#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
#, no-c-format
msgid "read database properties from a file"
-msgstr "read database properties from a file"
+msgstr "leia propriedades de banco de dados a partir dos arquivos"
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
-msgstr "--format"
+msgid "<literal>--format</literal>"
+msgstr "<literal>--format</literal>"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
-msgstr "format the generated SQL nicely in the script"
+msgstr "formatar bem o SQL gerado no script"
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=;"
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>--delimiter=;</literal>"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
-msgstr "set an end of line delimiter for the script"
+msgstr "ajustar e finalizar o delimitador de linha para o script"
#. Tag: para
-#: toolset_guide.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
msgstr ""
-"You may even embed <literal>SchemaExport</literal> in your application:"
+"Você pode até mesmo incorporar o <literal>SchemaExport</literal> em sua "
+"aplicação: "
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
-msgstr "Properties"
+msgstr "Propriedades"
#. Tag: para
-#: toolset_guide.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Database properties can be specified:"
-msgstr "Database properties may be specified"
+msgstr "As Propriedades do Banco de Daods podem ser especificadas:"
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
"emphasis>"
msgstr ""
-"as system properties with <literal>-D</literal><emphasis><property></"
-"emphasis>"
+"Como Propriedades de sistema com <literal>-D</literal><emphasis><"
+"property></emphasis>"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
-msgstr "in <literal>hibernate.properties</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
-msgstr "in a named properties file with <literal>--properties</literal>"
+msgstr ""
+"em um arquivo de propriedades nomeadas com <literal>--properties</literal>"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
-msgstr "The needed properties are:"
+msgstr "As propriedades necessárias são:"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr "SchemaExport Connection Properties"
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
-msgstr "Property Name"
+msgstr "Nome de Propriedade"
-#. Tag: literal
-#: toolset_guide.xml:400
-#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.driver_class</literal>"
+msgstr "<literal>hibernate.connection.driver_class</literal>"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
-msgstr "jdbc driver class"
+msgstr "classe de driver jdbc"
-#. Tag: literal
-#: toolset_guide.xml:404
-#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr "jdbc url"
-#. Tag: literal
-#: toolset_guide.xml:408
-#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
-msgstr "database user"
+msgstr "usuário de banco de dados"
-#. Tag: literal
-#: toolset_guide.xml:412
-#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
-msgstr "user password"
+msgstr "senha do usuário"
-#. Tag: literal
-#: toolset_guide.xml:416
-#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "em <literal>hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
-msgstr "dialect"
+msgstr "dialeto"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
-msgstr "Using Ant"
+msgstr "Usando o Ant"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
msgstr ""
-"You can call <literal>SchemaExport</literal> from your Ant build script:"
+"Você pode chamar o <literal>SchemaExport</literal> a partir de seu script de "
+"construção do Ant:"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
-msgstr "Incremental schema updates"
+msgstr "Atualizações de esquema incremental"
#. Tag: para
-#: toolset_guide.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
"\"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon "
"the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
-"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
-"\"incremental\" changes. Note that <literal>SchemaUpdate</literal> depends "
-"heavily upon the JDBC metadata API, so it will not work with all JDBC "
-"drivers."
+"A ferramenta <literal>SchemaUpdate</literal> irá atualizar um esquema "
+"existente com mudanças \"incrementais\". Observe que <literal>SchemaUpdate</"
+"literal> depende totalmente da API de metadados JDBC, portanto não irá "
+"funcionar com todos os driver JDBC. "
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
-msgstr "<literal>SchemaUpdate</literal> Command Line Options"
+msgstr "<literal>SchemaUpdate</literal>Opções de Linha de Comando"
#. Tag: entry
-#: toolset_guide.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export the script to the database"
-msgstr "don't export the script to the database"
+msgstr "não exporte o script ao banco de dados "
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
-msgstr "specify a <placeholder-1/> file"
+msgstr "especifique um arquivo <literal>.cfg.xml</literal>"
#. Tag: para
-#: toolset_guide.xml:486
-#, fuzzy, no-c-format
-msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
-msgstr "You may embed <literal>SchemaUpdate</literal> in your application:"
-
-#. Tag: programlisting
-#: toolset_guide.xml:490
#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
+msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
msgstr ""
+"Você pode incorporar o <literal>SchemaUpdate</literal> em sua aplicação: "
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
-msgstr "Using Ant for incremental schema updates"
+msgstr "Utilizando Ant para atualizações de esquema incremental"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
-msgstr "You can call <literal>SchemaUpdate</literal> from the Ant script:"
-
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
msgstr ""
+"Você pode chamar <literal>SchemaUpdate</literal> a partir do script Ant:"
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
-msgstr "Schema validation"
+msgstr "Validação de esquema"
#. Tag: para
-#: toolset_guide.xml:508
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
"database schema \"matches\" your mapping documents. The "
@@ -1073,126 +896,97 @@
"API and, as such, will not work with all JDBC drivers. This tool is "
"extremely useful for testing."
msgstr ""
-"The <literal>SchemaValidator</literal> tool will validate that the existing "
-"database schema \"matches\" your mapping documents. Note that "
-"<literal>SchemaValidator</literal> depends heavily upon the JDBC metadata "
-"API, so it will not work with all JDBC drivers. This tool is extremely "
-"useful for testing."
+"A ferramenta <literal>SchemaValidator</literal> irá confirmar que o esquema "
+"de banco de dados existente \"combina\" com seus documentos de mapeamento. "
+"Observe que o <literal>SchemaValidator</literal> depende totalmente da API "
+"de metadados JDBC, portanto ele não funcionará com todos os drivers JDBC. "
+"Esta ferramenta é extremamente útil para teste. "
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
"<emphasis>options mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
+"<emphasis>options mapping_files</emphasis>"
#. Tag: para
-#: toolset_guide.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaValidator</literal> command "
"line options:"
-msgstr "<literal>SchemaValidator</literal> Command Line Options"
+msgstr ""
+"A seguinte tabela exibe as opções de linha de comando do "
+"<literal>SchemaValidator</literal>:"
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
-msgstr "<literal>SchemaValidator</literal> Command Line Options"
+msgstr "<literal>SchemaValidator</literal> Opções de Linha de Comando"
#. Tag: para
-#: toolset_guide.xml:548
-#, fuzzy, no-c-format
-msgid "You can embed <literal>SchemaValidator</literal> in your application:"
-msgstr "You may embed <literal>SchemaValidator</literal> in your application:"
-
-#. Tag: programlisting
-#: toolset_guide.xml:552
#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
+msgid "You can embed <literal>SchemaValidator</literal> in your application:"
msgstr ""
+"Você pode incorporar o <literal>SchemaValidator</literal> em sua aplicação:"
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
-msgstr "Using Ant for schema validation"
+msgstr "Utilizando Ant para validação de esquema"
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
-msgstr "You can call <literal>SchemaValidator</literal> from the Ant script:"
-
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
msgstr ""
+"Você pode chamar o <literal>SchemaValidator</literal> a partir do script Ant:"
-#~ msgid "Ant Tasks:"
-#~ msgstr "Ant Tasks:"
+#, fuzzy
+#~ msgid "length"
+#~ msgstr "comprimento da coluna"
-#~ msgid "<one-to-one>"
-#~ msgstr "<one-to-one>"
+#, fuzzy
+#~ msgid "precision"
+#~ msgstr "Expressão SQL "
-#~ msgid "<many-to-one>"
-#~ msgstr "<many-to-one>"
+#, fuzzy
+#~ msgid "unique_key_name"
+#~ msgstr "<literal>unique_key_name</literal>"
-#~ msgid "<key>"
-#~ msgstr "<key>"
+#, fuzzy
+#~ msgid "foreign_key_name"
+#~ msgstr "<literal>foreign_key_name</literal>"
-#~ msgid "<many-to-many>"
-#~ msgstr "<many-to-many>"
+#, fuzzy
+#~ msgid "SQL column type"
+#~ msgstr "<literal>SQL column type</literal>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#, fuzzy
+#~ msgid "--output=my_schema.ddl"
+#~ msgstr "<literal>--output=my_schema.ddl</literal>"
-#~ msgid "SchemaExport"
-#~ msgstr "SchemaExport"
+#, fuzzy
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "<literal>--properties=hibernate.properties</literal>"
-#~ msgid "<column>"
-#~ msgstr "<column>"
+#, fuzzy
+#~ msgid "hibernate.connection.url"
+#~ msgstr "<literal>hibernate.connection.url</literal>"
-#~ msgid "java -cp"
-#~ msgstr "java -cp"
+#, fuzzy
+#~ msgid "hibernate.connection.username"
+#~ msgstr "<literal>hibernate.connection.username</literal>"
-#~ msgid "hibernate_classpaths"
-#~ msgstr "hibernate_classpaths"
+#, fuzzy
+#~ msgid "hibernate.connection.password"
+#~ msgstr "<literal>hibernate.connection.password</literal>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaExport"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaExport"
+#, fuzzy
+#~ msgid "hibernate.dialect"
+#~ msgstr "<literal>hibernate.dialect</literal>"
-#~ msgid "options mapping_files"
-#~ msgstr "options mapping_files"
-
-#~ msgid "NamingStrategy"
-#~ msgstr "NamingStrategy"
-
-#~ msgid "select a <placeholder-1/>"
-#~ msgstr "select a <placeholder-1/>"
-
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-
-#~ msgid ".cfg.xml"
-#~ msgstr ".cfg.xml"
-
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaValidator"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaValidator"
+#~ msgid "<!-- <emphasis>Ant Tasks:</emphasis> -->"
+#~ msgstr "<!-- <emphasis>Tarefas Ant:</emphasis> -->"
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,129 @@
+# translation of transactions.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: transactions\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2009-12-21 07:53+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: transactions.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Transactions and Concurrency"
-msgstr "Transações e Concorrência"
+msgstr "Transações e Concorrência "
#. Tag: para
-#: transactions.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
"is easy to understand. Hibernate directly uses JDBC connections and JTA "
@@ -26,16 +131,15 @@
"that you spend some time with the JDBC, ANSI, and transaction isolation "
"specification of your database management system."
msgstr ""
-"O ponto o mais importante sobre o Hibernate e o controle de concorrência é "
-"que é muito fácil de ser compreendido. O Hibernate usa diretamente conexões "
-"de JDBC e recursos de JTA sem adicionar nenhum comportamento de bloqueio a "
-"mais. Nós altamente recomendamos que você gaste algum tempo com o JDBC, o "
-"ANSI e a especificação de isolamento de transação de seu sistema de gerência "
-"da base de dados."
+"O fator mais importante sobre o Hibernate e o controle de concorrência é que "
+"é muito fácil de ser compreendido. O Hibernate usa diretamente conexões de "
+"JDBC e recursos de JTA sem adicionar nenhum comportamento de bloqueio a "
+"mais. Recomendamos que você gaste algum tempo com o JDBC, o ANSI e a "
+"especificação de isolamento de transação de seu sistema de gerência da base "
+"de dados. "
#. Tag: para
-#: transactions.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
"behavior as defined by the isolation level of your database transactions. "
@@ -44,15 +148,14 @@
"entity queries and not reporting queries that return scalar values."
msgstr ""
"O Hibernate não bloqueia objetos na memória. Sua aplicação pode esperar o "
-"comportamento tal qual definido pelo nÃvel de isolamento de suas transações "
-"de banco de dados. Note que graças ao <literal>Session</literal>, que também "
-"é um cache de escopo de transação, o Hibernate fornece leituras repetÃveis "
-"para procurar por identificadores e consultas de entidade (não pesquisas de "
-"relatórios que retornam valores escalares)."
+"comportamento tal qual definido de acordo com o nÃvel de isolamento de suas "
+"transações de banco de dados. Note que graças ao <literal>Session</literal>, "
+"que também é um cache de escopo de transação, o Hibernate procura "
+"repetidamente por identificadores e consultas de entidade não consultas de "
+"relatórios que retornam valores escalares. "
#. Tag: para
-#: transactions.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
"Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> "
@@ -61,12 +164,11 @@
msgstr ""
"Além do versionamento para o controle automático de concorrência otimista, o "
"Hibernate oferece também uma API (menor) para bloqueio pessimista de linhas "
-"usando a sintaxe <literal>SELECT FOR UPDATE</literal>. O controle de "
-"concorrência otimista e esta API são discutidos mais tarde neste capÃtulo."
+"usando a sintáxe <literal>SELECT FOR UPDATE</literal>. O controle de "
+"concorrência otimista e esta API são discutidos mais tarde neste capÃtulo. "
#. Tag: para
-#: transactions.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
"granularity of <literal>Configuration</literal>, <literal>SessionFactory</"
@@ -75,32 +177,29 @@
msgstr ""
"Nós começamos a discussão do controle de concorrência no Hibernate com a "
"granularidade do <literal>Configuration</literal>, <literal>SessionFactory</"
-"literal>, e <literal>Session</literal>, além de transações de base de dados "
-"e conversações longas."
+"literal> e <literal>Session</literal>, além de transações de base de dados e "
+"conversações longas. "
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
-msgstr "Session e escopos de transações"
+msgstr "Sessão e escopos de transações"
#. Tag: para
-#: transactions.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
"object, intended to be shared by all application threads. It is created "
"once, usually on application startup, from a <literal>Configuration</"
"literal> instance."
msgstr ""
-"Um <literal>SessionFactory</literal> é objeto threadsafe compartilhado por "
-"todas as threads da aplicação que consome muitos recursos na sua criação. à "
-"criado uma unica vez no inicio da execução da aplicação a partir da "
-"instância de uma <literal>Configuration</literal>."
+"Um <literal>SessionFactory</literal> é objeto threadsafe com um custo alto "
+"de criação, compartilhado por todas as threads da aplicação. à criado uma "
+"única vez, no inÃcio da execução da aplicação, a partir da instância de uma "
+"<literal>Configuration</literal>. "
#. Tag: para
-#: transactions.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
"should be used once and then discarded for: a single request, a conversation "
@@ -111,13 +210,12 @@
"Uma <literal>Session</literal> é um objeto de baixo custo de criação, não é "
"threadsafe, deve ser usado uma vez, para uma única requisição, uma "
"conversação, uma única unidade do trabalho e então deve ser descartado. Um "
-"<literal>Session</literal> não obterá um JDBC <literal>Connection</literal> "
-"(ou um <literal>Datasource</literal>) a menos que necessite, "
-"conseqüentemente não consome nenhum recurso até ser usado."
+"<literal>Session</literal> não obterá um JDBC <literal>Connection</literal>, "
+"ou um <literal>Datasource</literal>, a menos que necessite. Isto não consome "
+"nenhum recurso até ser usado."
#. Tag: para
-#: transactions.xml:76
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
"has to be as short as possible. Long database transactions will prevent your "
@@ -125,16 +223,14 @@
"that you hold a database transaction open during user think time until the "
"unit of work is complete."
msgstr ""
-"Para completar, você também tem que pensar sobre as transações de base de "
-"dados. Uma transação tem que ser tão curta quanto possÃvel, para reduzir a "
-"disputa pelo bloqueio na base de dados. Transações longas impedirão que sua "
-"aplicação escale a carga altamente concorrente. Por isso, em um projeto "
-"raramente é para manter uma transação de base de dados aberta durante o "
-"tempo que o usuário pensa, até que a unidade do trabalho esteja completa."
+"Uma transação precisa ser o mais curta possÃvel, para reduzir a disputa pelo "
+"bloqueio na base de dados. Transações longas impedirão que sua aplicação "
+"escale a carga altamente concorrente. Por isso, não é bom manter uma "
+"transação de base de dados aberta durante o tempo que o usuário pensa, até "
+"que a unidade do trabalho esteja completa."
#. Tag: para
-#: transactions.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
"<literal>Session</literal> span several database transactions, or is this a "
@@ -142,21 +238,19 @@
"<literal>Session</literal> and how do you demarcate the database transaction "
"boundaries? These questions are addressed in the following sections."
msgstr ""
-"Qual é o escopo de uma unidade de trabalho? Pode uma únicoa "
-"<literal>Session</literal> do Hibernate gerenciar diversas transações ou é "
-"esta um o relacionamento um-para-um dos escopos? Quando deve você abrir e "
-"fechar uma <literal>Session</literal> e como você demarca os limites da "
-"transação?"
+"Qual é o escopo de uma unidade de trabalho? Pode uma única <literal>Session</"
+"literal> do Hibernate gerenciar diversas transações ou este é um o "
+"relacionamento um-para-um dos escopos? Quando você deve abrir e fechar uma "
+"<literal>Session</literal> e como você demarca os limites da transação? "
+"Estas questões estão endereçadas nas seguintes seções."
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
msgstr "Unidade de trabalho"
#. Tag: para
-#: transactions.xml:94
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
"described by Martin Fowler as <quote> [maintaining] a list of objects "
@@ -165,14 +259,24 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
+"Primeiro, vamos definir uma unidade de trabalho. Uma unidade de trabalho é "
+"um padrão de design descrito por Martin Fowler como <quote> [maintaining] a "
+"list of objects affected by a business transaction and coordinates the "
+"writing out of changes and the resolution of concurrency problems. </"
+"quote><citation>PoEAA</citation> Em outras palavras, é uma série de "
+"operações que desejamos cuidar junto ao banco de dados. Basicamente, é uma "
+"transação, que apesar de completar uma unidade de trabalho, sempre "
+"distribuirá transações de banco de dados fÃsico múltiplos (consulte <xref "
+"linkend=\"transactions-basics-apptx\"/>). Portanto, estamos conversando "
+"sobre uma noção mais abstrata da transação. O termo \"transação comercial\" "
+"é também usada em acúmulo na unidade de trabalho. "
#. Tag: para
-#: transactions.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
"not open and close a <literal>Session</literal> for every simple database "
@@ -188,26 +292,25 @@
"clearly defined unit of work. The latter is also more maintainable and "
"extensible."
msgstr ""
-"Primeiro, não use o antipattern <emphasis>sessão-por-operação</emphasis>, "
-"isto é, não abra e não feche uma <literal>Session</literal> para cada "
-"simples chamada ao banco de de dados em uma única thread! Naturalmente, o "
-"mesmo é verdadeiro para transações. As chamadas a banco de dados em uma "
+"Primeiro, não use o antipattern <emphasis>sessão-por-operação</emphasis>: "
+"isto é, não abra e feche uma <literal>Session</literal> para cada simples "
+"chamada ao banco de dados em uma única thread. Naturalmente, o mesmo se "
+"aplica às transações do banco de dados. As chamadas ao banco de dados em uma "
"aplicação são feitas usando uma seqüência planejada, elas são agrupadas em "
-"unidades de trabalho atômicas. (Veja que isso também significa que um auto-"
-"commit depois de cada sentença SQL é inútil em uma aplicação, esta "
+"unidades de trabalho atômicas. Veja que isso também significa que realizar "
+"um auto-commit depois de cada instrução SQL é inútil em uma aplicação, esta "
"modalidade é ideal para o trabalho ad hoc do console do SQL. O Hibernate "
-"impede, ou espera que o servidor de aplicação impessa isso, o uso da "
-"modalidade de auto-commit.) As transações nunca são opcionais, toda a "
-"comunicação com um banco de dados tem que ocorrer dentro de uma transação, "
-"não importa se você vai ler ou escrever dados. Como explicado, o "
-"comportamento auto-commit para leitura de dados deve ser evitado, como "
-"muitas transações pequenas são improváveis de executar melhor do que uma "
-"unidade claramente definida do trabalho. A última opção também muito mais "
-"manutenÃvel e extensÃvel."
+"impede, ou espera que o servidor de aplicação impessa isso, aplique a "
+"modalidade auto-commit imediatamente. As transações de banco de dados nunca "
+"são opcionais, toda a comunicação com um banco de dados tem que ocorrer "
+"dentro de uma transação, não importa se você vai ler ou escrever dados. Como "
+"explicado, o comportamento auto-commit para leitura de dados deve ser "
+"evitado, uma vez que muitas transações pequenas são improváveis de executar "
+"melhor do que uma unidade de trabalho claramente definida. A última opção é "
+"também muito mais sustentável e expandida."
#. Tag: para
-#: transactions.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
"<emphasis>session-per-request</emphasis>. In this model, a request from the "
@@ -220,21 +323,20 @@
"literal>. The relationship between the two is one-to-one and this model is a "
"perfect fit for many applications."
msgstr ""
-"O pattern mais comum em uma aplicação multi-usuário cliente/servidor é "
+"O modelo mais comum em uma aplicação de cliente/servidor multi-usuário é "
"<emphasis>sessão-por-requisição</emphasis>. Neste modelo, uma requisição do "
-"cliente é enviada ao servidor (onde a camada de persistência do Hibernate "
-"roda), uma <literal>Session</literal> nova do Hibernate é aberta, e todas as "
-"operações da base de dados são executadas nesta unidade do trabalho. Logo "
-"que o trabalho for completado (e a resposta para o cliente for preparada), a "
-"sessão é descarregad e fechada. Você usaria também uma única transação de "
-"base de dados para servir às requisições dos clientes, começando e "
-"commitando-o quando você abre e fecha a <literal>Session</literal>. O "
+"cliente é enviada ao servidor, onde a camada de persistência do Hibernate é "
+"executada, uma <literal>Session</literal> nova do Hibernate é aberta, e "
+"todas as operações da base de dados são executadas nesta unidade do "
+"trabalho. Logo que o trabalho for completado, e a resposta para o cliente "
+"for preparada, a sessão é descarregada e fechada. Você usaria também uma "
+"única transação de base de dados para servir às requisições dos clientes, "
+"iniciando e submetendo-o ao abrir e fechar da <literal>Session</literal>. O "
"relacionamento entre os dois é um-para-um e este modelo é um ajuste perfeito "
"para muitas aplicações."
#. Tag: para
-#: transactions.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
"management of the \"current session\" to simplify this pattern. Start a "
@@ -248,40 +350,38 @@
"use the Hibernate <literal>Transaction</literal> API shown later in this "
"chapter."
msgstr ""
-"O desafio encontra-se na implementação. O Hibernate fornece gerência "
-"integrada da \"sessão atual\" para simplificar este pattern. Tudo que você "
-"tem que fazer é iniciar uma transação quando uma requisição tem que ser "
-"processada e termina a transação antes que a resposta seja enviada ao "
+"O desafio encontra-se na implementação. O Hibernate fornece gerenciamento "
+"integrado da \"sessão atual\" para simplificar este modelo. Tudo que você "
+"tem a fazer é iniciar uma transação quando uma requisição precisa ser "
+"processada e terminar a transação antes que a resposta seja enviada ao "
"cliente. Você pode fazer onde quiser, soluções comuns são "
"<literal>ServletFilter</literal>, interceptador AOP com um pointcut (ponto "
-"de corte) nos métodos de serviço ou em um container de proxy/interceptação. "
-"Um container de EJB é uma maneira padronizada para implementar aspectos "
-"cross-cutting tais como a demarcação da transação em EJB session beans, "
+"de corte) nos métodos de serviço ou em um recipiente de proxy/interceptação. "
+"Um recipiente de EJB é uma maneira padronizada de implementar aspectos cross-"
+"cutting, tais como a demarcação da transação em beans de sessão EJB, "
"declarativamente com CMT. Se você se decidir usar demarcação programática de "
-"transação, de preferencia a API <literal>Transaction</literal> do Hibernate "
-"mostrada mais adiante neste capÃtulo, para fácilidade no uso e portabilidade "
-"de código."
+"transação, dê preferência à API <literal>Transaction</literal> do Hibernate "
+"mostrada mais adiante neste capÃtulo, para facilidade no uso e portabilidade "
+"de código. "
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
"Seu código de aplicação pode acessar a \"sessão atual\" para processar a "
"requisição fazendo uma chamada simples a <literal>sessionFactory."
-"getCurrentSession()</literal> em qualquer lugar e com a frequencia "
+"getCurrentSession()</literal> em qualquer lugar e com a freqüência "
"necessária. Você sempre conseguirá uma <literal>Session</literal> limitada a "
-"transação atual. Isto tem que ser configurado para recurso local ou os "
-"ambientes JTA. Veja <xref linkend=\"architecture-current-session\"/>."
+"transação atual. Isto tem que ser configurado para recurso local ou para "
+"ambientes JTA. Veja <xref linkend=\"architecture-current-session\"/>. "
#. Tag: para
-#: transactions.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
"transaction until the \"view has been rendered\". This is especially useful "
@@ -293,27 +393,25 @@
"of any view can start. See the Hibernate website and forum for tips and "
"examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
-"Ãs vezes é conveniente estender o escopo de uma <literal>Session</literal> e "
-"de uma transação do banco de dados até que a \"visão esteja renderizada\". à "
-"especialmente útil em aplicações servlet que utilizam uma fase de "
-"rendenderização separada depois que a requisição ter sido processada. "
-"Estendendo a transação até que renderização da visão esteja completa é fácil "
-"de fazer se você implementar seu próprio interceptador. Entretanto, não se "
-"pode fazer facilmente se você confiar em EJBs com transações gerenciadas por "
-"contêiner, porque uma transação será terminada quando um método de EJB "
-"retornar, antes da renderização de toda visão puder começar. Veja o website "
-"e o fórum do Hibernate para dicas e exemplos em torno deste pattern "
-"<emphasis>Open Session in View</emphasis>."
+"Ãs vezes, é conveniente estender o escopo de uma <literal>Session</literal> "
+"e de uma transação do banco de dados até que a \"visão esteja renderizada\". "
+"à especialmente útil em aplicações servlet que utilizam uma fase de "
+"renderização separada depois da requisição ter sido processada. Estender a "
+"transação até que a renderização da visão esteja completa é fácil de fazer "
+"se você implementar seu próprio interceptador. Entretanto, não será fácil se "
+"você confiar em EJBs com transações gerenciadas por recipiente, porque uma "
+"transação será terminada quando um método de EJB retornar, antes que a "
+"renderização de toda visão possa começar. Veja o website e o fórum do "
+"Hibernate para dicas e exemplos em torno deste modelo de <emphasis>Sessão "
+"Aberta na Visualização</emphasis>."
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr "Longas conversações"
#. Tag: para
-#: transactions.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
"work. Many business processes require a whole series of interactions with "
@@ -321,53 +419,49 @@
"applications, it is not acceptable for a database transaction to span a user "
"interaction. Consider the following example:"
msgstr ""
-"O pattern sessão-por-requisição não é o único conceito útil que você pode "
+"O modelo sessão-por-requisição não é o único conceito útil que você pode "
"usar ao projetar unidades de trabalho. Muitos processos de negócio requerem "
-"uma totalidade de séries de interações com o usuário intercaladas com "
-"acessos a uma base de dados. Em aplicações web e corporativas não é "
-"aceitável para uma transação atrapalhe uma interação do usuário. Considere o "
+"uma totalidade de séries de interações com o usuário, intercaladas com "
+"acessos a uma base de dados. Em aplicações da web e corporativas não é "
+"aceitável que uma transação atrapalhe uma interação do usuário. Considere o "
"seguinte exemplo:"
#. Tag: para
-#: transactions.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
"loaded in a particular <literal>Session</literal> and database transaction. "
"The user is free to modify the objects."
msgstr ""
-"A primeira tela de um diálogo abre os dados carregado pelo usuário em "
-"através de <literal>Session</literal> e transação particulares. O usuário "
-"está livre modificar os objetos."
+"A primeira tela de um diálogo se abre e os dados vistos pelo usuário são "
+"carregados em uma <literal>Session</literal> e transação de banco de dados "
+"particulares. O usuário está livre para modificar os objetos. "
#. Tag: para
-#: transactions.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
"be made persistent. The user also expects that they were the only person "
"editing this information and that no conflicting modification has occurred."
msgstr ""
"O usuário clica em \"Salvar\" após 5 minutos e espera suas modificações "
-"serem persistidas; espera também que ele era a única pessoa que edita esta "
-"informação e que nenhuma modificação conflitante possa ocorrer."
+"serem persistidas. O usuário também espera que ele seja a única pessoa que "
+"edita esta informação e que nenhuma modificação conflitante possa ocorrer."
#. Tag: para
-#: transactions.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
"<emphasis>conversation</emphasis> or <emphasis>application transaction</"
"emphasis>. There are many ways to implement this in your application."
msgstr ""
-"Nós chamamos esta unidade de trabalho, do ponto da visão do usuário, "
-"executando uma longa <emphasis>conversação</emphasis> (ou "
-"<emphasis>transação da aplicação</emphasis>). Há muitas maneiras de você "
-"pode implementar em sua aplicação."
+"Nós chamamos esta unidade de trabalho, do ponto da visão do usuário, uma "
+"<emphasis>conversação</emphasis> de longa duração (ou <emphasis>transação da "
+"aplicação</emphasis>). Há muitas maneiras de você implementar em sua "
+"aplicação. "
#. Tag: para
-#: transactions.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
"database transaction open during user think time, with locks held in the "
@@ -375,16 +469,15 @@
"atomicity. This is an anti-pattern, since lock contention would not allow "
"the application to scale with the number of concurrent users."
msgstr ""
-"Uma primeira implementação simples pode manter a<literal>Session</literal> e "
-"a transação aberta durante o tempo de interação do usuário, com bloqueios na "
-"base de dados para impedir a modificação concorrente e para garantir o "
-"isolamento e a atomicidade. Esse é naturalmente um anti-pattern, desde que a "
-"disputa do bloqueio não permitiria o escalonameneto da aplicação com o "
+"Uma primeira implementação simples pode manter a <literal>Session</literal> "
+"e a transação aberta durante o tempo de interação do usuário, com bloqueios "
+"na base de dados para impedir a modificação concorrente e para garantir o "
+"isolamento e a atomicidade. Esse é naturalmente um anti-pattern, uma vez que "
+"a disputa do bloqueio não permitiria o escalonameneto da aplicação com o "
"número de usuários concorrentes."
#. Tag: para
-#: transactions.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
"In this case, maintaining isolation of business processes becomes the "
@@ -395,34 +488,32 @@
"several request/response cycles). This is easier to implement than it might "
"sound, especially if you utilize some of Hibernate's features:"
msgstr ""
-"Claramente, nós temos que usar diversas transações para implementar a "
-"conversação. Neste caso, Manter o isolamento dos processos de negócio torna-"
+"Claramente, temos que usar diversas transações para implementar a "
+"conversação. Neste caso, manter o isolamento dos processos de negócio, torna-"
"se responsabilidade parcial da camada da aplicação. Uma única conversação "
"geralmente usa diversas transações. Ela será atômica se somente uma destas "
"transações (a última) armazenar os dados atualizados, todas as outras "
"simplesmente leram os dados (por exemplo em um diálogo do estilo wizard que "
"mede diversos ciclos de requisição/resposta). Isto é mais fácil de "
-"implementar do que pode parecer, especialmente se você usar as "
-"caracterÃsticas do Hibernate:"
+"implementar do parece, especialmente se você usar as caracterÃsticas do "
+"Hibernate: "
#. Tag: para
-#: transactions.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
"optimistic concurrency control for you. It can automatically detect if a "
"concurrent modification occurred during user think time. Check for this at "
"the end of the conversation."
msgstr ""
-"<emphasis>Versionamento automático</emphasis> - O Hibernate pode fazer o "
+"<emphasis>Versionamento automático</emphasis>: o Hibernate pode fazer o "
"controle automático de concorrência otimista para você, ele pode "
"automaticamente detectar se uma modificação concorrente ocorreu durante o "
"tempo de interação do usuário. Geralmente nós verificamos somente no fim da "
-"conversação."
+"conversação. "
#. Tag: para
-#: transactions.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
"<emphasis>session-per-request</emphasis> pattern, all loaded instances will "
@@ -431,17 +522,16 @@
"<emphasis>session-per-request-with-detached-objects</emphasis>. Automatic "
"versioning is used to isolate concurrent modifications."
msgstr ""
-"<emphasis>Detached Objects</emphasis>- se você se decidir usar o já "
-"discutido pattern <emphasis>session-per-request</emphasis>, todas as "
+"<emphasis>Objetos Desanexados</emphasis>: se você se decidir usar o já "
+"discutido pattern <emphasis>sessão-por-solicitação</emphasis>, todas as "
"instâncias carregadas estarão no estado destacado durante o tempo em que o "
-"usuário estiver pensando. O Hibernate permite que você reatache os objetos e "
-"persita as modificações, esse pattern é chamado <emphasis>session-per-"
-"request-with-detached-objects</emphasis>. Ã usado versionamento automatico "
-"para isolar as modificações concorrentes."
+"usuário estiver pensando. O Hibernate permite que você re-anexe os objetos e "
+"persista as modificações, esse pattern é chamado <emphasis>sessão-por-"
+"solicitação-com-objetos-desanexados</emphasis>. Utiliza-se versionamento "
+"automático para isolar as modificações concorrentes."
#. Tag: para
-#: transactions.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
"<literal>Session</literal> can be disconnected from the underlying JDBC "
@@ -452,38 +542,35 @@
"<literal>Session</literal> will not be allowed to be flushed automatically, "
"but explicitly."
msgstr ""
-"<emphasis>Extended (or Long) Session</emphasis> A <literal>Session</literal> "
-"do Hibernate pode ser desligada da conexão básica do JDBC depois que a "
-"transação foi commitada e ser reconectado quando uma nova requisição do "
-"cliente ocorrer. Este pattern é conhecido como <emphasis>session-per-"
-"conversation</emphasis> e faz o reatamento uniforme desnecessário. "
+"<emphasis>Sessão Estendida (ou Longa)</emphasis> A <literal>Session</"
+"literal> do Hibernate pode ser desligada da conexão adjacente do JDBC depois "
+"que a transação foi submetida, e ser reconectada quando uma nova requisição "
+"do cliente ocorrer. Este pattern é conhecido como <emphasis>sessão-por-"
+"conversação</emphasis> e faz o reatamento uniforme desnecessário. "
"Versionamento automático é usado para isolar modificações concorrentes e a "
-"<emphasis>session-per-conversation</emphasis> usualmente não é permitido "
-"para ser nivelado automaticamente, e sim explicitamente."
+"<emphasis>sessão-por-conversação</emphasis> geralmente pode ser nivelada "
+"automaticamente, e sim explicitamente. "
#. Tag: para
-#: transactions.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
"<emphasis>session-per-conversation</emphasis> have advantages and "
"disadvantages. These disadvantages are discussed later in this chapter in "
"the context of optimistic concurrency control."
msgstr ""
-"Ambos <emphasis>session-per-request-with-detached-objects</emphasis> e "
-"<emphasis>session-per-conversation</emphasis> possuem vantagens e "
-"desvantagens, nos discutiremos mais tarde neste capÃtulo no contexto do "
-"controle de concorrência otimista."
+"Tanto a <emphasis>sessão-por-solicitação-com-objetos-desanexados</emphasis> "
+"quanto a <emphasis>sessão-por-conversação</emphasis> possuem vantagens e "
+"desvantagens. Estas desvantagens serão discutidas mais tarde neste capÃtulo "
+"no contexto do controle de concorrência otimista. "
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
msgstr "Considerando a identidade do objeto"
#. Tag: para
-#: transactions.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
"different <literal>Session</literal>s. However, an instance of a persistent "
@@ -493,36 +580,31 @@
"Uma aplicação pode acessar concorrentemente o mesmo estado persistente em "
"duas <literal>Session</literal>s diferentes. Entretanto, uma instância de "
"uma classe persistente nunca é compartilhada entre duas instâncias "
-"<literal>Session</literal>. Por tanto, há duas noções diferentes da "
-"identidade:"
+"<literal>Session</literal>. Portanto, há duas noções diferentes da "
+"identidade: "
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr "Identidade da base de dados"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
-msgstr "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
+msgstr "<literal>foo.getId().equals( bar.getId() )</literal>"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr "Identidade da JVM"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr "<literal>foo==bar</literal>"
#. Tag: para
-#: transactions.xml:295
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
"literal> (i.e., in the scope of a <literal>Session</literal>), the two "
@@ -533,19 +615,18 @@
"resolved using an optimistic approach and automatic versioning at flush/"
"commit time."
msgstr ""
-"Então para os objetos acoplados a um <literal>Session</literal> em "
-"<literal>particular </literal> (isto é no escopo de um <literal>Session</"
-"literal>), as duas noções são equivalentes e a identidade da JVM para a "
-"identidade da base de dados é garantida pelo Hibernate. Entretanto, quando a "
-"aplicação pode acessar concorrentemente o \"mesmo\" objeto do negócio "
-"(identidade persistente) em duas sessões diferentes, as duas instâncias "
-"serão realmente \"diferentes\" (identidade de JVM). Os conflitos são "
-"resolvidos usando (versionamento automático) no flush/commit, usando "
-"abordagem otimista."
+"Então para os objetos acoplados a uma <literal>Session</literal> "
+"<emphasis>especÃfica</emphasis> (ex.: isto está no escopo de uma "
+"<literal>Session</literal>), as duas noções são equivalentes e a identidade "
+"da JVM para a identidade da base de dados é garantida pelo Hibernate. "
+"Entretanto, embora a aplicação possa acessar concorrentemente o \"mesmo\" "
+"objeto do negócio (identidade persistente) em duas sessões diferentes, as "
+"duas instâncias serão realmente \"diferentes\" (identidade de JVM). Os "
+"conflitos são resolvidos usando (versionamento automático) no flush/commit, "
+"usando uma abordagem otimista."
#. Tag: para
-#: transactions.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
"It also provides the best scalability, since guaranteeing identity in single-"
@@ -555,18 +636,17 @@
"<literal>Session</literal>. Within a <literal>Session</literal> the "
"application can safely use <literal>==</literal> to compare objects."
msgstr ""
-"Este caminho deixa o Hibernate e o banco dedados se preocuparem com a "
-"concorrência; também fornece uma escalabilidade melhor, garantindo que a "
-"identidade em unidades de trabalho único-encadeadas não necessite de "
-"bloqueio dispendioso ou de outros meios de sincronização. A aplicação nunca "
-"necessita sincronizar qualquer objeto de negócio tão longo que transpasse "
-"uma única thread por <literal>Session</literal>. Dentro de uma "
-"<literal>Session</literal> a aplicação pode usar com segurança o "
-"<literal>==</literal> para comparar objetos."
+"Este caminho deixa o Hibernate e o banco de dados se preocuparem com a "
+"concorrência. Ele também fornece uma escalabilidade melhor, garantindo que a "
+"identidade em unidades de trabalho single-threaded não necessite de bloqueio "
+"dispendioso ou de outros meios de sincronização. A aplicação nunca necessita "
+"sincronizar qualquer objeto de negócio tão longo que transpasse uma única "
+"thread por <literal>Session</literal>. Dentro de uma <literal>Session</"
+"literal> a aplicação pode usar com segurança o <literal>==</literal> para "
+"comparar objetos. "
#. Tag: para
-#: transactions.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
"<literal>Session</literal> might produce unexpected results. This might "
@@ -589,37 +669,36 @@
"that this is not a Hibernate issue, but simply how Java object identity and "
"equality has to be implemented."
msgstr ""
-"Com tudo, uma aplicação que usa <literal>==</literal> fora de uma "
+"No entanto, uma aplicação que usa <literal>==</literal> fora de uma "
"<literal>Session</literal>, pode ver resultados inesperados. Isto pode "
"ocorrer mesmo em alguns lugares inesperados, por exemplo, se você colocar "
-"duas instâncias desacopladas em um mesmo <literal>Set</literal>. Ambos podem "
-"ter a mesma identidade na base de dados (isto é eles representam a mesma "
-"linha em uma tabela), mas a identidade da JVM pela definição não garantida "
-"para instâncias em estado desacoplado. O desenvolvedor tem que sobrescrever "
-"os métodos <literal>equals()</literal> e <literal>hashCode()</literal> em "
+"duas instâncias desacopladas em um mesmo <literal>Set</literal>. Ambas podem "
+"ter a mesma identidade na base de dados (ex.: elas representam a mesma "
+"linha), mas a identidade da JVM não é, por definição, garantida para "
+"instâncias em estado desacoplado. O desenvolvedor tem que substituir os "
+"métodos <literal>equals()</literal> e <literal>hashCode()</literal> em "
"classes persistentes e implementar sua própria noção da igualdade do objeto. "
"Advertência: nunca use o identificador da base de dados para implementar a "
"igualdade, use atributos de negócio, uma combinação única, geralmente "
"imutável. O identificador da base de dados mudará se um objeto transiente "
"passar para o estado persistente. Se a instância transiente (geralmente "
"junto com instâncias desacopladas) for inserida em um <literal>Set</"
-"literal>, mudar o hashcode quebra o contrato do <literal>Set</literal>. "
-"Atributos para chaves de negócio não têm que ser tão estável quanto às "
-"chaves primárias da base de dados, você somente tem que garantir a "
-"estabilidade durante o tempo que os objetos estiverem no mesmo Set. Veja o "
-"website do Hibernate para uma discussão mais completa sobre o assunto. Note "
-"também que esta não é uma caracteristica do Hibernate, mas simplesmente como "
-"a identidade e a igualdade do objeto de Java têm que ser implementadas."
+"literal>, a mudança do hashcode quebrará o contrato do <literal>Set</"
+"literal>. As funções para chaves de negócio não têm que ser tão estável "
+"quanto às chaves primárias da base de dados, você somente tem que garantir a "
+"estabilidade durante o tempo que os objetos estiverem no mesmo <literal>Set</"
+"literal>. Veja o website do Hibernate para uma discussão mais completa sobre "
+"o assunto. Note também que esta não é uma caracterÃstica do Hibernate, mas "
+"simplesmente a maneira como a identidade e a igualdade do objeto de Java têm "
+"que ser implementadas. "
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr "Edições comuns"
#. Tag: para
-#: transactions.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
"or <emphasis>session-per-application</emphasis> (there are, however, rare "
@@ -627,15 +706,14 @@
"within the recommended patterns, so ensure that you understand the "
"implications before making a design decision:"
msgstr ""
-"Nunca use o anti-patterns <emphasis>session-per-user-session</emphasis> ou "
-"<emphasis>session-per-application</emphasis> (naturalmente, há umas exceções "
-"raras a essa regra). Note que algumas das seguintes edições podem também "
-"aparecer com patterns recomendados, certifique-se que tenha compreendido as "
-"implicações antes de fazer uma decisão de projeto:"
+"Nunca use o anti-patterns <emphasis>sessão-por-usuário-sessão</emphasis> ou "
+"<emphasis>sessão-por-aplicação</emphasis> (naturalmente, existem exceções "
+"raras para essa regra). Note que algumas das seguintes edições podem também "
+"aparecer com modelos recomendados, certifique-se que tenha compreendido as "
+"implicações antes de fazer uma decisão de projeto: "
#. Tag: para
-#: transactions.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
"concurrently, like HTTP requests, session beans, or Swing workers, will "
@@ -647,18 +725,16 @@
"in two concurrently running threads."
msgstr ""
"Uma <literal>Session</literal> não é threadsafe. As coisas que são supostas "
-"para trabalhar concorrentemente, como requisições HTTP, session beans, ou "
+"para trabalhar concorrentemente, como requisições HTTP, beans de sessão, ou "
"Swing, causarão condições de disputa se uma instância <literal>Session</"
"literal> for compartilhada. Se você mantiver sua <literal>Session</literal> "
"do Hibernate em seu <literal>HttpSession</literal> (discutido mais tarde), "
-"você deve considerar sincronizar o acesso a sua sessão do HTTP. Caso "
-"contrário, um usuário que clica em reload várias muito rapidamente pode usar "
-"o mesmo <literal>Session</literal> em duas threads executando "
-"concorrentemente."
+"você deverá considerar sincronizar o acesso a sua sessão do HTTP. Caso "
+"contrário, um usuário que clica em recarga rápido demais, pode usar o mesmo "
+"<literal>Session</literal> em duas threads executando simultaneamente. "
#. Tag: para
-#: transactions.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
"transaction and close the <literal>Session</literal> immediately (this is "
@@ -673,15 +749,14 @@
"Uma exceção lançada pelo Hibernate significa que você tem que dar rollback "
"na sua transação no banco de dados e fechar a <literal>Session</literal> "
"imediatamente (discutido mais tarde em maiores detalhes). Se sua "
-"<literal>Session</literal> é limitado pela aplicação, você tem que parar a "
-"aplicação. Dando rollback na transação no banco de dados não põe seus "
-"objetos do negócio em um estado anterior que estavam no inÃcio da transação. "
-"Isto significa que o estado da base de dados e os objetos de negócio perdem "
-"a sincronização. Geralmente não é um problema porque as exceções não são "
-"recuperáveis e você tem que iniciar após o rollback de qualquer maneira."
+"<literal>Session</literal> é limitada pela aplicação, você tem que parar a "
+"aplicação. Fazer o rollback na transação no banco de dados não retorna seus "
+"objetos do negócio ao estado que estavam no inÃcio da transação. Isto "
+"significa que o estado da base de dados e os objetos de negócio perdem a "
+"sincronização. Geralmente, não é um problema porque as exceções não são "
+"recuperáveis e você tem que iniciar após o rollback de qualquer maneira. "
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -690,31 +765,29 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
-"O <literal>Session</literal> guarda em cache cada objeto que está no estado "
-"persistente (guardado e checado para estado \"sujo\" pelo Hibernate). Isto "
-"significa que ele cresce infinitamente até que você obtenha uma "
-"OutOfMemoryException, se você o mantiver aberto por muito tempo ou "
-"simplesmente carregar dados demais. Uma solução é chamar <literal>clear()</"
-"literal> e <literal>evict()</literal> para controlar o cache da "
-"<literal>Session</literal>, mas você deve considerar uma Store Procedure se "
-"precisar de operações que envolvam grande volume de dados. Algumas soluções "
-"são mostradas no <xref linkend=\"batch\"/>. Manter uma <literal>Session</"
-"literal> aberta durante uma sessão do usuário significa também uma "
-"probabilidade elevada de se acabar com dados velhos."
+"A <literal>Session</literal> obtém cada objeto que se encontra o estado "
+"persistente (assistido e checado para o estado dirty do Hibernate). Isto "
+"significa o crescimento contÃnuo até chegar a um OutOfMemoryException, caso "
+"você mantenha isto aberto por um longo perÃodo ou simplesmente carregue "
+"muitos dados. Para resolver este problema, chame <literal>clear()</literal> "
+"e <literal>evict()</literal> para gerenciar o cache da <literal>Session</"
+"literal>, mas você ainda deve considerar a possibilidade de um Procedimento "
+"Armazenado, caso precise de operações de dados em massa. Algumas soluções "
+"poderão ser encontradas em <xref linkend=\"batch\"/>. Se você mantiver uma "
+"<literal>Session</literal> aberta durante todo o tempo da sessão do usuário, "
+"terá maior probabilidade de obter dados danificados. "
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
msgstr "Demarcação de transações de bancos de dados"
#. Tag: para
-#: transactions.xml:388
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
"communication with the database can occur outside of a database transaction "
@@ -725,20 +798,19 @@
"transactions explicitly. Certainly, a single database transaction is going "
"to perform better than many small transactions, even for reading data."
msgstr ""
-"Os limites de uma transação de banco de dados (ou sistema) são sempre "
+"Os limites de uma transação de banco de dados, ou sistema, são sempre "
"necessários. Nenhuma comunicação com o banco de dados pode ocorrer fora de "
"uma transação de banco de dados (isto parece confundir muitos "
-"desenvolvedores que estão usados modo auto-commit). Sempre use os limites "
-"desobstruÃdos da transação, até mesmo para operações somente leitura. "
-"Dependendo de seu nÃvel de isolamento e capacidade da base de dados isto "
-"pode não ser requerido, mas não há nenhum aspecto negativo se você demarca "
-"sempre transações explicitamente. Certamente, uma única transação será "
-"melhor executada do que muitas transações pequenas, até mesmo para dados de "
-"leitura."
+"desenvolvedores que estão acostumados ao modo auto-commit). Sempre use os "
+"limites desobstruÃdos da transação, até mesmo para operações somente "
+"leitura. Dependendo de seu nÃvel de isolamento e capacidade da base de dados "
+"isto pode não ser requerido, mas não há nenhum aspecto negativo se você "
+"sempre demarcar transações explicitamente. Certamente, uma única transação "
+"será melhor executada do que muitas transações pequenas, até mesmo para "
+"dados de leitura. "
#. Tag: para
-#: transactions.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
"Web- or Swing applications) and managed J2EE environments. In a non-managed "
@@ -751,19 +823,17 @@
"demarcation is then no longer necessary."
msgstr ""
"Uma aplicação do Hibernate pode funcionar em ambientes não gerenciados (isto "
-"é aplicações standalone, Web simples ou Swing) e ambientes gerenciados J2EE. "
-"Em um ambiente não gerenciado, o Hibernate é geralmente responsável pelo seu "
-"próprio pool de conexões. O desenvolvedor tem que manualmente ajustar "
-"limites das transaçãos, ou seja, começar, commitar, ou dar rollback nas "
-"transações ele mesmo. Um ambiente gerenciado fornece transações gerenciadas "
-"por contêiner (CMT - container-managed transactions), com um conjunto da "
-"transações definido declarativamente em descritores de deployment de EJB "
-"session beans, por exemplo. A demarcação programática é então já não é "
-"necessário."
+"é, aplicações standalone, Web simples ou Swing) e ambientes gerenciados "
+"J2EE. Em um ambiente não gerenciado, o Hibernate é geralmente responsável "
+"pelo seu próprio pool de conexões. O desenvolvedor, precisa ajustar "
+"manualmente os limites das transaçãos, ou seja, começar, submeter ou efetar "
+"rollback nas transações ele mesmo. Um ambiente gerenciado fornece transações "
+"gerenciadas por recipiente (CMT), com um conjunto da transações definido "
+"declarativamente em descritores de implementação de beans de sessão EJB, por "
+"exemplo. A demarcação programática é portanto, não mais necessária."
#. Tag: para
-#: transactions.xml:408
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
"between non-managed resource-local environments, and systems that can rely "
@@ -775,66 +845,59 @@
msgstr ""
"Entretanto, é freqüentemente desejável manter sua camada de persistência "
"portável entre ambientes de recurso locais não gerenciados e sistemas que "
-"podem confiar em JTA, mas usar BMT em vez de CMT. Em ambos os casos você "
+"podem confiar em JTA, mas use BMT ao invés de CMT. Em ambos os casos você "
"usaria demarcação de transação programática. O Hibernate oferece uma API "
"chamada Transaction que traduz dentro do sistema de transação nativa de seu "
-"ambiente de deployment. Esta API é realmente opcional, mas nós encorajamos "
-"fortemente seu uso a menos que você estiver em um CMT session bean."
+"ambiente de implementação. Esta API é realmente opcional, mas nós "
+"encorajamos fortemente seu uso a menos que você esteja em um bean de sessão "
+"CMT. "
#. Tag: para
-#: transactions.xml:417
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
msgstr ""
-"Geralmente, finalizar um <literal>Session</literal>envolve quatro fases "
+"Geralmente, finalizar uma <literal>Session</literal> envolve quatro fases "
"distintas:"
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
-msgstr "flush da sessão"
+msgstr "liberar a sessão"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
-msgstr "commitar a transação"
+msgstr "submeter a transação"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
msgstr "fechar a sessão"
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr "tratar as exceções"
#. Tag: para
-#: transactions.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
"at transaction demarcation and exception handling in both managed and non-"
"managed environments."
msgstr ""
-"A limpeza da sessão já foi bem discutida, agora nós daremos uma olhada na "
+"A liberação da sessão já foi bem discutida, agora nós daremos uma olhada na "
"demarcação da transação e na manipulação de exceção em ambientes controlados "
-"e não controlados."
+"e não controlados. "
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
msgstr "Ambiente não gerenciado"
#. Tag: para
-#: transactions.xml:453
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
"connections are usually handled by simple (i.e., non-DataSource) connection "
@@ -843,36 +906,11 @@
msgstr ""
"Se uma camada de persistência do Hibernate roda em um ambiente não "
"gerenciado, as conexões do banco de dados são geralmente tratadas pelos "
-"pools de conexões simples (isto é, não baseados em DataSource) dos quais o "
-"Hibernate obtém as conexões assim que necessita. A maneira de se manipular "
-"uma sessão/transação é mais ou menos assim:"
+"pools de conexões simples (ex.: não DataSource) dos quais o Hibernate obtém "
+"as conexões assim que necessitar. A maneira de se manipular uma sessão/"
+"transação é mais ou menos assim:"
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -883,47 +921,26 @@
"literal> is that the JDBC connection will be relinquished by the session. "
"This Java code is portable and runs in both non-managed and JTA environments."
msgstr ""
-"Você não pode chamar <literal>flush()</literal> do <literal>Session()</"
-"literal> explicitamente - a chamada ao <literal>commit()</literal> dispara "
-"automaticamente a sincronização para a sessão (dependendo do <xref linkend="
-"\"objectstate-flushing\"> FlushMode</xref>). Uma chamada ao <literal>close()"
-"</literal> marca o fim de uma sessão. A principal implicação do "
-"<literal>close()</literal> é que a conexão JDBC será abandonada pela sessão. "
-"Este código Java é portável e funciona em ambientes não gerenciado e de JTA."
+"Você não pode chamar <literal>flush()</literal> da <literal>Session()</"
+"literal> explicitamente. A chamada ao <literal>commit()</literal> dispara "
+"automaticamente a sincronização para a sessão, dependendo do <xref linkend="
+"\"objectstate-flushing\"/>. Uma chamada ao <literal>close()</literal> marca "
+"o fim de uma sessão. A principal implicação do <literal>close()</literal> é "
+"que a conexão JDBC será abandonada pela sessão. Este código Java é portável "
+"e funciona em ambientes não gerenciados e de JTA. "
#. Tag: para
-#: transactions.xml:471
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
"\"current session\" context management:"
msgstr ""
-"Uma solução muito mais flexÃvel é gerência integrada de contexto da \"sessão "
-"atual\" do Hibernate, como descrito anteriormente:"
+"Uma solução muito mais flexÃvel é o gerenciamento de contexto \"sessão atual"
+"\" da construção interna do Hibernate, como descrito anteriormente: "
-#. Tag: programlisting
-#: transactions.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:478
-#, fuzzy, no-c-format
-msgid ""
"You will not see these code snippets in a regular application; fatal "
"(system) exceptions should always be caught at the \"top\". In other words, "
"the code that executes Hibernate calls in the persistence layer, and the "
@@ -935,17 +952,16 @@
msgstr ""
"Você muito provavelmente nunca verá estes fragmentos de código em uma "
"aplicação regular; as exceções fatais (do sistema) devem sempre ser pegas no "
-"\"alto\". Ou seja, o código que executa chamadas do Hibernate (na camada de "
+"\"topo\". Ou seja, o código que executa chamadas do Hibernate (na camada de "
"persistência) e o código que trata <literal>RuntimeException</literal> (e "
"geralmente pode somente limpar acima e na saÃda) estão em camadas "
"diferentes. O gerenciamento do contexto atual feito pelo Hibernate pode "
"significativamente simplificar este projeto, como tudo que você necessita é "
"do acesso a um <literal>SessionFactory</literal>. A manipulação de exceção é "
-"discutida mais tarde neste capÃtulo."
+"discutida mais tarde neste capÃtulo. "
#. Tag: para
-#: transactions.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
"literal>, which is the default, and for the second example select <literal>"
@@ -953,19 +969,17 @@
"current_session_context_class</literal>."
msgstr ""
"Note que você deve selecionar <literal>org.hibernate.transaction."
-"JDBCTransactionFactory</literal> (que é o padrão) e para o segundo exemplo "
+"JDBCTransactionFactory</literal>, que é o padrão, e para o segundo exemplo "
"<literal>\"thread\"</literal> como seu <literal>hibernate."
"current_session_context_class</literal>."
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
msgstr "Usando JTA"
#. Tag: para
-#: transactions.xml:499
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
"EJB session beans), every datasource connection obtained by Hibernate will "
@@ -974,112 +988,49 @@
"strategies for JTA integration."
msgstr ""
"Se sua camada de persistência funcionar em um servidor de aplicação (por "
-"exemplo, dentro dos EJB session beans), cada conexão do datasource obtida "
-"pelo Hibernate automaticamente fará parte da transação global de JTA. Você "
-"pode também instalar uma implementação standalone de JTA e usá-la sem EJB. O "
-"Hibernate oferece duas estratégias para a integração de JTA."
+"exemplo, dentro dos beans de sessão EJB), cada conexão da fonte de dados "
+"obtida pelo Hibernate automaticamente fará parte da transação global de JTA. "
+"Você pode também instalar uma implementação standalone de JTA e usá-la sem "
+"EJB. O Hibernate oferece duas estratégias para a integração de JTA. "
#. Tag: para
-#: transactions.xml:506
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
"application server to start and end a BMT transaction if you use the "
"<literal>Transaction</literal> API. The transaction management code is "
"identical to the non-managed environment."
msgstr ""
-"Se você usar bean-managed transactions (BMT - transações gerenciadas por "
-"bean) o Hibernate dirá ao servidor de aplicação para começar e para terminar "
-"uma transação de BMT se você usar a API Transaction. Assim, o código de "
-"gerência de transação é idêntico ao ambiente não gerenciado."
+"Se você usar transações de bean gerenciado (BMT) o Hibernate dirá ao "
+"servidor de aplicação para começar e para terminar uma transação de BMT se "
+"você usar a <literal>Transaction</literal> API. Assim, o código de gerência "
+"de transação é idêntico ao ambiente não gerenciado."
-#. Tag: programlisting
-#: transactions.xml:512
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:514
-#, fuzzy, no-c-format
-msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
"the <literal>getCurrentSession()</literal> functionality for easy context "
"propagation, use the JTA <literal>UserTransaction</literal> API directly:"
msgstr ""
-"Se você quiser usar um <literal>Session</literal> limitada por transação, "
+"Se você quiser usar uma <literal>Session</literal> limitada por transação, "
"isto é, a funcionalidade do <literal>getCurrentSession()</literal> para a "
"propagação fácil do contexto, você terá que usar diretamente a API JTA "
-"<literal>UserTransaction</literal>:"
+"<literal>UserTransaction</literal>: "
-#. Tag: programlisting
-#: transactions.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:522
-#, fuzzy, no-c-format
-msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
"descriptors, not programmatically. The code is reduced to:"
msgstr ""
-"Com CMT, a demarcação da transação é feita em descritores de deployment do "
-"session beans, não programaticamente, conseqüentemente, o código é reduzido "
-"a:"
+"Com CMT, a demarcação da transação é feita em descritores de implementação "
+"de beans de sessão, não programaticamente, conseqüentemente, o código é "
+"reduzido a: "
-#. Tag: programlisting
-#: transactions.xml:527
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:529
-#, fuzzy, no-c-format
-msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
"<literal>RuntimeException</literal> thrown by a session bean method tells "
"the container to set the global transaction to rollback. <emphasis>You do "
@@ -1087,17 +1038,16 @@
"BMT or CMT, and you get automatic propagation of the \"current\" Session "
"bound to the transaction.</emphasis>"
msgstr ""
-"Em um CMT/EJB mesmo um rollback acontece automaticamente, desde que uma "
-"exeção <literal>RuntimeException</literal> não tratável seja lançada por um "
-"método de um session bean que informa ao contêiner ajustar a transação "
-"global ao rollback. <emphasis>Isto significa que você não necessita usar a "
-"API <literal>Transaction</literal> do Hibernate em tudo com BMT ou CMT e "
-"você obtém a propagação automática do Session \"atual\" limitada à transação."
-"</emphasis>"
+"Em um CMT/EJB, até mesmo um rollback acontece automaticamente, desde que uma "
+"exceção <literal>RuntimeException</literal> não tratável seja lançada por um "
+"método de um bean de sessão que informa ao recipiente ajustar a transação "
+"global ao rollback. <emphasis>Isto significa que você não precisa mesmo usar "
+"a API <literal>Transaction</literal> do Hibernate com BMT ou CMT e você "
+"obterá a propagação automática da Sessão \"atual\" limitada à transação.</"
+"emphasis> "
#. Tag: para
-#: transactions.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
"hibernate.transaction.JTATransactionFactory</literal> if you use JTA "
@@ -1109,17 +1059,16 @@
msgstr ""
"Veja que você deverá escolher <literal>org.hibernate.transaction."
"JTATransactionFactory</literal> se você usar o JTA diretamente (BMT) e "
-"<literal>org.hibernate.transaction.CMTTransactionFactory</literal> em um CMT "
-"session bean, quando você configura a fábrica de transação do Hibernate. "
-"Lembre-se também de configurar o <literal>hibernate.transaction."
+"<literal>org.hibernate.transaction.CMTTransactionFactory</literal> em um "
+"bean de sessão CMT, quando você configura a fábrica de transação do "
+"Hibernate. Lembre-se também de configurar o <literal>hibernate.transaction."
"manager_lookup_class</literal>. Além disso, certifique-se que seu "
"<literal>hibernate.current_session_context_class</literal> ou não é "
-"configurado (compatibilidade com o legado) ou é definido para <literal>\"jta"
-"\"</literal>."
+"configurado (compatibilidade com o legado) ou está definido para <literal>"
+"\"jta\"</literal>. "
#. Tag: para
-#: transactions.xml:546
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
"JTA environment. There is one caveat to the use of <literal>after_statement</"
@@ -1144,19 +1093,17 @@
"Você <emphasis>deve</emphasis> liberar o cursor subjacente da base de dados "
"chamando <literal>ScrollableResults.close()</literal> ou <literal>Hibernate."
"close(Iterator)</literal> explicitamente de um bloco <literal>finally</"
-"literal>. (Claro que a maioria de aplicações podem facilmente evitar o uso "
+"literal>. Claro que a maioria das aplicações podem facilmente evitar o uso "
"do <literal>scroll()</literal> ou do <literal>iterate()</literal> em todo "
-"código provindo do JTA ou do CMT.)"
+"código provindo do JTA ou do CMT."
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "Tratamento de Exceção"
#. Tag: para
-#: transactions.xml:564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
"<literal>SQLException</literal>, immediately rollback the database "
@@ -1167,18 +1114,17 @@
"Ensure that the <literal>Session</literal> will be closed by calling "
"<literal>close()</literal> in a <literal>finally</literal> block."
msgstr ""
-"Se a <literal>Session</literal> levantar uma exceção (incluindo qualquer "
-"<literal>SQLException</literal>), você deve imediatamente dar um rollback na "
-"transação do banco, chamando <literal>Session.close()</literal> e "
+"Se a <literal>Session</literal> levantar uma exceção, incluindo qualquer "
+"<literal>SQLException</literal>, você deverá imediatamente dar um rollback "
+"na transação do banco, chamando <literal>Session.close()</literal> e "
"descartando a instância da <literal>Session</literal>. Certos métodos da "
"<literal>Session</literal><literal>não</literal> deixarão a sessão em um "
"estado inconsistente. Nenhuma exceção lançada pelo Hibernate pode ser "
"recuperada. Certifique-se que a <literal>Session</literal> será fechada "
-"chamando <literal>close()</literal> no bloco <literal>finally</literal>."
+"chamando <literal>close()</literal> no bloco <literal>finally</literal>. "
#. Tag: para
-#: transactions.xml:575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
"that can occur in a Hibernate persistence layer, is an unchecked exception. "
@@ -1193,19 +1139,18 @@
msgstr ""
"A exceção <literal>HibernateException</literal>, a qual envolve a maioria "
"dos erros que podem ocorrer em uma camada de persistência do Hibernate, é "
-"uma exceção unchecked ( não estava em umas versões mais antigas de "
-"Hibernate). Em nossa opinião, nós não devemos forçar o desenvolvedor a "
-"tratar uma exceção irrecuperável em uma camada mais baixa. Na maioria dos "
-"sistemas, as exceções unchecked e fatais são tratadas em um dos primeiros "
-"frames da pilha da chamada do método (isto é, em umas camadas mais elevadas) "
-"e uma mensagem de erro é apresentada ao usuário da aplicação (ou a alguma "
-"outra ação apropriada é feita). Note que Hibernate pode também lançar outras "
-"exceções unchecked que não são um <literal>HibernateException</literal>. "
-"Estas, também são, irrecuperáveis e uma ação apropriada deve ser tomada."
+"uma exceção não verificada. Ela não constava em versões mais antigas de "
+"Hibernate. Em nossa opinião, nós não devemos forçar o desenvolvedor a tratar "
+"uma exceção irrecuperável em uma camada mais baixa. Na maioria dos sistemas, "
+"as exceções não verificadas e fatais são tratadas em um dos primeiros frames "
+"da pilha da chamada do método (isto é, em umas camadas mais elevadas) e uma "
+"mensagem de erro é apresentada ao usuário da aplicação (ou alguma outra ação "
+"apropriada é feita). Note que Hibernate pode também lançar outras exceções "
+"não verificadas que não sejam um <literal>HibernateException</literal>. "
+"Estas, também são, irrecuperáveis e uma ação apropriada deve ser tomada. "
#. Tag: para
-#: transactions.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
"with the database in a <literal>JDBCException</literal>. In fact, Hibernate "
@@ -1224,77 +1169,71 @@
msgstr ""
"O Hibernate envolve <literal>SQLException</literal>s lançadas ao interagir "
"com a base de dados em um <literal>JDBCException</literal>. Na realidade, o "
-"Hibernate tentará converter a exceção em em uma sub classe mais "
-"significativa da <literal>JDBCException</literal>. A <literal>SQLException</"
-"literal> subjacente está sempre disponÃvel através de <literal>JDBCException."
-"getCause()</literal>. O Hibernate converte a <literal>SQLException</literal> "
-"em uma sub classe <literal>JDBCException</literal> apropriada usando "
-"<literal>SQLExceptionConverter</literal> associado ao SessionFactory. Por "
-"padrão, o <literal>SQLExceptionConverter</literal> é definido pelo dialeto "
-"configurado; entretanto, é também possÃvel conectar em uma implementação "
-"customizada (veja o javadoc para mais detalhes da classe "
-"<literal>SQLExceptionConverterFactory</literal>). Os subtipos padrão de "
-"<literal>JDBCException</literal> são:"
+"Hibernate tentará converter a exceção em uma subclasse mais significativa da "
+"<literal>JDBCException</literal>. A <literal>SQLException</literal> "
+"subjacente está sempre disponÃvel através de <literal>JDBCException.getCause"
+"()</literal>. O Hibernate converte a <literal>SQLException</literal> em uma "
+"subclasse <literal>JDBCException</literal> apropriada usando "
+"<literal>SQLExceptionConverter</literal> associado ao "
+"<literal>SessionFactory</literal>. Por padrão, o "
+"<literal>SQLExceptionConverter</literal> é definido pelo dialeto "
+"configurado. Entretanto, é também possÃvel conectar em uma implementação "
+"customizada. Veja o javadoc para mais detalhes da classe "
+"<literal>SQLExceptionConverterFactory</literal>. Os subtipos padrão de "
+"<literal>JDBCException</literal> são: "
#. Tag: para
-#: transactions.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
"underlying JDBC communication."
msgstr ""
-"<literal>JDBCConnectionException</literal> - indica um erro com a "
-"comunicação subjacente de JDBC."
+"<literal>JDBCConnectionException</literal>: indica um erro com a comunicação "
+"subjacente de JDBC."
#. Tag: para
-#: transactions.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
"problem with the issued SQL."
msgstr ""
-"<literal>SQLGrammarException</literal> - indica um problema da gramática ou "
-"da sintaxe com o SQL emitido."
+"<literal>SQLGrammarException</literal>: indica um problema da gramática ou "
+"da sintáxe com o SQL emitido."
#. Tag: para
-#: transactions.xml:615
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
"integrity constraint violation."
msgstr ""
-"<literal>ConstraintViolationException</literal> - indica algum forma de "
+"<literal>ConstraintViolationException</literal>: indica algum forma de "
"violação de confinamento de integridade."
#. Tag: para
-#: transactions.xml:621
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
"lock level necessary to perform the requested operation."
msgstr ""
-"<literal>LockAcquisitionException</literal> - indica um erro ao adquirir um "
+"<literal>LockAcquisitionException</literal>: indica um erro ao adquirir um "
"nÃvel de bloqueio necessário para realizar a operação de requisição."
#. Tag: para
-#: transactions.xml:627
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
"fall into any of the other categories."
msgstr ""
-"<literal>GenericJDBCException</literal> - uma exceção genérica que não cai "
-"em algumas das outras categorias."
+"<literal>GenericJDBCException</literal>: uma exceção genérica que não está "
+"inclusa em nenhuma das outras categorias."
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
-msgstr "Timeout de Transação"
+msgstr "Tempo de espera de Transação"
#. Tag: para
-#: transactions.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
"never provided for non-managed code, is transaction timeout. Transaction "
@@ -1307,62 +1246,35 @@
"transaction timeout to JTA. This functionality is abstracted by the "
"Hibernate <literal>Transaction</literal> object."
msgstr ""
-"Uma caracterÃstica extremamente importante fornecida por um ambiente "
-"gerenciado como EJB e que nunca é fornecido pelo código não gerenciado é o "
-"timeout de transação. Timeouts de transação asseguram que nenhuma transação "
-"possa reter indefinidamente recursos enquanto não retorna nenhuma resposta "
-"ao usuário. Fora de um ambiente controlado (JTA), o Hibernate não pode "
-"fornecer inteiramente esta funcionalidade. Entretanto, o Hibernate pode "
-"afinal controlar as operações do acesso a dados, assegurando que o nÃvel de "
-"deadlocks e queries do banco de dados com imensos resultados definidos sejam "
-"limitados pelo timeout. Em um ambiente gerenciado, o Hibernate pode delegar "
-"o timeout da transação ao JTA. Esta funcionalidade é abstraÃda pelo objeto "
-"<literal>Transaction</literal> do Hibernate."
+"O tempo de espera de transação é uma caracterÃstica extremamente importante "
+"fornecida por um ambiente gerenciado como EJB e que nunca é fornecido pelo "
+"código não gerenciado. Os tempos de espera de transação asseguram que "
+"nenhuma transação retenha indefinidamente recursos enquanto não retornar "
+"nenhuma resposta ao usuário. Fora de um ambiente controlado (JTA), o "
+"Hibernate não pode fornecer inteiramente esta funcionalidade. Entretanto, o "
+"Hibernate pode afinal controlar as operações do acesso a dados, assegurando "
+"que o nÃvel de deadlocks e consultas do banco de dados com imensos "
+"resultados definidos sejam limitados pelo tempo de espera. Em um ambiente "
+"gerenciado, o Hibernate pode delegar o tempo de espera da transação ao JTA. "
+"Esta funcionalidade é abstraÃda pelo objeto <literal>Transaction</literal> "
+"do Hibernate. "
-#. Tag: programlisting
-#: transactions.xml:652
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:654
-#, fuzzy, no-c-format
-msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
"transaction timeouts must be defined declaratively."
msgstr ""
-"Veja que <literal>setTimeout()</literal> não pode ser chamado em um CMT "
-"bean, onde os timeouts das transações devem ser definidos declarativamente."
+"Veja que <literal>setTimeout()</literal> não pode ser chamado em um bean "
+"CMT, onde o tempo de espera das transações deve ser definido declaradamente. "
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
msgstr "Controle de concorrência otimista"
#. Tag: para
-#: transactions.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
"scalability, is optimistic concurrency control with versioning. Version "
@@ -1373,23 +1285,21 @@
"has the benefit of preventing lost updates in single database transactions."
msgstr ""
"O único caminho que é consistente com a elevada concorrência e "
-"escalabilidade é controle de concorrência otimista com versionamento. "
-"Checagem de versão usa número de versão, ou timestamps, para detectar "
-"conflitos de atualizações (e para impedir atualizações perdidas). O "
-"Hibernate fornece três caminhos possÃveis para escrever aplicações que usam "
-"concorrência otimista. Os casos de uso que nós mostramos estão no contexto "
-"de conversações longas, mas a checagem de versão também tem o benefÃcio de "
-"impedir atualizações perdidas em únicas transações."
+"escalabilidade é o controle de concorrência otimista com versionamento. A "
+"checagem de versão usa número de versão, ou carimbo de hora (timestamp), "
+"para detectar conflitos de atualizações (e para impedir atualizações "
+"perdidas). O Hibernate fornece três caminhos possÃveis para escrever "
+"aplicações que usam concorrência otimista. Os casos de uso que nós mostramos "
+"estão no contexto de conversações longas, mas a checagem de versão também "
+"tem o benefÃcio de impedir atualizações perdidas em únicas transações. "
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
msgstr "Checagem de versão da aplicação"
#. Tag: para
-#: transactions.xml:679
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
"the database occurs in a new <literal>Session</literal> and the developer is "
@@ -1401,32 +1311,13 @@
msgstr ""
"Em uma implementação sem muita ajuda do Hibernate, cada interação com o "
"banco de dados ocorre em uma nova <literal>Session</literal> e o "
-"desenvolvedor é responsável para recarregar todas as instâncias persistentes "
+"desenvolvedor é responsável por recarregar todas as instâncias persistentes "
"da base de dados antes de manipulá-las. Este caminho força a aplicação a "
"realizar sua própria checagem de versão para assegurar a conversação do "
"isolamento da transação. Este caminho é menos eficiente em termos de acesso "
-"ao banco de dados. Ã a caminho mais similar a EJBs entity."
+"ao banco de dados. à o caminho mais similar à entidade EJBs."
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
@@ -1434,12 +1325,11 @@
"flush if the entity is dirty."
msgstr ""
"A propriedade <literal>version</literal> é mapeada usando <literal><"
-"version></literal>, e o Hibernate vai incrementá-lo-á automaticamente "
-"durante o flush se a entidade estiver alterada."
+"version></literal>, e o Hibernate vai incrementá-lá automaticamente "
+"durante a liberação se a entidade estiver alterada."
#. Tag: para
-#: transactions.xml:696
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
"require version checking, you can use this approach and skip the version "
@@ -1448,17 +1338,16 @@
"of the application, as they might experience lost updates without error "
"messages or a chance to merge conflicting changes."
msgstr ""
-"Claro, se você se estiver operando em um ambiente de baixa concorrência de "
-"dados e não requerer a checagem de versão, você pode usar este caminho e "
-"apenas saltar a checagem de versão. Nesse caso, o <emphasis>ultimo commit "
-"realizdo </emphasis> é a estratégia padrão para suas conversações longas. "
-"Mantenha em mente que isto pode confundir os usuários da aplicação, assim "
-"como eles podem experimentar atualizações perdidas sem mensagens de erro ou "
-"uma possibilidade ajustar mudanças de conflito."
+"Claro, se você estiver operando em um ambiente de baixa concorrência de "
+"dados e não precisar da checagem de versão, você pode usar este caminho e "
+"apenas pular a checagem de versão. Nesse caso, o <emphasis>último commit "
+"realizado</emphasis> é a estratégia padrão para suas conversações longas. "
+"Tenha em mente que isto pode confundir os usuários da aplicação, como também "
+"poderão ter atualizações perdidas sem mensagens de erro ou uma possibilidade "
+"de ajustar mudanças conflitantes."
#. Tag: para
-#: transactions.xml:705
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
"practical for most applications. Often not only single instances, but "
@@ -1466,22 +1355,20 @@
"automatic version checking with either an extended <literal>Session</"
"literal> or detached instances as the design paradigm."
msgstr ""
-"Claro que, checagem manual da versão é somente praticável em circunstâncias "
-"triviais e não para a maioria de aplicações. Freqüentemente, os grafos "
-"completos de objetos modificados têm que ser verificados, não somente únicas "
-"instâncias. O Hibernate oferece checagem de versão automática com uma "
-"<literal>Session</literal> estendida ou instâncias desatachadas como o "
-"paradigma do projeto."
+"Claro que, a checagem manual da versão é somente possÃvel em circunstâncias "
+"triviais e não para a maioria de aplicações. Freqüentemente, os "
+"gráficoscompletos de objetos modificados têm que ser verificados, não "
+"somente únicas instâncias. O Hibernate oferece checagem de versão automática "
+"com uma <literal>Session</literal> estendida ou instâncias desatachadas como "
+"o paradigma do projeto. "
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
msgstr "Sessão estendida e versionamento automático"
#. Tag: para
-#: transactions.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
"that are used for the whole conversation are known as <emphasis>session-per-"
@@ -1493,15 +1380,14 @@
msgstr ""
"Uma única instância de <literal>Session</literal> e suas instâncias "
"persistentes são usadas para a conversação inteira, isto é conhecido como "
-"<emphasis>session-per-conversation</emphasis>. O Hibernate verifica versões "
-"da instância no momento dio flush, lançando uma exceção se a modificação "
-"concorrente for detectada. Até o desenvolvedor pegar e tratar essa exceção "
-"(as opções comuns são a oportunidade para que o usuário intercale as "
-"mudanças ou reinicie a conversação do negócio com dados não antigos)."
+"<emphasis>sessão-por-conversação</emphasis>. O Hibernate verifica versões da "
+"instância no momento da liberação, lançando uma exceção se a modificação "
+"concorrente for detectada. Até o desenvolvedor pegar e tratar essa exceção. "
+"As opções comuns são a oportunidade para que o usuário intercale as mudanças "
+"ou reinicie a conversação do negócio com dados não antigos."
#. Tag: para
-#: transactions.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
"connection when waiting for user interaction. This approach is the most "
@@ -1509,36 +1395,15 @@
"check or reattach detached instances, nor does it have to reload instances "
"in every database transaction."
msgstr ""
-"The <literal>Session</literal> is disconnected from any underlying JDBC "
-"connection when waiting for user interaction. This approach is the most "
-"efficient in terms of database access. The application need not concern "
-"itself with version checking or with reattaching detached instances, nor "
-"does it have to reload instances in every database transaction. A "
-"<literal>Session</literal> é desconectada de toda a conexão JDBC subjacente "
-"enquanto espera a interação do usuário. Este caminho é a mais eficiente em "
-"termos de acesso a bancos de dados. A aplicação não necessita concernir-se "
-"com a checagem de versão ou com as instâncias destacadas reatadas, nem tem "
-"que recarregar instâncias em cada transação."
+"A <literal>Session</literal> é desconectada de toda a conexão JDBC adjacente "
+"enquanto espera a interação do usuário. Este caminho é o mais eficiente em "
+"termos de acesso a bancos de dados. A aplicação não precisa se preocupar com "
+"a checagem de versão ou com as instâncias destacadas reatadas, nem precisa "
+"recarregar instâncias a cada transação."
-#. Tag: programlisting
-#: transactions.xml:735
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:736
-#, fuzzy, no-c-format
-msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
"was loaded in. Beginning a new database transaction on an old session "
"obtains a new connection and resumes the session. Committing a database "
@@ -1554,24 +1419,24 @@
"will include the <literal>flush()</literal> operation, and then "
"<literal>close()</literal> the session to end the conversation."
msgstr ""
-"O objeto <literal>foo</literal> sabe que <literal>Session</literal> já foi "
-"carregada. Começando uma nova transação em uma sessão velha obtém uma "
-"conexão nova e recomeça a sessão. Commitando uma transação desconecta uma "
-"sessão da conexão JDBC e retorna a conexão ao pool. Após a reconexão, forçar "
-"uma checagem de versão em dados que você não está atualizando, você pode "
-"chamar <literal>Session.lock()</literal> com o <literal>LockMode.READ</"
-"literal> em todos os objetos que possam ter sido atualizados por uma outra "
-"transação. Você não necessita bloquear nenhum dado para atualizar. "
-"Geralmente você configuraria <literal>FlushMode.MANUAL</literal> em uma "
-"<literal>Session</literal> estendida, de modo que somente o último ciclo da "
-"transação tenha permissão de persistir todas as modificações feitas nesta "
-"conversação. Disso, somente esta última transação incluiria a operação "
-"<literal>flush()</literal> e então chamar também <literal>close()</literal> "
-"da sessão para terminar a conversação."
+"O objeto <literal>foo</literal> sabe que a <literal>Session</literal> já foi "
+"carregada. Ao começar uma nova transação ou uma sessão velha, você obterá "
+"uma conexão nova e reiniciará a sessão. Submeter uma transação implica em "
+"desconectar uma sessão da conexão JDBC e retornar à conexão ao pool. Após a "
+"reconexão, para forçar uma checagem de versão em dados que você não esteja "
+"atualizando, você poderá chamar <literal>Session.lock()</literal> com o "
+"<literal>LockMode.READ</literal> em todos os objetos que possam ter sido "
+"atualizados por uma outra transação. Você não precisa bloquear nenhum dado "
+"que você <emphasis>está</emphasis> atualizando. Geralmente, você "
+"configuraria <literal>FlushMode.NEVER</literal> em uma <literal>Session</"
+"literal> estendida, de modo que somente o último ciclo da transação tenha "
+"permissão de persistir todas as modificações feitas nesta conversação. Por "
+"isso, somente esta última transação incluiria a operação <literal>flush()</"
+"literal> e então também iria <literal>close()</literal> a sessão para "
+"terminar a conversação. "
#. Tag: para
-#: transactions.xml:751
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
"be stored during user think time (for example, an <literal>HttpSession</"
@@ -1581,36 +1446,33 @@
"<literal>Session</literal> only for a single conversation as it will soon "
"have stale data."
msgstr ""
-"Este pattern é problemático se a <literal>Session</literal> for "
-"demasiadamente grande para ser armazenado durante o tempo que usuário "
-"pensar, por exemplo um <literal>HttpSession</literal> estiver mantido tão "
-"pequeno quanto possÃvel. Como o <literal>Session</literal> é também cache de "
+"Este modelo é problemático se a <literal>Session</literal> for "
+"demasiadamente grande para ser armazenada durante o tempo de espera do "
+"usuário (por exemplo uma <literal>HttpSession</literal> deve ser mantida o "
+"menor possÃvel). Como a <literal>Session</literal> é também cache de "
"primeiro nÃvel (imperativo) e contém todos os objetos carregados, nós "
"podemos provavelmente usar esta estratégia somente para alguns ciclos de "
"requisição/resposta. Você deve usar a <literal>Session</literal> somente "
-"para uma única conversação, porque ela logo também estará com dados velhos."
+"para uma única conversação, porque ela logo também estará com dados velhos. "
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "Nota"
#. Tag: para
-#: transactions.xml:763
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
"reconnection of a <literal>Session</literal>. These methods are deprecated, "
"as beginning and ending a transaction has the same effect."
msgstr ""
-"(Note que versões mais atuais de Hibernate requerem a desconexão e o "
-"reconexão explÃcitas de uma <literal>Session</literal>. Estes métodos são "
-"desatualizados, como o inÃcio e término de uma transação tem o mesmo efeito.)"
+"Note que versões mais atuais de Hibernate requerem a desconexão e reconexão "
+"explÃcitas de uma <literal>Session</literal>. Estes métodos são "
+"desatualizados, pois o inÃcio e término de uma transação têm o mesmo efeito."
#. Tag: para
-#: transactions.xml:769
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
"layer. Use an EJB stateful session bean to hold the <literal>Session</"
@@ -1618,15 +1480,14 @@
"or even serialize it to a separate tier, to store it in the "
"<literal>HttpSession</literal>."
msgstr ""
-"Note também que você deve manter a <literal>Session</literal> desconectada "
-"fechada para a camada de persistência. Ou seja, use um EJB stateful session "
-"bean para prender a <literal>Session</literal> em um ambiente do três "
-"camadas e não o transferir à camada web (ou até serializá-lo para uma camada "
-"separada) para armazená-lo no <literal>HttpSession</literal>."
+"Note também que você deve manter a <literal>Session</literal> desconectada, "
+"fechada para a camada de persistência. Ou seja, use um bean de sessão com "
+"estado EJB para prender a <literal>Session</literal> em um ambiente de três "
+"camadas. Não transfira à camada web, ou até serializá-lo para uma camada "
+"separada, para armazená-lo no <literal>HttpSession</literal>."
#. Tag: para
-#: transactions.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
"emphasis>, is more difficult to implement with automatic current session "
@@ -1634,20 +1495,18 @@
"<literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki "
"for examples."
msgstr ""
-"O pattern sessão estendida, ou <emphasis>session-per-conversation</"
+"O modelo da sessão estendida, ou <emphasis>sessão-por-conversação</"
"emphasis>, é mais difÃcil de implementar com gerenciamento automático de "
"sessão atual. Você precisa fornecer sua própria implementação do "
-"<literal>CurrentSessionContext</literal> para isto (veja o Hibernate Wiki "
-"para exemplos)."
+"<literal>CurrentSessionContext</literal> para isto. Veja o Hibernate Wiki "
+"para exemplos."
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
msgstr "Objetos destacados e versionamento automático"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1662,37 +1521,21 @@
"<literal>Session</literal> nova. Entretanto, as mesmas instâncias "
"persistentes são reusadas para cada interação com o banco de dados. A "
"aplicação manipula o estado das instâncias desatachadas originalmente "
-"carregadas em um outro <literal>Session</literal> e reata-os então usando "
+"carregadas em uma outra <literal>Session</literal> e as reata então usando "
"<literal>Session.update()</literal>, <literal>Session.saveOrUpdate()</"
"literal> ou <literal>Session.merge()</literal>."
-#. Tag: programlisting
-#: transactions.xml:797
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:799
-#, fuzzy, no-c-format
-msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
"exception if conflicting updates occurred."
msgstr ""
-"Outra vez, o Hibernate verificará versões da instância durante o flush, "
-"lançando uma exceção se ocorrer conflitos de atualizações."
+"Outra vez, o Hibernate verificará versões da instância durante a liberação, "
+"lançando uma exceção se ocorrer conflitos de atualizações. "
#. Tag: para
-#: transactions.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
"literal>, and use <literal>LockMode.READ</literal> (performing a version "
@@ -1702,17 +1545,15 @@
"Você pode também chamar o <literal>lock()</literal> em vez de <literal>update"
"()</literal> e usar <literal>LockMode.READ</literal> (executando uma "
"checagem de versão, ignorando todos os caches) se você estiver certo de que "
-"o objeto não foi modificado."
+"o objeto não foi modificado. "
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr "Versionamento automático customizado"
#. Tag: para
-#: transactions.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
"properties and collections by setting the <literal>optimistic-lock</literal> "
@@ -1720,13 +1561,13 @@
"increment versions if the property is dirty."
msgstr ""
"Você pode desabilitar o incremento da versão automática de Hibernate para "
-"propriedades e coleções particulares configurando o mapeamento do atributo "
-"<literal>optimistic-lock</literal> para false. O Hibernate então não irá "
-"incrementa versões se a propriedade estiver modificada."
+"propriedades e coleções particulares, configurando a função de mapeamento "
+"<literal>optimistic-lock</literal> para <literal>false</literal>. O "
+"Hibernate então, não incrementará mais versões se a propriedade estiver "
+"modificada. "
#. Tag: para
-#: transactions.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
"applications might access the same database and will not know how to handle "
@@ -1739,36 +1580,33 @@
"long <literal>Session</literal> and not session-per-request-with-detached-"
"objects)."
msgstr ""
-"Os esquemas da base de dados legada são freqüentemente estáticos e não podem "
-"ser modificados. Ou outras aplicações puderam também acessar a mesma base de "
-"dados e não sabem tratar a versão dos números ou timestamps. Em ambos os "
-"casos, o versionamento não pode confiar em uma coluna particular em uma "
-"tabela. Para forçar uma checagem de versão sem uma versão ou mapeamento da "
-"propriedade do timestamp com uma comparação do estado de todos os campos em "
-"uma linha, configure <literal>optimistic-lock=\"all\"</literal> no "
-"mapeamento <literal><class></literal>. Note que isto conceitualmente é "
-"somente feito em trabalhos se Hibernate puder comparar o estado velho e "
-"novo, isto é, se você usa um único <literal>Session</literal> longo e não "
-"session-per-request-with-detached-objects."
+"Os esquemas da base de dados legado são freqüentemente estáticos e não podem "
+"ser modificados. Ou então, outras aplicações puderam também acessar a mesma "
+"base de dados e não sabem tratar a versão dos números ou carimbos de hora. "
+"Em ambos os casos, o versionamento não pode confiar em uma coluna particular "
+"em uma tabela. Para forçar uma checagem de versão sem uma versão ou "
+"mapeamento da propriedade do carimbo de hora com uma comparação do estado de "
+"todos os campos em uma linha, configure <literal>optimistic-lock=\"all\"</"
+"literal> no mapeamento <literal><class></literal>. Note que isto "
+"conceitualmente é somente feito em trabalhos se o Hibernate puder comparar o "
+"estado velho e novo (ex.: se você usar uma única <literal>Session</literal> "
+"longa e não uma sessão-por-solicitação-com-objetos-desanexados)."
#. Tag: para
-#: transactions.xml:834
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
"have been made do not overlap. If you set <literal>optimistic-lock=\"dirty"
"\"</literal> when mapping the <literal><class></literal>, Hibernate "
"will only compare dirty fields during flush."
msgstr ""
-"Ãs vezes a modificação concorrente pode ser permitida tão longa quanto à s "
-"mudanças que tiveram sido feitas que não sobrepuseram. Se você configurar "
-"<literal>optimistic-lock=\"dirty\"</literal> ao mapear o <literal><"
-"class></literal>, o Hibernate comparará somente campos modificados "
-"durante o flush."
+"Ãs vezes a modificação concorrente pode ser permitida, desde que as mudanças "
+"realizadas não se sobreponham. Se você configurar <literal>optimistic-lock="
+"\"dirty\"</literal> ao mapear o <literal><class></literal>, o "
+"Hibernate comparará somente campos modificados durante a liberação. "
#. Tag: para
-#: transactions.xml:840
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
"field comparison, Hibernate uses a single <literal>UPDATE</literal> "
@@ -1783,29 +1621,28 @@
"to <literal>SELECT</literal> the instance to ensure that changes did occur "
"before updating the row."
msgstr ""
-"Em ambos os casos, com as colunas dedicadas da versão/timestamp ou com "
-"comparação do campo cheio/modificados, o Hibernate usa uma única declaração "
-"UPDATE (com uma cláusula WHERE apropriada ) por entidade para executar a "
-"checagem da versão e atualizar a informação. Se você usa a persistência "
-"transitiva para cascatear o reatamento das entidades associadas, o Hibernate "
-"pode executar atualizações desnecessárias. Isso não é geralmente um "
-"problema, mas triggers <emphasis>on update</emphasis> em um banco de dados "
-"podem ser executados mesmo quando nenhuma mudança foi feita nas instâncias "
-"destacadas. Você pode customizar este comportamento configurando "
-"<literal>select-before-update=\"true\"</literal> no mapeamento <literal><"
-"class></literal>, forçando o Hibernate a dá um SELECT nas instâncias para "
-"assegurar-se esse as mudanças ocorreram realmente, antes de atualizar a "
-"linha."
+"Em ambos os casos, com as colunas de versão/carimbo de hora dedicados com "
+"comparação de campo cheio/sujo, o Hibernate usa uma única instrução "
+"<literal>UPDATE</literal>, com uma cláusula <literal>WHERE</literal> "
+"apropriada, por entidade para executar a checagem da versão e atualizar a "
+"informação. Se você usar a persistência transitiva para cascatear o "
+"reatamento das entidades associadas, o Hibernate pode executar atualizações "
+"desnecessárias. Isso não é geralmente um problema, mas os triggers "
+"<emphasis>em atualizações</emphasis> num banco de dados pode ser executado "
+"mesmo quando nenhuma mudança foi feita nas instâncias desanexadas. Você pode "
+"customizar este comportamento configurando <literal>selecionar-antes-de "
+"atualizar=\"verdadeiro\"</literal> no mapeamento <literal><class></"
+"literal>, forçando o Hibernate a fazer um <literal>SELECT</literal> nas "
+"instâncias para assegurar-se de que as mudanças realmente aconteceram, antes "
+"de atualizar a linha. "
#. Tag: title
-#: transactions.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pessimistic locking"
-msgstr "Locking pessimista"
+msgstr "Bloqueio Pessimista "
#. Tag: para
-#: transactions.xml:860
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
"strategies. It is usually enough to specify an isolation level for the JDBC "
@@ -1813,35 +1650,33 @@
"advanced users may wish to obtain exclusive pessimistic locks or re-obtain "
"locks at the start of a new transaction."
msgstr ""
-"Não se pretende que os usuários gastam muitas horas se preocupando com suas "
-"estratégias de locking. Geralmente é o bastante para especificar um nÃvel de "
-"isolamento para as conexões JDBC e então deixar simplesmente o banco de "
+"Não ha intenção alguma que usuários gastem muitas horas se preocupando com "
+"suas estratégias de bloqueio. Geralmente, é o bastante especificar um nÃvel "
+"de isolamento para as conexões JDBC e então deixar simplesmente o banco de "
"dados fazer todo o trabalho. Entretanto, os usuários avançados podem às "
-"vezes desejar obter locks pessimistas exclusivos, ou re-obter locks no "
-"inÃcio de uma nova transação."
+"vezes desejar obter bloqueios pessimistas exclusivos, ou re-obter bloqueios "
+"no inÃcio de uma nova transação. "
#. Tag: para
-#: transactions.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
"lock objects in memory."
msgstr ""
-"O Hibernate usará sempre o mecanismo de lock da base de dados, nunca trava "
-"objetos na memória!"
+"O Hibernate usará sempre o mecanismo de bloqueio da base de dados, nunca "
+"bloquiar objetos na memória."
#. Tag: para
-#: transactions.xml:872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
"can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
-"A classe <literal>LockMode</literal> define os diferentes nÃveis de lock que "
-"o Hibernate pode adquirir. Um lock é obtido pelos seguintes mecanismos:"
+"A classe <literal>LockMode</literal> define os diferentes nÃveis de bloqueio "
+"que o Hibernate pode adquirir. Um bloqueio é obtido pelos seguintes "
+"mecanismos: "
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
@@ -1851,8 +1686,7 @@
"Hibernate atualiza ou insere uma linha."
#. Tag: para
-#: transactions.xml:885
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
"request using <literal>SELECT ... FOR UPDATE</literal> on databases which "
@@ -1860,11 +1694,10 @@
msgstr ""
"<literal>LockMode.UPGRADE</literal> pode ser adquirido explicitamente pelo "
"usuário usando <literal>SELECT ... FOR UPDATE</literal> em um banco de dados "
-"que suporte esse sintaxe."
+"que suporte essa sintáxe. "
#. Tag: para
-#: transactions.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
"user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under "
@@ -1872,22 +1705,20 @@
msgstr ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> pode ser adquirido explicitamente "
"pelo usuário usando <literal>SELECT ... FOR UPDATE NOWAIT</literal> no "
-"Oracle."
+"Oracle. "
#. Tag: para
-#: transactions.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
"reads data under Repeatable Read or Serializable isolation level. It can be "
"re-acquired by explicit user request."
msgstr ""
"<literal>LockMode.READ</literal> é adquirido automaticamente quando o "
-"Hibernate lê dados em um nÃvel Repeatable Read ou Serializable isolation. "
-"Pode ser readquirido explicitamente pelo usuário."
+"Hibernate lê dados em um nÃvel de Leitura Repetida ou isolamento "
+"Serializável. Pode ser readquirido explicitamente pelo usuário. "
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1896,23 +1727,20 @@
"</literal> or <literal>saveOrUpdate()</literal> also start out in this lock "
"mode."
msgstr ""
-"<literal>LockMode.NONE</literal> representa a ausência do lock. Todos os "
-"objetos mudam para esse estado de lock no final da <literal>Transaction</"
+"<literal>LockMode.NONE</literal> representa a ausência do bloqueio. Todos os "
+"objetos mudam para esse estado de bloqueio no final da <literal>Transaction</"
"literal>. Objetos associados com a sessão através do método <literal>update()"
"</literal> ou <literal>saveOrUpdate()</literal> também são inicializados com "
-"esse lock mode."
+"esse modo de bloqueio."
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
msgstr ""
-"O lock obtido \"explicitamente pelo usuário\" se dá em uma das seguintes "
-"maneiras:"
+"O bloqueio obtido \"explicitamente pelo usuário\" se dá nas seguintes formas:"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
@@ -1922,19 +1750,16 @@
"<literal>LockMode</literal>."
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
-msgstr "Uma chamada a <literal>Session.lock()</literal>."
+msgstr "Uma chamada à <literal>Session.lock()</literal>."
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
-msgstr "Uma chamada a <literal>Query.setLockMode()</literal>."
+msgstr "Uma chamada à <literal>Query.setLockMode()</literal>."
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1949,13 +1774,12 @@
"literal> ou <literal>UPGRADE_NOWAIT</literal>, e o objeto requisitado ainda "
"não foi carregado pela sessão, o objeto é carregado usando "
"<literal>SELECT ... FOR UPDATE</literal>. Se <literal>load()</literal> for "
-"chamado para um objeto que já foi carregado com um lock menos restritivo que "
-"o novo lock solicitado, o Hibernate invoca o método <literal>lock()</"
+"chamado para um objeto que já foi carregado com um bloqueio menos restritivo "
+"que o novo bloqueio solicitado, o Hibernate invoca o método <literal>lock()</"
"literal> para aquele objeto."
#. Tag: para
-#: transactions.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
"specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> "
@@ -1963,33 +1787,30 @@
"literal> or <literal>UPGRADE_NOWAIT</literal>, <literal>SELECT ... FOR "
"UPDATE</literal> is used."
msgstr ""
-"O método <literal>Session.lock()</literal> executa uma verificação no número "
-"da versão se o modo de lock especificado for <literal>READ</literal>, "
-"<literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</literal>.. (No caso "
-"do <literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</literal>, é usado "
-"<literal>SELECT ... FOR UPDATE</literal>.)"
+"O <literal>Session.lock()</literal> executa uma verificação no número da "
+"versão se o modo de bloqueio especificado for <literal>READ</literal>, "
+"<literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</literal>. No caso do "
+"<literal>UPGRADE</literal> ou <literal>UPGRADE_NOWAIT</literal>, é usado "
+"<literal>SELECT ... FOR UPDATE</literal>."
#. Tag: para
-#: transactions.xml:951
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
"an appropriate alternate mode instead of throwing an exception. This ensures "
"that applications are portable."
msgstr ""
-"Se o banco de dados não suportar o lock mode solicitado, o Hibernate vai "
-"usar um modo alternativo apropriado (ao invés de lançar uma exceção). Isso "
-"garante que a aplicação vai ser portável."
+"Se o banco de dados não suportar o modo de bloqueio solicitado, o Hibernate "
+"usará um modo alternativo apropriado, ao invés de lançar uma exceção. Isso "
+"garante que a aplicação seja portátil. "
#. Tag: title
-#: transactions.xml:960
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Connection release modes"
-msgstr "Modos de liberar a Connection"
+msgstr "Modos para liberar a conexão"
#. Tag: para
-#: transactions.xml:962
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
"<literal>Session</literal> would obtain a connection when it was first "
@@ -2002,43 +1823,40 @@
"by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</"
"literal>:"
msgstr ""
-"O comportamento legado do Hibernate (2.x) em consideração ao gerenciamento "
-"da conexão via JDBC fez com que a <literal>Session</literal> precisasse "
-"obter uma conexão quando ela precisasse pela primeira vez e depois manter a "
-"conexão enquanto a sessão não fosse fechada. O Hibernate 3.x introduz a "
-"idéia de modos de liberar a sessão, para informar a sessão a forma como deve "
+"O comportamento legado do Hibernate 2.x referente ao gerenciamento da "
+"conexão via JDBC era que a <literal>Session</literal> precisaria obter uma "
+"conexão quando ela precisasse pela primeira vez e depois manteria a conexão "
+"enquanto a sessão não fosse fechada. O Hibernate 3.x introduz a idéia de "
+"modos para liberar a sessão, para informar a sessão a forma como deve "
"manusear a sua conexão JDBC. Veja que essa discussão só é pertinente para "
"conexões fornecidas com um <literal>ConnectionProvider</literal> "
-"configurado; conexões fornecidas pelo usuário estão fora do escopo dessa "
+"configurado. As conexões fornecidas pelo usuário estão fora do escopo dessa "
"discussão. Os diferentes modos de liberação estão definidos pelos valores da "
"enumeração <literal>org.hibernate.ConnectionReleaseMode</literal>:"
#. Tag: para
-#: transactions.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
"Hibernate session obtains a connection when it first needs to perform some "
"JDBC access and maintains that connection until the session is closed."
msgstr ""
-"<literal>ON_CLOSE</literal> - essencialmente é o modo legado descrito acima. "
-"A sessão do Hibernate obtêm a conexão quando precisar executar alguma "
-"operação JDBC pela primeira vez e mantem enquanto a conexão não for fechada."
+"<literal>ON_CLOSE</literal>: é o modo legado descrito acima. A sessão do "
+"Hibernate obtém a conexão quando precisar executar alguma operação JDBC pela "
+"primeira vez e mantém enquanto a conexão não for fechada."
#. Tag: para
-#: transactions.xml:983
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
"<literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
-"<literal>AFTER_TRANSACTION</literal> â informa que a conexão deve ser "
+"<literal>AFTER_TRANSACTION</literal>: informa que a conexão deve ser "
"liberada após a conclusão de uma <literal>org.hibernate.Transaction</"
-"literal>."
+"literal>. "
#. Tag: para
-#: transactions.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
"releases connections after every statement execution. This aggressive "
@@ -2046,16 +1864,15 @@
"the given session. Currently the only situation where this occurs is through "
"the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
-"<literal>AFTER_STATEMENT</literal> (também conhecida com liberação "
-"agressiva) â informa que a conexão deve ser liberada após a execução de cada "
-"statement. A liberação agressiva não ocorre se o statement deixa pra trás "
-"algum recurso aberto associado com a sessão obtida; atualmente, a única "
-"situação em que isso é possÃvel é com o uso de <literal>org.hibernate."
-"ScrollableResults</literal>."
+"<literal>AFTER_STATEMENT</literal> (também conhecida como liberação "
+"agressiva): informa que a conexão deve ser liberada após a execução de cada "
+"instrução. A liberação agressiva não ocorre se a instrução deixa pra trás "
+"algum recurso aberto associado com a sessão obtida. Atualmente, a única "
+"situação em que isto ocorre é com o uso de <literal>org.hibernate."
+"ScrollableResults</literal>. "
#. Tag: para
-#: transactions.xml:999
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
"literal> is used to specify which release mode to use. The possible values "
@@ -2063,11 +1880,10 @@
msgstr ""
"O parâmetro de configuração <literal>hibernate.connection.release_mode</"
"literal> é usado para especificar qual modo de liberação deve ser usado. "
-"Opções disponÃveis:"
+"Segue abaixo os valores possÃveis:"
#. Tag: para
-#: transactions.xml:1006
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
"mode returned by the <literal>org.hibernate.transaction.TransactionFactory."
@@ -2077,28 +1893,26 @@
"default behavior as failures due to the value of this setting tend to "
"indicate bugs and/or invalid assumptions in user code."
msgstr ""
-"<literal>auto</literal> (padrão) â essa opção delega ao modo de liberação "
+"<literal>auto</literal> (padrão): essa opção delega ao modo de liberação "
"retornado pelo método <literal>org.hibernate.transaction.TransactionFactory."
"getDefaultReleaseMode()</literal>. Para JTATransactionFactory, ele retorna "
"ConnectionReleaseMode.AFTER_STATEMENT; para JDBCTransactionFactory, ele "
-"retorna ConnectionReleaseMode.AFTER_TRANSACTION. Raramente é uma boa idéia "
-"alterar padrão, como frequencia ao se fazer isso temos falhas que parecem "
-"bugs e/ou suposições inválidas no código do usuário."
+"retorna ConnectionReleaseMode.AFTER_TRANSACTION. Raramente, é uma boa idéia "
+"alterar padrão, pois ao se fazer isso temos falhas que parecem bugs e/ou "
+"suposições inválidas no código do usuário. "
#. Tag: para
-#: transactions.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
"setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
-"<literal>on_close</literal> - indica o uso da ConnectionReleaseMode."
-"ON_CLOSE. Essa opção foi deixada para manter a compatibilidade, mas seu uso "
-"é fortemente desencorajado."
+"<literal>on_close</literal>: indica o uso da ConnectionReleaseMode.ON_CLOSE. "
+"Essa opção foi deixada para manter a compatibilidade, mas seu uso é "
+"fortemente desencorajado. "
#. Tag: para
-#: transactions.xml:1022
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
"AFTER_TRANSACTION. This setting should not be used in JTA environments. Also "
@@ -2106,15 +1920,14 @@
"considered to be in auto-commit mode, connections will be released as if the "
"release mode were AFTER_STATEMENT."
msgstr ""
-"<literal>after_transaction</literal> â indica o uso da ConnectionReleaseMode."
-"AFTER_TRANSACTION. Essa opção nada deve ser usada com ambientes JTA. Também "
+"<literal>after_transaction</literal>: indica o uso da ConnectionReleaseMode."
+"AFTER_TRANSACTION. Essa opção não deve ser usada com ambientes JTA. Também "
"note que no caso da ConnectionReleaseMode.AFTER_TRANSACTION, se a sessão foi "
"colocada no modo auto-commit a conexão vai ser liberada de forma similar ao "
-"modo AFTER_STATEMENT."
+"modo AFTER_STATEMENT. "
#. Tag: para
-#: transactions.xml:1030
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
"AFTER_STATEMENT. Additionally, the configured <literal>ConnectionProvider</"
@@ -2126,12 +1939,12 @@
"getConnection()</literal> or in auto-commit environments where it does not "
"matter if we re-establish the same connection."
msgstr ""
-"<literal>after_statement</literal> â indica o uso ConnectionReleaseMode."
-"AFTER_STATEMENT. Adicionalmente, o <literal>ConnectionProvider</literal> "
+"<literal>after_statement</literal>: indica o uso ConnectionReleaseMode."
+"AFTER_STATEMENT. Além disso, o <literal>ConnectionProvider</literal> "
"configurado é consultado para verificar se suporta essa configuração "
-"((<literal>supportsAggressiveRelease()</literal>). Se não suportar, o modo "
-"de liberação é redefinido como ConnectionRelease-Mode.AFTER_TRANSACTION. "
-"Essa configuração só é segura em ambientes onde podemos readquirir a mesma "
-"conexão JDBC toda vez que o método <literal>ConnectionProvider.getConnection"
-"()</literal> for chamado ou em um ambiente auto-commit onde não importa se "
-"nós recuperamos a mesma conexão."
+"(<literal>supportsAggressiveRelease()</literal>). Se não suportar, o modo de "
+"liberação é redefinido como ConnectionRelease-Mode.AFTER_TRANSACTION. Essa "
+"configuração só é segura em ambientes onde podemos tanto readquirir a mesma "
+"conexão JDBC adjacente todas as vezes que chamarmos "
+"<literal>ConnectionProvider.getConnection()</literal> quanto em um ambiente "
+"auto-commit, onde não importa se voltamos para a mesma conexão. "
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,128 @@
+# translation of tutorial.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: tutorial\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2009-12-21 07:55+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
-msgstr ""
+msgstr "Tutorial"
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -26,43 +131,49 @@
"Gloegl. All code is contained in the <filename>tutorials/web</filename> "
"directory of the project source."
msgstr ""
+"Intencionado para novos usuários, este capÃtulo fornece uma introdução "
+"detalhada do Hibernate, começando com um aplicativo simples usando um banco "
+"de dados em memória. O tutorial é baseado num tutorial anterior desenvolvido "
+"por Michael Gloegl. Todo o código está contido no diretório "
+"<filename>tutorials/web</filename> da fonte do projeto."
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
"have a limited knowledge of JAVA or SQL, it is advised that you start with a "
"good introduction to that technology prior to attempting to learn Hibernate."
msgstr ""
+"Este tutorial espera que o usuário tenha conhecimento de ambos Java e SQL. "
+"Caso você tenha um conhecimento limitado do JAVA ou SQL, é recomendado que "
+"você inicie com uma boa introdução àquela tecnologia, antes de tentar "
+"entender o Hibernate."
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
"<filename>tutorial/eg</filename> project source directory."
msgstr ""
+"Esta distribuição contém outro aplicativo de amostra sob o diretório de "
+"fonte do projeto <filename>tutorial/eg</filename>."
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
msgstr "Parte 1 â A primeira aplicação Hibernate"
#. Tag: para
-#: tutorial.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
"events we want to attend and information about the host(s) of these events."
msgstr ""
"Vamos supor que precisemos de uma aplicação com um banco de dados pequeno "
-"que possa armazenar e atender os eventos que queremos, e as informaççes "
-"sobre os hosts destes eventos."
+"que possa armazenar e atender os eventos que queremos, além das informações "
+"sobre os hosts destes eventos. "
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -70,15 +181,17 @@
"database) to avoid describing installation/setup of any particular database "
"servers."
msgstr ""
+"Mesmo que usando qualquer banco de dados do qual você se sinta confortável, "
+"nós usaremos <ulink url=\"http://hsqldb.org/\">HSQLDB</ulink> (o em memória, "
+"banco de dados Java) para evitar a descrição de instalação/configuração de "
+"quaisquer servidores do banco de dados."
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
-msgstr ""
+msgstr "Configuração"
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -90,72 +203,29 @@
"making use of <filename>src/main/java</filename>, <filename>src/main/"
"resources</filename> and <filename>src/main/webapp</filename> directories."
msgstr ""
+"O primeiro passo em que precisamos tomar é configurar o ambiente de "
+"desenvolvimento. Nós usaremos o \"layout padrão\" suportado por muitas "
+"ferramentas de construção, tais como <ulink url=\"http://maven.org\">Maven</"
+"ulink>. Maven, em particular, possui um excelente recurso de descrição disto "
+"<ulink url=\"http://maven.apache.org/guides/introduction/introduction-to-the-"
+"standard-directory-layout.html\">layout</ulink>. Assim como este tutorial "
+"deve ser um aplicativo da web, nós criaremos e faremos uso dos diretórios "
+"<filename>src/main/java</filename>, <filename>src/main/resources</filename> "
+"e <filename>src/main/webapp</filename>."
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
"dependency management capabilities as well as the ability of many IDEs to "
"automatically set up a project for us based on the maven descriptor."
msgstr ""
+"Nós usaremos Maven neste tutorial, tirando vantagem destas capacidades de "
+"dependência transitiva assim como a habilidade de muitos IDEs de configurar "
+"automaticamente um projeto baseado no descritor maven."
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
"build this tutoial (such as Ant), the layout will remain the same. The only "
@@ -171,93 +241,61 @@
"javassist</filename> directory; additionally you will need both the servlet-"
"api jar and one of the slf4j logging backends."
msgstr ""
+"O uso do Maven não é obrigatório. Caso você deseje usar outra tecnologia "
+"para construir este tutorial (tal como Ant), o layout continuará o mesmo. A "
+"única mudança é que você precisará contar manualmente para todas as "
+"dependências necessárias. Caso você utilize <ulink url=\"http://ant.apache."
+"org/ivy/\">Ivy</ulink> para fornecer um gerenciamento de dependência "
+"transitiva, você continuará a usar as dependências mencionadas abaixo. Do "
+"contrário, você precisará encontrar todas as dependências, ambas explÃcitas "
+"e transitivas, além de adicioná-las às classpath de projetos. Caso "
+"trabalhando da vinculação de distribuição Hibernate, quer dizer "
+"<filename>hibernate3.jar</filename>, todos os artefatos no diretório "
+"<filename>lib/required</filename> e todos os arquivos a partir do diretório "
+"<filename>lib/bytecode/cglib</filename> ou <filename>lib/bytecode/javassist</"
+"filename>. Adicionalmente, você precisará de ambos servlet-api jar e um dos "
+"slf4j logging backends."
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
msgstr ""
+"Salve este arquivo como <filename>pom.xml</filename> no diretório raiz do "
+"projeto."
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
msgstr "A primeira Classe"
#. Tag: para
-#: tutorial.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
"database; it is a simple JavaBean class with some properties:"
msgstr ""
"Agora, iremos criar uma classe que representa o evento que queremos "
-"armazenar na base de dados.."
+"armazenar na base de dados. Isto é uma classe JavaBean simples com algumas "
+"propriedades:"
-#. Tag: programlisting
-#: tutorial.xml:128
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:130
-#, fuzzy, no-c-format
-msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
"setter methods, as well as private visibility for the fields. Although this "
"is the recommended design, it is not required. Hibernate can also access "
"fields directly, the benefit of accessor methods is robustness for "
"refactoring."
msgstr ""
-"Você pode ver que esta classe usa o padrão JavaBean para o nomeamento "
-"convencional da propriedade getter e dos métodos setter, como também a "
-"visibilidade private dos campos. Este é um padrão de projeto recomendado, "
-"mas não requerido. O Hibernate pode também acessar campos diretamente, o "
-"benefÃcio para os métodos de acesso é a robustez para o Refactoring. O "
-"construtor sem argumento é requerido para instanciar um objeto desta classe "
-"com a reflexão."
+"Você pode ver que esta classe usa o padrão JavaBean para o nome convencional "
+"dos métodos de propriedade getter e setter, como também a visibilidade "
+"privada dos campos. Este é um padrão de projeto recomendado, mas não "
+"requerido. O Hibernate pode também acessar campos diretamente, o benefÃcio "
+"para os métodos de acesso é a robustez para o refactoring. "
#. Tag: para
-#: tutorial.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
"particular event. All persistent entity classes (there are less important "
@@ -275,19 +313,18 @@
"para um evento particular. Todas as classes persistentes da entidade (bem "
"como aquelas classes dependentes de menos importância) precisam de uma "
"propriedade de identificação, caso nós queiramos usar o conjunto completo de "
-"caracterÃsticas do Hibernate. De fato, a maioria das aplicações (esp. "
-"aplicações web) precisam destinguir os objetos pelo identificador, então "
-"você deverá considerar esta, uma caracterÃstica em lugar de uma limitação. "
-"Porém, nós normalmente não manipulamos a identidade de um objeto, "
-"consequentemente o método setter deverá ser privado. O Hibernate somente "
-"nomeará os identificadores quando um objeto for salvo. Você pode ver como o "
+"caracterÃsticas do Hibernate. De fato, a maioria das aplicações, "
+"especialmente. aplicações web, precisam distinguir os objetos pelo "
+"identificador. Portanto, você deverá considerar esta, uma caracterÃstica ao "
+"invés de uma limitação. Porém, nós normalmente não manipulamos a identidade "
+"de um objeto, conseqüentemente o método setter deverá ser privado. O "
+"Hibernate somente nomeará os identificadores quando um objeto for salvo. O "
"Hibernate pode acessar métodos públicos, privados, e protegidos, como também "
-"campos (públicos, privados, protegidos) diretamente. A escolha está até "
-"você, e você pode combinar isso para adaptar seu projeto de aplicação"
+"campos públicos, privados, protegidos diretamente. A escolha é sua e você "
+"pode adaptar seu projeto de aplicação."
#. Tag: para
-#: tutorial.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
"Hibernate has to create objects for you, using Java Reflection. The "
@@ -296,27 +333,26 @@
"instrumentation."
msgstr ""
"O construtor sem argumentos é um requerimento para todas as classes "
-"persistentes; O Hibernate tem que criar para você os objetos usando Java "
+"persistentes; O Hibernate precisa criar para você os objetos usando Java "
"Reflection. O construtor pode ser privado, porém, a visibilidade do pacote é "
"requerida para a procuração da geração em tempo de execução e recuperação "
-"eficiente dos dados sem a instrumentação de bytecode"
+"eficiente dos dados sem a instrumentação de bytecode."
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
"filename> directory."
msgstr ""
+"Salve este arquivo no diretório <filename>src/main/java/org/hibernate/"
+"tutorial/domain</filename>."
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
msgstr "O mapeamento do arquivo"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -325,34 +361,18 @@
"columns in that table it should use."
msgstr ""
"O Hibernate precisa saber como carregar e armazenar objetos da classe de "
-"persistência. Isto será onde o mapeamento do arquivo do Hibernate entrará em "
+"persistência. à aqui que o mapeamento do arquivo do Hibernate entrará em "
"jogo. O arquivo mapeado informa ao Hibernate, qual tabela no banco de dados "
"ele deverá acessar, e quais as colunas na tabela ele deverá usar."
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
msgstr "A estrutura básica de um arquivo de mapeamento é parecida com:"
-#. Tag: programlisting
-#: tutorial.xml:182
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:184
-#, fuzzy, no-c-format
-msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
"mapping elements and attributes in your editor or IDE. Opening up the DTD "
"file in your text editor is the easiest way to get an overview of all "
@@ -363,56 +383,41 @@
"<filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
"Note que o Hibernate DTD é muito sofisticado. Você pode usar isso para auto-"
-"conclusão no mapeamento XML dos elementos e atributos no seu editor ou IDE. "
-"Você também pode abrir o arquivo DTD no seu editor â é a maneira mais fácil "
-"de ter uma visão geral de todos os elementos e atributos e dos padrões, como "
-"também alguns comentários. Note que o Hibernate não irá carregar o arquivo "
-"DTD da web, e sim do diretório da aplicação (classpath). O arquivo DTD está "
-"incluÃdo no <literal>hibernate3.jar</literal> como também no diretório "
-"<literal>src/</literal> da distribuição do Hibernate."
+"conclusão no mapeamento XML dos elementos e funções no seu editor ou IDE. "
+"Você também pode abrir o arquivo DTD no seu editor. Esta é a maneira mais "
+"fácil de ter uma visão geral de todos os elementos e funções e dos padrões, "
+"como também alguns comentários. Note que o Hibernate não irá carregar o "
+"arquivo DTD da web, e sim da classpath da aplicação. O arquivo DTD está "
+"incluÃdo no <filename>hibernate-core.jar</filename> (como também no "
+"<filename>hibernate3.jar</filename>, caso usando a vinculação de "
+"distribuição."
#. Tag: para
-#: tutorial.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
"is, of course, not optional."
msgstr ""
"Nós omitiremos a declaração do DTD nos exemplos futuros para encurtar o "
-"código. Isto, é claro, não é opcional."
+"código. Isto, é claro, não é opcional. "
#. Tag: para
-#: tutorial.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
"<literal>class</literal> element. All persistent entity classes (again, "
"there might be dependent classes later on, which are not first-class "
"entities) need a mapping to a table in the SQL database:"
msgstr ""
-"Entre os dois tags <literal>hibernate-mapping</literal>, inclua um elemento "
+"Entre as duas tags <literal>hibernate-mapping</literal>, inclua um elemento "
"<literal>class</literal>. Todas as classes persistentes da entidade "
"(novamente, poderá haver mais tarde, dependências sobre as classes que não "
"são classes-primárias de entidades) necessitam do tal mapeamento, para uma "
-"tabela na base de dados SQL"
+"tabela na base de dados SQL:"
-#. Tag: programlisting
-#: tutorial.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:212
-#, fuzzy, no-c-format
-msgid ""
"So far we have told Hibernate how to persist and load object of class "
"<literal>Event</literal> to the table <literal>EVENTS</literal>. Each "
"instance is now represented by a row in that table. Now we can continue by "
@@ -420,31 +425,15 @@
"not want to care about handling this identifier, we configure Hibernate's "
"identifier generation strategy for a surrogate primary key column:"
msgstr ""
-"Mais adiante iremos dizer ao Hibernate como fazer para persistir e carregar "
+"Até agora, informamos o Hibernate sobre como fazer para persistir e carregar "
"objetos da classe <literal>Event</literal> da tabela <literal>EVENTS</"
-"literal>, cada instancia representada por uma coluna na tabela. Agora, "
+"literal>, cada instância representada por uma coluna na tabela. Agora, "
"continuaremos com o mapeamento de uma única propriedade identificadora para "
-"as chaves primárias da tabela. Além disso, nós não iremos se importar com "
-"esta propriedade identificadora, nós iremos configurar uma estratégia de "
-"geração de idâs para uma chave primária de uma surrogate key:"
+"as chaves primárias da tabela. Além disso, como não precisamos nos preocupar "
+"em manipular este identificador, iremos configurar uma estratégia de geração "
+"de idâs do Hibernate para uma coluna de chave primária substituta: "
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -454,9 +443,14 @@
"The column attribute tells Hibernate which column of the <literal>EVENTS</"
"literal> table holds the primary key value."
msgstr ""
+"O elemento <literal>id</literal> é a declaração de uma propriedade do "
+"identificador. O atributo do mapeamento <literal>name=\"id\"</literal> "
+"declara que o nome da propriedade JavaBeans e informa o Hibernate a utilizar "
+"os métodos <literal>getId()</literal> and <literal>setId()</literal> para "
+"acessar a propriedade. A atributo da coluna informa o Hibernate qual coluna "
+"da tabela <literal>EVENTS</literal> mantém o valor de chave primária."
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -467,63 +461,53 @@
"Identifier value generation is also one of Hibernate's many extension points "
"and you can plugin in your own strategy."
msgstr ""
+"O elemento <literal>generator</literal> aninhado especifica a estratégia da "
+"geração do identificador (como os valores do identificador são gerados?). "
+"Neste caso, nós escolhemos <literal>native</literal>, do qual oferece um "
+"nÃvel de portabilidade dependendo no dialeto do banco de dados configurado. "
+"O Hibernate suporta o banco de dados gerado, globalmente único, assim como a "
+"aplicação determinada, identificadores. A geração do valor do identificador "
+"é também um dos muitos pontos de extensão do Hibernate e você pode realizar "
+"o plugin na sua própria estratégia."
#. Tag: para
-#: tutorial.xml:246
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
+"<literal>native</literal> não é mais considerada a melhor estratégia em "
+"termos de portabilidade. Para maiores informações consulte <xref linkend="
+"\"portability-idgen\" />"
#. Tag: para
-#: tutorial.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
"properties. By default, no properties of the class are considered persistent:"
msgstr ""
-"Finalmente incluiremos as declarações para as propriedades persistentes da "
-"classe no arquivo mapeado. Por default, nenhuma das propriedades da classe é "
+"Finalmente, incluiremos as declarações para as propriedades persistentes da "
+"classe no arquivo mapeado. Por padrão, nenhuma das propriedades da classe é "
"considerada persistente:"
-#. Tag: programlisting
-#: tutorial.xml:258
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:260
-#, fuzzy, no-c-format
-msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
"attribute of the <literal>property</literal> element tells Hibernate which "
"getter and setter methods to use. In this case, Hibernate will search for "
"<literal>getDate()</literal>, <literal>setDate()</literal>, <literal>getTitle"
"()</literal> and <literal>setTitle()</literal> methods."
msgstr ""
-"Da mesma maneira que com o elemento <literal>id</literal>, o atributo "
-"<literal>name</literal> do elemento <literal>property</literal> informa ao "
-"Hibernate qual método getter e setter deverá usar. Assim, neste caso, o "
-"Hibernate irá procurar pelo <literal>getDate()/setDate()</literal>, como "
-"também pelo <literal>getTitle()/setTitle()</literal>."
+"Assim como com o elemento <literal>id</literal>, a função <literal>name</"
+"literal> do elemento <literal>property</literal> informa ao Hibernate qual "
+"método getter e setter deverá usar. Assim, neste caso, o Hibernate irá "
+"procurar pelos métodos <literal>getDate()</literal>, <literal>setDate()</"
+"literal>, <literal>getTitle()</literal> e <literal>setTitle()</literal>."
#. Tag: para
-#: tutorial.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
"<literal>column</literal> attribute, but the <literal>title</literal> does "
@@ -532,17 +516,16 @@
"literal>, however, <literal>date</literal> is a reserved keyword in most "
"databases so you will need to map it to a different name."
msgstr ""
-"Porque fazer o mapeamento da propriedade <literal>date</literal> incluÃdo no "
-"atributo <literal>column</literal>, e no title não fazer? Sem o atributo "
-"<literal>column</literal> o Hibernate por padrão usa o nome da propriedade "
-"como o nome da coluna. Isto trabalha muito bem para o <literal>title</"
-"literal>. Entretanto o <literal>date</literal> é uma palavra-chave reservada "
-"na maioria dos bancos de dados, assim nós melhoramos o mapeamentos disto com "
-"um nome diferente."
+"Porque fazer o mapeamento da propriedade <literal>date</literal> incluÃdo na "
+"função <literal>column</literal>, e no <literal>title</literal> não fazer? "
+"Sem a função <literal>column</literal> o Hibernate, por padrão, utiliza o "
+"nome da propriedade como o nome da coluna. Isto funciona bem para o "
+"<literal>title</literal>. Entretanto, o <literal>date</literal> é uma "
+"palavra-chave reservada na maioria dos bancos de dados, por isso seria "
+"melhor mapeá-lo com um nome diferente. "
#. Tag: para
-#: tutorial.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
"attribute. The types declared and used in the mapping files are not Java "
@@ -559,26 +542,24 @@
"literal> column. Full date and time information is preserved by mapping the "
"property with a <literal>timestamp</literal> converter."
msgstr ""
-"A próxima coisa interessante é que mapemanto do <literal>title</literal> "
-"também falta o atributo <literal>type</literal>. O tipo que declaramos e o "
-"uso nos arquivos mapeados, não são como você pôde esperar, atributos de "
-"dados Java. Eles não são como os tipos de base de dados SQL. Esses tipos "
-"podem ser chamados de <emphasis>Tipos de mapeamento Hibernate</emphasis>, "
-"que são conversores que podem traduzir tipos de dados do Java para os tipos "
-"de dados SQL e vice-versa. Novamente, o Hibernate irá tentar determinar a "
-"conversão correta e mapeará o <literal>type</literal> próprio, caso o tipo "
-"do atributo não estiver presente no mapeamento. Em alguns casos, esta "
-"detecção automática (que usa Reflection sobre as classes Java) poderá não "
-"ter padrão que você espera ou necessita. Este é o caso com a propriedade "
-"<literal>date</literal>. O Hibernate não pode saber se a propriedade (que é "
-"do <literal>java.util.Date</literal>) pode mapear para uma coluna do tipo "
-"<literal>date</literal> do SQL, <literal>timestamp</literal>, ou "
-"<literal>time</literal> . Nós preservamos a informação cheia de datas e "
-"horas pelo mapeamento da propriedade com um conversor <literal>timestamp</"
-"literal>."
+"O mapeamento do <literal>title</literal> também não possui a função "
+"<literal>type</literal>. O tipo que declaramos e utilizamos nos arquivos "
+"mapeados, não são como você esperava, ou seja, funções de dados Java. Eles "
+"também não são como os tipos de base de dados SQL. Esses tipos podem ser "
+"chamados de <emphasis>Tipos de mapeamento Hibernate</emphasis>, que são "
+"conversores que podem traduzir tipos de dados do Java para os tipos de dados "
+"SQL e vice-versa. Novamente, o Hibernate irá tentar determinar a conversão "
+"correta e mapeará o <literal>type</literal> próprio, caso o tipo da função "
+"não estiver presente no mapeamento. Em alguns casos, esta detecção "
+"automática (que usa Reflection sobre as classes Java) poderá não ter o "
+"padrão que você espera ou necessita. Este é o caso com a propriedade "
+"<literal>date</literal>. O Hibernate não sabe se a propriedade, que é do "
+"<literal>java.util.Date</literal>, pode mapear para uma coluna do tipo "
+"<literal>date</literal> do SQL, <literal>timestamp</literal> ou "
+"<literal>time</literal>. Nós preservamos as informações sobre datas e horas "
+"pelo mapeamento da propriedade com um conversor <literal>timestamp</literal>."
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -586,39 +567,44 @@
"performance is important you should consider explicitly defining the type to "
"use."
msgstr ""
+"O Hibernate realiza esta determinação de tipo de mapeamento usando a "
+"reflexão quando os arquivos de mapeamentos são processados. Isto pode levar "
+"tempo e recursos, portanto se você inicializar o desempenho, será importante "
+"que você considere claramente a definição do tipo para uso."
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
"tutorial/domain/Event.hbm.xml</filename>."
msgstr ""
+"Salve este arquivo de mapeamento como <filename>src/main/resources/org/"
+"hibernate/tutorial/domain/Event.hbm.xml</filename>."
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
msgstr "Configuração do Hibernate"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
"place. It is now time to configure Hibernate. First let's set up HSQLDB to "
"run in \"server mode\""
msgstr ""
+"Nestas alturas, você deve possuir a classe persistente e seu arquivo de "
+"mapeamento prontos. Ã o momento de configurar o Hibernate. Primeiro, vamos "
+"configurar o HSQLDB para rodar no \"modo do servidor\"."
#. Tag: para
-#: tutorial.xml:321
-#, no-c-format
+#, fuzzy, no-c-format
msgid "We do this do that the data remains between runs."
msgstr ""
+"Nós realizamos isto para que aqueles dados permaneçam entre as execuções."
#. Tag: para
-#: tutorial.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
"running: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
@@ -628,18 +614,15 @@
"tutorial, shutdown HSQLDB, delete all files in the <filename>target/data</"
"filename> directory, and start HSQLDB again."
msgstr ""
-"Crie um diretório chamado <literal>data</literal> no diretório root de "
-"desenvolvimento â Isto será onde o HSQL DB irá armazenar arquivos de dados. "
-"Agora iremos iniciar o banco de dados executando <literal>java -classpath ../"
-"lib/hsqldb.jar org.hsqldb.Server</literal> neste diretório de dados. Você "
-"pode ver ele iniciando e conectando ao socket TCP/IP, isto será onde nossa "
+"Nós utilizaremos o Maven exec plugin para lançar o servidor HSQLDB pela "
+"execução: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
+"Dexec.args=\"-database.0 file:target/data/tutorial\"</command>. Você pode "
+"ver ele iniciando e vinculando ao soquete TCP/IP, aqui será onde nossa "
"aplicação irá se conectar depois. Se você deseja iniciar uma nova base de "
-"dados durante este tutorial, finalize o HSQL DB(pressionando o <literal>CTRL "
-"+ C</literal> na janela), delete todos os arquivos no diretório "
-"<literal>data/</literal>, e inicie o HSQL BD novamente."
+"dados durante este tutorial, finalize o HSQLDB, delete todos os arquivos no "
+"diretório <filename>target/data</filename>, e inicie o HSQLBD novamente."
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -651,18 +634,26 @@
"net/\">proxool</ulink>. However, we will be using the Hibernate built-in "
"connection pool for this tutorial."
msgstr ""
+"O Hibernate conectará ao banco de dados no lugar de sua aplicação, portanto "
+"ele precisará saber como obter as conexões. Para este tutorial nós usaremos "
+"um pool de conexão autônomo (ao invés de <interfacename>javax.sql."
+"DataSource</interfacename>). O Hibernate vem com o suporte para dois terços "
+"dos pools de conexão JDBC de código aberto: <ulink url=\"https://sourceforge."
+"net/projects/c3p0\">c3p0</ulink> e <ulink url=\"http://proxool.sourceforge."
+"net/\">proxool</ulink>. No entanto, nós usaremos o pool de conexão interna "
+"do Hibernate para este tutorial."
#. Tag: para
-#: tutorial.xml:348
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
"use. It lacks several features found on any decent connection pool."
msgstr ""
+"O pool de conexão interna do Hibernate não é recomendado para uso de "
+"produção."
#. Tag: para
-#: tutorial.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
"properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</"
@@ -670,102 +661,54 @@
"XML configuration file:"
msgstr ""
"Para as configurações do Hibernate, nós podemos usar um arquivo simples "
-"<literal>hibernate.properties</literal>, um arquivo mais ligeiramente "
-"sofisticado <literal>hibernate.cfg.xml</literal> ou até mesmo uma instalação "
-"programática completa. A maioria dos usuários preferem utilizar o arquivo de "
-"configuração XML"
+"<literal>hibernate.properties</literal>, um arquivo mais sofisticado "
+"<literal>hibernate.cfg.xml</literal> ou até mesmo uma instalação "
+"programática completa. A maioria dos usuários prefere utilizar o arquivo de "
+"configuração XML:"
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
-msgstr ""
+msgstr "Perceba que este arquivo de configuração especifica um DTD diferente"
#. Tag: para
-#: tutorial.xml:366
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
"is a global factory responsible for a particular database. If you have "
"several databases, for easier startup you should use several <literal><"
"session-factory></literal> configurations in several configuration files."
msgstr ""
-"Note que esta configuração XML usa um diferente DTD. Nós configuraremos as "
-"<literal>SessionFactory</literal> do Hibernate â uma factory global "
-"responsável por uma base de dedados particular. Se você tiver diversas bases "
-"de dados, use diversas configurações <literal><session-factory></"
-"literal>, geralmente em diversos arquivos de configuração (para uma partida "
-"mais fácil)."
+"Configure a <literal>SessionFactory</literal> do Hibernate. A SessionFactory "
+"é uma fábrica global responsável por uma base de dados particular. Se você "
+"tiver diversas bases de dados, use diversas configurações <literal><"
+"session-factory></literal>, geralmente em diversos arquivos de "
+"configuração, para uma inicialização mais fácil. "
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
"configuration for the JDBC connection. The dialect <literal>property</"
"literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
+"Os primeiros quatro elementos <literal>property</literal> contêm a "
+"configuração necessária para a conexão JBDC. O elemento <literal>property</"
+"literal> do dialeto especifica a variante do SQL particular que o Hibernate "
+"gera."
#. Tag: para
-#: tutorial.xml:380
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
+"Na maioria dos casos, o Hibernate está apto a determinar corretamente qual "
+"dialeto em uso. Consulte <xref linkend=\"portability-dialectresolver\"/> "
+"para maiores informações. "
#. Tag: para
-#: tutorial.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
"particularly useful in this context. The <literal>hbm2ddl.auto</literal> "
@@ -775,34 +718,30 @@
"Ant task. Finally, add the mapping file(s) for persistent classes to the "
"configuration."
msgstr ""
-"As primeiras quatro <literal>propriedades</literal> do elemento contém a "
-"configuração necessária para a conexão ao JDBC. A propriedade "
-"<literal>propriedade</literal> dialect do elemento especifica a variante "
-"particular do SQL que o Hibernate gera. O gerenciamento automático de sessão "
-"do Hibernate para contextos de persistência estará disponÃvel em breve. A "
-"opção <literal>hbm2ddl.auto</literal> habilita a geração automática de "
-"schemas da base de dados â diretamente na base de dados. Isto também pode "
-"ser naturalmente desligado (removendo a opção de configuração) ou "
-"redirecionando para um arquivo com ajuda do <literal>SchemaExport</literal> "
-"nas tarefas do Ant. Finalmente, iremos adicionar os arquivos das classes de "
-"persistência mapeadas na configuração."
+"O gerenciamento automático de sessão do Hibernate para contextos de "
+"persistência é bastante útil neste contexto. A opção <literal>hbm2ddl.auto</"
+"literal> habilita a geração automática de esquemas da base de dados, "
+"diretamente na base de dados. Isto também pode ser naturalmente desligado "
+"apenas removendo a opção de configuração ou redirecionado para um arquivo "
+"com ajuda do <literal>SchemaExport</literal> na tarefa do Ant. Finalmente, "
+"iremos adicionar os arquivos das classes de persistência mapeadas na "
+"configuração."
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
"<filename>src/main/resources</filename> directory."
msgstr ""
+"Salve este arquivo como <filename>hibernate.cfg.xml</filename> no diretório "
+"<filename>src/main/resources</filename>."
#. Tag: title
-#: tutorial.xml:403
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Building with Maven"
-msgstr "Construindo com o Ant"
+msgstr "Construindo com o Maven"
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -812,45 +751,21 @@
"basic project tasks. First, lets run the <literal>compile</literal> goal to "
"make sure we can compile everything so far:"
msgstr ""
+"Nós iremos construir agora o tutorial com Maven. Você necessitará que o "
+"Maven esteja instalado; ele está disponÃvel a partir do <ulink url=\"http://"
+"maven.apache.org/download.html\">Maven download page</ulink>. O Maven "
+"gravará o arquivo <filename>/pom.xml</filename> que criamos anteriormente, "
+"além de saber como executar algumas tarefas do projeto básico. Primeiro, "
+"vamos rodar o objetivo <literal>compile</literal> para nos certificarmos de "
+"que tudo foi compilado até agora:"
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
-msgstr "Startup and helpers"
+msgstr "Inicialização e Auxiliares "
#. Tag: para
-#: tutorial.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
"first you have to complete the setup with some infrastructure code. You have "
@@ -863,72 +778,40 @@
"<interfacename>org.hibernate.SessionFactory</interfacename> is a thread-safe "
"global object that is instantiated once."
msgstr ""
-"Ã hora de carregar e arquivar alguns objetos <literal>Event</literal>, mas "
-"primeiro nós temos de completar o setup com algum código de infraestrutura. "
-"Este startup inclui a construção de um objeto <literal>SessionFactory</"
-"literal> global e armazenar isto em algum lugar de fácil acesso para o "
-"código da aplicação. Uma <literal>SessionFactory</literal> pode abrir novas "
-"<literal>Session</literal>'s. Uma <literal>Session</literal> representa uma "
-"unidade single-theaded do trabalho, a <literal>SessionFactory</literal> é um "
-"objeto global thread-safe, instanciado uma vez."
+"Ã hora de carregar e armazenar alguns objetos <literal>Event</literal>, mas "
+"primeiro nós temos de completar a instalação com algum código de "
+"infraestrutura. Você precisa inicializar o Hibernate pela construção de um "
+"objeto <interfacename>org.hibernate.SessionFactory</interfacename> global e "
+"o armazenamento dele em algum lugar de fácil acesso para o código da "
+"aplicação. O <interfacename>org.hibernate.SessionFactory</interfacename> é "
+"usado para obter instâncias <interfacename>org.hibernate.Session</"
+"interfacename>. O <interfacename>org.hibernate.Session</interfacename> "
+"representa uma unidade de single-threaded de trabalho. O <interfacename>org."
+"hibernate.SessionFactory</interfacename> é um objeto global thread-safe, "
+"instanciado uma vez. "
#. Tag: para
-#: tutorial.xml:436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
"care of startup and makes accessing the <interfacename>org.hibernate."
"SessionFactory</interfacename> more convenient."
msgstr ""
-"Nos iremos criar uma classe de ajuda <literal>HibernateUtil</literal>, que "
-"toma conta do startup e faz acesso a uma <literal>SessionFactory</literal> "
-"conveniente. Vamos dar uma olhada na implementação:"
+"Criaremos uma classe de ajuda <literal>HibernateUtil</literal>, que cuida da "
+"inicialização e faz acesso a uma <interfacename>org.hibernate."
+"SessionFactory</interfacename> mais conveniente. "
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
"HibernateUtil.java</filename>"
msgstr ""
+"Salve este código como <filename>src/main/java/org/hibernate/tutorial/util/"
+"HibernateUtil.java</filename>"
#. Tag: para
-#: tutorial.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
"SessionFactory</interfacename> reference in its static initializer; it also "
@@ -937,15 +820,15 @@
"reference from JNDI in an application server or any other location for that "
"matter."
msgstr ""
-"Esta classe não só produz a global <literal>SessionFactory</literal> no seu "
-"static initializer (chamado uma vez pela JVM quando a classe é carregada), "
-"mas também esconde o fato de que isto usa um static singleton. Ela pode "
-"muito bem, enxergar a <literal>SessionFactory</literal> do JNDI em um "
-"application server."
+"Esta classe não só produz uma referência <interfacename>org.hibernate."
+"SessionFactory</interfacename> global em seu inicializador estático, mas "
+"também esconde o fato de que utiliza um autônomo estático. Nós poderemos "
+"buscar pela referência <interfacename>org.hibernate.SessionFactory</"
+"interfacename> a partir do JNDI no servidor da aplicação ou qualquer outra "
+"localização para este assunto."
#. Tag: para
-#: tutorial.xml:458
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
"a name in your configuration, Hibernate will try to bind it to JNDI under "
@@ -954,16 +837,16 @@
"<literal>HibernateService</literal> to JNDI. Such advanced options are "
"discussed later."
msgstr ""
-"Se você der à <literal>SessionFactory</literal> um nome, no seu arquivo de "
-"configuração. O Hibernate irá, de fato, tentar uni-lo ao JNDI depois que "
-"estiver construÃdo. Para evitar este completamente este código, você também "
-"poderia usar JMX deployment e deixar o contêiner JMX capaz, instanciar e "
-"unir um <literal>HibernateService</literal> no JNDI. Essas opções avançadas "
-"são discutidas no documento de referência do Hibernate."
+"Se você der um nome à <literal>SessionFactory</literal> em seu arquivo de "
+"configuração, o Hibernate irá, de fato, tentar vinculá-lo ao JNDI sob aquele "
+"nome, depois que estiver construÃdo. Outra opção melhor seria usar a "
+"implementação JMX e deixar o recipiente JMX capaz, instanciar e vincular um "
+"<literal>HibernateService</literal> ao JNDI. Essas opções avançadas são "
+"discutidas no documento de referência do Hibernate. Tais opções avançadas "
+"serão discutidas mais tarde."
#. Tag: para
-#: tutorial.xml:467
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
"and provides two choices: Log4j and JDK 1.4 logging. Most developers prefer "
@@ -974,103 +857,55 @@
"configuration, you can change the settings. By default, only the Hibernate "
"startup message is shown on stdout."
msgstr ""
-"Novamente, isto deve compilar sem problemas. Finalmente, nós precisamos "
-"configurar um sistema de logging â o Hibernate usa commons logging e deixa "
-"você escolher entre o Log4j e o logging do JDK 1.4 . A maioria dos "
-"desenvolvedores preferem o Log4j: copie <literal>log4j.properties</literal> "
-"da distribuição do Hibernate (está no diretório <literal>etc/</literal>), "
-"para seu diretório <literal>src</literal>, depois vá em hibernate.cfg.xml. "
-"Dê uma olhada no exemplo de configuração e mude as configurações se você "
-"quizer ter uma saÃda mais detalhada. Por default, apenas as mensagems de "
-"startup e shwwn do Hibernate é mostrada no stdout."
+"Você precisará agora configurar um sistema de logging. O Hibernate usa "
+"logging comuns e lhe oferece a escolha entre o Log4j e o logging do JDK "
+"1.4 . A maioria dos desenvolvedores prefere o Log4j: copie <literal>log4j."
+"properties</literal> da distribuição do Hibernate no diretório <literal>etc/"
+"</literal>, para seu diretório <literal>src</literal>, depois vá em "
+"<literal>hibernate.cfg.xml</literal>. Dê uma olhada no exemplo de "
+"configuração e mude as configurações se você quiser ter uma saÃda mais "
+"detalhada. Por padrão, apenas as mensagens de inicialização do Hibernate são "
+"mostradas no stdout."
#. Tag: para
-#: tutorial.xml:477
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
"real work with Hibernate."
msgstr ""
-"O tutorial de infra-estrutura está completo - e nós já estamos preparados "
-"para algum trabalho de verdade com o Hibernate."
+"O tutorial de infra-estrutura está completo e nós já estamos preparados para "
+"algum trabalho de verdade com o Hibernate. "
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr "Carregando e salvando objetos"
#. Tag: para
-#: tutorial.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
"by writing an <literal>EventManager</literal> class with a <literal>main()</"
"literal> method:"
msgstr ""
-"Finalmente, nós podemos usar o Hibernate para carregar e armazenar objetos. "
-"Nós escrevemos uma classe <literal>EventManager</literal> com um método main"
-"():"
+"Agora estamos prontos a começar a trabalhar de verdade com o Hibernate. "
+"Vamos começar escrevendo uma classe <literal>EventManager</literal> com um "
+"método <literal>main()</literal>:"
-#. Tag: programlisting
-#: tutorial.xml:493
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:495
-#, fuzzy, no-c-format
-msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
"literal> object and handed it over to Hibernate. At that point, Hibernate "
"takes care of the SQL and executes an <literal>INSERT</literal> on the "
"database."
msgstr ""
-"Nós criamos um novo objeto <literal>Event</literal>, e passamos para o "
-"Hibernate. O Hibernate sabe como tomar conta do SQL e executa "
-"<literal>INSERT</literal>s no banco de dados. Vamos dar uma olhada na "
-"<literal>Session</literal> e no código <literal>Transaction</literal>-"
-"handling antes de executarmos."
+"Em <literal>createAndStoreEvent()</literal>, criamos um novo objeto de "
+"<literal>Event</literal>, e passamos para o Hibernate. O Hibernate sabe como "
+"tomar conta do SQL e executa <literal>INSERT</literal>s no banco de dados. "
#. Tag: para
-#: tutorial.xml:502
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
"single unit of work (a single atmoic piece of work to be performed). For now "
@@ -1081,17 +916,18 @@
"interfacename> API. In this particular case we are using JDBC-based "
"transactional semantics, but it could also run with JTA."
msgstr ""
-"Um <literal>Session</literal> é uma unidade simples de trabalho. Por agora "
-"nós iremos pegar coisas simples e assumir uma granularidade de um-pra-um "
-"entre uma <literal>Session</literal> do Hibernate e uma transação de banco "
-"de dados. Para proteger nosso código de um atual sistema subjacente de "
-"transação (nesse caso puro JDBC, mas também poderia rodar com JTA), nos "
-"usamos a API <literal>Transaction</literal>, que está disponÃvel na "
-"<literal>Session</literal> do Hibernate."
+"O <interface>org.hibernate.Session</interface> é designado a representar uma "
+"unidade simples de trabalho (um pedaço atômico simples de trabalho a ser "
+"executado). Nesta fase manteremos tudo muito simples e consideraremos uma "
+"granularidade de um-para-um entre um <interface>org.hibernate.Session</"
+"interface> do Hibernate e uma transação de banco de dados. Para proteger "
+"nosso código do sistema subjacente de transação, usamos o Hibernate "
+"<interfacename>org.hibernate.Transaction</interfacename> API. Neste caso em "
+"particular, nós estamos usando as semânticas transacionais baseadas o JDBC, "
+"mas isto pode rodar também com o JTA."
#. Tag: para
-#: tutorial.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
"you can call it as many times and anywhere you like once you get hold of "
@@ -1103,17 +939,16 @@
"is bound to the current Java thread that executes the application."
msgstr ""
"O que a <literal>sessionFactory.getCurrentSession()</literal> faz? Primeiro, "
-"você pode chamar quantas vezes e de onde quiser, uma vez você recebe sua "
-"<literal>SessionFactory</literal> (fácil graças ao <literal>HibernateUtil</"
-"literal>). O método <literal>getCurrentSession()</literal> sempre retorna a "
-"unidade de trabalho \"corrente\". Lembra de que nós mudamos a opção de "
-"configuração desse mecanismo para thread no <literal>hibernate.cfg.xml</"
-"literal>? Daqui em diante, o escopo da unidade de trabalho corrente é a "
-"thread Java corrente que executa nossa aplicação. Entretanto, esta não é "
-"toda a verdade. Uma"
+"você pode chamar quantas vezes e de onde quiser, assim que você receber sua "
+"<interfacename>org.hibernate.SessionFactory</interfacename>. O método "
+"<literal>getCurrentSession()</literal> sempre retorna à unidade de trabalho "
+"\"atual\". Você se lembra que nós mudamos a opção de configuração desse "
+"mecanismo para \"thread\" em nosso <filename>src/main/resources/hibernate."
+"cfg.xml</filename>? Devido a esta configuração, o contexto de uma unidade de "
+"trabalho atual estará vinculada à thread Java atual que executa nossa "
+"aplicação. "
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1121,10 +956,13 @@
"prototyping and tutorials such as this one. Current session tracking is "
"discussed in more detail later on."
msgstr ""
+"O Hibernate oferece três métodos da sessão atual. O método \"thread\" "
+"baseado não possui por interesse o uso de produção; ele é basicamente útil "
+"para prototyping e tutoriais tais como este. A sessão atual será discutida "
+"em mais detalhes mais tarde."
#. Tag: para
-#: tutorial.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
"<literal>getCurrentSession()</literal> is made for the current thread. It is "
@@ -1135,19 +973,17 @@
"new <interface>org.hibernate.Session</interface> and can start a new unit of "
"work."
msgstr ""
-"<literal>Session</literal> começa quando é primeiramente necessária, quando "
-"é feita a primeira chamada à <literal>getCurrentSession()</literal>. à então "
-"limitado pelo Hibernate para thread corrente. Quando a transação termina, "
-"tanto com commit quanto rollback, o Hibernate também desune a "
-"<literal>Session</literal> da thread e fecha isso pra você. Se você chamar "
-"<literal>getCurrentSession()</literal> novamente, você receberá uma nova "
-"<literal>Session</literal> e pode começar uma nova unidade de trabalho. Esse "
-"modelo de programação de limite de thread <emphasis>thread-bound</emphasis>, "
-"é o modo mais popular de se usar o Hibernate."
+"Um <interface>org.hibernate.Session</interface> começa quando for "
+"necessária, quando é feita a primeira chamada à <literal>getCurrentSession()"
+"</literal>. à então limitada pelo Hibernate para a thread atual. Quando a "
+"transação termina, tanto com commit quanto rollback, o Hibernate também "
+"desvincula a <literal>Session</literal> da thread e fecha isso pra você. Se "
+"você chamar <literal>getCurrentSession()</literal> novamente, você receberá "
+"uma nova <literal>Session</literal> e poderá começar uma nova unidade de "
+"trabalho. "
#. Tag: para
-#: tutorial.xml:551
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
"hibernate.Session</interface> be used to execute one or several database "
@@ -1161,149 +997,110 @@
"<emphasis>session-per-operation</emphasis> an anti-pattern. A real web "
"application is shown later in the tutorial which will help illustrate this."
msgstr ""
-"Related to the unit of work scope, should the Hibernate <literal>Session</"
-"literal> be used to execute one or several database operations? The above "
-"example uses one <literal>Session</literal> for one operation. This is pure "
-"coincidence, the example is just not complex enough to show any other "
-"approach. The scope of a Hibernate <literal>Session</literal> is flexible "
-"but you should never design your application to use a new Hibernate "
-"<literal>Session</literal> for <emphasis>every</emphasis> database "
-"operation. So even if you see it a few more times in the following (very "
-"trivial) examples, consider <emphasis>session-per-operation</emphasis> an "
-"anti-pattern. A real (web) application is shown later in this tutorial."
+"Em relação ao escopo da unidade de trabalho, o Hibernate <interface>org."
+"hibernate.Session</interface> deve ser utilizado para executar uma ou mais "
+"operações do banco de dados? O exemplo acima utiliza uma <literal>Session</"
+"literal> para cada operação. Isto é pura coincidência, o exemplo "
+"simplesmente não é complexo o bastante para mostrar qualquer outra "
+"abordagem. O escopo de um Hibernate <interface>org.hibernate.Session</"
+"interface> é flexÃvel, mas você nunca deve configurar seu aplicativo para "
+"utilizar um novo Hibernate <interface>org.hibernate.Session</interface> para "
+"aoperação de banco de dados <emphasis>every</emphasis>. Portanto, mesmo que "
+"você o veja algumas vezes mais nos seguintes exemplos, considere "
+"<emphasis>session-per-operation</emphasis> como um anti-modelo. Um "
+"aplicativo da web real será demonstrado mais adiante neste tutorial."
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
"Dê uma olhada no <xref linkend=\"transactions\"/> para mais informações a "
"respeito de manipulação de transação e demarcação. Nós também pulamos "
-"qualquer manipulação de erro e rollback no exemplo anterior."
+"qualquer manipulação de erro e rollback no exemplo anterior. "
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
"with the necessary classpath setup: <command>mvn exec:java -Dexec.mainClass="
"\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store\"</command>"
msgstr ""
+"Para rodar isto, nós faremos uso do Maven exec plugin para chamar nossa "
+"classe com a instalação do classpath necessária: <command>mvn exec:java -"
+"Dexec.mainClass=\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store"
+"\"</command>"
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
-msgstr ""
+msgstr "Você precisa executar o <command>mvn compile</command> primeiramente."
#. Tag: para
-#: tutorial.xml:586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
"lots of log output. Towards the end, the following line will be displayed:"
msgstr ""
-"Você deverá ver, após a compilação, o startup do Hibernate e, dependendo da "
-"sua configuração, muito log de saÃda. No final você verá a seguinte linha:"
+"Você deverá ver, após a compilação, a inicialização do Hibernate e, "
+"dependendo da sua configuração, muito log de saÃda. No final, você verá a "
+"seguinte linha: "
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
-msgstr ""
+msgstr "Este é o <literal>INSERT</literal> executado pelo Hibernate."
#. Tag: para
-#: tutorial.xml:597
-#, fuzzy, no-c-format
+#, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
-"Agora nós gostarÃamos de listar os eventos arquivados, então nós adicionamos "
-"uma opção para o método main:"
+"Adicionamos uma opção para o método principal com o objetivo de listar os "
+"eventos arquivados: "
-#. Tag: programlisting
-#: tutorial.xml:601
-#, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:603
-#, fuzzy, no-c-format
-msgid "A new <literal>listEvents() method is also added</literal>:"
-msgstr "Nos também adicionamos um novo <literal>método listEvents()</literal>:"
-
-#. Tag: programlisting
-#: tutorial.xml:607
#, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
+msgid "A new <literal>listEvents() method is also added</literal>:"
msgstr ""
+"Nos também adicionamos um novo <literal>listEvents() method is also added</"
+"literal>: "
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
-"O que nós fazemos aqui, é usar uma query HQL (Hibernate Query Language), "
-"para carregar todos os objetos <literal>Event</literal> exitentes no banco "
-"de dados. O Hibernate irá gerar o SQL apropriado, enviar para o banco de "
-"dados e popular objetos <literal>Event</literal> com os dados. Você pode "
-"criar queries mais complexas com HQL, claro."
+"Neste caso, nós usamos uma consulta Hibernate Query LanguageHQL (HQL), para "
+"carregar todos os objetos <literal>Event</literal> existentes no banco de "
+"dados. O Hibernate irá gerar o SQL apropriado, enviar para o banco de dados "
+"e popular objetos <literal>Event</literal> com os dados. Você pode criar "
+"consultas mais complexas com HQL. Consulte <xref linkend=\"queryhql\"/> para "
+"maiores informações. "
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
"\" -Dexec.args=\"list\"</command>"
msgstr ""
+"Agora podemos chamar nossa nova funcionalidade usando, novamente, o Maven "
+"exec plugin: <command>mvn exec:java -Dexec.mainClass=\"org.hibernate."
+"tutorial.EventManager\" -Dexec.args=\"list\"</command>"
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
-msgstr "Part 2 - Mapeando associações"
+msgstr "Parte 2 - Mapeando associações "
#. Tag: para
-#: tutorial.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
"isolation. Let's expand on that a bit and add some class associations. We "
@@ -1311,112 +1108,63 @@
"participate."
msgstr ""
"Nós mapeamos uma classe de entidade de persistência para uma tabela. Agora "
-"vamos continuar e adicionar algumas associações de classe. Primeiro nos "
-"iremos adicionar pessoas a nossa aplicação, e armazenar os eventos de que "
-"elas participam."
+"vamos continuar e adicionar algumas associações de classe. Primeiro iremos "
+"adicionar pessoas à nossa aplicação e armazenar os eventos em que elas "
+"participam. "
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
-msgstr "Mapeando a classe Person"
+msgstr "Mapeando a classe Person "
#. Tag: para
-#: tutorial.xml:639
-#, fuzzy, no-c-format
-msgid "The first cut of the <literal>Person</literal> class looks like this:"
-msgstr "O primeiro código da classe <literal>Person</literal> é simples:"
-
-#. Tag: programlisting
-#: tutorial.xml:643
#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
+msgid "The first cut of the <literal>Person</literal> class looks like this:"
msgstr ""
+"O primeira parte da classe <literal>Person</literal> parece-se com isto: "
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
"domain/Person.java</filename>"
msgstr ""
+"Salve isto ao arquivo nomeado <filename>src/main/java/org/hibernate/tutorial/"
+"domain/Person.java</filename>"
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
+"Após isto, crie um novo arquivo de mapeamento como <filename>src/main/"
+"resources/org/hibernate/tutorial/domain/Person.hbm.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
-msgstr "Finalmente, adicione o novo mapeamento a configuração do Hibernate:"
+msgstr "Finalmente, adicione o novo mapeamento à configuração do Hibernate: "
-#. Tag: programlisting
-#: tutorial.xml:661
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:663
-#, fuzzy, no-c-format
-msgid ""
"Create an association between these two entities. Persons can participate in "
"events, and events have participants. The design questions you have to deal "
"with are: directionality, multiplicity, and collection behavior."
msgstr ""
-"Nos iremos agora criar uma associação entre estas duas entidades. "
-"Obviamente, pessoas (Person) podem participar de eventos, e eventos possuem "
-"participantes. As questões de design com que teremos de lidar são: "
-"direcionalidade, multiplicidade e comportamento de coleção."
+"Crie agora uma associação entre estas duas entidades. As pessoas (Person) "
+"podem participar de eventos, e eventos possuem participantes. As questões de "
+"design com que teremos de lidar são: direcionalidade, multiplicidade e "
+"comportamento de coleção. "
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
-msgstr "Uma associação Set-based unidirectional"
+msgstr "Uma associação unidirecional baseada em Configuração"
#. Tag: para
-#: tutorial.xml:675
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
"can easily navigate to the events for a particular person, without executing "
@@ -1426,35 +1174,18 @@
"Set</interfacename> because the collection will not contain duplicate "
"elements and the ordering is not relevant to our examples:"
msgstr ""
-"Nos iremos adicionar uma coleção de eventos na classe <literal>Person</"
-"literal>. Desse jeito poderemos navegar pelos eventos de uma pessoa em "
-"particular, sem executar uma query explicitamente â apenas chamando "
-"<literal>aPerson.getEvents()</literal>. Nos usaremos uma coleção Java, um "
-"<literal>Set</literal>, porquê a coleção não conterá elementos duplicados e "
-"a ordem não é relevante para nós."
+"Iremos adicionar uma coleção de eventos na classe <literal>Person</literal>. "
+"Dessa forma, poderemos navegar pelos eventos de uma pessoa em particular, "
+"sem executar uma consulta explicitamente, apenas chamando "
+"<literal>Person#getEvents</literal>. As associações de valores múltiplos são "
+"representadas no Hibernate por um dos contratos do Java Collection "
+"Framework; aqui nós escolhemos um <interfacename>java.util.Set</"
+"interfacename>, uma vez que a coleção não conterá elementos duplicados e a "
+"ordem não é relevante em nossos exemplos:"
-#. Tag: programlisting
-#: tutorial.xml:686
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Before mapping this association, let's consider the other side. We could "
"just keep this unidirectional or create another collection on the "
"<literal>Event</literal>, if we wanted to be able to navigate it from both "
@@ -1467,40 +1198,18 @@
msgstr ""
"Antes de mapearmos esta associação, pense no outro lado. Claramente, "
"poderÃamos apenas fazer isto de forma unidirecional. Ou poderÃamos criar "
-"outra coleção no <literal>Event</literal>, se quisermos ser capaz de navegar "
-"bidirecionalmente, i.e. um - <literal>anEvent.getParticipants()</literal>. "
-"Isto não é necessário, de perspectiva funcional. Você poderia sempre "
-"executar uma query explicita que retornasse os participantes de um evento em "
-"particular. Esta é uma escolha de design que cabe a você, mas o que é claro "
-"nessa discussão é a multiplicidade da associação: \"muitos\" valores em "
-"ambos os lados, nós chamamos isto uma associação <emphasis>muitos-para-"
-"muitos</emphasis>. Daqui pra frente, nos usaremos o mapeamento muitos-para-"
-"muitos do Hibernate:"
+"outra coleção no <literal>Event</literal>, se quisermos navegar de ambas "
+"direções. Isto não é necessário, de uma perspectiva funcional. Você poderá "
+"sempre executar uma consulta explÃcita para recuperar os participantes de um "
+"evento em particular. Esta é uma escolha de design que cabe a você, mas o "
+"que é claro nessa discussão é a multiplicidade da associação: \"muitos\" "
+"válidos em ambos os lados, nós chamamos isto de uma associação "
+"<emphasis>muitos-para-muitos</emphasis>. Daqui pra frente, usaremos o "
+"mapeamento muitos-para-muitos do Hibernate: "
-#. Tag: programlisting
-#: tutorial.xml:701
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:703
-#, fuzzy, no-c-format
-msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
"literal> being most common. For a many-to-many association, or <emphasis>n:"
"m</emphasis> entity relationship, an association table is required. Each row "
@@ -1513,81 +1222,40 @@
"tell Hibernate the class of the objects in your collection (the class on the "
"other side of the collection of references)."
msgstr ""
-"O Hibernate suporta todo tipo de mapeamento de coleção , sendo um "
-"<literal><set></literal> mais comum. Para uma associação muitos-para-"
-"muitos (ou relacionamento de entidade <emphasis>n:m</emphasis> ), uma tabela "
-"de associação é necessária. Cada linha nessa tabela representa um link entre "
-"uma pessoa e um evento. O nome da tabela é configurado com o atributo "
-"<literal>table</literal> do elemento <literal>set</literal>. O nome da "
-"coluna identificadora na associção, peloo lado da pessoa, é definido com o "
-"elemento <literal><key></literal> , o nome da coluna pelo lado dos "
-"eventos, e definido com o atributo <literal>column</literal> do <literal><"
-"many-to-many></literal>. Você também precisa dizer para o Hibernate a "
-"classe dos objetos na sua coleção (a classe do outro lado das coleções de "
-"referência)."
+"O Hibernate suporta todo tipo de mapeamento de coleção, sendo um "
+"<literal>set</literal> mais comum. Para uma associação muitos-para-muitos ou "
+"relacionamento de entidade <emphasis>n:m</emphasis>, é necessária uma tabela "
+"de associação. Cada linha nessa tabela representa um link entre uma pessoa e "
+"um evento. O nome da tabela é configurado com a função <literal>table</"
+"literal> do elemento <literal>set</literal>. O nome da coluna identificadora "
+"na associação, pelo lado da pessoa, é definido com o elemento <literal>key</"
+"literal>, o nome da coluna pelo lado dos eventos, é definido com a função "
+"<literal>column</literal> do <literal>many-to-many</literal>. Você também "
+"precisa dizer para o Hibernate a classe dos objetos na sua coleção (a classe "
+"do outro lado das coleções de referência)."
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
-msgstr "O esquema de mapeamento para o banco de dados está a seguir:"
+msgstr "O esquema de mapeamento para o banco de dados está a seguir: "
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
-msgstr "Trabalhando a associação"
+msgstr "Trabalhando a associação "
#. Tag: para
-#: tutorial.xml:730
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
"<literal>EventManager</literal>:"
msgstr ""
-"Vamos trazer juntos algumas pessoas e eventos em um novo método na classe "
-"<literal>EventManager</literal>::"
+"Vamos reunir algumas pessoas e eventos em um novo método na classe "
+"<literal>EventManager</literal>:"
-#. Tag: programlisting
-#: tutorial.xml:734
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:736
-#, fuzzy, no-c-format
-msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
"simply modify the collection using the normal collection methods. There is "
"no explicit call to <literal>update()</literal> or <literal>save()</"
@@ -1605,24 +1273,21 @@
"Após carregar um <literal>Person</literal> e um <literal>Event</literal>, "
"simplesmente modifique a coleção usando os métodos normais de uma coleção. "
"Como você pode ver, não há chamada explÃcita para <literal>update()</"
-"literal> ou <literal>save()</literal>, o Hibernate detecta automaticamente "
-"que a coleção foi modificada e necessita ser atualizada. Isso é chamado de "
-"<emphasis>checagem suja automática</emphasis>, e você também pode usá-la "
-"modificando o nome ou a data de qualquer um dos seus objetos. Assim que eles "
-"estiverem no estado <emphasis>persistent</emphasis>, ou seja, limitado por "
-"uma <literal>Session</literal> do Hibernate em particular (i.e. eles foram "
-"carregados ou salvos dentro de uma unidade de trabalho), o Hibernate "
-"monitora qualquer alteração e executa o SQL em modo de escrita em segundo "
-"plano. O processo de sincronização do estado da memória com o banco de "
-"dados, geralmente apenas no final de uma unidade de trabalho, é chamado de "
-"<emphasis>flushing</emphasis>. No nosso código, a unidade de trabalho "
-"termina com o commit da transação do banco de dados â como definido pela "
-"opção de configuração da <literal>thread</literal> da classe "
-"<literal>CurrentSessionContext</literal>."
+"literal> ou <literal>save()</literal>; o Hibernate detecta automaticamente "
+"que a coleção foi modificada e que necessita ser atualizada. Isso é chamado "
+"de <emphasis>checagem suja automática</emphasis>, e você também pode usá-la "
+"modificando o nome ou a data de qualquer um dos seus objetos. Desde que eles "
+"estejam no estado <emphasis>persistent</emphasis>, ou seja, limitado por uma "
+"<literal>Session</literal> do Hibernate em particular, o Hibernate monitora "
+"qualquer alteração e executa o SQL em modo de gravação temporária. O "
+"processo de sincronização do estado da memória com o banco de dados, "
+"geralmente apenas no final de uma unidade de trabalho, normalmente apenas no "
+"final da unidade de trabalho, é chamado de <emphasis>flushing</emphasis>. No "
+"nosso código, a unidade de trabalho termina com o commit , ou rollback, da "
+"transação do banco de dados. "
#. Tag: para
-#: tutorial.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
"an object outside of a <interfacename>org.hibernate.Session</interfacename>, "
@@ -1631,67 +1296,30 @@
"when it is detached:"
msgstr ""
"Você pode também querer carregar pessoas e eventos em diferentes unidades de "
-"trabalho. Ou você modifica um objeto fora de uma <literal>Session</literal>, "
-"quando não se encontra no estado persistent (se já esteve neste estado "
-"anteriormente, chamamos esse estado de <emphasis>detached</emphasis>). Você "
-"pode até mesmo modificar uma coleção quando esta se encontrar no estado "
-"detached."
+"trabalho. Ou você modifica um objeto fora de um <interfacename>org.hibernate."
+"Session</interfacename>, quando não se encontra no estado persistente (se já "
+"esteve neste estado anteriormente, chamamos esse estado de "
+"<emphasis>detached</emphasis>). Você pode até mesmo modificar uma coleção "
+"quando esta se encontrar no estado detached:"
-#. Tag: programlisting
-#: tutorial.xml:764
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
"again by binding it to a new unit of work, so any modifications you made to "
"it while detached can be saved to the database. This includes any "
"modifications (additions/deletions) you made to a collection of that entity "
"object."
msgstr ""
-"A chamada <literal>update</literal> cria um objeto persistent novamente, "
-"você poderia dizer que ele liga o objeto a uma nova unidade de trabalho, "
-"assim qualquer modificação que você faça neste objeto enquanto estiver no "
-"estado detached pode ser salvo no banco de dados. Isso inclui qualquer "
+"A chamada <literal>update</literal> cria um objeto persistente novamente, "
+"pode-se dizer que ele liga o objeto a uma nova unidade de trabalho, assim "
+"qualquer modificação que você faça neste objeto enquanto estiver no estado "
+"desanexado pode ser salvo no banco de dados. Isso inclui qualquer "
"modificação (adição/exclusão) que você faça em uma coleção da entidade deste "
-"objeto."
+"objeto. "
#. Tag: para
-#: tutorial.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
"incorporate into your own application. Complete this exercise by adding a "
@@ -1700,32 +1328,17 @@
"an event - the <literal>save()</literal> method returns it (you might have "
"to modify some of the previous methods to return that identifier):"
msgstr ""
-"Bom, isso não foi muito usado na nossa situação, porém, é um importante "
-"conceito que você pode aplicar em seus aplicativos. Agora, complete este "
-"exercÃcio adicionando uma nova ação ao método main( ) da classe "
-"<literal>EventManager</literal> e chame-o pela linha de comando. Se você "
-"precisar dos identificadores de uma pessoa ou evento â o método <literal>save"
-"()</literal> retorna estes identificadores (você poderá modificar alguns dos "
-"métodos anteriores para retornar aquele identificador):"
+"Bem, isso não é de grande utilidade na nossa situação atual, porém, é um "
+"importante conceito que você pode criar em seu próprio aplicativo. No "
+"momento, complete este exercÃcio adicionando uma ação ao método principal da "
+"classe <literal>EventManager</literal> e chame-o pela linha de comando. Se "
+"você precisar dos identificadores de uma pessoa ou evento - o método "
+"<literal>save()</literal> retornará estes identificadores (você poderá "
+"modificar alguns dos métodos anteriores para retornar aquele identificador): "
-#. Tag: programlisting
-#: tutorial.xml:783
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:785
-#, fuzzy, no-c-format
-msgid ""
"This is an example of an association between two equally important classes : "
"two entities. As mentioned earlier, there are other classes and types in a "
"typical model, usually \"less important\". Some you have already seen, like "
@@ -1740,82 +1353,55 @@
"fact, in a Hibernate application all JDK classes are considered value types."
msgstr ""
"Este foi um exemplo de uma associação entre duas classes igualmente "
-"importantes, duas entidades. Como mencionado anteriormente, há outras "
+"importantes: duas entidades. Como mencionado anteriormente, há outras "
"classes e tipos dentro de um modelo tÃpico, geralmente \"menos importante\". "
"Alguns você já viu, como um <literal>int</literal> ou uma <literal>String</"
-"literal>. Nós chamamos essas classes de <emphasis>value types</emphasis>, e "
-"suas instâncias <emphasis>depend</emphasis> de uma entidade particular. As "
-"instâncias desses tipos não possuem sua própria identidade, nem são "
-"compartilhados entre entidades (duas pessoas não referenciam o mesmo objeto "
-"<literal>firstname</literal> mesmo se elas tiverem o mesmo objeto "
-"firstname). Naturalmente, os value types não são apenas encontrados dentro "
-"da JDK (de fato, em um aplicativo Hibernate todas as classes JDK são "
-"consideradas como value types), mas você pode também criar suas classes "
-"como, por exemplo, <literal>Address</literal> ou <literal>MonetaryAmount</"
-"literal>."
+"literal>. Nós chamamos essas classes de <emphasis>tipos de valores</"
+"emphasis>, e suas instâncias <emphasis>dependem</emphasis> de uma entidade "
+"particular. As instâncias desses tipos não possuem sua própria identidade, "
+"nem são compartilhados entre entidades. Duas pessoas não referenciam o mesmo "
+"objeto <literal>firstname</literal> mesmo se elas tiverem o mesmo objeto "
+"firstname. Naturalmente, os tipos de valores não são apenas encontrados "
+"dentro da JDK, mas você pode também criar suas classes como, por exemplo, "
+"<literal>Address</literal> ou <literal>MonetaryAmount</literal>. De fato, no "
+"aplicativo Hibernate todas as classes JDK são consideradas tipos de valores."
#. Tag: para
-#: tutorial.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
"different from a collection of references to other entities, but looks "
"almost the same in Java."
msgstr ""
-"Você também pode criar uma coleção de value types. Isso é conceitualmente "
-"muito diferente de uma coleção de referências para outras entidades, mas em "
-"Java parece ser quase a mesma coisa."
+"Você também pode criar uma coleção de tipo de valores. Isso é "
+"conceitualmente muito diferente de uma coleção de referências para outras "
+"entidades, mas em Java parece ser quase a mesma coisa. "
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
-msgstr "Coleção de valores"
+msgstr "Coleção de valores "
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
"entity. This will be represented as a <interfacename>java.util.Set</"
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
+"Vamos adicionar uma coleção de endereços de e-mail à entidade "
+"<literal>Person</literal>. Isto será representado como um "
+"<interfacename>java.util.Set</interfacename> das instâncias <classname>java."
+"lang.String</classname>:"
-#. Tag: programlisting
-#: tutorial.xml:820
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The mapping of this <literal>Set</literal> is as follows:"
-msgstr "O mapeamento deste <literal>Set</literal>:"
+msgstr "Segue abaixo o mapeamento deste <literal>Set</literal>: "
-#. Tag: programlisting
-#: tutorial.xml:826
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:828
-#, fuzzy, no-c-format
-msgid ""
"The difference compared with the earlier mapping is the use of the "
"<literal>element</literal> part which tells Hibernate that the collection "
"does not contain references to another entity, but is rather a collection "
@@ -1829,184 +1415,102 @@
"address values will actually be stored."
msgstr ""
"A diferença comparada com o mapeamento anterior se encontra na parte "
-"<literal>element</literal>, que indica ao Hibernate que a coleção não contém "
-"referências à outra entidade, mas uma coleção de elementos do tipo "
-"<literal>String</literal> (a tag name em miniscula indica que se trata de um "
-"mapeamento do Hibernate para conversão de tipos). Mais uma vez, o atributo "
+"<literal>element</literal>, que informa ao Hibernate que a coleção não "
+"contém referências à outra entidade, mas uma coleção de elementos do tipo "
+"<literal>String</literal>. O nome da tag em minúsculo indica que se trata de "
+"um tipo/conversor de mapeamento do Hibernate. Mais uma vez, a função "
"<literal>table</literal> do elemento <literal>set</literal> determina o nome "
"da tabela para a coleção. O elemento <literal>key</literal> define o nome da "
-"coluna de chave estrangeira na tabela de coleção. O atributo "
-"<literal>column</literal> dentro do elemento <literal>element</literal> "
-"define o nome da coluna onde os valores da <literal>String</literal> serão "
-"armazenados."
+"coluna de chave estrangeira na tabela de coleção. A função <literal>column</"
+"literal> dentro do elemento <literal>element</literal> define o nome da "
+"coluna onde os valores da <literal>String</literal> serão armazenados. "
#. Tag: para
-#: tutorial.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is the updated schema:"
-msgstr "Dê uma olhada no esquema atualizado:"
+msgstr "Segue abaixo o esquema atualizado: "
-#. Tag: programlisting
-#: tutorial.xml:848
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:850
-#, fuzzy, no-c-format
-msgid ""
"You can see that the primary key of the collection table is in fact a "
"composite key that uses both columns. This also implies that there cannot be "
"duplicate email addresses per person, which is exactly the semantics we need "
"for a set in Java."
msgstr ""
-"Você pode observar que a chave primária da tabela da coleção é de na verdade "
-"uma chave composta, usando ambas colunas. Isso também implica que cada "
+"Você pode observar que a chave primária da tabela da coleção é na verdade "
+"uma chave composta, usando as duas colunas. Isso também implica que cada "
"pessoa não pode ter endereços de e-mail duplicados, o que é exatamente a "
-"semântica que precisamos para um set em Java."
+"semântica que precisamos para um set em Java. "
#. Tag: para
-#: tutorial.xml:856
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
"by linking persons and events. It is the same code in Java:"
msgstr ""
-"Você pode agora tentar adicionar elementos a essa coleção, do mesmo modo que "
-"fizemos anteriormente ligando pessoas e eventos. à o mesmo código em Java:"
+"Você pode agora tentar adicionar elementos à essa coleção, do mesmo modo que "
+"fizemos anteriormente ligando pessoas e eventos. à o mesmo código em Java: "
-#. Tag: programlisting
-#: tutorial.xml:861
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:863
-#, fuzzy, no-c-format
-msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
"the collection. Monitor the SQL log and try to optimize this with an eager "
"fetch."
msgstr ""
-"This time we didnt' use a <emphasis>fetch</emphasis> query to initialize the "
-"collection. Hence, the call to its getter method will trigger an additional "
-"select to initialize it, so we can add an element to it. Monitor the SQL log "
-"and try to optimize this with an eager fetch."
+"Desta vez não utilizamos uma consulta <emphasis>fetch</emphasis> (busca) "
+"para inicializar a coleção. Monitore o log SQL e tente otimizá-lo com árdua "
+"busca. "
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
-msgstr "Associações bidirecionais"
+msgstr "Associações bidirecionais "
#. Tag: para
-#: tutorial.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
"association between person and event work from both sides in Java. The "
"database schema does not change, so you will still have many-to-many "
"multiplicity."
msgstr ""
-"Agora iremos mapear uma associação bidirecional â fazendo a associação entre "
-"pessoas e eventos, de ambos os lados, em Java. Logicamente, o esquema do "
-"banco de dados não muda, nós continuamos tendo multiplicidades muitos-para-"
-"muitos. Um banco de dados é mais flexÃvel do que uma linguagem de "
-"programação para redes, ele não precisa de nenhuma direção de navegação â os "
-"dados podem ser acessados em qualquer caminho possÃvel."
+"Agora iremos mapear uma associação bidirecional. Você fará uma associação "
+"entre o trabalho person e event de ambos os lados em Java. O esquema do "
+"banco de dados acima não muda, de forma que você continua possuir a "
+"multiplicidade muitos-para-muitos. "
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
"in that it does not need a navigation direction; data can be viewed and "
"retrieved in any possible way."
msgstr ""
+"Um banco de dados relacional é mais flexÃvel que um linguagem de programação "
+"da rede, de maneira que ele não precisa de uma direção de navegação; os "
+"dados podem ser visualizados e restaurados de qualquer maneira."
#. Tag: para
-#: tutorial.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
"class:"
msgstr ""
"Primeiramente, adicione uma coleção de participantes à classe "
-"<literal>Event</literal>:"
+"<literal>Event</literal>: "
-#. Tag: programlisting
-#: tutorial.xml:895
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:897
-#, fuzzy, no-c-format
-msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
msgstr ""
-"Agora mapeie este lado da associação em <literal>Event.hbm.xml</literal>."
+"Agora mapeie este lado da associação em <literal>Event.hbm.xml</literal>. "
-#. Tag: programlisting
-#: tutorial.xml:901
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:903
-#, fuzzy, no-c-format
-msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
"Notice that the column names in <literal>key</literal> and <literal>many-to-"
"many</literal> swap in both mapping documents. The most important addition "
@@ -2014,37 +1518,34 @@
"<literal>set</literal> element of the <literal>Event</literal>'s collection "
"mapping."
msgstr ""
-"Como você pode ver, esses é uma mapeamento normal usando <literal>set</"
-"literal> em ambos documenentos de mapeamento. Observe que o nome das colunas "
-"em <literal>key</literal> e <literal>many-to-many</literal> estão trocados "
-"em ambos os documentos de mapeamento. A adição mais importante feita está no "
-"atributo <literal>inverse=\"true\"</literal> no elemento set do mapeamento "
-"da coleção da classe <literal>Event</literal>."
+"Como você pode ver, esses são mapeamentos <literal>set</literal> normais em "
+"ambos documentos de mapeamento. Observe que os nomes das colunas em "
+"<literal>key</literal> e <literal>many-to-many</literal> estão trocados em "
+"ambos os documentos de mapeamento. A adição mais importante feita está na "
+"função <literal>inverse=\"true\"</literal> no elemento <literal>set</"
+"literal> da coleção da classe <literal>Event</literal>. "
#. Tag: para
-#: tutorial.xml:911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
"<literal>Person</literal> class, when it needs to find out information about "
"the link between the two. This will be a lot easier to understand once you "
"see how the bi-directional link between our two entities is created."
msgstr ""
-"Isso significa que o Hibernate deve pegar o outro lado â a classe "
-"<literal>Person</literal> â quando necessitar encontrar informação sobre a "
-"relação entre as duas entidades. Isso será muito mais facilmente "
-"compreendido quando você analisar como a relação bidirecional entre as "
-"entidades é criada."
+"Isso significa que o Hibernate deve pegar o outro lado, a classe "
+"<literal>Person</literal>, quando precisar encontrar informação sobre a "
+"relação entre as duas entidades. Isso será muito mais fácil de entender "
+"quando você analisar como a relação bidirecional entre as entidades é "
+"criada. "
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
-msgstr "Trabalhando com links bidirecionais"
+msgstr "Trabalhando com links bidirecionais "
#. Tag: para
-#: tutorial.xml:922
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
"How did we create a link between a <literal>Person</literal> and an "
@@ -2056,68 +1557,41 @@
"literal>. This process of \"setting the link on both sides\" is absolutely "
"necessary with bi-directional links."
msgstr ""
-"Primeiro tenha em mente que o Hibernate não afeta a semântica normal do "
-"Java. Como nós criamos um link entre uma <literal>Person</literal> e um "
-"<literal>Event</literal> no exemplo unidirecional? Nós adicionamos uma "
-"instância de <literal>Event</literal>, da coleção de referências de eventos, "
-"a uma instância de <literal>Person</literal>. Então, obviamente, se nós "
-"queremos que este link funcione bidirecionalmente, nós devemos fazer a mesma "
-"coisa para o outro lado â adicionando uma referência de <literal>Person</"
-"literal> na coleção de um <literal>Event</literal>. Esse acerto de link de "
-"ambos os lados é absolutamente necessário e você nunca deve esquecer de faze-"
-"lo."
+"Primeiro, tenha em mente que o Hibernate não afeta a semântica normal do "
+"Java. Como foi que criamos um link entre uma <literal>Person</literal> e um "
+"<literal>Event</literal> no exemplo unidirecional? Adicionamos uma instância "
+"de <literal>Event</literal>, da coleção de referências de eventos, à uma "
+"instância de <literal>Person</literal>. Então, obviamente, se quisermos que "
+"este link funcione bidirecionalmente, devemos fazer a mesma coisa para o "
+"outro lado, adicionando uma referência de <literal>Person</literal> na "
+"coleção de um <literal>Event</literal>. Essa \"configuração de link de ambos "
+"os lados\" é absolutamente necessária e você nunca deve esquecer de fazê-la. "
#. Tag: para
-#: tutorial.xml:932
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
"correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
-"Muitos desenvolvedores programam de maneira defensiva e criam métodos "
-"gerenciador de associações que ajusta corretamente ambos os lados:"
+"Muitos desenvolvedores programam de maneira defensiva e criam métodos de "
+"gerenciamento de um link que ajustam-se corretamente em ambos os lados (como "
+"por exemplo, em <literal>Person</literal>): "
-#. Tag: programlisting
-#: tutorial.xml:937
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:939
-#, fuzzy, no-c-format
-msgid ""
"The get and set methods for the collection are now protected. This allows "
"classes in the same package and subclasses to still access the methods, but "
"prevents everybody else from altering the collections directly. Repeat the "
"steps for the collection on the other side."
msgstr ""
-"Observe que os métodos set e get da a coleção estão protegidos â isso "
-"permite que classes e subclasses do mesmo pacote continuem acessando os "
-"métodos, mas previne que qualquer outra classe, que não esteja no mesmo "
-"pacote, acesse a coleção diretamente. Você provavelmente deve fazer a mesma "
-"coisa para a coleção do outro lado."
+"Observe que os métodos set e get da coleção estão protegidos. Isso permite "
+"que classes e subclasses do mesmo pacote continuem acessando os métodos, mas "
+"evita que qualquer outra classe, que não esteja no mesmo pacote, acesse a "
+"coleção diretamente. Repita os passos para a coleção do outro lado. "
#. Tag: para
-#: tutorial.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
"for Java, a bi-directional link is simply a matter of setting the references "
@@ -2132,32 +1606,30 @@
"as <literal>inverse</literal>. In a one-to-many association it has to be the "
"many-side, and in many-to-many association you can select either side."
msgstr ""
-"E sobre o mapeamento do atributo <literal>inverse</literal>? Pra você, e "
-"para o Java, um link bidirecional é simplesmente o fato de ajustar "
-"corretamente as referências de ambos os lados. O Hibernate, entretanto não "
-"possui informação necessária para corretamente adaptar os estados "
-"<literal>INSERT</literal> e <literal>UPDATE</literal> do SQL, e precisa de "
-"ajuda para manipular as propriedades das associações bidirecionais. Fazer um "
-"lado da associação com o atributo <literal>inverse</literal> instrui o "
-"Hibernate para basicamente ignora-lo, considerando-o uma <emphasis>cópia</"
-"emphasis> do outro lado. Isso é todo o necessário para o Hibernate trabalhar "
-"com todas as possibilidades quando transformando um modelo de navegação "
-"bidirecional em esquema de banco de dados do SQL. As regras que você possui "
-"para lembrar são diretas: Todas associações bidirecionais necessitam que um "
-"lado possua o atributo inverse. Em uma associação de um-para-muitos, o lado "
-"de \"muitos\" deve conter o atributo <literal>inverse</literal>, já em uma "
-"associação de muitos-para-muitos você pode pegar qualquer lado, não há "
-"diferença."
+"E sobre o mapeamento da função <literal>inverse</literal>? Para você, e para "
+"o Java, um link bidirecional é simplesmente uma questão de configurar "
+"corretamente as referências de ambos os lados. O Hibernate, entretanto, não "
+"possui informação necessária para ajustar corretamente as instruções "
+"<literal>INSERT</literal> e <literal>UPDATE</literal> do SQL (para evitar "
+"violações de restrição) e precisa de ajuda para manipular as associações "
+"bidirecionais de forma apropriada. Ao fazer um lado da associação com a "
+"função <literal>inverse</literal>, você instrui o Hibernate para basicamente "
+"ignorá-lo, considerando-o uma <emphasis>cópia</emphasis> do outro lado. Isso "
+"é o necessário para o Hibernate compreender todas as possibilidades quando "
+"transformar um modelo de navegação bidirecional em esquema de banco de dados "
+"do SQL. As regras que você precisa lembrar são diretas: todas as associações "
+"bidirecionais necessitam que um lado possua a função <literal>inverse</"
+"literal>. Em uma associação de um-para-muitos, precisará ser o lado de "
+"\"muitos\", já em uma associação de muitos-para-muitos você poderá "
+"selecionar qualquer lado. "
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
-msgstr "EventManager um aplicativo para internet"
+msgstr "EventManager um aplicativo da web"
#. Tag: para
-#: tutorial.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
"<literal>Transaction</literal> almost like a standalone application. "
@@ -2165,85 +1637,40 @@
"<literal>EventManagerServlet</literal>. This servlet can list all events "
"stored in the database, and it provides an HTML form to enter new events."
msgstr ""
-"Um aplicativo para internet do Hibernate usa uma <literal>Session</literal> "
-"e uma <literal>Transaction</literal> quase do mesmo modo que um aplicativo "
-"standalone. Entretanto, alguns patterns comuns são úteis. Nós agora "
-"criaremos um <literal>EventManagerServlet</literal>. Esse servlet lista "
-"todos os eventos salvos no banco de dados, e cria um formulário HTML para "
-"entrada de novos eventos."
+"Um aplicativo de web do Hibernate utiliza uma <literal>Session</literal> e "
+"uma <literal>Transaction</literal> quase do mesmo modo que um aplicativo "
+"autônomo. Entretanto, alguns modelos comuns são úteis. Nós agora criaremos "
+"um <literal>EventManagerServlet</literal>. Esse servlet lista todos os "
+"eventos salvos no banco de dados, e cria um formulário HTML para entrada de "
+"novos eventos. "
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
-msgstr "Criando um servlet básico"
+msgstr "Criando um servlet básico "
#. Tag: para
-#: tutorial.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
"handles HTTP <literal>GET</literal> requests, we will only implement the "
"<literal>doGet()</literal> method:"
msgstr ""
-"O servlet manuseia somente requisições <literal>GET</literal> do HTTP, "
-"portanto o método que iremos implementar é <literal>doGet()</literal>:"
+"Nós deveremos criar o nosso servket de processamento básico primeiramente. "
+"Uma vez que o servlet manuseia somente requisições <literal>GET</literal> do "
+"HTTP, o método que iremos implementar é <literal>doGet()</literal>: "
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
"EventManagerServlet.java</filename>"
msgstr ""
+"Salve esse servlet como <filename>src/main/java/org/hibernate/tutorial/web/"
+"EventManagerServlet.java</filename>"
#. Tag: para
-#: tutorial.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
"When a request hits the servlet, a new Hibernate <literal>Session</literal> "
@@ -2252,16 +1679,15 @@
"started. All data access occurs inside a transaction irrespective of whether "
"the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
-"O pattern que estamos aplicando neste código é chamado <emphasis>session-per-"
-"request</emphasis>. Quando uma requisição chega ao servlet, uma nova "
+"O modelo que estamos aplicando neste código é chamado <emphasis>session-per-"
+"request</emphasis>. Quando uma solicitação chega ao servlet, uma nova "
"<literal>Session</literal> do Hibernate é aberta através da primeira chamada "
"para <literal>getCurrentSession()</literal> em <literal>SessionFactory</"
-"literal>. Então uma transação do banco de dados é inicializada - todo acesso "
+"literal>. Então uma transação do banco de dados é inicializada e todo acesso "
"a dados deve ocorrer dentro de uma transação, não importando se o dado é de "
-"leitura ou escrita. (nós não devemos usar o modo auto-commit em aplicações)."
+"leitura ou escrita. Não se deve utilizar o modo auto-commit em aplicações. "
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2269,24 +1695,23 @@
"that is scoped to the whole request. Use <literal>getCurrentSession()</"
"literal>, so that it is automatically bound to the current Java thread."
msgstr ""
-"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
-"for every database operation. Use one Hibernate <literal>Session</literal> "
-"that is scoped to the whole request. Use <literal>getCurrentSession()</"
-"literal>, so that it is automatically bound to the current Java thread."
+"<emphasis>Nunca</emphasis> utilize uma nova <literal>Session</literal> do "
+"Hibernate para todas as operações de banco de dados. Utilize uma "
+"<literal>Session</literal> do Hibernate que seja de interesse à todas as "
+"solicitações. Utilize <literal>getCurrentSession()</literal>, para que seja "
+"vinculado automaticamente à thread atual de Java. "
#. Tag: para
-#: tutorial.xml:1003
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
"HTML is rendered. We will get to that part soon."
msgstr ""
-"Agora, as possibilidades de ações de uma requisição serão processadas e uma "
-"resposta HTML será renderizada. Nós já iremos chegar nesta parte."
+"Agora, as possÃveis ações de uma solicitação serão processadas e uma "
+"resposta HTML será renderizada. Já chegaremos nesta parte. "
#. Tag: para
-#: tutorial.xml:1008
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
"If any problems occurred during processing or rendering, an exception will "
@@ -2298,70 +1723,31 @@
"as you consider rendering your view in JSP, not in a servlet."
msgstr ""
"Finalmente, a unidade de trabalho termina quando o processamento e a "
-"restituição são completados. Se ocorrer algum erro durante o processamento "
-"ou a restituição, uma exceção será lançada e a transação do banco de dados "
-"encerrada. Isso completa o pattern <literal>session-per-request</literal>. "
-"Em vez de usar código de demarcação de transação em todo servlet você pode "
-"também criar um filtro servlet. Dê uma olhada no site do Hibernate e do Wiki "
-"para maiores informações sobre esse pattern, chamado <emphasis>Open Session "
-"in View</emphasis>."
+"renderização são completados. Se ocorrer algum erro durante o processamento "
+"ou a renderização, uma exceção será lançada e a transação do banco de dados "
+"revertida. Isso completa o modelo <literal>session-per-request</literal>. Em "
+"vez de usar código de demarcação de transação em todo servlet você pode "
+"também criar um filtro servlet. Dê uma olhada no website do Hibernate e do "
+"Wiki para maiores informações sobre esse modelo, chamado <emphasis>Sessão "
+"Aberta na Visualização</emphasis>. Você precisará disto assim que você "
+"considerar renderizar sua visualização no JSP, não apenas num servlet. "
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
msgstr "Processando e renderizando"
#. Tag: para
-#: tutorial.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
msgstr ""
-"Vamos implementar o processamento da requisição e a restituição da página "
-"HTML."
+"Vamos implementar o processamento da solicitação e renderização da página. "
-#. Tag: programlisting
-#: tutorial.xml:1028
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1030
-#, fuzzy, no-c-format
-msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
"complex application—keep in mind that we are only illustrating basic "
"Hibernate concepts in this tutorial. The code prints an HTML header and a "
@@ -2369,102 +1755,36 @@
"events in the database are printed. The first method is trivial and only "
"outputs HTML:"
msgstr ""
-"O estilo de código acima, misturando linguagem HTML e Java não será "
-"funcional em um aplicativo mais complexo—tenha em mente que neste "
-"manual nós estamos apenas ilustrando conceitos básicos do Hibernate. O "
-"código imprime um cabeçalho HTML e um rodapé. Dentro desta página, é "
-"mostrado um formulário em HTML, para entrada de novos eventos, e uma lista "
-"de todos os eventos contidos no banco de dados. O primeiro método é trivial "
-"e apenas imprime uma página HTML:"
+"O estilo deste código misturado com o Java e HTML, não escalariam em um "
+"aplicativo mais complexo, tenha em mente que estamos somente ilustrando os "
+"conceitos básicos do Hibernate neste tutorial. O código imprime um cabeçalho "
+"e nota de rodapé em HTML. Dentro desta página, são impressos um formulário "
+"para entrada de evento em HTML e uma lista de todos os evento no banco de "
+"dados. O primeiro método é trivial e somente produz um HTML:"
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
"<literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
-"O método <literal>listEvents()</literal> usa a <literal>Session</literal> do "
-"Hibernate associada a thread atual para executar um query:"
+"O método <literal>listEvents()</literal> utiliza a <literal>Session</"
+"literal> do Hibernate, limitado ao thread atual para executar uma consulta: "
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
"<literal>createAndStoreEvent()</literal> method, which also uses the "
"<literal>Session</literal> of the current thread:"
msgstr ""
-"Finalmente, a action <literal>store</literal> é passada pra o método "
-"<literal>createAndStoreEvent()</literal>, que também usa a <literal>Session</"
-"literal> da thread atual:"
+"Finalmente, a ação <literal>store</literal>, é despachada ao método "
+"<literal>createAndStoreEvent()</literal>, que também utiliza a "
+"<literal>Session</literal> da thread atual:"
-#. Tag: programlisting
-#: tutorial.xml:1055
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1057
-#, fuzzy, no-c-format
-msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
"single <literal>Session</literal> and <literal>Transaction</literal>. As "
"earlier in the standalone application, Hibernate can automatically bind "
@@ -2474,80 +1794,54 @@
"data access code into data access objects (the DAO pattern). See the "
"Hibernate Wiki for more examples."
msgstr ""
-"Pronto, o servlet está completo. Uma requisição para o servlet será "
-"processada em uma <literal>Session</literal> e uma <literal>Transaction</"
-"literal> simples. Como anteriormente, no aplicativo standalone, o Hibernate "
-"pode automaticamente associar esses objetos a thread atual em execução. Isso "
-"possibilita a liberdade de você modelar seu código e acessar o método "
-"<literal>SessionFactory</literal> do jeito que achar melhor. Geralmente você "
-"irá usar um design mais sofisticado e mover o código de acesso a dados para "
-"dentro de objetos de acesso a dados (o patter DAO). Leia o Hibernate Wiki "
-"para maiores exemplos."
+"O servlet está completo agora. Uma solicitação ao servlet será processada "
+"com uma única <literal>Session</literal> e <literal>Transaction</literal>. "
+"Quanto antes estiver no aplicativo autônomo, maior a chance do Hibernate "
+"vincular automaticamente estes objetos à thread atual de execução. Isto lhe "
+"dá a liberdade para inserir seu código e acessar a <literal>SessionFactory</"
+"literal> como desejar. Geralmente, usarÃamos um diagrama mais sofisticado e "
+"moverÃamos o código de acesso de dados para os objetos de acesso dos dados "
+"(o modelo DAO). Veja o Hibernate Wiki para mais exemplos. "
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
-msgstr "Instalando e testando"
+msgstr "Implementando e testando"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
"First we must define the WAR descriptor as <filename>src/main/webapp/WEB-INF/"
"web.xml</filename>"
msgstr ""
+"Para implementar este aplicativo em testes, nós devemos criar um Arquivo da "
+"Web (WAR). Primeiro, nós devemos definir o descritor WAR como <filename>src/"
+"main/webapp/WEB-INF/web.xml</filename>"
-#. Tag: programlisting
-#: tutorial.xml:1079
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1081
-#, fuzzy, no-c-format
-msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
"directory and copy the <filename>hibernate-tutorial.war</filename> file into "
"your Tomcat <filename>webapps</filename> directory."
msgstr ""
-"Para compilar e instalar execute <literal>ant war</literal> no seu diretório "
-"do projeto e copie o arquivo <literal>hibernate-tutorial.war</literal> para "
-"o diretório <literal>webapp</literal> do Tomcat. Se você não possui o Tomcat "
-"instalado faça o download e siga as instruções de instalação. Você não "
-"precisa modificar nenhuma configuração do Tomcat para rodar este aplicativo."
+"Para construir e implementar, chame seu diretório de projeto <literal>ant "
+"war</literal> e copie o arquivo <literal>hibernate-tutorial.war</literal> "
+"para seu diretório Tomcat <literal>webapp</literal>. "
#. Tag: para
-#: tutorial.xml:1088
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
+"Caso você não possua o Tomcat instalado, baixe isto do <ulink url=\"http://"
+"tomcat.apache.org/\"></ulink> e siga as instruções de instalação. Nosso "
+"aplicativo não solicita alterações à configuração Tomcat padrão."
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -2557,422 +1851,26 @@
"<literal>HibernateUtil</literal> is called) and to get the detailed output "
"if any exceptions occurs."
msgstr ""
-"Uma vez feito o deploy e com Tomcat rodando, acesse o aplicativo em "
+"Uma vez implementado e com o Tomcat rodando, acesse o aplicativo em "
"<literal>http://localhost:8080/hibernate-tutorial/eventmanager</literal>. "
-"Veja o log do Tomcat para observar a inicialização do Hibernate quando a "
-"primeira requisição chega ao servlet (o inicializador estático dentro de "
-"<literal>HibernateUtil</literal> é chamado) e para ter uma depuração "
-"detalhada se ocorrer alguma exceção."
+"Tenha a certeza de observar o log do Tomcat para ver o Hibernate inicializar "
+"quando a primeira solicitação chegar em seu servlet (o inicializador "
+"estático no <literal>HibernateUtil</literal> é chamado) e para obter o "
+"resultado detalhado caso exceções aconteçam. "
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr "Sumário"
#. Tag: para
-#: tutorial.xml:1111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
"application and a small web application. More tutorials are available from "
"the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
-"Este manual cobriu os princÃpios básicos para criação de uma aplicação "
-"simples do Hibernate e uma pequena aplicação web."
-
-#~ msgid "Introduction to Hibernate"
-#~ msgstr "Introdução ao Hibernate"
-
-#~ msgid "Preface"
-#~ msgstr "Prefácio"
-
-#~ msgid ""
-#~ "This chapter is an introductory tutorial for new users of Hibernate. We "
-#~ "start with a simple command line application using an in-memory database "
-#~ "and develop it in easy to understand steps."
-#~ msgstr ""
-#~ "Este capÃtulo é um tutorial introdutório para novos usuários do "
-#~ "Hibernate. Nós iniciaremos com uma simples linha de comando em uma "
-#~ "aplicação usando uma base de dados em memória tornando isto um passo de "
-#~ "fácil de compreender."
-
-#~ msgid ""
-#~ "This tutorial is intended for new users of Hibernate but requires Java "
-#~ "and SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-"
-#~ "party libraries we name are for JDK 1.4 and 5.0. You might need others "
-#~ "for JDK 1.3."
-#~ msgstr ""
-#~ "Este tutorial é voltado para novos usuários do Hibernate, mas requer um "
-#~ "conhecimento de Java e SQL. Este tutorial é baseado no tutorial de "
-#~ "Michael Gloegl, as bibliotecas Third Party foram nomeadas para JDK 1.4 e "
-#~ "5.0. Você pode precisar de outras bibliotecas para JDK 1.3."
-
-#~ msgid ""
-#~ "The source code for the tutorial is included in the distribution in the "
-#~ "<literal>doc/reference/tutorial/</literal> directory."
-#~ msgstr ""
-#~ "O código fonte para o tutorial está incluÃdo no diretório da distribuição "
-#~ "<literal>doc/reference/tutorial/</literal>."
-
-#~ msgid ""
-#~ "First, we'll create a simple console-based Hibernate application. We use "
-#~ "an Java database (HSQL DB), so we do not have to install any database "
-#~ "server."
-#~ msgstr ""
-#~ "Primeiro, iremos criar uma simples aplicação Hibernate baseada em "
-#~ "console. Usaremos uma base de dados Java (HSQL DB), então não teremos que "
-#~ "instalar nenhum servidor de base de dados."
-
-#~ msgid ""
-#~ "The first thing we do, is set up our development directory and put all "
-#~ "the Java libraries we need into it. Download the Hibernate distribution "
-#~ "from the Hibernate website. Extract the package and place all required "
-#~ "libraries found in <literal>/lib</literal> into into the <literal>/lib</"
-#~ "literal> directory of your new development working directory. It should "
-#~ "look like this:"
-#~ msgstr ""
-#~ "A primeira coisa que devemos fazer é configurar nosso diretório de "
-#~ "desenvolvimento, e colocar todas as bibliotecas Java que precisamos "
-#~ "dentro dele. Faça o download da distribuição do Hibernate no site do "
-#~ "Hibernate. Descompacte o pacote e coloque todas as bibliotecas "
-#~ "necessárias encontradas no diretório <literal>/lib</literal>, dentro do "
-#~ "diretório <literal>/lib</literal> do seu novo projeto. Você deverá ter "
-#~ "algo parecido com isso:"
-
-#~ msgid ""
-#~ "This is the minimum set of required libraries (note that we also copied "
-#~ "hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of "
-#~ "writing</emphasis>. The Hibernate release you are using might require "
-#~ "more or less libraries. See the <literal>README.txt</literal> file in the "
-#~ "<literal>lib/</literal> directory of the Hibernate distribution for more "
-#~ "information about required and optional third-party libraries. (Actually, "
-#~ "Log4j is not required but preferred by many developers.)"
-#~ msgstr ""
-#~ "Esta é a configuração mÃnima requerida das bibliotecas (observe que "
-#~ "também foi copiado o hibernate3.jar da pasta principal do Hibernate) para "
-#~ "o Hibernate <emphasis>na hora do desenvolvimento</emphasis>. O Hibernate "
-#~ "permite que você utilize mais ou menos bibliotecas. Veja o arquivo "
-#~ "<literal>README.txt</literal> no diretório <literal>lib/</literal> da "
-#~ "distribuição do Hibernate para maiores informaççes sobre bibliotecas "
-#~ "requeridas e opcionais. (Atualmente, a biblioteca Log4j não é requerida, "
-#~ "mas é preferida por muitos desenvolvedores.)"
-
-#~ msgid ""
-#~ "Our first persistent class is a simple JavaBean class with some "
-#~ "properties:"
-#~ msgstr ""
-#~ "Nossa primeira classe de persistência é uma simples classe JavaBean com "
-#~ "algumas propriedades:"
-
-#~ msgid ""
-#~ "Place this Java source file in a directory called <literal>src</literal> "
-#~ "in the development folder, and in its correct package. The directory "
-#~ "should now look like this:"
-#~ msgstr ""
-#~ "Coloque este fonte Java no diretório chamado <literal>src</literal> na "
-#~ "pasta de desenvolvimento, e em seu pacote correto. O diretório deverá ser "
-#~ "parecido como este:"
-
-#~ msgid "In the next step, we tell Hibernate about this persistent class."
-#~ msgstr ""
-#~ "No próximo passo, iremos falar sobre as classes de persistência do "
-#~ "Hibernate.."
-
-#~ msgid ""
-#~ "The <literal>id</literal> element is the declaration of the identifer "
-#~ "property, <literal>name=\"id\"</literal> declares the name of the Java "
-#~ "property - Hibernate will use the getter and setter methods to access the "
-#~ "property. The column attribute tells Hibernate which column of the "
-#~ "<literal>EVENTS</literal> table we use for this primary key. The nested "
-#~ "<literal>generator</literal> element specifies the identifier generation "
-#~ "strategy, in this case we used <literal>native</literal>, which picks the "
-#~ "best strategy depending on the configured database (dialect). Hibernate "
-#~ "supports database generated, globally unique, as well as application "
-#~ "assigned identifiers (or any strategy you have written an extension for)."
-#~ msgstr ""
-#~ "O elemento <literal>id</literal> é a declaração da propriedade "
-#~ "identificadora, o <literal>name=\"id\"</literal> declara o nome da "
-#~ "propriedade Java â o Hibernate irá usar os métodos getter e setter para "
-#~ "acessar a propriedade. O atributo da coluna informa ao Hibernate qual "
-#~ "coluna da tabela <literal>EVENTS</literal> nós iremos usar como chave "
-#~ "primária. O elemento <literal>generator</literal> especifica a estratégia "
-#~ "de geração do identificador, neste caso usaremos <literal>native</"
-#~ "literal>, que escolhe a melhor estratégia dependendo da base de dados "
-#~ "(dialeto) configurada. O Hibernate suporta a base de dados gerada, "
-#~ "globalmente única, bem como a atribuição aos identificadores da aplicação "
-#~ "(ou toda estratégia escrita para uma extensão)."
-
-#~ msgid ""
-#~ "This mapping file should be saved as <literal>Event.hbm.xml</literal>, "
-#~ "right in the directory next to the <literal>Event</literal> Java class "
-#~ "source file. The naming of mapping files can be arbitrary, however the "
-#~ "<literal>hbm.xml</literal> suffix is a convention in the Hibernate "
-#~ "developer community. The directory structure should now look like this:"
-#~ msgstr ""
-#~ "Este arquivo de mapeamento deve ser salvo como <literal>Event.hbm.xml</"
-#~ "literal>, corretamente no diretório próximo ao arquivo fonte da Classe "
-#~ "Java <literal>Event</literal>. O nomeamento dos arquivos de mapeamento "
-#~ "podem ser arbitrários, porém o sufixo <literal>hbm.xml</literal> é uma "
-#~ "convenção da comunidade dos desenvolvedores do Hibernate. Esta estrutura "
-#~ "do diretório deve agora se parecer com isso:"
-
-#~ msgid "We continue with the main configuration of Hibernate."
-#~ msgstr "Nós iremos continuar com a configuração principal do Hibernate."
-
-#~ msgid ""
-#~ "We now have a persistent class and its mapping file in place. It is time "
-#~ "to configure Hibernate. Before we do this, we will need a database. HSQL "
-#~ "DB, a java-based SQL DBMS, can be downloaded from the HSQL DB website"
-#~ "(http://hsqldb.org/). Actually, you only need the <literal>hsqldb.jar</"
-#~ "literal> from this download. Place this file in the <literal>lib/</"
-#~ "literal> directory of the development folder."
-#~ msgstr ""
-#~ "Agora nós temos uma classe persistente e este arquivo de mapeamento no "
-#~ "lugar. Está na hora de configurar o Hibernate. Antes de fazermos isso, "
-#~ "iremos precisar de uma base de dados. O HSQL DB, um SQL DBMS feito em "
-#~ "java, pode ser baixado através do site do HSQL DB(http://hsqldb.org/). "
-#~ "Atualmente, você só precisa baixar o <literal>hsqldb.jar</literal>. "
-#~ "Coloque este arquivo no diretório da pasta de desenvolvimento "
-#~ "<literal>lib/</literal>."
-
-#~ msgid ""
-#~ "Hibernate is the layer in your application which connects to this "
-#~ "database, so it needs connection information. The connections are made "
-#~ "through a JDBC connection pool, which we also have to configure. The "
-#~ "Hibernate distribution contains several open source JDBC connection "
-#~ "pooling tools, but will use the Hibernate built-in connection pool for "
-#~ "this tutorial. Note that you have to copy the required library into your "
-#~ "classpath and use different connection pooling settings if you want to "
-#~ "use a production-quality third party JDBC pooling software."
-#~ msgstr ""
-#~ "O Hibernate é uma camada na sua aplicação na qual se conecta com a base "
-#~ "de dados, para isso necessita de informação da conexão. As conexões são "
-#~ "feitas através de um pool de conexão JDBC, na qual teremos que "
-#~ "configurar. A distribuição do Hibernate contém diversas ferramentas de "
-#~ "pooling da conexão JDBC de fonte aberta, mas iremos usar o pool de "
-#~ "conexão interna para este tutorial. Note que você tem que copiar a "
-#~ "biblioteca necessária em seu classpath e use configurações diferentes "
-#~ "para pooling de conexão caso você deseje utilizar um software de pooling "
-#~ "JDBC terceirizado para qualidade de produção."
-
-#~ msgid ""
-#~ "Copy this file into the source directory, so it will end up in the root "
-#~ "of the classpath. Hibernate automatically looks for a file called "
-#~ "<literal>hibernate.cfg.xml</literal> in the root of the classpath, on "
-#~ "startup."
-#~ msgstr ""
-#~ "Copie este arquivo no diretório fonte, assim isto irá terminar na raiz "
-#~ "(root) do classpath. O Hibernate automaticamente procura por um arquivo "
-#~ "chamado <literal>hibernate.cfg.xml</literal> na raiz do classpath, no "
-#~ "startup."
-
-#~ msgid ""
-#~ "We'll now build the tutorial with Ant. You will need to have Ant "
-#~ "installed - get it from the <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Ant download page</ulink>. How to install Ant will not "
-#~ "be covered here. Please refer to the <ulink url=\"http://ant.apache.org/"
-#~ "manual/index.html\">Ant manual</ulink>. After you have installed Ant, we "
-#~ "can start to create the buildfile. It will be called <literal>build.xml</"
-#~ "literal> and placed directly in the development directory."
-#~ msgstr ""
-#~ "Nos iremos, agora, construir o tutorial com Ant. Você ira precisar o Ant "
-#~ "instalado â se encontra disponÃvel <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">na página de download do Ant</ulink>. Como instalar o "
-#~ "Ant, não será abordado aqui. Caso tenha alguma dúvida, por favor, vá ao "
-#~ "<ulink url=\"http://ant.apache.org/manual/index.html\">Ant manual</"
-#~ "ulink>. Depois que tiver instalado o Ant, podemos começar a criar o "
-#~ "arquivo de construção <literal>build.xml</literal>. Este arquivo será "
-#~ "chamado de <literal>build.xml</literal> e posto diretamente no diretório "
-#~ "de desenvolvimento."
-
-#~ msgid "A basic build file looks like this:"
-#~ msgstr "Um arquivo básico de build, se parece com isto:"
-
-#~ msgid ""
-#~ "This will tell Ant to add all files in the lib directory ending with "
-#~ "<literal>.jar</literal> to the classpath used for compilation. It will "
-#~ "also copy all non-Java source files to the target directory, e.g. "
-#~ "configuration and Hibernate mapping files. If you now run Ant, you should "
-#~ "get this output:"
-#~ msgstr ""
-#~ "Isto irá avisar ao Ant para adicionar todos os arquivos no diretório lib "
-#~ "terminando com <literal>.jar</literal>, para o classpath usado para "
-#~ "compilação. Irá também copiar todos os arquivos não-java para o diretório "
-#~ "alvo (arquivos de configuração, mapeamento). Se você rodar o ant agora, "
-#~ "deverá ter esta saÃda."
-
-#~ msgid ""
-#~ "Place <literal>HibernateUtil.java</literal> in the development source "
-#~ "directory, in a package next to <literal>events</literal>:"
-#~ msgstr ""
-#~ "Coloque o <literal>HibernateUtil.java</literal> no diretório de arquivos "
-#~ "de desenvolvimento(source), em um pacote após o <literal>events</literal>:"
-
-#~ msgid ""
-#~ "To run this first routine we have to add a callable target to the Ant "
-#~ "build file:"
-#~ msgstr ""
-#~ "Para executar esta primeira rotina, nos teremos que adicionar um ponto de "
-#~ "chamada para o arquivo de build do Ant:"
-
-#~ msgid ""
-#~ "The value of the <literal>action</literal> argument is set on the command "
-#~ "line when calling the target:"
-#~ msgstr ""
-#~ "O valor do argumento <literal>action</literal>, é setado na linha de "
-#~ "comando quando chamando esse ponto:"
-
-#~ msgid ""
-#~ "This is the <literal>INSERT</literal> executed by Hibernate, the question "
-#~ "marks represent JDBC bind parameters. To see the values bound as "
-#~ "arguments, or to reduce the verbosity of the log, check your "
-#~ "<literal>log4j.properties</literal>."
-#~ msgstr ""
-#~ "Este é o <literal>INSERT</literal> executado pelo Hibernate, os pontos de "
-#~ "interrogação representam parêmetros de união do JDBC. Para ver os valores "
-#~ "substituÃdos, ou para diminuir a verbalidade do log, check seu "
-#~ "l<literal>log4j.properties</literal>."
-
-#~ msgid "Now, to execute and test all of this, follow these steps:"
-#~ msgstr "Agora, para executar e testar tudo isso, siga os passos a seguir:"
-
-#~ msgid ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
-#~ msgstr ""
-#~ "Execute <literal>ant run -Daction=store</literal> para armazenar algo no "
-#~ "banco de dados e, claro, gerar o esquema do banco de dados antes pelo "
-#~ "hbm2ddl."
-
-#~ msgid ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
-#~ msgstr ""
-#~ "Agora desabilite hbm2ddl comentando a propriedade no seu arquivo "
-#~ "<literal>hibernate.cfg.xml</literal>. Normalmente só se deixa habilitado "
-#~ "em teste unitários contÃnuos, mas outra carga de hbm2ddl pode "
-#~ "<emphasis>remover</emphasis> tudo que você já tenha arquivado. Sa "
-#~ "configuração <literal>create</literal>, atualmente são traduzidas para "
-#~ "\"apague todas as tabelas do esquema, então recrie todas quando a "
-#~ "SessionFactory estiver pronta\"."
-
-#~ msgid ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
-#~ msgstr ""
-#~ "Se você agora chamar o Ant com <literal>-Daction=list</literal>, você "
-#~ "deverá ver os eventos que você acabou de criar. Você pode também chamar a "
-#~ "ação <literal>store</literal> mais algumas vezes."
-
-#~ msgid ""
-#~ "Note: Most new Hibernate users fail at this point and we see questions "
-#~ "about <emphasis>Table not found</emphasis> error messages regularly. "
-#~ "However, if you follow the steps outlined above you will not have this "
-#~ "problem, as hbm2ddl creates the database schema on the first run, and "
-#~ "subsequent application restarts will use this schema. If you change the "
-#~ "mapping and/or database schema, you have to re-enable hbm2ddl once again."
-#~ msgstr ""
-#~ "Nota: A maioria dos novos usuários do Hibernate falha nesse ponto e nós "
-#~ "regularmente, vemos questões sobre mensagens de erro de <emphasis>tabela "
-#~ "não encontrada </emphasis> . Entretanto, se você seguir os passos "
-#~ "marcados acima, você não terá esse problema, com o hbm2ddl criando o "
-#~ "esquema do banco de dados na primeira execução, e restarts subsequentes "
-#~ "da aplicação irão usar este esquema. Se você mudar o mapeamento e/ou o "
-#~ "esquema do banco de dados, terá de re-habilitar o hbm2ddl mais uma vez."
-
-#~ msgid ""
-#~ "Create a new mapping file called <literal>Person.hbm.xml</literal> (don't "
-#~ "forget the DTD reference at the top):"
-#~ msgstr ""
-#~ "Crie um novo arquivo de mapeamento, chamado <literal>Person.hbm.xml</"
-#~ "literal> (não esqueça a referencia ao DTD no topo)"
-
-#~ msgid ""
-#~ "We need a unidirectional, many-valued associations, implemented with a "
-#~ "<literal>Set</literal>. Let's write the code for this in the Java classes "
-#~ "and then map it:"
-#~ msgstr "Vamos escrever o código para isto nas classes Java e então mapear:"
-
-#~ msgid ""
-#~ "We add a collection of value typed objects to the <literal>Person</"
-#~ "literal> entity. We want to store email addresses, so the type we use is "
-#~ "<literal>String</literal>, and the collection is again a <literal>Set</"
-#~ "literal>:"
-#~ msgstr ""
-#~ "Nós adicionamos uma coleção de objetos de tipo de valores à entidade "
-#~ "<literal>Person</literal>. Nós querermos armazenar endereços de e-mail, "
-#~ "para isso utilizamos o tipo <literal>String</literal>, e a coleção "
-#~ "novamente será um <literal>Set</literal>:"
-
-#~ msgid "Let's turn this into a small web application."
-#~ msgstr ""
-#~ "Agora, vamos portar este exemplo para um pequeno aplicativo para internet."
-
-#~ msgid ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
-#~ msgstr ""
-#~ "Crie uma nova classe no seu diretório fonte, no pacote <literal>events</"
-#~ "literal>:"
-
-#~ msgid ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
-#~ msgstr ""
-#~ "Para fazer o deploy desta aplicação você tem que criar um arquivo para "
-#~ "web, um WAR. Adicione o alvo Ant abaixo em seu <literal>build.xml</"
-#~ "literal>:"
-
-#~ msgid ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
-#~ msgstr ""
-#~ "Esta target cria um arquivo chamado <literal>hibernate-tutorial.war</"
-#~ "literal> no diretório do seu projeto. Ele empacota todas as bibliotecas e "
-#~ "o arquivo de descrição <literal>web.xml</literal>, o qual é esperado no "
-#~ "diretório base do seu projeto:"
-
-#~ msgid ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compliation and excluded from the WAR package."
-#~ msgstr ""
-#~ "Antes de você compilar e fazer o deploy desta aplicação web, note que uma "
-#~ "biblioteca adicional é requerida: <literal>jsdk.jar</literal>. Esse é o "
-#~ "Java servlet development kit, se você não possui esta biblioteca, faça "
-#~ "seu download na página da Sun e copie-a para seu diretório de "
-#~ "bibliotecas. Entretanto, será usado somente para a compilação e excluÃdo "
-#~ "do pacote WAR."
-
-#~ msgid ""
-#~ "If you already feel confident with Hibernate, continue browsing through "
-#~ "the reference documentation table of contents for topics you find "
-#~ "interesting - most asked are transactional processing (<xref linkend="
-#~ "\"transactions\"/>), fetch performance (<xref linkend=\"performance\"/>), "
-#~ "or the usage of the API (<xref linkend=\"objectstate\"/>) and the query "
-#~ "features (<xref linkend=\"objectstate-querying\"/>)."
-#~ msgstr ""
-#~ "Se você já se sente seguro com o Hibernate, continue navegando na "
-#~ "documentação de referência por tópicos que você acha interessante â os "
-#~ "tópicos mais questionados são: processo de transação (<xref linkend="
-#~ "\"transactions\"/>), uso da API (<xref linkend=\"objectstate\"/>) e "
-#~ "caracterÃsticas de consulta (<xref linkend=\"objectstate-querying\"/>)."
-
-#~ msgid ""
-#~ "Don't forget to check the Hibernate website for more (specialized) "
-#~ "tutorials."
-#~ msgstr ""
-#~ "Não esqueça de visitar o site do Hibernate para obter mais tutoriais "
-#~ "especializados."
+"Este tutorial cobriu itens básicos de como escrever um aplicativo Hibernate "
+"autônomo simples e um aplicativo da web pequeno. A partir do Hibernate "
+"<ulink url=\"http://hibernate.org\">website</ulink> você poderá encontrar "
+"mais tutoriais disponÃveis."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,41 +1,143 @@
+# translation of xml.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# translation of Collection_Mapping.po to
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2006.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# , 2007.
+# Michael H. Smith <mhideo at redhat.com>, 2007.
+# Glaucia Cintra <gcintra at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-12-21 07:56+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
msgstr "Mapeamento XML"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
msgstr ""
-"Note that this is an experimental feature in Hibernate 3.0 and is under "
-"extremely active development. Veja que essa é uma feature experimental no "
-"Hibernate 3.0 e o desenvolvimento esta bastante ativo."
+"<emphasis> O Mapeamento XML é um recurso experimental no Hibernate 3.0 e "
+"está sob constante desenvolvimento. </emphasis>"
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
msgstr "Trabalhando com dados em XML"
#. Tag: para
-#: xml.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
"you work with persistent POJOs. A parsed XML tree can be thought of as "
@@ -43,12 +145,11 @@
"of POJOs."
msgstr ""
"O Hibernate permite que se trabalhe com dados persistentes em XML quase da "
-"mesma maneira como você trabalhar com POJOs persistentes. Uma árvore XML "
-"parseada, pode ser imaginada como apenas uma maneira de representar os dados "
-"relacionais como objetos, ao invés dos POJOs."
+"mesma maneira como você trabalha com POJOs persistentes. Uma árvore XML "
+"analisada, pode ser considerada como apenas uma maneira de representar os "
+"dados relacionais como objetos, ao invés dos POJOs. "
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -62,13 +163,12 @@
"O Hibernate suporta a API dom4j para manipular árvores XML. Você pode "
"escrever queries que retornem árvores dom4j do banco de dados e "
"automaticamente sincronizar com o banco de dados qualquer modificação feita "
-"nessas árvores. Você pode até mesmo pegar um documento XML, parsear usando o "
-"dom4j, e escrever as alterações no banco de dados usando quaisquer operações "
-"básicas do Hibernate: <literal>persist(), saveOrUpdate(),merge(), delete(), "
-"replicate()</literal> (merging ainda não é suportado)"
+"nessas árvores. Você pode até mesmo pegar um documento XML, analisá-lo "
+"usando o dom4j, e escrever as alterações no banco de dados usando quaisquer "
+"operações básicas do Hibernate: <literal>persist(), saveOrUpdate(),merge(), "
+"delete(), replicate()</literal> (a mesclagem ainda não é suportada)"
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"This feature has many applications including data import/export, "
@@ -79,8 +179,7 @@
"usando XSLT."
#. Tag: para
-#: xml.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single mapping can 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, "
@@ -89,156 +188,88 @@
"Um mapeamento simples pode ser usado para simultaneamente mapear "
"propriedades da classe e nós de um documento XML para um banco de dados ou, "
"se não houver classe para mapear, pode ser usado simplesmente para mapear o "
-"XML."
+"XML. "
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
msgstr ""
-"Especificando o mapeamento de uma classe e de um arquivo XML simultaneamente"
+"Especificando o mapeamento de uma classe e de um arquivo XML simultaneamente "
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
msgstr "Segue um exemplo de como mapear um POJO e um XML ao mesmo tempo:"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
msgstr "Especificando somente um mapeamento XML"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
msgstr "Segue um exemplo que não contém uma classe POJO:"
-#. Tag: programlisting
-#: xml.xml:84
+#. Tag: para
#, no-c-format
msgid ""
-"<![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 ""
-
-#. Tag: para
-#: xml.xml:86
-#, fuzzy, no-c-format
-msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
"property name/value pairs or java <literal>Map</literal>s. The property "
"names are purely logical constructs that can be referred to in HQL queries."
msgstr ""
"Esse mapeamento permite que você acesse os dados como uma árvore dom4j ou um "
-"grafo de de pares nome de propriedade/valor (<literal>Map</literal>s do "
-"Java). Os nomes de propriedades são somente construções lógicas que podem "
-"ser referenciadas em consultas HQL."
+"gráfico de pares de nome/valor de propriedade ou <literal>Map</literal>s do "
+"Java. Os nomes de propriedades são somente construções lógicas que podem ser "
+"referenciadas em consultas HQL. "
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
msgstr "Mapeando metadados com XML"
#. Tag: para
-#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
"attribute. This lets 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 ""
-"Muitos elementos do mapeamento do Hibernate aceitam o atributo "
-"<literal>node</literal>. Por meio dele, você pode especificar o nome de um "
-"atributo ou elemento XML que contém a propriedade ou os dados da entidade. O "
-"formato do atributo <literal>node</literal> deve ser o seguinte:"
+"Muitos elementos do mapeamento do Hibernate aceitam a função <literal>node</"
+"literal>. Através dele, você pode especificar o nome de uma função ou "
+"elemento XML que contenha a propriedade ou os dados da entidade. O formato "
+"da função <literal>node</literal> deve ser o seguinte: "
#. Tag: para
-#: xml.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
msgstr ""
-"<literal>\"element-name\"</literal> - mapeia para o elemento XML com "
-"determinado nome"
+"<literal>\"element-name\"</literal>: mapeia para o elemento XML nomeado"
#. Tag: para
-#: xml.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
msgstr ""
-"<literal>\"@attribute-name\"</literal> - mapeia para o atributo XML com "
+"<literal>\"@attribute-name\"</literal>: mapeia para a função XML com "
"determinado nome"
#. Tag: para
-#: xml.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
-msgstr "<literal>\".\"</literal> - mapeia para o elemento pai"
+msgstr "<literal>\".\"</literal>: mapeia para o elemento pai"
#. Tag: para
-#: xml.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
"attribute of the named element"
msgstr ""
-"<literal>\"element-name/@attribute-name\"</literal> - mapeia para para o "
-"atributo com determinado nome do elemento com determinado nome"
+"<literal>\"element-name/@attribute-name\"</literal>: mapeia para a função "
+"nomeada com o elemento nomeado"
#. Tag: para
-#: xml.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
@@ -248,208 +279,69 @@
"then only the referenced identifier value will appear in the XML for single "
"point associations and collections will not appear at all."
msgstr ""
-"Para coleções e associações simples, existe o atributo adicional "
-"<literal>embed-xml</literal>. Se o atributo <literal>embed-xml=\"true\"</"
+"Para coleções e associações de valores simples, existe uma função adicional "
+"<literal>embed-xml</literal>. Se a função <literal>embed-xml=\"true\"</"
"literal>, que é o valor padrão, a árvore XML para a entidade associada (ou "
"coleção de determinado tipo de valor) será embutida diretamente na árvore "
"XML que contém a associação. Por outro lado, se <literal>embed-xml=\"false"
"\"</literal>, então apenas o valor do identificador referenciado irá "
-"aparecer no XML para associações simples e coleções simplesmentenão irão "
-"aparecer."
+"aparecer no XML para associações simples e as coleções simplesmente não irão "
+"aparecer. "
#. Tag: para
-#: xml.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
"associations, since XML does not deal well with circularity."
msgstr ""
-"Você precisa tomar cuidado em não deixar o<literal>embed-xml=\"true\"</"
+"Você precisa tomar cuidado para não deixar o <literal>embed-xml=\"true\"</"
"literal> para muitas associações, pois o XML não suporta bem referências "
-"circulares."
+"circulares. "
-#. Tag: programlisting
-#: xml.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:141
-#, fuzzy, no-c-format
-msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
"account data. The following HQL query:"
msgstr ""
-"Nesse caso, decidimos embutir a colenção de account ids, e não os dados de "
-"accounts. A query HQL a seguir:"
+"Nesse caso, decidimos incorporar a coleção de ids de contas, e não os dados "
+"de contas. Segue a abaixo a consulta HQL:"
-#. Tag: programlisting
-#: xml.xml:146
-#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:148
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would return datasets such as this:"
-msgstr "Retornaria um conjunto de dados como esse:"
+msgstr "Retornaria um conjunto de dados como esse: "
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
"many></literal> mapping, the data might look more like this:"
msgstr ""
-"Se você setar <literal>embed-xml=\"true\"</literal> em um mapeamento "
+"Se você ajustar <literal>embed-xml=\"true\"</literal> em um mapeamento "
"<literal><one-to-many></literal>, os dados se pareceriam com o "
"seguinte:"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
msgstr "Manipulando dados em XML"
#. Tag: para
-#: xml.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
"this by obtaining a dom4j session:"
msgstr ""
"Vamos reler e atualizar documentos em XML em nossa aplicação. Nós fazemos "
-"isso obtendo uma session do dom4j:"
+"isso obtendo uma sessão do dom4j: "
-#. Tag: programlisting
-#: xml.xml:172
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:176
-#, fuzzy, no-c-format
-msgid ""
"When implementing XML-based data import/export, it is useful to combine this "
"feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
"à extremamente útil combinar essa funcionalidade com a operação "
"<literal>replicate()</literal> do Hibernate para implementar importação/"
-"exportação baseadas em XML."
+"exportação de dados baseados em XML."
Modified: core/trunk/documentation/manual/src/main/docbook/pt-BR/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/pt-BR/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/pt-BR/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,35 +2,33 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/Hibernate_Reference.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/Hibernate_Reference.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/Hibernate_Reference.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
#, fuzzy
msgid ""
msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-11T05:38:14\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: application/x-xml2pot; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: Hibernate_Reference.xml:35
#, no-c-format
msgid "HIBERNATE - Relational Persistence for Idiomatic Java"
-msgstr "HIBERNATE - 符åJavaä¹ æ¯çå
³ç³»æ°æ®åºæä¹
å"
+msgstr ""
#. Tag: subtitle
-#: Hibernate_Reference.xml:36
#, no-c-format
msgid "Hibernate Reference Documentation"
-msgstr "Hibernateåèææ¡£"
+msgstr ""
-#. Tag: holder
-#: Hibernate_Reference.xml:51
+#. Tag: releaseinfo
#, no-c-format
-msgid "©rightHolder;"
-msgstr "©rightHolder;"
-
-#~ msgid "ROLES_OF_TRANSLATORS"
-#~ msgstr "<!--TRANS:ROLES_OF_TRANSLATORS-->"
-
-#~ msgid "CREDIT_FOR_TRANSLATORS"
-#~ msgstr "<!--TRANS:CREDIT_FOR_TRANSLATORS-->"
+msgid "&versionNumber;"
+msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/author_group.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/author_group.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/author_group.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -13,209 +13,137 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Tag: author
-#: author_group.xml:27
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-#. Tag: author
-#: author_group.xml:31
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: author_group.xml:35
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Max</firstname> <othername>Rydahl</othername> <surname>Andersen</"
-"surname>"
+msgid "Max"
msgstr ""
-#. Tag: author
-#: author_group.xml:40
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>"
+msgid "Emmanuel"
msgstr ""
-#. Tag: author
-#: author_group.xml:44
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Steve</firstname> <surname>Ebersole</surname>"
+msgid "Steve"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:49
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>James</firstname> <surname>Cobb</surname>"
+msgid "James"
msgstr ""
-#. Tag: shortaffil
-#: author_group.xml:53 author_group.xml:60
+#. Tag: firstname
#, no-c-format
-msgid "Graphic Design"
+msgid "Cheyenne"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:56
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Cheyenne</firstname> <surname>Weaver</surname>"
+msgid "Vincent"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:69
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othername><![CDATA[Bernardo Antonio Buffa Colomé]]></othername> "
-"<email>kreimer at bbs.frc.utn.edu.ar</email>"
+msgid "Sebastien"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:79
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Ricard</surname>"
+msgid "Michael"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:83
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Sebastien</firstname> <surname>Cesbron</surname>"
+msgid "Baptiste"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:87
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Michael</firstname> <surname>Courcy</surname>"
+msgid "Anthony"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:91
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Vincent</firstname> <surname>Giguère</surname>"
+msgid "Alvaro"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:95
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Baptiste</firstname> <surname>Mathus</surname>"
+msgid "Anderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:99
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<othercredit><firstname>Emmanuel</firstname> <surname>Bernard</surname></"
-"othercredit>"
+msgid "Daniel Vieira"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:103
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Anthony</firstname> <surname>Patricio</surname>"
+msgid "Francisco"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:113
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Alvaro</firstname> <surname>Netto</surname> "
-"<email>alvaronetto at cetip.com.br</email>"
+msgid "Gamarra"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:118
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Anderson</firstname> <surname>Braulio</surname> "
-"<email>andersonbraulio at gmail.com</email>"
+msgid "Luiz Carlos"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:123
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Daniel Vieira</firstname> <surname>Costa</surname> "
-"<email>danielvc at gmail.com</email>"
+msgid "Marcel"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:128
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Francisco</firstname> <surname>gamarra</surname> <email>francisco."
-"gamarra at gmail.com</email>"
+msgid "Paulo"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:133
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Gamarra</firstname> <email>mauricio.gamarra at gmail.com</email>"
+msgid "Pablo L."
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:137
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Luiz Carlos</firstname> <surname>Rodrigues</surname> "
-"<email>luizcarlos_rodrigues at yahoo.com.br</email>"
+msgid "Renato"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:142
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Marcel</firstname> <surname>Castelo</surname> <email>marcel."
-"castelo at gmail.com</email>"
+msgid "Rogério"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:147
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Paulo</firstname> <surname>César</surname> <email>paulocol at gmail."
-"com</email>"
+msgid "Wanderson"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:152
+#. Tag: firstname
#, no-c-format
-msgid ""
-"<firstname>Pablo L.</firstname> <surname>de Miranda</surname> "
-"<email>pablolmiranda at gmail.com</email>"
+msgid "Cao"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:157
+#. Tag: orgname
#, no-c-format
-msgid ""
-"<firstname>Renato</firstname> <surname>Deggau</surname> <email>rdeggau at gmail."
-"com</email>"
+msgid "RedSaga"
msgstr ""
-#. Tag: othercredit
-#: author_group.xml:162
+#. Tag: contrib
#, no-c-format
-msgid ""
-"<firstname>Rogério</firstname> <surname>Araújo</surname> "
-"<email>rgildoaraujo at yahoo.com.br</email>"
+msgid "Translation Lead"
msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:167
-#, no-c-format
-msgid ""
-"<firstname>Wanderson</firstname> <surname>Siqueira</surname> "
-"<email>wandersonxs at gmail.com</email>"
-msgstr ""
-
-#. Tag: othercredit
-#: author_group.xml:178
-#, no-c-format
-msgid ""
-"<firstname>Cao</firstname> <surname>Xiaogang</surname> <affiliation> "
-"<orgname>RedSaga</orgname> </affiliation> <contrib>Translation Lead</"
-"contrib> <email>caoxg at yahoo.com</email>"
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/architecture.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,97 +1,88 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2010-01-11 10:12+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: architecture.xml:30
#, no-c-format
msgid "Architecture"
-msgstr "ä½ç³»ç»æ(Architecture)"
+msgstr "ä½ç³»ç»æï¼Architectureï¼"
#. Tag: title
-#: architecture.xml:33
#, no-c-format
msgid "Overview"
-msgstr "æ¦åµ(Overview)"
+msgstr "æ¦åµï¼Overviewï¼"
#. Tag: para
-#: architecture.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
-msgstr "ä¸ä¸ªé常ç®è¦çHibernateä½ç³»ç»æçæ¦è¦å¾ï¼"
+msgstr "ä¸é¢çå¾è¡¨æä¾äº Hibernate ä½ç³»ç»æçé«å±è§å¾ï¼"
#. Tag: para
-#: architecture.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We do not have the scope in this document to provide a more detailed view of "
"all the runtime architectures available; Hibernate is flexible and supports "
"several different approaches. We will, however, show the two extremes: "
"\"minimal\" architecture and \"comprehensive\" architecture."
msgstr ""
-"æä»¬æ¥æ´è¯¦ç»å°çä¸ä¸Hibernateè¿è¡æ¶ä½ç³»ç»æãç±äºHibernateéå¸¸çµæ´»ï¼ä¸æ¯æå¤"
-"ç§åºç¨æ¹æ¡ï¼ æä»¥æä»¬è¿åªæè¿°ä¸ä¸ä¸¤ç§æç«¯çæ
åµãâè½»åâçä½ç³»ç»ææ¹æ¡ï¼è¦æ±åº"
-"ç¨ç¨åºæä¾èªå·±çJDBC è¿æ¥å¹¶ç®¡çèªå·±çäºå¡ãè¿ç§æ¹æ¡ä½¿ç¨äºHibernate APIçæå°"
-"åéï¼"
+"æä¾ Hibernate ææè¿è¡æ¶ä½ç³»ç»æçæ´å¤ç»è䏿¯æ¬ææ¡£çèç´ãç±äº Hibernate "
+"éå¸¸çµæ´»ï¼ä¸æ¯æå¤ç§åºç¨æ¹æ¡ï¼ æä»¥æä»¬è¿åªæè¿°ä¸ä¸ä¸¤ç§æç«¯çæ
åµï¼âæ"
+"å°âåâå
¨é¢è§£å³âçä½ç³»ç»ææ¹æ¡ã"
#. Tag: para
-#: architecture.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This next diagram illustrates how Hibernate utilizes database and "
"configuration data to provide persistence services, and persistent objects, "
"to the application."
msgstr ""
-"ä»è¿ä¸ªå¾å¯ä»¥çåºï¼Hibernateä½¿ç¨æ°æ®åºåé
ç½®ä¿¡æ¯æ¥ä¸ºåºç¨ç¨åºæä¾æä¹
åæå¡ï¼ä»¥"
-"åæä¹
ç对象ï¼ã"
+"ä¸å¾æ¼ç¤ºäº Hibernate å¦ä½ä½¿ç¨æ°æ®åºåé
ç½®ä¿¡æ¯æ¥ä¸ºåºç¨ç¨åºæä¾æä¹
åæå¡ï¼ä»¥å"
+"æä¹
ç对象ï¼ã"
#. Tag: para
-#: architecture.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"minimal\" architecture has the application provide its own JDBC "
"connections and manage its own transactions. This approach uses a minimal "
"subset of Hibernate's APIs:"
msgstr ""
-"æä»¬æ¥æ´è¯¦ç»å°çä¸ä¸Hibernateè¿è¡æ¶ä½ç³»ç»æãç±äºHibernateéå¸¸çµæ´»ï¼ä¸æ¯æå¤"
-"ç§åºç¨æ¹æ¡ï¼ æä»¥æä»¬è¿åªæè¿°ä¸ä¸ä¸¤ç§æç«¯çæ
åµãâè½»åâçä½ç³»ç»ææ¹æ¡ï¼è¦æ±åº"
-"ç¨ç¨åºæä¾èªå·±çJDBC è¿æ¥å¹¶ç®¡çèªå·±çäºå¡ãè¿ç§æ¹æ¡ä½¿ç¨äºHibernate APIçæå°"
-"åéï¼"
+"âæå°âçä½ç³»ç»ææ¹æ¡ï¼è¦æ±åºç¨ç¨åºæä¾èªå·±ç JDBC è¿æ¥å¹¶ç®¡çèªå·±çäºå¡ãè¿ç§"
+"æ¹æ¡ä½¿ç¨äºHibernate API çæå°åéï¼"
#. Tag: para
-#: architecture.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
-"âå
¨é¢è§£å³âçä½ç³»ç»ææ¹æ¡ï¼å°åºç¨å±ä»åºå±çJDBC/JTA API䏿½è±¡åºæ¥ï¼è让"
-"Hibernateæ¥å¤çè¿äºç»èã"
+"âå
¨é¢è§£å³âçä½ç³»ç»ææ¹æ¡ï¼å°åºç¨å±ä»åºå±ç JDBC/JTA API 䏿½è±¡åºæ¥ï¼è让 "
+"Hibernate æ¥å¤çè¿äºç»èã"
#. Tag: para
-#: architecture.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here are some definitions of the objects depicted in the diagrams:"
-msgstr "å¾ä¸å个对象çå®ä¹å¦ä¸ï¼ <placeholder-1/>"
+msgstr "å¾ä¸å个对象çå®ä¹å¦ä¸ï¼ "
#. Tag: term
-#: architecture.xml:93
#, no-c-format
msgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"
#. Tag: para
-#: architecture.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A threadsafe, immutable cache of compiled mappings for a single database. A "
"factory for <literal>Session</literal> and a client of "
@@ -99,20 +90,18 @@
"hold an optional (second-level) cache of data that is reusable between "
"transactions at a process, or cluster, level."
msgstr ""
-"é对åä¸ªæ°æ®åºæ å°å
³ç³»ç»è¿ç¼è¯åçå
åéåï¼æ¯çº¿ç¨å®å
¨çï¼ä¸å¯åï¼ã 宿¯çæ"
-"<literal>Session</literal>çå·¥åï¼æ¬èº«è¦ç¨å°<literal>ConnectionProvider</"
-"literal>ã 该对象å¯ä»¥å¨è¿ç¨æé群ç级å«ä¸ï¼ä¸ºé£äºäºå¡ä¹é´å¯ä»¥éç¨çæ°æ®æä¾å¯"
-"éçäºçº§ç¼åã"
+"é对åä¸ªæ°æ®åºæ å°å
³ç³»ç»è¿ç¼è¯åçå
åéåï¼æ¯çº¿ç¨å®å
¨çï¼ä¸å¯åï¼ã ä½ä¸º "
+"<literal>Session</literal> çå·¥åå <literal>ConnectionProvider</literal> ç"
+"客æ·ã<literal>SessionFactory</literal> å¯ä»¥å¨è¿ç¨æé群ç级å«ä¸ï¼ä¸ºé£äºäºå¡"
+"ä¹é´å¯ä»¥éç¨çæ°æ®æä¾å¯éçäºçº§ç¼åã"
#. Tag: term
-#: architecture.xml:105
#, no-c-format
msgid "Session (<literal>org.hibernate.Session</literal>)"
msgstr "Session (<literal>org.hibernate.Session</literal>)"
#. Tag: para
-#: architecture.xml:107
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
"the application and the persistent store. It wraps a JDBC connection and is "
@@ -120,19 +109,18 @@
"holds a mandatory first-level cache of persistent objects that are used when "
"navigating the object graph or looking up objects by identifier."
msgstr ""
-"表示åºç¨ç¨åºä¸æä¹
å¨åå±ä¹é´äº¤äºæä½çä¸ä¸ªå线ç¨å¯¹è±¡ï¼æ¤å¯¹è±¡çåæå¾çã å
¶é"
-"èäºJDBCè¿æ¥ï¼ä¹æ¯<literal>Transaction</literal>çå·¥åã å
¶ä¼ææä¸ä¸ªé对æä¹
"
-"å对象çå¿
éï¼ç¬¬ä¸çº§ï¼ç¼åï¼å¨éåå¯¹è±¡å¾æè
æ ¹æ®æä¹
åæ è¯æ¥æ¾å¯¹è±¡æ¶ä¼ç¨å°ã"
+"表示åºç¨ç¨åºä¸æä¹
å¨åå±ä¹é´äº¤äºæä½çä¸ä¸ªå线ç¨å¯¹è±¡ï¼æ¤å¯¹è±¡çåæå¾çãå
¶é"
+"èäº JDBC è¿æ¥ï¼ä¹æ¯ <literal>Transaction</literal> çå·¥åãå®ä¼ææä¸ä¸ªé对"
+"æä¹
å对象çå¿
éï¼ç¬¬ä¸çº§ï¼ç¼åï¼å¨éåå¯¹è±¡å¾æè
æ ¹æ®æä¹
åæ è¯æ¥æ¾å¯¹è±¡æ¶ä¼ç¨"
+"å°ã"
#. Tag: term
-#: architecture.xml:117
#, no-c-format
msgid "Persistent objects and collections"
msgstr "æä¹
ç对象åå
¶éå"
#. Tag: para
-#: architecture.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
@@ -141,40 +129,36 @@
"in any application layer (for example, directly as data transfer objects to "
"and from presentation)."
msgstr ""
-"带ææä¹
åç¶æçãå
·æä¸å¡åè½çå线ç¨å¯¹è±¡ï¼æ¤å¯¹è±¡çåæå¾çã è¿äºå¯¹è±¡å¯è½æ¯"
+"带ææä¹
åç¶æçãå
·æä¸å¡åè½çå线ç¨å¯¹è±¡ï¼æ¤å¯¹è±¡çåæå¾çãè¿äºå¯¹è±¡å¯è½æ¯"
"æ®éçJavaBeans/POJOï¼å¯ä¸ç¹æ®çæ¯ä»ä»¬æ£ä¸ï¼ä»
ä»
ä¸ä¸ªï¼<literal>Session</"
-"literal>ç¸å
³èã 䏿¦è¿ä¸ª<literal>Session</literal>被å
³éï¼è¿äºå¯¹è±¡å°±ä¼è±ç¦»æ"
-"ä¹
åç¶æï¼è¿æ ·å°±å¯è¢«åºç¨ç¨åºçä»»ä½å±èªç±ä½¿ç¨ã ï¼ä¾å¦ï¼ç¨ä½è·è¡¨ç¤ºå±æäº¤éçæ°"
-"æ®ä¼ è¾å¯¹è±¡ãï¼"
+"literal> ç¸å
³èã䏿¦è¿ä¸ª <literal>Session</literal> 被å
³éï¼è¿äºå¯¹è±¡å°±ä¼è±ç¦»"
+"æä¹
åç¶æï¼è¿æ ·å°±å¯è¢«åºç¨ç¨åºçä»»ä½å±èªç±ä½¿ç¨ï¼ä¾å¦ï¼ç¨ä½è·è¡¨ç¤ºå±æäº¤éçæ°"
+"æ®ä¼ è¾å¯¹è±¡ï¼ã"
#. Tag: term
-#: architecture.xml:129
#, no-c-format
msgid "Transient and detached objects and collections"
-msgstr "ç¬æ(transient)åè±ç®¡(detached)ç对象åå
¶éå"
+msgstr "ç¬æï¼transientï¼åè±ç®¡ï¼detachedï¼ç对象åå
¶éå"
#. Tag: para
-#: architecture.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Instances of persistent classes that are not currently associated with a "
"<literal>Session</literal>. They may have been instantiated by the "
"application and not yet persisted, or they may have been instantiated by a "
"closed <literal>Session</literal>."
msgstr ""
-"é£äºç®å没æä¸sessionå
³èçæä¹
åç±»å®ä¾ã ä»ä»¬å¯è½æ¯å¨è¢«åºç¨ç¨åºå®ä¾ååï¼å°"
-"æªè¿è¡æä¹
åç对象ã ä¹å¯è½æ¯å 为å®ä¾åä»ä»¬ç<literal>Session</literal>å·²ç»è¢«"
-"å
³éèè±ç¦»æä¹
åç对象ã"
+"é£äºç®å没æä¸ <literal>Session</literal>å
³èçæä¹
åç±»å®ä¾ãä»ä»¬å¯è½æ¯å¨è¢«åº"
+"ç¨ç¨åºå®ä¾ååï¼å°æªè¿è¡æä¹
åç对象ãä¹å¯è½æ¯å 为å®ä¾åä»ä»¬ç "
+"<literal>Session</literal> å·²ç»è¢«å
³éèè±ç¦»æä¹
åç对象ã"
#. Tag: term
-#: architecture.xml:140
#, no-c-format
msgid "Transaction (<literal>org.hibernate.Transaction</literal>)"
-msgstr "äºå¡Transaction (<literal>org.hibernate.Transaction</literal>)"
+msgstr "äºå¡ Transaction (<literal>org.hibernate.Transaction</literal>)"
#. Tag: para
-#: architecture.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
@@ -184,13 +168,12 @@
"<literal>Transaction</literal>, is never optional."
msgstr ""
"ï¼å¯éçï¼åºç¨ç¨åºç¨æ¥æå®ååæä½åå
èå´ç对象ï¼å®æ¯å线ç¨çï¼çå½å¨æå¾"
-"çã å®éè¿æ½è±¡å°åºç¨ä»åºå±å
·ä½çJDBCãJTA以åCORBAäºå¡é离å¼ã æäºæ
åµä¸ï¼"
-"ä¸ä¸ª<literal>Session</literal>ä¹å
å¯è½å
å«å¤ä¸ª<literal>Transaction</literal>"
-"对象ã 尽管æ¯å¦ä½¿ç¨è¯¥å¯¹è±¡æ¯å¯éçï¼ä½æ 论æ¯ä½¿ç¨åºå±çAPIè¿æ¯ä½¿ç¨"
-"<literal>Transaction</literal>对象ï¼äºå¡è¾¹ççå¼å¯ä¸å
³éæ¯å¿
ä¸å¯å°çã"
+"çãå®éè¿æ½è±¡å°åºç¨ä»åºå±å
·ä½ç JDBCãJTA 以å CORBA äºå¡é离å¼ãæäºæ
åµ"
+"ä¸ï¼ä¸ä¸ª <literal>Session</literal> ä¹å
å¯è½å
å«å¤ä¸ª <literal>Transaction</"
+"literal> 对象ã尽管æ¯å¦ä½¿ç¨è¯¥å¯¹è±¡æ¯å¯éçï¼ä½æ 论æ¯ä½¿ç¨åºå±ç API è¿æ¯ä½¿ç¨ "
+"<literal>Transaction</literal> 对象ï¼äºå¡è¾¹ççå¼å¯ä¸å
³éæ¯å¿
éçã "
#. Tag: term
-#: architecture.xml:153
#, no-c-format
msgid ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</"
@@ -200,20 +183,18 @@
"literal>)"
#. Tag: para
-#: architecture.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for, and pool of, JDBC connections. It abstracts the "
"application from underlying <literal>Datasource</literal> or "
"<literal>DriverManager</literal>. It is not exposed to application, but it "
"can be extended and/or implemented by the developer."
msgstr ""
-"ï¼å¯éçï¼çæJDBCè¿æ¥çå·¥åï¼åæ¶ä¹èµ·å°è¿æ¥æ± çä½ç¨ï¼ã å®éè¿æ½è±¡å°åºç¨ä»åº"
-"å±ç<literal>Datasource</literal>æ<literal>DriverManager</literal>é离å¼ã "
-"ä»
ä¾å¼åè
æ©å±/å®ç°ç¨ï¼å¹¶ä¸æ´é²ç»åºç¨ç¨åºä½¿ç¨ã"
+"ï¼å¯éçï¼çæ JDBC è¿æ¥çå·¥åï¼åæ¶ä¹èµ·å°è¿æ¥æ± çä½ç¨ï¼ãå®éè¿æ½è±¡å°åºç¨ä»"
+"åºå±ç <literal>Datasource</literal> æ <literal>DriverManager</literal> é离"
+"å¼ãä»
ä¾å¼åè
æ©å±/å®ç°ç¨ï¼å¹¶ä¸å¼æ¾ç»åºç¨ç¨åºä½¿ç¨ã"
#. Tag: term
-#: architecture.xml:163
#, no-c-format
msgid ""
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
@@ -221,88 +202,80 @@
"TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"
#. Tag: para
-#: architecture.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"(Optional) A factory for <literal>Transaction</literal> instances. It is not "
"exposed to the application, but it can be extended and/or implemented by the "
"developer."
msgstr ""
-"ï¼å¯éçï¼çæ<literal>Transaction</literal>对象å®ä¾çå·¥åã ä»
ä¾å¼åè
æ©å±/"
-"å®ç°ç¨ï¼å¹¶ä¸æ´é²ç»åºç¨ç¨åºä½¿ç¨ã"
+"ï¼å¯éçï¼çæ <literal>Transaction</literal> 对象å®ä¾çå·¥åãä»
ä¾å¼åè
æ©å±/"
+"å®ç°ç¨ï¼å¹¶ä¸å¼åè½å¤ç»åºç¨ç¨åºä½¿ç¨ã"
-#. Tag: emphasis
-#: architecture.xml:172
-#, no-c-format
-msgid "Extension Interfaces"
-msgstr "æ©å±æ¥å£"
+#. Tag: term
+#, fuzzy, no-c-format
+msgid "<emphasis>Extension Interfaces</emphasis>"
+msgstr "<emphasis>æ©å±æ¥å£</emphasis>"
#. Tag: para
-#: architecture.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
"documentation for details."
msgstr ""
-"Hibernateæä¾äºå¾å¤å¯éçæ©å±æ¥å£ï¼ä½ å¯ä»¥éè¿å®ç°å®ä»¬æ¥å®å¶ä½ çæä¹
å±çè¡"
-"为ã å
·ä½è¯·åèAPIææ¡£ã"
+"Hibernate æä¾äºå¾å¤å¯éçæ©å±æ¥å£ï¼ä½ å¯ä»¥éè¿å®ç°å®ä»¬æ¥å®å¶ä½ çæä¹
å±çè¡"
+"为ãå
·ä½è¯·åè API ææ¡£ã"
#. Tag: para
-#: architecture.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Given a \"minimal\" architecture, the application bypasses the "
"<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or "
"<literal>ConnectionProvider</literal> APIs to communicate with JTA or JDBC "
"directly."
msgstr ""
-"å¨ç¹å®âè½»åâçä½ç³»ç»æä¸ï¼åºç¨ç¨åºå¯è½ç»è¿ <literal>Transaction</literal>/"
+"å¨ç¹å®âæå°âçä½ç³»ç»æä¸ï¼åºç¨ç¨åºå¯è½ç»è¿ <literal>Transaction</literal>/"
"<literal>TransactionFactory</literal> 以å <literal>ConnectionProvider</"
-"literal> çAPIç´æ¥è·JTAæJDBCæäº¤éã"
+"literal> ç API ç´æ¥è· JTA æ JDBC æäº¤éã"
#. Tag: title
-#: architecture.xml:191
#, no-c-format
msgid "Instance states"
msgstr "å®ä¾ç¶æ"
#. Tag: para
-#: architecture.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of a persistent class can be in one of three different states. "
"These states are defined in relation to a <emphasis>persistence context</"
"emphasis>. The Hibernate <literal>Session</literal> object is the "
"persistence context. The three different states are as follows:"
msgstr ""
-"ä¸ä¸ªæä¹
åç±»çå®ä¾å¯è½å¤äºä¸ç§ä¸åç¶æä¸çæä¸ç§ã è¿ä¸ç§ç¶æçå®ä¹å䏿è°ç"
-"<emphasis>æä¹
åä¸ä¸æ(persistence context)</emphasis>æå
³ã Hibernateç"
-"<literal>Session</literal>对象就æ¯è¿ä¸ªæè°çæä¹
åä¸ä¸æï¼"
+"ä¸ä¸ªæä¹
åç±»çå®ä¾å¯è½å¤äºä¸ç§ä¸åç¶æä¸çæä¸ç§ãè¿ä¸ç§ç¶æçå®ä¹å䏿è°ç"
+"<emphasis>æä¹
åä¸ä¸æï¼persistence contextï¼</emphasis>æå
³ãHibernate ç "
+"<literal>Session</literal> 对象就æ¯è¿ä¸ªæè°çæä¹
åä¸ä¸æãè¿ä¸ç§ä¸åçç¶æå¦"
+"ä¸ï¼"
#. Tag: term
-#: architecture.xml:200
#, no-c-format
msgid "transient"
msgstr "ç¬æï¼transientï¼"
#. Tag: para
-#: architecture.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is not associated with any persistence context. It has no "
"persistent identity or primary key value."
-msgstr "该å®ä¾ä»æªä¸ä»»ä½æä¹
åä¸ä¸æå
³èè¿ã宿²¡ææä¹
åæ è¯ï¼ç¸å½äºä¸»é®å¼ï¼ã"
+msgstr ""
+"该å®ä¾ä»æªä¸ä»»ä½æä¹
åä¸ä¸æå
³èè¿ã宿²¡ææä¹
åæ è¯ï¼ç¸å½äºä¸»é®å¼ï¼ã "
#. Tag: term
-#: architecture.xml:210
#, no-c-format
msgid "persistent"
-msgstr "æä¹
å(persistent)"
+msgstr "æä¹
åï¼persistentï¼"
#. Tag: para
-#: architecture.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance is currently associated with a persistence context. It has a "
"persistent identity (primary key value) and can have a corresponding row in "
@@ -310,19 +283,17 @@
"<emphasis>guarantees</emphasis> that persistent identity is equivalent to "
"Java identity in relation to the in-memory location of the object."
msgstr ""
-"å®ä¾ç®åä¸æä¸ªæä¹
åä¸ä¸ææå
³èã 宿¥ææä¹
åæ è¯ï¼ç¸å½äºä¸»é®å¼ï¼ï¼å¹¶ä¸å¯è½"
-"卿°æ®åºä¸æä¸ä¸ªå¯¹åºçè¡ã å¯¹äºæä¸ä¸ªç¹å®çæä¹
åä¸ä¸æï¼Hibernate<emphasis>"
-"ä¿è¯</emphasis>æä¹
åæ è¯ä¸Javaæ è¯ï¼å
¶å¼ä»£è¡¨å¯¹è±¡å¨å
åä¸çä½ç½®ï¼çä»·ã"
+"å®ä¾ç®åä¸æä¸ªæä¹
åä¸ä¸ææå
³èã宿¥ææä¹
åæ è¯ï¼ç¸å½äºä¸»é®å¼ï¼ï¼å¹¶ä¸å¯è½"
+"卿°æ®åºä¸æä¸ä¸ªå¯¹åºçè¡ãå¯¹äºæä¸ä¸ªç¹å®çæä¹
åä¸ä¸æï¼Hibernate <emphasis>"
+"ä¿è¯</emphasis> æä¹
åæ è¯ä¸ Java æ è¯ï¼å
¶å¼ä»£è¡¨å¯¹è±¡å¨å
åä¸çä½ç½®ï¼çä»·ãã"
#. Tag: term
-#: architecture.xml:224
#, no-c-format
msgid "detached"
-msgstr "è±ç®¡(detached)"
+msgstr "è±ç®¡ï¼detachedï¼"
#. Tag: para
-#: architecture.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The instance was once associated with a persistence context, but that "
"context was closed, or the instance was serialized to another process. It "
@@ -330,45 +301,41 @@
"For detached instances, Hibernate does not guarantee the relationship "
"between persistent identity and Java identity."
msgstr ""
-"å®ä¾æ¾ç»ä¸æä¸ªæä¹
åä¸ä¸æåçè¿å
³èï¼ä¸è¿é£ä¸ªä¸ä¸æè¢«å
³éäºï¼ æè
è¿ä¸ªå®ä¾æ¯"
-"被åºåå(serialize)å°å¦å¤çè¿ç¨ã 宿¥ææä¹
åæ è¯ï¼å¹¶ä¸å¨æ°æ®åºä¸å¯è½åå¨ä¸"
-"个对åºçè¡ã 对äºè±ç®¡ç¶æçå®ä¾ï¼Hibernateä¸ä¿è¯ä»»ä½æä¹
åæ è¯åJavaæ è¯çå
³"
-"ç³»ã"
+"å®ä¾æ¾ç»ä¸æä¸ªæä¹
åä¸ä¸æåçè¿å
³èï¼ä¸è¿é£ä¸ªä¸ä¸æè¢«å
³éäºï¼æè
è¿ä¸ªå®ä¾æ¯"
+"被åºååï¼serializeï¼å°å¦å¤çè¿ç¨ã宿¥ææä¹
åæ è¯ï¼å¹¶ä¸å¨æ°æ®åºä¸å¯è½åå¨ä¸"
+"个对åºçè¡ã对äºè±ç®¡ç¶æçå®ä¾ï¼Hibernate ä¸ä¿è¯ä»»ä½æä¹
åæ è¯å Java æ è¯ç"
+"å
³ç³»ã "
#. Tag: title
-#: architecture.xml:241
#, no-c-format
msgid "JMX Integration"
-msgstr "JMXæ´å"
+msgstr "JMX æ´å"
#. Tag: para
-#: architecture.xml:243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
"provided in the distribution: <literal>org.hibernate.jmx.HibernateService</"
"literal>."
msgstr ""
-"JMXæ¯ç®¡çJavaç»ä»¶(Java components)çJ2EEæ åã Hibernate å¯ä»¥éè¿ä¸ä¸ªJMXæ å"
-"æå¡æ¥ç®¡çã å¨è¿ä¸ªåè¡çæ¬ä¸ï¼æä»¬æä¾äºä¸ä¸ªMBeanæ¥å£çå®ç°,å³ <literal>org."
-"hibernate.jmx.HibernateService</literal>ã"
+"JMX æ¯ç®¡ç Java ç»ä»¶ç J2EE æ åãHibernate å¯ä»¥éè¿ä¸ä¸ª JMX æ åæå¡æ¥ç®¡çã"
+"å¨è¿ä¸ªåè¡çæ¬ä¸ï¼æä»¬æä¾äºä¸ä¸ª MBean æ¥å£çå®ç°,å³ <literal>org.hibernate."
+"jmx.HibernateService</literal>ã "
#. Tag: para
-#: architecture.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For an example of how to deploy Hibernate as a JMX service on the JBoss "
"Application Server, please see the JBoss User Guide. JBoss AS also provides "
"these benefits if you deploy using JMX:"
msgstr ""
-"æ³è¦çå¦ä½å¨JBossåºç¨æå¡å¨ä¸å°Hibernateé¨ç½²ä¸ºä¸ä¸ªJMXæå¡çä¾åï¼æ¨å¯ä»¥åè"
-"JBossç¨æ·æåã æä»¬ç°å¨è¯´ä¸ä¸å¨Jbossåºç¨æå¡å¨ä¸ï¼ä½¿ç¨JMXæ¥é¨ç½²Hibernateç好"
-"å¤ï¼"
+"æ³è¦çå¦ä½å¨ JBoss åºç¨æå¡å¨ä¸å° Hibernate é¨ç½²ä¸ºä¸ä¸ª JMX æå¡çä¾åï¼æ¨å¯ä»¥"
+"åèãJBoss ç¨æ·æåããå¦æä½ ä½¿ç¨ JMX æ¥é¨ç½² Hibernateï¼JBoss AS 乿ä¾å¦ä¸"
+"好å¤ï¼"
#. Tag: para
-#: architecture.xml:257
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Session Management</emphasis>: the Hibernate <literal>Session</"
"literal>'s life cycle can be automatically bound to the scope of a JTA "
@@ -380,16 +347,15 @@
"the <literal>HibernateContext</literal> to access a <literal>Session</"
"literal>."
msgstr ""
-"<emphasis>Session管çï¼</emphasis> Hibernateç<literal>Session</literal>对象"
-"ççå½å¨æå¯ä»¥ èªå¨è·ä¸ä¸ªJTAäºå¡è¾¹çç»å®ãè¿æå³çä½ æ éæå·¥å¼å
³"
-"<literal>Session</literal>äº, è¿é¡¹ å·¥ä½ä¼ç±JBoss EJB æ¦æªå¨æ¥å®æãä½ åä¹ä¸ç¨"
-"æ
å¿ä½ ç代ç ä¸çäºå¡è¾¹çäº(é¤éä½ æ³å©ç¨Hibernateæä¾å¯é ç"
-"<literal>Transaction</literal> APIæ¥èªå·±åä¸ä¸ªä¾¿äºç§»æ¤ççæä¹
å±)ã ä½ éè¿è°"
-"ç¨<literal>HibernateContext</literal>æ¥è®¿é®<literal>Session</literal>ã"
+"<emphasis>ä¼è¯ç®¡çï¼</emphasis> Hibernate ç <literal>Session</literal> 对象"
+"ççå½å¨æå¯ä»¥ èªå¨è·ä¸ä¸ª JTA äºå¡è¾¹çç»å®ãè¿æå³çä½ æ éæå·¥å¼å
³ "
+"<literal>Session</literal> äº, è¿é¡¹å·¥ä½ä¼ç± JBoss EJB æ¦æªå¨æ¥å®æãä½ åä¹ä¸"
+"ç¨æ
å¿ä½ ç代ç ä¸çäºå¡è¾¹çäºï¼é¤éä½ æ³å©ç¨ Hibernate æä¾å¯éç "
+"<literal>Transaction</literal> API æ¥èªå·±åä¸ä¸ªä¾¿äºç§»æ¤ççæä¹
å±ï¼ãä½ éè¿è°"
+"ç¨ <literal>HibernateContext</literal> æ¥è®¿é® <literal>Session</literal>ã"
#. Tag: para
-#: architecture.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>HAR deployment</emphasis>: the Hibernate JMX service is deployed "
"using a JBoss service deployment descriptor in an EAR and/or SAR file, as it "
@@ -399,56 +365,50 @@
"deployment, JBoss will automatically detect all mapping files in your HAR "
"file."
msgstr ""
-"<emphasis>HAR é¨ç½²:</emphasis> é常æ
åµä¸ï¼ä½ ä¼ä½¿ç¨JBossçæå¡é¨ç½²æè¿°ç¬¦ï¼å¨"
-"EARæ/åSARæä»¶ä¸ï¼æ¥é¨ç½²Hibernate JMXæå¡ã è¿ç§é¨ç½²æ¹å¼æ¯æææå¸¸è§ç"
-"Hibernate <literal>SessionFactory</literal>çé
ç½®é项ã ä¸è¿ï¼ä½ ä»éå¨é¨ç½²æ"
-"述符ä¸ï¼ååºä½ ææçæ å°æä»¶çååãå¦æä½ ä½¿ç¨HARé¨ç½²æ¹å¼, JBoss ä¼èªå¨æ¢æµåº"
-"ä½ çHARæä»¶ä¸ææçæ å°æä»¶ã"
+"<emphasis>HAR é¨ç½²:</emphasis> é常æ
åµä¸ï¼ä½ ä¼ä½¿ç¨ JBoss çæå¡é¨ç½²æè¿°ç¬¦"
+"ï¼å¨ EAR æ/å SAR æä»¶ä¸ï¼æ¥é¨ç½² Hibernate JMX æå¡ãè¿ç§é¨ç½²æ¹å¼æ¯æææå¸¸"
+"è§ç Hibernate <literal>SessionFactory</literal> çé
ç½®é项ãä¸è¿ï¼ä½ ä»éå¨é¨"
+"ç½²æè¿°ç¬¦ä¸ï¼ååºä½ ææçæ å°æçååãå¦æä½ ä½¿ç¨ HAR é¨ç½²æ¹å¼, JBoss ä¼èªå¨æ¢"
+"æµåºä½ ç HAR æä»¶ä¸ææçæ å°æä»¶ã"
#. Tag: para
-#: architecture.xml:280
#, no-c-format
msgid ""
"Consult the JBoss AS user guide for more information about these options."
-msgstr "è¿äºé项æ´å¤çæè¿°ï¼è¯·åèJBoss åºç¨ç¨åºç¨æ·æåã"
+msgstr "è¿äºé项æ´å¤çæè¿°ï¼è¯·åè JBoss åºç¨ç¨åºç¨æ·æåã"
#. Tag: para
-#: architecture.xml:284
#, fuzzy, no-c-format
msgid ""
"Another feature available as a JMX service is runtime Hibernate statistics. "
-"See <xref linkend=\"configuration-optional-statistics\"/> for more "
+"See <xref linkend=\"configuration-optional-statistics\" /> for more "
"information."
msgstr ""
-"å°Hibernate以é¨ç½²ä¸ºJMXæå¡çå¦ä¸ä¸ªå¥½å¤ï¼æ¯å¯ä»¥æ¥çHibernateçè¿è¡æ¶ç»è®¡ä¿¡æ¯ã"
-"åç <xref linkend=\"configuration-optional-statistics\"/>."
+"å° Hibernate 以é¨ç½²ä¸º JMX æå¡çå¦ä¸ä¸ªå¥½å¤æ¯å¯ä»¥æ¥ç Hibernate çè¿è¡æ¶ç»è®¡ä¿¡"
+"æ¯ãåç <xref linkend=\"configuration-optional-statistics\"/>ã"
#. Tag: title
-#: architecture.xml:291
#, no-c-format
msgid "JCA Support"
-msgstr "对JCAçæ¯æ"
+msgstr "对 JCA çæ¯æ"
#. Tag: para
-#: architecture.xml:292
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also be configured as a JCA connector. Please see the website "
"for more information. Please note, however, that at this stage Hibernate JCA "
"support is under development."
msgstr ""
-"Hibernateä¹å¯ä»¥è¢«é
置为ä¸ä¸ªJCAè¿æ¥å¨ï¼JCA connectorï¼ãæ´å¤ä¿¡æ¯è¯·åçç½ç«ã "
-"请注æï¼Hibernate对JCAçæ¯æï¼ä»å¤äºå®éªæ§é¶æ®µã"
+"Hibernate ä¹å¯ä»¥è¢«é
置为ä¸ä¸ª JCA è¿æ¥å¨ï¼JCA connectorï¼ãæ´å¤ä¿¡æ¯è¯·åçç½"
+"ç«ã请注æï¼Hibernate 对 JCA çæ¯æï¼ä»å¤äºå®éªæ§é¶æ®µã"
#. Tag: title
-#: architecture.xml:299
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Contextual sessions"
-msgstr "ä¸ä¸æç¸å
³çï¼Contextualï¼Session"
+msgstr "ä¸ä¸æç¸å
³çä¼è¯ï¼Contextual Sessionï¼"
#. Tag: para
-#: architecture.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most applications using Hibernate need some form of \"contextual\" session, "
"where a given session is in effect throughout the scope of a given context. "
@@ -460,18 +420,17 @@
"utilized third-party frameworks, such as Spring or Pico, which provided "
"proxy/interception-based contextual sessions."
msgstr ""
-"使ç¨Hibernateç大夿°åºç¨ç¨åºéè¦æç§å½¢å¼çâä¸ä¸æç¸å
³çâ sessionï¼ç¹å®ç"
-"session卿´ä¸ªç¹å®çä¸ä¸æèå´å
å§ç»ææãç¶èï¼å¯¹ä¸åç±»åçåºç¨ç¨åºèè¨ï¼è¦ä¸º"
-"ä»ä¹æ¯ç»æè¿ç§âä¸ä¸æâä¸ä¸ä¸ªå®ä¹é常æ¯å°é¾çï¼ä¸åçä¸ä¸æå¯¹âå½åâè¿ä¸ªæ¦å¿µå®"
-"ä¹äºä¸åçèå´ãå¨3.0çæ¬ä¹åï¼ä½¿ç¨Hibernateçç¨åºè¦ä¹éç¨èªè¡ç¼åçåºäº"
-"<literal>ThreadLocal</literal>çä¸ä¸æsessionï¼è¦ä¹éç¨"
-"<literal>HibernateUtil</literal>è¿æ ·çè¾
å©ç±»ï¼è¦ä¹éç¨ç¬¬ä¸æ¹æ¡æ¶ï¼æ¯å¦Spring"
-"æPico)ï¼å®ä»¬æä¾äºåºäºä»£ç(proxy)æè
åºäºæ¦æªå¨(interception)çä¸ä¸æç¸å
³"
-"sessionã"
+"ä½¿ç¨ Hibernate ç大夿°åºç¨ç¨åºéè¦æç§å½¢å¼çâä¸ä¸æç¸å
³çâä¼è¯ï¼ç¹å®çä¼è¯å¨"
+"æ´ä¸ªç¹å®çä¸ä¸æèå´å
å§ç»ææãç¶èï¼å¯¹ä¸åç±»åçåºç¨ç¨åºèè¨ï¼è¦ä¸ºä»ä¹æ¯ç»"
+"æè¿ç§âä¸ä¸æâä¸ä¸ä¸ªå®ä¹é常æ¯å°é¾çï¼ä¸åçä¸ä¸æå¯¹âå½åâè¿ä¸ªæ¦å¿µå®ä¹äºä¸å"
+"çèå´ãå¨ 3.0 çæ¬ä¹åï¼ä½¿ç¨ Hibernate çç¨åºè¦ä¹éç¨èªè¡ç¼åçåºäº "
+"<literal>ThreadLocal</literal> çä¸ä¸æä¼è¯ï¼è¦ä¹éç¨ "
+"<literal>HibernateUtil</literal> è¿æ ·çè¾
å©ç±»ï¼è¦ä¹éç¨ç¬¬ä¸æ¹æ¡æ¶ï¼æ¯å¦ "
+"Spring æ Picoï¼ï¼å®ä»¬æä¾äºåºäºä»£çï¼proxyï¼æè
åºäºæ¦æªå¨ï¼interceptionï¼ç"
+"ä¸ä¸æç¸å
³çä¼è¯ã"
#. Tag: para
-#: architecture.xml:309
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
"getCurrentSession()</literal> method. Initially, this assumed usage of "
@@ -483,17 +442,16 @@
"deployed into a <literal>J2EE</literal> container. Based on that, the "
"<literal>JTA</literal>-based contextual sessions are all you need to use."
msgstr ""
-"ä»3.0.1çæ¬å¼å§ï¼Hibernateå¢å äº<literal>SessionFactory.getCurrentSession()</"
-"literal>æ¹æ³ãä¸å¼å§ï¼å®åå®äºéç¨<literal>JTA</literal>äºå¡ï¼<literal>JTA</"
-"literal>äºå¡å®ä¹äºå½åsessionçèå´åä¸ä¸æ(scope and context)ãHibernateå¼å"
-"å¢éåä¿¡ï¼å 为æå¥½å 个ç¬ç«ç<literal>JTA TransactionManager</literal>å®ç°ç¨³å®"
-"å¯ç¨ï¼ä¸è®ºæ¯å¦è¢«é¨ç½²å°ä¸ä¸ª<literal>J2EE</literal>容å¨ä¸ï¼å¤§å¤æ°(åè¥ä¸æ¯ææ"
-"çï¼åºç¨ç¨åºé½åºè¯¥éç¨<literal>JTA</literal>äºå¡ç®¡çãåºäºè¿ä¸ç¹ï¼éç¨"
-"<literal>JTA</literal>çä¸ä¸æç¸å
³sessionå¯ä»¥æ»¡è¶³ä½ ä¸åéè¦ã"
+"ä» 3.0.1 çæ¬å¼å§ï¼Hibernate å¢å äº <literal>SessionFactory.getCurrentSession"
+"()</literal> æ¹æ³ãä¸å¼å§ï¼å®åå®äºéç¨ <literal>JTA</literal> äºå¡ï¼"
+"<literal>JTA</literal> äºå¡å®ä¹äºå½å session çèå´åä¸ä¸æï¼scope å "
+"contextï¼ãå 为æå¥½å 个ç¬ç«ç <literal>JTA TransactionManager</literal> å®ç°"
+"稳å®å¯ç¨ï¼ä¸è®ºæ¯å¦è¢«é¨ç½²å°ä¸ä¸ª <literal>J2EE</literal> 容å¨ä¸ï¼å¤§å¤æ°ï¼åè¥ä¸"
+"æ¯ææçï¼åºç¨ç¨åºé½åºè¯¥éç¨ <literal>JTA</literal> äºå¡ç®¡çãåºäºè¿ä¸ç¹ï¼é"
+"ç¨ <literal>JTA</literal> çä¸ä¸æç¸å
³çä¼è¯å¯ä»¥æ»¡è¶³ä½ ä¸åéè¦ã"
#. Tag: para
-#: architecture.xml:319
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, as of version 3.1, the processing behind <literal>SessionFactory."
"getCurrentSession()</literal> is now pluggable. To that end, a new extension "
@@ -502,15 +460,14 @@
"current_session_context_class</literal>, have been added to allow "
"pluggability of the scope and context of defining current sessions."
msgstr ""
-"æ´å¥½çæ¯ï¼ä»3.1å¼å§ï¼<literal>SessionFactory.getCurrentSession()</literal>ç"
-"åå°å®ç°æ¯å¯ææçãå æ¤ï¼æä»¬å¼å
¥äºæ°çæ©å±æ¥å£(<literal>org.hibernate."
-"context.CurrentSessionContext</literal>)åæ°çé
ç½®åæ°(<literal>hibernate."
-"current_session_context_class</literal>)ï¼ä»¥ä¾¿å¯¹ä»ä¹æ¯âå½åsessionâçèå´åä¸"
-"䏿(scope and context)çå®ä¹è¿è¡ææã"
+"æ´å¥½çæ¯ï¼ä» 3.1 å¼å§ï¼<literal>SessionFactory.getCurrentSession()</literal> "
+"çåå°å®ç°æ¯å¯ææçãå æ¤ï¼æä»¬å¼å
¥äºæ°çæ©å±æ¥å£ï¼<literal>org.hibernate."
+"context.CurrentSessionContext</literal>ï¼åæ°çé
ç½®åæ°ï¼<literal>hibernate."
+"current_session_context_class</literal>ï¼ï¼ä»¥ä¾¿å¯¹ä»ä¹æ¯å½åä¼è¯çèå´"
+"ï¼scopeï¼åä¸ä¸æï¼contextï¼çå®ä¹è¿è¡ææã"
#. Tag: para
-#: architecture.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"See the Javadocs for the <literal>org.hibernate.context."
"CurrentSessionContext</literal> interface for a detailed discussion of its "
@@ -519,50 +476,46 @@
"contextual session. Out-of-the-box, Hibernate comes with three "
"implementations of this interface:"
msgstr ""
-"请åé
<literal>org.hibernate.context.CurrentSessionContext</literal>æ¥å£ç"
-"Javadoc,é£éæå
³äºå®çå¥çº¦ç详ç»è®¨è®ºãå®å®ä¹äºåä¸çæ¹æ³ï¼"
-"<literal>currentSession()</literal>ï¼ç¹å®çå®ç°ç¨å®æ¥è´è´£è·è¸ªå½åçä¸ä¸æ"
-"sessionãHibernateå
ç½®äºæ¤æ¥å£çä¸ç§å®ç°ã"
+"请åé
<literal>org.hibernate.context.CurrentSessionContext</literal> æ¥å£ç "
+"Javadocï¼é£éæå
³äºå®çå¥çº¦ç详ç»è®¨è®ºãå®å®ä¹äºåä¸çæ¹æ³ï¼"
+"<literal>currentSession()</literal>ï¼ç¹å®çå®ç°ç¨å®æ¥è´è´£è·è¸ªå½åçä¸ä¸æç¸å
³"
+"çä¼è¯ãHibernate å
ç½®äºæ¤æ¥å£çä¸ç§å®ç°ï¼"
#. Tag: para
-#: architecture.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext</literal>: current sessions "
"are tracked and scoped by a <literal>JTA</literal> transaction. The "
"processing here is exactly the same as in the older JTA-only approach. See "
"the Javadocs for details."
msgstr ""
-"<literal>org.hibernate.context.JTASessionContext</literal> - å½åsessionæ ¹æ®"
-"<literal>JTA</literal>æ¥è·è¸ªåçå®ãè¿å以åçä»
æ¯æJTAçæ¹æ³æ¯å®å
¨ä¸æ ·çã详"
-"æ
请åé
Javadocã"
+"<literal>org.hibernate.context.JTASessionContext</literal>ï¼å½åä¼è¯æ ¹æ® "
+"<literal>JTA</literal> æ¥è·è¸ªåçå®ãè¿å以åçä»
æ¯æ JTA çæ¹æ³æ¯å®å
¨ä¸æ ·"
+"çã详æ
请åé
Javadocã"
#. Tag: para
-#: architecture.xml:344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
-"<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - å½å"
-"sessionéè¿å½åæ§è¡ççº¿ç¨æ¥è·è¸ªåçå®ã详æ
ä¹è¯·åé
Javadocã"
+"<literal>org.hibernate.context.ThreadLocalSessionContext</literal>ï¼å½åä¼è¯"
+"éè¿å½åæ§è¡ççº¿ç¨æ¥è·è¸ªåçå®ã详æ
ä¹è¯·åé
Javadocã"
#. Tag: para
-#: architecture.xml:350
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext</literal>: current "
"sessions are tracked by thread of execution. However, you are responsible to "
"bind and unbind a <literal>Session</literal> instance with static methods on "
"this class: it does not open, flush, or close a <literal>Session</literal>."
msgstr ""
-"<literal>org.hibernate.context.ManagedSessionContext</literal> - å½åsession"
-"éè¿å½åæ§è¡ççº¿ç¨æ¥è·è¸ªåçå®ã使¯ï¼ä½ éè¦è´è´£ä½¿ç¨è¿ä¸ªç±»çéææ¹æ³å°"
-"<literal>Session</literal>å®ä¾ç»å®ãæè
åæ¶ç»å®ï¼å®å¹¶ä¸ä¼æå¼(open)ãflushæ"
-"è
å
³é(close)ä»»ä½<literal>Session</literal>ã"
+"<literal>org.hibernate.context.ManagedSessionContext</literal>ï¼å½åä¼è¯éè¿"
+"å½åæ§è¡ççº¿ç¨æ¥è·è¸ªåçå®ã使¯ï¼ä½ éè¦è´è´£ä½¿ç¨è¿ä¸ªç±»çéææ¹æ³å° "
+"<literal>Session</literal> å®ä¾ç»å®ãæè
åæ¶ç»å®ï¼å®å¹¶ä¸ä¼æå¼ï¼openï¼ã"
+"flush æè
å
³éï¼closeï¼ä»»ä½ <literal>Session</literal>ã"
#. Tag: para
-#: architecture.xml:359
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
@@ -575,21 +528,20 @@
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not need any transaction or session demarcation "
-"operations in your code. Refer to <xref linkend=\"transactions\"/> for more "
+"operations in your code. Refer to <xref linkend=\"transactions\" /> for more "
"information and code examples."
msgstr ""
-"å两ç§å®ç°é½æä¾äºâæ¯æ°æ®åºäºå¡å¯¹åºä¸ä¸ªsessionâçç¼ç¨æ¨¡åï¼ä¹ç§°ä½<emphasis>æ¯"
-"次请æ±ä¸ä¸ªsession</emphasis>ãHibernate sessionçèµ·å§åç»ç»ç±æ°æ®åºäºå¡ççå"
-"æ¥æ§å¶ãåè¥ä½ å¨çº¯ç²¹ç Java SEä¹ä¸éç¨èªè¡ç¼åä»£ç æ¥ç®¡çäºå¡,èä¸ä½¿ç¨JTAï¼å»º"
-"è®®ä½ ä½¿ç¨Hibernate <literal>Transaction</literal> APIæ¥æåºå±äºå¡å®ç°ä»ä½ ç代"
-"ç ä¸éèæãå¦æä½ ä½¿ç¨JTAï¼è¯·ä½¿ç¨JTAå壿¥ç®¡çTransactionãå¦æä½ å¨æ¯æCMTç"
-"EJB容å¨ä¸æ§è¡ä»£ç ï¼äºå¡è¾¹çæ¯å£°æå¼å®ä¹çï¼ä½ ä¸éè¦å¨ä»£ç ä¸è¿è¡ä»»ä½äºå¡æ"
-"session管çæä½ã请åé
<xref linkend=\"transactions\"/>ä¸èæ¥é
读æ´å¤çå
容å"
-"示ä¾ä»£ç ã"
+"å两ç§å®ç°é½æä¾äºâone session - one database transactionâçç¼ç¨æ¨¡åï¼ä¹ç§°ä½ "
+"<emphasis>session-per-request</emphasis>ãHibernate session çèµ·å§åç»ç»ç±æ°"
+"æ®åºäºå¡çç忥æ§å¶ãåè¥ä½ å¨çº¯ç²¹ç Java SE ä¹ä¸éç¨èªè¡ç¼åä»£ç æ¥ç®¡çäºå¡ï¼"
+"èä¸ä½¿ç¨ JTAï¼å»ºè®®ä½ ä½¿ç¨ Hibernate <literal>Transaction</literal> API æ¥æåº"
+"å±äºå¡å®ç°ä»ä½ ç代ç ä¸éèæãå¦æä½ ä½¿ç¨ JTAï¼è¯·ä½¿ç¨ JTA æ¥å£æ¥å¯¹äºå¡éçãå¦"
+"æä½ 卿¯æ CMT ç EJB 容å¨ä¸æ§è¡ä»£ç ï¼äºå¡è¾¹çæ¯å£°æå¼å®ä¹çï¼ä½ ä¸éè¦å¨ä»£ç "
+"ä¸è¿è¡ä»»ä½äºå¡æä¼è¯ç®¡çæä½ã请åé
<xref linkend=\"transactions\"/> ä¸èæ¥"
+"é
读æ´å¤çå
容å示ä¾ä»£ç ã"
#. Tag: para
-#: architecture.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class</literal> configuration "
"parameter defines which <literal>org.hibernate.context."
@@ -602,10 +554,10 @@
"however, there are three corresponding short names: \"jta\", \"thread\", and "
"\"managed\"."
msgstr ""
-"<literal>hibernate.current_session_context_class</literal>é
ç½®åæ°å®ä¹äºåºè¯¥"
-"éç¨åªä¸ª<literal>org.hibernate.context.CurrentSessionContext</literal>å®ç°ã"
-"注æï¼ä¸ºäºåä¸å
¼å®¹ï¼å¦ææªé
ç½®æ¤åæ°ï¼ä½æ¯åå¨<literal>org.hibernate."
-"transaction.TransactionManagerLookup</literal>çé
ç½®ï¼Hibernateä¼éç¨"
+"<literal>hibernate.current_session_context_class</literal> é
ç½®åæ°å®ä¹äºåºè¯¥"
+"éç¨åªä¸ª <literal>org.hibernate.context.CurrentSessionContext</literal> å®"
+"ç°ã注æï¼ä¸ºäºåä¸å
¼å®¹ï¼å¦ææªé
ç½®æ¤åæ°ï¼ä½æ¯åå¨ <literal>org.hibernate."
+"transaction.TransactionManagerLookup</literal> çé
ç½®ï¼Hibernate ä¼éç¨"
"<literal>org.hibernate.context.JTASessionContext</literal>ãä¸è¬èè¨ï¼æ¤åæ°"
-"ç弿æäºè¦ä½¿ç¨çå®ç°ç±»çå
¨åï¼ä½é£ä¸ç§å
ç½®çå®ç°å¯ä»¥ä½¿ç¨ç®åï¼å³\"jta\"ã"
-"\"thread\"å\"managed\"ã"
+"ç弿æäºè¦ä½¿ç¨çå®ç°ç±»çå
¨åï¼ä½é£ä¸ç§å
ç½®çå®ç°å¯ä»¥ä½¿ç¨ç®åï¼å³ \"jta\"ã"
+"\"thread\" å \"managed\"ã "
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/association_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/association_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/association_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,30 +1,32 @@
+# translation of association_mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: association_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-03 11:04+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: association_mapping.xml:30
#, no-c-format
msgid "Association Mappings"
msgstr "å
³èå
³ç³»æ å°"
#. Tag: title
-#: association_mapping.xml:33
#, no-c-format
msgid "Introduction"
msgstr "ä»ç»"
#. Tag: para
-#: association_mapping.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
@@ -33,94 +35,52 @@
"examples."
msgstr ""
"å
³èå
³ç³»æ å°é常æ
嵿¯æé¾é
ç½®æ£ç¡®çãå¨è¿ä¸ªé¨åä¸ï¼æä»¬ä»ååå
³ç³»æ å°å¼å§ï¼"
-"ç¶åèèååå
³ç³»æ å°ï¼ç±æµ
è³æ·±è®²è¿°ä¸éå
¸åçæ¡ä¾ã卿æçä¾åä¸ï¼æä»¬é½ä½¿ç¨ "
-"<literal>Person</literal>å<literal>Address</literal>ã"
+"ç¶åèèååå
³ç³»æ å°ï¼éæ¥è®²è§£å
¸åçæ¡ä¾ã卿æçä¾åä¸ï¼æä»¬é½ä½¿å°ç¨ "
+"<literal>Person</literal> å <literal>Address</literal>ã"
#. Tag: para
-#: association_mapping.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
-msgstr "æä»¬æ ¹æ®æ å°å
³ç³»æ¯å¦æ¶åè¿æ¥è¡¨ä»¥å夿 ·æ§æ¥ååå
³èç±»åã"
+msgstr ""
+"æä»¬æ ¹æ®æ å°å
³ç³»æ¯å¦æ¶åè¿æ¥è¡¨ä»¥å夿 ·æ§ï¼multiplicityï¼æ¥ååå
³èç±»åã "
#. Tag: para
-#: association_mapping.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
"not a requirement of Hibernate, and the mappings will work if you drop the "
"nullability constraints."
msgstr ""
-"å¨ä¼ ç»çæ°æ®å»ºæ¨¡ä¸ï¼å
许为Nullå¼çå¤é®è¢«è®¤ä¸ºæ¯ä¸ç§ä¸å¥½çå®è·µï¼å æ¤æä»¬ææç"
-"ä¾åä¸é½ä½¿ç¨ä¸å
许为Nullçå¤é®ãè¿å¹¶ä¸æ¯Hibernateçè¦æ±ï¼å³ä½¿ä½ å 餿ä¸å
许为"
-"Nullç约æï¼Hibernateæ å°ä¸æ ·å¯ä»¥å·¥ä½çå¾å¥½ã"
+"å¨ä¼ ç»çæ°æ®å»ºæ¨¡ä¸ï¼å
许为 Null å¼çå¤é®è¢«è®¤ä¸ºæ¯ä¸ç§ä¸å¥½çå®è·µï¼å æ¤æä»¬ææ"
+"çä¾åä¸é½ä½¿ç¨ä¸å
许为 Null çå¤é®ãè¿å¹¶ä¸æ¯ Hibernateç è¦æ±ï¼å³ä½¿ä½ å 餿ä¸"
+"å
许为 Null ç约æï¼Hibernate æ å°ä¸æ ·å¯ä»¥å·¥ä½çå¾å¥½ã "
#. Tag: title
-#: association_mapping.xml:58
#, no-c-format
msgid "Unidirectional associations"
msgstr "ååå
³èï¼Unidirectional associationsï¼"
#. Tag: title
-#: association_mapping.xml:61 association_mapping.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"å¤å¯¹ä¸(many to one)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"å¤å¯¹ä¸ï¼many to oneï¼"
+msgstr "å¤å¯¹ä¸ï¼many-to-oneï¼ "
#. Tag: para
-#: association_mapping.xml:63
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association</emphasis> is the most "
"common kind of unidirectional association."
-msgstr "<emphasis>ååmany-to-oneå
³è</emphasis>æ¯æå¸¸è§çååå
³èå
³ç³»ã"
+msgstr "<emphasis>åå many-to-one å
³è</emphasis>æ¯æå¸¸è§çååå
³èå
³ç³»ã"
-#. Tag: programlisting
-#: association_mapping.xml:68
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:69 association_mapping.xml:185
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:74 association_mapping.xml:145
-#: association_mapping.xml:210
-#, fuzzy, no-c-format
msgid "One-to-one"
-msgstr "ä¸å¯¹ä¸ï¼one to oneï¼"
+msgstr "ä¸å¯¹ä¸ï¼One-to-oneï¼"
#. Tag: para
-#: association_mapping.xml:76
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key</"
@@ -131,147 +91,42 @@
"emphasis>å 乿¯ä¸æ ·çãå¯ä¸çä¸åå°±æ¯ååä¸å¯¹ä¸å
³èä¸çå¤é®å段å
·æå¯ä¸æ§çº¦"
"æã"
-#. Tag: programlisting
-#: association_mapping.xml:81
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:82 association_mapping.xml:218
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key, addressId bigint "
-"not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:84
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key</"
"emphasis> usually uses a special id generator In this example, however, we "
"have reversed the direction of the association:"
msgstr ""
-"<emphasis>åºäºä¸»é®å
³èçååä¸å¯¹ä¸å
³è</emphasis>é常使ç¨ä¸ä¸ªç¹å®çidçæå¨ã"
-"ï¼è¯·æ³¨æï¼å¨è¿ä¸ªä¾åä¸æä»¬ææ¢äºå
³èçæ¹åãï¼"
+"<emphasis>åºäºä¸»é®å
³èçååä¸å¯¹ä¸å
³è</emphasis>é常使ç¨ä¸ä¸ªç¹å®ç id çæ"
+"å¨ï¼ç¶èå¨è¿ä¸ªä¾åä¸æä»¬ææ¢äºå
³èçæ¹åï¼"
-#. Tag: programlisting
-#: association_mapping.xml:90
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:91 association_mapping.xml:226
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( personId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:96 association_mapping.xml:118
-#, fuzzy, no-c-format
msgid "One-to-many"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä¸å¯¹å¤ï¼one to manyï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä¸å¯¹å¤(one to many)"
+msgstr "ä¸å¯¹å¤ï¼one-to-manyï¼ "
#. Tag: para
-#: association_mapping.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key</"
"emphasis> is an unusual case, and is not recommended."
msgstr ""
-"<emphasis>åºäºå¤é®å
³èçååä¸å¯¹å¤å
³è</emphasis>æ¯ä¸ç§å¾å°è§çæ
åµï¼å¹¶ä¸æ¨è"
-"使ç¨ã"
+"<emphasis>åºäºå¤é®å
³èçååä¸å¯¹å¤å
³è</emphasis>æ¯ä¸ç§å¾å°è§çæ
åµï¼æä»¬ä¸æ¨"
+"è使ç¨å®ã"
-#. Tag: programlisting
-#: association_mapping.xml:103
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\">\n"
-" <key column=\"personId\" \n"
-" not-null=\"true\"/>\n"
-" <one-to-many class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:104
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table Address ( addressId bigint not null primary key, personId "
-"bigint not null )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:106
-#, fuzzy, no-c-format
msgid "You should instead use a join table for this kind of association."
-msgstr "æä»¬è®¤ä¸ºå¯¹äºè¿ç§å
³èå
³ç³»æå¥½ä½¿ç¨è¿æ¥è¡¨ã"
+msgstr "æä»¬è®¤ä¸ºå¯¹äºè¿ç§å
³èå
³ç³»æå¥½ä½¿ç¨è¿æ¥è¡¨ã "
#. Tag: title
-#: association_mapping.xml:115
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "使ç¨è¿æ¥è¡¨çååå
³èï¼Unidirectional associations with join tablesï¼"
#. Tag: para
-#: association_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join table</"
"emphasis> is the preferred option. Specifying <literal>unique=\"true\"</"
@@ -281,237 +136,58 @@
"æå®<literal>unique=\"true\"</literal>ï¼æä»¬å¯ä»¥æå¤æ ·æ§ä»å¤å¯¹å¤æ¹å为ä¸å¯¹"
"å¤ã"
-#. Tag: programlisting
-#: association_mapping.xml:126
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:127
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId not null, addressId bigint not null "
-"primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:134
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional many-to-one association on a join table</"
"emphasis> is common when the association is optional. For example:"
msgstr ""
"<emphasis>åºäºè¿æ¥è¡¨çååå¤å¯¹ä¸å
³è</emphasis>å¨å
³èå
³ç³»å¯éçæ
åµä¸åºç¨ä¹å¾"
-"æ®éã"
+"æ®éãä¾å¦ï¼"
-#. Tag: programlisting
-#: association_mapping.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:140
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:147
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>unidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹ä¸å
³è</emphasis>é常å°è§ï¼ä½ä¹æ¯å¯è¡çã"
+"<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹ä¸å
³è</emphasis>乿¯å¯è¡çï¼ä½é常å°è§ã"
-#. Tag: programlisting
-#: association_mapping.xml:152
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:153 association_mapping.xml:258
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null primary key, addressId "
-"bigint not null unique )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
-#. Tag: title
-#: association_mapping.xml:158 association_mapping.xml:263
-#, fuzzy, no-c-format
msgid "Many-to-many"
-msgstr "å¤å¯¹å¤ï¼many to manyï¼"
+msgstr "å¤å¯¹å¤ï¼many-to-manyï¼ "
#. Tag: para
-#: association_mapping.xml:160
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
-msgstr "æåï¼è¿æ <emphasis>ååå¤å¯¹å¤å
³è</emphasis>."
+msgstr "æåï¼è¿éæ¯ä¸ä¸ª<emphasis>ååå¤å¯¹å¤å
³è</emphasis>çä¾åã"
-#. Tag: programlisting
-#: association_mapping.xml:164
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:165 association_mapping.xml:271
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null, primary key (personId, addressId) )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:172
#, no-c-format
msgid "Bidirectional associations"
msgstr "ååå
³èï¼Bidirectional associationsï¼"
#. Tag: title
-#: association_mapping.xml:175 association_mapping.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many / many-to-one"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä¸å¯¹å¤ï¼one to many) / å¤å¯¹ä¸ï¼many to oneï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä¸å¯¹å¤ï¼one to manyï¼ /å¤å¯¹ä¸ï¼ many to oneï¼"
+msgstr "ä¸å¯¹å¤ï¼one to many)/å¤å¯¹ä¸ï¼many to oneï¼ "
#. Tag: para
-#: association_mapping.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association</emphasis> is the most "
"common kind of association. The following example illustrates the standard "
"parent/child relationship."
msgstr ""
-"<emphasis>ååå¤å¯¹ä¸å
³è</emphasis> æ¯æå¸¸è§çå
³èå
³ç³»ãï¼è¿ä¹æ¯æ åçç¶/åå
³"
-"èå
³ç³»ãï¼"
+"<emphasis>ååå¤å¯¹ä¸å
³è</emphasis> æ¯æå¸¸è§çå
³èå
³ç³»ãä¸é¢çä¾åè§£éäºè¿ç§"
+"æ åçç¶/åå
³èå
³ç³»ã"
-#. Tag: programlisting
-#: association_mapping.xml:183
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:187
-#, fuzzy, no-c-format
-msgid ""
"If you use a <literal>List</literal>, or other indexed collection, set the "
"<literal>key</literal> column of the foreign key to <literal>not null</"
"literal>. Hibernate will manage the association from the collections side to "
@@ -519,40 +195,14 @@
"by setting <literal>update=\"false\"</literal> and <literal>insert=\"false"
"\"</literal>:"
msgstr ""
-"å¦æä½ ä½¿ç¨<literal>List</literal>(æè
å
¶ä»æåºéåç±»)ï¼ä½ éè¦è®¾ç½®å¤é®å¯¹åºç"
-"<literal>key</literal>å为 <literal>not null</literal>,让Hibernateæ¥ä»éå端"
-"管çå
³èï¼ç»´æ¤æ¯ä¸ªå
ç´ çç´¢å¼ï¼éè¿è®¾ç½®<literal>update=\"false\"</literal> "
-"and <literal>insert=\"false\"</literal>æ¥å¯¹å¦ä¸ç«¯ååæä½ï¼ã"
+"å¦æä½ ä½¿ç¨ <literal>List</literal>ï¼æè
å
¶ä»æåºéåç±»ï¼ï¼ä½ éè¦è®¾ç½®å¤é®å¯¹åº"
+"ç <literal>key</literal> å为 <literal>not null</literal>ãHibernate å°ä»é"
+"å端管çå
³èï¼ç»´æ¤æ¯ä¸ªå
ç´ çç´¢å¼ï¼å¹¶éè¿è®¾ç½® <literal>update=\"false\"</"
+"literal> å <literal>insert=\"false\"</literal> æ¥å¯¹å¦ä¸ç«¯ååæä½ã"
-#. Tag: programlisting
-#: association_mapping.xml:195
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\"\n"
-" not-null=\"true\"\n"
-" insert=\"false\"\n"
-" update=\"false\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\"/>\n"
-" ...\n"
-" <list name=\"people\">\n"
-" <key column=\"addressId\" not-null=\"true\"/>\n"
-" <list-index column=\"peopleIdx\"/>\n"
-" <one-to-many class=\"Person\"/>\n"
-" </list>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:197
-#, fuzzy, no-c-format
-msgid ""
"If the underlying foreign key column is <literal>NOT NULL</literal>, it is "
"important that you define <literal>not-null=\"true\"</literal> on the "
"<literal><key></literal> element of the collection mapping. Do not "
@@ -560,230 +210,71 @@
"<literal><column></literal> element, but on the <literal><key></"
"literal> element."
msgstr ""
-"åè¥éåæ å°ç<literal><key></literal>å
ç´ å¯¹åºçåºå±å¤é®å段æ¯"
-"<literal>NOT NULL</literal>çï¼é£ä¹ä¸ºè¿ä¸keyå
ç´ å®ä¹<literal>not-null=\"true"
-"\"</literal>æ¯å¾éè¦çãä¸è¦ä»
ä»
为å¯è½çåµå¥<literal><column></literal>"
-"å
ç´ å®ä¹<literal>not-null=\"true\"</literal>ï¼<literal><key></literal>"
-"å
ç´ ä¹æ¯éè¦çã"
+"åè¥éåæ å°ç <literal><key></literal> å
ç´ å¯¹åºçåºå±å¤é®åæ®µæ¯ "
+"<literal>NOT NULL</literal> çï¼é£ä¹ä¸ºè¿ä¸ key å
ç´ å®ä¹ <literal>not-null="
+"\"true\"</literal> æ¯å¾éè¦çãä¸è¦ä»
ä»
为å¯è½çåµå¥ <literal><column></"
+"literal>å
ç´ å®ä¹ <literal>not-null=\"true\"</literal>ï¼<literal><key></"
+"literal> å
ç´ ä¹æ¯éè¦çã "
#. Tag: para
-#: association_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> "
"is common:"
-msgstr "<emphasis>åºäºå¤é®å
³èçååä¸å¯¹ä¸å
³è</emphasis>ä¹å¾å¸¸è§ã"
+msgstr "<emphasis>åºäºå¤é®å
³èçååä¸å¯¹ä¸å
³è</emphasis>ä¹å¾å¸¸è§ã "
-#. Tag: programlisting
-#: association_mapping.xml:217
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <many-to-one name=\"address\" \n"
-" column=\"addressId\" \n"
-" unique=\"true\"\n"
-" not-null=\"true\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" property-ref=\"address\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:220
-#, fuzzy, no-c-format
-msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key</emphasis> "
"uses the special id generator:"
-msgstr "<emphasis>åºäºä¸»é®å
³èçä¸å¯¹ä¸å
³è</emphasis>éè¦ä½¿ç¨ç¹å®çidçæå¨ã"
-
-#. Tag: programlisting
-#: association_mapping.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <one-to-one name=\"address\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">person</param>\n"
-" </generator>\n"
-" </id>\n"
-" <one-to-one name=\"person\" \n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
msgstr ""
+"<emphasis>åºäºä¸»é®å
³èçä¸å¯¹ä¸å
³è</emphasis>éè¦ä½¿ç¨ç¹å®ç id çæå¨ï¼"
#. Tag: title
-#: association_mapping.xml:233
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr "使ç¨è¿æ¥è¡¨çååå
³èï¼Bidirectional associations with join tablesï¼"
#. Tag: para
-#: association_mapping.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The <literal>inverse=\"true\"</"
"literal> can go on either end of the association, on the collection, or on "
"the join."
msgstr ""
-"<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹å¤å
³è</emphasis>ãæ³¨æ<literal>inverse=\"true"
-"\"</literal>å¯ä»¥åºç°å¨å
³èçä»»æä¸ç«¯ï¼å³collection端æè
join端ã"
+"ä¸é¢æ¯ä¸ä¸ª<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹å¤å
³è</emphasis>çä¾åãæ³¨æ "
+"<literal>inverse=\"true\"</literal> å¯ä»¥åºç°å¨å
³èçä»»æä¸ç«¯ï¼å³ collection "
+"端æè
join 端ã"
-#. Tag: programlisting
-#: association_mapping.xml:244
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" \n"
-" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" unique=\"true\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" inverse=\"true\" \n"
-" optional=\"true\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\"\n"
-" not-null=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: association_mapping.xml:245
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"create table Person ( personId bigint not null primary key )\n"
-"create table PersonAddress ( personId bigint not null, addressId bigint not "
-"null primary key )\n"
-"create table Address ( addressId bigint not null primary key )\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:250
#, no-c-format
msgid "one to one"
msgstr "ä¸å¯¹ä¸ï¼one to oneï¼"
#. Tag: para
-#: association_mapping.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table</emphasis> "
"is possible, but extremely unusual."
msgstr ""
-"<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹ä¸å
³è</emphasis>æä¸ºç½è§ï¼ä½ä¹æ¯å¯è¡çã"
+"<emphasis>åºäºè¿æ¥è¡¨çååä¸å¯¹ä¸å
³è</emphasis>乿¯å¯è¡çï¼ä½æä¸ºç½è§ã"
-#. Tag: programlisting
-#: association_mapping.xml:257
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\">\n"
-" <key column=\"personId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"address\"\n"
-" column=\"addressId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <join table=\"PersonAddress\" \n"
-" optional=\"true\"\n"
-" inverse=\"true\">\n"
-" <key column=\"addressId\" \n"
-" unique=\"true\"/>\n"
-" <many-to-one name=\"person\"\n"
-" column=\"personId\" \n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-" </join>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:265
-#, fuzzy, no-c-format
-msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association</"
"emphasis>."
-msgstr "æåï¼è¿æ <emphasis>ååå¤å¯¹å¤å
³è</emphasis>."
+msgstr "ä¸é¢æ¯ä¸ä¸ª<emphasis>ååå¤å¯¹å¤å
³è</emphasis>çä¾åã"
-#. Tag: programlisting
-#: association_mapping.xml:269
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\" column=\"personId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"addresses\" table=\"PersonAddress\">\n"
-" <key column=\"personId\"/>\n"
-" <many-to-many column=\"addressId\"\n"
-" class=\"Address\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-" <id name=\"id\" column=\"addressId\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
-" <key column=\"addressId\"/>\n"
-" <many-to-many column=\"personId\"\n"
-" class=\"Person\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: association_mapping.xml:278
#, no-c-format
msgid "More complex association mappings"
msgstr "æ´å¤æçå
³èæ å°"
#. Tag: para
-#: association_mapping.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely</emphasis> rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
@@ -792,52 +283,23 @@
"<literal>effectiveEndDate</literal> and <literal>effectiveStartDate</"
"literal>columns, it would be mapped as follows:"
msgstr ""
-"æ´å¤æçå
³èè¿æ¥<emphasis>æä¸º</emphasis>ç½è§ã éè¿å¨æ å°ææ¡£ä¸åµå
¥SQLçæï¼"
-"Hibernateä¹å¯ä»¥å¤çæ´ä¸ºå¤æçæ
åµãæ¯å¦ï¼åè¥å
å«åå²å¸æ·æ°æ®ç表å®ä¹äº"
-"<literal>accountNumber</literal>, <literal>effectiveEndDate</literal> å"
-"<literal>effectiveStartDate</literal>åæ®µï¼æç
§ä¸é¢æ å°ï¼"
+"æ´å¤æçå
³èè¿æ¥<emphasis>æä¸º</emphasis>ç½è§ãéè¿å¨æ å°ææ¡£ä¸åµå
¥ SQL ç"
+"æï¼Hibernate ä¹å¯ä»¥å¤çæ´ä¸ºå¤æçæ
åµãæ¯å¦ï¼åè¥å
å«åå²å¸æ·æ°æ®ç表å®ä¹äº "
+"<literal>accountNumber</literal>ã<literal>effectiveEndDate</literal> å "
+"<literal>effectiveStartDate</literal> åæ®µï¼æç
§ä¸é¢æ å°ï¼"
-#. Tag: programlisting
-#: association_mapping.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties name=\"currentAccountKey\">\n"
-" <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
-" <property name=\"currentAccount\" type=\"boolean\">\n"
-" <formula>case when effectiveEndDate is null then 1 else 0 end</"
-"formula>\n"
-" </property>\n"
-"</properties>\n"
-"<property name=\"effectiveEndDate\" type=\"date\"/>\n"
-"<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:291
-#, fuzzy, no-c-format
-msgid ""
"You can then map an association to the <emphasis>current</emphasis> "
"instance, the one with null <literal>effectiveEndDate</literal>, by using:"
msgstr ""
-"é£ä¹æä»¬å¯ä»¥å¯¹<emphasis>ç®å(current)</emphasis>å®ä¾(å
¶"
-"<literal>effectiveEndDate</literal>为null)使ç¨è¿æ ·çå
³èæ å°:"
+"é£ä¹æä»¬å¯ä»¥å¯¹<emphasis>ç®åï¼currentï¼</emphasis>å®ä¾ï¼å
¶ "
+"<literal>effectiveEndDate</literal> 为 nullï¼ä½¿ç¨è¿æ ·çå
³èæ å°ï¼ "
-#. Tag: programlisting
-#: association_mapping.xml:296
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
-" property-ref=\"currentAccountKey\"\n"
-" class=\"AccountInfo\">\n"
-" <column name=\"accountNumber\"/>\n"
-" <formula>'1'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:298
-#, fuzzy, no-c-format
-msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee</literal> and <literal>Organization</literal> is "
"maintained in an <literal>Employment</literal> table full of historical "
@@ -845,34 +307,804 @@
"emphasis> employer, the one with the most recent <literal>startDate</"
"literal>, could be mapped in the following way:"
msgstr ""
-"æ´å¤æçä¾å,åæ³<literal>Employee</literal>å<literal>Organization</literal>"
-"ä¹é´çå
³èæ¯éè¿ä¸ä¸ª<literal>Employment</literal>ä¸é´è¡¨ç»´æ¤ç,èä¸é´è¡¨ä¸å¡«å
"
-"äºå¾å¤åå²éåæ°æ®ãé£âéåç<emphasis>ææ°</emphasis>é主âè¿ä¸ªå
³èï¼ææ°é主"
-"å°±æ¯<literal>startDate</literal>æåçé£ä¸ªï¼å¯ä»¥è¿æ ·æ å°ï¼"
+"卿´å¤æçä¾åä¸ï¼åæ³ <literal>Employee</literal> å <literal>Organization</"
+"literal> ä¹é´çå
³èæ¯éè¿ä¸ä¸ª <literal>Employment</literal> ä¸é´è¡¨ç»´æ¤çï¼è"
+"ä¸é´è¡¨ä¸å¡«å
äºå¾å¤åå²éåæ°æ®ãé£âéåç<emphasis>ææ°</emphasis>é主âè¿ä¸ªå
³"
+"èï¼ææ°é主就æ¯å
·æææ°ç <literal>startDate</literal> çé£ä¸ªï¼å¯ä»¥è¿æ ·æ "
+"å°ï¼"
-#. Tag: programlisting
-#: association_mapping.xml:306
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<join>\n"
-" <key column=\"employeeId\"/>\n"
-" <subselect>\n"
-" select employeeId, orgId \n"
-" from Employments \n"
-" group by orgId \n"
-" having startDate = max(startDate)\n"
-" </subselect>\n"
-" <many-to-one name=\"mostRecentEmployer\" \n"
-" class=\"Organization\" \n"
-" column=\"orgId\"/>\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: association_mapping.xml:308
-#, fuzzy, no-c-format
-msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
-"使ç¨è¿ä¸åè½æ¶å¯ä»¥å
满åæï¼ä½é常æ´å å®ç¨çæ¯ç¨HQLææ¡ä»¶æ¥è¯¢æ¥å¤çè¿äºæ
å½¢ã"
+"使ç¨è¿ä¸åè½æ¶å¯ä»¥å
满åæåçµæ´»æ§ï¼ä½é常æ´å å®ç¨çæ¯ç¨ HQL ææ¡ä»¶æ¥è¯¢æ¥å¤ç"
+"è¿äºæ
åµã"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key, addressId "
+#~ "bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( personId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key, personId "
+#~ "bigint not null )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId not null, addressId bigint not null "
+#~ "primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null primary key, "
+#~ "addressId bigint not null unique )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null, primary key (personId, addressId) )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\"\n"
+#~ " not-null=\"true\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\"/>\n"
+#~ " ...\n"
+#~ " <list name=\"people\">\n"
+#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
+#~ " <list-index column=\"peopleIdx\"/>\n"
+#~ " <one-to-many class=\"Person\"/>\n"
+#~ " </list>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <many-to-one name=\"address\" \n"
+#~ " column=\"addressId\" \n"
+#~ " unique=\"true\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " property-ref=\"address\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"address\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">person</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " <one-to-one name=\"person\" \n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" \n"
+#~ " table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " unique=\"true\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " inverse=\"true\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "create table Person ( personId bigint not null primary key )\n"
+#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
+#~ "not null primary key )\n"
+#~ "create table Address ( addressId bigint not null primary key )\n"
+#~ " ]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\">\n"
+#~ " <key column=\"personId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"address\"\n"
+#~ " column=\"addressId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <join table=\"PersonAddress\" \n"
+#~ " optional=\"true\"\n"
+#~ " inverse=\"true\">\n"
+#~ " <key column=\"addressId\" \n"
+#~ " unique=\"true\"/>\n"
+#~ " <many-to-one name=\"person\"\n"
+#~ " column=\"personId\" \n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ " </join>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\" column=\"personId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <many-to-many column=\"addressId\"\n"
+#~ " class=\"Address\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ " <id name=\"id\" column=\"addressId\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
+#~ " <key column=\"addressId\"/>\n"
+#~ " <many-to-many column=\"personId\"\n"
+#~ " class=\"Person\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<properties name=\"currentAccountKey\">\n"
+#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/>\n"
+#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
+#~ " <formula>case when effectiveEndDate is null then 1 else 0 end</"
+#~ "formula>\n"
+#~ " </property>\n"
+#~ "</properties>\n"
+#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
+#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"currentAccountInfo\" \n"
+#~ " property-ref=\"currentAccountKey\"\n"
+#~ " class=\"AccountInfo\">\n"
+#~ " <column name=\"accountNumber\"/>\n"
+#~ " <formula>'1'</formula>\n"
+#~ "</many-to-one>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<join>\n"
+#~ " <key column=\"employeeId\"/>\n"
+#~ " <subselect>\n"
+#~ " select employeeId, orgId \n"
+#~ " from Employments \n"
+#~ " group by orgId \n"
+#~ " having startDate = max(startDate)\n"
+#~ " </subselect>\n"
+#~ " <many-to-one name=\"mostRecentEmployer\" \n"
+#~ " class=\"Organization\" \n"
+#~ " column=\"orgId\"/>\n"
+#~ "</join>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/basic_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/basic_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/basic_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,150 +1,77 @@
+# translation of basic_mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: basic_mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:32+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: basic_mapping.xml:29
#, no-c-format
msgid "Basic O/R Mapping"
-msgstr "对象/å
³ç³»æ°æ®åºæ å°åºç¡(Basic O/R Mapping)"
+msgstr "对象/å
³ç³»æ°æ®åºæ å°åºç¡ï¼Basic O/R Mappingï¼"
#. Tag: title
-#: basic_mapping.xml:32
#, no-c-format
msgid "Mapping declaration"
msgstr "æ å°å®ä¹ï¼Mapping declarationï¼"
#. Tag: para
-#: basic_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Object/relational mappings are usually defined in an XML document. The "
"mapping document is designed to be readable and hand-editable. The mapping "
"language is Java-centric, meaning that mappings are constructed around "
"persistent class declarations and not table declarations."
msgstr ""
-"对象åå
³ç³»æ°æ®åºä¹é´çæ å°é常æ¯ç¨ä¸ä¸ªXMLææ¡£(XML document)æ¥å®ä¹çãè¿ä¸ªæ å°"
-"ææ¡£è¢«è®¾è®¡ä¸ºæè¯»çï¼ å¹¶ä¸å¯ä»¥æå·¥ä¿®æ¹ãæ å°è¯è¨æ¯ä»¥Java为ä¸å¿ï¼è¿æå³çæ å°æ"
-"æ¡£æ¯æç
§æä¹
åç±»çå®ä¹æ¥å建çï¼ èé表çå®ä¹ã"
+"对象åå
³ç³»æ°æ®åºä¹é´çæ å°é常æ¯ç¨ä¸ä¸ª XML ææ¡£æ¥å®ä¹çãè¿ä¸ªæ å°ææ¡£è¢«è®¾è®¡ä¸º"
+"æè¯»çï¼å¹¶ä¸å¯ä»¥æå·¥ä¿®æ¹ãæ å°è¯è¨æ¯ä»¥ Java 为ä¸å¿ï¼è¿æå³çæ å°ææ¡£æ¯æç
§æ"
+"ä¹
åç±»çå®ä¹æ¥å建çï¼èé表çå®ä¹ã "
#. Tag: para
-#: basic_mapping.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that even though many Hibernate users choose to write the XML by "
"hand, a number of tools exist to generate the mapping document. These "
"include XDoclet, Middlegen and AndroMDA."
msgstr ""
-"请注æï¼è½ç¶å¾å¤Hibernateç¨æ·éæ©æåXMLæ å°ææ¡£ï¼ä½ä¹æä¸äºå·¥å
·å¯ä»¥ç¨æ¥çæ"
-"æ å°ææ¡£ï¼ å
æ¬XDoclet,MiddlegenåAndroMDAã"
+"请注æï¼è½ç¶å¾å¤ Hibernate ç¨æ·éæ©æå XML æ å°ææ¡£ï¼ä½ä¹æä¸äºå·¥å
·å¯ä»¥ç¨æ¥"
+"çææ å°ææ¡£ï¼å
æ¬ XDocletãMiddlegen å AndroMDAã"
#. Tag: para
-#: basic_mapping.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is an example mapping:"
-msgstr "让æä»¬ä»ä¸ä¸ªæ å°çä¾åå¼å§ï¼"
+msgstr "ä¸é¢æ¯ä¸ä¸ªæ å°çä¾åï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:51
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\"\n"
-" table=\"cats\"\n"
-" discriminator-value=\"C\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-"\n"
-" <discriminator column=\"subclass\"\n"
-" type=\"character\"/>\n"
-"\n"
-" <property name=\"weight\"/>\n"
-"\n"
-" <property name=\"birthdate\"\n"
-" type=\"date\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"color\"\n"
-" type=\"eg.types.ColorUserType\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"sex\"\n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <property name=\"litterId\"\n"
-" column=\"litterId\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <many-to-one name=\"mother\"\n"
-" column=\"mother_id\"\n"
-" update=\"false\"/>\n"
-"\n"
-" <set name=\"kittens\"\n"
-" inverse=\"true\"\n"
-" order-by=\"litter_id\">\n"
-" <key column=\"mother_id\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-"\n"
-" <subclass name=\"DomesticCat\"\n"
-" discriminator-value=\"D\">\n"
-"\n"
-" <property name=\"name\"\n"
-" type=\"string\"/>\n"
-"\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:53
-#, fuzzy, no-c-format
-msgid ""
"We will now discuss the content of the mapping document. We will only "
"describe, however, the document elements and attributes that are used by "
"Hibernate at runtime. The mapping document also contains some extra optional "
"attributes and elements that affect the database schemas exported by the "
"schema export tool (for example, the <literal> not-null</literal> attribute)."
msgstr ""
-"æä»¬ç°å¨å¼å§è®¨è®ºæ å°ææ¡£çå
容ãæä»¬åªæè¿°Hibernateå¨è¿è¡æ¶ç¨å°çææ¡£å
ç´ åå±"
-"æ§ã æ å°ææ¡£è¿å
æ¬ä¸äºé¢å¤çå¯é屿§åå
ç´ ï¼å®ä»¬å¨ä½¿ç¨schema导åºå·¥å
·çæ¶åä¼"
-"å½±å导åºçæ°æ®åºschemaç»æã ï¼æ¯å¦ï¼<literal> not-null</literal> 屿§ãï¼"
+"æä»¬ç°å¨å¼å§è®¨è®ºæ å°ææ¡£çå
容ãæä»¬åªæè¿° Hibernate å¨è¿è¡æ¶ç¨å°çææ¡£å
ç´ å"
+"屿§ãæ å°ææ¡£è¿å
æ¬ä¸äºé¢å¤çå¯é屿§åå
ç´ ï¼å®ä»¬å¨ä½¿ç¨ schema 导åºå·¥å
·çæ¶"
+"åä¼å½±å导åºçæ°æ®åº schema ç»æï¼æ¯å¦ï¼<literal>not-null</literal> 屿§ï¼ã"
#. Tag: title
-#: basic_mapping.xml:64
#, no-c-format
msgid "Doctype"
msgstr "Doctype"
#. Tag: para
-#: basic_mapping.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All XML mappings should declare the doctype shown. The actual DTD can be "
"found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/"
@@ -153,21 +80,19 @@
"lookups of the DTD using an Internet connection, check the DTD declaration "
"against the contents of your classpath."
msgstr ""
-"ææçXMLæ å°é½éè¦å®ä¹å¦ä¸æç¤ºçdoctypeãDTDå¯ä»¥ä»ä¸è¿°URLä¸è·åï¼ ä¹å¯ä»¥ä»"
-"<literal>hibernate-x.x.x/src/net/sf/hibernate</literal>ç®å½ä¸ã æ"
-"<literal>hibernate.jar</literal>æä»¶ä¸æ¾å°ãHibernateæ»æ¯ä¼é¦å
å¨å®ç"
-"classptahä¸æç´¢DTDæä»¶ã å¦æä½ åç°å®æ¯éè¿è¿æ¥Internetæ¥æ¾DTDæä»¶ï¼å°±å¯¹ç
§ä½ "
-"çclasspathç®å½æ£æ¥XMLæä»¶éçDTD声æã"
+"ææç XML æ å°é½éè¦å®ä¹å¦ä¸æç¤ºç doctypeãDTD å¯ä»¥ä»ä¸è¿° URL ä¸è·åï¼ä¹å¯"
+"ä»¥ä» <literal>hibernate-x.x.x/src/org/hibernate </literal> ç®å½ä¸ãæ "
+"<literal>hibernate.jar</literal> æä»¶ä¸æ¾å°ãHibernate æ»æ¯ä¼é¦å
å¨å®ç "
+"classptah ä¸æç´¢ DTD æä»¶ãå¦æä½ åç°å®æ¯éè¿è¿æ¥ Internet æ¥æ¾ DTD æä»¶ï¼å°±"
+"对ç
§ä½ ç classpath ç®å½æ£æ¥ XML æä»¶éç DTD 声æã"
#. Tag: title
-#: basic_mapping.xml:76
#, no-c-format
msgid "EntityResolver"
msgstr "EntityResolver"
#. Tag: para
-#: basic_mapping.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will first attempt to resolve DTDs in its classpath. It does this "
"is by registering a custom <literal>org.xml.sax.EntityResolver</literal> "
@@ -175,32 +100,26 @@
"custom <literal>EntityResolver</literal> recognizes two different systemId "
"namespaces:"
msgstr ""
-"As mentioned previously, Hibernate will first attempt to resolve DTDs in its "
-"classpath. The manner in which it does this is by registering a custom "
-"<literal>org.xml.sax.EntityResolver</literal> implementation with the "
-"SAXReader it uses to read in the xml files. This custom "
-"<literal>EntityResolver</literal> recognizes two different systemId "
-"namespaces. å¦åæè¿°,Hibernateé¦å
å¨å
¶classpath䏿¥æ¾DTDãå
¶è¡ä¸ºæ¯ä¾é å¨ç³»ç»"
-"䏿³¨åç<literal>org.xml.sax.EntityResolver</literal>çä¸ä¸ªå
·ä½å®ç°ï¼"
-"SAXReaderä¾é 宿¥è¯»åxmlæä»¶ãè¿ä¸ <literal>EntityResolver</literal> å®ç°è½è¾¨"
-"认两ç§ä¸åç systenIdå½å空é´ã"
+"Hibernate é¦å
è¯å¾å¨å
¶ classpath ä¸è§£æ DTDãè¿æ¯ä¾é å¨ç³»ç»ä¸æ³¨åç "
+"<literal>org.xml.sax.EntityResolver</literal> çä¸ä¸ªå
·ä½å®ç°ï¼SAXReader ä¾é "
+"宿¥è¯»å xml æä»¶ãè¿ä¸ªèªå®ä¹ç <literal>EntityResolver</literal> è½è¾¨è®¤ä¸¤ç§"
+"ä¸åç systenId å½å空é´ï¼"
#. Tag: para
-#: basic_mapping.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>hibernate namespace</literal> is recognized whenever the resolver "
"encounters a systemId starting with <literal>http://hibernate.sourceforge."
"net/</literal>. The resolver attempts to resolve these entities via the "
"classloader which loaded the Hibernate classes."
msgstr ""
-"è¥resolveréå°äºä¸ä¸ªä»¥<literal>http://hibernate.sourceforge.net/</literal>为"
-"å¼å¤´çsystemIdï¼å®ä¼è¾¨è®¤åºæ¯<literal>hibernate namespace</literal>ï¼resolver"
-"å°±è¯å¾éè¿å è½½Hibernateç±»çclassloaderæ¥æ¥æ¾è¿äºå®ä½ã"
+"è¥ resolver éå°äºä¸ä¸ªä»¥ <literal>http://hibernate.sourceforge.net/</"
+"literal> 为å¼å¤´ç systemIdï¼å®ä¼è¾¨è®¤åºæ¯ <literal>hibernate namespace</"
+"literal>ï¼resolver å°±è¯å¾éè¿å è½½ Hibernate ç±»ç classloader æ¥æ¥æ¾è¿äºå®"
+"ä½ã "
#. Tag: para
-#: basic_mapping.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a <literal>user namespace</literal> is recognized whenever the resolver "
"encounters a systemId using a <literal>classpath://</literal> URL protocol. "
@@ -208,57 +127,33 @@
"thread context classloader and (2) the classloader which loaded the "
"Hibernate classes."
msgstr ""
-"è¥resolveréå°äºä¸ä¸ªä½¿ç¨<literal>classpath://</literal>URLåè®®çsystemIdï¼å®"
-"ä¼è¾¨è®¤åºè¿æ¯<literal>user namespace</literal>,resolverè¯å¾éè¿(1)å½å线ç¨ä¸ä¸"
-"æçclassloaderå(2)å è½½Hibernate classçclassloaderæ¥æ¥æ¾è¿äºå®ä½ã"
+"è¥ resolver éå°äºä¸ä¸ªä½¿ç¨ <literal>classpath://</literal> URL åè®®ç "
+"systemIdï¼å®ä¼è¾¨è®¤åºè¿æ¯ <literal>user namespace</literal>ï¼resolver è¯å¾éè¿"
+"ï¼1) å½å线ç¨ä¸ä¸æç classloader åï¼2) å è½½ Hibernate class ç classloader "
+"æ¥æ¥æ¾è¿äºå®ä½ã"
#. Tag: para
-#: basic_mapping.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The following is an example of utilizing user namespacing:"
-msgstr "使ç¨user namespace(ç¨æ·å½å空é´)çä¾åï¼"
+msgstr "ä¸é¢æ¯ä¸ä¸ªä½¿ç¨ç¨æ·å½å空é´ï¼user namespaceï¼çä¾åï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:106
-#, no-c-format
-msgid ""
-"<![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\" [\n"
-" <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
-"]>\n"
-"\n"
-"<hibernate-mapping package=\"your.domain\">\n"
-" <class name=\"MyEntity\">\n"
-" <id name=\"id\" type=\"my-custom-id-type\">\n"
-" ...\n"
-" </id>\n"
-" <class>\n"
-" &types;\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:107
#, fuzzy, no-c-format
msgid ""
"Where <literal>types.xml</literal> is a resource in the <literal>your."
"domain</literal> package and contains a custom <link linkend=\"mapping-types-"
"custom\">typedef</link>."
msgstr ""
-"<literal>types.xml</literal>æ¯<literal>your.domain</literal>å
ä¸çä¸ä¸ªèµæºï¼"
-"å®å
å«äºä¸ä¸ªå®å¶ç<xref linkend=\"mapping-types-custom\">typedef</xref>ã"
+"è¿éç <literal>types.xml</literal> æ¯ <literal>your.domain</literal> å
ä¸ç"
+"ä¸ä¸ªèµæºï¼å®å
å«äºä¸ä¸ªèªå®ä¹ç <xref linkend=\"mapping-types-custom\"/>ã "
#. Tag: title
-#: basic_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate-mapping"
-msgstr "hibernate-mapping"
+msgstr "Hibernate-mapping"
#. Tag: para
-#: basic_mapping.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This element has several optional attributes. The <literal>schema</literal> "
"and <literal>catalog</literal> attributes specify that tables referred to in "
@@ -271,111 +166,87 @@
"literal> attribute allows you to use unqualified class names in the query "
"language."
msgstr ""
-"è¿ä¸ªå
ç´ å
æ¬ä¸äºå¯éç屿§ã<literal>schema</literal>å<literal>catalog</"
-"literal>屿§ï¼ ææäºè¿ä¸ªæ å°æè¿æ¥ï¼referï¼ç表æå¨çschemaå/æcatalogå"
-"ç§°ã åè¥æå®äºè¿ä¸ªå±æ§ï¼è¡¨åä¼å 䏿æå®çschemaåcatalogçååæ©å±ä¸ºå
¨éå®"
-"åãåè¥æ²¡ææå®ï¼è¡¨åå°±ä¸ä¼ä½¿ç¨å
¨éå®åã <literal>default-cascade</literal>"
-"æå®äºæªæç¡®æ³¨æ<literal>cascade</literal>屿§çJava屿§å éåç±»Hibernateä¼"
-"éåä»ä¹æ ·çé»è®¤çº§è飿 ¼ã<literal>auto-import</literal>屿§é»è®¤è®©æä»¬å¨æ¥è¯¢"
-"è¯è¨ä¸å¯ä»¥ä½¿ç¨ éå
¨éå®åçç±»åã"
+"è¿ä¸ªå
ç´ å
æ¬ä¸äºå¯éç屿§ã<literal>schema</literal> å <literal>catalog</"
+"literal> 屿§ï¼ ææäºè¿ä¸ªæ å°æè¿æ¥ï¼referï¼ç表æå¨ç schema å/æ catalog "
+"åç§°ãåè¥æå®äºè¿ä¸ªå±æ§ï¼è¡¨åä¼å 䏿æå®ç schema å catalog çååæ©å±ä¸ºå
¨"
+"éå®åãåè¥æ²¡ææå®ï¼è¡¨åå°±ä¸ä¼ä½¿ç¨å
¨éå®åã<literal>default-cascade</"
+"literal> æå®äºæªæç¡®æ³¨æ <literal>cascade</literal> 屿§ç Java 屿§å éå"
+"ç±» Hibernate ä¼éåä»ä¹æ ·çé»è®¤çº§è飿 ¼ã<literal>auto-import</literal> 屿§"
+"é»è®¤è®©æä»¬å¨æ¥è¯¢è¯è¨ä¸å¯ä»¥ä½¿ç¨éå
¨éå®åçç±»åã"
-#. Tag: programlisting
-#: basic_mapping.xml:138
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping\n"
-" schema=\"schemaName\"\n"
-" catalog=\"catalogName\"\n"
-" default-cascade=\"cascade_style\"\n"
-" default-access=\"field|property|ClassName\"\n"
-" default-lazy=\"true|false\"\n"
-" auto-import=\"true|false\"\n"
-" package=\"package.name\"\n"
-" />]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:141
-#, fuzzy, no-c-format
msgid "<literal>schema</literal> (optional): the name of a database schema."
-msgstr "<literal>schema</literal> (å¯é): æ°æ®åºschemaçåç§°ã"
+msgstr "<literal>schema</literal>ï¼å¯éï¼ï¼æ°æ®åº schema çåç§°ã"
#. Tag: para
-#: basic_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>catalog</literal> (optional): the name of a database catalog."
-msgstr "<literal>catalog</literal> (å¯é): æ°æ®åºcatalogçåç§°ã"
+msgstr "<literal>catalog</literal>ï¼å¯éï¼ï¼æ°æ®åº catalog çåç§°ã "
#. Tag: para
-#: basic_mapping.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-cascade</literal> (optional - defaults to <literal>none</"
"literal>): a default cascade style."
msgstr ""
-"<literal>default-cascade</literal> (å¯é - é»è®¤ä¸º <literal>none</literal>): "
-"é»è®¤ç级è飿 ¼ã"
+"<literal>default-cascade</literal>ï¼å¯é â é»è®¤ä¸º <literal>none</literal>ï¼ï¼"
+"é»è®¤ç级è飿 ¼ã "
#. Tag: para
-#: basic_mapping.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing all properties. "
"It can be a custom implementation of <literal>PropertyAccessor</literal>."
msgstr ""
-"<literal>default-access</literal> (å¯é - é»è®¤ä¸º <literal>property</"
-"literal>): Hibernateç¨æ¥è®¿é®ææå±æ§ççç¥ãå¯ä»¥éè¿å®ç°"
-"<literal>PropertyAccessor</literal>æ¥å£ èªå®ä¹ã"
+"<literal>default-access</literal>ï¼å¯é â é»è®¤ä¸º <literal>property</"
+"literal>ï¼ï¼Hibernate ç¨æ¥è®¿é®ææå±æ§ççç¥ãå¯ä»¥éè¿å®ç° "
+"<literal>PropertyAccessor</literal> æ¥å£èªå®ä¹ã "
#. Tag: para
-#: basic_mapping.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>default-lazy</literal> (optional - defaults to <literal>true</"
"literal>): the default value for unspecified <literal>lazy</literal> "
"attributes of class and collection mappings."
msgstr ""
-"<literal>default-lazy</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>): æå®"
-"äºæªæç¡®æ³¨æ<literal>lazy</literal>屿§çJava屿§åéåç±»ï¼ Hibernateä¼éåä»"
-"乿 ·çé»è®¤å è½½é£æ ¼ã"
+"<literal>default-lazy</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼ï¼æ"
+"å®äºæªæç¡®æ³¨æ <literal>lazy</literal> 屿§ç Java 屿§åéåç±»ï¼Hibernate ä¼"
+"éåä»ä¹æ ·çé»è®¤å è½½é£æ ¼ã "
#. Tag: para
-#: basic_mapping.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto-import</literal> (optional - defaults to <literal>true</"
"literal>): specifies whether we can use unqualified class names of classes "
"in this mapping in the query language."
msgstr ""
-"<literal>auto-import</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>): æå®"
-"æä»¬æ¯å¦å¯ä»¥å¨æ¥è¯¢è¯è¨ä¸ä½¿ç¨éå
¨éå®çç±»åï¼ä»
éäºæ¬æ å°æä»¶ä¸çç±»ï¼ã"
+"<literal>auto-import</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼ï¼æå®"
+"æä»¬æ¯å¦å¯ä»¥å¨æ¥è¯¢è¯è¨ä¸ä½¿ç¨éå
¨éå®çç±»åï¼ä»
éäºæ¬æ å°æä»¶ä¸çç±»ï¼ã "
#. Tag: para
-#: basic_mapping.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>package</literal> (optional): specifies a package prefix to use for "
"unqualified class names in the mapping document."
msgstr ""
-"<literal>package</literal> (å¯é): æå®ä¸ä¸ªå
åç¼ï¼å¦æå¨æ å°ææ¡£ä¸æ²¡ææå®å
¨"
-"éå®çç±»åï¼ å°±ä½¿ç¨è¿ä¸ªä½ä¸ºå
åã"
+"<literal>package</literal>ï¼å¯éï¼ï¼æå®ä¸ä¸ªå
åç¼ï¼å¦æå¨æ å°ææ¡£ä¸æ²¡ææå®"
+"å
¨éå®çç±»åï¼å°±ä½¿ç¨è¿ä¸ªä½ä¸ºå
åã "
#. Tag: para
-#: basic_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have two persistent classes with the same unqualified name, you "
"should set <literal>auto-import=\"false\"</literal>. An exception will "
"result if you attempt to assign two classes to the same \"imported\" name."
msgstr ""
"åè¥ä½ æä¸¤ä¸ªæä¹
åç±»ï¼å®ä»¬çéå
¨éå®åæ¯ä¸æ ·çï¼å°±æ¯ä¸¤ä¸ªç±»çåå䏿 ·ï¼æå¨ç"
-"å
ä¸ä¸æ ·--è¯è
注ï¼ï¼ ä½ åºè¯¥è®¾ç½®<literal>auto-import=\"false\"</literal>ã妿"
-"ä½ æä¸ä¸ªâimportè¿âçåå忶坹åºä¸¤ä¸ªç±»ï¼ Hibernate伿åºä¸ä¸ªå¼å¸¸ã"
+"å
ä¸ä¸æ · â è¯è
注ï¼ï¼ä½ åºè¯¥è®¾ç½® <literal>auto-import=\"false\"</literal>ãå¦"
+"æä½ æä¸ä¸ªâ导å
¥è¿âçåå忶坹åºä¸¤ä¸ªç±»ï¼Hibernate 伿åºä¸ä¸ªå¼å¸¸ã"
#. Tag: para
-#: basic_mapping.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hibernate-mapping</literal> element allows you to nest several "
"persistent <literal><class></literal> mappings, as shown above. It is, "
@@ -385,164 +256,114 @@
"literal>, <literal>Dog.hbm.xml</literal>, or if using inheritance, "
"<literal>Animal.hbm.xml</literal>."
msgstr ""
-"注æ<literal>hibernate-mapping</literal> å
ç´ å
è®¸ä½ åµå¥å¤ä¸ªå¦ä¸æç¤ºç "
-"<literal><class></literal>æ å°ã使¯æå¥½çåæ³ï¼ä¹è®¸ä¸äºå·¥å
·éè¦çï¼æ¯"
-"ä¸ä¸ª æä¹
åç±»ï¼æä¸ä¸ªç±»çç»§æ¿å±æ¬¡ï¼å¯¹åºä¸ä¸ªæ å°æä»¶ï¼å¹¶ä»¥æä¹
åçè¶
ç±»åç§°å½"
-"åï¼ä¾å¦ï¼ <literal>Cat.hbm.xml</literal>ï¼ <literal>Dog.hbm.xml</literal>ï¼"
-"æè
å¦æä½¿ç¨ç»§æ¿ï¼<literal>Animal.hbm.xml</literal>ã"
+"注æ <literal>hibernate-mapping</literal> å
ç´ å
è®¸ä½ åµå¥å¤ä¸ªå¦ä¸æç¤ºç "
+"<literal><class></literal> æ å°ã使¯æå¥½çåæ³ï¼ä¹è®¸ä¸äºå·¥å
·éè¦çï¼æ¯"
+"ä¸ä¸ªæä¹
åç±»ï¼æä¸ä¸ªç±»çç»§æ¿å±æ¬¡ï¼å¯¹åºä¸ä¸ªæ å°æä»¶ï¼å¹¶ä»¥æä¹
åçè¶
ç±»åç§°å½"
+"åï¼ä¾å¦ï¼<literal>Cat.hbm.xml</literal>ã<literal>Dog.hbm.xml</literal>ï¼æ"
+"è
å¦æä½¿ç¨ç»§æ¿ï¼<literal>Animal.hbm.xml</literal>ã"
#. Tag: title
-#: basic_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Class"
-msgstr "class"
+msgstr "ç±»"
#. Tag: para
-#: basic_mapping.xml:207
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can declare a persistent class using the <literal>class</literal> "
"element. For example:"
-msgstr "ä½ å¯ä»¥ä½¿ç¨<literal>class</literal>å
ç´ æ¥å®ä¹ä¸ä¸ªæä¹
åç±»ï¼"
+msgstr "ä½ å¯ä»¥ä½¿ç¨ <literal>class</literal> å
ç´ æ¥å®ä¹ä¸ä¸ªæä¹
åç±»ãä¾å¦ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:235
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class\n"
-" name=\"ClassName\"\n"
-" table=\"tableName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" mutable=\"true|false\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" proxy=\"ProxyInterface\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" select-before-update=\"true|false\"\n"
-" polymorphism=\"implicit|explicit\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" persister=\"PersisterClass\"\n"
-" batch-size=\"N\"\n"
-" optimistic-lock=\"none|version|dirty|all\"\n"
-" lazy=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" check=\"arbitrary sql check condition\"\n"
-" rowid=\"rowid\"\n"
-" subselect=\"SQL expression\"\n"
-" abstract=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:238
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the fully qualified Java class name of "
"the persistent class or interface. If this attribute is missing, it is "
"assumed that the mapping is for a non-POJO entity."
msgstr ""
-"<literal>name</literal> (å¯é): æä¹
åç±»ï¼æè
æ¥å£ï¼çJavaå
¨éå®åã 妿è¿ä¸ª"
-"屿§ä¸åå¨ï¼Hibernateå°åå®è¿æ¯ä¸ä¸ªéPOJOçå®ä½æ å°ã"
+"<literal>name</literal>ï¼å¯éï¼ï¼æä¹
åç±»ï¼æè
æ¥å£ï¼ç Java å
¨éå®åã 妿"
+"è¿ä¸ªå±æ§ä¸åå¨ï¼Hibernate å°åå®è¿æ¯ä¸ä¸ªé POJO çå®ä½æ å°ã "
#. Tag: para
-#: basic_mapping.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to the unqualified class "
"name): the name of its database table."
msgstr ""
-"<literal>table</literal> (å¯é - é»è®¤æ¯ç±»çéå
¨éå®å): 对åºçæ°æ®åºè¡¨åã"
+"<literal>table</literal>ï¼å¯é â é»è®¤æ¯ç±»çéå
¨éå®åï¼ï¼å¯¹åºçæ°æ®åºè¡¨åã "
#. Tag: para
-#: basic_mapping.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses that is used for "
"polymorphic behavior. Acceptable values include <literal>null</literal> and "
"<literal>not null</literal>."
msgstr ""
-"<literal>discriminator-value</literal> (å¯é - é»è®¤åç±»å䏿 ·): ä¸ä¸ªç¨äºåºå"
+"<literal>discriminator-value</literal>ï¼å¯é â é»è®¤åç±»å䏿 ·ï¼ï¼ä¸ä¸ªç¨äºåºå"
"ä¸åçåç±»çå¼ï¼å¨å¤æè¡ä¸ºæ¶ä½¿ç¨ãå®å¯ä»¥æ¥åçå¼å
æ¬ <literal>null</literal> "
-"å <literal>not null</literal>ã"
+"å <literal>not null</literal>ã "
#. Tag: para
-#: basic_mapping.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"specifies that instances of the class are (not) mutable."
msgstr ""
-"<literal>mutable</literal> (å¯éï¼é»è®¤å¼ä¸º<literal>true</literal>): 表æè¯¥ç±»"
-"çå®ä¾æ¯å¯åçæè
ä¸å¯åçã"
+"<literal>mutable</literal>ï¼å¯éï¼é»è®¤å¼ä¸º <literal>true</literal>ï¼ï¼è¡¨æè¯¥"
+"ç±»çå®ä¾æ¯å¯åçæè
ä¸å¯åçã "
#. Tag: para
-#: basic_mapping.xml:264 basic_mapping.xml:2231
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): overrides the schema name specified by "
"the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> (å¯é): è¦ç卿 ¹<literal><hibernate-mapping>"
-"</literal>å
ç´ ä¸æå®çschemaååã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>schema</literal> (å¯é):è¦çç±æ ¹<literal><hibernate-mapping></"
-"literal>å
ç´ æå®ç模å¼åç§°ã"
+"<literal>schema</literal>ï¼å¯éï¼ï¼è¦ç卿 ¹ <literal><hibernate-"
+"mapping></literal> å
ç´ ä¸æå®ç schema ååã "
#. Tag: para
-#: basic_mapping.xml:270 basic_mapping.xml:2237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>catalog</literal> (optional): overrides the catalog name specified "
"by the root <literal><hibernate-mapping></literal> element."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> (å¯é): è¦ç卿 ¹<literal><hibernate-mapping>"
-"</literal>å
ç´ ä¸æå®çcatalogååã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>catalog</literal> (å¯é): è¦çç±æ ¹ <literal><hibernate-"
-"mapping></literal>å
ç´ æå®çç®å½åç§°ã"
+"<literal>catalog</literal>ï¼å¯éï¼ï¼è¦ç卿 ¹ <literal><hibernate-"
+"mapping></literal> å
ç´ ä¸æå®ç catalog ååã "
#. Tag: para
-#: basic_mapping.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies an interface to use for lazy "
"initializing proxies. You can specify the name of the class itself."
msgstr ""
-"<literal>proxy</literal> (å¯é): æå®ä¸ä¸ªæ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使ç¨ã ä½ "
-"å¯ä»¥å¨è¿é使ç¨è¯¥ç±»èªå·±çååã"
+"<literal>proxy</literal>ï¼å¯éï¼ï¼æå®ä¸ä¸ªæ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使ç¨ãä½ "
+"å¯ä»¥å¨è¿é使ç¨è¯¥ç±»èªå·±çååã "
#. Tag: para
-#: basic_mapping.xml:282
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-update</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>UPDATE</literal> SQL should be generated "
"at runtime and can contain only those columns whose values have changed."
msgstr ""
-"<literal>dynamic-update</literal> (å¯é, é»è®¤ä¸º <literal>false</literal>): æ"
-"å®ç¨äº<literal>UPDATE</literal> çSQLå°ä¼å¨è¿è¡æ¶å¨æçæï¼å¹¶ä¸åªæ´æ°é£äºæ¹å"
-"è¿çåæ®µã"
+"<literal>dynamic-update</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>false</literal>ï¼ï¼"
+"æå®ç¨äº <literal>UPDATE</literal> ç SQL å°ä¼å¨è¿è¡æ¶å¨æçæï¼å¹¶ä¸åªæ´æ°é£"
+"äºæ¹åè¿çåæ®µã "
#. Tag: para
-#: basic_mapping.xml:289
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dynamic-insert</literal> (optional - defaults to <literal>false</"
"literal>): specifies that <literal>INSERT</literal> SQL should be generated "
"at runtime and contain only the columns whose values are not null."
msgstr ""
-"<literal>dynamic-insert</literal> (å¯é, é»è®¤ä¸º <literal>false</literal>): æ"
-"å®ç¨äº<literal>INSERT</literal>ç SQL å°ä¼å¨è¿è¡æ¶å¨æçæï¼å¹¶ä¸åªå
å«é£äºé"
-"空å¼å段ã"
+"<literal>dynamic-insert</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>false</literal>ï¼ï¼"
+"æå®ç¨äº <literal>INSERT</literal> ç SQL å°ä¼å¨è¿è¡æ¶å¨æçæï¼å¹¶ä¸åªå
å«é£"
+"äºé空å¼å段ã "
#. Tag: para
-#: basic_mapping.xml:296
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>select-before-update</literal> (optional - defaults to "
"<literal>false</literal>): specifies that Hibernate should <emphasis>never</"
@@ -552,108 +373,99 @@
"Hibernate perform an extra SQL <literal>SELECT</literal> to determine if an "
"<literal>UPDATE</literal> is actually required."
msgstr ""
-"<literal>select-before-update</literal> (å¯é, é»è®¤ä¸º <literal>false</"
-"literal>): æå®Hibernateé¤éç¡®å®å¯¹è±¡çæ£è¢«ä¿®æ¹äºï¼å¦æè¯¥å¼ä¸ºtrueï¼è¯æ³¨ï¼ï¼å¦"
-"å<emphasis>ä¸ä¼</emphasis>æ§è¡SQL <literal>UPDATE</literal>æä½ãå¨ç¹å®åºå"
-"ï¼å®é
ä¸ï¼å®åªå¨ä¸ä¸ªç¬æ¶å¯¹è±¡ï¼transient objectï¼å
³èå°ä¸ä¸ª æ°çsession䏿¶æ§"
-"è¡çupdate()ä¸çæï¼ï¼è¿è¯´æHibernateä¼å¨<literal>UPDATE</literal> ä¹åæ§è¡ä¸"
-"次é¢å¤çSQL <literal>SELECT</literal>æä½ï¼æ¥å³å®æ¯å¦åºè¯¥æ§è¡ "
-"<literal>UPDATE</literal>ã"
+"<literal>select-before-update</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>false</"
+"literal>ï¼ï¼æå® Hibernate é¤éç¡®å®å¯¹è±¡çæ£è¢«ä¿®æ¹äºï¼å¦æè¯¥å¼ä¸º true â è¯"
+"注ï¼ï¼å¦å<emphasis>ä¸ä¼</emphasis>æ§è¡ SQL <literal>UPDATE</literal> æä½ã"
+"å¨ç¹å®åºåï¼å®é
ä¸ï¼å®åªå¨ä¸ä¸ªç¬æ¶å¯¹è±¡ï¼transient objectï¼å
³èå°ä¸ä¸ªæ°ç "
+"session 䏿¶æ§è¡ç update() ä¸çæï¼ï¼è¿è¯´æ Hibernate ä¼å¨ <literal>UPDATE</"
+"literal> ä¹åæ§è¡ä¸æ¬¡é¢å¤ç SQL <literal>SELECT</literal> æä½æ¥å³å®æ¯å¦ç¡®å®"
+"éè¦æ§è¡ <literal>UPDATE</literal>ã"
#. Tag: para
-#: basic_mapping.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>polymorphism</literal> (optional - defaults to <literal>implicit</"
"literal>): determines whether implicit or explicit query polymorphism is "
"used."
msgstr ""
-"<literal>polymorphismï¼å¤æï¼</literal> (å¯é, é»è®¤å¼ä¸º <literal>implicit (é"
-"å¼) </literal>): ç宿¯éå¼è¿æ¯æ¾å¼ç使ç¨å¤ææ¥è¯¢ï¼è¿åªå¨Hibernateçå
·ä½è¡¨ç»§"
-"æ¿çç¥ä¸ç¨å°ï¼è¯æ³¨ï¼ã"
+"<literal>polymorphismï¼å¤æï¼</literal>ï¼å¯éï¼é»è®¤å¼ä¸º <literal>implicit "
+"ï¼éå¼ï¼</literal>ï¼ï¼ç宿¯éå¼è¿æ¯æ¾å¼ç使ç¨å¤ææ¥è¯¢ï¼è¿åªå¨ Hibernate çå
·"
+"ä½è¡¨ç»§æ¿çç¥ä¸ç¨å° â è¯æ³¨ï¼ã "
#. Tag: para
-#: basic_mapping.xml:312
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition to be used when retrieving objects of "
"this class."
msgstr ""
-"<literal>where</literal> (å¯é) æå®ä¸ä¸ªéå çSQL<literal>WHERE</literal> æ¡"
-"ä»¶ï¼ å¨æåè¿ä¸ªç±»ç对象æ¶ä¼ä¸ç´å¢å è¿ä¸ªæ¡ä»¶ã"
+"<literal>where</literal>ï¼å¯éï¼æå®ä¸ä¸ªéå ç SQL <literal>WHERE</literal> "
+"æ¡ä»¶ï¼å¨æåè¿ä¸ªç±»ç对象æ¶ä¼ä¸ç´å¢å è¿ä¸ªæ¡ä»¶ã "
#. Tag: para
-#: basic_mapping.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persister</literal> (optional): specifies a custom "
"<literal>ClassPersister</literal>."
msgstr ""
-"<literal>persister</literal> (å¯é): æå®ä¸ä¸ªå®å¶ç<literal>ClassPersister</"
-"literal>ã"
+"<literal>persister</literal>ï¼å¯éï¼ï¼æå®ä¸ä¸ªå®å¶ç "
+"<literal>ClassPersister</literal>ã "
#. Tag: para
-#: basic_mapping.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional - defaults to <literal>1</literal>): "
"specifies a \"batch size\" for fetching instances of this class by "
"identifier."
msgstr ""
-"<literal>batch-size</literal> (å¯é,é»è®¤æ¯<literal>1</literal>) æå®ä¸ä¸ªç¨äº "
-"æ ¹æ®æ è¯ç¬¦ï¼identifierï¼æåå®ä¾æ¶ä½¿ç¨ç\"batch size\"ï¼æ¹æ¬¡æåæ°éï¼ã"
+"<literal>batch-size</literal>ï¼å¯é,é»è®¤æ¯ <literal>1</literal>ï¼æå®ä¸ä¸ªç¨"
+"äº æ ¹æ®æ è¯ç¬¦ï¼identifierï¼æåå®ä¾æ¶ä½¿ç¨ç \"batch size\"ï¼æ¹æ¬¡æåæ°éï¼ã "
#. Tag: para
-#: basic_mapping.xml:329
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>version</"
"literal>): determines the optimistic locking strategy."
msgstr ""
-"<literal>optimistic-lockï¼ä¹è§éå®ï¼</literal> (å¯éï¼é»è®¤æ¯"
-"<literal>version</literal>): å³å®ä¹è§éå®ççç¥ã"
+"<literal>optimistic-lockï¼ä¹è§éå®ï¼</literal>ï¼å¯éï¼é»è®¤æ¯ "
+"<literal>version</literal>ï¼ï¼å³å®ä¹è§éå®ççç¥ã "
#. Tag: para
-#: basic_mapping.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional): lazy fetching can be disabled by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"<literal>lazy</literal> (å¯é): éè¿è®¾ç½®<literal>lazy=\"false\"</literal>ï¼ "
+"<literal>lazy</literal>ï¼å¯éï¼ï¼éè¿è®¾ç½® <literal>lazy=\"false\"</literal>ï¼"
"ææçå»¶è¿å è½½ï¼Lazy fetchingï¼åè½å°è¢«å
¨é¨ç¦ç¨ï¼disabledï¼ã"
#. Tag: para
-#: basic_mapping.xml:341
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional - defaults to the class name): "
"Hibernate3 allows a class to be mapped multiple times, potentially to "
"different tables. It also allows entity mappings that are represented by "
"Maps or XML at the Java level. In these cases, you should provide an "
"explicit arbitrary name for the entity. See <xref linkend=\"persistent-"
-"classes-dynamicmodels\"/> and <xref linkend=\"xml\"/> for more information."
+"classes-dynamicmodels\" /> and <xref linkend=\"xml\" /> for more information."
msgstr ""
-"<literal>entity-name</literal> (å¯éï¼é»è®¤ä¸ºç±»å): Hibernate3å
许ä¸ä¸ªç±»è¿è¡å¤"
-"次æ å°ï¼ åææ¯æ å°å°ä¸åç表ï¼ï¼å¹¶ä¸å
许使ç¨MapsæXML代æ¿Java屿¬¡çå®ä½æ å° "
-"ï¼ä¹å°±æ¯å®ç°å¨æé¢å模åï¼ä¸ç¨åæä¹
åç±»ï¼è¯æ³¨ï¼ã æ´å¤ä¿¡æ¯è¯·ç<xref linkend="
-"\"persistent-classes-dynamicmodels\"/> and <xref linkend=\"xml\"/>ã"
+"<literal>entity-name</literal>ï¼å¯éï¼é»è®¤ä¸ºç±»åï¼ï¼Hibernate3 å
许ä¸ä¸ªç±»è¿è¡"
+"夿¬¡æ å°ï¼åææ¯æ å°å°ä¸åç表ï¼ï¼å¹¶ä¸å
è®¸ä½¿ç¨ Maps æ XML ä»£æ¿ Java 屿¬¡çå®"
+"使 å°ï¼ä¹å°±æ¯å®ç°å¨æé¢å模åï¼ä¸ç¨åæä¹
åç±»ï¼è¯æ³¨ï¼ãæ´å¤ä¿¡æ¯è¯·ç <xref "
+"linkend=\"persistent-classes-dynamicmodels\"/> å <xref linkend=\"xml\"/>ã "
#. Tag: para
-#: basic_mapping.xml:351
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>check</literal> (optional): an SQL expression used to generate a "
"multi-row <emphasis>check</emphasis> constraint for automatic schema "
"generation."
msgstr ""
-"<literal>check</literal> (å¯é): è¿æ¯ä¸ä¸ªSQL表达å¼ï¼ ç¨äºä¸ºèªå¨çæçschemaæ·»"
-"å å¤è¡ï¼multi-rowï¼çº¦æ<emphasis>æ£æ¥</emphasis>ã"
+"<literal>check</literal>ï¼å¯éï¼ï¼è¿æ¯ä¸ä¸ª SQL 表达å¼ï¼ ç¨äºä¸ºèªå¨çæç "
+"schema æ·»å å¤è¡ï¼multi-rowï¼çº¦æ<emphasis>æ£æ¥</emphasis>ã "
#. Tag: para
-#: basic_mapping.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rowid</literal> (optional): Hibernate can use ROWIDs on databases. "
"On Oracle, for example, Hibernate can use the <literal>rowid</literal> extra "
@@ -661,36 +473,33 @@
"literal>. A ROWID is an implementation detail and represents the physical "
"location of a stored tuple."
msgstr ""
-"<literal>rowid</literal> (å¯é): Hibernateå¯ä»¥ä½¿ç¨æ°æ®åºæ¯æçæè°çROWIDsï¼"
-"ä¾å¦ï¼ Oracleæ°æ®åºï¼å¦æä½ 设置è¿ä¸ªå¯éç<literal>rowid</literal>ï¼ Hibernate"
-"å¯ä»¥ä½¿ç¨é¢å¤çåæ®µ<literal>rowid</literal>å®ç°å¿«éæ´æ°ãROWIDæ¯è¿ä¸ªåè½å®ç°ç"
-"éç¹ï¼ å®ä»£è¡¨äºä¸ä¸ªåå¨å
ç»ï¼tupleï¼çç©çä½ç½®ã"
+"<literal>rowid</literal>ï¼å¯éï¼ï¼Hibernate å¯ä»¥ä½¿ç¨æ°æ®åºæ¯æçæè°ç "
+"ROWIDsï¼ä¾å¦ï¼Oracle æ°æ®åºï¼å¦æä½ 设置è¿ä¸ªå¯éç <literal>rowid</literal>ï¼"
+"Hibernate å¯ä»¥ä½¿ç¨é¢å¤çåæ®µ <literal>rowid</literal> å®ç°å¿«éæ´æ°ãROWID æ¯"
+"è¿ä¸ªåè½å®ç°çéç¹ï¼å®ä»£è¡¨äºä¸ä¸ªåå¨å
ç»ï¼tupleï¼çç©çä½ç½®ã "
#. Tag: para
-#: basic_mapping.xml:364
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>subselect</literal> (optional): maps an immutable and read-only "
"entity to a database subselect. This is useful if you want to have a view "
"instead of a base table. See below for more information."
msgstr ""
-"<literal>subselect</literal> (å¯é): å®å°ä¸ä¸ªä¸å¯åï¼immutableï¼å¹¶ä¸åªè¯»çå®"
-"使 å°å°ä¸ä¸ªæ°æ®åºç åæ¥è¯¢ä¸ãå½ä½ æ³ç¨è§å¾ä»£æ¿ä¸å¼ åºæ¬è¡¨çæ¶åï¼è¿æ¯æç¨çï¼"
-"使好ä¸è¦è¿æ ·åãæ´å¤çä»ç»è¯·çä¸é¢å
容ã"
+"<literal>subselect</literal>ï¼å¯éï¼ï¼å®å°ä¸ä¸ªä¸å¯åï¼immutableï¼å¹¶ä¸åªè¯»çå®"
+"使 å°å°ä¸ä¸ªæ°æ®åºçåæ¥è¯¢ä¸ãå½ä½ æ³ç¨è§å¾ä»£æ¿ä¸å¼ åºæ¬è¡¨çæ¶åï¼è¿æ¯æç¨çï¼"
+"使好ä¸è¦è¿æ ·åãæ´å¤çä»ç»è¯·çä¸é¢å
容ã "
#. Tag: para
-#: basic_mapping.xml:371
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>abstract</literal> (optional): is used to mark abstract "
"superclasses in <literal><union-subclass></literal> hierarchies."
msgstr ""
-"<literal>abstract</literal> (å¯é): ç¨äºå¨<literal><union-subclass></"
-"literal>çç»§æ¿ç»æ ï¼hierarchiesï¼ä¸æ è¯æ½è±¡è¶
ç±»ã"
+"<literal>abstract</literal>ï¼å¯éï¼ï¼ç¨äºå¨ <literal><union-subclass></"
+"literal> ç屿¬¡ç»æï¼hierarchiesï¼ä¸æ è¯æ½è±¡è¶
ç±»ã"
#. Tag: para
-#: basic_mapping.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is acceptable for the named persistent class to be an interface. You can "
"declare implementing classes of that interface using the <literal><"
@@ -698,25 +507,23 @@
"emphasis> inner class. Specify the class name using the standard form i.e. "
"<literal>e.g.Foo$Bar</literal>."
msgstr ""
-"è¥ææçæä¹
åç±»å®é
䏿¯ä¸ä¸ªæ¥å£ï¼è¿ä¹æ¯å®å
¨å¯ä»¥æ¥åçã ä¹åä½ å¯ä»¥ç¨å
ç´ "
-"<literal><subclass></literal>æ¥æå®è¯¥æ¥å£çå®é
å®ç°ç±»ã ä½ å¯ä»¥æä¹
åä»»"
-"ä½<emphasis>static</emphasis>ï¼éæçï¼å
é¨ç±»ã ä½ åºè¯¥ä½¿ç¨æ åçç±»åæ ¼å¼æ¥æ"
-"å®ç±»åï¼<literal>æ¯å¦ï¼Foo$Bar</literal>ã"
+"è¥ææçæä¹
åç±»å®é
䏿¯ä¸ä¸ªæ¥å£ï¼è¿ä¹æ¯å®å
¨å¯ä»¥æ¥åçãä¹åä½ å¯ä»¥ç¨å
ç´ "
+"<literal><subclass></literal> æ¥æå®è¯¥æ¥å£çå®é
å®ç°ç±»ãä½ å¯ä»¥æä¹
åä»»"
+"ä½ <emphasis>static</emphasis>ï¼éæçï¼å
é¨ç±»ãä½ åºè¯¥ä½¿ç¨æ åçç±»åæ ¼å¼æ¥æ"
+"å®ç±»åï¼æ¯å¦ï¼<literal>Foo$Bar</literal>ã"
#. Tag: para
-#: basic_mapping.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Immutable classes, <literal>mutable=\"false\"</literal>, cannot be updated "
"or deleted by the application. This allows Hibernate to make some minor "
"performance optimizations."
msgstr ""
-"ä¸å¯åç±»ï¼<literal>mutable=\"false\"</literal>ä¸å¯ä»¥è¢«åºç¨ç¨åºæ´æ°æè
å é¤ã "
-"è¿å¯ä»¥è®©Hibernateåä¸äºå°å°çæ§è½ä¼åã"
+"ä¸å¯åç±»ï¼<literal>mutable=\"false\"</literal> ä¸å¯ä»¥è¢«åºç¨ç¨åºæ´æ°æè
å é¤ã"
+"è¿å
许 Hibernate å®ç°ä¸äºå°å°çæ§è½ä¼åã"
#. Tag: para
-#: basic_mapping.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal>proxy</literal> attribute enables lazy initialization "
"of persistent instances of the class. Hibernate will initially return CGLIB "
@@ -724,13 +531,12 @@
"when a method of the proxy is invoked. See \"Initializing collections and "
"proxies\" below."
msgstr ""
-"å¯éç<literal>proxy</literal>屿§å
许延è¿å 载类çæä¹
åå®ä¾ã Hibernateå¼å§"
-"ä¼è¿åå®ç°äºè¿ä¸ªå½åæ¥å£çCGLIB代çãå½ä»£ççæä¸ªæ¹æ³è¢«å®é
è°ç¨çæ¶åï¼ çå®"
-"çæä¹
å对象æä¼è¢«è£
è½½ãåè§ä¸é¢çâç¨äºå»¶è¿è£
è½½ç代çâã"
+"å¯éç <literal>proxy</literal> 屿§å
许延è¿å 载类çæä¹
åå®ä¾ãHibernate å¼"
+"å§ä¼è¿åå®ç°äºè¿ä¸ªå½åæ¥å£ç CGLIB 代çãå½ä»£ççæä¸ªæ¹æ³è¢«å®é
è°ç¨çæ¶åï¼ç"
+"å®çæä¹
å对象æä¼è¢«è£
è½½ãåè§ä¸é¢çâç¨äºå»¶è¿è£
è½½ç代çâã "
#. Tag: para
-#: basic_mapping.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Implicit</emphasis> polymorphism means that instances of the class "
"will be returned by a query that names any superclass or implemented "
@@ -746,19 +552,18 @@
"table This allows a \"lightweight\" class that contains a subset of the "
"table columns."
msgstr ""
-"<emphasis>Implicit</emphasis> (éå¼)çå¤ææ¯æï¼å¦ææ¥è¯¢æ¶ç»åºçæ¯ä»»ä½è¶
ç±»ã"
-"该类å®ç°çæ¥å£æè
该类ç ååï¼é½ä¼è¿åè¿ä¸ªç±»çå®ä¾ï¼å¦ææ¥è¯¢ä¸ç»åºçæ¯åç±»ç"
-"ååï¼åä¼è¿ååç±»çå®ä¾ã <emphasis>Explicit</emphasis> ï¼æ¾å¼ï¼çå¤ææ¯æï¼"
-"åªæå¨æ¥è¯¢æ¶ç»åºæç¡®ç该类ååæ¶æä¼è¿åè¿ä¸ªç±»çå®ä¾ï¼ åæ¶åªæå¨è¿ä¸ª"
-"<literal><class></literal>çå®ä¹ä¸ä½ä¸º<literal><subclass></"
-"literal> æè
<literal><joined-subclass></literal>åºç°çåç±»ï¼æä¼å¯è½è¿"
-"åã å¨å¤§å¤æ°æ
åµä¸ï¼é»è®¤ç<literal>polymorphism=\"implicit\"</literal>齿¯å"
-"éçã æ¾å¼çå¤æå¨æä¸¤ä¸ªä¸åçç±»æ å°å°åä¸ä¸ªè¡¨çæ¶å徿ç¨ãï¼å
许ä¸ä¸ªâè½»"
-"åâçç±»ï¼åªå
å«é¨åè¡¨åæ®µï¼ã"
+"<emphasis>Implicit</emphasis>ï¼éå¼ï¼çå¤ææ¯æï¼å¦ææ¥è¯¢æ¶ç»åºçæ¯ä»»ä½è¶
ç±»ã"
+"该类å®ç°çæ¥å£æè
该类çååï¼é½ä¼è¿åè¿ä¸ªç±»çå®ä¾ï¼å¦ææ¥è¯¢ä¸ç»åºçæ¯åç±»ç"
+"ååï¼åä¼è¿ååç±»çå®ä¾ã<emphasis>Explicit</emphasis>ï¼æ¾å¼ï¼çå¤ææ¯æï¼åª"
+"æå¨æ¥è¯¢æ¶ç»åºæç¡®ç该类ååæ¶æä¼è¿åè¿ä¸ªç±»çå®ä¾ï¼ åæ¶åªæå¨è¿ä¸ª "
+"<literal><class></literal> çå®ä¹ä¸ä½ä¸º <literal><subclass></"
+"literal> æè
<literal><joined-subclass></literal> åºç°çåç±»ï¼æä¼å¯è½"
+"è¿åãå¨å¤§å¤æ°æ
åµä¸ï¼é»è®¤ç <literal>polymorphism=\"implicit\"</literal> é½"
+"æ¯åéçãæ¾å¼çå¤æå¨æä¸¤ä¸ªä¸åçç±»æ å°å°åä¸ä¸ªè¡¨çæ¶å徿ç¨ãï¼å
许ä¸ä¸ªâè½»"
+"é级âçç±»ï¼åªå
å«é¨åè¡¨åæ®µï¼ã "
#. Tag: para
-#: basic_mapping.xml:410
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>persister</literal> attribute lets you customize the "
"persistence strategy used for the class. You can, for example, specify your "
@@ -769,16 +574,15 @@
"files or LDAP. See <literal>org.hibernate.test.CustomPersister</literal> for "
"a simple example of \"persistence\" to a <literal>Hashtable</literal>."
msgstr ""
-"<literal>persister</literal>屿§å¯ä»¥è®©ä½ å®å¶è¿ä¸ªç±»ä½¿ç¨çæä¹
åçç¥ã ä½ å¯ä»¥æ"
-"å®ä½ èªå·±å®ç° <literal>org.hibernate.persister.EntityPersister</literal>çå"
+"<literal>persister</literal> 屿§å¯ä»¥è®©ä½ å®å¶è¿ä¸ªç±»ä½¿ç¨çæä¹
åçç¥ãä½ å¯ä»¥æ"
+"å®ä½ èªå·±å®ç° <literal>org.hibernate.persister.EntityPersister</literal> çå"
"ç±»ï¼ä½ çè³å¯ä»¥å®å
¨ä»å¤´å¼å§ç¼åä¸ä¸ª <literal>org.hibernate.persister."
-"ClassPersister</literal>æ¥å£çå®ç°ï¼ æ¯å¦æ¯ç¨å¨åè¿ç¨è°ç¨ãåºååå°æä»¶æè
"
-"LDAPæ°æ®åºæ¥å®ç°ã åé
<literal>org.hibernate.test.CustomPersister</"
-"literal>ï¼è¿æ¯ä¸ä¸ªç®åçä¾å ï¼âæä¹
åâå°ä¸ä¸ª<literal>Hashtable</literal>ï¼ã"
+"ClassPersister</literal> æ¥å£çå®ç°ï¼æ¯å¦æ¯ç¨å¨åè¿ç¨è°ç¨ãåºååå°æä»¶æè
"
+"LDAP æ°æ®åºæ¥å®ç°ãåé
<literal>org.hibernate.test.CustomPersister</"
+"literal>ï¼è¿æ¯æä¹
åå° <literal>Hashtable</literal> çä¸ä¸ªç®åä¾åã "
#. Tag: para
-#: basic_mapping.xml:421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>dynamic-update</literal> and <literal>dynamic-insert</literal> "
"settings are not inherited by subclasses, so they can also be specified on "
@@ -786,26 +590,24 @@
"literal> elements. Although these settings can increase performance in some "
"cases, they can actually decrease performance in others."
msgstr ""
-"请注æ<literal>dynamic-update</literal>å<literal>dynamic-insert</literal>ç"
-"设置并ä¸ä¼ç»§æ¿å°åç±»ï¼ æä»¥å¨<literal><subclass></literal>æè
"
-"<literal><joined-subclass></literal>å
ç´ ä¸å¯è½ éè¦å次设置ãè¿äºè®¾ç½®æ¯"
-"å¦è½å¤æé«æçè¦è§æ
å½¢èå®ã请ç¨ä½ çæºæ
§å³å®æ¯å¦ä½¿ç¨ã"
+"请注æ <literal>dynamic-update</literal> å <literal>dynamic-insert</"
+"literal> ç设置并ä¸ä¼ç»§æ¿å°åç±»ï¼æä»¥å¨ <literal><subclass></literal> "
+"æè
<literal><joined-subclass></literal> å
ç´ ä¸å¯è½éè¦å次设置ãè¿äº"
+"è®¾ç½®å¨æäºæ
åµä¸è½å¤æé«æçï¼èå
¶ä»æ
åµä¸ååèå¯è½é使§è½ã"
#. Tag: para
-#: basic_mapping.xml:429
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use of <literal>select-before-update</literal> will usually decrease "
"performance. It is useful to prevent a database update trigger being called "
"unnecessarily if you reattach a graph of detached instances to a "
"<literal>Session</literal>."
msgstr ""
-"使ç¨<literal>select-before-update</literal>é常ä¼é使§è½ãå¦æä½ éæ°è¿æ¥ä¸ä¸ª"
-"è±ç®¡ï¼detacheï¼å¯¹è±¡å®ä¾ å°ä¸ä¸ª<literal>Session</literal>䏿¶ï¼å®å¯ä»¥é²æ¢æ°æ®"
-"åºä¸å¿
è¦ç触åupdateã è¿å°±å¾æç¨äºã"
+"ä½¿ç¨ <literal>select-before-update</literal> é常ä¼é使§è½ãå¦æä½ éæ°è¿æ¥ä¸"
+"个è±ç®¡ï¼detachedï¼å¯¹è±¡å®ä¾ å°ä¸ä¸ª <literal>Session</literal> 䏿¶ï¼å®å¯ä»¥é²æ¢"
+"æ°æ®åºä¸å¿
è¦ç触å updateãè¿å°±å¾æç¨äºã"
#. Tag: para
-#: basic_mapping.xml:435
#, no-c-format
msgid ""
"If you enable <literal>dynamic-update</literal>, you will have a choice of "
@@ -814,47 +616,42 @@
"å¦æä½ æå¼äº<literal>dynamic-update</literal>ï¼ä½ å¯ä»¥éæ©å ç§ä¹è§éå®ççç¥ï¼"
#. Tag: para
-#: basic_mapping.xml:441
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>version</literal>: check the version/timestamp columns"
-msgstr "<literal>versionï¼çæ¬æ£æ¥ï¼</literal> æ£æ¥version/timestampåæ®µ"
+msgstr "<literal>versionï¼çæ¬æ£æ¥ï¼</literal>ï¼æ£æ¥ version/timestamp åæ®µ"
#. Tag: para
-#: basic_mapping.xml:446
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>all</literal>: check all columns"
-msgstr "<literal>allï¼å
¨é¨ï¼</literal> æ£æ¥å
¨é¨å段"
+msgstr "<literal>allï¼å
¨é¨ï¼</literal>ï¼æ£æ¥å
¨é¨å段"
#. Tag: para
-#: basic_mapping.xml:451
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>dirty</literal>: check the changed columns, allowing some "
"concurrent updates"
-msgstr "<literal>dirtyï¼èæ£æ¥ï¼</literal>åªæ£å¯ä¿®æ¹è¿çåæ®µ"
+msgstr ""
+"<literal>dirtyï¼èæ£æ¥ï¼</literal>ï¼åªæ£å¯ä¿®æ¹è¿çåæ®µï¼å
许æäºå¹¶è¡æ´æ°"
#. Tag: para
-#: basic_mapping.xml:456
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>none</literal>: do not use optimistic locking"
-msgstr "<literal>noneï¼ä¸æ£æ¥ï¼</literal>ä¸ä½¿ç¨ä¹è§éå®"
+msgstr "<literal>noneï¼ä¸æ£æ¥ï¼</literal>ï¼ä¸ä½¿ç¨ä¹è§éå®"
#. Tag: para
-#: basic_mapping.xml:461
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is <emphasis>strongly</emphasis> recommended that you use version/"
"timestamp columns for optimistic locking with Hibernate. This strategy "
"optimizes performance and correctly handles modifications made to detached "
"instances (i.e. when <literal>Session.merge()</literal> is used)."
msgstr ""
-"æä»¬<emphasis>é常</emphasis>强çå»ºè®®ä½ å¨Hibernateä¸ä½¿ç¨version/timestampåæ®µ"
-"æ¥è¿è¡ä¹è§éå®ã 对æ§è½æ¥è¯´ï¼è¿æ¯æå¥½çéæ©ï¼å¹¶ä¸è¿ä¹æ¯å¯ä¸è½å¤å¤çå¨session"
-"å¤è¿è¡æä½ççç¥ï¼ä¾å¦ï¼ å¨ä½¿ç¨<literal>Session.merge()</literal>çæ¶åï¼ã"
+"æä»¬<emphasis>强ç</emphasis>å»ºè®®ä½ å¨ Hibernate ä¸ä½¿ç¨ version/timestamp åæ®µ"
+"æ¥è¿è¡ä¹è§éå®ãè¿ä¸ªéæ©å¯ä»¥ä¼åæ§è½ï¼ä¸è½å¤å¤ç对è±ç®¡å®ä¾çä¿®æ¹ï¼ä¾å¦ï¼å¨ä½¿"
+"ç¨ <literal>Session.merge()</literal> çæ¶åï¼ã"
#. Tag: para
-#: basic_mapping.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is no difference between a view and a base table for a Hibernate "
"mapping. This is transparent at the database level, although some DBMS do "
@@ -863,50 +660,29 @@
"schema). In this case, you can map an immutable and read-only entity to a "
"given SQL subselect expression:"
msgstr ""
-"对Hibernateæ å°æ¥è¯´è§å¾åè¡¨æ¯æ²¡æåºå«çï¼è¿æ¯å 为å®ä»¬å¨æ°æ®å±é½æ¯éæçï¼ æ³¨"
-"æï¼ä¸äºæ°æ®åºä¸æ¯æè§å¾å±æ§ï¼ç¹å«æ¯æ´æ°çæ¶åï¼ãææ¶ä½ æ³ä½¿ç¨è§å¾ï¼ä½å´ä¸è½"
-"卿°æ®åº ä¸å建å®ï¼ä¾å¦ï¼å¨éççschemaä¸ï¼ãè¿æ ·çè¯ï¼ä½ å¯ä»¥æ å°ä¸ä¸ªä¸å¯åç"
-"ï¼immutableï¼å¹¶ä¸æ¯ åªè¯»çå®ä½å°ä¸ä¸ªç»å®çSQLåæ¥è¯¢è¡¨è¾¾å¼ï¼"
+"对 Hibernate æ å°æ¥è¯´è§å¾åè¡¨æ¯æ²¡æåºå«çï¼è¿æ¯å 为å®ä»¬å¨æ°æ®å±é½æ¯éæç"
+"ï¼ æ³¨æï¼ä¸äºæ°æ®åºä¸æ¯æè§å¾å±æ§ï¼ç¹å«æ¯æ´æ°çæ¶åï¼ãææ¶ä½ æ³ä½¿ç¨è§å¾ï¼ä½å´"
+"ä¸è½å¨æ°æ®åºä¸å建å®ï¼ä¾å¦ï¼å¨éçç schema ä¸ï¼ãè¿æ ·çè¯ï¼ä½ å¯ä»¥æ å°ä¸ä¸ªä¸"
+"å¯åçï¼immutableï¼å¹¶ä¸æ¯ åªè¯»çå®ä½å°ä¸ä¸ªç»å®ç SQL åæ¥è¯¢è¡¨è¾¾å¼ï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Summary\">\n"
-" <subselect>\n"
-" select item.name, max(bid.amount), count(*)\n"
-" from item\n"
-" join bid on bid.item_id = item.id\n"
-" group by item.name\n"
-" </subselect>\n"
-" <synchronize table=\"item\"/>\n"
-" <synchronize table=\"bid\"/>\n"
-" <id name=\"name\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:478
-#, fuzzy, no-c-format
-msgid ""
"Declare the tables to synchronize this entity with, ensuring that auto-flush "
"happens correctly and that queries against the derived entity do not return "
"stale data. The <literal><subselect></literal> is available both as an "
"attribute and a nested mapping element."
msgstr ""
"å®ä¹è¿ä¸ªå®ä½ç¨å°çè¡¨ä¸ºåæ¥ï¼synchronizeï¼ï¼ç¡®ä¿èªå¨å·æ°ï¼auto-flushï¼æ£ç¡®æ§"
-"è¡ï¼ å¹¶ä¸ä¾èµåå®ä½çæ¥è¯¢ä¸ä¼è¿åè¿ææ°æ®ã<literal><subselect></"
-"literal>å¨å±æ§å
ç´ åä¸ä¸ªåµå¥æ å°å
ç´ ä¸é½å¯è§ã"
+"è¡ï¼å¹¶ä¸ä¾èµåå®ä½çæ¥è¯¢ä¸ä¼è¿åè¿ææ°æ®ãå¨å±æ§å
ç´ ååµå¥æ å°å
ç´ ä¸é½å¯ä½¿ç¨ "
+"<literal><subselect></literal>ã"
#. Tag: title
-#: basic_mapping.xml:488
#, no-c-format
-msgid "<title>id</title>"
-msgstr ""
+msgid "id"
+msgstr "id"
#. Tag: para
-#: basic_mapping.xml:490
#, no-c-format
msgid ""
"Mapped classes <emphasis>must</emphasis> declare the primary key column of "
@@ -915,133 +691,82 @@
"literal> element defines the mapping from that property to the primary key "
"column."
msgstr ""
-"被æ å°çç±»<emphasis>å¿
é¡»</emphasis>å®ä¹å¯¹åºæ°æ®åºè¡¨ä¸»é®å段ã大夿°ç±»æä¸ä¸ª"
-"JavaBeans飿 ¼ç屿§ï¼ 为æ¯ä¸ä¸ªå®ä¾å
å«å¯ä¸çæ è¯ã<literal><id></"
+"被æ å°çç±»<emphasis>å¿
é¡»</emphasis>å®ä¹å¯¹åºæ°æ®åºè¡¨ä¸»é®å段ã大夿°ç±»æä¸ä¸ª "
+"JavaBeans 飿 ¼ç屿§ï¼ 为æ¯ä¸ä¸ªå®ä¾å
å«å¯ä¸çæ è¯ã<literal><id></"
"literal> å
ç´ å®ä¹äºè¯¥å±æ§å°æ°æ®åºè¡¨ä¸»é®åæ®µçæ å°ã"
-#. Tag: programlisting
-#: basic_mapping.xml:505
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" column=\"column_name\"\n"
-" unsaved-value=\"null|any|none|undefined|id_value\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"\n"
-" <generator class=\"generatorClass\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:508
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal> (optional): the name of the identifier property."
-msgstr "<literal>name</literal> (å¯é): æ è¯å±æ§çååã"
+msgstr "<literal>name</literal>ï¼å¯éï¼ï¼æ è¯å±æ§çååã "
#. Tag: para
-#: basic_mapping.xml:513 basic_mapping.xml:1351
#, no-c-format
msgid ""
"<literal>type</literal> (optional): a name that indicates the Hibernate type."
-msgstr "<literal>type</literal> (å¯é): ä¸ä¸ªHibernateç±»åçååã"
+msgstr "<literal>type</literal>ï¼å¯éï¼ï¼ä¸ä¸ª Hibernate ç±»åçååã"
#. Tag: para
-#: basic_mapping.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the primary key column."
-msgstr "<literal>column</literal> (å¯é - é»è®¤ä¸ºå±æ§å): 主é®å段çååã"
+msgstr "<literal>column</literal>ï¼å¯é â é»è®¤ä¸ºå±æ§åï¼ï¼ä¸»é®å段çååã "
#. Tag: para
-#: basic_mapping.xml:524
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to a \"sensible\" "
"value): an identifier property value that indicates an instance is newly "
"instantiated (unsaved), distinguishing it from detached instances that were "
"saved or loaded in a previous session."
msgstr ""
-"<literal>unsaved-value</literal> (å¯é - é»è®¤ä¸ºä¸ä¸ªååå®é
ï¼sensibleï¼ç"
-"å¼): ä¸ä¸ªç¹å®çæ è¯å±æ§å¼ï¼ç¨æ¥æ å¿è¯¥å®ä¾æ¯ååå建çï¼å°æªä¿åã è¿å¯ä»¥æè¿"
-"ç§å®ä¾åä»ä»¥åçsessionä¸è£
è½½è¿ï¼å¯è½ååè¿ä¿®æ¹--è¯è
æ³¨ï¼ ä½æªå次æä¹
åçå®"
-"ä¾åºå弿¥ã"
+"<literal>unsaved-value</literal>ï¼å¯é â é»è®¤ä¸ºä¸ä¸ªååå®é
ï¼sensibleï¼ç"
+"å¼ï¼ï¼ä¸ä¸ªç¹å®çæ è¯å±æ§å¼ï¼ç¨æ¥æ å¿è¯¥å®ä¾æ¯ååå建çï¼å°æªä¿åãè¿å¯ä»¥æè¿"
+"ç§å®ä¾åä»ä»¥åç session ä¸è£
è½½è¿ï¼å¯è½ååè¿ä¿®æ¹--è¯è
注ï¼ä½æªå次æä¹
åçå®"
+"ä¾åºå弿¥ã "
#. Tag: para
-#: basic_mapping.xml:532
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate should use for accessing the property "
"value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateåºè¯¥ä½¿ç¨çè®¿é®æ¤å±æ§å¼ççç¥\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤å¼ä¸º <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é -é»è®¤æ¯ <literal>property</literal>): "
-"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã"
+"<literal>access</literal>ï¼å¯é â é»è®¤ä¸º <literal>property</literal>ï¼ï¼"
+"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã "
#. Tag: para
-#: basic_mapping.xml:540
#, no-c-format
msgid ""
"If the <literal>name</literal> attribute is missing, it is assumed that the "
"class has no identifier property."
-msgstr "妿 <literal>name</literal>屿§ä¸åå¨ï¼ä¼è®¤ä¸ºè¿ä¸ªç±»æ²¡ææ è¯å±æ§ã"
+msgstr "妿 <literal>name</literal> 屿§ä¸åå¨ï¼ä¼è®¤ä¸ºè¿ä¸ªç±»æ²¡ææ è¯å±æ§ã"
#. Tag: para
-#: basic_mapping.xml:545
#, no-c-format
msgid ""
"The <literal>unsaved-value</literal> attribute is almost never needed in "
"Hibernate3."
-msgstr "<literal>unsaved-value</literal> 屿§å¨Hibernate3ä¸å ä¹ä¸åéè¦ã"
+msgstr "<literal>unsaved-value</literal> 屿§å¨ Hibernate3 ä¸å ä¹ä¸åéè¦ã"
#. Tag: para
-#: basic_mapping.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is an alternative <literal><composite-id></literal> declaration "
"that allows access to legacy data with composite keys. Its use is strongly "
"discouraged for anything else."
msgstr ""
-"è¿æä¸ä¸ªå¦å¤ç<literal><composite-id></literal>å®ä¹å¯ä»¥è®¿é®æ§å¼çå¤ä¸»é®"
-"æ°æ®ã æä»¬å¼ºçä¸å»ºè®®ä½¿ç¨è¿ç§æ¹å¼ã"
+"è¿æä¸ä¸ªå¦å¤ç <literal><composite-id></literal> å®ä¹å¯ä»¥è®¿é®æ§å¼çå¤ä¸»"
+"鮿°æ®ãæä»¬é常ä¸é¼å±ä½¿ç¨è¿ç§æ¹å¼ã"
#. Tag: title
-#: basic_mapping.xml:555
#, no-c-format
msgid "Generator"
msgstr "Generator"
#. Tag: para
-#: basic_mapping.xml:557
#, no-c-format
msgid ""
"The optional <literal><generator></literal> child element names a Java "
@@ -1050,45 +775,29 @@
"generator instance, they are passed using the <literal><param></"
"literal> element."
msgstr ""
-"å¯éç<literal><generator></literal>åå
ç´ æ¯ä¸ä¸ªJavaç±»çååï¼ ç¨æ¥ä¸ºè¯¥"
-"æä¹
åç±»çå®ä¾çæå¯ä¸çæ è¯ã妿è¿ä¸ªçæå¨å®ä¾éè¦æäºé
ç½®å¼æè
åå§åå"
-"æ°ï¼ ç¨<literal><param></literal>å
ç´ æ¥ä¼ éã"
+"å¯éç <literal><generator></literal> åå
ç´ æ¯ä¸ä¸ª Java ç±»çååï¼ç¨æ¥"
+"为该æä¹
åç±»çå®ä¾çæå¯ä¸çæ è¯ã妿è¿ä¸ªçæå¨å®ä¾éè¦æäºé
ç½®å¼æè
åå§å"
+"åæ°ï¼ç¨ <literal><param></literal> å
ç´ æ¥ä¼ éã"
-#. Tag: programlisting
-#: basic_mapping.xml:564
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
-" <param name=\"table\">uid_table</param>\n"
-" <param name=\"column\">next_hi_value_column</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:566
-#, fuzzy, no-c-format
-msgid ""
"All generators implement the interface <literal>org.hibernate.id."
"IdentifierGenerator</literal>. This is a very simple interface. Some "
"applications can choose to provide their own specialized implementations, "
"however, Hibernate provides a range of built-in implementations. The "
"shortcut names for the built-in generators are as follows:"
msgstr ""
-"ææççæå¨é½å®ç°<literal>org.hibernate.id.IdentifierGenerator</literal>æ¥"
-"å£ã è¿æ¯ä¸ä¸ªé常ç®åçæ¥å£ï¼æäºåºç¨ç¨åºå¯ä»¥éæ©æä¾ä»ä»¬èªå·±ç¹å®çå®ç°ãå½"
-"ç¶ï¼ Hibernateæä¾äºå¾å¤å
ç½®çå®ç°ãä¸é¢æ¯ä¸äºå
ç½®çæå¨çå¿«æ·ååï¼ "
-"<placeholder-1/>"
+"ææççæå¨é½å®ç° <literal>org.hibernate.id.IdentifierGenerator</literal> æ¥"
+"å£ãè¿æ¯ä¸ä¸ªé常ç®åçæ¥å£ï¼æäºåºç¨ç¨åºå¯ä»¥éæ©æä¾ä»ä»¬èªå·±ç¹å®çå®ç°ãå½"
+"ç¶ï¼Hibernate æä¾äºå¾å¤å
ç½®çå®ç°ãä¸é¢æ¯ä¸äºå
ç½®çæå¨çå¿«æ·ååï¼ "
-#. Tag: literal
-#: basic_mapping.xml:574
+#. Tag: term
#, no-c-format
-msgid "increment"
-msgstr "increment"
+msgid "<literal>increment</literal>"
+msgstr "<literal>increment</literal>"
#. Tag: para
-#: basic_mapping.xml:576
#, no-c-format
msgid ""
"generates identifiers of type <literal>long</literal>, <literal>short</"
@@ -1096,54 +805,48 @@
"process is inserting data into the same table. <emphasis>Do not use in a "
"cluster.</emphasis>"
msgstr ""
-"ç¨äºä¸º<literal>long</literal>, <literal>short</literal>æè
<literal>int</"
-"literal>ç±»åçæ å¯ä¸æ è¯ãåªæå¨æ²¡æå
¶ä»è¿ç¨å¾åä¸å¼ è¡¨ä¸æå
¥æ°æ®æ¶æè½ä½¿"
-"ç¨ã <emphasis>å¨é群ä¸ä¸è¦ä½¿ç¨ã</emphasis>"
+"ç¨äºä¸º <literal>long</literal>, <literal>short</literal> æè
<literal>int</"
+"literal> ç±»åçæ å¯ä¸æ è¯ãåªæå¨æ²¡æå
¶ä»è¿ç¨å¾åä¸å¼ è¡¨ä¸æå
¥æ°æ®æ¶æè½ä½¿"
+"ç¨ã<emphasis>å¨é群ä¸ä¸è¦ä½¿ç¨ã</emphasis>"
-#. Tag: literal
-#: basic_mapping.xml:585
+#. Tag: term
#, no-c-format
-msgid "identity"
-msgstr "identity"
+msgid "<literal>identity</literal>"
+msgstr "<literal>identity</literal>"
#. Tag: para
-#: basic_mapping.xml:587
#, no-c-format
msgid ""
"supports identity columns in DB2, MySQL, MS SQL Server, Sybase and "
"HypersonicSQL. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>."
msgstr ""
-"对DB2,MySQL, MS SQL Server, SybaseåHypersonicSQLçå
ç½®æ è¯å段æä¾æ¯æã è¿"
-"åçæ è¯ç¬¦æ¯<literal>long</literal>, <literal>short</literal> æè
"
-"<literal>int</literal>ç±»åçã"
+"对 DB2ï¼MySQLï¼MS SQL Serverï¼Sybase å HypersonicSQL çå
ç½®æ è¯å段æä¾æ¯"
+"æãè¿åçæ è¯ç¬¦æ¯ <literal>long</literal>ï¼<literal>short</literal> æè
"
+"<literal>int</literal> ç±»åçã"
-#. Tag: literal
-#: basic_mapping.xml:595
+#. Tag: term
#, no-c-format
-msgid "sequence"
-msgstr "sequence"
+msgid "<literal>sequence</literal>"
+msgstr "<literal>sequence</literal>"
#. Tag: para
-#: basic_mapping.xml:597
#, no-c-format
msgid ""
"uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in "
"Interbase. The returned identifier is of type <literal>long</literal>, "
"<literal>short</literal> or <literal>int</literal>"
msgstr ""
-"å¨DB2,PostgreSQL, Oracle, SAP DB, McKoiä¸ä½¿ç¨åºåï¼sequence)ï¼ èå¨Interbase"
-"ä¸ä½¿ç¨çæå¨(generator)ãè¿åçæ è¯ç¬¦æ¯<literal>long</literal>, "
-"<literal>short</literal>æè
<literal>int</literal>ç±»åçã"
+"å¨ DB2ï¼PostgreSQLï¼Oracleï¼SAP DBï¼McKoi ä¸ä½¿ç¨åºåï¼sequenceï¼ï¼ èå¨ "
+"Interbase ä¸ä½¿ç¨çæå¨ï¼generatorï¼ãè¿åçæ è¯ç¬¦æ¯ <literal>long</literal>ï¼"
+"<literal>short</literal> æè
<literal>int</literal> ç±»åçã"
-#. Tag: literal
-#: basic_mapping.xml:605
+#. Tag: term
#, no-c-format
-msgid "hilo"
-msgstr "hilo"
+msgid "<literal>hilo</literal>"
+msgstr "<literal>hilo</literal>"
#. Tag: para
-#: basic_mapping.xml:607
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
@@ -1153,132 +856,116 @@
"hi/lo algorithm generates identifiers that are unique only for a particular "
"database."
msgstr ""
-"使ç¨ä¸ä¸ªé«/ä½ä½ç®æ³é«æççæ<literal>long</literal>, <literal>short</"
-"literal> æè
<literal>int</literal>ç±»åçæ è¯ç¬¦ãç»å®ä¸ä¸ªè¡¨ååæ®µï¼é»è®¤åå«"
-"æ¯ <literal>hibernate_unique_key</literal> å<literal>next_hi</literal>ï¼ä½ä¸º"
-"é«ä½å¼çæ¥æºã é«/ä½ä½ç®æ³çæçæ è¯ç¬¦åªå¨ä¸ä¸ªç¹å®çæ°æ®åºä¸æ¯å¯ä¸çã"
+"使ç¨ä¸ä¸ªé«/ä½ä½ç®æ³é«æççæ <literal>long</literal>ï¼<literal>short</"
+"literal> æè
<literal>int</literal> ç±»åçæ è¯ç¬¦ãç»å®ä¸ä¸ªè¡¨ååæ®µï¼é»è®¤åå«"
+"æ¯ <literal>hibernate_unique_key</literal> å <literal>next_hi</literal>ï¼ä½"
+"为é«ä½å¼çæ¥æºãé«/ä½ä½ç®æ³çæçæ è¯ç¬¦åªå¨ä¸ä¸ªç¹å®çæ°æ®åºä¸æ¯å¯ä¸çã"
-#. Tag: literal
-#: basic_mapping.xml:617
+#. Tag: term
#, no-c-format
-msgid "seqhilo"
-msgstr "seqhilo"
+msgid "<literal>seqhilo</literal>"
+msgstr "<literal>seqhilo</literal>"
#. Tag: para
-#: basic_mapping.xml:619
#, no-c-format
msgid ""
"uses a hi/lo algorithm to efficiently generate identifiers of type "
"<literal>long</literal>, <literal>short</literal> or <literal>int</literal>, "
"given a named database sequence."
msgstr ""
-"使ç¨ä¸ä¸ªé«/ä½ä½ç®æ³æ¥é«æççæ<literal>long</literal>, <literal>short</"
-"literal> æè
<literal>int</literal>ç±»åçæ è¯ç¬¦ï¼ç»å®ä¸ä¸ªæ°æ®åºåºå"
+"使ç¨ä¸ä¸ªé«/ä½ä½ç®æ³æ¥é«æççæ <literal>long</literal>ï¼<literal>short</"
+"literal> æè
<literal>int</literal> ç±»åçæ è¯ç¬¦ï¼ç»å®ä¸ä¸ªæ°æ®åºåºå"
"ï¼sequence)çååã"
-#. Tag: literal
-#: basic_mapping.xml:627
+#. Tag: term
#, no-c-format
-msgid "uuid"
-msgstr "uuid"
+msgid "<literal>uuid</literal>"
+msgstr "<literal>uuid</literal>"
#. Tag: para
-#: basic_mapping.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses a 128-bit UUID algorithm to generate identifiers of type string that "
"are unique within a network (the IP address is used). The UUID is encoded as "
"a string of 32 hexadecimal digits in length."
msgstr ""
-"ç¨ä¸ä¸ª128-bitçUUIDç®æ³çæå符串类åçæ è¯ç¬¦ï¼ è¿å¨ä¸ä¸ªç½ç»ä¸æ¯å¯ä¸çï¼ä½¿ç¨"
-"äºIPå°åï¼ãUUID被ç¼ç 为ä¸ä¸ª32ä½16è¿å¶æ°åçå符串ã"
+"ç¨ä¸ä¸ª 128-bit ç UUID ç®æ³çæå符串类åçæ è¯ç¬¦ï¼è¿å¨ä¸ä¸ªç½ç»ä¸æ¯å¯ä¸çï¼ä½¿"
+"ç¨äº IP å°åï¼ãUUID 被ç¼ç 为ä¸ä¸ª 32 ä½ 16 è¿å¶æ°åçå符串ã "
-#. Tag: literal
-#: basic_mapping.xml:637
+#. Tag: term
#, no-c-format
-msgid "guid"
-msgstr "guid"
+msgid "<literal>guid</literal>"
+msgstr "<literal>guid</literal>"
#. Tag: para
-#: basic_mapping.xml:639
#, no-c-format
msgid "uses a database-generated GUID string on MS SQL Server and MySQL."
-msgstr "å¨MS SQL Server å MySQL ä¸ä½¿ç¨æ°æ®åºçæçGUIDå符串ã"
+msgstr "å¨ MS SQL Server å MySQL ä¸ä½¿ç¨æ°æ®åºçæç GUID å符串ã"
-#. Tag: literal
-#: basic_mapping.xml:645
+#. Tag: term
#, no-c-format
-msgid "native"
-msgstr "native"
+msgid "<literal>native</literal>"
+msgstr "<literal>native</literal>"
#. Tag: para
-#: basic_mapping.xml:647
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"selects <literal>identity</literal>, <literal>sequence</literal> or "
"<literal>hilo</literal> depending upon the capabilities of the underlying "
"database."
msgstr ""
-"æ ¹æ®åºå±æ°æ®åºçè½åéæ©<literal>identity</literal>, <literal>sequence</"
-"literal> æè
<literal>hilo</literal>ä¸çä¸ä¸ªã"
+"æ ¹æ®åºå±æ°æ®åºçè½åéæ© <literal>identity</literal>ã<literal>sequence</"
+"literal> æè
<literal>hilo</literal> ä¸çä¸ä¸ªã"
-#. Tag: literal
-#: basic_mapping.xml:655
+#. Tag: term
#, no-c-format
-msgid "assigned"
-msgstr "assigned"
+msgid "<literal>assigned</literal>"
+msgstr "<literal>assigned</literal>"
#. Tag: para
-#: basic_mapping.xml:657
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"lets the application assign an identifier to the object before <literal>save"
"()</literal> is called. This is the default strategy if no <literal><"
"generator></literal> element is specified."
msgstr ""
-"让åºç¨ç¨åºå¨<literal>save()</literal>ä¹å为对象åé
ä¸ä¸ªæ 示符ãè¿æ¯ "
-"<literal><generator></literal>å
ç´ æ²¡ææå®æ¶çé»è®¤çæçç¥ã"
+"让åºç¨ç¨åºå¨è°ç¨ <literal>save()</literal> ä¹å为对象åé
ä¸ä¸ªæ è¯ç¬¦ãè¿æ¯ "
+"<literal><generator></literal> å
ç´ æ²¡ææå®æ¶çé»è®¤çæçç¥ã"
-#. Tag: literal
-#: basic_mapping.xml:665
+#. Tag: term
#, no-c-format
-msgid "select"
-msgstr "select"
+msgid "<literal>select</literal>"
+msgstr "<literal>select</literal>"
#. Tag: para
-#: basic_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"retrieves a primary key, assigned by a database trigger, by selecting the "
"row by some unique key and retrieving the primary key value."
-msgstr "éè¿æ°æ®åºè§¦åå¨éæ©ä¸äºå¯ä¸ä¸»é®çè¡å¹¶è¿å主é®å¼æ¥åé
ä¸ä¸ªä¸»é®ã"
+msgstr "éè¿æ°æ®åºè§¦åå¨éæ©ä¸äºå¯ä¸ä¸»é®çè¡å¹¶è¿å主é®å¼æ¥åé
ä¸ä¸ªä¸»é®ã "
-#. Tag: literal
-#: basic_mapping.xml:674
+#. Tag: term
#, no-c-format
-msgid "foreign"
-msgstr "foreign"
+msgid "<literal>foreign</literal>"
+msgstr "<literal>foreign</literal>"
#. Tag: para
-#: basic_mapping.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"uses the identifier of another associated object. It is usually used in "
"conjunction with a <literal><one-to-one></literal> primary key "
"association."
msgstr ""
-"使ç¨å¦å¤ä¸ä¸ªç¸å
³èçå¯¹è±¡çæ è¯ç¬¦ãé常å<literal><one-to-one></literal>"
-"èåèµ·æ¥ä½¿ç¨ã"
+"使ç¨å¦å¤ä¸ä¸ªç¸å
³èçå¯¹è±¡çæ è¯ç¬¦ãå®é常å <literal><one-to-one></"
+"literal> èåèµ·æ¥ä½¿ç¨ã"
-#. Tag: literal
-#: basic_mapping.xml:683
+#. Tag: term
#, no-c-format
-msgid "sequence-identity"
-msgstr "sequence-identity"
+msgid "<literal>sequence-identity</literal>"
+msgstr "<literal>sequence-identity</literal>"
#. Tag: para
-#: basic_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"a specialized sequence generation strategy that utilizes a database sequence "
"for the actual value generation, but combines this with JDBC3 "
@@ -1287,21 +974,18 @@
"drivers targeted for JDK 1.4. Comments on these insert statements are "
"disabled due to a bug in the Oracle drivers."
msgstr ""
-"ä¸ç§ç¹å«çåºåçæçç¥,ä½¿ç¨æ°æ®åºåºåæ¥çæå®é
å¼,ä½å°å®åJDBC3ç"
-"getGeneratedKeysç»åå¨ä¸èµ·,使å¾å¨æå
¥è¯å¥æ§è¡çæ¶åå°±è¿åçæçå¼ãç®å为æ¢åª"
-"æé¢åJDK 1.4çOracle 10g驱卿¯æè¿ä¸çç¥ã注æï¼å 为Oracle驱å¨ç¨åºçä¸ä¸ª"
-"bugï¼è¿äºæå
¥è¯å¥ç注é被å
³éäºãï¼åæï¼Note comments on these insert "
-"statements are disabled due to a bug in the Oracle drivers.ï¼"
+"ä¸ç§ç¹å«çåºåçæçç¥ï¼å®ä½¿ç¨æ°æ®åºåºåæ¥çæå®é
å¼ï¼ä½å°å®å JDBC3 ç "
+"getGeneratedKeys ç»åå¨ä¸èµ·ï¼ä½¿å¾å¨æå
¥è¯å¥æ§è¡çæ¶åå°±è¿åçæçå¼ãç®å为æ¢"
+"åªæé¢å JDK 1.4 ç Oracle 10g 驱卿¯æè¿ä¸çç¥ãç±äº Oracle 驱å¨ç¨åºçä¸ä¸ª "
+"bugï¼è¿äºæå
¥è¯å¥ç注é被å
³éäºã"
#. Tag: title
-#: basic_mapping.xml:702
#, no-c-format
msgid "Hi/lo algorithm"
msgstr "é«/ä½ä½ç®æ³ï¼Hi/Lo Algorithmï¼"
#. Tag: para
-#: basic_mapping.xml:703
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>hilo</literal> and <literal>seqhilo</literal> generators "
"provide two alternate implementations of the hi/lo algorithm. The first "
@@ -1309,78 +993,49 @@
"available \"hi\" value. Where supported, the second uses an Oracle-style "
"sequence."
msgstr ""
-"<literal>hilo</literal> å <literal>seqhilo</literal>çæå¨ç»åºäºä¸¤ç§hi/loç®"
-"æ³çå®ç°ï¼ è¿æ¯ä¸ç§å¾ä»¤äººæ»¡æçæ è¯ç¬¦çæç®æ³ã第ä¸ç§å®ç°éè¦ä¸ä¸ªâç¹æ®âçæ°æ®"
-"åºè¡¨æ¥ä¿åä¸ä¸ä¸ªå¯ç¨çâhiâå¼ã 第äºç§å®ç°ä½¿ç¨ä¸ä¸ªOracle飿 ¼çåºåï¼å¨è¢«æ¯æç"
-"æ
åµä¸ï¼ã"
+"<literal>hilo</literal> å <literal>seqhilo</literal> çæå¨ç»åºäºä¸¤ç§ hi/lo "
+"ç®æ³çå®ç°ï¼ è¿æ¯ä¸ç§å¾ä»¤äººæ»¡æçæ è¯ç¬¦çæç®æ³ã第ä¸ç§å®ç°éè¦ä¸ä¸ªâç¹æ®âçæ°"
+"æ®åºè¡¨æ¥ä¿åä¸ä¸ä¸ªå¯ç¨çâhiâå¼ã 第äºç§å®ç°ä½¿ç¨ä¸ä¸ª Oracle 飿 ¼çåºåï¼å¨è¢«æ¯"
+"æçæ
åµä¸ï¼ã "
-#. Tag: programlisting
-#: basic_mapping.xml:710
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"hilo\">\n"
-" <param name=\"table\">hi_value</param>\n"
-" <param name=\"column\">next_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:712
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
-" <generator class=\"seqhilo\">\n"
-" <param name=\"sequence\">hi_value</param>\n"
-" <param name=\"max_lo\">100</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:714
-#, fuzzy, no-c-format
-msgid ""
"Unfortunately, you cannot use <literal>hilo</literal> when supplying your "
"own <literal>Connection</literal> to Hibernate. When Hibernate uses an "
"application server datasource to obtain connections enlisted with JTA, you "
"must configure the <literal>hibernate.transaction.manager_lookup_class</"
"literal>."
msgstr ""
-"å¾ä¸å¹¸ï¼ä½ å¨ä¸ºHibernateèªè¡æä¾<literal>Connection</literal>æ¶æ æ³ä½¿ç¨"
-"<literal>hilo</literal>ã å½Hibernate使ç¨JTAè·ååºç¨æå¡å¨çæ°æ®æºè¿æ¥æ¶,ä½ å¿
"
-"é¡»æ£ç¡®å°é
ç½® <literal>hibernate.transaction.manager_lookup_class</literal>ã"
+"å¯æçæ¯ï¼ä½ å¨ä¸º Hibernate èªè¡æä¾ <literal>Connection</literal> æ¶æ æ³ä½¿ç¨ "
+"<literal>hilo</literal>ã å½ Hibernate ä½¿ç¨ JTA è·ååºç¨æå¡å¨çæ°æ®æºè¿æ¥"
+"æ¶ï¼ä½ å¿
é¡»æ£ç¡®å°é
ç½® <literal>hibernate.transaction.manager_lookup_class</"
+"literal>ã"
#. Tag: title
-#: basic_mapping.xml:723
#, no-c-format
msgid "UUID algorithm"
-msgstr "UUIDç®æ³ï¼UUID Algorithm ï¼"
+msgstr "UUID ç®æ³ï¼UUID Algorithm ï¼"
#. Tag: para
-#: basic_mapping.xml:724
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The UUID contains: IP address, startup time of the JVM that is accurate to a "
"quarter second, system time and a counter value that is unique within the "
"JVM. It is not possible to obtain a MAC address or memory address from Java "
"code, so this is the best option without using JNI."
msgstr ""
-"UUIDå
å«ï¼IPå°åï¼JVMçå¯å¨æ¶é´ï¼ç²¾ç¡®å°1/4ç§ï¼ï¼ç³»ç»æ¶é´åä¸ä¸ªè®¡æ°å¨å¼ï¼å¨JVM"
-"ä¸å¯ä¸ï¼ã å¨Java代ç ä¸ä¸å¯è½è·å¾MACå°åæè
å
åå°åï¼æä»¥è¿å·²ç»æ¯æä»¬å¨ä¸ä½¿"
-"ç¨JNIçåæä¸çè½åçæå¥½å®ç°äºã"
+"UUID å
å«ï¼IP å°åãJVM çå¯å¨æ¶é´ï¼ç²¾ç¡®å° 1/4 ç§ï¼ãç³»ç»æ¶é´åä¸ä¸ªè®¡æ°å¨å¼"
+"ï¼å¨ JVM ä¸å¯ä¸ï¼ã å¨ Java 代ç ä¸ä¸å¯è½è·å¾ MAC å°åæè
å
åå°åï¼æä»¥è¿å·²ç»"
+"æ¯æä»¬å¨ä¸ä½¿ç¨ JNI çåæä¸çè½åçæå¥½å®ç°äºã"
#. Tag: title
-#: basic_mapping.xml:733
#, no-c-format
msgid "Identity columns and sequences"
msgstr "æ è¯å段ååºåï¼Identity columns and Sequencesï¼"
#. Tag: para
-#: basic_mapping.xml:734
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For databases that support identity columns (DB2, MySQL, Sybase, MS SQL), "
"you can use <literal>identity</literal> key generation. For databases that "
@@ -1388,54 +1043,31 @@
"can use <literal>sequence</literal> style key generation. Both of these "
"strategies require two SQL queries to insert a new object. For example:"
msgstr ""
-"对äºå
鍿¯ææ è¯åæ®µçæ°æ®åº(DB2,MySQL,Sybase,MS SQL)ï¼ä½ å¯ä»¥ä½¿ç¨"
-"<literal>identity</literal>å
³é®åçæã 对äºå
鍿¯æåºåçæ°æ®åºï¼DB2,"
-"Oracle, PostgreSQL, Interbase, McKoi,SAP DB), ä½ å¯ä»¥ä½¿ç¨<literal>sequence</"
-"literal>飿 ¼çå
³é®åçæã è¿ä¸¤ç§æ¹å¼å¯¹äºæå
¥ä¸ä¸ªæ°ç对象é½éè¦ä¸¤æ¬¡SQLæ¥è¯¢ã"
+"对äºå
鍿¯ææ è¯åæ®µçæ°æ®åºï¼DB2ãMySQLãSybase å MS SQLï¼ï¼ä½ å¯ä»¥ä½¿ç¨ "
+"<literal>identity</literal> å
³é®åçæã对äºå
鍿¯æåºåçæ°æ®åºï¼DB2ã"
+"OracleãPostgreSQLãInterbaseãMcKoi å SAP DBï¼ï¼ä½ å¯ä»¥ä½¿ç¨ "
+"<literal>sequence</literal> 飿 ¼çå
³é®åçæãè¿ä¸¤ç§æ¹å¼å¯¹äºæå
¥ä¸ä¸ªæ°ç对象"
+"é½éè¦ä¸¤æ¬¡ SQL æ¥è¯¢ãä¾å¦ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:742
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"sequence\">\n"
-" <param name=\"sequence\">person_id_sequence</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:744
-#, no-c-format
-msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0"
-"\">\n"
-" <generator class=\"identity\"/>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:746
-#, fuzzy, no-c-format
-msgid ""
"For cross-platform development, the <literal>native</literal> strategy will, "
"depending on the capabilities of the underlying database, choose from the "
"<literal>identity</literal>, <literal>sequence</literal> and <literal>hilo</"
"literal> strategies."
msgstr ""
-"对äºè·¨å¹³å°å¼åï¼<literal>native</literal>çç¥ä¼ä»<literal>identity</"
-"literal>, <literal>sequence</literal> å<literal>hilo</literal>ä¸è¿è¡éæ©ï¼é"
-"æ©åªä¸ä¸ªï¼è¿åå³äºåºå±æ°æ®åºçæ¯æè½åã"
+"对äºè·¨å¹³å°å¼åï¼<literal>native</literal> çç¥ä¼ä» <literal>identity</"
+"literal>ã<literal>sequence</literal> å <literal>hilo</literal> ä¸è¿è¡éæ©ï¼"
+"éæ©åªä¸ä¸ªï¼è¿åå³äºåºå±æ°æ®åºçæ¯æè½åã"
#. Tag: title
-#: basic_mapping.xml:754
#, no-c-format
msgid "Assigned identifiers"
msgstr "ç¨åºåé
çæ è¯ç¬¦ï¼Assigned Identifiersï¼"
#. Tag: para
-#: basic_mapping.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the application to assign identifiers, as opposed to having "
"Hibernate generate them, you can use the <literal>assigned</literal> "
@@ -1445,15 +1077,14 @@
"behavior if you do not specify a <literal><generator></literal> "
"element."
msgstr ""
-"å¦æä½ éè¦åºç¨ç¨åºåé
ä¸ä¸ªæ 示符ï¼èéHibernateæ¥çæï¼ï¼ä½ å¯ä»¥ä½¿ç¨"
+"å¦æä½ éè¦åºç¨ç¨åºåé
ä¸ä¸ªæ 示符ï¼èé Hibernate æ¥çæï¼ï¼ä½ å¯ä»¥ä½¿ç¨ "
"<literal>assigned</literal> çæå¨ãè¿ç§ç¹æ®ççæå¨ä¼ä½¿ç¨å·²ç»åé
ç»å¯¹è±¡çæ "
"è¯ç¬¦å±æ§çæ è¯ç¬¦å¼ã è¿ä¸ªçæå¨ä½¿ç¨ä¸ä¸ªèªç¶é®ï¼natural keyï¼æå䏿ä¹çåï¼"
"è¯æ³¨ï¼ä½ä¸ºä¸»é®ï¼è䏿¯ä½¿ç¨ä¸ä¸ªä»£çé®ï¼ surrogate keyï¼æ²¡æå䏿ä¹çåï¼è¯"
-"注ï¼ãè¿æ¯æ²¡ææå®<literal><generator></literal>å
ç´ æ¶çé»è®¤è¡ä¸º"
+"注ï¼ãè¿æ¯æ²¡ææå® <literal><generator></literal> å
ç´ æ¶çé»è®¤è¡ä¸ºã"
#. Tag: para
-#: basic_mapping.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>assigned</literal> generator makes Hibernate use "
"<literal>unsaved-value=\"undefined\"</literal>. This forces Hibernate to go "
@@ -1461,57 +1092,42 @@
"there is a version or timestamp property, or you define <literal>Interceptor."
"isUnsaved()</literal>."
msgstr ""
-"å½éæ©<literal>assigned</literal>çæå¨æ¶ï¼é¤éæä¸ä¸ªversionætimestamp屿§ï¼"
-"æè
ä½ å®ä¹äº <literal>Interceptor.isUnsaved()</literal>ï¼å¦åéè¦è®©Hiberante"
-"ä½¿ç¨ <literal>unsaved-value=\"undefined\"</literal>ï¼å¼ºå¶Hibernatetæ¥è¯¢æ°æ®åº"
-"æ¥ç¡®å®ä¸ä¸ªå®ä¾æ¯ç¬æ¶çï¼transientï¼ è¿æ¯è±ç®¡çï¼detachedï¼ã"
+"å½éæ© <literal>assigned</literal> çæå¨æ¶ï¼é¤éæä¸ä¸ª version æ timestamp "
+"屿§ï¼æè
ä½ å®ä¹äº <literal>Interceptor.isUnsaved()</literal>ï¼å¦åéè¦è®© "
+"Hiberante ä½¿ç¨ <literal>unsaved-value=\"undefined\"</literal>ï¼å¼ºå¶ "
+"Hibernatet æ¥è¯¢æ°æ®åºæ¥ç¡®å®ä¸ä¸ªå®ä¾æ¯ç¬æ¶çï¼transientï¼ è¿æ¯è±ç®¡ç"
+"ï¼detachedï¼ã"
#. Tag: title
-#: basic_mapping.xml:774
#, no-c-format
msgid "Primary keys assigned by triggers"
msgstr "触åå¨å®ç°ç主é®çæå¨ï¼Primary keys assigned by triggersï¼"
#. Tag: para
-#: basic_mapping.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not generate DDL with triggers. It is for legacy schemas only."
-msgstr "ä»
ä»
ç¨äºéççschemaä¸ (Hibernateä¸è½ä½¿ç¨è§¦åå¨çæDDL)ã"
+msgstr "ä»
ä»
ç¨äºéçç schema ä¸ï¼Hibernate ä¸è½ç¨è§¦åå¨çæ DDLï¼ã"
-#. Tag: programlisting
-#: basic_mapping.xml:779
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
-" <generator class=\"select\">\n"
-" <param name=\"key\">socialSecurityNumber</param>\n"
-" </generator>\n"
-"</id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:781
-#, fuzzy, no-c-format
-msgid ""
"In the above example, there is a unique valued property named "
"<literal>socialSecurityNumber</literal>. It is defined by the class, as a "
"natural key and a surrogate key named <literal>person_id</literal>, whose "
"value is generated by a trigger."
msgstr ""
-"å¨ä¸é¢çä¾åä¸ï¼ç±»å®ä¹äºä¸ä¸ªå½å为<literal>socialSecurityNumber</literal>çå¯"
-"ä¸å¼å±æ§ï¼ 宿¯ä¸ä¸ªèªç¶é®ï¼natural keyï¼ï¼å½å为<literal>person_id</literal>"
-"ç代çé®ï¼surrogate keyï¼ çå¼ç±è§¦åå¨çæã"
+"å¨ä¸é¢çä¾åä¸ï¼ç±»å®ä¹äºä¸ä¸ªå½å为 <literal>socialSecurityNumber</literal> ç"
+"å
·æå¯ä¸å¼ç屿§ï¼å®æ¯ä¸ä¸ªèªç¶é®ï¼natural keyï¼ï¼å½å为 <literal>person_id</"
+"literal> ç代çé®ï¼surrogate keyï¼çå¼ç±è§¦åå¨çæã"
#. Tag: title
-#: basic_mapping.xml:793
#, no-c-format
msgid "Enhanced identifier generators"
-msgstr "Enhanced identifier generators"
+msgstr "å¢å¼ºçæ è¯ç¬¦çæå¨"
#. Tag: para
-#: basic_mapping.xml:795
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Starting with release 3.2.3, there are 2 new generators which represent a re-"
"thinking of 2 different aspects of identifier generation. The first aspect "
@@ -1521,17 +1137,13 @@
"the named generators described above, starting in 3.3.x. However, they are "
"included in the current releases and can be referenced by FQN."
msgstr ""
-"Starting with release 3.2.3, there are 2 new generators which represent a re-"
-"thinking of 2 different aspects of identifier generation. The first aspect "
-"is database portability; the second is optimization (not having to query the "
-"database for every request for a new identifier value). These two new "
-"generators are intended to take the place of some of the named generators "
-"described above (starting in 3.3.x); however, they are included in the "
-"current releases and can be referenced by FQN."
+"ä» 3.2.3 çæ¬å¼å§ï¼æä¸¤ä¸ªä»£è¡¨ä¸åæ è¯ç¬¦çææ¦å¿µçæ°ççæå¨ã第ä¸ä¸ªæ¦å¿µæ¯æ°æ®"
+"åºç§»æ¤æ§ï¼ç¬¬äºä¸ªæ¯ä¼åãä¼åè¡¨ç¤ºä½ ä¸é对æ¯ä¸ªæ°æ è¯ç¬¦ç请æ±é½æ¥è¯¢æ°æ®åºãä» "
+"3.3.x å¼å§ï¼è¿ä¸¤ä¸ªæ°ççæå¨é½æ¯ç¨æ¥å代ä¸é¢æè¿°ççæå¨çãç¶èï¼å®ä»¬ä¹å
æ¬"
+"å¨å½åçæ¬éä¸å¯ä»¥ç± FQN è¿è¡å¼ç¨ã"
#. Tag: para
-#: basic_mapping.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first of these new generators is <literal>org.hibernate.id.enhanced."
"SequenceStyleGenerator</literal> which is intended, firstly, as a "
@@ -1550,99 +1162,81 @@
"with its table-based generators. This generator has a number of "
"configuration parameters:"
msgstr ""
-"The first of these new generators is <literal>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</literal> which is intended firstly as a replacement "
-"for the <literal>sequence</literal> generator and secondly as a better "
-"portability generator than <literal>native</literal> (because "
-"<literal>native</literal> (generally) chooses between <literal>identity</"
-"literal> and <literal>sequence</literal> which have largely different "
-"semantics which can cause subtle isssues in applications eyeing "
-"portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
-"literal> however achieves portability in a different manner. It chooses "
-"between using a table or a sequence in the database to store its "
-"incrementing values depending on the capabilities of the dialect being used. "
-"The difference between this and <literal>native</literal> is that table-"
-"based and sequence-based storage have the same exact semantic (in fact "
-"sequences are exactly what Hibernate tries to emmulate with its table-based "
-"generators). This generator has a number of configuration parameters: "
-"<placeholder-1/>"
+"è¿äºçæå¨ç第ä¸ä¸ªæ¯ <literal>org.hibernate.id.enhanced."
+"SequenceStyleGenerator</literal>ï¼é¦å
ï¼å®æ¯ä½ä¸º <literal>sequence</literal> "
+"çæå¨çæ¿ä»£ç©ï¼å
¶æ¬¡ï¼å®æ¯æ¯ <literal>native</literal> å
·ææ´å¥½ç§»æ¤æ§ççæ"
+"å¨ãè¿æ¯å 为 <literal>native</literal> éå¸¸å¨ <literal>identity</literal> å "
+"<literal>sequence</literal> ä¹é´éæ©ï¼å®æå·®å«å¾å¤§ç semanticï¼å¨ç§»æ¤æ¶ä¼å¯¼è´"
+"æ½å¨çé®é¢ãç¶èï¼<literal>org.hibernate.id.enhanced.SequenceStyleGenerator</"
+"literal> 以ä¸åçæ¹å¼å®ç°ç§»æ¤æ§ã宿 ¹æ®æä½¿ç¨çæ¹è¨çè½åï¼å¨æ°æ®åºè¡¨æåºåä¹"
+"é´éæ©ä»¥åå¨å
¶å¢éãè¿å <literal>native</literal> çåºå«æ¯åºäºè¡¨æåºåçåå¨"
+"å
·ææ°å¥½ç¸åç semanticãå®é
ä¸ï¼åºåå°±æ¯ Hibernate è¯å¾ç¨åºäºè¡¨ççæå¨æ¥æ¨¡"
+"æçãè¿ä¸ªçæå¨æå¦ä¸çé
ç½®åæ°ï¼"
#. Tag: para
-#: basic_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sequence_name</literal> (optional, defaults to "
"<literal>hibernate_sequence</literal>): the name of the sequence or table to "
"be used."
msgstr ""
-"<literal>sequence_name</literal> (optional, defaults to "
-"<literal>hibernate_sequence</literal>): The name of the sequence (or table) "
-"to be used."
+"<literal>sequence_name</literal>ï¼å¯é â é»è®¤ä¸º <literal>hibernate_sequence</"
+"literal>ï¼ï¼åºåæè¡¨çåå"
#. Tag: para
-#: basic_mapping.xml:823
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional, defaults to <literal>1</"
"literal>): the initial value to be retrieved from the sequence/table. In "
"sequence creation terms, this is analogous to the clause typically named "
"\"STARTS WITH\"."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the sequence/table. In "
-"sequence creation terms, this is analogous to the clause typical named "
-"\"STARTS WITH\"."
+"<literal>initial_value</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>1</literal>ï¼ï¼ä»åº"
+"å/表éè·åçåå§å¼ãæç
§åºååå»ºçæ¯è¯ï¼è¿çåäºåå¥ \"STARTS WITH\"ã"
#. Tag: para
-#: basic_mapping.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): the value by which subsequent calls to the sequence/table should "
"differ. In sequence creation terms, this is analogous to the clause "
"typically named \"INCREMENT BY\"."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the sequence/table should "
-"differ. In sequence creation terms, this is analogous to the clause typical "
-"named \"INCREMENT BY\"."
+"<literal>increment_size</literal>ï¼å¯é - 缺ç为 <literal>1</literal>ï¼ï¼å¯¹åº"
+"å/表çè°ç¨åºè¯¥åºåçå¼ãæç
§åºååå»ºçæ¯è¯ï¼è¿çåäºåå¥ \"INCREMENT BY\"ã"
#. Tag: para
-#: basic_mapping.xml:837
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force_table_use</literal> (optional - defaults to <literal>false</"
"literal>): should we force the use of a table as the backing structure even "
"though the dialect might support sequence?"
msgstr ""
-"<literal>force_table_use</literal> (optional, defaults to <literal>false</"
-"literal>): Should we force the use of a table as the backing structure even "
-"though the dialect might support sequence?"
+"<literal>force_table_use</literal>ï¼å¯é - 缺ç为 <literal>false</"
+"literal>ï¼ï¼å³ä½¿æ¹è¨å¯è½æ¯æåºåï¼æ¯å¦ä¹åºè¯¥å¼ºå¶æè¡¨ç¨ä½åå°ç»æã"
#. Tag: para
-#: basic_mapping.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column</literal> (optional - defaults to <literal>next_val</"
"literal>): only relevant for table structures, it is the name of the column "
"on the table which is used to hold the value."
msgstr ""
-"<literal>value_column</literal> (optional, defaults to <literal>next_val</"
-"literal>): Only relevant for table structures! The name of the column on the "
-"table which is used to hold the value."
+"<literal>value_column</literal>ï¼å¯é - 缺ç为 <literal>next_val</"
+"literal>ï¼ï¼åªåè¡¨ç»æç¸å
³ï¼å®æ¯ç¨äºä¿åå¼çåæ®µçåç§°ã"
#. Tag: para
-#: basic_mapping.xml:851
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal>none</"
-"literal>): See"
+"literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" /"
+">"
msgstr ""
-"<literal>cascade</literal> (å¯é -é»è®¤æ¯<literal>none</literal>): 级èçç±»å"
+"<literal>optimizer</literal>ï¼å¯é â é»è®¤æ¯<literal>none</literal>ï¼ï¼è¯·åè "
+"<xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />ã"
#. Tag: para
-#: basic_mapping.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The second of these new generators is <literal>org.hibernate.id.enhanced."
"TableGenerator</literal>, which is intended, firstly, as a replacement for "
@@ -1655,147 +1249,125 @@
"multiple distinctly keyed rows. This generator has a number of configuration "
"parameters:"
msgstr ""
-"The second of these new generators is <literal>org.hibernate.id.enhanced."
-"TableGenerator</literal> which is intended firstly as a replacement for the "
-"<literal>table</literal> generator (although it actually functions much more "
-"like <literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal>) and "
-"secondly as a re-implementation of <literal>org.hibernate.id."
-"MultipleHiLoPerTableGenerator</literal> utilizing the notion of pluggable "
-"optimiziers. Essentially this generator defines a table capable of holding a "
-"number of different increment values simultaneously by using multiple "
-"distinctly keyed rows. This generator has a number of configuration "
-"parameters: <placeholder-1/>"
+"æ°çæå¨ç第äºä¸ªæ¯ <literal>org.hibernate.id.enhanced.TableGenerator</"
+"literal>ï¼å®çç®çé¦å
æ¯æ¿ä»£ <literal>table</literal> çæå¨ï¼å³ä½¿å®å®é
䏿¯ "
+"<literal>org.hibernate.id.MultipleHiLoPerTableGenerator</literal> åè½è¦å¼ºå¾"
+"å¤ï¼å
¶æ¬¡ï¼ä½ä¸ºå©ç¨å¯ææ optimizer ç <literal>org.hibernate.id."
+"MultipleHiLoPerTableGenerator</literal> çæ¿ä»£åãåºæ¬ä¸è¿ä¸ªçæå¨å®ä¹äºä¸ä¸ª"
+"å¯ä»¥å©ç¨å¤ä¸ªä¸åçé®å¼è®°å½åå¨å¤§éä¸åå¢éå¼ç表ãè¿ä¸ªçæå¨æå¦ä¸çé
ç½®å"
+"æ°ï¼"
#. Tag: para
-#: basic_mapping.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table_name</literal> (optional - defaults to "
"<literal>hibernate_sequences</literal>): the name of the table to be used."
msgstr ""
-"<literal>table_name</literal> (optional, defaults to "
-"<literal>hibernate_sequences</literal>): The name of the table to be used."
+"<literal>table_name</literal>ï¼å¯é â é»è®¤æ¯ <literal>hibernate_sequences</"
+"literal>ï¼ï¼æç¨ç表çåç§°ã"
#. Tag: para
-#: basic_mapping.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>value_column_name</literal> (optional - defaults to "
"<literal>next_val</literal>): the name of the column on the table that is "
"used to hold the value."
msgstr ""
-"<literal>value_column_name</literal> (optional, defaults to "
-"<literal>next_val</literal>): The name of the column on the table which is "
-"used to hold the value."
+"<literal>value_column_name</literal>ï¼å¯é â é»è®¤ä¸º <literal>next_val</"
+"literal>ï¼ï¼ç¨äºåå¨è¿äºå¼ç表çåæ®µçååã"
#. Tag: para
-#: basic_mapping.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_column_name</literal> (optional - defaults to "
"<literal>sequence_name</literal>): the name of the column on the table that "
"is used to hold the \"segment key\". This is the value which identifies "
"which increment value to use."
msgstr ""
-"<literal>segment_column_name</literal> (optional, defaults to "
-"<literal>sequence_name</literal>): The name of the column on the table which "
-"is used to hold the \"segement key\". This is the value which distinctly "
-"identifies which increment value to use."
+"<literal>segment_column_name</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>sequence_name</"
+"literal>ï¼ï¼ç¨äºä¿å \"segment key\" çåæ®µçåç§°ãè¿æ¯æ è¯ä½¿ç¨åªä¸ªå¢éå¼ç"
+"å¼ã"
#. Tag: para
-#: basic_mapping.xml:887
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value</literal> (optional - defaults to <literal>default</"
"literal>): The \"segment key\" value for the segment from which we want to "
"pull increment values for this generator."
msgstr ""
-"<literal>segment_value</literal> (optional, defaults to <literal>default</"
-"literal>): The \"segment key\" value for the segment from which we want to "
-"pull increment values for this generator."
+"<literal>segment_value</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>default</literal>ï¼ï¼"
+"æä»¬ä¸ºè¿ä¸ªçæå¨è·åå¢éå¼ç segment ç \"segment key\"ã"
#. Tag: para
-#: basic_mapping.xml:894
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>segment_value_length</literal> (optional - defaults to "
"<literal>255</literal>): Used for schema generation; the column size to "
"create this segment key column."
msgstr ""
-"<literal>segment_value_length</literal> (optional, defaults to <literal>255</"
-"literal>): Used for schema generation; the column size to create this "
-"segment key column."
+"<literal>segment_value_length</literal>ï¼å¯é â é»è®¤ä¸º <literal>255</"
+"literal>ï¼ï¼ç¨äº schema çæï¼å建 Segment Key åæ®µçåæ®µå¤§å°ã"
#. Tag: para
-#: basic_mapping.xml:900
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>initial_value</literal> (optional - defaults to <literal>1</"
"literal>): The initial value to be retrieved from the table."
msgstr ""
-"<literal>initial_value</literal> (optional, defaults to <literal>1</"
-"literal>): The initial value to be retrieved from the table."
+"<literal>initial_value</literal>ï¼å¯é â é»è®¤æ¯ <literal>1</literal>ï¼ï¼ä»è¡¨"
+"éè·åçåå§å¼ã"
#. Tag: para
-#: basic_mapping.xml:906
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>increment_size</literal> (optional - defaults to <literal>1</"
"literal>): The value by which subsequent calls to the table should differ."
msgstr ""
-"<literal>increment_size</literal> (optional, defaults to <literal>1</"
-"literal>): The value by which subsequent calls to the table should differ."
+"<literal>increment_size</literal>ï¼å¯é â é»è®¤æ¯ <literal>1</literal>ï¼ï¼å¯¹è¡¨"
+"éåçè°ç¨åºè¯¥åºåçå¼ã"
#. Tag: para
-#: basic_mapping.xml:912
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimizer</literal> (optional - defaults to <literal></literal>): "
-"See"
+"See <xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />"
msgstr ""
-"<literal>cascade</literal> (å¯é -é»è®¤æ¯<literal>none</literal>): 级èçç±»å"
+"<literal>optimizer</literal>ï¼å¯é â é»è®¤æ¯ <literal> </literal>ï¼ï¼è¯·åè "
+"<xref linkend=\"mapping-declaration-id-enhanced-optimizers\" />ã"
#. Tag: title
-#: basic_mapping.xml:922
#, no-c-format
msgid "Identifier generator optimization"
-msgstr "Identifier generator optimization"
+msgstr "æ è¯ç¬¦çæå¨çä¼å"
#. Tag: para
-#: basic_mapping.xml:923
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For identifier generators that store values in the database, it is "
"inefficient for them to hit the database on each and every call to generate "
"a new identifier value. Instead, you can group a bunch of them in memory and "
"only hit the database when you have exhausted your in-memory value group. "
"This is the role of the pluggable optimizers. Currently only the two "
-"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\"/> "
+"enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced\" /> "
"support this operation."
msgstr ""
-"For identifier generators which store values in the database, it is "
-"inefficient for them to hit the database on each and every call to generate "
-"a new identifier value. Instead, you'd ideally want to group a bunch of them "
-"in memory and only hit the database when you have exhausted your in-memory "
-"value group. This is the role of the pluggable optimizers. Currently only "
-"the two enhanced generators (<xref linkend=\"mapping-declaration-id-enhanced"
-"\"/> support this notion. <placeholder-1/>"
+"对äºå¨æ°æ®åºéåå¨å¼çæ è¯ç¬¦çæå¨ï¼çææ°æ è¯ç¬¦æ¶çæ¯æ¬¡è°ç¨é½è®¿é®æ°æ®åºæ¯ä½"
+"æçãå æ¤ï¼ä½ å¯ä»¥æå®ä»¬å¨å
åéåç»å¹¶åªæå¨å¿«ç¨å
å
åæ¶æè®¿é®æ°æ®åºãè¿æ¯å¯"
+"ææ optimizer çä»»å¡ãç®ååªæä¸¤ä¸ªå¢å¼ºåççæå¨æ¯æè¿ä¸ªæä½ï¼<xref linkend="
+"\"mapping-declaration-id-enhanced\"/>ï¼ã "
#. Tag: para
-#: basic_mapping.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>none</literal> (generally this is the default if no optimizer was "
"specified): this will not perform any optimizations and hit the database for "
"each and every request."
msgstr ""
-"<literal>none</literal> (generally this is the default if no optimizer was "
-"specified): This says to not perform any optimizations, and hit the database "
-"each and every request."
+"<literal>none</literal>ï¼å¦ææ²¡ææå® optimizerï¼éå¸¸è¿æ¯ç¼ºçé
ç½®ï¼ï¼è¿ä¸ä¼æ§"
+"è¡ä»»ä½ä¼åï¼å¨æ¯æ¬¡è¯·æ±æ¶é½è®¿é®æ°æ®åºã"
#. Tag: para
-#: basic_mapping.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
"retrieved values. The values from the database for this optimizer are "
@@ -1804,16 +1376,12 @@
"<literal>increment_size</literal> is multiplied by that value in memory to "
"define a group \"hi value\"."
msgstr ""
-"<literal>hilo</literal>: applies a hi/lo algorithm around the database "
-"retrieved values. The values from the database for this optimizer are "
-"expected to be sequential. The values retrieved from the database structure "
-"for this optimizer indicates the \"group number\"; the "
-"<literal>increment_size</literal> is multiplied by that value in memory to "
-"define a group \"hi value\"."
+"<literal>hilo</literal>ï¼å¯¹ä»æ°æ®åºè·åçå¼åºç¨ hi/lo ç®æ³ãç¨äºè¿ä¸ª "
+"optimizer ç仿°æ®åºè·åçå¼åºè¯¥æ¯æåºçãå®ä»¬è¡¨æâç»ç¼å·âã"
+"<literal>increment_size</literal> å°ä¹ä»¥å
åéç弿¥å®ä¹ç»çâhi å¼âã"
#. Tag: para
-#: basic_mapping.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>pooled</literal>: as with the case of <literal>hilo</literal>, this "
"optimizer attempts to minimize the number of hits to the database. Here, "
@@ -1822,76 +1390,41 @@
"memory grouping algorithm. Here, <literal>increment_size</literal> refers to "
"the values coming from the database."
msgstr ""
-"<literal>pooled</literal>: like was discussed for <literal>hilo</literal>, "
-"this optimizers attempts to minimize the number of hits to the database. "
-"Here, however, we simply store the starting value for the \"next group\" "
-"into the database structure rather than a sequential value in combination "
-"with an in-memory grouping algorithm. <literal>increment_size</literal> here "
-"refers to the values coming from the database."
+"<literal>pooled</literal>ï¼å <literal>hilo</literal> 䏿 ·ï¼è¿ä¸ª optimizer è¯"
+"徿å°åå¯¹æ°æ®åºç访é®ãç¶èï¼æä»¬åªæ¯ç®åå°æâä¸ä¸ç»âçèµ·å§å¼è䏿¯æåºåå¼"
+"ååç»ç®æ³çç»ååå
¥å°æ°æ®åºç»æéãå¨è¿éï¼<literal>increment_size</"
+"literal> è¡¨ç¤ºæ°æ®åºéçå¼ã"
#. Tag: title
-#: basic_mapping.xml:959
#, no-c-format
msgid "composite-id"
msgstr "composite-id"
-#. Tag: programlisting
-#: basic_mapping.xml:961
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" mapped=\"true|false\"\n"
-" access=\"field|property|ClassName\">\n"
-" node=\"element-name|.\"\n"
-"\n"
-" <key-property name=\"propertyName\" type=\"typename\" column="
-"\"column_name\"/>\n"
-" <key-many-to-one name=\"propertyName class=\"ClassName\" column="
-"\"column_name\"/>\n"
-" ......\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:963
-#, fuzzy, no-c-format
-msgid ""
"A table with a composite key can be mapped with multiple properties of the "
"class as identifier properties. The <literal><composite-id></literal> "
"element accepts <literal><key-property></literal> property mappings "
"and <literal><key-many-to-one></literal> mappings as child elements."
msgstr ""
-"å¦æè¡¨ä½¿ç¨èå主é®ï¼ä½ å¯ä»¥æ å°ç±»çå¤ä¸ªå±æ§ä¸ºæ è¯ç¬¦å±æ§ã <literal><"
-"composite-id></literal>å
ç´ æ¥å<literal><key-property></literal> å±"
-"æ§æ å°å<literal><key-many-to-one></literal>屿§æ å°ä½ä¸ºåå
ç´ ã"
+"å¦æè¡¨ä½¿ç¨èå主é®ï¼ä½ å¯ä»¥æ å°ç±»çå¤ä¸ªå±æ§ä¸ºæ è¯ç¬¦å±æ§ã<literal><"
+"composite-id></literal> å
ç´ æ¥å <literal><key-property></literal> "
+"屿§æ å°å <literal><key-many-to-one></literal> 屿§æ å°ä½ä¸ºåå
ç´ ã "
-#. Tag: programlisting
-#: basic_mapping.xml:970
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id>\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:972
-#, fuzzy, no-c-format
-msgid ""
"The persistent class <emphasis>must</emphasis> override <literal>equals()</"
"literal> and <literal>hashCode()</literal> to implement composite identifier "
"equality. It must also implement <literal>Serializable</literal>."
msgstr ""
-"ä½ çæä¹
åç±»<emphasis>å¿
é¡»</emphasis>éè½½<literal>equals()</literal>å "
-"<literal>hashCode()</literal>æ¹æ³ï¼æ¥å®ç°ç»åçæ è¯ç¬¦çç¸ç夿ã å®ç°"
-"<literal>Serializable</literal>æ¥å£ä¹æ¯å¿
é¡»çã"
+"ä½ çæä¹
åç±»<emphasis>å¿
é¡»</emphasis>è¦ç <literal>equals()</literal> å "
+"<literal>hashCode()</literal> æ¹æ³ï¼æ¥å®ç°ç»åçæ è¯ç¬¦çç¸ç夿ãå®ç° "
+"<literal>Serializable</literal> æ¥å£ä¹æ¯å¿
é¡»çã"
#. Tag: para
-#: basic_mapping.xml:978
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unfortunately, this approach means that a persistent object is its own "
"identifier. There is no convenient \"handle\" other than the object itself. "
@@ -1902,13 +1435,12 @@
"serious applications."
msgstr ""
"ä¸å¹¸çæ¯ï¼è¿ç§ç»åå
³é®åçæ¹æ³æå³çä¸ä¸ªæä¹
åç±»æ¯å®èªå·±çæ è¯ãé¤äºå¯¹è±¡èªå·±"
-"ä¹å¤ï¼ 没æä»ä¹æ¹ä¾¿çâææâå¯ç¨ãä½ å¿
é¡»åå§åæä¹
åç±»çå®ä¾ï¼å¡«å
å®çæ è¯ç¬¦å±"
-"æ§ï¼å<literal>load()</literal> ç»åå
³é®åå
³èçæä¹
ç¶æãæä»¬æè¿ç§æ¹æ³ç§°ä¸º"
-"<emphasis>embeddedï¼åµå
¥å¼ï¼</emphasis>çç»åæ è¯ç¬¦ï¼å¨éè¦çåºç¨ä¸ä¸é¼å±ä½¿ç¨"
-"è¿ç§ç¨æ³ã"
+"ä¹å¤ï¼æ²¡æä»ä¹æ¹ä¾¿çâææâå¯ç¨ãä½ å¿
é¡»åå§åæä¹
åç±»çå®ä¾ï¼å¡«å
å®çæ è¯ç¬¦å±"
+"æ§ï¼å <literal>load()</literal> ç»åå
³é®åå
³èçæä¹
ç¶æãæä»¬æè¿ç§æ¹æ³ç§°"
+"为 <emphasis>embeddedï¼åµå
¥å¼ï¼</emphasis>çç»åæ è¯ç¬¦ï¼å¨éè¦çåºç¨ä¸ä¸é¼å±"
+"使ç¨è¿ç§ç¨æ³ã "
#. Tag: para
-#: basic_mapping.xml:987
#, no-c-format
msgid ""
"A second approach is what we call a <emphasis>mapped</emphasis> composite "
@@ -1916,24 +1448,13 @@
"composite-id></literal> element are duplicated on both the persistent "
"class and a separate identifier class."
msgstr ""
-"第äºç§æ¹æ³æä»¬ç§°ä¸º<emphasis>mapped(æ å°å¼)</emphasis>ç»åæ è¯ç¬¦ (mapped "
-"composite identifier),<literal><composite-id></literal>å
ç´ ä¸ååºçæ è¯"
-"屿§ä¸ä½å¨æä¹
åç±»åºç°ï¼è¿å½¢æä¸ä¸ªç¬ç«çæ è¯ç¬¦ç±»ã"
+"第äºç§æ¹æ³æä»¬ç§°ä¸º <emphasis>mappedï¼æ å°å¼ï¼</emphasis>ç»åæ è¯ç¬¦ï¼mapped "
+"composite identifierï¼ï¼<literal><composite-id></literal> å
ç´ ä¸ååºç"
+"æ è¯å±æ§ä¸ä½å¨æä¹
åç±»åºç°ï¼è¿å½¢æä¸ä¸ªç¬ç«çæ è¯ç¬¦ç±»ã"
-#. Tag: programlisting
-#: basic_mapping.xml:993
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
-" <key-property name=\"medicareNumber\"/>\n"
-" <key-property name=\"dependent\"/>\n"
-"</composite-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:995
-#, fuzzy, no-c-format
-msgid ""
"In this example, both the composite identifier class, <literal>MedicareId</"
"literal>, and the entity class itself have properties named "
"<literal>medicareNumber</literal> and <literal>dependent</literal>. The "
@@ -1941,131 +1462,95 @@
"<literal>hashCode()</literal> and implement <literal>Serializable</literal>. "
"The main disadvantage of this approach is code duplication."
msgstr ""
-"å¨è¿ä¸ªä¾åä¸ï¼ç»åæ è¯ç¬¦ç±»<literal>MedicareId</literal>åå®ä½ç±»é½å«æ"
-"<literal>medicareNumber</literal>å<literal>dependent</literal>屿§ãæ è¯ç¬¦ç±»"
-"å¿
é¡»éè½½<literal>equals()</literal>å<literal>hashCode()</literal>å¹¶ä¸å®ç°"
-"<literal>Serializable</literal>æ¥å£ãè¿ç§æ¹æ³çç¼ºç¹æ¯åºç°äºææ¾ç代ç éå¤ã"
+"å¨è¿ä¸ªä¾åä¸ï¼ç»åæ è¯ç¬¦ç±» <literal>MedicareId</literal> åå®ä½ç±»é½å«æ "
+"<literal>medicareNumber</literal> å <literal>dependent</literal> 屿§ãæ è¯"
+"符类å¿
é¡»éè½½ <literal>equals()</literal> å <literal>hashCode()</literal> å¹¶"
+"ä¸å®ç° <literal>Serializable</literal> æ¥å£ãè¿ç§æ¹æ³çç¼ºç¹æ¯åºç°äºææ¾ç代ç "
+"éå¤ã"
#. Tag: para
-#: basic_mapping.xml:1004
#, no-c-format
msgid ""
"The following attributes are used to specify a mapped composite identifier:"
msgstr "ä¸é¢ååºç屿§æ¯ç¨æ¥æå®ä¸ä¸ªæ å°å¼ç»åæ è¯ç¬¦çï¼"
#. Tag: para
-#: basic_mapping.xml:1010
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mapped</literal> (optional - defaults to <literal>false</literal>): "
"indicates that a mapped composite identifier is used, and that the contained "
"property mappings refer to both the entity class and the composite "
"identifier class."
msgstr ""
-"<literal>mapped</literal> (å¯é, é»è®¤ä¸º<literal>false</literal>): ææä½¿ç¨ä¸"
-"个æ å°å¼ç»åæ è¯ç¬¦ï¼å
¶å
å«ç屿§æ å°åæ¶å¨å®ä½ç±»åç»åæ è¯ç¬¦ç±»ä¸åºç°ã"
+"<literal>mapped</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>false</literal>ï¼ï¼ææä½¿ç¨"
+"ä¸ä¸ªæ å°å¼ç»åæ è¯ç¬¦ï¼å
¶å
å«ç屿§æ å°åæ¶å¨å®ä½ç±»åç»åæ è¯ç¬¦ç±»ä¸åºç°ã "
#. Tag: para
-#: basic_mapping.xml:1018
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - but required for a mapped composite "
"identifier): the class used as a composite identifier."
msgstr ""
-"<literal>class</literal> (å¯é,ä½å¯¹æ å°å¼ç»åæ è¯ç¬¦å¿
é¡»æå®): ä½ä¸ºç»åæ è¯ç¬¦"
-"类使ç¨çç±»å."
+"<literal>class</literal>ï¼å¯é,ä½å¯¹æ å°å¼ç»åæ è¯ç¬¦å¿
é¡»æå®ï¼ï¼ä½ä¸ºç»åæ è¯ç¬¦"
+"类使ç¨çç±»åã"
#. Tag: para
-#: basic_mapping.xml:1025
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will describe a third, even more convenient approach, where the composite "
"identifier is implemented as a component class in <xref linkend=\"components-"
-"compositeid\"/>. The attributes described below apply only to this "
+"compositeid\" />. The attributes described below apply only to this "
"alternative approach:"
msgstr ""
-"å¨<xref linkend=\"components-compositeid\"/>ä¸èä¸,æä»¬ä¼æè¿°ç¬¬ä¸ç§æ¹å¼,é£å°±"
-"æ¯æç»åæ è¯ç¬¦å®ç°ä¸ºä¸ä¸ªç»ä»¶(component)ç±»,è¿æ¯æ´æ¹ä¾¿çæ¹æ³ãä¸é¢ç屿§ä»
对第"
-"ä¸ç§æ¹æ³ææï¼"
+"å¨ <xref linkend=\"components-compositeid\"/> ä¸èä¸,æä»¬ä¼æè¿°ç¬¬ä¸ç§æ¹å¼,é£"
+"å°±æ¯æç»åæ è¯ç¬¦å®ç°ä¸ºä¸ä¸ªç»ä»¶ï¼componentï¼ç±»,è¿æ¯æ´æ¹ä¾¿çæ¹æ³ãä¸é¢ç屿§ä»
"
+"对第ä¸ç§æ¹æ³ææï¼ "
#. Tag: para
-#: basic_mapping.xml:1033
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal> (optional - required for this approach): a property "
"of component type that holds the composite identifier. Please see chapter 9 "
"for more information."
msgstr ""
-"<literal>name</literal> (å¯é,ä½å¯¹è¿ç§æ¹æ³èè¨å¿
é¡»): å
嫿¤ç»ä»¶æ è¯ç¬¦çç»ä»¶ç±»"
-"åçåå (åé
第9ç« )."
+"<literal>name</literal>ï¼å¯é,ä½å¯¹è¿ç§æ¹æ³èè¨å¿
é¡»ï¼ï¼å
嫿¤ç»ä»¶æ è¯ç¬¦çç»ä»¶"
+"ç±»åçååï¼åé
第 9 ç« ï¼ã"
#. Tag: para
-#: basic_mapping.xml:1039 basic_mapping.xml:1260 basic_mapping.xml:1372
-#: basic_mapping.xml:1561 basic_mapping.xml:1735 basic_mapping.xml:1905
-#: basic_mapping.xml:2484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateåºè¯¥ä½¿ç¨çè®¿é®æ¤å±æ§å¼ççç¥\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤å¼ä¸º <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é -é»è®¤æ¯ <literal>property</literal>): "
-"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã"
+"<literal>access</literal>ï¼å¯é â é»è®¤ä¸º <literal>property</literal>ï¼ï¼"
+"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã "
#. Tag: para
-#: basic_mapping.xml:1045
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the component class used as a composite "
"identifier. Please see the next section for more information."
msgstr ""
-"<literal>class</literal> (å¯é - é»è®¤ä¼ç¨åå°æ¥èªå¨å¤å®å±æ§ç±»å ): ç¨æ¥ä½ä¸ºç»"
-"åæ è¯ç¬¦çç»ä»¶ç±»çç±»åï¼åé
ä¸ä¸èï¼"
+"<literal>class</literal>ï¼å¯é â é»è®¤ä¼ç¨åå°æ¥èªå¨å¤å®å±æ§ç±»å ï¼ï¼ç¨æ¥ä½ä¸º"
+"ç»åæ è¯ç¬¦çç»ä»¶ç±»çç±»åï¼åé
ä¸ä¸èï¼ã "
#. Tag: para
-#: basic_mapping.xml:1052
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The third approach, an <emphasis>identifier component</emphasis>, is "
"recommended for almost all applications."
msgstr ""
-"第ä¸ç§æ¹å¼ï¼è¢«ç§°ä¸º<emphasis>identifier component(æ è¯ç¬¦ç»ä»¶)</emphasis>æ¯æä»¬"
-"对å 乿æåºç¨é½æ¨è使ç¨çæ¹å¼ã"
+"第ä¸ç§æ¹å¼ï¼è¢«ç§°ä¸º <emphasis>identifier componentï¼æ è¯ç¬¦ç»ä»¶ï¼</emphasis>æ¯"
+"æä»¬å¯¹å 乿æåºç¨é½æ¨è使ç¨çæ¹å¼ã "
#. Tag: title
-#: basic_mapping.xml:1060
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Discriminator"
-msgstr "é´å«å¨ï¼discriminatorï¼"
+msgstr "é´å«å¨ï¼discriminatorï¼ "
#. Tag: para
-#: basic_mapping.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><discriminator></literal> element is required for "
"polymorphic persistence using the table-per-class-hierarchy mapping "
@@ -2077,224 +1562,146 @@
"<literal>boolean</literal>, <literal>yes_no</literal>, <literal>true_false</"
"literal>."
msgstr ""
-"å¨\"䏿£µå¯¹è±¡ç»§æ¿æ 对åºä¸ä¸ªè¡¨\"ççç¥ä¸,<literal><discriminator></"
-"literal>å
ç´ æ¯å¿
éç, å®å®ä¹äºè¡¨çé´å«å¨å段ãé´å«å¨å段å
嫿 å¿å¼ï¼ç¨äºåç¥"
-"æä¹
åå±åºè¯¥ä¸ºæä¸ªç¹å®çè¡å建åªä¸ä¸ªåç±»çå®ä¾ã å¦ä¸è¿äºåå°éå¶çç±»åå¯ä»¥ä½¿"
-"ç¨ï¼ <literal>string</literal>, <literal>character</literal>, "
-"<literal>integer</literal>, <literal>byte</literal>, <literal>short</"
-"literal>, <literal>boolean</literal>, <literal>yes_no</literal>, "
-"<literal>true_false</literal>."
+"å¨\"䏿£µå¯¹è±¡ç»§æ¿æ 对åºä¸ä¸ªè¡¨\"ççç¥ä¸ï¼<literal><discriminator></"
+"literal> å
ç´ æ¯å¿
éçï¼å®å®ä¹äºè¡¨çé´å«å¨å段ãé´å«å¨å段å
嫿 å¿å¼ï¼ç¨äºåç¥"
+"æä¹
åå±åºè¯¥ä¸ºæä¸ªç¹å®çè¡å建åªä¸ä¸ªåç±»çå®ä¾ãå¦ä¸è¿äºåå°éå¶çç±»åå¯ä»¥ä½¿"
+"ç¨ï¼<literal>string</literal>ã<literal>character</literal>ã"
+"<literal>integer</literal>ã<literal>byte</literal>ã<literal>short</"
+"literal>ã<literal>boolean</literal>ã<literal>yes_no</literal>ã"
+"<literal>true_false</literal>ã"
-#. Tag: programlisting
-#: basic_mapping.xml:1080
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<discriminator\n"
-" column=\"discriminator_column\"\n"
-" type=\"discriminator_type\"\n"
-" force=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary sql expression\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1083
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to <literal>class</literal>): "
"the name of the discriminator column."
msgstr ""
-"<literal>column</literal> (å¯é - é»è®¤ä¸º <literal>class</literal>) é´å«å¨å段"
-"çåå"
+"<literal>column</literal>ï¼å¯é â é»è®¤ä¸º <literal>class</literal>ï¼"
+"discriminator å¨å段çååã"
#. Tag: para
-#: basic_mapping.xml:1089
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>string</literal>): "
"a name that indicates the Hibernate type"
msgstr ""
-"<literal>type</literal> (å¯é - é»è®¤ä¸º <literal>string</literal>) ä¸ä¸ª"
-"Hibernateåæ®µç±»åçåå"
+"<literal>type</literal>ï¼å¯é â é»è®¤ä¸º <literal>string</literal>ï¼ä¸ä¸ª "
+"Hibernate åæ®µç±»åçåå "
#. Tag: para
-#: basic_mapping.xml:1095
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>force</literal> (optional - defaults to <literal>false</literal>): "
"\"forces\" Hibernate to specify the allowed discriminator values, even when "
"retrieving all instances of the root class."
msgstr ""
-"<literal>force(强å¶)</literal> (å¯é - é»è®¤ä¸º <literal>false</literal>) \"强"
-"å¶\"Hibernateæå®å
许çé´å«å¨å¼,å³ä½¿å½åå¾çææå®ä¾é½æ¯æ ¹ç±»çã"
+"<literal>force(强å¶)</literal>ï¼å¯é â é»è®¤ä¸º <literal>false</literal>ï¼\"强"
+"å¶\" Hibernate æå®å
许çé´å«å¨å¼,å³ä½¿å½åå¾çææå®ä¾é½æ¯æ ¹ç±»çã "
#. Tag: para
-#: basic_mapping.xml:1102
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"set this to <literal>false</literal> if your discriminator column is also "
"part of a mapped composite identifier. It tells Hibernate not to include the "
"column in SQL <literal>INSERTs</literal>."
msgstr ""
-"<literal>insert</literal> (å¯é - é»è®¤ä¸º<literal>true</literal>) å¦æä½ çé´å«"
-"å¨åæ®µä¹æ¯æ å°ä¸ºå¤åæ è¯ï¼composite identifierï¼çä¸é¨åï¼åéå° è¿ä¸ªå¼è®¾ä¸º"
-"<literal>false</literal>ãï¼åè¯Hibernateå¨åSQL <literal>INSERT</literal> æ¶"
-"ä¸å
å«è¯¥åï¼"
+"<literal>insert</literal>ï¼å¯é - é»è®¤ä¸º<literal>true</literal>ï¼å¦æä½ çé´å«"
+"å¨åæ®µä¹æ¯æ å°ä¸ºå¤åæ è¯ï¼composite identifierï¼çä¸é¨åï¼åéå°è¿ä¸ªå¼è®¾ä¸º "
+"<literal>false</literal>ãï¼åè¯ Hibernate å¨å SQL <literal>INSERT</"
+"literal> æ¶ä¸å
å«è¯¥åï¼ "
#. Tag: para
-#: basic_mapping.xml:1110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an arbitrary SQL expression that is "
"executed when a type has to be evaluated. It allows content-based "
"discrimination."
msgstr ""
-"<literal>formula</literal> (å¯é) ä¸ä¸ªSQL表达å¼ï¼å¨ç±»å夿ï¼å¤ææ¯ç¶ç±»è¿æ¯å
·"
-"ä½åç±»ï¼è¯æ³¨ï¼æ¶æ§è¡ãå¯ç¨äºåºäºå
容çé´å«å¨ã"
+"<literal>formula</literal>ï¼å¯éï¼ä¸ä¸ª SQL 表达å¼ï¼å¨ç±»å夿ï¼å¤ææ¯ç¶ç±»è¿æ¯"
+"å
·ä½åç±» â è¯æ³¨ï¼æ¶æ§è¡ãå¯ç¨äºåºäºå
容çé´å«å¨ã "
#. Tag: para
-#: basic_mapping.xml:1118
#, no-c-format
msgid ""
"Actual values of the discriminator column are specified by the "
"<literal>discriminator-value</literal> attribute of the <literal><"
"class></literal> and <literal><subclass></literal> elements."
msgstr ""
-"é´å«å¨å段çå®é
弿¯æ ¹æ®<literal><class></literal>å<literal><"
-"subclass></literal>å
ç´ ä¸ ç<literal>discriminator-value</literal>屿§å¾æ¥"
-"çã"
+"é´å«å¨å段çå®é
弿¯æ ¹æ® <literal><class></literal> å <literal><"
+"subclass></literal> å
ç´ ä¸ç <literal>discriminator-value</literal> 屿§å¾"
+"æ¥çã"
#. Tag: para
-#: basic_mapping.xml:1124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>force</literal> attribute is only useful if the table contains "
"rows with \"extra\" discriminator values that are not mapped to a persistent "
"class. This will not usually be the case."
msgstr ""
-"<literal>force</literal>屿§ä»
ä»
å¨è¿ç§æ
åµä¸æç¨çï¼è¡¨ä¸å
嫿²¡æè¢«æ å°å°æä¹
"
-"åç±»çéå 辨å«å¨å¼ã è¿ç§æ
åµä¸ä¼ç»å¸¸éå°ã"
+"<literal>force</literal> 屿§ä»
ä»
å¨è¿ç§æ
åµä¸æç¨çï¼è¡¨ä¸å
嫿²¡æè¢«æ å°å°æä¹
"
+"åç±»çéå 辨å«å¨å¼ãè¿ç§æ
åµä¸ä¼ç»å¸¸éå°ã "
#. Tag: para
-#: basic_mapping.xml:1130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>formula</literal> attribute allows you to declare an arbitrary "
"SQL expression that will be used to evaluate the type of a row. For example:"
msgstr ""
-"使ç¨<literal>formula</literal>屿§ä½ å¯ä»¥å®ä¹ä¸ä¸ªSQL表达å¼ï¼ç¨æ¥å¤æä¸ä¸ªè¡æ°æ®"
-"çç±»åã"
+"ä½¿ç¨ <literal>formula</literal> 屿§ä½ å¯ä»¥å®ä¹ä¸ä¸ª SQL 表达å¼ï¼ç¨æ¥å¤æä¸è¡æ°"
+"æ®çç±»åã"
-#. Tag: programlisting
-#: basic_mapping.xml:1135
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<discriminator\n"
-" formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end\"\n"
-" type=\"integer\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1140
-#, fuzzy, no-c-format
msgid "Version (optional)"
-msgstr "çæ¬ï¼versionï¼(å¯é)"
+msgstr "çæ¬ï¼versionï¼ï¼å¯éï¼ "
#. Tag: para
-#: basic_mapping.xml:1142
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><version></literal> element is optional and indicates "
"that the table contains versioned data. This is particularly useful if you "
"plan to use <emphasis>long transactions</emphasis>. See below for more "
"information:"
msgstr ""
-"<literal><version></literal>å
ç´ æ¯å¯éçï¼è¡¨æè¡¨ä¸å
å«éå¸¦çæ¬ä¿¡æ¯çæ°"
-"æ®ã è¿å¨ä½ åå¤ä½¿ç¨<emphasis> é¿äºå¡ï¼long transactionsï¼</emphasis>çæ¶åç¹"
-"嫿ç¨ãï¼è§åï¼"
+"<literal><version></literal> å
ç´ æ¯å¯éçï¼è¡¨æè¡¨ä¸å
å«éå¸¦çæ¬ä¿¡æ¯çæ°"
+"æ®ãè¿å¨ä½ åå¤ä½¿ç¨<emphasis> é¿äºå¡ï¼long transactionsï¼</emphasis>çæ¶åç¹å«"
+"æç¨ãä¸é¢æ¯æ´å¤ä¿¡æ¯ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1158
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<version\n"
-" column=\"version_column\"\n"
-" name=\"propertyName\"\n"
-" type=\"typename\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|negative|undefined\"\n"
-" generated=\"never|always\"\n"
-" insert=\"true|false\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1161
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the column holding the version number."
msgstr ""
-"<literal>column</literal> (å¯é - é»è®¤ä¸ºå±æ§å): æå®ææçæ¬å·çåæ®µåã"
+"<literal>column</literal>ï¼å¯é â é»è®¤ä¸ºå±æ§åï¼ï¼æå®ææçæ¬å·çåæ®µåã "
#. Tag: para
-#: basic_mapping.xml:1167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a property of the persistent class."
-msgstr "<literal>name</literal>: æä¹
åç±»ç屿§åã"
+msgstr "<literal>name</literal>ï¼æä¹
åç±»ç屿§åã "
#. Tag: para
-#: basic_mapping.xml:1172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>type</literal> (optional - defaults to <literal>integer</literal>): "
"the type of the version number."
msgstr ""
-"<literal>type</literal> (å¯é - é»è®¤æ¯ <literal>integer</literal>): çæ¬å·ç"
-"ç±»åã"
+"<literal>type</literal>ï¼å¯é â é»è®¤æ¯ <literal>integer</literal>ï¼ï¼çæ¬å·ç"
+"ç±»åã "
#. Tag: para
-#: basic_mapping.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses to access the property value."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤ä¸º<literal>property</literal>): "
-"Hibernateåºè¯¥ä½¿ç¨çè®¿é®æ¤å±æ§å¼ççç¥\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨äºè®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤å¼ä¸º <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§å¼ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é - é»è®¤æ¯ <literal>property</literal>): "
-"Hibernateç¨æ¥è®¿é®å±æ§ççç¥ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>access</literal> (å¯é -é»è®¤æ¯ <literal>property</literal>): "
-"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã"
+"<literal>access</literal>ï¼å¯é â é»è®¤ä¸º <literal>property</literal>ï¼ï¼"
+"Hibernate ç¨æ¥è®¿é®å±æ§å¼ççç¥ã "
#. Tag: para
-#: basic_mapping.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>undefined</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2302,13 +1709,12 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (å¯é - é»è®¤æ¯<literal>undefined</"
-"literal>): ç¨äºæ ææä¸ªå®ä¾æ¶åå被å®ä¾åçï¼å°æªä¿åï¼çæ¬å±æ§å¼ï¼ä¾é è¿ä¸ªå¼"
-"å°±å¯ä»¥æè¿ç§æ
åµ åå·²ç»å¨å
åçsessionä¸ä¿åæè£
è½½çè±ç®¡ï¼detachedï¼å®ä¾åºå"
-"弿¥ã ï¼<literal>undefined</literal>ææåºè¢«ä½¿ç¨çæ è¯å±æ§å¼ãï¼"
+"<literal>unsaved-value</literal>ï¼å¯é â é»è®¤æ¯ <literal>undefined</"
+"literal>ï¼ï¼ç¨äºæ ææä¸ªå®ä¾æ¶åå被å®ä¾åçï¼å°æªä¿åï¼çæ¬å±æ§å¼ï¼ä¾é è¿ä¸ª"
+"å¼å°±å¯ä»¥æè¿ç§æ
åµ åå·²ç»å¨å
åç session ä¸ä¿åæè£
è½½çè±ç®¡ï¼detachedï¼å®ä¾"
+"åºå弿¥ãï¼<literal>undefined</literal> ææåºè¢«ä½¿ç¨çæ è¯å±æ§å¼ãï¼ "
#. Tag: para
-#: basic_mapping.xml:1193
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2316,38 +1722,35 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (å¯é - é»è®¤æ¯ <literal>never</literal>): è¡¨ææ¤"
-"çæ¬å±æ§å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæçã请åé
<xref linkend=\"mapping-generated"
-"\">generated properties</xref>é¨åç讨论ã"
+"<literal>generated</literal>ï¼å¯é â é»è®¤æ¯ <literal>never</literal>ï¼ï¼è¡¨æ"
+"æ¤çæ¬å±æ§å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæçã请åé
<xref linkend=\"mapping-"
+"generated\"/> é¨åç讨论ã "
#. Tag: para
-#: basic_mapping.xml:1200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal> (optional - defaults to <literal>true</literal>): "
"specifies whether the version column should be included in SQL insert "
"statements. It can be set to <literal>false</literal> if the database column "
"is defined with a default value of <literal>0</literal>."
msgstr ""
-"<literal>insert</literal> (å¯é - é»è®¤æ¯ <literal>true</literal>): è¡¨ææ¤çæ¬"
-"ååºè¯¥å
å«å¨SQLæå
¥è¯å¥ä¸ãåªæå½æ°æ®åºå段æé»è®¤å¼<literal>0</literal>çæ¶"
-"åï¼æå¯ä»¥è®¾ç½®ä¸º<literal>false</literal>ã"
+"<literal>insert</literal>ï¼å¯é â é»è®¤æ¯ <literal>true</literal>ï¼ï¼è¡¨ææ¤ç"
+"æ¬ååºè¯¥å
å«å¨ SQL æå
¥è¯å¥ä¸ãåªæå½æ°æ®åºå段æé»è®¤å¼ <literal>0</literal> "
+"çæ¶åï¼æå¯ä»¥è®¾ç½®ä¸º <literal>false</literal>ã "
#. Tag: para
-#: basic_mapping.xml:1210
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Version numbers can be of Hibernate type <literal>long</literal>, "
"<literal>integer</literal>, <literal>short</literal>, <literal>timestamp</"
"literal> or <literal>calendar</literal>."
msgstr ""
-"çæ¬å·å¿
é¡»æ¯ä»¥ä¸ç±»åï¼<literal>long</literal>, <literal>integer</literal>, "
-"<literal>short</literal>, <literal>timestamp</literal>æè
<literal>calendar</"
-"literal>ã"
+"çæ¬å·å¿
é¡»æ¯ä»¥ä¸ç±»åï¼<literal>long</literal>ã<literal>integer</literal>ã"
+"<literal>short</literal>ã<literal>timestamp</literal> æè
"
+"<literal>calendar</literal>ã"
#. Tag: para
-#: basic_mapping.xml:1215
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A version or timestamp property should never be null for a detached "
"instance. Hibernate will detect any instance with a null version or "
@@ -2357,69 +1760,50 @@
"reattachment in Hibernate. It is especially useful for people using assigned "
"identifiers or composite keys</emphasis>."
msgstr ""
-"ä¸ä¸ªè±ç®¡ï¼detachedï¼å®ä¾çversionætimestamp屿§ä¸è½ä¸ºç©ºï¼nullï¼ï¼å 为"
-"Hibernateä¸ç®¡ <literal>unsaved-value</literal>被æå®ä¸ºä½ç§çç¥ï¼å®å°ä»»ä½å±æ§"
-"为空çversionætimestamp å®ä¾çä½ä¸ºç¬æ¶ï¼transientï¼å®ä¾ã <emphasis>é¿å
"
-"Hibernateä¸çä¼ éééï¼transitive reattachmentï¼é®é¢çä¸ä¸ªç®åæ¹æ³æ¯ å®ä¹ä¸ä¸ª"
-"ä¸è½ä¸ºç©ºçversionætimestamp屿§ï¼ç¹å«æ¯å¨äººä»¬ä½¿ç¨ç¨åºåé
çæ è¯ç¬¦ï¼assigned "
-"identifiersï¼ æå¤å䏻鮿¶é常æç¨ï¼</emphasis>"
+"ä¸ä¸ªè±ç®¡ï¼detachedï¼å®ä¾ç version æ timestamp 屿§ä¸è½ä¸ºç©ºï¼nullï¼ï¼å 为 "
+"Hibernate ä¸ç®¡ <literal>unsaved-value</literal> 被æå®ä¸ºä½ç§çç¥ï¼å®å°ä»»ä½å±"
+"æ§ä¸ºç©ºç version æ timestamp å®ä¾çä½ä¸ºç¬æ¶ï¼transientï¼å®ä¾ã <emphasis>é¿"
+"å
Hibernate ä¸çä¼ éééï¼transitive reattachmentï¼é®é¢çä¸ä¸ªç®åæ¹æ³æ¯ å®ä¹"
+"ä¸ä¸ªä¸è½ä¸ºç©ºç version æ timestamp 屿§ï¼ç¹å«æ¯å¨äººä»¬ä½¿ç¨ç¨åºåé
çæ è¯ç¬¦"
+"ï¼assigned identifiersï¼ æå¤å䏻鮿¶é常æç¨</emphasis>ã"
#. Tag: title
-#: basic_mapping.xml:1226
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Timestamp (optional)"
-msgstr "timestamp (å¯é)"
+msgstr "timestampï¼å¯é) "
#. Tag: para
-#: basic_mapping.xml:1228
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The optional <literal><timestamp></literal> element indicates that the "
"table contains timestamped data. This provides an alternative to versioning. "
"Timestamps are a less safe implementation of optimistic locking. However, "
"sometimes the application might use the timestamps in other ways."
msgstr ""
-"å¯éç<literal><timestamp></literal>å
ç´ ææäºè¡¨ä¸å
嫿¶é´æ³æ°æ®ã è¿ç¨"
-"æ¥ä½ä¸ºçæ¬çæ¿ä»£ãæ¶é´æ³æ¬è´¨ä¸æ¯ä¸ç§å¯¹ä¹è§éå®çä¸ç§ä¸æ¯ç¹å«å®å
¨çå®ç°ãå½"
-"ç¶ï¼ ææ¶ååºç¨ç¨åºå¯è½å¨å
¶ä»æ¹é¢ä½¿ç¨æ¶é´æ³ã"
+"å¯éç <literal><timestamp></literal> å
ç´ ææäºè¡¨ä¸å
嫿¶é´æ³æ°æ®ãè¿"
+"ç¨æ¥ä½ä¸ºçæ¬çæ¿ä»£ãæ¶é´æ³æ¬è´¨ä¸æ¯ä¸ç§å¯¹ä¹è§éå®çä¸ç§ä¸æ¯ç¹å«å®å
¨çå®ç°ãå½"
+"ç¶ï¼ææ¶ååºç¨ç¨åºå¯è½å¨å
¶ä»æ¹é¢ä½¿ç¨æ¶é´æ³ã "
-#. Tag: programlisting
-#: basic_mapping.xml:1244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<timestamp\n"
-" column=\"timestamp_column\"\n"
-" name=\"propertyName\"\n"
-" access=\"field|property|ClassName\"\n"
-" unsaved-value=\"null|undefined\"\n"
-" source=\"vm|db\"\n"
-" generated=\"never|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1247
-#, fuzzy, no-c-format
-msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of a column holding the timestamp."
-msgstr "<literal>column</literal> (å¯é - é»è®¤ä¸ºå±æ§å): æææ¶é´æ³çåæ®µåã"
+msgstr ""
+"<literal>column</literal>ï¼å¯é â é»è®¤ä¸ºå±æ§åï¼ï¼åææ¶é´æ³çåæ®µåã "
#. Tag: para
-#: basic_mapping.xml:1253
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>name</literal>: the name of a JavaBeans style property of Java type "
"<literal>Date</literal> or <literal>Timestamp</literal> of the persistent "
"class."
msgstr ""
-"<literal>name</literal>: 卿ä¹
åç±»ä¸çJavaBeans飿 ¼ç屿§åï¼ å
¶Javaç±»åæ¯ "
-"<literal>Date</literal> æè
<literal>Timestamp</literal>çã"
+"<literal>name</literal>ï¼å¨æä¹
åç±»ä¸ç JavaBeans 飿 ¼ç屿§åï¼å
¶ Java ç±»å"
+"æ¯ <literal>Date</literal> æè
<literal>Timestamp</literal> çã "
#. Tag: para
-#: basic_mapping.xml:1266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unsaved-value</literal> (optional - defaults to <literal>null</"
"literal>): a version property value that indicates that an instance is newly "
@@ -2427,14 +1811,13 @@
"saved or loaded in a previous session. <literal>Undefined</literal> "
"specifies that the identifier property value should be used."
msgstr ""
-"<literal>unsaved-value</literal> (å¯é - é»è®¤æ¯<literal>null</literal>): ç¨äº"
-"æ ææä¸ªå®ä¾æ¶åå被å®ä¾åçï¼å°æªä¿åï¼çæ¬å±æ§å¼ï¼ä¾é è¿ä¸ªå¼å°±å¯ä»¥æè¿ç§æ
"
-"åµå å·²ç»å¨å
åçsessionä¸ä¿åæè£
è½½çè±ç®¡ï¼detachedï¼å®ä¾åºå弿¥ã"
-"ï¼<literal>undefined</literal> ææä½¿ç¨æ è¯å±æ§å¼è¿è¡è¿ç§å¤æãï¼"
+"<literal>unsaved-value</literal>ï¼å¯é â é»è®¤æ¯ <literal>null</literal>ï¼ï¼ç¨"
+"äºæ ææä¸ªå®ä¾æ¶åå被å®ä¾åçï¼å°æªä¿åï¼çæ¬å±æ§å¼ï¼ä¾é è¿ä¸ªå¼å°±å¯ä»¥æè¿ç§"
+"æ
åµåå·²ç»å¨å
åç session ä¸ä¿åæè£
è½½çè±ç®¡ï¼detachedï¼å®ä¾åºå弿¥ã"
+"ï¼<literal>undefined</literal> ææä½¿ç¨æ è¯å±æ§å¼è¿è¡è¿ç§å¤æãï¼ "
#. Tag: para
-#: basic_mapping.xml:1275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>source</literal> (optional - defaults to <literal>vm</literal>): "
"Where should Hibernate retrieve the timestamp value from? From the database, "
@@ -2445,15 +1828,14 @@
"timestamp. Others may also be unsafe for usage in locking due to lack of "
"precision (Oracle 8, for example)."
msgstr ""
-"<literal>source</literal> (å¯é - é»è®¤æ¯ <literal>vm</literal>): Hibernateå¦"
-"使è½è·åå°æ¶é´æ³çå¼å¢ï¼ä»æ°æ®åºï¼è¿æ¯å½åJVMï¼ä»æ°æ®åºè·åä¼å¸¦æ¥ä¸äºè´æ
ï¼"
-"å 为Hibernateå¿
é¡»è®¿é®æ°æ®åºæ¥è·å¾âä¸ä¸ä¸ªå¼âï¼ä½æ¯å¨é群ç¯å¢ä¸ä¼æ´å®å
¨äºãè¿è¦"
-"注æï¼å¹¶ä¸æ¯ææç<literal>Dialectï¼æ¹è¨ï¼</literal>齿¯æè·å¾æ°æ®åºçå½åæ¶"
-"é´æ³çï¼èæ¯æçæ°æ®åºä¸åæä¸é¨åå 为精度ä¸è¶³,ç¨äºé宿¯ä¸å®å
¨çï¼ä¾å¦"
-"Oracle 8ï¼ã"
+"<literal>source</literal>ï¼å¯é â é»è®¤æ¯ <literal>vm</literal>ï¼ï¼Hibernate "
+"å¦ä½æè½è·åå°æ¶é´æ³çå¼å¢ï¼ä»æ°æ®åºï¼è¿æ¯å½å JVMï¼ä»æ°æ®åºè·åä¼å¸¦æ¥ä¸äºè´"
+"æ
ï¼å 为 Hibernate å¿
é¡»è®¿é®æ°æ®åºæ¥è·å¾âä¸ä¸ä¸ªå¼âï¼ä½æ¯å¨é群ç¯å¢ä¸ä¼æ´å®å
¨"
+"äºãè¿è¦æ³¨æï¼å¹¶ä¸æ¯ææç <literal>Dialectï¼æ¹è¨ï¼</literal>齿¯æè·å¾æ°æ®åº"
+"çå½åæ¶é´æ³çï¼èæ¯æçæ°æ®åºä¸åæä¸é¨åå 为精度ä¸è¶³ï¼ç¨äºé宿¯ä¸å®å
¨ç"
+"ï¼ä¾å¦ Oracle 8ï¼ã "
#. Tag: para
-#: basic_mapping.xml:1287
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2461,94 +1843,61 @@
"generated by the database. See the discussion of <link linkend=\"mapping-"
"generated\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (å¯é - é»è®¤æ¯ <literal>never</literal>): æåºæ¶"
-"é´æ³å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæç.请åé
<xref linkend=\"mapping-generated"
-"\">generated properties</xref>ç讨论ã"
+"<literal>generated</literal>ï¼å¯é - é»è®¤æ¯ <literal>never</literal>ï¼ï¼æåº"
+"æ¶é´æ³å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæçã请åé
<xref linkend=\"mapping-generated"
+"\"/> ç讨论ã "
#. Tag: title
-#: basic_mapping.xml:1298 basic_mapping.xml:2890
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
#. Tag: para
-#: basic_mapping.xml:1299
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><Timestamp></literal> is equivalent to <literal><version "
"type=\"timestamp\"></literal>. And <literal><timestamp source=\"db"
"\"></literal> is equivalent to <literal><version type=\"dbtimestamp"
"\"></literal>"
msgstr ""
-"注æï¼<literal><timestamp></literal> å<literal><version type="
-"\"timestamp\"></literal>æ¯çä»·çãå¹¶ä¸<literal><timestamp source=\"db"
-"\"></literal>å<literal><version type=\"dbtimestamp\"></literal>æ¯ç"
-"ä»·çã"
+"注æï¼<literal><timestamp></literal> å <literal><version type="
+"\"timestamp\"></literal> æ¯çä»·çãå¹¶ä¸ <literal><timestamp source=\"db"
+"\"></literal> å <literal><version type=\"dbtimestamp\"></literal> "
+"æ¯çä»·çã "
#. Tag: title
-#: basic_mapping.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Property"
-msgstr "property"
+msgstr "Property"
#. Tag: para
-#: basic_mapping.xml:1313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><property></literal> element declares a persistent "
"JavaBean style property of the class."
msgstr ""
-"<literal><property></literal>å
ç´ ä¸ºç±»å®ä¹äºä¸ä¸ªæä¹
åç,JavaBean飿 ¼ç"
-"屿§ã"
+"<literal><property></literal> å
ç´ ä¸ºç±»å®ä¹äºä¸ä¸ªæä¹
åçãJavaBean 飿 ¼"
+"ç屿§ã "
-#. Tag: programlisting
-#: basic_mapping.xml:1335
-#, no-c-format
-msgid ""
-"<![CDATA[<property\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" type=\"typename\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" generated=\"never|insert|always\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1338
#, no-c-format
msgid ""
"<literal>name</literal>: the name of the property, with an initial lowercase "
"letter."
-msgstr "<literal>name</literal>: 屿§çåå,以å°å忝å¼å¤´ã"
+msgstr "<literal>name</literal>ï¼å±æ§çååï¼ä»¥å°å忝å¼å¤´ã"
#. Tag: para
-#: basic_mapping.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional - defaults to the property name): the "
"name of the mapped database table column. This can also be specified by "
"nested <literal><column></literal> element(s)."
msgstr ""
-"<literal>column</literal> (å¯é - é»è®¤ä¸ºå±æ§åå): 对åºçæ°æ®åºå段åã ä¹å¯"
-"以éè¿åµå¥ç<literal><column></literal>å
ç´ æå®ã"
+"<literal>column</literal>ï¼å¯é â é»è®¤ä¸ºå±æ§ååï¼ï¼å¯¹åºçæ°æ®åºå段åã ä¹å¯"
+"以éè¿åµå¥ç <literal><column></literal> å
ç´ æå®ã "
#. Tag: para
-#: basic_mapping.xml:1356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2557,71 +1906,65 @@
"whose value is initialized from some other property that maps to the same "
"column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>) : "
-"表æç¨äº<literal>UPDATE</literal> å/æ <literal>INSERT</literal> çSQLè¯å¥ä¸"
-"æ¯å¦å
å«è¿ä¸ªè¢«æ å°äºçåæ®µãè¿äºè
妿é½è®¾ç½®ä¸º<literal>false</literal> å表æ"
-"è¿æ¯ä¸ä¸ªâ夿ºæ§ï¼derivedï¼âç屿§ï¼å®ç弿¥æºäºæ å°å°åä¸ä¸ªï¼æå¤ä¸ªï¼ åæ®µç"
-"æäºå
¶ä»å±æ§ï¼æè
éè¿ä¸ä¸ªtrigger(触åå¨ï¼æå
¶ä»ç¨åºçæã"
+"<literal>update, insert</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼ï¼ "
+"表æç¨äºã<literal>UPDATE</literal> å/æ <literal>INSERT</literal> ç SQL è¯"
+"å¥ä¸æ¯å¦å
å«è¿ä¸ªè¢«æ å°äºçåæ®µãè¿äºè
妿é½è®¾ç½®ä¸º <literal>false</literal> "
+"å表æè¿æ¯ä¸ä¸ªâ夿ºæ§ï¼derivedï¼âç屿§ï¼å®ç弿¥æºäºæ å°å°åä¸ä¸ªï¼æå¤ä¸ªï¼ "
+"åæ®µçæäºå
¶ä»å±æ§ï¼æè
éè¿ä¸ä¸ª triggerï¼è§¦åå¨ï¼æå
¶ä»ç¨åºçæã "
#. Tag: para
-#: basic_mapping.xml:1365
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> property. Computed properties do "
"not have a column mapping of their own."
msgstr ""
-"<literal>formula</literal> (å¯é): ä¸ä¸ªSQL表达å¼ï¼å®ä¹äºè¿ä¸ª<emphasis>è®¡ç® "
-"ï¼computedï¼</emphasis> 屿§çå¼ã计ç®å±æ§æ²¡æåå®å¯¹åºçæ°æ®åºå段ã"
+"<literal>formula</literal>ï¼å¯éï¼ï¼ä¸ä¸ª SQL 表达å¼ï¼å®ä¹äºè¿ä¸ª<emphasis>计"
+"ç® ï¼computedï¼</emphasis> 屿§çå¼ã计ç®å±æ§æ²¡æåå®å¯¹åºçæ°æ®åºå段ã"
#. Tag: para
-#: basic_mapping.xml:1378
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this property should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (å¯é - é»è®¤ä¸º <literal>false</literal>): æå® æå®å®"
-"ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®æ¶ï¼è¿ä¸ªå±æ§æ¯å¦å»¶è¿æåï¼fetched lazilyï¼ï¼ éè¦è¿è¡æ¶åè"
-"ç å¢å¼ºï¼ã"
+"<literal>lazy</literal>ï¼å¯é â é»è®¤ä¸º <literal>false</literal>ï¼ï¼æå® æå®"
+"å®ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®æ¶ï¼è¿ä¸ªå±æ§æ¯å¦å»¶è¿æåï¼fetched lazilyï¼ï¼ éè¦è¿è¡æ¶å"
+"èç å¢å¼ºï¼ã "
#. Tag: para
-#: basic_mapping.xml:1385
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the columns. Also, allow this to be the target of a "
"<literal>property-ref</literal>."
msgstr ""
-"<literal>unique</literal> (å¯é): 使ç¨DDLä¸ºè¯¥åæ®µæ·»å å¯ä¸ç约æã åæ ·ï¼å
许"
-"å®ä½ä¸º<literal>property-ref</literal>å¼ç¨çç®æ ã"
+"<literal>unique</literal>ï¼å¯éï¼ï¼ä½¿ç¨ DDL ä¸ºè¯¥åæ®µæ·»å å¯ä¸ç约æãåæ ·ï¼å
"
+"许å®ä½ä¸º <literal>property-ref</literal> å¼ç¨çç®æ ã "
#. Tag: para
-#: basic_mapping.xml:1392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the columns."
msgstr ""
-"<literal>not-null</literal> (å¯é): 使ç¨DDLä¸ºè¯¥åæ®µæ·»å å¯å¦ä¸ºç©º"
-"ï¼nullabilityï¼ç约æã"
+"<literal>not-null</literal>ï¼å¯éï¼ï¼ä½¿ç¨ DDL ä¸ºè¯¥åæ®µæ·»å å¯å¦ä¸ºç©º"
+"ï¼nullabilityï¼ç约æã "
#. Tag: para
-#: basic_mapping.xml:1398 basic_mapping.xml:1581
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property do or do not require "
"acquisition of the optimistic lock. In other words, it determines if a "
"version increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>): "
-"æå®è¿ä¸ªå±æ§å¨åæ´æ°æ¶æ¯å¦éè¦è·å¾ä¹è§éå®ï¼optimistic lockï¼ã æ¢å¥è¯è¯´ï¼å®"
-"å³å®è¿ä¸ªå±æ§åçèæ°æ®æ¶çæ¬ï¼versionï¼ç弿¯å¦å¢é¿ã"
+"<literal>optimistic-lock</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼ï¼"
+"æå®è¿ä¸ªå±æ§å¨åæ´æ°æ¶æ¯å¦éè¦è·å¾ä¹è§éå®ï¼optimistic lockï¼ãæ¢å¥è¯è¯´ï¼å®å³"
+"å®è¿ä¸ªå±æ§åçèæ°æ®æ¶çæ¬ï¼versionï¼ç弿¯å¦å¢é¿ã "
#. Tag: para
-#: basic_mapping.xml:1406
#, fuzzy, no-c-format
msgid ""
"<literal>generated</literal> (optional - defaults to <literal>never</"
@@ -2629,57 +1972,51 @@
"database. See the discussion of <link linkend=\"mapping-generated"
"\">generated properties</link> for more information."
msgstr ""
-"<literal>generated</literal> (å¯é - é»è®¤ä¸º <literal>never</literal>): è¡¨ææ¤"
-"屿§å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæçã请åé
<xref linkend=\"mapping-generated"
-"\">generated properties</xref>ç讨论ã"
+"<literal>generated</literal>ï¼å¯é â é»è®¤ä¸º <literal>never</literal>ï¼ï¼è¡¨æ"
+"æ¤å±æ§å¼æ¯å¦å®é
䏿¯ç±æ°æ®åºçæçã请åé
<xref linkend=\"mapping-generated"
+"\"/> ç讨论ã "
#. Tag: para
-#: basic_mapping.xml:1415
#, no-c-format
msgid "<emphasis>typename</emphasis> could be:"
-msgstr "<emphasis>typename</emphasis>å¯ä»¥æ¯å¦ä¸å ç§ï¼"
+msgstr "<emphasis>typename</emphasis> å¯ä»¥æ¯å¦ä¸å ç§ï¼"
#. Tag: para
-#: basic_mapping.xml:1421
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Hibernate basic type: <literal>integer, string, character, "
"date, timestamp, float, binary, serializable, object, blob</literal> etc."
msgstr ""
-"Hibernateåºæ¬ç±»ååï¼æ¯å¦ï¼<literal>integer, string, character,date, "
-"timestamp, float, binary, serializable, object, blob</literal>ï¼ã"
+"Hibernate åºæ¬ç±»ååï¼æ¯å¦ï¼<literal>integer, string, character,date, "
+"timestamp, float, binary, serializable, object, blob</literal>ï¼ã "
#. Tag: para
-#: basic_mapping.xml:1427
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The name of a Java class with a default basic type: <literal>int, float, "
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
"literal> etc."
msgstr ""
-"ä¸ä¸ªJavaç±»çååï¼è¿ä¸ªç±»å±äºä¸ç§é»è®¤åºç¡ç±»å (æ¯å¦ï¼ <literal>int, float,"
+"ä¸ä¸ª Java ç±»çååï¼è¿ä¸ªç±»å±äºä¸ç§é»è®¤åºç¡ç±»åï¼æ¯å¦ï¼<literal>int, float,"
"char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</"
-"literal>)ã"
+"literal>)ã "
#. Tag: para
-#: basic_mapping.xml:1433
#, no-c-format
msgid "The name of a serializable Java class."
-msgstr "ä¸ä¸ªå¯ä»¥åºååçJavaç±»çååã"
+msgstr "ä¸ä¸ªå¯ä»¥åºååç Java ç±»çååã"
#. Tag: para
-#: basic_mapping.xml:1438
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class name of a custom type: <literal>com.illflow.type.MyCustomType</"
"literal> etc."
msgstr ""
-"ä¸ä¸ªèªå®ä¹ç±»åçç±»çååãï¼æ¯å¦ï¼ <literal>com.illflow.type.MyCustomType</"
-"literal>)ã"
+"ä¸ä¸ªèªå®ä¹ç±»åçç±»çååãï¼æ¯å¦ï¼<literal>com.illflow.type.MyCustomType</"
+"literal>)ã "
#. Tag: para
-#: basic_mapping.xml:1444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not specify a type, Hibernate will use reflection upon the named "
"property and guess the correct Hibernate type. Hibernate will attempt to "
@@ -2689,15 +2026,14 @@
"DATE</literal> and <literal>Hibernate.TIMESTAMP</literal>, or to specify a "
"custom type."
msgstr ""
-"å¦æä½ æ²¡ææå®ç±»åï¼Hibernarteä¼ä½¿ç¨åå°æ¥å¾å°è¿ä¸ªååç屿§ï¼ä»¥æ¤æ¥çæµæ£ç¡®"
-"çHibernateç±»åã Hibernate伿ç
§è§å2,3,4ç顺åºå¯¹å±æ§è¯»åå¨(getteræ¹æ³ï¼çè¿"
-"åç±»è¿è¡è§£éãç¶èï¼è¿è¿ä¸å¤ã å¨æäºæ
åµä¸ä½ ä»ç¶éè¦<literal>type</literal>"
-"屿§ãï¼æ¯å¦ï¼ä¸ºäºåºå«<literal>Hibernate.DATE</literal> å<literal>Hibernate."
-"TIMESTAMP</literal>,æè
ä¸ºäºæå®ä¸ä¸ªèªå®ä¹ç±»åãï¼"
+"å¦æä½ æ²¡ææå®ç±»åï¼Hibernarte ä¼ä½¿ç¨åå°æ¥å¾å°è¿ä¸ªååç屿§ï¼ä»¥æ¤æ¥çæµæ£ç¡®"
+"ç Hibernate ç±»åãHibernate 伿ç
§è§å 2ï¼3ï¼4 ç顺åºå¯¹å±æ§è¯»åå¨ï¼getteræ¹"
+"æ³ï¼çè¿åç±»è¿è¡è§£éãç¶èï¼è¿è¿ä¸å¤ã å¨æäºæ
åµä¸ä½ ä»ç¶éè¦ <literal>type</"
+"literal> 屿§ãï¼æ¯å¦ï¼ä¸ºäºåºå«<literal>Hibernate.DATE</literal> å"
+"<literal>Hibernate.TIMESTAMP</literal>,æè
ä¸ºäºæå®ä¸ä¸ªèªå®ä¹ç±»åãï¼ "
#. Tag: para
-#: basic_mapping.xml:1454
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>access</literal> attribute allows you to control how Hibernate "
"accesses the property at runtime. By default, Hibernate will call the "
@@ -2707,16 +2043,15 @@
"a class that implements the interface <literal>org.hibernate.property."
"PropertyAccessor</literal>."
msgstr ""
-"<literal>access</literal>屿§ç¨æ¥è®©ä½ æ§å¶Hibernateå¦ä½å¨è¿è¡æ¶è®¿é®å±æ§ãå¨é»"
-"认æ
åµä¸ï¼ Hibernateä¼ä½¿ç¨å±æ§çget/setæ¹æ³å¯¹ï¼pairï¼ãå¦æä½ ææ"
-"<literal>access=\"field\"</literal>, Hibernateä¼å¿½ç¥get/setæ¹æ³å¯¹ï¼ç´æ¥ä½¿ç¨å"
-"å°æ¥è®¿é®æååéãä½ ä¹å¯ä»¥æå®ä½ èªå·±ççç¥ï¼ è¿å°±éè¦ä½ èªå·±å®ç°<literal>org."
-"hibernate.property.PropertyAccessor</literal>æ¥å£ï¼ åå¨accessä¸è®¾ç½®ä½ èªå®ä¹"
-"çç¥ç±»çååã"
+"<literal>access</literal> 屿§ç¨æ¥è®©ä½ æ§å¶ Hibernate å¦ä½å¨è¿è¡æ¶è®¿é®å±æ§ãå¨"
+"é»è®¤æ
åµä¸ï¼Hibernate ä¼ä½¿ç¨å±æ§ç get/set æ¹æ³å¯¹ï¼pairï¼ãå¦æä½ ææ "
+"<literal>access=\"field\"</literal>ï¼Hibernate ä¼å¿½ç¥ get/set æ¹æ³å¯¹ï¼ç´æ¥ä½¿"
+"ç¨åå°æ¥è®¿é®æååéãä½ ä¹å¯ä»¥æå®ä½ èªå·±ççç¥ï¼è¿å°±éè¦ä½ èªå·±å®ç° "
+"<literal>org.hibernate.property.PropertyAccessor</literal> æ¥å£ï¼åå¨ access "
+"ä¸è®¾ç½®ä½ èªå®ä¹çç¥ç±»çååã "
#. Tag: para
-#: basic_mapping.xml:1463
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A powerful feature is derived properties. These properties are by definition "
"read-only. The property value is computed at load time. You declare the "
@@ -2724,152 +2059,83 @@
"literal> clause subquery in the SQL query that loads an instance:"
msgstr ""
"è¡ç屿§ï¼derive propertieï¼æ¯ä¸ä¸ªç¹å«å¼ºå¤§çç¹å¾ãè¿äºå±æ§åºè¯¥å®ä¹ä¸ºåªè¯»ï¼å±"
-"æ§å¼å¨è£
è½½æ¶è®¡ç®çæã ä½ ç¨ä¸ä¸ªSQL表达å¼çæè®¡ç®çç»æï¼å®ä¼å¨è¿ä¸ªå®ä¾è½¬è½½æ¶"
-"ç¿»è¯æä¸ä¸ªSQLæ¥è¯¢ç<literal>SELECT</literal> åæ¥è¯¢è¯å¥ã"
+"æ§å¼å¨è£
è½½æ¶è®¡ç®çæã ä½ ç¨ä¸ä¸ª SQL 表达å¼çæè®¡ç®çç»æï¼å®ä¼å¨è¿ä¸ªå®ä¾è½¬è½½"
+"æ¶ç¿»è¯æä¸ä¸ª SQL æ¥è¯¢ç <literal>SELECT</literal> åæ¥è¯¢è¯å¥ã "
-#. Tag: programlisting
-#: basic_mapping.xml:1470
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<property name=\"totalPrice\"\n"
-" formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product "
-"p\n"
-" WHERE li.productId = p.productId\n"
-" AND li.customerId = customerId\n"
-" AND li.orderNumber = orderNumber )\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1472
-#, fuzzy, no-c-format
-msgid ""
"You can reference the entity table by not declaring an alias on a particular "
"column. This would be <literal>customerId</literal> in the given example. "
"You can also use the nested <literal><formula></literal> mapping "
"element if you do not want to use the attribute."
msgstr ""
-"注æï¼ä½ å¯ä»¥ä½¿ç¨å®ä½èªå·±ç表ï¼èä¸ç¨ä¸ºè¿ä¸ªç¹å«çåå®ä¹å«åï¼ ä¸é¢ä¾åä¸ç"
+"注æï¼ä½ å¯ä»¥ä½¿ç¨å®ä½èªå·±ç表ï¼èä¸ç¨ä¸ºè¿ä¸ªç¹å«çåå®ä¹å«åï¼ä¸é¢ä¾åä¸ç "
"<literal>customerId</literal>ï¼ãåæ¶æ³¨æï¼å¦æä½ ä¸å欢使ç¨å±æ§ï¼ ä½ å¯ä»¥ä½¿ç¨"
-"åµå¥ç<literal><formula></literal>æ å°å
ç´ ã"
+"åµå¥ç <literal><formula></literal> æ å°å
ç´ ã "
#. Tag: title
-#: basic_mapping.xml:1482
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Many-to-one"
-msgstr "å¤å¯¹ä¸ï¼many-to-oneï¼"
+msgstr "å¤å¯¹ä¸ï¼many-to-oneï¼ "
#. Tag: para
-#: basic_mapping.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An ordinary association to another persistent class is declared using a "
"<literal>many-to-one</literal> element. The relational model is a many-to-"
"one association; a foreign key in one table is referencing the primary key "
"column(s) of the target table."
msgstr ""
-"éè¿<literal>many-to-one</literal>å
ç´ ,å¯ä»¥å®ä¹ä¸ç§å¸¸è§çä¸å¦ä¸ä¸ªæä¹
åç±»çå
³"
-"èã è¿ç§å
³ç³»æ¨¡åæ¯å¤å¯¹ä¸å
³èï¼å®é
䏿¯ä¸ä¸ªå¯¹è±¡å¼ç¨ï¼è¯æ³¨ï¼ï¼è¿ä¸ªè¡¨çä¸ä¸ªå¤é®"
-"å¼ç¨ç®æ 表ç 主é®å段ã"
+"éè¿ <literal>many-to-one</literal> å
ç´ ,å¯ä»¥å®ä¹ä¸ç§å¸¸è§çä¸å¦ä¸ä¸ªæä¹
åç±»ç"
+"å
³èãè¿ç§å
³ç³»æ¨¡åæ¯å¤å¯¹ä¸å
³èï¼å®é
䏿¯ä¸ä¸ªå¯¹è±¡å¼ç¨ï¼è¯æ³¨ï¼ï¼è¿ä¸ªè¡¨çä¸ä¸ªå¤"
+"é®å¼ç¨ç®æ 表ç主é®å段ã "
-#. Tag: programlisting
-#: basic_mapping.xml:1512
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one\n"
-" name=\"propertyName\"\n"
-" column=\"column_name\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" fetch=\"join|select\"\n"
-" update=\"true|false\"\n"
-" insert=\"true|false\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" unique=\"true|false\"\n"
-" not-null=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" formula=\"arbitrary SQL expression\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" index=\"index_name\"\n"
-" unique_key=\"unique_key_id\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1515 basic_mapping.xml:1696 basic_mapping.xml:1882
-#, fuzzy, no-c-format
msgid "<literal>name</literal>: the name of the property."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal>: 屿§åã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal>: 屿§çååã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>name</literal>: 屿§å"
+msgstr "<literal>name</literal>ï¼å±æ§åã"
#. Tag: para
-#: basic_mapping.xml:1520 basic_mapping.xml:2311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>column</literal> (optional): the name of the foreign key column. "
"This can also be specified by nested <literal><column></literal> "
"element(s)."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (å¯é): å¤é´å段åãå®ä¹å¯ä»¥éè¿åµå¥ç "
-"<literal><column></literal>å
ç´ æå®ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>column</literal> (å¯é): å¤é®å段çåç§°ãä¹å¯ä»¥éè¿åµå¥ç "
-"<literal><column></literal>æå®ã"
+"<literal>column</literal>ï¼å¯éï¼ï¼å¤é®å段çåç§°ãä¹å¯ä»¥éè¿åµå¥ç "
+"<literal><column></literal> æå®ã "
#. Tag: para
-#: basic_mapping.xml:1527 basic_mapping.xml:1701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the associated class."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (å¯é - é»è®¤æ¯éè¿åå°å¾å°å±æ§ç±»å): å
³èçç±»çå"
-"åã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>class</literal> (å¯é - é»è®¤æ¯éè¿åå°å¾å°ç屿§ç±»å)ï¼è¢«å
³èçç±»ç"
-"ååã"
+"<literal>class</literal>ï¼å¯é â é»è®¤æ¯éè¿åå°å¾å°ç屿§ç±»åï¼ï¼è¢«å
³èçç±»ç"
+"ååã "
#. Tag: para
-#: basic_mapping.xml:1533 basic_mapping.xml:1707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional): specifies which operations should be "
"cascaded from the parent object to the associated object."
msgstr ""
-"<literal>cascade(级è)</literal> (å¯é) 表ææä½æ¯å¦ä»ç¶å¯¹è±¡çº§èå°è¢«å
³èç对"
-"象ã"
+"<literal>cascadeï¼çº§èï¼</literal>ï¼å¯éï¼è¡¨ææä½æ¯å¦ä»ç¶å¯¹è±¡çº§èå°è¢«å
³èç"
+"对象ã "
#. Tag: para
-#: basic_mapping.xml:1539 basic_mapping.xml:1722
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>select</literal>): "
"chooses between outer-join fetching or sequential select fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>fetch</literal> (å¯é - é»è®¤ä¸º <literal>select</literal>): å¨å¤è¿æ¥"
+"<literal>fetch</literal>ï¼å¯é â é»è®¤ä¸º <literal>select</literal>ï¼ï¼å¨å¤è¿æ¥"
"æåï¼outer-join fetchingï¼ååºåéæ©æåï¼sequential select fetchingï¼ä¸¤è
ä¸"
-"éæ©å
¶ä¸ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>fetch</literal> (å¯é - é»è®¤è®¾ç½®ä¸º<literal>éæ©</literal>): å¨å¤è¿æ¥"
-"æåæè
åºåéæ©æåéæ©å
¶ä¸."
+"éæ©å
¶ä¸ã "
#. Tag: para
-#: basic_mapping.xml:1545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update, insert</literal> (optional - defaults to <literal>true</"
"literal>): specifies that the mapped columns should be included in SQL "
@@ -2878,48 +2144,44 @@
"association whose value is initialized from another property that maps to "
"the same column(s), or by a trigger or other application."
msgstr ""
-"<literal>update, insert</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>) æ"
-"å®å¯¹åºçåæ®µæ¯å¦å
å«å¨ç¨äº<literal>UPDATE</literal> å/æ <literal>INSERT</"
-"literal> çSQLè¯å¥ä¸ã妿äºè
齿¯<literal>false</literal>,åè¿æ¯ä¸ä¸ªçº¯ç²¹ç "
-"â夿ºæ§ï¼derivedï¼âå
³èï¼å®ç弿¯éè¿æ å°å°åä¸ä¸ªï¼æå¤ä¸ªï¼å段çæäºå
¶ä»å±æ§"
-"å¾å° æè
éè¿trigger(触åå¨ï¼ãæå
¶ä»ç¨åºçæã"
+"<literal>update, insert</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼æ"
+"å®å¯¹åºçåæ®µæ¯å¦å
å«å¨ç¨äº <literal>UPDATE</literal> å/æ <literal>INSERT</"
+"literal> ç SQL è¯å¥ä¸ã妿äºè
齿¯<literal>false</literal>,åè¿æ¯ä¸ä¸ªçº¯ç²¹"
+"ç â夿ºæ§ï¼derivedï¼âå
³èï¼å®ç弿¯éè¿æ å°å°åä¸ä¸ªï¼æå¤ä¸ªï¼å段çæäºå
¶ä»"
+"屿§å¾å° æè
éè¿ triggerï¼è§¦åå¨ï¼ãæå
¶ä»ç¨åºçæã "
#. Tag: para
-#: basic_mapping.xml:1554
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>: (å¯é) æå®å
³èç±»çä¸ä¸ªå±æ§ï¼è¿ä¸ªå±æ§å°ä¼å"
-"æ¬å¤é®ç¸å¯¹åºã å¦ææ²¡ææå®ï¼ä¼ä½¿ç¨å¯¹æ¹å
³èç±»ç主é®ã"
+"<literal>property-ref</literal>ï¼ï¼å¯éï¼è¢«å
³èå°æ¤å¤é®çç±»ä¸ç对åºå±æ§çå"
+"åãå¦ææ²¡ææå®ï¼è¢«å
³èç±»ç主é®å°è¢«ä½¿ç¨ã "
#. Tag: para
-#: basic_mapping.xml:1567
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. By allowing this to be the target of "
"a <literal>property-ref</literal>, you can make the association multiplicity "
"one-to-one."
msgstr ""
-"<literal>unique</literal> (å¯é): 使ç¨DDL为å¤é®å段çæä¸ä¸ªå¯ä¸çº¦æãæ¤å¤ï¼ "
-"è¿ä¹å¯ä»¥ç¨ä½<literal>property-ref</literal>çç®æ 屿§ãè¿ä½¿å
³èåæ¶å
·æ ä¸å¯¹"
-"ä¸çææã"
+"<literal>unique</literal>ï¼å¯éï¼ï¼ä½¿ç¨ DDL 为å¤é®å段çæä¸ä¸ªå¯ä¸çº¦æãæ¤"
+"å¤ï¼ è¿ä¹å¯ä»¥ç¨ä½ <literal>property-ref</literal> çç®æ 屿§ãè¿ä½¿å
³èåæ¶å
·"
+"æä¸å¯¹ä¸çææã "
#. Tag: para
-#: basic_mapping.xml:1575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): enables the DDL generation of a "
"nullability constraint for the foreign key columns."
msgstr ""
-"<literal>not-null</literal> (å¯é): 使ç¨DDL为å¤é®å段çæä¸ä¸ªé空约æã"
+"<literal>not-null</literal>ï¼å¯éï¼ï¼ä½¿ç¨ DDL 为å¤é®å段çæä¸ä¸ªé空约æã "
#. Tag: para
-#: basic_mapping.xml:1589
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -2928,45 +2190,41 @@
"instrumentation. <literal>lazy=\"false\"</literal> specifies that the "
"association will always be eagerly fetched."
msgstr ""
-"<literal>lazy</literal> (å¯é - é»è®¤ä¸º <literal>proxy</literal>): é»è®¤æ
åµ"
-"ä¸ï¼åç¹å
³èæ¯ç»è¿ä»£ççã<literal>lazy=\"no-proxy\"</literal>æå®æ¤å±æ§åºè¯¥"
+"<literal>lazy</literal>ï¼å¯é â é»è®¤ä¸º <literal>proxy</literal>ï¼ï¼é»è®¤æ
åµ"
+"ä¸ï¼åç¹å
³èæ¯ç»è¿ä»£ççã<literal>lazy=\"no-proxy\"</literal> æå®æ¤å±æ§åºè¯¥"
"å¨å®ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®æ¶åºè¯¥å»¶è¿æåï¼fetche lazilyï¼ï¼éè¦è¿è¡æ¶åèç çå¢"
-"强ï¼ã <literal>lazy=\"false\"</literal>æå®æ¤å
³èæ»æ¯è¢«é¢å
æåã"
+"强ï¼ã<literal>lazy=\"false\"</literal> æå®æ¤å
³èæ»æ¯è¢«é¢å
æåã "
#. Tag: para
-#: basic_mapping.xml:1599
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how foreign keys that reference missing rows will be "
"handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>not-found</literal> (å¯é - é»è®¤ä¸º <literal>exception</literal>): æ"
-"å®å¤é®å¼ç¨çæ°æ®ä¸å卿¶å¦ä½å¤çï¼ <literal>ignore</literal>ä¼å°è¡æ°æ®ä¸åå¨"
-"è§ä¸ºä¸ä¸ªç©ºï¼nullï¼å
³èã"
+"<literal>not-found</literal>ï¼å¯é - é»è®¤ä¸º<literal>exception</literal>ï¼ï¼æ"
+"å®å¦ä½å¤çå¼ç¨ç¼ºå¤±è¡çå¤é®ï¼<literal>ignore</literal> ä¼æç¼ºå¤±çè¡ä½ä¸ºä¸ä¸ªç©º"
+"å
³èå¤çã "
#. Tag: para
-#: basic_mapping.xml:1606 basic_mapping.xml:1760
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>entity-name</literal> (optional): the entity name of the associated "
"class."
-msgstr "<literal>entity-name</literal> (å¯é): 被å
³èçç±»çå®ä½åã"
+msgstr "<literal>entity-name</literal>ï¼å¯éï¼ï¼è¢«å
³èçç±»çå®ä½åã "
#. Tag: para
-#: basic_mapping.xml:1611
#, no-c-format
msgid ""
"<literal>formula</literal> (optional): an SQL expression that defines the "
"value for a <emphasis>computed</emphasis> foreign key."
msgstr ""
-"<literal>formula</literal> (å¯é): SQL表达å¼ï¼ç¨äºå®ä¹<emphasis>computedï¼è®¡"
-"ç®åºçï¼</emphasis>å¤é®å¼ã"
+"<literal>formula</literal>ï¼å¯éï¼ï¼SQL 表达å¼ï¼ç¨äºå®ä¹ <emphasis>computed"
+"ï¼è®¡ç®åºçï¼</emphasis>å¤é®å¼ã"
#. Tag: para
-#: basic_mapping.xml:1619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Setting a value of the <literal>cascade</literal> attribute to any "
"meaningful value other than <literal>none</literal> will propagate certain "
@@ -2976,39 +2234,29 @@
"second, special values: <literal>delete-orphan</literal>; and third,"
"<literal>all</literal> comma-separated combinations of operation names: "
"<literal>cascade=\"persist,merge,evict\"</literal> or <literal>cascade=\"all,"
-"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\"/> "
+"delete-orphan\"</literal>. See <xref linkend=\"objectstate-transitive\" /> "
"for a full explanation. Note that single valued, many-to-one and one-to-one, "
"associations do not support orphan delete."
msgstr ""
-"<literal>cascade</literal>屿§è®¾ç½®ä¸ºé¤äº<literal>none</literal>以å¤ä»»ä½ææä¹"
-"çå¼ï¼ å®å°æç¹å®çæä½ä¼ éå°å
³è对象ä¸ãè¿ä¸ªå¼å°±ä»£è¡¨çHibernateåºæ¬æä½çå"
-"ç§°ï¼ <literal>persist, merge, delete, save-update, evict, replicate, lock, "
-"refresh</literal>ï¼ ä»¥åç¹å«çå¼<literal>delete-orphan</literal>å"
-"<literal>all</literal>ï¼å¹¶ä¸å¯ä»¥ç¨éå·åé符 æ¥ç»åè¿äºæä½ï¼ä¾å¦ï¼"
-"<literal>cascade=\"persist,merge,evict\"</literal>æ <literal>cascade=\"all,"
-"delete-orphan\"</literal>ãæ´å
¨é¢çè§£é请åè<xref linkend=\"objectstate-"
-"transitive\"/>. 注æï¼åå¼å
³è (many-to-one å one-to-one å
³è) 䏿¯æå é¤å¤"
-"å¿ï¼orphan deleteï¼å é¤ä¸å被å¼ç¨çå¼ï¼."
+"<literal>cascade</literal> 屿§è®¾ç½®ä¸ºé¤äº<literal>none</literal> 以å¤ä»»ä½ææ"
+"ä¹çå¼ï¼å®å°æç¹å®çæä½ä¼ éå°å
³è对象ä¸ãè¿ä¸ªå¼å°±ä»£è¡¨ç Hibernate åºæ¬æä½ç"
+"åç§°ï¼<literal>persist, merge, delete, save-update, evict, replicate, lock, "
+"refresh</literal>ï¼ä»¥åç¹å«çå¼ <literal>delete-orphan</literal> å "
+"<literal>all</literal>ï¼å¹¶ä¸å¯ä»¥ç¨éå·åé符æ¥ç»åè¿äºæä½ï¼ä¾å¦ï¼"
+"<literal>cascade=\"persist,merge,evict\"</literal> æ <literal>cascade="
+"\"all,delete-orphan\"</literal>ãæ´å
¨é¢çè§£é请åè <xref linkend="
+"\"objectstate-transitive\"/>ãæ³¨æï¼åå¼å
³èï¼many-to-one å one-to-one å
³"
+"èï¼ä¸æ¯æå é¤å¤å¿ï¼orphan deleteï¼å é¤ä¸å被å¼ç¨çå¼ï¼ã "
#. Tag: para
-#: basic_mapping.xml:1632
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a typical <literal>many-to-one</literal> declaration:"
-msgstr "ä¸ä¸ªå
¸åçç®å<literal>many-to-one</literal>å®ä¹ä¾åï¼"
+msgstr "ä¸ä¸ªå
¸åçç®å <literal>many-to-one</literal> å®ä¹ä¾åï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1636
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1638
-#, fuzzy, no-c-format
-msgid ""
"The <literal>property-ref</literal> attribute should only be used for "
"mapping legacy data where a foreign key refers to a unique key of the "
"associated table other than the primary key. This is a complicated and "
@@ -3017,107 +2265,56 @@
"<literal>unique</literal> attribute controls Hibernate's DDL generation with "
"the SchemaExport tool."
msgstr ""
-"<literal>property-ref</literal>屿§åªåºè¯¥ç¨æ¥å¯¹ä»éç䏿¥çæ°æ®åºç³»ç»ï¼ å¯è½"
-"æå¤é®æå对æ¹å
³èè¡¨çæ¯ä¸ªé主é®å段ï¼ä½æ¯åºè¯¥æ¯ä¸ä¸ªæä¸å
³é®åï¼çæ
åµä¸ã è¿"
-"æ¯ä¸ç§ååä¸éçå
³ç³»æ¨¡åãæ¯å¦è¯´ï¼å设<literal>Product</literal>ç±»æä¸ä¸ªæä¸"
-"çåºåå·ï¼ å®å¹¶ä¸æ¯ä¸»é®ãï¼<literal>unique</literal>屿§æ§å¶Hibernateéè¿"
-"SchemaExportå·¥å
·è¿è¡çDDLçæãï¼"
+"<literal>property-ref</literal> 屿§åªåºè¯¥ç¨æ¥å¯¹ä»éç䏿¥çæ°æ®åºç³»ç»ï¼å¯è½"
+"æå¤é®æå对æ¹å
³èè¡¨çæ¯ä¸ªé主é®å段ï¼ä½æ¯åºè¯¥æ¯ä¸ä¸ªæä¸å
³é®åï¼çæ
åµä¸ãè¿"
+"æ¯ä¸ç§ååä¸éçå
³ç³»æ¨¡åãæ¯å¦è¯´ï¼å设 <literal>Product</literal> ç±»æä¸ä¸ªæ"
+"ä¸çåºåå·ï¼å®å¹¶ä¸æ¯ä¸»é®ãï¼<literal>unique</literal> 屿§æ§å¶ Hibernate é"
+"è¿ SchemaExport å·¥å
·è¿è¡ç DDL çæãï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1647
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
-"column=\"SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:1649
#, no-c-format
msgid "Then the mapping for <literal>OrderItem</literal> might use:"
-msgstr "é£ä¹å
³äº<literal>OrderItem</literal> çæ å°å¯è½æ¯ï¼"
+msgstr "é£ä¹å
³äº <literal>OrderItem</literal> çæ å°å¯è½æ¯ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1653
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
-"\"PRODUCT_SERIAL_NUMBER\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1655
-#, fuzzy, no-c-format
msgid "This is not encouraged, however."
-msgstr "å½ç¶ï¼æä»¬å³ä¸é¼å±è¿ç§ç¨æ³ã"
+msgstr "å½ç¶ï¼æä»¬å³ä¸é¼å±è¿ç§ç¨æ³ã "
#. Tag: para
-#: basic_mapping.xml:1659
#, no-c-format
msgid ""
"If the referenced unique key comprises multiple properties of the associated "
"entity, you should map the referenced properties inside a named <literal><"
"properties></literal> element."
msgstr ""
-"å¦æè¢«å¼ç¨çå¯ä¸ä¸»é®ç±å
³èå®ä½çå¤ä¸ªå±æ§ç»æï¼ä½ åºè¯¥å¨å称为<literal><"
-"properties></literal>çå
ç´ é颿 å°ææå
³èç屿§ã"
+"å¦æè¢«å¼ç¨çå¯ä¸ä¸»é®ç±å
³èå®ä½çå¤ä¸ªå±æ§ç»æï¼ä½ åºè¯¥å¨å称为 <literal><"
+"properties></literal> çå
ç´ é颿 å°ææå
³èç屿§ã"
#. Tag: para
-#: basic_mapping.xml:1664
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the referenced unique key is the property of a component, you can specify "
"a property path:"
-msgstr "åè¥è¢«å¼ç¨çå¯ä¸ä¸»é®æ¯ç»ä»¶ç屿§ï¼ä½ å¯ä»¥æå®å±æ§è·¯å¾ï¼"
+msgstr "åè¥è¢«å¼ç¨çå¯ä¸ä¸»é®æ¯ç»ä»¶ç屿§ï¼ä½ å¯ä»¥æå®å±æ§è·¯å¾ï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1668
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
-"\"OWNER_SSN\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1673
-#, fuzzy, no-c-format
msgid "One-to-one"
-msgstr "ä¸å¯¹ä¸"
+msgstr "ä¸å¯¹ä¸ "
#. Tag: para
-#: basic_mapping.xml:1675
#, no-c-format
msgid ""
"A one-to-one association to another persistent class is declared using a "
"<literal>one-to-one</literal> element."
msgstr ""
-"æä¹
å对象ä¹é´ä¸å¯¹ä¸çå
³èå
³ç³»æ¯éè¿<literal>one-to-one</literal>å
ç´ å®ä¹çã"
+"æä¹
å对象ä¹é´ä¸å¯¹ä¸çå
³èå
³ç³»æ¯éè¿ <literal>one-to-one</literal> å
ç´ å®ä¹"
+"çã"
-#. Tag: programlisting
-#: basic_mapping.xml:1693
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one\n"
-" name=\"propertyName\"\n"
-" class=\"ClassName\"\n"
-" cascade=\"cascade_style\"\n"
-" constrained=\"true|false\"\n"
-" fetch=\"join|select\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" access=\"field|property|ClassName\"\n"
-" formula=\"any SQL expression\"\n"
-" lazy=\"proxy|no-proxy|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name|@attribute-name|element/@attribute|.\"\n"
-" embed-xml=\"true|false\"\n"
-" foreign-key=\"foreign_key_name\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1713
-#, fuzzy, no-c-format
-msgid ""
"<literal>constrained</literal> (optional): specifies that a foreign key "
"constraint on the primary key of the mapped table and references the table "
"of the associated class. This option affects the order in which <literal>save"
@@ -3125,25 +2322,23 @@
"whether the association can be proxied. It is also used by the schema export "
"tool."
msgstr ""
-"<literal>constrained(约æ)</literal> (å¯é) 表æè¯¥ç±»å¯¹åºç表对åºçæ°æ®åºè¡¨ï¼"
-"å被å
³èç对象æå¯¹åºçæ°æ®åºè¡¨ä¹é´ï¼éè¿ä¸ä¸ªå¤é®å¼ç¨å¯¹ä¸»é®è¿è¡çº¦æã è¿ä¸ªé项"
-"å½±å<literal>save()</literal>å<literal>delete()</literal>å¨çº§èæ§è¡æ¶çå
å"
-"顺åºä»¥å å³å®è¯¥å
³èè½å¦è¢«å§æ(ä¹å¨schema export toolä¸è¢«ä½¿ç¨)."
+"<literal>constrainedï¼çº¦æï¼</literal>ï¼å¯éï¼è¡¨æè¯¥ç±»å¯¹åºç表对åºçæ°æ®åº"
+"表ï¼å被å
³èç对象æå¯¹åºçæ°æ®åºè¡¨ä¹é´ï¼éè¿ä¸ä¸ªå¤é®å¼ç¨å¯¹ä¸»é®è¿è¡çº¦æãè¿ä¸ª"
+"é项影å <literal>save()</literal> å <literal>delete()</literal> å¨çº§èæ§è¡"
+"æ¶çå
å顺åºä»¥åå³å®è¯¥å
³èè½å¦è¢«å§æï¼ä¹å¨ schema export tool ä¸è¢«ä½¿ç¨ï¼ã "
#. Tag: para
-#: basic_mapping.xml:1728
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): the name of a property of the "
"associated class that is joined to the primary key of this class. If not "
"specified, the primary key of the associated class is used."
msgstr ""
-"<literal>property-ref</literal>: (å¯é) æå®å
³èç±»ç屿§åï¼è¿ä¸ªå±æ§å°ä¼åæ¬"
-"ç±»ç主é®ç¸å¯¹åºãå¦ææ²¡ææå®ï¼ä¼ä½¿ç¨å¯¹æ¹å
³èç±»ç主é®ã"
+"<literal>property-ref</literal>ï¼ï¼å¯éï¼æå®å
³èç±»ç屿§åï¼è¿ä¸ªå±æ§å°ä¼åæ¬"
+"ç±»ç主é®ç¸å¯¹åºãå¦ææ²¡ææå®ï¼ä¼ä½¿ç¨å¯¹æ¹å
³èç±»ç主é®ã "
#. Tag: para
-#: basic_mapping.xml:1741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>formula</literal> (optional): almost all one-to-one associations "
"map to the primary key of the owning entity. If this is not the case, you "
@@ -3151,14 +2346,13 @@
"formula. See <literal>org.hibernate.test.onetooneformula</literal> for an "
"example."
msgstr ""
-"<literal>formula </literal> (å¯é):ç»å¤§å¤æ°ä¸å¯¹ä¸çå
³è齿åå
¶å®ä½ç主é®ãå¨"
-"ä¸äºå°è§çæ
åµä¸ï¼ ä½ å¯è½ä¼æåå
¶ä»çä¸ä¸ªæå¤ä¸ªåæ®µï¼æè
æ¯ä¸ä¸ªè¡¨è¾¾å¼ï¼è¿äºæ
"
-"åµä¸ï¼ä½ å¯ä»¥ç¨ä¸ä¸ªSQLå
¬å¼æ¥è¡¨ç¤ºã ï¼å¯ä»¥å¨org.hibernate.test.onetooneformula"
-"æ¾å°ä¾åï¼"
+"<literal>formula </literal>ï¼å¯éï¼ï¼ç»å¤§å¤æ°ä¸å¯¹ä¸çå
³è齿åå
¶å®ä½ç主é®ã"
+"å¨ä¸äºå°è§çæ
åµä¸ï¼ä½ å¯è½ä¼æåå
¶ä»çä¸ä¸ªæå¤ä¸ªåæ®µï¼æè
æ¯ä¸ä¸ªè¡¨è¾¾å¼ï¼è¿äº"
+"æ
åµä¸ï¼ä½ å¯ä»¥ç¨ä¸ä¸ª SQL å
¬å¼æ¥è¡¨ç¤ºãï¼å¯ä»¥å¨ org.hibernate.test."
+"onetooneformula æ¾å°ä¾åï¼ "
#. Tag: para
-#: basic_mapping.xml:1749
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>proxy</literal>): "
"by default, single point associations are proxied. <literal>lazy=\"no-proxy"
@@ -3169,34 +2363,30 @@
"<literal>constrained=\"false\"</literal>, proxying is impossible and "
"Hibernate will eagerly fetch the association</emphasis>."
msgstr ""
-"<literal>lazy</literal> (å¯é - é»è®¤ä¸º <literal>proxy</literal>): é»è®¤æ
åµ"
+"<literal>lazy</literal>ï¼å¯é â é»è®¤ä¸º <literal>proxy</literal>ï¼ï¼é»è®¤æ
åµ"
"ä¸ï¼åç¹å
³èæ¯ç»è¿ä»£ççã<literal>lazy=\"no-proxy\"</literal>æå®æ¤å±æ§åºè¯¥"
"å¨å®ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®æ¶åºè¯¥å»¶è¿æåï¼fetche lazilyï¼ï¼éè¦è¿è¡æ¶åèç çå¢"
"强ï¼ã <literal>lazy=\"false\"</literal>æå®æ¤å
³èæ»æ¯è¢«é¢å
æåã<emphasis>"
"注æï¼å¦æ<literal>constrained=\"false\"</literal>, ä¸å¯è½ä½¿ç¨ä»£çï¼Hibernate"
-"ä¼éåé¢å
æåï¼</emphasis>"
+"ä¼éåé¢å
æå</emphasis>ã"
#. Tag: para
-#: basic_mapping.xml:1767
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are two varieties of one-to-one associations:"
-msgstr "æä¸¤ç§ä¸åçä¸å¯¹ä¸å
³èï¼"
+msgstr "æä¸¤ç§ä¸åçä¸å¯¹ä¸å
³èï¼ "
#. Tag: para
-#: basic_mapping.xml:1771
#, no-c-format
msgid "primary key associations"
msgstr "主é®å
³è"
#. Tag: para
-#: basic_mapping.xml:1774
#, no-c-format
msgid "unique foreign key associations"
msgstr "æä¸å¤é®å
³è"
#. Tag: para
-#: basic_mapping.xml:1779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Primary key associations do not need an extra table column. If two rows are "
"related by the association, then the two table rows share the same primary "
@@ -3205,129 +2395,64 @@
msgstr ""
"主é®å
³èä¸éè¦é¢å¤çè¡¨åæ®µï¼å¦æä¸¤è¡æ¯éè¿è¿ç§ä¸å¯¹ä¸å
³ç³»ç¸å
³èçï¼é£ä¹è¿ä¸¤è¡"
"å°±å
±äº«åæ ·ç主å
³é®åå¼ãæä»¥å¦æä½ å¸æä¸¤ä¸ªå¯¹è±¡éè¿ä¸»é®ä¸å¯¹ä¸å
³èï¼ä½ å¿
须确认"
-"å®ä»¬è¢«èµäºåæ ·çæ è¯å¼ï¼"
+"å®ä»¬è¢«èµäºåæ ·çæ è¯å¼ã"
#. Tag: para
-#: basic_mapping.xml:1786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a primary key association, add the following mappings to "
"<literal>Employee</literal> and <literal>Person</literal> respectively:"
msgstr ""
-"æ¯å¦è¯´ï¼å¯¹ä¸é¢ç<literal>Employee</literal>å<literal>Person</literal>è¿è¡ä¸»"
-"é®ä¸å¯¹ä¸å
³è:"
+"æ¯å¦è¯´ï¼å¯¹ä¸é¢ç <literal>Employee</literal> å <literal>Person</literal> è¿"
+"è¡ä¸»é®ä¸å¯¹ä¸å
³èï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1791
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:1792
-#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true"
-"\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1794
-#, fuzzy, no-c-format
-msgid ""
"Ensure that the primary keys of the related rows in the PERSON and EMPLOYEE "
"tables are equal. You use a special Hibernate identifier generation strategy "
"called <literal>foreign</literal>:"
msgstr ""
-"ç°å¨æä»¬å¿
须确ä¿PERSONåEMPLOYEEä¸ç¸å
³çåæ®µæ¯ç¸ççãæä»¬ä½¿ç¨ä¸ä¸ªè¢«æä¸º"
-"<literal>foreign</literal>çç¹æ®çhibernateæ è¯ç¬¦çæçç¥ï¼"
+"ç°å¨æä»¬å¿
é¡»ç¡®ä¿ PERSON å EMPLOYEE ä¸ç¸å
³çåæ®µæ¯ç¸ççãæä»¬ä½¿ç¨ä¸ä¸ªè¢«æä¸º "
+"<literal>foreign</literal> çç¹æ®ç hibernate æ è¯ç¬¦çæçç¥ï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1800
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"foreign\">\n"
-" <param name=\"property\">employee</param>\n"
-" </generator>\n"
-" </id>\n"
-" ...\n"
-" <one-to-one name=\"employee\"\n"
-" class=\"Employee\"\n"
-" constrained=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1802
-#, fuzzy, no-c-format
-msgid ""
"A newly saved instance of <literal>Person</literal> is assigned the same "
"primary key value as the <literal>Employee</literal> instance referred with "
"the <literal>employee</literal> property of that <literal>Person</literal>."
msgstr ""
-"ä¸ä¸ªååä¿åç<literal>Person</literal>å®ä¾è¢«èµäºå该<literal>Person</"
-"literal>ç<literal>employee</literal>屿§ææåç<literal>Employee</literal>"
-"å®ä¾åæ ·çå
³é®åå¼ã"
+"ä¸ä¸ªååä¿åç <literal>Person</literal> å®ä¾è¢«èµäºå该 <literal>Person</"
+"literal> ç <literal>employee</literal> 屿§ææåç <literal>Employee</"
+"literal> å®ä¾åæ ·çå
³é®åå¼ã "
#. Tag: para
-#: basic_mapping.xml:1808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, a foreign key with a unique constraint, from "
"<literal>Employee</literal> to <literal>Person</literal>, can be expressed "
"as:"
msgstr ""
-"å¦ä¸ç§æ¹å¼æ¯ä¸ä¸ªå¤é®åä¸ä¸ªæä¸å
³é®å对åºï¼ä¸é¢ç<literal>Employee</literal>å"
-"<literal>Person</literal>çä¾åï¼å¦æä½¿ç¨è¿ç§å
³èæ¹å¼ï¼å¯ä»¥è¡¨è¾¾æï¼"
+"å¦ä¸ç§æ¹å¼æ¯ä¸ä¸ªå¤é®åä¸ä¸ªæä¸å
³é®å对åºï¼ä¸é¢ç <literal>Employee</literal> "
+"å <literal>Person</literal> çä¾åï¼å¦æä½¿ç¨è¿ç§å
³èæ¹å¼ï¼å¯ä»¥è¡¨è¾¾æï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1813
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1815
-#, fuzzy, no-c-format
-msgid ""
"This association can be made bidirectional by adding the following to the "
"<literal>Person</literal> mapping:"
msgstr ""
-"妿å¨<literal>Person</literal>çæ å°å å
¥ä¸é¢å å¥ï¼è¿ç§å
³èå°±æ¯ååçï¼"
+"å¦æå¨ <literal>Person</literal> çæ å°å å
¥ä¸é¢å å¥ï¼è¿ç§å
³èå°±æ¯ååçï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1820
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
-"\"person\"/>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:1825
-#, fuzzy, no-c-format
msgid "Natural-id"
-msgstr "èªç¶ID(natural-id)"
+msgstr "èªç¶ IDï¼natural-idï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:1827
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<natural-id mutable=\"true|false\"/>\n"
-" <property ... />\n"
-" <many-to-one ... />\n"
-" ......\n"
-"</natural-id>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1829
-#, fuzzy, no-c-format
-msgid ""
"Although we recommend the use of surrogate keys as primary keys, you should "
"try to identify natural keys for all entities. A natural key is a property "
"or combination of properties that is unique and non-null. It is also "
@@ -3338,198 +2463,152 @@
msgstr ""
"æä»¬å»ºè®®ä½¿ç¨ä»£ç¨é®ï¼é®å¼ä¸å
·å¤å®é
æä¹ï¼ä½ä¸ºä¸»é®ï¼æä»¬ä»ç¶åºè¯¥å°è¯ä¸ºææçå®"
"ä½éç¨èªç¶çé®å¼ä½ä¸ºï¼éå ââè¯è
æ³¨ï¼æ 示ãèªç¶é®ï¼natural keyï¼æ¯å个æç»åå±"
-"æ§ï¼ä»ä»¬å¿
é¡»å¯ä¸ä¸é空ã妿å®è¿æ¯ä¸å¯åçé£å°±æ´çæ³äºãå¨<literal><"
-"natural-id></literal>å
ç´ ä¸ååºèªç¶é®ç屿§ãHibernateä¼å¸®ä½ çæå¿
é¡»çå¯ä¸"
-"é®å¼åé空约æï¼ä½ çæ å°ä¼æ´å çææ¾ææï¼åææ¯self-documentingï¼èªææ³¨"
-"è§£ï¼ã"
+"æ§ï¼ä»ä»¬å¿
é¡»å¯ä¸ä¸é空ã妿å®è¿æ¯ä¸å¯åçé£å°±æ´çæ³äºãå¨ <literal><"
+"natural-id></literal> å
ç´ ä¸ååºèªç¶é®ç屿§ãHibernate ä¼å¸®ä½ çæå¿
é¡»çå¯"
+"ä¸é®å¼åé空约æï¼ä½ çæ å°ä¼æ´å çææ¾ææï¼åææ¯ self-documentingï¼èªææ³¨"
+"è§£ï¼ã "
#. Tag: para
-#: basic_mapping.xml:1838
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> to compare the natural key properties of the "
"entity."
msgstr ""
-"æä»¬å¼ºçå»ºè®®ä½ å®ç°<literal>equals()</literal> å<literal>hashCode()</literal>"
-"æ¹æ³,æ¥æ¯è¾å®ä½çèªç¶é®å±æ§ã"
+"æä»¬å¼ºçå»ºè®®ä½ å®ç° <literal>equals()</literal> å <literal>hashCode()</"
+"literal> æ¹æ³,æ¥æ¯è¾å®ä½çèªç¶é®å±æ§ã "
#. Tag: para
-#: basic_mapping.xml:1843
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This mapping is not intended for use with entities that have natural primary "
"keys."
-msgstr "è¿ä¸æ å°ä¸æ¯ä¸ºäºæèªç¶é®ä½ä¸ºä¸»é®èåå¤çã"
+msgstr "è¿ä¸æ å°ä¸æ¯ä¸ºäºæèªç¶é®ä½ä¸ºä¸»é®èåå¤çã "
#. Tag: para
-#: basic_mapping.xml:1849
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>false</"
"literal>): by default, natural identifier properties are assumed to be "
"immutable (constant)."
msgstr ""
-"<literal>mutable</literal> (å¯é, é»è®¤ä¸º<literal>false</literal>): é»è®¤æ
åµ"
-"ä¸ï¼èªç¶æ è¯å±æ§è¢«åå®ä¸ºä¸å¯åçï¼å¸¸éï¼ã"
+"<literal>mutable</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>false</literal>ï¼ï¼é»è®¤æ
åµ"
+"ä¸ï¼èªç¶æ è¯å±æ§è¢«åå®ä¸ºä¸å¯åçï¼å¸¸éï¼ã "
#. Tag: title
-#: basic_mapping.xml:1859
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Component and dynamic-component"
-msgstr "ç»ä»¶(component), 卿ç»ä»¶(dynamic-component)"
+msgstr "ç»ä»¶ï¼componentï¼å卿ç»ä»¶ï¼dynamic-componentï¼ "
#. Tag: para
-#: basic_mapping.xml:1861
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><component></literal> element maps properties of a child "
"object to columns of the table of a parent class. Components can, in turn, "
"declare their own properties, components or collections. See the \"Component"
"\" examples below:"
msgstr ""
-"<literal><component></literal>å
ç´ æå对象çä¸äºå
ç´ ä¸ç¶ç±»å¯¹åºç表çä¸"
-"äºå段æ å°èµ·æ¥ã ç¶åç»ä»¶å¯ä»¥å®ä¹å®ä»¬èªå·±ç屿§ãç»ä»¶æè
éåãåè§åé¢"
-"çâComponentsâä¸ç« ã"
+"<literal><component></literal> å
ç´ æå对象çä¸äºå
ç´ ä¸ç¶ç±»å¯¹åºç表çä¸"
+"äºå段æ å°èµ·æ¥ãç¶åç»ä»¶å¯ä»¥å®ä¹å®ä»¬èªå·±ç屿§ãç»ä»¶æè
éåãåè§åé¢"
+"çâComponentsâä¸ç« ã "
-#. Tag: programlisting
-#: basic_mapping.xml:1879
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<component\n"
-" name=\"propertyName\"\n"
-" class=\"className\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" access=\"field|property|ClassName\"\n"
-" lazy=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</component>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1887
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal> (optional - defaults to the property type "
"determined by reflection): the name of the component (child) class."
msgstr ""
-"<literal>class</literal> (å¯é - é»è®¤ä¸ºéè¿åå°å¾å°ç屿§ç±»å):ç»ä»¶(å)ç±»çå"
-"åã"
+"<literal>class</literal>ï¼å¯é â é»è®¤ä¸ºéè¿åå°å¾å°ç屿§ç±»åï¼ï¼ç»ä»¶ï¼åï¼ç±»"
+"çååã "
#. Tag: para
-#: basic_mapping.xml:1893 basic_mapping.xml:1982
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>insert</literal>: do the mapped columns appear in SQL "
"<literal>INSERTs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>insert</literal>: 被æ å°çåæ®µæ¯å¦åºç°å¨SQLç<literal>INSERT</"
-"literal>è¯å¥ä¸?\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>insert</literal>: 被æ å°çåæ®µæ¯å¦åºç°å¨SQLç <literal>INSERT</"
-"literal>è¯å¥ä¸?"
+"<literal>insert</literal>ï¼è¢«æ å°çåæ®µæ¯å¦åºç°å¨ SQL ç <literal>INSERT</"
+"literal> è¯å¥ä¸ï¼ "
#. Tag: para
-#: basic_mapping.xml:1899 basic_mapping.xml:1988
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal>: do the mapped columns appear in SQL "
"<literal>UPDATEs</literal>?"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal>: 被æ å°çåæ®µæ¯å¦åºç°å¨SQLç<literal>UPDATE</"
-"literal>è¯å¥ä¸?\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>update</literal>: 被æ å°çåæ®µæ¯å¦åºç°å¨SQLç <literal>UPDATE</"
-"literal>è¯å¥ä¸?"
+"<literal>update</literal>ï¼è¢«æ å°çåæ®µæ¯å¦åºç°å¨ SQL ç <literal>UPDATE</"
+"literal> è¯å¥ä¸ï¼ "
#. Tag: para
-#: basic_mapping.xml:1911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>false</literal>): "
"specifies that this component should be fetched lazily when the instance "
"variable is first accessed. It requires build-time bytecode instrumentation."
msgstr ""
-"<literal>lazy</literal> (å¯é - é»è®¤æ¯ <literal>false</literal>): è¡¨ææ¤ç»ä»¶"
-"åºå¨å®ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®çæ¶åå»¶è¿å è½½(éè¦ç¼è¯æ¶åèç è£
ç½®å¨)"
+"<literal>lazy</literal>ï¼å¯é â é»è®¤æ¯ <literal>false</literal>ï¼ï¼è¡¨ææ¤ç»ä»¶"
+"åºå¨å®ä¾åéç¬¬ä¸æ¬¡è¢«è®¿é®çæ¶åå»¶è¿å è½½ï¼éè¦ç¼è¯æ¶åèç è£
ç½®å¨ï¼ã"
#. Tag: para
-#: basic_mapping.xml:1918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this component either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (å¯é - é»è®¤æ¯ <literal>true</literal>):表"
-"ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
-"(Version)"
+"<literal>optimistic-lock</literal>ï¼å¯é â é»è®¤æ¯ <literal>true</literal>ï¼ï¼"
+"è¡¨ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
+"ï¼Versionï¼ã"
#. Tag: para
-#: basic_mapping.xml:1926 basic_mapping.xml:2002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional - defaults to <literal>false</literal>): "
"specifies that a unique constraint exists upon all mapped columns of the "
"component."
msgstr ""
-"<literal>unique</literal> (å¯é - é»è®¤æ¯ <literal>false</literal>):表æç»ä»¶æ "
-"å°çææå段ä¸é½æå¯ä¸æ§çº¦æ"
+"<literal>unique</literal>ï¼å¯é â é»è®¤æ¯ <literal>false</literal>ï¼ï¼è¡¨æç»ä»¶"
+"æ å°çææå段ä¸é½æå¯ä¸æ§çº¦æã"
#. Tag: para
-#: basic_mapping.xml:1935
#, no-c-format
msgid ""
"The child <literal><property></literal> tags map properties of the "
"child class to table columns."
msgstr ""
-"å
¶<literal><property></literal>åæ ç¾ä¸ºåç±»çä¸äºå±æ§ä¸è¡¨å段ä¹é´å»ºç«æ "
-"å°ã"
+"å
¶ <literal><property></literal> åæ ç¾ä¸ºåç±»çä¸äºå±æ§ä¸è¡¨å段ä¹é´å»ºç«"
+"æ å°ã"
#. Tag: para
-#: basic_mapping.xml:1940
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"<literal><component></literal>å
ç´ å
许å å
¥ä¸ä¸ª<literal><parent></"
-"literal>åå
ç´ ï¼å¨ç»ä»¶ç±»å
é¨å°±å¯ä»¥æä¸ä¸ªæåå
¶å®¹å¨çå®ä½çååå¼ç¨ã"
+"<literal><component></literal> å
ç´ å
许å å
¥ä¸ä¸ª <literal><parent>"
+"</literal> åå
ç´ ï¼å¨ç»ä»¶ç±»å
é¨å°±å¯ä»¥æä¸ä¸ªæåå
¶å®¹å¨çå®ä½çååå¼ç¨ã"
#. Tag: para
-#: basic_mapping.xml:1946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><dynamic-component></literal> element allows a "
"<literal>Map</literal> to be mapped as a component, where the property names "
-"refer to keys of the map. See <xref linkend=\"components-dynamic\"/> for "
+"refer to keys of the map. See <xref linkend=\"components-dynamic\" /> for "
"more information."
msgstr ""
-"<literal><dynamic-component></literal>å
ç´ å
许æä¸ä¸ª<literal>Map</"
-"literal>æ å°ä¸ºç»ä»¶ï¼å
¶å±æ§å对åºmapçé®å¼ã åè§<xref linkend=\"components-"
-"dynamic\"/>."
+"<literal><dynamic-component></literal> å
ç´ å
许æä¸ä¸ª <literal>Map</"
+"literal> æ å°ä¸ºç»ä»¶ï¼å
¶å±æ§åå¯¹åº map çé®å¼ãåè§ <xref linkend="
+"\"components-dynamic\"/>ã "
#. Tag: title
-#: basic_mapping.xml:1955
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Properties"
-msgstr "properties"
+msgstr "屿§ï¼Propertiesï¼"
#. Tag: para
-#: basic_mapping.xml:1957
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><properties></literal> element allows the definition of a "
"named, logical grouping of the properties of a class. The most important use "
@@ -3538,197 +2617,104 @@
"define a multi-column unique constraint. For example:"
msgstr ""
"<literal><properties></literal> å
ç´ å
许å®ä¹ä¸ä¸ªå½åçé»è¾åç»"
-"(grouping)å
å«ä¸ä¸ªç±»ä¸çå¤ä¸ªå±æ§ã è¿ä¸ªå
ç´ æéè¦çç¨å¤æ¯å
许å¤ä¸ªå±æ§çç»åä½"
-"为<literal>property-ref</literal>çç®æ (target)ã è¿ä¹æ¯å®ä¹å¤å段å¯ä¸çº¦æç"
-"ä¸ç§æ¹ä¾¿éå¾ã"
+"ï¼groupingï¼å
å«ä¸ä¸ªç±»ä¸çå¤ä¸ªå±æ§ãè¿ä¸ªå
ç´ æéè¦çç¨å¤æ¯å
许å¤ä¸ªå±æ§çç»å"
+"ä½ä¸º <literal>property-ref</literal> çç®æ ï¼targetï¼ãè¿ä¹æ¯å®ä¹å¤å段å¯ä¸çº¦"
+"æçä¸ç§æ¹ä¾¿éå¾ãä¾å¦ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:1973
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<properties\n"
-" name=\"logicalName\"\n"
-" insert=\"true|false\"\n"
-" update=\"true|false\"\n"
-" optimistic-lock=\"true|false\"\n"
-" unique=\"true|false\"\n"
-">\n"
-"\n"
-" <property ...../>\n"
-" <many-to-one .... />\n"
-" ........\n"
-"</properties>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:1976
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the logical name of the grouping. It is "
"<emphasis>not</emphasis> an actual property name."
msgstr ""
-"<literal>name</literal>: åç»çé»è¾åç§° - <emphasis>䏿¯</emphasis> å®é
屿§"
-"çåç§°."
+"<literal>name</literal>ï¼åç»çé»è¾åç§° â <emphasis>䏿¯</emphasis> å®é
屿§"
+"çåç§°ã "
#. Tag: para
-#: basic_mapping.xml:1994
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to these properties either do or do not "
"require acquisition of the optimistic lock. It determines if a version "
"increment should occur when these properties are dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (å¯é - é»è®¤æ¯ <literal>true</literal>):表"
-"ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
-"(Version)"
+"<literal>optimistic-lock</literal>ï¼å¯é â é»è®¤æ¯ <literal>true</literal>ï¼ï¼"
+"è¡¨ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
+"ï¼Versionï¼ã"
#. Tag: para
-#: basic_mapping.xml:2011
#, no-c-format
msgid ""
"For example, if we have the following <literal><properties></literal> "
"mapping:"
-msgstr "ä¾å¦ï¼å¦ææä»¬æå¦ä¸ç<literal><properties></literal>æ å°:"
+msgstr "ä¾å¦ï¼å¦ææä»¬æå¦ä¸ç <literal><properties></literal> æ å°ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:2015
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"personNumber\"/>\n"
-"\n"
-" ...\n"
-" <properties name=\"name\"\n"
-" unique=\"true\" update=\"false\">\n"
-" <property name=\"firstName\"/>\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"lastName\"/>\n"
-" </properties>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2017
-#, fuzzy, no-c-format
-msgid ""
"You might have some legacy data association that refers to this unique key "
"of the <literal>Person</literal> table, instead of to the primary key:"
msgstr ""
-"ç¶åï¼æä»¬å¯è½æä¸äºéççæ°æ®å
³èï¼å¼ç¨ <literal>Person</literal>表çè¿ä¸ªå¯"
-"ä¸é®ï¼è䏿¯ä¸»é®ã"
+"ç¶åï¼æä»¬å¯è½æä¸äºéççæ°æ®å
³èï¼å¼ç¨ <literal>Person</literal> 表çè¿ä¸ªå¯"
+"ä¸é®ï¼è䏿¯ä¸»é®ï¼"
-#. Tag: programlisting
-#: basic_mapping.xml:2022
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"person\"\n"
-" class=\"Person\" property-ref=\"name\">\n"
-" <column name=\"firstName\"/>\n"
-" <column name=\"initial\"/>\n"
-" <column name=\"lastName\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2024
-#, fuzzy, no-c-format
-msgid ""
"The use of this outside the context of mapping legacy data is not "
"recommended."
-msgstr "æä»¬å¹¶ä¸æ¨èè¿æ ·ä½¿ç¨ï¼é¤é卿 å°éçæ°æ®çæ
åµä¸ã"
+msgstr "æä»¬å¹¶ä¸æ¨èè¿æ ·ä½¿ç¨ï¼é¤é卿 å°éçæ°æ®çæ
åµä¸ã "
#. Tag: title
-#: basic_mapping.xml:2032
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Subclass"
-msgstr "åç±»(subclass)"
+msgstr "åç±»ï¼subclassï¼ "
#. Tag: para
-#: basic_mapping.xml:2034
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Polymorphic persistence requires the declaration of each subclass of the "
"root persistent class. For the table-per-class-hierarchy mapping strategy, "
"the <literal><subclass></literal> declaration is used. For example:"
msgstr ""
"æåï¼å¤ææä¹
åéè¦ä¸ºç¶ç±»çæ¯ä¸ªåç±»é½è¿è¡å®ä¹ã对äºâæ¯ä¸æ£µç±»ç»§æ¿æ 对åºä¸ä¸ª"
-"表âççç¥æ¥è¯´ï¼å°±éè¦ä½¿ç¨<literal><subclass></literal>å®ä¹ã"
+"表âççç¥æ¥è¯´ï¼å°±éè¦ä½¿ç¨ <literal><subclass></literal> å®ä¹ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2047
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<subclass\n"
-" name=\"ClassName\"\n"
-" discriminator-value=\"discriminator_value\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" extends=\"SuperclassName\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</subclass>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2050 basic_mapping.xml:2108 basic_mapping.xml:2171
-#, fuzzy, no-c-format
-msgid ""
"<literal>name</literal>: the fully qualified class name of the subclass."
-msgstr "<literal>name</literal>: åç±»çå
¨éå®åã"
+msgstr "<literal>name</literal>ï¼åç±»çå
¨éå®åã "
#. Tag: para
-#: basic_mapping.xml:2055
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>discriminator-value</literal> (optional - defaults to the class "
"name): a value that distinguishes individual subclasses."
msgstr ""
-"<literal>discriminator-value(è¾¨å«æ å¿)</literal> (å¯é - é»è®¤ä¸ºç±»å):ä¸ä¸ªç¨äº"
-"åºåæ¯ä¸ªç¬ç«çåç±»çå¼ã"
+"<literal>discriminator-valueï¼è¾¨å«æ å¿ï¼</literal>ï¼å¯é â é»è®¤ä¸ºç±»åï¼ï¼ä¸ä¸ª"
+"ç¨äºåºåæ¯ä¸ªç¬ç«çåç±»çå¼ã "
#. Tag: para
-#: basic_mapping.xml:2061
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface used for "
"lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy(代ç)</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£"
-"ç使ç¨ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
-"ç¨ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
-"ç¨ã"
+"<literal>proxy</literal>ï¼å¯éï¼ï¼æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
+"ç¨ã "
#. Tag: para
-#: basic_mapping.xml:2067
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯<literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿æå\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯ <literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯ <literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã"
+"<literal>lazy</literal>ï¼å¯éï¼é»è®¤æ¯ <literal>true</literal>ï¼ï¼è®¾ç½®ä¸º "
+"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã "
#. Tag: para
-#: basic_mapping.xml:2075
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass declares its own persistent properties and subclasses. "
"<literal><version></literal> and <literal><id></literal> "
@@ -3736,174 +2722,77 @@
"a hierarchy must define a unique <literal>discriminator-value</literal>. If "
"this is not specified, the fully qualified Java class name is used."
msgstr ""
-"æ¯ä¸ªåç±»é½åºè¯¥å®ä¹å®èªå·±çæä¹
å屿§ååç±»ã <literal><version></"
-"literal> å<literal><id></literal> 屿§å¯ä»¥ä»æ ¹ç¶ç±»ç»§æ¿ä¸æ¥ãå¨ä¸æ£µç»§æ¿"
-"æ ä¸çæ¯ä¸ªåç±»é½å¿
é¡»å®ä¹ä¸ä¸ªå¯ä¸ç<literal>discriminator-value</literal>ãå¦"
-"ææ²¡ææå®ï¼å°±ä¼ä½¿ç¨Javaç±»çå
¨éå®åã"
+"æ¯ä¸ªåç±»é½åºè¯¥å®ä¹å®èªå·±çæä¹
å屿§ååç±»ã<literal><version></"
+"literal> å <literal><id></literal> 屿§å¯ä»¥ä»æ ¹ç¶ç±»ç»§æ¿ä¸æ¥ãå¨ä¸æ£µç»§"
+"æ¿æ ä¸çæ¯ä¸ªåç±»é½å¿
é¡»å®ä¹ä¸ä¸ªå¯ä¸ç <literal>discriminator-value</literal>ã"
+"å¦ææ²¡ææå®ï¼å°±ä¼ä½¿ç¨ Java ç±»çå
¨éå®åã "
#. Tag: para
-#: basic_mapping.xml:2083 basic_mapping.xml:2141 basic_mapping.xml:2199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"For information about inheritance mappings see <xref linkend=\"inheritance\"/"
-">."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ´å¤å
³äºç»§æ¿æ å°çä¿¡æ¯, åè <xref linkend=\"inheritance\"/>ç« è.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ´å¤å
³äºç»§æ¿æ å°çä¿¡æ¯ï¼åè<xref linkend=\"inheritance\"/>ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ´å¤å
³äºç»§æ¿æ å°çä¿¡æ¯ï¼åè<xref linkend=\"inheritance\"/>ã"
+"For information about inheritance mappings see <xref linkend=\"inheritance"
+"\" />."
+msgstr "æ´å¤å
³äºç»§æ¿æ å°çä¿¡æ¯ï¼åè <xref linkend=\"inheritance\"/>ã "
#. Tag: title
-#: basic_mapping.xml:2090
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Joined-subclass"
-msgstr "è¿æ¥çåç±»(joined-subclass)"
+msgstr "è¿æ¥çåç±»ï¼joined-subclassï¼ "
#. Tag: para
-#: basic_mapping.xml:2092
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Each subclass can also be mapped to its own table. This is called the table-"
"per-subclass mapping strategy. An inherited state is retrieved by joining "
"with the table of the superclass. To do this you use the <literal><joined-"
"subclass></literal> element. For example:"
msgstr ""
-"æ¤å¤ï¼æ¯ä¸ªåç±»å¯è½è¢«æ å°å°ä»èªå·±ç表ä¸(æ¯ä¸ªåç±»ä¸ä¸ªè¡¨ççç¥)ã被继æ¿çç¶æé"
-"è¿åè¶
ç±»ç表å
³èå¾å°ãæä»¬ä½¿ç¨<literal><joined-subclass></literal>å
"
-"ç´ ã"
+"æ¤å¤ï¼æ¯ä¸ªåç±»å¯è½è¢«æ å°å°ä»èªå·±ç表ä¸ï¼æ¯ä¸ªåç±»ä¸ä¸ªè¡¨ççç¥ï¼ã被继æ¿çç¶æ"
+"éè¿åè¶
ç±»ç表å
³èå¾å°ãæä»¬ä½¿ç¨ <literal><joined-subclass></literal> "
+"å
ç´ ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2105
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<joined-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <key .... >\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</joined-subclass>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2113 basic_mapping.xml:2176
-#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the subclass table."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>table</literal>: åç±»ç表å.\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>table</literal>: åç±»ç表å"
+msgstr "<literal>table</literal>ï¼åç±»ç表åã"
#. Tag: para
-#: basic_mapping.xml:2118 basic_mapping.xml:2181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>proxy</literal> (optional): specifies a class or interface to use "
"for lazy initializing proxies."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy(代ç)</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£"
-"ç使ç¨ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
-"ç¨ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>proxy</literal> (å¯é): æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
-"ç¨ã"
+"<literal>proxy</literal>ï¼å¯éï¼ï¼æå®ä¸ä¸ªç±»æè
æ¥å£ï¼å¨å»¶è¿è£
è½½æ¶ä½ä¸ºä»£ç使"
+"ç¨ã "
#. Tag: para
-#: basic_mapping.xml:2124 basic_mapping.xml:2187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional, defaults to <literal>true</literal>): "
"setting <literal>lazy=\"false\"</literal> disables the use of lazy fetching."
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯<literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿æå\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯ <literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>lazy</literal> (å¯é, é»è®¤æ¯ <literal>true</literal>): 设置为 "
-"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã"
+"<literal>lazy</literal>ï¼å¯éï¼é»è®¤æ¯ <literal>true</literal>ï¼ï¼è®¾ç½®ä¸º "
+"<literal>lazy=\"false\"</literal> ç¦æ¢ä½¿ç¨å»¶è¿è£
è½½ã "
#. Tag: para
-#: basic_mapping.xml:2132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A discriminator column is not required for this mapping strategy. Each "
"subclass must, however, declare a table column holding the object identifier "
"using the <literal><key></literal> element. The mapping at the start "
"of the chapter would then be re-written as:"
msgstr ""
-"è¿ç§æ å°çç¥ä¸éè¦æå®è¾¨å«æ å¿(discriminator)åæ®µã使¯ï¼æ¯ä¸ä¸ªåç±»é½å¿
须使ç¨"
-"<literal><key></literal>å
ç´ æå®ä¸ä¸ªè¡¨åæ®µæ¥ææå¯¹è±¡çæ è¯ç¬¦ãæ¬ç« å¼å§"
-"çæ å°å¯ä»¥è¢«ç¨å¦ä¸æ¹å¼éåï¼"
+"è¿ç§æ å°çç¥ä¸éè¦æå®è¾¨å«æ å¿ï¼discriminatorï¼å段ã使¯ï¼æ¯ä¸ä¸ªåç±»é½å¿
须使"
+"ç¨ <literal><key></literal> å
ç´ æå®ä¸ä¸ªè¡¨åæ®µæ¥ææå¯¹è±¡çæ è¯ç¬¦ãæ¬ç« "
+"å¼å§çæ å°å¯ä»¥è¢«ç¨å¦ä¸æ¹å¼éåï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:2139
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<!DOCTYPE hibernate-mapping PUBLIC\n"
-" \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class name=\"Cat\" table=\"CATS\">\n"
-" <id name=\"id\" column=\"uid\" type=\"long\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" <property name=\"birthdate\" type=\"date\"/>\n"
-" <property name=\"color\" not-null=\"true\"/>\n"
-" <property name=\"sex\" not-null=\"true\"/>\n"
-" <property name=\"weight\"/>\n"
-" <many-to-one name=\"mate\"/>\n"
-" <set name=\"kittens\">\n"
-" <key column=\"MOTHER\"/>\n"
-" <one-to-many class=\"Cat\"/>\n"
-" </set>\n"
-" <joined-subclass name=\"DomesticCat\" table=\"DOMESTIC_CATS"
-"\">\n"
-" <key column=\"CAT\"/>\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </joined-subclass>\n"
-" </class>\n"
-"\n"
-" <class name=\"eg.Dog\">\n"
-" <!-- mapping for Dog could go here -->\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:2148
-#, fuzzy, no-c-format
msgid "Union-subclass"
-msgstr "èååç±»(union-subclass)"
+msgstr "èååç±»ï¼union-subclassï¼ "
#. Tag: para
-#: basic_mapping.xml:2150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A third option is to map only the concrete classes of an inheritance "
"hierarchy to tables. This is called the table-per-concrete-class strategy. "
@@ -3915,89 +2804,40 @@
"need to use the <literal><union-subclass></literal> mapping. For "
"example:"
msgstr ""
-"第ä¸ç§éæ©æ¯ä»
ä»
æ å°ç±»ç»§æ¿æ ä¸å
·ä½ç±»é¨åå°è¡¨ä¸(æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ççç¥)ãå
¶"
+"第ä¸ç§éæ©æ¯ä»
ä»
æ å°ç±»ç»§æ¿æ ä¸å
·ä½ç±»é¨åå°è¡¨ä¸ï¼æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ççç¥ï¼ãå
¶"
"ä¸ï¼æ¯å¼ 表å®ä¹äºç±»çæææä¹
åç¶æï¼å
æ¬ç»§æ¿çç¶æãå¨ Hibernate ä¸ï¼å¹¶ä¸éè¦"
-"å®å
¨æ¾å¼å°æ å°è¿æ ·çç»§æ¿æ ãä½ å¯ä»¥ç®åå°ä½¿ç¨åç¬ç<literal><class></"
-"literal>å®ä¹æ å°æ¯ä¸ªç±»ãç¶èï¼å¦æä½ æ³ä½¿ç¨å¤æå
³è(ä¾å¦ï¼ä¸ä¸ªå¯¹ç±»ç»§æ¿æ ä¸è¶
ç±»"
-"çå
³è)ï¼ä½ éè¦ä½¿ç¨<literal><union-subclass></literal>æ å°ã"
+"å®å
¨æ¾å¼å°æ å°è¿æ ·çç»§æ¿æ ãä½ å¯ä»¥ç®åå°ä½¿ç¨åç¬ç <literal><class></"
+"literal> å®ä¹æ å°æ¯ä¸ªç±»ãç¶èï¼å¦æä½ æ³ä½¿ç¨å¤æå
³èï¼ä¾å¦ï¼ä¸ä¸ªå¯¹ç±»ç»§æ¿æ ä¸è¶
"
+"ç±»çå
³èï¼ï¼ä½ éè¦ä½¿ç¨ <literal><union-subclass></literal> æ å°ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2168
-#, no-c-format
-msgid ""
-"<![CDATA[<union-subclass\n"
-" name=\"ClassName\"\n"
-" table=\"tablename\"\n"
-" proxy=\"ProxyInterface\"\n"
-" lazy=\"true|false\"\n"
-" dynamic-update=\"true|false\"\n"
-" dynamic-insert=\"true|false\"\n"
-" schema=\"schema\"\n"
-" catalog=\"catalog\"\n"
-" extends=\"SuperclassName\"\n"
-" abstract=\"true|false\"\n"
-" persister=\"ClassName\"\n"
-" subselect=\"SQL expression\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\">\n"
-"\n"
-" <property .... />\n"
-" .....\n"
-"</union-subclass>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2195
#, no-c-format
msgid ""
"No discriminator column or key column is required for this mapping strategy."
-msgstr "è¿ç§æ å°çç¥ä¸éè¦æå®è¾¨å«æ å¿(discriminator)åæ®µã"
+msgstr "è¿ç§æ å°çç¥ä¸éè¦æå®è¾¨å«æ å¿ï¼discriminatorï¼å段ã"
#. Tag: title
-#: basic_mapping.xml:2206
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Join"
-msgstr "è¿æ¥(join)"
+msgstr "è¿æ¥ï¼joinï¼ "
#. Tag: para
-#: basic_mapping.xml:2208
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using the <literal><join></literal> element, it is possible to map "
"properties of one class to several tables that have a one-to-one "
"relationship. For example:"
msgstr ""
"ä½¿ç¨ <literal><join></literal> å
ç´ ï¼åè¥å¨è¡¨ä¹é´åå¨ä¸å¯¹ä¸å
³è,å¯ä»¥å°"
-"ä¸ä¸ªç±»ç屿§æ å°å°å¤å¼ 表ä¸ã"
+"ä¸ä¸ªç±»ç屿§æ å°å°å¤å¼ 表ä¸ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2222
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<join\n"
-" table=\"tablename\"\n"
-" schema=\"owner\"\n"
-" catalog=\"catalog\"\n"
-" fetch=\"join|select\"\n"
-" inverse=\"true|false\"\n"
-" optional=\"true|false\">\n"
-"\n"
-" <key ... />\n"
-"\n"
-" <property ... />\n"
-" ...\n"
-"</join>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2226
-#, fuzzy, no-c-format
msgid "<literal>table</literal>: the name of the joined table."
-msgstr "<literal>table</literal>: è¢«è¿æ¥è¡¨çåç§°ã"
+msgstr "<literal>table</literal>ï¼è¢«è¿æ¥è¡¨çåç§°ã "
#. Tag: para
-#: basic_mapping.xml:2243
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"if set to <literal>join</literal>, the default, Hibernate will use an inner "
@@ -4009,169 +2849,125 @@
"instance of the subclass. Inner joins will still be used to retrieve a "
"<literal><join></literal> defined by the class and its superclasses."
msgstr ""
-"<literal>fetch</literal> (å¯é - é»è®¤æ¯ <literal>join</literal>): å¦æè®¾ç½®ä¸º"
-"é»è®¤å¼<literal>join</literal>ï¼ Hibernate å°ä½¿ç¨ä¸ä¸ªå
è¿æ¥æ¥å¾å°è¿ä¸ªç±»æå
¶è¶
"
-"ç±»å®ä¹ç<literal><join></literal>ï¼è使ç¨ä¸ä¸ªå¤è¿æ¥æ¥å¾å°å
¶åç±»å®ä¹ç"
-"<literal><join></literal>ãå¦æè®¾ç½®ä¸º<literal>select</literal>ï¼å "
-"Hibernate å°ä¸ºåç±»å®ä¹ç <literal><join></literal>使ç¨é¡ºåºéæ©ãè¿ä»
å¨"
-"ä¸è¡æ°æ®è¡¨ç¤ºä¸ä¸ªåç±»çå¯¹è±¡çæ¶åæä¼åçã对è¿ä¸ªç±»åå
¶è¶
ç±»å®ä¹ç<literal><"
-"join></literal>ï¼ä¾ç¶ä¼ä½¿ç¨å
è¿æ¥å¾å°ã"
+"<literal>fetch</literal>ï¼å¯é â é»è®¤æ¯ <literal>join</literal>ï¼ï¼å¦æè®¾ç½®ä¸º"
+"é»è®¤å¼ <literal>join</literal>ï¼Hibernate å°ä½¿ç¨ä¸ä¸ªå
è¿æ¥æ¥å¾å°è¿ä¸ªç±»æå
¶è¶
"
+"ç±»å®ä¹ç <literal><join></literal>ï¼è使ç¨ä¸ä¸ªå¤è¿æ¥æ¥å¾å°å
¶åç±»å®ä¹ç "
+"<literal><join></literal>ãå¦æè®¾ç½®ä¸º <literal>select</literal>ï¼å "
+"Hibernate å°ä¸ºåç±»å®ä¹ç <literal><join></literal> 使ç¨é¡ºåºéæ©ãè¿ä»
å¨"
+"ä¸è¡æ°æ®è¡¨ç¤ºä¸ä¸ªåç±»çå¯¹è±¡çæ¶åæä¼åçã对è¿ä¸ªç±»åå
¶è¶
ç±»å®ä¹ç "
+"<literal><join></literal>ï¼ä¾ç¶ä¼ä½¿ç¨å
è¿æ¥å¾å°ã "
#. Tag: para
-#: basic_mapping.xml:2256
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will not insert or update the properties "
"defined by this join."
msgstr ""
-"<literal>inverse</literal> (å¯é - é»è®¤æ¯ <literal>false</literal>): 妿æ"
-"å¼ï¼Hibernate ä¸ä¼æå
¥æè
æ´æ°æ¤è¿æ¥å®ä¹ç屿§ã"
+"<literal>inverse</literal>ï¼å¯é â é»è®¤æ¯ <literal>false</literal>ï¼ï¼å¦ææ"
+"å¼ï¼Hibernate ä¸ä¼æå
¥æè
æ´æ°æ¤è¿æ¥å®ä¹ç屿§ã "
#. Tag: para
-#: basic_mapping.xml:2263
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optional</literal> (optional - defaults to <literal>false</"
"literal>): if enabled, Hibernate will insert a row only if the properties "
"defined by this join are non-null. It will always use an outer join to "
"retrieve the properties."
msgstr ""
-"<literal>optional</literal> (å¯é - é»è®¤æ¯ <literal>false</literal>): 妿æ"
+"<literal>optional</literal>ï¼å¯é â é»è®¤æ¯ <literal>false</literal>ï¼ï¼å¦ææ"
"å¼ï¼Hibernate åªä¼å¨æ¤è¿æ¥å®ä¹ç屿§éç©ºæ¶æå
¥ä¸è¡æ°æ®ï¼å¹¶ä¸æ»æ¯ä½¿ç¨ä¸ä¸ªå¤è¿"
-"æ¥æ¥å¾å°è¿äºå±æ§ã"
+"æ¥æ¥å¾å°è¿äºå±æ§ã "
#. Tag: para
-#: basic_mapping.xml:2272
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, address information for a person can be mapped to a separate "
"table while preserving value type semantics for all properties:"
msgstr ""
-"ä¾å¦ï¼ä¸ä¸ªäºº(person)çå°å(address)ä¿¡æ¯å¯ä»¥è¢«æ å°å°åç¬ç表ä¸(å¹¶ä¿çææå±æ§"
-"çå¼ç±»åè¯ä¹)ï¼"
+"ä¾å¦ï¼ä¸ä¸ªäººï¼personï¼çå°åï¼addressï¼ä¿¡æ¯å¯ä»¥è¢«æ å°å°åç¬ç表ä¸ï¼å¹¶ä¿çææ"
+"屿§çå¼ç±»åè¯ä¹ï¼ï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:2277
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" table=\"PERSON\">\n"
-"\n"
-" <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
-"\n"
-" <join table=\"ADDRESS\">\n"
-" <key column=\"ADDRESS_ID\"/>\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </join>\n"
-" ...]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2279
-#, fuzzy, no-c-format
-msgid ""
"This feature is often only useful for legacy data models. We recommend fewer "
"tables than classes and a fine-grained domain model. However, it is useful "
"for switching between inheritance mapping strategies in a single hierarchy, "
"as explained later."
msgstr ""
"æ¤ç¹æ§å¸¸å¸¸å¯¹éçæ°æ®æ¨¡åæç¨ï¼æä»¬æ¨èè¡¨ä¸ªæ°æ¯ç±»ä¸ªæ°å°ï¼ä»¥åç»ç²åº¦çé¢å模"
-"åãç¶èï¼å¨åç¬çç»§æ¿æ ä¸åæ¢ç»§æ¿æ å°çç¥æ¯æç¨çï¼åé¢ä¼è§£éè¿ç¹ã"
+"åãç¶èï¼å¨åç¬çç»§æ¿æ ä¸åæ¢ç»§æ¿æ å°çç¥æ¯æç¨çï¼åé¢ä¼è§£éè¿ç¹ã "
#. Tag: title
-#: basic_mapping.xml:2289
#, no-c-format
-msgid "<title>Key</title>"
-msgstr ""
+msgid "Key"
+msgstr "Key"
#. Tag: para
-#: basic_mapping.xml:2291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><key></literal> element has featured a few times within "
"this guide. It appears anywhere the parent mapping element defines a join to "
"a new table that references the primary key of the original table. It also "
"defines the foreign key in the joined table:"
msgstr ""
-"æä»¬ç®åå·²ç»è§å°è¿<literal><key></literal>å
ç´ å¤æ¬¡äºã è¿ä¸ªå
ç´ å¨ç¶æ å°"
-"å
ç´ å®ä¹äºå¯¹æ°è¡¨çè¿æ¥ï¼å¹¶ä¸å¨è¢«è¿æ¥è¡¨ä¸å®ä¹äºä¸ä¸ªå¤é®å¼ç¨å表ç主é®çæ
åµä¸"
-"ç»å¸¸ä½¿ç¨ã"
+"æä»¬ç®åå·²ç»è§å°è¿ <literal><key></literal> å
ç´ å¤æ¬¡äºãè¿ä¸ªå
ç´ å¨ç¶æ "
+"å°å
ç´ å®ä¹äºå¯¹æ°è¡¨çè¿æ¥ï¼å¹¶ä¸å¨è¢«è¿æ¥è¡¨ä¸å®ä¹äºä¸ä¸ªå¤é®å¼ç¨å表ç主é®çæ
åµ"
+"ä¸ç»å¸¸ä½¿ç¨ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2307
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<key\n"
-" column=\"columnname\"\n"
-" on-delete=\"noaction|cascade\"\n"
-" property-ref=\"propertyName\"\n"
-" not-null=\"true|false\"\n"
-" update=\"true|false\"\n"
-" unique=\"true|false\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2318
-#, fuzzy, no-c-format
-msgid ""
"<literal>on-delete</literal> (optional - defaults to <literal>noaction</"
"literal>): specifies whether the foreign key constraint has database-level "
"cascade delete enabled."
msgstr ""
-"<literal>on-delete</literal> (å¯é, é»è®¤æ¯ <literal>noaction</literal>): 表æ"
-"å¤é®å
³èæ¯å¦æå¼æ°æ®åºçº§å«ç级èå é¤ã"
+"<literal>on-delete</literal>ï¼å¯éï¼é»è®¤æ¯ <literal>noaction</literal>ï¼ï¼è¡¨"
+"æå¤é®å
³èæ¯å¦æå¼æ°æ®åºçº§å«ç级èå é¤ã "
#. Tag: para
-#: basic_mapping.xml:2325
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>property-ref</literal> (optional): specifies that the foreign key "
"refers to columns that are not the primary key of the original table. It is "
"provided for legacy data."
msgstr ""
-"<literal>property-ref</literal> (å¯é): 表æå¤é®å¼ç¨çåæ®µä¸æ¯å表ç主é®(æä¾"
-"ç»éçæ°æ®)ã"
+"<literal>property-ref</literal>ï¼å¯éï¼ï¼è¡¨æå¤é®å¼ç¨çåæ®µä¸æ¯å表ç主é®ï¼æ"
+"ä¾ç»éçæ°æ®ï¼ã "
#. Tag: para
-#: basic_mapping.xml:2332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-null</literal> (optional): specifies that the foreign key "
"columns are not nullable. This is implied whenever the foreign key is also "
"part of the primary key."
msgstr ""
-"<literal>not-null</literal> (å¯é): 表æå¤é®çåæ®µä¸å¯ä¸ºç©º(è¿æå³çæ è®ºä½æ¶å¤"
-"é®é½æ¯ä¸»é®çä¸é¨å)ã"
+"<literal>not-null</literal>ï¼å¯éï¼ï¼è¡¨æå¤é®çåæ®µä¸å¯ä¸ºç©ºï¼è¿æå³çæ è®ºä½æ¶"
+"å¤é®é½æ¯ä¸»é®çä¸é¨åï¼ã "
#. Tag: para
-#: basic_mapping.xml:2339
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>update</literal> (optional): specifies that the foreign key should "
"never be updated. This is implied whenever the foreign key is also part of "
"the primary key."
msgstr ""
-"<literal>update</literal> (å¯é): 表æå¤é®å³ä¸åºè¯¥è¢«æ´æ°(è¿æå³çæ è®ºä½æ¶å¤é®"
-"齿¯ä¸»é®çä¸é¨å)ã"
+"<literal>update</literal>ï¼å¯éï¼ï¼è¡¨æå¤é®å³ä¸åºè¯¥è¢«æ´æ°ï¼è¿æå³çæ è®ºä½æ¶å¤"
+"é®é½æ¯ä¸»é®çä¸é¨åï¼ã "
#. Tag: para
-#: basic_mapping.xml:2346
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>unique</literal> (optional): specifies that the foreign key should "
"have a unique constraint. This is implied whenever the foreign key is also "
"the primary key."
msgstr ""
-"<literal>unique</literal> (å¯é): 表æå¤é®åºæå¯ä¸æ§çº¦æ (è¿æå³çæ è®ºä½æ¶å¤"
-"é®é½æ¯ä¸»é®çä¸é¨å)ã"
+"<literal>unique</literal>ï¼å¯éï¼ï¼è¡¨æå¤é®åºæå¯ä¸æ§çº¦æï¼è¿æå³çæ è®ºä½æ¶å¤"
+"é®é½æ¯ä¸»é®çä¸é¨åï¼ã "
#. Tag: para
-#: basic_mapping.xml:2354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For systems where delete performance is important, we recommend that all "
"keys should be defined <literal>on-delete=\"cascade\"</literal>. Hibernate "
@@ -4180,14 +2976,13 @@
"that this feature bypasses Hibernate's usual optimistic locking strategy for "
"versioned data."
msgstr ""
-"对é£äºçéå 餿§è½çç³»ç»ï¼æä»¬æ¨èææçé®é½åºè¯¥å®ä¹ä¸º<literal>on-delete="
-"\"cascade\"</literal>ï¼è¿æ · Hibernate å°ä½¿ç¨æ°æ®åºçº§ç<literal>ON CASCADE "
-"DELETE</literal>约æï¼è䏿¯å¤ä¸ª<literal>DELETE</literal>è¯å¥ã 注æï¼è¿ä¸ªç¹"
-"æ§ä¼ç»è¿ Hibernate éå¸¸å¯¹çæ¬æ°æ®(versioned data)éç¨çä¹è§éçç¥ã"
+"对é£äºçéå 餿§è½çç³»ç»ï¼æä»¬æ¨èææçé®é½åºè¯¥å®ä¹ä¸º <literal>on-delete="
+"\"cascade\"</literal>ï¼è¿æ · Hibernate å°ä½¿ç¨æ°æ®åºçº§ç <literal>ON CASCADE "
+"DELETE</literal> 约æï¼è䏿¯å¤ä¸ª <literal>DELETE</literal> è¯å¥ã注æï¼è¿ä¸ª"
+"ç¹æ§ä¼ç»è¿ Hibernate éå¸¸å¯¹çæ¬æ°æ®ï¼versioned dataï¼éç¨çä¹è§éçç¥ã "
#. Tag: para
-#: basic_mapping.xml:2362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>not-null</literal> and <literal>update</literal> attributes are "
"useful when mapping a unidirectional one-to-many association. If you map a "
@@ -4196,84 +2991,55 @@
"null=\"true\"></literal>."
msgstr ""
"<literal>not-null</literal> å <literal>update</literal> 屿§å¨æ å°ååä¸å¯¹å¤"
-"å
³èçæ¶åæç¨ãå¦æä½ æ å°ä¸ä¸ªååä¸å¯¹å¤å
³èå°é空ç(non-nullable)å¤é®ï¼ä½ "
-"<emphasis>å¿
é¡»</emphasis> ç¨<literal><key not-null=\"true\"></literal>"
-"å®ä¹æ¤é®å段ã"
+"å
³èçæ¶åæç¨ãå¦æä½ æ å°ä¸ä¸ªååä¸å¯¹å¤å
³èå°é空çï¼non-nullableï¼å¤é®ï¼ä½ "
+"<emphasis>å¿
é¡»</emphasis> ç¨ <literal><key not-null=\"true\"></"
+"literal> å®ä¹æ¤é®å段ã "
#. Tag: title
-#: basic_mapping.xml:2372
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Column and formula elements"
-msgstr "åæ®µåè§åå
ç´ ï¼column and formula elementsï¼"
+msgstr "åæ®µåè§åå
ç´ ï¼column and formula elementsï¼ "
#. Tag: para
-#: basic_mapping.xml:2373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Mapping elements which accept a <literal>column</literal> attribute will "
"alternatively accept a <literal><column></literal> subelement. "
"Likewise, <literal><formula></literal> is an alternative to the "
"<literal>formula</literal> attribute. For example:"
msgstr ""
-"任使¥å<literal>column</literal>屿§çæ å°å
ç´ é½å¯ä»¥éæ©æ¥å<literal><"
-"column></literal> åå
ç´ ãåæ ·çï¼<literal>formula</literal>åå
ç´ ä¹å¯ä»¥æ¿"
-"æ¢<literal><formula></literal>屿§ã"
+"任使¥å <literal>column</literal> 屿§çæ å°å
ç´ é½å¯ä»¥éæ©æ¥å <literal><"
+"column></literal> åå
ç´ ãåæ ·çï¼<literal>formula</literal> åå
ç´ ä¹å¯ä»¥"
+"æ¿æ¢ <literal><formula></literal> 屿§ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2379
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<column\n"
-" name=\"column_name\"\n"
-" length=\"N\"\n"
-" precision=\"N\"\n"
-" scale=\"N\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" unique-key=\"multicolumn_unique_key_name\"\n"
-" index=\"index_name\"\n"
-" sql-type=\"sql_type_name\"\n"
-" check=\"SQL expression\"\n"
-" default=\"SQL expression\"/>]]>"
+"Most of the attributes on <literal>column</literal> provide a means of "
+"tailoring the DDL during automatic schema generation. The <literal>read</"
+"literal> and <literal>write</literal> attributes allow you to specify custom "
+"SQL that Hibernate will use to access the column's value. For more on this, "
+"see the discussion of <link linkend=\"mapping-column-read-and-write\">column "
+"read and write expressions</link>."
msgstr ""
-#. Tag: programlisting
-#: basic_mapping.xml:2381
-#, no-c-format
-msgid "<![CDATA[<formula>SQL expression</formula>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2383
#, fuzzy, no-c-format
msgid ""
-"<literal>column</literal> and <literal>formula</literal> attributes can even "
-"be combined within the same property or association mapping to express, for "
-"example, exotic join conditions."
+"The <literal>column</literal> and <literal>formula</literal> elements can "
+"even be combined within the same property or association mapping to express, "
+"for example, exotic join conditions."
msgstr ""
"<literal>column</literal> å <literal>formula</literal> 屿§çè³å¯ä»¥å¨åä¸ä¸ª"
-"屿§æå
³èæ å°ä¸è¢«åå¹¶æ¥è¡¨è¾¾ï¼ä¾å¦ï¼ä¸äºå¥å¼çè¿æ¥æ¡ä»¶ã"
+"屿§æå
³èæ å°ä¸è¢«åå¹¶æ¥è¡¨è¾¾ï¼ä¾å¦ï¼ä¸äºå¥å¼çè¿æ¥æ¡ä»¶ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2389
+#. Tag: title
#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
-" <formula>'MAILING'</formula>\n"
-"</many-to-one>]]>"
-msgstr ""
-
-#. Tag: title
-#: basic_mapping.xml:2394
-#, fuzzy, no-c-format
msgid "Import"
-msgstr "å¼ç¨(import)"
+msgstr "å¼ç¨ï¼importï¼ "
#. Tag: para
-#: basic_mapping.xml:2396
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application has two persistent classes with the same name, and you "
"do not want to specify the fully qualified package name in Hibernate "
@@ -4281,52 +3047,32 @@
"<literal>auto-import=\"true\"</literal>. You can also import classes and "
"interfaces that are not explicitly mapped:"
msgstr ""
-"åè®¾ä½ çåºç¨ç¨åºæä¸¤ä¸ªåæ ·ååçæä¹
åç±»ï¼ä½æ¯ä½ 䏿³å¨Hibernateæ¥è¯¢ä¸ä½¿ç¨ä»ä»¬"
-"çå
¨éå®åãé¤äºä¾èµ<literal>auto-import=\"true\"</literal>以å¤ï¼ç±»ä¹å¯ä»¥è¢«æ¾"
-"å¼å°âimport(å¼ç¨)âãä½ çè³å¯ä»¥å¼ç¨æ²¡æè¢«æç¡®æ å°çç±»åæ¥å£ã"
+"åè®¾ä½ çåºç¨ç¨åºæä¸¤ä¸ªåæ ·ååçæä¹
åç±»ï¼ä½æ¯ä½ 䏿³å¨ Hibernate æ¥è¯¢ä¸ä½¿ç¨ä»"
+"们çå
¨éå®åãé¤äºä¾èµ <literal>auto-import=\"true\"</literal> 以å¤ï¼ç±»ä¹å¯ä»¥"
+"被æ¾å¼å°âimportï¼å¼ç¨ï¼âãä½ çè³å¯ä»¥å¼ç¨æ²¡æè¢«æç¡®æ å°çç±»åæ¥å£ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2403
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2410
-#, no-c-format
msgid ""
-"<![CDATA[<import\n"
-" class=\"ClassName\"\n"
-" rename=\"ShortName\"\n"
-"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2413
-#, fuzzy, no-c-format
-msgid ""
"<literal>class</literal>: the fully qualified class name of any Java class."
-msgstr "<literal>class</literal>: ä»»ä½Javaç±»çå
¨éå®åã"
+msgstr "<literal>class</literal>ï¼ä»»ä½ Java ç±»çå
¨éå®åã "
#. Tag: para
-#: basic_mapping.xml:2418
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>rename</literal> (optional - defaults to the unqualified class "
"name): a name that can be used in the query language."
msgstr ""
-"<literal>rename</literal> (å¯é - é»è®¤ä¸ºç±»çå
¨éå®å): 卿¥è¯¢è¯å¥ä¸å¯ä»¥ä½¿ç¨ç"
-"ååã"
+"<literal>rename</literal>ï¼å¯é â é»è®¤ä¸ºç±»çå
¨éå®åï¼ï¼å¨æ¥è¯¢è¯å¥ä¸å¯ä»¥ä½¿ç¨"
+"çååã "
#. Tag: title
-#: basic_mapping.xml:2429
#, no-c-format
-msgid "<title>Any</title>"
-msgstr ""
+msgid "Any"
+msgstr "Any"
#. Tag: para
-#: basic_mapping.xml:2431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is one more type of property mapping. The <literal><any></"
"literal> mapping element defines a polymorphic association to classes from "
@@ -4340,12 +3086,11 @@
"è¿æ¯å±æ§æ å°çåä¸ç§ç±»åã<literal><any></literal> æ å°å
ç´ å®ä¹äºä¸ç§ä»"
"å¤ä¸ªè¡¨å°ç±»ç夿å
³èãè¿ç§ç±»åçæ å°å¸¸å¸¸éè¦å¤äºä¸ä¸ªå段ã第ä¸ä¸ªå段ææè¢«å
³"
"èå®ä½çç±»åï¼å
¶ä»çåæ®µæææ è¯ç¬¦ã对è¿ç§ç±»åçå
³èæ¥è¯´ï¼ä¸å¯è½æå®ä¸ä¸ªå¤é®"
-"约æï¼æä»¥è¿å½ç¶ä¸æ¯æ å°(夿)å
³èçéå¸¸çæ¹å¼ãä½ åªåºè¯¥å¨éå¸¸ç¹æ®çæ
åµä¸ä½¿"
-"ç¨å®(æ¯å¦ï¼å®¡è®¡logï¼ç¨æ·ä¼è¯æ°æ®çç)ã"
+"约æï¼æä»¥è¿å½ç¶ä¸æ¯æ å°ï¼å¤æï¼å
³èçéå¸¸çæ¹å¼ãä½ åªåºè¯¥å¨éå¸¸ç¹æ®çæ
åµä¸"
+"使ç¨å®(æ¯å¦ï¼å®¡è®¡ logï¼ç¨æ·ä¼è¯æ°æ®çç)ã "
#. Tag: para
-#: basic_mapping.xml:2441
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>meta-type</literal> attribute allows the application to specify "
"a custom type that maps database column values to persistent classes that "
@@ -4354,110 +3099,68 @@
"names."
msgstr ""
"<literal>meta-type</literal> 屿§ä½¿å¾åºç¨ç¨åºè½æå®ä¸ä¸ªå°æ°æ®åºå段ç弿 å°å°"
-"æä¹
åç±»çèªå®ä¹ç±»åãè¿ä¸ªæä¹
åç±»å
嫿ç¨<literal>id-type</literal>æå®çæ "
-"è¯ç¬¦å±æ§ã ä½ å¿
é¡»æå®ä»meta-typeçå¼å°ç±»åçæ å°ã"
+"æä¹
åç±»çèªå®ä¹ç±»åãè¿ä¸ªæä¹
åç±»å
å«æç¨ <literal>id-type</literal> æå®ç"
+"æ è¯ç¬¦å±æ§ãä½ å¿
é¡»æå®ä» meta-type çå¼å°ç±»åçæ å°ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2448
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
-" <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
-" <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
-" <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
-" <column name=\"table_name\"/>\n"
-" <column name=\"id\"/>\n"
-"</any>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2459
-#, no-c-format
-msgid ""
-"<![CDATA[<any\n"
-" name=\"propertyName\"\n"
-" id-type=\"idtypename\"\n"
-" meta-type=\"metatypename\"\n"
-" cascade=\"cascade_style\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-">\n"
-" <meta-value ... />\n"
-" <meta-value ... />\n"
-" .....\n"
-" <column .... />\n"
-" <column .... />\n"
-" .....\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2462
#, no-c-format
msgid "<literal>name</literal>: the property name."
-msgstr "<literal>name</literal>: 屿§å"
+msgstr "<literal>name</literal>ï¼å±æ§å"
#. Tag: para
-#: basic_mapping.xml:2467
#, no-c-format
msgid "<literal>id-type</literal>: the identifier type."
-msgstr "<literal>id-type</literal>: æ è¯ç¬¦ç±»å"
+msgstr "<literal>id-type</literal>ï¼æ è¯ç¬¦ç±»å"
#. Tag: para
-#: basic_mapping.xml:2472
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>meta-type</literal> (optional - defaults to <literal>string</"
"literal>): any type that is allowed for a discriminator mapping."
msgstr ""
-"<literal>meta-type</literal> (å¯é -é»è®¤æ¯ <literal>string</literal>): å
许辨"
-"嫿 å¿(discriminator)æ å°çä»»ä½ç±»å"
+"<literal>meta-type</literal>ï¼å¯é -é»è®¤æ¯ <literal>string</literal>ï¼ï¼å
许"
+"è¾¨å«æ å¿(discriminator)æ å°çä»»ä½ç±»åã "
#. Tag: para
-#: basic_mapping.xml:2478
#, no-c-format
msgid ""
"<literal>cascade</literal> (optional- defaults to <literal>none</literal>): "
"the cascade style."
msgstr ""
-"<literal>cascade</literal> (å¯é -é»è®¤æ¯<literal>none</literal>): 级èçç±»å"
+"<literal>cascade</literal>ï¼å¯é â é»è®¤æ¯<literal>none</literal>ï¼ï¼çº§èçç±»"
+"åã"
#. Tag: para
-#: basic_mapping.xml:2490
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that updates to this property either do or do not "
"require acquisition of the optimistic lock. It defines whether a version "
"increment should occur if this property is dirty."
msgstr ""
-"<literal>optimistic-lock</literal> (å¯é -é»è®¤æ¯ <literal>true</literal>): 表"
-"ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
-"(Version)"
+"<literal>optimistic-lock</literal>ï¼å¯é â é»è®¤æ¯ <literal>true</literal>ï¼ï¼"
+"è¡¨ææ´æ°æ¤ç»ä»¶æ¯å¦éè¦è·åä¹è§éãæ¢å¥è¯è¯´ï¼å½è¿ä¸ªå±æ§åèæ¶ï¼æ¯å¦å¢å çæ¬å·"
+"ï¼Versionï¼ã"
#. Tag: title
-#: basic_mapping.xml:2505
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Hibernate types"
-msgstr "Hibernate çç±»å"
+msgstr "Hibernate çç±»å "
#. Tag: title
-#: basic_mapping.xml:2508
#, no-c-format
msgid "Entities and values"
-msgstr "å®ä½(Entities)åå¼(values)"
+msgstr "å®ä½ï¼Entitiesï¼åå¼ï¼valuesï¼"
#. Tag: para
-#: basic_mapping.xml:2510
#, no-c-format
msgid ""
"In relation to the persistence service, Java language-level objects are "
"classified into two groups:"
-msgstr ""
+msgstr "åæä¹
åæå¡ç¸æ¯ï¼Java 级å«ç对象å为两个ç»å«ï¼"
#. Tag: para
-#: basic_mapping.xml:2515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An <emphasis>entity</emphasis> exists independently of any other objects "
"holding references to the entity. Contrast this with the usual Java model, "
@@ -4469,15 +3172,15 @@
"large systems. Entities support circular and shared references. They can "
"also be versioned."
msgstr ""
-"<emphasis>å®ä½entity</emphasis> ç¬ç«äºä»»ä½ææå®ä½å¼ç¨ç对象ãä¸é常çJava模"
-"åç¸æ¯ï¼ä¸å被å¼ç¨ç对象ä¼è¢«å½ä½å徿¶éæãå®ä½å¿
须被æ¾å¼çä¿ååå é¤(é¤éä¿"
-"ååå 餿¯ä»ç¶å®ä½ååå®ä½å¼åç<emphasis>级è</emphasis>)ãè¿åODMG模åä¸å
³"
-"äºå¯¹è±¡éè¿å¯è§¦åä¿ææä¹
æ§æä¸äºä¸åââæ¯è¾èµ·æ¥æ´å æ¥è¿åºç¨ç¨åºå¯¹è±¡é常å¨ä¸ä¸ª"
-"大系ç»ä¸çä½¿ç¨æ¹æ³ãå®ä½æ¯æå¾ªç¯å¼ç¨å交åå¼ç¨ï¼å®ä»¬ä¹å¯ä»¥å ä¸çæ¬ä¿¡æ¯ã"
+"<emphasis>å®ä½entity</emphasis> ç¬ç«äºä»»ä½ææå®ä½å¼ç¨ç对象ãä¸é常ç Java "
+"模åç¸æ¯ï¼ä¸å被å¼ç¨ç对象ä¼è¢«å½ä½å徿¶éæãå®ä½å¿
须被æ¾å¼çä¿ååå é¤ï¼é¤"
+"éä¿ååå 餿¯ä»ç¶å®ä½ååå®ä½å¼åç<emphasis>级è</emphasis>ï¼ãè¿å ODMG 模"
+"åä¸å
³äºå¯¹è±¡éè¿å¯è§¦åä¿ææä¹
æ§æä¸äºä¸å â æ¯è¾èµ·æ¥æ´å æ¥è¿åºç¨ç¨åºå¯¹è±¡é常"
+"å¨ä¸ä¸ªå¤§ç³»ç»ä¸çä½¿ç¨æ¹æ³ãå®ä½æ¯æå¾ªç¯å¼ç¨å交åå¼ç¨ï¼å®ä»¬ä¹å¯ä»¥å ä¸çæ¬ä¿¡"
+"æ¯ã "
#. Tag: para
-#: basic_mapping.xml:2526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An entity's persistent state consists of references to other entities and "
"instances of <emphasis>value</emphasis> types. Values are primitives: "
@@ -4490,14 +3193,13 @@
"collections."
msgstr ""
"ä¸ä¸ªå®ä½çæä¹
ç¶æå
嫿åå
¶ä»å®ä½å<emphasis>å¼</emphasis>ç±»åå®ä¾çå¼ç¨ãå¼"
-"å¯ä»¥æ¯åå§ç±»åï¼éå(䏿¯éåä¸ç对象)ï¼ç»ä»¶æè
ç¹å®çä¸å¯å对象ãä¸å®ä½ä¸"
-"åï¼å¼(ç¹å«æ¯éååç»ä»¶)æ¯éè¿å¯è§¦åæ§æ¥è¿è¡æä¹
ååå é¤çãå 为å¼å¯¹è±¡(ååå§"
-"ç±»åæ°æ®)æ¯éçå
å«ä»ä»¬çå®ä½è被æä¹
ååå é¤çï¼ä»ä»¬ä¸è½è¢«ç¬ç«çå ä¸çæ¬ä¿¡"
-"æ¯ã弿²¡æç¬ç«çæ è¯ï¼æä»¥ä»ä»¬ä¸è½è¢«ä¸¤ä¸ªå®ä½æè
éåå
±äº«ã"
+"å¯ä»¥æ¯åå§ç±»åï¼éåï¼ä¸æ¯éåä¸ç对象ï¼ï¼ç»ä»¶æè
ç¹å®çä¸å¯å对象ãä¸å®ä½ä¸"
+"åï¼å¼ï¼ç¹å«æ¯éååç»ä»¶ï¼æ¯éè¿å¯è§¦åæ§æ¥è¿è¡æä¹
ååå é¤çãå 为å¼å¯¹è±¡ï¼å"
+"åå§ç±»åæ°æ®ï¼æ¯éçå
å«ä»ä»¬çå®ä½è被æä¹
ååå é¤çï¼ä»ä»¬ä¸è½è¢«ç¬ç«çå ä¸ç"
+"æ¬ä¿¡æ¯ã弿²¡æç¬ç«çæ è¯ï¼æä»¥ä»ä»¬ä¸è½è¢«ä¸¤ä¸ªå®ä½æè
éåå
±äº«ã "
#. Tag: para
-#: basic_mapping.xml:2537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, we have been using the term \"persistent class\" to refer to "
"entities. We will continue to do that. Not all user-defined classes with a "
@@ -4511,23 +3213,21 @@
"single instance of that class, while composition or aggregation usually "
"translates to a value type."
msgstr ""
-"ç´å°ç°å¨ï¼æä»¬é½ä¸ç´ä½¿ç¨æ¯è¯âæä¹
ç±»â(persistent class)æ¥ä»£è¡¨å®ä½ãæä»¬ä»ç¶ä¼"
-"è¿ä¹åã ç¶èä¸¥æ ¼è¯´æ¥ï¼ä¸æ¯ææçç¨æ·èªå®ä¹çï¼å¸¦ææä¹
åç¶æçç±»é½æ¯å®ä½ã"
+"ç´å°ç°å¨ï¼æä»¬é½ä¸ç´ä½¿ç¨æ¯è¯âæä¹
ç±»âï¼persistent classï¼æ¥ä»£è¡¨å®ä½ãæä»¬ä»ç¶"
+"ä¼è¿ä¹åãç¶èä¸¥æ ¼è¯´æ¥ï¼ä¸æ¯ææçç¨æ·èªå®ä¹çï¼å¸¦ææä¹
åç¶æçç±»é½æ¯å®ä½ã"
"<emphasis>ç»ä»¶</emphasis>å°±æ¯ç¨æ·èªå®ä¹ç±»ï¼å´æ¯å¼è¯ä¹çã<literal>java.lang."
-"String</literal>ç±»åçjava屿§ä¹æ¯å¼è¯ä¹çãç»äºè¿ä¸ªå®ä¹ä»¥åï¼æä»¬å¯ä»¥è¯´ææ"
-"JDKæä¾çç±»å(ç±»)齿¯å¼ç±»åçè¯ä¹ï¼èç¨äºèªå®ä¹ç±»åå¯è½è¢«æ å°ä¸ºå®ä½ç±»åæå¼ç±»"
-"åè¯ä¹ãéç¨åªç§ç±»åçè¯ä¹åå³äºå¼å人åãå¨é¢å模åä¸ï¼å¯»æ¾å®ä½ç±»çä¸ä¸ªå¥½çº¿"
-"ç´¢æ¯å
±äº«å¼ç¨æåè¿ä¸ªç±»çåä¸å®ä¾ï¼èç»åæèåé常被转å为å¼ç±»åã"
+"String</literal> ç±»åç java 屿§ä¹æ¯å¼è¯ä¹çãç»äºè¿ä¸ªå®ä¹ä»¥åï¼æä»¬å¯ä»¥è¯´æ"
+"æ JDK æä¾çç±»åï¼ç±»ï¼é½æ¯å¼ç±»åçè¯ä¹ï¼èç¨äºèªå®ä¹ç±»åå¯è½è¢«æ å°ä¸ºå®ä½ç±»å"
+"æå¼ç±»åè¯ä¹ãéç¨åªç§ç±»åçè¯ä¹åå³äºå¼å人åãå¨é¢å模åä¸ï¼å¯»æ¾å®ä½ç±»çä¸"
+"个好线索æ¯å
±äº«å¼ç¨æåè¿ä¸ªç±»çåä¸å®ä¾ï¼èç»åæèåé常被转å为å¼ç±»åã "
#. Tag: para
-#: basic_mapping.xml:2551
-#, fuzzy, no-c-format
+#, no-c-format
msgid "We will revisit both concepts throughout this reference guide."
-msgstr "æä»¬ä¼å¨æ¬ææ¡£ä¸éå¤ç¢°å°è¿ä¸¤ä¸ªæ¦å¿µã"
+msgstr "æä»¬ä¼å¨æ¬ææ¡£ä¸éå¤ç¢°å°è¿ä¸¤ä¸ªæ¦å¿µã "
#. Tag: para
-#: basic_mapping.xml:2555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge is to map the Java type system, and the developers' definition "
"of entities and value types, to the SQL/database type system. The bridge "
@@ -4540,49 +3240,45 @@
"for standard JDK value types out of the box. You can write your own mapping "
"types and implement your own custom conversion strategies."
msgstr ""
-"ææå¨äºå°javaç±»åç³»ç»(åå¼åè
å®ä¹çå®ä½åå¼ç±»å)æ å°å° SQL/æ°æ®åºç±»åç³»ç»ã"
-"Hibernateæä¾äºè¿æ¥ä¸¤ä¸ªç³»ç»ä¹é´çæ¡¥æ¢ï¼å¯¹äºå®ä½ç±»åï¼æä»¬ä½¿ç¨<literal><"
-"class></literal>, <literal><subclass></literal> ççã对äºå¼ç±»åï¼æ"
-"ä»¬ä½¿ç¨ <literal><property></literal>, <literal><component></"
-"literal> åå
¶ä»ï¼é常è·éç<literal>type</literal>屿§ãè¿ä¸ªå±æ§ç弿¯"
-"Hibernate ç<emphasis>æ å°ç±»å</emphasis>çååãHibernateæä¾äºè®¸å¤ç°æçæ "
-"å°(æ åçJDKå¼ç±»å)ãä½ ä¹å¯ä»¥ç¼åèªå·±çæ å°ç±»åå¹¶å®ç°èªå®ä¹ç忢çç¥ï¼éåæ"
-"们ä¼çå°è¿ç¹ã"
+"ææå¨äºå° java ç±»åç³»ç»(åå¼åè
å®ä¹çå®ä½åå¼ç±»å)æ å°å° SQL/æ°æ®åºç±»åç³»"
+"ç»ãHibernate æä¾äºè¿æ¥ä¸¤ä¸ªç³»ç»ä¹é´çæ¡¥æ¢ï¼å¯¹äºå®ä½ç±»åï¼æä»¬ä½¿ç¨ "
+"<literal><class></literal>ï¼<literal><subclass></literal> ççã"
+"对äºå¼ç±»åï¼æä»¬ä½¿ç¨ <literal><property></literal>ï¼<literal><"
+"component></literal> åå
¶ä»ï¼é常è·éç <literal>type</literal> 屿§ãè¿ä¸ª"
+"屿§ç弿¯Hibernate ç<emphasis>æ å°ç±»å</emphasis>çååãHibernate æä¾äºè®¸"
+"å¤ç°æçæ å°ï¼æ åç JDK å¼ç±»åï¼ãä½ ä¹å¯ä»¥ç¼åèªå·±çæ å°ç±»åå¹¶å®ç°èªå®ä¹çå"
+"æ¢çç¥ï¼éåæä»¬ä¼çå°è¿ç¹ã "
#. Tag: para
-#: basic_mapping.xml:2568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of collections, all built-in Hibernate types support null "
"semantics."
-msgstr "ææçHibernateå
建类åï¼é¤äºcollections以å¤ï¼é½æ¯æç©º(null)è¯ä¹ã"
+msgstr ""
+"ææç Hibernate å
建类åï¼é¤äº collections 以å¤ï¼é½æ¯æç©ºï¼nullï¼è¯ä¹ã "
#. Tag: title
-#: basic_mapping.xml:2575
#, no-c-format
msgid "Basic value types"
msgstr "åºæ¬å¼ç±»å"
#. Tag: para
-#: basic_mapping.xml:2577
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The built-in <emphasis>basic mapping types</emphasis> can be roughly "
"categorized into the following:"
-msgstr "å
建ç <emphasis>åºæ¬æ å°ç±»å</emphasis>å¯ä»¥å¤§è´å为 <placeholder-1/>"
+msgstr "å
ç½®ç <emphasis>basic mapping types</emphasis> å¯ä»¥å¤§è´å°å类为ï¼"
-#. Tag: literal
-#: basic_mapping.xml:2582
+#. Tag: term
#, no-c-format
msgid ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
msgstr ""
-"integer, long, short, float, double, character, byte, boolean, yes_no, "
-"true_false"
+"<literal>integer, long, short, float, double, character, byte, boolean, "
+"yes_no, true_false</literal>"
#. Tag: para
-#: basic_mapping.xml:2585
#, no-c-format
msgid ""
"Type mappings from Java primitives or wrapper classes to appropriate (vendor-"
@@ -4590,86 +3286,77 @@
"<literal>true_false</literal> are all alternative encodings for a Java "
"<literal>boolean</literal> or <literal>java.lang.Boolean</literal>."
msgstr ""
-"è¿äºç±»åé½å¯¹åºJavaçåå§ç±»åæè
å
¶å°è£
ç±»ï¼æ¥ç¬¦å(ç¹å®ååç)SQL åæ®µç±»åã"
-"<literal>boolean, yes_no</literal> å <literal>true_false</literal>齿¯Java "
-"ä¸<literal>boolean</literal> æè
<literal>java.lang.Boolean</literal>çå¦å¤è¯´"
-"æ³ã"
+"è¿äºç±»åé½å¯¹åº Java çåå§ç±»åæè
å
¶å°è£
ç±»ï¼æ¥ç¬¦åï¼ç¹å®ååçï¼SQL åæ®µç±»"
+"åã<literal>boolean, yes_no</literal> å <literal>true_false</literal> 齿¯ "
+"Java ä¸ <literal>boolean</literal> æè
<literal>java.lang.Boolean</literal> "
+"çå¦å¤è¯´æ³ã"
-#. Tag: literal
-#: basic_mapping.xml:2594
+#. Tag: term
#, no-c-format
-msgid "string"
-msgstr "string"
+msgid "<literal>string</literal>"
+msgstr "<literal>string</literal>"
#. Tag: para
-#: basic_mapping.xml:2596
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.String</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>)."
msgstr ""
-"ä»<literal>java.lang.String</literal> å° <literal>VARCHAR</literal> (æè
"
-"Oracleç <literal>VARCHAR2</literal>)çæ å°ã"
+"ä» <literal>java.lang.String</literal> å° <literal>VARCHAR</literal>ï¼æè
"
+"Oracle ç <literal>VARCHAR2</literal>ï¼çæ å°ã"
-#. Tag: literal
-#: basic_mapping.xml:2603
+#. Tag: term
#, no-c-format
-msgid "date, time, timestamp"
-msgstr "date, time, timestamp"
+msgid "<literal>date, time, timestamp</literal>"
+msgstr "<literal>date, time, timestamp</literal>"
#. Tag: para
-#: basic_mapping.xml:2605
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Date</literal> and its subclasses to "
"SQL types <literal>DATE</literal>, <literal>TIME</literal> and "
"<literal>TIMESTAMP</literal> (or equivalent)."
msgstr ""
-"ä»<literal>java.util.Date</literal>åå
¶åç±»å°SQLç±»å<literal>DATE</literal>, "
-"<literal>TIME</literal> å<literal>TIMESTAMP</literal> (æçä»·ç±»å)çæ å°ã"
+"ä» <literal>java.util.Date</literal> åå
¶åç±»å° SQL ç±»å <literal>DATE</"
+"literal>ï¼<literal>TIME</literal> å <literal>TIMESTAMP</literal>ï¼æçä»·ç±»"
+"åï¼çæ å°ã"
-#. Tag: literal
-#: basic_mapping.xml:2613
+#. Tag: term
#, no-c-format
-msgid "calendar, calendar_date"
-msgstr "calendar, calendar_date"
+msgid "<literal>calendar, calendar_date</literal>"
+msgstr "<literal>calendar, calendar_date</literal>"
#. Tag: para
-#: basic_mapping.xml:2615
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Calendar</literal> to SQL types "
"<literal>TIMESTAMP</literal> and <literal>DATE</literal> (or equivalent)."
msgstr ""
-"ä»<literal>java.util.Calendar</literal> å°SQL ç±»å<literal>TIMESTAMP</"
-"literal>å <literal>DATE</literal>(æçä»·ç±»å)çæ å°ã"
+"ä» <literal>java.util.Calendar</literal> å° SQL ç±»å <literal>TIMESTAMP</"
+"literal> å <literal>DATE</literal>ï¼æçä»·ç±»åï¼çæ å°ã"
-#. Tag: literal
-#: basic_mapping.xml:2623
+#. Tag: term
#, no-c-format
-msgid "big_decimal, big_integer"
-msgstr "big_decimal, big_integer"
+msgid "<literal>big_decimal, big_integer</literal>"
+msgstr "<literal>big_decimal, big_integer</literal>"
#. Tag: para
-#: basic_mapping.xml:2625
#, no-c-format
msgid ""
"Type mappings from <literal>java.math.BigDecimal</literal> and <literal>java."
"math.BigInteger</literal> to <literal>NUMERIC</literal> (or Oracle "
"<literal>NUMBER</literal>)."
msgstr ""
-"ä»<literal>java.math.BigDecimal</literal>å<literal>java.math.BigInteger</"
-"literal>å°<literal>NUMERIC</literal> (æè
Oracle ç<literal>NUMBER</literal>"
-"ç±»å)çæ å°ã"
+"ä» <literal>java.math.BigDecimal</literal> å <literal>java.math.BigInteger</"
+"literal> å° <literal>NUMERIC</literal>ï¼æè
Oracle ç <literal>NUMBER</"
+"literal>ç±»åï¼çæ å°ã"
-#. Tag: literal
-#: basic_mapping.xml:2633
+#. Tag: term
#, no-c-format
-msgid "locale, timezone, currency"
-msgstr "locale, timezone, currency"
+msgid "<literal>locale, timezone, currency</literal>"
+msgstr "<literal>locale, timezone, currency</literal>"
#. Tag: para
-#: basic_mapping.xml:2635
#, no-c-format
msgid ""
"Type mappings from <literal>java.util.Locale</literal>, <literal>java.util."
@@ -4679,84 +3366,76 @@
"mapped to their ISO codes. Instances of <literal>TimeZone</literal> are "
"mapped to their <literal>ID</literal>."
msgstr ""
-"ä»<literal>java.util.Locale</literal>, <literal>java.util.TimeZone</literal> "
-"å<literal>java.util.Currency</literal> å°<literal>VARCHAR</literal> (æè
"
-"Oracle ç<literal>VARCHAR2</literal>ç±»å)çæ å°. <literal>Locale</literal>å "
-"<literal>Currency</literal> çå®ä¾è¢«æ å°ä¸ºå®ä»¬çISO代ç ã<literal>TimeZone</"
-"literal>çå®ä¾è¢«å½±å°ä¸ºå®ç<literal>ID</literal>ã"
+"ä» <literal>java.util.Locale</literal>ï¼<literal>java.util.TimeZone</"
+"literal> å <literal>java.util.Currency</literal> å° <literal>VARCHAR</"
+"literal>ï¼æè
Oracle ç <literal>VARCHAR2</literal> ç±»åï¼çæ å°ã"
+"<literal>Locale</literal> å <literal>Currency</literal> çå®ä¾è¢«æ å°ä¸ºå®ä»¬"
+"ç ISO 代ç ã<literal>TimeZone</literal> çå®ä¾è¢«å½±å°ä¸ºå®ç <literal>ID</"
+"literal>ã"
-#. Tag: literal
-#: basic_mapping.xml:2647
+#. Tag: term
#, no-c-format
-msgid "class"
-msgstr "class"
+msgid "<literal>class</literal>"
+msgstr "<literal>class</literal>"
#. Tag: para
-#: basic_mapping.xml:2649
#, no-c-format
msgid ""
"A type mapping from <literal>java.lang.Class</literal> to <literal>VARCHAR</"
"literal> (or Oracle <literal>VARCHAR2</literal>). A <literal>Class</literal> "
"is mapped to its fully qualified name."
msgstr ""
-"ä»<literal>java.lang.Class</literal> å° <literal>VARCHAR</literal> (æè
"
-"Oracle ç<literal>VARCHAR2</literal>ç±»å)çæ å°ã<literal>Class</literal>被æ "
-"å°ä¸ºå®çå
¨éå®åã"
+"ä» <literal>java.lang.Class</literal> å° <literal>VARCHAR</literal>ï¼æè
"
+"Oracle ç <literal>VARCHAR2</literal> ç±»åï¼çæ å°ã<literal>Class</literal> "
+"被æ å°ä¸ºå®çå
¨éå®åã"
-#. Tag: literal
-#: basic_mapping.xml:2657
+#. Tag: term
#, no-c-format
-msgid "binary"
-msgstr "binary"
+msgid "<literal>binary</literal>"
+msgstr "<literal>binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2659
#, no-c-format
msgid "Maps byte arrays to an appropriate SQL binary type."
-msgstr "æåèæ°ç»(byte arrays)æ å°ä¸ºå¯¹åºç SQLäºè¿å¶ç±»åã"
+msgstr "æåèæ°ç»ï¼byte arraysï¼æ å°ä¸ºå¯¹åºç SQL äºè¿å¶ç±»åã"
-#. Tag: literal
-#: basic_mapping.xml:2665
+#. Tag: term
#, no-c-format
-msgid "text"
-msgstr "text"
+msgid "<literal>text</literal>"
+msgstr "<literal>text</literal>"
#. Tag: para
-#: basic_mapping.xml:2667
#, no-c-format
msgid ""
"Maps long Java strings to a SQL <literal>CLOB</literal> or <literal>TEXT</"
"literal> type."
msgstr ""
-"æé¿Javaå符串æ å°ä¸ºSQLç<literal>CLOB</literal>æè
<literal>TEXT</literal>ç±»"
-"åã"
+"æé¿ Java å符串æ å°ä¸º SQL ç <literal>CLOB</literal> æè
<literal>TEXT</"
+"literal> ç±»åã"
-#. Tag: literal
-#: basic_mapping.xml:2674
+#. Tag: term
#, no-c-format
-msgid "serializable"
-msgstr "serializable"
+msgid "<literal>serializable</literal>"
+msgstr "<literal>serializable</literal>"
#. Tag: para
-#: basic_mapping.xml:2676
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Maps serializable Java types to an appropriate SQL binary type. You can also "
"indicate the Hibernate type <literal>serializable</literal> with the name of "
"a serializable Java class or interface that does not default to a basic type."
msgstr ""
-"æå¯åºååçJavaç±»åæ å°å°å¯¹åºçSQLäºè¿å¶ç±»åãä½ ä¹å¯ä»¥ä¸ºä¸ä¸ªå¹¶éé»è®¤ä¸ºåºæ¬ç±»"
-"åçå¯åºååJavaç±»æè
æ¥å£æå®Hibernateç±»å<literal>serializable</literal>ã"
+"æå¯åºååç Java ç±»åæ å°å°å¯¹åºç SQL äºè¿å¶ç±»åãä½ ä¹å¯ä»¥ä¸ºä¸ä¸ªå¹¶éé»è®¤ä¸ºåº"
+"æ¬ç±»åçå¯åºåå Java ç±»æè
æ¥å£æå® Hibernate ç±»å <literal>serializable</"
+"literal>ã "
-#. Tag: literal
-#: basic_mapping.xml:2685
+#. Tag: term
#, no-c-format
-msgid "clob, blob"
-msgstr "clob, blob"
+msgid "<literal>clob, blob</literal>"
+msgstr "<literal>clob, blob</literal>"
#. Tag: para
-#: basic_mapping.xml:2687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for the JDBC classes <literal>java.sql.Clob</literal> and "
"<literal>java.sql.Blob</literal>. These types can be inconvenient for some "
@@ -4764,22 +3443,20 @@
"transaction. Driver support is patchy and inconsistent."
msgstr ""
"JDBC ç±» <literal>java.sql.Clob</literal> å <literal>java.sql.Blob</literal>"
-"çæ å°ãæäºç¨åºå¯è½ä¸éå使ç¨è¿ä¸ªç±»åï¼å 为blobåclob对象å¯è½å¨ä¸ä¸ªäºå¡ä¹å¤"
-"æ¯æ æ³éç¨çã(èä¸, 驱å¨ç¨åºå¯¹è¿ç§ç±»åçæ¯æå
满çè¡¥ä¸åååçç¾ã)"
+"çæ å°ãæäºç¨åºå¯è½ä¸éå使ç¨è¿ä¸ªç±»åï¼å 为 blob å clob 对象å¯è½å¨ä¸ä¸ªäºå¡"
+"ä¹å¤æ¯æ æ³éç¨çãï¼èä¸, 驱å¨ç¨åºå¯¹è¿ç§ç±»åçæ¯æå
满çè¡¥ä¸åååçç¾ãï¼ "
-#. Tag: literal
-#: basic_mapping.xml:2697
+#. Tag: term
#, no-c-format
msgid ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
msgstr ""
-"imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
-"imm_serializable, imm_binary"
+"<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date, "
+"imm_serializable, imm_binary</literal>"
#. Tag: para
-#: basic_mapping.xml:2701
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Type mappings for what are considered mutable Java types. This is where "
"Hibernate makes certain optimizations appropriate only for immutable Java "
@@ -4789,27 +3466,25 @@
"have that change made persistent, the application must assign a new, "
"nonidentical, object to the property."
msgstr ""
-"ä¸è¬æ¥è¯´ï¼æ å°ç±»å被åå®ä¸ºæ¯å¯åçJavaç±»åï¼åªæå¯¹ä¸å¯åJavaç±»åï¼Hibernateä¼"
-"éåç¹å®çä¼åæªæ½ï¼åºç¨ç¨åºä¼æè¿äºå¯¹è±¡ä½ä¸ºä¸å¯å对象å¤çãæ¯å¦ï¼ä½ ä¸åºè¯¥å¯¹"
-"ä½ä¸º<literal>imm_timestamp</literal>æ å°çDateæ§è¡<literal>Date.setTime()</"
-"literal>ãè¦æ¹å屿§çå¼ï¼å¹¶ä¸ä¿åè¿ä¸æ¹åï¼åºç¨ç¨åºå¿
须对è¿ä¸å±æ§éæ°è®¾ç½®ä¸"
-"个æ°çï¼ä¸ä¸æ ·çï¼å¯¹è±¡ã"
+"ä¸è¬æ¥è¯´ï¼æ å°ç±»å被åå®ä¸ºæ¯å¯åç Java ç±»åï¼åªæå¯¹ä¸å¯å Java ç±»åï¼"
+"Hibernate ä¼éåç¹å®çä¼åæªæ½ï¼åºç¨ç¨åºä¼æè¿äºå¯¹è±¡ä½ä¸ºä¸å¯å对象å¤çãæ¯"
+"å¦ï¼ä½ ä¸åºè¯¥å¯¹ä½ä¸º <literal>imm_timestamp</literal> æ å°ç Date æ§è¡ "
+"<literal>Date.setTime()</literal>ãè¦æ¹å屿§çå¼ï¼å¹¶ä¸ä¿åè¿ä¸æ¹åï¼åºç¨ç¨åº"
+"å¿
须对è¿ä¸å±æ§éæ°è®¾ç½®ä¸ä¸ªæ°çï¼ä¸ä¸æ ·çï¼å¯¹è±¡ã "
#. Tag: para
-#: basic_mapping.xml:2716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Unique identifiers of entities and collections can be of any basic type "
"except <literal>binary</literal>, <literal>blob</literal> and <literal>clob</"
"literal>. Composite identifiers are also allowed. See below for more "
"information."
msgstr ""
-"å®ä½åå
¶éåçå¯ä¸æ è¯å¯ä»¥æ¯é¤äº<literal>binary</literal>ã <literal>blob</"
-"literal> å <literal>clob</literal>ä¹å¤çä»»ä½åºç¡ç±»åã(èåæ è¯ä¹æ¯å
许çï¼"
-"åé¢ä¼è¯´å°ã)"
+"å®ä½åå
¶éåçå¯ä¸æ è¯å¯ä»¥æ¯é¤äº <literal>binary</literal>ã <literal>blob</"
+"literal> å <literal>clob</literal> ä¹å¤çä»»ä½åºç¡ç±»åãï¼èåæ è¯ä¹æ¯å
许"
+"çï¼åé¢ä¼è¯´å°ãï¼"
#. Tag: para
-#: basic_mapping.xml:2722
#, no-c-format
msgid ""
"The basic value types have corresponding <literal>Type</literal> constants "
@@ -4817,19 +3492,17 @@
"<literal>Hibernate.STRING</literal> represents the <literal>string</literal> "
"type."
msgstr ""
-"å¨<literal>org.hibernate.Hibernate</literal>ä¸ï¼å®ä¹äºåºç¡ç±»å对åºç"
-"<literal>Type</literal>常éãæ¯å¦ï¼<literal>Hibernate.STRING</literal>代表"
+"å¨ <literal>org.hibernate.Hibernate</literal> ä¸ï¼å®ä¹äºåºç¡ç±»å对åºç "
+"<literal>Type</literal> 常éãæ¯å¦ï¼<literal>Hibernate.STRING</literal> 代表 "
"<literal>string</literal> ç±»åã"
#. Tag: title
-#: basic_mapping.xml:2731
#, no-c-format
msgid "Custom value types"
msgstr "èªå®ä¹å¼ç±»å"
#. Tag: para
-#: basic_mapping.xml:2733
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is relatively easy for developers to create their own value types. For "
"example, you might want to persist properties of type <literal>java.lang."
@@ -4841,18 +3514,17 @@
"that is persisted to the columns <literal>FIRST_NAME</literal>, "
"<literal>INITIAL</literal>, <literal>SURNAME</literal>."
msgstr ""
-"å¼åè
å建å±äºä»ä»¬èªå·±çå¼ç±»å乿¯å¾å®¹æçãæ¯å¦è¯´ï¼ä½ å¯è½å¸ææä¹
å"
-"<literal>java.lang.BigInteger</literal>ç±»åç屿§ï¼æä¹
åæä¸º"
-"<literal>VARCHAR</literal>åæ®µãHibernate没æå
ç½®è¿æ ·ä¸ç§ç±»åãèªå®ä¹ç±»åè½å¤"
-"æ å°ä¸ä¸ªå±æ§(æéåå
ç´ )å°ä¸æ¢ä¸ä¸ªæ°æ®åºè¡¨åæ®µãæ¯å¦è¯´ï¼ä½ å¯è½æè¿æ ·çJavaå±"
-"æ§ï¼<literal>getName()</literal>/<literal>setName()</literal>ï¼è¿æ¯"
-"<literal>java.lang.String</literal>ç±»åçï¼å¯¹åºçæä¹
åå°ä¸ä¸ªå段ï¼"
-"<literal>FIRST_NAME</literal>, <literal>INITIAL</literal>, <literal>SURNAME</"
-"literal>ã"
+"å¼åè
å建å±äºä»ä»¬èªå·±çå¼ç±»å乿¯å¾å®¹æçãæ¯å¦è¯´ï¼ä½ å¯è½å¸ææä¹
å "
+"<literal>java.lang.BigInteger</literal> ç±»åç屿§ï¼æä¹
åæä¸º "
+"<literal>VARCHAR</literal> åæ®µãHibernate没æå
ç½®è¿æ ·ä¸ç§ç±»åãèªå®ä¹ç±»åè½"
+"夿 å°ä¸ä¸ªå±æ§(æéåå
ç´ )å°ä¸æ¢ä¸ä¸ªæ°æ®åºè¡¨åæ®µãæ¯å¦è¯´ï¼ä½ å¯è½æè¿æ ·ç "
+"Java 屿§ï¼<literal>getName()</literal>/<literal>setName()</literal>ï¼è¿æ¯ "
+"<literal>java.lang.String</literal> ç±»åçï¼å¯¹åºçæä¹
åå°ä¸ä¸ªå段ï¼"
+"<literal>FIRST_NAME</literal>ï¼<literal>INITIAL</literal>ï¼<literal>SURNAME</"
+"literal>ã "
#. Tag: para
-#: basic_mapping.xml:2744
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To implement a custom type, implement either <literal>org.hibernate."
"UserType</literal> or <literal>org.hibernate.CompositeUserType</literal> and "
@@ -4860,34 +3532,21 @@
"<literal>org.hibernate.test.DoubleStringType</literal> to see the kind of "
"things that are possible."
msgstr ""
-"è¦å®ç°ä¸ä¸ªèªå®ä¹ç±»åï¼å¯ä»¥å®ç°<literal>org.hibernate.UserType</literal>æ"
-"<literal>org.hibernate.CompositeUserType</literal>ä¸çä»»ä¸ä¸ªï¼å¹¶ä¸ä½¿ç¨ç±»åç"
-"Javaå
¨éå®ç±»åæ¥å®ä¹å±æ§ã请æ¥ç<literal>org.hibernate.test."
-"DoubleStringType</literal>è¿ä¸ªä¾åï¼çç宿¯æä¹åçã"
+"è¦å®ç°ä¸ä¸ªèªå®ä¹ç±»åï¼å¯ä»¥å®ç° <literal>org.hibernate.UserType</literal> æ "
+"<literal>org.hibernate.CompositeUserType</literal> ä¸çä»»ä¸ä¸ªï¼å¹¶ä¸ä½¿ç¨ç±»å"
+"ç Java å
¨éå®ç±»åæ¥å®ä¹å±æ§ã请æ¥ç <literal>org.hibernate.test."
+"DoubleStringType</literal> è¿ä¸ªä¾åï¼çç宿¯æä¹åçã "
-#. Tag: programlisting
-#: basic_mapping.xml:2752
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
-"DoubleStringType\">\n"
-" <column name=\"first_string\"/>\n"
-" <column name=\"second_string\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2754
#, no-c-format
msgid ""
"Notice the use of <literal><column></literal> tags to map a property "
"to multiple columns."
msgstr ""
-"注æä½¿ç¨<literal><column></literal>æ ç¾æ¥æä¸ä¸ªå±æ§æ å°å°å¤ä¸ªå段çå"
+"注æä½¿ç¨ <literal><column></literal> æ ç¾æ¥æä¸ä¸ªå±æ§æ å°å°å¤ä¸ªå段çå"
"æ³ã"
#. Tag: para
-#: basic_mapping.xml:2759
#, no-c-format
msgid ""
"The <literal>CompositeUserType</literal>, <literal>EnhancedUserType</"
@@ -4895,13 +3554,12 @@
"<literal>UserVersionType</literal> interfaces provide support for more "
"specialized uses."
msgstr ""
-"<literal>CompositeUserType</literal>, <literal>EnhancedUserType</literal>, "
-"<literal>UserCollectionType</literal>, å <literal>UserVersionType</literal> "
+"<literal>CompositeUserType</literal>ï¼<literal>EnhancedUserType</literal>ï¼"
+"<literal>UserCollectionType</literal> å <literal>UserVersionType</literal> "
"æ¥å£ä¸ºæ´ç¹æ®çä½¿ç¨æ¹å¼æä¾æ¯æã"
#. Tag: para
-#: basic_mapping.xml:2765
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even supply parameters to a <literal>UserType</literal> in the "
"mapping file. To do this, your <literal>UserType</literal> must implement "
@@ -4909,36 +3567,23 @@
"To supply parameters to your custom type, you can use the <literal><"
"type></literal> element in your mapping files."
msgstr ""
-"ä½ çè³å¯ä»¥å¨ä¸ä¸ªæ 尿件䏿ä¾åæ°ç»ä¸ä¸ª<literal>UserType</literal>ã 为äºè¿"
-"æ ·åï¼ä½ ç<literal>UserType</literal>å¿
é¡»å®ç°<literal>org.hibernate.usertype."
-"ParameterizedType</literal>æ¥å£ã为äºç»èªå®ä¹ç±»åæä¾åæ°ï¼ä½ å¯ä»¥å¨æ å°æä»¶ä¸"
-"使ç¨<literal><type></literal>å
ç´ ã"
+"ä½ çè³å¯ä»¥å¨ä¸ä¸ªæ 尿件䏿ä¾åæ°ç»ä¸ä¸ª <literal>UserType</literal>ã 为äºè¿"
+"æ ·åï¼ä½ ç <literal>UserType</literal> å¿
é¡»å®ç° <literal>org.hibernate."
+"usertype.ParameterizedType</literal> æ¥å£ã为äºç»èªå®ä¹ç±»åæä¾åæ°ï¼ä½ å¯ä»¥å¨"
+"æ å°æä»¶ä¸ä½¿ç¨ <literal><type></literal> å
ç´ ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2773
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"priority\">\n"
-" <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
-" <param name=\"default\">0</param>\n"
-" </type>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2775
#, no-c-format
msgid ""
"The <literal>UserType</literal> can now retrieve the value for the parameter "
"named <literal>default</literal> from the <literal>Properties</literal> "
"object passed to it."
msgstr ""
-"ç°å¨ï¼<literal>UserType</literal> å¯ä»¥ä»ä¼ å
¥ç<literal>Properties</literal>对"
-"象ä¸å¾å°<literal>default</literal> åæ°çå¼ã"
+"ç°å¨ï¼<literal>UserType</literal> å¯ä»¥ä»ä¼ å
¥ç <literal>Properties</literal> "
+"对象ä¸å¾å° <literal>default</literal> åæ°çå¼ã"
#. Tag: para
-#: basic_mapping.xml:2780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you regularly use a certain <literal>UserType</literal>, it is useful to "
"define a shorter name for it. You can do this using the <literal><"
@@ -4946,37 +3591,21 @@
"can also contain a list of default parameter values if the type is "
"parameterized."
msgstr ""
-"å¦æä½ é常é¢ç¹å°ä½¿ç¨æä¸<literal>UserType</literal>ï¼å¯ä»¥ä¸ºä»å®ä¹ä¸ä¸ªç®ç§°ãè¿"
-"å¯ä»¥éè¿ä½¿ç¨ <literal><typedef></literal>å
ç´ æ¥å®ç°ãTypedefs为ä¸èªå®ä¹"
-"ç±»åèµäºä¸ä¸ªåç§°ï¼å¹¶ä¸å¦ææ¤ç±»åæ¯åæ°åçï¼è¿å¯ä»¥å
å«ä¸ç³»åé»è®¤çåæ°å¼ã"
+"å¦æä½ é常é¢ç¹å°ä½¿ç¨æä¸ <literal>UserType</literal>ï¼å¯ä»¥ä¸ºä»å®ä¹ä¸ä¸ªç®ç§°ã"
+"è¿å¯ä»¥éè¿ä½¿ç¨ <literal><typedef></literal> å
ç´ æ¥å®ç°ãTypedefs 为ä¸èª"
+"å®ä¹ç±»åèµäºä¸ä¸ªåç§°ï¼å¹¶ä¸å¦ææ¤ç±»åæ¯åæ°åçï¼è¿å¯ä»¥å
å«ä¸ç³»åé»è®¤çåæ°"
+"å¼ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2787
-#, no-c-format
-msgid ""
-"<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
-"name=\"default_zero\">\n"
-" <param name=\"default\">0</param>\n"
-"</typedef>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: basic_mapping.xml:2789
-#, no-c-format
-msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: basic_mapping.xml:2791
#, no-c-format
msgid ""
"It is also possible to override the parameters supplied in a typedef on a "
"case-by-case basis by using type parameters on the property mapping."
-msgstr "ä¹å¯ä»¥æ ¹æ®å
·ä½æ¡ä¾éè¿å±æ§æ å°ä¸çç±»ååæ°è¦çå¨typedef䏿ä¾çåæ°ã"
+msgstr ""
+"ä¹å¯ä»¥æ ¹æ®å
·ä½æ¡ä¾éè¿å±æ§æ å°ä¸çç±»ååæ°è¦çå¨ typedef 䏿ä¾çåæ°ã"
#. Tag: para
-#: basic_mapping.xml:2796
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Even though Hibernate's rich range of built-in types and support for "
"components means you will rarely need to use a custom type, it is considered "
@@ -4989,20 +3618,18 @@
msgstr ""
"尽管 Hibernate å
建ç丰å¯çç±»åå对ç»ä»¶çæ¯ææå³çä½ å¯è½å¾å° <emphasis>éè¦"
"</emphasis>使ç¨èªå®ä¹ç±»åãä¸è¿ï¼ä¸ºé£äºå¨ä½ çåºç¨ä¸ç»å¸¸åºç°ç(éå®ä½)类使ç¨èª"
-"å®ä¹ç±»å乿¯ä¸ä¸ªå¥½æ¹æ³ãä¾å¦ï¼ä¸ä¸ª<literal>MonetaryAmount</literal>类使ç¨"
-"<literal>CompositeUserType</literal>æ¥æ å°æ¯ä¸éçéæ©ï¼è½ç¶ä»å¯ä»¥å¾å®¹æå°è¢«"
+"å®ä¹ç±»å乿¯ä¸ä¸ªå¥½æ¹æ³ãä¾å¦ï¼ä¸ä¸ª <literal>MonetaryAmount</literal> ç±»ä½¿ç¨ "
+"<literal>CompositeUserType</literal> æ¥æ å°æ¯ä¸éçéæ©ï¼è½ç¶ä»å¯ä»¥å¾å®¹æå°è¢«"
"æ å°æç»ä»¶ãè¿æ ·åç卿ºä¹ä¸æ¯æ½è±¡ã使ç¨èªå®ä¹ç±»åï¼ä»¥ååè¥ä½ æ¹å表示éé¢ç"
-"æ¹æ³æ¶ï¼å®å¯ä»¥ä¿è¯æ å°æä»¶ä¸éè¦ä¿®æ¹ã"
+"æ¹æ³æ¶ï¼å®å¯ä»¥ä¿è¯æ å°æä»¶ä¸éè¦ä¿®æ¹ã "
#. Tag: title
-#: basic_mapping.xml:2812
#, no-c-format
msgid "Mapping a class more than once"
msgstr "夿¬¡æ å°åä¸ä¸ªç±»"
#. Tag: para
-#: basic_mapping.xml:2813
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to provide more than one mapping for a particular persistent "
"class. In this case, you must specify an <emphasis>entity name</emphasis> to "
@@ -5011,53 +3638,27 @@
"entity name when working with persistent objects, when writing queries, or "
"when mapping associations to the named entity."
msgstr ""
-"对ç¹å®çæä¹
åç±»ï¼æ å°å¤æ¬¡æ¯å
许çãè¿ç§æ
å½¢ä¸ï¼ä½ å¿
é¡»æå®<emphasis>entity "
-"name</emphasis>æ¥åºå«ä¸åæ å°å®ä½ç对象å®ä¾ãï¼é»è®¤æ
åµä¸ï¼å®ä½åååç±»åæ¯ç¸"
-"åçãï¼ Hibernate卿使ä¹
å对象ãç¼åæ¥è¯¢æ¡ä»¶ï¼æè
æå
³èæ å°å°æå®å®ä½"
-"æ¶ï¼å
è®¸ä½ æå®è¿ä¸ªentity nameï¼å®ä½ååï¼ã"
+"对ç¹å®çæä¹
åç±»ï¼æ å°å¤æ¬¡æ¯å
许çãè¿ç§æ
å½¢ä¸ï¼ä½ å¿
é¡»æå® <emphasis>entity "
+"name</emphasis> æ¥åºå«ä¸åæ å°å®ä½ç对象å®ä¾ãï¼é»è®¤æ
åµä¸ï¼å®ä½åååç±»åæ¯"
+"ç¸åçãï¼ Hibernate 卿使ä¹
å对象ãç¼åæ¥è¯¢æ¡ä»¶ï¼æè
æå
³èæ å°å°æå®å®ä½"
+"æ¶ï¼å
è®¸ä½ æå®è¿ä¸ª entity nameï¼å®ä½ååï¼ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2821
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
-" entity-name=\"CurrentContract\">\n"
-" ...\n"
-" <set name=\"history\" inverse=\"true\"\n"
-" order-by=\"effectiveEndDate desc\">\n"
-" <key column=\"currentContractId\"/>\n"
-" <one-to-many entity-name=\"HistoricalContract\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Contract\" table=\"ContractHistory\"\n"
-" entity-name=\"HistoricalContract\">\n"
-" ...\n"
-" <many-to-one name=\"currentContract\"\n"
-" column=\"currentContractId\"\n"
-" entity-name=\"CurrentContract\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2823
-#, fuzzy, no-c-format
-msgid ""
"Associations are now specified using <literal>entity-name</literal> instead "
"of <literal>class</literal>."
msgstr ""
-"注æè¿éå
³èæ¯å¦ä½ç¨<literal>entity-name</literal>æ¥ä»£æ¿<literal>class</"
-"literal>çã"
+"注æè¿éå
³èæ¯å¦ä½ç¨ <literal>entity-name</literal> æ¥ä»£æ¿ <literal>class</"
+"literal> çã "
#. Tag: title
-#: basic_mapping.xml:2831
#, no-c-format
msgid "SQL quoted identifiers"
-msgstr "SQLä¸å¼å·å
å´çæ è¯ç¬¦"
+msgstr "SQL ä¸å¼å·å
å´çæ è¯ç¬¦"
#. Tag: para
-#: basic_mapping.xml:2832
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force Hibernate to quote an identifier in the generated SQL by "
"enclosing the table or column name in backticks in the mapping document. "
@@ -5065,48 +3666,32 @@
"literal>. This is usually double quotes, but the SQL Server uses brackets "
"and MySQL uses backticks."
msgstr ""
-"ä½ å¯éè¿å¨æ å°ææ¡£ä¸ä½¿ç¨ååå¼å·(`)æè¡¨åæè
åæ®µåå
å´èµ·æ¥ï¼ä»¥å¼ºå¶Hibernate"
-"å¨çæçSQL䏿æ è¯ç¬¦ç¨å¼å·å
å´èµ·æ¥ãHibernateä¼ä½¿ç¨ç¸åºç"
-"SQL<literal>Dialect</literal>(æ¹è¨)æ¥ä½¿ç¨æ£ç¡®çå¼å·é£æ ¼(é常æ¯åå¼å·ï¼ä½æ¯å¨"
-"SQL Server䏿¯æ¬å·ï¼MySQL䏿¯ååå¼å·)ã"
+"ä½ å¯éè¿å¨æ å°ææ¡£ä¸ä½¿ç¨ååå¼å·ï¼`ï¼æè¡¨åæè
åæ®µåå
å´èµ·æ¥ï¼ä»¥å¼ºå¶ "
+"Hibernate å¨çæç SQL 䏿æ è¯ç¬¦ç¨å¼å·å
å´èµ·æ¥ãHibernate ä¼ä½¿ç¨ç¸åºç "
+"SQL<literal>Dialect</literal>ï¼æ¹è¨ï¼æ¥ä½¿ç¨æ£ç¡®çå¼å·é£æ ¼(é常æ¯åå¼å·ï¼ä½æ¯"
+"å¨ SQL Server 䏿¯æ¬å·ï¼MySQL 䏿¯ååå¼å·)ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2839
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
-" <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/></"
-"id>\n"
-" <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: basic_mapping.xml:2845
#, no-c-format
msgid "Metadata alternatives"
-msgstr "å
¶ä»å
æ°æ®(Metadata)"
+msgstr "å
¶ä»å
æ°æ®ï¼Metadataï¼"
#. Tag: para
-#: basic_mapping.xml:2847
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"XML does not suit all users so there are some alternative ways to define O/R "
"mapping metadata in Hibernate."
msgstr ""
-"XML å¹¶ä¸éç¨äºææäºº, å æ¤æå
¶ä»å®ä¹Hibernate O/R æ å°å
æ°æ®(metadata)çæ¹"
-"æ³ã"
+"XML å¹¶ä¸éç¨äºææäºº, å æ¤æå
¶ä»å®ä¹ Hibernate O/R æ å°å
æ°æ®ï¼metadataï¼çæ¹"
+"æ³ã "
#. Tag: title
-#: basic_mapping.xml:2852
#, no-c-format
msgid "Using XDoclet markup"
msgstr "ä½¿ç¨ XDoclet æ è®°"
#. Tag: para
-#: basic_mapping.xml:2854
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate users prefer to embed mapping information directly in "
"sourcecode using XDoclet <literal>@hibernate.tags</literal>. We do not cover "
@@ -5114,136 +3699,23 @@
"XDoclet. However, we include the following example of the <literal>Cat</"
"literal> class with XDoclet mappings:"
msgstr ""
-"å¾å¤Hibernate使ç¨è
æ´å欢使ç¨XDoclet<literal>@hibernate.tags</literal>å°æ å°"
-"ä¿¡æ¯ç´æ¥åµå
¥å°æºä»£ç ä¸ãæä»¬ä¸ä¼å¨æ¬ææ¡£ä¸æ¶åè¿ä¸ªæ¹æ³ï¼å ä¸ºä¸¥æ ¼è¯´æ¥ï¼è¿å±äº"
-"XDocletçä¸é¨åãç¶èï¼æä»¬å
å«äºå¦ä¸ä½¿ç¨XDocletæ å°ç<literal>Cat</literal>"
-"ç±»çä¾åã"
+"å¾å¤ Hibernate 使ç¨è
æ´åæ¬¢ä½¿ç¨ XDoclet<literal>@hibernate.tags</literal> å°"
+"æ å°ä¿¡æ¯ç´æ¥åµå
¥å°æºä»£ç ä¸ãæä»¬ä¸ä¼å¨æ¬ææ¡£ä¸æ¶åè¿ä¸ªæ¹æ³ï¼å ä¸ºä¸¥æ ¼è¯´æ¥ï¼è¿"
+"å±äº XDoclet çä¸é¨åãç¶èï¼æä»¬å
å«äºå¦ä¸ä½¿ç¨ XDoclet æ å°ç <literal>Cat</"
+"literal> ç±»çä¾åã "
-#. Tag: programlisting
-#: basic_mapping.xml:2861
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"/**\n"
-" * @hibernate.class\n"
-" * table=\"CATS\"\n"
-" */\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-" private Date birthdate;\n"
-" private Cat mother;\n"
-" private Set kittens\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-"\n"
-" /*\n"
-" * @hibernate.id\n"
-" * generator-class=\"native\"\n"
-" * column=\"CAT_ID\"\n"
-" */\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.many-to-one\n"
-" * column=\"PARENT_ID\"\n"
-" */\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"BIRTH_DATE\"\n"
-" */\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"WEIGHT\"\n"
-" */\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"COLOR\"\n"
-" * not-null=\"true\"\n"
-" */\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-" /**\n"
-" * @hibernate.set\n"
-" * inverse=\"true\"\n"
-" * order-by=\"BIRTH_DATE\"\n"
-" * @hibernate.collection-key\n"
-" * column=\"PARENT_ID\"\n"
-" * @hibernate.collection-one-to-many\n"
-" */\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kittens.add(kitten);\n"
-" }\n"
-"\n"
-" /**\n"
-" * @hibernate.property\n"
-" * column=\"SEX\"\n"
-" * not-null=\"true\"\n"
-" * update=\"false\"\n"
-" */\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2863
-#, fuzzy, no-c-format
msgid "See the Hibernate website for more examples of XDoclet and Hibernate."
-msgstr "åèHibernateç½ç«æ´å¤çXdocletåHibernateçä¾å"
+msgstr "åè Hibernate ç½ç«æ´å¤ç Xdoclet å Hibernate çä¾åã"
#. Tag: title
-#: basic_mapping.xml:2870
#, no-c-format
msgid "Using JDK 5.0 Annotations"
-msgstr "ä½¿ç¨ JDK 5.0 çæ³¨è§£(Annotation)"
+msgstr "ä½¿ç¨ JDK 5.0 çæ³¨è§£ï¼Annotationï¼"
#. Tag: para
-#: basic_mapping.xml:2872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"JDK 5.0 introduced XDoclet-style annotations at the language level that are "
"type-safe and checked at compile time. This mechanism is more powerful than "
@@ -5257,67 +3729,35 @@
"Both EJB3 (JSR-220) and Hibernate3 metadata is supported."
msgstr ""
"JDK 5.0 å¨è¯è¨çº§å«å¼å
¥äº XDoclet 飿 ¼çæ æ³¨ï¼å¹¶ä¸æ¯ç±»åå®å
¨çï¼å¨ç¼è¯æè¿è¡æ£"
-"æ¥ãè¿ä¸æºå¶æ¯XDocletçæ³¨è§£æ´ä¸ºå¼ºå¤§ï¼ææ´å¥½çå·¥å
·åIDEæ¯æãä¾å¦ï¼ IntelliJ "
-"IDEAï¼æ¯æJDK 5.0注解çèªå¨å®æåè¯æ³é«äº® ãEJBè§èçæ°ä¿®è®¢ç(JSR-220)ä½¿ç¨ "
-"JDK 5.0çæ³¨è§£ä½ä¸ºentity beansç主è¦å
æ°æ®(metadata)æºå¶ãHibernate 3 å®ç°äº"
-"JSR-220 (the persistence API)ç<literal>EntityManager</literal>ï¼æ¯æéè¿"
-"<emphasis>Hibernate Annotations</emphasis>å
å®ä¹æ å°å
æ°æ®ãè¿ä¸ªå
ä½ä¸ºåç¬ç"
-"é¨åä¸è½½ï¼æ¯æEJB3 (JSR-220)åHibernate3çå
æ°æ®ã"
+"æ¥ãè¿ä¸æºå¶æ¯ XDoclet çæ³¨è§£æ´ä¸ºå¼ºå¤§ï¼ææ´å¥½çå·¥å
·å IDE æ¯æãä¾å¦ï¼"
+"IntelliJ IDEAï¼æ¯æ JDK 5.0 注解çèªå¨å®æåè¯æ³é«äº® ãEJB è§èçæ°ä¿®è®¢ç "
+"(JSR-220) ä½¿ç¨ JDK 5.0 çæ³¨è§£ä½ä¸ºentity beansç主è¦å
æ°æ®ï¼metadataï¼æºå¶ã"
+"Hibernate 3 å®ç°äºJSR-220(the persistence API) ç <literal>EntityManager</"
+"literal>ï¼æ¯æéè¿ <emphasis>Hibernate Annotations</emphasis> å
å®ä¹æ å°å
æ°"
+"æ®ãè¿ä¸ªå
ä½ä¸ºåç¬çé¨åä¸è½½ï¼æ¯æ EJB3(JSR-220) å Hibernate3 çå
æ°æ®ã "
#. Tag: para
-#: basic_mapping.xml:2883
#, no-c-format
msgid "This is an example of a POJO class annotated as an EJB entity bean:"
-msgstr "è¿æ¯ä¸ä¸ªè¢«æ³¨è§£ä¸ºEJB entity bean çPOJOç±»çä¾å"
+msgstr "è¿æ¯ä¸ä¸ªè¢«æ³¨è§£ä¸º EJB entity bean ç POJO ç±»çä¾å"
-#. Tag: programlisting
-#: basic_mapping.xml:2887
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[@Entity(access = AccessType.FIELD)\n"
-"public class Customer implements Serializable {\n"
-"\n"
-" @Id;\n"
-" Long id;\n"
-"\n"
-" String firstName;\n"
-" String lastName;\n"
-" Date birthday;\n"
-"\n"
-" @Transient\n"
-" Integer age;\n"
-"\n"
-" @Embedded\n"
-" private Address homeAddress;\n"
-"\n"
-" @OneToMany(cascade=CascadeType.ALL)\n"
-" @JoinColumn(name=\"CUSTOMER_ID\")\n"
-" Set<Order> orders;\n"
-"\n"
-" // Getter/setter and business methods\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2891
-#, fuzzy, no-c-format
-msgid ""
"Support for JDK 5.0 Annotations (and JSR-220) is currently under "
"development. Please refer to the Hibernate Annotations module for more "
"details."
msgstr ""
-"注æï¼å¯¹ JDK 5.0 注解 (å JSR-220)æ¯æçå·¥ä½ä»ç¶å¨è¿è¡ä¸,å¹¶æªå®æãæ´å¤ç»è请"
-"åé
Hibernate Annotations 模åã"
+"注æï¼å¯¹ JDK 5.0 注解ï¼å JSR-220)æ¯æçå·¥ä½ä»ç¶å¨è¿è¡ä¸,å¹¶æªå®æãæ´å¤ç»è请"
+"åé
Hibernate Annotations 模åã "
#. Tag: title
-#: basic_mapping.xml:2901
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Generated properties"
-msgstr "æ°æ®åºçæå±æ§ï¼Generated Propertiesï¼"
+msgstr "æ°æ®åºçæå±æ§ï¼Generated Propertiesï¼ "
#. Tag: para
-#: basic_mapping.xml:2902
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Generated properties are properties that have their values generated by the "
"database. Typically, Hibernate applications needed to <literal>refresh</"
@@ -5327,14 +3767,13 @@
"an SQL INSERT or UPDATE for an entity that has defined generated properties, "
"it immediately issues a select afterwards to retrieve the generated values."
msgstr ""
-"Generated propertiesæçæ¯å
¶å¼ç±æ°æ®åºçæç屿§ãä¸è¬æ¥è¯´ï¼å¦æå¯¹è±¡æä»»ä½å±"
-"æ§ç±æ°æ®åºçæå¼ï¼Hibernateåºç¨ç¨åºéè¦è¿è¡<literal>å·æ°(refresh)</literal>ã"
-"ä½å¦ææå±æ§æ æä¸ºgeneratedï¼å°±å¯ä»¥è½¬ç±Hibernateæ¥è´è´£è¿ä¸ªå¨ä½ãå®é
ä¸ã对å®"
-"ä¹äºgenerated propertiesçå®ä½,æ¯å½Hibernateæ§è¡ä¸æ¡SQL INSERTæè
UPDATEè¯"
-"å¥ï¼ä¼ç«å»æ§è¡ä¸æ¡selectæ¥è·å¾çæçå¼ã"
+"Generated properties æçæ¯å
¶å¼ç±æ°æ®åºçæç屿§ãä¸è¬æ¥è¯´ï¼å¦æå¯¹è±¡æä»»ä½å±"
+"æ§ç±æ°æ®åºçæå¼ï¼Hibernate åºç¨ç¨åºéè¦è¿è¡<literal>å·æ°ï¼refreshï¼</"
+"literal>ãä½å¦ææå±æ§æ æä¸º generatedï¼å°±å¯ä»¥è½¬ç± Hibernate æ¥è´è´£è¿ä¸ªå¨ä½ã"
+"å®é
ä¸ã对å®ä¹äº generated properties çå®ä½,æ¯å½ Hibernate æ§è¡ä¸æ¡ SQL "
+"INSERT æè
UPDATE è¯å¥ï¼ä¼ç«å»æ§è¡ä¸æ¡ select æ¥è·å¾çæçå¼ã "
#. Tag: para
-#: basic_mapping.xml:2911
#, fuzzy, no-c-format
msgid ""
"Properties marked as generated must additionally be non-insertable and non-"
@@ -5343,22 +3782,20 @@
"and <link linkend=\"mapping-declaration-property\">simple properties</link>, "
"can be marked as generated."
msgstr ""
-"è¢«æ æä¸ºgeneratedç屿§è¿å¿
é¡»æ¯ non-insertableå non-updateableçãåªæ<xref "
-"linkend=\"mapping-declaration-version\">versions</xref>ï¼<xref linkend="
-"\"mapping-declaration-timestamp\">timestamps</xref>å<xref linkend=\"mapping-"
-"declaration-property\">ç®å屿§ï¼simple propertiesï¼</xref>å¯ä»¥è¢«æ æä¸º"
-"generatedã"
+"è¢«æ æä¸º generated ç屿§è¿å¿
é¡»æ¯ non-insertable å non-updateable çãåªæ "
+"<xref linkend=\"mapping-declaration-version\"/> versionsã<xref linkend="
+"\"mapping-declaration-timestamp\"/> timestamp å <xref linkend=\"mapping-"
+"declaration-property\"/> ç®å屿§ï¼simple propertiesï¼å¯ä»¥è¢«æ æä¸º "
+"generatedã "
#. Tag: para
-#: basic_mapping.xml:2918
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>never</literal> (the default): the given property value is not "
"generated within the database."
-msgstr "<literal>never</literal> (é»è®¤) æ ææ¤å±æ§å¼ä¸æ¯ä»æ°æ®åºä¸çæã"
+msgstr "<literal>never</literal>ï¼é»è®¤ï¼æ ææ¤å±æ§å¼ä¸æ¯ä»æ°æ®åºä¸çæã "
#. Tag: para
-#: basic_mapping.xml:2922
#, fuzzy, no-c-format
msgid ""
"<literal>insert</literal>: the given property value is generated on insert, "
@@ -5368,29 +3805,71 @@
"\">timestamp</link> properties can be marked as generated, this option is "
"not available."
msgstr ""
-"<literal>insert</literal> - æ ææ¤å±æ§å¼å¨insertçæ¶åçæï¼ä½æ¯ä¸ä¼å¨éåç"
-"updateæ¶éæ°çæãæ¯å¦è¯´åå»ºæ¥æå°±å½å±äºè¿ç±»ã注æè½ç¶<xref linkend="
-"\"mapping-declaration-version\">version</xref>å<xref linkend=\"mapping-"
-"declaration-timestamp\">timestamp</xref>屿§å¯ä»¥è¢«æ 注为generatedï¼ä½æ¯ä¸éç¨"
-"è¿ä¸ªé项..."
+"<literal>insert</literal> â æ ææ¤å±æ§å¼å¨ insert çæ¶åçæï¼ä½æ¯ä¸ä¼å¨éå"
+"ç update æ¶éæ°çæãæ¯å¦è¯´åå»ºæ¥æå°±å½å±äºè¿ç±»ã注æè½ç¶ <xref linkend="
+"\"mapping-declaration-version\"/> version å <xref linkend=\"mapping-"
+"declaration-timestamp\"/> timestamp 屿§å¯ä»¥è¢«æ 注为 generatedï¼ä½æ¯ä¸éç¨è¿"
+"个é项... "
#. Tag: para
-#: basic_mapping.xml:2930
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>always</literal>: the property value is generated both on insert "
"and on update."
-msgstr "<literal>always</literal> - æ ææ¤å±æ§å¼å¨insertåupdateæ¶é½ä¼è¢«çæã"
+msgstr ""
+"<literal>always</literal> â æ ææ¤å±æ§å¼å¨ insert å update æ¶é½ä¼è¢«çæã "
#. Tag: title
-#: basic_mapping.xml:2937
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "Column read and write expressions"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate allows you to customize the SQL it uses to read and write the "
+"values of columns mapped to <link linkend=\"mapping-declaration-property"
+"\">simple properties</link>. For example, if your database provides a set of "
+"data encryption functions, you can invoke them for individual columns like "
+"this: <programlisting role=\"XML\"><property name=\"creditCardNumber"
+"\"> <column name=\"credit_card_num\" read=\"decrypt(credit_card_num)\" "
+"write=\"encrypt(?)\"/> </property></programlisting>"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Hibernate applies the custom expressions automatically whenever the property "
+"is referenced in a query. This functionality is similar to a derived-"
+"property <literal>formula</literal> with two differences:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The property is backed by one or more columns that are exported as part of "
+"automatic schema generation."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "The property is read-write, not read-only."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"The <literal>write</literal> expression, if specified, must contain exactly "
+"one '?' placeholder for the value."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Auxiliary database objects"
-msgstr "è¾
婿°æ®åºå¯¹è±¡(Auxiliary Database Objects)"
+msgstr "è¾
婿°æ®åºå¯¹è±¡ï¼Auxiliary Database Objectsï¼ "
#. Tag: para
-#: basic_mapping.xml:2938
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Auxiliary database objects allow for the CREATE and DROP of arbitrary "
"database objects. In conjunction with Hibernate's schema evolution tools, "
@@ -5401,140 +3880,1729 @@
"example, ALTERs, INSERTS, etc.). There are essentially two modes for "
"defining auxiliary database objects:"
msgstr ""
-"Allows CREATE and DROP of arbitrary database objects, in conjunction with "
-"Hibernate's schema evolution tools, to provide the ability to fully define a "
-"user schema within the Hibernate mapping files. Although designed "
-"specifically for creating and dropping things like triggers or stored "
-"procedures, really any SQL command that can be run via a <literal>java.sql."
-"Statement.execute()</literal> method is valid here (ALTERs, INSERTS, etc). "
-"There are essentially two modes for defining auxiliary database objects... 帮"
-"å©CREATEåDROPä»»ææ°æ®åºå¯¹è±¡ï¼ä¸Hibernateçschema交äºå·¥å
·ç»åèµ·æ¥ï¼å¯ä»¥æä¾å¨"
-"Hibernateæ å°æä»¶ä¸å®å
¨å®ä¹ç¨æ·schemaçè½åãè½ç¶è¿æ¯ä¸ºå建å鿝trigger(触å"
-"å¨ï¼æstored procedure(åå¨è¿ç¨ï¼çç¹å«è®¾è®¡çï¼å®é
ä¸ä»»ä½å¯ä»¥å¨<literal>java."
-"sql.Statement.execute()</literal>æ¹æ³ä¸æ§è¡çSQLå½ä»¤é½å¯ä»¥å¨æ¤ä½¿ç¨ï¼æ¯å¦"
-"ALTER, INSERTï¼ççï¼ãæ¬è´¨ä¸æä¸¤ç§æ¨¡å¼æ¥å®ä¹è¾
婿°æ®åºå¯¹è±¡..."
+"å
许 CREATE å DROP ä»»ææ°æ®åºå¯¹è±¡ï¼ä¸ Hibernate ç schema 交äºå·¥å
·ç»åèµ·æ¥ï¼"
+"å¯ä»¥æä¾å¨ Hibernate æ å°æä»¶ä¸å®å
¨å®ä¹ç¨æ· schema çè½åãè½ç¶è¿æ¯ä¸ºå建åé"
+"æ¯ triggerï¼è§¦åå¨ï¼æstored procedureï¼åå¨è¿ç¨ï¼çç¹å«è®¾è®¡çï¼å®é
ä¸ä»»ä½å¯"
+"ä»¥å¨ <literal>java.sql.Statement.execute()</literal> æ¹æ³ä¸æ§è¡ç SQL å½ä»¤é½"
+"å¯ä»¥å¨æ¤ä½¿ç¨ï¼æ¯å¦ALTER, INSERTï¼ççï¼ãæ¬è´¨ä¸æä¸¤ç§æ¨¡å¼æ¥å®ä¹è¾
婿°æ®åºå¯¹"
+"象... "
#. Tag: para
-#: basic_mapping.xml:2947
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first mode is to explicitly list the CREATE and DROP commands in the "
"mapping file:"
-msgstr "第ä¸ç§æ¨¡å¼æ¯å¨æ 尿件䏿¾å¼å£°æCREATEåDROPå½ä»¤ï¼"
+msgstr "第ä¸ç§æ¨¡å¼æ¯å¨æ 尿件䏿¾å¼å£°æ CREATE å DROP å½ä»¤ï¼ "
-#. Tag: programlisting
-#: basic_mapping.xml:2951
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <create>CREATE TRIGGER my_trigger ...</create>\n"
-" <drop>DROP TRIGGER my_trigger</drop>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2952
-#, fuzzy, no-c-format
-msgid ""
"The second mode is to supply a custom class that constructs the CREATE and "
"DROP commands. This custom class must implement the <literal>org.hibernate."
"mapping.AuxiliaryDatabaseObject</literal> interface."
msgstr ""
-"第äºç§æ¨¡å¼æ¯æä¾ä¸ä¸ªç±»ï¼è¿ä¸ªç±»ç¥éå¦ä½ç»ç»CREATEåDROPå½ä»¤ãè¿ä¸ªç¹å«ç±»å¿
é¡»å®"
-"ç°<literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal>æ¥å£ã"
+"第äºç§æ¨¡å¼æ¯æä¾ä¸ä¸ªç±»ï¼è¿ä¸ªç±»ç¥éå¦ä½ç»ç» CREATE å DROP å½ä»¤ãè¿ä¸ªç¹å«ç±»å¿
"
+"é¡»å®ç° <literal>org.hibernate.mapping.AuxiliaryDatabaseObject</literal> æ¥"
+"å£ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2957
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: basic_mapping.xml:2958
-#, fuzzy, no-c-format
-msgid ""
"Additionally, these database objects can be optionally scoped so that they "
"only apply when certain dialects are used."
-msgstr "è¿æï¼è¿äºæ°æ®åºå¯¹è±¡å¯ä»¥ç¹å«æå®ä¸ºä»
å¨ç¹å®çæ¹è¨ä¸æä½¿ç¨ã"
+msgstr "è¿æï¼è¿äºæ°æ®åºå¯¹è±¡å¯ä»¥ç¹å«æå®ä¸ºä»
å¨ç¹å®çæ¹è¨ä¸æä½¿ç¨ã "
-#. Tag: programlisting
-#: basic_mapping.xml:2962
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" ...\n"
-" <database-object>\n"
-" <definition class=\"MyTriggerDefinition\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
-" <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
-" </database-object>\n"
-"</hibernate-mapping>]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![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"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\"\n"
+#~ " table=\"cats\"\n"
+#~ " discriminator-value=\"C\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <discriminator column=\"subclass\"\n"
+#~ " type=\"character\"/>\n"
+#~ "\n"
+#~ " <property name=\"weight\"/>\n"
+#~ "\n"
+#~ " <property name=\"birthdate\"\n"
+#~ " type=\"date\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"color\"\n"
+#~ " type=\"eg.types.ColorUserType\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"sex\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"litterId\"\n"
+#~ " column=\"litterId\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"mother\"\n"
+#~ " column=\"mother_id\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <set name=\"kittens\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"litter_id\">\n"
+#~ " <key column=\"mother_id\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ " <subclass name=\"DomesticCat\"\n"
+#~ " discriminator-value=\"D\">\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\"\n"
+#~ " table=\"cats\"\n"
+#~ " discriminator-value=\"C\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <discriminator column=\"subclass\"\n"
+#~ " type=\"character\"/>\n"
+#~ "\n"
+#~ " <property name=\"weight\"/>\n"
+#~ "\n"
+#~ " <property name=\"birthdate\"\n"
+#~ " type=\"date\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"color\"\n"
+#~ " type=\"eg.types.ColorUserType\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"sex\"\n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <property name=\"litterId\"\n"
+#~ " column=\"litterId\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"mother\"\n"
+#~ " column=\"mother_id\"\n"
+#~ " update=\"false\"/>\n"
+#~ "\n"
+#~ " <set name=\"kittens\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"litter_id\">\n"
+#~ " <key column=\"mother_id\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ " <subclass name=\"DomesticCat\"\n"
+#~ " discriminator-value=\"D\">\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "<literal>type</literal> (optional): A name that indicates the Hibernate "
-#~ "type."
-#~ msgstr "<literal>type</literal> (å¯é): æ è¯Hibernateç±»åçååã"
+#~ "<![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\" [\n"
+#~ " <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
+#~ "]>\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"your.domain\">\n"
+#~ " <class name=\"MyEntity\">\n"
+#~ " <id name=\"id\" type=\"my-custom-id-type\">\n"
+#~ " ...\n"
+#~ " </id>\n"
+#~ " <class>\n"
+#~ " &types;\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\" [\n"
+#~ " <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n"
+#~ "]>\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"your.domain\">\n"
+#~ " <class name=\"MyEntity\">\n"
+#~ " <id name=\"id\" type=\"my-custom-id-type\">\n"
+#~ " ...\n"
+#~ " </id>\n"
+#~ " <class>\n"
+#~ " &types;\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "<literal>cascade</literal> (optional): Specifies which operations should "
-#~ "be cascaded from the parent object to the associated object."
+#~ "<![CDATA[<hibernate-mapping\n"
+#~ " schema=\"schemaName\"\n"
+#~ " catalog=\"catalogName\"\n"
+#~ " default-cascade=\"cascade_style\"\n"
+#~ " default-access=\"field|property|ClassName\"\n"
+#~ " default-lazy=\"true|false\"\n"
+#~ " auto-import=\"true|false\"\n"
+#~ " package=\"package.name\"\n"
+#~ " />]]>"
#~ msgstr ""
-#~ "<literal>cascadeï¼çº§èï¼</literal> (å¯é): ææåªäºæä½ä¼ä»ç¶å¯¹è±¡çº§èå°å
³"
-#~ "èç对象ã"
+#~ "<![CDATA[<hibernate-mapping\n"
+#~ " schema=\"schemaName\"\n"
+#~ " catalog=\"catalogName\"\n"
+#~ " default-cascade=\"cascade_style\"\n"
+#~ " default-access=\"field|property|ClassName\"\n"
+#~ " default-lazy=\"true|false\"\n"
+#~ " auto-import=\"true|false\"\n"
+#~ " package=\"package.name\"\n"
+#~ " />]]>"
#~ msgid ""
-#~ "<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
-#~ "literal>): Specifies that updates to this property do or do not require "
-#~ "acquisition of the optimistic lock. In other words, dertermines if a "
-#~ "version increment should occur when this property is dirty."
+#~ "<![CDATA[<class\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tableName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " select-before-update=\"true|false\"\n"
+#~ " polymorphism=\"implicit|explicit\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " persister=\"PersisterClass\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " optimistic-lock=\"none|version|dirty|all\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " check=\"arbitrary sql check condition\"\n"
+#~ " rowid=\"rowid\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>]]>"
#~ msgstr ""
-#~ "<literal>optimistic-lock</literal> (å¯é - é»è®¤ä¸º <literal>true</"
-#~ "literal>): æå®è¿ä¸ªå±æ§å¨åæ´æ°æ¶æ¯å¦éè¦è·å¾ä¹è§éå®ï¼optimistic "
-#~ "lockï¼ã æ¢å¥è¯è¯´ï¼å®å³å®è¿ä¸ªå±æ§åçèæ°æ®æ¶çæ¬ï¼versionï¼ç弿¯å¦å¢é¿ã"
+#~ "<![CDATA[<class\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tableName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " select-before-update=\"true|false\"\n"
+#~ " polymorphism=\"implicit|explicit\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " persister=\"PersisterClass\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " optimistic-lock=\"none|version|dirty|all\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " check=\"arbitrary sql check condition\"\n"
+#~ " rowid=\"rowid\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>]]>"
#~ msgid ""
-#~ "To understand the behaviour of various Java language-level objects with "
-#~ "respect to the persistence service, we need to classify them into two "
-#~ "groups:"
+#~ "<![CDATA[<class name=\"Summary\">\n"
+#~ " <subselect>\n"
+#~ " select item.name, max(bid.amount), count(*)\n"
+#~ " from item\n"
+#~ " join bid on bid.item_id = item.id\n"
+#~ " group by item.name\n"
+#~ " </subselect>\n"
+#~ " <synchronize table=\"item\"/>\n"
+#~ " <synchronize table=\"bid\"/>\n"
+#~ " <id name=\"name\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "为äºçè§£å¾å¤ä¸æä¹
åæå¡ç¸å
³çJavaè¯è¨çº§å¯¹è±¡çè¡ä¸ºï¼æä»¬éè¦æå®ä»¬å为两"
-#~ "ç±»ï¼"
+#~ "<![CDATA[<class name=\"Summary\">\n"
+#~ " <subselect>\n"
+#~ " select item.name, max(bid.amount), count(*)\n"
+#~ " from item\n"
+#~ " join bid on bid.item_id = item.id\n"
+#~ " group by item.name\n"
+#~ " </subselect>\n"
+#~ " <synchronize table=\"item\"/>\n"
+#~ " <synchronize table=\"bid\"/>\n"
+#~ " <id name=\"name\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
+#~ msgid ""
+#~ "<![CDATA[<id\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " column=\"column_name\"\n"
+#~ " unsaved-value=\"null|any|none|undefined|id_value\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "\n"
+#~ " <generator class=\"generatorClass\"/>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " column=\"column_name\"\n"
+#~ " unsaved-value=\"null|any|none|undefined|id_value\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "\n"
+#~ " <generator class=\"generatorClass\"/>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
+#~ " <param name=\"table\">uid_table</param>\n"
+#~ " <param name=\"column\">next_hi_value_column</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"org.hibernate.id.TableHiLoGenerator\">\n"
+#~ " <param name=\"table\">uid_table</param>\n"
+#~ " <param name=\"column\">next_hi_value_column</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+
+#~ msgid "increment"
+#~ msgstr "increment"
+
+#~ msgid "identity"
+#~ msgstr "identity"
+
+#~ msgid "sequence"
+#~ msgstr "sequence"
+
+#~ msgid "hilo"
+#~ msgstr "hilo"
+
+#~ msgid "seqhilo"
+#~ msgstr "seqhilo"
+
+#~ msgid "guid"
+#~ msgstr "guid"
+
+#~ msgid "native"
+#~ msgstr "native"
+
+#~ msgid "assigned"
+#~ msgstr "assigned"
+
+#~ msgid "select"
+#~ msgstr "select"
+
+#~ msgid "foreign"
+#~ msgstr "foreign"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"hilo\">\n"
+#~ " <param name=\"table\">hi_value</param>\n"
+#~ " <param name=\"column\">next_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"hilo\">\n"
+#~ " <param name=\"table\">hi_value</param>\n"
+#~ " <param name=\"column\">next_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"seqhilo\">\n"
+#~ " <param name=\"sequence\">hi_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n"
+#~ " <generator class=\"seqhilo\">\n"
+#~ " <param name=\"sequence\">hi_value</param>\n"
+#~ " <param name=\"max_lo\">100</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"sequence\">\n"
+#~ " <param name=\"sequence\">person_id_sequence</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"sequence\">\n"
+#~ " <param name=\"sequence\">person_id_sequence</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value="
+#~ "\"0\">\n"
+#~ " <generator class=\"identity\"/>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value="
+#~ "\"0\">\n"
+#~ " <generator class=\"identity\"/>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"select\">\n"
+#~ " <param name=\"key\">socialSecurityNumber</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n"
+#~ " <generator class=\"select\">\n"
+#~ " <param name=\"key\">socialSecurityNumber</param>\n"
+#~ " </generator>\n"
+#~ "</id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<composite-id\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " mapped=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|.\"\n"
+#~ "\n"
+#~ " <key-property name=\"propertyName\" type=\"typename\" column="
+#~ "\"column_name\"/>\n"
+#~ " <key-many-to-one name=\"propertyName class=\"ClassName\" column="
+#~ "\"column_name\"/>\n"
+#~ " ......\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<composite-id\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " mapped=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\">\n"
+#~ " node=\"element-name|.\"\n"
+#~ "\n"
+#~ " <key-property name=\"propertyName\" type=\"typename\" column="
+#~ "\"column_name\"/>\n"
+#~ " <key-many-to-one name=\"propertyName class=\"ClassName\" column="
+#~ "\"column_name\"/>\n"
+#~ " ......\n"
+#~ "</composite-id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<composite-id>\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<composite-id>\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<composite-id class=\"MedicareId\" mapped=\"true\">\n"
+#~ " <key-property name=\"medicareNumber\"/>\n"
+#~ " <key-property name=\"dependent\"/>\n"
+#~ "</composite-id>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<discriminator\n"
+#~ " column=\"discriminator_column\"\n"
+#~ " type=\"discriminator_type\"\n"
+#~ " force=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary sql expression\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<discriminator\n"
+#~ " column=\"discriminator_column\"\n"
+#~ " type=\"discriminator_type\"\n"
+#~ " force=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary sql expression\"\n"
+#~ "/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<discriminator\n"
+#~ " formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end"
+#~ "\"\n"
+#~ " type=\"integer\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<discriminator\n"
+#~ " formula=\"case when CLASS_TYPE in ('a', 'b', 'c') then 0 else 1 end"
+#~ "\"\n"
+#~ " type=\"integer\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<version\n"
+#~ " column=\"version_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|negative|undefined\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<version\n"
+#~ " column=\"version_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " type=\"typename\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|negative|undefined\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<timestamp\n"
+#~ " column=\"timestamp_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|undefined\"\n"
+#~ " source=\"vm|db\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<timestamp\n"
+#~ " column=\"timestamp_column\"\n"
+#~ " name=\"propertyName\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unsaved-value=\"null|undefined\"\n"
+#~ " source=\"vm|db\"\n"
+#~ " generated=\"never|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ "/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<property\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " type=\"typename\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " generated=\"never|insert|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<property\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " type=\"typename\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " generated=\"never|insert|always\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ "/>]]>"
+
#, fuzzy
-#~ msgid "<literal>class</literal>"
-#~ msgstr "<literal>allï¼å
¨é¨ï¼</literal> æ£æ¥å
¨é¨å段"
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "<property name=\"totalPrice\"\n"
+#~ " formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, "
+#~ "Product p\n"
+#~ " WHERE li.productId = p.productId\n"
+#~ " AND li.customerId = customerId\n"
+#~ " AND li.orderNumber = orderNumber )\"/>]]>"
+#~ msgstr ""
+#~ "<property name=\"totalPrice\"\n"
+#~ " formula=\"( SELECT SUM (li.quantity*p.price) FROM LineItem li, "
+#~ "Product p\n"
+#~ " WHERE li.productId = p.productId\n"
+#~ " AND li.customerId = customerId\n"
+#~ " AND li.orderNumber = orderNumber )\"/>"
-#~ msgid "id"
-#~ msgstr "id"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<many-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " column=\"column_name\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " update=\"true|false\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " formula=\"arbitrary SQL expression\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " index=\"index_name\"\n"
+#~ " unique_key=\"unique_key_id\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>"
+#, fuzzy
#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
+#~ "<![CDATA[<many-to-one name=\"product\" class=\"Product\" column="
+#~ "\"PRODUCT_ID\"/>]]>"
#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal>none</"
-#~ "literal>): See <xref linkend=\"mapping-declaration-id-enhanced-optimizers"
-#~ "\"/>"
+#~ "<many-to-one name=\"product\" class=\"Product\" column=\"PRODUCT_ID\"/"
+#~ ">"
+#, fuzzy
#~ msgid ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
+#~ "<![CDATA[<property name=\"serialNumber\" unique=\"true\" type=\"string\" "
+#~ "column=\"SERIAL_NUMBER\"/>]]>"
#~ msgstr ""
-#~ "<literal>optimizer</literal> (optional, defaults to <literal/>): See "
-#~ "<xref linkend=\"mapping-declaration-id-enhanced-optimizers\"/>"
+#~ "<property name=\"serialNumber\" unique=\"true\" type=\"string\" column="
+#~ "\"SERIAL_NUMBER\"/>"
-#~ msgid "key"
-#~ msgstr "é®(key)"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"product\" property-ref=\"serialNumber\" "
+#~ "column=\"PRODUCT_SERIAL_NUMBER\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"product\" property-ref=\"serialNumber\" column="
+#~ "\"PRODUCT_SERIAL_NUMBER\"/>"
-#~ msgid "any"
-#~ msgstr "any"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
+#~ "\"OWNER_SSN\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"owner\" property-ref=\"identity.ssn\" column="
+#~ "\"OWNER_SSN\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " constrained=\"true|false\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<one-to-one\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " constrained=\"true|false\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " lazy=\"proxy|no-proxy|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name|@attribute-name|element/@attribute|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " foreign-key=\"foreign_key_name\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<one-to-one name=\"person\" class=\"Person\"/>]]>"
+#~ msgstr "<one-to-one name=\"person\" class=\"Person\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" constrained="
+#~ "\"true\"/>]]>"
+#~ msgstr ""
+#~ "<one-to-one name=\"employee\" class=\"Employee\" constrained=\"true\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">employee</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <one-to-one name=\"employee\"\n"
+#~ " class=\"Employee\"\n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"foreign\">\n"
+#~ " <param name=\"property\">employee</param>\n"
+#~ " </generator>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <one-to-one name=\"employee\"\n"
+#~ " class=\"Employee\"\n"
+#~ " constrained=\"true\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID"
+#~ "\" unique=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"person\" class=\"Person\" column=\"PERSON_ID\" "
+#~ "unique=\"true\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"employee\" class=\"Employee\" property-ref="
+#~ "\"person\"/>]]>"
+#~ msgstr ""
+#~ "<one-to-one name\"employee\" class=\"Employee\" property-ref=\"person"
+#~ "\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<natural-id mutable=\"true|false\"/>\n"
+#~ " <property ... />\n"
+#~ " <many-to-one ... />\n"
+#~ " ......\n"
+#~ "</natural-id>]]>"
+#~ msgstr ""
+#~ "<natural-id mutable=\"true|false\"/>\n"
+#~ " <property ... />\n"
+#~ " <many-to-one ... />\n"
+#~ " ......\n"
+#~ "</natural-id>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<component\n"
+#~ " name=\"propertyName\"\n"
+#~ " class=\"className\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</component>]]>"
+#~ msgstr ""
+#~ "<component \n"
+#~ " name=\"propertyName\" \n"
+#~ " class=\"className\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ ">\n"
+#~ " \n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</component>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<properties\n"
+#~ " name=\"logicalName\"\n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</properties>]]>"
+#~ msgstr ""
+#~ "<properties \n"
+#~ " name=\"logicalName\" \n"
+#~ " insert=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ ">\n"
+#~ " \n"
+#~ " <property ...../>\n"
+#~ " <many-to-one .... />\n"
+#~ " ........\n"
+#~ "</properties>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"personNumber\"/>\n"
+#~ "\n"
+#~ " ...\n"
+#~ " <properties name=\"name\"\n"
+#~ " unique=\"true\" update=\"false\">\n"
+#~ " <property name=\"firstName\"/>\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"lastName\"/>\n"
+#~ " </properties>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"personNumber\"/>\n"
+#~ " ...\n"
+#~ " <properties name=\"name\" \n"
+#~ " unique=\"true\" update=\"false\">\n"
+#~ " <property name=\"firstName\"/>\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"lastName\"/>\n"
+#~ " </properties>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"person\"\n"
+#~ " class=\"Person\" property-ref=\"name\">\n"
+#~ " <column name=\"firstName\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ " <column name=\"lastName\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"person\" \n"
+#~ " class=\"Person\" property-ref=\"name\">\n"
+#~ " <column name=\"firstName\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ " <column name=\"lastName\"/>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " extends=\"SuperclassName\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</subclass>]]>"
+#~ msgstr ""
+#~ "<subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " discriminator-value=\"discriminator_value\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " extends=\"SuperclassName\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<joined-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <key .... >\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</joined-subclass>]]>"
+#~ msgstr ""
+#~ "<joined-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <key .... >\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</joined-subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\"?>\n"
+#~ "<!DOCTYPE hibernate-mapping PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\" table=\"CATS\">\n"
+#~ " <id name=\"id\" column=\"uid\" type=\"long\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthdate\" type=\"date\"/>\n"
+#~ " <property name=\"color\" not-null=\"true\"/>\n"
+#~ " <property name=\"sex\" not-null=\"true\"/>\n"
+#~ " <property name=\"weight\"/>\n"
+#~ " <many-to-one name=\"mate\"/>\n"
+#~ " <set name=\"kittens\">\n"
+#~ " <key column=\"MOTHER\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ " <joined-subclass name=\"DomesticCat\" table="
+#~ "\"DOMESTIC_CATS\">\n"
+#~ " <key column=\"CAT\"/>\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </joined-subclass>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"eg.Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<?xml version=\"1.0\"?>\n"
+#~ "<!DOCTYPE hibernate-mapping PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Mapping DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class name=\"Cat\" table=\"CATS\">\n"
+#~ " <id name=\"id\" column=\"uid\" type=\"long\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthdate\" type=\"date\"/>\n"
+#~ " <property name=\"color\" not-null=\"true\"/>\n"
+#~ " <property name=\"sex\" not-null=\"true\"/>\n"
+#~ " <property name=\"weight\"/>\n"
+#~ " <many-to-one name=\"mate\"/>\n"
+#~ " <set name=\"kittens\">\n"
+#~ " <key column=\"MOTHER\"/>\n"
+#~ " <one-to-many class=\"Cat\"/>\n"
+#~ " </set>\n"
+#~ " <joined-subclass name=\"DomesticCat\" table="
+#~ "\"DOMESTIC_CATS\">\n"
+#~ " <key column=\"CAT\"/>\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </joined-subclass>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"eg.Dog\">\n"
+#~ " <!-- mapping for Dog could go here -->\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<union-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</union-subclass>]]>"
+#~ msgstr ""
+#~ "<union-subclass\n"
+#~ " name=\"ClassName\"\n"
+#~ " table=\"tablename\"\n"
+#~ " proxy=\"ProxyInterface\"\n"
+#~ " lazy=\"true|false\"\n"
+#~ " dynamic-update=\"true|false\"\n"
+#~ " dynamic-insert=\"true|false\"\n"
+#~ " schema=\"schema\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " extends=\"SuperclassName\"\n"
+#~ " abstract=\"true|false\"\n"
+#~ " persister=\"ClassName\"\n"
+#~ " subselect=\"SQL expression\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\">\n"
+#~ "\n"
+#~ " <property .... />\n"
+#~ " .....\n"
+#~ "</union-subclass>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<join\n"
+#~ " table=\"tablename\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " optional=\"true|false\">\n"
+#~ "\n"
+#~ " <key ... />\n"
+#~ "\n"
+#~ " <property ... />\n"
+#~ " ...\n"
+#~ "</join>]]>"
+#~ msgstr ""
+#~ "<join\n"
+#~ " table=\"tablename\"\n"
+#~ " schema=\"owner\"\n"
+#~ " catalog=\"catalog\"\n"
+#~ " fetch=\"join|select\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " optional=\"true|false\">\n"
+#~ " \n"
+#~ " <key ... />\n"
+#~ " \n"
+#~ " <property ... />\n"
+#~ " ...\n"
+#~ "</join>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " table=\"PERSON\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
+#~ "\n"
+#~ " <join table=\"ADDRESS\">\n"
+#~ " <key column=\"ADDRESS_ID\"/>\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </join>\n"
+#~ " ...]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\"\n"
+#~ " table=\"PERSON\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">...</id>\n"
+#~ "\n"
+#~ " <join table=\"ADDRESS\">\n"
+#~ " <key column=\"ADDRESS_ID\"/>\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </join>\n"
+#~ " ..."
+
+#, fuzzy
+#~ msgid "<title>Key</title>"
+#~ msgstr "<title>é®ï¼keyï¼</title>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<key\n"
+#~ " column=\"columnname\"\n"
+#~ " on-delete=\"noaction|cascade\"\n"
+#~ " property-ref=\"propertyName\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<key\n"
+#~ " column=\"columnname\"\n"
+#~ " on-delete=\"noaction|cascade\"\n"
+#~ " property-ref=\"propertyName\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " update=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<column\n"
+#~ " name=\"column_name\"\n"
+#~ " length=\"N\"\n"
+#~ " precision=\"N\"\n"
+#~ " scale=\"N\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " unique-key=\"multicolumn_unique_key_name\"\n"
+#~ " index=\"index_name\"\n"
+#~ " sql-type=\"sql_type_name\"\n"
+#~ " check=\"SQL expression\"\n"
+#~ " default=\"SQL expression\"/>]]>"
+#~ msgstr ""
+#~ "<column\n"
+#~ " name=\"column_name\"\n"
+#~ " length=\"N\"\n"
+#~ " precision=\"N\"\n"
+#~ " scale=\"N\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " unique-key=\"multicolumn_unique_key_name\"\n"
+#~ " index=\"index_name\"\n"
+#~ " sql-type=\"sql_type_name\"\n"
+#~ " check=\"SQL expression\"\n"
+#~ " default=\"SQL expression\"/>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<formula>SQL expression</formula>]]>"
+#~ msgstr "<formula>SQL expression</formula>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"homeAddress\" class=\"Address\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
+#~ " <formula>'MAILING'</formula>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"homeAddress\" class=\"Address\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"person_id\" not-null=\"true\" length=\"10\"/>\n"
+#~ " <formula>'MAILING'</formula>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<import class=\"java.lang.Object\" rename=\"Universe\"/>]]>"
+#~ msgstr "<import class=\"java.lang.Object\" rename=\"Universe\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<import\n"
+#~ " class=\"ClassName\"\n"
+#~ " rename=\"ShortName\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<import\n"
+#~ " class=\"ClassName\"\n"
+#~ " rename=\"ShortName\"\n"
+#~ "/>"
+
+#, fuzzy
+#~ msgid "<title>Any</title>"
+#~ msgstr "<title>any</title>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
+#~ " <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
+#~ " <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
+#~ " <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
+#~ " <column name=\"table_name\"/>\n"
+#~ " <column name=\"id\"/>\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any name=\"being\" id-type=\"long\" meta-type=\"string\">\n"
+#~ " <meta-value value=\"TBL_ANIMAL\" class=\"Animal\"/>\n"
+#~ " <meta-value value=\"TBL_HUMAN\" class=\"Human\"/>\n"
+#~ " <meta-value value=\"TBL_ALIEN\" class=\"Alien\"/>\n"
+#~ " <column name=\"table_name\"/>\n"
+#~ " <column name=\"id\"/>\n"
+#~ "</any>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any\n"
+#~ " name=\"propertyName\"\n"
+#~ " id-type=\"idtypename\"\n"
+#~ " meta-type=\"metatypename\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ ">\n"
+#~ " <meta-value ... />\n"
+#~ " <meta-value ... />\n"
+#~ " .....\n"
+#~ " <column .... />\n"
+#~ " <column .... />\n"
+#~ " .....\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any\n"
+#~ " name=\"propertyName\"\n"
+#~ " id-type=\"idtypename\"\n"
+#~ " meta-type=\"metatypename\"\n"
+#~ " cascade=\"cascade_style\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ ">\n"
+#~ " <meta-value ... />\n"
+#~ " <meta-value ... />\n"
+#~ " .....\n"
+#~ " <column .... />\n"
+#~ " <column .... />\n"
+#~ " .....\n"
+#~ "</any>"
+
+#~ msgid "string"
+#~ msgstr "string"
+
+#, fuzzy
+#~ msgid "class"
+#~ msgstr "åç±»ï¼subclassï¼"
+
+#~ msgid "binary"
+#~ msgstr "binary"
+
+#~ msgid "text"
+#~ msgstr "text"
+
+#~ msgid "serializable"
+#~ msgstr "serializable"
+
+#~ msgid "clob, blob"
+#~ msgstr "clob, blob"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"twoStrings\" type=\"org.hibernate.test."
+#~ "DoubleStringType\">\n"
+#~ " <column name=\"first_string\"/>\n"
+#~ " <column name=\"second_string\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"twoStrings\" type=\"org.hibernate.test."
+#~ "DoubleStringType\">\n"
+#~ " <column name=\"first_string\"/>\n"
+#~ " <column name=\"second_string\"/>\n"
+#~ "</property>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"priority\">\n"
+#~ " <type name=\"com.mycompany.usertypes.DefaultValueIntegerType\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ " </type>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"priority\">\n"
+#~ " <type name=\"com.mycompany.usertypes.DefaultValueIntegerType"
+#~ "\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ " </type>\n"
+#~ "</property>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType"
+#~ "\" name=\"default_zero\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ "</typedef>]]>"
+#~ msgstr ""
+#~ "<typedef class=\"com.mycompany.usertypes.DefaultValueIntegerType\" "
+#~ "name=\"default_zero\">\n"
+#~ " <param name=\"default\">0</param>\n"
+#~ "</typedef>"
+
+#, fuzzy
+#~ msgid "<![CDATA[<property name=\"priority\" type=\"default_zero\"/>]]>"
+#~ msgstr "<property name=\"priority\" type=\"default_zero\"/>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Contract\" table=\"Contracts\"\n"
+#~ " entity-name=\"CurrentContract\">\n"
+#~ " ...\n"
+#~ " <set name=\"history\" inverse=\"true\"\n"
+#~ " order-by=\"effectiveEndDate desc\">\n"
+#~ " <key column=\"currentContractId\"/>\n"
+#~ " <one-to-many entity-name=\"HistoricalContract\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Contract\" table=\"ContractHistory\"\n"
+#~ " entity-name=\"HistoricalContract\">\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"currentContract\"\n"
+#~ " column=\"currentContractId\"\n"
+#~ " entity-name=\"CurrentContract\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Contract\" table=\"Contracts\" \n"
+#~ " entity-name=\"CurrentContract\">\n"
+#~ " ...\n"
+#~ " <set name=\"history\" inverse=\"true\" \n"
+#~ " order-by=\"effectiveEndDate desc\">\n"
+#~ " <key column=\"currentContractId\"/>\n"
+#~ " <one-to-many entity-name=\"HistoricalContract\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Contract\" table=\"ContractHistory\" \n"
+#~ " entity-name=\"HistoricalContract\">\n"
+#~ " ...\n"
+#~ " <many-to-one name=\"currentContract\" \n"
+#~ " column=\"currentContractId\" \n"
+#~ " entity-name=\"CurrentContract\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"LineItem\" table=\"`Line Item`\">\n"
+#~ " <id name=\"id\" column=\"`Item Id`\"/><generator class=\"assigned\"/"
+#~ "></id>\n"
+#~ " <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"LineItem\" table=\"`Line Item`\">\n"
+#~ " <id name=\"id\" column=\"`Item Id`\"/><generator class="
+#~ "\"assigned\"/></id>\n"
+#~ " <property name=\"itemNumber\" column=\"`Item #`\"/>\n"
+#~ " ...\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * @hibernate.class\n"
+#~ " * table=\"CATS\"\n"
+#~ " */\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ " private Date birthdate;\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ "\n"
+#~ " /*\n"
+#~ " * @hibernate.id\n"
+#~ " * generator-class=\"native\"\n"
+#~ " * column=\"CAT_ID\"\n"
+#~ " */\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.many-to-one\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " */\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"BIRTH_DATE\"\n"
+#~ " */\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"WEIGHT\"\n"
+#~ " */\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"COLOR\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " */\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.set\n"
+#~ " * inverse=\"true\"\n"
+#~ " * order-by=\"BIRTH_DATE\"\n"
+#~ " * @hibernate.collection-key\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " * @hibernate.collection-one-to-many\n"
+#~ " */\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"SEX\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " * update=\"false\"\n"
+#~ " */\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * @hibernate.class\n"
+#~ " * table=\"CATS\"\n"
+#~ " */\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ " private Date birthdate;\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ "\n"
+#~ " /*\n"
+#~ " * @hibernate.id\n"
+#~ " * generator-class=\"native\"\n"
+#~ " * column=\"CAT_ID\"\n"
+#~ " */\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.many-to-one\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " */\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"BIRTH_DATE\"\n"
+#~ " */\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"WEIGHT\"\n"
+#~ " */\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"COLOR\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " */\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ " /**\n"
+#~ " * @hibernate.set\n"
+#~ " * inverse=\"true\"\n"
+#~ " * order-by=\"BIRTH_DATE\"\n"
+#~ " * @hibernate.collection-key\n"
+#~ " * column=\"PARENT_ID\"\n"
+#~ " * @hibernate.collection-one-to-many\n"
+#~ " */\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "\n"
+#~ " /**\n"
+#~ " * @hibernate.property\n"
+#~ " * column=\"SEX\"\n"
+#~ " * not-null=\"true\"\n"
+#~ " * update=\"false\"\n"
+#~ " */\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[@Entity(access = AccessType.FIELD)\n"
+#~ "public class Customer implements Serializable {\n"
+#~ "\n"
+#~ " @Id;\n"
+#~ " Long id;\n"
+#~ "\n"
+#~ " String firstName;\n"
+#~ " String lastName;\n"
+#~ " Date birthday;\n"
+#~ "\n"
+#~ " @Transient\n"
+#~ " Integer age;\n"
+#~ "\n"
+#~ " @Embedded\n"
+#~ " private Address homeAddress;\n"
+#~ "\n"
+#~ " @OneToMany(cascade=CascadeType.ALL)\n"
+#~ " @JoinColumn(name=\"CUSTOMER_ID\")\n"
+#~ " Set<Order> orders;\n"
+#~ "\n"
+#~ " // Getter/setter and business methods\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "@Entity(access = AccessType.FIELD)\n"
+#~ "public class Customer implements Serializable {\n"
+#~ "\n"
+#~ " @Id;\n"
+#~ " Long id;\n"
+#~ "\n"
+#~ " String firstName;\n"
+#~ " String lastName;\n"
+#~ " Date birthday;\n"
+#~ "\n"
+#~ " @Transient\n"
+#~ " Integer age;\n"
+#~ "\n"
+#~ " @Embedded\n"
+#~ " private Address homeAddress;\n"
+#~ "\n"
+#~ " @OneToMany(cascade=CascadeType.ALL)\n"
+#~ " @JoinColumn(name=\"CUSTOMER_ID\")\n"
+#~ " Set<Order> orders;\n"
+#~ "\n"
+#~ " // Getter/setter and business methods\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <create>CREATE TRIGGER my_trigger ...</create>\n"
+#~ " <drop>DROP TRIGGER my_trigger</drop>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <create>CREATE TRIGGER my_trigger ...</create>\n"
+#~ " <drop>DROP TRIGGER my_trigger</drop>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle9iDialect\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle10gDialect\"/>\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " ...\n"
+#~ " <database-object>\n"
+#~ " <definition class=\"MyTriggerDefinition\"/>\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.Oracle9Dialect\"/"
+#~ ">\n"
+#~ " <dialect-scope name=\"org.hibernate.dialect.OracleDialect\"/"
+#~ ">\n"
+#~ " </database-object>\n"
+#~ "</hibernate-mapping>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/batch.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/batch.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/batch.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,61 +1,47 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:33+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: batch.xml:29
#, no-c-format
msgid "Batch processing"
msgstr "æ¹éå¤çï¼Batch processingï¼"
#. Tag: para
-#: batch.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A naive approach to inserting 100,000 rows in the database using Hibernate "
"might look like this:"
msgstr ""
-"使ç¨Hibernateå° 100 000 æ¡è®°å½æå
¥å°æ°æ®åºçä¸ä¸ªå¾èªç¶çåæ³å¯è½æ¯è¿æ ·ç"
+"ä½¿ç¨ Hibernate å° 100,000 æ¡è®°å½æå
¥å°æ°æ®åºçä¸ä¸ªå¾å¤©ççåæ³å¯è½æ¯è¿æ ·çï¼"
-#. Tag: programlisting
-#: batch.xml:36
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-"}\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:38
-#, fuzzy, no-c-format
-msgid ""
"This would fall over with an <literal>OutOfMemoryException</literal> "
"somewhere around the 50,000th row. That is because Hibernate caches all the "
"newly inserted <literal>Customer</literal> instances in the session-level "
"cache. In this chapter we will show you how to avoid this problem."
msgstr ""
-"è¿æ®µç¨åºå¤§æ¦è¿è¡å° 50 000 æ¡è®°å½å·¦å³ä¼å¤±è´¥å¹¶æåº <literal>å
åæº¢åºå¼å¸¸"
-"ï¼OutOfMemoryExceptionï¼</literal> ã è¿æ¯å 为 Hibernate ææææ°æå
¥ç "
-"<literal>客æ·ï¼Customerï¼</literal>å®ä¾å¨ session级å«çç¼ååºè¿è¡äºç¼åçç¼"
-"æ
ã"
+"è¿æ®µç¨åºå¤§æ¦è¿è¡å° 50ï¼000 æ¡è®°å½å·¦å³ä¼å¤±è´¥å¹¶æåº<literal>å
åæº¢åºå¼å¸¸"
+"ï¼OutOfMemoryExceptionï¼</literal> ãè¿æ¯å 为 Hibernate ææææ°æå
¥ç"
+"<literal>客æ·ï¼Customerï¼</literal>å®ä¾å¨ session 级å«çç¼ååºè¿è¡äºç¼åçç¼"
+"æ
ã "
#. Tag: para
-#: batch.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are undertaking batch processing you will need to enable the use of "
"JDBC batching. This is absolutely essential if you want to achieve optimal "
@@ -63,139 +49,72 @@
"example):"
msgstr ""
"æä»¬ä¼å¨æ¬ç« åè¯ä½ å¦ä½é¿å
æ¤ç±»é®é¢ãé¦å
ï¼å¦æä½ è¦æ§è¡æ¹éå¤ç并䏿³è¦è¾¾å°ä¸"
-"ä¸ªçæ³çæ§è½ï¼ é£ä¹ä½¿ç¨JDBCçæ¹éï¼batchingï¼åè½æ¯è³å
³éè¦ãå°JDBCçæ¹éæå"
-"æ°éï¼batch sizeï¼åæ°è®¾ç½®å°ä¸ä¸ªåéå¼ ï¼æ¯å¦ï¼10-50ä¹é´ï¼ï¼"
+"ä¸ªçæ³çæ§è½ï¼é£ä¹ä½¿ç¨ JDBC çæ¹éï¼batchingï¼åè½æ¯è³å
³éè¦ãå° JDBC çæ¹é"
+"æåæ°éï¼batch sizeï¼åæ°è®¾ç½®å°ä¸ä¸ªåéå¼ï¼æ¯å¦ï¼10 - 50 ä¹é´ï¼ï¼"
-#. Tag: programlisting
-#: batch.xml:52
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:54
-#, fuzzy, no-c-format
msgid ""
"Hibernate disables insert batching at the JDBC level transparently if you "
"use an <literal>identity</literal> identifier generator."
msgstr ""
-"注æ,åè¥ä½ 使ç¨äº<literal>identiy</literal>æ è¯ç¬¦çæå¨,Hibernateå¨JDBC级å«é"
-"æçå
³éæå
¥è¯å¥çæ¹éæ§è¡ã"
+"注æï¼åè¥ä½ 使ç¨äº <literal>identiy</literal> æ è¯ç¬¦çæå¨ï¼Hibernate å¨ "
+"JDBC 级å«éæçå
³éæå
¥è¯å¥çæ¹éæ§è¡ã "
#. Tag: para
-#: batch.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also do this kind of work in a process where interaction with the "
"second-level cache is completely disabled:"
-msgstr "ä½ ä¹å¯è½æ³å¨æ§è¡æ¹éå¤çæ¶å
³éäºçº§ç¼åï¼"
+msgstr "ä½ ä¹å¯è½æ³å¨æ§è¡æ¹éå¤çæ¶å®å
¨å
³éäºçº§ç¼åï¼"
-#. Tag: programlisting
-#: batch.xml:64
-#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:66
#, no-c-format
msgid ""
"However, this is not absolutely necessary, since we can explicitly set the "
"<literal>CacheMode</literal> to disable interaction with the second-level "
"cache."
msgstr ""
-"使¯ï¼è¿ä¸æ¯ç»å¯¹å¿
é¡»çï¼å 为æä»¬å¯ä»¥æ¾å¼è®¾ç½®<literal>CacheMode</literal>æ¥å
³"
-"éä¸äºçº§ç¼åç交äºã"
+"使¯ï¼è¿ä¸æ¯ç»å¯¹å¿
é¡»çï¼å 为æä»¬å¯ä»¥æ¾å¼è®¾ç½® <literal>CacheMode</literal> æ¥"
+"å
³éä¸äºçº§ç¼åç交äºã"
#. Tag: title
-#: batch.xml:72
#, no-c-format
msgid "Batch inserts"
msgstr "æ¹éæå
¥ï¼Batch insertsï¼"
#. Tag: para
-#: batch.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When making new objects persistent <literal>flush()</literal> and then "
"<literal>clear()</literal> the session regularly in order to control the "
"size of the first-level cache."
msgstr ""
"妿è¦å°å¾å¤å¯¹è±¡æä¹
åï¼ä½ å¿
é¡»éè¿ç»å¸¸çè°ç¨ <literal>flush()</literal> 以å"
-"ç¨åè°ç¨ <literal>clear()</literal> æ¥æ§å¶ç¬¬ä¸çº§ç¼åç大å°ã"
+"ç¨åè°ç¨ <literal>clear()</literal> æ¥æ§å¶ç¬¬ä¸çº§ç¼åç大å°ã "
-#. Tag: programlisting
-#: batch.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"for ( int i=0; i<100000; i++ ) {\n"
-" Customer customer = new Customer(.....);\n"
-" session.save(customer);\n"
-" if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
-" //flush a batch of inserts and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:85
#, no-c-format
msgid "Batch updates"
msgstr "æ¹éæ´æ°ï¼Batch updatesï¼"
#. Tag: para
-#: batch.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For retrieving and updating data, the same ideas apply. In addition, you "
"need to use <literal>scroll()</literal> to take advantage of server-side "
"cursors for queries that return many rows of data."
msgstr ""
-"æ¤æ¹æ³åæ ·éç¨äºæ£ç´¢åæ´æ°æ°æ®ãæ¤å¤ï¼å¨è¿è¡ä¼è¿åå¾å¤è¡æ°æ®çæ¥è¯¢æ¶ï¼ ä½ éè¦"
-"ä½¿ç¨ <literal>scroll()</literal> æ¹æ³ä»¥ä¾¿å
åå©ç¨æå¡å¨ç«¯æ¸¸æ æå¸¦æ¥ç好å¤ã"
+"æ¤æ¹æ³åæ ·éç¨äºæ£ç´¢åæ´æ°æ°æ®ãæ¤å¤ï¼å¨è¿è¡ä¼è¿åå¾å¤è¡æ°æ®çæ¥è¯¢æ¶ï¼ä½ éè¦"
+"ä½¿ç¨ <literal>scroll()</literal> æ¹æ³ä»¥ä¾¿å
åå©ç¨æå¡å¨ç«¯æ¸¸æ æå¸¦æ¥ç好å¤ã "
-#. Tag: programlisting
-#: batch.xml:93
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .setCacheMode(CacheMode.IGNORE)\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"int count=0;\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" if ( ++count % 20 == 0 ) {\n"
-" //flush a batch of updates and release memory:\n"
-" session.flush();\n"
-" session.clear();\n"
-" }\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: title
-#: batch.xml:98
#, no-c-format
msgid "The StatelessSession interface"
-msgstr "StatelessSession (æ ç¶æsession)æ¥å£"
+msgstr "StatelessSessionï¼æ ç¶æ sessionï¼æ¥å£"
#. Tag: para
-#: batch.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, Hibernate provides a command-oriented API that can be used "
"for streaming data to and from the database in the form of detached objects. "
@@ -211,48 +130,27 @@
"effects. A stateless session is a lower-level abstraction that is much "
"closer to the underlying JDBC."
msgstr ""
-"ä½ä¸ºéæ©ï¼Hibernateæä¾äºåºäºå½ä»¤çAPIï¼å¯ä»¥ç¨detached objectçå½¢å¼ææ°æ®ä»¥æµ"
-"çæ¹æ³å å
¥å°æ°æ®åºï¼æä»æ°æ®åºè¾åºã<literal>StatelessSession</literal>没ææ"
-"ä¹
åä¸ä¸æï¼ä¹ä¸æä¾å¤å°é«å±ççå½å¨æè¯ä¹ãç¹å«æ¯ï¼æ ç¶æsessionä¸å®ç°ç¬¬ä¸çº§"
-"cache,ä¹ä¸å第äºçº§ç¼åï¼æè
æ¥è¯¢ç¼å交äºãå®ä¸å®ç°äºå¡ååï¼ä¹ä¸å®ç°èæ°æ®æ£"
-"æ¥ãç¨stateless sessionè¿è¡çæä½çè³ä¸çº§èå°å
³èå®ä¾ãstateless session忽ç¥"
-"éåç±»(Collections)ãéè¿stateless sessionè¿è¡çæä½ä¸è§¦åHibernateçäºä»¶æ¨¡å"
-"忦æªå¨ãæ ç¶æsessionå¯¹æ°æ®çæ··æ·ç°è±¡å
ç«ï¼å ä¸ºå®æ²¡æç¬¬ä¸çº§ç¼åãæ ç¶æ"
-"sessionæ¯ä½å±çæ½è±¡ï¼åä½å±JDBCç¸å½æ¥è¿ã"
+"ä½ä¸ºéæ©ï¼Hibernate æä¾äºåºäºå½ä»¤ç APIï¼å¯ä»¥ç¨ detached object çå½¢å¼ææ°æ®"
+"以æµçæ¹æ³å å
¥å°æ°æ®åºï¼æä»æ°æ®åºè¾åºã<literal>StatelessSession</literal> "
+"没ææä¹
åä¸ä¸æï¼ä¹ä¸æä¾å¤å°é«å±ççå½å¨æè¯ä¹ãç¹å«æ¯ï¼æ ç¶æ session ä¸å®"
+"ç°ç¬¬ä¸çº§ cacheï¼ä¹ä¸å第äºçº§ç¼åï¼æè
æ¥è¯¢ç¼å交äºãå®ä¸å®ç°äºå¡ååï¼ä¹ä¸å®"
+"ç°èæ°æ®æ£æ¥ãç¨ stateless session è¿è¡çæä½çè³ä¸çº§èå°å
³èå®ä¾ãstateless "
+"session 忽ç¥éåç±»ï¼Collectionsï¼ãéè¿ stateless session è¿è¡çæä½ä¸è§¦å "
+"Hibernate çäºä»¶æ¨¡å忦æªå¨ãæ ç¶æ session å¯¹æ°æ®çæ··æ·ç°è±¡å
ç«ï¼å ä¸ºå®æ²¡æ"
+"第ä¸çº§ç¼åãæ ç¶æ session æ¯ä½å±çæ½è±¡ï¼åä½å± JDBC ç¸å½æ¥è¿ã "
-#. Tag: programlisting
-#: batch.xml:114
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[StatelessSession session = sessionFactory.openStatelessSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-" \n"
-"ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
-" .scroll(ScrollMode.FORWARD_ONLY);\n"
-"while ( customers.next() ) {\n"
-" Customer customer = (Customer) customers.get(0);\n"
-" customer.updateStuff(...);\n"
-" session.update(customer);\n"
-"}\n"
-" \n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:116
-#, fuzzy, no-c-format
-msgid ""
"In this code example, the <literal>Customer</literal> instances returned by "
"the query are immediately detached. They are never associated with any "
"persistence context."
msgstr ""
-"注æå¨ä¸é¢çä¾åä¸ï¼æ¥è¯¢è¿åç<literal>Customer</literal>å®ä¾ç«å³è¢«è±ç®¡"
-"(detach)ãå®ä»¬ä¸ä»»ä½æä¹
åä¸ä¸æé½æ²¡æå
³ç³»ã"
+"注æå¨ä¸é¢çä¾åä¸ï¼æ¥è¯¢è¿åç <literal>Customer</literal> å®ä¾ç«å³è¢«è±ç®¡"
+"ï¼detachï¼ãå®ä»¬ä¸ä»»ä½æä¹
åä¸ä¸æé½æ²¡æå
³ç³»ã "
#. Tag: para
-#: batch.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>insert(), update()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>StatelessSession</literal> interface are "
@@ -262,20 +160,19 @@
"<literal>save(), saveOrUpdate()</literal> and <literal>delete()</literal> "
"operations defined by the <literal>Session</literal> interface."
msgstr ""
-"<literal>StatelessSession</literal> æ¥å£å®ä¹ç<literal>insert(), update()</"
-"literal> å <literal>delete()</literal>æä½æ¯ç´æ¥çæ°æ®åºè¡çº§å«æä½ï¼å
¶ç»ææ¯"
-"ç«å»æ§è¡ä¸æ¡<literal>INSERT, UPDATE</literal> æ <literal>DELETE</literal> è¯"
-"å¥ãå æ¤ï¼å®ä»¬çè¯ä¹å<literal>Session</literal> æ¥å£å®ä¹ç<literal>save(), "
-"saveOrUpdate()</literal> å<literal>delete()</literal> æä½æå¾å¤§çä¸åã"
+"<literal>StatelessSession</literal> æ¥å£å®ä¹ç <literal>insert(), update()</"
+"literal> å <literal>delete()</literal> æä½æ¯ç´æ¥çæ°æ®åºè¡çº§å«æä½ï¼å
¶ç»æ"
+"æ¯ç«å»æ§è¡ä¸æ¡ <literal>INSERT, UPDATE</literal> æ <literal>DELETE</"
+"literal> è¯å¥ãå æ¤ï¼å®ä»¬çè¯ä¹å <literal>Session</literal> æ¥å£å®ä¹ç "
+"<literal>save(), saveOrUpdate()</literal> å<literal>delete()</literal> æä½"
+"æå¾å¤§çä¸åã "
#. Tag: title
-#: batch.xml:135
#, no-c-format
msgid "DML-style operations"
-msgstr "DML(æ°æ®æä½è¯è¨)飿 ¼çæä½(DML-style operations)"
+msgstr "DMLï¼æ°æ®æä½è¯è¨ï¼é£æ ¼çæä½ï¼DML-style operationsï¼"
#. Tag: para
-#: batch.xml:137
#, fuzzy, no-c-format
msgid ""
"As already discussed, automatic and transparent object/relational mapping is "
@@ -288,109 +185,76 @@
"is performed through the Hibernate Query Language (<link linkend=\"queryhql"
"\">HQL</link>)."
msgstr ""
-"hence manipulating (using the SQL <literal>Data Manipulation Language</"
-"literal> (DML) statements: <literal>INSERT</literal>, <literal>UPDATE</"
-"literal>, <literal>DELETE</literal>) data directly in the database will not "
-"affect in-memory state. However, Hibernate provides methods for bulk SQL-"
-"style DML statement execution which are performed through the Hibernate "
-"Query Language (<xref linkend=\"queryhql\">HQL</xref>). å°±åå·²ç»è®¨è®ºç飿 ·ï¼"
-"èªå¨åéæç 对象/å
³ç³» æ å°ï¼object/relational mappingï¼å
³æ³¨äºç®¡ç对象çç¶"
-"æã è¿å°±æå³ç对象çç¶æåå¨äºå
åï¼å æ¤ç´æ¥æä½ (ä½¿ç¨ SQL <literal>Data "
-"Manipulation Language</literal>(DML,æ°æ®æä½è¯è¨ï¼è¯å¥ ï¼<literal>INSERT</"
-"literal> ,<literal>UPDATE</literal> å <literal>DELETE</literal>) æ°æ®åºä¸ç"
-"æ°æ®å°ä¸ä¼å½±åå
åä¸çå¯¹è±¡ç¶æåå¯¹è±¡æ°æ®ã ä¸è¿ï¼Hibernateæä¾éè¿Hibernateæ¥"
-"询è¯è¨ï¼<xref linkend=\"queryhql\">HQL</xref>ï¼æ¥æ§è¡å¤§æ¹ éSQL飿 ¼çDMLè¯å¥"
-"çæ¹æ³ã"
+"å°±åå·²ç»è®¨è®ºç飿 ·ï¼èªå¨åéæç对象/å
³ç³»æ å°ï¼object/relational mappingï¼å
³"
+"注äºç®¡ç对象çç¶æãè¿å°±æå³ç对象çç¶æåå¨äºå
åï¼å æ¤ç´æ¥æä½ï¼ä½¿ç¨ SQL "
+"<literal>Data Manipulation Language</literal>ï¼DML,æ°æ®æä½è¯è¨ï¼è¯å¥ ï¼"
+"<literal>INSERT</literal> ,<literal>UPDATE</literal> å <literal>DELETE</"
+"literal>ï¼ æ°æ®åºä¸çæ°æ®å°ä¸ä¼å½±åå
åä¸çå¯¹è±¡ç¶æåå¯¹è±¡æ°æ®ãä¸è¿ï¼"
+"Hibernate æä¾éè¿ Hibernate æ¥è¯¢è¯è¨ï¼<xref linkend=\"queryhql\"/>ï¼æ¥æ§è¡å¤§"
+"æ¹é SQL 飿 ¼ç DML è¯å¥çæ¹æ³ã "
#. Tag: para
-#: batch.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pseudo-syntax for <literal>UPDATE</literal> and <literal>DELETE</"
"literal> statements is: <literal>( UPDATE | DELETE ) FROM? EntityName (WHERE "
"where_conditions)?</literal>."
msgstr ""
-"<literal>UPDATE</literal> å <literal>DELETE</literal>è¯å¥çè¯æ³ä¸ºï¼ "
+"<literal>UPDATE</literal> å <literal>DELETE</literal> è¯å¥çä¼ªè¯æ³ä¸ºï¼"
"<literal>( UPDATE | DELETE ) FROM? EntityName (WHERE where_conditions)?</"
-"literal> æå ç¹è¯´æï¼"
+"literal>ã"
#. Tag: para
-#: batch.xml:151
#, no-c-format
msgid "Some points to note:"
-msgstr ""
+msgstr "è¦æ³¨æçäºé¡¹ï¼"
#. Tag: para
-#: batch.xml:157
#, no-c-format
msgid "In the from-clause, the FROM keyword is optional"
-msgstr "å¨FROMåå¥ï¼from-clauseï¼ä¸ï¼FROMå
³é®åæ¯å¯éç"
+msgstr "å¨ FROM åå¥ï¼from-clauseï¼ä¸ï¼FROM å
³é®åæ¯å¯éç"
#. Tag: para
-#: batch.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can only be a single entity named in the from-clause. It can, however, "
"be aliased. If the entity name is aliased, then any property references must "
"be qualified using that alias. If the entity name is not aliased, then it is "
"illegal for any property references to be qualified."
msgstr ""
-"å¨FROMåå¥ï¼from-clauseï¼ä¸åªè½æä¸ä¸ªå®ä½åï¼å®å¯ä»¥æ¯å«åã妿å®ä½åæ¯å«åï¼"
-"é£ä¹ä»»ä½è¢«å¼ç¨ç屿§é½å¿
é¡»å 䏿¤å«åçåç¼ï¼å¦æä¸æ¯å«åï¼é£ä¹ä»»ä½æåç¼çå±"
-"æ§å¼ç¨é½æ¯éæ³çã"
+"å¨ FROM åå¥ï¼from-clauseï¼ä¸åªè½æä¸ä¸ªå®ä½åï¼å®å¯ä»¥æ¯å«åã妿å®ä½åæ¯å«"
+"åï¼é£ä¹ä»»ä½è¢«å¼ç¨ç屿§é½å¿
é¡»å 䏿¤å«åçåç¼ï¼å¦æä¸æ¯å«åï¼é£ä¹ä»»ä½æåç¼"
+"ç屿§å¼ç¨é½æ¯éæ³çã "
#. Tag: para
-#: batch.xml:170
#, fuzzy, no-c-format
msgid ""
"No <link linkend=\"queryhql-joins-forms\">joins</link>, either implicit or "
"explicit, can be specified in a bulk HQL query. Sub-queries can be used in "
"the where-clause, where the subqueries themselves may contain joins."
msgstr ""
-"ä¸è½å¨å¤§æ¹éHQLè¯å¥ä¸ä½¿ç¨<xref linkend=\"queryhql-joins-forms\">è¿æ¥(join)</"
-"xref>ï¼æ¾å¼æè
éå¼çé½ä¸è¡ï¼ãä¸è¿å¨WHEREåå¥ä¸å¯ä»¥ä½¿ç¨åæ¥è¯¢ãå¯ä»¥å¨whereå"
-"å¥ä¸ä½¿ç¨åæ¥è¯¢ï¼åæ¥è¯¢æ¬èº«å¯ä»¥å
å«joinã"
+"ä¸è½å¨å¤§æ¹é HQL è¯å¥ä¸ä½¿ç¨ <xref linkend=\"queryhql-joins-forms\"/> è¿æ¥ï¼æ¾"
+"弿è
éå¼çé½ä¸è¡ï¼ãä¸è¿å¨ WHERE åå¥ä¸å¯ä»¥ä½¿ç¨åæ¥è¯¢ãå¯ä»¥å¨ where åå¥ä¸"
+"使ç¨åæ¥è¯¢ï¼åæ¥è¯¢æ¬èº«å¯ä»¥å
å« joinã "
#. Tag: para
-#: batch.xml:177
#, no-c-format
msgid "The where-clause is also optional."
-msgstr "æ´ä¸ªWHEREå奿¯å¯éçã"
+msgstr "æ´ä¸ª WHERE å奿¯å¯éçã"
#. Tag: para
-#: batch.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As an example, to execute an HQL <literal>UPDATE</literal>, use the "
"<literal>Query.executeUpdate()</literal> method. The method is named for "
"those familiar with JDBC's <literal>PreparedStatement.executeUpdate()</"
"literal>:"
msgstr ""
-"举个ä¾åï¼ä½¿ç¨<literal>Query.executeUpdate()</literal>æ¹æ³æ§è¡ä¸ä¸ªHQL "
-"<literal>UPDATE</literal>è¯å¥(ï¼ (æ¹æ³å½åæ¯æ¥æºäºJDBC's "
-"<literal>PreparedStatement.executeUpdate()</literal>):"
+"举个ä¾åï¼ä½¿ç¨ <literal>Query.executeUpdate()</literal> æ¹æ³æ§è¡ä¸ä¸ª HQL "
+"<literal>UPDATE</literal>è¯å¥ï¼æ¹æ³å½åæ¯æ¥æºäº JDBC ç "
+"<literal>PreparedStatement.executeUpdate()</literal>ï¼ï¼ "
-#. Tag: programlisting
-#: batch.xml:189
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlUpdate = \"update Customer c set c.name = :newName where c.name = :"
-"oldName\";\n"
-"// or String hqlUpdate = \"update Customer set name = :newName where name = :"
-"oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: batch.xml:191
#, fuzzy, no-c-format
msgid ""
"In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> "
@@ -403,71 +267,36 @@
"<literal>VERSIONED</literal> keyword after the <literal>UPDATE</literal> "
"keyword."
msgstr ""
-"HQL <literal>UPDATE</literal>è¯å¥ï¼é»è®¤ä¸ä¼å½±åæ´æ°å®ä½ç<xref linkend="
-"\"mapping-declaration-version\">version</xref>æè
<xref linkend=\"mapping-"
-"declaration-timestamp\">timestamp</xref>屿§å¼ãè¿åEJB3è§èæ¯ä¸è´çã使¯ï¼"
-"éè¿ä½¿ç¨<literal>versioned update</literal>ï¼ä½ å¯ä»¥å¼ºå¶Hibernateæ£ç¡®çéç½®"
-"<literal>version</literal>æè
<literal>timestamp</literal>屿§å¼ãè¿éè¿å¨"
-"<literal>UPDATE</literal>å
³é®ååé¢å¢å <literal>VERSIONED</literal>å
³é®åæ¥å®"
-"ç°çã"
+"HQL <literal>UPDATE</literal> è¯å¥ï¼é»è®¤ä¸ä¼å½±åæ´æ°å®ä½ç <xref linkend="
+"\"mapping-declaration-version\"/> æè
<xref linkend=\"mapping-declaration-"
+"timestamp\"/> 屿§å¼ãè¿å EJB3 è§èæ¯ä¸è´çã使¯ï¼éè¿ä½¿ç¨ "
+"<literal>versioned update</literal>ï¼ä½ å¯ä»¥å¼ºå¶ Hibernate æ£ç¡®çéç½®"
+"<literal>version</literal> æè
<literal>timestamp</literal> 屿§å¼ãè¿éè¿"
+"å¨ <literal>UPDATE</literal> å
³é®ååé¢å¢å <literal>VERSIONED</literal> å
³é®"
+"忥å®ç°çã "
-#. Tag: programlisting
-#: batch.xml:201
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"String hqlVersionedUpdate = \"update versioned Customer set name = :newName "
-"where name = :oldName\";\n"
-"int updatedEntities = s.createQuery( hqlUpdate )\n"
-" .setString( \"newName\", newName )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:203
-#, fuzzy, no-c-format
-msgid ""
"Custom version types, <literal>org.hibernate.usertype.UserVersionType</"
"literal>, are not allowed in conjunction with a <literal>update versioned</"
"literal> statement."
msgstr ""
-"注æï¼èªå®ä¹ççæ¬ç±»å(<literal>org.hibernate.usertype.UserVersionType</"
-"literal>)ä¸å
许å<literal>update versioned</literal>è¯å¥èç¨ã"
+"注æï¼èªå®ä¹ççæ¬ç±»åï¼<literal>org.hibernate.usertype.UserVersionType</"
+"literal>ï¼ä¸å
许å <literal>update versioned</literal> è¯å¥èç¨ã "
#. Tag: para
-#: batch.xml:208
#, no-c-format
msgid ""
"To execute an HQL <literal>DELETE</literal>, use the same <literal>Query."
"executeUpdate()</literal> method:"
msgstr ""
-"æ§è¡ä¸ä¸ªHQL <literal>DELETE</literal>ï¼åæ ·ä½¿ç¨ <literal>Query.executeUpdate"
-"()</literal> æ¹æ³:"
+"æ§è¡ä¸ä¸ª HQL <literal>DELETE</literal>ï¼åæ ·ä½¿ç¨ <literal>Query.executeUpdate"
+"()</literal> æ¹æ³ï¼"
-#. Tag: programlisting
-#: batch.xml:213
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
-"// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
-"int deletedEntities = s.createQuery( hqlDelete )\n"
-" .setString( \"oldName\", oldName )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: batch.xml:215
-#, fuzzy, no-c-format
-msgid ""
"The <literal>int</literal> value returned by the <literal>Query.executeUpdate"
"()</literal> method indicates the number of entities effected by the "
"operation. This may or may not correlate to the number of rows effected in "
@@ -479,37 +308,35 @@
"which that subclass is mapped, but also the \"root\" table and potentially "
"joined-subclass tables further down the inheritance hierarchy."
msgstr ""
-"ç±<literal>Query.executeUpdate()</literal>æ¹æ³è¿åç<literal>æ´å</literal>å¼"
-"表æäºåæ¤æä½å½±åçè®°å½æ°éã æ³¨æè¿ä¸ªæ°å¼å¯è½ä¸æ°æ®åºä¸è¢«ï¼æå䏿¡SQLè¯"
-"å¥ï¼å½±åäºçâè¡âæ°æå
³ï¼ä¹å¯è½æ²¡æãä¸ä¸ªå¤§æ¹éHQLæä½å¯è½å¯¼è´å¤æ¡å®é
çSQLè¯"
-"å¥è¢«æ§è¡ï¼ 举个ä¾åï¼å¯¹joined-subclassæ å°æ¹å¼çç±»è¿è¡çæ¤ç±»æä½ãè¿ä¸ªè¿åå¼"
-"代表äºå®é
被è¯å¥å½±åäºçè®°å½æ°éãå¨é£ä¸ªjoined-subclassçä¾åä¸ï¼ 对ä¸ä¸ªåç±»"
-"çå é¤å®é
ä¸å¯è½ä¸ä»
ä»
ä¼å é¤åç±»æ å°å°ç表èä¸ä¼å½±åâæ ¹â表ï¼è¿æå¯è½å½±åä¸ä¹"
-"æç»§æ¿å
³ç³»çjoined-subclassæ å°æ¹å¼çåç±»ç表ã"
+"ç± <literal>Query.executeUpdate()</literal> æ¹æ³è¿åç<literal>æ´å</literal>"
+"å¼è¡¨æäºåæ¤æä½å½±åçè®°å½æ°éãæ³¨æè¿ä¸ªæ°å¼å¯è½ä¸æ°æ®åºä¸è¢«ï¼æå䏿¡ SQL è¯"
+"å¥ï¼å½±åäºçâè¡âæ°æå
³ï¼ä¹å¯è½æ²¡æãä¸ä¸ªå¤§æ¹é HQL æä½å¯è½å¯¼è´å¤æ¡å®é
çSQL"
+"è¯å¥è¢«æ§è¡ï¼ä¸¾ä¸ªä¾åï¼å¯¹ joined-subclass æ å°æ¹å¼çç±»è¿è¡çæ¤ç±»æä½ãè¿ä¸ªè¿å"
+"å¼ä»£è¡¨äºå®é
被è¯å¥å½±åäºçè®°å½æ°éãå¨é£ä¸ª joined-subclass çä¾åä¸ï¼ 对ä¸ä¸ª"
+"åç±»çå é¤å®é
ä¸å¯è½ä¸ä»
ä»
ä¼å é¤åç±»æ å°å°ç表èä¸ä¼å½±åâæ ¹â表ï¼è¿æå¯è½å½±å"
+"ä¸ä¹æç»§æ¿å
³ç³»ç joined-subclass æ å°æ¹å¼çåç±»ç表ã "
#. Tag: para
-#: batch.xml:226
#, no-c-format
msgid ""
"The pseudo-syntax for <literal>INSERT</literal> statements is: "
"<literal>INSERT INTO EntityName properties_list select_statement</literal>. "
"Some points to note:"
msgstr ""
-"<literal>INSERT</literal>è¯å¥çä¼ªç æ¯: <literal>INSERT INTO EntityName "
-"properties_list select_statement</literal>. è¦æ³¨æçæ¯:"
+"<literal>INSERT</literal> è¯å¥çä¼ªç æ¯ï¼<literal>INSERT INTO EntityName "
+"properties_list select_statement</literal>ãè¦æ³¨æçæ¯ï¼"
#. Tag: para
-#: batch.xml:234
#, no-c-format
msgid ""
"Only the INSERT INTO ... SELECT ... form is supported; not the INSERT "
"INTO ... VALUES ... form."
msgstr ""
-"åªæ¯æINSERT INTO ... SELECT ...å½¢å¼,䏿¯æINSERT INTO ... VALUES ...å½¢å¼."
+"åªæ¯æ INSERT INTO ... SELECT ... å½¢å¼ï¼ä¸æ¯æ INSERT INTO ... VALUES ... å½¢"
+"å¼ã"
#. Tag: para
-#: batch.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties_list is analogous to the <literal>column specification</"
"literal> in the SQL <literal>INSERT</literal> statement. For entities "
@@ -518,14 +345,13 @@
"are not allowed and subclass properties do not make sense. In other words, "
"<literal>INSERT</literal> statements are inherently non-polymorphic."
msgstr ""
-"properties_liståSQL <literal>INSERT</literal>è¯å¥ä¸ç<literal>åæ®µå®ä¹"
-"(column speficiation)</literal>类似ã对åä¸ç»§æ¿æ æ å°çå®ä½èè¨ï¼åªæç´æ¥å®ä¹"
-"å¨ç»å®ç类级å«ç屿§æè½ç´æ¥å¨properties_listä¸ä½¿ç¨ãè¶
ç±»ç屿§ä¸è¢«æ¯æï¼åç±»"
-"ç屿§æ æä¹ãæ¢å¥è¯è¯´ï¼<literal>INSERT</literal>天ç䏿¯æå¤æã"
+"properties_list å SQL <literal>INSERT</literal> è¯å¥ä¸ç<literal>åæ®µå®ä¹"
+"ï¼column speficiationï¼</literal>类似ã对åä¸ç»§æ¿æ æ å°çå®ä½èè¨ï¼åªæç´æ¥å®"
+"ä¹å¨ç»å®ç类级å«ç屿§æè½ç´æ¥å¨ properties_list ä¸ä½¿ç¨ãè¶
ç±»ç屿§ä¸è¢«æ¯æï¼"
+"åç±»ç屿§æ æä¹ãæ¢å¥è¯è¯´ï¼<literal>INSERT</literal> 天ç䏿¯æå¤ææ§ã"
#. Tag: para
-#: batch.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"select_statement can be any valid HQL select query, with the caveat that the "
"return types must match the types expected by the insert. Currently, this is "
@@ -538,17 +364,16 @@
"TimestampType</literal>, even though the database might not make a "
"distinction or might be able to handle the conversion."
msgstr ""
-"select_statementå¯ä»¥æ¯ä»»ä½åæ³çHQLéæ©æ¥è¯¢ï¼ä¸è¿è¦ä¿è¯è¿åç±»åå¿
é¡»åè¦æå
¥ç"
-"ç±»åå®å
¨å¹é
ãç®åï¼è¿ä¸æ£æ¥æ¯å¨æ¥è¯¢ç¼è¯çæ¶åè¿è¡çï¼è䏿¯æå®äº¤ç»æ°æ®åºã"
-"注æï¼å¨Hibernate<literal>Type</literal>é´å¦æåªæ¯<emphasis>çä»·"
-"ï¼equivalentï¼</emphasis>èé<emphasis>ç¸ç(equal)</emphasis>ï¼ä¼å¯¼è´é®é¢ãå®"
-"ä¹ä¸º<literal>org.hibernate.type.DateType</literal>å<literal>org.hibernate."
-"type.TimestampType</literal>çä¸¤ä¸ªå±æ§å¯è½ä¼äº§çç±»åä¸å¹é
é误ï¼è½ç¶æ°æ®åºçº§"
-"å¯è½ä¸å åºåæè
å¯ä»¥å¤çè¿ç§è½¬æ¢ã"
+"select_statement å¯ä»¥æ¯ä»»ä½åæ³ç HQL éæ©æ¥è¯¢ï¼ä¸è¿è¦ä¿è¯è¿åç±»åå¿
é¡»åè¦æ"
+"å
¥çç±»åå®å
¨å¹é
ãç®åï¼è¿ä¸æ£æ¥æ¯å¨æ¥è¯¢ç¼è¯çæ¶åè¿è¡çï¼è䏿¯æå®äº¤ç»æ°æ®"
+"åºã注æï¼å¨Hibernate<literal>Type</literal> é´å¦æåªæ¯<emphasis>çä»·"
+"ï¼equivalentï¼</emphasis>èé<emphasis>ç¸çï¼equalï¼</emphasis>ï¼ä¼å¯¼è´é®é¢ã"
+"å®ä¹ä¸º <literal>org.hibernate.type.DateType</literal> å <literal>org."
+"hibernate.type.TimestampType</literal> çä¸¤ä¸ªå±æ§å¯è½ä¼äº§çç±»åä¸å¹é
é误ï¼è½"
+"ç¶æ°æ®åºçº§å¯è½ä¸å åºåæè
å¯ä»¥å¤çè¿ç§è½¬æ¢ã "
#. Tag: para
-#: batch.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For the id property, the insert statement gives you two options. You can "
"either explicitly specify the id property in the properties_list, in which "
@@ -564,19 +389,18 @@
"TableHiLoGenerator</literal>, which cannot be used because it does not "
"expose a selectable way to get its values."
msgstr ""
-"对id屿§æ¥è¯´,insertè¯å¥ç»ä½ ä¸¤ä¸ªéæ©ãä½ å¯ä»¥æç¡®å°å¨properties_listè¡¨ä¸æå®id"
-"屿§ï¼è¿æ ·å®ç弿¯ä»å¯¹åºçselect表达å¼ä¸è·å¾ï¼ï¼æè
å¨properties_listä¸çç¥å®"
-"ï¼æ¤æ¶ä½¿ç¨çææï¼ãåä¸ç§éæ©åªæå½ä½¿ç¨å¨æ°æ®åºä¸çæå¼çid产ç卿¶æè½ä½¿"
-"ç¨ï¼å¦ææ¯âå
åâä¸è®¡ç®çç±»åçæå¨ï¼å¨è§£ææ¶ä¼æåºä¸ä¸ªå¼å¸¸ã注æï¼ä¸ºäºè¯´æè¿"
-"ä¸é®é¢ï¼æ°æ®åºäº§çå¼ççæå¨æ¯<literal>org.hibernate.id.SequenceGenerator</"
-"literal>ï¼åå®çåç±»ï¼ï¼ä»¥åä»»ä½<literal>org.hibernate.id."
-"PostInsertIdentifierGenerator</literal>æ¥å£çå®ç°ãè¿å¿æå¼å¾æ³¨æçæå¤æ¯"
-"<literal>org.hibernate.id.TableHiLoGenerator</literal>ï¼å®ä¸è½å¨æ¤ä½¿ç¨ï¼å 为"
-"宿²¡æå¾å°å
¶å¼çéå¾ã"
+"对 id 屿§æ¥è¯´ï¼insert è¯å¥ç»ä½ ä¸¤ä¸ªéæ©ãä½ å¯ä»¥æç¡®å°å¨ properties_list 表ä¸"
+"æå® id 屿§ï¼è¿æ ·å®ç弿¯ä»å¯¹åºç select 表达å¼ä¸è·å¾ï¼ï¼æè
å¨ "
+"properties_list ä¸çç¥å®ï¼æ¤æ¶ä½¿ç¨çææï¼ãåä¸ç§éæ©åªæå½ä½¿ç¨å¨æ°æ®åºä¸ç"
+"æå¼ç id 产ç卿¶æè½ä½¿ç¨ï¼å¦ææ¯âå
åâä¸è®¡ç®çç±»åçæå¨ï¼å¨è§£ææ¶ä¼æåºä¸"
+"个å¼å¸¸ã注æï¼ä¸ºäºè¯´æè¿ä¸é®é¢ï¼æ°æ®åºäº§çå¼ççæå¨æ¯ <literal>org."
+"hibernate.id.SequenceGenerator</literal>ï¼åå®çåç±»ï¼ï¼ä»¥åä»»ä½ "
+"<literal>org.hibernate.id.PostInsertIdentifierGenerator</literal> æ¥å£çå®"
+"ç°ãè¿å¿æå¼å¾æ³¨æçæå¤æ¯ <literal>org.hibernate.id.TableHiLoGenerator</"
+"literal>ï¼å®ä¸è½å¨æ¤ä½¿ç¨ï¼å ä¸ºå®æ²¡æå¾å°å
¶å¼çéå¾ã "
#. Tag: para
-#: batch.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For properties mapped as either <literal>version</literal> or "
"<literal>timestamp</literal>, the insert statement gives you two options. "
@@ -585,31 +409,241 @@
"from the properties_list, in which case the <literal>seed value</literal> "
"defined by the <literal>org.hibernate.type.VersionType</literal> is used."
msgstr ""
-"对æ å°ä¸º<literal>version</literal> æ <literal>timestamp</literal>ç屿§æ¥"
-"说ï¼insertè¯å¥ä¹ç»ä½ ä¸¤ä¸ªéæ©ï¼ä½ å¯ä»¥å¨properties_listè¡¨ä¸æå®ï¼æ¤æ¶å
¶å¼ä»å¯¹åº"
-"çselect表达å¼ä¸è·å¾ï¼ï¼æè
å¨properties_listä¸çç¥å®ï¼æ¤æ¶ï¼ä½¿ç¨å¨"
-"<literal>org.hibernate.type.VersionType</literal> ä¸å®ä¹ç<literal>seed value"
-"(ç§åå¼)</literal>ï¼ã"
+"对æ å°ä¸º <literal>version</literal> æ <literal>timestamp</literal> ç屿§æ¥"
+"说ï¼insert è¯å¥ä¹ç»ä½ ä¸¤ä¸ªéæ©ï¼ä½ å¯ä»¥å¨ properties_list è¡¨ä¸æå®ï¼æ¤æ¶å
¶å¼ä»"
+"对åºç select 表达å¼ä¸è·å¾ï¼ï¼æè
å¨ properties_list ä¸çç¥å®ï¼æ¤æ¶ï¼ä½¿ç¨å¨ "
+"<literal>org.hibernate.type.VersionType</literal> ä¸å®ä¹ç <literal>seed "
+"valueï¼ç§åå¼ï¼</literal>ï¼ã"
#. Tag: para
-#: batch.xml:284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example of an HQL <literal>INSERT</literal> statement "
"execution:"
-msgstr "æ§è¡HQL <literal>INSERT</literal>è¯å¥çä¾åå¦ä¸ï¼"
+msgstr "ä¸é¢æ¯ä¸ä¸ªæ§è¡ HQL <literal>INSERT</literal> è¯å¥çä¾åï¼"
-#. Tag: programlisting
-#: batch.xml:288
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = sessionFactory.openSession();\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"String hqlInsert = \"insert into DelinquentAccount (id, name) select c.id, c."
-"name from Customer c where ...\";\n"
-"int createdEntities = s.createQuery( hqlInsert )\n"
-" .executeUpdate();\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ "}\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid "<![CDATA[hibernate.jdbc.batch_size 20]]>"
+#~ msgstr "<![CDATA[hibernate.jdbc.batch_size 20]]>"
+
+#~ msgid "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
+#~ msgstr "<![CDATA[hibernate.cache.use_second_level_cache false]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "for ( int i=0; i<100000; i++ ) {\n"
+#~ " Customer customer = new Customer(.....);\n"
+#~ " session.save(customer);\n"
+#~ " if ( i % 20 == 0 ) { //20, same as the JDBC batch size\n"
+#~ " //flush a batch of inserts and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .setCacheMode(CacheMode.IGNORE)\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "int count=0;\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " if ( ++count % 20 == 0 ) {\n"
+#~ " //flush a batch of updates and release memory:\n"
+#~ " session.flush();\n"
+#~ " session.clear();\n"
+#~ " }\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession"
+#~ "();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[StatelessSession session = sessionFactory.openStatelessSession"
+#~ "();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ " \n"
+#~ "ScrollableResults customers = session.getNamedQuery(\"GetCustomers\")\n"
+#~ " .scroll(ScrollMode.FORWARD_ONLY);\n"
+#~ "while ( customers.next() ) {\n"
+#~ " Customer customer = (Customer) customers.get(0);\n"
+#~ " customer.updateStuff(...);\n"
+#~ " session.update(customer);\n"
+#~ "}\n"
+#~ " \n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlUpdate = \"update Customer c set c.name = :newName where c.name "
+#~ "= :oldName\";\n"
+#~ "// or String hqlUpdate = \"update Customer set name = :newName where name "
+#~ "= :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "String hqlVersionedUpdate = \"update versioned Customer set name = :"
+#~ "newName where name = :oldName\";\n"
+#~ "int updatedEntities = s.createQuery( hqlUpdate )\n"
+#~ " .setString( \"newName\", newName )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlDelete = \"delete Customer c where c.name = :oldName\";\n"
+#~ "// or String hqlDelete = \"delete Customer where name = :oldName\";\n"
+#~ "int deletedEntities = s.createQuery( hqlDelete )\n"
+#~ " .setString( \"oldName\", oldName )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sessionFactory.openSession();\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "String hqlInsert = \"insert into DelinquentAccount (id, name) select c."
+#~ "id, c.name from Customer c where ...\";\n"
+#~ "int createdEntities = s.createQuery( hqlInsert )\n"
+#~ " .executeUpdate();\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/best_practices.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/best_practices.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/best_practices.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,34 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-11-06 10:05+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: best_practices.xml:29
#, no-c-format
msgid "Best Practices"
-msgstr "æä½³å®è·µ(Best Practices)"
+msgstr "æä½³å®è·µï¼Best Practicesï¼"
#. Tag: term
-#: best_practices.xml:33
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write fine-grained classes and map them using <literal><component></"
"literal>:"
msgstr ""
-"设计ç»é¢ç²åº¦çæä¹
类并ä¸ä½¿ç¨<literal><component></literal>æ¥å®ç°æ å°ã"
+"设计ç»é¢ç²åº¦çæä¹
类并ä¸ä½¿ç¨ <literal><component></literal> æ¥å®ç°æ "
+"å°ï¼"
#. Tag: para
-#: best_practices.xml:35
#, no-c-format
msgid ""
"Use an <literal>Address</literal> class to encapsulate <literal>street</"
@@ -34,35 +36,31 @@
"<literal>postcode</literal>. This encourages code reuse and simplifies "
"refactoring."
msgstr ""
-"使ç¨ä¸ä¸ª<literal>Address</literal>æä¹
ç±»æ¥å°è£
<literal>street</literal>, "
-"<literal>suburb</literal>, <literal>state</literal>, <literal>postcode</"
-"literal>. è¿å°æå©äºä»£ç éç¨åç®å代ç éæ(refactoring)çå·¥ä½ã"
+"使ç¨ä¸ä¸ª <literal>Address</literal> æä¹
ç±»æ¥å°è£
ã<literal>street</literal>ï¼"
+"<literal>suburb</literal>ï¼<literal>state</literal>ï¼<literal>postcode</"
+"literal>ã è¿å°æå©äºä»£ç éç¨åç®å代ç éæï¼refactoringï¼çå·¥ä½ã"
#. Tag: term
-#: best_practices.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Declare identifier properties on persistent classes:"
-msgstr "对æä¹
ç±»å£°ææ è¯ç¬¦å±æ§( identifier properties)ã"
+msgstr "对æä¹
ç±»å£°ææ è¯ç¬¦å±æ§ï¼identifier propertiesï¼ï¼"
#. Tag: para
-#: best_practices.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate makes identifier properties optional. There are a range of reasons "
"why you should use them. We recommend that identifiers be 'synthetic', that "
"is, generated with no business meaning."
msgstr ""
-"Hibernate䏿 è¯ç¬¦å±æ§æ¯å¯éçï¼ä¸è¿æå¾å¤åå æ¥è¯´æä½ åºè¯¥ä½¿ç¨æ è¯ç¬¦å±æ§ãæä»¬"
-"建议æ è¯ç¬¦åºè¯¥æ¯â人é âç(èªå¨çæï¼ä¸æ¶åä¸å¡å«ä¹)ã"
+"Hibernate 䏿 è¯ç¬¦å±æ§æ¯å¯éçï¼ä¸è¿æå¾å¤åå æ¥è¯´æä½ åºè¯¥ä½¿ç¨æ è¯ç¬¦å±æ§ãæ"
+"们建议æ è¯ç¬¦åºè¯¥æ¯â人é âçï¼èªå¨çæï¼ä¸æ¶åä¸å¡å«ä¹ï¼ã "
#. Tag: term
-#: best_practices.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Identify natural keys:"
-msgstr "使ç¨èªç¶é®(natural keys)æ è¯"
+msgstr "使ç¨èªç¶é®ï¼natural keysï¼æ è¯ï¼"
#. Tag: para
-#: best_practices.xml:55
#, no-c-format
msgid ""
"Identify natural keys for all entities, and map them using <literal><"
@@ -70,102 +68,90 @@
"<literal>hashCode()</literal> to compare the properties that make up the "
"natural key."
msgstr ""
-"对ææçå®ä½é½æ è¯åºèªç¶é®ï¼ç¨<literal><natural-id></literal>è¿è¡æ å°ã"
-"å®ç°<literal>equals()</literal>å<literal>hashCode()</literal>ï¼å¨å
¶ä¸ç¨ç»æ"
-"èªç¶é®ç屿§è¿è¡æ¯è¾ã"
+"对ææçå®ä½é½æ è¯åºèªç¶é®ï¼ç¨ <literal><natural-id></literal> è¿è¡æ "
+"å°ãå®ç° <literal>equals()</literal> å <literal>hashCode()</literal>ï¼å¨å
¶ä¸"
+"ç¨ç»æèªç¶é®ç屿§è¿è¡æ¯è¾ã"
#. Tag: term
-#: best_practices.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Place each class mapping in its own file:"
-msgstr "为æ¯ä¸ªæä¹
ç±»åä¸ä¸ªæ å°æä»¶"
+msgstr "为æ¯ä¸ªæä¹
ç±»åä¸ä¸ªæ å°æä»¶ï¼"
#. Tag: para
-#: best_practices.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use a single monolithic mapping document. Map <literal>com.eg.Foo</"
"literal> in the file <literal>com/eg/Foo.hbm.xml</literal>. This makes "
"sense, particularly in a team environment."
msgstr ""
"ä¸è¦æææçæä¹
ç±»æ å°é½åå°ä¸ä¸ªå¤§æä»¶ä¸ãæ <literal>com.eg.Foo</literal> æ "
-"å°å°<literal>com/eg/Foo.hbm.xml</literal>ä¸ï¼ å¨å¢éå¼åç¯å¢ä¸ï¼è¿ä¸ç¹æ¾å¾ç¹"
-"嫿æä¹ã"
+"å°å° <literal>com/eg/Foo.hbm.xml</literal> ä¸ãå¨å¢éå¼åç¯å¢ä¸ï¼è¿ä¸ç¹å°¤å
¶é"
+"è¦ã"
#. Tag: term
-#: best_practices.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Load mappings as resources:"
-msgstr "ææ å°æä»¶ä½ä¸ºèµæºå è½½"
+msgstr "ææ å°æä»¶ä½ä¸ºèµæºå è½½ï¼"
#. Tag: para
-#: best_practices.xml:75
#, no-c-format
msgid "Deploy the mappings along with the classes they map."
msgstr "ææ å°æä»¶åä»ä»¬çæ å°ç±»æ¾å¨ä¸èµ·è¿è¡é¨ç½²ã"
#. Tag: term
-#: best_practices.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider externalizing query strings:"
-msgstr "èèææ¥è¯¢å符串æ¾å¨ç¨åºå¤é¢"
+msgstr "èèææ¥è¯¢å符串æ¾å¨ç¨åºå¤é¢ï¼"
#. Tag: para
-#: best_practices.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is recommended if your queries call non-ANSI-standard SQL functions. "
"Externalizing the query strings to mapping files will make the application "
"more portable."
msgstr ""
-"å¦æä½ çæ¥è¯¢ä¸è°ç¨äºéANSIæ åçSQL彿°ï¼é£ä¹è¿æ¡å®è·µç»éªå¯¹ä½ éç¨ãææ¥è¯¢å符"
-"串æ¾å¨æ å°æä»¶ä¸å¯ä»¥è®©ç¨åºå
·ææ´å¥½çå¯ç§»æ¤æ§ã"
+"å¦æä½ çæ¥è¯¢ä¸è°ç¨äºé ANSI æ åç SQL 彿°ï¼é£ä¹è¿æ¡å®è·µç»éªå¯¹ä½ éç¨ãææ¥è¯¢"
+"å符串æ¾å¨æ å°æä»¶ä¸å¯ä»¥è®©ç¨åºå
·ææ´å¥½çå¯ç§»æ¤æ§ã "
#. Tag: term
-#: best_practices.xml:91
#, no-c-format
msgid "Use bind variables."
msgstr "使ç¨ç»å®åé"
#. Tag: para
-#: best_practices.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As in JDBC, always replace non-constant values by \"?\". Do not use string "
"manipulation to bind a non-constant value in a query. You should also "
"consider using named parameters in queries."
msgstr ""
-"å°±åå¨JDBCç¼ç¨ä¸ä¸æ ·ï¼åºè¯¥æ»æ¯ç¨å ä½ç¬¦\"?\"æ¥æ¿æ¢é常éå¼ï¼ä¸è¦å¨æ¥è¯¢ä¸ç¨å符"
-"䏲弿¥æé é常éå¼ï¼æ´å¥½çåæ³æ¯å¨æ¥è¯¢ä¸ä½¿ç¨å½ååæ°ã"
+"å°±åå¨ JDBC ç¼ç¨ä¸ä¸æ ·ï¼åºè¯¥æ»æ¯ç¨å ä½ç¬¦ \"?\" æ¥æ¿æ¢é常éå¼ï¼ä¸è¦å¨æ¥è¯¢ä¸ç¨"
+"åç¬¦ä¸²å¼æ¥æé é常éå¼ãä½ ä¹åºè¯¥èè卿¥è¯¢ä¸ä½¿ç¨å½ååæ°ã"
#. Tag: term
-#: best_practices.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not manage your own JDBC connections:"
-msgstr "ä¸è¦èªå·±æ¥ç®¡çJDBC connections"
+msgstr "ä¸è¦èªå·±æ¥ç®¡ç JDBC è¿æ¥ï¼"
#. Tag: para
-#: best_practices.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows the application to manage JDBC connections, but his "
"approach should be considered a last-resort. If you cannot use the built-in "
"connection providers, consider providing your own implementation of "
"<literal>org.hibernate.connection.ConnectionProvider</literal>."
msgstr ""
-"Hibernateå
许åºç¨ç¨åºèªå·±æ¥ç®¡çJDBC connectionsï¼ä½æ¯åºè¯¥ä½ä¸ºæå没æåæ³çå"
-"æ³ãå¦æä½ ä¸è½ä½¿ç¨Hibernateå
建çconnections providersï¼é£ä¹èèå®ç°èªå·±æ¥å®"
-"ç°<literal>org.hibernate.connection.ConnectionProvider</literal>"
+"Hibernate å
许åºç¨ç¨åºèªå·±æ¥ç®¡ç JDBC è¿æ¥ï¼ä½æ¯åºè¯¥ä½ä¸ºæå没æåæ³çåæ³ã"
+"å¦æä½ ä¸è½ä½¿ç¨ Hibernate å
建ç connections providersï¼é£ä¹èèå®ç°èªå·±æ¥å®"
+"ç° <literal>org.hibernate.connection.ConnectionProvider</literal>ã"
#. Tag: term
-#: best_practices.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider using a custom type:"
-msgstr "èè使ç¨ç¨æ·èªå®ä¹ç±»å(custom type)"
+msgstr "èè使ç¨ç¨æ·èªå®ä¹ç±»åï¼custom typeï¼ï¼"
#. Tag: para
-#: best_practices.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you have a Java type from a library that needs to be persisted but "
"does not provide the accessors needed to map it as a component. You should "
@@ -173,51 +159,41 @@
"approach frees the application code from implementing transformations to/"
"from a Hibernate type."
msgstr ""
-"åè®¾ä½ æä¸ä¸ªJavaç±»åï¼æ¥èªæäºç±»åºï¼éè¦è¢«æä¹
åï¼ä½æ¯è¯¥ç±»æ²¡ææä¾æ å°æä½é"
-"è¦çååæ¹æ³ãé£ä¹ä½ åºè¯¥èèå®ç°<literal>org.hibernate.UserType</literal>æ¥"
-"å£ãè¿ç§åæ³ä½¿ç¨åºä»£ç åèµ·æ¥æ´å èªå¦ï¼ä¸åéè¦èèç±»ä¸Hibernate typeä¹é´çç¸"
-"äºè½¬æ¢ã"
+"åè®¾ä½ æä¸ä¸ª Java ç±»åï¼æ¥èªæäºç±»åºï¼éè¦è¢«æä¹
åï¼ä½æ¯è¯¥ç±»æ²¡ææä¾æ å°æä½"
+"éè¦çååæ¹æ³ãé£ä¹ä½ åºè¯¥èèå®ç° <literal>org.hibernate.UserType</literal> "
+"æ¥å£ãè¿ç§åæ³ä½¿ç¨åºä»£ç åèµ·æ¥æ´å èªå¦ï¼ä¸åéè¦èèç±»ä¸ Hibernate type ä¹é´"
+"çç¸äºè½¬æ¢ã "
#. Tag: term
-#: best_practices.xml:122
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Use hand-coded JDBC in bottlenecks:"
-msgstr "卿§è½ç¶é¢çå°æ¹ä½¿ç¨ç¡¬ç¼ç çJDBC"
+msgstr "卿§è½ç¶é¢çå°æ¹ä½¿ç¨ç¡¬ç¼ç ç JDBCï¼"
#. Tag: para
-#: best_practices.xml:124
#, fuzzy, no-c-format
msgid ""
"In performance-critical areas of the system, some kinds of operations might "
"benefit from direct JDBC. Do not assume, however, that JDBC is necessarily "
"faster. Please wait until you <emphasis>know</emphasis> something is a "
"bottleneck. If you need to use direct JDBC, you can open a Hibernate "
-"<literal>Session</literal> and usingfile:///usr/share/doc/HTML/en-US/index."
-"html that JDBC connection. This way you can still use the same transaction "
-"strategy and underlying connection provider."
+"<literal>Session</literal>, wrap your JDBC operation as a <literal>org."
+"hibernate.jdbc.Work</literal> object and using that JDBC connection. This "
+"way you can still use the same transaction strategy and underlying "
+"connection provider."
msgstr ""
-"In performance-critical areas of the system, some kinds of operations might "
-"benefit from direct JDBC. But please, wait until you <emphasis>know</"
-"emphasis> something is a bottleneck. And don't assume that direct JDBC is "
-"necessarily faster. If you need to use direct JDBC, it might be worth "
-"opening a Hibernate <literal>Session</literal> and using that JDBC "
-"connection. That way you can still use the same transaction strategy and "
-"underlying connection provider. å¨ç³»ç»ä¸å¯¹æ§è½è¦æ±å¾ä¸¥æ ¼çä¸äºé¨åï¼æäºæä½"
-"ä¹è®¸ç´æ¥ä½¿ç¨JDBC伿´å¥½ã使¯è¯·å
<emphasis>确认</emphasis>è¿çç¡®æ¯ä¸ä¸ªç¶é¢ï¼å¹¶"
-"ä¸ä¸è¦æ³å½ç¶è®¤ä¸ºJDBCä¸å®ä¼æ´å¿«ãå¦æç¡®å®éè¦ç´æ¥ä½¿ç¨JDBCï¼é£ä¹æå¥½æå¼ä¸ä¸ª "
-"Hibernate <literal>Session</literal> ç¶åä» <literal>Session</literal>è·å¾"
-"connectionï¼æç
§è¿ç§åæ³ä½ ä»ç¶å¯ä»¥ä½¿ç¨åæ ·çtransactionçç¥ååºå±ç"
-"connection providerã"
+"å¨ç³»ç»ä¸å¯¹æ§è½è¦æ±å¾ä¸¥æ ¼çä¸äºé¨åï¼æäºæä½ä¹è®¸ç´æ¥ä½¿ç¨ JDBC 伿´å¥½ã使¯è¯·"
+"å
<emphasis>确认</emphasis>è¿çç¡®æ¯ä¸ä¸ªç¶é¢ï¼å¹¶ä¸ä¸è¦æ³å½ç¶è®¤ä¸º JDBC ä¸å®ä¼æ´"
+"å¿«ãå¦æç¡®å®éè¦ç´æ¥ä½¿ç¨ JDBCï¼é£ä¹æå¥½æå¼ä¸ä¸ª Hibernate <literal>Session</"
+"literal> ç¶åä» <literal>Session</literal> è·å¾ connectionï¼æç
§è¿ç§åæ³ä½ ä»"
+"ç¶å¯ä»¥ä½¿ç¨åæ ·ç transaction çç¥ååºå±ç connection providerã "
#. Tag: term
-#: best_practices.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Understand <literal>Session</literal> flushing:"
-msgstr "çè§£<literal>Session</literal>æ¸
æ´ï¼ flushingï¼"
+msgstr "çè§£ <literal>Session</literal> å²å·ï¼flushingï¼ï¼"
#. Tag: para
-#: best_practices.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the Session synchronizes its persistent state with the database. "
"Performance will be affected if this process occurs too often. You can "
@@ -225,19 +201,17 @@
"even by changing the order of queries and other operations within a "
"particular transaction."
msgstr ""
-"Sessionä¼ä¸æ¶çåæ°æ®åºåæ¥æä¹
åç¶æï¼å¦æè¿ç§æä½è¿è¡çè¿äºé¢ç¹ï¼æ§è½ä¼åå°"
-"ä¸å®çå½±åãææ¶åä½ å¯ä»¥éè¿ç¦æ¢èªå¨flushingï¼å°½éæå°åéå¿
è¦çflushingæ"
-"ä½ï¼æè
æ´è¿ä¸æ¥ï¼å¨ä¸ä¸ªç¹å®çtransaction䏿¹åæ¥è¯¢åå
¶å®æä½ç顺åºã"
+"Session ä¼ä¸æ¶çåæ°æ®åºåæ¥æä¹
åç¶æï¼å¦æè¿ç§æä½è¿è¡çè¿äºé¢ç¹ï¼æ§è½ä¼å"
+"å°ä¸å®çå½±åãææ¶åä½ å¯ä»¥éè¿ç¦æ¢èªå¨ flushingï¼å°½éæå°åéå¿
è¦ç flushing "
+"æä½ï¼æè
æ´è¿ä¸æ¥ï¼å¨ä¸ä¸ªç¹å®ç transaction 䏿¹åæ¥è¯¢åå
¶å®æä½ç顺åºã "
#. Tag: term
-#: best_practices.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a three tiered architecture, consider using detached objects:"
-msgstr "å¨ä¸å±ç»æä¸ï¼èèä½¿ç¨æç®¡å¯¹è±¡ï¼detached objectï¼"
+msgstr "å¨ä¸å±ç»æä¸ï¼èè使ç¨è±ç®¡å¯¹è±¡ï¼detached objectï¼ï¼"
#. Tag: para
-#: best_practices.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When using a servlet/session bean architecture, you can pass persistent "
"objects loaded in the session bean to and from the servlet/JSP layer. Use a "
@@ -245,20 +219,18 @@
"or <literal>Session.saveOrUpdate()</literal> to synchronize objects with the "
"database."
msgstr ""
-"å½ä½¿ç¨ä¸ä¸ªservlet / session bean ç±»åçæ¶æçæ¶å, ä½ å¯ä»¥æå·²å è½½çæä¹
对象å¨"
-"session beanå±åservlet / JSP å±ä¹é´æ¥åä¼ éãä½¿ç¨æ°çsessionæ¥ä¸ºæ¯ä¸ªè¯·æ±æ"
-"å¡ï¼ä½¿ç¨ <literal>Session.merge()</literal> æè
<literal>Session.saveOrUpdate"
-"()</literal>æ¥ä¸æ°æ®åºåæ¥ã"
+"å½ä½¿ç¨ä¸ä¸ª servlet / session bean ç±»åçæ¶æçæ¶å, ä½ å¯ä»¥æå·²å è½½çæä¹
对象"
+"å¨ session bean å±å servlet / JSP å±ä¹é´æ¥åä¼ éãä½¿ç¨æ°ç session æ¥ä¸ºæ¯ä¸ª"
+"è¯·æ±æå¡ï¼ä½¿ç¨ <literal>Session.merge()</literal> æè
<literal>Session."
+"saveOrUpdate()</literal> æ¥ä¸æ°æ®åºåæ¥ã "
#. Tag: term
-#: best_practices.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
msgid "In a two tiered architecture, consider using long persistence contexts:"
-msgstr "å¨ä¸¤å±ç»æä¸ï¼èè使ç¨é¿æä¹
ä¸ä¸æ(long persistence contexts)."
+msgstr "å¨ä¸¤å±ç»æä¸ï¼èè使ç¨é¿æä¹
ä¸ä¸æï¼long persistence contextsï¼ï¼"
#. Tag: para
-#: best_practices.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database Transactions have to be as short as possible for best scalability. "
"However, it is often necessary to implement long running "
@@ -273,23 +245,21 @@
"across more than one application transaction or you will be working with "
"stale data."
msgstr ""
-"为äºå¾å°æä½³çå¯ä¼¸ç¼©æ§ï¼æ°æ®åºäºå¡(Database Transaction)åºè¯¥å°½å¯è½ççãä½"
-"æ¯ï¼ç¨åºå¸¸å¸¸éè¦å®ç°é¿æ¶é´è¿è¡ç<emphasis>âåºç¨ç¨åºäºå¡(Application "
-"Transaction)â</emphasis>ï¼å
å«ä¸ä¸ªä»ç¨æ·çè§ç¹æ¥ççååæä½ãè¿ä¸ªåºç¨ç¨åºäº"
-"å¡å¯è½è·¨è¶å¤æ¬¡ä»ç¨æ·è¯·æ±å°å¾å°åé¦ç循ç¯ãç¨è±ç®¡å¯¹è±¡(ä¸sessionè±ç¦»ç对象)æ¥å®"
-"ç°åºç¨ç¨åºäºå¡æ¯å¸¸è§çãæè
ï¼å°¤å
¶å¨ä¸¤å±ç»æä¸ï¼æHibernate Sessionä»JDBCè¿æ¥"
-"ä¸è±ç¦»å¼ï¼ä¸æ¬¡éè¦ç¨çæ¶ååè¿æ¥ä¸ãç»ä¸è¦æä¸ä¸ªSessionç¨å¨å¤ä¸ªåºç¨ç¨åºäºå¡"
-"(Application Transaction)ä¸ï¼å¦åä½ çæ°æ®å¯è½ä¼è¿æå¤±æã"
+"为äºå¾å°æä½³çå¯ä¼¸ç¼©æ§ï¼æ°æ®åºäºå¡ï¼Database Transactionï¼åºè¯¥å°½å¯è½ççãä½"
+"æ¯ï¼ç¨åºå¸¸å¸¸éè¦å®ç°é¿æ¶é´è¿è¡ç<emphasis>âåºç¨ç¨åºäºå¡ï¼Application "
+"Transactionï¼â</emphasis>ï¼å
å«ä¸ä¸ªä»ç¨æ·çè§ç¹æ¥ççååæä½ãè¿ä¸ªåºç¨ç¨åºäº"
+"å¡å¯è½è·¨è¶å¤æ¬¡ä»ç¨æ·è¯·æ±å°å¾å°åé¦ç循ç¯ãç¨è±ç®¡å¯¹è±¡ï¼ä¸ session è±ç¦»ç对象ï¼"
+"æ¥å®ç°åºç¨ç¨åºäºå¡æ¯å¸¸è§çãæè
ï¼å°¤å
¶å¨ä¸¤å±ç»æä¸ï¼æ Hibernate Session ä» "
+"JDBC è¿æ¥ä¸è±ç¦»å¼ï¼ä¸æ¬¡éè¦ç¨çæ¶ååè¿æ¥ä¸ãç»ä¸è¦æä¸ä¸ª Session ç¨å¨å¤ä¸ªåº"
+"ç¨ç¨åºäºå¡ï¼Application Transactionï¼ä¸ï¼å¦åä½ çæ°æ®å¯è½ä¼è¿æå¤±æã"
#. Tag: term
-#: best_practices.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not treat exceptions as recoverable:"
-msgstr "ä¸è¦æå¼å¸¸çæå¯æ¢å¤ç"
+msgstr "ä¸è¦æå¼å¸¸çæå¯æ¢å¤çï¼"
#. Tag: para
-#: best_practices.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is more of a necessary practice than a \"best\" practice. When an "
"exception occurs, roll back the <literal>Transaction</literal> and close the "
@@ -300,20 +270,18 @@
"<literal>Session.get()</literal> or a query instead."
msgstr ""
"è¿ä¸ç¹çè³æ¯âæä½³å®è·µâè¿è¦éè¦ï¼è¿æ¯âå¿
å¤å¸¸è¯âãå½å¼å¸¸åççæ¶åï¼å¿
é¡»è¦åæ» "
-"<literal>Transaction</literal> ï¼å
³é<literal>Session</literal>ãå¦æä½ ä¸è¿æ ·"
-"åçè¯ï¼Hibernateæ æ³ä¿è¯å
åç¶æç²¾ç¡®çååºæä¹
ç¶æãå°¤å
¶ä¸è¦ä½¿ç¨"
-"<literal>Session.load()</literal>æ¥å¤æä¸ä¸ªç»å®æ è¯ç¬¦ç对象å®ä¾å¨æ°æ®åºä¸æ¯å¦"
-"åå¨ï¼åºè¯¥ä½¿ç¨<literal>Session.get()</literal>æè
è¿è¡ä¸æ¬¡æ¥è¯¢."
+"<literal>Transaction</literal> ï¼å
³é <literal>Session</literal>ãå¦æä½ ä¸è¿"
+"æ ·åçè¯ï¼Hibernate æ æ³ä¿è¯å
åç¶æç²¾ç¡®çååºæä¹
ç¶æãå°¤å
¶ä¸è¦ä½¿ç¨ "
+"<literal>Session.load()</literal> æ¥å¤æä¸ä¸ªç»å®æ è¯ç¬¦ç对象å®ä¾å¨æ°æ®åºä¸æ¯"
+"å¦åå¨ï¼åºè¯¥ä½¿ç¨ <literal>Session.get()</literal> æè
è¿è¡ä¸æ¬¡æ¥è¯¢ã"
#. Tag: term
-#: best_practices.xml:184
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer lazy fetching for associations:"
-msgstr "对äºå
³èä¼å
èèlazy fetching"
+msgstr "对äºå
³èä¼å
èè lazy fetchingï¼"
#. Tag: para
-#: best_practices.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use eager fetching sparingly. Use proxies and lazy collections for most "
"associations to classes that are not likely to be completely held in the "
@@ -323,26 +291,24 @@
"to a particular use case, use a query with a <literal>left join fetch</"
"literal>."
msgstr ""
-"è°¨æ
ç使ç¨ä¸»å¨æå(eager fetching)ã对äºå
³èæ¥è¯´ï¼è¥å
¶ç®æ æ¯æ æ³å¨ç¬¬äºçº§ç¼å"
-"ä¸å®å
¨ç¼åææå®ä¾çç±»ï¼åºè¯¥ä½¿ç¨ä»£ç(proxies)ä¸/æå
·æå»¶è¿å è½½å±æ§çéå"
-"(lazy collections)ãè¥ç®æ æ¯å¯ä»¥è¢«ç¼åçï¼å°¤å
¶æ¯ç¼åçå½ä¸çé常é«çæ
åµä¸ï¼"
-"åºè¯¥ä½¿ç¨<literal>lazy=\"false\"</literal>ï¼æç¡®çç¦æ¢æeager fetchingã妿é£"
-"äºç¹æ®çç¡®å®éå使ç¨join fetch çåºåï¼è¯·å¨æ¥è¯¢ä¸ä½¿ç¨<literal>left join "
-"fetch</literal>ã"
+"è°¨æ
ç使ç¨ä¸»å¨æåï¼eager fetchingï¼ã对äºå
³èæ¥è¯´ï¼è¥å
¶ç®æ æ¯æ æ³å¨ç¬¬äºçº§ç¼"
+"åä¸å®å
¨ç¼åææå®ä¾çç±»ï¼åºè¯¥ä½¿ç¨ä»£çï¼proxiesï¼ä¸/æå
·æå»¶è¿å è½½å±æ§çéå"
+"ï¼lazy collectionsï¼ãè¥ç®æ æ¯å¯ä»¥è¢«ç¼åçï¼å°¤å
¶æ¯ç¼åçå½ä¸çé常é«çæ
åµ"
+"ä¸ï¼åºè¯¥ä½¿ç¨ <literal>lazy=\"false\"</literal>ï¼æç¡®çç¦æ¢æ eager fetchingã"
+"妿é£äºç¹æ®çç¡®å®éåä½¿ç¨ join fetch çåºåï¼è¯·å¨æ¥è¯¢ä¸ä½¿ç¨ <literal>left "
+"join fetch</literal>ã "
#. Tag: term
-#: best_practices.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <emphasis>open session in view</emphasis> pattern, or a disciplined "
"<emphasis>assembly phase</emphasis> to avoid problems with unfetched data:"
msgstr ""
-"使ç¨<emphasis>open session in view</emphasis>模å¼ï¼æè
æ§è¡ä¸¥æ ¼ç<emphasis>è£
"
-"é
æ(assembly phase)</emphasis>çç¥æ¥é¿å
忬¡æåæ°æ®å¸¦æ¥çé®é¢"
+"ä½¿ç¨ <emphasis>open session in view</emphasis> 模å¼ï¼æè
æ§è¡ä¸¥æ ¼ç<emphasis>"
+"è£
é
æï¼assembly phaseï¼</emphasis>çç¥æ¥é¿å
忬¡æåæ°æ®å¸¦æ¥çé®é¢ï¼"
#. Tag: para
-#: best_practices.xml:201
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate frees the developer from writing tedious <emphasis>Data Transfer "
"Objects</emphasis> (DTO). In a traditional EJB architecture, DTOs serve dual "
@@ -357,24 +323,22 @@
"objects. This is not a limitation of Hibernate. It is a fundamental "
"requirement of safe transactional data access."
msgstr ""
-"Hibernate让å¼åè
们æè±äºç¹çç<emphasis>Data Transfer Objects</emphasis> "
-"(DTO)ãå¨ä¼ ç»çEJBç»æä¸ï¼DTOæåéä½ç¨ï¼é¦å
ï¼ä»ä»¬è§£å³äºentity beanæ æ³åºå"
-"åçé®é¢ï¼å
¶æ¬¡ï¼ä»ä»¬éå«å°å®ä¹äºä¸ä¸ªè£
é
æï¼å¨æ¤æé´ï¼ææå¨viewå±éè¦ç¨å°ç"
-"æ°æ®ï¼é½è¢«æåãéä¸å°äºDTOä¸ï¼ç¶åæ§å¶æè¢«è£
å°è¡¨ç¤ºå±ãHibernateç»ç»äºç¬¬ä¸ä¸ª"
-"ä½ç¨ãç¶èï¼é¤éä½ å好äºå¨æ´ä¸ªæ¸²æè¿ç¨ä¸é½ç»´æ¤ä¸ä¸ªæå¼çæä¹
åä¸ä¸æ(session)"
-"çåå¤ï¼ä½ ä»ç¶éè¦ä¸ä¸ªè£
é
æï¼æ³è±¡ä¸ä¸ï¼ä½ çä¸å¡æ¹æ³ä¸ä½ çè¡¨ç¤ºå±æä¸¥æ ¼çå¥"
-"çº¦ï¼æ°æ®æ»æ¯è¢«æ¾ç½®å°æç®¡å¯¹è±¡ä¸ï¼ãè¿å¹¶éæ¯Hibernateçéå¶ï¼è¿æ¯å®ç°å®å
¨çäºå¡"
-"åæ°æ®è®¿é®çåºæ¬éæ±ã"
+"Hibernate 让å¼åè
们æè±äºç¹çç <emphasis>Data Transfer Objects</emphasis>"
+"ï¼DTOï¼ãå¨ä¼ ç»ç EJB ç»æä¸ï¼DTO æåéä½ç¨ï¼é¦å
ï¼ä»ä»¬è§£å³äº entity bean æ "
+"æ³åºååçé®é¢ï¼å
¶æ¬¡ï¼ä»ä»¬éå«å°å®ä¹äºä¸ä¸ªè£
é
æï¼å¨æ¤æé´ï¼ææå¨ view å±é"
+"è¦ç¨å°çæ°æ®ï¼é½è¢«æåãéä¸å°äº DTO ä¸ï¼ç¶åæ§å¶æè¢«è£
å°è¡¨ç¤ºå±ãHibernate ç»"
+"ç»äºç¬¬ä¸ä¸ªä½ç¨ãç¶èï¼é¤éä½ å好äºå¨æ´ä¸ªæ¸²æè¿ç¨ä¸é½ç»´æ¤ä¸ä¸ªæå¼çæä¹
åä¸ä¸"
+"æï¼sessionï¼çåå¤ï¼ä½ ä»ç¶éè¦ä¸ä¸ªè£
é
æï¼æ³è±¡ä¸ä¸ï¼ä½ çä¸å¡æ¹æ³ä¸ä½ ç表示å±"
+"æä¸¥æ ¼çå¥çº¦ï¼æ°æ®æ»æ¯è¢«æ¾ç½®å°è±ç®¡å¯¹è±¡ä¸ï¼ãè¿å¹¶éæ¯ Hibernate çéå¶ï¼è¿æ¯å®"
+"ç°å®å
¨çäºå¡åæ°æ®è®¿é®çåºæ¬éæ±ã"
#. Tag: term
-#: best_practices.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Consider abstracting your business logic from Hibernate:"
-msgstr "èèæHibernate代ç ä»ä¸å¡é»è¾ä»£ç 䏿½è±¡åºæ¥"
+msgstr "èèæ Hibernate 代ç ä»ä¸å¡é»è¾ä»£ç 䏿½è±¡åºæ¥ï¼"
#. Tag: para
-#: best_practices.xml:217
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hide Hibernate data-access code behind an interface. Combine the "
"<emphasis>DAO</emphasis> and <emphasis>Thread Local Session</emphasis> "
@@ -383,21 +347,19 @@
"however, intended for \"sufficiently large\" applications. It is not "
"appropriate for an application with five tables."
msgstr ""
-"æHibernateçæ°æ®åå代ç éèå°æ¥å£(interface)çåé¢ï¼ç»å使ç¨<emphasis>DAO</"
-"emphasis>å<emphasis>Thread Local Session</emphasis>模å¼ãéè¿Hibernateç"
-"<literal>UserType</literal>ï¼ä½ çè³å¯ä»¥ç¨ç¡¬ç¼ç çJDBCæ¥æä¹
åé£äºæ¬è¯¥è¢«"
-"Hibernateæä¹
åçç±»ã (该建议æ´éç¨äºè§æ¨¡è¶³å¤å¤§åºç¨è½¯ä»¶ä¸ï¼å¯¹äºé£äºåªæ5å¼ è¡¨"
-"çåºç¨ç¨åºå¹¶ä¸éåã)"
+"æ Hibernate çæ°æ®åå代ç éèå°æ¥å£ï¼interfaceï¼çåé¢ï¼ç»åä½¿ç¨ "
+"<emphasis>DAO</emphasis> å <emphasis>Thread Local Session</emphasis> 模å¼ã"
+"éè¿ Hibernate ç<literal>UserType</literal>ï¼ä½ çè³å¯ä»¥ç¨ç¡¬ç¼ç ç JDBC æ¥æ"
+"ä¹
åé£äºæ¬è¯¥è¢« Hibernate æä¹
åçç±»ãç¶èï¼è¯¥å»ºè®®æ´éç¨äºè§æ¨¡è¶³å¤å¤§åºç¨è½¯ä»¶"
+"ä¸ï¼å¯¹äºé£äºåªæ 5 å¼ è¡¨çåºç¨ç¨åºå¹¶ä¸éåã"
#. Tag: term
-#: best_practices.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Do not use exotic association mappings:"
-msgstr "ä¸è¦ç¨æªå¼çè¿æ¥æ å°"
+msgstr "ä¸è¦ç¨æªå¼çè¿æ¥æ å°ï¼"
#. Tag: para
-#: best_practices.xml:229
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Practical test cases for real many-to-many associations are rare. Most of "
"the time you need additional information stored in the \"link table\". In "
@@ -408,17 +370,14 @@
msgstr ""
"å¤å¯¹å¤è¿æ¥ç¨å¾å¥½çä¾åå®é
ä¸ç¸å½å°è§ã大夿°æ¶åä½ å¨âè¿æ¥è¡¨âä¸éè¦ä¿åé¢å¤ç"
"ä¿¡æ¯ãè¿ç§æ
åµä¸ï¼ç¨ä¸¤ä¸ªæåä¸ä»ç±»çä¸å¯¹å¤çè¿æ¥æ¯è¾å¥½ãå®é
ä¸ï¼æä»¬è®¤ä¸ºç»å¤§"
-"夿°çè¿æ¥æ¯ä¸å¯¹å¤åå¤å¯¹ä¸çï¼ä½ åºè¯¥è°¨æ
使ç¨å
¶å®è¿æ¥é£æ ¼ï¼ç¨ä¹åé®èªå·±ä¸å¥ï¼"
-"æ¯å¦ççå¿
é¡»è¿ä¹åã"
+"夿°çè¿æ¥æ¯ä¸å¯¹å¤åå¤å¯¹ä¸çãiå æ¤ï¼ä½ åºè¯¥è°¨æ
使ç¨å
¶å®è¿æ¥é£æ ¼ã"
#. Tag: term
-#: best_practices.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Prefer bidirectional associations:"
-msgstr "åç±ååå
³è"
+msgstr "åç±ååå
³èï¼"
#. Tag: para
-#: best_practices.xml:241
#, no-c-format
msgid ""
"Unidirectional associations are more difficult to query. In a large "
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/bibliography.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/bibliography.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/bibliography.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:21\n"
"PO-Revision-Date: 2009-07-14 19:55+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -14,55 +14,36 @@
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
-#: bibliography.xml:27
#, no-c-format
msgid "References"
msgstr ""
#. Tag: title
-#: bibliography.xml:31
#, no-c-format
msgid "Patterns of Enterprise Application Architecture"
msgstr ""
-#. Tag: author
-#: bibliography.xml:34
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Martin</firstname> <surname>Fowler</surname>"
+msgid "Martin"
msgstr ""
-#. Tag: holder
-#: bibliography.xml:41
-#, no-c-format
-msgid "Pearson Education, Inc."
-msgstr ""
-
#. Tag: title
-#: bibliography.xml:50
#, no-c-format
msgid "Java Persistence with Hibernate"
msgstr ""
#. Tag: subtitle
-#: bibliography.xml:51
#, no-c-format
msgid "Second Edition of Hibernate in Action"
msgstr ""
-#. Tag: author
-#: bibliography.xml:57
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Christian</firstname> <surname>Bauer</surname>"
+msgid "Christian"
msgstr ""
-#. Tag: author
-#: bibliography.xml:61
+#. Tag: firstname
#, no-c-format
-msgid "<firstname>Gavin</firstname> <surname>King</surname>"
+msgid "Gavin"
msgstr ""
-
-#. Tag: holder
-#: bibliography.xml:68
-#, no-c-format
-msgid "Manning Publications Co."
-msgstr ""
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/collection_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/collection_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/collection_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,65 +1,50 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-12-09 12:11+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: collection_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection mapping"
-msgstr "éåæ å°ï¼ Collection mappings ï¼"
+msgstr "éåæ å°ï¼Collection mappingsï¼"
#. Tag: title
-#: collection_mapping.xml:32
#, no-c-format
msgid "Persistent collections"
-msgstr "æä¹
åéåç±»(Persistent collections)"
+msgstr "æä¹
åéåç±»ï¼Persistent collectionsï¼"
#. Tag: para
-#: collection_mapping.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
-"Hibernateè¦æ±æä¹
åéåå¼å段å¿
须声æä¸ºæ¥å£ï¼æ¯å¦ï¼(è¯è
注ï¼å¨é
读æ¬ç« çæ¶"
-"åï¼ä»¥åæ´ä¸ªæåçé
读è¿ç¨ä¸ï¼æä»¬é½ä¼é¢ä¸´ä¸ä¸ªåè¯æ¹é¢çé®é¢ï¼é£å°±æ¯âéåâã"
-"\"Collections\"å\"Set\"å¨ä¸æé对åºé½è¢«ç¿»è¯ä¸ºâéåâï¼ä½æ¯ä»ä»¬çå«ä¹å¾ä¸ä¸"
-"æ ·ãCollectionsæ¯ä¸ä¸ªè¶
éï¼Setæ¯å
¶ä¸çä¸ç§ã大é¨åæ
åµä¸ï¼æ¬è¯ç¨¿ä¸æ³æçæªå "
-"è±ææ³¨æçâéåâï¼é½åºå½ç解为âCollectionsâã卿äºäºè
åæ¶åºç°ï¼å¯è½é ææ··æ·"
-"çå°æ¹ï¼æä»¬ç¨âéåç±»âæ¥ç¹æâCollecionsâ,âéå(Set)âæ¥æ\"Set\"ï¼ä¸è¬é½ä¼å¨å"
-"é¢çæ¬å·ä¸ç»åºè±æã叿大家å¨é
读æ¶èç³»ä¸ä¸æçè§£ï¼ä¸è¦é æè¯¯è§£ã 䏿¤å"
-"æ¶ï¼âå
ç´ âä¸è¯å¯¹åºçè±æâelementâï¼ä¹æä¸¤ä¸ªä¸åçå«ä¹ãå
¶ä¸ä¸ºéåçå
ç´ ï¼æ¯å
"
-"åä¸çä¸ä¸ªåéï¼å¦ä¸å«ä¹åæ¯XMLææ¡£ä¸çä¸ä¸ªæ ç¾æä»£è¡¨çå
ç´ ãä¹è¯·æ³¨æåºå«ã "
-"æ¬ç« ä¸,ç¹å«æ¯ååé¨åæ¯éè¦åå¤é
读æè½çè§£æ¸
æ¥çã妿éå°ä»»ä½çé®,请记ä½,è±"
-"æçæ¬çreferenceæ¯æä¸æ åçåèèµæã)"
+"ï¼è¯è
注ï¼å¨é
读æ¬ç« çæ¶åï¼ä»¥åæ´ä¸ªæåçé
读è¿ç¨ä¸ï¼æä»¬é½ä¼é¢ä¸´ä¸ä¸ªåè¯æ¹"
+"é¢çé®é¢ï¼é£å°±æ¯âéåâã\"Collections\" å \"Set\" å¨ä¸æé对åºé½è¢«ç¿»è¯ä¸ºâé"
+"åâï¼ä½æ¯ä»ä»¬çå«ä¹å¾ä¸ä¸æ ·ãCollections æ¯ä¸ä¸ªè¶
éï¼Set æ¯å
¶ä¸çä¸ç§ã大é¨å"
+"æ
åµä¸ï¼æ¬è¯ç¨¿ä¸æ³æçæªå è±ææ³¨æçâéåâï¼é½åºå½ç解为âCollectionsâã卿äº"
+"äºè
åæ¶åºç°ï¼å¯è½é ææ··æ·çå°æ¹ï¼æä»¬ç¨âéåç±»âæ¥ç¹æâCollecionsâï¼âéå"
+"ï¼Setï¼âæ¥æ \"Set\"ï¼ä¸è¬é½ä¼å¨åé¢çæ¬å·ä¸ç»åºè±æã叿大家å¨é
读æ¶èç³»ä¸"
+"䏿çè§£ï¼ä¸è¦é æè¯¯è§£ã 䏿¤åæ¶ï¼âå
ç´ âä¸è¯å¯¹åºçè±æâelementâï¼ä¹æä¸¤ä¸ªä¸"
+"åçå«ä¹ãå
¶ä¸ä¸ºéåçå
ç´ ï¼æ¯å
åä¸çä¸ä¸ªåéï¼å¦ä¸å«ä¹åæ¯ XML ææ¡£ä¸çä¸ä¸ª"
+"æ ç¾æä»£è¡¨çå
ç´ ãä¹è¯·æ³¨æåºå«ãæ¬ç« ä¸ï¼ç¹å«æ¯ååé¨åæ¯éè¦åå¤é
读æè½çè§£"
+"æ¸
æ¥çã妿éå°ä»»ä½çé®ï¼è¯·è®°ä½ï¼è±æçæ¬ç reference æ¯æä¸æ åçåèèµ"
+"æãï¼ Hibernate è¦æ±æä¹
åéåå¼å段å¿
须声æä¸ºæ¥å£ï¼ä¾å¦ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:39
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Product {\n"
-" private String serialNumber;\n"
-" private Set parts = new HashSet();\n"
-" \n"
-" public Set getParts() { return parts; }\n"
-" void setParts(Set parts) { this.parts = parts; }\n"
-" public String getSerialNumber() { return serialNumber; }\n"
-" void setSerialNumber(String sn) { serialNumber = sn; }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:41
-#, fuzzy, no-c-format
-msgid ""
"The actual interface might be <literal>java.util.Set</literal>, "
"<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, "
"<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, "
@@ -67,15 +52,14 @@
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
-"å®é
çæ¥å£å¯è½æ¯<literal>java.util.Set</literal>, <literal>java.util."
-"Collection</literal>, <literal>java.util.List</literal>, <literal>java.util."
-"Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java.util."
-"SortedMap</literal> æè
...ä»»ä½ä½ 忬¢çç±»åï¼(\"ä»»ä½ä½ 忬¢çç±»å\" ä»£è¡¨ä½ éè¦"
-"ç¼å <literal>org.hibernate.usertype.UserCollectionType</literal>çå®ç°.)"
+"å®é
çæ¥å£å¯è½æ¯ <literal>java.util.Set</literal>ã<literal>java.util."
+"Collection</literal>ã<literal>java.util.List</literal>ã<literal>java.util."
+"Map</literal>ã<literal>java.util.SortedSet</literal>ã<literal>java.util."
+"SortedMap</literal> æè
ä»»ä½ä½ 忬¢çç±»åï¼\"ä»»ä½ä½ 忬¢çç±»å\" ä»£è¡¨ä½ éè¦ç¼"
+"å <literal>org.hibernate.usertype.UserCollectionType</literal> çå®ç°ï¼ã"
#. Tag: para
-#: collection_mapping.xml:50
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet</literal>. This is the best way to initialize collection "
@@ -85,43 +69,26 @@
"an instance of Hibernate's own implementation of <literal>Set</literal>. Be "
"aware of the following errors:"
msgstr ""
-"注ææä»¬æ¯å¦ä½ç¨ä¸ä¸ª<literal>HashSet</literal>å®ä¾æ¥åå§åå®ä¾åéç.è¿æ¯ç¨äº"
-"åå§åæ°å建(å°æªæä¹
å)çç±»å®ä¾ä¸éåå¼å±æ§çæä½³æ¹æ³ãå½ä½ æä¹
åè¿ä¸ªå®ä¾æ¶"
-"ââæ¯å¦éè¿è°ç¨<literal>persist()</literal>ââHibernate ä¼èªå¨æ"
-"<literal>HashSet</literal>æ¿æ¢ä¸ºHibernateèªå·±ç<literal>Set</literal>å®ç°ãè§"
-"å¯ä¸é¢çé误ï¼"
+"注ææä»¬æ¯å¦ä½ç¨ä¸ä¸ª <literal>HashSet</literal> å®ä¾æ¥åå§åå®ä¾åéçãè¿æ¯"
+"ç¨äºåå§åæ°å建ï¼å°æªæä¹
åï¼çç±»å®ä¾ä¸éåå¼å±æ§çæä½³æ¹æ³ãå½ä½ æä¹
åè¿ä¸ª"
+"å®ä¾æ¶ â æ¯å¦éè¿è°ç¨ <literal>persist()</literal> â Hibernate ä¼èªå¨æ "
+"<literal>HashSet</literal> æ¿æ¢ä¸º Hibernate èªå·±ç <literal>Set</literal> å®"
+"ç°ã注æä¸é¢çé误ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:60
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"Cat kitten = new DomesticCat();\n"
-"....\n"
-"Set kittens = new HashSet();\n"
-"kittens.add(kitten);\n"
-"cat.setKittens(kittens);\n"
-"session.persist(cat);\n"
-"kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
-"(HashSet) cat.getKittens(); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:62
-#, fuzzy, no-c-format
-msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</"
"literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, "
"depending on the interface type."
msgstr ""
-"æ ¹æ®ä¸åçæ¥å£ç±»åï¼è¢«Hibernate注å°çæä¹
åéåç±»ç表ç°ç±»ä¼¼<literal>HashMap</"
-"literal>, <literal>HashSet</literal>, <literal>TreeMap</literal>, "
-"<literal>TreeSet</literal> or <literal>ArrayList</literal>ã"
+"æ ¹æ®ä¸åçæ¥å£ç±»åï¼è¢« Hibernate 注å°çæä¹
åéåç±»ç表ç°ç±»ä¼¼ "
+"<literal>HashMap</literal>ã<literal>HashSet</literal>ã<literal>TreeMap</"
+"literal>ã<literal>TreeSet</literal> æ <literal>ArrayList</literal>ã"
#. Tag: para
-#: collection_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
@@ -135,65 +102,46 @@
"éåç±»å®ä¾å
·æå¼ç±»åçé常è¡ä¸ºãå½è¢«æä¹
å对象å¼ç¨åï¼ä»ä»¬ä¼èªå¨è¢«æä¹
åï¼å½"
"ä¸å被å¼ç¨åï¼èªå¨è¢«å é¤ãåè¥å®ä¾è¢«ä»ä¸ä¸ªæä¹
åå¯¹è±¡ä¼ éå°å¦ä¸ä¸ªï¼å®çå
ç´ å¯"
"è½ä»ä¸ä¸ªè¡¨è½¬ç§»å°å¦ä¸ä¸ªè¡¨ã两个å®ä½ä¸è½å
±äº«åä¸ä¸ªéåç±»å®ä¾çå¼ç¨ãå 为åºå±å
³"
-"ç³»æ°æ®åºæ¨¡åçåå ï¼éåå¼å±æ§æ æ³æ¯æç©ºå¼è¯ä¹ï¼Hibernate对空çéåå¼ç¨å空é"
-"åä¸å åºå«ã"
+"ç³»æ°æ®åºæ¨¡åçåå ï¼éåå¼å±æ§æ æ³æ¯æç©ºå¼è¯ä¹ï¼Hibernate 对空çéåå¼ç¨å空"
+"éåä¸å åºå«ã "
#. Tag: para
-#: collection_mapping.xml:80
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
-"ä½ ä¸éè¦è¿å¤çä¸ºæ¤æ
å¿ãå°±å¦åä½ å¹³æ¶ä½¿ç¨æ®éçJavaéåç±»ä¸æ ·æ¥ä½¿ç¨æä¹
åéå"
-"ç±»ãåªæ¯è¦ç¡®è®¤ä½ çè§£äºååå
³èçè¯ä¹ï¼åæè®¨è®ºï¼ã"
+"ä½ ä¸éè¦è¿å¤çä¸ºæ¤æ
å¿ãå°±å¦åä½ å¹³æ¶ä½¿ç¨æ®éç Java éåç±»ä¸æ ·æ¥ä½¿ç¨æä¹
åé"
+"åç±»ãåªæ¯è¦ç¡®è®¤ä½ çè§£äºååå
³èçè¯ä¹ï¼åæå°è¿è¡è®¨è®ºï¼ã"
#. Tag: title
-#: collection_mapping.xml:89
#, no-c-format
msgid "Collection mappings"
msgstr "éåæ å°ï¼ Collection mappings ï¼"
#. Tag: para
-#: collection_mapping.xml:92
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
-"ä»»ä½å¼éåæè
å¤å¯¹å¤å
³èéè¦ä¸ç¨çå
·æä¸ä¸ªæå¤ä¸ªå¤é®å段ç"
-"<emphasis>collection table</emphasis>ãä¸ä¸ªæå¤ä¸ª<emphasis>collection "
-"element column</emphasis>ï¼ä»¥åè¿å¯è½æä¸ä¸ªæå¤ä¸ªç´¢å¼å段ã"
+"ä»éåç±»å¯ä»¥äº§çå¾å¤§ä¸é¨åæ å°ï¼è¦çäºå¾å¤å¸¸è§çå
³ç³»æ¨¡åãæä»¬å»ºè®®ä½ è¯éª "
+"schema çæå·¥å
·ï¼æ¥ä½ä¼ä¸ä¸ä¸åçæ å°å£°ææ¯å¦ä½è¢«ç¿»è¯ä¸ºæ°æ®åºè¡¨çã "
#. Tag: para
-#: collection_mapping.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set></literal> element is "
"used for mapping properties of type <literal>Set</literal>."
msgstr ""
-"ç¨äºæ å°éåç±»çHibernateæ å°å
ç´ åå³äºæ¥å£çç±»åãæ¯å¦ï¼ <literal><"
-"set></literal> å
ç´ ç¨æ¥æ å°<literal>Set</literal>ç±»åç屿§ã"
+"ç¨äºæ å°éåç±»ç Hibernate æ å°å
ç´ åå³äºæ¥å£çç±»åãæ¯å¦ï¼<literal><"
+"set></literal> å
ç´ ç¨æ¥æ å° <literal>Set</literal> ç±»åç屿§ã "
-#. Tag: programlisting
-#: collection_mapping.xml:105
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Product\">\n"
-" <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
-" <set name=\"parts\">\n"
-" <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:107
#, no-c-format
msgid ""
"Apart from <literal><set></literal>, there is also <literal><"
@@ -202,69 +150,36 @@
"array></literal> mapping elements. The <literal><map></literal> "
"element is representative:"
msgstr ""
-"é¤äº<literal><set></literal>,è¿æ<literal><list></literal>, "
-"<literal><map></literal>, <literal><bag></literal>, <literal><"
+"é¤äº <literal><set></literal>ï¼è¿æ<literal><list></literal>ï¼"
+"<literal><map></literal>ï¼<literal><bag></literal>ï¼<literal><"
"array></literal> å <literal><primitive-array></literal> æ å°å
ç´ ã"
-"<literal><map></literal>å
·æä»£è¡¨æ§ï¼"
+"<literal><map></literal> å
·æä»£è¡¨æ§ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:132
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<map\n"
-" name=\"propertyName\"\n"
-" table=\"table_name\"\n"
-" schema=\"schema_name\"\n"
-" lazy=\"true|extra|false\"\n"
-" inverse=\"true|false\"\n"
-" cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n"
-" sort=\"unsorted|natural|comparatorClass\"\n"
-" order-by=\"column_name asc|desc\"\n"
-" where=\"arbitrary sql where condition\"\n"
-" fetch=\"join|select|subselect\"\n"
-" batch-size=\"N\"\n"
-" access=\"field|property|ClassName\"\n"
-" optimistic-lock=\"true|false\"\n"
-" mutable=\"true|false\"\n"
-" node=\"element-name|.\"\n"
-" embed-xml=\"true|false\"\n"
-">\n"
-"\n"
-" <key .... />\n"
-" <map-key .... />\n"
-" <element .... />\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:135
-#, fuzzy, no-c-format
msgid "<literal>name</literal>: the collection property name"
-msgstr "<literal>name</literal> éå屿§çåç§°"
+msgstr "<literal>name</literal>ï¼éå屿§çåç§°"
#. Tag: para
-#: collection_mapping.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>table</literal> (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
-"<literal>table</literal> ï¼å¯éââé»è®¤ä¸ºå±æ§çåç§°ï¼è¿ä¸ªéå表çåç§°(ä¸è½å¨ä¸"
-"对å¤çå
³èå
³ç³»ä¸ä½¿ç¨)"
+"<literal>table</literal>ï¼å¯éââé»è®¤ä¸ºå±æ§çåç§°ï¼è¿ä¸ªéå表çåç§°ï¼ä¸è½å¨ä¸"
+"对å¤çå
³èå
³ç³»ä¸ä½¿ç¨ï¼ã"
#. Tag: para
-#: collection_mapping.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>schema</literal> (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
-"<literal>schema</literal> (å¯é) 表çschemaçåç§°, ä»å°è¦ç卿 ¹å
ç´ ä¸å®ä¹ç"
-"schema"
+"<literal>schema</literal>ï¼å¯éï¼ï¼è¡¨ç schema çåç§°ï¼ä»å°è¦ç卿 ¹å
ç´ ä¸å®ä¹"
+"ç schema"
#. Tag: para
-#: collection_mapping.xml:152
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>lazy</literal> (optional - defaults to <literal>true</literal>): "
"disables lazy fetching and specifies that the association is always eagerly "
@@ -272,133 +187,121 @@
"operations do not initialize the collection. This is suitable for large "
"collections."
msgstr ""
-"<literal>lazy</literal> (å¯é--é»è®¤ä¸ºtrue) å¯ä»¥ç¨æ¥å
³éå»¶è¿å è½½(false)ï¼æå®"
-"ä¸ç´ä½¿ç¨é¢å
æå,æè
æå¼\"extra-lazy\" æåï¼æ¤æ¶å¤§å¤æ°æä½ä¸ä¼åå§åéåç±»"
-"(éç¨äºé常大çéå)"
+"<literal>lazy</literal>ï¼å¯é--é»è®¤ä¸º trueï¼å¯ä»¥ç¨æ¥å
³éå»¶è¿å è½½ï¼falseï¼ï¼æ"
+"å®ä¸ç´ä½¿ç¨é¢å
æåï¼æè
æå¼ \"extra-lazy\" æåï¼æ¤æ¶å¤§å¤æ°æä½ä¸ä¼åå§åé"
+"åç±»ï¼éç¨äºé常大çéåï¼ã"
#. Tag: para
-#: collection_mapping.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>inverse</literal> (optional - defaults to <literal>false</"
"literal>): marks this collection as the \"inverse\" end of a bidirectional "
"association."
msgstr ""
-"<literal>inverse</literal> (å¯éââé»è®¤ä¸º<literal>false</literal>) æ è®°è¿ä¸ªé"
-"åä½ä¸ºååå
³èå
³ç³»ä¸çæ¹åä¸ç«¯ã"
+"<literal>inverse</literal>ï¼å¯é â é»è®¤ä¸º <literal>false</literal>ï¼æ è®°è¿ä¸ª"
+"éåä½ä¸ºååå
³èå
³ç³»ä¸çæ¹åä¸ç«¯ã "
#. Tag: para
-#: collection_mapping.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>cascade</literal> (optional - defaults to <literal>none</literal>): "
"enables operations to cascade to child entities."
msgstr ""
-"<literal>cascade</literal> (å¯éââé»è®¤ä¸º<literal>none</literal>) 让æä½çº§èå°"
-"åå®ä½"
+"<literal>cascade</literal>ï¼å¯é â é»è®¤ä¸º <literal>none</literal>ï¼è®©æä½çº§è"
+"å°åå®ä½ã"
#. Tag: para
-#: collection_mapping.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>sort</literal> (optional): specifies a sorted collection with "
"<literal>natural</literal> sort order or a given comparator class."
msgstr ""
-"<literal>sort</literal>(å¯é)æå®éåçæåºé¡ºåº, å
¶å¯ä»¥ä¸ºèªç¶ç"
-"(<literal>natural</literal>)æè
ç»å®ä¸ä¸ªç¨æ¥æ¯è¾çç±»ã"
+"<literal>sort</literal>ï¼å¯éï¼æå®éåçæåºé¡ºåºï¼å
¶å¯ä»¥ä¸ºèªç¶ç"
+"ï¼<literal>natural</literal>ï¼æè
ç»å®ä¸ä¸ªç¨æ¥æ¯è¾çç±»ã "
#. Tag: para
-#: collection_mapping.xml:179
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>order-by</literal> (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>Map</"
"literal>, <literal>Set</literal> or bag, together with an optional "
"<literal>asc</literal> or <literal>desc</literal>."
msgstr ""
-"<literal>order-by</literal> (å¯é, ä»
ç¨äºjdk1.4) æå®è¡¨çåæ®µ(ä¸ä¸ªæå 个)åå "
-"ä¸ascæè
desc(å¯é), å®ä¹Map,SetåBagçè¿ä»£é¡ºåº"
+"<literal>order-by</literal>ï¼å¯éï¼ä»
ç¨äº jdk1.4ï¼ï¼æå®è¡¨çåæ®µï¼ä¸ä¸ªæå "
+"个ï¼åå ä¸ asc æè
descï¼å¯éï¼ï¼å®ä¹ MapãSet å Bag çè¿ä»£é¡ºåºã"
#. Tag: para
-#: collection_mapping.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>where</literal> (optional): specifies an arbitrary SQL "
"<literal>WHERE</literal> condition that is used when retrieving or removing "
"the collection. This is useful if the collection needs to contain only a "
"subset of the available data."
msgstr ""
-"<literal>where</literal> (å¯é) æå®ä»»æçSQL whereæ¡ä»¶, 该æ¡ä»¶å°å¨éæ°è½½å
¥æ"
-"è
å é¤è¿ä¸ªéåæ¶ä½¿ç¨(å½éåä¸çæ°æ®ä»
ä»
æ¯ææå¯ç¨æ°æ®çä¸ä¸ªåéæ¶è¿ä¸ªæ¡ä»¶é常"
-"æç¨)"
+"<literal>where</literal>ï¼å¯éï¼ï¼æå®ä»»æç SQL where æ¡ä»¶ï¼è¯¥æ¡ä»¶å°å¨éæ°è½½"
+"å
¥æè
å é¤è¿ä¸ªéåæ¶ä½¿ç¨ï¼å½éåä¸çæ°æ®ä»
ä»
æ¯ææå¯ç¨æ°æ®çä¸ä¸ªåéæ¶è¿ä¸ªæ¡"
+"ä»¶é常æç¨ï¼ã"
#. Tag: para
-#: collection_mapping.xml:193
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>fetch</literal> (optional, defaults to <literal>select</literal>): "
"chooses between outer-join fetching, fetching by sequential select, and "
"fetching by sequential subselect."
msgstr ""
-"<literal>fetch</literal> (å¯é, é»è®¤ä¸º<literal>select</literal>) ç¨äºå¨å¤è¿æ¥"
-"æåãéè¿åç»selectæååéè¿åç»subselectæåä¹é´éæ©ã"
+"<literal>fetch</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>select</literal>ï¼ï¼ç¨äºå¨å¤"
+"è¿æ¥æåãéè¿åç» select æååéè¿åç» subselect æåä¹é´éæ©ã"
#. Tag: para
-#: collection_mapping.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>batch-size</literal> (optional, defaults to <literal>1</literal>): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
-"<literal>batch-size</literal> (å¯é, é»è®¤ä¸º<literal>1</literal>) æå®éè¿å»¶è¿"
-"å è½½åå¾éåå®ä¾çæ¹å¤çå大å°ï¼\"batch size\"ï¼ã"
+"<literal>batch-size</literal>ï¼å¯éï¼é»è®¤ä¸º <literal>1</literal>ï¼ï¼æå®éè¿"
+"å»¶è¿å è½½åå¾éåå®ä¾çæ¹å¤çå大å°ï¼\"batch size\"ï¼ã"
#. Tag: para
-#: collection_mapping.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>access</literal> (optional - defaults to <literal>property</"
"literal>): the strategy Hibernate uses for accessing the collection property "
"value."
msgstr ""
-"<literal>access</literal>(å¯é-é»è®¤ä¸ºå±æ§property):Hibernateåå¾éå屿§å¼æ¶"
-"使ç¨ççç¥"
+"<literal>access</literal>ï¼å¯é-é»è®¤ä¸ºå±æ§ propertyï¼ï¼Hibernate åå¾éå屿§"
+"弿¶ä½¿ç¨ççç¥ã"
#. Tag: para
-#: collection_mapping.xml:212
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>optimistic-lock</literal> (optional - defaults to <literal>true</"
"literal>): specifies that changes to the state of the collection results in "
"increments of the owning entity's version. For one-to-many associations you "
"may want to disable this setting."
msgstr ""
-"<literal>ä¹è§é</literal> (å¯é - é»è®¤ä¸º <literal>true</literal>): 对éåçç¶"
-"æçæ¹å伿¯å¦å¯¼è´å
¶æå±çå®ä½ççæ¬å¢é¿ã (对ä¸å¯¹å¤å
³èæ¥è¯´ï¼å
³éè¿ä¸ªå±æ§å¸¸"
-"å¸¸æ¯æçç)"
+"<literal>ä¹è§é</literal>ï¼å¯é - é»è®¤ä¸º <literal>true</literal>ï¼ï¼å¯¹éåç"
+"ç¶æçæ¹å伿¯å¦å¯¼è´å
¶æå±çå®ä½ççæ¬å¢é¿ï¼å¯¹ä¸å¯¹å¤å
³èæ¥è¯´ï¼å
³éè¿ä¸ªå±æ§å¸¸"
+"å¸¸æ¯æççï¼ã"
#. Tag: para
-#: collection_mapping.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>mutable</literal> (optional - defaults to <literal>true</literal>): "
"a value of <literal>false</literal> specifies that the elements of the "
"collection never change. This allows for minor performance optimization in "
"some cases."
msgstr ""
-"<literal>mutable(å¯åï¼</literal> (å¯é - é»è®¤ä¸º<literal>true</literal>): è¥"
-"å¼ä¸º<literal>false</literal>,表æéåä¸çå
ç´ ä¸ä¼æ¹åï¼å¨æäºæ
åµä¸å¯ä»¥è¿è¡ä¸"
-"äºå°çæ§è½ä¼åï¼ã"
+"<literal>mutableï¼å¯åï¼</literal>ï¼å¯é â é»è®¤ä¸º <literal>true</literal>ï¼ï¼"
+"è¥å¼ä¸º <literal>false</literal>ï¼è¡¨æéåä¸çå
ç´ ä¸ä¼æ¹åï¼å¨æäºæ
åµä¸å¯ä»¥è¿"
+"è¡ä¸äºå°çæ§è½ä¼åï¼ã "
#. Tag: title
-#: collection_mapping.xml:230
#, no-c-format
msgid "Collection foreign keys"
-msgstr "éåå¤é®(Collection foreign keys)"
+msgstr "éåå¤é®ï¼Collection foreign keysï¼"
#. Tag: para
-#: collection_mapping.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collection instances are distinguished in the database by the foreign key of "
"the entity that owns the collection. This foreign key is referred to as the "
@@ -408,11 +311,10 @@
msgstr ""
"éåå®ä¾å¨æ°æ®åºä¸ä¾é ææéåçå®ä½çå¤é®å 以辨å«ãæ¤å¤é®ä½ä¸º<emphasis>éå"
"å
³é®å段ï¼collection key columnï¼</emphasis>ï¼æå¤ä¸ªå段ï¼å 以å¼ç¨ãéåå
³é®"
-"åæ®µéè¿<literal><key></literal> å
ç´ æ å°ã"
+"åæ®µéè¿ <literal><key></literal> å
ç´ æ å°ã "
#. Tag: para
-#: collection_mapping.xml:240
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There can be a nullability constraint on the foreign key column. For most "
"collections, this is implied. For unidirectional one-to-many associations, "
@@ -421,44 +323,28 @@
msgstr ""
"å¨å¤é®å段ä¸å¯è½å
·æé空约æã对äºå¤§å¤æ°éåæ¥è¯´ï¼è¿æ¯éå«çã对ååä¸å¯¹å¤å
³"
"èæ¥è¯´ï¼å¤é®å段é»è®¤æ¯å¯ä»¥ä¸ºç©ºçï¼å æ¤ä½ å¯è½éè¦ææ <literal>not-null=\"true"
-"\"</literal>ã"
+"\"</literal>ã "
-#. Tag: programlisting
-#: collection_mapping.xml:247
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:249
-#, fuzzy, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE</literal>."
-msgstr "å¤é®çº¦æå¯ä»¥ä½¿ç¨<literal>ON DELETE CASCADE</literal>ã"
+msgstr "å¤é®çº¦æå¯ä»¥ä½¿ç¨ <literal>ON DELETE CASCADE</literal>ã "
-#. Tag: programlisting
-#: collection_mapping.xml:253
-#, no-c-format
-msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:255
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key></"
"literal> element."
-msgstr "对<literal><key></literal> å
ç´ ç宿´å®ä¹ï¼è¯·åé
åé¢çç« èã"
+msgstr "对 <literal><key></literal> å
ç´ ç宿´å®ä¹ï¼è¯·åé
åé¢çç« èã"
#. Tag: title
-#: collection_mapping.xml:263
#, no-c-format
msgid "Collection elements"
msgstr "éåå
ç´ ï¼Collection elementsï¼"
#. Tag: para
-#: collection_mapping.xml:265
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and references to other entities. This is an "
@@ -468,14 +354,13 @@
"latter case, only the \"link\" between the two objects is considered to be a "
"state held by the collection."
msgstr ""
-"éåå ä¹å¯ä»¥å
å«ä»»ä½å
¶ä»çHibernateç±»åï¼å
æ¬ææçåºæ¬ç±»åãèªå®ä¹ç±»åãç»"
+"éåå ä¹å¯ä»¥å
å«ä»»ä½å
¶ä»ç Hibernate ç±»åï¼å
æ¬ææçåºæ¬ç±»åãèªå®ä¹ç±»åãç»"
"ä»¶ï¼å½ç¶è¿æå¯¹å
¶ä»å®ä½çå¼ç¨ãåå¨ä¸ä¸ªéè¦çåºå«ï¼ä½äºéåä¸ç对象å¯è½æ¯æ ¹"
"æ®âå¼âè¯ä¹æ¥æä½ï¼å
¶å£°æå¨æå®å
¨ä¾èµäºéåææè
ï¼ï¼æè
å®å¯è½æ¯æåå¦ä¸ä¸ªå®"
"ä½çå¼ç¨ï¼å
·æå
¶èªå·±ççå½å¨æãå¨åè
çæ
åµä¸ï¼è¢«ä½ä¸ºéåææçç¶æèèçï¼"
-"åªæä¸¤ä¸ªå¯¹è±¡ä¹é´çâè¿æ¥âã"
+"åªæä¸¤ä¸ªå¯¹è±¡ä¹é´çâè¿æ¥âã "
#. Tag: para
-#: collection_mapping.xml:274
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type</"
@@ -486,20 +371,18 @@
"value semantics, the next two are used to map entity associations."
msgstr ""
"被å
容çç±»å被称为<emphasis>éåå
ç´ ç±»åï¼collection element typeï¼</"
-"emphasis>ãéåå
ç´ éè¿<literal><element></literal>æ<literal><"
-"composite-element></literal>æ å°ï¼æå¨å
¶æ¯å®ä½å¼ç¨çæ¶åï¼éè¿"
-"<literal><one-to-many></literal> æ<literal><many-to-many></"
-"literal>æ å°ãå两ç§ç¨äºä½¿ç¨å¼è¯ä¹æ å°å
ç´ ï¼å两ç§ç¨äºæ å°å®ä½å
³èã"
+"emphasis>ãéåå
ç´ éè¿ <literal><element></literal> æ <literal><"
+"composite-element></literal> æ å°ï¼æå¨å
¶æ¯å®ä½å¼ç¨çæ¶åï¼éè¿ "
+"<literal><one-to-many></literal> æ <literal><many-to-many></"
+"literal> æ å°ãå两ç§ç¨äºä½¿ç¨å¼è¯ä¹æ å°å
ç´ ï¼å两ç§ç¨äºæ å°å®ä½å
³èã"
#. Tag: title
-#: collection_mapping.xml:286
#, no-c-format
msgid "Indexed collections"
-msgstr "ç´¢å¼éåç±»(Indexed collections)"
+msgstr "ç´¢å¼éåç±»ï¼Indexed collectionsï¼"
#. Tag: para
-#: collection_mapping.xml:288
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column</emphasis> in the collection table. An index column "
@@ -513,387 +396,318 @@
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
-"ææçéåæ å°ï¼é¤äºsetåbagè¯ä¹ç以å¤ï¼é½éè¦æå®ä¸ä¸ªéå表ç<emphasis>ç´¢å¼"
-"åæ®µ(index column)</emphasis>ââç¨äºå¯¹åºå°æ°ç»ç´¢å¼ï¼æè
<literal>List</"
-"literal>çç´¢å¼ï¼æè
<literal>Map</literal>çå
³é®åãéè¿<literal><map-"
-"key></literal>,<literal>Map</literal> çç´¢å¼å¯ä»¥æ¯ä»»ä½åºç¡ç±»åï¼è¥éè¿"
-"<literal><map-key-many-to-many></literal>ï¼å®ä¹å¯ä»¥æ¯ä¸ä¸ªå®ä½å¼ç¨ï¼è¥é"
-"è¿<literal><composite-map-key></literal>ï¼å®è¿å¯ä»¥æ¯ä¸ä¸ªç»åç±»åãæ°ç»"
-"æå表çç´¢å¼å¿
é¡»æ¯<literal>integer</literal>ç±»åï¼å¹¶ä¸ä½¿ç¨ <literal><list-"
-"index></literal>å
ç´ å®ä¹æ å°ã被æ å°çåæ®µå
å«æé¡ºåºæåçæ´æ°ï¼é»è®¤ä»0å¼"
-"å§ï¼ã"
+"ææçéåæ å°ï¼é¤äº set å bag è¯ä¹ç以å¤ï¼é½éè¦æå®ä¸ä¸ªéå表ç<emphasis>"
+"ç´¢å¼å段ï¼index columnï¼</emphasis> â ç¨äºå¯¹åºå°æ°ç»ç´¢å¼ï¼æè
"
+"<literal>List</literal> çç´¢å¼ï¼æè
<literal>Map</literal> çå
³é®åãéè¿ "
+"<literal><map-key></literal>ï¼<literal>Map</literal> çç´¢å¼å¯ä»¥æ¯ä»»ä½åº"
+"ç¡ç±»åï¼è¥éè¿ <literal><map-key-many-to-many></literal>ï¼å®ä¹å¯ä»¥æ¯ä¸"
+"个å®ä½å¼ç¨ï¼è¥éè¿ <literal><composite-map-key></literal>ï¼å®è¿å¯ä»¥æ¯ä¸"
+"个ç»åç±»åãæ°ç»æå表çç´¢å¼å¿
é¡»æ¯ <literal>integer</literal> ç±»åï¼å¹¶ä¸ä½¿ç¨ "
+"<literal><list-index></literal> å
ç´ å®ä¹æ å°ã被æ å°çåæ®µå
å«æé¡ºåºæ"
+"åçæ´æ°ï¼é»è®¤ä» 0 å¼å§ï¼ã "
-#. Tag: sect2
-#: collection_mapping.xml:299
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id="
-"\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-"
-"index \n"
-" column=\"column_name\"\n"
-" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
-"arearefs=\"index1\"> <para> <literal>column_name</literal> (required): the "
-"name of the column holding the collection index values. </para> </callout> "
-"<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional - "
-"defaults to <literal>0</literal>): the value of the index column that "
-"corresponds to the first element of the list or array. </para> </callout> </"
-"calloutlist> </programlistingco> <programlistingco> <areaspec> <area id="
-"\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area "
-"id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-"
-"key \n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"type_name\"\n"
-" node=\"@attribute-name\"\n"
-" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs="
-"\"mapkey1\"> <para> <literal>column</literal> (optional): the name of the "
-"column holding the collection index values. </para> </callout> <callout "
-"arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): a SQL "
-"formula used to evaluate the key of the map. </para> </callout> <callout "
-"arearefs=\"mapkey3\"> <para> <literal>type</literal> (required): the type of "
-"the map keys. </para> </callout> </calloutlist> </programlistingco> "
-"<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/"
-"> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3"
-"\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-"
-"many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the foreign key "
-"column for the collection index values. </para> </callout> <callout arearefs="
-"\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): a SQ "
-"formula used to evaluate the foreign key of the map key. </para> </callout> "
-"<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> "
-"(required): the entity class used as the map key. </para> </callout> </"
-"calloutlist> </programlistingco>"
+"<literal>column_name</literal> (required): the name of the column holding "
+"the collection index values."
+msgstr "<literal>column_name</literal>ï¼å¿
éï¼ï¼ææéåç´¢å¼å¼çåæ®µçåç§°ã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>base</literal> (optional - defaults to <literal>0</literal>): the "
+"value of the index column that corresponds to the first element of the list "
+"or array."
msgstr ""
+"<literal>base</literal>ï¼å¯é â é»è®¤ä¸º <literal>0</literal>ï¼å¯¹åºå表æéåç"
+"第ä¸ä¸ªå
ç´ çç´¢å¼å段çå¼ã"
#. Tag: para
-#: collection_mapping.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
+"<literal>column</literal> (optional): the name of the column holding the "
+"collection index values."
+msgstr "<literal>column</literal>ï¼å¯éï¼ï¼ææéåç´¢å¼å¼çåæ®µçåç§°ã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQL formula used to evaluate the "
+"key of the map."
+msgstr "<literal>formula</literal>ï¼å¯éï¼ï¼ç¨äºå¯¹è¡¨é®æ±å¼ç SQL å
¬å¼ã"
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the map keys."
+msgstr "<literal>type</literal>ï¼å¿
éï¼ï¼æ å°é®çç±»åã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the foreign key column for "
+"the collection index values."
+msgstr "<literal>column</literal>ï¼å¯éï¼ï¼ç¨äºéåç´¢å¼å¼çå¤é®å段çåç§°ã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): a SQ formula used to evaluate the "
+"foreign key of the map key."
+msgstr ""
+"<literal>formula</literal>ï¼å¯éï¼ï¼ç¨äºå¯¹æ å°é®çå¤é®æ±å¼ç SQL å
¬å¼ã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>class</literal> (required): the entity class used as the map key."
+msgstr "<literal>class</literal>ï¼å¿
éï¼ï¼ç¨ä½æ å°é®çå®ä½ç±»çåç§°ã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List</literal> as the property type, you can map the property as a "
"Hibernate <emphasis><bag></emphasis>. A bag does not retain its order "
"when it is retrieved from the database, but it can be optionally sorted or "
"ordered."
msgstr ""
-"å¼éåäºå¤å¯¹å¤å
³è(Collections of values and many-to-many associations)"
+"åè¥ä½ ç表没æä¸ä¸ªç´¢å¼å段ï¼å½ä½ ä»ç¶å¸æä½¿ç¨ <literal>List</literal> ä½ä¸ºå±æ§"
+"ç±»åï¼ä½ åºè¯¥ææ¤å±æ§æ å°ä¸º Hibernate <emphasis><bag></emphasis>ã仿°æ®"
+"åºä¸è·åçæ¶åï¼bag ä¸ç»´æ¤å
¶é¡ºåºï¼ä½ä¹å¯éæ©æ§çè¿è¡æåºã "
#. Tag: title
-#: collection_mapping.xml:390
#, no-c-format
msgid "Collections of values and many-to-many associations"
-msgstr "对äºä¸ä¸ªå¼éå, æä»¬ä½¿ç¨<literal><element></literal>æ ç¾ã"
+msgstr ""
+"å¼éåäºå¤å¯¹å¤å
³èï¼Collections of values and many-to-many associationsï¼"
#. Tag: para
-#: collection_mapping.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table</emphasis> with a foreign key column or columns, "
"<emphasis>collection element column</emphasis> or columns, and possibly an "
"index column or columns."
-msgstr "<literal>column</literal>(å¯é):ä¿åéåå
ç´ å¼çåæ®µåã"
+msgstr ""
+"ä»»ä½å¼éåæè
å¤å¯¹å¤å
³èéè¦ä¸ç¨çå
·æä¸ä¸ªæå¤ä¸ªå¤é®å段ç "
+"<emphasis>collection table</emphasis>ãä¸ä¸ªæå¤ä¸ª <emphasis>collection "
+"element column</emphasis>ï¼ä»¥åè¿å¯è½æä¸ä¸ªæå¤ä¸ªç´¢å¼å段ã "
#. Tag: para
-#: collection_mapping.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a collection of values use the <literal><element></literal> tag. "
"For example:"
-msgstr "<literal>formula</literal> (å¯é): ç¨äºè®¡ç®å
ç´ çSQLå
¬å¼"
+msgstr ""
+"对äºä¸ä¸ªå¼éåï¼æä»¬ä½¿ç¨ <literal><element></literal> æ ç¾ãä¾å¦ï¼"
-#. Tag: sect2
-#: collection_mapping.xml:401
+#. Tag: para
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area "
-"id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> "
-"</areaspec> <programlisting><![CDATA[<element\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" type=\"typename\"\n"
-" length=\"L\"\n"
-" precision=\"P\"\n"
-" scale=\"S\"\n"
-" not-null=\"true|false\"\n"
-" unique=\"true|false\"\n"
-" node=\"element-name\"\n"
-"/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> "
"<literal>column</literal> (optional): the name of the column holding the "
-"collection element values. </para> </callout> <callout arearefs=\"element2b"
-"\"> <para> <literal>formula</literal> (optional): an SQL formula used to "
-"evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> "
-"<para> <literal>type</literal> (required): the type of the collection "
-"element. </para> </callout> </calloutlist> </programlistingco> <para> A "
-"<emphasis>many-to-many association</emphasis> is specified using the "
-"<literal><many-to-many></literal> element. </para> <programlistingco> "
-"<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2"
-"\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id="
-"\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> "
-"<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords="
-"\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> "
-"<programlisting><![CDATA[<many-to-many\n"
-" column=\"column_name\"\n"
-" formula=\"any SQL expression\"\n"
-" class=\"ClassName\"\n"
-" fetch=\"select|join\"\n"
-" unique=\"true|false\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" property-ref=\"propertyNameFromAssociatedClass\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1\"> "
-"<para> <literal>column</literal> (optional): the name of the element foreign "
-"key column. </para> </callout> <callout arearefs=\"manytomany2\"> <para> "
+"collection element values."
+msgstr "<literal>column</literal>ï¼å¯éï¼ï¼ææéåå
ç´ å¼çåæ®µçåç§°ã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
-"element foreign key value. </para> </callout> <callout arearefs=\"manytomany3"
-"\"> <para> <literal>class</literal> (required): the name of the associated "
-"class. </para> </callout> <callout arearefs=\"manytomany4\"> <para> "
+"element."
+msgstr "<literal>formula</literal>ï¼å¯éï¼ï¼ç¨äºå¯¹å
ç´ æ±å¼ç SQL å
¬å¼ã"
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>type</literal> (required): the type of the collection element."
+msgstr "<literal>type</literal>ï¼å¿
éï¼ï¼éåå
ç´ çç±»åã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A <emphasis>many-to-many association</emphasis> is specified using the "
+"<literal><many-to-many></literal> element."
+msgstr ""
+"ç¨ <literal><many-to-many></literal> å
ç´ æå® <emphasis>many-to-many "
+"association</emphasis>ã"
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>column</literal> (optional): the name of the element foreign key "
+"column."
+msgstr "<literal>column</literal>ï¼å¿
éï¼ï¼å
ç´ å¤é®å段çåç§°ã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"<literal>formula</literal> (optional): an SQL formula used to evaluate the "
+"element foreign key value."
+msgstr "<literal>formula</literal>ï¼å¯éï¼ï¼ç¨äºå¯¹å
ç´ å¤é®å¼æ±å¼ç SQL å
¬å¼ã"
+
+#. Tag: para
+#, no-c-format
+msgid "<literal>class</literal> (required): the name of the associated class."
+msgstr "<literal>class</literal>ï¼å¿
éï¼ï¼è¢«å
³èç±»çåç§°ã "
+
+#. Tag: para
+#, no-c-format
+msgid ""
"<literal>fetch</literal> (optional - defaults to <literal>join</literal>): "
"enables outer-join or sequential select fetching for this association. This "
"is a special case; for full eager fetching in a single <literal>SELECT</"
"literal> of an entity and its many-to-many relationships to other entities, "
"you would enable <literal>join</literal> fetching,not only of the collection "
"itself, but also with this attribute on the <literal><many-to-many></"
-"literal> nested element. </para> </callout> <callout arearefs=\"manytomany5"
-"\"> <para> <literal>unique</literal> (optional): enables the DDL generation "
-"of a unique constraint for the foreign-key column. This makes the "
-"association multiplicity effectively one-to-many. </para> </callout> "
-"<callout arearefs=\"manytomany6\"> <para> <literal>not-found</literal> "
-"(optional - defaults to <literal>exception</literal>): specifies how foreign "
-"keys that reference missing rows will be handled: <literal>ignore</literal> "
-"will treat a missing row as a null association. </para> </callout> <callout "
-"arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> (optional): "
-"the entity name of the associated class, as an alternative to "
-"<literal>class</literal>. </para> </callout> <callout arearefs=\"manytomany8"
-"\"> <para> <literal>property-ref</literal> (optional): the name of a "
-"property of the associated class that is joined to this foreign key. If not "
-"specified, the primary key of the associated class is used. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"literal> nested element."
msgstr ""
+"<literal>fetch</literal>ï¼å¯é - 缺ç为 <literal>join</literal>ï¼ï¼ 为è¿ä¸ªå
³"
+"èå¯ç¨å¤è¿æ¥æåºåæ§éæ©æåãè¿æ¯ä¸ä¸ªç¹ä¾ã对äºå¨å个 <literal>SELECT</"
+"literal> éè¿è¡å®å
¨ç eager fetching 以å使 <literal><many-to-many></"
+"literal> nç¨å¤å¯¹å¤å
³èï¼ä½ å¯ä»¥å¯ç¨ <literal>join</literal> fetchingï¼è¿ä¸ä»
æ¯"
+"对äºéåæ¬èº«ï¼ä¹å¯¹ <literal><many-to-many></literal> åµå¥å
ç´ ç屿§ã"
#. Tag: para
-#: collection_mapping.xml:506
#, no-c-format
-msgid "Here are some examples."
+msgid ""
+"<literal>unique</literal> (optional): enables the DDL generation of a unique "
+"constraint for the foreign-key column. This makes the association "
+"multiplicity effectively one-to-many."
msgstr ""
+"<literal>unique</literal>ï¼å¯éï¼ï¼æªå¤é®å段å¯ç¨å¯ä¸çº¦æç DDL çæãè¿ä½¿å¾"
+"å
³èä¸å¯¹å¤ç夿 ·æ§æ´ä¸ºææã"
#. Tag: para
-#: collection_mapping.xml:509
#, no-c-format
-msgid "A set of strings:"
+msgid ""
+"<literal>not-found</literal> (optional - defaults to <literal>exception</"
+"literal>): specifies how foreign keys that reference missing rows will be "
+"handled: <literal>ignore</literal> will treat a missing row as a null "
+"association."
msgstr ""
+"<literal>not-found</literal>ï¼å¯é - é»è®¤ä¸º <literal>exception</literal>ï¼ï¼"
+"ææè¥ç¼åçæ ç¤ºå¼å
³èçè¡ç¼ºå¤±ï¼è¯¥å¦ä½å¤çï¼<literal>ignore</literal> ä¼æç¼º"
+"失çè¡ä½ä¸ºä¸ä¸ªç©ºå
³èå¤çã "
-#. Tag: programlisting
-#: collection_mapping.xml:513
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"names\" table=\"person_names\">\n"
-" <key column=\"person_id\"/>\n"
-" <element column=\"person_name\" type=\"string\"/>\n"
-"</set>]]>"
+"<literal>entity-name</literal> (optional): the entity name of the associated "
+"class, as an alternative to <literal>class</literal>."
msgstr ""
+"<literal>entity-name</literal>ï¼å¯éï¼ï¼è¢«å
³èçç±»çå®ä½åï¼ä½ä¸º "
+"<literal>class</literal> çæ¿ä»£ã "
#. Tag: para
-#: collection_mapping.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"A bag containing integers with an iteration order determined by the "
-"<literal>order-by</literal> attribute:"
+"<literal>property-ref</literal> (optional): the name of a property of the "
+"associated class that is joined to this foreign key. If not specified, the "
+"primary key of the associated class is used."
msgstr ""
-"ä¸ä¸ªå®ä½æ°ç»,å¨è¿ä¸ªæ¡ä¾ä¸æ¯ä¸ä¸ªå¤å¯¹å¤çå
³è(注æè¿éçå®ä½æ¯èªå¨ç®¡ççå½å¨æ"
-"ç对象ï¼life cycle objectsï¼,<literal>cascade=\"all\"</literal>):"
+"<literal>property-ref</literal>ï¼å¯éï¼ï¼è¿æ¥è³è¿ä¸ªå¤é®çå
³èç±»ç屿§åç§°ãå¦"
+"ææªæå®ï¼å
³èç±»ç主é®å°è¢«ä½¿ç¨ã"
-#. Tag: programlisting
-#: collection_mapping.xml:520
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<bag name=\"sizes\" \n"
-" table=\"item_sizes\" \n"
-" order-by=\"size asc\">\n"
-" <key column=\"item_id\"/>\n"
-" <element column=\"size\" type=\"integer\"/>\n"
-"</bag>]]>"
-msgstr ""
+msgid "Here are some examples."
+msgstr "ä¸é¢æ¯ä¸äºä¾åï¼"
#. Tag: para
-#: collection_mapping.xml:522
-#, fuzzy, no-c-format
-msgid "An array of entities, in this case, a many-to-many association:"
-msgstr "ä¸ä¸ªmap,éè¿å符串çç´¢å¼æ¥æææ¥æï¼"
+#, no-c-format
+msgid "A set of strings:"
+msgstr "ä¸ç³»åå符串ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:526
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<array name=\"addresses\" \n"
-" table=\"PersonAddress\" \n"
-" cascade=\"persist\">\n"
-" <key column=\"personId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <many-to-many column=\"addressId\" class=\"Address\"/>\n"
-"</array>]]>"
+"A bag containing integers with an iteration order determined by the "
+"<literal>order-by</literal> attribute:"
msgstr ""
+"å
å«ä¸ç»æ´æ°ç bagï¼è¿è®¾ç½®äº <literal>order-by</literal> åæ°æå®äºè¿ä»£ç顺"
+"åºï¼ï¼ "
#. Tag: para
-#: collection_mapping.xml:528
#, no-c-format
-msgid "A map from string indices to dates:"
-msgstr "ä¸ä¸ªç»ä»¶çå表ï¼ï¼ä¸ä¸ç« 讨论ï¼"
+msgid "An array of entities, in this case, a many-to-many association:"
+msgstr ""
+"ä¸ä¸ªå®ä½æ°ç»ï¼å¨è¿ä¸ªæ¡ä¾ä¸æ¯ä¸ä¸ªå¤å¯¹å¤çå
³èï¼æ³¨æè¿éçå®ä½æ¯èªå¨ç®¡ççå½å¨"
+"æç对象ï¼lifecycle objectsï¼ï¼<literal>cascade=\"all\"</literal>ï¼ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:532
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"holidays\" \n"
-" table=\"holidays\" \n"
-" schema=\"dbo\" \n"
-" order-by=\"hol_name asc\">\n"
-" <key column=\"id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
+msgid "A map from string indices to dates:"
+msgstr "ä¸ä¸ª mapï¼éè¿å符串çç´¢å¼æ¥æææ¥æï¼"
#. Tag: para
-#: collection_mapping.xml:534
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A list of components (this is discussed in the next chapter):"
-msgstr "ä¸å¯¹å¤å
³èï¼One-to-many Associationsï¼"
+msgstr "ä¸ä¸ªç»ä»¶çå表ï¼ï¼å°å¨ä¸ä¸ç« 讨论ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:538
-#, no-c-format
-msgid ""
-"<![CDATA[<list name=\"carComponents\" \n"
-" table=\"CarComponents\">\n"
-" <key column=\"carId\"/>\n"
-" <list-index column=\"sortOrder\"/>\n"
-" <composite-element class=\"CarComponent\">\n"
-" <property name=\"price\"/>\n"
-" <property name=\"type\"/>\n"
-" <property name=\"serialNumber\" column=\"serialNum\"/>\n"
-" </composite-element>\n"
-"</list>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:543
#, no-c-format
msgid "One-to-many associations"
-msgstr ""
-"<emphasis>ä¸å¯¹å¤å
³è</emphasis><emphasis>éè¿å¤é®</emphasis>è¿æ¥ä¸¤ä¸ªç±»å¯¹åºç"
-"表,èæ²¡æä¸é´éå表ã è¿ä¸ªå
³ç³»æ¨¡å失å»äºä¸äºJavaéåçè¯ä¹:"
+msgstr "ä¸å¯¹å¤å
³èï¼One-to-many Associationsï¼"
#. Tag: para
-#: collection_mapping.xml:545
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>one-to-many association</emphasis> links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
-msgstr "ä¸ä¸ªè¢«å
å«çå®ä½çå®ä¾åªè½è¢«å
å«å¨ä¸ä¸ªéåçå®ä¾ä¸"
+msgstr ""
+"<emphasis>ä¸å¯¹å¤å
³è</emphasis><emphasis>éè¿å¤é®</emphasis>è¿æ¥ä¸¤ä¸ªç±»å¯¹åºç"
+"表ï¼è没æä¸é´éå表ã è¿ä¸ªå
³ç³»æ¨¡å失å»äºä¸äº Java éåçè¯ä¹ï¼"
#. Tag: para
-#: collection_mapping.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
-msgstr "ä¸ä¸ªè¢«å
å«çå®ä½çå®ä¾åªè½å¯¹åºäºéåç´¢å¼çä¸ä¸ªå¼ä¸"
+msgstr "ä¸ä¸ªè¢«å
å«çå®ä½çå®ä¾åªè½è¢«å
å«å¨ä¸ä¸ªéåçå®ä¾ä¸ã"
#. Tag: para
-#: collection_mapping.xml:559
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
-msgstr ""
-"ä¸ä¸ªä»<literal>Product</literal>å°<literal>Part</literal>çå
³èéè¦å
³é®åå"
-"段,å¯è½è¿æä¸ä¸ªç´¢å¼å段æå<literal>Part</literal>æå¯¹åºç表ã <literal><"
-"one-to-many></literal>æ è®°ææäºä¸ä¸ªä¸å¯¹å¤çå
³èã"
+msgstr "ä¸ä¸ªè¢«å
å«çå®ä½çå®ä¾åªè½å¯¹åºäºéåç´¢å¼çä¸ä¸ªå¼ä¸ã"
#. Tag: para
-#: collection_mapping.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An association from <literal>Product</literal> to <literal>Part</literal> "
"requires the existence of a foreign key column and possibly an index column "
"to the <literal>Part</literal> table. A <literal><one-to-many></"
"literal> tag indicates that this is a one-to-many association."
-msgstr "<literal>class</literal>(å¿
é¡»):被å
³èç±»çåç§°ã"
-
-#. Tag: programlisting
-#: collection_mapping.xml:579
-#, no-c-format
-msgid ""
-"<![CDATA[<one-to-many \n"
-" class=\"ClassName\"\n"
-" not-found=\"ignore|exception\"\n"
-" entity-name=\"EntityName\"\n"
-" node=\"element-name\"\n"
-" embed-xml=\"true|false\"\n"
-" />]]>"
msgstr ""
+"ä¸ä¸ªä» <literal>Product</literal> å° <literal>Part</literal> çå
³èéè¦å
³é®å"
+"åæ®µï¼å¯è½è¿æä¸ä¸ªç´¢å¼å段æå <literal>Part</literal> æå¯¹åºç表ã"
+"<literal><one-to-many></literal> æ è®°ææäºä¸ä¸ªä¸å¯¹å¤çå
³èã "
#. Tag: para
-#: collection_mapping.xml:582
-#, fuzzy, no-c-format
-msgid "<literal>class</literal> (required): the name of the associated class."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"为æ¤å
³èæå¼å¤è¿æ¥æåæè
åç»selectæåãè¿æ¯ç¹æ®æ
åµï¼å¯¹äºä¸ä¸ªå®ä½åå
¶æå"
-"å
¶ä»å®ä½çå¤å¯¹å¤å
³èè¿å
¨é¢å
æåï¼ä½¿ç¨ä¸æ¡åç¬ç<literal>SELECT</literal>)ï¼"
-"ä½ ä¸ä»
éè¦å¯¹éåèªèº«æå¼<literal>join</literal>ï¼ä¹éè¦å¯¹<literal><many-"
-"to-many></literal>è¿ä¸ªå
åµå
ç´ æå¼æ¤å±æ§ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>not-found</literal> (å¯é - é»è®¤ä¸º<literal>exception</literal>): æ"
-"æè¥ç¼åçæ ç¤ºå¼å
³èçè¡ç¼ºå¤±,该å¦ä½å¤ç: <literal>ignore</literal> ä¼æç¼ºå¤±ç"
-"è¡ä½ä¸ºä¸ä¸ªç©ºå
³èå¤çã"
-
-#. Tag: para
-#: collection_mapping.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>not-found</literal> (optional - defaults to <literal>exception</"
"literal>): specifies how cached identifiers that reference missing rows will "
"be handled. <literal>ignore</literal> will treat a missing row as a null "
"association."
msgstr ""
-"<literal>entity-name</literal> (å¯é): 被å
³èçç±»çå®ä½åï¼ä½ä¸º"
-"<literal>class</literal>çæ¿ä»£ã"
+"<literal>not-found</literal>ï¼å¯é - é»è®¤ä¸º<literal>exception</literal>ï¼ï¼æ"
+"æè¥ç¼åçæ ç¤ºå¼å
³èçè¡ç¼ºå¤±ï¼è¯¥å¦ä½å¤çï¼<literal>ignore</literal> ä¼æç¼ºå¤±"
+"çè¡ä½ä¸ºä¸ä¸ªç©ºå
³èå¤çã "
#. Tag: para
-#: collection_mapping.xml:594
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<literal>entity-name</literal> (optional): the entity name of the associated "
-"class, as an alternative to <literal>class</literal>."
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<literal>property-ref</literal>: (å¯é) 被å
³èå°æ¤å¤é®(foreign key)çç±»ä¸ç对"
-"åºå±æ§çååãè¥æªæå®ï¼ä½¿ç¨è¢«å
³èç±»ç主é®ã\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä¾å"
-
-#. Tag: para
-#: collection_mapping.xml:602
-#, fuzzy, no-c-format
-msgid ""
"The <literal><one-to-many></literal> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table</literal> "
"name anywhere."
msgstr ""
-"注æ:<literal><one-to-many></literal>å
ç´ ä¸éè¦å®ä¹ä»»ä½å段ã ä¹ä¸éè¦"
-"æå®è¡¨åã"
+"注æï¼<literal><one-to-many></literal> å
ç´ ä¸éè¦å®ä¹ä»»ä½å段ãä¹ä¸éè¦"
+"æå®è¡¨åã "
#. Tag: para
-#: collection_mapping.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many></literal> "
"association is declared <literal>NOT NULL</literal>, you must declare the "
@@ -902,102 +716,65 @@
"mapping marked <literal>inverse=\"true\"</literal>. See the discussion of "
"bidirectional associations later in this chapter for more information."
msgstr ""
-"<emphasis>éè¦æç¤º</emphasis>:妿<literal>ä¸å¯¹å¤</literal>å
³èä¸çå¤é®å段å®"
-"乿<literal>NOT NULL</literal>,ä½ å¿
é¡»æ<literal><key></literal>æ å°å£°"
-"æä¸º<literal>not-null=\"true\"</literal>,æè
使ç¨<emphasis>ååå
³è</"
-"emphasis>ï¼å¹¶ä¸æ æ<literal>inverse=\"true\"</literal>ãåé
æ¬ç« åé¢å
³äºåå"
-"å
³èç讨论ã"
+"<emphasis>éè¦æç¤º</emphasis>ï¼å¦æ<literal>ä¸å¯¹å¤</literal>å
³èä¸çå¤é®å段"
+"å®ä¹æ <literal>NOT NULL</literal>ï¼ä½ å¿
é¡»æ <literal><key></literal> "
+"æ å°å£°æä¸º <literal>not-null=\"true\"</literal>ï¼æè
使ç¨<emphasis>ååå
³è</"
+"emphasis>ï¼å¹¶ä¸æ æ <literal>inverse=\"true\"</literal>ãåé
æ¬ç« åé¢å
³äºåå"
+"å
³èç讨论ã "
#. Tag: para
-#: collection_mapping.xml:619
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following example shows a map of <literal>Part</literal> entities by "
"name, where <literal>partName</literal> is a persistent property of "
"<literal>Part</literal>. Notice the use of a formula-based index:"
msgstr ""
-"ä¸é¢çä¾åå±ç¤ºä¸ä¸ª<literal>Part</literal>å®ä½çmap,ænameä½ä¸ºå
³é®åã"
-"( <literal>partName</literal> æ¯<literal>Part</literal>çæä¹
å屿§)ãæ³¨æå
¶"
-"ä¸çåºäºå
¬å¼çç´¢å¼çç¨æ³ã"
+"ä¸é¢çä¾åå±ç¤ºä¸ä¸ª <literal>Part</literal> å®ä½ç mapï¼æ name ä½ä¸ºå
³é®åã"
+"ï¼ <literal>partName</literal> æ¯ <literal>Part</literal> çæä¹
å屿§ï¼ã注"
+"æå
¶ä¸çåºäºå
¬å¼çç´¢å¼çç¨æ³ã "
-#. Tag: programlisting
-#: collection_mapping.xml:625
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"parts\"\n"
-" cascade=\"all\">\n"
-" <key column=\"productId\" not-null=\"true\"/>\n"
-" <map-key formula=\"partName\"/>\n"
-" <one-to-many class=\"Part\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:631
#, no-c-format
msgid "Advanced collection mappings"
msgstr "é«çº§éåæ å°ï¼Advanced collection mappingsï¼"
#. Tag: title
-#: collection_mapping.xml:634
#, no-c-format
msgid "Sorted collections"
msgstr "æåºéåï¼Sorted collectionsï¼"
#. Tag: para
-#: collection_mapping.xml:636
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMap</"
"literal> and <literal>java.util.SortedSet</literal>. You must specify a "
"comparator in the mapping file:"
msgstr ""
-"Hibernateæ¯æå®ç°<literal>java.util.SortedMap</literal>å<literal>java.util."
-"SortedSet</literal>çéåã ä½ å¿
须卿 尿件䏿å®ä¸ä¸ªæ¯è¾å¨ï¼"
+"Hibernate æ¯æå®ç° <literal>java.util.SortedMap</literal> å <literal>java."
+"util.SortedSet</literal> çéåãä½ å¿
须卿 尿件䏿å®ä¸ä¸ªæ¯è¾å¨ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:641
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" \n"
-" table=\"person_aliases\" \n"
-" sort=\"natural\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date\" type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:643
#, no-c-format
msgid ""
"Allowed values of the <literal>sort</literal> attribute are "
"<literal>unsorted</literal>, <literal>natural</literal> and the name of a "
"class implementing <literal>java.util.Comparator</literal>."
msgstr ""
-"<literal>sort</literal>屿§ä¸å
许çå¼å
æ¬<literal>unsorted</literal>,"
-"<literal>natural</literal>åæä¸ªå®ç°äº<literal>java.util.Comparator</literal>"
-"çç±»çåç§°ã"
+"<literal>sort</literal> 屿§ä¸å
许çå¼å
æ¬ <literal>unsorted</literal>ï¼"
+"<literal>natural</literal> åæä¸ªå®ç°äº <literal>java.util.Comparator</"
+"literal> çç±»çåç§°ã"
#. Tag: para
-#: collection_mapping.xml:649
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet</literal> "
"or <literal>java.util.TreeMap</literal>."
msgstr ""
-"åç±»éåçè¡ä¸ºäºå®ä¸è±¡<literal>java.util.TreeSet</literal>æè
<literal>java."
-"util.TreeMap</literal>ã"
+"åç±»éåçè¡ä¸ºäºå®ä¸è±¡ <literal>java.util.TreeSet</literal> æè
"
+"<literal>java.util.TreeMap</literal>ã"
#. Tag: para
-#: collection_mapping.xml:654
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by</literal> attribute of <literal>set</literal>, "
@@ -1006,154 +783,93 @@
"<literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>. This "
"performs the ordering in the SQL query and not in the memory."
msgstr ""
-"å¦æä½ å¸ææ°æ®åºèªå·±å¯¹éåå
ç´ æåºï¼å¯ä»¥å©ç¨<literal>set</literal>,"
-"<literal>bag</literal>æè
<literal>map</literal>æ å°ä¸ç<literal>order-by</"
-"literal>屿§ãè¿ä¸ªè§£å³æ¹æ¡åªè½å¨jdk1.4æè
æ´é«çjdkçæ¬ä¸æå¯ä»¥å®ç°(éè¿"
-"LinkedHashSetæè
LinkedHashMapå®ç°)ã 宿¯å¨SQLæ¥è¯¢ä¸å®ææåºï¼è䏿¯å¨å
å"
-"ä¸ã"
+"å¦æä½ å¸ææ°æ®åºèªå·±å¯¹éåå
ç´ æåºï¼å¯ä»¥å©ç¨ <literal>set</literal>ï¼"
+"<literal>bag</literal> æè
<literal>map</literal> æ å°ä¸ç <literal>order-"
+"by</literal> 屿§ãè¿ä¸ªè§£å³æ¹æ¡åªè½å¨ jdk1.4 æè
æ´é«ç jdk çæ¬ä¸æå¯ä»¥å®ç°"
+"ï¼éè¿ LinkedHashSet æè
LinkedHashMap å®ç°ï¼ã宿¯å¨ SQL æ¥è¯¢ä¸å®ææåºï¼è"
+"䏿¯å¨å
åä¸ã "
-#. Tag: programlisting
-#: collection_mapping.xml:663
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
-"(name) asc\">\n"
-" <key column=\"person\"/>\n"
-" <element column=\"name\" type=\"string\"/>\n"
-"</set>\n"
-"\n"
-"<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
-" <key column=\"year_id\"/>\n"
-" <map-key column=\"hol_name\" type=\"string\"/>\n"
-" <element column=\"hol_date type=\"date\"/>\n"
-"</map>]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:666
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
#. Tag: para
-#: collection_mapping.xml:667
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The value of the <literal>order-by</literal> attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
-"注æ: è¿ä¸ª<literal>order-by</literal>屿§ç弿¯ä¸ä¸ªSQLæåºåå¥è䏿¯HQLçï¼"
+"注æï¼è¿ä¸ª <literal>order-by</literal> 屿§ç弿¯ä¸ä¸ª SQL æåºåå¥è䏿¯ HQL "
+"çã"
#. Tag: para
-#: collection_mapping.xml:673
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter()</literal>:"
msgstr ""
-"å
³èè¿å¯ä»¥å¨è¿è¡æ¶ä½¿ç¨éå<literal>filter()</literal>æ ¹æ®ä»»æçæ¡ä»¶æ¥æåºã"
+"å
³èè¿å¯ä»¥å¨è¿è¡æ¶ä½¿ç¨éå <literal>filter()</literal> æ ¹æ®ä»»æçæ¡ä»¶æ¥æåºï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name"
-"\" ).list();]]>"
-msgstr ""
-
#. Tag: title
-#: collection_mapping.xml:683
#, no-c-format
msgid "Bidirectional associations"
msgstr "ååå
³èï¼Bidirectional associationsï¼"
#. Tag: para
-#: collection_mapping.xml:685
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <emphasis>bidirectional association</emphasis> allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
-"<emphasis>ååå
³è</emphasis>å
许éè¿å
³èçä»»ä¸ç«¯è®¿é®å¦å¤ä¸ç«¯ãå¨Hibernate"
-"ä¸, æ¯æä¸¤ç§ç±»åçååå
³è: <placeholder-1/>"
+"<emphasis>ååå
³è</emphasis>å
许éè¿å
³èçä»»ä¸ç«¯è®¿é®å¦å¤ä¸ç«¯ãå¨ Hibernate "
+"ä¸ï¼æ¯æä¸¤ç§ç±»åçååå
³èï¼ "
#. Tag: term
-#: collection_mapping.xml:692
#, no-c-format
msgid "one-to-many"
msgstr "ä¸å¯¹å¤ï¼one-to-manyï¼"
#. Tag: para
-#: collection_mapping.xml:694
-#, fuzzy, no-c-format
+#, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
-msgstr "Setæè
bagå¼å¨ä¸ç«¯, åç¬å¼(ééå)å¨å¦å¤ä¸ç«¯"
+msgstr "Set æè
bag å¼å¨ä¸ç«¯ï¼åç¬å¼ï¼ééåï¼å¨å¦å¤ä¸ç«¯ "
#. Tag: term
-#: collection_mapping.xml:700
#, no-c-format
msgid "many-to-many"
msgstr "å¤å¯¹å¤ï¼many-to-manyï¼"
#. Tag: para
-#: collection_mapping.xml:702
#, no-c-format
msgid "set or bag valued at both ends"
-msgstr "ä¸¤ç«¯é½æ¯setæbagå¼"
+msgstr "ä¸¤ç«¯é½æ¯ set æ bag å¼"
#. Tag: para
-#: collection_mapping.xml:711
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse</emphasis>. You cannot select an indexed collection."
msgstr ""
-"è¦å»ºç«ä¸ä¸ªååçå¤å¯¹å¤å
³èï¼åªéè¦æ å°ä¸¤ä¸ªmany-to-manyå
³èå°åä¸ä¸ªæ°æ®åºè¡¨"
-"ä¸ï¼å¹¶åå®ä¹å
¶ä¸çä¸ç«¯ä¸º<emphasis>inverse</emphasis>(使ç¨åªä¸ç«¯è¦æ ¹æ®ä½ çé"
-"æ©ï¼ä½å®ä¸è½æ¯ä¸ä¸ªç´¢å¼éå)ã"
+"è¦å»ºç«ä¸ä¸ªååçå¤å¯¹å¤å
³èï¼åªéè¦æ å°ä¸¤ä¸ª many-to-many å
³èå°åä¸ä¸ªæ°æ®åºè¡¨"
+"ä¸ï¼å¹¶åå®ä¹å
¶ä¸çä¸ç«¯ä¸º <emphasis>inverse</emphasis>ï¼ä½¿ç¨åªä¸ç«¯è¦æ ¹æ®ä½ çé"
+"æ©ï¼ä½å®ä¸è½æ¯ä¸ä¸ªç´¢å¼éåï¼ã "
#. Tag: para
-#: collection_mapping.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
-"è¿éæä¸ä¸ªmany-to-manyçååå
³èçä¾å;æ¯ä¸ä¸ªcategoryé½å¯ä»¥æå¾å¤items,æ¯ä¸ä¸ª"
-"itemså¯ä»¥å±äºå¾å¤categoriesï¼"
+"è¿éæä¸ä¸ª many-to-many çååå
³èçä¾å;æ¯ä¸ä¸ª category é½å¯ä»¥æå¾å¤ itemsï¼"
+"æ¯ä¸ä¸ª items å¯ä»¥å±äºå¾å¤ categoriesï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:723
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Category\">\n"
-" <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
-" ...\n"
-" <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
-" <key column=\"CATEGORY_ID\"/>\n"
-" <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
-" </bag>\n"
-"</class>\n"
-"\n"
-"<class name=\"Item\">\n"
-" <id name=\"id\" column=\"ITEM_ID\"/>\n"
-" ...\n"
-"\n"
-" <!-- inverse end -->\n"
-" <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
-" <key column=\"ITEM_ID\"/>\n"
-" <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
-" </bag>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:725
-#, fuzzy, no-c-format
-msgid ""
"Changes made only to the inverse end of the association are <emphasis>not</"
"emphasis> persisted. This means that Hibernate has two representations in "
"memory for every bidirectional association: one link from A to B and another "
@@ -1161,27 +877,11 @@
"object model and how a many-to-many relationship in Javais created:"
msgstr ""
"妿åªå¯¹å
³èçåå端è¿è¡äºæ¹åï¼è¿ä¸ªæ¹å<emphasis>ä¸ä¼</emphasis>被æä¹
åã "
-"è¿è¡¨ç¤ºHibernate为æ¯ä¸ªååå
³èå¨å
åä¸åå¨ä¸¤æ¬¡è¡¨ç°,ä¸ä¸ªä»Aè¿æ¥å°B,å¦ä¸ä¸ªä»Bè¿"
-"æ¥å°Aãå¦æä½ åæ³ä¸ä¸Java对象模åï¼æä»¬æ¯å¦ä½å¨Javaä¸å建å¤å¯¹å¤å
³ç³»çï¼è¿å¯ä»¥"
-"è®©ä½ æ´å®¹æçè§£ï¼"
+"è¿è¡¨ç¤º Hibernate 为æ¯ä¸ªååå
³èå¨å
åä¸åå¨ä¸¤æ¬¡è¡¨ç°ï¼ä¸ä¸ªä» A è¿æ¥å° Bï¼å¦ä¸"
+"ä¸ªä» B è¿æ¥å° Aãå¦æä½ åæ³ä¸ä¸ Java 对象模åï¼æä»¬æ¯å¦ä½å¨ Java ä¸å建å¤å¯¹å¤"
+"å
³ç³»çï¼è¿å¯ä»¥è®©ä½ æ´å®¹æçè§£ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:733
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"category.getItems().add(item); // The category now \"knows\" about "
-"the relationship\n"
-"item.getCategories().add(category); // The item now \"knows\" about the "
-"relationship\n"
-"\n"
-"session.persist(item); // The relationship won't be "
-"saved!\n"
-"session.persist(category); // The relationship will be saved]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:735
#, no-c-format
msgid ""
"The non-inverse side is used to save the in-memory representation to the "
@@ -1189,59 +889,32 @@
msgstr "éåå端ç¨äºæå
åä¸ç表示ä¿åå°æ°æ®åºä¸ã"
#. Tag: para
-#: collection_mapping.xml:739
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define a bidirectional one-to-many association by mapping a one-to-"
"many association to the same table column(s) as a many-to-one association "
"and declaring the many-valued end <literal>inverse=\"true\"</literal>."
msgstr ""
"è¦å»ºç«ä¸ä¸ªä¸å¯¹å¤çååå
³èï¼ä½ å¯ä»¥éè¿æä¸ä¸ªä¸å¯¹å¤å
³èï¼ä½ä¸ºä¸ä¸ªå¤å¯¹ä¸å
³èæ "
-"å°å°å°åä¸å¼ 表çåæ®µä¸ï¼å¹¶ä¸å¨\"å¤\"çé£ä¸ç«¯å®ä¹<literal>inverse=\"true\"</"
-"literal>ã"
+"å°å°å°åä¸å¼ 表çåæ®µä¸ï¼å¹¶ä¸å¨\"å¤\"çé£ä¸ç«¯å®ä¹ <literal>inverse=\"true\"</"
+"literal>ã "
-#. Tag: programlisting
-#: collection_mapping.xml:745
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:747
-#, fuzzy, no-c-format
-msgid ""
"Mapping one end of an association with <literal>inverse=\"true\"</literal> "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
-"å¨âä¸âè¿ä¸ç«¯å®ä¹<literal>inverse=\"true\"</literal>ä¸ä¼å½±å级èæä½ï¼äºè
æ¯æ£"
-"äº¤çæ¦å¿µï¼"
+"å¨âä¸âè¿ä¸ç«¯å®ä¹ <literal>inverse=\"true\"</literal> ä¸ä¼å½±å级èæä½ï¼äºè
æ¯"
+"æ£äº¤çæ¦å¿µã"
#. Tag: title
-#: collection_mapping.xml:755
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "ååå
³èï¼æ¶åæåºéåç±»"
#. Tag: para
-#: collection_mapping.xml:756
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <literal><map></literal>, requires special "
@@ -1249,41 +922,13 @@
"index column you can use <literal>inverse=\"true\"</literal> on the "
"collection mapping:"
msgstr ""
-"å¯¹äºæä¸ç«¯æ¯<literal><list></literal>æè
<literal><map></literal>"
-"çååå
³èï¼éè¦å 以ç¹å«èèãåè¥åç±»ä¸çä¸ä¸ªå±æ§æ å°å°ç´¢å¼åæ®µï¼æ²¡é®é¢ï¼æ"
-"们ä»ç¶å¯ä»¥å¨éåç±»æ å°ä¸ä½¿ç¨<literal>inverse=\"true\"</literal>ï¼"
+"å¯¹äºæä¸ç«¯æ¯ <literal><list></literal> æè
<literal><map></"
+"literal> çååå
³èï¼éè¦å 以ç¹å«èèãåè¥åç±»ä¸çä¸ä¸ªå±æ§æ å°å°ç´¢å¼åæ®µï¼æ²¡"
+"é®é¢ï¼æä»¬ä»ç¶å¯ä»¥å¨éåç±»æ å°ä¸ä½¿ç¨ <literal>inverse=\"true\"</literal>ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:763
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"/>\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:765
-#, fuzzy, no-c-format
-msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
@@ -1291,111 +936,52 @@
"Instead, you could use the following mapping:"
msgstr ""
"使¯ï¼åè¥åç±»ä¸æ²¡æè¿æ ·ç屿§åå¨ï¼æä»¬ä¸è½è®¤ä¸ºè¿ä¸ªå
³èæ¯çæ£çååå
³èï¼ä¿¡"
-"æ¯ä¸å¯¹ç§°ï¼å¨å
³èçä¸ç«¯æä¸äºå¦å¤ä¸ç«¯æ²¡æçä¿¡æ¯ï¼ãå¨è¿ç§æ
åµä¸ï¼æä»¬ä¸è½ä½¿ç¨"
-"<literal>inverse=\"true\"</literal>ãæä»¬éè¦è¿æ ·ç¨ï¼"
+"æ¯ä¸å¯¹ç§°ï¼å¨å
³èçä¸ç«¯æä¸äºå¦å¤ä¸ç«¯æ²¡æçä¿¡æ¯ï¼ãå¨è¿ç§æ
åµä¸ï¼æä»¬ä¸è½ä½¿ç¨ "
+"<literal>inverse=\"true\"</literal>ãæä»¬éè¦è¿æ ·ç¨ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:772
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Parent\">\n"
-" <id name=\"id\" column=\"parent_id\"/>\n"
-" ....\n"
-" <map name=\"children\">\n"
-" <key column=\"parent_id\"\n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"name\" \n"
-" type=\"string\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </map>\n"
-"</class>\n"
-"\n"
-"<class name=\"Child\">\n"
-" <id name=\"id\" column=\"child_id\"/>\n"
-" ....\n"
-" <many-to-one name=\"parent\" \n"
-" class=\"Parent\" \n"
-" column=\"parent_id\"\n"
-" insert=\"false\"\n"
-" update=\"false\"\n"
-" not-null=\"true\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:774
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
-msgstr ""
-"注æå¨è¿ä¸ªæ å°ä¸ï¼å
³èä¸éåç±»\"å¼\"ä¸ç«¯è´è´£æ¥æ´æ°å¤é®.TODO: Does this "
-"really result in some unnecessary update statements?"
+msgstr "注æå¨è¿ä¸ªæ å°ä¸ï¼å
³èä¸éåç±»\"å¼\"ä¸ç«¯è´è´£æ¥æ´æ°å¤é®ã "
#. Tag: title
-#: collection_mapping.xml:782
#, no-c-format
msgid "Ternary associations"
msgstr "ä¸éå
³èï¼Ternary associationsï¼"
#. Tag: para
-#: collection_mapping.xml:784
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map</literal> with an association as its index:"
msgstr ""
-"æä¸ç§å¯è½çé徿¥æ å°ä¸ä¸ªä¸éå
³èã第ä¸ç§æ¯ä½¿ç¨ä¸ä¸ª<literal>Map</literal>ï¼"
-"æä¸ä¸ªå
³èä½ä¸ºå
¶ç´¢å¼ï¼"
+"æä¸ç§å¯è½çé徿¥æ å°ä¸ä¸ªä¸éå
³èã第ä¸ç§æ¯ä½¿ç¨ä¸ä¸ª <literal>Map</literal>ï¼"
+"æä¸ä¸ªå
³èä½ä¸ºå
¶ç´¢å¼ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:789
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<map name=\"contracts\">\n"
-" <key column=\"employer_id\" not-null=\"true\"/>\n"
-" <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
-" <one-to-many class=\"Contract\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: collection_mapping.xml:791
-#, no-c-format
-msgid ""
-"<![CDATA[<map name=\"connections\">\n"
-" <key column=\"incoming_node_id\"/>\n"
-" <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
-" <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
-"</map>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:793
-#, fuzzy, no-c-format
-msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
-"第äºç§æ¹æ³æ¯ç®åçæå
³èéæ°å»ºæ¨¡ä¸ºä¸ä¸ªå®ä½ç±»ãè¿ä½¿æä»¬æç»å¸¸ä½¿ç¨çæ¹æ³ã"
+"第äºç§æ¹æ³æ¯ç®åçæå
³èéæ°å»ºæ¨¡ä¸ºä¸ä¸ªå®ä½ç±»ãè¿ä½¿æä»¬æç»å¸¸ä½¿ç¨çæ¹æ³ã "
#. Tag: para
-#: collection_mapping.xml:798
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
-msgstr "æåä¸ç§éæ©æ¯ä½¿ç¨å¤åå
ç´ ï¼æä»¬ä¼å¨åé¢è®¨è®º"
+msgstr "æåä¸ç§éæ©æ¯ä½¿ç¨å¤åå
ç´ ï¼æä»¬ä¼å¨åé¢è®¨è®ºã"
-#. Tag: literal
-#: collection_mapping.xml:805
-#, no-c-format
-msgid "Using an <idbag>"
-msgstr "使ç¨<idbag>"
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "<literal>Using an <idbag></literal>"
+msgstr "<literal>ä½¿ç¨ an <idbag></literal>"
#. Tag: para
-#: collection_mapping.xml:807
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
"shown previously all map to tables with composite keys, even though it has "
@@ -1411,450 +997,1136 @@
"æªï¼æä»¬ç®å为æ¢å±ç¤ºçå¤å¯¹å¤å
³èåå¼éå齿¯æ å°æä¸ºå¸¦æèå主é®ç表çï¼ç°"
"å¨ï¼è¿ä¸ç¹é常å¼å¾äºè¾©ï¼çä¸å»ä¸ä¸ªå纯çå
³è表并ä¸è½ä»ä»£ç¨æ è¯ç¬¦ä¸è·å¾ä»ä¹å¥½"
"å¤ï¼è½ç¶ä½¿ç¨ç»åå¼çéå<emphasis>å¯è½</emphasis>ä¼è·å¾ä¸ç¹å¥½å¤ï¼ãä¸è¿ï¼"
-"Hibernateæä¾äºä¸ä¸ªï¼ä¸ç¹ç¹è¯éªæ§è´¨çï¼åè½ï¼è®©ä½ æå¤å¯¹å¤å
³èåå¼éååºå¾å°ä¸"
-"个使ç¨ä»£ç¨æ è¯ç¬¦ç表å»ã"
+"Hibernate æä¾äºä¸ä¸ªï¼ä¸ç¹ç¹è¯éªæ§è´¨çï¼åè½ï¼è®©ä½ æå¤å¯¹å¤å
³èåå¼éååºå¾å°"
+"ä¸ä¸ªä½¿ç¨ä»£ç¨æ è¯ç¬¦ç表å»ã "
#. Tag: para
-#: collection_mapping.xml:817
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><idbag></literal> element lets you map a <literal>List</"
"literal> (or <literal>Collection</literal>) with bag semantics. For example:"
msgstr ""
-"<literal><idbag></literal> 屿§è®©ä½ 使ç¨bagè¯ä¹æ¥æ å°ä¸ä¸ª<literal>List</"
-"literal> (æ<literal>Collection</literal>)ã"
+"<literal><idbag></literal> 屿§è®©ä½ ä½¿ç¨ bag è¯ä¹æ¥æ å°ä¸ä¸ª "
+"<literal>List</literal> ï¼æ <literal>Collection</literal>ï¼ã "
-#. Tag: programlisting
-#: collection_mapping.xml:822
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
-" <collection-id column=\"ID\" type=\"long\">\n"
-" <generator class=\"sequence\"/>\n"
-" </collection-id>\n"
-" <key column=\"PERSON1\"/>\n"
-" <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
-"</idbag>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:824
-#, fuzzy, no-c-format
-msgid ""
"An <literal><idbag></literal> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
-"ä½ å¯ä»¥çè§£ï¼<literal><idbag></literal>人工çidçæå¨ï¼å°±å¥½åæ¯å®ä½ç±»ä¸"
-"æ ·ï¼éåçæ¯ä¸è¡é½æä¸ä¸ªä¸åç人é å
³é®åã使¯ï¼Hibernate没ææä¾ä»»ä½æºå¶æ¥è®©"
-"ä½ åå¾æä¸ªç¹å®è¡ç人é å
³é®åã"
+"ä½ å¯ä»¥çè§£ï¼<literal><idbag></literal> 人工ç id çæå¨ï¼å°±å¥½åæ¯å®ä½ç±»"
+"䏿 ·ï¼éåçæ¯ä¸è¡é½æä¸ä¸ªä¸åç人é å
³é®åã使¯ï¼Hibernate 没ææä¾ä»»ä½æºå¶"
+"æ¥è®©ä½ åå¾æä¸ªç¹å®è¡ç人é å
³é®åã "
#. Tag: para
-#: collection_mapping.xml:831
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The update performance of an <literal><idbag></literal> supersedes a "
"regular <literal><bag></literal>. Hibernate can locate individual rows "
"efficiently and update or delete them individually, similar to a list, map "
"or set."
msgstr ""
-"注æ<literal><idbag></literal>çæ´æ°æ§è½è¦æ¯æ®éç<literal><bag>"
-"</literal>é«å¾å¤ï¼Hibernateå¯ä»¥ææçå®ä½å°ä¸åçè¡ï¼åå«è¿è¡æ´æ°æå é¤å·¥ä½ï¼"
-"å°±å¦åå¤çä¸ä¸ªlist, mapæè
set䏿 ·ã"
+"注æ <literal><idbag></literal> çæ´æ°æ§è½è¦æ¯æ®éç <literal><"
+"bag></literal> é«å¾å¤ï¼Hibernate å¯ä»¥ææçå®ä½å°ä¸åçè¡ï¼åå«è¿è¡æ´æ°æ"
+"å é¤å·¥ä½ï¼å°±å¦åå¤çä¸ä¸ª listï¼map æè
set 䏿 ·ã "
#. Tag: para
-#: collection_mapping.xml:837
#, no-c-format
msgid ""
"In the current implementation, the <literal>native</literal> identifier "
"generation strategy is not supported for <literal><idbag></literal> "
"collection identifiers."
msgstr ""
-"å¨ç®åçå®ç°ä¸ï¼è¿ä¸æ¯æä½¿ç¨<literal>identity</literal>æ è¯ç¬¦çæå¨çç¥æ¥çæ"
-"<literal><idbag></literal>éåçæ è¯ç¬¦ã"
+"å¨ç®åçå®ç°ä¸ï¼è¿ä¸æ¯æä½¿ç¨ <literal>identity</literal> æ è¯ç¬¦çæå¨çç¥æ¥ç"
+"æ <literal><idbag></literal> éåçæ è¯ç¬¦ã"
#. Tag: title
-#: collection_mapping.xml:861
#, no-c-format
msgid "Collection examples"
msgstr "éåä¾åï¼Collection exampleï¼"
#. Tag: para
-#: collection_mapping.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid "This section covers collection examples."
-msgstr "éåä¾åï¼Collection exampleï¼"
+msgstr "éåä¾åï¼Collection exampleï¼ã"
#. Tag: para
-#: collection_mapping.xml:867
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child</literal> instances:"
-msgstr ""
+msgstr "ä¸é¢çä»£ç æ¯ç¨æ¥æ·»å ä¸ä¸ªæ°ç <literal>Child</literal>ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:871
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"\n"
-"public class Parent {\n"
-" private long id;\n"
-" private Set children;\n"
-"\n"
-" public long getId() { return id; }\n"
-" private void setId(long id) { this.id=id; }\n"
-"\n"
-" private Set getChildren() { return children; }\n"
-" private void setChildren(Set children) { this.children=children; }\n"
-"\n"
-" ....\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:873
-#, fuzzy, no-c-format
-msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
-"è¿ä¸ªç±»æä¸ä¸ª<literal>Child</literal>çå®ä¾éåã妿æ¯ä¸ä¸ªåå®ä¾è³å¤æä¸ä¸ªç¶"
-"å®ä¾, é£ä¹æèªç¶çæ å°æ¯ä¸ä¸ªone-to-manyçå
³èå
³ç³»ï¼"
+"è¿ä¸ªç±»æä¸ä¸ª <literal>Child</literal> çå®ä¾éåã妿æ¯ä¸ä¸ªåå®ä¾è³å¤æä¸ä¸ª"
+"ç¶å®ä¾ï¼é£ä¹æèªç¶çæ å°æ¯ä¸ä¸ª one-to-many çå
³èå
³ç³»ï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:879
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:881
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "å¨ä»¥ä¸ç表å®ä¹ä¸ååºäºè¿ä¸ªæ å°å
³ç³»ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:885
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255), "
-"parent_id bigint )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:887
#, no-c-format
msgid ""
"If the parent is <emphasis>required</emphasis>, use a bidirectional one-to-"
"many association:"
msgstr ""
-"妿ç¶äº²æ¯<emphasis>å¿
é¡»</emphasis>ç, é£ä¹å°±å¯ä»¥ä½¿ç¨ååone-to-manyçå
³è"
+"妿ç¶äº²æ¯<emphasis>å¿
é¡»</emphasis>çï¼é£ä¹å°±å¯ä»¥ä½¿ç¨åå one-to-many çå
³è"
"äºï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:892
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id\" "
-"not-null=\"true\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:894
#, no-c-format
msgid "Notice the <literal>NOT NULL</literal> constraint:"
-msgstr "请注æ<literal>NOT NULL</literal>ç约æ:"
+msgstr "请注æ <literal>NOT NULL</literal> ç约æ:"
-#. Tag: programlisting
-#: collection_mapping.xml:898
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null\n"
-" primary key,\n"
-" name varchar(255),\n"
-" parent_id bigint not null )\n"
-"alter table child add constraint childfk0 (parent_id) references parent]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:900
-#, fuzzy, no-c-format
-msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL</literal> constraint on the <literal><key></"
"literal> mapping:"
msgstr ""
-"å¦å¤ï¼å¦æä½ ç»å¯¹åæè¿ä¸ªå
³èåºè¯¥æ¯ååçï¼ä½ å¯ä»¥å¯¹<literal><key></"
-"literal>æ å°å£°æ<literal>NOT NULL</literal>约æï¼"
+"å¦å¤ï¼å¦æä½ ç»å¯¹åæè¿ä¸ªå
³èåºè¯¥æ¯ååçï¼ä½ å¯ä»¥å¯¹ <literal><key></"
+"literal> æ å°å£°æ <literal>NOT NULL</literal> 约æï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:906
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\">\n"
-" <key column=\"parent_id\" not-null=\"true\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: collection_mapping.xml:908
-#, fuzzy, no-c-format
-msgid ""
"On the other hand, if a child has multiple parents, a many-to-many "
"association is appropriate:"
msgstr ""
-"å¦å¤ä¸æ¹é¢,妿ä¸ä¸ªåå®ä¾å¯è½æå¤ä¸ªç¶å®ä¾, é£ä¹å°±åºè¯¥ä½¿ç¨many-to-manyå
³èï¼"
+"å¦å¤ä¸æ¹é¢ï¼å¦æä¸ä¸ªåå®ä¾å¯è½æå¤ä¸ªç¶å®ä¾ï¼é£ä¹å°±åºè¯¥ä½¿ç¨ many-to-many å
³"
+"èï¼ "
-#. Tag: programlisting
-#: collection_mapping.xml:913
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Parent\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <set name=\"children\" table=\"childset\">\n"
-" <key column=\"parent_id\"/>\n"
-" <many-to-many class=\"Child\" column=\"child_id\"/>\n"
-" </set>\n"
-" </class>\n"
-"\n"
-" <class name=\"Child\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"name\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:915
#, no-c-format
msgid "Table definitions:"
msgstr "表å®ä¹ï¼"
-#. Tag: programlisting
-#: collection_mapping.xml:919
-#, no-c-format
-msgid ""
-"<![CDATA[create table parent ( id bigint not null primary key )\n"
-"create table child ( id bigint not null primary key, name varchar(255) )\n"
-"create table childset ( parent_id bigint not null,\n"
-" child_id bigint not null,\n"
-" primary key ( parent_id, child_id ) )\n"
-"alter table childset add constraint childsetfk0 (parent_id) references "
-"parent\n"
-"alter table childset add constraint childsetfk1 (child_id) references child]]"
-">"
-msgstr ""
-
#. Tag: para
-#: collection_mapping.xml:921
#, fuzzy, no-c-format
msgid ""
"For more examples and a complete explanation of a parent/child relationship "
-"mapping, see <xref linkend=\"example-parentchild\"/> for more information."
+"mapping, see <xref linkend=\"example-parentchild\" /> for more information."
msgstr ""
-"æ´å¤çä¾å,以åä¸ä¸ªå®æ´çç¶/åå
³ç³»æ å°çæç»,请åé
<xref linkend=\"example-"
-"parentchild\"/>."
+"æ´å¤çä¾åï¼ä»¥åä¸ä¸ªå®æ´çç¶/åå
³ç³»æ å°çæç»ï¼è¯·åé
<xref linkend="
+"\"example-parentchild\"/>ã "
#. Tag: para
-#: collection_mapping.xml:926
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Even more complex association mappings are covered in the next chapter."
-msgstr "çè³å¯è½åºç°æ´å 夿çå
³èæ å°,æä»¬ä¼å¨ä¸ä¸ç« ä¸ååºææå¯è½æ§ã"
+msgstr "çè³å¯è½åºç°æ´å 夿çå
³èæ å°ï¼æä»¬ä¼å¨ä¸ä¸ç« ä¸ååºææå¯è½æ§ã "
-#~ msgid "Collection Mapping"
-#~ msgstr "éåç±»(Collections)æ å°"
+#~ msgid ""
+#~ "<![CDATA[public class Product {\n"
+#~ " private String serialNumber;\n"
+#~ " private Set parts = new HashSet();\n"
+#~ " \n"
+#~ " public Set getParts() { return parts; }\n"
+#~ " void setParts(Set parts) { this.parts = parts; }\n"
+#~ " public String getSerialNumber() { return serialNumber; }\n"
+#~ " void setSerialNumber(String sn) { serialNumber = sn; }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Product {\n"
+#~ " private String serialNumber;\n"
+#~ " private Set parts = new HashSet();\n"
+#~ " \n"
+#~ " public Set getParts() { return parts; }\n"
+#~ " void setParts(Set parts) { this.parts = parts; }\n"
+#~ " public String getSerialNumber() { return serialNumber; }\n"
+#~ " void setSerialNumber(String sn) { serialNumber = sn; }\n"
+#~ "}]]>"
-#~ msgid "Some examples, first, a set of strings:"
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "Cat kitten = new DomesticCat();\n"
+#~ "....\n"
+#~ "Set kittens = new HashSet();\n"
+#~ "kittens.add(kitten);\n"
+#~ "cat.setKittens(kittens);\n"
+#~ "session.persist(cat);\n"
+#~ "kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
+#~ "(HashSet) cat.getKittens(); // Error!]]>"
#~ msgstr ""
-#~ "å
å«ä¸ç»æ´æ°çbag(è¿è®¾ç½®äº<literal>order-by</literal>åæ°æå®äºè¿ä»£ç顺"
-#~ "åº)ï¼"
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "Cat kitten = new DomesticCat();\n"
+#~ "....\n"
+#~ "Set kittens = new HashSet();\n"
+#~ "kittens.add(kitten);\n"
+#~ "cat.setKittens(kittens);\n"
+#~ "session.persist(cat);\n"
+#~ "kittens = cat.getKittens(); // Okay, kittens collection is a Set\n"
+#~ "(HashSet) cat.getKittens(); // Error!]]>"
#~ msgid ""
-#~ "The previous sections are pretty confusing. So lets look at an example. "
-#~ "This class:"
-#~ msgstr "å¨åé¢çå ä¸ªç« èçç¡®é常令人迷æã å æ¤è®©æä»¬æ¥çä¸ä¸ªä¾åãè¿ä¸ªç±»ï¼"
+#~ "<![CDATA[<class name=\"Product\">\n"
+#~ " <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
+#~ " <set name=\"parts\">\n"
+#~ " <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Product\">\n"
+#~ " <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n"
+#~ " <set name=\"parts\">\n"
+#~ " <key column=\"productSerialNumber\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
#~ msgid ""
-#~ "<literal>column_name</literal> (required): The name of the column holding "
-#~ "the collection index values."
-#~ msgstr "<literal>column</literal>(å¯é):ä¿åéåç´¢å¼å¼çåæ®µåã"
+#~ "<![CDATA[<map\n"
+#~ " name=\"propertyName\"\n"
+#~ " table=\"table_name\"\n"
+#~ " schema=\"schema_name\"\n"
+#~ " lazy=\"true|extra|false\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan"
+#~ "\"\n"
+#~ " sort=\"unsorted|natural|comparatorClass\"\n"
+#~ " order-by=\"column_name asc|desc\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " fetch=\"join|select|subselect\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <key .... />\n"
+#~ " <map-key .... />\n"
+#~ " <element .... />\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<map\n"
+#~ " name=\"propertyName\"\n"
+#~ " table=\"table_name\"\n"
+#~ " schema=\"schema_name\"\n"
+#~ " lazy=\"true|extra|false\"\n"
+#~ " inverse=\"true|false\"\n"
+#~ " cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan"
+#~ "\"\n"
+#~ " sort=\"unsorted|natural|comparatorClass\"\n"
+#~ " order-by=\"column_name asc|desc\"\n"
+#~ " where=\"arbitrary sql where condition\"\n"
+#~ " fetch=\"join|select|subselect\"\n"
+#~ " batch-size=\"N\"\n"
+#~ " access=\"field|property|ClassName\"\n"
+#~ " optimistic-lock=\"true|false\"\n"
+#~ " mutable=\"true|false\"\n"
+#~ " node=\"element-name|.\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ ">\n"
+#~ "\n"
+#~ " <key .... />\n"
+#~ " <map-key .... />\n"
+#~ " <element .... />\n"
+#~ "</map>]]>"
+#~ msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
+#~ msgstr "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"
+
#~ msgid ""
-#~ "<literal>base</literal> (optional, defaults to <literal>0</literal>): The "
-#~ "value of the index column that corresponds to the first element of the "
-#~ "list or array."
-#~ msgstr "<literal>formula</literal> (å¯é): ç¨äºè®¡ç®mapå
³é®åçSQLå
¬å¼"
+#~ "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection index values."
-#~ msgstr "<literal>type</literal> (å¿
é¡»):æ å°é®(map key)çç±»åã"
+#~ "<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area "
+#~ "id=\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA"
+#~ "[<list-index \n"
+#~ " column=\"column_name\"\n"
+#~ " base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
+#~ "arearefs=\"index1\"> <para> <literal>column_name</literal> (required): "
+#~ "the name of the column holding the collection index values. </para> </"
+#~ "callout> <callout arearefs=\"index1\"> <para> <literal>base</literal> "
+#~ "(optional - defaults to <literal>0</literal>): the value of the index "
+#~ "column that corresponds to the first element of the list or array. </"
+#~ "para> </callout> </calloutlist> </programlistingco> <programlistingco> "
+#~ "<areaspec> <area id=\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" "
+#~ "coords=\"3 45\"/> <area id=\"mapkey3\" coords=\"4 45\"/> </areaspec> "
+#~ "<programlisting><![CDATA[<map-key \n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " type=\"type_name\"\n"
+#~ " node=\"@attribute-name\"\n"
+#~ " length=\"N\"/>]]></programlisting> <calloutlist> <callout "
+#~ "arearefs=\"mapkey1\"> <para> <literal>column</literal> (optional): the "
+#~ "name of the column holding the collection index values. </para> </"
+#~ "callout> <callout arearefs=\"mapkey2\"> <para> <literal>formula</literal> "
+#~ "(optional): a SQL formula used to evaluate the key of the map. </para> </"
+#~ "callout> <callout arearefs=\"mapkey3\"> <para> <literal>type</literal> "
+#~ "(required): the type of the map keys. </para> </callout> </calloutlist> </"
+#~ "programlistingco> <programlistingco> <areaspec> <area id="
+#~ "\"indexmanytomany1\" coords=\"2 45\"/> <area id=\"indexmanytomany2\" "
+#~ "coords=\"3 45\"/> <area id=\"indexmanytomany3\" coords=\"3 45\"/> </"
+#~ "areaspec> <programlisting><![CDATA[<map-key-many-to-many\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " class=\"ClassName\"\n"
+#~ "/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1"
+#~ "\"> <para> <literal>column</literal> (optional): the name of the foreign "
+#~ "key column for the collection index values. </para> </callout> <callout "
+#~ "arearefs=\"indexmanytomany2\"> <para> <literal>formula</literal> "
+#~ "(optional): a SQ formula used to evaluate the foreign key of the map key. "
+#~ "</para> </callout> <callout arearefs=\"indexmanytomany3\"> <para> "
+#~ "<literal>class</literal> (required): the entity class used as the map "
+#~ "key. </para> </callout> </calloutlist> </programlistingco>"
+#~ msgstr ""
+#~ "<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area "
+#~ "id=\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA"
+#~ "[<list-index \n"
+#~ " column=\"column_name\"\n"
+#~ " base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout "
+#~ "arearefs=\"index1\"> <para> <literal>column_name</literal> (required): "
+#~ "the name of the column holding the collection index values. </para> </"
+#~ "callout> <callout arearefs=\"index1\"> <para> <literal>base</literal> "
+#~ "(optional - defaults to <literal>0</literal>): the value of the index "
+#~ "column that corresponds to the first element of the list or array. </"
+#~ "para> </callout> </calloutlist> </programlistingco> <programlistingco> "
+#~ "<areaspec> <area id=\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" "
+#~ "coords=\"3 45\"/> <area id=\"mapkey3\" coords=\"4 45\"/> </areaspec> "
+#~ "<programlisting><![CDATA[<map-key \n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " type=\"type_name\"\n"
+#~ " node=\"@attribute-name\"\n"
+#~ " length=\"N\"/>]]></programlisting> <calloutlist> <callout "
+#~ "arearefs=\"mapkey1\"> <para> <literal>column</literal> (optional): the "
+#~ "name of the column holding the collection index values. </para> </"
+#~ "callout> <callout arearefs=\"mapkey2\"> <para> <literal>formula</literal> "
+#~ "(optional): a SQL formula used to evaluate the key of the map. </para> </"
+#~ "callout> <callout arearefs=\"mapkey3\"> <para> <literal>type</literal> "
+#~ "(required): the type of the map keys. </para> </callout> </calloutlist> </"
+#~ "programlistingco> <programlistingco> <areaspec> <area id="
+#~ "\"indexmanytomany1\" coords=\"2 45\"/> <area id=\"indexmanytomany2\" "
+#~ "coords=\"3 45\"/> <area id=\"indexmanytomany3\" coords=\"3 45\"/> </"
+#~ "areaspec> <programlisting><![CDATA[<map-key-many-to-many\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " class=\"ClassName\"\n"
+#~ "/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1"
+#~ "\"> <para> <literal>column</literal> (optional): the name of the foreign "
+#~ "key column for the collection index values. </para> </callout> <callout "
+#~ "arearefs=\"indexmanytomany2\"> <para> <literal>formula</literal> "
+#~ "(optional): a SQ formula used to evaluate the foreign key of the map key. "
+#~ "</para> </callout> <callout arearefs=\"indexmanytomany3\"> <para> "
+#~ "<literal>class</literal> (required): the entity class used as the map "
+#~ "key. </para> </callout> </calloutlist> </programlistingco>"
#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "key of the map."
-#~ msgstr "<literal>column</literal>(å¯é):éåç´¢å¼å¼ä¸å¤é®å段çåç§°"
+#~ "<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> "
+#~ "<area id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords="
+#~ "\"4 50\"/> </areaspec> <programlisting><![CDATA[<element\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " type=\"typename\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> "
+#~ "<para> <literal>column</literal> (optional): the name of the column "
+#~ "holding the collection element values. </para> </callout> <callout "
+#~ "arearefs=\"element2b\"> <para> <literal>formula</literal> (optional): an "
+#~ "SQL formula used to evaluate the element. </para> </callout> <callout "
+#~ "arearefs=\"element3b\"> <para> <literal>type</literal> (required): the "
+#~ "type of the collection element. </para> </callout> </calloutlist> </"
+#~ "programlistingco> <para> A <emphasis>many-to-many association</emphasis> "
+#~ "is specified using the <literal><many-to-many></literal> element. </"
+#~ "para> <programlistingco> <areaspec> <area id=\"manytomany1\" coords=\"2 60"
+#~ "\"/> <area id=\"manytomany2\" coords=\"3 60\"/> <area id=\"manytomany3\" "
+#~ "coords=\"4 60\"/> <area id=\"manytomany4\" coords=\"5 60\"/> <area id="
+#~ "\"manytomany5\" coords=\"6 60\"/> <area id=\"manytomany6\" coords=\"7 60"
+#~ "\"/> <area id=\"manytomany7\" coords=\"8 60\"/> <area id=\"manytomany8\" "
+#~ "coords=\"9 60\"/> </areaspec> <programlisting><![CDATA[<many-to-many\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " fetch=\"select|join\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1"
+#~ "\"> <para> <literal>column</literal> (optional): the name of the element "
+#~ "foreign key column. </para> </callout> <callout arearefs=\"manytomany2\"> "
+#~ "<para> <literal>formula</literal> (optional): an SQL formula used to "
+#~ "evaluate the element foreign key value. </para> </callout> <callout "
+#~ "arearefs=\"manytomany3\"> <para> <literal>class</literal> (required): the "
+#~ "name of the associated class. </para> </callout> <callout arearefs="
+#~ "\"manytomany4\"> <para> <literal>fetch</literal> (optional - defaults to "
+#~ "<literal>join</literal>): enables outer-join or sequential select "
+#~ "fetching for this association. This is a special case; for full eager "
+#~ "fetching in a single <literal>SELECT</literal> of an entity and its many-"
+#~ "to-many relationships to other entities, you would enable <literal>join</"
+#~ "literal> fetching,not only of the collection itself, but also with this "
+#~ "attribute on the <literal><many-to-many></literal> nested element. "
+#~ "</para> </callout> <callout arearefs=\"manytomany5\"> <para> "
+#~ "<literal>unique</literal> (optional): enables the DDL generation of a "
+#~ "unique constraint for the foreign-key column. This makes the association "
+#~ "multiplicity effectively one-to-many. </para> </callout> <callout "
+#~ "arearefs=\"manytomany6\"> <para> <literal>not-found</literal> (optional - "
+#~ "defaults to <literal>exception</literal>): specifies how foreign keys "
+#~ "that reference missing rows will be handled: <literal>ignore</literal> "
+#~ "will treat a missing row as a null association. </para> </callout> "
+#~ "<callout arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> "
+#~ "(optional): the entity name of the associated class, as an alternative to "
+#~ "<literal>class</literal>. </para> </callout> <callout arearefs="
+#~ "\"manytomany8\"> <para> <literal>property-ref</literal> (optional): the "
+#~ "name of a property of the associated class that is joined to this foreign "
+#~ "key. If not specified, the primary key of the associated class is used. </"
+#~ "para> </callout> </calloutlist> </programlistingco>"
+#~ msgstr ""
+#~ "<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> "
+#~ "<area id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords="
+#~ "\"4 50\"/> </areaspec> <programlisting><![CDATA[<element\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " type=\"typename\"\n"
+#~ " length=\"L\"\n"
+#~ " precision=\"P\"\n"
+#~ " scale=\"S\"\n"
+#~ " not-null=\"true|false\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " node=\"element-name\"\n"
+#~ "/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> "
+#~ "<para> <literal>column</literal> (optional): the name of the column "
+#~ "holding the collection element values. </para> </callout> <callout "
+#~ "arearefs=\"element2b\"> <para> <literal>formula</literal> (optional): an "
+#~ "SQL formula used to evaluate the element. </para> </callout> <callout "
+#~ "arearefs=\"element3b\"> <para> <literal>type</literal> (required): the "
+#~ "type of the collection element. </para> </callout> </calloutlist> </"
+#~ "programlistingco> <para> A <emphasis>many-to-many association</emphasis> "
+#~ "is specified using the <literal><many-to-many></literal> element. </"
+#~ "para> <programlistingco> <areaspec> <area id=\"manytomany1\" coords=\"2 60"
+#~ "\"/> <area id=\"manytomany2\" coords=\"3 60\"/> <area id=\"manytomany3\" "
+#~ "coords=\"4 60\"/> <area id=\"manytomany4\" coords=\"5 60\"/> <area id="
+#~ "\"manytomany5\" coords=\"6 60\"/> <area id=\"manytomany6\" coords=\"7 60"
+#~ "\"/> <area id=\"manytomany7\" coords=\"8 60\"/> <area id=\"manytomany8\" "
+#~ "coords=\"9 60\"/> </areaspec> <programlisting><![CDATA[<many-to-many\n"
+#~ " column=\"column_name\"\n"
+#~ " formula=\"any SQL expression\"\n"
+#~ " class=\"ClassName\"\n"
+#~ " fetch=\"select|join\"\n"
+#~ " unique=\"true|false\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " property-ref=\"propertyNameFromAssociatedClass\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />]]></programlisting> <calloutlist> <callout arearefs=\"manytomany1"
+#~ "\"> <para> <literal>column</literal> (optional): the name of the element "
+#~ "foreign key column. </para> </callout> <callout arearefs=\"manytomany2\"> "
+#~ "<para> <literal>formula</literal> (optional): an SQL formula used to "
+#~ "evaluate the element foreign key value. </para> </callout> <callout "
+#~ "arearefs=\"manytomany3\"> <para> <literal>class</literal> (required): the "
+#~ "name of the associated class. </para> </callout> <callout arearefs="
+#~ "\"manytomany4\"> <para> <literal>fetch</literal> (optional - defaults to "
+#~ "<literal>join</literal>): enables outer-join or sequential select "
+#~ "fetching for this association. This is a special case; for full eager "
+#~ "fetching in a single <literal>SELECT</literal> of an entity and its many-"
+#~ "to-many relationships to other entities, you would enable <literal>join</"
+#~ "literal> fetching,not only of the collection itself, but also with this "
+#~ "attribute on the <literal><many-to-many></literal> nested element. "
+#~ "</para> </callout> <callout arearefs=\"manytomany5\"> <para> "
+#~ "<literal>unique</literal> (optional): enables the DDL generation of a "
+#~ "unique constraint for the foreign-key column. This makes the association "
+#~ "multiplicity effectively one-to-many. </para> </callout> <callout "
+#~ "arearefs=\"manytomany6\"> <para> <literal>not-found</literal> (optional - "
+#~ "defaults to <literal>exception</literal>): specifies how foreign keys "
+#~ "that reference missing rows will be handled: <literal>ignore</literal> "
+#~ "will treat a missing row as a null association. </para> </callout> "
+#~ "<callout arearefs=\"manytomany7\"> <para> <literal>entity-name</literal> "
+#~ "(optional): the entity name of the associated class, as an alternative to "
+#~ "<literal>class</literal>. </para> </callout> <callout arearefs="
+#~ "\"manytomany8\"> <para> <literal>property-ref</literal> (optional): the "
+#~ "name of a property of the associated class that is joined to this foreign "
+#~ "key. If not specified, the primary key of the associated class is used. </"
+#~ "para> </callout> </calloutlist> </programlistingco>"
-#~ msgid "<literal>type</literal> (reguired): The type of the map keys."
-#~ msgstr "<literal>formula</literal> (å¯é): ç¨äºè®¡ç®mapå
³é®åçå¤é®çSQLå
¬å¼"
+#~ msgid ""
+#~ "<![CDATA[<set name=\"names\" table=\"person_names\">\n"
+#~ " <key column=\"person_id\"/>\n"
+#~ " <element column=\"person_name\" type=\"string\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"names\" table=\"person_names\">\n"
+#~ " <key column=\"person_id\"/>\n"
+#~ " <element column=\"person_name\" type=\"string\"/>\n"
+#~ "</set>]]>"
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the foreign key column "
-#~ "for the collection index values."
-#~ msgstr "<literal>class</literal> (å¿
é):æ å°çé®(map key)使ç¨çå®ä½ç±»ã"
+#~ "<![CDATA[<bag name=\"sizes\" \n"
+#~ " table=\"item_sizes\" \n"
+#~ " order-by=\"size asc\">\n"
+#~ " <key column=\"item_id\"/>\n"
+#~ " <element column=\"size\" type=\"integer\"/>\n"
+#~ "</bag>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<bag name=\"sizes\" \n"
+#~ " table=\"item_sizes\" \n"
+#~ " order-by=\"size asc\">\n"
+#~ " <key column=\"item_id\"/>\n"
+#~ " <element column=\"size\" type=\"integer\"/>\n"
+#~ "</bag>]]>"
#~ msgid ""
-#~ "<literal>formula</literal> (optional): A SQL formula used to evaluate the "
-#~ "foreign key of the map key."
+#~ "<![CDATA[<array name=\"addresses\" \n"
+#~ " table=\"PersonAddress\" \n"
+#~ " cascade=\"persist\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <many-to-many column=\"addressId\" class=\"Address\"/>\n"
+#~ "</array>]]>"
#~ msgstr ""
-#~ "åè¥ä½ ç表没æä¸ä¸ªç´¢å¼å段,å½ä½ ä»ç¶å¸æä½¿ç¨<literal>List</literal>ä½ä¸ºå±æ§"
-#~ "ç±»å,ä½ åºè¯¥ææ¤å±æ§æ å°ä¸ºHibernate <emphasis><bag></emphasis>ã仿°"
-#~ "æ®åºä¸è·åçæ¶åï¼bagä¸ç»´æ¤å
¶é¡ºåºï¼ä½ä¹å¯éæ©æ§çè¿è¡æåºã"
+#~ "<![CDATA[<array name=\"addresses\" \n"
+#~ " table=\"PersonAddress\" \n"
+#~ " cascade=\"persist\">\n"
+#~ " <key column=\"personId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <many-to-many column=\"addressId\" class=\"Address\"/>\n"
+#~ "</array>]]>"
#~ msgid ""
-#~ "<literal>class</literal> (required): The entity class used as the map key."
+#~ "<![CDATA[<map name=\"holidays\" \n"
+#~ " table=\"holidays\" \n"
+#~ " schema=\"dbo\" \n"
+#~ " order-by=\"hol_name asc\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgstr ""
-#~ "ä»éåç±»å¯ä»¥äº§çå¾å¤§ä¸é¨åæ å°ï¼è¦çäºå¾å¤å¸¸è§çå
³ç³»æ¨¡åãæä»¬å»ºè®®ä½ è¯éª"
-#~ "schemaçæå·¥å
·ï¼æ¥ä½ä¼ä¸ä¸ä¸åçæ å°å£°ææ¯å¦ä½è¢«ç¿»è¯ä¸ºæ°æ®åºè¡¨çã"
+#~ "<![CDATA[<map name=\"holidays\" \n"
+#~ " table=\"holidays\" \n"
+#~ " schema=\"dbo\" \n"
+#~ " order-by=\"hol_name asc\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the column holding the "
-#~ "collection element values."
-#~ msgstr "<literal>type</literal> (å¿
é):éåå
ç´ çç±»å"
+#~ "<![CDATA[<list name=\"carComponents\" \n"
+#~ " table=\"CarComponents\">\n"
+#~ " <key column=\"carId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <composite-element class=\"CarComponent\">\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"type\"/>\n"
+#~ " <property name=\"serialNumber\" column=\"serialNum\"/>\n"
+#~ " </composite-element>\n"
+#~ "</list>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<list name=\"carComponents\" \n"
+#~ " table=\"CarComponents\">\n"
+#~ " <key column=\"carId\"/>\n"
+#~ " <list-index column=\"sortOrder\"/>\n"
+#~ " <composite-element class=\"CarComponent\">\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"type\"/>\n"
+#~ " <property name=\"serialNumber\" column=\"serialNum\"/>\n"
+#~ " </composite-element>\n"
+#~ "</list>]]>"
#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element."
+#~ "<![CDATA[<one-to-many \n"
+#~ " class=\"ClassName\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />]]>"
#~ msgstr ""
-#~ "<emphasis>å¤å¯¹å¤å
³è(many-to-many association)</emphasis> ä½¿ç¨ "
-#~ "<literal><many-to-many></literal>å
ç´ å®ä¹."
+#~ "<![CDATA[<one-to-many \n"
+#~ " class=\"ClassName\"\n"
+#~ " not-found=\"ignore|exception\"\n"
+#~ " entity-name=\"EntityName\"\n"
+#~ " node=\"element-name\"\n"
+#~ " embed-xml=\"true|false\"\n"
+#~ " />]]>"
#~ msgid ""
-#~ "<literal>type</literal> (required): The type of the collection element."
-#~ msgstr "<literal>column</literal>(å¯é): è¿ä¸ªå
ç´ çå¤é®å
³é®å段å"
+#~ "<![CDATA[<map name=\"parts\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"productId\" not-null=\"true\"/>\n"
+#~ " <map-key formula=\"partName\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<map name=\"parts\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"productId\" not-null=\"true\"/>\n"
+#~ " <map-key formula=\"partName\"/>\n"
+#~ " <one-to-many class=\"Part\"/>\n"
+#~ "</map>]]>"
#~ msgid ""
-#~ "A <emphasis>many-to-many association</emphasis> is specified using the "
-#~ "<literal><many-to-many></literal> element."
-#~ msgstr "<literal>formula</literal> (å¯é): ç¨äºè®¡ç®å
ç´ å¤é®å¼çSQLå
¬å¼."
+#~ "<![CDATA[<set name=\"aliases\" \n"
+#~ " table=\"person_aliases\" \n"
+#~ " sort=\"natural\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"aliases\" \n"
+#~ " table=\"person_aliases\" \n"
+#~ " sort=\"natural\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date\" type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgid ""
-#~ "<literal>column</literal> (optional): The name of the element foreign key "
-#~ "column."
-#~ msgstr "<literal>class</literal> (å¿
é): å
³èç±»çåç§°"
+#~ "<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
+#~ "(name) asc\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date type=\"date\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower"
+#~ "(name) asc\">\n"
+#~ " <key column=\"person\"/>\n"
+#~ " <element column=\"name\" type=\"string\"/>\n"
+#~ "</set>\n"
+#~ "\n"
+#~ "<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n"
+#~ " <key column=\"year_id\"/>\n"
+#~ " <map-key column=\"hol_name\" type=\"string\"/>\n"
+#~ " <element column=\"hol_date type=\"date\"/>\n"
+#~ "</map>]]>"
#~ msgid ""
-#~ "<literal>formula</literal> (optional): An SQL formula used to evaluate "
-#~ "the element foreign key value."
+#~ "<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this."
+#~ "name\" ).list();]]>"
#~ msgstr ""
-#~ "<literal>outer-join</literal> (å¯é - é»è®¤ä¸º<literal>auto</literal>): å¨"
-#~ "Hibernateç³»ç»åæ°ä¸<literal>hibernate.use_outer_join</literal>被æå¼çæ
åµ"
-#~ "ä¸,è¯¥åæ°ç¨æ¥å
许使ç¨outer joinæ¥è½½å
¥æ¤éåçæ°æ®ã"
+#~ "<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this."
+#~ "name\" ).list();]]>"
#~ msgid ""
-#~ "<literal>fetch</literal> (optional - defaults to <literal>join</"
-#~ "literal>): enables outer-join or sequential select fetching for this "
-#~ "association. This is a special case; for full eager fetching (in a single "
-#~ "<literal>SELECT</literal>) of an entity and its many-to-many "
-#~ "relationships to other entities, you would enable <literal>join</literal> "
-#~ "fetching not only of the collection itself, but also with this attribute "
-#~ "on the <literal><many-to-many></literal> nested element."
+#~ "<![CDATA[<class name=\"Category\">\n"
+#~ " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
+#~ " ...\n"
+#~ " <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
+#~ " <key column=\"CATEGORY_ID\"/>\n"
+#~ " <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Item\">\n"
+#~ " <id name=\"id\" column=\"ITEM_ID\"/>\n"
+#~ " ...\n"
+#~ "\n"
+#~ " <!-- inverse end -->\n"
+#~ " <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
+#~ " <key column=\"ITEM_ID\"/>\n"
+#~ " <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "对å¤é®å段å
许DDLçæçæ¶åçæä¸ä¸ªæä¸çº¦æãè¿ä½¿å
³èåæäºä¸ä¸ªé«æçä¸å¯¹"
-#~ "å¤å
³èãï¼æ¤å¥åçï¼åæä¸ºThis makes the association multiplicity "
-#~ "effectively one to many.)"
+#~ "<![CDATA[<class name=\"Category\">\n"
+#~ " <id name=\"id\" column=\"CATEGORY_ID\"/>\n"
+#~ " ...\n"
+#~ " <bag name=\"items\" table=\"CATEGORY_ITEM\">\n"
+#~ " <key column=\"CATEGORY_ID\"/>\n"
+#~ " <many-to-many class=\"Item\" column=\"ITEM_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Item\">\n"
+#~ " <id name=\"id\" column=\"ITEM_ID\"/>\n"
+#~ " ...\n"
+#~ "\n"
+#~ " <!-- inverse end -->\n"
+#~ " <bag name=\"categories\" table=\"CATEGORY_ITEM\" inverse=\"true\">\n"
+#~ " <key column=\"ITEM_ID\"/>\n"
+#~ " <many-to-many class=\"Category\" column=\"CATEGORY_ID\"/>\n"
+#~ " </bag>\n"
+#~ "</class>]]>"
#~ msgid ""
-#~ "<literal>unique</literal> (optional): Enable the DDL generation of a "
-#~ "unique constraint for the foreign-key column. This makes the association "
-#~ "multiplicity effectively one to many."
+#~ "<![CDATA[\n"
+#~ "category.getItems().add(item); // The category now \"knows\" "
+#~ "about the relationship\n"
+#~ "item.getCategories().add(category); // The item now \"knows\" about "
+#~ "the relationship\n"
+#~ "\n"
+#~ "session.persist(item); // The relationship won't be "
+#~ "saved!\n"
+#~ "session.persist(category); // The relationship will be "
+#~ "saved]]>"
#~ msgstr ""
-#~ "<literal>not-found</literal> (å¯é - é»è®¤ä¸º <literal>exception</"
-#~ "literal>): ææå¼ç¨çå¤é®ä¸ç¼ºå°æäºè¡è¯¥å¦ä½å¤çï¼ <literal>ignore</"
-#~ "literal> ä¼æç¼ºå¤±çè¡ä½ä¸ºä¸ä¸ªç©ºå¼ç¨å¤çã"
+#~ "<![CDATA[\n"
+#~ "category.getItems().add(item); // The category now \"knows\" "
+#~ "about the relationship\n"
+#~ "item.getCategories().add(category); // The item now \"knows\" about "
+#~ "the relationship\n"
+#~ "\n"
+#~ "session.persist(item); // The relationship won't be "
+#~ "saved!\n"
+#~ "session.persist(category); // The relationship will be "
+#~ "saved]]>"
#~ msgid ""
-#~ "<literal>not-found</literal> (optional - defaults to <literal>exception</"
-#~ "literal>): Specifies how foreign keys that reference missing rows will be "
-#~ "handled: <literal>ignore</literal> will treat a missing row as a null "
-#~ "association."
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "<literal>entity-name</literal> (å¯é): 被å
³èçç±»çå®ä½åï¼ä½ä¸º"
-#~ "<literal>class</literal>çæ¿ä»£ã"
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
#~ msgid ""
-#~ "<literal>property-ref</literal>: (optional) The name of a property of the "
-#~ "associated class that is joined to this foreign key. If not specified, "
-#~ "the primary key of the associated class is used."
-#~ msgstr "ä¾åï¼é¦å
, ä¸ç»å符串ï¼"
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\">\n"
+#~ " <key column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Parent\">\n"
+#~ " <id name=\"id\" column=\"parent_id\"/>\n"
+#~ " ....\n"
+#~ " <map name=\"children\">\n"
+#~ " <key column=\"parent_id\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"name\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </map>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Child\">\n"
+#~ " <id name=\"id\" column=\"child_id\"/>\n"
+#~ " ....\n"
+#~ " <many-to-one name=\"parent\" \n"
+#~ " class=\"Parent\" \n"
+#~ " column=\"parent_id\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<map name=\"contracts\">\n"
+#~ " <key column=\"employer_id\" not-null=\"true\"/>\n"
+#~ " <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
+#~ " <one-to-many class=\"Contract\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<map name=\"contracts\">\n"
+#~ " <key column=\"employer_id\" not-null=\"true\"/>\n"
+#~ " <map-key-many-to-many column=\"employee_id\" class=\"Employee\"/>\n"
+#~ " <one-to-many class=\"Contract\"/>\n"
+#~ "</map>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<map name=\"connections\">\n"
+#~ " <key column=\"incoming_node_id\"/>\n"
+#~ " <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
+#~ " <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
+#~ "</map>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<map name=\"connections\">\n"
+#~ " <key column=\"incoming_node_id\"/>\n"
+#~ " <map-key-many-to-many column=\"outgoing_node_id\" class=\"Node\"/>\n"
+#~ " <many-to-many column=\"connection_id\" class=\"Connection\"/>\n"
+#~ "</map>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
+#~ " <collection-id column=\"ID\" type=\"long\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </collection-id>\n"
+#~ " <key column=\"PERSON1\"/>\n"
+#~ " <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
+#~ "</idbag>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<idbag name=\"lovers\" table=\"LOVERS\">\n"
+#~ " <collection-id column=\"ID\" type=\"long\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </collection-id>\n"
+#~ " <key column=\"PERSON1\"/>\n"
+#~ " <many-to-many column=\"PERSON2\" class=\"Person\" fetch=\"join\"/>\n"
+#~ "</idbag>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "\n"
+#~ "public class Parent {\n"
+#~ " private long id;\n"
+#~ " private Set children;\n"
+#~ "\n"
+#~ " public long getId() { return id; }\n"
+#~ " private void setId(long id) { this.id=id; }\n"
+#~ "\n"
+#~ " private Set getChildren() { return children; }\n"
+#~ " private void setChildren(Set children) { this.children=children; }\n"
+#~ "\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "\n"
+#~ "public class Parent {\n"
+#~ " private long id;\n"
+#~ " private Set children;\n"
+#~ "\n"
+#~ " public long getId() { return id; }\n"
+#~ " private void setId(long id) { this.id=id; }\n"
+#~ "\n"
+#~ " private Set getChildren() { return children; }\n"
+#~ " private void setChildren(Set children) { this.children=children; }\n"
+#~ "\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255), "
+#~ "parent_id bigint )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255), "
+#~ "parent_id bigint )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id"
+#~ "\" not-null=\"true\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <many-to-one name=\"parent\" class=\"Parent\" column=\"parent_id"
+#~ "\" not-null=\"true\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null\n"
+#~ " primary key,\n"
+#~ " name varchar(255),\n"
+#~ " parent_id bigint not null )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null\n"
+#~ " primary key,\n"
+#~ " name varchar(255),\n"
+#~ " parent_id bigint not null )\n"
+#~ "alter table child add constraint childfk0 (parent_id) references parent]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" table=\"childset\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <many-to-many class=\"Child\" column=\"child_id\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Parent\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <set name=\"children\" table=\"childset\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <many-to-many class=\"Child\" column=\"child_id\"/>\n"
+#~ " </set>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Child\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255) )\n"
+#~ "create table childset ( parent_id bigint not null,\n"
+#~ " child_id bigint not null,\n"
+#~ " primary key ( parent_id, child_id ) )\n"
+#~ "alter table childset add constraint childsetfk0 (parent_id) references "
+#~ "parent\n"
+#~ "alter table childset add constraint childsetfk1 (child_id) references "
+#~ "child]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table parent ( id bigint not null primary key )\n"
+#~ "create table child ( id bigint not null primary key, name varchar(255) )\n"
+#~ "create table childset ( parent_id bigint not null,\n"
+#~ " child_id bigint not null,\n"
+#~ " primary key ( parent_id, child_id ) )\n"
+#~ "alter table childset add constraint childsetfk0 (parent_id) references "
+#~ "parent\n"
+#~ "alter table childset add constraint childsetfk1 (child_id) references "
+#~ "child]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/component_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/component_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/component_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,163 +1,82 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:36+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: component_mapping.xml:29
#, no-c-format
msgid "Component Mapping"
msgstr "ç»ä»¶ï¼Componentï¼æ å°"
#. Tag: para
-#: component_mapping.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The notion of a <emphasis>component</emphasis> is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
-"<emphasis>ç»ä»¶</emphasis>(Component)è¿ä¸ªæ¦å¿µå¨Hibernateä¸å å¤ä¸åçå°æ¹ä¸ºäºä¸"
-"åçç®ç被éå¤ä½¿ç¨."
+"<emphasis>ç»ä»¶ï¼Componentï¼</emphasis>è¿ä¸ªæ¦å¿µå¨ Hibernate ä¸å å¤ä¸åçå°æ¹ä¸º"
+"äºä¸åçç®ç被éå¤ä½¿ç¨ã"
#. Tag: title
-#: component_mapping.xml:37
#, no-c-format
msgid "Dependent objects"
msgstr "ä¾èµå¯¹è±¡ï¼Dependent objectsï¼"
#. Tag: para
-#: component_mapping.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
"notion of composition and not to architecture-level components. For example, "
"you can model a person like this:"
msgstr ""
-"ç»ä»¶(Component)æ¯ä¸ä¸ªè¢«å
å«ç对象ï¼å¨æä¹
åçè¿ç¨ä¸ï¼å®è¢«å½ä½å¼ç±»åï¼èå¹¶éä¸"
-"个å®ä½çå¼ç¨ãå¨è¿ç¯ææ¡£ä¸ï¼ç»ä»¶è¿ä¸æ¯è¯æçæ¯é¢å对象çåææ¦å¿µï¼è并䏿¯ç³»"
-"ç»ææ¶å±æ¬¡ä¸çç»ä»¶çæ¦å¿µï¼ã举个ä¾å, ä½ å¯¹äºº(Person)è¿ä¸ªæ¦å¿µå¯ä»¥åä¸é¢è¿æ ·æ¥"
-"建模ï¼"
+"ç»ä»¶ï¼Componentï¼æ¯ä¸ä¸ªè¢«å
å«ç对象ï¼å¨æä¹
åçè¿ç¨ä¸ï¼å®è¢«å½ä½å¼ç±»åï¼èå¹¶é"
+"ä¸ä¸ªå®ä½çå¼ç¨ãå¨è¿ç¯ææ¡£ä¸ï¼ç»ä»¶è¿ä¸æ¯è¯æçæ¯é¢å对象çåææ¦å¿µï¼è并䏿¯"
+"ç³»ç»ææ¶å±æ¬¡ä¸çç»ä»¶çæ¦å¿µï¼ã举个ä¾åï¼ä½ 对人ï¼Personï¼è¿ä¸ªæ¦å¿µå¯ä»¥åä¸é¢è¿"
+"æ ·æ¥å»ºæ¨¡ï¼ "
-#. Tag: programlisting
-#: component_mapping.xml:45
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-" private java.util.Date birthday;\n"
-" private Name name;\n"
-" private String key;\n"
-" public String getKey() {\n"
-" return key;\n"
-" }\n"
-" private void setKey(String key) {\n"
-" this.key=key;\n"
-" }\n"
-" public java.util.Date getBirthday() {\n"
-" return birthday;\n"
-" }\n"
-" public void setBirthday(java.util.Date birthday) {\n"
-" this.birthday = birthday;\n"
-" }\n"
-" public Name getName() {\n"
-" return name;\n"
-" }\n"
-" public void setName(Name name) {\n"
-" this.name = name;\n"
-" }\n"
-" ......\n"
-" ......\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: component_mapping.xml:47
-#, no-c-format
-msgid ""
-"<![CDATA[public class Name {\n"
-" char initial;\n"
-" String first;\n"
-" String last;\n"
-" public String getFirst() {\n"
-" return first;\n"
-" }\n"
-" void setFirst(String first) {\n"
-" this.first = first;\n"
-" }\n"
-" public String getLast() {\n"
-" return last;\n"
-" }\n"
-" void setLast(String last) {\n"
-" this.last = last;\n"
-" }\n"
-" public char getInitial() {\n"
-" return initial;\n"
-" }\n"
-" void setInitial(char initial) {\n"
-" this.initial = initial;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:49
-#, fuzzy, no-c-format
-msgid ""
"Now <literal>Name</literal> can be persisted as a component of "
"<literal>Person</literal>. <literal>Name</literal> defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
"interfaces or identifier properties."
msgstr ""
-"卿ä¹
åçè¿ç¨ä¸,<literal>å§å(Name)</literal>å¯ä»¥ä½ä¸º<literal>人(Person)</"
-"literal>çä¸ä¸ªç»ä»¶ãéè¦æ³¨æçæ¯:ä½ åºè¯¥ä¸º<literal>å§å</literal>çæä¹
å屿§"
-"å®ä¹getteråsetteræ¹æ³,使¯ä½ ä¸éè¦å®ç°ä»»ä½çæ¥å£æç³ææ è¯ç¬¦å段ã"
+"卿ä¹
åçè¿ç¨ä¸ï¼<literal>å§åï¼Nameï¼</literal>å¯ä»¥ä½ä¸º<literal>人"
+"ï¼Personï¼</literal>çä¸ä¸ªç»ä»¶ãéè¦æ³¨æçæ¯ï¼ä½ åºè¯¥ä¸º<literal>å§å</literal>"
+"çæä¹
å屿§å®ä¹ getter å setter æ¹æ³ï¼ä½æ¯ä½ ä¸éè¦å®ç°ä»»ä½çæ¥å£æç³ææ è¯"
+"ç¬¦åæ®µã "
#. Tag: para
-#: component_mapping.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Our Hibernate mapping would look like this:"
-msgstr "以䏿¯è¿ä¸ªä¾åçHibernateæ å°æä»¶:"
+msgstr "以䏿¯è¿ä¸ªä¾åç Hibernate æ å°æä»¶ï¼ "
-#. Tag: programlisting
-#: component_mapping.xml:60
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
-"optional -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:62
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid</literal>, "
"<literal>birthday</literal>, <literal>initial</literal>, <literal>first</"
"literal> and <literal>last</literal>."
msgstr ""
-"人å(Person)表ä¸å°å
æ¬<literal>pid</literal>, <literal>birthday</literal>, "
-"<literal>initial</literal>, <literal>first</literal>å <literal>last</"
-"literal>çåæ®µã"
+"人åï¼Personï¼è¡¨ä¸å°å
æ¬ <literal>pid</literal>ï¼<literal>birthday</"
+"literal>ï¼<literal>initial</literal>ï¼<literal>first</literal>å "
+"<literal>last</literal> çåæ®µã"
#. Tag: para
-#: component_mapping.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
@@ -167,64 +86,41 @@
"if all component columns are null, then the entire component is null. This "
"is suitable for most purposes."
msgstr ""
-"就忿çå¼ç±»å䏿 ·, ç»ä»¶ä¸æ¯æå
±äº«å¼ç¨ã æ¢å¥è¯è¯´ï¼ä¸¤ä¸ªäººå¯è½éåï¼ä½æ¯ä¸¤ä¸ª"
-"Person对象åºè¯¥å
å«ä¸¤ä¸ªç¬ç«çName对象ï¼åªä¸è¿è¿ä¸¤ä¸ªName对象å
·æâåæ ·âçå¼ã ç»"
-"ä»¶çå¼å¯ä»¥ä¸ºç©ºï¼å
¶å®ä¹å¦ä¸ã æ¯å½Hibernateéæ°å è½½ä¸ä¸ªå
å«ç»ä»¶ç对象,å¦æè¯¥ç»"
-"ä»¶çææåæ®µä¸ºç©ºï¼Hibernateå°å宿´ä¸ªç»ä»¶ä¸ºç©ºã å¨å¤§å¤æ°æ
åµä¸,è¿æ ·åå®åºè¯¥æ¯"
-"没æé®é¢çã"
+"就忿çå¼ç±»å䏿 ·ï¼ç»ä»¶ä¸æ¯æå
±äº«å¼ç¨ãæ¢å¥è¯è¯´ï¼ä¸¤ä¸ªäººå¯è½éåï¼ä½æ¯ä¸¤ä¸ª "
+"Person 对象åºè¯¥å
å«ä¸¤ä¸ªç¬ç«ç Name 对象ï¼åªä¸è¿è¿ä¸¤ä¸ª Name 对象å
·æâåæ ·âç"
+"å¼ãç»ä»¶çå¼å¯ä»¥ä¸ºç©ºï¼å
¶å®ä¹å¦ä¸ã æ¯å½ Hibernate éæ°å è½½ä¸ä¸ªå
å«ç»ä»¶ç对"
+"象ï¼å¦æè¯¥ç»ä»¶çææå段为空ï¼Hibernate å°å宿´ä¸ªç»ä»¶ä¸ºç©ºãå¨å¤§å¤æ°æ
åµä¸ï¼"
+"è¿æ ·åå®åºè¯¥æ¯æ²¡æé®é¢çã"
#. Tag: para
-#: component_mapping.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
"<emphasis>not</emphasis> be considered an exotic usage. Hibernate is "
"intended to support a fine-grained object model."
msgstr ""
-"ç»ä»¶ç屿§å¯ä»¥æ¯ä»»æä¸ç§Hibernateç±»åï¼å
æ¬éå, å¤å¯¹å¤å
³èï¼ ä»¥åå
¶å®ç»ä»¶ç"
-"çï¼ãåµå¥ç»ä»¶ä¸åºè¯¥è¢«å½ä½ä¸ç§ç¹æ®çåºç¨(Nested components should not be "
-"considered an exotic usage)ã Hibernateå¾åäºæ¯æç»è´ç(fine-grained)对象模"
-"åã"
+"ç»ä»¶ç屿§å¯ä»¥æ¯ä»»æä¸ç§ Hibernate ç±»åï¼å
æ¬éåï¼å¤å¯¹å¤å
³èï¼ä»¥åå
¶å®ç»ä»¶ç"
+"çï¼ãåµå¥ç»ä»¶ä¸åºè¯¥è¢«å½ä½ä¸ç§ç¹æ®çåºç¨ï¼Nested components should not be "
+"considered an exotic usageï¼ãHibernate å¾åäºæ¯æç»é¢ç²åº¦çï¼fine-grainedï¼"
+"对象模åã"
#. Tag: para
-#: component_mapping.xml:85
#, no-c-format
msgid ""
"The <literal><component></literal> element allows a <literal><"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
-"<literal><component></literal> å
ç´ è¿å
许æ <literal><parent></"
-"literal>åå
ç´ ï¼ç¨æ¥è¡¨æcomponentç±»ä¸çä¸ä¸ªå±æ§æ¯æåå
å«å®çå®ä½çå¼ç¨ã"
+"<literal><component></literal> å
ç´ å
许å å
¥ä¸ä¸ª <literal><parent>"
+"</literal> åå
ç´ ï¼å¨ç»ä»¶ç±»å
é¨å°±å¯ä»¥æä¸ä¸ªæåå
¶å®¹å¨çå®ä½çååå¼ç¨ã"
-#. Tag: programlisting
-#: component_mapping.xml:91
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
-" <id name=\"Key\" column=\"pid\" type=\"string\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" <property name=\"birthday\" type=\"date\"/>\n"
-" <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
-" <parent name=\"namedPerson\"/> <!-- reference back to the Person --"
-">\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </component>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:96
#, no-c-format
msgid "Collections of dependent objects"
-msgstr "å¨éåä¸åºç°çä¾èµå¯¹è±¡ (Collections of dependent objects)"
+msgstr "å¨éåä¸åºç°çä¾èµå¯¹è±¡ï¼Collections of dependent objectsï¼"
#. Tag: para
-#: component_mapping.xml:98
#, fuzzy, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
@@ -232,38 +128,22 @@
"<literal><element></literal> tag with a <literal><composite-"
"element></literal> tag:"
msgstr ""
-"Hibernateæ¯æç»ä»¶çéå(ä¾å¦: ä¸ä¸ªå
ç´ æ¯å§å(Name)è¿ç§ç±»åçæ°ç»)ã ä½ å¯ä»¥ä½¿"
-"ç¨<literal><composite-element></literal>æ ç¾æ¿ä»£<literal><"
-"element></literal>æ ç¾æ¥å®ä¹ä½ çç»ä»¶éåã"
+"Hibernate æ¯æç»ä»¶çéåï¼ä¾å¦ï¼ä¸ä¸ªå
ç´ æ¯å§åï¼Nameï¼è¿ç§ç±»åçæ°ç»ï¼ãä½ å¯"
+"ä»¥ä½¿ç¨ <literal><composite-element></literal> æ ç¾æ¿ä»£ <literal><"
+"element></literal> æ ç¾æ¥å®ä¹ä½ çç»ä»¶éåã"
-#. Tag: programlisting
-#: component_mapping.xml:105
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
-" <key column=\"id\"/>\n"
-" <composite-element class=\"eg.Name\"> <!-- class attribute required -->\n"
-" <property name=\"initial\"/>\n"
-" <property name=\"first\"/>\n"
-" <property name=\"last\"/>\n"
-" </composite-element>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:108
-#, fuzzy, no-c-format
-msgid ""
"If you define a <literal>Set</literal> of composite elements, it is "
"important to implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> correctly."
msgstr ""
-"注æï¼å¦æä½ å®ä¹çSetå
å«ç»åå
ç´ (composite-element)ï¼æ£ç¡®å°å®ç°"
-"<literal>equals()</literal>å<literal>hashCode()</literal>æ¯é常éè¦çã"
+"注æï¼å¦æä½ å®ä¹ç Set å
å«ç»åå
ç´ ï¼composite-elementï¼ï¼æ£ç¡®å°å®ç° "
+"<literal>equals()</literal> å <literal>hashCode()</literal> æ¯é常éè¦çã "
#. Tag: para
-#: component_mapping.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
@@ -273,16 +153,15 @@
"but be aware that even though the Java model is the same, the relational "
"model and persistence semantics are still slightly different."
msgstr ""
-"ç»åå
ç´ å¯ä»¥å
å«ç»ä»¶ï¼ä½æ¯ä¸è½å
å«éåãå¦æä½ çç»åå
ç´ èªèº«å
å«ç»ä»¶, ä½ å¿
é¡»"
-"使ç¨<literal><nested-composite-element></literal>æ ç¾ãè¿æ¯ä¸ä¸ªç¸å½ç¹æ®"
-"çæ¡ä¾ - å¨ä¸ä¸ªç»ä»¶çéåéï¼é£äºç»ä»¶æ¬èº«åå¯ä»¥å
å«å
¶ä»çç»ä»¶ãè¿ä¸ªæ¶åä½ å°±åº"
-"该èèä¸ä¸ä½¿ç¨one-to-manyå
³èæ¯å¦ä¼æ´æ°å½ã å°è¯å¯¹è¿ä¸ªç»åå
ç´ éæ°å»ºæ¨¡ä¸ºä¸ä¸ª"
-"å®ä½ï¼ä½æ¯éè¦æ³¨æçæ¯ï¼è½ç¶Java模ååéæ°å»ºæ¨¡åæ¯ä¸æ ·çï¼å
³ç³»æ¨¡ååæä¹
æ§è¯"
-"ä¹ä¼æç»å¾®çååã"
+"ç»åå
ç´ å¯ä»¥å
å«ç»ä»¶ï¼ä½æ¯ä¸è½å
å«éåãå¦æä½ çç»åå
ç´ èªèº«å
å«ç»ä»¶ï¼ä½ å¿
é¡»"
+"ä½¿ç¨ <literal><nested-composite-element></literal> æ ç¾ãè¿æ¯ä¸ä¸ªç¸å½ç¹"
+"æ®çæ¡ä¾ â å¨ä¸ä¸ªç»ä»¶çéåéï¼é£äºç»ä»¶æ¬èº«åå¯ä»¥å
å«å
¶ä»çç»ä»¶ãè¿ä¸ªæ¶åä½ å°±"
+"åºè¯¥èèä¸ä¸ä½¿ç¨ one-to-many å
³èæ¯å¦ä¼æ´æ°å½ãå°è¯å¯¹è¿ä¸ªç»åå
ç´ éæ°å»ºæ¨¡ä¸ºä¸"
+"个å®ä½ â 使¯éè¦æ³¨æçæ¯ï¼è½ç¶ Java 模ååéæ°å»ºæ¨¡åæ¯ä¸æ ·çï¼å
³ç³»æ¨¡ååæä¹
"
+"æ§è¯ä¹ä¼æç»å¾®çååã "
#. Tag: para
-#: component_mapping.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set></literal>. There is no separate primary key "
@@ -292,17 +171,16 @@
"element or choose a <literal><list></literal>, <literal><map></"
"literal>, <literal><bag></literal> or <literal><idbag></literal>."
msgstr ""
-"请注æå¦æä½ 使ç¨<literal><set></literal>æ ç¾,ä¸ä¸ªç»åå
ç´ çæ å°ä¸æ¯æå¯"
-"è½ä¸ºç©ºç屿§. å½å é¤å¯¹è±¡æ¶ï¼ Hibernateå¿
é¡»ä½¿ç¨æ¯ä¸ä¸ªå段ç弿¥ç¡®å®ä¸æ¡è®°å½(å¨"
-"ç»åå
ç´ è¡¨ä¸ï¼æ²¡æåç¬çå
³é®å段)ï¼ å¦ææä¸ºnullçåæ®µï¼è¿æ ·åå°±ä¸å¯è½äºãä½ "
-"å¿
é¡»ä½åºä¸ä¸ªéæ©ï¼è¦ä¹å¨ç»åå
ç´ ä¸ä½¿ç¨ä¸è½ä¸ºç©ºç屿§ï¼è¦ä¹éæ©ä½¿ç¨"
-"<literal><list></literal>,<literal><map></literal>,<literal><"
-"bag></literal> æè
<literal><idbag></literal>è䏿¯ <literal><"
-"set></literal>ã"
+"请注æå¦æä½ ä½¿ç¨ <literal><set></literal> æ ç¾ï¼ä¸ä¸ªç»åå
ç´ çæ å°ä¸æ¯"
+"æå¯è½ä¸ºç©ºç屿§. å½å é¤å¯¹è±¡æ¶ï¼Hibernate å¿
é¡»ä½¿ç¨æ¯ä¸ä¸ªå段ç弿¥ç¡®å®ä¸æ¡è®°"
+"å½ï¼å¨ç»åå
ç´ è¡¨ä¸ï¼æ²¡æåç¬çå
³é®å段ï¼ï¼å¦ææä¸º null çåæ®µï¼è¿æ ·åå°±ä¸å¯"
+"è½äºãä½ å¿
é¡»ä½åºä¸ä¸ªéæ©ï¼è¦ä¹å¨ç»åå
ç´ ä¸ä½¿ç¨ä¸è½ä¸ºç©ºç屿§ï¼è¦ä¹éæ©ä½¿ç¨ "
+"<literal><list></literal>ï¼<literal><map></literal>ï¼"
+"<literal><bag></literal> æè
<literal><idbag></literal> è䏿¯ "
+"<literal><set></literal>ã "
#. Tag: para
-#: component_mapping.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one></literal> element. This mapping allows you to "
@@ -313,155 +191,106 @@
"<literal>quantity</literal> are properties of the association:"
msgstr ""
"ç»åå
ç´ æä¸ªç¹å«çç¨æ³æ¯å®å¯ä»¥å
å«ä¸ä¸ª<literal><many-to-one></literal>"
-"å
ç´ ãç±»ä¼¼è¿æ ·çæ å°å
è®¸ä½ å°ä¸ä¸ªmany-to-manyå
³è表æ å°ä¸ºç»åå
ç´ çéåã(A "
-"mapping like this allows you to map extra columns of a many-to-many "
-"association table to the composite element class.) æ¥ä¸æ¥ççä¾åæ¯ä»"
-"<literal>Order</literal>å°<literal>Item</literal>çä¸ä¸ªå¤å¯¹å¤çå
³èå
³ç³», å
³è"
-"屿§æ¯ <literal>purchaseDate</literal>, <literal>price</literal> å "
-"<literal>quantity</literal> ã"
+"å
ç´ ãç±»ä¼¼è¿æ ·çæ å°å
è®¸ä½ å°ä¸ä¸ª many-to-many å
³è表çé¢å¤å段æ å°ä¸ºç»åå
ç´ "
+"ç±»ãæ¥ä¸æ¥ççä¾åæ¯ä» <literal>Order</literal> å° <literal>Item</literal> ç"
+"ä¸ä¸ªå¤å¯¹å¤çå
³èå
³ç³»ï¼å
³è屿§æ¯ <literal>purchaseDate</literal>ï¼"
+"<literal>price</literal> å <literal>quantity</literal> ã "
-#. Tag: programlisting
-#: component_mapping.xml:148
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.Purchase\">\n"
-" <property name=\"purchaseDate\"/>\n"
-" <property name=\"price\"/>\n"
-" <property name=\"quantity\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
-"attribute is optional -->\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:150
-#, fuzzy, no-c-format
-msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase</literal> can be in the "
"set of an <literal>Order</literal>, but it cannot be referenced by the "
"<literal>Item</literal> at the same time."
msgstr ""
-"å½ç¶ï¼å½ä½ å®ä¹Itemæ¶ï¼ä½ æ æ³å¼ç¨è¿äºpurchaseï¼å æ¤ä½ æ æ³å®ç°ååå
³èæ¥è¯¢ãè®°"
-"ä½ç»ä»¶æ¯å¼ç±»åï¼å¹¶ä¸ä¸å
许å
±äº«å¼ç¨ãæä¸ä¸ªç¹å®ç<literal>Purchase</literal> "
-"å¯ä»¥æ¾å¨<literal>Order</literal>çéåä¸ï¼ä½å®ä¸è½åæ¶è¢«<literal>Item</"
-"literal>æå¼ç¨ã"
+"å½ç¶ï¼å½ä½ å®ä¹ Item æ¶ï¼ä½ æ æ³å¼ç¨è¿äº purchaseï¼å æ¤ä½ æ æ³å®ç°ååå
³èæ¥è¯¢ã"
+"è®°ä½ç»ä»¶æ¯å¼ç±»åï¼å¹¶ä¸ä¸å
许å
±äº«å¼ç¨ãæä¸ä¸ªç¹å®ç <literal>Purchase</"
+"literal> å¯ä»¥æ¾å¨ <literal>Order</literal> çéåä¸ï¼ä½å®ä¸è½åæ¶è¢« "
+"<literal>Item</literal> æå¼ç¨ã "
#. Tag: para
-#: component_mapping.xml:158
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "å
¶å®ç»åå
ç´ çè¿ä¸ªç¨æ³å¯ä»¥æ©å±å°ä¸éæå¤éå
³è:"
-#. Tag: programlisting
-#: component_mapping.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"eg.Order\" .... >\n"
-" ....\n"
-" <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
-" <key column=\"order_id\">\n"
-" <composite-element class=\"eg.OrderLine\">\n"
-" <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
-" <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:162
-#, fuzzy, no-c-format
-msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
-msgstr "卿¥è¯¢ä¸ï¼è¡¨è¾¾ç»åå
ç´ çè¯æ³åå
³èå°å
¶ä»å®ä½çè¯æ³æ¯ä¸æ ·çã"
+msgstr "卿¥è¯¢ä¸ï¼è¡¨è¾¾ç»åå
ç´ çè¯æ³åå
³èå°å
¶ä»å®ä½çè¯æ³æ¯ä¸æ ·çã "
#. Tag: title
-#: component_mapping.xml:170
#, no-c-format
msgid "Components as Map indices"
-msgstr "ç»ä»¶ä½ä¸ºMapçç´¢å¼ï¼Components as Map indices ï¼"
+msgstr "ç»ä»¶ä½ä¸º Map çç´¢å¼ï¼Components as Map indices ï¼"
#. Tag: para
-#: component_mapping.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal><composite-map-key></literal> element allows you to map a "
"component class as the key of a <literal>Map</literal>. Ensure that you "
"override <literal>hashCode()</literal> and <literal>equals()</literal> "
"correctly on the component class."
msgstr ""
-"<literal><composite-map-key></literal>å
ç´ å
è®¸ä½ æ å°ä¸ä¸ªç»ä»¶ç±»ä½ä¸ºä¸ä¸ª"
-"<literal>Map</literal>çkeyï¼åææ¯ä½ å¿
é¡»æ£ç¡®çå¨è¿ä¸ªç±»ä¸éåäº"
-"<literal>hashCode()</literal> å <literal>equals()</literal>æ¹æ³ã"
+"<literal><composite-map-key></literal> å
ç´ å
è®¸ä½ æ å°ä¸ä¸ªç»ä»¶ç±»ä½ä¸ºä¸"
+"个 <literal>Map</literal> ç keyï¼åææ¯ä½ å¿
é¡»æ£ç¡®çå¨è¿ä¸ªç±»ä¸éåäº "
+"<literal>hashCode()</literal> å <literal>equals()</literal> æ¹æ³ã "
#. Tag: title
-#: component_mapping.xml:181
#, no-c-format
msgid "Components as composite identifiers"
-msgstr "ç»ä»¶ä½ä¸ºèåæ è¯ç¬¦(Components as composite identifiers)"
+msgstr "ç»ä»¶ä½ä¸ºèåæ è¯ç¬¦ï¼Components as composite identifiersï¼"
#. Tag: para
-#: component_mapping.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨ä¸ä¸ªç»ä»¶ä½ä¸ºä¸ä¸ªå®ä½ç±»çæ è¯ç¬¦ã ä½ çç»ä»¶ç±»å¿
须满足以ä¸è¦æ±ï¼"
+"ä½ å¯ä»¥ä½¿ç¨ä¸ä¸ªç»ä»¶ä½ä¸ºä¸ä¸ªå®ä½ç±»çæ è¯ç¬¦ãä½ çç»ä»¶ç±»å¿
须满足以ä¸è¦æ±ï¼ "
#. Tag: para
-#: component_mapping.xml:190
#, no-c-format
msgid "It must implement <literal>java.io.Serializable</literal>."
-msgstr "å®å¿
é¡»å®ç°<literal>java.io.Serializable</literal>æ¥å£"
+msgstr "å®å¿
é¡»å®ç° <literal>java.io.Serializable</literal> æ¥å£"
#. Tag: para
-#: component_mapping.xml:195
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It must re-implement <literal>equals()</literal> and <literal>hashCode()</"
"literal> consistently with the database's notion of composite key equality."
msgstr ""
-"å®å¿
须鿰å®ç°<literal>equals()</literal>å<literal>hashCode()</literal>æ¹"
-"æ³, å§ç»åç»åå
³é®å卿°æ®åºä¸çæ¦å¿µä¿æä¸è´"
+"å®å¿
须鿰å®ç° <literal>equals()</literal> å <literal>hashCode()</literal> "
+"æ¹æ³ï¼å§ç»åç»åå
³é®å卿°æ®åºä¸çæ¦å¿µä¿æä¸è´ "
#. Tag: title
-#: component_mapping.xml:204
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
#. Tag: para
-#: component_mapping.xml:205
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
-"注æï¼å¨Hibernate3ä¸ï¼ç¬¬äºä¸ªè¦æ±å¹¶éæ¯Hibernate强å¶å¿
é¡»çãä½æå¥½è¿æ ·åã"
+"注æï¼å¨ Hibernate3 ä¸ï¼ç¬¬äºä¸ªè¦æ±å¹¶éæ¯ Hibernate 强å¶å¿
é¡»çãä½æå¥½è¿æ ·"
+"åã "
#. Tag: para
-#: component_mapping.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator</literal> to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
-"ä½ ä¸è½ä½¿ç¨ä¸ä¸ª<literal>IdentifierGenerator</literal>产çç»åå
³é®åãä¸ä¸ªåºç¨"
-"ç¨åºå¿
é¡»åé
å®èªå·±çæ è¯ç¬¦ã"
+"ä½ ä¸è½ä½¿ç¨ä¸ä¸ª <literal>IdentifierGenerator</literal> 产çç»åå
³é®åãä¸ä¸ªåº"
+"ç¨ç¨åºå¿
é¡»åé
å®èªå·±çæ è¯ç¬¦ã "
#. Tag: para
-#: component_mapping.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use the <literal><composite-id></literal> tag, with nested "
"<literal><key-property></literal> elements, in place of the usual "
@@ -469,177 +298,76 @@
"<literal>OrderLine</literal> class has a primary key that depends upon the "
"(composite) primary key of <literal>Order</literal>."
msgstr ""
-"使ç¨<literal><composite-id></literal> æ ç¾(å¹¶ä¸å
åµ<literal><key-"
-"property></literal>å
ç´ )代æ¿é常ç<literal><id></literal>æ ç¾ãæ¯å¦,"
-"<literal>OrderLine</literal>ç±»å
·æä¸ä¸ªä¸»é®ï¼è¿ä¸ªä¸»é®ä¾èµäº<literal>Order</"
-"literal>ç(èå)主é®ã"
+"ä½¿ç¨ <literal><composite-id></literal> æ ç¾ï¼å¹¶ä¸å
åµ <literal><key-"
+"property></literal> å
ç´ ï¼ä»£æ¿é常ç <literal><id></literal> æ ç¾ã"
+"æ¯å¦ï¼<literal>OrderLine</literal> ç±»å
·æä¸ä¸ªä¸»é®ï¼è¿ä¸ªä¸»é®ä¾èµäº "
+"<literal>Order</literal> çï¼èåï¼ä¸»é®ã "
-#. Tag: programlisting
-#: component_mapping.xml:224
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-"\n"
-" <composite-id name=\"id\" class=\"OrderLineId\">\n"
-" <key-property name=\"lineId\"/>\n"
-" <key-property name=\"orderId\"/>\n"
-" <key-property name=\"customerId\"/>\n"
-" </composite-id>\n"
-"\n"
-" <property name=\"name\"/>\n"
-"\n"
-" <many-to-one name=\"order\" class=\"Order\"\n"
-" insert=\"false\" update=\"false\">\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-one>\n"
-" ....\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:226
-#, fuzzy, no-c-format
-msgid ""
"Any foreign keys referencing the <literal>OrderLine</literal> table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine</literal> is mapped like this:"
msgstr ""
-"ç°å¨ï¼ä»»ä½æå<literal>OrderLine</literal>çå¤é®é½æ¯å¤åçãå¨ä½ çæ å°æä»¶"
-"ä¸ï¼å¿
须为å
¶ä»ç±»ä¹è¿æ ·å£°æãä¾å¦ï¼ä¸ä¸ªæå<literal>OrderLine</literal>çå
³è"
-"å¯è½è¢«è¿æ ·æ å°ï¼"
+"ç°å¨ï¼ä»»ä½æå <literal>OrderLine</literal> çå¤é®é½æ¯å¤åçãå¨ä½ çæ å°æä»¶"
+"ä¸ï¼å¿
须为å
¶ä»ç±»ä¹è¿æ ·å£°æãä¾å¦ï¼ä¸ä¸ªæå <literal>OrderLine</literal> çå
³"
+"èå¯è½è¢«è¿æ ·æ å°ï¼ "
-#. Tag: programlisting
-#: component_mapping.xml:232
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
-"<!-- the \"class\" attribute is optional, as usual -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-"</many-to-one>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:235
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>column</literal> element is an alternative to the "
"<literal>column</literal> attribute everywhere. Using the <literal>column</"
"literal> element just gives more declaration options, which are mostly "
"useful when utilizing <literal>hbm2ddl</literal>"
msgstr ""
+"ï¼æ³¨æå¨åä¸ªå°æ¹ <literal><column></literal> æ ç¾é½æ¯ <literal>column</"
+"literal> 屿§çæ¿ä»£åæ³ãï¼ "
#. Tag: para
-#: component_mapping.xml:244
#, no-c-format
msgid ""
"A <literal>many-to-many</literal> association to <literal>OrderLine</"
"literal> also uses the composite foreign key:"
msgstr ""
-"æå<literal>OrderLine</literal>ç<literal>å¤å¯¹å¤</literal>å
³èä¹ä½¿ç¨èåå¤"
-"é®:"
+"æå <literal>OrderLine</literal> ç<literal>å¤å¯¹å¤</literal>å
³èä¹ä½¿ç¨èåå¤"
+"é®ï¼"
-#. Tag: programlisting
-#: component_mapping.xml:249
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"undeliveredOrderLines\">\n"
-" <key column name=\"warehouseId\"/>\n"
-" <many-to-many class=\"OrderLine\">\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </many-to-many>\n"
-"</set>]]>"
-msgstr ""
-
#. Tag: para
-#: component_mapping.xml:251
#, no-c-format
msgid ""
"The collection of <literal>OrderLine</literal>s in <literal>Order</literal> "
"would use:"
msgstr ""
-"å¨<literal>Order</literal>ä¸,<literal>OrderLine</literal>çéååæ¯è¿æ ·:"
+"å¨ <literal>Order</literal> ä¸ï¼<literal>OrderLine</literal> çéå忝è¿"
+"æ ·ï¼ "
-#. Tag: programlisting
-#: component_mapping.xml:256
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
-" <key>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <one-to-many class=\"OrderLine\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:258
-#, fuzzy, no-c-format
msgid "The <literal><one-to-many></literal> element declares no columns."
-msgstr "(ä¸é叏䏿 ·,<literal><one-to-many></literal>å
ç´ ä¸å£°æä»»ä½å.)"
+msgstr "ä¸é叏䏿 ·ï¼<literal><one-to-many></literal> å
ç´ ä¸å£°æä»»ä½åã"
#. Tag: para
-#: component_mapping.xml:262
#, no-c-format
msgid ""
"If <literal>OrderLine</literal> itself owns a collection, it also has a "
"composite foreign key."
-msgstr "åè¥<literal>OrderLine</literal>æ¬èº«æ¥æä¸ä¸ªéå,å®ä¹å
·æç»åå¤é®ã"
+msgstr "åè¥ <literal>OrderLine</literal> æ¬èº«æ¥æä¸ä¸ªéåï¼å®ä¹å
·æç»åå¤é®ã"
-#. Tag: programlisting
-#: component_mapping.xml:267
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"OrderLine\">\n"
-" ....\n"
-" ....\n"
-" <list name=\"deliveryAttempts\">\n"
-" <key> <!-- a collection inherits the composite key type -->\n"
-" <column name=\"lineId\"/>\n"
-" <column name=\"orderId\"/>\n"
-" <column name=\"customerId\"/>\n"
-" </key>\n"
-" <list-index column=\"attemptId\" base=\"1\"/>\n"
-" <composite-element class=\"DeliveryAttempt\">\n"
-" ...\n"
-" </composite-element>\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: component_mapping.xml:272
#, no-c-format
msgid "Dynamic components"
-msgstr "卿ç»ä»¶ ï¼Dynamic componentsï¼"
+msgstr "卿ç»ä»¶ï¼Dynamic componentsï¼"
#. Tag: para
-#: component_mapping.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can also map a property of type <literal>Map</literal>:"
-msgstr "ä½ çè³å¯ä»¥æ å°<literal>Map</literal>ç±»åç屿§ï¼"
+msgstr "ä½ çè³å¯ä»¥æ å° <literal>Map</literal> ç±»åç屿§ï¼ "
-#. Tag: programlisting
-#: component_mapping.xml:278
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<dynamic-component name=\"userAttributes\">\n"
-" <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
-" <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
-" <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
-"</dynamic-component>]]>"
-msgstr ""
-
-#. Tag: para
-#: component_mapping.xml:280
-#, fuzzy, no-c-format
-msgid ""
"The semantics of a <literal><dynamic-component></literal> mapping are "
"identical to <literal><component></literal>. The advantage of this "
"kind of mapping is the ability to determine the actual properties of the "
@@ -648,15 +376,387 @@
"You can also access, and change, Hibernate's configuration-time metamodel "
"via the <literal>Configuration</literal> object."
msgstr ""
-"ä»<literal><dynamic-component></literal>æ å°çè¯ä¹ä¸æ¥è®²ï¼å®å"
-"<literal><component></literal>æ¯ç¸åçã è¿ç§æ å°ç±»åçä¼ç¹å¨äºéè¿ä¿®æ¹"
-"æ å°æä»¶ï¼å°±å¯ä»¥å
·æå¨é¨ç½²æ¶æ£æµçå®å±æ§çè½åãå©ç¨ä¸ä¸ªDOMè§£æå¨ï¼ä¹å¯ä»¥å¨ç¨"
-"åºè¿è¡æ¶æä½æ å°æä»¶ã æ´å¥½çæ¯ï¼ä½ å¯ä»¥éè¿<literal>Configuration</literal>对"
-"象æ¥è®¿é®ï¼æè
ä¿®æ¹ï¼Hibernateçè¿è¡æ¶å
模åã"
+"ä» <literal><dynamic-component></literal> æ å°çè¯ä¹ä¸æ¥è®²ï¼å®å "
+"<literal><component></literal> æ¯ç¸åçãè¿ç§æ å°ç±»åçä¼ç¹å¨äºéè¿ä¿®æ¹"
+"æ å°æä»¶ï¼å°±å¯ä»¥å
·æå¨é¨ç½²æ¶æ£æµçå®å±æ§çè½åãå©ç¨ä¸ä¸ª DOM è§£æå¨ï¼ä¹å¯ä»¥å¨"
+"ç¨åºè¿è¡æ¶æä½æ å°æä»¶ãæ´å¥½çæ¯ï¼ä½ å¯ä»¥éè¿ <literal>Configuration</"
+"literal> 对象æ¥è®¿é®ï¼æè
ä¿®æ¹ï¼Hibernate çè¿è¡æ¶å
模åã "
#~ msgid ""
-#~ "(Note that the <literal><column></literal> tag is an alternative to "
-#~ "the <literal>column</literal> attribute everywhere.)"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ï¼æ³¨æå¨åä¸ªå°æ¹<literal><column></literal>æ ç¾é½æ¯<literal>column</"
-#~ "literal>屿§çæ¿ä»£åæ³ãï¼"
+#~ "<![CDATA[public class Person {\n"
+#~ " private java.util.Date birthday;\n"
+#~ " private Name name;\n"
+#~ " private String key;\n"
+#~ " public String getKey() {\n"
+#~ " return key;\n"
+#~ " }\n"
+#~ " private void setKey(String key) {\n"
+#~ " this.key=key;\n"
+#~ " }\n"
+#~ " public java.util.Date getBirthday() {\n"
+#~ " return birthday;\n"
+#~ " }\n"
+#~ " public void setBirthday(java.util.Date birthday) {\n"
+#~ " this.birthday = birthday;\n"
+#~ " }\n"
+#~ " public Name getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " public void setName(Name name) {\n"
+#~ " this.name = name;\n"
+#~ " }\n"
+#~ " ......\n"
+#~ " ......\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Name {\n"
+#~ " char initial;\n"
+#~ " String first;\n"
+#~ " String last;\n"
+#~ " public String getFirst() {\n"
+#~ " return first;\n"
+#~ " }\n"
+#~ " void setFirst(String first) {\n"
+#~ " this.first = first;\n"
+#~ " }\n"
+#~ " public String getLast() {\n"
+#~ " return last;\n"
+#~ " }\n"
+#~ " void setLast(String last) {\n"
+#~ " this.last = last;\n"
+#~ " }\n"
+#~ " public char getInitial() {\n"
+#~ " return initial;\n"
+#~ " }\n"
+#~ " void setInitial(char initial) {\n"
+#~ " this.initial = initial;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class attribute "
+#~ "optional -->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Person\" table=\"person\">\n"
+#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"birthday\" type=\"date\"/>\n"
+#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
+#~ " <parent name=\"namedPerson\"/> <!-- reference back to the Person "
+#~ "-->\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </component>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
+#~ " <key column=\"id\"/>\n"
+#~ " <composite-element class=\"eg.Name\"> <!-- class attribute required --"
+#~ ">\n"
+#~ " <property name=\"initial\"/>\n"
+#~ " <property name=\"first\"/>\n"
+#~ " <property name=\"last\"/>\n"
+#~ " </composite-element>\n"
+#~ "</set>]]>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- class "
+#~ "attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
+#~ "\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.Purchase\">\n"
+#~ " <property name=\"purchaseDate\"/>\n"
+#~ " <property name=\"price\"/>\n"
+#~ " <property name=\"quantity\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- "
+#~ "class attribute is optional -->\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/>\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"eg.Order\" .... >\n"
+#~ " ....\n"
+#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
+#~ "\">\n"
+#~ " <key column=\"order_id\">\n"
+#~ " <composite-element class=\"eg.OrderLine\">\n"
+#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/"
+#~ ">\n"
+#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"OrderLine\">\n"
+#~ " \n"
+#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
+#~ " <key-property name=\"lineId\"/>\n"
+#~ " <key-property name=\"orderId\"/>\n"
+#~ " <key-property name=\"customerId\"/>\n"
+#~ " </composite-id>\n"
+#~ " \n"
+#~ " <property name=\"name\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\" class=\"Order\"\n"
+#~ " insert=\"false\" update=\"false\">\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-one>\n"
+#~ " ....\n"
+#~ " \n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
+#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ "</many-to-one>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"undeliveredOrderLines\">\n"
+#~ " <key column name=\"warehouseId\"/>\n"
+#~ " <many-to-many class=\"OrderLine\">\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </many-to-many>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"orderLines\" inverse=\"true\">\n"
+#~ " <key>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <one-to-many class=\"OrderLine\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"OrderLine\">\n"
+#~ " ....\n"
+#~ " ....\n"
+#~ " <list name=\"deliveryAttempts\">\n"
+#~ " <key> <!-- a collection inherits the composite key "
+#~ "type -->\n"
+#~ " <column name=\"lineId\"/>\n"
+#~ " <column name=\"orderId\"/>\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " </key>\n"
+#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
+#~ " <composite-element class=\"DeliveryAttempt\">\n"
+#~ " ...\n"
+#~ " </composite-element>\n"
+#~ " </set>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>]]>"
+#~ msgstr ""
+#~ "<dynamic-component name=\"userAttributes\">\n"
+#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
+#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
+#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
+#~ "</dynamic-component>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/configuration.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/configuration.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/configuration.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,26 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:39+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: configuration.xml:29
#, no-c-format
msgid "Configuration"
msgstr "é
ç½®"
#. Tag: para
-#: configuration.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
@@ -27,21 +29,19 @@
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
-"ç±äºHibernateæ¯ä¸ºäºè½å¨åç§ä¸åç¯å¢ä¸å·¥ä½è设计ç, å æ¤åå¨ç大éçé
ç½®åæ°. "
-"幸è¿çæ¯å¤æ°é
ç½®åæ°é½ ææ¯è¾ç´è§çé»è®¤å¼, å¹¶æéHibernateä¸åååçé
ç½®æ ·ä¾"
-"<literal>hibernate.properties</literal> (ä½äº<literal>etc/</literal>)æ¥å±ç¤ºå"
-"ç§é
ç½®é项. æéåçä»
ä»
æ¯å°è¿ä¸ªæ ·ä¾æä»¶å¤å¶å°ç±»è·¯å¾ (classpath)ä¸å¹¶åä¸äºèª"
-"å®ä¹çä¿®æ¹."
+"ç±äº Hibernate æ¯ä¸ºäºè½å¨åç§ä¸åç¯å¢ä¸å·¥ä½è设计çï¼å æ¤åå¨ç大éçé
ç½®å"
+"æ°ã幸è¿çæ¯å¤æ°é
ç½®åæ°é½ææ¯è¾ç´è§çé»è®¤å¼ï¼å¹¶æé Hibernate ä¸åååçé
ç½®"
+"æ ·ä¾ <literal>hibernate.properties</literal>ï¼ä½äº <literal>etc/</literal>ï¼"
+"æ¥å±ç¤ºåç§é
ç½®é项ãæéåçä»
ä»
æ¯å°è¿ä¸ªæ ·ä¾æä»¶å¤å¶å°ç±»è·¯å¾ï¼classpathï¼ä¸å¹¶"
+"è¿è¡å®å¶ã"
#. Tag: title
-#: configuration.xml:40
#, no-c-format
msgid "Programmatic configuration"
msgstr "å¯ç¼ç¨çé
ç½®æ¹å¼"
#. Tag: para
-#: configuration.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration</classname> "
"represents an entire set of mappings of an application's Java types to an "
@@ -49,162 +49,124 @@
"used to build an immutable <interfacename>org.hibernate.SessionFactory</"
"interfacename>. The mappings are compiled from various XML mapping files."
msgstr ""
-"ä¸ä¸ª<literal>org.hibernate.cfg.Configuration</literal>å®ä¾ä»£è¡¨äºä¸ä¸ªåºç¨ç¨åº"
-"ä¸Javaç±»å å°SQLæ°æ®åºæ å°ç宿´éå. <literal>Configuration</literal>è¢«ç¨æ¥"
-"æå»ºä¸ä¸ª(ä¸å¯åç (immutable))<literal>SessionFactory</literal>. æ å°å®ä¹åç±"
-"ä¸åçXMLæ å°å®ä¹æä»¶ç¼è¯èæ¥."
+"<literal>org.hibernate.cfg.Configuration</literal> å®ä¾ä»£è¡¨äºä¸ä¸ªåºç¨ç¨åºä¸ "
+"Java ç±»åå°SQLæ°æ®åºæ å°ç宿´éåã<classname>org.hibernate.cfg."
+"Configuration</classname> è¢«ç¨æ¥æå»ºä¸ä¸ªï¼ä¸å¯åçï¼immutableï¼ï¼"
+"<interfacename>org.hibernate.SessionFactory</interfacename>ãæ å°å®ä¹åç±ä¸å"
+"ç XML æ å°å®ä¹æä»¶ç¼è¯èæ¥ã"
#. Tag: para
-#: configuration.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration</classname> "
"instance by instantiating it directly and specifying XML mapping documents. "
"If the mapping files are in the classpath, use <literal>addResource()</"
"literal>. For example:"
msgstr ""
-"ä½ å¯ä»¥ç´æ¥å®ä¾å<literal>Configuration</literal>æ¥è·åä¸ä¸ªå®ä¾ï¼å¹¶ä¸ºå®æå®XML"
-"æ å°å®ä¹ æä»¶. 妿æ å°å® 乿件å¨ç±»è·¯å¾(classpath)ä¸, 请使ç¨"
-"<literal>addResource()</literal>:"
+"ä½ å¯ä»¥ç´æ¥å®ä¾å <classname>org.hibernate.cfg.Configuration</classname> æ¥è·"
+"åä¸ä¸ªå®ä¾ï¼å¹¶ä¸ºå®æå® XML æ å°å®ä¹æä»¶ã妿æ å°å®ä¹æä»¶å¨ç±»è·¯å¾"
+"ï¼classpathï¼ä¸ï¼è¯·ä½¿ç¨ <literal>addResourceï¼)</literal>ãä¾å¦ï¼"
-#. Tag: programlisting
-#: configuration.xml:55
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addResource(\"Item.hbm.xml\")\n"
-" .addResource(\"Bid.hbm.xml\");]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:57
-#, fuzzy, no-c-format
-msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
-"ä¸ä¸ªæ¿ä»£æ¹æ³ï¼ææ¶æ¯æ´å¥½çéæ©ï¼æ¯ï¼æå®è¢«æ å°çç±»ï¼è®©Hibernateå¸®ä½ å¯»æ¾æ å°å®"
-"乿件:"
+"ä¸ä¸ªæ¿ä»£æ¹æ³ï¼ææ¶æ¯æ´å¥½çéæ©ï¼æ¯ï¼æå®è¢«æ å°çç±»ï¼è®© Hibernate å¸®ä½ å¯»æ¾æ å°"
+"å®ä¹æä»¶ï¼ "
-#. Tag: programlisting
-#: configuration.xml:62
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class);]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:64
-#, fuzzy, no-c-format
-msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
-"Hibernateå°ä¼å¨ç±»è·¯å¾(classpath)ä¸å¯»æ¾åå为 <literal>/org/hibernate/auction/"
-"Item.hbm.xml</literal>å <literal>/org/hibernate/auction/Bid.hbm.xml</"
-"literal>æ å°å®ä¹æä»¶. è¿ç§æ¹å¼æ¶é¤äºä»»ä½å¯¹æä»¶åç硬ç¼ç (hardcoded)."
+"Hibernate å°ä¼å¨ç±»è·¯å¾ï¼classpathï¼ä¸å¯»æ¾åå为 <filename>/org/hibernate/"
+"auction/Item.hbm.xml</filename> å <filename>/org/hibernate/auction/Bid.hbm."
+"xml</filename> æ å°å®ä¹æä»¶ãè¿ç§æ¹å¼æ¶é¤äºä»»ä½å¯¹æä»¶åç硬ç¼ç "
+"ï¼hardcodedï¼ã"
#. Tag: para
-#: configuration.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration</classname> also allows you to "
"specify configuration properties. For example:"
-msgstr "<literal>Configuration</literal>ä¹å
è®¸ä½ æå®é
ç½®å±æ§:"
-
-#. Tag: programlisting
-#: configuration.xml:75
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = new Configuration()\n"
-" .addClass(org.hibernate.auction.Item.class)\n"
-" .addClass(org.hibernate.auction.Bid.class)\n"
-" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
-"MySQLInnoDBDialect\")\n"
-" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
-"test\")\n"
-" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
msgstr ""
+"<classname>org.hibernate.cfg.Configuration</classname>> ä¹å
è®¸ä½ æå®é
ç½®å±"
+"æ§ãä¾å¦ï¼"
#. Tag: para
-#: configuration.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
-msgstr "å½ç¶è¿ä¸æ¯å¯ä¸çä¼ éHibernateé
ç½®å±æ§çæ¹å¼, å
¶ä»å¯éæ¹å¼è¿å
æ¬:"
+msgstr "å½ç¶è¿ä¸æ¯å¯ä¸çä¼ é Hibernate é
ç½®å±æ§çæ¹å¼ï¼å
¶ä»å¯éæ¹å¼è¿å
æ¬ï¼ "
#. Tag: para
-#: configuration.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties</classname> to "
"<literal>Configuration.setProperties()</literal>."
msgstr ""
-"ä¼ ä¸ä¸ª<literal>java.util.Properties</literal>å®ä¾ç» <literal>Configuration."
-"setProperties()</literal>."
+"ä¼ ä¸ä¸ª <classname>java.util.Properties</classname> å®ä¾ç» "
+"<literal>Configuration.setProperties()</literal>ã"
#. Tag: para
-#: configuration.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties</filename> in a root "
"directory of the classpath."
msgstr ""
-"å°<literal>hibernate.properties</literal>æ¾ç½®å¨ç±»è·¯å¾(classpath)çæ ¹ç®å½ä¸ "
-"(root directory)."
+"å° <filename>hibernate.properties</filename> æ¾ç½®å¨ç±»è·¯å¾ï¼classpathï¼çæ ¹ç®"
+"å½ä¸ï¼root directoryï¼ã"
#. Tag: para
-#: configuration.xml:95
#, no-c-format
msgid ""
"Set <literal>System</literal> properties using <literal>java -"
"Dproperty=value</literal>."
msgstr ""
-"éè¿<literal>java -Dproperty=value</literal>æ¥è®¾ç½®ç³»ç» (<literal>System</"
-"literal>)屿§."
+"éè¿ <literal>java -Dproperty=value</literal> æ¥è®¾ç½®ç³»ç»ï¼<literal>System</"
+"literal>ï¼å±æ§ã"
#. Tag: para
-#: configuration.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Include <literal><property></literal> elements in <literal>hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
-"å¨<literal>hibernate.cfg.xml</literal>ä¸å å
¥å
ç´ <literal><property></"
-"literal> (ç¨å讨论)."
+"å¨ <literal>hibernate.cfg.xml</literal> ä¸å å
¥å
ç´ <literal><property>"
+"</literal>ï¼ç¨å讨论ï¼ã "
#. Tag: para
-#: configuration.xml:107
#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties</filename> "
"is the easiest approach."
msgstr ""
+"å¦æä½ æ³å¿«éä¸è·¯ï¼<filename>hibernate.properties</filename> å°±æ¯æå®¹æçé"
+"å¾ã"
#. Tag: para
-#: configuration.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration</classname> is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory</"
"literal> is created."
msgstr ""
-"<literal>Configuration</literal>å®ä¾è¢«è®¾è®¡æå¯å¨æé´ï¼startup-timeï¼å¯¹è±¡, ä¸"
-"æ¦<literal>SessionFactory</literal>åå»ºå®æå®å°±è¢«ä¸¢å¼äº."
+"<classname>org.hibernate.cfg.Configuration</classname> å®ä¾è¢«è®¾è®¡æå¯å¨æé´"
+"ï¼startup-timeï¼å¯¹è±¡ï¼ä¸æ¦ <literal>SessionFactory</literal> åå»ºå®æå®å°±è¢«ä¸¢"
+"å¼äºã"
#. Tag: title
-#: configuration.xml:119
#, no-c-format
msgid "Obtaining a SessionFactory"
-msgstr "è·å¾SessionFactory"
+msgstr "è·å¾ SessionFactory"
#. Tag: para
-#: configuration.xml:121
#, fuzzy, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
@@ -212,64 +174,48 @@
"<interfacename>org.hibernate.Session</interfacename> instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
-"å½æææ å°å®ä¹è¢«<literal>Configuration</literal>è§£æå, åºç¨ç¨åºå¿
é¡»è·å¾ä¸ä¸ª"
-"ç¨äºæé <literal>Session</literal>å®ä¾çå·¥å. è¿ä¸ªå·¥åå°è¢«åºç¨ç¨åºçææçº¿ç¨"
-"å
񄧮:"
+"å½æææ å°å®ä¹è¢« <classname>org.hibernate.cfg.Configuration</classname> è§£æ"
+"åï¼åºç¨ç¨åºå¿
é¡»è·å¾ä¸ä¸ªç¨äºæé <interfacename>org.hibernate.Session</"
+"interfacename> å®ä¾çå·¥åãè¿ä¸ªå·¥åå°è¢«åºç¨ç¨åºçææçº¿ç¨å
±äº«ï¼ "
-#. Tag: programlisting
-#: configuration.xml:127
-#, no-c-format
-msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:129
#, fuzzy, no-c-format
msgid ""
"Hibernate does allow your application to instantiate more than one "
"<interfacename>org.hibernate.SessionFactory</interfacename>. This is useful "
"if you are using more than one database."
msgstr ""
-"Hibernateå
è®¸ä½ çåºç¨ç¨åºå建å¤ä¸ª<literal>SessionFactory</literal>å®ä¾. è¿å¯¹ "
-"使ç¨å¤ä¸ªæ°æ®åºçåºç¨æ¥è¯´å¾æç¨."
+"Hibernate å
è®¸ä½ çåºç¨ç¨åºå建å¤ä¸ª <interfacename>org.hibernate."
+"SessionFactory</interfacename> å®ä¾ãè¿å¯¹ 使ç¨å¤ä¸ªæ°æ®åºçåºç¨æ¥è¯´å¾æç¨ã "
#. Tag: title
-#: configuration.xml:138
#, no-c-format
msgid "JDBC connections"
-msgstr "JDBCè¿æ¥"
+msgstr "JDBC è¿æ¥"
#. Tag: para
-#: configuration.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory</"
"interfacename> create and pool JDBC connections for you. If you take this "
"approach, opening a <interfacename>org.hibernate.Session</interfacename> is "
"as simple as:"
msgstr ""
-"éå¸¸ä½ å¸æ<literal>SessionFactory</literal>æ¥ä¸ºä½ å建åç¼å(pool)JDBCè¿æ¥. å¦"
-"æä½ éç¨è¿ç§æ¹å¼, åªéè¦å¦ä¸ä¾æç¤ºé£æ ·ï¼æå¼ä¸ä¸ª<literal>Session</literal>:"
+"éå¸¸ä½ å¸æ <interfacename>org.hibernate.SessionFactory</interfacename> æ¥ä¸º"
+"ä½ å建åç¼åï¼poolï¼JDBC è¿æ¥ãå¦æä½ éç¨è¿ç§æ¹å¼ï¼åªéè¦å¦ä¸ä¾æç¤ºé£æ ·ï¼æå¼"
+"ä¸ä¸ª <interfacename>org.hibernate.Session</interfacename>ï¼"
-#. Tag: programlisting
-#: configuration.xml:146
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:148
-#, fuzzy, no-c-format
-msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
-"䏿¦ä½ éè¦è¿è¡æ°æ®è®¿é®æ¶, å°±ä¼ä»è¿æ¥æ± (connection pool)è·å¾ä¸ä¸ªJDBCè¿æ¥."
+"䏿¦ä½ éè¦è¿è¡æ°æ®è®¿é®æ¶ï¼å°±ä¼ä»è¿æ¥æ± ï¼connection poolï¼è·å¾ä¸ä¸ª JDBC è¿"
+"æ¥ã "
#. Tag: para
-#: configuration.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
@@ -277,105 +223,86 @@
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
-"为äºä½¿è¿ç§æ¹å¼å·¥ä½èµ·æ¥, æä»¬éè¦åHibernateä¼ éä¸äºJDBCè¿æ¥ç屿§. ææ"
-"Hibernate屿§çåååè¯ä¹é½å¨<literal>org.hibernate.cfg.Environment</literal>"
-"ä¸å®ä¹. æä»¬ç°å¨å°æè¿°JDBCè¿æ¥é
ç½®ä¸æéè¦ç设置."
+"为äºä½¿è¿ç§æ¹å¼å·¥ä½èµ·æ¥ï¼æä»¬éè¦å Hibernate ä¼ éä¸äº JDBC è¿æ¥ç屿§ãææ "
+"Hibernate 屿§çåååè¯ä¹é½å¨ <classname>org.hibernate.cfg.Environment</"
+"classname> ä¸å®ä¹ãæä»¬ç°å¨å°æè¿° JDBC è¿æ¥é
ç½®ä¸æéè¦ç设置ã"
#. Tag: para
-#: configuration.xml:159
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will obtain and pool connections using <classname>java.sql."
"DriverManager</classname> if you set the following properties:"
msgstr ""
-"å¦æä½ è®¾ç½®å¦ä¸å±æ§ï¼Hibernateå°ä½¿ç¨<literal>java.sql.DriverManager</literal>"
-"æ¥è·å¾(åç¼å)JDBCè¿æ¥ :"
+"å¦æä½ è®¾ç½®å¦ä¸å±æ§ï¼Hibernate å°ä½¿ç¨ <classname>java.sql.DriverManager</"
+"classname> æ¥è·å¾ï¼åç¼åï¼JDBC è¿æ¥ï¼"
#. Tag: title
-#: configuration.xml:165
#, no-c-format
msgid "Hibernate JDBC Properties"
-msgstr "Hibernate JDBC屿§"
+msgstr "Hibernate JDBC 屿§"
#. Tag: entry
-#: configuration.xml:171 configuration.xml:257 configuration.xml:353
-#: configuration.xml:548 configuration.xml:743 configuration.xml:850
-#: configuration.xml:938
#, no-c-format
msgid "Property name"
msgstr "屿§å"
#. Tag: entry
-#: configuration.xml:172 configuration.xml:258 configuration.xml:354
-#: configuration.xml:549 configuration.xml:744 configuration.xml:851
-#: configuration.xml:939
#, no-c-format
msgid "Purpose"
msgstr "ç¨é"
-#. Tag: property
-#: configuration.xml:178
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<property>hibernate.connection.driver_class</property>"
+msgstr "<property>hibernate.connection.driver_class</property>"
-#. Tag: emphasis
-#: configuration.xml:181
+#. Tag: entry
#, no-c-format
-msgid "JDBC driver class"
-msgstr "jdbc驱å¨ç±»"
+msgid "<emphasis>JDBC driver class</emphasis>"
+msgstr "<emphasis>JDBC 驱å¨ç±»</emphasis>"
-#. Tag: property
-#: configuration.xml:186
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<property>hibernate.connection.url</property>"
+msgstr "<property>hibernate.connection.url</property>"
-#. Tag: emphasis
-#: configuration.xml:189
+#. Tag: entry
#, no-c-format
-msgid "JDBC URL"
-msgstr "jdbc URL"
+msgid "<emphasis>JDBC URL</emphasis>"
+msgstr "<emphasis>JDBC URL</emphasis>"
-#. Tag: property
-#: configuration.xml:194 configuration.xml:288
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<property>hibernate.connection.username</property>"
+msgstr "<property>hibernate.connection.username</property>"
-#. Tag: emphasis
-#: configuration.xml:197
+#. Tag: entry
#, no-c-format
-msgid "database user"
-msgstr "æ°æ®åºç¨æ·"
+msgid "<emphasis>database user</emphasis>"
+msgstr "<emphasis>æ°æ®åºç¨æ·</emphasis>ï¼å¯éï¼ "
-#. Tag: property
-#: configuration.xml:202 configuration.xml:296
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<property>hibernate.connection.password</property>"
+msgstr "<property>hibernate.connection.password</property>"
-#. Tag: emphasis
-#: configuration.xml:205
+#. Tag: entry
#, no-c-format
-msgid "database user password"
-msgstr "æ°æ®åºç¨æ·å¯ç "
+msgid "<emphasis>database user password</emphasis>"
+msgstr "<emphasis>æ°æ®åºå¯ç </emphasis>ï¼å¯éï¼ "
-#. Tag: property
-#: configuration.xml:210
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.pool_size"
-msgstr "hibernate.connection.pool_size"
+msgid "<property>hibernate.connection.pool_size</property>"
+msgstr "<property>hibernate.connection.pool_size</property>"
-#. Tag: emphasis
-#: configuration.xml:213
+#. Tag: entry
#, no-c-format
-msgid "maximum number of pooled connections"
-msgstr "è¿æ¥æ± 容éä¸éæ°ç®"
+msgid "<emphasis>maximum number of pooled connections</emphasis>"
+msgstr "<emphasis>è¿æ¥æ± 容éä¸éæ°ç®</emphasis>"
#. Tag: para
-#: configuration.xml:220
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
@@ -385,15 +312,14 @@
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
-"ä½Hibernateèªå¸¦çè¿æ¥æ± ç®æ³ç¸å½ä¸æç. å®åªæ¯ä¸ºäºè®©ä½ å¿«äºä¸æ<emphasis>ï¼å¹¶ä¸"
-"éåç¨äºäº§åç³»ç»</emphasis>ææ§è½æµè¯ä¸ã åºäºæä½³æ§è½åç¨³å®æ§èèä½ åºè¯¥ä½¿ç¨"
-"ç¬¬ä¸æ¹çè¿æ¥æ± ãåªéè¦ç¨ç¹å®è¿æ¥æ± çè®¾ç½®æ¿æ¢ <literal>hibernate.connection."
-"pool_size</literal>å³å¯ãè¿å°å
³éHibernateèªå¸¦çè¿æ¥æ± . ä¾å¦, ä½ å¯è½ä¼æ³ç¨"
-"C3P0."
+"ä½ Hibernate èªå¸¦çè¿æ¥æ± ç®æ³ç¸å½ä¸æçãå®åªæ¯ä¸ºäºè®©ä½ å¿«äºä¸æ<emphasis>ï¼å¹¶"
+"ä¸éåç¨äºäº§åç³»ç»</emphasis>ææ§è½æµè¯ä¸ã åºäºæä½³æ§è½åç¨³å®æ§èèä½ åºè¯¥ä½¿"
+"ç¨ç¬¬ä¸æ¹çè¿æ¥æ± ãåªéè¦ç¨ç¹å®è¿æ¥æ± çè®¾ç½®æ¿æ¢ <literal>hibernate.connection."
+"pool_size</literal> å³å¯ãè¿å°å
³é Hibernate èªå¸¦çè¿æ¥æ± ãä¾å¦ï¼ä½ å¯è½ä¼æ³"
+"ç¨ C3P0ã "
#. Tag: para
-#: configuration.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib</filename> directory. Hibernate will use its "
@@ -403,152 +329,112 @@
"<filename>hibernate.properties</filename> and the Hibernate web site for "
"more information."
msgstr ""
-"C3P0æ¯ä¸ä¸ªéHibernateä¸åååç弿ºçJDBCè¿æ¥æ± , å®ä½äº<literal>lib</literal>"
-"ç®å½ä¸ã å¦æä½ è®¾ç½®äº<literal>hibernate.c3p0.*</literal>ç¸å
³ç屿§, Hibernate"
-"å°ä½¿ç¨ <literal>C3P0ConnectionProvider</literal>æ¥ç¼åJDBCè¿æ¥. å¦æä½ æ´åæ"
-"使ç¨Proxool, 请åèå è¡å
ä¸ç<literal>hibernate.properties</literal>å¹¶å°"
-"Hibernateç½ç«è·åæ´å¤çä¿¡æ¯."
+"C3P0 æ¯ä¸ä¸ªé Hibernate ä¸åååç弿ºç JDBC è¿æ¥æ± ï¼å®ä½äº <literal>lib</"
+"literal>ç®å½ä¸ã å¦æä½ è®¾ç½®äº <literal>hibernate.c3p0.*</literal> ç¸å
³çå±"
+"æ§ï¼Hibernateå°ä½¿ç¨ <literal>C3P0ConnectionProvider</literal> æ¥ç¼å JDBC è¿"
+"æ¥ãå¦æä½ æ´åæä½¿ç¨ Proxoolï¼è¯·åèåè¡å
ä¸ç <literal>hibernate."
+"properties</literal> å¹¶å° Hibernate ç½ç«è·åæ´å¤çä¿¡æ¯ã "
#. Tag: para
-#: configuration.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties</filename> file "
"for c3p0:"
-msgstr "è¿æ¯ä¸ä¸ªä½¿ç¨C3P0ç<literal>hibernate.properties</literal>æ ·ä¾æä»¶:"
-
-#. Tag: programlisting
-#: configuration.xml:242
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
-"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
-"hibernate.connection.username = myuser\n"
-"hibernate.connection.password = secret\n"
-"hibernate.c3p0.min_size=5\n"
-"hibernate.c3p0.max_size=20\n"
-"hibernate.c3p0.timeout=1800\n"
-"hibernate.c3p0.max_statements=50\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
msgstr ""
+"è¿æ¯ä¸ä¸ªä½¿ç¨ C3P0 ç <literal>hibernate.properties</literal> æ ·ä¾æä»¶ï¼ "
#. Tag: para
-#: configuration.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource</interfacename> registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
-"为äºè½å¨åºç¨ç¨åºæå¡å¨(application server)ä¸ä½¿ç¨Hibernate, åºå½æ»æ¯å°"
-"Hibernate é
ç½®æä»æ³¨åå¨JNDIä¸ç<literal>Datasource</literal>å¤è·å¾è¿æ¥ï¼ä½ è³"
-"å°éè¦è®¾ç½®ä¸å屿§ä¸çä¸ä¸ª:"
+"为äºè½å¨åºç¨ç¨åºæå¡å¨ï¼application serverï¼ä¸ä½¿ç¨ Hibernateï¼åºå½æ»æ¯å° "
+"Hibernate é
ç½®æä»æ³¨åå¨ JNDI ä¸ç <literal>Datasource</literal> å¤è·å¾è¿æ¥ï¼"
+"ä½ è³å°éè¦è®¾ç½®ä¸å屿§ä¸çä¸ä¸ªï¼ "
#. Tag: title
-#: configuration.xml:251
#, no-c-format
msgid "Hibernate Datasource Properties"
-msgstr "Hibernateæ°æ®æºå±æ§"
+msgstr "Hibernate æ°æ®æºå±æ§"
-#. Tag: property
-#: configuration.xml:264
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.datasource"
-msgstr "hibernate.connection.datasource"
+msgid "<property>hibernate.connection.datasource</property>"
+msgstr "<property>hibernate.connection.datasource</property>"
-#. Tag: emphasis
-#: configuration.xml:267
+#. Tag: entry
#, no-c-format
-msgid "datasource JNDI name"
-msgstr "æ°æ®æºJNDIåå"
+msgid "<emphasis>datasource JNDI name</emphasis>"
+msgstr "<emphasis>æ°æ®åºç¨æ·</emphasis>ï¼å¯éï¼ "
-#. Tag: property
-#: configuration.xml:272
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.url"
-msgstr "hibernate.jndi.url"
+msgid "<property>hibernate.jndi.url</property>"
+msgstr "<property>hibernate.jndi.url</property>"
#. Tag: entry
-#: configuration.xml:274
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis>URL of the JNDI provider</emphasis> (optional)"
-msgstr "JNDIæä¾è
çURL"
+msgstr "<emphasis>JNDI æä¾è
ç URL</emphasis>ï¼å¯éï¼"
-#. Tag: property
-#: configuration.xml:280
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jndi.class"
-msgstr "hibernate.jndi.class"
+msgid "<property>hibernate.jndi.class</property>"
+msgstr "<property>hibernate.jndi.class</property>"
#. Tag: entry
-#: configuration.xml:282
#, no-c-format
msgid ""
"<emphasis>class of the JNDI <literal>InitialContextFactory</literal></"
"emphasis> (optional)"
msgstr ""
+"<emphasis>JNDI <literal>InitialContextFactory</literal> ç±»</emphasis>ï¼å¯éï¼"
#. Tag: entry
-#: configuration.xml:290
#, no-c-format
msgid "<emphasis>database user</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>æ°æ®åºç¨æ·</emphasis>ï¼å¯éï¼"
#. Tag: entry
-#: configuration.xml:298
#, no-c-format
msgid "<emphasis>database user password</emphasis> (optional)"
-msgstr ""
+msgstr "<emphasis>æ°æ®åºå¯ç </emphasis>ï¼å¯éï¼"
#. Tag: para
-#: configuration.xml:306
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties</filename> file for an "
"application server provided JNDI datasource:"
msgstr ""
-"è¿æ¯ä¸ä¸ªä½¿ç¨åºç¨ç¨åºæå¡å¨æä¾çJNDIæ°æ®æºç<literal>hibernate.properties</"
-"literal>æ ·ä¾æä»¶:"
+"è¿æ¯ä¸ä¸ªä½¿ç¨åºç¨ç¨åºæå¡å¨æä¾ç JNDI æ°æ®æºç <literal>hibernate."
+"properties</literal> æ ·ä¾æä»¶ï¼ "
-#. Tag: programlisting
-#: configuration.xml:311
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
-"hibernate.transaction.factory_class = \\\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-"hibernate.transaction.manager_lookup_class = \\\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup\n"
-"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:313
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
"participate in the container-managed transactions of the application server."
msgstr ""
-"ä»JNDIæ°æ®æºè·å¾çJDBCè¿æ¥å°èªå¨åä¸å°åºç¨ç¨åºæå¡å¨ä¸å®¹å¨ç®¡ççäºå¡"
-"(container-managed transactions)ä¸å»."
+"ä» JNDI æ°æ®æºè·å¾ç JDBC è¿æ¥å°èªå¨åä¸å°åºç¨ç¨åºæå¡å¨ä¸å®¹å¨ç®¡ççäºå¡"
+"ï¼container-managed transactionsï¼ä¸å»ã"
#. Tag: para
-#: configuration.xml:318
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection</literal>\" to the connection property name. "
"For example, you can specify a <property>charSet</property> connection "
"property using <property>hibernate.connection.charSet</property>."
msgstr ""
-"ä»»ä½è¿æ¥(connection)屿§ç屿§åé½è¦ä»¥\"<literal>hibernate.connnection</"
-"literal>\"å¼å¤´. ä¾å¦, ä½ å¯è½ä¼ä½¿ç¨<literal>hibernate.connection.charSet</"
-"literal>æ¥æå®å符é<literal>charSet</literal>."
+"ä»»ä½è¿æ¥ï¼connectionï¼å±æ§ç屿§åé½è¦ä»¥ \"<literal>hibernate.connnection</"
+"literal>\" å¼å¤´ãä¾å¦ï¼ä½ å¯è½ä¼ä½¿ç¨ <literal>hibernate.connection.charSet</"
+"literal> æ¥æå® <property>charSet</property> è¿æ¥å±æ§ã "
#. Tag: para
-#: configuration.xml:324
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
@@ -556,28 +442,25 @@
"implementation via the <property>hibernate.connection.provider_class</"
"property> property."
msgstr ""
-"éè¿å®ç°<literal>org.hibernate.connection.ConnectionProvider</literal>æ¥å£ï¼"
-"ä½ å¯ä»¥å®ä¹å±äº ä½ èªå·±çè·å¾JDBCè¿æ¥çæä»¶çç¥ãéè¿è®¾ç½®<literal>hibernate."
-"connection.provider_class</literal>ï¼ ä½ å¯ä»¥éæ©ä¸ä¸ªèªå®ä¹çå®ç°."
+"éè¿å®ç° <literal>org.hibernate.connection.ConnectionProvider</literal> æ¥"
+"å£ï¼ä½ å¯ä»¥å®ä¹å±äºä½ èªå·±çè·å¾JDBCè¿æ¥çæä»¶çç¥ãéè¿è®¾ç½®<literal>hibernate."
+"connection.provider_class</literal>ï¼ä½ å¯ä»¥éæ©ä¸ä¸ªèªå®ä¹çå®ç°ã "
#. Tag: title
-#: configuration.xml:333
#, no-c-format
msgid "Optional configuration properties"
msgstr "å¯éçé
ç½®å±æ§"
#. Tag: para
-#: configuration.xml:335
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
-"æå¤§é屿§è½ç¨æ¥æ§å¶Hibernateå¨è¿è¡æçè¡ä¸º. å®ä»¬é½æ¯å¯éç, å¹¶æ¥æéå½çé»è®¤"
-"å¼."
+"æå¤§é屿§è½ç¨æ¥æ§å¶ Hibernate å¨è¿è¡æçè¡ä¸ºãå®ä»¬é½æ¯å¯éçï¼å¹¶æ¥æéå½çé»"
+"认å¼ã "
-#. Tag: warning
-#: configuration.xml:341
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only.</emphasis> "
@@ -585,657 +468,379 @@
"literal> or <filename>hibernate.properties</filename>. They "
"<emphasis>cannot</emphasis> be set by the other techniques described above."
msgstr ""
-"<emphasis>è¦å: å
¶ä¸ä¸äºå±æ§æ¯\"ç³»ç»çº§(system-level)ç\".</emphasis> ç³»ç»çº§å±"
-"æ§åªè½éè¿<literal>java -Dproperty=value</literal>æ <literal>hibernate."
-"properties</literal>æ¥è®¾ç½®, è<emphasis>ä¸è½</emphasis>ç¨ä¸é¢æè¿°çå
¶ä»æ¹æ³æ¥"
-"设置."
+"è¦åï¼ å
¶ä¸ä¸äºå±æ§æ¯\"ç³»ç»çº§ï¼system-levelï¼ç\"ãç³»ç»çº§å±æ§åªè½éè¿"
+"<literal>java -Dproperty=value</literal> æ <literal>hibernate.properties</"
+"literal> æ¥è®¾ç½®ï¼è<emphasis>ä¸è½</emphasis>ç¨ä¸é¢æè¿°çå
¶ä»æ¹æ³æ¥è®¾ç½®ã "
#. Tag: title
-#: configuration.xml:347
#, no-c-format
msgid "Hibernate Configuration Properties"
-msgstr "Hibernateé
ç½®å±æ§"
+msgstr "Hibernate é
ç½®å±æ§"
-#. Tag: property
-#: configuration.xml:360
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<property>hibernate.dialect</property>"
+msgstr "<property>hibernate.dialect</property>"
#. Tag: entry
-#: configuration.xml:362
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect</"
"classname> which allows Hibernate to generate SQL optimized for a particular "
"relational database."
msgstr ""
-"ä¸ä¸ªHibernate <placeholder-1/>ç±»åå
许Hibernateé对ç¹å®çå
³ç³»æ°æ®åºçæä¼åç"
-"SQL. <placeholder-2/>"
+"å
许 Hibernate é对ç¹å®çå
³ç³»æ°æ®åºçæä¼åç SQL ç <classname>org."
+"hibernate.dialect.Dialect</classname> çç±»åã"
#. Tag: para
-#: configuration.xml:365
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>full.classname.of."
"Dialect</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>full.classname.of."
+"Dialect</literal> "
#. Tag: para
-#: configuration.xml:369
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
"<classname>org.hibernate.dialect.Dialect</classname> implementation based on "
"the <literal>JDBC metadata</literal> returned by the JDBC driver."
msgstr ""
+"å¨å¤§å¤æ°æ
åµä¸ï¼Hibernate å¯ä»¥æ ¹æ® JDBC 驱å¨è¿åç <literal>JDBC metadata</"
+"literal> éæ©æ£ç¡®ç <classname>org.hibernate.dialect.Dialect</classname> å®"
+"ç°ã"
-#. Tag: property
-#: configuration.xml:378
+#. Tag: entry
#, no-c-format
-msgid "hibernate.show_sql"
-msgstr "hibernate.show_sql"
+msgid "<property>hibernate.show_sql</property>"
+msgstr "<property>hibernate.show_sql</property>"
#. Tag: entry
-#: configuration.xml:380
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL</literal> to <literal>debug</"
"literal>."
msgstr ""
-"è¾åºææSQLè¯å¥å°æ§å¶å°. æä¸ä¸ªå¦å¤çéæ©æ¯æ<placeholder-1/>è¿ä¸ªlog category"
-"设为<placeholder-2/>ã <placeholder-3/>"
+"è¾åºææ SQL è¯å¥å°æ§å¶å°ãæä¸ä¸ªå¦å¤çéæ©æ¯æ <literal>org.hibernate.SQL</"
+"literal> è¿ä¸ª log category设为 <literal>debug</literal>ã"
#. Tag: para
-#: configuration.xml:384 configuration.xml:396 configuration.xml:490
-#: configuration.xml:503 configuration.xml:516 configuration.xml:529
-#: configuration.xml:583 configuration.xml:610 configuration.xml:623
-#: configuration.xml:678 configuration.xml:906 configuration.xml:921
-#: configuration.xml:1011
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>true</literal> | "
"<literal>false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>true</literal> | "
+"<literal>false</literal> "
-#. Tag: property
-#: configuration.xml:392
+#. Tag: entry
#, no-c-format
-msgid "hibernate.format_sql"
-msgstr "hibernate.format_sql"
+msgid "<property>hibernate.format_sql</property>"
+msgstr "<property>hibernate.format_sql</property>"
#. Tag: entry
-#: configuration.xml:394
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pretty print the SQL in the log and console."
-msgstr "å¨logåconsole䏿å°åºæ´æ¼äº®çSQLã <placeholder-1/>"
+msgstr "å¨ log å console 䏿å°åºæ´æ¼äº®ç SQLã"
-#. Tag: property
-#: configuration.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_schema"
-msgstr "hibernate.default_schema"
+msgid "<property>hibernate.default_schema</property>"
+msgstr "<property>hibernate.default_schema</property>"
#. Tag: entry
-#: configuration.xml:406
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
msgstr ""
-"å¨çæçSQLä¸, å°ç»å®çschema/tablespaceéå äºéå
¨éå®åç表åä¸. "
-"<placeholder-1/>"
+"å¨çæç SQL ä¸ï¼å°ç»å®ç schema/tablespace éå äºéå
¨éå®åç表åä¸ã "
#. Tag: para
-#: configuration.xml:409
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>SCHEMA_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>SCHEMA_NAME</literal> "
-#. Tag: property
-#: configuration.xml:417
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_catalog"
-msgstr "hibernate.default_catalog"
+msgid "<property>hibernate.default_catalog</property>"
+msgstr "<property>hibernate.default_catalog</property>"
#. Tag: entry
-#: configuration.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
-msgstr ""
-"å¨çæçSQLä¸, å°ç»å®çcatalogéå äºéå
¨éå®åç表åä¸. <placeholder-1/>"
+msgstr "å¨çæç SQL ä¸ï¼å°ç»å®ç catalog éå äºéå
¨éå®åç表åä¸ã "
#. Tag: para
-#: configuration.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>CATALOG_NAME</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>CATALOG_NAME</literal> "
-#. Tag: property
-#: configuration.xml:430
+#. Tag: entry
#, no-c-format
-msgid "hibernate.session_factory_name"
-msgstr "hibernate.session_factory_name"
+msgid "<property>hibernate.session_factory_name</property>"
+msgstr "<property>hibernate.session_factory_name</property>"
#. Tag: entry
-#: configuration.xml:432
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory</interfacename> will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
-"<placeholder-1/>å建åï¼å°èªå¨ä½¿ç¨è¿ä¸ªååç»å®å°JNDIä¸. <placeholder-2/>"
+"<interfacename>org.hibernate.SessionFactory</interfacename> å建åï¼å°èªå¨ä½¿"
+"ç¨è¿ä¸ªååç»å®å° JNDI ä¸ã"
#. Tag: para
-#: configuration.xml:435 configuration.xml:877
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jndi/composite/name</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>jndi/composite/name</"
+"literal> "
-#. Tag: property
-#: configuration.xml:443
+#. Tag: entry
#, no-c-format
-msgid "hibernate.max_fetch_depth"
-msgstr "hibernate.max_fetch_depth"
+msgid "<property>hibernate.max_fetch_depth</property>"
+msgstr "<property>hibernate.max_fetch_depth</property>"
#. Tag: entry
-#: configuration.xml:445
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0</literal> disables "
"default outer join fetching."
msgstr ""
-"为ååå
³è(ä¸å¯¹ä¸, å¤å¯¹ä¸)çå¤è¿æ¥æåï¼outer join fetchï¼æ 设置æå¤§æ·±åº¦. å¼"
-"为<placeholder-1/>æå³çå°å
³éé»è®¤çå¤è¿æ¥æå. <placeholder-2/>"
+"为ååå
³èï¼ä¸å¯¹ä¸ï¼å¤å¯¹ä¸ï¼çå¤è¿æ¥æåï¼outer join fetchï¼æ 设置æå¤§æ·±åº¦ã"
+"å¼ä¸º <literal>0</literal> æå³çå°å
³éé»è®¤çå¤è¿æ¥æåã "
#. Tag: para
-#: configuration.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>0</literal> and <literal>3</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis> 建议å¨<literal>0</literal>å°"
-"<literal>3</literal>ä¹é´åå¼"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis> å»ºè®®å¨ <literal>0</literal> å° "
+"<literal>3</literal> ä¹é´åå¼ "
-#. Tag: property
-#: configuration.xml:458
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_batch_fetch_size"
-msgstr "hibernate.default_batch_fetch_size"
+msgid "<property>hibernate.default_batch_fetch_size</property>"
+msgstr "<property>hibernate.default_batch_fetch_size</property>"
#. Tag: entry
-#: configuration.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
-msgstr "为Hibernateå
³èçæ¹éæå设置é»è®¤æ°é. <placeholder-1/>"
+msgstr "为 Hibernate å
³èçæ¹éæå设置é»è®¤æ°éã "
#. Tag: para
-#: configuration.xml:462
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values <literal>4</"
"literal>, <literal>8</literal>, <literal>16</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis> 建议çåå¼ä¸º<literal>4</literal>, "
-"<literal>8</literal>, å<literal>16</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis>建议çåå¼ä¸º <literal>4</"
+"literal>ï¼<literal>8</literal>ï¼å <literal>16</literal> "
-#. Tag: property
-#: configuration.xml:471
+#. Tag: entry
#, no-c-format
-msgid "hibernate.default_entity_mode"
-msgstr "hibernate.default_entity_mode"
+msgid "<property>hibernate.default_entity_mode</property>"
+msgstr "<property>hibernate.default_entity_mode</property>"
#. Tag: entry
-#: configuration.xml:473
#, fuzzy, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory</literal>"
msgstr ""
-"为ç±è¿ä¸ª<placeholder-1/>æå¼çææSessionæå®é»è®¤çå®ä½è¡¨ç°æ¨¡å¼. "
-"<placeholder-2/>"
+"为ç±è¿ä¸ª <literal>SessionFactory</literal> æå¼çææ Session æå®é»è®¤çå®ä½"
+"è¡¨ç°æ¨¡å¼ã "
#. Tag: para
-#: configuration.xml:476
#, no-c-format
msgid ""
"<literal>dynamic-map</literal>, <literal>dom4j</literal>, <literal>pojo</"
"literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis><literal>dynamic-map</literal>, "
-"<literal>dom4j</literal>, <literal>pojo</literal>"
+"<emphasis role=\"strong\">åå¼</emphasis><literal>dynamic-map</literal>ï¼"
+"<literal>dom4j</literal>ï¼<literal>pojo</literal>"
-#. Tag: property
-#: configuration.xml:484
+#. Tag: entry
#, no-c-format
-msgid "hibernate.order_updates"
-msgstr "hibernate.order_updates"
+msgid "<property>hibernate.order_updates</property>"
+msgstr "<property>hibernate.order_updates</property>"
#. Tag: entry
-#: configuration.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
-"强å¶Hibernateæç
§è¢«æ´æ°æ°æ®ç主é®ï¼ä¸ºSQLæ´æ°æåºãè¿ä¹åå°åå°å¨é«å¹¶åç³»ç»ä¸"
-"äºå¡çæ»éã <placeholder-1/>"
+"å¼ºå¶ Hibernate æç
§è¢«æ´æ°æ°æ®ç主é®ï¼ä¸º SQL æ´æ°æåºãè¿ä¹åå°åå°å¨é«å¹¶åç³»"
+"ç»ä¸äºå¡çæ»éã"
-#. Tag: property
-#: configuration.xml:498
+#. Tag: entry
#, no-c-format
-msgid "hibernate.generate_statistics"
-msgstr "hibernate.generate_statistics"
+msgid "<property>hibernate.generate_statistics</property>"
+msgstr "<property>hibernate.generate_statistics</property>"
#. Tag: entry
-#: configuration.xml:500
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
-msgstr "妿å¼å¯, Hibernateå°æ¶éæå©äºæ§è½è°èçç»è®¡æ°æ®. <placeholder-1/>"
+msgstr "妿å¼å¯ï¼Hibernate å°æ¶éæå©äºæ§è½è°èçç»è®¡æ°æ®ã"
-#. Tag: property
-#: configuration.xml:511
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_identifier_rollback"
-msgstr "hibernate.use_identifer_rollback"
+msgid "<property>hibernate.use_identifier_rollback</property>"
+msgstr "<property>hibernate.use_identifier_rollback</property>"
#. Tag: entry
-#: configuration.xml:513
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
-msgstr ""
-"妿å¼å¯, å¨å¯¹è±¡è¢«å 餿¶çæçæ è¯å±æ§å°è¢«é设为é»è®¤å¼. <placeholder-1/>"
+msgstr "妿å¼å¯ï¼å¨å¯¹è±¡è¢«å 餿¶çæçæ è¯å±æ§å°è¢«é设为é»è®¤å¼ã"
-#. Tag: property
-#: configuration.xml:524
+#. Tag: entry
#, no-c-format
-msgid "hibernate.use_sql_comments"
-msgstr "hibernate.use_sql_comments"
+msgid "<property>hibernate.use_sql_comments</property>"
+msgstr "<property>hibernate.use_sql_comments</property>"
#. Tag: entry
-#: configuration.xml:526
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false</literal>."
msgstr ""
-"妿å¼å¯, Hibernateå°å¨SQLä¸çææå©äºè°è¯ç注éä¿¡æ¯, é»è®¤å¼ä¸º<placeholder-1/"
-">. <placeholder-2/>"
+"妿å¼å¯ï¼Hibernate å°å¨ SQL ä¸çææå©äºè°è¯ç注éä¿¡æ¯ï¼é»è®¤å¼ä¸º "
+"<literal>false</literal>ã"
#. Tag: title
-#: configuration.xml:540
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
-msgstr "Hibernate JDBCåè¿æ¥(connection)屿§"
+msgstr "Hibernate JDBC åè¿æ¥ï¼connectionï¼å±æ§"
-#. Tag: property
-#: configuration.xml:555
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.fetch_size"
-msgstr "hibernate.jdbc.fetch_size"
+msgid "<property>hibernate.jdbc.fetch_size</property>"
+msgstr "<property>hibernate.jdbc.fetch_size</property>"
#. Tag: entry
-#: configuration.xml:557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
-msgstr "éé¶å¼ï¼æå®JDBCæåæ°éçå¤§å° (è°ç¨<placeholder-1/>)."
+msgstr ""
+"éé¶å¼ï¼æå® JDBC æåæ°éç大å°ï¼è°ç¨ <literal>Statement.setFetchSize()</"
+"literal>ï¼ã"
-#. Tag: property
-#: configuration.xml:564
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_size"
-msgstr "hibernate.jdbc.batch_size"
+msgid "<property>hibernate.jdbc.batch_size</property>"
+msgstr "<property>hibernate.jdbc.batch_size</property>"
#. Tag: entry
-#: configuration.xml:566
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
-msgstr "éé¶å¼ï¼å
许Hibernate使ç¨JDBC2çæ¹éæ´æ°. <placeholder-1/>"
+msgstr "éé¶å¼ï¼å
许 Hibernate ä½¿ç¨ JDBC2 çæ¹éæ´æ°ã"
#. Tag: para
-#: configuration.xml:568
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> recommended values between "
"<literal>5</literal> and <literal>30</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis> 建议å<literal>5</literal>å°"
-"<literal>30</literal>ä¹é´çå¼"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis>建议å <literal>5</literal> å° "
+"<literal>30</literal> ä¹é´çå¼ "
-#. Tag: property
-#: configuration.xml:576
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.batch_versioned_data"
-msgstr "hibernate.jdbc.batch_versioned_data"
+msgid "<property>hibernate.jdbc.batch_versioned_data</property>"
+msgstr "<property>hibernate.jdbc.batch_versioned_data</property>"
#. Tag: entry
-#: configuration.xml:578
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Set this property to <literal>true</literal> if your JDBC driver returns "
"correct row counts from <literal>executeBatch()</literal>. Iit is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false</literal>."
msgstr ""
-"å¦æä½ æ³è®©ä½ çJDBC驱å¨ä»<placeholder-1/>è¿åæ£ç¡®çè¡è®¡æ° , é£ä¹å°æ¤å±æ§è®¾ä¸º"
-"<placeholder-2/>(å¼å¯è¿ä¸ªé项é常æ¯å®å
¨ç). åæ¶ï¼Hibernateå°ä¸ºèªå¨çæ¬åçæ°"
-"æ®ä½¿ç¨æ¹éDML. é»è®¤å¼ä¸º<placeholder-3/>. <placeholder-4/>"
+"å¦æä½ æ³è®©ä½ ç JDBC 驱å¨ä» <literal>true</literal> è¿åæ£ç¡®çè¡è®¡æ° ï¼é£ä¹å°"
+"æ¤å±æ§è®¾ä¸º <literal>executeBatch()</literal>ï¼å¼å¯è¿ä¸ªé项é常æ¯å®å
¨çï¼ãå"
+"æ¶ï¼Hibernate å°ä¸ºèªå¨çæ¬åçæ°æ®ä½¿ç¨æ¹é DMLãé»è®¤å¼ä¸º <literal>false</"
+"literal>ã "
-#. Tag: property
-#: configuration.xml:591
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.factory_class"
-msgstr "hibernate.jdbc.factory_class"
+msgid "<property>hibernate.jdbc.factory_class</property>"
+msgstr "<property>hibernate.jdbc.factory_class</property>"
#. Tag: entry
-#: configuration.xml:593
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher</interfacename>. "
"Most applications will not need this configuration property."
msgstr ""
-"éæ©ä¸ä¸ªèªå®ä¹ç<placeholder-1/>. 夿°åºç¨ç¨åºä¸éè¦è¿ä¸ªé
ç½®å±æ§. "
-"<placeholder-2/>"
+"éæ©ä¸ä¸ªèªå®ä¹ç <literal>Batcher</literal>ã夿°åºç¨ç¨åºä¸éè¦è¿ä¸ªé
ç½®å±"
+"æ§ã "
#. Tag: para
-#: configuration.xml:596
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"BatcherFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of.Batcher</"
+"literal> "
-#. Tag: property
-#: configuration.xml:604
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_scrollable_resultset"
-msgstr "hibernate.jdbc.use_scrollable_resultset"
+msgid "<property>hibernate.jdbc.use_scrollable_resultset</property>"
+msgstr "<property>hibernate.jdbc.use_scrollable_resultset</property>"
#. Tag: entry
-#: configuration.xml:606
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
-"å
许Hibernate使ç¨JDBC2ç坿»å¨ç»æé. åªæå¨ä½¿ç¨ç¨æ·æä¾çJDBCè¿æ¥æ¶ï¼è¿ä¸ªé"
-"é¡¹ææ¯å¿
è¦ç, å¦åHibernateä¼ä½¿ç¨è¿æ¥çå
æ°æ®. <placeholder-1/>"
+"å
许 Hibernate ä½¿ç¨ JDBC2 ç坿»å¨ç»æéãåªæå¨ä½¿ç¨ç¨æ·æä¾ç JDBC è¿æ¥æ¶ï¼"
+"è¿ä¸ªéé¡¹ææ¯å¿
è¦çï¼å¦å Hibernate ä¼ä½¿ç¨è¿æ¥çå
æ°æ®ã "
-#. Tag: property
-#: configuration.xml:618
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_streams_for_binary"
-msgstr "hibernate.jdbc.use_streams_for_binary"
+msgid "<property>hibernate.jdbc.use_streams_for_binary</property>"
+msgstr "<property>hibernate.jdbc.use_streams_for_binary</property>"
#. Tag: entry
-#: configuration.xml:620
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary</literal> or "
"<literal>serializable</literal> types to/from JDBC. <emphasis>*system-level "
"property*</emphasis>"
msgstr ""
-"å¨JDBC读å<placeholder-1/>æ<placeholder-2/> çç±»åæ¶ä½¿ç¨æµ(stream)(ç³»ç»çº§å±"
-"æ§). <placeholder-3/>"
+"å¨ JDBC 读å <literal>binary</literal> æ <literal>serializable</literal> ç"
+"ç±»åæ¶ä½¿ç¨æµï¼streamï¼ï¼ç³»ç»çº§å±æ§ï¼ã "
-#. Tag: property
-#: configuration.xml:631
+#. Tag: entry
#, no-c-format
-msgid "hibernate.jdbc.use_get_generated_keys"
-msgstr "hibernate.jdbc.use_get_generated_keys"
+msgid "<property>hibernate.jdbc.use_get_generated_keys</property>"
+msgstr "<property>hibernate.jdbc.use_get_generated_keys</property>"
#. Tag: entry
-#: configuration.xml:633
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys()</literal> "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
@@ -1243,206 +848,80 @@
"identifier generators. By default, it tries to determine the driver "
"capabilities using connection metadata."
msgstr ""
-"卿°æ®æå
¥æ°æ®åºä¹åï¼å
许使ç¨JDBC3 <placeholder-1/> æ¥è·åæ°æ®åºçæçkey"
-"(é®)ãéè¦JDBC3+驱å¨åJRE1.4+, å¦æä½ çæ°æ®åºé©±å¨å¨ä½¿ç¨Hibernateçæ è¯çæå¨"
-"æ¶éå°é®é¢ï¼è¯·å°æ¤å¼è®¾ä¸ºfalse. é»è®¤æ
åµä¸å°ä½¿ç¨è¿æ¥çå
æ°æ®æ¥å¤å®é©±å¨çè½å. "
-"<placeholder-2/>"
+"卿°æ®æå
¥æ°æ®åºä¹åï¼å
è®¸ä½¿ç¨ JDBC3 <literal>PreparedStatement."
+"getGeneratedKeys()</literal> æ¥è·åæ°æ®åºçæç keyï¼é®ï¼ãéè¦ JDBC3+ 驱å¨"
+"å JRE1.4+ï¼å¦æä½ çæ°æ®åºé©±å¨å¨ä½¿ç¨ Hibernate çæ è¯çæå¨æ¶éå°é®é¢ï¼è¯·å°æ¤"
+"å¼è®¾ä¸º falseãé»è®¤æ
åµä¸å°ä½¿ç¨è¿æ¥çå
æ°æ®æ¥å¤å®é©±å¨çè½åã "
#. Tag: para
-#: configuration.xml:639 configuration.xml:769 configuration.xml:781
-#: configuration.xml:795 configuration.xml:833
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>true|false</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>true | false</literal> "
-#. Tag: property
-#: configuration.xml:647
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.provider_class"
-msgstr "hibernate.connection.provider_class"
+msgid "<property>hibernate.connection.provider_class</property>"
+msgstr "<property>hibernate.connection.provider_class</property>"
#. Tag: entry
-#: configuration.xml:649
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
-"èªå®ä¹<placeholder-1/>çç±»å, æ¤ç±»ç¨æ¥åHibernateæä¾JDBCè¿æ¥. <placeholder-"
-"2/>"
+"èªå®ä¹ <literal>ConnectionProvider</literal> çç±»åï¼æ¤ç±»ç¨æ¥å Hibernate æ"
+"ä¾ JDBC è¿æ¥ã "
#. Tag: para
-#: configuration.xml:652
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"ConnectionProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of."
+"ConnectionProvider</literal> "
-#. Tag: property
-#: configuration.xml:660
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.isolation"
-msgstr "hibernate.connection.isolation"
+msgid "<property>hibernate.connection.isolation</property>"
+msgstr "<property>hibernate.connection.isolation</property>"
#. Tag: entry
-#: configuration.xml:662
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
"databases do not support all isolation levels and some define additional, "
"non-standard isolations."
msgstr ""
-"设置JDBCäºå¡é离级å«. æ¥ç<placeholder-1/>æ¥äºè§£å个å¼çå
·ä½æä¹, ä½è¯·æ³¨æå¤"
-"æ°æ°æ®åºé½ä¸æ¯æææçé离级å«. <placeholder-2/>"
+"设置 JDBC äºå¡é离级å«ãæ¥ç <literal>java.sql.Connection</literal> æ¥äºè§£å"
+"个å¼çå
·ä½æä¹ï¼ä½è¯·æ³¨æå¤æ°æ°æ®åºé½ä¸æ¯æææçé离级å«ã "
#. Tag: para
-#: configuration.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>1, 2, 4, 8</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>1, 2, 4, 8</literal> "
-#. Tag: property
-#: configuration.xml:674
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.autocommit"
-msgstr "hibernate.connection.autocommit"
+msgid "<property>hibernate.connection.autocommit</property>"
+msgstr "<property>hibernate.connection.autocommit</property>"
#. Tag: entry
-#: configuration.xml:676
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
-msgstr ""
-"å
许被ç¼åçJDBCè¿æ¥å¼å¯èªå¨æäº¤(autocommit) (ä¸å»ºè®®). <placeholder-1/>"
+msgstr "å
许被ç¼åç JDBC è¿æ¥å¼å¯èªå¨æäº¤ï¼autocommitï¼ï¼ä¸æ¨èï¼ã"
-#. Tag: property
-#: configuration.xml:686
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.release_mode"
-msgstr "hibernate.connection.release_mode"
+msgid "<property>hibernate.connection.release_mode</property>"
+msgstr "<property>hibernate.connection.release_mode</property>"
#. Tag: entry
-#: configuration.xml:688
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
@@ -1454,693 +933,421 @@
"the JTA and CMT transaction strategies and <literal>after_transaction</"
"literal> for the JDBC transaction strategy."
msgstr ""
-"æå®Hibernateå¨ä½æ¶éæ¾JDBCè¿æ¥. é»è®¤æ
åµä¸,ç´å°Session被æ¾å¼å
³éæè¢«æå¼è¿æ¥"
-"æ¶,æä¼éæ¾JDBCè¿æ¥. 对äºåºç¨ç¨åºæå¡å¨çJTAæ°æ®æº, ä½ åºå½ä½¿ç¨<placeholder-1/"
-">, è¿æ ·å¨æ¯æ¬¡JDBCè°ç¨åï¼é½ä¼ä¸»å¨çéæ¾è¿æ¥. 对äºéJTAçè¿æ¥, 使ç¨"
-"<placeholder-2/>卿¯ä¸ªäºå¡ç»ææ¶éæ¾è¿æ¥æ¯åçç. <placeholder-3/>å°ä¸ºJTAå"
-"CMTäºå¡çç¥éæ©<placeholder-4/>, 为JDBCäºå¡çç¥éæ©<placeholder-5/>. "
-"<placeholder-6/><placeholder-7/>"
+"æå® Hibernate å¨ä½æ¶éæ¾ JDBC è¿æ¥ãé»è®¤æ
åµä¸,ç´å° Session 被æ¾å¼å
³éæè¢«æ"
+"å¼è¿æ¥æ¶,æä¼éæ¾ JDBC è¿æ¥ã对äºåºç¨ç¨åºæå¡å¨ç JTA æ°æ®æºï¼ä½ åºå½ä½¿ç¨ "
+"<literal>after_statement</literal>ï¼è¿æ ·å¨æ¯æ¬¡ JDBC è°ç¨åï¼é½ä¼ä¸»å¨çéæ¾è¿"
+"æ¥ã对äºé JTA çè¿æ¥ï¼ä½¿ç¨ <literal>after_transaction</literal> 卿¯ä¸ªäºå¡ç»"
+"ææ¶éæ¾è¿æ¥æ¯åççã<literal>auto</literal> å°ä¸º JTA å CMT äºå¡çç¥éæ© "
+"<literal>after_statement</literal>ï¼ä¸ºJDBCäºå¡çç¥éæ© "
+"<literal>after_transaction</literal>ã"
#. Tag: para
-#: configuration.xml:699
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>auto</literal> (default) "
"| <literal>on_close</literal> | <literal>after_transaction</literal> | "
"<literal>after_statement</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis><literal>auto</literal> (é»è®¤) | "
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>auto</literal> (é»è®¤) | "
"<literal>on_close</literal> | <literal>after_transaction</literal> | "
-"<literal>after_statement</literal>"
+"<literal>after_statement</literal> "
#. Tag: para
-#: configuration.xml:704
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This setting only affects <literal>Session</literal>s returned from "
"<literal>SessionFactory.openSession</literal>. For <literal>Session</"
"literal>s obtained through <literal>SessionFactory.getCurrentSession</"
"literal>, the <literal>CurrentSessionContext</literal> implementation "
"configured for use controls the connection release mode for those "
-"<literal>Session</literal>s. See"
+"<literal>Session</literal>s. See <xref linkend=\"architecture-current-session"
+"\" />"
msgstr ""
-"注æ,è¿äºè®¾ç½®ä»
对éè¿<literal>SessionFactory.openSession</literal>å¾å°ç"
-"<literal>Session</literal>èµ·ä½ç¨ã对äºéè¿<literal>SessionFactory."
-"getCurrentSession</literal>å¾å°ç<literal>Session</literal>ï¼æé
ç½®ç"
-"<literal>CurrentSessionContext</literal>å®ç°æ§å¶è¿äº<literal>Session</"
-"literal>çè¿æ¥éæ¾æ¨¡å¼ã请åé
<xref linkend=\"architecture-current-session\"/"
-">ã"
+"注æï¼è¿äºè®¾ç½®ä»
对éè¿ <literal>SessionFactory.openSession</literal> å¾å°ç "
+"<literal>Session</literal> èµ·ä½ç¨ã对äºéè¿ <literal>SessionFactory."
+"getCurrentSession</literal> å¾å°ç <literal>Session</literal>ï¼æé
ç½®ç "
+"<literal>CurrentSessionContext</literal> å®ç°æ§å¶è¿äº <literal>Session</"
+"literal> çè¿æ¥éæ¾æ¨¡å¼ã请åé
<xref linkend=\"architecture-current-session"
+"\" />ã"
#. Tag: entry
-#: configuration.xml:715
#, no-c-format
msgid ""
"<property>hibernate.connection.</property><emphasis><propertyName></"
"emphasis>"
msgstr ""
+"<property>hibernate.connection.</property><emphasis><propertyName></"
+"emphasis>"
#. Tag: entry
-#: configuration.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass the JDBC property <emphasis><propertyName></emphasis> to "
"<literal>DriverManager.getConnection()</literal>."
msgstr ""
-"ä¼ ä¸ä¸ª<literal>java.util.Properties</literal>å®ä¾ç» <literal>Configuration."
-"setProperties()</literal>."
+"æ JDBC 屿§ <emphasis><propertyName></emphasis> ä¼ éç» "
+"<literal>DriverManager.getConnection()</literal>ã"
#. Tag: entry
-#: configuration.xml:724
#, no-c-format
msgid ""
"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
msgstr ""
+"<property>hibernate.jndi.</property><emphasis><propertyName></emphasis>"
#. Tag: entry
-#: configuration.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName></emphasis> to the JNDI "
"<literal>InitialContextFactory</literal>."
msgstr ""
-"ä¼ ä¸ä¸ª<literal>java.util.Properties</literal>å®ä¾ç» <literal>Configuration."
-"setProperties()</literal>."
+"æ <emphasis><propertyName></emphasis> 屿§ä¼ éç» JNDI "
+"<literal>InitialContextFactory</literal>ã"
#. Tag: title
-#: configuration.xml:737
#, no-c-format
msgid "Hibernate Cache Properties"
-msgstr "Hibernateç¼å屿§"
+msgstr "Hibernate ç¼å屿§"
-#. Tag: literal
-#: configuration.xml:750
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.provider_class"
-msgstr "hibernate.cache.provider_class"
+msgid "<literal>hibernate.cache.provider_class</literal>"
+msgstr "<literal>hibernate.cache.provider_class</literal>"
#. Tag: entry
-#: configuration.xml:752
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The classname of a custom <literal>CacheProvider</literal>."
-msgstr "èªå®ä¹ç<placeholder-1/>çç±»å. <placeholder-2/>"
+msgstr "èªå®ä¹ç <literal>CacheProvider</literal> çç±»åã"
#. Tag: para
-#: configuration.xml:754
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"CacheProvider</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of."
+"CacheProvider</literal> "
-#. Tag: literal
-#: configuration.xml:762
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_minimal_puts"
-msgstr "hibernate.cache.use_minimal_puts"
+msgid "<literal>hibernate.cache.use_minimal_puts</literal>"
+msgstr "<literal>hibernate.cache.use_minimal_puts</literal>"
#. Tag: entry
-#: configuration.xml:764
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
-"以é¢ç¹ç读æä½ä¸ºä»£ä»·, ä¼åäºçº§ç¼åæ¥æå°ååæä½. å¨Hibernate3ä¸ï¼è¿ä¸ªè®¾ç½®å¯¹"
-"çé群ç¼åé常æç¨, 对é群ç¼åçå®ç°èè¨ï¼é»è®¤æ¯å¼å¯ç. <placeholder-1/>"
+"以é¢ç¹ç读æä½ä¸ºä»£ä»·ï¼ä¼åäºçº§ç¼åæ¥æå°ååæä½ãå¨ Hibernate3 ä¸ï¼è¿ä¸ªè®¾ç½®"
+"对çé群ç¼åé常æç¨ï¼å¯¹é群ç¼åçå®ç°èè¨ï¼é»è®¤æ¯å¼å¯çã "
-#. Tag: literal
-#: configuration.xml:777
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_query_cache"
-msgstr "hibernate.cache.use_query_cache"
+msgid "<literal>hibernate.cache.use_query_cache</literal>"
+msgstr "<literal>hibernate.cache.use_query_cache</literal>"
#. Tag: entry
-#: configuration.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
-msgstr "å
许æ¥è¯¢ç¼å, ä¸ªå«æ¥è¯¢ä»ç¶éè¦è¢«è®¾ç½®ä¸ºå¯ç¼åç. <placeholder-1/>"
+msgstr "å
许æ¥è¯¢ç¼åï¼ä¸ªå«æ¥è¯¢ä»ç¶éè¦è¢«è®¾ç½®ä¸ºå¯ç¼åçã "
-#. Tag: literal
-#: configuration.xml:789
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_second_level_cache"
-msgstr "hibernate.cache.use_second_level_cache"
+msgid "<literal>hibernate.cache.use_second_level_cache</literal>"
+msgstr "<literal>hibernate.cache.use_second_level_cache</literal>"
#. Tag: entry
-#: configuration.xml:791
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache></literal> "
"mapping."
msgstr ""
-"è½ç¨æ¥å®å
¨ç¦æ¢ä½¿ç¨äºçº§ç¼å. 对é£äºå¨ç±»çæ å°å®ä¹ä¸æå®<placeholder-1/>çç±»ï¼"
-"ä¼é»è®¤å¼å¯äºçº§ç¼å. <placeholder-2/>"
+"è½ç¨æ¥å®å
¨ç¦æ¢ä½¿ç¨äºçº§ç¼åã对é£äºå¨ç±»çæ å°å®ä¹ä¸æå® <literal><cache>"
+"</literal> çç±»ï¼ä¼é»è®¤å¼å¯äºçº§ç¼åã "
-#. Tag: literal
-#: configuration.xml:803
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.query_cache_factory"
-msgstr "hibernate.cache.query_cache_factory"
+msgid "<literal>hibernate.cache.query_cache_factory</literal>"
+msgstr "<literal>hibernate.cache.query_cache_factory</literal>"
#. Tag: entry
-#: configuration.xml:805
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache</literal> interface, defaults "
"to the built-in <literal>StandardQueryCache</literal>."
msgstr ""
-"èªå®ä¹å®ç°<placeholder-1/>æ¥å£çç±»å, é»è®¤ä¸ºå
建ç<placeholder-2/>. "
-"<placeholder-3/>"
+"èªå®ä¹å®ç° <literal>QueryCache</literal> æ¥å£çç±»åï¼é»è®¤ä¸ºå
建ç "
+"<literal>StandardQueryCache</literal>ã"
#. Tag: para
-#: configuration.xml:808
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of.QueryCache</"
"literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of.QueryCache</"
+"literal> "
-#. Tag: literal
-#: configuration.xml:816
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.region_prefix"
-msgstr "hibernate.cache.region_prefix"
+msgid "<literal>hibernate.cache.region_prefix</literal>"
+msgstr "<literal>hibernate.cache.region_prefix</literal>"
#. Tag: entry
-#: configuration.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A prefix to use for second-level cache region names."
-msgstr "äºçº§ç¼ååºååçåç¼. <placeholder-1/>"
+msgstr "äºçº§ç¼ååºååçåç¼ã"
#. Tag: para
-#: configuration.xml:820
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<emphasis role=\"strong\">e.g.</emphasis> <literal>prefix</literal>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+msgstr "<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>prefix</literal> "
-#. Tag: literal
-#: configuration.xml:828
+#. Tag: entry
#, no-c-format
-msgid "hibernate.cache.use_structured_entries"
-msgstr "hibernate.cache.use_structured_entries"
+msgid "<literal>hibernate.cache.use_structured_entries</literal>"
+msgstr "<literal>hibernate.cache.use_structured_entries</literal>"
#. Tag: entry
-#: configuration.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
-msgstr "强å¶Hibernate以æ´äººæ§åçæ ¼å¼å°æ°æ®åå
¥äºçº§ç¼å. <placeholder-1/>"
+msgstr "å¼ºå¶ Hibernate 以æ´äººæ§åçæ ¼å¼å°æ°æ®åå
¥äºçº§ç¼åã"
#. Tag: title
-#: configuration.xml:844
#, no-c-format
msgid "Hibernate Transaction Properties"
-msgstr "Hibernateäºå¡å±æ§"
+msgstr "Hibernate äºå¡å±æ§"
-#. Tag: literal
-#: configuration.xml:857
+#. Tag: entry
#, no-c-format
-msgid "hibernate.transaction.factory_class"
-msgstr "hibernate.transaction.factory_class"
+msgid "<literal>hibernate.transaction.factory_class</literal>"
+msgstr "<literal>hibernate.transaction.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:859
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory</literal> to use with "
"Hibernate <literal>Transaction</literal> API (defaults to "
"<literal>JDBCTransactionFactory</literal>)."
msgstr ""
-"ä¸ä¸ª<placeholder-1/>çç±»å, ç¨äºHibernate <placeholder-2/> API (é»è®¤ä¸º"
-"<placeholder-3/>). <placeholder-4/>"
+"ä¸ä¸ª <literal>TransactionFactory</literal> çç±»åï¼ç¨äº Hibernate "
+"<literal>Transaction</literal> APIï¼é»è®¤ä¸º <literal>JDBCTransactionFactory</"
+"literal>ï¼ã"
#. Tag: para
-#: configuration.xml:863
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionFactory</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of."
+"TransactionFactory</literal> "
-#. Tag: literal
-#: configuration.xml:871
+#. Tag: entry
#, no-c-format
-msgid "jta.UserTransaction"
-msgstr "jta.UserTransaction"
+msgid "<literal>jta.UserTransaction</literal>"
+msgstr "<literal>jta.UserTransaction</literal>"
#. Tag: entry
-#: configuration.xml:873
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory</literal> to obtain the "
"JTA <literal>UserTransaction</literal> from the application server."
msgstr ""
-"ä¸ä¸ªJNDIååï¼è¢«<placeholder-1/>ç¨æ¥ä»åºç¨æå¡å¨è·åJTA <placeholder-2/>. "
-"<placeholder-3/>"
+"ä¸ä¸ª JNDI ååï¼è¢« <literal>JTATransactionFactory</literal> ç¨æ¥ä»åºç¨æå¡å¨"
+"è·å JTA <literal>UserTransaction</literal>ã"
-#. Tag: literal
-#: configuration.xml:885
-#, no-c-format
-msgid "hibernate.transaction.manager_lookup_class"
-msgstr "hibernate.transaction.manager_lookup_class"
-
#. Tag: entry
-#: configuration.xml:887
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.manager_lookup_class</literal>"
+msgstr "<literal>hibernate.transaction. manager_lookup_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup</literal>. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
-"ä¸ä¸ª<placeholder-1/>çç±»å - å½ä½¿ç¨JVM级ç¼åï¼æå¨JTAç¯å¢ä¸ä½¿ç¨hiloçæå¨çæ¶"
-"åéè¦è¯¥ç±». <placeholder-2/>"
+"ä¸ä¸ª <literal>TransactionManagerLookup</literal> çç±»å â å½ä½¿ç¨ JVM 级ç¼åï¼"
+"æå¨ JTA ç¯å¢ä¸ä½¿ç¨ hilo çæå¨çæ¶åéè¦è¯¥ç±»ã "
#. Tag: para
-#: configuration.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>classname.of."
+"TransactionManagerLookup</literal> "
-#. Tag: literal
-#: configuration.xml:899
-#, no-c-format
-msgid "hibernate.transaction.flush_before_completion"
-msgstr "hibernate.transaction.flush_before_completion"
-
#. Tag: entry
-#: configuration.xml:901
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.flush_before_completion</literal>"
+msgstr "<literal>hibernate.transaction. flush_before_completion</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"妿å¼å¯, sessionå¨äºå¡å®æåå°è¢«èªå¨æ¸
æ´(flush)ã ç°å¨æ´å¥½çæ¹æ³æ¯ä½¿ç¨èªå¨"
-"sessionä¸ä¸æç®¡çã请åè§<xref linkend=\"architecture-current-session\"/>ã "
-"<placeholder-1/>"
+"妿å¼å¯ï¼session å¨äºå¡å®æåå°è¢«èªå¨æ¸
æ´ï¼flushï¼ãç°å¨æ´å¥½çæ¹æ³æ¯ä½¿ç¨èª"
+"å¨ session ä¸ä¸æç®¡çã请åè§ <xref linkend=\"architecture-current-session\"/"
+">ã "
-#. Tag: literal
-#: configuration.xml:914
-#, no-c-format
-msgid "hibernate.transaction.auto_close_session"
-msgstr "hibernate.transaction.auto_close_session"
-
#. Tag: entry
-#: configuration.xml:916
#, fuzzy, no-c-format
+msgid "<literal>hibernate.transaction.auto_close_session</literal>"
+msgstr "<literal>hibernate.transaction. auto_close_session</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
-"management is preferred, see <xref linkend=\"architecture-current-session\"/"
+"management is preferred, see <xref linkend=\"architecture-current-session\" /"
">."
msgstr ""
-"妿å¼å¯, sessionå¨äºå¡å®æåå°è¢«èªå¨å
³éã ç°å¨æ´å¥½çæ¹æ³æ¯ä½¿ç¨èªå¨sessionä¸"
-"ä¸æç®¡çã请åè§<xref linkend=\"architecture-current-session\"/>ã "
-"<placeholder-1/>"
+"妿å¼å¯ï¼session å¨äºå¡å®æåå°è¢«èªå¨å
³éã ç°å¨æ´å¥½çæ¹æ³æ¯ä½¿ç¨èªå¨ "
+"session ä¸ä¸æç®¡çã请åè§ <xref linkend=\"architecture-current-session\"/"
+">ã "
#. Tag: title
-#: configuration.xml:932
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "å
¶ä»å±æ§"
-#. Tag: literal
-#: configuration.xml:945
-#, no-c-format
-msgid "hibernate.current_session_context_class"
-msgstr "hibernate.current_session_context_class"
-
#. Tag: entry
-#: configuration.xml:947
#, fuzzy, no-c-format
+msgid "<literal>hibernate.current_session_context_class</literal>"
+msgstr "<literal>hibernate. current_session_context_class</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session</literal>. See <xref linkend=\"architecture-current-session"
-"\"/> for more information about the built-in strategies."
+"\" /> for more information about the built-in strategies."
msgstr ""
-"为\"å½å\" <placeholder-1/>æå®ä¸ä¸ª(èªå®ä¹ç)çç¥ãå
³äºå
ç½®çç¥ç详æ
ï¼è¯·åè§"
-"<xref linkend=\"architecture-current-session\"/> ã <placeholder-2/>"
+"为\"å½å\" <literal>Session</literal> æå®ä¸ä¸ªï¼èªå®ä¹çï¼çç¥ãå
³äºå
ç½®çç¥"
+"ç详æ
ï¼è¯·åè§ <xref linkend=\"architecture-current-session\"/>ã "
#. Tag: para
-#: configuration.xml:952
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
"Class</literal>"
msgstr ""
-"<emphasis role=\"strong\">eg.</emphasis><literal>jta</literal> | "
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>jta</literal> | "
"<literal>thread</literal> | <literal>managed</literal> | <literal>custom."
-"Class</literal>"
+"Class</literal> "
-#. Tag: literal
-#: configuration.xml:961
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.factory_class"
-msgstr "hibernate.query.factory_class"
+msgid "<literal>hibernate.query.factory_class</literal>"
+msgstr "<literal>hibernate.query.factory_class</literal>"
#. Tag: entry
-#: configuration.xml:963
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Chooses the HQL parser implementation."
-msgstr "éæ©HQLè§£æå¨çå®ç°. <placeholder-1/>"
+msgstr "éæ© HQL è§£æå¨çå®ç°ã"
#. Tag: para
-#: configuration.xml:965
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis><literal>org.hibernate.hql.ast."
-"ASTQueryTranslatorFactory</literal> or <literal>org.hibernate.hql.classic."
-"ClassicQueryTranslatorFactory</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>org.hibernate.hql.ast."
+"ASTQueryTranslatorFactory</literal> æ <literal>org.hibernate.hql.classic."
+"ClassicQueryTranslatorFactory</literal> "
-#. Tag: literal
-#: configuration.xml:974
+#. Tag: entry
#, no-c-format
-msgid "hibernate.query.substitutions"
-msgstr "hibernate.query.substitutions"
+msgid "<literal>hibernate.query.substitutions</literal>"
+msgstr "<literal>hibernate.query.substitutions</literal>"
#. Tag: entry
-#: configuration.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
-"å°Hibernateæ¥è¯¢ä¸çç¬¦å·æ å°å°SQLæ¥è¯¢ä¸çç¬¦å· (符å·å¯è½æ¯å½æ°åæå¸¸éåå). "
-"<placeholder-1/>"
+"å° Hibernate æ¥è¯¢ä¸çç¬¦å·æ å°å° SQL æ¥è¯¢ä¸ç符å·ï¼ç¬¦å·å¯è½æ¯å½æ°åæå¸¸éå"
+"åï¼ã "
#. Tag: para
-#: configuration.xml:979
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">eg.</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"<emphasis role=\"strong\">åå¼</emphasis><literal>true</literal> | "
-"<literal>false</literal>"
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>hqlLiteral=SQL_LITERAL, "
+"hqlFunction=SQLFUNC</literal> "
-#. Tag: literal
-#: configuration.xml:987
+#. Tag: entry
#, no-c-format
-msgid "hibernate.hbm2ddl.auto"
-msgstr "hibernate.hbm2ddl.auto"
+msgid "<literal>hibernate.hbm2ddl.auto</literal>"
+msgstr "<literal>hibernate.hbm2ddl.auto</literal>"
#. Tag: entry
-#: configuration.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory</literal> is created. With <literal>create-drop</"
"literal>, the database schema will be dropped when the "
"<literal>SessionFactory</literal> is closed explicitly."
msgstr ""
-"å¨<placeholder-1/>å建æ¶ï¼èªå¨æ£æ¥æ°æ®åºç»æï¼æè
å°æ°æ®åºschemaçDDL导åºå°æ°"
-"æ®åº. ä½¿ç¨ <placeholder-2/>æ¶,卿¾å¼å
³é<placeholder-3/>æ¶ï¼å°dropææ°æ®åº"
-"schema. <placeholder-4/>"
+"å¨ <literal>SessionFactory</literal> å建æ¶ï¼èªå¨æ£æ¥æ°æ®åºç»æï¼æè
å°æ°æ®"
+"åº schema ç DDL 导åºå°æ°æ®åºãä½¿ç¨ <literal>create-drop</literal> æ¶ï¼å¨æ¾å¼"
+"å
³é <literal>SessionFactory</literal> æ¶ï¼å°å é¤ææ°æ®åº schemaã "
#. Tag: para
-#: configuration.xml:995
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g.</emphasis> <literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
"drop</literal>"
msgstr ""
-"<emphasis role=\"strong\">åå¼</emphasis><literal>validate</literal> | "
+"<emphasis role=\"strong\">ä¾å¦ï¼</emphasis><literal>validate</literal> | "
"<literal>update</literal> | <literal>create</literal> | <literal>create-"
-"drop</literal>"
+"drop</literal> "
-#. Tag: literal
-#: configuration.xml:1004
-#, no-c-format
-msgid "hibernate.cglib.use_reflection_optimizer"
-msgstr "hibernate.cglib.use_reflection_optimizer"
-
#. Tag: entry
-#: configuration.xml:1006
#, fuzzy, no-c-format
+msgid "<literal>hibernate.cglib.use_reflection_optimizer</literal>"
+msgstr "<literal>hibernate.cglib. use_reflection_optimizer</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
"Hibernate always requires CGLIB even if you turn off the optimizer. You "
"cannot set this property in <literal>hibernate.cfg.xml</literal>."
msgstr ""
-"å¼å¯CGLIBæ¥æ¿ä»£è¿è¡æ¶åå°æºå¶(ç³»ç»çº§å±æ§). åå°æºå¶ææ¶å¨é¤éæ¶æ¯è¾æç¨. 注æ"
-"å³ä½¿å
³éè¿ä¸ªä¼å, Hibernateè¿æ¯éè¦CGLIB. ä½ ä¸è½å¨<placeholder-1/>ä¸è®¾ç½®æ¤å±"
-"æ§. <placeholder-2/>"
+"å¼å¯ CGLIB æ¥æ¿ä»£è¿è¡æ¶åå°æºå¶ï¼ç³»ç»çº§å±æ§ï¼ãåå°æºå¶ææ¶å¨é¤éæ¶æ¯è¾æç¨ã"
+"注æå³ä½¿å
³éè¿ä¸ªä¼åï¼Hibernate è¿æ¯éè¦ CGLIBãä½ ä¸è½å¨ <literal>hibernate."
+"cfg.xml</literal> ä¸è®¾ç½®æ¤å±æ§ã "
#. Tag: title
-#: configuration.xml:1022
#, no-c-format
msgid "SQL Dialects"
-msgstr "SQLæ¹è¨"
+msgstr "SQL æ¹è¨"
#. Tag: para
-#: configuration.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect</literal> property to the correct "
"<literal>org.hibernate.dialect.Dialect</literal> subclass for your database. "
@@ -2148,318 +1355,263 @@
"the other properties listed above. This means that you will not have to "
"specify them manually."
msgstr ""
-"ä½ åºå½æ»æ¯ä¸ºä½ çæ°æ®åºå°<literal>hibernate.dialect</literal>屿§è®¾ç½®ææ£ç¡®ç "
-"<literal>org.hibernate.dialect.Dialect</literal>åç±». å¦æä½ æå®ä¸ç§æ¹è¨, "
-"Hibernateå°ä¸ºä¸é¢ååºçä¸äºå±æ§ä½¿ç¨åççé»è®¤å¼, ä¸ºä½ çå»äºæå·¥æå®å®ä»¬çå"
-"夫."
+"ä½ åºå½æ»æ¯ä¸ºä½ çæ°æ®åºå° <literal>hibernate.dialect</literal> 屿§è®¾ç½®ææ£ç¡®"
+"ç <literal>org.hibernate.dialect.Dialect</literal> åç±»ãå¦æä½ æå®ä¸ç§æ¹"
+"è¨ï¼Hibernate å°ä¸ºä¸é¢ååºçä¸äºå±æ§ä½¿ç¨åççé»è®¤å¼ï¼è¿æ ·ä½ å°±ä¸ç¨æå·¥æå®å®"
+"们ã"
#. Tag: title
-#: configuration.xml:1032
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect</literal>)"
-msgstr "Hibernate SQLæ¹è¨ (<literal>hibernate.dialect</literal>)"
+msgstr "Hibernate SQL æ¹è¨ï¼<literal>hibernate.dialect</literal>ï¼"
#. Tag: entry
-#: configuration.xml:1040
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
-#: configuration.xml:1041
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Dialect"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"Dialect\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¹è¨"
+msgstr "Dialect"
#. Tag: entry
-#: configuration.xml:1046
#, no-c-format
-msgid "<entry>DB2</entry>"
-msgstr ""
+msgid "DB2"
+msgstr "DB2"
-#. Tag: literal
-#: configuration.xml:1046
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2Dialect"
-msgstr "org.hibernate.dialect.DB2Dialect"
+msgid "<literal>org.hibernate.dialect.DB2Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1049
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
-#. Tag: literal
-#: configuration.xml:1049
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2400Dialect"
-msgstr "org.hibernate.dialect.DB2400Dialect"
+msgid "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2400Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1052
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
-#. Tag: literal
-#: configuration.xml:1052
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.DB2390Dialect"
-msgstr "org.hibernate.dialect.DB2390Dialect"
+msgid "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
+msgstr "<literal>org.hibernate.dialect.DB2390Dialect</literal>"
#. Tag: entry
-#: configuration.xml:1055
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
-#. Tag: literal
-#: configuration.xml:1055
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PostgreSQLDialect"
-msgstr "org.hibernate.dialect.PostgreSQLDialect"
+msgid "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1058
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
-#. Tag: literal
-#: configuration.xml:1058
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLDialect"
-msgstr "org.hibernate.dialect.MySQLDialect"
+msgid "<literal>org.hibernate.dialect.MySQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1061
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL with InnoDB"
-#. Tag: literal
-#: configuration.xml:1061
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLInnoDBDialect"
-msgstr "org.hibernate.dialect.MySQLInnoDBDialect"
+msgid "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1064
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL with MyISAM"
-#. Tag: literal
-#: configuration.xml:1064
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MySQLMyISAMDialect"
-msgstr "org.hibernate.dialect.MySQLMyISAMDialect"
+msgid "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect</literal>"
#. Tag: entry
-#: configuration.xml:1067
#, no-c-format
msgid "Oracle (any version)"
-msgstr "Oracle (any version)"
+msgstr "Oracleï¼any versionï¼"
-#. Tag: literal
-#: configuration.xml:1067
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.OracleDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+msgid "<literal>org.hibernate.dialect.OracleDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.OracleDialect</literal>"
#. Tag: entry
-#: configuration.xml:1070
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 9i"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 9i"
-#. Tag: literal
-#: configuration.xml:1070
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle9iDialect"
-msgstr "org.hibernate.dialect.Oracle9Dialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle9iDialect</literal>"
#. Tag: entry
-#: configuration.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Oracle 10g"
-msgstr "Oracle 9i/10g"
+msgstr "Oracle 10g"
-#. Tag: literal
-#: configuration.xml:1073
-#, fuzzy, no-c-format
-msgid "org.hibernate.dialect.Oracle10gDialect"
-msgstr "org.hibernate.dialect.OracleDialect"
+#. Tag: entry
+#, no-c-format
+msgid "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.Oracle10gDialect</literal>"
#. Tag: entry
-#: configuration.xml:1076
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
-#. Tag: literal
-#: configuration.xml:1076
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseDialect"
-msgstr "org.hibernate.dialect.SybaseDialect"
+msgid "<literal>org.hibernate.dialect.SybaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1079
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
-#. Tag: literal
-#: configuration.xml:1079
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SybaseAnywhereDialect"
-msgstr "org.hibernate.dialect.SybaseAnywhereDialect"
+msgid "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect</literal>"
#. Tag: entry
-#: configuration.xml:1082
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
-#. Tag: literal
-#: configuration.xml:1082
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SQLServerDialect"
-msgstr "org.hibernate.dialect.SQLServerDialect"
+msgid "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SQLServerDialect</literal>"
#. Tag: entry
-#: configuration.xml:1085
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
-#. Tag: literal
-#: configuration.xml:1085
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.SAPDBDialect"
-msgstr "org.hibernate.dialect.SAPDBDialect"
+msgid "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.SAPDBDialect</literal>"
#. Tag: entry
-#: configuration.xml:1088
#, no-c-format
msgid "Informix"
msgstr "Informix"
-#. Tag: literal
-#: configuration.xml:1088
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InformixDialect"
-msgstr "org.hibernate.dialect.InformixDialect"
+msgid "<literal>org.hibernate.dialect.InformixDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InformixDialect</literal>"
#. Tag: entry
-#: configuration.xml:1091
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
-#. Tag: literal
-#: configuration.xml:1091
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.HSQLDialect"
-msgstr "org.hibernate.dialect.HSQLDialect"
+msgid "<literal>org.hibernate.dialect.HSQLDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.HSQLDialect</literal>"
#. Tag: entry
-#: configuration.xml:1094
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
-#. Tag: literal
-#: configuration.xml:1094
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.IngresDialect"
-msgstr "org.hibernate.dialect.IngresDialect"
+msgid "<literal>org.hibernate.dialect.IngresDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.IngresDialect</literal>"
#. Tag: entry
-#: configuration.xml:1097
#, no-c-format
msgid "Progress"
msgstr "Progress"
-#. Tag: literal
-#: configuration.xml:1097
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.ProgressDialect"
-msgstr "org.hibernate.dialect.ProgressDialect"
+msgid "<literal>org.hibernate.dialect.ProgressDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.ProgressDialect</literal>"
#. Tag: entry
-#: configuration.xml:1100
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
-#. Tag: literal
-#: configuration.xml:1100
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.MckoiDialect"
-msgstr "org.hibernate.dialect.MckoiDialect"
+msgid "<literal>org.hibernate.dialect.MckoiDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.MckoiDialect</literal>"
#. Tag: entry
-#: configuration.xml:1103
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
-#. Tag: literal
-#: configuration.xml:1103
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.InterbaseDialect"
-msgstr "org.hibernate.dialect.InterbaseDialect"
+msgid "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.InterbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1106
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
-#. Tag: literal
-#: configuration.xml:1106
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.PointbaseDialect"
-msgstr "org.hibernate.dialect.PointbaseDialect"
+msgid "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.PointbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1109
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
-#. Tag: literal
-#: configuration.xml:1109
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FrontbaseDialect"
-msgstr "org.hibernate.dialect.FrontbaseDialect"
+msgid "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FrontbaseDialect</literal>"
#. Tag: entry
-#: configuration.xml:1112
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
-#. Tag: literal
-#: configuration.xml:1112
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.dialect.FirebirdDialect"
-msgstr "org.hibernate.dialect.FirebirdDialect"
+msgid "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
+msgstr "<literal>org.hibernate.dialect.FirebirdDialect</literal>"
#. Tag: title
-#: configuration.xml:1121
#, no-c-format
msgid "Outer Join Fetching"
-msgstr "å¤è¿æ¥æå(Outer Join Fetching)"
+msgstr "å¤è¿æ¥æåï¼Outer Join Fetchingï¼"
#. Tag: para
-#: configuration.xml:1123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching</emphasis> will often increase performance by "
@@ -2469,14 +1621,14 @@
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT</literal>."
msgstr ""
-"å¦æä½ çæ°æ®åºæ¯æANSI, OracleæSybase飿 ¼çå¤è¿æ¥, <emphasis>å¤è¿æ¥æå</"
-"emphasis>é常è½éè¿éå¶å¾è¿æ°æ®åºæ¬¡æ° (æ´å¤çå·¥ä½äº¤ç±æ°æ®åºèªå·±æ¥å®æ)æ¥æé«"
-"æç. å¤è¿æ¥æåå
许å¨å个<literal>SELECT</literal>SQLè¯å¥ä¸ï¼ éè¿many-to-"
-"one, one-to-many, many-to-manyåone-to-oneå
³èè·åè¿æ¥å¯¹è±¡çæ´ä¸ªå¯¹è±¡å¾."
+"å¦æä½ çæ°æ®åºæ¯æ ANSIãOracle æ Sybase 飿 ¼çå¤è¿æ¥ï¼<emphasis>å¤è¿æ¥æå"
+"</emphasis>é常è½éè¿éå¶å¾è¿æ°æ®åºæ¬¡æ°ï¼æ´å¤çå·¥ä½äº¤ç±æ°æ®åºèªå·±æ¥å®æï¼æ¥æ"
+"髿çãå¤è¿æ¥æåå
许å¨å个 <literal>SELECT</literal> SQL è¯å¥ä¸ï¼ éè¿ "
+"many-to-oneãone-to-manyãmany-to-many å one-to-one å
³èè·åè¿æ¥å¯¹è±¡çæ´ä¸ªå¯¹"
+"象å¾ã"
#. Tag: para
-#: configuration.xml:1132
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally</emphasis> by setting "
"the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</"
@@ -2484,26 +1636,23 @@
"fetching for one-to-one and many-to-one associations that have been mapped "
"with <literal>fetch=\"join\"</literal>."
msgstr ""
-"å°<literal>hibernate.max_fetch_depth</literal>设为<literal>0</literal>è½å¨"
-"<emphasis>å
¨å±</emphasis> èå´å
ç¦æ¢å¤è¿æ¥æå. 设为<literal>1</literal>ææ´"
-"é«å¼è½å¯ç¨one-to-oneåmany-to-oneouterå
³èçå¤è¿æ¥æå, å®ä»¬éè¿ "
-"<literal>fetch=\"join\"</literal>æ¥æ å°."
+"å° <literal>hibernate.max_fetch_depth</literal> 设为 <literal>0</literal> è½"
+"å¨<emphasis>å
¨å±</emphasis> èå´å
ç¦æ¢å¤è¿æ¥æåã设为 <literal>1</literal> "
+"ææ´é«å¼è½å¯ç¨ one-to-one å many-to-oneouter å
³èçå¤è¿æ¥æåï¼å®ä»¬éè¿ "
+"<literal>fetch=\"join\"</literal> æ¥æ å°ã "
#. Tag: para
-#: configuration.xml:1140
#, no-c-format
-msgid "See <xref linkend=\"performance-fetching\"/> for more information."
-msgstr "åè§<xref linkend=\"performance-fetching\"/>è·å¾æ´å¤ä¿¡æ¯."
+msgid "See <xref linkend=\"performance-fetching\" /> for more information."
+msgstr "åè§ <xref linkend=\"performance-fetching\"/> è·å¾æ´å¤ä¿¡æ¯ã "
#. Tag: title
-#: configuration.xml:1147
#, no-c-format
msgid "Binary Streams"
-msgstr "äºè¿å¶æµ (Binary Streams)"
+msgstr "äºè¿å¶æµï¼Binary Streamsï¼"
#. Tag: para
-#: configuration.xml:1149
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte</literal> arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
@@ -2511,83 +1660,63 @@
"should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. "
"<emphasis>This is a system-level setting only.</emphasis>"
msgstr ""
-"Oracleéå¶é£äºéè¿JDBC驱å¨ä¼ è¾ç<literal>åè</literal>æ°ç»çæ°ç®. å¦æä½ å¸æ"
-"使ç¨<literal>äºè¿å¼ (binary)</literal>æ <literal>å¯åºååç (serializable)</"
-"literal>ç±»åç大对象, ä½ åºè¯¥å¼å¯ <literal>hibernate.jdbc."
-"use_streams_for_binary</literal>屿§. <emphasis>è¿æ¯ç³»ç»çº§å±æ§.</emphasis>"
+"Oracle éå¶é£äºéè¿ JDBC 驱å¨ä¼ è¾ç<literal>åè</literal>æ°ç»çæ°ç®ãå¦æä½ "
+"å¸æä½¿ç¨<literal>äºè¿å¼ï¼binaryï¼</literal>æ <literal>å¯åºååç"
+"ï¼serializableï¼</literal>ç±»åç大对象ï¼ä½ åºè¯¥å¼å¯ <literal>hibernate.jdbc."
+"use_streams_for_binary</literal> 屿§ã<emphasis>è¿æ¯ç³»ç»çº§å±æ§ã</emphasis> "
#. Tag: title
-#: configuration.xml:1160
#, no-c-format
msgid "Second-level and query cache"
msgstr "äºçº§ç¼å䏿¥è¯¢ç¼å"
#. Tag: para
-#: configuration.xml:1162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache</literal> allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
-"See the <xref linkend=\"performance-cache\"/> for more information."
+"See the <xref linkend=\"performance-cache\" /> for more information."
msgstr ""
-"以<literal>hibernate.cache</literal>为åç¼ç屿§å
è®¸ä½ å¨Hibernateä¸ï¼ä½¿ç¨è¿ç¨"
-"æç¾¤éèå´å
çäºçº§ç¼åç³»ç». åè§<xref linkend=\"performance-cache\"/>è·åæ´å¤"
-"ç详æ
."
+"以 <literal>hibernate.cache</literal> 为åç¼ç屿§å
è®¸ä½ å¨ Hibernate ä¸ï¼ä½¿ç¨"
+"è¿ç¨æç¾¤éèå´å
çäºçº§ç¼åç³»ç»ãåè§ <xref linkend=\"performance-cache\"/> è·"
+"åæ´å¤ç详æ
ã"
#. Tag: title
-#: configuration.xml:1172
#, no-c-format
msgid "Query Language Substitution"
msgstr "æ¥è¯¢è¯è¨ä¸çæ¿æ¢"
#. Tag: para
-#: configuration.xml:1174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨<literal>hibernate.query.substitutions</literal>å¨Hibernateä¸å®ä¹æ°"
-"çæ¥è¯¢ç¬¦å·. ä¾å¦:"
+"ä½ å¯ä»¥ä½¿ç¨ <literal>hibernate.query.substitutions</literal> å¨ Hibernate ä¸å®"
+"乿°çæ¥è¯¢ç¬¦å·ãä¾å¦ï¼ "
-#. Tag: programlisting
-#: configuration.xml:1179
-#, no-c-format
-msgid "hibernate.query.substitutions true=1, false=0"
-msgstr "hibernate.query.substitutions true=1, false=0"
-
#. Tag: para
-#: configuration.xml:1181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would cause the tokens <literal>true</literal> and <literal>false</"
"literal> to be translated to integer literals in the generated SQL."
msgstr ""
-"å°å¯¼è´ç¬¦å·<literal>true</literal>å<literal>false</literal>å¨çæçSQLä¸è¢«ç¿»"
-"è¯ææ´æ°å¸¸é."
+"å°å¯¼è´ç¬¦å· <literal>true</literal> å <literal>false</literal> å¨çæç SQL "
+"ä¸è¢«ç¿»è¯ææ´æ°å¸¸éã"
-#. Tag: programlisting
-#: configuration.xml:1186
-#, no-c-format
-msgid "hibernate.query.substitutions toLowercase=LOWER"
-msgstr "hibernate.query.substitutions toLowercase=LOWER"
-
#. Tag: para
-#: configuration.xml:1188
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER</literal> function."
-msgstr "å°å
è®¸ä½ éå½åSQLä¸ç<literal>LOWER</literal>彿°."
+msgstr "å°å
è®¸ä½ éå½å SQL ä¸ç <literal>LOWER</literal> 彿°ã"
#. Tag: title
-#: configuration.xml:1195
#, no-c-format
msgid "Hibernate statistics"
-msgstr "Hibernateçç»è®¡(statistics)æºå¶"
+msgstr "Hibernate çç»è®¡ï¼statisticsï¼æºå¶"
#. Tag: para
-#: configuration.xml:1197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics</literal>, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
@@ -2595,20 +1724,18 @@
"configured to expose these statistics via JMX. Read the Javadoc of the "
"interfaces in <literal>org.hibernate.stats</literal> for more information."
msgstr ""
-"å¦æä½ å¼å¯<literal>hibernate.generate_statistics</literal>, é£ä¹å½ä½ éè¿ "
-"<literal>SessionFactory.getStatistics()</literal>è°æ´æ£å¨è¿è¡çç³»ç»æ¶ï¼"
-"Hibernateå°å¯¼åºå¤§éæç¨çæ°æ®. Hibernateçè³è½è¢«é
ç½®æéè¿JMX导åºè¿äºç»è®¡ä¿¡"
-"æ¯. åè<literal>org.hibernate.stats</literal>䏿¥å£çJavadocï¼ä»¥è·å¾æ´å¤ä¿¡"
-"æ¯."
+"å¦æä½ å¼å¯ <literal>hibernate.generate_statistics</literal>ï¼é£ä¹å½ä½ éè¿ "
+"<literal>SessionFactory.getStatistics()</literal> è°æ´æ£å¨è¿è¡çç³»ç»æ¶ï¼"
+"Hibernate å°å¯¼åºå¤§éæç¨çæ°æ®ãHibernate çè³è½è¢«é
ç½®æéè¿ JMX 导åºè¿äºç»è®¡"
+"ä¿¡æ¯ãåè <literal>org.hibernate.stats</literal> 䏿¥å£ç Javadocï¼ä»¥è·å¾æ´"
+"å¤ä¿¡æ¯ã "
#. Tag: title
-#: configuration.xml:1209
#, no-c-format
msgid "Logging"
msgstr "æ¥å¿"
#. Tag: para
-#: configuration.xml:1211
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
@@ -2624,10 +1751,18 @@
"properties file is distributed with Hibernate in the <literal>src/</literal> "
"directory."
msgstr ""
+"Hibernate å©ç¨ <ulink url=\"http://www.slf4j.org/\">Simple Logging Facade "
+"for Java</ulink> (SLF4J) æ¥è®°å½ä¸åç³»ç»äºä»¶çæ¥å¿ãSLF4J å¯ä»¥æ ¹æ®ä½ éæ©çç»å®"
+"ææ¥å¿è¾åºå°å 个æ¥å¿æ¡æ¶ï¼NOPãSimpleãlog4j version 1.2ãJDK 1.4 loggingã"
+"JCL æ logbackï¼ä¸ã为äºè®¾ç½®æ¥å¿ï¼ä½ éè¦å¨ classpath éå å
¥ <filename>slf4j-"
+"api.jar</filename> åä½ éæ©çç»å®ç JAR æä»¶ï¼ä½¿ç¨ Log4J æ¶å å
¥ "
+"<filename>slf4j-log4j12.jar</filename>ï¼ãæ´å¤çç»è请åè SLF4J <ulink url="
+"\"http://www.slf4j.org/manual.html\">ææ¡£</ulink>ãè¦ä½¿ç¨ Log4jï¼ä½ ä¹éè¦å¨ "
+"classpath éå å
¥ <filename>log4j.properties</filename> æä»¶ãHibernate éç "
+"<literal>src/</literal> ç®å½é带æä¸ä¸ªå±æ§æä»¶çä¾åã"
#. Tag: para
-#: configuration.xml:1222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
@@ -2635,154 +1770,131 @@
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
-"æä»¬å¼ºçå»ºè®®ä½ çæä¸ä¸Hibernateçæ¥å¿æ¶æ¯. å¨ä¸å¤±å¯è¯»æ§çåæä¸ï¼ æä»¬åäºå¾"
-"å¤å·¥ä½ï¼ä½¿Hibernateçæ¥å¿å¯è½å°è¯¦ç». è¿æ¯å¿
è¦çæ¥éå©å¨. æä»¤äººæå
´è¶£çæ¥å¿å"
-"ç±»æå¦ä¸è¿äº:"
+"æä»¬å¼ºçå»ºè®®ä½ çæä¸ä¸ Hibernate çæ¥å¿æ¶æ¯ãå¨ä¸å¤±å¯è¯»æ§çåæä¸ï¼æä»¬åäºå¾"
+"å¤å·¥ä½ï¼ä½¿ Hibernate çæ¥å¿å¯è½å°è¯¦ç»ãè¿æ¯å¿
è¦çæ¥éå©å¨ãæä»¤äººæå
´è¶£çæ¥å¿"
+"åç±»æå¦ä¸è¿äºï¼"
#. Tag: title
-#: configuration.xml:1231
#, no-c-format
msgid "Hibernate Log Categories"
-msgstr "Hibernateæ¥å¿ç±»å«"
+msgstr "Hibernate æ¥å¿ç±»å«"
#. Tag: entry
-#: configuration.xml:1237
#, no-c-format
msgid "Category"
msgstr "ç±»å«"
#. Tag: entry
-#: configuration.xml:1238
#, no-c-format
msgid "Function"
msgstr "åè½"
-#. Tag: literal
-#: configuration.xml:1243
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.SQL"
-msgstr "org.hibernate.SQL"
+msgid "<literal>org.hibernate.SQL</literal>"
+msgstr "<literal>org.hibernate.SQL</literal>"
#. Tag: entry
-#: configuration.xml:1244
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
-msgstr "卿æSQL DMLè¯å¥è¢«æ§è¡æ¶ä¸ºå®ä»¬è®°å½æ¥å¿"
+msgstr "卿æ SQL DML è¯å¥è¢«æ§è¡æ¶ä¸ºå®ä»¬è®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1247
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.type"
-msgstr "org.hibernate.type"
+msgid "<literal>org.hibernate.type</literal>"
+msgstr "<literal>org.hibernate.type</literal>"
#. Tag: entry
-#: configuration.xml:1248
#, no-c-format
msgid "Log all JDBC parameters"
-msgstr "为ææJDBCåæ°è®°å½æ¥å¿"
+msgstr "ä¸ºææ JDBC åæ°è®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1251
-#, no-c-format
-msgid "org.hibernate.tool.hbm2ddl"
-msgstr "org.hibernate.tool.hbm2ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.tool.hbm2ddl</literal>"
+msgstr "<literal>org.hibernate.tool. hbm2ddl</literal>"
#. Tag: entry
-#: configuration.xml:1252
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
-msgstr "卿æSQL DDLè¯å¥æ§è¡æ¶ä¸ºå®ä»¬è®°å½æ¥å¿"
+msgstr "卿æ SQL DDL è¯å¥æ§è¡æ¶ä¸ºå®ä»¬è®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1255
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.pretty"
-msgstr "org.hibernate.pretty"
+msgid "<literal>org.hibernate.pretty</literal>"
+msgstr "<literal>org.hibernate.pretty</literal>"
#. Tag: entry
-#: configuration.xml:1256
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
-msgstr "å¨sessionæ¸
æ´(flush)æ¶ï¼ä¸ºææä¸å
¶å
³èçå®ä½(æå¤20个)çç¶æè®°å½æ¥å¿"
+msgstr ""
+"å¨ session æ¸
æ´ï¼flushï¼æ¶ï¼ä¸ºææä¸å
¶å
³èçå®ä½ï¼æå¤ 20 个ï¼çç¶æè®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1262
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.cache"
-msgstr "org.hibernate.cache"
+msgid "<literal>org.hibernate.cache</literal>"
+msgstr "<literal>org.hibernate.cache</literal>"
#. Tag: entry
-#: configuration.xml:1263
#, no-c-format
msgid "Log all second-level cache activity"
msgstr "为ææäºçº§ç¼åçæ´»å¨è®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1266
-#, no-c-format
-msgid "org.hibernate.transaction"
-msgstr "org.hibernate.transaction"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.transaction</literal>"
+msgstr "<literal>org.hibernate. transaction</literal>"
#. Tag: entry
-#: configuration.xml:1267
#, no-c-format
msgid "Log transaction related activity"
msgstr "为äºå¡ç¸å
³çæ´»å¨è®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1270
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.jdbc"
-msgstr "org.hibernate.jdbc"
+msgid "<literal>org.hibernate.jdbc</literal>"
+msgstr "<literal>org.hibernate.jdbc</literal>"
#. Tag: entry
-#: configuration.xml:1271
#, no-c-format
msgid "Log all JDBC resource acquisition"
-msgstr "为ææJDBCèµæºçè·åè®°å½æ¥å¿"
+msgstr "ä¸ºææ JDBC èµæºçè·åè®°å½æ¥å¿"
-#. Tag: literal
-#: configuration.xml:1274
-#, no-c-format
-msgid "org.hibernate.hql.ast.AST"
-msgstr "org.hibernate.hql.AST"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.hql.ast.AST</literal>"
+msgstr "<literal>org.hibernate.hql. ast.AST</literal>"
#. Tag: entry
-#: configuration.xml:1275
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
-msgstr "å¨è§£ææ¥è¯¢çæ¶å,è®°å½HQLåSQLçASTåææ¥å¿"
+msgstr "å¨è§£ææ¥è¯¢çæ¶å,è®°å½ HQL å SQL ç AST åææ¥å¿"
-#. Tag: literal
-#: configuration.xml:1280
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate.secure"
-msgstr "org.hibernate.secure"
+msgid "<literal>org.hibernate.secure</literal>"
+msgstr "<literal>org.hibernate.secure</literal>"
#. Tag: entry
-#: configuration.xml:1281
#, no-c-format
msgid "Log all JAAS authorization requests"
-msgstr "为JAAS认è¯è¯·æ±åæ¥å¿"
+msgstr "为 JAAS 认è¯è¯·æ±åæ¥å¿"
-#. Tag: literal
-#: configuration.xml:1284
+#. Tag: entry
#, no-c-format
-msgid "org.hibernate"
-msgstr "org.hibernate"
+msgid "<literal>org.hibernate</literal>"
+msgstr "<literal>org.hibernate</literal>"
#. Tag: entry
-#: configuration.xml:1285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
-msgstr "为任ä½Hibernateç¸å
³ä¿¡æ¯åæ¥å¿ (ä¿¡æ¯éè¾å¤§, ä½å¯¹æ¥éé常æå¸®å©)"
+msgstr "ä¸ºä»»ä½ Hibernate ç¸å
³ä¿¡æ¯è®°å½æ¥å¿ï¼ä¿¡æ¯éè¾å¤§ï¼ä½å¯¹æ¥éé常æå¸®å©ï¼"
#. Tag: para
-#: configuration.xml:1294
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
@@ -2790,29 +1902,26 @@
"hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate."
"show_sql</literal> enabled."
msgstr ""
-"å¨ä½¿ç¨Hibernateå¼ååºç¨ç¨åºæ¶, ä½ åºå½æ»æ¯ä¸º<literal>org.hibernate.SQL</"
-"literal> å¼å¯<literal>debug</literal>级å«çæ¥å¿è®°å½,æè
å¼å¯"
-"<literal>hibernate.show_sql</literal>屿§ã"
+"å¨ä½¿ç¨ Hibernate å¼ååºç¨ç¨åºæ¶ï¼ä½ åºå½æ»æ¯ä¸º <literal>org.hibernate.SQL</"
+"literal> å¼å¯ <literal>debug</literal> 级å«çæ¥å¿è®°å½,æè
å¼å¯ "
+"<literal>hibernate.show_sql</literal> 屿§ã"
#. Tag: title
-#: configuration.xml:1304
#, no-c-format
msgid "Implementing a <literal>NamingStrategy</literal>"
-msgstr "å®ç°<literal>NamingStrategy</literal>"
+msgstr "å®ç° <literal>NamingStrategy</literal>"
#. Tag: para
-#: configuration.xml:1306
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you "
"to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
-"<literal>org.hibernate.cfg.NamingStrategy</literal>æ¥å£å
è®¸ä½ ä¸ºæ°æ®åºä¸ç对象"
-"åschema å
ç´ æå®ä¸ä¸ªâå½åæ åâ."
+"<literal>org.hibernate.cfg.NamingStrategy</literal> æ¥å£å
è®¸ä½ ä¸ºæ°æ®åºä¸ç对"
+"象å schema å
ç´ æå®ä¸ä¸ªâå½åæ åâã"
#. Tag: para
-#: configuration.xml:1311
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
@@ -2821,48 +1930,34 @@
"noise (<literal>TBL_</literal> prefixes, for example). The default strategy "
"used by Hibernate is quite minimal."
msgstr ""
-"ä½ å¯è½ä¼æä¾ä¸äºéè¿Javaæ è¯çææ°æ®åºæ è¯æå°æ å°å®ä¹æä»¶ä¸\"é»è¾\"表/ååå¤"
-"çæ\"ç©ç\"表/ååçè§å. è¿ä¸ªç¹æ§æå©äºåå°åé¿çæ å°å®ä¹æä»¶."
+"ä½ å¯è½ä¼æä¾ä¸äºéè¿ Java æ è¯çææ°æ®åºæ è¯æå°æ å°å®ä¹æä»¶ä¸\"é»è¾\"表/åå"
+"å¤çæ\"ç©ç\"表/ååçè§åãè¿ä¸ªç¹æ§æå©äºåå°åé¿çæ å°å®ä¹æä»¶ï¼æ¶é¤éå¤å
"
+"容ï¼å¦ <literal>TBL_</literal> åç¼ï¼ãHibernate 使ç¨ç缺ççç¥æ¯ç¸å½ç²¾ç®çã"
#. Tag: para
-#: configuration.xml:1320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
"å¨å å
¥æ å°å®ä¹åï¼ä½ å¯ä»¥è°ç¨ <literal>Configuration.setNamingStrategy()</"
-"literal>æå®ä¸ä¸ªä¸åçå½åçç¥:"
+"literal> æå®ä¸ä¸ªä¸åçå½åçç¥ï¼ "
-#. Tag: programlisting
-#: configuration.xml:1325
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
-" .addFile(\"Item.hbm.xml\")\n"
-" .addFile(\"Bid.hbm.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1327
#, no-c-format
msgid ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in "
"strategy that might be a useful starting point for some applications."
msgstr ""
-"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal>æ¯ä¸ä¸ªå
建çå½åç"
-"ç¥, 对 ä¸äºåºç¨ç¨åºèè¨ï¼å¯è½æ¯é常æç¨çèµ·ç¹."
+"<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> æ¯ä¸ä¸ªå
建çå½å"
+"çç¥ï¼å¯¹ä¸äºåºç¨ç¨åºèè¨ï¼å¯è½æ¯é常æç¨çèµ·ç¹ã"
#. Tag: title
-#: configuration.xml:1335
#, no-c-format
msgid "XML configuration file"
-msgstr "XMLé
ç½®æä»¶"
+msgstr "XML é
ç½®æä»¶"
#. Tag: para
-#: configuration.xml:1337
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
@@ -2870,67 +1965,22 @@
"as a replacement for the <literal>hibernate.properties</literal> file or, if "
"both are present, to override properties."
msgstr ""
-"å¦ä¸ä¸ªé
ç½®æ¹æ³æ¯å¨<literal>hibernate.cfg.xml</literal>æä»¶ä¸æå®ä¸å¥å®æ´çé
"
-"ç½®. è¿ä¸ªæä»¶å¯ä»¥å½æ<literal>hibernate.properties</literal>çæ¿ä»£ã è¥ä¸¤ä¸ªæ"
-"ä»¶åæ¶åå¨ï¼å®å°è¦çåè
ç屿§."
+"å¦ä¸ä¸ªé
ç½®æ¹æ³æ¯å¨ <literal>hibernate.cfg.xml</literal> æä»¶ä¸æå®ä¸å¥å®æ´ç"
+"é
ç½®ãè¿ä¸ªæä»¶å¯ä»¥å½æ <literal>hibernate.properties</literal> çæ¿ä»£ãè¥ä¸¤ä¸ª"
+"æä»¶åæ¶åå¨ï¼å®å°è¦çåè
ç屿§ã"
#. Tag: para
-#: configuration.xml:1344
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH</literal>. Here is an example:"
msgstr ""
-"XMLé
ç½®æä»¶è¢«é»è®¤æ¯æ¾å¨<literal>CLASSPATH</literal>çæ ¹ç®å½ä¸. è¿æ¯ä¸ä¸ªä¾å:"
+"XML é
ç½®æä»¶è¢«é»è®¤æ¯æ¾å¨ <literal>CLASSPATH</literal> çæ ¹ç®å½ä¸ãä¸é¢æ¯ä¸ä¸ª"
+"ä¾åï¼ "
-#. Tag: programlisting
-#: configuration.xml:1349
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <!-- a SessionFactory instance listed as /jndi/name -->\n"
-" <session-factory\n"
-" name=\"java:hibernate/SessionFactory\">\n"
-"\n"
-" <!-- properties -->\n"
-" <property name=\"connection.datasource\">java:/comp/env/jdbc/MyDB</"
-"property>\n"
-" <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
-"property>\n"
-" <property name=\"show_sql\">false</property>\n"
-" <property name=\"transaction.factory_class\">\n"
-" org.hibernate.transaction.JTATransactionFactory\n"
-" </property>\n"
-" <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
-"property>\n"
-"\n"
-" <!-- mapping files -->\n"
-" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
-" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
-"\n"
-" <!-- cache settings -->\n"
-" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-write"
-"\"/>\n"
-" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only\"/"
-">\n"
-" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
-"usage=\"read-write\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1351
-#, fuzzy, no-c-format
-msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml</literal> is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
@@ -2938,56 +1988,34 @@
"cfg.xml</literal>. Both are equivalent, except for the above mentioned "
"benefits of using the XML syntax."
msgstr ""
-"å¦ä½ æè§, è¿ä¸ªæ¹æ³ä¼å¿å¨äºï¼å¨é
ç½®æä»¶ä¸æåºäºæ å°å®ä¹æä»¶çåå. 䏿¦ä½ éè¦"
-"è°æ´Hibernateçç¼åï¼ <literal>hibernate.cfg.xml</literal>乿¯æ´æ¹ä¾¿. 注æï¼"
-"使ç¨<literal>hibernate.properties</literal>è¿æ¯ <literal>hibernate.cfg.xml</"
-"literal>å®å
¨æ¯ç±ä½ æ¥å³å®, é¤äºä¸é¢æå°çXMLè¯æ³çä¼å¿ä¹å¤, 两è
æ¯çä»·ç."
+"å¦ä½ æè§ï¼è¿ä¸ªæ¹æ³ä¼å¿å¨äºï¼å¨é
ç½®æä»¶ä¸æåºäºæ å°å®ä¹æä»¶çååã䏿¦ä½ éè¦"
+"è°æ´ Hibernate çç¼åï¼<literal>hibernate.cfg.xml</literal> 乿¯æ´æ¹ä¾¿ã注"
+"æï¼ä½¿ç¨ <literal>hibernate.properties</literal> è¿æ¯ <literal>hibernate.cfg."
+"xml</literal> å®å
¨æ¯ç±ä½ æ¥å³å®ï¼é¤äºä¸é¢æå°ç XML è¯æ³çä¼å¿ä¹å¤ï¼ä¸¤è
æ¯çä»·"
+"çã "
#. Tag: para
-#: configuration.xml:1360
-#, fuzzy, no-c-format
+#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
-msgstr ""
-"使ç¨XMLé
ç½®ï¼ä½¿å¾å¯å¨Hibernateåçå¼å¸¸ç®å, å¦ä¸æç¤ºï¼ä¸è¡ä»£ç å°±å¯ä»¥æå®ï¼"
+msgstr "ä½¿ç¨ XML é
ç½®ï¼ä½¿å¾å¯å¨ Hibernate åçå¼å¸¸ç®åï¼"
-#. Tag: programlisting
-#: configuration.xml:1364
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration().configure()."
-"buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: para
-#: configuration.xml:1366
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can select a different XML configuration file using:"
-msgstr "ä½ å¯ä»¥ä½¿ç¨å¦ä¸ä»£ç æ¥æ·»å ä¸ä¸ªä¸åçXMLé
ç½®æä»¶"
+msgstr "ä½ å¯ä»¥ä½¿ç¨å¦ä¸ä»£ç æ¥æ·»å ä¸ä¸ªä¸åç XML é
ç½®æä»¶ï¼"
-#. Tag: programlisting
-#: configuration.xml:1370
-#, no-c-format
-msgid ""
-"<![CDATA[SessionFactory sf = new Configuration()\n"
-" .configure(\"catdb.cfg.xml\")\n"
-" .buildSessionFactory();]]>"
-msgstr ""
-
#. Tag: title
-#: configuration.xml:1375
#, no-c-format
msgid "J2EE Application Server integration"
-msgstr "J2EEåºç¨ç¨åºæå¡å¨çéæ"
+msgstr "J2EE åºç¨ç¨åºæå¡å¨çéæ"
#. Tag: para
-#: configuration.xml:1377
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
-msgstr "é对J2EEä½ç³»,Hibernateæå¦ä¸å 个éæçæ¹é¢:"
+msgstr "é对 J2EE ä½ç³»ï¼Hibernate æå¦ä¸å 个éæçæ¹é¢ï¼"
#. Tag: para
-#: configuration.xml:1383
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Container-managed datasources</emphasis>: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
@@ -2998,27 +2026,25 @@
"(BMT), or you might want to use the optional Hibernate <literal>Transaction</"
"literal> API for this to keep your code portable."
msgstr ""
-"<emphasis>容å¨ç®¡ççæ°æ®æº(Container-managed datasources)</emphasis>: "
-"Hibernateè½ä½¿ç¨éè¿å®¹å¨ç®¡çï¼å¹¶ç±JNDIæä¾çJDBCè¿æ¥. é常, ç¹å«æ¯å½å¤çå¤ä¸ªæ°"
-"æ®æºçåå¸å¼äºå¡çæ¶å, ç±ä¸ä¸ªJTAå
¼å®¹ç<literal>TransactionManager</literal>"
-"åä¸ä¸ª <literal>ResourceManager</literal>æ¥å¤çäºå¡ç®¡ç(CMT, 容å¨ç®¡ççäº"
-"å¡). å½ç¶ä½ å¯ä»¥éè¿ ç¼ç¨æ¹å¼æ¥ååäºå¡è¾¹ç(BMT, Bean管ççäºå¡). æè
为äºä»£ç "
-"çå¯ç§»æ¤æ§ï¼ä½ ä¹ä¹è®¸ä¼æ³ä½¿ç¨å¯éç Hibernate <literal>Transaction</literal> "
-"API."
+"<emphasis>容å¨ç®¡ççæ°æ®æºï¼Container-managed datasourcesï¼</emphasis>ï¼ "
+"Hibernate è½ä½¿ç¨éè¿å®¹å¨ç®¡çï¼å¹¶ç± JNDI æä¾ç JDBC è¿æ¥ãé常ï¼ç¹å«æ¯å½å¤ç"
+"å¤ä¸ªæ°æ®æºçåå¸å¼äºå¡çæ¶åï¼ç±ä¸ä¸ª JTA å
¼å®¹ç <literal>TransactionManager</"
+"literal> åä¸ä¸ª <literal>ResourceManager</literal> æ¥å¤çäºå¡ç®¡çï¼CMTï¼å®¹å¨"
+"管ççäºå¡ï¼ãå½ç¶ä½ å¯ä»¥éè¿ ç¼ç¨æ¹å¼æ¥ååäºå¡è¾¹çï¼BMTï¼Bean 管ççäºå¡ï¼ã"
+"æè
为äºä»£ç çå¯ç§»æ¤æ§ï¼ä½ ä¹ä¹è®¸ä¼æ³ä½¿ç¨å¯éç Hibernate "
+"<literal>Transaction</literal> APIã "
#. Tag: para
-#: configuration.xml:1398
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding</emphasis>: Hibernate can bind its "
"<literal>SessionFactory</literal> to JNDI after startup."
msgstr ""
-"<emphasis>èªå¨JNDIç»å®</emphasis>: Hibernateå¯ä»¥å¨å¯å¨åå° "
-"<literal>SessionFactory</literal>ç»å®å°JNDI."
+"<emphasis>èªå¨ JNDI ç»å®</emphasis>ï¼Hibernate å¯ä»¥å¨å¯å¨åå° "
+"<literal>SessionFactory</literal> ç»å®å° JNDIã"
#. Tag: para
-#: configuration.xml:1407
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JTA Session binding:</emphasis> the Hibernate <literal>Session</"
"literal> can be automatically bound to the scope of JTA transactions. Simply "
@@ -3028,15 +2054,15 @@
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
-"<emphasis>JTA Sessionç»å®:</emphasis> Hibernate <literal>Session</literal> å¯"
-"以èªå¨ç»å®å°JTAäºå¡ä½ç¨çèå´. åªéç®åå°ä»JNDIæ¥æ¾<literal>SessionFactory</"
-"literal>å¹¶è·å¾å½åç <literal>Session</literal>. å½JTAäºå¡å®ææ¶, 让Hibernate"
-"æ¥å¤ç <literal>Session</literal>çæ¸
æ´(flush)ä¸å
³é. äºå¡çååå¯ä»¥æ¯å£°æå¼"
-"ç(CMT),ä¹å¯ä»¥æ¯ç¼ç¨å¼ç(BMT/UserTransaction)."
+"<emphasis>JTA Session ç»å®ï¼</emphasis> Hibernate <literal>Session</literal> "
+"å¯ä»¥èªå¨ç»å®å° JTA äºå¡ä½ç¨çèå´ãåªéç®åå°ä» JNDI æ¥æ¾ "
+"<literal>SessionFactory</literal> å¹¶è·å¾å½åç <literal>Session</literal>ã"
+"å½ JTA äºå¡å®ææ¶ï¼è®© Hibernateæ¥å¤ç <literal>Session</literal> çæ¸
æ´"
+"ï¼flushï¼ä¸å
³éãäºå¡çååå¯ä»¥æ¯å£°æå¼çï¼CMTï¼,ä¹å¯ä»¥æ¯ç¼ç¨å¼çï¼BMT/"
+"UserTransactionï¼ã "
#. Tag: para
-#: configuration.xml:1420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>JMX deployment:</emphasis> if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
@@ -3046,33 +2072,30 @@
"take care of service dependencies (datasource has to be available before "
"Hibernate starts, etc)."
msgstr ""
-"<emphasis>JMXé¨ç½²:</emphasis> å¦æä½ ä½¿ç¨æ¯æJMXåºç¨ç¨åºæå¡å¨(å¦, JBoss AS), "
-"é£ä¹ä½ å¯ä»¥éæ©å°Hibernateé¨ç½²ææç®¡MBean. è¿å°ä¸ºä½ çå»ä¸è¡ä»"
-"<literal>Configuration</literal>æå»º<literal>SessionFactory</literal>çå¯å¨ä»£"
-"ç . 容å¨å°å¯å¨ä½ ç<literal>HibernateService</literal>, å¹¶å®ç¾å°å¤ç好æå¡é´ç"
-"ä¾èµå
³ç³» (å¨Hibernateå¯å¨åï¼æ°æ®æºå¿
é¡»æ¯å¯ç¨çï¼çç)."
+"<emphasis>JMX é¨ç½²ï¼</emphasis> å¦æä½ ä½¿ç¨æ¯æ JMX åºç¨ç¨åºæå¡å¨ï¼å¦ï¼JBoss "
+"ASï¼ï¼é£ä¹ä½ å¯ä»¥éæ©å° Hibernate é¨ç½²ææç®¡ MBeanãè¿å°ä¸ºä½ çå»ä¸è¡ä»"
+"<literal>Configuration</literal> æå»º <literal>SessionFactory</literal> çå¯"
+"å¨ä»£ç ã容å¨å°å¯å¨ä½ ç <literal>HibernateService</literal>ï¼å¹¶å®ç¾å°å¤ç好æ"
+"å¡é´çä¾èµå
³ç³»ï¼å¨ Hibernate å¯å¨åï¼æ°æ®æºå¿
é¡»æ¯å¯ç¨çï¼ççï¼ã "
#. Tag: para
-#: configuration.xml:1431
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release</literal> to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
-"妿åºç¨ç¨åºæå¡å¨æåº\"connection containment\"å¼å¸¸, æ ¹æ®ä½ çç¯å¢ï¼ä¹è®¸è¯¥å°"
-"é
ç½®å±æ§ <literal>hibernate.connection.release_mode</literal>设为"
-"<literal>after_statement</literal>."
+"妿åºç¨ç¨åºæå¡å¨æåº \"connection containment\" å¼å¸¸ï¼æ ¹æ®ä½ çç¯å¢ï¼ä¹è®¸è¯¥"
+"å°é
ç½®å±æ§ <literal>hibernate.connection.release_mode</literal> 设为 "
+"<literal>after_statement</literal>ã"
#. Tag: title
-#: configuration.xml:1438
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "äºå¡çç¥é
ç½®"
#. Tag: para
-#: configuration.xml:1440
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The Hibernate <literal>Session</literal> API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
@@ -3081,13 +2104,12 @@
"server, you might want to use bean-managed transactions and call the JTA API "
"and <literal>UserTransaction</literal> when needed."
msgstr ""
-"å¨ä½ çæ¶æä¸ï¼Hibernateç<literal>Session</literal> APIæ¯ç¬ç«äºä»»ä½äºå¡åçç³»"
-"ç»ç. å¦æä½ è®©Hibernateéè¿è¿æ¥æ± ç´æ¥ä½¿ç¨JDBC, ä½ éè¦è°ç¨JDBC APIæ¥æå¼åå
³é"
-"ä½ çäºå¡. å¦æä½ è¿è¡å¨J2EEåºç¨ç¨åºæå¡å¨ä¸, ä½ ä¹è®¸æ³ç¨Bean管ççäºå¡å¹¶å¨éè¦"
-"çæ¶åè°ç¨JTA APIå<literal>UserTransaction</literal>."
+"å¨ä½ çæ¶æä¸ï¼Hibernate ç <literal>Session</literal> API æ¯ç¬ç«äºä»»ä½äºå¡å"
+"çç³»ç»çãå¦æä½ è®© Hibernate éè¿è¿æ¥æ± ç´æ¥ä½¿ç¨ JDBCï¼ä½ éè¦è°ç¨ JDBC API æ¥"
+"æå¼åå
³éä½ çäºå¡ãå¦æä½ è¿è¡å¨ J2EE åºç¨ç¨åºæå¡å¨ä¸ï¼ä½ ä¹è®¸æ³ç¨ Bean 管ç"
+"çäºå¡å¹¶å¨éè¦çæ¶åè°ç¨ JTA API å <literal>UserTransaction</literal>ã "
#. Tag: para
-#: configuration.xml:1448
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
@@ -3097,69 +2119,60 @@
"configuration property <literal>hibernate.transaction.factory_class</"
"literal>."
msgstr ""
-"为äºè®©ä½ ç代ç å¨ä¸¤ç§(æå
¶ä»)ç¯å¢ä¸å¯ä»¥ç§»æ¤ï¼æä»¬å»ºè®®ä½¿ç¨å¯éçHibernate "
-"<literal>Transaction</literal> API, å®å
è£
å¹¶éèäºåºå±ç³»ç». ä½ å¿
é¡»éè¿è®¾ç½®"
-"Hibernateé
ç½®å±æ§<literal>hibernate.transaction.factory_class</literal>æ¥æ"
-"å® ä¸ä¸ª<literal>Transaction</literal>å®ä¾çå·¥åç±»."
+"为äºè®©ä½ ç代ç å¨ä¸¤ç§ï¼æå
¶ä»ï¼ç¯å¢ä¸å¯ä»¥ç§»æ¤ï¼æä»¬å»ºè®®ä½¿ç¨å¯éç Hibernate "
+"<literal>Transaction</literal> APIï¼å®å
è£
å¹¶éèäºåºå±ç³»ç»ãä½ å¿
é¡»éè¿è®¾ç½® "
+"Hibernate é
ç½®å±æ§ <literal>hibernate.transaction.factory_class</literal> æ¥"
+"æå®ä¸ä¸ª <literal>Transaction</literal> å®ä¾çå·¥åç±»ã"
#. Tag: para
-#: configuration.xml:1455
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are three standard, or built-in, choices:"
-msgstr "æä¸ä¸ªæ å(å
建)çéæ©:"
+msgstr "æä¸ä¸ªæ åï¼å
建ï¼çéæ©ï¼ "
-#. Tag: literal
-#: configuration.xml:1461
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JDBCTransactionFactory"
-msgstr "org.hibernate.transaction.JDBCTransactionFactory"
+msgid "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1463
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
-msgstr "å§æç»æ°æ®åº(JDBC)äºå¡ï¼é»è®¤ï¼"
+msgstr "å§æç»æ°æ®åºï¼JDBCï¼äºå¡ï¼é»è®¤ï¼"
-#. Tag: literal
-#: configuration.xml:1467
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.JTATransactionFactory"
-msgstr "org.hibernate.transaction.JTATransactionFactory"
+msgid "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.JTATransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
-"妿å¨ä¸ä¸æç¯å¢ä¸åå¨è¿è¡ççäºå¡(å¦, EJBä¼è¯Beançæ¹æ³), åå§æç»å®¹å¨ç®¡ ç"
-"çäºå¡, å¦åï¼å°å¯å¨ä¸ä¸ªæ°çäºå¡ï¼å¹¶ä½¿ç¨Bean管ççäºå¡."
+"妿å¨ä¸ä¸æç¯å¢ä¸åå¨è¿è¡ççäºå¡ï¼å¦ï¼EJB ä¼è¯ Bean çæ¹æ³ï¼ï¼åå§æç»å®¹å¨"
+"管ççäºå¡ãå¦åï¼å°å¯å¨ä¸ä¸ªæ°çäºå¡ï¼å¹¶ä½¿ç¨ Bean 管ççäºå¡ã"
-#. Tag: literal
-#: configuration.xml:1477
+#. Tag: term
#, no-c-format
-msgid "org.hibernate.transaction.CMTTransactionFactory"
-msgstr "org.hibernate.transaction.CMTTransactionFactory"
+msgid "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
+msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory</literal>"
#. Tag: para
-#: configuration.xml:1479
#, no-c-format
msgid "delegates to container-managed JTA transactions"
-msgstr "å§æç»å®¹å¨ç®¡ççJTAäºå¡"
+msgstr "å§æç»å®¹å¨ç®¡çç JTA äºå¡"
#. Tag: para
-#: configuration.xml:1484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
-msgstr "ä½ ä¹å¯ä»¥å®ä¹å±äºä½ èªå·±çäºå¡çç¥ (å¦, é对CORBAçäºå¡æå¡)"
+msgstr "ä½ ä¹å¯ä»¥å®ä¹å±äºä½ èªå·±çäºå¡çç¥ï¼å¦ï¼é对 CORBA çäºå¡æå¡ï¼ã"
#. Tag: para
-#: configuration.xml:1489
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
@@ -3168,171 +2181,170 @@
"have to specify how Hibernate should obtain a reference to the "
"<literal>TransactionManager</literal>:"
msgstr ""
-"Hibernateçä¸äºç¹æ§ (æ¯å¦äºçº§ç¼å, Contextual Sessions with JTAçç)éè¦è®¿é®"
-"å¨æç®¡ç¯å¢ä¸çJTA <literal>TransactionManager</literal>. ç±äºJ2EEæ²¡ææ ååä¸"
-"个åä¸çæºå¶,Hibernateå¨åºç¨ç¨åºæå¡å¨ä¸ï¼ä½ å¿
é¡»æå®Hibernateå¦ä½è·å¾"
-"<literal>TransactionManager</literal>çå¼ç¨:"
+"Hibernate çä¸äºç¹æ§ï¼æ¯å¦äºçº§ç¼åï¼Contextual Sessions with JTA ççï¼éè¦è®¿"
+"é®å¨æç®¡ç¯å¢ä¸ç JTA <literal>TransactionManager</literal>ãç±äº J2EE æ²¡ææ "
+"ååä¸ä¸ªåä¸çæºå¶ï¼Hibernate å¨åºç¨ç¨åºæå¡å¨ä¸ï¼ä½ å¿
é¡»æå® Hibernate å¦ä½è·"
+"å¾ <literal>TransactionManager</literal> çå¼ç¨ï¼ "
#. Tag: title
-#: configuration.xml:1497
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "JTA TransactionManagers"
#. Tag: entry
-#: configuration.xml:1503
#, no-c-format
msgid "Transaction Factory"
-msgstr "Transactionå·¥åç±»"
+msgstr "Transaction å·¥åç±»"
#. Tag: entry
-#: configuration.xml:1504
#, no-c-format
msgid "Application Server"
msgstr "åºç¨ç¨åºæå¡å¨"
-#. Tag: literal
-#: configuration.xml:1509
-#, no-c-format
-msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JBossTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JBossTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JBossTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1510
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
-#. Tag: literal
-#: configuration.xml:1513
-#, no-c-format
-msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WeblogicTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WeblogicTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1514
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
-#. Tag: literal
-#: configuration.xml:1517
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
-msgstr "org.hibernate.transaction.WebSphereTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereTransactionManagerLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1518
#, no-c-format
msgid "WebSphere"
msgstr "WebSphere"
-#. Tag: literal
-#: configuration.xml:1521
-#, no-c-format
-msgid "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
-msgstr "org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</"
+"literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. WebSphereExtendedJTATransactionLookup</"
+"literal>"
#. Tag: entry
-#: configuration.xml:1522
#, no-c-format
msgid "WebSphere 6"
msgstr "WebSphere 6"
-#. Tag: literal
-#: configuration.xml:1525
-#, no-c-format
-msgid "org.hibernate.transaction.OrionTransactionManagerLookup"
-msgstr "org.hibernate.transaction.OrionTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.OrionTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. OrionTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1526
#, no-c-format
msgid "Orion"
msgstr "Orion"
-#. Tag: literal
-#: configuration.xml:1529
-#, no-c-format
-msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
-msgstr "org.hibernate.transaction.ResinTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.ResinTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. ResinTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1530
#, no-c-format
msgid "Resin"
msgstr "Resin"
-#. Tag: literal
-#: configuration.xml:1533
-#, no-c-format
-msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOTMTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOTMTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1534
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
-#. Tag: literal
-#: configuration.xml:1537
-#, no-c-format
-msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
-msgstr "org.hibernate.transaction.JOnASTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JOnASTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1538
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
-#. Tag: literal
-#: configuration.xml:1541
-#, no-c-format
-msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
-msgstr "org.hibernate.transaction.JRun4TransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. JRun4TransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1542
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
-#. Tag: literal
-#: configuration.xml:1545
-#, no-c-format
-msgid "org.hibernate.transaction.BESTransactionManagerLookup"
-msgstr "org.hibernate.transaction.BESTransactionManagerLookup"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>org.hibernate.transaction.BESTransactionManagerLookup</literal>"
+msgstr ""
+"<literal>org.hibernate.transaction. BESTransactionManagerLookup</literal>"
#. Tag: entry
-#: configuration.xml:1546
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
-#: configuration.xml:1555
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory</literal>"
-msgstr "JNDIç»å®ç<literal>SessionFactory</literal>"
+msgstr "JNDI ç»å®ç <literal>SessionFactory</literal>"
#. Tag: para
-#: configuration.xml:1557
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory</literal> can simplify the "
"lookup function of the factory and create new <literal>Session</literal>s. "
"This is not, however, related to a JNDI bound <literal>Datasource</literal>; "
"both simply use the same registry."
msgstr ""
-"ä¸JNDIç»å®çHibernateç<literal>SessionFactory</literal>è½ç®åå·¥åçæ¥è¯¢ï¼ç®"
-"åå建æ°ç<literal>Session</literal>. éè¦æ³¨æçæ¯è¿ä¸JNDIç»å®"
-"<literal>Datasource</literal>没æå
³ç³», å®ä»¬åªæ¯æ°å·§ç¨äºç¸åçæ³¨å表!"
+"ä¸ JNDI ç»å®ç Hibernate ç <literal>SessionFactory</literal> è½ç®åå·¥åçæ¥"
+"询ï¼ç®åå建æ°ç <literal>Session</literal>ãéè¦æ³¨æçæ¯è¿ä¸ JNDI ç»å® "
+"<literal>Datasource</literal> 没æå
³ç³»ï¼å®ä»¬åªæ¯æ°å·§ç¨äºç¸åçæ³¨å表ã"
#. Tag: para
-#: configuration.xml:1564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory</literal> bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactory</"
@@ -3341,14 +2353,13 @@
"will not be bound to JNDI. This is especially useful in environments with a "
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
-"å¦æä½ å¸æå°<literal>SessionFactory</literal>ç»å®å°ä¸ä¸ªJNDIçåå空é´, ç¨å±æ§"
-"<literal>hibernate.session_factory_name</literal>æå®ä¸ä¸ªåå(å¦, "
-"<literal>java:hibernate/SessionFactory</literal>). 妿ä¸è®¾ç½®è¿ä¸ªå±æ§, "
-"<literal>SessionFactory</literal>å°ä¸ä¼è¢«ç»å®å°JNDIä¸. (å¨ä»¥åªè¯»JNDI为é»è®¤å®"
-"ç°çç¯å¢ä¸ï¼è¿ä¸ªè®¾ç½®å°¤å
¶æç¨, å¦Tomcat.)"
+"å¦æä½ å¸æå° <literal>SessionFactory</literal> ç»å®å°ä¸ä¸ª JNDI çåå空é´ï¼ç¨"
+"屿§ <literal>hibernate.session_factory_name</literal> æå®ä¸ä¸ªååï¼å¦ï¼"
+"<literal>javaï¼hibernate/SessionFactory</literal>ï¼ã妿ä¸è®¾ç½®è¿ä¸ªå±æ§ï¼"
+"<literal>SessionFactory</literal> å°ä¸ä¼è¢«ç»å®å° JNDI ä¸ï¼å¨ä»¥åªè¯» JNDI 为é»"
+"认å®ç°çç¯å¢ä¸ï¼è¿ä¸ªè®¾ç½®å°¤å
¶æç¨ï¼å¦ Tomcatï¼ã"
#. Tag: para
-#: configuration.xml:1572
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory</literal> to JNDI, Hibernate will "
@@ -3356,14 +2367,13 @@
"jndi.class</literal> to instantiate an initial context. If they are not "
"specified, the default <literal>InitialContext</literal> will be used."
msgstr ""
-"å¨å°<literal>SessionFactory</literal>ç»å®è³JNDIæ¶, Hibernateå°ä½¿ç¨"
-"<literal>hibernate.jndi.url</literal>, å<literal>hibernate.jndi.class</"
-"literal>ç弿¥å®ä¾ååå§ç¯å¢(initial context). 妿å®ä»¬æ²¡æè¢«æå®, å°ä½¿ç¨é»è®¤"
-"ç<literal>InitialContext</literal>."
+"å¨å° <literal>SessionFactory</literal> ç»å®è³ JNDI æ¶ï¼Hibernate å°ä½¿ç¨ "
+"<literal>hibernate.jndi.url</literal>ï¼å <literal>hibernate.jndi.class</"
+"literal> ç弿¥å®ä¾ååå§ç¯å¢ï¼initial contextï¼ã妿å®ä»¬æ²¡æè¢«æå®ï¼å°ä½¿ç¨"
+"é»è®¤ç <literal>InitialContext</literal>ã"
#. Tag: para
-#: configuration.xml:1579
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory</literal> in "
"JNDI after you call <literal>cfg.buildSessionFactory()</literal>. This means "
@@ -3372,25 +2382,23 @@
"<literal>HibernateService</literal> (this is discussed later in greater "
"detail)."
msgstr ""
-"å¨ä½ è°ç¨<literal>cfg.buildSessionFactory()</literal>å, Hibernateä¼èªå¨å°"
-"<literal>SessionFactory</literal>注åå°JNDI. è¿æå³è¿ä½ è³å°éè¦å¨ä½ åºç¨ç¨åºç"
-"å¯å¨ä»£ç (æå·¥å
·ç±»)ä¸å®æè¿ä¸ªè°ç¨, é¤éä½ ä½¿ç¨<literal>HibernateService</"
-"literal>æ¥åJMXé¨ç½² (è§åé¢è®¨è®º)."
+"å¨ä½ è°ç¨ <literal>cfg.buildSessionFactory()</literal>åï¼Hibernate ä¼èªå¨å° "
+"<literal>SessionFactory</literal> 注åå° JNDIãè¿æå³è¿ä½ è³å°éè¦å¨ä½ åºç¨ç¨åº"
+"çå¯å¨ä»£ç ï¼æå·¥å
·ç±»ï¼ä¸å®æè¿ä¸ªè°ç¨ï¼é¤éä½ ä½¿ç¨ <literal>HibernateService</"
+"literal> æ¥å JMX é¨ç½²ï¼è§åé¢è®¨è®ºï¼ã"
#. Tag: para
-#: configuration.xml:1586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use a JNDI <literal>SessionFactory</literal>, an EJB or any other "
"class, you can obtain the <literal>SessionFactory</literal> using a JNDI "
"lookup."
msgstr ""
-"åè¥ä½ 使ç¨JNDI <literal>SessionFactory</literal>,EJBæè
ä»»ä½å
¶å®ç±»é½å¯ä»¥ä»"
-"JNDI䏿¾å°æ¤<literal>SessionFactory</literal>ã"
+"åè¥ä½ ä½¿ç¨ JNDI <literal>SessionFactory</literal>ï¼EJB æè
ä»»ä½å
¶å®ç±»é½å¯ä»¥"
+"ä» JNDI 䏿¾å°æ¤ <literal>SessionFactory</literal>ã "
#. Tag: para
-#: configuration.xml:1591
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory</literal> to "
"JNDI in a managed environment and use a <literal>static</literal> singleton "
@@ -3400,31 +2408,29 @@
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
-"æä»¬å»ºè®®ï¼å¨å管ççç¯å¢ä¸ï¼æ<literal>SessionFactory</literal>ç»å®å°JNDIï¼å¨"
-"å
¶å®æ
åµä¸ï¼ä½¿ç¨ä¸ä¸ª<literal>static(éæç)</literal>singletonã为äºå¨ä½ çåº"
-"ç¨ç¨åºä»£ç ä¸éèè¿äºç»èï¼æä»¬è¿å»ºè®®ä½ ç¨ä¸ä¸ªhelperç±»æå®é
æ¥æ¾"
-"<literal>SessionFactory</literal>ç代ç éèèµ·æ¥,æ¯å¦<literal>HibernateUtil."
-"getSessionFactory()</literal>ãæ³¨æï¼è¿ä¸ªç±»ä¹å°±å¯ä»¥æ¹ä¾¿å°å¯å¨Hibernateï¼åè§"
-"第ä¸ç« ã"
+"æä»¬å»ºè®®ï¼å¨å管ççç¯å¢ä¸ï¼æ <literal>SessionFactory</literal> ç»å®å° "
+"JNDIï¼å¨å
¶å®æ
åµä¸ï¼ä½¿ç¨ä¸ä¸ª <literal>staticï¼éæçï¼</literal>singletonã为"
+"äºå¨ä½ çåºç¨ç¨åºä»£ç ä¸éèè¿äºç»èï¼æä»¬è¿å»ºè®®ä½ ç¨ä¸ä¸ª helper ç±»æå®é
æ¥æ¾ "
+"<literal>SessionFactory</literal> ç代ç éèèµ·æ¥ï¼æ¯å¦ "
+"<literal>HibernateUtil.getSessionFactory()</literal>ãæ³¨æï¼è¿ä¸ªç±»ä¹å°±å¯ä»¥æ¹"
+"便å°å¯å¨ Hibernateï¼åè§ç¬¬ä¸ç« ã "
#. Tag: title
-#: configuration.xml:1603
#, no-c-format
msgid "Current Session context management with JTA"
-msgstr "å¨JTAç¯å¢ä¸ä½¿ç¨Current Session context (å½åsessionä¸ä¸æ)管ç"
+msgstr "å¨ JTA ç¯å¢ä¸ä½¿ç¨ Current Session contextï¼å½å session ä¸ä¸æï¼ç®¡ç"
#. Tag: para
-#: configuration.xml:1605
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions</literal> and transactions is "
"Hibernate's automatic \"current\" <literal>Session</literal> management. For "
-"a discussion of contextual sessions see <link linkend=\"architecture-current-"
-"session\"></link>. Using the <literal>\"jta\"</literal> session context, if "
-"there is no Hibernate <literal>Session</literal> associated with the current "
-"JTA transaction, one will be started and associated with that JTA "
-"transaction the first time you call <literal>sessionFactory.getCurrentSession"
-"()</literal>. The <literal>Session</literal>s retrieved via "
+"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
+"session\" />. Using the <literal>\"jta\"</literal> session context, if there "
+"is no Hibernate <literal>Session</literal> associated with the current JTA "
+"transaction, one will be started and associated with that JTA transaction "
+"the first time you call <literal>sessionFactory.getCurrentSession()</"
+"literal>. The <literal>Session</literal>s retrieved via "
"<literal>getCurrentSession()</literal> in the<literal>\"jta\"</literal> "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
@@ -3437,30 +2443,29 @@
"in an EJB container, declarative transaction demarcation with CMT is "
"preferred."
msgstr ""
-"å¨Hibernateä¸ï¼ç®¡ç<literal>Session</literal>åtransactionæå¥½çæ¹æ³æ¯èªå¨ç"
-"\"å½å\"<literal>Session</literal>管çã请åè§<xref linkend=\"architecture-"
-"current-session\">contextual sessions</xref>ä¸èç讨论ã使ç¨<literal>\"jta"
-"\"</literal>sessionä¸ä¸æï¼åè¥å¨å½åJTAäºå¡ä¸è¿æ²¡æ"
-"Hibernate<literal>Session</literal>å
³èï¼ç¬¬ä¸æ¬¡<literal>sessionFactory."
-"getCurrentSession()</literal>è°ç¨ä¼å¯å¨ä¸ä¸ªSession,å¹¶å
³èå°å½åçJTAäºå¡ãå¨"
-"<literal>\"jta\"</literal>ä¸ä¸æä¸è°ç¨<literal>getCurrentSession()</literal>"
-"è·å¾ç<literal>Session</literal>ï¼ä¼è¢«è®¾ç½®ä¸ºå¨transactionå
³éçæ¶åèªå¨flush"
-"ï¼æ¸
æ´ï¼ãå¨transactionå
³éä¹åèªå¨å
³éï¼æ¯å¥è¯å¥ä¹å主å¨éæ¾JDBCè¿æ¥ãè¿å°±å¯"
-"ä»¥æ ¹æ®JTAäºå¡ççå½å¨ææ¥ç®¡çä¸ä¹å
³èç<literal>Session</literal>ï¼ç¨æ·ä»£ç ä¸"
-"å°±å¯ä»¥ä¸åèèè¿äºç®¡çãä½ ç代ç ä¹å¯ä»¥éè¿<literal>UserTransaction</literal>"
-"ç¨ç¼ç¨æ¹å¼ä½¿ç¨JTAï¼æè
(æä»¬å»ºè®®ï¼ä¸ºäºä¾¿äºç§»æ¤ä»£ç ï¼ä½¿ç¨Hibernateç"
-"<literal>Transaction</literal> APIæ¥è®¾ç½®transactionè¾¹çãå¦æä½ ç代ç è¿è¡å¨"
-"EJB容å¨ä¸ï¼å»ºè®®å¯¹CMT使ç¨å£°æå¼äºå¡å£°æã"
+"å¨ Hibernate ä¸ï¼ç®¡ç <literal>Session</literal> å transaction æå¥½çæ¹æ³æ¯"
+"èªå¨ç\"å½å\"<literal>Session</literal> 管çã请åè§ <xref linkend="
+"\"architecture-current-session\" /> ä¸èç讨论ãä½¿ç¨ <literal>\"jta\"</"
+"literal> session ä¸ä¸æï¼åè¥å¨å½å JTA äºå¡ä¸è¿æ²¡æ "
+"Hibernate<literal>Session</literal> å
³èï¼ç¬¬ä¸æ¬¡ <literal>sessionFactory."
+"getCurrentSession()</literal> è°ç¨ä¼å¯å¨ä¸ä¸ª Sessionï¼å¹¶å
³èå°å½åç JTA äº"
+"å¡ãå¨ <literal>\"jta\"</literal> ä¸ä¸æä¸è°ç¨ <literal>getCurrentSession()</"
+"literal> è·å¾ç <literal>Session</literal>ï¼ä¼è¢«è®¾ç½®ä¸ºå¨ transaction å
³éçæ¶"
+"åèªå¨ flushï¼æ¸
æ´ï¼ãå¨ transaction å
³éä¹åèªå¨å
³éï¼æ¯å¥è¯å¥ä¹å主å¨éæ¾ "
+"JDBC è¿æ¥ãè¿å°±å¯ä»¥æ ¹æ® JTA äºå¡ççå½å¨ææ¥ç®¡çä¸ä¹å
³èç <literal>Session</"
+"literal>ï¼ç¨æ·ä»£ç ä¸å°±å¯ä»¥ä¸åèèè¿äºç®¡çãä½ ç代ç ä¹å¯ä»¥éè¿ "
+"<literal>UserTransaction</literal>ç¨ç¼ç¨æ¹å¼ä½¿ç¨ JTAï¼æè
ï¼æä»¬å»ºè®®ï¼ä¸ºäºä¾¿"
+"äºç§»æ¤ä»£ç ï¼ä½¿ç¨ Hibernate ç <literal>Transaction</literal> API æ¥è®¾ç½® "
+"transaction è¾¹çãå¦æä½ ç代ç è¿è¡å¨ EJB 容å¨ä¸ï¼æä»¬å»ºè®®å¯¹ CMT 使ç¨å£°æå¼äº"
+"å¡å£°æã "
#. Tag: title
-#: configuration.xml:1628
#, no-c-format
msgid "JMX deployment"
-msgstr "JMXé¨ç½²"
+msgstr "JMX é¨ç½²"
#. Tag: para
-#: configuration.xml:1630
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory()</literal> still has to be "
"executed somewhere to get a <literal>SessionFactory</literal> into JNDI. You "
@@ -3468,80 +2473,27 @@
"the one in <literal>HibernateUtil</literal>, or you can deploy Hibernate as "
"a <emphasis>managed service</emphasis>."
msgstr ""
-"为äºå°<literal>SessionFactory</literal>注åå°JNDIä¸ï¼<literal>cfg."
-"buildSessionFactory()</literal>è¿è¡ä»£ç ä»é卿å¤è¢«æ§è¡. ä½ å¯å¨ä¸ä¸ª"
-"<literal>static</literal>åå§åå(å<literal>HibernateUtil</literal>ä¸ç飿 ·)"
-"䏿§è¡å®æå°Hibernateé¨ç½²ä¸ºä¸ä¸ª<emphasis>æç®¡çæå¡</emphasis>."
+"为äºå° <literal>SessionFactory</literal> 注åå° JNDI ä¸ï¼<literal>cfg."
+"buildSessionFactory()</literal> è¿è¡ä»£ç ä»é卿å¤è¢«æ§è¡ãä½ å¯å¨ä¸ä¸ª "
+"<literal>static</literal> åå§ååï¼å <literal>HibernateUtil</literal> ä¸ç"
+"飿 ·ï¼ä¸æ§è¡å®æå° Hibernate é¨ç½²ä¸ºä¸ä¸ª<emphasis>æç®¡çæå¡</emphasis>ã "
#. Tag: para
-#: configuration.xml:1638
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService</"
"literal> for deployment on an application server with JMX capabilities, such "
"as JBoss AS. The actual deployment and configuration is vendor-specific. "
"Here is an example <literal>jboss-service.xml</literal> for JBoss 4.0.x:"
msgstr ""
-"为äºé¨ç½²å¨ä¸ä¸ªæ¯æJMXçåºç¨ç¨åºæå¡å¨ä¸ï¼Hibernateå <literal>org.hibernate."
-"jmx.HibernateService</literal>ä¸åååï¼å¦Jboss ASã å®é
çé¨ç½²åé
ç½®æ¯ç±åºç¨"
-"ç¨åºæå¡å¨æä¾è
æå®ç. è¿éæ¯JBoss 4.0.xç<literal>jboss-service.xml</"
-"literal>æ ·ä¾:"
+"为äºé¨ç½²å¨ä¸ä¸ªæ¯æ JMX çåºç¨ç¨åºæå¡å¨ä¸ï¼Hibernate å <literal>org."
+"hibernate.jmx.HibernateService</literal> ä¸åååï¼å¦ Jboss ASã å®é
çé¨ç½²å"
+"é
ç½®æ¯ç±åºç¨ç¨åºæå¡å¨æä¾è
æå®çãè¿éæ¯ JBoss 4.0.x ç <literal>jboss-"
+"service.xml</literal> æ ·ä¾ï¼ "
-#. Tag: programlisting
-#: configuration.xml:1645
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\"?>\n"
-"<server>\n"
-"\n"
-"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
-" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
-"\n"
-" <!-- Required services -->\n"
-" <depends>jboss.jca:service=RARDeployer</depends>\n"
-" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
-"\n"
-" <!-- Bind the Hibernate service to JNDI -->\n"
-" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</attribute>\n"
-"\n"
-" <!-- Datasource settings -->\n"
-" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
-" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
-"attribute>\n"
-"\n"
-" <!-- Transaction integration -->\n"
-" <attribute name=\"TransactionStrategy\">\n"
-" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
-" <attribute name=\"TransactionManagerLookupStrategy\">\n"
-" org.hibernate.transaction.JBossTransactionManagerLookup</attribute>\n"
-" <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
-" <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
-"\n"
-" <!-- Fetching options -->\n"
-" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
-"\n"
-" <!-- Second-level caching -->\n"
-" <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
-" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
-"EhCacheProvider</attribute>\n"
-" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
-"\n"
-" <!-- Logging -->\n"
-" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
-"\n"
-" <!-- Mapping files -->\n"
-" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
-"hbm.xml</attribute>\n"
-"\n"
-"</mbean>\n"
-"\n"
-"</server>]]>"
-msgstr ""
-
-#. Tag: para
-#: configuration.xml:1647
-#, fuzzy, no-c-format
-msgid ""
"This file is deployed in a directory called <literal>META-INF</literal> and "
"packaged in a JAR file with the extension <literal>.sar</literal> (service "
"archive). You also need to package Hibernate, its required third-party "
@@ -3552,238 +2504,323 @@
"JBoss AS documentation for more information about JMX service and EJB "
"deployment."
msgstr ""
-"è¿ä¸ªæä»¶æ¯é¨ç½²å¨<literal>META-INF</literal>ç®å½ä¸ç, å¹¶ä¼è¢«æå
å°ä»¥<literal>."
-"sar</literal> (service archive)为æ©å±åçJARæä»¶ä¸. åæ¶ï¼ä½ éè¦å°Hibernateã"
-"宿éè¦çç¬¬ä¸æ¹åºãä½ ç¼è¯å¥½çæä¹
å类以åä½ çæ å°å®ä¹æä»¶æå
è¿åä¸ä¸ªææ¡£. "
-"ä½ çä¼ä¸Bean(ä¸è¬ä¸ºä¼è¯Bean)å¯è½ä¼è¢«æå
æå®ä»¬èªå·±çJARæä»¶, ä½ä½ ä¹è®¸ä¼å°EJB "
-"JARæä»¶ä¸åå
å«è¿è½ç¬ç«(ç)é¨ç½²ç主æå¡ææ¡£. åèJBoss ASææ¡£ä»¥äºè§£æ´å¤çJMX"
-"æå¡ä¸EJBé¨ç½²çä¿¡æ¯."
+"è¿ä¸ªæä»¶æ¯é¨ç½²å¨ <literal>META-INF</literal> ç®å½ä¸çï¼å¹¶ä¼è¢«æå
å°ä»¥ "
+"<literal>.sar</literal>ï¼service archiveï¼ä¸ºæ©å±åç JAR æä»¶ä¸ãåæ¶ï¼ä½ éè¦"
+"å° Hibernateã宿éè¦çç¬¬ä¸æ¹åºãä½ ç¼è¯å¥½çæä¹
å类以åä½ çæ å°å®ä¹æä»¶æå
"
+"è¿åä¸ä¸ªææ¡£ãä½ çä¼ä¸ Beanï¼ä¸è¬ä¸ºä¼è¯ Beanï¼å¯è½ä¼è¢«æå
æå®ä»¬èªå·±ç JAR æ"
+"ä»¶ï¼ä½ä½ ä¹è®¸ä¼å° EJB JAR æä»¶ä¸åå
å«è¿è½ç¬ç«ï¼çï¼é¨ç½²ç主æå¡ææ¡£ãåè "
+"JBoss AS ææ¡£ä»¥äºè§£æ´å¤ç JMXæå¡ä¸ EJB é¨ç½²çä¿¡æ¯ã "
#~ msgid ""
-#~ "<literal>hibernate.properties</literal> is the easiest approach if you "
-#~ "want to get started quickly."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addResource(\"Item.hbm.xml\")\n"
+#~ " .addResource(\"Bid.hbm.xml\");]]>"
#~ msgstr ""
-#~ "妿æ³å°½å¿«ä½éªHibernate, <literal>hibernate.properties</literal>æ¯æç®åç"
-#~ "æ¹å¼."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addResource(\"Item.hbm.xml\")\n"
+#~ " .addResource(\"Bid.hbm.xml\");]]>"
-#~ msgid "Hibernate logs various events using Apache commons-logging."
-#~ msgstr "Hibernate使ç¨Apache commons-loggingæ¥ä¸ºåç§äºä»¶è®°å½æ¥å¿."
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class);]]>"
#~ msgid ""
-#~ "The commons-logging service will direct output to either Apache Log4j (if "
-#~ "you include <literal>log4j.jar</literal> in your classpath) or JDK1.4 "
-#~ "logging (if running under JDK1.4 or above). You may download Log4j from "
-#~ "<literal>http://jakarta.apache.org</literal>. To use Log4j you will need "
-#~ "to place a <literal>log4j.properties</literal> file in your classpath, an "
-#~ "example properties file is distributed with Hibernate in the <literal>src/"
-#~ "</literal> directory."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class)\n"
+#~ " .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
+#~ "MySQLInnoDBDialect\")\n"
+#~ " .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/"
+#~ "jdbc/test\")\n"
+#~ " .setProperty(\"hibernate.order_updates\", \"true\");]]>"
#~ msgstr ""
-#~ "commons-loggingå°ç´æ¥è¾åºå°Apache Log4j(妿å¨ç±»è·¯å¾ä¸å
æ¬<literal>log4j."
-#~ "jar</literal>)æ JDK1.4 logging (妿è¿è¡å¨JDK1.4æä»¥ä¸çç¯å¢ä¸). ä½ å¯ä»¥ä»"
-#~ "<literal>http://jakarta.apache.org</literal> ä¸è½½Log4j. è¦ä½¿ç¨Log4jï¼ä½ é"
-#~ "è¦å°<literal>log4j.properties</literal>æä»¶æ¾ç½®å¨ç±»è·¯å¾ä¸, éHibernate ä¸"
-#~ "åååçæ ·ä¾å±æ§æä»¶å¨<literal>src/</literal>ç®å½ä¸."
+#~ "<![CDATA[Configuration cfg = new Configuration()\n"
+#~ " .addClass(org.hibernate.auction.Item.class)\n"
+#~ " .addClass(org.hibernate.auction.Bid.class)\n"
+#~ " .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
+#~ "MySQLInnoDBDialect\")\n"
+#~ " .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/"
+#~ "jdbc/test\")\n"
+#~ " .setProperty(\"hibernate.order_updates\", \"true\");]]>"
-#~ msgid "<placeholder-1/> (optional)"
-#~ msgstr "<placeholder-1/> (å¯é)"
+#~ msgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
+#~ msgstr "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"
-#~ msgid "InitialContextFactory"
-#~ msgstr "InitialContextFactory"
-
-#~ msgid "class of the JNDI <placeholder-1/>"
-#~ msgstr "JNDI <placeholder-1/>ç±»"
-
-#, fuzzy
-#~ msgid "eg."
+#~ msgid ""
+#~ "<![CDATA[Session session = sessions.openSession(); // open a new Session]]"
+#~ ">"
#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "eg.\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "åå¼"
+#~ "<![CDATA[Session session = sessions.openSession(); // open a new Session]]"
+#~ ">"
-#~ msgid "full.classname.of.Dialect"
-#~ msgstr "full.classname.of.Dialect"
+#~ msgid "JDBC URL"
+#~ msgstr "JDBC URL"
-#~ msgid "debug"
-#~ msgstr "debug"
+#~ msgid "database user"
+#~ msgstr "database user"
-#~ msgid "SCHEMA_NAME"
-#~ msgstr "SCHEMA_NAME"
+#~ msgid "database user password"
+#~ msgstr "æ°æ®åºç¨æ·å¯ç "
-#~ msgid "CATALOG_NAME"
-#~ msgstr "CATALOG_NAME"
+#~ msgid ""
+#~ "<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
+#~ "hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
+#~ "hibernate.connection.username = myuser\n"
+#~ "hibernate.connection.password = secret\n"
+#~ "hibernate.c3p0.min_size=5\n"
+#~ "hibernate.c3p0.max_size=20\n"
+#~ "hibernate.c3p0.timeout=1800\n"
+#~ "hibernate.c3p0.max_statements=50\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
+#~ msgstr ""
+#~ "<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
+#~ "hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
+#~ "hibernate.connection.username = myuser\n"
+#~ "hibernate.connection.password = secret\n"
+#~ "hibernate.c3p0.min_size=5\n"
+#~ "hibernate.c3p0.max_size=20\n"
+#~ "hibernate.c3p0.timeout=1800\n"
+#~ "hibernate.c3p0.max_statements=50\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-#~ msgid "SessionFactory"
-#~ msgstr "SessionFactory"
+#~ msgid "datasource JNDI name"
+#~ msgstr "æ°æ®æº JNDI åå"
-#~ msgid "jndi/composite/name"
-#~ msgstr "jndi/composite/name"
+#~ msgid ""
+#~ "<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
+#~ "hibernate.transaction.factory_class = \\\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ "hibernate.transaction.manager_lookup_class = \\\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
+#~ msgstr ""
+#~ "<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
+#~ "hibernate.transaction.factory_class = \\\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ "hibernate.transaction.manager_lookup_class = \\\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup\n"
+#~ "hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
-#~ msgid "0"
-#~ msgstr "0"
+#~ msgid "<entry>DB2</entry>"
+#~ msgstr "<entry>DB2</entry>"
-#~ msgid "false"
-#~ msgstr "false"
+#~ msgid "hibernate.query.substitutions true=1, false=0"
+#~ msgstr "hibernate.query.substitutions true=1ï¼false=0"
-#~ msgid "Statement.setFetchSize()"
-#~ msgstr "Statement.setFetchSize()"
+#~ msgid "hibernate.query.substitutions toLowercase=LOWER"
+#~ msgstr "hibernate.query.substitutions toLowercase=LOWER"
-#~ msgid "true"
-#~ msgstr "executeBatch()"
+#~ msgid "org.hibernate"
+#~ msgstr "org.hibernate"
-#~ msgid "executeBatch()"
-#~ msgstr "true"
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
+#~ " .addFile(\"Item.hbm.xml\")\n"
+#~ " .addFile(\"Bid.hbm.xml\")\n"
+#~ " .buildSessionFactory();]]>"
+#~ msgstr ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"
+#~ " .addFile(\"Item.hbm.xml\")\n"
+#~ " .addFile(\"Bid.hbm.xml\")\n"
+#~ " .buildSessionFactory();]]>"
-#~ msgid "Batcher"
-#~ msgstr "Batcher"
+#~ msgid ""
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <!-- a SessionFactory instance listed as /jndi/name -->\n"
+#~ " <session-factory\n"
+#~ " name=\"java:hibernate/SessionFactory\">\n"
+#~ "\n"
+#~ " <!-- properties -->\n"
+#~ " <property name=\"connection.datasource\">java:/comp/env/jdbc/"
+#~ "MyDB</property>\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
+#~ "property>\n"
+#~ " <property name=\"show_sql\">false</property>\n"
+#~ " <property name=\"transaction.factory_class\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ " </property>\n"
+#~ " <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- mapping files -->\n"
+#~ " <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
+#~ " <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
+#~ "\n"
+#~ " <!-- cache settings -->\n"
+#~ " <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-"
+#~ "write\"/>\n"
+#~ " <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only"
+#~ "\"/>\n"
+#~ " <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
+#~ "usage=\"read-write\"/>\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <!-- a SessionFactory instance listed as /jndi/name -->\n"
+#~ " <session-factory\n"
+#~ " name=\"java:hibernate/SessionFactory\">\n"
+#~ "\n"
+#~ " <!-- properties -->\n"
+#~ " <property name=\"connection.datasource\">java:/comp/env/jdbc/"
+#~ "MyDB</property>\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.MySQLDialect</"
+#~ "property>\n"
+#~ " <property name=\"show_sql\">false</property>\n"
+#~ " <property name=\"transaction.factory_class\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory\n"
+#~ " </property>\n"
+#~ " <property name=\"jta.UserTransaction\">java:comp/UserTransaction</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- mapping files -->\n"
+#~ " <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
+#~ " <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
+#~ "\n"
+#~ " <!-- cache settings -->\n"
+#~ " <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-"
+#~ "write\"/>\n"
+#~ " <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only"
+#~ "\"/>\n"
+#~ " <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
+#~ "usage=\"read-write\"/>\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
-#~ msgid "classname.of.BatcherFactory"
-#~ msgstr "classname.of.BatcherFactory"
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration().configure()."
+#~ "buildSessionFactory();]]>"
+#~ msgstr ""
+#~ "<![CDATA[SessionFactory sf = new Configuration().configure()."
+#~ "buildSessionFactory();]]>"
-#~ msgid "binary"
-#~ msgstr "binary (äºè¿å¶)"
+#~ msgid ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .configure(\"catdb.cfg.xml\")\n"
+#~ " .buildSessionFactory();]]>"
+#~ msgstr ""
+#~ "<![CDATA[SessionFactory sf = new Configuration()\n"
+#~ " .configure(\"catdb.cfg.xml\")\n"
+#~ " .buildSessionFactory();]]>"
-#~ msgid "serializable"
-#~ msgstr "serializable (å¯åºåå)"
-
-#~ msgid "PreparedStatement.getGeneratedKeys()"
-#~ msgstr "PreparedStatement.getGeneratedKeys()"
-
-#~ msgid "true|false"
-#~ msgstr "true|false"
-
-#~ msgid "ConnectionProvider"
-#~ msgstr "ConnectionProvider"
-
-#~ msgid "classname.of.ConnectionProvider"
-#~ msgstr "classname.of.ConnectionProvider"
-
-#~ msgid "java.sql.Connection"
-#~ msgstr "java.sql.Connection"
-
-#~ msgid "1, 2, 4, 8"
-#~ msgstr "1, 2, 4, 8"
-
-#~ msgid "after_statement"
-#~ msgstr "after_statement"
-
-#~ msgid "after_transaction"
-#~ msgstr "after_transaction"
-
-#~ msgid "auto"
-#~ msgstr "auto"
-
-#~ msgid "<propertyName>"
-#~ msgstr "<propertyName>"
-
-#~ msgid "hibernate.connection.<placeholder-1/>"
-#~ msgstr "hibernate.connection.<placeholder-1/>"
-
-#~ msgid "propertyName"
-#~ msgstr "propertyName"
-
-#~ msgid "DriverManager.getConnection()"
-#~ msgstr "DriverManager.getConnection()"
-
-#~ msgid "Pass the JDBC property <placeholder-1/> to <placeholder-2/>."
-#~ msgstr "å°JDBC屿§<placeholder-1/>ä¼ éå°<placeholder-2/>ä¸å»."
-
-#~ msgid "hibernate.jndi.<placeholder-1/>"
-#~ msgstr "hibernate.jndi.<placeholder-1/>"
-
-#~ msgid "Pass the property <placeholder-1/> to the JNDI <placeholder-2/>."
-#~ msgstr "å°å±æ§<placeholder-1/>ä¼ éå°JNDI <placeholder-2/>ä¸å»."
-
-#~ msgid "CacheProvider"
-#~ msgstr "CacheProvider"
-
-#~ msgid "classname.of.CacheProvider"
-#~ msgstr "classname.of.CacheProvider"
-
-#~ msgid "<cache>"
-#~ msgstr "<cache>"
-
-#~ msgid "QueryCache"
-#~ msgstr "QueryCache"
-
-#~ msgid "StandardQueryCache"
-#~ msgstr "StandardQueryCache"
-
-#~ msgid "classname.of.QueryCache"
-#~ msgstr "classname.of.QueryCache"
-
-#~ msgid "prefix"
-#~ msgstr "prefix"
-
-#~ msgid "TransactionFactory"
-#~ msgstr "TransactionFactory"
-
-#~ msgid "Transaction"
-#~ msgstr "Transaction"
-
-#~ msgid "JDBCTransactionFactory"
-#~ msgstr "JDBCTransactionFactory"
-
-#~ msgid "classname.of.TransactionFactory"
-#~ msgstr "classname.of.TransactionFactory"
-
-#~ msgid "JTATransactionFactory"
-#~ msgstr "JTATransactionFactory"
-
-#~ msgid "UserTransaction"
-#~ msgstr "UserTransaction"
-
-#~ msgid "TransactionManagerLookup"
-#~ msgstr "TransactionManagerLookup"
-
-#~ msgid "classname.of.TransactionManagerLookup"
-#~ msgstr "classname.of.TransactionManagerLookup"
-
-#~ msgid "Session"
-#~ msgstr "Session"
-
-#~ msgid "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-#~ msgstr "hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC"
-
-#~ msgid "create-drop"
-#~ msgstr "create-drop"
-
-#~ msgid "hibernate.cfg.xml"
-#~ msgstr "hibernate.cfg.xml"
-
-#~ msgid "DB2"
-#~ msgstr "DB2"
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\"?>\n"
+#~ "<server>\n"
+#~ "\n"
+#~ "<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
+#~ " name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
+#~ "\n"
+#~ " <!-- Required services -->\n"
+#~ " <depends>jboss.jca:service=RARDeployer</depends>\n"
+#~ " <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
+#~ "\n"
+#~ " <!-- Bind the Hibernate service to JNDI -->\n"
+#~ " <attribute name=\"JndiName\">java:/hibernate/SessionFactory</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Datasource settings -->\n"
+#~ " <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
+#~ " <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Transaction integration -->\n"
+#~ " <attribute name=\"TransactionStrategy\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory</attribute>\n"
+#~ " <attribute name=\"TransactionManagerLookupStrategy\">\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup</"
+#~ "attribute>\n"
+#~ " <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
+#~ " <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Fetching options -->\n"
+#~ " <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
+#~ "\n"
+#~ " <!-- Second-level caching -->\n"
+#~ " <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
+#~ " <attribute name=\"CacheProviderClass\">org.hibernate.cache."
+#~ "EhCacheProvider</attribute>\n"
+#~ " <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Logging -->\n"
+#~ " <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Mapping files -->\n"
+#~ " <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/"
+#~ "Category.hbm.xml</attribute>\n"
+#~ "\n"
+#~ "</mbean>\n"
+#~ "\n"
+#~ "</server>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\"?>\n"
+#~ "<server>\n"
+#~ "\n"
+#~ "<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
+#~ " name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
+#~ "\n"
+#~ " <!-- Required services -->\n"
+#~ " <depends>jboss.jca:service=RARDeployer</depends>\n"
+#~ " <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
+#~ "\n"
+#~ " <!-- Bind the Hibernate service to JNDI -->\n"
+#~ " <attribute name=\"JndiName\">java:/hibernate/SessionFactory</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Datasource settings -->\n"
+#~ " <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
+#~ " <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "attribute>\n"
+#~ "\n"
+#~ " <!-- Transaction integration -->\n"
+#~ " <attribute name=\"TransactionStrategy\">\n"
+#~ " org.hibernate.transaction.JTATransactionFactory</attribute>\n"
+#~ " <attribute name=\"TransactionManagerLookupStrategy\">\n"
+#~ " org.hibernate.transaction.JBossTransactionManagerLookup</"
+#~ "attribute>\n"
+#~ " <attribute name=\"FlushBeforeCompletionEnabled\">true</attribute>\n"
+#~ " <attribute name=\"AutoCloseSessionEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Fetching options -->\n"
+#~ " <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
+#~ "\n"
+#~ " <!-- Second-level caching -->\n"
+#~ " <attribute name=\"SecondLevelCacheEnabled\">true</attribute>\n"
+#~ " <attribute name=\"CacheProviderClass\">org.hibernate.cache."
+#~ "EhCacheProvider</attribute>\n"
+#~ " <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Logging -->\n"
+#~ " <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
+#~ "\n"
+#~ " <!-- Mapping files -->\n"
+#~ " <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/"
+#~ "Category.hbm.xml</attribute>\n"
+#~ "\n"
+#~ "</mbean>\n"
+#~ "\n"
+#~ "</server>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/events.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/events.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/events.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,41 +1,41 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:34\n"
+"PO-Revision-Date: 2009-11-23 09:36+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: events.xml:29
#, no-c-format
msgid "Interceptors and events"
-msgstr "æ¦æªå¨ä¸äºä»¶(Interceptors and events)"
+msgstr "æ¦æªå¨ä¸äºä»¶ï¼Interceptors and eventsï¼"
#. Tag: para
-#: events.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is useful for the application to react to certain events that occur "
"inside Hibernate. This allows for the implementation of generic "
"functionality and the extension of Hibernate functionality."
msgstr ""
-"åºç¨ç¨åºè½å¤ååºHibernateå
é¨äº§ççç¹å®äºä»¶æ¯é常æç¨çãè¿æ ·å°±å
许å®ç°æäºé"
-"ç¨çåè½ ä»¥åå
许对Hibernateåè½è¿è¡æ©å±ã"
+"åºç¨ç¨åºè½å¤ååº Hibernate å
é¨äº§ççç¹å®äºä»¶æ¯é常æç¨çãè¿æ ·å°±å
许å®ç°æäº"
+"éç¨çåè½ä»¥åå
许对 Hibernate åè½è¿è¡æ©å±ã"
#. Tag: title
-#: events.xml:38
#, no-c-format
msgid "Interceptors"
-msgstr "æ¦æªå¨(Interceptors)"
+msgstr "æ¦æªå¨ï¼Interceptorsï¼"
#. Tag: para
-#: events.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Interceptor</literal> interface provides callbacks from the "
"session to the application, allowing the application to inspect and/or "
@@ -47,145 +47,46 @@
"<literal>lastUpdateTimestamp</literal> property when an <literal>Auditable</"
"literal> is updated."
msgstr ""
-"<literal>Interceptor</literal>æ¥å£æä¾äºä»ä¼è¯(session)åè°(callback)åºç¨ç¨åº"
-"(application)çæºå¶ï¼ è¿ç§åè°æºå¶å¯ä»¥å
许åºç¨ç¨åºå¨æä¹
å对象被ä¿åãæ´æ°ã"
-"å 餿æ¯å è½½ä¹åï¼æ£æ¥å¹¶ï¼æï¼ä¿®æ¹å
¶ 屿§ãä¸ä¸ªå¯è½çç¨éï¼å°±æ¯ç¨æ¥è·è¸ªå®¡æ ¸"
-"(auditing)ä¿¡æ¯ãä¾å¦ï¼ä¸é¢çè¿ä¸ª<literal>æ¦æªå¨</literal>ï¼ä¼å¨ä¸ä¸ªå®ç°äº "
-"<literal>Auditable</literal>æ¥å£ç对象被å建æ¶èªå¨å°è®¾ç½®"
-"<literal>createTimestamp</literal>屿§ï¼å¹¶å¨å®ç°äº <literal>Auditable</"
-"literal>æ¥å£çå¯¹è±¡è¢«æ´æ°æ¶ï¼åæ¥æ´æ°<literal>lastUpdateTimestamp</literal>å±"
-"æ§ã"
+"<literal>Interceptor</literal> æ¥å£æä¾äºä»ä¼è¯ï¼sessionï¼åè°ï¼callbackï¼åº"
+"ç¨ç¨åºï¼applicationï¼çæºå¶ï¼ è¿ç§åè°æºå¶å¯ä»¥å
许åºç¨ç¨åºå¨æä¹
å对象被ä¿"
+"åãæ´æ°ãå 餿æ¯å è½½ä¹åï¼æ£æ¥å¹¶ï¼æï¼ä¿®æ¹å
¶ 屿§ãä¸ä¸ªå¯è½çç¨éï¼å°±æ¯ç¨æ¥"
+"è·è¸ªå®¡æ ¸ï¼auditingï¼ä¿¡æ¯ãä¾å¦ï¼ä¸é¢çè¿ä¸ª<literal>æ¦æªå¨</literal>ï¼ä¼å¨ä¸ä¸ª"
+"å®ç°äº <literal>Auditable</literal> æ¥å£ç对象被å建æ¶èªå¨å°è®¾ç½® "
+"<literal>createTimestamp</literal> 屿§ï¼å¹¶å¨å®ç°äº <literal>Auditable</"
+"literal> æ¥å£çå¯¹è±¡è¢«æ´æ°æ¶ï¼åæ¥æ´æ° <literal>lastUpdateTimestamp</literal> "
+"屿§ã "
#. Tag: para
-#: events.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can either implement <literal>Interceptor</literal> directly or extend "
"<literal>EmptyInterceptor</literal>."
msgstr ""
-"ä½ å¯ä»¥ç´æ¥å®ç°<literal>Interceptor</literal>æ¥å£ï¼ä¹å¯ä»¥ï¼æå¥½ï¼ç»§æ¿èª"
-"<literal>EmptyInterceptor</literal>ã"
+"ä½ å¯ä»¥ç´æ¥å®ç° <literal>Interceptor</literal> æ¥å£ï¼ä¹å¯ä»¥ï¼æå¥½ï¼ç»§æ¿èª "
+"<literal>EmptyInterceptor</literal>ã "
-#. Tag: programlisting
-#: events.xml:56
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.test;\n"
-"\n"
-"import java.io.Serializable;\n"
-"import java.util.Date;\n"
-"import java.util.Iterator;\n"
-"\n"
-"import org.hibernate.EmptyInterceptor;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.type.Type;\n"
-"\n"
-"public class AuditInterceptor extends EmptyInterceptor {\n"
-"\n"
-" private int updates;\n"
-" private int creates;\n"
-" private int loads;\n"
-"\n"
-" public void onDelete(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" // do nothing\n"
-" }\n"
-"\n"
-" public boolean onFlushDirty(Object entity,\n"
-" Serializable id,\n"
-" Object[] currentState,\n"
-" Object[] previousState,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" updates++;\n"
-" for ( int i=0; i < propertyNames.length; i++ ) {\n"
-" if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) {\n"
-" currentState[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onLoad(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-" if ( entity instanceof Auditable ) {\n"
-" loads++;\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public boolean onSave(Object entity,\n"
-" Serializable id,\n"
-" Object[] state,\n"
-" String[] propertyNames,\n"
-" Type[] types) {\n"
-"\n"
-" if ( entity instanceof Auditable ) {\n"
-" creates++;\n"
-" for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
-" state[i] = new Date();\n"
-" return true;\n"
-" }\n"
-" }\n"
-" }\n"
-" return false;\n"
-" }\n"
-"\n"
-" public void afterTransactionCompletion(Transaction tx) {\n"
-" if ( tx.wasCommitted() ) {\n"
-" System.out.println(\"Creations: \" + creates + \", Updates: \" + "
-"updates, \"Loads: \" + loads);\n"
-" }\n"
-" updates=0;\n"
-" creates=0;\n"
-" loads=0;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:58
-#, fuzzy, no-c-format
-msgid ""
"There are two kinds of inteceptors: <literal>Session</literal>-scoped and "
"<literal>SessionFactory</literal>-scoped."
msgstr ""
-"æ¦æªå¨å¯ä»¥æä¸¤ç§:<literal>Session</literal>èå´å
çï¼å"
-"<literal>SessionFactory</literal>èå´å
çã"
+"æ¦æªå¨å¯ä»¥æä¸¤ç§ï¼<literal>Session</literal> èå´å
çå "
+"<literal>SessionFactory</literal> èå´å
çã"
#. Tag: para
-#: events.xml:63
#, no-c-format
msgid ""
"A <literal>Session</literal>-scoped interceptor is specified when a session "
"is opened using one of the overloaded SessionFactory.openSession() methods "
"accepting an <literal>Interceptor</literal>."
msgstr ""
-"å½ä½¿ç¨æä¸ªéè½½çSessionFactory.openSession()使ç¨<literal>Interceptor</"
-"literal>ä½ä¸ºåæ°è°ç¨æå¼ä¸ä¸ªsessionçæ¶åï¼å°±æå®äº<literal>Session</literal>"
-"èå´å
çæ¦æªå¨ã"
+"å½ä½¿ç¨æä¸ªéè½½ç SessionFactory.openSession() ä½¿ç¨ <literal>Interceptor</"
+"literal> ä½ä¸ºåæ°è°ç¨æå¼ä¸ä¸ª session çæ¶åï¼å°±æå®äº <literal>Session</"
+"literal> èå´å
çæ¦æªå¨ã"
-#. Tag: programlisting
-#: events.xml:69
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:71
-#, fuzzy, no-c-format
msgid ""
"A <literal>SessionFactory</literal>-scoped interceptor is registered with "
"the <literal>Configuration</literal> object prior to building the "
@@ -196,40 +97,31 @@
"Ensure that you do not store session-specific states, since multiple "
"sessions will use this interceptor potentially concurrently."
msgstr ""
-"<literal>SessionFactory</literal>èå´å
çæ¦æªå¨è¦éè¿<literal>Configuration</"
-"literal>䏿³¨åï¼èè¿å¿
é¡»å¨å建<literal>SessionFactory</literal>ä¹åãå¨è¿ç§æ
"
-"åµä¸ï¼ç»åºçæ¦æªå¨ä¼è¢«è¿ä¸ª<literal>SessionFactory</literal>ææå¼çææ"
-"session使ç¨äºï¼é¤ésessionæå¼æ¶æç¡®ææäºä½¿ç¨çæ¦æªå¨ã"
-"<literal>SessionFactory</literal>èå´å
çæ¦æªå¨ï¼å¿
é¡»æ¯çº¿ç¨å®å
¨çï¼å 为å¤ä¸ª"
-"sessionå¯è½å¹¶å使ç¨è¿ä¸ªæ¦æªå¨ï¼è¦å æ¤å°å¿ä¸è¦ä¿åä¸sessionç¸å
³çç¶æã"
+"<literal>SessionFactory</literal> èå´å
çæ¦æªå¨è¦éè¿ "
+"<literal>Configuration</literal> 䏿³¨åï¼èè¿å¿
é¡»å¨å建 "
+"<literal>SessionFactory</literal> ä¹åãå¨è¿ç§æ
åµä¸ï¼ç»åºçæ¦æªå¨ä¼è¢«è¿ä¸ª "
+"<literal>SessionFactory</literal> ææå¼çææ session 使ç¨äºï¼é¤é session "
+"æå¼æ¶æç¡®ææäºä½¿ç¨çæ¦æªå¨ã<literal>SessionFactory</literal> èå´å
çæ¦æª"
+"å¨ï¼å¿
é¡»æ¯çº¿ç¨å®å
¨çãç¡®ä¿ä½ 没æä¿å session 䏿çç¶æï¼å 为å¤ä¸ª session å¯"
+"è½å¹¶å使ç¨è¿ä¸ªæ¦æªå¨ã"
-#. Tag: programlisting
-#: events.xml:80
-#, no-c-format
-msgid ""
-"<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
-msgstr ""
-
#. Tag: title
-#: events.xml:85
#, no-c-format
msgid "Event system"
-msgstr "äºä»¶ç³»ç»(Event system)"
+msgstr "äºä»¶ç³»ç»ï¼Event systemï¼"
#. Tag: para
-#: events.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have to react to particular events in your persistence layer, you can "
"also use the Hibernate3 <emphasis>event</emphasis> architecture. The event "
"system can be used in addition, or as a replacement, for interceptors."
msgstr ""
-"妿éè¦ååºæä¹
å±çæäºç¹æ®äºä»¶ï¼ä½ ä¹å¯ä»¥ä½¿ç¨Hibernate3çäºä»¶æ¡æ¶ã 该äºä»¶ç³»"
-"ç»å¯ä»¥ç¨æ¥æ¿ä»£æ¦æªå¨ï¼ä¹å¯ä»¥ä½ä¸ºæ¦æªå¨çè¡¥å
æ¥ä½¿ç¨ã"
+"妿éè¦ååºæä¹
å±çæäºç¹æ®äºä»¶ï¼ä½ ä¹å¯ä»¥ä½¿ç¨ Hibernate3 çäºä»¶æ¡æ¶ã该äºä»¶"
+"ç³»ç»å¯ä»¥ç¨æ¥æ¿ä»£æ¦æªå¨ï¼ä¹å¯ä»¥ä½ä¸ºæ¦æªå¨çè¡¥å
æ¥ä½¿ç¨ã "
#. Tag: para
-#: events.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All the methods of the <literal>Session</literal> interface correlate to an "
"event. You have a <literal>LoadEvent</literal>, a <literal>FlushEvent</"
@@ -246,30 +138,28 @@
"processing any <literal>load()</literal> requests made of the "
"<literal>Session</literal>."
msgstr ""
-"åºæ¬ä¸ï¼<literal>Session</literal>æ¥å£çæ¯ä¸ªæ¹æ³é½æç¸å¯¹åºçäºä»¶ãæ¯å¦ "
-"<literal>LoadEvent</literal>ï¼<literal>FlushEvent</literal>ï¼ççï¼æ¥é
XMLé
"
-"ç½®æä»¶ çDTDï¼ä»¥å<literal>org.hibernate.event</literal>å
æ¥è·å¾ææå·²å®ä¹ç"
-"äºä»¶çå表ï¼ãå½æä¸ªæ¹ æ³è¢«è°ç¨æ¶ï¼Hibernate <literal>Session</literal>ä¼çæ"
-"ä¸ä¸ªç¸å¯¹åºçäºä»¶å¹¶æ¿æ´»æ æé
置好çäºä»¶çå¬å¨ãç³»ç»é¢è®¾ççå¬å¨å®ç°çå¤çè¿ç¨"
-"å°±æ¯è¢«çå¬çæ¹æ³è¦åçï¼è¢«çå¬çæ¹æ³æåçå
¶å®ä»
ä»
æ¯æ¿æ´»çå¬å¨ï¼ âå®é
âçå·¥ä½"
-"æ¯ç±çå¬å¨å®æçï¼ãä¸è¿ï¼ä½ å¯ä»¥èªç±å°éæ©å®ç° ä¸ä¸ªèªå·±å®å¶ççå¬å¨ï¼æ¯å¦ï¼å®"
-"ç°å¹¶æ³¨åç¨æ¥å¤çå¤ç<literal>LoadEvent</literal>ç"
-"<literal>LoadEventListener</literal>æ¥å£ï¼ï¼ æ¥è´è´£å¤çææçè°ç¨"
-"<literal>Session</literal>ç<literal>load()</literal>æ¹æ³ç请æ±ã"
+"åºæ¬ä¸ï¼<literal>Session</literal> æ¥å£çæ¯ä¸ªæ¹æ³é½æç¸å¯¹åºçäºä»¶ãæ¯å¦ "
+"<literal>LoadEvent</literal>ï¼<literal>FlushEvent</literal>ï¼ççï¼æ¥é
XML "
+"é
ç½®æä»¶ç DTDï¼ä»¥å <literal>org.hibernate.event</literal> å
æ¥è·å¾ææå·²å®"
+"ä¹çäºä»¶çå表ï¼ãå½æä¸ªæ¹ æ³è¢«è°ç¨æ¶ï¼Hibernate <literal>Session</literal>ä¼"
+"çæä¸ä¸ªç¸å¯¹åºçäºä»¶å¹¶æ¿æ´»æ æé
置好çäºä»¶çå¬å¨ãç³»ç»é¢è®¾ççå¬å¨å®ç°çå¤ç"
+"è¿ç¨å°±æ¯è¢«çå¬çæ¹æ³è¦åçï¼è¢«çå¬çæ¹æ³æåçå
¶å®ä»
ä»
æ¯æ¿æ´»çå¬å¨ï¼âå®é
âç"
+"工使¯ç±çå¬å¨å®æçï¼ãä¸è¿ï¼ä½ å¯ä»¥èªç±å°éæ©å®ç° ä¸ä¸ªèªå·±å®å¶ççå¬å¨ï¼æ¯"
+"å¦ï¼å®ç°å¹¶æ³¨åç¨æ¥å¤çå¤ç <literal>LoadEvent</literal> ç "
+"<literal>LoadEventListener</literal> æ¥å£ï¼ï¼ æ¥è´è´£å¤çææçè°ç¨ "
+"<literal>Session</literal> ç <literal>load()</literal> æ¹æ³ç请æ±ã"
#. Tag: para
-#: events.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The listeners should be considered singletons. This means they are shared "
"between requests, and should not save any state as instance variables."
msgstr ""
-"çå¬å¨åºè¯¥è¢«ç使¯åä¾(singleton)对象ï¼ä¹å°±æ¯è¯´ï¼ææåç±»åçäºä»¶çå¤çå
±äº«å"
-"ä¸ä¸ªçå¬å¨å®ä¾ï¼å æ¤çå¬å¨ ä¸åºè¯¥ä¿åä»»ä½ç¶æï¼ä¹å°±æ¯ä¸åºè¯¥ä½¿ç¨æååéï¼ã"
+"çå¬å¨åºè¯¥è¢«ç使¯åä¾ï¼singletonï¼å¯¹è±¡ï¼ä¹å°±æ¯è¯´ï¼ææåç±»åçäºä»¶çå¤çå
񄧮"
+"åä¸ä¸ªçå¬å¨å®ä¾ï¼å æ¤çå¬å¨ä¸åºè¯¥ä¿åä»»ä½ç¶æï¼ä¹å°±æ¯ä¸åºè¯¥ä½¿ç¨æååéï¼ã"
#. Tag: para
-#: events.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A custom listener implements the appropriate interface for the event it "
"wants to process and/or extend one of the convenience base classes (or even "
@@ -281,89 +171,42 @@
"example of a custom load event listener:"
msgstr ""
"ç¨æ·å®å¶ççå¬å¨åºè¯¥å®ç°ä¸æè¦å¤ççäºä»¶ç¸å¯¹åºçæ¥å£ï¼æè
ä»ä¸ä¸ªåéçåºç±»ç»§"
-"æ¿ï¼çè³æ¯ä»Hibernateèªå¸¦çé»è®¤äºä»¶çå¬å¨ç±»ç»§æ¿ï¼ ä¸ºäºæ¹ä¾¿ä½ è¿æ ·åï¼è¿äºç±»é½"
-"被声æænon-finalçäºï¼ãç¨æ·å®å¶ççå¬å¨å¯ä»¥éè¿ç¼ç¨ä½¿ç¨"
-"<literal>Configuration</literal>对象 æ¥æ³¨åï¼ä¹å¯ä»¥å¨HibernateçXMLæ ¼å¼çé
ç½®"
-"æä»¶ä¸è¿è¡å£°æï¼ä¸æ¯æå¨Propertiesæ ¼å¼çé
ç½®æä»¶å£°æçå¬å¨ï¼ã ä¸é¢æ¯ä¸ä¸ªç¨æ·"
-"å®å¶çå è½½äºä»¶(load event)ççå¬å¨ï¼"
+"æ¿ï¼çè³æ¯ä» Hibernate èªå¸¦çé»è®¤äºä»¶çå¬å¨ç±»ç»§æ¿ï¼ä¸ºäºæ¹ä¾¿ä½ è¿æ ·åï¼è¿äºç±»é½"
+"è¢«å£°ææ non-final çäºï¼ãç¨æ·å®å¶ççå¬å¨å¯ä»¥éè¿ç¼ç¨ä½¿ç¨ "
+"<literal>Configuration</literal> 对象 æ¥æ³¨åï¼ä¹å¯ä»¥å¨Hibernateç XML æ ¼å¼ç"
+"é
ç½®æä»¶ä¸è¿è¡å£°æï¼ä¸æ¯æå¨ Properties æ ¼å¼çé
ç½®æä»¶å£°æçå¬å¨ï¼ãä¸é¢æ¯ä¸"
+"ä¸ªç¨æ·å®å¶çå è½½äºä»¶ï¼load eventï¼ççå¬å¨ï¼"
-#. Tag: programlisting
-#: events.xml:123
-#, no-c-format
-msgid ""
-"<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
-" // this is the single method defined by the LoadEventListener interface\n"
-" public void onLoad(LoadEvent event, LoadEventListener.LoadType "
-"loadType)\n"
-" throws HibernateException {\n"
-" if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
-"getEntityId() ) ) {\n"
-" throw MySecurityException(\"Unauthorized access\");\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:125
#, no-c-format
msgid ""
"You also need a configuration entry telling Hibernate to use the listener in "
"addition to the default listener:"
msgstr ""
-"ä½ è¿éè¦ä¿®æ¹ä¸å¤é
ç½®ï¼æ¥åè¯Hibernateï¼é¤äºé»è®¤ççå¬å¨ï¼è¿è¦éå éå®ççå¬"
+"ä½ è¿éè¦ä¿®æ¹ä¸å¤é
ç½®ï¼æ¥åè¯ Hibernateï¼é¤äºé»è®¤ççå¬å¨ï¼è¿è¦éå éå®ççå¬"
"å¨ã"
-#. Tag: programlisting
-#: events.xml:130
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-configuration>\n"
-" <session-factory>\n"
-" ...\n"
-" <event type=\"load\">\n"
-" <listener class=\"com.eg.MyLoadListener\"/>\n"
-" <listener class=\"org.hibernate.event.def."
-"DefaultLoadEventListener\"/>\n"
-" </event>\n"
-" </session-factory>\n"
-"</hibernate-configuration>]]>"
-msgstr ""
+msgid "Instead, you can register it programmatically:"
+msgstr "æè
ï¼ä½ å¯ä»¥éè¿ç¼ç¨çæ¹å¼æ¥æ³¨åå®ï¼"
#. Tag: para
-#: events.xml:132
-#, fuzzy, no-c-format
-msgid "Instead, you can register it programmatically:"
-msgstr "ççç¨å¦ä¸ç§æ¹å¼ï¼éè¿ç¼ç¨çæ¹å¼æ¥æ³¨åå®ã"
-
-#. Tag: programlisting
-#: events.xml:136
#, no-c-format
msgid ""
-"<![CDATA[Configuration cfg = new Configuration();\n"
-"LoadEventListener[] stack = { new MyLoadListener(), new "
-"DefaultLoadEventListener() };\n"
-"cfg.EventListeners().setLoadEventListeners(stack);]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:138
-#, fuzzy, no-c-format
-msgid ""
"Listeners registered declaratively cannot share instances. If the same class "
"name is used in multiple <literal><listener/></literal> elements, each "
"reference will result in a separate instance of that class. If you need to "
"share listener instances between listener types you must use the "
"programmatic registration approach."
msgstr ""
-"éè¿å¨XMLé
ç½®æä»¶å£°æè注åççå¬å¨ä¸è½å
±äº«å®ä¾ã妿å¨å¤ä¸ª<literal><"
-"listener/></literal>èç¹ä¸ä½¿ç¨ äºç¸åçç±»çååï¼åæ¯ä¸ä¸ªå¼ç¨é½å°ä¼äº§çä¸"
+"éè¿å¨XMLé
ç½®æä»¶å£°æè注åççå¬å¨ä¸è½å
±äº«å®ä¾ã妿å¨å¤ä¸ª <literal><"
+"listener/></literal> èç¹ä¸ä½¿ç¨ äºç¸åçç±»çååï¼åæ¯ä¸ä¸ªå¼ç¨é½å°ä¼äº§çä¸"
"个ç¬ç«çå®ä¾ãå¦æä½ éè¦å¨å¤ä¸ªçå¬å¨ç±»åä¹é´å
±äº« çå¬å¨çå®ä¾ï¼åä½ å¿
须使ç¨ç¼"
-"ç¨çæ¹å¼æ¥è¿è¡æ³¨åã"
+"ç¨çæ¹å¼æ¥è¿è¡æ³¨åã "
#. Tag: para
-#: events.xml:146
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why implement an interface and define the specific type during "
"configuration? A listener implementation could implement multiple event "
@@ -373,84 +216,326 @@
msgstr ""
"为ä»ä¹æä»¬å®ç°äºç¹å®çå¬å¨çæ¥å£ï¼å¨æ³¨åçæ¶åè¿è¦æç¡®æåºæä»¬è¦æ³¨ååªä¸ªäºä»¶"
"ççå¬å¨å¢ï¼ è¿æ¯å 为ä¸ä¸ªç±»å¯è½å®ç°å¤ä¸ªçå¬å¨çæ¥å£ã卿³¨åçæ¶åæç¡®æå®è¦ç"
-"å¬çäºä»¶ï¼å¯ä»¥è®©å¯ç¨æè
ç¦ç¨å¯¹æä¸ªäºä»¶ççå¬çé
置工ä½ç®åäºã"
+"å¬çäºä»¶ï¼å¯ä»¥è®©å¯ç¨æè
ç¦ç¨å¯¹æä¸ªäºä»¶ççå¬çé
置工ä½ç®åäºã "
#. Tag: title
-#: events.xml:156
#, no-c-format
msgid "Hibernate declarative security"
-msgstr "Hibernateç声æå¼å®å
¨æºå¶"
+msgstr "Hibernate ç声æå¼å®å
¨æºå¶"
#. Tag: para
-#: events.xml:157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, declarative security in Hibernate applications is managed in a "
"session facade layer. Hibernate3 allows certain actions to be permissioned "
"via JACC, and authorized via JAAS. This is an optional functionality that is "
"built on top of the event architecture."
msgstr ""
-"é常ï¼Hibernateåºç¨ç¨åºç声æå¼å®å
¨æºå¶ç±ä¼è¯å¤è§å±(session facade)æç®¡çã "
-"ç°å¨ï¼Hibernate3å
许æäºç¹å®çè¡ä¸ºç±JACCè¿è¡è®¸å¯ç®¡çï¼ç±JAASè¿è¡ææç®¡çã æ¬"
-"åè½æ¯ä¸ä¸ªå»ºç«å¨äºä»¶æ¡æ¶ä¹ä¸çå¯éçåè½ã"
+"é常ï¼Hibernate åºç¨ç¨åºç声æå¼å®å
¨æºå¶ç±ä¼è¯å¤è§å±ï¼session facadeï¼æç®¡"
+"çãç°å¨ï¼Hibernate3å
许æäºç¹å®çè¡ä¸ºç± JACC è¿è¡è®¸å¯ç®¡çï¼ç± JAAS è¿è¡ææ"
+"管çãæ¬åè½æ¯ä¸ä¸ªå»ºç«å¨äºä»¶æ¡æ¶ä¹ä¸çå¯éçåè½ã "
#. Tag: para
-#: events.xml:163
#, no-c-format
msgid ""
"First, you must configure the appropriate event listeners, to enable the use "
"of JAAS authorization."
msgstr ""
-"é¦å
ï¼ä½ å¿
é¡»è¦é
ç½®éå½çäºä»¶çå¬å¨ï¼event listenerï¼ï¼æ¥æ¿æ´»ä½¿ç¨JAASç®¡çææ"
-"çåè½ã"
+"é¦å
ï¼ä½ å¿
é¡»è¦é
ç½®éå½çäºä»¶çå¬å¨ï¼event listenerï¼ï¼æ¥æ¿æ´»ä½¿ç¨ JAAS 管çæ"
+"æçåè½ã"
-#. Tag: programlisting
-#: events.xml:168
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
-"JACCPreDeleteEventListener\"/>\n"
-"<listener type=\"pre-update\" class=\"org.hibernate.secure."
-"JACCPreUpdateEventListener\"/>\n"
-"<listener type=\"pre-insert\" class=\"org.hibernate.secure."
-"JACCPreInsertEventListener\"/>\n"
-"<listener type=\"pre-load\" class=\"org.hibernate.secure."
-"JACCPreLoadEventListener\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: events.xml:170
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal><listener type=\"...\" class=\"...\"/></literal> is "
"shorthand for <literal><event type=\"...\"><listener class=\"...\"/"
"></event></literal> when there is exactly one listener for a "
"particular event type."
msgstr ""
-"注æï¼<literal><listener type=\"...\" class=\"...\"/></literal>åªæ¯"
+"注æï¼<literal><listener type=\"...\" class=\"...\"/></literal> åªæ¯ "
"<literal><event type=\"...\"><listener class=\"...\"/></"
-"event></literal>çç®åï¼å¯¹æ¯ä¸ä¸ªäºä»¶ç±»åé½å¿
é¡»ä¸¥æ ¼çæä¸ä¸ªçå¬å¨ä¸ä¹å¯¹åºã"
+"event></literal> çç®åï¼å¯¹æ¯ä¸ä¸ªäºä»¶ç±»åé½å¿
é¡»ä¸¥æ ¼çæä¸ä¸ªçå¬å¨ä¸ä¹å¯¹"
+"åºã "
#. Tag: para
-#: events.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, while still in <literal>hibernate.cfg.xml</literal>, bind the "
"permissions to roles:"
msgstr ""
-"æ¥ä¸æ¥ï¼ä»ç¶å¨<literal>hibernate.cfg.xml</literal>æä»¶ä¸ï¼ç»å®è§è²çæéï¼"
+"æ¥ä¸æ¥ï¼ä»ç¶å¨ <literal>hibernate.cfg.xml</literal> æä»¶ä¸ï¼ç»å®è§è²çæéï¼ "
-#. Tag: programlisting
-#: events.xml:180
-#, no-c-format
-msgid ""
-"<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,update,"
-"read\"/>\n"
-"<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: events.xml:182
#, no-c-format
msgid "The role names are the roles understood by your JACC provider."
-msgstr "è¿äºè§è²çååå°±æ¯ä½ çJACC provideræå®ä¹çè§è²çååã"
+msgstr "è¿äºè§è²çååå°±æ¯ä½ ç JACC provider æå®ä¹çè§è²çååã"
+
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package org.hibernate.test;\n"
+#~ "\n"
+#~ "import java.io.Serializable;\n"
+#~ "import java.util.Date;\n"
+#~ "import java.util.Iterator;\n"
+#~ "\n"
+#~ "import org.hibernate.EmptyInterceptor;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.type.Type;\n"
+#~ "\n"
+#~ "public class AuditInterceptor extends EmptyInterceptor {\n"
+#~ "\n"
+#~ " private int updates;\n"
+#~ " private int creates;\n"
+#~ " private int loads;\n"
+#~ "\n"
+#~ " public void onDelete(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " // do nothing\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onFlushDirty(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] currentState,\n"
+#~ " Object[] previousState,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " updates++;\n"
+#~ " for ( int i=0; i < propertyNames.length; i++ ) {\n"
+#~ " if ( \"lastUpdateTimestamp\".equals( propertyNames[i] ) ) "
+#~ "{\n"
+#~ " currentState[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onLoad(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " loads++;\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean onSave(Object entity,\n"
+#~ " Serializable id,\n"
+#~ " Object[] state,\n"
+#~ " String[] propertyNames,\n"
+#~ " Type[] types) {\n"
+#~ "\n"
+#~ " if ( entity instanceof Auditable ) {\n"
+#~ " creates++;\n"
+#~ " for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( \"createTimestamp\".equals( propertyNames[i] ) ) {\n"
+#~ " state[i] = new Date();\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return false;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void afterTransactionCompletion(Transaction tx) {\n"
+#~ " if ( tx.wasCommitted() ) {\n"
+#~ " System.out.println(\"Creations: \" + creates + \", Updates: "
+#~ "\" + updates, \"Loads: \" + loads);\n"
+#~ " }\n"
+#~ " updates=0;\n"
+#~ " creates=0;\n"
+#~ " loads=0;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = sf.openSession( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+#~ msgstr ""
+#~ "<![CDATA[new Configuration().setInterceptor( new AuditInterceptor() );]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class MyLoadListener implements LoadEventListener {\n"
+#~ " // this is the single method defined by the LoadEventListener "
+#~ "interface\n"
+#~ " public void onLoad(LoadEvent event, LoadEventListener.LoadType "
+#~ "loadType)\n"
+#~ " throws HibernateException {\n"
+#~ " if ( !MySecurity.isAuthorized( event.getEntityClassName(), event."
+#~ "getEntityId() ) ) {\n"
+#~ " throw MySecurityException(\"Unauthorized access\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-configuration>\n"
+#~ " <session-factory>\n"
+#~ " ...\n"
+#~ " <event type=\"load\">\n"
+#~ " <listener class=\"com.eg.MyLoadListener\"/>\n"
+#~ " <listener class=\"org.hibernate.event.def."
+#~ "DefaultLoadEventListener\"/>\n"
+#~ " </event>\n"
+#~ " </session-factory>\n"
+#~ "</hibernate-configuration>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Configuration cfg = new Configuration();\n"
+#~ "LoadEventListener[] stack = { new MyLoadListener(), new "
+#~ "DefaultLoadEventListener() };\n"
+#~ "cfg.EventListeners().setLoadEventListeners(stack);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<listener type=\"pre-delete\" class=\"org.hibernate.secure."
+#~ "JACCPreDeleteEventListener\"/>\n"
+#~ "<listener type=\"pre-update\" class=\"org.hibernate.secure."
+#~ "JACCPreUpdateEventListener\"/>\n"
+#~ "<listener type=\"pre-insert\" class=\"org.hibernate.secure."
+#~ "JACCPreInsertEventListener\"/>\n"
+#~ "<listener type=\"pre-load\" class=\"org.hibernate.secure."
+#~ "JACCPreLoadEventListener\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<grant role=\"admin\" entity-name=\"User\" actions=\"insert,"
+#~ "update,read\"/>\n"
+#~ "<grant role=\"su\" entity-name=\"User\" actions=\"*\"/>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_mappings.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_mappings.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_mappings.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,36 +1,36 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:55+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\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"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_mappings.xml:29
#, no-c-format
msgid "Example: Various Mappings"
msgstr "示ä¾ï¼å¤ææ å°å®ä¾"
#. 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
#, no-c-format
msgid "Employer/Employee"
-msgstr "Employerï¼é主)/Employee(éå)"
+msgstr "Employerï¼é主ï¼/Employeeï¼éåï¼"
#. Tag: para
-#: example_mappings.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
@@ -38,128 +38,28 @@
"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建模ã"
+"ä¸é¢å
³äº <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
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" \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"
-" <class name=\"Employment\" table=\"employment_periods\">\n"
-"\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"
-" <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"
-" <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"
-" <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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: example_mappings.xml:62
-#, fuzzy, 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
-#, no-c-format
-msgid ""
-"<![CDATA[create table employers (\n"
-" id BIGINT not null, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employment_periods (\n"
-" id BIGINT not null,\n"
-" hourly_rate NUMERIC(12, 2),\n"
-" currency VARCHAR(12), \n"
-" employee_id BIGINT not null, \n"
-" employer_id BIGINT not null, \n"
-" end_date TIMESTAMP, \n"
-" start_date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table employees (\n"
-" id BIGINT not null, \n"
-" firstName VARCHAR(255), \n"
-" initial CHAR(1), \n"
-" lastName VARCHAR(255), \n"
-" taxfileNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"alter table employment_periods \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"
-"create sequence employee_id_seq\n"
-"create sequence employment_id_seq\n"
-"create sequence employer_id_seq]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:71
#, no-c-format
msgid "Author/Work"
-msgstr "Author(ä½å®¶)/Work(ä½å)"
+msgstr "Authorï¼ä½å®¶ï¼/Workï¼ä½åï¼"
#. Tag: para
-#: example_mappings.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
@@ -169,141 +69,39 @@
"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>ã"
+"èèä¸é¢ç <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:"
msgstr "ä¸é¢çæ å°æä»¶æ£ç¡®çæè¿°äºè¿äºå
³ç³»ï¼"
-#. Tag: programlisting
-#: example_mappings.xml:95
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
-"\n"
-" <id name=\"id\" column=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"type\" type=\"character\"/>\n"
-"\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"
-" <subclass name=\"Book\" discriminator-value=\"B\">\n"
-" <property name=\"text\"/>\n"
-" </subclass>\n"
-"\n"
-" <subclass name=\"Song\" discriminator-value=\"S\">\n"
-" <property name=\"tempo\"/>\n"
-" <property name=\"genre\"/>\n"
-" </subclass>\n"
-"\n"
-" </class>\n"
-"\n"
-" <class name=\"Author\" table=\"authors\">\n"
-"\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"
-" <property name=\"alias\"/>\n"
-" <one-to-one name=\"person\" constrained=\"true\"/>\n"
-"\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"
-" </class>\n"
-"\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"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. 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>çæçã"
+"æ å°ä¸æ 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
-#, no-c-format
-msgid ""
-"<![CDATA[create table works (\n"
-" id BIGINT not null generated by default as identity, \n"
-" tempo FLOAT, \n"
-" genre VARCHAR(255), \n"
-" text INTEGER, \n"
-" title VARCHAR(255), \n"
-" type CHAR(1) not null, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table author_work (\n"
-" author_id BIGINT not null, \n"
-" work_id BIGINT not null, \n"
-" primary key (work_id, author_id)\n"
-")\n"
-"\n"
-"create table authors (\n"
-" id BIGINT not null generated by default as identity, \n"
-" alias VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table persons (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table author_work\n"
-" add constraint author_workFK1 foreign key (work_id) references works]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:110
#, no-c-format
msgid "Customer/Order/Product"
-msgstr "Customer(客æ·)/Order(订å)/Product(产å)"
+msgstr "Customerï¼å®¢æ·ï¼/Orderï¼è®¢åï¼/Productï¼äº§åï¼"
#. Tag: para
-#: example_mappings.xml:112
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
@@ -315,65 +113,20 @@
"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ï¼è¿å«åç»åå
ç´ ã"
+"ç°å¨æ¥èè <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
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\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"
-" <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"
-" <class name=\"Product\" table=\"products\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"serialNumber\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: example_mappings.xml:138
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
@@ -381,401 +134,1121 @@
"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çå
³è表ã"
+"<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
-#, no-c-format
-msgid ""
-"<![CDATA[create table customers (\n"
-" id BIGINT not null generated by default as identity, \n"
-" name VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table orders (\n"
-" id BIGINT not null generated by default as identity, \n"
-" customer_id BIGINT, \n"
-" date TIMESTAMP, \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"create table line_items (\n"
-" line_number INTEGER not null, \n"
-" order_id BIGINT not null, \n"
-" product_id BIGINT, \n"
-" quantity INTEGER, \n"
-" primary key (order_id, line_number)\n"
-")\n"
-"\n"
-"create table products (\n"
-" id BIGINT not null generated by default as identity, \n"
-" serialNumber VARCHAR(255), \n"
-" primary key (id)\n"
-")\n"
-"\n"
-"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"
-"alter table line_items\n"
-" add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:150
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr "æä¾"
#. Tag: para
-#: example_mappings.xml:152
-#, fuzzy, no-c-format
+#, 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>ç®å½ã"
+"è¿äºä¾åå
¨é¨æ¥èªäº Hibernate ç test suiteï¼åæ¶ä½ ä¹å¯ä»¥æ¾å°å
¶ä»æç¨çä¾åã"
+"å¯ä»¥åè Hibernate ç <literal>test</literal> ç®å½ã "
#. Tag: title
-#: example_mappings.xml:161
#, no-c-format
msgid "\"Typed\" one-to-one association"
-msgstr "\"Typed\" one-to-one association"
+msgstr "\"Typed\" ä¸å¯¹ä¸å
³è"
-#. Tag: programlisting
-#: example_mappings.xml:162
-#, no-c-format
-msgid ""
-"<![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"
-"<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>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:166
#, no-c-format
msgid "Composite key example"
-msgstr "Composite key example"
+msgstr "ç»åé®ç¤ºä¾"
-#. Tag: programlisting
-#: example_mappings.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Customer\">\n"
-"\n"
-" <id name=\"customerId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
-" <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
-"\n"
-" <list name=\"orders\"\n"
-" inverse=\"true\"\n"
-" cascade=\"save-update\">\n"
-" <key column=\"customerId\"/>\n"
-" <index column=\"orderNumber\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </list>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-" <synchronize table=\"Product\"/>\n"
-" \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"
-" <property name=\"orderDate\" \n"
-" type=\"calendar_date\"\n"
-" not-null=\"true\"/>\n"
-" \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"
-" </formula>\n"
-" </property>\n"
-" \n"
-" <many-to-one name=\"customer\"\n"
-" column=\"customerId\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"/>\n"
-" \n"
-" <bag name=\"lineItems\"\n"
-" fetch=\"join\" \n"
-" inverse=\"true\"\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"
-"</class>\n"
-" \n"
-"<class name=\"LineItem\">\n"
-" \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"
-" <property name=\"quantity\"/>\n"
-" \n"
-" <many-to-one name=\"order\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\">\n"
-" <column name=\"customerId\"/>\n"
-" <column name=\"orderNumber\"/>\n"
-" </many-to-one>\n"
-" \n"
-" <many-to-one name=\"product\"\n"
-" insert=\"false\"\n"
-" update=\"false\" \n"
-" not-null=\"true\"\n"
-" column=\"productId\"/>\n"
-" \n"
-"</class>\n"
-"\n"
-"<class name=\"Product\">\n"
-" <synchronize table=\"LineItem\"/>\n"
-"\n"
-" <id name=\"productId\"\n"
-" length=\"10\">\n"
-" <generator class=\"assigned\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"description\" \n"
-" not-null=\"true\" \n"
-" length=\"200\"/>\n"
-" <property name=\"price\" length=\"3\"/>\n"
-" <property name=\"numberAvailable\"/>\n"
-" \n"
-" <property name=\"numberOrdered\">\n"
-" <formula>\n"
-" ( select sum(li.quantity) \n"
-" from LineItem li \n"
-" where li.productId = productId )\n"
-" </formula>\n"
-" </property>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. 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)"
+"å
±æç»åé®å±æ§çå¤å¯¹å¤ï¼Many-to-many with shared composite key attributeï¼"
-#. Tag: programlisting
-#: example_mappings.xml:172
-#, no-c-format
-msgid ""
-"<![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"
-"<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"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:176
#, no-c-format
msgid "Content based discrimination"
-msgstr "Content based discrimination"
+msgstr "åºäºå
容çè¯å«"
-#. Tag: programlisting
-#: example_mappings.xml:177
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\"\n"
-" discriminator-value=\"P\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"person_id\" \n"
-" unsaved-value=\"0\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" \n"
-" \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"
-" </formula>\n"
-" </discriminator>\n"
-"\n"
-" <property name=\"name\" \n"
-" not-null=\"true\"\n"
-" length=\"80\"/>\n"
-" \n"
-" <property name=\"sex\" \n"
-" not-null=\"true\"\n"
-" update=\"false\"/>\n"
-" \n"
-" <component name=\"address\">\n"
-" <property name=\"address\"/>\n"
-" <property name=\"zip\"/>\n"
-" <property name=\"country\"/>\n"
-" </component>\n"
-" \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"
-" <subclass name=\"Customer\" \n"
-" discriminator-value=\"C\">\n"
-" <property name=\"comments\"/>\n"
-" <many-to-one name=\"salesperson\"/>\n"
-" </subclass>\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: example_mappings.xml:181
#, no-c-format
msgid "Associations on alternate keys"
-msgstr "Associations on alternate keys"
+msgstr "å¤ç¨é®çèå"
-#. Tag: programlisting
-#: example_mappings.xml:182
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" \n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-" \n"
-" <property name=\"name\" length=\"100\"/>\n"
-" \n"
-" <one-to-one name=\"address\" \n"
-" property-ref=\"person\"\n"
-" cascade=\"all\"\n"
-" fetch=\"join\"/>\n"
-" \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"
-" <property name=\"userId\" length=\"8\"/>\n"
-"\n"
-"</class>\n"
-"\n"
-"<class name=\"Address\">\n"
-"\n"
-" <id name=\"id\">\n"
-" <generator class=\"hilo\"/>\n"
-" </id>\n"
-"\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"
-"</class>\n"
-"\n"
-"<class name=\"Account\">\n"
-" <id name=\"accountId\" length=\"32\">\n"
-" <generator class=\"uuid\"/>\n"
-" </id>\n"
-" \n"
-" <many-to-one name=\"user\"\n"
-" column=\"userId\"\n"
-" property-ref=\"userId\"/>\n"
-" \n"
-" <property name=\"type\" not-null=\"true\"/>\n"
-" \n"
-"</class>]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " \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"
+#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
+#~ "\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"
+#~ " <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"
+#~ " <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"
+#~ " <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"
+#~ "</hibernate-mapping>]]>"
-#~ msgid "TODO: put words around this stuff"
-#~ msgstr "TODO: put words around this stuff"
+#~ msgid ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table employers (\n"
+#~ " id BIGINT not null, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employment_periods (\n"
+#~ " id BIGINT not null,\n"
+#~ " hourly_rate NUMERIC(12, 2),\n"
+#~ " currency VARCHAR(12), \n"
+#~ " employee_id BIGINT not null, \n"
+#~ " employer_id BIGINT not null, \n"
+#~ " end_date TIMESTAMP, \n"
+#~ " start_date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table employees (\n"
+#~ " id BIGINT not null, \n"
+#~ " firstName VARCHAR(255), \n"
+#~ " initial CHAR(1), \n"
+#~ " lastName VARCHAR(255), \n"
+#~ " taxfileNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "alter table employment_periods \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"
+#~ "create sequence employee_id_seq\n"
+#~ "create sequence employment_id_seq\n"
+#~ "create sequence employer_id_seq]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
+#~ "\n"
+#~ " <id name=\"id\" column=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"type\" type=\"character\"/>\n"
+#~ "\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"
+#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
+#~ " <property name=\"text\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
+#~ " <property name=\"tempo\"/>\n"
+#~ " <property name=\"genre\"/>\n"
+#~ " </subclass>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ " <class name=\"Author\" table=\"authors\">\n"
+#~ "\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"
+#~ " <property name=\"alias\"/>\n"
+#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
+#~ "\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"
+#~ " </class>\n"
+#~ "\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"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+#~ msgstr ""
+#~ "<![CDATA[create table works (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " tempo FLOAT, \n"
+#~ " genre VARCHAR(255), \n"
+#~ " text INTEGER, \n"
+#~ " title VARCHAR(255), \n"
+#~ " type CHAR(1) not null, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table author_work (\n"
+#~ " author_id BIGINT not null, \n"
+#~ " work_id BIGINT not null, \n"
+#~ " primary key (work_id, author_id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table authors (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " alias VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table persons (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table author_work\n"
+#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
+#~ ">"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\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"
+#~ " <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"
+#~ " <class name=\"Product\" table=\"products\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"serialNumber\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+#~ msgstr ""
+#~ "<![CDATA[create table customers (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " name VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table orders (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " customer_id BIGINT, \n"
+#~ " date TIMESTAMP, \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table line_items (\n"
+#~ " line_number INTEGER not null, \n"
+#~ " order_id BIGINT not null, \n"
+#~ " product_id BIGINT, \n"
+#~ " quantity INTEGER, \n"
+#~ " primary key (order_id, line_number)\n"
+#~ ")\n"
+#~ "\n"
+#~ "create table products (\n"
+#~ " id BIGINT not null generated by default as identity, \n"
+#~ " serialNumber VARCHAR(255), \n"
+#~ " primary key (id)\n"
+#~ ")\n"
+#~ "\n"
+#~ "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"
+#~ "alter table line_items\n"
+#~ " add constraint line_itemsFK1 foreign key (order_id) references "
+#~ "orders]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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>]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"customerId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
+#~ "\n"
+#~ " <list name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " cascade=\"save-update\">\n"
+#~ " <key column=\"customerId\"/>\n"
+#~ " <index column=\"orderNumber\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </list>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ " <synchronize table=\"Product\"/>\n"
+#~ " \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"
+#~ " <property name=\"orderDate\" \n"
+#~ " type=\"calendar_date\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ " <many-to-one name=\"customer\"\n"
+#~ " column=\"customerId\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " \n"
+#~ " <bag name=\"lineItems\"\n"
+#~ " fetch=\"join\" \n"
+#~ " inverse=\"true\"\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"
+#~ "</class>\n"
+#~ " \n"
+#~ "<class name=\"LineItem\">\n"
+#~ " \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"
+#~ " <property name=\"quantity\"/>\n"
+#~ " \n"
+#~ " <many-to-one name=\"order\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\">\n"
+#~ " <column name=\"customerId\"/>\n"
+#~ " <column name=\"orderNumber\"/>\n"
+#~ " </many-to-one>\n"
+#~ " \n"
+#~ " <many-to-one name=\"product\"\n"
+#~ " insert=\"false\"\n"
+#~ " update=\"false\" \n"
+#~ " not-null=\"true\"\n"
+#~ " column=\"productId\"/>\n"
+#~ " \n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Product\">\n"
+#~ " <synchronize table=\"LineItem\"/>\n"
+#~ "\n"
+#~ " <id name=\"productId\"\n"
+#~ " length=\"10\">\n"
+#~ " <generator class=\"assigned\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"description\" \n"
+#~ " not-null=\"true\" \n"
+#~ " length=\"200\"/>\n"
+#~ " <property name=\"price\" length=\"3\"/>\n"
+#~ " <property name=\"numberAvailable\"/>\n"
+#~ " \n"
+#~ " <property name=\"numberOrdered\">\n"
+#~ " <formula>\n"
+#~ " ( select sum(li.quantity) \n"
+#~ " from LineItem li \n"
+#~ " where li.productId = productId )\n"
+#~ " </formula>\n"
+#~ " </property>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![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"
+#~ "<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"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\"\n"
+#~ " discriminator-value=\"P\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"person_id\" \n"
+#~ " unsaved-value=\"0\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " \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"
+#~ " </formula>\n"
+#~ " </discriminator>\n"
+#~ "\n"
+#~ " <property name=\"name\" \n"
+#~ " not-null=\"true\"\n"
+#~ " length=\"80\"/>\n"
+#~ " \n"
+#~ " <property name=\"sex\" \n"
+#~ " not-null=\"true\"\n"
+#~ " update=\"false\"/>\n"
+#~ " \n"
+#~ " <component name=\"address\">\n"
+#~ " <property name=\"address\"/>\n"
+#~ " <property name=\"zip\"/>\n"
+#~ " <property name=\"country\"/>\n"
+#~ " </component>\n"
+#~ " \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"
+#~ " <subclass name=\"Customer\" \n"
+#~ " discriminator-value=\"C\">\n"
+#~ " <property name=\"comments\"/>\n"
+#~ " <many-to-one name=\"salesperson\"/>\n"
+#~ " </subclass>\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " \n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <property name=\"name\" length=\"100\"/>\n"
+#~ " \n"
+#~ " <one-to-one name=\"address\" \n"
+#~ " property-ref=\"person\"\n"
+#~ " cascade=\"all\"\n"
+#~ " fetch=\"join\"/>\n"
+#~ " \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"
+#~ " <property name=\"userId\" length=\"8\"/>\n"
+#~ "\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Address\">\n"
+#~ "\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"hilo\"/>\n"
+#~ " </id>\n"
+#~ "\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"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Account\">\n"
+#~ " <id name=\"accountId\" length=\"32\">\n"
+#~ " <generator class=\"uuid\"/>\n"
+#~ " </id>\n"
+#~ " \n"
+#~ " <many-to-one name=\"user\"\n"
+#~ " column=\"userId\"\n"
+#~ " property-ref=\"userId\"/>\n"
+#~ " \n"
+#~ " <property name=\"type\" not-null=\"true\"/>\n"
+#~ " \n"
+#~ "</class>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_parentchild.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_parentchild.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_parentchild.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,26 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-27 13:54+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: 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
+#, 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 "
@@ -34,45 +36,42 @@
"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>ç<one-to-many>"
-"å
³èï¼å¯¹æ°ææ¥è¯´å°¤å
¶å¦æ¤ãè¿æä¸ç§æ¹æ³ï¼å°±æ¯å°<literal>Child</literal>声æä¸º"
-"ä¸ä¸ª<literal><composite-element></literal>ï¼ç»åå
ç´ ï¼ã äºå®ä¸å¨"
-"Hibernateä¸one to manyå
³èçé»è®¤è¯ä¹è¿æ²¡æcomposite elementè´´è¿parent / child"
-"å
³ç³»çé常è¯ä¹ãä¸é¢æä»¬ä¼éè¿°å¦ä½ä½¿ç¨<emphasis>带æçº§èçååä¸å¯¹å¤å
³è"
-"(bidirectional one to many association with cascades)</emphasis>å»å»ºç«ææã"
-"ä¼ç¾çparent / childå
³ç³»ãè¿ä¸ç¹ä¹ä¸é¾ï¼"
+"ååæ¥è§¦ Hibernate çäººå¤§å¤æ¯ä»ç¶åå
³ç³»ï¼parent / child type relationshipï¼ç"
+"建模å
¥æçãç¶åå
³ç³»ç建模æä¸¤ç§æ¹æ³ãç±äºç§ç§åå ï¼ææ¹ä¾¿çæ¹æ³æ¯æ "
+"<literal>Parent</literal> å <literal>Child</literal> é½å»ºæ¨¡æå®ä½ç±»ï¼å¹¶å建"
+"ä¸ä¸ªä» <literal>Parent</literal> æå <literal>Child</literal> ç <one-to-"
+"many> å
³èï¼å¯¹æ°ææ¥è¯´å°¤å
¶å¦æ¤ãè¿æä¸ç§æ¹æ³ï¼å°±æ¯å° <literal>Child</"
+"literal> 声æä¸ºä¸ä¸ª <literal><composite-element></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
#, no-c-format
msgid "A note about collections"
-msgstr "å
³äºcollectionséè¦æ³¨æçä¸ç¹"
+msgstr "å
³äº collections éè¦æ³¨æçä¸ç¹"
#. Tag: para
-#: example_parentchild.xml:47
-#, fuzzy, no-c-format
+#, 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被å½ä½å
¶æå±å®ä½è䏿¯å
¶å
å«å®ä½çä¸ä¸ªé»è¾é¨åãè¿é常é"
-"è¦ï¼å®ä¸»è¦ä½ç°ä¸ºä»¥ä¸å ç¹ï¼"
+"Hibernate collections 被å½ä½å
¶æå±å®ä½è䏿¯å
¶å
å«å®ä½çä¸ä¸ªé»è¾é¨åãè¿é常"
+"éè¦ï¼å®ä¸»è¦ä½ç°ä¸ºä»¥ä¸å ç¹ï¼"
#. Tag: para
-#: example_parentchild.xml:54
-#, fuzzy, no-c-format
+#, 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æå±è
ççæ¬å¼ä¼éå¢ã"
+msgstr ""
+"å½å 餿å¢å collection ä¸å¯¹è±¡çæ¶åï¼collection æå±è
ççæ¬å¼ä¼éå¢ã "
#. Tag: para
-#: example_parentchild.xml:60
-#, fuzzy, no-c-format
+#, 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 "
@@ -80,13 +79,13 @@
"value type instance to the collection will cause its state to be immediately "
"persistent."
msgstr ""
-"妿ä¸ä¸ªä»collectionä¸ç§»é¤ç对象æ¯ä¸ä¸ªå¼ç±»å(value type)çå®ä¾ï¼æ¯å¦"
+"妿ä¸ä¸ªä» collection ä¸ç§»é¤ç对象æ¯ä¸ä¸ªå¼ç±»åï¼value typeï¼çå®ä¾ï¼æ¯å¦ "
"composite elementï¼é£ä¹è¿ä¸ªå¯¹è±¡çæä¹
åç¶æå°ä¼ç»æ¢ï¼å
¶å¨æ°æ®åºä¸å¯¹åºçè®°å½ä¼"
-"被å é¤ãåæ ·çï¼åcollectionå¢å ä¸ä¸ªvalue typeçå®ä¾å°ä¼ä½¿ä¹ç«å³è¢«æä¹
åã"
+"被å é¤ãåæ ·çï¼å collection å¢å ä¸ä¸ª value type çå®ä¾å°ä¼ä½¿ä¹ç«å³è¢«æä¹
"
+"åã "
#. Tag: para
-#: example_parentchild.xml:68
-#, fuzzy, no-c-format
+#, 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 "
@@ -94,13 +93,13 @@
"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å¢å ä¸ä¸ªå®ä½ä¸ä¼ä½¿ä¹è¢«æä¹
åã"
+"å¦ä¸æ¹é¢ï¼å¦æä»ä¸å¯¹å¤æå¤å¯¹å¤å
³èç collection ä¸ç§»é¤ä¸ä¸ªå®ä½ï¼å¨ç¼ºçæ
åµä¸"
+"è¿ä¸ªå¯¹è±¡å¹¶ä¸ä¼è¢«å é¤ãè¿ä¸ªè¡ä¸ºæ¯å®å
¨åä¹é»è¾çï¼ï¼æ¹åä¸ä¸ªå®ä½çå
é¨ç¶æä¸åº"
+"该使ä¸å®å
³èçå®ä½æ¶å¤±æãåæ ·çï¼å collection å¢å ä¸ä¸ªå®ä½ä¸ä¼ä½¿ä¹è¢«æä¹
"
+"åã "
#. Tag: para
-#: example_parentchild.xml:78
-#, fuzzy, no-c-format
+#, 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 "
@@ -108,106 +107,68 @@
"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å¢å ä¸ä¸ªå®ä½ç缺çå¨ä½åªæ¯å¨ä¸¤ä¸ªå®ä½ä¹é´å建ä¸ä¸ªè¿æ¥è"
+"å®é
ä¸ï¼å Collection å¢å ä¸ä¸ªå®ä½ç缺çå¨ä½åªæ¯å¨ä¸¤ä¸ªå®ä½ä¹é´å建ä¸ä¸ªè¿æ¥è"
"å·²ï¼åæ ·ç§»é¤çæ¶åä¹åªæ¯å é¤è¿æ¥ãè¿ç§å¤çå¯¹äºææçæ
åµé½æ¯åéçã对äºç¶å"
-"å
³ç³»åæ¯å®å
¨ä¸éåçï¼å¨è¿ç§å
³ç³»ä¸ï¼å对象ççåç»å®äºç¶å¯¹è±¡ççå卿ã"
+"å
³ç³»åæ¯å®å
¨ä¸éåçï¼å¨è¿ç§å
³ç³»ä¸ï¼å对象ççåç»å®äºç¶å¯¹è±¡ççå卿ã "
#. Tag: title
-#: example_parentchild.xml:88
#, no-c-format
msgid "Bidirectional one-to-many"
-msgstr "ååçä¸å¯¹å¤å
³ç³»(Bidirectional one-to-many)"
+msgstr "ååçä¸å¯¹å¤å
³ç³»ï¼Bidirectional one-to-manyï¼"
#. Tag: para
-#: example_parentchild.xml:90
#, no-c-format
msgid ""
"Suppose we start with a simple <literal><one-to-many></literal> "
"association from <literal>Parent</literal> to <literal>Child</literal>."
-msgstr "å设æä»¬è¦å®ç°ä¸ä¸ªç®åçä»Parentå°Childç<one-to-many>å
³èã"
-
-#. Tag: programlisting
-#: example_parentchild.xml:95
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
msgstr ""
+"å设æä»¬è¦å®ç°ä¸ä¸ªç®åçä» Parent å° Child ç <one-to-many> å
³èã"
#. 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
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = .....;\n"
-"Child c = new Child();\n"
-"p.getChildren().add(c);\n"
-"session.save(c);\n"
-"session.flush();]]>"
-msgstr ""
-
#. Tag: para
-#: example_parentchild.xml:103
#, no-c-format
msgid "Hibernate would issue two SQL statements:"
-msgstr "Hibernateä¼äº§ç两æ¡SQLè¯å¥ï¼"
+msgstr "Hibernate ä¼äº§çä¸¤æ¡ SQL è¯å¥ï¼"
#. 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>åå»ºä¸æ¡è®°å½"
+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>çè¿æ¥"
+"䏿¡ <literal>UPDATE</literal> è¯å¥ï¼åå»ºä» <literal>p</literal> å° "
+"<literal>c</literal> çè¿æ¥"
#. Tag: para
-#: example_parentchild.xml:119
-#, fuzzy, no-c-format
+#, 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>æ¥è§£å³è¿åé空约"
-"æçé®é¢ï¼"
+"è¿æ ·åä¸ä»
æçä½ï¼èä¸è¿åäº <literal>parent_id</literal> å "
+"<literal>parent_id</literal> é空çéå¶ãæä»¬å¯ä»¥éè¿å¨éåç±»æ å°ä¸æå® "
+"<literal>not-null=\"true\"</literal> æ¥è§£å³è¿åé空约æçé®é¢ï¼"
-#. Tag: programlisting
-#: example_parentchild.xml:125
-#, 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 ""
-
#. Tag: para
-#: example_parentchild.xml:127
#, no-c-format
msgid "However, this is not the recommended solution."
msgstr "ç¶èï¼è¿å¹¶éæ¯æ¨èçè§£å³æ¹æ³ã"
#. Tag: para
-#: example_parentchild.xml:130
-#, fuzzy, no-c-format
+#, 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</"
@@ -215,261 +176,131 @@
"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çæ å°ä¸ã"
+"è¿ç§ç°è±¡çæ ¹æ¬åå æ¯ä» <literal>p</literal> å° <literal>c</literal> çè¿æ¥"
+"ï¼å¤é® parent_idï¼æ²¡æè¢«å½ä½ <literal>Child</literal> å¯¹è±¡ç¶æçä¸é¨åï¼å è"
+"没æå¨ <literal>INSERT</literal> è¯å¥ä¸è¢«å建ãå æ¤è§£å³çåæ³å°±æ¯æè¿ä¸ªè¿æ¥æ·»"
+"å å° <literal>Child</literal> çæ å°ä¸ã"
-#. Tag: programlisting
-#: example_parentchild.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-
-#. 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>屿§ï¼"
+"ä½ è¿éè¦ä¸ºç±» <literal>Child</literal> æ·»å <literal>parent</literal> 屿§ã"
#. Tag: para
-#: example_parentchild.xml:143
-#, fuzzy, no-c-format
+#, 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>屿§ã"
+"ç°å¨å®ä½ <literal>Child</literal> å¨ç®¡çè¿æ¥çç¶æï¼ä¸ºäºä½¿ collection 䏿´æ°"
+"è¿æ¥ï¼æä»¬ä½¿ç¨ <literal>inverse</literal> 屿§ï¼"
-#. Tag: programlisting
-#: example_parentchild.xml:148
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
#. 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
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. 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
+#, no-c-format
msgid ""
"You could also create an <literal>addChild()</literal> method of "
"<literal>Parent</literal>."
msgstr ""
-"为äºè®©äºæ
åå¾äºäºææ¡ï¼å¯ä»¥ä¸º<literal>Parent</literal>å ä¸ä¸ª"
-"<literal>addChild()</literal>æ¹æ³ã"
+"为äºè®©äºæ
åå¾äºäºææ¡ï¼å¯ä»¥ä¸º <literal>Parent</literal> å ä¸ä¸ª "
+"<literal>addChild()</literal> æ¹æ³ã"
-#. Tag: programlisting
-#: example_parentchild.xml:165
-#, no-c-format
-msgid ""
-"<![CDATA[public void addChild(Child c) {\n"
-" c.setParent(this);\n"
-" children.add(c);\n"
-"}]]>"
-msgstr ""
-
#. 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
-#, no-c-format
-msgid ""
-"<![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();]]>"
-msgstr ""
-
#. Tag: title
-#: example_parentchild.xml:176
#, no-c-format
msgid "Cascading life cycle"
-msgstr "级èçå½å¨æï¼Cascading life cycleï¼"
+msgstr "级èçå½å¨æï¼Cascading lifecycleï¼ "
#. Tag: para
-#: example_parentchild.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can address the frustrations of the explicit call to <literal>save()</"
"literal> by using cascades."
msgstr ""
-"éè¦æ¾å¼è°ç¨<literal>save()</literal>ä»ç¶å¾éº»ç¦ï¼æä»¬å¯ä»¥ç¨çº§èæ¥è§£å³è¿ä¸ªé®"
-"é¢ã"
+"éè¦æ¾å¼è°ç¨ <literal>save()</literal> ä»ç¶å¾éº»ç¦ï¼æä»¬å¯ä»¥ç¨çº§èæ¥è§£å³è¿ä¸ªé®"
+"é¢ã "
-#. Tag: programlisting
-#: example_parentchild.xml:183
-#, 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 ""
-
#. 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
+#. Tag: para
#, 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 ""
-
-#. 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>åå
¶ææå对象对åºçæ°æ®åºè®°å½ã"
+"åæ ·çï¼ä¿åæå é¤ <literal>Parent</literal> å¯¹è±¡çæ¶åå¹¶ä¸éè¦éåå
¶å对象ã"
+"ä¸é¢ç代ç ä¼å é¤å¯¹è±¡ <literal>p</literal> åå
¶ææå对象对åºçæ°æ®åºè®°å½ã "
-#. Tag: programlisting
-#: example_parentchild.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"session.delete(p);\n"
-"session.flush();]]>"
-msgstr ""
-
#. 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
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
-"Child c = (Child) p.getChildren().iterator().next();\n"
-"p.getChildren().remove(c);\n"
-"c.setParent(null);\n"
-"session.flush();]]>"
-msgstr ""
-
-#. 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>ã"
+"ä¸ä¼ä»æ°æ®åºå é¤<literal>c</literal>ï¼å®åªä¼å é¤ä¸ <literal>p</literal> ä¹é´"
+"çè¿æ¥ï¼å¹¶ä¸ä¼å¯¼è´è¿å <literal>NOT NULL</literal> 约æï¼å¨è¿ä¸ªä¾åä¸ï¼ãä½ é"
+"è¦æ¾å¼è°ç¨ <literal>delete()</literal> æ¥å é¤ <literal>Child</literal>ã "
-#. Tag: programlisting
-#: example_parentchild.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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>ã"
+"卿们çä¾åä¸ï¼å¦ææ²¡æç¶å¯¹è±¡ï¼å对象就ä¸åºè¯¥åå¨ï¼å¦æå°åå¯¹è±¡ä» "
+"collection ä¸ç§»é¤ï¼å®é
ä¸æä»¬æ¯æ³å é¤å®ãè¦å®ç°è¿ç§è¦æ±ï¼å°±å¿
é¡»ä½¿ç¨ "
+"<literal>cascade=\"all-delete-orphan\"</literal>ã "
-#. Tag: programlisting
-#: example_parentchild.xml:218
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
-" <key column=\"parent_id\"/>\n"
-" <one-to-many class=\"Child\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. 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>æ¯ä¸å¤çã"
+"注æï¼å³ä½¿å¨ collection 䏿¹çæ å°ä¸æå® <literal>inverse=\"true\"</"
+"literal>ï¼çº§èä»ç¶æ¯éè¿éå collection ä¸çå
ç´ æ¥å¤ççãå¦æä½ æ³è¦éè¿çº§è"
+"è¿è¡å对象çæå
¥ãå é¤ãæ´æ°æä½ï¼å°±å¿
é¡»æå®å å° collection ä¸ï¼åªè°ç¨ "
+"<literal>setParent()</literal> æ¯ä¸å¤çã "
#. Tag: title
-#: example_parentchild.xml:230
#, no-c-format
msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr ""
-"级èä¸<literal>æªä¿åå¼</literal>ï¼Cascades and <literal>unsaved-value</"
-"literal>ï¼"
+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</"
@@ -482,47 +313,33 @@
"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 "
+"\"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>"
+"å设æä»¬ä» <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
+#, 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>对象ã"
+"ä¸é¢ç代ç 伿´æ° <literal>parent</literal> å <literal>child</literal> 对象ï¼"
+"并䏿å
¥ <literal>newChild</literal> 对象ã "
-#. Tag: programlisting
-#: example_parentchild.xml:249
+#. Tag: para
#, no-c-format
msgid ""
-"<![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();]]>"
-msgstr ""
-
-#. 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 "
@@ -532,30 +349,27 @@
"cache or, worst case, the database, to see if the row exists."
msgstr ""
"è¿å¯¹äºèªå¨çææ è¯çæ
嵿¯é常好çï¼ä½æ¯èªåé
çæ è¯åå¤åæ è¯æä¹åå¢ï¼è¿æ¯"
-"æç¹éº»ç¦ï¼å 为Hibernate没æåæ³åºåæ°å®ä¾åçå¯¹è±¡ï¼æ è¯è¢«ç¨æ·æå®äºï¼ååä¸ä¸ª"
-"Sessionè£
å
¥ç对象ãå¨è¿ç§æ
åµä¸ï¼Hibernateä¼ä½¿ç¨timestampæversion屿§ï¼æè
"
-"æ¥è¯¢ç¬¬äºçº§ç¼åï¼æè
æåçæ
åµï¼æ¥è¯¢æ°æ®åºï¼æ¥ç¡®è®¤æ¯å¦æ¤è¡åå¨ã"
+"æç¹éº»ç¦ï¼å 为 Hibernate 没æåæ³åºåæ°å®ä¾åçå¯¹è±¡ï¼æ è¯è¢«ç¨æ·æå®äºï¼ååä¸"
+"个 Session è£
å
¥ç对象ãå¨è¿ç§æ
åµä¸ï¼Hibernate ä¼ä½¿ç¨ timestamp æ version å±"
+"æ§ï¼æè
æ¥è¯¢ç¬¬äºçº§ç¼åï¼æè
æåçæ
åµï¼æ¥è¯¢æ°æ®åºï¼æ¥ç¡®è®¤æ¯å¦æ¤è¡åå¨ã "
#. Tag: title
-#: example_parentchild.xml:263
#, no-c-format
msgid "Conclusion"
msgstr "ç»è®º"
#. Tag: para
-#: example_parentchild.xml:265
-#, fuzzy, no-c-format
+#, 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åºç¨ç¨åºé½ä¼ç»å¸¸ç¨å°ç¶å对象模å¼ã"
+"常好ã大é¨å Hibernate åºç¨ç¨åºé½ä¼ç»å¸¸ç¨å°ç¶å对象模å¼ã "
#. Tag: para
-#: example_parentchild.xml:270
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We mentioned an alternative in the first paragraph. None of the above issues "
"exist in the case of <literal><composite-element></literal> mappings, "
@@ -564,7 +378,184 @@
"composite elements cannot own collections and they should not be the child "
"of any entity other than the unique parent."
msgstr ""
-"å¨ç¬¬ä¸æ®µä¸æä»¬æ¾ç»æå°å¦ä¸ä¸ªæ¹æ¡ãä¸é¢çè¿äºé®é¢é½ä¸ä¼åºç°å¨<literal><"
-"composite-element></literal>æ å°ä¸ï¼å®åç¡®å°è¡¨è¾¾äºç¶åå
³ç³»çè¯ä¹ãå¾ä¸å¹¸å¤"
-"åå
ç´ è¿æä¸¤ä¸ªé大éå¶:å¤åå
ç´ ä¸è½æ¥æcollectionsï¼å¹¶ä¸ï¼é¤äºç¨äºæä¸çç¶å¯¹"
-"象å¤ï¼å®ä»¬ä¸è½åä½ä¸ºå
¶å®ä»»ä½å®ä½çå对象ã"
+"å¨ç¬¬ä¸æ®µä¸æä»¬æ¾ç»æå°å¦ä¸ä¸ªæ¹æ¡ãä¸é¢çè¿äºé®é¢é½ä¸ä¼åºç°å¨ <literal><"
+"composite-element></literal> æ å°ä¸ï¼å®åç¡®å°è¡¨è¾¾äºç¶åå
³ç³»çè¯ä¹ãå¾ä¸å¹¸"
+"å¤åå
ç´ è¿æä¸¤ä¸ªé大éå¶ï¼å¤åå
ç´ ä¸è½æ¥æ collectionsï¼å¹¶ä¸ï¼é¤äºç¨äºæä¸ç"
+"ç¶å¯¹è±¡å¤ï¼å®ä»¬ä¸è½åä½ä¸ºå
¶å®ä»»ä½å®ä½çå对象ã "
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Parent p = .....;\n"
+#~ "Child c = new Child();\n"
+#~ "p.getChildren().add(c);\n"
+#~ "session.save(c);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Parent p = .....;\n"
+#~ "Child c = new Child();\n"
+#~ "p.getChildren().add(c);\n"
+#~ "session.save(c);\n"
+#~ "session.flush();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"children\">\n"
+#~ " <key column=\"parent_id\" not-null=\"true\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true"
+#~ "\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true"
+#~ "\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "<![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();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public void addChild(Child c) {\n"
+#~ " c.setParent(this);\n"
+#~ " children.add(c);\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public void addChild(Child c) {\n"
+#~ " c.setParent(this);\n"
+#~ " children.add(c);\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "<![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();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = new Child();\n"
+#~ "p.addChild(c);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = new Child();\n"
+#~ "p.addChild(c);\n"
+#~ "session.flush();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "session.delete(p);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "session.delete(p);\n"
+#~ "session.flush();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = (Child) p.getChildren().iterator().next();\n"
+#~ "p.getChildren().remove(c);\n"
+#~ "c.setParent(null);\n"
+#~ "session.flush();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
+#~ "Child c = (Child) p.getChildren().iterator().next();\n"
+#~ "p.getChildren().remove(c);\n"
+#~ "c.setParent(null);\n"
+#~ "session.flush();]]>"
+
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "<![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();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-"
+#~ "orphan\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-"
+#~ "orphan\">\n"
+#~ " <key column=\"parent_id\"/>\n"
+#~ " <one-to-many class=\"Child\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![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();]]>"
+#~ msgstr ""
+#~ "<![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();]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_weblog.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_weblog.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/example_weblog.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,481 +1,856 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-27 13:54+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: example_weblog.xml:29
#, no-c-format
msgid "Example: Weblog Application"
-msgstr "示ä¾ï¼Weblog åºç¨ç¨åº"
+msgstr "示ä¾ï¼Weblog åºç¨ç¨åº "
#. Tag: title
-#: example_weblog.xml:32
#, no-c-format
msgid "Persistent Classes"
-msgstr "æä¹
åç±»"
+msgstr "æä¹
åç±»ï¼Persistent Classesï¼"
#. Tag: para
-#: example_weblog.xml:34
-#, fuzzy, no-c-format
+#, 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)ã"
+"ä¸é¢çæä¹
å类表示ä¸ä¸ª weblog åå¨å
¶ä¸å¼ è´´çä¸ä¸ªè´´åãä»ä»¬æ¯æ åçç¶/åå
³ç³»æ¨¡"
+"åï¼ä½æ¯æä»¬ä¼ç¨ä¸ä¸ªæåºå
ï¼ordered bagï¼èééåï¼setï¼ã "
-#. Tag: programlisting
-#: example_weblog.xml:40
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.List;\n"
-"\n"
-"public class Blog {\n"
-" private Long _id;\n"
-" private String _name;\n"
-" private List _items;\n"
-"\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public List getItems() {\n"
-" return _items;\n"
-" }\n"
-" public String getName() {\n"
-" return _name;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setItems(List list) {\n"
-" _items = list;\n"
-" }\n"
-" public void setName(String string) {\n"
-" _name = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:42
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.text.DateFormat;\n"
-"import java.util.Calendar;\n"
-"\n"
-"public class BlogItem {\n"
-" private Long _id;\n"
-" private Calendar _datetime;\n"
-" private String _text;\n"
-" private String _title;\n"
-" private Blog _blog;\n"
-"\n"
-" public Blog getBlog() {\n"
-" return _blog;\n"
-" }\n"
-" public Calendar getDatetime() {\n"
-" return _datetime;\n"
-" }\n"
-" public Long getId() {\n"
-" return _id;\n"
-" }\n"
-" public String getText() {\n"
-" return _text;\n"
-" }\n"
-" public String getTitle() {\n"
-" return _title;\n"
-" }\n"
-" public void setBlog(Blog blog) {\n"
-" _blog = blog;\n"
-" }\n"
-" public void setDatetime(Calendar calendar) {\n"
-" _datetime = calendar;\n"
-" }\n"
-" public void setId(Long long1) {\n"
-" _id = long1;\n"
-" }\n"
-" public void setText(String string) {\n"
-" _text = string;\n"
-" }\n"
-" public void setTitle(String string) {\n"
-" _title = string;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:47
#, no-c-format
msgid "Hibernate Mappings"
msgstr "Hibernate æ å°"
#. 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
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"Blog\"\n"
-" table=\"BLOGS\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"name\"\n"
-" column=\"NAME\"\n"
-" not-null=\"true\"\n"
-" unique=\"true\"/>\n"
-"\n"
-" <bag\n"
-" name=\"items\"\n"
-" inverse=\"true\"\n"
-" order-by=\"DATE_TIME\"\n"
-" cascade=\"all\">\n"
-"\n"
-" <key column=\"BLOG_ID\"/>\n"
-" <one-to-many class=\"BlogItem\"/>\n"
-"\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: example_weblog.xml:55
-#, no-c-format
-msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"eg\">\n"
-"\n"
-" <class\n"
-" name=\"BlogItem\"\n"
-" table=\"BLOG_ITEMS\"\n"
-" dynamic-update=\"true\">\n"
-"\n"
-" <id\n"
-" name=\"id\"\n"
-" column=\"BLOG_ITEM_ID\">\n"
-"\n"
-" <generator class=\"native\"/>\n"
-"\n"
-" </id>\n"
-"\n"
-" <property\n"
-" name=\"title\"\n"
-" column=\"TITLE\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"text\"\n"
-" column=\"TEXT\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <property\n"
-" name=\"datetime\"\n"
-" column=\"DATE_TIME\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" <many-to-one\n"
-" name=\"blog\"\n"
-" column=\"BLOG_ID\"\n"
-" not-null=\"true\"/>\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: example_weblog.xml:60
#, no-c-format
msgid "Hibernate Code"
msgstr "Hibernate 代ç "
#. Tag: para
-#: example_weblog.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following class demonstrates some of the kinds of things we can do with "
"these classes using Hibernate:"
-msgstr "ä¸é¢çç±»æ¼ç¤ºäºæä»¬å¯ä»¥ä½¿ç¨Hibernate对è¿äºç±»è¿è¡çä¸äºæä½ã"
+msgstr "ä¸é¢çç±»æ¼ç¤ºäºæä»¬å¯ä»¥ä½¿ç¨ Hibernate 对è¿äºç±»è¿è¡çä¸äºæä½ï¼"
-#. Tag: programlisting
-#: example_weblog.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"import java.util.ArrayList;\n"
-"import java.util.Calendar;\n"
-"import java.util.Iterator;\n"
-"import java.util.List;\n"
-"\n"
-"import org.hibernate.HibernateException;\n"
-"import org.hibernate.Query;\n"
-"import org.hibernate.Session;\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.Transaction;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
-"\n"
-"public class BlogMain {\n"
-" \n"
-" private SessionFactory _sessions;\n"
-" \n"
-" public void configure() throws HibernateException {\n"
-" _sessions = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class)\n"
-" .buildSessionFactory();\n"
-" }\n"
-" \n"
-" public void exportTables() throws HibernateException {\n"
-" Configuration cfg = new Configuration()\n"
-" .addClass(Blog.class)\n"
-" .addClass(BlogItem.class);\n"
-" new SchemaExport(cfg).create(true, true);\n"
-" }\n"
-" \n"
-" public Blog createBlog(String name) throws HibernateException {\n"
-" \n"
-" Blog blog = new Blog();\n"
-" blog.setName(name);\n"
-" blog.setItems( new ArrayList() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.persist(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Blog blog, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setBlog(blog);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" blog.getItems().add(item);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(blog);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public BlogItem createBlogItem(Long blogid, String title, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" BlogItem item = new BlogItem();\n"
-" item.setTitle(title);\n"
-" item.setText(text);\n"
-" item.setDatetime( Calendar.getInstance() );\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Blog blog = (Blog) session.load(Blog.class, blogid);\n"
-" item.setBlog(blog);\n"
-" blog.getItems().add(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return item;\n"
-" }\n"
-" \n"
-" public void updateBlogItem(BlogItem item, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" item.setText(text);\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" session.update(item);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public void updateBlogItem(Long itemid, String text)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
-" item.setText(text);\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" }\n"
-" \n"
-" public List listAllBlogNamesAndItemCounts(int max)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"select blog.id, blog.name, count(blogItem) \" +\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join blog.items as blogItem \" +\n"
-" \"group by blog.name, blog.id \" +\n"
-" \"order by max(blogItem.datetime)\"\n"
-" );\n"
-" q.setMaxResults(max);\n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-" \n"
-" public Blog getBlogAndAllItems(Long blogid)\n"
-" throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" Blog blog = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"left outer join fetch blog.items \" +\n"
-" \"where blog.id = :blogid\"\n"
-" );\n"
-" q.setParameter(\"blogid\", blogid);\n"
-" blog = (Blog) q.uniqueResult();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return blog;\n"
-" }\n"
-" \n"
-" public List listBlogsAndRecentItems() throws HibernateException {\n"
-" \n"
-" Session session = _sessions.openSession();\n"
-" Transaction tx = null;\n"
-" List result = null;\n"
-" try {\n"
-" tx = session.beginTransaction();\n"
-" Query q = session.createQuery(\n"
-" \"from Blog as blog \" +\n"
-" \"inner join blog.items as blogItem \" +\n"
-" \"where blogItem.datetime > :minDate\"\n"
-" );\n"
-"\n"
-" Calendar cal = Calendar.getInstance();\n"
-" cal.roll(Calendar.MONTH, false);\n"
-" q.setCalendar(\"minDate\", cal);\n"
-" \n"
-" result = q.list();\n"
-" tx.commit();\n"
-" }\n"
-" catch (HibernateException he) {\n"
-" if (tx!=null) tx.rollback();\n"
-" throw he;\n"
-" }\n"
-" finally {\n"
-" session.close();\n"
-" }\n"
-" return result;\n"
-" }\n"
-"}]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "public class Blog {\n"
+#~ " private Long _id;\n"
+#~ " private String _name;\n"
+#~ " private List _items;\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public List getItems() {\n"
+#~ " return _items;\n"
+#~ " }\n"
+#~ " public String getName() {\n"
+#~ " return _name;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setItems(List list) {\n"
+#~ " _items = list;\n"
+#~ " }\n"
+#~ " public void setName(String string) {\n"
+#~ " _name = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.text.DateFormat;\n"
+#~ "import java.util.Calendar;\n"
+#~ "\n"
+#~ "public class BlogItem {\n"
+#~ " private Long _id;\n"
+#~ " private Calendar _datetime;\n"
+#~ " private String _text;\n"
+#~ " private String _title;\n"
+#~ " private Blog _blog;\n"
+#~ "\n"
+#~ " public Blog getBlog() {\n"
+#~ " return _blog;\n"
+#~ " }\n"
+#~ " public Calendar getDatetime() {\n"
+#~ " return _datetime;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return _id;\n"
+#~ " }\n"
+#~ " public String getText() {\n"
+#~ " return _text;\n"
+#~ " }\n"
+#~ " public String getTitle() {\n"
+#~ " return _title;\n"
+#~ " }\n"
+#~ " public void setBlog(Blog blog) {\n"
+#~ " _blog = blog;\n"
+#~ " }\n"
+#~ " public void setDatetime(Calendar calendar) {\n"
+#~ " _datetime = calendar;\n"
+#~ " }\n"
+#~ " public void setId(Long long1) {\n"
+#~ " _id = long1;\n"
+#~ " }\n"
+#~ " public void setText(String string) {\n"
+#~ " _text = string;\n"
+#~ " }\n"
+#~ " public void setTitle(String string) {\n"
+#~ " _title = string;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"Blog\"\n"
+#~ " table=\"BLOGS\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " not-null=\"true\"\n"
+#~ " unique=\"true\"/>\n"
+#~ "\n"
+#~ " <bag\n"
+#~ " name=\"items\"\n"
+#~ " inverse=\"true\"\n"
+#~ " order-by=\"DATE_TIME\"\n"
+#~ " cascade=\"all\">\n"
+#~ "\n"
+#~ " <key column=\"BLOG_ID\"/>\n"
+#~ " <one-to-many class=\"BlogItem\"/>\n"
+#~ "\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"eg\">\n"
+#~ "\n"
+#~ " <class\n"
+#~ " name=\"BlogItem\"\n"
+#~ " table=\"BLOG_ITEMS\"\n"
+#~ " dynamic-update=\"true\">\n"
+#~ "\n"
+#~ " <id\n"
+#~ " name=\"id\"\n"
+#~ " column=\"BLOG_ITEM_ID\">\n"
+#~ "\n"
+#~ " <generator class=\"native\"/>\n"
+#~ "\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"title\"\n"
+#~ " column=\"TITLE\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"text\"\n"
+#~ " column=\"TEXT\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <property\n"
+#~ " name=\"datetime\"\n"
+#~ " column=\"DATE_TIME\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " <many-to-one\n"
+#~ " name=\"blog\"\n"
+#~ " column=\"BLOG_ID\"\n"
+#~ " not-null=\"true\"/>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "import java.util.ArrayList;\n"
+#~ "import java.util.Calendar;\n"
+#~ "import java.util.Iterator;\n"
+#~ "import java.util.List;\n"
+#~ "\n"
+#~ "import org.hibernate.HibernateException;\n"
+#~ "import org.hibernate.Query;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.Transaction;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "import org.hibernate.tool.hbm2ddl.SchemaExport;\n"
+#~ "\n"
+#~ "public class BlogMain {\n"
+#~ " \n"
+#~ " private SessionFactory _sessions;\n"
+#~ " \n"
+#~ " public void configure() throws HibernateException {\n"
+#~ " _sessions = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class)\n"
+#~ " .buildSessionFactory();\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void exportTables() throws HibernateException {\n"
+#~ " Configuration cfg = new Configuration()\n"
+#~ " .addClass(Blog.class)\n"
+#~ " .addClass(BlogItem.class);\n"
+#~ " new SchemaExport(cfg).create(true, true);\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog createBlog(String name) throws HibernateException {\n"
+#~ " \n"
+#~ " Blog blog = new Blog();\n"
+#~ " blog.setName(name);\n"
+#~ " blog.setItems( new ArrayList() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.persist(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Blog blog, String title, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setBlog(blog);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " blog.getItems().add(item);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(blog);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public BlogItem createBlogItem(Long blogid, String title, String "
+#~ "text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " BlogItem item = new BlogItem();\n"
+#~ " item.setTitle(title);\n"
+#~ " item.setText(text);\n"
+#~ " item.setDatetime( Calendar.getInstance() );\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Blog blog = (Blog) session.load(Blog.class, blogid);\n"
+#~ " item.setBlog(blog);\n"
+#~ " blog.getItems().add(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return item;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(BlogItem item, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " item.setText(text);\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " session.update(item);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public void updateBlogItem(Long itemid, String text)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " BlogItem item = (BlogItem) session.load(BlogItem.class, "
+#~ "itemid);\n"
+#~ " item.setText(text);\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listAllBlogNamesAndItemCounts(int max)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"select blog.id, blog.name, count(blogItem) \" +\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join blog.items as blogItem \" +\n"
+#~ " \"group by blog.name, blog.id \" +\n"
+#~ " \"order by max(blogItem.datetime)\"\n"
+#~ " );\n"
+#~ " q.setMaxResults(max);\n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public Blog getBlogAndAllItems(Long blogid)\n"
+#~ " throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " Blog blog = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"left outer join fetch blog.items \" +\n"
+#~ " \"where blog.id = :blogid\"\n"
+#~ " );\n"
+#~ " q.setParameter(\"blogid\", blogid);\n"
+#~ " blog = (Blog) q.uniqueResult();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return blog;\n"
+#~ " }\n"
+#~ " \n"
+#~ " public List listBlogsAndRecentItems() throws HibernateException {\n"
+#~ " \n"
+#~ " Session session = _sessions.openSession();\n"
+#~ " Transaction tx = null;\n"
+#~ " List result = null;\n"
+#~ " try {\n"
+#~ " tx = session.beginTransaction();\n"
+#~ " Query q = session.createQuery(\n"
+#~ " \"from Blog as blog \" +\n"
+#~ " \"inner join blog.items as blogItem \" +\n"
+#~ " \"where blogItem.datetime > :minDate\"\n"
+#~ " );\n"
+#~ "\n"
+#~ " Calendar cal = Calendar.getInstance();\n"
+#~ " cal.roll(Calendar.MONTH, false);\n"
+#~ " q.setCalendar(\"minDate\", cal);\n"
+#~ " \n"
+#~ " result = q.list();\n"
+#~ " tx.commit();\n"
+#~ " }\n"
+#~ " catch (HibernateException he) {\n"
+#~ " if (tx!=null) tx.rollback();\n"
+#~ " throw he;\n"
+#~ " }\n"
+#~ " finally {\n"
+#~ " session.close();\n"
+#~ " }\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "}]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/filters.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/filters.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/filters.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,44 +1,44 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-11-27 13:53+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: filters.xml:29
#, no-c-format
msgid "Filtering data"
msgstr "è¿æ»¤æ°æ®"
#. Tag: para
-#: filters.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
"named, parameterized filter that can be enabled or disabled for a particular "
"Hibernate session."
msgstr ""
-"Hibernate3 æä¾äºä¸ç§åæ°çæ¹å¼æ¥å¤çå
·æâæ¾æ§(visibility)âè§åçæ°æ®ï¼é£å°±æ¯"
-"使ç¨<emphasis>Hibernate filter</emphasis>ã <emphasis>Hibernate filter</"
-"emphasis>æ¯å
¨å±ææçãå
·æååãå¯ä»¥å¸¦åæ°çè¿æ»¤å¨ï¼ å¯¹äºæä¸ªç¹å®ç"
-"Hibernate sessionæ¨å¯ä»¥éæ©æ¯å¦å¯ç¨ï¼æç¦ç¨ï¼æä¸ªè¿æ»¤å¨ã"
+"Hibernate3 æä¾äºä¸ç§åæ°çæ¹å¼æ¥å¤çå
·æâæ¾æ§ï¼visibilityï¼âè§åçæ°æ®ï¼é£å°±"
+"æ¯ä½¿ç¨<emphasis>Hibernate è¿æ»¤å¨</emphasis>ã<emphasis>Hibernate è¿æ»¤å¨</"
+"emphasis>æ¯å
¨å±ææçãå
·æååãå¯ä»¥å¸¦åæ°çè¿æ»¤å¨ï¼å¯¹äºæä¸ªç¹å®ç "
+"Hibernate session æ¨å¯ä»¥éæ©æ¯å¦å¯ç¨ï¼æç¦ç¨ï¼æä¸ªè¿æ»¤å¨ã"
#. Tag: title
-#: filters.xml:38
#, no-c-format
msgid "Hibernate filters"
-msgstr "Hibernate è¿æ»¤å¨(filters)"
+msgstr "Hibernate è¿æ»¤å¨ï¼filtersï¼"
#. Tag: para
-#: filters.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
@@ -49,14 +49,13 @@
"parameter values should be. Filters can be used like database views, but "
"they are parameterized inside the application."
msgstr ""
-"Hibernate3æ°å¢äºå¯¹æä¸ªç±»æè
éå使ç¨é¢å
å®ä¹çè¿æ»¤å¨æ¡ä»¶(filter criteria)çå"
-"è½ãè¿æ»¤å¨æ¡ä»¶ç¸å½äºå®ä¹ä¸ä¸ª é常类似äºç±»ååç§éåä¸çâwhereâ屿§ç约æå"
-"å¥ï¼ä½æ¯è¿æ»¤å¨æ¡ä»¶å¯ä»¥å¸¦åæ°ã åºç¨ç¨åºå¯ä»¥å¨è¿è¡æ¶å³å®æ¯å¦å¯ç¨ç»å®çè¿æ»¤å¨ï¼"
-"以å使ç¨ä»ä¹æ ·çåæ°å¼ã è¿æ»¤å¨çç¨æ³å¾åæ°æ®åºè§å¾ï¼åªä¸è¿æ¯å¨åºç¨ç¨åºä¸ç¡®å®"
-"使ç¨ä»ä¹æ ·çåæ°çã"
+"Hibernate3 æ°å¢äºå¯¹æä¸ªç±»æè
éå使ç¨é¢å
å®ä¹çè¿æ»¤å¨æ¡ä»¶ï¼filter criteriaï¼"
+"çåè½ãè¿æ»¤å¨æ¡ä»¶ç¸å½äºå®ä¹ä¸ä¸ª é常类似äºç±»ååç§éåä¸çâwhereâ屿§ç约æ"
+"åå¥ï¼ä½æ¯è¿æ»¤å¨æ¡ä»¶å¯ä»¥å¸¦åæ°ã åºç¨ç¨åºå¯ä»¥å¨è¿è¡æ¶å³å®æ¯å¦å¯ç¨ç»å®çè¿æ»¤"
+"å¨ï¼ä»¥å使ç¨ä»ä¹æ ·çåæ°å¼ãè¿æ»¤å¨çç¨æ³å¾åæ°æ®åºè§å¾ï¼åªä¸è¿æ¯å¨åºç¨ç¨åºä¸"
+"ç¡®å®ä½¿ç¨ä»ä¹æ ·çåæ°çã "
#. Tag: para
-#: filters.xml:50
#, no-c-format
msgid ""
"In order to use filters, they must first be defined and then attached to the "
@@ -64,62 +63,27 @@
"filter-def/></literal> element within a <literal><hibernate-mapping/"
"></literal> element:"
msgstr ""
-"è¦ä½¿ç¨è¿æ»¤å¨ï¼å¿
é¡»é¦å
å¨ç¸åºçæ å°èç¹ä¸å®ä¹ãèå®ä¹ä¸ä¸ªè¿æ»¤å¨ï¼è¦ç¨å°ä½äº"
-"<literal><hibernate-mapping/></literal> èç¹ä¹å
ç<literal><filter-"
-"def/></literal>èç¹ï¼"
+"è¦ä½¿ç¨è¿æ»¤å¨ï¼å¿
é¡»é¦å
å¨ç¸åºçæ å°èç¹ä¸å®ä¹ãèå®ä¹ä¸ä¸ªè¿æ»¤å¨ï¼è¦ç¨å°ä½äº "
+"<literal><hibernate-mapping/></literal> èç¹ä¹å
ç <literal><filter-"
+"def/></literal> èç¹ï¼"
-#. Tag: programlisting
-#: filters.xml:56
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[<filter-def name=\"myFilter\">\n"
-" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
-"</filter-def>]]>"
-msgstr ""
+msgid "This filter can then be attached to a class:"
+msgstr "å®ä¹å¥½ä¹åï¼å°±å¯ä»¥å¨æä¸ªç±»ä¸ä½¿ç¨è¿ä¸ªè¿æ»¤å¨ï¼ "
#. Tag: para
-#: filters.xml:58
-#, fuzzy, no-c-format
-msgid "This filter can then be attached to a class:"
-msgstr "å®ä¹å¥½ä¹åï¼å°±å¯ä»¥å¨æä¸ªç±»ä¸ä½¿ç¨è¿ä¸ªè¿æ»¤å¨ï¼"
-
-#. Tag: programlisting
-#: filters.xml:62
#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"myClass\" ...>\n"
-" ...\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</class>]]>"
-msgstr ""
+msgid "Or, to a collection:"
+msgstr "æè
ä¹å¯ä»¥å¨æä¸ªéå使ç¨å®ï¼"
#. Tag: para
-#: filters.xml:64
-#, fuzzy, no-c-format
-msgid "Or, to a collection:"
-msgstr "ä¹å¯ä»¥å¨æä¸ªéå使ç¨å®ï¼"
-
-#. Tag: programlisting
-#: filters.xml:68
#, no-c-format
-msgid ""
-"<![CDATA[<set ...>\n"
-" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN"
-"\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:70
-#, fuzzy, no-c-format
msgid "Or, to both or multiples of each at the same time."
-msgstr ""
-"å¯ä»¥å¨å¤ä¸ªç±»æéåä¸ä½¿ç¨æä¸ªè¿æ»¤å¨ï¼æä¸ªç±»æè
éåä¸ä¹å¯ä»¥ä½¿ç¨å¤ä¸ªè¿æ»¤å¨ã"
+msgstr "æè
å¨åæ¶å¯ä»¥ä½¿ç¨å¤ä¸ªè¿æ»¤å¨ã"
#. Tag: para
-#: filters.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The methods on <literal>Session</literal> are: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
@@ -130,129 +94,64 @@
"interface. If you used the simple filter defined above, it would look like "
"this:"
msgstr ""
-"<literal>Session</literal>对象ä¸ä¼ç¨å°çæ¹æ³æï¼<literal>enableFilter(String "
-"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
-"literal>, å <literal>disableFilter(String filterName)</literal>. Sessionä¸é»"
-"认æ¯<emphasis>ä¸</emphasis>å¯ç¨è¿æ»¤å¨çï¼å¿
é¡»éè¿<literal>Session."
-"enabledFilter()</literal>æ¹æ³æ¾å¼çå¯ç¨ã è¯¥æ¹æ³è¿å被å¯ç¨ç<literal>Filter</"
-"literal>çå®ä¾ã以䏿å®ä¹çè¿æ»¤å¨ä¸ºä¾ï¼"
+"<literal>Session</literal> 对象ä¸ä¼ç¨å°çæ¹æ³æï¼<literal>enableFilter"
+"(String filterName)</literal>ï¼<literal>getEnabledFilter(String filterName)</"
+"literal>ï¼å <literal>disableFilter(String filterName)</literal>ãSession ä¸"
+"é»è®¤æ¯<emphasis>ä¸</emphasis>å¯ç¨è¿æ»¤å¨çï¼å¿
é¡»éè¿ <literal>Session."
+"enabledFilter()</literal> æ¹æ³æ¾å¼çå¯ç¨ãè¯¥æ¹æ³è¿å被å¯ç¨ç "
+"<literal>Filter</literal> çå®ä¾ã以䏿å®ä¹çè¿æ»¤å¨ä¸ºä¾ï¼"
-#. Tag: programlisting
-#: filters.xml:83
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
-"\"some-value\");]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:85
-#, fuzzy, no-c-format
-msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
-"注æï¼org.hibernate.Filterçæ¹æ³å
许é¾å¼æ¹æ³è°ç¨ãï¼ç±»ä¼¼ä¸é¢ä¾åä¸å¯ç¨Filter"
-"ä¹å设å®Filteråæ°è¿ä¸ªâæ¹æ³é¾âï¼ Hibernateçå
¶ä»é¨åä¹å¤§å¤æè¿ä¸ªç¹æ§ã"
+"注æï¼org.hibernate.Filter çæ¹æ³å
许é¾å¼æ¹æ³è°ç¨ãï¼ç±»ä¼¼ä¸é¢ä¾åä¸å¯ç¨ "
+"Filter ä¹åè®¾å® Filter åæ°è¿ä¸ªâæ¹æ³é¾âï¼ Hibernate çå
¶ä»é¨åä¹å¤§å¤æè¿ä¸ªç¹"
+"æ§ã "
#. Tag: para
-#: filters.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
-msgstr "ä¸é¢æ¯ä¸ä¸ªæ¯è¾å®æ´çä¾åï¼ä½¿ç¨äºè®°å½çææ¥ææ¨¡å¼è¿æ»¤ææ¶æçæ°æ®ï¼"
+msgstr "ä¸é¢æ¯ä¸ä¸ªæ¯è¾å®æ´çä¾åï¼ä½¿ç¨äºè®°å½çææ¥ææ¨¡å¼è¿æ»¤ææ¶æçæ°æ®ï¼ "
-#. Tag: programlisting
-#: filters.xml:93
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"effectiveDate\">\n"
-" <filter-param name=\"asOfDate\" type=\"date\"/>\n"
-"</filter-def>\n"
-"\n"
-"<class name=\"Employee\" ...>\n"
-"...\n"
-" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"
-">\n"
-" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt"
-"\"/>\n"
-" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"
-">\n"
-"...\n"
-" <!--\n"
-" Note that this assumes non-terminal records have an eff_end_dt set "
-"to\n"
-" a max db date for simplicity-sake\n"
-" -->\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"Department\" ...>\n"
-"...\n"
-" <set name=\"employees\" lazy=\"true\">\n"
-" <key column=\"dept_id\"/>\n"
-" <one-to-many class=\"Employee\"/>\n"
-" <filter name=\"effectiveDate\"\n"
-" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
-">\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:95
-#, fuzzy, no-c-format
-msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
"å®ä¹å¥½åï¼å¦ææ³è¦ä¿è¯ååç齿¯ç®åå¤äºçææçè®°å½ï¼åªéå¨è·åéåæ°æ®çæ"
-"ä½ä¹åå
å¼å¯è¿æ»¤å¨å³å¯ï¼"
+"ä½ä¹åå
å¼å¯è¿æ»¤å¨å³å¯ï¼ "
-#. Tag: programlisting
-#: filters.xml:100
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session session = ...;\n"
-"session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
-"());\n"
-"List results = session.createQuery(\"from Employee as e where e.salary > :"
-"targetSalary\")\n"
-" .setLong(\"targetSalary\", new Long(1000000))\n"
-" .list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:102
-#, fuzzy, no-c-format
-msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
-"å¨ä¸é¢çHQLä¸ï¼è½ç¶æä»¬ä»
ä»
æ¾å¼ç使ç¨äºä¸ä¸ªèªæ°´æ¡ä»¶ï¼ä½å 为å¯ç¨äºè¿æ»¤å¨ï¼æ¥è¯¢"
-"å°ä»
è¿åé£äºç®åéç¨ å
³ç³»å¤äºçææçï¼å¹¶ä¸èªæ°´é«äºä¸ç¾ä¸ç¾åçéåçæ°æ®ã"
+"å¨ä¸é¢ç HQL ä¸ï¼è½ç¶æä»¬ä»
ä»
æ¾å¼ç使ç¨äºä¸ä¸ªèªæ°´æ¡ä»¶ï¼ä½å 为å¯ç¨äºè¿æ»¤å¨ï¼æ¥"
+"询å°ä»
è¿åé£äºç®åéç¨å
³ç³»å¤äºçææçï¼å¹¶ä¸èªæ°´é«äºä¸ç¾ä¸ç¾å
çéåçæ°æ®ã "
#. Tag: para
-#: filters.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
"safest to set this up for left outer joining. Place the parameter first "
"followed by the column name(s) after the operator."
msgstr ""
-"注æï¼å¦æä½ æç®å¨ä½¿ç¨å¤è¿æ¥ï¼æè
éè¿HQLæload fetchingï¼çåæ¶ä½¿ç¨è¿æ»¤å¨ï¼"
-"è¦æ³¨ææ¡ä»¶è¡¨è¾¾å¼çæ¹åï¼å·¦è¿æ¯å³ï¼ã æå®å
¨çæ¹å¼æ¯ä½¿ç¨å·¦å¤è¿æ¥ï¼left outer "
-"joiningï¼ãå¹¶ä¸é常æ¥è¯´ï¼å
ååæ°ï¼ ç¶åæ¯æä½ç¬¦ï¼æååæ°æ®åºå段åã"
+"注æï¼å¦æä½ æç®å¨ä½¿ç¨å¤è¿æ¥ï¼æè
éè¿ HQL æ load fetchingï¼çåæ¶ä½¿ç¨è¿æ»¤"
+"å¨ï¼è¦æ³¨ææ¡ä»¶è¡¨è¾¾å¼çæ¹åï¼å·¦è¿æ¯å³ï¼ãæå®å
¨çæ¹å¼æ¯ä½¿ç¨å·¦å¤è¿æ¥ï¼left "
+"outer joiningï¼ãå¹¶ä¸é常æ¥è¯´ï¼å
ååæ°ï¼ç¶åæ¯æä½ç¬¦ï¼æååæ°æ®åºå段åã"
#. Tag: para
-#: filters.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
"collections each with its own condition. This can be problematic when the "
@@ -260,27 +159,154 @@
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
msgstr ""
-"å¨Filterå®ä¹ä¹å,å®å¯è½è¢«éå å°å¤ä¸ªå®ä½å/æéåç±»,æ¯ä¸ªé½æèªå·±çæ¡ä»¶ãåè¥è¿"
-"äºæ¡ä»¶é½æ¯ä¸æ ·çï¼æ¯æ¬¡é½è¦å®ä¹å°±æ¾å¾å¾ç¹çãå æ¤ï¼<literal><filter-def/"
-"></literal>è¢«ç¨æ¥å®ä¹ä¸ä¸ªé»è®¤æ¡ä»¶ï¼å®å¯è½ä½ä¸ºå±æ§æè
CDATAåºç°ï¼"
+"å¨ Filter å®ä¹ä¹å,å®å¯è½è¢«éå å°å¤ä¸ªå®ä½å/æéåç±»,æ¯ä¸ªé½æèªå·±çæ¡ä»¶ãåè¥"
+"è¿äºæ¡ä»¶é½æ¯ä¸æ ·çï¼æ¯æ¬¡é½è¦å®ä¹å°±æ¾å¾å¾ç¹çãå æ¤ï¼<literal><filter-def/"
+"></literal> è¢«ç¨æ¥å®ä¹ä¸ä¸ªé»è®¤æ¡ä»¶ï¼å®å¯è½ä½ä¸ºå±æ§æè
CDATA åºç°ï¼ "
-#. Tag: programlisting
-#: filters.xml:122
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
-"def>\n"
-"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
-msgstr ""
-
-#. Tag: para
-#: filters.xml:124
-#, fuzzy, no-c-format
-msgid ""
"This default condition will be used whenever the filter is attached to "
"something without specifying a condition. This means you can give a specific "
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
-"å½è¿ä¸ªfilter被éå å°ä»»ä½ç®çå°ï¼èåæ²¡ææææ¡ä»¶æ¶ï¼è¿ä¸ªæ¡ä»¶å°±ä¼è¢«ä½¿ç¨ã注"
-"æï¼æ¢å¥è¯è¯´ï¼ä½ å¯ä»¥éè¿ç»filteréå ç¹å«çæ¡ä»¶æ¥éè½½é»è®¤æ¡ä»¶ã"
+"å½è¿ä¸ª filter 被éå å°ä»»ä½ç®çå°ï¼èåæ²¡ææææ¡ä»¶æ¶ï¼è¿ä¸ªç¼ºçæ¡ä»¶å°±ä¼è¢«ä½¿"
+"ç¨ã注æï¼æ¢å¥è¯è¯´ï¼ä½ å¯ä»¥éè¿ç» filter éå ç¹å«çæ¡ä»¶æ¥éè½½é»è®¤æ¡ä»¶ã"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\">\n"
+#~ " <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
+#~ "</filter-def>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"myClass\" ...>\n"
+#~ " ...\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<set ...>\n"
+#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
+#~ "MY_FILTERED_COLUMN\"/>\n"
+#~ "</set>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+#~ msgstr ""
+#~ "<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam"
+#~ "\", \"some-value\");]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"effectiveDate\">\n"
+#~ " <filter-param name=\"asOfDate\" type=\"date\"/>\n"
+#~ "</filter-def>\n"
+#~ "\n"
+#~ "<class name=\"Employee\" ...>\n"
+#~ "...\n"
+#~ " <many-to-one name=\"department\" column=\"dept_id\" class=\"Department"
+#~ "\"/>\n"
+#~ " <property name=\"effectiveStartDate\" type=\"date\" column="
+#~ "\"eff_start_dt\"/>\n"
+#~ " <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt"
+#~ "\"/>\n"
+#~ "...\n"
+#~ " <!--\n"
+#~ " Note that this assumes non-terminal records have an eff_end_dt "
+#~ "set to\n"
+#~ " a max db date for simplicity-sake\n"
+#~ " -->\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"
+#~ ">\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"Department\" ...>\n"
+#~ "...\n"
+#~ " <set name=\"employees\" lazy=\"true\">\n"
+#~ " <key column=\"dept_id\"/>\n"
+#~ " <one-to-many class=\"Employee\"/>\n"
+#~ " <filter name=\"effectiveDate\"\n"
+#~ " condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt"
+#~ "\"/>\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = ...;\n"
+#~ "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new "
+#~ "Date());\n"
+#~ "List results = session.createQuery(\"from Employee as e where e.salary > :"
+#~ "targetSalary\")\n"
+#~ " .setLong(\"targetSalary\", new Long(1000000))\n"
+#~ " .list();\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
+#~ "filter-def>\n"
+#~ "<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/inheritance_mapping.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/inheritance_mapping.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/inheritance_mapping.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,72 +1,63 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-07 09:35+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: inheritance_mapping.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Inheritance mapping"
-msgstr "ç»§æ¿æ å°(Inheritance Mappings)"
+msgstr "ç»§æ¿æ å°ï¼Inheritance Mappingï¼ "
#. Tag: title
-#: inheritance_mapping.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The three strategies"
-msgstr "ä¸ç§çç¥"
+msgstr "ä¸ç§çç¥ "
#. Tag: para
-#: inheritance_mapping.xml:34
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
-msgstr "Hibernateæ¯æä¸ç§åºæ¬çç»§æ¿æ å°çç¥ï¼"
+msgstr "Hibernate æ¯æä¸ç§åºæ¬çç»§æ¿æ å°çç¥ï¼"
#. Tag: para
-#: inheritance_mapping.xml:40
#, no-c-format
msgid "table per class hierarchy"
-msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表(table per class hierarchy)"
+msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表ï¼table per class hierarchyï¼"
#. Tag: para
-#: inheritance_mapping.xml:45
-#, fuzzy, no-c-format
-msgid "<para>table per subclass</para>"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¯ä¸ªåç±»ä¸å¼ 表(table per subclass)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¯ä¸ªåç±»ä¸å¼ 表"
+#, no-c-format
+msgid "table per subclass"
+msgstr "æ¯ä¸ªåç±»ä¸å¼ 表ï¼Table per subclassï¼ "
#. Tag: para
-#: inheritance_mapping.xml:50
#, no-c-format
msgid "table per concrete class"
-msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表(table per concrete class)"
+msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼table per concrete classï¼"
#. Tag: para
-#: inheritance_mapping.xml:56
#, no-c-format
msgid ""
"In addition, Hibernate supports a fourth, slightly different kind of "
"polymorphism:"
-msgstr "æ¤å¤ï¼Hibernateè¿æ¯æç¬¬åç§ç¨æä¸åç夿æ å°çç¥ï¼"
+msgstr "æ¤å¤ï¼Hibernate è¿æ¯æç¬¬åç§ç¨æä¸åç夿æ å°çç¥ï¼"
#. Tag: para
-#: inheritance_mapping.xml:63
#, no-c-format
msgid "implicit polymorphism"
-msgstr "éå¼å¤æ(implicit polymorphism)"
+msgstr "éå¼å¤æï¼implicit polymorphismï¼"
#. Tag: para
-#: inheritance_mapping.xml:69
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to use different mapping strategies for different branches of "
"the same inheritance hierarchy. You can then make use of implicit "
@@ -80,17 +71,16 @@
"<literal><join></literal> elements (see below for an example)."
msgstr ""
"对äºåä¸ä¸ªç»§æ¿å±æ¬¡å
çä¸å忝ï¼å¯ä»¥éç¨ä¸åçæ å°çç¥ï¼ç¶åç¨éå¼å¤ ææ¥å®æ"
-"è·¨è¶æ´ä¸ªå±æ¬¡ç夿ã使¯å¨åä¸ä¸ª<literal><class></literal>æ ¹å
ç´ ä¸ï¼"
-"Hibernate䏿¯ææ··åäºå
ç´ <literal><subclass></literal>ã <literal><"
-"joined-subclass></literal>å<literal><union-subclass></literal> çæ "
-"å°ãå¨åä¸ä¸ª<literal><class></literal>å
ç´ ä¸ï¼å¯ä»¥æ··åä½¿ç¨ âæ¯ä¸ªç±»åå±"
-"ç»æä¸å¼ 表âï¼table per hierarchyï¼ åâæ¯ä¸ªåç±»ä¸å¼ 表âï¼table per subclassï¼ "
-"è¿ä¸¤ç§æ å°çç¥ï¼è¿æ¯éè¿ç»åå
ç´ <literal><subclass></literal>å "
-"<literal><join></literal>æ¥å®ç°çï¼è§åï¼ã"
+"è·¨è¶æ´ä¸ªå±æ¬¡ç夿ã使¯å¨åä¸ä¸ª <literal><class></literal> æ ¹å
ç´ ä¸ï¼"
+"Hibernate 䏿¯ææ··åäºå
ç´ <literal><subclass></literal>ã<literal><"
+"joined-subclass></literal> å <literal><union-subclass></literal> ç"
+"æ å°ãå¨åä¸ä¸ª <literal><class></literal> å
ç´ ä¸ï¼å¯ä»¥æ··å使ç¨âæ¯ä¸ªç±»å"
+"å±ç»æä¸å¼ 表âï¼table per hierarchyï¼åâæ¯ä¸ªåç±»ä¸å¼ 表âï¼table per subclassï¼ "
+"è¿ä¸¤ç§æ å°çç¥ï¼è¿æ¯éè¿ç»åå
ç´ <literal><subclass></literal> å "
+"<literal><join></literal> æ¥å®ç°çï¼è§åï¼ã "
#. Tag: para
-#: inheritance_mapping.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to define <literal>subclass</literal>, <literal>union-"
"subclass</literal>, and <literal>joined-subclass</literal> mappings in "
@@ -103,36 +93,21 @@
"extends keyword. The ordering inside a single mapping file still needs to be "
"defined as superclasses before subclasses."
msgstr ""
-"å¨å¤ä¸ªæ å°æä»¶ä¸ï¼å¯ä»¥ç´æ¥å¨<literal>hibernate-mapping</literal>æ ¹ä¸å®ä¹"
-"<literal>subclass</literal>ï¼<literal>union-subclass</literal>å"
+"å¨å¤ä¸ªæ å°æä»¶ä¸ï¼å¯ä»¥ç´æ¥å¨ <literal>hibernate-mapping</literal> æ ¹ä¸å®ä¹ "
+"<literal>subclass</literal>ï¼<literal>union-subclass</literal> å "
"<literal>joined-subclass</literal>ãä¹å°±æ¯è¯´ï¼ä½ å¯ä»¥ä»
å å
¥ä¸ä¸ªæ°çæ å°æä»¶æ¥"
-"æ©å±ç±»å±æ¬¡ãä½ å¿
é¡»å¨subclassçæ å°ä¸ææ<literal>extends</literal>屿§ï¼ç»åº"
-"ä¸ä¸ªä¹åå®ä¹çè¶
ç±»çååãæ³¨æï¼å¨ä»¥åï¼è¿ä¸åè½å¯¹æ å°æä»¶çé¡ºåºæä¸¥æ ¼çè¦"
-"æ±ï¼ä»Hibernate 3å¼å§ï¼ä½¿ç¨extendså
³é®åçæ¶ä¾¯ï¼å¯¹æ å°æä»¶ç顺åºä¸åæè¦æ±ï¼"
-"ä½å¨æ¯ä¸ªæ å°æä»¶éï¼è¶
ç±»å¿
é¡»å¨åç±»ä¹åå®ä¹ã"
+"æ©å±ç±»å±æ¬¡ãä½ å¿
é¡»å¨ subclass çæ å°ä¸ææ <literal>extends</literal> 屿§ï¼"
+"ç»åºä¸ä¸ªä¹åå®ä¹çè¶
ç±»çååãæ³¨æï¼å¨ä»¥åï¼è¿ä¸åè½å¯¹æ å°æä»¶çé¡ºåºæä¸¥æ ¼ç"
+"è¦æ±ï¼ä» Hibernate 3 å¼å§ï¼ä½¿ç¨ extends å
³é®åçæ¶ä¾¯ï¼å¯¹æ å°æä»¶ç顺åºä¸åæ"
+"è¦æ±ï¼ä½å¨æ¯ä¸ªæ å°æä»¶éï¼è¶
ç±»å¿
é¡»å¨åç±»ä¹åå®ä¹ã "
-#. Tag: programlisting
-#: inheritance_mapping.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" <hibernate-mapping>\n"
-" <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value=\"D"
-"\">\n"
-" <property name=\"name\" type=\"string\"/>\n"
-" </subclass>\n"
-" </hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:98
#, no-c-format
msgid "Table per class hierarchy"
-msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表(Table per class hierarchy)"
+msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表ï¼Table per class hierarchyï¼"
#. Tag: para
-#: inheritance_mapping.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose we have an interface <literal>Payment</literal> with the "
"implementors <literal>CreditCardPayment</literal>, <literal>CashPayment</"
@@ -140,102 +115,49 @@
"mapping would display in the following way:"
msgstr ""
"å设æä»¬ææ¥å£<literal>Payment</literal>åå®çå 个å®ç°ç±»ï¼ "
-"<literal>CreditCardPayment</literal>, <literal>CashPayment</literal>, å"
-"<literal>ChequePayment</literal>ãåâæ¯ä¸ªç±»åå±ç»æä¸å¼ 表â(Table per class "
-"hierarchy)çæ å°ä»£ç å¦ä¸æç¤ºï¼"
+"<literal>CreditCardPayment</literal>, <literal>CashPayment</literal> å"
+"<literal>ChequePayment</literal>ãåâæ¯ä¸ªç±»åå±ç»æä¸å¼ 表âï¼Table per class "
+"hierarchyï¼çæ å°ä»£ç å¦ä¸æç¤ºï¼ "
-#. Tag: programlisting
-#: inheritance_mapping.xml:107
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:109
-#, fuzzy, no-c-format
-msgid ""
"Exactly one table is required. There is a limitation of this mapping "
"strategy: columns declared by the subclasses, such as <literal>CCTYPE</"
"literal>, cannot have <literal>NOT NULL</literal> constraints."
msgstr ""
"éç¨è¿ç§çç¥åªéè¦ä¸å¼ 表å³å¯ã宿ä¸ä¸ªå¾å¤§çéå¶ï¼è¦æ±é£äºç±åç±»å®ä¹çåæ®µï¼ "
-"å¦<literal>CCTYPE</literal>ï¼ä¸è½æ<literal>é空(NOT NULL)</literal>约æã"
+"å¦ <literal>CCTYPE</literal>ï¼ä¸è½æ<literal>é空ï¼NOT NULLï¼</literal>约"
+"æã "
#. Tag: title
-#: inheritance_mapping.xml:118
#, no-c-format
msgid "Table per subclass"
-msgstr "æ¯ä¸ªåç±»ä¸å¼ 表(Table per subclass)"
+msgstr "æ¯ä¸ªåç±»ä¸å¼ 表ï¼Table per subclassï¼"
#. Tag: para
-#: inheritance_mapping.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid "A table per subclass mapping looks like this:"
-msgstr "对äºä¸ä¾ä¸çå 个类èè¨ï¼éç¨âæ¯ä¸ªåç±»ä¸å¼ 表âçæ å°çç¥ï¼ä»£ç å¦ä¸æç¤ºï¼"
-
-#. Tag: programlisting
-#: inheritance_mapping.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
msgstr ""
+" 对äºä¸ä¾ä¸çå 个类èè¨ï¼éç¨âæ¯ä¸ªåç±»ä¸å¼ 表âçæ å°çç¥ï¼ä»£ç å¦ä¸æç¤ºï¼"
#. Tag: para
-#: inheritance_mapping.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Four tables are required. The three subclass tables have primary key "
"associations to the superclass table so the relational model is actually a "
"one-to-one association."
msgstr ""
-"éè¦åå¼ è¡¨ãä¸ä¸ªå类表éè¿ä¸»é®å
³èå°è¶
类表(å èå
³ç³»æ¨¡åå®é
䏿¯ä¸å¯¹ä¸å
³è)ã"
+"éè¦åå¼ è¡¨ãä¸ä¸ªå类表éè¿ä¸»é®å
³èå°è¶
类表ï¼å èå
³ç³»æ¨¡åå®é
䏿¯ä¸å¯¹ä¸å
³"
+"èï¼ã "
#. Tag: title
-#: inheritance_mapping.xml:135
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per subclass: using a discriminator"
-msgstr "æ¯ä¸ªåç±»ä¸å¼ 表(Table per subclass)ï¼ä½¿ç¨è¾¨å«æ å¿(Discriminator)"
+msgstr "æ¯ä¸ªåç±»ä¸å¼ 表ï¼Table per subclassï¼ï¼ä½¿ç¨è¾¨å«æ å¿ï¼Discriminatorï¼ "
#. Tag: para
-#: inheritance_mapping.xml:137
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's implementation of table per subclass does not require a "
"discriminator column. Other object/relational mappers use a different "
@@ -246,160 +168,63 @@
"strategy, you can combine the use of <literal><subclass></literal> and "
"<literal><join></literal>, as follows:"
msgstr ""
-"注æï¼å¯¹âæ¯ä¸ªåç±»ä¸å¼ 表âçæ å°çç¥ï¼Hibernateçå®ç°ä¸éè¦è¾¨å«å段ï¼èå
¶ä» ç"
-"对象/å
³ç³»æ å°å·¥å
·ä½¿ç¨äºä¸ç§ä¸åäºHibernateçå®ç°æ¹æ³ï¼è¯¥æ¹æ³è¦æ±å¨è¶
ç±» è¡¨ä¸æ"
-"ä¸ä¸ªç±»å辨å«å段(type discriminator column)ãHibernateéç¨çæ¹æ³æ´ é¾å®ç°ï¼ä½"
-"ä»å
³ç³»ï¼æ°æ®åºï¼çè§åº¦æ¥çï¼æçè¯´å®æ´æ£ç¡®ãè¥ä½ æ¿æä½¿ç¨å¸¦æè¾¨å«å 段çâæ¯ä¸ª"
-"åç±»ä¸å¼ 表âççç¥ï¼ä½ å¯ä»¥ç»å使ç¨<literal><subclass></literal> ä¸"
-"<literal><join></literal>ï¼å¦ä¸æç¤ºï¼"
+"注æï¼å¯¹âæ¯ä¸ªåç±»ä¸å¼ 表âçæ å°çç¥ï¼Hibernate çå®ç°ä¸éè¦è¾¨å«å段ï¼èå
¶ä»ç"
+"对象ï¼å
³ç³»æ å°å·¥å
·ä½¿ç¨äºä¸ç§ä¸åäºHibernateçå®ç°æ¹æ³ï¼è¯¥æ¹æ³è¦æ±å¨è¶
ç±»è¡¨ä¸æ"
+"ä¸ä¸ªç±»å辨å«å段ï¼type discriminator columnï¼ãHibernate éç¨çæ¹æ³æ´é¾å®ç°ï¼"
+"ä½ä»å
³ç³»ï¼æ°æ®åºï¼çè§åº¦æ¥çï¼æçè¯´å®æ´æ£ç¡®ãè¥ä½ æ¿æä½¿ç¨å¸¦æè¾¨å«å段çâæ¯ä¸ª"
+"åç±»ä¸å¼ 表âççç¥ï¼ä½ å¯ä»¥ç»åä½¿ç¨ <literal><subclass></literal> ä¸"
+"<literal><join></literal>ï¼å¦ä¸æç¤ºï¼ "
-#. Tag: programlisting
-#: inheritance_mapping.xml:149
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" <join table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:151
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\"</literal> declaration tells Hibernate "
"not to fetch the <literal>ChequePayment</literal> subclass data using an "
"outer join when querying the superclass."
msgstr ""
-"å¯éç声æ<literal>fetch=\"select\"</literal>ï¼æ¯ç¨æ¥åè¯Hibernateï¼å¨æ¥è¯¢è¶
"
-"ç±»æ¶ï¼ ä¸è¦ä½¿ç¨å¤é¨è¿æ¥(outer join)æ¥æååç±»<literal>ChequePayment</literal>"
-"çæ°æ®ã"
+"å¯éç声æ <literal>fetch=\"select\"</literal>ï¼æ¯ç¨æ¥åè¯ Hibernateï¼å¨æ¥è¯¢"
+"è¶
ç±»æ¶ï¼ä¸è¦ä½¿ç¨å¤é¨è¿æ¥ï¼outer joinï¼æ¥æååç±» <literal>ChequePayment</"
+"literal> çæ°æ®ã"
#. Tag: title
-#: inheritance_mapping.xml:160
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr "æ··å使ç¨âæ¯ä¸ªç±»åå±ç»æä¸å¼ 表âåâæ¯ä¸ªåç±»ä¸å¼ 表â"
#. Tag: para
-#: inheritance_mapping.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
"ä½ çè³å¯ä»¥éåå¦ä¸æ¹æ³æ··å使ç¨âæ¯ä¸ªç±»åå±ç»æä¸å¼ 表âåâæ¯ä¸ªåç±»ä¸å¼ 表âè¿ä¸¤ç§"
-"çç¥ï¼"
+"çç¥ï¼ "
-#. Tag: programlisting
-#: inheritance_mapping.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
-" <join table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </join>\n"
-" </subclass>\n"
-" <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
-" ...\n"
-" </subclass>\n"
-" <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
-" ...\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:169
#, no-c-format
msgid ""
"For any of these mapping strategies, a polymorphic association to the root "
"<literal>Payment</literal> class is mapped using <literal><many-to-one>"
"</literal>."
msgstr ""
-"对ä¸è¿°ä»»ä½ä¸ç§æ å°çç¥èè¨ï¼æåæ ¹ç±»<literal>Payment</literal>ç å
³èæ¯ä½¿ç¨"
-"<literal><many-to-one></literal>è¿è¡æ å°çã"
+"对ä¸è¿°ä»»ä½ä¸ç§æ å°çç¥èè¨ï¼æåæ ¹ç±» <literal>Payment</literal> çå
³èæ¯ä½¿ç¨ "
+"<literal><many-to-one></literal> è¿è¡æ å°çã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:175
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment"
-"\"/>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:180
#, no-c-format
msgid "Table per concrete class"
-msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表(Table per concrete class)"
+msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼Table per concrete classï¼"
#. Tag: para
-#: inheritance_mapping.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are two ways we can map the table per concrete class strategy. First, "
"you can use <literal><union-subclass></literal>."
msgstr ""
-"对äºâæ¯ä¸ªå
·ä½ç±»ä¸å¼ 表âçæ å°çç¥ï¼å¯ä»¥éç¨ä¸¤ç§æ¹æ³ã第ä¸ç§æ¹æ³æ¯ä½¿ç¨ "
-"<literal><union-subclass></literal>ã"
+"对äºâæ¯ä¸ªå
·ä½ç±»ä¸å¼ 表âçæ å°çç¥ï¼å¯ä»¥éç¨ä¸¤ç§æ¹æ³ã第ä¸ç§æ¹æ³æ¯ä½¿ç¨ "
+"<literal><union-subclass></literal>ã "
-#. Tag: programlisting
-#: inheritance_mapping.xml:187
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Payment\">\n"
-" <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"AMOUNT\"/>\n"
-" ...\n"
-" <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-" <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" ...\n"
-" </union-subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:189
#, no-c-format
msgid ""
"Three tables are involved for the subclasses. Each table defines columns for "
@@ -409,8 +234,7 @@
"å®ä¹ç¸åºå段ã"
#. Tag: para
-#: inheritance_mapping.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The limitation of this approach is that if a property is mapped on the "
"superclass, the column name must be the same on all subclass tables. The "
@@ -418,68 +242,35 @@
"The primary key seed has to be shared across all unioned subclasses of a "
"hierarchy."
msgstr ""
-"è¿ç§æ¹å¼çå±éå¨äºï¼å¦æä¸ä¸ªå±æ§å¨è¶
ç±»ä¸åäºæ å°ï¼å
¶å段åå¿
须䏿æåç±» 表ä¸"
-"å®ä¹çç¸åã(æä»¬å¯è½ä¼å¨Hibernateçåç»åå¸çæ¬ä¸æ¾å®½æ¤éå¶ã) ä¸å
许å¨èå"
-"åç±»(union subclass)çç»§æ¿å±æ¬¡ä¸ä½¿ç¨æ è¯çæå¨çç¥(identity generator "
-"strategy), å®é
ä¸, 主é®çç§å(primary key seed)ä¸å¾ä¸ä¸ºåä¸ç»§æ¿å±æ¬¡ä¸çå
¨é¨è¢«"
-"èååç±»æå
±ç¨."
+"è¿ç§æ¹å¼çå±éå¨äºï¼å¦æä¸ä¸ªå±æ§å¨è¶
ç±»ä¸åäºæ å°ï¼å
¶å段åå¿
须䏿æå类表ä¸"
+"å®ä¹çç¸åãï¼æä»¬å¯è½ä¼å¨ Hibernate çåç»åå¸çæ¬ä¸æ¾å®½æ¤éå¶ãï¼ä¸å
许å¨è"
+"ååç±»ï¼union subclassï¼çç»§æ¿å±æ¬¡ä¸ä½¿ç¨æ è¯çæå¨çç¥ï¼identity generator "
+"strategyï¼ï¼å®é
ä¸ï¼ä¸»é®çç§åï¼primary key seedï¼ä¸å¾ä¸ä¸ºåä¸ç»§æ¿å±æ¬¡ä¸çå
¨"
+"é¨è¢«èååç±»æå
±ç¨ã "
#. Tag: para
-#: inheritance_mapping.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\"</"
"literal>. If it is not abstract, an additional table (it defaults to "
"<literal>PAYMENT</literal> in the example above), is needed to hold "
"instances of the superclass."
msgstr ""
-"åè¥è¶
ç±»æ¯æ½è±¡ç±»ï¼è¯·ä½¿ç¨<literal>abstract=\"true\"</literal>ãå½ç¶ï¼åè¥å®ä¸"
-"æ¯æ½è±¡çï¼éè¦ä¸ä¸ªé¢å¤ç表ï¼ä¸é¢çä¾åä¸ï¼é»è®¤æ¯<literal>PAYMENT</"
-"literal>ï¼ï¼æ¥ä¿åè¶
ç±»çå®ä¾ã"
+"åè¥è¶
ç±»æ¯æ½è±¡ç±»ï¼è¯·ä½¿ç¨ <literal>abstract=\"true\"</literal>ãå½ç¶ï¼åè¥å®ä¸"
+"æ¯æ½è±¡çï¼éè¦ä¸ä¸ªé¢å¤ç表ï¼ä¸é¢çä¾åä¸ï¼é»è®¤æ¯ <literal>PAYMENT</"
+"literal>ï¼ï¼æ¥ä¿åè¶
ç±»çå®ä¾ã "
#. Tag: title
-#: inheritance_mapping.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
-msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼ä½¿ç¨éå¼å¤æ"
+msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼ä½¿ç¨éå¼å¤æ "
#. Tag: para
-#: inheritance_mapping.xml:215
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr "å¦ä¸ç§å¯ä¾éæ©çæ¹æ³æ¯éç¨éå¼å¤æï¼"
-#. Tag: programlisting
-#: inheritance_mapping.xml:219
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-"</class>\n"
-"\n"
-"<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: inheritance_mapping.xml:221
#, fuzzy, no-c-format
msgid ""
"Notice that the <literal>Payment</literal> interface is not mentioned "
@@ -487,56 +278,39 @@
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the <literal>DOCTYPE</literal> "
-"declaration and <literal>&allproperties;</literal> in the mapping)."
+"declaration and <literal>&allproperties;</literal> in the mapping)."
msgstr ""
-"注æï¼æä»¬æ²¡æå¨ä»»ä½å°æ¹æç¡®çæåæ¥å£<literal>Payment</literal>ãåæ¶æ³¨æ "
-"<literal>Payment</literal>ç屿§å¨æ¯ä¸ªåç±»ä¸é½è¿è¡äºæ å°ãå¦æä½ æ³é¿å
éå¤ï¼ "
-"å¯ä»¥èè使ç¨XMLå®ä½(ä¾å¦ï¼ä½äº<literal>DOCTYPE</literal>声æå
ç <literal>"
-"[ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ]</literal> åæ "
-"å°ä¸ç<literal>&allproperties;</literal>)ã"
+"请注æè¿éæ²¡ææ¾æ§å°æå <literal>Payment</literal> æ¥å£ã<literal>Payment</"
+"literal> ç屿§æ å°å°æ¯ä¸ªåç±»ãå¦æä½ æ³é¿å
éå¤ï¼è¯·èèä½¿ç¨ XML å®ä½ï¼å¦ï¼"
+"<literal>DOCTYPE</literal> 声æéç <literal>[ <!ENTITY allproperties "
+"SYSTEM \"allproperties.xml\"> ]</literal> åæ å°éç <literal>&"
+"allproperties;</literal>ï¼ã"
#. Tag: para
-#: inheritance_mapping.xml:231
#, no-c-format
msgid ""
"The disadvantage of this approach is that Hibernate does not generate SQL "
"<literal>UNION</literal>s when performing polymorphic queries."
msgstr ""
-"è¿ç§æ¹æ³ç缺é·å¨äºï¼å¨Hibernateæ§è¡å¤ææ¥è¯¢æ¶(polymorphic queries)æ æ³çæå¸¦ "
-"<literal>UNION</literal>çSQLè¯å¥ã"
+"è¿ç§æ¹æ³ç缺é·å¨äºï¼å¨ Hibernate æ§è¡å¤ææ¥è¯¢æ¶ï¼polymorphic queriesï¼æ æ³ç"
+"æå¸¦ <literal>UNION</literal> ç SQL è¯å¥ã "
#. Tag: para
-#: inheritance_mapping.xml:236
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment</"
"literal> is usually mapped using <literal><any></literal>."
msgstr ""
-"对äºè¿ç§æ å°çç¥èè¨ï¼é常ç¨<literal><any></literal>æ¥å®ç°å° "
-"<literal>Payment</literal>ç夿å
³èæ å°ã"
+"对äºè¿ç§æ å°çç¥èè¨ï¼éå¸¸ç¨ <literal><any></literal> æ¥å®ç°å° "
+"<literal>Payment</literal> ç夿å
³èæ å°ã"
-#. Tag: programlisting
-#: inheritance_mapping.xml:241
-#, no-c-format
-msgid ""
-"<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
-" <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
-" <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
-" <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
-" <column name=\"PAYMENT_CLASS\"/>\n"
-" <column name=\"PAYMENT_ID\"/>\n"
-"</any>]]>"
-msgstr ""
-
#. Tag: title
-#: inheritance_mapping.xml:246
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
msgstr "éå¼å¤æåå
¶ä»ç»§æ¿æ å°æ··å使ç¨"
#. Tag: para
-#: inheritance_mapping.xml:248
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Since the subclasses are each mapped in their own <literal><class></"
"literal> element, and since <literal>Payment</literal> is just an "
@@ -544,48 +318,14 @@
"inheritance hierarchy. You can still use polymorphic queries against the "
"<literal>Payment</literal> interface."
msgstr ""
-"对è¿ä¸æ å°è¿æä¸ç¹éè¦æ³¨æãå 为æ¯ä¸ªåç±»é½å¨åèªç¬ç«çå
ç´ <literal><"
-"class></literal> 䏿 å°(å¹¶ä¸<literal>Payment</literal>åªæ¯ä¸ä¸ªæ¥å£)ï¼æ¯ä¸ª"
-"åç±»å¯ä»¥å¾å®¹æçæä¸ºå¦ä¸ 个继æ¿ä½ç³»ä¸çä¸é¨åï¼(ä½ ä»ç¶å¯ä»¥å¯¹æ¥å£"
-"<literal>Payment</literal>使ç¨å¤ææ¥è¯¢ã)"
+"对è¿ä¸æ å°è¿æä¸ç¹éè¦æ³¨æãå 为æ¯ä¸ªåç±»é½å¨åèªç¬ç«çå
ç´ <literal><"
+"class></literal> 䏿 å°ï¼å¹¶ä¸ <literal>Payment</literal> åªæ¯ä¸ä¸ªæ¥å£ï¼ï¼"
+"æ¯ä¸ªåç±»å¯ä»¥å¾å®¹æçæä¸ºå¦ä¸ä¸ªç»§æ¿ä½ç³»ä¸çä¸é¨åï¼ï¼ä½ ä»ç¶å¯ä»¥å¯¹æ¥å£ "
+"<literal>Payment</literal> 使ç¨å¤ææ¥è¯¢ãï¼ "
-#. Tag: programlisting
-#: inheritance_mapping.xml:256
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
-" <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
-" <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
-" ...\n"
-" <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
-" <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
-"</class>\n"
-"\n"
-"<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
-" <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" ...\n"
-" <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-" <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
-" <key column=\"PAYMENT_ID\"/>\n"
-" <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
-" ...\n"
-" </joined-subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: inheritance_mapping.xml:258
-#, fuzzy, no-c-format
-msgid ""
"Once again, <literal>Payment</literal> is not mentioned explicitly. If we "
"execute a query against the <literal>Payment</literal> interface, for "
"example <literal>from Payment</literal>, Hibernate automatically returns "
@@ -594,225 +334,614 @@
"literal> and <literal>ChequePayment</literal>, but not instances of "
"<literal>NonelectronicTransaction</literal>."
msgstr ""
-"æä»¬è¿æ¯æ²¡ææç¡®çæå°<literal>Payment</literal>ã 妿æä»¬é对æ¥å£"
-"<literal>Payment</literal>æ§è¡æ¥è¯¢ ââå¦<literal>from Payment</literal>ââ "
-"Hibernate èªå¨è¿å<literal>CreditCardPayment</literal>(åå®çåç±»ï¼å 为 å®ä»¬"
-"ä¹å®ç°äºæ¥å£<literal>Payment</literal>)ã <literal>CashPayment</literal>å"
-"<literal>Chequepayment</literal>çå®ä¾ï¼ ä½ä¸è¿å"
-"<literal>NonelectronicTransaction</literal>çå®ä¾ã"
+"æä»¬è¿æ¯æ²¡ææç¡®çæå° <literal>Payment</literal>ã妿æä»¬é对æ¥å£ "
+"<literal>Payment</literal> æ§è¡æ¥è¯¢ â å¦ <literal>from Payment</literal> â "
+"Hibernate èªå¨è¿å <literal>CreditCardPayment</literal>ï¼åå®çåç±»ï¼å 为 å®"
+"们ä¹å®ç°äºæ¥å£ <literal>Payment</literal>ï¼ã<literal>CashPayment</literal> "
+"å <literal>Chequepayment</literal> çå®ä¾ï¼ä½ä¸è¿å "
+"<literal>NonelectronicTransaction</literal> çå®ä¾ã "
#. Tag: title
-#: inheritance_mapping.xml:273
#, no-c-format
msgid "Limitations"
msgstr "éå¶"
#. Tag: para
-#: inheritance_mapping.xml:275
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are limitations to the \"implicit polymorphism\" approach to the table "
"per concrete-class mapping strategy. There are somewhat less restrictive "
"limitations to <literal><union-subclass></literal> mappings."
msgstr ""
"å¯¹âæ¯ä¸ªå
·ä½ç±»æ å°ä¸å¼ 表âï¼table per concrete-classï¼çæ å°çç¥èè¨ï¼éå¼å¤æ"
-"ç æ¹å¼æä¸å®çéå¶ãè<literal><union-subclass></literal>æ å°çéå¶å"
-"没æé£ ä¹ä¸¥æ ¼ã"
+"çæ¹å¼æä¸å®çéå¶ãè <literal><union-subclass></literal> æ å°çéå¶å"
+"没æé£ä¹ä¸¥æ ¼ã "
#. Tag: para
-#: inheritance_mapping.xml:282
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
-msgstr "ä¸é¢è¡¨æ ¼ä¸ååºäºå¨Hibernteä¸âæ¯ä¸ªå
·ä½ç±»ä¸å¼ 表âççç¥åéå¼å¤æçéå¶ã"
+msgstr ""
+"ä¸é¢è¡¨æ ¼ä¸ååºäºå¨ Hibernte ä¸âæ¯ä¸ªå
·ä½ç±»ä¸å¼ 表âççç¥åéå¼å¤æçéå¶ã "
#. Tag: title
-#: inheritance_mapping.xml:288
#, no-c-format
msgid "Features of inheritance mappings"
-msgstr "ç»§æ¿æ å°ç¹æ§(Features of inheritance mappings)"
+msgstr "ç»§æ¿æ å°ç¹æ§ï¼Features of inheritance mappingsï¼"
#. Tag: entry
-#: inheritance_mapping.xml:301
#, no-c-format
msgid "Inheritance strategy"
-msgstr "ç»§æ¿çç¥(Inheritance strategy)"
+msgstr "ç»§æ¿çç¥ï¼Inheritance strategyï¼"
#. Tag: entry
-#: inheritance_mapping.xml:302
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Polymorphic many-to-one"
-msgstr "夿å¤å¯¹ä¸"
+msgstr "夿å¤å¯¹å¤"
#. Tag: entry
-#: inheritance_mapping.xml:303
#, no-c-format
msgid "Polymorphic one-to-one"
msgstr "夿ä¸å¯¹ä¸"
#. Tag: entry
-#: inheritance_mapping.xml:304
#, no-c-format
msgid "Polymorphic one-to-many"
msgstr "夿ä¸å¯¹å¤"
#. Tag: entry
-#: inheritance_mapping.xml:305
#, no-c-format
msgid "Polymorphic many-to-many"
msgstr "夿å¤å¯¹å¤"
#. Tag: entry
-#: inheritance_mapping.xml:306
#, no-c-format
msgid "Polymorphic <literal>load()/get()</literal>"
-msgstr ""
+msgstr "Polymorphic <literal>load()/get()</literal>"
#. Tag: entry
-#: inheritance_mapping.xml:307
#, no-c-format
msgid "Polymorphic queries"
msgstr "夿æ¥è¯¢"
#. Tag: entry
-#: inheritance_mapping.xml:308
#, no-c-format
msgid "Polymorphic joins"
-msgstr "å¤æè¿æ¥(join)"
+msgstr "å¤æè¿æ¥ï¼joinï¼"
#. Tag: entry
-#: inheritance_mapping.xml:309
-#, no-c-format
+#, fuzzy, no-c-format
msgid "Outer join fetching"
-msgstr "å¤è¿æ¥(Outer join)读å"
+msgstr "æ¯æå¤è¿æ¥ï¼Outer joinï¼è¯»åã"
#. Tag: entry
-#: inheritance_mapping.xml:314
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per class-hierarchy"
-msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表"
+msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表ï¼table per class hierarchyï¼"
-#. Tag: literal
-#: inheritance_mapping.xml:315 inheritance_mapping.xml:326
-#: inheritance_mapping.xml:337
-#, no-c-format
-msgid "<many-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-one></literal>"
msgstr "<many-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:316 inheritance_mapping.xml:327
-#: inheritance_mapping.xml:338
-#, no-c-format
-msgid "<one-to-one>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-one></literal>"
msgstr "<one-to-one>"
-#. Tag: literal
-#: inheritance_mapping.xml:317 inheritance_mapping.xml:328
-#, no-c-format
-msgid "<one-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><one-to-many></literal>"
msgstr "<one-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:318 inheritance_mapping.xml:329
-#: inheritance_mapping.xml:340
-#, no-c-format
-msgid "<many-to-many>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-many></literal>"
msgstr "<many-to-many>"
-#. Tag: literal
-#: inheritance_mapping.xml:319 inheritance_mapping.xml:330
-#: inheritance_mapping.xml:341
-#, no-c-format
-msgid "s.get(Payment.class, id)"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>s.get(Payment.class, id)</literal>"
msgstr "s.get(Payment.class, id)"
-#. Tag: literal
-#: inheritance_mapping.xml:320 inheritance_mapping.xml:331
-#: inheritance_mapping.xml:342 inheritance_mapping.xml:353
-#, no-c-format
-msgid "from Payment p"
-msgstr "from Payment p"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>from Payment p</literal>"
+msgstr "Polymorphic <literal>load()/get()</literal>"
-#. Tag: literal
-#: inheritance_mapping.xml:321 inheritance_mapping.xml:332
-#: inheritance_mapping.xml:343
-#, no-c-format
-msgid "from Order o join o.payment p"
-msgstr "from Order o join o.payment p"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>from Order o join o.payment p</literal>"
+msgstr "å¤ææ§ joinï¼<code>from Order o join o.payment p</code>"
-#. Tag: emphasis
-#: inheritance_mapping.xml:322 inheritance_mapping.xml:333
-#: inheritance_mapping.xml:344
+#. Tag: entry
#, no-c-format
-msgid "supported"
-msgstr "æ¯æ"
-
-#. Tag: entry
-#: inheritance_mapping.xml:325
-#, fuzzy, no-c-format
-msgid "<entry>table per subclass</entry>"
+msgid "<emphasis>supported</emphasis>"
msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¯ä¸ªåç±»ä¸å¼ 表(table per subclass)\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æ¯ä¸ªåç±»ä¸å¼ 表"
#. Tag: entry
-#: inheritance_mapping.xml:336
#, no-c-format
msgid "table per concrete-class (union-subclass)"
-msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表(union-subclass)"
+msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼union-subclassï¼"
#. Tag: entry
-#: inheritance_mapping.xml:339
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many></literal> (for <literal>inverse=\"true\"</"
"literal> only)"
msgstr ""
+"夿æ§ä¸å¯¹å¤ï¼<literal><one-to-many></literal> (ä»
éç¨äº "
+"<literal>inverse=\"true\"</literal>)"
#. Tag: entry
-#: inheritance_mapping.xml:347
-#, no-c-format
+#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
-msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表(éå¼å¤æ)"
+msgstr "æ¯ä¸ªå
·ä½ç±»ä¸å¼ 表ï¼éå¼å¤æï¼ "
-#. Tag: literal
-#: inheritance_mapping.xml:348
-#, no-c-format
-msgid "<any>"
-msgstr "<any>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><any></literal>"
+msgstr "Polymorphic <literal>load()/get()</literal>"
-#. Tag: emphasis
-#: inheritance_mapping.xml:349 inheritance_mapping.xml:350
-#: inheritance_mapping.xml:354 inheritance_mapping.xml:355
+#. Tag: entry
#, no-c-format
-msgid "not supported"
-msgstr "䏿¯æ"
+msgid "<emphasis>not supported</emphasis>"
+msgstr ""
-#. Tag: literal
-#: inheritance_mapping.xml:351
-#, no-c-format
-msgid "<many-to-any>"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal><many-to-any></literal>"
msgstr "<many-to-any>"
-#. Tag: literal
-#: inheritance_mapping.xml:352
-#, no-c-format
+#. Tag: entry
+#, fuzzy, no-c-format
msgid ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
+"uniqueResult()</literal>"
msgstr ""
-"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
+"å¤ææ§ <literal>load()</literal> æ <literal>get()</literal>ï¼<code>s."
+"createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()</"
+"code>"
-#~ msgid "load()/get()"
-#~ msgstr "load()/get()"
+#~ msgid "table per class-heirarchy"
+#~ msgstr "æ¯ä¸ªç±»åå±ç»æä¸å¼ 表 "
-#~ msgid "Polymorphic <placeholder-1/>"
-#~ msgstr "夿 <placeholder-1/>"
+#~ msgid "Polymorphic many-to-one: <code><many-to-one></code>"
+#~ msgstr "夿æ§å¤å¯¹ä¸ï¼<code><many-to-one></code>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#~ msgid "Polymorphic one-to-one: <code><one-to-one></code>"
+#~ msgstr "夿æ§ä¸å¯¹ä¸ï¼<code><one-to-one></code>"
-#~ msgid "<placeholder-1/> (for <placeholder-2/> only)"
-#~ msgstr "<placeholder-1/> (ä»
对äº<placeholder-2/>çæ
åµ)"
+#~ msgid "Polymorphic one-to-many: <code><one-to-many></code>"
+#~ msgstr "夿æ§ä¸å¯¹å¤ï¼<code><one-to-many></code>"
+
+#~ msgid "Polymorphic many-to-many: <code><many-to-many></code>"
+#~ msgstr "夿æ§å¤å¯¹å¤ï¼<code><many-to-many></code>"
+
+#~ msgid ""
+#~ "Polymorphic <literal>load()</literal> or <literal>get()</literal>: "
+#~ "<code>s.get(Payment.class, id)</code>"
+#~ msgstr ""
+#~ "å¤ææ§ <literal>load()</literal> æ <literal>get()</literal>ï¼<code>s.get"
+#~ "(Payment.class, id)</code>"
+
+#~ msgid "Polymorphic queries: <code>from Payment p</code>"
+#~ msgstr "å¤ææ§æ¥è¯¢ï¼<code>from Payment p</code>"
+
+#~ msgid "Polymorphic many-to-one: <code><any></code>"
+#~ msgstr "夿å¤å¯¹ä¸ï¼<code><any></code>"
+
+#~ msgid ""
+#~ "Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and "
+#~ "outer join fetching are not supported."
+#~ msgstr ""
+#~ "夿æ§ä¸å¯¹ä¸ã夿æ§ä¸å¯¹å¤ï¼ä¸æ¯æå¤ææ§ join å outer join fetchingã"
+
+#~ msgid "<para>table per subclass</para>"
+#~ msgstr "<para>æ¯ä¸ªåç±»ä¸å¼ 表</para>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ " <hibernate-mapping>\n"
+#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value="
+#~ "\"D\">\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </subclass>\n"
+#~ " </hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<hibernate-mapping>\n"
+#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-"
+#~ "value=\"D\">\n"
+#~ " <property name=\"name\" type=\"string\"/>\n"
+#~ " </subclass>\n"
+#~ " </hibernate-mapping>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " <join table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " <join table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
+#~ "\">\n"
+#~ " <join table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </join>\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class="
+#~ "\"Payment\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment\"/"
+#~ ">"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Payment\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Payment\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
+#~ "\">\n"
+#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " ...\n"
+#~ " </union-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
+#~ " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
+#~ " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
+#~ " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
+#~ " <column name=\"PAYMENT_CLASS\"/>\n"
+#~ " <column name=\"PAYMENT_ID\"/>\n"
+#~ "</any>]]>"
+#~ msgstr ""
+#~ "<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
+#~ " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
+#~ " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
+#~ " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
+#~ " <column name=\"PAYMENT_CLASS\"/>\n"
+#~ " <column name=\"PAYMENT_ID\"/>\n"
+#~ "</any>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/>\n"
+#~ " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
+#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/"
+#~ ">\n"
+#~ " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
+#~ "</class>\n"
+#~ "\n"
+#~ "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN"
+#~ "\">\n"
+#~ " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " ...\n"
+#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
+#~ "\">\n"
+#~ " <key column=\"PAYMENT_ID\"/>\n"
+#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
+#~ " ...\n"
+#~ " </joined-subclass>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid "<term>table per subclass</term>"
+#~ msgstr "<entry>æ¯ä¸ªåç±»ä¸å¼ 表</entry>"
+
+#~ msgid "from Payment p"
+#~ msgstr "from Payment p"
+
+#~ msgid "supported"
+#~ msgstr "æ¯æ"
+
+#~ msgid "<any>"
+#~ msgstr "<any>"
+
+#~ msgid "not supported"
+#~ msgstr "䏿¯æ"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/performance.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/performance.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/performance.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,76 +1,74 @@
+# translation of performance.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: performance\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-08-17 20:22+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-07 09:35+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: performance.xml:29
#, no-c-format
msgid "Improving performance"
msgstr "æåæ§è½"
#. Tag: title
-#: performance.xml:32
#, no-c-format
msgid "Fetching strategies"
-msgstr "æåçç¥(Fetching strategies)"
+msgstr "æåçç¥ï¼Fetching strategiesï¼"
#. Tag: para
-#: performance.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a <emphasis>fetching strategy</emphasis> to retrieve "
"associated objects if the application needs to navigate the association. "
"Fetch strategies can be declared in the O/R mapping metadata, or over-ridden "
"by a particular HQL or <literal>Criteria</literal> query."
msgstr ""
-"<emphasis>æåçç¥ï¼fetching strategyï¼</emphasis> æ¯æï¼å½åºç¨ç¨åºéè¦å¨"
-"ï¼Hibernateå®ä½å¯¹è±¡å¾çï¼å
³èå
³ç³»é´è¿è¡å¯¼èªçæ¶åï¼ Hibernateå¦ä½è·åå
³è对象"
-"ççç¥ãæåçç¥å¯ä»¥å¨O/Ræ å°çå
æ°æ®ä¸å£°æï¼ä¹å¯ä»¥å¨ç¹å®çHQL æ<literal>æ¡"
-"ä»¶æ¥è¯¢ï¼Criteria Queryï¼</literal>ä¸é载声æã"
+"å½åºç¨ç¨åºéè¦å¨ï¼Hibernateå®ä½å¯¹è±¡å¾çï¼å
³èå
³ç³»é´è¿è¡å¯¼èªçæ¶åï¼Hibernate "
+"ä½¿ç¨ <emphasis>æåçç¥ï¼fetching strategyï¼</emphasis> è·åå
³è对象ãæåç"
+"ç¥å¯ä»¥å¨ O/R æ å°çå
æ°æ®ä¸å£°æï¼ä¹å¯ä»¥å¨ç¹å®ç HQL æ<literal>æ¡ä»¶æ¥è¯¢"
+"ï¼Criteria Queryï¼</literal>ä¸é载声æã"
#. Tag: para
-#: performance.xml:41
#, no-c-format
msgid "Hibernate3 defines the following fetching strategies:"
msgstr "Hibernate3 å®ä¹äºå¦ä¸å ç§æåçç¥ï¼"
#. Tag: para
-#: performance.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Join fetching</emphasis>: Hibernate retrieves the associated "
"instance or collection in the same <literal>SELECT</literal>, using an "
"<literal>OUTER JOIN</literal>."
msgstr ""
-"<emphasis>è¿æ¥æåï¼Join fetchingï¼</emphasis> - Hibernateéè¿ å¨"
-"<literal>SELECT</literal>è¯å¥ä½¿ç¨<literal>OUTER JOIN</literal>ï¼å¤è¿æ¥ï¼æ¥ è·"
-"å¾å¯¹è±¡çå
³èå®ä¾æè
å
³èéåã"
+"<emphasis>è¿æ¥æåï¼Join fetchingï¼</emphasis>ï¼Hibernate éè¿å¨ "
+"<literal>SELECT</literal> è¯å¥ä½¿ç¨ <literal>OUTER JOIN</literal>ï¼å¤è¿æ¥ï¼æ¥"
+"è·å¾å¯¹è±¡çå
³èå®ä¾æè
å
³èéåã "
#. Tag: para
-#: performance.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Select fetching</emphasis>: a second <literal>SELECT</literal> is "
"used to retrieve the associated entity or collection. Unless you explicitly "
"disable lazy fetching by specifying <literal>lazy=\"false\"</literal>, this "
"second select will only be executed when you access the association."
msgstr ""
-"<emphasis>æ¥è¯¢æåï¼Select fetchingï¼</emphasis> - å¦å¤åé䏿¡ "
-"<literal>SELECT</literal> è¯å¥æåå½å对象çå
³èå®ä½æéåãé¤éä½ æ¾å¼çæå®"
-"<literal>lazy=\"false\"</literal>ç¦æ¢ å»¶è¿æåï¼lazy fetchingï¼ï¼å¦ååªæå½ä½ "
-"çæ£è®¿é®å
³èå
³ç³»çæ¶åï¼æä¼æ§è¡ç¬¬äºæ¡selectè¯å¥ã"
+"<emphasis>æ¥è¯¢æåï¼Select fetchingï¼</emphasis>ï¼å¦å¤åé䏿¡ "
+"<literal>SELECT</literal> è¯å¥æåå½å对象çå
³èå®ä½æéåãé¤éä½ æ¾å¼çæå® "
+"<literal>lazy=\"false\"</literal> ç¦æ¢ å»¶è¿æåï¼lazy fetchingï¼ï¼å¦ååªæå½"
+"ä½ çæ£è®¿é®å
³èå
³ç³»çæ¶åï¼æä¼æ§è¡ç¬¬äºæ¡ select è¯å¥ã"
#. Tag: para
-#: performance.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Subselect fetching</emphasis>: a second <literal>SELECT</literal> "
"is used to retrieve the associated collections for all entities retrieved in "
@@ -78,79 +76,72 @@
"specifying <literal>lazy=\"false\"</literal>, this second select will only "
"be executed when you access the association."
msgstr ""
-"<emphasis>åæ¥è¯¢æåï¼Subselect fetchingï¼</emphasis> - å¦å¤åé䏿¡"
+"<emphasis>åæ¥è¯¢æåï¼Subselect fetchingï¼</emphasis>ï¼å¦å¤åé䏿¡ "
"<literal>SELECT</literal> è¯å¥æåå¨å颿¥è¯¢å°ï¼æè
æåå°ï¼çææå®ä½å¯¹è±¡ç"
-"å
³èéåãé¤éä½ æ¾å¼çæå®<literal>lazy=\"false\"</literal> ç¦æ¢å»¶è¿æå"
-"ï¼lazy fetchingï¼ï¼å¦ååªæå½ä½ çæ£è®¿é®å
³èå
³ç³»çæ¶åï¼æä¼æ§è¡ç¬¬äºæ¡selectè¯"
-"å¥ã"
+"å
³èéåãé¤éä½ æ¾å¼çæå® <literal>lazy=\"false\"</literal> ç¦æ¢å»¶è¿æå"
+"ï¼lazy fetchingï¼ï¼å¦ååªæå½ä½ çæ£è®¿é®å
³èå
³ç³»çæ¶åï¼æä¼æ§è¡ç¬¬äºæ¡ select "
+"è¯å¥ã"
#. Tag: para
-#: performance.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Batch fetching</emphasis>: an optimization strategy for select "
"fetching. Hibernate retrieves a batch of entity instances or collections in "
"a single <literal>SELECT</literal> by specifying a list of primary or "
"foreign keys."
msgstr ""
-"<emphasis>æ¹éæåï¼Batch fetchingï¼</emphasis> - 对æ¥è¯¢æåçä¼åæ¹æ¡ï¼ éè¿"
-"æå®ä¸ä¸ªä¸»é®æå¤é®å表ï¼Hibernate使ç¨åæ¡<literal>SELECT</literal>è¯å¥è·åä¸"
+"<emphasis>æ¹éæåï¼Batch fetchingï¼</emphasis>ï¼å¯¹æ¥è¯¢æåçä¼åæ¹æ¡ï¼éè¿æ"
+"å®ä¸ä¸ªä¸»é®æå¤é®å表ï¼Hibernate 使ç¨åæ¡ <literal>SELECT</literal> è¯å¥è·åä¸"
"æ¹å¯¹è±¡å®ä¾æéåã"
#. Tag: para
-#: performance.xml:81
#, no-c-format
msgid "Hibernate also distinguishes between:"
-msgstr "Hibernateä¼åºåä¸ååç§æ
åµï¼"
+msgstr "Hibernate ä¼åºåä¸ååç§æ
åµï¼"
#. Tag: para
-#: performance.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Immediate fetching</emphasis>: an association, collection or "
"attribute is fetched immediately when the owner is loaded."
msgstr ""
-"<emphasis>Immediate fetchingï¼ç«å³æå</emphasis> - å½å®¿ä¸»è¢«å è½½æ¶ï¼å
³èãé"
-"åæå±æ§è¢«ç«å³æåã"
+"<emphasis>Immediate fetchingï¼ç«å³æå</emphasis>ï¼å½å®¿ä¸»è¢«å è½½æ¶ï¼å
³èãéå"
+"æå±æ§è¢«ç«å³æåã"
#. Tag: para
-#: performance.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy collection fetching</emphasis>: a collection is fetched when "
"the application invokes an operation upon that collection. This is the "
"default for collections."
msgstr ""
-"<emphasis>Lazy collection fetchingï¼å»¶è¿éåæå</emphasis>- ç´å°åºç¨ç¨åºå¯¹é"
-"åè¿è¡äºä¸æ¬¡æä½æ¶ï¼éåæè¢«æåãï¼å¯¹éåèè¨è¿æ¯é»è®¤è¡ä¸ºãï¼"
+"<emphasis>Lazy collection fetchingï¼å»¶è¿éåæå</emphasis>ï¼ç´å°åºç¨ç¨åºå¯¹é"
+"åè¿è¡äºä¸æ¬¡æä½æ¶ï¼éåæè¢«æåï¼å¯¹éåèè¨è¿æ¯é»è®¤è¡ä¸ºï¼ã"
#. Tag: para
-#: performance.xml:100
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"Extra-lazy\" collection fetching</emphasis>: individual elements "
"of the collection are accessed from the database as needed. Hibernate tries "
"not to fetch the whole collection into memory unless absolutely needed. It "
"is suitable for large collections."
msgstr ""
-"<emphasis>\"Extra-lazy\" collection fetching,\"Extra-lazy\"éåæå</"
-"emphasis> -对éåç±»ä¸çæ¯ä¸ªå
ç´ èè¨ï¼é½æ¯ç´å°éè¦æ¶æå»è®¿é®æ°æ®åºãé¤éç»å¯¹å¿
"
-"è¦ï¼Hibernateä¸ä¼è¯å¾å»ææ´ä¸ªéå齿åå°å
å鿥ï¼éç¨äºé常大çéåï¼ã"
+"<emphasis>\"Extra-lazy\" collection fetching,\"Extra-lazy\" éåæå</"
+"emphasis>ï¼å¯¹éåç±»ä¸çæ¯ä¸ªå
ç´ èè¨ï¼é½æ¯ç´å°éè¦æ¶æå»è®¿é®æ°æ®åºãé¤éç»å¯¹å¿
"
+"è¦ï¼Hibernate ä¸ä¼è¯å¾å»ææ´ä¸ªéå齿åå°å
å鿥ï¼éç¨äºé常大çéåï¼ã"
#. Tag: para
-#: performance.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Proxy fetching</emphasis>: a single-valued association is fetched "
"when a method other than the identifier getter is invoked upon the "
"associated object."
msgstr ""
-"<emphasis>Proxy fetchingï¼ä»£çæå</emphasis> - 对è¿ååå¼çå
³èèè¨ï¼å½å
¶æ"
-"ä¸ªæ¹æ³è¢«è°ç¨ï¼èé对å
¶å
³é®åè¿è¡getæä½æ¶ææåã"
+"<emphasis>Proxy fetchingï¼ä»£çæå</emphasis>ï¼å¯¹è¿ååå¼çå
³èèè¨ï¼å½å
¶æä¸ª"
+"æ¹æ³è¢«è°ç¨ï¼èé对å
¶å
³é®åè¿è¡ get æä½æ¶ææåã"
#. Tag: para
-#: performance.xml:115
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>\"No-proxy\" fetching</emphasis>: a single-valued association is "
"fetched when the instance variable is accessed. Compared to proxy fetching, "
@@ -159,27 +150,25 @@
"visible to the application. This approach requires buildtime bytecode "
"instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>\"No-proxy\" fetching,é代çæå</emphasis> - 对è¿ååå¼çå
³èè"
+"<emphasis>\"No-proxy\" fetchingï¼é代çæå</emphasis>ï¼å¯¹è¿ååå¼çå
³èè"
"è¨ï¼å½å®ä¾åé被访é®çæ¶åè¿è¡æåãä¸ä¸é¢ç代çæåç¸æ¯ï¼è¿ç§æ¹æ³æ²¡æé£ä¹âå»¶"
-"è¿âå¾å害(å°±ç®åªè®¿é®æ è¯ç¬¦ï¼ä¹ä¼å¯¼è´å
³èæå)使¯æ´å éæï¼å 为对åºç¨ç¨åºæ¥"
-"说ï¼ä¸åçå°proxyãè¿ç§æ¹æ³éè¦å¨ç¼è¯æé´è¿è¡åèç å¢å¼ºæä½ï¼å æ¤å¾å°éè¦ç¨"
+"è¿âå¾å害ï¼å°±ç®åªè®¿é®æ è¯ç¬¦ï¼ä¹ä¼å¯¼è´å
³èæåï¼ä½æ¯æ´å éæï¼å 为对åºç¨ç¨åºæ¥"
+"说ï¼ä¸åçå° proxyãè¿ç§æ¹æ³éè¦å¨ç¼è¯æé´è¿è¡åèç å¢å¼ºæä½ï¼å æ¤å¾å°éè¦ç¨"
"å°ã"
#. Tag: para
-#: performance.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Lazy attribute fetching</emphasis>: an attribute or single valued "
"association is fetched when the instance variable is accessed. This approach "
"requires buildtime bytecode instrumentation and is rarely necessary."
msgstr ""
-"<emphasis>Lazy attribute fetchingï¼å±æ§å»¶è¿å è½½</emphasis> - 坹屿§æè¿ååå¼"
+"<emphasis>Lazy attribute fetchingï¼å±æ§å»¶è¿å è½½</emphasis>ï¼å¯¹å±æ§æè¿ååå¼"
"çå
³èèè¨ï¼å½å
¶å®ä¾åé被访é®çæ¶åè¿è¡æåãéè¦ç¼è¯æåèç 强åï¼å æ¤è¿ä¸"
"æ¹æ³å¾å°æ¯å¿
è¦çã"
#. Tag: para
-#: performance.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We have two orthogonal notions here: <emphasis>when</emphasis> is the "
"association fetched and <emphasis>how</emphasis> is it fetched. It is "
@@ -189,84 +178,60 @@
"class."
msgstr ""
"è¿éæä¸¤ä¸ªæ£äº¤çæ¦å¿µï¼å
³è<emphasis>使¶</emphasis>被æåï¼ä»¥å被<emphasis>å¦"
-"ä½</emphasis>æåï¼ä¼éç¨ä»ä¹æ ·çSQLè¯å¥ï¼ãä¸è¦æ··æ·å®ä»¬ï¼æä»¬ä½¿ç¨<literal>æ"
-"å</literal>æ¥æ¹åæ§è½ãæä»¬ä½¿ç¨<literal>å»¶è¿</literal>æ¥å®ä¹ä¸äºå¥çº¦ï¼å¯¹æç¹"
-"å®ç±»çæä¸ªè±ç®¡çå®ä¾ï¼ç¥éæåªäºæ°æ®æ¯å¯ä»¥ä½¿ç¨çã"
+"ä½</emphasis>æåï¼ä¼éç¨ä»ä¹æ ·ç SQL è¯å¥ï¼ã注æä¸è¦æ··æ·å®ä»¬ãæä»¬ä½¿ç¨"
+"<literal>æå</literal>æ¥æ¹åæ§è½ãæä»¬ä½¿ç¨<literal>å»¶è¿</literal>æ¥å®ä¹ä¸äº"
+"å¥çº¦ï¼å¯¹æç¹å®ç±»çæä¸ªè±ç®¡çå®ä¾ï¼ç¥éæåªäºæ°æ®æ¯å¯ä»¥ä½¿ç¨çã"
#. Tag: title
-#: performance.xml:143
#, no-c-format
msgid "Working with lazy associations"
msgstr "æä½å»¶è¿å è½½çå
³è"
#. Tag: para
-#: performance.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By default, Hibernate3 uses lazy select fetching for collections and lazy "
"proxy fetching for single-valued associations. These defaults make sense for "
"most associations in the majority of applications."
msgstr ""
-"é»è®¤æ
åµä¸ï¼Hibernate 3对éå使ç¨å»¶è¿selectæåï¼å¯¹è¿ååå¼çå
³è使ç¨å»¶è¿ä»£ç"
-"æåã对å 乿¯ææçåºç¨èè¨ï¼å
¶ç»å¤§å¤æ°çå
³èï¼è¿ç§çç¥é½æ¯ææçã"
+"é»è®¤æ
åµä¸ï¼Hibernate 3 对éå使ç¨å»¶è¿ select æåï¼å¯¹è¿ååå¼çå
³è使ç¨å»¶è¿"
+"代çæåã对å 乿¯ææçåºç¨èè¨ï¼å
¶ç»å¤§å¤æ°çå
³èï¼è¿ç§çç¥é½æ¯ææçã"
#. Tag: para
-#: performance.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you set <literal>hibernate.default_batch_fetch_size</literal>, Hibernate "
"will use the batch fetch optimization for lazy fetching. This optimization "
"can also be enabled at a more granular level."
msgstr ""
-"<emphasis>注æ:</emphasis>åè¥ä½ 设置äº<literal>hibernate."
-"default_batch_fetch_size</literal>,Hibernateä¼å¯¹å»¶è¿å è½½éåæ¹éæåä¼åæªæ½"
-"ï¼è¿ç§ä¼åä¹å¯è½ä¼å¨æ´ç»åççº§å«æå¼ï¼ã"
+"åè¥ä½ è®¾ç½®äº <literal>hibernate.default_batch_fetch_size</literal>ï¼"
+"Hibernate ä¼å¯¹å»¶è¿å è½½éåæ¹éæåä¼åæªæ½ï¼è¿ç§ä¼åä¹å¯è½ä¼å¨æ´ç»åççº§å«æ"
+"å¼ï¼ã"
#. Tag: para
-#: performance.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please be aware that access to a lazy association outside of the context of "
"an open Hibernate session will result in an exception. For example:"
msgstr ""
-"ç¶èï¼ä½ å¿
é¡»äºè§£å»¶è¿æå带æ¥çä¸ä¸ªé®é¢ãå¨ä¸ä¸ªæå¼çHibernate sessionä¸ä¸æä¹"
-"å¤è°ç¨å»¶è¿éåä¼å¯¼è´ä¸æ¬¡æå¤ãæ¯å¦ï¼"
+"ç¶èï¼ä½ å¿
é¡»äºè§£å»¶è¿æå带æ¥çä¸ä¸ªé®é¢ãå¨ä¸ä¸ªæå¼ç Hibernate session ä¸ä¸æ"
+"ä¹å¤è°ç¨å»¶è¿éåä¼å¯¼è´ä¸æ¬¡æå¤ãæ¯å¦ï¼ "
-#. Tag: programlisting
-#: performance.xml:164
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[s = sessions.openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-" \n"
-"User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
-" .setString(\"userName\", userName).uniqueResult();\n"
-"Map permissions = u.getPermissions();\n"
-"\n"
-"tx.commit();\n"
-"s.close();\n"
-"\n"
-"Integer accessLevel = (Integer) permissions.get(\"accounts\"); // Error!]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:166
-#, fuzzy, no-c-format
-msgid ""
"Since the permissions collection was not initialized when the "
"<literal>Session</literal> was closed, the collection will not be able to "
"load its state. <emphasis>Hibernate does not support lazy initialization for "
"detached objects</emphasis>. This can be fixed by moving the code that reads "
"from the collection to just before the transaction is committed."
msgstr ""
-"å¨<literal>Session</literal>å
³éåï¼permessionséåå°æ¯æªå®ä¾åçãä¸åå¯ç¨ï¼"
-"å æ¤æ æ³æ£å¸¸è½½å
¥å
¶ç¶æã <emphasis>Hibernate对è±ç®¡å¯¹è±¡ä¸æ¯æå»¶è¿å®ä¾å</"
-"emphasis>. è¿éçä¿®æ¹æ¹æ³æ¯ï¼å°permissionsè¯»åæ°æ®ç代ç ç§»å°tx.commit()ä¹"
-"åã"
+"å¨ <literal>Session</literal> å
³éåï¼permessions éåå°æ¯æªå®ä¾åçãä¸åå¯"
+"ç¨ï¼å æ¤æ æ³æ£å¸¸è½½å
¥å
¶ç¶æã <emphasis>Hibernate 对è±ç®¡å¯¹è±¡ä¸æ¯æå»¶è¿å®ä¾å</"
+"emphasis>ãè¿éçä¿®æ¹æ¹æ³æ¯å° permissions è¯»åæ°æ®ç代ç ç§»å°äºå¡æäº¤ä¹åã"
#. Tag: para
-#: performance.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can use a non-lazy collection or association, by "
"specifying <literal>lazy=\"false\"</literal> for the association mapping. "
@@ -275,14 +240,13 @@
"in your object model, Hibernate will fetch the entire database into memory "
"in every transaction."
msgstr ""
-"餿¤ä¹å¤ï¼éè¿å¯¹å
³èæ å°æå®<literal>lazy=\"false\"</literal>,æä»¬ä¹å¯ä»¥ä½¿ç¨"
-"éå»¶è¿çéåæå
³èã使¯ï¼ 对ç»å¤§é¨åéåæ¥è¯´ï¼æ´æ¨è使ç¨å»¶è¿æ¹å¼æåæ°æ®ãå¦"
-"æå¨ä½ ç对象模åä¸å®ä¹äºå¤ªå¤çéå»¶è¿å
³èï¼Hibernateæç»å ä¹éè¦å¨æ¯ä¸ªäºå¡ä¸è½½"
-"å
¥æ´ä¸ªæ°æ®åºå°å
åä¸ï¼"
+"餿¤ä¹å¤ï¼éè¿å¯¹å
³èæ å°æå® <literal>lazy=\"false\"</literal>ï¼æä»¬ä¹å¯ä»¥ä½¿"
+"ç¨éå»¶è¿çéåæå
³èã使¯ï¼å¯¹ç»å¤§é¨åéåæ¥è¯´ï¼æ´æ¨è使ç¨å»¶è¿æ¹å¼æåæ°æ®ã"
+"妿å¨ä½ ç对象模åä¸å®ä¹äºå¤ªå¤çéå»¶è¿å
³èï¼Hibernate æç»å ä¹éè¦å¨æ¯ä¸ªäºå¡"
+"ä¸è½½å
¥æ´ä¸ªæ°æ®åºå°å
åä¸ã"
#. Tag: para
-#: performance.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"On the other hand, you can use join fetching, which is non-lazy by nature, "
"instead of select fetching in a particular transaction. We will now explain "
@@ -291,45 +255,25 @@
"collections."
msgstr ""
"使¯ï¼å¦ä¸æ¹é¢ï¼å¨ä¸äºç¹æ®çäºå¡ä¸ï¼æä»¬ä¹ç»å¸¸éè¦ä½¿ç¨å°è¿æ¥æåï¼å®æ¬èº«ä¸å°±"
-"æ¯éå»¶è¿çï¼ï¼ä»¥ä»£æ¿æ¥è¯¢æåã ä¸é¢æä»¬å°ä¼å¾å¿«æç½å¦ä½å
·ä½çå®å¶Hibernateä¸"
-"çæåçç¥ãå¨Hibernate3ä¸ï¼å
·ä½éæ©åªç§æåçç¥çæºå¶æ¯åéæ© åå¼å
³èæéå"
-"å
³èç¸ä¸è´çã"
+"æ¯éå»¶è¿çï¼ï¼ä»¥ä»£æ¿æ¥è¯¢æåã ä¸é¢æä»¬å°ä¼å¾å¿«æç½å¦ä½å
·ä½çå®å¶ Hibernate "
+"ä¸çæåçç¥ãå¨ Hibernate3 ä¸ï¼å
·ä½éæ©åªç§æåçç¥çæºå¶æ¯åéæ© åå¼å
³èæ"
+"éåå
³èç¸ä¸è´çã "
#. Tag: title
-#: performance.xml:194
#, no-c-format
msgid "Tuning fetch strategies"
msgstr "è°æ´æåçç¥ï¼Tuning fetch strategiesï¼"
#. Tag: para
-#: performance.xml:196
#, no-c-format
msgid ""
"Select fetching (the default) is extremely vulnerable to N+1 selects "
"problems, so we might want to enable join fetching in the mapping document:"
msgstr ""
-"æ¥è¯¢æåï¼é»è®¤çï¼å¨N+1æ¥è¯¢çæ
åµä¸æ¯æå
¶èå¼±çï¼å æ¤æä»¬å¯è½ä¼è¦æ±å¨æ å°ææ¡£"
-"ä¸å®ä¹ä½¿ç¨è¿æ¥æåï¼"
+"æ¥è¯¢æåï¼é»è®¤çï¼å¨ N+1 æ¥è¯¢çæ
åµä¸æ¯æå
¶èå¼±çï¼å æ¤æä»¬å¯è½ä¼è¦æ±å¨æ å°æ"
+"æ¡£ä¸å®ä¹ä½¿ç¨è¿æ¥æåï¼"
-#. Tag: programlisting
-#: performance.xml:201
-#, no-c-format
-msgid ""
-"<![CDATA[<set name=\"permissions\" \n"
-" fetch=\"join\">\n"
-" <key column=\"userId\"/>\n"
-" <one-to-many class=\"Permission\"/>\n"
-"</set]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:203
-#, no-c-format
-msgid "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:205
#, no-c-format
msgid ""
"The <literal>fetch</literal> strategy defined in the mapping document "
@@ -338,43 +282,38 @@
"卿 å°ææ¡£ä¸å®ä¹ç<literal>æå</literal>çç¥å°ä¼å¯¹ä»¥ä¸å表æ¡ç®äº§çå½±åï¼"
#. Tag: para
-#: performance.xml:211
#, no-c-format
msgid "retrieval via <literal>get()</literal> or <literal>load()</literal>"
-msgstr "éè¿<literal>get()</literal>æ<literal>load()</literal>æ¹æ³å徿°æ®ã"
+msgstr ""
+"éè¿ <literal>get()</literal> æ <literal>load()</literal> æ¹æ³å徿°æ®ã"
#. Tag: para
-#: performance.xml:216
#, no-c-format
msgid "retrieval that happens implicitly when an association is navigated"
msgstr "åªæå¨å
³èä¹é´è¿è¡å¯¼èªæ¶ï¼æä¼éå¼çå徿°æ®ã"
#. Tag: para
-#: performance.xml:221
#, no-c-format
msgid "<literal>Criteria</literal> queries"
msgstr "æ¡ä»¶æ¥è¯¢"
#. Tag: para
-#: performance.xml:226
#, no-c-format
msgid "HQL queries if <literal>subselect</literal> fetching is used"
-msgstr "使ç¨äº<literal>subselect</literal>æåçHQLæ¥è¯¢"
+msgstr "使ç¨äº <literal>subselect</literal> æåç HQL æ¥è¯¢"
#. Tag: para
-#: performance.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Irrespective of the fetching strategy you use, the defined non-lazy graph is "
"guaranteed to be loaded into memory. This might, however, result in several "
"immediate selects being used to execute a particular HQL query."
msgstr ""
"ä¸ç®¡ä½ 使ç¨åªç§æåçç¥ï¼å®ä¹ä¸ºéå»¶è¿çç±»å¾ä¼è¢«ä¿è¯ä¸å®è£
è½½å
¥å
åãæ³¨æè¿å¯è½"
-"æå³çå¨ä¸æ¡HQLæ¥è¯¢åç´§è·çä¸ç³»åçæ¥è¯¢ã"
+"æå³çå¨ä¸æ¡ HQL æ¥è¯¢åç´§è·çä¸ç³»åçæ¥è¯¢ã "
#. Tag: para
-#: performance.xml:238
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually, the mapping document is not used to customize fetching. Instead, we "
"keep the default behavior, and override it for a particular transaction, "
@@ -384,58 +323,43 @@
"<literal>setFetchMode(FetchMode.JOIN)</literal>."
msgstr ""
"é常æ
åµä¸ï¼æä»¬å¹¶ä¸ä½¿ç¨æ å°ææ¡£è¿è¡æåçç¥çå®å¶ãæ´å¤çæ¯ï¼ä¿æå
¶é»è®¤å¼ï¼"
-"ç¶åå¨ç¹å®çäºå¡ä¸ï¼ 使ç¨HQLç<literal>å·¦è¿æ¥æåï¼left join fetchï¼</"
+"ç¶åå¨ç¹å®çäºå¡ä¸ï¼ ä½¿ç¨ HQL ç<literal>å·¦è¿æ¥æåï¼left join fetchï¼</"
"literal> 对å
¶è¿è¡éè½½ãè¿å°éç¥ Hibernateå¨ç¬¬ä¸æ¬¡æ¥è¯¢ä¸ä½¿ç¨å¤é¨å
³èï¼outer "
-"joinï¼ï¼ç´æ¥å¾å°å
¶å
³èæ°æ®ã å¨<literal>æ¡ä»¶æ¥è¯¢</literal> APIä¸ï¼åºè¯¥è°ç¨ "
-"<literal>setFetchMode(FetchMode.JOIN)</literal>è¯å¥ã"
+"joinï¼ï¼ç´æ¥å¾å°å
¶å
³èæ°æ®ãå¨<literal>æ¡ä»¶æ¥è¯¢</literal> API ä¸ï¼åºè¯¥è°ç¨ "
+"<literal>setFetchModeï¼FetchMode.JOINï¼</literal>è¯å¥ã "
#. Tag: para
-#: performance.xml:247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you want to change the fetching strategy used by <literal>get()</literal> "
"or <literal>load()</literal>, you can use a <literal>Criteria</literal> "
"query. For example:"
msgstr ""
-"ä¹è®¸ä½ 忬¢ä»
ä»
éè¿æ¡ä»¶æ¥è¯¢ï¼å°±å¯ä»¥æ¹å<literal>get()</literal> æ "
-"<literal>load()</literal>è¯å¥ä¸çæ°æ®æåçç¥ãä¾å¦ï¼"
+"ä¹è®¸ä½ 忬¢ä»
ä»
éè¿æ¡ä»¶æ¥è¯¢ï¼å°±å¯ä»¥æ¹å <literal>get()</literal> æ "
+"<literal>load()</literal> è¯å¥ä¸çæ°æ®æåçç¥ãä¾å¦ï¼ "
-#. Tag: programlisting
-#: performance.xml:253
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[User user = (User) session.createCriteria(User.class)\n"
-" .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
-" .add( Restrictions.idEq(userId) )\n"
-" .uniqueResult();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:255
-#, fuzzy, no-c-format
-msgid ""
"This is Hibernate's equivalent of what some ORM solutions call a \"fetch plan"
"\"."
msgstr ""
-"ï¼è¿å°±æ¯å
¶ä»ORMè§£å³æ¹æ¡çâæå计å(fetch plan)âå¨Hibernateä¸ççä»·ç©ãï¼"
+"è¿å°±æ¯å
¶ä» ORM è§£å³æ¹æ¡çâæå计åï¼fetch planï¼âå¨ Hibernate ä¸ççä»·ç©ã"
#. Tag: para
-#: performance.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A completely different approach to problems with N+1 selects is to use the "
"second-level cache."
-msgstr "æªç¶ä¸åçä¸ç§é¿å
N+1次æ¥è¯¢çæ¹æ³æ¯ï¼ä½¿ç¨äºçº§ç¼åã"
+msgstr "æªç¶ä¸åçä¸ç§é¿å
N+1 次æ¥è¯¢çæ¹æ³æ¯ï¼ä½¿ç¨äºçº§ç¼åã "
#. Tag: title
-#: performance.xml:267
#, no-c-format
msgid "Single-ended association proxies"
msgstr "å端å
³è代çï¼Single-ended association proxiesï¼"
#. Tag: para
-#: performance.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lazy fetching for collections is implemented using Hibernate's own "
"implementation of persistent collections. However, a different mechanism is "
@@ -444,25 +368,24 @@
"proxies for persistent objects using runtime bytecode enhancement which is "
"accessed via the CGLIB library."
msgstr ""
-"å¨Hinerbateä¸ï¼å¯¹éåçå»¶è¿æåçéç¨äºèªå·±çå®ç°æ¹æ³ã使¯ï¼å¯¹äºå端å
³èçå»¶"
-"è¿æåï¼åéè¦éç¨ å
¶ä»ä¸åçæºå¶ãå端å
³èçç®æ å®ä½å¿
须使ç¨ä»£çï¼Hihernate"
-"å¨è¿è¡æäºè¿å¶çº§ï¼éè¿ä¼å¼çCGLIBåºï¼ï¼ 为æä¹
对象å®ç°äºå»¶è¿è½½å
¥ä»£çã"
+"å¨ Hinerbate ä¸ï¼å¯¹éåçå»¶è¿æåçéç¨äºèªå·±çå®ç°æ¹æ³ã使¯ï¼å¯¹äºå端å
³èç"
+"å»¶è¿æåï¼åéè¦éç¨ å
¶ä»ä¸åçæºå¶ãå端å
³èçç®æ å®ä½å¿
须使ç¨ä»£çï¼"
+"Hihernate å¨è¿è¡æäºè¿å¶çº§ï¼éè¿ä¼å¼ç CGLIB åºï¼ï¼ 为æä¹
对象å®ç°äºå»¶è¿è½½å
¥"
+"代çã "
#. Tag: para
-#: performance.xml:277
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"At startup, Hibernate3 generates proxies by default for all persistent "
"classes and uses them to enable lazy fetching of <literal>many-to-one</"
"literal> and <literal>one-to-one</literal> associations."
msgstr ""
-"é»è®¤çï¼Hibernate3å°ä¼ä¸ºææçæä¹
对象产ç代çï¼å¨å¯å¨é¶æ®µï¼ï¼ç¶å使ç¨ä»ä»¬å®"
+"é»è®¤çï¼Hibernate3 å°ä¼ä¸ºææçæä¹
对象产ç代çï¼å¨å¯å¨é¶æ®µï¼ï¼ç¶å使ç¨ä»ä»¬å®"
"ç° <literal>å¤å¯¹ä¸ï¼many-to-oneï¼</literal>å
³èå<literal>ä¸å¯¹ä¸ï¼one-to-"
-"oneï¼</literal> å
³èçå»¶è¿æåã"
+"oneï¼</literal> å
³èçå»¶è¿æåã "
#. Tag: para
-#: performance.xml:283
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The mapping file may declare an interface to use as the proxy interface for "
"that class, with the <literal>proxy</literal> attribute. By default, "
@@ -470,75 +393,35 @@
"implement a default constructor with at least package visibility. This "
"constructor is recommended for all persistent classes</emphasis>."
msgstr ""
-"卿 å°æä»¶ä¸ï¼å¯ä»¥éè¿è®¾ç½®<literal>proxy</literal>屿§ä¸ºç®æ class声æä¸ä¸ªæ¥å£"
-"ä¾ä»£çæ¥å£ä½¿ç¨ã é»è®¤çï¼Hibernateå°ä¼ä½¿ç¨è¯¥ç±»çä¸ä¸ªåç±»ã <emphasis>注æï¼è¢«"
-"代ççç±»å¿
é¡»å®ç°ä¸ä¸ªè³å°å
å¯è§çé»è®¤æé 彿°ï¼æä»¬å»ºè®®ææçæä¹
ç±»é½åºæ¥æè¿"
-"æ ·çæé 彿°</emphasis>"
+"卿 å°æä»¶ä¸ï¼å¯ä»¥éè¿è®¾ç½® <literal>proxy</literal> 屿§ä¸ºç®æ class 声æä¸ä¸ª"
+"æ¥å£ä¾ä»£çæ¥å£ä½¿ç¨ã é»è®¤çï¼Hibernate å°ä¼ä½¿ç¨è¯¥ç±»çä¸ä¸ªåç±»ã<emphasis>注"
+"æï¼è¢«ä»£ççç±»å¿
é¡»å®ç°ä¸ä¸ªè³å°å
å¯è§çé»è®¤æé 彿°ï¼æä»¬å»ºè®®ææçæä¹
ç±»é½åº"
+"æ¥æè¿æ ·çæé 彿°ã</emphasis>"
#. Tag: para
-#: performance.xml:290
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There are potential problems to note when extending this approach to "
"polymorphic classes.For example:"
-msgstr "å¨å¦æ¤æ¹å¼å®ä¹ä¸ä¸ªå¤æç±»çæ¶åï¼æè®¸å¤å¼å¾æ³¨æçå¸¸è§æ§çé®é¢ï¼ä¾å¦ï¼"
+msgstr "å¨å¦æ¤æ¹å¼å®ä¹ä¸ä¸ªå¤æç±»çæ¶åï¼æè®¸å¤å¼å¾æ³¨æçå¸¸è§æ§çé®é¢ï¼ä¾å¦ï¼ "
-#. Tag: programlisting
-#: performance.xml:294
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:296
#, no-c-format
msgid ""
"Firstly, instances of <literal>Cat</literal> will never be castable to "
"<literal>DomesticCat</literal>, even if the underlying instance is an "
"instance of <literal>DomesticCat</literal>:"
msgstr ""
-"é¦å
ï¼<literal>Cat</literal>å®ä¾æ°¸è¿ä¸å¯ä»¥è¢«å¼ºå¶è½¬æ¢ä¸º<literal>DomesticCat</"
-"literal>, å³ä½¿å®æ¬èº«å°±æ¯<literal>DomesticCat</literal>å®ä¾ã"
+"é¦å
ï¼<literal>Cat</literal> å®ä¾æ°¸è¿ä¸å¯ä»¥è¢«å¼ºå¶è½¬æ¢ä¸º "
+"<literal>DomesticCat</literal>ï¼å³ä½¿å®æ¬èº«å°±æ¯ <literal>DomesticCat</"
+"literal> å®ä¾ã"
-#. Tag: programlisting
-#: performance.xml:302
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
-"proxy (does not hit the db)\n"
-"if ( cat.isDomesticCat() ) { // hit the db to initialize "
-"the proxy\n"
-" DomesticCat dc = (DomesticCat) cat; // Error!\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Secondly, it is possible to break proxy <literal>==</literal>:"
-msgstr "å
¶æ¬¡ï¼ä»£ççâ<literal>==</literal>âå¯è½ä¸åæç«ã"
+msgstr "å
¶æ¬¡ï¼ä»£ççâ<literal>==</literal>âå¯è½ä¸åæç«ã "
-#. Tag: programlisting
-#: performance.xml:308
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
-"instantiate a Cat proxy\n"
-"DomesticCat dc = \n"
-" (DomesticCat) session.load(DomesticCat.class, id); // acquire new "
-"DomesticCat proxy!\n"
-"System.out.println(cat==dc); // false]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:310
#, no-c-format
msgid ""
"However, the situation is not quite as bad as it looks. Even though we now "
@@ -546,27 +429,19 @@
"still be the same object:"
msgstr ""
"è½ç¶å¦æ¤ï¼ä½å®é
æ
åµå¹¶æ²¡æçä¸å»é£ä¹ç³ç³ãè½ç¶æä»¬ç°å¨æä¸¤ä¸ªä¸åçå¼ç¨ï¼åå«"
-"æåè¿ä¸¤ä¸ªä¸åç代çå¯¹è±¡ï¼ ä½å®é
ä¸ï¼å
¶åºå±åºè¯¥æ¯åä¸ä¸ªå®ä¾å¯¹è±¡ï¼"
+"æåè¿ä¸¤ä¸ªä¸åç代ç对象ï¼ä½å®é
ä¸ï¼å
¶åºå±åºè¯¥æ¯åä¸ä¸ªå®ä¾å¯¹è±¡ï¼"
-#. Tag: programlisting
-#: performance.xml:315
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
-"System.out.println( dc.getWeight() ); // 11.0]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:317
-#, fuzzy, no-c-format
-msgid ""
"Third, you cannot use a CGLIB proxy for a <literal>final</literal> class or "
"a class with any <literal>final</literal> methods."
-msgstr "第ä¸ï¼ä½ ä¸è½å¯¹âfinalç±»âæâå
·æfinalæ¹æ³çç±»â使ç¨CGLIB代çã"
+msgstr ""
+"第ä¸ï¼ä½ ä¸è½å¯¹ <literal>final</literal> ç±»æå
·æ <literal>final</literal> æ¹"
+"æ³çç±»ä½¿ç¨ CGLIB 代çã"
#. Tag: para
-#: performance.xml:322
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, if your persistent object acquires any resources upon instantiation "
"(e.g. in initializers or default constructor), then those resources will "
@@ -574,12 +449,11 @@
"persistent class."
msgstr ""
"æåï¼å¦æä½ çæä¹
å对象å¨å®ä¾åæ¶éè¦æäºèµæºï¼ä¾å¦ï¼å¨å®ä¾åæ¹æ³ãé»è®¤æé "
-"æ¹æ³ä¸ï¼ï¼ é£ä¹ä»£ç对象ä¹åæ ·éè¦ä½¿ç¨è¿äºèµæºãå®é
ä¸ï¼ä»£çç±»æ¯æä¹
åç±»çå"
+"æ¹æ³ä¸ï¼ï¼é£ä¹ä»£ç对象ä¹åæ ·éè¦ä½¿ç¨è¿äºèµæºãå®é
ä¸ï¼ä»£çç±»æ¯æä¹
åç±»çå"
"ç±»ã"
#. Tag: para
-#: performance.xml:328
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These problems are all due to fundamental limitations in Java's single "
"inheritance model. To avoid these problems your persistent classes must each "
@@ -589,144 +463,111 @@
"<literal>DomesticCatImpl</literal> implements the interface "
"<literal>DomesticCat</literal>. For example:"
msgstr ""
-"è¿äºé®é¢é½æºäºJavaçåæ ¹ç»§æ¿æ¨¡åç天çéå¶ãå¦æä½ å¸æé¿å
è¿äºé®é¢ï¼é£ä¹ä½ ç"
-"æ¯ä¸ªæä¹
åç±»å¿
é¡»å®ç°ä¸ä¸ªæ¥å£ï¼ 卿¤æ¥å£ä¸å·²ç»å£°æäºå
¶ä¸å¡æ¹æ³ãç¶åï¼ä½ éè¦å¨"
-"æ å°ææ¡£ä¸åæå®è¿äºæ¥å£ãä¾å¦ï¼"
+"è¿äºé®é¢é½æºäº Java çåæ ¹ç»§æ¿æ¨¡åç天çéå¶ãå¦æä½ å¸æé¿å
è¿äºé®é¢ï¼é£ä¹ä½ "
+"çæ¯ä¸ªæä¹
åç±»å¿
é¡»å®ç°ä¸ä¸ªæ¥å£ï¼ 卿¤æ¥å£ä¸å·²ç»å£°æäºå
¶ä¸å¡æ¹æ³ãç¶åï¼ä½ éè¦"
+"卿 å°ææ¡£ä¸åæå®è¿äºæ¥å£ï¼å¦ <literal>CatImpl</literal> å®ç° <literal>Cat</"
+"literal> è <literal>DomesticCatImpl</literal> å®ç° <literal>DomesticCat</"
+"literal> æ¥å£ãä¾å¦ï¼"
-#. Tag: programlisting
-#: performance.xml:336
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
-" ......\n"
-" <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
-" .....\n"
-" </subclass>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:338
-#, fuzzy, no-c-format
-msgid ""
"Then proxies for instances of <literal>Cat</literal> and "
"<literal>DomesticCat</literal> can be returned by <literal>load()</literal> "
"or <literal>iterate()</literal>."
msgstr ""
-"é¦å
ï¼<literal>Cat</literal>å®ä¾æ°¸è¿ä¸å¯ä»¥è¢«å¼ºå¶è½¬æ¢ä¸º<literal>DomesticCat</"
-"literal>, å³ä½¿å®æ¬èº«å°±æ¯<literal>DomesticCat</literal>å®ä¾ã"
+"ç¶åï¼<literal>load()</literal> å <literal>iterate()</literal> æ°¸è¿ä¹ä¸ä¼è¿"
+"å <literal>Cat</literal> å <literal>DomesticCat</literal> å®ä¾ç代çã"
-#. Tag: programlisting
-#: performance.xml:343
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
-"Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
-"name='fritz'\").iterate();\n"
-"Cat fritz = (Cat) iter.next();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:346
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
#. Tag: para
-#: performance.xml:347
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>list()</literal> does not usually return proxies."
-msgstr "æ¡ä»¶æ¥è¯¢"
+msgstr "<literal>list()</literal> é常ä¸è¿å代çã"
#. Tag: para
-#: performance.xml:352
#, no-c-format
msgid ""
"Relationships are also lazily initialized. This means you must declare any "
"properties to be of type <literal>Cat</literal>, not <literal>CatImpl</"
"literal>."
msgstr ""
-"è¿éï¼å¯¹è±¡ä¹é´çå
³ç³»ä¹å°è¢«å»¶è¿è½½å
¥ãè¿å°±æå³çï¼ä½ åºè¯¥å°å±æ§å£°æä¸º"
-"<literal>Cat</literal>ï¼è䏿¯<literal>CatImpl</literal>ã"
+"è¿éï¼å¯¹è±¡ä¹é´çå
³ç³»ä¹å°è¢«å»¶è¿è½½å
¥ãè¿å°±æå³çï¼ä½ åºè¯¥å°å±æ§å£°æä¸º "
+"<literal>Cat</literal>ï¼è䏿¯ <literal>CatImpl</literal>ã"
#. Tag: para
-#: performance.xml:357
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Certain operations do <emphasis>not</emphasis> require proxy initialization:"
-msgstr "使¯ï¼å¨æäºæ¹æ³ä¸æ¯<emphasis>ä¸éè¦</emphasis>使ç¨ä»£ççãä¾å¦ï¼"
+msgstr "æäºæ¹æ³ä¸æ¯<emphasis>ä¸</emphasis>éè¦ä»£çåå§åçï¼"
#. Tag: para
-#: performance.xml:363
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>equals()</literal>: if the persistent class does not override "
"<literal>equals()</literal>"
msgstr ""
-"<literal>equals()</literal>æ¹æ³ï¼å¦ææä¹
类没æéè½½<literal>equals()</"
-"literal>æ¹æ³ã"
+"<literal>equals()</literal> æ¹æ³ï¼å¦ææä¹
类没æéè½½ <literal>equals()</"
+"literal> æ¹æ³ã"
#. Tag: para
-#: performance.xml:369
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>hashCode()</literal>: if the persistent class does not override "
"<literal>hashCode()</literal>"
msgstr ""
-"<literal>hashCode()</literal>æ¹æ³ï¼å¦ææä¹
类没æéè½½<literal>hashCode()</"
-"literal>æ¹æ³ã"
+"<literal>hashCode()</literal>ï¼å¦ææä¹
类没æéè½½ <literal>hashCode()</"
+"literal> æ¹æ³ã"
#. Tag: para
-#: performance.xml:375
#, no-c-format
msgid "The identifier getter method"
-msgstr "æ å¿ç¬¦çgetteræ¹æ³ã"
+msgstr "æ å¿ç¬¦ç getter æ¹æ³ã"
#. Tag: para
-#: performance.xml:381
#, no-c-format
msgid ""
"Hibernate will detect persistent classes that override <literal>equals()</"
"literal> or <literal>hashCode()</literal>."
msgstr ""
-"Hibernateå°ä¼è¯å«åºé£äºéè½½äº<literal>equals()</literal>ãæ<literal>hashCode"
-"()</literal>æ¹æ³çæä¹
åç±»ã"
+"Hibernate å°ä¼è¯å«åºé£äºéè½½äº <literal>equals()</literal>ãæ "
+"<literal>hashCode()</literal> æ¹æ³çæä¹
åç±»ã"
#. Tag: para
-#: performance.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By choosing <literal>lazy=\"no-proxy\"</literal> instead of the default "
"<literal>lazy=\"proxy\"</literal>, you can avoid problems associated with "
"typecasting. However, buildtime bytecode instrumentation is required, and "
"all operations will result in immediate proxy initialization."
msgstr ""
-"è¥éæ©<literal>lazy=\"no-proxy\"</literal>èéé»è®¤ç<literal>lazy=\"proxy\"</"
-"literal>ï¼æä»¬å¯ä»¥é¿å
ç±»å转æ¢å¸¦æ¥çé®é¢ãç¶èï¼è¿æ ·æä»¬å°±éè¦ç¼è¯æåèç å¢"
-"强ï¼å¹¶ä¸ææçæä½é½ä¼å¯¼è´ç«å»è¿è¡ä»£çåå§åã"
+"è¥éæ© <literal>lazy=\"no-proxy\"</literal> èéé»è®¤ç <literal>lazy=\"proxy"
+"\"</literal>ï¼æä»¬å¯ä»¥é¿å
ç±»å转æ¢å¸¦æ¥çé®é¢ãç¶èï¼è¿æ ·æä»¬å°±éè¦ç¼è¯æåè"
+"ç å¢å¼ºï¼å¹¶ä¸ææçæä½é½ä¼å¯¼è´ç«å»è¿è¡ä»£çåå§åã "
#. Tag: title
-#: performance.xml:396
#, no-c-format
msgid "Initializing collections and proxies"
msgstr "å®ä¾åéåå代çï¼Initializing collections and proxiesï¼"
#. Tag: para
-#: performance.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>LazyInitializationException</literal> will be thrown by Hibernate "
"if an uninitialized collection or proxy is accessed outside of the scope of "
"the <literal>Session</literal>, i.e., when the entity owning the collection "
"or having the reference to the proxy is in the detached state."
msgstr ""
-"å¨<literal>Session</literal>èå´ä¹å¤è®¿é®æªåå§åçéåæä»£çï¼Hibernateå°ä¼æ"
-"åº<literal>LazyInitializationException</literal>å¼å¸¸ã ä¹å°±æ¯è¯´ï¼å¨åç¦»ç¶æ"
-"ä¸ï¼è®¿é®ä¸ä¸ªå®ä½ææ¥æçéåï¼æè
访é®å
¶æå代çç屿§æ¶ï¼ä¼å¼åæ¤å¼å¸¸ã"
+"å¨ <literal>Session</literal> èå´ä¹å¤è®¿é®æªåå§åçéåæä»£çï¼Hibernate å°"
+"ä¼æåº <literal>LazyInitializationException</literal> å¼å¸¸ãä¹å°±æ¯è¯´ï¼å¨å离"
+"ç¶æä¸ï¼è®¿é®ä¸ä¸ªå®ä½ææ¥æçéåï¼æè
访é®å
¶æå代çç屿§æ¶ï¼ä¼å¼åæ¤å¼å¸¸ã "
#. Tag: para
-#: performance.xml:404
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes a proxy or collection needs to be initialized before closing the "
"<literal>Session</literal>. You can force initialization by calling "
@@ -734,14 +575,13 @@
"literal>, for example. However, this can be confusing to readers of the code "
"and it is not convenient for generic code."
msgstr ""
-"ææ¶åæä»¬éè¦ä¿è¯æä¸ªä»£çæè
éåå¨Sessionå
³éå就已ç»è¢«åå§åäºã å½ç¶ï¼æ"
-"们å¯ä»¥éè¿å¼ºè¡è°ç¨<literal>cat.getSex()</literal>æè
<literal>cat.getKittens"
-"().size()</literal>ä¹ç±»çæ¹æ³æ¥ç¡®ä¿è¿ä¸ç¹ã 使¯è¿æ ·çç¨åºä¼é æè¯»è
ççæï¼"
-"ä¹ä¸ç¬¦åé常ç代ç è§èã"
+"ææ¶åæä»¬éè¦ä¿è¯æä¸ªä»£çæè
éåå¨ Session å
³éå就已ç»è¢«åå§åäºãå½ç¶ï¼æ"
+"们å¯ä»¥éè¿å¼ºè¡è°ç¨ <literal>cat.getSex()</literal> æè
<literal>cat."
+"getKittens().size()</literal> ä¹ç±»çæ¹æ³æ¥ç¡®ä¿è¿ä¸ç¹ã 使¯è¿æ ·çç¨åºä¼é æè¯»"
+"è
ççæï¼ä¹ä¸ç¬¦åé常ç代ç è§èã "
#. Tag: para
-#: performance.xml:411
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The static methods <literal>Hibernate.initialize()</literal> and "
"<literal>Hibernate.isInitialized()</literal>, provide the application with a "
@@ -751,15 +591,14 @@
"literal> is still open. <literal>Hibernate.initialize( cat.getKittens() )</"
"literal> has a similar effect for the collection of kittens."
msgstr ""
-"éææ¹æ³<literal>Hibernate.initialized()</literal> ä¸ºä½ çåºç¨ç¨åºæä¾äºä¸ä¸ªä¾¿"
-"æ·çé徿¥å»¶è¿å è½½éåæä»£çã åªè¦å®çSessionå¤äºopenç¶æï¼"
-"<literal>Hibernate.initialize(cat)</literal> å°ä¼ä¸ºcat强å¶å¯¹ä»£çå®ä¾åã å"
-"æ ·ï¼<literal>Hibernate.initialize( cat.getKittens() )</literal> 对kittensçé"
-"åå
·æåæ ·çåè½ã"
+"éææ¹æ³ <literal>Hibernate.initialized()</literal> ä¸ºä½ çåºç¨ç¨åºæä¾äºä¸ä¸ª"
+"便æ·çé徿¥å»¶è¿å è½½éåæä»£çã åªè¦å®ç Session å¤äº open ç¶æï¼"
+"<literal>Hibernate.initialize(cat)</literal> å°ä¼ä¸º cat 强å¶å¯¹ä»£çå®ä¾åãå"
+"æ ·ï¼<literal>Hibernate.initialize(cat.getKittens())</literal> 对 kittens çé"
+"åå
·æåæ ·çåè½ã "
#. Tag: para
-#: performance.xml:420
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Another option is to keep the <literal>Session</literal> open until all "
"required collections and proxies have been loaded. In some application "
@@ -769,15 +608,14 @@
"<literal>Session</literal> is open when a collection is initialized. There "
"are two basic ways to deal with this issue:"
msgstr ""
-"è¿æå¦å¤ä¸ç§éæ©ï¼å°±æ¯ä¿æ<literal>Session</literal>ä¸ç´å¤äºopenç¶æï¼ç´å°æ"
-"æéè¦çéåæä»£çé½è¢«è½½å
¥ã 卿äºåºç¨æ¶æä¸ï¼ç¹å«æ¯å¯¹äºé£äºä½¿ç¨Hibernateè¿"
-"è¡æ°æ®è®¿é®ç代ç ï¼ä»¥åé£äºå¨ä¸ååºç¨å±åä¸åç©çè¿ç¨ä¸ä½¿ç¨Hibernateç代ç ã "
-"å¨éåå®ä¾åæ¶ï¼å¦ä½ä¿è¯<literal>Session</literal>å¤äºopenç¶æç»å¸¸ä¼æ¯ä¸ä¸ªé®"
-"é¢ãæä¸¤ç§æ¹æ³å¯ä»¥è§£å³æ¤é®é¢ï¼"
+"è¿æå¦å¤ä¸ç§éæ©ï¼å°±æ¯ä¿æ <literal>Session</literal> ä¸ç´å¤äº open ç¶æï¼ç´"
+"å°ææéè¦çéåæä»£çé½è¢«è½½å
¥ã 卿äºåºç¨æ¶æä¸ï¼ç¹å«æ¯å¯¹äºé£äºä½¿ç¨ "
+"Hibernate è¿è¡æ°æ®è®¿é®ç代ç ï¼ä»¥åé£äºå¨ä¸ååºç¨å±åä¸åç©çè¿ç¨ä¸ä½¿ç¨ "
+"Hibernate ç代ç ã å¨éåå®ä¾åæ¶ï¼å¦ä½ä¿è¯ <literal>Session</literal> å¤äº "
+"open ç¶æç»å¸¸ä¼æ¯ä¸ä¸ªé®é¢ãæä¸¤ç§æ¹æ³å¯ä»¥è§£å³æ¤é®é¢ï¼ "
#. Tag: para
-#: performance.xml:431
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In a web-based application, a servlet filter can be used to close the "
"<literal>Session</literal> only at the end of a user request, once the "
@@ -789,16 +627,16 @@
"rendering of the view. See the Hibernate Wiki for examples of this \"Open "
"Session in View\" pattern."
msgstr ""
-"å¨ä¸ä¸ªåºäºWebçåºç¨ä¸ï¼å¯ä»¥å©ç¨servletè¿æ»¤å¨ï¼filterï¼ï¼å¨ç¨æ·è¯·æ±ï¼requestï¼"
-"ç»æã页é¢çæ ç»ææ¶å
³é<literal>Session</literal>ï¼è¿é使ç¨äº<emphasis>å¨å±"
-"示å±ä¿ææå¼Session模å¼ï¼Open Session in Viewï¼</emphasis>ï¼ï¼ å½ç¶ï¼è¿å°ä¾èµ"
-"äºåºç¨æ¡æ¶ä¸å¼å¸¸éè¦è¢«æ£ç¡®çå¤çãå¨è¿åçé¢ç»ç¨æ·ä¹åï¼ä¹è³å¨çæçé¢è¿ç¨ä¸"
-"åçå¼å¸¸çæ
åµä¸ï¼ æ£ç¡®å
³é<literal>Session</literal>åç»æäºå¡å°æ¯é常éè¦"
-"çï¼ è¯·åè§Hibernate wikiä¸ç\"Open Session in View\"模å¼ï¼ä½ å¯ä»¥æ¾å°ç¤ºä¾ã"
+"å¨ä¸ä¸ªåºäº Web çåºç¨ä¸ï¼å¯ä»¥å©ç¨ servlet è¿æ»¤å¨ï¼filterï¼ï¼å¨ç¨æ·è¯·æ±"
+"ï¼requestï¼ç»æã页é¢çæ ç»ææ¶å
³é <literal>Session</literal>ï¼è¿é使ç¨äº"
+"<emphasis>å¨å±ç¤ºå±ä¿ææå¼ Session 模å¼ï¼Open Session in Viewï¼</"
+"emphasis>ï¼ï¼å½ç¶ï¼è¿å°ä¾èµäºåºç¨æ¡æ¶ä¸å¼å¸¸éè¦è¢«æ£ç¡®çå¤çãå¨è¿åçé¢ç»ç¨æ·"
+"ä¹åï¼ä¹è³å¨çæçé¢è¿ç¨ä¸åçå¼å¸¸çæ
åµä¸ï¼æ£ç¡®å
³é <literal>Session</"
+"literal> åç»æäºå¡å°æ¯é常éè¦çï¼ è¯·åè§ Hibernate wiki ä¸ç \"Open "
+"Session in View\" 模å¼ï¼ä½ å¯ä»¥æ¾å°ç¤ºä¾ã "
#. Tag: para
-#: performance.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an application with a separate business tier, the business logic must "
"\"prepare\" all collections that the web tier needs before returning. This "
@@ -812,18 +650,17 @@
"literal>. This is usually easier if you adopt the <emphasis>Command</"
"emphasis> pattern instead of a <emphasis>Session Facade</emphasis>."
msgstr ""
-"å¨ä¸ä¸ªæ¥æåç¬ä¸å¡å±çåºç¨ä¸ï¼ä¸å¡å±å¿
é¡»å¨è¿åä¹åï¼ä¸ºwebå±âåå¤â好å
¶æéçæ°"
-"æ®éåãè¿å°±æå³ç ä¸å¡å±åºè¯¥è½½å
¥ææè¡¨ç°å±/web屿éçæ°æ®ï¼å¹¶å°è¿äºå·²å®ä¾å"
-"宿¯çæ°æ®è¿åãé常ï¼åºç¨ç¨åºåºè¯¥ 为web屿éçæ¯ä¸ªéåè°ç¨"
-"<literal>Hibernate.initialize()</literal>ï¼è¿ä¸ªè°ç¨å¿
é¡»åçå±sessionå
³éä¹"
-"åï¼ï¼ æè
使ç¨å¸¦æ<literal>FETCH</literal>ä»å¥ï¼æ<literal>FetchMode.JOIN</"
-"literal>çHibernateæ¥è¯¢ï¼ äºå
å徿æçæ°æ®éåãå¦æä½ å¨åºç¨ä¸ä½¿ç¨äº"
-"<emphasis>Command</emphasis>模å¼ï¼ä»£æ¿<emphasis>Session Facade</emphasis> ï¼ "
-"é£ä¹è¿é¡¹ä»»å¡å°ä¼åå¾ç®åçå¤ã"
+"å¨ä¸ä¸ªæ¥æåç¬ä¸å¡å±çåºç¨ä¸ï¼ä¸å¡å±å¿
é¡»å¨è¿åä¹åï¼ä¸º web å±âåå¤â好å
¶æéç"
+"æ°æ®éåãè¿å°±æå³ç ä¸å¡å±åºè¯¥è½½å
¥ææè¡¨ç°å±/web 屿éçæ°æ®ï¼å¹¶å°è¿äºå·²å®"
+"ä¾å宿¯çæ°æ®è¿åãé常ï¼åºç¨ç¨åºåºè¯¥ä¸º web 屿éçæ¯ä¸ªéåè°ç¨ "
+"<literal>Hibernate.initialize()</literal>ï¼è¿ä¸ªè°ç¨å¿
é¡»åçå± session å
³éä¹"
+"åï¼ï¼æè
使ç¨å¸¦æ <literal>FETCH</literal> ä»å¥ï¼æ <literal>FetchMode."
+"JOIN</literal> ç Hibernate æ¥è¯¢ï¼äºå
å徿æçæ°æ®éåãå¦æä½ å¨åºç¨ä¸ä½¿ç¨"
+"äº <emphasis>Command</emphasis> 模å¼ï¼ä»£æ¿ <emphasis>Session Facade</"
+"emphasis>ï¼é£ä¹è¿é¡¹ä»»å¡å°ä¼åå¾ç®åçå¤ã "
#. Tag: para
-#: performance.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also attach a previously loaded object to a new <literal>Session</"
"literal> with <literal>merge()</literal> or <literal>lock()</literal> before "
@@ -831,79 +668,57 @@
"and certainly <emphasis>should</emphasis> not, do this automatically since "
"it would introduce impromptu transaction semantics."
msgstr ""
-"ä½ ä¹å¯ä»¥éè¿<literal>merge()</literal>æ<literal>lock()</literal>æ¹æ³ï¼å¨è®¿é®"
-"æªå®ä¾åçéåï¼æä»£çï¼ä¹åï¼ ä¸ºå
åè½½å
¥ç对象ç»å®ä¸ä¸ªæ°ç<literal>Session</"
-"literal>ã æ¾ç¶ï¼Hibernateå°ä¸ä¼ï¼ä¹ä¸<emphasis>åºè¯¥</emphasis>èªå¨å®æè¿äºä»»"
-"å¡ï¼å 为è¿å°å¼å
¥ä¸ä¸ªç¹æ®çäºå¡è¯ä¹ã"
+"ä½ ä¹å¯ä»¥éè¿ <literal>merge()</literal> æ <literal>lock()</literal> æ¹æ³ï¼å¨"
+"è®¿é®æªå®ä¾åçéåï¼æä»£çï¼ä¹åï¼ä¸ºå
åè½½å
¥ç对象ç»å®ä¸ä¸ªæ°ç "
+"<literal>Session</literal>ãæ¾ç¶ï¼Hibernate å°ä¸ä¼ï¼ä¹ä¸<emphasis>åºè¯¥</"
+"emphasis>èªå¨å®æè¿äºä»»å¡ï¼å 为è¿å°å¼å
¥ä¸ä¸ªç¹æ®çäºå¡è¯ä¹ã "
#. Tag: para
-#: performance.xml:469
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes you do not want to initialize a large collection, but still need "
"some information about it, like its size, for example, or a subset of the "
"data."
msgstr ""
"ææ¶åï¼ä½ å¹¶ä¸éè¦å®å
¨å®ä¾åæ´ä¸ªå¤§çéåï¼ä»
éè¦äºè§£å®çé¨åä¿¡æ¯ï¼ä¾å¦å
¶å¤§"
-"å°ï¼ãæè
éåçé¨åå
容ã"
+"å°ï¼ãæè
éåçé¨åå
容ã "
#. Tag: para
-#: performance.xml:474
#, no-c-format
msgid ""
"You can use a collection filter to get the size of a collection without "
"initializing it:"
msgstr "ä½ å¯ä»¥ä½¿ç¨éåè¿æ»¤å¨å¾å°å
¶éåç大å°ï¼èä¸å¿
å®ä¾åæ´ä¸ªéåï¼"
-#. Tag: programlisting
-#: performance.xml:478
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" ).list"
-"().get(0) ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:480
#, no-c-format
msgid ""
"The <literal>createFilter()</literal> method is also used to efficiently "
"retrieve subsets of a collection without needing to initialize the whole "
"collection:"
msgstr ""
-"è¿éç<literal>createFilter()</literal>æ¹æ³ä¹å¯ä»¥è¢«ç¨æ¥ææçæåéåçé¨åå
"
-"容ï¼èæ éå®ä¾åæ´ä¸ªéåï¼"
+"è¿éç <literal>createFilter()</literal> æ¹æ³ä¹å¯ä»¥è¢«ç¨æ¥ææçæåéåçé¨å"
+"å
容ï¼èæ éå®ä¾åæ´ä¸ªéåï¼"
-#. Tag: programlisting
-#: performance.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
-"setMaxResults(10).list();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:490
#, no-c-format
msgid "Using batch fetching"
msgstr "ä½¿ç¨æ¹éæåï¼Using batch fetchingï¼"
#. Tag: para
-#: performance.xml:492
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Using batch fetching, Hibernate can load several uninitialized proxies if "
"one proxy is accessed. Batch fetching is an optimization of the lazy select "
"fetching strategy. There are two ways you can configure batch fetching: on "
"the class level and the collection level."
msgstr ""
-"Hibernateå¯ä»¥å
åææçä½¿ç¨æ¹éæåï¼ä¹å°±æ¯è¯´ï¼å¦æä»
ä¸ä¸ªè®¿é®ä»£çï¼æéåï¼ï¼"
-"é£ä¹Hibernateå°ä¸è½½å
¥å
¶ä»æªå®ä¾åç代çã æ¹éæåæ¯å»¶è¿æ¥è¯¢æåçä¼åæ¹æ¡ï¼"
-"ä½ å¯ä»¥å¨ä¸¤ç§æ¹éæåæ¹æ¡ä¹é´è¿è¡éæ©ï¼å¨ç±»çº§å«åéå级å«ã"
+"Hibernate å¯ä»¥å
åææçä½¿ç¨æ¹éæåï¼ä¹å°±æ¯è¯´ï¼å¦æä»
ä¸ä¸ªè®¿é®ä»£çï¼æé"
+"åï¼ï¼é£ä¹ Hibernate å°ä¸è½½å
¥å
¶ä»æªå®ä¾åç代çãæ¹éæåæ¯å»¶è¿æ¥è¯¢æåçä¼å"
+"æ¹æ¡ï¼ä½ å¯ä»¥å¨ä¸¤ç§æ¹éæåæ¹æ¡ä¹é´è¿è¡éæ©ï¼å¨ç±»çº§å«åéå级å«ã "
#. Tag: para
-#: performance.xml:498
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching for classes/entities is easier to understand. Consider the "
"following example: at runtime you have 25 <literal>Cat</literal> instances "
@@ -916,32 +731,24 @@
"can tune this behavior by specifying a <literal>batch-size</literal> in the "
"mapping of <literal>Person</literal>:"
msgstr ""
-"ç±»/å®ä½çº§å«çæ¹éæåå¾å®¹æçè§£ãåè®¾ä½ å¨è¿è¡æ¶å°éè¦é¢å¯¹ä¸é¢çé®é¢ï¼ä½ å¨ä¸ä¸ª"
-"<literal>Session</literal>ä¸è½½å
¥äº25个 <literal>Cat</literal>å®ä¾ï¼æ¯ä¸ª"
-"<literal>Cat</literal>å®ä¾é½æ¥æä¸ä¸ªå¼ç¨æå<literal>owner</literal>ï¼ å
¶æå"
-"<literal>Person</literal>ï¼è<literal>Person</literal>ç±»æ¯ä»£çï¼åæ¶"
-"<literal>lazy=\"true\"</literal>ã å¦æä½ å¿
é¡»éåæ´ä¸ªcatséåï¼å¯¹æ¯ä¸ªå
ç´ è°ç¨"
-"<literal>getOwner()</literal>æ¹æ³ï¼Hibernateå°ä¼é»è®¤çæ§è¡25次"
-"<literal>SELECT</literal>æ¥è¯¢ï¼ å¾å°å
¶ownerç代ç对象ãè¿æ¶ï¼ä½ å¯ä»¥éè¿å¨æ å°"
-"æä»¶ç<literal>Person</literal>屿§ï¼æ¾å¼å£°æ<literal>batch-size</literal>ï¼"
-"æ¹åå
¶è¡ä¸ºï¼"
+"ç±»/å®ä½çº§å«çæ¹éæåå¾å®¹æçè§£ãåè®¾ä½ å¨è¿è¡æ¶å°éè¦é¢å¯¹ä¸é¢çé®é¢ï¼ä½ å¨ä¸"
+"个 <literal>Session</literal> ä¸è½½å
¥äº 25 个 <literal>Cat</literal> å®ä¾ï¼æ¯"
+"个 <literal>Cat</literal> å®ä¾é½æ¥æä¸ä¸ªå¼ç¨æå <literal>owner</literal>ï¼å
¶"
+"æå <literal>Person</literal>ï¼è <literal>Person</literal> ç±»æ¯ä»£çï¼åæ¶ "
+"<literal>lazy=\"true\"</literal>ãå¦æä½ å¿
é¡»éåæ´ä¸ª cats éåï¼å¯¹æ¯ä¸ªå
ç´ è°"
+"ç¨ <literal>getOwner()</literal> æ¹æ³ï¼Hibernate å°ä¼é»è®¤çæ§è¡ 25 次 "
+"<literal>SELECT</literal> æ¥è¯¢ï¼ å¾å°å
¶ owner ç代ç对象ãè¿æ¶ï¼ä½ å¯ä»¥éè¿å¨"
+"æ å°æä»¶ç <literal>Person</literal> 屿§ï¼æ¾å¼å£°æ <literal>batch-size</"
+"literal>ï¼æ¹åå
¶è¡ä¸ºï¼ "
-#. Tag: programlisting
-#: performance.xml:508
-#, no-c-format
-msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will now execute only three queries: the pattern is 10, 10, 5."
-msgstr "éä¹ï¼Hibernateå°åªéè¦æ§è¡ä¸æ¬¡æ¥è¯¢ï¼åå«ä¸º10ã10ã 5ã"
+msgstr "éä¹ï¼Hibernate å°åªéè¦æ§è¡ä¸æ¬¡æ¥è¯¢ï¼åå«ä¸º 10ã10ã 5ã "
#. Tag: para
-#: performance.xml:514
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also enable batch fetching of collections. For example, if each "
"<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, "
@@ -951,26 +758,15 @@
"fetching for the <literal>cats</literal> collection in the mapping of "
"<literal>Person</literal>, Hibernate can pre-fetch collections:"
msgstr ""
-"ä½ ä¹å¯ä»¥å¨éå级å«å®ä¹æ¹éæåãä¾å¦ï¼å¦ææ¯ä¸ª<literal>Person</literal>齿¥æ"
-"ä¸ä¸ªå»¶è¿è½½å
¥ç<literal>Cats</literal>éåï¼ ç°å¨ï¼<literal>Sesssion</literal>"
-"ä¸è½½å
¥äº10个person对象ï¼éåpersonéåå°ä¼å¼èµ·10次<literal>SELECT</literal>æ¥"
-"è¯¢ï¼ æ¯æ¬¡æ¥è¯¢é½ä¼è°ç¨<literal>getCats()</literal>æ¹æ³ãå¦æä½ å¨"
-"<literal>Person</literal>çæ å°å®ä¹é¨åï¼å
许对<literal>cats</literal>æ¹éæ"
-"å, é£ä¹ï¼Hibernateå°å¯ä»¥é¢å
æåæ´ä¸ªéåã请çä¾åï¼"
+"ä½ ä¹å¯ä»¥å¨éå级å«å®ä¹æ¹éæåãä¾å¦ï¼å¦ææ¯ä¸ª <literal>Person</literal> 齿¥"
+"æä¸ä¸ªå»¶è¿è½½å
¥ç <literal>Cats</literal> éåï¼ ç°å¨ï¼<literal>Sesssion</"
+"literal> ä¸è½½å
¥äº 10 个 person 对象ï¼éå person éåå°ä¼å¼èµ· 10 次 "
+"<literal>SELECT</literal> æ¥è¯¢ï¼æ¯æ¬¡æ¥è¯¢é½ä¼è°ç¨ <literal>getCats()</"
+"literal> æ¹æ³ãå¦æä½ å¨ <literal>Person</literal> çæ å°å®ä¹é¨åï¼å
许对 "
+"<literal>cats</literal> æ¹éæåï¼é£ä¹ï¼Hibernate å°å¯ä»¥é¢å
æåæ´ä¸ªéåã请"
+"çä¾åï¼ "
-#. Tag: programlisting
-#: performance.xml:523
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <set name=\"cats\" batch-size=\"3\">\n"
-" ...\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:525
#, no-c-format
msgid ""
"With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 "
@@ -978,14 +774,13 @@
"attribute depends on the expected number of uninitialized collections in a "
"particular <literal>Session</literal>."
msgstr ""
-"妿æ´ä¸ªç<literal>batch-size</literal>æ¯3ï¼ç¬è¯¯ï¼ï¼ï¼é£ä¹Hibernateå°ä¼å忬¡"
-"æ§è¡<literal>SELECT</literal>æ¥è¯¢ï¼ æç
§3ã3ã3ã1ç大å°åå«è½½å
¥æ°æ®ãè¿éç"
-"æ¯æ¬¡è½½å
¥çæ°æ®éè¿å
·ä½ä¾èµäºå½å<literal>Session</literal>䏿ªå®ä¾åéåç个"
-"æ°ã"
+"妿æ´ä¸ªç <literal>batch-size</literal> æ¯ 3ï¼é£ä¹ Hibernate å°ä¼å忬¡æ§è¡ "
+"<literal>SELECT</literal> æ¥è¯¢ï¼ æç
§ 3ã3ã3ã1 ç大å°åå«è½½å
¥æ°æ®ãè¿éçæ¯"
+"次载å
¥çæ°æ®éè¿å
·ä½ä¾èµäºå½å <literal>Session</literal> 䏿ªå®ä¾åéåç个"
+"æ°ã "
#. Tag: para
-#: performance.xml:531
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Batch fetching of collections is particularly useful if you have a nested "
"tree of items, i.e. the typical bill-of-materials pattern. However, a "
@@ -993,37 +788,91 @@
"might be a better option for read-mostly trees."
msgstr ""
"å¦æä½ çæ¨¡å䏿åµå¥çæ ç¶ç»æï¼ä¾å¦å
¸åçå¸åï¼åæç»æï¼bill-of-materials "
-"patternï¼ï¼éåçæ¹éæåæ¯é常æç¨çã ï¼å°½ç®¡å¨æ´å¤æ
åµä¸å¯¹æ è¿è¡è¯»åæ¶ï¼"
-"<emphasis>åµå¥éåï¼nested setï¼</emphasis>æ<emphasis>åæè·¯å¾(materialized "
-"path)</emphasis>ï¼ÃÃï¼ æ¯æ´å¥½çè§£å³æ¹æ³ãï¼"
+"patternï¼ï¼éåçæ¹éæåæ¯é常æç¨çãï¼å°½ç®¡å¨æ´å¤æ
åµä¸å¯¹æ è¿è¡è¯»åæ¶ï¼"
+"<emphasis>åµå¥éåï¼nested setï¼</emphasis>æ<emphasis>åæè·¯å¾"
+"ï¼materialized pathï¼</emphasis>å¯è½æ¯æ´å¥½çè§£å³æ¹æ³ãï¼"
#. Tag: title
-#: performance.xml:540
#, no-c-format
msgid "Using subselect fetching"
msgstr "使ç¨åæ¥è¯¢æåï¼Using subselect fetchingï¼"
#. Tag: para
-#: performance.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If one lazy collection or single-valued proxy has to be fetched, Hibernate "
"will load all of them, re-running the original query in a subselect. This "
"works in the same way as batch-fetching but without the piecemeal loading."
msgstr ""
-"åè¥ä¸ä¸ªå»¶è¿éåæåå¼ä»£çéè¦æåï¼Hibernateä¼ä½¿ç¨ä¸ä¸ªsubselectéæ°è¿è¡åæ¥"
-"çæ¥è¯¢ï¼ä¸æ¬¡æ§è¯»å
¥ææçå®ä¾ãè¿åæ¹éæåçå®ç°æ¹æ³æ¯ä¸æ ·çï¼ä¸ä¼æç ´ç¢çå "
-"è½½ã"
+"åè¥ä¸ä¸ªå»¶è¿éåæåå¼ä»£çéè¦æåï¼Hibernate ä¼ä½¿ç¨ä¸ä¸ª subselect éæ°è¿è¡å"
+"æ¥çæ¥è¯¢ï¼ä¸æ¬¡æ§è¯»å
¥ææçå®ä¾ãè¿åæ¹éæåçå®ç°æ¹æ³æ¯ä¸æ ·çï¼ä¸ä¼æç ´ç¢ç"
+"å è½½ã "
#. Tag: title
-#: performance.xml:553
+#, fuzzy, no-c-format
+msgid "Fetch profiles"
+msgstr "æåçç¥ï¼Fetching strategiesï¼"
+
+#. Tag: para
#, no-c-format
+msgid ""
+"Another way to affect the fetching strategy for loading associated objects "
+"is through something called a fetch profile, which is a named configuration "
+"associated with the <interfacename>org.hibernate.SessionFactory</"
+"interfacename> but enabled, by name, on the <interfacename>org.hibernate."
+"Session</interfacename>. Once enabled on a <interfacename>org.hibernate."
+"Session</interfacename>, the fetch profile wull be in affect for that "
+"<interfacename>org.hibernate.Session</interfacename> until it is explicitly "
+"disabled."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"So what does that mean? Well lets explain that by way of an example. Say we "
+"have the following mappings:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now normally when you get a reference to a particular customer, that "
+"customer's set of orders will be lazy meaning we will not yet have loaded "
+"those orders from the database. Normally this is a good thing. Now lets say "
+"that you have a certain use case where it is more efficient to load the "
+"customer and their orders together. One way certainly is to use \"dynamic "
+"fetching\" strategies via an HQL or criteria queries. But another option is "
+"to use a fetch profile to achieve that. Just add the following to your "
+"mapping:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "or even:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Now the following code will actually load both the customer <emphasis>and "
+"their orders</emphasis>:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"Currently only join style fetch profiles are supported, but they plan is to "
+"support additional styles. See <ulink url=\"http://opensource.atlassian.com/"
+"projects/hibernate/browse/HHH-3414\">HHH-3414</ulink> for details."
+msgstr ""
+
+#. Tag: title
+#, no-c-format
msgid "Using lazy property fetching"
msgstr "使ç¨å»¶è¿å±æ§æåï¼Using lazy property fetchingï¼"
#. Tag: para
-#: performance.xml:555
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 supports the lazy fetching of individual properties. This "
"optimization technique is also known as <emphasis>fetch groups</emphasis>. "
@@ -1033,106 +882,63 @@
"when legacy tables have hundreds of columns and the data model cannot be "
"improved."
msgstr ""
-"Hibernate3对åç¬ç屿§æ¯æå»¶è¿æåï¼è¿é¡¹ä¼åææ¯ä¹è¢«ç§°ä¸º<emphasis>ç»æå"
+"Hibernate3 对åç¬ç屿§æ¯æå»¶è¿æåï¼è¿é¡¹ä¼åææ¯ä¹è¢«ç§°ä¸º<emphasis>ç»æå"
"ï¼fetch groupsï¼</emphasis>ã 请注æï¼è¯¥ææ¯æ´å¤çå±äºå¸åºç¹æ§ãå¨å®é
åºç¨"
"ä¸ï¼ä¼åè¡è¯»åæ¯ä¼ååè¯»åæ´éè¦ã使¯ï¼ä»
è½½å
¥ç±»çé¨å屿§å¨æäºç¹å®æ
åµä¸ä¼"
-"æç¨ï¼ä¾å¦å¨åæè¡¨ä¸æ¥æå ç¾åæ°æ®ãæ°æ®æ¨¡åæ æ³æ¹å¨çæ
åµä¸ã"
+"æç¨ï¼ä¾å¦å¨åæè¡¨ä¸æ¥æå ç¾åæ°æ®ãæ°æ®æ¨¡åæ æ³æ¹å¨çæ
åµä¸ã "
#. Tag: para
-#: performance.xml:564
#, no-c-format
msgid ""
"To enable lazy property loading, set the <literal>lazy</literal> attribute "
"on your particular property mappings:"
msgstr ""
-"å¯ä»¥å¨æ å°æä»¶ä¸å¯¹ç¹å®ç屿§è®¾ç½®<literal>lazy</literal>ï¼å®ä¹è¯¥å±æ§ä¸ºå»¶è¿è½½"
+"å¯ä»¥å¨æ å°æä»¶ä¸å¯¹ç¹å®ç屿§è®¾ç½® <literal>lazy</literal>ï¼å®ä¹è¯¥å±æ§ä¸ºå»¶è¿è½½"
"å
¥ã"
-#. Tag: programlisting
-#: performance.xml:569
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Document\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
-" <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true"
-"\"/>\n"
-" <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"
-">\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:571
-#, fuzzy, no-c-format
-msgid ""
"Lazy property loading requires buildtime bytecode instrumentation. If your "
"persistent classes are not enhanced, Hibernate will ignore lazy property "
"settings and return to immediate fetching."
msgstr ""
"屿§çå»¶è¿è½½å
¥è¦æ±å¨å
¶ä»£ç æå»ºæ¶å å
¥äºè¿å¶æç¤ºæä»¤ï¼bytecode "
-"instrumentationï¼ï¼å¦æä½ çæä¹
类代ç 䏿ªå«æè¿äºæä»¤ï¼ Hibernateå°ä¼å¿½ç¥è¿äº"
-"屿§çå»¶è¿è®¾ç½®ï¼ä»ç¶å°å
¶ç´æ¥è½½å
¥ã"
+"instrumentationï¼ï¼å¦æä½ çæä¹
类代ç 䏿ªå«æè¿äºæä»¤ï¼ Hibernate å°ä¼å¿½ç¥è¿"
+"äºå±æ§çå»¶è¿è®¾ç½®ï¼ä»ç¶å°å
¶ç´æ¥è½½å
¥ã "
#. Tag: para
-#: performance.xml:577
#, no-c-format
msgid "For bytecode instrumentation, use the following Ant task:"
-msgstr "ä½ å¯ä»¥å¨AntçTaskä¸ï¼è¿è¡å¦ä¸å®ä¹ï¼å¯¹æä¹
类代ç å å
¥âäºè¿å¶æä»¤ãâ"
+msgstr "ä½ å¯ä»¥å¨ Ant ç Task ä¸ï¼è¿è¡å¦ä¸å®ä¹ï¼å¯¹æä¹
类代ç å å
¥âäºè¿å¶æä»¤ãâ"
-#. Tag: programlisting
-#: performance.xml:581
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
-" <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument."
-"InstrumentTask\">\n"
-" <classpath path=\"${jar.path}\"/>\n"
-" <classpath path=\"${classes.dir}\"/>\n"
-" <classpath refid=\"lib.class.path\"/>\n"
-" </taskdef>\n"
-"\n"
-" <instrument verbose=\"true\">\n"
-" <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
-" <include name=\"*.class\"/>\n"
-" </fileset>\n"
-" </instrument>\n"
-"</target>]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:583
-#, fuzzy, no-c-format
-msgid ""
"A different way of avoiding unnecessary column reads, at least for read-only "
"transactions, is to use the projection features of HQL or Criteria queries. "
"This avoids the need for buildtime bytecode processing and is certainly a "
"preferred solution."
msgstr ""
-"è¿æä¸ç§å¯ä»¥ä¼åçæ¹æ³ï¼å®ä½¿ç¨HQLææ¡ä»¶æ¥è¯¢çæå½±ï¼projectionï¼ç¹æ§ï¼å¯ä»¥é¿å
"
-"读åéå¿
è¦çåï¼ è¿ä¸ç¹è³å°å¯¹åªè¯»äºå¡æ¯é常æç¨çã宿 éå¨ä»£ç æå»ºæ¶âäºè¿å¶"
-"æä»¤âå¤çï¼å æ¤æ¯ä¸ä¸ªæ´å å¼å¾éæ©çè§£å³æ¹æ³ã"
+"è¿æä¸ç§å¯ä»¥ä¼åçæ¹æ³ï¼å®ä½¿ç¨ HQL ææ¡ä»¶æ¥è¯¢çæå½±ï¼projectionï¼ç¹æ§ï¼å¯ä»¥é¿"
+"å
读åéå¿
è¦çåï¼ è¿ä¸ç¹è³å°å¯¹åªè¯»äºå¡æ¯é常æç¨çã宿 éå¨ä»£ç æå»ºæ¶âäºè¿"
+"嶿令âå¤çï¼å æ¤æ¯ä¸ä¸ªæ´å å¼å¾éæ©çè§£å³æ¹æ³ã "
#. Tag: para
-#: performance.xml:590
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can force the usual eager fetching of properties using <literal>fetch "
"all properties</literal> in HQL."
msgstr ""
-"ææ¶ä½ éè¦å¨HQLä¸éè¿<literal>æåææå±æ§</literal>ï¼å¼ºè¡æåææå
容ã"
+"ææ¶ä½ éè¦å¨ HQL ä¸éè¿<literal>æåææå±æ§</literal>ï¼å¼ºè¡æåææå
容ã "
#. Tag: title
-#: performance.xml:600
#, no-c-format
msgid "The Second Level Cache"
msgstr "äºçº§ç¼åï¼The Second Level Cacheï¼"
#. Tag: para
-#: performance.xml:602
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate <literal>Session</literal> is a transaction-level cache of "
"persistent data. It is possible to configure a cluster or JVM-level "
@@ -1142,15 +948,14 @@
"another application. They can, however, be configured to regularly expire "
"cached data."
msgstr ""
-"Hibernateç<literal>Session</literal>å¨äºå¡çº§å«è¿è¡æä¹
åæ°æ®çç¼åæä½ã å½"
-"ç¶ï¼ä¹æå¯è½åå«ä¸ºæ¯ä¸ªç±»ï¼æéå)ï¼é
ç½®é群ãæJVM级å«"
-"(<literal>SessionFactory级å«</literal>)çç¼åã ä½ çè³å¯ä»¥ä¸ºä¹æå
¥ä¸ä¸ªé群ç"
-"ç¼åãæ³¨æï¼ç¼åæ°¸è¿ä¸ç¥éå
¶ä»åºç¨ç¨åºå¯¹æä¹
åä»åºï¼æ°æ®åºï¼å¯è½è¿è¡çä¿®æ¹ "
-"ï¼å³ä½¿å¯ä»¥å°ç¼åæ°æ®è®¾å®ä¸ºå®æå¤±æï¼ã"
+"Hibernate ç <literal>Session</literal> å¨äºå¡çº§å«è¿è¡æä¹
åæ°æ®çç¼åæä½ã "
+"å½ç¶ï¼ä¹æå¯è½åå«ä¸ºæ¯ä¸ªç±»ï¼æéåï¼ï¼é
ç½®éç¾¤ãæ JVM 级å«"
+"ï¼<literal>SessionFactory 级å«</literal>ï¼çç¼åãä½ çè³å¯ä»¥ä¸ºä¹æå
¥ä¸ä¸ªé群"
+"çç¼åãæ³¨æï¼ç¼åæ°¸è¿ä¸ç¥éå
¶ä»åºç¨ç¨åºå¯¹æä¹
åä»åºï¼æ°æ®åºï¼å¯è½è¿è¡çä¿®æ¹ "
+"ï¼å³ä½¿å¯ä»¥å°ç¼åæ°æ®è®¾å®ä¸ºå®æå¤±æï¼ã "
#. Tag: para
-#: performance.xml:610
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have the option to tell Hibernate which caching implementation to use by "
"specifying the name of a class that implements <literal>org.hibernate.cache."
@@ -1160,269 +965,221 @@
"can also implement your own and plug it in as outlined above. Note that "
"versions prior to 3.2 use EhCache as the default cache provider."
msgstr ""
-"éè¿å¨<literal>hibernate.cache.provider_class</literal>屿§ä¸æå®"
-"<literal>org.hibernate.cache.CacheProvider</literal>çæä¸ªå®ç°çç±»å,ä½ å¯ä»¥é"
-"æ©è®©Hibernate使ç¨åªä¸ªç¼åå®ç°ãHibernateæå
ä¸äºå¼æºç¼åå®ç°ï¼æä¾å¯¹å®ä»¬çå
"
-"ç½®æ¯æï¼è§ä¸è¡¨ï¼ã餿¤ä¹å¤ï¼ä½ ä¹å¯ä»¥å®ç°ä½ èªå·±çå®ç°ï¼å°å®ä»¬æå
¥å°ç³»ç»ä¸ã注"
-"æï¼å¨3.2çæ¬ä¹åï¼é»è®¤ä½¿ç¨EhCache ä½ä¸ºç¼åå®ç°ï¼ä½ä»3.2èµ·å°±ä¸åè¿æ ·äºã"
+"éè¿å¨ <literal>hibernate.cache.provider_class</literal> 屿§ä¸æå® "
+"<literal>org.hibernate.cache.CacheProvider</literal> çæä¸ªå®ç°çç±»å,ä½ å¯ä»¥"
+"éæ©è®© Hibernate 使ç¨åªä¸ªç¼åå®ç°ãHibernate æå
ä¸äºå¼æºç¼åå®ç°ï¼æä¾å¯¹å®ä»¬"
+"çå
ç½®æ¯æï¼è§ä¸è¡¨ï¼ã餿¤ä¹å¤ï¼ä½ ä¹å¯ä»¥å®ç°ä½ èªå·±çå®ç°ï¼å°å®ä»¬æå
¥å°ç³»ç»"
+"ä¸ã注æï¼å¨ 3.2 çæ¬ä¹åï¼é»è®¤ä½¿ç¨ EhCache ä½ä¸ºç¼åå®ç°ï¼ä½ä» 3.2 èµ·å°±ä¸åè¿"
+"æ ·äºã "
#. Tag: title
-#: performance.xml:621
#, no-c-format
msgid "Cache Providers"
msgstr "ç¼åçç¥æä¾åï¼Cache Providersï¼"
#. Tag: entry
-#: performance.xml:630 performance.xml:818
#, no-c-format
msgid "Cache"
msgstr "Cache"
#. Tag: entry
-#: performance.xml:631
#, no-c-format
msgid "Provider class"
msgstr "Provider class"
#. Tag: entry
-#: performance.xml:632
#, no-c-format
msgid "Type"
msgstr "Type"
#. Tag: entry
-#: performance.xml:633
#, no-c-format
msgid "Cluster Safe"
msgstr "Cluster Safe"
#. Tag: entry
-#: performance.xml:634
#, no-c-format
msgid "Query Cache Supported"
msgstr "Query Cache Supported"
#. Tag: entry
-#: performance.xml:639 performance.xml:827
#, no-c-format
msgid "Hashtable (not intended for production use)"
-msgstr "Hashtable (not intended for production use)"
+msgstr "Hashtable ï¼not intended for production useï¼"
-#. Tag: literal
-#: performance.xml:640
-#, no-c-format
-msgid "org.hibernate.cache.HashtableCacheProvider"
-msgstr "org.hibernate.cache.HashtableCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.HashtableCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:641
#, no-c-format
msgid "memory"
msgstr "memory"
#. Tag: entry
-#: performance.xml:643 performance.xml:650 performance.xml:657
-#: performance.xml:828 performance.xml:829 performance.xml:830
-#: performance.xml:835 performance.xml:836 performance.xml:837
-#: performance.xml:842 performance.xml:843 performance.xml:844
-#: performance.xml:849 performance.xml:850 performance.xml:856
-#: performance.xml:859 performance.xml:863 performance.xml:866
#, no-c-format
-msgid "<entry>yes</entry>"
-msgstr ""
+msgid "yes"
+msgstr "yes"
#. Tag: entry
-#: performance.xml:646 performance.xml:834
#, no-c-format
msgid "EHCache"
msgstr "EHCache"
-#. Tag: literal
-#: performance.xml:647
-#, no-c-format
-msgid "org.hibernate.cache.EhCacheProvider"
-msgstr "org.hibernate.cache.EhCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.EhCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.EhCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:648 performance.xml:655
#, no-c-format
msgid "memory, disk"
-msgstr "memory, disk"
+msgstr "memoryï¼disk"
#. Tag: entry
-#: performance.xml:653 performance.xml:841
#, no-c-format
msgid "OSCache"
msgstr "OSCache"
-#. Tag: literal
-#: performance.xml:654
-#, no-c-format
-msgid "org.hibernate.cache.OSCacheProvider"
-msgstr "org.hibernate.cache.OSCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.OSCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.OSCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:660 performance.xml:848
#, no-c-format
msgid "SwarmCache"
msgstr "SwarmCache"
-#. Tag: literal
-#: performance.xml:661
-#, no-c-format
-msgid "org.hibernate.cache.SwarmCacheProvider"
-msgstr "org.hibernate.cache.SwarmCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.SwarmCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:662
#, no-c-format
msgid "clustered (ip multicast)"
msgstr "clustered (ip multicast)"
#. Tag: entry
-#: performance.xml:663
#, no-c-format
msgid "yes (clustered invalidation)"
msgstr "yes (clustered invalidation)"
#. Tag: entry
-#: performance.xml:667 performance.xml:855
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 1.x"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 1.x"
-#. Tag: literal
-#: performance.xml:668
-#, no-c-format
-msgid "org.hibernate.cache.TreeCacheProvider"
-msgstr "org.hibernate.cache.TreeCacheProvider"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
+msgstr "<literal>org.hibernate.cache.TreeCacheProvider</literal>"
#. Tag: entry
-#: performance.xml:669 performance.xml:676
#, no-c-format
msgid "clustered (ip multicast), transactional"
msgstr "clustered (ip multicast), transactional"
#. Tag: entry
-#: performance.xml:670
#, no-c-format
msgid "yes (replication)"
msgstr "yes (replication)"
#. Tag: entry
-#: performance.xml:671 performance.xml:678
#, no-c-format
msgid "yes (clock sync req.)"
msgstr "yes (clock sync req.)"
#. Tag: entry
-#: performance.xml:674 performance.xml:862
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss Cache 2"
-msgstr "JBoss TreeCache"
+msgstr "JBoss Cache 2"
-#. Tag: literal
-#: performance.xml:675
+#. Tag: entry
#, fuzzy, no-c-format
-msgid "org.hibernate.cache.jbc.JBossCacheRegionFactory"
-msgstr "org.hibernate.cache.EhCacheProvider"
+msgid "<literal>org.hibernate.cache.jbc.JBossCacheRegionFactory</literal>"
+msgstr "<literal>org.hibernate.cache.jbc2.JBossCacheRegionFactory</literal>"
#. Tag: entry
-#: performance.xml:677
-#, fuzzy, no-c-format
+#, no-c-format
msgid "yes (replication or invalidation)"
-msgstr "yes (clustered invalidation)"
+msgstr "yes (replication or invalidation)"
#. Tag: title
-#: performance.xml:685
#, no-c-format
msgid "Cache mappings"
msgstr "ç¼åæ å°ï¼Cache mappingsï¼"
#. Tag: para
-#: performance.xml:687
#, no-c-format
msgid ""
"The <literal><cache></literal> element of a class or collection "
"mapping has the following form:"
-msgstr "ç±»æè
éåæ å°çâ<literal><cache></literal>å
ç´ âå¯ä»¥æä¸åå½¢å¼ï¼"
-
-#. Tag: programlisting
-#: performance.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<cache \n"
-" usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
-" region=\"RegionName\"\n"
-" include=\"all|non-lazy\"\n"
-"/>]]>"
msgstr ""
+"ç±»æè
éåæ å°çâ<literal><cache></literal> å
ç´ âå¯ä»¥æä¸åå½¢å¼ï¼"
#. Tag: para
-#: performance.xml:701
#, no-c-format
msgid ""
"<literal>usage</literal> (required) specifies the caching strategy: "
"<literal>transactional</literal>, <literal>read-write</literal>, "
"<literal>nonstrict-read-write</literal> or <literal>read-only</literal>"
msgstr ""
-"<literal>usage</literal>(å¿
é¡»)说æäºç¼åççç¥: <literal>transactional</"
-"literal>ã <literal>read-write</literal>ã <literal>nonstrict-read-write</"
-"literal>æ <literal>read-only</literal>ã"
+"<literal>usage</literal>ï¼å¿
é¡»ï¼è¯´æäºç¼åççç¥ï¼<literal>transactional</"
+"literal>ã <literal>read-write</literal>ã<literal>nonstrict-read-write</"
+"literal> æ <literal>read-only</literal>ã"
#. Tag: para
-#: performance.xml:710
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>region</literal> (optional: defaults to the class or collection "
"role name): specifies the name of the second level cache region"
msgstr ""
-"<literal>region</literal> (å¯é, é»è®¤ä¸ºç±»æè
éåçåå(class or collection "
-"role name)) æå®ç¬¬äºçº§ç¼åçåºåå(name of the second level cache region)"
+"<literal>region</literal> ï¼å¯éï¼é»è®¤ä¸ºç±»æè
éåçååï¼class or "
+"collection role nameï¼ï¼ æå®ç¬¬äºçº§ç¼åçåºååï¼name of the second level "
+"cache regionï¼ "
#. Tag: para
-#: performance.xml:717
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>include</literal> (optional: defaults to <literal>all</literal>) "
"<literal>non-lazy</literal>: specifies that properties of the entity mapped "
"with <literal>lazy=\"true\"</literal> cannot be cached when attribute-level "
"lazy fetching is enabled"
msgstr ""
-"<literal>include</literal> (å¯é,é»è®¤ä¸º <literal>all</literal>) <literal>non-"
-"lazy</literal> å½å±æ§çº§å»¶è¿æåæå¼æ¶, æ 记为<literal>lazy=\"true\"</literal>"
-"çå®ä½ç屿§å¯è½æ æ³è¢«ç¼å"
+"<literal>include</literal>ï¼å¯é,é»è®¤ä¸º <literal>all</literal>ï¼ "
+"<literal>non-lazy</literal> å½å±æ§çº§å»¶è¿æåæå¼æ¶ï¼æ 记为 <literal>lazy="
+"\"true\"</literal> çå®ä½ç屿§å¯è½æ æ³è¢«ç¼å "
#. Tag: para
-#: performance.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can specify <literal><class-cache></literal> and "
"<literal><collection-cache></literal> elements in <literal>hibernate."
"cfg.xml</literal>."
msgstr ""
-"å¦å¤(é¦é?), ä½ å¯ä»¥å¨hibernate.cfg.xml䏿å®<literal><class-cache></"
-"literal>å <literal><collection-cache></literal> å
ç´ ã"
+"å¦å¤ï¼é¦é?ï¼ï¼ä½ å¯ä»¥å¨<literal>hibernate.cfg.xml</literal> ä¸æå® "
+"<literal><class-cache></literal> å <literal><collection-cache></"
+"literal> å
ç´ ã"
#. Tag: para
-#: performance.xml:732
#, no-c-format
msgid ""
"The <literal>usage</literal> attribute specifies a <emphasis>cache "
"concurrency strategy</emphasis>."
msgstr ""
-"è¿éç<literal>usage</literal> 屿§ææäº<emphasis>ç¼åå¹¶åçç¥ï¼cache "
+"è¿éç <literal>usage</literal> 屿§ææäº<emphasis>ç¼åå¹¶åçç¥ï¼cache "
"concurrency strategyï¼</emphasis>ã"
#. Tag: title
-#: performance.xml:739
#, no-c-format
msgid "Strategy: read only"
-msgstr "çç¥ï¼åªè¯»ç¼åï¼Strategy: read onlyï¼"
+msgstr "çç¥ï¼åªè¯»ç¼åï¼Strategyï¼read onlyï¼"
#. Tag: para
-#: performance.xml:741
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your application needs to read, but not modify, instances of a persistent "
"class, a <literal>read-only</literal> cache can be used. This is the "
@@ -1431,27 +1188,15 @@
msgstr ""
"å¦æä½ çåºç¨ç¨åºåªé读åä¸ä¸ªæä¹
åç±»çå®ä¾ï¼èæ é对å
¶ä¿®æ¹ï¼ é£ä¹å°±å¯ä»¥å¯¹å
¶è¿"
"è¡<literal>åªè¯»</literal> ç¼åãè¿æ¯æç®åï¼ä¹æ¯å®ç¨æ§æå¥½çæ¹æ³ãçè³å¨é群"
-"ä¸ï¼å®ä¹è½å®ç¾å°è¿ä½ã"
+"ä¸ï¼å®ä¹è½å®ç¾å°è¿ä½ã "
-#. Tag: programlisting
-#: performance.xml:747
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
-" <cache usage=\"read-only\"/>\n"
-" ....\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:753
#, no-c-format
msgid "Strategy: read/write"
-msgstr "çç¥:读/åç¼åï¼Strategy: read/writeï¼"
+msgstr "çç¥ï¼è¯»å/ç¼åï¼Strategyï¼read/writeï¼"
#. Tag: para
-#: performance.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application needs to update data, a <literal>read-write</literal> "
"cache might be appropriate. This cache strategy should never be used if "
@@ -1467,37 +1212,21 @@
msgstr ""
"妿åºç¨ç¨åºéè¦æ´æ°æ°æ®ï¼é£ä¹ä½¿ç¨<literal>读/åç¼å</literal> æ¯è¾åéã å¦"
"æåºç¨ç¨åºè¦æ±âåºååäºå¡âçé离级å«ï¼serializable transaction isolation "
-"levelï¼ï¼é£ä¹å°±å³ä¸è½ä½¿ç¨è¿ç§ç¼åçç¥ã 妿å¨JTAç¯å¢ä¸ä½¿ç¨ç¼åï¼ä½ å¿
é¡»æå®"
-"<literal>hibernate.transaction.manager_lookup_class</literal>屿§çå¼ï¼ éè¿"
-"å®ï¼Hibernateæè½ç¥é该åºç¨ç¨åºä¸JTAç<literal>TransactionManager</literal>ç"
-"å
·ä½çç¥ã å¨å
¶å®ç¯å¢ä¸ï¼ä½ å¿
é¡»ä¿è¯å¨<literal>Session.close()</literal>ãæ"
-"<literal>Session.disconnect()</literal>è°ç¨åï¼ æ´ä¸ªäºå¡å·²ç»ç»æã å¦æä½ æ³å¨"
-"é群ç¯å¢ä¸ä½¿ç¨æ¤çç¥ï¼ä½ å¿
é¡»ä¿è¯åºå±çç¼åå®ç°æ¯æéå®(locking)ãHibernateå
"
-"ç½®çç¼åçç¥å¹¶ä¸æ¯æéå®åè½ã"
+"levelï¼ï¼é£ä¹å°±å³ä¸è½ä½¿ç¨è¿ç§ç¼åçç¥ã å¦æå¨ JTA ç¯å¢ä¸ä½¿ç¨ç¼åï¼ä½ å¿
é¡»æ"
+"å® <literal>hibernate.transaction.manager_lookup_class</literal> 屿§çå¼ï¼ "
+"éè¿å®ï¼Hibernate æè½ç¥é该åºç¨ç¨åºä¸ JTA ç<literal>TransactionManager</"
+"literal>çå
·ä½çç¥ã å¨å
¶å®ç¯å¢ä¸ï¼ä½ å¿
é¡»ä¿è¯å¨ <literal>Session.close()</"
+"literal>ãæ <literal>Session.disconnect()</literal> è°ç¨åï¼ æ´ä¸ªäºå¡å·²ç»ç»"
+"æã å¦æä½ æ³å¨é群ç¯å¢ä¸ä½¿ç¨æ¤çç¥ï¼ä½ å¿
é¡»ä¿è¯åºå±çç¼åå®ç°æ¯æéå®"
+"ï¼lockingï¼ãHibernate å
ç½®çç¼åçç¥å¹¶ä¸æ¯æéå®åè½ã "
-#. Tag: programlisting
-#: performance.xml:766
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"eg.Cat\" .... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" <set name=\"kittens\" ... >\n"
-" <cache usage=\"read-write\"/>\n"
-" ....\n"
-" </set>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:771
#, no-c-format
msgid "Strategy: nonstrict read/write"
-msgstr "çç¥:éä¸¥æ ¼è¯»/åç¼åï¼Strategy: nonstrict read/writeï¼"
+msgstr "çç¥ï¼éä¸¥æ ¼è¯»/åç¼åï¼Strategyï¼nonstrict read/writeï¼"
#. Tag: para
-#: performance.xml:773
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the application only occasionally needs to update data (i.e. if it is "
"extremely unlikely that two transactions would try to update the same item "
@@ -1509,97 +1238,84 @@
"</literal> or <literal>Session.disconnect()</literal> is called."
msgstr ""
"妿åºç¨ç¨åºåªå¶å°éè¦æ´æ°æ°æ®ï¼ä¹å°±æ¯è¯´ï¼ä¸¤ä¸ªäºå¡åæ¶æ´æ°åä¸è®°å½çæ
åµå¾ä¸"
-"常è§ï¼ï¼ä¹ä¸éè¦ååä¸¥æ ¼çäºå¡éç¦»ï¼ é£ä¹æ¯è¾éå使ç¨<literal>éä¸¥æ ¼è¯»/åç¼å"
-"</literal>çç¥ã妿å¨JTAç¯å¢ä¸ä½¿ç¨è¯¥çç¥ï¼ ä½ å¿
须为å
¶æå®<literal>hibernate."
-"transaction.manager_lookup_class</literal>屿§çå¼ï¼ å¨å
¶å®ç¯å¢ä¸ï¼ä½ å¿
é¡»ä¿è¯"
-"å¨<literal>Session.close()</literal>ãæ<literal>Session.disconnect()</"
-"literal>è°ç¨åï¼ æ´ä¸ªäºå¡å·²ç»ç»æã"
+"常è§ï¼ï¼ä¹ä¸éè¦ååä¸¥æ ¼çäºå¡é离ï¼é£ä¹æ¯è¾éå使ç¨<literal>éä¸¥æ ¼è¯»/åç¼å"
+"</literal>çç¥ãå¦æå¨ JTA ç¯å¢ä¸ä½¿ç¨è¯¥çç¥ï¼ä½ å¿
须为å
¶æå® "
+"<literal>hibernate.transaction.manager_lookup_class</literal> 屿§çå¼ï¼å¨å
¶"
+"å®ç¯å¢ä¸ï¼ä½ å¿
é¡»ä¿è¯å¨<literal>Session.close()</literal>ãæ "
+"<literal>Session.disconnect()</literal> è°ç¨åï¼æ´ä¸ªäºå¡å·²ç»ç»æã "
#. Tag: title
-#: performance.xml:785
#, no-c-format
msgid "Strategy: transactional"
-msgstr "çç¥:äºå¡ç¼åï¼transactionalï¼"
+msgstr "çç¥ï¼äºå¡ç¼åï¼transactionalï¼"
#. Tag: para
-#: performance.xml:787
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>transactional</literal> cache strategy provides support for "
"fully transactional cache providers such as JBoss TreeCache. Such a cache "
"can only be used in a JTA environment and you must specify "
"<literal>hibernate.transaction.manager_lookup_class</literal>."
msgstr ""
-"Hibernateç<literal>äºå¡ç¼å</literal>çç¥æä¾äºå
¨äºå¡çç¼åæ¯æï¼ ä¾å¦å¯¹"
-"JBoss TreeCacheçæ¯æãè¿æ ·çç¼ååªè½ç¨äºJTAç¯å¢ä¸ï¼ä½ å¿
é¡»æå® 为å
¶"
-"<literal>hibernate.transaction.manager_lookup_class</literal>屿§ã"
+"Hibernate ç<literal>äºå¡ç¼å</literal>çç¥æä¾äºå
¨äºå¡çç¼åæ¯æï¼ä¾å¦å¯¹ "
+"JBoss TreeCache çæ¯æãè¿æ ·çç¼ååªè½ç¨äº JTA ç¯å¢ä¸ï¼ä½ å¿
é¡»æå®ä¸ºå
¶ "
+"<literal>hibernate.transaction.manager_lookup_class</literal> 屿§ã "
#. Tag: title
-#: performance.xml:796
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Cache-provider/concurrency-strategy compatibility"
-msgstr ""
-"åç§ç¼åæä¾å对ç¼åå¹¶åçç¥çæ¯ææ
åµï¼Cache Concurrency Strategy Supportï¼"
+msgstr "åç§ç¼åæä¾å/ç¼åå¹¶åçç¥çå
¼å®¹æ§"
#. Tag: para
-#: performance.xml:799
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"None of the cache providers support all of the cache concurrency strategies."
msgstr ""
"没æä¸ç§ç¼åæä¾åè½å¤æ¯æä¸åçææç¼åå¹¶åçç¥ãä¸è¡¨ä¸ååºäºåç§æä¾å¨ãå"
-"å
¶åèªéç¨çå¹¶åçç¥ã"
+"å
¶åèªéç¨çå¹¶åçç¥ã "
#. Tag: para
-#: performance.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows which providers are compatible with which "
"concurrency strategies."
msgstr ""
"没æä¸ç§ç¼åæä¾åè½å¤æ¯æä¸åçææç¼åå¹¶åçç¥ãä¸è¡¨ä¸ååºäºåç§æä¾å¨ãå"
-"å
¶åèªéç¨çå¹¶åçç¥ã"
+"å
¶åèªéç¨çå¹¶åçç¥ã "
#. Tag: title
-#: performance.xml:809
#, no-c-format
msgid "Cache Concurrency Strategy Support"
msgstr ""
"åç§ç¼åæä¾å对ç¼åå¹¶åçç¥çæ¯ææ
åµï¼Cache Concurrency Strategy Supportï¼"
#. Tag: entry
-#: performance.xml:819
#, no-c-format
msgid "read-only"
msgstr "read-only"
#. Tag: entry
-#: performance.xml:820
#, no-c-format
msgid "nonstrict-read-write"
msgstr "nonstrict-read-write"
#. Tag: entry
-#: performance.xml:821
#, no-c-format
msgid "read-write"
msgstr "read-write"
#. Tag: entry
-#: performance.xml:822
#, no-c-format
msgid "transactional"
msgstr "transactional"
#. Tag: title
-#: performance.xml:877
#, no-c-format
msgid "Managing the caches"
msgstr "管çç¼åï¼Managing the cachesï¼"
#. Tag: para
-#: performance.xml:879
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Whenever you pass an object to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, and whenever you retrieve an "
@@ -1608,15 +1324,14 @@
"</literal>, that object is added to the internal cache of the "
"<literal>Session</literal>."
msgstr ""
-"æ è®ºä½æ¶ï¼å½ä½ ç»<literal>save()</literal>ã<literal>update()</literal>æ "
-"<literal>saveOrUpdate()</literal>æ¹æ³ä¼ éä¸ä¸ªå¯¹è±¡æ¶ï¼æä½¿ç¨<literal>load()</"
-"literal>ã <literal>get()</literal>ã<literal>list()</literal>ã"
-"<literal>iterate()</literal> æ<literal>scroll()</literal>æ¹æ³è·å¾ä¸ä¸ªå¯¹è±¡"
-"æ¶, 该对象é½å°è¢«å å
¥å°<literal>Session</literal>çå
é¨ç¼åä¸ã"
+"æ è®ºä½æ¶ï¼å½ä½ ç» <literal>save()</literal>ã<literal>update()</literal> æ "
+"<literal>saveOrUpdate()</literal> æ¹æ³ä¼ éä¸ä¸ªå¯¹è±¡æ¶ï¼æä½¿ç¨ <literal>load()"
+"</literal>ã<literal>get()</literal>ã<literal>list()</literal>ã"
+"<literal>iterate()</literal> æ <literal>scroll()</literal> æ¹æ³è·å¾ä¸ä¸ªå¯¹è±¡"
+"æ¶ï¼è¯¥å¯¹è±¡é½å°è¢«å å
¥å° <literal>Session</literal> çå
é¨ç¼åä¸ã "
#. Tag: para
-#: performance.xml:886
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When <literal>flush()</literal> is subsequently called, the state of that "
"object will be synchronized with the database. If you do not want this "
@@ -1625,118 +1340,85 @@
"can be used to remove the object and its collections from the first-level "
"cache."
msgstr ""
-"å½éåflush()æ¹æ³è¢«è°ç¨æ¶ï¼å¯¹è±¡çç¶æä¼åæ°æ®åºåå¾åæ¥ã å¦æä½ ä¸å¸ææ¤åæ¥"
-"æä½åçï¼æè
ä½ æ£å¤ç大é对象ãéè¦å¯¹ææç®¡çå
åæ¶ï¼ä½ å¯ä»¥è°ç¨"
-"<literal>evict()</literal> æ¹æ³ï¼ä»ä¸çº§ç¼åä¸å»æè¿äºå¯¹è±¡åå
¶éåã"
+"å½éå flush() æ¹æ³è¢«è°ç¨æ¶ï¼å¯¹è±¡çç¶æä¼åæ°æ®åºåå¾åæ¥ãå¦æä½ ä¸å¸ææ¤åæ¥"
+"æä½åçï¼æè
ä½ æ£å¤ç大é对象ãéè¦å¯¹ææç®¡çå
åæ¶ï¼ä½ å¯ä»¥è°ç¨ "
+"<literal>evict()</literal> æ¹æ³ï¼ä»ä¸çº§ç¼åä¸å»æè¿äºå¯¹è±¡åå
¶éåã "
-#. Tag: programlisting
-#: performance.xml:894
-#, no-c-format
-msgid ""
-"<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\").scroll"
-"(); //a huge result set\n"
-"while ( cats.next() ) {\n"
-" Cat cat = (Cat) cats.get(0);\n"
-" doSomethingWithACat(cat);\n"
-" sess.evict(cat);\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: performance.xml:896
#, no-c-format
msgid ""
"The <literal>Session</literal> also provides a <literal>contains()</literal> "
"method to determine if an instance belongs to the session cache."
msgstr ""
-"Sessionè¿æä¾äºä¸ä¸ª<literal>contains()</literal>æ¹æ³ï¼ç¨æ¥å¤ææä¸ªå®ä¾æ¯å¦å¤"
-"äºå½åsessionçç¼åä¸ã"
+"Session è¿æä¾äºä¸ä¸ª <literal>contains()</literal> æ¹æ³ï¼ç¨æ¥å¤ææä¸ªå®ä¾æ¯å¦"
+"å¤äºå½å session çç¼åä¸ã"
#. Tag: para
-#: performance.xml:901
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To evict all objects from the session cache, call <literal>Session.clear()</"
"literal>"
msgstr ""
-"å¦è¥è¦æææç对象ä»sessionç¼åä¸å½»åºæ¸
é¤ï¼åéè¦è°ç¨<literal>Session.clear()"
-"</literal>ã"
+"å¦è¥è¦æææçå¯¹è±¡ä» session ç¼åä¸å½»åºæ¸
é¤ï¼åéè¦è°ç¨ <literal>Session."
+"clear()</literal>ã "
#. Tag: para
-#: performance.xml:905
#, no-c-format
msgid ""
"For the second-level cache, there are methods defined on "
"<literal>SessionFactory</literal> for evicting the cached state of an "
"instance, entire class, collection instance or entire collection role."
msgstr ""
-"对äºäºçº§ç¼åæ¥è¯´ï¼å¨<literal>SessionFactory</literal>ä¸å®ä¹äºè®¸å¤æ¹æ³ï¼ æ¸
é¤"
+"对äºäºçº§ç¼åæ¥è¯´ï¼å¨ <literal>SessionFactory</literal> ä¸å®ä¹äºè®¸å¤æ¹æ³ï¼æ¸
é¤"
"ç¼åä¸å®ä¾ãæ´ä¸ªç±»ãéåå®ä¾æè
æ´ä¸ªéåã"
-#. Tag: programlisting
-#: performance.xml:911
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular Cat\n"
-"sessionFactory.evict(Cat.class); //evict all Cats\n"
-"sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a particular "
-"collection of kittens\n"
-"sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
-"collections]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:913
-#, fuzzy, no-c-format
-msgid ""
"The <literal>CacheMode</literal> controls how a particular session interacts "
"with the second-level cache:"
msgstr ""
-"<literal>CacheMode</literal>åæ°ç¨äºæ§å¶å
·ä½çSessionå¦ä½ä¸äºçº§ç¼åè¿è¡äº¤äºã"
+"<literal>CacheMode</literal> åæ°ç¨äºæ§å¶å
·ä½ç Session å¦ä½ä¸äºçº§ç¼åè¿è¡äº¤"
+"äºã "
#. Tag: para
-#: performance.xml:920
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.NORMAL</literal>: will read items from and write items to "
"the second-level cache"
-msgstr "<literal>CacheMode.NORMAL</literal> - ä»äºçº§ç¼åä¸è¯»ãåæ°æ®ã"
+msgstr "<literal>CacheMode.NORMAL</literal>ï¼ä»äºçº§ç¼åä¸è¯»ãåæ°æ®ã"
#. Tag: para
-#: performance.xml:925
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.GET</literal>: will read items from the second-level "
"cache. Do not write to the second-level cache except when updating data"
msgstr ""
-"<literal>CacheMode.GET</literal> - ä»äºçº§ç¼åä¸è¯»åæ°æ®ï¼ä»
卿°æ®æ´æ°æ¶å¯¹äºçº§"
+"<literal>CacheMode.GET</literal>ï¼ä»äºçº§ç¼åä¸è¯»åæ°æ®ï¼ä»
卿°æ®æ´æ°æ¶å¯¹äºçº§"
"ç¼ååæ°æ®ã"
#. Tag: para
-#: performance.xml:931
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.PUT</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache"
msgstr ""
-"<literal>CacheMode.PUT</literal> - ä»
åäºçº§ç¼ååæ°æ®ï¼ä½ä¸ä»äºçº§ç¼åä¸è¯»æ°"
+"<literal>CacheMode.PUT</literal>ï¼ä»
åäºçº§ç¼ååæ°æ®ï¼ä½ä¸ä»äºçº§ç¼åä¸è¯»æ°"
"æ®ã"
#. Tag: para
-#: performance.xml:937
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>CacheMode.REFRESH</literal>: will write items to the second-level "
"cache. Do not read from the second-level cache. Bypass the effect of "
"<literal>hibernate.cache.use_minimal_puts</literal> forcing a refresh of the "
"second-level cache for all items read from the database"
msgstr ""
-"<literal>CacheMode.REFRESH</literal> - ä»
åäºçº§ç¼ååæ°æ®ï¼ä½ä¸ä»äºçº§ç¼åä¸è¯»"
-"æ°æ®ãéè¿ <literal>hibernate.cache.use_minimal_puts</literal>ç设置ï¼å¼ºå¶äº"
+"<literal>CacheMode.REFRESH</literal>ï¼ä»
åäºçº§ç¼ååæ°æ®ï¼ä½ä¸ä»äºçº§ç¼åä¸è¯»"
+"æ°æ®ãéè¿ <literal>hibernate.cache.use_minimal_puts</literal> ç设置ï¼å¼ºå¶äº"
"级ç¼å仿°æ®åºä¸è¯»åæ°æ®ï¼å·æ°ç¼åå
容ã"
#. Tag: para
-#: performance.xml:945
#, no-c-format
msgid ""
"To browse the contents of a second-level or query cache region, use the "
@@ -1745,176 +1427,178 @@
"å¦è¥éè¦æ¥çäºçº§ç¼åææ¥è¯¢ç¼ååºåçå
容ï¼ä½ å¯ä»¥ä½¿ç¨<literal>ç»è®¡"
"ï¼Statisticsï¼</literal> APIã"
-#. Tag: programlisting
-#: performance.xml:950
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
-" .getSecondLevelCacheStatistics(regionName)\n"
-" .getEntries();]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:952
-#, fuzzy, no-c-format
-msgid ""
"You will need to enable statistics and, optionally, force Hibernate to keep "
"the cache entries in a more readable format:"
msgstr ""
-"æ¤æ¶ï¼ä½ å¿
é¡»æå·¥æå¼ç»è®¡é项ãå¯éçï¼ä½ å¯ä»¥è®©Hibernateæ´äººå·¥å¯è¯»çæ¹å¼ç»´æ¤ç¼"
-"åå
容ã"
+"æ¤æ¶ï¼ä½ å¿
é¡»æå·¥æå¼ç»è®¡é项ãå¯éçï¼ä½ å¯ä»¥è®© Hibernate æ´äººå·¥å¯è¯»çæ¹å¼ç»´æ¤"
+"ç¼åå
容ã "
-#. Tag: programlisting
-#: performance.xml:957
-#, no-c-format
-msgid ""
-"<![CDATA[hibernate.generate_statistics true\n"
-"hibernate.cache.use_structured_entries true]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:962
#, no-c-format
msgid "The Query Cache"
msgstr "æ¥è¯¢ç¼åï¼The Query Cacheï¼"
#. Tag: para
-#: performance.xml:964
#, fuzzy, no-c-format
msgid ""
"Query result sets can also be cached. This is only useful for queries that "
-"are run frequently with the same parameters. You will first need to enable "
-"the query cache:"
+"are run frequently with the same parameters."
msgstr ""
"æ¥è¯¢çç»æéä¹å¯ä»¥è¢«ç¼åãåªæå½ç»å¸¸ä½¿ç¨åæ ·çåæ°è¿è¡æ¥è¯¢æ¶ï¼è¿æä¼æäºç¨"
-"å¤ã è¦ä½¿ç¨æ¥è¯¢ç¼åï¼é¦å
ä½ å¿
é¡»æå¼å®ï¼"
+"å¤ãè¦ä½¿ç¨æ¥è¯¢ç¼åï¼é¦å
ä½ å¿
é¡»æå¼å®ï¼ "
-#. Tag: programlisting
-#: performance.xml:969
+#. Tag: title
#, no-c-format
-msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+msgid "Enabling query caching"
msgstr ""
#. Tag: para
-#: performance.xml:971
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"This setting creates two new cache regions: one holding cached query result "
-"sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), the other "
-"holding timestamps of the most recent updates to queryable tables "
-"(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). Note that "
-"the query cache does not cache the state of the actual entities in the "
-"result set; it caches only identifier values and results of value type. The "
-"query cache should always be used in conjunction with the second-level cache."
+"Caching of query results introduces some overhead in terms of your "
+"applications normal transactional processing. For example, if you cache "
+"results of a query against Person Hibernate will need to keep track of when "
+"those results should be invalidated because changes have been committed "
+"against Person. That, coupled with the fact that most applications simply "
+"gain no benefit from caching query results, leads Hibernate to disable "
+"caching of query results by default. To use query caching, you will first "
+"need to enable the query cache:"
msgstr ""
-"该设置å°ä¼å建两个ç¼ååºå - ä¸ä¸ªç¨äºä¿åæ¥è¯¢ç»æé(<literal>org.hibernate."
-"cache.StandardQueryCache</literal>)ï¼ å¦ä¸ä¸ªåç¨äºä¿åæè¿æ¥è¯¢çä¸ç³»åè¡¨çæ¶"
-"é´æ³(<literal>org.hibernate.cache.UpdateTimestampsCache</literal>)ã 请注æï¼"
-"卿¥è¯¢ç¼åä¸ï¼å®å¹¶ä¸ç¼åç»æé䏿å
å«çå®ä½çç¡®åç¶æï¼å®åªç¼åè¿äºå®ä½çæ "
-"è¯ç¬¦å±æ§çå¼ã以ååå¼ç±»åçç»æã æä»¥æ¥è¯¢ç¼åé常ä¼åäºçº§ç¼åä¸èµ·ä½¿ç¨ã"
#. Tag: para
-#: performance.xml:981
-#, fuzzy, no-c-format
+#, no-c-format
+msgid "This setting creates two new cache regions:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"Most queries do not benefit from caching, so by default, queries are not "
-"cached. To enable caching, call <literal>Query.setCacheable(true)</literal>. "
-"This call allows the query to look for existing cache results or add its "
-"results to the cache when it is executed."
+"<classname>org.hibernate.cache.StandardQueryCache</classname>, holding the "
+"cached query results"
msgstr ""
-"ç»å¤§å¤æ°çæ¥è¯¢å¹¶ä¸è½ä»æ¥è¯¢ç¼åä¸åçï¼æä»¥Hibernateé»è®¤æ¯ä¸è¿è¡æ¥è¯¢ç¼åçãå¦"
-"è¥éè¦è¿è¡ç¼åï¼è¯·è°ç¨ <literal>Query.setCacheable(true)</literal>æ¹æ³ãè¿ä¸ª"
-"è°ç¨ä¼è®©æ¥è¯¢å¨æ§è¡è¿ç¨ä¸æ¶å
ä»ç¼å䏿¥æ¾ç»æï¼ å¹¶å°èªå·±çç»æéæ¾å°ç¼åä¸å»ã"
#. Tag: para
-#: performance.xml:988
+#, no-c-format
+msgid ""
+"<classname>org.hibernate.cache.UpdateTimestampsCache</classname>, holding "
+"timestamps of the most recent updates to queryable tables. These are used to "
+"validate the results as they are served from the query cache."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"If you configure your underlying cache implementation to use expiry or "
+"timeouts is is very important that the cache timeout of the underlying cache "
+"region for the UpdateTimestampsCache be set to a higher value than the "
+"timeouts of any of the query caches. In fact, we recommend that the the "
+"UpdateTimestampsCache region not be configured for expiry at all. Note, in "
+"particular, that an LRU cache expiry policy is never appropriate."
+msgstr ""
+
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"If you require fine-grained control over query cache expiration policies, "
-"you can specify a named cache region for a particular query by calling "
-"<literal>Query.setCacheRegion()</literal>."
+"As mentioned above, most queries do not benefit from caching or their "
+"results. So by default, individual queries are not cached even after "
+"enabling query caching. To enable results caching for a particular query, "
+"call <literal>org.hibernate.Query.setCacheable(true)</literal>. This call "
+"allows the query to look for existing cache results or add its results to "
+"the cache when it is executed."
msgstr ""
-"å¦æä½ è¦å¯¹æ¥è¯¢ç¼åçå¤±ææ¿çè¿è¡ç²¾ç¡®çæ§å¶ï¼ä½ å¿
é¡»è°ç¨<literal>Query."
-"setCacheRegion()</literal>æ¹æ³ï¼ 为æ¯ä¸ªæ¥è¯¢æå®å
¶å½åçç¼ååºåã"
+"ç»å¤§å¤æ°çæ¥è¯¢å¹¶ä¸è½ä»æ¥è¯¢ç¼åä¸åçï¼æä»¥ Hibernate é»è®¤æ¯ä¸è¿è¡æ¥è¯¢ç¼åçã"
+"å¦è¥éè¦è¿è¡ç¼åï¼è¯·è°ç¨ <literal>Query.setCacheableï¼trueï¼</literal>æ¹æ³ã"
+"è¿ä¸ªè°ç¨ä¼è®©æ¥è¯¢å¨æ§è¡è¿ç¨ä¸æ¶å
ä»ç¼å䏿¥æ¾ç»æï¼å¹¶å°èªå·±çç»æéæ¾å°ç¼åä¸"
+"å»ã "
-#. Tag: programlisting
-#: performance.xml:994
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog.blogger "
-"= :blogger\")\n"
-" .setEntity(\"blogger\", blogger)\n"
-" .setMaxResults(15)\n"
-" .setCacheable(true)\n"
-" .setCacheRegion(\"frontpages\")\n"
-" .list();]]>"
+"The query cache does not cache the state of the actual entities in the "
+"cache; it caches only identifier values and results of value type. For this "
+"reaso, the query cache should always be used in conjunction with the second-"
+"level cache for those entities expected to be cached as part of a query "
+"result cache (just as with collection caching)."
msgstr ""
+#. Tag: title
+#, fuzzy, no-c-format
+msgid "Query cache regions"
+msgstr "Query Cache Supported"
+
#. Tag: para
-#: performance.xml:996
#, no-c-format
msgid ""
-"If the query should force a refresh of its query cache region, you should "
-"call <literal>Query.setCacheMode(CacheMode.REFRESH)</literal>. This is "
-"particularly useful in cases where underlying data may have been updated via "
-"a separate process (i.e., not modified through Hibernate) and allows the "
-"application to selectively refresh particular query result sets. This is a "
-"more efficient alternative to eviction of a query cache region via "
-"<literal>SessionFactory.evictQueries()</literal>."
+"If you require fine-grained control over query cache expiration policies, "
+"you can specify a named cache region for a particular query by calling "
+"<literal>Query.setCacheRegion()</literal>."
msgstr ""
-"妿æ¥è¯¢éè¦å¼ºè¡å·æ°å
¶æ¥è¯¢ç¼ååºåï¼é£ä¹ä½ åºè¯¥è°ç¨<literal>Query.setCacheMode"
-"(CacheMode.REFRESH)</literal>æ¹æ³ã è¿å¯¹å¨å
¶ä»è¿ç¨ä¸ä¿®æ¹åºå±æ°æ®ï¼ä¾å¦ï¼ä¸é"
-"è¿Hibernateä¿®æ¹æ°æ®ï¼ï¼æå¯¹é£äºéè¦éæ©æ§æ´æ°ç¹å®æ¥è¯¢ç»æéçæ
åµç¹å«æç¨ã "
-"è¿æ¯å¯¹<literal>SessionFactory.evictQueries()</literal>çæ´ä¸ºææçæ¿ä»£æ¹æ¡ï¼"
-"åæ ·å¯ä»¥æ¸
餿¥è¯¢ç¼ååºåã"
+"å¦æä½ è¦å¯¹æ¥è¯¢ç¼åçå¤±ææ¿çè¿è¡ç²¾ç¡®çæ§å¶ï¼ä½ å¿
é¡»è°ç¨ <literal>Query."
+"setCacheRegion()</literal> æ¹æ³ï¼ä¸ºæ¯ä¸ªæ¥è¯¢æå®å
¶å½åçç¼ååºåã "
+#. Tag: para
+#, fuzzy, no-c-format
+msgid ""
+"If you want to force the query cache to refresh one of its regions "
+"(disregard any cached results it finds there) you can use <literal>org."
+"hibernate.Query.setCacheMode(CacheMode.REFRESH)</literal>. In conjunction "
+"with the region you have defined for the given query, Hibernate will "
+"selectively force the results cached in that particular region to be "
+"refreshed. This is particularly useful in cases where underlying data may "
+"have been updated via a separate process and is a far more efficient "
+"alternative to bulk eviction of the region via <literal>org.hibernate."
+"SessionFactory.evictQueries()</literal>."
+msgstr ""
+"妿æ¥è¯¢éè¦å¼ºè¡å·æ°å
¶æ¥è¯¢ç¼ååºåï¼é£ä¹ä½ åºè¯¥è°ç¨ <literal>Query."
+"setCacheModeï¼CacheMode.REFRESHï¼</literal>æ¹æ³ã è¿å¯¹å¨å
¶ä»è¿ç¨ä¸ä¿®æ¹åºå±æ°"
+"æ®ï¼ä¾å¦ï¼ä¸éè¿Hibernateä¿®æ¹æ°æ®ï¼ï¼æå¯¹é£äºéè¦éæ©æ§æ´æ°ç¹å®æ¥è¯¢ç»æéçæ
"
+"åµç¹å«æç¨ã è¿æ¯å¯¹ <literal>SessionFactory.evictQueries()</literal> çæ´ä¸ºæ"
+"æçæ¿ä»£æ¹æ¡ï¼åæ ·å¯ä»¥æ¸
餿¥è¯¢ç¼ååºåã"
+
#. Tag: title
-#: performance.xml:1008
#, no-c-format
msgid "Understanding Collection performance"
msgstr "çè§£éåæ§è½ï¼Understanding Collection performanceï¼"
#. Tag: para
-#: performance.xml:1010
#, no-c-format
msgid ""
"In the previous sections we have covered collections and their applications. "
"In this section we explore some more issues in relation to collections at "
"runtime."
msgstr ""
+"å¨åé¢çç« èéæä»¬å·²ç»è®¨è®ºäºéååç¸å
³åºç¨ç¨åºã卿¬èæä¹å°æ¢ç´¢è¿è¡æ¶éåç"
+"æ´å¤é®é¢ã"
#. Tag: title
-#: performance.xml:1017
#, no-c-format
msgid "Taxonomy"
msgstr "åç±»ï¼Taxonomyï¼"
#. Tag: para
-#: performance.xml:1019
#, no-c-format
msgid "Hibernate defines three basic kinds of collections:"
-msgstr "Hibernateå®ä¹äºä¸ç§åºæ¬ç±»åçéåï¼"
+msgstr "Hibernate å®ä¹äºä¸ç§åºæ¬ç±»åçéåï¼"
#. Tag: para
-#: performance.xml:1023
#, no-c-format
msgid "collections of values"
msgstr "弿°æ®éå"
#. Tag: para
-#: performance.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "one-to-many associations"
-msgstr "ä¸å¯¹å¤å
³è"
+msgstr "ä¸å¯¹å¤å
³èï¼One-to-many Associationsï¼ "
#. Tag: para
-#: performance.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
msgid "many-to-many associations"
-msgstr "å¤å¯¹å¤å
³è"
+msgstr "å¤å¯¹å¤å
³è "
#. Tag: para
-#: performance.xml:1033
#, no-c-format
msgid ""
"This classification distinguishes the various table and foreign key "
@@ -1925,30 +1609,26 @@
"This suggests the following classification:"
msgstr ""
"è¿ä¸ªåç±»æ¯åºåäºä¸åç表åå¤é®å
³ç³»ç±»åï¼ä½æ¯å®æ²¡æåè¯æä»¬å
³ç³»æ¨¡åçææå
"
-"容ã è¦å®å
¨çè§£ä»ä»¬çå
³ç³»ç»æåæ§è½ç¹ç¹ï¼æä»¬å¿
须忶èèâç¨äºHibernateæ´æ°æ"
-"å é¤éåè¡æ°æ®ç主é®çç»æâã å æ¤å¾å°äºå¦ä¸çåç±»ï¼"
+"容ã è¦å®å
¨çè§£ä»ä»¬çå
³ç³»ç»æåæ§è½ç¹ç¹ï¼æä»¬å¿
须忶èèâç¨äº Hibernate æ´æ°"
+"æå é¤éåè¡æ°æ®ç主é®çç»æâãå æ¤å¾å°äºå¦ä¸çåç±»ï¼"
#. Tag: para
-#: performance.xml:1044
#, no-c-format
msgid "indexed collections"
msgstr "æåºéåç±»"
#. Tag: para
-#: performance.xml:1047
#, no-c-format
msgid "sets"
msgstr "éåï¼setsï¼"
#. Tag: para
-#: performance.xml:1050
#, no-c-format
msgid "bags"
-msgstr "å
ï¼bags)"
+msgstr "å
ï¼bagsï¼"
#. Tag: para
-#: performance.xml:1054
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"All indexed collections (maps, lists, and arrays) have a primary key "
"consisting of the <literal><key></literal> and <literal><index></"
@@ -1956,14 +1636,13 @@
"The primary key can be efficiently indexed and a particular row can be "
"efficiently located when Hibernate tries to update or delete it."
msgstr ""
-"ææçæåºéåç±»ï¼maps, lists, arrays)齿¥æä¸ä¸ªç±<literal><key></"
-"literal>å <literal><index></literal>ç»æç主é®ã è¿ç§æ
åµä¸éåç±»çæ´"
-"æ°æ¯é叏髿çââ主é®å·²ç»è¢«ææçç´¢å¼ï¼å æ¤å½Hibernateè¯å¾æ´æ°æå é¤ä¸è¡æ¶ï¼å¯"
-"以è¿
éæ¾å°è¯¥è¡æ°æ®ã"
+"ææçæåºéåç±»ï¼mapsï¼listsï¼arraysï¼é½æ¥æä¸ä¸ªç± <literal><key></"
+"literal> å <literal><index></literal> ç»æç主é®ãè¿ç§æ
åµä¸éåç±»çæ´"
+"æ°æ¯é叏髿ç â 主é®å·²ç»è¢«ææçç´¢å¼ï¼å æ¤å½ Hibernate è¯å¾æ´æ°æå é¤ä¸è¡"
+"æ¶ï¼å¯ä»¥è¿
éæ¾å°è¯¥è¡æ°æ®ã "
#. Tag: para
-#: performance.xml:1062
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sets have a primary key consisting of <literal><key></literal> and "
"element columns. This can be less efficient for some types of collection "
@@ -1975,26 +1654,24 @@
"<literal><set></literal>, you must declare all columns as <literal>not-"
"null=\"true\"</literal>."
msgstr ""
-"éå(sets)ç主é®ç±<literal><key></literal>åå
¶ä»å
ç´ åæ®µææã å¯¹äºæäº"
-"å
ç´ ç±»åæ¥è¯´ï¼è¿å¾ä½æï¼ç¹å«æ¯ç»åå
ç´ æè
å¤§ææ¬ã大äºè¿å¶åæ®µï¼ æ°æ®åºå¯è½æ "
-"æ³ææç坹夿ç主é®è¿è¡ç´¢å¼ã å¦ä¸æ¹é¢ï¼å¯¹äºä¸å¯¹å¤ãå¤å¯¹å¤å
³èï¼ç¹å«æ¯åæç"
-"æ è¯ç¬¦æ¥è¯´ï¼éåä¹å¯ä»¥è¾¾å°åæ ·ç髿æ§è½ãï¼ éæ³¨ï¼å¦æä½ 叿"
-"<literal>SchemaExport</literal>ä¸ºä½ ç<literal><set></literal>å建主"
-"é®ï¼ ä½ å¿
é¡»æææçåæ®µé½å£°æä¸º<literal>not-null=\"true\"</literal>ãï¼"
+"éåï¼setsï¼ç主é®ç± <literal><key></literal> åå
¶ä»å
ç´ åæ®µææã对äº"
+"æäºå
ç´ ç±»åæ¥è¯´ï¼è¿å¾ä½æï¼ç¹å«æ¯ç»åå
ç´ æè
å¤§ææ¬ã大äºè¿å¶åæ®µï¼æ°æ®åºå¯"
+"è½æ æ³ææç坹夿ç主é®è¿è¡ç´¢å¼ãå¦ä¸æ¹é¢ï¼å¯¹äºä¸å¯¹å¤ãå¤å¯¹å¤å
³èï¼ç¹å«æ¯å"
+"æçæ è¯ç¬¦æ¥è¯´ï¼éåä¹å¯ä»¥è¾¾å°åæ ·ç髿æ§è½ãï¼ éæ³¨ï¼å¦æä½ 叿 "
+"<literal>SchemaExport</literal> ä¸ºä½ ç <literal><set></literal> å建主"
+"é®ï¼ä½ å¿
é¡»æææçåæ®µé½å£°æä¸º <literal>not-null=\"true\"</literal>ãï¼ "
#. Tag: para
-#: performance.xml:1073
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal><idbag></literal> mappings define a surrogate key, so they "
"are efficient to update. In fact, they are the best case."
msgstr ""
-"<literal><idbag></literal>æ å°å®ä¹äºä»£çé®ï¼å æ¤å®æ»æ¯å¯ä»¥å¾é«æç被æ´"
-"æ°ãäºå®ä¸ï¼ <literal><idbag></literal>æ¥æçæå¥½çæ§è½è¡¨ç°ã"
+"<literal><idbag></literal> æ å°å®ä¹äºä»£çé®ï¼å æ¤å®æ»æ¯å¯ä»¥å¾é«æç被æ´"
+"æ°ãäºå®ä¸ï¼<literal><idbag></literal> æ¥æçæå¥½çæ§è½è¡¨ç°ã "
#. Tag: para
-#: performance.xml:1078
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Bags are the worst case since they permit duplicate element values and, as "
"they have no index column, no primary key can be defined. Hibernate has no "
@@ -2002,45 +1679,41 @@
"problem by completely removing in a single <literal>DELETE</literal> and "
"recreating the collection whenever it changes. This can be inefficient."
msgstr ""
-"Bagæ¯æå·®çãå 为bagå
许éå¤çå
ç´ å¼ï¼ä¹æ²¡æç´¢å¼å段ï¼å æ¤ä¸å¯è½å®ä¹ä¸»é®ã "
-"Hibernateæ æ³å¤æåºéå¤çè¡ãå½è¿ç§éåè¢«æ´æ¹æ¶ï¼Hibernateå°ä¼å
宿´å°ç§»é¤ "
-"ï¼éè¿ä¸ä¸ª(in a single <literal>DELETE</literal>)ï¼æ´ä¸ªéåï¼ç¶ååéæ°å建æ´"
-"个éåã å æ¤Bagæ¯é叏使çã"
+"Bag æ¯æå·®çãå 为 bag å
许éå¤çå
ç´ å¼ï¼ä¹æ²¡æç´¢å¼å段ï¼å æ¤ä¸å¯è½å®ä¹ä¸»"
+"é®ã Hibernate æ æ³å¤æåºéå¤çè¡ãå½è¿ç§éåè¢«æ´æ¹æ¶ï¼Hibernate å°ä¼å
宿´å°"
+"ç§»é¤ ï¼éè¿ä¸ä¸ªï¼in a single <literal>DELETE</literal>ï¼ï¼æ´ä¸ªéåï¼ç¶ååé"
+"æ°å建æ´ä¸ªéåãå æ¤ Bag æ¯é叏使çã "
#. Tag: para
-#: performance.xml:1086
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For a one-to-many association, the \"primary key\" may not be the physical "
"primary key of the database table. Even in this case, the above "
"classification is still useful. It reflects how Hibernate \"locates\" "
"individual rows of the collection."
msgstr ""
-"请注æï¼å¯¹äºä¸å¯¹å¤å
³èæ¥è¯´ï¼â主é®âå¾å¯è½å¹¶ä¸æ¯æ°æ®åºè¡¨çç©ç主é®ã ä½å°±ç®å¨æ¤"
-"æ
åµä¸ï¼ä¸é¢çåç±»ä»ç¶æ¯æç¨çãï¼å®ä»ç¶åæ äºHibernateå¨éåçåæ°æ®è¡ä¸æ¯å¦"
-"ä½è¿è¡âå®ä½âçãï¼"
+"请注æï¼å¯¹äºä¸å¯¹å¤å
³èæ¥è¯´ï¼â主é®âå¾å¯è½å¹¶ä¸æ¯æ°æ®åºè¡¨çç©ç主é®ãä½å°±ç®å¨æ¤"
+"æ
åµä¸ï¼ä¸é¢çåç±»ä»ç¶æ¯æç¨çãï¼å®ä»ç¶åæ äº Hibernate å¨éåçåæ°æ®è¡ä¸æ¯"
+"å¦ä½è¿è¡âå®ä½âçãï¼ "
#. Tag: title
-#: performance.xml:1096
#, no-c-format
msgid ""
"Lists, maps, idbags and sets are the most efficient collections to update"
-msgstr "Lists, maps åsetsç¨äºæ´æ°æçæé«"
+msgstr "Listsï¼maps å sets ç¨äºæ´æ°æçæé«"
#. Tag: para
-#: performance.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the discussion above, it should be clear that indexed collections and "
"sets allow the most efficient operation in terms of adding, removing and "
"updating elements."
msgstr ""
-"æ ¹æ®æä»¬ä¸é¢çè®¨è®ºï¼æ¾ç¶æåºéåç±»åå大夿°seté½å¯ä»¥å¨å¢å ãå é¤ãä¿®æ¹å
ç´ ä¸"
-"æ¥ææå¥½çæ§è½ã"
+"æ ¹æ®æä»¬ä¸é¢çè®¨è®ºï¼æ¾ç¶æåºéåç±»åå大夿° set é½å¯ä»¥å¨å¢å ãå é¤ãä¿®æ¹å
ç´ "
+"䏿¥ææå¥½çæ§è½ã "
#. Tag: para
-#: performance.xml:1104
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is, arguably, one more advantage that indexed collections have over "
"sets for many-to-many associations or collections of values. Because of the "
@@ -2050,15 +1723,14 @@
"literal> of individual rows. Once again, this consideration does not apply "
"to one-to-many associations."
msgstr ""
-"å¯è®ºè¯çæ¯å¯¹äºå¤å¯¹å¤å
³èã弿°æ®éåèè¨ï¼æåºéåç±»æ¯éå(set)æä¸ä¸ªå¥½å¤ãå "
-"为<literal>Set</literal>çå
å¨ç»æï¼ å¦æâæ¹åâäºä¸ä¸ªå
ç´ ï¼Hibernateå¹¶ä¸ä¼"
-"<literal>æ´æ°ï¼UPDATEï¼</literal>è¿ä¸è¡ã 对äº<literal>Set</literal>æ¥è¯´ï¼åª"
-"æå¨<literal>æå
¥ï¼INSERTï¼</literal>å<literal>å é¤ï¼DELETEï¼</literal> æä½"
-"æ¶âæ¹åâæææã忬¡å¼ºè°ï¼è¿æ®µè®¨è®ºå¯¹âä¸å¯¹å¤å
³èâå¹¶ä¸éç¨ã"
+"å¯è®ºè¯çæ¯å¯¹äºå¤å¯¹å¤å
³èã弿°æ®éåèè¨ï¼æåºéåç±»æ¯éåï¼setï¼æä¸ä¸ªå¥½å¤ã"
+"å 为 <literal>Set</literal> çå
å¨ç»æï¼ å¦æâæ¹åâäºä¸ä¸ªå
ç´ ï¼Hibernate å¹¶ä¸"
+"ä¼<literal>æ´æ°ï¼UPDATEï¼</literal>è¿ä¸è¡ãå¯¹äº <literal>Set</literal> æ¥è¯´ï¼"
+"åªæå¨<literal>æå
¥ï¼INSERTï¼</literal>å<literal>å é¤ï¼DELETEï¼</literal> æ"
+"使¶âæ¹åâæææã忬¡å¼ºè°ï¼è¿æ®µè®¨è®ºå¯¹âä¸å¯¹å¤å
³èâå¹¶ä¸éç¨ã "
#. Tag: para
-#: performance.xml:1113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After observing that arrays cannot be lazy, you can conclude that lists, "
"maps and idbags are the most performant (non-inverse) collection types, with "
@@ -2066,13 +1738,12 @@
"collection in Hibernate applications. This is because the \"set\" semantics "
"are most natural in the relational model."
msgstr ""
-"注æå°æ°ç»æ æ³å»¶è¿è½½å
¥ï¼æä»¬å¯ä»¥å¾åºç»è®ºï¼list, mapåidbagsæ¯æé«æçï¼éå"
-"åï¼éåç±»åï¼setåç´§éå
¶åã å¨Hibernateä¸ï¼setåºè¯¥æ¶æéç¨çéåç±»åï¼è¿æ¶"
-"å 为âsetâçè¯ä¹å¨å
³ç³»æ¨¡å䏿¯æèªç¶çã"
+"注æå°æ°ç»æ æ³å»¶è¿è½½å
¥ï¼æä»¬å¯ä»¥å¾åºç»è®ºï¼listï¼map å idbags æ¯æé«æçï¼é"
+"ååï¼éåç±»åï¼set åç´§éå
¶åã å¨ Hibernate ä¸ï¼set åºè¯¥æ¶æéç¨çéåç±»"
+"åï¼è¿æ¶å 为âsetâçè¯ä¹å¨å
³ç³»æ¨¡å䏿¯æèªç¶çã "
#. Tag: para
-#: performance.xml:1121
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, in well-designed Hibernate domain models, most collections are in "
"fact one-to-many associations with <literal>inverse=\"true\"</literal>. For "
@@ -2080,19 +1751,17 @@
"association, and so considerations of collection update performance simply "
"do not apply."
msgstr ""
-"使¯ï¼å¨è®¾è®¡è¯å¥½çHibernateé¢å模åä¸ï¼æä»¬é常å¯ä»¥çå°æ´å¤çéåäºå®ä¸æ¯å¸¦æ"
-"<literal>inverse=\"true\"</literal> çä¸å¯¹å¤çå
³èã对äºè¿äºå
³èï¼æ´æ°æä½å°"
-"ä¼å¨å¤å¯¹ä¸çè¿ä¸ç«¯è¿è¡å¤çãå æ¤å¯¹äºæ¤ç±»æ
åµï¼æ éèèå
¶éåçæ´æ°æ§è½ã"
+"使¯ï¼å¨è®¾è®¡è¯å¥½ç Hibernate é¢å模åä¸ï¼æä»¬é常å¯ä»¥çå°æ´å¤çéåäºå®ä¸æ¯å¸¦"
+"æ <literal>inverse=\"true\"</literal> çä¸å¯¹å¤çå
³èã对äºè¿äºå
³èï¼æ´æ°æ"
+"ä½å°ä¼å¨å¤å¯¹ä¸çè¿ä¸ç«¯è¿è¡å¤çãå æ¤å¯¹äºæ¤ç±»æ
åµï¼æ éèèå
¶éåçæ´æ°æ§è½ã "
#. Tag: title
-#: performance.xml:1131
#, no-c-format
msgid "Bags and lists are the most efficient inverse collections"
-msgstr "Bagålistæ¯ååéåç±»ä¸æçæé«ç"
+msgstr "Bag å list æ¯ååéåç±»ä¸æçæé«ç"
#. Tag: para
-#: performance.xml:1133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is a particular case, however, in which bags, and also lists, are much "
"more performant than sets. For a collection with <literal>inverse=\"true\"</"
@@ -2103,119 +1772,99 @@
"literal> must always return true for a bag or <literal>List</literal>. This "
"can make the following common code much faster:"
msgstr ""
-"卿bagæè¿æ°´æ²ä¹åï¼ä½ å¿
é¡»äºè§£ï¼å¨ä¸ç§æ
åµä¸ï¼bagçæ§è½(å
æ¬list)è¦æ¯seté«å¾"
-"å¤ï¼ å¯¹äºææäº<literal>inverse=\"true\"</literal>çéåç±»ï¼æ¯å¦è¯´ï¼æ åçå"
-"åçä¸å¯¹å¤å
³èï¼ï¼ æä»¬å¯ä»¥å¨æªåå§å(fetch)å
å
ç´ çæ
åµä¸ç´æ¥åbagælistæ·»å "
-"æ°å
ç´ ï¼ è¿æ¯å 为<literal>Collection.add()</literal>)æè
<literal>Collection."
-"addAll()</literal> æ¹æ³ 对bagæè
Listæ»æ¯è¿åtrueï¼è¿ç¹ä¸ä¸Setä¸åï¼ãå æ¤å¯¹"
-"äºä¸é¢çç¸åä»£ç æ¥è¯´ï¼é度ä¼å¿«å¾å¤ã"
+"卿 bag æè¿æ°´æ²ä¹åï¼ä½ å¿
é¡»äºè§£ï¼å¨ä¸ç§æ
åµä¸ï¼bag çæ§è½ï¼å
æ¬listï¼è¦æ¯ "
+"set é«å¾å¤ï¼å¯¹äºææäº <literal>inverse=\"true\"</literal> çéåç±»ï¼æ¯å¦è¯´ï¼"
+"æ åçååçä¸å¯¹å¤å
³èï¼ï¼æä»¬å¯ä»¥å¨æªåå§åï¼fetchï¼å
å
ç´ çæ
åµä¸ç´æ¥å "
+"bag æ list æ·»å æ°å
ç´ ï¼ è¿æ¯å 为 <literal>Collection.add()</literal>ï¼æè
"
+"<literal>Collection.addAll()</literal> æ¹æ³å¯¹ bag æè
List æ»æ¯è¿å trueï¼è¿"
+"ç¹ä¸ä¸ Set ä¸åï¼ãå æ¤å¯¹äºä¸é¢çç¸åä»£ç æ¥è¯´ï¼é度ä¼å¿«å¾å¤ã "
-#. Tag: programlisting
-#: performance.xml:1143
-#, no-c-format
-msgid ""
-"<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
-"Child c = new Child();\n"
-"c.setParent(p);\n"
-"p.getChildren().add(c); //no need to fetch the collection!\n"
-"sess.flush();]]>"
-msgstr ""
-
#. Tag: title
-#: performance.xml:1148
#, no-c-format
msgid "One shot delete"
msgstr "䏿¬¡æ§å é¤ï¼One shot deleteï¼"
#. Tag: para
-#: performance.xml:1150
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Deleting collection elements one by one can sometimes be extremely "
"inefficient. Hibernate knows not to do that in the case of an newly-empty "
"collection (if you called <literal>list.clear()</literal>, for example). In "
"this case, Hibernate will issue a single <literal>DELETE</literal>."
msgstr ""
-"å¶å°çï¼é个å é¤éåç±»ä¸çå
ç´ æ¯ç¸å½ä½æçãHibernate并没é£ä¹ç¬¨ï¼ å¦æä½ æ³è¦"
-"ææ´ä¸ªéåé½å é¤ï¼æ¯å¦è¯´è°ç¨list.clear()ï¼ï¼Hibernateåªéè¦ä¸ä¸ªDELETEå°±æå®"
-"äºã"
+"å¶å°çï¼é个å é¤éåç±»ä¸çå
ç´ æ¯ç¸å½ä½æçãHibernate 并没é£ä¹ç¬¨ï¼å¦æä½ æ³è¦"
+"ææ´ä¸ªéåé½å é¤ï¼æ¯å¦è¯´è°ç¨ list.clear()ï¼ï¼Hibernate åªéè¦ä¸ä¸ª DELETE å°±æ"
+"å®äºã "
#. Tag: para
-#: performance.xml:1157
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Suppose you added a single element to a collection of size twenty and then "
"remove two elements. Hibernate will issue one <literal>INSERT</literal> "
"statement and two <literal>DELETE</literal> statements, unless the "
"collection is a bag. This is certainly desirable."
msgstr ""
-"å设æä»¬å¨ä¸ä¸ªé¿åº¦ä¸º20çéåç±»ä¸æ°å¢å äºä¸ä¸ªå
ç´ ï¼ç¶ååå é¤ä¸¤ä¸ªã Hibernate"
-"ä¼å®æä¸æ¡<literal>INSERT</literal>è¯å¥å两æ¡<literal>DELETE</literal>è¯å¥"
-"ï¼é¤ééåç±»æ¯ä¸ä¸ªbag)ã è¿å½ç¶æ¯æ¾èæè§çã"
+"å设æä»¬å¨ä¸ä¸ªé¿åº¦ä¸º20çéåç±»ä¸æ°å¢å äºä¸ä¸ªå
ç´ ï¼ç¶ååå é¤ä¸¤ä¸ªãHibernate "
+"ä¼å®æä¸æ¡ <literal>INSERT</literal> è¯å¥åä¸¤æ¡ <literal>DELETE</literal> è¯"
+"å¥ï¼é¤ééåç±»æ¯ä¸ä¸ª bagï¼ãè¿å½ç¶æ¯ä»¤äººæ»¡æçã "
#. Tag: para
-#: performance.xml:1163
#, no-c-format
msgid ""
"However, suppose that we remove eighteen elements, leaving two and then add "
"thee new elements. There are two possible ways to proceed"
msgstr ""
-"使¯ï¼å设æä»¬å é¤äº18ä¸ªæ°æ®ï¼åªå©ä¸2个ï¼ç¶åæ°å¢3个ãåæä¸¤ç§å¤çæ¹å¼ï¼"
+"使¯ï¼å设æä»¬å é¤äº 18 ä¸ªæ°æ®ï¼åªå©ä¸ 2 个ï¼ç¶åæ°å¢ 3 个ãåæä¸¤ç§å¤çæ¹"
+"å¼ï¼"
#. Tag: para
-#: performance.xml:1170
#, no-c-format
msgid "delete eighteen rows one by one and then insert three rows"
-msgstr "éä¸çå é¤è¿18ä¸ªæ°æ®ï¼åæ°å¢ä¸ä¸ªï¼"
+msgstr "éä¸çå é¤è¿ 18 ä¸ªæ°æ®ï¼åæ°å¢ä¸ä¸ªï¼"
#. Tag: para
-#: performance.xml:1173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"remove the whole collection in one SQL <literal>DELETE</literal> and insert "
"all five current elements one by one"
-msgstr "å 餿´ä¸ªéåç±»ï¼åªç¨ä¸å¥DELETEè¯å¥ï¼ï¼ç¶åå¢å 5ä¸ªæ°æ®ã"
+msgstr "å 餿´ä¸ªéåç±»ï¼åªç¨ä¸å¥ DELETE è¯å¥ï¼ï¼ç¶åé䏿·»å 5 ä¸ªæ°æ®ã"
#. Tag: para
-#: performance.xml:1178
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate cannot know that the second option is probably quicker. It would "
"probably be undesirable for Hibernate to be that intuitive as such behavior "
"might confuse database triggers, etc."
msgstr ""
-"Hibernateè¿æ²¡é£ä¹èªæï¼ç¥é第äºç§éæ©å¯è½ä¼æ¯è¾å¿«ã ï¼ä¹è®¸è®©Hibernateä¸è¿ä¹èª"
-"æä¹æ¯å¥½äºï¼å¦åå¯è½ä¼å¼åæå¤çâæ°æ®åºè§¦åå¨âä¹ç±»çé®é¢ãï¼"
+"Hibernate è¿æ²¡é£ä¹èªæï¼ç¥é第äºç§éæ©å¯è½ä¼æ¯è¾å¿«ãï¼ä¹è®¸è®© Hibernate ä¸è¿ä¹"
+"èªæä¹æ¯å¥½äºï¼å¦åå¯è½ä¼å¼åæå¤çâæ°æ®åºè§¦åå¨âä¹ç±»çé®é¢ãï¼"
#. Tag: para
-#: performance.xml:1184
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Fortunately, you can force this behavior (i.e. the second strategy) at any "
"time by discarding (i.e. dereferencing) the original collection and "
"returning a newly instantiated collection with all the current elements."
msgstr ""
"幸è¿çæ¯ï¼ä½ å¯ä»¥å¼ºå¶ä½¿ç¨ç¬¬äºç§çç¥ãä½ éè¦åæ¶åæ¥çæ´ä¸ªéåç±»ï¼è§£é¤å
¶å¼"
-"ç¨ï¼ï¼ ç¶ååè¿åä¸ä¸ªæ°çå®ä¾åçéåç±»ï¼åªå
å«éè¦çå
ç´ ãæäºæ¶åè¿æ¯é常æ"
-"ç¨çã"
+"ç¨ï¼ï¼ç¶ååè¿åä¸ä¸ªæ°çå®ä¾åçéåç±»ï¼åªå
å«éè¦çå
ç´ ãæäºæ¶åè¿æ¯é常æ"
+"ç¨çã "
#. Tag: para
-#: performance.xml:1190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One-shot-delete does not apply to collections mapped <literal>inverse=\"true"
"\"</literal>."
msgstr ""
-"æ¾ç¶ï¼ä¸æ¬¡æ§å é¤å¹¶ä¸éç¨äºè¢«æ å°ä¸º<literal>inverse=\"true\"</literal>çéåã"
+"æ¾ç¶ï¼ä¸æ¬¡æ§å é¤å¹¶ä¸éç¨äºè¢«æ å°ä¸º <literal>inverse=\"true\"</literal> çé"
+"åã "
#. Tag: title
-#: performance.xml:1199
#, no-c-format
msgid "Monitoring performance"
msgstr "çæµæ§è½ï¼Monitoring performanceï¼"
#. Tag: para
-#: performance.xml:1201
#, no-c-format
msgid ""
"Optimization is not much use without monitoring and access to performance "
@@ -2223,151 +1872,109 @@
"operations. Statistics in Hibernate are available per "
"<literal>SessionFactory</literal>."
msgstr ""
-"没æçæµåæ§è½åæ°èè¿è¡ä¼åæ¯æ¯«æ æä¹çãHibernate为å
¶å
鍿使ä¾äºä¸ç³»åç"
-"示æå¾ï¼å æ¤å¯ä»¥ä» æ¯ä¸ª<literal>SessionFactory</literal>æåå
¶ç»è®¡æ°æ®ã"
+"没æçæµåæ§è½åæ°èè¿è¡ä¼åæ¯æ¯«æ æä¹çãHibernate 为å
¶å
鍿使ä¾äºä¸ç³»å"
+"ç示æå¾ï¼å æ¤å¯ä»¥ä» æ¯ä¸ª <literal>SessionFactory</literal> æåå
¶ç»è®¡æ°æ®ã"
#. Tag: title
-#: performance.xml:1208
#, no-c-format
msgid "Monitoring a SessionFactory"
-msgstr "çæµSessionFactory"
+msgstr "çæµ SessionFactory"
#. Tag: para
-#: performance.xml:1210
#, no-c-format
msgid ""
"You can access <literal>SessionFactory</literal> metrics in two ways. Your "
"first option is to call <literal>sessionFactory.getStatistics()</literal> "
"and read or display the <literal>Statistics</literal> yourself."
msgstr ""
-"ä½ å¯ä»¥æä¸¤ç§æ¹å¼è®¿é®<literal>SessionFactory</literal>çæ°æ®è®°å½ï¼ç¬¬ä¸ç§å°±æ¯èª"
-"å·±ç´æ¥è°ç¨ <literal>sessionFactory.getStatistics()</literal>æ¹æ³è¯»åãæ¾ç¤º"
+"ä½ å¯ä»¥æä¸¤ç§æ¹å¼è®¿é® <literal>SessionFactory</literal> çæ°æ®è®°å½ï¼ç¬¬ä¸ç§å°±æ¯"
+"èªå·±ç´æ¥è°ç¨ <literal>sessionFactory.getStatistics()</literal> æ¹æ³è¯»åãæ¾ç¤º"
"<literal>ç»è®¡</literal>æ°æ®ã"
#. Tag: para
-#: performance.xml:1216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate can also use JMX to publish metrics if you enable the "
"<literal>StatisticsService</literal> MBean. You can enable a single MBean "
"for all your <literal>SessionFactory</literal> or one per factory. See the "
"following code for minimalistic configuration examples:"
msgstr ""
-"æ¤å¤ï¼å¦æä½ æå¼<literal>StatisticsService</literal> MBeané项ï¼é£ä¹Hibernate"
-"åå¯ä»¥ä½¿ç¨JMXææ¯ åå¸å
¶æ°æ®è®°å½ãä½ å¯ä»¥è®©åºç¨ä¸ææç"
-"<literal>SessionFactory</literal>åæ¶å
±äº«ä¸ä¸ªMBeanï¼ä¹å¯ä»¥æ¯ä¸ª SessionFactory"
-"åé
ä¸ä¸ªMBeanãä¸é¢ç代ç 峿¯å
¶æ¼ç¤ºä»£ç ï¼"
+"æ¤å¤ï¼å¦æä½ æå¼ <literal>StatisticsService</literal> MBean é项ï¼é£ä¹ "
+"Hibernate åå¯ä»¥ä½¿ç¨ JMX ææ¯ åå¸å
¶æ°æ®è®°å½ãä½ å¯ä»¥è®©åºç¨ä¸ææç "
+"<literal>SessionFactory</literal> åæ¶å
±äº«ä¸ä¸ª MBeanï¼ä¹å¯ä»¥æ¯ä¸ª "
+"SessionFactory åé
ä¸ä¸ª MBeanãä¸é¢ç代ç 峿¯å
¶æ¼ç¤ºä»£ç ï¼ "
-#. Tag: programlisting
-#: performance.xml:1223
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// MBean service registration for a specific SessionFactory\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"stats.setSessionFactory(sessionFactory); // Bind the stats to a "
-"SessionFactory\n"
-"server.registerMBean(stats, on); // Register the Mbean on the server]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: performance.xml:1226
-#, no-c-format
-msgid ""
-"<![CDATA[// MBean service registration for all SessionFactory's\n"
-"Hashtable tb = new Hashtable();\n"
-"tb.put(\"type\", \"statistics\");\n"
-"tb.put(\"sessionFactory\", \"all\");\n"
-"ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
-"\n"
-"StatisticsService stats = new StatisticsService(); // MBean implementation\n"
-"server.registerMBean(stats, on); // Register the MBean on the server]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1228
-#, fuzzy, no-c-format
-msgid ""
"You can activate and deactivate the monitoring for a "
"<literal>SessionFactory</literal>:"
msgstr ""
-"ä½ å¯ä»¥éè¿ä»¥ä¸æ¹æ³æå¼æå
³é<literal>SessionFactory</literal>ççæµåè½ï¼"
+"ä½ å¯ä»¥éè¿ä»¥ä¸æ¹æ³æå¼æå
³é <literal>SessionFactory</literal> ççæµåè½ï¼ "
#. Tag: para
-#: performance.xml:1233
#, no-c-format
msgid ""
"at configuration time, set <literal>hibernate.generate_statistics</literal> "
"to <literal>false</literal>"
msgstr ""
-"å¨é
ç½®æé´ï¼å°<literal>hibernate.generate_statistics</literal>设置为"
-"<literal>true</literal>æ<literal>false</literal>ï¼"
+"å¨é
ç½®æé´ï¼å° <literal>hibernate.generate_statistics</literal> 设置为 "
+"<literal>true</literal> æ <literal>false</literal>ï¼"
#. Tag: para
-#: performance.xml:1240
#, no-c-format
msgid ""
"at runtime: <literal>sf.getStatistics().setStatisticsEnabled(true)</literal> "
"or <literal>hibernateStatsBean.setStatisticsEnabled(true)</literal>"
msgstr ""
-"å¨è¿è¡æé´ï¼åå¯ä»¥å¯ä»¥éè¿<literal>sf.getStatistics().setStatisticsEnabled"
-"(true)</literal> æ<literal>hibernateStatsBean.setStatisticsEnabled(true)</"
+"å¨è¿è¡æé´ï¼åå¯ä»¥å¯ä»¥éè¿ <literal>sf.getStatistics().setStatisticsEnabled"
+"(true)</literal> æ <literal>hibernateStatsBean.setStatisticsEnabled(true)</"
"literal>"
#. Tag: para
-#: performance.xml:1247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Statistics can be reset programmatically using the <literal>clear()</"
"literal> method. A summary can be sent to a logger (info level) using the "
"<literal>logSummary()</literal> method."
msgstr ""
-"ä½ ä¹å¯ä»¥å¨ç¨åºä¸è°ç¨<literal>clear()</literal>æ¹æ³éç½®ç»è®¡æ°æ®ï¼è°ç¨"
-"<literal>logSummary()</literal> 卿¥å¿ä¸è®°å½ï¼info级å«ï¼å
¶æ»ç»ã"
+"ä½ ä¹å¯ä»¥å¨ç¨åºä¸è°ç¨ <literal>clear()</literal> æ¹æ³éç½®ç»è®¡æ°æ®ï¼è°ç¨ "
+"<literal>logSummary()</literal> 卿¥å¿ä¸è®°å½ï¼info 级å«ï¼å
¶æ»ç»ã "
#. Tag: title
-#: performance.xml:1256
#, no-c-format
msgid "Metrics"
msgstr "æ°æ®è®°å½ï¼Metricsï¼"
#. Tag: para
-#: performance.xml:1258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate provides a number of metrics, from basic information to more "
"specialized information that is only relevant in certain scenarios. All "
"available counters are described in the <literal>Statistics</literal> "
"interface API, in three categories:"
msgstr ""
-"Hibernateæä¾äºä¸ç³»åæ°æ®è®°å½ï¼å
¶è®°å½çå
容å
æ¬ä»æåºæ¬çä¿¡æ¯å°ä¸å
·ä½åºæ¯çç¹"
-"æ®ä¿¡æ¯ãææçæµéå¼é½å¯ä»¥ç± <literal>Statistics</literal>æ¥å£è¿è¡è®¿é®ï¼ä¸»è¦"
-"å为ä¸ç±»ï¼"
+"Hibernate æä¾äºä¸ç³»åæ°æ®è®°å½ï¼å
¶è®°å½çå
容å
æ¬ä»æåºæ¬çä¿¡æ¯å°ä¸å
·ä½åºæ¯ç"
+"ç¹æ®ä¿¡æ¯ãææçæµéå¼é½å¯ä»¥ç± <literal>Statistics</literal> æ¥å£ API è¿è¡è®¿"
+"é®ï¼ä¸»è¦å为ä¸ç±»ï¼"
#. Tag: para
-#: performance.xml:1265
#, no-c-format
msgid ""
"Metrics related to the general <literal>Session</literal> usage, such as "
"number of open sessions, retrieved JDBC connections, etc."
msgstr ""
-"使ç¨<literal>Session</literal>çæ®éæ°æ®è®°å½ï¼ä¾å¦æå¼çSessionç个æ°ãåå¾ç"
-"JDBCçè¿æ¥æ°çï¼"
+"ä½¿ç¨ <literal>Session</literal> çæ®éæ°æ®è®°å½ï¼ä¾å¦æå¼ç Session ç个æ°ãå"
+"å¾ç JDBC çè¿æ¥æ°çï¼"
#. Tag: para
-#: performance.xml:1271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Metrics related to the entities, collections, queries, and caches as a whole "
"(aka global metrics)."
-msgstr "å®ä½ãéåãæ¥è¯¢ãç¼åçå
容çç»ä¸æ°æ®è®°å½"
+msgstr "å®ä½ãéåãæ¥è¯¢ãç¼åçå
容çç»ä¸æ°æ®è®°å½ã"
#. Tag: para
-#: performance.xml:1277
#, no-c-format
msgid ""
"Detailed metrics related to a particular entity, collection, query or cache "
@@ -2375,8 +1982,7 @@
msgstr "åå
·ä½å®ä½ãéåãæ¥è¯¢ãç¼åç¸å
³çè¯¦ç»æ°æ®è®°å½"
#. Tag: para
-#: performance.xml:1284
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For example, you can check the cache hit, miss, and put ratio of entities, "
"collections and queries, and the average time a query needs. Be aware that "
@@ -2385,12 +1991,11 @@
"to 10 seconds."
msgstr ""
"ä¾å¦ï¼ä½ å¯ä»¥æ£æ¥ç¼åçå½ä¸æå次æ°ï¼ç¼åçå½ä¸å¤±è´¥æ¬¡æ°ï¼å®ä½ãéååæ¥è¯¢ç使"
-"ç¨æ¦çï¼æ¥è¯¢ç平忶é´çã请注æ Java䏿¶é´çè¿ä¼¼ç²¾åº¦æ¯æ¯«ç§ãHibernateçæ°æ®"
-"精度åå
·ä½çJVMæå
³ï¼å¨æäºå¹³å°ä¸å
¶ç²¾åº¦çè³åªè½ç²¾ç¡®å°10ç§ã"
+"ç¨æ¦çï¼æ¥è¯¢ç平忶é´çã请注æ Java 䏿¶é´çè¿ä¼¼ç²¾åº¦æ¯æ¯«ç§ãHibernate çæ°"
+"æ®ç²¾åº¦åå
·ä½ç JVM æå
³ï¼å¨æäºå¹³å°ä¸å
¶ç²¾åº¦çè³åªè½ç²¾ç¡®å° 10 ç§ã "
#. Tag: para
-#: performance.xml:1291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Simple getters are used to access the global metrics (i.e. not tied to a "
"particular entity, collection, cache region, etc.). You can access the "
@@ -2402,39 +2007,16 @@
"literal> API Javadoc for more information. The following code is a simple "
"example:"
msgstr ""
-"ä½ å¯ä»¥ç´æ¥ä½¿ç¨getteræ¹æ³å¾å°å
¨å±æ°æ®è®°å½ï¼ä¾å¦ï¼åå
·ä½çå®ä½ãéåãç¼ååºæ "
-"å
³çæ°æ®ï¼ï¼ä½ ä¹å¯ä»¥å¨å
·ä½æ¥è¯¢ä¸éè¿æ è®°å®ä½åã æHQLãSQLè¯å¥å¾å°æå®ä½çæ°"
-"æ®è®°å½ã请åè<literal>Statistics</literal>ã<literal>EntityStatistics</"
-"literal>ã <literal>CollectionStatistics</literal>ã"
-"<literal>SecondLevelCacheStatistics</literal>ã å<literal>QueryStatistics</"
-"literal>çAPIææ¡£ä»¥æåæ´å¤ä¿¡æ¯ãä¸é¢ç代ç åæ¯ä¸ªç®åçä¾åï¼"
+"ä½ å¯ä»¥ç´æ¥ä½¿ç¨ getter æ¹æ³å¾å°å
¨å±æ°æ®è®°å½ï¼ä¾å¦ï¼åå
·ä½çå®ä½ãéåãç¼ååº"
+"æ å
³çæ°æ®ï¼ï¼ä½ ä¹å¯ä»¥å¨å
·ä½æ¥è¯¢ä¸éè¿æ è®°å®ä½åã æ HQLãSQL è¯å¥å¾å°æå®ä½"
+"çæ°æ®è®°å½ã请åè <literal>Statistics</literal>ã<literal>EntityStatistics</"
+"literal>ã<literal>CollectionStatistics</literal>ã"
+"<literal>SecondLevelCacheStatistics</literal> å <literal>QueryStatistics</"
+"literal> ç API ææ¡£ä»¥æåæ´å¤ä¿¡æ¯ãä¸é¢ç代ç åæ¯ä¸ªç®åçä¾åï¼ "
-#. Tag: programlisting
-#: performance.xml:1301
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics();\n"
-"\n"
-"double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
-"double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
-"double queryCacheHitRatio =\n"
-" queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
-"\n"
-"log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
-"\n"
-"EntityStatistics entityStats =\n"
-" stats.getEntityStatistics( Cat.class.getName() );\n"
-"long changes =\n"
-" entityStats.getInsertCount()\n"
-" + entityStats.getUpdateCount()\n"
-" + entityStats.getDeleteCount();\n"
-"log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
-msgstr ""
-
-#. Tag: para
-#: performance.xml:1303
-#, fuzzy, no-c-format
-msgid ""
"You can work on all entities, collections, queries and region caches, by "
"retrieving the list of names of entities, collections, queries and region "
"caches using the following methods: <literal>getQueries()</literal>, "
@@ -2442,43 +2024,455 @@
"literal>, and <literal>getSecondLevelCacheRegionNames()</literal>."
msgstr ""
"å¦æä½ æ³å¾å°ææå®ä½ãéåãæ¥è¯¢åç¼ååºçæ°æ®ï¼ä½ å¯ä»¥éè¿ä»¥ä¸æ¹æ³è·å¾å®ä½ã"
-"éåãæ¥è¯¢åç¼ååºåè¡¨ï¼ <literal>getQueries()</literal>ã"
-"<literal>getEntityNames()</literal>ã <literal>getCollectionRoleNames()</"
-"literal>å <literal>getSecondLevelCacheRegionNames()</literal>ã"
+"éåãæ¥è¯¢åç¼ååºå表ï¼<literal>getQueries()</literal>ã"
+"<literal>getEntityNames()</literal>ã<literal>getCollectionRoleNames()</"
+"literal> å <literal>getSecondLevelCacheRegionNames()</literal>ã"
#~ msgid ""
-#~ "where <literal>CatImpl</literal> implements the interface <literal>Cat</"
-#~ "literal> and <literal>DomesticCatImpl</literal> implements the interface "
-#~ "<literal>DomesticCat</literal>. Then proxies for instances of "
-#~ "<literal>Cat</literal> and <literal>DomesticCat</literal> may be returned "
-#~ "by <literal>load()</literal> or <literal>iterate()</literal>. (Note that "
-#~ "<literal>list()</literal> does not usually return proxies.)"
+#~ "This setting creates two new cache regions: one holding cached query "
+#~ "result sets (<literal>org.hibernate.cache.StandardQueryCache</literal>), "
+#~ "the other holding timestamps of the most recent updates to queryable "
+#~ "tables (<literal>org.hibernate.cache.UpdateTimestampsCache</literal>). "
+#~ "Note that the query cache does not cache the state of the actual entities "
+#~ "in the result set; it caches only identifier values and results of value "
+#~ "type. The query cache should always be used in conjunction with the "
+#~ "second-level cache."
#~ msgstr ""
-#~ "è¿é<literal>CatImpl</literal>å®ç°äº<literal>Cat</literal>æ¥å£ï¼ "
-#~ "<literal>DomesticCatImpl</literal>å®ç°<literal>DomesticCat</literal>æ¥"
-#~ "å£ã å¨<literal>load()</literal>ã<literal>iterate()</literal>æ¹æ³ä¸å°±ä¼è¿"
-#~ "å <literal>Cat</literal>å<literal>DomesticCat</literal>ç代ç对象ã (注"
-#~ "æ<literal>list()</literal>å¹¶ä¸ä¼è¿å代ç对象ã)"
+#~ "该设置å°ä¼å建两个ç¼ååºå â ä¸ä¸ªç¨äºä¿åæ¥è¯¢ç»æéï¼<literal>org."
+#~ "hibernate.cache.StandardQueryCache</literal>ï¼ï¼ å¦ä¸ä¸ªåç¨äºä¿åæè¿æ¥è¯¢"
+#~ "çä¸ç³»åè¡¨çæ¶é´æ³ï¼<literal>org.hibernate.cache.UpdateTimestampsCache</"
+#~ "literal>ï¼ã请注æï¼å¨æ¥è¯¢ç¼åä¸ï¼å®å¹¶ä¸ç¼åç»æé䏿å
å«çå®ä½çç¡®åç¶"
+#~ "æï¼å®åªç¼åè¿äºå®ä½çæ è¯ç¬¦å±æ§çå¼ã以ååå¼ç±»åçç»æãæä»¥æ¥è¯¢ç¼åé常"
+#~ "ä¼åäºçº§ç¼åä¸èµ·ä½¿ç¨ã "
#~ msgid ""
-#~ "We've already spent quite some time talking about collections. In this "
-#~ "section we will highlight a couple more issues about how collections "
-#~ "behave at runtime."
+#~ "<![CDATA[s = sessions.openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ " \n"
+#~ "User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
+#~ " .setString(\"userName\", userName).uniqueResult();\n"
+#~ "Map permissions = u.getPermissions();\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();\n"
+#~ "\n"
+#~ "Integer accessLevel = (Integer) permissions.get(\"accounts\"); // "
+#~ "Error!]]>"
#~ msgstr ""
-#~ "å颿们已ç»å¯¹éåè¿è¡äºè¶³å¤çè®¨è®ºãæ¬æ®µä¸ï¼æä»¬å°çé讲述éåå¨è¿è¡æ¶çäº"
-#~ "å®ã"
+#~ "<![CDATA[s = sessions.openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ " \n"
+#~ "User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n"
+#~ " .setString(\"userName\", userName).uniqueResult();\n"
+#~ "Map permissions = u.getPermissions();\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();\n"
+#~ "\n"
+#~ "Integer accessLevel = (Integer) permissions.get(\"accounts\"); // "
+#~ "Error!]]>"
#~ msgid ""
-#~ "TODO: This doesn't make sense: In the first case, we retrieve and use the "
-#~ "MBean directly. In the second one, we must give the JNDI name in which "
-#~ "the session factory is held before using it. Use "
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal>"
+#~ "<![CDATA[<set name=\"permissions\" \n"
+#~ " fetch=\"join\">\n"
+#~ " <key column=\"userId\"/>\n"
+#~ " <one-to-many class=\"Permission\"/>\n"
+#~ "</set]]>"
#~ msgstr ""
-#~ "TODOï¼ä»éè¦è¯´æçæ¯ï¼å¨ç¬¬ä¸ä¸ªä¾åä¸ï¼æä»¬ç´æ¥å¾å°å使ç¨MBeanï¼èå¨ç¬¬äºä¸ª"
-#~ "ä¾åä¸ï¼å¨ä½¿ç¨MBeanä¹å æä»¬åéè¦ç»åºSessionFactoryçJNDIåï¼ä½¿ç¨"
-#~ "<literal>hibernateStatsBean.setSessionFactoryJNDIName(\"my/JNDI/Name\")</"
-#~ "literal> å¾å°SessionFactoryï¼ç¶åå°MBeanä¿åäºå
¶ä¸ã"
+#~ "<![CDATA[<set name=\"permissions\" \n"
+#~ " fetch=\"join\">\n"
+#~ " <key column=\"userId\"/>\n"
+#~ " <one-to-many class=\"Permission\"/>\n"
+#~ "</set]]>"
-#~ msgid "yes"
-#~ msgstr "yes"
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<many-to-one name=\"mother\" class=\"Cat\" fetch=\"join\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[User user = (User) session.createCriteria(User.class)\n"
+#~ " .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
+#~ " .add( Restrictions.idEq(userId) )\n"
+#~ " .uniqueResult();]]>"
+#~ msgstr ""
+#~ "<![CDATA[User user = (User) session.createCriteria(User.class)\n"
+#~ " .setFetchMode(\"permissions\", FetchMode.JOIN)\n"
+#~ " .add( Restrictions.idEq(userId) )\n"
+#~ " .uniqueResult();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Cat\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
+#~ "proxy (does not hit the db)\n"
+#~ "if ( cat.isDomesticCat() ) { // hit the db to initialize "
+#~ "the proxy\n"
+#~ " DomesticCat dc = (DomesticCat) cat; // Error!\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // instantiate a "
+#~ "proxy (does not hit the db)\n"
+#~ "if ( cat.isDomesticCat() ) { // hit the db to initialize "
+#~ "the proxy\n"
+#~ " DomesticCat dc = (DomesticCat) cat; // Error!\n"
+#~ " ....\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
+#~ "instantiate a Cat proxy\n"
+#~ "DomesticCat dc = \n"
+#~ " (DomesticCat) session.load(DomesticCat.class, id); // acquire "
+#~ "new DomesticCat proxy!\n"
+#~ "System.out.println(cat==dc); // false]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(Cat.class, id); // "
+#~ "instantiate a Cat proxy\n"
+#~ "DomesticCat dc = \n"
+#~ " (DomesticCat) session.load(DomesticCat.class, id); // acquire "
+#~ "new DomesticCat proxy!\n"
+#~ "System.out.println(cat==dc); // false]]>"
+
+#~ msgid ""
+#~ "<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
+#~ "System.out.println( dc.getWeight() ); // 11.0]]>"
+#~ msgstr ""
+#~ "<![CDATA[cat.setWeight(11.0); // hit the db to initialize the proxy\n"
+#~ "System.out.println( dc.getWeight() ); // 11.0]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"CatImpl\" proxy=\"Cat\">\n"
+#~ " ......\n"
+#~ " <subclass name=\"DomesticCatImpl\" proxy=\"DomesticCat\">\n"
+#~ " .....\n"
+#~ " </subclass>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
+#~ "Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
+#~ "name='fritz'\").iterate();\n"
+#~ "Cat fritz = (Cat) iter.next();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);\n"
+#~ "Iterator iter = session.createQuery(\"from CatImpl as cat where cat."
+#~ "name='fritz'\").iterate();\n"
+#~ "Cat fritz = (Cat) iter.next();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" )."
+#~ "list().get(0) ).intValue()]]>"
+#~ msgstr ""
+#~ "<![CDATA[( (Integer) s.createFilter( collection, \"select count(*)\" )."
+#~ "list().get(0) ).intValue()]]>"
+
+#~ msgid ""
+#~ "<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
+#~ "setMaxResults(10).list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[s.createFilter( lazyCollection, \"\").setFirstResult(0)."
+#~ "setMaxResults(10).list();]]>"
+
+#~ msgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
+#~ msgstr "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <set name=\"cats\" batch-size=\"3\">\n"
+#~ " ...\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <set name=\"cats\" batch-size=\"3\">\n"
+#~ " ...\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Document\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
+#~ " <property name=\"summary\" not-null=\"true\" length=\"200\" lazy="
+#~ "\"true\"/>\n"
+#~ " <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true"
+#~ "\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Document\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\" length=\"50\"/>\n"
+#~ " <property name=\"summary\" not-null=\"true\" length=\"200\" lazy="
+#~ "\"true\"/>\n"
+#~ " <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true"
+#~ "\"/>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
+#~ " <taskdef name=\"instrument\" classname=\"org.hibernate.tool."
+#~ "instrument.InstrumentTask\">\n"
+#~ " <classpath path=\"${jar.path}\"/>\n"
+#~ " <classpath path=\"${classes.dir}\"/>\n"
+#~ " <classpath refid=\"lib.class.path\"/>\n"
+#~ " </taskdef>\n"
+#~ "\n"
+#~ " <instrument verbose=\"true\">\n"
+#~ " <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
+#~ " <include name=\"*.class\"/>\n"
+#~ " </fileset>\n"
+#~ " </instrument>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<target name=\"instrument\" depends=\"compile\">\n"
+#~ " <taskdef name=\"instrument\" classname=\"org.hibernate.tool."
+#~ "instrument.InstrumentTask\">\n"
+#~ " <classpath path=\"${jar.path}\"/>\n"
+#~ " <classpath path=\"${classes.dir}\"/>\n"
+#~ " <classpath refid=\"lib.class.path\"/>\n"
+#~ " </taskdef>\n"
+#~ "\n"
+#~ " <instrument verbose=\"true\">\n"
+#~ " <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n"
+#~ " <include name=\"*.class\"/>\n"
+#~ " </fileset>\n"
+#~ " </instrument>\n"
+#~ "</target>]]>"
+
+#~ msgid "<entry>yes</entry>"
+#~ msgstr "<entry>yes</entry>"
+
+#~ msgid ""
+#~ "<![CDATA[<cache \n"
+#~ " usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
+#~ " region=\"RegionName\"\n"
+#~ " include=\"all|non-lazy\"\n"
+#~ "/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<cache \n"
+#~ " usage=\"transactional|read-write|nonstrict-read-write|read-only\"\n"
+#~ " region=\"RegionName\"\n"
+#~ " include=\"all|non-lazy\"\n"
+#~ "/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
+#~ " <cache usage=\"read-only\"/>\n"
+#~ " ....\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Immutable\" mutable=\"false\">\n"
+#~ " <cache usage=\"read-only\"/>\n"
+#~ " ....\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"eg.Cat\" .... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"kittens\" ... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"eg.Cat\" .... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " <set name=\"kittens\" ... >\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " ....\n"
+#~ " </set>\n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\")."
+#~ "scroll(); //a huge result set\n"
+#~ "while ( cats.next() ) {\n"
+#~ " Cat cat = (Cat) cats.get(0);\n"
+#~ " doSomethingWithACat(cat);\n"
+#~ " sess.evict(cat);\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[ScrollableResult cats = sess.createQuery(\"from Cat as cat\")."
+#~ "scroll(); //a huge result set\n"
+#~ "while ( cats.next() ) {\n"
+#~ " Cat cat = (Cat) cats.get(0);\n"
+#~ " doSomethingWithACat(cat);\n"
+#~ " sess.evict(cat);\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular "
+#~ "Cat\n"
+#~ "sessionFactory.evict(Cat.class); //evict all Cats\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a "
+#~ "particular collection of kittens\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
+#~ "collections]]>"
+#~ msgstr ""
+#~ "<![CDATA[sessionFactory.evict(Cat.class, catId); //evict a particular "
+#~ "Cat\n"
+#~ "sessionFactory.evict(Cat.class); //evict all Cats\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\", catId); //evict a "
+#~ "particular collection of kittens\n"
+#~ "sessionFactory.evictCollection(\"Cat.kittens\"); //evict all kitten "
+#~ "collections]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
+#~ " .getSecondLevelCacheStatistics(regionName)\n"
+#~ " .getEntries();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Map cacheEntries = sessionFactory.getStatistics()\n"
+#~ " .getSecondLevelCacheStatistics(regionName)\n"
+#~ " .getEntries();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[hibernate.generate_statistics true\n"
+#~ "hibernate.cache.use_structured_entries true]]>"
+#~ msgstr ""
+#~ "<![CDATA[hibernate.generate_statistics true\n"
+#~ "hibernate.cache.use_structured_entries true]]>"
+
+#~ msgid "<![CDATA[hibernate.cache.use_query_cache true]]>"
+#~ msgstr "<![CDATA[hibernate.cache.use_query_cache true]]>"
+
+#~ msgid ""
+#~ "<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog."
+#~ "blogger = :blogger\")\n"
+#~ " .setEntity(\"blogger\", blogger)\n"
+#~ " .setMaxResults(15)\n"
+#~ " .setCacheable(true)\n"
+#~ " .setCacheRegion(\"frontpages\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[List blogs = sess.createQuery(\"from Blog blog where blog."
+#~ "blogger = :blogger\")\n"
+#~ " .setEntity(\"blogger\", blogger)\n"
+#~ " .setMaxResults(15)\n"
+#~ " .setCacheable(true)\n"
+#~ " .setCacheRegion(\"frontpages\")\n"
+#~ " .list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
+#~ "Child c = new Child();\n"
+#~ "c.setParent(p);\n"
+#~ "p.getChildren().add(c); //no need to fetch the collection!\n"
+#~ "sess.flush();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Parent p = (Parent) sess.load(Parent.class, id);\n"
+#~ "Child c = new Child();\n"
+#~ "c.setParent(p);\n"
+#~ "p.getChildren().add(c); //no need to fetch the collection!\n"
+#~ "sess.flush();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// MBean service registration for a specific SessionFactory\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "stats.setSessionFactory(sessionFactory); // Bind the stats to a "
+#~ "SessionFactory\n"
+#~ "server.registerMBean(stats, on); // Register the Mbean on the server]]>"
+#~ msgstr ""
+#~ "<![CDATA[// MBean service registration for a specific SessionFactory\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"myFinancialApp\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "stats.setSessionFactory(sessionFactory); // Bind the stats to a "
+#~ "SessionFactory\n"
+#~ "server.registerMBean(stats, on); // Register the Mbean on the server]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// MBean service registration for all SessionFactory's\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"all\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "server.registerMBean(stats, on); // Register the MBean on the server]]>"
+#~ msgstr ""
+#~ "<![CDATA[// MBean service registration for all SessionFactory's\n"
+#~ "Hashtable tb = new Hashtable();\n"
+#~ "tb.put(\"type\", \"statistics\");\n"
+#~ "tb.put(\"sessionFactory\", \"all\");\n"
+#~ "ObjectName on = new ObjectName(\"hibernate\", tb); // MBean object name\n"
+#~ "\n"
+#~ "StatisticsService stats = new StatisticsService(); // MBean "
+#~ "implementation\n"
+#~ "server.registerMBean(stats, on); // Register the MBean on the server]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics"
+#~ "();\n"
+#~ "\n"
+#~ "double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
+#~ "double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
+#~ "double queryCacheHitRatio =\n"
+#~ " queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
+#~ "\n"
+#~ "log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
+#~ "\n"
+#~ "EntityStatistics entityStats =\n"
+#~ " stats.getEntityStatistics( Cat.class.getName() );\n"
+#~ "long changes =\n"
+#~ " entityStats.getInsertCount()\n"
+#~ " + entityStats.getUpdateCount()\n"
+#~ " + entityStats.getDeleteCount();\n"
+#~ "log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
+#~ msgstr ""
+#~ "<![CDATA[Statistics stats = HibernateUtil.sessionFactory.getStatistics"
+#~ "();\n"
+#~ "\n"
+#~ "double queryCacheHitCount = stats.getQueryCacheHitCount();\n"
+#~ "double queryCacheMissCount = stats.getQueryCacheMissCount();\n"
+#~ "double queryCacheHitRatio =\n"
+#~ " queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);\n"
+#~ "\n"
+#~ "log.info(\"Query Hit ratio:\" + queryCacheHitRatio);\n"
+#~ "\n"
+#~ "EntityStatistics entityStats =\n"
+#~ " stats.getEntityStatistics( Cat.class.getName() );\n"
+#~ "long changes =\n"
+#~ " entityStats.getInsertCount()\n"
+#~ " + entityStats.getUpdateCount()\n"
+#~ " + entityStats.getDeleteCount();\n"
+#~ "log.info(Cat.class.getName() + \" changed \" + changes + \"times\" );]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/persistent_classes.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/persistent_classes.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/persistent_classes.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,27 @@
+# translation of persistent_classes.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: persistent_classes\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-07 09:36+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: persistent_classes.xml:29
#, no-c-format
msgid "Persistent Classes"
-msgstr "æä¹
åç±»(Persistent Classes)"
+msgstr "æä¹
åç±»ï¼Persistent Classesï¼"
#. Tag: para
-#: persistent_classes.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent classes are classes in an application that implement the entities "
"of the business problem (e.g. Customer and Order in an E-commerce "
@@ -26,13 +29,12 @@
"in the persistent state. For example, an instance can instead be transient "
"or detached."
msgstr ""
-"å¨åºç¨ç¨åºä¸ï¼ç¨æ¥å®ç°ä¸å¡é®é¢å®ä½çï¼å¦ï¼å¨çµååå¡åºç¨ç¨åºä¸çCustomerå"
-"Orderï¼ ç±»å°±æ¯æä¹
åç±»ãä¸è½è®¤ä¸ºææçæä¹
åç±»çå®ä¾é½æ¯æä¹
çç¶æââä¸ä¸ªå®ä¾"
-"çç¶æä¹å¯è½ æ¯ç¬æ¶çæè±ç®¡çã"
+"å¨åºç¨ç¨åºä¸ï¼ç¨æ¥å®ç°ä¸å¡é®é¢å®ä½çï¼å¦ï¼å¨çµååå¡åºç¨ç¨åºä¸ç Customer å "
+"Orderï¼ç±»å°±æ¯æä¹
åç±»ãä¸è½è®¤ä¸ºææçæä¹
åç±»çå®ä¾é½æ¯æä¹
çç¶æ - ä¸ä¸ªå®ä¾"
+"çç¶æä¹å¯è½æ¯ç¬æ¶çæè±ç®¡çã"
#. Tag: para
-#: persistent_classes.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate works best if these classes follow some simple rules, also known "
"as the Plain Old Java Object (POJO) programming model. However, none of "
@@ -40,126 +42,37 @@
"about the nature of your persistent objects. You can express a domain model "
"in other ways (using trees of <literal>Map</literal> instances, for example)."
msgstr ""
-"妿è¿äºæä¹
åç±»éµå¾ªä¸äºç®åçè§åï¼Hibernateè½å¤å·¥ä½å¾æ´å¥½ï¼è¿äºè§åä¹è¢«ç§°"
-"ä½ ç®åä¼ ç»Java对象(POJO:Plain Old Java Object)ç¼ç¨æ¨¡åã使¯è¿äºè§å并䏿¯å¿
"
-"éçã å®é
ä¸ï¼Hibernate3对äºä½ çæä¹
åç±»å ä¹ä¸åä»»ä½è®¾æ³ãä½ å¯ä»¥ç¨å
¶ä»çæ¹æ³"
-"æ¥è¡¨è¾¾é¢å模åï¼ æ¯å¦ï¼ä½¿ç¨<literal>Map</literal>å®ä¾çæ åç»æã"
+"妿è¿äºæä¹
åç±»éµå¾ªä¸äºç®åçè§åï¼Hibernate è½å¤å·¥ä½å¾æ´å¥½ï¼è¿äºè§åä¹è¢«ç§°"
+"ä½ç®åä¼ ç» Java 对象ï¼POJO:Plain Old Java Objectï¼ç¼ç¨æ¨¡åã使¯è¿äºè§åå¹¶ä¸"
+"æ¯å¿
éçã å®é
ä¸ï¼Hibernate3 对äºä½ çæä¹
åç±»å ä¹ä¸åä»»ä½è®¾æ³ãä½ å¯ä»¥ç¨å
¶ä»"
+"çæ¹æ³æ¥è¡¨è¾¾é¢å模åï¼æ¯å¦ï¼ä½¿ç¨ <literal>Map</literal> å®ä¾çæ åç»æã"
#. Tag: title
-#: persistent_classes.xml:47
#, no-c-format
msgid "A simple POJO example"
-msgstr "ä¸ä¸ªç®åçPOJOä¾å"
+msgstr "ä¸ä¸ªç®åç POJO ä¾å"
#. Tag: para
-#: persistent_classes.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Most Java applications require a persistent class representing felines. For "
"example:"
-msgstr "大夿°Javaç¨åºéè¦ç¨ä¸ä¸ªæä¹
åç±»æ¥è¡¨ç¤ºç«ç§å¨ç©ã"
+msgstr "大夿° Java ç¨åºéè¦ç¨ä¸ä¸ªæä¹
åç±»æ¥è¡¨ç¤ºç«ç§å¨ç©ãä¾å¦ï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:53
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"import java.util.Set;\n"
-"import java.util.Date;\n"
-"\n"
-"public class Cat {\n"
-" private Long id; // identifier\n"
-"\n"
-" private Date birthdate;\n"
-" private Color color;\n"
-" private char sex;\n"
-" private float weight;\n"
-" private int litterId;\n"
-"\n"
-" private Cat mother;\n"
-" private Set kittens = new HashSet();\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id=id;\n"
-" }\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" void setBirthdate(Date date) {\n"
-" birthdate = date;\n"
-" }\n"
-" public Date getBirthdate() {\n"
-" return birthdate;\n"
-" }\n"
-"\n"
-" void setWeight(float weight) {\n"
-" this.weight = weight;\n"
-" }\n"
-" public float getWeight() {\n"
-" return weight;\n"
-" }\n"
-"\n"
-" public Color getColor() {\n"
-" return color;\n"
-" }\n"
-" void setColor(Color color) {\n"
-" this.color = color;\n"
-" }\n"
-"\n"
-" void setSex(char sex) {\n"
-" this.sex=sex;\n"
-" }\n"
-" public char getSex() {\n"
-" return sex;\n"
-" }\n"
-"\n"
-" void setLitterId(int id) {\n"
-" this.litterId = id;\n"
-" }\n"
-" public int getLitterId() {\n"
-" return litterId;\n"
-" }\n"
-"\n"
-" void setMother(Cat mother) {\n"
-" this.mother = mother;\n"
-" }\n"
-" public Cat getMother() {\n"
-" return mother;\n"
-" }\n"
-" void setKittens(Set kittens) {\n"
-" this.kittens = kittens;\n"
-" }\n"
-" public Set getKittens() {\n"
-" return kittens;\n"
-" }\n"
-" \n"
-" // addKitten not needed by Hibernate\n"
-" public void addKitten(Cat kitten) {\n"
-" kitten.setMother(this);\n"
-" kitten.setLitterId( kittens.size() ); \n"
-" kittens.add(kitten);\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:55
#, no-c-format
msgid ""
"The four main rules of persistent classes are explored in more detail in the "
"following sections."
-msgstr ""
+msgstr "å¨åç»çç« èéæä»¬å°ä»ç»æä¹
æ§ç±»ç 4 个主è¦è§åçæ´å¤ç»èã"
#. Tag: title
-#: persistent_classes.xml:61
#, no-c-format
msgid "Implement a no-argument constructor"
msgstr "å®ç°ä¸ä¸ªé»è®¤çï¼å³æ åæ°çï¼æé æ¹æ³ï¼constructorï¼"
#. Tag: para
-#: persistent_classes.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a no-argument constructor. All persistent classes "
"must have a default constructor (which can be non-public) so that Hibernate "
@@ -168,21 +81,19 @@
"<emphasis>package</emphasis> visibility for runtime proxy generation in "
"Hibernate."
msgstr ""
-"<literal>Cat</literal>æä¸ä¸ªæ åæ°çæé æ¹æ³ãææçæä¹
åç±»é½å¿
é¡»æä¸ä¸ª é»è®¤"
-"çæé æ¹æ³ï¼å¯ä»¥ä¸æ¯publicçï¼ï¼è¿æ ·çè¯Hibernateå°±å¯ä»¥ä½¿ç¨ "
-"<literal>Constructor.newInstance()</literal>æ¥å®ä¾åå®ä»¬ã æä»¬å¼ºç建议ï¼å¨"
-"Hibernateä¸ï¼ä¸ºäºè¿è¡æä»£çççæï¼æé æ¹æ³è³å°æ¯ <emphasis>å
(package)</"
+"<literal>Cat</literal> æä¸ä¸ªæ åæ°çæé æ¹æ³ãææçæä¹
åç±»é½å¿
é¡»æä¸ä¸ªé»è®¤"
+"çæé æ¹æ³ï¼å¯ä»¥ä¸æ¯ public çï¼ï¼è¿æ ·çè¯ Hibernate å°±å¯ä»¥ä½¿ç¨ "
+"<literal>Constructor.newInstance(ï¼</literal>æ¥å®ä¾åå®ä»¬ã æä»¬å¼ºç建议ï¼å¨ "
+"Hibernate ä¸ï¼ä¸ºäºè¿è¡æä»£çççæï¼æé æ¹æ³è³å°æ¯<emphasis>å
ï¼packageï¼</"
"emphasis>å
å¯è§çã"
#. Tag: title
-#: persistent_classes.xml:73
#, no-c-format
msgid "Provide an identifier property (optional)"
msgstr "æä¾ä¸ä¸ªæ è¯å±æ§ï¼identifier propertyï¼ï¼å¯éï¼"
#. Tag: para
-#: persistent_classes.xml:75
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> has a property called <literal>id</literal>. This "
"property maps to the primary key column of a database table. The property "
@@ -192,94 +103,85 @@
"composite keys, you can use a user-defined class with properties of these "
"types (see the section on composite identifiers later in the chapter.)"
msgstr ""
-"<literal>Cat</literal>æä¸ä¸ªå±æ§å«å<literal>id</literal>ãè¿ä¸ªå±æ§æ å°æ°æ®åº"
-"表ç主 é®å段ãè¿ä¸ªå±æ§å¯ä»¥å«ä»»ä½ååï¼å
¶ç±»åå¯ä»¥æ¯ä»»ä½çåå§ç±»åãåå§ç±»åç"
-"å
è£
ç±»åã <literal>java.lang.String</literal> æè
æ¯ <literal>java.util."
-"Date</literal>ã ï¼å¦æä½ çéçæ°æ®åºè¡¨æèå主é®ï¼ä½ çè³å¯ä»¥ç¨ä¸ä¸ªç¨æ·èªå®ä¹"
-"çç±»ï¼è¯¥ç±»æ¥æè¿äºç±»å ç屿§ãåè§åé¢çå
³äºèåæ è¯ç¬¦çç« èãï¼"
+"<literal>Cat</literal> æä¸ä¸ªå±æ§å«å <literal>id</literal>ãè¿ä¸ªå±æ§æ å°æ°æ®"
+"åºè¡¨ç主 é®å段ãè¿ä¸ªå±æ§å¯ä»¥å«ä»»ä½ååï¼å
¶ç±»åå¯ä»¥æ¯ä»»ä½çåå§ç±»åãåå§ç±»å"
+"çå
è£
ç±»åã <literal>java.lang.String</literal> æè
æ¯ <literal>java.util."
+"Date</literal>ãï¼å¦æä½ çéçæ°æ®åºè¡¨æèå主é®ï¼ä½ çè³å¯ä»¥ç¨ä¸ä¸ªç¨æ·èªå®ä¹"
+"çç±»ï¼è¯¥ç±»æ¥æè¿äºç±»åç屿§ãåè§åé¢çå
³äºèåæ è¯ç¬¦çç« èãï¼"
#. Tag: para
-#: persistent_classes.xml:84
#, no-c-format
msgid ""
"The identifier property is strictly optional. You can leave them off and let "
"Hibernate keep track of object identifiers internally. We do not recommend "
"this, however."
msgstr ""
-"æ è¯ç¬¦å±æ§æ¯å¯éçãå¯ä»¥ä¸ç¨ç®¡å®ï¼è®©Hibernateå
鍿¥è¿½è¸ªå¯¹è±¡çè¯å«ã 使¯æä»¬"
-"并䏿¨èè¿æ ·åã"
+"æ è¯ç¬¦å±æ§æ¯å¯éçãå¯ä»¥ä¸ç¨ç®¡å®ï¼è®© Hibernate å
鍿¥è¿½è¸ªå¯¹è±¡çè¯å«ã 使¯æ"
+"们并䏿¨èè¿æ ·åã"
#. Tag: para
-#: persistent_classes.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In fact, some functionality is available only to classes that declare an "
"identifier property:"
-msgstr "å®é
ä¸ï¼ä¸äºåè½åªå¯¹é£äºå£°æäºæ è¯ç¬¦å±æ§ç类起ä½ç¨ï¼"
+msgstr "å®é
ä¸ï¼ä¸äºåè½åªå¯¹é£äºå£°æäºæ è¯ç¬¦å±æ§ç类起ä½ç¨ï¼ "
#. Tag: para
-#: persistent_classes.xml:96
#, fuzzy, no-c-format
msgid ""
"Transitive reattachment for detached objects (cascade update or cascade "
-"merge) - see"
+"merge) - see <xref linkend=\"objectstate-transitive\" />"
msgstr ""
-"æç®¡å¯¹è±¡çä¼ ææ§åè¿æ¥ï¼çº§èæ´æ°æçº§èåå¹¶ï¼ ââåé
<xref linkend="
+"æç®¡å¯¹è±¡çä¼ ææ§åè¿æ¥ï¼çº§èæ´æ°æçº§èåå¹¶ï¼ â åé
<xref linkend="
"\"objectstate-transitive\"/>"
-#. Tag: literal
-#: persistent_classes.xml:103
-#, no-c-format
-msgid "Session.saveOrUpdate()"
-msgstr "Session.saveOrUpdate()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.saveOrUpdate()</literal>"
+msgstr "<literal>Session.saveOrUpdate()</literal>"
-#. Tag: literal
-#: persistent_classes.xml:108
-#, no-c-format
-msgid "Session.merge()"
-msgstr "Session.merge()"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>Session.merge()</literal>"
+msgstr "<literal>Session.merge()</literal>"
#. Tag: para
-#: persistent_classes.xml:113
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We recommend that you declare consistently-named identifier properties on "
"persistent classes and that you use a nullable (i.e., non-primitive) type."
msgstr ""
-"æä»¬å»ºè®®ä½ 对æä¹
å类声æå½åä¸è´çæ è¯å±æ§ãæä»¬è¿å»ºè®®ä½ 使ç¨ä¸ 个å¯ä»¥ä¸ºç©ºï¼ä¹"
-"å°±æ¯è¯´ï¼ä¸æ¯åå§ç±»åï¼çç±»åã"
+"æä»¬å»ºè®®ä½ 对æä¹
å类声æå½åä¸è´çæ è¯å±æ§ãæä»¬è¿å»ºè®®ä½ 使ç¨ä¸ä¸ªå¯ä»¥ä¸ºç©ºï¼ä¹"
+"å°±æ¯è¯´ï¼ä¸æ¯åå§ç±»åï¼çç±»åã "
#. Tag: title
-#: persistent_classes.xml:120
#, no-c-format
msgid "Prefer non-final classes (optional)"
-msgstr "使ç¨éfinalçç±» (å¯é)"
+msgstr "使ç¨éfinalçç±»ï¼å¯éï¼"
#. Tag: para
-#: persistent_classes.xml:121
#, no-c-format
msgid ""
"A central feature of Hibernate, <emphasis>proxies</emphasis>, depends upon "
"the persistent class being either non-final, or the implementation of an "
"interface that declares all public methods."
msgstr ""
-"<emphasis>代çï¼proxiesï¼</emphasis>æ¯Hibernateçä¸ä¸ªéè¦çåè½ï¼å®ä¾èµçæ¡ä»¶"
-"æ¯ï¼æä¹
åç±»æè
æ¯éfinalçï¼æè
æ¯å®ç°äºä¸ä¸ªæææ¹æ³é½å£°æä¸ºpublicçæ¥å£ã"
+"<emphasis>代çï¼proxiesï¼</emphasis>æ¯ Hibernate çä¸ä¸ªéè¦çåè½ï¼å®ä¾èµçæ¡"
+"ä»¶æ¯ï¼æä¹
åç±»æè
æ¯é final çï¼æè
æ¯å®ç°äºä¸ä¸ªæææ¹æ³é½å£°æä¸º public çæ¥"
+"å£ã"
#. Tag: para
-#: persistent_classes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can persist <literal>final</literal> classes that do not implement an "
"interface with Hibernate. You will not, however, be able to use proxies for "
"lazy association fetching which will ultimately limit your options for "
"performance tuning."
msgstr ""
-"ä½ å¯ä»¥ç¨Hibernateæä¹
åä¸ä¸ªæ²¡æå®ç°ä»»ä½æ¥å£ç<literal>final</literal>ç±»ï¼ä½æ¯"
-"ä½ ä¸è½ä½¿ç¨ä»£çæ¥å»¶è¿å
³èå è½½ï¼è¿ä¼éå¶ä½ è¿è¡æ§è½ä¼åçéæ©ã"
+"ä½ å¯ä»¥ç¨ Hibernate æä¹
åä¸ä¸ªæ²¡æå®ç°ä»»ä½æ¥å£ç <literal>final</literal> ç±»ï¼"
+"使¯ä½ ä¸è½ä½¿ç¨ä»£çæ¥å»¶è¿å
³èå è½½ï¼è¿ä¼éå¶ä½ è¿è¡æ§è½ä¼åçéæ©ã "
#. Tag: para
-#: persistent_classes.xml:131
#, no-c-format
msgid ""
"You should also avoid declaring <literal>public final</literal> methods on "
@@ -287,19 +189,18 @@
"final</literal> method, you must explicitly disable proxying by setting "
"<literal>lazy=\"false\"</literal>."
msgstr ""
-"ä½ ä¹åºè¯¥é¿å
å¨éfinalç±»ä¸å£°æ <literal>public final</literal>çæ¹æ³ãå¦æä½ æ³"
-"使ç¨ä¸ 个æ<literal>public final</literal>æ¹æ³çç±»ï¼ä½ å¿
é¡»éè¿è®¾ç½®"
-"<literal>lazy=\"false\"</literal> æ¥æç¡®å°ç¦ç¨ä»£çã"
+"ä½ ä¹åºè¯¥é¿å
å¨é final ç±»ä¸å£°æ <literal>public final</literal> çæ¹æ³ã妿"
+"ä½ æ³ä½¿ç¨ä¸ä¸ªæ <literal>public final</literal> æ¹æ³çç±»ï¼ä½ å¿
é¡»éè¿è®¾ç½® "
+"<literal>lazy=\"false\"</literal> æ¥æç¡®å°ç¦ç¨ä»£çã "
#. Tag: title
-#: persistent_classes.xml:139
#, no-c-format
msgid "Declare accessors and mutators for persistent fields (optional)"
-msgstr "为æä¹
ååæ®µå£°æè®¿é®å¨(accessors)忝å¦å¯åçæ å¿(mutators)(å¯é)"
+msgstr ""
+"为æä¹
ååæ®µå£°æè®¿é®å¨ï¼accessorsï¼åæ¯å¦å¯åçæ å¿ï¼mutatorsï¼ï¼å¯éï¼"
#. Tag: para
-#: persistent_classes.xml:141
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Cat</literal> declares accessor methods for all its persistent "
"fields. Many other ORM tools directly persist instance variables. It is "
@@ -309,95 +210,71 @@
"literal>, <literal>isFoo</literal> and <literal>setFoo</literal>. If "
"required, you can switch to direct field access for particular properties."
msgstr ""
-"<literal>Cat</literal>为å®çæææä¹
ååæ®µå£°æäºè®¿é®æ¹æ³ãå¾å¤å
¶ä»ORMå·¥å
·ç´æ¥"
-"对 å®ä¾åéè¿è¡æä¹
åãæä»¬ç¸ä¿¡ï¼å¨å
³ç³»æ°æ®åºschemaåç±»çå
鍿°æ®ç»æä¹é´å¼å
¥"
-"é´æ¥å±(åæä¸º\"éç´æ¥\"ï¼indirection)ä¼å¥½ä¸äºãé»è®¤æ
åµä¸Hibernateæä¹
å"
-"JavaBeans飿 ¼ç屿§ï¼è®¤å¯ <literal>getFoo</literal>ï¼<literal>isFoo</"
-"literal> å <literal>setFoo</literal>è¿ç§å½¢å¼çæ¹æ³åã 妿éè¦ï¼ä½ å¯ä»¥å¯¹æ"
-"äºç¹å®å±æ§å®è¡ç´æ¥å段访é®ã"
+"<literal>Cat</literal> 为å®çæææä¹
ååæ®µå£°æäºè®¿é®æ¹æ³ãå¾å¤å
¶ä» ORM å·¥å
·"
+"ç´æ¥å¯¹å®ä¾åéè¿è¡æä¹
åãæä»¬ç¸ä¿¡ï¼å¨å
³ç³»æ°æ®åº schema åç±»çå
鍿°æ®ç»æä¹"
+"é´å¼å
¥é´æ¥å±ï¼åæä¸º\"éç´æ¥\"ï¼indirectionï¼ä¼å¥½ä¸äºãé»è®¤æ
åµä¸ Hibernate "
+"æä¹
å JavaBeans 飿 ¼ç屿§ï¼è®¤å¯ <literal>getFoo</literal>ï¼"
+"<literal>isFoo</literal> å <literal>setFoo</literal> è¿ç§å½¢å¼çæ¹æ³åã妿"
+"éè¦ï¼ä½ å¯ä»¥å¯¹æäºç¹å®å±æ§å®è¡ç´æ¥å段访é®ã "
#. Tag: para
-#: persistent_classes.xml:151
#, no-c-format
msgid ""
"Properties need <emphasis>not</emphasis> be declared public - Hibernate can "
"persist a property with a default, <literal>protected</literal> or "
"<literal>private</literal> get / set pair."
msgstr ""
-"屿§<emphasis>ä¸éè¦</emphasis>è¦å£°æä¸ºpublicçãHibernateå¯ä»¥æä¹
åä¸ä¸ªæ "
-"<literal>default</literal>ã<literal>protected</literal>æ<literal>private</"
-"literal>çget/setæ¹æ³å¯¹ ç屿§è¿è¡æä¹
åã"
+"屿§<emphasis>ä¸éè¦</emphasis>è¦å£°æä¸º public çãHibernate å¯ä»¥æä¹
åä¸ä¸ª"
+"æ <literal>default</literal>ã<literal>protected</literal> æ "
+"<literal>private</literal> ç get/set æ¹æ³å¯¹ç屿§è¿è¡æä¹
åã"
#. Tag: title
-#: persistent_classes.xml:162
#, no-c-format
msgid "Implementing inheritance"
msgstr "å®ç°ç»§æ¿ï¼Inheritanceï¼"
#. Tag: para
-#: persistent_classes.xml:164
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A subclass must also observe the first and second rules. It inherits its "
"identifier property from the superclass, <literal>Cat</literal>. For example:"
msgstr ""
-"åç±»ä¹å¿
é¡»éµå®ç¬¬ä¸æ¡åç¬¬äºæ¡è§åãå®ä»è¶
ç±»<literal>Cat</literal>ç»§æ¿äºæ è¯å±"
-"æ§ã"
+"åç±»ä¹å¿
é¡»éµå®ç¬¬ä¸æ¡åç¬¬äºæ¡è§åãå®ä»è¶
ç±» <literal>Cat</literal> ç»§æ¿äºæ è¯"
+"屿§ãä¾å¦ï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:169
-#, no-c-format
-msgid ""
-"<![CDATA[package eg;\n"
-"\n"
-"public class DomesticCat extends Cat {\n"
-" private String name;\n"
-"\n"
-" public String getName() {\n"
-" return name;\n"
-" }\n"
-" protected void setName(String name) {\n"
-" this.name=name;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:173
#, no-c-format
msgid ""
"Implementing <literal>equals()</literal> and <literal>hashCode()</literal>"
-msgstr "å®ç°<literal>equals()</literal>å<literal>hashCode()</literal>"
+msgstr ""
+"å®ç° <literal>equals()</literal> å <literal>hashCode()</literal> æ¹æ³ï¼"
#. Tag: para
-#: persistent_classes.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to override the <literal>equals()</literal> and <literal>hashCode()"
"</literal> methods if you:"
msgstr ""
"å¦æä½ æå¦ä¸éæ±ï¼ä½ å¿
é¡»éè½½ <literal>equals()</literal> å <literal>hashCode"
-"()</literal>æ¹æ³ï¼"
+"()</literal> æ¹æ³ï¼ "
#. Tag: para
-#: persistent_classes.xml:181
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"intend to put instances of persistent classes in a <literal>Set</literal> "
"(the recommended way to represent many-valued associations); <emphasis>and</"
"emphasis>"
msgstr ""
-"æ³ææä¹
ç±»çå®ä¾æ¾å
¥<literal>Set</literal>ä¸ï¼å½è¡¨ç¤ºå¤å¼å
³èæ¶ï¼æ¨èè¿ä¹åï¼"
+"æ³ææä¹
ç±»çå®ä¾æ¾å
¥ <literal>Set</literal> ä¸ï¼å½è¡¨ç¤ºå¤å¼å
³èæ¶ï¼æ¨èè¿ä¹"
+"åï¼ï¼<emphasis>èä¸</emphasis>"
#. Tag: para
-#: persistent_classes.xml:188
#, no-c-format
msgid "intend to use reattachment of detached instances"
msgstr "æ³éç¨è±ç®¡å®ä¾"
#. Tag: para
-#: persistent_classes.xml:194
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate guarantees equivalence of persistent identity (database row) and "
"Java identity only inside a particular session scope. When you mix instances "
@@ -405,14 +282,13 @@
"literal> and <literal>hashCode()</literal> if you wish to have meaningful "
"semantics for <literal>Set</literal>s."
msgstr ""
-"Hibernateä¿è¯ï¼ä»
å¨ç¹å®ä¼è¯èå´å
ï¼æä¹
åæ è¯ï¼æ°æ®åºçè¡ï¼åJavaæ è¯æ¯çä»·"
-"çãå æ¤ï¼ä¸æ¦ æä»¬æ··åäºä»ä¸åä¼è¯ä¸è·åçå®ä¾ï¼å¦æå¸æ<literal>Set</"
-"literal>ææç¡®çè¯ä¹ï¼å°±å¿
é¡»å®ç°<literal>equals()</literal> å"
-"<literal>hashCode()</literal>ã"
+"Hibernate ä¿è¯ï¼ä»
å¨ç¹å®ä¼è¯èå´å
ï¼æä¹
åæ è¯ï¼æ°æ®åºçè¡ï¼å Java æ è¯æ¯ç"
+"ä»·çãå æ¤ï¼ä¸æ¦æä»¬æ··åäºä»ä¸åä¼è¯ä¸è·åçå®ä¾ï¼å¦æå¸æ <literal>Set</"
+"literal> ææç¡®çè¯ä¹ï¼å°±å¿
é¡»å®ç° <literal>equals()</literal> å "
+"<literal>hashCode()</literal>ã "
#. Tag: para
-#: persistent_classes.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most obvious way is to implement <literal>equals()</literal>/"
"<literal>hashCode()</literal> by comparing the identifier value of both "
@@ -429,20 +305,20 @@
"the Hibernate website for a full discussion of this problem. This is not a "
"Hibernate issue, but normal Java semantics of object identity and equality."
msgstr ""
-"å®ç°<literal>equals()</literal>/<literal>hashCode()</literal>ææ¾èæè§çæ¹æ³"
-"æ¯æ¯è¾ä¸¤ä¸ªå¯¹è±¡ æ è¯ç¬¦çå¼ã妿å¼ç¸åï¼å两个对象对åºäºæ°æ®åºçåä¸è¡ï¼å æ¤å®"
-"们æ¯ç¸ççï¼å¦æé½è¢«æ·»å å° <literal>Set</literal>ï¼åå¨<literal>Set</literal>"
-"ä¸åªæä¸ä¸ªå
ç´ ï¼ãä¸å¹¸çæ¯ï¼å¯¹çæçæ è¯ä¸è½ 使ç¨è¿ç§æ¹æ³ãHibernateä»
对é£äº"
-"æä¹
åå¯¹è±¡èµæ è¯å¼ï¼ä¸ä¸ªæ°å建çå®ä¾å°ä¸ä¼æä»»ä½æ è¯å¼ãæ¤å¤ï¼ 妿ä¸ä¸ªå®ä¾æ²¡"
-"æè¢«ä¿å(unsaved)ï¼å¹¶ä¸å®å½åæ£å¨ä¸ä¸ª<literal>Set</literal>ä¸ï¼ä¿åå®å°ä¼ç»è¿"
-"个对象 èµä¸ä¸ªæ è¯å¼ã妿<literal>equals()</literal> å <literal>hashCode()</"
-"literal>æ¯åºäºæ è¯å¼ å®ç°çï¼åå
¶åå¸ç å°ä¼æ¹åï¼è¿è¿åäº<literal>Set</"
-"literal>çå¥çº¦ã建议å»Hibernateçç«ç¹é
读å
³äºè¿ä¸ª é®é¢çå
¨é¨è®¨è®ºã注æï¼è¿ä¸"
-"æ¯Hibernateçé®é¢ï¼èæ¯ä¸è¬çJava对象æ è¯åJava对象çä»·çè¯ä¹é®é¢ã"
+"å®ç° <literal>equals()</literal>/<literal>hashCode()</literal> ææ¾èæè§çæ¹"
+"æ³æ¯æ¯è¾ä¸¤ä¸ªå¯¹è±¡ æ è¯ç¬¦çå¼ã妿å¼ç¸åï¼å两个对象对åºäºæ°æ®åºçåä¸è¡ï¼å æ¤"
+"å®ä»¬æ¯ç¸ççï¼å¦æé½è¢«æ·»å å° <literal>Set</literal>ï¼åå¨ <literal>Set</"
+"literal> ä¸åªæä¸ä¸ªå
ç´ ï¼ãä¸å¹¸çæ¯ï¼å¯¹çæçæ è¯ä¸è½ 使ç¨è¿ç§æ¹æ³ã"
+"Hibernate ä»
对é£äºæä¹
åå¯¹è±¡èµæ è¯å¼ï¼ä¸ä¸ªæ°å建çå®ä¾å°ä¸ä¼æä»»ä½æ è¯å¼ãæ¤"
+"å¤ï¼ 妿ä¸ä¸ªå®ä¾æ²¡æè¢«ä¿åï¼unsavedï¼ï¼å¹¶ä¸å®å½åæ£å¨ä¸ä¸ª <literal>Set</"
+"literal> ä¸ï¼ä¿åå®å°ä¼ç»è¿ä¸ªå¯¹è±¡èµä¸ä¸ªæ è¯å¼ã妿 <literal>equals()</"
+"literal> å <literal>hashCode()</literal> æ¯åºäºæ è¯å¼ å®ç°çï¼åå
¶åå¸ç å°ä¼"
+"æ¹åï¼è¿è¿åäº <literal>Set</literal> çå¥çº¦ãå»ºè®®å» Hibernate çç«ç¹é
读å
³äº"
+"è¿ä¸ªé®é¢çå
¨é¨è®¨è®ºã注æï¼è¿ä¸æ¯ Hibernate çé®é¢ï¼èæ¯ä¸è¬ç Java 对象æ è¯"
+"å Java 对象çä»·çè¯ä¹é®é¢ã "
#. Tag: para
-#: persistent_classes.xml:216
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is recommended that you implement <literal>equals()</literal> and "
"<literal>hashCode()</literal> using <emphasis>Business key equality</"
@@ -451,74 +327,42 @@
"that would identify our instance in the real world (a <emphasis>natural</"
"emphasis> candidate key):"
msgstr ""
-"æä»¬å»ºè®®ä½¿ç¨<emphasis>ä¸å¡é®å¼ç¸ç(Business key equality)</emphasis>æ¥å®ç°"
+"æä»¬å»ºè®®ä½¿ç¨<emphasis>ä¸å¡é®å¼ç¸çï¼Business key equalityï¼</emphasis>æ¥å®ç° "
"<literal>equals()</literal> å <literal>hashCode()</literal>ãä¸å¡é®å¼ç¸çç"
-"æææ¯ï¼<literal>equals()</literal>æ¹æ³ ä»
ä»
æ¯è¾å½¢æä¸å¡é®ç屿§ï¼å®è½å¨ç°å®"
+"æææ¯ï¼<literal>equals()</literal> æ¹æ³ä»
ä»
æ¯è¾å½¢æä¸å¡é®ç屿§ï¼å®è½å¨ç°å®"
"ä¸çéæ è¯æä»¬çå®ä¾ï¼æ¯ä¸ä¸ª<emphasis>èªç¶ç</emphasis>åéç ï¼ã"
-#. Tag: programlisting
-#: persistent_classes.xml:224
-#, no-c-format
-msgid ""
-"<![CDATA[public class Cat {\n"
-"\n"
-" ...\n"
-" public boolean equals(Object other) {\n"
-" if (this == other) return true;\n"
-" if ( !(other instanceof Cat) ) return false;\n"
-"\n"
-" final Cat cat = (Cat) other;\n"
-"\n"
-" if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
-" if ( !cat.getMother().equals( getMother() ) ) return false;\n"
-"\n"
-" return true;\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" int result;\n"
-" result = getMother().hashCode();\n"
-" result = 29 * result + getLitterId();\n"
-" return result;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:226
#, fuzzy, no-c-format
msgid ""
"A business key does not have to be as solid as a database primary key "
-"candidate (see <xref linkend=\"transactions-basics-identity\"/>). Immutable "
+"candidate (see <xref linkend=\"transactions-basics-identity\" />). Immutable "
"or unique properties are usually good candidates for a business key."
msgstr ""
-"注æï¼ä¸å¡é®ä¸å¿
åæ°æ®åºç主é®é£æ ·åºå®ä¸åï¼åè§<xref linkend=\"transactions-"
-"basics-identity\"/>ï¼ã 对ä¸å¡é®èè¨ï¼ä¸å¯åæå¯ä¸ç屿§æ¯ä¸éçéæ©ã"
+"注æï¼ä¸å¡é®ä¸å¿
åæ°æ®åºç主é®é£æ ·åºå®ä¸åï¼åè§ <xref linkend="
+"\"transactions-basics-identity\"/>ï¼ã对ä¸å¡é®èè¨ï¼ä¸å¯åæå¯ä¸ç屿§æ¯ä¸é"
+"çéæ©ã "
#. Tag: title
-#: persistent_classes.xml:236
#, no-c-format
msgid "Dynamic models"
-msgstr "å¨ææ¨¡å(Dynamic models)"
+msgstr "å¨ææ¨¡åï¼Dynamic modelsï¼"
#. Tag: title
-#: persistent_classes.xml:239
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
-#. Tag: emphasis
-#: persistent_classes.xml:241
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"The following features are currently considered experimental and may change "
-"in the near future."
-msgstr "注æï¼ä»¥ä¸ç¹æ§å¨å½åå¤äºè¯éªé¶æ®µï¼å°æ¥å¯è½ä¼æååã"
+"<emphasis>The following features are currently considered experimental and "
+"may change in the near future.</emphasis>"
+msgstr ""
+"<emphasis>注æï¼ä»¥ä¸ç¹æ§å¨å½åå¤äºè¯éªé¶æ®µï¼å°æ¥å¯è½ä¼æååã</emphasis>"
#. Tag: para
-#: persistent_classes.xml:246
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Persistent entities do not necessarily have to be represented as POJO "
"classes or as JavaBean objects at runtime. Hibernate also supports dynamic "
@@ -526,128 +370,57 @@
"and the representation of entities as DOM4J trees. With this approach, you "
"do not write persistent classes, only mapping files."
msgstr ""
-"è¿è¡æçæä¹
åå®ä½æ²¡æå¿
è¦ä¸å®è¡¨ç¤ºä¸ºåPOJOç±»æJavaBeanå¯¹è±¡é£æ ·çå½¢å¼ã"
-"Hibernate乿¯æå¨ææ¨¡å ï¼å¨è¿è¡æä½¿ç¨<literal>Map</literal>ç<literal>Map</"
-"literal>ï¼å象DOM4Jçæ æ¨¡åé£ æ ·çå®ä½è¡¨ç¤ºã使ç¨è¿ç§æ¹æ³ï¼ä½ ä¸ç¨åæä¹
åç±»ï¼"
-"åªåæ å°æä»¶å°±è¡äºã"
+"è¿è¡æçæä¹
åå®ä½æ²¡æå¿
è¦ä¸å®è¡¨ç¤ºä¸ºå POJO ç±»æ JavaBean å¯¹è±¡é£æ ·çå½¢å¼ã"
+"Hibernate 乿¯æå¨ææ¨¡å ï¼å¨è¿è¡æä½¿ç¨ <literal>Map</literal> ç "
+"<literal>Map</literal>ï¼å象 DOM4J çæ æ¨¡å飿 ·çå®ä½è¡¨ç¤ºã使ç¨è¿ç§æ¹æ³ï¼ä½ ä¸"
+"ç¨åæä¹
åç±»ï¼åªåæ å°æä»¶å°±è¡äºã "
#. Tag: para
-#: persistent_classes.xml:254
#, fuzzy, no-c-format
msgid ""
"By default, Hibernate works in normal POJO mode. You can set a default "
"entity representation mode for a particular <literal>SessionFactory</"
"literal> using the <literal>default_entity_mode</literal> configuration "
-"option (see <xref linkend=\"configuration-optional-properties\"/>)."
+"option (see <xref linkend=\"configuration-optional-properties\" />)."
msgstr ""
-"Hibernateé»è®¤å·¥ä½å¨æ®éPOJO模å¼ãä½ å¯ä»¥ä½¿ç¨é
ç½®é项"
-"<literal>default_entity_mode</literal>ï¼ å¯¹ç¹å®ç<literal>SessionFactory</"
-"literal>ï¼è®¾ç½®ä¸ä¸ªé»è®¤çå®ä½è¡¨ç¤ºæ¨¡å¼ã ï¼åè§<xref linkend=\"configuration-"
-"optional-properties\"/>ãï¼"
+"Hibernate é»è®¤å·¥ä½å¨æ®é POJO 模å¼ãä½ å¯ä»¥ä½¿ç¨é
ç½®é项 "
+"<literal>default_entity_mode</literal>ï¼ å¯¹ç¹å®ç <literal>SessionFactory</"
+"literal>ï¼è®¾ç½®ä¸ä¸ªé»è®¤çå®ä½è¡¨ç¤ºæ¨¡å¼ãï¼åè§ <xref linkend=\"configuration-"
+"optional-properties\"/>ï¼ "
#. Tag: para
-#: persistent_classes.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following examples demonstrate the representation using <literal>Map</"
"literal>s. First, in the mapping file an <literal>entity-name</literal> has "
"to be declared instead of, or in addition to, a class name:"
msgstr ""
-"ä¸é¢æ¯ç¨<literal>Map</literal>æ¥è¡¨ç¤ºçä¾åãé¦å
ï¼å¨æ å°æä»¶ä¸ï¼è¦å£°æ "
-"<literal>entity-name</literal>æ¥ä»£æ¿ä¸ä¸ªç±»åï¼æä½ä¸ºä¸ç§éå±ï¼ã"
+"ä¸é¢æ¯ç¨ <literal>Map</literal> æ¥è¡¨ç¤ºçä¾åãé¦å
ï¼å¨æ å°æä»¶ä¸ï¼è¦å£°æ "
+"<literal>entity-name</literal> æ¥ä»£æ¿ä¸ä¸ªç±»åï¼æä½ä¸ºä¸ç§éå±ï¼ã "
-#. Tag: programlisting
-#: persistent_classes.xml:267
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-"\n"
-" <class entity-name=\"Customer\">\n"
-"\n"
-" <id name=\"id\"\n"
-" type=\"long\"\n"
-" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <property name=\"name\"\n"
-" column=\"NAME\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <property name=\"address\"\n"
-" column=\"ADDRESS\"\n"
-" type=\"string\"/>\n"
-"\n"
-" <many-to-one name=\"organization\"\n"
-" column=\"ORGANIZATION_ID\"\n"
-" class=\"Organization\"/>\n"
-"\n"
-" <bag name=\"orders\"\n"
-" inverse=\"true\"\n"
-" lazy=\"false\"\n"
-" cascade=\"all\">\n"
-" <key column=\"CUSTOMER_ID\"/>\n"
-" <one-to-many class=\"Order\"/>\n"
-" </bag>\n"
-"\n"
-" </class>\n"
-" \n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:269
-#, fuzzy, no-c-format
-msgid ""
"Even though associations are declared using target class names, the target "
"type of associations can also be a dynamic entity instead of a POJO."
msgstr ""
-"注æï¼è½ç¶æ¯ç¨ç®æ ç±»åæ¥å£°æå
³èçï¼ä½æ¯å
³èçç®æ ç±»åé¤äºæ¯POJOä¹å¤ï¼ä¹å¯ä»¥ "
-"æ¯ä¸ä¸ªå¨æçå®ä½ã"
+"注æï¼è½ç¶æ¯ç¨ç®æ ç±»åæ¥å£°æå
³èçï¼ä½æ¯å
³èçç®æ ç±»åé¤äºæ¯ POJO ä¹å¤ï¼ä¹å¯"
+"以æ¯ä¸ä¸ªå¨æçå®ä½ã "
#. Tag: para
-#: persistent_classes.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"After setting the default entity mode to <literal>dynamic-map</literal> for "
"the <literal>SessionFactory</literal>, you can, at runtime, work with "
"<literal>Map</literal>s of <literal>Map</literal>s:"
msgstr ""
-"å¨ä½¿ç¨<literal>dynamic-map</literal>为<literal>SessionFactory</literal> 设置"
-"äºé»è®¤çå®ä½æ¨¡å¼ä¹åï¼å¯ä»¥å¨è¿è¡æä½¿ç¨<literal>Map</literal>ç <literal>Map</"
-"literal>ã"
+"å¨ä½¿ç¨ <literal>dynamic-map</literal> 为 <literal>SessionFactory</literal> 设"
+"ç½®äºé»è®¤çå®ä½æ¨¡å¼ä¹åï¼å¯ä»¥å¨è¿è¡æä½¿ç¨ <literal>Map</literal> ç "
+"<literal>Map</literal>ï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:282
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session s = openSession();\n"
-"Transaction tx = s.beginTransaction();\n"
-"Session s = openSession();\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"\n"
-"// Create an organization\n"
-"Map foobar = new HashMap();\n"
-"foobar.put(\"name\", \"Foobar Inc.\");\n"
-"\n"
-"// Link both\n"
-"david.put(\"organization\", foobar);\n"
-"\n"
-"// Save both\n"
-"s.save(\"Customer\", david);\n"
-"s.save(\"Organization\", foobar);\n"
-"\n"
-"tx.commit();\n"
-"s.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:284
-#, fuzzy, no-c-format
-msgid ""
"One of the main advantages of dynamic mapping is quick turnaround time for "
"prototyping, without the need for entity class implementation. However, you "
"lose compile-time type checking and will likely deal with many exceptions at "
@@ -656,40 +429,20 @@
"implementation on top later on."
msgstr ""
"卿æ å°ç好夿¯ï¼ååæéè¦çæ¶é´å°äºï¼å 为ååä¸éè¦å®ç°å®ä½ç±»ãç¶èï¼ä½ æ "
-"æ³è¿è¡ ç¼è¯æçç±»åæ£æ¥ï¼å¹¶å¯è½ç±æ¤ä¼å¤çå¾å¤çè¿è¡æå¼å¸¸ãå¹¸äºæäºHibernate"
-"æ å°ï¼å®ä½¿å¾æ° æ®åºçschemaè½å®¹æçè§æ ¼åååçåï¼å¹¶å
许ç¨å卿¤ä¹ä¸æ·»å åé"
-"çé¢å模åå®ç°ã"
+"æ³è¿è¡ç¼è¯æçç±»åæ£æ¥ï¼å¹¶å¯è½ç±æ¤ä¼å¤çå¾å¤çè¿è¡æå¼å¸¸ãå¹¸äºæäº Hibernate "
+"æ å°ï¼å®ä½¿å¾æ°æ®åºç schema è½å®¹æçè§æ ¼åååçåï¼å¹¶å
许ç¨å卿¤ä¹ä¸æ·»å å"
+"éçé¢å模åå®ç°ã "
#. Tag: para
-#: persistent_classes.xml:292
#, no-c-format
msgid ""
"Entity representation modes can also be set on a per <literal>Session</"
"literal> basis:"
-msgstr "å®ä½è¡¨ç¤ºæ¨¡å¼ä¹è½å¨æ¯ä¸ª<literal>Session</literal>çåºç¡ä¸è®¾ç½®ï¼"
+msgstr "å®ä½è¡¨ç¤ºæ¨¡å¼ä¹è½å¨æ¯ä¸ª <literal>Session</literal> çåºç¡ä¸è®¾ç½®ï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:297
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode.MAP);\n"
-"\n"
-"// Create a customer\n"
-"Map david = new HashMap();\n"
-"david.put(\"name\", \"David\");\n"
-"dynamicSession.save(\"Customer\", david);\n"
-"...\n"
-"dynamicSession.flush();\n"
-"dynamicSession.close()\n"
-"...\n"
-"// Continue on pojoSession\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: persistent_classes.xml:300
-#, fuzzy, no-c-format
-msgid ""
"Please note that the call to <literal>getSession()</literal> using an "
"<literal>EntityMode</literal> is on the <literal>Session</literal> API, not "
"the <literal>SessionFactory</literal>. That way, the new <literal>Session</"
@@ -699,30 +452,27 @@
"literal>, and also leave the transaction and connection handling to the "
"primary unit of work."
msgstr ""
-"请注æï¼ç¨<literal>EntityMode</literal>è°ç¨<literal>getSession()</literal>æ¯"
-"å¨ <literal>Session</literal>çAPIä¸ï¼è䏿¯<literal>SessionFactory</"
-"literal>ã è¿æ ·ï¼æ°ç<literal>Session</literal>å
±äº«åºå±çJDBCè¿æ¥ï¼äºå¡ï¼åå
¶"
-"ä»çä¸ä¸æä¿¡ æ¯ãè¿æå³çï¼ä½ ä¸éè¦å¨ç¬¬äºä¸ª<literal>Session</literal>ä¸è°ç¨ "
-"<literal>flush()</literal>å<literal>close()</literal>ï¼åæ ·çï¼æäºå¡åè¿æ¥"
-"çå¤ç 交ç»åæ¥çå·¥ä½åå
ã"
+"请注æï¼ç¨ <literal>EntityMode</literal> è°ç¨ <literal>getSession()</"
+"literal> æ¯å¨ <literal>Session</literal> ç API ä¸ï¼è䏿¯ "
+"<literal>SessionFactory</literal>ã è¿æ ·ï¼æ°ç <literal>Session</literal> å
±"
+"享åºå±ç JDBC è¿æ¥ï¼äºå¡ï¼åå
¶ä»çä¸ä¸æä¿¡æ¯ãè¿æå³çï¼ä½ ä¸éè¦å¨ç¬¬äºä¸ª "
+"<literal>Session</literal> ä¸è°ç¨ <literal>flush()</literal> å "
+"<literal>close()</literal>ï¼åæ ·çï¼æäºå¡åè¿æ¥çå¤ç交ç»åæ¥çå·¥ä½åå
ã "
#. Tag: para
-#: persistent_classes.xml:310
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"More information about the XML representation capabilities can be found in "
-"<xref linkend=\"xml\"/>."
-msgstr "å
³äºXML表示è½åçæ´å¤ä¿¡æ¯å¯ä»¥å¨<xref linkend=\"xml\"/>䏿¾å°ã"
+"<xref linkend=\"xml\" />."
+msgstr "å
³äº XML 表示è½åçæ´å¤ä¿¡æ¯å¯ä»¥å¨ <xref linkend=\"xml\"/> 䏿¾å°ã "
#. Tag: title
-#: persistent_classes.xml:318
#, no-c-format
msgid "Tuplizers"
-msgstr "å
ç»çææ å°(Tuplizers)"
+msgstr "å
ç»çææ å°ï¼Tuplizersï¼"
#. Tag: para
-#: persistent_classes.xml:320
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>org.hibernate.tuple.Tuplizer</literal>, and its sub-interfaces, are "
"responsible for managing a particular representation of a piece of data "
@@ -736,16 +486,16 @@
msgstr ""
"<literal>org.hibernate.tuple.Tuplizer</literal>ï¼ä»¥åå
¶åæ¥å£ï¼è´è´£æ ¹æ®ç»å®ç"
"<literal>org.hibernate.EntityMode</literal>ï¼æ¥å¤ç°çææ°æ®ã妿ç»å®ççææ°"
-"æ®è¢«è®¤ä¸ºå
¶æ¯ä¸ç§æ°æ®ç»æï¼\"tuplizer\"å°±æ¯ä¸ä¸ªç¥éå¦ä½åå»ºè¿æ ·çæ°æ®ç»æï¼ä»¥"
-"åå¦ä½ç»è¿ä¸ªæ°æ®ç»æèµå¼çä¸è¥¿ãæ¯å¦è¯´ï¼å¯¹äºPOJOè¿ç§Entity Modeï¼å¯¹åºç"
-"tuplizerç¥ééè¿å
¶æé æ¹æ³æ¥å建ä¸ä¸ªPOJOï¼åéè¿å
¶å±æ§è®¿é®å¨æ¥è®¿é®POJO屿§ã"
-"æä¸¤å¤§ç±»é«å±Tuplizerï¼å嫿¯<literal>org.hibernate.tuple.entity."
-"EntityTuplizer</literal> å<literal>org.hibernate.tuple.entity."
-"ComponentTuplizer</literal>æ¥å£ã<literal>EntityTuplizer</literal>è´è´£ç®¡çä¸"
-"颿å°çå®ä½çå¥çº¦ï¼è<literal>ComponentTuplizer</literal>忝é对ç»ä»¶çã"
+"æ®è¢«è®¤ä¸ºå
¶æ¯ä¸ç§æ°æ®ç»æï¼\"tuplizer\" å°±æ¯ä¸ä¸ªç¥éå¦ä½åå»ºè¿æ ·çæ°æ®ç»æï¼ä»¥"
+"åå¦ä½ç»è¿ä¸ªæ°æ®ç»æèµå¼çä¸è¥¿ãæ¯å¦è¯´ï¼å¯¹äº POJO è¿ç§ Entity Modeï¼å¯¹åºç "
+"tuplizer ç¥ééè¿å
¶æé æ¹æ³æ¥å建ä¸ä¸ª POJOï¼åéè¿å
¶å±æ§è®¿é®å¨æ¥è®¿é® POJO å±"
+"æ§ãæä¸¤å¤§ç±»é«å± Tuplizerï¼å嫿¯<literal>org.hibernate.tuple.entity."
+"EntityTuplizer</literal> å <literal>org.hibernate.tuple.entity."
+"ComponentTuplizer</literal> æ¥å£ã<literal>EntityTuplizer</literal> è´è´£ç®¡ç"
+"ä¸é¢æå°çå®ä½çå¥çº¦ï¼è <literal>ComponentTuplizer</literal> 忝é对ç»ä»¶"
+"çã "
#. Tag: para
-#: persistent_classes.xml:330
#, no-c-format
msgid ""
"There are two high-level types of Tuplizers, represented by the <literal>org."
@@ -755,10 +505,13 @@
"mentioned contracts in regards to entities, while "
"<literal>ComponentTuplizer</literal>s do the same for components."
msgstr ""
+"æä¸¤ç§é«å±ç±»åç Tuplizerï¼åå«ç± <literal>org.hibernate.tuple.entity."
+"EntityTuplizer</literal> å <literal>org.hibernate.tuple.component."
+"ComponentTuplizer</literal> æ¥å£ä»£è¡¨ã<literal>EntityTuplizer</literal> è´è´£"
+"管çåå®ä½ç¸å
³çä¸è¿°å约ï¼è<literal>ComponentTuplizer</literal> åè´è´£ç»ä»¶ã"
#. Tag: para
-#: persistent_classes.xml:338
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Users can also plug in their own tuplizers. Perhaps you require that a "
"<literal>java.util.Map</literal> implementation other than <literal>java."
@@ -769,61 +522,19 @@
"mapping they are meant to manage. Going back to the example of our customer "
"entity:"
msgstr ""
-"ç¨æ·ä¹å¯ä»¥æå
¥å
¶èªå®ä¹çtuplizerãæè®¸æ¨éè¦ä¸ç§ä¸åäºdynamic-map entity-mode"
-"ä¸ä½¿ç¨ç<literal>java.util.HashMap</literal>ç<literal>java.util.Map</"
-"literal>å®ç°ï¼æè®¸æ¨éè¦ä¸é»è®¤çç¥ä¸åç代ççæçç¥(proxy generation "
-"strategy)ãéè¿èªå®ä¹tuplizerå®ç°ï¼è¿ä¸¤ä¸ªç®æ æ¨é½å¯ä»¥è¾¾å°ãTuplizerå®ä¹è¢«éå "
-"å°å®ä»¬ææç®¡ççentityæè
componentæ å°ä¸ãå尿们çcustomer entityä¾åï¼"
+"ç¨æ·ä¹å¯ä»¥æå
¥å
¶èªå®ä¹ç tuplizerãæè®¸æ¨éè¦ä¸ç§ä¸åäº dynamic-map entity-"
+"mode ä¸ä½¿ç¨ç <literal>java.util.HashMap</literal> ç <literal>java.util."
+"Map</literal> å®ç°ï¼æè®¸æ¨éè¦ä¸é»è®¤çç¥ä¸åç代ççæçç¥ï¼proxy generation "
+"strategyï¼ãéè¿èªå®ä¹ tuplizer å®ç°ï¼è¿ä¸¤ä¸ªç®æ æ¨é½å¯ä»¥è¾¾å°ãTuplizer å®ä¹è¢«"
+"éå å°å®ä»¬ææç®¡çç entity æè
component æ å°ä¸ãå尿们ç customer "
+"entity ä¾åï¼ "
-#. Tag: programlisting
-#: persistent_classes.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping>\n"
-" <class entity-name=\"Customer\">\n"
-" <!--\n"
-" Override the dynamic-map entity-mode\n"
-" tuplizer for the customer entity\n"
-" -->\n"
-" <tuplizer entity-mode=\"dynamic-map\"\n"
-" class=\"CustomMapTuplizerImpl\"/>\n"
-"\n"
-" <id name=\"id\" type=\"long\" column=\"ID\">\n"
-" <generator class=\"sequence\"/>\n"
-" </id>\n"
-"\n"
-" <!-- other properties -->\n"
-" ...\n"
-" </class>\n"
-"</hibernate-mapping>\n"
-"\n"
-"\n"
-"public class CustomMapTuplizerImpl\n"
-" extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
-" // override the buildInstantiator() method to plug in our custom map...\n"
-" protected final Instantiator buildInstantiator(\n"
-" org.hibernate.mapping.PersistentClass mappingInfo) {\n"
-" return new CustomMapInstantiator( mappingInfo );\n"
-" }\n"
-"\n"
-" private static final class CustomMapInstantiator\n"
-" extends org.hibernate.tuple.DynamicMapInstantitor {\n"
-" // override the generateMap() method to return our custom map...\n"
-" protected final Map generateMap() {\n"
-" return new CustomMap();\n"
-" }\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: persistent_classes.xml:354
#, no-c-format
msgid "EntityNameResolvers"
-msgstr ""
+msgstr "EntityNameResolvers"
#. Tag: para
-#: persistent_classes.xml:356
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.EntityNameResolver</interfacename> "
@@ -840,158 +551,35 @@
"dynamicentity.tuplizer2</package>. Here is some of the code from that "
"package for illustration."
msgstr ""
+"<interfacename>org.hibernate.EntityNameResolver</interfacename> æ¥å£æ¯ä¸ä¸ªè§£"
+"æç»å®å®ä½å®ä¾çå®ä½åç§°çå约ãè¿ä¸ªæ¥å£å®ä¹äºä¸ä¸ªåä¸çæ¹æ³ "
+"<methodname>resolveEntityName</methodname>ï¼å®ä¼ éå®ä½å®ä¾å¹¶é¢æè¿ååéçå®"
+"ä½åç§°ï¼null ææè§£æå¨ä¸ç¥éå¦ä½è§£æç»å®å®ä½å®ä¾çå®ä½åç§°ï¼ãä¸è¬è¯´æ¥ï¼"
+"<interfacename>org.hibernate.EntityNameResolver</interfacename> å¨å¨ææ¨¡åé"
+"æä¸ºæç¨ãå
¶ä¸çä¾åæ¯æä»£çæ¥å£ç¨ä½ä½ ç忍¡åãHibernate Test Suite å¨ "
+"<package>org.hibernate.test.dynamicentity.tuplizer2</package> 䏿å
·æå®å
¨ç¸"
+"å飿 ¼çä¾åãä¸é¢æ¯è¯¥å
éçä¸äºä»£ç ï¼"
-#. Tag: programlisting
-#: persistent_classes.xml:368
-#, no-c-format
-msgid ""
-"/**\n"
-" * A very trivial JDK Proxy InvocationHandler implementation where we proxy "
-"an interface as\n"
-" * the domain model and simply store persistent state in an internal Map. "
-"This is an extremely\n"
-" * trivial example meant only for illustration.\n"
-" */\n"
-"public final class DataProxyHandler implements InvocationHandler {\n"
-" private String entityName;\n"
-" private HashMap data = new HashMap();\n"
-"\n"
-" public DataProxyHandler(String entityName, Serializable id) {\n"
-" this.entityName = entityName;\n"
-" data.put( \"Id\", id );\n"
-" }\n"
-"\n"
-" public Object invoke(Object proxy, Method method, Object[] args) "
-"throws Throwable {\n"
-" String methodName = method.getName();\n"
-" if ( methodName.startsWith( \"set\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" data.put( propertyName, args[0] );\n"
-" }\n"
-" else if ( methodName.startsWith( \"get\" ) ) {\n"
-" String propertyName = methodName.substring( 3 );\n"
-" return data.get( propertyName );\n"
-" }\n"
-" else if ( \"toString\".equals( methodName ) ) {\n"
-" return entityName + \"#\" + data.get( \"Id\" );\n"
-" }\n"
-" else if ( \"hashCode\".equals( methodName ) ) {\n"
-" return new Integer( this.hashCode() );\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" public String getEntityName() {\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" public HashMap getData() {\n"
-" return data;\n"
-" }\n"
-"}\n"
-"\n"
-"/**\n"
-" *\n"
-" */\n"
-"public class ProxyHelper {\n"
-" public static String extractEntityName(Object object) {\n"
-" // Our custom java.lang.reflect.Proxy instances actually bundle\n"
-" // their appropriate entity name, so we simply extract it from "
-"there\n"
-" // if this represents one of our proxies; otherwise, we return null\n"
-" if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
-" InvocationHandler handler = Proxy.getInvocationHandler"
-"( object );\n"
-" if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
-"() ) ) {\n"
-" DataProxyHandler myHandler = ( DataProxyHandler ) handler;\n"
-" return myHandler.getEntityName();\n"
-" }\n"
-" }\n"
-" return null;\n"
-" }\n"
-"\n"
-" // various other utility methods ....\n"
-"\n"
-"}\n"
-"\n"
-"/**\n"
-" * The EntityNameResolver implementation.\n"
-" * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
-"entity names should be\n"
-" * resolved. Since this particular impl can handle resolution for all of "
-"our entities we want to\n"
-" * take advantage of the fact that SessionFactoryImpl keeps these in a Set "
-"so that we only ever\n"
-" * have one instance registered. Why? Well, when it comes time to resolve "
-"an entity name,\n"
-" * Hibernate must iterate over all the registered resolvers. So keeping "
-"that number down\n"
-" * helps that process be as speedy as possible. Hence the equals and "
-"hashCode impls\n"
-" */\n"
-"public class MyEntityNameResolver implements EntityNameResolver {\n"
-" public static final MyEntityNameResolver INSTANCE = new "
-"MyEntityNameResolver();\n"
-"\n"
-" public String resolveEntityName(Object entity) {\n"
-" return ProxyHelper.extractEntityName( entity );\n"
-" }\n"
-"\n"
-" public boolean equals(Object obj) {\n"
-" return getClass().equals( obj.getClass() );\n"
-" }\n"
-"\n"
-" public int hashCode() {\n"
-" return getClass().hashCode();\n"
-" }\n"
-"}\n"
-"\n"
-"public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
-" public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
-"PersistentClass mappedEntity) {\n"
-" super( entityMetamodel, mappedEntity );\n"
-" }\n"
-"\n"
-" public EntityNameResolver[] getEntityNameResolvers() {\n"
-" return new EntityNameResolver[] { MyEntityNameResolver."
-"INSTANCE };\n"
-" }\n"
-"\n"
-" public String determineConcreteSubclassEntityName(Object entityInstance, "
-"SessionFactoryImplementor factory) {\n"
-" String entityName = ProxyHelper.extractEntityName"
-"( entityInstance );\n"
-" if ( entityName == null ) {\n"
-" entityName = super.determineConcreteSubclassEntityName"
-"( entityInstance, factory );\n"
-" }\n"
-" return entityName;\n"
-" }\n"
-"\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: persistent_classes.xml:370
#, no-c-format
msgid ""
"In order to register an <interfacename>org.hibernate.EntityNameResolver</"
"interfacename> users must either:"
msgstr ""
+"ä¸ºäºæ³¨å <interfacename>org.hibernate.EntityNameResolver</interfacename>ï¼ç¨"
+"æ·å¿
é¡»ï¼"
#. Tag: para
-#: persistent_classes.xml:374
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Implement a custom <link linkend=\"persistent-classes-tuplizers\">Tuplizer</"
"link>, implementing the <methodname>getEntityNameResolvers</methodname> "
"method."
msgstr ""
+"å®ç°èªå®ä¹ç <xref linkend=\"persistent-classes-tuplizers\"/> å¹¶å®ç° "
+"<methodname>getEntityNameResolvers</methodname> æ¹æ³ã "
#. Tag: para
-#: persistent_classes.xml:380
#, no-c-format
msgid ""
"Register it with the <classname>org.hibernate.impl.SessionFactoryImpl</"
@@ -999,10 +587,718 @@
"hibernate.SessionFactory</interfacename>) using the "
"<methodname>registerEntityNameResolver</methodname> method."
msgstr ""
+"ç¨ <methodname>registerEntityNameResolver</methodname> æ¹æ³æ³¨åå° "
+"<classname>org.hibernate.impl.SessionFactoryImpl</classname>ï¼å®æ¯ "
+"<interfacename>org.hibernate.SessionFactory</interfacename> çå®ç°ç±»ï¼ã"
-#~ msgid "There are four main rules to follow here:"
-#~ msgstr "è¿éè¦éµå¾ªåæ¡ä¸»è¦çè§åï¼"
+#~ msgid ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ "\n"
+#~ " private Date birthdate;\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ " private int litterId;\n"
+#~ "\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens = new HashSet();\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setLitterId(int id) {\n"
+#~ " this.litterId = id;\n"
+#~ " }\n"
+#~ " public int getLitterId() {\n"
+#~ " return litterId;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " \n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kitten.setMother(this);\n"
+#~ " kitten.setLitterId( kittens.size() ); \n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "import java.util.Set;\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Cat {\n"
+#~ " private Long id; // identifier\n"
+#~ "\n"
+#~ " private Date birthdate;\n"
+#~ " private Color color;\n"
+#~ " private char sex;\n"
+#~ " private float weight;\n"
+#~ " private int litterId;\n"
+#~ "\n"
+#~ " private Cat mother;\n"
+#~ " private Set kittens = new HashSet();\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id=id;\n"
+#~ " }\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setBirthdate(Date date) {\n"
+#~ " birthdate = date;\n"
+#~ " }\n"
+#~ " public Date getBirthdate() {\n"
+#~ " return birthdate;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setWeight(float weight) {\n"
+#~ " this.weight = weight;\n"
+#~ " }\n"
+#~ " public float getWeight() {\n"
+#~ " return weight;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Color getColor() {\n"
+#~ " return color;\n"
+#~ " }\n"
+#~ " void setColor(Color color) {\n"
+#~ " this.color = color;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setSex(char sex) {\n"
+#~ " this.sex=sex;\n"
+#~ " }\n"
+#~ " public char getSex() {\n"
+#~ " return sex;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setLitterId(int id) {\n"
+#~ " this.litterId = id;\n"
+#~ " }\n"
+#~ " public int getLitterId() {\n"
+#~ " return litterId;\n"
+#~ " }\n"
+#~ "\n"
+#~ " void setMother(Cat mother) {\n"
+#~ " this.mother = mother;\n"
+#~ " }\n"
+#~ " public Cat getMother() {\n"
+#~ " return mother;\n"
+#~ " }\n"
+#~ " void setKittens(Set kittens) {\n"
+#~ " this.kittens = kittens;\n"
+#~ " }\n"
+#~ " public Set getKittens() {\n"
+#~ " return kittens;\n"
+#~ " }\n"
+#~ " \n"
+#~ " // addKitten not needed by Hibernate\n"
+#~ " public void addKitten(Cat kitten) {\n"
+#~ " kitten.setMother(this);\n"
+#~ " kitten.setLitterId( kittens.size() ); \n"
+#~ " kittens.add(kitten);\n"
+#~ " }\n"
+#~ "}]]>"
#~ msgid ""
-#~ "TODO: Document user-extension framework in the property and proxy packages"
-#~ msgstr "TODOï¼propertyåproxyå
éçç¨æ·æ©å±æ¡æ¶ææ¡£ã"
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "public class DomesticCat extends Cat {\n"
+#~ " private String name;\n"
+#~ "\n"
+#~ " public String getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " protected void setName(String name) {\n"
+#~ " this.name=name;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package eg;\n"
+#~ "\n"
+#~ "public class DomesticCat extends Cat {\n"
+#~ " private String name;\n"
+#~ "\n"
+#~ " public String getName() {\n"
+#~ " return name;\n"
+#~ " }\n"
+#~ " protected void setName(String name) {\n"
+#~ " this.name=name;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[public class Cat {\n"
+#~ "\n"
+#~ " ...\n"
+#~ " public boolean equals(Object other) {\n"
+#~ " if (this == other) return true;\n"
+#~ " if ( !(other instanceof Cat) ) return false;\n"
+#~ "\n"
+#~ " final Cat cat = (Cat) other;\n"
+#~ "\n"
+#~ " if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
+#~ " if ( !cat.getMother().equals( getMother() ) ) return false;\n"
+#~ "\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " int result;\n"
+#~ " result = getMother().hashCode();\n"
+#~ " result = 29 * result + getLitterId();\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[public class Cat {\n"
+#~ "\n"
+#~ " ...\n"
+#~ " public boolean equals(Object other) {\n"
+#~ " if (this == other) return true;\n"
+#~ " if ( !(other instanceof Cat) ) return false;\n"
+#~ "\n"
+#~ " final Cat cat = (Cat) other;\n"
+#~ "\n"
+#~ " if ( !cat.getLitterId().equals( getLitterId() ) ) return false;\n"
+#~ " if ( !cat.getMother().equals( getMother() ) ) return false;\n"
+#~ "\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " int result;\n"
+#~ " result = getMother().hashCode();\n"
+#~ " result = 29 * result + getLitterId();\n"
+#~ " return result;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"id\"\n"
+#~ " type=\"long\"\n"
+#~ " column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <property name=\"address\"\n"
+#~ " column=\"ADDRESS\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"organization\"\n"
+#~ " column=\"ORGANIZATION_ID\"\n"
+#~ " class=\"Organization\"/>\n"
+#~ "\n"
+#~ " <bag name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " lazy=\"false\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"CUSTOMER_ID\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ " \n"
+#~ "</hibernate-mapping>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ "\n"
+#~ " <id name=\"id\"\n"
+#~ " type=\"long\"\n"
+#~ " column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <property name=\"name\"\n"
+#~ " column=\"NAME\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <property name=\"address\"\n"
+#~ " column=\"ADDRESS\"\n"
+#~ " type=\"string\"/>\n"
+#~ "\n"
+#~ " <many-to-one name=\"organization\"\n"
+#~ " column=\"ORGANIZATION_ID\"\n"
+#~ " class=\"Organization\"/>\n"
+#~ "\n"
+#~ " <bag name=\"orders\"\n"
+#~ " inverse=\"true\"\n"
+#~ " lazy=\"false\"\n"
+#~ " cascade=\"all\">\n"
+#~ " <key column=\"CUSTOMER_ID\"/>\n"
+#~ " <one-to-many class=\"Order\"/>\n"
+#~ " </bag>\n"
+#~ "\n"
+#~ " </class>\n"
+#~ " \n"
+#~ "</hibernate-mapping>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session s = openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ "Session s = openSession();\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "\n"
+#~ "// Create an organization\n"
+#~ "Map foobar = new HashMap();\n"
+#~ "foobar.put(\"name\", \"Foobar Inc.\");\n"
+#~ "\n"
+#~ "// Link both\n"
+#~ "david.put(\"organization\", foobar);\n"
+#~ "\n"
+#~ "// Save both\n"
+#~ "s.save(\"Customer\", david);\n"
+#~ "s.save(\"Organization\", foobar);\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session s = openSession();\n"
+#~ "Transaction tx = s.beginTransaction();\n"
+#~ "Session s = openSession();\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "\n"
+#~ "// Create an organization\n"
+#~ "Map foobar = new HashMap();\n"
+#~ "foobar.put(\"name\", \"Foobar Inc.\");\n"
+#~ "\n"
+#~ "// Link both\n"
+#~ "david.put(\"organization\", foobar);\n"
+#~ "\n"
+#~ "// Save both\n"
+#~ "s.save(\"Customer\", david);\n"
+#~ "s.save(\"Organization\", foobar);\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "s.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode."
+#~ "MAP);\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "dynamicSession.save(\"Customer\", david);\n"
+#~ "...\n"
+#~ "dynamicSession.flush();\n"
+#~ "dynamicSession.close()\n"
+#~ "...\n"
+#~ "// Continue on pojoSession\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session dynamicSession = pojoSession.getSession(EntityMode."
+#~ "MAP);\n"
+#~ "\n"
+#~ "// Create a customer\n"
+#~ "Map david = new HashMap();\n"
+#~ "david.put(\"name\", \"David\");\n"
+#~ "dynamicSession.save(\"Customer\", david);\n"
+#~ "...\n"
+#~ "dynamicSession.flush();\n"
+#~ "dynamicSession.close()\n"
+#~ "...\n"
+#~ "// Continue on pojoSession\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ " <!--\n"
+#~ " Override the dynamic-map entity-mode\n"
+#~ " tuplizer for the customer entity\n"
+#~ " -->\n"
+#~ " <tuplizer entity-mode=\"dynamic-map\"\n"
+#~ " class=\"CustomMapTuplizerImpl\"/>\n"
+#~ "\n"
+#~ " <id name=\"id\" type=\"long\" column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <!-- other properties -->\n"
+#~ " ...\n"
+#~ " </class>\n"
+#~ "</hibernate-mapping>\n"
+#~ "\n"
+#~ "\n"
+#~ "public class CustomMapTuplizerImpl\n"
+#~ " extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
+#~ " // override the buildInstantiator() method to plug in our custom "
+#~ "map...\n"
+#~ " protected final Instantiator buildInstantiator(\n"
+#~ " org.hibernate.mapping.PersistentClass mappingInfo) {\n"
+#~ " return new CustomMapInstantiator( mappingInfo );\n"
+#~ " }\n"
+#~ "\n"
+#~ " private static final class CustomMapInstantiator\n"
+#~ " extends org.hibernate.tuple.DynamicMapInstantitor {\n"
+#~ " // override the generateMap() method to return our custom map...\n"
+#~ " protected final Map generateMap() {\n"
+#~ " return new CustomMap();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[<hibernate-mapping>\n"
+#~ " <class entity-name=\"Customer\">\n"
+#~ " <!--\n"
+#~ " Override the dynamic-map entity-mode\n"
+#~ " tuplizer for the customer entity\n"
+#~ " -->\n"
+#~ " <tuplizer entity-mode=\"dynamic-map\"\n"
+#~ " class=\"CustomMapTuplizerImpl\"/>\n"
+#~ "\n"
+#~ " <id name=\"id\" type=\"long\" column=\"ID\">\n"
+#~ " <generator class=\"sequence\"/>\n"
+#~ " </id>\n"
+#~ "\n"
+#~ " <!-- other properties -->\n"
+#~ " ...\n"
+#~ " </class>\n"
+#~ "</hibernate-mapping>\n"
+#~ "\n"
+#~ "\n"
+#~ "public class CustomMapTuplizerImpl\n"
+#~ " extends org.hibernate.tuple.entity.DynamicMapEntityTuplizer {\n"
+#~ " // override the buildInstantiator() method to plug in our custom "
+#~ "map...\n"
+#~ " protected final Instantiator buildInstantiator(\n"
+#~ " org.hibernate.mapping.PersistentClass mappingInfo) {\n"
+#~ " return new CustomMapInstantiator( mappingInfo );\n"
+#~ " }\n"
+#~ "\n"
+#~ " private static final class CustomMapInstantiator\n"
+#~ " extends org.hibernate.tuple.DynamicMapInstantitor {\n"
+#~ " // override the generateMap() method to return our custom map...\n"
+#~ " protected final Map generateMap() {\n"
+#~ " return new CustomMap();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "/**\n"
+#~ " * A very trivial JDK Proxy InvocationHandler implementation where we "
+#~ "proxy an interface as\n"
+#~ " * the domain model and simply store persistent state in an internal "
+#~ "Map. This is an extremely\n"
+#~ " * trivial example meant only for illustration.\n"
+#~ " */\n"
+#~ "public final class DataProxyHandler implements InvocationHandler {\n"
+#~ " private String entityName;\n"
+#~ " private HashMap data = new HashMap();\n"
+#~ "\n"
+#~ " public DataProxyHandler(String entityName, Serializable id) {\n"
+#~ " this.entityName = entityName;\n"
+#~ " data.put( \"Id\", id );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Object invoke(Object proxy, Method method, Object[] args) "
+#~ "throws Throwable {\n"
+#~ " String methodName = method.getName();\n"
+#~ " if ( methodName.startsWith( \"set\" ) ) {\n"
+#~ " String propertyName = methodName.substring( 3 );\n"
+#~ " data.put( propertyName, args[0] );\n"
+#~ " }\n"
+#~ " else if ( methodName.startsWith( \"get\" ) ) {\n"
+#~ " String propertyName = methodName.substring( 3 );\n"
+#~ " return data.get( propertyName );\n"
+#~ " }\n"
+#~ " else if ( \"toString\".equals( methodName ) ) {\n"
+#~ " return entityName + \"#\" + data.get( \"Id\" );\n"
+#~ " }\n"
+#~ " else if ( \"hashCode\".equals( methodName ) ) {\n"
+#~ " return new Integer( this.hashCode() );\n"
+#~ " }\n"
+#~ " return null;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getEntityName() {\n"
+#~ " return entityName;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public HashMap getData() {\n"
+#~ " return data;\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "/**\n"
+#~ " *\n"
+#~ " */\n"
+#~ "public class ProxyHelper {\n"
+#~ " public static String extractEntityName(Object object) {\n"
+#~ " // Our custom java.lang.reflect.Proxy instances actually bundle\n"
+#~ " // their appropriate entity name, so we simply extract it from "
+#~ "there\n"
+#~ " // if this represents one of our proxies; otherwise, we return "
+#~ "null\n"
+#~ " if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
+#~ " InvocationHandler handler = Proxy.getInvocationHandler"
+#~ "( object );\n"
+#~ " if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
+#~ "() ) ) {\n"
+#~ " DataProxyHandler myHandler = ( DataProxyHandler ) "
+#~ "handler;\n"
+#~ " return myHandler.getEntityName();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return null;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // various other utility methods ....\n"
+#~ "\n"
+#~ "}\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * The EntityNameResolver implementation.\n"
+#~ " * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
+#~ "entity names should be\n"
+#~ " * resolved. Since this particular impl can handle resolution for all of "
+#~ "our entities we want to\n"
+#~ " * take advantage of the fact that SessionFactoryImpl keeps these in a "
+#~ "Set so that we only ever\n"
+#~ " * have one instance registered. Why? Well, when it comes time to "
+#~ "resolve an entity name,\n"
+#~ " * Hibernate must iterate over all the registered resolvers. So keeping "
+#~ "that number down\n"
+#~ " * helps that process be as speedy as possible. Hence the equals and "
+#~ "hashCode impls\n"
+#~ " */\n"
+#~ "public class MyEntityNameResolver implements EntityNameResolver {\n"
+#~ " public static final MyEntityNameResolver INSTANCE = new "
+#~ "MyEntityNameResolver();\n"
+#~ "\n"
+#~ " public String resolveEntityName(Object entity) {\n"
+#~ " return ProxyHelper.extractEntityName( entity );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean equals(Object obj) {\n"
+#~ " return getClass().equals( obj.getClass() );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " return getClass().hashCode();\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
+#~ " public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
+#~ "PersistentClass mappedEntity) {\n"
+#~ " super( entityMetamodel, mappedEntity );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public EntityNameResolver[] getEntityNameResolvers() {\n"
+#~ " return new EntityNameResolver[] { MyEntityNameResolver."
+#~ "INSTANCE };\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String determineConcreteSubclassEntityName(Object "
+#~ "entityInstance, SessionFactoryImplementor factory) {\n"
+#~ " String entityName = ProxyHelper.extractEntityName"
+#~ "( entityInstance );\n"
+#~ " if ( entityName == null ) {\n"
+#~ " entityName = super.determineConcreteSubclassEntityName"
+#~ "( entityInstance, factory );\n"
+#~ " }\n"
+#~ " return entityName;\n"
+#~ " }\n"
+#~ "\n"
+#~ " ...\n"
+#~ "}"
+#~ msgstr ""
+#~ "/**\n"
+#~ " * A very trivial JDK Proxy InvocationHandler implementation where we "
+#~ "proxy an interface as\n"
+#~ " * the domain model and simply store persistent state in an internal "
+#~ "Map. This is an extremely\n"
+#~ " * trivial example meant only for illustration.\n"
+#~ " */\n"
+#~ "public final class DataProxyHandler implements InvocationHandler {\n"
+#~ " private String entityName;\n"
+#~ " private HashMap data = new HashMap();\n"
+#~ "\n"
+#~ " public DataProxyHandler(String entityName, Serializable id) {\n"
+#~ " this.entityName = entityName;\n"
+#~ " data.put( \"Id\", id );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Object invoke(Object proxy, Method method, Object[] args) "
+#~ "throws Throwable {\n"
+#~ " String methodName = method.getName();\n"
+#~ " if ( methodName.startsWith( \"set\" ) ) {\n"
+#~ " String propertyName = methodName.substring( 3 );\n"
+#~ " data.put( propertyName, args[0] );\n"
+#~ " }\n"
+#~ " else if ( methodName.startsWith( \"get\" ) ) {\n"
+#~ " String propertyName = methodName.substring( 3 );\n"
+#~ " return data.get( propertyName );\n"
+#~ " }\n"
+#~ " else if ( \"toString\".equals( methodName ) ) {\n"
+#~ " return entityName + \"#\" + data.get( \"Id\" );\n"
+#~ " }\n"
+#~ " else if ( \"hashCode\".equals( methodName ) ) {\n"
+#~ " return new Integer( this.hashCode() );\n"
+#~ " }\n"
+#~ " return null;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getEntityName() {\n"
+#~ " return entityName;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public HashMap getData() {\n"
+#~ " return data;\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "/**\n"
+#~ " *\n"
+#~ " */\n"
+#~ "public class ProxyHelper {\n"
+#~ " public static String extractEntityName(Object object) {\n"
+#~ " // Our custom java.lang.reflect.Proxy instances actually bundle\n"
+#~ " // their appropriate entity name, so we simply extract it from "
+#~ "there\n"
+#~ " // if this represents one of our proxies; otherwise, we return "
+#~ "null\n"
+#~ " if ( Proxy.isProxyClass( object.getClass() ) ) {\n"
+#~ " InvocationHandler handler = Proxy.getInvocationHandler"
+#~ "( object );\n"
+#~ " if ( DataProxyHandler.class.isAssignableFrom( handler.getClass"
+#~ "() ) ) {\n"
+#~ " DataProxyHandler myHandler = ( DataProxyHandler ) "
+#~ "handler;\n"
+#~ " return myHandler.getEntityName();\n"
+#~ " }\n"
+#~ " }\n"
+#~ " return null;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // various other utility methods ....\n"
+#~ "\n"
+#~ "}\n"
+#~ "\n"
+#~ "/**\n"
+#~ " * The EntityNameResolver implementation.\n"
+#~ " * IMPL NOTE : An EntityNameResolver really defines a strategy for how "
+#~ "entity names should be\n"
+#~ " * resolved. Since this particular impl can handle resolution for all of "
+#~ "our entities we want to\n"
+#~ " * take advantage of the fact that SessionFactoryImpl keeps these in a "
+#~ "Set so that we only ever\n"
+#~ " * have one instance registered. Why? Well, when it comes time to "
+#~ "resolve an entity name,\n"
+#~ " * Hibernate must iterate over all the registered resolvers. So keeping "
+#~ "that number down\n"
+#~ " * helps that process be as speedy as possible. Hence the equals and "
+#~ "hashCode impls\n"
+#~ " */\n"
+#~ "public class MyEntityNameResolver implements EntityNameResolver {\n"
+#~ " public static final MyEntityNameResolver INSTANCE = new "
+#~ "MyEntityNameResolver();\n"
+#~ "\n"
+#~ " public String resolveEntityName(Object entity) {\n"
+#~ " return ProxyHelper.extractEntityName( entity );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public boolean equals(Object obj) {\n"
+#~ " return getClass().equals( obj.getClass() );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public int hashCode() {\n"
+#~ " return getClass().hashCode();\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "public class MyEntityTuplizer extends PojoEntityTuplizer {\n"
+#~ " public MyEntityTuplizer(EntityMetamodel entityMetamodel, "
+#~ "PersistentClass mappedEntity) {\n"
+#~ " super( entityMetamodel, mappedEntity );\n"
+#~ " }\n"
+#~ "\n"
+#~ " public EntityNameResolver[] getEntityNameResolvers() {\n"
+#~ " return new EntityNameResolver[] { MyEntityNameResolver."
+#~ "INSTANCE };\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String determineConcreteSubclassEntityName(Object "
+#~ "entityInstance, SessionFactoryImplementor factory) {\n"
+#~ " String entityName = ProxyHelper.extractEntityName"
+#~ "( entityInstance );\n"
+#~ " if ( entityName == null ) {\n"
+#~ " entityName = super.determineConcreteSubclassEntityName"
+#~ "( entityInstance, factory );\n"
+#~ " }\n"
+#~ " return entityName;\n"
+#~ " }\n"
+#~ "\n"
+#~ " ...\n"
+#~ "}"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/portability.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/portability.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/portability.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,32 +1,30 @@
-# Language zh-CN translations for PACKAGE package.
-# Automatically generated, 2009.
-#
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: 2009-07-14 19:56+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:57+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: portability.xml:26
#, no-c-format
msgid "Database Portability Considerations"
-msgstr ""
+msgstr "æ°æ®åºç§»æ¤æ§èé"
#. Tag: title
-#: portability.xml:29
#, no-c-format
msgid "Portability Basics"
-msgstr ""
+msgstr "ç§»æ¤æ§åºç¡"
#. Tag: para
-#: portability.xml:31
#, no-c-format
msgid ""
"One of the selling points of Hibernate (and really Object/Relational Mapping "
@@ -38,15 +36,18 @@
"run against any number of databases without changes to your code, and "
"ideally without any changes to the mapping metadata."
msgstr ""
+"Hibernateï¼å®é
䏿¯æ´ä¸ª Object/Relational Mappingï¼çä¸ä¸ªåç¹æ¯æ°æ®åºçç§»æ¤"
+"æ§ãè¿æå³çå
é¨ç IT ç¨æ·å¯ä»¥æ¹åæ°æ®åºä¾åºåï¼æè
å¯é¨ç½²çåºç¨ç¨åº/æ¡æ¶ä½¿"
+"ç¨ Hibernate æ¥åæ¶ä½¿ç¨å¤ä¸ªæ°æ®åºäº§åãä¸èèå
·ä½çåºç¨æ
æ¯ï¼è¿éçåºæ¬æ¦å¿µ"
+"æ¯ Hibernate å¯å¸®å©ä½ è¿è¡å¤ç§æ°æ®åºèæ éä¿®æ¹ä½ ç代ç ï¼çæ³æ
åµä¸çè³ä¸ç¨ä¿®æ¹"
+"æ å°å
æ°æ®ã"
#. Tag: title
-#: portability.xml:42
#, no-c-format
msgid "Dialect"
-msgstr ""
+msgstr "Dialect"
#. Tag: para
-#: portability.xml:44
#, no-c-format
msgid ""
"The first line of portability for Hibernate is the dialect, which is a "
@@ -58,15 +59,18 @@
"your particular database is not among them, it is not terribly difficult to "
"write your own."
msgstr ""
+"Hibernate çç§»æ¤æ§çé¦è¦é®é¢æ¯æ¹è¨ï¼dialectï¼ï¼ä¹å°±æ¯ <classname>org."
+"hibernate.dialect.Dialect</classname> å约çå
·ä½å®ä¾ãæ¹è¨å°è£
äº Hibernate å"
+"ç¹å®æ°æ®åºéè®¯ä»¥å®ææäºä»»å¡å¦è·ååºå弿æå»º SELECT æ¥è¯¢ççææå·®å¼ã"
+"Hibernate æç»äºç¨äºè®¸å¤æå¸¸ç¨çæ°æ®åºçæ¹è¨ãå¦æä½ åç°èªå·±ä½¿ç¨çæ°æ®åºä¸å¨"
+"å
¶ä¸ï¼ç¼åèªå®ä¹çæ¹è¨ä¹ä¸æ¯å¾å°é¾çäºæ
ã"
#. Tag: title
-#: portability.xml:55
#, no-c-format
msgid "Dialect resolution"
-msgstr ""
+msgstr "æ¹è¨ç使ç¨"
#. Tag: para
-#: portability.xml:57
#, no-c-format
msgid ""
"Originally, Hibernate would always require that users specify which dialect "
@@ -75,9 +79,11 @@
"their users to configure the Hibernate dialect or defining their own method "
"of setting that value."
msgstr ""
+"æå¼å§ï¼Hibernate æ»æ¯è¦æ±ç¨æ·æå®æä½¿ç¨çæ¹è¨ï¼dialectï¼ãå¨ç¨æ·å¸æåæ¶ä½¿ç¨"
+"å¤ä¸ªæ°æ®åºæ¶å°±ä¼åºç°é®é¢ãé常è¿è¦æ±ç¨æ·é
ç½® Hibernate æ¹è¨æè
å®ä¹èªå·±è®¾ç½®è¿"
+"个å¼çæ¹æ³ã"
#. Tag: para
-#: portability.xml:64
#, no-c-format
msgid ""
"Starting with version 3.2, Hibernate introduced the notion of automatically "
@@ -87,17 +93,20 @@
"that this resolution was limited to databases Hibernate know about ahead of "
"time and was in no way configurable or overrideable."
msgstr ""
+"ä»çæ¬ 3.2 å¼å§ï¼Hibernate å¼å
¥äºæ¹è¨çèªå¨æ£æµï¼å®åºäºä»è¯¥æ°æ®åºç "
+"<interfacename>java.sql.Connection</interfacename> ä¸è·å¾ç "
+"<interfacename>java.sql.DatabaseMetaData</interfacename>ãè¿æ¯ä¸ä¸ªæ´å¥½çæ¹"
+"æ¡ï¼ä½å®å±éäº Hibernate å·²ç¥çæ°æ®åºä¸æ æ³è¿è¡é
ç½®åè¦çã"
#. Tag: para
-#: portability.xml:72
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Starting with version 3.3, Hibernate has a fare more powerful way to "
"automatically determine which dialect to should be used by relying on a "
"series of delegates which implement the <interfacename>org.hibernate.dialect."
"resolver.DialectResolver</interfacename> which defines only a single method:"
-"<programlisting><![CDATA[public Dialect resolveDialect(DatabaseMetaData "
-"metaData) throws JDBCConnectionException]]></programlisting>. The basic "
+"<programlisting role=\"JAVA\">public Dialect resolveDialect(DatabaseMetaData "
+"metaData) throws JDBCConnectionException</programlisting>. The basic "
"contract here is that if the resolver 'understands' the given database "
"metadata then it returns the corresponding Dialect; if not it returns null "
"and the process continues to the next resolver. The signature also "
@@ -108,9 +117,18 @@
"All other exceptions result in a warning and continuing on to the next "
"resolver."
msgstr ""
+"ä»çæ¬ 3.3 å¼å§ï¼Hibernate æäºæ´ä¸ºå¼ºå¤§çèªå¨å³å®åºè¯¥ä½¿ç¨åªä¸ªæ¹è¨çæ¹æ³ï¼è¿æ ¹"
+"æ®ä¸ç³»åå®ç° <interfacename>org.hibernate.dialect.resolver.DialectResolver</"
+"interfacename> æ¥å£ç代çï¼å®ä»¬åªå®ä¹ä¸ä¸ªæ¹æ³ï¼<programlisting>public "
+"Dialect resolveDialect(DatabaseMetaData metaData) throws "
+"JDBCConnectionException</programlisting>ãè¿éçåºæ¬å约æ¯å¦æè§£æè
"
+"ï¼resolverï¼âçè§£âç»ç¹æ°æ®åºçå
æ°æ®å¹¶è¿å对åºçæ¹è¨ï¼å¦åè¿å null 并使ç¨ä¸"
+"ä¸ä¸ªè§£æè
ãè¿ä¸ªç¾å乿å®å¯è½æåºçå¼å¸¸ <exceptionname>org.hibernate."
+"exception.JDBCConnectionException</exceptionname>ãè¿éç "
+"JDBCConnectionException 被认为æ¯âéç¬æ¶çâï¼ä¹å°±æ¯ä¸å¯æ¢å¤çï¼è¿æ¥é®é¢ä¸æç¤º"
+"ç«å³ç»æ¢è§£æãææå
¶ä»çå¼å¸¸é½å¯¼è´è¦åååºå¹¶ä½¿ç¨ä¸ä¸ä¸ªè§£æè
ã\""
#. Tag: para
-#: portability.xml:85
#, no-c-format
msgid ""
"The cool part about these resolvers is that users can also register their "
@@ -124,16 +142,20 @@
"<constant>DIALECT_RESOLVERS</constant> constant on <classname>org.hibernate."
"cfg.Environment</classname>)."
msgstr ""
+"è¿äºè§£æè
ææ£çåè½æ¯ç¨æ·ä¹å¯ä»¥æ³¨åèªå®ä¹çè§£æè
ï¼å®ä»¬å°å¨å
ç½®çè§£æè
ä¹å"
+"被è°ç¨ãå¨è®¸å¤æ
åµä¸è¿å¯è½å¾æç¨ï¼å®å¯ä»¥è½»æå°éæå
ç½®æ¹è¨ä¹å¤çæ¹è¨çèªå¨æ£"
+"æµï¼å®è®©ä½ å¯ä»¥ä½¿ç¨èªå®ä¹çæ¹è¨çãè¦æ³¨åä¸ä¸ªæå¤ä¸ªè§£æè
ï¼åªè¦ç¨ 'hibernate."
+"dialect_resolvers' é
置设置æå®å®ä»¬ï¼ç±éå·ãå¶è¡¨ç¬¦æç©ºæ ¼éå¼ï¼å°±å¯ä»¥äºï¼è¯·å"
+"è <classname>org.hibernate.cfg.Environment</classname> ä¸ç "
+"<constant>DIALECT_RESOLVERS</constant>ï¼ã"
#. Tag: title
-#: portability.xml:98
#, no-c-format
msgid "Identifier generation"
-msgstr ""
+msgstr "æ è¯ç¬¦ççæ"
#. Tag: para
-#: portability.xml:100
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"When considering portability between databases, another important decision "
"is selecting the identifier generation stratagy you want to use. Originally "
@@ -151,38 +173,80 @@
"reference entities within a persistence context it must then issue the "
"insert immediately when the users requests the entitiy be associated with "
"the session (like via save() e.g.) regardless of current transactional "
-"semantics. <note> <para> Hibernate was changed slightly once the implication "
-"of this was better understood so that the insert is delayed in cases where "
-"that is feasible. </para> </note> The underlying issue is that the actual "
-"semanctics of the application itself changes in these cases."
+"semantics."
msgstr ""
+"å½èèæ°æ®åºçç§»æ¤æ§æ¶ï¼å¦å¤ä¸ä¸ªéè¦çè鿝鿩æ è¯ç¬¦çæçç¥ãHibernate å"
+"å
æä¾ç <emphasis>native</emphasis> çæå¨çç®çæ¯æ ¹æ®åºå±æ°æ®åºçè½åå¨ "
+"<emphasis>sequence</emphasis>ã<emphasis>identity</emphasis> æ "
+"<emphasis>table</emphasis> çç¥é´è¿è¡éæ©ãç¶èï¼è¿ä¸ªæ¹æ³ä¸ä¸ªæ½å¨çé®é¢æ¯æäº"
+"æ°æ®åºæ¯æ<emphasis>æ è¯ç¬¦ï¼identityï¼</emphasis>çæèæäºå䏿¯æã"
+"<emphasis>æ è¯ç¬¦ï¼identityï¼</emphasis> çæä¾èµäºç®¡çæ è¯ç¬¦å¼ç IDENTITY"
+"ï¼æ auto-incrementï¼å段ç SQL å®ä¹ãå®ä¹æä¸º post-insert çæçç¥ï¼å 为 "
+"insert å¿
é¡»å¨ç¥éæ è¯ç¬¦å¼åæè½å®é
åçãå 为 Hibernate ä¾èµäºè¿ä¸ªæ è¯ç¬¦å¼æ¥"
+"å¯ä¸å°å¼ç¨æä¹
æ§ä¸ä¸æéçå®ä½ï¼å½ç¨æ·è¯·æ±åä¼è¯ç¸å
³èçå®ä½æ¶ï¼å®å¿
é¡»ç«å³æ§"
+"è¡ insert è¯å¥èä¸ç®¡å½åçäºå¡æ§è¯ä¹ãåºå±çé®é¢æ¯åºç¨ç¨åºçè¯ä¹å¨è¿äºæ
åµä¸"
+"èªèº«ä¹ä¼åçæ¹åã"
#. Tag: para
-#: portability.xml:125
+#, fuzzy, no-c-format
+msgid ""
+"Hibernate was changed slightly once the implication of this was better "
+"understood so that the insert is delayed in cases where that is feasible."
+msgstr "Hibernate å·²ç»è¿è¡äºæ¹è¿ï¼æä»¥å¨å¯è¡æ¶è¿ç§æå
¥ä¼è¢«å»¶è¿ã"
+
+#. Tag: note
#, no-c-format
msgid ""
+"The underlying issue is that the actual semanctics of the application itself "
+"changes in these cases."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
"Starting with version 3.2.3, Hibernate comes with a set of <ulink url="
"\"http://in.relation.to/2082.lace\">enhanced</ulink> identifier generators "
-"targetting portability in a much different way. <note> <para> There are "
-"specifically 2 bundled <emphasis>enhanced</emphasis>generators: "
-"<itemizedlist> <listitem> <para> <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> </para> </listitem> <listitem> <para> "
-"<classname>org.hibernate.id.enhanced.TableGenerator</classname> </para> </"
-"listitem> </itemizedlist> </para> </note> The idea behind these generators "
-"is to port the actual semantics of the identifer value generation to the "
-"different databases. For example, the <classname>org.hibernate.id.enhanced."
-"SequenceStyleGenerator</classname> mimics the behavior of a sequence on "
-"databases which do not support sequences by using a table."
+"targetting portability in a much different way."
msgstr ""
+"ä» 3.2.3 çæ¬å¼å§ï¼Hibernate 带æä¸å¥ <ulink url=\"http://in.relation."
+"to/2082.lace\">enhanced</ulink> æ è¯ç¬¦çæå¨ï¼å®ä»¥å¾ä¸åçæ¹å¼å®ç°ç§»æ¤æ§ã"
+#. Tag: para
+#, no-c-format
+msgid ""
+"There are specifically 2 bundled <emphasis>enhanced</emphasis>generators:"
+msgstr "ç¹å«æ¯ä¸¤ä¸ªæç»ç <emphasis>enhanced</emphasis> çæå¨ï¼"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+msgstr ""
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname>"
+
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+msgstr "<classname>org.hibernate.id.enhanced.TableGenerator</classname>"
+
+#. Tag: note
+#, no-c-format
+msgid ""
+"The idea behind these generators is to port the actual semantics of the "
+"identifer value generation to the different databases. For example, the "
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> "
+"mimics the behavior of a sequence on databases which do not support "
+"sequences by using a table."
+msgstr ""
+"è¿äºçæå¨èåçæ¦å¿µæ¯ææ è¯ç¬¦å¼çæçå®é
æ
æ¯ç§»æ¤å°ä¸åçæ°æ®åºéãä¾å¦ï¼"
+"<classname>org.hibernate.id.enhanced.SequenceStyleGenerator</classname> éè¿"
+"使ç¨è¡¨æ¥æ¨¡æä¸æ¯æåºåï¼sequencesï¼çæ°æ®åºä¸çåºåè¡ä¸ºã"
+
#. Tag: title
-#: portability.xml:154
#, no-c-format
msgid "Database functions"
-msgstr ""
+msgstr "æ°æ®åºå½æ°"
#. Tag: para
-#: portability.xml:157
#, no-c-format
msgid ""
"This is an area in Hibernate in need of improvement. In terms of portability "
@@ -191,7 +255,6 @@
msgstr ""
#. Tag: para
-#: portability.xml:164
#, no-c-format
msgid ""
"SQL functions can be referenced in many ways by users. However, not all "
@@ -200,9 +263,11 @@
"knows how to render that particular function, perhaps even using a totally "
"different physical function call."
msgstr ""
+"ç¨æ·å¯ä»¥ä»¥å¤ç§æ¹å¼å¼ç¨ SQL 彿°ãç¶èï¼ä¸æ¯ææçæ°æ®åºé½æ¯æç¸åç彿°éã"
+"Hibernate æä¾äºä¸ç§æ å°<emphasis>é»è¾</emphasis>彿°åå°ä»£ççæ¹æ³ï¼è¿ä¸ªä»£ç"
+"ç¥éå¦ä½è§£æç¹å®ç彿°ï¼çè³å¯è½ä½¿ç¨å®å
¨ä¸åçç©ç彿°è°ç¨ã"
#. Tag: para
-#: portability.xml:170
#, no-c-format
msgid ""
"Technically this function registration is handled through the <classname>org."
@@ -211,24 +276,31 @@
"having to provide a custom dialect. This specific behavior is not fully "
"completed as of yet."
msgstr ""
+"仿æ¯ä¸æ¥è®²ï¼è¿ä¸ªå½æ°æ³¨åæ¯éè¿ <classname>org.hibernate.dialect.function."
+"SQLFunctionRegistry</classname> ç±»è¿è¡å¤ççï¼å®çç®çæ¯å
è®¸ç¨æ·æä¾èªå®ä¹ç"
+"彿°å®ä¹èæ éæä¾èªå®ä¹çæ¹è¨ãè¿ç§ç¹æ®çè¡ä¸ºç®åè¿æªå
¨é¨å¼å宿¯ã"
#. Tag: para
-#: portability.xml:177
#, no-c-format
msgid ""
"It is sort of implemented such that users can programatically register "
"functions with the <classname>org.hibernate.cfg.Configuration</classname> "
"and those functions will be recognized for HQL."
msgstr ""
+"å
¶ä¸ä¸äºåè½å·²ç»å®ç°ï¼å¦ç¨æ·å¯ä»¥å¨ç¨åºéç¨ <classname>org.hibernate.cfg."
+"Configuration</classname> 注å彿°ä¸è¿äºå½æ°å¯è¢« HQL è¯å«ã"
#. Tag: title
-#: portability.xml:187
#, no-c-format
msgid "Type mappings"
-msgstr ""
+msgstr "ç±»åæ å°"
#. Tag: para
-#: portability.xml:189
#, no-c-format
msgid "This section scheduled for completion at a later date..."
-msgstr ""
+msgstr "æ¬èå
容仿ªå®æ..."
+
+#~ msgid ""
+#~ "This is a new area in Hibernate and as such it is not as mature as the "
+#~ "overall Hibernate experience."
+#~ msgstr "è¿æ¯ Hibernate çä¸ä¸ªæ°çé¢åï¼ææ¶è¿ä¸å¦ Hibernate æ»ä½é£ä¹æçã"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/preface.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/preface.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/preface.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,25 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:44+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: preface.xml:29
#, no-c-format
msgid "Preface"
msgstr "åè¨"
#. Tag: para
-#: preface.xml:31
#, fuzzy, no-c-format
msgid ""
"Working with object-oriented software and a relational database can be "
@@ -27,27 +29,25 @@
"representation from an object model to a relational data model with a SQL-"
"based schema."
msgstr ""
-"å¨ä»æ¥çä¼ä¸ç¯å¢ä¸ï¼æé¢å对象ç软件åå
³ç³»æ°æ®åºä¸èµ·ä½¿ç¨å¯è½æ¯ç¸å½éº»ç¦ã浪费"
-"æ¶é´çãHibernateæ¯ä¸ä¸ªé¢åJavaç¯å¢ç对象/å
³ç³»æ°æ®åºæ å°å·¥å
·ã对象/å
³ç³»æ°æ®åº"
-"æ å°(object/relational mapping (ORM))è¿ä¸ªæ¯è¯è¡¨ç¤ºä¸ç§ææ¯ï¼ç¨æ¥æå¯¹è±¡æ¨¡å表示"
-"ç对象æ å°å°åºäºSQLçå
³ç³»æ¨¡åæ°æ®ç»æä¸å»ã"
+"å¨ä»æ¥çä¼ä¸ç¯å¢ä¸ï¼æé¢å对象ç软件åå
³ç³»åæ°æ®åºä¸èµ·ä½¿ç¨å¯è½æ¯ç¸å½éº»ç¦å浪"
+"è´¹æ¶é´çãHibernate æ¯ä¸ä¸ªé¢å Java ç¯å¢ç对象/å
³ç³»åæ°æ®åºæ å°å·¥å
·ã对象/å
³"
+"ç³»åæ°æ®åºæ å°ï¼object/relational mappingï¼ORMï¼è¿ä¸ªæ¯è¯è¡¨ç¤ºä¸ç§ææ¯ï¼ç¨æ¥æ"
+"对象模å表示ç对象æ å°å°åºäº SQL çå
³ç³»æ¨¡åæ°æ®ç»æä¸å»ã"
#. Tag: para
-#: preface.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate not only takes care of the mapping from Java classes to database "
"tables (and from Java data types to SQL data types), but also provides data "
"query and retrieval facilities. It can also significantly reduce development "
"time otherwise spent with manual data handling in SQL and JDBC."
msgstr ""
-"Hibernateä¸ä»
ä»
管çJavaç±»å°æ°æ®åºè¡¨çæ å°ï¼å
æ¬Javaæ°æ®ç±»åå°SQLæ°æ®ç±»åçæ "
-"å°ï¼ï¼è¿æä¾æ°æ®æ¥è¯¢åè·åæ°æ®çæ¹æ³ï¼å¯ä»¥å¤§å¹
度åå°å¼åæ¶äººå·¥ä½¿ç¨SQLåJDBCå¤"
-"çæ°æ®çæ¶é´ã"
+"Hibernate ä¸ä»
管ç Java ç±»å°æ°æ®åºè¡¨çæ å°ï¼å
æ¬ Java æ°æ®ç±»åå° SQL æ°æ®ç±»å"
+"çæ å°ï¼ï¼è¿æä¾æ°æ®æ¥è¯¢åè·åæ°æ®çæ¹æ³ï¼å¯ä»¥å¤§å¹
度åå°å¼åæ¶å¯¹äººå·¥ä½¿ç¨ SQL "
+"å JDBC å¤çæ°æ®çæ¶é´ã "
#. Tag: para
-#: preface.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's goal is to relieve the developer from 95 percent of common data "
"persistence related programming tasks. Hibernate may not be the best "
@@ -58,46 +58,43 @@
"specific SQL code and will help with the common task of result set "
"translation from a tabular representation to a graph of objects."
msgstr ""
-"Hibernateçç®æ æ¯å¯¹äºå¼åè
éå¸¸çæ°æ®æä¹
åç¸å
³çç¼ç¨ä»»å¡ï¼è§£æ¾å
¶ä¸ç95%ã对"
-"äºä»¥æ°æ®ä¸ºä¸å¿çç¨åºæ¥è¯´,å®ä»¬å¾å¾åªå¨æ°æ®åºä¸ä½¿ç¨åå¨è¿ç¨æ¥å®ç°åä¸é»è¾,"
-"Hibernateå¯è½ä¸æ¯æå¥½çè§£å³æ¹æ¡;对äºé£äºå¨åºäºJavaçä¸é´å±åºç¨ä¸ï¼å®ä»¬å®ç°é¢"
-"å对象çä¸å¡æ¨¡åååä¸é»è¾çåºç¨ï¼Hibernateæ¯ææç¨çãä¸ç®¡ææ ·ï¼Hibernateä¸"
-"å®å¯ä»¥å¸®å©ä½ æ¶é¤æè
å
è£
é£äºé对ç¹å®ååçSQL代ç ï¼å¹¶ä¸å¸®ä½ æç»æéä»è¡¨æ ¼å¼ç"
-"表示形å¼è½¬æ¢å°ä¸ç³»åç对象å»ã"
+"Hibernate çç®æ æ¯å¯¹äºå¼åè
éå¸¸çæ°æ®æä¹
åç¸å
³çç¼ç¨ä»»å¡ï¼è§£æ¾å
¶ä¸ç 95%ã"
+"对äºä»¥æ°æ®ä¸ºä¸å¿çç¨åºæ¥è¯´ï¼å®ä»¬å¾å¾åªå¨æ°æ®åºä¸ä½¿ç¨åå¨è¿ç¨æ¥å®ç°åä¸é»è¾ï¼"
+"Hibernate å¯è½ä¸æ¯æå¥½çè§£å³æ¹æ¡ï¼å¯¹äºé£äºå¨åºäº Java çä¸é´å±åºç¨ä¸ï¼å®ä»¬å®"
+"ç°é¢å对象çä¸å¡æ¨¡åååä¸é»è¾çåºç¨ï¼Hibernate æ¯ææç¨çãä¸ç®¡ææ ·ï¼"
+"Hibernate ä¸å®å¯ä»¥å¸®å©ä½ æ¶é¤æè
å
è£
é£äºé对ç¹å®ååç SQL 代ç ï¼èä¸å¸®å©ä½ ç»"
+"æéä»è¡¨æ ¼å¼ç表示形å¼è½¬æ¢å°ä¸ç³»åç对象ä¸å»ã "
#. Tag: para
-#: preface.xml:56
#, no-c-format
msgid ""
"If you are new to Hibernate and Object/Relational Mapping or even Java, "
"please follow these steps:"
msgstr ""
-"å¦æä½ å¯¹Hibernateå对象/å
³ç³»æ°æ®åºæ å°è¿æ¯ä¸ªæ°æï¼æè
çè³å¯¹Javaä¹ä¸çæï¼è¯·"
-"æç
§ä¸é¢çæ¥éª¤æ¥å¦ä¹ ã"
+"å¦æä½ å¯¹ Hibernate å对象/å
³ç³»åæ°æ®åºæ å°è¿æ¯ä¸ªæ°æï¼çè³å¯¹ Java ä¹ä¸çæï¼"
+"请æç
§ä¸é¢çæ¥éª¤æ¥å¦ä¹ ã"
#. Tag: para
-#: preface.xml:63
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"tutorial\"/> for a tutorial with step-by-step "
+"Read <xref linkend=\"tutorial\" /> for a tutorial with step-by-step "
"instructions. The source code for the tutorial is included in the "
"distribution in the <literal>doc/reference/tutorial/</literal> directory."
msgstr ""
-"é
读<xref linkend=\"tutorial\"/>ï¼è¿æ¯ä¸ç¯å
å«è¯¦ç»ç鿥æå¯¼çæåãæ¬æåç"
-"æºä»£ç å
å«å¨åè¡å
ä¸ï¼ä½ å¯ä»¥å¨<literal>doc/reference/tutorial/</literal>ç®å½"
-"䏿¾å°ã"
+"é
读 <xref linkend=\"tutorial\"/>ï¼è¿æ¯ä¸ç¯å
å«è¯¦ç»ç鿥ç¥éçæåãæ¬æåç"
+"æºä»£ç å
å«å¨åè¡å
éï¼ä½ å¯ä»¥å¨ <literal>doc/reference/tutorial/</literal> ç®"
+"å½ä¸æ¾å°ã "
#. Tag: para
-#: preface.xml:71
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"Read <xref linkend=\"architecture\"/> to understand the environments where "
+"Read <xref linkend=\"architecture\" /> to understand the environments where "
"Hibernate can be used."
-msgstr "é
读<xref linkend=\"architecture\"/>æ¥çè§£Hibernateå¯ä»¥ä½¿ç¨çç¯å¢ã"
+msgstr ""
+"é
读 <xref linkend=\"architecture\"/> æ¥çè§£ Hibernate å¯ä»¥ä½¿ç¨çç¯å¢ã "
#. Tag: para
-#: preface.xml:77
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"View the <literal>eg/</literal> directory in the Hibernate distribution. It "
"contains a simple standalone application. Copy your JDBC driver to the "
@@ -106,52 +103,50 @@
"command prompt in the distribution directory, type <literal>ant eg</literal> "
"(using Ant), or under Windows, type <literal>build eg</literal>."
msgstr ""
-"æ¥çHibernateåè¡å
ä¸ç<literal>eg/</literal>ç®å½ï¼é颿ä¸ä¸ªç®åçç¬ç«è¿è¡ç"
-"ç¨åºãæä½ çJDBC驱卿·è´å°<literal>lib/</literal>ç®å½ä¸ï¼ä¿®æ¹ä¸ä¸"
-"<literal>src/hibernate.properties</literal>,æå®å
¶ä¸ä½ çæ°æ®åºçä¿¡æ¯ãè¿å
¥å½"
-"令è¡ï¼åæ¢å°ä½ çåè¡å
çç®å½ï¼è¾å
¥<literal>ant eg</literal>(使ç¨äºAntï¼ï¼æè
"
-"å¨Windowsæä½ç³»ç»ä¸ä½¿ç¨<literal>build eg</literal>ã"
+"æ¥ç Hibernate åè¡å
ä¸ç <literal>eg/</literal> ç®å½ï¼éé¢æä¸ªä¸ç®åçç¬ç«è¿"
+"è¡çç¨åºãæä½ ç JDBC 驱å¨å¤å¶å° <literal>lib/</literal> ç®å½å¹¶ä¿®æ¹ä¸ä¸ "
+"<literal>etc/hibernate.properties</literal>ï¼æå®æ°æ®åºçä¿¡æ¯ãç¶åè¿å
¥å½ä»¤"
+"è¡ï¼åæ¢å°åè¡å
çç®å½ï¼è¾å
¥ <literal>ant eg</literal>ï¼ä½¿ç¨ Antï¼ï¼æè
å¨ "
+"Windows ç³»ç»ä¸ä½¿ç¨ <literal>build eg</literal>ã "
#. Tag: para
-#: preface.xml:88
#, fuzzy, no-c-format
msgid ""
"Use this reference documentation as your primary source of information. "
"Consider reading <biblioref linkend=\"biblio-JPwH\"></biblioref> if you need "
"more help with application design, or if you prefer a step-by-step tutorial. "
-"Also visit <ulink url=\"http://caveatemptor.hibernate.org\"></ulink> and "
-"download the example application from <biblioref linkend=\"biblio-JPwH\"></"
-"biblioref>."
-msgstr "æè¿ä»½åèææ¡£ä½ä¸ºä½ å¦ä¹ ç主è¦ä¿¡æ¯æ¥æºã"
+"Also visit <ulink url=\"http://caveatemptor.hibernate.org\" /> and download "
+"the example application from <biblioref linkend=\"biblio-JPwH\"></biblioref>."
+msgstr ""
+"æè¿ä»½ææ¡£ä½ä¸ºä½ å¦ä¹ ç主è¦ä¿¡æ¯æ¥æºãå¦æä½ éè¦åºç¨ç¨åºè®¾è®¡æ¹é¢ç叮婿è
ä½ å¸"
+"ææä¸ä¸ªæé¨å°±ççæåï¼ä½ å¯ä»¥èèé
读 <emphasis>Hibernate in Action</"
+"emphasis>ï¼http://www.manning.com/bauerï¼ãä½ ä¹å¯ä»¥è®¿é®http://caveatemptor."
+"hibernate.org å¹¶ä¸è½½ Hibernate ç示ä¾ç¨åºã "
#. Tag: para
-#: preface.xml:98
#, no-c-format
msgid "FAQs are answered on the Hibernate website."
-msgstr "å¨Hibernate çç½ç«ä¸å¯ä»¥æ¾å°ç»å¸¸æé®çé®é¢ä¸è§£ç(FAQ)ã"
+msgstr "å¨ Hibernate ç½ç«ä¸å¯ä»¥æ¾å°é®é¢åè§£çï¼FAQï¼ã"
#. Tag: para
-#: preface.xml:103
#, fuzzy, no-c-format
msgid ""
"Links to third party demos, examples, and tutorials are maintained on the "
"Hibernate website."
-msgstr "å¨Hibernateç½ç«ä¸è¿æç¬¬ä¸æ¹çæ¼ç¤ºã示ä¾åæç¨ç龿¥ã"
+msgstr "å¨ Hibernate ç½ç«ä¸è¿æç¬¬ä¸æ¹çæ¼ç¤ºã示ä¾åæç¨ç龿¥ã"
#. Tag: para
-#: preface.xml:109
#, no-c-format
msgid ""
"The Community Area on the Hibernate website is a good resource for design "
"patterns and various integration solutions (Tomcat, JBoss AS, Struts, EJB, "
"etc.)."
msgstr ""
-"Hibernateç½ç«çâ社åº(Community Area)âæ¯è®¨è®ºå
³äºè®¾è®¡æ¨¡å¼ä»¥åå¾å¤æ´åæ¹æ¡"
-"(Tomcat, JBoss AS, Struts, EJB,çç)ç好尿¹ã"
+"Hibernate ç½ç«çç¤¾åºæ¯è®¨è®ºå
³äºè®¾è®¡æ¨¡å¼ä»¥åå¾å¤æ´åæ¹æ¡ï¼TomcatãJBoss ASã"
+"StrutsãEJB çï¼ç好尿¹ã"
#. Tag: para
-#: preface.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you have questions, use the user forum linked on the Hibernate website. "
"We also provide a JIRA issue tracking system for bug reports and feature "
@@ -159,13 +154,12 @@
"developer mailing list. If you are interested in translating this "
"documentation into your language, contact us on the developer mailing list."
msgstr ""
-"å¦æä½ æé®é¢ï¼è¯·ä½¿ç¨Hibernateç½ç«ä¸é¾æ¥çç¨æ·è®ºåãæä»¬ä¹æä¾ä¸ä¸ªJIRAé®é¢è¿½è¸ª"
-"ç³»ç»ï¼æ¥æébugæ¥ååæ°åè½è¯·æ±ãå¦æä½ å¯¹å¼åHibernateæå
´è¶£ï¼è¯·å å
¥å¼åè
ç"
-"é®ä»¶å表ãï¼Hibernateç½ç«ä¸çç¨æ·è®ºåæä¸ä¸ªä¸æçé¢ï¼JavaEye乿Hibernate䏿"
-"çé¢,æ¨å¯ä»¥å¨é£é交æµé®é¢ä¸ç»éªãï¼"
+"å¦æä½ æä»»ä½é®é¢ï¼è¯·ä½¿ç¨ Hibernate ç½ç«ä¸é¾æ¥çç¨æ·è®ºåãæä»¬ä¹æä¾ä¸ä¸ª JIRA "
+"é®é¢è¿½è¸ªç³»ç»ï¼æ¥æé bug æ¥ååæ°çåè½è¯·æ±ã妿坹å¼å Hibernate æå
´è¶£ï¼è¯·"
+"å å
¥å¼åè
çé®ä»¶å表ãå¦æä½ å¯¹ç¿»è¯æ¬ææ¡£æå
´è¶£ï¼è¯·éè¿å¼åè
çé®ä»¶å表æ¥èç³»"
+"æä»¬ã "
#. Tag: para
-#: preface.xml:125
#, no-c-format
msgid ""
"Commercial development support, production support, and training for "
@@ -174,7 +168,18 @@
"critical component of the JBoss Enterprise Middleware System (JEMS) suite of "
"products."
msgstr ""
-"åä¸å¼åãäº§åæ¯æåHibernateå¹è®å¯ä»¥éè¿JBoss Inc.è·å¾ãï¼è¯·æ¥é
ï¼http://"
-"www.hibernate.org/SupportTraining/ï¼ã Hibernateæ¯ä¸ä¸ªä¸ä¸ç弿¾æºä»£ç 项ç®"
-"(Professional Open Source project)ï¼ä¹æ¯JBoss Enterprise Middleware System"
-"(JEMS),JBossä¼ä¸çº§ä¸é´ä»¶ç³»ç»çä¸ä¸ªæ ¸å¿ç»ä»¶ã"
+"åä¸å¼åãäº§åæ¯æå Hibernate å¹è®å¯ä»¥éè¿ JBoss Inc. è·å¾ï¼è¯·æ¥é
ï¼ http://"
+"www.hibernate.org/SupportTraining/ï¼ãHibernate æ¯ä¸ä¸ªä¸ä¸ç弿ºé¡¹ç®ï¼ä¹æ¯ "
+"JBoss ä¼ä¸çº§ä¸é´ä»¶ç³»ç»ï¼JBoss Enterprise Middleware Systemï¼JEMSï¼éçä¸ä¸ªæ ¸"
+"å¿ç»ä»¶ã "
+
+#~ msgid "Feedback"
+#~ msgstr "åé¦"
+
+#~ msgid ""
+#~ "Use <ulink url=\"http://opensource.atlassian.com/projects/hibernate"
+#~ "\">Hibernate JIRA</ulink> to report errors or request enhacements to this "
+#~ "documentation."
+#~ msgstr ""
+#~ "ç¨ <ulink url=\"http://opensource.atlassian.com/projects/hibernate"
+#~ "\">Hibernate JIRA</ulink> æ¥æ¥åéè¯¯ææ¹è¿æ¬ææ¡£ã"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_criteria.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_criteria.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_criteria.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,61 +1,50 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-07 20:31+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_criteria.xml:29
#, no-c-format
msgid "Criteria Queries"
-msgstr "æ¡ä»¶æ¥è¯¢(Criteria Queries)"
+msgstr "æ¡ä»¶æ¥è¯¢ï¼Criteria Queriesï¼"
#. Tag: para
-#: query_criteria.xml:31
#, no-c-format
msgid "Hibernate features an intuitive, extensible criteria query API."
-msgstr "å
·æä¸ä¸ªç´è§çã坿©å±çæ¡ä»¶æ¥è¯¢APIæ¯Hibernateçç¹è²ã"
+msgstr "å
·æä¸ä¸ªç´è§çã坿©å±çæ¡ä»¶æ¥è¯¢ API æ¯ Hibernate çç¹è²ã"
#. Tag: title
-#: query_criteria.xml:36
#, no-c-format
msgid "Creating a <literal>Criteria</literal> instance"
-msgstr "å建ä¸ä¸ª<literal>Criteria</literal> å®ä¾"
+msgstr "å建ä¸ä¸ª <literal>Criteria</literal> å®ä¾"
#. Tag: para
-#: query_criteria.xml:38
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.Criteria</literal> represents a query "
"against a particular persistent class. The <literal>Session</literal> is a "
"factory for <literal>Criteria</literal> instances."
msgstr ""
-"<literal>org.hibernate.Criteria</literal>æ¥å£è¡¨ç¤ºç¹å®æä¹
ç±»çä¸ä¸ªæ¥è¯¢ã"
-"<literal>Session</literal>æ¯ <literal>Criteria</literal>å®ä¾çå·¥åã"
+"<literal>org.hibernate.Criteria</literal >æ¥å£è¡¨ç¤ºç¹å®æä¹
ç±»çä¸ä¸ªæ¥è¯¢ã"
+"<literal>Session</literal> æ¯ <literal>Criteria</literal> å®ä¾çå·¥åã"
-#. Tag: programlisting
-#: query_criteria.xml:44
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
-"crit.setMaxResults(50);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:49
#, no-c-format
msgid "Narrowing the result set"
msgstr "éå¶ç»æéå
容"
#. Tag: para
-#: query_criteria.xml:51
#, no-c-format
msgid ""
"An individual query criterion is an instance of the interface <literal>org."
@@ -63,402 +52,215 @@
"criterion.Restrictions</literal> defines factory methods for obtaining "
"certain built-in <literal>Criterion</literal> types."
msgstr ""
-"ä¸ä¸ªåç¬çæ¥è¯¢æ¡ä»¶æ¯<literal>org.hibernate.criterion.Criterion</literal> æ¥å£"
-"çä¸ä¸ªå®ä¾ã<literal>org.hibernate.criterion.Restrictions</literal>ç±» å®ä¹äº"
-"è·å¾æäºå
ç½®<literal>Criterion</literal>ç±»åç工忹æ³ã"
+"ä¸ä¸ªåç¬çæ¥è¯¢æ¡ä»¶æ¯ <literal>org.hibernate.criterion.Criterion</literal> æ¥"
+"å£çä¸ä¸ªå®ä¾ã<literal>org.hibernate.criterion.Restrictions</literal> ç±»å®ä¹"
+"äºè·å¾æäºå
ç½® <literal>Criterion</literal> ç±»åç工忹æ³ã"
-#. Tag: programlisting
-#: query_criteria.xml:59
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
-" .list();]]>"
-msgstr ""
+msgid "Restrictions can be grouped logically."
+msgstr "约æå¯ä»¥æé»è¾åç»ã "
#. Tag: para
-#: query_criteria.xml:61
-#, fuzzy, no-c-format
-msgid "Restrictions can be grouped logically."
-msgstr "约æå¯ä»¥æé»è¾åç»ã"
-
-#. Tag: programlisting
-#: query_criteria.xml:65
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .add( Restrictions.or(\n"
-" Restrictions.eq( \"age\", new Integer(0) ),\n"
-" Restrictions.isNull(\"age\")\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:67
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk"
-"\" } ) )\n"
-" .add( Restrictions.disjunction()\n"
-" .add( Restrictions.isNull(\"age\") )\n"
-" .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
-" .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
-" ) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:69
-#, fuzzy, no-c-format
-msgid ""
"There are a range of built-in criterion types (<literal>Restrictions</"
"literal> subclasses). One of the most useful allows you to specify SQL "
"directly."
msgstr ""
-"Hibernateæä¾äºç¸å½å¤çå
ç½®criterionç±»å(<literal>Restrictions</literal> å"
-"ç±»), 使¯å°¤å
¶æç¨çæ¯å¯ä»¥å
è®¸ä½ ç´æ¥ä½¿ç¨SQLã"
+"Hibernate æä¾äºç¸å½å¤çå
ç½® criterion ç±»åï¼<literal>Restrictions</literal> "
+"åç±»ï¼ï¼ä½æ¯å°¤å
¶æç¨çæ¯å¯ä»¥å
è®¸ä½ ç´æ¥ä½¿ç¨ SQLã "
-#. Tag: programlisting
-#: query_criteria.xml:74
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", "
-"\"Fritz%\", Hibernate.STRING) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:76
#, no-c-format
msgid ""
"The <literal>{alias}</literal> placeholder with be replaced by the row alias "
"of the queried entity."
-msgstr "<literal>{alias}</literal>å ä½ç¬¦åºå½è¢«æ¿æ¢ä¸ºè¢«æ¥è¯¢å®ä½çåå«åã"
+msgstr "<literal>{alias}</literal> å ä½ç¬¦åºå½è¢«æ¿æ¢ä¸ºè¢«æ¥è¯¢å®ä½çåå«åã"
#. Tag: para
-#: query_criteria.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also obtain a criterion from a <literal>Property</literal> instance. "
"You can create a <literal>Property</literal> by calling <literal>Property."
"forName()</literal>:"
msgstr ""
-"<literal>Property</literal>å®ä¾æ¯è·å¾ä¸ä¸ªæ¡ä»¶çå¦å¤ä¸ç§éå¾ãä½ å¯ä»¥éè¿è°ç¨"
-"<literal>Property.forName()</literal> å建ä¸ä¸ª<literal>Property</literal>ã"
+"<literal>Property</literal> å®ä¾æ¯è·å¾ä¸ä¸ªæ¡ä»¶çå¦å¤ä¸ç§éå¾ãä½ å¯ä»¥éè¿è°ç¨ "
+"<literal>Property.forName()</literal> å建ä¸ä¸ª <literal>Property</literal>ï¼"
-#. Tag: programlisting
-#: query_criteria.xml:87
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-"Property age = Property.forName(\"age\");\n"
-"List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.disjunction()\n"
-" .add( age.isNull() )\n"
-" .add( age.eq( new Integer(0) ) )\n"
-" .add( age.eq( new Integer(1) ) )\n"
-" .add( age.eq( new Integer(2) ) )\n"
-" ) )\n"
-" .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", "
-"\"Pk\" } ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:92
#, no-c-format
msgid "Ordering the results"
msgstr "ç»æéæåº"
#. Tag: para
-#: query_criteria.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can order the results using <literal>org.hibernate.criterion.Order</"
"literal>."
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨<literal>org.hibernate.criterion.Order</literal>æ¥ä¸ºæ¥è¯¢ç»ææåºã"
+"ä½ å¯ä»¥ä½¿ç¨ <literal>org.hibernate.criterion.Order</literal> æ¥ä¸ºæ¥è¯¢ç»ææ"
+"åºã "
-#. Tag: programlisting
-#: query_criteria.xml:98
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\")\n"
-" .addOrder( Order.asc(\"name\") )\n"
-" .addOrder( Order.desc(\"age\") )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:100
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"name\").like(\"F%\") )\n"
-" .addOrder( Property.forName(\"name\").asc() )\n"
-" .addOrder( Property.forName(\"age\").desc() )\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:105
#, no-c-format
msgid "Associations"
msgstr "å
³è"
#. Tag: para
-#: query_criteria.xml:107
#, no-c-format
msgid ""
"By navigating associations using <literal>createCriteria()</literal> you can "
"specify constraints upon related entities:"
msgstr ""
+"éè¿ä½¿ç¨ <literal>createCriteria()</literal> 对å
³èè¿è¡å¯¼èªï¼ä½ å¯ä»¥æå®ç¸å
³å®"
+"ä½ç约æã"
-#. Tag: programlisting
-#: query_criteria.xml:112
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .createCriteria(\"kittens\")\n"
-" .add( Restrictions.like(\"name\", \"F%\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:114
-#, fuzzy, no-c-format
-msgid ""
"The second <literal>createCriteria()</literal> returns a new instance of "
"<literal>Criteria</literal> that refers to the elements of the "
"<literal>kittens</literal> collection."
msgstr ""
-"注æç¬¬äºä¸ª <literal>createCriteria()</literal>è¿åä¸ä¸ªæ°ç "
-"<literal>Criteria</literal>å®ä¾ï¼è¯¥å®ä¾å¼ç¨<literal>kittens</literal> éåä¸"
-"çå
ç´ ã"
+"注æç¬¬äºä¸ª <literal>createCriteria()</literal> è¿åä¸ä¸ªæ°ç "
+"<literal>Criteria</literal> å®ä¾ï¼è¯¥å®ä¾å¼ç¨ <literal>kittens</literal> éå"
+"ä¸çå
ç´ ã "
#. Tag: para
-#: query_criteria.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"There is also an alternate form that is useful in certain circumstances:"
-msgstr "æ¥ä¸æ¥ï¼æ¿æ¢å½¢æå¨æäºæ
åµä¸ä¹æ¯å¾æç¨çã"
+msgstr "æ¥ä¸æ¥ï¼æ¿æ¢å½¢æå¨æäºæ
åµä¸ä¹æ¯å¾æç¨çã "
-#. Tag: programlisting
-#: query_criteria.xml:124
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createAlias(\"kittens\", \"kt\")\n"
-" .createAlias(\"mate\", \"mt\")\n"
-" .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:126
#, no-c-format
msgid ""
"(<literal>createAlias()</literal> does not create a new instance of "
"<literal>Criteria</literal>.)"
msgstr ""
-"(<literal>createAlias()</literal>å¹¶ä¸å建ä¸ä¸ªæ°ç <literal>Criteria</literal>"
-"å®ä¾ã)"
+"ï¼<literal>createAlias()</literal> å¹¶ä¸å建ä¸ä¸ªæ°ç <literal>Criteria</"
+"literal> å®ä¾ãï¼"
#. Tag: para
-#: query_criteria.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The kittens collections held by the <literal>Cat</literal> instances "
"returned by the previous two queries are <emphasis>not</emphasis> pre-"
"filtered by the criteria. If you want to retrieve just the kittens that "
"match the criteria, you must use a <literal>ResultTransformer</literal>."
msgstr ""
-"<literal>Cat</literal>å®ä¾æä¿åçä¹å两次æ¥è¯¢æè¿åçkittensé忝 "
-"<emphasis>没æ</emphasis>被æ¡ä»¶é¢è¿æ»¤çãå¦æä½ å¸æåªè·å¾ç¬¦åæ¡ä»¶çkittensï¼ "
-"ä½ å¿
须使ç¨<literal>ResultTransformer</literal>ã"
+"<literal>Cat</literal> å®ä¾æä¿åçä¹å两次æ¥è¯¢æè¿åç kittens é忝 "
+"<emphasis>没æ</emphasis>被æ¡ä»¶é¢è¿æ»¤çãå¦æä½ å¸æåªè·å¾ç¬¦åæ¡ä»¶ç kittensï¼"
+"ä½ å¿
é¡»ä½¿ç¨ <literal>ResultTransformer</literal>ã "
-#. Tag: programlisting
-#: query_criteria.xml:138
+#. Tag: para
#, no-c-format
+msgid "Additionally you may manipulate the result set using a left outer join:"
+msgstr ""
+
+#. Tag: para
+#, no-c-format
msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .createCriteria(\"kittens\", \"kt\")\n"
-" .add( Restrictions.eq(\"name\", \"F%\") )\n"
-" .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
-" .list();\n"
-"Iterator iter = cats.iterator();\n"
-"while ( iter.hasNext() ) {\n"
-" Map map = (Map) iter.next();\n"
-" Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
-" Cat kitten = (Cat) map.get(\"kt\");\n"
-"}]]>"
+"This will return all of the <literal>Cat</literal>s with a mate whose name "
+"starts with \"good\" ordered by their mate's age, and all cats who do not "
+"have a mate. This is useful when there is a need to order or limit in the "
+"database prior to returning complex/large result sets, and removes many "
+"instances where multiple queries would have to be performed and the results "
+"unioned by java in memory."
msgstr ""
+#. Tag: para
+#, no-c-format
+msgid ""
+"Without this feature, first all of the cats without a mate would need to be "
+"loaded in one query."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid ""
+"A second query would need to retreive the cats with mates who's name started "
+"with \"good\" sorted by the mates age."
+msgstr ""
+
+#. Tag: para
+#, no-c-format
+msgid "Thirdly, in memory; the lists would need to be joined manually."
+msgstr ""
+
#. Tag: title
-#: query_criteria.xml:143
#, no-c-format
msgid "Dynamic association fetching"
msgstr "卿å
³èæå"
#. Tag: para
-#: query_criteria.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can specify association fetching semantics at runtime using "
"<literal>setFetchMode()</literal>."
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨<literal>setFetchMode()</literal>å¨è¿è¡æ¶å®ä¹å¨æå
³èæåçè¯ä¹ã"
+"ä½ å¯ä»¥ä½¿ç¨ <literal>setFetchMode()</literal> å¨è¿è¡æ¶å®ä¹å¨æå
³èæåçè¯"
+"ä¹ã "
-#. Tag: programlisting
-#: query_criteria.xml:150
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
-" .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
-" .setFetchMode(\"mate\", FetchMode.EAGER)\n"
-" .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:152
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"This query will fetch both <literal>mate</literal> and <literal>kittens</"
-"literal> by outer join. See <xref linkend=\"performance-fetching\"/> for "
+"literal> by outer join. See <xref linkend=\"performance-fetching\" /> for "
"more information."
msgstr ""
-"è¿ä¸ªæ¥è¯¢å¯ä»¥éè¿å¤è¿æ¥æå<literal>mate</literal>å<literal>kittens</"
-"literal>ã æ¥ç<xref linkend=\"performance-fetching\"/>å¯ä»¥è·å¾æ´å¤ä¿¡æ¯ã"
+"è¿ä¸ªæ¥è¯¢å¯ä»¥éè¿å¤è¿æ¥æå <literal>mate</literal> å <literal>kittens</"
+"literal>ãæ¥ç <xref linkend=\"performance-fetching\" /> å¯ä»¥è·å¾æ´å¤ä¿¡æ¯ã"
#. Tag: title
-#: query_criteria.xml:160
#, no-c-format
msgid "Example queries"
msgstr "æ¥è¯¢ç¤ºä¾"
#. Tag: para
-#: query_criteria.xml:162
#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Example</literal> allows you to "
"construct a query criterion from a given instance."
msgstr ""
-"<literal>org.hibernate.criterion.Example</literal>ç±»å
è®¸ä½ éè¿ä¸ä¸ªç»å®å®ä¾ æ"
+"<literal>org.hibernate.criterion.Example</literal> ç±»å
è®¸ä½ éè¿ä¸ä¸ªç»å®å®ä¾æ"
"建ä¸ä¸ªæ¡ä»¶æ¥è¯¢ã"
-#. Tag: programlisting
-#: query_criteria.xml:167
-#, no-c-format
-msgid ""
-"<![CDATA[Cat cat = new Cat();\n"
-"cat.setSex('F');\n"
-"cat.setColor(Color.BLACK);\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:169
#, no-c-format
msgid ""
"Version properties, identifiers and associations are ignored. By default, "
"null valued properties are excluded."
-msgstr "çæ¬å±æ§ãæ è¯ç¬¦åå
³è被忽ç¥ãé»è®¤æ
åµä¸å¼ä¸ºnullç屿§å°è¢«æé¤ã"
+msgstr "çæ¬å±æ§ãæ è¯ç¬¦åå
³è被忽ç¥ãé»è®¤æ
åµä¸å¼ä¸º null ç屿§å°è¢«æé¤ã"
#. Tag: para
-#: query_criteria.xml:174
#, no-c-format
msgid "You can adjust how the <literal>Example</literal> is applied."
-msgstr "ä½ å¯ä»¥èªè¡è°æ´<literal>Example</literal>ä½¿ä¹æ´å®ç¨ã"
+msgstr "ä½ å¯ä»¥èªè¡è°æ´ <literal>Example</literal> ä½¿ä¹æ´å®ç¨ã"
-#. Tag: programlisting
-#: query_criteria.xml:178
-#, no-c-format
-msgid ""
-"<![CDATA[Example example = Example.create(cat)\n"
-" .excludeZeroes() //exclude zero valued properties\n"
-" .excludeProperty(\"color\") //exclude the property named \"color\"\n"
-" .ignoreCase() //perform case insensitive string "
-"comparisons\n"
-" .enableLike(); //use like for string comparisons\n"
-"List results = session.createCriteria(Cat.class)\n"
-" .add(example)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:180
#, no-c-format
msgid "You can even use examples to place criteria upon associated objects."
-msgstr "ä½ çè³å¯ä»¥ä½¿ç¨exampleså¨å
³èå¯¹è±¡ä¸æ¾ç½®æ¡ä»¶ã"
+msgstr "ä½ çè³å¯ä»¥ä½¿ç¨ examples å¨å
³èå¯¹è±¡ä¸æ¾ç½®æ¡ä»¶ã"
-#. Tag: programlisting
-#: query_criteria.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .add( Example.create(cat) )\n"
-" .createCriteria(\"mate\")\n"
-" .add( Example.create( cat.getMate() ) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:189
#, no-c-format
msgid "Projections, aggregation and grouping"
-msgstr "æå½±(Projections)ãèåï¼aggregationï¼ååç»ï¼groupingï¼"
+msgstr "æå½±ï¼Projectionsï¼ãèåï¼aggregationï¼ååç»ï¼groupingï¼"
#. Tag: para
-#: query_criteria.xml:190
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The class <literal>org.hibernate.criterion.Projections</literal> is a "
"factory for <literal>Projection</literal> instances. You can apply a "
"projection to a query by calling <literal>setProjection()</literal>."
msgstr ""
-"<literal>org.hibernate.criterion.Projections</literal>æ¯ "
+"<literal>org.hibernate.criterion.Projections</literal> æ¯ "
"<literal>Projection</literal> çå®ä¾å·¥åãæä»¬éè¿è°ç¨ <literal>setProjection"
-"()</literal>åºç¨æå½±å°ä¸ä¸ªæ¥è¯¢ã"
+"()</literal> åºç¨æå½±å°ä¸ä¸ªæ¥è¯¢ã "
-#. Tag: programlisting
-#: query_criteria.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.rowCount() )\n"
-" .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:198
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount() )\n"
-" .add( Projections.avg(\"weight\") )\n"
-" .add( Projections.max(\"weight\") )\n"
-" .add( Projections.groupProperty(\"color\") )\n"
-" )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:200
#, no-c-format
msgid ""
"There is no explicit \"group by\" necessary in a criteria query. Certain "
@@ -466,43 +268,20 @@
"emphasis>, which also appear in the SQL <literal>group by</literal> clause."
msgstr ""
"å¨ä¸ä¸ªæ¡ä»¶æ¥è¯¢ä¸æ²¡æå¿
è¦æ¾å¼çä½¿ç¨ \"group by\" ãæäºæå½±ç±»åå°±æ¯è¢«å®ä¹ä¸º"
-"<emphasis> åç»æå½±</emphasis>ï¼ä»ä»¬ä¹åºç°å¨SQLç<literal>group by</literal>"
-"åå¥ä¸ã"
+"<emphasis>åç»æå½±</emphasis>ï¼ä»ä»¬ä¹åºç°å¨ SQL ç <literal>group by</"
+"literal> åå¥ä¸ã"
#. Tag: para
-#: query_criteria.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An alias can be assigned to a projection so that the projected value can be "
"referred to in restrictions or orderings. Here are two different ways to do "
"this:"
msgstr ""
"ä½ å¯ä»¥éæ©æä¸ä¸ªå«åææ´¾ç»ä¸ä¸ªæå½±ï¼è¿æ ·å¯ä»¥ä½¿æå½±å¼è¢«çº¦æææåºæå¼ç¨ãä¸é¢"
-"æ¯ä¸¤ç§ä¸åçå®ç°æ¹å¼ï¼"
+"æ¯ä¸¤ç§ä¸åçå®ç°æ¹å¼ï¼ "
-#. Tag: programlisting
-#: query_criteria.xml:212
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.alias( Projections.groupProperty(\"color\"), "
-"\"colr\" ) )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:214
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
-" .addOrder( Order.asc(\"colr\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:216
#, no-c-format
msgid ""
"The <literal>alias()</literal> and <literal>as()</literal> methods simply "
@@ -510,168 +289,55 @@
"<literal>Projection</literal>. As a shortcut, you can assign an alias when "
"you add the projection to a projection list:"
msgstr ""
-"<literal>alias()</literal>å<literal>as()</literal>æ¹æ³ç®ä¾¿çå°ä¸ä¸ªæå½±å®ä¾å
"
-"è£
å°å¦å¤ä¸ä¸ª å«åç<literal>Projection</literal>å®ä¾ä¸ãç®èè¨ä¹ï¼å½ä½ æ·»å ä¸"
-"个æå½±å°ä¸ä¸ªæå½±åè¡¨ä¸æ¶ ä½ å¯ä»¥ä¸ºå®æå®ä¸ä¸ªå«åï¼"
+"<literal>alias()</literal> å <literal>as()</literal> æ¹æ³ç®ä¾¿çå°ä¸ä¸ªæå½±å®"
+"ä¾å
è£
å°å¦å¤ä¸ä¸ª å«åç <literal>Projection</literal> å®ä¾ä¸ãç®èè¨ä¹ï¼å½ä½ "
+"æ·»å ä¸ä¸ªæå½±å°ä¸ä¸ªæå½±åè¡¨ä¸æ¶ä½ å¯ä»¥ä¸ºå®æå®ä¸ä¸ªå«åï¼"
-#. Tag: programlisting
-#: query_criteria.xml:223
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount(), \"catCountByColor\" )\n"
-" .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
-" .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
-" .add( Projections.groupProperty(\"color\"), \"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:225
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
-" .createAlias(\"kittens\", \"kit\")\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.property(\"cat.name\"), \"catName\" )\n"
-" .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
-" )\n"
-" .addOrder( Order.asc(\"catName\") )\n"
-" .addOrder( Order.asc(\"kitName\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_criteria.xml:227
#, no-c-format
msgid ""
"You can also use <literal>Property.forName()</literal> to express "
"projections:"
-msgstr "ä½ ä¹å¯ä»¥ä½¿ç¨<literal>Property.forName()</literal>æ¥è¡¨ç¤ºæå½±ï¼"
+msgstr "ä½ ä¹å¯ä»¥ä½¿ç¨ <literal>Property.forName()</literal> æ¥è¡¨ç¤ºæå½±ï¼"
-#. Tag: programlisting
-#: query_criteria.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Property.forName(\"name\") )\n"
-" .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:233
-#, no-c-format
-msgid ""
-"<![CDATA[List results = session.createCriteria(Cat.class)\n"
-" .setProjection( Projections.projectionList()\n"
-" .add( Projections.rowCount().as(\"catCountByColor\") )\n"
-" .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
-" .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
-" .add( Property.forName(\"color\").group().as(\"color\" )\n"
-" )\n"
-" .addOrder( Order.desc(\"catCountByColor\") )\n"
-" .addOrder( Order.desc(\"avgWeight\") )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:238
#, no-c-format
msgid "Detached queries and subqueries"
-msgstr "离线(detached)æ¥è¯¢ååæ¥è¯¢"
+msgstr "离线ï¼detachedï¼æ¥è¯¢ååæ¥è¯¢"
#. Tag: para
-#: query_criteria.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>DetachedCriteria</literal> class allows you to create a query "
"outside the scope of a session and then execute it using an arbitrary "
"<literal>Session</literal>."
msgstr ""
-"<literal>DetachedCriteria</literal>ç±»ä½¿ä½ å¨ä¸ä¸ªsessionèå´ä¹å¤å建ä¸ä¸ªæ¥è¯¢ï¼"
-"å¹¶ä¸å¯ä»¥ä½¿ç¨ä»»æç <literal>Session</literal>æ¥æ§è¡å®ã"
+"<literal>DetachedCriteria</literal> ç±»ä½¿ä½ å¨ä¸ä¸ª session èå´ä¹å¤å建ä¸ä¸ªæ¥"
+"询ï¼å¹¶ä¸å¯ä»¥ä½¿ç¨ä»»æç <literal>Session</literal> æ¥æ§è¡å®ã "
-#. Tag: programlisting
-#: query_criteria.xml:244
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
-" .add( Property.forName(\"sex\").eq('F') );\n"
-" \n"
-"Session session = ....;\n"
-"Transaction txn = session.beginTransaction();\n"
-"List results = query.getExecutableCriteria(session).setMaxResults(100).list"
-"();\n"
-"txn.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:246
-#, fuzzy, no-c-format
-msgid ""
"A <literal>DetachedCriteria</literal> can also be used to express a "
"subquery. Criterion instances involving subqueries can be obtained via "
"<literal>Subqueries</literal> or <literal>Property</literal>."
msgstr ""
-"<literal>DetachedCriteria</literal>ä¹å¯ä»¥ç¨ä»¥è¡¨ç¤ºåæ¥è¯¢ãæ¡ä»¶å®ä¾å
å«åæ¥è¯¢å¯"
-"以éè¿ <literal>Subqueries</literal>æè
<literal>Property</literal>è·å¾ã"
+"<literal>DetachedCriteria</literal> ä¹å¯ä»¥ç¨ä»¥è¡¨ç¤ºåæ¥è¯¢ãæ¡ä»¶å®ä¾å
å«åæ¥è¯¢"
+"å¯ä»¥éè¿ <literal>Subqueries</literal> æè
<literal>Property</literal> è·"
+"å¾ã "
-#. Tag: programlisting
-#: query_criteria.xml:252
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\").avg() );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Property.forName(\"weight\").gt(avgWeight) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_criteria.xml:254
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
-" .setProjection( Property.forName(\"weight\") );\n"
-"session.createCriteria(Cat.class)\n"
-" .add( Subqueries.geAll(\"weight\", weights) )\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:256
-#, fuzzy, no-c-format
msgid "Correlated subqueries are also possible:"
-msgstr "çè³ç¸äºå
³èçåæ¥è¯¢ä¹æ¯æå¯è½çï¼"
+msgstr "çè³ç¸äºå
³èçåæ¥è¯¢ä¹æ¯æå¯è½çï¼ "
-#. Tag: programlisting
-#: query_criteria.xml:260
-#, no-c-format
-msgid ""
-"<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
-"class, \"cat2\")\n"
-" .setProjection( Property.forName(\"weight\").avg() )\n"
-" .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
-"session.createCriteria(Cat.class, \"cat\")\n"
-" .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_criteria.xml:269
#, no-c-format
msgid "Queries by natural identifier"
-msgstr "æ ¹æ®èªç¶æ è¯æ¥è¯¢(Queries by natural identifier)"
+msgstr "æ ¹æ®èªç¶æ è¯æ¥è¯¢ï¼Queries by natural identifierï¼"
#. Tag: para
-#: query_criteria.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For most queries, including criteria queries, the query cache is not "
"efficient because query cache invalidation occurs too frequently. However, "
@@ -680,75 +346,541 @@
"applications, this kind of query occurs frequently. The criteria API "
"provides special provision for this use case."
msgstr ""
-"坹大夿°æ¥è¯¢ï¼å
æ¬æ¡ä»¶æ¥è¯¢èè¨ï¼å 为æ¥è¯¢ç¼åç失æ(invalidation)åçå¾å¤ªé¢"
+"坹大夿°æ¥è¯¢ï¼å
æ¬æ¡ä»¶æ¥è¯¢èè¨ï¼å 为æ¥è¯¢ç¼åç失æï¼invalidationï¼åçå¾å¤ªé¢"
"ç¹ï¼æ¥è¯¢ç¼å䏿¯é叏髿ãç¶èï¼æä¸ç§ç¹å«çæ¥è¯¢ï¼å¯ä»¥éè¿ä¸åçèªç¶é®ä¼åç¼"
-"åç失æç®æ³ã卿äºåºç¨ä¸ï¼è¿ç§ç±»åçæ¥è¯¢æ¯è¾å¸¸è§ãæ¡ä»¶æ¥è¯¢API对è¿ç§ç¨ä¾æä¾"
-"äºç¹å«è§çº¦ã"
+"åç失æç®æ³ã卿äºåºç¨ä¸ï¼è¿ç§ç±»åçæ¥è¯¢æ¯è¾å¸¸è§ãæ¡ä»¶æ¥è¯¢ API 对è¿ç§ç¨ä¾æ"
+"ä¾äºç¹å«è§çº¦ã "
#. Tag: para
-#: query_criteria.xml:279
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, map the natural key of your entity using <literal><natural-id></"
"literal> and enable use of the second-level cache."
msgstr ""
-"é¦å
ï¼ä½ åºè¯¥å¯¹ä½ çentity使ç¨<literal><natural-id></literal>æ¥æ å°èªç¶"
-"é®ï¼ç¶åæå¼ç¬¬äºçº§ç¼åã"
+"é¦å
ï¼ä½ åºè¯¥å¯¹ä½ ç entity ä½¿ç¨ <literal><natural-id></literal> æ¥æ å°èª"
+"ç¶é®ï¼ç¶åæå¼ç¬¬äºçº§ç¼åã "
-#. Tag: programlisting
-#: query_criteria.xml:284
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"User\">\n"
-" <cache usage=\"read-write\"/>\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <natural-id>\n"
-" <property name=\"name\"/>\n"
-" <property name=\"org\"/>\n"
-" </natural-id>\n"
-" <property name=\"password\"/>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_criteria.xml:286
-#, fuzzy, no-c-format
-msgid ""
"This functionality is not intended for use with entities with "
"<emphasis>mutable</emphasis> natural keys."
-msgstr "注æ,æ¤åè½å¯¹å
·æ<emphasis>mutable</emphasis>èªç¶é®çentityå¹¶ä¸éç¨ã"
+msgstr ""
+"注æ,æ¤åè½å¯¹å
·æ<emphasis>mutable</emphasis>èªç¶é®ç entity å¹¶ä¸éç¨ã "
#. Tag: para
-#: query_criteria.xml:291
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Once you have enabled the Hibernate query cache, the <literal>Restrictions."
"naturalId()</literal> allows you to make use of the more efficient cache "
"algorithm."
msgstr ""
-"ç°å¨ï¼æä»¬å¯ä»¥ç¨<literal>Restrictions.naturalId()</literal>æ¥ä½¿ç¨æ´å 髿çç¼"
-"åç®æ³ã"
+"ç°å¨ï¼æä»¬å¯ä»¥ç¨ <literal>Restrictions.naturalId()</literal> æ¥ä½¿ç¨æ´å 髿ç"
+"ç¼åç®æ³ã "
-#. Tag: programlisting
-#: query_criteria.xml:297
-#, no-c-format
-msgid ""
-"<![CDATA[session.createCriteria(User.class)\n"
-" .add( Restrictions.naturalId()\n"
-" .set(\"name\", \"gavin\")\n"
-" .set(\"org\", \"hb\") \n"
-" ).setCacheable(true)\n"
-" .uniqueResult();]]>"
-msgstr ""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n"
+#~ "crit.setMaxResults(50);\n"
+#~ "List cats = crit.list();]]>"
+#~ msgstr ""
+#~ "Criteria crit = sess.createCriteria(Cat.class);\n"
+#~ "crit.setMaxResults(50);\n"
+#~ "List cats = crit.list();"
+#, fuzzy
#~ msgid ""
-#~ "You may easily specify constraints upon related entities by navigating "
-#~ "associations using <literal>createCriteria()</literal>."
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
+#~ " .list();]]>"
#~ msgstr ""
-#~ "ä½ å¯ä»¥ä½¿ç¨<literal>createCriteria()</literal>é常容æçå¨äºç¸å
³èçå®ä½é´"
-#~ "å»ºç« çº¦æã"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n"
+#~ " .list();"
-#~ msgid "Next, enable the Hibernate query cache."
-#~ msgstr "ç¶åï¼æå¼Hibernate æ¥è¯¢ç¼åã"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.or(\n"
+#~ " Restrictions.eq( \"age\", new Integer(0) ),\n"
+#~ " Restrictions.isNull(\"age\")\n"
+#~ " ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .add( Restrictions.or(\n"
+#~ " Restrictions.eq( \"age\", new Integer(0) ),\n"
+#~ " Restrictions.isNull(\"age\")\n"
+#~ " ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", "
+#~ "\"Pk\" } ) )\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( Restrictions.isNull(\"age\") )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", "
+#~ "\"Pk\" } ) )\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( Restrictions.isNull(\"age\") )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(0) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(1) ) )\n"
+#~ " .add( Restrictions.eq(\"age\", new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)"
+#~ "\", \"Fritz%\", Hibernate.STRING) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)"
+#~ "\", \"Fritz%\", \n"
+#~ " Hibernate.STRING) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "Property age = Property.forName(\"age\");\n"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( age.isNull() )\n"
+#~ " .add( age.eq( new Integer(0) ) )\n"
+#~ " .add( age.eq( new Integer(1) ) )\n"
+#~ " .add( age.eq( new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi"
+#~ "\", \"Pk\" } ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Property age = Property.forName(\"age\");\n"
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.disjunction()\n"
+#~ " .add( age.isNull() )\n"
+#~ " .add( age.eq( new Integer(0) ) )\n"
+#~ " .add( age.eq( new Integer(1) ) )\n"
+#~ " .add( age.eq( new Integer(2) ) )\n"
+#~ " ) )\n"
+#~ " .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi"
+#~ "\", \"Pk\" } ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\")\n"
+#~ " .addOrder( Order.asc(\"name\") )\n"
+#~ " .addOrder( Order.desc(\"age\") )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\")\n"
+#~ " .addOrder( Order.asc(\"name\") )\n"
+#~ " .addOrder( Order.desc(\"age\") )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"name\").like(\"F%\") )\n"
+#~ " .addOrder( Property.forName(\"name\").asc() )\n"
+#~ " .addOrder( Property.forName(\"age\").desc() )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"name\").like(\"F%\") )\n"
+#~ " .addOrder( Property.forName(\"name\").asc() )\n"
+#~ " .addOrder( Property.forName(\"age\").desc() )\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .createCriteria(\"kittens\")\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .createCriteria(\"kittens\")\n"
+#~ " .add( Restrictions.like(\"name\", \"F%\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createAlias(\"kittens\", \"kt\")\n"
+#~ " .createAlias(\"mate\", \"mt\")\n"
+#~ " .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createAlias(\"kittens\", \"kt\")\n"
+#~ " .createAlias(\"mate\", \"mt\")\n"
+#~ " .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createCriteria(\"kittens\", \"kt\")\n"
+#~ " .add( Restrictions.eq(\"name\", \"F%\") )\n"
+#~ " .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
+#~ " .list();\n"
+#~ "Iterator iter = cats.iterator();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Map map = (Map) iter.next();\n"
+#~ " Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
+#~ " Cat kitten = (Cat) map.get(\"kt\");\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .createCriteria(\"kittens\", \"kt\")\n"
+#~ " .add( Restrictions.eq(\"name\", \"F%\") )\n"
+#~ " .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n"
+#~ " .list();\n"
+#~ "Iterator iter = cats.iterator();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Map map = (Map) iter.next();\n"
+#~ " Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n"
+#~ " Cat kitten = (Cat) map.get(\"kt\");\n"
+#~ "}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .setFetchMode(\"mate\", FetchMode.EAGER)\n"
+#~ " .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createCriteria(Cat.class)\n"
+#~ " .add( Restrictions.like(\"name\", \"Fritz%\") )\n"
+#~ " .setFetchMode(\"mate\", FetchMode.EAGER)\n"
+#~ " .setFetchMode(\"kittens\", FetchMode.EAGER)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new Cat();\n"
+#~ "cat.setSex('F');\n"
+#~ "cat.setColor(Color.BLACK);\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Cat cat = new Cat();\n"
+#~ "cat.setSex('F');\n"
+#~ "cat.setColor(Color.BLACK);\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Example example = Example.create(cat)\n"
+#~ " .excludeZeroes() //exclude zero valued properties\n"
+#~ " .excludeProperty(\"color\") //exclude the property named \"color\"\n"
+#~ " .ignoreCase() //perform case insensitive string "
+#~ "comparisons\n"
+#~ " .enableLike(); //use like for string comparisons\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add(example)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "Example example = Example.create(cat)\n"
+#~ " .excludeZeroes() //exclude zero valued properties\n"
+#~ " .excludeProperty(\"color\") //exclude the property named \"color\"\n"
+#~ " .ignoreCase() //perform case insensitive string "
+#~ "comparisons\n"
+#~ " .enableLike(); //use like for string comparisons\n"
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add(example)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .createCriteria(\"mate\")\n"
+#~ " .add( Example.create( cat.getMate() ) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .add( Example.create(cat) )\n"
+#~ " .createCriteria(\"mate\")\n"
+#~ " .add( Example.create( cat.getMate() ) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.rowCount() )\n"
+#~ " .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.rowCount() )\n"
+#~ " .add( Restrictions.eq(\"color\", Color.BLACK) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount() )\n"
+#~ " .add( Projections.avg(\"weight\") )\n"
+#~ " .add( Projections.max(\"weight\") )\n"
+#~ " .add( Projections.groupProperty(\"color\") )\n"
+#~ " )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount() )\n"
+#~ " .add( Projections.avg(\"weight\") )\n"
+#~ " .add( Projections.max(\"weight\") )\n"
+#~ " .add( Projections.groupProperty(\"color\") )\n"
+#~ " )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.alias( Projections.groupProperty(\"color"
+#~ "\"), \"colr\" ) )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.alias( Projections.groupProperty(\"color"
+#~ "\"), \"colr\" ) )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.groupProperty(\"color\").as(\"colr\") )\n"
+#~ " .addOrder( Order.asc(\"colr\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount(), \"catCountByColor\" )\n"
+#~ " .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
+#~ " .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
+#~ " .add( Projections.groupProperty(\"color\"), \"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount(), \"catCountByColor\" )\n"
+#~ " .add( Projections.avg(\"weight\"), \"avgWeight\" )\n"
+#~ " .add( Projections.max(\"weight\"), \"maxWeight\" )\n"
+#~ " .add( Projections.groupProperty(\"color\"), \"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Domestic.class, \"cat\")\n"
+#~ " .createAlias(\"kittens\", \"kit\")\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.property(\"cat.name\"), \"catName\" )\n"
+#~ " .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.asc(\"catName\") )\n"
+#~ " .addOrder( Order.asc(\"kitName\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Domestic.class, \"cat\")\n"
+#~ " .createAlias(\"kittens\", \"kit\")\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.property(\"cat.name\"), \"catName\" )\n"
+#~ " .add( Projections.property(\"kit.name\"), \"kitName\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.asc(\"catName\") )\n"
+#~ " .addOrder( Order.asc(\"kitName\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"name\") )\n"
+#~ " .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"name\") )\n"
+#~ " .add( Property.forName(\"color\").eq(Color.BLACK) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount().as(\"catCountByColor\") )\n"
+#~ " .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
+#~ " .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
+#~ " .add( Property.forName(\"color\").group().as(\"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List results = session.createCriteria(Cat.class)\n"
+#~ " .setProjection( Projections.projectionList()\n"
+#~ " .add( Projections.rowCount().as(\"catCountByColor\") )\n"
+#~ " .add( Property.forName(\"weight\").avg().as(\"avgWeight\") )\n"
+#~ " .add( Property.forName(\"weight\").max().as(\"maxWeight\") )\n"
+#~ " .add( Property.forName(\"color\").group().as(\"color\" )\n"
+#~ " )\n"
+#~ " .addOrder( Order.desc(\"catCountByColor\") )\n"
+#~ " .addOrder( Order.desc(\"avgWeight\") )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .add( Property.forName(\"sex\").eq('F') );\n"
+#~ " \n"
+#~ "Session session = ....;\n"
+#~ "Transaction txn = session.beginTransaction();\n"
+#~ "List results = query.getExecutableCriteria(session).setMaxResults(100)."
+#~ "list();\n"
+#~ "txn.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria query = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .add( Property.forName(\"sex\").eq('F') );\n"
+#~ " \n"
+#~ "Session session = ....;\n"
+#~ "Transaction txn = session.beginTransaction();\n"
+#~ "List results = query.getExecutableCriteria(session).setMaxResults(100)."
+#~ "list();\n"
+#~ "txn.commit();\n"
+#~ "session.close();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat."
+#~ "class)\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"weight\").gt(avgWeight) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria avgWeight = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Property.forName(\"weight).gt(avgWeight) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\") );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Subqueries.geAll(\"weight\", weights) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria weights = DetachedCriteria.forClass(Cat.class)\n"
+#~ " .setProjection( Property.forName(\"weight\") );\n"
+#~ "session.createCriteria(Cat.class)\n"
+#~ " .add( Subqueries.geAll(\"weight\", weights) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat."
+#~ "class, \"cat2\")\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() )\n"
+#~ " .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
+#~ "session.createCriteria(Cat.class, \"cat\")\n"
+#~ " .add( Property.forName(\"weight\").gt(avgWeightForSex) )\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "DetachedCriteria avgWeightForSex = DetachedCriteria.forClass(Cat.class, "
+#~ "\"cat2\")\n"
+#~ " .setProjection( Property.forName(\"weight\").avg() )\n"
+#~ " .add( Property.forName(\"cat2.sex\").eqProperty(\"cat.sex\") );\n"
+#~ "session.createCriteria(Cat.class, \"cat\")\n"
+#~ " .add( Property.forName(\"weight).gt(avgWeightForSex) )\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"User\">\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <natural-id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <property name=\"org\"/>\n"
+#~ " </natural-id>\n"
+#~ " <property name=\"password\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"User\">\n"
+#~ " <cache usage=\"read-write\"/>\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <natural-id>\n"
+#~ " <property name=\"name\"/>\n"
+#~ " <property name=\"org\"/>\n"
+#~ " </natural-id>\n"
+#~ " <property name=\"password\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[session.createCriteria(User.class)\n"
+#~ " .add( Restrictions.naturalId()\n"
+#~ " .set(\"name\", \"gavin\")\n"
+#~ " .set(\"org\", \"hb\") \n"
+#~ " ).setCacheable(true)\n"
+#~ " .uniqueResult();]]>"
+#~ msgstr ""
+#~ "session.createCriteria(User.class)\n"
+#~ " .add( Restrictions.naturalId()\n"
+#~ " .set(\"name\", \"gavin\")\n"
+#~ " .set(\"org\", \"hb\") \n"
+#~ " ).setCacheable(true)\n"
+#~ " .uniqueResult();"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_hql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_hql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_hql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,42 +1,42 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2009-12-07 21:13+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_hql.xml:29
#, no-c-format
msgid "HQL: The Hibernate Query Language"
-msgstr "HQL: Hibernateæ¥è¯¢è¯è¨"
+msgstr "HQL: Hibernate æ¥è¯¢è¯è¨"
#. Tag: para
-#: query_hql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate uses a powerful query language (HQL) that is similar in appearance "
"to SQL. Compared with SQL, however, HQL is fully object-oriented and "
"understands notions like inheritance, polymorphism and association."
msgstr ""
-"Hibernateé
å¤äºä¸ç§éå¸¸å¼ºå¤§çæ¥è¯¢è¯è¨ï¼è¿ç§è¯è¨çä¸å»å¾åSQLã使¯ä¸è¦è¢«è¯æ³"
-"ç»æ ä¸çç¸ä¼¼æè¿·æï¼HQLæ¯é常ææè¯ç被设计为å®å
¨é¢åå¯¹è±¡çæ¥è¯¢ï¼å®å¯ä»¥çè§£"
-"å¦ç»§æ¿ã夿 åå
³èä¹ç±»çæ¦å¿µã"
+"Hibernate é
å¤äºä¸ç§éå¸¸å¼ºå¤§çæ¥è¯¢è¯è¨ï¼è¿ç§è¯è¨çä¸å»å¾å SQLã使¯ä¸è¦è¢«è¯"
+"æ³ç»æä¸çç¸ä¼¼æè¿·æï¼HQL æ¯é常ææè¯ç被设计为å®å
¨é¢åå¯¹è±¡çæ¥è¯¢ï¼å®å¯ä»¥ç"
+"è§£å¦ç»§æ¿ã夿åå
³èä¹ç±»çæ¦å¿µã "
#. Tag: title
-#: query_hql.xml:38
#, no-c-format
msgid "Case Sensitivity"
msgstr "大å°åæææ§é®é¢"
#. Tag: para
-#: query_hql.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"With the exception of names of Java classes and properties, queries are case-"
"insensitive. So <literal>SeLeCT</literal> is the same as <literal>sELEct</"
@@ -44,257 +44,157 @@
"hibernate.eg.FOO</literal> is not <literal>org.hibernate.eg.Foo</literal>, "
"and <literal>foo.barSet</literal> is not <literal>foo.BARSET</literal>."
msgstr ""
-"é¤äºJavaç±»ä¸å±æ§çåç§°å¤ï¼æ¥è¯¢è¯å¥å¯¹å¤§å°å并䏿æã æä»¥ <literal>SeLeCT</"
+"é¤äº Java ç±»ä¸å±æ§çåç§°å¤ï¼æ¥è¯¢è¯å¥å¯¹å¤§å°å并䏿æã æä»¥ <literal>SeLeCT</"
"literal> ä¸ <literal>sELEct</literal> 以å <literal>SELECT</literal> æ¯ç¸å"
"çï¼ä½æ¯ <literal>org.hibernate.eg.FOO</literal> å¹¶ä¸çä»·äº <literal>org."
"hibernate.eg.Foo</literal> å¹¶ä¸ <literal>foo.barSet</literal> ä¹ä¸çä»·äº "
-"<literal>foo.BARSET</literal>ã"
+"<literal>foo.BARSET</literal>ã "
#. Tag: para
-#: query_hql.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This manual uses lowercase HQL keywords. Some users find queries with "
"uppercase keywords more readable, but this convention is unsuitable for "
"queries embedded in Java code."
msgstr ""
-"æ¬æåä¸çHQLå
³é®åå°ä½¿ç¨å°å忝. å¾å¤ç¨æ·åç°ä½¿ç¨å®å
¨å¤§åçå
³é®åä¼ä½¿æ¥è¯¢è¯"
-"å¥ çå¯è¯»æ§æ´å¼º, 使们åç°ï¼å½ææ¥è¯¢è¯å¥åµå
¥å°Javaè¯å¥ä¸çæ¶å使ç¨å¤§åå
³é®å"
-"æ¯è¾é¾çã"
+"æ¬æåä¸ç HQL å
³é®åå°ä½¿ç¨å°å忝ãå¾å¤ç¨æ·åç°ä½¿ç¨å®å
¨å¤§åçå
³é®åä¼ä½¿æ¥è¯¢"
+"è¯å¥çå¯è¯»æ§æ´å¼ºï¼ä½æä»¬åç°ï¼å½ææ¥è¯¢è¯å¥åµå
¥å° Java è¯å¥ä¸çæ¶å使ç¨å¤§åå
³"
+"é®åæ¯è¾é¾çã"
#. Tag: title
-#: query_hql.xml:59
#, no-c-format
msgid "The from clause"
-msgstr "fromåå¥"
+msgstr "from åå¥"
#. Tag: para
-#: query_hql.xml:61
#, no-c-format
msgid "The simplest possible Hibernate query is of the form:"
-msgstr "Hibernate䏿ç®åçæ¥è¯¢è¯å¥çå½¢å¼å¦ä¸ï¼"
+msgstr "Hibernate 䏿ç®åçæ¥è¯¢è¯å¥çå½¢å¼å¦ä¸ï¼"
-#. Tag: programlisting
-#: query_hql.xml:65
-#, no-c-format
-msgid "<![CDATA[from eg.Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This returns all instances of the class <literal>eg.Cat</literal>. You do "
"not usually need to qualify the class name, since <literal>auto-import</"
"literal> is the default. For example:"
msgstr ""
-"该åå¥ç®åçè¿å<literal>eg.Cat</literal>ç±»çææå®ä¾ã é常æä»¬ä¸éè¦ä½¿ç¨ç±»"
-"çå
¨éå®å, å 为 <literal>auto-import</literal>ï¼èªå¨å¼å
¥ï¼ æ¯ç¼ºççæ
åµã æ"
-"以æä»¬å ä¹åªä½¿ç¨å¦ä¸çç®ååæ³ï¼"
+"该åå¥ç®åçè¿å <literal>eg.Cat</literal> ç±»çææå®ä¾ãé常æä»¬ä¸éè¦ä½¿ç¨ç±»"
+"çå
¨éå®åï¼å 为 <literal>auto-import</literal>ï¼èªå¨å¼å
¥ï¼æ¯ç¼ºççæ
åµãæ"
+"以æä»¬å ä¹åªä½¿ç¨å¦ä¸çç®ååæ³ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:73
-#, no-c-format
-msgid "<![CDATA[from Cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:75
#, no-c-format
msgid ""
"In order to refer to the <literal>Cat</literal> in other parts of the query, "
"you will need to assign an <emphasis>alias</emphasis>. For example:"
msgstr ""
+"为äºå¨è¿ä¸ªæ¥è¯¢çå
¶ä»é¨åéå¼ç¨ <literal>Cat</literal>ï¼ä½ å°éè¦åé
ä¸ä¸ª"
+"<emphasis>å«å</emphasis>ãä¾å¦ï¼"
-#. Tag: programlisting
-#: query_hql.xml:81 query_hql.xml:396
-#, no-c-format
-msgid "<![CDATA[from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query assigns the alias <literal>cat</literal> to <literal>Cat</"
"literal> instances, so you can use that alias later in the query. The "
"<literal>as</literal> keyword is optional. You could also write:"
msgstr ""
-"è¿ä¸ªè¯å¥æå«å<literal>cat</literal>æå®ç»ç±»<literal>Cat</literal> çå®ä¾, è¿"
-"æ ·æä»¬å°±å¯ä»¥å¨éåçæ¥è¯¢ä¸ä½¿ç¨æ¤å«åäºã å
³é®å<literal>as</literal> æ¯å¯é"
-"çï¼æä»¬ä¹å¯ä»¥è¿æ ·å:"
+"è¿ä¸ªè¯å¥æå«å <literal>cat</literal> æå®ç»ç±»<literal>Cat</literal> çå®ä¾ï¼"
+"è¿æ ·æä»¬å°±å¯ä»¥å¨éåçæ¥è¯¢ä¸ä½¿ç¨æ¤å«åäºãå
³é®å <literal>as</literal> æ¯å¯é"
+"çï¼æä»¬ä¹å¯ä»¥è¿æ ·åï¼ "
-#. Tag: programlisting
-#: query_hql.xml:89
-#, no-c-format
-msgid "<![CDATA[from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:91
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Multiple classes can appear, resulting in a cartesian product or \"cross\" "
"join."
msgstr ""
-"åå¥ä¸å¯ä»¥åæ¶åºç°å¤ä¸ªç±», å
¶æ¥è¯¢ç»ææ¯äº§çä¸ä¸ªç¬å¡å¿ç§¯æäº§ç跨表çè¿æ¥ã"
+"åå¥ä¸å¯ä»¥åæ¶åºç°å¤ä¸ªç±»ï¼å
¶æ¥è¯¢ç»ææ¯äº§çä¸ä¸ªç¬å¡å¿ç§¯æäº§ç跨表çè¿æ¥ã "
-#. Tag: programlisting
-#: query_hql.xml:95
-#, no-c-format
-msgid "<![CDATA[from Formula, Parameter]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:96
-#, no-c-format
-msgid "<![CDATA[from Formula as form, Parameter as param]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is good practice to name query aliases using an initial lowercase as this "
"is consistent with Java naming standards for local variables (e.g. "
"<literal>domesticCat</literal>)."
msgstr ""
-"æ¥è¯¢è¯å¥ä¸å«åçå¼å¤´é¨åå°å被认为æ¯å®è·µä¸çå¥½ä¹ æ¯ï¼ è¿æ ·åä¸Javaåéçå½åæ "
-"åä¿æäºä¸è´ (æ¯å¦ï¼<literal>domesticCat</literal>)ã"
+"æ¥è¯¢è¯å¥ä¸å«åçå¼å¤´é¨åå°å被认为æ¯å®è·µä¸çå¥½ä¹ æ¯ï¼è¿æ ·åä¸ Java åéçå½å"
+"æ åä¿æäºä¸è´ï¼æ¯å¦ï¼<literal>domesticCat</literal>ï¼ã "
#. Tag: title
-#: query_hql.xml:107
#, no-c-format
msgid "Associations and joins"
-msgstr "å
³è(Association)ä¸è¿æ¥(Join)"
+msgstr "å
³èï¼Associationï¼ä¸è¿æ¥ï¼Joinï¼"
#. Tag: para
-#: query_hql.xml:109
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also assign aliases to associated entities or to elements of a "
"collection of values using a <literal>join</literal>. For example:"
msgstr ""
-"æä»¬ä¹å¯ä»¥ä¸ºç¸å
³èçå®ä½çè³æ¯å¯¹ä¸ä¸ªéåä¸çå
¨é¨å
ç´ æå®ä¸ä¸ªå«å, è¿æ¶è¦ä½¿ç¨"
-"å
³é®å<literal>join</literal>ã"
+"æä»¬ä¹å¯ä»¥ä¸ºç¸å
³èçå®ä½çè³æ¯å¯¹ä¸ä¸ªéåä¸çå
¨é¨å
ç´ æå®ä¸ä¸ªå«åï¼è¿æ¶è¦ä½¿ç¨"
+"å
³é®å <literal>join</literal>ã "
-#. Tag: programlisting
-#: query_hql.xml:114
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join cat.mate as mate\n"
-" left outer join cat.kittens as kitten]]>"
-msgstr ""
+msgid "The supported join types are borrowed from ANSI SQL:"
+msgstr "忝æçè¿æ¥ç±»åæ¯ä» ANSI SQL ä¸åé´æ¥çï¼"
-#. Tag: programlisting
-#: query_hql.xml:116
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
-msgstr ""
+msgid "<literal>inner join</literal>"
+msgstr "<literal>inner join</literal>"
-#. Tag: programlisting
-#: query_hql.xml:118
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Formula form full join form.parameter param]]>"
-msgstr ""
+msgid "<literal>left outer join</literal>"
+msgstr "<literal>left outer join</literal>"
#. Tag: para
-#: query_hql.xml:120
-#, fuzzy, no-c-format
-msgid "The supported join types are borrowed from ANSI SQL:"
-msgstr "忝æçè¿æ¥ç±»åæ¯ä»ANSI SQLä¸åé´æ¥çã"
-
-#. Tag: literal
-#: query_hql.xml:127
#, no-c-format
-msgid "inner join"
-msgstr "<literal>inner join</literal>ï¼å
è¿æ¥ï¼"
+msgid "<literal>right outer join</literal>"
+msgstr "<literal>right outer join</literal>"
-#. Tag: literal
-#: query_hql.xml:132
-#, no-c-format
-msgid "left outer join"
-msgstr "<literal>left outer join</literal>ï¼å·¦å¤è¿æ¥ï¼"
-
-#. Tag: literal
-#: query_hql.xml:137
-#, no-c-format
-msgid "right outer join"
-msgstr "<literal>right outer join</literal>ï¼å³å¤è¿æ¥ï¼"
-
#. Tag: para
-#: query_hql.xml:141
#, no-c-format
msgid "<literal>full join</literal> (not usually useful)"
-msgstr "<literal>full join</literal> (å
¨è¿æ¥ï¼å¹¶ä¸å¸¸ç¨)"
+msgstr "<literal>full join</literal>ï¼å
¨è¿æ¥ï¼å¹¶ä¸å¸¸ç¨ï¼"
#. Tag: para
-#: query_hql.xml:147
#, no-c-format
msgid ""
"The <literal>inner join</literal>, <literal>left outer join</literal> and "
"<literal>right outer join</literal> constructs may be abbreviated."
msgstr ""
-"è¯å¥<literal>inner join</literal>, <literal>left outer join</literal> 以å "
+"è¯å¥ <literal>inner join</literal>ï¼<literal>left outer join</literal> 以å "
"<literal>right outer join</literal> å¯ä»¥ç®åã"
-#. Tag: programlisting
-#: query_hql.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" join cat.mate as mate\n"
-" left join cat.kittens as kitten]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:154
#, no-c-format
msgid ""
"You may supply extra join conditions using the HQL <literal>with</literal> "
"keyword."
-msgstr "éè¿HQLç<literal>with</literal>å
³é®åï¼ä½ å¯ä»¥æä¾é¢å¤çjoinæ¡ä»¶ã"
-
-#. Tag: programlisting
-#: query_hql.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-" left join cat.kittens as kitten\n"
-" with kitten.bodyWeight > 10.0]]>"
msgstr ""
+"éè¿ HQL ç <literal>with</literal> å
³é®åï¼ä½ å¯ä»¥æä¾é¢å¤ç join æ¡ä»¶ã"
#. Tag: para
-#: query_hql.xml:161
#, fuzzy, no-c-format
msgid ""
"A \"fetch\" join allows associations or collections of values to be "
"initialized along with their parent objects using a single select. This is "
"particularly useful in the case of a collection. It effectively overrides "
"the outer join and lazy declarations of the mapping file for associations "
-"and collections. See <xref linkend=\"performance-fetching\"/> for more "
+"and collections. See <xref linkend=\"performance-fetching\" /> for more "
"information."
msgstr ""
-"è¿æï¼ä¸ä¸ª\"fetch\"è¿æ¥å
许ä»
ä»
使ç¨ä¸ä¸ªéæ©è¯å¥å°±å°ç¸å
³èç对象æä¸ç»å¼çéå"
-"éçä»ä»¬çç¶å¯¹è±¡çåå§åè被åå§åï¼è¿ç§æ¹æ³å¨ä½¿ç¨å°éåçæ
åµä¸å°¤å
¶æç¨ï¼å¯¹"
-"äºå
³èåéåæ¥è¯´ï¼å®ææç代æ¿äºæ å°æä»¶ä¸çå¤èæ¥ ä¸å»¶è¿å£°æï¼lazy "
-"declarationsï¼. æ¥ç <xref linkend=\"performance-fetching\"/> 以è·å¾çå¤çä¿¡"
+"è¿æï¼ä¸ä¸ª \"fetch\" è¿æ¥å
许ä»
ä»
使ç¨ä¸ä¸ªéæ©è¯å¥å°±å°ç¸å
³èç对象æä¸ç»å¼çé"
+"åéçä»ä»¬çç¶å¯¹è±¡çåå§åè被åå§åï¼è¿ç§æ¹æ³å¨ä½¿ç¨å°éåçæ
åµä¸å°¤å
¶æç¨ï¼"
+"对äºå
³èåéåæ¥è¯´ï¼å®ææç代æ¿äºæ å°æä»¶ä¸çå¤èæ¥ä¸å»¶è¿å£°æï¼lazy "
+"declarationsï¼ãæ¥ç <xref linkend=\"performance-fetching\" /> 以è·å¾çå¤çä¿¡"
"æ¯ã"
-#. Tag: programlisting
-#: query_hql.xml:169
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:171
-#, fuzzy, no-c-format
-msgid ""
"A fetch join does not usually need to assign an alias, because the "
"associated objects should not be used in the <literal>where</literal> clause "
"(or any other clause). The associated objects are also not returned directly "
@@ -302,24 +202,13 @@
"The only reason you might need an alias is if you are recursively join "
"fetching a further collection:"
msgstr ""
-"ä¸ä¸ªfetchè¿æ¥é常ä¸éè¦è¢«æå®å«å, å 为ç¸å
³èç对象ä¸åºå½è¢«ç¨å¨ "
-"<literal>where</literal> åå¥ (æå
¶å®ä»»ä½åå¥)ä¸ãåæ¶ï¼ç¸å
³èç对象 å¹¶ä¸å¨æ¥"
-"询çç»æä¸ç´æ¥è¿åï¼ä½å¯ä»¥éè¿ä»ä»¬çç¶å¯¹è±¡æ¥è®¿é®å°ä»ä»¬ã"
+"ä¸ä¸ª fetch è¿æ¥é常ä¸éè¦è¢«æå®å«åï¼å 为ç¸å
³èç对象ä¸åºå½è¢«ç¨å¨ "
+"<literal>where</literal> åå¥ï¼æå
¶å®ä»»ä½åå¥ï¼ä¸ãåæ¶ï¼ç¸å
³èç对象并ä¸å¨æ¥"
+"询çç»æä¸ç´æ¥è¿åï¼ä½å¯ä»¥éè¿ä»ä»¬çç¶å¯¹è±¡æ¥è®¿é®å°ä»ä»¬ã "
-#. Tag: programlisting
-#: query_hql.xml:179
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Cat as cat\n"
-" inner join fetch cat.mate\n"
-" left join fetch cat.kittens child\n"
-" left join fetch child.kittens]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:181
-#, fuzzy, no-c-format
-msgid ""
"The <literal>fetch</literal> construct cannot be used in queries called "
"using <literal>iterate()</literal> (though <literal>scroll()</literal> can "
"be used). <literal>Fetch</literal> should be used together with "
@@ -335,20 +224,19 @@
"<literal>full join fetch</literal> and <literal>right join fetch</literal> "
"are not meaningful."
msgstr ""
-"åè¥ä½¿ç¨<literal>iterate()</literal>æ¥è°ç¨æ¥è¯¢ï¼è¯·æ³¨æ<literal>fetch</"
-"literal>æé æ¯ä¸è½ä½¿ç¨ç(<literal>scroll()</literal> å¯ä»¥ä½¿ç¨)ã"
-"<literal>fetch</literal>ä¹ä¸åºè¯¥ä¸<literal>setMaxResults()</literal> æ"
-"<literal>setFirstResult()</literal>å
±ç¨ï¼è¿æ¯å 为è¿äºæä½æ¯åºäºç»æéçï¼èå¨"
-"é¢å
æåéåç±»æ¶å¯è½å
å«éå¤çæ°æ®ï¼ä¹å°±æ¯è¯´æ æ³é¢å
ç¥é精确çè¡æ°ã"
-"<literal>fetch</literal>è¿ä¸è½ä¸ç¬ç«ç <literal>with</literal>æ¡ä»¶ä¸èµ·ä½¿ç¨ã"
-"éè¿å¨ä¸æ¬¡æ¥è¯¢ä¸fetchå¤ä¸ªéåï¼å¯ä»¥å¶é åºç¬å¡å°ç§¯ï¼å æ¤è¯·å¤å 注æã对bagæ å°"
-"æ¥è¯´ï¼åæ¶join fetchå¤ä¸ªéåè§è²å¯è½å¨æäºæ
åµä¸ç»åºå¹¶é颿çç»æï¼ä¹è¯·å°"
-"å¿ãæå注æï¼ä½¿ç¨<literal>full join fetch</literal> ä¸ <literal>right join "
-"fetch</literal>æ¯æ²¡ææä¹çã"
+"åè¥ä½¿ç¨ <literal>iterate()</literal> æ¥è°ç¨æ¥è¯¢ï¼è¯·æ³¨æ <literal>fetch</"
+"literal> æé æ¯ä¸è½ä½¿ç¨çï¼<literal>scroll()</literal> å¯ä»¥ä½¿ç¨ï¼ã"
+"<literal>fetch</literal> ä¹ä¸åºè¯¥ä¸ <literal>setMaxResults()</literal> æ "
+"<literal>setFirstResult()</literal> å
±ç¨ï¼è¿æ¯å 为è¿äºæä½æ¯åºäºç»æéçï¼è"
+"å¨é¢å
æåéåç±»æ¶å¯è½å
å«éå¤çæ°æ®ï¼ä¹å°±æ¯è¯´æ æ³é¢å
ç¥é精确çè¡æ°ã"
+"<literal>fetch</literal> è¿ä¸è½ä¸ç¬ç«ç <literal>with</literal> æ¡ä»¶ä¸èµ·ä½¿"
+"ç¨ãéè¿å¨ä¸æ¬¡æ¥è¯¢ä¸ fetch å¤ä¸ªéåï¼å¯ä»¥å¶é åºç¬å¡å°ç§¯ï¼å æ¤è¯·å¤å 注æã对 "
+"bag æ å°æ¥è¯´ï¼åæ¶ join fetch å¤ä¸ªéåè§è²å¯è½å¨æäºæ
åµä¸ç»åºå¹¶é颿çç»"
+"æï¼ä¹è¯·å°å¿ãæå注æï¼ä½¿ç¨ <literal>full join fetch</literal> ä¸ "
+"<literal>right join fetch</literal> æ¯æ²¡ææä¹çã "
#. Tag: para
-#: query_hql.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are using property-level lazy fetching (with bytecode "
"instrumentation), it is possible to force Hibernate to fetch the lazy "
@@ -356,52 +244,34 @@
"properties</literal>."
msgstr ""
"å¦æä½ ä½¿ç¨å±æ§çº§å«çå»¶è¿è·åï¼lazy fetchingï¼ï¼è¿æ¯éè¿éæ°ç¼ååèç å®ç°"
-"çï¼ï¼å¯ä»¥ä½¿ç¨ <literal>fetch all properties</literal> æ¥å¼ºå¶Hibernateç«å³å"
-"å¾é£äºåæ¬éè¦å»¶è¿å è½½ç屿§ï¼å¨ç¬¬ä¸ä¸ªæ¥è¯¢ä¸ï¼ã"
+"çï¼ï¼å¯ä»¥ä½¿ç¨ <literal>fetch all properties</literal> æ¥å¼ºå¶ Hibernate ç«å³"
+"åå¾é£äºåæ¬éè¦å»¶è¿å è½½ç屿§ï¼å¨ç¬¬ä¸ä¸ªæ¥è¯¢ä¸ï¼ã "
-#. Tag: programlisting
-#: query_hql.xml:202
-#, no-c-format
-msgid "<![CDATA[from Document fetch all properties order by name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:203
-#, no-c-format
-msgid ""
-"<![CDATA[from Document doc fetch all properties where lower(doc.name) like '%"
-"cats%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:208
#, no-c-format
msgid "Forms of join syntax"
msgstr "join è¯æ³çå½¢å¼"
#. Tag: para
-#: query_hql.xml:210
#, no-c-format
msgid ""
"HQL supports two forms of association joining: <literal>implicit</literal> "
"and <literal>explicit</literal>."
msgstr ""
-"HQLæ¯æä¸¤ç§å
³èjoinçå½¢å¼ï¼<literal>implicit(éå¼)</literal> ä¸"
+"HQL æ¯æä¸¤ç§å
³è join çå½¢å¼ï¼<literal>implicitï¼éå¼ï¼</literal> ä¸ "
"<literal>explicitï¼æ¾å¼ï¼</literal>ã"
#. Tag: para
-#: query_hql.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The queries shown in the previous section all use the <literal>explicit</"
"literal> form, that is, where the join keyword is explicitly used in the "
"from clause. This is the recommended form."
msgstr ""
-"ä¸ä¸èä¸ç»åºçæ¥è¯¢é½æ¯ä½¿ç¨<literal>explicit(æ¾å¼)</literal>å½¢å¼çï¼å
¶ä¸formå"
-"å¥ä¸æç¡®ç»åºäºjoinå
³é®åãè¿æ¯å»ºè®®ä½¿ç¨çæ¹å¼ã"
+"ä¸ä¸èä¸ç»åºçæ¥è¯¢é½æ¯ä½¿ç¨ <literal>explicitï¼æ¾å¼ï¼</literal>å½¢å¼çï¼å
¶ä¸ "
+"form åå¥ä¸æç¡®ç»åºäº join å
³é®åãè¿æ¯å»ºè®®ä½¿ç¨çæ¹å¼ã "
#. Tag: para
-#: query_hql.xml:219
#, no-c-format
msgid ""
"The <literal>implicit</literal> form does not use the join keyword. Instead, "
@@ -409,55 +279,41 @@
"literal> joins can appear in any of the HQL clauses. <literal>implicit</"
"literal> join result in inner joins in the resulting SQL statement."
msgstr ""
-"<literal>implicitï¼éå¼ï¼</literal>å½¢å¼ä¸ä½¿ç¨joinå
³é®åãå
³è使ç¨\"ç¹å·\"æ¥è¿"
-"è¡âå¼ç¨âã<literal>implicit</literal> joinå¯ä»¥å¨ä»»ä½HQLåå¥ä¸åºç°."
-"<literal>implicit</literal> join卿ç»çSQLè¯å¥ä¸ä»¥inner joinçæ¹å¼åºç°ã"
+"<literal>implicitï¼éå¼ï¼</literal>å½¢å¼ä¸ä½¿ç¨ join å
³é®åãå
³è使ç¨\"ç¹å·\"æ¥"
+"è¿è¡âå¼ç¨âã<literal>implicit</literal> join å¯ä»¥å¨ä»»ä½ HQL åå¥ä¸åºç°ã"
+"<literal>implicit</literal> join 卿ç»ç SQL è¯å¥ä¸ä»¥ inner join çæ¹å¼åº"
+"ç°ã"
-#. Tag: programlisting
-#: query_hql.xml:226
-#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Referring to identifier property"
-msgstr "Refering to identifier property"
+msgstr "å¼ç¨ identifier 屿§ "
#. Tag: para
-#: query_hql.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
msgid "There are 2 ways to refer to an entity's identifier property:"
-msgstr ""
-"There are, generally speaking, 2 ways to refer to an entity's identifier "
-"property:"
+msgstr "é常æä¸¤ç§æ¹æ³æ¥å¼ç¨å®ä½ç identifier 屿§ï¼ "
#. Tag: para
-#: query_hql.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> may be used to "
"reference the identifier property of an entity <emphasis>provided that the "
"entity does not define a non-identifier property named id</emphasis>."
msgstr ""
-"The special property (lowercase) <literal>id</literal> may be used to "
-"reference the identifier property of an entity <emphasis>provided that "
-"entity does not define a non-identifier property named id</emphasis>."
+"ç¹æ®å±æ§ï¼lowercaseï¼<literal>id</literal> å¯ä»¥ç¨æ¥å¼ç¨å®ä½ç identifier å±"
+"æ§ <emphasis>å设è¿ä¸ªå®ä½æ²¡æå®ä¹ç¨ non-identifier 屿§å½åç id</"
+"emphasis>ã "
#. Tag: para
-#: query_hql.xml:244
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the entity defines a named identifier property, you can use that property "
"name."
-msgstr ""
-"If the entity defines a named identifier property, you may use that property "
-"name."
+msgstr "妿è¿ä¸ªå®ä½å®ä¹äº identifier 屿§ï¼ä½ å¯ä»¥ä½¿ç¨å±æ§åã "
#. Tag: para
-#: query_hql.xml:250
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"References to composite identifier properties follow the same naming rules. "
"If the entity has a non-identifier property named id, the composite "
@@ -465,15 +321,12 @@
"the special <literal>id</literal> property can be used to reference the "
"identifier property."
msgstr ""
-"References to composite identifier properties follow the same naming rules. "
-"If the entity has a non-identifier property named id, the composite "
-"identifier property can only be referenced by its defined named; otherwise, "
-"the special <literal>id</literal> property can be used to rerference the "
-"identifier property."
+"对ç»å identifier 屿§çå¼ç¨éµå¾ªç¸åçå½åè§åã妿å®ä½æä¸ä¸ª non-"
+"identifier 屿§å½åç idï¼è¿ä¸ªç»å identifier 屿§åªè½ç¨èªå·±å®ä¹çå忥å¼"
+"ç¨ï¼å¦åï¼ç¹æ® <literal>id</literal> 屿§å¯ä»¥ç¨æ¥å¼ç¨ identifier 屿§ã "
#. Tag: para
-#: query_hql.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please note that, starting in version 3.2.2, this has changed significantly. "
"In previous versions, <literal>id</literal> <emphasis>always</emphasis> "
@@ -481,277 +334,146 @@
"ramification of that decision was that non-identifier properties named "
"<literal>id</literal> could never be referenced in Hibernate queries."
msgstr ""
-"Note: this has changed significantly starting in version 3.2.2. In previous "
-"versions, <literal>id</literal><emphasis>always</emphasis> referred to the "
-"identifier property no matter what its actual name. A ramification of that "
-"decision was that non-identifier properties named <literal>id</literal> "
-"could never be referenced in Hibernate queries."
+"注æï¼ä» 3.2.2 çæ¬å¼å§ï¼è¿å·²ç»æ¹åäºå¾å¤ãå¨åé¢ççæ¬éï¼ä¸ç®¡å®é
çååï¼"
+"<literal>id</literal> <emphasis>æ»æ¯</emphasis>æå identifier 屿§ï¼èç¨ "
+"non-identifier 屿§å½åç <literal>id</literal> 就仿¥ä¸å¨ Hibernate æ¥è¯¢éå¼"
+"ç¨ã "
#. Tag: title
-#: query_hql.xml:269
#, no-c-format
msgid "The select clause"
-msgstr "selectåå¥"
+msgstr "select åå¥"
#. Tag: para
-#: query_hql.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>select</literal> clause picks which objects and properties to "
"return in the query result set. Consider the following:"
msgstr ""
-"<literal>select</literal> åå¥éæ©å°åªäºå¯¹è±¡ä¸å±æ§è¿ åå°æ¥è¯¢ç»æéä¸. èèå¦"
-"䏿
åµ:"
+"<literal>select</literal> åå¥éæ©å°åªäºå¯¹è±¡ä¸å±æ§è¿åå°æ¥è¯¢ç»æéä¸ãèèå¦"
+"䏿
åµï¼"
-#. Tag: programlisting
-#: query_hql.xml:276
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mate\n"
-"from Cat as cat\n"
-" inner join cat.mate as mate]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:278
-#, fuzzy, no-c-format
-msgid ""
"The query will select <literal>mate</literal>s of other <literal>Cat</"
"literal>s. You can express this query more compactly as:"
msgstr ""
-"该è¯å¥å°éæ©<literal>mate</literal>s of other <literal>Cat</literal>sãï¼å
¶ä»"
-"ç«çé
å¶ï¼ å®é
ä¸, ä½ å¯ä»¥æ´ç®æ´çç¨ä»¥ä¸çæ¥è¯¢è¯å¥è¡¨è¾¾ç¸åçå«ä¹:"
+"该è¯å¥å°éæ©å
¶å® <literal>Cat</literal> ç <literal>mate</literal>ï¼å
¶ä»ç«ç"
+"é
å¶ï¼ãå®é
ä¸ï¼ä½ å¯ä»¥æ´ç®æ´çç¨ä»¥ä¸çæ¥è¯¢è¯å¥è¡¨è¾¾ç¸åçå«ä¹ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:283
-#, no-c-format
-msgid "<![CDATA[select cat.mate from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:285
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can return properties of any value type including properties of "
"component type:"
msgstr ""
-"æ¥è¯¢è¯å¥å¯ä»¥è¿åå¼ä¸ºä»»ä½ç±»åç屿§ï¼å
æ¬è¿åç±»å为æç§ç»ä»¶(Component)ç屿§:"
+"æ¥è¯¢è¯å¥å¯ä»¥è¿åå¼ä¸ºä»»ä½ç±»åç屿§ï¼å
æ¬è¿åç±»å为æç§ç»ä»¶ï¼Componentï¼çå±"
+"æ§ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:289
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.name from DomesticCat cat\n"
-"where cat.name like 'fri%']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:291
-#, no-c-format
-msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:293
-#, fuzzy, no-c-format
-msgid ""
"Queries can return multiple objects and/or properties as an array of type "
"<literal>Object[]</literal>:"
msgstr ""
-"æ¥è¯¢è¯å¥å¯ä»¥è¿åå¤ä¸ªå¯¹è±¡åï¼æï¼å±æ§ï¼åæ¾å¨ <literal>Object[]</literal>éå"
-"ä¸,"
+"æ¥è¯¢è¯å¥å¯ä»¥è¿åå¤ä¸ªå¯¹è±¡åï¼æï¼å±æ§ï¼åæ¾å¨ <literal>Object[]</literal> éå"
+"ä¸ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:298
-#, no-c-format
-msgid ""
-"<![CDATA[select mother, offspr, mate.name\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:300
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Or as a <literal>List</literal>:"
-msgstr "æåæ¾å¨ä¸ä¸ª<literal>List</literal>对象ä¸,"
+msgstr "æåæ¾å¨ä¸ä¸ª <literal>List</literal> 对象ä¸ï¼"
-#. Tag: programlisting
-#: query_hql.xml:304
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select new list(mother, offspr, mate.name)\n"
-"from DomesticCat as mother\n"
-" inner join mother.mate as mate\n"
-" left outer join mother.kittens as offspr]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:306
-#, fuzzy, no-c-format
-msgid ""
"Or - assuming that the class <literal>Family</literal> has an appropriate "
"constructor - as an actual typesafe Java object:"
-msgstr "å设类<literal>Family</literal>æä¸ä¸ªåéçæé 彿°."
-
-#. Tag: programlisting
-#: query_hql.xml:310
-#, no-c-format
-msgid ""
-"<![CDATA[select new Family(mother, mate, offspr)\n"
-"from DomesticCat as mother\n"
-" join mother.mate as mate\n"
-" left join mother.kittens as offspr]]>"
msgstr ""
+"å设类 <literal>Family</literal> æä¸ä¸ªåéçæé 彿° - ä½ä¸ºå®é
çç±»åå®å
¨ç "
+"Java 对象ï¼"
#. Tag: para
-#: query_hql.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can assign aliases to selected expressions using <literal>as</literal>:"
-msgstr "ä½ å¯ä»¥ä½¿ç¨å
³é®å<literal>as</literal>ç»âè¢«éæ©äºç表达å¼âææ´¾å«å:"
+msgstr "ä½ å¯ä»¥ä½¿ç¨å
³é®å <literal>as</literal> ç»âè¢«éæ©äºç表达å¼âææ´¾å«åï¼ "
-#. Tag: programlisting
-#: query_hql.xml:317
-#, no-c-format
-msgid ""
-"<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as "
-"n\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:319
#, no-c-format
msgid ""
"This is most useful when used together with <literal>select new map</"
"literal>:"
-msgstr "è¿ç§åæ³å¨ä¸åå¥<literal>select new map</literal>ä¸èµ·ä½¿ç¨æ¶ææç¨:"
+msgstr "è¿ç§åæ³å¨ä¸åå¥ <literal>select new map</literal> ä¸èµ·ä½¿ç¨æ¶ææç¨ï¼"
-#. Tag: programlisting
-#: query_hql.xml:323
-#, no-c-format
-msgid ""
-"<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
-"count(*) as n )\n"
-"from Cat cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:325
#, no-c-format
msgid ""
"This query returns a <literal>Map</literal> from aliases to selected values."
msgstr ""
-"该æ¥è¯¢è¿åäºä¸ä¸ª<literal>Map</literal>ç对象ï¼å
容æ¯å«åä¸è¢«éæ©çå¼ç»æçå-"
-"弿 å°ã"
+"该æ¥è¯¢è¿åäºä¸ä¸ª <literal>Map</literal> ç对象ï¼å
容æ¯å«åä¸è¢«éæ©çå¼ç»æç"
+"å-弿 å°ã"
#. Tag: title
-#: query_hql.xml:332
#, no-c-format
msgid "Aggregate functions"
msgstr "èé彿°"
#. Tag: para
-#: query_hql.xml:334
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL queries can even return the results of aggregate functions on properties:"
-msgstr "HQLæ¥è¯¢çè³å¯ä»¥è¿åä½ç¨äºå±æ§ä¹ä¸çèé彿°ç计ç®ç»æ:"
+msgstr "HQL æ¥è¯¢çè³å¯ä»¥è¿åä½ç¨äºå±æ§ä¹ä¸çèé彿°ç计ç®ç»æï¼ "
-#. Tag: programlisting
-#: query_hql.xml:338
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
-"(cat)\n"
-"from Cat cat]]>"
-msgstr ""
+msgid "The supported aggregate functions are:"
+msgstr "忝æçèé彿°å¦ä¸ï¼ "
#. Tag: para
-#: query_hql.xml:349
#, fuzzy, no-c-format
-msgid "The supported aggregate functions are:"
-msgstr "忝æçèé彿°å¦ä¸ï¼"
+msgid "<literal>avg(...), sum(...), min(...), max(...)</literal>"
+msgstr "<literal>avg(...), sum(...), min(...), max(...)</literal>"
-#. Tag: literal
-#: query_hql.xml:356
+#. Tag: para
#, no-c-format
-msgid "avg(...), sum(...), min(...), max(...)"
-msgstr "avg(...), sum(...), min(...), max(...)"
+msgid "<literal>count(*)</literal>"
+msgstr "<literal>count(*)</literal>"
-#. Tag: literal
-#: query_hql.xml:361
-#, no-c-format
-msgid "count(*)"
-msgstr "count(*)"
-
-#. Tag: literal
-#: query_hql.xml:366
-#, no-c-format
-msgid "count(...), count(distinct ...), count(all...)"
-msgstr "count(...), count(distinct ...), count(all...)"
-
#. Tag: para
-#: query_hql.xml:371
#, fuzzy, no-c-format
+msgid "<literal>count(...), count(distinct ...), count(all...)</literal>"
+msgstr "<literal>count(...), count(distinct ...), count(all...)</literal>"
+
+#. Tag: para
+#, no-c-format
msgid ""
"You can use arithmetic operators, concatenation, and recognized SQL "
"functions in the select clause:"
-msgstr "ä½ å¯ä»¥å¨éæ©åå¥ä¸ä½¿ç¨æ°å¦æä½ç¬¦ãè¿æ¥ä»¥åç»è¿éªè¯çSQL彿°ï¼"
+msgstr "ä½ å¯ä»¥å¨éæ©åå¥ä¸ä½¿ç¨æ°å¦æä½ç¬¦ãè¿æ¥ä»¥åç»è¿éªè¯ç SQL 彿°ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:376
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.weight + sum(kitten.weight)\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.weight]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:378
-#, no-c-format
-msgid ""
-"<![CDATA[select firstName||' '||initial||' '||upper(lastName) from Person]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:380
-#, fuzzy, no-c-format
-msgid ""
"The <literal>distinct</literal> and <literal>all</literal> keywords can be "
"used and have the same semantics as in SQL."
msgstr ""
-"å
³é®å<literal>distinct</literal>ä¸<literal>all</literal> ä¹å¯ä»¥ä½¿ç¨ï¼å®ä»¬å
·"
-"æä¸SQLç¸åçè¯ä¹."
+"å
³é®å <literal>distinct</literal> ä¸ <literal>all</literal> ä¹å¯ä»¥ä½¿ç¨ï¼å®ä»¬"
+"å
·æä¸ SQL ç¸åçè¯ä¹ã "
-#. Tag: programlisting
-#: query_hql.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[select distinct cat.name from Cat cat\n"
-"\n"
-"select count(distinct cat.name), count(cat) from Cat cat]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:390
#, no-c-format
msgid "Polymorphic queries"
msgstr "夿æ¥è¯¢"
#. Tag: para
-#: query_hql.xml:392
#, no-c-format
msgid "A query like:"
-msgstr "ä¸ä¸ªå¦ä¸çæ¥è¯¢è¯å¥:"
+msgstr "ä¸ä¸ªå¦ä¸çæ¥è¯¢è¯å¥ï¼"
#. Tag: para
-#: query_hql.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"returns instances not only of <literal>Cat</literal>, but also of subclasses "
"like <literal>DomesticCat</literal>. Hibernate queries can name "
@@ -760,294 +482,173 @@
"that extend that class or implement the interface. The following query would "
"return all persistent objects:"
msgstr ""
-"ä¸ä»
è¿å<literal>Cat</literal>ç±»çå®ä¾, ä¹åæ¶è¿ååç±» <literal>DomesticCat</"
-"literal>çå®ä¾. Hibernate å¯ä»¥å¨<literal>from</literal>åå¥ä¸æå®<emphasis>ä»»"
-"ä½</emphasis> Java ç±»ææ¥å£. æ¥è¯¢ä¼è¿åç»§æ¿äºè¯¥ç±»çæææä¹
ååç±» çå®ä¾æè¿"
-"å声æäºè¯¥æ¥å£çæææä¹
åç±»çå®ä¾ãä¸é¢çæ¥è¯¢è¯å¥è¿åææç被æä¹
åç对象ï¼"
+"ä¸ä»
è¿å <literal>Cat</literal> ç±»çå®ä¾ï¼ä¹åæ¶è¿ååç±» "
+"<literal>DomesticCat</literal> çå®ä¾ãHibernate å¯ä»¥å¨ <literal>from</"
+"literal> åå¥ä¸æå®<emphasis>ä»»ä½</emphasis> Java ç±»ææ¥å£ãæ¥è¯¢ä¼è¿åç»§æ¿äº"
+"è¯¥ç±»çæææä¹
ååç±»çå®ä¾æè¿å声æäºè¯¥æ¥å£çæææä¹
åç±»çå®ä¾ãä¸é¢çæ¥è¯¢"
+"è¯å¥è¿åææç被æä¹
åçå¯¹è±¡ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:406
-#, no-c-format
-msgid "<![CDATA[from java.lang.Object o]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:408
#, no-c-format
msgid ""
"The interface <literal>Named</literal> might be implemented by various "
"persistent classes:"
-msgstr "æ¥å£<literal>Named</literal> å¯è½è¢«åç§åæ ·çæä¹
å类声æï¼"
+msgstr "æ¥å£ <literal>Named</literal> å¯è½è¢«åç§åæ ·çæä¹
å类声æï¼"
-#. Tag: programlisting
-#: query_hql.xml:413
-#, no-c-format
-msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:415
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"These last two queries will require more than one SQL <literal>SELECT</"
"literal>. This means that the <literal>order by</literal> clause does not "
"correctly order the whole result set. It also means you cannot call these "
"queries using <literal>Query.scroll()</literal>."
msgstr ""
-"注æï¼æåç两个æ¥è¯¢å°éè¦è¶
è¿ä¸ä¸ªçSQL <literal>SELECT</literal>.è¿è¡¨æ"
-"<literal>order by</literal>åå¥ æ²¡æå¯¹æ´ä¸ªç»æéè¿è¡æ£ç¡®çæåº. (è¿ä¹è¯´æä½ ä¸"
-"è½å¯¹è¿æ ·çæ¥è¯¢ä½¿ç¨<literal>Query.scroll()</literal>æ¹æ³.)"
+"注æï¼æåç两个æ¥è¯¢å°éè¦è¶
è¿ä¸ä¸ªç SQL <literal>SELECT</literal>ãè¿è¡¨æ "
+"<literal>order by</literal> å奿²¡æå¯¹æ´ä¸ªç»æéè¿è¡æ£ç¡®çæåºãï¼è¿ä¹è¯´æä½ "
+"ä¸è½å¯¹è¿æ ·çæ¥è¯¢ä½¿ç¨ <literal>Query.scroll()</literal> æ¹æ³ãï¼"
#. Tag: title
-#: query_hql.xml:424
#, no-c-format
msgid "The where clause"
-msgstr "whereåå¥"
+msgstr "where åå¥"
#. Tag: para
-#: query_hql.xml:426
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>where</literal> clause allows you to refine the list of "
"instances returned. If no alias exists, you can refer to properties by name:"
msgstr ""
-"<literal>where</literal>åå¥å
è®¸ä½ å°è¿åçå®ä¾å表çèå´ç¼©å°. å¦ææ²¡ææå®å«"
-"åï¼ä½ å¯ä»¥ä½¿ç¨å±æ§åæ¥ç´æ¥å¼ç¨å±æ§:"
+"<literal>where</literal> åå¥å
è®¸ä½ å°è¿åçå®ä¾å表çèå´ç¼©å°ãå¦ææ²¡ææå®å«"
+"åï¼ä½ å¯ä»¥ä½¿ç¨å±æ§åæ¥ç´æ¥å¼ç¨å±æ§ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:431
-#, no-c-format
-msgid "<![CDATA[from Cat where name='Fritz']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:433
#, no-c-format
msgid "If there is an alias, use a qualified property name:"
-msgstr "å¦æææ´¾äºå«åï¼éè¦ä½¿ç¨å®æ´ç屿§å:"
+msgstr "å¦æææ´¾äºå«åï¼éè¦ä½¿ç¨å®æ´ç屿§åï¼"
-#. Tag: programlisting
-#: query_hql.xml:437
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
+msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
msgstr ""
+"è¿åå为ï¼å±æ§ name çäºï¼'Fritz' ç <literal>Cat</literal> ç±»çå®ä¾ã "
#. Tag: para
-#: query_hql.xml:439
-#, fuzzy, no-c-format
-msgid "This returns instances of <literal>Cat</literal> named 'Fritz'."
-msgstr "è¿åå为ï¼å±æ§nameçäºï¼'Fritz'ç<literal>Cat</literal>ç±»çå®ä¾ã"
-
-#. Tag: para
-#: query_hql.xml:443
#, no-c-format
msgid "The following query:"
-msgstr ""
+msgstr "ä¸é¢çæ¥è¯¢ï¼"
-#. Tag: programlisting
-#: query_hql.xml:446
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select foo\n"
-"from Foo foo, Bar bar\n"
-"where foo.startDate = bar.date]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:448
-#, fuzzy, no-c-format
-msgid ""
"returns all instances of <literal>Foo</literal> with an instance of "
"<literal>bar</literal> with a <literal>date</literal> property equal to the "
"<literal>startDate</literal> property of the <literal>Foo</literal>. "
"Compound path expressions make the <literal>where</literal> clause extremely "
"powerful. Consider the following:"
msgstr ""
-"å°è¿åæææ»¡è¶³ä¸é¢æ¡ä»¶ç<literal>Foo</literal>ç±»çå®ä¾ï¼ åå¨å¦ä¸ç"
-"<literal>bar</literal>çä¸ä¸ªå®ä¾ï¼å
¶<literal>date</literal>屿§çäº "
-"<literal>Foo</literal>ç<literal>startDate</literal>屿§ã å¤åè·¯å¾è¡¨è¾¾å¼ä½¿å¾"
-"<literal>where</literal>åå¥é常ç强大ï¼èèå¦ä¸æ
åµï¼"
+"å°è¿åæææ»¡è¶³ä¸é¢æ¡ä»¶ç <literal>Foo</literal> ç±»çå®ä¾ï¼ åå¨å¦ä¸ç "
+"<literal>bar</literal> çä¸ä¸ªå®ä¾ï¼å
¶ <literal>date</literal> 屿§çäº "
+"<literal>Foo</literal> ç <literal>startDate</literal> 屿§ãå¤åè·¯å¾è¡¨è¾¾å¼ä½¿"
+"å¾ <literal>where</literal> åå¥é常ç强大ï¼èèå¦ä¸æ
åµï¼ "
-#. Tag: programlisting
-#: query_hql.xml:457
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:459
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This query translates to an SQL query with a table (inner) join. For example:"
msgstr ""
-"该æ¥è¯¢å°è¢«ç¿»è¯æä¸ºä¸ä¸ªå«æè¡¨è¿æ¥ï¼å
è¿æ¥ï¼çSQLæ¥è¯¢ãå¦æä½ æç®ååè¿æ ·çæ¥è¯¢"
-"è¯å¥"
+"该æ¥è¯¢å°è¢«ç¿»è¯æä¸ºä¸ä¸ªå«æè¡¨è¿æ¥ï¼å
è¿æ¥ï¼ç SQL æ¥è¯¢ãå¦æä½ æç®ååè¿æ ·çæ¥"
+"询è¯å¥ï¼"
-#. Tag: programlisting
-#: query_hql.xml:464
-#, no-c-format
-msgid ""
-"<![CDATA[from Foo foo\n"
-"where foo.bar.baz.customer.address.city is not null]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid "would result in a query that would require four table joins in SQL."
-msgstr "å¨SQLä¸ï¼ä½ 为达æ¤ç®çå°éè¦è¿è¡ä¸ä¸ªåè¡¨è¿æ¥çæ¥è¯¢ã"
+msgstr "å¨ SQL ä¸ï¼ä½ 为达æ¤ç®çå°éè¦è¿è¡ä¸ä¸ªåè¡¨è¿æ¥çæ¥è¯¢ã "
#. Tag: para
-#: query_hql.xml:470
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>=</literal> operator can be used to compare not only "
"properties, but also instances:"
msgstr ""
-"<literal>=</literal>è¿ç®ç¬¦ä¸ä»
å¯ä»¥è¢«ç¨æ¥æ¯è¾å±æ§çå¼ï¼ä¹å¯ä»¥ç¨æ¥æ¯è¾å®ä¾ï¼"
+"<literal>=</literal> è¿ç®ç¬¦ä¸ä»
å¯ä»¥è¢«ç¨æ¥æ¯è¾å±æ§çå¼ï¼ä¹å¯ä»¥ç¨æ¥æ¯è¾å®ä¾ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:475
-#, no-c-format
-msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:477
-#, no-c-format
-msgid ""
-"<![CDATA[select cat, mate\n"
-"from Cat cat, Cat mate\n"
-"where cat.mate = mate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:479
#, fuzzy, no-c-format
msgid ""
"The special property (lowercase) <literal>id</literal> can be used to "
"reference the unique identifier of an object. See <xref linkend=\"queryhql-"
-"identifier-property\"/> for more information."
+"identifier-property\" /> for more information."
msgstr ""
-"ç¹æ®å±æ§ï¼å°åï¼<literal>id</literal>å¯ä»¥ç¨æ¥è¡¨ç¤ºä¸ä¸ªå¯¹è±¡çå¯ä¸çæ è¯ç¬¦ãï¼ä½ "
-"ä¹å¯ä»¥ä½¿ç¨è¯¥å¯¹è±¡ç屿§åãï¼"
+"ç¹æ®å±æ§ï¼å°åï¼<literal>id</literal> å¯ä»¥ç¨æ¥è¡¨ç¤ºä¸ä¸ªå¯¹è±¡çå¯ä¸çæ è¯ç¬¦ã详"
+"æ
请åè <xref linkend=\"queryhql-identifier-property\" />ã"
-#. Tag: programlisting
-#: query_hql.xml:485
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat where cat.id = 123\n"
-"\n"
-"from Cat as cat where cat.mate.id = 69]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The second query is efficient and does not require a table join."
-msgstr "第äºä¸ªæ¥è¯¢æ¯ææçãæ¤æ¶ä¸éè¦è¿è¡è¡¨è¿æ¥ï¼"
+msgstr "第äºä¸ªæ¥è¯¢æ¯ææçãæ¤æ¶ä¸éè¦è¿è¡è¡¨è¿æ¥ã"
#. Tag: para
-#: query_hql.xml:491
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Properties of composite identifiers can also be used. Consider the following "
"example where <literal>Person</literal> has composite identifiers consisting "
"of <literal>country</literal> and <literal>medicareNumber</literal>:"
msgstr ""
-"åæ ·ä¹å¯ä»¥ä½¿ç¨å¤åæ è¯ç¬¦ãæ¯å¦<literal>Person</literal>ç±»æä¸ä¸ªå¤åæ è¯ç¬¦ï¼å®"
-"ç±<literal>country</literal>屿§ ä¸<literal>medicareNumber</literal>屿§ç»"
-"æã"
+"åæ ·ä¹å¯ä»¥ä½¿ç¨å¤åæ è¯ç¬¦ãæ¯å¦ <literal>Person</literal> ç±»æä¸ä¸ªå¤åæ è¯ç¬¦ï¼"
+"å®ç± <literal>country</literal> 屿§ä¸ <literal>medicareNumber</literal> 屿§"
+"ç»æï¼"
-#. Tag: programlisting
-#: query_hql.xml:497
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Person person\n"
-"where person.id.country = 'AU'\n"
-" and person.id.medicareNumber = 123456]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:499
-#, no-c-format
-msgid ""
-"<![CDATA[from bank.Account account\n"
-"where account.owner.id.country = 'AU'\n"
-" and account.owner.id.medicareNumber = 123456]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:501
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Once again, the second query does not require a table join."
-msgstr "第äºä¸ªæ¥è¯¢ä¹ä¸éè¦è¿è¡è¡¨è¿æ¥ã"
+msgstr "第äºä¸ªæ¥è¯¢ä¹ä¸éè¦è¿è¡è¡¨è¿æ¥ã "
#. Tag: para
-#: query_hql.xml:505
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"queryhql-identifier-property\"/> for more information "
+"See <xref linkend=\"queryhql-identifier-property\" /> for more information "
"regarding referencing identifier properties)"
msgstr ""
+"å
³äºå¼ç¨æ è¯ç¬¦å±æ§çæ´å¤ä¿¡æ¯ï¼è¯·åè <xref linkend=\"queryhql-identifier-"
+"property\" />ã"
#. Tag: para
-#: query_hql.xml:510
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The special property <literal>class</literal> accesses the discriminator "
"value of an instance in the case of polymorphic persistence. A Java class "
"name embedded in the where clause will be translated to its discriminator "
"value."
msgstr ""
-"åæ ·çï¼ç¹æ®å±æ§<literal>class</literal>å¨è¿è¡å¤ææä¹
åçæ
åµä¸è¢«ç¨æ¥ååä¸"
-"个å®ä¾çé´å«å¼ï¼discriminator valueï¼ã ä¸ä¸ªåµå
¥å°whereåå¥ä¸çJavaç±»çååå°"
-"被转æ¢ä¸ºè¯¥ç±»çé´å«å¼ã"
+"åæ ·çï¼ç¹æ®å±æ§ <literal>class</literal> å¨è¿è¡å¤ææä¹
åçæ
åµä¸è¢«ç¨æ¥åå"
+"ä¸ä¸ªå®ä¾çé´å«å¼ï¼discriminator valueï¼ãä¸ä¸ªåµå
¥å° where åå¥ä¸ç Java ç±»ç"
+"ååå°è¢«è½¬æ¢ä¸ºè¯¥ç±»çé´å«å¼ã "
-#. Tag: programlisting
-#: query_hql.xml:516
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:518
#, fuzzy, no-c-format
msgid ""
"You can also use components or composite user types, or properties of said "
-"component types. See <xref linkend=\"queryhql-components\"/> for more "
+"component types. See <xref linkend=\"queryhql-components\" /> for more "
"information."
msgstr ""
-"ä½ ä¹å¯ä»¥å£°æä¸ä¸ªå±æ§çç±»åæ¯ç»ä»¶æè
å¤åç¨æ·ç±»åï¼ä»¥åç±ç»ä»¶ææçç»ä»¶ç"
-"çï¼ãæ°¸è¿ä¸è¦å°è¯ä½¿ç¨ä»¥ç»ä»¶ç±»åæ¥ç»å°¾çè·¯å¾è¡¨è¾¾å¼ï¼path-expressionï¼ ï¼ä¸æ¤"
-"ç¸åï¼ä½ åºå½ä½¿ç¨ç»ä»¶çä¸ä¸ªå±æ§æ¥ç»å°¾ï¼ã 䏾便¥è¯´ï¼å¦æ<literal>store.owner</"
-"literal>嫿ä¸ä¸ªå
å«äºç»ä»¶çå®ä½<literal>address</literal>"
+"ä½ ä¹å¯ä»¥ä½¿ç¨ç»ä»¶æè
å¤åç¨æ·ç±»åï¼ä»¥åç»ä»¶ç±»åç屿§ã详æ
请åè <xref "
+"linkend=\"queryhql-components\" />ã"
#. Tag: para
-#: query_hql.xml:523
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An \"any\" type has the special properties <literal>id</literal> and "
"<literal>class</literal> that allows you to express a join in the following "
"way (where <literal>AuditLog.item</literal> is a property mapped with "
"<literal><any></literal>):"
msgstr ""
-"ä¸ä¸ªâä»»æâç±»åæä¸¤ä¸ªç¹æ®ç屿§<literal>id</literal>å<literal>class</"
-"literal>, æ¥å
许æä»¬æç
§ä¸é¢çæ¹å¼è¡¨è¾¾ä¸ä¸ªè¿æ¥ï¼<literal>AuditLog.item</"
-"literal> æ¯ä¸ä¸ªå±æ§ï¼è¯¥å±æ§è¢«æ å°ä¸º<literal><any></literal>ï¼ã"
+"ä¸ä¸ªâä»»æâç±»åæä¸¤ä¸ªç¹æ®ç屿§ <literal>id</literal> å <literal>class</"
+"literal>ï¼æ¥å
许æä»¬æç
§ä¸é¢çæ¹å¼è¡¨è¾¾ä¸ä¸ªè¿æ¥ï¼<literal>AuditLog.item</"
+"literal> æ¯ä¸ä¸ªå±æ§ï¼è¯¥å±æ§è¢«æ å°ä¸º <literal><any></literal>ï¼ã "
-#. Tag: programlisting
-#: query_hql.xml:529
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from AuditLog log, Payment payment\n"
-"where log.item.class = 'Payment' and log.item.id = payment.id]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:531
-#, fuzzy, no-c-format
-msgid ""
"The <literal>log.item.class</literal> and <literal>payment.class</literal> "
"would refer to the values of completely different database columns in the "
"above query."
@@ -1056,49 +657,43 @@
"<literal>payment.class</literal> å°æ¶åå°å®å
¨ä¸åçæ°æ®åºä¸çåã"
#. Tag: title
-#: query_hql.xml:539
#, no-c-format
msgid "Expressions"
msgstr "表达å¼"
#. Tag: para
-#: query_hql.xml:541
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Expressions used in the <literal>where</literal> clause include the "
"following:"
msgstr ""
-"å¨<literal>where</literal>åå¥ä¸å
许使ç¨ç表达å¼å
æ¬ å¤§å¤æ°ä½ å¯ä»¥å¨SQL使ç¨ç"
-"表达å¼ç§ç±»:"
+"å¨ <literal>where</literal> åå¥ä¸å
许使ç¨ç表达å¼å
æ¬ å¤§å¤æ°ä½ å¯ä»¥å¨ SQL 使"
+"ç¨ç表达å¼ç§ç±»ï¼ "
#. Tag: para
-#: query_hql.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "mathematical operators: <literal>+, -, *, /</literal>"
-msgstr "æ°å¦è¿ç®ç¬¦<literal>+, -, *, /</literal>"
+msgstr "æ°å¦è¿ç®ç¬¦ <literal>+ï¼-ï¼*ï¼/</literal> "
#. Tag: para
-#: query_hql.xml:553
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"binary comparison operators: <literal>=, >=, <=, <>, !=, like</"
"literal>"
-msgstr "äºè¿å¶æ¯è¾è¿ç®ç¬¦<literal>=, >=, <=, <>, !=, like</literal>"
+msgstr ""
+"äºè¿å¶æ¯è¾è¿ç®ç¬¦ <literal>=, >=, <=, <>, !=, like</literal> "
#. Tag: para
-#: query_hql.xml:558
#, no-c-format
msgid "logical operations <literal>and, or, not</literal>"
-msgstr "é»è¾è¿ç®ç¬¦<literal>and, or, not</literal>"
+msgstr "é»è¾è¿ç®ç¬¦ <literal>andï¼orï¼not</literal>"
#. Tag: para
-#: query_hql.xml:563
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Parentheses <literal>( )</literal> that indicates grouping"
-msgstr "Parentheses <literal>( )</literal>, indicating grouping"
+msgstr "æ¬å· <literal>( )</literal>ï¼è¡¨ç¤ºåç» "
#. Tag: para
-#: query_hql.xml:568
#, no-c-format
msgid ""
"<literal>in</literal>, <literal>not in</literal>, <literal>between</"
@@ -1112,65 +707,59 @@
"<literal>member of</literal> and <literal>not member of</literal>"
#. Tag: para
-#: query_hql.xml:581
#, no-c-format
msgid ""
"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
"and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
msgstr ""
-"\"ç®åç\" case, <literal>case ... when ... then ... else ... end</literal>,"
-"å \"æç´¢\" case, <literal>case when ... then ... else ... end</literal>"
+"\"Simple\" case, <literal>case ... when ... then ... else ... end</literal>, "
+"and \"searched\" case, <literal>case when ... then ... else ... end</literal>"
#. Tag: para
-#: query_hql.xml:587
#, no-c-format
msgid ""
"string concatenation <literal>...||...</literal> or <literal>concat(...,...)"
"</literal>"
msgstr ""
-"åç¬¦ä¸²è¿æ¥ç¬¦<literal>...||...</literal> or <literal>concat(...,...)</literal>"
+"åç¬¦ä¸²è¿æ¥ç¬¦ <literal>...||...</literal> or <literal>concat(...,...)</"
+"literal>"
#. Tag: para
-#: query_hql.xml:592
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
msgstr ""
-"<literal>current_date()</literal>, <literal>current_time()</literal>, "
+"<literal>current_date()</literal>, <literal>current_time()</literal>, and "
"<literal>current_timestamp()</literal>"
#. Tag: para
-#: query_hql.xml:598
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
"and <literal>year(...)</literal>"
msgstr ""
-"<literal>second(...)</literal>, <literal>minute(...)</literal>, <literal>hour"
-"(...)</literal>, <literal>day(...)</literal>, <literal>month(...)</literal>, "
-"<literal>year(...)</literal>,"
+"<literal>second(...)</literal>ã<literal>minute(...)</literal>ã<literal>hour"
+"(...)</literal>ã<literal>day(...)</literal>ã<literal>month(...)</literal> "
+"å <literal>year(...)</literal>"
#. Tag: para
-#: query_hql.xml:605
#, no-c-format
msgid ""
"Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim"
"(), lower(), upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()"
"</literal>"
msgstr ""
-"EJB-QL 3.0å®ä¹çä»»ä½å½æ°ææä½ï¼<literal>substring(), trim(), lower(), upper"
-"(), length(), locate(), abs(), sqrt(), bit_length()ï¼ mod()</literal>"
+"EJB-QL 3.0 å®ä¹çä»»ä½åè½ææä½ç¬¦ï¼<literal>substring(), trim(), lower(), "
+"upper(), length(), locate(), abs(), sqrt(), bit_length(), mod()</literal>"
#. Tag: para
-#: query_hql.xml:611
#, no-c-format
msgid "<literal>coalesce()</literal> and <literal>nullif()</literal>"
msgstr "<literal>coalesce()</literal> å <literal>nullif()</literal>"
#. Tag: para
-#: query_hql.xml:616
#, no-c-format
msgid ""
"<literal>str()</literal> for converting numeric or temporal values to a "
@@ -1178,7 +767,6 @@
msgstr "<literal>str()</literal> ææ°åæè
æ¶é´å¼è½¬æ¢ä¸ºå¯è¯»çå符串"
#. Tag: para
-#: query_hql.xml:622
#, no-c-format
msgid ""
"<literal>cast(... as ...)</literal>, where the second argument is the name "
@@ -1186,21 +774,19 @@
"<literal>cast()</literal> and <literal>extract()</literal> is supported by "
"the underlying database"
msgstr ""
-"<literal>cast(... as ...)</literal>, å
¶ç¬¬äºä¸ªåæ°æ¯æHibernateç±»åçååï¼ä»¥"
-"å<literal>extract(... from ...)</literal>ï¼åªè¦ANSI <literal>cast()</"
-"literal> å <literal>extract()</literal> 被åºå±æ°æ®åºæ¯æ"
+"<literal>cast(... as ...)</literal>ï¼å
¶ç¬¬äºä¸ªåæ°æ¯æ Hibernate ç±»åçååï¼"
+"以å <literal>extract(... from ...)</literal>ï¼åªè¦ ANSI <literal>cast()</"
+"literal> å <literal>extract()</literal> 被åºå±æ°æ®åºæ¯æ"
#. Tag: para
-#: query_hql.xml:630
#, no-c-format
msgid ""
"the HQL <literal>index()</literal> function, that applies to aliases of a "
"joined indexed collection"
-msgstr "HQL <literal>index()</literal> 彿°ï¼ä½ç¨äºjoinçæåºéåçå«åã"
+msgstr "HQL <literal>index()</literal> 彿°ï¼ä½ç¨äº join çæåºéåçå«åã"
#. Tag: para
-#: query_hql.xml:636
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL functions that take collection-valued path expressions: <literal>size(), "
"minelement(), maxelement(), minindex(), maxindex()</literal>, along with the "
@@ -1208,40 +794,36 @@
"functions that can be quantified using <literal>some, all, exists, any, in</"
"literal>."
msgstr ""
-"HQL彿°ï¼æéåä½ä¸ºåæ°:<literal>size(), minelement(), maxelement(), minindex"
-"(), maxindex()</literal>,è¿æç¹å«ç<literal>elements()</literal> å"
-"<literal>indices</literal>彿°ï¼å¯ä»¥ä¸æ°éè¯å 以éå®ï¼<literal>some, all, "
-"exists, any, in</literal>ã"
+"HQL 彿°ï¼æéåä½ä¸ºåæ°ï¼<literal>size(), minelement(), maxelement(), "
+"minindex(), maxindex()</literal>ï¼è¿æç¹å«ç <literal>elements()</literal> "
+"å <literal>indices</literal> 彿°ï¼å¯ä»¥ä¸æ°éè¯å 以éå®ï¼<literal>some, "
+"all, exists, any, in</literal>ã "
#. Tag: para
-#: query_hql.xml:644
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Any database-supported SQL scalar function like <literal>sign()</literal>, "
"<literal>trunc()</literal>, <literal>rtrim()</literal>, and <literal>sin()</"
"literal>"
msgstr ""
-"任使°æ®åºæ¯æçSQLæ é彿°ï¼æ¯å¦<literal>sign()</literal>, <literal>trunc()"
-"</literal>, <literal>rtrim()</literal>, <literal>sin()</literal>"
+"任使°æ®åºæ¯æç SQL æ é彿°ï¼æ¯å¦ <literal>sign()</literal>, <literal>trunc"
+"()</literal>, <literal>rtrim()</literal>, <literal>sin()</literal> "
#. Tag: para
-#: query_hql.xml:650
#, no-c-format
msgid "JDBC-style positional parameters <literal>?</literal>"
-msgstr "JDBC飿 ¼çåæ°ä¼ å
¥ <literal>?</literal>"
+msgstr "JDBC 飿 ¼çåæ°ä¼ å
¥ <literal>?</literal>"
#. Tag: para
-#: query_hql.xml:655
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"named parameters <literal>:name</literal>, <literal>:start_date</literal>, "
"and <literal>:x1</literal>"
msgstr ""
-"å½ååæ°<literal>:name</literal>, <literal>:start_date</literal>, <literal>:"
-"x1</literal>"
+"å½ååæ° <literal>:name</literal>ï¼<literal>:start_date</literal>ï¼<literal>:"
+"x1</literal> "
#. Tag: para
-#: query_hql.xml:660
#, no-c-format
msgid ""
"SQL literals <literal>'foo'</literal>, <literal>69</literal>, <literal>6.66E"
@@ -1251,7 +833,6 @@
"+2</literal>, <literal>'1970-01-01 10:00:01.0'</literal>"
#. Tag: para
-#: query_hql.xml:666
#, no-c-format
msgid ""
"Java <literal>public static final</literal> constants <literal>eg.Color."
@@ -1261,117 +842,58 @@
"TABBY</literal>"
#. Tag: para
-#: query_hql.xml:672
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>in</literal> and <literal>between</literal> can be used as follows:"
msgstr ""
-"å
³é®å<literal>in</literal>ä¸<literal>between</literal>坿å¦ä¸æ¹æ³ä½¿ç¨:"
+"å
³é®å <literal>in</literal> ä¸ <literal>between</literal> 坿å¦ä¸æ¹æ³ä½¿"
+"ç¨ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:676
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:678
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:680
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The negated forms can be written as follows:"
-msgstr "èä¸å¦å®çæ ¼å¼ä¹å¯ä»¥å¦ä¸ä¹¦åï¼"
+msgstr "èä¸å¦å®çæ ¼å¼ä¹å¯ä»¥å¦ä¸ä¹¦åï¼ "
-#. Tag: programlisting
-#: query_hql.xml:684
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:686
-#, no-c-format
msgid ""
-"<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )]]"
-">"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Similarly, <literal>is null</literal> and <literal>is not null</literal> can "
"be used to test for null values."
msgstr ""
-"åæ ·, åå¥<literal>is null</literal>ä¸<literal>is not null</literal>å¯ä»¥è¢«ç¨"
-"æ¥æµè¯ç©ºå¼(null)."
+"åæ ·ï¼åå¥ <literal>is null</literal> ä¸ <literal>is not null</literal> å¯ä»¥"
+"è¢«ç¨æ¥æµè¯ç©ºå¼ï¼nullï¼ã "
#. Tag: para
-#: query_hql.xml:693
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Booleans can be easily used in expressions by declaring HQL query "
"substitutions in Hibernate configuration:"
msgstr ""
-"å¨Hibernateé
ç½®æä»¶ä¸å£°æHQLâæ¥è¯¢æ¿ä»£ï¼query substitutionsï¼âä¹åï¼ å¸å°è¡¨è¾¾"
-"å¼ï¼Booleansï¼å¯ä»¥å¨å
¶ä»è¡¨è¾¾å¼ä¸è½»æ¾ç使ç¨:"
+"å¨ Hibernate é
ç½®æä»¶ä¸å£°æ HQLâæ¥è¯¢æ¿ä»£ï¼query substitutionsï¼âä¹åï¼å¸å°è¡¨"
+"è¾¾å¼ï¼Booleansï¼å¯ä»¥å¨å
¶ä»è¡¨è¾¾å¼ä¸è½»æ¾ç使ç¨ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:698
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false 0</"
-"property>]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:700
#, no-c-format
msgid ""
"This will replace the keywords <literal>true</literal> and <literal>false</"
"literal> with the literals <literal>1</literal> and <literal>0</literal> in "
"the translated SQL from this HQL:"
msgstr ""
-"ç³»ç»å°è¯¥HQL转æ¢ä¸ºSQLè¯å¥æ¶ï¼è¯¥è®¾ç½®è¡¨æå°ç¨å符 <literal>1</literal> å "
-"<literal>0</literal> æ¥ å代å
³é®å<literal>true</literal> å <literal>false</"
-"literal>:"
+"ç³»ç»å°è¯¥ HQL 转æ¢ä¸º SQL è¯å¥æ¶ï¼è¯¥è®¾ç½®è¡¨æå°ç¨å符 <literal>1</literal> å "
+"<literal>0</literal> æ¥å代å
³é®å <literal>true</literal> å <literal>false</"
+"literal>ï¼"
-#. Tag: programlisting
-#: query_hql.xml:705
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:707
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can test the size of a collection with the special property "
"<literal>size</literal> or the special <literal>size()</literal> function."
msgstr ""
-"ä½ å¯ä»¥ç¨ç¹æ®å±æ§<literal>size</literal>, ææ¯ç¹æ®å½æ°<literal>size()</"
-"literal>æµè¯ä¸ä¸ªéåç大å°ã"
+"ä½ å¯ä»¥ç¨ç¹æ®å±æ§ <literal>size</literal>ï¼ææ¯ç¹æ®å½æ° <literal>size()</"
+"literal> æµè¯ä¸ä¸ªéåç大å°ã "
-#. Tag: programlisting
-#: query_hql.xml:712
-#, no-c-format
-msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:714
-#, no-c-format
-msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:716
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For indexed collections, you can refer to the minimum and maximum indices "
"using <literal>minindex</literal> and <literal>maxindex</literal> functions. "
@@ -1379,364 +901,155 @@
"of basic type using the <literal>minelement</literal> and "
"<literal>maxelement</literal> functions. For example:"
msgstr ""
-"对äºç´¢å¼äºï¼æåºï¼çéåï¼ä½ å¯ä»¥ä½¿ç¨<literal>minindex</literal> ä¸ "
-"<literal>maxindex</literal>彿°æ¥å¼ç¨å°æå°ä¸æå¤§çç´¢å¼åºæ°ã åçï¼ä½ å¯ä»¥ä½¿"
-"ç¨<literal>minelement</literal> ä¸ <literal>maxelement</literal>彿°æ¥ å¼ç¨å°"
-"ä¸ä¸ªåºæ¬æ°æ®ç±»åçéå䏿å°ä¸æå¤§çå
ç´ ã"
+"对äºç´¢å¼äºï¼æåºï¼çéåï¼ä½ å¯ä»¥ä½¿ç¨ <literal>minindex</literal> ä¸ "
+"<literal>maxindex</literal> 彿°æ¥å¼ç¨å°æå°ä¸æå¤§çç´¢å¼åºæ°ãåçï¼ä½ å¯ä»¥ä½¿"
+"ç¨ <literal>minelement</literal> ä¸ <literal>maxelement</literal> 彿°æ¥å¼ç¨"
+"å°ä¸ä¸ªåºæ¬æ°æ®ç±»åçéå䏿å°ä¸æå¤§çå
ç´ ãä¾å¦ï¼"
-#. Tag: programlisting
-#: query_hql.xml:724
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:726
-#, no-c-format
-msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:728
-#, no-c-format
-msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:730
-#, fuzzy, no-c-format
-msgid ""
"The SQL functions <literal>any, some, all, exists, in</literal> are "
"supported when passed the element or index set of a collection "
"(<literal>elements</literal> and <literal>indices</literal> functions) or "
"the result of a subquery (see below):"
msgstr ""
-"å¨ä¼ éä¸ä¸ªéåçç´¢å¼éæè
æ¯å
ç´ é(<literal>elements</literal>ä¸"
-"<literal>indices</literal> 彿°) æè
ä¼ éä¸ä¸ªåæ¥è¯¢çç»æçæ¶åï¼å¯ä»¥ä½¿ç¨SQL"
-"彿°<literal>any, some, all, exists, in</literal>"
+"å¨ä¼ éä¸ä¸ªéåçç´¢å¼éæè
æ¯å
ç´ éï¼<literal>elements</literal> ä¸ "
+"<literal>indices</literal> 彿°ï¼æè
ä¼ éä¸ä¸ªåæ¥è¯¢çç»æçæ¶åï¼å¯ä»¥ä½¿ç¨ "
+"SQL 彿° <literal>any, someï¼all, exists, in</literal>ï¼"
-#. Tag: programlisting
-#: query_hql.xml:736
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select mother from Cat as mother, Cat as kit\n"
-"where kit in elements(foo.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:738
-#, no-c-format
-msgid ""
-"<![CDATA[select p from NameList list, Person p\n"
-"where p.name = some elements(list.names)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:740
-#, no-c-format
-msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:742
-#, no-c-format
-msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:744
-#, no-c-format
-msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:746
-#, fuzzy, no-c-format
-msgid ""
"Note that these constructs - <literal>size</literal>, <literal>elements</"
"literal>, <literal>indices</literal>, <literal>minindex</literal>, "
"<literal>maxindex</literal>, <literal>minelement</literal>, "
"<literal>maxelement</literal> - can only be used in the where clause in "
"Hibernate3."
msgstr ""
-"注æï¼å¨Hibernate3ç§ï¼è¿äºç»æåé- <literal>size</literal>, "
-"<literal>elements</literal>, <literal>indices</literal>, <literal>minindex</"
-"literal>, <literal>maxindex</literal>, <literal>minelement</literal>, "
-"<literal>maxelement</literal> - åªè½å¨whereåå¥ä¸ä½¿ç¨ã"
+"注æï¼å¨ Hibernate3 ä¸ï¼è¿äºç»æåé â <literal>size</literal>ï¼"
+"<literal>elements</literal>ï¼<literal>indices</literal>ï¼<literal>minindex</"
+"literal>ï¼<literal>maxindex</literal>ï¼<literal>minelement</literal>ï¼"
+"<literal>maxelement</literal> â åªè½å¨ where åå¥ä¸ä½¿ç¨ã "
#. Tag: para
-#: query_hql.xml:753
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Elements of indexed collections (arrays, lists, and maps) can be referred to "
"by index in a where clause only:"
msgstr ""
-"ä¸ä¸ªè¢«ç´¢å¼è¿çï¼æåºçï¼éåçå
ç´ (arrays, lists, maps)å¯ä»¥å¨å
¶ä»ç´¢å¼ä¸è¢«å¼ç¨"
-"ï¼åªè½å¨whereåå¥ä¸ï¼ï¼"
+"ä¸ä¸ªè¢«ç´¢å¼è¿çï¼æåºçï¼éåçå
ç´ ï¼arraysï¼listsï¼mapsï¼å¯ä»¥å¨å
¶ä»ç´¢å¼ä¸è¢«å¼"
+"ç¨ï¼åªè½å¨ where åå¥ä¸ï¼ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:758
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:760
-#, no-c-format
msgid ""
-"<![CDATA[select person from Person person, Calendar calendar\n"
-"where calendar.holidays['national day'] = person.birthDay\n"
-" and person.nationality.calendar = calendar]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:762
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ order.deliveredItemIndices[0] ] = item and order.id = 11]]"
-">"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:764
-#, no-c-format
-msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The expression inside <literal>[]</literal> can even be an arithmetic "
"expression:"
-msgstr "å¨<literal>[]</literal>ä¸ç表达å¼çè³å¯ä»¥æ¯ä¸ä¸ªç®æ°è¡¨è¾¾å¼ã"
+msgstr "å¨ <literal>[]</literal> ä¸ç表达å¼çè³å¯ä»¥æ¯ä¸ä¸ªç®æ°è¡¨è¾¾å¼ï¼"
-#. Tag: programlisting
-#: query_hql.xml:770
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select item from Item item, Order order\n"
-"where order.items[ size(order.items) - 1 ] = item]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:772
-#, fuzzy, no-c-format
-msgid ""
"HQL also provides the built-in <literal>index()</literal> function for "
"elements of a one-to-many association or collection of values."
msgstr ""
-"对äºä¸ä¸ªä¸å¯¹å¤çå
³èï¼one-to-many associationï¼ææ¯å¼çéåä¸çå
ç´ ï¼ HQL乿"
-"ä¾å
建ç<literal>index()</literal>彿°ï¼"
+"对äºä¸ä¸ªä¸å¯¹å¤çå
³èï¼one-to-many associationï¼ææ¯å¼çéåä¸çå
ç´ ï¼HQL 乿"
+"ä¾å
建ç <literal>index()</literal> 彿°ã"
-#. Tag: programlisting
-#: query_hql.xml:777
-#, no-c-format
-msgid ""
-"<![CDATA[select item, index(item) from Order order\n"
-" join order.items item\n"
-"where index(item) < 5]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:779
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Scalar SQL functions supported by the underlying database can be used:"
-msgstr "妿åºå±æ°æ®åºæ¯ææ éçSQL彿°ï¼å®ä»¬ä¹å¯ä»¥è¢«ä½¿ç¨"
+msgstr "妿åºå±æ°æ®åºæ¯ææ éç SQL 彿°ï¼å®ä»¬ä¹å¯ä»¥è¢«ä½¿ç¨ï¼"
-#. Tag: programlisting
-#: query_hql.xml:783
-#, no-c-format
-msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:785
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Consider how much longer and less readable the following query would be in "
"SQL:"
msgstr ""
-"å¦æä½ è¿ä¸è½å¯¹ææçè¿äºæ·±ä¿¡ä¸çï¼æ³æ³ä¸é¢çæ¥è¯¢ãå¦æä½¿ç¨SQLï¼è¯å¥é¿åº¦ä¼å¢é¿"
-"å¤å°ï¼å¯è¯»æ§ä¼ä¸éå¤å°ï¼"
+"å¦æä½ è¿ä¸è½å¯¹ææçè¿äºæ·±ä¿¡ä¸çï¼æ³æ³ä¸é¢çæ¥è¯¢ãå¦æä½¿ç¨ SQLï¼è¯å¥é¿åº¦ä¼å¢"
+"é¿å¤å°ï¼å¯è¯»æ§ä¼ä¸éå¤å°ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:790
-#, no-c-format
-msgid ""
-"<![CDATA[select cust\n"
-"from Product prod,\n"
-" Store store\n"
-" inner join store.customers cust\n"
-"where prod.name = 'widget'\n"
-" and store.location.name in ( 'Melbourne', 'Sydney' )\n"
-" and prod = all elements(cust.currentOrder.lineItems)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:792
#, no-c-format
msgid "<emphasis>Hint:</emphasis> something like"
-msgstr "<emphasis>æç¤º:</emphasis> ä¼åå¦ä¸çè¯å¥"
+msgstr "<emphasis>æç¤ºï¼</emphasis> ä¼åå¦ä¸çè¯å¥"
-#. Tag: programlisting
-#: query_hql.xml:796
-#, no-c-format
-msgid ""
-"<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
-"current_order\n"
-"FROM customers cust,\n"
-" stores store,\n"
-" locations loc,\n"
-" store_customers sc,\n"
-" product prod\n"
-"WHERE prod.name = 'widget'\n"
-" AND store.loc_id = loc.id\n"
-" AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
-" AND sc.store_id = store.id\n"
-" AND sc.cust_id = cust.id\n"
-" AND prod.id = ALL(\n"
-" SELECT item.prod_id\n"
-" FROM line_items item, orders o\n"
-" WHERE item.order_id = o.id\n"
-" AND cust.current_order = o.id\n"
-" )]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:801
#, no-c-format
msgid "The order by clause"
-msgstr "order byåå¥"
+msgstr "order by åå¥"
#. Tag: para
-#: query_hql.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The list returned by a query can be ordered by any property of a returned "
"class or components:"
msgstr ""
-"æ¥è¯¢è¿åçå表(list)å¯ä»¥æç
§ä¸ä¸ªè¿åçç±»æç»ä»¶ï¼components)ä¸çä»»ä½å±æ§"
-"ï¼propertyï¼è¿è¡æåºï¼"
+"æ¥è¯¢è¿åçå表ï¼listï¼å¯ä»¥æç
§ä¸ä¸ªè¿åçç±»æç»ä»¶ï¼componentsï¼ä¸çä»»ä½å±æ§"
+"ï¼propertyï¼è¿è¡æåºï¼ "
-#. Tag: programlisting
-#: query_hql.xml:807
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat cat\n"
-"order by cat.name asc, cat.weight desc, cat.birthdate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:809
#, no-c-format
msgid ""
"The optional <literal>asc</literal> or <literal>desc</literal> indicate "
"ascending or descending order respectively."
msgstr ""
-"å¯éç<literal>asc</literal>æ<literal>desc</literal>å
³é®åææäºæç
§ååºæé"
-"åºè¿è¡æåº."
+"å¯éç <literal>asc</literal> æ <literal>desc</literal> å
³é®åææäºæç
§ååº"
+"æéåºè¿è¡æåºã"
#. Tag: title
-#: query_hql.xml:816
#, no-c-format
msgid "The group by clause"
-msgstr "group byåå¥"
+msgstr "group by åå¥"
#. Tag: para
-#: query_hql.xml:818
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A query that returns aggregate values can be grouped by any property of a "
"returned class or components:"
msgstr ""
-"ä¸ä¸ªè¿åèéå¼(aggregate values)çæ¥è¯¢å¯ä»¥æç
§ä¸ä¸ªè¿åçç±»æç»ä»¶ï¼components)"
-"ä¸çä»»ä½å±æ§ï¼propertyï¼è¿è¡åç»ï¼"
+"ä¸ä¸ªè¿åèéå¼ï¼aggregate valuesï¼çæ¥è¯¢å¯ä»¥æç
§ä¸ä¸ªè¿åçç±»æç»ä»¶"
+"ï¼componentsï¼ä¸çä»»ä½å±æ§ï¼propertyï¼è¿è¡åç»ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:822
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:824
-#, no-c-format
-msgid ""
-"<![CDATA[select foo.id, avg(name), max(name)\n"
-"from Foo foo join foo.names name\n"
-"group by foo.id]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:826
#, no-c-format
msgid "A <literal>having</literal> clause is also allowed."
-msgstr "<literal>having</literal>åå¥å¨è¿éä¹å
许使ç¨."
+msgstr "<literal>having</literal> åå¥å¨è¿éä¹å
许使ç¨ã"
-#. Tag: programlisting
-#: query_hql.xml:830
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
-"from Cat cat\n"
-"group by cat.color\n"
-"having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:832
-#, fuzzy, no-c-format
-msgid ""
"SQL functions and aggregate functions are allowed in the <literal>having</"
"literal> and <literal>order by</literal> clauses if they are supported by "
"the underlying database (i.e., not in MySQL)."
msgstr ""
-"妿åºå±çæ°æ®åºæ¯æçè¯(ä¾å¦ä¸è½å¨MySQLä¸ä½¿ç¨)ï¼SQLçä¸è¬å½æ°ä¸èé彿°ä¹å¯"
-"以åºç° å¨<literal>having</literal>ä¸<literal>order by</literal> åå¥ä¸ã"
+"妿åºå±çæ°æ®åºæ¯æçè¯ï¼ä¾å¦ä¸è½å¨ MySQL ä¸ä½¿ç¨ï¼ï¼SQL çä¸è¬å½æ°ä¸èé彿°"
+"ä¹å¯ä»¥åºç°å¨ <literal>having</literal> ä¸ <literal>order by</literal> åå¥"
+"ä¸ã "
-#. Tag: programlisting
-#: query_hql.xml:838
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select cat\n"
-"from Cat cat\n"
-" join cat.kittens kitten\n"
-"group by cat.id, cat.name, cat.other, cat.properties\n"
-"having avg(kitten.weight) > 100\n"
-"order by count(kitten) asc, sum(kitten.weight) desc]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:840
-#, fuzzy, no-c-format
-msgid ""
"Neither the <literal>group by</literal> clause nor the <literal>order by</"
"literal> clause can contain arithmetic expressions. Hibernate also does not "
"currently expand a grouped entity, so you cannot write <literal>group by "
"cat</literal> if all properties of <literal>cat</literal> are non-"
"aggregated. You have to list all non-aggregated properties explicitly."
msgstr ""
-"注æ<literal>group by</literal>åå¥ä¸ <literal>order by</literal>åå¥ä¸é½ä¸è½"
-"å
å«ç®æ¯è¡¨è¾¾å¼ï¼arithmetic expressionsï¼. ä¹è¦æ³¨æHibernateç®åä¸ä¼æ©å±group"
-"çå®ä½,å æ¤ä½ ä¸è½å<literal>group by cat</literal>,é¤é<literal>cat</literal>"
-"çææå±æ§é½ä¸æ¯èéç(non-aggregated)ãä½ å¿
é¡»æç¡®çååºææçéèé屿§ã"
+"注æ <literal>group by</literal> åå¥ä¸ <literal>order by</literal> åå¥ä¸é½"
+"ä¸è½å
å«ç®æ¯è¡¨è¾¾å¼ï¼arithmetic expressionsï¼ãä¹è¦æ³¨æ Hibernate ç®åä¸ä¼æ©"
+"å± group çå®ä½ï¼å æ¤ä½ ä¸è½å <literal>group by cat</literal>ï¼é¤é "
+"<literal>cat</literal> çææå±æ§é½ä¸æ¯èéçï¼non-aggregatedï¼ãä½ å¿
é¡»æç¡®ç"
+"ååºææçéèé屿§ã "
#. Tag: title
-#: query_hql.xml:852
#, no-c-format
msgid "Subqueries"
msgstr "åæ¥è¯¢"
#. Tag: para
-#: query_hql.xml:854
#, no-c-format
msgid ""
"For databases that support subselects, Hibernate supports subqueries within "
@@ -1744,83 +1057,32 @@
"aggregate function call). Even correlated subqueries (subqueries that refer "
"to an alias in the outer query) are allowed."
msgstr ""
-"å¯¹äºæ¯æåæ¥è¯¢çæ°æ®åºï¼Hibernateæ¯æå¨æ¥è¯¢ä¸ä½¿ç¨åæ¥è¯¢ãä¸ä¸ªåæ¥è¯¢å¿
é¡»è¢«åæ¬"
-"å·å
å´èµ·æ¥ï¼ç»å¸¸æ¯SQLèé彿°ç忬å·ï¼ã çè³ç¸äºå
³èçåæ¥è¯¢ï¼å¼ç¨å°å¤é¨æ¥"
-"询ä¸çå«åçåæ¥è¯¢ï¼ä¹æ¯å
许çã"
+"å¯¹äºæ¯æåæ¥è¯¢çæ°æ®åºï¼Hibernate æ¯æå¨æ¥è¯¢ä¸ä½¿ç¨åæ¥è¯¢ãä¸ä¸ªåæ¥è¯¢å¿
须被å"
+"æ¬å·å
å´èµ·æ¥ï¼ç»å¸¸æ¯ SQL èé彿°ç忬å·ï¼ãçè³ç¸äºå
³èçåæ¥è¯¢ï¼å¼ç¨å°å¤é¨"
+"æ¥è¯¢ä¸çå«åçåæ¥è¯¢ï¼ä¹æ¯å
许çã"
-#. Tag: programlisting
-#: query_hql.xml:860
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as fatcat\n"
-"where fatcat.weight > (\n"
-" select avg(cat.weight) from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:862
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name = some (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:864
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not exists (\n"
-" from Cat as mate where mate.mate = cat\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:866
-#, no-c-format
-msgid ""
-"<![CDATA[from DomesticCat as cat\n"
-"where cat.name not in (\n"
-" select name.nickName from Name as name\n"
-")]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:868
-#, no-c-format
-msgid ""
-"<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
-"from Cat as cat]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:870
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note that HQL subqueries can occur only in the select or where clauses."
-msgstr "注æï¼HQLèªæ¥è¯¢åªå¯ä»¥å¨selectæè
whereåå¥ä¸åºç°ã"
+msgstr "注æï¼HQL èªæ¥è¯¢åªå¯ä»¥å¨ select æè
where åå¥ä¸åºç°ã "
#. Tag: para
-#: query_hql.xml:874
#, fuzzy, no-c-format
msgid ""
"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more information."
+"literal> syntax. See <xref linkend=\"queryhql-tuple\" /> for more "
+"information."
msgstr ""
-"Note that subqueries can also utilize <literal>row value constructor</"
-"literal> syntax. See <xref linkend=\"queryhql-tuple\"/> for more details."
+"注æåæ¥è¯¢ä¹å¯ä»¥å©ç¨ <literal>row value constructor</literal> è¯æ³ã请åè "
+"<xref linkend=\"queryhql-tuple\" /> æ¥è·å¾è¯¦æ
ã "
#. Tag: title
-#: query_hql.xml:882
#, no-c-format
msgid "HQL examples"
-msgstr "HQL示ä¾"
+msgstr "HQL ç¤ºä¾ "
#. Tag: para
-#: query_hql.xml:884
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries can be quite powerful and complex. In fact, the power of "
"the query language is one of Hibernate's main strengths. The following "
@@ -1828,13 +1090,12 @@
"projects. Please note that most queries you will write will be much simpler "
"than the following examples."
msgstr ""
-"Hibernateæ¥è¯¢å¯ä»¥é常ç强大ä¸å¤æãå®é
ä¸ï¼Hibernateçä¸ä¸ªä¸»è¦åç¹å°±æ¯æ¥è¯¢è¯"
-"å¥çå¨åãè¿éæä¸äºä¾åï¼å®ä»¬ä¸æå¨æè¿ç ä¸ä¸ªé¡¹ç®ä¸ä½¿ç¨çæ¥è¯¢é常ç¸ä¼¼ã注æ"
-"ä½ è½ç¨å°ç大夿°æ¥è¯¢æ¯è¿äºè¦ç®åçå¤ï¼"
+"Hibernate æ¥è¯¢å¯ä»¥é常ç强大ä¸å¤æãå®é
ä¸ï¼Hibernate çä¸ä¸ªä¸»è¦åç¹å°±æ¯æ¥è¯¢"
+"è¯å¥çå¨åãè¿éæä¸äºä¾åï¼å®ä»¬ä¸æå¨æè¿çä¸ä¸ªé¡¹ç®ä¸ä½¿ç¨çæ¥è¯¢é常ç¸ä¼¼ã注"
+"æä½ è½ç¨å°ç大夿°æ¥è¯¢æ¯è¿äºè¦ç®åçå¤ã"
#. Tag: para
-#: query_hql.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following query returns the order id, number of items, the given minimum "
"total value and the total value of the order for all unpaid orders for a "
@@ -1845,37 +1106,12 @@
"literal> tables has four inner joins and an (uncorrelated) subselect."
msgstr ""
"ä¸é¢çæ¥è¯¢å¯¹äºæä¸ªç¹å®ç客æ·çæææªæ¯ä»çè´¦åï¼å¨ç»å®ç»æå°æ»ä»·å¼çæ
åµä¸ï¼"
-"è¿å订åçidï¼æ¡ç®çæ°é忻价å¼ï¼ è¿å弿ç
§æ»ä»·å¼çç»æè¿è¡æåºã为äºå³å®ä»·"
-"æ ¼ï¼æ¥è¯¢ä½¿ç¨äºå½åç®å½ãä½ä¸ºè½¬æ¢ç»æçSQLæ¥è¯¢ï¼ä½¿ç¨äº<literal>ORDER</"
-"literal>, <literal>ORDER_LINE</literal>, <literal>PRODUCT</literal>, "
-"<literal>CATALOG</literal> å<literal>PRICE</literal> åºè¡¨ã"
+"è¿å订åç idï¼æ¡ç®çæ°é忻价å¼ï¼è¿å弿ç
§æ»ä»·å¼çç»æè¿è¡æåºã为äºå³å®ä»·"
+"æ ¼ï¼æ¥è¯¢ä½¿ç¨äºå½åç®å½ãä½ä¸ºè½¬æ¢ç»æç SQL æ¥è¯¢ï¼ä½¿ç¨äº<literal>ORDER</"
+"literal>ï¼<literal>ORDER_LINE</literal>ï¼<literal>PRODUCT</literal>ï¼"
+"<literal>CATALOG</literal> å <literal>PRICE</literal> åºè¡¨ã"
-#. Tag: programlisting
-#: query_hql.xml:899
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog.effectiveDate < sysdate\n"
-" and catalog.effectiveDate >= all (\n"
-" select cat.effectiveDate\n"
-" from Catalog as cat\n"
-" where cat.effectiveDate < sysdate\n"
-" )\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:901
#, no-c-format
msgid ""
"What a monster! Actually, in real life, I'm not very keen on subqueries, so "
@@ -1884,27 +1120,7 @@
"è¿ç®ç´æ¯ä¸ä¸ªæªç©ï¼å®é
ä¸ï¼å¨ç°å®çæ´»ä¸ï¼æå¹¶ä¸çè¡·äºåæ¥è¯¢ï¼æä»¥æçæ¥è¯¢è¯å¥"
"çèµ·æ¥æ´åè¿ä¸ªï¼"
-#. Tag: programlisting
-#: query_hql.xml:906
-#, no-c-format
-msgid ""
-"<![CDATA[select order.id, sum(price.amount), count(item)\n"
-"from Order as order\n"
-" join order.lineItems as item\n"
-" join item.product as product,\n"
-" Catalog as catalog\n"
-" join catalog.prices as price\n"
-"where order.paid = false\n"
-" and order.customer = :customer\n"
-" and price.product = product\n"
-" and catalog = :currentCatalog\n"
-"group by order\n"
-"having sum(price.amount) > :minAmount\n"
-"order by sum(price.amount) desc]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:908
#, no-c-format
msgid ""
"The next query counts the number of payments in each status, excluding all "
@@ -1914,59 +1130,22 @@
"<literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal> and "
"<literal>PAYMENT_STATUS_CHANGE</literal> tables."
msgstr ""
-"ä¸é¢ä¸ä¸ªæ¥è¯¢è®¡ç®æ¯ä¸ç§ç¶æä¸çæ¯ä»çæ°ç®ï¼é¤å»ææå¤äº"
-"<literal>AWAITING_APPROVAL</literal>ç¶æçæ¯ä»ï¼å 为å¨è¯¥ç¶æä¸ å½åçç¨æ·ä½åº"
-"äºç¶æçææ°æ¹åã该æ¥è¯¢è¢«è½¬æ¢æå«æä¸¤ä¸ªå
è¿æ¥ä»¥åä¸ä¸ªç¸å
³èçåéæ©çSQLæ¥"
-"询ï¼è¯¥æ¥è¯¢ä½¿ç¨äºè¡¨ <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</"
-"literal> 以å <literal>PAYMENT_STATUS_CHANGE</literal>ã"
+"ä¸é¢ä¸ä¸ªæ¥è¯¢è®¡ç®æ¯ä¸ç§ç¶æä¸çæ¯ä»çæ°ç®ï¼é¤å»ææå¤äº "
+"<literal>AWAITING_APPROVAL</literal> ç¶æçæ¯ä»ï¼å 为å¨è¯¥ç¶æä¸ å½åçç¨æ·ä½"
+"åºäºç¶æçææ°æ¹åã该æ¥è¯¢è¢«è½¬æ¢æå«æä¸¤ä¸ªå
è¿æ¥ä»¥åä¸ä¸ªç¸å
³èçåéæ©ç SQL "
+"æ¥è¯¢ï¼è¯¥æ¥è¯¢ä½¿ç¨äºè¡¨ <literal>PAYMENT</literal>ï¼<literal>PAYMENT_STATUS</"
+"literal> 以å <literal>PAYMENT_STATUS_CHANGE</literal>ã"
-#. Tag: programlisting
-#: query_hql.xml:916
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-" join payment.statusChanges as statusChange\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or (\n"
-" statusChange.timeStamp = (\n"
-" select max(change.timeStamp)\n"
-" from PaymentStatusChange change\n"
-" where change.payment = payment\n"
-" )\n"
-" and statusChange.user <> :currentUser\n"
-" )\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:918
-#, fuzzy, no-c-format
-msgid ""
"If the <literal>statusChanges</literal> collection was mapped as a list, "
"instead of a set, the query would have been much simpler to write."
msgstr ""
-"妿ææ<literal>statusChanges</literal>å®ä¾éæ å°ä¸ºä¸ä¸ªå表ï¼listï¼è䏿¯ä¸"
-"个éåï¼setï¼, ä¹¦åæ¥è¯¢è¯å¥å°æ´å ç®å."
+"å¦æææ <literal>statusChanges</literal> å®ä¾éæ å°ä¸ºä¸ä¸ªå表ï¼listï¼è䏿¯"
+"ä¸ä¸ªéåï¼setï¼ï¼ä¹¦åæ¥è¯¢è¯å¥å°æ´å ç®åã "
-#. Tag: programlisting
-#: query_hql.xml:923
-#, no-c-format
-msgid ""
-"<![CDATA[select count(payment), status.name\n"
-"from Payment as payment\n"
-" join payment.currentStatus as status\n"
-"where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
-" or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
-"currentUser\n"
-"group by status.name, status.sortOrder\n"
-"order by status.sortOrder]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:925
#, no-c-format
msgid ""
"The next query uses the MS SQL Server <literal>isNull()</literal> function "
@@ -1977,305 +1156,142 @@
"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> and "
"<literal>ORG_USER</literal> tables."
msgstr ""
-"ä¸é¢ä¸ä¸ªæ¥è¯¢ä½¿ç¨äºMS SQL Serverç <literal>isNull()</literal>彿°ç¨ä»¥è¿åå½å"
-"ç¨æ·æå±ç»ç»çç»ç»å¸å·åç»ç»æªæ¯ä»çè´¦ã å®è¢«è½¬æ¢æä¸ä¸ªå¯¹è¡¨<literal>ACCOUNT</"
-"literal>, <literal>PAYMENT</literal>, <literal>PAYMENT_STATUS</literal>, "
-"<literal>ACCOUNT_TYPE</literal>, <literal>ORGANIZATION</literal> 以å "
-"<literal>ORG_USER</literal>è¿è¡çä¸ä¸ªå
è¿æ¥ï¼ ä¸ä¸ªå¤è¿æ¥åä¸ä¸ªåéæ©çSQLæ¥"
-"询ã"
+"ä¸é¢ä¸ä¸ªæ¥è¯¢ä½¿ç¨äº MS SQL Server ç <literal>isNull()</literal> 彿°ç¨ä»¥è¿å"
+"å½åç¨æ·æå±ç»ç»çç»ç»å¸å·åç»ç»æªæ¯ä»çè´¦ãå®è¢«è½¬æ¢æä¸ä¸ªå¯¹è¡¨ "
+"<literal>ACCOUNT</literal>ï¼<literal>PAYMENT</literal>ï¼"
+"<literal>PAYMENT_STATUS</literal>ï¼<literal>ACCOUNT_TYPE</literal>ï¼"
+"<literal>ORGANIZATION</literal> 以å <literal>ORG_USER</literal> è¿è¡çä¸ä¸ª"
+"å
è¿æ¥ï¼ä¸ä¸ªå¤è¿æ¥åä¸ä¸ªåéæ©ç SQL æ¥è¯¢ã"
-#. Tag: programlisting
-#: query_hql.xml:934
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" left outer join account.payments as payment\n"
-"where :currentUser in elements(account.holder.users)\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:936
#, no-c-format
msgid ""
"For some databases, we would need to do away with the (correlated) subselect."
msgstr "对äºä¸äºæ°æ®åºï¼æä»¬éè¦å¼ç¨ï¼ç¸å
³çï¼åéæ©ã"
-#. Tag: programlisting
-#: query_hql.xml:940
-#, no-c-format
-msgid ""
-"<![CDATA[select account, payment\n"
-"from Account as account\n"
-" join account.holder.users as user\n"
-" left outer join account.payments as payment\n"
-"where :currentUser = user\n"
-" and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
-"PaymentStatus.UNPAID)\n"
-"order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:945
#, no-c-format
msgid "Bulk update and delete"
-msgstr "æ¹éçUPDATEåDELETE"
+msgstr "æ¹éç UPDATE å DELETE"
#. Tag: para
-#: query_hql.xml:947
#, fuzzy, no-c-format
msgid ""
"HQL now supports <literal>update</literal>, <literal>delete</literal> and "
"<literal>insert ... select ...</literal> statements. See <xref linkend="
-"\"batch-direct\"/> for more information."
+"\"batch-direct\" /> for more information."
msgstr ""
-"HQLç°å¨æ¯æ <literal>update</literal>, <literal>delete</literal> å "
-"<literal>insert ... select ...</literal>è¯å¥. æ¥é
<xref linkend=\"batch-"
-"direct\"/> 以è·å¾æ´å¤ä¿¡æ¯ã"
+"HQL ç°å¨æ¯æ <literal>update</literal>ï¼<literal>delete</literal> å "
+"<literal>insert ... select ...</literal>è¯å¥ãæ¥é
<xref linkend=\"batch-"
+"direct\" /> 以è·å¾æ´å¤ä¿¡æ¯ã"
#. Tag: title
-#: query_hql.xml:955
#, no-c-format
msgid "Tips & Tricks"
msgstr "å°æå·§ & å°çªé¨"
#. Tag: para
-#: query_hql.xml:957
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can count the number of query results without returning them:"
-msgstr "ä½ å¯ä»¥ç»è®¡æ¥è¯¢ç»æçæ°ç®èä¸å¿
å®é
çè¿åä»ä»¬ï¼"
+msgstr "ä½ å¯ä»¥ç»è®¡æ¥è¯¢ç»æçæ°ç®èä¸å¿
å®é
çè¿åä»ä»¬ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:961
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue()]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:963
#, no-c-format
msgid "To order a result by the size of a collection, use the following query:"
msgstr "è¥æ³æ ¹æ®ä¸ä¸ªéåç大尿¥è¿è¡æåºï¼å¯ä»¥ä½¿ç¨å¦ä¸çè¯å¥ï¼"
-#. Tag: programlisting
-#: query_hql.xml:967
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"order by count(msg)]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:969
#, no-c-format
msgid ""
"If your database supports subselects, you can place a condition upon "
"selection size in the where clause of your query:"
msgstr ""
-"å¦æä½ çæ°æ®åºæ¯æåéæ©ï¼ä½ å¯ä»¥å¨ä½ çæ¥è¯¢çwhereåå¥ä¸ä¸ºéæ©ç大å°"
-"ï¼selection sizeï¼æå®ä¸ä¸ªæ¡ä»¶:"
+"å¦æä½ çæ°æ®åºæ¯æåéæ©ï¼ä½ å¯ä»¥å¨ä½ çæ¥è¯¢ç where åå¥ä¸ä¸ºéæ©ç大å°"
+"ï¼selection sizeï¼æå®ä¸ä¸ªæ¡ä»¶ï¼"
-#. Tag: programlisting
-#: query_hql.xml:974
-#, no-c-format
-msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid "If your database does not support subselects, use the following query:"
-msgstr "å¦æä½ çæ°æ®åºä¸æ¯æåéæ©è¯å¥ï¼ä½¿ç¨ä¸é¢çæ¥è¯¢ï¼"
+msgstr "å¦æä½ çæ°æ®åºä¸æ¯æåéæ©è¯å¥ï¼ä½¿ç¨ä¸é¢çæ¥è¯¢ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:980
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User usr.name\n"
-" join usr.messages msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) >= 1]]>"
-msgstr ""
-
-#. Tag: para
-#: query_hql.xml:983
-#, fuzzy, no-c-format
-msgid ""
"As this solution cannot return a <literal>User</literal> with zero messages "
"because of the inner join, the following form is also useful:"
msgstr ""
-"å 为å
è¿æ¥ï¼inner joinï¼çåå ï¼è¿ä¸ªè§£å³æ¹æ¡ä¸è½è¿å嫿é¶ä¸ªä¿¡æ¯ç"
-"<literal>User</literal> ç±»çå®ä¾, æä»¥è¿ç§æ
åµä¸ä½¿ç¨ä¸é¢çæ ¼å¼å°æ¯æå¸®å©ç:"
+"å 为å
è¿æ¥ï¼inner joinï¼çåå ï¼è¿ä¸ªè§£å³æ¹æ¡ä¸è½è¿å嫿é¶ä¸ªä¿¡æ¯ç "
+"<literal>User</literal> ç±»çå®ä¾ï¼æä»¥è¿ç§æ
åµä¸ä½¿ç¨ä¸é¢çæ ¼å¼å°æ¯æå¸®å©çï¼ "
-#. Tag: programlisting
-#: query_hql.xml:988
-#, no-c-format
-msgid ""
-"<![CDATA[select usr.id, usr.name\n"
-"from User as usr\n"
-" left join usr.messages as msg\n"
-"group by usr.id, usr.name\n"
-"having count(msg) = 0]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:990
#, no-c-format
msgid "Properties of a JavaBean can be bound to named query parameters:"
-msgstr "JavaBeanç屿§å¯ä»¥è¢«ç»å®å°ä¸ä¸ªå½åæ¥è¯¢ï¼named queryï¼çåæ°ä¸ï¼"
+msgstr "JavaBean ç屿§å¯ä»¥è¢«ç»å®å°ä¸ä¸ªå½åæ¥è¯¢ï¼named queryï¼çåæ°ä¸ï¼"
-#. Tag: programlisting
-#: query_hql.xml:994
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name "
-"and foo.size=:size\");\n"
-"q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
-"List foos = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:996
#, no-c-format
msgid ""
"Collections are pageable by using the <literal>Query</literal> interface "
"with a filter:"
msgstr ""
-"éè¿å°æ¥å£<literal>Query</literal>ä¸ä¸ä¸ªè¿æ»¤å¨ï¼filterï¼ä¸èµ·ä½¿ç¨ï¼éå"
+"éè¿å°æ¥å£ <literal>Query</literal> ä¸ä¸ä¸ªè¿æ»¤å¨ï¼filterï¼ä¸èµ·ä½¿ç¨ï¼éå"
"ï¼Collectionsï¼æ¯å¯ä»¥å页çï¼"
-#. Tag: programlisting
-#: query_hql.xml:1000
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
-"filter\n"
-"q.setMaxResults(PAGE_SIZE);\n"
-"q.setFirstResult(PAGE_SIZE * pageNumber);\n"
-"List page = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Collection elements can be ordered or grouped using a query filter:"
msgstr ""
-"éè¿ä½¿ç¨æ¥è¯¢è¿æ»¤å¨ï¼query filterï¼å¯ä»¥å°éåï¼Collectionï¼çåç´ åç»ææåº:"
+"éè¿ä½¿ç¨æ¥è¯¢è¿æ»¤å¨ï¼query filterï¼å¯ä»¥å°éåï¼Collectionï¼çå
ç´ åç»ææåºï¼ "
-#. Tag: programlisting
-#: query_hql.xml:1006
-#, no-c-format
-msgid ""
-"<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
-"this.amount\" );\n"
-"Collection counts = s.filter( collection, \"select this.type, count(this) "
-"group by this.type\" );]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1008
#, no-c-format
msgid "You can find the size of a collection without initializing it:"
msgstr "ä¸ç¨éè¿åå§åï¼ä½ å°±å¯ä»¥ç¥éä¸ä¸ªéåï¼Collectionï¼ç大å°ï¼"
-#. Tag: programlisting
-#: query_hql.xml:1012
-#, no-c-format
-msgid ""
-"<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
-"iterate().next() ).intValue();]]>"
-msgstr ""
-
#. Tag: title
-#: query_hql.xml:1017
#, no-c-format
msgid "Components"
-msgstr "translator-credits"
+msgstr "ç»ä»¶"
#. Tag: para
-#: query_hql.xml:1019
#, no-c-format
msgid ""
"Components can be used similarly to the simple value types that are used in "
"HQL queries. They can appear in the <literal>select</literal> clause as "
"follows:"
msgstr ""
+"å¨ HQL æ¥è¯¢éï¼ç»ä»¶å¯ä»¥åç®åå¼ç±»å䏿 ·ä½¿ç¨ãå®ä»¬å¯ä»¥åºç°å¨ <literal>select</"
+"literal> åå¥éï¼ "
-#. Tag: programlisting
-#: query_hql.xml:1024 query_hql.xml:1070
-#, no-c-format
-msgid "<![CDATA[select p.name from Person p]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1025
-#, no-c-format
-msgid "<![CDATA[select p.name.first from Person p]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1027
#, no-c-format
msgid ""
"where the Person's name property is a component. Components can also be used "
"in the <literal>where</literal> clause:"
msgstr ""
+"å¨è¿éï¼Person ç name 屿§æ¯ä¸ä¸ªç»ä»¶ãç»ä»¶ä¹å¯ä»¥ç¨å¨ <literal>where</"
+"literal> åå¥éï¼"
-#. Tag: programlisting
-#: query_hql.xml:1032
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name = :name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1033
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1035
#, no-c-format
msgid "Components can also be used in the <literal>order by</literal> clause:"
-msgstr ""
+msgstr "ç»ä»¶ä¹å¯ä»¥ç¨å¨ <literal>order by</literal> åå¥éï¼"
-#. Tag: programlisting
-#: query_hql.xml:1039
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_hql.xml:1040
-#, no-c-format
-msgid "<![CDATA[from Person p order by p.name.first]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1042
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Another common use of components is in <link linkend=\"queryhql-tuple\">row "
"value constructors</link>."
msgstr ""
+"ç»ä»¶çå¦å¤ä¸ä¸ªå¸¸è§ç¨æ³æ¯å¨ <xref linkend=\"queryhql-tuple\" /> è¡å¼ï¼row "
+"valueï¼æé 彿°éã"
#. Tag: title
-#: query_hql.xml:1048
#, no-c-format
msgid "Row value constructor syntax"
-msgstr ""
+msgstr "Row value æé 彿°è¯æ³"
#. Tag: para
-#: query_hql.xml:1050
#, no-c-format
msgid ""
"HQL supports the use of ANSI SQL <literal>row value constructor</literal> "
@@ -2284,71 +1300,982 @@
"generally referring to multi-valued comparisons, typically associated with "
"components. Consider an entity Person which defines a name component:"
msgstr ""
+"HQL æ¯æ ANSI SQL <literal>row value constructor</literal> è¯æ³ï¼ææ¶ä¹å«ä½ "
+"<literal>tuple</literal> è¯æ³ï¼ï¼å³ä½¿åºå±æ°æ®åºå¯è½ä¸æ¯æè¿ä¸ªæ¦å¿µãå¨è¿éæä»¬"
+"é常æçæ¯å¤å¼ï¼multi-valuedï¼çæ¯è¾ï¼å
¸åå°æ¯åç»ä»¶ç¸å
³èãæ¥ççä¸ä¸ªå®ä¹äº "
+"name ç»ä»¶çå®ä½ Personï¼"
-#. Tag: programlisting
-#: query_hql.xml:1057
-#, no-c-format
-msgid ""
-"<![CDATA[from Person p where p.name.first='John' and p.name."
-"last='Jingleheimer-Schmidt']]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1059
#, no-c-format
msgid ""
"That is valid syntax although it is a little verbose. You can make this more "
"concise by using <literal>row value constructor</literal> syntax:"
msgstr ""
+"飿¯ææçè¯æ³ï¼è½ç¶æç¹åé¿ãæä»¬å¯ä»¥ä½¿å®æ´å ç®æ´ä¸ç¹ï¼å¹¶ä½¿ç¨ <literal>row "
+"value constructor</literal> è¯æ³ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:1064
-#, no-c-format
-msgid "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1066
#, no-c-format
msgid ""
"It can also be useful to specify this in the <literal>select</literal> "
"clause:"
-msgstr ""
+msgstr "å¨ <literal>select</literal> åå¥éæå®è¿ä¸ªä¹æ¯å¾æç¨çï¼"
#. Tag: para
-#: query_hql.xml:1072
#, no-c-format
msgid ""
"Using <literal>row value constructor</literal> syntax can also be beneficial "
"when using subqueries that need to compare against multiple values:"
msgstr ""
+"å½ä½¿ç¨éè¦æ¯è¾å¤ä¸ªå¼çåæ¥è¯¢æ¶ï¼éç¨ <literal>row value constructor</"
+"literal> è¯æ³ä¹å¾æç¨å¤ï¼ "
-#. Tag: programlisting
-#: query_hql.xml:1077
-#, no-c-format
-msgid ""
-"<![CDATA[from Cat as cat\n"
-"where not ( cat.name, cat.color ) in (\n"
-" select cat.name, cat.color from DomesticCat cat\n"
-")]]>"
-msgstr ""
-
#. Tag: para
-#: query_hql.xml:1079
#, no-c-format
msgid ""
"One thing to consider when deciding if you want to use this syntax, is that "
"the query will be dependent upon the ordering of the component sub-"
"properties in the metadata."
msgstr ""
+"å³å®æ¯å¦ä½¿ç¨è¿ä¸ªè¯æ³çä¸ä»¶å ç´ å°±æ¯ï¼è¿ä¸ªæ¥è¯¢å°ä¾èµäºå
æ°æ®éçç»ä»¶å屿§"
+"ï¼sub-propertiesï¼ç顺åºã "
+#, fuzzy
+#~ msgid "<![CDATA[from eg.Cat]]>"
+#~ msgstr "from eg.Cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat]]>"
+#~ msgstr "from eg.Cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat]]>"
+#~ msgstr "from Cat as cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat]]>"
+#~ msgstr "from Cat cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula, Parameter]]>"
+#~ msgstr "from Formula, Parameter"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula as form, Parameter as param]]>"
+#~ msgstr "from Formula as form, Parameter as param"
+
+#, fuzzy
#~ msgid ""
-#~ "Most of the time, you will need to assign an <emphasis>alias</emphasis>, "
-#~ "since you will want to refer to the <literal>Cat</literal> in other parts "
-#~ "of the query."
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join cat.mate as mate\n"
+#~ " left outer join cat.kittens as kitten]]>"
#~ msgstr ""
-#~ "大夿°æ
åµä¸, ä½ éè¦æå®ä¸ä¸ª<emphasis>å«å</emphasis>, åå æ¯ä½ å¯è½éè¦ å¨"
-#~ "æ¥è¯¢è¯å¥çå
¶å®é¨åå¼ç¨å°<literal>Cat</literal>"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate\n"
+#~ " left outer join cat.kittens as kitten"
-#~ msgid "or as an actual typesafe Java object,"
-#~ msgstr "ä¹å¯è½ç´æ¥è¿åä¸ä¸ªå®é
çç±»åå®å
¨çJava对象,"
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat left join cat.mate.kittens as kittens]]>"
+#~ msgstr "from Cat as cat left join cat.mate.kittens as kittens"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Formula form full join form.parameter param]]>"
+#~ msgstr "from Formula form full join form.parameter param"
+
+#~ msgid "inner join"
+#~ msgstr "<literal>inner join</literal>ï¼å
è¿æ¥ï¼"
+
+#~ msgid "left outer join"
+#~ msgstr "<literal>left outer join</literal>ï¼å·¦å¤è¿æ¥ï¼"
+
+#, fuzzy
+#~ msgid "right outer join"
+#~ msgstr "<literal>left outer join</literal>ï¼å·¦å¤è¿æ¥ï¼"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " join cat.mate as mate\n"
+#~ " left join cat.kittens as kitten]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " join cat.mate as mate\n"
+#~ " left join cat.kittens as kitten"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " left join cat.kittens as kitten\n"
+#~ " with kitten.bodyWeight > 10.0]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " left join cat.kittens as kitten\n"
+#~ " with kitten.bodyWeight > 10.0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens child\n"
+#~ " left join fetch child.kittens]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ " inner join fetch cat.mate\n"
+#~ " left join fetch cat.kittens child\n"
+#~ " left join fetch child.kittens"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Document fetch all properties order by name]]>"
+#~ msgstr "from Document fetch all properties order by name"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Document doc fetch all properties where lower(doc.name) "
+#~ "like '%cats%']]>"
+#~ msgstr ""
+#~ "from Document doc fetch all properties where lower(doc.name) like '%"
+#~ "cats%'"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat where cat.mate.name like '%s%']]>"
+#~ msgstr "from Cat as cat where cat.mate.name like '%s%'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mate\n"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate]]>"
+#~ msgstr ""
+#~ "select mate\n"
+#~ "from Cat as cat\n"
+#~ " inner join cat.mate as mate"
+
+#, fuzzy
+#~ msgid "<![CDATA[select cat.mate from Cat cat]]>"
+#~ msgstr "select cat.mate from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.name from DomesticCat cat\n"
+#~ "where cat.name like 'fri%']]>"
+#~ msgstr ""
+#~ "select cat.name from DomesticCat cat\n"
+#~ "where cat.name like 'fri%'"
+
+#, fuzzy
+#~ msgid "<![CDATA[select cust.name.firstName from Customer as cust]]>"
+#~ msgstr "select cust.name.firstName from Customer as cust"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mother, offspr, mate.name\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select mother, offspr, mate.name\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new list(mother, offspr, mate.name)\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select new list(mother, offspr, mate.name)\n"
+#~ "from DomesticCat as mother\n"
+#~ " inner join mother.mate as mate\n"
+#~ " left outer join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new Family(mother, mate, offspr)\n"
+#~ "from DomesticCat as mother\n"
+#~ " join mother.mate as mate\n"
+#~ " left join mother.kittens as offspr]]>"
+#~ msgstr ""
+#~ "select new Family(mother, mate, offspr)\n"
+#~ "from DomesticCat as mother\n"
+#~ " join mother.mate as mate\n"
+#~ " left join mother.kittens as offspr"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
+#~ "as n\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n\n"
+#~ "from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select new map( max(bodyWeight) as max, min(bodyWeight) as min, "
+#~ "count(*) as n )\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) "
+#~ "as n )\n"
+#~ "from Cat cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count"
+#~ "(cat)\n"
+#~ "from Cat cat]]>"
+#~ msgstr ""
+#~ "select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)\n"
+#~ "from Cat cat"
+
+#~ msgid "count(*)"
+#~ msgstr "count(*)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.weight + sum(kitten.weight)\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.weight]]>"
+#~ msgstr ""
+#~ "select cat.weight + sum(kitten.weight)\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.weight"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select firstName||' '||initial||' '||upper(lastName) from "
+#~ "Person]]>"
+#~ msgstr "select firstName||' '||initial||' '||upper(lastName) from Person"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select distinct cat.name from Cat cat\n"
+#~ "\n"
+#~ "select count(distinct cat.name), count(cat) from Cat cat]]>"
+#~ msgstr ""
+#~ "select distinct cat.name from Cat cat\n"
+#~ "\n"
+#~ "select count(distinct cat.name), count(cat) from Cat cat"
+
+#, fuzzy
+#~ msgid "<![CDATA[from java.lang.Object o]]>"
+#~ msgstr "from java.lang.Object o"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Named n, Named m where n.name = m.name]]>"
+#~ msgstr "from Named n, Named m where n.name = m.name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat where name='Fritz']]>"
+#~ msgstr "from Cat where name='Fritz'"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat as cat where cat.name='Fritz']]>"
+#~ msgstr "from Cat as cat where cat.name='Fritz'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select foo\n"
+#~ "from Foo foo, Bar bar\n"
+#~ "where foo.startDate = bar.date]]>"
+#~ msgstr ""
+#~ "select foo\n"
+#~ "from Foo foo, Bar bar\n"
+#~ "where foo.startDate = bar.date"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.mate.name is not null]]>"
+#~ msgstr "from Cat cat where cat.mate.name is not null"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Foo foo\n"
+#~ "where foo.bar.baz.customer.address.city is not null]]>"
+#~ msgstr ""
+#~ "from Foo foo\n"
+#~ "where foo.bar.baz.customer.address.city is not null"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat, Cat rival where cat.mate = rival.mate]]>"
+#~ msgstr "from Cat cat, Cat rival where cat.mate = rival.mate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat, mate\n"
+#~ "from Cat cat, Cat mate\n"
+#~ "where cat.mate = mate]]>"
+#~ msgstr ""
+#~ "select cat, mate\n"
+#~ "from Cat cat, Cat mate\n"
+#~ "where cat.mate = mate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat where cat.id = 123\n"
+#~ "\n"
+#~ "from Cat as cat where cat.mate.id = 69]]>"
+#~ msgstr ""
+#~ "from Cat as cat where cat.id = 123\n"
+#~ "\n"
+#~ "from Cat as cat where cat.mate.id = 69"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from bank.Person person\n"
+#~ "where person.id.country = 'AU'\n"
+#~ " and person.id.medicareNumber = 123456]]>"
+#~ msgstr ""
+#~ "from bank.Person person\n"
+#~ "where person.id.country = 'AU'\n"
+#~ " and person.id.medicareNumber = 123456"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from bank.Account account\n"
+#~ "where account.owner.id.country = 'AU'\n"
+#~ " and account.owner.id.medicareNumber = 123456]]>"
+#~ msgstr ""
+#~ "from bank.Account account\n"
+#~ "where account.owner.id.country = 'AU'\n"
+#~ " and account.owner.id.medicareNumber = 123456"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.class = DomesticCat]]>"
+#~ msgstr "from Cat cat where cat.class = DomesticCat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from AuditLog log, Payment payment\n"
+#~ "where log.item.class = 'Payment' and log.item.id = payment.id]]>"
+#~ msgstr ""
+#~ "from AuditLog log, Payment payment\n"
+#~ "where log.item.class = 'Payment' and log.item.id = payment.id"
+
+#, fuzzy
+#~ msgid "<![CDATA[from DomesticCat cat where cat.name between 'A' and 'B']]>"
+#~ msgstr "from DomesticCat cat where cat.name between 'A' and 'B'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )]]>"
+#~ msgstr "from DomesticCat cat where cat.name in ( 'Foo', 'Bar', 'Baz' )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name not between 'A' and 'B']]>"
+#~ msgstr "from DomesticCat cat where cat.name not between 'A' and 'B'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', "
+#~ "'Baz' )]]>"
+#~ msgstr "from DomesticCat cat where cat.name not in ( 'Foo', 'Bar', 'Baz' )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"hibernate.query.substitutions\">true 1, false "
+#~ "0</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"hibernate.query.substitutions\">true 1, false "
+#~ "0</property>"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.alive = true]]>"
+#~ msgstr "from Cat cat where cat.alive = true"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where cat.kittens.size > 0]]>"
+#~ msgstr "from Cat cat where cat.kittens.size > 0"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where size(cat.kittens) > 0]]>"
+#~ msgstr "from Cat cat where size(cat.kittens) > 0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Calendar cal where maxelement(cal.holidays) > current_date]]"
+#~ ">"
+#~ msgstr "from Calendar cal where maxelement(cal.holidays) > current_date"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where maxindex(order.items) > 100]]>"
+#~ msgstr "from Order order where maxindex(order.items) > 100"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where minelement(order.items) > 10000]]>"
+#~ msgstr "from Order order where minelement(order.items) > 10000"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select mother from Cat as mother, Cat as kit\n"
+#~ "where kit in elements(foo.kittens)]]>"
+#~ msgstr ""
+#~ "select mother from Cat as mother, Cat as kit\n"
+#~ "where kit in elements(foo.kittens)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select p from NameList list, Person p\n"
+#~ "where p.name = some elements(list.names)]]>"
+#~ msgstr ""
+#~ "select p from NameList list, Person p\n"
+#~ "where p.name = some elements(list.names)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Cat cat where exists elements(cat.kittens)]]>"
+#~ msgstr "from Cat cat where exists elements(cat.kittens)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Player p where 3 > all elements(p.scores)]]>"
+#~ msgstr "from Player p where 3 > all elements(p.scores)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Show show where 'fizard' in indices(show.acts)]]>"
+#~ msgstr "from Show show where 'fizard' in indices(show.acts)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Order order where order.items[0].id = 1234]]>"
+#~ msgstr "from Order order where order.items[0].id = 1234"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select person from Person person, Calendar calendar\n"
+#~ "where calendar.holidays['national day'] = person.birthDay\n"
+#~ " and person.nationality.calendar = calendar]]>"
+#~ msgstr ""
+#~ "select person from Person person, Calendar calendar\n"
+#~ "where calendar.holidays['national day'] = person.birthDay\n"
+#~ " and person.nationality.calendar = calendar"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
+#~ "11]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ order.deliveredItemIndices[0] ] = item and order.id = "
+#~ "11"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ maxindex(order.items) ] = item and order.id = 11"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item from Item item, Order order\n"
+#~ "where order.items[ size(order.items) - 1 ] = item]]>"
+#~ msgstr ""
+#~ "select item from Item item, Order order\n"
+#~ "where order.items[ size(order.items) - 1 ] = item"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select item, index(item) from Order order\n"
+#~ " join order.items item\n"
+#~ "where index(item) < 5]]>"
+#~ msgstr ""
+#~ "select item, index(item) from Order order\n"
+#~ " join order.items item\n"
+#~ "where index(item) < 5"
+
+#, fuzzy
+#~ msgid "<![CDATA[from DomesticCat cat where upper(cat.name) like 'FRI%']]>"
+#~ msgstr "from DomesticCat cat where upper(cat.name) like 'FRI%'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cust\n"
+#~ "from Product prod,\n"
+#~ " Store store\n"
+#~ " inner join store.customers cust\n"
+#~ "where prod.name = 'widget'\n"
+#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
+#~ " and prod = all elements(cust.currentOrder.lineItems)]]>"
+#~ msgstr ""
+#~ "select cust\n"
+#~ "from Product prod,\n"
+#~ " Store store\n"
+#~ " inner join store.customers cust\n"
+#~ "where prod.name = 'widget'\n"
+#~ " and store.location.name in ( 'Melbourne', 'Sydney' )\n"
+#~ " and prod = all elements(cust.currentOrder.lineItems)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[SELECT cust.name, cust.address, cust.phone, cust.id, cust."
+#~ "current_order\n"
+#~ "FROM customers cust,\n"
+#~ " stores store,\n"
+#~ " locations loc,\n"
+#~ " store_customers sc,\n"
+#~ " product prod\n"
+#~ "WHERE prod.name = 'widget'\n"
+#~ " AND store.loc_id = loc.id\n"
+#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
+#~ " AND sc.store_id = store.id\n"
+#~ " AND sc.cust_id = cust.id\n"
+#~ " AND prod.id = ALL(\n"
+#~ " SELECT item.prod_id\n"
+#~ " FROM line_items item, orders o\n"
+#~ " WHERE item.order_id = o.id\n"
+#~ " AND cust.current_order = o.id\n"
+#~ " )]]>"
+#~ msgstr ""
+#~ "SELECT cust.name, cust.address, cust.phone, cust.id, cust.current_order\n"
+#~ "FROM customers cust,\n"
+#~ " stores store,\n"
+#~ " locations loc,\n"
+#~ " store_customers sc,\n"
+#~ " product prod\n"
+#~ "WHERE prod.name = 'widget'\n"
+#~ " AND store.loc_id = loc.id\n"
+#~ " AND loc.name IN ( 'Melbourne', 'Sydney' )\n"
+#~ " AND sc.store_id = store.id\n"
+#~ " AND sc.cust_id = cust.id\n"
+#~ " AND prod.id = ALL(\n"
+#~ " SELECT item.prod_id\n"
+#~ " FROM line_items item, orders o\n"
+#~ " WHERE item.order_id = o.id\n"
+#~ " AND cust.current_order = o.id\n"
+#~ " )"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat cat\n"
+#~ "order by cat.name asc, cat.weight desc, cat.birthdate]]>"
+#~ msgstr ""
+#~ "from DomesticCat cat\n"
+#~ "order by cat.name asc, cat.weight desc, cat.birthdate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color]]>"
+#~ msgstr ""
+#~ "select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select foo.id, avg(name), max(name)\n"
+#~ "from Foo foo join foo.names name\n"
+#~ "group by foo.id]]>"
+#~ msgstr ""
+#~ "select foo.id, avg(name), max(name)\n"
+#~ "from Foo foo join foo.names name\n"
+#~ "group by foo.id"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color\n"
+#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)]]>"
+#~ msgstr ""
+#~ "select cat.color, sum(cat.weight), count(cat)\n"
+#~ "from Cat cat\n"
+#~ "group by cat.color\n"
+#~ "having cat.color in (eg.Color.TABBY, eg.Color.BLACK)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
+#~ "having avg(kitten.weight) > 100\n"
+#~ "order by count(kitten) asc, sum(kitten.weight) desc]]>"
+#~ msgstr ""
+#~ "select cat\n"
+#~ "from Cat cat\n"
+#~ " join cat.kittens kitten\n"
+#~ "group by cat.id, cat.name, cat.other, cat.properties\n"
+#~ "having avg(kitten.weight) > 100\n"
+#~ "order by count(kitten) asc, sum(kitten.weight) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as fatcat\n"
+#~ "where fatcat.weight > (\n"
+#~ " select avg(cat.weight) from DomesticCat cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as fatcat\n"
+#~ "where fatcat.weight > (\n"
+#~ " select avg(cat.weight) from DomesticCat cat\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat as cat\n"
+#~ "where cat.name = some (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from DomesticCat as cat\n"
+#~ "where cat.name = some (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ "where not exists (\n"
+#~ " from Cat as mate where mate.mate = cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ "where not exists (\n"
+#~ " from Cat as mate where mate.mate = cat\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from DomesticCat as cat\n"
+#~ "where cat.name not in (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from DomesticCat as cat\n"
+#~ "where cat.name not in (\n"
+#~ " select name.nickName from Name as name\n"
+#~ ")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
+#~ "from Cat as cat]]>"
+#~ msgstr ""
+#~ "select cat.id, (select max(kit.weight) from cat.kitten kit)\n"
+#~ "from Cat as cat"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog.effectiveDate < sysdate\n"
+#~ " and catalog.effectiveDate >= all (\n"
+#~ " select cat.effectiveDate\n"
+#~ " from Catalog as cat\n"
+#~ " where cat.effectiveDate < sysdate\n"
+#~ " )\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc]]>"
+#~ msgstr ""
+#~ "select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog.effectiveDate < sysdate\n"
+#~ " and catalog.effectiveDate >= all (\n"
+#~ " select cat.effectiveDate\n"
+#~ " from Catalog as cat\n"
+#~ " where cat.effectiveDate < sysdate\n"
+#~ " )\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog = :currentCatalog\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc]]>"
+#~ msgstr ""
+#~ "select order.id, sum(price.amount), count(item)\n"
+#~ "from Order as order\n"
+#~ " join order.lineItems as item\n"
+#~ " join item.product as product,\n"
+#~ " Catalog as catalog\n"
+#~ " join catalog.prices as price\n"
+#~ "where order.paid = false\n"
+#~ " and order.customer = :customer\n"
+#~ " and price.product = product\n"
+#~ " and catalog = :currentCatalog\n"
+#~ "group by order\n"
+#~ "having sum(price.amount) > :minAmount\n"
+#~ "order by sum(price.amount) desc"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ " join payment.statusChanges as statusChange\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or (\n"
+#~ " statusChange.timeStamp = (\n"
+#~ " select max(change.timeStamp)\n"
+#~ " from PaymentStatusChange change\n"
+#~ " where change.payment = payment\n"
+#~ " )\n"
+#~ " and statusChange.user <> :currentUser\n"
+#~ " )\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder]]>"
+#~ msgstr ""
+#~ "select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ " join payment.statusChanges as statusChange\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or (\n"
+#~ " statusChange.timeStamp = (\n"
+#~ " select max(change.timeStamp)\n"
+#~ " from PaymentStatusChange change\n"
+#~ " where change.payment = payment\n"
+#~ " )\n"
+#~ " and statusChange.user <> :currentUser\n"
+#~ " )\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <> :"
+#~ "currentUser\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder]]>"
+#~ msgstr ""
+#~ "select count(payment), status.name\n"
+#~ "from Payment as payment\n"
+#~ " join payment.currentStatus as status\n"
+#~ "where payment.status.name <> PaymentStatus.AWAITING_APPROVAL\n"
+#~ " or payment.statusChanges[ maxIndex(payment.statusChanges) ].user <"
+#~ "> :currentUser\n"
+#~ "group by status.name, status.sortOrder\n"
+#~ "order by status.sortOrder"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select account, payment\n"
+#~ "from Account as account\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser in elements(account.holder.users)\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
+#~ msgstr ""
+#~ "select account, payment\n"
+#~ "from Account as account\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser in elements(account.holder.users)\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select account, payment\n"
+#~ "from Account as account\n"
+#~ " join account.holder.users as user\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser = user\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate]]>"
+#~ msgstr ""
+#~ "select account, payment\n"
+#~ "from Account as account\n"
+#~ " join account.holder.users as user\n"
+#~ " left outer join account.payments as payment\n"
+#~ "where :currentUser = user\n"
+#~ " and PaymentStatus.UNPAID = isNull(payment.currentStatus.name, "
+#~ "PaymentStatus.UNPAID)\n"
+#~ "order by account.type.sortOrder, account.accountNumber, payment.dueDate"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
+#~ "iterate().next() ).intValue()]]>"
+#~ msgstr ""
+#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
+#~ "intValue()"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "order by count(msg)]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "order by count(msg)"
+
+#, fuzzy
+#~ msgid "<![CDATA[from User usr where size(usr.messages) >= 1]]>"
+#~ msgstr "from User usr where size(usr.messages) >= 1"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User usr.name\n"
+#~ " join usr.messages msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) >= 1]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User usr.name\n"
+#~ " join usr.messages msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) >= 1"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) = 0]]>"
+#~ msgstr ""
+#~ "select usr.id, usr.name\n"
+#~ "from User as usr\n"
+#~ " left join usr.messages as msg\n"
+#~ "group by usr.id, usr.name\n"
+#~ "having count(msg) = 0"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = s.createQuery(\"from foo Foo as foo where foo.name=:"
+#~ "name and foo.size=:size\");\n"
+#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
+#~ "List foos = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = s.createQuery(\"from foo Foo as foo where foo.name=:name and "
+#~ "foo.size=:size\");\n"
+#~ "q.setProperties(fooBean); // fooBean has getName() and getSize()\n"
+#~ "List foos = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query q = s.createFilter( collection, \"\" ); // the trivial "
+#~ "filter\n"
+#~ "q.setMaxResults(PAGE_SIZE);\n"
+#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
+#~ "List page = q.list();]]>"
+#~ msgstr ""
+#~ "Query q = s.createFilter( collection, \"\" ); // the trivial filter\n"
+#~ "q.setMaxResults(PAGE_SIZE);\n"
+#~ "q.setFirstResult(PAGE_SIZE * pageNumber);\n"
+#~ "List page = q.list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Collection orderedCollection = s.filter( collection, \"order by "
+#~ "this.amount\" );\n"
+#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
+#~ "group by this.type\" );]]>"
+#~ msgstr ""
+#~ "Collection orderedCollection = s.filter( collection, \"order by this."
+#~ "amount\" );\n"
+#~ "Collection counts = s.filter( collection, \"select this.type, count(this) "
+#~ "group by this.type\" );"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[( (Integer) session.createQuery(\"select count(*) from ....\")."
+#~ "iterate().next() ).intValue();]]>"
+#~ msgstr ""
+#~ "( (Integer) session.iterate(\"select count(*) from ....\").next() )."
+#~ "intValue();"
+
+#, fuzzy
+#~ msgid "<![CDATA[select p.name from Person p]]>"
+#~ msgstr "select p.name from from Person p"
+
+#, fuzzy
+#~ msgid "<![CDATA[select p.name.first from Person p]]>"
+#~ msgstr "select p.name.first from from Person p"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p where p.name = :name]]>"
+#~ msgstr "from from Person p where p.name = :name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p where p.name.first = :firstName]]>"
+#~ msgstr "from from Person p where p.name.first = :firstName"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p order by p.name]]>"
+#~ msgstr "from from Person p order by p.name"
+
+#, fuzzy
+#~ msgid "<![CDATA[from Person p order by p.name.first]]>"
+#~ msgstr "from from Person p order by p.name.first"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Person p where p.name.first='John' and p.name."
+#~ "last='Jingleheimer-Schmidt']]>"
+#~ msgstr ""
+#~ "from Person p where p.name.first='John' and p.name.last='Jingleheimer-"
+#~ "Schmidt'"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Person p where p.name=('John', 'Jingleheimer-Schmidt')]]>"
+#~ msgstr "from Person p where p.name=('John', 'Jingleheimer-Schmidt')"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[from Cat as cat\n"
+#~ "where not ( cat.name, cat.color ) in (\n"
+#~ " select cat.name, cat.color from DomesticCat cat\n"
+#~ ")]]>"
+#~ msgstr ""
+#~ "from Cat as cat\n"
+#~ "where not ( cat.name, cat.color ) in (\n"
+#~ " select cat.name, cat.color from DomesticCat cat\n"
+#~ ")"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_sql.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_sql.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/query_sql.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,26 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:15\n"
+"PO-Revision-Date: 2010-01-11 10:42+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: query_sql.xml:29
#, no-c-format
msgid "Native SQL"
-msgstr "Native SQLæ¥è¯¢"
+msgstr "Native SQL æ¥è¯¢"
#. Tag: para
-#: query_sql.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also express queries in the native SQL dialect of your database. "
"This is useful if you want to utilize database-specific features such as "
@@ -26,123 +28,85 @@
"provides a clean migration path from a direct SQL/JDBC based application to "
"Hibernate."
msgstr ""
-"ä½ ä¹å¯ä»¥ä½¿ç¨ä½ çæ°æ®åºçNative SQLè¯è¨æ¥æ¥è¯¢æ°æ®ãè¿å¯¹ä½ å¨è¦ä½¿ç¨æ°æ®åºçæäº"
-"ç¹æ§çæ¶å(æ¯å¦è¯´å¨æ¥è¯¢æç¤ºæè
Oracleä¸ç <literal>CONNECT</literal>å
³é®å)ï¼"
-"è¿æ¯é常æç¨çãè¿å°±è½å¤æ«æ¸
ä½ æåæ¥ç´æ¥ä½¿ç¨SQL/JDBC çç¨åºè¿ç§»å°åºäº "
-"Hibernateåºç¨çéè·¯ä¸çéç¢ã"
+"ä½ ä¹å¯ä»¥ä½¿ç¨ä½ çæ°æ®åºç Native SQL è¯è¨æ¥æ¥è¯¢æ°æ®ãè¿å¯¹ä½ å¨è¦ä½¿ç¨æ°æ®åºçæ"
+"äºç¹æ§çæ¶åï¼æ¯å¦è¯´å¨æ¥è¯¢æç¤ºæè
Oracle ä¸ç <literal>CONNECT</literal> å
³"
+"é®åï¼ï¼è¿æ¯é常æç¨çãè¿å°±è½å¤æ«æ¸
ä½ æåæ¥ç´æ¥ä½¿ç¨ SQL/JDBC çç¨åºè¿ç§»å°åº"
+"äº Hibernate åºç¨çéè·¯ä¸çéç¢ã "
#. Tag: para
-#: query_sql.xml:37
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 allows you to specify handwritten SQL, including stored "
"procedures, for all create, update, delete, and load operations."
msgstr ""
-"Hibernate3å
è®¸ä½ ä½¿ç¨æåçsqlæ¥å®æææçcreate,update,delete,åloadæä½ï¼å
"
-"æ¬åå¨è¿ç¨ï¼"
+"Hibernate3 å
è®¸ä½ ä½¿ç¨æåç sql æ¥å®æææç createãupdateãdelete å load "
+"æä½ï¼å
æ¬åå¨è¿ç¨ï¼ "
#. Tag: title
-#: query_sql.xml:41
#, no-c-format
msgid "Using a <literal>SQLQuery</literal>"
-msgstr "使ç¨<literal>SQLQuery</literal>"
+msgstr "ä½¿ç¨ <literal>SQLQuery</literal>"
#. Tag: para
-#: query_sql.xml:43
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Execution of native SQL queries is controlled via the <literal>SQLQuery</"
"literal> interface, which is obtained by calling <literal>Session."
"createSQLQuery()</literal>. The following sections describe how to use this "
"API for querying."
msgstr ""
-"对åçSQLæ¥è¯¢æ§è¡çæ§å¶æ¯éè¿<literal>SQLQuery</literal>æ¥å£è¿è¡çï¼éè¿æ§è¡"
-"<literal>Session.createSQLQuery()</literal>è·åè¿ä¸ªæ¥å£ãä¸é¢æ¥æè¿°å¦ä½ä½¿ç¨è¿"
-"个APIè¿è¡æ¥è¯¢ã"
+"对åç SQL æ¥è¯¢æ§è¡çæ§å¶æ¯éè¿ <literal>SQLQuery</literal> æ¥å£è¿è¡çï¼éè¿"
+"æ§è¡<literal>Session.createSQLQuery()</literal>è·åè¿ä¸ªæ¥å£ãä¸é¢æ¥æè¿°å¦ä½ä½¿"
+"ç¨è¿ä¸ª API è¿è¡æ¥è¯¢ã "
#. Tag: title
-#: query_sql.xml:49
#, no-c-format
msgid "Scalar queries"
msgstr "æ éæ¥è¯¢ï¼Scalar queriesï¼"
#. Tag: para
-#: query_sql.xml:51
#, no-c-format
msgid "The most basic SQL query is to get a list of scalars (values)."
-msgstr "æåºæ¬çSQLæ¥è¯¢å°±æ¯è·å¾ä¸ä¸ªæ éï¼æ°å¼ï¼çå表ã"
+msgstr "æåºæ¬ç SQL æ¥è¯¢å°±æ¯è·å¾ä¸ä¸ªæ éï¼æ°å¼ï¼çå表ã"
-#. Tag: programlisting
-#: query_sql.xml:54
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:56
-#, fuzzy, no-c-format
-msgid ""
"These will return a List of Object arrays (Object[]) with scalar values for "
"each column in the CATS table. Hibernate will use ResultSetMetadata to "
"deduce the actual order and types of the returned scalar values."
msgstr ""
-"å®ä»¬é½å°è¿åä¸ä¸ªObjectæ°ç»(Object[])ç»æçListï¼æ°ç»æ¯ä¸ªå
ç´ é½æ¯CATS表çä¸ä¸ª"
-"åæ®µå¼ãHibernateä¼ä½¿ç¨ResultSetMetadataæ¥å¤å®è¿åçæ éå¼çå®é
顺åºåç±»åã"
+"å®ä»¬é½å°è¿åä¸ä¸ª Object æ°ç»ï¼Object[]ï¼ç»æç Listï¼æ°ç»æ¯ä¸ªå
ç´ é½æ¯ CATS 表"
+"çä¸ä¸ªå段å¼ãHibernate ä¼ä½¿ç¨ ResultSetMetadata æ¥å¤å®è¿åçæ éå¼çå®é
顺åº"
+"åç±»åã "
#. Tag: para
-#: query_sql.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"To avoid the overhead of using <literal>ResultSetMetadata</literal>, or "
"simply to be more explicit in what is returned, one can use "
"<literal>addScalar()</literal>:"
msgstr ""
-"妿è¦é¿å
è¿å¤ç使ç¨<literal>ResultSetMetadata</literal>,æè
åªæ¯ä¸ºäºæ´å æç¡®"
-"çæåè¿åå¼ï¼å¯ä»¥ä½¿ç¨<literal>addScalar()</literal>ã"
+"妿è¦é¿å
è¿å¤çä½¿ç¨ <literal>ResultSetMetadata</literal>ï¼æè
åªæ¯ä¸ºäºæ´å æ"
+"ç¡®çæåè¿åå¼ï¼å¯ä»¥ä½¿ç¨ <literal>addScalar()</literal>ï¼ "
-#. Tag: programlisting
-#: query_sql.xml:65
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\", Hibernate.STRING)\n"
-" .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:67 query_sql.xml:113 query_sql.xml:198 query_sql.xml:349
-#, fuzzy, no-c-format
msgid "This query specified:"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"è¿ä¸ªæ¥è¯¢æå®äº:\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"è¿ä¸ªæ¥è¯¢æå®ï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"è¿ä¸ªæ¥è¯¢ææï¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"è¿ä¸ªæ¥è¯¢æå®ï¼"
+msgstr "è¿ä¸ªæ¥è¯¢æå®ï¼"
#. Tag: para
-#: query_sql.xml:71 query_sql.xml:117 query_sql.xml:353
#, no-c-format
msgid "the SQL query string"
-msgstr "SQLæ¥è¯¢å符串"
+msgstr "SQL æ¥è¯¢å符串"
#. Tag: para
-#: query_sql.xml:75
#, no-c-format
msgid "the columns and types to return"
msgstr "è¦è¿åçåæ®µåç±»å"
#. Tag: para
-#: query_sql.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This will return Object arrays, but now it will not use "
"<literal>ResultSetMetadata</literal> but will instead explicitly get the ID, "
@@ -151,62 +115,47 @@
"be returned, even though the query is using <literal>*</literal> and could "
"return more than the three listed columns."
msgstr ""
-"å®ä»ç¶ä¼è¿åObjectæ°ç»,使¯æ¤æ¶ä¸å使ç¨<literal>ResultSetMetdata</literal>,è"
-"æ¯æç¡®çå°ID,NAMEåBIRTHDATEæç
§Long,StringåShortç±»åä»resultsetä¸ååºãå"
-"æ¶ï¼ä¹ææäºå°±ç®queryæ¯ä½¿ç¨<literal>*</literal>æ¥æ¥è¯¢çï¼å¯è½è·å¾è¶
è¿ååºçè¿"
-"ä¸ä¸ªå段ï¼ä¹ä»
ä»
ä¼è¿åè¿ä¸ä¸ªå段ã"
+"å®ä»ç¶ä¼è¿å Object æ°ç»,使¯æ¤æ¶ä¸åä½¿ç¨ <literal>ResultSetMetdata</"
+"literal>ï¼èæ¯æç¡®çå° IDï¼NAME å BIRTHDATE æç
§ Longï¼String å Short ç±»å"
+"ä» resultset ä¸ååºãåæ¶ï¼ä¹ææäºå°±ç® query æ¯ä½¿ç¨ <literal>*</literal> æ¥"
+"æ¥è¯¢çï¼å¯è½è·å¾è¶
è¿ååºçè¿ä¸ä¸ªå段ï¼ä¹ä»
ä»
ä¼è¿åè¿ä¸ä¸ªå段ã "
#. Tag: para
-#: query_sql.xml:87
#, no-c-format
msgid ""
"It is possible to leave out the type information for all or some of the "
"scalars."
msgstr "对å
¨é¨æè
é¨åçæ éå¼ä¸è®¾ç½®ç±»åä¿¡æ¯ä¹æ¯å¯ä»¥çã"
-#. Tag: programlisting
-#: query_sql.xml:90
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
-" .addScalar(\"ID\", Hibernate.LONG)\n"
-" .addScalar(\"NAME\")\n"
-" .addScalar(\"BIRTHDATE\")\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:92
-#, fuzzy, no-c-format
-msgid ""
"This is essentially the same query as before, but now "
"<literal>ResultSetMetaData</literal> is used to determine the type of NAME "
"and BIRTHDATE, where as the type of ID is explicitly specified."
msgstr ""
-"åºæ¬ä¸è¿ååé¢ä¸ä¸ªæ¥è¯¢ç¸å,åªæ¯æ¤æ¶ä½¿ç¨<literal>ResultSetMetaData</literal>æ¥"
-"å³å®NAMEåBIRTHDATEçç±»åï¼èIDçç±»åæ¯æç¡®æåºçã"
+"åºæ¬ä¸è¿ååé¢ä¸ä¸ªæ¥è¯¢ç¸å,åªæ¯æ¤æ¶ä½¿ç¨ <literal>ResultSetMetaData</literal> "
+"æ¥å³å® NAME å BIRTHDATE çç±»åï¼è ID çç±»åæ¯æç¡®æåºçã "
#. Tag: para
-#: query_sql.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"How the java.sql.Types returned from ResultSetMetaData is mapped to "
"Hibernate types is controlled by the Dialect. If a specific type is not "
"mapped, or does not result in the expected type, it is possible to customize "
"it via calls to <literal>registerHibernateType</literal> in the Dialect."
msgstr ""
-"å
³äºä»ResultSetMetaDataè¿åçjava.sql.Typesæ¯å¦ä½æ å°å°Hibernateç±»åï¼æ¯ç±æ¹"
-"è¨(Dialect)æ§å¶çãåè¥æä¸ªæå®çç±»åæ²¡æè¢«æ å°ï¼æè
䏿¯ä½ æé¢æçç±»åï¼ä½ å¯"
-"以éè¿Dialetç<literal>registerHibernateType</literal>è°ç¨èªè¡å®ä¹ã"
+"å
³äºä» ResultSetMetaData è¿åç java.sql.Types æ¯å¦ä½æ å°å° Hibernate ç±»åï¼"
+"æ¯ç±æ¹è¨ï¼Dialectï¼æ§å¶çãåè¥æä¸ªæå®çç±»åæ²¡æè¢«æ å°ï¼æè
䏿¯ä½ æé¢æçç±»"
+"åï¼ä½ å¯ä»¥éè¿ Dialet ç <literal>registerHibernateType</literal> è°ç¨èªè¡å®"
+"ä¹ã "
#. Tag: title
-#: query_sql.xml:104
#, no-c-format
msgid "Entity queries"
-msgstr "å®ä½æ¥è¯¢(Entity queries)"
+msgstr "å®ä½æ¥è¯¢ï¼Entity queriesï¼"
#. Tag: para
-#: query_sql.xml:106
#, no-c-format
msgid ""
"The above queries were all about returning scalar values, basically "
@@ -214,38 +163,25 @@
"get entity objects from a native sql query via <literal>addEntity()</"
"literal>."
msgstr ""
-"ä¸é¢çæ¥è¯¢é½æ¯è¿åæ éå¼çï¼ä¹å°±æ¯ä»resultsetä¸è¿åçâè£¸âæ°æ®ãä¸é¢å±ç¤ºå¦ä½é"
-"è¿<literal>addEntity()</literal>让åçæ¥è¯¢è¿åå®ä½å¯¹è±¡ã"
+"ä¸é¢çæ¥è¯¢é½æ¯è¿åæ éå¼çï¼ä¹å°±æ¯ä» resultset ä¸è¿åçâè£¸âæ°æ®ãä¸é¢å±ç¤ºå¦ä½"
+"éè¿ <literal>addEntity()</literal> 让åçæ¥è¯¢è¿åå®ä½å¯¹è±¡ã"
-#. Tag: programlisting
-#: query_sql.xml:111
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
-"sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity(Cat."
-"class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:121
#, no-c-format
msgid "the entity returned by the query"
msgstr "è¦è¿åçå®ä½"
#. Tag: para
-#: query_sql.xml:125
#, no-c-format
msgid ""
"Assuming that Cat is mapped as a class with the columns ID, NAME and "
"BIRTHDATE the above queries will both return a List where each element is a "
"Cat entity."
msgstr ""
-"å设Cat被æ å°ä¸ºæ¥æID,NAMEåBIRTHDATEä¸ä¸ªå段çç±»ï¼ä»¥ä¸ç两个æ¥è¯¢é½è¿åä¸ä¸ª"
-"Listï¼æ¯ä¸ªå
ç´ é½æ¯ä¸ä¸ªCatå®ä½ã"
+"å设 Cat 被æ å°ä¸ºæ¥æ IDï¼NAME å BIRTHDATE ä¸ä¸ªå段çç±»ï¼ä»¥ä¸ç两个æ¥è¯¢é½è¿"
+"åä¸ä¸ª Listï¼æ¯ä¸ªå
ç´ é½æ¯ä¸ä¸ª Cat å®ä½ã"
#. Tag: para
-#: query_sql.xml:129
#, no-c-format
msgid ""
"If the entity is mapped with a <literal>many-to-one</literal> to another "
@@ -255,34 +191,23 @@
"but we prefer to be explicit as in the following example for a <literal>many-"
"to-one</literal> to a <literal>Dog</literal>:"
msgstr ""
-"åè¥å®ä½å¨æ å°æ¶æä¸ä¸ª<literal>many-to-one</literal>çå
³èæåå¦å¤ä¸ä¸ªå®ä½ï¼"
-"卿¥è¯¢æ¶å¿
é¡»ä¹è¿åé£ä¸ªå®ä½ï¼å¦åä¼å¯¼è´åçä¸ä¸ª\"column not found\"çæ°æ®åºé"
-"误ãè¿äºéå çåæ®µå¯ä»¥ä½¿ç¨*æ æ³¨æ¥èªå¨è¿åï¼ä½æä»¬å¸æè¿æ¯æç¡®ææï¼çä¸é¢è¿ä¸ª"
-"å
·ææå<literal>Dog</literal>ç<literal>many-to-one</literal>çä¾åï¼"
+"åè¥å®ä½å¨æ å°æ¶æä¸ä¸ª <literal>many-to-one</literal> çå
³èæåå¦å¤ä¸ä¸ªå®"
+"ä½ï¼å¨æ¥è¯¢æ¶å¿
é¡»ä¹è¿åé£ä¸ªå®ä½ï¼å¦åä¼å¯¼è´åçä¸ä¸ª \"column not found\" çæ°"
+"æ®åºé误ãè¿äºéå çåæ®µå¯ä»¥ä½¿ç¨ * æ æ³¨æ¥èªå¨è¿åï¼ä½æä»¬å¸æè¿æ¯æç¡®ææï¼ç"
+"ä¸é¢è¿ä¸ªå
·ææå <literal>Dog</literal> ç <literal>many-to-one</literal> ç"
+"ä¾åï¼"
-#. Tag: programlisting
-#: query_sql.xml:137
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS"
-"\").addEntity(Cat.class);\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:139
#, no-c-format
msgid "This will allow cat.getDog() to function properly."
-msgstr "è¿æ ·cat.getDog()å°±è½æ£å¸¸è¿ä½ã"
+msgstr "è¿æ · cat.getDog() å°±è½æ£å¸¸è¿ä½ã"
#. Tag: title
-#: query_sql.xml:143
#, no-c-format
msgid "Handling associations and collections"
-msgstr "å¤çå
³èåéåç±»(Handling associations and collections)"
+msgstr "å¤çå
³èåéåç±»ï¼Handling associations and collectionsï¼"
#. Tag: para
-#: query_sql.xml:145
#, no-c-format
msgid ""
"It is possible to eagerly join in the <literal>Dog</literal> to avoid the "
@@ -290,25 +215,13 @@
"<literal>addJoin()</literal> method, which allows you to join in an "
"association or collection."
msgstr ""
-"éè¿æåæåå°<literal>Dog</literal>è¿æ¥è·å¾ï¼èé¿å
åå§åproxy带æ¥çé¢å¤å¼é"
-"乿¯å¯è½çãè¿æ¯éè¿<literal>addJoin()</literal>æ¹æ³è¿è¡çï¼è¿ä¸ªæ¹æ³å¯ä»¥è®©ä½ "
-"å°å
³èæéåè¿æ¥è¿æ¥ã"
+"éè¿æåæåå° <literal>Dog</literal> è¿æ¥è·å¾ï¼èé¿å
åå§å proxy 带æ¥çé¢å¤"
+"å¼é乿¯å¯è½çãè¿æ¯éè¿ <literal>addJoin()</literal> æ¹æ³è¿è¡çï¼è¿ä¸ªæ¹æ³å¯"
+"ä»¥è®©ä½ å°å
³èæéåè¿æ¥è¿æ¥ã"
-#. Tag: programlisting
-#: query_sql.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, "
-"D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dog\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:152
-#, fuzzy, no-c-format
-msgid ""
"In this example, the returned <literal>Cat</literal>'s will have their "
"<literal>dog</literal> property fully initialized without any extra "
"roundtrip to the database. Notice that you added an alias name (\"cat\") to "
@@ -316,76 +229,50 @@
"do the same eager joining for collections, e.g. if the <literal>Cat</"
"literal> had a one-to-many to <literal>Dog</literal> instead."
msgstr ""
-"ä¸é¢è¿ä¸ªä¾åä¸ï¼è¿åç<literal>Cat</literal>对象ï¼å
¶<literal>dog</literal>å±"
-"æ§è¢«å®å
¨åå§åäºï¼ä¸åéè¦æ°æ®åºçé¢å¤æä½ã注æï¼æä»¬å äºä¸ä¸ªå«å(\"cat\")ï¼"
-"以便ææjoinçç®æ 屿§è·¯å¾ãéè¿åæ ·çæåè¿æ¥ä¹å¯ä»¥ä½ç¨äºéåç±»ï¼ä¾å¦ï¼åè¥"
-"<literal>Cat</literal>æä¸ä¸ªæå<literal>Dog</literal>çä¸å¯¹å¤å
³èã"
+"ä¸é¢è¿ä¸ªä¾åä¸ï¼è¿åç <literal>Cat</literal> 对象ï¼å
¶ <literal>dog</"
+"literal> 屿§è¢«å®å
¨åå§åäºï¼ä¸åéè¦æ°æ®åºçé¢å¤æä½ã注æï¼æä»¬å äºä¸ä¸ªå«å"
+"ï¼\"cat\"ï¼ï¼ä»¥ä¾¿ææ join çç®æ 屿§è·¯å¾ãéè¿åæ ·çæåè¿æ¥ä¹å¯ä»¥ä½ç¨äºéå"
+"ç±»ï¼ä¾å¦ï¼åè¥ <literal>Cat</literal> æä¸ä¸ªæå <literal>Dog</literal> çä¸"
+"对å¤å
³èã "
-#. Tag: programlisting
-#: query_sql.xml:160
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
-"CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addJoin(\"cat.dogs\");\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:162
-#, fuzzy, no-c-format
-msgid ""
"At this stage you are reaching the limits of what is possible with native "
"queries, without starting to enhance the sql queries to make them usable in "
"Hibernate. Problems can arise when returning multiple entities of the same "
"type or when the default alias/column names are not enough."
msgstr ""
-"å°æ¤ä¸ºæ¢ï¼æä»¬ç¢°å°äºå¤©è±æ¿ï¼è¥ä¸å¯¹SQLæ¥è¯¢è¿è¡å¢å¼ºï¼è¿äºå·²ç»æ¯å¨Hibernateä¸ä½¿"
-"ç¨åçSQLæ¥è¯¢æè½åå°çæå¤§å¯è½äºãä¸é¢çé®é¢å³å°åºç°ï¼è¿åå¤ä¸ªåæ ·ç±»åçå®ä½"
-"æä¹åï¼æè
é»è®¤çå«å/åæ®µä¸å¤åæä¹åï¼"
+"å°æ¤ä¸ºæ¢ï¼æä»¬ç¢°å°äºå¤©è±æ¿ï¼è¥ä¸å¯¹ SQL æ¥è¯¢è¿è¡å¢å¼ºï¼è¿äºå·²ç»æ¯å¨ Hibernate "
+"ä¸ä½¿ç¨åç SQL æ¥è¯¢æè½åå°çæå¤§å¯è½äºãä¸é¢çé®é¢å³å°åºç°ï¼è¿åå¤ä¸ªåæ ·ç±»å"
+"çå®ä½æä¹åï¼æè
é»è®¤çå«åï¼å段ä¸å¤åæä¹åï¼ "
#. Tag: title
-#: query_sql.xml:170
#, no-c-format
msgid "Returning multiple entities"
-msgstr "è¿åå¤ä¸ªå®ä½(Returning multiple entities)"
+msgstr "è¿åå¤ä¸ªå®ä½ï¼Returning multiple entitiesï¼"
#. Tag: para
-#: query_sql.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Until now, the result set column names are assumed to be the same as the "
"column names specified in the mapping document. This can be problematic for "
"SQL queries that join multiple tables, since the same column names can "
"appear in more than one table."
msgstr ""
-"å°ç®å为æ¢,ç»æéåæ®µå被åå®ä¸ºåæ 尿件䏿å®ççåæ®µåæ¯ä¸è´çãåè¥SQLæ¥"
-"è¯¢è¿æ¥äºå¤ä¸ªè¡¨ï¼åä¸ä¸ªå段åå¯è½å¨å¤ä¸ªè¡¨ä¸åºç°å¤æ¬¡ï¼è¿å°±ä¼é æé®é¢ã"
+"å°ç®å为æ¢,ç»æéåæ®µå被åå®ä¸ºåæ 尿件䏿å®ççåæ®µåæ¯ä¸è´çãåè¥ SQL "
+"æ¥è¯¢è¿æ¥äºå¤ä¸ªè¡¨ï¼åä¸ä¸ªå段åå¯è½å¨å¤ä¸ªè¡¨ä¸åºç°å¤æ¬¡ï¼è¿å°±ä¼é æé®é¢ã "
#. Tag: para
-#: query_sql.xml:177
#, no-c-format
msgid ""
"Column alias injection is needed in the following query (which most likely "
"will fail):"
msgstr "ä¸é¢çæ¥è¯¢ä¸éè¦ä½¿ç¨å段å«å注å°ï¼è¿ä¸ªä¾åæ¬èº«ä¼å¤±è´¥ï¼ï¼"
-#. Tag: programlisting
-#: query_sql.xml:180
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
-"MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:184
-#, fuzzy, no-c-format
-msgid ""
"The query was intended to return two Cat instances per row: a cat and its "
"mother. The query will, however, fail because there is a conflict of names; "
"the instances are mapped to the same column names. Also, on some databases "
@@ -393,45 +280,30 @@
"NAME\", etc. which are not equal to the columns specified in the mappings "
"(\"ID\" and \"NAME\")."
msgstr ""
-"è¿ä¸ªæ¥è¯¢çæ¬ææ¯å¸ææ¯è¡è¿å两个Catå®ä¾ï¼ä¸ä¸ªæ¯cat,å¦ä¸ä¸ªæ¯å®çå¦å¦ã使¯å 为"
-"å®ä»¬çåæ®µå被æ å°ä¸ºç¸åçï¼èä¸å¨æäºæ°æ®åºä¸ï¼è¿åçåæ®µå«åæ¯âc.IDâ,\"c."
-"NAME\"è¿æ ·çå½¢å¼ï¼èå®ä»¬å卿 å°æä»¶ä¸çååï¼\"ID\"å\"NAME\"ï¼ä¸å¹é
ï¼è¿å°±"
-"ä¼é æå¤±è´¥ã"
+"è¿ä¸ªæ¥è¯¢çæ¬ææ¯å¸ææ¯è¡è¿å两个 Cat å®ä¾ï¼ä¸ä¸ªæ¯ cat,å¦ä¸ä¸ªæ¯å®çå¦å¦ã使¯"
+"å 为å®ä»¬çåæ®µå被æ å°ä¸ºç¸åçï¼èä¸å¨æäºæ°æ®åºä¸ï¼è¿åçåæ®µå«åæ¯âc.IDâï¼"
+"\"c.NAME\" è¿æ ·çå½¢å¼ï¼èå®ä»¬å卿 å°æä»¶ä¸çååï¼\"ID\" å \"NAME\"ï¼ä¸å¹"
+"é
ï¼è¿å°±ä¼é æå¤±è´¥ã "
#. Tag: para
-#: query_sql.xml:193
#, no-c-format
msgid "The following form is not vulnerable to column name duplication:"
msgstr "ä¸é¢çå½¢å¼å¯ä»¥è§£å³å段åéå¤ï¼"
-#. Tag: programlisting
-#: query_sql.xml:196
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS "
-"m WHERE c.MOTHER_ID = c.ID\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class)\n"
-"]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:202
#, no-c-format
msgid ""
"the SQL query string, with placeholders for Hibernate to inject column "
"aliases"
-msgstr "SQLæ¥è¯¢è¯å¥ï¼å
¶ä¸å
å«å ä½éæ¥è®©Hibernate注å°å段å«å"
+msgstr "SQL æ¥è¯¢è¯å¥ï¼å
¶ä¸å
å«å ä½éæ¥è®© Hibernate 注å°å段å«å"
#. Tag: para
-#: query_sql.xml:207
#, no-c-format
msgid "the entities returned by the query"
msgstr "æ¥è¯¢è¿åçå®ä½"
#. Tag: para
-#: query_sql.xml:211
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The {cat.*} and {mother.*} notation used above is a shorthand for \"all "
"properties\". Alternatively, you can list the columns explicitly, but even "
@@ -441,36 +313,19 @@
"from a different table (cat_log) to the one declared in the mapping "
"metadata. You can even use the property aliases in the where clause."
msgstr ""
-"ä¸é¢ä½¿ç¨ç{cat.*}å{mother.*}æ è®°æ¯ä½ä¸ºâææå±æ§âçç®åå½¢å¼åºç°çãå½ç¶ä½ ä¹å¯"
-"以æç¡®å°ç½ååºå段åï¼ä½å¨è¿ä¸ªä¾åéé¢æä»¬è®©Hibernateæ¥ä¸ºæ¯ä¸ªå±æ§æ³¨å°SQLåæ®µ"
-"å«åãåæ®µå«åçå ä½ç¬¦æ¯å±æ§åå ä¸è¡¨å«åçåç¼ãå¨ä¸é¢çä¾åä¸ï¼æä»¬ä»å¦å¤ä¸"
-"个表ï¼cat_logï¼ä¸éè¿æ å°å
æ°æ®ä¸çæå®è·åCatåå®çå¦å¦ã注æï¼è¦æ¯æä»¬æ¿"
-"æï¼æä»¬çè³å¯ä»¥å¨whereåå¥ä¸ä½¿ç¨å±æ§å«åã"
+"ä¸é¢ä½¿ç¨ç {cat.*} å {mother.*} æ è®°æ¯ä½ä¸ºâææå±æ§âçç®åå½¢å¼åºç°çãå½ç¶ä½ "
+"ä¹å¯ä»¥æç¡®å°ç½ååºå段åï¼ä½å¨è¿ä¸ªä¾åéé¢æä»¬è®© Hibernate æ¥ä¸ºæ¯ä¸ªå±æ§æ³¨å° "
+"SQL åæ®µå«åãåæ®µå«åçå ä½ç¬¦æ¯å±æ§åå ä¸è¡¨å«åçåç¼ãå¨ä¸é¢çä¾åä¸ï¼æä»¬"
+"ä»å¦å¤ä¸ä¸ªè¡¨ï¼cat_logï¼ä¸éè¿æ å°å
æ°æ®ä¸çæå®è·å Cat åå®çå¦å¦ã注æï¼è¦"
+"æ¯æä»¬æ¿æï¼æä»¬çè³å¯ä»¥å¨ where åå¥ä¸ä½¿ç¨å±æ§å«åã "
-#. Tag: programlisting
-#: query_sql.xml:220
-#, no-c-format
-msgid ""
-"<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
-" \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother.*} "
-"\" +\n"
-" \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
-"\n"
-"List loggedCats = sess.createSQLQuery(sql)\n"
-" .addEntity(\"cat\", Cat.class)\n"
-" .addEntity(\"mother\", Cat.class).list()\n"
-"]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:223
#, no-c-format
msgid "Alias and property references"
-msgstr "å«åå屿§å¼ç¨(Alias and property references)"
+msgstr "å«åå屿§å¼ç¨ï¼Alias and property referencesï¼"
#. Tag: para
-#: query_sql.xml:225
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In most cases the above alias injection is needed. For queries relating to "
"more complex mappings, like composite properties, inheritance "
@@ -478,12 +333,11 @@
"Hibernate to inject the proper aliases."
msgstr ""
"大夿°æ
åµä¸ï¼é½éè¦ä¸é¢ç屿§æ³¨å°ï¼ä½å¨ä½¿ç¨æ´å å¤æçæ å°ï¼æ¯å¦å¤å屿§ãé"
-"è¿æ è¯ç¬¦æé ç»§æ¿æ ï¼ä»¥åéåç±»ççæ
åµä¸ï¼ä¹æä¸äºç¹å«çå«åï¼æ¥å
许Hibernate"
-"注å°åéçå«åã"
+"è¿æ è¯ç¬¦æé ç»§æ¿æ ï¼ä»¥åéåç±»ççæ
åµä¸ï¼ä¹æä¸äºç¹å«çå«åï¼æ¥å
许 "
+"Hibernate 注å
¥åéçå«åã "
#. Tag: para
-#: query_sql.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table shows the different ways you can use the alias "
"injection. Please note that the alias names in the result are simply "
@@ -491,544 +345,338 @@
"used."
msgstr ""
"ä¸è¡¨ååºäºä½¿ç¨å«å注å°åæ°çä¸åå¯è½æ§ã注æï¼ä¸é¢ç»æä¸çå«ååªæ¯ç¤ºä¾ï¼å®ç¨"
-"æ¶æ¯ä¸ªå«åéè¦å¯ä¸å¹¶ä¸ä¸åçååã"
+"æ¶æ¯ä¸ªå«åéè¦å¯ä¸å¹¶ä¸ä¸åçååã "
#. Tag: title
-#: query_sql.xml:236
#, no-c-format
msgid "Alias injection names"
-msgstr "å«å注å°(alias injection names)"
+msgstr "å«å注å°ï¼alias injection namesï¼"
#. Tag: entry
-#: query_sql.xml:247
#, no-c-format
msgid "Description"
msgstr "æè¿°"
#. Tag: entry
-#: query_sql.xml:249
#, no-c-format
msgid "Syntax"
msgstr "è¯æ³"
#. Tag: entry
-#: query_sql.xml:251
#, no-c-format
msgid "Example"
msgstr "示ä¾"
#. Tag: entry
-#: query_sql.xml:257
#, no-c-format
msgid "A simple property"
msgstr "ç®å屿§"
-#. Tag: literal
-#: query_sql.xml:259
-#, no-c-format
-msgid "{[aliasname].[propertyname]"
-msgstr "{[aliasname].[propertyname]"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[propertyname]</literal>"
+msgstr "<literal>{[aliasname].[propertyname]</literal>"
-#. Tag: literal
-#: query_sql.xml:261
-#, no-c-format
-msgid "A_NAME as {item.name}"
-msgstr "A_NAME as {item.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>A_NAME as {item.name}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:265
#, no-c-format
msgid "A composite property"
msgstr "å¤å屿§"
-#. Tag: literal
-#: query_sql.xml:267
-#, no-c-format
-msgid "{[aliasname].[componentname].[propertyname]}"
-msgstr "{[aliasname].[componentname].[propertyname]}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].[componentname].[propertyname]}</literal>"
-#. Tag: literal
-#: query_sql.xml:269
-#, no-c-format
-msgid "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
-msgstr "CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
+msgstr ""
+"<literal>CURRENCY as {item.amount.currency}, VALUE as {item.amount.value}</"
+"literal>"
#. Tag: entry
-#: query_sql.xml:274
#, no-c-format
msgid "Discriminator of an entity"
-msgstr "å®ä½è¾¨å«å¨(Discriminator of an entity)"
+msgstr "å®ä½è¾¨å«å¨ï¼Discriminator of an entityï¼"
-#. Tag: literal
-#: query_sql.xml:276
-#, no-c-format
-msgid "{[aliasname].class}"
-msgstr "{[aliasname].class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].class}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:278
-#, no-c-format
-msgid "DISC as {item.class}"
-msgstr "DISC as {item.class}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>DISC as {item.class}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:282
#, no-c-format
msgid "All properties of an entity"
msgstr "å®ä½çææå±æ§"
-#. Tag: literal
-#: query_sql.xml:284 query_sql.xml:332
-#, no-c-format
-msgid "{[aliasname].*}"
-msgstr "{[aliasname].*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].*}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:286
+#. Tag: entry
#, no-c-format
-msgid "{item.*}"
-msgstr "{item.*}"
+msgid "<literal>{item.*}</literal>"
+msgstr "<literal>{item.*}</literal>"
#. Tag: entry
-#: query_sql.xml:290
#, no-c-format
msgid "A collection key"
-msgstr "éåé®(collection key)"
+msgstr "éåé®ï¼collection keyï¼"
-#. Tag: literal
-#: query_sql.xml:292
-#, no-c-format
-msgid "{[aliasname].key}"
-msgstr "{[aliasname].key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].key}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:294
-#, no-c-format
-msgid "ORGID as {coll.key}"
-msgstr "ORGID as {coll.key}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>ORGID as {coll.key}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:298
#, no-c-format
msgid "The id of an collection"
-msgstr "éåid"
+msgstr "éå id"
-#. Tag: literal
-#: query_sql.xml:300
-#, no-c-format
-msgid "{[aliasname].id}"
-msgstr "{[aliasname].id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].id}</literal>"
+msgstr "<literal>{item.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:302
-#, no-c-format
-msgid "EMPID as {coll.id}"
-msgstr "EMPID as {coll.id}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>EMPID as {coll.id}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: entry
-#: query_sql.xml:306
#, no-c-format
msgid "The element of an collection"
msgstr "éåå
ç´ "
-#. Tag: literal
-#: query_sql.xml:308
-#, no-c-format
-msgid "{[aliasname].element}"
-msgstr "{[aliasname].element}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:310
-#, no-c-format
-msgid "XID as {coll.element}"
-msgstr "XID as {coll.element}"
-
#. Tag: entry
-#: query_sql.xml:314
#, fuzzy, no-c-format
-msgid "property of the element in the collection"
-msgstr "éåå
ç´ ç屿§"
+msgid "<literal>XID as {coll.element}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:316
+#. Tag: entry
#, no-c-format
-msgid "{[aliasname].element.[propertyname]}"
-msgstr "{[aliasname].element.[propertyname]}"
+msgid "property of the element in the collection"
+msgstr "éåå
ç´ ç屿§ "
-#. Tag: literal
-#: query_sql.xml:318
-#, no-c-format
-msgid "NAME as {coll.element.name}"
-msgstr "NAME as {coll.element.name}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.[propertyname]}</literal>"
+msgstr "<literal>{[aliasname].element.[propertyname]}</literal>"
#. Tag: entry
-#: query_sql.xml:322
+#, fuzzy, no-c-format
+msgid "<literal>NAME as {coll.element.name}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "All properties of the element in the collection"
msgstr "éåå
ç´ çææå±æ§"
-#. Tag: literal
-#: query_sql.xml:324
-#, no-c-format
-msgid "{[aliasname].element.*}"
-msgstr "{[aliasname].element.*}"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>{[aliasname].element.*}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
-#. Tag: literal
-#: query_sql.xml:326
+#. Tag: entry
#, no-c-format
-msgid "{coll.element.*}"
-msgstr "{coll.element.*}"
+msgid "<literal>{coll.element.*}</literal>"
+msgstr "<literal>{coll.element.*}</literal>"
#. Tag: entry
-#: query_sql.xml:330
#, no-c-format
msgid "All properties of the the collection"
msgstr "éåçææå±æ§"
-#. Tag: literal
-#: query_sql.xml:334
+#. Tag: entry
#, no-c-format
-msgid "{coll.*}"
-msgstr "{coll.*}"
+msgid "<literal>{coll.*}</literal>"
+msgstr "<literal>{coll.*}</literal>"
#. Tag: title
-#: query_sql.xml:343
#, no-c-format
msgid "Returning non-managed entities"
-msgstr "è¿åéå管å®ä½(Returning non-managed entities)"
+msgstr "è¿åéå管å®ä½ï¼Returning non-managed entitiesï¼"
#. Tag: para
-#: query_sql.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is possible to apply a ResultTransformer to native SQL queries, allowing "
"it to return non-managed entities."
msgstr ""
-"å¯ä»¥å¯¹åçsql æ¥è¯¢ä½¿ç¨ResultTransformerãè¿ä¼è¿åä¸åHibernate管ççå®ä½ã"
+"å¯ä»¥å¯¹åç sql æ¥è¯¢ä½¿ç¨ ResultTransformerãè¿ä¼è¿åä¸å Hibernate 管ççå®"
+"ä½ã "
-#. Tag: programlisting
-#: query_sql.xml:347
-#, no-c-format
-msgid ""
-"<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
-" .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:357
#, no-c-format
msgid "a result transformer"
-msgstr "ç»æè½¬æ¢å¨(result transformer)"
+msgstr "ç»æè½¬æ¢å¨ï¼result transformerï¼"
#. Tag: para
-#: query_sql.xml:361
#, no-c-format
msgid ""
"The above query will return a list of <literal>CatDTO</literal> which has "
"been instantiated and injected the values of NAME and BIRTHNAME into its "
"corresponding properties or fields."
msgstr ""
-"ä¸é¢çæ¥è¯¢å°ä¼è¿å<literal>CatDTO</literal>çå表,å®å°è¢«å®ä¾åå¹¶ä¸å°NAMEå"
-"BIRTHDAYç弿³¨å°å
¥å¯¹åºç屿§æè
åæ®µã"
+"ä¸é¢çæ¥è¯¢å°ä¼è¿å <literal>CatDTO</literal> çå表,å®å°è¢«å®ä¾åå¹¶ä¸å° NAME "
+"å BIRTHDAY ç弿³¨å°å
¥å¯¹åºç屿§æè
åæ®µã"
#. Tag: title
-#: query_sql.xml:368
#, no-c-format
msgid "Handling inheritance"
msgstr "å¤çç»§æ¿ï¼Handling inheritanceï¼"
#. Tag: para
-#: query_sql.xml:370
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Native SQL queries which query for entities that are mapped as part of an "
"inheritance must include all properties for the baseclass and all its "
"subclasses."
msgstr ""
-"åçSQLæ¥è¯¢åè¥å
¶æ¥è¯¢ç»æå®ä½æ¯ç»§æ¿æ ä¸çä¸é¨åï¼å®å¿
é¡»å
å«åºç±»åææåç±»çæ"
-"æå±æ§ã"
+"åç SQL æ¥è¯¢åè¥å
¶æ¥è¯¢ç»æå®ä½æ¯ç»§æ¿æ ä¸çä¸é¨åï¼å®å¿
é¡»å
å«åºç±»åææåç±»ç"
+"ææå±æ§ã "
#. Tag: title
-#: query_sql.xml:376
#, no-c-format
msgid "Parameters"
msgstr "åæ°ï¼Parametersï¼"
#. Tag: para
-#: query_sql.xml:378
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Native SQL queries support positional as well as named parameters:"
-msgstr "åçæ¥è¯¢æ¯æä½ç½®åæ°åå½ååæ°ï¼"
+msgstr "åçæ¥è¯¢æ¯æä½ç½®åæ°åå½ååæ°ï¼ "
-#. Tag: programlisting
-#: query_sql.xml:381
-#, no-c-format
-msgid ""
-"<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME "
-"like ?\").addEntity(Cat.class);\n"
-"List pusList = query.setString(0, \"Pus%\").list();\n"
-" \n"
-"query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
-"addEntity(Cat.class);\n"
-"List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:389
#, no-c-format
msgid "Named SQL queries"
-msgstr "å½åSQLæ¥è¯¢"
+msgstr "å½å SQL æ¥è¯¢"
#. Tag: para
-#: query_sql.xml:391
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Named SQL queries can be defined in the mapping document and called in "
"exactly the same way as a named HQL query. In this case, you do "
"<emphasis>not</emphasis> need to call <literal>addEntity()</literal>."
msgstr ""
-"å¯ä»¥å¨æ å°ææ¡£ä¸å®ä¹æ¥è¯¢çåå,ç¶åå°±å¯ä»¥è±¡è°ç¨ä¸ä¸ªå½åçHQLæ¥è¯¢ä¸æ ·ç´æ¥è°ç¨"
-"å½åSQLæ¥è¯¢.å¨è¿ç§æ
åµä¸,æä»¬<emphasis>ä¸</emphasis> éè¦è°ç¨"
-"<literal>addEntity()</literal>æ¹æ³."
+"å¯ä»¥å¨æ å°ææ¡£ä¸å®ä¹æ¥è¯¢çåå,ç¶åå°±å¯ä»¥è±¡è°ç¨ä¸ä¸ªå½åç HQL æ¥è¯¢ä¸æ ·ç´æ¥è°"
+"ç¨å½å SQL æ¥è¯¢.å¨è¿ç§æ
åµä¸ï¼æä»¬<emphasis>ä¸</emphasis> éè¦è°ç¨ "
+"<literal>addEntity()</literal> æ¹æ³ã "
-#. Tag: programlisting
-#: query_sql.xml:396
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"persons\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex}\n"
-" FROM PERSON person\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:398
-#, no-c-format
-msgid ""
-"<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
-" .setString(\"namePattern\", namePattern)\n"
-" .setMaxResults(50)\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:400
-#, fuzzy, no-c-format
-msgid ""
"The <literal><return-join></literal> element is use to join "
"associations and the <literal><load-collection></literal> element is "
"used to define queries which initialize collections,"
msgstr ""
-"<literal><return-join></literal>å <literal><load-collection></"
-"literal> å
ç´ æ¯ç¨æ¥è¿æ¥å
³è以åå°æ¥è¯¢å®ä¹ä¸ºé¢å
åå§åå个éåçã"
+"<literal><return-join></literal> å <literal><load-collection></"
+"literal> å
ç´ æ¯ç¨æ¥è¿æ¥å
³è以åå°æ¥è¯¢å®ä¹ä¸ºé¢å
åå§åå个éåçã "
-#. Tag: programlisting
-#: query_sql.xml:404
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"personsWith\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:406
#, no-c-format
msgid ""
"A named SQL query may return a scalar value. You must declare the column "
"alias and Hibernate type using the <literal><return-scalar></literal> "
"element:"
msgstr ""
-"ä¸ä¸ªå½åæ¥è¯¢å¯è½ä¼è¿åä¸ä¸ªæ éå¼.ä½ å¿
须使ç¨<literal><return-scalar></"
-"literal>å
ç´ æ¥æå®å段çå«åå Hibernateç±»å"
+"ä¸ä¸ªå½åæ¥è¯¢å¯è½ä¼è¿åä¸ä¸ªæ éå¼ãä½ å¿
é¡»ä½¿ç¨ <literal><return-scalar></"
+"literal> å
ç´ æ¥æå®å段çå«åå Hibernate ç±»åï¼"
-#. Tag: programlisting
-#: query_sql.xml:410
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return-scalar column=\"name\" type=\"string\"/>\n"
-" <return-scalar column=\"age\" type=\"long\"/>\n"
-" SELECT p.NAME AS name,\n"
-" p.AGE AS age,\n"
-" FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:412
-#, fuzzy, no-c-format
-msgid ""
"You can externalize the resultset mapping information in a <literal><"
"resultset></literal> element which will allow you to either reuse them "
"across several named queries or through the <literal>setResultSetMapping()</"
"literal> API."
msgstr ""
-"ä½ å¯ä»¥æç»æéæ å°çä¿¡æ¯æ¾å¨å¤é¨ç<literal><resultset></literal>å
ç´ "
-"ä¸ï¼è¿æ ·å°±å¯ä»¥å¨å¤ä¸ªå½åæ¥è¯¢é´ï¼æè
éè¿<literal>setResultSetMapping()</"
-"literal>APIæ¥è®¿é®ã(æ¤å¤åæå³åçãåæä¸ºï¼You can externalize the "
-"resultset mapping informations in a <literal><resultset></literal> "
-"element to either reuse them accross several named queries or through the "
-"<literal>setResultSetMapping()</literal> API.)"
+"ä½ å¯ä»¥æç»æéæ å°çä¿¡æ¯æ¾å¨å¤é¨ç <literal><resultset></literal> å
ç´ "
+"ä¸ï¼è¿æ ·å°±å¯ä»¥å¨å¤ä¸ªå½åæ¥è¯¢é´ï¼æè
éè¿ <literal>setResultSetMapping()</"
+"literal> API æ¥è®¿é®ã "
-#. Tag: programlisting
-#: query_sql.xml:417
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<resultset name=\"personAddress\">\n"
-" <return alias=\"person\" class=\"eg.Person\"/>\n"
-" <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
-"</resultset>\n"
-"\n"
-"<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
-" SELECT person.NAME AS {person.name},\n"
-" person.AGE AS {person.age},\n"
-" person.SEX AS {person.sex},\n"
-" address.STREET AS {address.street},\n"
-" address.CITY AS {address.city},\n"
-" address.STATE AS {address.state},\n"
-" address.ZIP AS {address.zip}\n"
-" FROM PERSON person\n"
-" JOIN ADDRESS address\n"
-" ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
-" WHERE person.NAME LIKE :namePattern\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:419
-#, fuzzy, no-c-format
-msgid ""
"You can, alternatively, use the resultset mapping information in your hbm "
"files directly in java code."
-msgstr "å¦å¤,ä½ å¯ä»¥å¨java代ç ä¸ç´æ¥ä½¿ç¨hbmæä»¶ä¸çç»æéå®ä¹ä¿¡æ¯ã"
+msgstr "å¦å¤ï¼ä½ å¯ä»¥å¨ java 代ç ä¸ç´æ¥ä½¿ç¨ hbm æä»¶ä¸çç»æéå®ä¹ä¿¡æ¯ã "
-#. Tag: programlisting
-#: query_sql.xml:422
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = sess.createSQLQuery(\n"
-" \"select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten."
-"mother = cat.id\"\n"
-" )\n"
-" .setResultSetMapping(\"catAndKitten\")\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:425
#, no-c-format
msgid "Using return-property to explicitly specify column/alias names"
-msgstr "使ç¨return-propertyæ¥æç¡®å°æå®å段/å«å"
+msgstr "ä½¿ç¨ return-property æ¥æç¡®å°æå®å段ï¼å«å"
#. Tag: para
-#: query_sql.xml:428
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can explicitly tell Hibernate what column aliases to use with "
"<literal><return-property></literal>, instead of using the <literal>{}"
"</literal>-syntax to let Hibernate inject its own aliases.For example:"
msgstr ""
-"使ç¨<literal><return-property></literal>ä½ å¯ä»¥æç¡®çåè¯Hibernate使ç¨åª"
-"äºå段å«å,è¿å代äºä½¿ç¨<literal>{}</literal>-è¯æ³ æ¥è®©Hibernate注å
¥å®èªå·±çå«"
-"å."
+"ä½¿ç¨ <literal><return-property></literal> ä½ å¯ä»¥æç¡®çåè¯ Hibernate 使"
+"ç¨åªäºå段å«åï¼è¿å代äºä½¿ç¨ <literal>{}</literal>-è¯æ³ æ¥è®© Hibernate 注å
¥å®"
+"èªå·±çå«åãä¾å¦ï¼"
-#. Tag: programlisting
-#: query_sql.xml:433
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"mySqlQuery\">\n"
-" <return alias=\"person\" class=\"eg.Person\">\n"
-" <return-property name=\"name\" column=\"myName\"/>\n"
-" <return-property name=\"age\" column=\"myAge\"/>\n"
-" <return-property name=\"sex\" column=\"mySex\"/>\n"
-" </return>\n"
-" SELECT person.NAME AS myName,\n"
-" person.AGE AS myAge,\n"
-" person.SEX AS mySex,\n"
-" FROM PERSON person WHERE person.NAME LIKE :name\n"
-"</sql-query>\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:435
-#, fuzzy, no-c-format
-msgid ""
"<literal><return-property></literal> also works with multiple columns. "
"This solves a limitation with the <literal>{}</literal>-syntax which cannot "
"allow fine grained control of multi-column properties."
msgstr ""
-"<literal><return-property></literal>ä¹å¯ç¨äºå¤ä¸ªå段,å®è§£å³äºä½¿ç¨"
-"<literal>{}</literal>-è¯æ³ä¸è½ç»ç²åº¦æ§å¶å¤ä¸ªå段çéå¶"
+"<literal><return-property></literal> ä¹å¯ç¨äºå¤ä¸ªå段ï¼å®è§£å³äºä½¿ç¨ "
+"<literal>{}</literal>-è¯æ³ä¸è½ç»ç²åº¦æ§å¶å¤ä¸ªå段çéå¶ã "
-#. Tag: programlisting
-#: query_sql.xml:440
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
-" </return>\n"
-" SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
-" STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
-" REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT\n"
-" WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
-" ORDER BY STARTDATE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:442
-#, fuzzy, no-c-format
-msgid ""
"In this example <literal><return-property></literal> was used in "
"combination with the <literal>{}</literal>-syntax for injection. This allows "
"users to choose how they want to refer column and properties."
msgstr ""
-"注æå¨è¿ä¸ªä¾åä¸,æä»¬ä½¿ç¨äº<literal><return-property></literal>ç»å"
-"<literal>{}</literal>çæ³¨å
¥è¯æ³. å
è®¸ç¨æ·æ¥éæ©å¦ä½å¼ç¨å段以å屿§."
+"注æå¨è¿ä¸ªä¾åä¸ï¼æä»¬ä½¿ç¨äº <literal><return-property></literal> ç»å "
+"<literal>{}</literal> çæ³¨å
¥è¯æ³ãå
è®¸ç¨æ·æ¥éæ©å¦ä½å¼ç¨å段以å屿§ã "
#. Tag: para
-#: query_sql.xml:447
#, no-c-format
msgid ""
"If your mapping has a discriminator you must use <literal><return-"
"discriminator></literal> to specify the discriminator column."
msgstr ""
-"å¦æä½ æ å°ä¸ä¸ªè¯å«å¨(discriminator),ä½ å¿
须使ç¨<literal><return-"
-"discriminator></literal> æ¥æå®è¯å«å¨å段"
+"å¦æä½ æ å°ä¸ä¸ªè¯å«å¨ï¼discriminatorï¼ï¼ä½ å¿
é¡»ä½¿ç¨ <literal><return-"
+"discriminator></literal> æ¥æå®è¯å«å¨å段ã"
#. Tag: title
-#: query_sql.xml:453
#, no-c-format
msgid "Using stored procedures for querying"
msgstr "使ç¨åå¨è¿ç¨æ¥æ¥è¯¢"
#. Tag: para
-#: query_sql.xml:455
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate3 provides support for queries via stored procedures and functions. "
"Most of the following documentation is equivalent for both. The stored "
@@ -1036,75 +684,33 @@
"able to work with Hibernate. An example of such a stored function in Oracle "
"9 and higher is as follows:"
msgstr ""
-"Hibernate 3å¼å
¥äºå¯¹åå¨è¿ç¨æ¥è¯¢(stored procedure)å彿°(function)çæ¯æ.以ä¸"
-"ç说æä¸ï¼è¿äºè
ä¸è¬é½éç¨ã åå¨è¿ç¨/彿°å¿
é¡»è¿åä¸ä¸ªç»æé,ä½ä¸ºHibernateè½"
-"å¤ä½¿ç¨ç第ä¸ä¸ªå¤é¨åæ°. ä¸é¢æ¯ä¸ä¸ªOracle9åæ´é«çæ¬çåå¨è¿ç¨ä¾å."
+"Hibernate 3 å¼å
¥äºå¯¹åå¨è¿ç¨æ¥è¯¢ï¼stored procedureï¼å彿°ï¼functionï¼çæ¯"
+"æã以ä¸ç说æä¸ï¼è¿äºè
ä¸è¬é½éç¨ãåå¨è¿ç¨ï¼å½æ°å¿
é¡»è¿åä¸ä¸ªç»æéï¼ä½ä¸º "
+"Hibernate è½å¤ä½¿ç¨ç第ä¸ä¸ªå¤é¨åæ°ãä¸é¢æ¯ä¸ä¸ª Oracle9 åæ´é«çæ¬çåå¨è¿ç¨ä¾"
+"åã "
-#. Tag: programlisting
-#: query_sql.xml:461
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
-" RETURN SYS_REFCURSOR\n"
-"AS\n"
-" st_cursor SYS_REFCURSOR;\n"
-"BEGIN\n"
-" OPEN st_cursor FOR\n"
-" SELECT EMPLOYEE, EMPLOYER,\n"
-" STARTDATE, ENDDATE,\n"
-" REGIONCODE, EID, VALUE, CURRENCY\n"
-" FROM EMPLOYMENT;\n"
-" RETURN st_cursor;\n"
-" END;]]>"
-msgstr ""
-
#. Tag: para
-#: query_sql.xml:463
#, no-c-format
msgid "To use this query in Hibernate you need to map it via a named query."
-msgstr "å¨Hibernateéè¦è¦ä½¿ç¨è¿ä¸ªæ¥è¯¢,ä½ éè¦éè¿å½åæ¥è¯¢æ¥æ å°å®."
+msgstr "å¨ Hibernate éè¦è¦ä½¿ç¨è¿ä¸ªæ¥è¯¢ï¼ä½ éè¦éè¿å½åæ¥è¯¢æ¥æ å°å®ã"
-#. Tag: programlisting
-#: query_sql.xml:466
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
-" <return alias=\"emp\" class=\"Employment\">\n"
-" <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
-" <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
-" <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
-" <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
-" <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
-" <return-property name=\"id\" column=\"EID\"/>\n"
-" <return-property name=\"salary\">\n"
-" <return-column name=\"VALUE\"/>\n"
-" <return-column name=\"CURRENCY\"/>\n"
-" </return-property>\n"
-" </return>\n"
-" { ? = call selectAllEmployments() }\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:468
-#, fuzzy, no-c-format
-msgid ""
"Stored procedures currently only return scalars and entities. <literal><"
"return-join></literal> and <literal><load-collection></literal> are "
"not supported."
msgstr ""
-"注æåå¨è¿ç¨å½åä»
ä»
è¿åæ éåå®ä½.ç°å¨ä¸æ¯æ<literal><return-join></"
-"literal>å<literal><load-collection></literal>"
+"注æåå¨è¿ç¨å½åä»
ä»
è¿åæ éåå®ä½ç°å¨ã䏿¯æ <literal><return-join></"
+"literal> å <literal><load-collection></literal>ã "
#. Tag: title
-#: query_sql.xml:473
#, no-c-format
msgid "Rules/limitations for using stored procedures"
msgstr "使ç¨åå¨è¿ç¨çè§ååéå¶"
#. Tag: para
-#: query_sql.xml:475
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You cannot use stored procedures with Hibernate unless you follow some "
"procedure/function rules. If they do not follow those rules they are not "
@@ -1113,42 +719,38 @@
"different for each database, since database vendors have different stored "
"procedure semantics/syntax."
msgstr ""
-"为äºå¨Hibernateä¸ä½¿ç¨åå¨è¿ç¨,ä½ å¿
é¡»éµå¾ªä¸äºè§å.ä¸éµå¾ªè¿äºè§åçåå¨è¿ç¨å°ä¸"
-"å¯ç¨.å¦æä½ ä»ç¶æ³è¦ä½¿ç¨ä»ä»¬, ä½ å¿
é¡»éè¿<literal>session.connection()</"
-"literal>æ¥æ§è¡ä»ä»¬.è¿äºè§åé对äºä¸åçæ°æ®åº.å ä¸ºæ°æ®åº æä¾åæåç§ä¸åçå"
-"å¨è¿ç¨è¯æ³åè¯ä¹."
+"为äºå¨ Hibernate ä¸ä½¿ç¨åå¨è¿ç¨ï¼ä½ å¿
é¡»éµå¾ªä¸äºè§åãä¸éµå¾ªè¿äºè§åçåå¨è¿ç¨"
+"å°ä¸å¯ç¨ãå¦æä½ ä»ç¶æ³ä½¿ç¨ä»ä»¬ï¼ä½ å¿
é¡»éè¿ <literal>session.connection()</"
+"literal> æ¥æ§è¡ä»ä»¬ãè¿äºè§åé对äºä¸åçæ°æ®åºãå ä¸ºæ°æ®åºæä¾åæåç§ä¸åç"
+"åå¨è¿ç¨è¯æ³åè¯ä¹ã "
#. Tag: para
-#: query_sql.xml:482
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Stored procedure queries cannot be paged with <literal>setFirstResult()/"
"setMaxResults()</literal>."
msgstr ""
-"对åå¨è¿ç¨è¿è¡çæ¥è¯¢æ æ³ä½¿ç¨<literal>setFirstResult()/setMaxResults()</"
-"literal>è¿è¡å页ã"
+"对åå¨è¿ç¨è¿è¡çæ¥è¯¢æ æ³ä½¿ç¨ <literal>setFirstResult()/setMaxResults()</"
+"literal> è¿è¡å页ã "
#. Tag: para
-#: query_sql.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The recommended call form is standard SQL92: <literal>{ ? = call functionName"
"(<parameters>) }</literal> or <literal>{ ? = call procedureName(<"
"parameters>}</literal>. Native call syntax is not supported."
msgstr ""
-"建议éç¨çè°ç¨æ¹å¼æ¯æ åSQL92: <literal>{ ? = call functionName(<"
+"建议éç¨çè°ç¨æ¹å¼æ¯æ å SQL92: <literal>{ ? = call functionName(<"
"parameters>) }</literal> æè
<literal>{ ? = call procedureName(<"
-"parameters>}</literal>.åçè°ç¨è¯æ³ä¸è¢«æ¯æã"
+"parameters>) }</literal>ãåçè°ç¨è¯æ³ä¸è¢«æ¯æã "
#. Tag: para
-#: query_sql.xml:490
#, no-c-format
msgid "For Oracle the following rules apply:"
-msgstr "对äºOracleæå¦ä¸è§å:"
+msgstr "å¯¹äº Oracle æå¦ä¸è§åï¼"
#. Tag: para
-#: query_sql.xml:494
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A function must return a result set. The first parameter of a procedure must "
"be an <literal>OUT</literal> that returns a result set. This is done by "
@@ -1156,124 +758,91 @@
"you need to define a <literal>REF CURSOR</literal> type. See Oracle "
"literature for further information."
msgstr ""
-"彿°å¿
é¡»è¿åä¸ä¸ªç»æéãåå¨è¿ç¨ç第ä¸ä¸ªåæ°å¿
é¡»æ¯<literal>OUT</literal>ï¼å®"
-"è¿åä¸ä¸ªç»æéãè¿æ¯éè¿Oracle 9æ10ç<literal>SYS_REFCURSOR</literal>ç±»åæ¥"
-"宿çãå¨Oracleä¸ä½ éè¦å®ä¹ä¸ä¸ª<literal>REF CURSOR</literal>ç±»åï¼åè§Oracle"
-"çæåã"
+"彿°å¿
é¡»è¿åä¸ä¸ªç»æéãåå¨è¿ç¨ç第ä¸ä¸ªåæ°å¿
é¡»æ¯ <literal>OUT</literal>ï¼å®"
+"è¿åä¸ä¸ªç»æéãè¿æ¯éè¿ Oracle 9 æ 10 ç <literal>SYS_REFCURSOR</literal> "
+"ç±»åæ¥å®æçãå¨ Oracle ä¸ä½ éè¦å®ä¹ä¸ä¸ª <literal>REF CURSOR</literal> ç±»åï¼"
+"åè§ Oracle çæåã "
#. Tag: para
-#: query_sql.xml:503
#, no-c-format
msgid "For Sybase or MS SQL server the following rules apply:"
-msgstr "对äºSybaseæè
MS SQL serveræå¦ä¸è§å:"
+msgstr "å¯¹äº Sybase æè
MS SQL server æå¦ä¸è§åï¼"
#. Tag: para
-#: query_sql.xml:507
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The procedure must return a result set. Note that since these servers can "
"return multiple result sets and update counts, Hibernate will iterate the "
"results and take the first result that is a result set as its return value. "
"Everything else will be discarded."
msgstr ""
-"åå¨è¿ç¨å¿
é¡»è¿åä¸ä¸ªç»æéã.注æè¿äºserverså¯è½è¿åå¤ä¸ªç»æé以忴æ°çæ°ç®."
-"Hibernateå°ååºç¬¬ä¸æ¡ç»æéä½ä¸ºå®çè¿åå¼ï¼ å
¶ä»å°è¢«ä¸¢å¼ã"
+"åå¨è¿ç¨å¿
é¡»è¿åä¸ä¸ªç»æéãæ³¨æè¿äº servers å¯è½è¿åå¤ä¸ªç»æé以忴æ°çæ°"
+"ç®ãHibernate å°ååºç¬¬ä¸æ¡ç»æéä½ä¸ºå®çè¿åå¼ï¼å
¶ä»å°è¢«ä¸¢å¼ã "
#. Tag: para
-#: query_sql.xml:515
#, no-c-format
msgid ""
"If you can enable <literal>SET NOCOUNT ON</literal> in your procedure it "
"will probably be more efficient, but this is not a requirement."
msgstr ""
-"å¦æä½ è½å¤å¨åå¨è¿ç¨é设å®<literal>SET NOCOUNT ON</literal>ï¼è¿å¯è½ä¼æçæ´"
+"å¦æä½ è½å¤å¨åå¨è¿ç¨éè®¾å® <literal>SET NOCOUNT ON</literal>ï¼è¿å¯è½ä¼æçæ´"
"é«ï¼ä½è¿ä¸æ¯å¿
éçã"
#. Tag: title
-#: query_sql.xml:525
#, no-c-format
msgid "Custom SQL for create, update and delete"
-msgstr "å®å¶SQLç¨æ¥createï¼updateådelete"
+msgstr "å®å¶ SQL ç¨æ¥ createï¼update å delete"
#. Tag: para
-#: query_sql.xml:527
#, no-c-format
msgid ""
-"Hibernate3 can use custom SQL statements for create, update, and delete "
-"operations. The class and collection persisters in Hibernate already contain "
-"a set of configuration time generated strings (insertsql, deletesql, "
-"updatesql etc.). The mapping tags <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal> override these strings:"
+"Hibernate3 can use custom SQL for create, update, and delete operations. The "
+"SQL can be overridden at the statement level or inidividual column level. "
+"This section describes statement overrides. For columns, see <xref linkend="
+"\"mapping-column-read-and-write\" />."
msgstr ""
-"Hibernate3è½å¤ä½¿ç¨å®å¶çSQLè¯å¥æ¥æ§è¡create,updateådeleteæä½ãå¨Hibernate"
-"ä¸ï¼æä¹
åçç±»åéåå·²ç» å
å«äºä¸å¥é
ç½®æäº§ççè¯å¥(insertsql, deletesql, "
-"updatesqlçç)ï¼è¿äºæ å°æ è®° <literal><sql-insert></literal>, "
-"<literal><sql-delete></literal>, and <literal><sql-update></"
-"literal>éè½½äº è¿äºè¯å¥ã"
-#. Tag: programlisting
-#: query_sql.xml:535
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
-"insert>\n"
-" <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
-" <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
-"</class>]]>"
+"The class and collection persisters in Hibernate already contain a set of "
+"configuration time generated strings (insertsql, deletesql, updatesql etc.). "
+"The mapping tags <literal><sql-insert></literal>, <literal><sql-"
+"delete></literal>, and <literal><sql-update></literal> override "
+"these strings:"
msgstr ""
+"Hibernate3 è½å¤ä½¿ç¨å®å¶ç SQL è¯å¥æ¥æ§è¡ createï¼update å delete æä½ãå¨ "
+"Hibernate ä¸ï¼æä¹
åçç±»åéåå·²ç»å
å«äºä¸å¥é
ç½®æäº§ççè¯å¥ï¼insertsqlï¼"
+"deletesqlï¼updatesql ççï¼ï¼è¿äºæ å°æ è®° <literal><sql-insert></"
+"literal>ï¼<literal><sql-delete></literal> å <literal><sql-"
+"update></literal> éè½½äºè¿äºè¯å¥ã"
#. Tag: para
-#: query_sql.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The SQL is directly executed in your database, so you can use any dialect "
"you like. This will reduce the portability of your mapping if you use "
"database specific SQL."
msgstr ""
-"è¿äºSQLç´æ¥å¨ä½ çæ°æ®åºéæ§è¡ï¼æä»¥ä½ å¯ä»¥èªç±ç使ç¨ä½ 忬¢çä»»æè¯æ³ãä½å¦æä½ "
-"ä½¿ç¨æ°æ®åºç¹å®çè¯æ³ï¼ è¿å½ç¶ä¼éä½ä½ æ å°çå¯ç§»æ¤æ§ã"
+"è¿äº SQL ç´æ¥å¨ä½ çæ°æ®åºéæ§è¡ï¼æä»¥ä½ å¯ä»¥èªç±ç使ç¨ä½ 忬¢çä»»æè¯æ³ãä½å¦æ"
+"ä½ ä½¿ç¨æ°æ®åºç¹å®çè¯æ³ï¼è¿å½ç¶ä¼éä½ä½ æ å°çå¯ç§»æ¤æ§ã "
#. Tag: para
-#: query_sql.xml:541
#, no-c-format
msgid ""
"Stored procedures are supported if the <literal>callable</literal> attribute "
"is set:"
-msgstr "å¦æè®¾å®<literal>callable</literal>ï¼åè½å¤æ¯æåå¨è¿ç¨äºã"
+msgstr "å¦æè®¾å® <literal>callable</literal>ï¼åè½å¤æ¯æåå¨è¿ç¨äºã"
-#. Tag: programlisting
-#: query_sql.xml:544
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-insert>\n"
-" <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-delete>\n"
-" <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
-"update>\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:546
-#, fuzzy, no-c-format
-msgid ""
"The order of the positional parameters is vital, as they must be in the same "
"sequence as Hibernate expects them."
-msgstr "åæ°çä½ç½®é¡ºåºæ¯é常éè¦çï¼ä»ä»¬å¿
é¡»åHibernateææå¾
ç顺åºç¸åã"
+msgstr "åæ°çä½ç½®é¡ºåºæ¯é常éè¦çï¼ä»ä»¬å¿
é¡»å Hibernate ææå¾
ç顺åºç¸åã "
#. Tag: para
-#: query_sql.xml:549
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can view the expected order by enabling debug logging for the "
"<literal>org.hibernate.persister.entity</literal> level. With this level "
@@ -1282,145 +851,720 @@
"your custom SQL in the mapping files, as this will override the Hibernate "
"generated static SQL."
msgstr ""
-"ä½ è½å¤éè¿è®¾å®æ¥å¿è°è¯çº§å«ä¸º<literal>org.hiberante.persister.entity</"
-"literal>,æ¥æ¥çHibernateææå¾
ç顺åºãå¨è¿ä¸ªçº§å«ä¸ï¼ Hibernateå°ä¼æå°åº"
-"create,updateådeleteå®ä½çéæSQLã(妿æ³çå°é¢è®¡ç顺åºãè®°å¾ä¸è¦å°å®å¶SQL"
-"å
å«å¨æ å°æä»¶éï¼ å 为ä»ä»¬ä¼éè½½HibernateçæçéæSQLã)"
+"ä½ è½å¤éè¿è®¾å®æ¥å¿è°è¯çº§å«ä¸º <literal>org.hiberante.persister.entity</"
+"literal> æ¥æ¥ç Hibernate ææå¾
ç顺åºãå¨è¿ä¸ªçº§å«ä¸ï¼Hibernate å°ä¼æå°åº"
+"createï¼update å delete å®ä½çéæ SQLãï¼å¦ææ³çå°é¢è®¡ç顺åºãè®°å¾ä¸è¦å°å®"
+"å¶ SQL å
å«å¨æ å°æä»¶éï¼å 为ä»ä»¬ä¼éè½½ Hibernate çæçéæ SQLãï¼ "
#. Tag: para
-#: query_sql.xml:556
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The stored procedures are in most cases required to return the number of "
"rows inserted, updated and deleted, as Hibernate has some runtime checks for "
"the success of the statement. Hibernate always registers the first statement "
"parameter as a numeric output parameter for the CUD operations:"
msgstr ""
-"å¨å¤§å¤æ°æ
åµä¸(æå¥½è¿ä¹å)ï¼åå¨è¿ç¨éè¦è¿åæå
¥/æ´æ°/å é¤çè¡æ°ï¼å 为"
-"Hibernate对è¯å¥çæåæ§è¡æäºè¿è¡æ¶çæ£æ¥ã Hibernate叏伿è¿è¡CUDæä½çè¯å¥"
-"ç第ä¸ä¸ªåæ°æ³¨å为ä¸ä¸ªæ°å¼åè¾åºåæ°ã"
+"å¨å¤§å¤æ°æ
åµä¸ï¼æå¥½è¿ä¹åï¼ï¼åå¨è¿ç¨éè¦è¿åæå
¥ï¼æ´æ°ï¼å é¤çè¡æ°ï¼å 为 "
+"Hibernate 对è¯å¥çæåæ§è¡æäºè¿è¡æ¶çæ£æ¥ãHibernate 叏伿è¿è¡ CUD æä½çè¯"
+"å¥ç第ä¸ä¸ªåæ°æ³¨å为ä¸ä¸ªæ°å¼åè¾åºåæ°ã "
-#. Tag: programlisting
-#: query_sql.xml:562
-#, no-c-format
-msgid ""
-"<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
-"VARCHAR2)\n"
-" RETURN NUMBER IS\n"
-"BEGIN\n"
-"\n"
-" update PERSON\n"
-" set\n"
-" NAME = uname,\n"
-" where\n"
-" ID = uid;\n"
-"\n"
-" return SQL%ROWCOUNT;\n"
-"\n"
-"END updatePerson;]]>"
-msgstr ""
-
#. Tag: title
-#: query_sql.xml:566
#, no-c-format
msgid "Custom SQL for loading"
-msgstr "å®å¶è£
è½½SQL"
+msgstr "å®å¶è£
è½½ SQL"
#. Tag: para
-#: query_sql.xml:568
-#, fuzzy, no-c-format
-msgid "You can also declare your own SQL (or HQL) queries for entity loading:"
-msgstr "ä½ å¯è½éè¦å£°æä½ èªå·±çSQL(æHQL)æ¥è£
è½½å®ä½"
-
-#. Tag: programlisting
-#: query_sql.xml:571
#, no-c-format
msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
-" SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
-" FROM PERSON\n"
-" WHERE ID=?\n"
-" FOR UPDATE\n"
-"</sql-query>]]>"
+"You can also declare your own SQL (or HQL) queries for entity loading. As "
+"with inserts, updates, and deletes, this can be done at the individual "
+"column level as described in <xref linkend=\"mapping-column-read-and-write"
+"\" /> or at the statement level. Here is an example of a statement level "
+"override:"
msgstr ""
#. Tag: para
-#: query_sql.xml:573
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is just a named query declaration, as discussed earlier. You can "
"reference this named query in a class mapping:"
-msgstr "è¿åªæ¯ä¸ä¸ªåé¢è®¨è®ºè¿çå½åæ¥è¯¢å£°æï¼ä½ å¯ä»¥å¨ç±»æ å°éå¼ç¨è¿ä¸ªå½åæ¥è¯¢ã"
-
-#. Tag: programlisting
-#: query_sql.xml:576
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Person\">\n"
-" <id name=\"id\">\n"
-" <generator class=\"increment\"/>\n"
-" </id>\n"
-" <property name=\"name\" not-null=\"true\"/>\n"
-" <loader query-ref=\"person\"/>\n"
-"</class>]]>"
msgstr ""
+"è¿åªæ¯ä¸ä¸ªåé¢è®¨è®ºè¿çå½åæ¥è¯¢å£°æï¼ä½ å¯ä»¥å¨ç±»æ å°éå¼ç¨è¿ä¸ªå½åæ¥è¯¢ã "
#. Tag: para
-#: query_sql.xml:578
#, no-c-format
msgid "This even works with stored procedures."
msgstr "è¿ä¹å¯ä»¥ç¨äºåå¨è¿ç¨"
#. Tag: para
-#: query_sql.xml:580
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even define a query for collection loading:"
-msgstr "ä½ çè³å¯ä»¥å®ä¸ä¸ªç¨äºéåè£
è½½çæ¥è¯¢:"
+msgstr "ä½ çè³å¯ä»¥å®ä¸ä¸ªç¨äºéåè£
è½½çæ¥è¯¢ï¼ "
-#. Tag: programlisting
-#: query_sql.xml:582
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
-" <key/>\n"
-" <one-to-many class=\"Employment\"/>\n"
-" <loader query-ref=\"employments\"/>\n"
-"</set>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: query_sql.xml:584
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"employments\">\n"
-" <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
-" SELECT {emp.*}\n"
-" FROM EMPLOYMENT emp\n"
-" WHERE EMPLOYER = :id\n"
-" ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
-"</sql-query>]]>"
-msgstr ""
-
-#. Tag: para
-#: query_sql.xml:586
-#, fuzzy, no-c-format
-msgid ""
"You can also define an entity loader that loads a collection by join "
"fetching:"
-msgstr "ä½ çè³è¿å¯ä»¥å®ä¹ä¸ä¸ªå®ä½è£
è½½å¨ï¼å®éè¿è¿æ¥æåè£
è½½ä¸ä¸ªéå:"
+msgstr "ä½ çè³è¿å¯ä»¥å®ä¹ä¸ä¸ªå®ä½è£
è½½å¨ï¼å®éè¿è¿æ¥æåè£
è½½ä¸ä¸ªéåï¼ "
-#. Tag: programlisting
-#: query_sql.xml:589
-#, no-c-format
-msgid ""
-"<![CDATA[<sql-query name=\"person\">\n"
-" <return alias=\"pers\" class=\"Person\"/>\n"
-" <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
-" SELECT NAME AS {pers.*}, {emp.*}\n"
-" FROM PERSON pers\n"
-" LEFT OUTER JOIN EMPLOYMENT emp\n"
-" ON pers.ID = emp.PERSON_ID\n"
-" WHERE ID=?\n"
-"</sql-query>]]>"
-msgstr ""
+#~ msgid ""
+#~ "You can also declare your own SQL (or HQL) queries for entity loading:"
+#~ msgstr "ä½ å¯è½éè¦å£°æä½ èªå·±ç SQLï¼æ HQLï¼æ¥è£
è½½å®ä½ï¼"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\").list();\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\", Hibernate.STRING)\n"
+#~ " .addScalar(\"BIRTHDATE\", Hibernate.DATE)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\", Hibernate.STRING)\n"
+#~ " .addScalar(\"BIRTHDATE\", Hibernate.DATE)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\")\n"
+#~ " .addScalar(\"BIRTHDATE\")\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\")\n"
+#~ " .addScalar(\"ID\", Hibernate.LONG)\n"
+#~ " .addScalar(\"NAME\")\n"
+#~ " .addScalar(\"BIRTHDATE\")"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat."
+#~ "class);\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity"
+#~ "(Cat.class);\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT * FROM CATS\").addEntity(Cat.class);\n"
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE FROM CATS\").addEntity"
+#~ "(Cat.class);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM "
+#~ "CATS\").addEntity(Cat.class);\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, DOG_ID FROM CATS\")."
+#~ "addEntity(Cat.class);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, "
+#~ "D_ID, D_NAME FROM CATS c, DOGS d WHERE c.DOG_ID = d.D_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dog\");\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT c.ID, NAME, BIRTHDATE, DOG_ID, D_ID, D_NAME "
+#~ "FROM CATS c, DOGS d \n"
+#~ " WHERE c.DOG_ID = d.D_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dog\");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, "
+#~ "CAT_ID FROM CATS c, DOGS d WHERE c.ID = d.CAT_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dogs\");\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT ID, NAME, BIRTHDATE, D_ID, D_NAME, CAT_ID "
+#~ "FROM CATS c, DOGS d\n"
+#~ " WHERE c.ID = d.CAT_ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addJoin(\"cat.dogs\");"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE "
+#~ "c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT c.*, m.* FROM CATS c, CATS m WHERE c."
+#~ "MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, "
+#~ "CATS m WHERE c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT {cat.*}, {mother.*} FROM CATS c, CATS m "
+#~ "WHERE c.MOTHER_ID = c.ID\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class)"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
+#~ " \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother."
+#~ "*} \" +\n"
+#~ " \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
+#~ "\n"
+#~ "List loggedCats = sess.createSQLQuery(sql)\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class).list()\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "String sql = \"SELECT ID as {c.id}, NAME as {c.name}, \" + \n"
+#~ " \"BIRTHDATE as {c.birthDate}, MOTHER_ID as {c.mother}, {mother."
+#~ "*} \" +\n"
+#~ " \"FROM CAT_LOG c, CAT_LOG m WHERE {c.mother} = c.ID\";\n"
+#~ "\n"
+#~ "List loggedCats = sess.createSQLQuery(sql)\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ " .addEntity(\"mother\", Cat.class).list()"
+
+#, fuzzy
+#~ msgid "A_NAME as {item.name}"
+#~ msgstr "<literal>A_NAME as {item.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].class}"
+#~ msgstr "<literal>{[aliasname].class}</literal>"
+
+#, fuzzy
+#~ msgid "DISC as {item.class}"
+#~ msgstr "<literal>DISC as {item.class}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].*}"
+#~ msgstr "<literal>{[aliasname].*}</literal>"
+
+#~ msgid "{item.*}"
+#~ msgstr "{item.*}"
+
+#, fuzzy
+#~ msgid "{[aliasname].key}"
+#~ msgstr "<literal>{[aliasname].key}</literal>"
+
+#, fuzzy
+#~ msgid "ORGID as {coll.key}"
+#~ msgstr "<literal>ORGID as {coll.key}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].id}"
+#~ msgstr "<literal>{[aliasname].id}</literal>"
+
+#, fuzzy
+#~ msgid "EMPID as {coll.id}"
+#~ msgstr "<literal>EMPID as {coll.id}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element}"
+#~ msgstr "<literal>{[aliasname].element}</literal>"
+
+#, fuzzy
+#~ msgid "XID as {coll.element}"
+#~ msgstr "<literal>XID as {coll.element}</literal>"
+
+#, fuzzy
+#~ msgid "NAME as {coll.element.name}"
+#~ msgstr "<literal>NAME as {coll.element.name}</literal>"
+
+#, fuzzy
+#~ msgid "{[aliasname].element.*}"
+#~ msgstr "<literal>{[aliasname].element.*}</literal>"
+
+#, fuzzy
+#~ msgid "{coll.element.*}"
+#~ msgstr "{coll.*}"
+
+#~ msgid "{coll.*}"
+#~ msgstr "{coll.*}"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
+#~ " .setResultTransformer(Transformers.aliasToBean(CatDTO.class))]]>"
+#~ msgstr ""
+#~ "sess.createSQLQuery(\"SELECT NAME, BIRTHDATE FROM CATS\")\n"
+#~ " .setResultTransformer(Transformers.aliasToBean(CatDTO.class))"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE "
+#~ "NAME like ?\").addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(0, \"Pus%\").list();\n"
+#~ " \n"
+#~ "query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
+#~ "addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(\"name\", \"Pus%\").list(); ]]>"
+#~ msgstr ""
+#~ "Query query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like ?"
+#~ "\").addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(0, \"Pus%\").list();\n"
+#~ " \n"
+#~ "query = sess.createSQLQuery(\"SELECT * FROM CATS WHERE NAME like :name\")."
+#~ "addEntity(Cat.class);\n"
+#~ "List pusList = query.setString(\"name\", \"Pus%\").list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"persons\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex}\n"
+#~ " FROM PERSON person\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"persons\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex}\n"
+#~ " FROM PERSON person\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List people = sess.getNamedQuery(\"persons\")\n"
+#~ " .setString(\"namePattern\", namePattern)\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List people = sess.getNamedQuery(\"persons\")\n"
+#~ " .setString(\"namePattern\", namePattern)\n"
+#~ " .setMaxResults(50)\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"personsWith\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " address.STREET AS {address.street},\n"
+#~ " address.CITY AS {address.city},\n"
+#~ " address.STATE AS {address.state},\n"
+#~ " address.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS address\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"personsWith\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/"
+#~ ">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " adddress.STREET AS {address.street},\n"
+#~ " adddress.CITY AS {address.city},\n"
+#~ " adddress.STATE AS {address.state},\n"
+#~ " adddress.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS adddress\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
+#~ " <return-scalar column=\"name\" type=\"string\"/>\n"
+#~ " <return-scalar column=\"age\" type=\"long\"/>\n"
+#~ " SELECT p.NAME AS name,\n"
+#~ " p.AGE AS age,\n"
+#~ " FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"mySqlQuery\">\n"
+#~ " <return-scalar column=\"name\" type=\"string\"/>\n"
+#~ " <return-scalar column=\"age\" type=\"long\"/>\n"
+#~ " SELECT p.NAME AS name,\n"
+#~ " p.AGE AS age,\n"
+#~ " FROM PERSON p WHERE p.NAME LIKE 'Hiber%'\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<resultset name=\"personAddress\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/>\n"
+#~ "</resultset>\n"
+#~ "\n"
+#~ "<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " address.STREET AS {address.street},\n"
+#~ " address.CITY AS {address.city},\n"
+#~ " address.STATE AS {address.state},\n"
+#~ " address.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS address\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<resultset name=\"personAddress\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\"/>\n"
+#~ " <return-join alias=\"address\" property=\"person.mailingAddress\"/"
+#~ ">\n"
+#~ "</resultset>\n"
+#~ "\n"
+#~ "<sql-query name=\"personsWith\" resultset-ref=\"personAddress\">\n"
+#~ " SELECT person.NAME AS {person.name},\n"
+#~ " person.AGE AS {person.age},\n"
+#~ " person.SEX AS {person.sex},\n"
+#~ " adddress.STREET AS {address.street},\n"
+#~ " adddress.CITY AS {address.city},\n"
+#~ " adddress.STATE AS {address.state},\n"
+#~ " adddress.ZIP AS {address.zip}\n"
+#~ " FROM PERSON person\n"
+#~ " JOIN ADDRESS adddress\n"
+#~ " ON person.ID = address.PERSON_ID AND address.TYPE='MAILING'\n"
+#~ " WHERE person.NAME LIKE :namePattern\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[List cats = sess.createSQLQuery(\n"
+#~ " \"select {cat.*}, {kitten.*} from cats cat, cats kitten where "
+#~ "kitten.mother = cat.id\"\n"
+#~ " )\n"
+#~ " .setResultSetMapping(\"catAndKitten\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "List cats = sess.createSQLQuery(\n"
+#~ " \"select {cat.*}, {kitten.*} from cats cat, cats kitten where "
+#~ "kitten.mother = cat.id\"\n"
+#~ " )\n"
+#~ " .setResultSetMapping(\"catAndKitten\")\n"
+#~ " .list();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"mySqlQuery\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\">\n"
+#~ " <return-property name=\"name\" column=\"myName\"/>\n"
+#~ " <return-property name=\"age\" column=\"myAge\"/>\n"
+#~ " <return-property name=\"sex\" column=\"mySex\"/>\n"
+#~ " </return>\n"
+#~ " SELECT person.NAME AS myName,\n"
+#~ " person.AGE AS myAge,\n"
+#~ " person.SEX AS mySex,\n"
+#~ " FROM PERSON person WHERE person.NAME LIKE :name\n"
+#~ "</sql-query>\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"mySqlQuery\">\n"
+#~ " <return alias=\"person\" class=\"eg.Person\">\n"
+#~ " <return-property name=\"name\" column=\"myName\"/>\n"
+#~ " <return-property name=\"age\" column=\"myAge\"/>\n"
+#~ " <return-property name=\"sex\" column=\"mySex\"/>\n"
+#~ " </return>\n"
+#~ " SELECT person.NAME AS myName,\n"
+#~ " person.AGE AS myAge,\n"
+#~ " person.SEX AS mySex,\n"
+#~ " FROM PERSON person WHERE person.NAME LIKE :name\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"organizationCurrentEmployments\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
+#~ " </return>\n"
+#~ " SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
+#~ " STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
+#~ " REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT\n"
+#~ " WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
+#~ " ORDER BY STARTDATE ASC\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"organizationCurrentEmployments\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " <return-property name=\"endDate\" column=\"myEndDate\"/>\n"
+#~ " </return>\n"
+#~ " SELECT EMPLOYEE AS {emp.employee}, EMPLOYER AS {emp.employer},\n"
+#~ " STARTDATE AS {emp.startDate}, ENDDATE AS {emp.endDate},\n"
+#~ " REGIONCODE as {emp.regionCode}, EID AS {emp.id}, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT\n"
+#~ " WHERE EMPLOYER = :id AND ENDDATE IS NULL\n"
+#~ " ORDER BY STARTDATE ASC\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[CREATE OR REPLACE FUNCTION selectAllEmployments\n"
+#~ " RETURN SYS_REFCURSOR\n"
+#~ "AS\n"
+#~ " st_cursor SYS_REFCURSOR;\n"
+#~ "BEGIN\n"
+#~ " OPEN st_cursor FOR\n"
+#~ " SELECT EMPLOYEE, EMPLOYER,\n"
+#~ " STARTDATE, ENDDATE,\n"
+#~ " REGIONCODE, EID, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT;\n"
+#~ " RETURN st_cursor;\n"
+#~ " END;]]>"
+#~ msgstr ""
+#~ "CREATE OR REPLACE FUNCTION selectAllEmployments\n"
+#~ " RETURN SYS_REFCURSOR\n"
+#~ "AS\n"
+#~ " st_cursor SYS_REFCURSOR;\n"
+#~ "BEGIN\n"
+#~ " OPEN st_cursor FOR\n"
+#~ " SELECT EMPLOYEE, EMPLOYER,\n"
+#~ " STARTDATE, ENDDATE,\n"
+#~ " REGIONCODE, EID, VALUE, CURRENCY\n"
+#~ " FROM EMPLOYMENT;\n"
+#~ " RETURN st_cursor;\n"
+#~ " END;"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
+#~ " <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
+#~ " <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
+#~ " <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
+#~ " <return-property name=\"regionCode\" column=\"REGIONCODE\"/>\n"
+#~ " <return-property name=\"id\" column=\"EID\"/>\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " </return>\n"
+#~ " { ? = call selectAllEmployments() }\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"selectAllEmployees_SP\" callable=\"true\">\n"
+#~ " <return alias=\"emp\" class=\"Employment\">\n"
+#~ " <return-property name=\"employee\" column=\"EMPLOYEE\"/>\n"
+#~ " <return-property name=\"employer\" column=\"EMPLOYER\"/>\n"
+#~ " <return-property name=\"startDate\" column=\"STARTDATE\"/>\n"
+#~ " <return-property name=\"endDate\" column=\"ENDDATE\"/>\n"
+#~ " <return-property name=\"regionCode\" column=\"REGIONCODE\"/"
+#~ ">\n"
+#~ " <return-property name=\"id\" column=\"EID\"/>\n"
+#~ " <return-property name=\"salary\">\n"
+#~ " <return-column name=\"VALUE\"/>\n"
+#~ " <return-column name=\"CURRENCY\"/>\n"
+#~ " </return-property>\n"
+#~ " </return>\n"
+#~ " { ? = call selectAllEmployments() }\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-"
+#~ "insert>\n"
+#~ " <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-update>\n"
+#~ " <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )"
+#~ "</sql-insert>\n"
+#~ " <sql-update>UPDATE PERSON SET NAME=UPPER(?) WHERE ID=?</sql-"
+#~ "update>\n"
+#~ " <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert callable=\"true\">{call createPerson (?, ?)}</sql-"
+#~ "insert>\n"
+#~ " <sql-delete callable=\"true\">{? = call deletePerson (?)}</sql-"
+#~ "delete>\n"
+#~ " <sql-update callable=\"true\">{? = call updatePerson (?, ?)}</sql-"
+#~ "update>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <sql-insert callable=\"true\">{call createPerson (?, ?)}</"
+#~ "sql-insert>\n"
+#~ " <sql-delete callable=\"true\">{? = call deletePerson (?)}</"
+#~ "sql-delete>\n"
+#~ " <sql-update callable=\"true\">{? = call updatePerson (?, ?)}"
+#~ "</sql-update>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
+#~ "VARCHAR2)\n"
+#~ " RETURN NUMBER IS\n"
+#~ "BEGIN\n"
+#~ "\n"
+#~ " update PERSON\n"
+#~ " set\n"
+#~ " NAME = uname,\n"
+#~ " where\n"
+#~ " ID = uid;\n"
+#~ "\n"
+#~ " return SQL%ROWCOUNT;\n"
+#~ "\n"
+#~ "END updatePerson;]]>"
+#~ msgstr ""
+#~ "CREATE OR REPLACE FUNCTION updatePerson (uid IN NUMBER, uname IN "
+#~ "VARCHAR2)\n"
+#~ " RETURN NUMBER IS\n"
+#~ "BEGIN\n"
+#~ "\n"
+#~ " update PERSON\n"
+#~ " set\n"
+#~ " NAME = uname,\n"
+#~ " where\n"
+#~ " ID = uid;\n"
+#~ "\n"
+#~ " return SQL%ROWCOUNT;\n"
+#~ "\n"
+#~ "END updatePerson;"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/>\n"
+#~ " SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
+#~ " FROM PERSON\n"
+#~ " WHERE ID=?\n"
+#~ " FOR UPDATE\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\" lock-mode=\"upgrade\"/"
+#~ ">\n"
+#~ " SELECT NAME AS {pers.name}, ID AS {pers.id}\n"
+#~ " FROM PERSON\n"
+#~ " WHERE ID=?\n"
+#~ " FOR UPDATE\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <loader query-ref=\"person\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Person\">\n"
+#~ " <id name=\"id\">\n"
+#~ " <generator class=\"increment\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"name\" not-null=\"true\"/>\n"
+#~ " <loader query-ref=\"person\"/>\n"
+#~ "</class>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<set name=\"employments\" inverse=\"true\">\n"
+#~ " <key/>\n"
+#~ " <one-to-many class=\"Employment\"/>\n"
+#~ " <loader query-ref=\"employments\"/>\n"
+#~ "</set>]]>"
+#~ msgstr ""
+#~ "<set name=\"employments\" inverse=\"true\">\n"
+#~ " <key/>\n"
+#~ " <one-to-many class=\"Employment\"/>\n"
+#~ " <loader query-ref=\"employments\"/>\n"
+#~ "</set>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"employments\">\n"
+#~ " <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
+#~ " SELECT {emp.*}\n"
+#~ " FROM EMPLOYMENT emp\n"
+#~ " WHERE EMPLOYER = :id\n"
+#~ " ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"employments\">\n"
+#~ " <load-collection alias=\"emp\" role=\"Person.employments\"/>\n"
+#~ " SELECT {emp.*}\n"
+#~ " FROM EMPLOYMENT emp\n"
+#~ " WHERE EMPLOYER = :id\n"
+#~ " ORDER BY STARTDATE ASC, EMPLOYEE ASC\n"
+#~ "</sql-query>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\"/>\n"
+#~ " <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
+#~ " SELECT NAME AS {pers.*}, {emp.*}\n"
+#~ " FROM PERSON pers\n"
+#~ " LEFT OUTER JOIN EMPLOYMENT emp\n"
+#~ " ON pers.ID = emp.PERSON_ID\n"
+#~ " WHERE ID=?\n"
+#~ "</sql-query>]]>"
+#~ msgstr ""
+#~ "<sql-query name=\"person\">\n"
+#~ " <return alias=\"pers\" class=\"Person\"/>\n"
+#~ " <return-join alias=\"emp\" property=\"pers.employments\"/>\n"
+#~ " SELECT NAME AS {pers.*}, {emp.*}\n"
+#~ " FROM PERSON pers\n"
+#~ " LEFT OUTER JOIN EMPLOYMENT emp\n"
+#~ " ON pers.ID = emp.PERSON_ID\n"
+#~ " WHERE ID=?\n"
+#~ "</sql-query>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/session_api.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,27 @@
+# translation of session_api.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: session_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-12-04 14:00+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: session_api.xml:29
#, no-c-format
msgid "Working with objects"
msgstr "ä¸å¯¹è±¡å
±äº"
#. Tag: para
-#: session_api.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate is a full object/relational mapping solution that not only shields "
"the developer from the details of the underlying database management system, "
@@ -27,13 +30,12 @@
"JDBC/SQL persistence layers, a natural object-oriented view of persistence "
"in Java applications."
msgstr ""
-"Hibernateæ¯å®æ´ç对象/å
³ç³»æ å°è§£å³æ¹æ¡ï¼å®æä¾äºå¯¹è±¡<emphasis>ç¶æç®¡ç(state "
-"management)</emphasis>çåè½ï¼ä½¿å¼åè
ä¸åéè¦çä¼åºå±æ°æ®åºç³»ç»çç»èã ä¹å°±"
-"æ¯è¯´ï¼ç¸å¯¹äºå¸¸è§çJDBC/SQLæä¹
屿¹æ¡ä¸éè¦<literal>管çSQLè¯å¥</literal>ï¼"
-"Hibernateéç¨äºæ´èªç¶çé¢å对象çè§è§æ¥æä¹
åJavaåºç¨ä¸çæ°æ®ã"
+"Hibernate æ¯å®æ´ç对象/å
³ç³»æ å°è§£å³æ¹æ¡ï¼å®æä¾äºå¯¹è±¡<emphasis>ç¶æç®¡ç"
+"ï¼state managementï¼</emphasis>çåè½ï¼ä½¿å¼åè
ä¸åéè¦çä¼åºå±æ°æ®åºç³»ç»çç»"
+"èãä¹å°±æ¯è¯´ï¼ç¸å¯¹äºå¸¸è§ç JDBC/SQL æä¹
屿¹æ¡ä¸éè¦<literal>管ç SQL è¯å¥</"
+"literal>ï¼Hibernate éç¨äºæ´èªç¶çé¢å对象çè§è§æ¥æä¹
å Java åºç¨ä¸çæ°æ®ã "
#. Tag: para
-#: session_api.xml:40
#, no-c-format
msgid ""
"In other words, Hibernate application developers should always think about "
@@ -42,25 +44,22 @@
"is only relevant for the application developer when tuning the performance "
"of the system."
msgstr ""
-"æ¢å¥è¯è¯´ï¼ä½¿ç¨Hibernateçå¼åè
åºè¯¥æ»æ¯å
³æ³¨å¯¹è±¡ç<emphasis>ç¶æ(state)</"
-"emphasis>ï¼ä¸å¿
èèSQLè¯å¥çæ§è¡ã è¿é¨åç»èå·²ç»ç±Hibernateæç®¡å¦¥å½ï¼åªæå¼"
-"åè
å¨è¿è¡ç³»ç»æ§è½è°ä¼çæ¶åæéè¦è¿è¡äºè§£ã"
+"æ¢å¥è¯è¯´ï¼ä½¿ç¨ Hibernate çå¼åè
åºè¯¥æ»æ¯å
³æ³¨å¯¹è±¡ç<emphasis>ç¶æï¼stateï¼</"
+"emphasis>ï¼ä¸å¿
èè SQL è¯å¥çæ§è¡ãè¿é¨åç»èå·²ç»ç± Hibernate æç®¡å¦¥å½ï¼åªæ"
+"å¼åè
å¨è¿è¡ç³»ç»æ§è½è°ä¼çæ¶åæéè¦è¿è¡äºè§£ã"
#. Tag: title
-#: session_api.xml:48
#, no-c-format
msgid "Hibernate object states"
-msgstr "Hibernateå¯¹è±¡ç¶æ(object states)"
+msgstr "Hibernate å¯¹è±¡ç¶æï¼object statesï¼"
#. Tag: para
-#: session_api.xml:50
#, no-c-format
msgid "Hibernate defines and supports the following object states:"
-msgstr "Hibernateå®ä¹å¹¶æ¯æä¸åå¯¹è±¡ç¶æ(state):"
+msgstr "Hibernate å®ä¹å¹¶æ¯æä¸åå¯¹è±¡ç¶æï¼stateï¼ï¼"
#. Tag: para
-#: session_api.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transient</emphasis> - an object is transient if it has just been "
"instantiated using the <literal>new</literal> operator, and it is not "
@@ -72,16 +71,16 @@
"take care of the SQL statements that need to be executed for this "
"transition)."
msgstr ""
-"<emphasis>ç¬æ¶(Transient)</emphasis> - ç±<literal>new</literal>æä½ç¬¦å建ï¼ä¸"
-"å°æªä¸Hibernate <literal>Session</literal> å
³èç对象被认å®ä¸ºç¬æ¶(Transient)"
-"çãç¬æ¶(Transient)对象ä¸ä¼è¢«æä¹
åå°æ°æ®åºä¸ï¼ä¹ä¸ä¼è¢«èµäºæä¹
åæ è¯"
-"(identifier)ã å¦æç¬æ¶(Transient)对象å¨ç¨åºä¸æ²¡æè¢«å¼ç¨ï¼å®ä¼è¢«åå¾åæ¶å¨"
-"(garbage collector)鿝ã 使ç¨Hibernate <literal>Session</literal>å¯ä»¥å°å
¶å"
-"为æä¹
(Persistent)ç¶æã(Hibernateä¼èªå¨æ§è¡å¿
è¦çSQLè¯å¥)"
+"<emphasis>ç¬æ¶ï¼Transientï¼</emphasis> â ç± <literal>new</literal> æä½ç¬¦å"
+"建ï¼ä¸å°æªä¸Hibernate <literal>Session</literal> å
³èç对象被认å®ä¸ºç¬æ¶"
+"ï¼Transientï¼çãç¬æ¶ï¼Transientï¼å¯¹è±¡ä¸ä¼è¢«æä¹
åå°æ°æ®åºä¸ï¼ä¹ä¸ä¼è¢«èµäºæ"
+"ä¹
åæ è¯ï¼identifierï¼ã å¦æç¬æ¶ï¼Transientï¼å¯¹è±¡å¨ç¨åºä¸æ²¡æè¢«å¼ç¨ï¼å®ä¼è¢«"
+"åå¾åæ¶å¨ï¼garbage collectorï¼éæ¯ã ä½¿ç¨ Hibernate <literal>Session</"
+"literal>å¯ä»¥å°å
¶å为æä¹
ï¼Persistentï¼ç¶æãï¼Hibernateä¼èªå¨æ§è¡å¿
è¦çSQLè¯"
+"å¥ï¼ "
#. Tag: para
-#: session_api.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Persistent</emphasis> - a persistent instance has a representation "
"in the database and an identifier value. It might just have been saved or "
@@ -92,18 +91,17 @@
"statements, or <literal>DELETE</literal> statements when an object should be "
"made transient."
msgstr ""
-"<emphasis>æä¹
(Persistent)</emphasis> - æä¹
(Persistent)çå®ä¾å¨æ°æ®åºä¸æå¯¹"
-"åºçè®°å½ï¼å¹¶æ¥æä¸ä¸ªæä¹
åæ è¯(identifier)ã æä¹
(Persistent)çå®ä¾å¯è½æ¯å被"
-"ä¿åçï¼æå被å è½½çï¼æ 论åªä¸ç§ï¼æå®ä¹ï¼å®åå¨äºç¸å
³èç<literal>Session</"
-"literal>ä½ç¨èå´å
ã Hibernate伿£æµå°å¤äºæä¹
(Persistent)ç¶æç对象ç任使¹"
-"å¨ï¼å¨å½åæä½åå
(unit of work)æ§è¡å®æ¯æ¶å°å¯¹è±¡æ°æ®(state)䏿°æ®åºåæ¥"
-"(synchronize)ã å¼åè
ä¸éè¦æå¨æ§è¡<literal>UPDATE</literal>ãå°å¯¹è±¡ä»æä¹
"
-"(Persistent)ç¶æåæç¬æ¶(Transient)ç¶æåæ ·ä¹ä¸éè¦æå¨æ§è¡<literal>DELETE</"
-"literal>è¯å¥ã"
+"<emphasis>æä¹
ï¼Persistentï¼</emphasis> â æä¹
ï¼Persistentï¼çå®ä¾å¨æ°æ®åºä¸"
+"æå¯¹åºçè®°å½ï¼å¹¶æ¥æä¸ä¸ªæä¹
åæ è¯ï¼identifierï¼ã æä¹
ï¼Persistentï¼çå®ä¾å¯"
+"è½æ¯å被ä¿åçï¼æå被å è½½çï¼æ 论åªä¸ç§ï¼æå®ä¹ï¼å®åå¨äºç¸å
³èç"
+"<literal>Session</literal>ä½ç¨èå´å
ã Hibernate伿£æµå°å¤äºæä¹
"
+"ï¼Persistentï¼ç¶æç对象ç任使¹å¨ï¼å¨å½åæä½åå
ï¼unit of workï¼æ§è¡å®æ¯æ¶"
+"å°å¯¹è±¡æ°æ®ï¼stateï¼ä¸æ°æ®åºåæ¥ï¼synchronizeï¼ã å¼åè
ä¸éè¦æå¨æ§è¡"
+"<literal>UPDATE</literal>ãå°å¯¹è±¡ä»æä¹
ï¼Persistentï¼ç¶æåæç¬æ¶"
+"ï¼Transientï¼ç¶æåæ ·ä¹ä¸éè¦æå¨æ§è¡ <literal>DELETE</literal> è¯å¥ã "
#. Tag: para
-#: session_api.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached</emphasis> - a detached instance is an object that has "
"been persistent, but its <literal>Session</literal> has been closed. The "
@@ -115,58 +113,43 @@
"them <emphasis>application transactions</emphasis>, i.e., a unit of work "
"from the point of view of the user."
msgstr ""
-"<emphasis>è±ç®¡(Detached)</emphasis> - 䏿ä¹
(Persistent)对象å
³èç"
-"<literal>Session</literal>被å
³éåï¼å¯¹è±¡å°±å为è±ç®¡(Detached)çã 对è±ç®¡"
-"(Detached)对象çå¼ç¨ä¾ç¶ææï¼å¯¹è±¡å¯ç»§ç»è¢«ä¿®æ¹ãè±ç®¡(Detached)å¯¹è±¡å¦æéæ°å
³"
-"èå°æä¸ªæ°ç<literal>Session</literal>ä¸ï¼ ä¼å次转å为æä¹
(Persistent)ç(å¨"
-"Detachedå
¶é´çæ¹å¨å°è¢«æä¹
åå°æ°æ®åº)ã è¿ä¸ªåè½ä½¿å¾ä¸ç§ç¼ç¨æ¨¡åï¼å³ä¸é´ä¼ç»"
-"ç¨æ·æèæ¶é´(user think-time)çé¿æ¶é´è¿è¡çæä½åå
(unit of work)çç¼ç¨æ¨¡åæ"
-"为å¯è½ã æä»¬ç§°ä¹ä¸º<emphasis>åºç¨ç¨åºäºå¡</emphasis>ï¼å³ä»ç¨æ·è§ç¹çæ¯ä¸ä¸ªæ"
-"ä½åå
(unit of work)ã"
+"<emphasis>è±ç®¡ï¼Detachedï¼</emphasis> â 䏿ä¹
ï¼Persistentï¼å¯¹è±¡å
³èç"
+"<literal>Session</literal>被å
³éåï¼å¯¹è±¡å°±å为è±ç®¡ï¼Detachedï¼çã对è±ç®¡"
+"ï¼Detachedï¼å¯¹è±¡çå¼ç¨ä¾ç¶ææï¼å¯¹è±¡å¯ç»§ç»è¢«ä¿®æ¹ãè±ç®¡ï¼Detachedï¼å¯¹è±¡å¦æé"
+"æ°å
³èå°æä¸ªæ°ç <literal>Session</literal> ä¸ï¼ ä¼å次转å为æä¹
"
+"ï¼Persistentï¼çï¼å¨Detachedå
¶é´çæ¹å¨å°è¢«æä¹
åå°æ°æ®åºï¼ã è¿ä¸ªåè½ä½¿å¾ä¸ç§"
+"ç¼ç¨æ¨¡åï¼å³ä¸é´ä¼ç»ç¨æ·æèæ¶é´ï¼user think-timeï¼çé¿æ¶é´è¿è¡çæä½åå
"
+"ï¼unit of workï¼çç¼ç¨æ¨¡åæä¸ºå¯è½ãæä»¬ç§°ä¹ä¸º<emphasis>åºç¨ç¨åºäºå¡</"
+"emphasis>ï¼å³ä»ç¨æ·è§ç¹çæ¯ä¸ä¸ªæä½åå
ï¼unit of workï¼ã "
#. Tag: para
-#: session_api.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will now discuss the states and state transitions (and the Hibernate "
"methods that trigger a transition) in more detail."
msgstr ""
-"æ¥ä¸æ¥æä»¬æ¥ç»è´ç讨论ä¸ç¶æ(states)åç¶æé´ç转æ¢(state transitions)ï¼ä»¥å触"
-"åç¶æè½¬æ¢çHibernateæ¹æ³ï¼ã"
+"æ¥ä¸æ¥æä»¬æ¥ç»è´å°è®¨è®ºä¸ç¶æï¼statesï¼åç¶æé´ç转æ¢ï¼state transitionsï¼ï¼ä»¥"
+"å触åç¶æè½¬æ¢ç Hibernate æ¹æ³ï¼ã "
#. Tag: title
-#: session_api.xml:101
#, no-c-format
msgid "Making objects persistent"
msgstr "使对象æä¹
å"
#. Tag: para
-#: session_api.xml:103
#, no-c-format
msgid ""
"Newly instantiated instances of a a persistent class are considered "
"<emphasis>transient</emphasis> by Hibernate. We can make a transient "
"instance <emphasis>persistent</emphasis> by associating it with a session:"
msgstr ""
-"Hibernate认为æä¹
åç±»(persistent class)æ°å®ä¾åç对象æ¯<emphasis>ç¬æ¶"
-"(Transient)</emphasis>çã æä»¬å¯éè¿å°ç¬æ¶(Transient)对象ä¸sessionå
³èèæå®"
-"å为<emphasis>æä¹
(Persistent)</emphasis>çã"
+"Hibernate 认为æä¹
åç±»ï¼persistent classï¼æ°å®ä¾åç对象æ¯<emphasis>ç¬æ¶"
+"ï¼Transientï¼</emphasis>çãæä»¬å¯éè¿å°ç¬æ¶ï¼Transientï¼å¯¹è±¡ä¸ session å
³è"
+"èæå®å为<emphasis>æä¹
ï¼Persistentï¼</emphasis>çã"
-#. Tag: programlisting
-#: session_api.xml:110
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat fritz = new DomesticCat();\n"
-"fritz.setColor(Color.GINGER);\n"
-"fritz.setSex('M');\n"
-"fritz.setName(\"Fritz\");\n"
-"Long generatedId = (Long) sess.save(fritz);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:112
-#, fuzzy, no-c-format
-msgid ""
"If <literal>Cat</literal> has a generated identifier, the identifier is "
"generated and assigned to the <literal>cat</literal> when <literal>save()</"
"literal> is called. If <literal>Cat</literal> has an <literal>assigned</"
@@ -176,17 +159,17 @@
"<literal>save()</literal>, with the semantics defined in the EJB3 early "
"draft."
msgstr ""
-"妿<literal>Cat</literal>çæä¹
åæ è¯(identifier)æ¯<literal>generated</"
-"literal>ç±»åçï¼ é£ä¹è¯¥æ è¯(identifier)ä¼èªå¨å¨<literal>save()</literal>被è°"
-"ç¨æ¶äº§çå¹¶åé
ç»<literal>cat</literal>ã 妿<literal>Cat</literal>çæä¹
åæ "
-"è¯(identifier)æ¯<literal>assigned</literal>ç±»åçï¼ææ¯ä¸ä¸ªå¤å主é®"
-"(composite key)ï¼ é£ä¹è¯¥æ è¯(identifier)åºå½å¨è°ç¨<literal>save()</literal>ä¹"
-"åæå¨èµäºç»<literal>cat</literal>ã ä½ ä¹å¯ä»¥æç
§EJB3 early draftä¸å®ä¹çè¯"
-"ä¹ï¼ä½¿ç¨<literal>persist()</literal>æ¿ä»£<literal>save()</literal>ã"
+"妿 <literal>Cat</literal> çæä¹
åæ è¯ï¼identifierï¼æ¯ <literal>generated</"
+"literal> ç±»åçï¼ é£ä¹è¯¥æ è¯ï¼identifierï¼ä¼èªå¨å¨ <literal>save()</literal> "
+"被è°ç¨æ¶äº§çå¹¶åé
ç» <literal>cat</literal>ã妿 <literal>Cat</literal> çæ"
+"ä¹
åæ è¯ï¼identifierï¼æ¯<literal>assigned</literal>ç±»åçï¼ææ¯ä¸ä¸ªå¤å主é®"
+"ï¼composite keyï¼ï¼é£ä¹è¯¥æ è¯ï¼identifierï¼åºå½å¨è°ç¨ <literal>save()</"
+"literal> ä¹åæå¨èµäºç» <literal>cat</literal>ãä½ ä¹å¯ä»¥æç
§ EJB3 early "
+"draft ä¸å®ä¹çè¯ä¹ï¼ä½¿ç¨ <literal>persist()</literal> æ¿ä»£<literal>save()</"
+"literal>ã "
#. Tag: para
-#: session_api.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>persist()</literal> makes a transient instance persistent. However, "
"it does not guarantee that the identifier value will be assigned to the "
@@ -196,16 +179,12 @@
"boundaries. This is useful in long-running conversations with an extended "
"Session/persistence context."
msgstr ""
-"<literal>persist()</literal> makes a transient instance persistent. However, "
-"it doesn't guarantee that the identifier value will be assigned to the "
-"persistent instance immediately, the assignment might happen at flush time. "
-"<literal>persist()</literal> also guarantees that it will not execute an "
-"<literal>INSERT</literal> statement if it is called outside of transaction "
-"boundaries. This is useful in long-running conversations with an extended "
-"Session/persistence context."
+"<literal>persist()</literal> 使ä¸ä¸ªä¸´æ¶å®ä¾æä¹
åãç¶èï¼å®ä¸ä¿è¯ç«å³ææ è¯ç¬¦"
+"å¼åé
ç»æä¹
æ§å®ä¾ï¼è¿ä¼åçå¨å²å·ï¼flushï¼çæ¶åã<literal>persist()</"
+"literal> ä¹ä¿è¯å®å¨äºå¡è¾¹çå¤è°ç¨æ¶ä¸ä¼æ§è¡ <literal>INSERT</literal> è¯å¥ã"
+"è¿å¯¹äºé¿æè¿è¡çå¸¦ææ©å±ä¼è¯/æä¹
åä¸ä¸æçä¼è¯æ¯å¾æç¨çã"
#. Tag: para
-#: session_api.xml:135
#, no-c-format
msgid ""
"<literal>save()</literal> does guarantee to return an identifier. If an "
@@ -214,37 +193,21 @@
"you are inside or outside of a transaction. This is problematic in a long-"
"running conversation with an extended Session/persistence context."
msgstr ""
-"<literal>save()</literal> does guarantee to return an identifier. If an "
-"INSERT has to be executed to get the identifier ( e.g. \"identity\" "
-"generator, not \"sequence\"), this INSERT happens immediately, no matter if "
-"you are inside or outside of a transaction. This is problematic in a long-"
-"running conversation with an extended Session/persistence context."
+"<literal>save()</literal> ä¿è¯è¿åä¸ä¸ªæ è¯ç¬¦ã妿éè¦è¿è¡ INSERT æ¥è·åæ è¯"
+"符ï¼å¦ \"identity\" èé \"sequence\" çæå¨ï¼ï¼è¿ä¸ª INSERT å°ç«å³æ§è¡ï¼ä¸ç®¡"
+"ä½ æ¯å¦å¨äºå¡å
é¨è¿æ¯å¤é¨ãè¿å¯¹äºé¿æè¿è¡çå¸¦ææ©å±ä¼è¯/æä¹
åä¸ä¸æçä¼è¯æ¥è¯´"
+"ä¼åºç°é®é¢ã"
#. Tag: para
-#: session_api.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Alternatively, you can assign the identifier using an overloaded version of "
"<literal>save()</literal>."
-msgstr "æ¤å¤ï¼ä½ å¯ä»¥ç¨ä¸ä¸ªéè½½çæ¬ç<literal>save()</literal>æ¹æ³ã"
+msgstr "æ¤å¤ï¼ä½ å¯ä»¥ç¨ä¸ä¸ªéè½½çæ¬ç <literal>save()</literal> æ¹æ³ã "
-#. Tag: programlisting
-#: session_api.xml:150
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat pk = new DomesticCat();\n"
-"pk.setColor(Color.TABBY);\n"
-"pk.setSex('F');\n"
-"pk.setName(\"PK\");\n"
-"pk.setKittens( new HashSet() );\n"
-"pk.addKitten(fritz);\n"
-"sess.save( pk, new Long(1234) );]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:152
-#, fuzzy, no-c-format
-msgid ""
"If the object you make persistent has associated objects (e.g. the "
"<literal>kittens</literal> collection in the previous example), these "
"objects can be made persistent in any order you like unless you have a "
@@ -253,16 +216,15 @@
"violate a <literal>NOT NULL</literal> constraint if you <literal>save()</"
"literal> the objects in the wrong order."
msgstr ""
-"å¦æä½ æä¹
åç对象æå
³èç对象(associated objects)ï¼ä¾å¦ä¸ä¾ä¸ç"
-"<literal>kittens</literal>éåï¼ é£ä¹å¯¹è¿äºå¯¹è±¡ï¼è¯æ³¨ï¼pkåkittensï¼è¿è¡æä¹
"
-"åçé¡ºåºæ¯ä»»æçï¼ä¹å°±æ¯è¯´å¯ä»¥å
对kittensè¿è¡æä¹
åä¹å¯ä»¥å
对pkè¿è¡æä¹
"
-"åï¼ï¼ é¤éä½ å¨å¤é®å䏿<literal>NOT NULL</literal>约æã Hibernateä¸ä¼è¿å"
-"å¤é®çº¦æï¼ä½æ¯å¦æä½ ç¨é误çé¡ºåºæä¹
å对象ï¼è¯æ³¨ï¼å¨pkæä¹
åä¹åæä¹
å"
-"kittenï¼ï¼é£ä¹å¯è½ä¼è¿å<literal>NOT NULL</literal>约æã"
+"å¦æä½ æä¹
åç对象æå
³èç对象ï¼associated objectsï¼ï¼ä¾å¦ä¸ä¾ä¸ç "
+"<literal>kittens</literal> éåï¼ é£ä¹å¯¹è¿äºå¯¹è±¡ï¼è¯æ³¨ï¼pk å kittensï¼è¿è¡æ"
+"ä¹
åçé¡ºåºæ¯ä»»æçï¼ä¹å°±æ¯è¯´å¯ä»¥å
对 kittens è¿è¡æä¹
åä¹å¯ä»¥å
对 pk è¿è¡æä¹
"
+"åï¼ï¼ é¤éä½ å¨å¤é®å䏿 <literal>NOT NULL</literal> 约æã Hibernate ä¸ä¼è¿"
+"åå¤é®çº¦æï¼ä½æ¯å¦æä½ ç¨é误çé¡ºåºæä¹
å对象ï¼è¯æ³¨ï¼å¨ pk æä¹
åä¹åæä¹
å"
+"kittenï¼ï¼é£ä¹å¯è½ä¼è¿å <literal>NOT NULL</literal> 约æã "
#. Tag: para
-#: session_api.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Usually you do not bother with this detail, as you will normally use "
"Hibernate's <emphasis>transitive persistence</emphasis> feature to save the "
@@ -270,68 +232,38 @@
"constraint violations do not occur - Hibernate will take care of everything. "
"Transitive persistence is discussed later in this chapter."
msgstr ""
-"éå¸¸ä½ ä¸ä¼ä¸ºè¿äºç»èç¦å¿ï¼å ä¸ºä½ å¾å¯è½ä¼ä½¿ç¨Hibernateç <emphasis>ä¼ ææ§æä¹
"
-"å(transitive persistence)</emphasis>åè½èªå¨ä¿åç¸å
³èé£äºå¯¹è±¡ã è¿æ ·è¿è¿å"
-"<literal>NOT NULL</literal>约æçæ
åµé½ä¸ä¼åºç°äº - Hibernateä¼ç®¡å¥½ææçäº"
-"æ
ã ä¼ ææ§æä¹
å(transitive persistence)å°å¨æ¬ç« ç¨å讨论ã"
+"éå¸¸ä½ ä¸ä¼ä¸ºè¿äºç»èç¦å¿ï¼å ä¸ºä½ å¾å¯è½ä¼ä½¿ç¨ Hibernate ç<emphasis>ä¼ ææ§æä¹
"
+"åï¼transitive persistenceï¼</emphasis>åè½èªå¨ä¿åç¸å
³èé£äºå¯¹è±¡ãè¿æ ·è¿è¿"
+"å <literal>NOT NULL</literal> 约æçæ
åµé½ä¸ä¼åºç°äº â Hibernate ä¼ç®¡å¥½ææ"
+"çäºæ
ãä¼ ææ§æä¹
åï¼transitive persistenceï¼å°å¨æ¬ç« ç¨å讨论ã"
#. Tag: title
-#: session_api.xml:173
#, no-c-format
msgid "Loading an object"
msgstr "è£
载对象"
#. Tag: para
-#: session_api.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>load()</literal> methods of <literal>Session</literal> provide "
"a way of retrieving a persistent instance if you know its identifier. "
"<literal>load()</literal> takes a class object and loads the state into a "
"newly instantiated instance of that class in a persistent state."
msgstr ""
-"å¦æä½ ç¥éæä¸ªå®ä¾çæä¹
åæ è¯(identifier)ï¼ä½ å°±å¯ä»¥ä½¿ç¨<literal>Session</"
-"literal>ç<literal>load()</literal>æ¹æ³ æ¥è·åå®ã <literal>load()</literal>"
-"çå¦ä¸ä¸ªåæ°æ¯æå®ç±»ç.classå¯¹è±¡ã æ¬æ¹æ³ä¼å建æå®ç±»çæä¹
åå®ä¾ï¼å¹¶ä»æ°æ®åº"
-"å è½½å
¶æ°æ®(state)ã"
+"å¦æä½ ç¥éæä¸ªå®ä¾çæä¹
åæ è¯ï¼identifierï¼ï¼ä½ å°±å¯ä»¥ä½¿ç¨ <literal>Session</"
+"literal> ç <literal>load()</literal> æ¹æ³æ¥è·åå®ã<literal>load()</"
+"literal> çå¦ä¸ä¸ªåæ°æ¯æå®ç±»çå¯¹è±¡ãæ¬æ¹æ³ä¼å建æå®ç±»çæä¹
åå®ä¾ï¼å¹¶ä»æ°æ®"
+"åºå è½½å
¶æ°æ®ï¼stateï¼ã "
-#. Tag: programlisting
-#: session_api.xml:182
-#, no-c-format
-msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:184
-#, no-c-format
-msgid ""
-"<![CDATA[// you need to wrap primitive identifiers\n"
-"long id = 1234;\n"
-"DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
-"(id) );]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:186
#, no-c-format
msgid "Alternatively, you can load state into a given instance:"
msgstr ""
-"æ¤å¤, ä½ å¯ä»¥ææ°æ®(state)å è½½å°æå®ç对象å®ä¾ä¸ï¼è¦çæè¯¥å®ä¾åæ¥çæ°æ®ï¼ã"
+"æ¤å¤ï¼ä½ å¯ä»¥ææ°æ®ï¼stateï¼å è½½å°æå®ç对象å®ä¾ä¸ï¼è¦çæè¯¥å®ä¾åæ¥çæ°æ®ï¼ã"
-#. Tag: programlisting
-#: session_api.xml:190
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = new DomesticCat();\n"
-"// load pk's state into cat\n"
-"sess.load( cat, new Long(pkId) );\n"
-"Set kittens = cat.getKittens();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:192
-#, fuzzy, no-c-format
-msgid ""
"Be aware that <literal>load()</literal> will throw an unrecoverable "
"exception if there is no matching database row. If the class is mapped with "
"a proxy, <literal>load()</literal> just returns an uninitialized proxy and "
@@ -341,110 +273,79 @@
"be loaded as a batch if <literal>batch-size</literal> is defined for the "
"class mapping."
msgstr ""
-"请注æå¦ææ²¡æå¹é
çæ°æ®åºè®°å½ï¼<literal>load()</literal>æ¹æ³å¯è½æåºæ æ³æ¢å¤"
-"çå¼å¸¸(unrecoverable exception)ã å¦æç±»çæ å°ä½¿ç¨äºä»£ç(proxy)ï¼"
-"<literal>load()</literal>æ¹æ³ä¼è¿åä¸ä¸ªæªåå§åç代çï¼ç´å°ä½ è°ç¨è¯¥ä»£ççææ¹"
-"æ³æ¶æä¼å»è®¿é®æ°æ®åºã è¥ä½ å¸æå¨æå¯¹è±¡ä¸å建ä¸ä¸ªæåå¦ä¸ä¸ªå¯¹è±¡çå
³èï¼å䏿³"
-"å¨ä»æ°æ®åºä¸è£
载该对象æ¶åæ¶è£
è½½ç¸å
³èçé£ä¸ªå¯¹è±¡ï¼é£ä¹è¿ç§æä½æ¹å¼å°±ç¨å¾ä¸ç"
-"äºã å¦æä¸ºç¸åºç±»æ å°å
³ç³»è®¾ç½®äº<literal>batch-size</literal>ï¼ é£ä¹ä½¿ç¨è¿ç§æ"
-"使¹å¼å
许å¤ä¸ªå¯¹è±¡è¢«ä¸æ¹è£
è½½ï¼å 为è¿åçæ¯ä»£çï¼æ é仿°æ®åºä¸æåææå¯¹è±¡ç"
-"æ°æ®ï¼ã"
+"请注æå¦ææ²¡æå¹é
çæ°æ®åºè®°å½ï¼<literal>load()</literal> æ¹æ³å¯è½æåºæ æ³æ¢"
+"å¤çå¼å¸¸ï¼unrecoverable exceptionï¼ãå¦æç±»çæ å°ä½¿ç¨äºä»£çï¼proxyï¼ï¼"
+"<literal>load()</literal> æ¹æ³ä¼è¿åä¸ä¸ªæªåå§åç代çï¼ç´å°ä½ è°ç¨è¯¥ä»£ççæ"
+"æ¹æ³æ¶æä¼å»è®¿é®æ°æ®åºã è¥ä½ å¸æå¨æå¯¹è±¡ä¸å建ä¸ä¸ªæåå¦ä¸ä¸ªå¯¹è±¡çå
³èï¼åä¸"
+"æ³å¨ä»æ°æ®åºä¸è£
载该对象æ¶åæ¶è£
è½½ç¸å
³èçé£ä¸ªå¯¹è±¡ï¼é£ä¹è¿ç§æä½æ¹å¼å°±ç¨å¾ä¸"
+"çäºãå¦æä¸ºç¸åºç±»æ å°å
³ç³»è®¾ç½®äº <literal>batch-size</literal>ï¼é£ä¹ä½¿ç¨è¿ç§"
+"æä½æ¹å¼å
许å¤ä¸ªå¯¹è±¡è¢«ä¸æ¹è£
è½½ï¼å 为è¿åçæ¯ä»£çï¼æ é仿°æ®åºä¸æåææå¯¹è±¡"
+"çæ°æ®ï¼ã "
#. Tag: para
-#: session_api.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are not certain that a matching row exists, you should use the "
"<literal>get()</literal> method which hits the database immediately and "
"returns null if there is no matching row."
msgstr ""
-"å¦æä½ ä¸ç¡®å®æ¯å¦æå¹é
çè¡åå¨ï¼åºè¯¥ä½¿ç¨<literal>get()</literal>æ¹æ³ï¼å®ä¼ç«"
-"å»è®¿é®æ°æ®åºï¼å¦ææ²¡æå¯¹åºçè®°å½ï¼ä¼è¿ånullã"
+"å¦æä½ ä¸ç¡®å®æ¯å¦æå¹é
çè¡åå¨ï¼åºè¯¥ä½¿ç¨ <literal>get()</literal> æ¹æ³ï¼å®ä¼"
+"ç«å»è®¿é®æ°æ®åºï¼å¦ææ²¡æå¯¹åºçè®°å½ï¼ä¼è¿å nullã "
-#. Tag: programlisting
-#: session_api.xml:209
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
-"if (cat==null) {\n"
-" cat = new Cat();\n"
-" sess.save(cat, id);\n"
-"}\n"
-"return cat;]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:211
-#, fuzzy, no-c-format
-msgid ""
"You can even load an object using an SQL <literal>SELECT ... FOR UPDATE</"
"literal>, using a <literal>LockMode</literal>. See the API documentation for "
"more information."
msgstr ""
-"ä½ çè³å¯ä»¥éç¨æä¸ª<literal>LockMode</literal>ï¼ç¨SQLç<literal>SELECT ... "
-"FOR UPDATE</literal>è£
载对象ã 请æ¥é
APIææ¡£ä»¥è·åæ´å¤ä¿¡æ¯ã"
+"ä½ çè³å¯ä»¥éç¨æä¸ª <literal>LockMode</literal>ï¼ç¨ SQL ç "
+"<literal>SELECT ... FOR UPDATE</literal> è£
载对象ã 请æ¥é
API ææ¡£ä»¥è·åæ´å¤"
+"ä¿¡æ¯ã "
-#. Tag: programlisting
-#: session_api.xml:216
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:218
-#, fuzzy, no-c-format
msgid ""
"Any associated instances or contained collections will <emphasis>not</"
"emphasis> be selected <literal>FOR UPDATE</literal>, unless you decide to "
"specify <literal>lock</literal> or <literal>all</literal> as a cascade style "
"for the association."
msgstr ""
-"注æï¼ä»»ä½å
³èç对象æè
å
å«çéåé½<emphasis>ä¸ä¼</emphasis>被以"
-"<literal>FOR UPDATE</literal>æ¹å¼è¿åï¼ é¤éä½ æå®äº<literal>lock</literal>æ"
-"è
<literal>all</literal>ä½ä¸ºå
³è(association)ç级è飿 ¼(cascade style)ã"
+"注æï¼ä»»ä½å
³èç对象æè
å
å«çéåé½<emphasis>ä¸ä¼</emphasis>被以 "
+"<literal>FOR UPDATE</literal> æ¹å¼è¿åï¼ é¤éä½ æå®äº <literal>lock</"
+"literal> æè
<literal>all</literal> ä½ä¸ºå
³èï¼associationï¼ç级è飿 ¼"
+"ï¼cascade styleï¼ã "
#. Tag: para
-#: session_api.xml:225
#, no-c-format
msgid ""
"It is possible to re-load an object and all its collections at any time, "
"using the <literal>refresh()</literal> method. This is useful when database "
"triggers are used to initialize some of the properties of the object."
msgstr ""
-"任使¶åé½å¯ä»¥ä½¿ç¨<literal>refresh()</literal>æ¹æ³å¼ºè¿«è£
载对象åå®çéåãå¦"
-"æä½ ä½¿ç¨æ°æ®åºè§¦åå¨åè½æ¥å¤ç对象çæäºå±æ§ï¼è¿ä¸ªæ¹æ³å°±å¾æç¨äºã"
+"任使¶åé½å¯ä»¥ä½¿ç¨ <literal>refresh()</literal> æ¹æ³å¼ºè¿«è£
载对象åå®çéåã"
+"å¦æä½ ä½¿ç¨æ°æ®åºè§¦åå¨åè½æ¥å¤ç对象çæäºå±æ§ï¼è¿ä¸ªæ¹æ³å°±å¾æç¨äºã"
-#. Tag: programlisting
-#: session_api.xml:231
-#, no-c-format
-msgid ""
-"<![CDATA[sess.save(cat);\n"
-"sess.flush(); //force the SQL INSERT\n"
-"sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:233
#, fuzzy, no-c-format
msgid ""
"How much does Hibernate load from the database and how many SQL "
"<literal>SELECT</literal>s will it use? This depends on the "
"<emphasis>fetching strategy</emphasis>. This is explained in <xref linkend="
-"\"performance-fetching\"/>."
+"\"performance-fetching\" />."
msgstr ""
-"æ¤å¤é常ä¼åºç°ä¸ä¸ªéè¦é®é¢: Hibernateä¼ä»æ°æ®åºä¸è£
è½½å¤å°ä¸è¥¿ï¼ä¼æ§è¡å¤å°æ¡ç¸"
-"åºçSQL<literal>SELECT</literal>è¯å¥ï¼ è¿åå³äº<emphasis>æåçç¥(fetching "
-"strategy)</emphasis>ï¼ä¼å¨<xref linkend=\"performance-fetching\"/>ä¸è§£éã"
+"æ¤å¤é常ä¼åºç°ä¸ä¸ªéè¦é®é¢: Hibernate ä¼ä»æ°æ®åºä¸è£
è½½å¤å°ä¸è¥¿ï¼ä¼æ§è¡å¤å°æ¡"
+"ç¸åºç SQL<literal>SELECT</literal> è¯å¥ï¼è¿åå³äº<emphasis>æåçç¥"
+"ï¼fetching strategyï¼</emphasis>ï¼æä»¬ä¼å¨ <xref linkend=\"performance-"
+"fetching\" /> ä¸è§£éã "
#. Tag: title
-#: session_api.xml:243
#, no-c-format
msgid "Querying"
msgstr "æ¥è¯¢"
#. Tag: para
-#: session_api.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you do not know the identifiers of the objects you are looking for, you "
"need a query. Hibernate supports an easy-to-use but powerful object oriented "
@@ -453,20 +354,18 @@
"express your query in the native SQL of your database, with optional support "
"from Hibernate for result set conversion into objects."
msgstr ""
-"妿ä¸ç¥éæè¦å¯»æ¾ç对象çæä¹
åæ è¯ï¼é£ä¹ä½ éè¦ä½¿ç¨æ¥è¯¢ãHibernateæ¯æå¼ºå¤§ä¸"
-"æäºä½¿ç¨çé¢å对象æ¥è¯¢è¯è¨(HQL)ã 妿叿éè¿ç¼ç¨çæ¹å¼å建æ¥è¯¢ï¼Hibernateæ"
-"ä¾äºå®åçææ¡ä»¶(Query By Criteria, QBC)以忿 ·ä¾(Query By Example, QBE)è¿è¡"
-"æ¥è¯¢çåè½ã ä½ ä¹å¯ä»¥ç¨åçSQL(native SQL)æè¿°æ¥è¯¢ï¼Hibernateé¢å¤æä¾äºå°ç»æ"
-"é(result set)转åä¸ºå¯¹è±¡çæ¯æã"
+"妿ä¸ç¥éæè¦å¯»æ¾ç对象çæä¹
åæ è¯ï¼é£ä¹ä½ éè¦ä½¿ç¨æ¥è¯¢ãHibernate æ¯æå¼ºå¤§"
+"䏿äºä½¿ç¨çé¢å对象æ¥è¯¢è¯è¨ï¼HQLï¼ã妿叿éè¿ç¼ç¨çæ¹å¼å建æ¥è¯¢ï¼"
+"Hibernate æä¾äºå®åçææ¡ä»¶ï¼Query By Criteriaï¼QBCï¼ä»¥åææ ·ä¾ï¼Query By "
+"Exampleï¼QBEï¼è¿è¡æ¥è¯¢çåè½ãä½ ä¹å¯ä»¥ç¨åç SQLï¼native SQLï¼æè¿°æ¥è¯¢ï¼"
+"Hibernate é¢å¤æä¾äºå°ç»æéï¼result setï¼è½¬åä¸ºå¯¹è±¡çæ¯æã "
#. Tag: title
-#: session_api.xml:255
#, no-c-format
msgid "Executing queries"
msgstr "æ§è¡æ¥è¯¢"
#. Tag: para
-#: session_api.xml:257
#, no-c-format
msgid ""
"HQL and native SQL queries are represented with an instance of <literal>org."
@@ -475,45 +374,14 @@
"always obtain a <literal>Query</literal> using the current <literal>Session</"
"literal>:"
msgstr ""
-"HQLååçSQL(native SQL)æ¥è¯¢è¦éè¿ä¸º<literal>org.hibernate.Query</literal>ç"
-"å®ä¾æ¥è¡¨è¾¾ã è¿ä¸ªæ¥å£æä¾äºåæ°ç»å®ãç»æéå¤ç以åè¿è¡å®é
æ¥è¯¢çæ¹æ³ã ä½ æ»"
-"æ¯å¯ä»¥éè¿å½å<literal>Session</literal>è·åä¸ä¸ª<literal>Query</literal>对"
-"象ï¼"
+"HQL ååç SQLï¼native SQLï¼æ¥è¯¢è¦éè¿ä¸º <literal>org.hibernate.Query</"
+"literal> çå®ä¾æ¥è¡¨è¾¾ã è¿ä¸ªæ¥å£æä¾äºåæ°ç»å®ãç»æéå¤ç以åè¿è¡å®é
æ¥è¯¢ç"
+"æ¹æ³ãä½ æ»æ¯å¯ä»¥éè¿å½å <literal>Session</literal> è·åä¸ä¸ª <literal>Query</"
+"literal> 对象ï¼"
-#. Tag: programlisting
-#: session_api.xml:264
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[List cats = session.createQuery(\n"
-" \"from Cat as cat where cat.birthdate < ?\")\n"
-" .setDate(0, date)\n"
-" .list();\n"
-"\n"
-"List mothers = session.createQuery(\n"
-" \"select mother from Cat as cat join cat.mother as mother where cat.name "
-"= ?\")\n"
-" .setString(0, name)\n"
-" .list();\n"
-"\n"
-"List kittens = session.createQuery(\n"
-" \"from Cat as cat where cat.mother = ?\")\n"
-" .setEntity(0, pk)\n"
-" .list();\n"
-"\n"
-"Cat mother = (Cat) session.createQuery(\n"
-" \"select cat.mother from Cat as cat where cat = ?\")\n"
-" .setEntity(0, izi)\n"
-" .uniqueResult();]]\n"
-"\n"
-"Query mothersWithKittens = (Cat) session.createQuery(\n"
-" \"select mother from Cat as mother left join fetch mother.kittens\");\n"
-"Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:266
-#, fuzzy, no-c-format
-msgid ""
"A query is usually executed by invoking <literal>list()</literal>. The "
"result of the query will be loaded completely into a collection in memory. "
"Entity instances retrieved by a query are in a persistent state. The "
@@ -523,21 +391,20 @@
"with their collections initialized. You can filter these duplicates through "
"a <literal>Set</literal>."
msgstr ""
-"ä¸ä¸ªæ¥è¯¢é常å¨è°ç¨<literal>list()</literal>æ¶è¢«æ§è¡ï¼æ§è¡ç»æä¼å®å
¨è£
è½½è¿å
å"
-"ä¸çä¸ä¸ªéå(collection)ã æ¥è¯¢è¿åç对象å¤äºæä¹
(persistent)ç¶æãå¦æä½ ç¥é"
-"çæ¥è¯¢åªä¼è¿åä¸ä¸ªå¯¹è±¡ï¼å¯ä½¿ç¨<literal>list()</literal>çå¿«æ·æ¹å¼"
-"<literal>uniqueResult()</literal>ã æ³¨æï¼ä½¿ç¨éåé¢å
æåçæ¥è¯¢å¾å¾ä¼è¿åå¤"
-"æ¬¡æ ¹å¯¹è±¡ï¼ä»ä»¬çéåç±»é½è¢«åå§åäºï¼ãä½ å¯ä»¥éè¿ä¸ä¸ªéåæ¥è¿æ»¤è¿äºéå¤å¯¹è±¡ã"
+"ä¸ä¸ªæ¥è¯¢é常å¨è°ç¨ <literal>list()</literal> æ¶è¢«æ§è¡ï¼æ§è¡ç»æä¼å®å
¨è£
è½½è¿å
"
+"åä¸çä¸ä¸ªéåï¼collectionï¼ãæ¥è¯¢è¿åç对象å¤äºæä¹
ï¼persistentï¼ç¶æã妿"
+"ä½ ç¥éçæ¥è¯¢åªä¼è¿åä¸ä¸ªå¯¹è±¡ï¼å¯ä½¿ç¨ <literal>list()</literal> çå¿«æ·æ¹å¼ "
+"<literal>uniqueResult()</literal>ãæ³¨æï¼ä½¿ç¨éåé¢å
æåçæ¥è¯¢å¾å¾ä¼è¿å夿¬¡"
+"æ ¹å¯¹è±¡ï¼ä»ä»¬çéåç±»é½è¢«åå§åäºï¼ãä½ å¯ä»¥éè¿ä¸ä¸ª<literal>éåï¼Setï¼</"
+"literal>æ¥è¿æ»¤è¿äºéå¤å¯¹è±¡ã"
#. Tag: title
-#: session_api.xml:278
#, no-c-format
msgid "Iterating results"
-msgstr "è¿ä»£å¼è·åç»æ(Iterating results)"
+msgstr "è¿ä»£å¼è·åç»æï¼Iterating resultsï¼"
#. Tag: para
-#: session_api.xml:280
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Occasionally, you might be able to achieve better performance by executing "
"the query using the <literal>iterate()</literal> method. This will usually "
@@ -549,113 +416,51 @@
"returns identifiers, and <emphasis>n</emphasis> additional selects to "
"initialize the actual instances."
msgstr ""
-"æäºæ
åµä¸ï¼ä½ å¯ä»¥ä½¿ç¨<literal>iterate()</literal>æ¹æ³å¾å°æ´å¥½çæ§è½ã è¿é常"
-"æ¯ä½ 颿è¿åçç»æå¨sessionï¼æäºçº§ç¼å(second-level cache)ä¸å·²ç»å卿¶çæ
"
-"åµã å¦è¥ä¸ç¶ï¼<literal>iterate()</literal>伿¯<literal>list()</literal>æ
¢ï¼"
-"èä¸å¯è½ç®åæ¥è¯¢ä¹éè¦è¿è¡å¤æ¬¡æ°æ®åºè®¿é®ï¼ <literal>iterate()</literal>ä¼é¦å
"
-"使ç¨<emphasis>1</emphasis>æ¡è¯å¥å¾å°ææå¯¹è±¡çæä¹
åæ è¯(identifiers)ï¼åæ ¹æ®"
-"æä¹
åæ è¯æ§è¡<emphasis>n</emphasis>æ¡éå çselectè¯å¥å®ä¾åå®é
ç对象ã"
+"æäºæ
åµä¸ï¼ä½ å¯ä»¥ä½¿ç¨ <literal>iterate()</literal> æ¹æ³å¾å°æ´å¥½çæ§è½ã è¿é"
+"常æ¯ä½ 颿è¿åçç»æå¨ sessionï¼æäºçº§ç¼åï¼second-level cacheï¼ä¸å·²ç»å卿¶"
+"çæ
åµãå¦è¥ä¸ç¶ï¼<literal>iterate()</literal> 伿¯ <literal>list()</"
+"literal> æ
¢ï¼èä¸å¯è½ç®åæ¥è¯¢ä¹éè¦è¿è¡å¤æ¬¡æ°æ®åºè®¿é®ï¼<literal>iterate()</"
+"literal> ä¼é¦å
ä½¿ç¨ <emphasis>1</emphasis> æ¡è¯å¥å¾å°ææå¯¹è±¡çæä¹
åæ è¯"
+"ï¼identifiersï¼ï¼åæ ¹æ®æä¹
åæ è¯æ§è¡ <emphasis>n</emphasis> æ¡éå ç select "
+"è¯å¥å®ä¾åå®é
ç对象ã "
-#. Tag: programlisting
-#: session_api.xml:292
-#, no-c-format
-msgid ""
-"<![CDATA[// fetch ids\n"
-"Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
-"iterate();\n"
-"while ( iter.hasNext() ) {\n"
-" Qux qux = (Qux) iter.next(); // fetch the object\n"
-" // something we couldnt express in the query\n"
-" if ( qux.calculateComplicatedAlgorithm() ) {\n"
-" // delete the current instance\n"
-" iter.remove();\n"
-" // dont need to process the rest\n"
-" break;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:296
#, no-c-format
msgid "Queries that return tuples"
-msgstr "è¿åå
ç»(tuples)çæ¥è¯¢"
+msgstr "è¿åå
ç»ï¼tuplesï¼çæ¥è¯¢"
#. Tag: para
-#: session_api.xml:298
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate queries sometimes return tuples of objects. Each tuple is returned "
"as an array:"
msgstr ""
-"ï¼è¯æ³¨ï¼å
ç»(tuples)æä¸æ¡ç»æè¡å
å«å¤ä¸ªå¯¹è±¡ï¼ Hibernateæ¥è¯¢ææ¶è¿åå
ç»"
-"(tuples)ï¼æ¯ä¸ªå
ç»(tuples)以æ°ç»çå½¢å¼è¿å:"
+"ï¼è¯æ³¨ï¼å
ç»ï¼tuplesï¼æä¸æ¡ç»æè¡å
å«å¤ä¸ªå¯¹è±¡ï¼ Hibernate æ¥è¯¢ææ¶è¿åå
ç»"
+"ï¼tuplesï¼ï¼æ¯ä¸ªå
ç»ï¼tuplesï¼ä»¥æ°ç»çå½¢å¼è¿å: "
-#. Tag: programlisting
-#: session_api.xml:303
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
-" \"select kitten, mother from Cat kitten join kitten.mother mother"
-"\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( kittensAndMothers.hasNext() ) {\n"
-" Object[] tuple = (Object[]) kittensAndMothers.next();\n"
-" Cat kitten = (Cat) tuple[0];\n"
-" Cat mother = (Cat) tuple[1];\n"
-" ....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:308
#, no-c-format
msgid "Scalar results"
-msgstr "æ é(Scalar)ç»æ"
+msgstr "æ éï¼Scalarï¼ç»æ"
#. Tag: para
-#: session_api.xml:310
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Queries can specify a property of a class in the <literal>select</literal> "
"clause. They can even call SQL aggregate functions. Properties or aggregates "
"are considered \"scalar\" results and not entities in persistent state."
msgstr ""
-"æ¥è¯¢å¯å¨<literal>select</literal>ä»å¥ä¸æå®ç±»ç屿§ï¼çè³å¯ä»¥è°ç¨SQLç»è®¡"
-"(aggregate)彿°ã 屿§æç»è®¡ç»æè¢«è®¤å®ä¸º\"æ é(Scalar)\"çç»æï¼è䏿¯æä¹
"
-"(persistent state)çå®ä½ï¼ã"
+"æ¥è¯¢å¯å¨ <literal>select</literal> ä»å¥ä¸æå®ç±»ç屿§ï¼çè³å¯ä»¥è°ç¨ SQL ç»è®¡"
+"ï¼aggregateï¼å½æ°ã屿§æç»è®¡ç»æè¢«è®¤å®ä¸º\"æ éï¼Scalarï¼\"çç»æï¼è䏿¯æä¹
"
+"ï¼persistent stateï¼çå®ä½ï¼ã "
-#. Tag: programlisting
-#: session_api.xml:316
-#, no-c-format
-msgid ""
-"<![CDATA[Iterator results = sess.createQuery(\n"
-" \"select cat.color, min(cat.birthdate), count(cat) from Cat cat \" "
-"+\n"
-" \"group by cat.color\")\n"
-" .list()\n"
-" .iterator();\n"
-"\n"
-"while ( results.hasNext() ) {\n"
-" Object[] row = (Object[]) results.next();\n"
-" Color type = (Color) row[0];\n"
-" Date oldest = (Date) row[1];\n"
-" Integer count = (Integer) row[2];\n"
-" .....\n"
-"}]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:321
#, no-c-format
msgid "Bind parameters"
msgstr "ç»å®åæ°"
#. Tag: para
-#: session_api.xml:323
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Methods on <literal>Query</literal> are provided for binding values to named "
"parameters or JDBC-style <literal>?</literal> parameters. <emphasis>Contrary "
@@ -663,223 +468,113 @@
"are identifiers of the form <literal>:name</literal> in the query string. "
"The advantages of named parameters are as follows:"
msgstr ""
-"æ¥å£<literal>Query</literal>æä¾äºå¯¹å½ååæ°(named parameters)ãJDBC飿 ¼ç"
-"<literal>é®å·(?)</literal>åæ°è¿è¡ç»å®çæ¹æ³ã <emphasis>ä¸åäºJDBCï¼"
-"Hibernate坹忰ä»0å¼å§è®¡æ°ã</emphasis> å½ååæ°(named parameters)卿¥è¯¢å符"
-"䏲䏿¯å½¢å¦<literal>:name</literal>çæ è¯ç¬¦ã å½ååæ°(named parameters)çä¼ç¹"
-"æ¯:"
+"æ¥å£ <literal>Query</literal> æä¾äºå¯¹å½ååæ°ï¼named parametersï¼ãJDBC 飿 ¼"
+"ç<literal>é®å·ï¼?ï¼</literal>åæ°è¿è¡ç»å®çæ¹æ³ã<emphasis>ä¸åäº JDBCï¼"
+"Hibernate å¯¹åæ°ä» 0 å¼å§è®¡æ°ã</emphasis> å½ååæ°ï¼named parametersï¼å¨æ¥è¯¢"
+"åç¬¦ä¸²ä¸æ¯å½¢å¦ <literal>:name</literal> çæ è¯ç¬¦ãå½ååæ°ï¼named "
+"parametersï¼çä¼ç¹æ¯ï¼ "
#. Tag: para
-#: session_api.xml:333
#, no-c-format
msgid ""
"named parameters are insensitive to the order they occur in the query string"
-msgstr "å½ååæ°(named parameters)ä¸å
¶å¨æ¥è¯¢ä¸²ä¸åºç°çé¡ºåºæ å
³"
+msgstr "å½ååæ°ï¼named parametersï¼ä¸å
¶å¨æ¥è¯¢ä¸²ä¸åºç°çé¡ºåºæ å
³"
#. Tag: para
-#: session_api.xml:339
-#, fuzzy, no-c-format
+#, no-c-format
msgid "they can occur multiple times in the same query"
-msgstr "å®ä»¬å¯å¨å䏿¥è¯¢ä¸²ä¸å¤æ¬¡åºç°"
+msgstr "å®ä»¬å¯å¨å䏿¥è¯¢ä¸²ä¸å¤æ¬¡åºç° "
#. Tag: para
-#: session_api.xml:344
#, no-c-format
msgid "they are self-documenting"
msgstr "å®ä»¬æ¬èº«æ¯èªæè¯´æç"
-#. Tag: programlisting
-#: session_api.xml:350
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter (preferred)\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
-"\");\n"
-"q.setString(\"name\", \"Fritz\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:352
-#, no-c-format
-msgid ""
-"<![CDATA[//positional parameter\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
-"q.setString(0, \"Izi\");\n"
-"Iterator cats = q.iterate();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:354
-#, no-c-format
-msgid ""
-"<![CDATA[//named parameter list\n"
-"List names = new ArrayList();\n"
-"names.add(\"Izi\");\n"
-"names.add(\"Fritz\");\n"
-"Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
-"namesList)\");\n"
-"q.setParameterList(\"namesList\", names);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:359
#, no-c-format
msgid "Pagination"
msgstr "å页"
#. Tag: para
-#: session_api.xml:361
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you need to specify bounds upon your result set, that is, the maximum "
"number of rows you want to retrieve and/or the first row you want to "
"retrieve, you can use methods of the <literal>Query</literal> interface:"
msgstr ""
-"å¦æä½ éè¦æå®ç»æéçèå´ï¼å¸æè¿åçæå¤§è¡æ°/æå¼å§çè¡æ°ï¼ï¼åºè¯¥ä½¿ç¨"
-"<literal>Query</literal>æ¥å£æä¾çæ¹æ³:"
+"å¦æä½ éè¦æå®ç»æéçèå´ï¼å¸æè¿åçæå¤§è¡æ°/æå¼å§çè¡æ°ï¼ï¼åºè¯¥ä½¿ç¨ "
+"<literal>Query</literal> æ¥å£æä¾çæ¹æ³ï¼ "
-#. Tag: programlisting
-#: session_api.xml:367
-#, no-c-format
-msgid ""
-"<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
-"q.setFirstResult(20);\n"
-"q.setMaxResults(10);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:369
#, no-c-format
msgid ""
"Hibernate knows how to translate this limit query into the native SQL of "
"your DBMS."
msgstr ""
-"Hibernate ç¥éå¦ä½å°è¿ä¸ªæé宿¡ä»¶çæ¥è¯¢è½¬æ¢æä½ çæ°æ®åºçåçSQL(native "
-"SQL)ã"
+"Hibernate ç¥éå¦ä½å°è¿ä¸ªæé宿¡ä»¶çæ¥è¯¢è½¬æ¢æä½ çæ°æ®åºçåç SQLï¼native "
+"SQLï¼ã"
#. Tag: title
-#: session_api.xml:377
#, no-c-format
msgid "Scrollable iteration"
-msgstr "坿»å¨éå(Scrollable iteration)"
+msgstr "坿»å¨éåï¼Scrollable iterationï¼"
#. Tag: para
-#: session_api.xml:379
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your JDBC driver supports scrollable <literal>ResultSet</literal>s, the "
"<literal>Query</literal> interface can be used to obtain a "
"<literal>ScrollableResults</literal> object that allows flexible navigation "
"of the query results."
msgstr ""
-"å¦æä½ çJDBC驱卿¯æå¯æ»å¨ç<literal>ResuleSet</literal>ï¼<literal>Query</"
-"literal>æ¥å£å¯ä»¥ä½¿ç¨<literal>ScrollableResults</literal>ï¼å
è®¸ä½ å¨æ¥è¯¢ç»æä¸"
-"çµæ´»æ¸¸èµ°ã"
+"å¦æä½ ç JDBC 驱卿¯æå¯æ»å¨ç <literal>ResuleSet</literal>ï¼<literal>Query</"
+"literal> æ¥å£å¯ä»¥ä½¿ç¨ <literal>ScrollableResults</literal>ï¼å
è®¸ä½ å¨æ¥è¯¢ç»æ"
+"ä¸çµæ´»æ¸¸èµ°ã "
-#. Tag: programlisting
-#: session_api.xml:386
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from DomesticCat "
-"cat \" +\n"
-" \"order by cat.name\");\n"
-"ScrollableResults cats = q.scroll();\n"
-"if ( cats.first() ) {\n"
-"\n"
-" // find the first name on each page of an alphabetical list of cats by "
-"name\n"
-" firstNamesOfPages = new ArrayList();\n"
-" do {\n"
-" String name = cats.getString(0);\n"
-" firstNamesOfPages.add(name);\n"
-" }\n"
-" while ( cats.scroll(PAGE_SIZE) );\n"
-"\n"
-" // Now get the first page of cats\n"
-" pageOfCats = new ArrayList();\n"
-" cats.beforeFirst();\n"
-" int i=0;\n"
-" while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
-"(1) );\n"
-"\n"
-"}\n"
-"cats.close()]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:388
-#, fuzzy, no-c-format
-msgid ""
"Note that an open database connection and cursor is required for this "
"functionality. Use <literal>setMaxResult()</literal>/<literal>setFirstResult"
"()</literal> if you need offline pagination functionality."
msgstr ""
-"请注æï¼ä½¿ç¨æ¤åè½éè¦ä¿ææ°æ®åºè¿æ¥ï¼ä»¥å游æ (cursor)ï¼å¤äºä¸ç´æå¼ç¶æã å¦"
-"æä½ éè¦æå¼è¿æ¥ä½¿ç¨å页åè½ï¼è¯·ä½¿ç¨<literal>setMaxResult()</literal>/"
-"<literal>setFirstResult()</literal>"
+"请注æï¼ä½¿ç¨æ¤åè½éè¦ä¿ææ°æ®åºè¿æ¥ï¼ä»¥å游æ ï¼cursorï¼ï¼å¤äºä¸ç´æå¼ç¶æã"
+"å¦æä½ éè¦æå¼è¿æ¥ä½¿ç¨å页åè½ï¼è¯·ä½¿ç¨ <literal>setMaxResult()</literal>/"
+"<literal>setFirstResult()</literal>ã "
#. Tag: title
-#: session_api.xml:397
#, no-c-format
msgid "Externalizing named queries"
-msgstr "å¤ç½®å½åæ¥è¯¢(Externalizing named queries)"
+msgstr "å¤ç½®å½åæ¥è¯¢ï¼Externalizing named queriesï¼"
#. Tag: para
-#: session_api.xml:399
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also define named queries in the mapping document. Remember to use a "
"<literal>CDATA</literal> section if your query contains characters that "
"could be interpreted as markup."
msgstr ""
-"ä½ å¯ä»¥å¨æ å°æä»¶ä¸å®ä¹å½åæ¥è¯¢(named queries)ã ï¼å¦æä½ çæ¥è¯¢ä¸²ä¸å
å«å¯è½è¢«"
-"è§£é为XMLæ è®°(markup)çå符ï¼å«å¿äºç¨<literal>CDATA</literal>å
裹起æ¥ãï¼"
+"ä½ å¯ä»¥å¨æ å°æä»¶ä¸å®ä¹å½åæ¥è¯¢ï¼named queriesï¼ãå¦æä½ çæ¥è¯¢ä¸²ä¸å
å«å¯è½è¢«è§£"
+"é为 XML æ è®°ï¼markupï¼çå符ï¼å«å¿äºç¨<literal>CDATA</literal>å
裹起æ¥ã"
-#. Tag: programlisting
-#: session_api.xml:405
-#, no-c-format
-msgid ""
-"<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
-" from eg.DomesticCat as cat\n"
-" where cat.name = ?\n"
-" and cat.weight > ?\n"
-"] ]></query>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:407
#, no-c-format
msgid "Parameter binding and executing is done programatically:"
-msgstr "åæ°ç»å®åæ§è¡ä»¥ç¼ç¨æ¹å¼(programatically)宿ï¼"
+msgstr "åæ°ç»å®åæ§è¡ä»¥ç¼ç¨æ¹å¼ï¼programaticallyï¼å®æï¼"
-#. Tag: programlisting
-#: session_api.xml:411
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
-"q.setString(0, name);\n"
-"q.setInt(1, minWeight);\n"
-"List cats = q.list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:413
-#, fuzzy, no-c-format
-msgid ""
"The actual program code is independent of the query language that is used. "
"You can also define native SQL queries in metadata, or migrate existing "
"queries to Hibernate by placing them in mapping files."
msgstr ""
-"请注æå®é
çç¨åºä»£ç 䏿ç¨çæ¥è¯¢è¯è¨æ å
³ï¼ä½ ä¹å¯å¨å
æ°æ®ä¸å®ä¹åçSQL(native "
-"SQL)æ¥è¯¢ï¼ æå°åæçå
¶ä»çæ¥è¯¢è¯å¥æ¾å¨é
ç½®æä»¶ä¸ï¼è¿æ ·å°±å¯ä»¥è®©Hibernateç»ä¸"
-"管çï¼è¾¾å°è¿ç§»çç®çã"
+"请注æå®é
çç¨åºä»£ç 䏿ç¨çæ¥è¯¢è¯è¨æ å
³ï¼ä½ ä¹å¯å¨å
æ°æ®ä¸å®ä¹åç SQL"
+"ï¼native SQLï¼æ¥è¯¢ï¼æå°åæçå
¶ä»çæ¥è¯¢è¯å¥æ¾å¨é
ç½®æä»¶ä¸ï¼è¿æ ·å°±å¯ä»¥è®© "
+"Hibernate ç»ä¸ç®¡çï¼è¾¾å°è¿ç§»çç®çã "
#. Tag: para
-#: session_api.xml:419
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Also note that a query declaration inside a <literal><hibernate-"
"mapping></literal> element requires a global unique name for the query, "
@@ -887,142 +582,90 @@
"is made unique automatically by prepending the fully qualified name of the "
"class. For example <literal>eg.Cat.ByNameAndMaximumWeight</literal>."
msgstr ""
-"ä¹è¯·æ³¨æå¨<literal><hibernate-mapping></literal>å
ç´ ä¸å£°æçæ¥è¯¢å¿
é¡»æ"
-"ä¸ä¸ªå
¨å±å¯ä¸çåå,èå¨<literal><class></literal>å
ç´ ä¸å£°æçæ¥è¯¢èªå¨å
·"
-"æå
¨å±å,æ¯éè¿ç±»çå
¨åå 以éå®çãæ¯å¦<literal>eg.Cat."
-"ByNameAndMaximumWeight</literal>ã"
+"ä¹è¯·æ³¨æå¨ <literal><hibernate-mapping></literal> å
ç´ ä¸å£°æçæ¥è¯¢å¿
é¡»"
+"æä¸ä¸ªå
¨å±å¯ä¸çåå,èå¨ <literal><class></literal> å
ç´ ä¸å£°æçæ¥è¯¢èª"
+"å¨å
·æå
¨å±å,æ¯éè¿ç±»çå
¨åå 以éå®çãæ¯å¦ <literal>eg.Cat."
+"ByNameAndMaximumWeight</literal>ã "
#. Tag: title
-#: session_api.xml:432
#, no-c-format
msgid "Filtering collections"
msgstr "è¿æ»¤éå"
#. Tag: para
-#: session_api.xml:433
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A collection <emphasis>filter</emphasis> is a special type of query that can "
"be applied to a persistent collection or array. The query string can refer "
"to <literal>this</literal>, meaning the current collection element."
msgstr ""
-"éå<emphasis>è¿æ»¤å¨(filter)</emphasis>æ¯ä¸ç§ç¨äºä¸ä¸ªæä¹
åéåæè
æ°ç»çç¹æ®"
-"çæ¥è¯¢ãæ¥è¯¢å符串ä¸å¯ä»¥ä½¿ç¨<literal>\"this\"</literal>æ¥å¼ç¨éåä¸çå½åå
"
-"ç´ ã"
+"éå<emphasis>è¿æ»¤å¨ï¼filterï¼</emphasis>æ¯ä¸ç§ç¨äºä¸ä¸ªæä¹
åéåæè
æ°ç»çç¹"
+"æ®çæ¥è¯¢ãæ¥è¯¢å符串ä¸å¯ä»¥ä½¿ç¨ <literal>\"this\"</literal> æ¥å¼ç¨éåä¸çå½å"
+"å
ç´ ã "
-#. Tag: programlisting
-#: session_api.xml:439
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittens = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"where this.color = ?\")\n"
-" .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
-" .list()\n"
-");]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:441
-#, fuzzy, no-c-format
-msgid ""
"The returned collection is considered a bag that is a copy of the given "
"collection. The original collection is not modified. This is contrary to the "
"implication of the name \"filter\", but consistent with expected behavior."
msgstr ""
-"è¿åçéåå¯ä»¥è¢«è®¤ä¸ºæ¯ä¸ä¸ªå
(bag, æ 顺åºå¯éå¤çéå(collection))ï¼å®æ¯æç»é"
-"åç坿¬ã 忥çéåä¸ä¼è¢«æ¹å¨ï¼è¿ä¸âè¿æ»¤å¨(filter)âçéå«çå«ä¹ä¸ç¬¦ï¼ä¸è¿ä¸"
-"æä»¬æå¾
çè¡ä¸ºä¸è´ï¼ã"
+"è¿åçéåå¯ä»¥è¢«è®¤ä¸ºæ¯ä¸ä¸ªå
ï¼bagï¼æ 顺åºå¯éå¤çéåï¼collectionï¼ï¼ï¼å®æ¯æ"
+"ç»éåç坿¬ã 忥çéåä¸ä¼è¢«æ¹å¨ï¼è¿ä¸âè¿æ»¤å¨ï¼filterï¼âçéå«çå«ä¹ä¸ç¬¦ï¼"
+"ä¸è¿ä¸æä»¬æå¾
çè¡ä¸ºä¸è´ï¼ã "
#. Tag: para
-#: session_api.xml:447
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Observe that filters do not require a <literal>from</literal> clause, "
"although they can have one if required. Filters are not limited to returning "
"the collection elements themselves."
msgstr ""
-"请注æè¿æ»¤å¨(filter)å¹¶ä¸éè¦<literal>from</literal>åå¥ï¼å½ç¶éè¦çè¯å®ä»¬ä¹å¯"
-"以å ä¸ï¼ãè¿æ»¤å¨(filter)ä¸éå®äºåªè½è¿åéåå
ç´ æ¬èº«ã"
+"请注æè¿æ»¤å¨ï¼filterï¼å¹¶ä¸éè¦ <literal>from</literal> åå¥ï¼å½ç¶éè¦çè¯å®ä»¬"
+"ä¹å¯ä»¥å ä¸ï¼ãè¿æ»¤å¨ï¼filterï¼ä¸éå®äºåªè½è¿åéåå
ç´ æ¬èº«ã "
-#. Tag: programlisting
-#: session_api.xml:452
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Collection blackKittenMates = session.createFilter(\n"
-" pk.getKittens(), \n"
-" \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
-" .list();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:454
-#, fuzzy, no-c-format
-msgid ""
"Even an empty filter query is useful, e.g. to load a subset of elements in a "
"large collection:"
msgstr ""
-"å³ä½¿æ æ¡ä»¶çè¿æ»¤å¨(filter)乿¯ææä¹çãä¾å¦ï¼ç¨äºå è½½ä¸ä¸ªå¤§éåçåéï¼"
+"å³ä½¿æ æ¡ä»¶çè¿æ»¤å¨ï¼filterï¼ä¹æ¯ææä¹çãä¾å¦ï¼ç¨äºå è½½ä¸ä¸ªå¤§éåçåéï¼ "
-#. Tag: programlisting
-#: session_api.xml:459
-#, no-c-format
-msgid ""
-"<![CDATA[Collection tenKittens = session.createFilter(\n"
-" mother.getKittens(), \"\")\n"
-" .setFirstResult(0).setMaxResults(10)\n"
-" .list();]]>"
-msgstr ""
-
#. Tag: title
-#: session_api.xml:464
#, no-c-format
msgid "Criteria queries"
-msgstr "æ¡ä»¶æ¥è¯¢(Criteria queries)"
+msgstr "æ¡ä»¶æ¥è¯¢ï¼Criteria queriesï¼"
#. Tag: para
-#: session_api.xml:466
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"HQL is extremely powerful, but some developers prefer to build queries "
"dynamically using an object-oriented API, rather than building query "
"strings. Hibernate provides an intuitive <literal>Criteria</literal> query "
"API for these cases:"
msgstr ""
-"HQLæä¸ºå¼ºå¤§ï¼ä½æ¯æäºäººå¸æè½å¤å¨æç使ç¨ä¸ç§é¢å对象APIå建æ¥è¯¢ï¼èéå¨ä»ä»¬"
-"çJava代ç ä¸åµå
¥å符串ã对äºé£é¨å人æ¥è¯´ï¼Hibernateæä¾äºç´è§ç"
-"<literal>Criteria</literal>æ¥è¯¢APIã"
+"HQL æä¸ºå¼ºå¤§ï¼ä½æ¯æäºäººå¸æè½å¤å¨æç使ç¨ä¸ç§é¢å对象 API å建æ¥è¯¢ï¼èéå¨ä»"
+"们ç Java 代ç ä¸åµå
¥å符串ã对äºé£é¨å人æ¥è¯´ï¼Hibernate æä¾äºç´è§ç "
+"<literal>Criteria</literal> æ¥è¯¢ APIã "
-#. Tag: programlisting
-#: session_api.xml:472
-#, no-c-format
-msgid ""
-"<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
-"crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
-"crit.setMaxResults(10);\n"
-"List cats = crit.list();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:474
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The <literal>Criteria</literal> and the associated <literal>Example</"
-"literal> API are discussed in more detail in <xref linkend=\"querycriteria\"/"
-">."
+"literal> API are discussed in more detail in <xref linkend=\"querycriteria"
+"\" />."
msgstr ""
-"<literal>Criteria</literal>以åç¸å
³ç<literal>æ ·ä¾(Example)</literal>APIå°ä¼"
-"å<xref linkend=\"querycriteria\"/>ä¸è¯¦ç»è®¨è®ºã"
+"<literal>Criteria</literal> 以åç¸å
³ç<literal>æ ·ä¾ï¼Exampleï¼</literal>API "
+"å°ä¼å¨ <xref linkend=\"querycriteria\"/> ä¸è¯¦ç»è®¨è®ºã "
#. Tag: title
-#: session_api.xml:482
#, no-c-format
msgid "Queries in native SQL"
-msgstr "使ç¨åçSQLçæ¥è¯¢"
+msgstr "使ç¨åç SQL çæ¥è¯¢"
#. Tag: para
-#: session_api.xml:484
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can express a query in SQL, using <literal>createSQLQuery()</literal> "
"and let Hibernate manage the mapping from result sets to objects. You can at "
@@ -1030,54 +673,29 @@
"<literal>Connection</literal> directly. If you choose to use the Hibernate "
"API, you must enclose SQL aliases in braces:"
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨<literal>createSQLQuery()</literal>æ¹æ³ï¼ç¨SQLæ¥æè¿°æ¥è¯¢ï¼å¹¶ç±"
-"Hibernateå°ç»æéè½¬æ¢æå¯¹è±¡ã 请注æï¼ä½ å¯ä»¥å¨ä»»ä½æ¶åè°ç¨<literal>session."
-"connection()</literal>æ¥è·å¾å¹¶ä½¿ç¨JDBC <literal>Connection</literal>对象ã å¦"
-"æä½ éæ©ä½¿ç¨HibernateçAPI, ä½ å¿
é¡»æSQLå«åç¨å¤§æ¬å·å
å´èµ·æ¥:"
+"ä½ å¯ä»¥ä½¿ç¨ <literal>createSQLQuery()</literal> æ¹æ³ï¼ç¨ SQL æ¥æè¿°æ¥è¯¢ï¼å¹¶ç± "
+"Hibernate å°ç»æéè½¬æ¢æå¯¹è±¡ã请注æï¼ä½ å¯ä»¥å¨ä»»ä½æ¶åè°ç¨ <literal>session."
+"connection()</literal> æ¥è·å¾å¹¶ä½¿ç¨ JDBC <literal>Connection</literal> 对"
+"象ã å¦æä½ éæ©ä½¿ç¨ Hibernate ç APIï¼ä½ å¿
é¡»æ SQL å«åç¨å¤§æ¬å·å
å´èµ·æ¥ï¼ "
-#. Tag: programlisting
-#: session_api.xml:492
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT {cat} "
-"WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list();]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: session_api.xml:494
-#, no-c-format
-msgid ""
-"<![CDATA[List cats = session.createSQLQuery(\n"
-" \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
-" \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... \" "
-"+\n"
-" \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
-" .addEntity(\"cat\", Cat.class)\n"
-".list()]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:496
#, fuzzy, no-c-format
msgid ""
"SQL queries can contain named and positional parameters, just like Hibernate "
"queries. More information about native SQL queries in Hibernate can be found "
-"in <xref linkend=\"querysql\"/>."
+"in <xref linkend=\"querysql\" />."
msgstr ""
-"åHibernateæ¥è¯¢ä¸æ ·ï¼SQLæ¥è¯¢ä¹å¯ä»¥å
å«å½ååæ°åå ä½åæ°ã å¯ä»¥å¨<xref "
-"linkend=\"querysql\"/>æ¾å°æ´å¤å
³äºHibernateä¸åçSQL(native SQL)çä¿¡æ¯ã"
+"å Hibernate æ¥è¯¢ä¸æ ·ï¼SQL æ¥è¯¢ä¹å¯ä»¥å
å«å½ååæ°åå ä½åæ°ãå¯ä»¥å¨ <xref "
+"linkend=\"querysql\"/> æ¾å°æ´å¤å
³äº Hibernate ä¸åç SQLï¼native SQLï¼çä¿¡"
+"æ¯ã "
#. Tag: title
-#: session_api.xml:507
#, no-c-format
msgid "Modifying persistent objects"
msgstr "ä¿®æ¹æä¹
对象"
#. Tag: para
-#: session_api.xml:509
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Transactional persistent instances</emphasis> (i.e. objects "
"loaded, saved, created or queried by the <literal>Session</literal>) can be "
@@ -1089,39 +707,28 @@
"to update the state of an object is to <literal>load()</literal> it and then "
"manipulate it directly while the <literal>Session</literal> is open:"
msgstr ""
-"<emphasis>äºå¡ä¸çæä¹
å®ä¾</emphasis>ï¼å°±æ¯éè¿<literal>session</literal>è£
"
-"è½½ãä¿åãå建æè
æ¥è¯¢åºçå¯¹è±¡ï¼ è¢«åºç¨ç¨åºæä½æé æçä»»ä½ä¿®æ¹é½ä¼å¨"
-"<literal>Session</literal>被<emphasis>å·åºï¼flushedï¼</emphasis>çæ¶å被æä¹
"
-"åï¼æ¬ç« åé¢ä¼è¯¦ç»è®¨è®ºï¼ã è¿éä¸éè¦è°ç¨æä¸ªç¹å®çæ¹æ³ï¼æ¯å¦<literal>update"
-"()</literal>ï¼è®¾è®¡å®çç®çæ¯ä¸åçï¼å°ä½ çä¿®æ¹æä¹
åã æä»¥æç´æ¥çæ´æ°ä¸ä¸ªå¯¹"
-"è±¡çæ¹æ³å°±æ¯å¨<literal>Session</literal>å¤äºæå¼ç¶ææ¶<literal>load()</"
-"literal>å®ï¼ç¶åç´æ¥ä¿®æ¹å³å¯ï¼"
+"<emphasis>äºå¡ä¸çæä¹
å®ä¾</emphasis>ï¼å°±æ¯éè¿ <literal>session</literal> è£
"
+"è½½ãä¿åãå建æè
æ¥è¯¢åºçå¯¹è±¡ï¼ è¢«åºç¨ç¨åºæä½æé æçä»»ä½ä¿®æ¹é½ä¼å¨ "
+"<literal>Session</literal> 被<emphasis>å·åºï¼flushedï¼</emphasis>çæ¶å被æä¹
"
+"åï¼æ¬ç« åé¢ä¼è¯¦ç»è®¨è®ºï¼ãè¿éä¸éè¦è°ç¨æä¸ªç¹å®çæ¹æ³ï¼æ¯å¦ <literal>update"
+"()</literal>ï¼è®¾è®¡å®çç®çæ¯ä¸åçï¼å°ä½ çä¿®æ¹æä¹
åãæä»¥æç´æ¥çæ´æ°ä¸ä¸ªå¯¹"
+"è±¡çæ¹æ³å°±æ¯å¨ <literal>Session</literal> å¤äºæå¼ç¶ææ¶ <literal>load()</"
+"literal> å®ï¼ç¶åç´æ¥ä¿®æ¹å³å¯ï¼ "
-#. Tag: programlisting
-#: session_api.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
-"(69) );\n"
-"cat.setName(\"PK\");\n"
-"sess.flush(); // changes to cat are automatically detected and persisted]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:522
-#, fuzzy, no-c-format
-msgid ""
"Sometimes this programming model is inefficient, as it requires in the same "
"session both an SQL <literal>SELECT</literal> to load an object and an SQL "
"<literal>UPDATE</literal> to persist its updated state. Hibernate offers an "
"alternate approach by using detached instances."
msgstr ""
-"ææ¶è¿ç§ç¨åºæ¨¡åæçä½ä¸ï¼å 为å®å¨åä¸Sessionééè¦ä¸æ¡SQL <literal>SELECT</"
-"literal>è¯å¥ï¼ç¨äºå è½½å¯¹è±¡ï¼ ä»¥å䏿¡SQL <literal>UPDATE</literal>è¯å¥(æä¹
å"
-"æ´æ°çç¶æ)ã 为æ¤Hibernateæä¾äºå¦ä¸ç§éå¾ï¼ä½¿ç¨è±ç®¡(detached)å®ä¾ã"
+"ææ¶è¿ç§ç¨åºæ¨¡åæçä½ä¸ï¼å 为å®å¨åä¸ Session ééè¦ä¸æ¡ SQL "
+"<literal>SELECT</literal> è¯å¥ï¼ç¨äºå è½½å¯¹è±¡ï¼ ä»¥å䏿¡ SQL <literal>UPDATE</"
+"literal> è¯å¥ï¼æä¹
åæ´æ°çç¶æï¼ãä¸ºæ¤ Hibernate æä¾äºå¦ä¸ç§éå¾ï¼ä½¿ç¨è±ç®¡"
+"ï¼detachedï¼å®ä¾ã "
#. Tag: para
-#: session_api.xml:529
#, fuzzy, no-c-format
msgid ""
"Hibernate does not offer its own API for direct execution of "
@@ -1133,24 +740,24 @@
"the notion of mass operations conflicts with object/relational mapping for "
"online transaction processing-oriented applications. Future versions of "
"Hibernate can, however, provide special mass operation functions. See <xref "
-"linkend=\"batch\"/> for some possible batch operation tricks."
+"linkend=\"batch\" /> for some possible batch operation tricks."
msgstr ""
-"请注æHibernateæ¬èº«ä¸æä¾ç´æ¥æ§è¡<placeholder-1/>æ<placeholder-2/>è¯å¥ç"
-"APIã Hibernateæä¾çæ¯<placeholder-3/>æå¡ï¼ä½ ä¸å¿
èèè¦ä½¿ç¨ç<placeholder-"
-"4/>ã JDBCæ¯åºè²çæ§è¡SQLè¯å¥çAPIï¼ä»»ä½æ¶åè°ç¨<placeholder-5/>ä½ é½å¯ä»¥å¾å°"
-"ä¸ä¸ªJDBC <placeholder-6/>å¯¹è±¡ã æ¤å¤ï¼å¨èæºäºå¡å¤ç(OLTP)ç¨åºä¸ï¼å¤§éæä½"
-"(mass operations)ä¸å¯¹è±¡/å
³ç³»æ å°çè§ç¹æ¯ç¸å²çªçã Hibernateçå°æ¥çæ¬å¯è½ä¼"
-"æä¾ä¸é¨çè¿è¡å¤§éæä½(mass operation)çåè½ã åè<xref linkend=\"batch\"/"
-">ï¼å¯»æ¾ä¸äºå¯ç¨çæ¹é(batch)æä½æå·§ã"
+"请注æ Hibernate æ¬èº«ä¸æä¾ç´æ¥æ§è¡ <literal>UPDATE</literal> æ "
+"<literal>DELETE</literal> è¯å¥ç APIãHibernate æä¾çæ¯ <emphasis>state "
+"management</emphasis> æå¡ï¼ä½ ä¸å¿
èèè¦ä½¿ç¨ç <emphasis>statements</"
+"emphasis>ãJDBC æ¯åºè²çæ§è¡ SQL è¯å¥ç APIï¼ä»»ä½æ¶åè°ç¨ <literal>session."
+"connection()</literal> ä½ é½å¯ä»¥å¾å°ä¸ä¸ª <literal>Connection</literal> 对象ã "
+"æ¤å¤ï¼å¨èæºäºå¡å¤çï¼OLTPï¼ç¨åºä¸ï¼å¤§éæä½ï¼mass operationsï¼ä¸å¯¹è±¡/å
³ç³»æ "
+"å°çè§ç¹æ¯ç¸å²çªçãHibernate çå°æ¥çæ¬å¯è½ä¼æä¾ä¸é¨çè¿è¡å¤§éæä½ï¼mass "
+"operationï¼çåè½ãåè <xref linkend=\"batch\"/>ï¼å¯»æ¾ä¸äºå¯ç¨çæ¹é"
+"ï¼batchï¼æä½æå·§ã "
#. Tag: title
-#: session_api.xml:546
#, no-c-format
msgid "Modifying detached objects"
-msgstr "ä¿®æ¹è±ç®¡(Detached)对象"
+msgstr "ä¿®æ¹è±ç®¡ï¼Detachedï¼å¯¹è±¡"
#. Tag: para
-#: session_api.xml:548
#, no-c-format
msgid ""
"Many applications need to retrieve an object in one transaction, send it to "
@@ -1160,52 +767,32 @@
"unit of work."
msgstr ""
"å¾å¤ç¨åºéè¦å¨æä¸ªäºå¡ä¸è·å对象ï¼ç¶åå°å¯¹è±¡åéå°çé¢å±å»æä½ï¼æåå¨ä¸ä¸ªæ°"
-"çäºå¡ä¿åæåçä¿®æ¹ã å¨é«å¹¶å访é®çç¯å¢ä¸ä½¿ç¨è¿ç§æ¹å¼ï¼é常使ç¨éå¸¦çæ¬ä¿¡æ¯"
+"çäºå¡ä¿åæåçä¿®æ¹ãå¨é«å¹¶å访é®çç¯å¢ä¸ä½¿ç¨è¿ç§æ¹å¼ï¼é常使ç¨éå¸¦çæ¬ä¿¡æ¯"
"çæ°æ®æ¥ä¿è¯è¿äºâé¿âå·¥ä½åå
ä¹é´çé离ã"
#. Tag: para
-#: session_api.xml:555
#, no-c-format
msgid ""
"Hibernate supports this model by providing for reattachment of detached "
"instances using the <literal>Session.update()</literal> or <literal>Session."
"merge()</literal> methods:"
msgstr ""
-"Hibernateéè¿æä¾<literal>Session.update()</literal>æ<literal>Session.merge"
-"()</literal> éæ°å
³èè±ç®¡å®ä¾çåæ³æ¥æ¯æè¿ç§æ¨¡åã"
+"Hibernate éè¿æä¾ <literal>Session.update()</literal> æ <literal>Session."
+"merge()</literal> éæ°å
³èè±ç®¡å®ä¾çåæ³æ¥æ¯æè¿ç§æ¨¡åã"
-#. Tag: programlisting
-#: session_api.xml:561
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
-"Cat potentialMate = new Cat();\n"
-"firstSession.save(potentialMate);\n"
-"\n"
-"// in a higher layer of the application\n"
-"cat.setMate(potentialMate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.update(cat); // update cat\n"
-"secondSession.update(mate); // update mate]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:563
#, no-c-format
msgid ""
"If the <literal>Cat</literal> with identifier <literal>catId</literal> had "
"already been loaded by <literal>secondSession</literal> when the application "
"tried to reattach it, an exception would have been thrown."
msgstr ""
-"妿å
·æ<literal>catId</literal>æä¹
åæ è¯ç<literal>Cat</literal>ä¹åå·²ç»è¢«"
-"<literal>å¦ä¸Session(secondSession)</literal>è£
è½½äºï¼ åºç¨ç¨åºè¿è¡éå
³èæä½"
-"(reattach)çæ¶å伿åºä¸ä¸ªå¼å¸¸ã"
+"妿å
·æ <literal>catId</literal> æä¹
åæ è¯ç <literal>Cat</literal> ä¹åå·²"
+"ç»è¢«<literal>å¦ä¸Sessionï¼secondSessionï¼</literal>è£
è½½äºï¼ åºç¨ç¨åºè¿è¡éå
³"
+"èæä½ï¼reattachï¼çæ¶å伿åºä¸ä¸ªå¼å¸¸ã"
#. Tag: para
-#: session_api.xml:569
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Use <literal>update()</literal> if you are certain that the session does not "
"contain an already persistent instance with the same identifier. Use "
@@ -1215,82 +802,64 @@
"fresh session, ensuring that the reattachment of your detached instances is "
"the first operation that is executed."
msgstr ""
-"å¦æä½ ç¡®å®å½åsession没æå
å«ä¸ä¹å
·æç¸åæä¹
åæ è¯çæä¹
å®ä¾ï¼ä½¿ç¨"
-"<literal>update()</literal>ã 妿æ³éæ¶åå¹¶ä½ ççæ¹å¨èä¸èèsessionçç¶æï¼"
-"使ç¨<literal>merge()</literal>ã æ¢å¥è¯è¯´ï¼å¨ä¸ä¸ªæ°sessionä¸é常第ä¸ä¸ªè°ç¨ç"
-"æ¯<literal>update()</literal>æ¹æ³ï¼ä»¥ä¾¿ä¿è¯éæ°å
³èè±ç®¡(detached)对象çæä½é¦"
-"å
被æ§è¡ã"
+"å¦æä½ ç¡®å®å½å session 没æå
å«ä¸ä¹å
·æç¸åæä¹
åæ è¯çæä¹
å®ä¾ï¼ä½¿ç¨ "
+"<literal>update()</literal>ã妿æ³éæ¶åå¹¶ä½ ççæ¹å¨èä¸èè session çç¶"
+"æï¼ä½¿ç¨ <literal>merge()</literal>ãæ¢å¥è¯è¯´ï¼å¨ä¸ä¸ªæ° session ä¸é常第ä¸ä¸ª"
+"è°ç¨çæ¯ <literal>update()</literal> æ¹æ³ï¼ä»¥ä¾¿ä¿è¯éæ°å
³èè±ç®¡ï¼detachedï¼å¯¹"
+"象çæä½é¦å
被æ§è¡ã "
#. Tag: para
-#: session_api.xml:578
#, fuzzy, no-c-format
msgid ""
"The application should individually <literal>update()</literal> detached "
"instances that are reachable from the given detached instance "
"<emphasis>only</emphasis> if it wants their state to be updated. This can be "
"automated using <emphasis>transitive persistence</emphasis>. See <xref "
-"linkend=\"objectstate-transitive\"/> for more information."
+"linkend=\"objectstate-transitive\" /> for more information."
msgstr ""
"妿叿ç¸å
³èçè±ç®¡å¯¹è±¡ï¼éè¿å¼ç¨âå¯å°è¾¾âçè±ç®¡å¯¹è±¡ï¼çæ°æ®ä¹è¦æ´æ°å°æ°æ®åº"
-"æ¶ï¼å¹¶ä¸ä¹<emphasis>ä»
ä»
</emphasis>å¨è¿ç§æ
åµï¼ï¼ å¯ä»¥å¯¹è¯¥ç¸å
³èçè±ç®¡å¯¹è±¡å"
-"ç¬è°ç¨<literal>update()</literal> å½ç¶è¿äºå¯ä»¥èªå¨å®æï¼å³éè¿ä½¿ç¨<emphasis>"
-"ä¼ ææ§æä¹
å(transitive persistence)</emphasis>ï¼è¯·ç<xref linkend="
-"\"objectstate-transitive\"/>ã"
+"æ¶ï¼å¹¶ä¸ä¹<emphasis>ä»
ä»
</emphasis>å¨è¿ç§æ
åµï¼ï¼å¯ä»¥å¯¹è¯¥ç¸å
³èçè±ç®¡å¯¹è±¡åç¬"
+"è°ç¨ <literal>update()</literal> å½ç¶è¿äºå¯ä»¥èªå¨å®æï¼å³éè¿ä½¿ç¨<emphasis>ä¼ "
+"ææ§æä¹
åï¼transitive persistenceï¼</emphasis>ï¼è¯·ç <xref linkend="
+"\"objectstate-transitive\"/>ã "
#. Tag: para
-#: session_api.xml:585
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>lock()</literal> method also allows an application to "
"reassociate an object with a new session. However, the detached instance has "
"to be unmodified."
msgstr ""
-"<literal>lock()</literal>æ¹æ³ä¹å
许ç¨åºéæ°å
³èæä¸ªå¯¹è±¡å°ä¸ä¸ªæ°sessionä¸ãä¸"
-"è¿ï¼è¯¥è±ç®¡(detached)ç对象å¿
é¡»æ¯æ²¡æä¿®æ¹è¿çï¼"
+"<literal>lock()</literal> æ¹æ³ä¹å
许ç¨åºéæ°å
³èæä¸ªå¯¹è±¡å°ä¸ä¸ªæ° session ä¸ã"
+"ä¸è¿ï¼è¯¥è±ç®¡ï¼detachedï¼ç对象å¿
é¡»æ¯æ²¡æä¿®æ¹è¿çã"
-#. Tag: programlisting
-#: session_api.xml:590
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//just reassociate:\n"
-"sess.lock(fritz, LockMode.NONE);\n"
-"//do a version check, then reassociate:\n"
-"sess.lock(izi, LockMode.READ);\n"
-"//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
-"sess.lock(pk, LockMode.UPGRADE);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:592
-#, fuzzy, no-c-format
-msgid ""
"Note that <literal>lock()</literal> can be used with various "
"<literal>LockMode</literal>s. See the API documentation and the chapter on "
"transaction handling for more information. Reattachment is not the only "
"usecase for <literal>lock()</literal>."
msgstr ""
-"请注æï¼<literal>lock()</literal>å¯ä»¥æé
å¤ç§<literal>LockMode</literal>ï¼ æ´"
-"å¤ä¿¡æ¯è¯·é
读APIææ¡£ä»¥åå
³äºäºå¡å¤ç(transaction handling)çç« èãéæ°å
³è䏿¯"
-"<literal>lock()</literal>çå¯ä¸ç¨éã"
+"请注æï¼<literal>lock()</literal> å¯ä»¥æé
å¤ç§ <literal>LockMode</literal>ï¼"
+"æ´å¤ä¿¡æ¯è¯·é
读 API ææ¡£ä»¥åå
³äºäºå¡å¤çï¼transaction handlingï¼çç« èãéæ°å
³"
+"è䏿¯ <literal>lock()</literal> çå¯ä¸ç¨éã "
#. Tag: para
-#: session_api.xml:599
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Other models for long units of work are discussed in <xref linkend="
-"\"transactions-optimistic\"/>."
+"\"transactions-optimistic\" />."
msgstr ""
-"å
¶ä»ç¨äºé¿æ¶é´å·¥ä½åå
çæ¨¡åä¼å¨<xref linkend=\"transactions-optimistic\"/>ä¸"
-"讨论ã"
+"å
¶ä»ç¨äºé¿æ¶é´å·¥ä½åå
çæ¨¡åä¼å¨ <xref linkend=\"transactions-optimistic\"/> "
+"ä¸è®¨è®ºã "
#. Tag: title
-#: session_api.xml:606
#, no-c-format
msgid "Automatic state detection"
msgstr "èªå¨ç¶ææ£æµ"
#. Tag: para
-#: session_api.xml:608
#, no-c-format
msgid ""
"Hibernate users have requested a general purpose method that either saves a "
@@ -1298,30 +867,11 @@
"detached instances associated with its current identifier. The "
"<literal>saveOrUpdate()</literal> method implements this functionality."
msgstr ""
-"Hibernateçç¨æ·æ¾è¦æ±ä¸ä¸ªæ¢å¯èªå¨åé
æ°æä¹
åæ è¯(identifier)ä¿åç¬æ¶"
-"(transient)对象ï¼å坿´æ°/éæ°å
³èè±ç®¡(detached)å®ä¾çéç¨æ¹æ³ã "
-"<literal>saveOrUpdate()</literal>æ¹æ³å®ç°äºè¿ä¸ªåè½ã"
+"Hibernate çç¨æ·æ¾è¦æ±ä¸ä¸ªæ¢å¯èªå¨åé
æ°æä¹
åæ è¯ï¼identifierï¼ä¿åç¬æ¶"
+"ï¼transientï¼å¯¹è±¡ï¼å坿´æ°/éæ°å
³èè±ç®¡ï¼detachedï¼å®ä¾çéç¨æ¹æ³ã"
+"<literal>saveOrUpdate()</literal> æ¹æ³å®ç°äºè¿ä¸ªåè½ã"
-#. Tag: programlisting
-#: session_api.xml:615
-#, no-c-format
-msgid ""
-"<![CDATA[// in the first session\n"
-"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
-"\n"
-"// in a higher tier of the application\n"
-"Cat mate = new Cat();\n"
-"cat.setMate(mate);\n"
-"\n"
-"// later, in a new session\n"
-"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-"
-"null id)\n"
-"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null "
-"id)]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:617
#, no-c-format
msgid ""
"The usage and semantics of <literal>saveOrUpdate()</literal> seems to be "
@@ -1331,178 +881,153 @@
"<literal>merge()</literal>. Some whole applications will never use either of "
"these methods."
msgstr ""
-"<literal>saveOrUpdate()</literal>ç¨éåè¯ä¹å¯è½ä¼ä½¿æ°ç¨æ·æå°è¿·æã é¦å
ï¼åª"
-"è¦ä½ 没æå°è¯å¨æä¸ªsessionä¸ä½¿ç¨æ¥èªå¦ä¸sessionçå®ä¾ï¼ä½ å°±åºè¯¥ä¸éè¦ä½¿ç¨"
-"<literal>update()</literal>ï¼ <literal>saveOrUpdate()</literal>ï¼æ"
+"<literal>saveOrUpdate()</literal> ç¨éåè¯ä¹å¯è½ä¼ä½¿æ°ç¨æ·æå°è¿·æãé¦å
ï¼åª"
+"è¦ä½ 没æå°è¯å¨æä¸ª session ä¸ä½¿ç¨æ¥èªå¦ä¸ session çå®ä¾ï¼ä½ å°±åºè¯¥ä¸éè¦ä½¿"
+"ç¨ <literal>update()</literal>ï¼ <literal>saveOrUpdate()</literal>ï¼æ "
"<literal>merge()</literal>ãæäºç¨åºä»æ¥ä¸ç¨è¿äºæ¹æ³ã"
#. Tag: para
-#: session_api.xml:625
#, no-c-format
msgid ""
"Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are "
"used in the following scenario:"
msgstr ""
-"é常ä¸é¢çåºæ¯ä¼ä½¿ç¨<literal>update()</literal>æ<literal>saveOrUpdate()</"
+"é常ä¸é¢çåºæ¯ä¼ä½¿ç¨ <literal>update()</literal> æ <literal>saveOrUpdate()</"
"literal>ï¼"
#. Tag: para
-#: session_api.xml:632
#, no-c-format
msgid "the application loads an object in the first session"
-msgstr "ç¨åºå¨ç¬¬ä¸ä¸ªsessionä¸å 载对象"
+msgstr "ç¨åºå¨ç¬¬ä¸ä¸ª session ä¸å 载对象"
#. Tag: para
-#: session_api.xml:637
#, no-c-format
msgid "the object is passed up to the UI tier"
msgstr "è¯¥å¯¹è±¡è¢«ä¼ éå°è¡¨ç°å±"
#. Tag: para
-#: session_api.xml:642
#, no-c-format
msgid "some modifications are made to the object"
msgstr "对象åçäºä¸äºæ¹å¨"
#. Tag: para
-#: session_api.xml:647
#, no-c-format
msgid "the object is passed back down to the business logic tier"
msgstr "该对象被è¿åå°ä¸å¡é»è¾å±"
#. Tag: para
-#: session_api.xml:652
#, no-c-format
msgid ""
"the application persists these modifications by calling <literal>update()</"
"literal> in a second session"
-msgstr "ç¨åºè°ç¨ç¬¬äºä¸ªsessionç<literal>update()</literal>æ¹æ³æä¹
è¿äºæ¹å¨"
+msgstr "ç¨åºè°ç¨ç¬¬äºä¸ª session ç <literal>update()</literal> æ¹æ³æä¹
è¿äºæ¹å¨"
#. Tag: para
-#: session_api.xml:659
#, no-c-format
msgid "<literal>saveOrUpdate()</literal> does the following:"
-msgstr "<literal>saveOrUpdate()</literal>åä¸é¢çäº:"
+msgstr "<literal>saveOrUpdate()</literal> åä¸é¢çäºï¼"
#. Tag: para
-#: session_api.xml:665
#, no-c-format
msgid "if the object is already persistent in this session, do nothing"
-msgstr "å¦æå¯¹è±¡å·²ç»å¨æ¬session䏿ä¹
åäºï¼ä¸åä»»ä½äº"
+msgstr "å¦æå¯¹è±¡å·²ç»å¨æ¬ session 䏿ä¹
åäºï¼ä¸åä»»ä½äº"
#. Tag: para
-#: session_api.xml:670
#, no-c-format
msgid ""
"if another object associated with the session has the same identifier, throw "
"an exception"
msgstr ""
-"妿å¦ä¸ä¸ªä¸æ¬sessionå
³èçå¯¹è±¡æ¥æç¸åçæä¹
åæ è¯(identifier)ï¼æåºä¸ä¸ªå¼å¸¸"
+"妿å¦ä¸ä¸ªä¸æ¬ session å
³èçå¯¹è±¡æ¥æç¸åçæä¹
åæ è¯ï¼identifierï¼ï¼æåºä¸ä¸ª"
+"å¼å¸¸"
#. Tag: para
-#: session_api.xml:676
#, no-c-format
msgid "if the object has no identifier property, <literal>save()</literal> it"
msgstr ""
-"å¦æå¯¹è±¡æ²¡ææä¹
åæ è¯(identifier)屿§ï¼å¯¹å
¶è°ç¨<literal>save()</literal>"
+"å¦æå¯¹è±¡æ²¡ææä¹
åæ è¯ï¼identifierï¼å±æ§ï¼å¯¹å
¶è°ç¨ <literal>save()</literal>"
#. Tag: para
-#: session_api.xml:681
#, no-c-format
msgid ""
"if the object's identifier has the value assigned to a newly instantiated "
"object, <literal>save()</literal> it"
msgstr ""
-"å¦æå¯¹è±¡çæä¹
æ è¯(identifier)表æå
¶æ¯ä¸ä¸ªæ°å®ä¾åç对象ï¼å¯¹å
¶è°ç¨"
-"<literal>save()</literal>"
+"å¦æå¯¹è±¡çæä¹
æ è¯ï¼identifierï¼è¡¨æå
¶æ¯ä¸ä¸ªæ°å®ä¾åç对象ï¼å¯¹å
¶è°ç¨ "
+"<literal>save()</literal>ã"
#. Tag: para
-#: session_api.xml:687
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"if the object is versioned by a <literal><version></literal> or "
"<literal><timestamp></literal>, and the version property value is the "
"same value assigned to a newly instantiated object, <literal>save()</"
"literal> it"
msgstr ""
-"å¦æå¯¹è±¡æ¯éå¸¦çæ¬ä¿¡æ¯çï¼éè¿<literal><version></literal>æ"
-"<literal><timestamp></literal>ï¼ å¹¶ä¸çæ¬å±æ§çå¼è¡¨æå
¶æ¯ä¸ä¸ªæ°å®ä¾åç"
-"对象ï¼<literal>save()</literal>å®ã"
+"å¦æå¯¹è±¡æ¯éå¸¦çæ¬ä¿¡æ¯çï¼éè¿ <literal><version></literal> æ "
+"<literal><timestamp></literal>ï¼å¹¶ä¸çæ¬å±æ§çå¼è¡¨æå
¶æ¯ä¸ä¸ªæ°å®ä¾åç"
+"对象ï¼<literal>save()</literal> å®ã "
#. Tag: para
-#: session_api.xml:695
#, no-c-format
msgid "otherwise <literal>update()</literal> the object"
-msgstr "å¦å<literal>update()</literal> è¿ä¸ªå¯¹è±¡"
+msgstr "å¦å <literal>update()</literal> è¿ä¸ªå¯¹è±¡"
#. Tag: para
-#: session_api.xml:701
#, no-c-format
msgid "and <literal>merge()</literal> is very different:"
-msgstr "<literal>merge()</literal>å¯é常ä¸å:"
+msgstr "<literal>merge()</literal> å¯é常ä¸åï¼"
#. Tag: para
-#: session_api.xml:707
#, no-c-format
msgid ""
"if there is a persistent instance with the same identifier currently "
"associated with the session, copy the state of the given object onto the "
"persistent instance"
msgstr ""
-"妿sessionä¸åå¨ç¸åæä¹
åæ è¯(identifier)çå®ä¾ï¼ç¨ç¨æ·ç»åºç对象çç¶æè¦ç"
-"æ§æçæä¹
å®ä¾"
+"妿 session ä¸åå¨ç¸åæä¹
åæ è¯ï¼identifierï¼çå®ä¾ï¼ç¨ç¨æ·ç»åºç对象çç¶æ"
+"è¦çæ§æçæä¹
å®ä¾"
#. Tag: para
-#: session_api.xml:714
#, no-c-format
msgid ""
"if there is no persistent instance currently associated with the session, "
"try to load it from the database, or create a new persistent instance"
msgstr ""
-"妿session没æç¸åºçæä¹
å®ä¾ï¼åå°è¯ä»æ°æ®åºä¸å è½½ï¼æå建æ°çæä¹
åå®ä¾"
+"妿 session 没æç¸åºçæä¹
å®ä¾ï¼åå°è¯ä»æ°æ®åºä¸å è½½ï¼æå建æ°çæä¹
åå®ä¾"
#. Tag: para
-#: session_api.xml:720
#, no-c-format
msgid "the persistent instance is returned"
msgstr "æåè¿å该æä¹
å®ä¾"
#. Tag: para
-#: session_api.xml:725
#, no-c-format
msgid ""
"the given instance does not become associated with the session, it remains "
"detached"
-msgstr "ç¨æ·ç»åºçè¿ä¸ªå¯¹è±¡æ²¡æè¢«å
³èå°sessionä¸ï¼å®ä¾æ§æ¯è±ç®¡ç"
+msgstr "ç¨æ·ç»åºçè¿ä¸ªå¯¹è±¡æ²¡æè¢«å
³èå° session ä¸ï¼å®ä¾æ§æ¯è±ç®¡ç"
#. Tag: title
-#: session_api.xml:735
#, no-c-format
msgid "Deleting persistent objects"
msgstr "å 餿ä¹
对象"
#. Tag: para
-#: session_api.xml:737
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.delete()</literal> will remove an object's state from the "
"database. Your application, however, can still hold a reference to a deleted "
"object. It is best to think of <literal>delete()</literal> as making a "
"persistent instance, transient."
msgstr ""
-"使ç¨<literal>Session.delete()</literal>ä¼æå¯¹è±¡çç¶æä»æ°æ®åºä¸ç§»é¤ã å½ç¶ï¼"
+"ä½¿ç¨ <literal>Session.delete()</literal> ä¼æå¯¹è±¡çç¶æä»æ°æ®åºä¸ç§»é¤ãå½ç¶ï¼"
"ä½ çåºç¨ç¨åºå¯è½ä»ç¶ææä¸ä¸ªæåå·²å é¤å¯¹è±¡çå¼ç¨ãæä»¥ï¼æå¥½è¿æ ·çè§£ï¼"
-"<literal>delete()</literal>çç¨éæ¯æä¸ä¸ªæä¹
å®ä¾åæç¬æ¶(transient)å®ä¾ã"
+"<literal>delete()</literal> çç¨éæ¯æä¸ä¸ªæä¹
å®ä¾åæç¬æ¶ï¼transientï¼å®"
+"ä¾ã "
-#. Tag: programlisting
-#: session_api.xml:744
+#. Tag: para
#, no-c-format
-msgid "<![CDATA[sess.delete(cat);]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:746
-#, fuzzy, no-c-format
msgid ""
"You can delete objects in any order, without risk of foreign key constraint "
"violations. It is still possible to violate a <literal>NOT NULL</literal> "
@@ -1510,92 +1035,71 @@
"g. if you delete the parent, but forget to delete the children."
msgstr ""
"ä½ å¯ä»¥ç¨ä½ 忬¢çä»»ä½é¡ºåºå é¤å¯¹è±¡ï¼ä¸ç¨æ
å¿å¤é®çº¦æå²çªãå½ç¶ï¼å¦æä½ æéäºé¡º"
-"åºï¼è¿æ¯æå¯è½å¼åå¨å¤é®å段å®ä¹ç<literal>NOT NULL</literal>约æå²çªã ä¾å¦"
-"ä½ å é¤äºç¶å¯¹è±¡ï¼ä½æ¯å¿è®°å é¤å©å们ã"
+"åºï¼è¿æ¯æå¯è½å¼åå¨å¤é®å段å®ä¹ç <literal>NOT NULL</literal> 约æå²çªãä¾å¦"
+"ä½ å é¤äºç¶å¯¹è±¡ï¼ä½æ¯å¿è®°å é¤å
¶å对象ã"
#. Tag: title
-#: session_api.xml:757
#, no-c-format
msgid "Replicating object between two different datastores"
msgstr "å¨ä¸¤ä¸ªä¸åæ°æ®åºé´å¤å¶å¯¹è±¡"
#. Tag: para
-#: session_api.xml:759
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is sometimes useful to be able to take a graph of persistent instances "
"and make them persistent in a different datastore, without regenerating "
"identifier values."
msgstr ""
-"å¶å°ä¼ç¨å°ä¸éæ°çææä¹
åæ è¯(identifier)ï¼å°æä¹
å®ä¾ä»¥åå
¶å
³èçå®ä¾æä¹
å°"
-"ä¸åçæ°æ®åºä¸çæä½ã"
+"å¶å°ä¼ç¨å°ä¸éæ°çææä¹
åæ è¯ï¼identifierï¼ï¼å°æä¹
å®ä¾ä»¥åå
¶å
³èçå®ä¾æä¹
"
+"å°ä¸åçæ°æ®åºä¸çæä½ã "
-#. Tag: programlisting
-#: session_api.xml:765
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[//retrieve a cat from one database\n"
-"Session session1 = factory1.openSession();\n"
-"Transaction tx1 = session1.beginTransaction();\n"
-"Cat cat = session1.get(Cat.class, catId);\n"
-"tx1.commit();\n"
-"session1.close();\n"
-"\n"
-"//reconcile with a second database\n"
-"Session session2 = factory2.openSession();\n"
-"Transaction tx2 = session2.beginTransaction();\n"
-"session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
-"tx2.commit();\n"
-"session2.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:767
-#, fuzzy, no-c-format
-msgid ""
"The <literal>ReplicationMode</literal> determines how <literal>replicate()</"
"literal> will deal with conflicts with existing rows in the database:"
msgstr ""
-"<literal>ReplicationMode</literal>å³å®å¨åæ°æ®åºä¸å·²åå¨è®°å½ç±å²çªæ¶ï¼"
-"<literal>replicate()</literal>å¦ä½å¤çã"
+"<literal>ReplicationMode</literal> å³å®å¨åæ°æ®åºä¸å·²åå¨è®°å½ç±å²çªæ¶ï¼"
+"<literal>replicate()</literal> å¦ä½å¤çã "
#. Tag: para
-#: session_api.xml:774
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.IGNORE</literal>: ignores the object when there is "
"an existing database row with the same identifier"
-msgstr "<literal>ReplicationMode.IGNORE</literal> - 忽ç¥å®"
+msgstr ""
+"<literal>ReplicationMode.IGNORE</literal>ï¼å½æä¸ªç°ææ°æ®åºè®°å½å
·æç¸åæ è¯ç¬¦"
+"æ¶å¿½ç¥å®"
#. Tag: para
-#: session_api.xml:780
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.OVERWRITE</literal>: overwrites any existing "
"database row with the same identifier"
-msgstr "<literal>ReplicationMode.OVERWRITE</literal> - è¦çç¸åçè¡"
+msgstr ""
+"<literal>ReplicationMode.OVERWRITE</literal>ï¼ç¨ç¸åçæ è¯ç¬¦è¦çç°ææ°æ®åºè®°"
+"å½"
#. Tag: para
-#: session_api.xml:786
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.EXCEPTION</literal>: throws an exception if there "
"is an existing database row with the same identifier"
-msgstr "<literal>ReplicationMode.EXCEPTION</literal> - æåºå¼å¸¸"
+msgstr ""
+"<literal>ReplicationMode.EXCEPTION</literal>ï¼å½æä¸ªç°ææ°æ®åºè®°å½å
·æç¸åæ "
+"è¯ç¬¦æ¶æåºå¼å¸¸"
#. Tag: para
-#: session_api.xml:792
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ReplicationMode.LATEST_VERSION</literal>: overwrites the row if its "
"version number is earlier than the version number of the object, or ignore "
"the object otherwise"
msgstr ""
-"<literal>ReplicationMode.LATEST_VERSION</literal> - 妿å½åççæ¬è¾æ°ï¼åè¦"
+"<literal>ReplicationMode.LATEST_VERSION</literal>ï¼å¦æå½åççæ¬è¾æ°ï¼åè¦"
"çï¼å¦å忽ç¥"
#. Tag: para
-#: session_api.xml:800
#, no-c-format
msgid ""
"Usecases for this feature include reconciling data entered into different "
@@ -1604,109 +1108,95 @@
"more."
msgstr ""
"è¿ä¸ªåè½çç¨éå
æ¬ä½¿å½å
¥çæ°æ®å¨ä¸åæ°æ®åºä¸ä¸è´ï¼äº§åå级æ¶å级系ç»é
置信"
-"æ¯ï¼åæ»non-ACIDäºå¡ä¸çä¿®æ¹ççã ï¼è¯æ³¨ï¼non-ACIDï¼éACID;ACIDï¼Atomicï¼"
-"Consistentï¼Isolated and Durableç缩åï¼"
+"æ¯ï¼åæ» non-ACID äºå¡ä¸çä¿®æ¹ççãï¼è¯æ³¨ï¼non-ACIDï¼é ACID;ACIDï¼Atomicï¼"
+"Consistentï¼Isolated and Durable ç缩åï¼"
#. Tag: title
-#: session_api.xml:809
#, no-c-format
msgid "Flushing the Session"
-msgstr "Sessionå·åº(flush)"
+msgstr "Session å·åºï¼flushï¼"
#. Tag: para
-#: session_api.xml:811
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Sometimes the <literal>Session</literal> will execute the SQL statements "
"needed to synchronize the JDBC connection's state with the state of objects "
"held in memory. This process, called <emphasis>flush</emphasis>, occurs by "
"default at the following points:"
msgstr ""
-"æ¯é´é䏿®µæ¶é´ï¼<literal>Session</literal>伿§è¡ä¸äºå¿
éçSQLè¯å¥æ¥æå
åä¸ç"
-"对象çç¶æåæ¥å°JDBCè¿æ¥ä¸ãè¿ä¸ªè¿ç¨è¢«ç§°ä¸º<emphasis>å·åº(flush)</emphasis>ï¼"
-"é»è®¤ä¼å¨ä¸é¢çæ¶é´ç¹æ§è¡ï¼"
+"æ¯é´é䏿®µæ¶é´ï¼<literal>Session</literal> 伿§è¡ä¸äºå¿
éç SQL è¯å¥æ¥æå
å"
+"ä¸ç对象çç¶æåæ¥å° JDBC è¿æ¥ä¸ãè¿ä¸ªè¿ç¨è¢«ç§°ä¸º<emphasis>å·åºï¼flushï¼</"
+"emphasis>ï¼é»è®¤ä¼å¨ä¸é¢çæ¶é´ç¹æ§è¡ï¼ "
#. Tag: para
-#: session_api.xml:820
#, no-c-format
msgid "before some query executions"
msgstr "å¨æäºæ¥è¯¢æ§è¡ä¹å"
#. Tag: para
-#: session_api.xml:825
#, no-c-format
msgid "from <literal>org.hibernate.Transaction.commit()</literal>"
-msgstr "å¨è°ç¨<literal>org.hibernate.Transaction.commit()</literal>çæ¶å"
+msgstr "å¨è°ç¨ <literal>org.hibernate.Transaction.commit()</literal> çæ¶å"
#. Tag: para
-#: session_api.xml:830
#, no-c-format
msgid "from <literal>Session.flush()</literal>"
-msgstr "å¨è°ç¨<literal>Session.flush()</literal>çæ¶å"
+msgstr "å¨è°ç¨ <literal>Session.flush()</literal> çæ¶å"
#. Tag: para
-#: session_api.xml:836
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The SQL statements are issued in the following order:"
-msgstr "æ¶åçSQLè¯å¥ä¼æç
§ä¸é¢ç顺åºååºæ§è¡ï¼"
+msgstr "æ¶åç SQL è¯å¥ä¼æç
§ä¸é¢ç顺åºååºæ§è¡ï¼ "
#. Tag: para
-#: session_api.xml:842
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity insertions in the same order the corresponding objects were saved "
"using <literal>Session.save()</literal>"
msgstr ""
-"ææå¯¹å®ä½è¿è¡æå
¥çè¯å¥ï¼å
¶é¡ºåºæç
§å¯¹è±¡æ§è¡<literal>Session.save()</literal>"
-"çæ¶é´é¡ºåº"
+"ææå¯¹å®ä½è¿è¡æå
¥çè¯å¥ï¼å
¶é¡ºåºæç
§å¯¹è±¡æ§è¡ <literal>Session.save()</"
+"literal> çæ¶é´é¡ºåº "
#. Tag: para
-#: session_api.xml:848
#, no-c-format
msgid "all entity updates"
msgstr "ææå¯¹å®ä½è¿è¡æ´æ°çè¯å¥"
#. Tag: para
-#: session_api.xml:853
#, no-c-format
msgid "all collection deletions"
msgstr "ææè¿è¡éåå é¤çè¯å¥"
#. Tag: para
-#: session_api.xml:858
#, no-c-format
msgid "all collection element deletions, updates and insertions"
msgstr "ææå¯¹éåå
ç´ è¿è¡å é¤ï¼æ´æ°æè
æå
¥çè¯å¥"
#. Tag: para
-#: session_api.xml:863
#, no-c-format
msgid "all collection insertions"
msgstr "ææè¿è¡éåæå
¥çè¯å¥"
#. Tag: para
-#: session_api.xml:868
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"all entity deletions in the same order the corresponding objects were "
"deleted using <literal>Session.delete()</literal>"
msgstr ""
-"ææå¯¹å®ä½è¿è¡å é¤çè¯å¥ï¼å
¶é¡ºåºæç
§å¯¹è±¡æ§è¡<literal>Session.delete()</"
-"literal>çæ¶é´é¡ºåº"
+"ææå¯¹å®ä½è¿è¡å é¤çè¯å¥ï¼å
¶é¡ºåºæç
§å¯¹è±¡æ§è¡ <literal>Session.delete()</"
+"literal> çæ¶é´é¡ºåº "
#. Tag: para
-#: session_api.xml:875
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception is that objects using <literal>native</literal> ID generation "
"are inserted when they are saved."
msgstr ""
-"ï¼æä¸ä¸ªä¾å¤æ¯ï¼å¦æå¯¹è±¡ä½¿ç¨<literal>native</literal>æ¹å¼æ¥çæIDï¼æä¹
åæ "
-"è¯ï¼çè¯ï¼å®ä»¬ä¸æ§è¡saveå°±ä¼è¢«æå
¥ãï¼"
+"æä¸ä¸ªä¾å¤æ¯ï¼å¦æå¯¹è±¡ä½¿ç¨ <literal>native</literal> æ¹å¼æ¥çæ IDï¼æä¹
åæ "
+"è¯ï¼çè¯ï¼å®ä»¬ä¸æ§è¡ save å°±ä¼è¢«æå
¥ã"
#. Tag: para
-#: session_api.xml:880
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Except when you explicitly <literal>flush()</literal>, there are absolutely "
"no guarantees about <emphasis>when</emphasis> the <literal>Session</literal> "
@@ -1714,13 +1204,12 @@
"are executed. However, Hibernate does guarantee that the <literal>Query.list"
"(..)</literal> will never return stale or incorrect data."
msgstr ""
-"é¤éä½ æç¡®å°ååºäº<literal>flush()</literal>æä»¤ï¼å
³äºSession<emphasis>使¶</"
-"emphasis>伿§è¡è¿äºJDBCè°ç¨æ¯å®å
¨æ æ³ä¿è¯çï¼åªè½ä¿è¯å®ä»¬æ§è¡çåå顺åºã å½"
-"ç¶ï¼Hibernateä¿è¯ï¼<literal>Query.list(..)</literal>ç»å¯¹ä¸ä¼è¿åå·²ç»å¤±æçæ°"
-"æ®ï¼ä¹ä¸ä¼è¿åéè¯¯æ°æ®ã"
+"é¤éä½ æç¡®å°ååºäº <literal>flush()</literal> æä»¤ï¼å
³äº Session<emphasis> ä½"
+"æ¶</emphasis>伿§è¡è¿äº JDBC è°ç¨æ¯å®å
¨æ æ³ä¿è¯çï¼åªè½ä¿è¯å®ä»¬æ§è¡çåå顺"
+"åºãå½ç¶ï¼Hibernate ä¿è¯ï¼<literal>Query.list(..)</literal> ç»å¯¹ä¸ä¼è¿åå·²ç»"
+"失æçæ°æ®ï¼ä¹ä¸ä¼è¿åéè¯¯æ°æ®ã "
#. Tag: para
-#: session_api.xml:888
#, fuzzy, no-c-format
msgid ""
"It is possible to change the default behavior so that flush occurs less "
@@ -1730,57 +1219,34 @@
"never flush unless <literal>flush()</literal> is called explicitly. The last "
"mode is useful for long running units of work, where a <literal>Session</"
"literal> is kept open and disconnected for a long time (see <xref linkend="
-"\"transactions-optimistic-longsession\"/>)."
+"\"transactions-optimistic-longsession\" />)."
msgstr ""
-"ä¹å¯ä»¥æ¹åé»è®¤çè®¾ç½®ï¼æ¥è®©å·åº(flush)æä½åççä¸é£ä¹é¢ç¹ã "
-"<literal>FlushMode</literal>ç±»å®ä¹äºä¸ç§ä¸åçæ¹å¼ã ä»
å¨æäº¤æ¶å·åº(ä»
å½"
-"Hibernateç<literal>Transaction</literal> APIè¢«ä½¿ç¨æ¶ææ)ï¼ æç
§åæè¯´çæ¹å¼"
-"å·åºï¼ 以åé¤éæç¡®ä½¿ç¨<literal>flush()</literal>å¦åä»ä¸å·åºã æåä¸ç§æ¨¡å¼"
-"对äºé£äºéè¦é¿æ¶é´ä¿æ<literal>Session</literal>为æå¼æè
æçº¿ç¶æçé¿æ¶é´è¿"
-"è¡çå·¥ä½åå
徿ç¨ã (åè§ <xref linkend=\"transactions-optimistic-"
-"longsession\"/>)."
+"ä¹å¯ä»¥æ¹åé»è®¤çè®¾ç½®ï¼æ¥è®©å·åºï¼flushï¼æä½åççä¸é£ä¹é¢ç¹ã"
+"<literal>FlushMode</literal> ç±»å®ä¹äºä¸ç§ä¸åçæ¹å¼ãä»
å¨æäº¤æ¶å·åºï¼ä»
å½ "
+"Hibernate ç <literal>Transaction</literal> API è¢«ä½¿ç¨æ¶ææï¼ï¼æç
§åæè¯´ç"
+"æ¹å¼å·åºï¼ä»¥åé¤éæç¡®ä½¿ç¨ <literal>flush()</literal> å¦åä»ä¸å·åºã æåä¸ç§"
+"模å¼å¯¹äºé£äºéè¦é¿æ¶é´ä¿æ <literal>Session</literal> 为æå¼æè
æçº¿ç¶æçé¿"
+"æ¶é´è¿è¡çå·¥ä½åå
徿ç¨ãï¼åè§ <xref linkend=\"transactions-optimistic-"
+"longsession\"/>ï¼ã "
-#. Tag: programlisting
-#: session_api.xml:898
-#, no-c-format
-msgid ""
-"<![CDATA[sess = sf.openSession();\n"
-"Transaction tx = sess.beginTransaction();\n"
-"sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale state\n"
-"\n"
-"Cat izi = (Cat) sess.load(Cat.class, id);\n"
-"izi.setName(iznizi);\n"
-"\n"
-"// might return stale data\n"
-"sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
-"\n"
-"// change to izi is not flushed!\n"
-"...\n"
-"tx.commit(); // flush occurs\n"
-"sess.close();]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:900
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"During flush, an exception might occur (e.g. if a DML operation violates a "
"constraint). Since handling exceptions involves some understanding of "
"Hibernate's transactional behavior, we discuss it in <xref linkend="
-"\"transactions\"/>."
+"\"transactions\" />."
msgstr ""
-"å·åº(flush)æé´ï¼å¯è½ä¼æåºå¼å¸¸ãï¼ä¾å¦ä¸ä¸ªDMLæä½è¿åäºçº¦æï¼ å¼å¸¸å¤çæ¶åå°"
-"对Hibernateäºå¡æ§è¡ä¸ºççè§£ï¼å æ¤æä»¬å°å¨<xref linkend=\"transactions\"/>ä¸è®¨"
-"论ã"
+"å·åºï¼flushï¼æé´ï¼å¯è½ä¼æåºå¼å¸¸ï¼ä¾å¦ä¸ä¸ª DML æä½è¿åäºçº¦æï¼ãå¼å¸¸å¤çæ¶"
+"åå°å¯¹ Hibernate äºå¡æ§è¡ä¸ºççè§£ï¼å æ¤æä»¬å°å¨ <xref linkend=\"transactions"
+"\"/> ä¸è®¨è®ºã"
#. Tag: title
-#: session_api.xml:909
#, no-c-format
msgid "Transitive persistence"
-msgstr "ä¼ ææ§æä¹
å(transitive persistence)"
+msgstr "ä¼ ææ§æä¹
åï¼transitive persistenceï¼"
#. Tag: para
-#: session_api.xml:911
#, no-c-format
msgid ""
"It is quite cumbersome to save, delete, or reattach individual objects, "
@@ -1788,11 +1254,10 @@
"a parent/child relationship. Consider the following example:"
msgstr ""
"对æ¯ä¸ä¸ªå¯¹è±¡é½è¦æ§è¡ä¿åï¼å 餿éå
³èæä½è®©äººæè§æç¹éº»ç¦ï¼å°¤å
¶æ¯å¨å¤ç许å¤"
-"å½¼æ¤å
³èçå¯¹è±¡çæ¶åã ä¸ä¸ªå¸¸è§çä¾åæ¯ç¶åå
³ç³»ãèèä¸é¢çä¾å:"
+"å½¼æ¤å
³èçå¯¹è±¡çæ¶åãä¸ä¸ªå¸¸è§çä¾åæ¯ç¶åå
³ç³»ãèèä¸é¢çä¾åï¼"
#. Tag: para
-#: session_api.xml:917
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the children in a parent/child relationship would be value typed (e.g. a "
"collection of addresses or strings), their life cycle would depend on the "
@@ -1803,16 +1268,15 @@
"collection. Since value-typed objects cannot have shared references, "
"Hibernate will detect this and delete the child from the database."
msgstr ""
-"妿ä¸ä¸ªç¶åå
³ç³»ä¸çå对象æ¯å¼ç±»å(value typed)ï¼ä¾å¦ï¼å°åæå符串çéåï¼"
-"çï¼ä»ä»¬ççå½å¨æä¼ä¾èµäºç¶å¯¹è±¡ï¼å¯ä»¥äº«åæ¹ä¾¿ç级èæä½(Cascading)ï¼ä¸éè¦é¢"
-"å¤çå¨ä½ã ç¶å¯¹è±¡è¢«ä¿åæ¶ï¼è¿äºå¼ç±»å(value typed)å对象ä¹å°è¢«ä¿åï¼ç¶å¯¹è±¡è¢«"
-"å 餿¶ï¼å对象ä¹å°è¢«å é¤ã è¿å¯¹å°ä¸ä¸ªå对象ä»éåä¸ç§»é¤æ¯åæ ·ææï¼Hibernate"
-"伿£æµå°ï¼å¹¶ä¸å 为å¼ç±»å(value typed)ç对象ä¸å¯è½è¢«å
¶ä»å¯¹è±¡å¼ç¨ï¼æä»¥"
-"Hibernateä¼å¨æ°æ®åºä¸å é¤è¿ä¸ªå对象ã"
+"妿ä¸ä¸ªç¶åå
³ç³»ä¸çå对象æ¯å¼ç±»åï¼value typedï¼ï¼ä¾å¦ï¼å°åæå符串çéåï¼"
+"çï¼ä»ä»¬ççå½å¨æä¼ä¾èµäºç¶å¯¹è±¡ï¼å¯ä»¥äº«åæ¹ä¾¿ç级èæä½ï¼Cascadingï¼ï¼ä¸éè¦"
+"é¢å¤çå¨ä½ãç¶å¯¹è±¡è¢«ä¿åæ¶ï¼è¿äºå¼ç±»åï¼value typedï¼å对象ä¹å°è¢«ä¿åï¼ç¶å¯¹è±¡"
+"被å 餿¶ï¼å对象ä¹å°è¢«å é¤ãè¿å¯¹å°ä¸ä¸ªå对象ä»éåä¸ç§»é¤æ¯åæ ·ææï¼"
+"Hibernate 伿£æµå°ï¼å¹¶ä¸å 为å¼ç±»åï¼value typedï¼ç对象ä¸å¯è½è¢«å
¶ä»å¯¹è±¡å¼ç¨ï¼"
+"æä»¥ Hibernate ä¼å¨æ°æ®åºä¸å é¤è¿ä¸ªå对象ã "
#. Tag: para
-#: session_api.xml:928
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now consider the same scenario with parent and child objects being entities, "
"not value-types (e.g. categories and items, or parent and child cats). "
@@ -1822,14 +1286,13 @@
"entities. Hibernate does not implement <emphasis>persistence by "
"reachability</emphasis> by default."
msgstr ""
-"ç°å¨èèåæ ·çåºæ¯ï¼ä¸è¿ç¶åå¯¹è±¡é½æ¯å®ä½(entities)ç±»åï¼èéå¼ç±»å(value "
-"typed)ï¼ä¾å¦ï¼ç±»å«ä¸ä¸ªä½ï¼ææ¯ç«åå°ç«ï¼ã å®ä½æèªå·±çç彿ï¼å
许å
±äº«å¯¹å
¶ç"
-"å¼ç¨ï¼å æ¤ä»éåä¸ç§»é¤ä¸ä¸ªå®ä½ï¼ä¸æå³çå®å¯ä»¥è¢«å é¤ï¼ï¼ å¹¶ä¸å®ä½å°å
¶ä»å
³èå®"
-"ä½ä¹é´é»è®¤æ²¡æçº§èæä½ç设置ã Hibernateé»è®¤ä¸å®ç°æè°ç<emphasis>å¯å°è¾¾å³æ"
-"ä¹
åï¼persistence by reachabilityï¼</emphasis>ççç¥ã"
+"ç°å¨èèåæ ·çåºæ¯ï¼ä¸è¿ç¶åå¯¹è±¡é½æ¯å®ä½ï¼entitiesï¼ç±»åï¼èéå¼ç±»åï¼value "
+"typedï¼ï¼ä¾å¦ï¼ç±»å«ä¸ä¸ªä½ï¼ææ¯ç«åå°ç«ï¼ãå®ä½æèªå·±çç彿ï¼å
许å
±äº«å¯¹å
¶ç"
+"å¼ç¨ï¼å æ¤ä»éåä¸ç§»é¤ä¸ä¸ªå®ä½ï¼ä¸æå³çå®å¯ä»¥è¢«å é¤ï¼ï¼å¹¶ä¸å®ä½å°å
¶ä»å
³èå®"
+"ä½ä¹é´é»è®¤æ²¡æçº§èæä½ç设置ã Hibernate é»è®¤ä¸å®ç°æè°ç<emphasis>å¯å°è¾¾å³æ"
+"ä¹
åï¼persistence by reachabilityï¼</emphasis>ççç¥ã "
#. Tag: para
-#: session_api.xml:937
#, no-c-format
msgid ""
"For each basic operation of the Hibernate session - including "
@@ -1840,47 +1303,31 @@
"operation to be cascaded along an association, you must indicate that in the "
"mapping document. For example:"
msgstr ""
-"æ¯ä¸ªHibernate sessionçåºæ¬æä½ - å
æ¬ <literal>persist(), merge(), "
+"æ¯ä¸ª Hibernate session çåºæ¬æä½ â å
æ¬ <literal>persist(), merge(), "
"saveOrUpdate(), delete(), lock(), refresh(), evict(), replicate()</literal> "
-"- 齿坹åºç级è飿 ¼(cascade style)ã è¿äºçº§è飿 ¼(cascade style)飿 ¼åå«å½å"
-"为 <literal>create, merge, save-update, delete, lock, refresh, evict, "
-"replicate</literal>ã å¦æä½ å¸æä¸ä¸ªæä½è¢«é¡ºçå
³èå
³ç³»çº§èä¼ æï¼ä½ å¿
须卿 å°"
-"æä»¶ä¸æåºè¿ä¸ç¹ãä¾å¦ï¼"
+"â 齿坹åºç级è飿 ¼ï¼cascade styleï¼ãè¿äºçº§è飿 ¼ï¼cascade styleï¼é£æ ¼åå«"
+"å½å为 <literal>create, merge, save-update, delete, lock, refresh, evict, "
+"replicate</literal>ãå¦æä½ å¸æä¸ä¸ªæä½è¢«é¡ºçå
³èå
³ç³»çº§èä¼ æï¼ä½ å¿
须卿 尿"
+"件䏿åºè¿ä¸ç¹ãä¾å¦ï¼"
-#. Tag: programlisting
-#: session_api.xml:946
-#, no-c-format
-msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: session_api.xml:948
#, no-c-format
msgid "Cascade styles my be combined:"
-msgstr "级è飿 ¼(cascade style)æ¯å¯ç»åç:"
+msgstr "级è飿 ¼ï¼cascade styleï¼æ¯å¯ç»åçï¼"
-#. Tag: programlisting
-#: session_api.xml:952
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: session_api.xml:954
-#, fuzzy, no-c-format
-msgid ""
"You can even use <literal>cascade=\"all\"</literal> to specify that "
"<emphasis>all</emphasis> operations should be cascaded along the "
"association. The default <literal>cascade=\"none\"</literal> specifies that "
"no operations are to be cascaded."
msgstr ""
-"ä½ å¯ä»¥ä½¿ç¨<literal>cascade=\"all\"</literal>æ¥æå®<emphasis>å
¨é¨</emphasis>æ"
-"ä½é½é¡ºçå
³èå
³ç³»çº§è(cascaded)ã é»è®¤å¼æ¯<literal>cascade=\"none\"</"
-"literal>ï¼å³ä»»ä½æä½é½ä¸ä¼è¢«çº§è(cascaded)ã"
+"ä½ å¯ä»¥ä½¿ç¨ <literal>cascade=\"all\"</literal> æ¥æå®<emphasis>å
¨é¨</emphasis>"
+"æä½é½é¡ºçå
³èå
³ç³»çº§èï¼cascadedï¼ãé»è®¤å¼æ¯ <literal>cascade=\"none\"</"
+"literal>ï¼å³ä»»ä½æä½é½ä¸ä¼è¢«çº§èï¼cascadedï¼ã "
#. Tag: para
-#: session_api.xml:960
#, no-c-format
msgid ""
"A special cascade style, <literal>delete-orphan</literal>, applies only to "
@@ -1888,44 +1335,40 @@
"operation should be applied to any child object that is removed from the "
"association."
msgstr ""
-"注ææä¸ä¸ªç¹æ®ç级è飿 ¼(cascade style) <literal>delete-orphan</literal>ï¼åª"
-"åºç¨äºone-to-manyå
³èï¼è¡¨æ<literal>delete()</literal>æä½ åºè¯¥è¢«åºç¨äºææä»"
-"å
³èä¸å é¤ç对象ã"
+"注ææä¸ä¸ªç¹æ®ç级è飿 ¼ï¼cascade styleï¼ <literal>delete-orphan</literal>ï¼"
+"åªåºç¨äº one-to-many å
³èï¼è¡¨æ <literal>delete()</literal> æä½åºè¯¥è¢«åºç¨äº"
+"ææä»å
³èä¸å é¤ç对象ã"
#. Tag: para
-#: session_api.xml:967
#, no-c-format
msgid "Recommendations:"
-msgstr "建议:"
+msgstr "建议ï¼"
#. Tag: para
-#: session_api.xml:973
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It does not usually make sense to enable cascade on a <literal><many-to-"
"one></literal> or <literal><many-to-many></literal> association. "
"Cascade is often useful for <literal><one-to-one></literal> and "
"<literal><one-to-many></literal> associations."
msgstr ""
-"é常å¨<literal><many-to-one></literal>æ<literal><many-to-many></"
-"literal>å
³ç³»ä¸åºç¨çº§è(cascade)没ä»ä¹æä¹ã 级è(cascade)éå¸¸å¨ <literal><"
-"one-to-one></literal>å<literal><one-to-many></literal>å
³ç³»ä¸æ¯è¾æ"
-"ç¨ã"
+"éå¸¸å¨ <literal><many-to-one></literal> æ <literal><many-to-"
+"many></literal> å
³ç³»ä¸åºç¨çº§èï¼cascadeï¼æ²¡ä»ä¹æä¹ã级èï¼cascadeï¼é常"
+"å¨ <literal><one-to-one></literal> å <literal><one-to-many></"
+"literal> å
³ç³»ä¸æ¯è¾æç¨ã "
#. Tag: para
-#: session_api.xml:981
#, no-c-format
msgid ""
"If the child object's lifespan is bounded by the lifespan of the parent "
"object, make it a <emphasis>life cycle object</emphasis> by specifying "
"<literal>cascade=\"all,delete-orphan\"</literal>."
msgstr ""
-"妿å对象ç寿å½éå®å¨ç¶äº²å¯¹è±¡ç寿å½ä¹å
ï¼å¯éè¿æå®<literal>cascade=\"all,"
-"delete-orphan\"</literal>å°å
¶å为<emphasis>èªå¨çå½å¨æç®¡çç对象(life cycle "
-"object)</emphasis>ã"
+"妿å对象ç寿å½éå®å¨ç¶äº²å¯¹è±¡ç寿å½ä¹å
ï¼å¯éè¿æå® <literal>cascade=\"all,"
+"delete-orphan\"</literal> å°å
¶å为<emphasis>èªå¨çå½å¨æç®¡çç对象"
+"ï¼lifecycle objectï¼</emphasis>ã "
#. Tag: para
-#: session_api.xml:988
#, no-c-format
msgid ""
"Otherwise, you might not need cascade at all. But if you think that you will "
@@ -1933,12 +1376,11 @@
"transaction, and you want to save yourself some typing, consider using "
"<literal>cascade=\"persist,merge,save-update\"</literal>."
msgstr ""
-"å
¶ä»æ
åµï¼ä½ 坿 ¹æ¬ä¸éè¦çº§è(cascade)ã使¯å¦æä½ è®¤ä¸ºä½ ä¼ç»å¸¸å¨æä¸ªäºå¡ä¸åæ¶"
-"ç¨å°ç¶å¯¹è±¡ä¸å对象ï¼å¹¶ä¸ä½ 叿尿ç¹å¿åï¼å¯ä»¥èè使ç¨<literal>cascade="
+"å
¶ä»æ
åµï¼ä½ 坿 ¹æ¬ä¸éè¦çº§èï¼cascadeï¼ã使¯å¦æä½ è®¤ä¸ºä½ ä¼ç»å¸¸å¨æä¸ªäºå¡ä¸å"
+"æ¶ç¨å°ç¶å¯¹è±¡ä¸å对象ï¼å¹¶ä¸ä½ 叿尿ç¹å¿åï¼å¯ä»¥èèä½¿ç¨ <literal>cascade="
"\"persist,merge,save-update\"</literal>ã"
#. Tag: para
-#: session_api.xml:996
#, no-c-format
msgid ""
"Mapping an association (either a single valued association, or a collection) "
@@ -1946,13 +1388,13 @@
"<emphasis>parent/child</emphasis> style relationship where save/update/"
"delete of the parent results in save/update/delete of the child or children."
msgstr ""
-"å¯ä»¥ä½¿ç¨<literal>cascade=\"all\"</literal>å°ä¸ä¸ªå
³èå
³ç³»ï¼æ 论æ¯å¯¹å¼å¯¹è±¡çå
³"
-"èï¼æè
对ä¸ä¸ªéåçå
³èï¼æ 记为<emphasis>ç¶/å</emphasis>å
³ç³»çå
³èã è¿æ ·å¯¹"
-"ç¶å¯¹è±¡è¿è¡save/update/deleteæä½å°±ä¼å¯¼è´å对象ä¹è¿è¡save/update/deleteæä½ã"
+"å¯ä»¥ä½¿ç¨ <literal>cascade=\"all\"</literal> å°ä¸ä¸ªå
³èå
³ç³»ï¼æ 论æ¯å¯¹å¼å¯¹è±¡ç"
+"å
³èï¼æè
对ä¸ä¸ªéåçå
³èï¼æ 记为<emphasis>ç¶/å</emphasis>å
³ç³»çå
³èã è¿æ ·"
+"对ç¶å¯¹è±¡è¿è¡ save/update/delete æä½å°±ä¼å¯¼è´å对象ä¹è¿è¡ save/update/delete "
+"æä½ã"
#. Tag: para
-#: session_api.xml:1002
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Furthermore, a mere reference to a child from a persistent parent will "
"result in save/update of the child. This metaphor is incomplete, however. A "
@@ -1962,64 +1404,59 @@
"literal>. The precise semantics of cascading operations for a parent/child "
"relationship are as follows:"
msgstr ""
-"æ¤å¤ï¼ä¸ä¸ªæä¹
çç¶å¯¹è±¡å¯¹åå¯¹è±¡çæµ
å¼ç¨(mere reference)ä¼å¯¼è´åå¯¹è±¡è¢«åæ¥save/"
-"updateã ä¸è¿ï¼è¿ä¸ªéå»(metaphor)ç说æ³å¹¶ä¸å®æ´ãé¤éå
³èæ¯<literal><one-"
-"to-many></literal>å
³èå¹¶ä¸è¢«æ 记为<literal>cascade=\"delete-orphan\"</"
-"literal>ï¼ å¦åç¶å¯¹è±¡å¤±å»å¯¹æä¸ªå对象çå¼ç¨<emphasis>ä¸ä¼</emphasis>导è´è¯¥å"
-"对象被èªå¨å é¤ã ç¶åå
³ç³»ç级è(cascading)æä½åç¡®è¯ä¹å¦ä¸ï¼"
+"æ¤å¤ï¼ä¸ä¸ªæä¹
çç¶å¯¹è±¡å¯¹åå¯¹è±¡çæµ
å¼ç¨ï¼mere referenceï¼ä¼å¯¼è´åå¯¹è±¡è¢«åæ¥ "
+"save/updateãä¸è¿ï¼è¿ä¸ªéå»ï¼metaphorï¼ç说æ³å¹¶ä¸å®æ´ãé¤éå
³èæ¯ "
+"<literal><one-to-many></literal> å
³èå¹¶ä¸è¢«æ 记为 <literal>cascade="
+"\"delete-orphan\"</literal>ï¼å¦åç¶å¯¹è±¡å¤±å»å¯¹æä¸ªå对象çå¼ç¨<emphasis>ä¸ä¼</"
+"emphasis>导è´è¯¥å对象被èªå¨å é¤ãç¶åå
³ç³»ç级èï¼cascadingï¼æä½åç¡®è¯ä¹å¦"
+"ä¸ï¼ "
#. Tag: para
-#: session_api.xml:1013
#, no-c-format
msgid ""
"If a parent is passed to <literal>persist()</literal>, all children are "
"passed to <literal>persist()</literal>"
msgstr ""
-"妿ç¶å¯¹è±¡è¢«<literal>persist()</literal>ï¼é£ä¹ææå对象ä¹ä¼è¢«"
+"妿ç¶å¯¹è±¡è¢« <literal>persist()</literal>ï¼é£ä¹ææå对象ä¹ä¼è¢« "
"<literal>persist()</literal>"
#. Tag: para
-#: session_api.xml:1019
#, no-c-format
msgid ""
"If a parent is passed to <literal>merge()</literal>, all children are passed "
"to <literal>merge()</literal>"
msgstr ""
-"妿ç¶å¯¹è±¡è¢«<literal>merge()</literal>ï¼é£ä¹ææå对象ä¹ä¼è¢«<literal>merge()"
-"</literal>"
+"妿ç¶å¯¹è±¡è¢« <literal>merge()</literal>ï¼é£ä¹ææå对象ä¹ä¼è¢« <literal>merge"
+"()</literal>"
#. Tag: para
-#: session_api.xml:1025
#, no-c-format
msgid ""
"If a parent is passed to <literal>save()</literal>, <literal>update()</"
"literal> or <literal>saveOrUpdate()</literal>, all children are passed to "
"<literal>saveOrUpdate()</literal>"
msgstr ""
-"妿ç¶å¯¹è±¡è¢«<literal>save()</literal>ï¼<literal>update()</literal>æ "
-"<literal>saveOrUpdate()</literal>ï¼é£ä¹ææå对象åä¼è¢«<literal>saveOrUpdate"
+"妿ç¶å¯¹è±¡è¢« <literal>save()</literal>ï¼<literal>update()</literal> æ "
+"<literal>saveOrUpdate()</literal>ï¼é£ä¹ææå对象åä¼è¢« <literal>saveOrUpdate"
"()</literal>"
#. Tag: para
-#: session_api.xml:1031
#, no-c-format
msgid ""
"If a transient or detached child becomes referenced by a persistent parent, "
"it is passed to <literal>saveOrUpdate()</literal>"
msgstr ""
-"妿æä¸ªæä¹
çç¶å¯¹è±¡å¼ç¨äºç¬æ¶(transient)æè
è±ç®¡(detached)çå对象ï¼é£ä¹å对"
-"象å°ä¼è¢«<literal>saveOrUpdate()</literal>"
+"妿æä¸ªæä¹
çç¶å¯¹è±¡å¼ç¨äºç¬æ¶ï¼transientï¼æè
è±ç®¡ï¼detachedï¼çå对象ï¼é£ä¹"
+"å对象å°ä¼è¢« <literal>saveOrUpdate()</literal>"
#. Tag: para
-#: session_api.xml:1037
#, no-c-format
msgid ""
"If a parent is deleted, all children are passed to <literal>delete()</"
"literal>"
-msgstr "妿ç¶å¯¹è±¡è¢«å é¤ï¼é£ä¹ææå对象ä¹ä¼è¢«<literal>delete()</literal>"
+msgstr "妿ç¶å¯¹è±¡è¢«å é¤ï¼é£ä¹ææå对象ä¹ä¼è¢« <literal>delete()</literal>"
#. Tag: para
-#: session_api.xml:1042
#, no-c-format
msgid ""
"If a child is dereferenced by a persistent parent, <emphasis>nothing special "
@@ -2027,14 +1464,13 @@
"necessary - unless <literal>cascade=\"delete-orphan\"</literal>, in which "
"case the \"orphaned\" child is deleted."
msgstr ""
-"é¤é被æ 记为<literal>cascade=\"delete-orphan\"</literal>ï¼å é¤âå¤å¿â模å¼ï¼æ¤"
-"æ¶ä¸è¢«ä»»ä½ä¸ä¸ªç¶å¯¹è±¡å¼ç¨çå对象ä¼è¢«å é¤ï¼ï¼ å¦åå对象失æç¶å¯¹è±¡å¯¹å
¶çå¼ç¨"
-"æ¶ï¼<emphasis>ä»ä¹äºä¹ä¸ä¼åç</emphasis>ã 妿æç¹æ®éè¦ï¼åºç¨ç¨åºå¯éè¿æ¾"
-"å¼è°ç¨delete()å é¤å对象ã"
+"é¤é被æ 记为 <literal>cascade=\"delete-orphan\"</literal>ï¼å é¤âå¤å¿â模å¼ï¼æ¤"
+"æ¶ä¸è¢«ä»»ä½ä¸ä¸ªç¶å¯¹è±¡å¼ç¨çå对象ä¼è¢«å é¤ï¼ï¼å¦åå对象失æç¶å¯¹è±¡å¯¹å
¶çå¼ç¨"
+"æ¶ï¼<emphasis>ä»ä¹äºä¹ä¸ä¼åç</emphasis>ã妿æç¹æ®éè¦ï¼åºç¨ç¨åºå¯éè¿æ¾å¼"
+"è°ç¨ delete() å é¤å对象ã"
#. Tag: para
-#: session_api.xml:1051
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, note that cascading of operations can be applied to an object graph "
"at <emphasis>call time</emphasis> or at <emphasis>flush time</emphasis>. All "
@@ -2043,21 +1479,19 @@
"<literal>delete-orphan</literal> are transitive for all associated entities "
"reachable during flush of the <literal>Session</literal>."
msgstr ""
-"æåï¼æ³¨ææä½ç级èå¯è½æ¯å¨<emphasis>è°ç¨æ(call time)</emphasis>æè
"
-"<emphasis>åå
¥æ(flush time)</emphasis>ä½ç¨å°å¯¹è±¡å¾ä¸çãææçæä½ï¼å¦æå
"
+"æåï¼æ³¨ææä½ç级èå¯è½æ¯å¨<emphasis>è°ç¨æï¼call timeï¼</emphasis>æè
"
+"<emphasis>åå
¥æï¼flush timeï¼</emphasis>ä½ç¨å°å¯¹è±¡å¾ä¸çãææçæä½ï¼å¦æå
"
"许ï¼é½å¨æä½è¢«æ§è¡çæ¶å级èå°å¯è§¦åçå
³èå®ä½ä¸ãç¶èï¼<literal>save-upate</"
-"literal>å<literal>delete-orphan</literal>æ¯å¨<literal>Session</literal> "
-"flushçæ¶åæä½ç¨å°ææå¯è§¦åç被å
³è对象ä¸çã"
+"literal> å <literal>delete-orphan</literal> æ¯å¨<literal>Session</literal> "
+"flush çæ¶åæä½ç¨å°ææå¯è§¦åç被å
³è对象ä¸çã "
#. Tag: title
-#: session_api.xml:1063
#, no-c-format
msgid "Using metadata"
msgstr "使ç¨å
æ°æ®"
#. Tag: para
-#: session_api.xml:1065
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate requires a rich meta-level model of all entity and value types. "
"This model can be useful to the application itself. For example, the "
@@ -2066,60 +1500,636 @@
"value types) and which objects that should not (e.g. immutable value types "
"and, possibly, associated entities)."
msgstr ""
-"Hibernate䏿ä¸ä¸ªé常丰å¯çå
级å«(meta-level)çæ¨¡åï¼å«æææçå®ä½åå¼ç±»åæ°"
-"æ®çå
æ°æ®ã ææ¶è¿ä¸ªæ¨¡å对åºç¨ç¨åºæ¬èº«ä¹ä¼é常æç¨ã æ¯å¦è¯´ï¼åºç¨ç¨åºå¯è½å¨"
-"å®ç°ä¸ç§âæºè½âçæ·±åº¦æ·è´ç®æ³æ¶ï¼ éè¿ä½¿ç¨Hibernateçå
æ°æ®æ¥äºè§£åªäºå¯¹è±¡åºè¯¥"
-"被æ·è´ï¼æ¯å¦ï¼å¯åçå¼ç±»åæ°æ®ï¼ï¼ é£äºä¸åºè¯¥ï¼ä¸å¯åçå¼ç±»åæ°æ®ï¼ä¹è®¸è¿ææ"
-"äºè¢«å
³èçå®ä½ï¼ã"
+"Hibernate 䏿ä¸ä¸ªé常丰å¯çå
级å«ï¼meta-levelï¼ç模åï¼å«æææçå®ä½åå¼ç±»"
+"åæ°æ®çå
æ°æ®ã ææ¶è¿ä¸ªæ¨¡å对åºç¨ç¨åºæ¬èº«ä¹ä¼é常æç¨ãæ¯å¦è¯´ï¼åºç¨ç¨åºå¯è½"
+"å¨å®ç°ä¸ç§âæºè½âçæ·±åº¦æ·è´ç®æ³æ¶ï¼éè¿ä½¿ç¨ Hibernate çå
æ°æ®æ¥äºè§£åªäºå¯¹è±¡åº"
+"该被æ·è´ï¼æ¯å¦ï¼å¯åçå¼ç±»åæ°æ®ï¼ï¼é£äºä¸åºè¯¥ï¼ä¸å¯åçå¼ç±»åæ°æ®ï¼ä¹è®¸è¿æ"
+"æäºè¢«å
³èçå®ä½ï¼ã "
#. Tag: para
-#: session_api.xml:1072
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate exposes metadata via the <literal>ClassMetadata</literal> and "
"<literal>CollectionMetadata</literal> interfaces and the <literal>Type</"
"literal> hierarchy. Instances of the metadata interfaces can be obtained "
"from the <literal>SessionFactory</literal>."
msgstr ""
-"Hibernateæä¾äº<literal>ClassMetadata</literal>æ¥å£ï¼"
-"<literal>CollectionMetadata</literal>æ¥å£å<literal>Type</literal>屿¬¡ä½ç³»æ¥"
-"访é®å
æ°æ®ã å¯ä»¥éè¿<literal>SessionFactory</literal>è·åå
æ°æ®æ¥å£çå®ä¾ã"
+"Hibernate æä¾äº <literal>ClassMetadata</literal> æ¥å£ï¼"
+"<literal>CollectionMetadata</literal> æ¥å£å <literal>Type</literal> 屿¬¡ä½ç³»"
+"æ¥è®¿é®å
æ°æ®ãå¯ä»¥éè¿ <literal>SessionFactory</literal> è·åå
æ°æ®æ¥å£çå®"
+"ä¾ã "
-#. Tag: programlisting
-#: session_api.xml:1079
-#, no-c-format
-msgid ""
-"<![CDATA[Cat fritz = ......;\n"
-"ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
-"\n"
-"Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
-"String[] propertyNames = catMeta.getPropertyNames();\n"
-"Type[] propertyTypes = catMeta.getPropertyTypes();\n"
-"\n"
-"// get a Map of all properties which are not collections or associations\n"
-"Map namedValues = new HashMap();\n"
-"for ( int i=0; i<propertyNames.length; i++ ) {\n"
-" if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
-"isCollectionType() ) {\n"
-" namedValues.put( propertyNames[i], propertyValues[i] );\n"
-" }\n"
-"}]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![CDATA[DomesticCat fritz = new DomesticCat();\n"
+#~ "fritz.setColor(Color.GINGER);\n"
+#~ "fritz.setSex('M');\n"
+#~ "fritz.setName(\"Fritz\");\n"
+#~ "Long generatedId = (Long) sess.save(fritz);]]>"
+#~ msgstr ""
+#~ "<![CDATA[DomesticCat fritz = new DomesticCat();\n"
+#~ "fritz.setColor(Color.GINGER);\n"
+#~ "fritz.setSex('M');\n"
+#~ "fritz.setName(\"Fritz\");\n"
+#~ "Long generatedId = (Long) sess.save(fritz);]]>"
-#~ msgid "UPDATE"
-#~ msgstr "UPDATE"
+#~ msgid ""
+#~ "<![CDATA[DomesticCat pk = new DomesticCat();\n"
+#~ "pk.setColor(Color.TABBY);\n"
+#~ "pk.setSex('F');\n"
+#~ "pk.setName(\"PK\");\n"
+#~ "pk.setKittens( new HashSet() );\n"
+#~ "pk.addKitten(fritz);\n"
+#~ "sess.save( pk, new Long(1234) );]]>"
+#~ msgstr ""
+#~ "<![CDATA[DomesticCat pk = new DomesticCat();\n"
+#~ "pk.setColor(Color.TABBY);\n"
+#~ "pk.setSex('F');\n"
+#~ "pk.setName(\"PK\");\n"
+#~ "pk.setKittens( new HashSet() );\n"
+#~ "pk.addKitten(fritz);\n"
+#~ "sess.save( pk, new Long(1234) );]]>"
-#~ msgid "DELETE"
-#~ msgstr "DELETE"
+#~ msgid "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
+#~ msgstr "<![CDATA[Cat fritz = (Cat) sess.load(Cat.class, generatedId);]]>"
-#~ msgid "state management"
-#~ msgstr "ç¶æç®¡ç(state management)"
+#~ msgid ""
+#~ "<![CDATA[// you need to wrap primitive identifiers\n"
+#~ "long id = 1234;\n"
+#~ "DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
+#~ "(id) );]]>"
+#~ msgstr ""
+#~ "<![CDATA[// you need to wrap primitive identifiers\n"
+#~ "long id = 1234;\n"
+#~ "DomesticCat pk = (DomesticCat) sess.load( DomesticCat.class, new Long"
+#~ "(id) );]]>"
-#~ msgid "statements"
-#~ msgstr "è¯å¥(statements)"
+#~ msgid ""
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "// load pk's state into cat\n"
+#~ "sess.load( cat, new Long(pkId) );\n"
+#~ "Set kittens = cat.getKittens();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = new DomesticCat();\n"
+#~ "// load pk's state into cat\n"
+#~ "sess.load( cat, new Long(pkId) );\n"
+#~ "Set kittens = cat.getKittens();]]>"
-#~ msgid "Connection"
-#~ msgstr "session.connection()"
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
+#~ "if (cat==null) {\n"
+#~ " cat = new Cat();\n"
+#~ " sess.save(cat, id);\n"
+#~ "}\n"
+#~ "return cat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id);\n"
+#~ "if (cat==null) {\n"
+#~ " cat = new Cat();\n"
+#~ " sess.save(cat, id);\n"
+#~ "}\n"
+#~ "return cat;]]>"
-#~ msgid "session.connection()"
-#~ msgstr "Connection"
+#~ msgid ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat cat = (Cat) sess.get(Cat.class, id, LockMode.UPGRADE);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[sess.save(cat);\n"
+#~ "sess.flush(); //force the SQL INSERT\n"
+#~ "sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
+#~ msgstr ""
+#~ "<![CDATA[sess.save(cat);\n"
+#~ "sess.flush(); //force the SQL INSERT\n"
+#~ "sess.refresh(cat); //re-read the state (after the trigger executes)]]>"
+
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.birthdate < ?\")\n"
+#~ " .setDate(0, date)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List mothers = session.createQuery(\n"
+#~ " \"select mother from Cat as cat join cat.mother as mother where cat."
+#~ "name = ?\")\n"
+#~ " .setString(0, name)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List kittens = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.mother = ?\")\n"
+#~ " .setEntity(0, pk)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "Cat mother = (Cat) session.createQuery(\n"
+#~ " \"select cat.mother from Cat as cat where cat = ?\")\n"
+#~ " .setEntity(0, izi)\n"
+#~ " .uniqueResult();]]\n"
+#~ "\n"
+#~ "Query mothersWithKittens = (Cat) session.createQuery(\n"
+#~ " \"select mother from Cat as mother left join fetch mother.kittens"
+#~ "\");\n"
+#~ "Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
+#~ msgstr ""
+#~ "<![CDATA[List cats = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.birthdate < ?\")\n"
+#~ " .setDate(0, date)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List mothers = session.createQuery(\n"
+#~ " \"select mother from Cat as cat join cat.mother as mother where cat."
+#~ "name = ?\")\n"
+#~ " .setString(0, name)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "List kittens = session.createQuery(\n"
+#~ " \"from Cat as cat where cat.mother = ?\")\n"
+#~ " .setEntity(0, pk)\n"
+#~ " .list();\n"
+#~ "\n"
+#~ "Cat mother = (Cat) session.createQuery(\n"
+#~ " \"select cat.mother from Cat as cat where cat = ?\")\n"
+#~ " .setEntity(0, izi)\n"
+#~ " .uniqueResult();]]\n"
+#~ "\n"
+#~ "Query mothersWithKittens = (Cat) session.createQuery(\n"
+#~ " \"select mother from Cat as mother left join fetch mother.kittens"
+#~ "\");\n"
+#~ "Set uniqueMothers = new HashSet(mothersWithKittens.list());]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// fetch ids\n"
+#~ "Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
+#~ "iterate();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Qux qux = (Qux) iter.next(); // fetch the object\n"
+#~ " // something we couldnt express in the query\n"
+#~ " if ( qux.calculateComplicatedAlgorithm() ) {\n"
+#~ " // delete the current instance\n"
+#~ " iter.remove();\n"
+#~ " // dont need to process the rest\n"
+#~ " break;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[// fetch ids\n"
+#~ "Iterator iter = sess.createQuery(\"from eg.Qux q order by q.likeliness\")."
+#~ "iterate();\n"
+#~ "while ( iter.hasNext() ) {\n"
+#~ " Qux qux = (Qux) iter.next(); // fetch the object\n"
+#~ " // something we couldnt express in the query\n"
+#~ " if ( qux.calculateComplicatedAlgorithm() ) {\n"
+#~ " // delete the current instance\n"
+#~ " iter.remove();\n"
+#~ " // dont need to process the rest\n"
+#~ " break;\n"
+#~ " }\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
+#~ " \"select kitten, mother from Cat kitten join kitten.mother "
+#~ "mother\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( kittensAndMothers.hasNext() ) {\n"
+#~ " Object[] tuple = (Object[]) kittensAndMothers.next();\n"
+#~ " Cat kitten = (Cat) tuple[0];\n"
+#~ " Cat mother = (Cat) tuple[1];\n"
+#~ " ....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[Iterator kittensAndMothers = sess.createQuery(\n"
+#~ " \"select kitten, mother from Cat kitten join kitten.mother "
+#~ "mother\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( kittensAndMothers.hasNext() ) {\n"
+#~ " Object[] tuple = (Object[]) kittensAndMothers.next();\n"
+#~ " Cat kitten = (Cat) tuple[0];\n"
+#~ " Cat mother = (Cat) tuple[1];\n"
+#~ " ....\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Iterator results = sess.createQuery(\n"
+#~ " \"select cat.color, min(cat.birthdate), count(cat) from Cat cat "
+#~ "\" +\n"
+#~ " \"group by cat.color\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( results.hasNext() ) {\n"
+#~ " Object[] row = (Object[]) results.next();\n"
+#~ " Color type = (Color) row[0];\n"
+#~ " Date oldest = (Date) row[1];\n"
+#~ " Integer count = (Integer) row[2];\n"
+#~ " .....\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[Iterator results = sess.createQuery(\n"
+#~ " \"select cat.color, min(cat.birthdate), count(cat) from Cat cat "
+#~ "\" +\n"
+#~ " \"group by cat.color\")\n"
+#~ " .list()\n"
+#~ " .iterator();\n"
+#~ "\n"
+#~ "while ( results.hasNext() ) {\n"
+#~ " Object[] row = (Object[]) results.next();\n"
+#~ " Color type = (Color) row[0];\n"
+#~ " Date oldest = (Date) row[1];\n"
+#~ " Integer count = (Integer) row[2];\n"
+#~ " .....\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[//named parameter (preferred)\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
+#~ "\");\n"
+#~ "q.setString(\"name\", \"Fritz\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+#~ msgstr ""
+#~ "<![CDATA[//named parameter (preferred)\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = :name"
+#~ "\");\n"
+#~ "q.setString(\"name\", \"Fritz\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[//positional parameter\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
+#~ "q.setString(0, \"Izi\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+#~ msgstr ""
+#~ "<![CDATA[//positional parameter\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name = ?\");\n"
+#~ "q.setString(0, \"Izi\");\n"
+#~ "Iterator cats = q.iterate();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[//named parameter list\n"
+#~ "List names = new ArrayList();\n"
+#~ "names.add(\"Izi\");\n"
+#~ "names.add(\"Fritz\");\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
+#~ "namesList)\");\n"
+#~ "q.setParameterList(\"namesList\", names);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[//named parameter list\n"
+#~ "List names = new ArrayList();\n"
+#~ "names.add(\"Izi\");\n"
+#~ "names.add(\"Fritz\");\n"
+#~ "Query q = sess.createQuery(\"from DomesticCat cat where cat.name in (:"
+#~ "namesList)\");\n"
+#~ "q.setParameterList(\"namesList\", names);\n"
+#~ "List cats = q.list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
+#~ "q.setFirstResult(20);\n"
+#~ "q.setMaxResults(10);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Query q = sess.createQuery(\"from DomesticCat cat\");\n"
+#~ "q.setFirstResult(20);\n"
+#~ "q.setMaxResults(10);\n"
+#~ "List cats = q.list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from "
+#~ "DomesticCat cat \" +\n"
+#~ " \"order by cat.name\");\n"
+#~ "ScrollableResults cats = q.scroll();\n"
+#~ "if ( cats.first() ) {\n"
+#~ "\n"
+#~ " // find the first name on each page of an alphabetical list of cats "
+#~ "by name\n"
+#~ " firstNamesOfPages = new ArrayList();\n"
+#~ " do {\n"
+#~ " String name = cats.getString(0);\n"
+#~ " firstNamesOfPages.add(name);\n"
+#~ " }\n"
+#~ " while ( cats.scroll(PAGE_SIZE) );\n"
+#~ "\n"
+#~ " // Now get the first page of cats\n"
+#~ " pageOfCats = new ArrayList();\n"
+#~ " cats.beforeFirst();\n"
+#~ " int i=0;\n"
+#~ " while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
+#~ "(1) );\n"
+#~ "\n"
+#~ "}\n"
+#~ "cats.close()]]>"
+#~ msgstr ""
+#~ "<![CDATA[Query q = sess.createQuery(\"select cat.name, cat from "
+#~ "DomesticCat cat \" +\n"
+#~ " \"order by cat.name\");\n"
+#~ "ScrollableResults cats = q.scroll();\n"
+#~ "if ( cats.first() ) {\n"
+#~ "\n"
+#~ " // find the first name on each page of an alphabetical list of cats "
+#~ "by name\n"
+#~ " firstNamesOfPages = new ArrayList();\n"
+#~ " do {\n"
+#~ " String name = cats.getString(0);\n"
+#~ " firstNamesOfPages.add(name);\n"
+#~ " }\n"
+#~ " while ( cats.scroll(PAGE_SIZE) );\n"
+#~ "\n"
+#~ " // Now get the first page of cats\n"
+#~ " pageOfCats = new ArrayList();\n"
+#~ " cats.beforeFirst();\n"
+#~ " int i=0;\n"
+#~ " while( ( PAGE_SIZE > i++ ) && cats.next() ) pageOfCats.add( cats.get"
+#~ "(1) );\n"
+#~ "\n"
+#~ "}\n"
+#~ "cats.close()]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
+#~ " from eg.DomesticCat as cat\n"
+#~ " where cat.name = ?\n"
+#~ " and cat.weight > ?\n"
+#~ "] ]></query>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<query name=\"ByNameAndMaximumWeight\"><![CDATA[\n"
+#~ " from eg.DomesticCat as cat\n"
+#~ " where cat.name = ?\n"
+#~ " and cat.weight > ?\n"
+#~ "] ]></query>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
+#~ "q.setString(0, name);\n"
+#~ "q.setInt(1, minWeight);\n"
+#~ "List cats = q.list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Query q = sess.getNamedQuery(\"ByNameAndMaximumWeight\");\n"
+#~ "q.setString(0, name);\n"
+#~ "q.setInt(1, minWeight);\n"
+#~ "List cats = q.list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Collection blackKittens = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"where this.color = ?\")\n"
+#~ " .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
+#~ " .list()\n"
+#~ ");]]>"
+#~ msgstr ""
+#~ "<![CDATA[Collection blackKittens = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"where this.color = ?\")\n"
+#~ " .setParameter( Color.BLACK, Hibernate.custom(ColorUserType.class) )\n"
+#~ " .list()\n"
+#~ ");]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Collection blackKittenMates = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Collection blackKittenMates = session.createFilter(\n"
+#~ " pk.getKittens(), \n"
+#~ " \"select this.mate where this.color = eg.Color.BLACK.intValue\")\n"
+#~ " .list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Collection tenKittens = session.createFilter(\n"
+#~ " mother.getKittens(), \"\")\n"
+#~ " .setFirstResult(0).setMaxResults(10)\n"
+#~ " .list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Collection tenKittens = session.createFilter(\n"
+#~ " mother.getKittens(), \"\")\n"
+#~ " .setFirstResult(0).setMaxResults(10)\n"
+#~ " .list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
+#~ "crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
+#~ "crit.setMaxResults(10);\n"
+#~ "List cats = crit.list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Criteria crit = session.createCriteria(Cat.class);\n"
+#~ "crit.add( Restrictions.eq( \"color\", eg.Color.BLACK ) );\n"
+#~ "crit.setMaxResults(10);\n"
+#~ "List cats = crit.list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT "
+#~ "{cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list();]]>"
+#~ msgstr ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\"SELECT {cat.*} FROM CAT "
+#~ "{cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\n"
+#~ " \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
+#~ " \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... "
+#~ "\" +\n"
+#~ " \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list()]]>"
+#~ msgstr ""
+#~ "<![CDATA[List cats = session.createSQLQuery(\n"
+#~ " \"SELECT {cat}.ID AS {cat.id}, {cat}.SEX AS {cat.sex}, \" +\n"
+#~ " \"{cat}.MATE AS {cat.mate}, {cat}.SUBCLASS AS {cat.class}, ... "
+#~ "\" +\n"
+#~ " \"FROM CAT {cat} WHERE ROWNUM<10\")\n"
+#~ " .addEntity(\"cat\", Cat.class)\n"
+#~ ".list()]]>"
+
+#~ msgid ""
+#~ "<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
+#~ "(69) );\n"
+#~ "cat.setName(\"PK\");\n"
+#~ "sess.flush(); // changes to cat are automatically detected and "
+#~ "persisted]]>"
+#~ msgstr ""
+#~ "<![CDATA[DomesticCat cat = (DomesticCat) sess.load( Cat.class, new Long"
+#~ "(69) );\n"
+#~ "cat.setName(\"PK\");\n"
+#~ "sess.flush(); // changes to cat are automatically detected and "
+#~ "persisted]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
+#~ "Cat potentialMate = new Cat();\n"
+#~ "firstSession.save(potentialMate);\n"
+#~ "\n"
+#~ "// in a higher layer of the application\n"
+#~ "cat.setMate(potentialMate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.update(cat); // update cat\n"
+#~ "secondSession.update(mate); // update mate]]>"
+#~ msgstr ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catId);\n"
+#~ "Cat potentialMate = new Cat();\n"
+#~ "firstSession.save(potentialMate);\n"
+#~ "\n"
+#~ "// in a higher layer of the application\n"
+#~ "cat.setMate(potentialMate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.update(cat); // update cat\n"
+#~ "secondSession.update(mate); // update mate]]>"
+
+#~ msgid ""
+#~ "<![CDATA[//just reassociate:\n"
+#~ "sess.lock(fritz, LockMode.NONE);\n"
+#~ "//do a version check, then reassociate:\n"
+#~ "sess.lock(izi, LockMode.READ);\n"
+#~ "//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
+#~ "sess.lock(pk, LockMode.UPGRADE);]]>"
+#~ msgstr ""
+#~ "<![CDATA[//just reassociate:\n"
+#~ "sess.lock(fritz, LockMode.NONE);\n"
+#~ "//do a version check, then reassociate:\n"
+#~ "sess.lock(izi, LockMode.READ);\n"
+#~ "//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n"
+#~ "sess.lock(pk, LockMode.UPGRADE);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
+#~ "\n"
+#~ "// in a higher tier of the application\n"
+#~ "Cat mate = new Cat();\n"
+#~ "cat.setMate(mate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.saveOrUpdate(cat); // update existing state (cat has a "
+#~ "non-null id)\n"
+#~ "secondSession.saveOrUpdate(mate); // save the new instance (mate has a "
+#~ "null id)]]>"
+#~ msgstr ""
+#~ "<![CDATA[// in the first session\n"
+#~ "Cat cat = (Cat) firstSession.load(Cat.class, catID);\n"
+#~ "\n"
+#~ "// in a higher tier of the application\n"
+#~ "Cat mate = new Cat();\n"
+#~ "cat.setMate(mate);\n"
+#~ "\n"
+#~ "// later, in a new session\n"
+#~ "secondSession.saveOrUpdate(cat); // update existing state (cat has a "
+#~ "non-null id)\n"
+#~ "secondSession.saveOrUpdate(mate); // save the new instance (mate has a "
+#~ "null id)]]>"
+
+#~ msgid "<![CDATA[sess.delete(cat);]]>"
+#~ msgstr "<![CDATA[sess.delete(cat);]]>"
+
+#~ msgid ""
+#~ "<![CDATA[//retrieve a cat from one database\n"
+#~ "Session session1 = factory1.openSession();\n"
+#~ "Transaction tx1 = session1.beginTransaction();\n"
+#~ "Cat cat = session1.get(Cat.class, catId);\n"
+#~ "tx1.commit();\n"
+#~ "session1.close();\n"
+#~ "\n"
+#~ "//reconcile with a second database\n"
+#~ "Session session2 = factory2.openSession();\n"
+#~ "Transaction tx2 = session2.beginTransaction();\n"
+#~ "session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
+#~ "tx2.commit();\n"
+#~ "session2.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[//retrieve a cat from one database\n"
+#~ "Session session1 = factory1.openSession();\n"
+#~ "Transaction tx1 = session1.beginTransaction();\n"
+#~ "Cat cat = session1.get(Cat.class, catId);\n"
+#~ "tx1.commit();\n"
+#~ "session1.close();\n"
+#~ "\n"
+#~ "//reconcile with a second database\n"
+#~ "Session session2 = factory2.openSession();\n"
+#~ "Transaction tx2 = session2.beginTransaction();\n"
+#~ "session2.replicate(cat, ReplicationMode.LATEST_VERSION);\n"
+#~ "tx2.commit();\n"
+#~ "session2.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[sess = sf.openSession();\n"
+#~ "Transaction tx = sess.beginTransaction();\n"
+#~ "sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale "
+#~ "state\n"
+#~ "\n"
+#~ "Cat izi = (Cat) sess.load(Cat.class, id);\n"
+#~ "izi.setName(iznizi);\n"
+#~ "\n"
+#~ "// might return stale data\n"
+#~ "sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
+#~ "\n"
+#~ "// change to izi is not flushed!\n"
+#~ "...\n"
+#~ "tx.commit(); // flush occurs\n"
+#~ "sess.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[sess = sf.openSession();\n"
+#~ "Transaction tx = sess.beginTransaction();\n"
+#~ "sess.setFlushMode(FlushMode.COMMIT); // allow queries to return stale "
+#~ "state\n"
+#~ "\n"
+#~ "Cat izi = (Cat) sess.load(Cat.class, id);\n"
+#~ "izi.setName(iznizi);\n"
+#~ "\n"
+#~ "// might return stale data\n"
+#~ "sess.find(\"from Cat as cat left outer join cat.kittens kitten\");\n"
+#~ "\n"
+#~ "// change to izi is not flushed!\n"
+#~ "...\n"
+#~ "tx.commit(); // flush occurs\n"
+#~ "sess.close();]]>"
+
+#~ msgid "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
+#~ msgstr "<![CDATA[<one-to-one name=\"person\" cascade=\"persist\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<one-to-one name=\"person\" cascade=\"persist,delete,lock\"/>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Cat fritz = ......;\n"
+#~ "ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
+#~ "\n"
+#~ "Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
+#~ "String[] propertyNames = catMeta.getPropertyNames();\n"
+#~ "Type[] propertyTypes = catMeta.getPropertyTypes();\n"
+#~ "\n"
+#~ "// get a Map of all properties which are not collections or associations\n"
+#~ "Map namedValues = new HashMap();\n"
+#~ "for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
+#~ "isCollectionType() ) {\n"
+#~ " namedValues.put( propertyNames[i], propertyValues[i] );\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[Cat fritz = ......;\n"
+#~ "ClassMetadata catMeta = sessionfactory.getClassMetadata(Cat.class);\n"
+#~ "\n"
+#~ "Object[] propertyValues = catMeta.getPropertyValues(fritz);\n"
+#~ "String[] propertyNames = catMeta.getPropertyNames();\n"
+#~ "Type[] propertyTypes = catMeta.getPropertyTypes();\n"
+#~ "\n"
+#~ "// get a Map of all properties which are not collections or associations\n"
+#~ "Map namedValues = new HashMap();\n"
+#~ "for ( int i=0; i<propertyNames.length; i++ ) {\n"
+#~ " if ( !propertyTypes[i].isEntityType() && !propertyTypes[i]."
+#~ "isCollectionType() ) {\n"
+#~ " namedValues.put( propertyNames[i], propertyValues[i] );\n"
+#~ " }\n"
+#~ "}]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/toolset_guide.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/toolset_guide.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/toolset_guide.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,57 +1,57 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2009-12-04 15:04+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: toolset_guide.xml:29
#, no-c-format
msgid "Toolset Guide"
msgstr "å·¥å
·ç®±æå"
#. Tag: para
-#: toolset_guide.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Roundtrip engineering with Hibernate is possible using a set of Eclipse "
"plugins, commandline tools, and Ant tasks."
msgstr ""
-"å¯ä»¥éè¿ä¸ç³»åEclipseæä»¶ãå½ä»¤è¡å·¥å
·åAnt任塿¥è¿è¡ä¸Hibernateå
³èç转æ¢ã"
+"å¯ä»¥éè¿ä¸ç³»å Eclipse æä»¶ãå½ä»¤è¡å·¥å
·å Ant 任塿¥è¿è¡ä¸ Hibernate å
³èç转"
+"æ¢ã "
#. Tag: para
-#: toolset_guide.xml:36
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Hibernate Tools</emphasis> currently include plugins for the "
"Eclipse IDE as well as Ant tasks for reverse engineering of existing "
"databases:"
msgstr ""
-"é¤äºAntä»»å¡å¤ï¼å½åç<emphasis>Hibernate Tools</emphasis>ä¹å
å«äºEclipse IDE"
-"çæä»¶ï¼ç¨äºä¸ç°åæ°æ®åºçéåå·¥ç¨ã"
+"é¤äº Ant ä»»å¡å¤ï¼å½åç <emphasis>Hibernate Tools</emphasis> ä¹å
å«äº "
+"Eclipse IDE çæä»¶ï¼ç¨äºä¸ç°åæ°æ®åºçéåå·¥ç¨ã "
#. Tag: para
-#: toolset_guide.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Mapping Editor:</emphasis> an editor for Hibernate XML mapping "
"files that supports auto-completion and syntax highlighting. It also "
"supports semantic auto-completion for class names and property/field names, "
"making it more versatile than a normal XML editor."
msgstr ""
-"<emphasis>Mapping Editor:</emphasis> Hibernate XMLæ å°æä»¶çç¼è¾å¨ï¼æ¯æèªå¨"
-"宿åè¯æ³é«äº®ãå®ä¹æ¯æå¯¹ç±»åå屿§/åæ®µåçè¯ä¹èªå¨å®æï¼æ¯é常çXMLç¼è¾å¨"
-"æ¹ä¾¿å¾å¤ã"
+"<emphasis>Mapping Editor:</emphasis> Hibernate XML æ å°æä»¶çç¼è¾å¨ï¼æ¯æèªå¨"
+"宿åè¯æ³é«äº®ãå®ä¹æ¯æå¯¹ç±»åå屿§/åæ®µåçè¯ä¹èªå¨å®æï¼æ¯é常ç XML ç¼è¾"
+"卿¹ä¾¿å¾å¤ã "
#. Tag: para
-#: toolset_guide.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Console:</emphasis> the console is a new view in Eclipse. In "
"addition to a tree overview of your console configurations, you are also "
@@ -59,13 +59,12 @@
"relationships. The console allows you to execute HQL queries against your "
"database and browse the result directly in Eclipse."
msgstr ""
-"<emphasis>Console:</emphasis> Consoleæ¯Eclipseçä¸ä¸ªæ°è§å¾ãé¤äºå¯¹ä½ çconsole"
-"é
ç½®çæ ç¶æ¦è§ï¼ä½ è¿å¯ä»¥è·å¾å¯¹ä½ æä¹
åç±»åå
¶å
³èç交äºå¼è§å¾ãConsoleå
è®¸ä½ å¯¹"
-"æ°æ®åºæ§è¡HQLæ¥è¯¢ï¼å¹¶ç´æ¥å¨Eclipse䏿µè§ç»æã"
+"<emphasis>Console:</emphasis> Console æ¯ Eclipse çä¸ä¸ªæ°è§å¾ãé¤äºå¯¹ä½ ç "
+"console é
ç½®çæ ç¶æ¦è§ï¼ä½ è¿å¯ä»¥è·å¾å¯¹ä½ æä¹
åç±»åå
¶å
³èç交äºå¼è§å¾ã"
+"Console å
è®¸ä½ å¯¹æ°æ®åºæ§è¡ HQL æ¥è¯¢ï¼å¹¶ç´æ¥å¨ Eclipse 䏿µè§ç»æã "
#. Tag: para
-#: toolset_guide.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Development Wizards:</emphasis> several wizards are provided with "
"the Hibernate Eclipse tools. You can use a wizard to quickly generate "
@@ -73,442 +72,290 @@
"database schema into POJO source files and Hibernate mapping files. The "
"reverse engineering wizard supports customizable templates."
msgstr ""
-"<emphasis>Development Wizards:</emphasis> å¨Hibernate Eclipse toolsä¸è¿æä¾äº"
-"å 个å导ï¼ä½ å¯ä»¥ç¨å导快éçæHibernate é
ç½®æä»¶ï¼cfg.xmlï¼ï¼ä½ çè³è¿å¯ä»¥åç°"
-"åçæ°æ®åºschemaä¸ååå·¥ç¨åºPOJOæºä»£ç ä¸Hibernate æ å°æä»¶ãååå·¥ç¨æ¯æå¯å®"
-"å¶ç模çã"
+"<emphasis>Development Wizards:</emphasis> å¨ Hibernate Eclipse tools ä¸è¿æä¾"
+"äºå 个å导ï¼ä½ å¯ä»¥ç¨å导快éçæ Hibernate é
ç½®æä»¶ï¼cfg.xmlï¼ï¼ä½ çè³è¿å¯ä»¥"
+"åç°åçæ°æ®åº schema ä¸ååå·¥ç¨åº POJO æºä»£ç ä¸ Hibernate æ å°æä»¶ãååå·¥ç¨"
+"æ¯æå¯å®å¶ç模çã "
#. Tag: para
-#: toolset_guide.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Please refer to the <emphasis>Hibernate Tools</emphasis> package "
"documentation for more information."
msgstr ""
-"è¦å¾å°æ´å¤ä¿¡æ¯ï¼è¯·æ¥é
<emphasis>Hibernate Tools</emphasis> å
åå
¶ææ¡£ã"
+"è¦å¾å°æ´å¤ä¿¡æ¯ï¼è¯·æ¥é
<emphasis>Hibernate Tools</emphasis> å
åå
¶ææ¡£ã "
#. Tag: para
-#: toolset_guide.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, the Hibernate main package comes bundled with an integrated tool : "
"<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>.It can even "
"be used from \"inside\" Hibernate."
msgstr ""
-"åæ¶ï¼Hibernate主åè¡å
è¿é带äºä¸ä¸ªéæçå·¥å
·ï¼å®çè³å¯ä»¥å¨Hibernateâå
é¨âå¿«"
-"éè¿è¡ï¼<emphasis>SchemaExport</emphasis> ï¼ä¹å°±æ¯ <literal>hbm2ddl</"
-"literal>ã"
+"åæ¶ï¼Hibernate 主åè¡å
è¿é带äºä¸ä¸ªéæçå·¥å
·ï¼å®çè³å¯ä»¥å¨ Hibernateâå
"
+"é¨âå¿«éè¿è¡ï¼<emphasis>SchemaExport</emphasis> ï¼ä¹å°±æ¯ <literal>hbm2ddl</"
+"literal>ã "
#. Tag: title
-#: toolset_guide.xml:79
#, no-c-format
msgid "Automatic schema generation"
-msgstr "Schemaèªå¨çæï¼Automatic schema generationï¼"
+msgstr "Schema èªå¨çæï¼Automatic schema generationï¼"
#. Tag: para
-#: toolset_guide.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"DDL can be generated from your mapping files by a Hibernate utility. The "
"generated schema includes referential integrity constraints, primary and "
"foreign keys, for entity and collection tables. Tables and sequences are "
"also created for mapped identifier generators."
msgstr ""
-"å¯ä»¥ä»ä½ çæ å°æä»¶ä½¿ç¨ä¸ä¸ªHibernateå·¥å
·çæDDLã çæçschemaå
嫿坹å®ä½åé"
-"å类表ç宿´æ§å¼ç¨çº¦æï¼ä¸»é®åå¤é®ï¼ãæ¶åå°çæ 示符çæå¨æéç表åsequence"
-"ä¹ä¼åæ¶çæã"
+"å¯ä»¥ä»ä½ çæ å°æä»¶ä½¿ç¨ä¸ä¸ª Hibernate å·¥å
·çæ DDLãçæç schema å
嫿坹å®ä½"
+"åéå类表ç宿´æ§å¼ç¨çº¦æï¼ä¸»é®åå¤é®ï¼ãæ¶åå°çæ 示符çæå¨æéç表å "
+"sequence ä¹ä¼åæ¶çæã "
#. Tag: para
-#: toolset_guide.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via "
"the <literal>hibernate.dialect</literal> property when using this tool, as "
"DDL is highly vendor-specific."
msgstr ""
-"å¨ä½¿ç¨è¿ä¸ªå·¥å
·çæ¶åï¼ä½ <emphasis>å¿
é¡»</emphasis> éè¿<literal>hibernate."
-"dialet</literal>屿§æå®ä¸ä¸ªSQL<literal>æ¹è¨(Dialet)</literal>ï¼å 为DDLæ¯ä¸ä¾"
-"åºåé«åº¦ç¸å
³çã"
+"å¨ä½¿ç¨è¿ä¸ªå·¥å
·çæ¶åï¼ä½ <emphasis>å¿
é¡»</emphasis> éè¿ <literal>hibernate."
+"dialet</literal> 屿§æå®ä¸ä¸ª SQL<literal> æ¹è¨ï¼Dialetï¼</literal>ï¼å 为 "
+"DDL æ¯ä¸ä¾åºåé«åº¦ç¸å
³çã "
#. Tag: para
-#: toolset_guide.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, you must customize your mapping files to improve the generated "
"schema. The next section covers schema customization."
-msgstr "é¦å
ï¼è¦å®å¶ä½ çæ å°æä»¶ï¼æ¥æ¹åçæçschemaã"
+msgstr ""
+"é¦å
ï¼è¦å®å¶ä½ çæ å°æä»¶ï¼æ¥æ¹åçæç schemaãä¸ç« å°æ¶µç schema å®å¶ã"
#. Tag: title
-#: toolset_guide.xml:99
#, no-c-format
msgid "Customizing the schema"
-msgstr "对schemaå®å¶å(Customizing the schema)"
+msgstr "对 schema å®å¶åï¼Customizing the schemaï¼"
#. Tag: para
-#: toolset_guide.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many Hibernate mapping elements define optional attributes named "
"<literal>length</literal>, <literal>precision</literal> and <literal>scale</"
"literal>. You can set the length, precision and scale of a column with this "
"attribute."
msgstr ""
-"å¾å¤Hibernateæ å°å
ç´ å®ä¹äºå¯éç<literal>length</literal>ã"
-"<literal>precision</literal> æè
<literal>scale</literal>屿§ãä½ å¯ä»¥éè¿è¿"
-"ä¸ªå±æ§è®¾ç½®å段çé¿åº¦ã精度ãå°æ°ç¹ä½æ°ã"
+"å¾å¤ Hibernate æ å°å
ç´ å®ä¹äºå¯éç <literal>length</literal>ã"
+"<literal>precision</literal> æè
<literal>scale</literal> 屿§ãä½ å¯ä»¥éè¿è¿"
+"ä¸ªå±æ§è®¾ç½®å段çé¿åº¦ã精度ãå°æ°ç¹ä½æ°ã "
-#. Tag: programlisting
-#: toolset_guide.xml:108
-#, no-c-format
-msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:109
-#, no-c-format
-msgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Some tags also accept a <literal>not-null</literal> attribute for generating "
"a <literal>NOT NULL</literal> constraint on table columns, and a "
"<literal>unique</literal> attribute for generating <literal>UNIQUE</literal> "
"constraint on table columns."
msgstr ""
-"æäºtagè¿æ¥å<literal>not-null</literal>屿§ï¼ç¨æ¥å¨è¡¨å段ä¸çæ<literal>NOT "
-"NULL</literal>约æï¼å<literal>unique</literal>屿§ï¼ç¨æ¥å¨è¡¨å段ä¸çæ"
-"<literal>UNIQUE</literal>约æï¼ã"
+"æäº tag è¿æ¥å <literal>not-null</literal> 屿§ï¼ç¨æ¥å¨è¡¨å段ä¸çæ "
+"<literal>NOT NULL</literal> 约æï¼å <literal>unique</literal> 屿§ï¼ç¨æ¥å¨è¡¨"
+"åæ®µä¸çæ <literal>UNIQUE</literal> 约æï¼ã "
-#. Tag: programlisting
-#: toolset_guide.xml:117
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:119
-#, no-c-format
-msgid ""
-"<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
-"unique=\"true\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:121
-#, fuzzy, no-c-format
-msgid ""
"A <literal>unique-key</literal> attribute can be used to group columns in a "
"single, unique key constraint. Currently, the specified value of the "
"<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to "
"name the constraint in the generated DDL. It is only used to group the "
"columns in the mapping file."
msgstr ""
-"<literal>unique-key</literal>屿§å¯ä»¥å¯¹æç»çåæ®µæå®ä¸ä¸ªå¯ä¸é®çº¦æ(unique "
-"key constraint)ãç®åï¼<literal>unique-key</literal>屿§æå®çå¼å¨çæDDLæ¶"
-"<emphasis>å¹¶ä¸ä¼</emphasis>被å½ä½è¿ä¸ªçº¦æçååï¼å®ä»¬åªæ¯å¨ç¨æ¥å¨æ å°æä»¶å
é¨"
-"ç¨ä½åºåçã"
+"<literal>unique-key</literal> 屿§å¯ä»¥å¯¹æç»çåæ®µæå®ä¸ä¸ªå¯ä¸é®çº¦æï¼unique "
+"key constraintï¼ãç®åï¼<literal>unique-key</literal> 屿§æå®çå¼å¨çæ DDL "
+"æ¶<emphasis>å¹¶ä¸ä¼</emphasis>被å½ä½è¿ä¸ªçº¦æçååï¼å®ä»¬åªæ¯å¨ç¨æ¥å¨æ å°æä»¶å
"
+"é¨ç¨ä½åºåçã "
-#. Tag: programlisting
-#: toolset_guide.xml:129
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
-"\"OrgEmployeeId\"/>\n"
-"<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:131
-#, fuzzy, no-c-format
-msgid ""
"An <literal>index</literal> attribute specifies the name of an index that "
"will be created using the mapped column or columns. Multiple columns can be "
"grouped into the same index by simply specifying the same index name."
msgstr ""
-"<literal>index</literal>屿§ä¼ç¨å¯¹åºçåæ®µï¼ä¸ä¸ªæå¤ä¸ªï¼çæä¸ä¸ªindex,宿åº"
-"äºè¿ä¸ªindexçååã妿å¤ä¸ªå段对åºçindexååç¸åï¼å°±ä¼çæå
å«è¿äºå段ç"
-"indexã"
+"<literal>index</literal> 屿§ä¼ç¨å¯¹åºçåæ®µï¼ä¸ä¸ªæå¤ä¸ªï¼çæä¸ä¸ª indexï¼å®æ"
+"åºäºè¿ä¸ª index çååã妿å¤ä¸ªå段对åºç index ååç¸åï¼å°±ä¼çæå
å«è¿äºå"
+"段ç indexã "
-#. Tag: programlisting
-#: toolset_guide.xml:137
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
-"<property name=\"firstName\" index=\"CustName\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:139
-#, fuzzy, no-c-format
-msgid ""
"A <literal>foreign-key</literal> attribute can be used to override the name "
"of any generated foreign key constraint."
msgstr ""
-"<literal>foreign-key</literal>屿§å¯ä»¥ç¨æ¥è¦çä»»ä½çæçå¤é®çº¦æçååã"
+"<literal>foreign-key</literal> 屿§å¯ä»¥ç¨æ¥è¦çä»»ä½çæçå¤é®çº¦æçååã "
-#. Tag: programlisting
-#: toolset_guide.xml:144
-#, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
-">]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:146
#, no-c-format
msgid ""
"Many mapping elements also accept a child <literal><column></literal> "
"element. This is particularly useful for mapping multi-column types:"
msgstr ""
-"å¾å¤æ å°å
ç´ è¿æ¥å<literal><column></literal>åå
ç´ ãè¿å¨å®ä¹è·¨è¶å¤å段"
-"çç±»åæ¶ç¹å«æç¨ã"
+"å¾å¤æ å°å
ç´ è¿æ¥å <literal><column></literal> åå
ç´ ãè¿å¨å®ä¹è·¨è¶å¤å"
+"段çç±»åæ¶ç¹å«æç¨ã"
-#. Tag: programlisting
-#: toolset_guide.xml:151
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
-" <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30\"/"
-">\n"
-" <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20\"/"
-">\n"
-" <column name=\"initial\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:153
-#, fuzzy, no-c-format
-msgid ""
"The <literal>default</literal> attribute allows you to specify a default "
"value for a column.You should assign the same value to the mapped property "
"before saving a new instance of the mapped class."
msgstr ""
-"<literal>default</literal>屿§ä¸ºå段æå®ä¸ä¸ªé»è®¤å¼ (å¨ä¿å被æ å°çç±»çæ°å®ä¾"
-"ä¹åï¼ä½ åºè¯¥å°åæ ·çå¼èµäºå¯¹åºç屿§)ã"
+"<literal>default</literal> 屿§ä¸ºå段æå®ä¸ä¸ªé»è®¤å¼ï¼å¨ä¿å被æ å°çç±»çæ°å®ä¾"
+"ä¹åï¼ä½ åºè¯¥å°åæ ·çå¼èµäºå¯¹åºç屿§ï¼ã"
-#. Tag: programlisting
-#: toolset_guide.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"credits\" default=\"10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:161
-#, no-c-format
-msgid ""
-"<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
-" <column name=\"version\" default=\"0\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:163
#, no-c-format
msgid ""
"The <literal>sql-type</literal> attribute allows the user to override the "
"default mapping of a Hibernate type to SQL datatype."
msgstr ""
-"<literal>sql-type</literal>屿§å
è®¸ç¨æ·è¦çé»è®¤çHibernateç±»åå°SQLæ°æ®ç±»åç"
-"æ å°ã"
+"<literal>sql-type</literal> 屿§å
è®¸ç¨æ·è¦çé»è®¤ç Hibernate ç±»åå° SQL æ°æ®"
+"ç±»åçæ å°ã"
-#. Tag: programlisting
-#: toolset_guide.xml:168
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\" type=\"float\">\n"
-" <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
-"</property>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:170
#, no-c-format
msgid ""
"The <literal>check</literal> attribute allows you to specify a check "
"constraint."
-msgstr "<literal>check</literal>屿§å
è®¸ç¨æ·æå®ä¸ä¸ªçº¦ææ£æ¥ã"
+msgstr "<literal>check</literal> 屿§å
è®¸ç¨æ·æå®ä¸ä¸ªçº¦ææ£æ¥ã"
-#. Tag: programlisting
-#: toolset_guide.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"foo\" type=\"integer\">\n"
-" <column name=\"foo\" check=\"foo > 10\"/>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:176
-#, no-c-format
-msgid ""
-"<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
-" ...\n"
-" <property name=\"bar\" type=\"float\"/>\n"
-"</class>]]>"
-msgstr ""
-
#. Tag: para
-#: toolset_guide.xml:179
#, no-c-format
msgid "The following table summarizes these optional attributes."
-msgstr ""
+msgstr "ä¸è¡¨æ»ç»äºè¿äºå¯é屿§ï¼"
#. Tag: title
-#: toolset_guide.xml:182
#, no-c-format
msgid "Summary"
-msgstr "Summary"
+msgstr "æ»ç»"
#. Tag: entry
-#: toolset_guide.xml:189
#, no-c-format
msgid "Attribute"
-msgstr "屿§(Attribute)"
+msgstr "屿§ï¼Attributeï¼"
#. Tag: entry
-#: toolset_guide.xml:190
#, no-c-format
msgid "Values"
msgstr "å¼ï¼Valuesï¼"
#. Tag: entry
-#: toolset_guide.xml:191
#, no-c-format
msgid "Interpretation"
msgstr "è§£éï¼Interpretationï¼"
-#. Tag: literal
-#: toolset_guide.xml:196
+#. Tag: entry
#, no-c-format
-msgid "length"
-msgstr "length"
+msgid "<literal>length</literal>"
+msgstr "<literal>length</literal>"
#. Tag: entry
-#: toolset_guide.xml:197 toolset_guide.xml:202 toolset_guide.xml:207
#, no-c-format
msgid "number"
msgstr "æ°å"
#. Tag: entry
-#: toolset_guide.xml:198
#, no-c-format
msgid "column length"
msgstr "åæ®µé¿åº¦"
-#. Tag: literal
-#: toolset_guide.xml:201
+#. Tag: entry
#, no-c-format
-msgid "precision"
-msgstr "precision"
+msgid "<literal>precision</literal>"
+msgstr "<literal>precision</literal>"
#. Tag: entry
-#: toolset_guide.xml:203
#, no-c-format
msgid "column decimal precision"
-msgstr "精度(decimal precision)"
+msgstr "精度ï¼decimal precisionï¼"
-#. Tag: literal
-#: toolset_guide.xml:206
+#. Tag: entry
#, no-c-format
-msgid "scale"
-msgstr "scale"
+msgid "<literal>scale</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:208
#, no-c-format
msgid "column decimal scale"
-msgstr "å°æ°ç¹ä½æ°(decimal scale)"
+msgstr "å°æ°ç¹ä½æ°ï¼decimal scaleï¼"
-#. Tag: literal
-#: toolset_guide.xml:211
+#. Tag: entry
#, no-c-format
-msgid "not-null"
-msgstr "not-null"
+msgid "<literal>not-null</literal>"
+msgstr "<literal>not-null</literal>"
-#. Tag: literal
-#: toolset_guide.xml:212 toolset_guide.xml:217
+#. Tag: entry
#, no-c-format
-msgid "true|false"
-msgstr "true|false"
+msgid "<literal>true|false</literal>"
+msgstr "<literal>true|false</literal>"
#. Tag: entry
-#: toolset_guide.xml:213
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specifies that the column should be non-nullable"
-msgstr "ææå段æ¯å¦åºè¯¥æ¯é空ç"
+msgstr "ææå段æ¯å¦åºè¯¥æ¯é空ç "
-#. Tag: literal
-#: toolset_guide.xml:216
+#. Tag: entry
#, no-c-format
-msgid "unique"
-msgstr "unique"
+msgid "<literal>unique</literal>"
+msgstr "<literal>unique</literal>"
#. Tag: entry
-#: toolset_guide.xml:218
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr "æææ¯å¦è¯¥å段å
·ææä¸çº¦æ"
-#. Tag: literal
-#: toolset_guide.xml:221
+#. Tag: entry
#, no-c-format
-msgid "index"
-msgstr "index"
+msgid "<literal>index</literal>"
+msgstr "<literal>index</literal>"
-#. Tag: literal
-#: toolset_guide.xml:222
+#. Tag: entry
#, no-c-format
-msgid "index_name"
-msgstr "index_name"
+msgid "<literal>index_name</literal>"
+msgstr "<literal>index_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:223
#, no-c-format
msgid "specifies the name of a (multi-column) index"
-msgstr "ææä¸ä¸ªï¼å¤å段ï¼çç´¢å¼(index)çåå"
+msgstr "ææä¸ä¸ªï¼å¤å段ï¼çç´¢å¼ï¼indexï¼çåå"
-#. Tag: literal
-#: toolset_guide.xml:226
+#. Tag: entry
#, no-c-format
-msgid "unique-key"
-msgstr "unique-key"
+msgid "<literal>unique-key</literal>"
+msgstr "<literal>unique-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:227
+#. Tag: entry
#, no-c-format
-msgid "unique_key_name"
-msgstr "unique_key_name"
+msgid "<literal>unique_key_name</literal>"
+msgstr "<literal>unique_key_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:228
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr "ææå¤å段æä¸çº¦æçååï¼åè§ä¸é¢ç说æï¼"
-#. Tag: literal
-#: toolset_guide.xml:231
+#. Tag: entry
#, no-c-format
-msgid "foreign-key"
-msgstr "foreign-key"
+msgid "<literal>foreign-key</literal>"
+msgstr "<literal>foreign-key</literal>"
-#. Tag: literal
-#: toolset_guide.xml:232
+#. Tag: entry
#, no-c-format
-msgid "foreign_key_name"
-msgstr "foreign_key_name"
+msgid "<literal>foreign_key_name</literal>"
+msgstr "<literal>foreign_key_name</literal>"
#. Tag: entry
-#: toolset_guide.xml:233
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"specifies the name of the foreign key constraint generated for an "
"association, for a <literal><one-to-one></literal>, <literal><many-"
@@ -516,555 +363,393 @@
"to-many></literal> mapping element. Note that <literal>inverse=\"true\"</"
"literal> sides will not be considered by <literal>SchemaExport</literal>."
msgstr ""
-"ææä¸ä¸ªå¤é®çååï¼å®æ¯ä¸ºå
³èçæçï¼æè
<placeholder-1/>ï¼<placeholder-2/"
-">, <placeholder-3/>, æè
<placeholder-4/>æ å°å
ç´ ãæ³¨æ<placeholder-5/>å¨"
-"<placeholder-6/>æ¶ä¼è¢«å¿½ç¥ã"
+"ææä¸ä¸ªå¤é®çååï¼å®æ¯ä¸ºå
³èçæçï¼æè
æ¯ä¸º <literal><one-to-one></"
+"literal>, <literal><many-to-one></literal>, <literal><key></"
+"literal>, or <literal><many-to-many></literal> æ å°å
ç´ ãæ³¨æ "
+"<literal>inverse=\"true\"</literal> ä¼è¢« <literal>SchemaExport</literal> 忽"
+"ç¥ã"
-#. Tag: literal
-#: toolset_guide.xml:243
+#. Tag: entry
#, no-c-format
-msgid "sql-type"
-msgstr "sql-type"
+msgid "<literal>sql-type</literal>"
+msgstr "<literal>sql-type</literal>"
-#. Tag: literal
-#: toolset_guide.xml:244
-#, no-c-format
-msgid "SQL column type"
-msgstr "SQL åæ®µç±»å"
-
#. Tag: entry
-#: toolset_guide.xml:245
#, fuzzy, no-c-format
+msgid "<literal>SQL column type</literal>"
+msgstr "<literal>sql-type</literal>"
+
+#. Tag: entry
+#, no-c-format
msgid ""
"overrides the default column type (attribute of <literal><column></"
"literal> element only)"
-msgstr "è¦çé»è®¤çåæ®µç±»å(åªè½ç¨äº<placeholder-1/>屿§ï¼"
+msgstr "è¦çé»è®¤çåæ®µç±»åï¼åªè½ç¨äº <literal><column></literal> 屿§ï¼"
-#. Tag: literal
-#: toolset_guide.xml:251
+#. Tag: entry
#, no-c-format
-msgid "default"
-msgstr "default"
+msgid "<literal>default</literal>"
+msgstr "<literal>default</literal>"
#. Tag: entry
-#: toolset_guide.xml:252 toolset_guide.xml:259
-#, fuzzy, no-c-format
+#, no-c-format
msgid "SQL expression"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"SQL表达å¼\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"SQL 表达å¼"
+msgstr "SQL 表达å¼"
#. Tag: entry
-#: toolset_guide.xml:253
#, no-c-format
msgid "specify a default value for the column"
msgstr "ä¸ºåæ®µæå®é»è®¤å¼"
-#. Tag: literal
-#: toolset_guide.xml:258
+#. Tag: entry
#, no-c-format
-msgid "check"
-msgstr "check"
+msgid "<literal>check</literal>"
+msgstr "<literal>check</literal>"
#. Tag: entry
-#: toolset_guide.xml:260
#, no-c-format
msgid "create an SQL check constraint on either column or table"
-msgstr "坹忮µæè¡¨å å
¥SQLçº¦ææ£æ¥"
+msgstr "坹忮µæè¡¨å å
¥ SQL çº¦ææ£æ¥"
#. Tag: para
-#: toolset_guide.xml:268
#, no-c-format
msgid ""
"The <literal><comment></literal> element allows you to specify "
"comments for the generated schema."
msgstr ""
-"<literal><comment></literal>å
ç´ å¯ä»¥è®©ä½ å¨çæçschemaä¸å å
¥æ³¨éã"
+"<literal><comment></literal> å
ç´ å¯ä»¥è®©ä½ å¨çæç schema ä¸å å
¥æ³¨éã"
-#. Tag: programlisting
-#: toolset_guide.xml:273
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
-" <comment>Current customers only</comment>\n"
-" ...\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: programlisting
-#: toolset_guide.xml:275
-#, no-c-format
-msgid ""
-"<![CDATA[<property name=\"balance\">\n"
-" <column name=\"bal\">\n"
-" <comment>Balance in USD</comment>\n"
-" </column>\n"
-"</property>]]>"
-msgstr ""
-
-#. Tag: para
-#: toolset_guide.xml:277
-#, fuzzy, no-c-format
-msgid ""
"This results in a <literal>comment on table</literal> or <literal>comment on "
"column</literal> statement in the generated DDL where supported."
msgstr ""
-"ç»ææ¯å¨çæçDDLä¸å
å«<literal>comment on table</literal> æè
"
-"<literal>comment on column</literal>è¯å¥(åè¥æ¯æçè¯)ã"
+"ç»ææ¯å¨çæç DDL ä¸å
å« <literal>comment on table</literal> æè
"
+"<literal>comment on column</literal> è¯å¥ï¼åè¥æ¯æçè¯ï¼ã "
#. Tag: title
-#: toolset_guide.xml:286
#, no-c-format
msgid "Running the tool"
msgstr "è¿è¡è¯¥å·¥å
·"
#. Tag: para
-#: toolset_guide.xml:288
#, no-c-format
msgid ""
"The <literal>SchemaExport</literal> tool writes a DDL script to standard out "
"and/or executes the DDL statements."
msgstr ""
-"<literal>SchemaExport</literal>å·¥å
·æDDLèæ¬åå°æ åè¾åºï¼åæ¶/æè
æ§è¡DDLè¯"
-"å¥ã"
+"<literal>SchemaExport</literal> å·¥å
·æ DDL èæ¬åå°æ åè¾åºï¼åæ¶/æè
æ§è¡ "
+"DDL è¯å¥ã"
#. Tag: para
-#: toolset_guide.xml:293
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaExport</literal> command "
"line options"
-msgstr "<literal>SchemaExport</literal>å½ä»¤è¡é项"
+msgstr "ä¸è¡¨æ¾ç¤ºäº <literal>SchemaExport</literal> å½ä»¤è¡é项"
#. Tag: para
-#: toolset_guide.xml:295
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaExport</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:301
#, no-c-format
msgid "<literal>SchemaExport</literal> Command Line Options"
-msgstr "<literal>SchemaExport</literal>å½ä»¤è¡é项"
+msgstr "<literal>SchemaExport</literal> å½ä»¤è¡é项"
#. Tag: entry
-#: toolset_guide.xml:307 toolset_guide.xml:457 toolset_guide.xml:527
#, no-c-format
msgid "Option"
msgstr "é项"
#. Tag: entry
-#: toolset_guide.xml:308 toolset_guide.xml:395 toolset_guide.xml:458
-#: toolset_guide.xml:528
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Description"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"说æ\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"说æ\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"说æ\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æè¿°"
+msgstr "æè¿°"
-#. Tag: literal
-#: toolset_guide.xml:313 toolset_guide.xml:463
+#. Tag: entry
#, no-c-format
-msgid "--quiet"
-msgstr "--quiet"
+msgid "<literal>--quiet</literal>"
+msgstr "<literal>--quiet</literal>"
#. Tag: entry
-#: toolset_guide.xml:314 toolset_guide.xml:464
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not output the script to stdout"
-msgstr "ä¸è¦æèæ¬è¾åºå°stdout"
+msgstr "ä¸è¦æèæ¬è¾åºå° stdout "
-#. Tag: literal
-#: toolset_guide.xml:317
+#. Tag: entry
#, no-c-format
-msgid "--drop"
-msgstr "--drop"
+msgid "<literal>--drop</literal>"
+msgstr "<literal>--drop</literal>"
#. Tag: entry
-#: toolset_guide.xml:318
#, no-c-format
msgid "only drop the tables"
-msgstr "åªè¿è¡drop tablesçæ¥éª¤"
+msgstr "åªè¿è¡ drop tables çæ¥éª¤"
-#. Tag: literal
-#: toolset_guide.xml:321
+#. Tag: entry
#, no-c-format
-msgid "--create"
-msgstr "--create"
+msgid "<literal>--create</literal>"
+msgstr "<literal>--create</literal>"
#. Tag: entry
-#: toolset_guide.xml:322
#, no-c-format
msgid "only create the tables"
msgstr "åªå建表"
-#. Tag: literal
-#: toolset_guide.xml:325 toolset_guide.xml:467
+#. Tag: entry
#, no-c-format
-msgid "--text"
-msgstr "--text"
+msgid "<literal>--text</literal>"
+msgstr "<literal>--text</literal>"
#. Tag: entry
-#: toolset_guide.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export to the database"
-msgstr "䏿§è¡å¨æ°æ®åºä¸è¿è¡çæ¥éª¤"
+msgstr "䏿§è¡å¨æ°æ®åºä¸è¿è¡çæ¥éª¤ "
-#. Tag: literal
-#: toolset_guide.xml:329
-#, no-c-format
-msgid "--output=my_schema.ddl"
-msgstr "--output=my_schema.ddl"
+#. Tag: entry
+#, fuzzy, no-c-format
+msgid "<literal>--output=my_schema.ddl</literal>"
+msgstr "<literal>scale</literal>"
#. Tag: entry
-#: toolset_guide.xml:330
#, no-c-format
msgid "output the ddl script to a file"
-msgstr "æè¾åºçddlèæ¬è¾åºå°ä¸ä¸ªæä»¶"
+msgstr "æè¾åºç ddl èæ¬è¾åºå°ä¸ä¸ªæä»¶"
-#. Tag: literal
-#: toolset_guide.xml:333 toolset_guide.xml:471 toolset_guide.xml:533
-#, no-c-format
-msgid "--naming=eg.MyNamingStrategy"
-msgstr "--naming=eg.MyNamingStrategy"
-
#. Tag: entry
-#: toolset_guide.xml:334 toolset_guide.xml:472 toolset_guide.xml:534
#, fuzzy, no-c-format
-msgid "select a <literal>NamingStrategy</literal>"
-msgstr "å¨<literal>hibernate.properties</literal>æä»¶ä¸"
+msgid "<literal>--naming=eg.MyNamingStrategy</literal>"
+msgstr "<literal>--naming=eg.MyNamingStrategy</literal>"
-#. Tag: literal
-#: toolset_guide.xml:337 toolset_guide.xml:479 toolset_guide.xml:541
+#. Tag: entry
#, no-c-format
-msgid "--config=hibernate.cfg.xml"
-msgstr "--config=hibernate.cfg.xml"
+msgid "select a <literal>NamingStrategy</literal>"
+msgstr "éæ© <literal>NamingStrategy</literal>"
#. Tag: entry
-#: toolset_guide.xml:338
+#, fuzzy, no-c-format
+msgid "<literal>--config=hibernate.cfg.xml</literal>"
+msgstr "<literal>hibernate.dialect</literal>"
+
+#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
-msgstr "ä»XMLæä»¶è¯»å
¥Hibernateé
ç½®"
+msgstr "ä» XML æä»¶è¯»å
¥ Hibernate é
ç½®"
-#. Tag: literal
-#: toolset_guide.xml:341 toolset_guide.xml:475 toolset_guide.xml:537
+#. Tag: entry
#, no-c-format
-msgid "--properties=hibernate.properties"
-msgstr "--properties=hibernate.properties"
+msgid "<literal>--properties=hibernate.properties</literal>"
+msgstr "<literal>--properties=hibernate.properties</literal>"
#. Tag: entry
-#: toolset_guide.xml:342 toolset_guide.xml:476 toolset_guide.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid "read database properties from a file"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä»æä»¶è¯»å
¥æ°æ®åºå±æ§\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"ä»æå®æä»¶è¯»å
¥æ°æ®åºå±æ§\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"仿件ä¸è¯»åæ°æ®åºå±æ§"
+msgstr "ä»æä»¶è¯»å
¥æ°æ®åºå±æ§"
-#. Tag: literal
-#: toolset_guide.xml:345
+#. Tag: entry
#, no-c-format
-msgid "--format"
-msgstr "--format"
+msgid "<literal>--format</literal>"
+msgstr "<literal>--format</literal>"
#. Tag: entry
-#: toolset_guide.xml:346
#, no-c-format
msgid "format the generated SQL nicely in the script"
-msgstr "æèæ¬ä¸çSQLè¯å¥å¯¹é½åç¾å"
+msgstr "æèæ¬ä¸ç SQL è¯å¥å¯¹é½åç¾å"
-#. Tag: literal
-#: toolset_guide.xml:349
+#. Tag: entry
#, no-c-format
-msgid "--delimiter=;"
-msgstr "--delimiter=;"
+msgid "<literal>--delimiter=;</literal>"
+msgstr "<literal>--delimiter=;</literal>"
#. Tag: entry
-#: toolset_guide.xml:350
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr "ä¸ºèæ¬è®¾ç½®è¡ç»æç¬¦"
#. Tag: para
-#: toolset_guide.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can even embed <literal>SchemaExport</literal> in your application:"
-msgstr "ä½ çè³å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥<literal>SchemaExport</literal>å·¥å
·:"
+msgstr "ä½ çè³å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥ <literal>SchemaExport</literal> å·¥å
·ï¼ "
-#. Tag: programlisting
-#: toolset_guide.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaExport(cfg).create(false, true);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:365
#, no-c-format
msgid "Properties"
-msgstr "屿§(Properties)"
+msgstr "屿§ï¼Propertiesï¼"
#. Tag: para
-#: toolset_guide.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Database properties can be specified:"
-msgstr "å¯ä»¥éè¿å¦ä¸æ¹å¼æå®æ°æ®åºå±æ§:"
+msgstr "å¯ä»¥éè¿å¦ä¸æ¹å¼æå®æ°æ®åºå±æ§ï¼ "
#. Tag: para
-#: toolset_guide.xml:373
#, no-c-format
msgid ""
"as system properties with <literal>-D</literal><emphasis><property></"
"emphasis>"
-msgstr "éè¿<literal>-D</literal><emphasis><property></emphasis>ç³»ç»åæ°"
+msgstr ""
+"éè¿ <literal>-D</literal><emphasis><property></emphasis> ç³»ç»åæ°"
#. Tag: para
-#: toolset_guide.xml:376
#, no-c-format
msgid "in <literal>hibernate.properties</literal>"
-msgstr "å¨<literal>hibernate.properties</literal>æä»¶ä¸"
+msgstr "å¨ <literal>hibernate.properties</literal> æä»¶ä¸"
#. Tag: para
-#: toolset_guide.xml:379
#, no-c-format
msgid "in a named properties file with <literal>--properties</literal>"
msgstr ""
-"ä½äºä¸ä¸ªå
¶å®ååçpropertiesæä»¶ä¸,ç¶åç¨ <literal>--properties</literal>åæ°"
-"æå®"
+"ä½äºä¸ä¸ªå
¶å®ååç properties æä»¶ä¸,ç¶åç¨ <literal>--properties</literal> "
+"åæ°æå®"
#. Tag: para
-#: toolset_guide.xml:383
#, no-c-format
msgid "The needed properties are:"
-msgstr "æéçåæ°å
æ¬:"
+msgstr "æéçåæ°å
æ¬ï¼"
#. Tag: title
-#: toolset_guide.xml:388
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr "SchemaExport è¿æ¥å±æ§"
#. Tag: entry
-#: toolset_guide.xml:394
#, no-c-format
msgid "Property Name"
msgstr "屿§å"
-#. Tag: literal
-#: toolset_guide.xml:400
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.driver_class"
-msgstr "hibernate.connection.driver_class"
+msgid "<literal>hibernate.connection.driver_class</literal>"
+msgstr "<literal>hibernate.connection.driver_class</literal>"
#. Tag: entry
-#: toolset_guide.xml:401
#, no-c-format
msgid "jdbc driver class"
msgstr "jdbc driver class"
-#. Tag: literal
-#: toolset_guide.xml:404
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.url"
-msgstr "hibernate.connection.url"
+msgid "<literal>hibernate.connection.url</literal>"
+msgstr "<literal>hibernate.connection.url</literal>"
#. Tag: entry
-#: toolset_guide.xml:405
#, no-c-format
msgid "jdbc url"
msgstr "jdbc url"
-#. Tag: literal
-#: toolset_guide.xml:408
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.username"
-msgstr "hibernate.connection.username"
+msgid "<literal>hibernate.connection.username</literal>"
+msgstr "<literal>hibernate.connection.username</literal>"
#. Tag: entry
-#: toolset_guide.xml:409
#, no-c-format
msgid "database user"
msgstr "database user"
-#. Tag: literal
-#: toolset_guide.xml:412
+#. Tag: entry
#, no-c-format
-msgid "hibernate.connection.password"
-msgstr "hibernate.connection.password"
+msgid "<literal>hibernate.connection.password</literal>"
+msgstr "<literal>hibernate.connection.password</literal>"
#. Tag: entry
-#: toolset_guide.xml:413
#, no-c-format
msgid "user password"
msgstr "user password"
-#. Tag: literal
-#: toolset_guide.xml:416
+#. Tag: entry
#, no-c-format
-msgid "hibernate.dialect"
-msgstr "hibernate.dialect"
+msgid "<literal>hibernate.dialect</literal>"
+msgstr "<literal>hibernate.dialect</literal>"
#. Tag: entry
-#: toolset_guide.xml:417
#, no-c-format
msgid "dialect"
-msgstr "æ¹è¨(dialect)"
+msgstr "æ¹è¨ï¼dialectï¼"
#. Tag: title
-#: toolset_guide.xml:426
#, no-c-format
msgid "Using Ant"
-msgstr "使ç¨Ant(Using Ant)"
+msgstr "ä½¿ç¨ Antï¼Using Antï¼"
#. Tag: para
-#: toolset_guide.xml:428
#, no-c-format
msgid ""
"You can call <literal>SchemaExport</literal> from your Ant build script:"
-msgstr "ä½ å¯ä»¥å¨ä½ çAnt buildèæ¬ä¸è°ç¨<literal>SchemaExport</literal>:"
+msgstr "ä½ å¯ä»¥å¨ä½ ç Ant build èæ¬ä¸è°ç¨ <literal>SchemaExport</literal>ï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:432
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaexport\">\n"
-" <taskdef name=\"schemaexport\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaexport\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\"\n"
-" text=\"no\"\n"
-" drop=\"no\"\n"
-" delimiter=\";\"\n"
-" output=\"schema-export.sql\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaexport>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:437
#, no-c-format
msgid "Incremental schema updates"
-msgstr "对schemaçå¢éæ´æ°(Incremental schema updates)"
+msgstr "对 schema çå¢éæ´æ°ï¼Incremental schema updatesï¼"
#. Tag: para
-#: toolset_guide.xml:439
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaUpdate</literal> tool will update an existing schema with "
"\"incremental\" changes. The <literal>SchemaUpdate</literal> depends upon "
"the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr ""
-"<literal>SchemaUpdate</literal>å·¥å
·å¯¹å·²åå¨çschemaéç¨\"å¢é\"æ¹å¼è¿è¡æ´æ°ã"
-"注æ<literal>SchemaUpdate</literal>严éä¾èµäºJDBC metadata API,æä»¥å®å¹¶é对æ"
-"æJDBC驱å¨é½ææã"
+"<literal>SchemaUpdate</literal> å·¥å
·å¯¹å·²åå¨ç schema éç¨\"å¢é\"æ¹å¼è¿è¡æ´"
+"æ°ã注æ <literal>SchemaUpdate</literal> 严éä¾èµäº JDBC metadata APIï¼æä»¥å®"
+"å¹¶éå¯¹ææ JDBC 驱å¨é½ææã "
#. Tag: para
-#: toolset_guide.xml:445
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
"mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaUpdate</literal> <emphasis>options "
+"mapping_files</emphasis>"
#. Tag: title
-#: toolset_guide.xml:451
#, no-c-format
msgid "<literal>SchemaUpdate</literal> Command Line Options"
-msgstr "<literal>SchemaUpdate</literal>å½ä»¤è¡é项"
+msgstr "<literal>SchemaUpdate</literal> å½ä»¤è¡é项"
#. Tag: entry
-#: toolset_guide.xml:468
-#, fuzzy, no-c-format
+#, no-c-format
msgid "do not export the script to the database"
-msgstr "ä¸æèæ¬è¾åºå°æ°æ®åº"
+msgstr "ä¸æèæ¬è¾åºå°æ°æ®åº "
#. Tag: entry
-#: toolset_guide.xml:480 toolset_guide.xml:542
-#, fuzzy, no-c-format
+#, no-c-format
msgid "specify a <literal>.cfg.xml</literal> file"
-msgstr ""
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æå®ä¸ä¸ª <placeholder-1/>æä»¶\n"
-"#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-"æå®ä¸ä¸ª<placeholder-1/>æä»¶"
+msgstr "æå®ä¸ä¸ª <literal>.cfg.xml</literal> æä»¶"
#. Tag: para
-#: toolset_guide.xml:486
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaUpdate</literal> in your application:"
-msgstr "ä½ å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥<literal>SchemaUpdate</literal>å·¥å
·:"
+msgstr "ä½ å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥ <literal>SchemaUpdate</literal> å·¥å
·ï¼ "
-#. Tag: programlisting
-#: toolset_guide.xml:490
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaUpdate(cfg).execute(false);]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:495
#, no-c-format
msgid "Using Ant for incremental schema updates"
-msgstr "ç¨Antæ¥å¢éæ´æ°schema(Using Ant for incremental schema updates)"
+msgstr "ç¨ Ant æ¥å¢éæ´æ° schemaï¼Using Ant for incremental schema updatesï¼"
#. Tag: para
-#: toolset_guide.xml:497
#, no-c-format
msgid "You can call <literal>SchemaUpdate</literal> from the Ant script:"
-msgstr "ä½ å¯ä»¥å¨Antèæ¬ä¸è°ç¨<literal>SchemaUpdate</literal>ï¼"
+msgstr "ä½ å¯ä»¥å¨ Ant èæ¬ä¸è°ç¨ <literal>SchemaUpdate</literal>ï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:501
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemaupdate\">\n"
-" <taskdef name=\"schemaupdate\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemaupdate\n"
-" properties=\"hibernate.properties\"\n"
-" quiet=\"no\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemaupdate>\n"
-"</target>]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:506
#, no-c-format
msgid "Schema validation"
msgstr "Schema æ ¡éª"
#. Tag: para
-#: toolset_guide.xml:508
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>SchemaValidator</literal> tool will validate that the existing "
"database schema \"matches\" your mapping documents. The "
@@ -1072,131 +757,407 @@
"API and, as such, will not work with all JDBC drivers. This tool is "
"extremely useful for testing."
msgstr ""
-"<literal>SchemaValidator</literal>å·¥å
·ä¼æ¯è¾æ°æ®åºç°ç¶æ¯å¦ä¸æ å°ææ¡£âå¹é
âã"
-"注æï¼<literal>SchemaValidator</literal> 严éä¾èµäºJDBCçmetadata APIï¼å æ¤ä¸"
-"æ¯å¯¹ææçJDBC驱å¨é½éç¨ãè¿ä¸å·¥å
·å¨æµè¯çæ¶åç¹å«æç¨ã"
+"<literal>SchemaValidator</literal> å·¥å
·ä¼æ¯è¾æ°æ®åºç°ç¶æ¯å¦ä¸æ å°ææ¡£âå¹é
âã"
+"注æï¼<literal>SchemaValidator</literal> 严éä¾èµäº JDBC ç metadata APIï¼å "
+"æ¤ä¸æ¯å¯¹ææç JDBC 驱å¨é½éç¨ãè¿ä¸å·¥å
·å¨æµè¯çæ¶åç¹å«æç¨ã "
#. Tag: para
-#: toolset_guide.xml:514
#, no-c-format
msgid ""
"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
"<emphasis>options mapping_files</emphasis>"
msgstr ""
+"<literal>java -cp </literal><emphasis>hibernate_classpaths</emphasis> "
+"<literal>org.hibernate.tool.hbm2ddl.SchemaValidator</literal> "
+"<emphasis>options mapping_files</emphasis>"
#. Tag: para
-#: toolset_guide.xml:518
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The following table displays the <literal>SchemaValidator</literal> command "
"line options:"
-msgstr "<literal>SchemaValidator</literal>å½ä»¤è¡åæ°"
+msgstr "ä¸è¡¨æ¾ç¤ºäº <literal>SchemaValidator</literal> å½ä»¤è¡åæ°ï¼"
#. Tag: title
-#: toolset_guide.xml:521
#, no-c-format
msgid "<literal>SchemaValidator</literal> Command Line Options"
-msgstr "<literal>SchemaValidator</literal>å½ä»¤è¡åæ°"
+msgstr "<literal>SchemaValidator</literal> å½ä»¤è¡åæ°"
#. Tag: para
-#: toolset_guide.xml:548
-#, fuzzy, no-c-format
+#, no-c-format
msgid "You can embed <literal>SchemaValidator</literal> in your application:"
-msgstr "ä½ å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥<literal>SchemaValidator</literal>ï¼"
+msgstr "ä½ å¯ä»¥å¨ä½ çåºç¨ç¨åºä¸åµå
¥ <literal>SchemaValidator</literal>ï¼ "
-#. Tag: programlisting
-#: toolset_guide.xml:552
-#, no-c-format
-msgid ""
-"<![CDATA[Configuration cfg = ....;\n"
-"new SchemaValidator(cfg).validate();]]>"
-msgstr ""
-
#. Tag: title
-#: toolset_guide.xml:557
#, no-c-format
msgid "Using Ant for schema validation"
-msgstr "使ç¨Antè¿è¡schemaæ ¡éª"
+msgstr "ä½¿ç¨ Ant è¿è¡ schema æ ¡éª"
#. Tag: para
-#: toolset_guide.xml:559
#, no-c-format
msgid "You can call <literal>SchemaValidator</literal> from the Ant script:"
-msgstr "ä½ å¯ä»¥å¨Antèæ¬ä¸è°ç¨<literal>SchemaValidator</literal>:"
+msgstr "ä½ å¯ä»¥å¨ Ant èæ¬ä¸è°ç¨ <literal>SchemaValidator</literal>ï¼"
-#. Tag: programlisting
-#: toolset_guide.xml:563
-#, no-c-format
-msgid ""
-"<![CDATA[<target name=\"schemavalidate\">\n"
-" <taskdef name=\"schemavalidator\"\n"
-" classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
-" classpathref=\"class.path\"/>\n"
-" \n"
-" <schemavalidator\n"
-" properties=\"hibernate.properties\">\n"
-" <fileset dir=\"src\">\n"
-" <include name=\"**/*.hbm.xml\"/>\n"
-" </fileset>\n"
-" </schemavalidator>\n"
-"</target>]]>"
-msgstr ""
+#, fuzzy
+#~ msgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"
+#~ msgstr "<property name=\"zip\" length=\"5\"/>"
-#~ msgid "Ant Tasks:"
-#~ msgstr "Ant Tasks:"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"
+#~ msgstr "<property name=\"balance\" precision=\"12\" scale=\"2\"/>"
-#~ msgid "<one-to-one>"
-#~ msgstr "<one-to-one>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>"
-#~ msgid "<many-to-one>"
-#~ msgstr "<many-to-one>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
+#~ "unique=\"true\"/>]]>"
+#~ msgstr ""
+#~ "<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
+#~ "unique=\"true\"/>"
-#~ msgid "<key>"
-#~ msgstr "<key>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key="
+#~ "\"OrgEmployeeId\"/>\n"
+#~ "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"org\" column=\"orgId\" unique-key=\"OrgEmployeeId"
+#~ "\"/>\n"
+#~ "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>"
-#~ msgid "<many-to-many>"
-#~ msgstr "<many-to-many>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"
+#~ "<property name=\"firstName\" index=\"CustName\"/>]]>"
+#~ msgstr ""
+#~ "<property name=\"lastName\" index=\"CustName\"/>\n"
+#~ "<property name=\"firstName\" index=\"CustName\"/>"
-#~ msgid "inverse=\"true\""
-#~ msgstr "inverse=\"true\""
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar"
+#~ "\"/>]]>"
+#~ msgstr ""
+#~ "<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
+#~ ">"
-#~ msgid "SchemaExport"
-#~ msgstr "SchemaExport"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
+#~ " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length=\"30"
+#~ "\"/>\n"
+#~ " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length=\"20"
+#~ "\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
+#~ " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length="
+#~ "\"30\"/>\n"
+#~ " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length="
+#~ "\"20\"/>\n"
+#~ " <column name=\"initial\"/>\n"
+#~ "</property>"
-#~ msgid "<column>"
-#~ msgstr "<column>"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"credits\" default=\"10\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"credits\" default=\"10\"/>\n"
+#~ "</property>"
-#~ msgid "java -cp"
-#~ msgstr "java -cp"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"version\" default=\"0\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<version name=\"version\" type=\"integer\" insert=\"false\">\n"
+#~ " <column name=\"version\" default=\"0\"/>\n"
+#~ "</property>"
-#~ msgid "hibernate_classpaths"
-#~ msgstr "hibernate_classpaths"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\" type=\"float\">\n"
+#~ " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"balance\" type=\"float\">\n"
+#~ " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
+#~ "</property>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaExport"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaExport"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"foo\" type=\"integer\">\n"
+#~ " <column name=\"foo\" check=\"foo > 10\"/>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"foo\" type=\"integer\">\n"
+#~ " <column name=\"foo\" check=\"foo > 10\"/>\n"
+#~ "</property>"
-#~ msgid "options mapping_files"
-#~ msgstr "options mapping_files"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
+#~ " ...\n"
+#~ " <property name=\"bar\" type=\"float\"/>\n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
+#~ " ...\n"
+#~ " <property name=\"bar\" type=\"float\"/>\n"
+#~ "</class>"
-#~ msgid "NamingStrategy"
-#~ msgstr "NamingStrategy"
+#~ msgid "length"
+#~ msgstr "length"
+#~ msgid "precision"
+#~ msgstr "precision"
+
+#~ msgid "scale"
+#~ msgstr "scale"
+
+#~ msgid "not-null"
+#~ msgstr "not-null"
+
+#~ msgid "true|false"
+#~ msgstr "true|false"
+
+#~ msgid "unique"
+#~ msgstr "unique"
+
+#~ msgid "index"
+#~ msgstr "index"
+
+#~ msgid "index_name"
+#~ msgstr "index_name"
+
+#~ msgid "unique-key"
+#~ msgstr "unique-key"
+
+#~ msgid "unique_key_name"
+#~ msgstr "unique_key_name"
+
+#~ msgid "foreign-key"
+#~ msgstr "foreign-key"
+
#, fuzzy
-#~ msgid "select a <placeholder-1/>"
+#~ msgid "foreign_key_name"
+#~ msgstr "foreign-key"
+
+#~ msgid "sql-type"
+#~ msgstr "sql-type"
+
+#, fuzzy
+#~ msgid "SQL column type"
+#~ msgstr "<literal>SQL column type</literal>"
+
+#~ msgid "default"
+#~ msgstr "default"
+
+#~ msgid "check"
+#~ msgstr "check"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"
+#~ " <comment>Current customers only</comment>\n"
+#~ " ...\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "éæ©ä¸ä¸ªå½åçç¥(<placeholder-1/>)\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "éæ©ä¸ä¸ªå½åçç¥ (<placeholder-1/>)\n"
-#~ "#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
-#~ "éæ©ä¸ä¸ªå½åçç¥ (<placeholder-1/>)"
+#~ "<class name=\"Customer\" table=\"CurCust\">\n"
+#~ " <comment>Current customers only</comment>\n"
+#~ " ...\n"
+#~ "</class>"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaUpdate"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaUpdate"
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<property name=\"balance\">\n"
+#~ " <column name=\"bal\">\n"
+#~ " <comment>Balance in USD</comment>\n"
+#~ " </column>\n"
+#~ "</property>]]>"
+#~ msgstr ""
+#~ "<property name=\"balance\">\n"
+#~ " <column name=\"bal\">\n"
+#~ " <comment>Balance in USD</comment>\n"
+#~ " </column>\n"
+#~ "</property>"
-#~ msgid ".cfg.xml"
-#~ msgstr ".cfg.xml"
+#~ msgid "--quiet"
+#~ msgstr "--quiet"
-#~ msgid "org.hibernate.tool.hbm2ddl.SchemaValidator"
-#~ msgstr "org.hibernate.tool.hbm2ddl.SchemaValidator"
+#~ msgid "--drop"
+#~ msgstr "--drop"
+
+#~ msgid "--create"
+#~ msgstr "--create"
+
+#~ msgid "--text"
+#~ msgstr "--text"
+
+#, fuzzy
+#~ msgid "--output=my_schema.ddl"
+#~ msgstr "<literal>--output=my_schema.ddl</literal>"
+
+#, fuzzy
+#~ msgid "--config=hibernate.cfg.xml"
+#~ msgstr "<literal>--config=hibernate.cfg.xml</literal>"
+
+#~ msgid "--properties=hibernate.properties"
+#~ msgstr "--properties=hibernate.properties"
+
+#~ msgid "--format"
+#~ msgstr "--format"
+
+#~ msgid "--delimiter=;"
+#~ msgstr "--delimiter=;"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaExport(cfg).create(false, true);]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaExport(cfg).create(false, true);"
+
+#, fuzzy
+#~ msgid "hibernate.connection.driver_class"
+#~ msgstr "hibernate.connection.url"
+
+#~ msgid "hibernate.connection.url"
+#~ msgstr "hibernate.connection.url"
+
+#~ msgid "hibernate.connection.username"
+#~ msgstr "hibernate.connection.username"
+
+#~ msgid "hibernate.connection.password"
+#~ msgstr "hibernate.connection.password"
+
+#~ msgid "hibernate.dialect"
+#~ msgstr "hibernate.dialect"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemaexport\">\n"
+#~ " <taskdef name=\"schemaexport\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaexport\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\"\n"
+#~ " text=\"no\"\n"
+#~ " drop=\"no\"\n"
+#~ " delimiter=\";\"\n"
+#~ " output=\"schema-export.sql\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaexport>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemaexport\">\n"
+#~ " <taskdef name=\"schemaexport\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaexport\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\"\n"
+#~ " text=\"no\"\n"
+#~ " drop=\"no\"\n"
+#~ " delimiter=\";\"\n"
+#~ " output=\"schema-export.sql\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaexport>\n"
+#~ "</target>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaUpdate(cfg).execute(false);]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaUpdate(cfg).execute(false);"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemaupdate\">\n"
+#~ " <taskdef name=\"schemaupdate\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaupdate\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemaupdate\">\n"
+#~ " <taskdef name=\"schemaupdate\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemaupdate\n"
+#~ " properties=\"hibernate.properties\"\n"
+#~ " quiet=\"no\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[Configuration cfg = ....;\n"
+#~ "new SchemaValidator(cfg).validate();]]>"
+#~ msgstr ""
+#~ "Configuration cfg = ....;\n"
+#~ "new SchemaValidator(cfg).validate();"
+
+#, fuzzy
+#~ msgid ""
+#~ "<![CDATA[<target name=\"schemavalidate\">\n"
+#~ " <taskdef name=\"schemavalidator\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemavalidator\n"
+#~ " properties=\"hibernate.properties\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemavalidator>\n"
+#~ "</target>]]>"
+#~ msgstr ""
+#~ "<target name=\"schemavalidate\">\n"
+#~ " <taskdef name=\"schemavalidator\"\n"
+#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
+#~ " classpathref=\"class.path\"/>\n"
+#~ " \n"
+#~ " <schemavalidator\n"
+#~ " properties=\"hibernate.properties\">\n"
+#~ " <fileset dir=\"src\">\n"
+#~ " <include name=\"**/*.hbm.xml\"/>\n"
+#~ " </fileset>\n"
+#~ " </schemaupdate>\n"
+#~ "</target>"
+
+#~ msgid "<!-- <emphasis>Ant Tasks:</emphasis> -->"
+#~ msgstr "<!-- <emphasis>Ant Tasks:</emphasis> -->"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/transactions.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/transactions.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/transactions.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,24 +1,26 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-11 10:41+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: transactions.xml:29
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Transactions and Concurrency"
-msgstr "äºå¡åå¹¶å"
+msgstr "äºå¡åå¹¶å "
#. Tag: para
-#: transactions.xml:31
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most important point about Hibernate and concurrency control is that it "
"is easy to understand. Hibernate directly uses JDBC connections and JTA "
@@ -26,13 +28,12 @@
"that you spend some time with the JDBC, ANSI, and transaction isolation "
"specification of your database management system."
msgstr ""
-"Hibernateçäºå¡åå¹¶åæ§å¶å¾å®¹æææ¡ãHibernateç´æ¥ä½¿ç¨JDBCè¿æ¥åJTAèµæºï¼ä¸æ·»"
-"å ä»»ä½éå éå® è¡ä¸ºãæä»¬å¼ºçæ¨èä½ è±ç¹æ¶é´äºè§£JDBCç¼ç¨ï¼ANSI SQLæ¥è¯¢è¯è¨åä½ "
-"ä½¿ç¨ çæ°æ®åºç³»ç»çäºå¡é离è§èã"
+"Hibernate çäºå¡åå¹¶åæ§å¶å¾å®¹æææ¡ãHibernate ç´æ¥ä½¿ç¨ JDBC è¿æ¥å JTA èµ"
+"æºï¼ä¸æ·»å ä»»ä½éå éå®è¡ä¸ºãæä»¬å¼ºçæ¨èä½ è±ç¹æ¶é´äºè§£ JDBC ç¼ç¨ï¼ANSI SQL æ¥"
+"询è¯è¨åä½ ä½¿ç¨çæ°æ®åºç³»ç»çäºå¡é离è§èã "
#. Tag: para
-#: transactions.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate does not lock objects in memory. Your application can expect the "
"behavior as defined by the isolation level of your database transactions. "
@@ -40,59 +41,54 @@
"cache, Hibernate provides repeatable reads for lookup by identifier and "
"entity queries and not reporting queries that return scalar values."
msgstr ""
-"Hibernateä¸éå®å
åä¸ç对象ãä½ çåºç¨ç¨åºä¼æç
§ä½ çæ°æ®åºäºå¡çé离级å«è§å®ç"
-"飿 ·è¿ä½ãå¹¸äºæäº<literal>Session</literal>ï¼ä½¿å¾Hibernateéè¿æ è¯ç¬¦æ¥æ¾ï¼å"
-"å®ä½æ¥è¯¢ï¼ä¸æ¯è¿åæ éå¼çæ¥è¡¨æ¥è¯¢ï¼æä¾äºå¯éå¤ç读åï¼Repeatable readsï¼å"
-"è½ï¼<literal>Session</literal>忶乿¯äºå¡èå´å
çç¼åï¼cacheï¼ã"
+"Hibernate ä¸éå®å
åä¸ç对象ãä½ çåºç¨ç¨åºä¼æç
§ä½ çæ°æ®åºäºå¡çé离级å«è§å®"
+"ç飿 ·è¿ä½ãå¹¸äºæäº <literal>Session</literal>ï¼ä½¿å¾ Hibernate éè¿æ è¯ç¬¦æ¥"
+"æ¾ï¼åå®ä½æ¥è¯¢ï¼ä¸æ¯è¿åæ éå¼çæ¥è¡¨æ¥è¯¢ï¼æä¾äºå¯éå¤ç读åï¼Repeatable "
+"readsï¼åè½ï¼<literal>Session</literal> 忶乿¯äºå¡èå´å
çç¼åï¼cacheï¼ã "
#. Tag: para
-#: transactions.xml:46
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In addition to versioning for automatic optimistic concurrency control, "
"Hibernate also offers, using the <literal>SELECT FOR UPDATE</literal> "
"syntax, a (minor) API for pessimistic locking of rows. Optimistic "
"concurrency control and this API are discussed later in this chapter."
msgstr ""
-"é¤äºå¯¹èªå¨ä¹è§å¹¶åæ§å¶æä¾çæ¬ç®¡çï¼é对è¡çº§æ²è§éå®ï¼Hibernate乿ä¾äºè¾
å©ç"
-"ï¼è¾å°ç)APIï¼å®ä½¿ç¨äº <literal>SELECT FOR UPDATE</literal>çSQLè¯æ³ãæ¬ç« å"
-"é¢ä¼è®¨è®ºä¹è§å¹¶åæ§å¶åè¿ä¸ªAPIã"
+"é¤äºå¯¹èªå¨ä¹è§å¹¶åæ§å¶æä¾çæ¬ç®¡çï¼é对è¡çº§æ²è§éå®ï¼Hibernate 乿ä¾äºè¾
å©"
+"çï¼è¾å°çï¼APIï¼å®ä½¿ç¨äº <literal>SELECT FOR UPDATE</literal> ç SQL è¯æ³ã"
+"æ¬ç« åé¢ä¼è®¨è®ºä¹è§å¹¶åæ§å¶åè¿ä¸ªAPIã "
#. Tag: para
-#: transactions.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The discussion of concurrency control in Hibernate begins with the "
"granularity of <literal>Configuration</literal>, <literal>SessionFactory</"
"literal>, and <literal>Session</literal>, as well as database transactions "
"and long conversations."
msgstr ""
-"æä»¬ä»<literal>Configuration</literal>å±ã<literal>SessionFactory</literal>"
-"å±, å <literal>Session</literal>å±å¼å§è®¨è®ºHibernateçå¹¶è¡æ§å¶ãæ°æ®åºäºå¡å"
-"åºç¨ ç¨åºçé¿äºå¡ã"
+"æä»¬ä» <literal>Configuration</literal>å±ã<literal>SessionFactory</literal> "
+"å±ï¼å <literal>Session</literal> å±å¼å§è®¨è®º Hibernate çå¹¶è¡æ§å¶ãæ°æ®åºäºå¡"
+"ååºç¨ç¨åºçé¿äºå¡ã "
#. Tag: title
-#: transactions.xml:60
#, no-c-format
msgid "Session and transaction scopes"
-msgstr "Sessionåäºå¡èå´(transaction scope)"
+msgstr "Session åäºå¡èå´ï¼transaction scopeï¼"
#. Tag: para
-#: transactions.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>SessionFactory</literal> is an expensive-to-create, threadsafe "
"object, intended to be shared by all application threads. It is created "
"once, usually on application startup, from a <literal>Configuration</"
"literal> instance."
msgstr ""
-"<literal>SessionFactory</literal>对象çåå»ºä»£ä»·å¾æè´µï¼å®æ¯çº¿ç¨å®å
¨ç对象ï¼å®"
-"为ææçåºç¨ç¨åºçº¿ç¨æå
±äº«ãå®åªåå»ºä¸æ¬¡ï¼é常æ¯å¨åºç¨ç¨åºå¯å¨çæ¶åï¼ç±ä¸ä¸ª"
-"<literal>Configuraion</literal>çå®ä¾æ¥å建ã"
+"<literal>SessionFactory</literal> 对象çåå»ºä»£ä»·å¾æè´µï¼å®æ¯çº¿ç¨å®å
¨ç对象ï¼"
+"å®ä¸ºææçåºç¨ç¨åºçº¿ç¨æå
±äº«ãå®åªåå»ºä¸æ¬¡ï¼é常æ¯å¨åºç¨ç¨åºå¯å¨çæ¶åï¼ç±ä¸"
+"个 <literal>Configuraion</literal> çå®ä¾æ¥å建ã "
#. Tag: para
-#: transactions.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is an inexpensive, non-threadsafe object that "
"should be used once and then discarded for: a single request, a conversation "
@@ -100,15 +96,14 @@
"JDBC <literal>Connection</literal>, or a <literal>Datasource</literal>, "
"unless it is needed. It will not consume any resources until used."
msgstr ""
-"<literal>Session</literal>对象çå建代价æ¯è¾å°ï¼æ¯é线ç¨å®å
¨çï¼å¯¹äºå个请"
+"<literal>Session</literal> 对象çå建代价æ¯è¾å°ï¼æ¯é线ç¨å®å
¨çï¼å¯¹äºå个请"
"æ±ï¼å个ä¼è¯ãå个ç å·¥ä½åå
èè¨ï¼å®åªè¢«ä½¿ç¨ä¸æ¬¡ï¼ç¶å就丢å¼ãåªæå¨éè¦çæ¶"
-"åï¼ä¸ä¸ª<literal>Session</literal>对象 æä¼è·åä¸ä¸ªJDBCç"
-"<literal>Connection</literal>ï¼æä¸ä¸ª<literal>Datasource</literal>ï¼ å¯¹è±¡ï¼å "
-"æ¤åè¥ä¸ä½¿ç¨çæ¶åå®ä¸æ¶è´¹ä»»ä½èµæºã"
+"åï¼ä¸ä¸ª <literal>Session</literal> 对象 æä¼è·åä¸ä¸ª JDBC ç "
+"<literal>Connection</literal>ï¼æä¸ä¸ª<literal>Datasource</literal>ï¼å¯¹è±¡ï¼å "
+"æ¤åè¥ä¸ä½¿ç¨çæ¶åå®ä¸æ¶è´¹ä»»ä½èµæºã "
#. Tag: para
-#: transactions.xml:76
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In order to reduce lock contention in the database, a database transaction "
"has to be as short as possible. Long database transactions will prevent your "
@@ -116,13 +111,12 @@
"that you hold a database transaction open during user think time until the "
"unit of work is complete."
msgstr ""
-"æ¤å¤æä»¬è¿è¦èèæ°æ®åºäºå¡ãæ°æ®åºäºå¡åºè¯¥å°½å¯è½ççï¼é使°æ®åºä¸çéäºç¨ã "
+"æ¤å¤æä»¬è¿è¦èèæ°æ®åºäºå¡ãæ°æ®åºäºå¡åºè¯¥å°½å¯è½ççï¼é使°æ®åºä¸çéäºç¨ã"
"æ°æ®åºé¿äºå¡ä¼é»æ¢ä½ çåºç¨ç¨åºæ©å±å°é«çå¹¶åè´è½½ãå æ¤ï¼åè¥å¨ç¨æ·æèæé´è®©"
-"æ°æ®åºäºå¡å¼çï¼ç´å°æ´ä¸ªå·¥ä½åå
宿æå
³éè¿ä¸ªäºå¡ï¼è¿ç»ä¸æ¯ä¸ä¸ªå¥½ç设计ã"
+"æ°æ®åºäºå¡å¼çï¼ç´å°æ´ä¸ªå·¥ä½åå
宿æå
³éè¿ä¸ªäºå¡ï¼è¿ç»ä¸æ¯ä¸ä¸ªå¥½ç设计ã "
#. Tag: para
-#: transactions.xml:84
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What is the scope of a unit of work? Can a single Hibernate "
"<literal>Session</literal> span several database transactions, or is this a "
@@ -130,20 +124,19 @@
"<literal>Session</literal> and how do you demarcate the database transaction "
"boundaries? These questions are addressed in the following sections."
msgstr ""
-"ä¸ä¸ªæä½åå
(Unit of work)çèå´æ¯å¤å¤§ï¼å个çHibernate <literal>Session</"
-"literal>è½è·¨è¶å¤ä¸ª æ°æ®åºäºå¡åï¼è¿æ¯ä¸ä¸ª<literal>Session</literal>çä½ç¨èå´"
-"对åºä¸ä¸ªæ°æ®åºäºå¡çèå´ï¼åºè¯¥ä½æ¶æå¼ <literal>Session</literal>ï¼ä½æ¶å
³é"
-"<literal>Session</literal>ï¼ï¼ä½ åå¦ä½ååæ°æ®åºäºå¡çè¾¹çå¢ï¼"
+"ä¸ä¸ªæä½åå
ï¼Unit of workï¼çèå´æ¯å¤å¤§ï¼å个ç Hibernate <literal>Session</"
+"literal> è½è·¨è¶å¤ä¸ªæ°æ®åºäºå¡åï¼è¿æ¯ä¸ä¸ª <literal>Session</literal> çä½ç¨è"
+"å´å¯¹åºä¸ä¸ªæ°æ®åºäºå¡çèå´ï¼åºè¯¥ä½æ¶æå¼ <literal>Session</literal>ï¼ä½æ¶å
³"
+"é <literal>Session</literal>ï¼ä½ åå¦ä½ååæ°æ®åºäºå¡çè¾¹çå¢ï¼æä»¬å°å¨åç»ç« "
+"èè§£å³è¿äºé®é¢ã"
#. Tag: title
-#: transactions.xml:92
#, no-c-format
msgid "Unit of work"
-msgstr "æä½åå
(Unit of work)"
+msgstr "æä½åå
ï¼Unit of workï¼"
#. Tag: para
-#: transactions.xml:94
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"First, let's define a unit of work. A unit of work is a design pattern "
"described by Martin Fowler as <quote> [maintaining] a list of objects "
@@ -152,14 +145,21 @@
"citation> In other words, its a series of operations we wish to carry out "
"against the database together. Basically, it is a transaction, though "
"fulfilling a unit of work will often span multiple physical database "
-"transactions (see <xref linkend=\"transactions-basics-apptx\"/>). So really "
+"transactions (see <xref linkend=\"transactions-basics-apptx\" />). So really "
"we are talking about a more abstract notion of a transaction. The term "
"\"business transaction\" is also sometimes used in lieu of unit of work."
msgstr ""
+"é¦å
ï¼è®©æä»¬å®ä¹ä¸ä¸ªå·¥ä½åå
ï¼unit of workï¼ãå·¥ä½åå
æ¯ä¸ä¸ªè®¾è®¡æ¨¡å¼ï¼Martin "
+"Fowler æå®æè¿°ä¸º <quote> [maintaining] a list of objects affected by a "
+"business transaction and coordinates the writing out of changes and the "
+"resolution of concurrency problems. </quote><citation>PoEAA</citation> æ¢å¥è¯"
+"说ï¼å®æ¯æä»¬å¸æå¯¹æ°æ®åºæ§è¡çä¸ç³»åæä½ãåºæ¬ä¸ï¼å®æ¯ä¸ä¸ªäºå¡ï¼è½ç¶å®æä¸ä¸ª"
+"å·¥ä½åå
ç»å¸¸å°è·¨è¶å¤ä¸ªç©çæ°æ®åºäºå¡ï¼è¯·åè <xref linkend=\"transactions-"
+"basics-apptx\"/>ï¼ãæä»¥ï¼å®é
䏿们å¨è®¨è®ºä¸ä¸ªæ´æ½è±¡çäºå¡æ¦å¿µãæ¯è¯ "
+"\"business transaction\" ææ¶ä¹åå·¥ä½åå
ä¸èµ·ä½¿ç¨ã "
#. Tag: para
-#: transactions.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the <emphasis>session-per-operation</emphasis> antipattern: do "
"not open and close a <literal>Session</literal> for every simple database "
@@ -175,19 +175,19 @@
"clearly defined unit of work. The latter is also more maintainable and "
"extensible."
msgstr ""
-"é¦å
ï¼å«ç¨<emphasis>session-per-operation</emphasis>è¿ç§å模å¼äºï¼ä¹å°±æ¯è¯´ï¼"
-"å¨å个线ç¨ä¸ï¼ ä¸è¦å ä¸ºä¸æ¬¡ç®åçæ°æ®åºè°ç¨ï¼å°±æå¼åå
³é䏿¬¡"
+"é¦å
ï¼å«ç¨ <emphasis>session-per-operation</emphasis> è¿ç§å模å¼äºï¼ä¹å°±æ¯"
+"说ï¼å¨å个线ç¨ä¸ï¼ ä¸è¦å ä¸ºä¸æ¬¡ç®åçæ°æ®åºè°ç¨ï¼å°±æå¼åå
³é䏿¬¡ "
"<literal>Session</literal>ï¼æ°æ®åºäºå¡ä¹æ¯å¦æ¤ã åºç¨ç¨åºä¸çæ°æ®åºè°ç¨æ¯æç
§"
-"计åå¥½çæ¬¡åºï¼åç»ä¸ºååçæä½åå
ãï¼æ³¨æï¼è¿ä¹æå³çï¼åºç¨ç¨ åºä¸ï¼å¨å个ç"
-"SQLè¯å¥åéä¹åï¼èªå¨äºå¡æäº¤(auto-commit)模å¼å¤±æäºãè¿ç§æ¨¡å¼ä¸é¨ä¸ºSQLæ§å¶å°"
-"æä½è®¾è®¡çã Hibernateç¦æ¢ç«å³èªå¨äºå¡æäº¤æ¨¡å¼ï¼æè
ææåºç¨æå¡å¨ç¦æ¢ç«å³èª"
-"å¨äºå¡æäº¤æ¨¡å¼ãï¼æ°æ®åºäºå¡ç»ä¸æ¯å¯æå¯æ çï¼ä»»ä½ä¸æ°æ®åºä¹é´çé讯é½å¿
é¡»å¨"
-"æä¸ªäºå¡ä¸è¿è¡ï¼ä¸ç®¡ä½ æ¯å¨è¯»è¿æ¯å¨åæ°æ®ãå¯¹è¯»æ°æ®èè¨ï¼åºè¯¥é¿å
auto-commitè¡"
-"为ï¼å 为å¾å¤å°çäºå¡æ¯ä¸ä¸ªæ¸
æ°å®ä¹çå·¥ä½åå
æ§è½å·®ãåè
乿´å®¹æç»´æ¤åæ©å±ã"
+"计åå¥½çæ¬¡åºï¼åç»ä¸ºååçæä½åå
ãï¼æ³¨æï¼è¿ä¹æå³çï¼åºç¨ç¨ åºä¸ï¼å¨å个"
+"ç SQL è¯å¥åéä¹åï¼èªå¨äºå¡æäº¤ï¼auto-commitï¼æ¨¡å¼å¤±æäºãè¿ç§æ¨¡å¼ä¸é¨ä¸ºSQL"
+"æ§å¶å°æä½è®¾è®¡çã Hibernate ç¦æ¢ç«å³èªå¨äºå¡æäº¤æ¨¡å¼ï¼æè
ææåºç¨æå¡å¨ç¦æ¢"
+"ç«å³èªå¨äºå¡æäº¤æ¨¡å¼ãï¼æ°æ®åºäºå¡ç»ä¸æ¯å¯æå¯æ çï¼ä»»ä½ä¸æ°æ®åºä¹é´çé讯é½"
+"å¿
é¡»å¨æä¸ªäºå¡ä¸è¿è¡ï¼ä¸ç®¡ä½ æ¯å¨è¯»è¿æ¯å¨åæ°æ®ãå¯¹è¯»æ°æ®èè¨ï¼åºè¯¥é¿å
auto-"
+"commit è¡ä¸ºï¼å 为å¾å¤å°çäºå¡æ¯ä¸ä¸ªæ¸
æ°å®ä¹çå·¥ä½åå
æ§è½å·®ãåè
乿´å®¹æç»´æ¤"
+"åæ©å±ã "
#. Tag: para
-#: transactions.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The most common pattern in a multi-user client/server application is "
"<emphasis>session-per-request</emphasis>. In this model, a request from the "
@@ -200,18 +200,17 @@
"literal>. The relationship between the two is one-to-one and this model is a "
"perfect fit for many applications."
msgstr ""
-"å¨å¤ç¨æ·çclient/serveråºç¨ç¨åºä¸ï¼æå¸¸ç¨çæ¨¡å¼æ¯ <emphasis>æ¯ä¸ªè¯·æ±ä¸ä¸ªä¼è¯"
-"(session-per-request)</emphasis>ã å¨è¿ç§æ¨¡å¼ä¸ï¼æ¥èªå®¢æ·ç«¯ç请æ±è¢«åéå°æå¡"
-"å¨ç«¯ï¼å³Hibernateæä¹
åå±è¿è¡çå°æ¹ï¼ï¼ä¸ 个æ°çHibernate <literal>Session</"
-"literal>被æå¼ï¼å¹¶ä¸æ§è¡è¿ä¸ªæä½åå
䏿æçæ°æ®åºæä½ã 䏿¦æä½å®æï¼åæ¶å¯¹"
-"客æ·ç«¯çååºä¹åå¤å°±ç»ªï¼ï¼sessionè¢«åæ¥ï¼ç¶åå
³éãä½ ä¹å¯ä»¥ä½¿ç¨å ä¸ªæ°æ®åºäº"
-"塿¥å¤ç客æ·ç«¯è¯·æ±ï¼å¨ä½ æå¼<literal>Session</literal>ä¹åå¯å¨äºå¡ï¼å¨ä½ å
³é "
-"<literal>Session</literal>ä¹åæäº¤äºå¡ãä¼è¯å请æ±ä¹é´çå
³ç³»æ¯ä¸å¯¹ä¸çå
³ç³»ï¼"
-"è¿ç§æ¨¡å¼å¯¹ äºå¤§å¤æ°åºç¨ç¨åºæ¥è¯´æ¯å¾æ£çã"
+"å¨å¤ç¨æ·ç client/server åºç¨ç¨åºä¸ï¼æå¸¸ç¨çæ¨¡å¼æ¯ <emphasis>æ¯ä¸ªè¯·æ±ä¸ä¸ªä¼"
+"è¯ï¼session-per-requestï¼</emphasis>ã å¨è¿ç§æ¨¡å¼ä¸ï¼æ¥èªå®¢æ·ç«¯ç请æ±è¢«åéå°"
+"æå¡å¨ç«¯ï¼å³ Hibernate æä¹
åå±è¿è¡çå°æ¹ï¼ï¼ä¸ä¸ªæ°ç Hibernate "
+"<literal>Session</literal> 被æå¼ï¼å¹¶ä¸æ§è¡è¿ä¸ªæä½åå
䏿æçæ°æ®åºæä½ãä¸"
+"æ¦æä½å®æï¼åæ¶å¯¹å®¢æ·ç«¯çååºä¹åå¤å°±ç»ªï¼ï¼session è¢«åæ¥ï¼ç¶åå
³éãä½ ä¹å¯"
+"以使ç¨å ä¸ªæ°æ®åºäºå¡æ¥å¤ç客æ·ç«¯è¯·æ±ï¼å¨ä½ æå¼ <literal>Session</literal> ä¹"
+"åå¯å¨äºå¡ï¼å¨ä½ å
³é <literal>Session</literal> ä¹åæäº¤äºå¡ãä¼è¯å请æ±ä¹é´"
+"çå
³ç³»æ¯ä¸å¯¹ä¸çå
³ç³»ï¼è¿ç§æ¨¡å¼å¯¹ äºå¤§å¤æ°åºç¨ç¨åºæ¥è¯´æ¯å¾æ£çã "
#. Tag: para
-#: transactions.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The challenge lies in the implementation. Hibernate provides built-in "
"management of the \"current session\" to simplify this pattern. Start a "
@@ -225,33 +224,32 @@
"use the Hibernate <literal>Transaction</literal> API shown later in this "
"chapter."
msgstr ""
-"å®ç°ææ¯çæ£çææãHibernateå
ç½®äºå¯¹\"å½åsession(current session)\" ç管"
-"çï¼ç¨äºç®åæ¤æ¨¡å¼ãä½ è¦åçä¸åå°±æ¯å¨æå¡å¨ç«¯è¦å¤ç请æ±çæ¶åï¼å¼å¯äºå¡ï¼å¨"
-"ååºåéç»å®¢æ·ä¹åç»æäºå¡ãä½ å¯ä»¥ç¨ä»»ä½æ¹å¼æ¥å®æè¿ä¸æä½ï¼éå¸¸çæ¹æ¡æ"
-"<literal>ServletFilter</literal>ï¼å¨serviceæ¹æ³ä¸è¿è¡pointcutçAOPæ¦æªå¨ï¼æ"
-"è
proxy/interception容å¨ãEJB容卿¯å®ç°æ¨ªå诸å¦EJB session beanä¸çäºå¡åçï¼"
-"ç¨CMT对äºå¡è¿è¡å£°æçæ¹é¢çæ åææ®µãåè¥ä½ å³å®ä½¿ç¨ç¼ç¨å¼çäºå¡åçï¼è¯·åèæ¬"
-"ç« åé¢è®²å°çHibernate <literal>Transaction</literal> APIï¼è¿å¯¹æç¨æ§å代ç å¯"
-"ç§»æ¤æ§é½æå¥½å¤ã"
+"å®ç°ææ¯çæ£çææãHibernate å
ç½®äºå¯¹\"å½å sessionï¼current sessionï¼\" ç"
+"管çï¼ç¨äºç®åæ¤æ¨¡å¼ãä½ è¦åçä¸åå°±æ¯å¨æå¡å¨ç«¯è¦å¤ç请æ±çæ¶åï¼å¼å¯äºå¡ï¼"
+"å¨ååºåéç»å®¢æ·ä¹åç»æäºå¡ãä½ å¯ä»¥ç¨ä»»ä½æ¹å¼æ¥å®æè¿ä¸æä½ï¼éå¸¸çæ¹æ¡æ "
+"<literal>ServletFilter</literal>ï¼å¨ service æ¹æ³ä¸è¿è¡ pointcut ç AOP æ¦æª"
+"å¨ï¼æè
proxy/interception 容å¨ãEJB 容卿¯å®ç°æ¨ªåè¯¸å¦ EJB session bean ä¸"
+"çäºå¡åçï¼ç¨ CMT 对äºå¡è¿è¡å£°æçæ¹é¢çæ åææ®µãåè¥ä½ å³å®ä½¿ç¨ç¼ç¨å¼çäºå¡"
+"åçï¼è¯·åèæ¬ç« åé¢è®²å°ç Hibernate <literal>Transaction</literal> APIï¼è¿å¯¹"
+"æç¨æ§å代ç å¯ç§»æ¤æ§é½æå¥½å¤ã "
#. Tag: para
-#: transactions.xml:150
#, fuzzy, no-c-format
msgid ""
"Your application code can access a \"current session\" to process the "
"request by calling <literal>sessionFactory.getCurrentSession()</literal>. "
"You will always get a <literal>Session</literal> scoped to the current "
"database transaction. This has to be configured for either resource-local or "
-"JTA environments, see <xref linkend=\"architecture-current-session\"/>."
+"JTA environments, see <xref linkend=\"architecture-current-session\" />."
msgstr ""
"å¨ä»»ä½æ¶é´ï¼ä»»ä½å°æ¹ï¼ä½ çåºç¨ä»£ç å¯ä»¥éè¿ç®åçè°ç¨<literal>sessionFactory."
-"getCurrentSession()</literal>æ¥è®¿é®\"å½åsession\"ï¼ç¨äºå¤ç请æ±ãä½ æ»æ¯ä¼å¾"
-"å°å½åæ°æ®åºäºå¡èå´å
ç<literal>Session</literal>ãå¨ä½¿ç¨æ¬å°èµæºæJTAç¯å¢"
-"æ¶ï¼å¿
é¡»é
ç½®å®ï¼è¯·åè§<xref linkend=\"architecture-current-session\"/>ã"
+"getCurrentSession()</literal> æ¥è®¿é®\"å½å session\"ï¼ç¨äºå¤ç请æ±ãä½ æ»æ¯ä¼"
+"å¾å°å½åæ°æ®åºäºå¡èå´å
ç <literal>Session</literal>ãå¨ä½¿ç¨æ¬å°èµæºæ JTA "
+"ç¯å¢æ¶ï¼å¿
é¡»é
ç½®å®ï¼è¯·åè§ <xref linkend=\"architecture-current-session\"/"
+">ã "
#. Tag: para
-#: transactions.xml:158
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can extend the scope of a <literal>Session</literal> and database "
"transaction until the \"view has been rendered\". This is especially useful "
@@ -263,22 +261,21 @@
"of any view can start. See the Hibernate website and forum for tips and "
"examples relating to this <emphasis>Open Session in View</emphasis> pattern."
msgstr ""
-"ææ¶ï¼å°<literal>Session</literal>åæ°æ®åºäºå¡çè¾¹ç延伸å°\"å±ç¤ºå±è¢«æ¸²æå"
-"\"ä¼å¸¦æ¥ä¾¿å©ãæäºserlvetåºç¨ç¨åºå¨å¯¹è¯·æ±è¿è¡å¤çåï¼æä¸ªåç¬ç渲ææï¼è¿ç§å»¶"
-"伸对è¿ç§ç¨åºç¹å«æç¨ãåè¥ä½ å®ç°ä½ èªå·±çæ¦æªå¨ï¼æäºå¡è¾¹ç延伸å°å±ç¤ºå±æ¸²æç»"
-"æåé常容æãç¶èï¼åè¥ä½ ä¾èµæå®¹å¨ç®¡çäºå¡çEJBï¼è¿å°±ä¸å¤ªå®¹æäºï¼å 为äºå¡ä¼"
-"å¨EJBæ¹æ³è¿ååç»æï¼è飿¯å¨ä»»ä½å±ç¤ºå±æ¸²æå¼å§ä¹åã请访é®Hibernateç½ç«å论"
-"åï¼ä½ å¯ä»¥æ¾å°<emphasis>Open Session in View</emphasis>è¿ä¸æ¨¡å¼çæç¤ºå示ä¾ã"
+"ææ¶ï¼å° <literal>Session</literal> åæ°æ®åºäºå¡çè¾¹ç延伸å°\"å±ç¤ºå±è¢«æ¸²æå"
+"\"ä¼å¸¦æ¥ä¾¿å©ãæäº serlvet åºç¨ç¨åºå¨å¯¹è¯·æ±è¿è¡å¤çåï¼æä¸ªåç¬ç渲ææï¼è¿ç§"
+"延伸对è¿ç§ç¨åºç¹å«æç¨ãåè¥ä½ å®ç°ä½ èªå·±çæ¦æªå¨ï¼æäºå¡è¾¹ç延伸å°å±ç¤ºå±æ¸²æ"
+"ç»æåé常容æãç¶èï¼åè¥ä½ ä¾èµæå®¹å¨ç®¡çäºå¡ç EJBï¼è¿å°±ä¸å¤ªå®¹æäºï¼å 为äº"
+"å¡ä¼å¨ EJB æ¹æ³è¿ååç»æï¼è飿¯å¨ä»»ä½å±ç¤ºå±æ¸²æå¼å§ä¹åãè¯·è®¿é® Hibernate "
+"ç½ç«å论åï¼ä½ å¯ä»¥æ¾å° <emphasis>Open Session in View</emphasis> è¿ä¸æ¨¡å¼çæ"
+"示å示ä¾ã "
#. Tag: title
-#: transactions.xml:173
#, no-c-format
msgid "Long conversations"
msgstr "é¿å¯¹è¯"
#. Tag: para
-#: transactions.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The session-per-request pattern is not the only way of designing units of "
"work. Many business processes require a whole series of interactions with "
@@ -286,48 +283,44 @@
"applications, it is not acceptable for a database transaction to span a user "
"interaction. Consider the following example:"
msgstr ""
-"session-per-request模å¼ä¸ä»
ä»
æ¯ä¸ä¸ªå¯ä»¥ç¨æ¥è®¾è®¡æä½åå
çæç¨æ¦å¿µãå¾å¤ä¸å¡å¤"
-"çé½é è¦ä¸ç³»å宿´çä¸ç¨æ·ä¹é´ç交äºï¼èè¿äºç¨æ·æ¯æå¯¹æ°æ®åºæäº¤å访é®çç¨"
-"æ·ãå¨åºäºwebçåºç¨åä¼ä¸ åºç¨ä¸ï¼è·¨ç¨æ·äº¤äºçæ°æ®åºäºå¡æ¯æ æ³æ¥åçãèèä¸"
-"é¢çä¾åï¼"
+"session-per-request 模å¼ä¸ä»
ä»
æ¯ä¸ä¸ªå¯ä»¥ç¨æ¥è®¾è®¡æä½åå
çæç¨æ¦å¿µãå¾å¤ä¸å¡"
+"å¤çé½é è¦ä¸ç³»å宿´çä¸ç¨æ·ä¹é´ç交äºï¼èè¿äºç¨æ·æ¯æå¯¹æ°æ®åºæäº¤å访é®çç¨"
+"æ·ãå¨åºäº web çåºç¨åä¼ä¸åºç¨ä¸ï¼è·¨ç¨æ·äº¤äºçæ°æ®åºäºå¡æ¯æ æ³æ¥åçãèèä¸"
+"é¢çä¾åï¼ "
#. Tag: para
-#: transactions.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The first screen of a dialog opens. The data seen by the user has been "
"loaded in a particular <literal>Session</literal> and database transaction. "
"The user is free to modify the objects."
msgstr ""
"å¨çé¢ç第ä¸å±ï¼æå¼å¯¹è¯æ¡ï¼ç¨æ·æçå°çæ°æ®æ¯è¢«ä¸ä¸ªç¹å®ç <literal>Session</"
-"literal> åæ°æ® åºäºå¡è½½å
¥(load)çãç¨æ·å¯ä»¥éæä¿®æ¹å¯¹è¯æ¡ä¸çæ°æ®å¯¹è±¡ã"
+"literal> åæ°æ® åºäºå¡è½½å
¥ï¼loadï¼çãç¨æ·å¯ä»¥éæä¿®æ¹å¯¹è¯æ¡ä¸çæ°æ®å¯¹è±¡ã "
#. Tag: para
-#: transactions.xml:192
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The user clicks \"Save\" after 5 minutes and expects their modifications to "
"be made persistent. The user also expects that they were the only person "
"editing this information and that no conflicting modification has occurred."
msgstr ""
-"5åéåï¼ç¨æ·ç¹å»âä¿åâï¼æææååºçä¿®æ¹è¢«æä¹
åï¼åæ¶ä»ä¹ææèªå·±æ¯å¯ä¸ä¿®æ¹"
-"è¿ä¸ªä¿¡æ¯ç人ï¼ä¸ä¼åºç° ä¿®æ¹å²çªã"
+"5 åéåï¼ç¨æ·ç¹å»âä¿åâï¼æææååºçä¿®æ¹è¢«æä¹
åï¼åæ¶ä»ä¹ææèªå·±æ¯å¯ä¸ä¿®"
+"æ¹è¿ä¸ªä¿¡æ¯ç人ï¼ä¸ä¼åºç°ä¿®æ¹å²çªã "
#. Tag: para
-#: transactions.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"From the point of view of the user, we call this unit of work a long-running "
"<emphasis>conversation</emphasis> or <emphasis>application transaction</"
"emphasis>. There are many ways to implement this in your application."
msgstr ""
"ä»ç¨æ·çè§åº¦æ¥çï¼æä»¬æè¿ä¸ªæä½åå
ç§°ä¸ºé¿æ¶é´è¿è¡ç<emphasis>对è¯</emphasis>"
-"ï¼conversationï¼,æè
(or <emphasis>åºç¨äºå¡</emphasis>,application "
-"transaction)ã å¨ä½ çåºç¨ç¨åºä¸ï¼å¯ä»¥æå¾å¤ç§æ¹æ³æ¥å®ç°å®ã"
+"ï¼conversationï¼ï¼æè
<emphasis>åºç¨äºå¡</emphasis>ï¼application "
+"transactionï¼ãå¨ä½ çåºç¨ç¨åºä¸ï¼å¯ä»¥æå¾å¤ç§æ¹æ³æ¥å®ç°å®ã"
#. Tag: para
-#: transactions.xml:206
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A first naive implementation might keep the <literal>Session</literal> and "
"database transaction open during user think time, with locks held in the "
@@ -335,14 +328,13 @@
"atomicity. This is an anti-pattern, since lock contention would not allow "
"the application to scale with the number of concurrent users."
msgstr ""
-"头ä¸ä¸ªå¹¼ç¨çåæ³æ¯ï¼å¨ç¨æ·æèçè¿ç¨ä¸ï¼ä¿æ<literal>Session</literal>åæ°æ®"
-"åºäºå¡æ¯æå¼çï¼ ä¿ææ°æ®åºéå®ï¼ä»¥é»æ¢å¹¶åä¿®æ¹ï¼ä»èä¿è¯æ°æ®åºäºå¡é离级å«å"
-"ååæä½ãè¿ç§æ¹å¼å½ç¶æ¯ä¸ä¸ªå模å¼ï¼ å 为éäºç¨ä¼å¯¼è´åºç¨ç¨åºæ æ³æ©å±å¹¶åç¨æ·"
-"çæ°ç®ã"
+"头ä¸ä¸ªå¹¼ç¨çåæ³æ¯ï¼å¨ç¨æ·æèçè¿ç¨ä¸ï¼ä¿æ <literal>Session</literal> åæ°"
+"æ®åºäºå¡æ¯æå¼çï¼ä¿ææ°æ®åºéå®ï¼ä»¥é»æ¢å¹¶åä¿®æ¹ï¼ä»èä¿è¯æ°æ®åºäºå¡é离级å«"
+"åååæä½ãè¿ç§æ¹å¼å½ç¶æ¯ä¸ä¸ªå模å¼ï¼å 为éäºç¨ä¼å¯¼è´åºç¨ç¨åºæ æ³æ©å±å¹¶åç¨"
+"æ·çæ°ç®ã "
#. Tag: para
-#: transactions.xml:214
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You have to use several database transactions to implement the conversation. "
"In this case, maintaining isolation of business processes becomes the "
@@ -355,27 +347,25 @@
msgstr ""
"徿æ¾ï¼æä»¬å¿
须使ç¨å¤ä¸ªæ°æ®åºäºå¡æ¥å®ç°è¿ä¸ªå¯¹è¯ãå¨è¿ä¸ªä¾åä¸ï¼ç»´æ¤ä¸å¡å¤ç"
"ç äºå¡é离åæäºåºç¨ç¨åºå±çé¨å责任ãä¸ä¸ªå¯¹è¯é常跨è¶å¤ä¸ªæ°æ®åºäºå¡ã妿ä»
"
-"ä»
åªæä¸ ä¸ªæ°æ®åºäºå¡ï¼æåçé£ä¸ªäºå¡ï¼ä¿åæ´æ°è¿çæ°æ®ï¼èææå
¶ä»äºå¡åªæ¯å"
-"纯çè¯»åæ°æ®ï¼ä¾å¦å¨ä¸ 个跨è¶å¤ä¸ªè¯·æ±/ååºå¨æçå坼飿 ¼çå¯¹è¯æ¡ä¸ï¼ï¼é£ä¹åº"
-"ç¨ç¨åºäºå¡å°ä¿è¯å
¶ååæ§ãè¿ç§æ¹å¼æ¯å¬ èµ·æ¥è¿è¦å®¹æå®ç°ï¼ç¹å«æ¯å½ä½ 使ç¨äº"
-"Hibernateçä¸è¿°ç¹æ§çæ¶åï¼"
+"ä»
åªæä¸ä¸ªæ°æ®åºäºå¡ï¼æåçé£ä¸ªäºå¡ï¼ä¿åæ´æ°è¿çæ°æ®ï¼èææå
¶ä»äºå¡åªæ¯å"
+"纯çè¯»åæ°æ®ï¼ä¾å¦å¨ä¸ä¸ªè·¨è¶å¤ä¸ªè¯·æ±/ååºå¨æçå坼飿 ¼çå¯¹è¯æ¡ä¸ï¼ï¼é£ä¹åºç¨"
+"ç¨åºäºå¡å°ä¿è¯å
¶ååæ§ãè¿ç§æ¹å¼æ¯å¬èµ·æ¥è¿è¦å®¹æå®ç°ï¼ç¹å«æ¯å½ä½ 使ç¨äº "
+"Hibernate çä¸è¿°ç¹æ§çæ¶åï¼ "
#. Tag: para
-#: transactions.xml:227
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Automatic Versioning</emphasis>: Hibernate can perform automatic "
"optimistic concurrency control for you. It can automatically detect if a "
"concurrent modification occurred during user think time. Check for this at "
"the end of the conversation."
msgstr ""
-"<emphasis>èªå¨çæ¬å</emphasis> - Hibernateè½å¤èªå¨è¿è¡ä¹è§å¹¶åæ§å¶ ï¼å¦æå¨"
-"ç¨æ·æè çè¿ç¨ä¸åçå¹¶åä¿®æ¹ï¼Hibernateè½å¤èªå¨æ£æµå°ãä¸è¬æä»¬åªå¨å¯¹è¯ç»æ"
-"æ¶ææ£æ¥ã"
+"<emphasis>èªå¨çæ¬å</emphasis>ï¼Hibernate è½å¤èªå¨è¿è¡ä¹è§å¹¶åæ§å¶ï¼å¦æå¨ç¨"
+"æ·æèçè¿ç¨ä¸åçå¹¶åä¿®æ¹ï¼Hibernate è½å¤èªå¨æ£æµå°ãä¸è¬æä»¬åªå¨å¯¹è¯ç»ææ¶"
+"ææ£æ¥ã"
#. Tag: para
-#: transactions.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Detached Objects</emphasis>: if you decide to use the "
"<emphasis>session-per-request</emphasis> pattern, all loaded instances will "
@@ -384,15 +374,15 @@
"<emphasis>session-per-request-with-detached-objects</emphasis>. Automatic "
"versioning is used to isolate concurrent modifications."
msgstr ""
-"<emphasis>è±ç®¡å¯¹è±¡</emphasis>ï¼Detached Objectsï¼- å¦æä½ å³å®éç¨åé¢å·²ç»è®¨è®º"
-"è¿ç <emphasis>session-per-request</emphasis>模å¼ï¼ææè½½å
¥çå®ä¾å¨ç¨æ·æèç"
-"è¿ç¨ ä¸é½å¤äºä¸Sessionè±ç¦»çç¶æãHibernateå
è®¸ä½ æä¸Sessionè±ç¦»çå¯¹è±¡éæ°å
³"
-"èå°Session ä¸ï¼å¹¶ä¸å¯¹ä¿®æ¹è¿è¡æä¹
åï¼è¿ç§æ¨¡å¼è¢«ç§°ä¸º <emphasis>session-per-"
-"request-with-detached-objects</emphasis>ãèªå¨çæ¬åè¢«ç¨æ¥é离并åä¿®æ¹ã"
+"<emphasis>è±ç®¡å¯¹è±¡</emphasis>ï¼Detached Objectsï¼ï¼å¦æä½ å³å®éç¨åé¢å·²ç»è®¨è®º"
+"è¿ç <emphasis>session-per-request</emphasis> 模å¼ï¼ææè½½å
¥çå®ä¾å¨ç¨æ·æè"
+"çè¿ç¨ä¸é½å¤äºä¸ Session è±ç¦»çç¶æãHibernate å
è®¸ä½ æä¸ Session è±ç¦»ç对象"
+"éæ°å
³èå° Session ä¸ï¼å¹¶ä¸å¯¹ä¿®æ¹è¿è¡æä¹
åï¼è¿ç§æ¨¡å¼è¢«ç§°ä¸º "
+"<emphasis>session-per-request-with-detached-objects</emphasis>ãèªå¨çæ¬å被"
+"ç¨æ¥é离并åä¿®æ¹ã"
#. Tag: para
-#: transactions.xml:245
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis>Extended (or Long) Session</emphasis>: the Hibernate "
"<literal>Session</literal> can be disconnected from the underlying JDBC "
@@ -403,72 +393,64 @@
"<literal>Session</literal> will not be allowed to be flushed automatically, "
"but explicitly."
msgstr ""
-"<emphasis>Extended (or Long) Session</emphasis> - Hibernate ç"
-"<literal>Session</literal> å¯ä»¥å¨æ°æ®åºäºå¡æäº¤ä¹åååºå±çJDBCè¿æ¥æå¼ï¼å½ä¸"
-"个æ°ç客æ·ç«¯è¯·æ±å°æ¥çæ¶åï¼å®åéæ°è¿æ¥ä¸åºå±ç JDBCè¿æ¥ãè¿ç§æ¨¡å¼è¢«ç§°ä¹ä¸º"
-"<emphasis>session-per-conversation</emphasis>ï¼è¿ç§æ
åµå¯ è½ä¼é æä¸å¿
è¦ç"
-"SessionåJDBCè¿æ¥çéæ°å
³èãèªå¨çæ¬åè¢«ç¨æ¥é离并åä¿®æ¹, <literal>Session</"
-"literal>é常ä¸å
许èªå¨flush,èæ¯æç¡®flushã"
+"<emphasis>Extended (or Long) Session</emphasis>ï¼Hibernate ç "
+"<literal>Session</literal> å¯ä»¥å¨æ°æ®åºäºå¡æäº¤ä¹åååºå±ç JDBC è¿æ¥æå¼ï¼å½"
+"ä¸ä¸ªæ°ç客æ·ç«¯è¯·æ±å°æ¥çæ¶åï¼å®åéæ°è¿æ¥ä¸åºå±ç JDBC è¿æ¥ãè¿ç§æ¨¡å¼è¢«ç§°ä¹"
+"为<emphasis>session-per-conversation</emphasis>ï¼è¿ç§æ
åµå¯ è½ä¼é æä¸å¿
è¦ç "
+"Session å JDBC è¿æ¥çéæ°å
³èãèªå¨çæ¬åè¢«ç¨æ¥é离并åä¿®æ¹ï¼"
+"<literal>Session</literal> é常ä¸å
许èªå¨ flushï¼èæ¯æ¾æ§å° flushã "
#. Tag: para
-#: transactions.xml:258
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Both <emphasis>session-per-request-with-detached-objects</emphasis> and "
"<emphasis>session-per-conversation</emphasis> have advantages and "
"disadvantages. These disadvantages are discussed later in this chapter in "
"the context of optimistic concurrency control."
msgstr ""
-"<emphasis>session-per-request-with-detached-objects</emphasis> å "
+"<emphasis>session-per-request-with-detached-objects</emphasis> å "
"<emphasis>session-per-conversation</emphasis> åæä¼ç¼ºç¹ï¼æä»¬å¨æ¬ç« åé¢ä¹è§"
-"å¹¶å æ§å¶é£é¨ååè¿è¡è®¨è®ºã"
+"å¹¶åæ§å¶é£é¨ååè¿è¡è®¨è®ºã "
#. Tag: title
-#: transactions.xml:267
#, no-c-format
msgid "Considering object identity"
-msgstr "å
³æ³¨å¯¹è±¡æ è¯(Considering object identity)"
+msgstr "å
³æ³¨å¯¹è±¡æ è¯ï¼Considering object identityï¼"
#. Tag: para
-#: transactions.xml:269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An application can concurrently access the same persistent state in two "
"different <literal>Session</literal>s. However, an instance of a persistent "
"class is never shared between two <literal>Session</literal> instances. It "
"is for this reason that there are two different notions of identity:"
msgstr ""
-"åºç¨ç¨åºå¯è½å¨ä¸¤ä¸ªä¸åç<literal>Session</literal>ä¸å¹¶å访é®å䏿ä¹
åç¶æï¼"
-"使¯ï¼ ä¸ä¸ªæä¹
åç±»çå®ä¾æ æ³å¨ä¸¤ä¸ª <literal>Session</literal>ä¸å
±äº«ãå æ¤æ"
-"两ç§ä¸åçæ è¯è¯ä¹ï¼"
+"åºç¨ç¨åºå¯è½å¨ä¸¤ä¸ªä¸åç <literal>Session</literal> ä¸å¹¶å访é®å䏿ä¹
åç¶"
+"æï¼ä½æ¯ï¼ä¸ä¸ªæä¹
åç±»çå®ä¾æ æ³å¨ä¸¤ä¸ª <literal>Session</literal> ä¸å
±äº«ãå "
+"æ¤æä¸¤ç§ä¸åçæ è¯è¯ä¹ï¼ "
#. Tag: term
-#: transactions.xml:278
#, no-c-format
msgid "Database Identity"
msgstr "æ°æ®åºæ è¯"
-#. Tag: literal
-#: transactions.xml:281
-#, no-c-format
-msgid "foo.getId().equals( bar.getId() )"
-msgstr "foo.getId().equals( bar.getId() )"
+#. Tag: para
+#, fuzzy, no-c-format
+msgid "<literal>foo.getId().equals( bar.getId() )</literal>"
+msgstr "<literal>foo.getId().equals( bar.getId() )</literal>"
#. Tag: term
-#: transactions.xml:286
#, no-c-format
msgid "JVM Identity"
msgstr "JVM æ è¯"
-#. Tag: literal
-#: transactions.xml:289
+#. Tag: para
#, no-c-format
-msgid "foo==bar"
-msgstr "foo==bar"
+msgid "<literal>foo==bar</literal>"
+msgstr "<literal>foo==bar</literal>"
#. Tag: para
-#: transactions.xml:295
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For objects attached to a <emphasis>particular</emphasis> <literal>Session</"
"literal> (i.e., in the scope of a <literal>Session</literal>), the two "
@@ -479,16 +461,15 @@
"resolved using an optimistic approach and automatic versioning at flush/"
"commit time."
msgstr ""
-"对äºé£äºå
³èå° <emphasis>ç¹å®</emphasis><literal>Session</literal> ï¼ä¹å°±æ¯å¨"
-"å个<literal>Session</literal>çèå´å
ï¼ä¸ç对象æ¥è¯´ï¼è¿ ä¸¤ç§æ è¯çè¯ä¹æ¯çä»·"
-"çï¼ä¸æ°æ®åºæ è¯å¯¹åºçJVMæ è¯æ¯ç±Hibernateæ¥ä¿ è¯çãä¸è¿ï¼å½åºç¨ç¨åºå¨ä¸¤ä¸ªä¸"
-"åçsessionä¸å¹¶å访é®å
·æå䏿ä¹
åæ è¯çä¸å¡å¯¹è±¡å®ä¾çæ¶åï¼è¿ä¸ªä¸å¡å¯¹è±¡ç"
-"两个å®ä¾äºå®ä¸æ¯ä¸ç¸åçï¼ä» JVMè¯å«æ¥çï¼ãè¿ç§å²çªå¯ä»¥éè¿å¨åæ¥åæäº¤çæ¶"
-"å使ç¨èªå¨çæ¬ååä¹ è§é宿¹æ³æ¥è§£å³ã"
+"对äºé£äºå
³èå° <emphasis>ç¹å®</emphasis> <literal>Session</literal>ï¼ä¹å°±æ¯å¨"
+"å个 <literal>Session</literal> çèå´å
ï¼ä¸ç对象æ¥è¯´ï¼è¿ä¸¤ç§æ è¯çè¯ä¹æ¯ç"
+"ä»·çï¼ä¸æ°æ®åºæ è¯å¯¹åºç JVM æ è¯æ¯ç± Hibernate æ¥ä¿è¯çãä¸è¿ï¼å½åºç¨ç¨åºå¨"
+"两个ä¸åç session ä¸å¹¶å访é®å
·æå䏿ä¹
åæ è¯çä¸å¡å¯¹è±¡å®ä¾çæ¶åï¼è¿ä¸ªä¸å¡"
+"对象ç两个å®ä¾äºå®ä¸æ¯ä¸ç¸åçï¼ä» JVM è¯å«æ¥çï¼ãè¿ç§å²çªå¯ä»¥éè¿å¨åæ¥åæ"
+"äº¤çæ¶å使ç¨èªå¨çæ¬ååä¹è§é宿¹æ³æ¥è§£å³ã "
#. Tag: para
-#: transactions.xml:304
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This approach leaves Hibernate and the database to worry about concurrency. "
"It also provides the best scalability, since guaranteeing identity in single-"
@@ -498,15 +479,14 @@
"<literal>Session</literal>. Within a <literal>Session</literal> the "
"application can safely use <literal>==</literal> to compare objects."
msgstr ""
-"è¿ç§æ¹å¼æå
³äºå¹¶åç头ç¼é®é¢çç»äºHibernateåæ°æ®åºï¼ç±äºå¨å个线ç¨å
ï¼æä½å"
-"å
ä¸ç对象è¯å«ä¸ éè¦ä»£ä»·æè´µçé宿å
¶ä»æä¹ä¸ç忥ï¼å æ¤å®åæ¶å¯ä»¥æä¾æå¥½"
-"çå¯ä¼¸ç¼©æ§ãåªè¦å¨å个线ç¨åªææä¸ä¸ª <literal>Session</literal>ï¼åºç¨ç¨åºå°±ä¸"
-"éè¦åæ¥ä»»ä½ä¸å¡å¯¹è±¡ãå¨<literal>Session</literal> çèå´å
ï¼åºç¨ç¨åºå¯ä»¥æ¾å¿"
-"ç使ç¨<literal>==</literal>è¿è¡å¯¹è±¡æ¯è¾ã"
+"è¿ç§æ¹å¼æå
³äºå¹¶åç头ç¼é®é¢çç»äº Hibernate åæ°æ®åºï¼ç±äºå¨å个线ç¨å
ï¼æä½"
+"åå
ä¸ç对象è¯å«ä¸ éè¦ä»£ä»·æè´µçé宿å
¶ä»æä¹ä¸ç忥ï¼å æ¤å®åæ¶å¯ä»¥æä¾æ"
+"好çå¯ä¼¸ç¼©æ§ãåªè¦å¨å个线ç¨åªææä¸ä¸ª <literal>Session</literal>ï¼åºç¨ç¨åºå°±"
+"ä¸éè¦åæ¥ä»»ä½ä¸å¡å¯¹è±¡ãå¨ <literal>Session</literal> çèå´å
ï¼åºç¨ç¨åºå¯ä»¥"
+"æ¾å¿çä½¿ç¨ <literal>==</literal> è¿è¡å¯¹è±¡æ¯è¾ã "
#. Tag: para
-#: transactions.xml:313
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, an application that uses <literal>==</literal> outside of a "
"<literal>Session</literal> might produce unexpected results. This might "
@@ -529,30 +509,29 @@
"that this is not a Hibernate issue, but simply how Java object identity and "
"equality has to be implemented."
msgstr ""
-"ä¸è¿ï¼åºç¨ç¨åºå¨<literal>Session</literal>çå¤é¢ä½¿ç¨<literal>==</literal>è¿è¡"
-"对象æ¯è¾å¯è½ä¼ å¯¼è´æ æ³é¢æçç»æãå¨ä¸äºæ æ³é¢æçåºåï¼ä¾å¦ï¼å¦æä½ æä¸¤ä¸ªè±"
-"管对象å®ä¾æ¾è¿åä¸ä¸ª <literal>Set</literal>çæ¶åï¼å°±å¯è½åçãè¿ä¸¤ä¸ªå¯¹è±¡å®ä¾"
-"å¯è½æåä¸ä¸ªæ°æ®åºæ è¯ï¼ä¹å°±æ¯è¯´ï¼ ä»ä»¬ä»£è¡¨äºè¡¨çåä¸è¡æ°æ®ï¼ï¼ä»JVMæ è¯çå®"
-"ä¹ä¸æ¥è¯´ï¼å¯¹è±ç®¡ç对象èè¨ï¼Hibernateæ æ³ä¿è¯ä»ä»¬ ççJVMæ è¯ä¸è´ãå¼å人åå¿
"
-"é¡»è¦çæä¹
åç±»ç<literal>equals()</literal>æ¹æ³å <literal>hashCode()</"
-"literal> æ¹æ³ï¼ä»èå®ç°èªå®ä¹ç对象ç¸çè¯ä¹ãè¦åï¼ä¸è¦ä½¿ç¨æ°æ®åºæ è¯ æ¥å®ç°"
-"对象ç¸çï¼åºè¯¥ä½¿ç¨ä¸å¡é®å¼ï¼ç±å¯ä¸çï¼é常ä¸åç屿§ç»æãå½ä¸ä¸ªç¬æ¶å¯¹è±¡è¢«æ"
-"ä¹
åçæ¶ åï¼å®çæ°æ®åºæ è¯ä¼åçæ¹åã妿ä¸ä¸ªç¬æ¶å¯¹è±¡ï¼é常ä¹å
æ¬è±ç®¡å¯¹è±¡å®"
-"ä¾ï¼è¢«æ¾å
¥ä¸ 个<literal>Set</literal>ï¼æ¹åå®çhashcodeä¼å¯¼è´ä¸è¿ä¸ª"
-"<literal>Set</literal>çå
³ç³»ä¸æãè½ ç¶ä¸å¡é®å¼ç屿§ä¸è±¡æ°æ®åºä¸»é®é£æ ·ç¨³å®ä¸"
-"åï¼ä½æ¯ä½ åªéè¦ä¿è¯å¨åä¸ä¸ª<literal>Set</literal> ä¸çå¯¹è±¡å±æ§çç¨³å®æ§å°±è¶³å¤"
-"äºã请å°Hibernateç½ç«å»å¯»æ±è¿ä¸ªé®é¢æ´å¤ç详ç»ç讨论ã请注æï¼è¿ä¸æ¯ä¸ 个æå
³"
-"Hibernateçé®é¢ï¼èä»
ä»
æ¯ä¸ä¸ªå
³äºJava对象æ è¯åå¤çè¡ä¸ºå¦ä½å®ç°çé®é¢ã"
+"ä¸è¿ï¼åºç¨ç¨åºå¨ <literal>Session</literal> çå¤é¢ä½¿ç¨ <literal>==</literal> "
+"è¿è¡å¯¹è±¡æ¯è¾å¯è½ä¼ å¯¼è´æ æ³é¢æçç»æãå¨ä¸äºæ æ³é¢æçåºåï¼ä¾å¦ï¼å¦æä½ æä¸¤"
+"个è±ç®¡å¯¹è±¡å®ä¾æ¾è¿åä¸ä¸ª <literal>Set</literal> çæ¶åï¼å°±å¯è½åçãè¿ä¸¤ä¸ªå¯¹"
+"象å®ä¾å¯è½æåä¸ä¸ªæ°æ®åºæ è¯ï¼ä¹å°±æ¯è¯´ï¼ ä»ä»¬ä»£è¡¨äºè¡¨çåä¸è¡æ°æ®ï¼ï¼ä» JVM "
+"æ è¯çå®ä¹ä¸æ¥è¯´ï¼å¯¹è±ç®¡ç对象èè¨ï¼Hibernate æ æ³ä¿è¯ä»ä»¬ çç JVM æ è¯ä¸"
+"è´ãå¼å人åå¿
é¡»è¦çæä¹
åç±»ç <literal>equals()</literal> æ¹æ³å "
+"<literal>hashCode()</literal> æ¹æ³ï¼ä»èå®ç°èªå®ä¹ç对象ç¸çè¯ä¹ãè¦åï¼ä¸è¦"
+"ä½¿ç¨æ°æ®åºæ è¯æ¥å®ç°å¯¹è±¡ç¸çï¼åºè¯¥ä½¿ç¨ä¸å¡é®å¼ï¼ç±å¯ä¸çï¼é常ä¸åç屿§ç»"
+"æãå½ä¸ä¸ªç¬æ¶å¯¹è±¡è¢«æä¹
åçæ¶åï¼å®çæ°æ®åºæ è¯ä¼åçæ¹åã妿ä¸ä¸ªç¬æ¶å¯¹è±¡"
+"ï¼é常ä¹å
æ¬è±ç®¡å¯¹è±¡å®ä¾ï¼è¢«æ¾å
¥ä¸ä¸ª <literal>Set</literal>ï¼æ¹åå®ç "
+"hashcode ä¼å¯¼è´ä¸è¿ä¸ª <literal>Set</literal> çå
³ç³»ä¸æãè½ ç¶ä¸å¡é®å¼ç屿§"
+"ä¸è±¡æ°æ®åºä¸»é®é£æ ·ç¨³å®ä¸åï¼ä½æ¯ä½ åªéè¦ä¿è¯å¨åä¸ä¸ª <literal>Set</literal> "
+"ä¸çå¯¹è±¡å±æ§çç¨³å®æ§å°±è¶³å¤äºãè¯·å° Hibernate ç½ç«å»å¯»æ±è¿ä¸ªé®é¢æ´å¤ç详ç»ç讨"
+"论ã请注æï¼è¿ä¸æ¯ä¸ä¸ªæå
³ Hibernate çé®é¢ï¼èä»
ä»
æ¯ä¸ä¸ªå
³äº Java 对象æ è¯å"
+"å¤çè¡ä¸ºå¦ä½å®ç°çé®é¢ã "
#. Tag: title
-#: transactions.xml:334
#, no-c-format
msgid "Common issues"
msgstr "常è§é®é¢"
#. Tag: para
-#: transactions.xml:336
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not use the anti-patterns <emphasis>session-per-user-session</emphasis> "
"or <emphasis>session-per-application</emphasis> (there are, however, rare "
@@ -560,14 +539,13 @@
"within the recommended patterns, so ensure that you understand the "
"implications before making a design decision:"
msgstr ""
-"å³ä¸è¦ä½¿ç¨å模å¼<emphasis>session-per-user-session</emphasis>æè
<emphasis> "
-"session-per-application</emphasis>ï¼å½ç¶ï¼è¿ä¸ªè§å®å 乿²¡æä¾å¤ï¼ã请注æï¼ ä¸"
-"è¿°ä¸äºé®é¢å¯è½ä¹ä¼åºç°å¨æä»¬æ¨èçæ¨¡å¼ä¸ï¼å¨ä½ ä½åºæä¸ªè®¾è®¡å³å®ä¹åï¼è¯·å¡å¿
ç"
-"解该模å¼çåºç¨åæã"
+"å³ä¸è¦ä½¿ç¨åæ¨¡å¼ <emphasis>session-per-user-session</emphasis> æè
"
+"<emphasis> session-per-application</emphasis>ï¼å½ç¶ï¼è¿ä¸ªè§å®å 乿²¡æä¾å¤ï¼ã"
+"请注æï¼ä¸è¿°ä¸äºé®é¢å¯è½ä¹ä¼åºç°å¨æä»¬æ¨èçæ¨¡å¼ä¸ï¼å¨ä½ ä½åºæä¸ªè®¾è®¡å³å®ä¹"
+"åï¼è¯·å¡å¿
ç解该模å¼çåºç¨åæã "
#. Tag: para
-#: transactions.xml:345
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <literal>Session</literal> is not thread-safe. Things that work "
"concurrently, like HTTP requests, session beans, or Swing workers, will "
@@ -578,17 +556,16 @@
"that clicks reload fast enough can use the same <literal>Session</literal> "
"in two concurrently running threads."
msgstr ""
-"<literal>Session</literal> 对象æ¯é线ç¨å®å
¨çã妿ä¸ä¸ª<literal>Session</"
-"literal> å®ä¾å
许å
±äº«çè¯ï¼é£äºæ¯æå¹¶åè¿è¡çä¸ä¸ï¼ä¾å¦HTTP requestï¼session "
-"beans,æè
æ¯ Swing workersï¼å°ä¼å¯¼è´åºç°èµæºäºç¨ï¼race conditionï¼ã妿å¨"
-"<literal>HttpSession</literal>䏿 Hibernate ç<literal>Session</literal>çè¯"
-"ï¼ç¨å讨论ï¼ï¼ä½ åºè¯¥èèåæ¥è®¿é®ä½ çHttp sessionã å¦åï¼åªè¦ç¨æ·è¶³å¤å¿«çç¹å»"
-"æµè§å¨çâå·æ°âï¼å°±ä¼å¯¼è´ä¸¤ä¸ªå¹¶åè¿è¡çº¿ç¨ä½¿ç¨åä¸ä¸ª <literal>Session</"
-"literal>ã"
+"<literal>Session</literal> 对象æ¯é线ç¨å®å
¨çã妿ä¸ä¸ª <literal>Session</"
+"literal> å®ä¾å
许å
±äº«çè¯ï¼é£äºæ¯æå¹¶åè¿è¡çä¸ä¸ï¼ä¾å¦ HTTP requestï¼"
+"session beans æè
æ¯ Swing workersï¼å°ä¼å¯¼è´åºç°èµæºäºç¨ï¼race conditionï¼ã"
+"å¦æå¨ <literal>HttpSession</literal> 䏿 Hibernate ç <literal>Session</"
+"literal> çè¯ï¼ç¨å讨论ï¼ï¼ä½ åºè¯¥èèåæ¥è®¿é®ä½ ç Http sessionã å¦åï¼åªè¦ç¨"
+"æ·è¶³å¤å¿«çç¹å»æµè§å¨çâå·æ°âï¼å°±ä¼å¯¼è´ä¸¤ä¸ªå¹¶åè¿è¡çº¿ç¨ä½¿ç¨åä¸ä¸ª "
+"<literal>Session</literal>ã "
#. Tag: para
-#: transactions.xml:356
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An exception thrown by Hibernate means you have to rollback your database "
"transaction and close the <literal>Session</literal> immediately (this is "
@@ -600,15 +577,14 @@
"Usually this is not a problem, because exceptions are not recoverable and "
"you will have to start over after rollback anyway."
msgstr ""
-"ä¸ä¸ªç±Hibernateæåºçå¼å¸¸æå³çä½ å¿
é¡»ç«å³åæ»æ°æ®åºäºå¡ï¼å¹¶ç«å³å
³é"
-"<literal>Session</literal> ï¼ç¨åä¼å±å¼è®¨è®ºï¼ãå¦æä½ ç<literal>Session</"
-"literal>ç»å®å°ä¸ä¸ªåºç¨ç¨åºä¸ï¼ä½ å¿
é¡»åæ¢è¯¥åºç¨ç¨åºãåæ»æ°æ®åºäºå¡å¹¶ä¸ä¼æä½ "
-"çä¸å¡å¯¹è±¡éåå°äºå¡å¯å¨æ¶åçç¶æãè¿ æå³çæ°æ®åºç¶æåä¸å¡å¯¹è±¡ç¶æä¸åæ¥ã"
-"é常æ
åµä¸ï¼è¿ä¸æ¯ä»ä¹é®é¢ï¼å 为å¼å¸¸æ¯ä¸å¯ æ¢å¤ç,ä½ å¿
é¡»å¨åæ»ä¹åéæ°å¼å§æ§"
-"è¡ã"
+"ä¸ä¸ªç± Hibernate æåºçå¼å¸¸æå³çä½ å¿
é¡»ç«å³åæ»æ°æ®åºäºå¡ï¼å¹¶ç«å³å
³é "
+"<literal>Session</literal>ï¼ç¨åä¼å±å¼è®¨è®ºï¼ãå¦æä½ ç <literal>Session</"
+"literal> ç»å®å°ä¸ä¸ªåºç¨ç¨åºä¸ï¼ä½ å¿
é¡»åæ¢è¯¥åºç¨ç¨åºãåæ»æ°æ®åºäºå¡å¹¶ä¸ä¼æä½ "
+"çä¸å¡å¯¹è±¡éåå°äºå¡å¯å¨æ¶åçç¶æãè¿æå³çæ°æ®åºç¶æåä¸å¡å¯¹è±¡ç¶æä¸åæ¥ã"
+"é常æ
åµä¸ï¼è¿ä¸æ¯ä»ä¹é®é¢ï¼å 为å¼å¸¸æ¯ä¸å¯æ¢å¤çï¼ä½ å¿
é¡»å¨åæ»ä¹åéæ°å¼å§æ§"
+"è¡ã "
#. Tag: para
-#: transactions.xml:368
#, fuzzy, no-c-format
msgid ""
"The <literal>Session</literal> caches every object that is in a persistent "
@@ -617,28 +593,26 @@
"until you get an OutOfMemoryException. One solution is to call <literal>clear"
"()</literal> and <literal>evict()</literal> to manage the <literal>Session</"
"literal> cache, but you should consider a Stored Procedure if you need mass "
-"data operations. Some solutions are shown in <xref linkend=\"batch\"/>. "
+"data operations. Some solutions are shown in <xref linkend=\"batch\" />. "
"Keeping a <literal>Session</literal> open for the duration of a user session "
"also means a higher probability of stale data."
msgstr ""
-"<literal>Session</literal> ç¼åäºå¤äºæä¹
åç¶æçæ¯ä¸ªå¯¹è±¡ï¼Hibernateä¼çè§å"
-"æ£æ¥èæ°æ®ï¼ã è¿æå³çï¼å¦æä½ 让<literal>Session</literal>æå¼å¾é¿ä¸æ®µæ¶é´ï¼"
-"ææ¯ä»
ä»
è½½å
¥äºè¿å¤çæ°æ®ï¼ <literal>Session</literal>å ç¨çå
åä¼ä¸ç´å¢é¿ï¼ç´"
-"å°æåºOutOfMemoryExceptionå¼å¸¸ãè¿ä¸ª é®é¢çä¸ä¸ªè§£å³æ¹æ³æ¯è°ç¨<literal>clear()"
-"</literal> å<literal>evict()</literal>æ¥ç®¡ç <literal>Session</literal>çç¼"
-"åï¼ä½æ¯å¦æä½ éè¦å¤§æ¹éæ°æ®æä½çè¯ï¼æå¥½èè 使ç¨åå¨è¿ç¨ãå¨<xref linkend="
-"\"batch\"/>䏿ä¸äºè§£å³æ¹æ¡ãå¨ç¨æ·ä¼è¯æé´ä¸ç´ä¿æ <literal>Session</"
-"literal>æå¼ä¹æå³çåºç°èæ°æ®çå¯è½æ§å¾é«ã"
+"<literal>Session</literal> ç¼åäºå¤äºæä¹
åç¶æçæ¯ä¸ªå¯¹è±¡ï¼Hibernate ä¼çè§å"
+"æ£æ¥èæ°æ®ï¼ã è¿æå³çï¼å¦æä½ 让 <literal>Session</literal> æå¼å¾é¿ä¸æ®µæ¶"
+"é´ï¼ææ¯ä»
ä»
è½½å
¥äºè¿å¤çæ°æ®ï¼ <literal>Session</literal> å ç¨çå
åä¼ä¸ç´å¢"
+"é¿ï¼ç´å°æåº OutOfMemoryException å¼å¸¸ãè¿ä¸ª é®é¢çä¸ä¸ªè§£å³æ¹æ³æ¯è°ç¨ "
+"<literal>clear()</literal> å <literal>evict()</literal> æ¥ç®¡ç "
+"<literal>Session</literal> çç¼åï¼ä½æ¯å¦æä½ éè¦å¤§æ¹éæ°æ®æä½çè¯ï¼æå¥½èè"
+"使ç¨åå¨è¿ç¨ãå¨<xref linkend=\"batch\"/>䏿ä¸äºè§£å³æ¹æ¡ãå¨ç¨æ·ä¼è¯æé´ä¸ç´"
+"ä¿æ <literal>Session</literal> æå¼ä¹æå³çåºç°èæ°æ®çå¯è½æ§å¾é«ã "
#. Tag: title
-#: transactions.xml:386
#, no-c-format
msgid "Database transaction demarcation"
msgstr "æ°æ®åºäºå¡å£°æ"
#. Tag: para
-#: transactions.xml:388
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Database, or system, transaction boundaries are always necessary. No "
"communication with the database can occur outside of a database transaction "
@@ -650,14 +624,13 @@
"to perform better than many small transactions, even for reading data."
msgstr ""
"æ°æ®åºï¼æè
ç³»ç»ï¼äºå¡çå£°ææ»æ¯å¿
é¡»çã卿°æ®åºäºå¡ä¹å¤ï¼å°±æ æ³åæ°æ®åºé讯"
-"ï¼è¿å¯è½ä¼è®©é£äºä¹ æ¯äº èªå¨æäº¤äºå¡æ¨¡å¼çå¼å人åæå°è¿·æï¼ãæ°¸è¿ä½¿ç¨æ¸
æ°çäº"
+"ï¼è¿å¯è½ä¼è®©é£äºä¹ æ¯äºèªå¨æäº¤äºå¡æ¨¡å¼çå¼å人åæå°è¿·æï¼ãæ°¸è¿ä½¿ç¨æ¸
æ°çäº"
"å¡å£°æï¼å³ä½¿åªè¯»æä½ä¹æ¯å¦æ¤ãè¿è¡ æ¾å¼çäºå¡å£°æå¹¶ä¸æ»æ¯éè¦çï¼è¿åå³äºä½ ç"
"äºå¡é离级å«åæ°æ®åºçè½åï¼ä½ä¸ç®¡æä¹è¯´ï¼å£°æäºå¡æ»å½æçæ 害ãå½ç¶ï¼ä¸ä¸ªå"
-"ç¬çæ°æ®åºäºå¡æ»æ¯æ¯å¾å¤çç¢çäºå¡æ§è½æ´å¥½ï¼å³æ¶å¯¹è¯»æ°æ®èè¨ä¹æ¯ä¸æ ·ã"
+"ç¬çæ°æ®åºäºå¡æ»æ¯æ¯å¾å¤çç¢çäºå¡æ§è½æ´å¥½ï¼å³æ¶å¯¹è¯»æ°æ®èè¨ä¹æ¯ä¸æ ·ã "
#. Tag: para
-#: transactions.xml:398
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate application can run in non-managed (i.e., standalone, simple "
"Web- or Swing applications) and managed J2EE environments. In a non-managed "
@@ -669,17 +642,16 @@
"descriptors of EJB session beans, for example). Programmatic transaction "
"demarcation is then no longer necessary."
msgstr ""
-"ä¸ä¸ªHibernateåºç¨ç¨åºå¯ä»¥è¿è¡å¨éæç®¡ç¯å¢ä¸ï¼ä¹å°±æ¯ç¬ç«è¿è¡çåºç¨ç¨åºï¼ç®å"
-"Webåºç¨ç¨åºï¼ æè
Swingå¾å½¢æ¡é¢åºç¨ç¨åºï¼ï¼ä¹å¯ä»¥è¿è¡å¨æç®¡çJ2EEç¯å¢ä¸ãå¨ä¸"
-"个éæç®¡ç¯å¢ä¸ï¼Hibernate é常èªå·±è´è´£ç®¡çæ°æ®åºè¿æ¥æ± ãåºç¨ç¨åºå¼å人åå¿
é¡»"
-"æå·¥è®¾ç½®äºå¡å£°æï¼æ¢å¥è¯è¯´ï¼å°±æ¯æå·¥å¯ å¨ï¼æäº¤ï¼æè
åæ»æ°æ®åºäºå¡ãä¸ä¸ªæç®¡"
-"çç¯å¢é常æä¾äºå®¹å¨ç®¡çäºå¡(CMT)ï¼ä¾å¦äºå¡è£
é
éè¿å¯å£° æçæ¹å¼å®ä¹å¨EJB "
-"session beansçé¨ç½²æè¿°ç¬¦ä¸ãå¯ç¼ç¨å¼äºå¡å£°æä¸åéè¦ï¼å³ä½¿æ¯ "
-"<literal>Session</literal> ç忥ä¹å¯ä»¥èªå¨å®æã"
+"ä¸ä¸ª Hibernate åºç¨ç¨åºå¯ä»¥è¿è¡å¨éæç®¡ç¯å¢ä¸ï¼ä¹å°±æ¯ç¬ç«è¿è¡çåºç¨ç¨åºï¼ç®"
+"å Web åºç¨ç¨åºï¼æè
Swingå¾å½¢æ¡é¢åºç¨ç¨åºï¼ï¼ä¹å¯ä»¥è¿è¡å¨æç®¡ç J2EE ç¯å¢"
+"ä¸ãå¨ä¸ä¸ªéæç®¡ç¯å¢ä¸ï¼Hibernate é常èªå·±è´è´£ç®¡çæ°æ®åºè¿æ¥æ± ãåºç¨ç¨åºå¼å"
+"人åå¿
é¡»æå·¥è®¾ç½®äºå¡å£°æï¼æ¢å¥è¯è¯´ï¼å°±æ¯æå·¥å¯ å¨ï¼æäº¤ï¼æè
åæ»æ°æ®åºäºå¡ã"
+"ä¸ä¸ªæç®¡çç¯å¢é常æä¾äºå®¹å¨ç®¡çäºå¡ï¼CMTï¼ï¼ä¾å¦äºå¡è£
é
éè¿å¯å£°æçæ¹å¼å®ä¹"
+"å¨ EJB session beans çé¨ç½²æè¿°ç¬¦ä¸ãå¯ç¼ç¨å¼äºå¡å£°æä¸åéè¦ï¼å³ä½¿æ¯ "
+"<literal>Session</literal> ç忥ä¹å¯ä»¥èªå¨å®æã "
#. Tag: para
-#: transactions.xml:408
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"However, it is often desirable to keep your persistence layer portable "
"between non-managed resource-local environments, and systems that can rely "
@@ -689,98 +661,65 @@
"system of your deployment environment. This API is actually optional, but we "
"strongly encourage its use unless you are in a CMT session bean."
msgstr ""
-"让æä¹
å±å
·å¤å¯ç§»æ¤æ§æ¯äººä»¬ççæ³,è¿ç§ç§»æ¤åçå¨éæç®¡çæ¬å°èµæºç¯å¢ï¼ä¸ä¾èµ"
-"JTA使¯ä½¿ç¨BMTèéCMTçç³»ç»ä¹é´ãå¨ä¸¤ç§æ
åµä¸ä½ é½å¯ä»¥ä½¿ç¨ç¼ç¨å¼çäºå¡ç®¡çã"
-"Hibernateæä¾äºä¸å¥ç§°ä¸º<literal>Transaction</literal>çå°è£
APIï¼ ç¨æ¥æä½ çé¨"
-"ç½²ç¯å¢ä¸çæ¬å°äºå¡ç®¡çç³»ç»è½¬æ¢å°Hibernateäºå¡ä¸ãè¿ä¸ªAPIæ¯å¯éçï¼ä½æ¯æä»¬å¼º"
-"ç æ¨èä½ ä½¿ç¨ï¼é¤éä½ ç¨CMT session beanã"
+"让æä¹
å±å
·å¤å¯ç§»æ¤æ§æ¯äººä»¬ççæ³,è¿ç§ç§»æ¤åçå¨éæç®¡çæ¬å°èµæºç¯å¢ï¼ä¸ä¾èµ "
+"JTA 使¯ä½¿ç¨ BMT èé CMT çç³»ç»ä¹é´ãå¨ä¸¤ç§æ
åµä¸ä½ é½å¯ä»¥ä½¿ç¨ç¼ç¨å¼çäºå¡ç®¡"
+"çãHibernate æä¾äºä¸å¥ç§°ä¸º <literal>Transaction</literal> çå°è£
APIï¼ ç¨æ¥"
+"æä½ çé¨ç½²ç¯å¢ä¸çæ¬å°äºå¡ç®¡çç³»ç»è½¬æ¢å° Hibernate äºå¡ä¸ãè¿ä¸ª API æ¯å¯é"
+"çï¼ä½æ¯æä»¬å¼ºçæ¨èä½ ä½¿ç¨ï¼é¤éä½ ç¨ CMT session beanã "
#. Tag: para
-#: transactions.xml:417
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Ending a <literal>Session</literal> usually involves four distinct phases:"
-msgstr "é常æ
åµä¸ï¼ç»æ <literal>Session</literal> å
å«äºå个ä¸åçé¶æ®µ:"
+msgstr "é常æ
åµä¸ï¼ç»æ <literal>Session</literal> å
å«äºå个ä¸åçé¶æ®µï¼ "
#. Tag: para
-#: transactions.xml:423
#, no-c-format
msgid "flush the session"
-msgstr "忥session(flush,å·åºå°ç£çï¼"
+msgstr "忥 sessionï¼flushï¼å·åºå°ç£çï¼"
#. Tag: para
-#: transactions.xml:428
#, no-c-format
msgid "commit the transaction"
msgstr "æäº¤äºå¡"
#. Tag: para
-#: transactions.xml:433
#, no-c-format
msgid "close the session"
-msgstr "å
³ésession"
+msgstr "å
³é session"
#. Tag: para
-#: transactions.xml:438
#, no-c-format
msgid "handle exceptions"
msgstr "å¤çå¼å¸¸"
#. Tag: para
-#: transactions.xml:444
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We discussed Flushing the session earlier, so we will now have a closer look "
"at transaction demarcation and exception handling in both managed and non-"
"managed environments."
msgstr ""
-"sessionç忥(flush,å·åºï¼åé¢å·²ç»è®¨è®ºè¿äºï¼æä»¬ç°å¨è¿ä¸æ¥èå¯å¨æç®¡åéæç®¡"
-"ç¯å¢ä¸çäºå¡å£°æåå¼å¸¸å¤çã"
+"session ç忥ï¼flushï¼å·åºï¼åé¢å·²ç»è®¨è®ºè¿äºï¼æä»¬ç°å¨è¿ä¸æ¥èå¯å¨æç®¡åéæ"
+"管ç¯å¢ä¸çäºå¡å£°æåå¼å¸¸å¤çã "
#. Tag: title
-#: transactions.xml:451
#, no-c-format
msgid "Non-managed environment"
msgstr "éæç®¡ç¯å¢"
#. Tag: para
-#: transactions.xml:453
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If a Hibernate persistence layer runs in a non-managed environment, database "
"connections are usually handled by simple (i.e., non-DataSource) connection "
"pools from which Hibernate obtains connections as needed. The session/"
"transaction handling idiom looks like this:"
msgstr ""
-"妿Hibernatæä¹
å±è¿è¡å¨ä¸ä¸ªéæç®¡ç¯å¢ä¸ï¼æ°æ®åºè¿æ¥é常ç±Hibernateçç®åï¼å³"
-"éDataSource)è¿æ¥æ± æºå¶ æ¥å¤çãsession/transactionå¤çæ¹å¼å¦ä¸æç¤ºï¼"
+"妿 Hibernat æä¹
å±è¿è¡å¨ä¸ä¸ªéæç®¡ç¯å¢ä¸ï¼æ°æ®åºè¿æ¥éå¸¸ç± Hibernate çç®å"
+"ï¼å³é DataSourceï¼è¿æ¥æ± æºå¶ æ¥å¤çãsession/transaction å¤çæ¹å¼å¦ä¸æç¤ºï¼ "
-#. Tag: programlisting
-#: transactions.xml:460
-#, no-c-format
-msgid ""
-"<![CDATA[// Non-managed environment idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:462
#, fuzzy, no-c-format
msgid ""
"You do not have to <literal>flush()</literal> the <literal>Session</literal> "
@@ -791,45 +730,25 @@
"literal> is that the JDBC connection will be relinquished by the session. "
"This Java code is portable and runs in both non-managed and JTA environments."
msgstr ""
-"ä½ ä¸éè¦æ¾å¼<literal>flush()</literal><literal>Session</literal> - 对"
-"<literal>commit()</literal>çè°ç¨ä¼èªå¨è§¦åsessionç忥(åå³äºsessionç"
-"<xref linkend=\"objectstate-flushing\">FlushMode</xref>)ãè°ç¨ <literal>close"
-"()</literal> æ å¿sessionçç»æã<literal>close()</literal>æ¹æ³éè¦çæç¤ºæ¯ï¼"
-"<literal>session</literal>éæ¾äºJDBCè¿æ¥ãè¿æ®µJava代ç å¨éæç®¡ç¯å¢ä¸åJTAç¯å¢"
-"ä¸é½å¯ä»¥è¿è¡ã"
+"ä½ ä¸éè¦æ¾å¼ <literal>flush()</literal> <literal>Session</literal> â 对 "
+"<literal>commit()</literal> çè°ç¨ä¼èªå¨è§¦å session ç忥ï¼åå³äº session "
+"ç <xref linkend=\"objectstate-flushing\" />ï¼ãè°ç¨ <literal>close()</"
+"literal> æ å¿ session çç»æã<literal>close()</literal> æ¹æ³éè¦çæç¤ºæ¯ï¼"
+"<literal>session</literal> éæ¾äº JDBC è¿æ¥ãè¿æ®µ Java 代ç å¨éæç®¡ç¯å¢ä¸å "
+"JTA ç¯å¢ä¸é½å¯ä»¥è¿è¡ã"
#. Tag: para
-#: transactions.xml:471
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"As outlined earlier, a much more flexible solution is Hibernate's built-in "
"\"current session\" context management:"
msgstr ""
-"æ´å çµæ´»çæ¹æ¡æ¯Hibernateå
ç½®ç\"current session\"ä¸ä¸æç®¡çï¼åæå·²ç»è®²è¿ï¼"
+"æ´å çµæ´»çæ¹æ¡æ¯ Hibernate å
ç½®ç \"current session\" ä¸ä¸æç®¡çï¼åæå·²ç»è®²"
+"è¿ï¼ "
-#. Tag: programlisting
-#: transactions.xml:476
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
-"try {\n"
-" factory.getCurrentSession().beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" factory.getCurrentSession().getTransaction().commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" factory.getCurrentSession().getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:478
-#, fuzzy, no-c-format
-msgid ""
"You will not see these code snippets in a regular application; fatal "
"(system) exceptions should always be caught at the \"top\". In other words, "
"the code that executes Hibernate calls in the persistence layer, and the "
@@ -840,15 +759,14 @@
"this chapter."
msgstr ""
"ä½ å¾å¯è½ä»æªå¨ä¸ä¸ªé常çåºç¨ç¨åºçä¸å¡ä»£ç ä¸è§è¿è¿æ ·ç代ç çæï¼è´å½çï¼ç³»"
-"ç»ï¼å¼å¸¸åºè¯¥æ»æ¯ å¨åºç¨ç¨åºâé¡¶å±â被æè·ãæ¢å¥è¯è¯´ï¼æ§è¡Hibernateè°ç¨ç代ç "
-"ï¼å¨æä¹
å±ï¼åå¤ç <literal>RuntimeException</literal>å¼å¸¸ç代ç ï¼é常åªè½æ¸
"
-"çåéåºåºç¨ç¨åºï¼åºè¯¥å¨ä¸å çåºç¨ç¨åºé»è¾å±ãHibernateçå½åä¸ä¸æç®¡çå¯ä»¥"
-"æå¤§å°ç®åè¿ä¸è®¾è®¡ï¼ä½ ææçä¸åå°±æ¯<literal>SessionFactory</literal>ã å¼å¸¸"
-"å¤çå°å¨æ¬ç« ç¨åè¿è¡è®¨è®ºã"
+"ç»ï¼å¼å¸¸åºè¯¥æ»æ¯ å¨åºç¨ç¨åºâé¡¶å±â被æè·ãæ¢å¥è¯è¯´ï¼æ§è¡ Hibernate è°ç¨ç代ç "
+"ï¼å¨æä¹
å±ï¼åå¤ç <literal>RuntimeException</literal> å¼å¸¸ç代ç ï¼é常åªè½æ¸
"
+"çåéåºåºç¨ç¨åºï¼åºè¯¥å¨ä¸å çåºç¨ç¨åºé»è¾å±ãHibernate çå½åä¸ä¸æç®¡çå¯ä»¥"
+"æå¤§å°ç®åè¿ä¸è®¾è®¡ï¼ä½ ææçä¸åå°±æ¯ <literal>SessionFactory</literal>ãå¼å¸¸"
+"å¤çå°å¨æ¬ç« ç¨åè¿è¡è®¨è®ºã "
#. Tag: para
-#: transactions.xml:488
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should select <literal>org.hibernate.transaction.JDBCTransactionFactory</"
"literal>, which is the default, and for the second example select <literal>"
@@ -856,19 +774,17 @@
"current_session_context_class</literal>."
msgstr ""
"请注æï¼ä½ åºè¯¥éæ© <literal>org.hibernate.transaction."
-"JDBCTransactionFactory</literal> (è¿æ¯é»è®¤é项)ï¼å¯¹ç¬¬äºä¸ªä¾åæ¥è¯´ï¼"
-"<literal>hibernate.current_session_context_class</literal>åºè¯¥æ¯<literal>"
-"\"thread\"</literal>"
+"JDBCTransactionFactory</literal> ï¼è¿æ¯é»è®¤é项ï¼ï¼å¯¹ç¬¬äºä¸ªä¾åæ¥è¯´ï¼"
+"<literal>hibernate.current_session_context_class</literal>åºè¯¥æ¯ <literal>"
+"\"thread\"</literal>ã"
#. Tag: title
-#: transactions.xml:497
#, no-c-format
msgid "Using JTA"
-msgstr "使ç¨JTA"
+msgstr "ä½¿ç¨ JTA"
#. Tag: para
-#: transactions.xml:499
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If your persistence layer runs in an application server (for example, behind "
"EJB session beans), every datasource connection obtained by Hibernate will "
@@ -876,108 +792,45 @@
"standalone JTA implementation and use it without EJB. Hibernate offers two "
"strategies for JTA integration."
msgstr ""
-"å¦æä½ çæä¹
å±è¿è¡å¨ä¸ä¸ªåºç¨æå¡å¨ä¸ï¼ä¾å¦ï¼å¨EJB session beansçåé¢ï¼ï¼"
-"Hibernateè·å çæ¯ä¸ªæ°æ®æºè¿æ¥å°èªå¨æä¸ºå
¨å±JTAäºå¡çä¸é¨åã ä½ å¯ä»¥å®è£
ä¸ä¸ª"
-"ç¬ç«çJTAå®ç°ï¼ä½¿ç¨å®èä¸ä½¿ç¨EJBãHibernateæä¾äºä¸¤ç§çç¥è¿è¡JTAéæã"
+"å¦æä½ çæä¹
å±è¿è¡å¨ä¸ä¸ªåºç¨æå¡å¨ä¸ï¼ä¾å¦ï¼å¨ EJB session beans çåé¢ï¼ï¼"
+"Hibernate è·åçæ¯ä¸ªæ°æ®æºè¿æ¥å°èªå¨æä¸ºå
¨å± JTA äºå¡çä¸é¨åãä½ å¯ä»¥å®è£
ä¸ä¸ª"
+"ç¬ç«ç JTA å®ç°ï¼ä½¿ç¨å®èä¸ä½¿ç¨ EJBãHibernate æä¾äºä¸¤ç§çç¥è¿è¡ JTA éæã "
#. Tag: para
-#: transactions.xml:506
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you use bean-managed transactions (BMT), Hibernate will tell the "
"application server to start and end a BMT transaction if you use the "
"<literal>Transaction</literal> API. The transaction management code is "
"identical to the non-managed environment."
msgstr ""
-"å¦æä½ ä½¿ç¨bean管çäºå¡ï¼BMTï¼ï¼å¯ä»¥éè¿ä½¿ç¨Hibernateç <literal>Transaction</"
-"literal> APIæ¥åè¯ åºç¨æå¡å¨å¯å¨åç»æBMTäºå¡ãå æ¤ï¼äºå¡ç®¡ç代ç åå¨éæç®¡"
-"ç¯å¢ä¸æ¯ä¸æ ·çã"
+"å¦æä½ ä½¿ç¨ bean 管çäºå¡ï¼BMTï¼ï¼å¯ä»¥éè¿ä½¿ç¨ Hibernate ç "
+"<literal>Transaction</literal> API æ¥åè¯åºç¨æå¡å¨å¯å¨åç»æ BMT äºå¡ãå "
+"æ¤ï¼äºå¡ç®¡ç代ç åå¨éæç®¡ç¯å¢ä¸æ¯ä¸æ ·çã "
-#. Tag: programlisting
-#: transactions.xml:512
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom\n"
-"Session sess = factory.openSession();\n"
-"Transaction tx = null;\n"
-"try {\n"
-" tx = sess.beginTransaction();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" if (tx != null) tx.rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:514
-#, fuzzy, no-c-format
-msgid ""
"If you want to use a transaction-bound <literal>Session</literal>, that is, "
"the <literal>getCurrentSession()</literal> functionality for easy context "
"propagation, use the JTA <literal>UserTransaction</literal> API directly:"
msgstr ""
-"å¦æä½ å¸æä½¿ç¨ä¸äºå¡ç»å®ç<literal>Session</literal>ï¼ä¹å°±æ¯ä½¿ç¨"
-"<literal>getCurrentSession()</literal>æ¥ç®åä¸ä¸æç®¡çï¼ä½ å°ä¸å¾ä¸ç´æ¥ä½¿ç¨"
-"JTA <literal>UserTransaction</literal>APIã"
+"å¦æä½ å¸æä½¿ç¨ä¸äºå¡ç»å®ç <literal>Session</literal>ï¼ä¹å°±æ¯ä½¿ç¨ "
+"<literal>getCurrentSession()</literal> æ¥ç®åä¸ä¸æç®¡çï¼ä½ å°ä¸å¾ä¸ç´æ¥ä½¿ç¨ "
+"JTA <literal>UserTransaction</literal> APIã "
-#. Tag: programlisting
-#: transactions.xml:520
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// BMT idiom with getCurrentSession()\n"
-"try {\n"
-" UserTransaction tx = (UserTransaction)new InitialContext()\n"
-" .lookup(\"java:comp/UserTransaction\");\n"
-"\n"
-" tx.begin();\n"
-"\n"
-" // Do some work on Session bound to transaction\n"
-" factory.getCurrentSession().load(...);\n"
-" factory.getCurrentSession().persist(...);\n"
-"\n"
-" tx.commit();\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" tx.rollback();\n"
-" throw e; // or display error message\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:522
-#, fuzzy, no-c-format
-msgid ""
"With CMT, transaction demarcation is completed in session bean deployment "
"descriptors, not programmatically. The code is reduced to:"
msgstr ""
-"å¨CMTæ¹å¼ä¸ï¼äºå¡å£°ææ¯å¨session beançé¨ç½²æè¿°ç¬¦ä¸ï¼èä¸éè¦ç¼ç¨ã å æ¤ï¼ä»£"
-"ç 被ç®å为:"
+"å¨ CMT æ¹å¼ä¸ï¼äºå¡å£°ææ¯å¨ session bean çé¨ç½²æè¿°ç¬¦ä¸ï¼èä¸éè¦ç¼ç¨ãå æ¤ï¼"
+"代ç 被ç®å为ï¼"
-#. Tag: programlisting
-#: transactions.xml:527
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// CMT idiom\n"
-" Session sess = factory.getCurrentSession();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:529
-#, fuzzy, no-c-format
-msgid ""
"In a CMT/EJB, even rollback happens automatically. An unhandled "
"<literal>RuntimeException</literal> thrown by a session bean method tells "
"the container to set the global transaction to rollback. <emphasis>You do "
@@ -985,14 +838,14 @@
"BMT or CMT, and you get automatic propagation of the \"current\" Session "
"bound to the transaction.</emphasis>"
msgstr ""
-"å¨CMT/EJBä¸çè³ä¼èªå¨rollbackï¼å 为åè¥ææªæè·ç<literal>RuntimeException</"
-"literal>ä»session beanæ¹æ³ä¸æåºï¼è¿å°±ä¼éç¥å®¹å¨æå
¨å±äºå¡åæ»ã<emphasis>è¿"
-"å°±æå³çï¼å¨BMTæè
CMTä¸ï¼ä½ æ ¹æ¬å°±ä¸éè¦ä½¿ç¨Hibernate <literal>Transaction</"
-"literal> API ï¼ä½ èªå¨å¾å°äºç»å®å°äºå¡çâå½åâSessionã </emphasis>"
+"å¨ CMT/EJB ä¸çè³ä¼èªå¨ rollbackï¼å 为åè¥ææªæè·ç "
+"<literal>RuntimeException</literal> ä» session bean æ¹æ³ä¸æåºï¼è¿å°±ä¼éç¥å®¹"
+"卿å
¨å±äºå¡åæ»ã<emphasis>è¿å°±æå³çï¼å¨ BMT æè
CMT ä¸ï¼ä½ æ ¹æ¬å°±ä¸éè¦ä½¿"
+"ç¨ Hibernate <literal>Transaction</literal> APIï¼ä½ èªå¨å¾å°äºç»å®å°äºå¡çâå½"
+"åâ Sessionã</emphasis>"
#. Tag: para
-#: transactions.xml:537
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"When configuring Hibernate's transaction factory, choose <literal>org."
"hibernate.transaction.JTATransactionFactory</literal> if you use JTA "
@@ -1002,17 +855,16 @@
"your <literal>hibernate.current_session_context_class</literal> is either "
"unset (backwards compatibility), or is set to <literal>\"jta\"</literal>."
msgstr ""
-"注æï¼å½ä½ é
ç½®Hibernateçtransaction factoryçæ¶åï¼å¨ç´æ¥ä½¿ç¨JTAçæ¶å"
-"ï¼BMTï¼ï¼ä½ åºè¯¥éæ©<literal>org.hibernate.transaction.JTATransactionFactory</"
-"literal>,å¨CMT session beanä¸éæ©<literal>org.hibernate.transaction."
-"CMTTransactionFactory</literal>ãè®°å¾ä¹è¦è®¾ç½®<literal>hibernate.transaction."
-"manager_lookup_class</literal>ãè¿æï¼ç¡®è®¤ä½ ç<literal>hibernate."
-"current_session_context_class</literal>æªè®¾ç½®ï¼ä¸ºäºåä¸å
¼å®¹ï¼ï¼æè
设置为"
-"<literal>\"jta\"</literal>ã"
+"注æï¼å½ä½ é
ç½® Hibernate ç transaction factory çæ¶åï¼å¨ç´æ¥ä½¿ç¨ JTA çæ¶å"
+"ï¼BMTï¼ï¼ä½ åºè¯¥éæ© <literal>org.hibernate.transaction."
+"JTATransactionFactory</literal>ï¼å¨ CMT session bean ä¸éæ© <literal>org."
+"hibernate.transaction.CMTTransactionFactory</literal>ãè®°å¾ä¹è¦è®¾ç½® "
+"<literal>hibernate.transaction.manager_lookup_class</literal>ãè¿æï¼ç¡®è®¤ä½ "
+"ç <literal>hibernate.current_session_context_class</literal> æªè®¾ç½®ï¼ä¸ºäºå"
+"ä¸å
¼å®¹ï¼ï¼æè
设置为 <literal>\"jta\"</literal>ã "
#. Tag: para
-#: transactions.xml:546
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>getCurrentSession()</literal> operation has one downside in a "
"JTA environment. There is one caveat to the use of <literal>after_statement</"
@@ -1027,26 +879,24 @@
"using <literal>scroll()</literal> or <literal>iterate()</literal> from the "
"JTA or CMT code.)"
msgstr ""
-"<literal>getCurrentSession()</literal>å¨JTAç¯å¢ä¸æä¸ä¸ªå¼ç«¯ã对"
-"<literal>after_statement</literal>è¿æ¥éæ¾æ¹å¼æä¸ä¸ªè¦åï¼è¿æ¯è¢«é»è®¤ä½¿ç¨çã"
-"å 为JTAè§èçä¸ä¸ªå¾æè ¢çéå¶ï¼Hibernateä¸å¯è½èªå¨æ¸
ç任使ªå
³éç"
+"<literal>getCurrentSession()</literal>å¨ JTA ç¯å¢ä¸æä¸ä¸ªå¼ç«¯ã对 "
+"<literal>after_statement</literal> è¿æ¥éæ¾æ¹å¼æä¸ä¸ªè¦åï¼è¿æ¯è¢«é»è®¤ä½¿ç¨çã"
+"å 为 JTA è§èçä¸ä¸ªå¾æè ¢çéå¶ï¼Hibernate ä¸å¯è½èªå¨æ¸
ç任使ªå
³éç "
"<literal>ScrollableResults</literal> æè
<literal>Iterator</literal>ï¼å®ä»¬æ¯"
-"ç±<literal>scroll()</literal>æ<literal>iterate()</literal>产ççãä½ "
-"<emphasis>must</emphasis>éè¿å¨<literal>finally</literal>åä¸ï¼æ¾å¼è°ç¨"
-"<literal>ScrollableResults.close()</literal>æè
<literal>Hibernate.close"
-"(Iterator)</literal>æ¹æ³æ¥éæ¾åºå±æ°æ®åºæ¸¸æ ã(å½ç¶ï¼å¤§é¨åç¨åºå®å
¨å¯ä»¥å¾å®¹æ"
-"çé¿å
å¨JTAæCMT代ç ä¸åºç°<literal>scroll()</literal>æ<literal>iterate()</"
-"literal>ã)"
+"ç± <literal>scroll()</literal> æ <literal>iterate()</literal> 产ççãä½ "
+"<emphasis>must</emphasis> éè¿å¨ <literal>finally</literal> åä¸ï¼æ¾å¼è°ç¨ "
+"<literal>ScrollableResults.close()</literal> æè
<literal>Hibernate.close"
+"(Iterator)</literal> æ¹æ³æ¥éæ¾åºå±æ°æ®åºæ¸¸æ ãï¼å½ç¶ï¼å¤§é¨åç¨åºå®å
¨å¯ä»¥å¾å®¹"
+"æçé¿å
å¨ JTA æ CMT 代ç ä¸åºç° <literal>scroll()</literal> æ "
+"<literal>iterate()</literal>ãï¼ "
#. Tag: title
-#: transactions.xml:562
#, no-c-format
msgid "Exception handling"
msgstr "å¼å¸¸å¤ç"
#. Tag: para
-#: transactions.xml:564
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the <literal>Session</literal> throws an exception, including any "
"<literal>SQLException</literal>, immediately rollback the database "
@@ -1057,16 +907,15 @@
"Ensure that the <literal>Session</literal> will be closed by calling "
"<literal>close()</literal> in a <literal>finally</literal> block."
msgstr ""
-"妿 <literal>Session</literal> æåºå¼å¸¸ (å
æ¬ä»»ä½<literal>SQLException</"
-"literal>), ä½ åºè¯¥ç«å³åæ»æ°æ®åºäºå¡ï¼è°ç¨ <literal>Session.close()</"
-"literal> ï¼ä¸¢å¼è¯¥ <literal>Session</literal>å®ä¾ã<literal>Session</literal>"
-"çæäºæ¹æ³å¯è½ä¼å¯¼è´session å¤äºä¸ä¸è´çç¶æãææç±Hibernateæåºçå¼å¸¸é½è§ä¸º"
-"ä¸å¯ä»¥æ¢å¤çãç¡®ä¿å¨ <literal>finally</literal> 代ç åä¸è°ç¨<literal>close()"
-"</literal>æ¹æ³ï¼ä»¥å
³éæ <literal>Session</literal>ã"
+"妿 <literal>Session</literal> æåºå¼å¸¸ï¼å
æ¬ä»»ä½ <literal>SQLException</"
+"literal>ï¼ï¼ä½ åºè¯¥ç«å³åæ»æ°æ®åºäºå¡ï¼è°ç¨ <literal>Session.close()</"
+"literal> ï¼ä¸¢å¼è¯¥ <literal>Session</literal> å®ä¾ã<literal>Session</"
+"literal> çæäºæ¹æ³å¯è½ä¼å¯¼è´ session å¤äºä¸ä¸è´çç¶æãææç± Hibernate æåº"
+"çå¼å¸¸é½è§ä¸ºä¸å¯ä»¥æ¢å¤çãç¡®ä¿å¨ <literal>finally</literal> 代ç åä¸è°ç¨ "
+"<literal>close()</literal> æ¹æ³ï¼ä»¥å
³éæ <literal>Session</literal>ã"
#. Tag: para
-#: transactions.xml:575
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>HibernateException</literal>, which wraps most of the errors "
"that can occur in a Hibernate persistence layer, is an unchecked exception. "
@@ -1079,18 +928,17 @@
"unchecked exceptions that are not a <literal>HibernateException</literal>. "
"These are not recoverable and appropriate action should be taken."
msgstr ""
-"<literal>HibernateException</literal>æ¯ä¸ä¸ªéæ£æ¥æå¼å¸¸ï¼è¿ä¸åäºHibernateè"
-"ççæ¬ï¼ï¼ å®å°è£
äºHibernateæä¹
å±å¯è½åºç°ç大夿°é误ãæä»¬çè§ç¹æ¯ï¼ä¸åºè¯¥"
-"强迫åºç¨ç¨åºå¼å人å å¨åºå±æè·æ æ³æ¢å¤çå¼å¸¸ãå¨å¤§å¤æ°è½¯ä»¶ç³»ç»ä¸ï¼éæ£æ¥æå¼"
-"常åè´å½å¼å¸¸é½æ¯å¨ç¸åºæ¹æ³è°ç¨ çå æ çé¡¶å±è¢«å¤ççï¼ä¹å°±æ¯è¯´ï¼å¨è½¯ä»¶ä¸é¢çé»"
-"è¾å±ï¼ï¼å¹¶ä¸æä¾ä¸ä¸ªé误信æ¯ç»åºç¨è½¯ä»¶çç¨æ· ï¼æè
éåå
¶ä»æäºç¸åºçæä½ï¼ã"
-"请注æï¼Hibernate乿å¯è½æåºå
¶ä»å¹¶ä¸å±äº <literal>HibernateException</"
-"literal>çéæ£æ¥æå¼å¸¸ãè¿äºå¼å¸¸åæ ·ä¹æ¯æ æ³æ¢å¤çï¼åºè¯¥ éåæäºç¸åºçæä½å»"
-"å¤çã"
+"<literal>HibernateException</literal> æ¯ä¸ä¸ªéæ£æ¥æå¼å¸¸ï¼è¿ä¸åäº Hibernate "
+"èççæ¬ï¼ï¼å®å°è£
äº Hibernate æä¹
å±å¯è½åºç°ç大夿°é误ãæä»¬çè§ç¹æ¯ï¼ä¸åº"
+"该强迫åºç¨ç¨åºå¼å人å å¨åºå±æè·æ æ³æ¢å¤çå¼å¸¸ãå¨å¤§å¤æ°è½¯ä»¶ç³»ç»ä¸ï¼éæ£æ¥æ"
+"å¼å¸¸åè´å½å¼å¸¸é½æ¯å¨ç¸åºæ¹æ³è°ç¨ çå æ çé¡¶å±è¢«å¤ççï¼ä¹å°±æ¯è¯´ï¼å¨è½¯ä»¶ä¸é¢ç"
+"é»è¾å±ï¼ï¼å¹¶ä¸æä¾ä¸ä¸ªé误信æ¯ç»åºç¨è½¯ä»¶çç¨æ· ï¼æè
éåå
¶ä»æäºç¸åºçæ"
+"ä½ï¼ã请注æï¼Hibernate 乿å¯è½æåºå
¶ä»å¹¶ä¸å±äº "
+"<literal>HibernateException</literal> çéæ£æ¥æå¼å¸¸ãè¿äºå¼å¸¸åæ ·ä¹æ¯æ æ³æ¢"
+"å¤çï¼åºè¯¥ éåæäºç¸åºçæä½å»å¤çã"
#. Tag: para
-#: transactions.xml:587
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate wraps <literal>SQLException</literal>s thrown while interacting "
"with the database in a <literal>JDBCException</literal>. In fact, Hibernate "
@@ -1107,72 +955,67 @@
"class for details. The standard <literal>JDBCException</literal> subtypes "
"are:"
msgstr ""
-"å¨åæ°æ®åºè¿è¡äº¤äºæ¶ï¼Hibernateææè·ç<literal>SQLException</literal>å°è£
为"
-"Hibernateç <literal>JDBCException</literal>ãäºå®ä¸ï¼Hibernateå°è¯æå¼å¸¸è½¬æ¢"
-"ä¸ºæ´æå®é
å«ä¹ ç<literal>JDBCException</literal>å¼å¸¸çåç±»ãåºå±ç"
-"<literal>SQLException</literal>å¯ä»¥ éè¿<literal>JDBCException.getCause()</"
-"literal>æ¥å¾å°ãHibernateéè¿ä½¿ç¨å
³èå° <literal>SessionFactory</literal>ä¸ç"
-"<literal>SQLExceptionConverter</literal>æ¥ æ<literal>SQLException</literal>"
-"转æ¢ä¸ºä¸ä¸ªå¯¹åºç<literal>JDBCException</literal> å¼å¸¸çåç±»ãé»è®¤æ
åµä¸ï¼"
-"<literal>SQLExceptionConverter</literal>å¯ä»¥éè¿é
ç½®dialect é项æå®ï¼æ¤å¤ï¼"
-"ä¹å¯ä»¥ä½¿ç¨ç¨æ·èªå®ä¹çå®ç°ç±»ï¼åèjavadocs "
-"<literal>SQLExceptionConverterFactory</literal>ç±»æ¥äºè§£è¯¦æ
ï¼ãæ åç "
-"<literal>JDBCException</literal>åç±»åæ¯ï¼"
+"å¨åæ°æ®åºè¿è¡äº¤äºæ¶ï¼Hibernate ææè·ç <literal>SQLException</literal> å°è£
"
+"为 Hibernate ç <literal>JDBCException</literal>ãäºå®ä¸ï¼Hibernate å°è¯æå¼"
+"常转æ¢ä¸ºæ´æå®é
å«ä¹ç <literal>JDBCException</literal> å¼å¸¸çåç±»ãåºå±ç "
+"<literal>SQLException</literal> å¯ä»¥éè¿ <literal>JDBCException.getCause()</"
+"literal> æ¥å¾å°ãHibernate éè¿ä½¿ç¨å
³èå° <literal>SessionFactory</literal> "
+"ä¸ç <literal>SQLExceptionConverter</literal> æ¥æ <literal>SQLException</"
+"literal> 转æ¢ä¸ºä¸ä¸ªå¯¹åºç <literal>JDBCException</literal> å¼å¸¸çåç±»ãé»è®¤æ
"
+"åµä¸ï¼<literal>SQLExceptionConverter</literal> å¯ä»¥éè¿é
ç½® dialect é项æ"
+"å®ï¼æ¤å¤ï¼ä¹å¯ä»¥ä½¿ç¨ç¨æ·èªå®ä¹çå®ç°ç±»ï¼åè javadocs "
+"<literal>SQLExceptionConverterFactory</literal> ç±»æ¥äºè§£è¯¦æ
ï¼ãæ åç "
+"<literal>JDBCException</literal> åç±»åæ¯ï¼ "
#. Tag: para
-#: transactions.xml:603
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>JDBCConnectionException</literal>: indicates an error with the "
"underlying JDBC communication."
msgstr ""
-"<literal>JDBCConnectionException</literal> - ææåºå±çJDBCé讯åºç°é误"
+"<literal>JDBCConnectionException</literal>ï¼ææåºå±ç JDBC é讯åºç°é误ã"
#. Tag: para
-#: transactions.xml:609
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SQLGrammarException</literal>: indicates a grammar or syntax "
"problem with the issued SQL."
msgstr ""
-"<literal>SQLGrammarException</literal> - ææåéçSQLè¯å¥çè¯æ³æè
æ ¼å¼é误"
+"<literal>SQLGrammarException</literal>ï¼ææåéç SQL è¯å¥çè¯æ³æè
æ ¼å¼é"
+"误ã"
#. Tag: para
-#: transactions.xml:615
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ConstraintViolationException</literal>: indicates some form of "
"integrity constraint violation."
msgstr ""
-"<literal>ConstraintViolationException</literal> - æææç§ç±»åç约æè¿ä¾é误"
+"<literal>ConstraintViolationException</literal>ï¼æææç§ç±»åç约æè¿ä¾é误"
#. Tag: para
-#: transactions.xml:621
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockAcquisitionException</literal>: indicates an error acquiring a "
"lock level necessary to perform the requested operation."
msgstr ""
-"<literal>LockAcquisitionException</literal> - ææäºå¨æ§è¡è¯·æ±æä½æ¶ï¼è·å æ"
-"éçéçº§å«æ¶åºç°çé误ã"
+"<literal>LockAcquisitionException</literal>ï¼ææäºå¨æ§è¡è¯·æ±æä½æ¶ï¼è·åæé"
+"çéçº§å«æ¶åºç°çé误ã"
#. Tag: para
-#: transactions.xml:627
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>GenericJDBCException</literal>: a generic exception which did not "
"fall into any of the other categories."
-msgstr "<literal>GenericJDBCException</literal> - ä¸å±äºä»»ä½å
¶ä»ç§ç±»çåçå¼å¸¸"
+msgstr ""
+"<literal>GenericJDBCException</literal>ï¼ä¸å±äºä»»ä½å
¶ä»ç§ç±»çåçå¼å¸¸ã"
#. Tag: title
-#: transactions.xml:637
#, no-c-format
msgid "Transaction timeout"
msgstr "äºå¡è¶
æ¶"
#. Tag: para
-#: transactions.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An important feature provided by a managed environment like EJB, that is "
"never provided for non-managed code, is transaction timeout. Transaction "
@@ -1185,57 +1028,29 @@
"transaction timeout to JTA. This functionality is abstracted by the "
"Hibernate <literal>Transaction</literal> object."
msgstr ""
-"EJBè¿æ ·çæç®¡ç¯å¢æä¸é¡¹æä¸ºéè¦çç¹æ§ï¼èå®ä»æªå¨éæç®¡ç¯å¢ä¸æä¾è¿ï¼é£å°±æ¯äº"
-"å¡è¶
æ¶ãå¨åºç°é误çäºå¡è¡ä¸ºçæ¶åï¼è¶
æ¶å¯ä»¥ç¡®ä¿ä¸ä¼æ éæèµ·èµæºãå¯¹ç¨æ·æ²¡æ"
-"交代ãå¨æç®¡(JTA)ç¯å¢ä¹å¤ï¼Hibernateæ æ³å®å
¨æä¾è¿ä¸åè½ã使¯ï¼Hiberanteè³å°"
-"å¯ä»¥æ§å¶æ°æ®è®¿é®ï¼ç¡®ä¿æ°æ®åºçº§å«çæ»éï¼åè¿åå·¨å¤§ç»æéçæ¥è¯¢è¢«éå®å¨ä¸ä¸ªè§"
-"å®çæ¶é´å
ãå¨æç®¡ç¯å¢ä¸ï¼Hibernate伿äºå¡è¶
æ¶è½¬äº¤ç»JTAãè¿ä¸åè½éè¿"
-"Hibernate <literal>Transaction</literal>对象è¿è¡æ½è±¡ã"
+"EJB è¿æ ·çæç®¡ç¯å¢æä¸é¡¹æä¸ºéè¦çç¹æ§ï¼èå®ä»æªå¨éæç®¡ç¯å¢ä¸æä¾è¿ï¼é£å°±æ¯"
+"äºå¡è¶
æ¶ãå¨åºç°é误çäºå¡è¡ä¸ºçæ¶åï¼è¶
æ¶å¯ä»¥ç¡®ä¿ä¸ä¼æ éæèµ·èµæºãå¯¹ç¨æ·æ²¡"
+"æäº¤ä»£ãå¨æç®¡ï¼JTAï¼ç¯å¢ä¹å¤ï¼Hibernate æ æ³å®å
¨æä¾è¿ä¸åè½ã使¯ï¼"
+"Hiberante è³å°å¯ä»¥æ§å¶æ°æ®è®¿é®ï¼ç¡®ä¿æ°æ®åºçº§å«çæ»éï¼åè¿åå·¨å¤§ç»æéçæ¥è¯¢"
+"被éå®å¨ä¸ä¸ªè§å®çæ¶é´å
ãå¨æç®¡ç¯å¢ä¸ï¼Hibernate 伿äºå¡è¶
æ¶è½¬äº¤ç» JTAãè¿"
+"ä¸åè½éè¿ Hibernate <literal>Transaction</literal> 对象è¿è¡æ½è±¡ã "
-#. Tag: programlisting
-#: transactions.xml:652
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"Session sess = factory.openSession();\n"
-"try {\n"
-" //set transaction timeout to 3 seconds\n"
-" sess.getTransaction().setTimeout(3);\n"
-" sess.getTransaction().begin();\n"
-"\n"
-" // do some work\n"
-" ...\n"
-"\n"
-" sess.getTransaction().commit()\n"
-"}\n"
-"catch (RuntimeException e) {\n"
-" sess.getTransaction().rollback();\n"
-" throw e; // or display error message\n"
-"}\n"
-"finally {\n"
-" sess.close();\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:654
-#, fuzzy, no-c-format
-msgid ""
"<literal>setTimeout()</literal> cannot be called in a CMT bean, where "
"transaction timeouts must be defined declaratively."
msgstr ""
-"注æ<literal>setTimeout()</literal>ä¸åºè¯¥å¨CMT beanä¸è°ç¨ï¼æ¤æ¶äºå¡è¶
æ¶å¼åºè¯¥"
-"æ¯è¢«å£°æå¼å®ä¹çã"
+"注æ <literal>setTimeout()</literal> ä¸åºè¯¥å¨ CMT bean ä¸è°ç¨ï¼æ¤æ¶äºå¡è¶
æ¶å¼"
+"åºè¯¥æ¯è¢«å£°æå¼å®ä¹çã "
#. Tag: title
-#: transactions.xml:664
#, no-c-format
msgid "Optimistic concurrency control"
-msgstr "ä¹è§å¹¶åæ§å¶(Optimistic concurrency control)"
+msgstr "ä¹è§å¹¶åæ§å¶ï¼Optimistic concurrency controlï¼"
#. Tag: para
-#: transactions.xml:666
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The only approach that is consistent with high concurrency and high "
"scalability, is optimistic concurrency control with versioning. Version "
@@ -1246,20 +1061,18 @@
"has the benefit of preventing lost updates in single database transactions."
msgstr ""
"å¯ä¸è½å¤åæ¶ä¿æé«å¹¶ååé«å¯ä¼¸ç¼©æ§çæ¹æ³å°±æ¯ä½¿ç¨å¸¦çæ¬åçä¹è§å¹¶åæ§å¶ãçæ¬"
-"æ£æ¥ä½¿ç¨çæ¬å·ã æè
æ¶é´æ³æ¥æ£æµæ´æ°å²çªï¼å¹¶ä¸é²æ¢æ´æ°ä¸¢å¤±ï¼ãHibernate为使"
+"æ£æ¥ä½¿ç¨çæ¬å·ã æè
æ¶é´æ³æ¥æ£æµæ´æ°å²çªï¼å¹¶ä¸é²æ¢æ´æ°ä¸¢å¤±ï¼ãHibernate 为使"
"ç¨ä¹è§å¹¶åæ§å¶çä»£ç æä¾äºä¸ç§å¯ è½çæ¹æ³ï¼åºç¨ç¨åºå¨ç¼åè¿äºä»£ç æ¶ï¼å¯ä»¥éç¨"
"å®ä»¬ãæä»¬å·²ç»å¨åé¢åºç¨ç¨åºå¯¹è¯é£é¨åå±ç¤ºäº ä¹è§å¹¶åæ§å¶çåºç¨åºæ¯ï¼æ¤å¤ï¼å¨"
-"åä¸ªæ°æ®åºäºå¡èå´å
ï¼çæ¬æ£æ¥ä¹æä¾äºé²æ¢æ´æ°ä¸¢å¤±ç好å¤ã"
+"åä¸ªæ°æ®åºäºå¡èå´å
ï¼çæ¬æ£æ¥ä¹æä¾äºé²æ¢æ´æ°ä¸¢å¤±ç好å¤ã "
#. Tag: title
-#: transactions.xml:677
#, no-c-format
msgid "Application version checking"
-msgstr "åºç¨ç¨åºçº§å«ççæ¬æ£æ¥(Application version checking)"
+msgstr "åºç¨ç¨åºçº§å«ççæ¬æ£æ¥ï¼Application version checkingï¼"
#. Tag: para
-#: transactions.xml:679
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In an implementation without much help from Hibernate, each interaction with "
"the database occurs in a new <literal>Session</literal> and the developer is "
@@ -1269,43 +1082,23 @@
"least efficient in terms of database access. It is the approach most similar "
"to entity EJBs."
msgstr ""
-"æªè½å
åå©ç¨Hibernateåè½çå®ç°ä»£ç ä¸ï¼æ¯æ¬¡åæ°æ®åºäº¤äºé½éè¦ä¸ä¸ªæ°ç "
-"<literal>Session</literal>ï¼èä¸å¼å人åå¿
须卿¾ç¤ºæ°æ®ä¹å仿°æ®åºä¸é æ°è½½å
¥"
-"ææçæä¹
å对象å®ä¾ãè¿ç§æ¹å¼è¿«ä½¿åºç¨ç¨åºèªå·±å®ç°çæ¬æ£æ¥æ¥ç¡®ä¿ 对è¯äºå¡çé"
-"离ï¼ä»æ°æ®è®¿é®çè§åº¦æ¥è¯´æ¯æä½æçãè¿ç§ä½¿ç¨æ¹å¼å entity EJBæç¸ä¼¼ã"
+"æªè½å
åå©ç¨ Hibernate åè½çå®ç°ä»£ç ä¸ï¼æ¯æ¬¡åæ°æ®åºäº¤äºé½éè¦ä¸ä¸ªæ°ç "
+"<literal>Session</literal>ï¼èä¸å¼å人åå¿
须卿¾ç¤ºæ°æ®ä¹å仿°æ®åºä¸éæ°è½½å
¥"
+"ææçæä¹
å对象å®ä¾ãè¿ç§æ¹å¼è¿«ä½¿åºç¨ç¨åºèªå·±å®ç°çæ¬æ£æ¥æ¥ç¡®ä¿å¯¹è¯äºå¡çé"
+"离ï¼ä»æ°æ®è®¿é®çè§åº¦æ¥è¯´æ¯æä½æçãè¿ç§ä½¿ç¨æ¹å¼å entity EJB æç¸ä¼¼ã "
-#. Tag: programlisting
-#: transactions.xml:688
-#, no-c-format
-msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"\n"
-"int oldVersion = foo.getVersion();\n"
-"session.load( foo, foo.getKey() ); // load the current state\n"
-"if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
-"();\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
#. Tag: para
-#: transactions.xml:690
#, no-c-format
msgid ""
"The <literal>version</literal> property is mapped using <literal><"
"version></literal>, and Hibernate will automatically increment it during "
"flush if the entity is dirty."
msgstr ""
-"<literal>version</literal> 屿§ä½¿ç¨ <literal><version></literal>æ¥æ "
-"å°ï¼å¦æå¯¹è±¡ æ¯èæ°æ®ï¼å¨åæ¥çæ¶åï¼Hibernateä¼èªå¨å¢å çæ¬å·ã"
+"<literal>version</literal> 屿§ä½¿ç¨ <literal><version></literal> æ¥æ "
+"å°ï¼å¦æå¯¹è±¡æ¯èæ°æ®ï¼å¨åæ¥çæ¶åï¼Hibernate ä¼èªå¨å¢å çæ¬å·ã"
#. Tag: para
-#: transactions.xml:696
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you are operating in a low-data-concurrency environment, and do not "
"require version checking, you can use this approach and skip the version "
@@ -1315,14 +1108,13 @@
"messages or a chance to merge conflicting changes."
msgstr ""
"å½ç¶ï¼å¦æä½ çåºç¨æ¯å¨ä¸ä¸ªä½æ°æ®å¹¶åç¯å¢ä¸ï¼å¹¶ä¸éè¦çæ¬æ£æ¥çè¯ï¼ä½ ç
§æ ·å¯ä»¥"
-"ä½¿ç¨ è¿ç§æ¹å¼ï¼åªä¸è¿è·³è¿çæ¬æ£æ¥å°±æ¯äºãå¨è¿ç§æ
åµä¸ï¼<emphasis>æææäº¤çæ"
+"使ç¨è¿ç§æ¹å¼ï¼åªä¸è¿è·³è¿çæ¬æ£æ¥å°±æ¯äºãå¨è¿ç§æ
åµä¸ï¼<emphasis>æææäº¤çæ"
"</emphasis> ï¼<emphasis>last commit wins</emphasis>ï¼å°±æ¯ä½ çé¿å¯¹è¯çé»è®¤å¤ç"
-"çç¥ã 请记ä½è¿ç§çç¥å¯è½ä¼è®©åºç¨è½¯ä»¶çç¨æ·æå°å°æï¼å 为ä»ä»¬æå¯è½ä¼ç¢°ä¸æ´æ°"
-"丢失æå´æ²¡ æåºéä¿¡æ¯ï¼æè
éè¦åå¹¶æ´æ¹å²çªçæ
åµã"
+"çç¥ã请记ä½è¿ç§çç¥å¯è½ä¼è®©åºç¨è½¯ä»¶çç¨æ·æå°å°æï¼å 为ä»ä»¬æå¯è½ä¼ç¢°ä¸æ´æ°"
+"丢失æå´æ²¡æåºéä¿¡æ¯ï¼æè
éè¦åå¹¶æ´æ¹å²çªçæ
åµã "
#. Tag: para
-#: transactions.xml:705
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Manual version checking is only feasible in trivial circumstances and not "
"practical for most applications. Often not only single instances, but "
@@ -1331,20 +1123,18 @@
"literal> or detached instances as the design paradigm."
msgstr ""
"徿æ¾ï¼æå·¥è¿è¡çæ¬æ£æ¥åªéåäºæäºè½¯ä»¶è§æ¨¡é常å°çåºç¨åºæ¯ï¼å¯¹äºå¤§å¤æ°è½¯ä»¶"
-"åºç¨åºæ¯ æ¥è¯´å¹¶ä¸ç°å®ãé常æ
åµä¸ï¼ä¸ä»
æ¯å个对象å®ä¾éè¦è¿è¡çæ¬æ£æ¥ï¼æ´ä¸ªè¢«"
-"ä¿®æ¹è¿çå
³ è对象å¾ä¹é½éè¦è¿è¡çæ¬æ£æ¥ãä½ä¸ºæ å设计èä¾ï¼Hibernateä½¿ç¨æ©å±"
-"卿ç <literal>Session</literal>çæ¹å¼ï¼æè
è±ç®¡å¯¹è±¡å®ä¾çæ¹å¼æ¥æä¾èªå¨çæ¬"
-"æ£æ¥ã"
+"åºç¨åºæ¯æ¥è¯´å¹¶ä¸ç°å®ãé常æ
åµä¸ï¼ä¸ä»
æ¯å个对象å®ä¾éè¦è¿è¡çæ¬æ£æ¥ï¼æ´ä¸ªè¢«"
+"ä¿®æ¹è¿çå
³è对象å¾ä¹é½éè¦è¿è¡çæ¬æ£æ¥ãä½ä¸ºæ å设计èä¾ï¼Hibernate ä½¿ç¨æ©å±"
+"卿ç <literal>Session</literal> çæ¹å¼ï¼æè
è±ç®¡å¯¹è±¡å®ä¾çæ¹å¼æ¥æä¾èªå¨ç"
+"æ¬æ£æ¥ã "
#. Tag: title
-#: transactions.xml:716
#, no-c-format
msgid "Extended session and automatic versioning"
-msgstr "æ©å±å¨æçsessionåèªå¨çæ¬å"
+msgstr "æ©å±å¨æç session åèªå¨çæ¬å"
#. Tag: para
-#: transactions.xml:718
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single <literal>Session</literal> instance and its persistent instances "
"that are used for the whole conversation are known as <emphasis>session-per-"
@@ -1354,15 +1144,14 @@
"opportunity for the user to merge changes or to restart the business "
"conversation with non-stale data."
msgstr ""
-"å个 <literal>Session</literal>å®ä¾å宿å
³èçæææä¹
å对象å®ä¾é½è¢«ç¨äºæ´"
-"个 对è¯ï¼è¿è¢«ç§°ä¸º<emphasis>session-per-conversation</emphasis>ãHibernateå¨å"
-"æ¥çæ¶åè¿è¡å¯¹è±¡å®ä¾ççæ¬æ£æ¥ï¼å¦ææ£æµå°å¹¶åä¿® æ¹åæåºå¼å¸¸ãç±å¼åäººåæ¥å³"
-"宿¯å¦éè¦æè·åå¤çè¿ä¸ªå¼å¸¸ï¼éå¸¸çææ©æ¯ç»ç¨æ· æä¾ä¸ä¸ªåå¹¶æ´æ¹ï¼æè
卿 è"
-"æ°æ®æ
åµä¸éæ°è¿è¡ä¸å¡å¯¹è¯çæºä¼ï¼ã"
+"å个 <literal>Session</literal> å®ä¾å宿å
³èçæææä¹
å对象å®ä¾é½è¢«ç¨äºæ´"
+"个对è¯ï¼è¿è¢«ç§°ä¸º <emphasis>session-per-conversation</emphasis>ãHibernate å¨"
+"åæ¥çæ¶åè¿è¡å¯¹è±¡å®ä¾ççæ¬æ£æ¥ï¼å¦ææ£æµå°å¹¶åä¿®æ¹åæåºå¼å¸¸ãç±å¼åäººåæ¥"
+"å³å®æ¯å¦éè¦æè·åå¤çè¿ä¸ªå¼å¸¸ï¼éå¸¸çææ©æ¯ç»ç¨æ· æä¾ä¸ä¸ªåå¹¶æ´æ¹ï¼æè
卿 "
+"èæ°æ®æ
åµä¸éæ°è¿è¡ä¸å¡å¯¹è¯çæºä¼ï¼ã "
#. Tag: para
-#: transactions.xml:727
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>Session</literal> is disconnected from any underlying JDBC "
"connection when waiting for user interaction. This approach is the most "
@@ -1370,29 +1159,13 @@
"check or reattach detached instances, nor does it have to reload instances "
"in every database transaction."
msgstr ""
-"å¨çå¾
ç¨æ·äº¤äºçæ¶åï¼ <literal>Session</literal> æå¼åºå±çJDBCè¿æ¥ãè¿ç§æ¹"
-"å¼ ä»¥æ°æ®åºè®¿é®çè§åº¦æ¥è¯´æ¯æé«æçæ¹å¼ãåºç¨ç¨åºä¸éè¦å
³å¿çæ¬æ£æ¥æè±ç®¡å¯¹è±¡"
-"å®ä¾ çéæ°å
³èï¼å¨æ¯ä¸ªæ°æ®åºäºå¡ä¸ï¼åºç¨ç¨åºä¹ä¸éè¦è½½å
¥è¯»å对象å®ä¾ã"
+"å¨çå¾
ç¨æ·äº¤äºçæ¶åï¼ <literal>Session</literal> æå¼åºå±ç JDBC è¿æ¥ãè¿ç§"
+"æ¹å¼ä»¥æ°æ®åºè®¿é®çè§åº¦æ¥è¯´æ¯æé«æçæ¹å¼ãåºç¨ç¨åºä¸éè¦å
³å¿çæ¬æ£æ¥æè±ç®¡å¯¹"
+"象å®ä¾çéæ°å
³èï¼å¨æ¯ä¸ªæ°æ®åºäºå¡ä¸ï¼åºç¨ç¨åºä¹ä¸éè¦è½½å
¥è¯»å对象å®ä¾ã "
-#. Tag: programlisting
-#: transactions.xml:735
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded earlier by the old session\n"
-"Transaction t = session.beginTransaction(); // Obtain a new JDBC connection, "
-"start transaction\n"
-"\n"
-"foo.setProperty(\"bar\");\n"
-"\n"
-"session.flush(); // Only for last transaction in conversation\n"
-"t.commit(); // Also return JDBC connection\n"
-"session.close(); // Only for last transaction in conversation]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:736
-#, fuzzy, no-c-format
-msgid ""
"The <literal>foo</literal> object knows which <literal>Session</literal> it "
"was loaded in. Beginning a new database transaction on an old session "
"obtains a new connection and resumes the session. Committing a database "
@@ -1408,21 +1181,20 @@
"will include the <literal>flush()</literal> operation, and then "
"<literal>close()</literal> the session to end the conversation."
msgstr ""
-"<literal>foo</literal>对象ç¥é宿¯å¨åªä¸ª<literal>Session</literal>ä¸è¢«è£
å
¥"
-"çãå¨ä¸ä¸ªæ§sessionä¸å¼å¯ä¸ä¸ªæ°çæ°æ®åºäºå¡ï¼ä¼å¯¼è´sessionè·åä¸ä¸ªæ°çè¿æ¥ï¼"
-"å¹¶æ¢å¤sessionçåè½ãå°æ°æ®åºäºå¡æäº¤ï¼ä½¿å¾sessionä»JDBCè¿æ¥æå¼ï¼å¹¶å°æ¤è¿æ¥"
-"交è¿ç»è¿æ¥æ± ãå¨éæ°è¿æ¥ä¹åï¼è¦å¼ºå¶å¯¹ä½ æ²¡ææ´æ°çæ°æ®è¿è¡ä¸æ¬¡çæ¬æ£æ¥ï¼ä½ å¯"
-"以对ææå¯è½è¢«å
¶ä»äºå¡ä¿®æ¹è¿ç对象ï¼ä½¿ç¨åæ°<literal>LockMode.READ</literal>"
-"æ¥è°ç¨<literal>Session.lock()</literal>ãä½ ä¸ç¨lockä»»ä½ä½ <emphasis>æ£å¨</"
-"emphasis>æ´æ°çæ°æ®ãä¸è¬ä½ ä¼å¨æ©å±ç<literal>Session</literal>ä¸è®¾ç½®"
-"<literal>FlushMode.MANUAL</literal>ï¼å æ¤åªææåä¸ä¸ªæ°æ®åºäºå¡å¾ªç¯æä¼çæ£ç"
-"å§æ´ä¸ªå¯¹è¯ä¸åççä¿®æ¹åéå°æ°æ®åºãå æ¤ï¼åªæè¿æå䏿¬¡æ°æ®åºäºå¡æä¼å
å«"
-"<literal>flush()</literal>æä½ï¼ç¶å卿´ä¸ªå¯¹è¯ç»æåï¼è¿è¦<literal>close()</"
-"literal>è¿ä¸ªsessionã"
+"<literal>foo</literal> 对象ç¥é宿¯å¨åªä¸ª <literal>Session</literal> ä¸è¢«è£
å
¥"
+"çãå¨ä¸ä¸ªæ§ session ä¸å¼å¯ä¸ä¸ªæ°çæ°æ®åºäºå¡ï¼ä¼å¯¼è´ session è·åä¸ä¸ªæ°çè¿"
+"æ¥ï¼å¹¶æ¢å¤ session çåè½ãå°æ°æ®åºäºå¡æäº¤ï¼ä½¿å¾ session ä» JDBC è¿æ¥æå¼ï¼"
+"å¹¶å°æ¤è¿æ¥äº¤è¿ç»è¿æ¥æ± ãå¨éæ°è¿æ¥ä¹åï¼è¦å¼ºå¶å¯¹ä½ æ²¡ææ´æ°çæ°æ®è¿è¡ä¸æ¬¡çæ¬"
+"æ£æ¥ï¼ä½ å¯ä»¥å¯¹ææå¯è½è¢«å
¶ä»äºå¡ä¿®æ¹è¿ç对象ï¼ä½¿ç¨åæ° <literal>LockMode."
+"READ</literal> æ¥è°ç¨ <literal>Session.lock()</literal>ãä½ ä¸ç¨ lock ä»»ä½ä½ "
+"<emphasis>æ£å¨</emphasis>æ´æ°çæ°æ®ãä¸è¬ä½ ä¼å¨æ©å±ç <literal>Session</"
+"literal> ä¸è®¾ç½® <literal>FlushMode.NEVER</literal>ï¼å æ¤åªææåä¸ä¸ªæ°æ®åºäº"
+"å¡å¾ªç¯æä¼çæ£çææ´ä¸ªå¯¹è¯ä¸åççä¿®æ¹åéå°æ°æ®åºãå æ¤ï¼åªæè¿æå䏿¬¡æ°æ®"
+"åºäºå¡æä¼å
å« <literal>flush()</literal> æä½ï¼ç¶å卿´ä¸ªå¯¹è¯ç»æåï¼è¿è¦ "
+"<literal>close()</literal> è¿ä¸ª sessionã "
#. Tag: para
-#: transactions.xml:751
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This pattern is problematic if the <literal>Session</literal> is too big to "
"be stored during user think time (for example, an <literal>HttpSession</"
@@ -1432,33 +1204,30 @@
"<literal>Session</literal> only for a single conversation as it will soon "
"have stale data."
msgstr ""
-"妿å¨ç¨æ·æèçè¿ç¨ä¸ï¼<literal>Session</literal>å 为太大äºèä¸è½ä¿åï¼é£ä¹"
-"è¿ç§æ¨¡å¼æ¯æ é®é¢çã䏾便¥è¯´ï¼ä¸ä¸ª<literal>HttpSession</literal>åºè¯¥å°½å¯è½ç"
-"å°ãç±äº <literal>Session</literal>æ¯ä¸çº§ç¼åï¼å¹¶ä¸ä¿æäºææè¢«è½½å
¥è¿ç对象ï¼"
-"å æ¤ æä»¬åªåºè¯¥å¨é£äºå°éçrequest/responseæ
åµä¸ä½¿ç¨è¿ç§çç¥ãä½ åºè¯¥åªæä¸ä¸ª"
-"<literal>Session</literal>ç¨äºå个对è¯ï¼å 为å®å¾å¿«å°±ä¼åºç°èæ°æ®ã"
+"妿å¨ç¨æ·æèçè¿ç¨ä¸ï¼<literal>Session</literal> å 为太大äºèä¸è½ä¿åï¼é£ä¹"
+"è¿ç§æ¨¡å¼æ¯æé®é¢çã䏾便¥è¯´ï¼ä¸ä¸ª <literal>HttpSession</literal> åºè¯¥å°½å¯è½"
+"çå°ãç±äº <literal>Session</literal> æ¯ä¸çº§ç¼åï¼å¹¶ä¸ä¿æäºææè¢«è½½å
¥è¿ç对"
+"象ï¼å æ¤æä»¬åªåºè¯¥å¨é£äºå°éç request/response æ
åµä¸ä½¿ç¨è¿ç§çç¥ãä½ åºè¯¥åª"
+"æä¸ä¸ª <literal>Session</literal> ç¨äºå个对è¯ï¼å 为å®å¾å¿«å°±ä¼åºç°èæ°æ®ã "
#. Tag: title
-#: transactions.xml:762
#, no-c-format
msgid "Note"
-msgstr ""
+msgstr "注æ"
#. Tag: para
-#: transactions.xml:763
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Earlier versions of Hibernate required explicit disconnection and "
"reconnection of a <literal>Session</literal>. These methods are deprecated, "
"as beginning and ending a transaction has the same effect."
msgstr ""
-"ï¼æ³¨æï¼æ©æçHibernateçæ¬éè¦æç¡®ç对<literal>Session</literal>è¿è¡"
-"disconnecåreconnectãè¿äºæ¹æ³ç°å¨å·²ç»è¿æ¶äºï¼æå¼äºå¡åå
³éäºå¡ä¼èµ·å°åæ ·ç"
-"ææãï¼"
+"注æï¼æ©æç Hibernate çæ¬éè¦æç¡®ç对 <literal>Session</literal> è¿è¡ "
+"disconnect å reconnectãè¿äºæ¹æ³ç°å¨å·²ç»è¿æ¶äºï¼æå¼äºå¡åå
³éäºå¡ä¼èµ·å°åæ ·"
+"çææã"
#. Tag: para
-#: transactions.xml:769
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Keep the disconnected <literal>Session</literal> close to the persistence "
"layer. Use an EJB stateful session bean to hold the <literal>Session</"
@@ -1466,14 +1235,13 @@
"or even serialize it to a separate tier, to store it in the "
"<literal>HttpSession</literal>."
msgstr ""
-"æ¤å¤ï¼ä¹è¯·æ³¨æï¼ä½ åºè¯¥è®©ä¸æ°æ®åºè¿æ¥æå¼ç<literal>Session</literal>对æä¹
å±"
-"ä¿æ å
³éç¶æãæ¢å¥è¯è¯´ï¼å¨ä¸å±ç¯å¢ä¸ï¼ä½¿ç¨æç¶æçEJB session beanæ¥ææ"
-"<literal>Session</literal>ï¼ èä¸è¦æå®ä¼ éå°webå±ï¼çè³æå®åºååå°ä¸ä¸ªåç¬"
-"çå±ï¼ï¼ä¿åå¨<literal>HttpSession</literal>ä¸ã"
+"æ¤å¤ï¼ä¹è¯·æ³¨æï¼ä½ åºè¯¥è®©ä¸æ°æ®åºè¿æ¥æå¼ç <literal>Session</literal> 对æä¹
"
+"å±ä¿æå
³éç¶æãæ¢å¥è¯è¯´ï¼å¨ä¸å±ç¯å¢ä¸ï¼ä½¿ç¨æç¶æç EJB session bean æ¥æ æ"
+"<literal>Session</literal>ï¼ èä¸è¦æå®ä¼ éå° web å±ï¼çè³æå®åºååå°ä¸ä¸ªå"
+"ç¬çå±ï¼ï¼ä¿åå¨ <literal>HttpSession</literal> ä¸ã "
#. Tag: para
-#: transactions.xml:777
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The extended session pattern, or <emphasis>session-per-conversation</"
"emphasis>, is more difficult to implement with automatic current session "
@@ -1481,19 +1249,17 @@
"<literal>CurrentSessionContext</literal> for this. See the Hibernate Wiki "
"for examples."
msgstr ""
-"æ©å±session模å¼ï¼æè
被称为<emphasis>æ¯æ¬¡å¯¹è¯ä¸ä¸ªsession(session-per-"
-"conversation)</emphasis>, å¨ä¸èªå¨ç®¡çå½åsessionä¸ä¸æèç¨çæ¶å伿´å°é¾ãä½ "
-"éè¦æä¾ä½ èªå·±ç<literal>CurrentSessionContext</literal>å®ç°ã请åé
"
-"Hibernate Wiki以è·å¾ç¤ºä¾ã"
+"æ©å± session 模å¼ï¼æè
被称为<emphasis>æ¯æ¬¡å¯¹è¯ä¸ä¸ªsessionï¼session-per-"
+"conversationï¼</emphasis>ï¼èªå¨ç®¡çå½å session ä¸ä¸æèç¨çæ¶å伿´å°é¾ãä½ "
+"éè¦æä¾ä½ èªå·±ç <literal>CurrentSessionContext</literal> å®ç°ã请åé
"
+"Hibernate Wiki 以è·å¾ç¤ºä¾ã "
#. Tag: title
-#: transactions.xml:787
#, no-c-format
msgid "Detached objects and automatic versioning"
-msgstr "è±ç®¡å¯¹è±¡(deatched object)åèªå¨çæ¬å"
+msgstr "è±ç®¡å¯¹è±¡ï¼deatched objectï¼åèªå¨çæ¬å"
#. Tag: para
-#: transactions.xml:789
#, no-c-format
msgid ""
"Each interaction with the persistent store occurs in a new <literal>Session</"
@@ -1504,72 +1270,53 @@
"<literal>Session.saveOrUpdate()</literal>, or <literal>Session.merge()</"
"literal>."
msgstr ""
-"è¿ç§æ¹å¼ä¸ï¼ä¸æä¹
ååå¨çæ¯æ¬¡äº¤äºé½åçå¨ä¸ä¸ªæ°ç<literal>Session</literal>"
-"ä¸ã ç¶èï¼å䏿ä¹
å对象å®ä¾å¯ä»¥å¨å¤æ¬¡ä¸æ°æ®åºç交äºä¸éç¨ãåºç¨ç¨åºæçºµè±ç®¡"
-"对象å®ä¾ çç¶æï¼è¿ä¸ªè±ç®¡å¯¹è±¡å®ä¾æåæ¯å¨å¦ä¸ä¸ª<literal>Session</literal> ä¸"
-"è½½å
¥çï¼ç¶å è°ç¨ <literal>Session.update()</literal>ï¼<literal>Session."
-"saveOrUpdate()</literal>, æè
<literal>Session.merge()</literal> æ¥éæ°å
³è"
-"该对象å®ä¾ã"
+"è¿ç§æ¹å¼ä¸ï¼ä¸æä¹
ååå¨çæ¯æ¬¡äº¤äºé½åçå¨ä¸ä¸ªæ°ç <literal>Session</"
+"literal> ä¸ãç¶èï¼å䏿ä¹
å对象å®ä¾å¯ä»¥å¨å¤æ¬¡ä¸æ°æ®åºç交äºä¸éç¨ãåºç¨ç¨åº"
+"æçºµè±ç®¡å¯¹è±¡å®ä¾ çç¶æï¼è¿ä¸ªè±ç®¡å¯¹è±¡å®ä¾æåæ¯å¨å¦ä¸ä¸ª <literal>Session</"
+"literal> ä¸è½½å
¥çï¼ç¶åè°ç¨ <literal>Session.update()</literal>ï¼"
+"<literal>Session.saveOrUpdate()</literal>ï¼æè
<literal>Session.merge()</"
+"literal> æ¥éæ°å
³è该对象å®ä¾ã"
-#. Tag: programlisting
-#: transactions.xml:797
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[// foo is an instance loaded by a previous Session\n"
-"foo.setProperty(\"bar\");\n"
-"session = factory.openSession();\n"
-"Transaction t = session.beginTransaction();\n"
-"session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been loaded "
-"already\n"
-"t.commit();\n"
-"session.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: transactions.xml:799
-#, fuzzy, no-c-format
-msgid ""
"Again, Hibernate will check instance versions during flush, throwing an "
"exception if conflicting updates occurred."
msgstr ""
-"Hibernateä¼å䏿¬¡å¨åæ¥çæ¶åæ£æ¥å¯¹è±¡å®ä¾ççæ¬ï¼å¦æåçæ´æ°å²çªï¼å°±æåºå¼"
-"常ã"
+"Hibernate ä¼å䏿¬¡å¨åæ¥çæ¶åæ£æ¥å¯¹è±¡å®ä¾ççæ¬ï¼å¦æåçæ´æ°å²çªï¼å°±æåºå¼"
+"常ã "
#. Tag: para
-#: transactions.xml:804
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also call <literal>lock()</literal> instead of <literal>update()</"
"literal>, and use <literal>LockMode.READ</literal> (performing a version "
"check and bypassing all caches) if you are sure that the object has not been "
"modified."
msgstr ""
-"å¦æä½ ç¡®ä¿¡å¯¹è±¡æ²¡æè¢«ä¿®æ¹è¿ï¼ä½ ä¹å¯ä»¥è°ç¨<literal>lock()</literal> æ¥è®¾ç½® "
-"<literal>LockMode.READ</literal>ï¼ç»è¿ææçç¼åï¼æ§è¡çæ¬æ£æ¥ï¼ï¼ä»èå 代 "
-"<literal>update()</literal>æä½ã"
+"å¦æä½ ç¡®ä¿¡å¯¹è±¡æ²¡æè¢«ä¿®æ¹è¿ï¼ä½ ä¹å¯ä»¥è°ç¨ <literal>lock()</literal> æ¥è®¾ç½® "
+"<literal>LockMode.READ</literal>ï¼ç»è¿ææçç¼åï¼æ§è¡çæ¬æ£æ¥ï¼ï¼ä»èå代 "
+"<literal>update()</literal> æä½ã "
#. Tag: title
-#: transactions.xml:813
#, no-c-format
msgid "Customizing automatic versioning"
msgstr "å®å¶èªå¨çæ¬åè¡ä¸º"
#. Tag: para
-#: transactions.xml:815
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can disable Hibernate's automatic version increment for particular "
"properties and collections by setting the <literal>optimistic-lock</literal> "
"mapping attribute to <literal>false</literal>. Hibernate will then no longer "
"increment versions if the property is dirty."
msgstr ""
-"对äºç¹å®ç屿§åéåï¼éè¿ä¸ºå®ä»¬è®¾ç½®æ å°å±æ§<literal>optimistic-lock</"
-"literal>çå¼ ä¸º<literal>false</literal>ï¼æ¥ç¦æ¢Hibernateççæ¬èªå¨å¢å ãè¿æ ·"
-"çè¯ï¼å¦æè¯¥å±æ§ èæ°æ®ï¼Hibernateå°ä¸åå¢å çæ¬å·ã"
+"对äºç¹å®ç屿§åéåï¼éè¿ä¸ºå®ä»¬è®¾ç½®æ å°å±æ§ <literal>optimistic-lock</"
+"literal> çå¼ä¸º <literal>false</literal>ï¼æ¥ç¦æ¢ Hibernate ççæ¬èªå¨å¢å ãè¿"
+"æ ·çè¯ï¼å¦æè¯¥å±æ§èæ°æ®ï¼Hibernate å°ä¸åå¢å çæ¬å·ã "
#. Tag: para
-#: transactions.xml:822
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Legacy database schemas are often static and cannot be modified. Or, other "
"applications might access the same database and will not know how to handle "
@@ -1582,31 +1329,29 @@
"long <literal>Session</literal> and not session-per-request-with-detached-"
"objects)."
msgstr ""
-"éçç³»ç»çæ°æ®åºSchemaé常æ¯éæçï¼ä¸å¯ä¿®æ¹çãæè
ï¼å
¶ä»åºç¨ç¨åºä¹å¯è½è®¿é®"
-"å䏿°æ® åºï¼æ ¹æ¬æ æ³å¾ç¥å¦ä½å¤ççæ¬å·ï¼çè³æ¶é´æ³ãå¨ä»¥ä¸çææåºæ¯ä¸ï¼å®ç°"
-"çæ¬åä¸è½ä¾é æ°æ®åºè¡¨çæä¸ªç¹å®åãå¨<literal><class></literal>çæ å°"
-"ä¸è®¾ç½® <literal>optimistic-lock=\"all\"</literal>å¯ä»¥å¨æ²¡æçæ¬æè
æ¶é´æ³å±æ§"
-"æ å°çæ
åµä¸å®ç° çæ¬æ£æ¥ï¼æ¤æ¶Hibernateå°æ¯è¾ä¸è¡è®°å½çæ¯ä¸ªå段çç¶æã请注"
-"æï¼åªæå½Hibernateè½å¤æ¯ è¾æ°æ§ç¶æçæ
åµä¸ï¼è¿ç§æ¹å¼æè½çæï¼ä¹å°±æ¯è¯´ï¼ ä½ "
-"å¿
须使ç¨å个é¿çå½å¨æ<literal>Session</literal>模å¼ï¼èä¸è½ä½¿ç¨ session-per-"
-"request-with-detached-objects模å¼ã"
+"éçç³»ç»çæ°æ®åº Schema é常æ¯éæçï¼ä¸å¯ä¿®æ¹çãæè
ï¼å
¶ä»åºç¨ç¨åºä¹å¯è½è®¿"
+"é®å䏿°æ®åºï¼æ ¹æ¬æ æ³å¾ç¥å¦ä½å¤ççæ¬å·ï¼çè³æ¶é´æ³ãå¨ä»¥ä¸çææåºæ¯ä¸ï¼å®"
+"ç°çæ¬åä¸è½ä¾é æ°æ®åºè¡¨çæä¸ªç¹å®åãå¨ <literal><class></literal> ç"
+"æ å°ä¸è®¾ç½® <literal>optimistic-lock=\"all\"</literal> å¯ä»¥å¨æ²¡æçæ¬æè
æ¶é´"
+"æ³å±æ§æ å°çæ
åµä¸å®ç°çæ¬æ£æ¥ï¼æ¤æ¶ Hibernate å°æ¯è¾ä¸è¡è®°å½çæ¯ä¸ªå段çç¶"
+"æã请注æï¼åªæå½ Hibernate è½å¤æ¯è¾æ°æ§ç¶æçæ
åµä¸ï¼è¿ç§æ¹å¼æè½çæï¼ä¹å°±"
+"æ¯è¯´ï¼ä½ å¿
须使ç¨å个é¿çå½å¨æ <literal>Session</literal> 模å¼ï¼èä¸è½ä½¿ç¨ "
+"session-per-request-with-detached-objects 模å¼ã "
#. Tag: para
-#: transactions.xml:834
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Concurrent modification can be permitted in instances where the changes that "
"have been made do not overlap. If you set <literal>optimistic-lock=\"dirty"
"\"</literal> when mapping the <literal><class></literal>, Hibernate "
"will only compare dirty fields during flush."
msgstr ""
-"æäºæ
åµä¸ï¼åªè¦æ´æ¹ä¸åç交éï¼å¹¶åä¿®æ¹ä¹æ¯å
许çãå½ä½ å¨<literal><"
-"class></literal> çæ å°ä¸è®¾ç½®<literal>optimistic-lock=\"dirty\"</"
-"literal>ï¼Hibernateå¨åæ¥çæ¶åå°åªæ¯è¾æè æ°æ®çåæ®µã"
+"æäºæ
åµä¸ï¼åªè¦æ´æ¹ä¸åç交éï¼å¹¶åä¿®æ¹ä¹æ¯å
许çãå½ä½ å¨ <literal><"
+"class></literal> çæ å°ä¸è®¾ç½® <literal>optimistic-lock=\"dirty\"</"
+"literal>ï¼Hibernate å¨åæ¥çæ¶åå°åªæ¯è¾æèæ°æ®çåæ®µã "
#. Tag: para
-#: transactions.xml:840
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"In both cases, with dedicated version/timestamp columns or with a full/dirty "
"field comparison, Hibernate uses a single <literal>UPDATE</literal> "
@@ -1622,25 +1367,23 @@
"before updating the row."
msgstr ""
"å¨ä»¥ä¸ææåºæ¯ä¸ï¼ä¸ç®¡æ¯ä¸é¨è®¾ç½®ä¸ä¸ªçæ¬/æ¶é´æ³åï¼è¿æ¯è¿è¡å
¨é¨å段/èæ°æ®å"
-"段æ¯è¾ï¼ Hibernateé½ä¼é对æ¯ä¸ªå®ä½å¯¹è±¡åé䏿¡<literal>UPDATE</literal>ï¼å¸¦æ"
-"ç¸åºç <literal>WHERE</literal>è¯å¥ ï¼çSQLè¯å¥æ¥æ§è¡çæ¬æ£æ¥åæ°æ®æ´æ°ã妿"
-"ä½ å¯¹å
³èå®ä½ 设置级èå
³ç³»ä½¿ç¨ä¼ ææ§æä¹
åï¼transitive persistenceï¼ï¼é£ä¹"
-"Hibernateå¯è½ä¼æ§è¡ä¸å¿
è¦çupdateè¯å¥ãè¿é叏䏿¯ä¸ªé®é¢ï¼ä½æ¯æ°æ®åºéé¢å¯¹"
-"<emphasis>on update</emphasis>ç¹ç« ç触åå¨å¯è½å¨è±ç®¡å¯¹è±¡æ²¡æä»»ä½æ´æ¹çæ
åµä¸"
-"被触åãå æ¤ï¼ä½ å¯ä»¥å¨ <literal><class></literal>çæ å°ä¸ï¼éè¿è®¾ç½®"
-"<literal>select-before-update=\"true\"</literal> æ¥å®å¶è¿ä¸è¡ä¸ºï¼å¼ºå¶"
-"Hibernate <literal>SELECT</literal>è¿ä¸ªå¯¹è±¡å®ä¾ï¼ä»èä¿è¯ï¼ 卿´æ°è®°å½ä¹åï¼"
-"对象çç¡®æ¯è¢«ä¿®æ¹è¿ã"
+"段æ¯è¾ï¼Hibernate é½ä¼é对æ¯ä¸ªå®ä½å¯¹è±¡åé䏿¡ <literal>UPDATE</literal>ï¼å¸¦"
+"æç¸åºç <literal>WHERE</literal> è¯å¥ ï¼ç SQL è¯å¥æ¥æ§è¡çæ¬æ£æ¥åæ°æ®æ´"
+"æ°ãå¦æä½ å¯¹å
³èå®ä½ 设置级èå
³ç³»ä½¿ç¨ä¼ ææ§æä¹
åï¼transitive persistenceï¼ï¼"
+"é£ä¹ Hibernate å¯è½ä¼æ§è¡ä¸å¿
è¦çupdateè¯å¥ãè¿é叏䏿¯ä¸ªé®é¢ï¼ä½æ¯æ°æ®åºé"
+"é¢å¯¹ <emphasis>on update</emphasis> ç¹ç« ç触åå¨å¯è½å¨è±ç®¡å¯¹è±¡æ²¡æä»»ä½æ´æ¹ç"
+"æ
åµä¸è¢«è§¦åãå æ¤ï¼ä½ å¯ä»¥å¨ <literal><class></literal> çæ å°ä¸ï¼éè¿"
+"设置<literal>select-before-update=\"true\"</literal> æ¥å®å¶è¿ä¸è¡ä¸ºï¼å¼ºå¶ "
+"Hibernate <literal>SELECT</literal> è¿ä¸ªå¯¹è±¡å®ä¾ï¼ä»èä¿è¯ï¼å¨æ´æ°è®°å½ä¹åï¼"
+"对象çç¡®æ¯è¢«ä¿®æ¹è¿ã "
#. Tag: title
-#: transactions.xml:858
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Pessimistic locking"
-msgstr "æ²è§éå®(Pessimistic Locking)"
+msgstr "æ²è§éå®ï¼Pessimistic Lockingï¼ "
#. Tag: para
-#: transactions.xml:860
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is not intended that users spend much time worrying about locking "
"strategies. It is usually enough to specify an isolation level for the JDBC "
@@ -1648,74 +1391,69 @@
"advanced users may wish to obtain exclusive pessimistic locks or re-obtain "
"locks at the start of a new transaction."
msgstr ""
-"ç¨æ·å
¶å®å¹¶ä¸éè¦è±å¾å¤ç²¾å廿
å¿éå®çç¥çé®é¢ãé常æ
åµä¸ï¼åªè¦ä¸ºJDBCè¿æ¥æ"
-"å®ä¸ä¸é 离级å«ï¼ç¶åè®©æ°æ®åºå»æå®ä¸åå°±å¤äºãç¶èï¼é«çº§ç¨æ·ææ¶å叿è¿è¡ä¸"
-"个æå®çæ²è§éå®ï¼ æè
å¨ä¸ä¸ªæ°çäºå¡å¯å¨çæ¶åï¼éæ°è¿è¡éå®ã"
+"ç¨æ·å
¶å®å¹¶ä¸éè¦è±å¾å¤ç²¾å廿
å¿éå®çç¥çé®é¢ãé常æ
åµä¸ï¼åªè¦ä¸º JDBC è¿æ¥"
+"æå®ä¸ä¸é离级å«ï¼ç¶åè®©æ°æ®åºå»æå®ä¸åå°±å¤äºãç¶èï¼é«çº§ç¨æ·ææ¶å叿è¿è¡"
+"ä¸ä¸ªæå®çæ²è§éå®ï¼æè
å¨ä¸ä¸ªæ°çäºå¡å¯å¨çæ¶åï¼éæ°è¿è¡éå®ã "
#. Tag: para
-#: transactions.xml:867
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate will always use the locking mechanism of the database; it never "
"lock objects in memory."
-msgstr "Hibernateæ»æ¯ä½¿ç¨æ°æ®åºçé宿ºå¶ï¼ä»ä¸å¨å
åä¸éå®å¯¹è±¡ï¼"
+msgstr "Hibernate æ»æ¯ä½¿ç¨æ°æ®åºçé宿ºå¶ï¼ä»ä¸å¨å
åä¸éå®å¯¹è±¡ã"
#. Tag: para
-#: transactions.xml:872
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>LockMode</literal> class defines the different lock levels that "
"can be acquired by Hibernate. A lock is obtained by the following mechanisms:"
msgstr ""
-"ç±»<literal>LockMode</literal> å®ä¹äºHibernateæéçä¸åçéå®çº§å«ãä¸ä¸ªéå® "
-"å¯ä»¥éè¿ä»¥ä¸çæºå¶æ¥è®¾ç½®:"
+"ç±» <literal>LockMode</literal> å®ä¹äº Hibernate æéçä¸åçéå®çº§å«ãä¸ä¸ªé"
+"å®å¯ä»¥éè¿ä»¥ä¸çæºå¶æ¥è®¾ç½®ï¼"
#. Tag: para
-#: transactions.xml:879
#, no-c-format
msgid ""
"<literal>LockMode.WRITE</literal> is acquired automatically when Hibernate "
"updates or inserts a row."
msgstr ""
-"å½Hibernateæ´æ°æè
æå
¥ä¸è¡è®°å½çæ¶åï¼éå®çº§å«èªå¨è®¾ç½®ä¸º<literal>LockMode."
-"WRITE</literal>ã"
+"å½ Hibernate æ´æ°æè
æå
¥ä¸è¡è®°å½çæ¶åï¼éå®çº§å«èªå¨è®¾ç½®ä¸º "
+"<literal>LockMode.WRITE</literal>ã"
#. Tag: para
-#: transactions.xml:885
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE</literal> can be acquired upon explicit user "
"request using <literal>SELECT ... FOR UPDATE</literal> on databases which "
"support that syntax."
msgstr ""
-"å½ç¨æ·æ¾å¼çä½¿ç¨æ°æ®åºæ¯æçSQLæ ¼å¼<literal>SELECT ... FOR UPDATE</literal> "
-"åéSQLçæ¶åï¼éå®çº§å«è®¾ç½®ä¸º<literal>LockMode.UPGRADE</literal>"
+"å½ç¨æ·æ¾å¼çä½¿ç¨æ°æ®åºæ¯æç SQL æ ¼å¼ <literal>SELECT ... FOR UPDATE</"
+"literal> åé SQL çæ¶åï¼éå®çº§å«è®¾ç½®ä¸º <literal>LockMode.UPGRADE</"
+"literal>ã "
#. Tag: para
-#: transactions.xml:891
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.UPGRADE_NOWAIT</literal> can be acquired upon explicit "
"user request using a <literal>SELECT ... FOR UPDATE NOWAIT</literal> under "
"Oracle."
msgstr ""
-"å½ç¨æ·æ¾å¼ç使ç¨Oracleæ°æ®åºçSQLè¯å¥<literal>SELECT ... FOR UPDATE NOWAIT</"
-"literal> çæ¶åï¼éå®çº§å«è®¾ç½®<literal>LockMode.UPGRADE_NOWAIT</literal>"
+"å½ç¨æ·æ¾å¼çä½¿ç¨ Oracle æ°æ®åºç SQL è¯å¥ <literal>SELECT ... FOR UPDATE "
+"NOWAIT</literal> çæ¶åï¼éå®çº§å«è®¾ç½® <literal>LockMode.UPGRADE_NOWAIT</"
+"literal>ã "
#. Tag: para
-#: transactions.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>LockMode.READ</literal> is acquired automatically when Hibernate "
"reads data under Repeatable Read or Serializable isolation level. It can be "
"re-acquired by explicit user request."
msgstr ""
-"å½Hibernateå¨âå¯éå¤è¯»âæè
æ¯âåºååâæ°æ®åºé离级å«ä¸è¯»åæ°æ®çæ¶åï¼é宿¨¡"
-"å¼ èªå¨è®¾ç½®ä¸º<literal>LockMode.READ</literal>ãè¿ç§æ¨¡å¼ä¹å¯ä»¥éè¿ç¨æ·æ¾å¼æå®"
-"è¿è¡è®¾ç½®ã"
+"å½ Hibernate å¨âå¯éå¤è¯»âæè
æ¯âåºååâæ°æ®åºé离级å«ä¸è¯»åæ°æ®çæ¶åï¼é宿¨¡"
+"å¼èªå¨è®¾ç½®ä¸º <literal>LockMode.READ</literal>ãè¿ç§æ¨¡å¼ä¹å¯ä»¥éè¿ç¨æ·æ¾å¼æå®"
+"è¿è¡è®¾ç½®ã "
#. Tag: para
-#: transactions.xml:904
#, no-c-format
msgid ""
"<literal>LockMode.NONE</literal> represents the absence of a lock. All "
@@ -1724,41 +1462,37 @@
"</literal> or <literal>saveOrUpdate()</literal> also start out in this lock "
"mode."
msgstr ""
-"<literal>LockMode.NONE</literal> 代表æ ééå®ãå¨<literal>Transaction</"
-"literal>ç»ææ¶ï¼ ææç对象é½åæ¢å°è¯¥æ¨¡å¼ä¸æ¥ãä¸sessionç¸å
³èç对象éè¿è°ç¨"
-"<literal>update()</literal> æè
<literal>saveOrUpdate()</literal>è±ç¦»è¯¥æ¨¡å¼ã"
+"<literal>LockMode.NONE</literal> 代表æ ééå®ãå¨ <literal>Transaction</"
+"literal> ç»ææ¶ï¼ ææç对象é½åæ¢å°è¯¥æ¨¡å¼ä¸æ¥ãä¸ session ç¸å
³èç对象éè¿è°"
+"ç¨ <literal>update()</literal> æè
<literal>saveOrUpdate()</literal> è±ç¦»è¯¥"
+"模å¼ã"
#. Tag: para
-#: transactions.xml:913
#, no-c-format
msgid ""
"The \"explicit user request\" is expressed in one of the following ways:"
-msgstr "\"æ¾å¼çç¨æ·æå®\"å¯ä»¥éè¿ä»¥ä¸å ç§æ¹å¼ä¹ä¸æ¥è¡¨ç¤º:"
+msgstr "\"æ¾å¼çç¨æ·æå®\"å¯ä»¥éè¿ä»¥ä¸å ç§æ¹å¼ä¹ä¸æ¥è¡¨ç¤ºï¼"
#. Tag: para
-#: transactions.xml:919
#, no-c-format
msgid ""
"A call to <literal>Session.load()</literal>, specifying a <literal>LockMode</"
"literal>."
msgstr ""
-"è°ç¨ <literal>Session.load()</literal>çæ¶åæå®<literal>é宿¨¡å¼(LockMode)</"
-"literal>ã"
+"è°ç¨ <literal>Session.load()</literal> çæ¶åæå®<literal>é宿¨¡å¼"
+"ï¼LockModeï¼</literal>ã"
#. Tag: para
-#: transactions.xml:924
#, no-c-format
msgid "A call to <literal>Session.lock()</literal>."
-msgstr "è°ç¨<literal>Session.lock()</literal>ã"
+msgstr "è°ç¨ <literal>Session.lock()</literal>ã"
#. Tag: para
-#: transactions.xml:929
#, no-c-format
msgid "A call to <literal>Query.setLockMode()</literal>."
-msgstr "è°ç¨<literal>Query.setLockMode()</literal>ã"
+msgstr "è°ç¨ <literal>Query.setLockMode()</literal>ã"
#. Tag: para
-#: transactions.xml:935
#, no-c-format
msgid ""
"If <literal>Session.load()</literal> is called with <literal>UPGRADE</"
@@ -1769,16 +1503,15 @@
"than the one requested, Hibernate calls <literal>lock()</literal> for that "
"object."
msgstr ""
-"妿å¨<literal>UPGRADE</literal>æè
<literal>UPGRADE_NOWAIT</literal>é宿¨¡å¼"
-"ä¸è° ç¨<literal>Session.load()</literal>ï¼å¹¶ä¸è¦è¯»åçå¯¹è±¡å°æªè¢«sessionè½½å
¥"
-"è¿ï¼é£ä¹å¯¹è±¡ éè¿<literal>SELECT ... FOR UPDATE</literal>è¿æ ·çSQLè¯å¥è¢«è½½"
-"å
¥ãå¦æä¸ºä¸ä¸ªå¯¹è±¡è°ç¨ <literal>load()</literal>æ¹æ³æ¶ï¼è¯¥å¯¹è±¡å·²ç»å¨å¦ä¸ä¸ªè¾"
-"å°éå¶çé宿¨¡å¼ä¸è¢«è½½å
¥äºï¼é£ ä¹Hibernate就对该对象è°ç¨<literal>lock()</"
-"literal> æ¹æ³ã"
+"å¦æå¨ <literal>UPGRADE</literal> æè
<literal>UPGRADE_NOWAIT</literal> éå®"
+"模å¼ä¸è°ç¨ <literal>Session.load()</literal>ï¼å¹¶ä¸è¦è¯»åçå¯¹è±¡å°æªè¢« session "
+"è½½å
¥è¿ï¼é£ä¹å¯¹è±¡éè¿ <literal>SELECT ... FOR UPDATE</literal> è¿æ ·ç SQL è¯å¥"
+"被载å
¥ãå¦æä¸ºä¸ä¸ªå¯¹è±¡è°ç¨ <literal>load()</literal> æ¹æ³æ¶ï¼è¯¥å¯¹è±¡å·²ç»å¨å¦"
+"ä¸ä¸ªè¾å°éå¶çé宿¨¡å¼ä¸è¢«è½½å
¥äºï¼é£ä¹ Hibernate 就对该对象è°ç¨ "
+"<literal>lock()</literal> æ¹æ³ã"
#. Tag: para
-#: transactions.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>Session.lock()</literal> performs a version number check if the "
"specified lock mode is <literal>READ</literal>, <literal>UPGRADE</literal> "
@@ -1786,32 +1519,29 @@
"literal> or <literal>UPGRADE_NOWAIT</literal>, <literal>SELECT ... FOR "
"UPDATE</literal> is used."
msgstr ""
-"妿æå®çé宿¨¡å¼æ¯<literal>READ</literal>, <literal>UPGRADE</literal> æ "
-"<literal>UPGRADE_NOWAIT</literal>ï¼é£ä¹<literal>Session.lock()</literal>å°± æ§"
-"è¡çæ¬å·æ£æ¥ãï¼å¨<literal>UPGRADE</literal> æè
<literal>UPGRADE_NOWAIT</"
-"literal> é宿¨¡å¼ä¸ï¼æ§è¡<literal>SELECT ... FOR UPDATE</literal>è¿æ ·çSQLè¯"
-"å¥ãï¼"
+"妿æå®çé宿¨¡å¼æ¯ <literal>READ</literal>ï¼<literal>UPGRADE</literal> æ "
+"<literal>UPGRADE_NOWAIT</literal>ï¼é£ä¹ <literal>Session.lock()</literal> å°±"
+"æ§è¡çæ¬å·æ£æ¥ãï¼å¨ <literal>UPGRADE</literal> æè
"
+"<literal>UPGRADE_NOWAIT</literal> é宿¨¡å¼ä¸ï¼æ§è¡ <literal>SELECT ... FOR "
+"UPDATE</literal>è¿æ ·çSQLè¯å¥ãï¼"
#. Tag: para
-#: transactions.xml:951
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If the requested lock mode is not supported by the database, Hibernate uses "
"an appropriate alternate mode instead of throwing an exception. This ensures "
"that applications are portable."
msgstr ""
-"å¦ææ°æ®åºä¸æ¯æç¨æ·è®¾ç½®çé宿¨¡å¼ï¼Hibernateå°ä½¿ç¨éå½çæ¿ä»£æ¨¡å¼ï¼è䏿¯æåº"
-"å¼å¸¸ï¼ã è¿ä¸ç¹å¯ä»¥ç¡®ä¿åºç¨ç¨åºçå¯ç§»æ¤æ§ã"
+"å¦ææ°æ®åºä¸æ¯æç¨æ·è®¾ç½®çé宿¨¡å¼ï¼Hibernate å°ä½¿ç¨éå½çæ¿ä»£æ¨¡å¼ï¼è䏿¯æ"
+"åºå¼å¸¸ï¼ãè¿ä¸ç¹å¯ä»¥ç¡®ä¿åºç¨ç¨åºçå¯ç§»æ¤æ§ã "
#. Tag: title
-#: transactions.xml:960
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Connection release modes"
-msgstr "è¿æ¥éæ¾æ¨¡å¼(Connection Release Modes)"
+msgstr "è¿æ¥éæ¾æ¨¡å¼ï¼Connection Release Modesï¼ "
#. Tag: para
-#: transactions.xml:962
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"One of the legacies of Hibernate 2.x JDBC connection management meant that a "
"<literal>Session</literal> would obtain a connection when it was first "
@@ -1824,37 +1554,34 @@
"by the enumerated values of <literal>org.hibernate.ConnectionReleaseMode</"
"literal>:"
msgstr ""
-"Hibernateå
³äºJDBCè¿æ¥ç®¡ççæ§(2.x)è¡ä¸ºæ¯ï¼<literal>Session</literal>å¨ç¬¬ä¸æ¬¡"
-"éè¦çæ¶åè·åä¸ä¸ªè¿æ¥ï¼å¨sessionå
³éä¹åä¸ç´ä¼ææè¿ä¸ªè¿æ¥ãHibernateå¼å
¥äº"
-"è¿æ¥éæ¾çæ¦å¿µï¼æ¥åè¯sessionå¦ä½å¤çå®çJDBCè¿æ¥ã注æï¼ä¸é¢ç讨论åªéç¨äºé"
-"ç¨é
ç½®<literal>ConnectionProvider</literal>æ¥æä¾è¿æ¥çæ
åµï¼ç¨æ·èªå·±æä¾çè¿"
-"æ¥ä¸è¿éç讨论æ å
³ãéè¿<literal>org.hibernate.ConnectionReleaseMode</"
-"literal>çä¸åæä¸¾å¼æ¥ä½¿ç¨ä¸ç¨çéæ¾æ¨¡å¼:"
+"Hibernate å
³äº JDBC è¿æ¥ç®¡ççæ§ï¼2.xï¼è¡ä¸ºæ¯ï¼<literal>Session</literal> å¨"
+"ç¬¬ä¸æ¬¡éè¦çæ¶åè·åä¸ä¸ªè¿æ¥ï¼å¨ session å
³éä¹åä¸ç´ä¼ææè¿ä¸ªè¿æ¥ã"
+"Hibernate å¼å
¥äºè¿æ¥éæ¾çæ¦å¿µï¼æ¥åè¯ session å¦ä½å¤çå®ç JDBC è¿æ¥ã注æï¼"
+"ä¸é¢ç讨论åªéç¨äºéç¨é
ç½® <literal>ConnectionProvider</literal> æ¥æä¾è¿æ¥ç"
+"æ
åµï¼ç¨æ·èªå·±æä¾çè¿æ¥ä¸è¿éç讨论æ å
³ãéè¿ <literal>org.hibernate."
+"ConnectionReleaseMode</literal> çä¸åæä¸¾å¼æ¥ä½¿ç¨ä¸ç¨çéæ¾æ¨¡å¼ï¼"
#. Tag: para
-#: transactions.xml:976
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>ON_CLOSE</literal>: is the legacy behavior described above. The "
"Hibernate session obtains a connection when it first needs to perform some "
"JDBC access and maintains that connection until the session is closed."
msgstr ""
-"<literal>ON_CLOSE</literal> - åºæ¬ä¸å°±æ¯ä¸é¢æå°çèå¼è¡ä¸ºãHibernate session"
-"å¨ç¬¬ä¸æ¬¡éè¦è¿è¡JDBCæä½çæ¶åè·åè¿æ¥ï¼ç¶åææå®ï¼ç´å°sessionå
³éã"
+"<literal>ON_CLOSE</literal>ï¼åºæ¬ä¸å°±æ¯ä¸é¢æå°çèå¼è¡ä¸ºãHibernate session "
+"å¨ç¬¬ä¸æ¬¡éè¦è¿è¡ JDBC æä½çæ¶åè·åè¿æ¥ï¼ç¶åææå®ï¼ç´å° session å
³éã"
#. Tag: para
-#: transactions.xml:983
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_TRANSACTION</literal>: releases connections after a "
"<literal>org.hibernate.Transaction</literal> has been completed."
msgstr ""
-"<literal>AFTER_TRANSACTION</literal> - å¨<literal>org.hibernate.Transaction</"
-"literal>ç»æåéæ¾è¿æ¥ã"
+"<literal>AFTER_TRANSACTION</literal>ï¼å¨ <literal>org.hibernate.Transaction</"
+"literal> ç»æåéæ¾è¿æ¥ã"
#. Tag: para
-#: transactions.xml:989
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>AFTER_STATEMENT</literal> (also referred to as aggressive release): "
"releases connections after every statement execution. This aggressive "
@@ -1862,24 +1589,22 @@
"the given session. Currently the only situation where this occurs is through "
"the use of <literal>org.hibernate.ScrollableResults</literal>."
msgstr ""
-"<literal>AFTER_STATEMENT</literal> (ä¹è¢«ç§°å积æéæ¾) - 卿¯ä¸æ¡è¯å¥è¢«æ§è¡å"
-"å°±éæ¾è¿æ¥ãä½åè¥è¯å¥çä¸äºä¸sessionç¸å
³çèµæºï¼é£å°±ä¸ä¼è¢«éæ¾ãç®åå¯ä¸çè¿"
-"ç§æ
形就æ¯ä½¿ç¨<literal>org.hibernate.ScrollableResults</literal>ã"
+"<literal>AFTER_STATEMENT</literal>ï¼ä¹è¢«ç§°å积æéæ¾ï¼ï¼å¨æ¯ä¸æ¡è¯å¥è¢«æ§è¡å"
+"å°±éæ¾è¿æ¥ãä½åè¥è¯å¥çä¸äºä¸ session ç¸å
³çèµæºï¼é£å°±ä¸ä¼è¢«éæ¾ãç®åå¯ä¸ç"
+"è¿ç§æ
形就æ¯ä½¿ç¨ <literal>org.hibernate.ScrollableResults</literal>ã"
#. Tag: para
-#: transactions.xml:999
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The configuration parameter <literal>hibernate.connection.release_mode</"
"literal> is used to specify which release mode to use. The possible values "
"are as follows:"
msgstr ""
-"<literal>hibernate.connection.release_mode</literal>é
ç½®åæ°ç¨æ¥æå®ä½¿ç¨åªä¸"
-"ç§éæ¾æ¨¡å¼ãå¯è½ç弿ï¼"
+"<literal>hibernate.connection.release_mode</literal> é
ç½®åæ°ç¨æ¥æå®ä½¿ç¨åªä¸"
+"ç§éæ¾æ¨¡å¼ãå¯è½çå¼æï¼ "
#. Tag: para
-#: transactions.xml:1006
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>auto</literal> (the default): this choice delegates to the release "
"mode returned by the <literal>org.hibernate.transaction.TransactionFactory."
@@ -1889,26 +1614,24 @@
"default behavior as failures due to the value of this setting tend to "
"indicate bugs and/or invalid assumptions in user code."
msgstr ""
-"<literal>auto</literal>(é»è®¤) - è¿ä¸éæ©æéæ¾æ¨¡å¼å§æ´¾ç»<literal>org."
-"hibernate.transaction.TransactionFactory.getDefaultReleaseMode()</literal>æ¹"
-"æ³ã对JTATransactionFactoryæ¥è¯´ï¼å®ä¼è¿åConnectionReleaseMode."
-"AFTER_STATEMENT;对JDBCTransactionFactoryæ¥è¯´ï¼åæ¯ConnectionReleaseMode."
-"AFTER_TRANSACTIONãå¾å°éè¦ä¿®æ¹è¿ä¸é»è®¤è¡ä¸ºï¼å 为åè¥è®¾ç½®ä¸å½ï¼å°±ä¼å¸¦æ¥bugï¼"
+"<literal>auto</literal>ï¼é»è®¤ï¼ï¼è¿ä¸éæ©æéæ¾æ¨¡å¼å§æ´¾ç» <literal>org."
+"hibernate.transaction.TransactionFactory.getDefaultReleaseMode()</literal> æ¹"
+"æ³ã对 JTATransactionFactory æ¥è¯´ï¼å®ä¼è¿å ConnectionReleaseMode."
+"AFTER_STATEMENTï¼å¯¹ãJDBCTransactionFactoryãæ¥è¯´ï¼åæ¯ConnectionReleaseMode."
+"AFTER_TRANSACTIONãå¾å°éè¦ä¿®æ¹è¿ä¸é»è®¤è¡ä¸ºï¼å 为åè¥è®¾ç½®ä¸å½ï¼å°±ä¼å¸¦æ¥ bugï¼"
"æè
ç»ç¨æ·ä»£ç 带æ¥è¯¯å¯¼ã"
#. Tag: para
-#: transactions.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>on_close</literal>: uses ConnectionReleaseMode.ON_CLOSE. This "
"setting is left for backwards compatibility, but its use is discouraged."
msgstr ""
-"<literal>on_close</literal> - ä½¿ç¨ ConnectionReleaseMode.ON_CLOSE. è¿ç§æ¹å¼æ¯"
+"<literal>on_close</literal>ï¼ä½¿ç¨ ConnectionReleaseMode.ON_CLOSEãè¿ç§æ¹å¼æ¯"
"为äºåä¸å
¼å®¹ç,使¯å·²ç»å®å
¨ä¸è¢«é¼å±ä½¿ç¨äºã"
#. Tag: para
-#: transactions.xml:1022
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_transaction</literal>: uses ConnectionReleaseMode."
"AFTER_TRANSACTION. This setting should not be used in JTA environments. Also "
@@ -1916,14 +1639,13 @@
"considered to be in auto-commit mode, connections will be released as if the "
"release mode were AFTER_STATEMENT."
msgstr ""
-"<literal>after_transaction</literal> - 使ç¨ConnectionReleaseMode."
-"AFTER_TRANSACTIONãè¿ä¸è®¾ç½®ä¸åºè¯¥å¨JTAç¯å¢ä¸ä½¿ç¨ãä¹è¦æ³¨æï¼ä½¿ç¨"
-"ConnectionReleaseMode.AFTER_TRANSACTIONçæ¶åï¼åè¥session å¤äºauto-commitç¶"
-"æï¼è¿æ¥ä¼åAFTER_STATEMENT飿 ·è¢«éæ¾ã"
+"<literal>after_transaction</literal>ï¼ä½¿ç¨ ConnectionReleaseMode."
+"AFTER_TRANSACTIONãè¿ä¸è®¾ç½®ä¸åºè¯¥å¨ JTA ç¯å¢ä¸ä½¿ç¨ãä¹è¦æ³¨æï¼ä½¿ç¨ "
+"ConnectionReleaseMode.AFTER_TRANSACTION çæ¶åï¼åè¥session å¤äº auto-commit "
+"ç¶æï¼è¿æ¥ä¼å AFTER_STATEMENT 飿 ·è¢«éæ¾ã"
#. Tag: para
-#: transactions.xml:1030
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>after_statement</literal>: uses ConnectionReleaseMode."
"AFTER_STATEMENT. Additionally, the configured <literal>ConnectionProvider</"
@@ -1935,11 +1657,281 @@
"getConnection()</literal> or in auto-commit environments where it does not "
"matter if we re-establish the same connection."
msgstr ""
-"<literal>after_statement</literal> - 使ç¨ConnectionReleaseMode."
-"AFTER_STATEMENTã餿¤ä¹å¤ï¼ä¼æ¥è¯¢é
ç½®ç<literal>ConnectionProvider</"
-"literal>ï¼æ¯å¦å®æ¯æè¿ä¸è®¾ç½®ï¼(<literal>supportsAggressiveRelease()</"
-"literal>)ï¼ãåè¥ä¸æ¯æï¼éæ¾æ¨¡å¼ä¼è¢«è®¾ç½®ä¸ºConnectionReleaseMode."
-"AFTER_TRANSACTIONãåªæå¨ä½ æ¯æ¬¡è°ç¨<literal>ConnectionProvider.getConnection"
-"()</literal>è·ååºå±JDBCè¿æ¥çæ¶åï¼é½å¯ä»¥ç¡®ä¿¡è·å¾åä¸ä¸ªè¿æ¥çæ¶åï¼è¿ä¸è®¾ç½®"
-"ææ¯å®å
¨çï¼æè
å¨auto-commitç¯å¢ä¸ï¼ä½ å¯ä»¥ä¸ç®¡æ¯å¦æ¯æ¬¡é½è·å¾åä¸ä¸ªè¿æ¥çæ¶"
-"åï¼è¿ææ¯å®å
¨çã"
+"<literal>after_statement</literal>ï¼ä½¿ç¨ ConnectionReleaseMode."
+"AFTER_STATEMENTã餿¤ä¹å¤ï¼ä¼æ¥è¯¢é
ç½®ç <literal>ConnectionProvider</"
+"literal>ï¼æ¯å¦å®æ¯æè¿ä¸è®¾ç½®ï¼<literal>supportsAggressiveRelease()</"
+"literal>ï¼ãåè¥ä¸æ¯æï¼éæ¾æ¨¡å¼ä¼è¢«è®¾ç½®ä¸º ConnectionReleaseMode."
+"AFTER_TRANSACTIONãåªæå¨ä½ æ¯æ¬¡è°ç¨ <literal>ConnectionProvider."
+"getConnection()</literal> è·ååºå± JDBC è¿æ¥çæ¶åï¼é½å¯ä»¥ç¡®ä¿¡è·å¾åä¸ä¸ªè¿æ¥"
+"çæ¶åï¼è¿ä¸è®¾ç½®ææ¯å®å
¨çï¼æè
å¨ auto-commit ç¯å¢ä¸ï¼ä½ å¯ä»¥ä¸ç®¡æ¯å¦æ¯æ¬¡é½è·"
+"å¾åä¸ä¸ªè¿æ¥çæ¶åï¼è¿ææ¯å®å
¨çã"
+
+#~ msgid "foo==bar"
+#~ msgstr "foo==bar"
+
+#~ msgid ""
+#~ "<![CDATA[// Non-managed environment idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[// Non-managed environment idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " factory.getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " factory.getCurrentSession().getTransaction().commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " factory.getCurrentSession().getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[// Non-managed environment idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " factory.getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " factory.getCurrentSession().getTransaction().commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " factory.getCurrentSession().getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// BMT idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[// BMT idiom\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "Transaction tx = null;\n"
+#~ "try {\n"
+#~ " tx = sess.beginTransaction();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " if (tx != null) tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// BMT idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " UserTransaction tx = (UserTransaction)new InitialContext()\n"
+#~ " .lookup(\"java:comp/UserTransaction\");\n"
+#~ "\n"
+#~ " tx.begin();\n"
+#~ "\n"
+#~ " // Do some work on Session bound to transaction\n"
+#~ " factory.getCurrentSession().load(...);\n"
+#~ " factory.getCurrentSession().persist(...);\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[// BMT idiom with getCurrentSession()\n"
+#~ "try {\n"
+#~ " UserTransaction tx = (UserTransaction)new InitialContext()\n"
+#~ " .lookup(\"java:comp/UserTransaction\");\n"
+#~ "\n"
+#~ " tx.begin();\n"
+#~ "\n"
+#~ " // Do some work on Session bound to transaction\n"
+#~ " factory.getCurrentSession().load(...);\n"
+#~ " factory.getCurrentSession().persist(...);\n"
+#~ "\n"
+#~ " tx.commit();\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " tx.rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// CMT idiom\n"
+#~ " Session sess = factory.getCurrentSession();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "]]>"
+#~ msgstr ""
+#~ "<![CDATA[// CMT idiom\n"
+#~ " Session sess = factory.getCurrentSession();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "]]>"
+
+#~ msgid ""
+#~ "<![CDATA[\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "try {\n"
+#~ " //set transaction timeout to 3 seconds\n"
+#~ " sess.getTransaction().setTimeout(3);\n"
+#~ " sess.getTransaction().begin();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " sess.getTransaction().commit()\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " sess.getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[\n"
+#~ "Session sess = factory.openSession();\n"
+#~ "try {\n"
+#~ " //set transaction timeout to 3 seconds\n"
+#~ " sess.getTransaction().setTimeout(3);\n"
+#~ " sess.getTransaction().begin();\n"
+#~ "\n"
+#~ " // do some work\n"
+#~ " ...\n"
+#~ "\n"
+#~ " sess.getTransaction().commit()\n"
+#~ "}\n"
+#~ "catch (RuntimeException e) {\n"
+#~ " sess.getTransaction().rollback();\n"
+#~ " throw e; // or display error message\n"
+#~ "}\n"
+#~ "finally {\n"
+#~ " sess.close();\n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "\n"
+#~ "int oldVersion = foo.getVersion();\n"
+#~ "session.load( foo, foo.getKey() ); // load the current state\n"
+#~ "if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
+#~ "();\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "\n"
+#~ "int oldVersion = foo.getVersion();\n"
+#~ "session.load( foo, foo.getKey() ); // load the current state\n"
+#~ "if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException"
+#~ "();\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded earlier by the old session\n"
+#~ "Transaction t = session.beginTransaction(); // Obtain a new JDBC "
+#~ "connection, start transaction\n"
+#~ "\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "session.flush(); // Only for last transaction in conversation\n"
+#~ "t.commit(); // Also return JDBC connection\n"
+#~ "session.close(); // Only for last transaction in conversation]]>"
+#~ msgstr ""
+#~ "<![CDATA[// foo is an instance loaded earlier by the old session\n"
+#~ "Transaction t = session.beginTransaction(); // Obtain a new JDBC "
+#~ "connection, start transaction\n"
+#~ "\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "\n"
+#~ "session.flush(); // Only for last transaction in conversation\n"
+#~ "t.commit(); // Also return JDBC connection\n"
+#~ "session.close(); // Only for last transaction in conversation]]>"
+
+#~ msgid ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been "
+#~ "loaded already\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[// foo is an instance loaded by a previous Session\n"
+#~ "foo.setProperty(\"bar\");\n"
+#~ "session = factory.openSession();\n"
+#~ "Transaction t = session.beginTransaction();\n"
+#~ "session.saveOrUpdate(foo); // Use merge() if \"foo\" might have been "
+#~ "loaded already\n"
+#~ "t.commit();\n"
+#~ "session.close();]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/tutorial.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/tutorial.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/tutorial.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,23 +1,26 @@
+# translation of tutorial.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007, 2009.
+# translation of Collection_Mapping.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: tutorial\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-11T05:38:16\n"
+"PO-Revision-Date: 2010-01-11 10:56+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: tutorial.xml:31
#, no-c-format
msgid "Tutorial"
-msgstr ""
+msgstr "æç¨"
#. Tag: para
-#: tutorial.xml:33
#, no-c-format
msgid ""
"Intended for new users, this chapter provides an step-by-step introduction "
@@ -26,43 +29,44 @@
"Gloegl. All code is contained in the <filename>tutorials/web</filename> "
"directory of the project source."
msgstr ""
+"é¢åæ°ç¨æ·ï¼ä»ä¸ä¸ªç®åç使ç¨å
åæ°æ®åºçä¾åå¼å§ï¼æ¬ç« æä¾å¯¹ Hibernate ç鿥"
+"ä»ç»ãæ¬æç¨åºäº Michael Gloegl æ©æç¼åçæåãææä»£ç é½å
å«å¨ "
+"<filename>tutorials/web</filename> ç®å½ä¸ã"
#. Tag: para
-#: tutorial.xml:42
#, no-c-format
msgid ""
"This tutorial expects the user have knowledge of both Java and SQL. If you "
"have a limited knowledge of JAVA or SQL, it is advised that you start with a "
"good introduction to that technology prior to attempting to learn Hibernate."
msgstr ""
+"æ¬æç¨ææç¨æ·å
·å¤ Java å SQL ç¥è¯ãå¦æä½ è¿æ¹é¢çç¥è¯æéï¼æä»¬å»ºè®®ä½ å¨å¦"
+"ä¹ Hibernate ä¹åå
好好äºè§£è¿äºææ¯ã"
#. Tag: para
-#: tutorial.xml:51
#, no-c-format
msgid ""
"The distribution contains another example application under the "
"<filename>tutorial/eg</filename> project source directory."
msgstr ""
+"æ¬çæ¬å¨æºä»£ç ç®å½ <filename>tutorial/eg</filename> ä¸è¿å
å«å¦å¤ä¸ä¸ªä¾ç¨ã"
#. Tag: title
-#: tutorial.xml:59
#, no-c-format
msgid "Part 1 - The first Hibernate Application"
-msgstr "第ä¸é¨å ï¼ ç¬¬ä¸ä¸ªHibernateåºç¨ç¨åº"
+msgstr "第ä¸é¨å ï¼ ç¬¬ä¸ä¸ª Hibernate åºç¨ç¨åº"
#. Tag: para
-#: tutorial.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For this example, we will set up a small database application that can store "
"events we want to attend and information about the host(s) of these events."
msgstr ""
-"å设æä»¬å¸ææä¸ä¸ªå°åºç¨ç¨åºå¯ä»¥ä¿åæä»¬å¸æåå çæ´»å¨ï¼eventsï¼åè¿äºæ´»å¨ä¸»"
-"åæ¹çç¸å
³ä¿¡æ¯ã ï¼è¯è
注ï¼å¨æ¬æç¨çåé¢é¨åï¼æä»¬å°ç´æ¥ä½¿ç¨eventè䏿¯å®ç"
-"ä¸æç¿»è¯âæ´»å¨âï¼ä»¥å
æ··æ·ãï¼"
+"å¨è¿ä¸ªä¾åéï¼æä»¬å°è®¾ç«ä¸ä¸ªå°åºç¨ç¨åºå¯ä»¥ä¿åæä»¬å¸æåå çæ´»å¨ï¼eventsï¼å"
+"è¿äºæ´»å¨ä¸»åæ¹çç¸å
³ä¿¡æ¯ãï¼è¯è
注ï¼å¨æ¬æç¨çåé¢é¨åï¼æä»¬å°ç´æ¥ä½¿ç¨ event "
+"è䏿¯å®çä¸æç¿»è¯âæ´»å¨âï¼ä»¥å
æ··æ·ãï¼"
#. Tag: para
-#: tutorial.xml:67
#, no-c-format
msgid ""
"Although you can use whatever database you feel comfortable using, we will "
@@ -70,15 +74,16 @@
"database) to avoid describing installation/setup of any particular database "
"servers."
msgstr ""
+"è½ç¶ä½ å¯ä»¥ä½¿ç¨ä»»ä½æ°æ®åºï¼æä»¬è¿æ¯ç¨ <ulink url=\"http://hsqldb.org/"
+"\">HSQLDB</ulink>ï¼ä¸ä¸ªç¨ Java ç¼åçå
åæ°æ®åºï¼æ¥é¿å
è±è´¹ç¯ç« å¯¹æ°æ®åºæå¡å¨"
+"çå®è£
/é
ç½®è¿è¡è§£éã"
#. Tag: title
-#: tutorial.xml:76
#, no-c-format
msgid "Setup"
-msgstr ""
+msgstr "设置"
#. Tag: para
-#: tutorial.xml:78
#, no-c-format
msgid ""
"The first thing we need to do is to set up the development environment. We "
@@ -90,72 +95,26 @@
"making use of <filename>src/main/java</filename>, <filename>src/main/"
"resources</filename> and <filename>src/main/webapp</filename> directories."
msgstr ""
+"æä»¬éè¦åç第ä¸ä»¶äºæ
æ¯è®¾ç½®å¼åç¯å¢ãæä»¬å°ä½¿ç¨è®¸å¤æå»ºå·¥å
·å¦ <ulink url="
+"\"http://maven.org\">Maven</ulink> æé¼å¹çâæ åæ ¼å¼âãç¹å«æ¯ Mavenï¼å®çèµæº"
+"对è¿ä¸ª<ulink url=\"http://maven.apache.org/guides/introduction/introduction-"
+"to-the-standard-directory-layout.html\">æ ¼å¼ï¼layoutï¼</ulink>æçå¾å¥½çæ"
+"è¿°ãå ä¸ºæ¬æç¨ä½¿ç¨çæ¯ web åºç¨ç¨åºï¼æä¹å°å建åä½¿ç¨ <filename>src/main/"
+"java</filename>ã<filename>src/main/resources</filename> å <filename>src/"
+"main/webapp</filename> ç®å½ã"
#. Tag: para
-#: tutorial.xml:88
#, no-c-format
msgid ""
"We will be using Maven in this tutorial, taking advantage of its transitive "
"dependency management capabilities as well as the ability of many IDEs to "
"automatically set up a project for us based on the maven descriptor."
msgstr ""
+"卿¬æç¨éæä»¬å°ä½¿ç¨ Mavenï¼å©ç¨å
¶ transitive dependency 管çä»¥åæ ¹æ® Maven "
+"æè¿°ç¬¦ç¨ IDE èªå¨è®¾ç½®é¡¹ç®çè½åã"
-#. Tag: programlisting
-#: tutorial.xml:94
-#, no-c-format
-msgid ""
-"<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven."
-"apache.org/xsd/maven-4.0.0.xsd\">\n"
-"\n"
-" <modelVersion>4.0.0</modelVersion>\n"
-"\n"
-" <groupId>org.hibernate.tutorials</groupId>\n"
-" <artifactId>hibernate-tutorial</artifactId>\n"
-" <version>1.0.0-SNAPSHOT</version>\n"
-" <name>First Hibernate Tutorial</name>\n"
-"\n"
-" <build>\n"
-" <!-- we dont want the version to be part of the generated war file "
-"name -->\n"
-" <finalName>${artifactId}</finalName>\n"
-" </build>\n"
-"\n"
-" <dependencies>\n"
-" <dependency>\n"
-" <groupId>org.hibernate</groupId>\n"
-" <artifactId>hibernate-core</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Because this is a web app, we also have a dependency on the "
-"servlet api. -->\n"
-" <dependency>\n"
-" <groupId>javax.servlet</groupId>\n"
-" <artifactId>servlet-api</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate uses slf4j for logging, for our purposes here use the "
-"simple backend -->\n"
-" <dependency>\n"
-" <groupId>org.slf4j</groupId>\n"
-" <artifactId>slf4j-simple</artifactId>\n"
-" </dependency>\n"
-"\n"
-" <!-- Hibernate gives you a choice of bytecode providers between "
-"cglib and javassist -->\n"
-" <dependency>\n"
-" <groupId>javassist</groupId>\n"
-" <artifactId>javassist</artifactId>\n"
-" </dependency>\n"
-" </dependencies>\n"
-"\n"
-"</project>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:97
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"It is not a requirement to use Maven. If you wish to use something else to "
"build this tutoial (such as Ant), the layout will remain the same. The only "
@@ -171,73 +130,38 @@
"javassist</filename> directory; additionally you will need both the servlet-"
"api jar and one of the slf4j logging backends."
msgstr ""
+"Maven å¹¶ä¸è¦æ±è¿æ ·ãå¦æä½ å¸æä½¿ç¨å
¶ä»ææ¯æ¥æå»ºè¿ä¸ªæç¨ï¼å¦ Antï¼ï¼æ ¼å¼å°ä¿"
+"æä¸åãå¯ä¸çæ¹åæ¯ä½ å°éè¦æå·¥ç®¡çææçä¾èµå
³ç³»ãå¦æä½ ä½¿ç¨ <ulink url="
+"\"http://ant.apache.org/ivy/\">Ivy</ulink> æ¥æä¾ transitive dependency 管"
+"çï¼ä½ å°ä»ç¶ä¸é¢æå°çä¾èµå
³ç³»ãå¦åï¼ä½ å°éè¦æ¾å°ææçä¾èµå
³ç³»ï¼æ¾æ§çåè¿"
+"渡çï¼å¹¶æå®ä»¬æ·»å å°é¡¹ç®ç classpath éãå¦æä½¿ç¨ Hibernate æç»çæ¬ï¼è¿æå³"
+"ç <filename>hibernate3.jar</filename>ã<filename>lib/required</filename> ç®"
+"å½ä¸çææ artifact å <filename>lib/bytecode/cglib</filename> æ "
+"<filename>lib/bytecode/javassist</filename> ä¸çæææä»¶ï¼æ¤å¤ä½ å°éè¦ "
+"servlet-api jar åä¸ä¸ª slf4j æ¥å¿åå°æä»¶ã "
#. Tag: para
-#: tutorial.xml:114
#, no-c-format
msgid ""
"Save this file as <filename>pom.xml</filename> in the project root directory."
-msgstr ""
+msgstr "æè¿ä¸ªæä»¶ä¿åä¸ºé¡¹ç®æ ¹ç®å½ä¸ç <filename>pom.xml</filename>ã"
#. Tag: title
-#: tutorial.xml:121
#, no-c-format
msgid "The first class"
-msgstr "第ä¸ä¸ªclass"
+msgstr "第ä¸ä¸ª class"
#. Tag: para
-#: tutorial.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, we create a class that represents the event we want to store in the "
"database; it is a simple JavaBean class with some properties:"
-msgstr "æ¥ä¸æ¥æä»¬å建ä¸ä¸ªç±»ï¼ç¨æ¥ä»£è¡¨é£äºæä»¬å¸æå¨å卿°æ®åºéçeventã"
-
-#. Tag: programlisting
-#: tutorial.xml:128
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"import java.util.Date;\n"
-"\n"
-"public class Event {\n"
-" private Long id;\n"
-"\n"
-" private String title;\n"
-" private Date date;\n"
-"\n"
-" public Event() {}\n"
-"\n"
-" public Long getId() {\n"
-" return id;\n"
-" }\n"
-"\n"
-" private void setId(Long id) {\n"
-" this.id = id;\n"
-" }\n"
-"\n"
-" public Date getDate() {\n"
-" return date;\n"
-" }\n"
-"\n"
-" public void setDate(Date date) {\n"
-" this.date = date;\n"
-" }\n"
-"\n"
-" public String getTitle() {\n"
-" return title;\n"
-" }\n"
-"\n"
-" public void setTitle(String title) {\n"
-" this.title = title;\n"
-" }\n"
-"}]]>"
msgstr ""
+"æ¥ä¸æ¥æä»¬å建ä¸ä¸ªç±»ï¼ç¨æ¥ä»£è¡¨é£äºæä»¬å¸æå¨å卿°æ®åºéç eventï¼è¿æ¯ä¸ä¸ªå
·"
+"æä¸äºå±æ§çç®å JavaBean ç±»ï¼"
#. Tag: para
-#: tutorial.xml:130
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class uses standard JavaBean naming conventions for property getter and "
"setter methods, as well as private visibility for the fields. Although this "
@@ -245,16 +169,13 @@
"fields directly, the benefit of accessor methods is robustness for "
"refactoring."
msgstr ""
-"ä½ å¯ä»¥çå°è¿ä¸ªç±»å¯¹å±æ§çååæ¹æ³ï¼getter and setter methodï¼ä½¿ç¨äºæ å"
-"JavaBeanå½å约å®ï¼åæ¶æç±»å±æ§ï¼fieldï¼ç访é®çº§å«è®¾æç§æçï¼privateï¼ãè¿æ¯"
-"æ¨èç设计ï¼ä½å¹¶ä¸æ¯å¿
é¡»çãHibernateä¹å¯ä»¥ç´æ¥è®¿é®è¿äºfieldï¼è使ç¨è®¿é®æ¹æ³"
-"ï¼accessor methodï¼ç好夿¯æä¾äºéææ¶çå¥å£®æ§ï¼robustnessï¼ã为äºéè¿åå°æº"
-"å¶ï¼Reflectionï¼æ¥å®ä¾åè¿ä¸ªç±»çå¯¹è±¡ï¼æä»¬éè¦æä¾ä¸ä¸ªæ åçæé å¨ï¼no-"
-"argument constructor)ã"
+"ä½ å¯ä»¥çå°è¿ä¸ªç±»å¯¹å±æ§çååæ¹æ³ï¼getter and setter methodï¼ä½¿ç¨äºæ å "
+"JavaBean å½å约å®ï¼åæ¶æç±»å±æ§ï¼fieldï¼ç访é®çº§å«è®¾æç§æçï¼privateï¼ãè¿æ¯"
+"æ¨èç设计ï¼ä½å¹¶ä¸æ¯å¿
é¡»çãHibernate ä¹å¯ä»¥ç´æ¥è®¿é®è¿äº fieldï¼è使ç¨è®¿é®æ¹"
+"æ³ï¼accessor methodï¼ç好夿¯æä¾äºéææ¶çå¥å£®æ§ï¼robustnessï¼ã"
#. Tag: para
-#: tutorial.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>id</literal> property holds a unique identifier value for a "
"particular event. All persistent entity classes (there are less important "
@@ -268,19 +189,18 @@
"as well as public, private and protected fields directly. The choice is up "
"to you and you can match it to fit your application design."
msgstr ""
-"对ä¸ç¹å®çevent, <literal>id</literal> 屿§ææå¯ä¸çæ è¯ç¬¦ï¼identifierï¼ç"
-"å¼ã妿æä»¬å¸æä½¿ç¨Hibernateæä¾çææç¹æ§ï¼é£ä¹ææçæä¹
åå®ä½"
+"对ä¸ç¹å®ç event, <literal>id</literal> 屿§ææå¯ä¸çæ è¯ç¬¦ï¼identifierï¼ç"
+"å¼ã妿æä»¬å¸æä½¿ç¨ Hibernate æä¾çææç¹æ§ï¼é£ä¹ææçæä¹
åå®ä½"
"ï¼persistent entityï¼ç±»ï¼è¿éä¹å
æ¬ä¸äºæ¬¡è¦ä¾èµç±»ï¼é½éè¦ä¸ä¸ªè¿æ ·çæ è¯ç¬¦å±"
-"æ§ãèäºå®ä¸ï¼å¤§å¤æ°åºç¨ç¨åºï¼ç¹å«æ¯webåºç¨ç¨åºï¼é½éè¦éè¿æ è¯ç¬¦æ¥åºå«å¯¹è±¡ï¼"
-"æä»¥ä½ åºè¯¥èèä½¿ç¨æ è¯ç¬¦å±æ§è䏿¯æå®å½ä½ä¸ç§éå¶ãç¶èï¼æä»¬é常ä¸ä¼æä½å¯¹"
-"è±¡çæ è¯ï¼identityï¼ï¼å æ¤å®çsetteræ¹æ³ç访é®çº§å«åºè¯¥å£°æprivateãè¿æ ·å½å¯¹è±¡"
-"被ä¿åçæ¶åï¼åªæHibernateå¯ä»¥ä¸ºå®åé
æ è¯ç¬¦å¼ãä½ å¯çå°Hibernateå¯ä»¥ç´æ¥è®¿"
-"é®publicï¼privateåprotectedçè®¿é®æ¹æ³åfieldãæä»¥éæ©åªç§æ¹å¼å®å
¨åå³äºä½ ï¼"
-"ä½ å¯ä»¥ä½¿ä½ çéæ©ä¸ä½ çåºç¨ç¨åºè®¾è®¡ç¸å»åã"
+"æ§ãèäºå®ä¸ï¼å¤§å¤æ°åºç¨ç¨åºï¼ç¹å«æ¯ web åºç¨ç¨åºï¼é½éè¦éè¿æ è¯ç¬¦æ¥åºå«å¯¹"
+"è±¡ï¼æä»¥ä½ åºè¯¥èèä½¿ç¨æ è¯ç¬¦å±æ§è䏿¯æå®å½ä½ä¸ç§éå¶ãç¶èï¼æä»¬é常ä¸ä¼æ"
+"ä½å¯¹è±¡çæ è¯ï¼identityï¼ï¼å æ¤å®ç setter æ¹æ³ç访é®çº§å«åºè¯¥å£°æ privateãè¿"
+"æ ·å½å¯¹è±¡è¢«ä¿åçæ¶åï¼åªæ Hibernate å¯ä»¥ä¸ºå®åé
æ è¯ç¬¦å¼ãä½ å¯çå°Hibernate"
+"å¯ä»¥ç´æ¥è®¿é® publicï¼private å protected çè®¿é®æ¹æ³å fieldãæä»¥éæ©åªç§æ¹"
+"å¼å®å
¨åå³äºä½ ï¼ä½ å¯ä»¥ä½¿ä½ çéæ©ä¸ä½ çåºç¨ç¨åºè®¾è®¡ç¸å»åã "
#. Tag: para
-#: tutorial.xml:153
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The no-argument constructor is a requirement for all persistent classes; "
"Hibernate has to create objects for you, using Java Reflection. The "
@@ -288,28 +208,27 @@
"for runtime proxy generation and efficient data retrieval without bytecode "
"instrumentation."
msgstr ""
-"ææçæä¹
åç±»ï¼persistent classesï¼é½è¦æ±ææ åçæé å¨ï¼å 为Hibernateå¿
须使"
-"ç¨Javaåå°æºå¶æ¥ä¸ºä½ å建对象ãæé å¨ï¼constructorï¼ç访é®çº§å«å¯ä»¥æ¯privateï¼"
-"ç¶èå½çæè¿è¡æ¶ä»£çï¼runtime proxyï¼çæ¶ååè¦æ±ä½¿ç¨è³å°æ¯package 级å«ç访é®"
-"æ§å¶ï¼è¿æ ·å¨æ²¡æåèç æä»¤ï¼bytecode instrumentationï¼çæ
åµä¸ï¼ä»æä¹
åç±»é"
-"è·åæ°æ®ä¼æ´ææçã"
+"ææçæä¹
åç±»ï¼persistent classesï¼é½è¦æ±ææ åçæé å¨ï¼å 为 Hibernate å¿
é¡»"
+"ä½¿ç¨ Java åå°æºå¶æ¥ä¸ºä½ å建对象ãæé å¨ï¼constructorï¼ç访é®çº§å«å¯ä»¥æ¯ "
+"privateï¼ç¶èå½çæè¿è¡æ¶ä»£çï¼runtime proxyï¼çæ¶ååè¦æ±ä½¿ç¨è³å°æ¯ package "
+"级å«çè®¿é®æ§å¶ï¼è¿æ ·å¨æ²¡æåèç æä»¤ï¼bytecode instrumentationï¼çæ
åµä¸ï¼ä»"
+"æä¹
åç±»éè·åæ°æ®ä¼æ´ææçã "
#. Tag: para
-#: tutorial.xml:161
#, no-c-format
msgid ""
"Save this file to the <filename>src/main/java/org/hibernate/tutorial/domain</"
"filename> directory."
msgstr ""
+"æè¿ä¸ªæä»¶ä¿åå° <filename>src/main/java/org/hibernate/tutorial/domain</"
+"filename> ç®å½ä¸ã"
#. Tag: title
-#: tutorial.xml:168
#, no-c-format
msgid "The mapping file"
msgstr "æ å°æä»¶"
#. Tag: para
-#: tutorial.xml:170
#, no-c-format
msgid ""
"Hibernate needs to know how to load and store objects of the persistent "
@@ -317,34 +236,18 @@
"file tells Hibernate what table in the database it has to access, and what "
"columns in that table it should use."
msgstr ""
-"Hibernateéè¦ç¥éææ ·å»å è½½ï¼loadï¼ååå¨ï¼storeï¼æä¹
åç±»ç对象ãè¿æ£æ¯"
-"Hibernateæ 尿件忥ä½ç¨çå°æ¹ãæ å°æä»¶åè¯Hibernateå®ï¼åºè¯¥è®¿é®æ°æ®åº"
-"(database)éé¢çåªä¸ªè¡¨ï¼tableï¼ååºè¯¥ä½¿ç¨è¡¨éé¢çåªäºå段ï¼columnï¼ã"
+"Hibernate éè¦ç¥éææ ·å»å è½½ï¼loadï¼ååå¨ï¼storeï¼æä¹
åç±»ç对象ãè¿æ£æ¯ "
+"Hibernate æ 尿件忥ä½ç¨çå°æ¹ãæ å°æä»¶åè¯ Hibernate å®åºè¯¥è®¿é®æ°æ®åº"
+"ï¼databaseï¼éé¢çåªä¸ªè¡¨ï¼tableï¼ååºè¯¥ä½¿ç¨è¡¨éé¢çåªäºå段ï¼columnï¼ã"
#. Tag: para
-#: tutorial.xml:178
#, no-c-format
msgid "The basic structure of a mapping file looks like this:"
msgstr "ä¸ä¸ªæ å°æä»¶çåºæ¬ç»æçèµ·æ¥åè¿æ ·ï¼"
-#. Tag: programlisting
-#: tutorial.xml:182
+#. Tag: para
#, no-c-format
msgid ""
-"<![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\">\n"
-"\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"[...]\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:184
-#, fuzzy, no-c-format
-msgid ""
"Hibernate DTD is sophisticated. You can use it for auto-completion of XML "
"mapping elements and attributes in your editor or IDE. Opening up the DTD "
"file in your text editor is the easiest way to get an overview of all "
@@ -354,54 +257,38 @@
"<filename>hibernate-core.jar</filename> (it is also included in the "
"<filename>hibernate3.jar</filename>, if using the distribution bundle)."
msgstr ""
-"注æHibernateçDTDæ¯é叏夿çãä½ çç¼è¾å¨æè
IDEé使ç¨å®æ¥èªå¨å®æé£äºç¨æ¥æ "
-"å°çXMLå
ç´ ï¼elementï¼å屿§ï¼attributeï¼ãä½ ä¹å¯ä»¥å¨ææ¬ç¼è¾å¨éæå¼DTDï¼è¿"
-"æ¯æç®åçæ¹å¼æ¥æ¦è§ææçå
ç´ åattributeï¼å¹¶æ¥çå®ä»¬ç缺çå¼ä»¥å注éãæ³¨æ"
-"Hibernateä¸ä¼ä»webå è½½DTDæä»¶ï¼ä½å®ä¼é¦å
å¨åºç¨ç¨åºçclasspath䏿¥æ¾ãDTDæä»¶"
-"å·²å
æ¬å¨<literal>hibernate3.jar</literal>éï¼åæ¶ä¹å¨Hibernateåå¸å
ç"
-"<literal>src/</literal>ç®å½ä¸ã"
+"注æ Hibernate ç DTD æ¯é叏夿çãä½ çç¼è¾å¨æè
IDE é使ç¨å®æ¥èªå¨å®æé£äº"
+"ç¨æ¥æ å°ç XML å
ç´ ï¼elementï¼å屿§ï¼attributeï¼ãä½ ä¹å¯ä»¥å¨ææ¬ç¼è¾å¨éæ"
+"å¼ DTD â è¿æ¯æç®åçæ¹å¼æ¥æ¦è§ææçå
ç´ å attributeï¼å¹¶æ¥çå®ä»¬ç缺çå¼ä»¥å"
+"注éãæ³¨æ Hibernate ä¸ä¼ä» web å è½½ DTD æä»¶ï¼ä½å®ä¼é¦å
å¨åºç¨ç¨åºç "
+"classpath 䏿¥æ¾ãDTD æä»¶å·²å
æ¬å¨ <literal>hibernate3.jar</literal> éï¼åæ¶"
+"ä¹å¨ Hibernate åå¸å
ç <literal>src/</literal> ç®å½ä¸ã "
#. Tag: para
-#: tutorial.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will omit the DTD declaration in future examples to shorten the code. It "
"is, of course, not optional."
msgstr ""
-"为缩ç代ç é¿åº¦ï¼å¨ä»¥åçä¾åéæä»¬ä¼çç¥DTDç声æãå½ç¶ï¼å¨å®é
çåºç¨ç¨åºä¸ï¼"
-"DTDå£°ææ¯å¿
é¡»çã"
+"为缩ç代ç é¿åº¦ï¼å¨ä»¥åçä¾åéæä»¬ä¼çç¥ DTD ç声æãå½ç¶ï¼å¨å®é
çåºç¨ç¨åº"
+"ä¸ï¼DTD å£°ææ¯å¿
éçã "
#. Tag: para
-#: tutorial.xml:203
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Between the two <literal>hibernate-mapping</literal> tags, include a "
"<literal>class</literal> element. All persistent entity classes (again, "
"there might be dependent classes later on, which are not first-class "
"entities) need a mapping to a table in the SQL database:"
msgstr ""
-"å¨<literal>hibernate-mapping</literal>æ ç¾ï¼tagï¼ä¹é´, 嫿ä¸ä¸ª"
-"<literal>class</literal>å
ç´ ãææçæä¹
åå®ä½ç±»ï¼å次声æï¼æè®¸æ¥ä¸æ¥ä¼æä¾"
-"èµç±»ï¼å°±æ¯é£äºæ¬¡è¦çå®ä½ï¼é½éè¦ä¸ä¸ªè¿æ ·çæ å°ï¼æ¥æç±»å¯¹è±¡æ å°å°SQLæ°æ®åºéç"
-"表ã"
+"å¨ <literal>hibernate-mapping</literal> æ ç¾ï¼tagï¼ä¹é´, 嫿ä¸ä¸ª "
+"<literal>class</literal> å
ç´ ãææçæä¹
åå®ä½ç±»ï¼å次声æï¼æè®¸æ¥ä¸æ¥ä¼æä¾"
+"èµç±»ï¼å°±æ¯é£äºæ¬¡è¦çå®ä½ï¼é½éè¦ä¸ä¸ªè¿æ ·çæ å°ï¼æ¥æç±»å¯¹è±¡æ å°å° SQL æ°æ®åºé"
+"ç表ï¼"
-#. Tag: programlisting
-#: tutorial.xml:210
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-"\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:212
-#, fuzzy, no-c-format
-msgid ""
"So far we have told Hibernate how to persist and load object of class "
"<literal>Event</literal> to the table <literal>EVENTS</literal>. Each "
"instance is now represented by a row in that table. Now we can continue by "
@@ -409,29 +296,14 @@
"not want to care about handling this identifier, we configure Hibernate's "
"identifier generation strategy for a surrogate primary key column:"
msgstr ""
-"å°ç®å为æ¢ï¼æä»¬åè¯äºHibernateææ ·æ<literal>Events</literal>ç±»ç对象æä¹
å"
-"å°æ°æ®åºç<literal>EVENTS</literal>表éï¼ä»¥åææ ·ä»<literal>EVENTS</literal>"
-"表å è½½å°<literal>Events</literal>ç±»çå¯¹è±¡ãæ¯ä¸ªå®ä¾å¯¹åºçæ°æ®åºè¡¨ä¸çä¸è¡ãç°"
-"卿们å°ç»§ç»è®¨è®ºæå
³å¯ä¸æ è¯ç¬¦å±æ§å°æ°æ®åºè¡¨çæ å°ãå¦å¤ï¼ç±äºæä»¬ä¸å
³å¿ææ ·"
-"å¤çè¿ä¸ªæ è¯ç¬¦ï¼æä»¬å°±é
ç½®ç±Hibernateçæ è¯ç¬¦çæçç¥æ¥äº§ç代ç主é®å段ã"
+"å°ç®å为æ¢ï¼æä»¬åè¯äº Hibernate ææ ·æ <literal>Events</literal> ç±»ç对象æ"
+"ä¹
åå°æ°æ®åºç <literal>EVENTS</literal> 表éï¼ä»¥åææ ·ä» <literal>EVENTS</"
+"literal> 表å è½½å° <literal>Events</literal> ç±»çå¯¹è±¡ãæ¯ä¸ªå®ä¾å¯¹åºçæ°æ®åºè¡¨"
+"ä¸çä¸è¡ãç°å¨æä»¬å°ç»§ç»è®¨è®ºæå
³å¯ä¸æ è¯ç¬¦å±æ§å°æ°æ®åºè¡¨çæ å°ãå¦å¤ï¼ç±äºæ"
+"们ä¸å
³å¿ææ ·å¤çè¿ä¸ªæ è¯ç¬¦ï¼æä»¬å°±é
ç½®ç± Hibernate çæ è¯ç¬¦çæçç¥æ¥äº§ç代ç"
+"主é®å段ï¼"
-#. Tag: programlisting
-#: tutorial.xml:222
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:224
#, no-c-format
msgid ""
"The <literal>id</literal> element is the declaration of the identifier "
@@ -441,9 +313,12 @@
"The column attribute tells Hibernate which column of the <literal>EVENTS</"
"literal> table holds the primary key value."
msgstr ""
+"<literal>id</literal> å
ç´ æ¯å¯¹ identifier 屿§ç声æã<literal>name=\"id\"</"
+"literal> æ å°å±æ§å£°æäº JavaBean 屿§çåç§°å¹¶åè¯ Hibernate ä½¿ç¨ "
+"<literal>getId()</literal> å <literal>setId()</literal> æ¹æ³æ¥è®¿é®è¿ä¸ªå±æ§ã"
+"column 屿§åè¯ Hibernate <literal>EVENTS</literal> 表çåªä¸ªå段ææä¸»é®å¼ã"
#. Tag: para
-#: tutorial.xml:234
#, no-c-format
msgid ""
"The nested <literal>generator</literal> element specifies the identifier "
@@ -454,61 +329,48 @@
"Identifier value generation is also one of Hibernate's many extension points "
"and you can plugin in your own strategy."
msgstr ""
+"åµå¥ç <literal>generator</literal> å
ç´ æå®æ è¯ç¬¦ççæçç¥ï¼ä¹å°±æ¯æ è¯ç¬¦å¼"
+"æ¯æä¹äº§ççï¼ãå¨è¿ä¸ªä¾åéï¼æä»¬éæ© <literal>native</literal>ï¼å®æä¾äºå"
+"å³äºæ°æ®åºæ¹è¨çå¯ç§»æ¤æ§ãHibernate æ°æ®åºçæçãå
¨å±æ§å¯ä¸ç以ååºç¨ç¨åºå"
+"é
çæ è¯ç¬¦ãæ è¯ç¬¦å¼ççæä¹æ¯ Hibernate çæ©å±åè½ä¹ä¸ï¼ä½ å¯ä»¥æå
¥èªå·±çç"
+"ç¥ã"
#. Tag: para
-#: tutorial.xml:246
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal>native</literal> is no longer consider the best strategy in terms "
-"of portability. for further discussion, see"
+"of portability. for further discussion, see <xref linkend=\"portability-idgen"
+"\" />"
msgstr ""
+"ä»ç§»æ¤æ§æ¥è¯´ï¼<literal>native</literal> ä¸åè¢«è®¤ä¸ºæ¯æå¥½ççç¥ãè¿ä¸æ¥ç讨"
+"论ï¼è¯·åè <xref linkend=\"portability-idgen\" />ã"
#. Tag: para
-#: tutorial.xml:252
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Lastly, we need to tell Hibernate about the remaining entity class "
"properties. By default, no properties of the class are considered persistent:"
msgstr ""
"æåæä»¬å¨æ å°æä»¶éé¢å
å«éè¦æä¹
å屿§ç声æãé»è®¤æ
åµä¸ï¼ç±»éé¢ç屿§é½è¢«"
-"è§ä¸ºéæä¹
åçï¼"
+"è§ä¸ºéæä¹
åçï¼ "
-#. Tag: programlisting
-#: tutorial.xml:258
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-"<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Event\" table=\"EVENTS\">\n"
-" <id name=\"id\" column=\"EVENT_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/>\n"
-" <property name=\"title\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:260
-#, fuzzy, no-c-format
-msgid ""
"Similar to the <literal>id</literal> element, the <literal>name</literal> "
"attribute of the <literal>property</literal> element tells Hibernate which "
"getter and setter methods to use. In this case, Hibernate will search for "
"<literal>getDate()</literal>, <literal>setDate()</literal>, <literal>getTitle"
"()</literal> and <literal>setTitle()</literal> methods."
msgstr ""
-"å<literal>id</literal>å
ç´ ä¸æ ·ï¼<literal>property</literal>å
ç´ ç"
-"<literal>name</literal>屿§åè¯Hibernate使ç¨åªä¸ªgetteråsetteræ¹æ³ã卿¤ä¾"
-"ä¸ï¼Hibernateä¼å¯»æ¾<literal>getDate()/setDate()</literal>, 以å"
-"<literal>getTitle()/setTitle()</literal>ã"
+"å <literal>id</literal> å
ç´ ä¸æ ·ï¼<literal>property</literal> å
ç´ ç "
+"<literal>name</literal> 屿§åè¯ Hibernate 使ç¨åªä¸ª getter å setter æ¹æ³ãå¨"
+"æ¤ä¾ä¸ï¼Hibernate ä¼å¯»æ¾ <literal>getDate()</literal>ã<literal>setDate()</"
+"literal>ã<literal>getTitle()</literal> å <literal>setTitle()</literal> æ¹"
+"æ³ã "
#. Tag: para
-#: tutorial.xml:271
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Why does the <literal>date</literal> property mapping include the "
"<literal>column</literal> attribute, but the <literal>title</literal> does "
@@ -517,15 +379,14 @@
"literal>, however, <literal>date</literal> is a reserved keyword in most "
"databases so you will need to map it to a different name."
msgstr ""
-"为ä»ä¹<literal>date</literal>屿§çæ å°å«æ<literal>column</literal> "
-"attributeï¼è<literal>title</literal>å´æ²¡æï¼å½æ²¡æè®¾å®<literal>column</"
-"literal> attribute çæ¶åï¼Hibernate缺çå°ä½¿ç¨JavaBeanç屿§åä½ä¸ºå段åã对"
-"äº<literal>title</literal>ï¼è¿æ ·å·¥ä½å¾å¾å¥½ãç¶èï¼<literal>date</literal>å¨å¤"
-"æ°çæ°æ®åºéï¼æ¯ä¸ä¸ªä¿çå
³é®åï¼æä»¥æä»¬æå¥½æå®æ å°æä¸ä¸ªä¸åçååã"
+"为ä»ä¹ <literal>date</literal> 屿§çæ å°å«æ <literal>column</literal> "
+"attributeï¼è <literal>title</literal> å´æ²¡æï¼å½æ²¡æè®¾å® <literal>column</"
+"literal> attribute çæ¶åï¼Hibernate 缺çå°ä½¿ç¨ JavaBean ç屿§åä½ä¸ºå段åã"
+"å¯¹äº <literal>title</literal>ï¼è¿æ ·å·¥ä½å¾å¾å¥½ãç¶èï¼<literal>date</literal> "
+"å¨å¤æ°çæ°æ®åºéï¼æ¯ä¸ä¸ªä¿çå
³é®åï¼æä»¥æä»¬æå¥½æå®æ å°æä¸ä¸ªä¸åçååã "
#. Tag: para
-#: tutorial.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The <literal>title</literal> mapping also lacks a <literal>type</literal> "
"attribute. The types declared and used in the mapping files are not Java "
@@ -542,21 +403,20 @@
"literal> column. Full date and time information is preserved by mapping the "
"property with a <literal>timestamp</literal> converter."
msgstr ""
-"å¦ä¸æè¶£çäºæ
æ¯<literal>title</literal>屿§ç¼ºå°ä¸ä¸ª<literal>type</literal> "
-"attributeãæä»¬å¨æ å°æä»¶é声æå¹¶ä½¿ç¨çç±»åï¼å´ä¸æ¯æä»¬ææç飿 ·ï¼æ¯Javaæ°æ®"
-"ç±»åï¼åæ¶ä¹ä¸æ¯SQLæ°æ®åºçæ°æ®ç±»åãè¿äºç±»åå°±æ¯æè°çHibernate æ å°ç±»å"
-"<emphasis>ï¼mapping typesï¼</emphasis>ï¼å®ä»¬è½æJavaæ°æ®ç±»å转æ¢å°SQLæ°æ®ç±»"
-"åï¼åä¹äº¦ç¶ã忬¡éç³ï¼å¦æå¨æ 尿件䏿²¡æè®¾ç½®<literal>type</literal>屿§ç"
-"è¯ï¼Hibernateä¼èªå·±è¯çå»ç¡®å®æ£ç¡®ç转æ¢ç±»ååå®çæ å°ç±»åãå¨æäºæ
åµä¸è¿ä¸ªèª"
-"卿£æµæºå¶ï¼å¨Java ç±»ä¸ä½¿ç¨åå°æºå¶ï¼ä¸ä¼äº§çä½ ææå¾
æéè¦ç缺çå¼ã"
-"<literal>date</literal>屿§å°±æ¯ä¸ªå¾å¥½çä¾åï¼Hibernateæ æ³ç¥éè¿ä¸ªå±æ§"
-"ï¼<literal>java.util.Date</literal>ç±»åçï¼åºè¯¥è¢«æ å°æï¼SQL <literal>date</"
-"literal>ï¼æ<literal>timestamp</literal>ï¼è¿æ¯<literal>time</literal> åæ®µã"
-"卿¤ä¾ä¸ï¼æè¿ä¸ªå±æ§æ å°æ<literal>timestamp</literal> 转æ¢å¨ï¼è¿æ ·æä»¬é¢çäº"
-"æ¥æåæ¶é´çå
¨é¨ä¿¡æ¯ã"
+"å¦ä¸æè¶£çäºæ
æ¯ <literal>title</literal> 屿§ç¼ºå°ä¸ä¸ª <literal>type</"
+"literal> attributeãæä»¬å¨æ å°æä»¶é声æå¹¶ä½¿ç¨çç±»åï¼å´ä¸æ¯æä»¬ææç飿 ·ï¼"
+"æ¯ Java æ°æ®ç±»åï¼åæ¶ä¹ä¸æ¯ SQL æ°æ®åºçæ°æ®ç±»åãè¿äºç±»åå°±æ¯æè°ç "
+"Hibernate æ å°ç±»å<emphasis>ï¼mapping typesï¼</emphasis>ï¼å®ä»¬è½æ Java æ°æ®"
+"ç±»å转æ¢å° SQL æ°æ®ç±»åï¼åä¹äº¦ç¶ã忬¡éç³ï¼å¦æå¨æ 尿件䏿²¡æè®¾ç½® "
+"<literal>type</literal> 屿§çè¯ï¼Hibernate ä¼èªå·±è¯çå»ç¡®å®æ£ç¡®ç转æ¢ç±»åå"
+"å®çæ å°ç±»åãå¨æäºæ
åµä¸è¿ä¸ªèªå¨æ£æµæºå¶ï¼å¨ Java ç±»ä¸ä½¿ç¨åå°æºå¶ï¼ä¸ä¼äº§"
+"çä½ ææå¾
æéè¦ç缺çå¼ã<literal>date</literal> 屿§å°±æ¯ä¸ªå¾å¥½çä¾åï¼"
+"Hibernate æ æ³ç¥éè¿ä¸ªå±æ§ï¼<literal>java.util.Date</literal> ç±»åçï¼åºè¯¥è¢«"
+"æ å°æï¼SQL <literal>date</literal>ï¼æ <literal>timestamp</literal>ï¼è¿æ¯ "
+"<literal>time</literal> åæ®µã卿¤ä¾ä¸ï¼æè¿ä¸ªå±æ§æ å°æ <literal>timestamp</"
+"literal> 转æ¢å¨ï¼è¿æ ·æä»¬é¢çäºæ¥æåæ¶é´çå
¨é¨ä¿¡æ¯ã "
#. Tag: para
-#: tutorial.xml:297
#, no-c-format
msgid ""
"Hibernate makes this mapping type determination using reflection when the "
@@ -564,39 +424,40 @@
"performance is important you should consider explicitly defining the type to "
"use."
msgstr ""
+"å½å¤çæ å°æä»¶æ¶ï¼Hibernate ç¨åå°ï¼reflectionï¼æ¥å³å®è¿ä¸ªæ å°ç±»åãè¿éè¦æ¶"
+"é´åèµæºï¼æä»¥å¦æä½ 注éå¯å¨æ§è½ï¼ä½ åºè¯¥èèæ¾æ§å°å®ä¹æç¨çç±»åã"
#. Tag: para
-#: tutorial.xml:304
#, no-c-format
msgid ""
"Save this mapping file as <filename>src/main/resources/org/hibernate/"
"tutorial/domain/Event.hbm.xml</filename>."
msgstr ""
+"æè¿ä¸ªæ å°æä»¶ä¿å为 <filename>src/main/resources/org/hibernate/tutorial/"
+"domain/Event.hbm.xml</filename>ã"
#. Tag: title
-#: tutorial.xml:312
#, no-c-format
msgid "Hibernate configuration"
-msgstr "Hibernateé
ç½®"
+msgstr "Hibernate é
ç½®"
#. Tag: para
-#: tutorial.xml:314
#, no-c-format
msgid ""
"At this point, you should have the persistent class and its mapping file in "
"place. It is now time to configure Hibernate. First let's set up HSQLDB to "
"run in \"server mode\""
msgstr ""
+"æ¤æ¶ï¼ä½ åºè¯¥æäºæä¹
åç±»åå®çæ å°æä»¶ãç°å¨æ¯é
ç½® Hibernate çæ¶åäºãé¦å
让"
+"æä»¬è®¾ç« HSQLDB 使å
¶è¿è¡å¨âæå¡å¨æ¨¡å¼âã"
#. Tag: para
-#: tutorial.xml:321
-#, no-c-format
+#, fuzzy, no-c-format
msgid "We do this do that the data remains between runs."
-msgstr ""
+msgstr "æ°æ®å¨ç¨åºè¿è¡æé´éè¦ä¿æææã"
#. Tag: para
-#: tutorial.xml:326
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will utilize the Maven exec plugin to launch the HSQLDB server by "
"running: <command> mvn exec:java -Dexec.mainClass=\"org.hsqldb.Server\" -"
@@ -606,15 +467,15 @@
"tutorial, shutdown HSQLDB, delete all files in the <filename>target/data</"
"filename> directory, and start HSQLDB again."
msgstr ""
-"å¨å¼åçæ ¹ç®å½ä¸å建ä¸ä¸ª<literal>data</literal>ç®å½ ï¼ è¿æ¯HSQL DBå卿°æ®æ"
-"ä»¶çå°æ¹ãæ¤æ¶å¨dataç®å½ä¸è¿è¡<literal>java -classpath ../lib/hsqldb.jar org."
-"hsqldb.Server</literal>å°±å¯å¯å¨æ°æ®åºãä½ å¯ä»¥å¨logä¸çå°å®çå¯å¨ï¼åç»å®å°"
-"TCP/IPå¥ç»åï¼è¿æ£æ¯æä»¬çåºç¨ç¨åºç¨åä¼è¿æ¥çå°æ¹ãå¦æä½ å¸æå¨æ¬ä¾ä¸è¿è¡ä¸"
-"个å
¨æ°çæ°æ®åºï¼å°±å¨çªå£ä¸æä¸<literal>CTRL + C</literal>æ¥å
³éHSQLæ°æ®åºï¼å¹¶"
-"å é¤<literal>data/</literal>ç®å½ä¸çæææä»¶ï¼åéæ°å¯å¨HSQLæ°æ®åºã"
+"å¨å¼åçæ ¹ç®å½ä¸å建ä¸ä¸ª <literal>data</literal> ç®å½ ï¼ è¿æ¯ HSQL DB å卿°"
+"æ®æä»¶çå°æ¹ãæ¤æ¶å¨ data ç®å½ä¸è¿è¡ <literal>java -classpath ../lib/hsqldb."
+"jar org.hsqldb.Server</literal> å°±å¯å¯å¨æ°æ®åºãä½ å¯ä»¥å¨ log ä¸çå°å®çå¯å¨ï¼"
+"åç»å®å° TCP/IP 奿¥åï¼è¿æ£æ¯æä»¬çåºç¨ç¨åºç¨åä¼è¿æ¥çå°æ¹ãå¦æä½ å¸æå¨æ¬"
+"ä¾ä¸è¿è¡ä¸ä¸ªå
¨æ°çæ°æ®åºï¼å°±å¨çªå£ä¸æä¸ <literal>CTRL + C</literal> æ¥å
³é "
+"HSQL æ°æ®åºï¼å¹¶å é¤ <literal>data/</literal> ç®å½ä¸çæææä»¶ï¼åéæ°å¯å¨ "
+"HSQL æ°æ®åºã "
#. Tag: para
-#: tutorial.xml:337
#, no-c-format
msgid ""
"Hibernate will be connecting to the database on behalf of your application, "
@@ -626,118 +487,72 @@
"net/\">proxool</ulink>. However, we will be using the Hibernate built-in "
"connection pool for this tutorial."
msgstr ""
+"Hibernate å°ä¸ºä½ çåºç¨ç¨åºè¿æ¥å°æ°æ®åºï¼æä»¥å®éè¦ç¥éå¦ä½è·åè¿æ¥ãå¨è¿ä¸ªæ"
+"ç¨éï¼æä»¬ä½¿ç¨ä¸ä¸ªç¬ç«è¿æ¥æ± ï¼å <interfacename>javax.sql.DataSource</"
+"interfacename> ç¸åï¼ãHibernate æ¯æä¸¤ä¸ªç¬¬ä¸æ¹ç弿º JDBC è¿æ¥æ± ï¼<ulink "
+"url=\"https://sourceforge.net/projects/c3p0\">c3p0</ulink> å <ulink url="
+"\"http://proxool.sourceforge.net/\">proxool</ulink>ãç¶èï¼å¨æ¬æç¨éæä»¬å°ä½¿"
+"ç¨ Hibernate å
ç½®çè¿æ¥æ± ã"
#. Tag: para
-#: tutorial.xml:348
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The built-in Hibernate connection pool is in no way intended for production "
"use. It lacks several features found on any decent connection pool."
-msgstr ""
+msgstr "åµå
¥ç Hibernate è¿æ¥æ± ä¸ç¨äºäº§åç¯å¢ã"
#. Tag: para
-#: tutorial.xml:354
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For Hibernate's configuration, we can use a simple <literal>hibernate."
"properties</literal> file, a more sophisticated <literal>hibernate.cfg.xml</"
"literal> file, or even complete programmatic setup. Most users prefer the "
"XML configuration file:"
msgstr ""
-"为äºä¿åHibernateçé
ç½®ï¼æä»¬å¯ä»¥ä½¿ç¨ä¸ä¸ªç®åç<literal>hibernate."
-"properties</literal>æä»¶ï¼æè
ä¸ä¸ªç¨å¾®å¤æç<literal>hibernate.cfg.xml</"
-"literal>ï¼çè³å¯ä»¥å®å
¨ä½¿ç¨ç¨åºæ¥é
ç½®Hibernateã夿°ç¨æ·æ´å欢使ç¨XMLé
ç½®æ"
-"ä»¶ï¼"
+"为äºä¿å Hibernate çé
ç½®ï¼æä»¬å¯ä»¥ä½¿ç¨ä¸ä¸ªç®åç <literal>hibernate."
+"properties</literal> æä»¶ï¼æè
ä¸ä¸ªç¨å¾®å¤æç <literal>hibernate.cfg.xml</"
+"literal>ï¼çè³å¯ä»¥å®å
¨ä½¿ç¨ç¨åºæ¥é
ç½® Hibernateã夿°ç¨æ·æ´åæ¬¢ä½¿ç¨ XML é
ç½®æ"
+"ä»¶ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:360
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
-"<!DOCTYPE hibernate-configuration PUBLIC\n"
-" \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
-" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
-"\">\n"
-"\n"
-"<hibernate-configuration>\n"
-"\n"
-" <session-factory>\n"
-"\n"
-" <!-- Database connection settings -->\n"
-" <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
-"property>\n"
-" <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
-"property>\n"
-" <property name=\"connection.username\">sa</property>\n"
-" <property name=\"connection.password\"></property>\n"
-"\n"
-" <!-- JDBC connection pool (use the built-in) -->\n"
-" <property name=\"connection.pool_size\">1</property>\n"
-"\n"
-" <!-- SQL dialect -->\n"
-" <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
-"property>\n"
-"\n"
-" <!-- Enable Hibernate's automatic session context management -->\n"
-" <property name=\"current_session_context_class\">thread</property>\n"
-"\n"
-" <!-- Disable the second-level cache -->\n"
-" <property name=\"cache.provider_class\">org.hibernate.cache."
-"NoCacheProvider</property>\n"
-"\n"
-" <!-- Echo all executed SQL to stdout -->\n"
-" <property name=\"show_sql\">true</property>\n"
-"\n"
-" <!-- Drop and re-create the database schema on startup -->\n"
-" <property name=\"hbm2ddl.auto\">update</property>\n"
-"\n"
-" <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/>\n"
-"\n"
-" </session-factory>\n"
-"\n"
-"</hibernate-configuration>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:363
#, no-c-format
msgid "Notice that this configuration file specifies a different DTD"
-msgstr ""
+msgstr "请注æï¼è¿ä¸ªé
ç½®æä»¶æå®äºä¸ä¸ªä¸åç DTDã"
#. Tag: para
-#: tutorial.xml:366
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You configure Hibernate's <literal>SessionFactory</literal>. SessionFactory "
"is a global factory responsible for a particular database. If you have "
"several databases, for easier startup you should use several <literal><"
"session-factory></literal> configurations in several configuration files."
msgstr ""
-"注æè¿ä¸ªXMLé
置使ç¨äºä¸ä¸ªä¸åçDTDãå¨è¿éï¼æä»¬é
ç½®äºHibernateç"
-"<literal>SessionFactory</literal>ï¼ä¸ä¸ªå
³èäºç¹å®æ°æ®åºå
¨å±çå·¥å"
-"ï¼factoryï¼ãå¦æä½ è¦ä½¿ç¨å¤ä¸ªæ°æ®åºï¼å°±è¦ç¨å¤ä¸ªç<literal><session-"
-"factory></literal>ï¼é常æå®ä»¬æ¾å¨å¤ä¸ªé
ç½®æä»¶ä¸ï¼ä¸ºäºæ´å®¹æå¯å¨ï¼ã"
+"注æè¿ä¸ª XML é
置使ç¨äºä¸ä¸ªä¸åç DTDãå¨è¿éï¼æä»¬é
ç½®äº Hibernate ç"
+"<literal>SessionFactory</literal> â ä¸ä¸ªå
³èäºç¹å®æ°æ®åºå
¨å±çå·¥å"
+"ï¼factoryï¼ãå¦æä½ è¦ä½¿ç¨å¤ä¸ªæ°æ®åºï¼å°±è¦ç¨å¤ä¸ªç <literal><session-"
+"factory></literal>ï¼é常æå®ä»¬æ¾å¨å¤ä¸ªé
ç½®æä»¶ä¸ï¼ä¸ºäºæ´å®¹æå¯å¨ï¼ã "
#. Tag: para
-#: tutorial.xml:373
#, no-c-format
msgid ""
"The first four <literal>property</literal> elements contain the necessary "
"configuration for the JDBC connection. The dialect <literal>property</"
"literal> element specifies the particular SQL variant Hibernate generates."
msgstr ""
+"ç¾å 4 个 <literal>property</literal> å
ç´ å
å«äº JDBC è¿æ¥æå¿
éçé
ç½®ãæ¹è¨ "
+"<literal>property</literal> å
ç´ æå®äº Hibernate çæçç¹å® SQL è¯å¥ã"
#. Tag: para
-#: tutorial.xml:380
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"In most cases, Hibernate is able to properly determine which dialect to use. "
-"See <xref linkend=\"portability-dialectresolver\"/> for more information."
+"See <xref linkend=\"portability-dialectresolver\" /> for more information."
msgstr ""
+"å¨å¤§å¤æ°æ
åµä¸ï¼Hibernate é½è½å¤æ£ç¡®å°å³å®æä½¿ç¨çæ¹è¨ãæ´å¤ä¿¡æ¯è¯·åè <xref "
+"linkend=\"portability-dialectresolver\" />ã"
#. Tag: para
-#: tutorial.xml:386
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate's automatic session management for persistence contexts is "
"particularly useful in this context. The <literal>hbm2ddl.auto</literal> "
@@ -747,30 +562,29 @@
"Ant task. Finally, add the mapping file(s) for persistent classes to the "
"configuration."
msgstr ""
-"æå¼å§ç4个<literal>property</literal>å
ç´ å
å«å¿
è¦çJDBCè¿æ¥ä¿¡æ¯ãæ¹è¨"
-"ï¼dialectï¼ç<literal>property</literal>å
ç´ ææHibernate çæçç¹å®SQLåéã"
-"ä½ å¾å¿«ä¼çå°ï¼Hibernate对æä¹
åä¸ä¸æçèªå¨session管ç就伿´¾ä¸ç¨åºã æå¼"
-"<literal>hbm2ddl.auto</literal>é项å°èªå¨çææ°æ®åºæ¨¡å¼ï¼schemaï¼ï¼ ç´æ¥å å
¥"
-"æ°æ®åºä¸ãå½ç¶è¿ä¸ªé项ä¹å¯ä»¥è¢«å
³éï¼éè¿å»é¤è¿ä¸ªé
ç½®éé¡¹ï¼æè
éè¿Antä»»å¡"
-"<literal>SchemaExport</literal>ç叮婿¥ææ°æ®åºschemaéå®åå°æä»¶ä¸ãæåï¼å¨"
-"é
ç½®ä¸ä¸ºæä¹
åç±»å å
¥æ å°æä»¶ã"
+"æå¼å§ç 4 个 <literal>property</literal> å
ç´ å
å«å¿
è¦ç JDBC è¿æ¥ä¿¡æ¯ãæ¹è¨"
+"ï¼dialectï¼ç <literal>property</literal> å
ç´ ææ Hibernate çæçç¹å® SQL "
+"åéãä½ å¾å¿«ä¼çå°ï¼Hibernate 对æä¹
åä¸ä¸æçèªå¨ session 管ç就伿´¾ä¸ç¨"
+"åºã æå¼ <literal>hbm2ddl.auto</literal> é项å°èªå¨çææ°æ®åºæ¨¡å¼ï¼schemaï¼"
+"ï¼ ç´æ¥å å
¥æ°æ®åºä¸ãå½ç¶è¿ä¸ªé项ä¹å¯ä»¥è¢«å
³éï¼éè¿å»é¤è¿ä¸ªé
ç½®éé¡¹ï¼æè
é"
+"è¿ Ant ä»»å¡ <literal>SchemaExport</literal> ç叮婿¥ææ°æ®åº schema éå®åå°"
+"æä»¶ä¸ãæåï¼å¨é
ç½®ä¸ä¸ºæä¹
åç±»å å
¥æ å°æä»¶ã "
#. Tag: para
-#: tutorial.xml:395
#, no-c-format
msgid ""
"Save this file as <filename>hibernate.cfg.xml</filename> into the "
"<filename>src/main/resources</filename> directory."
msgstr ""
+"æè¿ä¸ªæä»¶ä¿å为 <filename>src/main/resources</filename> ç®å½ä¸ç "
+"<filename>hibernate.cfg.xml</filename>ã"
#. Tag: title
-#: tutorial.xml:403
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Building with Maven"
-msgstr "ç¨Antæå»º"
+msgstr "ç¨ Maven æå»º "
#. Tag: para
-#: tutorial.xml:405
#, no-c-format
msgid ""
"We will now build the tutorial with Maven. You will need to have Maven "
@@ -780,45 +594,19 @@
"basic project tasks. First, lets run the <literal>compile</literal> goal to "
"make sure we can compile everything so far:"
msgstr ""
+"æä»¬å°ç¨ Maven æå»ºè¿ä¸ªæç¨ãä½ å°éè¦å®è£
Mavenï¼ä½ å¯ä»¥ä» <ulink url="
+"\"http://maven.apache.org/download.html\">Maven ä¸è½½é¡µé¢</ulink>è·å¾ Mavenã"
+"Maen å°è¯»åæä»¬å
åå建ç <filename>/pom.xml</filename> å¹¶ç¥éæ§è¡åºæ¬ç项ç®"
+"ä»»å¡ãé¦å
ï¼è®©æä»¬è¿è¡ <literal>compile</literal> ç®æ æ¥ç¡®ä¿æä»¬å¯ä»¥ç¼è¯å°ç®"
+"å为æ¢çææç¨åºï¼"
-#. Tag: programlisting
-#: tutorial.xml:415
-#, no-c-format
-msgid ""
-"<![CDATA[[hibernateTutorial]$ mvn compile\n"
-"[INFO] Scanning for projects...\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Building First Hibernate Tutorial\n"
-"[INFO] task-segment: [compile]\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] [resources:resources]\n"
-"[INFO] Using default encoding to copy filtered resources.\n"
-"[INFO] [compiler:compile]\n"
-"[INFO] Compiling 1 source file to /home/steve/projects/sandbox/"
-"hibernateTutorial/target/classes\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] BUILD SUCCESSFUL\n"
-"[INFO] "
-"------------------------------------------------------------------------\n"
-"[INFO] Total time: 2 seconds\n"
-"[INFO] Finished at: Tue Jun 09 12:25:25 CDT 2009\n"
-"[INFO] Final Memory: 5M/547M\n"
-"[INFO] "
-"------------------------------------------------------------------------]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:420
#, no-c-format
msgid "Startup and helpers"
msgstr "å¯å¨åè¾
å©ç±»"
#. Tag: para
-#: tutorial.xml:422
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"It is time to load and store some <literal>Event</literal> objects, but "
"first you have to complete the setup with some infrastructure code. You have "
@@ -831,71 +619,36 @@
"<interfacename>org.hibernate.SessionFactory</interfacename> is a thread-safe "
"global object that is instantiated once."
msgstr ""
-"æ¯æ¶åæ¥å è½½åå¨åä¸äº<literal>Event</literal>对象äºï¼ä½é¦å
æä»¬å¾ç¼åä¸äºåº"
-"ç¡ç代ç ä»¥å®æè®¾ç½®ãæä»¬å¿
é¡»å¯å¨Hibernateï¼æ¤è¿ç¨å
æ¬å建ä¸ä¸ªå
¨å±ç"
+"æ¯æ¶åæ¥å è½½åå¨åä¸äº <literal>Event</literal> 对象äºï¼ä½é¦å
æä»¬å¾ç¼åä¸äº"
+"åºç¡ç代ç ä»¥å®æè®¾ç½®ãæä»¬å¿
é¡»å¯å¨ Hibernateï¼æ¤è¿ç¨å
æ¬å建ä¸ä¸ªå
¨å±ç "
"<literal>SessoinFactory</literal>ï¼å¹¶æå®å¨åå¨åºç¨ç¨åºä»£ç 容æè®¿é®çå°æ¹ã"
-"<literal>SessionFactory</literal>å¯ä»¥å建并æå¼æ°ç<literal>Session</"
-"literal>ãä¸ä¸ª<literal>Session</literal>代表ä¸ä¸ªå线ç¨çåå
æä½ï¼"
-"<literal>SessionFactory</literal>åæ¯ä¸ªçº¿ç¨å®å
¨çå
¨å±å¯¹è±¡ï¼åªéè¦è¢«å®ä¾åä¸"
-"次ã"
+"<literal>SessionFactory</literal> å¯ä»¥å建并æå¼æ°ç <literal>Session</"
+"literal>ãä¸ä¸ª <literal>Session</literal> 代表ä¸ä¸ªå线ç¨çåå
æä½ï¼"
+"<interfacename>org.hibernate.SessionFactory</interfacename> åæ¯ä¸ªçº¿ç¨å®å
¨ç"
+"å
¨å±å¯¹è±¡ï¼åªéè¦è¢«å®ä¾å䏿¬¡ã "
#. Tag: para
-#: tutorial.xml:436
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We will create a <literal>HibernateUtil</literal> helper class that takes "
"care of startup and makes accessing the <interfacename>org.hibernate."
"SessionFactory</interfacename> more convenient."
msgstr ""
-"æä»¬å°å建ä¸ä¸ª<literal>HibernateUtil</literal>è¾
å©ç±»ï¼helper classï¼æ¥è´è´£å¯"
-"å¨Hibernateåæ´æ¹ä¾¿å°æä½<literal>SessionFactory</literal>ã让æä»¬æ¥çä¸ä¸å®"
-"çå®ç°ï¼"
+"æä»¬å°å建ä¸ä¸ª <literal>HibernateUtil</literal> è¾
å©ç±»ï¼helper classï¼æ¥è´è´£"
+"å¯å¨ Hibernate åæ´æ¹ä¾¿å°æä½ <interfacename>org.hibernate.SessionFactory</"
+"interfacename>ã让æä»¬æ¥çä¸ä¸å®çå®ç°ï¼"
-#. Tag: programlisting
-#: tutorial.xml:442
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.util;\n"
-"\n"
-"import org.hibernate.SessionFactory;\n"
-"import org.hibernate.cfg.Configuration;\n"
-"\n"
-"public class HibernateUtil {\n"
-"\n"
-" private static final SessionFactory sessionFactory = buildSessionFactory"
-"();\n"
-"\n"
-" private static SessionFactory buildSessionFactory() {\n"
-" try {\n"
-" // Create the SessionFactory from hibernate.cfg.xml\n"
-" return new Configuration().configure().buildSessionFactory();\n"
-" }\n"
-" catch (Throwable ex) {\n"
-" // Make sure you log the exception, as it might be swallowed\n"
-" System.err.println(\"Initial SessionFactory creation failed.\" + "
-"ex);\n"
-" throw new ExceptionInInitializerError(ex);\n"
-" }\n"
-" }\n"
-"\n"
-" public static SessionFactory getSessionFactory() {\n"
-" return sessionFactory;\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:444
#, no-c-format
msgid ""
"Save this code as <filename>src/main/java/org/hibernate/tutorial/util/"
"HibernateUtil.java</filename>"
msgstr ""
+"æè¿æ®µä»£ç ä¿å为 <filename>src/main/java/org/hibernate/tutorial/util/"
+"HibernateUtil.java</filename>ã"
#. Tag: para
-#: tutorial.xml:449
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This class not only produces the global <interfacename>org.hibernate."
"SessionFactory</interfacename> reference in its static initializer; it also "
@@ -904,13 +657,13 @@
"reference from JNDI in an application server or any other location for that "
"matter."
msgstr ""
-"è¿ä¸ªç±»ä¸ä½å¨å®çéæåå§åè¿ç¨ï¼ä»
å½å è½½è¿ä¸ªç±»çæ¶å被JVMæ§è¡ä¸æ¬¡ï¼ä¸äº§çå
¨å±"
-"ç<literal>SessionFactory</literal>ï¼èä¸éèäºå®ä½¿ç¨äºéæsingletonçäºå®ã"
-"å®ä¹å¯è½å¨åºç¨ç¨åºæå¡å¨ä¸çJNDIæ¥æ¾<literal>SessionFactory</literal>ã"
+"è¿ä¸ªç±»ä¸ä½å¨å®çéæåå§åè¿ç¨ï¼ä»
å½å è½½è¿ä¸ªç±»çæ¶å被 JVM æ§è¡ä¸æ¬¡ï¼ä¸äº§çå
¨"
+"å±ç <interfacename>org.hibernate.SessionFactory</interfacename>ï¼èä¸éèäº"
+"å®ä½¿ç¨äºéæ singleton çäºå®ãå®ä¹å¯è½å¨åºç¨ç¨åºæå¡å¨ä¸ç JNDI æ¥æ¾ "
+"<interfacename>org.hibernate.SessionFactory</interfacename>ã"
#. Tag: para
-#: tutorial.xml:458
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"If you give the <interfacename>org.hibernate.SessionFactory</interfacename> "
"a name in your configuration, Hibernate will try to bind it to JNDI under "
@@ -919,15 +672,14 @@
"<literal>HibernateService</literal> to JNDI. Such advanced options are "
"discussed later."
msgstr ""
-"å¦æä½ å¨é
ç½®æä»¶ä¸ç»<literal>SessionFactory</literal>ä¸ä¸ªååï¼å¨"
-"<literal>SessionFactory</literal>å建åï¼Hibernateä¼è¯çæå®ç»å®å°JNDIãè¦å®"
-"å
¨é¿å
è¿æ ·ç代ç ï¼ä½ ä¹å¯ä»¥ä½¿ç¨JMXé¨ç½²ï¼è®©å
·æJMXè½åç容卿¥å®ä¾å"
-"<literal>HibernateService</literal>å¹¶æå®ç»å®å°JNDIãè¿äºé«çº§å¯é项å¨åé¢çç« "
-"èä¸ä¼è®¨è®ºå°ã"
+"å¦æä½ å¨é
ç½®æä»¶ä¸ç» <interfacename>org.hibernate.SessionFactory</"
+"interfacename> ä¸ä¸ªååï¼å¨ å®å建åï¼Hibernate ä¼è¯çæå®ç»å®å° JNDIãè¦å®å
¨"
+"é¿å
è¿æ ·ç代ç ï¼ä½ ä¹å¯ä»¥ä½¿ç¨ JMX é¨ç½²ï¼è®©å
·æ JMX è½åç容卿¥å®ä¾å "
+"<literal>HibernateService</literal> å¹¶æå®ç»å®å° JNDIãè¿äºé«çº§å¯é项å¨åé¢ç"
+"ç« èä¸ä¼è®¨è®ºå°ã"
#. Tag: para
-#: tutorial.xml:467
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You now need to configure a logging system. Hibernate uses commons logging "
"and provides two choices: Log4j and JDK 1.4 logging. Most developers prefer "
@@ -938,97 +690,50 @@
"configuration, you can change the settings. By default, only the Hibernate "
"startup message is shown on stdout."
msgstr ""
-"忬¡ç¼è¯è¿ä¸ªåºç¨ç¨åºåºè¯¥ä¸ä¼æé®é¢ãæåæä»¬éè¦é
ç½®ä¸ä¸ªæ¥å¿ï¼logging)ç³»ç» "
-"ï¼ Hibernate使ç¨éç¨æ¥å¿æ¥å£ï¼å
è®¸ä½ å¨Log4jåJDK 1.4 æ¥å¿ä¹é´è¿è¡éæ©ã夿°å¼"
-"åè
æ´å欢Log4jï¼ä»Hibernateçåå¸å
ä¸ï¼å®å¨<literal>etc/</literal>ç®å½ä¸ï¼æ·"
-"è´<literal>log4j.properties</literal>å°ä½ ç<literal>src</literal>ç®å½ï¼ä¸"
-"<literal>hibernate.cfg.xml</literal>.æ¾å¨ä¸èµ·ãçä¸ä¸é
置示ä¾ï¼å¦æä½ 叿çå°"
-"æ´å 详ç»çè¾åºä¿¡æ¯ï¼ä½ å¯ä»¥ä¿®æ¹é
ç½®ãé»è®¤æ
åµä¸ï¼åªæHibernateçå¯å¨ä¿¡æ¯æä¼æ¾"
-"ç¤ºå¨æ åè¾åºä¸ã"
+"忬¡ç¼è¯è¿ä¸ªåºç¨ç¨åºåºè¯¥ä¸ä¼æé®é¢ãæåæä»¬éè¦é
ç½®ä¸ä¸ªæ¥å¿ï¼logging)ç³»ç» â "
+"Hibernate 使ç¨éç¨æ¥å¿æ¥å£ï¼å
è®¸ä½ å¨ Log4j å JDK 1.4 æ¥å¿ä¹é´è¿è¡éæ©ã夿°"
+"å¼åè
æ´å欢 Log4jï¼ä» Hibernate çåå¸å
ä¸ï¼å®å¨ <literal>etc/</literal> ç®"
+"å½ä¸ï¼æ·è´ <literal>log4j.properties</literal> å°ä½ ç <literal>src</literal> "
+"ç®å½ï¼ä¸ <literal>hibernate.cfg.xml</literal> æ¾å¨ä¸èµ·ãçä¸ä¸é
置示ä¾ï¼å¦æ"
+"ä½ å¸æçå°æ´å 详ç»çè¾åºä¿¡æ¯ï¼ä½ å¯ä»¥ä¿®æ¹é
ç½®ãé»è®¤æ
åµä¸ï¼åªæ Hibernate çå¯"
+"å¨ä¿¡æ¯æä¼æ¾ç¤ºå¨æ åè¾åºä¸ã "
#. Tag: para
-#: tutorial.xml:477
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The tutorial infrastructure is complete and you are now ready to do some "
"real work with Hibernate."
-msgstr "示ä¾çåºæ¬æ¡æ¶å®æäº ï¼ ç°å¨æä»¬å¯ä»¥ç¨Hibernateæ¥åäºçæ£çå·¥ä½ã"
+msgstr "示ä¾çåºæ¬æ¡æ¶å®æäº â ç°å¨æä»¬å¯ä»¥ç¨ Hibernate æ¥åäºçæ£çå·¥ä½ã "
#. Tag: title
-#: tutorial.xml:485
#, no-c-format
msgid "Loading and storing objects"
msgstr "å 载并åå¨å¯¹è±¡"
#. Tag: para
-#: tutorial.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"We are now ready to start doing some real worjk with Hibernate. Let's start "
"by writing an <literal>EventManager</literal> class with a <literal>main()</"
"literal> method:"
msgstr ""
-"æä»¬ç»äºå¯ä»¥ä½¿ç¨Hibernateæ¥å è½½ååå¨å¯¹è±¡äºï¼ç¼åä¸ä¸ªå¸¦æ<literal>main()</"
-"literal>æ¹æ³ç<literal>EventManager</literal>ç±»ï¼"
+"æä»¬ç»äºå¯ä»¥ä½¿ç¨ Hibernate æ¥å è½½ååå¨å¯¹è±¡äºï¼ç¼åä¸ä¸ªå¸¦æ <literal>main()</"
+"literal> æ¹æ³ç <literal>EventManager</literal> ç±»ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:493
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[package org.hibernate.tutorial;\n"
-"\n"
-"import org.hibernate.Session;\n"
-"\n"
-"import java.util.*;\n"
-"\n"
-"import org.hibernate.tutorial.domain.Event;\n"
-"import org.hibernate.tutorial.util.HibernateUtil;\n"
-"\n"
-"public class EventManager {\n"
-"\n"
-" public static void main(String[] args) {\n"
-" EventManager mgr = new EventManager();\n"
-"\n"
-" if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-"\n"
-" HibernateUtil.getSessionFactory().close();\n"
-" }\n"
-"\n"
-" private void createAndStoreEvent(String title, Date theDate) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-" session.save(theEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:495
-#, fuzzy, no-c-format
-msgid ""
"In <literal>createAndStoreEvent()</literal> we created a new <literal>Event</"
"literal> object and handed it over to Hibernate. At that point, Hibernate "
"takes care of the SQL and executes an <literal>INSERT</literal> on the "
"database."
msgstr ""
-"æä»¬å建äºä¸ªæ°ç<literal>Event</literal>对象并æå®ä¼ éç»Hibernateãç°å¨"
-"Hibernateè´è´£ä¸SQLæäº¤éï¼å¹¶æ<literal>INSERT</literal>å½ä»¤ä¼ ç»æ°æ®åºãå¨è¿è¡"
-"ä¹åï¼è®©æä»¬çä¸ä¸å¤ç<literal>Session</literal>å<literal>Transaction</"
-"literal>ç代ç ã"
+"å¨ <literal>createAndStoreEvent()</literal> æ¥éæä»¬å建äºä¸ä¸ªæ°ç "
+"<literal>Event</literal> 对象并æå®ä¼ éç» Hibernateãç°å¨ Hibernate è´è´£ä¸ "
+"SQL æäº¤éï¼å¹¶æ <literal>INSERT</literal> å½ä»¤ä¼ ç»æ°æ®åºã"
#. Tag: para
-#: tutorial.xml:502
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> is designed to represent a "
"single unit of work (a single atmoic piece of work to be performed). For now "
@@ -1039,14 +744,15 @@
"interfacename> API. In this particular case we are using JDBC-based "
"transactional semantics, but it could also run with JTA."
msgstr ""
-"ä¸ä¸ª<literal>Session</literal>å°±æ¯ä¸ªåä¸çå·¥ä½åå
ãæä»¬ææ¶è®©äºæ
ç®åä¸äºï¼"
-"å¹¶å设Hibernate<literal>Session</literal>åæ°æ®åºäºå¡æ¯ä¸ä¸å¯¹åºçã为äºè®©æä»¬"
-"ç代ç ä»åºå±çäºå¡ç³»ç»ä¸è±ç¦»åºæ¥ï¼æ¤ä¾ä¸æ¯JDBCï¼ä½ä¹å¯è½æ¯JTAï¼ï¼æä»¬ä½¿ç¨"
-"Hibernate <literal>Session</literal>ä¸ç<literal>Transaction</literal> APIã"
+"ä¸ä¸ª <interface>org.hibernate.Session</interface> å°±æ¯ä¸ªåä¸çå·¥ä½åå
ãæä»¬"
+"ææ¶è®©äºæ
ç®åä¸äºï¼å¹¶å设 Hibernate <interface>org.hibernate.Session</"
+"interface> åæ°æ®åºäºå¡æ¯ä¸ä¸å¯¹åºçã为äºè®©æä»¬ç代ç ä»åºå±çäºå¡ç³»ç»ä¸è±ç¦»åº"
+"æ¥ï¼æ¤ä¾ä¸æ¯ JDBCï¼ä½ä¹å¯è½æ¯ JTAï¼ï¼æä»¬ä½¿ç¨ <interfacename>org.hibernate."
+"Transaction</interfacename> APIãå¨è¿ä¸ªä¾åéæä»¬ä½¿ç¨åºäº JDBC çäºå¡æ§ "
+"semanticï¼ä½å®ä¹å¯ä»¥å JTA ä¸èµ·è¿è¡ã"
#. Tag: para
-#: tutorial.xml:515
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What does <literal>sessionFactory.getCurrentSession()</literal> do? First, "
"you can call it as many times and anywhere you like once you get hold of "
@@ -1057,16 +763,15 @@
"xml</filename>? Due to that setting, the context of a current unit of work "
"is bound to the current Java thread that executes the application."
msgstr ""
-"<literal>sessionFactory.getCurrentSession()</literal>æ¯å¹²ä»ä¹çå¢ï¼é¦å
ï¼åªè¦"
-"ä½ ææ<literal>SessionFactory</literal>ï¼å¹¸äºæä»¬æ<literal>HibernateUtil</"
-"literal>ï¼å¯ä»¥éæ¶è·å¾ï¼ï¼å¤§å¯å¨ä»»ä½æ¶åãä»»ä½å°ç¹è°ç¨è¿ä¸ªæ¹æ³ã"
-"<literal>getCurrentSession()</literal>æ¹æ³æ»ä¼è¿åâå½åçâå·¥ä½åå
ãè®°å¾æä»¬"
-"å¨<literal>hibernate.cfg.xml</literal>䏿è¿ä¸é
ç½®éé¡¹è°æ´ä¸º\"thread\"äºåï¼"
-"å æ¤ï¼å æ¤ï¼å½åå·¥ä½åå
被ç»å®å°å½åæ§è¡æä»¬åºç¨ç¨åºçJava线ç¨ã使¯ï¼è¿å¹¶é"
-"æ¯å®å
¨åç¡®ç,ä½ è¿å¾èèå·¥ä½åå
ççå½å¨æèå´ (scope),å®ä½æ¶å¼å§,å使¶ç»æ."
+"<literal>sessionFactory.getCurrentSession()</literal> æ¯å¹²ä»ä¹çå¢ï¼é¦å
ï¼åª"
+"è¦ä½ ææ <interfacename>org.hibernate.SessionFactory</interfacename>ï¼å¤§å¯å¨"
+"任使¶åãä»»ä½å°ç¹è°ç¨è¿ä¸ªæ¹æ³ã<literal>getCurrentSession()</literal> æ¹æ³æ»"
+"ä¼è¿åâå½åçâå·¥ä½åå
ãè®°å¾æä»¬å¨ <filename>src/main/resources/hibernate."
+"cfg.xml</filename> 䏿è¿ä¸é
ç½®éé¡¹è°æ´ä¸º \"thread\" äºåï¼å æ¤ï¼å æ¤ï¼å½åå·¥"
+"ä½åå
被ç»å®å°å½åæ§è¡æä»¬åºç¨ç¨åºç Java 线ç¨ã使¯ï¼è¿å¹¶éæ¯å®å
¨åç¡®ç,ä½ è¿"
+"å¾èèå·¥ä½åå
ççå½å¨æèå´ï¼scopeï¼ï¼å®ä½æ¶å¼å§,å使¶ç»æã"
#. Tag: para
-#: tutorial.xml:529
#, no-c-format
msgid ""
"Hibernate offers three methods of current session tracking. The \"thread\" "
@@ -1074,10 +779,11 @@
"prototyping and tutorials such as this one. Current session tracking is "
"discussed in more detail later on."
msgstr ""
+"Hibernate æä¾ä¸ç§è·è¸ªå½åä¼è¯çæ¹æ³ãåºäºâ线ç¨âçæ¹æ³ä¸éåäºäº§åç¯å¢ï¼å®ä»
"
+"ç¨äº prototyping åæå¦ç¨éãåé¢å°æ´è¯¦ç»å°è®¨è®ºä¼è¯è·è¸ªã"
#. Tag: para
-#: tutorial.xml:538
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A <interface>org.hibernate.Session</interface> begins when the first call to "
"<literal>getCurrentSession()</literal> is made for the current thread. It is "
@@ -1088,19 +794,15 @@
"new <interface>org.hibernate.Session</interface> and can start a new unit of "
"work."
msgstr ""
-"<literal>Session</literal>å¨ç¬¬ä¸æ¬¡è¢«ä½¿ç¨çæ¶å,å³ç¬¬ä¸æ¬¡è°ç¨"
-"<literal>getCurrentSession()</literal>çæ¶å,å
¶çå½å¨æå°±å¼å§ãç¶åå®è¢«"
-"Hibernateç»å®å°å½å线ç¨ãå½äºå¡ç»æçæ¶åï¼ä¸ç®¡æ¯æäº¤è¿æ¯åæ»ï¼Hibernateä¼èª"
-"卿<literal>Session</literal>ä»å½å线ç¨å¥ç¦»ï¼å¹¶ä¸å
³éå®ãåè¥ä½ 忬¡è°ç¨"
-"<literal>getCurrentSession()</literal>ï¼ä½ ä¼å¾å°ä¸ä¸ªæ°ç<literal>Session</"
-"literal>ï¼å¹¶ä¸å¼å§ä¸ä¸ªæ°çå·¥ä½åå
ãè¿ç§<emphasis>线ç¨ç»å®(thread-bound)</"
-"emphasis>çç¼ç¨æ¨¡åï¼modelï¼æ¯ä½¿ç¨Hibernateçæå¹¿æ³çæ¹å¼,å ä¸ºå®æ¯æå¯¹ä½ ç代"
-"ç çµæ´»åå±(äºå¡ååå¯ä»¥åä½ çæ°æ®è®¿é®ä»£ç åç¦»å¼æ¥,卿¬æç¨çåé¢é¨åå°±ä¼è¿ä¹"
-"å)ã"
+"<interface>org.hibernate.Session</interface> å¨ç¬¬ä¸æ¬¡è¢«ä½¿ç¨çæ¶åï¼å³ç¬¬ä¸æ¬¡è°"
+"ç¨ <literal>getCurrentSession()</literal> çæ¶å,å
¶çå½å¨æå°±å¼å§ãç¶åå®è¢« "
+"Hibernate ç»å®å°å½å线ç¨ãå½äºå¡ç»æçæ¶åï¼ä¸ç®¡æ¯æäº¤è¿æ¯åæ»ï¼Hibernate ä¼"
+"èªå¨æ <interface>org.hibernate.Session</interface> ä»å½å线ç¨å¥ç¦»ï¼å¹¶ä¸å
³é"
+"å®ãåè¥ä½ 忬¡è°ç¨ <literal>getCurrentSession()</literal>ï¼ä½ ä¼å¾å°ä¸ä¸ªæ°ç "
+"<interface>org.hibernate.Session</interface>ï¼å¹¶ä¸å¼å§ä¸ä¸ªæ°çå·¥ä½åå
ã"
#. Tag: para
-#: tutorial.xml:551
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Related to the unit of work scope, should the Hibernate <interface>org."
"hibernate.Session</interface> be used to execute one or several database "
@@ -1114,144 +816,100 @@
"<emphasis>session-per-operation</emphasis> an anti-pattern. A real web "
"application is shown later in the tutorial which will help illustrate this."
msgstr ""
-"åå·¥ä½åå
ççå½å¨æè¿ä¸ªè¯é¢ç¸å
³ï¼Hibernate <literal>Session</literal>æ¯å¦è¢«"
-"åºè¯¥ç¨æ¥æ§è¡å¤æ¬¡æ°æ®åºæä½ï¼ä¸é¢çä¾å对æ¯ä¸æ¬¡æä½ä½¿ç¨äºä¸ä¸ª"
-"<literal>Session</literal>ï¼è¿å®å
¨æ¯å·§åï¼è¿ä¸ªä¾å䏿¯å¾å¤æï¼æ æ³å±ç¤ºå
¶ä»æ¹"
-"å¼ãHibernate <literal>Session</literal>ççå½å¨æå¯ä»¥å¾çµæ´»ï¼ä½æ¯ä½ ç»ä¸è¦æ"
-"ä½ çåºç¨ç¨åºè®¾è®¡æä¸º<emphasis>æ¯ä¸æ¬¡</emphasis>æ°æ®åºæä½é½ç¨ä¸ä¸ªæ°ç"
-"Hibernate <literal>Session</literal>ãå æ¤å°±ç®ä¸é¢çä¾åï¼å®ä»¬é½å¾ç®åï¼ä¸ä½ "
-"å¯ä»¥çå°è¿ç§ç¨æ³ï¼è®°ä½<emphasis>æ¯æ¬¡æä½ä¸ä¸ªsession</emphasis>æ¯ä¸ä¸ªå模å¼ã"
-"卿¬æç¨çåé¢ä¼å±ç¤ºä¸ä¸ªçæ£ç(web)ç¨åºã"
+"åå·¥ä½åå
ççå½å¨æè¿ä¸ªè¯é¢ç¸å
³ï¼Hibernate <interface>org.hibernate."
+"Session</interface> æ¯å¦è¢«åºè¯¥ç¨æ¥æ§è¡å¤æ¬¡æ°æ®åºæä½ï¼ä¸é¢çä¾å对æ¯ä¸æ¬¡æä½"
+"使ç¨äºä¸ä¸ª <interface>org.hibernate.Session</interface>ï¼è¿å®å
¨æ¯å·§åï¼è¿ä¸ªä¾"
+"å䏿¯å¾å¤æï¼æ æ³å±ç¤ºå
¶ä»æ¹å¼ãHibernate <interface>org.hibernate.Session</"
+"interface> ççå½å¨æå¯ä»¥å¾çµæ´»ï¼ä½æ¯ä½ ç»ä¸è¦æä½ çåºç¨ç¨åºè®¾è®¡æä¸º<emphasis>"
+"æ¯ä¸æ¬¡</emphasis>æ°æ®åºæä½é½ç¨ä¸ä¸ªæ°ç Hibernate <interface>org.hibernate."
+"Session</interface>ãå æ¤å°±ç®ä¸é¢çä¾åï¼å®ä»¬é½å¾ç®åï¼ä¸ä½ å¯ä»¥çå°è¿ç§ç¨æ³ï¼"
+"è®°ä½<emphasis>æ¯æ¬¡æä½ä¸ä¸ª session</emphasis> æ¯ä¸ä¸ªå模å¼ã卿¬æç¨çåé¢ä¼"
+"å±ç¤ºä¸ä¸ªçæ£çï¼webï¼ç¨åºã"
#. Tag: para
-#: tutorial.xml:568
#, fuzzy, no-c-format
msgid ""
-"See <xref linkend=\"transactions\"/> for more information about transaction "
+"See <xref linkend=\"transactions\" /> for more information about transaction "
"handling and demarcation. The previous example also skipped any error "
"handling and rollback."
msgstr ""
-"å
³äºäºå¡å¤çåäºå¡è¾¹ççå®ç详ç»ä¿¡æ¯ï¼è¯·åç<xref linkend=\"transactions\"/"
-">ãå¨ä¸é¢çä¾åä¸ï¼æä»¬ä¹å¿½ç¥äºææçé误ä¸åæ»çå¤çã"
+"å
³äºäºå¡å¤çåäºå¡è¾¹ççå®ç详ç»ä¿¡æ¯ï¼è¯·åç <xref linkend=\"transactions\" /"
+"> ãå¨ä¸é¢çä¾åä¸ï¼æä»¬ä¹å¿½ç¥äºææçé误ä¸åæ»çå¤çã"
#. Tag: para
-#: tutorial.xml:574
#, no-c-format
msgid ""
"To run this, we will make use of the Maven exec plugin to call our class "
"with the necessary classpath setup: <command>mvn exec:java -Dexec.mainClass="
"\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"store\"</command>"
msgstr ""
+"è¦è¿è¡å®ï¼æä»¬å°ä½¿ç¨ Maven exec æä»¶ä»¥åå¿
è¦ç classpath 设置æ¥è¿è¡è°ç¨ï¼"
+"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
+"\" -Dexec.args=\"store\"</command>ã"
#. Tag: para
-#: tutorial.xml:581
#, no-c-format
msgid "You may need to perform <command>mvn compile</command> first."
-msgstr ""
+msgstr "ä½ å¯è½éè¦å
æ§è¡ <command>mvn compile</command>ã"
#. Tag: para
-#: tutorial.xml:586
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You should see Hibernate starting up and, depending on your configuration, "
"lots of log output. Towards the end, the following line will be displayed:"
msgstr ""
-"ä½ åºè¯¥ä¼çå°ï¼ç¼è¯ä»¥åï¼Hibernateæ ¹æ®ä½ çé
ç½®å¯å¨ï¼å¹¶äº§çä¸å¤§å çè¾åºæ¥å¿ãå¨"
-"æ¥å¿æåä½ ä¼çå°ä¸é¢è¿è¡ï¼"
+"ä½ åºè¯¥ä¼çå°ï¼ç¼è¯ä»¥åï¼Hibernate æ ¹æ®ä½ çé
ç½®å¯å¨ï¼å¹¶äº§çä¸å¤§å çè¾åºæ¥å¿ã"
+"卿¥å¿æåä½ ä¼çå°ä¸é¢è¿è¡ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:591
-#, no-c-format
-msgid ""
-"<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) "
-"values (?, ?, ?)]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:593
#, no-c-format
msgid "This is the <literal>INSERT</literal> executed by Hibernate."
-msgstr ""
+msgstr "æ§è¡ HQL <literal>INSERT</literal> è¯å¥çä¾åå¦ä¸ï¼ "
#. Tag: para
-#: tutorial.xml:597
-#, fuzzy, no-c-format
+#, no-c-format
msgid "To list stored events an option is added to the main method:"
msgstr ""
-"æä»¬æ³è¦ååºææå·²ç»è¢«åå¨çeventsï¼å°±è¦å¢å ä¸ä¸ªæ¡ä»¶åæ¯é项å°mainæ¹æ³ä¸å»ã"
+"æä»¬æ³è¦ååºææå·²ç»è¢«åå¨ç eventsï¼å°±è¦å¢å ä¸ä¸ªæ¡ä»¶åæ¯éé¡¹å° main æ¹æ³ä¸ï¼"
-#. Tag: programlisting
-#: tutorial.xml:601
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[ if (args[0].equals(\"store\")) {\n"
-" mgr.createAndStoreEvent(\"My Event\", new Date());\n"
-" }\n"
-" else if (args[0].equals(\"list\")) {\n"
-" List events = mgr.listEvents();\n"
-" for (int i = 0; i < events.size(); i++) {\n"
-" Event theEvent = (Event) events.get(i);\n"
-" System.out.println(\n"
-" \"Event: \" + theEvent.getTitle() + \" Time: \" + "
-"theEvent.getDate()\n"
-" );\n"
-" }\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:603
-#, fuzzy, no-c-format
msgid "A new <literal>listEvents() method is also added</literal>:"
-msgstr "æä»¬ä¹å¢å ä¸ä¸ªæ°ç<literal>listEvents()</literal>æ¹æ³:"
+msgstr "æä»¬ä¹å¢å ä¸ä¸ªæ°ç <literal>listEvents()</literal> æ¹æ³ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:607
-#, no-c-format
-msgid ""
-"<![CDATA[ private List listEvents() {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-" List result = session.createQuery(\"from Event\").list();\n"
-" session.getTransaction().commit();\n"
-" return result;\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:609
#, fuzzy, no-c-format
msgid ""
"Here, we are using a Hibernate Query Language (HQL) query to load all "
"existing <literal>Event</literal> objects from the database. Hibernate will "
"generate the appropriate SQL, send it to the database and populate "
"<literal>Event</literal> objects with the data. You can create more complex "
-"queries with HQL. See <xref linkend=\"queryhql\"/> for more information."
+"queries with HQL. See <xref linkend=\"queryhql\" /> for more information."
msgstr ""
-"æä»¬å¨è¿éæ¯ç¨ä¸ä¸ªHQLï¼Hibernate Query Languageï¼Hibernateæ¥è¯¢è¯è¨ï¼æ¥è¯¢è¯å¥"
-"æ¥ä»æ°æ®åºä¸å è½½ææåå¨ç<literal>Event</literal>对象ãHibernateä¼çæéå½ç"
-"SQLï¼æå®åéå°æ°æ®åºï¼å¹¶æä½ä»æ¥è¯¢å¾å°æ°æ®ç<literal>Event</literal>对象ãå½"
-"ç¶ï¼ä½ å¯ä»¥ä½¿ç¨HQLæ¥å建æ´å å¤æçæ¥è¯¢ã"
+"æä»¬å¨è¿éæ¯ç¨ä¸ä¸ª HQLï¼Hibernate Query Languageï¼Hibernateæ¥è¯¢è¯è¨ï¼æ¥è¯¢è¯å¥"
+"æ¥ä»æ°æ®åºä¸å è½½ææåå¨ç <literal>Event</literal> 对象ãHibernate ä¼çæé"
+"å½ç SQLï¼æå®åéå°æ°æ®åºï¼å¹¶æä½ä»æ¥è¯¢å¾å°æ°æ®ç <literal>Event</literal> "
+"对象ãå½ç¶ï¼ä½ å¯ä»¥ä½¿ç¨ HQL æ¥å建æ´å å¤æçæ¥è¯¢ãæ´å¤ä¿¡æ¯è¯·åè <xref "
+"linkend=\"queryhql\"/>ã"
#. Tag: para
-#: tutorial.xml:617
#, no-c-format
msgid ""
"Now we can call our new functionality, again using the Maven exec plugin: "
"<command>mvn exec:java -Dexec.mainClass=\"org.hibernate.tutorial.EventManager"
"\" -Dexec.args=\"list\"</command>"
msgstr ""
+"ç°å¨æä»¬å¯ä»¥åæ¬¡ç¨ Maven exec plugin - <command>mvn exec:java -Dexec."
+"mainClass=\"org.hibernate.tutorial.EventManager\" -Dexec.args=\"list\"</"
+"command> è°ç¨æ°çåè½äºã"
#. Tag: title
-#: tutorial.xml:627
#, no-c-format
msgid "Part 2 - Mapping associations"
msgstr "第äºé¨å ï¼ å
³èæ å°"
#. Tag: para
-#: tutorial.xml:629
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"So far we have mapped a single persistent entity class to a table in "
"isolation. Let's expand on that a bit and add some class associations. We "
@@ -1259,111 +917,61 @@
"participate."
msgstr ""
"æä»¬å·²ç»æ å°äºä¸ä¸ªæä¹
åå®ä½ç±»å°è¡¨ä¸ã让æä»¬å¨è¿ä¸ªåºç¡ä¸å¢å ä¸äºç±»ä¹é´çå
³"
-"èãé¦å
æä»¬å¾åºç¨ç¨åºéå¢å 人ï¼peopleï¼çæ¦å¿µï¼å¹¶åå¨ä»ä»¬æåä¸çä¸ä¸ªEventå"
-"表ãï¼è¯è
注ï¼ä¸Event䏿 ·ï¼æä»¬å¨åé¢å°ç´æ¥ä½¿ç¨personæ¥è¡¨ç¤ºâ人âè䏿¯å®ç䏿"
-"ç¿»è¯ï¼"
+"èãé¦å
æä»¬å¾åºç¨ç¨åºéå¢å 人ï¼peopleï¼çæ¦å¿µï¼å¹¶åå¨ä»ä»¬æåä¸çä¸ä¸ª Event "
+"å表ãï¼è¯è
注ï¼ä¸ Event 䏿 ·ï¼æä»¬å¨åé¢å°ç´æ¥ä½¿ç¨ person æ¥è¡¨ç¤ºâ人âè䏿¯å®"
+"çä¸æç¿»è¯ï¼ "
#. Tag: title
-#: tutorial.xml:637
#, no-c-format
msgid "Mapping the Person class"
-msgstr "æ å°Personç±»"
+msgstr "æ å° Person ç±»"
#. Tag: para
-#: tutorial.xml:639
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The first cut of the <literal>Person</literal> class looks like this:"
-msgstr "æåç®åç<literal>Person</literal>ç±»ï¼"
+msgstr "æåç®åç <literal>Person</literal> ç±»ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:643
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.domain;\n"
-"\n"
-"public class Person {\n"
-"\n"
-" private Long id;\n"
-" private int age;\n"
-" private String firstname;\n"
-" private String lastname;\n"
-"\n"
-" public Person() {}\n"
-"\n"
-" // Accessor methods for all properties, private setter for 'id'\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:645
#, no-c-format
msgid ""
"Save this to a file named <filename>src/main/java/org/hibernate/tutorial/"
"domain/Person.java</filename>"
msgstr ""
+"æå®ä¿å为æä»¶ <filename>src/main/java/org/hibernate/tutorial/domain/Person."
+"java</filename>ã"
#. Tag: para
-#: tutorial.xml:650
#, no-c-format
msgid ""
"Next, create the new mapping file as <filename>src/main/resources/org/"
"hibernate/tutorial/domain/Person.hbm.xml</filename>"
msgstr ""
+"ç¶åï¼å建æ°çæ å°æä»¶ <filename>src/main/resources/org/hibernate/tutorial/"
+"domain/Person.hbm.xml</filename>ã"
-#. Tag: programlisting
-#: tutorial.xml:655
-#, no-c-format
-msgid ""
-"<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
-"\n"
-" <class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-" </class>\n"
-"\n"
-"</hibernate-mapping>]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:657
#, no-c-format
msgid "Finally, add the new mapping to Hibernate's configuration:"
-msgstr "æåï¼ææ°çæ å°å å
¥å°Hibernateçé
ç½®ä¸ï¼"
+msgstr "æåï¼ææ°çæ å°å å
¥å° Hibernate çé
ç½®ä¸ï¼"
-#. Tag: programlisting
-#: tutorial.xml:661
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
-"<mapping resource=\"events/Person.hbm.xml\"/>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:663
-#, fuzzy, no-c-format
-msgid ""
"Create an association between these two entities. Persons can participate in "
"events, and events have participants. The design questions you have to deal "
"with are: directionality, multiplicity, and collection behavior."
msgstr ""
-"ç°å¨æä»¬å¨è¿ä¸¤ä¸ªå®ä½ä¹é´å建ä¸ä¸ªå
³èãæ¾ç¶ï¼personså¯ä»¥åä¸ä¸ç³»åeventsï¼è"
-"events乿ä¸åçåå è
ï¼personsï¼ãæä»¬éè¦å¤çç设计é®é¢æ¯å
³èæ¹å"
-"ï¼directionalityï¼ï¼é¶æ°ï¼multiplicityï¼åéåï¼collectionï¼çè¡ä¸ºã"
+"ç°å¨æä»¬å¨è¿ä¸¤ä¸ªå®ä½ä¹é´å建ä¸ä¸ªå
³èãæ¾ç¶ï¼persons å¯ä»¥åä¸ä¸ç³»å eventsï¼"
+"è events 乿ä¸åçåå è
ï¼personsï¼ãæä»¬éè¦å¤çç设计é®é¢æ¯å
³èæ¹å"
+"ï¼directionalityï¼ï¼é¶æ°ï¼multiplicityï¼åéåï¼collectionï¼çè¡ä¸ºã "
#. Tag: title
-#: tutorial.xml:673
#, no-c-format
msgid "A unidirectional Set-based association"
-msgstr "ååSet-basedçå
³è"
+msgstr "åå Set-based çå
³è"
#. Tag: para
-#: tutorial.xml:675
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"By adding a collection of events to the <literal>Person</literal> class, you "
"can easily navigate to the events for a particular person, without executing "
@@ -1373,33 +981,14 @@
"Set</interfacename> because the collection will not contain duplicate "
"elements and the ordering is not relevant to our examples:"
msgstr ""
-"æä»¬å°å<literal>Person</literal>ç±»å¢å ä¸è¿ä¸²çeventsã飿 ·ï¼éè¿è°ç¨"
-"<literal>aPerson.getEvents()</literal>ï¼å°±å¯ä»¥è½»æ¾å°å¯¼èªå°ç¹å®personæåä¸ç"
-"eventsï¼èä¸ç¨å»æ§è¡ä¸ä¸ªæ¾å¼çæ¥è¯¢ãæä»¬ä½¿ç¨Javaçéåç±»ï¼collectionï¼ï¼"
-"<literal>Set</literal>ï¼å 为set ä¸å
å«éå¤çå
ç´ å䏿们æ å
³çæåºã"
+"æä»¬å°å <literal>Person</literal> ç±»å¢å ä¸è¿ä¸²ç eventsã飿 ·ï¼éè¿è°ç¨ "
+"<literal>aPerson.getEvents()</literal>ï¼å°±å¯ä»¥è½»æ¾å°å¯¼èªå°ç¹å® person æåä¸"
+"ç eventsï¼èä¸ç¨å»æ§è¡ä¸ä¸ªæ¾å¼çæ¥è¯¢ãæä»¬ä½¿ç¨ Java çéåç±»ï¼collectionï¼ï¼"
+"<literal>Set</literal>ï¼å 为 set ä¸å
å«éå¤çå
ç´ å䏿们æ å
³çæåºã "
-#. Tag: programlisting
-#: tutorial.xml:686
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[public class Person {\n"
-"\n"
-" private Set events = new HashSet();\n"
-"\n"
-" public Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" public void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"}]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:688
-#, fuzzy, no-c-format
-msgid ""
"Before mapping this association, let's consider the other side. We could "
"just keep this unidirectional or create another collection on the "
"<literal>Event</literal>, if we wanted to be able to navigate it from both "
@@ -1411,37 +1000,16 @@
"Hence, we use Hibernate's many-to-many mapping:"
msgstr ""
"卿 å°è¿ä¸ªå
³èä¹åï¼å
èèä¸ä¸æ¤å
³èçå¦å¤ä¸ç«¯ã徿¾ç¶ï¼æä»¬å¯ä»¥ä¿æè¿ä¸ªå
³è"
-"æ¯ååçãæè
ï¼æä»¬å¯ä»¥å¨<literal>Event</literal>éå建å¦å¤ä¸ä¸ªéåï¼å¦æå¸"
-"æè½å¤ååå°å¯¼èªï¼å¦ï¼<literal>anEvent.getParticipants()</literal>ãä»åè½ç"
-"è§åº¦æ¥è¯´ï¼è¿å¹¶ä¸æ¯å¿
é¡»çãå ä¸ºä½ æ»å¯ä»¥æ¾å¼å°æ§è¡ä¸ä¸ªæ¥è¯¢ï¼ä»¥è·å¾æä¸ªç¹å®event"
-"çææåä¸è
ãè¿æ¯ä¸ªå¨è®¾è®¡æ¶éè¦ååºçéæ©ï¼å®å
¨ç±ä½ æ¥å³å®ï¼ä½æ¤è®¨è®ºä¸å
³äºå
³"
-"èçé¶æ°æ¯æ¸
æ¥çï¼å³ä¸¤ç«¯é½æ¯âå¤âå¼çï¼æä»¬æå®å«å<emphasis>å¤å¯¹å¤(many-to-"
-"many)</emphasis>å
³èãå èï¼æä»¬ä½¿ç¨Hibernateçå¤å¯¹å¤æ å°ï¼"
+"æ¯ååçãæè
ï¼æä»¬å¯ä»¥å¨ <literal>Event</literal> éå建å¦å¤ä¸ä¸ªéåï¼å¦æ"
+"叿è½å¤ååå°å¯¼èªï¼å¦ï¼<literal>anEvent.getParticipants()</literal>ãä»åè½"
+"çè§åº¦æ¥è¯´ï¼è¿å¹¶ä¸æ¯å¿
é¡»çãå ä¸ºä½ æ»å¯ä»¥æ¾å¼å°æ§è¡ä¸ä¸ªæ¥è¯¢ï¼ä»¥è·å¾æä¸ªç¹å® "
+"event çææåä¸è
ãè¿æ¯ä¸ªå¨è®¾è®¡æ¶éè¦ååºçéæ©ï¼å®å
¨ç±ä½ æ¥å³å®ï¼ä½æ¤è®¨è®ºä¸"
+"å
³äºå
³èçé¶æ°æ¯æ¸
æ¥çï¼å³ä¸¤ç«¯é½æ¯âå¤âå¼çï¼æä»¬æå®å«å<emphasis>å¤å¯¹å¤"
+"ï¼many-to-manyï¼</emphasis>å
³èãå èï¼æä»¬ä½¿ç¨ Hibernate çå¤å¯¹å¤æ å°ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:701
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
-" <id name=\"id\" column=\"PERSON_ID\">\n"
-" <generator class=\"native\"/>\n"
-" </id>\n"
-" <property name=\"age\"/>\n"
-" <property name=\"firstname\"/>\n"
-" <property name=\"lastname\"/>\n"
-"\n"
-" <set name=\"events\" table=\"PERSON_EVENT\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
-" </set>\n"
-"\n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:703
-#, fuzzy, no-c-format
-msgid ""
"Hibernate supports a broad range of collection mappings, a <literal>set</"
"literal> being most common. For a many-to-many association, or <emphasis>n:"
"m</emphasis> entity relationship, an association table is required. Each row "
@@ -1454,76 +1022,38 @@
"tell Hibernate the class of the objects in your collection (the class on the "
"other side of the collection of references)."
msgstr ""
-"Hibernateæ¯æåç§åæ ·çéåæ å°ï¼<literal><set></literal>使ç¨çæä¸ºæ®"
-"éã对äºå¤å¯¹å¤å
³èï¼æå«<emphasis>n:m</emphasis>å®ä½å
³ç³»ï¼, éè¦ä¸ä¸ªå
³è表"
-"ï¼association tableï¼ã<literal>表</literal>éé¢çæ¯ä¸è¡ä»£è¡¨ä»personå°eventç"
-"ä¸ä¸ªå
³èãè¡¨åæ¯ç±<literal>set</literal>å
ç´ ç<literal>table</literal>屿§é
"
-"ç½®çãå
³èéé¢çæ è¯ç¬¦å段åï¼å¯¹äºpersonçä¸ç«¯ï¼æ¯ç±<literal><key></"
-"literal>å
ç´ å®ä¹ï¼èeventä¸ç«¯çåæ®µåæ¯ç±<literal><many-to-many></"
-"literal>å
ç´ ç<literal>column</literal>屿§å®ä¹ãä½ ä¹å¿
é¡»åè¯Hibernateéåä¸"
-"对象çç±»ï¼ä¹å°±æ¯ä½äºè¿ä¸ªéåæä»£è¡¨çå
³èå¦å¤ä¸ç«¯çç±»ï¼ã"
+"Hibernate æ¯æåç§åæ ·çéåæ å°ï¼<literal><set></literal> 使ç¨çæä¸ºæ®"
+"éã对äºå¤å¯¹å¤å
³èï¼æå« <emphasis>n:m</emphasis> å®ä½å
³ç³»ï¼, éè¦ä¸ä¸ªå
³è表"
+"ï¼association tableï¼ã<literal>表</literal>éé¢çæ¯ä¸è¡ä»£è¡¨ä» person å° "
+"event çä¸ä¸ªå
³èãè¡¨åæ¯ç± <literal>set</literal> å
ç´ ç <literal>table</"
+"literal> 屿§é
ç½®çãå
³èéé¢çæ è¯ç¬¦å段åï¼å¯¹äº person çä¸ç«¯ï¼æ¯ç± "
+"<literal><key></literal> å
ç´ å®ä¹ï¼è event ä¸ç«¯çåæ®µåæ¯ç± "
+"<literal><many-to-many></literal> å
ç´ ç <literal>column</literal> 屿§"
+"å®ä¹ãä½ ä¹å¿
é¡»åè¯ Hibernate éåä¸å¯¹è±¡çç±»ï¼ä¹å°±æ¯ä½äºè¿ä¸ªéåæä»£è¡¨çå
³èå¦"
+"å¤ä¸ç«¯çç±»ï¼ã "
#. Tag: para
-#: tutorial.xml:719
#, no-c-format
msgid "The database schema for this mapping is therefore:"
-msgstr "å èè¿ä¸ªæ å°çæ°æ®åºschemaæ¯ï¼"
+msgstr "å èè¿ä¸ªæ å°çæ°æ®åº schema æ¯ï¼"
-#. Tag: programlisting
-#: tutorial.xml:723
-#, no-c-format
-msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | |\n"
-" |_____________| |__________________| | PERSON |\n"
-" | | | | |_____________|\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | |\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
-" | TITLE | |__________________| | AGE |\n"
-" |_____________| | FIRSTNAME |\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
#. Tag: title
-#: tutorial.xml:728
#, no-c-format
msgid "Working the association"
msgstr "使å
³èå·¥ä½"
#. Tag: para
-#: tutorial.xml:730
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now we will bring some people and events together in a new method in "
"<literal>EventManager</literal>:"
msgstr ""
-"æä»¬æä¸äºpeopleåevents ä¸èµ·æ¾å°<literal>EventManager</literal>çæ°æ¹æ³ä¸ï¼"
+"æä»¬æä¸äº people å events ä¸èµ·æ¾å° <literal>EventManager</literal> çæ°æ¹æ³"
+"ä¸ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:734
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-" aPerson.getEvents().add(anEvent);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:736
-#, fuzzy, no-c-format
-msgid ""
"After loading a <literal>Person</literal> and an <literal>Event</literal>, "
"simply modify the collection using the normal collection methods. There is "
"no explicit call to <literal>update()</literal> or <literal>save()</"
@@ -1538,22 +1068,21 @@
"of a unit of work, is called <emphasis>flushing</emphasis>. In our code, the "
"unit of work ends with a commit, or rollback, of the database transaction."
msgstr ""
-"å¨å è½½ä¸<literal>Person</literal>å<literal>Event</literal>åï¼ä½¿ç¨æ®éçéå"
-"æ¹æ³å°±å¯å®¹æå°ä¿®æ¹æä»¬å®ä¹çéåãå¦ä½ æè§ï¼æ²¡ææ¾å¼ç<literal>update()</"
-"literal>æ<literal>save()</literal>ï¼Hibernateä¼èªå¨æ£æµå°éåå·²ç»è¢«ä¿®æ¹å¹¶é"
-"è¦æ´æ°åæ°æ®åºãè¿å«åèªå¨èæ£æ¥ï¼<emphasis>automatic dirty checking</"
-"emphasis>ï¼ï¼ä½ ä¹å¯ä»¥å°è¯ä¿®æ¹ä»»ä½å¯¹è±¡çnameæè
date屿§ï¼åªè¦ä»ä»¬å¤äº"
-"<emphasis>æä¹
å</emphasis>ç¶æï¼ä¹å°±æ¯è¢«ç»å®å°æä¸ªHibernate ç"
-"<literal>Session</literal>ä¸ï¼å¦ï¼ä»ä»¬ååå¨ä¸ä¸ªåå
æä½è¢«å è½½æè
ä¿åï¼ï¼"
-"Hibernateçè§ä»»ä½æ¹åå¹¶å¨åå°éå¼åçæ¹å¼æ§è¡SQLã忥å
åç¶æåæ°æ®åºçè¿"
+"å¨å è½½ä¸ <literal>Person</literal> å <literal>Event</literal> åï¼ä½¿ç¨æ®éç"
+"éåæ¹æ³å°±å¯å®¹æå°ä¿®æ¹æä»¬å®ä¹çéåãå¦ä½ æè§ï¼æ²¡ææ¾å¼ç <literal>update()"
+"</literal> æ <literal>save()</literal>ï¼Hibernate ä¼èªå¨æ£æµå°éåå·²ç»è¢«ä¿®æ¹"
+"å¹¶éè¦æ´æ°åæ°æ®åºãè¿å«åèªå¨èæ£æ¥ï¼<emphasis>automatic dirty checking</"
+"emphasis>ï¼ï¼ä½ ä¹å¯ä»¥å°è¯ä¿®æ¹ä»»ä½å¯¹è±¡ç name æè
date 屿§ï¼åªè¦ä»ä»¬å¤äº"
+"<emphasis>æä¹
å</emphasis>ç¶æï¼ä¹å°±æ¯è¢«ç»å®å°æä¸ª Hibernate ç "
+"<literal>Session</literal> ä¸ï¼å¦ï¼ä»ä»¬ååå¨ä¸ä¸ªåå
æä½è¢«å è½½æè
ä¿åï¼ï¼"
+"Hibernate çè§ä»»ä½æ¹åå¹¶å¨åå°éå¼åçæ¹å¼æ§è¡ SQLã忥å
åç¶æåæ°æ®åºçè¿"
"ç¨ï¼é常åªå¨åå
æä½ç»æçæ¶ååçï¼ç§°æ¤è¿ç¨ä¸ºæ¸
çç¼å<emphasis>ï¼flushingï¼"
"</emphasis>ã卿们ç代ç ä¸ï¼å·¥ä½åå
ç±æ°æ®åºäºå¡çæäº¤ï¼æè
åæ»ï¼æ¥ç»æââè¿"
-"æ¯ç±<literal>CurrentSessionContext</literal>ç±»ç<literal>thread</literal>é
ç½®"
-"é项å®ä¹çã"
+"æ¯ç± <literal>CurrentSessionContext</literal> ç±»ç <literal>thread</literal> "
+"é
ç½®é项å®ä¹çã "
#. Tag: para
-#: tutorial.xml:755
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can load person and event in different units of work. Or you can modify "
"an object outside of a <interfacename>org.hibernate.Session</interfacename>, "
@@ -1561,63 +1090,26 @@
"is called <emphasis>detached</emphasis>). You can even modify a collection "
"when it is detached:"
msgstr ""
-"å½ç¶ï¼ä½ ä¹å¯ä»¥å¨ä¸åçåå
æä½éé¢å è½½personåeventãæå¨<literal>Session</"
-"literal>以å¤ä¿®æ¹ä¸æ¯å¤å¨æä¹
åï¼persistentï¼ç¶æä¸ç对象ï¼å¦æè¯¥å¯¹è±¡ä»¥åæ¾ç»"
-"被æä¹
åï¼é£ä¹æä»¬ç§°è¿ä¸ªç¶æä¸º<emphasis>è±ç®¡ï¼detachedï¼</emphasis>ï¼ãä½ çè³"
-"å¯ä»¥å¨ä¸ä¸ªéå被è±ç®¡æ¶ä¿®æ¹å®ï¼"
+"å½ç¶ï¼ä½ ä¹å¯ä»¥å¨ä¸åçåå
æä½éé¢å è½½ person å eventãæå¨ "
+"<literal>Session</literal> 以å¤ä¿®æ¹ä¸æ¯å¤å¨æä¹
åï¼persistentï¼ç¶æä¸ç对象"
+"ï¼å¦æè¯¥å¯¹è±¡ä»¥åæ¾ç»è¢«æä¹
åï¼é£ä¹æä»¬ç§°è¿ä¸ªç¶æä¸º<emphasis>è±ç®¡ï¼detachedï¼"
+"</emphasis>ï¼ãä½ çè³å¯ä»¥å¨ä¸ä¸ªéå被è±ç®¡æ¶ä¿®æ¹å®ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:764
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session\n"
-" .createQuery(\"select p from Person p left join fetch p."
-"events where p.id = :pid\")\n"
-" .setParameter(\"pid\", personId)\n"
-" .uniqueResult(); // Eager fetch the collection so we can use "
-"it detached\n"
-" Event anEvent = (Event) session.load(Event.class, eventId);\n"
-"\n"
-" session.getTransaction().commit();\n"
-"\n"
-" // End of first unit of work\n"
-"\n"
-" aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
-"detached\n"
-"\n"
-" // Begin second unit of work\n"
-"\n"
-" Session session2 = HibernateUtil.getSessionFactory()."
-"getCurrentSession();\n"
-" session2.beginTransaction();\n"
-" session2.update(aPerson); // Reattachment of aPerson\n"
-"\n"
-" session2.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:766
-#, fuzzy, no-c-format
-msgid ""
"The call to <literal>update</literal> makes a detached object persistent "
"again by binding it to a new unit of work, so any modifications you made to "
"it while detached can be saved to the database. This includes any "
"modifications (additions/deletions) you made to a collection of that entity "
"object."
msgstr ""
-"对<literal>update</literal>çè°ç¨ä½¿ä¸ä¸ªè±ç®¡å¯¹è±¡éæ°æä¹
åï¼ä½ å¯ä»¥è¯´å®è¢«ç»å®å°"
-"ä¸ä¸ªæ°çåå
æä½ä¸ï¼æä»¥å¨è±ç®¡ç¶æä¸å¯¹å®æåçä»»ä½ä¿®æ¹é½ä¼è¢«ä¿åå°æ°æ®åºéã"
-"è¿ä¹å
æ¬ä½ 对è¿ä¸ªå®ä½å¯¹è±¡çéåæä½ç任使¹å¨ï¼å¢å /å é¤ï¼ã"
+"对 <literal>update</literal> çè°ç¨ä½¿ä¸ä¸ªè±ç®¡å¯¹è±¡éæ°æä¹
åï¼ä½ å¯ä»¥è¯´å®è¢«ç»å®"
+"å°ä¸ä¸ªæ°çåå
æä½ä¸ï¼æä»¥å¨è±ç®¡ç¶æä¸å¯¹å®æåçä»»ä½ä¿®æ¹é½ä¼è¢«ä¿åå°æ°æ®åº"
+"éãè¿ä¹å
æ¬ä½ 对è¿ä¸ªå®ä½å¯¹è±¡çéåæä½ç任使¹å¨ï¼å¢å /å é¤ï¼ã "
#. Tag: para
-#: tutorial.xml:775
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This is not much use in our example, but it is an important concept you can "
"incorporate into your own application. Complete this exercise by adding a "
@@ -1627,29 +1119,14 @@
"to modify some of the previous methods to return that identifier):"
msgstr ""
"è¿å¯¹æä»¬å½åçæ
形䏿¯å¾æç¨ï¼ä½å®æ¯é常éè¦çæ¦å¿µï¼ä½ å¯ä»¥æå®èå
¥å°ä½ èªå·±ç"
-"åºç¨ç¨åºè®¾è®¡ä¸ãå¨<literal>EventManager</literal>çmainæ¹æ³ä¸æ·»å ä¸ä¸ªæ°çå¨"
-"ä½ï¼å¹¶ä»å½ä»¤è¡è¿è¡å®æ¥å®ææä»¬æåçç»ä¹ ãå¦æä½ éè¦personåeventçæ è¯ç¬¦ â "
-"é£å°±ç¨<literal>save()</literal>æ¹æ³è¿åå®ï¼ä½ å¯è½éè¦ä¿®æ¹åé¢çä¸äºæ¹æ³æ¥è¿å"
-"é£ä¸ªæ è¯ç¬¦ï¼ï¼"
+"åºç¨ç¨åºè®¾è®¡ä¸ãå¨<literal>EventManager</literal>ç main æ¹æ³ä¸æ·»å ä¸ä¸ªæ°çå¨"
+"ä½ï¼å¹¶ä»å½ä»¤è¡è¿è¡å®æ¥å®ææä»¬æåçç»ä¹ ãå¦æä½ éè¦ person å event çæ è¯"
+"符 â é£å°±ç¨ <literal>save()</literal> æ¹æ³è¿åå®ï¼ä½ å¯è½éè¦ä¿®æ¹åé¢çä¸äºæ¹"
+"æ³æ¥è¿åé£ä¸ªæ è¯ç¬¦ï¼ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:783
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
-" Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
-"());\n"
-" Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
-" mgr.addPersonToEvent(personId, eventId);\n"
-" System.out.println(\"Added person \" + personId + \" to event \" "
-"+ eventId);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:785
-#, fuzzy, no-c-format
-msgid ""
"This is an example of an association between two equally important classes : "
"two entities. As mentioned earlier, there are other classes and types in a "
"typical model, usually \"less important\". Some you have already seen, like "
@@ -1665,76 +1142,49 @@
msgstr ""
"ä¸é¢æ¯ä¸ªå
³äºä¸¤ä¸ªåçéè¦çå®ä½ç±»é´å
³èçä¾åãåå颿æå°ç飿 ·ï¼å¨ç¹å®ç模"
"åä¸ä¹åå¨å
¶å®çç±»åç±»åï¼è¿äºç±»åç±»åé常æ¯â次è¦çâãä½ å·²çå°è¿å
¶ä¸çä¸äºï¼"
-"å<literal>int</literal>æ<literal>String</literal>ãæä»¬ç§°è¿äºç±»ä¸º<emphasis>"
-"å¼ç±»åï¼value typeï¼</emphasis>ï¼å®ä»¬çå®ä¾<emphasis>ä¾èµï¼dependï¼</"
-"emphasis>å¨æä¸ªç¹å®çå®ä½ä¸ãè¿äºç±»åçå®ä¾æ²¡æå®ä»¬èªå·±çæ è¯ï¼identityï¼ï¼ä¹"
-"ä¸è½å¨å®ä½é´è¢«å
±äº«ï¼æ¯å¦ï¼ä¸¤ä¸ªpersonä¸è½å¼ç¨åä¸ä¸ª<literal>firstname</"
-"literal>对象ï¼å³ä½¿ä»ä»¬æç¸åçfirst nameï¼ãå½ç¶ï¼å¼ç±»åå¹¶ä¸ä»
ä»
å¨JDKä¸åå¨"
-"ï¼äºå®ä¸ï¼å¨ä¸ä¸ªHibernateåºç¨ç¨åºä¸ï¼ææçJDKç±»é½è¢«è§ä¸ºå¼ç±»åï¼ï¼èä¸ä½ ä¹å¯"
-"以ç¼åä½ èªå·±çä¾èµç±»ï¼ä¾å¦<literal>Address</literal>ï¼"
-"<literal>MonetaryAmount</literal>ã"
+"å <literal>int</literal> æ <literal>String</literal>ãæä»¬ç§°è¿äºç±»ä¸º"
+"<emphasis>å¼ç±»åï¼value typeï¼</emphasis>ï¼å®ä»¬çå®ä¾<emphasis>ä¾èµï¼dependï¼"
+"</emphasis>å¨æä¸ªç¹å®çå®ä½ä¸ãè¿äºç±»åçå®ä¾æ²¡æå®ä»¬èªå·±çæ è¯ï¼identityï¼ï¼"
+"ä¹ä¸è½å¨å®ä½é´è¢«å
±äº«ï¼æ¯å¦ï¼ä¸¤ä¸ª person ä¸è½å¼ç¨åä¸ä¸ª <literal>firstname</"
+"literal> 对象ï¼å³ä½¿ä»ä»¬æç¸åç first nameï¼ãå½ç¶ï¼å¼ç±»åå¹¶ä¸ä»
ä»
å¨ JDK ä¸å"
+"å¨ï¼äºå®ä¸ï¼å¨ä¸ä¸ª Hibernate åºç¨ç¨åºä¸ï¼ææç JDK ç±»é½è¢«è§ä¸ºå¼ç±»åï¼ï¼èä¸"
+"ä½ ä¹å¯ä»¥ç¼åä½ èªå·±çä¾èµç±»ï¼ä¾å¦ <literal>Address</literal>ï¼"
+"<literal>MonetaryAmount</literal>ã "
#. Tag: para
-#: tutorial.xml:803
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also design a collection of value types. This is conceptually "
"different from a collection of references to other entities, but looks "
"almost the same in Java."
msgstr ""
"ä½ ä¹å¯ä»¥è®¾è®¡ä¸ä¸ªå¼ç±»åçéåï¼è¿å¨æ¦å¿µä¸ä¸å¼ç¨å
¶å®å®ä½çéåæå¾å¤§çä¸åï¼ä½"
-"æ¯å¨Javaéé¢çèµ·æ¥å 乿¯ä¸æ ·çã"
+"æ¯å¨ Java éé¢çèµ·æ¥å 乿¯ä¸æ ·çã "
#. Tag: title
-#: tutorial.xml:812
#, no-c-format
msgid "Collection of values"
msgstr "å¼ç±»åçéå"
#. Tag: para
-#: tutorial.xml:814
#, no-c-format
msgid ""
"Let's add a collection of email addresses to the <literal>Person</literal> "
"entity. This will be represented as a <interfacename>java.util.Set</"
"interfacename> of <classname>java.lang.String</classname> instances:"
msgstr ""
+"让æä»¬å¨ <literal>Person</literal> å®ä½éæ·»å ä¸ä¸ªçµåé®ä»¶çéåãè¿å°ä»¥ "
+"<classname>java.lang.String</classname> å®ä¾ç <interfacename>java.util.Set</"
+"interfacename> åºç°ï¼"
-#. Tag: programlisting
-#: tutorial.xml:820
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[ private Set emailAddresses = new HashSet();\n"
-"\n"
-" public Set getEmailAddresses() {\n"
-" return emailAddresses;\n"
-" }\n"
-"\n"
-" public void setEmailAddresses(Set emailAddresses) {\n"
-" this.emailAddresses = emailAddresses;\n"
-" }]]>"
-msgstr ""
+msgid "The mapping of this <literal>Set</literal> is as follows:"
+msgstr "è¿ä¸ª <literal>Set</literal> çæ å°å¦ä¸ï¼"
#. Tag: para
-#: tutorial.xml:822
-#, fuzzy, no-c-format
-msgid "The mapping of this <literal>Set</literal> is as follows:"
-msgstr "è¿ä¸ª<literal>Set</literal>çæ å°"
-
-#. Tag: programlisting
-#: tutorial.xml:826
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
-" <key column=\"PERSON_ID\"/>\n"
-" <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:828
-#, fuzzy, no-c-format
-msgid ""
"The difference compared with the earlier mapping is the use of the "
"<literal>element</literal> part which tells Hibernate that the collection "
"does not contain references to another entity, but is rather a collection "
@@ -1747,175 +1197,97 @@
"<literal>element</literal> element defines the column name where the email "
"address values will actually be stored."
msgstr ""
-"æ¯è¾è¿æ¬¡åæ¤åæ å°çå·®å«ï¼ä¸»è¦å¨äº<literal>element</literal>é¨åï¼è¿æ¬¡å¹¶æ²¡æ"
-"å
å«å¯¹å
¶å®å®ä½å¼ç¨çéåï¼èæ¯å
ç´ ç±»å为<literal>String</literal>çéåï¼å¨æ "
-"å°ä¸ä½¿ç¨å°åçååâstringâæ¯åä½ è¡¨æå®æ¯ä¸ä¸ªHibernateçæ å°ç±»åæè
ç±»å转æ¢"
-"å¨ï¼ãåä¹å䏿 ·ï¼<literal>set</literal>å
ç´ ç<literal>table</literal>屿§å³"
-"å®äºç¨äºéåç表åã<literal>key</literal>å
ç´ å®ä¹äºå¨éå表ä¸å¤é®çåæ®µåã"
-"<literal>element</literal>å
ç´ ç<literal>column</literal>屿§å®ä¹ç¨äºå®é
ä¿å"
-"<literal>String</literal>å¼çåæ®µåã"
+"æ¯è¾è¿æ¬¡åæ¤åæ å°çå·®å«ï¼ä¸»è¦å¨äº <literal>element</literal> é¨åï¼è¿æ¬¡å¹¶æ²¡"
+"æå
å«å¯¹å
¶å®å®ä½å¼ç¨çéåï¼èæ¯å
ç´ ç±»å为 <literal>String</literal> çéå"
+"ï¼å¨æ å°ä¸ä½¿ç¨å°åçååâstringâæ¯åä½ è¡¨æå®æ¯ä¸ä¸ª Hibernate çæ å°ç±»åæè
ç±»"
+"å转æ¢å¨ï¼ãåä¹å䏿 ·ï¼<literal>set</literal> å
ç´ ç <literal>table</"
+"literal> 屿§å³å®äºç¨äºéåç表åã<literal>key</literal> å
ç´ å®ä¹äºå¨éå表"
+"ä¸å¤é®çåæ®µåã<literal>element</literal> å
ç´ ç <literal>column</literal> "
+"屿§å®ä¹ç¨äºå®é
ä¿å <literal>String</literal> å¼çåæ®µåã "
#. Tag: para
-#: tutorial.xml:844
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Here is the updated schema:"
-msgstr "çä¸ä¸ä¿®æ¹åçæ°æ®åºschemaã"
+msgstr "çä¸ä¸ä¿®æ¹åçæ°æ®åº schemaã "
-#. Tag: programlisting
-#: tutorial.xml:848
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[\n"
-" _____________ __________________\n"
-" | | | | _____________\n"
-" | EVENTS | | PERSON_EVENT | | | "
-"___________________\n"
-" |_____________| |__________________| | PERSON | "
-"| |\n"
-" | | | | |_____________| | "
-"PERSON_EMAIL_ADDR |\n"
-" | *EVENT_ID | <--> | *EVENT_ID | | | |"
-"___________________|\n"
-" | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
-"*PERSON_ID |\n"
-" | TITLE | |__________________| | AGE | | "
-"*EMAIL_ADDR |\n"
-" |_____________| | FIRSTNAME | |"
-"___________________|\n"
-" | LASTNAME |\n"
-" |_____________|\n"
-" ]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:850
-#, fuzzy, no-c-format
-msgid ""
"You can see that the primary key of the collection table is in fact a "
"composite key that uses both columns. This also implies that there cannot be "
"duplicate email addresses per person, which is exactly the semantics we need "
"for a set in Java."
msgstr ""
-"ä½ å¯ä»¥çå°éå表ç主é®å®é
䏿¯ä¸ªå¤å主é®ï¼åæ¶ä½¿ç¨äº2ä¸ªåæ®µãè¿ä¹æç¤ºäºå¯¹äºå"
-"ä¸ä¸ªpersonä¸è½æéå¤çemailå°åï¼è¿æ£æ¯Javaéé¢ä½¿ç¨Setæ¶åæéè¦çè¯ä¹ï¼Seté"
-"å
ç´ ä¸è½éå¤ï¼ã"
+"ä½ å¯ä»¥çå°éå表ç主é®å®é
䏿¯ä¸ªå¤å主é®ï¼åæ¶ä½¿ç¨äºä¸¤ä¸ªå段ãè¿ä¹æç¤ºäºå¯¹äº"
+"åä¸ä¸ª person ä¸è½æéå¤ç email å°åï¼è¿æ£æ¯ Java éé¢ä½¿ç¨ Set æ¶åæéè¦ç"
+"è¯ä¹ï¼Set éå
ç´ ä¸è½éå¤ï¼ã"
#. Tag: para
-#: tutorial.xml:856
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can now try to add elements to this collection, just like we did before "
"by linking persons and events. It is the same code in Java:"
msgstr ""
-"ä½ ç°å¨å¯ä»¥è¯çæå
ç´ å å
¥å°è¿ä¸ªéåï¼å°±åæä»¬å¨ä¹åå
³èpersonåeventç飿 ·ãå
¶"
-"å®ç°çJavaä»£ç æ¯ç¸åçï¼"
+"ä½ ç°å¨å¯ä»¥è¯çæå
ç´ å å
¥å°è¿ä¸ªéåï¼å°±åæä»¬å¨ä¹åå
³è person å event çé£"
+"æ ·ãå
¶å®ç°ç Java ä»£ç æ¯ç¸åçï¼ "
-#. Tag: programlisting
-#: tutorial.xml:861
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ private void addEmailToPerson(Long personId, String "
-"emailAddress) {\n"
-" Session session = HibernateUtil.getSessionFactory().getCurrentSession"
-"();\n"
-" session.beginTransaction();\n"
-"\n"
-" Person aPerson = (Person) session.load(Person.class, personId);\n"
-" // adding to the emailAddress collection might trigger a lazy load "
-"of the collection\n"
-" aPerson.getEmailAddresses().add(emailAddress);\n"
-"\n"
-" session.getTransaction().commit();\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:863
-#, fuzzy, no-c-format
-msgid ""
"This time we did not use a <emphasis>fetch</emphasis> query to initialize "
"the collection. Monitor the SQL log and try to optimize this with an eager "
"fetch."
msgstr ""
-"è¿æ¬¡æä»¬æ²¡æä½¿ç¨<emphasis>fetch</emphasis>æ¥è¯¢æ¥åå§åéåãå æ¤ï¼è°ç¨å
¶"
-"getteræ¹æ³ä¼è§¦åå¦ä¸éå çselectæ¥åå§åéåï¼è¿æ ·æä»¬æè½æå
ç´ æ·»å è¿å»ãæ£"
-"æ¥SQL logï¼è¯çéè¿é¢å
æåæ¥ä¼åå®ã"
+"è¿æ¬¡æä»¬æ²¡æä½¿ç¨ <emphasis>fetch</emphasis> æ¥è¯¢æ¥åå§åéåãå æ¤ï¼è°ç¨å
¶ "
+"getter æ¹æ³ä¼è§¦åå¦ä¸éå ç select æ¥åå§åéåï¼è¿æ ·æä»¬æè½æå
ç´ æ·»å è¿å»ã"
+"æ£æ¥ SQL logï¼è¯çéè¿é¢å
æåæ¥ä¼åå®ã "
#. Tag: title
-#: tutorial.xml:872
#, no-c-format
msgid "Bi-directional associations"
msgstr "ååå
³è"
#. Tag: para
-#: tutorial.xml:874
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next you will map a bi-directional association. You will make the "
"association between person and event work from both sides in Java. The "
"database schema does not change, so you will still have many-to-many "
"multiplicity."
msgstr ""
-"æ¥ä¸æ¥æä»¬å°æ å°ååå
³èï¼bi-directional associationï¼ï¼ å¨Javaé让personå"
-"eventå¯ä»¥ä»å
³èçä»»ä½ä¸ç«¯è®¿é®å¦ä¸ç«¯ãå½ç¶ï¼æ°æ®åºschemaæ²¡ææ¹åï¼æä»¬ä»ç¶éè¦"
-"å¤å¯¹å¤çé¶æ°ãä¸ä¸ªå
³ç³»åæ°æ®åºè¦æ¯ç½ç»ç¼ç¨è¯è¨ æ´å çµæ´»ï¼æä»¥å®å¹¶ä¸éè¦ä»»ä½å"
-"å¯¼èªæ¹åï¼navigation directionï¼çä¸è¥¿ ï¼ æ°æ®å¯ä»¥ç¨ä»»ä½å¯è½çæ¹å¼è¿è¡æ¥çå"
-"è·åã"
+"æ¥ä¸æ¥æä»¬å°æ å°ååå
³èï¼bi-directional associationï¼â å¨ Java é让 person "
+"å event å¯ä»¥ä»å
³èçä»»ä½ä¸ç«¯è®¿é®å¦ä¸ç«¯ãå½ç¶ï¼æ°æ®åº schema æ²¡ææ¹åï¼æä»¬ä»"
+"ç¶éè¦å¤å¯¹å¤çé¶æ°ãä¸ä¸ªå
³ç³»åæ°æ®åºè¦æ¯ç½ç»ç¼ç¨è¯è¨æ´å çµæ´»ï¼æä»¥å®å¹¶ä¸éè¦"
+"ä»»ä½åå¯¼èªæ¹åï¼navigation directionï¼çä¸è¥¿ â æ°æ®å¯ä»¥ç¨ä»»ä½å¯è½çæ¹å¼è¿è¡æ¥"
+"çåè·åã "
#. Tag: para
-#: tutorial.xml:882
#, no-c-format
msgid ""
"A relational database is more flexible than a network programming language, "
"in that it does not need a navigation direction; data can be viewed and "
"retrieved in any possible way."
msgstr ""
+"å
³ç³»åæ°æ®åºæ¯ç½ç»ç¼ç¨è¯è¨æ´ä¸ºçµæ´»ï¼å 为å®ä¸éè¦æ¹å导èªï¼å
¶æ°æ®å¯ä»¥ç¨ä»»ä½å¯"
+"è½çæ¹å¼è¿è¡æ¥çåæåã"
#. Tag: para
-#: tutorial.xml:890
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, add a collection of participants to the <literal>Event</literal> "
"class:"
-msgstr "é¦å
ï¼æä¸ä¸ªåä¸è
ï¼personï¼çéåå å
¥<literal>Event</literal>ç±»ä¸ï¼"
-
-#. Tag: programlisting
-#: tutorial.xml:895
-#, no-c-format
-msgid ""
-"<![CDATA[ private Set participants = new HashSet();\n"
-"\n"
-" public Set getParticipants() {\n"
-" return participants;\n"
-" }\n"
-"\n"
-" public void setParticipants(Set participants) {\n"
-" this.participants = participants;\n"
-" }]]>"
msgstr ""
+"é¦å
ï¼æä¸ä¸ªåä¸è
ï¼personï¼çéåå å
¥ <literal>Event</literal> ç±»ä¸ï¼ "
#. Tag: para
-#: tutorial.xml:897
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now map this side of the association in <literal>Event.hbm.xml</literal>."
-msgstr "å¨<literal>Event.hbm.xml</literal>éé¢ä¹æ å°è¿ä¸ªå
³èã"
+msgstr "å¨ <literal>Event.hbm.xml</literal> éé¢ä¹æ å°è¿ä¸ªå
³èã "
-#. Tag: programlisting
-#: tutorial.xml:901
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" inverse="
-"\"true\">\n"
-" <key column=\"EVENT_ID\"/>\n"
-" <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
-" </set>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:903
-#, fuzzy, no-c-format
-msgid ""
"These are normal <literal>set</literal> mappings in both mapping documents. "
"Notice that the column names in <literal>key</literal> and <literal>many-to-"
"many</literal> swap in both mapping documents. The most important addition "
@@ -1923,33 +1295,30 @@
"<literal>set</literal> element of the <literal>Event</literal>'s collection "
"mapping."
msgstr ""
-"å¦ä½ æè§ï¼ä¸¤ä¸ªæ å°æä»¶é齿æ®éç<literal>set</literal>æ å°ã注æå¨ä¸¤ä¸ªæ å°"
-"æä»¶ä¸ï¼äºæ¢äº<literal>key</literal>å<literal>many-to-many</literal>çåæ®µ"
-"åãè¿éæéè¦çæ¯<literal>Event</literal>æ å°æä»¶éå¢å äº<literal>set</"
-"literal>å
ç´ ç<literal>inverse=\"true\"</literal>屿§ã"
+"å¦ä½ æè§ï¼ä¸¤ä¸ªæ å°æä»¶é齿æ®éç <literal>set</literal> æ å°ã注æå¨ä¸¤ä¸ªæ "
+"å°æä»¶ä¸ï¼äºæ¢äº <literal>key</literal> å <literal>many-to-many</literal> ç"
+"åæ®µåãè¿éæéè¦çæ¯ <literal>Event</literal> æ å°æä»¶éå¢å äº "
+"<literal>set</literal> å
ç´ ç <literal>inverse=\"true\"</literal> 屿§ã "
#. Tag: para
-#: tutorial.xml:911
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What this means is that Hibernate should take the other side, the "
"<literal>Person</literal> class, when it needs to find out information about "
"the link between the two. This will be a lot easier to understand once you "
"see how the bi-directional link between our two entities is created."
msgstr ""
-"è¿æå³çå¨éè¦çæ¶åï¼Hibernateè½å¨å
³èçå¦ä¸ç«¯ ï¼ <literal>Person</literal>"
+"è¿æå³çå¨éè¦çæ¶åï¼Hibernate è½å¨å
³èçå¦ä¸ç«¯ â <literal>Person</literal> "
"ç±»å¾å°ä¸¤ä¸ªå®ä½é´å
³èçä¿¡æ¯ãè¿å°ä¼æå¤§å°å¸®å©ä½ çè§£ååå
³èæ¯å¦ä½å¨ä¸¤ä¸ªå®ä½é´"
-"被å建çã"
+"被å建çã "
#. Tag: title
-#: tutorial.xml:920
#, no-c-format
msgid "Working bi-directional links"
msgstr "使ååè¿èµ·æ¥"
#. Tag: para
-#: tutorial.xml:922
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First, keep in mind that Hibernate does not affect normal Java semantics. "
"How did we create a link between a <literal>Person</literal> and an "
@@ -1961,63 +1330,38 @@
"literal>. This process of \"setting the link on both sides\" is absolutely "
"necessary with bi-directional links."
msgstr ""
-"é¦å
请记ä½ï¼Hibernateå¹¶ä¸å½±åé常çJavaè¯ä¹ã å¨ååå
³èçä¾åä¸ï¼æä»¬æ¯ææ ·"
-"å¨<literal>Person</literal>å<literal>Event</literal>ä¹é´å建èç³»çï¼æä»¬æ"
-"<literal>Event</literal>å®ä¾æ·»å å°<literal>Person</literal>å®ä¾å
çeventå¼ç¨"
-"éåéãå æ¤å¾æ¾ç¶ï¼å¦ææä»¬è¦è®©è¿ä¸ªå
³èå¯ä»¥ååå°å·¥ä½ï¼æä»¬éè¦å¨å¦å¤ä¸ç«¯å"
-"åæ ·çäºæ
ï¼ æ<literal>Person</literal>å®ä¾å å
¥<literal>Event</literal>ç±»å
"
-"çPersonå¼ç¨éåãè¿âå¨å
³èç两端设置èç³»âæ¯å®å
¨å¿
è¦çèä¸ä½ é½å¾è¿ä¹åã"
+"é¦å
请记ä½ï¼Hibernate å¹¶ä¸å½±åé常ç Java è¯ä¹ã å¨ååå
³èçä¾åä¸ï¼æä»¬æ¯æ"
+"æ ·å¨ <literal>Person</literal> å <literal>Event</literal> ä¹é´å建èç³»çï¼æ"
+"们æ <literal>Event</literal> å®ä¾æ·»å å° <literal>Person</literal> å®ä¾å
ç "
+"event å¼ç¨éåéãå æ¤å¾æ¾ç¶ï¼å¦ææä»¬è¦è®©è¿ä¸ªå
³èå¯ä»¥ååå°å·¥ä½ï¼æä»¬éè¦å¨"
+"å¦å¤ä¸ç«¯ååæ ·çäºæ
ï¼ æ <literal>Person</literal> å®ä¾å å
¥ "
+"<literal>Event</literal> ç±»å
ç Person å¼ç¨éåãè¿âå¨å
³èç两端设置èç³»âæ¯å®"
+"å
¨å¿
è¦çèä¸ä½ é½å¾è¿ä¹åã "
#. Tag: para
-#: tutorial.xml:932
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Many developers program defensively and create link management methods to "
"correctly set both sides (for example, in <literal>Person</literal>):"
msgstr ""
"许å¤å¼å人åé²å¾¡å¼å°ç¼ç¨ï¼å建管çå
³èçæ¹æ³æ¥ä¿è¯æ£ç¡®ç设置äºå
³èçä¸¤ç«¯ï¼æ¯"
-"å¦å¨<literal>Person</literal>éï¼"
+"å¦å¨ <literal>Person</literal> éï¼ "
-#. Tag: programlisting
-#: tutorial.xml:937
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected Set getEvents() {\n"
-" return events;\n"
-" }\n"
-"\n"
-" protected void setEvents(Set events) {\n"
-" this.events = events;\n"
-" }\n"
-"\n"
-" public void addToEvent(Event event) {\n"
-" this.getEvents().add(event);\n"
-" event.getParticipants().add(this);\n"
-" }\n"
-"\n"
-" public void removeFromEvent(Event event) {\n"
-" this.getEvents().remove(event);\n"
-" event.getParticipants().remove(this);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:939
-#, fuzzy, no-c-format
-msgid ""
"The get and set methods for the collection are now protected. This allows "
"classes in the same package and subclasses to still access the methods, but "
"prevents everybody else from altering the collections directly. Repeat the "
"steps for the collection on the other side."
msgstr ""
-"注æç°å¨å¯¹äºéåçgetåsetæ¹æ³ç访é®çº§å«æ¯protected - è¿å
许å¨ä½äºåä¸ä¸ªå
"
-"ï¼packageï¼ä¸ç类以åç»§æ¿èªè¿ä¸ªç±»çåç±»å¯ä»¥è®¿é®è¿äºæ¹æ³ï¼ä½ç¦æ¢å
¶ä»ä»»ä½äººçç´"
-"æ¥è®¿é®ï¼é¿å
äºéåå
å®¹çæ··ä¹±ãä½ åºå°½å¯è½å°å¨å¦ä¸ç«¯ä¹æéåç访é®çº§å«è®¾æ"
-"protectedã"
+"注æç°å¨å¯¹äºéåç get å set æ¹æ³ç访é®çº§å«æ¯ protected â è¿å
许å¨ä½äºåä¸ä¸ª"
+"å
ï¼packageï¼ä¸ç类以åç»§æ¿èªè¿ä¸ªç±»çåç±»å¯ä»¥è®¿é®è¿äºæ¹æ³ï¼ä½ç¦æ¢å
¶ä»ä»»ä½äººç"
+"ç´æ¥è®¿é®ï¼é¿å
äºéåå
å®¹çæ··ä¹±ãä½ åºå°½å¯è½å°å¨å¦ä¸ç«¯ä¹æéåç访é®çº§å«è®¾æ "
+"protectedã "
#. Tag: para
-#: tutorial.xml:946
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"What about the <literal>inverse</literal> mapping attribute? For you, and "
"for Java, a bi-directional link is simply a matter of setting the references "
@@ -2032,26 +1376,24 @@
"as <literal>inverse</literal>. In a one-to-many association it has to be the "
"many-side, and in many-to-many association you can select either side."
msgstr ""
-"<literal>inverse</literal>æ å°å±æ§ç©¶ç«è¡¨ç¤ºä»ä¹å¢ï¼å¯¹äºä½ åJavaæ¥è¯´ï¼ä¸ä¸ªåå"
-"å
³èä»
ä»
æ¯å¨ä¸¤ç«¯ç®åå°æ£ç¡®è®¾ç½®å¼ç¨ãç¶èï¼Hibernate并没æè¶³å¤çä¿¡æ¯å»æ£ç¡®å°æ§"
-"è¡<literal>INSERT</literal>å<literal>UPDATE</literal>è¯å¥ï¼ä»¥é¿å
è¿åæ°æ®åº"
-"约æï¼ï¼æä»¥å®éè¦ä¸äºå¸®å©æ¥æ£ç¡®çå¤çååå
³èãæå
³èçä¸ç«¯è®¾ç½®ä¸º"
-"<literal>inverse</literal>å°åè¯Hibernate忽ç¥å
³èçè¿ä¸ç«¯ï¼æè¿ç«¯çææ¯å¦å¤ä¸"
-"端çä¸ä¸ª<emphasis>é象ï¼mirrorï¼</emphasis>ãè¿å°±æ¯æéçå
¨é¨ä¿¡æ¯ï¼Hibernate"
-"å©ç¨è¿äºä¿¡æ¯æ¥å¤çæä¸ä¸ªæåå¯¼èªæ¨¡åè½¬ç§»å°æ°æ®åºschemaæ¶çææé®é¢ãä½ åªéè¦"
-"è®°ä½è¿ä¸ªç´è§çè§åï¼ææçååå
³èéè¦æä¸ç«¯è¢«è®¾ç½®ä¸º<literal>inverse</"
-"literal>ãå¨ä¸å¯¹å¤å
³èä¸å®å¿
é¡»æ¯ä»£è¡¨å¤ï¼manyï¼çé£ç«¯ãèå¨å¤å¯¹å¤ï¼many-to-"
-"manyï¼å
³èä¸ï¼ä½ å¯ä»¥ä»»æéåä¸ç«¯ï¼å 为两端ä¹é´å¹¶æ²¡æå·®å«ã"
+"<literal>inverse</literal> æ å°å±æ§ç©¶ç«è¡¨ç¤ºä»ä¹å¢ï¼å¯¹äºä½ å Java æ¥è¯´ï¼ä¸ä¸ªå"
+"åå
³èä»
ä»
æ¯å¨ä¸¤ç«¯ç®åå°æ£ç¡®è®¾ç½®å¼ç¨ãç¶èï¼Hibernate 并没æè¶³å¤çä¿¡æ¯å»æ£ç¡®"
+"å°æ§è¡ <literal>INSERT</literal> å <literal>UPDATE</literal> è¯å¥ï¼ä»¥é¿å
è¿"
+"åæ°æ®åºçº¦æï¼ï¼æä»¥å®éè¦ä¸äºå¸®å©æ¥æ£ç¡®çå¤çååå
³èãæå
³èçä¸ç«¯è®¾ç½®ä¸º "
+"<literal>inverse</literal> å°åè¯ Hibernate 忽ç¥å
³èçè¿ä¸ç«¯ï¼æè¿ç«¯çææ¯å¦"
+"å¤ä¸ç«¯çä¸ä¸ª<emphasis>é象ï¼mirrorï¼</emphasis>ãè¿å°±æ¯æéçå
¨é¨ä¿¡æ¯ï¼"
+"Hibernate å©ç¨è¿äºä¿¡æ¯æ¥å¤çæä¸ä¸ªæåå¯¼èªæ¨¡åè½¬ç§»å°æ°æ®åº schema æ¶çææé®"
+"é¢ãä½ åªéè¦è®°ä½è¿ä¸ªç´è§çè§åï¼ææçååå
³èéè¦æä¸ç«¯è¢«è®¾ç½®ä¸º "
+"<literal>inverse</literal>ãå¨ä¸å¯¹å¤å
³èä¸å®å¿
é¡»æ¯ä»£è¡¨å¤ï¼manyï¼çé£ç«¯ãèå¨"
+"å¤å¯¹å¤ï¼many-to-manyï¼å
³èä¸ï¼ä½ å¯ä»¥ä»»æéåä¸ç«¯ï¼å 为两端ä¹é´å¹¶æ²¡æå·®å«ã "
#. Tag: title
-#: tutorial.xml:962
#, no-c-format
msgid "Part 3 - The EventManager web application"
-msgstr "第ä¸é¨å - EventManager webåºç¨ç¨åº"
+msgstr "第ä¸é¨å - EventManager web åºç¨ç¨åº"
#. Tag: para
-#: tutorial.xml:964
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A Hibernate web application uses <literal>Session</literal> and "
"<literal>Transaction</literal> almost like a standalone application. "
@@ -2059,83 +1401,38 @@
"<literal>EventManagerServlet</literal>. This servlet can list all events "
"stored in the database, and it provides an HTML form to enter new events."
msgstr ""
-"Hibernate webåºç¨ç¨åºä½¿ç¨<literal>Session</literal> å<literal>Transaction</"
-"literal>çæ¹å¼å ä¹åç¬ç«åºç¨ç¨åºæ¯ä¸æ ·çã使¯ï¼æä¸äºå¸¸è§ç模å¼ï¼patternï¼é"
-"常æç¨ãç°å¨æä»¬ç¼åä¸ä¸ª<literal>EventManagerServlet</literal>ãè¿ä¸ªservletå¯"
-"以ååºæ°æ®åºä¸ä¿åçææçeventsï¼è¿æä¾ä¸ä¸ªHTMLè¡¨åæ¥å¢å æ°çeventsã"
+"Hibernate web åºç¨ç¨åºä½¿ç¨ <literal>Session</literal> å "
+"<literal>Transaction</literal> çæ¹å¼å ä¹åç¬ç«åºç¨ç¨åºæ¯ä¸æ ·çã使¯ï¼æä¸äº"
+"常è§ç模å¼ï¼patternï¼é常æç¨ãç°å¨æä»¬ç¼åä¸ä¸ª "
+"<literal>EventManagerServlet</literal>ãè¿ä¸ª servlet å¯ä»¥ååºæ°æ®åºä¸ä¿åçæ"
+"æç eventsï¼è¿æä¾ä¸ä¸ª HTML è¡¨åæ¥å¢å æ°ç eventsã "
#. Tag: title
-#: tutorial.xml:972
#, no-c-format
msgid "Writing the basic servlet"
-msgstr "ç¼ååºæ¬çservlet"
+msgstr "ç¼ååºæ¬ç servlet"
#. Tag: para
-#: tutorial.xml:974
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"First we need create our basic processing servlet. Since our servlet only "
"handles HTTP <literal>GET</literal> requests, we will only implement the "
"<literal>doGet()</literal> method:"
msgstr ""
-"æä»¬åé¢ä¼ç¨å°<literal>dateFormatter</literal> çå·¥å
·ï¼ 宿<literal>Date</"
-"literal>对象转æ¢ä¸ºå符串ãåªè¦ä¸ä¸ªformatterä½ä¸ºservletçæåå°±å¯ä»¥äºã"
+"è¿ä¸ª servlet åªå¤ç HTTP <literal>GET</literal> 请æ±ï¼å æ¤ï¼æä»¬è¦å®ç°çæ¯ "
+"<literal>doGet()</literal> æ¹æ³ï¼ "
-#. Tag: programlisting
-#: tutorial.xml:980
-#, no-c-format
-msgid ""
-"<![CDATA[package org.hibernate.tutorial.web;\n"
-"\n"
-"// Imports\n"
-"\n"
-"public class EventManagerServlet extends HttpServlet {\n"
-"\n"
-" protected void doGet(\n"
-" HttpServletRequest request,\n"
-" HttpServletResponse response) throws ServletException, "
-"IOException {\n"
-"\n"
-" SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM.yyyy"
-"\" );\n"
-"\n"
-" try {\n"
-" // Begin unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"beginTransaction();\n"
-"\n"
-" // Process request and render page...\n"
-"\n"
-" // End unit of work\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().commit();\n"
-" }\n"
-" catch (Exception ex) {\n"
-" HibernateUtil.getSessionFactory().getCurrentSession()."
-"getTransaction().rollback();\n"
-" if ( ServletException.class.isInstance( ex ) ) {\n"
-" throw ( ServletException ) ex;\n"
-" }\n"
-" else {\n"
-" throw new ServletException( ex );\n"
-" }\n"
-" }\n"
-" }\n"
-"\n"
-"}]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:982
#, no-c-format
msgid ""
"Save this servlet as <filename>src/main/java/org/hibernate/tutorial/web/"
"EventManagerServlet.java</filename>"
msgstr ""
+"æè¿ä¸ª servlet ä¿å为 <filename>src/main/java/org/hibernate/tutorial/web/"
+"EventManagerServlet.java</filename>ã"
#. Tag: para
-#: tutorial.xml:987
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"The pattern applied here is called <emphasis>session-per-request</emphasis>. "
"When a request hits the servlet, a new Hibernate <literal>Session</literal> "
@@ -2144,11 +1441,13 @@
"started. All data access occurs inside a transaction irrespective of whether "
"the data is read or written. Do not use the auto-commit mode in applications."
msgstr ""
-"è¿ä¸ªservletåªå¤ç HTTP <literal>GET</literal> 请æ±ï¼å æ¤ï¼æä»¬è¦å®ç°çæ¯"
-"<literal>doGet()</literal>æ¹æ³ï¼"
+"æä»¬ç§°è¿éåºç¨ç模å¼ä¸ºæ¯æ¬¡è¯·æ±ä¸ä¸ª session<emphasis>(session-per-request)</"
+"emphasis>ãå½æè¯·æ±å°è¾¾è¿ä¸ª servlet çæ¶åï¼éè¿å¯¹ <literal>SessionFactory</"
+"literal> çç¬¬ä¸æ¬¡è°ç¨ï¼æå¼ä¸ä¸ªæ°ç Hibernate <literal>Session</literal>ãç¶"
+"åå¯å¨ä¸ä¸ªæ°æ®åºäºå¡ â ææçæ°æ®è®¿é®é½æ¯å¨äºå¡ä¸è¿è¡ï¼ä¸ç®¡æ¯è¯»è¿æ¯åï¼æä»¬å¨"
+"åºç¨ç¨åºä¸ä¸ä½¿ç¨ auto-commit 模å¼ï¼ã "
#. Tag: para
-#: tutorial.xml:996
#, no-c-format
msgid ""
"Do <emphasis>not</emphasis> use a new Hibernate <literal>Session</literal> "
@@ -2156,27 +1455,22 @@
"that is scoped to the whole request. Use <literal>getCurrentSession()</"
"literal>, so that it is automatically bound to the current Java thread."
msgstr ""
-"æä»¬ç§°è¿éåºç¨ç模å¼ä¸ºæ¯æ¬¡è¯·æ±ä¸ä¸ªsession<emphasis>(session-per-request)</"
-"emphasis>ãå½æè¯·æ±å°è¾¾è¿ä¸ªservletçæ¶åï¼éè¿å¯¹<literal>SessionFactory</"
-"literal>çç¬¬ä¸æ¬¡è°ç¨ï¼æå¼ä¸ä¸ªæ°çHibernate <literal>Session</literal>ãç¶å"
-"å¯å¨ä¸ä¸ªæ°æ®åºäºå¡—ææçæ°æ®è®¿é®é½æ¯å¨äºå¡ä¸è¿è¡ï¼ä¸ç®¡æ¯è¯»è¿æ¯åï¼æä»¬"
-"å¨åºç¨ç¨åºä¸ä¸ä½¿ç¨auto-commit模å¼ï¼ã"
+"<emphasis>ä¸è¦</emphasis>ä¸ºæ¯æ¬¡æ°æ®åºæä½é½ä½¿ç¨ä¸ä¸ªæ°ç Hibernate "
+"<literal>Session</literal>ãå° Hibernate <literal>Session</literal> çèå´è®¾"
+"置为æ´ä¸ªè¯·æ±ãè¦ç¨ <literal>getCurrentSession()</literal>ï¼è¿æ ·å®èªå¨ä¼ç»å®å°"
+"å½å Java 线ç¨ã"
#. Tag: para
-#: tutorial.xml:1003
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Next, the possible actions of the request are processed and the response "
"HTML is rendered. We will get to that part soon."
msgstr ""
-"<emphasis>ä¸è¦</emphasis>ä¸ºæ¯æ¬¡æ°æ®åºæä½é½ä½¿ç¨ä¸ä¸ªæ°çHibernate "
-"<literal>Session</literal>ãå°Hibernate <literal>Session</literal>çèå´è®¾ç½®"
-"为æ´ä¸ªè¯·æ±ãè¦ç¨<literal>getCurrentSession()</literal>ï¼è¿æ ·å®èªå¨ä¼ç»å®å°å½"
-"åJava线ç¨ã"
+"ä¸ä¸æ¥ï¼å¯¹è¯·æ±çå¯è½å¨ä½è¿è¡å¤çï¼æ¸²æåºåé¦ç HTMLãæä»¬å¾å¿«å°±ä¼æ¶åå°é£é¨"
+"åã "
#. Tag: para
-#: tutorial.xml:1008
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, the unit of work ends when processing and rendering are complete. "
"If any problems occurred during processing or rendering, an exception will "
@@ -2187,165 +1481,63 @@
"called <emphasis>Open Session in View</emphasis>. You will need it as soon "
"as you consider rendering your view in JSP, not in a servlet."
msgstr ""
-"ä¸ä¸æ¥ï¼å¯¹è¯·æ±çå¯è½å¨ä½è¿è¡å¤çï¼æ¸²æåºåé¦çHTMLãæä»¬å¾å¿«å°±ä¼æ¶åå°é£é¨"
-"åã"
+"æåï¼å½å¤ç䏿¸²æé½ç»æçæ¶åï¼è¿ä¸ªå·¥ä½åå
å°±ç»æäºãåè¥å¨å¤çææ¸²æçæ¶å"
+"æä»»ä½é误åçï¼ä¼æåºä¸ä¸ªå¼å¸¸ï¼åæ»æ°æ®åºäºå¡ãè¿æ ·ï¼<literal>session-per-"
+"request</literal> 模å¼å°±å®æäºã为äºé¿å
卿¯ä¸ª servlet ä¸é½ç¼åäºå¡è¾¹ççå®ç"
+"代ç ï¼å¯ä»¥èèåä¸ä¸ª servlet è¿æ»¤å¨ï¼filterï¼æ¥æ´å¥½å°è§£å³ãå
³äºè¿ä¸æ¨¡å¼çæ´å¤"
+"ä¿¡æ¯ï¼è¯·åé
Hibernate ç½ç«å Wikiï¼è¿ä¸æ¨¡å¼å«å <emphasis>Open Session in "
+"View</emphasis> â åªè¦ä½ èèç¨JSPæ¥æ¸²æä½ çè§å¾ï¼viewï¼ï¼è䏿¯å¨servletä¸ï¼"
+"ä½ å°±ä¼å¾å¿«ç¨å°å®ã "
#. Tag: title
-#: tutorial.xml:1022
#, no-c-format
msgid "Processing and rendering"
-msgstr ""
-"æåï¼å½å¤ç䏿¸²æé½ç»æçæ¶åï¼è¿ä¸ªå·¥ä½åå
å°±ç»æäºãåè¥å¨å¤çææ¸²æçæ¶å"
-"æä»»ä½é误åçï¼ä¼æåºä¸ä¸ªå¼å¸¸ï¼åæ»æ°æ®åºäºå¡ãè¿æ ·ï¼<literal>session-per-"
-"request</literal>模å¼å°±å®æäºã为äºé¿å
卿¯ä¸ªservletä¸é½ç¼åäºå¡è¾¹ççå®ç代"
-"ç ï¼å¯ä»¥èèåä¸ä¸ªservlet è¿æ»¤å¨ï¼filterï¼æ¥æ´å¥½å°è§£å³ãå
³äºè¿ä¸æ¨¡å¼çæ´å¤ä¿¡"
-"æ¯ï¼è¯·åé
Hibernateç½ç«åWikiï¼è¿ä¸æ¨¡å¼å«å<emphasis>Open Session in View</"
-"emphasis>—åªè¦ä½ èèç¨JSPæ¥æ¸²æä½ çè§å¾ï¼viewï¼ï¼è䏿¯å¨servletä¸ï¼ä½ "
-"å°±ä¼å¾å¿«ç¨å°å®ã"
+msgstr "å¤ç䏿¸²æ"
#. Tag: para
-#: tutorial.xml:1024
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Now you can implement the processing of the request and the rendering of the "
"page."
-msgstr "å¤ç䏿¸²æ"
+msgstr "æä»¬æ¥å®ç°å¤ç请æ±ä»¥å渲æé¡µé¢çå·¥ä½ã "
-#. Tag: programlisting
-#: tutorial.xml:1028
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ // Write HTML header\n"
-" PrintWriter out = response.getWriter();\n"
-" out.println(\"<html><head><title>Event Manager</title></head><body>"
-"\");\n"
-"\n"
-" // Handle actions\n"
-" if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
-"\n"
-" String eventTitle = request.getParameter(\"eventTitle\");\n"
-" String eventDate = request.getParameter(\"eventDate\");\n"
-"\n"
-" if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
-" out.println(\"<b><i>Please enter event title and date.</i></"
-"b>\");\n"
-" }\n"
-" else {\n"
-" createAndStoreEvent(eventTitle, dateFormatter.parse"
-"(eventDate));\n"
-" out.println(\"<b><i>Added event.</i></b>\");\n"
-" }\n"
-" }\n"
-"\n"
-" // Print page\n"
-" printEventForm(out);\n"
-" listEvents(out, dateFormatter);\n"
-"\n"
-" // Write HTML footer\n"
-" out.println(\"</body></html>\");\n"
-" out.flush();\n"
-" out.close();]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1030
-#, fuzzy, no-c-format
-msgid ""
"This coding style, with a mix of Java and HTML, would not scale in a more "
"complex application—keep in mind that we are only illustrating basic "
"Hibernate concepts in this tutorial. The code prints an HTML header and a "
"footer. Inside this page, an HTML form for event entry and a list of all "
"events in the database are printed. The first method is trivial and only "
"outputs HTML:"
-msgstr "æä»¬æ¥å®ç°å¤ç请æ±ä»¥å渲æé¡µé¢çå·¥ä½ã"
-
-#. Tag: programlisting
-#: tutorial.xml:1039
-#, no-c-format
-msgid ""
-"<![CDATA[ private void printEventForm(PrintWriter out) {\n"
-" out.println(\"<h2>Add new event:</h2>\");\n"
-" out.println(\"<form>\");\n"
-" out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
-"\");\n"
-" out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
-"length='10'/><br/>\");\n"
-" out.println(\"<input type='submit' name='action' value='store'/>"
-"\");\n"
-" out.println(\"</form>\");\n"
-" }]]>"
msgstr ""
+"å¿
é¡»æ¿è®¤ï¼è¿ç§ç¼ç 飿 ¼æ Java å HTML æ··å¨ä¸èµ·ï¼å¨æ´å¤æçåºç¨ç¨åºéä¸åºè¯¥å¤§"
+"éä½¿ç¨ â è®°ä½ï¼å¨æ¬ç« éæä»¬ä»
ä»
æ¯å±ç¤ºäº Hibernate çåºæ¬æ¦å¿µãè¿æ®µä»£ç æå°åº"
+"äº HTML 页çå页èï¼å¨è¿ä¸ªé¡µé¢éï¼è¿æå°äºä¸ä¸ªè¾å
¥ events æ¡ç®ç表ååå¹¶ååº"
+"äºæ°æ®åºéçæç eventsã第ä¸ä¸ªæ¹æ³å¾®ä¸è¶³éï¼ä»
ä»
æ¯è¾åº HTMLï¼"
#. Tag: para
-#: tutorial.xml:1041
#, no-c-format
msgid ""
"The <literal>listEvents()</literal> method uses the Hibernate "
"<literal>Session</literal> bound to the current thread to execute a query:"
msgstr ""
-"<literal>listEvents()</literal>æ¹æ³ä½¿ç¨ç»å®å°å½å线ç¨çHibernate "
-"<literal>Session</literal>æ¥æ§è¡æ¥è¯¢ï¼"
+"<literal>listEvents()</literal> æ¹æ³ä½¿ç¨ç»å®å°å½å线ç¨ç Hibernate "
+"<literal>Session</literal> æ¥æ§è¡æ¥è¯¢ï¼"
-#. Tag: programlisting
-#: tutorial.xml:1047
-#, no-c-format
-msgid ""
-"<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
-"dateFormatter) {\n"
-"\n"
-" List result = HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().createCriteria(Event.class).list();\n"
-" if (result.size() > 0) {\n"
-" out.println(\"<h2>Events in database:</h2>\");\n"
-" out.println(\"<table border='1'>\");\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<th>Event title</th>\");\n"
-" out.println(\"<th>Event date</th>\");\n"
-" out.println(\"</tr>\");\n"
-" Iterator it = result.iterator();\n"
-" while (it.hasNext()) {\n"
-" Event event = (Event) it.next();\n"
-" out.println(\"<tr>\");\n"
-" out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
-" out.println(\"<td>\" + dateFormatter.format(event.getDate()) "
-"+ \"</td>\");\n"
-" out.println(\"</tr>\");\n"
-" }\n"
-" out.println(\"</table>\");\n"
-" }\n"
-" }]]>"
-msgstr ""
-
#. Tag: para
-#: tutorial.xml:1049
#, no-c-format
msgid ""
"Finally, the <literal>store</literal> action is dispatched to the "
"<literal>createAndStoreEvent()</literal> method, which also uses the "
"<literal>Session</literal> of the current thread:"
msgstr ""
-"æåï¼<literal>store</literal>å¨ä½ä¼è¢«å¯¼åå°<literal>createAndStoreEvent()</"
-"literal>æ¹æ³ï¼å®ä¹ä½¿ç¨å½å线ç¨ç<literal>Session</literal>:"
+"æåï¼<literal>store</literal> å¨ä½ä¼è¢«å¯¼åå° <literal>createAndStoreEvent()"
+"</literal> æ¹æ³ï¼å®ä¹ä½¿ç¨å½å线ç¨ç <literal>Session</literal>ï¼"
-#. Tag: programlisting
-#: tutorial.xml:1055
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[ protected void createAndStoreEvent(String title, Date theDate) "
-"{\n"
-" Event theEvent = new Event();\n"
-" theEvent.setTitle(title);\n"
-" theEvent.setDate(theDate);\n"
-"\n"
-" HibernateUtil.getSessionFactory()\n"
-" .getCurrentSession().save(theEvent);\n"
-" }]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1057
-#, fuzzy, no-c-format
-msgid ""
"The servlet is now complete. A request to the servlet will be processed in a "
"single <literal>Session</literal> and <literal>Transaction</literal>. As "
"earlier in the standalone application, Hibernate can automatically bind "
@@ -2355,76 +1547,51 @@
"data access code into data access objects (the DAO pattern). See the "
"Hibernate Wiki for more examples."
msgstr ""
-"大ååæï¼è¿ä¸ªservletåå®äºãHibernateä¼å¨åä¸ç<literal>Session</literal> å"
-"<literal>Transaction</literal>ä¸å¤çå°è¾¾çservlet请æ±ãå¦åå¨åé¢çç¬ç«åºç¨ç¨"
-"åºä¸é£æ ·ï¼Hibernateå¯ä»¥èªå¨çæè¿äºå¯¹è±¡ç»å®å°å½åè¿è¡ç线ç¨ä¸ãè¿ç»äºä½ ç¨ä»»ä½"
-"ä½ åæ¬¢çæ¹å¼æ¥å¯¹ä»£ç åå±å访é®<literal>SessionFactory</literal>çèªç±ãé常ï¼"
-"ä½ ä¼ç¨æ´å å®å¤çè®¾è®¡ï¼ææ°æ®è®¿é®ä»£ç è½¬ç§»å°æ°æ®è®¿é®å¯¹è±¡ä¸(DAO模å¼ï¼ã请åè§"
-"Hibernate Wikiï¼é£éææ´å¤çä¾åã"
+"大ååæï¼è¿ä¸ª servlet åå®äºãHibernate ä¼å¨åä¸ç <literal>Session</"
+"literal> å <literal>Transaction</literal> ä¸å¤çå°è¾¾ç servlet 请æ±ãå¦åå¨"
+"åé¢çç¬ç«åºç¨ç¨åºä¸é£æ ·ï¼Hibernate å¯ä»¥èªå¨çæè¿äºå¯¹è±¡ç»å®å°å½åè¿è¡ç线ç¨"
+"ä¸ãè¿ç»äºä½ ç¨ä»»ä½ä½ 忬¢çæ¹å¼æ¥å¯¹ä»£ç åå±åè®¿é® <literal>SessionFactory</"
+"literal> çèªç±ãé常ï¼ä½ ä¼ç¨æ´å å®å¤çè®¾è®¡ï¼ææ°æ®è®¿é®ä»£ç è½¬ç§»å°æ°æ®è®¿é®å¯¹è±¡"
+"ä¸ï¼DAO 模å¼ï¼ã请åè§ Hibernate Wikiï¼é£éææ´å¤çä¾åã "
#. Tag: title
-#: tutorial.xml:1071
#, no-c-format
msgid "Deploying and testing"
msgstr "é¨ç½²ä¸æµè¯"
#. Tag: para
-#: tutorial.xml:1073
#, no-c-format
msgid ""
"To deploy this application for testing we must create a Web ARchive (WAR). "
"First we must define the WAR descriptor as <filename>src/main/webapp/WEB-INF/"
"web.xml</filename>"
msgstr ""
+"è¦é¨ç½²è¿ä¸ªåºç¨ç¨åºä»¥è¿è¡æµè¯ï¼æä»¬å¿
é¡»åºå
·ä¸ä¸ª Web ARchive (WAR)ãé¦å
æä»¬å¿
"
+"é¡»å®ä¹ WAR æè¿°ç¬¦ä¸º <filename>src/main/webapp/WEB-INF/web.xml</filename>ã"
-#. Tag: programlisting
-#: tutorial.xml:1079
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<web-app version=\"2.4\"\n"
-" xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
-"xml/ns/j2ee/web-app_2_4.xsd\">\n"
-"\n"
-" <servlet>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
-"servlet-class>\n"
-" </servlet>\n"
-"\n"
-" <servlet-mapping>\n"
-" <servlet-name>Event Manager</servlet-name>\n"
-" <url-pattern>/eventmanager</url-pattern>\n"
-" </servlet-mapping>\n"
-"</web-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: tutorial.xml:1081
-#, fuzzy, no-c-format
-msgid ""
"To build and deploy call <literal>mvn package</literal> in your project "
"directory and copy the <filename>hibernate-tutorial.war</filename> file into "
"your Tomcat <filename>webapps</filename> directory."
msgstr ""
-"å¨ä½ çå¼åç®å½ä¸ï¼è°ç¨<literal>ant war</literal>æ¥æå»ºãæå
ï¼ç¶åæ"
-"<literal>hibernate-tutorial.war</literal>æä»¶æ·è´å°ä½ çtomcatç"
-"<literal>webapps</literal>ç®å½ä¸ãåè¥ä½ è¿æ²¡å®è£
Tomcatï¼å°±å»ä¸è½½ä¸ä¸ªï¼æç
§æ"
-"忥å®è£
ã对æ¤åºç¨çåå¸ï¼ä½ ä¸éè¦ä¿®æ¹ä»»ä½Tomcatçé
ç½®ã"
+"å¨ä½ çå¼åç®å½ä¸ï¼è°ç¨ <literal>ant war</literal> æ¥æå»ºãæå
ï¼ç¶åæ "
+"<literal>hibernate-tutorial.war</literal> æä»¶æ·è´å°ä½ ç tomcat ç "
+"<literal>webapps</literal> ç®å½ä¸ãåè¥ä½ è¿æ²¡å®è£
Tomcatï¼å°±å»ä¸è½½ä¸ä¸ªï¼æç
§"
+"æåæ¥å®è£
ã对æ¤åºç¨çåå¸ï¼ä½ ä¸éè¦ä¿®æ¹ä»»ä½ Tomcat çé
ç½®ã "
#. Tag: para
-#: tutorial.xml:1088
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"If you do not have Tomcat installed, download it from <ulink url=\"http://"
-"tomcat.apache.org/\"></ulink> and follow the installation instructions. Our "
+"tomcat.apache.org/\" /> and follow the installation instructions. Our "
"application requires no changes to the standard Tomcat configuration."
msgstr ""
+"å¦æä½ è¿æ²¡æå®è£
Tomcatï¼è¯·ä» <ulink url=\"http://tomcat.apache.org/\" /> ä¸"
+"载并æç
§å®è£
说æè¿è¡å®è£
ãæä»¬çåºç¨ç¨åºä¸éè¦å¯¹æ åç Tomcat é
ç½®è¿è¡ä¿®æ¹ã"
#. Tag: para
-#: tutorial.xml:1096
#, no-c-format
msgid ""
"Once deployed and Tomcat is running, access the application at "
@@ -2434,376 +1601,1293 @@
"<literal>HibernateUtil</literal> is called) and to get the detailed output "
"if any exceptions occurs."
msgstr ""
-"å¨é¨ç½²å®ï¼å¯å¨Tomcatä¹åï¼éè¿<literal>http://localhost:8080/hibernate-"
-"tutorial/eventmanager</literal>è¿è¡è®¿é®ä½ çåºç¨ï¼å¨ç¬¬ä¸æ¬¡servlet 请æ±åçæ¶ï¼"
-"请å¨Tomcat logä¸ç¡®è®¤ä½ çå°Hibernate被åå§åäºï¼<literal>HibernateUtil</"
-"literal>çéæåå§åå¨è¢«è°ç¨ï¼ï¼åè¥æä»»ä½å¼å¸¸æåºï¼ä¹å¯ä»¥çå°è¯¦ç»çè¾åºã"
+"å¨é¨ç½²å®ï¼å¯å¨ Tomcat ä¹åï¼éè¿ <literal>http://localhost:8080/hibernate-"
+"tutorial/eventmanager</literal> è¿è¡è®¿é®ä½ çåºç¨ï¼å¨ç¬¬ä¸æ¬¡ servlet 请æ±åç"
+"æ¶ï¼è¯·å¨ Tomcat log ä¸ç¡®è®¤ä½ çå° Hibernate 被åå§åäº"
+"ï¼<literal>HibernateUtil</literal> çéæåå§åå¨è¢«è°ç¨ï¼ï¼åè¥æä»»ä½å¼å¸¸æ"
+"åºï¼ä¹å¯ä»¥çå°è¯¦ç»çè¾åºã"
#. Tag: title
-#: tutorial.xml:1109
#, no-c-format
msgid "Summary"
msgstr "æ»ç»"
#. Tag: para
-#: tutorial.xml:1111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"This tutorial covered the basics of writing a simple standalone Hibernate "
"application and a small web application. More tutorials are available from "
"the Hibernate <ulink url=\"http://hibernate.org\">website</ulink>."
msgstr ""
-"æ¬ç« è¦çäºå¦ä½ç¼åä¸ä¸ªç®åç¬ç«çHibernateå½ä»¤è¡åºç¨ç¨åºåå°åçHibernate web"
-"åºç¨ç¨åºçåºæ¬è¦ç´ ã"
+"æ¬ç« è¦çäºå¦ä½ç¼åä¸ä¸ªç®åç¬ç«ç Hibernate å½ä»¤è¡åºç¨ç¨åºåå°åç Hibernate "
+"web åºç¨ç¨åºçåºæ¬è¦ç´ ãæ´å¤çæç¨å¯ä»¥å¨ <ulink url=\"http://hibernate.org"
+"\">website</ulink> 䏿¾å°ã"
-#~ msgid "Introduction to Hibernate"
-#~ msgstr "Hibernateå
¥é¨"
+#~ msgid ""
+#~ "<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://"
+#~ "maven.apache.org/xsd/maven-4.0.0.xsd\">\n"
+#~ "\n"
+#~ " <modelVersion>4.0.0</modelVersion>\n"
+#~ "\n"
+#~ " <groupId>org.hibernate.tutorials</groupId>\n"
+#~ " <artifactId>hibernate-tutorial</artifactId>\n"
+#~ " <version>1.0.0-SNAPSHOT</version>\n"
+#~ " <name>First Hibernate Tutorial</name>\n"
+#~ "\n"
+#~ " <build>\n"
+#~ " <!-- we dont want the version to be part of the generated war "
+#~ "file name -->\n"
+#~ " <finalName>${artifactId}</finalName>\n"
+#~ " </build>\n"
+#~ "\n"
+#~ " <dependencies>\n"
+#~ " <dependency>\n"
+#~ " <groupId>org.hibernate</groupId>\n"
+#~ " <artifactId>hibernate-core</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Because this is a web app, we also have a dependency on the "
+#~ "servlet api. -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>javax.servlet</groupId>\n"
+#~ " <artifactId>servlet-api</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Hibernate uses slf4j for logging, for our purposes here use "
+#~ "the simple backend -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>org.slf4j</groupId>\n"
+#~ " <artifactId>slf4j-simple</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Hibernate gives you a choice of bytecode providers between "
+#~ "cglib and javassist -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>javassist</groupId>\n"
+#~ " <artifactId>javassist</artifactId>\n"
+#~ " </dependency>\n"
+#~ " </dependencies>\n"
+#~ "\n"
+#~ "</project>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://"
+#~ "maven.apache.org/xsd/maven-4.0.0.xsd\">\n"
+#~ "\n"
+#~ " <modelVersion>4.0.0</modelVersion>\n"
+#~ "\n"
+#~ " <groupId>org.hibernate.tutorials</groupId>\n"
+#~ " <artifactId>hibernate-tutorial</artifactId>\n"
+#~ " <version>1.0.0-SNAPSHOT</version>\n"
+#~ " <name>First Hibernate Tutorial</name>\n"
+#~ "\n"
+#~ " <build>\n"
+#~ " <!-- we dont want the version to be part of the generated war "
+#~ "file name -->\n"
+#~ " <finalName>${artifactId}</finalName>\n"
+#~ " </build>\n"
+#~ "\n"
+#~ " <dependencies>\n"
+#~ " <dependency>\n"
+#~ " <groupId>org.hibernate</groupId>\n"
+#~ " <artifactId>hibernate-core</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Because this is a web app, we also have a dependency on the "
+#~ "servlet api. -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>javax.servlet</groupId>\n"
+#~ " <artifactId>servlet-api</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Hibernate uses slf4j for logging, for our purposes here use "
+#~ "the simple backend -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>org.slf4j</groupId>\n"
+#~ " <artifactId>slf4j-simple</artifactId>\n"
+#~ " </dependency>\n"
+#~ "\n"
+#~ " <!-- Hibernate gives you a choice of bytecode providers between "
+#~ "cglib and javassist -->\n"
+#~ " <dependency>\n"
+#~ " <groupId>javassist</groupId>\n"
+#~ " <artifactId>javassist</artifactId>\n"
+#~ " </dependency>\n"
+#~ " </dependencies>\n"
+#~ "\n"
+#~ "</project>]]>"
-#~ msgid "Preface"
-#~ msgstr "åè¨"
+#~ msgid ""
+#~ "<![CDATA[package org.hibernate.tutorial.domain;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Event {\n"
+#~ " private Long id;\n"
+#~ "\n"
+#~ " private String title;\n"
+#~ " private Date date;\n"
+#~ "\n"
+#~ " public Event() {}\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id = id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Date getDate() {\n"
+#~ " return date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setDate(Date date) {\n"
+#~ " this.date = date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getTitle() {\n"
+#~ " return title;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setTitle(String title) {\n"
+#~ " this.title = title;\n"
+#~ " }\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[package org.hibernate.tutorial.domain;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "public class Event {\n"
+#~ " private Long id;\n"
+#~ "\n"
+#~ " private String title;\n"
+#~ " private Date date;\n"
+#~ "\n"
+#~ " public Event() {}\n"
+#~ "\n"
+#~ " public Long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void setId(Long id) {\n"
+#~ " this.id = id;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public Date getDate() {\n"
+#~ " return date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setDate(Date date) {\n"
+#~ " this.date = date;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public String getTitle() {\n"
+#~ " return title;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setTitle(String title) {\n"
+#~ " this.title = title;\n"
+#~ " }\n"
+#~ "}]]>"
#~ msgid ""
-#~ "This chapter is an introductory tutorial for new users of Hibernate. We "
-#~ "start with a simple command line application using an in-memory database "
-#~ "and develop it in easy to understand steps."
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "[...]\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "æ¬ç« æ¯é¢åHibernateåå¦è
çä¸ä¸ªå
¥é¨æç¨ãæä»¬ä»ä¸ä¸ªä½¿ç¨é©»çå
åå¼(in-"
-#~ "memory)æ°æ®åºçç®åå½ä»¤è¡åºç¨ç¨åºå¼å§, ç¨æäºçè§£çæ¹å¼éæ¥å¼åã"
+#~ "<![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\">\n"
+#~ "\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "[...]\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "This tutorial is intended for new users of Hibernate but requires Java "
-#~ "and SQL knowledge. It is based on a tutorial by Michael Gloegl, the third-"
-#~ "party libraries we name are for JDK 1.4 and 5.0. You might need others "
-#~ "for JDK 1.3."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "æ¬ç« é¢åHibernateåå¦è
ï¼ä½éè¦JavaåSQLç¥è¯ã宿¯å¨Michael Goeglæåçæ"
-#~ "åçåºç¡ä¸å®æçãå¨è¿éï¼æä»¬ç§°ç¬¬ä¸æ¹åºæä»¶æ¯æJDK 1.4å5.0ãè¥ä½¿ç¨"
-#~ "JDK1.3ï¼ä½ å¯è½éè¦å
¶å®çåºæä»¶ã"
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ "\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "The source code for the tutorial is included in the distribution in the "
-#~ "<literal>doc/reference/tutorial/</literal> directory."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "æ¬ç« çæºä»£ç å·²å
å«å¨åå¸å
ä¸ï¼ä½äº<literal>doc/reference/tutorial/</"
-#~ "literal>ç®å½ä¸ã"
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "First, we'll create a simple console-based Hibernate application. We use "
-#~ "an Java database (HSQL DB), so we do not have to install any database "
-#~ "server."
+#~ "<![CDATA[\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/"
+#~ ">\n"
+#~ " <property name=\"title\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "é¦å
æä»¬å°å建ä¸ä¸ªç®åçåºäºæ§å¶å°ç(console-based)Hibernateåºç¨ç¨åºãç±äº"
-#~ "æä»¬ä½¿ç¨Javaæ°æ®åº(HSQL DB)ï¼æä»¥ä¸å¿
å®è£
任使°æ®åºæå¡å¨ã"
+#~ "<![CDATA[\n"
+#~ "<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Event\" table=\"EVENTS\">\n"
+#~ " <id name=\"id\" column=\"EVENT_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"date\" type=\"timestamp\" column=\"EVENT_DATE\"/"
+#~ ">\n"
+#~ " <property name=\"title\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgid ""
-#~ "The first thing we do, is set up our development directory and put all "
-#~ "the Java libraries we need into it. Download the Hibernate distribution "
-#~ "from the Hibernate website. Extract the package and place all required "
-#~ "libraries found in <literal>/lib</literal> into into the <literal>/lib</"
-#~ "literal> directory of your new development working directory. It should "
-#~ "look like this:"
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <session-factory>\n"
+#~ "\n"
+#~ " <!-- Database connection settings -->\n"
+#~ " <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
+#~ "property>\n"
+#~ " <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
+#~ "property>\n"
+#~ " <property name=\"connection.username\">sa</property>\n"
+#~ " <property name=\"connection.password\"></property>\n"
+#~ "\n"
+#~ " <!-- JDBC connection pool (use the built-in) -->\n"
+#~ " <property name=\"connection.pool_size\">1</property>\n"
+#~ "\n"
+#~ " <!-- SQL dialect -->\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Enable Hibernate's automatic session context management -->\n"
+#~ " <property name=\"current_session_context_class\">thread</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Disable the second-level cache -->\n"
+#~ " <property name=\"cache.provider_class\">org.hibernate.cache."
+#~ "NoCacheProvider</property>\n"
+#~ "\n"
+#~ " <!-- Echo all executed SQL to stdout -->\n"
+#~ " <property name=\"show_sql\">true</property>\n"
+#~ "\n"
+#~ " <!-- Drop and re-create the database schema on startup -->\n"
+#~ " <property name=\"hbm2ddl.auto\">update</property>\n"
+#~ "\n"
+#~ " <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/"
+#~ ">\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
#~ msgstr ""
-#~ "æä»¬æåç第ä¸ä»¶äºå°±æ¯å建æä»¬çå¼åç®å½ï¼å¹¶ä¸æææéè¦ç¨å°çJavaåºæä»¶æ¾"
-#~ "è¿å»ãè§£å缩ä»Hibernateç½ç«ä¸è½½çHibernateåå¸å
ï¼å¹¶æ<literal>/lib</"
-#~ "literal>ç®å½ä¸ææéè¦çåºæä»¶æ·å°æä»¬æ°å»ºå¼åç®å½ä¸ç<literal>/lib</"
-#~ "literal>ç®å½ä¸ãçèµ·æ¥å°±åè¿æ ·ï¼"
+#~ "<![CDATA[<?xml version='1.0' encoding='utf-8'?>\n"
+#~ "<!DOCTYPE hibernate-configuration PUBLIC\n"
+#~ " \"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n"
+#~ " \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+#~ "\">\n"
+#~ "\n"
+#~ "<hibernate-configuration>\n"
+#~ "\n"
+#~ " <session-factory>\n"
+#~ "\n"
+#~ " <!-- Database connection settings -->\n"
+#~ " <property name=\"connection.driver_class\">org.hsqldb.jdbcDriver</"
+#~ "property>\n"
+#~ " <property name=\"connection.url\">jdbc:hsqldb:hsql://localhost</"
+#~ "property>\n"
+#~ " <property name=\"connection.username\">sa</property>\n"
+#~ " <property name=\"connection.password\"></property>\n"
+#~ "\n"
+#~ " <!-- JDBC connection pool (use the built-in) -->\n"
+#~ " <property name=\"connection.pool_size\">1</property>\n"
+#~ "\n"
+#~ " <!-- SQL dialect -->\n"
+#~ " <property name=\"dialect\">org.hibernate.dialect.HSQLDialect</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Enable Hibernate's automatic session context management -->\n"
+#~ " <property name=\"current_session_context_class\">thread</"
+#~ "property>\n"
+#~ "\n"
+#~ " <!-- Disable the second-level cache -->\n"
+#~ " <property name=\"cache.provider_class\">org.hibernate.cache."
+#~ "NoCacheProvider</property>\n"
+#~ "\n"
+#~ " <!-- Echo all executed SQL to stdout -->\n"
+#~ " <property name=\"show_sql\">true</property>\n"
+#~ "\n"
+#~ " <!-- Drop and re-create the database schema on startup -->\n"
+#~ " <property name=\"hbm2ddl.auto\">update</property>\n"
+#~ "\n"
+#~ " <mapping resource=\"org/hibernate/tutorial/domain/Event.hbm.xml\"/"
+#~ ">\n"
+#~ "\n"
+#~ " </session-factory>\n"
+#~ "\n"
+#~ "</hibernate-configuration>]]>"
+#, fuzzy
#~ msgid ""
-#~ "This is the minimum set of required libraries (note that we also copied "
-#~ "hibernate3.jar, the main archive) for Hibernate <emphasis>at the time of "
-#~ "writing</emphasis>. The Hibernate release you are using might require "
-#~ "more or less libraries. See the <literal>README.txt</literal> file in the "
-#~ "<literal>lib/</literal> directory of the Hibernate distribution for more "
-#~ "information about required and optional third-party libraries. (Actually, "
-#~ "Log4j is not required but preferred by many developers.)"
+#~ "<![CDATA[package org.hibernate.tutorial.util;\n"
+#~ "\n"
+#~ "import org.hibernate.SessionFactory;\n"
+#~ "import org.hibernate.cfg.Configuration;\n"
+#~ "\n"
+#~ "public class HibernateUtil {\n"
+#~ "\n"
+#~ " private static final SessionFactory sessionFactory = "
+#~ "buildSessionFactory();\n"
+#~ "\n"
+#~ " private static SessionFactory buildSessionFactory() {\n"
+#~ " try {\n"
+#~ " // Create the SessionFactory from hibernate.cfg.xml\n"
+#~ " return new Configuration().configure().buildSessionFactory"
+#~ "();\n"
+#~ " }\n"
+#~ " catch (Throwable ex) {\n"
+#~ " // Make sure you log the exception, as it might be swallowed\n"
+#~ " System.err.println(\"Initial SessionFactory creation failed."
+#~ "\" + ex);\n"
+#~ " throw new ExceptionInInitializerError(ex);\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " public static SessionFactory getSessionFactory() {\n"
+#~ " return sessionFactory;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "<emphasis>å°ç¼åæ¬ææ¶ä¸ºæ¢</emphasis>ï¼è¿äºæ¯Hibernateè¿è¡æéè¦çæå°åºæ"
-#~ "ä»¶éåï¼æ³¨ææä»¬ä¹æ·è´äº Hibernate3.jarï¼è¿ä¸ªæ¯æä¸»è¦çæä»¶ï¼ãä½ æ£ä½¿ç¨ç"
-#~ "Hibernateçæ¬å¯è½éè¦æ¯è¿æ´å¤æå°ä¸äºçåºæä»¶ã请åè§åå¸å
ä¸ç"
-#~ "<literal>lib/</literal>ç®å½ä¸ç<literal>README.txt</literal>ï¼ä»¥è·åæ´å¤å
³"
-#~ "äºæéåå¯éçç¬¬ä¸æ¹åºæä»¶ä¿¡æ¯ï¼äºå®ä¸ï¼Log4j并䏿¯å¿
é¡»çåºæä»¶ï¼ä½è¢«è®¸å¤"
-#~ "å¼åè
æå欢ï¼ã"
+#~ "package util;\n"
+#~ "\n"
+#~ "import org.hibernate.*;\n"
+#~ "import org.hibernate.cfg.*;\n"
+#~ "\n"
+#~ "public class HibernateUtil {\n"
+#~ "\n"
+#~ " private static final SessionFactory sessionFactory;\n"
+#~ "\n"
+#~ " static {\n"
+#~ " try {\n"
+#~ " // Create the SessionFactory from hibernate.cfg.xml\n"
+#~ " sessionFactory = new Configuration().configure()."
+#~ "buildSessionFactory();\n"
+#~ " } catch (Throwable ex) {\n"
+#~ " // Make sure you log the exception, as it might be swallowed\n"
+#~ " System.err.println(\"Initial SessionFactory creation failed."
+#~ "\" + ex);\n"
+#~ " throw new ExceptionInInitializerError(ex);\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " public static SessionFactory getSessionFactory() {\n"
+#~ " return sessionFactory;\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Our first persistent class is a simple JavaBean class with some "
-#~ "properties:"
+#~ "<![CDATA[package org.hibernate.tutorial;\n"
+#~ "\n"
+#~ "import org.hibernate.Session;\n"
+#~ "\n"
+#~ "import java.util.*;\n"
+#~ "\n"
+#~ "import org.hibernate.tutorial.domain.Event;\n"
+#~ "import org.hibernate.tutorial.util.HibernateUtil;\n"
+#~ "\n"
+#~ "public class EventManager {\n"
+#~ "\n"
+#~ " public static void main(String[] args) {\n"
+#~ " EventManager mgr = new EventManager();\n"
+#~ "\n"
+#~ " if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory().close();\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void createAndStoreEvent(String title, Date theDate) {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ " session.save(theEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "æä»¬ç第ä¸ä¸ªæä¹
åç±»æ¯ä¸ä¸ªå¸¦æä¸äºå±æ§ï¼propertyï¼çç®åJavaBeanç±»ï¼"
+#~ "package events;\n"
+#~ "import org.hibernate.Session;\n"
+#~ "\n"
+#~ "import java.util.Date;\n"
+#~ "\n"
+#~ "import util.HibernateUtil;\n"
+#~ "\n"
+#~ "public class EventManager {\n"
+#~ "\n"
+#~ " public static void main(String[] args) {\n"
+#~ " EventManager mgr = new EventManager();\n"
+#~ "\n"
+#~ " if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory().close();\n"
+#~ " }\n"
+#~ "\n"
+#~ " private void createAndStoreEvent(String title, Date theDate) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ "\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " session.save(theEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Place this Java source file in a directory called <literal>src</literal> "
-#~ "in the development folder, and in its correct package. The directory "
-#~ "should now look like this:"
+#~ "<![CDATA[[java] Hibernate: insert into EVENTS (EVENT_DATE, title, "
+#~ "EVENT_ID) values (?, ?, ?)]]>"
#~ msgstr ""
-#~ "æè¿ä¸ªJavaæºä»£ç æä»¶æ¾å°å¼åç®å½ä¸ç<literal>src</literal>ç®å½éï¼æ³¨æå
ä½"
-#~ "ç½®è¦æ£ç¡®ã ç°å¨è¿ä¸ªç®å½çèµ·æ¥åºè¯¥åè¿æ ·ï¼"
+#~ "[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values "
+#~ "(?, ?, ?)"
-#~ msgid "In the next step, we tell Hibernate about this persistent class."
-#~ msgstr "ä¸ä¸æ¥ï¼æä»¬æè¿ä¸ªæä¹
åç±»çä¿¡æ¯åè¯Hibernateã"
-
+#, fuzzy
#~ msgid ""
-#~ "The <literal>id</literal> element is the declaration of the identifer "
-#~ "property, <literal>name=\"id\"</literal> declares the name of the Java "
-#~ "property - Hibernate will use the getter and setter methods to access the "
-#~ "property. The column attribute tells Hibernate which column of the "
-#~ "<literal>EVENTS</literal> table we use for this primary key. The nested "
-#~ "<literal>generator</literal> element specifies the identifier generation "
-#~ "strategy, in this case we used <literal>native</literal>, which picks the "
-#~ "best strategy depending on the configured database (dialect). Hibernate "
-#~ "supports database generated, globally unique, as well as application "
-#~ "assigned identifiers (or any strategy you have written an extension for)."
+#~ "<![CDATA[ if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " }\n"
+#~ " else if (args[0].equals(\"list\")) {\n"
+#~ " List events = mgr.listEvents();\n"
+#~ " for (int i = 0; i < events.size(); i++) {\n"
+#~ " Event theEvent = (Event) events.get(i);\n"
+#~ " System.out.println(\n"
+#~ " \"Event: \" + theEvent.getTitle() + \" Time: \" + "
+#~ "theEvent.getDate()\n"
+#~ " );\n"
+#~ " }\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "<literal>id</literal>å
ç´ æ¯æ è¯ç¬¦å±æ§ç声æï¼<literal>name=\"id\"</"
-#~ "literal> 声æäºJava屿§çåå ï¼ Hibernateä¼ä½¿ç¨<literal>getId()</literal>"
-#~ "å<literal>setId()</literal>æ¥è®¿é®å®ã <literal>column</literal>屿§ååè¯"
-#~ "Hibernate, æä»¬ä½¿ç¨<literal>EVENTS</literal>表çåªä¸ªå段ä½ä¸ºä¸»é®ãåµå¥ç"
-#~ "<literal>generator</literal>å
ç´ æå®äºæ è¯ç¬¦çæçç¥ï¼å¨è¿éæä»¬æå®"
-#~ "<literal>native</literal>ï¼å®æ ¹æ®å·²é
ç½®çæ°æ®åºï¼æ¹è¨ï¼èªå¨éæ©æä½³çæ è¯"
-#~ "符çæçç¥ãHibernateæ¯æç±æ°æ®åºçæï¼å
¨å±å¯ä¸æ§ï¼globally uniqueï¼ååºç¨"
-#~ "ç¨åºæå®ï¼æè
ä½ èªå·±ä¸ºä»»ä½å·²æçç¥æåçæ©å±ï¼è¿äºçç¥æ¥çææ è¯ç¬¦ã"
+#~ "if (args[0].equals(\"store\")) {\n"
+#~ " mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ "}\n"
+#~ "else if (args[0].equals(\"list\")) {\n"
+#~ " List events = mgr.listEvents();\n"
+#~ " for (int i = 0; i < events.size(); i++) {\n"
+#~ " Event theEvent = (Event) events.get(i);\n"
+#~ " System.out.println(\"Event: \" + theEvent.getTitle() +\n"
+#~ " \" Time: \" + theEvent.getDate());\n"
+#~ " }\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "This mapping file should be saved as <literal>Event.hbm.xml</literal>, "
-#~ "right in the directory next to the <literal>Event</literal> Java class "
-#~ "source file. The naming of mapping files can be arbitrary, however the "
-#~ "<literal>hbm.xml</literal> suffix is a convention in the Hibernate "
-#~ "developer community. The directory structure should now look like this:"
+#~ "<![CDATA[ private List listEvents() {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ " List result = session.createQuery(\"from Event\").list();\n"
+#~ " session.getTransaction().commit();\n"
+#~ " return result;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "åºè¯¥æè¿ä¸ªæ å°æä»¶ä¿å为<literal>Event.hbm.xml</literal>ï¼ä¸å°±å¨"
-#~ "<literal>Event</literal>Javaç±»çæºæä»¶ç®å½ä¸ãæ å°æä»¶å¯éæå°å½åï¼ä½"
-#~ "<literal>hbm.xml</literal>çåç¼å·²æä¸ºHibernateå¼åè
社åºç约å®ãç°å¨ç®å½"
-#~ "ç»æçèµ·æ¥åºè¯¥åè¿æ ·ï¼"
+#~ "private List listEvents() {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ "\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " List result = session.createQuery(\"from Event\").list();\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " return result;\n"
+#~ "}"
-#~ msgid "We continue with the main configuration of Hibernate."
-#~ msgstr "æä»¬ç»§ç»è¿è¡Hibernateç主è¦é
ç½®ã"
-
+#, fuzzy
#~ msgid ""
-#~ "We now have a persistent class and its mapping file in place. It is time "
-#~ "to configure Hibernate. Before we do this, we will need a database. HSQL "
-#~ "DB, a java-based SQL DBMS, can be downloaded from the HSQL DB website"
-#~ "(http://hsqldb.org/). Actually, you only need the <literal>hsqldb.jar</"
-#~ "literal> from this download. Place this file in the <literal>lib/</"
-#~ "literal> directory of the development folder."
+#~ "<![CDATA[package org.hibernate.tutorial.domain;\n"
+#~ "\n"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Long id;\n"
+#~ " private int age;\n"
+#~ " private String firstname;\n"
+#~ " private String lastname;\n"
+#~ "\n"
+#~ " public Person() {}\n"
+#~ "\n"
+#~ " // Accessor methods for all properties, private setter for 'id'\n"
+#~ "\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ç°å¨æä»¬å·²ç»æäºä¸ä¸ªæä¹
åç±»åå®çæ å°æä»¶ï¼è¯¥æ¯é
ç½®Hibernateçæ¶åäºãå¨"
-#~ "æ¤ä¹åï¼æä»¬éè¦ä¸ä¸ªæ°æ®åºã HSQL DBæ¯ç§åºäºJava çSQLæ°æ®åºç®¡çç³»ç»"
-#~ "ï¼DBMSï¼ï¼å¯ä»¥ä»HSQL DBçç½ç«ä¸ä¸è½½ãå®é
ä¸ï¼ä½ åªéä¸è½½çå
ä¸ç"
-#~ "<literal>hsqldb.jar</literal>æä»¶ï¼å¹¶æè¿ä¸ªæä»¶æ¾å¨å¼åæä»¶å¤¹ç"
-#~ "<literal>lib/</literal>ç®å½ä¸å³å¯ã"
+#~ "package events;\n"
+#~ "\n"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Long id;\n"
+#~ " private int age;\n"
+#~ " private String firstname;\n"
+#~ " private String lastname;\n"
+#~ "\n"
+#~ " public Person() {}\n"
+#~ "\n"
+#~ " // Accessor methods for all properties, private setter for 'id'\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Hibernate is the layer in your application which connects to this "
-#~ "database, so it needs connection information. The connections are made "
-#~ "through a JDBC connection pool, which we also have to configure. The "
-#~ "Hibernate distribution contains several open source JDBC connection "
-#~ "pooling tools, but will use the Hibernate built-in connection pool for "
-#~ "this tutorial. Note that you have to copy the required library into your "
-#~ "classpath and use different connection pooling settings if you want to "
-#~ "use a production-quality third party JDBC pooling software."
+#~ "<![CDATA[<hibernate-mapping package=\"org.hibernate.tutorial.domain\">\n"
+#~ "\n"
+#~ " <class name=\"Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>]]>"
#~ msgstr ""
-#~ "Hibernateæ¯ä½ çåºç¨ç¨åºéè¿æ¥æ°æ®åºçé£å±ï¼æä»¥å®éè¦è¿æ¥ç¨çä¿¡æ¯ãè¿æ¥"
-#~ "ï¼connectionï¼æ¯éè¿ä¸ä¸ªä¹ç±æä»¬é
ç½®çJDBCè¿æ¥æ± ï¼connection poolï¼æ¥å®æ"
-#~ "çãHibernateçåå¸å
éå
å«äºè®¸å¤å¼æºçï¼open sourceï¼è¿æ¥æ± ï¼ä½å¨æä»¬ä¾å"
-#~ "ä¸ä½¿ç¨Hibernateå
ç½®çè¿æ¥æ± ãæ³¨æï¼å¦æä½ å¸æä½¿ç¨ä¸ä¸ªäº§å级(production-"
-#~ "quality)çç¬¬ä¸æ¹è¿æ¥æ± 软件ï¼ä½ å¿
é¡»æ·è´æéçåºæä»¶å°ä½ çclasspathä¸ï¼å¹¶ä½¿"
-#~ "ç¨ä¸åçè¿æ¥æ± 设置ã"
+#~ "<hibernate-mapping>\n"
+#~ "\n"
+#~ " <class name=\"events.Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ " </class>\n"
+#~ "\n"
+#~ "</hibernate-mapping>"
+#, fuzzy
#~ msgid ""
-#~ "Copy this file into the source directory, so it will end up in the root "
-#~ "of the classpath. Hibernate automatically looks for a file called "
-#~ "<literal>hibernate.cfg.xml</literal> in the root of the classpath, on "
-#~ "startup."
+#~ "<![CDATA[<mapping resource=\"events/Event.hbm.xml\"/>\n"
+#~ "<mapping resource=\"events/Person.hbm.xml\"/>]]>"
#~ msgstr ""
-#~ "æè¿ä¸ªæä»¶æ·è´å°æºä»£ç ç®å½ä¸é¢ï¼è¿æ ·å®å°±ä½äºclasspathçæ ¹ç®å½çæåã"
-#~ "Hibernateå¨å¯å¨æ¶ä¼èªå¨å¨classpathçæ ¹ç®å½æ¥æ¾å为<literal>hibernate.cfg."
-#~ "xml</literal>çé
ç½®æä»¶ã"
+#~ "<mapping resource=\"events/Event.hbm.xml\"/>\n"
+#~ "<mapping resource=\"events/Person.hbm.xml\"/>"
+#, fuzzy
#~ msgid ""
-#~ "We'll now build the tutorial with Ant. You will need to have Ant "
-#~ "installed - get it from the <ulink url=\"http://ant.apache.org/"
-#~ "bindownload.cgi\">Ant download page</ulink>. How to install Ant will not "
-#~ "be covered here. Please refer to the <ulink url=\"http://ant.apache.org/"
-#~ "manual/index.html\">Ant manual</ulink>. After you have installed Ant, we "
-#~ "can start to create the buildfile. It will be called <literal>build.xml</"
-#~ "literal> and placed directly in the development directory."
+#~ "<![CDATA[public class Person {\n"
+#~ "\n"
+#~ " private Set events = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "}]]>"
#~ msgstr ""
-#~ "ç°å¨æä»¬ç¨Antæ¥æå»ºåºç¨ç¨åºãä½ å¿
é¡»å
å®è£
Antï¼å¯ä»¥ä»<ulink url=\"http://"
-#~ "ant.apache.org/bindownload.cgi\">Ant ä¸è½½é¡µé¢</ulink>å¾å°å®ãææ ·å®è£
Antå°±"
-#~ "ä¸å¨è¿éä»ç»äºï¼è¯·åè<ulink url=\"http://ant.apache.org/manual/index.html"
-#~ "\">Ant ç¨æ·æå</ulink>ãå½ä½ å®è£
å®äºAntï¼å°±å¯ä»¥å¼å§å建<literal>build."
-#~ "xml</literal>æä»¶ï¼æå®ç´æ¥æ¾å¨å¼åç®å½ä¸é¢ã"
+#~ "public class Person {\n"
+#~ "\n"
+#~ " private Set events = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "}"
-#~ msgid "A basic build file looks like this:"
-#~ msgstr "ä¸ä¸ªç®åçbuildæä»¶çèµ·æ¥åè¿æ ·ï¼"
-
+#, fuzzy
#~ msgid ""
-#~ "This will tell Ant to add all files in the lib directory ending with "
-#~ "<literal>.jar</literal> to the classpath used for compilation. It will "
-#~ "also copy all non-Java source files to the target directory, e.g. "
-#~ "configuration and Hibernate mapping files. If you now run Ant, you should "
-#~ "get this output:"
+#~ "<![CDATA[<class name=\"Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ "\n"
+#~ " <set name=\"events\" table=\"PERSON_EVENT\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <many-to-many column=\"EVENT_ID\" class=\"Event\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ "</class>]]>"
#~ msgstr ""
-#~ "è¿å°åè¯Antæææå¨libç®å½ä¸ä»¥<literal>.jar</literal>ç»å°¾çæä»¶æ·è´å°"
-#~ "classpathä¸ä»¥ä¾ç¼è¯ä¹ç¨ãå®ä¹æææçéJavaæºä»£ç æä»¶ï¼ä¾å¦é
ç½®åHibernate"
-#~ "æ å°æä»¶ï¼æ·è´å°ç®æ ç®å½ãå¦æä½ ç°å¨è¿è¡Antï¼ä¼å¾å°ä»¥ä¸è¾åºï¼"
+#~ "<class name=\"events.Person\" table=\"PERSON\">\n"
+#~ " <id name=\"id\" column=\"PERSON_ID\">\n"
+#~ " <generator class=\"native\"/>\n"
+#~ " </id>\n"
+#~ " <property name=\"age\"/>\n"
+#~ " <property name=\"firstname\"/>\n"
+#~ " <property name=\"lastname\"/>\n"
+#~ "\n"
+#~ " <set name=\"events\" table=\"PERSON_EVENT\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <many-to-many column=\"EVENT_ID\" class=\"events.Event\"/>\n"
+#~ " </set>\n"
+#~ "\n"
+#~ "</class>"
+#, fuzzy
#~ msgid ""
-#~ "Place <literal>HibernateUtil.java</literal> in the development source "
-#~ "directory, in a package next to <literal>events</literal>:"
+#~ "<![CDATA[\n"
+#~ " _____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | |\n"
+#~ " |_____________| |__________________| | PERSON |\n"
+#~ " | | | | |_____________|\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | |\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE |\n"
+#~ " |_____________| | FIRSTNAME |\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|\n"
+#~ " ]]>"
#~ msgstr ""
-#~ "æ<literal>HibernateUtil.java</literal>æ¾å¨å¼åç®å½çæºä»£ç è·¯å¾ä¸ï¼ä¸æ¾"
-#~ "<literal>events</literal>çå
å¹¶åï¼"
+#~ "_____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | |\n"
+#~ " |_____________| |__________________| | PERSON |\n"
+#~ " | | | | |_____________|\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | |\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE |\n"
+#~ " |_____________| | FIRSTNAME |\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|"
+#, fuzzy
#~ msgid ""
-#~ "To run this first routine we have to add a callable target to the Ant "
-#~ "build file:"
+#~ "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) "
+#~ "{\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ " aPerson.getEvents().add(anEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "ä¸ºç¬¬ä¸æ¬¡è¿è¡æä»¬çç¨åºï¼æä»¬å¾å¨Antçbuildæä»¶ä¸å¢å ä¸ä¸ªå¯ä»¥è°ç¨å¾å°ç"
-#~ "targetã"
+#~ "private void addPersonToEvent(Long personId, Long eventId) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "The value of the <literal>action</literal> argument is set on the command "
-#~ "line when calling the target:"
+#~ "<![CDATA[ private void addPersonToEvent(Long personId, Long eventId) "
+#~ "{\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session\n"
+#~ " .createQuery(\"select p from Person p left join fetch p."
+#~ "events where p.id = :pid\")\n"
+#~ " .setParameter(\"pid\", personId)\n"
+#~ " .uniqueResult(); // Eager fetch the collection so we can "
+#~ "use it detached\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " // End of first unit of work\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent); // aPerson (and its collection) "
+#~ "is detached\n"
+#~ "\n"
+#~ " // Begin second unit of work\n"
+#~ "\n"
+#~ " Session session2 = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session2.beginTransaction();\n"
+#~ " session2.update(aPerson); // Reattachment of aPerson\n"
+#~ "\n"
+#~ " session2.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "<literal>action</literal>åæ°ï¼argumentï¼ç弿¯éè¿å½ä»¤è¡è°ç¨è¿ä¸ªtargetç"
-#~ "æ¶å设置çï¼"
+#~ "private void addPersonToEvent(Long personId, Long eventId) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session\n"
+#~ " .createQuery(\"select p from Person p left join fetch p."
+#~ "events where p.id = :pid\")\n"
+#~ " .setParameter(\"pid\", personId)\n"
+#~ " .uniqueResult(); // Eager fetch the collection so we can use "
+#~ "it detached\n"
+#~ "\n"
+#~ " Event anEvent = (Event) session.load(Event.class, eventId);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "\n"
+#~ " // End of first unit of work\n"
+#~ "\n"
+#~ " aPerson.getEvents().add(anEvent); // aPerson (and its collection) is "
+#~ "detached\n"
+#~ "\n"
+#~ " // Begin second unit of work\n"
+#~ "\n"
+#~ " Session session2 = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session2.beginTransaction();\n"
+#~ "\n"
+#~ " session2.update(aPerson); // Reattachment of aPerson\n"
+#~ "\n"
+#~ " session2.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "This is the <literal>INSERT</literal> executed by Hibernate, the question "
-#~ "marks represent JDBC bind parameters. To see the values bound as "
-#~ "arguments, or to reduce the verbosity of the log, check your "
-#~ "<literal>log4j.properties</literal>."
+#~ "<![CDATA[ else if (args[0].equals(\"addpersontoevent\")) {\n"
+#~ " Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date"
+#~ "());\n"
+#~ " Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
+#~ " mgr.addPersonToEvent(personId, eventId);\n"
+#~ " System.out.println(\"Added person \" + personId + \" to event "
+#~ "\" + eventId);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "è¿æ¯Hibernateæ§è¡ç<literal>INSERT</literal>å½ä»¤ï¼é®å·ä»£è¡¨JDBCçç»å®åæ°ã"
-#~ "妿æ³è¦çå°ç»å®åæ°ç弿è
åå°æ¥å¿çé¿åº¦ï¼å°±è¦è°æ´ä½ å¨<literal>log4j."
-#~ "properties</literal>æä»¶éç设置ã"
+#~ "else if (args[0].equals(\"addpersontoevent\")) {\n"
+#~ " Long eventId = mgr.createAndStoreEvent(\"My Event\", new Date());\n"
+#~ " Long personId = mgr.createAndStorePerson(\"Foo\", \"Bar\");\n"
+#~ " mgr.addPersonToEvent(personId, eventId);\n"
+#~ " System.out.println(\"Added person \" + personId + \" to event \" + "
+#~ "eventId);\n"
+#~ "}"
-#~ msgid "Now, to execute and test all of this, follow these steps:"
-#~ msgstr "ç°å¨ï¼æ ¹æ®ä»¥ä¸æ¥éª¤æ¥æ§è¡å¹¶æµè¯ä»¥ä¸å项ï¼"
-
+#, fuzzy
#~ msgid ""
-#~ "Run <literal>ant run -Daction=store</literal> to store something into the "
-#~ "database and, of course, to generate the database schema before through "
-#~ "hbm2ddl."
+#~ "<![CDATA[ private Set emailAddresses = new HashSet();\n"
+#~ "\n"
+#~ " public Set getEmailAddresses() {\n"
+#~ " return emailAddresses;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setEmailAddresses(Set emailAddresses) {\n"
+#~ " this.emailAddresses = emailAddresses;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "è¿è¡<literal>ant run -Daction=store</literal>æ¥ä¿åä¸äºå
容尿°æ®åºãå½"
-#~ "ç¶ï¼å
å¾ç¨hbm2ddlæ¥çææ°æ®åºschemaã"
+#~ "private Set emailAddresses = new HashSet();\n"
+#~ "\n"
+#~ "public Set getEmailAddresses() {\n"
+#~ " return emailAddresses;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void setEmailAddresses(Set emailAddresses) {\n"
+#~ " this.emailAddresses = emailAddresses;\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Now disable hbm2ddl by commenting out the property in your "
-#~ "<literal>hibernate.cfg.xml</literal> file. Usually you only leave it "
-#~ "turned on in continous unit testing, but another run of hbm2ddl would "
-#~ "<emphasis>drop</emphasis> everything you have stored - the "
-#~ "<literal>create</literal> configuration setting actually translates into "
-#~ "\"drop all tables from the schema, then re-create all tables, when the "
-#~ "SessionFactory is build\"."
+#~ "<![CDATA[ <set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR"
+#~ "\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
+#~ " </set>]]>"
#~ msgstr ""
-#~ "ç°å¨æ<literal>hibernate.cfg.xml</literal>æä»¶ä¸hbm2ddl屿§æ³¨éæï¼è¿æ ·æ"
-#~ "们就忶äºå¨å¯å¨æ¶ç¨hbm2ddlæ¥çææ°æ®åºschemaãéå¸¸åªæå¨ä¸æéå¤è¿è¡åå
"
-#~ "æµè¯çæ¶åæéè¦æå¼å®ï¼ä½å次è¿è¡hbm2ddlä¼æä½ ä¿åçä¸åé½å æ"
-#~ "ï¼<emphasis>drop</emphasis>ï¼ââ<literal>create</literal>é
ç½®ççå®å«ä¹"
-#~ "æ¯ï¼âå¨å建SessionFactoryçæ¶åï¼ä»schema ä¸drop æææç表ï¼åéæ°å建å®"
-#~ "们âã"
+#~ "<set name=\"emailAddresses\" table=\"PERSON_EMAIL_ADDR\">\n"
+#~ " <key column=\"PERSON_ID\"/>\n"
+#~ " <element type=\"string\" column=\"EMAIL_ADDR\"/>\n"
+#~ "</set>"
+#, fuzzy
#~ msgid ""
-#~ "If you now call Ant with <literal>-Daction=list</literal>, you should see "
-#~ "the events you have stored so far. You can of course also call the "
-#~ "<literal>store</literal> action a few times more."
+#~ "<![CDATA[\n"
+#~ " _____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | | "
+#~ "___________________\n"
+#~ " |_____________| |__________________| | PERSON | "
+#~ "| |\n"
+#~ " | | | | |_____________| | "
+#~ "PERSON_EMAIL_ADDR |\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | | |"
+#~ "___________________|\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | <--> | "
+#~ "*PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE | | "
+#~ "*EMAIL_ADDR |\n"
+#~ " |_____________| | FIRSTNAME | |"
+#~ "___________________|\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|\n"
+#~ " ]]>"
#~ msgstr ""
-#~ "å¦æä½ ç°å¨ä½¿ç¨å½ä»¤è¡åæ°<literal>-Daction=list</literal>è¿è¡Antï¼ä½ ä¼çå°"
-#~ "é£äºè³ä»ä¸ºæ¢æä»¬æå¨åçeventsãå½ç¶ï¼ä½ ä¹å¯ä»¥å¤è°ç¨å 次<literal>store</"
-#~ "literal>以ä¿åæ´å¤çenventsã"
+#~ "_____________ __________________\n"
+#~ " | | | | _____________\n"
+#~ " | EVENTS | | PERSON_EVENT | | | "
+#~ "___________________\n"
+#~ " |_____________| |__________________| | PERSON | "
+#~ "| |\n"
+#~ " | | | | |_____________| | "
+#~ "PERSON_EMAIL_ADDR |\n"
+#~ " | *EVENT_ID | <--> | *EVENT_ID | | "
+#~ "| |___________________|\n"
+#~ " | EVENT_DATE | | *PERSON_ID | <--> | *PERSON_ID | "
+#~ "<--> | *PERSON_ID |\n"
+#~ " | TITLE | |__________________| | AGE | | "
+#~ "*EMAIL_ADDR |\n"
+#~ " |_____________| | FIRSTNAME | |"
+#~ "___________________|\n"
+#~ " | LASTNAME |\n"
+#~ " |_____________|"
+#, fuzzy
#~ msgid ""
-#~ "Note: Most new Hibernate users fail at this point and we see questions "
-#~ "about <emphasis>Table not found</emphasis> error messages regularly. "
-#~ "However, if you follow the steps outlined above you will not have this "
-#~ "problem, as hbm2ddl creates the database schema on the first run, and "
-#~ "subsequent application restarts will use this schema. If you change the "
-#~ "mapping and/or database schema, you have to re-enable hbm2ddl once again."
+#~ "<![CDATA[ private void addEmailToPerson(Long personId, String "
+#~ "emailAddress) {\n"
+#~ " Session session = HibernateUtil.getSessionFactory()."
+#~ "getCurrentSession();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ " // adding to the emailAddress collection might trigger a lazy "
+#~ "load of the collection\n"
+#~ " aPerson.getEmailAddresses().add(emailAddress);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "注æï¼å¾å¤Hibernateæ°æå¨è¿ä¸æ¥ä¼å¤±è´¥ï¼æä»¬ä¸æ¶çå°å
³äº<emphasis>Table "
-#~ "not found</emphasis>é误信æ¯çæé®ã使¯ï¼åªè¦ä½ æ ¹æ®ä¸é¢æè¿°çæ¥éª¤æ¥æ§è¡ï¼"
-#~ "å°±ä¸ä¼æè¿ä¸ªé®é¢ï¼å 为hbm2ddlä¼å¨ç¬¬ä¸æ¬¡è¿è¡çæ¶ååå»ºæ°æ®åºschemaï¼åç»§ç"
-#~ "åºç¨ç¨åºéèµ·åè¿è½ç»§ç»ä½¿ç¨è¿ä¸ªschemaãåè¥ä½ ä¿®æ¹äºæ å°ï¼æè
ä¿®æ¹äºæ°æ®åº"
-#~ "schemaï¼ä½ å¿
é¡»æhbm2ddléæ°æå¼ä¸æ¬¡ã"
+#~ "private void addEmailToPerson(Long personId, String emailAddress) {\n"
+#~ "\n"
+#~ " Session session = HibernateUtil.getSessionFactory().getCurrentSession"
+#~ "();\n"
+#~ " session.beginTransaction();\n"
+#~ "\n"
+#~ " Person aPerson = (Person) session.load(Person.class, personId);\n"
+#~ "\n"
+#~ " // The getEmailAddresses() might trigger a lazy load of the "
+#~ "collection\n"
+#~ " aPerson.getEmailAddresses().add(emailAddress);\n"
+#~ "\n"
+#~ " session.getTransaction().commit();\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Create a new mapping file called <literal>Person.hbm.xml</literal> (don't "
-#~ "forget the DTD reference at the top):"
+#~ "<![CDATA[ private Set participants = new HashSet();\n"
+#~ "\n"
+#~ " public Set getParticipants() {\n"
+#~ " return participants;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void setParticipants(Set participants) {\n"
+#~ " this.participants = participants;\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "å建ä¸ä¸ªå为<literal>Person.hbm.xml</literal>çæ°æ å°æä»¶ï¼å«å¿äºæä¸é¢ç"
-#~ "DTDå¼ç¨ï¼ï¼"
+#~ "private Set participants = new HashSet();\n"
+#~ "\n"
+#~ "public Set getParticipants() {\n"
+#~ " return participants;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void setParticipants(Set participants) {\n"
+#~ " this.participants = participants;\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "We need a unidirectional, many-valued associations, implemented with a "
-#~ "<literal>Set</literal>. Let's write the code for this in the Java classes "
-#~ "and then map it:"
+#~ "<![CDATA[ <set name=\"participants\" table=\"PERSON_EVENT\" "
+#~ "inverse=\"true\">\n"
+#~ " <key column=\"EVENT_ID\"/>\n"
+#~ " <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
+#~ " </set>]]>"
#~ msgstr ""
-#~ "æä»¬éè¦ç¨set å®ç°ä¸ä¸ªååå¤å¼å
³èã让æä»¬å¨Javaç±»é为è¿ä¸ªå
³èç¼ç ï¼æ¥çæ "
-#~ "å°å®ï¼"
+#~ "<set name=\"participants\" table=\"PERSON_EVENT\" inverse=\"true"
+#~ "\">\n"
+#~ " <key column=\"EVENT_ID\"/>\n"
+#~ " <many-to-many column=\"PERSON_ID\" class=\"events.Person\"/>\n"
+#~ "</set>"
+#, fuzzy
#~ msgid ""
-#~ "We add a collection of value typed objects to the <literal>Person</"
-#~ "literal> entity. We want to store email addresses, so the type we use is "
-#~ "<literal>String</literal>, and the collection is again a <literal>Set</"
-#~ "literal>:"
+#~ "<![CDATA[ protected Set getEvents() {\n"
+#~ " return events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " protected void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void addToEvent(Event event) {\n"
+#~ " this.getEvents().add(event);\n"
+#~ " event.getParticipants().add(this);\n"
+#~ " }\n"
+#~ "\n"
+#~ " public void removeFromEvent(Event event) {\n"
+#~ " this.getEvents().remove(event);\n"
+#~ " event.getParticipants().remove(this);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "æä»¬æä¸ä¸ªå¼ç±»å对象çéåå å
¥<literal>Person</literal>å®ä½ä¸ãæä»¬å¸æä¿"
-#~ "åemailå°åï¼æä»¥ä½¿ç¨<literal>String</literal>ç±»åï¼èä¸è¿æ¬¡çéåç±»å忝"
-#~ "<literal>Set</literal>ï¼"
+#~ "protected Set getEvents() {\n"
+#~ " return events;\n"
+#~ "}\n"
+#~ "\n"
+#~ "protected void setEvents(Set events) {\n"
+#~ " this.events = events;\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void addToEvent(Event event) {\n"
+#~ " this.getEvents().add(event);\n"
+#~ " event.getParticipants().add(this);\n"
+#~ "}\n"
+#~ "\n"
+#~ "public void removeFromEvent(Event event) {\n"
+#~ " this.getEvents().remove(event);\n"
+#~ " event.getParticipants().remove(this);\n"
+#~ "}"
-#~ msgid "Let's turn this into a small web application."
-#~ msgstr "让æä»¬æè¿å
¥ä¸ä¸ªå°åçwebåºç¨ç¨åºã"
-
+#, fuzzy
#~ msgid ""
-#~ "Create a new class in your source directory, in the <literal>events</"
-#~ "literal> package:"
-#~ msgstr "å¨ä½ çæºä»£ç ç®å½ç<literal>events</literal>å
ä¸å建ä¸ä¸ªæ°çç±»ï¼"
+#~ "<![CDATA[package org.hibernate.tutorial.web;\n"
+#~ "\n"
+#~ "// Imports\n"
+#~ "\n"
+#~ "public class EventManagerServlet extends HttpServlet {\n"
+#~ "\n"
+#~ " protected void doGet(\n"
+#~ " HttpServletRequest request,\n"
+#~ " HttpServletResponse response) throws ServletException, "
+#~ "IOException {\n"
+#~ "\n"
+#~ " SimpleDateFormat dateFormatter = new SimpleDateFormat( \"dd.MM."
+#~ "yyyy\" );\n"
+#~ "\n"
+#~ " try {\n"
+#~ " // Begin unit of work\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "beginTransaction();\n"
+#~ "\n"
+#~ " // Process request and render page...\n"
+#~ "\n"
+#~ " // End unit of work\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "getTransaction().commit();\n"
+#~ " }\n"
+#~ " catch (Exception ex) {\n"
+#~ " HibernateUtil.getSessionFactory().getCurrentSession()."
+#~ "getTransaction().rollback();\n"
+#~ " if ( ServletException.class.isInstance( ex ) ) {\n"
+#~ " throw ( ServletException ) ex;\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " throw new ServletException( ex );\n"
+#~ " }\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "protected void doGet(HttpServletRequest request,\n"
+#~ " HttpServletResponse response)\n"
+#~ " throws ServletException, IOException {\n"
+#~ "\n"
+#~ " SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd.MM.yyyy"
+#~ "\");\n"
+#~ "\n"
+#~ " try {\n"
+#~ " // Begin unit of work\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().beginTransaction();\n"
+#~ "\n"
+#~ " // Process request and render page...\n"
+#~ "\n"
+#~ " // End unit of work\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().getTransaction().commit();\n"
+#~ "\n"
+#~ " } catch (Exception ex) {\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().getTransaction().rollback();\n"
+#~ " throw new ServletException(ex);\n"
+#~ " }\n"
+#~ "\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "To deploy this application you have to create a web archive, a WAR. Add "
-#~ "the following Ant target to your <literal>build.xml</literal>:"
+#~ "<![CDATA[ // Write HTML header\n"
+#~ " PrintWriter out = response.getWriter();\n"
+#~ " out.println(\"<html><head><title>Event Manager</title></"
+#~ "head><body>\");\n"
+#~ "\n"
+#~ " // Handle actions\n"
+#~ " if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
+#~ "\n"
+#~ " String eventTitle = request.getParameter(\"eventTitle\");\n"
+#~ " String eventDate = request.getParameter(\"eventDate\");\n"
+#~ "\n"
+#~ " if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
+#~ " out.println(\"<b><i>Please enter event title and date.</"
+#~ "i></b>\");\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " createAndStoreEvent(eventTitle, dateFormatter.parse"
+#~ "(eventDate));\n"
+#~ " out.println(\"<b><i>Added event.</i></b>\");\n"
+#~ " }\n"
+#~ " }\n"
+#~ "\n"
+#~ " // Print page\n"
+#~ " printEventForm(out);\n"
+#~ " listEvents(out, dateFormatter);\n"
+#~ "\n"
+#~ " // Write HTML footer\n"
+#~ " out.println(\"</body></html>\");\n"
+#~ " out.flush();\n"
+#~ " out.close();]]>"
#~ msgstr ""
-#~ "è¦åå¸è¿ä¸ªç¨åºï¼ä½ 徿宿æwebåå¸å
ï¼WARæä»¶ãæä¸é¢çèæ¬å å
¥å°ä½ ç"
-#~ "<literal>build.xml</literal>ä¸ï¼"
+#~ "// Write HTML header\n"
+#~ "PrintWriter out = response.getWriter();\n"
+#~ "out.println(\"<html><head><title>Event Manager</"
+#~ "title></head><body>\");\n"
+#~ "\n"
+#~ "// Handle actions\n"
+#~ "if ( \"store\".equals(request.getParameter(\"action\")) ) {\n"
+#~ "\n"
+#~ " String eventTitle = request.getParameter(\"eventTitle\");\n"
+#~ " String eventDate = request.getParameter(\"eventDate\");\n"
+#~ "\n"
+#~ " if ( \"\".equals(eventTitle) || \"\".equals(eventDate) ) {\n"
+#~ " out.println(\"<b><i>Please enter event title and date."
+#~ "</i></b>\");\n"
+#~ " } else {\n"
+#~ " createAndStoreEvent(eventTitle, dateFormatter.parse(eventDate));\n"
+#~ " out.println(\"<b><i>Added event.</i></b>"
+#~ "\");\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "// Print page\n"
+#~ "printEventForm(out);\n"
+#~ "listEvents(out, dateFormatter);\n"
+#~ "\n"
+#~ "// Write HTML footer\n"
+#~ "out.println(\"</body></html>\");\n"
+#~ "out.flush();\n"
+#~ "out.close();"
+#, fuzzy
#~ msgid ""
-#~ "This target creates a file called <literal>hibernate-tutorial.war</"
-#~ "literal> in your project directory. It packages all libraries and the "
-#~ "<literal>web.xml</literal> descriptor, which is expected in the base "
-#~ "directory of your project:"
+#~ "<![CDATA[ private void printEventForm(PrintWriter out) {\n"
+#~ " out.println(\"<h2>Add new event:</h2>\");\n"
+#~ " out.println(\"<form>\");\n"
+#~ " out.println(\"Title: <input name='eventTitle' length='50'/><br/>"
+#~ "\");\n"
+#~ " out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
+#~ "length='10'/><br/>\");\n"
+#~ " out.println(\"<input type='submit' name='action' value='store'/>"
+#~ "\");\n"
+#~ " out.println(\"</form>\");\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "è¿æ®µä»£ç å¨ä½ çå¼åç®å½ä¸å建ä¸ä¸ª<literal>hibernate-tutorial.war</literal>"
-#~ "çæä»¶ã宿ææçç±»åºå<literal>web.xml</literal>æè¿°æä»¶é½æå
è¿å»ï¼web."
-#~ "xml æä»¶åºè¯¥ä½äºä½ çå¼åæ ¹ç®å½ä¸ï¼"
+#~ "private void printEventForm(PrintWriter out) {\n"
+#~ " out.println(\"<h2>Add new event:</h2>\");\n"
+#~ " out.println(\"<form>\");\n"
+#~ " out.println(\"Title: <input name='eventTitle' length='50'/><"
+#~ "br/>\");\n"
+#~ " out.println(\"Date (e.g. 24.12.2009): <input name='eventDate' "
+#~ "length='10'/><br/>\");\n"
+#~ " out.println(\"<input type='submit' name='action' value='store'/>"
+#~ "\");\n"
+#~ " out.println(\"</form>\");\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Before you compile and deploy the web application, note that an "
-#~ "additional library is required: <literal>jsdk.jar</literal>. This is the "
-#~ "Java servlet development kit, if you don't have this library already, get "
-#~ "it from the Sun website and copy it to your library directory. However, "
-#~ "it will be only used for compliation and excluded from the WAR package."
+#~ "<![CDATA[ private void listEvents(PrintWriter out, SimpleDateFormat "
+#~ "dateFormatter) {\n"
+#~ "\n"
+#~ " List result = HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().createCriteria(Event.class).list();\n"
+#~ " if (result.size() > 0) {\n"
+#~ " out.println(\"<h2>Events in database:</h2>\");\n"
+#~ " out.println(\"<table border='1'>\");\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<th>Event title</th>\");\n"
+#~ " out.println(\"<th>Event date</th>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " Iterator it = result.iterator();\n"
+#~ " while (it.hasNext()) {\n"
+#~ " Event event = (Event) it.next();\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<td>\" + event.getTitle() + \"</td>\");\n"
+#~ " out.println(\"<td>\" + dateFormatter.format(event.getDate"
+#~ "()) + \"</td>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " }\n"
+#~ " out.println(\"</table>\");\n"
+#~ " }\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "请注æå¨ä½ ç¼è¯åé¨ç½²webåºç¨ç¨ä¹åï¼éè¦ä¸ä¸ªéå çç±»åºï¼<literal>jsdk.jar</"
-#~ "literal>ãè¿æ¯Java Servletå¼åå
ï¼åè¥ä½ è¿æ²¡æï¼å¯ä»¥ä»Sunç½ç«ä¸ä¸è½½ï¼æå®"
-#~ "copyå°ä½ çlibç®å½ã使¯ï¼å®ä»
ä»
æ¯å¨ç¼è¯æ¶éè¦ï¼ä¸ä¼è¢«æå
¥WARå
ã"
+#~ "private void listEvents(PrintWriter out, SimpleDateFormat dateFormatter) "
+#~ "{\n"
+#~ "\n"
+#~ " List result = HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().createCriteria(Event.class).list"
+#~ "();\n"
+#~ " if (result.size() > 0) {\n"
+#~ " out.println(\"<h2>Events in database:</h2>\");\n"
+#~ " out.println(\"<table border='1'>\");\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<th>Event title</th>\");\n"
+#~ " out.println(\"<th>Event date</th>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " for (Iterator it = result.iterator(); it.hasNext();) {\n"
+#~ " Event event = (Event) it.next();\n"
+#~ " out.println(\"<tr>\");\n"
+#~ " out.println(\"<td>\" + event.getTitle() + \"</td>"
+#~ "\");\n"
+#~ " out.println(\"<td>\" + dateFormatter.format(event."
+#~ "getDate()) + \"</td>\");\n"
+#~ " out.println(\"</tr>\");\n"
+#~ " }\n"
+#~ " out.println(\"</table>\");\n"
+#~ " }\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "If you already feel confident with Hibernate, continue browsing through "
-#~ "the reference documentation table of contents for topics you find "
-#~ "interesting - most asked are transactional processing (<xref linkend="
-#~ "\"transactions\"/>), fetch performance (<xref linkend=\"performance\"/>), "
-#~ "or the usage of the API (<xref linkend=\"objectstate\"/>) and the query "
-#~ "features (<xref linkend=\"objectstate-querying\"/>)."
+#~ "<![CDATA[ protected void createAndStoreEvent(String title, Date "
+#~ "theDate) {\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().save(theEvent);\n"
+#~ " }]]>"
#~ msgstr ""
-#~ "å¦æä½ å·²ç»å¯¹Hibernateæå°èªä¿¡ï¼éè¿å¼åæåç®å½ï¼ç»§ç»æµè§ä½ æå
´è¶£çå
容ï¼"
-#~ "é£äºä¼è¢«é®å°çé®é¢å¤§å¤æ¯äºå¡å¤ç (<xref linkend=\"transactions\"/>)ï¼æå"
-#~ "ï¼fetchï¼çæç (<xref linkend=\"performance\"/>)ï¼æè
APIçä½¿ç¨ (<xref "
-#~ "linkend=\"objectstate\"/>)åæ¥è¯¢çç¹æ§(<xref linkend=\"objectstate-"
-#~ "querying\"/>)ã"
+#~ "protected void createAndStoreEvent(String title, Date theDate) {\n"
+#~ " Event theEvent = new Event();\n"
+#~ " theEvent.setTitle(title);\n"
+#~ " theEvent.setDate(theDate);\n"
+#~ "\n"
+#~ " HibernateUtil.getSessionFactory()\n"
+#~ " .getCurrentSession().save(theEvent);\n"
+#~ "}"
+#, fuzzy
#~ msgid ""
-#~ "Don't forget to check the Hibernate website for more (specialized) "
-#~ "tutorials."
-#~ msgstr "å«å¿äºå»Hibernateçç½ç«æ¥çæ´å¤ï¼æé对æ§çï¼ç¤ºä¾ã"
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<web-app version=\"2.4\"\n"
+#~ " xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun."
+#~ "com/xml/ns/j2ee/web-app_2_4.xsd\">\n"
+#~ "\n"
+#~ " <servlet>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <servlet-class>org.hibernate.tutorial.web.EventManagerServlet</"
+#~ "servlet-class>\n"
+#~ " </servlet>\n"
+#~ "\n"
+#~ " <servlet-mapping>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <url-pattern>/eventmanager</url-pattern>\n"
+#~ " </servlet-mapping>\n"
+#~ "</web-app>]]>"
+#~ msgstr ""
+#~ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<web-app version=\"2.4\"\n"
+#~ " xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee\n"
+#~ " http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\">\n"
+#~ "\n"
+#~ " <servlet>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <servlet-class>events.EventManagerServlet</servlet-"
+#~ "class>\n"
+#~ " </servlet>\n"
+#~ "\n"
+#~ " <servlet-mapping>\n"
+#~ " <servlet-name>Event Manager</servlet-name>\n"
+#~ " <url-pattern>/eventmanager</url-pattern>\n"
+#~ " </servlet-mapping>\n"
+#~ "</web-app>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/content/xml.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/content/xml.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/content/xml.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -1,49 +1,51 @@
+# translation of Collection_Mapping.po to
+# Xi Huang <xhuang at redhat.com>, 2006.
+# Xi HUANG <xhuang at redhat.com>, 2007.
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"POT-Creation-Date: 2010-02-10T07:25:35\n"
+"PO-Revision-Date: 2009-12-07 21:18+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: xml.xml:29
#, no-c-format
msgid "XML Mapping"
-msgstr "XMLæ å°"
+msgstr "XML æ å°"
-#. Tag: emphasis
-#: xml.xml:31
+#. Tag: para
#, fuzzy, no-c-format
msgid ""
-"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
-"under active development."
-msgstr "注æè¿æ¯Hibernate 3.0çä¸ä¸ªå®éªæ§çç¹æ§ãè¿ä¸ç¹æ§ä»å¨ç§¯æå¼åä¸ã"
+"<emphasis> XML Mapping is an experimental feature in Hibernate 3.0 and is "
+"currently under active development. </emphasis>"
+msgstr ""
+"<emphasis>注æ XML æ å°åªæ¯ Hibernate 3.0 çä¸ä¸ªå®éªæ§çç¹æ§ãè¿ä¸ç¹æ§ä»å¨ç§¯"
+"æå¼åä¸ã</emphasis>"
#. Tag: title
-#: xml.xml:37
#, no-c-format
msgid "Working with XML data"
-msgstr "ç¨XMLæ°æ®è¿è¡å·¥ä½"
+msgstr "ç¨ XML æ°æ®è¿è¡å·¥ä½"
#. Tag: para
-#: xml.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Hibernate allows you to work with persistent XML data in much the same way "
"you work with persistent POJOs. A parsed XML tree can be thought of as "
"another way of representing the relational data at the object level, instead "
"of POJOs."
msgstr ""
-"Hibernate使å¾ä½ å¯ä»¥ç¨XMLæ°æ®æ¥è¿è¡å·¥ä½ï¼æ°å¦ä½ ç¨æä¹
åçPOJOè¿è¡å·¥ä½é£æ ·ãè§£"
-"æè¿çXMLæ å¯ä»¥è¢«è®¤ä¸ºæ¯ä»£æ¿POJOçå¦å¤ä¸ç§å¨å¯¹è±¡å±é¢ä¸è¡¨ç¤ºå
³ç³»åæ°æ®çéå¾."
+"Hibernate 使å¾ä½ å¯ä»¥ç¨ XML æ°æ®æ¥è¿è¡å·¥ä½ï¼æ°å¦ä½ ç¨æä¹
åç POJO è¿è¡å·¥ä½é£"
+"æ ·ãè§£æè¿ç XML æ å¯ä»¥è¢«è®¤ä¸ºæ¯ä»£æ¿ POJO çå¦å¤ä¸ç§å¨å¯¹è±¡å±é¢ä¸è¡¨ç¤ºå
³ç³»åæ°"
+"æ®çéå¾ã"
#. Tag: para
-#: xml.xml:46
#, no-c-format
msgid ""
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
@@ -54,174 +56,104 @@
"(), saveOrUpdate(), merge(), delete(), replicate()</literal> (merging is not "
"yet supported)."
msgstr ""
-"Hibernateæ¯æéç¨dom4jä½ä¸ºæä½XMLæ çAPIãä½ å¯ä»¥åä¸äºæ¥è¯¢ä»æ°æ®åºä¸æ£ç´¢åº "
-"dom4jæ ï¼éåä½ å¯¹è¿é¢æ åçä»»ä½ä¿®æ¹é½å°èªå¨åæ¥åæ°æ®åºãä½ çè³å¯ä»¥ç¨dom4jè§£"
-"æ ä¸ç¯XMLææ¡£ï¼ç¶å使ç¨Hibernateçä»»ä¸åºæ¬æä½å°å®åå
¥æ°æ®åºï¼ "
-"<literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> "
-"(åå¹¶æä½merge()ç®åè¿ä¸æ¯æ)ã"
+"Hibernate æ¯æéç¨ dom4j ä½ä¸ºæä½ XML æ ç APIãä½ å¯ä»¥åä¸äºæ¥è¯¢ä»æ°æ®åºä¸æ£"
+"ç´¢åº dom4j æ ï¼éåä½ å¯¹è¿é¢æ åçä»»ä½ä¿®æ¹é½å°èªå¨åæ¥åæ°æ®åºãä½ çè³å¯ä»¥ç¨ "
+"dom4j è§£æ ä¸ç¯ XML ææ¡£ï¼ç¶åä½¿ç¨ Hibernate çä»»ä¸åºæ¬æä½å°å®åå
¥æ°æ®åºï¼"
+"<literal>persist()ï¼saveOrUpdate()ï¼merge()ï¼delete()ï¼replicate()</literal> "
+"ï¼åå¹¶æä½merge()ç®åè¿ä¸æ¯æï¼ã"
#. Tag: para
-#: xml.xml:56
#, no-c-format
msgid ""
"This feature has many applications including data import/export, "
"externalization of entity data via JMS or SOAP and XSLT-based reporting."
msgstr ""
-"è¿ä¸ç¹æ§å¯ä»¥åºç¨å¨å¾å¤åºåï¼å
æ¬æ°æ®å¯¼å
¥å¯¼åºï¼éè¿JMSæSOAPå
·ä½åå®ä½æ°æ®ä»¥"
-"å åºäºXSLTçæ¥è¡¨ã"
+"è¿ä¸ç¹æ§å¯ä»¥åºç¨å¨å¾å¤åºåï¼å
æ¬æ°æ®å¯¼å
¥å¯¼åºï¼éè¿ JMS æ SOAP å
·ä½åå®ä½æ°æ®"
+"以å åºäº XSLT çæ¥è¡¨ã"
#. Tag: para
-#: xml.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A single mapping can 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 can be used to map just the XML."
msgstr ""
-"ä¸ä¸ªåä¸çæ å°å°±å¯ä»¥å°ç±»ç屿§åXMLææ¡£çèç¹åæ¶æ å°å°æ°æ®åºã妿ä¸éè¦æ å°"
-"ç±»ï¼ å®ä¹å¯ä»¥ç¨æ¥åªæ å°XMLææ¡£ã"
+"ä¸ä¸ªåä¸çæ å°å°±å¯ä»¥å°ç±»ç屿§å XML ææ¡£çèç¹åæ¶æ å°å°æ°æ®åºã妿ä¸éè¦æ "
+"å°ç±»ï¼å®ä¹å¯ä»¥ç¨æ¥åªæ å° XML ææ¡£ã "
#. Tag: title
-#: xml.xml:68
#, no-c-format
msgid "Specifying XML and class mapping together"
-msgstr "æå®åæ¶æ å°XMLåç±»"
+msgstr "æå®åæ¶æ å° XML åç±»"
#. Tag: para
-#: xml.xml:70
#, no-c-format
msgid "Here is an example of mapping a POJO and XML simultaneously:"
-msgstr "è¿æ¯ä¸ä¸ªåæ¶æ å°POJOåXMLçä¾åï¼"
+msgstr "è¿æ¯ä¸ä¸ªåæ¶æ å° POJO å XML çä¾åï¼"
-#. Tag: programlisting
-#: xml.xml:74
-#, no-c-format
-msgid ""
-"<![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 ""
-
#. Tag: title
-#: xml.xml:78
#, no-c-format
msgid "Specifying only an XML mapping"
-msgstr "åªå®ä¹XMLæ å°"
+msgstr "åªå®ä¹ XML æ å°"
#. Tag: para
-#: xml.xml:80
#, no-c-format
msgid "Here is an example where there is no POJO class:"
-msgstr "è¿æ¯ä¸ä¸ªä¸æ å°POJOçä¾åï¼"
+msgstr "è¿æ¯ä¸ä¸ªä¸æ å° POJO çä¾åï¼"
-#. Tag: programlisting
-#: xml.xml:84
+#. Tag: para
#, no-c-format
msgid ""
-"<![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 ""
-
-#. Tag: para
-#: xml.xml:86
-#, fuzzy, no-c-format
-msgid ""
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
"property name/value pairs or java <literal>Map</literal>s. The property "
"names are purely logical constructs that can be referred to in HQL queries."
msgstr ""
-"è¿ä¸ªæ å°ä½¿å¾ä½ æ¢å¯ä»¥ææ°æ®ä½ä¸ºä¸æ£µdom4jæ 飿 ·è®¿é®ï¼åå¯ä»¥ä½ä¸ºç±å±æ§é®å¼å¯¹"
-"(java <literal>Map</literal>s) ç»æçå¾é£æ ·è®¿é®ã屿§åå纯粹æ¯é»è¾ä¸çç»æï¼"
-"ä½ å¯ä»¥å¨HQLæ¥è¯¢ä¸å¼ç¨å®ã"
+"è¿ä¸ªæ å°ä½¿å¾ä½ æ¢å¯ä»¥ææ°æ®ä½ä¸ºä¸æ£µ dom4j æ 飿 ·è®¿é®ï¼åå¯ä»¥ä½ä¸ºç±å±æ§é®å¼å¯¹"
+"ï¼java <literal>Map</literal>ï¼ç»æçå¾é£æ ·è®¿é®ã屿§åå纯粹æ¯é»è¾ä¸çç»æï¼"
+"ä½ å¯ä»¥å¨ HQL æ¥è¯¢ä¸å¼ç¨å®ã"
#. Tag: title
-#: xml.xml:97
#, no-c-format
msgid "XML mapping metadata"
-msgstr "XMLæ å°å
æ°æ®"
+msgstr "XML æ å°å
æ°æ®"
#. Tag: para
-#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"A range of Hibernate mapping elements accept the <literal>node</literal> "
"attribute. This lets 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 ""
-"许å¤Hibernateæ å°å
ç´ å
·æ<literal>node</literal>屿§ãè¿ä½¿ä½ å¯ä»¥æå®ç¨æ¥ä¿å "
-"屿§æå®ä½æ°æ®çXML屿§æå
ç´ ã<literal>node</literal>屿§å¿
é¡»æ¯ä¸åæ ¼å¼ä¹"
-"ä¸ï¼"
+"è®¸å¤ Hibernate æ å°å
ç´ å
·æ <literal>node</literal> 屿§ãè¿ä½¿ä½ å¯ä»¥æå®ç¨æ¥"
+"ä¿å 屿§æå®ä½æ°æ®ç XML 屿§æå
ç´ ã<literal>node</literal> 屿§å¿
é¡»æ¯ä¸å"
+"æ ¼å¼ä¹ä¸ï¼ "
#. Tag: para
-#: xml.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
-msgstr "<literal>\"element-name\"</literal> - æ å°ä¸ºæå®çXMLå
ç´ "
+msgstr "<literal>\"element-name\"</literal>ï¼æ å°ä¸ºæå®ç XML å
ç´ "
#. Tag: para
-#: xml.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
-msgstr "<literal>\"@attribute-name\"</literal> - æ å°ä¸ºæå®çXML屿§"
+msgstr "<literal>\"@attribute-name\"</literal>ï¼æ å°ä¸ºæå®ç XML 屿§"
#. Tag: para
-#: xml.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<literal>\".\"</literal>: map to the parent element"
-msgstr "<literal>\".\"</literal> - æ å°ä¸ºç¶å
ç´ "
+msgstr "<literal>\".\"</literal>ï¼æ å°ä¸ºç¶å
ç´ "
#. Tag: para
-#: xml.xml:117
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
"attribute of the named element"
msgstr ""
-"<literal>\"element-name/@attribute-name\"</literal> - æ å°ä¸ºæå®å
ç´ çæå®å±"
-"æ§"
+"<literal>\"element-name/@attribute-name\"</literal>ï¼æ å°ä¸ºæå®å
ç´ çæå®å±æ§"
#. Tag: para
-#: xml.xml:124
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"For collections and single valued associations, there is an additional "
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
@@ -231,202 +163,366 @@
"then only the referenced identifier value will appear in the XML for single "
"point associations and collections will not appear at all."
msgstr ""
-"对äºéåååå¼çå
³èï¼æä¸ä¸ªé¢å¤ç<literal>embed-xml</literal>屿§å¯ç¨ã è¿ä¸ª"
-"屿§ç缺ç弿¯ç(<literal>embed-xml=\"true\"</literal>)ã妿<literal>embed-"
-"xml=\"true\"</literal>ï¼ å对åºäºè¢«å
³èå®ä½æå¼ç±»åçéåçXMLæ å°ç´æ¥åµå
¥æ¥"
-"æè¿äºå
³èçå®ä½çXMLæ ä¸ã å¦åï¼å¦æ<literal>embed-xml=\"false\"</"
-"literal>ï¼é£ä¹å¯¹äºåå¼çå
³èï¼ä»
被å¼ç¨çå®ä½çæ è¯ç¬¦åºç°å¨ XMLæ ä¸(被å¼ç¨å®ä½"
-"æ¬èº«ä¸åºç°)ï¼èéååæ ¹æ¬ä¸åºç°ã"
+"对äºéåååå¼çå
³èï¼æä¸ä¸ªé¢å¤ç <literal>embed-xml</literal> 屿§å¯ç¨ãè¿"
+"ä¸ªå±æ§ç缺ç弿¯çï¼<literal>embed-xml=\"true\"</literal>ï¼ã妿 "
+"<literal>embed-xml=\"true\"</literal>ï¼å对åºäºè¢«å
³èå®ä½æå¼ç±»åçéåçXML"
+"æ å°ç´æ¥åµå
¥æ¥æè¿äºå
³èçå®ä½ç XML æ ä¸ãå¦åï¼å¦æ <literal>embed-xml="
+"\"false\"</literal>ï¼é£ä¹å¯¹äºåå¼çå
³èï¼ä»
被å¼ç¨çå®ä½çæ è¯ç¬¦åºç°å¨ XML æ "
+"ä¸ï¼è¢«å¼ç¨å®ä½æ¬èº«ä¸åºç°ï¼ï¼èéååæ ¹æ¬ä¸åºç°ã"
#. Tag: para
-#: xml.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
"associations, since XML does not deal well with circularity."
msgstr ""
-"ä½ åºè¯¥å°å¿ï¼ä¸è¦è®©å¤ªå¤å
³èçembed-xml屿§ä¸ºç(<literal>embed-xml=\"true\"</"
-"literal>)ï¼å 为XMLä¸è½å¾å¥½å°å¤ç 循ç¯å¼ç¨!"
+"ä½ åºè¯¥å°å¿ï¼ä¸è¦è®©å¤ªå¤å
³èç embed-xml 屿§ä¸ºçï¼<literal>embed-xml=\"true"
+"\"</literal>ï¼ï¼å 为 XML ä¸è½å¾å¥½å°å¤ç循ç¯å¼ç¨ã"
-#. Tag: programlisting
-#: xml.xml:139
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[<class name=\"Customer\" \n"
-" table=\"CUSTOMER\" \n"
-" node=\"customer\">\n"
-" \n"
-" <id name=\"id\" \n"
-" column=\"CUST_ID\" \n"
-" node=\"@id\"/>\n"
-" \n"
-" <map name=\"accounts\" \n"
-" node=\".\" \n"
-" embed-xml=\"true\">\n"
-" <key column=\"CUSTOMER_ID\" \n"
-" not-null=\"true\"/>\n"
-" <map-key column=\"SHORT_DESC\" \n"
-" node=\"@short-desc\" \n"
-" type=\"string\"/>\n"
-" <one-to-many entity-name=\"Account\"\n"
-" embed-xml=\"false\" \n"
-" node=\"account\"/>\n"
-" </map>\n"
-" \n"
-" <component name=\"name\" \n"
-" node=\"name\">\n"
-" <property name=\"firstName\" \n"
-" node=\"first-name\"/>\n"
-" <property name=\"initial\" \n"
-" node=\"initial\"/>\n"
-" <property name=\"lastName\" \n"
-" node=\"last-name\"/>\n"
-" </component>\n"
-" \n"
-" ...\n"
-" \n"
-"</class>]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:141
-#, fuzzy, no-c-format
-msgid ""
"In this case, the collection of account ids is embedded, but not the actual "
"account data. The following HQL query:"
msgstr ""
-"å¨è¿ä¸ªä¾åä¸ï¼æä»¬å³å®åµå
¥å¸ç®å·ç (account id)çéåï¼ä½ä¸åµå
¥å®é
çå¸ç®æ°"
-"æ®ãä¸é¢çHQLæ¥è¯¢ï¼"
+"å¨è¿ä¸ªä¾åä¸ï¼æä»¬å³å®åµå
¥å¸ç®å·ç ï¼account idï¼çéåï¼ä½ä¸åµå
¥å®é
çå¸ç®æ°"
+"æ®ãä¸é¢ç HQL æ¥è¯¢ï¼ "
-#. Tag: programlisting
-#: xml.xml:146
+#. Tag: para
#, no-c-format
-msgid ""
-"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
-"lastName]]>"
-msgstr ""
-
-#. Tag: para
-#: xml.xml:148
-#, fuzzy, no-c-format
msgid "would return datasets such as this:"
-msgstr "è¿åçæ°æ®éå°æ¯è¿æ ·ï¼"
+msgstr "è¿åçæ°æ®éå°æ¯è¿æ ·ï¼ "
-#. Tag: programlisting
-#: xml.xml:152
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account short-desc=\"Savings\">987632567</account>\n"
-" <account short-desc=\"Credit Card\">985612323</account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: para
-#: xml.xml:154
#, no-c-format
msgid ""
"If you set <literal>embed-xml=\"true\"</literal> on the <literal><one-to-"
"many></literal> mapping, the data might look more like this:"
msgstr ""
-"å¦æä½ æä¸å¯¹å¤æ å°<literal><one-to-many></literal>çembed-xml屿§ç½®ä¸ºç"
-"(<literal>embed-xml=\"true\"</literal>)ï¼ åæ°æ®çä¸å»å°±åè¿æ ·ï¼"
+"å¦æä½ æä¸å¯¹å¤æ å° <literal><one-to-many></literal> ç embed-xml 屿§ç½®"
+"为çï¼<literal>embed-xml=\"true\"</literal>ï¼ï¼åæ°æ®çä¸å»å°±åè¿æ ·ï¼"
-#. Tag: programlisting
-#: xml.xml:159
-#, no-c-format
-msgid ""
-"<![CDATA[<customer id=\"123456789\">\n"
-" <account id=\"987632567\" short-desc=\"Savings\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>100.29</balance>\n"
-" </account>\n"
-" <account id=\"985612323\" short-desc=\"Credit Card\">\n"
-" <customer id=\"123456789\"/>\n"
-" <balance>-2370.34</balance>\n"
-" </account>\n"
-" <name>\n"
-" <first-name>Gavin</first-name>\n"
-" <initial>A</initial>\n"
-" <last-name>King</last-name>\n"
-" </name>\n"
-" ...\n"
-"</customer>]]>"
-msgstr ""
-
#. Tag: title
-#: xml.xml:165
#, no-c-format
msgid "Manipulating XML data"
-msgstr "æä½XMLæ°æ®"
+msgstr "æä½ XML æ°æ®"
#. Tag: para
-#: xml.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"You can also re-read and update XML documents in the application. You can do "
"this by obtaining a dom4j session:"
msgstr ""
-"让æä»¬æ¥è¯»å
¥åæ´æ°åºç¨ç¨åºä¸çXMLææ¡£ãéè¿è·åä¸ä¸ªdom4jä¼è¯å¯ä»¥åå°è¿ä¸ç¹ï¼"
+"ä½ ä¹å¯ä»¥éæ°è¯»å
¥åæ´æ°åºç¨ç¨åºä¸ç XML ææ¡£ãéè¿è·åä¸ä¸ª dom4j ä¼è¯å¯ä»¥åå°"
+"è¿ä¸ç¹ï¼"
-#. Tag: programlisting
-#: xml.xml:172
+#. Tag: para
#, no-c-format
msgid ""
-"<![CDATA[Document doc = ....;\n"
-" \n"
-"Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"List results = dom4jSession\n"
-" .createQuery(\"from Customer c left join fetch c.accounts where c."
-"lastName like :lastName\")\n"
-" .list();\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" //add the customer data to the XML document\n"
-" Element customer = (Element) results.get(i);\n"
-" doc.add(customer);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
+"When implementing XML-based data import/export, it is useful to combine this "
+"feature with Hibernate's <literal>replicate()</literal> operation."
msgstr ""
+"å°è¿ä¸ç¹è²ä¸ Hibernate ç <literal>replicate()</literal> æä½ç»åèµ·æ¥å¯¹äºå®ç°"
+"çåºäº XML çæ°æ®å¯¼å
¥/导åºå°é常æç¨ã"
-#. Tag: programlisting
-#: xml.xml:174
-#, no-c-format
-msgid ""
-"<![CDATA[Session session = factory.openSession();\n"
-"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
-"Transaction tx = session.beginTransaction();\n"
-"\n"
-"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
-"for ( int i=0; i<results.size(); i++ ) {\n"
-" Element customer = (Element) results.get(i);\n"
-" //change the customer name in the XML and database\n"
-" Element name = customer.element(\"name\");\n"
-" name.element(\"first-name\").setText(firstName);\n"
-" name.element(\"initial\").setText(initial);\n"
-" name.element(\"last-name\").setText(lastName);\n"
-"}\n"
-"\n"
-"tx.commit();\n"
-"session.close();]]>"
-msgstr ""
+#~ msgid ""
+#~ "<![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>]]>"
-#. Tag: para
-#: xml.xml:176
-#, fuzzy, no-c-format
-msgid ""
-"When implementing XML-based data import/export, it is useful to combine this "
-"feature with Hibernate's <literal>replicate()</literal> operation."
-msgstr ""
-"å°è¿ä¸ç¹è²ä¸Hibernateç<literal>replicate()</literal>æä½ç»åèµ·æ¥å¯¹äºå®ç°çåº"
-"äºXMLçæ°æ®å¯¼å
¥/导åºå°é常æç¨."
+#~ msgid ""
+#~ "<![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>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<class name=\"Customer\" \n"
+#~ " table=\"CUSTOMER\" \n"
+#~ " node=\"customer\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"CUST_ID\" \n"
+#~ " node=\"@id\"/>\n"
+#~ " \n"
+#~ " <map name=\"accounts\" \n"
+#~ " node=\".\" \n"
+#~ " embed-xml=\"true\">\n"
+#~ " <key column=\"CUSTOMER_ID\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"SHORT_DESC\" \n"
+#~ " node=\"@short-desc\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many entity-name=\"Account\"\n"
+#~ " embed-xml=\"false\" \n"
+#~ " node=\"account\"/>\n"
+#~ " </map>\n"
+#~ " \n"
+#~ " <component name=\"name\" \n"
+#~ " node=\"name\">\n"
+#~ " <property name=\"firstName\" \n"
+#~ " node=\"first-name\"/>\n"
+#~ " <property name=\"initial\" \n"
+#~ " node=\"initial\"/>\n"
+#~ " <property name=\"lastName\" \n"
+#~ " node=\"last-name\"/>\n"
+#~ " </component>\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ "</class>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<class name=\"Customer\" \n"
+#~ " table=\"CUSTOMER\" \n"
+#~ " node=\"customer\">\n"
+#~ " \n"
+#~ " <id name=\"id\" \n"
+#~ " column=\"CUST_ID\" \n"
+#~ " node=\"@id\"/>\n"
+#~ " \n"
+#~ " <map name=\"accounts\" \n"
+#~ " node=\".\" \n"
+#~ " embed-xml=\"true\">\n"
+#~ " <key column=\"CUSTOMER_ID\" \n"
+#~ " not-null=\"true\"/>\n"
+#~ " <map-key column=\"SHORT_DESC\" \n"
+#~ " node=\"@short-desc\" \n"
+#~ " type=\"string\"/>\n"
+#~ " <one-to-many entity-name=\"Account\"\n"
+#~ " embed-xml=\"false\" \n"
+#~ " node=\"account\"/>\n"
+#~ " </map>\n"
+#~ " \n"
+#~ " <component name=\"name\" \n"
+#~ " node=\"name\">\n"
+#~ " <property name=\"firstName\" \n"
+#~ " node=\"first-name\"/>\n"
+#~ " <property name=\"initial\" \n"
+#~ " node=\"initial\"/>\n"
+#~ " <property name=\"lastName\" \n"
+#~ " node=\"last-name\"/>\n"
+#~ " </component>\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ "</class>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[from Customer c left join fetch c.accounts where c.lastName "
+#~ "like :lastName]]>"
+#~ msgstr ""
+#~ "<![CDATA[from Customer c left join fetch c.accounts where c.lastName "
+#~ "like :lastName]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account short-desc=\"Savings\">987632567</account>\n"
+#~ " <account short-desc=\"Credit Card\">985612323</account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account short-desc=\"Savings\">987632567</account>\n"
+#~ " <account short-desc=\"Credit Card\">985612323</account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account id=\"987632567\" short-desc=\"Savings\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>100.29</balance>\n"
+#~ " </account>\n"
+#~ " <account id=\"985612323\" short-desc=\"Credit Card\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>-2370.34</balance>\n"
+#~ " </account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<customer id=\"123456789\">\n"
+#~ " <account id=\"987632567\" short-desc=\"Savings\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>100.29</balance>\n"
+#~ " </account>\n"
+#~ " <account id=\"985612323\" short-desc=\"Credit Card\">\n"
+#~ " <customer id=\"123456789\"/>\n"
+#~ " <balance>-2370.34</balance>\n"
+#~ " </account>\n"
+#~ " <name>\n"
+#~ " <first-name>Gavin</first-name>\n"
+#~ " <initial>A</initial>\n"
+#~ " <last-name>King</last-name>\n"
+#~ " </name>\n"
+#~ " ...\n"
+#~ "</customer>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Document doc = ....;\n"
+#~ " \n"
+#~ "Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "List results = dom4jSession\n"
+#~ " .createQuery(\"from Customer c left join fetch c.accounts where c."
+#~ "lastName like :lastName\")\n"
+#~ " .list();\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " //add the customer data to the XML document\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " doc.add(customer);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Document doc = ....;\n"
+#~ " \n"
+#~ "Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "List results = dom4jSession\n"
+#~ " .createQuery(\"from Customer c left join fetch c.accounts where c."
+#~ "lastName like :lastName\")\n"
+#~ " .list();\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " //add the customer data to the XML document\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " doc.add(customer);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+
+#~ msgid ""
+#~ "<![CDATA[Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " //change the customer name in the XML and database\n"
+#~ " Element name = customer.element(\"name\");\n"
+#~ " name.element(\"first-name\").setText(firstName);\n"
+#~ " name.element(\"initial\").setText(initial);\n"
+#~ " name.element(\"last-name\").setText(lastName);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
+#~ msgstr ""
+#~ "<![CDATA[Session session = factory.openSession();\n"
+#~ "Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
+#~ "Transaction tx = session.beginTransaction();\n"
+#~ "\n"
+#~ "Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
+#~ "for ( int i=0; i<results.size(); i++ ) {\n"
+#~ " Element customer = (Element) results.get(i);\n"
+#~ " //change the customer name in the XML and database\n"
+#~ " Element name = customer.element(\"name\");\n"
+#~ " name.element(\"first-name\").setText(firstName);\n"
+#~ " name.element(\"initial\").setText(initial);\n"
+#~ " name.element(\"last-name\").setText(lastName);\n"
+#~ "}\n"
+#~ "\n"
+#~ "tx.commit();\n"
+#~ "session.close();]]>"
Modified: core/trunk/documentation/manual/src/main/docbook/zh-CN/legal_notice.po
===================================================================
--- core/trunk/documentation/manual/src/main/docbook/zh-CN/legal_notice.po 2010-02-11 02:48:31 UTC (rev 18775)
+++ core/trunk/documentation/manual/src/main/docbook/zh-CN/legal_notice.po 2010-02-11 07:04:06 UTC (rev 18776)
@@ -2,35 +2,33 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-14 19:56+0000\n"
+"POT-Creation-Date: 2010-02-04T04:51:23\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. Tag: title
-#: legal_notice.xml:28
#, no-c-format
msgid "Legal Notice"
msgstr "Legal Notice"
-#. Tag: address
-#: legal_notice.xml:30
-#, no-c-format
+#. Tag: para
+#, fuzzy, no-c-format
msgid ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
-"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
-"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
-"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, "
+"<state>NC</state><postcode>27606-2072</postcode><country>USA</country> "
+"<phone>Phone: +1 919 754 3700</phone> <phone>Phone: 888 733 4281</phone> "
+"<fax>Fax: +1 919 754 3701</fax> <pob>PO Box 13588</pob><city>Research "
+"Triangle Park</city>, <state>NC</state><postcode>27709</"
+"postcode><country>USA</country> </address>"
msgstr ""
-"<street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
+"<address> <street>1801 Varsity Drive</street> <city>Raleigh</city>, <state>NC</"
"state><postcode>27606-2072</postcode><country>USA</country> <phone>Phone: +1 "
"919 754 3700</phone> <phone>Phone: 888 733 4281</phone> <fax>Fax: +1 919 754 "
"3701</fax> <pob>PO Box 13588</pob><city>Research Triangle Park</city>, "
-"<state>NC</state><postcode>27709</postcode><country>USA</country>"
+"<state>NC</state><postcode>27709</postcode><country>USA</country> </address>"
#. Tag: para
-#: legal_notice.xml:39
#, fuzzy, no-c-format
msgid ""
"Copyright <trademark class=\"copyright\"></trademark> 2007 by Red Hat, Inc. "
@@ -46,7 +44,6 @@
"Public License</ulink>, as published by the Free Software Foundation."
#. Tag: para
-#: legal_notice.xml:45
#, no-c-format
msgid ""
"Red Hat and the Red Hat \"Shadow Man\" logo are registered trademarks of Red "
@@ -56,7 +53,6 @@
"Hat, Inc. in the United States and other countries."
#. Tag: para
-#: legal_notice.xml:48
#, no-c-format
msgid ""
"All other trademarks referenced herein are the property of their respective "
@@ -66,13 +62,11 @@
"owners."
#. Tag: para
-#: legal_notice.xml:51
#, no-c-format
msgid "The GPG fingerprint of the security at redhat.com key is:"
msgstr "The GPG fingerprint of the security at redhat.com key is:"
#. Tag: para
-#: legal_notice.xml:54
#, no-c-format
msgid "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
msgstr "CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E"
More information about the hibernate-commits
mailing list